/* Buyer-page chapters. The homepage keeps its separate illustrated system. */
@media screen {
  body:not(.home-page) {
    --ed-ink: #27362f;
    --ed-muted: #53645b;
    --ed-line: #d9e2dc;
    --ed-accent: #22664f;
    --ed-wash: #f1f7f3;
    --ed-blue: #345b83;
    --ed-brass: #87612d;
  }
  body:not(.home-page) main .editorial-intro {
    position: relative;
    min-width: 0;
    min-height: 0;
    padding-top: clamp(32px, 4.5vw, 62px);
    padding-bottom: clamp(28px, 3.5vw, 48px);
    color: var(--ed-ink);
    border-bottom: 1px solid var(--ed-line);
    background: linear-gradient(165deg, #f5f9f6 0%, #fff 42%);
  }
  body:not(.home-page) main[id] .editorial-intro h1 {
    max-width: 26ch;
    margin-top: 16px;
    color: var(--ed-ink);
    font-size: clamp(2.2rem, 3.7vw, 3.55rem);
    font-weight: 540;
    line-height: 1.1;
    letter-spacing: -.045em;
  }
  body:not(.home-page) main .editorial-intro :is(.resource-deck, .feature-hero-deck) {
    max-width: 66ch;
    color: var(--ed-muted);
    line-height: 1.75;
  }
  body:not(.home-page) main .editorial-intro .resource-meta {
    gap: 8px 20px;
    margin-top: 22px;
    font-size: .8125rem;
    font-weight: 500;
  }
  body:not(.home-page) main .editorial-intro .eyebrow { color: var(--ed-accent); }
  body:not(.home-page) main .editorial-intro .resource-visual {
    max-width: 100%;
    margin-top: 28px;
    border: 1px solid var(--ed-line);
    border-radius: 12px;
    box-shadow: 0 12px 32px #273e3010;
  }
  body:not(.home-page) main .editorial-intro .resource-visual figcaption {
    padding: 16px 20px;
    color: var(--ed-muted);
    background: #f5f8f5;
  }
  body:not(.home-page) main .decision-summary {
    min-width: 0;
    margin-block: 24px 32px;
    padding: clamp(22px, 3vw, 36px);
    border: 1px solid var(--ed-line);
    border-top: 3px solid var(--ed-accent);
    border-radius: 4px 14px 14px 4px;
    color: var(--ed-ink);
    background: var(--ed-wash);
    box-shadow: none;
  }
  body:not(.home-page) main > .decision-summary,
  body:not(.home-page) main > article > .decision-summary {
    width: min(1180px, calc(100% - 40px));
    margin-inline: auto;
  }
  body:not(.home-page) main .resource-content > .decision-summary {
    margin-top: 0;
    margin-bottom: 38px;
    scroll-margin-top: 120px;
  }
  body:not(.home-page) main[id] .decision-summary h2 { margin-top: 10px; font-size: clamp(1.45rem, 2.2vw, 2.05rem); }
  body:not(.home-page) main .decision-kicker {
    color: var(--ed-accent);
    font-size: .75rem;
    font-weight: 650;
    letter-spacing: .08em;
    line-height: 1.6;
    text-transform: uppercase;
  }
  body:not(.home-page) main .decision-facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    min-width: 0;
    margin: 22px 0 0;
  }
  body:not(.home-page) main .decision-facts > div { min-width: 0; padding: 0 22px; }
  body:not(.home-page) main .decision-facts > div:first-child { padding-left: 0; }
  body:not(.home-page) main .decision-facts > div:last-child { padding-right: 0; }
  body:not(.home-page) main .decision-facts > div + div { border-left: 1px solid #bed3c6; }
  body:not(.home-page) main .decision-facts dt { color: var(--ed-accent); font-size: .8125rem; font-weight: 650; line-height: 1.5; }
  body:not(.home-page) main .decision-facts dd { margin: 8px 0 0; color: var(--ed-ink); font-size: .9375rem; line-height: 1.65; }
  body:not(.home-page) main .decision-note { margin-top: 20px; color: var(--ed-muted); font-size: .875rem; line-height: 1.7; }
  body:not(.home-page) main .resource-callout.decision-note { padding: 16px 20px; border-left-color: var(--ed-brass); background: #fffaf0; }
  body:not(.home-page) main .decision-summary .table-scroll { background: #fff; box-shadow: none; }
  body:not(.home-page) main .resource-body { gap: clamp(30px, 4vw, 60px); }
  body:not(.home-page) main .resource-toc {
    border: 0;
    border-left: 2px solid var(--ed-line);
    border-radius: 0;
    padding: 0 0 0 10px;
    background: #fff;
    box-shadow: none;
  }
  body:not(.home-page) main .resource-content > section:not(.decision-summary) {
    padding-bottom: 36px;
    margin-bottom: 28px;
    border-bottom: 1px solid var(--ed-line);
  }
  body:not(.home-page) main .resource-content > section:last-child { margin-bottom: 0; }
  body:not(.home-page) main .next-step-panel {
    width: min(1180px, calc(100% - 40px));
    margin: 12px auto 64px;
    padding: clamp(24px, 4vw, 42px);
    gap: 26px;
    border: 1px solid #c8dbcf;
    border-left: 4px solid var(--ed-accent);
    border-radius: 4px 16px 16px 4px;
    color: var(--ed-ink);
    background: #eef5f0;
    box-shadow: none;
  }
  body:not(.home-page) main .next-step-panel h2 { color: var(--ed-ink); }
  body:not(.home-page) main .next-step-panel p { color: var(--ed-muted); }
  body:not(.home-page) main .next-step-panel .button-secondary { color: var(--ed-ink); border-color: #b9cfc0; background: #fff; }
  body:not(.home-page) main .next-step-panel .cta-actions { flex-wrap: wrap; }

  /* Capabilities: make the named handover and correction easy to return to. */
  .feature-page main .editorial-intro { width: min(1360px, calc(100% - 40px)); margin-inline: auto; padding-inline: clamp(0px, 2vw, 30px); gap: 40px; }
  .feature-page main .editorial-intro::before, .feature-page main .editorial-intro::after { display: none; }
  .feature-page main .editorial-intro .breadcrumb { color: var(--ed-muted); }
  .feature-page main .editorial-intro .breadcrumb a { color: var(--ed-accent); }
  .feature-page main .feature-hero-proof { margin-top: 26px; }
  .feature-page main .feature-hero-proof li { border-color: #c4d7cc; }
  .feature-page main .feature-hero-proof strong { color: var(--ed-ink); }
  .feature-page main .feature-hero-proof span { color: var(--ed-muted); font-size: .8125rem; }
  .feature-page main .feature-hero .button-glass { color: var(--ed-ink); border-color: #b9cfc0; background: #fff; }
  .feature-page main .operation-card { border-radius: 4px 14px 14px 4px; border-top-width: 3px; box-shadow: none; }
  .feature-page main .operation-blue { border-top-color: #287958; }
  .feature-page main .operation-gold { border-top-color: #966728; }
  .feature-page main .feature-focus { scroll-margin-top: 124px; }
  .feature-page main .feature-focus:target { outline: 3px solid #287958; outline-offset: 5px; opacity: 1; transform: none; }
  .feature-page main .availability-section.decision-summary { display: block; }

  /* Pricing is a commercial comparison, not another gallery of feature cards. */
  .pricing-page main .cost-story { max-width: 100%; margin-bottom: 0; }
  .pricing-page main .cost-story .decision-facts dd > strong { font-size: 1.3rem; font-weight: 600; line-height: 1.35; }
  .pricing-page main .pricing-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .pricing-page main .price-card { min-width: 0; border-radius: 10px; border-top: 3px solid #b9cbc0; padding: 26px; background: #fff; box-shadow: none; }
  .pricing-page main .price-card.featured { border-color: #a8c8b6; border-top-color: var(--ed-accent); background: #f5faf6; }
  .pricing-page main .price-card:nth-child(3) { border-top-color: var(--ed-brass); }
  .pricing-page main .price-card:nth-child(4) { border-top-color: var(--ed-blue); }
  .pricing-page main .price-card h3 { margin-top: 14px; font-size: 1.45rem; }
  .pricing-page main .price-card .price-list { line-height: 1.7; }

  /* Trust: named controls and a visible review sequence. */
  .trust-centre-page main .trust-bento-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .trust-centre-page main .trust-bento-card { min-height: 0; padding: 26px; border-radius: 8px; border-top: 3px solid #c1d6c9; background: #fff; box-shadow: none; }
  .trust-centre-page main .trust-bento-card::after { display: none; }
  .trust-centre-page main .trust-bento-card h3 { margin-top: 18px; }
  .trust-centre-page main .trust-bento-dark { color: var(--ed-ink); border-top-color: var(--ed-blue); background: #f2f6fb; }
  .trust-centre-page main .trust-bento-dark p { color: var(--ed-muted); }
  .trust-centre-page main .control-index { color: var(--ed-accent); }
  .trust-centre-page main .evidence-chip { border-radius: 4px; color: #2c5e45; background: #eaf4ed; font-weight: 550; }
  .trust-centre-page main .evidence-room.decision-summary { gap: 36px; }
  .trust-centre-page main .evidence-steps li { padding: 14px 0; border: 0; border-bottom: 1px solid #c8d8cd; border-radius: 0; background: none; }
  .trust-centre-page main .evidence-steps li > span { color: #fff; background: var(--ed-accent); border-radius: 6px; }

  /* Resource categories become an index; device problems keep their response beside them. */
  body:not(.home-page) main .resource-library-grid.decision-library { display: block; border-top: 2px solid var(--ed-accent); }
  body:not(.home-page) main .decision-library > .resource-card {
    display: grid;
    grid-template-columns: minmax(110px, .3fr) minmax(0, 1fr) minmax(120px, .35fr);
    gap: 10px 28px;
    min-height: 0;
    margin: 0;
    padding: 28px 12px;
    border: 0;
    border-bottom: 1px solid var(--ed-line);
    border-radius: 0;
    color: var(--ed-ink);
    background: #fff;
    box-shadow: none;
    transform: none;
  }
  body:not(.home-page) main .decision-library > .resource-card .resource-card-meta { grid-column: 1; grid-row: 1 / 3; max-width: 18ch; color: var(--ed-accent); }
  body:not(.home-page) main[id] .decision-library > .resource-card h2 { grid-column: 2; margin: 0; font-size: 1.45rem; }
  body:not(.home-page) main .decision-library > .resource-card p { grid-column: 2; margin: 0; color: var(--ed-muted); }
  body:not(.home-page) main .decision-library > .resource-card a { grid-column: 3; grid-row: 1 / 3; align-self: center; margin: 0; color: var(--ed-accent); }
  body:not(.home-page) main .decision-library > .resource-card:hover { transform: none; box-shadow: none; }
  body:not(.home-page) main .smart-problem-grid.decision-library { display: block; }
  body:not(.home-page) main .smart-problem-grid.decision-library > article { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 28px; padding: 30px 0; border: 0; border-top: 1px solid var(--ed-line); border-radius: 0; background: #fff; box-shadow: none; }
  body:not(.home-page) main .smart-problem-grid.decision-library .problem-number { grid-column: 1; grid-row: 1; }
  body:not(.home-page) main .smart-problem-grid.decision-library .problem-label { grid-column: 1; grid-row: 1; margin-left: 42px; align-self: center; }
  body:not(.home-page) main .smart-problem-grid.decision-library h3 { grid-column: 1 / -1; grid-row: 2; margin: 0; }
  body:not(.home-page) main .smart-problem-grid.decision-library > article > p:not(.problem-label) { grid-column: 1; grid-row: 3; margin: 0; }
  body:not(.home-page) main .smart-problem-grid.decision-library .approach-block { grid-column: 2; grid-row: 3; margin: 0; padding: 16px 20px; border-left: 3px solid #83b299; background: #f2f8f4; }
  body:not(.home-page) main .smart-problem-grid.decision-library > article > small { grid-column: 1; grid-row: 4; }
  body:not(.home-page) main .smart-problem-grid.decision-library .problem-deep-link { grid-column: 2; grid-row: 4; margin: 0; }
  .tour-page main .tour-hero.editorial-intro { width: min(1180px, calc(100% - 40px)); text-align: left; }
  .tour-page main .tour-hero.editorial-intro .breadcrumb { justify-content: flex-start; }
  .tour-page main .tour-hero.editorial-intro h1 { margin-left: 0; }
  .tour-page main .tour-hero.editorial-intro > p { margin-left: 0; }
  .tour-page main .tour-summary.decision-summary { margin-bottom: 0; }

  @media (max-width: 1000px) {
    .feature-page main .editorial-intro { grid-template-columns: minmax(0, 1fr); }
    body:not(.home-page) main .decision-library > .resource-card { grid-template-columns: minmax(100px, .3fr) minmax(0, 1fr); }
    body:not(.home-page) main .decision-library > .resource-card a { grid-column: 2; grid-row: auto; align-self: start; }
  }
  @media (max-width: 760px) {
    body:not(.home-page) main .decision-facts { grid-template-columns: minmax(0, 1fr); }
    body:not(.home-page) main .decision-facts > div { padding: 16px 0; }
    body:not(.home-page) main .decision-facts > div:first-child { padding-top: 0; }
    body:not(.home-page) main .decision-facts > div + div { border-left: 0; border-top: 1px solid #bed3c6; }
    body:not(.home-page) main .next-step-panel { grid-template-columns: minmax(0, 1fr); }
    .pricing-page main .pricing-summary-grid, .trust-centre-page main .trust-bento-grid { grid-template-columns: minmax(0, 1fr); }
    .trust-centre-page main .trust-bento-wide { grid-column: auto; }
    .trust-centre-page main .evidence-room.decision-summary { grid-template-columns: minmax(0, 1fr); gap: 20px; }
    body:not(.home-page) main .smart-problem-grid.decision-library > article { display: block; }
    body:not(.home-page) main .smart-problem-grid.decision-library .problem-label { margin: 10px 0; }
    body:not(.home-page) main .smart-problem-grid.decision-library h3 { margin-bottom: 16px; }
    body:not(.home-page) main .smart-problem-grid.decision-library .approach-block { margin-block: 18px; }
    body:not(.home-page) main .smart-problem-grid.decision-library .problem-deep-link { margin-top: 12px; }
  }
  @media (max-width: 540px) {
    body:not(.home-page) main[id] .editorial-intro h1 { font-size: clamp(2rem, 8.3vw, 2.7rem); }
    body:not(.home-page) main .decision-library > .resource-card { display: block; padding-inline: 0; }
    body:not(.home-page) main .decision-library > .resource-card .resource-card-meta { display: block; max-width: none; margin-bottom: 12px; }
    body:not(.home-page) main .decision-library > .resource-card p { margin-top: 12px; }
    body:not(.home-page) main .decision-library > .resource-card a { display: inline-block; margin-top: 12px; }
    body:not(.home-page) main .next-step-panel { margin-bottom: 42px; }
  }
  @media (forced-colors: active) {
    body:not(.home-page) main :is(.decision-summary, .next-step-panel, .price-card, .trust-bento-card) { border: 1px solid CanvasText; }
    body:not(.home-page) main .feature-focus:target { outline-color: Highlight; }
  }
}
