/* The bento theme, site wide (21 Nov, Joshua: "bento theme should be site wide"), after Robert's
   "Home with Panel Menu (concept)(5)": paper cells divided by ink hairlines, photos set in frames with a soft shadow
   (tinted monochrome at rest, colour on hover) and small numbered labels. Loaded last on every page. The home panel
   menu itself (.bento, .bn) lives in styles.css. */
:root { --hl: rgba(27, 20, 84, .78); --cell: clamp(28px, 3.4vw, 56px); }


/* ---------- Page heroes: unchanged (21 Nov, Joshua: "the top header images for the inner pages should be like before,
   with the bento design below it"). The full-width photo with the words over it stays; the label under it is not shown. */
.tx-tag { display: none; }

/* ---------- Bands under the hero: two cells, joined to the frame above ---------- */
@media (min-width: 901px) {
  .tx-band { margin: 0 var(--edge); padding: 0; border: 1px solid var(--hl); border-top: 0; grid-template-columns: 5fr 7fr; column-gap: 0; row-gap: 0;
    background: linear-gradient(var(--hl), var(--hl)) calc(100% * 5 / 12) 0 / 1px 100% no-repeat, var(--paper); }
  .tx-band > .display, .tx-band .display { grid-column: 1; grid-row: 1 / span 4; padding: var(--cell); }
  .tx-band > :not(.display) { grid-column: 2; margin: 0; padding: 0 var(--cell); }
  .tx-band > :nth-child(2) { padding-top: var(--cell); }
  .tx-band > :last-child { padding-bottom: var(--cell); }
  .tx-band.tx-first + .tx-band { padding-top: 0; }
  main > .tx-band:last-child, main > .tx-band:not([hidden]):not(:has(~ :not([hidden]))) { padding-bottom: 0; margin-bottom: clamp(64px, 8vw, 112px); }
  .tx-band .tx-more { padding-top: 18px; }
}
@media (max-width: 900px) {
  .tx-band, .tx-band.tx-first + .tx-band { margin: 0 var(--gutR) 0 var(--gut); padding: 30px 16px 28px; border: 1px solid var(--hl); border-top: 0; }
  main > .tx-band:last-child, main > .tx-band:not([hidden]):not(:has(~ :not([hidden]))) { padding-bottom: 28px; margin-bottom: 64px; }
}

/* ---------- Patient testimonials: three cells in one frame ---------- */
.stories { padding: clamp(36px, 4.5vw, 64px) var(--edge); }
.stories-row { gap: 1px; padding: 1px; background: var(--hl); }
.story { --h: clamp(96px, 8.4vw, 128px); height: auto; min-height: calc(var(--h) + 48px); padding: 24px clamp(16px, 1.8vw, 28px); background: var(--paper); align-items: center; }
.story-ph { align-self: center; height: var(--h); box-shadow: 0 16px 26px -16px rgba(20, 18, 30, .5); }
.story figcaption { justify-self: start; margin: 12px 0 0 clamp(18px, 2vw, 34px); padding: 5px 9px; background: #fff; box-shadow: 0 0 0 1px rgba(27, 20, 84, .16); font-family: var(--sans); font-size: 10px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--ink); line-height: 1.1; }
.story figcaption::after { display: none; }
@media (max-width: 900px) { .stories { padding-left: var(--gut); padding-right: var(--gutR); } }

/* ---------- The Bulletin: a framed header, then article cells ---------- */
.page-top { margin: 22px var(--edge) 0; padding: var(--cell); border: 1px solid var(--hl); border-bottom: 0; }
.lib-grid { margin: 0 var(--edge); padding: 1px; gap: 1px; }
.lib-grid .lf-card, .tx-related .lf-card { padding: clamp(18px, 2vw, 28px); background: var(--paper); box-shadow: 0 0 0 1px var(--hl); }
.lf-card-img { position: relative; display: block; overflow: hidden; border-radius: 0; box-shadow: 0 18px 28px -18px rgba(20, 18, 30, .5); }
.lf-card-img img { border-radius: 0; filter: grayscale(1) contrast(1.04) brightness(.97); transition: filter .5s var(--ease), transform .8s var(--ease); }
.lf-card-img::after { content: ""; position: absolute; inset: 0; background: #b08a5a; mix-blend-mode: color; opacity: .42; transition: opacity .5s var(--ease); pointer-events: none; }
.lf-card:hover .lf-card-img img, .lf-card:focus-visible .lf-card-img img { filter: none; }
.lf-card:hover .lf-card-img::after, .lf-card:focus-visible .lf-card-img::after { opacity: 0; }
.lf-card-c { justify-self: start; margin-top: 4px; padding: 5px 9px; background: #fff; box-shadow: 0 0 0 1px rgba(27, 20, 84, .16); font-size: 9.5px; font-weight: 600; letter-spacing: .16em; color: var(--ink); line-height: 1.1; }
main > .lib-grid:last-child { padding-bottom: 1px; margin-bottom: clamp(64px, 8vw, 112px); }
@media (max-width: 900px) {
  .page-top { margin: 14px var(--gutR) 0 var(--gut); padding: 26px 16px; }
  .lib-grid { margin: 0 var(--gutR) 0 var(--gut); padding: 1px; gap: 1px; }
}

/* ---------- Article pages ---------- */
.art-hero { margin: 22px var(--edge) 0; padding: clamp(20px, 2.6vw, 40px); border: 1px solid var(--hl); border-radius: 0; aspect-ratio: auto; overflow: visible; background: var(--paper); display: grid; place-items: center; }
.art-hero img { width: min(100%, 980px); height: auto; aspect-ratio: 21 / 8; box-shadow: 0 26px 40px -26px rgba(20, 18, 30, .6); filter: grayscale(1) contrast(1.04) sepia(.18); transition: filter .5s var(--ease); }
.art-hero:hover img { filter: none; }
.art-wrap { margin: 0 var(--edge); padding: 0; border: 1px solid var(--hl); border-top: 0; column-gap: 0; }
.art-main { grid-column: 1 / 9; padding: var(--cell); }
.art-side { grid-column: 9 / 13; padding: var(--cell) clamp(18px, 2vw, 30px); border-left: 1px solid var(--hl); }
.art-card { background: none; border-radius: 0; padding: 0; }
.tx-related { margin: 0 var(--edge); padding: var(--cell); border: 1px solid var(--hl); border-top: 0; }
main > .tx-related:last-child { padding-bottom: var(--cell); margin-bottom: clamp(64px, 8vw, 112px); }
.tx-related .ix-card img { border-radius: 0; box-shadow: 0 16px 26px -16px rgba(20, 18, 30, .5); filter: grayscale(1) contrast(1.04) sepia(.18); transition: filter .5s var(--ease); }
.tx-related .ix-card:hover img { filter: none; opacity: 1; }
@media (max-width: 900px) {
  .art-hero { margin: 14px var(--gutR) 0 var(--gut); padding: 14px; }
  .art-hero img { aspect-ratio: 16 / 10; }
  .art-wrap, .tx-related { margin: 0 var(--gutR) 0 var(--gut); }
  .art-main { grid-column: 1; padding: 26px 16px; }
  .art-side { grid-column: 1; padding: 26px 16px; border-left: 0; border-top: 1px solid var(--hl); }
  .tx-related { padding: 26px 16px; }
}

/* ---------- The shop ---------- */
.store.spot { margin: 22px var(--edge) clamp(64px, 8vw, 112px); padding-bottom: clamp(32px, 4vw, 56px); background: var(--paper); border: 1px solid var(--hl); border-radius: 0; }
.store.spot .spot-copy { padding: var(--cell); }
.store.spot .spot-media { min-height: 0; display: grid; place-items: center; padding: var(--cell); border-left: 1px solid var(--hl); }
.store.spot .spot-media img { position: static; width: min(100%, 360px); height: auto; aspect-ratio: 4 / 5; box-shadow: 0 26px 40px -26px rgba(20, 18, 30, .6); filter: grayscale(1) contrast(1.04) sepia(.2); transition: filter .5s var(--ease); }
.store.spot .spot-media:hover img { filter: none; }
.store.spot .spot-why { margin: 0; padding: 0; border-top: 1px solid var(--hl); border-bottom: 1px solid var(--hl); }
.store.spot .track { scroll-padding: 0 var(--cell); padding-left: var(--cell); padding-right: var(--cell); }
.pcard-media { box-shadow: 0 16px 26px -18px rgba(20, 18, 30, .45); }
@media (min-width: 901px) {
  .store.spot .spot-why { display: grid; grid-template-columns: 5fr 7fr; column-gap: 0; background: linear-gradient(var(--hl), var(--hl)) calc(100% * 5 / 12) 0 / 1px 100% no-repeat; }
  .store.spot .spot-why > .display { grid-column: 1; padding: var(--cell); }
  .store.spot .spot-why > .tx-list { grid-column: 2; padding: var(--cell); }
}
@media (max-width: 900px) {
  .store.spot { margin: 14px var(--gutR) 64px var(--gut); }
  .store.spot .spot-copy { padding: 26px 16px; }
  .store.spot .spot-media { border-left: 0; border-bottom: 1px solid var(--hl); padding: 16px; height: auto; }
  .store.spot .spot-media img { width: min(70%, 260px); }
  .store.spot .spot-why { padding: 26px 16px; }
  .store.spot .track { padding-left: 16px; padding-right: 16px; scroll-padding: 0 16px; }
}

/* ================= Full-bleed pass (21 Nov, Joshua: "it doesn't span the whole page or fit correctly") =================
   Every bento frame now runs from one edge of the page to the other: no side margins and no side rules, only the
   hairlines between cells and above and below each frame. The home menu is exactly one screen under the bar. */
/* home panel menu */
.pm-wrap { padding: 0; }
.bento { padding: 1px 0; }
@media (min-width: 900px) {
  .pm-wrap { padding: 0; }
  .bn-ph { max-width: 84%; }
  .bn-t { font-size: clamp(15px, 1.15vw, 21px); }
  .bn-tag i { font-size: clamp(9px, .62vw, 11px); } .bn-tag b, .bn-tag-s { font-size: clamp(10px, .68vw, 12px); }
}
@media (min-width: 900px) and (min-aspect-ratio: 6/5) {
  .bento { height: calc(100vh - var(--nav-h)); height: calc(100svh - var(--nav-h)); min-height: 600px; max-height: none; }
}
@media (min-width: 900px) and (min-aspect-ratio: 6/5) and (max-height: 820px) {
  .pm-wrap { padding-top: 0; padding-bottom: 0; }
  .bento { height: calc(100svh - var(--nav-h)); }
}
/* bands */
@media (min-width: 901px) { .tx-band { margin-left: 0; margin-right: 0; border-left: 0; border-right: 0; } }
@media (max-width: 900px) { .tx-band, .tx-band.tx-first + .tx-band { margin-left: 0; margin-right: 0; border-left: 0; border-right: 0; padding-left: var(--gut); padding-right: var(--gutR); } }
/* testimonials */
.stories { padding-left: 0; padding-right: 0; }
.stories-row { padding: 1px 0; }
/* the Bulletin */
.page-top { margin: 0; border-width: 1px 0 0; padding-left: max(var(--cell), var(--gut)); padding-right: max(var(--cell), var(--gutR)); }
.lib-grid { margin: 0; padding: 1px 0; }
@media (min-width: 1700px) { .lib-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 900px) { .page-top { margin: 0; padding: 26px var(--gutR) 26px var(--gut); } .lib-grid { margin: 0; padding: 1px 0; } }
/* articles */
.art-hero { margin: 0; border-width: 1px 0; }
.art-wrap { margin: 0; border-width: 0 0 1px; }
.tx-related { margin: 0; border-width: 0 0 1px; padding-left: max(var(--cell), var(--gut)); padding-right: max(var(--cell), var(--gutR)); }
@media (max-width: 900px) { .art-hero, .art-wrap, .tx-related { margin: 0; } }
/* the shop */
.store.spot { margin: 0 0 clamp(64px, 8vw, 112px); border-width: 1px 0; }
@media (max-width: 900px) { .store.spot { margin: 0 0 64px; } }

/* home menu, one-screen layout: each photo is sized from its cell, and its label lines up with the photo's left edge
   (as in Robert's concept) however wide the cell is */
@media (min-width: 900px) and (min-aspect-ratio: 6/5) {
  .bn { container-type: size; --oh: 66px; --ar: 2.6; }
  .bn-tall { --ar: .625; }
  .bn-dr { --ar: .8; --oh: 84px; }
  .bn-fig, .bn-tag { --ph: calc(100cqh - var(--oh)); --pw: min(calc(var(--ph) * var(--ar)), 84cqw); }
  .bn-fig { flex: none; height: var(--ph); }
  .bn .bn-ph { width: var(--pw); height: var(--ph); max-width: none; max-height: none; aspect-ratio: auto; flex: none; }
  .bn-tag { align-self: flex-start; margin-left: calc(50cqw - var(--pw) / 2 + var(--pw) * .07); }
  .bn-dr .bn-tag { align-self: center; margin-left: 0; }
}
@media (min-width: 900px) and (min-aspect-ratio: 6/5) and (max-height: 820px) {
  .bn { --oh: 52px; }
  .bn-dr { --oh: 76px; }
}


/* ================= Round 12 (21 Nov evening): the rest of the call with Robert ================= */
/* one hairline directly under each inner page's top image */
@media (min-width: 901px) { .tx-hero + .tx-band, .tx-hero + [hidden] + .tx-band { border-top: 1px solid var(--hl); } }
@media (max-width: 900px) { .tx-hero + .tx-band, .tx-hero + [hidden] + .tx-band { border-top: 1px solid var(--hl); } }
/* type in the page heroes: one colour, and the line under the title in the title's own typeface and closer to its size */
.tx-copy .lede, .tx-copy .wl-p { color: var(--ink); }
.tx-by { margin-top: -8px; font-family: var(--serif); font-weight: 400; font-size: clamp(1.15rem, 1.45vw, 1.4rem); line-height: 1.25; letter-spacing: -.005em; color: var(--ink); }
@media (min-width: 901px) { .tx-by-lg { white-space: nowrap; font-size: clamp(1.15rem, 1.6vw, 1.5rem); } }
/* the basket shows only once something is in it */
.bag:has(.bag-count[hidden]) { display: none; }
/* home: section headings share one typeface and size */
.sec-h { padding: 0 max(var(--cell), var(--gut)) clamp(20px, 2.4vw, 34px); }
.locs { position: relative; z-index: 2; margin: 0; padding: 0 0 clamp(44px, 5.5vw, 88px); background: var(--paper); }
.locs-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; padding: 1px 0; background: var(--hl); }
.loc { background: var(--paper); padding: var(--cell) max(var(--cell), var(--gut)); display: grid; gap: 10px; align-content: start; justify-items: start; }
.loc h3 { font-family: var(--serif); font-weight: 400; font-size: var(--fs-h3); line-height: 1.2; color: var(--ink); }
.loc p { font-size: 17px; line-height: 1.5; color: var(--ink); }
.stories { padding-bottom: clamp(36px, 4.5vw, 64px); }
@media (max-width: 900px) { .locs-row { grid-template-columns: minmax(0, 1fr); } .loc { padding: 26px var(--gutR) 26px var(--gut); } }

/* the bento menu, re-proportioned (Robert: the centre panel more square, the boxes more box-like and less panoramic):
   six columns by four rows. Dr. Forbes holds the four cells at the centre; around her are squares and upright cells. */
@media (min-width: 900px) {
  .bento { grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-rows: minmax(210px, auto); }
  .a1 { grid-area: 1 / 1 / 3 / 3; }  .a2 { grid-area: 1 / 3 / 2 / 4; }  .a3 { grid-area: 1 / 4 / 2 / 5; }
  .a5 { grid-area: 1 / 5 / 3 / 6; }  .a6 { grid-area: 1 / 6 / 3 / 7; }  .a4 { grid-area: 2 / 3 / 4 / 5; }
  .a7 { grid-area: 3 / 1 / 5 / 2; }  .a8 { grid-area: 3 / 2 / 5 / 3; }  .a9 { grid-area: 4 / 3 / 5 / 4; }
  .a10 { grid-area: 4 / 4 / 5 / 5; } .a11 { grid-area: 3 / 5 / 5 / 6; } .a12 { grid-area: 3 / 6 / 5 / 7; }
  .bn, .bn-tall, .bn-dr { container-type: normal; min-height: 0; }
  .bn-t { white-space: normal; max-width: none; text-wrap: balance; }
  .bn-fig { flex: 1 1 0; min-height: 0; height: auto; width: 100%; }
  .bn .bn-ph { width: 100%; height: 100%; max-width: none; max-height: none; aspect-ratio: auto; flex: 1 1 auto; }
  .bn-tag { align-self: flex-start; margin-left: 8px; }
  .bn-dr .bn-ph { flex: none; width: auto; height: 100%; aspect-ratio: 4 / 5; }
  .bn-dr .bn-tag { align-self: center; margin-left: 0; }
}
@media (min-width: 900px) and (min-aspect-ratio: 6/5) {
  .bento { grid-template-rows: repeat(4, minmax(0, 1fr)); grid-auto-rows: auto; }
}
@media (min-width: 900px) {
  .bn-dr .bn-fig { gap: clamp(10px, 1vw, 18px); }
  .bn-side { font-size: clamp(14px, 1.15vw, 19px); min-width: 0; }
}

/* The space above the footer: the footer is revealed from beneath the page, so a margin under the last frame would show
   the footer through it. The space is padding inside the page instead (inner pages only; the home page ends with Locations). */
main > .tx-band:last-child, main > .tx-band:not([hidden]):not(:has(~ :not([hidden]))), main > .lib-grid:last-child, main > .tx-related:last-child, main > .store.spot:last-child, .store.spot { margin-bottom: 0; }
body:not(:has(#stage)) main { padding-bottom: clamp(64px, 8vw, 112px); background: var(--paper); }

/* Home page (21 Nov, Joshua: "make it so it sticks for a second as you scroll into every section"): each section
   catches the scroll as you arrive at it. Scroll snapping only; nothing about the layout changes. */
/* With a mouse or trackpad the hold is done in stick.js (a short pause at each section start). On touch screens the
   sections catch the scroll when you stop near one. */
@media (hover: none) { html:has(#stage) { scroll-snap-type: y proximity; scroll-padding-top: var(--nav-h); } }
/* The snap points are small markers in the normal flow between the sections (several home sections are pinned layers,
   and a pinned element gives a wrong snap position). */
.snap-m { display: block; height: 0; margin: 0; padding: 0; border: 0; scroll-snap-align: start; pointer-events: none; }
.snap-m.snap-end { scroll-snap-align: end; }
@media (prefers-reduced-motion: reduce) { html:has(#stage) { scroll-snap-type: none; } }

/* ================= 22 Nov evening (Joshua): "remove the white background for the text and figure out how to make sure
   its still seen" =================
   No ground behind the film's words. White type sits straight on the film and is held by a soft shadow that hugs the
   letters, with a faint neutral shade in the corner behind it. The h1 and the supporting line go up one weight (400)
   so their strokes hold against a bright, busy picture. Measured on the live page: see the note under the rules. */
.hero .hero-picture::after { background: radial-gradient(ellipse 64% 60% at 20% 82%, rgba(6, 8, 18, .40) 0%, rgba(6, 8, 18, .27) 55%, rgba(6, 8, 18, 0) 100%); }
.hero-copy { color: var(--white); text-shadow: 0 0 1px rgba(6, 8, 20, .7), 0 1px 3px rgba(6, 8, 20, .6), 0 2px 12px rgba(6, 8, 20, .55), 0 0 34px rgba(6, 8, 20, .5), 0 0 70px rgba(6, 8, 20, .35); }
.hero-copy h1, .hero-copy .hero-sub { color: var(--white); font-weight: 400; }
@media (max-width: 960px) {
  .hero .hero-picture::after { background: linear-gradient(0deg, rgba(6, 8, 18, .57) 0%, rgba(6, 8, 18, .42) 55%, rgba(6, 8, 18, 0) 86%); }
}
/* Measured 22 Nov on the page itself, over 20 moments of the v22c film, against the brightest tenth of what sits behind and
   beside each letter: in every scene the h1 holds 7:1 or better and the supporting line 5:1 or better, at 1280 and at 390
   wide. In the three split-second moments when the whole frame is light (the loop flash, the door, the lamp) the h1 holds
   3.5:1 and the supporting line 2.7:1 (4.7 and 3.7 on a phone). Re-measure when the film changes. */

/* ================= 22 Nov, late (Joshua): "maybe just a regular section layout might work best ... where each section
   is on top of the other" =================
   A regular layout, on every page. Each section sits above the next and the page scrolls normally. Nothing is pinned,
   and nothing slides over another section or is revealed from beneath it. This replaces the moving layers set up in styles.css section 5. */
.stage .hero, main > .exp-hero, .site-foot.ft { position: relative; top: auto; bottom: auto; }
.stage .hero .hero-picture, .hero .hero-picture { animation: none; transform: none; opacity: 1; }
/* later the same night (Joshua: "it still doesnt stick though"): the layout stays regular and the page holds again at each
   section start. stick.js is loaded once more (its third version, which never writes to a moving page), and touch screens
   keep the gentle snap set earlier in this file. */

/* ================= 22 Nov, last change of the night (Joshua: "remove it entorely or find something thats already built for
   this problem") =================
   The hold script is gone for good (stick.js is not loaded). The rest at a section is now done by the browser itself, with
   ordinary sticky positioning and no script: the panel menu and What to Expect each sit in a box a little taller than they
   are, and stay under the menu bar while that extra length scrolls by. The page is never moved by code, so it cannot shake,
   and it behaves the same with a wheel, a trackpad, the keyboard or the scroll bar.
   Only where both sections fill the screen exactly (a laptop or desktop window 650 to 984 px tall); elsewhere the page
   simply scrolls. Not with reduced motion. To remove the rest altogether, delete this block. */
.rest > .exp-hero { margin-top: 0; z-index: 2; }
@media (min-width: 961px) and (min-height: 650px) and (max-height: 984px) and (prefers-reduced-motion: no-preference) {
  .sheet::after, .rest::after { content: ""; display: block; height: 34vh; }   /* real content, not padding: a sticky box cannot travel into its parent's padding */
  .sheet > #practice, .rest > .exp-hero { position: sticky; top: var(--nav-h); }
}

/* ================= Bag and checkout pop-up (22 Nov, Joshua) =================
   One pop-up from the bag button: the bag on paper at the left, the checkout summary on the second paper tone at the
   right. Rows are divided by hairlines like the rest of the site; no boxes drawn round anything. */
dialog.bag-dlg { padding: 0; border: 0; background: var(--paper); color: var(--text); width: min(1040px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow: auto; }
dialog.bag-dlg::backdrop { background: rgba(27, 20, 84, .38); }
.bag-grid { display: grid; grid-template-columns: 1.5fr 1fr; min-height: min(520px, calc(100vh - 32px)); }
.bag-items { padding: clamp(28px, 3.4vw, 52px); }
.bag-sum { padding: clamp(28px, 3.4vw, 52px); padding-top: clamp(68px, 6vw, 84px); background: var(--paper-2); display: grid; align-content: start; }
.bag-list { list-style: none; margin: 22px 0 0; padding: 0; }
.bag-row { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto 76px; gap: 18px; align-items: center; padding: 18px 0; border-top: 1px solid var(--line); }
.bag-row:last-child { border-bottom: 1px solid var(--line); }
.bag-row img { width: 72px; height: 72px; object-fit: contain; background: var(--paper-2); }
.bag-name { font-family: var(--serif); font-size: 1.2rem; line-height: 1.2; color: var(--ink); }
.bag-each { margin-top: 4px; font-size: 14px; color: var(--muted); }
.bag-rm.link { margin-top: 8px; font-size: 14px; }
.bag-qty { display: inline-flex; align-items: center; border: 1px solid var(--line); background: var(--white); }
.bag-qty button { width: 40px; height: 40px; background: none; border: 0; font-size: 18px; line-height: 1; color: var(--ink); cursor: pointer; }
.bag-qty button:hover:not(:disabled) { background: var(--ink); color: var(--white); }
.bag-qty button:disabled { color: rgba(27, 20, 84, .35); cursor: not-allowed; }
.bag-qty span { min-width: 30px; text-align: center; font: 400 17px var(--serif); color: var(--ink); }
.bag-line { font-family: var(--serif); font-weight: 300; font-size: 1.35rem; text-align: right; color: var(--ink); }
.bag-lines { margin: 22px 0 0; }
.bag-lines div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 13px 0; border-top: 1px solid rgba(27, 20, 84, .14); }
.bag-lines dt { font-size: 15px; color: var(--muted); }
.bag-lines dd { margin: 0; font-family: var(--serif); font-size: 1.1rem; color: var(--ink); text-align: right; }
.bag-sum .btn { width: 100%; margin-top: 22px; }
.bag-note { margin-top: 14px; }
.bag-sum .link { justify-self: start; margin-top: 18px; }
@media (max-width: 900px) {
  .bag-grid { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .bag-sum { padding-top: clamp(28px, 6vw, 40px); }
  .bag-row { grid-template-columns: 56px minmax(0, 1fr) auto; gap: 14px; }
  .bag-row img { width: 56px; height: 56px; }
  .bag-line { grid-column: 2 / -1; text-align: left; font-size: 1.15rem; }
}

/* 23 Nov (Robert): Standard of Care, the "Beyond Obesity, to Healthspan" text set on the top photo */
.tx-sub { font-family: var(--serif); font-weight: 400; font-size: clamp(1.25rem, 1.7vw, 1.6rem); line-height: 1.2; color: var(--ink); }
.tx-dense .tx-copy { gap: 16px; }
.tx-hero-dl { width: 100%; max-width: 31em; }
.tx-hero-dl li { padding: 9px 0; font-size: 16px; line-height: 1.45; }
@media (min-width: 901px) { .tx-dense .tx-copy { transform: translateY(-50%); } }

/* 23 Nov (Robert): Dr. Forbes's approved portrait in the Bulletin; the wide crops keep her face in view */
.art-hero img[src$="p-drforbes-page.jpg"], .lf-card-img img[src$="p-drforbes-page.jpg"] { object-position: 50% 22%; }

/* 23 Nov (Robert): the shop leads with its products. A short title, then the shelf; the text follows. */
.shop-head { display: grid; gap: 14px; justify-items: start; padding: clamp(36px, 4vw, 56px) max(var(--cell), var(--gut)) clamp(24px, 2.6vw, 36px); }
.shop-head h1 { font-size: clamp(2rem, 3.4vw, 3.1rem); line-height: 1.08; }
.shop-head .spot-by { margin-top: 0; }
.shop-first .store-head { margin: 0 0 clamp(24px, 2.6vw, 36px); padding-top: clamp(20px, 2vw, 28px); border-top: 1px solid var(--hl); }
.shop-first .spot-fda { margin-bottom: clamp(36px, 4vw, 56px); }
@media (max-width: 900px) { .shop-head { padding: 26px var(--gutR) 20px var(--gut); } }
/* the product-in-hand photo sits beside the title, so the shelf still starts on the first screen */
.shop-head-t { display: grid; gap: 14px; justify-items: start; }
.shop-head-img { margin: 0; overflow: hidden; box-shadow: 0 16px 26px -16px rgba(20, 18, 30, .5); }
.shop-head-img img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
@media (min-width: 901px) {
  .shop-head { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); column-gap: clamp(32px, 4vw, 72px); align-items: center; }
  .shop-head-img { width: 100%; aspect-ratio: 16 / 9; max-height: 320px; }
}
@media (max-width: 900px) {
  .shop-head-img { order: -1; width: 100%; aspect-ratio: 16 / 9; }
}

/* 23 Nov (Robert): the Locations page, offices and maps only, in the hairline grid. The maps are grey like the panel
   photos and take their colour on hover. */
.loc-top { border-bottom: 0; }
.loc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; padding: 1px 0; background: var(--hl); }
.loc-cell { background: var(--paper); padding: var(--cell) max(var(--cell), var(--gut)); display: grid; gap: 14px; align-content: start; justify-items: start; }
.loc-name { font-family: var(--serif); font-weight: 400; font-size: clamp(1.6rem, 2.2vw, 2.1rem); line-height: 1.15; color: var(--ink); }
.loc-addr { font-size: 18px; line-height: 1.5; color: var(--ink); }
.loc-hours { margin: 0; display: grid; gap: 2px; }
.loc-hours dt { font-family: var(--sans); font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.loc-hours dd { margin: 0; font-size: 17px; color: var(--ink); }
.loc-map { width: 100%; aspect-ratio: 4 / 3; margin-top: 10px; overflow: hidden; background: #E4E4E2; box-shadow: 0 16px 26px -16px rgba(20, 18, 30, .5); }
.loc-map iframe { display: block; width: 100%; height: 100%; border: 0; filter: grayscale(1) contrast(1.02); transition: filter .5s var(--ease); }
.loc-map:hover iframe, .loc-map:focus-within iframe { filter: none; }
.loc-contact { display: flex; flex-wrap: wrap; gap: 12px clamp(32px, 5vw, 72px); padding: clamp(28px, 3vw, 44px) max(var(--cell), var(--gut)); border-bottom: 1px solid var(--hl); }
.loc-contact p { display: flex; gap: 14px; align-items: baseline; font-size: 18px; color: var(--ink); }
.loc-label { font-family: var(--sans); font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.loc-cta { padding: clamp(32px, 3.5vw, 52px) max(var(--cell), var(--gut)) 0; }
@media (max-width: 900px) {
  .loc-cta { padding: 28px var(--gutR) 0 var(--gut); }
  .loc-grid { grid-template-columns: minmax(0, 1fr); }
  .loc-cell { padding: 26px var(--gutR) 30px var(--gut); }
  .loc-contact { padding: 26px var(--gutR) 26px var(--gut); flex-direction: column; }
}

/* 24 Nov (Robert): headings break in sensible places. nav.js wraps the words that must stay together in .nb;
   headings are balanced so their lines are of even length. */
.nb { white-space: nowrap; }
@media (max-width: 600px) { .nb-l { white-space: normal; } }
h1, h2, h3, .bn-t, .tx-by, .tx-sub { text-wrap: balance; }
@media (min-width: 1100px) { #exp-h { max-width: none; white-space: nowrap; } }

/* 23 Nov (Robert): the store on the home page, between the panel menu and The Patient Experience, in the shop page's
   format. The "New" starburst in the button blue is its one lively accent. */
.home-shop { position: relative; z-index: 2; background: var(--paper); border-top: 1px solid var(--hl); padding-bottom: clamp(44px, 5vw, 72px); }
.home-shop .shop-head { padding-top: clamp(44px, 5vw, 72px); }
.home-shop .shop-head-t { gap: 16px; }
.home-shop h2 { font-size: clamp(2rem, 3.4vw, 3.1rem); line-height: 1.08; }
.hs-lede { font-size: 18px; line-height: 1.5; color: var(--ink); max-width: 30em; }
.home-shop .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; }
.hs-new { display: grid; place-items: center; width: 84px; height: 84px; margin-bottom: 4px; background: var(--blue); color: #fff; font-family: var(--sans); font-size: 14px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; transform: rotate(-12deg);
  clip-path: polygon(50.0% 0.0%, 58.0% 9.8%, 69.1% 3.8%, 72.8% 15.9%, 85.4% 14.6%, 84.1% 27.2%, 96.2% 30.9%, 90.2% 42.0%, 100.0% 50.0%, 90.2% 58.0%, 96.2% 69.1%, 84.1% 72.8%, 85.4% 85.4%, 72.8% 84.1%, 69.1% 96.2%, 58.0% 90.2%, 50.0% 100.0%, 42.0% 90.2%, 30.9% 96.2%, 27.2% 84.1%, 14.6% 85.4%, 15.9% 72.8%, 3.8% 69.1%, 9.8% 58.0%, 0.0% 50.0%, 9.8% 42.0%, 3.8% 30.9%, 15.9% 27.2%, 14.6% 14.6%, 27.2% 15.9%, 30.9% 3.8%, 42.0% 9.8%);
  animation: hs-pop 2.8s var(--ease) infinite; }
@keyframes hs-pop { 0%, 70%, 100% { transform: rotate(-12deg) scale(1); } 80% { transform: rotate(-6deg) scale(1.08); } 90% { transform: rotate(-12deg) scale(1); } }
@media (prefers-reduced-motion: reduce) { .hs-new { animation: none; } }
.hs-row { list-style: none; margin: 0; padding: clamp(28px, 3vw, 44px) max(var(--cell), var(--gut)) 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); border-top: 1px solid var(--hl); }
.hs-row .pcard { flex: none; }
@media (max-width: 900px) {
  .home-shop .shop-head { padding-top: 32px; }
  .hs-row { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 24px var(--gutR) 0 var(--gut); }
  .hs-new { width: 70px; height: 70px; font-size: 12px; }
}

/* 23 Nov (Robert): the home page's Locations, with a Google map under each office; By Video as a strip beneath */
@media (min-width: 901px) {
  .locs-maps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .locs-maps .locs-video { grid-column: 1 / -1; grid-template-columns: auto minmax(0, 1fr) auto; align-items: baseline; column-gap: clamp(24px, 3vw, 48px); }
}
.locs-maps .loc-map { aspect-ratio: 16 / 9; margin-top: 8px; }

/* 23 Nov (Robert): "What to Expect" said once or twice on the site; the inner pages keep only their Bulletin link */
.tx-band-link .tx-more { margin-top: 0; }
@media (min-width: 901px) { .tx-band-link .tx-more { padding-top: 26px; padding-bottom: 30px; } }

/* 23 Nov (Robert): the Patient Stories page, in the panel menu's hairline grid. One cell per patient: video, quote, name. */
.ps-top { border-bottom: 0; }
.ps-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; padding: 1px 0; background: var(--hl); }
.ps-cell { margin: 0; background: var(--paper); padding: var(--cell) max(var(--cell), var(--gut)); display: grid; grid-template-rows: auto 1fr auto; gap: 22px; align-content: start; justify-items: start; }
.ps-video { position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; background: #CFCFCF; box-shadow: 0 16px 26px -16px rgba(20, 18, 30, .5); }
.ps-video img, .ps-video video { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 30%; }
/* the whole head-and-shoulders photo shows, uncropped, centred in the video frame on its own wall tone (Robert, 23 Nov) */
.ps-video { background: #D8D8D6; }
.ps-video img { object-fit: contain; object-position: 50% 50%; filter: grayscale(1) contrast(1.04); }
.ps-video.ps-ready { cursor: pointer; }
.ps-video.ps-ready:hover img { filter: none; }
/* the play button sits in the bottom right corner, clear of the face (Robert, 23 Nov) */
.ps-play { position: absolute; right: 12px; bottom: 12px; width: 44px; height: 44px; border-radius: 50%; background: rgba(250, 250, 248, .92); box-shadow: 0 6px 18px rgba(20, 18, 30, .25); }
.ps-play::after { content: ""; position: absolute; left: 17px; top: 13px; border-style: solid; border-width: 9px 0 9px 14px; border-color: transparent transparent transparent var(--ink); }
.ps-soon { position: absolute; left: 12px; bottom: 12px; padding: 4px 8px; background: #fff; font-family: var(--sans); font-size: 10px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.ps-ready .ps-soon { display: none; }
.ps-cell blockquote { margin: 0; }
.ps-cell blockquote p { font-family: var(--serif); font-weight: 400; font-size: var(--fs-h3); line-height: 1.24; color: var(--ink); text-wrap: balance; }
.ps-cell blockquote p::before { content: "\201C"; margin-left: -.44em; }
.ps-cell blockquote p::after { content: "\201D"; }
.ps-name { padding: 5px 9px; background: #fff; box-shadow: 0 0 0 1px rgba(27, 20, 84, .16); font-family: var(--sans); font-size: 10px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--ink); line-height: 1.1; }
.ps-reviews { padding: clamp(44px, 5.5vw, 88px) 0 0; }
.ps-rev-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; padding: 1px 0; background: var(--hl); }
.ps-rev-cell { background: var(--paper); padding: var(--cell) max(var(--cell), var(--gut)); min-height: 180px; }
.ps-soon-t { font-family: var(--sans); font-size: 15px; color: var(--muted); }
@media (max-width: 900px) {
  .ps-grid, .ps-rev-grid { grid-template-columns: minmax(0, 1fr); }
  .ps-cell, .ps-rev-cell { padding: 26px var(--gutR) 26px var(--gut); }
  .ps-rev-cell { min-height: 0; }
}

/* 24 Nov (Robert): Dr. Forbes's photo in the panel menu at about three quarters of its former size */
@media (min-width: 900px) { .bento .bn-dr .bn-ph { height: 75%; align-self: center; } }
@media (max-width: 899px) { .bento .bn-dr .bn-ph { width: min(34.5%, 142px); } }

/* 24 Nov (Robert): the home page's Patient Stories link to the Patient Stories page */
.stories-h-link { color: inherit; text-decoration: none; }
.stories-h-link:hover, .stories-h-link:focus-visible { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; }
.story-a { display: block; color: inherit; text-decoration: none; background: var(--paper); }
.story-a:hover blockquote p, .story-a:focus-visible blockquote p { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; }
.ps-cell { scroll-margin-top: calc(var(--nav-h, 64px) + 16px); }

/* 24 Nov (Robert): top-photo text legibility. On pages whose photo is busy behind the text (Nutritional Services,
   Surgery with Dr. Lael Forbes, Alternate GLP-1, Adolescent Obesity, Prescription Advocacy) the text sits on paper on
   the left and the photo takes the right half, as on Meet Dr. Lael Forbes. Phones already set the text under the photo. */
@media (min-width: 901px) { .tx-split:not(.tx-asking) .tx-media { left: auto; right: 0; width: 50%; } }
@media (min-width: 901px) { .tx-split #tx-h, .tx-split .tx-copy { max-width: min(100%, calc(50vw - 120px)); } }

/* 24 Nov (Robert): Adolescent Obesity and Physician Relations join the panel menu along its lower edge. A fifth row:
   the four outer cells of the lower half run down to it, and the two new cells sit under the two small centre cells,
   so Dr. Forbes stays at the centre of the second and third rows. */
@media (min-width: 900px) {
  .a7 { grid-area: 3 / 1 / 6 / 2; }  .a8 { grid-area: 3 / 2 / 6 / 3; }
  .a11 { grid-area: 3 / 5 / 6 / 6; } .a12 { grid-area: 3 / 6 / 6 / 7; }
  .a13 { grid-area: 5 / 3 / 6 / 4; } .a14 { grid-area: 5 / 4 / 6 / 5; }
}
@media (min-width: 900px) and (min-aspect-ratio: 6/5) {
  .bento { grid-template-rows: repeat(5, minmax(0, 1fr)); }
}

/* 24 Nov (Robert): the top rubrics had too little room. The panel menu is now two bands. The top band: Weight Loss
   (double width), GLP-1s, Alternate GLP-1, Peptides and the Store, all at full height. The lower band: Dr. Forbes at
   the centre, three rows tall, with two tall and one short cell on each side of her. */
@media (min-width: 900px) {
  .a1 { grid-area: 1 / 1 / 3 / 3; }  .a2 { grid-area: 1 / 3 / 3 / 4; }  .a3 { grid-area: 1 / 4 / 3 / 5; }
  .a5 { grid-area: 1 / 5 / 3 / 6; }  .a6 { grid-area: 1 / 6 / 3 / 7; }
  .a4 { grid-area: 3 / 3 / 6 / 5; }
  .a7 { grid-area: 3 / 1 / 5 / 2; }  .a8 { grid-area: 3 / 2 / 5 / 3; }
  .a13 { grid-area: 5 / 1 / 6 / 2; } .a14 { grid-area: 5 / 2 / 6 / 3; }
  .a11 { grid-area: 3 / 5 / 5 / 6; } .a12 { grid-area: 3 / 6 / 5 / 7; }
  .a9 { grid-area: 5 / 5 / 6 / 6; }  .a10 { grid-area: 5 / 6 / 6 / 7; }
  .bento .bn-dr .bn-ph { height: 56%; }
}

/* 24 Nov (Robert): three tiers of equal height on a twelve-column grid, with Dr. Forbes exactly at the centre.
   Top: Weight Loss (double), GLP-1s, Alternate GLP-1, Peptides, the Store. Middle: Weight Loss Surgery, Hernia,
   Dr. Forbes, PMOS, Hair. Bottom: Body Optimization, Sexual Health, Adolescent Obesity and Physician Relations,
   four equal cells. */
@media (min-width: 900px) {
  .bento { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .a1 { grid-area: 1 / 1 / 2 / 5; }   .a2 { grid-area: 1 / 5 / 2 / 7; }   .a3 { grid-area: 1 / 7 / 2 / 9; }
  .a5 { grid-area: 1 / 9 / 2 / 11; }  .a6 { grid-area: 1 / 11 / 2 / 13; }
  .a7 { grid-area: 2 / 1 / 3 / 3; }   .a8 { grid-area: 2 / 3 / 3 / 5; }   .a4 { grid-area: 2 / 5 / 3 / 9; }
  .a11 { grid-area: 2 / 9 / 3 / 11; } .a12 { grid-area: 2 / 11 / 3 / 13; }
  .a9 { grid-area: 3 / 1 / 4 / 4; }   .a10 { grid-area: 3 / 4 / 4 / 7; }  .a13 { grid-area: 3 / 7 / 4 / 10; } .a14 { grid-area: 3 / 10 / 4 / 13; }
  .bento .bn-dr .bn-ph { height: 100%; }
}
@media (min-width: 900px) and (min-aspect-ratio: 6/5) {
  .bento { grid-template-rows: repeat(3, minmax(0, 1fr)); }
}

/* 24 Nov (Robert): every panel photo gets the same square frame, sized to its cell's height and centred, so the
   people in them are framed alike (no more close crops in narrow cells). Dr. Forbes keeps her upright portrait. */
@media (min-width: 900px) {
  .bento .bn:not(.bn-dr) .bn-fig { container-type: size; display: grid; place-items: center; }
  .bento .bn:not(.bn-dr) .bn-ph { width: min(100cqw, 100cqh); height: min(100cqw, 100cqh); max-width: none; aspect-ratio: 1 / 1; }
  .bento .bn:not(.bn-dr) .bn-tag { align-self: center; margin-left: 0; }
}

/* 24 Nov (Robert): a visible heading above the panel menu, in the style of the home page's other section headings.
   On laptops the heading and the menu share one screen, so the short rest on the menu still shows all of it. */
.pm-h { padding-top: clamp(28px, 3vw, 44px); }
@media (min-width: 900px) and (min-aspect-ratio: 6/5) {
  .pm-wrap { display: flex; flex-direction: column; height: calc(100svh - var(--nav-h)); min-height: 640px; }
  .pm-wrap .bento { flex: 1 1 0; height: auto; min-height: 0; }
}

/* ================= 24 Nov (Robert): one layout for every inner page =================
   The photo opens full width, then slowly retreats to one half (its side alternates from page to page); the text
   sits on paper in the other half and fades in once the photo has made room. The page's first copy block now sits
   in the text column, so the essentials are all in one place. Type hierarchy, top to bottom: breadcrumb (small
   capitals) / page title (Sentient Light) / byline (Sentient) / lede (Switzer 18) / subheading (Sentient) /
   body (Switzer 16.5) / points (Switzer 16, hairlines) / the two choices. */
@media (min-width: 901px) {
  .tx-hero.tx-v2 { height: auto; min-height: calc(100svh - var(--nav-h)); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; background: var(--paper); }
  .tx-hero.tx-v2 .tx-media { left: 0; right: auto; width: 100%; transition: width 2.8s cubic-bezier(.65, 0, .35, 1) .6s, left 2.8s cubic-bezier(.65, 0, .35, 1) .6s; }
  .tx-hero.tx-v2.tx-retreat:not(.tx-asking) .tx-media { width: 50%; left: 50%; }
  .tx-hero.tx-v2.tx-img-left.tx-retreat:not(.tx-asking) .tx-media { left: 0; }
  .tx-hero.tx-v2 .tx-copy, .tx-hero.tx-v2.tx-dense .tx-copy { position: relative; left: auto; top: auto; transform: none; grid-column: 1; grid-row: 1; width: auto; max-width: 640px;
    padding: clamp(48px, 5vw, 88px) clamp(32px, 4vw, 64px) clamp(48px, 5vw, 88px) var(--edge); gap: 18px; opacity: 0; transition: opacity 1.2s var(--ease) 2.4s; }
  .tx-hero.tx-v2.tx-img-left .tx-copy { grid-column: 2; padding-left: clamp(32px, 4vw, 64px); padding-right: var(--edge); }
  .tx-hero.tx-v2.tx-retreat .tx-copy { opacity: 1; }
  .tx-hero.tx-v2.tx-asking .tx-copy { opacity: 0; transition-delay: 0s; }
  .tx-hero.tx-v2 #tx-h, .tx-hero.tx-v2 .tx-split #tx-h { max-width: none; }
}
@media (prefers-reduced-motion: reduce) { .tx-hero.tx-v2 .tx-media, .tx-hero.tx-v2 .tx-copy { transition: none !important; } }
/* the type scale */
.tx-v2 #tx-h { font-size: clamp(2.2rem, 3.1vw, 3.1rem); line-height: 1.08; }
.tx-v2 .tx-by { font-size: clamp(1.15rem, 1.35vw, 1.3rem); margin-top: -6px; }
.tx-v2 .lede { font-size: 18px; line-height: 1.55; color: var(--ink); max-width: 34em; }
.tx-v2 .tx-sub, .tx-v2 .tx-first-h { font-family: var(--serif); font-weight: 400; font-size: clamp(1.35rem, 1.6vw, 1.6rem); line-height: 1.2; letter-spacing: -.005em; color: var(--ink); margin-top: 10px; }
.tx-v2 .tx-first-body, .tx-v2 .tx-first-h { grid-column: 1 / -1; }
.tx-v2 .tx-first-body { display: grid; gap: 12px; width: 100%; max-width: 34em; }
.tx-v2 .tx-first-body p { font-size: 16.5px; line-height: 1.6; color: var(--ink); max-width: none; }
.tx-v2 .tx-list li { padding: 10px 0; font-size: 16px; line-height: 1.5; color: var(--ink); }
.tx-v2 .tx-choices { margin-top: 10px; }

/* 24 Nov, later (Robert): a quicker changeover from full photo to half photo, on every inner page */
@media (min-width: 901px) {
  .tx-hero.tx-v2 .tx-media { transition: width 1.1s cubic-bezier(.65, 0, .35, 1) .25s, left 1.1s cubic-bezier(.65, 0, .35, 1) .25s; }
  .tx-hero.tx-v2 .tx-copy { transition: opacity .7s var(--ease) .95s; }
}
/* on pages with a long text column the photo no longer stretches to the column's full height (which zoomed it in):
   it keeps one screen's height and stays in view while the text scrolls past */
@media (min-width: 901px) {
  .tx-hero.tx-v2, .tx-hero.tx-v2 .tx-media { overflow: clip; }
  .tx-hero.tx-v2 .tx-media img { position: sticky; top: var(--nav-h); inset: auto; display: block; width: 100%; height: calc(100svh - var(--nav-h)); max-height: 100%; }
}
/* the body's sideways clip used "hidden", which stops anything inside it staying in view on scroll; "clip" does the same job without that */
body.tx-page { overflow-x: clip; }
/* the photo holder itself stays in view (a grid cell that sticks under the menu bar), one screen tall */
@media (min-width: 901px) {
  .tx-hero.tx-v2 .tx-media { position: sticky; top: var(--nav-h); left: auto !important; right: auto; bottom: auto; grid-row: 1; grid-column: 1 / -1; justify-self: start; align-self: start;
    height: calc(100svh - var(--nav-h)); min-height: 600px; transition: width 1.1s cubic-bezier(.65, 0, .35, 1) .25s; }
  .tx-hero.tx-v2 .tx-media img { position: absolute; inset: 0; height: 100%; max-height: none; }
  .tx-hero.tx-v2.tx-retreat:not(.tx-asking) .tx-media { width: 50%; }
  .tx-hero.tx-v2 .tx-copy { grid-row: 1; }
}
/* 24 Nov (Robert): Find Your Path to Losing Weight in the same layout as the other inner pages */
@media (min-width: 901px) {
  .wl-hero.tx-v2 .wl-copy { left: auto; right: auto; width: auto; }
  .wl-hero.tx-v2 .wl-copy .lede, .wl-hero.tx-v2 .wl-p { font-size: 16.5px; color: var(--ink); max-width: 34em; }
  .wl-hero.tx-v2 #tx-h { font-size: clamp(2.2rem, 3.1vw, 3.1rem); }
}
/* 24 Nov (Robert): the closer Find Your Path photo keeps the woman whole in the half-page frame */
.wl-hero.tx-v2 .tx-media img { object-position: 4% 30% !important; }
@media (max-width: 900px) { .wl-hero.tx-v2 .tx-media img { object-position: 14% 8% !important; } }

/* 25 Nov (Robert): inner pages lighter again. The hero's text column holds only the summary, centred vertically beside
   the photo; the first copy block sits in its band under the hero, in the same type scale. */
@media (min-width: 901px) {
  .tx-hero.tx-v2 { height: calc(100svh - var(--nav-h)); min-height: 600px; }
  .tx-hero.tx-v2 .tx-copy { align-self: center; }
}
.tx-first .tx-first-body p { font-size: 16.5px; line-height: 1.6; color: var(--ink); }
.tx-first .display { font-size: clamp(1.6rem, 2.2vw, 2.1rem); }
/* 1 Dec 2026 (Robert): the two-route Weight Loss Program Checklist. Launch block in The Patient Experience (his
   introduction, one button per route), and the new screens in the checklist dialog: the note that responds to each
   answer, the questions-to-ask lists, the separate "How Forbes Health" section, the sources line */
.exp-chk { display: grid; gap: 10px; max-width: 34em; padding-top: 18px; border-top: 1px solid rgba(27, 20, 84, .14); }
.exp-chk-h { font-family: var(--serif); font-weight: 400; font-size: clamp(1.25rem, 1.6vw, 1.5rem); line-height: 1.2; color: var(--ink); margin: 0; }
.exp-chk-t { font-size: 15.5px; line-height: 1.5; color: var(--muted); margin: 0; }
.exp-chk-b { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.exp-chk-b .btn { padding: 0 20px; }
.chk-ask { font-size: 16px; font-weight: 500; color: var(--ink); margin: 14px 0 0; }
.chk-step { margin: 0; }
.chk-note { display: grid; gap: 10px; margin-top: 4px; padding: 16px 18px; background: var(--paper-2); border-radius: var(--r-sm); font-size: 15.5px; line-height: 1.5; color: var(--text); animation: fade-in .4s var(--ease) both; }
.chk-note .chk-fh-inline { margin: 0; padding: 0; background: none; }
.chk-qs { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: q; }
.chk-qs li { display: grid; gap: 4px; padding-left: 30px; position: relative; font-size: 15px; line-height: 1.45; color: var(--muted); }
.chk-qs li::before { counter-increment: q; content: counter(q); position: absolute; left: 0; top: 1px; font-size: 13px; font-weight: 600; color: var(--ink); }
.chk-qs li b { font-weight: 500; color: var(--ink); font-size: 15.5px; }
.chk-grp { display: grid; gap: 12px; padding-top: 14px; border-top: 1px solid rgba(27, 20, 84, .12); }
.chk-imp { font-family: var(--sans); font-size: 12px; font-weight: 500; letter-spacing: .04em; color: var(--muted); margin-left: 8px; }
.chk-fhsec { display: grid; gap: 10px; margin-top: 10px; }
.chk-src { margin-top: 6px; }
/* 1 Dec 2026 (Robert): the checklist leads The Patient Experience section (its old heading and four lines removed):
   no rule above it, the introduction at reading size, the two route buttons a little larger */
.exp-chk.exp-chk-lead { gap: 16px; padding-top: 0; border-top: 0; max-width: 32em; }
.exp-chk-lead .exp-chk-t { font-size: 17px; line-height: 1.55; color: var(--text); }
.exp-chk-lead .exp-chk-b { gap: 12px; margin-top: 6px; }

/* 3 Dec 2026 (Robert): the sections after the panel menu follow the surgery site's home page, in two kinds.
   Kind 1 (.hm-split): one full-bleed photo of a figure, the text on a paper panel opposite her; the panel's inner edge
   is rounded and overlaps the photo (the store, as a bigger splash; the checklist). Kind 2 (.hm-pair): a framed image
   and the copy beside it on plain paper (Patient Stories, Locations). .hm-rev puts the text on the left.
   Tighter spacing throughout. */
:root { --hm-round: clamp(40px, 4.4vw, 72px); }
.hm-split { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); background: var(--paper); margin: 0; min-height: min(78vh, 760px); }
.hm-ph { position: relative; overflow: hidden; min-height: 460px; margin-right: calc(-1 * var(--hm-round)); }
.hm-ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hm-copy { position: relative; z-index: 1; background: var(--paper); border-radius: var(--hm-round) 0 0 var(--hm-round); box-shadow: -22px 0 44px -34px rgba(27, 20, 84, .28);
  padding: clamp(36px, 4.4vw, 72px) var(--edge, 48px) clamp(36px, 4.4vw, 72px) clamp(32px, 4vw, 64px); display: grid; gap: 14px; align-content: center; }
.hm-copy > * { max-width: 600px; margin: 0; }
.hm-rev .hm-ph { margin-right: 0; margin-left: calc(-1 * var(--hm-round)); }
.hm-rev .hm-copy { border-radius: 0 var(--hm-round) var(--hm-round) 0; box-shadow: 22px 0 44px -34px rgba(27, 20, 84, .28);
  padding: clamp(36px, 4.4vw, 72px) clamp(32px, 4vw, 64px) clamp(36px, 4.4vw, 72px) var(--edge, 48px); }
.hm-h { font-size: clamp(2rem, 2.9vw, 2.9rem); line-height: 1.08; margin: 0; }
/* the store: a bigger splash */
.hm-splash { min-height: min(86vh, 860px); }
.hm-splash .hm-h { font-size: clamp(2.5rem, 3.9vw, 3.9rem); }
.hm-splash .hs-lede { font-size: clamp(17px, 1.3vw, 19px); }
.hm-splash .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 6px; }
.hm-splash .spot-fda { margin-top: 10px; max-width: 520px; }
#experience .exp-chk.exp-chk-lead { max-width: 600px; }
/* the checklist keeps its short rest in CSS, as the old section did */
.rest > #experience { margin-top: 0; z-index: 2; }
@media (min-width: 901px) { .rest > #experience { position: sticky; top: var(--nav-h); } }
/* kind 2: framed image and copy on plain paper */
.hm-pair { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 72px); align-items: center;
  padding: clamp(36px, 4.4vw, 64px) var(--edge, 48px); background: var(--paper); margin: 0; }
.hm-pair.hm-rev .hm-fig { order: 2; }
.hm-txt { display: grid; gap: 16px; align-content: center; }
.hm-txt > * { margin: 0; }
.hm-trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.hm-trio img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 14px; filter: grayscale(1); }
.hm-q { display: grid; gap: 6px; padding: 14px 0; border-top: 1px solid var(--hl); color: inherit; text-decoration: none; }
.hm-q blockquote { margin: 0; font-family: var(--serif); font-size: clamp(19px, 1.5vw, 23px); line-height: 1.3; color: var(--text); }
.hm-q blockquote p { margin: 0; }
.hm-q-n { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: #4F4A6E; }
.hm-q:hover blockquote, .hm-q:focus-visible blockquote { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; }
.hm-loc { display: grid; gap: 6px; padding: 14px 0; border-top: 1px solid var(--hl); }
.hm-loc > * { margin: 0; }
.hm-loc h3 { font-family: var(--serif); font-weight: 400; font-size: 21px; color: var(--text); }
.hm-maps { display: grid; gap: 12px; }
.hm-maps .loc-map { aspect-ratio: 16 / 7; border-radius: 14px; overflow: hidden; margin: 0; }
.hm-maps .loc-map iframe { width: 100%; height: 100%; border: 0; display: block; }
.hm-pair + .hm-pair { padding-top: 0; }
@media (max-width: 900px) {
  .hm-split, .hm-pair { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .hm-ph { min-height: 0; height: 68vw; margin: 0; order: -1; }
  .hm-copy, .hm-rev .hm-copy { margin-top: calc(-1 * var(--hm-round) / 1.6); border-radius: calc(var(--hm-round) / 1.6) calc(var(--hm-round) / 1.6) 0 0; box-shadow: none;
    padding: 26px var(--gutR, 20px) 34px var(--gut, 20px); }
  .hm-pair { padding: 30px var(--gutR, 20px) 30px var(--gut, 20px); gap: 20px; }
  .hm-pair.hm-rev .hm-fig { order: 0; }
  .hm-maps .loc-map { aspect-ratio: 16 / 9; }
}

/* 3 Dec 2026 (Robert): the Online Store panel is out of the panel menu (the store has its own section). The top tier is
   now four cells: Weight Loss and Peptides wide at either end, GLP-1s and Alternate GLP-1 between them. */
@media (min-width: 900px) {
  .a1 { grid-area: 1 / 1 / 2 / 5; }  .a2 { grid-area: 1 / 5 / 2 / 7; }  .a3 { grid-area: 1 / 7 / 2 / 9; }  .a5 { grid-area: 1 / 9 / 2 / 13; }
  .a5.bn-tall .bn-ph { aspect-ratio: 1 / 1; }
}
/* the checklist heading wraps inside its panel (its old full-width layout kept it on one line) */
#experience #exp-h, .hm-copy .hm-h { white-space: normal; }
/* 3 Dec 2026 (Robert): the Patient Stories photos link to each patient's story; a closing link to the page */
.hm-trio a { display: block; border-radius: 14px; overflow: hidden; }
.hm-trio a:hover img, .hm-trio a:focus-visible img { filter: grayscale(0); }
.hm-trio img { transition: filter .3s ease; }
.hm-all { justify-self: start; margin-top: 4px; }

/* 3 Dec 2026 (Robert, Dr. Forbes approved): the home hero is her still portrait. The three services sit under the
   subheading in small spaced capitals, and the hero ends at the screen's bottom under the promo banner, so her hands
   are always in view. */
.hero-copy .hero-svc { margin: 14px 0 0; color: #fff; font-family: var(--sans); font-size: clamp(12px, 1vw, 14.5px); letter-spacing: .16em; text-transform: uppercase; font-weight: 500; }
.hero-copy .sr-sep { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
@media (max-width: 700px) { .hero-copy .hero-svc { font-size: 11px; letter-spacing: .12em; line-height: 1.7; } }
body.promo-on .hero { height: min(calc(100svh - var(--nav-h) - var(--promo-h)), 900px); }
/* 3 Dec 2026 (Robert): on laptops the hero heading sits nearer the vertical centre, and the heading and its subheading
   are closer in size (about 1.7 to 1 instead of 2.6 to 1) */
@media (min-width: 701px) {
  .hero .hero-copy { top: 50%; bottom: auto; transform: translateY(-50%); }
  .hero .hero-copy h1 { font-size: clamp(2.3rem, 3.4vw, 3.4rem); }
  .hero .hero-copy .hero-sub { font-size: clamp(1.15rem, 2vw, 1.95rem); margin-top: 12px; }
}
@media (min-width: 1100px) { .hero .hero-copy { max-width: none; } .hero .hero-copy .hero-svc { white-space: nowrap; } }
/* 3 Dec 2026, accessibility pass (WCAG 2.2 AA). None of this changes the look at normal phone or laptop widths.
   Reflow: at 400% zoom a laptop shows the page 320px wide; words kept together and long button labels may wrap there
   instead of pushing the page sideways. */
@media (max-width: 360px) {
  .nb, .nb-l { white-space: normal; }
  .btn { white-space: normal; text-align: center; padding-top: 10px; padding-bottom: 10px; }
}
/* A header drop-down opened by the mouse closes with Escape (nav.js adds dd-hush until the pointer leaves) */
.nav-dd.dd-hush:not(.open) .nav-dd-menu { opacity: 0; visibility: hidden; }

/* ---------- 6 Dec 2026: questionnaire result (3 Dec call, Robert and Joshua) ----------
   When the questionnaire is finished, the summary takes the photo's place on the left; the right column closes the
   funnel (pick a day and schedule, email the summary, or call). On phones the summary leads the same column. */
.tx-sum { position: absolute; inset: 0; z-index: 2; overflow: auto; background: var(--paper-2); color: var(--ink); opacity: 0; visibility: hidden; transition: opacity .5s var(--ease), visibility 0s linear .5s; }
.tx-asking.tx-done .tx-sum { opacity: 1; visibility: visible; transition: opacity .6s var(--ease) .15s, visibility 0s; }
.tx-asking.tx-done .tx-fact, .tx-asking.tx-done .tx-tag { opacity: 0; visibility: hidden; }
.tx-sum:focus { outline: none; }
.sum { display: grid; gap: 14px; align-content: start; min-height: 100%; padding: clamp(28px, 4.4vh, 56px) clamp(24px, 3.4vw, 56px); max-width: 620px; }
.sum-k { font-size: 12.5px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.sum-h { font-family: var(--serif); font-weight: 300; font-size: clamp(2rem, 2.9vw, 2.9rem); line-height: 1.06; letter-spacing: -.01em; color: var(--ink); text-wrap: balance; }
.sum-lead { font-size: 17px; line-height: 1.5; color: var(--ink); max-width: 34em; }
.sum-t { margin-top: 12px; font-family: var(--sans); font-size: 12.5px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.sum-rows { display: grid; gap: 6px; margin: 0; }
.sum-row { display: grid; gap: 2px; padding: 12px 16px; background: var(--white); border-radius: var(--r-sm); }
.sum-row dt { font-size: 13.5px; line-height: 1.4; color: var(--muted); }
.sum-row dd { margin: 0; font-family: var(--serif); font-size: 18px; line-height: 1.3; color: var(--ink); }
.sum-steps { margin: 0; padding: 0; list-style: none; counter-reset: sum; display: grid; gap: 10px; }
.sum-steps li { counter-increment: sum; display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; align-items: start; font-size: 16px; line-height: 1.5; }
.sum-steps li::before { content: counter(sum); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: var(--white); font-size: 13.5px; font-weight: 500; }
.sum-facts { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.sum-facts li { font-family: var(--serif); font-size: 17px; line-height: 1.4; }
.sum-note { padding: 14px 16px; background: var(--white); border-radius: var(--r-sm); font-size: 15.5px; line-height: 1.5; }
.sum-fine { margin-top: 8px; font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.sum [style*="--i"] { opacity: 0; transform: translateY(10px); animation: sum-in .55s var(--ease) forwards; animation-delay: calc(var(--i) * 80ms + 350ms); }
@keyframes sum-in { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .sum [style*="--i"] { opacity: 1; transform: none; animation: none; } .tx-sum { transition: none; } }
/* the same summary inside the question column: phones only (the photo is not on screen there) */
.sum-m { display: none; }
@media (max-width: 900px) {
  .sum-m { display: block; margin: 0 -4px; background: var(--paper-2); border-radius: var(--r-sm); }
  .sum-m .sum { padding: 22px 20px; min-height: 0; }
  .sum-m .sum-h { font-size: 1.8rem; }
  .sum-m .sum [style*="--i"] { animation-delay: calc(var(--i) * 50ms + 100ms); }
}
/* right column: schedule with a preferred day and time of day */
.rs-when { display: grid; gap: 12px; padding: 18px; background: var(--paper-2); border-radius: var(--r-sm); }
.rs-when .rs-l { font-family: var(--sans); font-size: 14px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--ink); margin: 0; }
.rs-sub { font-size: 14px; line-height: 1.45; color: var(--muted); margin-top: -6px; }
.rs-day { display: grid; gap: 6px; font-size: 14px; color: var(--ink); }
.rs-day input { min-height: 44px; padding: 8px 16px; border: 0; border-radius: 999px; background: var(--white); color: var(--ink); font: 400 16px/1.3 var(--sans); width: 100%; }
.rs-times { display: flex; flex-wrap: wrap; gap: 8px; }
.rs-time { min-height: 40px; padding: 0 16px; border: 0; border-radius: 999px; background: var(--white); color: var(--ink); font: 400 15px/1 var(--sans); cursor: pointer; }
.rs-time[aria-pressed="true"] { background: var(--ink); color: var(--white); }
.rs-time:focus-visible, .rs-day input:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.rs-when .actions { margin-top: 4px; }
.rs-mail.done .rs-msg { color: var(--ink); font-weight: 500; }
/* a field people never see; filled only by automated senders */
.rs-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
/* the result column reads top to bottom without the tall centred gap of a single question */
.tx-done .ix-body { align-self: start; padding-top: 12px; }

/* ---------- 6 Dec 2026, later (Joshua): the finished questionnaire fits one screen on both sides ----------
   No list of the visitor's own answers and no related pages after the questions. Spacing is tightened only on the
   result; text stays 13px or larger. Short laptop screens get one more step down. */
.sum { gap: 12px; padding: 78px clamp(24px, 3.4vw, 56px) clamp(16px, 3vh, 40px); }
.sum-h { font-size: clamp(1.9rem, 2.6vw, 2.7rem); }
.sum-lead { font-size: 16.5px; line-height: 1.45; }
.sum-t { margin-top: 8px; }
.sum-steps { gap: 8px; }
.sum-steps li { font-size: 15.5px; line-height: 1.45; }
.sum-steps li::before { width: 28px; height: 28px; }
.sum-note { padding: 12px 16px; font-size: 15px; line-height: 1.45; }
.sum-facts { gap: 6px; }
.sum-facts li { font-size: 16.5px; line-height: 1.35; }
.sum-fine { margin-top: 2px; font-size: 13px; line-height: 1.45; }
.tx-done .ix { grid-template-rows: auto auto auto; align-content: center; padding-top: 8px; padding-bottom: 16px; }
.tx-done .ix-body { padding: 14px 0 8px; gap: 10px; }
.tx-done .ix-q { font-size: clamp(1.5rem, 1.9vw, 1.9rem); }
.tx-done .ix-result { gap: 10px; }
.tx-done .ix-nav { margin-top: 2px; }
.tx-done .ix-privacy { font-size: 13px; line-height: 1.4; }
.rs-when { gap: 8px; padding: 14px 16px; }
.rs-sub { margin-top: -2px; }
.rs-day { grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 12px; }
.rs-day input { min-height: 40px; }
.rs-time { min-height: 38px; padding: 0 14px; font-size: 14.5px; }
.rs-when .actions { margin-top: 2px; flex-wrap: nowrap; gap: 16px; }
.rs-when .actions .btn { flex: none; padding-left: 20px; padding-right: 20px; }
.rs-when .actions .link { white-space: nowrap; font-size: 14.5px; }
.tx-done .rs-mail { gap: 8px; margin-top: 0; padding: 14px 16px; }
.tx-done .rs-msg:empty { display: none; }
@media (min-width: 901px) and (max-height: 780px) {
  .sum { gap: 9px; }
  .sum-h { font-size: clamp(1.7rem, 2.3vw, 2.2rem); }
  .sum-lead { font-size: 15.5px; }
  .sum-steps { gap: 6px; }
  .sum-steps li, .sum-note { font-size: 15px; }
  .sum-note { padding: 10px 14px; }
  .sum-facts li { font-size: 15.5px; }
  .tx-done .ix-body { padding-top: 8px; gap: 8px; }
  .tx-done .ix-result { gap: 8px; }
  .tx-done .rs-when, .tx-done .rs-mail { padding: 12px 14px; gap: 6px; }
}
@media (max-width: 900px) {
  .sum-m .sum { gap: 10px; padding: 18px 18px 16px; }
  .sum-m .sum-h { font-size: 1.6rem; }
  .sum-m .sum-facts, .sum-m .sum-t-facts { display: none; }
  .rs-when .actions { flex-wrap: wrap; }
}
@media (max-width: 420px) { .rs-day { grid-template-columns: minmax(0, 1fr); gap: 6px; } }

/* ---------- 6 Dec 2026: bag checkout through Atrium to the Clover (Merchant One) payment page ----------
   The second step of the bag: delivery details, then the hand-off. Fields sit on the tinted column, so they are white. */
.bag-lines .bag-total dt { color: var(--ink); font-weight: 500; }
.bag-lines .bag-total dd { font-size: 1.3rem; }
.co-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px 10px; margin-top: 22px; }
.co-form > * { grid-column: 1 / -1; }
.co-form > .co-half { grid-column: auto; }
.co-form[hidden], .co-done[hidden], #bag-step-a[hidden] { display: none; }
#bag-step-a { display: grid; }
.co-h { font-family: var(--sans); font-size: 12.5px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.co-h:focus { outline: none; }
.co-f { display: grid; gap: 6px; font-size: 14px; font-weight: 500; color: var(--ink); }
.co-f input, .co-f select { width: 100%; min-height: 44px; padding: 10px 14px; border: 0; border-radius: var(--r-sm); background: var(--white); color: var(--ink); font: 400 16px/1.3 var(--sans); }
.co-f input:focus-visible, .co-f select:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.co-f.bad input, .co-f.bad select { box-shadow: inset 0 0 0 2px #9B2C2C; }
.co-err { font-size: 15px; line-height: 1.45; color: #9B2C2C; font-weight: 500; }
.co-form .btn { margin-top: 6px; }
.co-form .link { margin-top: 4px; }
.co-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.co-done { margin-top: 22px; font-size: 17px; line-height: 1.55; color: var(--ink); }
.co-done:focus { outline: none; }
/* On a wide screen the bag keeps its height and each side scrolls by itself, so the items stay in view beside the form;
   the details step gets half the width and pairs its shorter fields. */
@media (min-width: 901px) {
  dialog.bag-dlg { overflow: hidden; }
  .bag-grid { max-height: calc(100vh - 32px); }
  .bag-dlg.co-on .bag-grid { height: min(900px, calc(100vh - 32px)); }
  .bag-items, .bag-sum { overflow: auto; min-height: 0; }
  .bag-dlg.co-on .bag-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .bag-dlg.co-on .bag-sum { padding-top: clamp(28px, 3.6vh, 48px); padding-bottom: 24px; }
  .bag-dlg.co-on .bag-lines { margin-top: 14px; }
  .bag-dlg.co-on .bag-lines div { padding: 7px 0; }
  .bag-dlg.co-on .bag-lines div:first-child { display: none; }
  .bag-dlg.co-on .co-form { margin-top: 12px; gap: 8px 10px; }
  .bag-dlg.co-on .co-form .btn { margin-top: 4px; }
  .bag-dlg.co-on .co-form .link { margin-top: 0; }
  .co-form > .co-half-w { grid-column: auto; }
}
