.industry-page {
  --industry-surface: color-mix(in srgb, var(--av-color-background) 88%, var(--av-color-foreground));
  --industry-surface-raised: color-mix(in srgb, var(--av-color-background) 82%, var(--av-color-primary));
  --industry-copy: color-mix(in srgb, var(--av-color-foreground) 72%, transparent);
  --industry-muted: color-mix(in srgb, var(--av-color-foreground) 54%, transparent);
}

.industry-page .product-shell { padding-bottom: clamp(4rem, 8vw, 8rem); }

.industry-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(21rem, .95fr);
  gap: clamp(2rem, 6vw, 7rem);
  align-items: end;
  padding: clamp(4.5rem, 8vw, 8rem) 0 clamp(3.5rem, 6vw, 6rem);
  border-bottom: 1px solid var(--av-color-border);
}

.industry-context {
  margin: 0 0 1.25rem;
  color: var(--av-color-primary);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
}

.industry-hero h1 {
  max-width: 12ch;
  margin: 0;
  font-size: clamp(3.2rem, 6.4vw, 7rem);
  line-height: .9;
  letter-spacing: -.065em;
  text-wrap: balance;
}

.industry-hero-summary { max-width: 46rem; }
.industry-lede { margin: 0; color: var(--industry-copy); font-size: clamp(1rem, 1.3vw, 1.3rem); line-height: 1.55; }
.industry-snapshot { margin: 1.5rem 0 0; color: var(--industry-muted); font-size: .8rem; }
.industry-snapshot b { color: var(--av-color-foreground); }
.industry-hero nav { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.75rem; }

.industry-hero nav a,
.compare-controls button {
  min-height: 2.75rem;
  padding: .75rem 1rem;
  border: 1px solid var(--av-color-border-strong);
  border-radius: var(--av-radius-md);
  color: var(--av-color-foreground);
  font-size: .78rem;
  line-height: 1.2;
}

.industry-hero nav a:hover,
.industry-hero nav a:focus-visible,
.compare-controls button:hover,
.compare-controls button:focus-visible { border-color: var(--av-color-primary); color: var(--av-color-primary); }

.industry-layout { padding-top: clamp(2.5rem, 5vw, 5rem); }
.industry-content { min-width: 0; }

.audience-grid,
.industry-card-grid,
.citizen-grid,
.industry-tool-grid,
.coverage-matrix,
.organization-compare {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--av-color-border);
  border-radius: var(--av-radius-md);
  background: var(--av-color-border);
}

.audience-grid,
.industry-card-grid,
.citizen-grid,
.organization-compare { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.industry-tool-grid,
.coverage-matrix { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.audience-grid article,
.industry-card-grid article,
.citizen-grid article,
.industry-tool-grid > a,
.coverage-matrix article,
.organization-compare article {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: clamp(1.35rem, 2.2vw, 2.25rem);
  background: var(--industry-surface);
}

.audience-grid article,
.citizen-grid article { min-height: 17rem; }

.audience-grid h2,
.industry-card-grid h2,
.citizen-grid h2 {
  margin: clamp(1.4rem, 3vw, 2.5rem) 0 .8rem;
  font-size: clamp(1.45rem, 2vw, 2rem);
  line-height: 1.05;
  letter-spacing: -.035em;
  text-wrap: balance;
}

.audience-grid p:not(.source-class),
.industry-card-grid p:not(.source-class),
.citizen-grid p,
.organization-compare p,
.environment-list p {
  max-width: 62ch;
  color: var(--industry-copy);
  font-size: .86rem;
  line-height: 1.65;
}

.audience-grid a,
.industry-card-grid a,
.citizen-grid a { margin-top: auto; padding-top: 1.25rem; color: var(--av-color-primary); font-size: .8rem; }

.industry-section { margin-top: clamp(4.5rem, 8vw, 8rem); scroll-margin-top: 6rem; }

.industry-section > h2,
.section-heading h2 {
  max-width: 18ch;
  margin: 0 0 clamp(1.5rem, 3vw, 2.5rem);
  font-size: clamp(2rem, 3.6vw, 4rem);
  line-height: .98;
  letter-spacing: -.05em;
  text-wrap: balance;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(16rem, .8fr);
  gap: clamp(1.5rem, 5vw, 5rem);
  align-items: end;
  margin-bottom: 2rem;
}

.section-heading h2 { margin-bottom: 0; }
.section-heading p { margin: 0; color: var(--industry-copy); line-height: 1.6; }
.industry-tool-grid > a,
.coverage-matrix article { min-height: 13rem; }

.industry-tool-grid > a > span,
.coverage-matrix article > div { color: var(--industry-muted); font-size: .68rem; letter-spacing: .04em; }

.industry-tool-grid h3,
.coverage-matrix h3 {
  margin: 2rem 0 .75rem;
  color: var(--av-color-foreground);
  font-size: clamp(1.2rem, 1.7vw, 1.65rem);
  line-height: 1.05;
}

.industry-tool-grid p,
.coverage-matrix p { margin: 0; color: var(--industry-copy); font-size: .78rem; line-height: 1.55; }
.industry-tool-grid b { margin-top: auto; padding-top: 1.2rem; color: var(--av-color-primary); font-size: .78rem; }
.coverage-matrix article { border-top: 3px solid var(--av-color-border-strong); }
.coverage-matrix article.is-strong { border-top-color: var(--av-color-success, var(--av-color-primary)); }
.coverage-matrix article.is-partial { border-top-color: var(--av-color-primary); }
.coverage-matrix article.is-initial { border-top-color: var(--av-color-warning); }
.coverage-matrix article.is-gap { border-top-color: var(--av-color-danger, var(--av-color-warning)); }
.coverage-matrix article > div { display: flex; justify-content: space-between; text-transform: lowercase; }
.industry-tool { margin-bottom: 2rem; }

.industry-toolbar,
.compare-controls {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: 1rem;
  padding: 1.25rem;
  border: 1px solid var(--av-color-border);
  border-radius: var(--av-radius-md);
  background: var(--industry-surface);
}

.industry-toolbar label,
.compare-controls label { display: flex; min-width: 15rem; flex-direction: column; gap: .55rem; color: var(--industry-muted); font-size: .68rem; }

.industry-toolbar select,
.compare-controls select {
  min-height: 2.75rem;
  border: 1px solid var(--av-color-border-strong);
  border-radius: var(--av-radius-md);
  background: var(--av-color-background);
  padding: .7rem .85rem;
  color: var(--av-color-foreground);
}

.money-filters { display: flex; flex-wrap: wrap; gap: .75rem; }
.industry-toolbar p { display: grid; gap: .25rem; margin: 0; }
.industry-toolbar p b { color: var(--av-color-primary); font-size: 1.4rem; }
.industry-toolbar p span { color: var(--industry-muted); font-size: .72rem; }

.industry-table-wrap { overflow: auto; border: 1px solid var(--av-color-border); border-radius: var(--av-radius-md); }
.industry-table-wrap table { width: 100%; min-width: 46rem; border-collapse: collapse; background: var(--industry-surface); }
.industry-table-wrap th,
.industry-table-wrap td { padding: 1rem; border-bottom: 1px solid var(--av-color-border); text-align: left; font-size: .78rem; vertical-align: top; }
.industry-table-wrap th { color: var(--industry-muted); font-size: .66rem; }
.industry-table-wrap td span { display: block; margin-top: .4rem; color: var(--industry-copy); }
.industry-card-grid dl { margin: auto 0 0; border-top: 1px solid var(--av-color-border); }
.industry-card-grid dl div { display: grid; grid-template-columns: 7rem minmax(0, 1fr); gap: .75rem; padding: .65rem 0; border-bottom: 1px solid var(--av-color-border); }
.industry-card-grid dd,
.organization-compare dd { margin: 0; }
.industry-sources { color: var(--industry-muted) !important; font-size: .7rem !important; overflow-wrap: anywhere; }
.industry-sources a { padding: 0 !important; color: var(--av-color-primary); }

.industry-boundary {
  padding: 1.5rem;
  border: 1px solid var(--av-color-border);
  border-top: 3px solid var(--av-color-warning);
  border-radius: var(--av-radius-md);
  background: var(--industry-surface-raised);
}

.industry-boundary p { color: var(--industry-copy); font-size: .78rem; line-height: 1.6; }
.industry-boundary a { color: var(--av-color-primary); font-size: .75rem; }
.history-timeline { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--av-color-border); }
.history-timeline li { display: grid; grid-template-columns: 10rem minmax(0, 1fr); gap: 2rem; padding: 1.75rem 0; border-bottom: 1px solid var(--av-color-border); }
.history-timeline time { color: var(--av-color-primary); font-size: 1.5rem; font-weight: 700; }

.environment-list { display: grid; gap: 1px; overflow: hidden; border: 1px solid var(--av-color-border); border-radius: var(--av-radius-md); background: var(--av-color-border); }
.environment-list > article { display: grid; grid-template-columns: minmax(14rem, .8fr) minmax(0, 1.2fr); gap: clamp(2rem, 5vw, 5rem); padding: clamp(1.5rem, 3vw, 3rem); background: var(--industry-surface); }
.environment-list aside { padding: 1rem; border-left: 2px solid var(--av-color-warning); background: var(--industry-surface-raised); }
.compare-controls button { background: transparent; cursor: pointer; }
.organization-compare article { min-height: 18rem; }
.organization-compare h3 { font-size: clamp(1.5rem, 2.4vw, 2.3rem); line-height: 1.05; }
.organization-compare dl div { display: flex; justify-content: space-between; gap: 1rem; padding: .65rem 0; border-bottom: 1px solid var(--av-color-border); }
.module-list article,
.reference-callout { border-color: var(--av-color-border); }

@media (min-width: 100rem) {
  .industry-page .product-shell { width: min(calc(100% - 6rem), 108rem); max-width: none; }
  .industry-layout { display: grid; grid-template-columns: minmax(0, 4fr) minmax(18rem, 1fr); gap: clamp(3rem, 5vw, 6rem); align-items: start; }
  .industry-boundary { position: sticky; top: 6rem; }
  .audience-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .industry-card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 145rem) {
  .industry-page .product-shell { width: min(calc(100% - 10rem), 134rem); }
  .industry-hero { grid-template-columns: repeat(16, minmax(0, 1fr)); }
  .industry-hero > div:first-child { grid-column: 1 / span 8; }
  .industry-hero-summary { grid-column: 10 / -1; }
  .industry-layout { grid-template-columns: minmax(0, 13fr) minmax(20rem, 3fr); }
}

@media (max-width: 68rem) {
  .industry-hero,
  .section-heading,
  .environment-list > article { grid-template-columns: 1fr; }
  .industry-tool-grid,
  .coverage-matrix { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .industry-toolbar,
  .compare-controls { align-items: stretch; flex-direction: column; }
}

@media (max-width: 46rem) {
  .industry-hero { gap: 1.75rem; padding-top: 3rem; }
  .industry-hero h1 { font-size: clamp(2.75rem, 14vw, 4.4rem); }
  .industry-hero nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .industry-hero nav a { display: grid; place-items: center; text-align: center; }
  .audience-grid,
  .industry-card-grid,
  .citizen-grid,
  .industry-tool-grid,
  .coverage-matrix,
  .organization-compare { grid-template-columns: 1fr; }
  .audience-grid article,
  .citizen-grid article { min-height: 14rem; }
  .history-timeline li { grid-template-columns: 1fr; gap: .75rem; }
  .industry-toolbar label,
  .compare-controls label { min-width: 0; }
}

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