/* Generated shared stylesheet for CASUX institutional content hub */
:root {
  --bg: #f5efe6;
  --surface: #fff9ef;
  --panel: #ffffff;
  --text: #261a13;
  --muted: #6f5b4b;
  --border: #d8c6ad;
  --primary: #7a3524;
  --primary-strong: #5f271a;
  --accent: #b6813b;
  --accent-soft: #e7d2ac;
  --shadow: 0 14px 40px rgba(38, 26, 19, 0.08);
  --shadow-soft: 0 8px 24px rgba(38, 26, 19, 0.06);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --container: 1180px;
  --gutter: clamp(18px, 3vw, 32px);
  --space-1: 6px;
  --space-2: 10px;
  --space-3: 14px;
  --space-4: 18px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 44px;
  --space-8: 56px;
  --space-9: 72px;
  --font-display: 'Space Grotesk', 'IBM Plex Sans', system-ui, sans-serif;
  --font-body: 'IBM Plex Sans', 'Noto Sans SC', system-ui, sans-serif;
  --line: 1.65;
  --line-tight: 1.2;
  --header-bg: rgba(255, 249, 239, 0.88);
  --header-border: rgba(216, 198, 173, 0.8);
  --focus: 0 0 0 3px rgba(122, 53, 36, 0.18);
}

* { box-sizing: border-box; }
html {
  color-scheme: light;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(182, 129, 59, 0.12), transparent 28%),
    radial-gradient(circle at 82% 8%, rgba(122, 53, 36, 0.08), transparent 22%),
    var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: var(--line);
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--primary); }
a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}
img, svg, video, canvas { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; letter-spacing: 0; }

.skip-link {
  position: absolute;
  left: 16px;
  top: 12px;
  z-index: 999;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--panel);
  border: 1px solid var(--border);
  transform: translateY(-160%);
  transition: transform 180ms ease;
}
.skip-link:focus { transform: translateY(0); }

.site-shell {
  width: min(var(--container), calc(100% - (var(--gutter) * 2)));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: linear-gradient(to bottom, var(--header-bg), rgba(255, 249, 239, 0.72));
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--header-border);
}
.header-inner {
  width: min(var(--container), calc(100% - (var(--gutter) * 2)));
  margin: 0 auto;
  min-height: 76px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: var(--space-4);
  align-items: center;
}
.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
  min-width: 0;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0;
  white-space: nowrap;
}
.brand strong {
  font-size: clamp(1rem, 1.3vw, 1.1rem);
  font-weight: 700;
}
.brand span {
  color: var(--muted);
  font-size: 0.92rem;
}
.primary-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(8px, 1.8vw, 22px);
  flex-wrap: wrap;
}
.primary-nav a,
.primary-nav button,
.utility-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text);
  font-weight: 600;
  letter-spacing: 0;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}
.primary-nav a:hover,
.primary-nav button:hover,
.utility-link:hover {
  background: rgba(255, 255, 255, 0.78);
  border-color: var(--border);
  color: var(--primary);
}
.primary-nav a[aria-current='page'] {
  background: color-mix(in srgb, var(--primary) 10%, white);
  border-color: color-mix(in srgb, var(--primary) 24%, var(--border));
  color: var(--primary-strong);
}
.header-tools {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-self: end;
}
.header-tools .utility-link,
.header-tools button {
  background: rgba(255, 255, 255, 0.72);
  border-color: var(--border);
}

main { display: block; }
.page {
  width: min(var(--container), calc(100% - (var(--gutter) * 2)));
  margin: 0 auto;
  padding: var(--space-8) 0 var(--space-9);
}
.page > section + section { margin-top: var(--space-8); }

.collection-home,
.content-page {
  display: grid;
  gap: var(--space-8);
}

.archive-masthead,
.route-masthead,
.page-masthead {
  display: grid;
  gap: var(--space-5);
  align-items: end;
  padding: clamp(24px, 4vw, 44px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 249, 239, 0.98));
  box-shadow: var(--shadow-soft);
}
.page-kicker {
  margin: 0;
  color: var(--accent);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}
.section-title,
h1,
h2,
h3,
.display-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: var(--line-tight);
  letter-spacing: 0;
  text-wrap: balance;
  word-break: normal;
  overflow-wrap: normal;
}
h1,
.display-title { font-size: clamp(2.2rem, 5vw, 4.6rem); }
h2,
.section-title { font-size: clamp(1.4rem, 2.7vw, 2.2rem); }
h3 { font-size: clamp(1.08rem, 1.7vw, 1.32rem); }
.lead,
.page-intro {
  max-width: 68ch;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.35vw, 1.1rem);
}

.masthead-grid {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: minmax(0, 1.4fr) minmax(300px, 0.9fr);
  align-items: start;
}
.masthead-copy {
  display: grid;
  gap: var(--space-4);
}
.masthead-notes {
  display: grid;
  gap: var(--space-3);
}
.note-row,
.meta-row,
.spec-row,
.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: center;
}
.pill,
.tag,
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 8px 12px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 11%, white);
  border: 1px solid color-mix(in srgb, var(--accent) 24%, var(--border));
  color: var(--primary-strong);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0;
}

.proof-grid,
.card-grid,
.resource-grid,
.link-grid,
.issue-grid,
.stacked-list {
  display: grid;
  gap: var(--space-4);
}
.proof-grid,
.card-grid,
.resource-grid,
.link-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.card,
.resource-card,
.proof-card,
.detail-card,
.summary-card,
.form-card,
.info-card,
.list-item,
.link-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}
.card,
.resource-card,
.proof-card,
.detail-card,
.summary-card,
.link-card {
  padding: clamp(18px, 2.4vw, 24px);
}
.card,
.resource-card,
.proof-card,
.detail-card,
.summary-card,
.link-card,
.list-item {
  display: grid;
  gap: 12px;
}
.card p,
.resource-card p,
.proof-card p,
.detail-card p,
.summary-card p,
.link-card p,
.list-item p,
.form-note,
.small-copy {
  margin: 0;
  color: var(--muted);
}
.card h3,
.resource-card h3,
.proof-card h3,
.detail-card h3,
.summary-card h3,
.link-card h3 { margin-bottom: 2px; }
.card a,
.resource-card a,
.proof-card a,
.detail-card a,
.summary-card a,
.link-card a { width: fit-content; }

.resource-ledger,
.standards-ledger,
.research-index,
.issue-map {
  display: grid;
  gap: var(--space-4);
}
.ledger-row,
.data-row,
.compare-row,
.download-row,
.index-row {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(180px, 0.8fr) minmax(220px, 1fr);
  gap: var(--space-4);
  align-items: center;
  padding: 18px 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.68);
}
.ledger-row strong,
.data-row strong,
.compare-row strong,
.download-row strong,
.index-row strong { font-weight: 700; }
.ledger-row .row-meta,
.data-row .row-meta,
.compare-row .row-meta,
.download-row .row-meta,
.index-row .row-meta { color: var(--muted); }
.ledger-row .row-actions,
.data-row .row-actions,
.compare-row .row-actions,
.download-row .row-actions,
.index-row .row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.grid-two {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.grid-three {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.grid-12 {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: repeat(12, minmax(0, 1fr));
}
.span-12 { grid-column: 1 / -1; }
.span-8 { grid-column: span 8; }
.span-7 { grid-column: span 7; }
.span-6 { grid-column: span 6; }
.span-5 { grid-column: span 5; }
.span-4 { grid-column: span 4; }
.span-3 { grid-column: span 3; }

.panel-band,
.context-band,
.cta-band,
.form-band,
.footer-band {
  display: grid;
  gap: var(--space-4);
  padding: clamp(22px, 4vw, 36px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 249, 239, 0.96));
  box-shadow: var(--shadow-soft);
}

.responsive-table {
  width: 100%;
  border-collapse: collapse;
}
.table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--panel);
  box-shadow: var(--shadow-soft);
}
.responsive-table th,
.responsive-table td {
  padding: 14px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
}
.responsive-table thead th {
  background: rgba(245, 239, 230, 0.72);
  color: var(--primary-strong);
  font-weight: 700;
}
.responsive-table tbody tr:last-child td { border-bottom: 0; }
.responsive-table td:first-child,
.responsive-table th:first-child { min-width: 14ch; }

.form-grid {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.field {
  display: grid;
  gap: 8px;
}
.field label {
  font-weight: 600;
  color: var(--text);
}
.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}
.field textarea { min-height: 160px; resize: vertical; }
.field input::placeholder,
.field textarea::placeholder { color: color-mix(in srgb, var(--muted) 72%, white); }
.form-actions,
.action-row,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.btn,
button,
.button,
input[type='submit'] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--primary);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}
.btn:hover,
button:hover,
.button:hover,
input[type='submit']:hover {
  background: var(--primary-strong);
  transform: translateY(-1px);
}
.btn-secondary,
.button-secondary,
button.secondary,
input[type='button'].secondary {
  background: transparent;
  color: var(--primary-strong);
  border-color: var(--border);
}
.btn-secondary:hover,
.button-secondary:hover,
button.secondary:hover,
input[type='button'].secondary:hover {
  background: color-mix(in srgb, var(--primary) 8%, white);
}

.footer {
  margin-top: var(--space-9);
  padding: 0 0 var(--space-8);
}
.footer-inner {
  width: min(var(--container), calc(100% - (var(--gutter) * 2)));
  margin: 0 auto;
  display: grid;
  gap: var(--space-5);
}
.footer-grid {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: minmax(0, 1.2fr) repeat(3, minmax(160px, 1fr));
}
.footer-card {
  padding: clamp(18px, 2.4vw, 24px);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.7);
}
.footer-card h3,
.footer-card strong {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 1.02rem;
}
.footer-links {
  display: grid;
  gap: 10px;
}
.footer-links a {
  width: fit-content;
  color: var(--text);
}
.footer-links a:hover { color: var(--primary); }
.footer-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 18px;
  color: var(--muted);
  font-size: 0.95rem;
}

.detail-layout {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
  align-items: start;
}
.detail-content {
  display: grid;
  gap: var(--space-5);
}
.detail-aside {
  display: grid;
  gap: var(--space-4);
  position: sticky;
  top: 96px;
}
.aside-card {
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.72);
}
.aside-card h3 { margin-bottom: 8px; }
.aside-card ul { margin: 0; padding-left: 18px; color: var(--muted); }
.aside-card li + li { margin-top: 8px; }

blockquote {
  margin: 0;
  padding: 18px 20px;
  border-left: 4px solid var(--accent);
  background: color-mix(in srgb, var(--accent) 8%, white);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  color: var(--text);
}
hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 0;
}

@media (max-width: 1080px) {
  .header-inner,
  .masthead-grid,
  .detail-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .primary-nav {
    justify-content: flex-start;
  }
  .header-tools {
    justify-self: start;
  }
  .detail-aside {
    position: static;
  }
}

@media (max-width: 820px) {
  .page { padding-top: var(--space-7); padding-bottom: var(--space-8); }
  .page > section + section { margin-top: var(--space-7); }
  .grid-two,
  .grid-three,
  .form-grid,
  .ledger-row,
  .data-row,
  .compare-row,
  .download-row,
  .index-row {
    grid-template-columns: 1fr;
  }
  .ledger-row .row-actions,
  .data-row .row-actions,
  .compare-row .row-actions,
  .download-row .row-actions,
  .index-row .row-actions {
    justify-content: flex-start;
  }
  .responsive-table th,
  .responsive-table td { padding: 12px 14px; }
  .footer-meta { flex-direction: column; }
}

@media (max-width: 640px) {
  :root { --gutter: 14px; }
  .site-header { position: sticky; }
  .header-inner { min-height: auto; padding: 14px 0; gap: 12px; }
  .brand { white-space: normal; }
  .primary-nav {
    gap: 6px 10px;
  }
  .primary-nav a,
  .primary-nav button,
  .utility-link {
    min-height: 40px;
    padding: 10px 12px;
  }
  .archive-masthead,
  .route-masthead,
  .page-masthead,
  .panel-band,
  .context-band,
  .cta-band,
  .form-band,
  .footer-card {
    padding: 18px;
  }
  h1,
  .display-title { font-size: clamp(2rem, 11vw, 3.1rem); }
  h2,
  .section-title { font-size: clamp(1.3rem, 6.4vw, 1.9rem); }
  .lead,
  .page-intro { font-size: 0.98rem; }
  .btn,
  button,
  .button,
  input[type='submit'] {
    width: 100%;
  }
  .form-actions,
  .action-row,
  .button-row {
    align-items: stretch;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* runtime-stock-media-module */
.shpitto-stock-media {
  margin: 0;
  display: grid;
  gap: 0.75rem;
}
.shpitto-stock-media img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 0.75rem;
}
.shpitto-stock-media figcaption {
  margin: 0;
  color: var(--muted, #52606d);
  font-size: 0.95rem;
  line-height: 1.55;
}
.shpitto-stock-media--enterprise-proof {
  max-width: 42rem;
}
.proof-strip .shpitto-stock-media--enterprise-proof {
  margin-inline: auto;
}
.proof-strip .shpitto-stock-media--enterprise-proof img {
  aspect-ratio: 5 / 3;
  border-radius: 0.5rem;
  border: 1px solid var(--line, #e0e0e0);
}
.proof-strip .shpitto-stock-media--enterprise-proof figcaption {
  max-width: 52ch;
}
.enterprise-hero {
  position: relative;
  overflow: hidden;
  min-height: clamp(28rem, 68vh, 44rem);
  display: flex;
  align-items: flex-end;
  isolation: isolate;
}
.enterprise-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(7, 27, 54, 0.78) 0%, rgba(7, 27, 54, 0.52) 42%, rgba(7, 27, 54, 0.18) 100%);
  z-index: 1;
}
.enterprise-hero .shell-inner,
.enterprise-hero .masthead-stack,
.enterprise-hero .enterprise-hero__content,
.enterprise-hero .enterprise-proof-row {
  position: relative;
  z-index: 2;
}
.enterprise-hero .enterprise-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  margin: 0;
  max-width: none;
}
.enterprise-hero .enterprise-hero__media .media-cover,
.enterprise-hero .enterprise-hero__media picture {
  width: 100%;
  height: 100%;
  display: block;
}
.enterprise-hero .enterprise-hero__media img {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
  border-radius: 0;
  border: 0;
}
.enterprise-hero .enterprise-hero__content {
  max-width: 44rem;
  color: white;
}
.enterprise-hero .enterprise-proof-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}
.enterprise-hero .enterprise-proof-row > * {
  backdrop-filter: blur(8px);
  background: rgba(7, 27, 54, 0.36);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 0.55rem 0.9rem;
}
.masthead--single-column .masthead-stack {
  display: grid;
  grid-template-columns: minmax(0, 1fr) !important;
}
.masthead--single-column .panel,
.masthead--single-column .proof-panel {
  max-width: 44rem;
}
.detail-layout .shpitto-stock-media,
.detail-grid .shpitto-stock-media {
  max-width: 32rem;
}
@media (max-width: 48rem) {
  .shpitto-stock-media--enterprise-proof,
  .detail-layout .shpitto-stock-media,
  .detail-grid .shpitto-stock-media {
    max-width: 100%;
  }
}
.page-title--measure {
  max-width: 20ch;
}
.proof-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}
.proof-figure {
  margin: 0;
  overflow: hidden;
}
.proof-figure__image {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.proof-figure__caption {
  padding: var(--space-4, 1rem);
  color: var(--text-subtle, #525252);
  font-size: 0.95rem;
}
.section-row--capability {
  align-items: end;
  margin-bottom: 1rem;
}
.section-row--cta {
  flex-wrap: wrap;
  align-items: center;
}
.stack--measure {
  max-width: 47.5rem;
}
.cta-surface {
  background: var(--surface);
}
.stack--section-intro {
  margin-bottom: var(--space-5);
}