.ribbon-years { margin-left: auto; }
[data-design="classic"] .modern-only,
:root:not([data-design="classic"]) .classic-only { display: none !important; }
@media (max-width: 650px) {
  .ribbon-inner { flex-wrap: wrap; gap: 0 6px; }
}

/* The new catalogue uses paper, ink, and one blue for navigation. */
:root:not([data-design="classic"]) {
  --catalog-paper: #f7f7f3;
  --catalog-navy: #202c3b;
  --catalog-muted: #52606d;
  --catalog-line: #cbd1d1;
  --paper: var(--catalog-paper);
  --ink: var(--catalog-navy);
  --edition-blue: #294eaf;
  --frame: min(1192px, calc(100% - clamp(32px, 8vw, 144px)));
  --small-body: clamp(14px, 1.08vw, 16px);
  scroll-padding-top: 24px;

  & body { background: var(--catalog-paper); }
  & .mast { display: contents; }
  & .mast .review-ribbon, & .mast .readline { display: none; }
  & .mast .headrow {
    width: var(--frame); min-height: 64px; position: relative; z-index: 8;
    padding: 8px clamp(16px, 2vw, 30px); margin: 20px auto 0;
    gap: 20px; border: 1px solid #d6dbd8; border-radius: 40px;
    background: #fff; box-shadow: 0 2px 8px #1b293308;
  }
  & .headrow .brand { color: var(--ink); font-size: clamp(18px, 1.58vw, 24px); }
  & .headrow .brandmark { color: #355da1; }
  & .headrow #navigation { gap: clamp(12px, 1.8vw, 26px); }
  & .headrow #navigation a {
    color: #34404b; background: none; padding-inline: 0; border-radius: 0;
    font-size: 14px; font-weight: 540;
  }
  & .headrow #navigation a:hover, & .headrow #navigation a[aria-current] {
    color: var(--edition-blue); text-decoration: underline; text-underline-offset: 6px;
  }
  & .mast .header-buy {
    min-height: 44px; border-radius: 30px; padding-inline: 17px;
    background: #273e75; box-shadow: none; color: white; font-size: 14px;
  }
  & .mast .header-buy:hover { background: #1b2d59; }
  & main, & .catalog-footer { width: var(--frame); margin-inline: auto; }
  & .exam-shell, & .exam-pair { display: contents; }
  & .catalog-main > .catalog, & .catalog-main .reference-band > .wrap { padding-inline: 0; }
  & .catalog { padding-block: clamp(24px, 3vw, 42px) clamp(36px, 5vw, 64px); }
  & .catalog .section-title { padding-block: 18px clamp(22px, 3vw, 36px); }
  & .section-title h1 { font-size: clamp(38px, 4.6vw, 66px); }
  & .section-title p { max-width: 65ch; }
  & a:focus-visible, & button:focus-visible { outline-offset: 3px; }

  /* Two direct product routes; the adjacent reader is an optional preview. */
  & .catalog-entry {
    display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(0, 1fr);
    gap: clamp(26px, 5vw, 78px); align-items: center;
    padding-block: clamp(36px, 4.2vw, 62px) clamp(36px, 4.6vw, 68px);
  }
  & .entry-offers { min-width: 0; }
  & .entry-offers h1 {
    margin: 0; font-size: clamp(46px, 4.55vw, 70px); line-height: .99;
    letter-spacing: -.061em; font-weight: 650; text-wrap: balance;
  }
  & .entry-lead { margin-top: 17px; max-width: 43ch; color: var(--catalog-muted); font-size: clamp(16px, 1.28vw, 19px); line-height: 1.48; }
  & .product-index { margin-top: clamp(22px, 2.5vw, 36px); border-top: 1px solid #b5bfbe; }
  & .product-route {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline;
    gap: 5px 12px; padding: 16px 0; color: var(--ink); border-bottom: 1px solid #c7cecc;
  }
  & .route-name { font-size: clamp(19px, 1.65vw, 25px); font-weight: 610; letter-spacing: -.045em; line-height: 1.15; }
  & .route-price { white-space: nowrap; font-size: clamp(16px, 1.33vw, 20px); font-weight: 590; letter-spacing: -.035em; }
  & .route-note { grid-column: 1 / -1; color: var(--catalog-muted); font-size: var(--small-body); line-height: 1.4; }
  & .route-action {
    grid-column: 1 / -1; display: inline-flex; align-items: center; gap: 8px;
    justify-self: start; color: var(--edition-blue); font-weight: 560; font-size: 14px;
  }
  & .product-route:hover .route-action, & .product-route:focus-visible .route-action { text-decoration: underline; text-underline-offset: 4px; }
  & .entry-region {
    display: inline-flex; align-items: center; gap: 10px; min-height: 44px;
    margin-top: 5px; color: var(--edition-blue); font-weight: 530; font-size: 14px;
  }
  & .entry-region:hover, & .reader-page figcaption a:hover { text-decoration: underline; text-underline-offset: 4px; }

  & .material-reader { min-width: 0; border-radius: 20px; overflow: hidden; border: 1px solid #cbd5de; background: #e1e9f4; }
  & .reader-bar, & .reader-page figcaption { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
  & .reader-bar { min-height: 56px; padding: 6px clamp(14px, 1.55vw, 22px); }
  & .reader-bar > strong { color: #30435a; font-size: 14px; font-weight: 570; }
  & .reader-tabs { display: flex; align-items: center; gap: 2px; }
  & .reader-tabs a {
    display: grid; place-items: center; min-width: 45px; min-height: 36px; padding: 4px 10px;
    border: 1px solid transparent; border-radius: 30px; font-size: 13px; font-weight: 600; color: #41546d;
  }
  & .reader-tabs a[aria-selected="true"] { color: #17324d; border-color: #b1c0d1; background: #fbfcff; }
  & .reader-tabs a:hover { color: #183a75; }
  & .reader-page { margin: 0; }
  & .reader-page[hidden] { display: none; }
  & .proof-stage { position: relative; isolation: isolate; height: clamp(248px, 23vw, 326px); }
  & .reader-back-sheet, & .reader-photo-sheet {
    position: absolute; background: #fffef9; box-shadow: 0 2px 2px #1f33401a, 0 10px 19px #27394e26;
  }
  & .reader-back-sheet {
    top: 4%; left: 14%; height: 88%; width: 35%; object-fit: cover; object-position: top; transform: rotate(-8deg);
  }
  & .reader-photo-sheet {
    top: 2%; right: 17%; height: 92%; width: 37%; padding: 2.25%;
    transform: rotate(6deg); display: flex; flex-direction: column; gap: 5px; color: #253748;
  }
  & .reader-paper-line { display: flex; justify-content: space-between; padding-bottom: 3px; border-bottom: 1px solid #b6bcb8; font-size: clamp(8px, .7vw, 11px); }
  & .reader-photo-sheet > strong { font: 700 clamp(18px, 1.8vw, 28px)/1 Georgia, serif; }
  & .reader-photo-sheet > img { width: 100%; min-height: 0; height: 0; flex: 1; object-fit: cover; object-position: center 36%; }
  & .reader-photo-sheet > small { font-size: clamp(8px, .72vw, 11px); }
  & .oge-proof { display: grid; place-items: center; }
  & .oge-proof img { width: 77%; height: 87%; object-fit: contain; background: #fffdf7; border: 8px solid #fffdf7; transform: rotate(-4deg); box-shadow: 0 8px 20px #27394e32; }
  & .reader-page figcaption {
    padding: 4px clamp(14px, 1.55vw, 22px); min-height: 54px; color: #344860;
    font-size: 14px; background: #eef3f9; border-top: 1px solid #c9d4df;
  }
  & .reader-page figcaption a { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; font-weight: 600; color: #25437a; }

  /* The archive shows real files at the point where the channel makes its claim. */
  & .home-archive { display: block; background: #233448; color: #fff; border: 0; border-radius: 22px; box-shadow: none; animation: none; }
  & .archive-entry {
    display: grid; grid-template-columns: minmax(0, .91fr) minmax(0, 1fr); align-items: center;
    gap: clamp(24px, 5vw, 72px); padding: clamp(24px, 3.2vw, 48px);
  }
  & .archive-date { color: #c4dfdc; font-size: 15px; letter-spacing: -.015em; margin-bottom: 13px; }
  & .home-archive h2 { color: #fff; font-size: clamp(34px, 3.5vw, 54px); line-height: 1.02; }
  & .home-archive p { max-width: 41ch; margin-top: 12px; font-size: 16px; color: #d1dce4; }
  & .archive-jump { color: #fff; min-height: 44px; margin-top: 12px; text-decoration: underline; text-decoration-color: #708597; text-underline-offset: 5px; }
  & .file-index { min-width: 0; border-top: 1px solid #5a6b79; }
  & .file-index a {
    display: grid; grid-template-columns: 32px minmax(0, 1fr) auto 18px; align-items: center;
    gap: 12px; padding-block: 15px; color: #f4f8fb; border-bottom: 1px solid #506274;
  }
  & .file-leaf {
    display: grid; place-items: center; width: 30px; height: 37px; padding-top: 5px; border-radius: 2px;
    background: #dbe5e1; color: #293f4c; clip-path: polygon(0 0, 69% 0, 100% 24%, 100% 100%, 0 100%);
    font: 640 10px/1 var(--sans);
  }
  & .file-description { display: grid; gap: 3px; }
  & .file-description strong { font-size: 16px; font-weight: 550; }
  & .file-description small, & .file-size { color: #c2d0d9; font-size: 13px; line-height: 1.35; }
  & .file-open { justify-self: end; color: #c8e2db; }
  & .file-index a:hover .file-description strong { text-decoration: underline; text-underline-offset: 4px; }
  & .archive-more > summary { display: none; }
  & .home-seasons { background: transparent; color: var(--ink); }
  & .season-index {
    grid-template-columns: 1fr auto; align-items: center; gap: 16px;
    padding: clamp(25px, 3.1vw, 44px) 0;
  }
  & .home-seasons h2 { font-size: clamp(23px, 2vw, 30px); font-weight: 600; }

  /* Pages beyond the catalogue share the same margins and reading width. */
  & .catalog-main .reference-band { margin-bottom: 34px; padding-block: 28px; border-block: 1px solid var(--catalog-line); background: transparent; }
  & .catalog-main .chapter-link { background: transparent; }
  & .exam-switch { border: 1px solid #cad1ce; background: #e9ece7; }
  & .exam-switch a[aria-current="true"] { color: var(--ink); background: white; }
  & .ink-button { background: #294980; border-radius: 11px; }
  & .ink-button:hover { background: #1b3463; }
  & .catalog .vip-spread, & .catalog .oral-spread, & .catalog .archive { border-radius: 18px; border-color: #ccd3d1; }
  & .catalog .vip-index, & .catalog .specimen { background: #e1e9f4; }
  & .catalog .subject-index { background: #fefefa; }
  & .catalog .archive { background: #e4ebe5; }
  & .exam-offer-sheet, & .exam-offer-sheet + .exam-offer-sheet {
    border: 1px solid #c9d1ce; border-radius: 16px; background: #fffefa;
  }
  & .exam-offer-sheet .offer-title { min-height: 118px; }
  & .exam-offer-sheet .spec-list dt, & .oral-offer-sheet .spec-list dt { color: #4c5b69; }
  & .exam-offer-sheet .ink-button { width: 100%; }
  & .reading-spread .toc { top: 26px; }
  & .reading-body section { scroll-margin-top: 24px; }
  & .review-source { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--edition-blue); font-size: 14px; font-weight: 520; }
  & .review-source:hover { text-decoration: underline; text-underline-offset: 4px; }

  /* A colophon, not a fourth promotional panel. */
  & .catalog-footer {
    margin: 0 auto; border-top: 1px solid #bac4c3; color: #34414c; background: transparent;
  }
  & .footer-layout, & .footer-documents { padding-inline: 0; max-width: none; }
  & .footer-layout { align-items: center; padding-block: 15px; gap: 6px 20px; }
  & .footer-layout .brand { font-size: 18px; color: #354353; letter-spacing: -.055em; gap: 8px; }
  & .footer-layout .brandmark { color: #526777; width: 18px; height: 13px; }
  & .footer-layout > div { gap: 0 16px; }
  & .footer-layout > div a, & .footer-layout > div:last-child a {
    min-height: 44px; color: #394b59; font-size: 14px; background: transparent;
    font-weight: 500; border: 0; border-radius: 0; padding: 0;
  }
  & .footer-documents { border-top: 1px solid #d4dad6; padding-block: 2px 10px; gap: 0 20px; }
  & .footer-documents a { color: #52606b; font-size: 13px; font-weight: 450; }
  & .footer-documents a:hover { color: var(--edition-blue); }
}

@media (max-width: 1050px) {
  :root:not([data-design="classic"]) {
    & .headrow .buy-label { display: none; }
    & .headrow .buy-short { display: inline; }
    & .catalog-entry { gap: 26px; }
    & .route-name { font-size: 19px; }
  }
}
@media (max-width: 930px) {
  :root:not([data-design="classic"]) {
    & .mast .headrow { min-height: 56px; padding: 4px 14px; gap: 10px; }
    & .headrow .header-buy { order: 0; margin-left: auto; }
    & .headrow .menubtn { display: flex; align-items: center; gap: 7px; min-height: 44px; background: none; color: var(--ink); padding: 0 4px; border: 0; font-size: 14px; }
    & .headrow .menubtn i { width: 16px; height: 9px; border-block: 1.5px solid; }
    & .headrow #navigation { display: none; }
    & .headrow #navigation.shown {
      display: grid; position: absolute; inset: calc(100% + 8px) 0 auto; gap: 0;
      padding: 8px 18px; border: 1px solid #cbd4d1; border-radius: 16px;
      background: #fff; box-shadow: 0 8px 20px #1325361c;
    }
    & #navigation.shown a { min-height: 46px; border-top: 1px solid #e2e7e4; }
    & #navigation.shown a:first-child { border: 0; }
    & .catalog-entry { grid-template-columns: minmax(0, 1.03fr) minmax(0, .97fr); }
    & .entry-offers h1 { font-size: clamp(40px, 5vw, 48px); }
    & .archive-entry { gap: 24px; }
  }
}
@media (max-width: 740px) {
  :root:not([data-design="classic"]) {
    --frame: min(100% - 32px, 560px);
    & .mast .headrow { margin-top: 10px; }
    & .catalog-entry { grid-template-columns: 1fr; gap: 18px; padding-block: 28px; }
    & .entry-offers h1 { font-size: clamp(38px, 8.5vw, 50px); }
    & .entry-lead { margin-top: 12px; font-size: 16px; }
    & .product-index { margin-top: 18px; }
    & .product-route { padding-block: 14px; }
    & .route-note { font-size: 14px; }
    & .route-price { font-size: 15px; }
    & .entry-region { margin-top: 0; }
    & .reader-bar { min-height: 48px; padding-block: 3px; }
    & .reader-tabs a { min-height: 44px; }
    & .proof-stage { height: clamp(190px, 53vw, 260px); }
    & .reader-page figcaption { min-height: 48px; }
    & .archive-entry { grid-template-columns: 1fr; gap: 14px; padding: 22px 18px 18px; }
    & .home-archive h2 { font-size: clamp(30px, 7.5vw, 42px); }
    & .home-archive p { font-size: 15px; margin-top: 8px; }
    & .archive-jump { margin-top: 4px; }
    & .archive-date { font-size: 14px; margin-bottom: 9px; }
    & .file-index a { padding-block: 12px; }
    & .file-size { display: none; }
    & .file-index a { grid-template-columns: 30px minmax(0, 1fr) 16px; }
    & .archive-more > summary {
      cursor: pointer; display: flex; align-items: center; gap: 8px; min-height: 44px;
      color: #d5e4ed; font-size: 14px; font-weight: 500; list-style: none;
    }
    & .archive-more summary::-webkit-details-marker { display: none; }
    & .archive-more summary::after { content: "+"; font-size: 18px; }
    & .archive-more[open] summary::after { content: "−"; }
    & .archive-more[open] .when-closed, & .archive-more:not([open]) .when-open { display: none; }
    & .season-index { grid-template-columns: 1fr; gap: 5px; padding-block: 20px; }
    & .footer-layout { display: grid; grid-template-columns: 1fr; gap: 2px; padding-block: 12px; }
    & .footer-layout > div { flex-wrap: wrap; gap: 0 14px; }
    & .footer-layout > div:nth-child(2) { display: none; }
    & .footer-layout > div a, & .footer-layout > div:last-child a { font-size: 13px; }
    & .footer-documents { gap: 0 12px; }
    & .footer-documents a { font-size: 12px; }
  }
}
@media (max-width: 480px) {
  :root:not([data-design="classic"]) {
    & .headrow .menubtn { flex: none; justify-content: center; width: 44px; padding: 0; }
    & .headrow .menubtn span { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; }
    & .headrow .menubtn i { width: 19px; height: 10px; }
    & .headrow .menubtn[aria-expanded="true"] i {
      width: 18px; height: 18px; border: 0; background:
        linear-gradient(45deg, transparent 46%, currentColor 47% 53%, transparent 54%),
        linear-gradient(-45deg, transparent 46%, currentColor 47% 53%, transparent 54%);
    }
  }
}
@media (max-width: 375px) {
  :root:not([data-design="classic"]) {
    --frame: calc(100% - 24px);
    & .mast .headrow { gap: 5px; padding-inline: 10px; }
    & .headrow .brand { font-size: 17px; }
    & .headrow .header-buy { padding-inline: 10px; font-size: 13px; }
    & .route-name { font-size: 17px; }
  }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  :root:not([data-design="classic"]) .route-action > span { transition: transform .17s ease; }
  :root:not([data-design="classic"]) .product-route:hover .route-action > span { transform: translateX(3px); }
}

.tier-picker[hidden], .exam-offer-sheet[hidden] { display: none !important; }
.tier-picker {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 0 12px; border-bottom: 1px solid #c3cdca;
}
.tier-picker button {
  display: grid; gap: 3px; justify-items: center; min-height: 52px; padding: 4px 2px 8px;
  border: 0; border-bottom: 3px solid transparent; background: transparent;
  color: #3e4d5b; font-size: 15px; font-weight: 610;
}
.tier-picker button span { font-size: 13px; font-weight: 475; white-space: nowrap; }
.tier-picker button[aria-selected="true"] { border-color: #2d4c88; color: #223f78; }
@media (max-width: 800px) {
  :root:not([data-design="classic"]) .exam-offer-sheet { display: flex; flex-direction: column; }
  :root:not([data-design="classic"]) .exam-offer-sheet .offer-title { min-height: 90px; }
  :root:not([data-design="classic"]) .exam-offer-sheet .ink-button { order: 1; margin: 14px 0 4px; }
  :root:not([data-design="classic"]) .exam-offer-sheet .spec-list { order: 2; padding-bottom: 0; }
  :root:not([data-design="classic"]) .exam-offer-sheet .spec-list > div:last-child { border-bottom: 0; padding-bottom: 0; }
}

/* Review the exact selection before leaving the site. */
.plan-dialog { width: min(480px, calc(100% - 24px)); max-height: 90svh; padding: clamp(20px, 3vw, 32px); }
.plan-dialog .dialoghead { margin-bottom: 14px; }
.plan-dialog .dialoghead button { min-width: 44px; min-height: 44px; }
.order-total { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 6px 16px; }
.order-total h2 { margin: 0; font-size: clamp(23px, 2.3vw, 32px); }
.plan-dialog .order-total .offer-price { margin: 0; font-size: clamp(23px, 2.1vw, 30px); }
.plan-dialog .spec-list { padding-top: 12px; }
.plan-dialog .spec-list > div { padding-block: 9px; }
.plan-dialog .spec-list dt { margin-bottom: 2px; font-size: 13px; }
.plan-dialog .spec-list dd { font-size: 15px; }
.order-actions { display: grid; gap: 3px; margin-top: 16px; }
.order-actions .ink-button { margin: 0; min-height: 48px; justify-content: space-between; }
#order-next[aria-disabled="true"] { background: #dfe4e5; color: #4f5b67; cursor: default; }
#order-next[aria-disabled="true"] > [aria-hidden] { visibility: hidden; }
.order-terms { display: inline-flex; align-items: center; min-height: 32px; font-size: 13px; color: #506079; text-decoration: underline; text-underline-offset: 3px; }
.order-details { border-top: 1px solid #d4dcd9; margin-top: 9px; }
.order-details summary { cursor: pointer; min-height: 44px; align-content: center; color: #3b4e65; font-size: 14px; font-weight: 530; }
.order-details .spec-list { padding-top: 0; }
