:root {
  --paper: #f4f1ea; --ink: #0d0d0d; --muted: #5c5b57; --terra: #d5822a;
  --page-grey: #cbc8c2; --card: #eceae5; --card-ink: #1c1c1a; --card-line: #8f8d88; --card-rule: rgba(0,0,0,.14);
  --tile-page: #f4f1ea; --tile: #e9e6e0; --tile-line: #cfcbc3;
  --tile-fixed: #e9e6e0; --tile-ink: #1c1c1a; --tile-muted: #5c5b57; --tile-rule: #cfcbc3; --shade: rgba(0,0,0,.045); --shade-2: rgba(0,0,0,.12); --img-filter: none; --card-hover: #f1efea;
  --sans: "PP Neue Montreal", Archivo, "Helvetica Neue", Arial, sans-serif;
  --mono: "PP Neue Montreal Mono", "IBM Plex Mono", ui-monospace, monospace;
  --label: 11px; --body: 15px; --card-body: 14px;
}
* { box-sizing: border-box; }
body { margin: 0; overflow-x: hidden; background: var(--paper); color: var(--ink); font-family: var(--sans); line-height: 1.5; -webkit-font-smoothing: antialiased; }
body.grey { background: var(--tile-page); color: var(--ink); }
body.light { background: var(--tile-page); color: var(--ink); }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { display: block; }
.wrap { max-width: 1320px; margin: 0 auto; padding: 0 40px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.is-hidden { display: none !important; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.nt { text-transform: none !important; }

/* mono caps: the one label style */
.lab-t, .bar, .filters, .pill, .crumbs, .foot, .chip, .tag, .pn, .steps .n, .pack figcaption, .vessels figcaption, .fill, .sc .t, .sc .l, .g figcaption, .sheet .sec h2, .sheet .sec h3, .lab summary, .sources li, .empty, .score .v, .landing .idx, .landing .go, .choice h2 { font-family: var(--mono); font-size: var(--label); letter-spacing: .06em; text-transform: uppercase; }

/* ---------- site header (mirrors the main site) ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--tile-page) 92%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid var(--tile-line); color: var(--ink); font-family: var(--sans); }
.header-inner { max-width: 1400px; margin: 0 auto; padding: 0 48px; height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.site-header .brand { display: flex; align-items: center; gap: 10px; flex: none; }
.brand-mark { width: 24px; height: 26px; fill: currentColor; flex: none; }
.brand-name { font-size: 19px; font-weight: 500; letter-spacing: -0.02em; }
.site-nav { display: flex; align-items: center; gap: 36px; font-size: 15px; font-weight: 500; }
.btn { display: inline-block; padding: 16px 32px; border-radius: 999px; font-weight: 500; font-size: 16px; white-space: nowrap; text-align: center; }
.btn-accent { background: var(--terra); color: #0d0d0d; } .btn-accent:hover { opacity: .85; }
.btn-sm { padding: 11px 24px; font-size: 15px; }
.menu-toggle { display: none; position: relative; width: 44px; height: 44px; margin-right: -10px; padding: 0; background: none; border: 0; color: inherit; cursor: pointer; }
.menu-toggle-bar { position: absolute; left: 11px; width: 22px; height: 2px; background: currentColor; transition: transform .25s ease, top .25s ease; }
.menu-toggle-bar:first-child { top: 17px; } .menu-toggle-bar:last-child { top: 25px; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bar:first-child { top: 21px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-bar:last-child { top: 21px; transform: rotate(-45deg); }
.mobile-menu { display: flex; flex-direction: column; padding: 8px 24px 32px; border-top: 1px solid var(--tile-line); max-height: calc(100vh - 73px); max-height: calc(100dvh - 73px); overflow-y: auto; }
.mobile-menu[hidden] { display: none; }
.mobile-menu a:not(.btn) { padding: 18px 0; border-bottom: 1px solid var(--tile-line); font-size: 28px; font-weight: 600; letter-spacing: -0.02em; }
.mobile-menu .btn { margin-top: 28px; align-self: flex-start; }
@media (max-width: 960px) {
  .header-inner { padding-left: 24px; padding-right: 24px; }
  .site-nav { gap: 20px; }
  .site-nav a:not(.btn) { display: none; }
  .menu-toggle { display: block; }
}

/* ---------- filters ---------- */
.site-nav a[aria-current="page"], .mobile-menu a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
/* compact search: icon and a short line; it grows while focused or holding text (user, 2026-11-01) */
.search-w { display: flex; align-items: center; gap: 8px; width: 64px; flex: 0 0 auto; cursor: text; transition: width .25s ease, border-color .15s; border-bottom: 1px solid var(--tile-line); padding: 2px 0 6px; margin-right: 10px; color: var(--muted); }
.search-w:hover { border-bottom-color: var(--ink); color: var(--ink); }
.search-w:focus-within { border-bottom-color: var(--ink); color: var(--ink); }
.search-w:focus-within, .search-w.has-value { width: 190px; }
.search-w .ic { width: 14px; height: 14px; }
.search { flex: 1; min-width: 0; font: inherit; letter-spacing: inherit; text-transform: inherit; padding: 4px 0; border: 0; background: transparent; color: var(--ink); border-radius: 0; -webkit-appearance: none; appearance: none; }
.search::placeholder { color: var(--muted); }
.search:focus, .search:focus-visible { outline: none; }
.search::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.filters .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; padding-top: 30px; padding-bottom: 32px; }
.filters .tabs, .filters .tools, .fopts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.filters .tools { margin-left: auto; flex: 0 0 auto; flex-wrap: nowrap; }
/* one row (user, 2026-11-01): the category pills scroll inside the space the tools leave */
.tabs-c { position: relative; flex: 1 1 0; min-width: 0; display: flex; align-items: center; gap: 6px; }
.filters .tabs { position: relative; flex: 1 1 auto; min-width: 0; flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; -ms-overflow-style: none; padding: 2px; margin: -2px; }
.filters .tabs::-webkit-scrollbar { display: none; }
.filters .tabs .tab { flex: 0 0 auto; scroll-snap-align: start; white-space: nowrap; }
.filters .tabs.dragging { scroll-snap-type: none; cursor: grabbing; } .filters .tabs.dragging .tab { pointer-events: none; }
.tabs-c.can-r .tabs { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 44px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 44px), transparent); }
.tabs-c.can-l .tabs { -webkit-mask-image: linear-gradient(90deg, transparent, #000 44px); mask-image: linear-gradient(90deg, transparent, #000 44px); }
.tabs-c.can-l.can-r .tabs { -webkit-mask-image: linear-gradient(90deg, transparent, #000 44px, #000 calc(100% - 44px), transparent); mask-image: linear-gradient(90deg, transparent, #000 44px, #000 calc(100% - 44px), transparent); }
.tnav { display: none; flex: 0 0 auto; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--tile-line); background: transparent; color: var(--muted); cursor: pointer; align-items: center; justify-content: center; padding: 0; transition: color .15s, border-color .15s, opacity .15s; }
.tnav svg { width: 10px; height: 10px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.tnav:hover { color: var(--ink); border-color: var(--ink); }
.tnav:disabled { opacity: .3; pointer-events: none; }
.tabs-c.scrolls .tnav { display: inline-flex; }
.pill.icon { padding: 8px 11px; gap: 6px; }
.pill .ico { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.pill { font-family: var(--mono); font-size: var(--label); font-weight: 400; letter-spacing: .06em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--tile-line); background: transparent; color: var(--muted); cursor: pointer; line-height: 1.2; text-align: left; transition: background .15s, color .15s, border-color .15s; }
.pill:hover { border-color: var(--ink); color: var(--ink); }
.pill[aria-pressed="true"], .pill.is-on, .pill[aria-expanded="true"] { background: var(--ink); color: var(--tile-page); border-color: var(--ink); }
.pill .n { opacity: .6; }
.pill .chev { width: 10px; height: 6px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; margin-left: 2px; transition: transform .2s; }
.pill[aria-expanded="true"] .chev { transform: rotate(180deg); }
.menu { position: relative; }
.pop { position: absolute; right: 0; top: calc(100% + 8px); z-index: 20; min-width: 240px; padding: 6px; background: var(--tile-page); border: 1px solid var(--tile-line); border-radius: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.08); }
.pop[hidden] { display: none; }
.pop li { padding: 9px 12px; border-radius: 8px; color: var(--muted); cursor: pointer; white-space: nowrap; display: flex; justify-content: space-between; gap: 16px; }
.pop li:hover { background: var(--tile); color: var(--ink); }
.pop li[aria-selected="true"] { color: var(--ink); }
.pop li[aria-selected="true"]::after { content: "\2713"; }
.fpanel { flex-basis: 100%; display: flex; flex-direction: column; gap: 18px; padding: 22px 0 4px; border-top: 1px solid var(--tile-line); margin-top: 6px; }
.fpanel[hidden] { display: none; }
.fgroups { display: flex; flex-direction: column; gap: 16px; }
.fgroup { display: grid; grid-template-columns: 150px 1fr; gap: 10px 24px; align-items: start; }
.fgroup .fl { color: var(--muted); padding-top: 9px; }
.filters .clear { align-self: flex-start; font: inherit; letter-spacing: inherit; text-transform: inherit; background: none; border: 0; padding: 0; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.filters .clear:hover { color: var(--ink); }
.empty { display: none; color: var(--muted); padding: 24px 0; }
[data-empty="true"] .empty { display: block; }
.foot { color: var(--muted); padding: 24px 0 48px; }
.foot .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px 32px; }
.foot a:hover { color: inherit; }

/* ---------- landing ---------- */
.landing .choices { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding-top: 28px; padding-bottom: 40px; }
.choice { display: flex; flex-direction: column; border-radius: 18px; padding: 32px; min-height: 68vh; background: var(--tile); color: var(--ink); }
.choice .idx { color: var(--muted); }
.choice .pic { flex: 1; display: grid; place-items: center; padding: 28px 0; }
.door { width: min(190px, 46%); height: auto; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; transition: transform .4s ease; }
.choice:hover .door { transform: translateY(-6px); }
.choice h2 { font-size: 20px; letter-spacing: .04em; font-weight: 500; }
.choice p { font-size: var(--body); color: var(--muted); margin-top: 10px; max-width: 42ch; }
.choice .go { display: inline-block; margin-top: 22px; }
.choice:hover .go { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- ticket cards (actives) ---------- */
.tickets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; padding-bottom: 72px; }
.tk { position: relative; display: flex; flex-direction: column; background: var(--card); color: var(--card-ink); border-radius: 18px; transition: background .25s; }
.tk:hover { background: var(--card-hover); }
.tk-img { position: relative; }
.tk-img img { width: 100%; height: auto; aspect-ratio: 2 / 1; object-fit: cover; border-radius: 18px 18px 0 0; transition: transform .5s ease; }
.tk:hover .tk-img img { transform: scale(1.07); }
.notch-l, .notch-r { position: absolute; width: 30px; height: 22px; border-radius: 999px; background: var(--tile-page); z-index: 2; }
.tk-img .notch-l, .tk-img .notch-r { bottom: -11px; }
.notch-l { left: -15px; } .notch-r { right: -15px; }
.tk-body { display: flex; flex-direction: column; flex: 1; padding: 34px 30px 28px; min-height: 336px; font-family: var(--mono); text-transform: uppercase; letter-spacing: .02em; font-size: 13px; line-height: 1.55; }
.tk-name { font-size: 20px; font-weight: 400; line-height: 1.2; letter-spacing: .02em; }
.tk-desc { text-transform: none; letter-spacing: 0; }
.tk-row { display: flex; justify-content: space-between; gap: 16px; margin-top: 18px; }
.tk-row .fam { color: var(--muted); }
.tk-rule { height: 1px; background: var(--card-line); margin: 16px 0 26px; }
.tk-cta { margin-top: auto; padding-top: 30px; }
.tk:hover .tk-cta { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- tile grid (formats) ---------- */
.gridwrap { max-width: 1320px; margin: 0 auto; padding: 0 40px 80px; }
/* formulation tiles in the ticket's typesetting, with its notches (user, 2026-11-01, option B) */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.tile { position: relative; display: flex; flex-direction: column; background: var(--tile-fixed); color: var(--tile-ink); border-radius: 18px; transition: background .25s; }
.tile:hover .cap .t { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.tile .pic { position: relative; display: grid; place-items: center; aspect-ratio: 1 / .92; }
.tile .pic img { width: 60%; height: auto; transition: transform .5s ease; }
.tile:hover .pic img { transform: scale(1.07); }
.tile .pic .notch-l, .tile .pic .notch-r { width: 24px; height: 18px; bottom: -9px; }
.tile .pic .notch-l { left: -12px; } .tile .pic .notch-r { right: -12px; }
.tile .cap { position: relative; display: flex; flex-direction: column; flex: 1; padding: 30px 26px 28px; font-family: var(--mono); text-transform: uppercase; letter-spacing: .02em; font-size: 13px; line-height: 1.55; color: var(--tile-ink); }
.tile .cap::before { content: ""; position: absolute; left: 26px; right: 26px; top: 0; height: 1px; background: var(--tile-rule); }
.tile .cap .t { display: block; font-size: 20px; line-height: 1.2; }
.tile .cap .s { display: block; color: var(--tile-muted); margin-top: 16px; }
.tile .cap .d { display: block; color: var(--tile-ink); margin-top: 22px; text-transform: none; letter-spacing: 0; }
.tile.text { background: transparent; padding: 0 16px; font-size: 11px; line-height: 1.5; color: var(--ink); }
.tile.text .in { position: absolute; left: 16px; right: 16px; top: 22%; }
.tile.text .h { display: block; margin-bottom: 10px; }
.tile.text p { color: var(--muted); margin-top: 8px; }

/* ---------- profiles ---------- */
/* the trail sits inside the card above the title (user, 2026-11-01: no tab, no crumbs outside) */
.crumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; color: var(--muted); }
.crumbs span { opacity: .55; }
.crumbs a { color: var(--muted); }
.crumbs a:last-child, .crumbs a:hover { color: var(--card-ink); }
.sheet { position: relative; background: var(--card); color: var(--card-ink); border-radius: 18px; margin-bottom: 28px; }
.wrap > .sheet { margin-top: 28px; }   /* detail sheets sit off the sticky header, like the category hero */
body.light .sheet { background: var(--tile); color: var(--ink); }
.sheet-hero { position: relative; display: grid; grid-template-columns: 1.1fr 1fr; }
.sheet-hero .notch-l, .sheet-hero .notch-r { bottom: -11px; }
body.light .notch-l, body.light .notch-r { background: var(--tile-page); }
.sheet-hero .pic { display: grid; place-items: center; padding: 28px; }
.sheet-hero .pic img { width: 100%; height: auto; }
.sheet-hero .pic.swatch img { width: 62%; }
.sheet-hero .txt { padding: 44px 40px 40px; display: flex; flex-direction: column; font-family: var(--mono); text-transform: uppercase; letter-spacing: .02em; font-size: var(--card-body); line-height: 1.55; }
.sheet-hero h1 { font-size: clamp(26px, 3vw, 36px); font-weight: 400; line-height: 1.15; letter-spacing: .02em; }
.sheet-hero .row { display: flex; justify-content: space-between; gap: 16px; margin-top: 22px; padding-bottom: 20px; border-bottom: 1px solid var(--card-line); }
.sheet-hero .row .fam { color: var(--muted); }
.sheet-hero .lede { margin-top: 30px; text-transform: none; letter-spacing: 0; }
.sheet-hero .feel { color: var(--muted); margin-top: 14px; }
/* format hero in the tile voice */
.sheet-hero.kami .pic { background: var(--tile-fixed); border-radius: 18px; margin: 20px; }
.sheet-hero.kami .txt { font-family: var(--sans); text-transform: none; letter-spacing: 0; font-size: var(--body); }
.sheet-hero.kami h1 { font-family: var(--sans); font-size: clamp(24px, 2.6vw, 30px); letter-spacing: 0; }
.sheet-hero.kami .row { color: var(--muted); border-color: var(--tile-line); }
.sheet-hero.kami .row .fam::before, .sheet-hero.kami .row .fam::after { content: ""; }
.sheet-hero.kami .inci { font-family: var(--sans); text-transform: none; letter-spacing: 0; font-size: var(--body); }
/* sections */
.sheet .sec { display: grid; grid-template-columns: 200px 1fr; gap: 32px; padding: 40px 40px; border-top: 1px solid var(--card-rule); }
.sheet .sec h2 { color: var(--muted); padding-top: 3px; font-weight: 500; }
.sheet .sec .b { font-size: var(--body); line-height: 1.55; }
.sheet .sec .b > p { max-width: 64ch; }
.sheet .sec .b .note { color: var(--muted); margin-top: 14px; max-width: 64ch; }
.sheet .sec h3 { color: var(--muted); margin: 0 0 12px; font-weight: 500; }
.sheet .sec .b > * + h3, .sheet .sec .b > * + .gs { margin-top: 32px; }
.lab-band { background: var(--shade); }
.lab-band .sec:first-child { border-top: 1px solid var(--card-rule); }
.lab-band .lab-t { color: var(--muted); display: block; padding: 40px 40px 16px; font-weight: 500; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; padding: 8px 14px; border: 1px solid var(--card-line); border-radius: 999px; line-height: 1.2; }
a.chip:hover { background: var(--shade); }
span.chip { border-style: dashed; color: var(--muted); }
span.chip.solid { border-style: solid; color: inherit; }
.gs + .kv.ident { margin-top: 36px; }
.snote { margin: 26px 0 0; color: var(--muted); }
.snote + .kv.ident { margin-top: 28px; }
.cols2 .pairs-note { margin: 0 0 16px; }
.kv.reg th { white-space: nowrap; width: 150px; }
.kv.reg td { text-transform: none; letter-spacing: 0; }
.kv.ident td { text-transform: none; letter-spacing: 0; }
.scores { display: grid; gap: 26px; max-width: 860px; }
.score { display: grid; grid-template-columns: 200px 1fr 42px; gap: 6px 18px; align-items: center; }
.score .k { font-size: var(--body); }
.pips { display: flex; gap: 2px; height: 12px; }
.pips i { flex: 1; display: block; background: var(--shade-2); }
.pips i.on { background: var(--terra); }
.pips i:last-child { border-radius: 0 4px 4px 0; }
.score .v { text-align: right; }
.score .n { grid-column: 2 / 4; font-size: var(--body); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cols2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.list li { padding: 10px 0; border-top: 1px solid var(--card-rule); font-size: var(--body); }
.list li:last-child { border-bottom: 1px solid var(--card-rule); }
.list li a:hover { text-decoration: underline; text-underline-offset: 3px; }
.pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pills.rows { flex-direction: column; align-items: flex-start; gap: 14px; }
.pills li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.pills .pill { cursor: default; color: var(--card-ink); border-color: var(--card-line); }
.pills .pill.soft { border-style: dashed; color: var(--muted); }
.rows li { display: grid; grid-template-columns: 1fr auto; gap: 6px 24px; align-items: baseline; padding: 12px 0; border-top: 1px solid var(--card-rule); }
.rows li:last-child { border-bottom: 1px solid var(--card-rule); }
.rows .it { font-family: var(--mono); font-size: var(--label); letter-spacing: .06em; text-transform: uppercase; line-height: 1.5; }
.rows .why { font-size: var(--body); color: var(--muted); text-align: right; }
.rows .none { font-size: var(--body); color: var(--muted); }
.pills a.pill { cursor: pointer; } .pills a.pill:hover { background: var(--card-ink); color: var(--card); border-color: var(--card-ink); }
.pills .why { font-family: var(--sans); font-size: var(--body); letter-spacing: 0; text-transform: none; color: var(--muted); }
.pills .none { font-size: var(--body); color: var(--muted); }
.lab details { border-top: 1px solid var(--card-rule); }
.lab details:last-child { border-bottom: 1px solid var(--card-rule); }
.lab summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 16px 0; }
.lab summary::-webkit-details-marker { display: none; }
.lab summary::after { content: "[+]"; flex: none; }
.lab details[open] summary::after { content: "[\2212]"; }
.lab .d { padding: 0 0 20px; font-size: var(--body); line-height: 1.55; max-width: 64ch; }
table.kv { width: 100%; border-collapse: collapse; font-size: var(--body); }
.kv th { text-align: left; font-weight: 400; font-family: var(--mono); font-size: var(--label); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 12px 16px 12px 0; border-top: 1px solid var(--card-rule); width: 30%; vertical-align: top; }
.kv td { padding: 12px 0; border-top: 1px solid var(--card-rule); }
.kv tr:last-child th, .kv tr:last-child td { border-bottom: 1px solid var(--card-rule); }
.sources li { color: var(--muted); padding: 8px 0; border-top: 1px solid var(--card-rule); }
.sources li:last-child { border-bottom: 1px solid var(--card-rule); }
.sources li a:hover { color: inherit; }
.sources li span { margin-left: 10px; text-transform: none; letter-spacing: 0; font-family: var(--sans); font-size: var(--body); color: inherit; }
.pn { display: flex; justify-content: space-between; gap: 24px; padding: 8px 0 72px; }
.pn a { display: flex; flex-direction: column; gap: 6px; max-width: 45%; }
.pn a span:first-child { color: var(--muted); }
.pn a:hover span:last-child { text-decoration: underline; text-underline-offset: 3px; }
.pn .next { text-align: right; margin-left: auto; }

/* ---------- graphics ---------- */
.gs { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 72px; }
.g { margin: 0; }
.g figcaption { color: var(--muted); margin-bottom: 14px; font-weight: 500; }
/* the value sits inside the pill (user, 2026-11-01); the pill is centred on the range and never narrower than its text */
.sc { position: relative; padding: 18px 0 34px; }
.sc .track { position: relative; height: 1px; background: var(--card-line); }
.sc .band { position: absolute; top: -11px; height: 22px; min-width: max-content; box-sizing: border-box; padding: 0 11px; border-radius: 11px; background: var(--terra); transform: translateX(-50%); display: flex; align-items: center; justify-content: center; }
.sc .l { font-size: 10px; letter-spacing: .04em; line-height: 1; white-space: nowrap; color: #0d0d0d; }
.sc .t { position: absolute; top: 16px; transform: translateX(-50%); color: var(--muted); white-space: nowrap; }
.sc .t.first { transform: none; } .sc .t.last { transform: translateX(-100%); }
.sc .t .w { color: inherit; }
.tags { display: flex; flex-wrap: wrap; gap: 8px 18px; padding-top: 4px; }
.tag { display: inline-flex; align-items: center; gap: 8px; }
.ic { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.25; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ic.h { width: 14px; height: 14px; margin-right: 8px; vertical-align: -2px; }
.packs { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 28px 20px; align-items: end; }
.pack { margin: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 12px; min-height: 150px; }
.pack img { width: auto; opacity: .85; filter: var(--img-filter); }
.pack figcaption { color: var(--muted); text-align: center; }
.pnote { color: var(--muted); margin-top: 18px; max-width: 64ch; }
.vessels { display: flex; gap: 40px; align-items: flex-end; }
.vessels figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.vessels img { width: auto; opacity: .85; filter: var(--img-filter); }
.vessels figcaption { color: var(--muted); }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0 20px; }
.steps li { border-top: 1px solid currentColor; padding: 12px 0 8px; display: flex; flex-direction: column; gap: 6px; font-size: var(--body); }
.steps .n { color: var(--muted); }
.steps .d { color: var(--muted); }
.fill { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
.fill .fn { text-transform: none; letter-spacing: 0; font-family: var(--sans); font-size: var(--body); color: var(--muted); flex-basis: 100%; }

@media (max-width: 1100px) { .tickets { grid-template-columns: repeat(2, 1fr); } .tiles { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px) {
  .sheet-hero { grid-template-columns: 1fr; }
  .sheet-hero .pic { padding: 20px 20px 0; }
  .sheet .sec { grid-template-columns: 1fr; gap: 16px; padding: 32px 28px; }
  .lab-band .lab-t { padding: 32px 28px 12px; }
  .cols2 { grid-template-columns: 1fr; gap: 24px; }
  .landing .choices { grid-template-columns: 1fr; }
  .choice { min-height: 0; }
}
@media (max-width: 720px) {
  .kv.reg th, .kv.reg td { display: block; width: auto; }
  .kv.reg th { padding: 14px 0 4px; border-bottom: 0; }
  .kv.reg td { padding: 0 0 14px; border-top: 0; }
  .kv.reg tr { display: block; border-top: 1px solid var(--card-rule); }
  .kv.reg tr:last-child { border-bottom: 1px solid var(--card-rule); }
  .kv.reg tr:last-child th, .kv.reg tr:last-child td { border-bottom: 0; }
  .sc .t .w { display: none; }
  .wrap, .gridwrap { padding-left: 18px; padding-right: 18px; }
  .filters .wrap { padding-top: 20px; padding-bottom: 24px; }
  .search-w { width: 44px; margin-right: 2px; }
  .search-w:focus-within, .search-w.has-value { width: 150px; }
  .filters .wrap { gap: 10px 10px; }
  .tabs-c.scrolls .tnav { display: none; }   /* phones swipe; the chevrons would eat the row */
  .tabs-c.can-r .tabs { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); }
  .tabs-c.can-l .tabs { -webkit-mask-image: linear-gradient(90deg, transparent, #000 28px); mask-image: linear-gradient(90deg, transparent, #000 28px); }
  .tabs-c.can-l.can-r .tabs { -webkit-mask-image: linear-gradient(90deg, transparent, #000 28px, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, transparent, #000 28px, #000 calc(100% - 28px), transparent); }
  .pop { right: auto; left: 0; }
  .fgroup { grid-template-columns: 1fr; gap: 8px; }
  .fgroup .fl { padding-top: 0; }
  .score .n { white-space: normal; }
  .rows li { grid-template-columns: 1fr; }
  .rows .why { text-align: left; }
  .tickets { grid-template-columns: 1fr; gap: 22px; }
  .tk-body { min-height: 0; padding: 32px 24px 26px; }
  .tk-cta { padding-top: 40px; }
  .tiles { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .tile .cap { padding: 18px 16px 20px; }
  .tile .cap::before { left: 16px; right: 16px; }
  .tile .cap .t { font-size: 15px; }
  .tile .cap .s { margin-top: 10px; } .tile .cap .d { margin-top: 12px; }
  .tile .pic .notch-l, .tile .pic .notch-r { width: 20px; height: 15px; bottom: -8px; } .tile .pic .notch-l { left: -10px; } .tile .pic .notch-r { right: -10px; }
  .tile.text { padding: 0 10px; } .tile.text .in { left: 10px; right: 10px; top: 12%; }
  .sheet-hero .txt { padding: 24px 24px 28px; }
  .score { grid-template-columns: 1fr 42px; }
  .score .pips { grid-column: 1 / 2; }
  .score .v { grid-column: 2 / 3; grid-row: 2; }
  .score .n { grid-column: 1 / 3; }
  .gs { grid-template-columns: 1fr; gap: 24px; }
  .vessels { gap: 20px; }
  .packs { gap: 16px 22px; }
  .pn a { max-width: 48%; }
}

/* theme toggle: theme.js (shared with the site) inserts the button into .site-nav */
.theme-toggle { position: relative; width: 40px; height: 40px; padding: 0; flex: none; display: inline-grid; place-items: center; background: none; border: 1px solid var(--tile-line); border-radius: 999px; color: inherit; cursor: pointer; }
.theme-toggle:hover { border-color: var(--muted); }
.theme-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
.theme-switching, .theme-switching *, .theme-switching *::before, .theme-switching *::after { transition: background-color .3s ease, color .3s ease, border-color .3s ease !important; }

/* dark theme: page, header, text and cards follow; formulation tiles stay light (user) so the swatches always sit on stone */
:root[data-theme="dark"] { color-scheme: dark; --terra: #e9973c; --paper: #0d0d0d; --tile-page: #0d0d0d; --ink: #f4f2ed; --muted: #a9a69f; --tile-line: rgba(244, 242, 237, .22); --tile: #1b1a18; --shade: rgba(255,255,255,.07); --shade-2: rgba(255,255,255,.2); --img-filter: invert(1); --card: #1b1a18; --card-ink: #f4f2ed; --card-line: rgba(244, 242, 237, .4); --card-rule: rgba(255,255,255,.14); --card-hover: #232220; }
@media (prefers-color-scheme: dark) { :root:not([data-theme]) { color-scheme: dark; --terra: #e9973c; --paper: #0d0d0d; --tile-page: #0d0d0d; --ink: #f4f2ed; --muted: #a9a69f; --tile-line: rgba(244, 242, 237, .22); --tile: #1b1a18; --shade: rgba(255,255,255,.07); --shade-2: rgba(255,255,255,.2); --img-filter: invert(1); --card: #1b1a18; --card-ink: #f4f2ed; --card-line: rgba(244, 242, 237, .4); --card-rule: rgba(255,255,255,.14); --card-hover: #232220; } }

/* ---------- category pages (/markets/<slug>/): hero, starting points, rails on grey strips, packaging strip ---------- */
body.cat-page { background: var(--paper); color: var(--ink); }
.cat { padding-top: 28px; padding-bottom: 40px; }
.cat-page .notch-l, .cat-page .notch-r { background: var(--paper); }
.cat-hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; background: var(--tile-fixed); color: var(--tile-ink); border-radius: 18px; overflow: hidden; }
:root[data-theme="dark"] .cat-hero { background-color: var(--card); color: var(--card-ink); }
@media (prefers-color-scheme: dark) { :root:not([data-theme]) .cat-hero { background-color: var(--card); color: var(--card-ink); } }
.cat-photo { aspect-ratio: 4 / 3; align-self: stretch; min-height: 0; } .cat-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cat-text { padding: 48px 48px 48px 8px; min-height: 0; }
.cat-text h1 { font-family: var(--sans); font-weight: 500; font-size: clamp(40px, 4.5vw, 64px); letter-spacing: -.03em; line-height: .98; margin: 0 0 20px; }
.cat-text .lede { font-size: 17px; line-height: 1.5; max-width: 44ch; margin: 0; text-wrap: pretty; }
.cat-text .btn { margin-top: 32px; }
@media (min-width: 901px) {
  .cat-hero.photo { display: block; aspect-ratio: 2.58 / 1; background-image: var(--hero-img); background-position: left center; background-size: cover; background-repeat: no-repeat; color: var(--tile-ink); }
  .cat-hero.photo .cat-photo { display: none; }
  .cat-hero.photo .cat-text { position: relative; margin-left: 50%; padding: 0 56px 0 24px; height: 100%; display: flex; flex-direction: column; justify-content: center; }
  .cat-hero.photo .cat-text .lede { max-width: 40ch; }
  .cat-hero.photo .cat-text .btn { align-self: flex-start; }
}
.cat-sec { margin-top: 64px; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 44px; }
.sec-head:not(:has(p)) { margin-bottom: 20px; }
.sec-head h2 { font-family: var(--sans); font-size: 38px; letter-spacing: -.02em; line-height: 1.1; text-transform: none; color: var(--ink); font-weight: 500; margin: 0; }
.sec-head p { margin: 14px 0 0; font-size: 16px; line-height: 1.5; color: var(--card-ink); max-width: 72ch; text-wrap: pretty; }
.sec-head .more { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); text-decoration: underline; text-underline-offset: 4px; white-space: nowrap; }
.coming .sec-head p { max-width: 60ch; }
/* rails */
.rail-wrap { position: relative; }
.rail { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x proximity; scroll-padding-inline: 4px; scrollbar-width: none; padding: 4px 4px 12px; margin: -4px -4px 0; }
.rail-wrap.can-r .rail { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 56px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 56px), transparent); }
.rail-wrap.can-l .rail { -webkit-mask-image: linear-gradient(90deg, transparent, #000 56px); mask-image: linear-gradient(90deg, transparent, #000 56px); }
.rail-wrap.can-l.can-r .rail { -webkit-mask-image: linear-gradient(90deg, transparent, #000 56px, #000 calc(100% - 56px), transparent); mask-image: linear-gradient(90deg, transparent, #000 56px, #000 calc(100% - 56px), transparent); }
.rail::-webkit-scrollbar { display: none; }
.rail > * { flex: 0 0 auto; scroll-snap-align: start; }
.rail.dragging { scroll-snap-type: none; cursor: grabbing; }
.rail .tile { width: 250px; } .rail .tk { width: 320px; } .rail .tk .tk-body { min-height: 0; }
.rail-wrap .tnav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; display: inline-flex; background: var(--tile-page); }
.rail-wrap .tnav.prev { left: -16px; } .rail-wrap .tnav.next { right: -16px; }
/* grey strips: actives rail and packaging */
.cat-sec.band-grey { width: 100vw; margin-left: calc(50% - 50vw); padding: 64px 0 72px; background: var(--tile-fixed); color: var(--tile-ink); --paper: var(--tile-fixed); --tile-page: var(--tile-fixed); }
:root[data-theme="dark"] .cat-sec.band-grey { background: var(--card); color: var(--card-ink); --paper: var(--card); --tile-page: var(--card); }
@media (prefers-color-scheme: dark) { :root:not([data-theme]) .cat-sec.band-grey { background: var(--card); color: var(--card-ink); --paper: var(--card); --tile-page: var(--card); } }
.cat-sec.band-grey > .sec-head, .cat-sec.band-grey > .rail-wrap { max-width: 1320px; margin-left: auto; margin-right: auto; padding-left: 40px; padding-right: 40px; box-sizing: border-box; }
.cat-sec.band-grey .rail-wrap .tnav.prev { left: 24px; } .cat-sec.band-grey .rail-wrap .tnav.next { right: 24px; }
.cat-sec.band-grey + .cat-sec { margin-top: 72px; }
.cat-sec.band-grey .rail.actives { --card: #f4f1ea; --card-hover: #faf9f6; }
:root[data-theme="dark"] .cat-sec.band-grey .rail.actives { --card: #232220; --card-hover: #2a2927; }
@media (prefers-color-scheme: dark) { :root:not([data-theme]) .cat-sec.band-grey .rail.actives { --card: #232220; --card-hover: #2a2927; } }
.cat-sec.pack-strip { width: 100vw; margin-left: calc(50% - 50vw); background: var(--tile-fixed); color: var(--tile-ink); padding: 56px 0 60px; }
:root[data-theme="dark"] .cat-sec.pack-strip { background: var(--card); color: var(--card-ink); }
@media (prefers-color-scheme: dark) { :root:not([data-theme]) .cat-sec.pack-strip { background: var(--card); color: var(--card-ink); } }
.cat-sec.pack-strip .make-tiles { max-width: 1320px; margin: 0 auto; padding: 0 40px; box-sizing: border-box; }
.cat-sec.pack-strip + .cat-sec { margin-top: 72px; }
.mt.pack { display: grid; grid-template-columns: minmax(0, 44ch) 1fr; align-items: center; column-gap: clamp(48px, 6vw, 96px); }
.mt.pack h2 { font-family: var(--sans); font-size: 38px; letter-spacing: -.02em; line-height: 1.1; font-weight: 500; color: var(--ink); margin: 0 0 16px; }
.mt.pack p { margin: 0; max-width: 40ch; font-size: 16px; line-height: 1.5; }
.shelf { display: flex; gap: 28px; align-items: flex-end; flex-wrap: wrap; }
.shelf figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.shelf img { opacity: .85; filter: var(--img-filter); }
.shelf figcaption { font-family: var(--mono); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
/* starting points: an index and one formula sheet at a time. One typeface throughout: size and tone carry the
   hierarchy, and the chosen recipe is ink while the others sit back in the muted grey (user, 2026-11-17) */
.sp { display: grid; grid-template-columns: 300px 1fr; gap: 32px; align-items: start; }
.sp-index { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--tile-line); }
.sp-index button { width: 100%; display: block; padding: 13px 0; border: 0; border-bottom: 1px solid var(--tile-line); background: none; color: var(--muted); text-align: left; cursor: pointer; font-family: var(--sans); font-size: 16px; line-height: 1.2; transition: color .15s; }
.sp-index button:hover, .sp-index button.is-on { color: var(--ink); }
.sp-sheet { display: none; background: var(--card); color: var(--card-ink); border-radius: 18px; padding: 36px 40px 36px; }
.sp-sheet.is-on { display: block; }
.sp-sheets.ink .sp-sheet { background: #1b1a18; color: #f4f2ed; --muted: #a9a69f; --card-rule: rgba(255,255,255,.14); --img-filter: invert(1); }
:root[data-theme="dark"] .sp-sheets.ink .sp-sheet { background: var(--card); color: var(--card-ink); }
@media (prefers-color-scheme: dark) { :root:not([data-theme]) .sp-sheets.ink .sp-sheet { background: var(--card); color: var(--card-ink); } }
.formula { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 18px 14px; }
.fx { margin: 0; width: 128px; flex: none; display: block; color: inherit; text-decoration: none; }
.fx .pic img { transition: transform .5s ease; } .fx:hover .pic img { transform: scale(1.07); } .fx:hover .cap b { text-decoration: underline; text-underline-offset: 3px; }
.fx .pic { display: grid; place-items: center; width: 128px; height: 128px; background: var(--tile-fixed); border-radius: 14px; overflow: hidden; }
.fx.base .pic img { width: 74%; height: auto; } .fx.act .pic img { width: 100%; height: auto; }
.fx .cap { display: block; margin-top: 12px; line-height: 1.35; }
.fx .cap b { display: block; font-weight: 500; font-size: 14px; } .fx .cap span { display: block; margin-top: 3px; font-size: 13px; color: var(--muted); }
.fx .cap span::first-letter { text-transform: uppercase; }
.op { font-weight: 300; font-size: 22px; color: var(--muted); width: 22px; height: 128px; display: grid; place-items: center; flex: none; }
.result { margin: 0 0 30px; padding-bottom: 26px; border-bottom: 1px solid var(--card-rule); }
.result h3 { margin: 0; font-family: var(--sans); font-weight: 500; font-size: 28px; letter-spacing: -.015em; line-height: 1.15; }
/* the paragraph uses the card's full width so it sits on two lines on a desktop, the two kept even (user, 2026-11-17) */
.result p { margin: 12px 0 0; font-size: 15px; line-height: 1.55; }
@media (min-width: 901px) { .result p { text-wrap: balance; } }
.sp-facts { margin: 32px 0 0; padding-top: 22px; border-top: 1px solid var(--card-rule); display: flex; flex-wrap: wrap; gap: 18px 44px; }
.sp-facts div { margin: 0; } .sp-facts dt { font-size: 13px; color: var(--muted); }
.sp-facts dd { margin: 6px 0 0; font-size: 15px; display: flex; align-items: center; gap: 10px; }
.sp-facts dd img { height: 26px; width: auto; opacity: .85; filter: var(--img-filter); }
.sp-facts div.good dd { display: block; line-height: 1.7; }
.result + .sp-facts { border-top: 0; padding-top: 0; margin-top: 0; }
/* good to know, related, cta */
.know table { width: 100%; border-collapse: collapse; }
.know .kv th, .know .kv td { border-color: var(--tile-line); } .know .kv td { padding-right: 0; }
.related { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.rel { display: block; color: var(--ink); text-decoration: none; } .rel img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; display: block; transition: transform .5s ease; }
.rel span { display: block; margin-top: 12px; font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.rel:hover span { text-decoration: underline; text-underline-offset: 4px; }
/* closing brief card: dark in both themes (ink on the light page, the panel grey on the dark one) with the
   gold gum branch from /brief screened into its right side; copy and button on the left (user, 2026-11-17) */
.cta-band { position: relative; overflow: hidden; isolation: isolate; margin: 72px 0 24px; background: #0d0d0d; color: #f4f2ed; border-radius: 18px; padding: 64px 56px; display: flex; flex-direction: column; align-items: flex-start; gap: 32px; }
:root[data-theme="dark"] .cta-band { background: var(--card); }
@media (prefers-color-scheme: dark) { :root:not([data-theme]) .cta-band { background: var(--card); } }
.cta-band::after { content: ""; position: absolute; z-index: -1; top: 0; right: 0; bottom: 0; width: 58%; background: url(/assets/imagery/brief-botanical-a-dark.webp) right top / auto 165% no-repeat; mix-blend-mode: screen; pointer-events: none; -webkit-mask-image: linear-gradient(90deg, transparent, #000 28%); mask-image: linear-gradient(90deg, transparent, #000 28%); }
.cta-band > div { max-width: 56%; }
.cta-band h2 { font-family: var(--sans); font-weight: 500; font-size: 38px; letter-spacing: -.02em; line-height: 1.1; margin: 0; }
.cta-band p { margin: 12px 0 0; opacity: .75; max-width: 44ch; }
@media (max-width: 1100px) { .cta-band::after { width: 50%; } }
.btn-stone { background: #ead9cc; color: #0d0d0d; } .btn-stone:hover { background: #e3cdbc; }   /* the warm tan of the hero walls */
@media (max-width: 900px) {
  .cat { padding-top: 16px; } .wrap > .sheet { margin-top: 16px; }
  .cat-hero { grid-template-columns: 1fr; gap: 0; } .cat-text { padding: 32px 28px 36px; } .cat-text .lede { max-width: none; }
  .cat-sec { margin-top: 48px; } .sec-head { flex-direction: column; align-items: flex-start; gap: 14px; margin-bottom: 28px; } .sec-head h2 { font-size: 30px; }
  .rail-wrap .tnav { display: none; }
  .cat-sec.band-grey > .sec-head, .cat-sec.band-grey > .rail-wrap, .cat-sec.pack-strip .make-tiles { padding-left: 24px; padding-right: 24px; }
  .cat-sec.band-grey { padding: 44px 0 52px; }
  .mt.pack { grid-template-columns: 1fr; } .mt.pack .shelf { padding-top: 28px; justify-content: space-between; gap: 16px; }
  .sp { grid-template-columns: 1fr; }
  .sp-index { display: flex; gap: 8px; overflow-x: auto; border: 0; padding: 2px; scrollbar-width: none; } .sp-index::-webkit-scrollbar { display: none; } .sp-index li { flex: none; }
  .sp-index button { width: auto; padding: 8px 15px; border: 1px solid var(--tile-line); border-radius: 999px; font-size: 14px; line-height: 1.2; color: var(--ink); }
  .sp-index button.is-on { background: var(--ink); color: var(--tile-page); }
  .sp-sheet { padding: 24px 22px 26px; } .result h3 { font-size: 24px; }
  /* the sheets sit side by side, one to a screen, and slide out to the screen edges (user, 2026-11-17). catalogue.js
     moves them all by --sp-x rather than leaving it to scroll snapping, which in Safari could rest a little off
     centre (user, 2026-11-18); the box is clipped sideways only, so a taller sheet coming in is never cut off */
  .sp-sheets { --g: 40px; --sp-ease: cubic-bezier(.22, 1, .36, 1); display: flex; align-items: flex-start; gap: var(--g); min-width: 0; margin: 0 calc(-1 * var(--g)); padding: 0 var(--g); overflow: hidden; overflow: clip visible; position: relative; z-index: 1; touch-action: pan-y pinch-zoom; transition: height .45s var(--sp-ease); }
  .sp-sheet, .sp-sheet.is-on { display: block; flex: 0 0 100%; transform: translate3d(var(--sp-x, 0px), 0, 0); transition: transform var(--sp-t, 0ms) var(--sp-ease); will-change: transform; }
  /* four ingredients stay on one row (user, 2026-11-17) */
  .formula { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px 12px; } .fx { width: auto; } .fx .pic { width: 100%; height: auto; aspect-ratio: 1; } .op { display: none; }
  .related { grid-template-columns: 1fr; }
  .cta-band { padding: 48px 36px; gap: 28px; } .cta-band > div { max-width: 60%; } .cta-band::after { width: 48%; background-size: auto 150%; } .cta-band h2 { font-size: 30px; }
}
/* phones: the branch hangs above the heading */
@media (max-width: 600px) {
  .cta-band { padding: 184px 28px 36px; gap: 26px; } .cta-band > div { max-width: none; }
  .cta-band::after { left: 0; width: auto; bottom: auto; height: 236px; background-size: auto 100%; background-position: right top; -webkit-mask-image: linear-gradient(180deg, #000 75%, transparent); mask-image: linear-gradient(180deg, #000 75%, transparent); }
}
/* rail tickets on category pages: no Learn more; hover = bottle grows and the name underlines, like the formulation tiles */
.rail .tk .tk-cta { display: none; }
.rail .tk .tk-body { min-height: 0; padding: 30px 30px 34px; }
.rail .tk .tk-rule { margin: 16px 0 22px; }
.rail .tk .tk-desc { margin: 0; }
.rail .tk:hover { background: var(--card); }
.rail .tk:hover .tk-name { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }

/* category pages: review fixes */
@media (max-width: 480px) { .site-nav .btn { display: none; } }
@media (max-width: 900px) { .mt.pack .shelf { justify-content: flex-start; gap: 24px 28px; } }

/* review fixes, round two */
@media (min-width: 481px) { .mobile-menu .btn { display: none; } }
@media (max-width: 1100px) { .site-nav { gap: 22px; } }
@media (min-width: 901px) and (max-width: 1180px) { .formula { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px 12px; } .fx { width: auto; } .fx .pic { width: 100%; height: auto; aspect-ratio: 1; } .op { display: none; } }
@media (min-width: 901px) and (max-width: 1100px) { .cat-hero.photo .cat-text { justify-content: flex-start; padding-top: 6%; } }
@media (max-width: 900px) { .mt.pack h2 { font-size: 30px; } .rail-wrap .rail { -webkit-mask-image: none; mask-image: none; } }
@media (max-width: 720px) { .cat-sec.band-grey > .sec-head, .cat-sec.band-grey > .rail-wrap, .cat-sec.pack-strip .make-tiles { padding-left: 18px; padding-right: 18px; } }
@media (max-width: 720px) { .sp-sheets { --g: 18px; } }
@media (prefers-reduced-motion: reduce) { .sp-sheets, .sp-sheet { transition: none !important; } }
/* on phones the four-across labels shrink a touch with the tile so the longest names (Bemotrizinol) still fit */
@media (max-width: 560px) {
  .formula { gap: 14px 8px; } .fx { container-type: inline-size; } .fx .cap { margin-top: 10px; }
  .fx .cap b { font-size: 12px; font-size: clamp(10.5px, calc(100cqi / 6.4), 12px); } .fx .cap span { font-size: 11px; line-height: 1.3; }
}
@media (max-width: 340px) { .formula { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* the overlay hero keeps dark type over its light photograph whatever the theme */
@media (min-width: 901px) {
  .cat-hero.photo .cat-text, :root[data-theme="dark"] .cat-hero.photo .cat-text { color: #1c1c1a; }
  @media (prefers-color-scheme: dark) { :root:not([data-theme]) .cat-hero.photo .cat-text { color: #1c1c1a; } }
}
@media (min-width: 901px) { .mt.pack .shelf { flex-wrap: nowrap; } }
@media (min-width: 901px) and (max-width: 1180px) { .mt.pack { grid-template-columns: minmax(0, 1fr) auto; column-gap: 48px; } }
/* Retina heroes: the 2x file only where image-set() is understood */
@supports (background-image: image-set(url("a.jpg") 1x)) { @media (min-width: 901px) { .cat-hero.photo { background-image: var(--hero-img-2x, var(--hero-img)); } } }
/* packaging shelf: equal columns so the drawings sit evenly, whatever their caption length */
@media (min-width: 901px) { .mt.pack .shelf { display: grid; grid-auto-flow: column; grid-auto-columns: 96px; gap: 12px; align-items: end; justify-items: center; justify-self: center; } .mt.pack .shelf figcaption { white-space: nowrap; } }
@media (min-width: 901px) and (max-width: 1180px) { .mt.pack { grid-template-columns: 1fr; row-gap: 32px; } .mt.pack .shelf { justify-content: start; } }


/* Market page banners and related cards: product groups on cream, with a dark twin of each in the
   dark theme. Each page gives its banners as --hero-img(-2x) and --hero-img-dark(-2x). */
/* The card takes the picture's cream: behind the banner while it loads, and as the text panel on phones */
.cat-hero.cat-hero-group { background-color: #f4f1ea; color: #1c1c1a; }
/* .cat-photo img and .rel img set display: block, so the swap needs the extra weight.
   The picture that is not shown is loading="lazy", so it is not downloaded. */
.cat-photo img.only-dark, .rel img.only-dark { display: none; }
:root[data-theme="dark"] .cat-photo img.only-light, :root[data-theme="dark"] .rel img.only-light { display: none; }
:root[data-theme="dark"] .cat-photo img.only-dark, :root[data-theme="dark"] .rel img.only-dark { display: block; }
:root[data-theme="dark"] .cat-hero.cat-hero-group { --hero-img: var(--hero-img-dark) !important; --hero-img-2x: var(--hero-img-dark-2x, var(--hero-img-dark)) !important; background-color: #0d0d0d; color: #f4f2ed; }
:root[data-theme="dark"] .cat-hero.photo.cat-hero-group .cat-text { color: #f4f2ed; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .cat-photo img.only-light, :root:not([data-theme]) .rel img.only-light { display: none; }
  :root:not([data-theme]) .cat-photo img.only-dark, :root:not([data-theme]) .rel img.only-dark { display: block; }
  :root:not([data-theme]) .cat-hero.cat-hero-group { --hero-img: var(--hero-img-dark) !important; --hero-img-2x: var(--hero-img-dark-2x, var(--hero-img-dark)) !important; background-color: #0d0d0d; color: #f4f2ed; }
  :root:not([data-theme]) .cat-hero.photo.cat-hero-group .cat-text { color: #f4f2ed; }
}


/* Product page alignment: the product group starts on the line the text below it starts on.
   Each page gives, on its .cat-hero, the share of the picture's width that is empty ground left of the
   group: --group-left for the wide banner, --group-left-stack for the 4:3 picture of the stacked layout.
   The picture moves left by that share of its own width, so the edge holds at every width, and the light
   and dark pictures share the number. A page without the number has an invalid var() and nothing moves. */
@media (min-width: 901px) {
  /* the banner moves from the card's background to a layer of the same size, shifted left; the first
     24px left of the group stay visible so the soft ground glow is not cut */
  .cat-hero.photo.cat-hero-group { position: relative; overflow: visible; background-image: none; }
  .cat-hero.photo.cat-hero-group::before { content: ""; position: absolute; top: 0; bottom: 0; left: calc(var(--group-left) * -100%); width: 100%; background: var(--hero-img) left center / cover no-repeat; clip-path: inset(0 0 0 calc(var(--group-left) * 100% - 24px)); pointer-events: none; }
}
@supports (background-image: image-set(url("a.jpg") 1x)) { @media (min-width: 901px) { .cat-hero.photo.cat-hero-group::before { background-image: var(--hero-img-2x, var(--hero-img)); } } }
@media (max-width: 900px) {
  /* stacked: one edge. The hero copy drops its side padding, so the title, intro and button start where the
     section headings below start, and the picture is moved so the group starts on that same line. The card
     is the page colour, so it can show the 16px of soft ground glow left of the line instead of cutting it. */
  .cat-hero.cat-hero-group { overflow: visible; }
  .cat-hero.cat-hero-group .cat-text { padding-left: 0; padding-right: 0; }
  .cat-hero.cat-hero-group .cat-photo img { position: relative; left: calc(var(--group-left-stack) * -100%); clip-path: inset(0 0 0 calc(var(--group-left-stack) * 100% - 16px)); }
}

/* The market banners are full photographs now. In the light theme the photograph takes the card's own
   rounded corners (18px, as .cat-hero); the dark twins fade to the page colour at their frame and need none. */
@media (min-width: 901px) { :root:not([data-theme="dark"]) .cat-hero.photo.cat-hero-group::before { border-radius: 18px; } }
@media (max-width: 900px) { :root:not([data-theme="dark"]) .cat-hero.cat-hero-group .cat-photo img { border-radius: 18px; } }
