/* The same canonical footer occurs inline and in several server includes.
   Restrict the shared paint to screen so product exports retain their own art. */
@media screen {
  @font-face {
    font-family: "Standard Condensed";
    src: url("/assets/home-standard-v1/barlow-condensed-black.woff2") format("woff2");
    font-style: normal;
    font-weight: 900;
    font-display: swap;
  }

  :is(footer.site-footer, #site-header) {
    --site-directory-ink: var(--stud-theme-nav-ink, #fff2d9);
    --site-directory-muted: var(--stud-theme-nav-muted, var(--stud-theme-muted, #c8d7d1));
    --site-directory-line: var(--stud-theme-nav-line, var(--stud-theme-line, #415858));
    --site-directory-focus: var(--stud-theme-focus, #f6c078);
    --site-directory-type: var(--stud-theme-font-ui, "Avenir Next", Avenir, system-ui, sans-serif);
  }

  footer.site-footer {
    --site-footer-surface: var(--stud-theme-nav-surface, #10292d);
    --site-footer-display: "Standard Condensed", "Arial Narrow", Impact, sans-serif;
  }

  /* Existing foundation, frozen page, and premium styles use important
     declarations. Join the shell's navigation layer for these shared elements. */
  @layer premium-navigation {
    footer.site-footer {
      color: var(--site-directory-muted) !important;
      background: var(--site-footer-surface) !important;
      border-top: 0 !important;
    }
    footer.site-footer > .site-footer-shell {
      box-sizing: border-box;
      width: min(calc(100% - 48px), 1160px) !important;
      max-width: none !important;
      margin-inline: auto !important;
      padding-inline: 0 !important;
      padding-block-start: 0 !important;
      gap: 0 !important;
      color: var(--site-directory-muted) !important;
      font-family: var(--site-directory-type);
    }
    footer.site-footer .site-footer-utilities {
      grid-template-columns: minmax(0, .9fr) minmax(0, 1.65fr) minmax(0, 1.1fr) minmax(0, .85fr) !important;
      gap: 24px !important;
      padding: clamp(22px, 2.7vw, 36px) 0 !important;
      border-block: 1px solid var(--site-directory-line) !important;
    }
    footer.site-footer .site-footer-group { gap: 8px !important; }
    footer.site-footer .site-footer-group h2 {
      color: var(--site-directory-ink) !important;
      font: 900 clamp(1.375rem, 1.8vw, 1.75rem)/1.1 var(--site-footer-display) !important;
      letter-spacing: .01em !important;
      text-align: start !important;
    }
    footer.site-footer .site-footer-group ul {
      display: grid !important;
      grid-template-columns: minmax(0, 1fr) !important;
      gap: 0 18px !important;
    }
    footer.site-footer .site-footer-group[aria-label="Products"] > ul {
      grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
    footer.site-footer .site-footer-group li > a {
      box-sizing: border-box;
      min-height: 44px !important;
      padding-block: .42rem !important;
      color: var(--site-directory-muted) !important;
      font: 550 .9375rem/1.4 var(--site-directory-type) !important;
      overflow-wrap: anywhere;
      text-align: start;
    }
    footer.site-footer .site-footer-group li > a:is(:hover, :focus-visible) {
      color: var(--stud-theme-nav-hover-ink, var(--site-directory-ink)) !important;
      text-decoration: underline !important;
      text-underline-offset: .2em !important;
    }
    footer.site-footer .stud-tip-footer {
      margin-top: .5rem;
      padding-top: .75rem;
      border-top: 1px solid var(--site-directory-line);
      color: var(--site-directory-muted);
    }
    footer.site-footer .stud-tip-footer p {
      max-width: 35ch;
      margin: 0 0 .6rem;
      font: 500 .9375rem/1.5 var(--site-directory-type);
    }

    footer.site-footer #site-disclaimer.site-disclaimer--portfolio {
      display: grid !important;
      grid-template: "info links" auto "details details" auto / minmax(0, 1fr) auto !important;
      align-items: start;
      gap: 12px clamp(24px, 4vw, 60px) !important;
      padding: clamp(20px, 3vw, 36px) 0 0 !important;
      color: var(--site-directory-muted) !important;
      background: transparent !important;
      border: 0 !important;
      border-radius: 0 !important;
    }
    footer.site-footer #site-disclaimer .site-disclaimer__header {
      grid-area: info;
      gap: .5rem !important;
    }
    footer.site-footer #site-disclaimer h2 {
      color: var(--site-directory-ink) !important;
      font: 900 clamp(1.5rem, 2.2vw, 2rem)/1.12 var(--site-footer-display) !important;
    }
    footer.site-footer #site-disclaimer :is(.site-disclaimer__lead, .site-disclaimer__copy) {
      max-width: 70ch !important;
      color: var(--site-directory-muted) !important;
      font: 500 .9375rem/1.6 var(--site-directory-type) !important;
    }
    footer.site-footer #site-disclaimer .site-disclaimer__actions {
      grid-area: links;
      display: flex;
      flex-wrap: wrap;
      gap: 0 clamp(12px, 2vw, 24px);
    }
    footer.site-footer #site-disclaimer .site-disclaimer__actions a {
      display: inline-flex;
      align-items: center;
      min-width: 44px;
      min-height: 44px;
      color: var(--site-directory-ink) !important;
      font: 600 .9375rem/1.4 var(--site-directory-type);
      text-decoration: underline;
      text-underline-offset: .22em;
    }
    footer.site-footer #site-disclaimer .site-disclaimer__details {
      grid-area: details;
      border-block: 1px solid var(--site-directory-line) !important;
    }
    footer.site-footer #site-disclaimer .site-disclaimer__details > summary {
      box-sizing: border-box;
      display: flex !important;
      min-height: 52px;
      align-items: center;
      justify-content: space-between;
      gap: 1rem;
      padding: .65rem .3rem .65rem 0 !important;
      list-style: none !important;
      color: var(--site-directory-ink) !important;
      font: 700 1rem/1.4 var(--site-directory-type) !important;
    }
    footer.site-footer #site-disclaimer summary::-webkit-details-marker { display: none; }
    footer.site-footer #site-disclaimer .site-disclaimer__details > summary::after {
      content: "" !important;
      display: block;
      width: .55rem;
      height: .55rem;
      flex: none;
      margin-inline-end: .25rem;
      border: solid currentColor;
      border-width: 0 2px 2px 0;
      transform: rotate(-45deg);
    }
    footer.site-footer #site-disclaimer .site-disclaimer__details[open] > summary::after {
      transform: rotate(45deg);
    }
    footer.site-footer #site-disclaimer .site-disclaimer__scope {
      border-color: var(--site-directory-line) !important;
    }
    footer.site-footer #site-disclaimer h3 { color: var(--site-directory-ink) !important; }
    footer.site-footer .site-footer-utilities a:focus-visible,
    footer.site-footer #site-disclaimer :is(summary, a):focus-visible {
      outline: 3px solid var(--site-directory-focus) !important;
      outline-offset: 2px !important;
    }

    /* The mobile chooser and the After Dark desktop disclosure have separate
       containers. Both expose the registry photo, purpose and current route. */
    #site-header {
      --product-menu-surface: var(--stud-theme-nav-surface, #101b1e);
      --product-menu-row: var(--stud-theme-nav-container, #17282b);
    }
    .portfolio-home-page #site-header .shell-mobile-products {
      --product-menu-row: var(--stud-theme-nav-surface, #17282b);
    }
    #site-header :is(.shell-mobile-products, .after-dark-product-list) > .shell-mobile-product:not([hidden]) {
      box-sizing: border-box;
      display: grid !important;
      grid-template-columns: 52px minmax(0, 1fr) 12px !important;
      align-items: center !important;
      gap: 12px !important;
      min-width: 0 !important;
      min-height: 68px !important;
      height: auto !important;
      padding: 7px 12px 7px 7px !important;
      color: var(--product-menu-name-ink, var(--site-directory-ink)) !important;
      background: var(--product-menu-row) !important;
      border: 1px solid var(--site-directory-line) !important;
      border-radius: 5px !important;
      text-align: start !important;
      text-decoration: none !important;
    }
    #site-header :is(.shell-mobile-products, .after-dark-product-list) > .shell-mobile-product img {
      display: block !important;
      width: 52px !important;
      height: 52px !important;
      object-fit: cover !important;
      border-radius: 3px !important;
    }
    #site-header :is(.shell-mobile-products, .after-dark-product-list) > .shell-mobile-product--biohack > img {
      content: url("/assets/portfolio-media/learn-read-a-study-160.jpg");
    }
    #site-header :is(.shell-mobile-products, .after-dark-product-list) .shell-mobile-product-copy {
      display: grid;
      min-width: 0;
      gap: .18rem;
    }
    #site-header :is(.shell-mobile-products, .after-dark-product-list) .shell-mobile-product-copy strong {
      color: var(--product-menu-name-ink, var(--site-directory-ink)) !important;
      font: 760 1.0625rem/1.16 var(--site-directory-type) !important;
      text-shadow: none !important;
    }
    #site-header :is(.shell-mobile-products, .after-dark-product-list) .shell-mobile-product-copy em {
      display: block !important;
      overflow: visible !important;
      color: var(--product-menu-purpose-ink, var(--site-directory-muted)) !important;
      font: 500 .875rem/1.35 var(--site-directory-type) !important;
      white-space: normal !important;
      overflow-wrap: anywhere;
      text-overflow: clip !important;
    }
    #site-header :is(.shell-mobile-products, .after-dark-product-list) > .shell-mobile-product::after {
      content: "";
      box-sizing: border-box;
      justify-self: center;
      width: .48rem;
      height: .48rem;
      border: solid var(--site-directory-muted);
      border-width: 1.5px 1.5px 0 0;
      transform: rotate(45deg);
    }
    #site-header :is(.shell-mobile-products, .after-dark-product-list) > .shell-mobile-product[aria-current] {
      --product-menu-name-ink: var(--stud-theme-nav-selected-ink, var(--site-directory-ink));
      --product-menu-purpose-ink: var(--stud-theme-nav-selected-ink, var(--site-directory-muted));
      background: var(--stud-theme-nav-selected-surface, #253b3b) !important;
      border-inline-start: 4px solid var(--stud-theme-focus, #f1bf7d) !important;
      padding-inline-start: 4px !important;
    }
    #site-header :is(.shell-mobile-products, .after-dark-product-list) > .shell-mobile-product[aria-current]::after {
      width: .42rem;
      height: .8rem;
      border: solid var(--stud-theme-nav-selected-ink, var(--site-directory-ink));
      border-width: 0 2px 2px 0;
    }
    #site-header :is(.shell-mobile-products, .after-dark-product-list) > .shell-mobile-product:focus-visible {
      outline: 3px solid var(--site-directory-focus) !important;
      outline-offset: 2px !important;
    }
    @media (hover: hover) {
      #site-header :is(.shell-mobile-products, .after-dark-product-list) > .shell-mobile-product:hover:not([aria-current]) {
        --product-menu-name-ink: var(--stud-theme-nav-hover-ink, var(--site-directory-ink));
        --product-menu-purpose-ink: var(--stud-theme-nav-hover-ink, var(--site-directory-muted));
        background: var(--stud-theme-nav-hover-surface, #244044) !important;
        border-color: var(--site-directory-focus) !important;
      }
    }
    @media (min-width: 761px) {
      html body.stud-v3 #site-header.site-header--after-dark [data-after-dark-desktop-menu].is-open {
        padding: clamp(12px, 2vw, 22px) !important;
        background: var(--product-menu-surface) !important;
        border-color: var(--site-directory-line) !important;
      }
    }
    @media (min-width: 761px) and (max-width: 1100px) {
      footer.site-footer .site-footer-utilities {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
      }
    }
    @media (min-width: 761px) and (max-width: 930px) {
      html body.stud-v3 #site-header.site-header--after-dark [data-after-dark-desktop-menu] .after-dark-product-list {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
      }
    }
    @media (max-width: 760px) {
      footer.site-footer > .site-footer-shell { width: calc(100% - 32px) !important; }
      footer.site-footer .site-footer-utilities {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 22px !important;
      }
      footer.site-footer .site-footer-group ul { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
      footer.site-footer .site-footer-group li { border-bottom: 1px solid var(--site-directory-line); }
      footer.site-footer #site-disclaimer.site-disclaimer--portfolio {
        grid-template: "info" auto "links" auto "details" auto / minmax(0, 1fr) !important;
        gap: 6px !important;
      }
      #site-header .shell-mobile-nav--open-wall,
      #site-header .shell-mobile-nav--open-wall :is(.shell-mobile-nav-body, .shell-mobile-secondary) {
        background: var(--product-menu-surface) !important;
        border-color: var(--site-directory-line) !important;
      }
      #site-header .shell-mobile-nav--open-wall .shell-mobile-products { gap: 6px !important; }
      #site-header .shell-mobile-nav--open-wall .shell-products-search input {
        font-size: 1rem !important;
      }
    }
    @media (max-width: 360px) {
      footer.site-footer > .site-footer-shell { width: calc(100% - 24px) !important; }
      #site-header .shell-mobile-products > .shell-mobile-product:not([hidden]) { gap: 8px !important; }
    }
  }
}

/* Recommended guides are already ordered and photographed by each board. Let
   the lead introduce the subject, then give the remaining choices a short row. */
@media screen {
  #main section.essential-choices[data-essential-choices] {
    --guide-accent: var(--premium-accent, var(--map-accent, #a7c9c3));
    --guide-panel: var(--stud-theme-surface, var(--premium-surface, #17232c));
    --guide-line: var(--stud-theme-line, var(--premium-line, #3d4d58));
    --guide-ink: var(--stud-theme-ink, var(--premium-ink, #f4f1ea));
    --guide-muted: var(--stud-theme-muted, var(--premium-muted, #c3ccd2));
    --lead-photo-position: 50% 48%;
    margin-block: 1.25rem 1rem;
  }
  #main section.essential-choices[data-essential-choices="self"] { --lead-photo-position: 66% 42%; }
  #main section.essential-choices[data-essential-choices="fit"] { --lead-photo-position: 48% 34%; }
  #main section.essential-choices[data-essential-choices="skill"] { --lead-photo-position: 50% 62%; }
  #main section.essential-choices[data-essential-choices="motivation"] {
    --lead-photo-position: 52% 36%;
    --guide-accent: var(--premium-accent, #ffc18b);
  }
  #main .essential-choices[data-essential-choices] .essential-heading {
    align-items: center;
    gap: 0 1rem;
    margin-bottom: .5rem;
  }
  #main .essential-choices[data-essential-choices] .essential-heading h2 {
    font-size: clamp(1.35rem, 2.2vw, 1.8rem);
    line-height: 1.18;
  }
  #main .essential-choices[data-essential-choices] .essential-heading > a {
    min-height: 44px;
    color: var(--guide-accent) !important;
    font-size: .9375rem;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: .22em;
  }
  #main .essential-choices[data-essential-choices] > ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 clamp(18px, 3vw, 36px);
  }
  #main .essential-choices[data-essential-choices] > ul > li {
    min-width: 0;
    border-color: var(--guide-line);
  }
  #main .essential-choices[data-essential-choices] li > a {
    box-sizing: border-box;
    min-width: 0;
    max-width: 100%;
    min-height: 48px;
    gap: .75rem;
    padding: .75rem 0;
    text-decoration: none;
  }
  #main .essential-choices[data-essential-choices] li > a > span {
    min-width: 0;
    overflow-wrap: anywhere;
  }
  #main .essential-choices[data-essential-choices] li strong {
    color: var(--guide-ink);
    font-size: 1.0625rem;
    line-height: 1.28;
  }
  #main .essential-choices[data-essential-choices] li small {
    max-width: 65ch;
    margin-top: .2rem;
    color: var(--guide-muted);
    font-size: .9375rem;
    line-height: 1.45;
  }
  #main .essential-choices[data-essential-choices] > ul > li:first-child {
    grid-column: 1 / -1;
    margin-bottom: .4rem;
    border: 0;
  }
  #main .essential-choices[data-essential-choices] > ul > li:first-child > a {
    display: grid;
    grid-template: "photo copy" auto / clamp(10.5rem, 25%, 18rem) minmax(0, 1fr);
    align-items: stretch;
    gap: 0;
    min-height: clamp(8.5rem, 14vw, 11rem);
    padding: 0;
    color: var(--guide-ink);
    background: var(--guide-panel);
    border: 1px solid var(--guide-line);
    border-radius: 5px;
  }
  #main .essential-choices[data-essential-choices] > ul > li:first-child > a > img,
  #main [data-essential-choices="motivation"] a[href="/motivation/reads/drive-practice-the-hard-part/"]::before {
    grid-area: photo;
    display: block;
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    margin: 0;
    contain: size;
    object-fit: cover;
    object-position: var(--lead-photo-position);
    border-radius: 4px 0 0 4px;
  }
  #main [data-essential-choices="motivation"] a[href="/motivation/reads/drive-practice-the-hard-part/"]::before {
    content: "";
    background: center / cover no-repeat url("/assets/stud-token-creative/thumbs/cards-expansion100-074-public-speaking-practice.webp");
    background-position: var(--lead-photo-position);
  }
  #main .essential-choices[data-essential-choices] > ul > li:first-child > a > span {
    grid-area: copy;
    align-self: center;
    padding: clamp(.9rem, 2.1vw, 1.8rem);
  }
  #main .essential-choices[data-essential-choices] > ul > li:first-child strong {
    max-width: 33ch;
    font-size: clamp(1.375rem, 2.4vw, 2.125rem);
    font-weight: 750;
    line-height: 1.14;
    letter-spacing: -.025em;
  }
  #main .essential-choices[data-essential-choices] > ul > li:first-child small { margin-top: .4rem; }
  #main .essential-choices[data-essential-choices] a:focus-visible {
    outline: 3px solid var(--stud-theme-focus, var(--guide-accent)) !important;
    outline-offset: 2px;
  }
  #main .essential-choices[data-essential-choices] > ul > li:first-child > a:is(:hover, :focus-visible) {
    border-color: var(--guide-accent);
  }
  @media (max-width: 680px) {
    #main .essential-choices[data-essential-choices] > ul { grid-template-columns: minmax(0, 1fr); }
    #main .essential-choices[data-essential-choices] > ul > li:first-child > a {
      grid-template-columns: clamp(5rem, 27%, 9rem) minmax(0, 1fr);
      min-height: 7rem;
    }
    #main .essential-choices[data-essential-choices] > ul > li:first-child > a > span {
      padding: .75rem clamp(.65rem, 2.6vw, 1rem);
    }
    #main .essential-choices[data-essential-choices] li:not(:first-child) > a { padding-block: .65rem; }
    #main .essential-choices[data-essential-choices] li:not(:first-child) img { width: 3rem; height: 3rem; }
  }
}

/* Direct reading has a return link and board wordmark; the fetched reader has
   a contextual return and Close. Its own controls still open the Topic sheet. */
@media screen {
  body:is(.self-premium, .fit-premium, .money-premium, .learn-premium) #main .reader-layout > .reader-top {
    display: grid;
    grid-template: "return brand menu" auto / minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: .375rem;
  }
  body:is(.self-premium, .fit-premium, .money-premium, .learn-premium) #main .reader-top > .back-link {
    grid-area: return;
    justify-self: start;
  }
  body:is(.self-premium, .fit-premium, .money-premium, .learn-premium) #main .reader-top > .reader-product {
    grid-area: brand;
    justify-self: center;
    margin: 0;
    font-size: 1rem;
    line-height: 1.25;
  }
  body:is(.self-premium, .fit-premium, .money-premium, .learn-premium) #main .reader-top > [data-topic-menu-open] {
    grid-area: menu;
    justify-self: end;
    margin: 0;
  }
  body:is(.self-premium, .fit-premium, .money-premium, .learn-premium)
    :is(#main .reader-top, #premium-reader .reader-toolbar)
    :is(.back-link, .sheet-share, [data-reader-close], [data-topic-menu-open]) {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    max-width: 100%;
    padding: .45rem .6rem !important;
    font: 650 clamp(.9375rem, 1.3vw, 1rem)/1.25 var(--stud-theme-font-ui, system-ui, sans-serif) !important;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  body:is(.self-premium, .fit-premium, .money-premium, .learn-premium)
    :is(#main .reader-top > .back-link, #premium-reader .reader-toolbar .sheet-share) {
    justify-content: flex-start;
    padding-inline: .1rem !important;
    border: 0;
    background: transparent;
    color: var(--premium-ink, #f1f0eb) !important;
    text-align: start;
    text-decoration: underline;
    text-underline-offset: .2em;
  }
  body:is(.self-premium, .fit-premium, .money-premium, .learn-premium)
    :is(#main .reader-top > .back-link, #premium-reader .reader-toolbar .sheet-share):active {
    color: var(--journey-accent) !important;
    text-decoration-thickness: 2px;
  }
  body:is(.self-premium, .fit-premium, .money-premium, .learn-premium)
    :is(#main .reader-top, #premium-reader .reader-toolbar) [data-topic-menu-open] {
    border: 1px solid var(--journey-accent);
    border-radius: .375rem;
    color: var(--journey-accent);
    background: var(--premium-selected);
  }
  body:is(.self-premium, .fit-premium, .money-premium, .learn-premium)
    :is(#main .reader-top, #premium-reader .reader-toolbar)
    [data-topic-menu-open]:is(:active, [aria-expanded="true"]) {
    color: var(--stud-theme-action-ink, #111b24);
    background: var(--stud-theme-action-surface, var(--journey-accent));
    box-shadow: inset 0 0 0 1px currentColor;
  }
  body:is(.self-premium, .fit-premium, .money-premium, .learn-premium)
    :is(#main .reader-top, #premium-reader .reader-toolbar) :is(a, button):focus-visible {
    outline: 3px solid var(--stud-theme-focus, var(--journey-accent)) !important;
    outline-offset: 2px !important;
  }
  @media (max-width: 360px) {
    body:is(.self-premium, .fit-premium, .money-premium, .learn-premium)
      :is(#main .reader-top, #premium-reader .reader-toolbar) [data-topic-menu-open] {
      padding-inline: .38rem !important;
    }
  }
}

@media screen and (forced-colors: active) {
  @layer premium-navigation {
    #site-header :is(.shell-mobile-products, .after-dark-product-list) > .shell-mobile-product[aria-current] {
      border-inline-start-color: Highlight !important;
    }
    #site-header :is(.shell-mobile-products, .after-dark-product-list) > .shell-mobile-product::after,
    footer.site-footer #site-disclaimer .site-disclaimer__details > summary::after {
      border-color: ButtonText !important;
    }
    #site-header :is(.shell-mobile-products, .after-dark-product-list) > .shell-mobile-product:focus-visible,
    footer.site-footer .site-footer-utilities a:focus-visible,
    footer.site-footer #site-disclaimer :is(summary, a):focus-visible {
      outline-color: Highlight !important;
    }
  }
  #main .essential-choices[data-essential-choices] a:focus-visible,
  body.journey-enabled :is(#main .reader-top, #premium-reader .reader-toolbar) :is(a, button):focus-visible {
    outline-color: Highlight !important;
  }
}


/* The four guide boards share a reading model. Their actual question, photograph,
   guide, worked example, finding, evidence and return destination stay product-owned. */
@media screen {
  html:is([data-map-product="self"], [data-map-product="fit"], [data-map-product="money"],
    [data-map-product="learn"], [data-map-product="research"]) > body {
    --knowledge-paper: var(--premium-paper, #0c131c);
    --knowledge-surface: var(--premium-surface, #14202c);
    --knowledge-ink: var(--premium-ink, #f4f2ec);
    --knowledge-muted: var(--premium-muted, #bec9d5);
    --knowledge-line: var(--premium-line, #3c4d5d);
    --knowledge-accent: var(--premium-accent, #77dcec);
    --knowledge-rule: color-mix(in srgb, var(--knowledge-accent) 47%, var(--knowledge-line));
    --knowledge-tint: color-mix(in srgb, var(--knowledge-accent) 9%, var(--knowledge-surface));
    --knowledge-ui: var(--stud-theme-font-ui, "Avenir Next", Avenir, system-ui, sans-serif);
    --knowledge-display: Georgia, "Times New Roman", serif;
  }

  /* The link itself owns the entire photograph, question and optional named finding. */
  html[data-map-product] body.journey-enabled.premium-production[data-browse-mode="home"] #main > .compact-browse-intro:has(.knowledge-question) {
    display: grid;
    gap: .7rem;
    padding: clamp(.75rem, 2.5vw, 1.65rem) 0 .65rem;
  }
  html[data-map-product] body.journey-enabled.premium-production #main .compact-browse-intro:has(.knowledge-question) h1 {
    margin: 0;
    font-size: clamp(1.7rem, 3.7vw, 2.55rem);
    line-height: 1.04;
  }
  html[data-map-product] body.journey-enabled.premium-production[data-browse-mode="home"] #main .intro-purpose:has(.knowledge-question) {
    margin: 0;
    max-width: none;
  }
  body.journey-enabled.premium-production #main .knowledge-question {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(5.15rem, .9fr);
    align-items: stretch;
    min-width: 0;
    min-height: clamp(7.2rem, 13vw, 11rem);
    width: 100%;
    overflow: hidden;
    border: 1px solid var(--knowledge-line);
    border-radius: .45rem;
    background: var(--knowledge-tint);
    text-decoration: none;
  }
  body.journey-enabled.premium-production #main .knowledge-question-copy {
    align-self: center;
    min-width: 0;
    padding: clamp(.75rem, 2.4vw, 1.5rem);
  }
  body.journey-enabled.premium-production #main #knowledge-question-title {
    display: block;
    color: var(--knowledge-ink);
    font: 550 clamp(1.28rem, 2.5vw, 2.02rem)/1.13 var(--knowledge-display) !important;
    letter-spacing: -.023em;
    text-wrap: pretty;
  }
  body.journey-enabled.premium-production #main #knowledge-question-title::after {
    content: " ↗" / "";
    color: var(--knowledge-accent);
    font: 650 .67em/1 var(--knowledge-ui);
    white-space: nowrap;
  }
  body.journey-enabled.premium-production #main #knowledge-question-note {
    display: block;
    margin-top: .4rem;
    color: var(--knowledge-muted);
    font-size: clamp(.875rem, 1.4vw, 1rem);
    line-height: 1.42;
  }
  body.journey-enabled.premium-production #main .knowledge-question img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    contain: size;
    object-fit: cover;
    object-position: var(--question-focus, 50% 50%);
    border: 0;
    border-radius: 0;
  }
  body.self-premium { --question-focus: 29% 66%; }
  body.fit-premium { --question-focus: 53% 42%; }
  body.money-premium { --question-focus: 49% 48%; }
  body.learn-premium { --question-focus: 50% 46%; }
  body.journey-enabled #main .knowledge-question:is(:hover, :focus-visible) {
    border-color: var(--knowledge-accent);
  }
  body.journey-enabled #main .knowledge-question:is(:hover, :focus-visible) #knowledge-question-title {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: .14em;
  }
  @media (min-width: 60rem) {
    html[data-map-product] body.journey-enabled.premium-production[data-browse-mode="home"] #main > .compact-browse-intro:has(.knowledge-question) {
      grid-template: "identity identity" auto "question query" auto / minmax(0, 1.55fr) minmax(16rem, .82fr);
      column-gap: clamp(1.5rem, 4vw, 3.2rem);
      align-items: center;
    }
    body.journey-enabled #main .compact-browse-intro:has(.knowledge-question) > h1 { grid-area: identity; }
    body.journey-enabled #main .compact-browse-intro:has(.knowledge-question) > [data-map-invitation] { grid-area: question; }
    body.journey-enabled #main .compact-browse-intro:has(.knowledge-question) > :is(.search,.journey-search-controls) {
      grid-area: query;
      width: 100%;
    }
    body.journey-enabled #main .compact-browse-intro:has(.knowledge-question) .search > label {
      position: static;
      display: block;
      width: auto;
      height: auto;
      margin: 0 0 .4rem;
      clip-path: none;
      font-size: .94rem;
      font-weight: 700;
    }
    body.journey-enabled #main .compact-browse-intro:has(.knowledge-question) .journey-search-controls { align-items: end; }
  }

  /* A search result is a choice: see the subject, the decision, and its destination.
     The prepared photo-failure treatment still makes an unpictured card full width. */
  html[data-map-product] body.journey-enabled #main #directory .topic-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr));
    gap: .7rem clamp(.75rem, 2vw, 1.4rem);
  }
  html[data-map-product] body.journey-enabled #main #directory .topic-card[data-topic-link]:not([hidden]):has(.topic-cover-media img):not(.library-cover-missing) {
    display: grid;
    grid-template-columns: clamp(5.15rem, 27%, 8.5rem) minmax(0, 1fr);
    align-items: stretch;
    gap: 0;
    min-height: 7.4rem;
    padding: 0;
    background: var(--knowledge-surface);
    border: 1px solid var(--knowledge-line);
    border-radius: .4rem;
    overflow: hidden;
  }
  html[data-map-product] body.journey-enabled #main #directory .topic-card[data-topic-link] .topic-cover-media {
    display: block;
    position: relative;
    width: 100%;
    min-height: 0;
    height: 100%;
    margin: 0;
    border: 0;
    border-radius: 0;
  }
  html[data-map-product] body.journey-enabled #main #directory .topic-card .topic-card-body {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    padding: clamp(.72rem, 2vw, 1.05rem);
  }
  html[data-map-product] body.journey-enabled #main #directory .topic-card .card-meta {
    gap: .12rem .7rem;
    margin-bottom: .35rem;
    background: none;
    color: var(--knowledge-muted) !important;
    font-size: .765rem;
    line-height: 1.32;
  }
  html[data-map-product] body.journey-enabled #main #directory .topic-card h3 {
    margin: 0 0 .3rem;
    font-size: clamp(1.35rem, 2.1vw, 1.75rem);
    line-height: 1.12;
  }
  html[data-map-product] body.journey-enabled #main #directory .topic-card :is(.library-decision, .money-decision) {
    margin: 0;
    color: var(--knowledge-ink) !important;
    font-size: .955rem;
    line-height: 1.48;
  }
  html[data-map-product] body.journey-enabled #main #directory .topic-card .read-link {
    margin-top: .35rem;
    padding: 0;
    font-size: .815rem;
  }
  html[data-map-product] body.journey-enabled #main #directory .topic-card:is(:hover, :focus-visible) {
    border-color: var(--knowledge-accent);
  }
  /* The destination receives keyboard focus after All topics. Draw the ring on
     its heading so it doesn't run down both sides of the whole collection. */
  html[data-map-product] body.journey-enabled #main #directory[data-essential-results]:is(:target,:focus,:focus-visible) { outline: none !important; }
  html[data-map-product] body.journey-enabled #main #directory[data-essential-results]:focus-visible #directory-title {
    width: fit-content;
    outline: 2px solid var(--stud-theme-focus, var(--knowledge-accent));
    outline-offset: 3px;
  }

  /* Native indexes retain one real link and its original description per topic.
     The jump reaches a visible heading even with JavaScript disabled. */
  html[data-map-product] :is(#main > .intro, #main-content.discovery-wrap):has(.topic-index-jump) {
    max-width: 63rem;
    margin-inline: auto;
    padding-block: clamp(.9rem, 3vw, 2.5rem);
  }
  html[data-map-product] :is(#main > .intro, #main-content.discovery-wrap):has(.topic-index-jump) > h1 {
    max-width: 26ch;
    margin: .3rem 0 .45rem;
    font: 550 clamp(1.95rem, 5vw, 3.65rem)/1.04 var(--knowledge-display) !important;
    letter-spacing: -.04em;
  }
  html[data-map-product] :is(#main,#main-content) .topic-index-jump {
    margin: 1rem 0 .6rem;
    scroll-margin-top: calc(var(--premium-chrome-h, var(--site-header-h, 6rem) + var(--disclaimer-h, 3rem)) + 1rem);
    border: 1px solid var(--knowledge-rule);
    border-radius: .375rem;
    background: var(--knowledge-tint);
  }
  html[data-map-product] :is(#main,#main-content) .topic-index-jump > summary {
    box-sizing: border-box;
    min-height: 46px;
    padding: .7rem .9rem;
    color: var(--knowledge-ink);
    font: 680 1rem/1.4 var(--knowledge-ui);
    cursor: pointer;
  }
  html[data-map-product] :is(#main,#main-content) .topic-index-jump > nav {
    display: flex;
    flex-wrap: wrap;
    gap: .28rem;
    padding: 0 .65rem .65rem;
  }
  html[data-map-product] :is(#main,#main-content) .topic-index-jump nav a {
    display: inline-grid;
    place-items: center;
    min-width: 44px;
    min-height: 44px;
    padding: .25rem;
    border: 1px solid var(--knowledge-line);
    border-radius: .25rem;
    color: var(--knowledge-ink) !important;
    background: var(--knowledge-paper);
    font: 650 1rem/1.25 var(--knowledge-ui);
    text-decoration: none;
  }
  html[data-map-product] :is(#main,#main-content) .topic-index-jump + .topic-directory {
    display: block;
    list-style: none;
    width: 100%;
    margin: 0;
    padding: 0;
  }
  html[data-map-product] :is(#main,#main-content) .topic-index-jump + .topic-directory > li {
    min-width: 0;
    margin: 0;
    padding: 0;
    list-style: none;
  }
  html[data-map-product] :is(#main,#main-content) .topic-index-group > h2 {
    padding: .35rem .55rem;
    margin: .95rem 0 0;
    border-block-start: 2px solid var(--knowledge-rule);
    background: var(--knowledge-tint);
    color: var(--knowledge-accent) !important;
    font: 700 1.25rem/1.15 var(--knowledge-ui) !important;
    scroll-margin-top: calc(var(--premium-chrome-h, var(--site-header-h, 6rem) + var(--disclaimer-h, 3rem)) + 1rem);
  }
  html[data-map-product] :is(#main,#main-content) .topic-index-jump + .topic-directory > li > a {
    display: grid;
    gap: .15rem clamp(1rem, 2.5vw, 2rem);
    align-items: baseline;
    min-height: 44px;
    margin: 0;
    padding: .75rem .55rem;
    border: 0;
    border-bottom: 1px solid var(--knowledge-line);
    background: none;
    color: var(--knowledge-ink) !important;
    text-decoration: none;
    font-size: 1rem;
    line-height: 1.4;
    overflow-wrap: anywhere;
  }
  html[data-map-product] :is(#main,#main-content) .topic-directory > li > a strong { font-size: 1.055rem; }
  html[data-map-product] :is(#main,#main-content) .topic-index-return {
    display: inline-flex;
    align-items: center;
    min-height: 46px;
    margin-top: .7rem;
    color: var(--knowledge-accent) !important;
    text-decoration: underline;
    text-underline-offset: .16em;
  }
  @media (min-width: 44rem) {
    html[data-map-product] #main .topic-index-jump + .topic-directory > li > a {
      grid-template-columns: minmax(12rem, .65fr) minmax(0, 1.4fr);
    }
    html[data-map-product="research"] #main-content .topic-index-jump + .topic-directory {
      display: grid;
      grid-template-columns: repeat(3,minmax(0,1fr));
      column-gap: 1.1rem;
    }
    html[data-map-product="research"] #main-content .topic-index-group { grid-column: 1 / -1; }
  }
}

@media screen {
  /* The standalone and the fetched article use the same native article tree.
     Keep the full answer below its label on a phone and side by side on a wide reader. */
  body:is(.self-premium,.fit-premium,.money-premium,.learn-premium).journey-enabled :is(#main,#premium-reader) article.reader {
    container: knowledge-reader / inline-size;
    --knowledge-reading: 47rem;
    --knowledge-inset: clamp(.35rem, 1vw, .85rem);
    --journey-reading-width: var(--knowledge-reading);
  }
  body.journey-enabled :is(#main,#premium-reader) .reader-layout article.reader > .article-opening {
    display: grid;
    grid-template: "heading photo" auto / minmax(0, 1.6fr) minmax(4.8rem, .85fr);
    align-items: stretch;
    gap: 0;
    width: 100%;
    max-width: var(--knowledge-reading);
    margin: 0 auto;
    padding: .65rem var(--knowledge-inset) 1rem;
    border: 0;
    background: none;
  }
  body.journey-enabled :is(#main,#premium-reader) .reader-layout .article-opening > .article-hero-copy {
    grid-area: heading;
    justify-content: center;
    gap: .4rem;
    align-self: stretch;
    width: auto;
    min-height: clamp(6.6rem, 15vw, 10.5rem);
    margin: 0;
    padding: .7rem clamp(.65rem, 2.3vw, 1.5rem);
    background: var(--knowledge-tint);
    border-block-start: 2px solid var(--knowledge-rule);
  }
  body.journey-enabled :is(#main,#premium-reader) .reader-layout .article-opening > .article-hero-copy::before { content: none; }
  body.journey-enabled :is(#main,#premium-reader) .reader-layout .article-opening .article-hero-copy h1 {
    margin: 0;
    font-size: clamp(1.75rem, 4.8vw, 3.65rem);
    line-height: 1.04;
    letter-spacing: -.035em;
    text-wrap: pretty;
  }
  body.journey-enabled :is(#main,#premium-reader) .reader-layout .article-opening .article-hero-copy .eyebrow {
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    color: var(--knowledge-muted) !important;
    font: 650 .8rem/1.35 var(--knowledge-ui);
    letter-spacing: .015em;
    text-transform: none;
  }
  body.journey-enabled :is(#main,#premium-reader) .reader-layout .article-opening > .article-cover-media {
    grid-area: photo;
    position: relative;
    display: block;
    align-self: stretch;
    width: 100%;
    height: 100%;
    min-height: 0;
    margin: 0;
    overflow: hidden;
    border: 0;
    border-radius: 0;
  }
  body.journey-enabled :is(#main,#premium-reader) .reader-layout .article-opening > .article-cover-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  body.journey-enabled :is(#main,#premium-reader) .reader-layout .article-opening > :not(.article-hero-copy,.article-cover-media) {
    grid-column: 1 / -1;
    max-width: 100%;
    padding-inline: 0;
  }
  body.journey-enabled :is(#main,#premium-reader) .reader-layout .article-opening :is(.money-quick-read,.library-quick-read) {
    width: 100%;
    margin: 1.05rem 0 .4rem;
  }
  body.journey-enabled :is(#main,#premium-reader) .reader-layout .article-opening :is(.money-quick-read,.library-quick-read) h2 {
    margin: 0 0 .45rem;
    color: var(--knowledge-ink) !important;
    font: 720 1.06rem/1.25 var(--knowledge-ui) !important;
  }
  body.journey-enabled :is(#main,#premium-reader) .reader-layout .article-opening :is(.money-quick-read,.library-quick-read) dl {
    display: grid;
    gap: 0;
    margin: 0;
  }
  body.journey-enabled :is(#main,#premium-reader) .reader-layout .article-opening :is(.money-quick-fact,.library-quick-fact) {
    position: relative;
    display: block;
    min-width: 0;
    margin: 0;
    padding: .55rem .72rem .45rem;
    border: 1px solid var(--knowledge-line);
    border-bottom: 0;
    border-radius: 0;
    background: var(--knowledge-surface);
  }
  body.journey-enabled :is(#main,#premium-reader) .reader-layout .article-opening :is(.money-quick-fact,.library-quick-fact):last-child {
    border-bottom: 1px solid var(--knowledge-line);
  }
  body.journey-enabled :is(#main,#premium-reader) .reader-layout .article-opening :is(.money-quick-fact,.library-quick-fact) dt {
    margin: 0;
    color: var(--knowledge-accent) !important;
    font: 670 .84rem/1.3 var(--knowledge-ui);
  }
  body.journey-enabled :is(#main,#premium-reader) .reader-layout .article-opening :is(.money-quick-fact,.library-quick-fact) dd { margin: .15rem 0 0; }
  body.journey-enabled :is(#main,#premium-reader) .reader-layout .article-opening :is(.money-quick-fact,.library-quick-fact) a {
    display: block;
    min-height: 44px;
    margin: 0;
    padding: 0;
    font: 650 1rem/1.38 var(--knowledge-ui) !important;
  }
  /* The existing link owns both label and answer as a single 44px-or-taller target. */
  body.journey-enabled :is(#main,#premium-reader) .reader-layout .article-opening :is(.money-quick-fact,.library-quick-fact) a::before {
    content: "";
    position: absolute;
    inset: 0;
  }
  body.journey-enabled :is(#main,#premium-reader) .reader-layout .article-opening :is(.reader-warning,.aliases) {
    margin-block: .35rem 0;
    font-size: .79rem;
    line-height: 1.45;
  }
  @container knowledge-reader (min-width: 41rem) {
    body.journey-enabled :is(#main,#premium-reader) .reader-layout .article-opening :is(.money-quick-read,.library-quick-read) dl {
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: .55rem;
    }
    body.journey-enabled :is(#main,#premium-reader) .reader-layout .article-opening :is(.money-quick-fact,.library-quick-fact) {
      padding: .85rem;
      border: 1px solid var(--knowledge-line);
      border-block-start: 2px solid var(--knowledge-rule);
    }
  }
  body.journey-enabled :is(#main,#premium-reader) .reader-layout .reader > :is(.essential-lesson,.guide-instruction,.guide-branches) {
    max-width: var(--knowledge-reading);
    margin: .75rem auto 1.4rem;
    padding: .95rem var(--knowledge-inset);
  }
  body.journey-enabled :is(#main,#premium-reader) .reader-layout .reader > :is(.essential-lesson,.guide-instruction),
  body.journey-enabled :is(#main,#premium-reader) .reader-layout .guide-branches > .guide-variant {
    counter-reset: worked-step;
    border-top: 2px solid var(--knowledge-rule);
  }
  body.journey-enabled :is(#main,#premium-reader) .reader-layout .reader > :is(.essential-lesson,.guide-instruction) > h2,
  body.journey-enabled :is(#main,#premium-reader) .reader-layout .reader .guide-variant-title {
    margin: .3rem 0 .7rem;
    font: 500 clamp(1.55rem, 3vw, 2.45rem)/1.12 var(--knowledge-display) !important;
    letter-spacing: -.025em;
    text-wrap: pretty;
  }
  body.journey-enabled :is(#main,#premium-reader) .reader-layout :is(.essential-lesson > .essential-step, .guide-instruction > .guide-step, .guide-variant > .guide-step) {
    position: relative;
    counter-increment: worked-step;
    margin: 0;
    padding: .95rem 0 1rem clamp(1.7rem, 4vw, 2.4rem);
    border: 0;
    border-top: 1px solid var(--knowledge-line);
  }
  body.journey-enabled :is(#main,#premium-reader) .reader-layout :is(.essential-lesson > .essential-step, .guide-instruction > .guide-step, .guide-variant > .guide-step)::before {
    content: counter(worked-step) "." / "";
    position: absolute;
    inset: 1rem auto auto 0;
    color: var(--knowledge-accent);
    font: 700 1.05rem/1.2 var(--knowledge-ui);
    font-variant-numeric: tabular-nums;
  }
  body.journey-enabled :is(#main,#premium-reader) .reader-layout :is(.essential-step,.guide-step) > :is(h3,h4) {
    margin: 0 0 .38rem;
    color: var(--knowledge-ink);
    font: 740 clamp(1.05rem, 1.65vw, 1.25rem)/1.3 var(--knowledge-ui) !important;
  }
  body.journey-enabled :is(#main,#premium-reader) .reader-layout :is(.essential-step,.guide-step) > p {
    font-size: 1rem;
    line-height: 1.61;
  }
  body.journey-enabled :is(#main,#premium-reader) .reader-layout .reader > .article-section[data-role] {
    max-width: var(--knowledge-reading);
    margin: 0 auto;
    padding: clamp(1.2rem, 3vw, 2rem) var(--knowledge-inset) .7rem;
    border-block-start: 1px solid var(--knowledge-line);
  }
  body.journey-enabled :is(#main,#premium-reader) .reader-layout .reader .article-section-heading h2 {
    margin: 0 0 .5rem;
    color: var(--knowledge-ink);
    font-size: clamp(1.65rem, 3vw, 2.45rem);
    line-height: 1.12;
  }
  body.journey-enabled :is(#main,#premium-reader) .reader-layout .reader .article-item {
    max-width: 66ch;
    margin: 1.1rem 0 .4rem;
  }
  body.journey-enabled :is(#main,#premium-reader) .reader-layout .reader .article-item :is(.library-finding,.money-finding) {
    margin: 0 0 .35rem;
    font: 740 clamp(1.12rem, 2vw, 1.45rem)/1.3 var(--knowledge-ui) !important;
    text-wrap: pretty;
  }
  body.journey-enabled :is(#main,#premium-reader) .reader-layout .reader .article-item :is(.library-explanation,.money-explanation) {
    font-size: clamp(1rem, 1.35vw, 1.12rem);
    line-height: 1.62;
  }
  body.journey-enabled :is(#main,#premium-reader) .reader-layout .article-item:target {
    border-inline-start: 3px solid var(--knowledge-accent);
    padding-inline-start: .65rem;
  }
  /* The photo opens a change of source role. Keep all examples beneath it fully visible. */
  body.journey-enabled :is(#main,#premium-reader) .reader-layout .reader > .article-photo-section[data-role] {
    grid-template: "photo heading" auto / minmax(4.1rem, 23%) minmax(0, 1fr);
    column-gap: clamp(.7rem, 2.6vw, 1.3rem);
    align-items: center;
    margin-top: 1rem;
    border-block-start: 2px solid var(--knowledge-rule);
  }
  body.journey-enabled :is(#main,#premium-reader) .reader-layout .article-photo-section > .article-continuation-media {
    height: clamp(5rem, 12vw, 7.1rem);
    border-radius: .25rem;
  }
  body.journey-enabled :is(#main,#premium-reader) .reader-layout .article-photo-section > .article-section-heading { align-self: center; }
  body.journey-enabled :is(#main,#premium-reader) .reader-layout .article-photo-section > .article-section-heading h2 { margin: 0; }
  body.journey-enabled :is(#main,#premium-reader) .reader-layout .reader > .topic-actions,
  body.journey-enabled :is(#main,#premium-reader) .reader-layout .reader > details:is(.library-references,.money-references,.learn-professionals) {
    max-width: var(--knowledge-reading);
    margin: .85rem auto;
    border-radius: .375rem;
  }
  body.journey-enabled :is(#main,#premium-reader) .reader-layout .reader > details:is(.library-references,.money-references,.learn-professionals) > summary {
    min-height: 3.2rem;
    padding: .7rem .95rem;
    background: var(--knowledge-tint);
    border: 1px solid var(--knowledge-rule);
    border-radius: .375rem;
  }
  body.journey-enabled :is(#main,#premium-reader) .reader-layout .reader > details:is(.library-references,.money-references,.learn-professionals) > summary h2 {
    margin: 0;
    font: 650 clamp(1.1rem, 2vw, 1.35rem)/1.3 var(--knowledge-ui) !important;
  }
  body.journey-enabled :is(#main,#premium-reader) .reader-layout .reader :is(.library-source-record,.money-source-record) {
    padding: .85rem 0;
    border-block-end: 1px solid var(--knowledge-line);
  }
}

@media screen {
  /* Fit's week selectors map to the nine anchored workouts. Money's columns
     reflect the dated cash calculation. Learn's worked answer remains concealed
     until requested; the named evidence and its limits stay in the article. */
  body.fit-premium :is(#main,#premium-reader) .reader-layout .reader nav:has(#workout-week-navigation) {
    margin: 1.1rem 0 1.4rem;
    padding: .8rem;
    border: 1px solid var(--knowledge-rule);
    border-radius: .375rem;
    background: var(--knowledge-tint);
  }
  body.fit-premium :is(#main,#premium-reader) #workout-week-navigation { font-size: .95rem; }
  body.fit-premium :is(#main,#premium-reader) #workout-week-navigation + .library-shelf-nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .3rem;
    margin: .45rem 0 0;
    padding: 0;
    border: 0;
  }
  body.fit-premium :is(#main,#premium-reader) #workout-week-navigation + .library-shelf-nav a {
    display: grid;
    place-items: center;
    min-height: 44px;
    border: 1px solid var(--knowledge-line);
    border-radius: .22rem;
    color: var(--knowledge-ink) !important;
    background: var(--knowledge-paper);
    font: 650 .94rem/1.3 var(--knowledge-ui);
    font-variant-numeric: tabular-nums;
    text-decoration: none;
  }
  body.fit-premium :is(#main,#premium-reader) #workout-week-navigation + .library-shelf-nav a:is(:hover,:focus-visible) {
    border-color: var(--knowledge-accent);
    text-decoration: underline;
  }
  body.money-premium :is(#main,#premium-reader) .reader-layout .reader :is(.essential-step,.guide-step) table {
    width: 100%;
    margin: .7rem 0 .45rem;
    border-collapse: collapse;
    table-layout: fixed;
    font-size: .93rem;
    font-variant-numeric: tabular-nums;
  }
  body.money-premium :is(#main,#premium-reader) .reader-layout .reader :is(.essential-step,.guide-step) :is(th,td) {
    padding: .5rem .38rem;
    border: 0;
    border-block-end: 1px solid var(--knowledge-line);
    line-height: 1.42;
    overflow-wrap: anywhere;
  }
  body.money-premium :is(#main,#premium-reader) .reader-layout .reader :is(.essential-step,.guide-step) thead th {
    color: var(--knowledge-ink);
    background: var(--knowledge-tint);
    border-block-start: 2px solid var(--knowledge-rule);
  }
  body.money-premium :is(#main,#premium-reader) [data-current-guide="paycheck-to-paycheck"] #practical-guide table tr > :first-child {
    width: 45%;
  }
  body.money-premium :is(#main,#premium-reader) [data-current-guide="paycheck-to-paycheck"] #practical-guide table tr > :not(:first-child) {
    text-align: end;
  }
  /* Claim, example and answer use distinct treatments without adding an invented finding. */
  body.learn-premium :is(#main,#premium-reader) .reader-layout .reader .essential-answer {
    margin: .75rem 0 .2rem;
    padding: 0 .75rem;
    border: 1px solid var(--knowledge-rule);
    border-radius: .325rem;
    background: var(--knowledge-tint);
  }
  body.learn-premium :is(#main,#premium-reader) .reader-layout .reader .essential-answer > summary {
    min-height: 44px;
    padding: .65rem 0;
    color: var(--knowledge-ink);
    font: 700 1rem/1.4 var(--knowledge-ui);
    cursor: pointer;
  }
  body.learn-premium :is(#main,#premium-reader) .reader-layout .reader .essential-answer > p {
    margin: 0 0 .8rem;
  }
  body.learn-premium :is(#main,#premium-reader) .reader-layout .learn-professionals .professional-record[open] {
    padding: 0 .8rem .45rem;
    border-inline-start: 2px solid var(--knowledge-rule);
    background: var(--knowledge-tint);
  }
  body.self-premium :is(#main,#premium-reader) .reader-layout .reader [data-role="community"] .community-group {
    margin-block: 1.1rem;
    padding-inline-start: .85rem;
    border-inline-start: 2px solid var(--knowledge-rule);
  }
  body:is(.self-premium,.fit-premium,.money-premium,.learn-premium) .topic-menu-sheet .topic-menu-links {
    display: grid;
    gap: 0;
  }
  body:is(.self-premium,.fit-premium,.money-premium,.learn-premium) .topic-menu-sheet .topic-menu-links a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 44px;
    padding: .6rem .4rem;
    border: 0;
    border-block-end: 1px solid var(--knowledge-line);
    border-radius: 0;
    background: none;
    font-size: .95rem;
    text-decoration: none;
  }
  body:is(.self-premium,.fit-premium,.money-premium,.learn-premium) .topic-menu-sheet .topic-menu-links a::after {
    content: "↓" / "";
    flex: none;
    margin-inline-start: .65rem;
    color: var(--knowledge-accent);
  }
  @container knowledge-reader (min-width: 39rem) {
    body.fit-premium :is(#main,#premium-reader) #workout-week-navigation + .library-shelf-nav {
      grid-template-columns: repeat(9,minmax(0,1fr));
    }
  }
}

/* A compound lookup is a reference task. A real Research photograph illustrates
   the act of reading on the wide entrance; the narrow entrance gives the search
   field, its working example and the A–Z list the available space. */
@media screen {
  body.research-premium-page #main.research-premium #discovery .hero {
    display: grid;
    gap: .3rem;
    align-items: start;
    margin: .3rem 0 1rem;
    padding: clamp(.8rem, 2.5vw, 1.6rem);
    border: 1px solid var(--line);
    border-block-start: 3px solid var(--accent);
    border-radius: .375rem;
    background: var(--knowledge-surface);
    color: var(--ink);
  }
  body.research-premium-page #main.research-premium #discovery .hero h1 {
    margin: 0;
    font: 550 clamp(1.95rem, 4.3vw, 3.7rem)/1.04 var(--knowledge-display) !important;
    letter-spacing: -.032em;
  }
  body.research-premium-page #main.research-premium #discovery .hero-description {
    max-width: 50ch;
    margin: .1rem 0 .55rem;
    color: var(--muted) !important;
    font-size: 1rem;
    line-height: 1.42;
  }
  body.research-premium-page #main #discovery .research-example {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0 .6rem;
    margin: 0;
    color: var(--muted);
    font-size: .855rem;
    line-height: 1.35;
  }
  body.research-premium-page #main #discovery .research-example a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: var(--accent) !important;
    font-weight: 650;
    text-decoration: underline;
    text-underline-offset: .17em;
  }
  body.research-premium-page #main #discovery .hero:has(#query:not(:placeholder-shown)) .research-example { display: none; }
  body.research-premium-page #main #research-name-directory .name-directory-heading h2,
  body.research-premium-page #main #directory .section-heading h2 {
    margin: 0;
    font: 650 clamp(1.4rem, 2.5vw, 2rem)/1.15 var(--knowledge-ui) !important;
  }
  body.research-premium-page #main #directory .result-group > h3 {
    display: block;
    margin: 1.1rem 0 0;
    padding: .35rem .7rem;
    color: var(--accent);
    background: var(--knowledge-tint);
    border-top: 2px solid var(--knowledge-rule);
    font: 720 1.2rem/1.2 var(--knowledge-ui);
    letter-spacing: 0;
  }
  body.research-premium-page #main #directory .result-list {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(min(100%,25rem),1fr));
    gap: 0 clamp(.85rem, 2vw, 1.4rem);
  }
  body.research-premium-page #main #directory a.compound {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: .5rem;
    min-width: 0;
    min-height: 44px;
    padding: .78rem .4rem;
    border: 0;
    border-block-end: 1px solid var(--line);
    border-radius: 0;
    background: transparent;
  }
  body.research-premium-page #main #directory a.compound > div {
    min-width: 0;
    grid-template-columns: minmax(0,1fr) auto;
  }
  body.research-premium-page #main #directory a.compound .compound-name {
    font: 700 clamp(1.08rem, 1.7vw, 1.35rem)/1.22 var(--knowledge-ui);
  }
  body.research-premium-page #main #directory a.compound p {
    max-width: 58ch;
    margin: .12rem 0 0;
    color: var(--muted);
    font-size: .955rem;
    line-height: 1.45;
  }
  body.research-premium-page #main #directory a.compound:is(:hover,:focus-visible) {
    background: var(--knowledge-tint);
  }
  body.research-premium-page #main #reader #reader-title {
    max-width: 37ch;
    margin-block: .68rem .25rem;
    font: 770 clamp(1.78rem, 4.4vw, 3.55rem)/1.08 var(--knowledge-ui) !important;
    letter-spacing: -.035em;
    text-wrap: pretty;
  }
  body.research-premium-page #main #reader .scan-identity {
    max-width: 64ch;
    padding: .45rem 0 .55rem;
    color: var(--ink);
    font-size: clamp(1rem, 1.45vw, 1.18rem);
    line-height: 1.5;
  }
  body.research-premium-page #main #reader .reading-summary {
    padding: clamp(.72rem, 2vw, 1.25rem);
    background: var(--knowledge-surface);
    border: 1px solid var(--line);
    border-top: 3px solid var(--accent);
    border-radius: .375rem;
  }
  body.research-premium-page #main #reader .reading-summary .effect-terms {
    margin: .15rem 0 .35rem;
    color: var(--ink);
    font: 750 clamp(1.23rem, 2.3vw, 1.75rem)/1.17 var(--knowledge-ui);
  }
  body.research-premium-page #main #reader .reading-summary .effect-account {
    margin: 0 0 .7rem;
    font-size: 1rem;
    line-height: 1.5;
  }
  body.research-premium-page #main #reader .scan-preview .scan-fact {
    padding: .64rem clamp(.4rem, 1.4vw, .95rem);
    color: var(--ink);
  }
  body.research-premium-page #main #reader .scan-preview :is([data-scan-key="doses"],[data-scan-key="half-life"]) {
    grid-row: auto;
    border-block-start: 2px solid var(--knowledge-rule);
    border-radius: .25rem;
  }
  body.research-premium-page #main #reader .scan-preview .scan-value {
    font-weight: 740;
    font-size: clamp(1.025rem, 1.55vw, 1.28rem);
    line-height: 1.24;
  }
  body.research-premium-page #main #reader .compound-article {
    max-width: 69ch;
    margin-inline: auto;
    margin-block-start: clamp(1.25rem, 3vw, 2.2rem);
  }
  body.research-premium-page #main #reader .compound-article .reading-section {
    margin: 0 0 clamp(1.4rem, 3vw, 2.2rem);
    padding: .8rem 0 0;
    border: 0;
    border-block-start: 2px solid var(--knowledge-rule);
  }
  body.research-premium-page #main #reader .compound-article .scan-topic {
    display: block;
    width: fit-content;
    margin: 0 0 .58rem;
    color: var(--accent);
    font: 680 .9rem/1.35 var(--knowledge-ui);
    text-transform: none;
    letter-spacing: .008em;
  }
  body.research-premium-page #main #reader .compound-article .scan-takeaway {
    margin: 0 0 .35rem;
    font: 700 clamp(1.26rem, 2.6vw, 1.72rem)/1.2 var(--knowledge-display) !important;
    letter-spacing: -.013em;
    text-wrap: pretty;
  }
  body.research-premium-page #main #reader .compound-article .scan-explanation { line-height: 1.62; }
  body.research-premium-page #main #reader .reader-reference {
    max-width: 69ch;
    margin: 1.1rem auto 1.5rem;
    padding: 0;
    border: 1px solid var(--knowledge-rule);
    border-radius: .375rem;
    background: var(--knowledge-surface);
  }
  body.research-premium-page #main #reader .reader-reference > summary {
    min-height: 50px;
    padding: .8rem .95rem;
    background: var(--knowledge-tint);
    font: 700 clamp(1.1rem, 2vw, 1.35rem)/1.3 var(--knowledge-ui);
  }
  body.research-premium-page #main #reader .reference-body .reference-source > summary {
    padding: .8rem .6rem;
    border-block-end: 1px solid var(--line);
  }
  body.research-premium-page #main #reader .reference-body .reference-source-reading {
    margin-inline: .3rem;
    padding-inline-start: .7rem;
    border-inline-start: 2px solid var(--knowledge-rule);
  }
  @media (min-width: 48rem) {
    body.research-premium-page #main.research-premium #discovery .hero {
      grid-template-columns: minmax(0, 1.5fr) minmax(13rem, .83fr);
      column-gap: clamp(1.25rem, 4vw, 3rem);
      align-content: center;
    }
    body.research-premium-page #main.research-premium #discovery .hero > * { grid-column: 1; }
    body.research-premium-page #main.research-premium #discovery .hero::after {
      content: "";
      position: static;
      grid-column: 2;
      grid-row: 1 / span 4;
      align-self: stretch;
      width: 100%;
      min-height: 9rem;
      height: auto;
      border-radius: .18rem;
      background: 55% 51% / cover no-repeat url("/assets/portfolio-media/research-640.jpg");
      opacity: 1;
      transform: none;
    }
  }
}

@media screen and (forced-colors: active) {
  html[data-map-product] body.journey-enabled #main #directory[data-essential-results]:focus-visible #directory-title { outline-color: Highlight; }
  html[data-map-product] :is(.knowledge-question, .topic-index-jump, .topic-index-group > h2,
    .library-quick-fact, .money-quick-fact, .essential-answer, .reader-reference) {
    border-color: CanvasText;
  }
  html[data-map-product] :is(.knowledge-question, .topic-index-jump a, .topic-index-return,
    .money-quick-fact a, .library-quick-fact a, .research-example a):focus-visible {
    outline: 3px solid Highlight !important;
    outline-offset: 2px;
  }
}
@media print {
  html[data-map-product] :is(.topic-index-jump,.topic-index-return,.knowledge-question img,.research-example) { display: none; }
  html[data-map-product] .topic-index-group > h2 { break-after: avoid; }
}


/* STUDplay. The actual game is the invitation, the finder fits the group,
   and the actor's private prompt remains the focus once play begins. */
@media screen {
  body.play-rebuilt #play-main .play-host-home .host-intro {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: clamp(1rem, 4vw, 3.5rem);
    align-items: center;
    padding-block: clamp(1.2rem, 3vw, 2.6rem);
  }
  body.play-rebuilt #play-main .play-host-home .host-intro h1 {
    max-width: 13ch;
    font: 900 clamp(2.65rem, 6vw, 5rem)/.96 "Standard Condensed", "Arial Narrow", Impact, sans-serif;
    letter-spacing: .002em;
    text-wrap: balance;
  }
  #play-main .play-host-home .host-entry-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 0 .85rem;
  }
  #play-main .host-intro .host-entry-actions a { min-width: 0; line-height: 1.32; }
  #play-main .host-intro .host-charades-start {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(6.25rem, 42%) minmax(0, 1fr) auto;
    align-items: center;
    overflow: hidden;
    gap: .65rem;
    min-height: 7.25rem;
    padding: 0 .75rem 0 0;
    border: 1px solid #678351;
    border-radius: .3rem;
    background: #1c3228;
    color: #f6f7e9;
  }
  #play-main .host-intro .host-charades-start img {
    display: block; width: 100%; height: 100%; min-height: 7.25rem;
    object-fit: cover; object-position: 55% 39%; border-radius: 0;
  }
  #play-main .host-charades-start strong { font-size: clamp(1.22rem, 2.2vw, 1.65rem); line-height: 1.12; }
  #play-main .host-charades-start small { margin-top: .35rem; font-size: .875rem; color: #dce8ce; }
  #play-main .play-host-home .host-bench, #play-main [data-play-discovery] .play-finder {
    background: #152724; border: 1px solid #3f5a51; border-top: 3px solid #aac985; border-radius: .4rem;
  }
  body.play-rebuilt #play-main .play-host-home :is(.host-bench-heading, .host-results-heading) h2 {
    font-size: clamp(1.25rem, 2.4vw, 1.75rem); line-height: 1.16;
  }
  #play-main .host-feature .host-opening-step, #play-main .host-feature .host-quick {
    padding: .9rem 1rem; background: #162821; border-left: 3px solid #b1d36e; border-radius: 0 .35rem .35rem 0;
  }
  #play-main [data-play-discovery] .play-browse-intro, #play-main [data-play-saved-page] .play-saved-intro {
    border-block-end: 2px solid #809c66; margin-bottom: 1rem; padding-block: clamp(1rem, 3vw, 2rem);
  }
  body.play-rebuilt #play-main :is(.play-browse-intro, .play-saved-intro) h1 {
    font: 900 clamp(2.75rem, 6vw, 4.8rem)/1 "Standard Condensed", "Arial Narrow", Impact, sans-serif;
    letter-spacing: .005em;
  }
  #play-main [data-play-discovery] [data-play-reading="card"] {
    grid-template-columns: minmax(0, 1fr) clamp(5.8rem, 22%, 8rem);
    border-radius: .4rem; border-top: 2px solid #557364;
  }
  #play-main [data-play-discovery] .play-card-image img { border-radius: .25rem; }
  #play-main [data-play-saved-page] :is(.play-saved-row, .play-saved-empty) {
    padding: clamp(.9rem, 2vw, 1.45rem); background: #18282a; border: 1px solid #405856; border-radius: .35rem;
  }
  #play-main [data-play-saved-page] .play-saved-row { border-inline-start: 3px solid #b7d682; }
  #play-main [data-play-saved-page] .play-storage-note { max-width: 60ch; line-height: 1.5; }
  #play-main [data-play-guide]:not([data-play-guide=""]) .play-reading-intro {
    padding-block: .75rem 1rem; border-block-start: 2px solid #7b985c;
    grid-template-columns: minmax(0, max-content) minmax(0, 1fr) clamp(10.5rem, 31%, 17rem);
  }
  body.play-rebuilt #play-main [data-play-guide] .play-reading-intro .play-detail-hero h1 {
    font: 900 clamp(2.3rem, 4.6vw, 3.85rem)/1.02 "Standard Condensed", "Arial Narrow", Impact, sans-serif;
    letter-spacing: .002em;
  }
  #play-main .play-reading-intro .play-detail-hero .play-detail-image {
    width: 100%; align-self: stretch; height: 100%; max-height: 13rem; min-height: 0;
    object-fit: cover; border-radius: .35rem;
  }
  #play-main [data-play-guide] .play-reading-opening {
    padding-inline: .9rem; background: #182723; border-bottom: 1px solid #344c42;
    border-inline-start: 3px solid #93ae72;
  }
  #play-main [data-play-guide] .play-reading-opening > div:first-child { border-top: 0; }
  #play-main [data-play-guide] .play-guide-body #first-round {
    padding: clamp(1rem, 2.5vw, 1.6rem);
    background: #132620; border: 1px solid #3e5a4b; border-radius: .45rem;
  }
  #play-main [data-play-guide] .play-guide-body .play-twist:target {
    border-inline-start: 3px solid #c8f53f; padding-inline-start: 1rem; background: #15231a;
  }
  #play-main [data-charades-launch].charades-launch {
    gap: .75rem 1rem; padding: 1rem; border: 1px solid #6e8e62; border-radius: .4rem;
    background: #233b2b; color: #f4f5e7;
  }
  #play-main [data-charades-launch] strong { font-size: 1.28rem; line-height: 1.12; }
  dialog.charades-host .ch-frame { background: #101b19; color: #f8f6ea; }
  dialog.charades-host .ch-header { background: #1b2b25; border-bottom: 1px solid #526552; }
  dialog.charades-host .ch-rules {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; padding: 0;
    background: #56644c; border: 1px solid #56644c; border-radius: .25rem;
  }
  dialog.charades-host .ch-rules > span {
    min-width: 0; padding: .52rem .35rem; background: #293a2e; color: #e9edda;
    text-align: center; overflow-wrap: break-word;
  }
  dialog.charades-host .ch-rules strong { display: block; color: #daf49d; font-size: 1.5rem; line-height: 1.1; }
  dialog.charades-host .ch-stage {
    padding: clamp(1rem, 4vw, 2rem); border: 1px solid #698064; border-radius: .4rem;
  }
  dialog.charades-host .ch-covered { background: #203a2c; }
  dialog.charades-host .ch-cover-mark {
    width: 3.4rem; height: 4.15rem; margin-block: 1rem 0; background: #182c21;
    border: 2px solid #99ba7e; color: #d9f0aa; transform: rotate(-5deg);
  }
  dialog.charades-host .ch-prompt {
    background: #eee6cd; color: #17342a; border-color: #eee6cd; border-inline-start: .45rem solid #b6d36f;
  }
  dialog.charades-host .ch-prompt :is(h2, .ch-secret, .ch-clock, .ch-clock span) { color: #17342a; }
  dialog.charades-host .ch-prompt .ch-secret {
    max-width: 22ch; font: 700 clamp(2.15rem, 6vw, 3.45rem)/1.08 Georgia, serif;
    letter-spacing: -.035em;
  }
  dialog.charades-host .ch-prompt .ch-low-time { color: #8f3529; }
  dialog.charades-host .ch-scores .ch-score { border-radius: .25rem; }
  dialog.charades-host .ch-scores .ch-current { border-inline-start: .3rem solid #afca75; }
  @media (max-width: 700px) {
    body.play-rebuilt #play-main .play-host-home .host-intro { grid-template-columns: minmax(0, 1fr); gap: .85rem; }
    body.play-rebuilt #play-main .play-host-home .host-intro h1 { max-width: 17ch; }
    #play-main .host-intro .host-charades-start { grid-template-columns: minmax(5.25rem, 34%) minmax(0, 1fr) auto; }
    #play-main [data-play-guide]:not([data-play-guide=""]) .play-reading-intro {
      grid-template-columns: minmax(0, max-content) minmax(0, 1fr) clamp(5.3rem, 29%, 8.4rem);
    }
    #play-main .play-reading-intro .play-detail-hero .play-detail-image { grid-area: 1 / 3 / 3 / 4; max-height: 8rem; align-self: center; aspect-ratio: 1.12; }
  }
}

/* Events. Carry each occasion's photograph and date into an actual choice
   of games, with the host sequence readable in order at its direct link. */
@media screen {
  body.stud-v3.v4 main[data-events-page] .v4-section-head h2 {
    font: 900 clamp(1.8rem, 4vw, 2.9rem)/1.06 "Standard Condensed", "Arial Narrow", Impact, sans-serif;
    letter-spacing: .008em;
  }
  body.stud-v3.v4 main[data-events-page] .v4-event-card {
    grid-template: "photo name" auto "photo preview" 1fr / clamp(5.7rem, 29%, 10rem) minmax(0, 1fr);
    gap: 0; align-content: stretch; min-height: 8rem; overflow: hidden;
    background: #151f22; border: 1px solid #3f4b46; border-radius: .4rem;
  }
  body.stud-v3.v4 main[data-events-page] .v4-event-card__media {
    align-self: stretch; width: 100%; min-height: 100%; aspect-ratio: auto; margin: 0; border-radius: 0;
  }
  body.stud-v3.v4 main[data-events-page] .v4-event-card__media :is(picture, img) {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  }
  body.stud-v3.v4 main[data-events-page] .v4-event-card__copy { padding: .8rem .85rem 0; }
  body.stud-v3.v4 main[data-events-page] .v4-event-card__copy small { color: #f3cc8c; }
  body.stud-v3.v4 main[data-events-page] [data-event-host-preview] { margin: .4rem .85rem .9rem; color: #d5ded9; }
  body.stud-v3.v4 main[data-events-page] [data-events-current-grid] > .v4-event-card:first-of-type {
    border-color: #9a865f; background: #253029;
  }
  #activity-results #gathering-plan [data-group-plan] {
    margin-block: .55rem 1.35rem; padding: .95rem 1.15rem; max-width: 75ch;
    background: #1d302b; border: 1px solid #466253; border-inline-start: 4px solid #b5c88c; border-radius: .25rem;
  }
  #activity-results #gathering-plan [data-group-plan] h3 { color: #ecf0de; margin-block: 0 .35rem; }
  #activity-results #gathering-plan [data-group-plan] p { color: #d1ddd5; margin: 0; line-height: 1.52; }
  #activity-results #gathering-plan .event-host-choice {
    margin-block: .75rem 1rem; padding: clamp(.8rem, 2vw, 1.3rem);
    background: #172321; border: 1px solid #40574e; border-radius: .4rem;
  }
  #activity-results #gathering-plan .event-host-photo { border-radius: .2rem; }
  #activity-results #gathering-plan .event-host-facts { padding-block: .5rem; border-block: 1px solid #40574e; }
  #activity-results #hosting-sequence.host-sequence {
    max-width: none; padding: clamp(1rem, 3vw, 2rem); background: #202e29;
    border-top: 3px solid #cfb982; border-radius: .25rem;
  }
  #activity-results #hosting-sequence ol { display: grid; gap: 0; }
  #activity-results #hosting-sequence li { padding: .65rem .1rem; margin: 0; }
  #activity-results #hosting-sequence li + li { border-top: 1px solid #4b5c4f; }
  @media (min-width: 880px) {
    #activity-results #hosting-sequence ol { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 2rem; }
    #activity-results #hosting-sequence li + li { border-top: 0; }
  }
}

/* Adventure. Town streets, a neighbor's invitation and a two-stop itinerary
   each have their own composition. Both fetched and native readers contain
   the article; its wrapper alone changes. */
@media screen {
  body.adventure-page #main [data-essential-choices="adventure"] .essential-heading h2 {
    max-width: 22ch; font: 600 clamp(1.75rem, 3.8vw, 2.75rem)/1.09 Georgia, serif; letter-spacing: -.035em;
  }
  body.adventure-page #main [data-essential-choices="adventure"] > ul > li:first-child > a {
    grid-template: "photo" auto "copy" auto / minmax(0,1fr);
    background: #20322b; border-color: #59705d; border-radius: .35rem; overflow: hidden; min-height: 0;
  }
  body.adventure-page #main [data-essential-choices="adventure"] > ul > li:first-child > a > img {
    height: auto; aspect-ratio: 3.45; object-position: 50% 50%; contain: none; border-radius: 0;
  }
  body.adventure-page #main [data-essential-choices="adventure"] > ul > li:first-child > a > span {
    padding: .85rem clamp(.9rem, 2.2vw, 1.6rem) 1rem;
  }
  body.adventure-page #main [data-essential-choices="adventure"] > ul > li:first-child strong {
    max-width: none; color: #f3edda; font: 600 clamp(1.6rem, 3.3vw, 2.4rem)/1.12 Georgia, serif; letter-spacing: -.03em;
  }
  body.adventure-page #main [data-essential-choices="adventure"] > ul > li:first-child small {
    max-width: 63ch; color: #d6e1d3;
  }
  html[data-map-product="adventure"] body.adventure-page [data-editorial-reader] .catalog-standalone-head > h1 {
    font: 570 clamp(2.35rem, 5.2vw, 3.85rem)/1.06 Georgia, serif !important;
    letter-spacing: -.047em !important; text-wrap: balance;
  }
  body.adventure-page [data-editorial-reader] .adv-reading-preview > dl {
    display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,13rem),1fr)); gap: 1px;
    padding: 1px; border: 0; background: #485c50;
  }
  body.adventure-page [data-editorial-reader] .adv-reading-preview > dl > div {
    min-width: 0; padding: .8rem .9rem; background: #1d2c27; border: 0;
  }
  body.adventure-page [data-editorial-reader] .adv-reading-preview > dl dt { color: #c0dbac; }
  body.adventure-page [data-editorial-reader] .adv-photo-intro {
    display: flow-root; padding: .8rem; background: #1d2f28; border: 1px solid #445b4b; border-radius: .35rem;
  }
  body.adventure-page [data-editorial-reader] .adv-photo-intro img { border-radius: .2rem; }
  body.adventure-page .book-host [data-choice-result] .book-host-plan { margin-block: 1.4rem .25rem; }
  body.adventure-page .book-host .book-host-plan::before {
    content: ""; display: block; width: 100%; height: clamp(7.2rem, 35cqi, 11rem);
    margin-bottom: .85rem; background-position: 50% 33%; background-size: cover; background-repeat: no-repeat; border-radius: .2rem;
  }
  body.adventure-page .book-host [id$="swap-and-charades"] .book-host-plan::before {
    background-image: url("/images/activity-tiles/optimized/charades-improv-charades-640.avif");
    background-position: 50% 25%;
  }
  body.adventure-page .book-host [id$="swap-only"] .book-host-plan::before {
    background-image: url("/assets/stud-token-creative/cards-rich-friends-bookshop.webp");
    background-position: 50% 16%;
  }
  body.adventure-page .book-host .book-host-links { align-items: center; column-gap: 1.3rem; }
  body.adventure-page .book-host .book-host-links > a:first-child {
    --stud-nav-state-ink: #18291f; display: inline-flex; min-height: 46px; padding: .55rem .85rem;
    background: #f0bc99; color: #18291f !important; border-radius: .2rem; text-decoration: none;
  }
  body.adventure-page [data-editorial-reader] .adv-prose .adv-plan {
    padding: clamp(1rem, 3.2vw, 1.8rem); background: #1b2c26; border: 1px solid #405a49; border-top: 3px solid #9eb590; border-radius: .35rem;
  }
  body.adventure-page [data-editorial-reader] .adv-prose .adv-plan-choice {
    padding: .85rem 1rem; background: #273b2f; border-inline-start: .22rem solid #adc993;
  }
  body.adventure-page [data-editorial-reader] .adv-plan-sequence {
    margin-block: 1.35rem; padding-inline: 0; list-style: none;
  }
  body.adventure-page [data-editorial-reader] .adv-plan-sequence > li {
    position: relative; margin: 0 0 0 .25rem; padding: .15rem 0 1.25rem 1rem;
    border: 0; border-inline-start: 1px solid #6d846c; background: transparent;
  }
  body.adventure-page [data-editorial-reader] .adv-plan-sequence > li:last-child { padding-bottom: .15rem; }
  body.adventure-page [data-editorial-reader] .adv-plan-sequence > li::before {
    content: ""; position: absolute; left: -.26rem; top: .55rem; width: .45rem; height: .45rem;
    border: 1px solid #c2d3b5; border-radius: 50%; background: #a9c58e;
  }
  body.adventure-page [data-editorial-reader] .adv-prose > .adv-takeaway {
    padding: clamp(1rem, 3vw, 1.7rem); border-block: 1px solid #627a64;
    background: #21382c; border-radius: .3rem;
  }
  body.adventure-page [data-editorial-reader] .adv-guide-outing a { display: inline-flex; align-items: center; min-height: 44px; }
  body.outing-page #main.outing-main > .intro {
    padding: clamp(1rem, 3vw, 2rem); border: 1px solid #4b6252; border-inline-start: .3rem solid #b7c997;
    background: #20342a; border-radius: .25rem;
  }
  body.outing-page #main.outing-main > .intro h1 { font: 600 clamp(2.4rem, 5vw, 3.7rem)/1.02 Georgia, serif; letter-spacing: -.045em; }
  body.outing-page #main #planner .option, body.outing-page #main .plan-head {
    border-top: 3px solid #8da782; background: #1e3027; border-radius: .3rem;
  }
  body.outing-page #main #planner .option ol, body.outing-page #main .plan-grid .sequence {
    padding-block: .65rem; border-block: 1px solid #506357;
  }
  body.outing-page #main .plan-grid .sequence li { margin-block: .5rem; }
  body.outing-page #main #outing-origin:not([hidden]) { border-inline-start: 4px solid #adbd98; }
  @media (min-width: 650px) {
    body.adventure-page [data-editorial-reader] .adv-photo-intro {
      display: grid; grid-template-columns: minmax(10rem, 38%) minmax(0, 1fr); column-gap: 1.2rem; align-content: start;
    }
    body.adventure-page [data-editorial-reader] .adv-photo-intro img { grid-column: 1; grid-row: 1 / span 4; align-self: stretch; height: 100%; min-height: 0; object-fit: cover; }
    body.adventure-page [data-editorial-reader] .adv-photo-intro > :not(img) { grid-column: 2; margin-block: .3rem; }
  }
  @container (min-width: 39rem) {
    body.adventure-page .book-host [data-choice-result] .book-host-plan { margin-block-start: 0; }
  }
}

/* Skill. Preserve the demonstration photograph and diagrams at their authored
   crops. Materials, method, practice and finish checks read like a workshop. */
@media screen {
  body.skill-page #main [data-essential-choices="skill"] .essential-heading h2 {
    max-width: 21ch; font-size: clamp(1.65rem, 3.6vw, 2.5rem); line-height: 1.1; letter-spacing: -.035em;
  }
  body.skill-page #main [data-essential-choices="skill"] > ul > li:first-child > a {
    grid-template-columns: minmax(0, 43%) minmax(0, 1fr);
    background: #1b2e3a; border-color: #5b788a; border-radius: .3rem; overflow: hidden;
  }
  body.skill-page #main [data-essential-choices="skill"] > ul > li:first-child > a > img {
    height: 100%; object-position: 47% 62%; border-radius: 0;
  }
  body.skill-page #main [data-essential-choices="skill"] > ul > li:first-child > a > span { padding: clamp(.75rem, 2vw, 1.5rem); }
  body.skill-page #main [data-essential-choices="skill"] > ul > li:first-child strong {
    color: #edf6fa; font-size: clamp(1.45rem,3vw,2.3rem); letter-spacing: -.035em; line-height: 1.1;
  }
  body.skill-page #main [data-essential-choices="skill"] > ul > li:first-child small { color: #d0e0e7; }
  body.skill-page [data-editorial-reader="skill"] .skill-reading-preview dl {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
    gap: 1px; background: #536674; border: 1px solid #536674; border-radius: .2rem;
  }
  body.skill-page [data-editorial-reader="skill"] .skill-reading-preview dl > div { background: #20303b; padding: .75rem .85rem; border: 0; }
  body.skill-page [data-editorial-reader="skill"] .skill-reading-preview dt { color: #b9d9f7; }
  body.skill-page [data-editorial-reader="skill"] .skill-photo-guide {
    padding: clamp(.75rem, 2.2vw, 1.25rem); background: #192d39; border: 1px solid #4c697b; border-radius: .3rem;
  }
  body.skill-page [data-editorial-reader="skill"] .skill-repair-start img { border-radius: .15rem; }
  body.skill-page [data-editorial-reader="skill"] .skill-repair-action {
    display: inline-flex; align-items: center; min-height: 44px; margin-block: .3rem;
    padding: .45rem .75rem; border: 1px solid #728fa6; border-radius: .25rem; color: #d7eaff; text-decoration: none;
  }
  body.skill-page [data-editorial-reader="skill"] .essential-lesson {
    padding: clamp(.9rem, 2.6vw, 1.5rem); background: #172732; border-top: 3px solid #8caecc; border-radius: .25rem;
  }
  body.skill-page [data-editorial-reader="skill"] .essential-step { padding-block: 1rem; border-top-color: #435865; }
  body.skill-page [data-editorial-reader="skill"] .essential-step h3 { color: #d5e7f5; }
  body.skill-page [data-editorial-reader="skill"] .skill-checkpoint {
    padding: .8rem 1rem; border-inline-start: 3px solid #a3cce2; background: #20323d;
  }
  body.skill-page [data-editorial-reader="skill"] .skill-practice > li {
    padding-block: .65rem; border-block-end: 1px solid #405460;
  }
  body.skill-page [data-editorial-reader="skill"] .skill-success {
    margin-block: 1rem; padding: .75rem 1rem; background: #1f3434;
    border: 1px solid #506c67; border-inline-start: 4px solid #a2c8ad; border-radius: .25rem;
  }
  body.skill-page [data-editorial-reader="skill"] .skill-questions details:not([open]) { background: #192832; }
  body.skill-page [data-editorial-reader="skill"] .skill-questions details[open] { background: #233541; border-color: #7594a6; }
  body.skill-page [data-editorial-reader="skill"] .skill-questions summary { min-height: 44px; align-content: center; }
  @media (max-width: 550px) {
    body.skill-page #main [data-essential-choices="skill"] > ul > li:first-child > a {
      grid-template: "photo" auto "copy" auto / minmax(0, 1fr); min-height: 0;
    }
    body.skill-page #main [data-essential-choices="skill"] > ul > li:first-child > a > img {
      contain: none; height: auto; aspect-ratio: 2.45; object-position: 50% 53%;
    }
    body.skill-page #main [data-essential-choices="skill"] > ul > li:first-child > a > span { padding: .75rem 1rem .9rem; }
  }
}

/* Motivation. Keep the whole essay available. An illustrated opening, the
   author's invitation, a worked scene and a closing thought play different
   roles; the diagram and its labels keep their original visual encoding. */
@media screen {
  body.motivation-premium #main [data-essential-choices="motivation"] .essential-heading h2 {
    font: 550 clamp(1.85rem, 4vw, 2.8rem)/1.1 Georgia, serif; letter-spacing: -.04em;
  }
  body.motivation-premium #main [data-essential-choices="motivation"] > ul > li:first-child > a {
    grid-template-columns: minmax(0, 37%) minmax(0, 1fr); min-height: clamp(9.2rem, 18vw, 13rem);
    background: #322a25; border-color: #786452; border-radius: .3rem; overflow: hidden;
  }
  body.motivation-premium #main [data-essential-choices="motivation"] a[href="/motivation/reads/drive-practice-the-hard-part/"]::before {
    background-image: url("/assets/stud-token-creative/cards-expansion100-074-public-speaking-practice.webp");
    background-position: 50% 37%; border-radius: 0;
  }
  body.motivation-premium #main [data-essential-choices="motivation"] > ul > li:first-child strong {
    color: #fff0d8; font: 560 clamp(1.55rem, 3.2vw, 2.4rem)/1.13 Georgia, serif; letter-spacing: -.034em;
  }
  body.motivation-premium #main [data-essential-choices="motivation"] > ul > li:first-child small { color: #e3d7c9; }
  body.motivation-premium [data-editorial-reader="motivation"] .catalog-standalone-article {
    --story-columns: minmax(0, 1fr); --story-focal: 50% 36%;
  }
  body.motivation-premium .catalog-standalone-article:has([data-studplan-source-id="read-drive-practice-the-hard-part"]) {
    --story-photo: url("/assets/stud-token-creative/cards-expansion100-074-public-speaking-practice.webp"); --story-focal: 50% 18%;
  }
  body.motivation-premium .catalog-standalone-article:has([data-studplan-source-id="read-drive-return-after-a-long-interruption"]) {
    --story-photo: url("/assets/stud-token-creative/cards-expansion100-063-first-cello-note.webp"); --story-focal: 50% 12%;
  }
  body.motivation-premium .catalog-standalone-article:has([data-studplan-source-id="read-drive-help-where-you-are"]) {
    --story-photo: url("/assets/stud-token-creative/cards-expansion100-083-groceries-volunteers.webp"); --story-focal: 50% 16%;
  }
  body.motivation-premium .catalog-standalone-article:has([data-studplan-source-id="read-drive-be-the-one-who-invites"]) {
    --story-photo: url("/assets/stud-token-creative/coffee-friends.webp"); --story-focal: 50% 13%;
  }
  body.motivation-premium .catalog-standalone-article:has([data-studplan-source-id="read-drive-remember-who-helped"]) {
    --story-photo: url("/assets/stud-token-creative/cards-expansion100-081-coach-after-practice.webp"); --story-focal: 50% 15%;
  }
  body.motivation-premium .catalog-standalone-article:has([data-studplan-source-id="read-drive-build-the-project-you-mean"]) {
    --story-photo: url("/assets/stud-token-creative/cards-popular-coworker-help.webp"); --story-focal: 50% 12%;
  }
  body.motivation-premium [data-editorial-reader="motivation"] .catalog-standalone-article:has(:is(
    [data-studplan-source-id="read-drive-practice-the-hard-part"],
    [data-studplan-source-id="read-drive-return-after-a-long-interruption"],
    [data-studplan-source-id="read-drive-help-where-you-are"],
    [data-studplan-source-id="read-drive-be-the-one-who-invites"],
    [data-studplan-source-id="read-drive-remember-who-helped"],
    [data-studplan-source-id="read-drive-build-the-project-you-mean"])) {
    --story-columns: minmax(0, 1fr) minmax(7.5rem, 33%); --show-story-photo: "";
  }
  html[data-map-product="motivation"] body.motivation-premium [data-editorial-reader] .catalog-standalone-head {
    display: grid; grid-template-columns: var(--story-columns); gap: .4rem clamp(.85rem, 2vw, 1.4rem);
  }
  body.motivation-premium [data-editorial-reader] .catalog-standalone-head::before {
    content: var(--show-story-photo, none); display: block; grid-area: 1 / 2 / span 2 / 3;
    align-self: stretch; min-height: clamp(9.5rem, 19vw, 13rem); border-radius: .25rem;
    background: #3d3c33 var(--story-photo, none) var(--story-focal) / cover no-repeat;
  }
  body.motivation-premium [data-editorial-reader] .catalog-standalone-head > * { grid-column: 1 / -1; min-width: 0; }
  body.motivation-premium [data-editorial-reader] .catalog-standalone-head > .catalog-standalone-category {
    grid-area: 1 / 1; align-self: end; color: #efc79f;
  }
  html[data-map-product="motivation"] body.motivation-premium [data-editorial-reader] .catalog-standalone-head.article-opening h1 {
    grid-area: 2 / 1; align-self: start; margin: 0 !important; padding-block-end: .35rem;
    font: 560 clamp(2.2rem, 5.5vw, 3.6rem)/1.07 Georgia, serif !important;
    letter-spacing: -.045em !important; text-wrap: balance;
  }
  body.motivation-premium [data-editorial-reader] .drive-reading-preview { margin: .6rem 0 .25rem; }
  body.motivation-premium [data-editorial-reader] .drive-reading-preview .drive-invitation {
    padding: .8rem 1rem; background: #302925; color: #f5e6d3; border: 0; border-inline-start: .25rem solid #d2a474;
  }
  body.motivation-premium [data-editorial-reader] .drive-reading-preview .drive-invitation strong { color: #f0c298; }
  body.motivation-premium [data-editorial-reader] .essential-lesson { padding-top: .85rem; border-top: 2px solid #97806b; }
  body.motivation-premium [data-editorial-reader] .essential-lesson > h2,
  body.motivation-premium [data-editorial-reader] .drive-reading-section > h2 {
    font: 550 clamp(1.65rem, 3.5vw, 2.25rem)/1.17 Georgia, serif !important; letter-spacing: -.035em;
  }
  body.motivation-premium [data-editorial-reader] .essential-lesson .essential-step {
    padding-block: 1.05rem; border-top-color: #4e413a;
  }
  body.motivation-premium [data-editorial-reader] .drive-prose .drive-closing {
    margin-block: 1.3rem; padding: 1rem 1.15rem; background: #342b25;
    border-inline-start: .25rem solid #d6aa7d; color: #f4e6d5;
    font: 500 clamp(1.35rem, 2.8vw, 1.8rem)/1.35 Georgia, serif;
  }
  body.motivation-premium #main [data-editorial-directory] > .editorial-heading {
    padding: .8rem 1rem 1.05rem; background: #302822; border: 1px solid #675548; border-radius: .3rem;
  }
  body.motivation-premium #main [data-editorial-directory] > .editorial-heading h2,
  body.motivation-premium #main.drive-reading:not([data-editorial-reader]) .drive-paper > header h1 {
    font: 550 clamp(2rem, 4.8vw, 3rem)/1.1 Georgia, serif !important; letter-spacing: -.045em;
  }
  body.motivation-premium #main [data-editorial-directory]:has(> .editorial-heading) [data-editorial-grid] .editorial-card {
    border-inline-start: 3px solid #a88869; border-radius: .25rem;
  }
  body.motivation-premium #main.drive-reading:not([data-editorial-reader]) .drive-paper > header {
    padding-block: .55rem 1.1rem; border-block-end: 2px solid #ab8a6d;
  }
  body.motivation-premium #main.drive-reading:not([data-editorial-reader]) .drive-prose > h2 {
    margin-top: 1.7rem; font: 550 clamp(1.5rem, 3.4vw, 2.1rem)/1.2 Georgia, serif; letter-spacing: -.03em;
  }
  /* The premium foundation explicitly assigns its UI typeface to every
     descendant of #main. Restore the same essay headings on direct entry
     that the fetched document already renders. */
  body.motivation-premium :is(#main, #editorial-sheet) :is(
    [data-essential-choices="motivation"] .essential-heading h2,
    [data-essential-choices="motivation"] > ul > li:first-child strong,
    .catalog-standalone-head.article-opening h1,
    .essential-lesson > h2, .drive-reading-section > h2, .drive-prose > h2, .drive-closing
  ) { font-family: Georgia, serif !important; }
  @media (max-width: 610px) {
    html[data-map-product="motivation"] body.motivation-premium [data-editorial-reader] .catalog-standalone-head { grid-template-columns: minmax(0, 1fr); }
    body.motivation-premium [data-editorial-reader] .catalog-standalone-head::before {
      grid-area: 3 / 1; width: 100%; height: clamp(6.8rem, 32vw, 10rem);
      min-height: 0; margin-block: .35rem .15rem;
    }
    body.motivation-premium #main [data-essential-choices="motivation"] > ul > li:first-child > a { grid-template-columns: minmax(0,34%) minmax(0,1fr); }
  }
}

/* Cards. The greeting is already finished artwork. Improve the surrounding
   occasion labels and editing tools without touching the canvas, photo bounds,
   gesture surface, mobile working context, draft prompts or export composition. */
@media screen {
  body.cards-studio #starters .cards-shelf-heading {
    align-items: center; gap: .35rem .9rem; margin-bottom: .55rem;
    padding-block: .35rem; border-block-end: 1px solid #50473f;
  }
  body.cards-studio #starters .cards-shelf-heading h3 {
    color: #f6e7d6; font: 600 clamp(1.38rem, 2.8vw, 1.9rem)/1.18 Georgia, serif; letter-spacing: -.03em;
  }
  body.cards-studio #starters .cards-shelf-actions .cards-see-all,
  body.cards-studio #starters .cards-results-actions button { min-height: 44px; text-underline-offset: .2em; }
  body.cards-studio #starters .cards-collection-tools:has([data-copy-collection]:not([hidden]):not(:disabled)) {
    border-inline-start: 2px solid #907662; padding-inline-start: .7rem;
  }
  body.cards-studio .cards-holiday-experience .cards-holiday-section-heading {
    border-block-end: 1px solid #6a584c; padding-block-end: .55rem; margin-block-end: .75rem;
  }
  body.cards-studio .cards-holiday-experience .cards-holiday-preview-label {
    min-height: 44px; align-content: center; background: #342a25; color: #f5ddc0;
  }
  body.cards-studio .cards-design-preview[open] > header, body.cards-studio .cards-review-dialog[open] > .cards-review-heading {
    border-bottom: 1px solid #665649;
  }
  body.cards-studio #make-a-card .cards-preview-heading {
    padding-bottom: .4rem; margin-bottom: .65rem; border-bottom: 2px solid #89725d;
  }
  body.cards-studio #make-a-card .cards-preview-heading h1 {
    font: 550 clamp(1.5rem, 2.8vw, 2rem)/1.15 Georgia, serif; letter-spacing: -.03em;
  }
  body.cards-studio #make-a-card .studio-panel-heading {
    gap: .65rem; padding-block: .2rem .35rem; border-bottom: 1px solid #67574c;
  }
  body.cards-studio #make-a-card .studio-panel-heading h2 {
    color: #f7e9d8; font: 600 clamp(1.32rem, 2.2vw, 1.65rem)/1.2 Georgia, serif;
  }
  body.cards-studio #make-a-card .studio-panel-heading [data-studio-done] {
    color: #f0d1ad !important; min-height: 44px; text-decoration: underline; text-underline-offset: .2em;
  }
  body.cards-studio #make-a-card #studio-text > .cards-field {
    padding-inline-start: .75rem; border-inline-start: 2px solid #786551;
  }
  body.cards-studio #make-a-card #studio-photo .studio-library-tools { border-top: 1px solid #5c4f44; padding-top: .4rem; }
  body.cards-studio #make-a-card .studio-message-ideas, body.cards-studio #make-a-card .studio-card-actions {
    border-color: #605044; background: #211d1b; border-radius: .25rem;
  }
  body.cards-studio #make-a-card :is(.studio-message-ideas, .studio-card-actions) > summary {
    padding-inline: .8rem; min-height: 44px;
  }
}


/* Optional token identity, the official mint and the educational Wallet Guide. */
@media screen {
  .token-family-page {
    --mint-ink: var(--stud-theme-ink,#f5f0ec);
    --mint-muted: var(--stud-theme-muted,#d0cad8);
    --mint-surface: var(--stud-theme-surface,#191d28);
    --mint-line: var(--stud-theme-line,#464555);
    --mint-accent: var(--stud-theme-focus,#8ce7c5);
    --mint-serif: Georgia,"Times New Roman",serif;
  }
  .s3-body #main-content .s3-hero {
    padding-block: clamp(1.4rem,4vw,3.4rem);
    background: radial-gradient(ellipse at 83% 40%,#302138 0%,transparent 52%),#11131c;
  }
  .s3-body #main-content .s3-hero__inner { align-items: center; gap: clamp(1.1rem,3.5vw,3rem); }
  .s3-body #main-content .s3-hero__statement {
    max-width: 24ch;
    font: 500 clamp(1.65rem,3.6vw,3.2rem)/1.1 var(--mint-serif);
    letter-spacing: -.034em;
    color: #faf0e9;
  }
  .s3-body #main-content .s3-hero__lead { color: #dfd8e0; line-height: 1.55; }
  .s3-body #main-content .s3-hero__boundary {
    max-width: 53ch;
    padding: .65rem .85rem;
    border-inline-start: 2px solid #bc92ed;
    background: #22202c;
    color: #eee5ed;
    font-size: .95rem;
    line-height: 1.5;
  }
  .s3-body #main-content .s3-hero__stage { justify-self: center; }
  .s3-body #main-content .s3-brand-coin { width: clamp(11.5rem,24vw,22rem); max-width: 100%; }
  .s3-body #main-content .s3-hero .s3-actions { align-items: center; gap: .35rem .65rem; }
  .s3-body #main-content .s3-hero .s3-actions .s3-button { width: fit-content; min-height: 46px; border-radius: .25rem; }
  .s3-body #main-content .s3-token-nav > div { gap: .2rem clamp(.6rem,2vw,1.5rem); }
  .s3-body #main-content .s3-section-head { margin-bottom: clamp(1rem,2vw,1.5rem); }
  .s3-body #main-content :is(.s3-section-head,.s3-meaning__inner) h2,
  .trust-v3-wallet-page #main-content .trust-section-head h2,
  .trust-v3-wallet-page #wallet-verify .trust-token-head h2 {
    max-width: 31ch;
    margin-top: .3rem;
    font: 500 clamp(1.75rem,3.6vw,3rem)/1.1 var(--mint-serif);
    letter-spacing: -.031em;
    text-wrap: balance;
  }
  .s3-body #how-to-get-stud .s3-desk__grid { gap: clamp(1rem,2.6vw,2rem); }
  .s3-body #how-to-get-stud :is(.s3-card--mint,.s3-card--market) {
    min-width: 0;
    border: 1px solid var(--mint-line);
    border-block-start: 2px solid var(--mint-accent);
    border-radius: .24rem;
    padding: clamp(.9rem,2.8vw,2.1rem);
    background: var(--mint-surface);
  }
  .s3-body #how-to-get-stud .s3-card--market { border-block-start-color: #be9ada; }
  .s3-body #how-to-get-stud .s3-mint,
  .trust-v3-wallet-page #wallet-verify .mint-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .65rem 1.05rem;
    padding: clamp(.75rem,1.7vw,1.15rem);
    border-radius: .2rem;
    border: 1px solid var(--mint-line);
    background: var(--stud-theme-control-surface,#0e1920);
  }
  .token-family-page :is(.s3-mint,.mint-row) code[data-site-mint] {
    flex: 1 1 18rem;
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-all;
    user-select: all;
    text-transform: none;
    letter-spacing: .015em;
    font: 650 clamp(.98rem,1.5vw,1.15rem)/1.52 ui-monospace,SFMono-Regular,Consolas,monospace;
    color: var(--mint-ink);
  }
  .s3-body #how-to-get-stud .s3-mint .s3-button,
  .trust-v3-wallet-page #wallet-verify .mint-row button { min-height: 44px; width: fit-content; border-radius: .22rem; }
  .s3-body #how-to-get-stud .s3-checklist > div,
  .s3-body #how-to-get-stud .s3-market__facts > div { padding-block: .55rem; border-block-end: 1px solid var(--mint-line); }
  .s3-body #how-to-get-stud .s3-copy-status:empty,
  .trust-v3-wallet-page #wallet-verify .wallet-mint-note:empty { margin-block: 0; min-height: 0; }
  .s3-body #main-content .s3-swing__essentials article { border-radius: .24rem; border-block-start: 2px solid #bc92ed; }
  .trust-v3-wallet-page #main-content .trust-hero--wallet { min-height: 0; padding: clamp(1.4rem,5vw,3.75rem) clamp(.95rem,3.75vw,2.75rem); }
  .trust-v3-wallet-page .trust-hero--wallet .trust-hero-copy { margin: 0; max-width: 47rem; }
  .trust-v3-wallet-page #main-content .trust-hero--wallet h1 {
    max-width: 19ch;
    margin-block: .45rem;
    font: 750 clamp(2rem,4.95vw,4.4rem)/1.045 "Avenir Next",system-ui,sans-serif;
    letter-spacing: -.047em;
    text-wrap: balance;
  }
  .trust-v3-wallet-page #main-content .trust-hero--wallet .trust-lead { max-width: 46ch; line-height: 1.5; }
  .trust-v3-wallet-page #main-content .trust-hero--wallet .trust-market-links { margin-top: .8rem; gap: .4rem .75rem; }
  .trust-v3-wallet-page #wallet-verify .trust-token-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .3rem .8rem; }
  .trust-v3-wallet-page #wallet-verify .trust-fact-card {
    min-width: 0;
    min-height: 0;
    padding: .55rem .1rem;
    border: 0;
    border-radius: 0;
    border-block-end: 1px solid var(--mint-line);
    background: none;
  }
  .trust-v3-wallet-page #wallet-verify .trust-fact-card :is(span,strong) { display: block; }
  .trust-v3-wallet-page #wallet-verify .trust-fact-card strong { line-height: 1.33; font-size: 1.02rem; }
  .trust-v3-wallet-page #wallet-verify .trust-mint-box,
  .trust-v3-wallet-page #wallet-mint-check {
    padding: clamp(.9rem,2.8vw,1.8rem);
    border: 1px solid var(--mint-line);
    border-block-start: 2px solid var(--mint-accent);
    border-radius: .25rem;
    background: var(--mint-surface);
  }
  .trust-v3-wallet-page #wallet-mint-check form.mint-match-form { max-width: 42rem; }
  .trust-v3-wallet-page #wallet-mint-check #listing-mint { min-height: 48px; padding-inline: .7rem; border-radius: .24rem; font-family: ui-monospace,SFMono-Regular,Consolas,monospace; }
  .trust-v3-wallet-page #wallet-mint-check [role="status"]:not(:empty) {
    padding: .8rem 1rem;
    border-inline-start: 3px solid var(--mint-accent);
    color: var(--mint-ink);
    background: var(--stud-theme-control-surface,#101a20);
    line-height: 1.5;
  }
  .trust-v3-wallet-page #wallet-routes .wallet-steps-grid { display: grid; grid-template-columns: minmax(0,1fr); gap: 0; padding: 0; }
  .trust-v3-wallet-page #wallet-routes .wallet-step {
    display: grid;
    grid-template-columns: clamp(3.15rem,8vw,6rem) minmax(0,1fr);
    align-content: start;
    align-items: baseline;
    gap: .43rem clamp(.85rem,2.75vw,2rem);
    padding: clamp(.95rem,2.5vw,1.65rem) 0;
    border: 0;
    border-radius: 0;
    border-block-start: 1px solid var(--mint-line);
    background: none;
  }
  .trust-v3-wallet-page #wallet-routes .wallet-step > * { grid-column: 2; min-width: 0; }
  .trust-v3-wallet-page #wallet-routes .wallet-step > .wallet-step-kicker { grid-area: 1 / 1; align-self: baseline; color: var(--mint-accent); }
  .trust-v3-wallet-page #wallet-routes .wallet-step > h3 { grid-row: 1; margin: 0; font: 500 clamp(1.35rem,2.4vw,1.95rem)/1.19 var(--mint-serif); }
  .trust-v3-wallet-page #wallet-routes .wallet-step > p { margin-block: .12rem; max-width: 66ch; line-height: 1.58; }
  .trust-v3-wallet-page #wallet-routes :is(.wallet-check-card,.wallet-route-card) { border-radius: .24rem; }
}
@media screen and (max-width: 760px) {
  .s3-body #main-content .s3-hero__inner { grid-template-columns: minmax(0,1fr) clamp(4.15rem,21vw,6.2rem); gap: .55rem .75rem; }
  .s3-body #main-content .s3-hero__stage { grid-area: 1 / 2 / 4 / 3; align-self: center; }
  .s3-body #main-content .s3-hero__copy > .s3-kicker,
  .s3-body #main-content .s3-hero__copy > h1 { grid-column: 1; margin-block: 0; }
  .s3-body #main-content .s3-hero__copy > h1 { font-size: clamp(2.4rem,9vw,3.7rem); }
  .s3-body #main-content .s3-hero__statement { margin: 0; font-size: clamp(1.4rem,5.5vw,1.9rem); }
  .s3-body #main-content .s3-hero .s3-actions > a { flex: 0 1 auto; width: fit-content; white-space: normal; }
  .s3-body #main-content .s3-token-nav > div { flex-wrap: wrap; gap: 0 .65rem; justify-content: start; }
  .s3-body #main-content .s3-token-nav a { min-height: 44px; padding: .42rem 0; }
  .trust-v3-wallet-page #main-content .trust-hero--wallet { padding-block: clamp(1.2rem,8vw,2.7rem); }
  .trust-v3-wallet-page .trust-hero--wallet .trust-market-links > a { flex: 0 1 auto; min-height: 44px; }
  .trust-v3-wallet-page #wallet-routes .wallet-step { grid-template-columns: minmax(0,1fr); }
  .trust-v3-wallet-page #wallet-routes .wallet-step > *,
  .trust-v3-wallet-page #wallet-routes .wallet-step > h3,
  .trust-v3-wallet-page #wallet-routes .wallet-step > .wallet-step-kicker { grid-column: 1; grid-row: auto; }
}
/* The private collection and its fictional worked example use different surfaces. */
@media screen {
  :is(.plan-page,.plan-example-page) {
    --notebook-ink: var(--stud-theme-ink,#f0f5ef);
    --notebook-muted: var(--stud-theme-muted,#c1d3d1);
    --notebook-line: var(--stud-theme-line,#415e5e);
    --notebook-panel: var(--stud-theme-surface,#172a2d);
    --notebook-accent: var(--stud-theme-focus,#9aebdc);
    --notebook-serif: Georgia,"Times New Roman",serif;
  }
  .plan-page:not(.plan-pdf-mode) #plan-main .plan-hero {
    position: relative;
    display: grid;
    isolation: isolate;
    grid-template-columns: minmax(0,1.3fr) minmax(0,.85fr);
    gap: clamp(1rem,3vw,2.5rem);
    align-items: stretch;
    padding: clamp(1.05rem,3vw,2.1rem) 0;
    border-bottom: 1px solid var(--notebook-line);
    border-radius: 0;
    background: none;
  }
  .plan-page:not(.plan-pdf-mode) #plan-main .plan-hero::after {
    content: "";
    grid-area: 1 / 2;
    min-height: 7rem;
    border-radius: .28rem;
    background: #172427 url("/assets/portfolio-media/plan-640.jpg") 58% 47% / cover no-repeat;
  }
  .plan-page #plan-main .plan-hero__copy { min-width: 0; }
  .plan-page #plan-main .plan-hero__promise {
    max-width: 19ch;
    margin: .45rem 0;
    font: 500 clamp(1.75rem,3.4vw,3.15rem)/1.12 var(--notebook-serif);
    letter-spacing: -.033em;
    text-wrap: balance;
  }
  .plan-page #plan-main .plan-hero__meaning { max-width: 53ch; line-height: 1.58; }
  .plan-page #plan-main .plan-example-link { text-decoration: underline; text-decoration-thickness: .07em; text-underline-offset: .25em; }
  .plan-page #plan-routes .plan-card-entry--pdf {
    min-height: 0;
    border: 0;
    border-inline-start: 3px solid var(--notebook-accent);
    border-radius: .22rem;
    gap: clamp(1.05rem,2.75vw,2rem);
    padding: clamp(1rem,2.75vw,1.85rem);
    background: var(--notebook-panel);
  }
  .plan-page #plan-routes .plan-card-entry--pdf .plan-card-entry__copy > strong { font: 500 clamp(1.55rem,2.75vw,2.2rem)/1.16 var(--notebook-serif); }
  .plan-page #plan-routes .plan-card-entry--secondary { min-height: 72px; border-radius: .25rem; }
  .plan-page #plan-routes .plan-route-tools { align-items: center; }
  .plan-page #plan-routes .plan-route-tools > span { color: var(--notebook-muted); line-height: 1.45; }
  .plan-example-page #plan-example-main .plan-example-intro h1,
  .plan-page #plan-main .plan-pdf-heading h1,
  .plan-example-page #plan-example-main .plan-example-guide h2 {
    font: 500 clamp(1.95rem,3.6vw,3.2rem)/1.08 var(--notebook-serif);
    letter-spacing: -.036em;
    text-wrap: balance;
  }
  .plan-example-page #plan-example-main .plan-example-item {
    position: relative;
    grid-template-columns: minmax(0,1.35fr) minmax(0,.62fr);
    align-items: center;
    padding: clamp(1rem,2.8vw,1.9rem);
    border: 0;
    border-top: 2px solid var(--notebook-accent);
    border-radius: .26rem;
    background: var(--notebook-panel);
  }
  .plan-example-page #plan-example-main .plan-example-item h2 { font: 500 clamp(1.65rem,3vw,2.4rem)/1.15 var(--notebook-serif); }
  .plan-example-page #plan-example-main .plan-example-item blockquote {
    padding: .65rem 0 .65rem .9rem;
    margin-block: .75rem .3rem;
    border-inline-start: 2px solid var(--notebook-accent);
    font-size: clamp(1.19rem,2vw,1.55rem);
    line-height: 1.48;
  }
  .plan-example-page #plan-example-main .plan-example-item__actions::before {
    content: "";
    display: block;
    width: 100%;
    aspect-ratio: 2 / 1;
    border-radius: .2rem;
    background: #1d2926 url("/assets/stud-token-creative/thumbs/morning-shoes.webp") 50% 58% / cover no-repeat;
  }
  .plan-example-page #plan-example-main .plan-example-guide { padding: 1rem; border-block-start: 2px solid var(--notebook-accent); background: var(--notebook-panel); }
  .plan-page #plan-main .plan-pdf-heading { gap: .6rem 1.1rem; flex-wrap: wrap; border-bottom: 1px solid var(--notebook-line); padding-block: .3rem .7rem; }
  .plan-page #plan-main .creator-tabs { gap: .45rem; }
  .plan-page #plan-main .creator-tabs button { border-radius: .26rem; }
  .plan-page #pdf-preview-empty:not([hidden]) {
    max-width: 45rem;
    margin: .8rem auto;
    border: 1px solid var(--notebook-line);
    border-radius: .25rem;
    padding: clamp(.8rem,2vw,1.4rem);
    background: var(--notebook-panel);
    text-align: start;
  }
  .plan-page #pdf-preview-empty .creator-blank-document {
    display: grid;
    grid-template-columns: minmax(3.8rem,27%) minmax(0,1fr);
    align-items: stretch;
    min-height: 0;
    max-width: none;
    overflow: hidden;
    margin: 0 0 .7rem;
    border-radius: .15rem;
  }
  .plan-page #pdf-preview-empty .creator-blank-document img { position: static; width: 100%; height: 100%; min-height: 6.5rem; object-fit: cover; mask-image: none; }
  .plan-page #pdf-preview-empty .creator-blank-document > div { position: static; width: 100%; min-width: 0; padding: .72rem; }
  .plan-page #pdf-preview-empty .creator-blank-document h2 { margin: .3rem 0 .4rem !important; font: 500 clamp(1.25rem,2.25vw,1.8rem)/1.14 var(--notebook-serif) !important; }
  .plan-page #pdf-preview-empty .creator-blank-document p { font-size: .9rem; line-height: 1.4; }
  .plan-page #pdf-preview-empty #creator-start { min-height: 46px; border-radius: .22rem; }
  .plan-page #creator-drawer .creator-drawer-header { border-bottom: 1px solid var(--notebook-line); }
  .plan-page #creator-drawer .creator-drawer-header h2 { font: 500 clamp(1.5rem,2.5vw,2.1rem)/1.16 var(--notebook-serif); }
  .plan-page #creator-drawer .creator-search { min-height: 50px; border-radius: .24rem; }
  .plan-page #creator-drawer .creator-board { border-radius: .22rem; }
  .plan-page #creator-drawer .creator-board[aria-pressed="true"] { outline: 2px solid var(--notebook-accent); outline-offset: -3px; }
  .plan-page #creator-drawer .creator-result-row { border-radius: .25rem; border-bottom: 1px solid var(--notebook-line); }
  .plan-page #creator-drawer .creator-result.is-added { background-color: var(--notebook-panel); box-shadow: inset 3px 0 0 var(--notebook-accent); }
  .plan-page.has-quick-share #quick-share-workspace :is(.plan-portable-controls,.plan-portable-reading) {
    min-width: 0;
    border: 1px solid var(--notebook-line);
    border-block-start: 2px solid var(--notebook-accent);
    border-radius: .25rem;
    background: var(--notebook-panel);
  }
  .plan-page.has-quick-share #quick-share-workspace .plan-quick-personal {
    padding-inline-start: .75rem;
    border-inline-start: 2px solid var(--notebook-line);
  }
  .plan-page.has-quick-share #quick-share-workspace .plan-quick-personal dd { font-size: 1rem; line-height: 1.52; }
  .plan-page.has-quick-share #quick-share-workspace #portable-preview {
    border-radius: .22rem;
    border-color: var(--notebook-line);
    line-height: 1.6;
  }
}
@media screen and (max-width: 650px) {
  .plan-page:not(.plan-pdf-mode) #plan-main .plan-hero {
    grid-template-columns: minmax(0,1fr);
    gap: 0;
    padding: .85rem 0 .3rem;
  }
  .plan-page:not(.plan-pdf-mode) #plan-main .plan-hero::after {
    position: absolute;
    grid-area: auto;
    inset: .8rem 0 auto auto;
    width: 27%;
    height: 4.85rem;
    min-height: 0;
    background-position: 58% 46%;
  }
  .plan-page #plan-main .plan-hero__copy > h1,
  .plan-page #plan-main .plan-hero__copy > .plan-hero__promise { max-width: 69%; }
  .plan-page #plan-main .plan-hero__promise { font-size: clamp(1.55rem,6.1vw,1.95rem); }
  .plan-page #plan-main .plan-hero__meaning { margin-block: .65rem .15rem; }
  .plan-page #plan-routes .plan-card-entry--pdf { padding: .95rem; gap: .85rem; }
  .plan-example-page #plan-example-main .plan-example-item { grid-template-columns: minmax(0,1fr); gap: .55rem; }
  .plan-example-page #plan-example-main .plan-example-item__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .15rem .7rem; }
  .plan-example-page #plan-example-main .plan-example-item__actions::before { display: none; }
  .plan-example-page .plan-example-item > div:first-child {
    background: url("/assets/stud-token-creative/thumbs/morning-shoes.webp") right top / 5.2rem 3.2rem no-repeat;
  }
  .plan-example-page #plan-example-main .plan-example-item :is(.plan-example-item__board,h2) { max-width: calc(100% - 5.75rem); }
  .plan-page.has-quick-share #quick-share-workspace .plan-working-nav { gap: .3rem; padding-block: .35rem; }
}
/* Personality portraits, preference teaching and selected-pair comparisons. */
@media screen {
  .personalities-page {
    --portrait-ink: var(--stud-theme-ink, #f6eff2);
    --portrait-muted: var(--stud-theme-muted, #cec0ca);
    --portrait-line: var(--stud-theme-line, #51414e);
    --portrait-panel: var(--stud-theme-surface, #231e29);
    --portrait-accent: var(--stud-theme-focus, #f1bad0);
    --portrait-serif: Georgia, "Times New Roman", serif;
  }
  .personalities-page #main-content .directory-hero {
    display: grid;
    grid-template-columns: minmax(0,1.2fr) minmax(0,.85fr);
    gap: .6rem clamp(1.2rem,4vw,3.5rem);
    align-items: start;
    padding-block: clamp(1.25rem,3.7vw,2.8rem);
  }
  .personalities-page .directory-hero::after {
    content: "";
    grid-area: 1 / 2 / 4 / 3;
    align-self: stretch;
    min-height: 10rem;
    border-radius: .28rem;
    background: #251e27 url("/assets/stud-token-creative/cards-expansion100-017-rainy-birthday-picnic.webp") 50% 52% / cover no-repeat;
  }
  .personalities-page .directory-hero > h1,
  .personalities-page .directory-hero > .hero-lead,
  .personalities-page .directory-hero > .weekend-choices { grid-column: 1; min-width: 0; }
  .personalities-page #main-content :is(.directory-hero,.tool-hero) h1 {
    margin: 0;
    font: 500 clamp(2.28rem,5.3vw,4.7rem)/1.04 var(--portrait-serif);
    letter-spacing: -.043em;
    text-wrap: balance;
  }
  .personalities-page #main-content :is(.directory-hero,.tool-hero) .hero-lead {
    max-width: 48ch;
    margin-block: .35rem;
    color: var(--portrait-muted);
    font-size: clamp(1rem,1.6vw,1.24rem);
    line-height: 1.58;
  }
  .personalities-page .weekend-choices a:first-child {
    display: inline-flex;
    max-width: 100%;
    width: fit-content;
    padding-inline: .85rem;
    border-radius: .24rem;
    background: #f1bed0;
    color: #321b28;
    -webkit-text-fill-color: #321b28;
  }
  .personalities-page .weekend-choices a:first-child span { color: inherit; -webkit-text-fill-color: inherit; }
  .personalities-page .directory-head h2,
  .personalities-page .tool-hero + .guide-nav + .guide-body > section > h2 { font: 500 clamp(1.55rem,2.55vw,2.15rem)/1.16 var(--portrait-serif); }
  .personalities-page #type-grid a.type-preview {
    min-height: 0;
    padding: clamp(.9rem,2vw,1.4rem);
    border-radius: .2rem;
    border-color: var(--portrait-line);
    background: var(--portrait-panel);
    gap: .3rem;
  }
  .personalities-page #type-grid .type-preview .preview-top h3 {
    font: 750 clamp(1.35rem,2.4vw,1.9rem)/1.12 "Avenir Next",Arial,sans-serif;
    letter-spacing: .025em;
    color: var(--portrait-accent);
  }
  .personalities-page #type-grid .type-preview .type-caption { font: 500 clamp(1.12rem,1.65vw,1.42rem)/1.21 var(--portrait-serif); }
  .personalities-page #type-grid .type-preview p { color: var(--portrait-muted); line-height: 1.47; }
  .personalities-page .type-profile .profile-hero {
    border: 0;
    border-top: 2px solid var(--portrait-accent);
    border-radius: 0;
    padding: clamp(1rem,2.9vw,2rem) 0;
    background: none;
  }
  .personalities-page .profile-hero .profile-identity h1 { margin-bottom: .6rem; font-size: clamp(2.4rem,4.45vw,3.75rem); }
  .personalities-page .profile-hero .profile-identity h1 span {
    max-width: 22ch;
    margin-top: .38rem;
    font: 500 clamp(1.68rem,2.85vw,2.55rem)/1.1 var(--portrait-serif);
  }
  .personalities-page .profile-hero .weekend-reading {
    border: 0;
    border-top: 2px solid var(--portrait-accent);
    border-radius: .26rem;
    background: var(--portrait-panel);
    padding: clamp(.9rem,2.2vw,1.45rem);
  }
  .personalities-page .weekend-reading h2 { font: 500 clamp(1.38rem,2.15vw,1.8rem)/1.16 var(--portrait-serif); }
  .personalities-page .weekend-reading .scenario-copy { max-width: 60ch; line-height: 1.65; }
  .personalities-page .weekend-reading .weekend-limit { padding-top: .55rem; border-top: 1px solid var(--portrait-line); }
  .personalities-page .type-profile .profile-preferences { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: .3rem .55rem; }
  .personalities-page .type-profile .profile-preferences > div { display: flex; flex-wrap: wrap; align-items: baseline; gap: .15rem .45rem; border-top: 1px solid var(--portrait-line); padding: .35rem 0; }
  .personalities-page .profile-preferences dd { margin: 0; }
  .personalities-page .profile-preferences a { display: inline-flex; align-items: center; min-height: 44px; }
  .personalities-page .profile-body .chapter > h2,
  .personalities-page .guide-body .chapter > h2 {
    max-width: 37ch;
    font: 500 clamp(1.65rem,2.9vw,2.5rem)/1.13 var(--portrait-serif);
    letter-spacing: -.028em;
    text-wrap: balance;
  }
  .personalities-page .profile-body .chapter .everyday-example,
  .personalities-page .guide-body .preference-card {
    border-radius: .2rem;
    border: 0;
    border-inline-start: 3px solid var(--portrait-accent);
    background: var(--portrait-panel);
  }
  .personalities-page .conversation-example blockquote { max-width: 48ch; margin-inline: 0; font: 500 1.18rem/1.5 var(--portrait-serif); }
  .personalities-page .type-profile .profile-end { padding: clamp(1rem,2.8vw,1.7rem); border-top: 2px solid var(--portrait-accent); background: var(--portrait-panel); }
  .personalities-page #main-content .tool-hero { padding-block: clamp(1.2rem,3.5vw,2.55rem); }
  .personalities-page #main-content .tool-hero .eyebrow { margin-bottom: .45rem; }
  .personalities-page #compare .compare-selectors {
    min-width: 0;
    padding: clamp(.8rem,2.2vw,1.4rem);
    border: 0;
    border-top: 2px solid var(--portrait-accent);
    border-radius: .22rem;
    background: var(--portrait-panel);
  }
  .personalities-page #compare .compare-selectors select { min-width: 0; }
  .personalities-page #compare .compare-summary { max-width: 60ch; margin-block: .75rem .2rem; font-size: 1rem; color: var(--portrait-ink); }
  .personalities-page #comparison .comparison-jumps { flex-wrap: wrap; gap: .4rem 1rem; border-block: 1px solid var(--portrait-line); }
  .personalities-page #comparison .comparison-row {
    border: 0;
    border-top: 1px solid var(--portrait-line);
    border-radius: 0;
    padding: 0;
    margin-block: clamp(1rem,2.5vw,1.7rem);
    background: none;
  }
  .personalities-page #comparison .comparison-row > h2 {
    margin: 0;
    padding: .8rem 0 .65rem;
    flex-wrap: wrap;
    font: 500 clamp(1.35rem,2.25vw,1.85rem)/1.18 var(--portrait-serif);
    background: none;
  }
  .personalities-page #comparison .comparison-row.is-different > h2 { color: var(--portrait-accent); }
  .personalities-page #comparison .comparison-row > [data-side] {
    min-width: 0;
    padding: clamp(.7rem,2vw,1.35rem);
    border: 0;
    border-inline-start: 2px solid #d4a1b8;
    background: var(--portrait-panel);
  }
  .personalities-page #comparison .comparison-row > [data-side="b"] { border-inline-color: #a59dbc; }
  .personalities-page #comparison .comparison-type { font-size: .88rem; font-weight: 750; letter-spacing: .05em; }
  .personalities-page #comparison .comparison-row > .comparison-context { margin: 0; padding: .7rem 0; background: none; }
  .personalities-page #comparison #comparison-situation > .comparison-brief { padding: .5rem 0 .85rem; font: 500 1.08rem/1.55 var(--portrait-serif); }
}
@media screen and (max-width: 720px) {
  .personalities-page #main-content .directory-hero { grid-template-columns: minmax(0,1fr) minmax(4.9rem,31%); align-items: center; gap: .5rem .6rem; }
  .personalities-page .directory-hero::after { grid-area: 1 / 2; min-height: 5.4rem; background-image: url("/assets/stud-token-creative/thumbs/cards-expansion100-017-rainy-birthday-picnic.webp"); }
  .personalities-page #main-content .directory-hero h1 { font-size: clamp(2rem,7.6vw,2.65rem); }
  .personalities-page .directory-hero > .hero-lead,
  .personalities-page .directory-hero > .weekend-choices { grid-column: 1 / -1; }
  .personalities-page #main-content .weekend-choices { align-items: start; gap: .1rem .75rem; }
  .personalities-page #main-content .directory-head { padding-top: .8rem; margin-bottom: .65rem; }
  .personalities-page #type-grid { grid-template-columns: minmax(0,1fr); gap: 0; }
  .personalities-page #type-grid .type-preview:not([hidden]) {
    display: grid;
    grid-template-columns: minmax(3.8rem,23%) minmax(0,1fr);
    align-items: start;
    gap: .24rem .85rem;
    padding: .85rem .2rem;
    border: 0;
    border-radius: 0;
    border-top: 1px solid var(--portrait-line);
    background: none;
  }
  .personalities-page #type-grid .type-preview .preview-top { grid-area: 1 / 1 / 3 / 2; display: flex; flex-direction: column; align-items: start; gap: .45rem; }
  .personalities-page #type-grid .type-preview .type-caption,
  .personalities-page #type-grid .type-preview p { grid-column: 2; margin: 0; }
  .personalities-page .type-profile .profile-preferences { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .personalities-page #comparison .comparison-row > [data-side] { margin-bottom: .25rem; }
}
/* Study library, Bible Stories, thought units and verse readers. */
@media screen {
  .study-page {
    --journey-study-ink: var(--stud-theme-ink, #f1edf6);
    --journey-study-accent: var(--stud-theme-focus, #c5b4ff);
    --journey-study-line: var(--stud-theme-line, #414054);
    --journey-study-panel: var(--stud-theme-surface, #1b1c2a);
    --journey-study-serif: Georgia, "Times New Roman", serif;
  }
  .study-page--library #study-main .study-hero--library {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding-block: clamp(1.55rem,4vw,3.6rem) !important;
    background: #111420;
    border-block-end: 1px solid var(--journey-study-line);
  }
  .study-page--library .study-hero--library::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0 0 0 35%;
    background: linear-gradient(90deg,#111420 0%,rgba(17,20,32,.62) 18%,transparent 56%), url("/study/assets/studstudy-home-v1-640.jpg") 52% 48% / cover no-repeat;
  }
  .study-page--library .study-hero--library .study-hero__copy { max-width: min(49%,43rem); }
  .study-page--library .study-hero--library .study-product-statement {
    margin-block: .68rem .55rem;
    max-width: 23ch;
    color: #fbf5e9;
    font: 500 clamp(1.65rem,3.25vw,3rem)/1.14 var(--journey-study-serif);
    letter-spacing: -.033em;
    text-wrap: balance;
  }
  .study-page--library .study-hero--library .study-hero__lead { color: #d6d5df; line-height: 1.52; }
  .study-page--library .study-hero--library .study-first-passage { margin-top: .75rem; }
  .study-page--library .study-hero--library .study-first-passage a {
    width: fit-content;
    max-width: 100%;
    border-bottom: 2px solid #c5b4ff;
    text-decoration: none;
    color: #eee7ff;
  }
  .study-page--library #study-main .study-living-entry { margin-block: clamp(1.4rem,3vw,2.65rem); }
  .study-page--library #study-main .study-living-entry > h2,
  .study-page--library #study-main #study-library-title {
    font: 500 clamp(1.6rem,2.7vw,2.35rem)/1.16 var(--journey-study-serif);
    letter-spacing: -.027em;
    margin-bottom: .75rem;
  }
  .study-page--library .study-paths .study-path {
    display: grid;
    grid-template-columns: minmax(0,1fr);
    grid-template-rows: auto auto 1fr auto;
    align-content: start;
    min-width: 0;
    gap: .28rem;
    border: 0;
    border-block-end: 1px solid var(--journey-study-line);
    border-radius: 0;
    padding: 0 0 .7rem;
    background: none;
  }
  .study-page--library .study-path::before {
    content: "";
    display: block;
    height: clamp(7rem,10vw,10.2rem);
    margin-bottom: .45rem;
    border-radius: .3rem;
    background: var(--journey-study-panel) var(--path-art) var(--path-crop, center) / cover no-repeat;
  }
  .study-page--library .study-path[href="#books"] {
    --path-art: url("/assets/stud-token-creative/thumbs/cards-variety-reading.webp");
    --path-crop: 50% 40%;
  }
  .study-page--library .study-path[href="/study/living/"] {
    --path-art: url("/assets/stud-token-creative/thumbs/cards-expansion100-083-groceries-volunteers.webp");
    --path-crop: 55% 40%;
  }
  .study-page--library .study-path[href="/study/stories/"] {
    --path-art: url("/study/assets/story-art/a-woman-meets-jesus-at-a-well.webp");
    --path-crop: 50% 37%;
  }
  .study-page--library #study-main .study-path h3 { font: 600 clamp(1.1rem,1.55vw,1.45rem)/1.18 var(--journey-study-serif); }
  .study-page--library #study-main .study-path__action { align-self: end; padding-top: .25rem; color: var(--journey-study-accent); }
  .study-page--library .book-library-grid .book-library-card {
    border: 0;
    border-bottom: 1px solid var(--journey-study-line);
    border-radius: 0;
    background: none;
    padding: .6rem .25rem;
  }
  .study-page--library .book-library-card__heading h3 { font: 500 1.4rem/1.21 var(--journey-study-serif); }
  .study-page--book #book-overview .book-overview__heading h1,
  .living-page .living-main .living-hero h1,
  .study-page--permissions #study-main .permissions-page__header h1 {
    font: 500 clamp(2.35rem,4.7vw,4.2rem)/1.06 var(--journey-study-serif);
    letter-spacing: -.04em;
    text-wrap: balance;
  }
  .study-page--book .book-section-picker,
  .study-page--book .book-quick-tools {
    border-radius: .35rem;
    border-inline-start: 3px solid var(--journey-study-accent);
    background-color: var(--journey-study-panel);
  }
  .study-page--book .unit-list .unit-link { border-radius: .2rem; padding-block: .85rem; }
  .study-page--book .unit-link .unit-link__number { font-variant-numeric: tabular-nums; color: var(--journey-study-accent); }
  .study-page--book .verse-index__chapter[open] { border-color: var(--journey-study-accent); }
  .study-page--book .verse-index__chapter[open] > summary { background-color: var(--journey-study-panel); }
  .study-page--book .verse-index__chapter > nav a { min-width: 44px; min-height: 44px; font-variant-numeric: tabular-nums; }
  .study-page--passage .passage-navigator,
  .study-page--passage .passage-pager--top { border-radius: .3rem; }
  .study-page--passage .passage-navigator__identity { justify-content: start; gap: .65rem; }
  .study-page--passage #study-main .passage-text__identity {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: baseline;
    gap: .25rem 1rem;
    border-bottom: 1px solid var(--journey-study-line);
    padding-block: .65rem;
    margin-bottom: .8rem;
  }
  .study-page--passage .passage-text__identity strong { font: 500 clamp(1.4rem,2.15vw,1.9rem)/1.24 var(--journey-study-serif); }
  .study-page--passage #study-main .scripture-verses {
    padding: clamp(.65rem,2.6vw,1.65rem);
    border-radius: .18rem;
    border: 0;
    border-inline-start: 3px solid var(--journey-study-accent);
    background: var(--journey-study-panel);
  }
  .study-page--passage #study-main .scripture-verse__link {
    grid-template-columns: 1.55rem minmax(0,1fr) auto;
    gap: .38rem .58rem;
    align-items: baseline;
    padding: .5rem .15rem;
    border-radius: .12rem;
  }
  .study-page--passage #study-main .scripture-verse__number { padding: 0; font-variant-numeric: tabular-nums; }
  .study-page--passage #study-main .scripture-verse__text {
    padding: 0;
    font: 400 clamp(1.12rem,1.7vw,1.34rem)/1.58 var(--journey-study-serif);
  }
  .study-page--passage #study-main .scripture-verse__cue {
    grid-column: auto;
    align-self: end;
    justify-self: end;
    padding: .32rem 0;
    border: 0;
    border-radius: 0;
    color: var(--journey-study-accent);
    background: none;
    font-size: .73rem;
    white-space: nowrap;
  }
  .study-page--passage #study-main .passage-header h1,
  .study-page--verse-lens #study-main .verse-lens__header h1 {
    max-width: 26ch;
    font: 500 clamp(2.05rem,4.2vw,3.6rem)/1.08 var(--journey-study-serif);
    letter-spacing: -.035em;
    text-wrap: balance;
  }
  .study-page--passage #study-main .teaching > :is(h2,h3),
  .living-page .living-section > h2 {
    max-width: 32ch;
    margin-block: clamp(1.6rem,3vw,2.6rem) .6rem;
    font: 500 clamp(1.55rem,2.65vw,2.15rem)/1.18 var(--journey-study-serif);
    letter-spacing: -.026em;
    text-wrap: balance;
  }
  .study-page--passage #study-main .teaching p,
  .living-page .living-section > p { max-width: 68ch; line-height: 1.7; }
  .study-page--passage #study-main .teaching__life,
  .study-page--verse-lens #study-main .verse-context-card,
  .living-page .living-reading-layout .living-passages {
    border: 0;
    border-block-start: 2px solid var(--journey-study-accent);
    border-radius: .25rem;
    padding: clamp(1rem,2.8vw,2rem);
    background-color: var(--journey-study-panel);
  }
  .study-page--verse-lens #study-main .verse-lens__scripture {
    padding: clamp(.85rem,3vw,1.65rem);
    border: 0;
    border-inline-start: 3px solid var(--journey-study-accent);
    border-radius: 0;
    background-color: var(--journey-study-panel);
  }
  .study-page--verse-lens .verse-lens__scripture p { font: 400 clamp(1.25rem,2.2vw,1.7rem)/1.52 var(--journey-study-serif); }
  .study-page--permissions .permissions-page__inner > section { padding-block: 1.2rem; border-top: 1px solid var(--journey-study-line); }
  .living-page .living-reading-layout .living-article .living-introduction { font: 400 clamp(1.15rem,1.8vw,1.45rem)/1.58 var(--journey-study-serif); }
  .living-page .living-choice-grid a.living-choice { border: 0; border-block-end: 1px solid var(--journey-study-line); border-radius: 0; }
  .living-page .living-choice h3 { font: 500 clamp(1.25rem,1.8vw,1.6rem)/1.2 var(--journey-study-serif); }
  .study-page.bs-page .bs-directory .bs-heading,
  .study-page.bs-page .bs-reader .bs-heading { border-block-start: 2px solid var(--journey-study-accent); }
  .study-page.bs-page .bs-directory section > h2 { font: 500 clamp(1.6rem,3vw,2.45rem)/1.18 var(--bs-serif); letter-spacing: -.025em; }
  .study-page.bs-page .bs-directory .bs-card { border-radius: .25rem; background: var(--journey-study-panel); }
  .study-page.bs-page .bs-collection-menu { border-block: 1px solid var(--journey-study-line); }
  .study-page.bs-page .bs-collection-menu summary { min-height: 44px; padding-block: .8rem; }
  .study-page.bs-page .bs-collection-jump { gap: .25rem 1.1rem; }
  .study-page.bs-page .bs-card h3 { font-size: clamp(1.35rem,2.3vw,1.95rem); }
  .study-page.bs-page .bs-question,
  .study-page.bs-page .bs-scripture {
    padding: clamp(.95rem,2.4vw,1.65rem);
    border-block-start: 2px solid var(--journey-study-accent);
    background: var(--journey-study-panel);
  }
  .study-page.bs-page .bs-scripture > summary { line-height: 1.5; }
  .study-page.bs-page .bs-question h2 { font: 600 1.16rem/1.35 var(--bs-serif); }
  .study-page.bs-page .bs-options input:checked + span { box-shadow: inset 0 -3px 0 currentColor; }
  .study-page.bs-page .bs-next { margin-block-start: 1.3rem; border-top: 1px solid var(--journey-study-line); }
  .study-page.bs-page .bs-next > a:first-of-type { display: block; padding-block: .45rem; font: 500 clamp(1.3rem,2.1vw,1.65rem)/1.26 var(--bs-serif); }
}

/* The Biohacking Field Guide keeps its numbered contents and continuous chapters. */
@media screen {
  .biohack-page .biohack-shell {
    --guide-line: var(--stud-theme-line, #46534a);
    --guide-panel: var(--stud-theme-surface, #18241f);
    --guide-ink: var(--stud-theme-ink, #f4f0df);
    --guide-accent: var(--stud-theme-focus, #d2e7a8);
  }
  .biohack-page .biohack-shell .book-cover,
  .biohack-page .biohack-shell .page-head:has(.book-cover-actions) {
    align-items: stretch;
    gap: clamp(1.2rem,3vw,3rem);
    padding-block: clamp(1.4rem,3.5vw,3rem);
    border-bottom: 1px solid var(--guide-line);
  }
  .biohack-page .biohack-shell .book-cover h1,
  .biohack-page .biohack-shell .page-head:has(.book-cover-actions) h1 {
    margin: .65rem 0 .85rem;
    font: 500 clamp(2.5rem,5.35vw,5rem)/.99 var(--serif,Georgia,serif);
    letter-spacing: -.048em;
  }
  .biohack-page .biohack-shell .book-cover .book-subtitle { max-width: 39ch; font-size: clamp(1.01rem,1.48vw,1.22rem); line-height: 1.55; }
  .biohack-page .biohack-shell .book-cover .book-cover-image {
    position: relative;
    align-self: stretch;
    width: 100%;
    min-width: 0;
    margin: 0;
    overflow: hidden;
    border-radius: .25rem;
    background: #18241f url("/biohack/assets/study.jpg") 50% 43% / cover no-repeat;
  }
  .biohack-page .biohack-shell .book-cover-image > img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    max-height: none;
    object-position: 50% 43%;
    object-fit: cover;
  }
  .biohack-page .biohack-shell .book-cover .book-cover-actions {
    margin-top: .9rem;
    align-items: center;
    gap: .15rem 1rem;
  }
  .biohack-page .biohack-shell .book-edition { margin-top: .6rem; }
  .biohack-page .biohack-shell .book-edition .text-link { min-height: 44px; text-decoration: underline; text-underline-offset: .25em; }
  .biohack-page .biohack-shell #contents { border-top: 0; padding-top: clamp(1.15rem,2.6vw,2rem); }
  .biohack-page .biohack-shell #explore-heading { scroll-margin-top: .75rem; outline-offset: .25rem; }
  .biohack-page .biohack-shell .contents-section .section-top { margin-bottom: .45rem; }
  .biohack-page .biohack-shell .book-contents { gap: 1.15rem clamp(1.2rem,2.8vw,2.2rem); align-items: start; }
  .biohack-page .biohack-shell .contents-part {
    display: grid;
    grid-template-columns: minmax(0,1fr) clamp(4rem,9vw,7rem);
    column-gap: .65rem;
    padding-top: .8rem;
    border-block-start: 1px solid var(--guide-line);
  }
  .biohack-page .biohack-shell .contents-part::before {
    content: "";
    grid-column: 2;
    grid-row: 1 / 3;
    align-self: stretch;
    min-height: 3.85rem;
    border-radius: .16rem;
    background: var(--guide-panel) var(--guide-photo) var(--guide-crop,center) / cover no-repeat;
  }
  .biohack-page .biohack-shell .contents-part:first-child,
  .biohack-page .biohack-shell [data-category="Sleep & energy"] { --guide-photo: url("/biohack/assets/morning.jpg"); --guide-crop: 57% 32%; }
  .biohack-page .biohack-shell .contents-part:nth-child(2),
  .biohack-page .biohack-shell [data-category="Food & movement"] { --guide-photo: url("/biohack/assets/movement.jpg"); }
  .biohack-page .biohack-shell .contents-part:nth-child(3),
  .biohack-page .biohack-shell [data-category="Mind & recovery"] { --guide-photo: url("/biohack/assets/focus.jpg"); }
  .biohack-page .biohack-shell .contents-part:nth-child(4),
  .biohack-page .biohack-shell [data-category="Know your baseline"] { --guide-photo: url("/biohack/assets/baseline.jpg"); }
  .biohack-page .biohack-shell .contents-part:nth-child(5),
  .biohack-page .biohack-shell [data-category="Supplements & tools"] { --guide-photo: url("/biohack/assets/tools.jpg"); }
  .biohack-page .biohack-shell .contents-part:nth-child(6),
  .biohack-page .biohack-shell [data-category="Beyond the basics"] { --guide-photo: url("/biohack/assets/study.jpg"); }
  .biohack-page .biohack-shell .contents-part:nth-child(7),
  .biohack-page .biohack-shell [data-category="Everyday practice"] { --guide-photo: url("/biohack/assets/baseline.jpg"); --guide-crop: 75% center; }
  .biohack-page .biohack-shell .contents-part > .eyebrow { grid-area: 1 / 1; margin: .12rem 0 .2rem; align-self: end; }
  .biohack-page .biohack-shell .contents-part > h3 { grid-area: 2 / 1; margin: 0; align-self: start; font-size: clamp(1.5rem,2.55vw,2.15rem); }
  .biohack-page .biohack-shell .contents-part ol { grid-column: 1 / -1; margin-top: .45rem; }
  .biohack-page .biohack-shell .contents-part li a { min-height: 44px; padding-block: .72rem; }
  .biohack-page .biohack-shell .chapter-number { align-self: start; padding-top: .22rem; color: var(--guide-accent); font-size: .85rem; }
  .biohack-page .biohack-shell .contents-description > span { line-height: 1.45; }
  .biohack-page .biohack-shell .foundations-entry,
  .biohack-page .biohack-shell .path-intro {
    border-radius: .28rem;
    border: 0;
    border-inline-start: 3px solid var(--guide-accent);
    background: var(--guide-panel);
  }
  .biohack-page .biohack-shell .chapter-header {
    display: grid;
    grid-template-columns: minmax(0,1fr) clamp(5rem,12vw,9rem);
    column-gap: clamp(.65rem,2vw,1.4rem);
    align-items: start;
  }
  .biohack-page .biohack-shell .chapter-header::after {
    content: "";
    grid-area: 1 / 2 / 4 / 3;
    align-self: stretch;
    min-height: 5.6rem;
    border-radius: .2rem;
    background: var(--guide-panel) var(--guide-photo) var(--guide-crop,center) / cover no-repeat;
  }
  .biohack-page .biohack-shell .chapter-header > * { grid-column: 1; }
  .biohack-page .biohack-shell .book-reader .chapter-header > .eyebrow { min-height: 0; padding-right: 0; }
  .biohack-page .biohack-shell .book-reader .chapter-header .reader-title {
    margin: .45rem 0 .35rem;
    font: 500 clamp(2rem,4.15vw,3.55rem)/1.05 var(--serif,Georgia,serif);
    letter-spacing: -.035em;
    text-wrap: balance;
  }
  .biohack-page .biohack-shell .book-reader .reader-meta { min-height: 44px; margin: 0; gap: .65rem; }
  .biohack-page .biohack-shell .book-reader .reader-meta .save-button { position: static; height: 44px; width: 44px; }
  .biohack-page .biohack-shell .chapter-summary {
    margin-block: .95rem;
    padding: clamp(.85rem,2.25vw,1.35rem);
    border: 0;
    border-block-start: 2px solid var(--guide-accent);
    background: var(--guide-panel);
  }
  .biohack-page .biohack-shell .chapter-summary :is(h2,h3) { margin-bottom: .4rem; }
  .biohack-page .biohack-shell .chapter-situation { margin-top: .65rem; padding-top: .65rem; border-color: var(--guide-line); }
  .biohack-page .biohack-shell .chapter-outline--compact { border-block-end: 1px solid var(--guide-line); }
  .biohack-page .biohack-shell .book-reader .learning-section,
  .biohack-page .biohack-shell .static-chapter .learning-section {
    margin-block: 1.4rem clamp(1.7rem,3.5vw,2.65rem);
    padding-top: clamp(1rem,2.4vw,1.65rem);
    scroll-margin-top: 1rem;
  }
  .biohack-page .biohack-shell .book-reader .learning-section > :is(h2,h3),
  .biohack-page .biohack-shell .static-chapter .learning-section > :is(h2,h3) {
    max-width: 32ch;
    margin-block: .3rem .75rem;
    font: 500 clamp(1.55rem,2.65vw,2.23rem)/1.15 var(--serif,Georgia,serif);
    text-wrap: balance;
  }
  .biohack-page .biohack-shell .learning-section--example,
  .biohack-page .biohack-shell .chapter-recap .try-box {
    padding: clamp(.9rem,2.4vw,1.45rem);
    border: 0;
    border-inline-start: 3px solid var(--guide-accent);
    background: var(--guide-panel);
  }
  .biohack-page .biohack-shell .teaching-visual { border-radius: .25rem; }
  .biohack-page .biohack-shell .teaching-table th { text-align: start; }
  .biohack-page .biohack-shell .evidence-notes > .evidence-note + .evidence-note { border-top: 1px solid var(--guide-line); padding-top: 1rem; }
  .biohack-page .biohack-shell .book-reader .related-region {
    margin-top: 2rem;
    border: 1px solid var(--guide-line);
    border-radius: .25rem;
    background: var(--guide-panel);
  }
}
@media screen and (max-width: 700px) {
  .biohack-page .biohack-shell .guide-header .header-inner {
    display: flex;
    flex-flow: row wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0 .45rem;
    padding-block: .2rem;
  }
  .biohack-page .biohack-shell .guide-header .wordmark { min-height: 44px; font-size: 1.16rem; }
  .biohack-page .biohack-shell .guide-header .wordmark :is(strong,span:last-child) { font-size: clamp(1.05rem,4.7vw,1.22rem); }
  .biohack-page .biohack-shell .guide-header nav { width: auto; flex-wrap: wrap; gap: .55rem; }
  .biohack-page .biohack-shell .guide-header nav a { min-height: 44px; }
  .biohack-page .biohack-shell #main .book-cover {
    position: relative;
    isolation: isolate;
    grid-template-columns: minmax(0,1fr);
    padding-block: 1.05rem .5rem;
  }
  .biohack-page .biohack-shell .book-cover-copy { grid-column: 1; min-width: 0; position: relative; z-index: 1; }
  .biohack-page .biohack-shell #main .book-cover-image {
    position: absolute;
    inset: .85rem 0 auto auto;
    width: 31%;
    height: clamp(5.8rem,25vw,8rem);
    opacity: 1;
    z-index: 0;
  }
  .biohack-page .biohack-shell .book-cover .eyebrow { max-width: 66%; }
  .biohack-page .biohack-shell .book-cover h1 { max-width: 65%; font-size: clamp(2.12rem,8.6vw,3rem); letter-spacing: -.045em; }
  .biohack-page .biohack-shell .book-cover h1 br { display: none; }
  .biohack-page .biohack-shell .book-cover .book-subtitle { max-width: none; margin-top: .65rem; }
  .biohack-page .biohack-shell .book-cover .book-cover-actions { gap: .15rem .85rem; margin-top: .45rem; }
  .biohack-page .biohack-shell .book-edition { margin-top: .15rem; }
  .biohack-page .biohack-shell .contents-section .search-form { margin-bottom: .8rem; }
}
@media screen and (max-width: 690px) {
  .study-page--library #study-main .study-hero--library { padding: .9rem 0 1.2rem !important; }
  .study-page--library .study-hero--library::before {
    inset: 0 0 auto;
    height: 8rem;
    background-image: linear-gradient(0deg,#111420 0%,rgba(17,20,32,.28) 66%),url("/study/assets/studstudy-home-v1-640.jpg");
    background-position: center,50% 44%;
  }
  .study-page--library .study-hero--library .study-hero__copy { max-width: none; padding-top: 5.65rem; }
  .study-page--library .study-hero--library .study-hero__copy .eyebrow { color: #e3d8ff; }
  .study-page--library .study-hero--library .study-product-statement { font-size: clamp(1.4rem,5.8vw,1.8rem); }
  .study-page--library .study-paths { gap: .6rem; }
  .study-page--library .study-paths .study-path { grid-template: auto auto auto / minmax(4.4rem,24%) 1fr; column-gap: .85rem; padding: .55rem 0 .8rem; }
  .study-page--library .study-paths .study-path::before { grid-area: 1 / 1 / 4 / 2; align-self: stretch; min-height: 4.4rem; height: auto; margin: 0; }
  .study-page--library .study-paths .study-path > * { grid-column: 2; }
  .study-page--passage #study-main .scripture-verse__link { grid-template-columns: 1.35rem minmax(0,1fr); }
  .study-page--passage #study-main .scripture-verse__cue { grid-column: 2; justify-self: start; padding: 0; margin: .05rem 0 .12rem; }
}
@media screen and (max-width: 38rem) {
  .bs-page .bs-directory section:first-of-type .bs-card:first-child { grid-template-columns: 1fr; }
  .bs-page .bs-directory section:first-of-type .bs-card:first-child .bs-card-image { width: 100%; height: clamp(7.4rem,33vw,10.75rem); min-height: 0; object-position: 50% 43%; }
  .study-page.bs-page .bs-reading .bs-art { float: none; width: 100%; margin: 0 0 1.05rem; }
  .study-page.bs-page .bs-hero-image { width: 100%; height: clamp(8.25rem,39vw,13rem); border-radius: .2rem; object-position: 50% 40%; }
  .study-page.bs-page .bs-telling .bs-scene:first-of-type > p:first-child { font-size: clamp(1.19rem,5.05vw,1.38rem); line-height: 1.55; }
}

/* STUD mobile editorial edition */

/* On a fetched reader the article survives. The surrounding directory has its
   own grid, so scope the teaching material to the article itself. */
[data-hands-editorial] { --hands-line: #7591a1; --hands-paper: #eeeade; --hands-ink: #233d46; --hands-action: #c2e3fa; --hands-panel: #1a303b; }
[data-hands-editorial="adventure"] { --hands-line: #718b73; --hands-paper: #eeead9; --hands-ink: #2a4337; --hands-action: #d7e9c6; --hands-panel: #20362e; }
[data-hands-editorial="play"] { --hands-line: #7e8b58; --hands-paper: #ecebd4; --hands-ink: #2c3c26; --hands-action: #d7ee8d; --hands-panel: #253326; }
[data-hands-editorial] :is(.hands-lead,.hands-detail,.hands-sample,.hands-framing,.hands-sample-panels,.hands-sample-panels > div) { box-sizing: border-box; min-width: 0; }
[data-hands-editorial] .hands-lead { max-width: 43rem; margin: .9rem 0 1.15rem; overflow: hidden; border: 1px solid var(--hands-line); border-radius: .3rem; background: var(--hands-panel); }
[data-hands-editorial] .hands-lead-figure { margin: 0; padding: 0; border: 0; background: transparent; }
[data-hands-editorial] img.hands-photo { display: block; width: 100%; height: auto; max-width: 100%; aspect-ratio: 2.12; object-fit: cover; object-position: var(--hands-subject,50% 50%); margin: 0; border: 0; border-radius: 0; }
[data-hands-editorial] .hands-lead > a.hands-action { display: flex; align-items: center; justify-content: space-between; gap: .8rem; min-height: 44px; box-sizing: border-box; padding: .65rem .9rem; background: var(--hands-panel); color: var(--hands-action); font-family: inherit; font-weight: 700; font-size: 1rem; line-height: 1.35; text-decoration: underline; text-underline-offset: .2em; }
[data-hands-editorial] .hands-action span { flex: none; font-size: 1.25rem; }
[data-hands-editorial] .hands-action:focus-visible { outline: 3px solid currentColor; outline-offset: -4px; }
[data-hands-editorial] .hands-step-target { scroll-margin-block-start: calc(var(--site-header-h,4.5rem) + var(--disclaimer-h,2rem) + 2rem); }
[data-hands-editorial] .hands-sample { padding: clamp(.85rem, 2.2vw, 1.45rem); color: var(--hands-ink); background: var(--hands-paper); }
[data-hands-editorial] .hands-sample-title { display: block; color: var(--hands-ink); font-size: clamp(1.12rem,2vw,1.4rem); line-height: 1.24; font-weight: 750; letter-spacing: -.02em; }
[data-hands-editorial] .hands-record { display: grid; grid-auto-flow: row; margin: .6rem 0 0; padding: 0; background: transparent; color: var(--hands-ink); }
[data-hands-editorial] .hands-record > div { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.7fr); gap: .7rem; align-items: baseline; margin: 0; padding: .36rem 0; background: transparent; border: 0; border-top: 1px solid #a9afa0; color: var(--hands-ink); }
[data-hands-editorial] .hands-record :is(dt,dd) { margin: 0; padding: 0; color: var(--hands-ink); text-transform: none; letter-spacing: normal; text-align: start; font-size: clamp(.94rem,1.65vw,1.06rem); line-height: 1.38; font-family: inherit; }
[data-hands-editorial] .hands-record dt { font-weight: 750; }
[data-hands-editorial] .hands-sample-panels { display: flex; gap: .6rem; margin-top: .72rem; }
[data-hands-editorial] .hands-sample-panels > div { flex: 1 1 0; color: var(--hands-ink); }
[data-hands-editorial] .hands-sample-panels svg { display: block; width: 100%; height: auto; max-height: 6.5rem; border: 0; background: transparent; }
[data-hands-editorial] .hands-sample-panels span { display: block; margin-top: .3rem; text-align: center; color: var(--hands-ink); font-size: .95rem; line-height: 1.34; font-weight: 650; }
[data-hands-editorial] .hands-note { font-size: .87rem; }
[data-hands-editorial] :is(.hands-note,.hands-credit) { display: block; padding: .45rem .9rem; color: var(--hands-ink); background: var(--hands-paper); line-height: 1.4; }
[data-hands-editorial] .hands-credit { font-size: .8rem; }
[data-hands-editorial] .hands-credit a { color: inherit; text-decoration: underline; }
[data-hands-editorial] .hands-framing { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 2px; background: var(--hands-paper); }
[data-hands-editorial] .hands-framing > div > span:last-child,
[data-hands-editorial] .hands-fossil-lead > span:last-child { display: block; padding: .36rem .55rem; color: var(--hands-ink); font-size: .89rem; font-weight: 700; line-height: 1.3; }
[data-hands-editorial] :is(.hands-fossil-detail,.hands-fossil-full) { position: relative; display: block; aspect-ratio: 650 / 480; overflow: hidden; }
[data-hands-editorial] :is(.hands-fossil-detail,.hands-fossil-full) img { display: block; position: absolute; width: 100%; height: auto; max-width: none; border-radius: 0; margin: 0; image-orientation: from-image; }
[data-hands-editorial] .hands-fossil-full img { inset: 0 auto auto 0; }
[data-hands-editorial] .hands-fossil-detail img { width: 315.077%; left: -112.308%; top: -170.833%; }
[data-hands-editorial] .hands-fossil-lead { max-width: 100%; background: var(--hands-paper); }
[data-hands-editorial] .hands-fossil-lead .hands-fossil-detail { max-width: 22rem; margin: auto; }
[data-hands-editorial] .hands-lead-figure p.hands-observation { margin: 0; padding: .52rem .9rem 0; color: var(--hands-ink); background: var(--hands-paper); font-size: 1rem; line-height: 1.4; }
/* The catalog theme sets important colors on paragraphs and links in every
   Skill article. The example sheet has its own paper color, including in a
   directory dialog, so give its actual text the corresponding dark ink. */
body :is(#main,#editorial-sheet,#premium-reader,#play-main) [data-hands-editorial] .hands-lead-figure :is(.hands-observation,.hands-credit,.hands-credit a,.hands-note),
body :is(#main,#editorial-sheet,#premium-reader,#play-main) [data-hands-editorial] .hands-sample :is(.hands-sample-title,dt,dd,.hands-sample-panels span),
body :is(#main,#editorial-sheet,#premium-reader,#play-main) [data-hands-editorial] :is(.hands-framing,.hands-fossil-lead) > div > span:last-child,
body :is(#main,#editorial-sheet,#premium-reader,#play-main) [data-hands-editorial] .hands-fossil-lead > span:last-child { color: var(--hands-ink) !important; }
body :is(#main,#editorial-sheet,#premium-reader) [data-hands-editorial] .hands-credit a { text-decoration: underline; text-underline-offset: .15em; }
[data-hands-editorial] figure.hands-detail { display: block; margin: 1rem 0; padding: 0; overflow: hidden; max-width: 39rem; color: #e6ede6; background: var(--hands-panel); border: 1px solid var(--hands-line); border-radius: .22rem; }
[data-hands-editorial] figure.hands-detail figcaption { display: block; margin: 0; padding: .55rem .8rem .7rem; color: #e6ede6; background: var(--hands-panel); font: inherit; font-size: .96rem; line-height: 1.45; }
[data-hands-editorial] :is(.hands-pottery,.hands-town-map) img { display: block; width: 100%; height: auto; border: 0; margin: 0; }
[data-hands-editorial] .hands-button-marks img { display: block; width: 100%; height: auto; max-height: 15rem; object-fit: contain; margin: 0; border: 0; }
[data-hands-editorial] .hands-spacer svg { display: block; width: min(100%,21rem); height: auto; margin: auto; background: #192733; }
[data-hands-editorial] .skill-steps li .skill-technique { margin: 1.1rem 0; padding: .9rem; background: #172a34; border: 1px solid #516b7c; }
[data-hands-editorial] .skill-technique .skill-diagrams { display: block; }
[data-hands-editorial] .skill-technique .skill-diagram { max-width: 32rem; margin: .65rem 0; }
body [data-hands-editorial] .book-host .book-host-plan:has(.hands-detail)::before { content: none; display: none; }
body [data-hands-editorial] .book-host .book-host-plan li .hands-detail { margin-block: .65rem .9rem; }
body [data-hands-editorial] .book-host .book-host-plan .hands-detail img { aspect-ratio: 1.95; }
body [data-hands-editorial] .book-host .book-host-plan .hands-detail figcaption { font-family: inherit; }
@media screen {
  article[data-hands-editorial] .hands-lead { width: 100%; }
  article[data-hands-editorial] .catalog-standalone-head :is(.skill-reading-preview,.adv-reading-preview) dl { display: block; background: transparent; border: 0; }
  article[data-hands-editorial] .catalog-standalone-head :is(.skill-reading-preview,.adv-reading-preview) dl > div { display: grid; grid-template-columns: minmax(5rem,22%) minmax(0,1fr); gap: .6rem; padding: .55rem 0; border: 0; border-top: 1px solid var(--hands-line); background: transparent; }
  article[data-hands-editorial] .catalog-standalone-head :is(.skill-reading-preview,.adv-reading-preview) dl dt { font-size: .94rem; }
  article[data-hands-editorial="skill"] .skill-steps .skill-step-number { align-self: start; }
  article[data-hands-editorial="adventure"] .adv-plan .adv-plan-sequence > li { padding-block: .7rem; border-bottom: 1px solid #475a4a; }
  article[data-hands-editorial="adventure"] .adv-steps > li:has(.hands-step-target) { border-inline-start: 3px solid #adc99e; padding-inline-start: .85rem; }
  @media (min-width: 740px) {
    article[data-hands-editorial] .hands-lead { max-width: 42rem; }
    article[data-hands-editorial] .hands-lead .hands-photo { aspect-ratio: 2.65; }
    article[data-hands-editorial] .hands-sample-panels { gap: 1.2rem; }
  }
  @media (max-width: 480px) {
    article[data-hands-editorial] .catalog-standalone-head { min-width: 0; }
    article[data-hands-editorial="skill"] .skill-steps > li:has(.skill-technique,[data-learning-rollout]) { display: block; }
    article[data-hands-editorial="skill"] .skill-steps > li:has(.skill-technique,[data-learning-rollout]) > .skill-step-number { display: inline-block; margin-bottom: .28rem; }
  }
  article[data-hands-editorial] .hands-lead.hands-lead-portrait { display: grid; grid-template-columns: clamp(7.6rem,43%,13rem) minmax(0,1fr); align-items: stretch; }
  article[data-hands-editorial] .hands-lead.hands-lead-portrait img.hands-photo { height: auto; width: 100%; aspect-ratio: 4/5; object-fit: cover; }
  article[data-hands-editorial] .hands-lead.hands-lead-portrait a.hands-action { align-self: stretch; flex-direction: column; justify-content: center; align-items: flex-start; padding: .7rem clamp(.65rem,2.5vw,1.4rem); font-size: clamp(1.02rem,2.6vw,1.4rem); line-height: 1.35; }
  body [data-hands-editorial] :is(.hands-lead-figure,.hands-detail) img.hands-photo[data-hands-full-frame] { width: 100%; height: auto; max-height: clamp(14rem,72vw,24rem); aspect-ratio: var(--hands-photo-ratio, 4 / 3); object-fit: contain; background: var(--hands-panel); }
}
/* The shared guide template owns a subject photograph on every active game.
   Expand the actual image rather than supplying a decorative stock background. */
@media screen and (max-width: 700px) {
  body.play-rebuilt #play-main .play-shell[data-play-guide] .play-reading-intro {
    display: grid; grid-template-columns: minmax(0,1fr) minmax(0,2.1fr); gap: .48rem .65rem; align-items: start;
    grid-template-areas: "category category" "title title" "links links" "photo photo" "people timing" "lead lead" "opening opening" "gear gear";
  }
  body.play-rebuilt #play-main .play-shell[data-play-guide] .play-reading-intro .play-detail-hero .play-eyebrow { grid-area: category; }
  body.play-rebuilt #play-main .play-shell[data-play-guide] .play-reading-intro .play-detail-hero h1 { grid-area: title; }
  body.play-rebuilt #play-main .play-shell[data-play-guide] .play-reading-intro .play-guide-shortcuts { grid-area: links; }
  body.play-rebuilt #play-main .play-shell[data-play-guide] .play-reading-intro .play-detail-image {
    display: block; grid-area: photo; margin: .2rem 0 .15rem; width: 100%; max-width: 100%;
    height: auto; max-height: 18rem; aspect-ratio: auto; object-fit: contain; align-self: start; border-radius: .3rem; background: #152019;
  }
  body.play-rebuilt #play-main .play-shell[data-play-guide] .play-meta span:first-child { grid-area: people; }
  body.play-rebuilt #play-main .play-shell[data-play-guide] .play-meta span:nth-child(2) { grid-area: timing; }
  body.play-rebuilt #play-main .play-shell[data-play-guide] .play-reading-intro .play-detail-hero .play-lead { grid-area: lead; }
  body.play-rebuilt #play-main .play-shell[data-play-guide] :is(.play-reading-opening,.play-first-game) { grid-area: opening; }
  body.play-rebuilt #play-main .play-shell[data-play-guide] .play-meta span:last-child { grid-area: gear; }
  body.play-rebuilt #play-main .play-shell[data-play-guide="play-charades"] .play-reading-intro:has([data-charades-launch]) {
    grid-template-areas: "category category" "title title" "links links" "host host" "photo photo" "people timing" "lead lead" "opening opening" "gear gear";
  }
  body.play-rebuilt #play-main .play-shell[data-play-guide="play-charades"] .play-reading-intro [data-charades-launch] { grid-area: host; }
  body.play-rebuilt #play-main .play-shell[data-play-guide] .play-reading-opening { border-top: 2px solid #a8bc75; background: #1b2820; }
  body.play-rebuilt #play-main .play-shell[data-play-guide] .play-reading-opening > div { padding-inline: .75rem; }
  body.play-rebuilt #play-main .play-shell[data-play-guide] .play-worked-example figure img { display: block; width: 100%; height: auto; max-height: none; object-fit: contain; }
  body.play-rebuilt #play-main .play-shell[data-play-guide="play-air-hockey"] .hands-detail .hands-photo { aspect-ratio: 2.65; }
}
@media print {
  [data-hands-editorial] .hands-lead > a.hands-action { display: none; }
  [data-hands-editorial] .hands-lead, [data-hands-editorial] figure.hands-detail { max-width: 30rem; break-inside: avoid; border-color: #777; }
  [data-hands-editorial] :is(.hands-sample,.hands-sample-title,.hands-sample-panels span,.hands-record dt,.hands-record dd,.hands-credit,.hands-observation,figure.hands-detail figcaption) { color: #171e19; background: white; }
  [data-hands-editorial] .hands-spacer svg { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
}

/* Direct pages, fetched readers and browser-native controls share these styles. */
@media screen {
  /* A photographic introduction gives way to a concise list the reader can scan. */
  body:is(.self-premium,.fit-premium,.money-premium,.learn-premium,.motivation-premium)
  #main .essential-choices[data-essential-choices] .essential-heading {
    align-items: baseline;
    justify-content: space-between;
    gap: .1rem 1rem;
    margin-block: .45rem .75rem;
  }
  body:is(.self-premium,.fit-premium,.money-premium,.learn-premium,.motivation-premium)
  #main .essential-choices[data-essential-choices] .essential-heading h2 {
    max-width: 22ch;
    font: 500 clamp(1.68rem,3.3vw,2.7rem)/1.08 Georgia,serif !important;
    letter-spacing: -.035em;
    text-wrap: pretty;
  }
  body:is(.self-premium,.fit-premium,.money-premium,.learn-premium,.motivation-premium)
  #main .essential-choices[data-essential-choices] > ul > li:first-child > a {
    grid-template: "photo" auto "copy" auto / minmax(0,1fr);
    grid-template-rows: auto 1fr;
    min-height: 0;
    height: 100%;
    border: 0;
    border-radius: .22rem;
    background: var(--guide-panel);
    overflow: hidden;
  }
  body:is(.self-premium,.fit-premium,.money-premium,.learn-premium)
  #main .essential-choices[data-essential-choices] > ul > li:first-child > a > img,
  body.motivation-premium #main [data-essential-choices="motivation"] a[href="/motivation/reads/drive-practice-the-hard-part/"]::before {
    display: block;
    grid-area: photo;
    width: 100%;
    height: auto;
    aspect-ratio: 2.6;
    min-height: 0;
    object-position: var(--lead-photo-position);
    border-radius: 0;
  }
  body.self-premium #main section.essential-choices { --lead-photo-position: 62% 37%; }
  body.fit-premium #main section.essential-choices { --lead-photo-position: 50% 12%; }
  body.money-premium #main section.essential-choices { --lead-photo-position: 46% 35%; }
  body.learn-premium #main section.essential-choices { --lead-photo-position: 52% 28%; }
  body.motivation-premium #main [data-essential-choices] a[href="/motivation/reads/drive-practice-the-hard-part/"]::before {
    background-position: 52% 14%;
  }
  body:is(.self-premium,.fit-premium,.money-premium,.learn-premium,.motivation-premium)
  #main .essential-choices[data-essential-choices] > ul > li:first-child > a > span {
    grid-area: copy;
    align-self: start;
    padding: .78rem 1rem .95rem;
    border-inline-start: 3px solid var(--guide-accent);
  }
  body:is(.self-premium,.fit-premium,.money-premium,.learn-premium,.motivation-premium)
  #main .essential-choices[data-essential-choices] > ul > li:first-child strong {
    display: block;
    color: var(--guide-ink);
    font: 550 clamp(1.55rem,3.3vw,2.45rem)/1.07 Georgia,serif !important;
    letter-spacing: -.035em;
  }
  body:is(.self-premium,.fit-premium,.money-premium,.learn-premium)
  #main .essential-choices[data-essential-choices] > ul > li:not(:first-child) > a > img {
    flex: none;
    width: clamp(4.1rem,16vw,5.8rem);
    height: auto;
    aspect-ratio: 1.18;
    border-radius: .16rem;
  }
  body.motivation-premium #main [data-essential-choices="motivation"] a:is([href$="/drive-return-after-a-long-interruption/"],[href$="/drive-help-where-you-are/"])::before {
    content: "";
    flex: 0 0 clamp(4.2rem,16vw,6rem);
    align-self: stretch;
    min-height: 4.25rem;
    border-radius: .16rem;
    background: center 35% / cover no-repeat var(--read-choice-photo);
  }
  body.motivation-premium #main [data-essential-choices="motivation"] [href$="/drive-return-after-a-long-interruption/"] {
    --read-choice-photo: url("/assets/stud-token-creative/cards-expansion100-063-first-cello-note.webp");
  }
  body.motivation-premium #main [data-essential-choices="motivation"] [href$="/drive-help-where-you-are/"] {
    --read-choice-photo: url("/assets/stud-token-creative/cards-expansion100-083-groceries-volunteers.webp");
  }
  @media (min-width: 52rem) {
    body:is(.self-premium,.fit-premium,.money-premium,.learn-premium,.motivation-premium)
    #main .essential-choices[data-essential-choices] > ul {
      grid-template-columns: minmax(0,1.05fr) minmax(0,1fr);
      column-gap: clamp(1.1rem,3vw,2.4rem);
    }
    body:is(.self-premium,.fit-premium,.money-premium,.learn-premium,.motivation-premium)
    #main .essential-choices[data-essential-choices] > ul > li:first-child {
      grid-column: 1;
      grid-row: span 3;
      margin-block-end: .75rem;
    }
    body:is(.self-premium,.fit-premium,.money-premium,.learn-premium)
    #main .essential-choices[data-essential-choices] > ul > li:first-child > a > img,
    body.motivation-premium #main [data-essential-choices="motivation"] a[href="/motivation/reads/drive-practice-the-hard-part/"]::before {
      aspect-ratio: 2.15;
    }
  }

  /* Only the step title needs a number gutter. The explanation, evidence and
     table can use the entire measure when a phone or a side sheet is narrow. */
  body:is(.self-premium,.fit-premium,.money-premium,.learn-premium).journey-enabled
  :is(#main,#premium-reader) .reader-layout :is(.essential-lesson,.guide-instruction,.guide-variant) > :is(.essential-step,.guide-step) {
    display: grid;
    grid-template-columns: minmax(1.45rem,max-content) minmax(0,1fr);
    gap: .38rem .35rem;
    align-items: baseline;
    padding: 1.05rem 0 1.15rem;
  }
  body:is(.self-premium,.fit-premium,.money-premium,.learn-premium).journey-enabled
  :is(#main,#premium-reader) .reader-layout :is(.essential-lesson,.guide-instruction,.guide-variant) > :is(.essential-step,.guide-step)::before {
    position: static;
    grid-area: 1 / 1;
    align-self: baseline;
  }
  body:is(.self-premium,.fit-premium,.money-premium,.learn-premium).journey-enabled
  :is(#main,#premium-reader) .reader-layout :is(.essential-step,.guide-step) > :is(h3,h4) {
    grid-area: 1 / 2;
    margin: 0;
  }
  body:is(.self-premium,.fit-premium,.money-premium,.learn-premium).journey-enabled
  :is(#main,#premium-reader) .reader-layout :is(.essential-step,.guide-step) > :not(h3,h4) {
    grid-column: 1 / -1;
    min-width: 0;
    max-width: 100%;
  }
  body:is(.self-premium,.fit-premium,.money-premium,.learn-premium).journey-enabled
  :is(#main,#premium-reader) .reader-layout .reader > .article-photo-section[data-role] {
    grid-template: "photo" auto "heading" auto / minmax(0,1fr);
    gap: 0;
    margin-block-start: 1.75rem;
    padding-top: .75rem;
    border-block-start: 1px solid var(--knowledge-rule);
  }
  body:is(.self-premium,.fit-premium,.money-premium,.learn-premium).journey-enabled
  :is(#main,#premium-reader) .reader-layout .article-photo-section > .article-continuation-media {
    grid-area: photo;
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: 2.75;
    overflow: hidden;
    border: 0;
    border-radius: .18rem .18rem 0 0;
  }
  body:is(.self-premium,.fit-premium,.money-premium,.learn-premium).journey-enabled
  :is(#main,#premium-reader) .reader-layout .article-photo-section > .article-continuation-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: var(--reading-photo-focus,50% 43%);
  }
  body:is(.self-premium,.fit-premium,.money-premium,.learn-premium).journey-enabled
  :is(#main,#premium-reader) .reader-layout .article-photo-section > .article-section-heading {
    grid-area: heading;
    justify-self: stretch;
    min-height: 0;
    padding: .8rem .85rem .92rem;
    border-inline-start: 3px solid var(--knowledge-accent);
    background: var(--knowledge-tint);
  }
  body:is(.self-premium,.fit-premium,.money-premium,.learn-premium).journey-enabled
  :is(#main,#premium-reader) .reader-layout .article-photo-section > .article-section-heading h2 {
    font: 500 clamp(1.55rem,3.3vw,2.45rem)/1.1 Georgia,serif !important;
    letter-spacing: -.025em;
    text-wrap: pretty;
  }
  body:is(.self-premium,.fit-premium,.money-premium,.learn-premium).journey-enabled
  :is(#main,#premium-reader) .reader-layout .article-photo-section > :not(.article-section-heading,.article-continuation-media) {
    grid-column: 1 / -1;
  }
  @container knowledge-reader (min-width: 38rem) {
    body:is(.self-premium,.fit-premium,.money-premium,.learn-premium).journey-enabled
    :is(#main,#premium-reader) .reader-layout .reader > .article-photo-section[data-role] {
      grid-template: "photo heading" auto / minmax(0,.9fr) minmax(0,1.1fr);
      align-items: stretch;
    }
    body:is(.self-premium,.fit-premium,.money-premium,.learn-premium).journey-enabled
    :is(#main,#premium-reader) .reader-layout .article-photo-section > .article-continuation-media {
      aspect-ratio: 1.9;
    }
    body:is(.self-premium,.fit-premium,.money-premium,.learn-premium).journey-enabled
    :is(#main,#premium-reader) .reader-layout .article-photo-section > .article-section-heading {
      align-self: stretch;
      display: grid;
      align-content: end;
      padding: 1.1rem;
    }
  }
  body:is(.self-premium,.fit-premium,.money-premium).journey-enabled
  :is(#main,#premium-reader) .reader-layout .reader .article-section[data-role="community"] .community-group {
    margin: 1.05rem 0 1.65rem;
    padding: 0;
    border: 0;
  }
  body:is(.self-premium,.fit-premium,.money-premium).journey-enabled
  :is(#main,#premium-reader) .reader-layout .reader .community-group > h3 {
    padding: .6rem 0;
    margin: 0;
    border-top: 0;
    border-bottom: 1px solid var(--knowledge-rule);
    color: var(--knowledge-accent);
    font: 650 1rem/1.35 var(--knowledge-ui) !important;
    text-transform: none;
    letter-spacing: 0;
  }

  /* Worked material has one graphic per reading task; its labels, quantities,
     quotation and native table are ordinary accessible HTML. */
  body:is(.self-premium,.fit-premium,.money-premium,.learn-premium) :is(#main,#premium-reader) figure[data-reading-example] {
    margin: .7rem 0 .5rem;
    padding: clamp(.8rem,2.7vw,1.3rem);
    border: 0;
    border-block: 1px solid var(--knowledge-rule);
    background: var(--knowledge-tint);
  }
  body:is(.self-premium,.fit-premium,.money-premium,.learn-premium) :is(#main,#premium-reader) figure[data-reading-example] figcaption {
    margin: 0 0 .8rem;
    font: 650 1rem/1.36 var(--knowledge-ui) !important;
    color: var(--knowledge-ink);
  }
  :is(#main,#premium-reader) figure[data-reading-example] ol {
    display: grid;
    gap: .4rem;
    margin: 0;
    padding: 0;
    list-style: none;
  }
  :is(#main,#premium-reader) figure[data-reading-example] ol > li { margin: 0; padding: 0; }
  body.self-premium :is(#main,#premium-reader) [data-reading-example="wake-schedule"] ol {
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: .8rem 1rem;
  }
  body.self-premium :is(#main,#premium-reader) [data-reading-example="wake-schedule"] li {
    display: grid;
    gap: .25rem;
    padding-block-start: .35rem;
    border-block-start: 1px solid var(--knowledge-rule);
  }
  body.self-premium :is(#main,#premium-reader) [data-reading-example="wake-schedule"] time {
    color: var(--knowledge-ink);
    font: 500 clamp(1.35rem,4.5vw,2rem)/1.12 Georgia,serif !important;
    font-variant-numeric: tabular-nums;
  }
  body.self-premium :is(#main,#premium-reader) [data-reading-example="wake-schedule"] li span {
    color: var(--knowledge-muted);
    font-size: .85rem;
    line-height: 1.35;
  }
  body.self-premium :is(#main,#premium-reader) [data-reading-example="shift-log"] blockquote {
    margin: 0;
    padding: 0 0 0 .85rem;
    border-inline-start: 2px solid var(--knowledge-accent);
  }
  body.self-premium :is(#main,#premium-reader) [data-reading-example="shift-log"] blockquote p + p {
    margin-block-start: .55rem;
  }
  body.fit-premium :is(#main,#premium-reader) [data-reading-example="running-week"] ol {
    grid-template-columns: repeat(auto-fit,minmax(min(2.15rem,100%),1fr));
    gap: .25rem;
  }
  body.fit-premium :is(#main,#premium-reader) [data-reading-example="running-week"] li {
    display: grid;
    text-align: center;
    padding: .48rem .08rem;
    color: var(--knowledge-muted);
    border-bottom: 1px solid var(--knowledge-line);
  }
  body.fit-premium :is(#main,#premium-reader) [data-reading-example="running-week"] .reading-run-day {
    border-bottom: 3px solid var(--knowledge-accent);
    background: var(--knowledge-paper);
    color: var(--knowledge-ink);
  }
  body.fit-premium :is(#main,#premium-reader) [data-reading-example="running-week"] abbr {
    border: 0;
    text-decoration: none;
    font-size: .76rem;
    font-weight: 700;
  }
  body.fit-premium :is(#main,#premium-reader) [data-reading-example="running-week"] li span { font-size: .76rem; }
  body.money-premium :is(#main,#premium-reader) .reader-layout .reader table[data-reading-example] caption {
    text-align: start;
    padding: .7rem 0;
    color: var(--knowledge-ink);
    font: 550 1.25rem/1.23 Georgia,serif !important;
  }
  body.money-premium :is(#main,#premium-reader) .reader-layout .reader table[data-reading-example] .reading-shortfall > * {
    border-block: 1px solid #b69a69;
    background: #312b23;
  }
  body.money-premium :is(#main,#premium-reader) .reader-layout .reader .reading-shortfall td:last-child {
    color: #ffda99;
    font-weight: 750;
  }
  body.money-premium :is(#main,#premium-reader) .reading-shortfall small {
    display: block;
    font-size: .72rem;
    line-height: 1.25;
  }
  body.money-premium :is(#main,#premium-reader) [data-reading-example="renewal-fund"] meter {
    display: block;
    width: 100%;
    height: 1.05rem;
    margin: .35rem 0 .8rem;
    accent-color: var(--knowledge-accent);
  }
  body.money-premium :is(#main,#premium-reader) [data-reading-example="renewal-fund"] meter::-webkit-meter-bar {
    background: var(--knowledge-paper);
    border: 1px solid var(--knowledge-rule);
  }
  body.money-premium :is(#main,#premium-reader) [data-reading-example="renewal-fund"] meter::-webkit-meter-optimum-value {
    background: var(--knowledge-accent);
  }
  body.money-premium :is(#main,#premium-reader) [data-reading-example="renewal-fund"] meter::-moz-meter-bar { background: var(--knowledge-accent); }
  body.learn-premium :is(#main,#premium-reader) [data-reading-example="median"] ol {
    grid-template-columns: repeat(5,minmax(0,1fr));
    gap: .32rem;
    margin: .35rem 0 .7rem;
  }
  body.learn-premium :is(#main,#premium-reader) [data-reading-example="median"] li {
    position: relative;
    padding: .5rem .08rem;
    text-align: center;
    border-bottom: 1px solid var(--knowledge-rule);
    font: 500 clamp(1.25rem,4.7vw,1.75rem)/1.25 Georgia,serif !important;
    font-variant-numeric: tabular-nums;
  }
  body.learn-premium :is(#main,#premium-reader) [data-reading-example="median"] .reading-median {
    color: var(--knowledge-ink);
    border-bottom: 3px solid var(--knowledge-accent);
    background: var(--knowledge-paper);
    font-weight: 750 !important;
  }
  body.learn-premium :is(#main,#premium-reader) .reading-separator {
    position: absolute;
    clip-path: inset(50%);
    width: 1px;
    height: 1px;
    overflow: hidden;
  }

  /* Keep the spoken prompt in the poem and the cooking cue in the recipe. */
  body.motivation-premium :is(#main,#editorial-sheet) .essential-step > blockquote[data-reading-example] {
    margin: .8rem 0;
    padding: .95rem 1.1rem;
    border: 0;
    border-inline-start: 3px solid #d7a77d;
    color: #f6e8d7;
    background: #3a2f28;
  }
  body.motivation-premium :is(#main,#editorial-sheet) .essential-step > blockquote[data-reading-example] > p {
    margin: 0;
    max-width: 35ch;
    color: inherit;
    font: 500 clamp(1.35rem,4.3vw,2rem)/1.35 Georgia,serif !important;
  }
  body.motivation-premium :is(#main,#editorial-sheet) .drive-prose .drive-reading-section {
    margin-block: 1.5rem;
    padding-block-start: 1rem;
    border-block-start: 1px solid #665246;
  }
  body.motivation-premium :is(#main,#editorial-sheet) .drive-prose .drive-reading-section h2 {
    margin: .15rem 0 .7rem;
    max-width: 30ch;
    font: 500 clamp(1.6rem,3.7vw,2.45rem)/1.12 Georgia,serif !important;
  }
  body.motivation-premium :is(#main,#editorial-sheet) .drive-reading-section > p {
    max-width: 62ch;
    line-height: 1.7;
  }
  body.motivation-premium :is(#main,#editorial-sheet) .drive-next {
    margin-top: 1.4rem;
    padding-top: 1.35rem;
    border-block-start: 2px solid #b18e72;
  }
}
/* Scripture, interpretation and navigation have different reading jobs. */
@media screen {
  body.study-page--verse-lens #study-main .verse-lens-pager--top {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 0;
    margin: .4rem 0 1rem;
    padding: .15rem;
    border: 1px solid var(--journey-study-line,#494958);
    border-radius: .25rem;
    background: #171c2a;
  }
  body.study-page--verse-lens #study-main .verse-lens-pager--top:has(> .reader-navigator__trigger--verse) {
    grid-template-columns: repeat(3,minmax(0,1fr)) minmax(3.3rem,.83fr);
  }
  body.study-page--verse-lens #study-main .verse-lens-pager--top > :is(a,span,button) {
    display: grid;
    grid-area: auto;
    align-content: center;
    justify-content: center;
    gap: .12rem;
    min-width: 0;
    min-height: 46px;
    padding: .32rem .25rem;
    border: 0;
    border-radius: 0;
    background: transparent;
    text-align: center;
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: 1.2;
  }
  body.study-page--verse-lens #study-main .verse-lens-pager--top > :not(:first-child) {
    border-inline-start: 1px solid var(--journey-study-line,#494958);
  }
  body.study-page--verse-lens #study-main .verse-lens-pager--top :is(.verse-lens-pager__section,.reader-navigator__trigger--verse) {
    background: #262438;
  }
  body.study-page--verse-lens #study-main .verse-lens-pager--top :is(a,span[aria-disabled]) > span {
    padding: 0;
    font-size: clamp(.63rem,1.5vw,.74rem);
    font-weight: 650;
    line-height: 1.18;
    text-transform: none;
  }
  body.study-page--verse-lens #study-main .verse-lens-pager--top strong,
  body.study-page--verse-lens #study-main .verse-lens-pager--top > button {
    font-size: clamp(.74rem,1.7vw,.9rem);
    line-height: 1.2;
  }
  @media (max-width: 21rem) {
    body.study-page--verse-lens #study-main .verse-lens-pager--top:has(> .reader-navigator__trigger--verse) {
      grid-template-columns: repeat(2,minmax(0,1fr));
    }
  }
  body.study-page--passage #study-main .passage-text__identity {
    flex-direction: row;
    align-items: baseline;
    gap: .35rem .85rem;
    margin-block-end: .55rem;
    padding-block: .4rem;
  }
  body.study-page--passage #study-main .passage-text--lead,
  body.study-page--verse-lens #study-main .verse-lens__scripture {
    margin-inline: 0;
  }
  body.study-page--passage #study-main .scripture-verses,
  body.study-page--verse-lens #study-main .verse-lens__scripture {
    padding: clamp(.85rem,3vw,1.8rem) clamp(.85rem,3vw,1.65rem);
    border: 0;
    border-block-start: 2px solid var(--journey-study-accent,#c7b9f5);
    border-radius: .1rem;
    background: #1b1e2c;
    box-shadow: none;
  }
  body.study-page--passage #study-main .scripture-paragraph { margin: 0; }
  body.study-page--passage #study-main .scripture-paragraph + .scripture-paragraph { margin-block-start: .6rem; }
  body.study-page--passage #study-main .scripture-verse__link {
    position: relative;
    display: block;
    min-height: 44px;
    margin: 0;
    padding: .35rem .1rem .44rem 1.15rem;
    border: 1px solid transparent;
  }
  body.study-page--passage #study-main .scripture-verse__link:is(:hover,:focus-visible) {
    border-color: var(--journey-study-accent,#c7b9f5);
  }
  body.study-page--passage #study-main .scripture-verse__number {
    position: absolute;
    inset-block-start: .66rem;
    inset-inline-start: 0;
    padding: 0;
    font-size: .68rem;
    color: var(--journey-study-accent,#c7b9f5);
  }
  body.study-page--passage #study-main .scripture-verse__text {
    display: inline;
    padding: 0;
    font: 400 clamp(1.15rem,2vw,1.42rem)/1.62 var(--journey-study-serif,Georgia,serif);
  }
  body.study-page--passage #study-main .scripture-verse__cue {
    display: inline-block;
    margin: 0 0 0 .45rem;
    padding: 0;
    vertical-align: .08em;
    color: var(--journey-study-accent,#c7b9f5);
    font-size: .67rem;
    font-weight: 650;
    white-space: nowrap;
  }
  body.study-page--verse-lens #study-main .verse-lens__scripture .selected-verse-label {
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--journey-study-accent,#c7b9f5);
    font-size: .78rem;
    font-weight: 650;
    letter-spacing: .03em;
    text-transform: none;
  }
  body.study-page--verse-lens #study-main .verse-lens__scripture p {
    display: block;
    margin: .55rem 0 0;
    max-width: 45ch;
    font: 400 clamp(1.35rem,3.1vw,2rem)/1.55 var(--journey-study-serif,Georgia,serif);
  }
  body.study-page--verse-lens #study-main .verse-lens__scripture sup {
    position: static;
    margin-inline-end: .32rem;
    padding: 0;
    vertical-align: super;
    color: var(--journey-study-accent,#c7b9f5);
  }
  body.study-page--verse-lens #study-main .verse-lens__quick {
    margin: 1.25rem 0 1.5rem;
    padding: .9rem .2rem .15rem;
    border: 0;
    border-block-start: 1px solid var(--journey-study-line,#494958);
    border-radius: 0;
    background: none;
  }
  body.study-page--verse-lens #study-main .verse-lens__quick h2 {
    margin: 0 0 .35rem;
    color: var(--journey-study-accent,#c7b9f5);
    font: 650 .86rem/1.35 var(--stud-theme-font-ui,system-ui,sans-serif);
  }
  body.study-page--verse-lens #study-main .verse-lens__quick p {
    max-width: 47ch;
    margin: 0;
    font: 400 clamp(1.25rem,2.45vw,1.65rem)/1.47 var(--journey-study-serif,Georgia,serif);
  }
  body.study-page--verse-lens #study-main .verse-context-card {
    padding: .85rem 1rem 1rem;
    border: 0;
    border-inline-start: 3px solid var(--journey-study-accent,#c7b9f5);
    border-radius: 0;
  }
  body.study-page--verse-lens #study-main .verse-context-card h2 { max-width: 35ch; }
  body.study-page--verse-lens #study-main .verse-context-card .study-button {
    min-height: 44px;
    max-width: 100%;
    line-height: 1.3;
    white-space: normal;
  }
  body.study-page--verse-lens #study-main .verse-lens__orientation > article,
  body.study-page--verse-lens #study-main .verse-phrase-grid > .verse-phrase-card {
    padding: .8rem 0 .9rem;
    border: 0;
    border-block-start: 1px solid var(--journey-study-line,#494958);
    border-radius: 0;
    background: transparent;
  }
  body.study-page--passage #study-main .teaching > h3 {
    margin-block: 1.55rem .65rem;
    padding-block-start: .55rem;
    border-block-start: 1px solid var(--journey-study-line,#494958);
  }
  body.study-page--passage #study-main .teaching > h3:first-child { border: 0; padding-top: 0; }
  body.study-page--passage #study-main .teaching > p { max-width: 64ch; }
  body.study-page--passage #study-main .teaching__life {
    border-block-start: 0;
    border-inline-start: 3px solid var(--journey-study-accent,#c7b9f5);
  }
  body.study-page--library #study-main #book-list .book-library-card {
    min-height: 0;
    border: 0;
    border-block-start: 1px solid var(--journey-study-line,#494958);
    border-radius: 0;
    background: transparent;
  }
  body.study-page--library #study-main #book-list .book-library-card__copy { padding: .58rem 0; }
  body.study-page--library #study-main #book-list .book-library-card__heading .study-button {
    max-width: 55%;
    white-space: normal;
  }
  body.study-page--book #study-main .unit-list .unit-link {
    padding-block: .7rem;
    border: 0;
    border-block-start: 1px solid var(--journey-study-line,#494958);
    border-radius: 0;
  }
  body.study-page.living-page #living-main .living-article .living-section {
    padding-block-start: 1.4rem;
    border-block-start: 1px solid var(--journey-study-line,#494958);
  }
  body.study-page.living-page #living-main .living-article .living-section > h2 {
    margin-block: .2rem .65rem;
  }
  body.study-page.living-page #living-main .living-article .living-section > p {
    max-width: 65ch;
  }
  body.study-page.bs-page #bs-main .bs-telling .bs-scene + .bs-scene {
    margin-block-start: 1.25rem;
    padding-block-start: .85rem;
    border-block-start: 1px solid var(--bs-rule);
  }
  body.study-page.bs-page #bs-main .bs-telling .bs-scene > p { max-width: 64ch; }
}

@media print {
  figure[data-reading-example], blockquote[data-reading-example] { margin: .7em 0; break-inside: avoid; }
  figure[data-reading-example] figcaption, table[data-reading-example] caption { font-weight: bold; text-align: start; }
  figure[data-reading-example] ol { display: flex; flex-wrap: wrap; gap: .7em; padding: 0; list-style: none; }
  figure[data-reading-example] li :is(time,abbr) { display: block; }
  [data-reading-example] .reading-median, [data-reading-example] .reading-run-day { font-weight: bold; text-decoration: underline; }
  [data-reading-example] .reading-shortfall small { display: block; }
}



/* The illustration sits at the choice the reader is considering. */
@media screen {
  .personalities-page #main-content #weekend {
    display: grid; grid-template-columns: minmax(0, 1fr); gap: .7rem;
    padding: clamp(1rem, 3vw, 1.7rem); background: #242127; color: #fcf5ec;
    border: 1px solid #69565c; border-radius: .55rem;
  }
  .personalities-page #main-content #weekend > * { margin: 0; min-width: 0; }
  .personalities-page #main-content #weekend .weekend-scene { overflow: hidden; border-radius: .3rem; }
  .weekend-scene img { display: block; width: 100%; height: auto; aspect-ratio: 2.3; object-fit: cover; }
  .personalities-page #main-content #weekend .scenario-copy { color: #fff6ec; max-width: 61ch; font-size: 1.03rem; line-height: 1.57; }
  .personalities-page #main-content #weekend .weekend-limit { color: #dccbd2; font-size: .91rem; }
  .personalities-page #main-content #weekend .text-action { width: fit-content; align-content: center; min-height: 44px; color: #ffd9bf; }
  .personalities-page #comparison-situation { --situation-picture: url("/assets/stud-token-creative/thumbs/cards-scenic-rain-veranda.webp"); }
  .personalities-page main:has(#compare-situation option[value="work"]:checked) #comparison-situation { --situation-picture: url("/assets/stud-token-creative/thumbs/cards-popular-coworker-help.webp"); }
  .personalities-page main:has(#compare-situation option[value="conversation"]:checked) #comparison-situation { --situation-picture: url("/assets/portfolio-media/learn-friendship-400.jpg"); }
  .personalities-page #comparison #comparison-situation > h2 { display: grid; align-content: end; min-height: 8.7rem; padding: 1rem; margin: 0; grid-column: 1/-1; color: #fff8ef; background: linear-gradient(0deg, #14100feb, #17100d05 95%), var(--situation-picture) center 48% / cover; border-radius: .35rem; }
  .personalities-page #comparison-situation > [data-side] { border-block-start: 1px solid #76646d; padding-block: .8rem; }
  .biohack-page #main .teaching-flow--illustrated ul { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .62rem; padding: 0; margin-block: .8rem; }
  .biohack-page #main .teaching-flow--illustrated ul > li { display: block; list-style: none; min-width: 0; padding: 0 0 .7rem; overflow: hidden; border: 1px solid #55674f; background: #14251e; border-radius: .4rem; }
  .biohack-page #main .teaching-flow--illustrated ul > li + li { background: #202331; border-color: #696984; }
  .biohack-page #main .teaching-flow--illustrated li::before { display: none; }
  .biohack-page #main .teaching-flow--illustrated li > img { display: block; width: 100%; height: auto; aspect-ratio: 1.45; object-fit: cover; margin-bottom: .55rem; }
  .biohack-page #main .teaching-flow--illustrated li + li > img { object-position: 50% 25%; }
  .biohack-page #main .teaching-flow--illustrated li > :is(strong,p) { display: block; padding-inline: .65rem; margin: .3rem 0 0; color: #f5f2e6; overflow-wrap: break-word; }
  .biohack-page #main .teaching-flow--illustrated li > p { color: #dadeda; font-size: .94rem; line-height: 1.5; }
  .biohack-page .book-reader .teaching-visual { margin-block: 1.2rem 1.45rem; }
  .biohack-page .book-reader .teaching-visual :is(caption,figcaption:first-child) { text-align: start; font-weight: 700; }
  .biohack-page .book-reader .teaching-table tbody th { border-inline-start: 3px solid #adbf94; }
  .plan-example-page #plan-example-main .plan-example-item > div:first-child {
    display: grid; grid-template-columns: minmax(0, .55fr) minmax(0, 1fr);
    align-items: center; gap: .4rem .85rem; padding: 0; background: transparent;
  }
  .plan-example-page #plan-example-main .plan-example-item > div:first-child > :is(.plan-example-item__board,h2,a) { grid-column: 1/-1; max-width: none; margin: 0; }
  .plan-example-page #plan-example-main .plan-example-item .notebook-route { margin: 0; min-width: 0; }
  .plan-example-page .notebook-route img { display: block; width: 100%; height: auto; aspect-ratio: .87; object-fit: cover; object-position: 54% 44%; border-radius: .25rem; }
  .plan-example-page #plan-example-main .plan-example-item blockquote { padding: .1rem 0; margin: 0; border: 0; line-height: 1.38; font: 500 clamp(1.03rem,2vw,1.5rem)/1.38 var(--notebook-serif,Georgia,serif); }
  .plan-example-page #plan-example-main .plan-example-item blockquote span { display: block; color: var(--notebook-muted); font: 650 .8rem/1.3 system-ui,sans-serif; margin-bottom: .3rem; }
  .plan-example-page #plan-example-main .plan-example-item__actions::before { content: none; display: none; }
  .research-premium-page #main #reader .compound-article #q-notice {
    background: #17232c; color: #f7f2e9; padding: clamp(.95rem,3vw,1.65rem);
    border: 1px solid #465d69; border-block-start: 3px solid #9fc4d0; border-radius: .35rem;
  }
  .research-premium-page #reader #q-notice > .scan-topic { color: #c4e6ef; }
  body.research-premium-page #main #reader:has(.compound-article :target, #reader-reference:target, #reader-reference :target) > #reader-title {
    position: sticky; top: max(0px,calc(var(--research-scroll-offset, 8rem) - 1rem)); z-index: 3;
    margin: 0; padding: .31rem .65rem; background: #15262f; color: #deedf2;
    border-block-end: 1px solid #54717f; font: 650 .95rem/1.3 system-ui,sans-serif !important;
    letter-spacing: normal; overflow-wrap: anywhere;
  }
  body.research-premium-page #main #reader :is(.compound-article :target,#reader-reference:target,#reader-reference :target) {
    scroll-margin-block-start: calc(var(--research-scroll-offset,8rem) + 2rem);
  }
  .research-premium-page #main #reader #q-notice .scan-takeaway { color: #fff5e5; font: 600 clamp(1.4rem,3.8vw,2.12rem)/1.15 Georgia,serif; letter-spacing: -.023em; text-wrap: pretty; }
  .research-premium-page #reader #q-notice .scan-explanation { max-width: 59ch; color: #e1e6e6; line-height: 1.58; }
  .research-premium-page #main #reader #q-notice .scan-entry + .scan-entry { margin-block-start: .95rem; padding-block-start: .95rem; border-top: 1px solid #52616a; }
  .trust-v3-wallet-page #wallet-mint-check .mint-reference { display: grid; gap: .5rem; max-width: 42rem; padding: 1rem; margin: .7rem 0; border-inline-start: 3px solid #92dac1; background: #122b27; }
  .trust-v3-wallet-page #wallet-mint-check .mint-reference span { font-weight: 700; color: #b9ecdb; }
  .trust-v3-wallet-page #wallet-mint-check .mint-reference code { display: block; color: #fff9e9; overflow-wrap: anywhere; font: 500 clamp(.95rem,2.2vw,1.12rem)/1.55 ui-monospace,SFMono-Regular,Consolas,monospace; user-select: all; }
  .cards-redesign .cards-holiday-finished > button[data-holiday-preview]::after { display: none; content: none; }
  #about-bread .static-list a[href*="/skill/guides/bake"]::before,
  #checked-example > ol.static-list::before {
    content: ""; display: block; border-radius: .3rem; width: min(100%,36rem); height: clamp(7.2rem,22vw,12rem); margin: .6rem 0 .85rem;
    background: #252923 url("/assets/first-minute/proofed-loaf-v1.webp") center 52% / cover;
  }
  #checked-example > ol.static-list::before { background-image: url("/images/activity-tiles/optimized/play-remaining-dots-and-boxes-640.avif"); }
}
@media screen and (min-width: 760px) {
  .personalities-page #main-content #weekend { grid-template-columns: minmax(11rem,.85fr) minmax(0,1.55fr); column-gap: 1.4rem; }
  .personalities-page #main-content #weekend > h2 { grid-column: 1/-1; }
  .personalities-page #main-content #weekend > figure { grid-column: 1; grid-row: 2 / span 3; align-self: stretch; }
  .personalities-page #main-content #weekend > figure img { height: 100%; min-height: 10rem; }
  .personalities-page #main-content #weekend > :is(p,a) { grid-column: 2; }
}
@media screen and (max-width: 680px) {
  .cards-holiday-experience[data-holiday-experience="all"] .cards-holiday-collection:not(.cards-holiday-seasonal) [data-holiday-gallery] {
    display: grid; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: min(80%,21rem);
    gap: .75rem; overflow-x: auto; overscroll-behavior-inline: contain; scroll-snap-type: x proximity;
    padding: .2rem .15rem .65rem; scroll-padding-inline: .15rem; scrollbar-width: thin;
  }
  .cards-holiday-experience[data-holiday-experience="all"] .cards-holiday-collection:not(.cards-holiday-seasonal) [data-holiday-gallery] > * { scroll-snap-align: start; min-width: 0; }
}
@media screen and (max-width: 359px) {
  .biohack-page #main .teaching-flow--illustrated ul { grid-template-columns: minmax(0,1fr); }
}
