/* Surfacing feelings pages. GENERATED by scripts/build-feelings.mjs; edit there.
   Layout: wheel-led hero, color-keyed family cards that open a family sheet, a lettered body map,
   family sub-pages; print = numbered reference sheets with an A to Z index. */
:root { --ink: #0B1424; --f-gap: 18px; }
.f-wrap { max-width: 1160px; margin: 0 auto; padding-inline: 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.print-only, .print-head, .print-band, .print-prompts { display: none; }
.fnum { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding-inline: 6px; border-radius: 999px; background: var(--c, var(--teal)); color: var(--ink); font-size: 12px; font-weight: 800; font-variant-numeric: tabular-nums; flex: none; }
.fnum.sq { border-radius: 6px; }
.crumbs { display: flex; gap: 8px; font-size: 14px; color: var(--text3); }
.crumbs a { color: var(--text2); }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }

/* hero */
.f-hero { padding-block: calc(var(--nav-h) + 40px) 40px; }
.f-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 460px); grid-template-areas: "copy wheel" "actions wheel"; column-gap: 56px; align-items: center; }
.f-hero-copy { grid-area: copy; align-self: end; }
.f-wheel-wrap { grid-area: wheel; }
.f-hero-actions { grid-area: actions; align-self: start; }
.f-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; color: var(--teal); margin-bottom: 14px; }
.f-hero h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); font-weight: 900; letter-spacing: -2px; line-height: 1.02; text-wrap: balance; }
.f-hero h1 em { font-style: normal; background: linear-gradient(90deg, #9D86FF, #E07BAE 30%, #F5CC55 62%, #4ECDC4); -webkit-background-clip: text; background-clip: text; color: transparent; }
.f-lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--text2); line-height: 1.7; max-width: 520px; margin-top: 20px; }
.f-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 28px; }
.f-free { margin-top: 14px; font-size: 14px; color: var(--text3); max-width: 520px; }
.f-free strong { color: var(--text); font-weight: 600; }
.f-wheel { width: 100%; height: auto; display: block; overflow: visible; }
.w-slice path { fill: var(--c); opacity: .9; transition: opacity .2s, transform .25s; transform-origin: 0 0; }
.w-slice text { fill: var(--ink); font: 700 13px var(--font); text-anchor: middle; pointer-events: none; }
.w-slice:hover path, .w-slice:focus-visible path { opacity: 1; transform: scale(1.035); }
.w-slice:focus-visible { outline: none; }
.w-slice:focus-visible path { stroke: #fff; stroke-width: 2.5; }
.w-hub { fill: var(--bg); stroke: var(--border2); }
.w-big, .w-hname { fill: var(--text); text-anchor: middle; }
.w-big { font: 900 40px var(--font); letter-spacing: -1px; }
.w-hname { font: 800 18px var(--font); }
.w-small, .w-hcount { fill: var(--text3); font: 600 13px var(--font); text-anchor: middle; letter-spacing: 1.5px; text-transform: uppercase; }
.f-wheel-note { text-align: center; font-size: 13px; color: var(--text3); margin-top: 6px; }

/* sticky tools */
.f-tools { position: sticky; top: var(--nav-h); z-index: 20; background: rgba(5,13,30,0.92); backdrop-filter: blur(12px); border-block: 1px solid var(--border2); padding-block: 12px; }
.f-tools-row { display: flex; gap: 10px; }
.f-search, .f-jump { font: inherit; font-size: 16px; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); outline: none; min-height: 46px; }
.f-search { flex: 1 1 auto; min-width: 0; padding-inline: 14px; }
.f-jump { flex: 0 0 250px; padding-inline: 12px; cursor: pointer; }
.f-search:focus, .f-jump:focus { border-color: var(--teal); }
.f-status { font-size: 13px; color: var(--text3); margin-top: 6px; }
.f-status:empty { display: none; }

/* sections */
.f-section-head { margin-top: 64px; }
.f-section-title { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; letter-spacing: -0.8px; text-wrap: balance; }
.f-section-sub { color: var(--text2); max-width: 640px; margin-top: 8px; line-height: 1.7; }

/* family cards */
.fgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--f-gap); padding-block: 26px 8px; align-items: stretch; }
.fcat { position: relative; display: flex; flex-direction: column; padding: 20px 20px 14px; border-radius: var(--radius-lg); scroll-margin-top: calc(var(--nav-h) + 96px);
  background: linear-gradient(180deg, color-mix(in srgb, var(--c) 12%, var(--surface)) 0, var(--surface) 110px); border: 1px solid color-mix(in srgb, var(--c) 22%, var(--border2)); }
.fgrid .fcat:last-child:nth-child(3n + 1) { grid-column: 1 / -1; }
.fcat header, .bm-panel header { display: flex; align-items: baseline; gap: 12px; }
.fcat h3, .bm-panel h3 { font-size: 18px; font-weight: 800; letter-spacing: -0.3px; display: flex; align-items: center; gap: 10px; flex: 1 1 auto; min-width: 0; }
.fcount { font-size: 12px; font-weight: 600; color: var(--text3); white-space: nowrap; font-variant-numeric: tabular-nums; }
.chev, .row-open, .pcount { display: none; }
.fdesc { font-size: 14px; color: var(--text2); margin-top: 6px; line-height: 1.55; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.chips li { font-size: 14px; color: var(--text); background: color-mix(in srgb, var(--c, var(--teal)) 13%, transparent); border-radius: 7px; padding: 5px 10px; line-height: 1.35; }
.chips li.hit { background: var(--c, var(--teal)); color: var(--ink); font-weight: 600; }
.chips li.weak { background: color-mix(in srgb, var(--c, var(--teal)) 30%, transparent); }
.js .fgrid .chips li.extra { display: none; }
.card-foot { margin-top: auto; padding-top: 14px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.more, .open-page { font: inherit; font-size: 13.5px; font-weight: 700; color: var(--c); background: none; border: 0; padding: 6px 0; cursor: pointer; }
.open-page { color: var(--text2); }
.all-shown { font-size: 13.5px; color: var(--text3); }
.more:hover, .open-page:hover { text-decoration: underline; opacity: 1; }
html:not(.js) .more { display: none; }

/* body map */
#body-map-section { scroll-margin-top: calc(var(--nav-h) + 80px); }
.bodymap { display: grid; grid-template-columns: minmax(240px, 320px) minmax(0, 1fr); gap: 40px; align-items: start; margin-top: 28px; }
.bm-figure-wrap { position: sticky; top: calc(var(--nav-h) + 96px); padding: 12px 6px; border-radius: 28px; background: radial-gradient(closest-side, rgba(78,205,196,0.10), transparent); }
.body-figure { width: 100%; height: auto; display: block; overflow: visible; }
.body-figure .fig > * { fill: url(#fg); stroke: #2a4a80; stroke-width: 1.2; }
.body-figure .zone { fill: url(#zg); stroke: #4ECDC4; stroke-opacity: .35; stroke-width: .8; opacity: .45; cursor: pointer; transition: opacity .2s; }
.body-figure .zone:hover { opacity: .75; }
.body-figure .zone.on { opacity: 1; stroke-opacity: .9; animation: zpulse 2.4s ease-in-out infinite; }
.callout line { stroke: #4ECDC4; stroke-opacity: .35; stroke-width: 1; }
.callout circle { fill: var(--surface2); stroke: #4ECDC4; stroke-opacity: .5; }
.callout text { fill: var(--text2); font: 800 11px var(--font); text-anchor: middle; }
.callout.on line { stroke-opacity: .9; }
.callout.on circle { fill: #4ECDC4; stroke-opacity: 1; }
.callout.on text { fill: var(--ink); }
@keyframes zpulse { 50% { opacity: .65; } }
@media (prefers-reduced-motion: reduce) { .body-figure .zone.on { animation: none; } .w-slice path, .sheet-panel, .sheet-backdrop, .nb-card { transition: none !important; } }
.bm-hint { text-align: center; font-size: 13px; color: var(--text3); margin-top: 6px; }
.bm-group-label { font-size: 12px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--text3); margin-bottom: 10px; }
.bm-panels.located + .bm-group-label { margin-top: 26px; }
.rbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.rb { display: inline-flex; align-items: center; gap: 8px; font: inherit; font-size: 14px; font-weight: 600; color: var(--text2); background: var(--surface); border: 1px solid var(--border2); border-radius: 999px; padding: 6px 14px 6px 6px; cursor: pointer; transition: border-color .15s, color .15s; min-height: 38px; }
.rb b { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 6px; background: var(--surface2); color: var(--text); font-size: 12px; }
.rb:hover { border-color: var(--teal); color: var(--text); }
.rb.on { background: var(--teal); border-color: var(--teal); color: var(--ink); }
.rb.on b { background: var(--ink); color: var(--teal); }
html:not(.js) .rbs, html:not(.js) .bm-group-label, html:not(.js) .bm-hint { display: none; }
.bm-select { display: none; width: 100%; margin-bottom: 14px; }
.bm-panel { --c: var(--teal); padding: 20px; border-radius: var(--radius-lg); scroll-margin-top: calc(var(--nav-h) + 90px); background: linear-gradient(180deg, rgba(78,205,196,0.10) 0, var(--surface) 110px); border: 1px solid rgba(78,205,196,0.28); }
.js .bm-panel { display: none; }
.js .bm-panel.active { display: block; }
.js .bm-panels:not(:has(.active)) { display: none; }

/* how to use + cta */
.f-why { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; margin-top: 24px; }
.f-why div { background: var(--surface); border: 1px solid var(--border2); border-radius: var(--radius-lg); padding: 22px; }
.f-why h4 { font-size: 16px; margin-bottom: 8px; }
.f-why p { font-size: 14.5px; color: var(--text2); line-height: 1.7; }
.f-cta { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: center; margin-block: 80px 96px; padding: 32px 36px; border-radius: 24px; background: linear-gradient(120deg, rgba(78,205,196,0.10), rgba(59,142,240,0.08)); border: 1px solid var(--border2); }
.f-cta h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); font-weight: 800; letter-spacing: -0.6px; }
.f-cta p { color: var(--text2); margin-top: 8px; max-width: 560px; line-height: 1.65; }
.f-cta .btn { white-space: nowrap; align-self: center; }

/* family sheet (desktop side panel, phone bottom sheet) */
html.sheet-open, html.sheet-open body { overflow: hidden; }
html.sheet-open body { position: fixed; left: 0; right: 0; }
.sheet { position: fixed; inset: 0; z-index: 1100; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(2,6,16,0.6); opacity: 0; transition: opacity .2s; }
.sheet-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(520px, 100%); overflow-y: auto; overscroll-behavior: contain; padding: 28px 28px calc(28px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(180deg, color-mix(in srgb, var(--c) 16%, var(--surface)) 0, var(--surface) 200px); border-left: 1px solid color-mix(in srgb, var(--c) 35%, var(--border)); transform: translateX(30px); opacity: 0; transition: transform .22s ease, opacity .22s ease; outline: none; }
.sheet.in .sheet-backdrop { opacity: 1; }
.sheet.in .sheet-panel { transform: none; opacity: 1; }
.sheet-grip { display: none; }
.sheet-close { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border2); background: var(--surface); color: var(--text); font-size: 24px; line-height: 1; cursor: pointer; }
.sheet-kicker { display: flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--text2); }
.sheet-body h2 { font-size: 2rem; font-weight: 900; letter-spacing: -1px; margin-top: 10px; padding-right: 40px; }
.sheet-desc { color: var(--text); font-size: 1.05rem; margin-top: 6px; }
.sheet-count { color: var(--text3); font-size: 13px; margin-top: 6px; }
.sheet-chips li { padding: 0; background: none; }
.word { font: inherit; font-size: 15px; font-weight: 500; color: var(--text); background: color-mix(in srgb, var(--c) 18%, var(--surface)); border: 1px solid color-mix(in srgb, var(--c) 35%, transparent); border-radius: 8px; padding: 7px 12px; min-height: 38px; cursor: pointer; transition: border-color .15s, background .15s; }
.word:hover { border-color: var(--c); }
.word.picked { background: color-mix(in srgb, var(--c) 34%, var(--surface)); }
.sheet-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.sheet-nav-label { font-size: 12px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--text3); margin-top: 26px; }
.sheet-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.sheet-nb { display: flex; align-items: center; gap: 8px; font: inherit; font-size: 14px; font-weight: 700; color: var(--text); background: var(--surface); border: 1px solid color-mix(in srgb, var(--c) 40%, var(--border2)); border-radius: 12px; padding: 10px 12px; cursor: pointer; text-align: left; }
.sheet-nb:last-child { justify-content: flex-end; text-align: right; }

/* toast */
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 20px); opacity: 0; background: var(--text); color: var(--bg); font-weight: 600; font-size: 14px; padding: 10px 16px; border-radius: 999px; transition: opacity .2s, transform .2s; pointer-events: none; z-index: 1200; white-space: nowrap; max-width: calc(100vw - 32px); overflow: hidden; text-overflow: ellipsis; }
html.sheet-open .toast { left: auto; right: calc(min(520px, 100%) / 2); transform: translate(50%, 20px); }
html.sheet-open .toast.show { transform: translate(50%, 0); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* family pages */
.fam-page main, .wheel-page main { padding-top: calc(var(--nav-h) + 28px); }
.fam-hero { display: grid; grid-template-columns: minmax(0, 1fr) 230px; gap: 40px; align-items: center; margin-top: 22px; padding: 36px; border-radius: 28px;
  background: radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--c) 24%, transparent), transparent 60%), var(--surface); border: 1px solid color-mix(in srgb, var(--c) 30%, var(--border2)); }
.fam-kicker { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--text2); }
.fam-hero h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); font-weight: 900; letter-spacing: -1.5px; line-height: 1.05; margin-top: 12px; text-wrap: balance; }
.fam-kicker .ks { display: none; }
.fam-tip { color: var(--text3); font-size: 13px; margin-top: 14px; }
.fam-desc { font-size: clamp(1.1rem, 1.8vw, 1.3rem); color: var(--text); margin-top: 12px; max-width: 560px; line-height: 1.5; }
.fam-wheel p { font-size: 13px; color: var(--text2); text-align: center; margin-top: 8px; }
.w-mini .w-slice path { opacity: .82; }
.w-mini .w-slice:hover path, .w-mini .w-slice:focus-visible path { opacity: 1; }
.w-mini .w-slice.here path { opacity: 1; transform: scale(1.09); stroke: #fff; stroke-width: 4; paint-order: stroke; }
/* the site stylesheet pads every <section> 100px; these sections set their own spacing */
.fam-words, .fam-near, .fam-all, .print-prompts, .az { padding: 0; }
.fam-words, .fam-near, .fam-all { margin-top: 48px; }
.fam-words h2, .fam-near h2, .fam-all h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); font-weight: 800; letter-spacing: -0.6px; }
.fam-intro { color: var(--text2); max-width: 720px; line-height: 1.75; margin-top: 10px; }
.chips.big { gap: 8px; margin-top: 20px; }
.chips.big li { padding: 0; background: none; }
.chips.big .word { font-size: 17px; padding: 9px 15px; min-height: 44px; }
.nb-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 18px; }
.nb-card { display: grid; gap: 8px; padding: 20px 22px; border-radius: var(--radius-lg); color: var(--text); background: linear-gradient(180deg, color-mix(in srgb, var(--c) 14%, var(--surface)) 0, var(--surface) 100px); border: 1px solid color-mix(in srgb, var(--c) 30%, var(--border2)); transition: border-color .15s, transform .15s; }
.nb-card:hover { border-color: var(--c); opacity: 1; transform: translateY(-2px); }
.nb-dir { font-size: 12px; font-weight: 700; letter-spacing: 1.1px; text-transform: uppercase; color: var(--text3); }
.nb-name { display: flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 800; }
.nb-words { color: var(--text2); font-size: 14.5px; }
.switcher { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.switcher a { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--text2); background: var(--surface); border: 1px solid color-mix(in srgb, var(--c) 28%, var(--border2)); }
.switcher a:hover { color: var(--text); border-color: var(--c); opacity: 1; }
.switcher a.on { background: color-mix(in srgb, var(--c) 22%, var(--surface)); color: var(--text); border-color: var(--c); }
.pop { position: fixed; z-index: 250; width: 240px; padding: 16px; border-radius: 16px; background: var(--surface2); border: 1px solid color-mix(in srgb, var(--c) 45%, var(--border)); box-shadow: 0 18px 50px rgba(0,0,0,0.5); }
.pop-word { font-size: 22px; font-weight: 800; letter-spacing: -0.3px; }
.pop-fam { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text2); margin-top: 4px; }
.pop-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }

/* wheel page */
.wp-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-top: 22px; }
.wp-head h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); font-weight: 900; letter-spacing: -1.5px; }
.wp-sub { color: var(--text2); max-width: 620px; margin-top: 10px; line-height: 1.7; }
.wp-head .f-actions { margin-top: 0; }
.wp-wheel { max-width: 860px; margin: 28px auto 0; }
.w-poster .w-slice text { font-size: 15px; }
.w-poster .w-pnum { font: 800 13px var(--font); }
.w-poster .w-band { fill: color-mix(in srgb, var(--c) 16%, var(--bg)); stroke: var(--bg); stroke-width: 1.5; }
.w-poster .w-word { fill: color-mix(in srgb, var(--c) 70%, #fff); font: 600 11.5px var(--font); text-anchor: start; }
.w-poster .w-big { font-size: 30px; }
.wp-list { display: none; list-style: none; margin-top: 18px; }
.wp-compact { display: none; }
.narrow-only { display: none; }
.wp-list a { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; row-gap: 2px; align-items: center; padding: 12px 14px; border-radius: 14px; color: var(--text);
  background: linear-gradient(90deg, color-mix(in srgb, var(--c) 16%, var(--surface)), var(--surface)); border: 1px solid color-mix(in srgb, var(--c) 30%, var(--border2)); margin-bottom: 8px; }
.wp-list b { font-size: 16px; }
.wp-core { grid-column: 2; font-size: 15px; color: color-mix(in srgb, var(--c) 70%, #fff); }
.wp-note { text-align: center; color: var(--text3); font-size: 13px; margin: 16px 0 80px; }

/* search mode: every match visible, browsing aids hidden */
.searching .fgrid .chips li.extra { display: block; }
.searching .chips li.miss, .searching .fcat.miss, .searching .bm-panel.miss, .searching #body-map-section.miss { display: none !important; }
.searching .bm-panel:not(.miss) { display: block !important; }
.searching .bm-panels { display: block !important; }
.searching .card-foot, .searching .fdesc, .searching .bm-select, .searching .bm-figure-wrap, .searching .rbs, .searching .bm-group-label, .searching .f-why-wrap, .searching .f-section-sub { display: none !important; }
.searching .bodymap { grid-template-columns: 1fr; }
.searching .bm-panels .bm-panel { margin-bottom: 14px; }
.searching .fgrid .fcat:last-child { grid-column: auto; }

@media (max-width: 600px) {
  .wp-wheel > .w-poster { display: none; }
  .wp-compact { display: block; max-width: 380px; margin-inline: auto; }
  .wp-list { display: block; }
  .wide-only { display: none; } .narrow-only { display: inline; }
}
@media (max-width: 1020px) {
  .fgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fgrid .fcat:last-child:nth-child(3n + 1) { grid-column: auto; }
}
@media (max-width: 860px) {
  .f-hero-grid { grid-template-columns: 1fr; grid-template-areas: "copy" "wheel" "actions"; row-gap: 24px; }
  .f-wheel-wrap { max-width: 380px; width: 100%; margin-inline: auto; }
  .f-cta { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .f-wrap { padding-inline: 16px; }
  .f-hero { padding-top: calc(var(--nav-h) + 28px); }
  .f-actions .btn { flex: 1 1 100%; justify-content: center; }
  .f-tools-row { gap: 8px; }
  .f-jump#fjump { flex: 0 0 48px; width: 48px; padding: 0; color: transparent; cursor: pointer; appearance: none; -webkit-appearance: none;
    background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 24 24' fill='none' stroke='%23E2EEFF' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M8 6h13M8 12h13M8 18h13'/%3E%3Ccircle cx='3.5' cy='6' r='1.2'/%3E%3Ccircle cx='3.5' cy='12' r='1.2'/%3E%3Ccircle cx='3.5' cy='18' r='1.2'/%3E%3C/svg%3E") center / 22px no-repeat; }
  .f-jump#fjump option, .f-jump#fjump optgroup { color: #111; }
  .f-cta .btn { width: 100%; justify-content: center; }
  .fam-kicker .kl { display: none; } .fam-kicker .ks { display: inline; }
  .fcat, .bm-panel, #body-map-section { scroll-margin-top: calc(var(--nav-h) + 90px); }
  /* families become compact rows that open the sheet */
  .fgrid { grid-template-columns: 1fr; gap: 8px; }
  .js .fgrid .fcat { padding: 14px 16px; }
  .js .fgrid .fcat .fdesc, .js .fgrid .fcat .chips, .js .fgrid .fcat .card-foot { display: none; }
  .js .fgrid .chev { display: inline; font-size: 22px; line-height: 1; color: var(--text3); }
  .js .fgrid .row-open { display: block; position: absolute; inset: 0; width: 100%; background: none; border: 0; border-radius: inherit; cursor: pointer; z-index: 1; }
  .fcat h3 { font-size: 16.5px; }
  .searching .fgrid .fcat .chips { display: flex !important; }
  .searching .fgrid .row-open, .searching .fgrid .chev { display: none !important; }
  .bodymap { grid-template-columns: 1fr; gap: 14px; }
  .bm-figure-wrap { position: static; max-width: 280px; margin-inline: auto; }
  .js .bm-select { display: block; }
  .js .rbs, .js .bm-group-label { display: none; }
  .sheet-panel { top: auto; left: 0; width: 100%; max-height: 90vh; border-left: 0; border-top: 1px solid color-mix(in srgb, var(--c) 35%, var(--border)); border-radius: 22px 22px 0 0; padding: 12px 18px calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateY(40px); }
  .sheet-grip { display: block; width: 44px; height: 5px; border-radius: 3px; background: var(--border); margin: 0 auto 12px; }
  .sheet-close { top: 16px; }
  .sheet-body h2 { font-size: 1.7rem; }
  .fam-hero { grid-template-columns: minmax(0, 1fr) 96px; padding: 22px; gap: 14px; align-items: start; }
  .fam-hero-copy { display: contents; }
  .fam-kicker, .fam-hero h1, .fam-desc { grid-column: 1; }
  .fam-hero .f-actions { grid-column: 1 / -1; margin-top: 4px; }
  .fam-wheel { grid-column: 2; grid-row: 1 / span 3; }
  .fam-wheel p { display: none; }
  .nb-grid { grid-template-columns: 1fr; }
  .f-cta { padding: 24px 20px; margin-block: 56px 64px; }
}

/* ── Print: pages are laid out by the generator (see the print layout engine) ── */
.print-pages { display: none; }
@media print {
  @page { size: letter; margin: 10mm 10mm 13mm; }
  @page flist { @bottom-center { content: "Surfacing Feelings List  ·  surfacingapp.com/feelings.html  ·  page " counter(page) " of " counter(pages); font: 7pt sans-serif; color: #666; } }
  @page bmap { @bottom-center { content: "Surfacing Body Map  ·  surfacingapp.com/feelings.html  ·  page " counter(page) " of " counter(pages); font: 7pt sans-serif; color: #666; } }
  @page fam { @bottom-center { content: "Surfacing Feelings List  ·  free to print and share"; font: 7pt sans-serif; color: #666; } }
  @page poster { size: letter landscape; margin: 12mm; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  html, body { background: #fff !important; color: #111 !important; }
  body { position: static !important; }
  nav, .mobile-menu, footer, .sheet, .toast { display: none !important; }
  main { padding: 0 !important; page: flist; }
  /* the screen page is hidden; only the generated print pages show */
  main > :not(.print-pages) { display: none !important; }
  .print-pages { display: none; }
  .feelings-main:not(.print-body) .pf-pages, .feelings-main.print-body .pb-pages, .fam-page .fam-print { display: block !important; }
  .feelings-main.print-body main { page: bmap; }
  .fam-page main { page: fam; }
  .ppage { break-after: page; }
  .ppage:last-child { break-after: auto; }

  .print-head { display: flex !important; justify-content: space-between; align-items: center; gap: 8mm; padding-bottom: 3mm; margin-bottom: 4mm; border-bottom: 1.2pt solid #111; }
  .ph-title { font: 900 24pt var(--font); letter-spacing: -0.5pt; color: #111; }
  .ph-sub { font-size: 9pt; color: #333; margin-top: 1mm; max-width: 125mm; line-height: 1.4; }
  .ph-qr { display: flex; align-items: center; gap: 2.5mm; font-size: 7.5pt; color: #444; }
  .ph-qr svg { width: 17mm; height: 17mm; }
  .ph-qr svg path { fill: #111; }
  .fnum { background: #111 !important; color: #fff !important; min-width: 5mm; height: 5mm; font-size: 8pt; padding-inline: 1mm; }

  /* index: numbered wheel + legend */
  .pindex { display: grid; grid-template-columns: 66mm 1fr; gap: 7mm; align-items: center; margin-bottom: 4mm; }
  .w-index .w-slice path { opacity: 1; }
  .w-idx { fill: #111; font: 800 17px var(--font); text-anchor: middle; }
  .w-index .w-hub { fill: #fff; stroke: #bbb; }
  .w-index .w-big { fill: #111; font-size: 34px; }
  .w-index .w-small { fill: #555; }
  .legend { columns: 2; column-gap: 6mm; list-style: none; font-size: 9pt; line-height: 1.8; }
  .legend li { display: flex; align-items: center; gap: 2mm; }
  .legend li i { width: 3.2mm; height: 3.2mm; border-radius: 1mm; background: var(--c); border: 0.2mm solid #555; flex: none; }
  .legend li b { width: 5mm; text-align: right; font-weight: 800; font-variant-numeric: tabular-nums; }

  /* packed columns */
  .pcols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5mm; align-items: start; }
  .pcols.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pblock { margin-bottom: 3.4mm; break-inside: avoid; }
  .phead { display: flex; align-items: center; gap: 1.8mm; padding: 1.2mm 2mm; border-radius: 1.2mm; font-size: 9.5pt; font-weight: 800; color: #111; white-space: nowrap; overflow: hidden;
    background: color-mix(in srgb, var(--c) 32%, #fff); border: 0.2mm solid color-mix(in srgb, var(--c) 70%, #000); }
  .phead em { font-style: normal; font-weight: 600; color: #444; }
  .pdesc { font-size: 7.5pt; font-style: italic; color: #444; margin: 1mm 0 0 1mm; line-height: 1.3; }
  .plist { list-style: none; columns: var(--pc); column-gap: 2.5mm; margin: 1.4mm 0 0 0.6mm; }
  .plist li { display: flex; align-items: baseline; gap: 1.4mm; font-size: 8.2pt; line-height: 1.4; color: #111; break-inside: avoid; hyphens: none; }
  .plist li i { flex: none; width: 2.4mm; height: 2.4mm; border: 0.25mm solid #444; border-radius: 0.4mm; transform: translateY(0.25mm); }
  .plist li span { min-width: 0; }
  .plist li.nw span { white-space: nowrap; }
  .pb-pages .plist li { font-size: 7.9pt; line-height: 1.34; }
  .psub { font: 800 11pt var(--font); color: #111; padding-bottom: 1.2mm; border-bottom: 0.8pt solid #111; margin: 0 0 3mm; }
  .phow { padding: 3mm; border: 0.4pt solid #999; border-radius: 2mm; font-size: 8.5pt; line-height: 1.45; color: #222; }
  .phow p + p { margin-top: 1.6mm; }
  .phow-t { font-weight: 800; font-size: 10pt; color: #111; }

  /* A to Z */
  .az-title { font: 800 13pt var(--font); color: #111; }
  .azkey { font-size: 6.6pt; line-height: 1.45; color: #333; margin: 1.5mm 0 3mm; padding-bottom: 2mm; border-bottom: 1pt solid #111; }
  .azkey b { color: #111; }
  .azkey span { color: #999; }
  .az-list { list-style: none; columns: 6; column-gap: 4mm; font-size: 7pt; line-height: 1.22; }
  .az-list li { display: flex; align-items: baseline; gap: 1mm; break-inside: avoid; border-bottom: 0.15mm dotted #bbb; }
  .az-list span { flex: 1 1 auto; min-width: 0; }
  .az-list b { flex: none; min-width: 4.2mm; text-align: right; font-weight: 800; font-variant-numeric: tabular-nums; }

  /* body map */
  .pbody-first { display: grid; grid-template-columns: 70mm 1fr; gap: 6mm; align-items: start; }
  .pfig .body-figure { width: 100%; height: auto; max-height: 118mm; margin-bottom: 4mm; }
  .pfig .body-figure .fig > * { fill: #EEF2F6; stroke: #667; }
  .pfig .body-figure .zone { opacity: .55; stroke-opacity: .7; animation: none; }
  .pfig .callout line { stroke: #333; stroke-opacity: 1; }
  .pfig .callout circle { fill: #111; stroke: none; }
  .pfig .callout text { fill: #fff; font-size: 12px; }

  /* family handout */
  .fp-band { display: flex; align-items: center; gap: 5mm; padding: 3mm 5mm; border-radius: 3mm; margin-bottom: 5mm; background: color-mix(in srgb, var(--c) 30%, #fff); border: 0.4mm solid color-mix(in srgb, var(--c) 70%, #000); }
  .fp-band > .fnum { min-width: 12mm; height: 12mm; font-size: 18pt; border-radius: 50%; }
  .fp-title { font: 900 24pt var(--font); color: #111; letter-spacing: -0.5pt; }
  .fp-desc { font-size: 10pt; color: #222; margin-top: 1mm; }
  .fp-band .ph-qr { margin-left: auto; }
  .fp-list { column-gap: 6mm; margin-left: 2mm; }
  .fp-list li { font-size: 12.5pt; line-height: 1.5; gap: 2mm; }
  .fp-list li i { width: 3.6mm; height: 3.6mm; transform: translateY(0.4mm); }
  .fp-near { display: grid; grid-template-columns: auto 1fr 1fr; gap: 4mm; align-items: center; margin-top: 5mm; padding: 3mm 3.5mm; border: 0.4pt solid #999; border-radius: 2mm; font-size: 9pt; color: #333; }
  .fp-near p { font-size: 9pt; line-height: 1.35; }
  .fp-near > span { font-weight: 700; color: #111; }
  .fp-near p { display: flex; align-items: center; gap: 1.5mm; }
  .fp-near p i { width: 3.6mm; height: 3.6mm; border-radius: 0.8mm; background: var(--c); border: 0.2mm solid #555; flex: none; }
  .fp-scale { display: flex; align-items: flex-start; gap: 5mm; margin-top: 5mm; font-size: 10pt; font-weight: 700; color: #111; }
  .fp-scale > p { padding-top: 1.4mm; }
  .fp-ends { display: flex; justify-content: space-between; font-size: 7.5pt; font-weight: 500; color: #444; margin-top: 1mm; }
  .fp-scale ol { list-style: none; display: flex; gap: 2.4mm; }
  .fp-scale li { width: 7mm; height: 7mm; display: grid; place-items: center; border: 0.3mm solid #444; border-radius: 50%; font-weight: 600; font-size: 9pt; }
  .fp-prompts { margin-top: 5mm; display: grid; gap: 3.5mm; }
  .fp-prompts p { font-size: 10pt; font-weight: 700; color: #111; }
  .fp-prompts span { display: block; height: 7.5mm; border-bottom: 0.4pt solid #888; }

  /* poster wheel: one landscape page, header on the left */
  .wheel-page main { page: poster; }
  .wheel-page main > .f-wrap { display: grid !important; grid-template-columns: 62mm 1fr; gap: 6mm; align-items: center; justify-items: center; min-height: 190mm; padding: 0; max-width: none; }
  .wheel-page .wp-list, .wheel-page .wp-compact { display: none !important; }
  .wp-wheel > .w-poster { display: block !important; }
  .wheel-page .crumbs, .wheel-page .wp-head, .wheel-page .wp-note, .wheel-page .f-cta { display: none !important; }
  .wheel-page .print-head { display: block !important; border: 0; padding: 0; margin: 0; }
  .wheel-page .ph-title { font-size: 26pt; }
  .wheel-page .ph-sub { font-size: 10pt; margin-top: 3mm; }
  .wheel-page .ph-qr { margin-top: 6mm; flex-direction: column; align-items: flex-start; }
  .wheel-page .ph-qr svg { width: 24mm; height: 24mm; }
  .wp-wheel { max-width: none; width: 176mm; margin: 0; }
  .w-poster .w-word { display: inline !important; }
  .w-poster .w-slice path { opacity: 1; }
  .w-poster .w-band { fill: color-mix(in srgb, var(--c) 15%, #fff); stroke: #fff; stroke-width: 1.5; }
  .w-poster .w-word { fill: #111; font-weight: 600; }
  .w-poster .w-hub { fill: #fff; stroke: #bbb; }
  .w-poster .w-big { fill: #111; }
  .w-poster .w-small { fill: #555; }
}
