/* =====================================================================================================
   HTGF site-wide frame: FIELD NOTEBOOK (owner 19.11.2026 14:33Z "A, as recommended"; roll-out 15:19Z)
   One sheet for every renderer (kit pages, v5 static pages, TheGem/legacy pages). Loaded by
   mu-plugins/htgf-frame-fn.php at wp_head priority 1002, i.e. BEFORE kit.css on kit pages, so every
   selector starts with :root (one pseudo-class more than the kit rule it overrides).
   Dials: density airy · motion none · layout warm-editorial. No hex outside the brand token set.
   Scope: chrome only (recall strip, tab bar, footer, buttons, eyebrows, side bars, place captions).
   Page-type heroes are the separate Tue 24.11 change.
   Kill switch: wp option update htgf_frame_fn off   ·   Source: frame-staging-2026-11-21/src/
   ===================================================================================================== */

/* ---------- 5. Caveat (OFL), place captions ONLY. Static 600 instance of the brand-folder TTF.
   unicode-range + no element using it on most pages = the file is never downloaded there. */
@font-face{font-family:"HTGF Hand";font-style:normal;font-weight:600;font-display:swap;src:url(fonts/caveat-600-latin.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"HTGF Hand";font-style:normal;font-weight:600;font-display:swap;src:url(fonts/caveat-600-latin-ext.woff2) format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1E00-1E9F,U+1EF2-1EFF,U+20A0-20AB,U+20AD-20C0,U+2C60-2C7F,U+A720-A7FF}

:root{
  --fn-ink:#15231B; --fn-label:#FAFAF6; --fn-forest:#214E3B; --fn-mustard:#E8B647;
  --fn-papaya:#FF7043; --fn-papaya-tint:#FFAB91; --fn-red:#CE3B2B;
  --fn-hand:"HTGF Hand","Segoe Print","Bradley Hand",cursive;
  --fn-shadow:0 14px 28px -14px rgba(21,35,27,.45),0 2px 6px rgba(21,35,27,.12);
}

/* ---------- 2. Papaya never carries white or small text (references/web-quality.md, colour pairing rule) ---------- */
/* dark mode: the kit sets --cta to papaya and --on-cta to white (2.74:1). Ink on papaya = 5.94:1. */
@media (prefers-color-scheme:dark){html:root:not([data-theme=light]){--on-cta:#15231B}}
html:root[data-theme=dark]{--on-cta:#15231B}
/* ...but the recall red keeps white text (white on #CE3B2B = 4.9:1; ink on red would be 3.2:1) */
:root .recall-strip,:root .recall-strip .rs-cta,:root nav.main a.recall-link,:root .sheet nav a.recall-link{color:#FFFFFF !important}
:root nav.main a.recall-link .rl-dot,:root .sheet nav a.recall-link .rl-dot{background:#FFFFFF}
/* events calendar "Details" button (htgf-events.php) 2.74:1 -> 5.94:1 */
/* every papaya-background + white-text rule found (grep kit.css, legacy-palette.css, shell/*.css, mu-plugins, kit JSON,
   post content, 19.11): ink text. The var(--cta) ones are fixed by --on-cta above (papaya only in dark mode). */
:root .hgev-detailbtn,:root .hgev-detailbtn:hover,:root .hgev-detailbtn:focus,:root .hgev-cta,:root .hgev-mlink-ext,
:root .htgf-recall-detail .rd-btn,:root .fi-chip:hover,:root body.lga .panel .step b,:root .ca-card:hover .ca-letter{color:var(--fn-ink) !important}
@media (prefers-color-scheme:dark){html:root:not([data-theme=light]) .wl .btn.wlpri{color:#15231B}}
html:root[data-theme=dark] .wl .btn.wlpri{color:#15231B}
:root .hgev-detailbtn:hover{background:var(--fn-mustard)}
/* inline-styled papaya buttons (app-store / Google Play links in guide posts, older CTAs) */
:root :is(a,button,span,p,div,b)[style*="background:#FF7043"]:not(.timg),:root :is(a,button,span,p,div,b)[style*="background: #FF7043"]:not(.timg),
:root :is(a,button,span,p,div,b)[style*="background:#ff7043"]:not(.timg),:root :is(a,button,span,p,div,b)[style*="background:#e8743b"]:not(.timg),
:root :is(a,button,span,p,div,b)[style*="background:var(--papaya"]:not(.timg),:root :is(a,button,span,p,div,b)[style*="background: var(--papaya"]:not(.timg){color:var(--fn-ink) !important}
/* inline papaya TEXT links in content templates ("every place we track in Italy ->") */
:root main a[style*="color:var(--papaya)"]{color:var(--fn-forest) !important}
@media (prefers-color-scheme:dark){html:root:not([data-theme=light]) main a[style*="color:var(--papaya)"]{color:var(--fn-papaya-tint) !important}}
html:root[data-theme=dark] main a[style*="color:var(--papaya)"]{color:var(--fn-papaya-tint) !important}
/* papaya used as small TEXT on cream/white cards ("Read the method ->", "Open the market page ->") fails 2.74:1:
   forest in light (8.9:1 on card), the papaya tint in dark (8.9:1 on #0F241B) */
:root .topic .go,:root .prod .go,:root .story .go,:root .flour-card-cta,:root .atlas-link a,:root .dd .cta{color:var(--fn-forest)}
@media (prefers-color-scheme:dark){html:root:not([data-theme=light]) :is(.topic .go,.prod .go,.story .go,.flour-card-cta,.atlas-link a,.dd .cta){color:var(--fn-papaya-tint)}}
html:root[data-theme=dark] :is(.topic .go,.prod .go,.story .go,.flour-card-cta,.atlas-link a,.dd .cta){color:var(--fn-papaya-tint)}
/* tab bar "Recalls" (inline style="color:var(--papaya)") on forest: 3.45:1 -> #FFAB91 5.18:1 */
:root .tabbar a[href*="/live/recalls/"]{color:var(--fn-papaya-tint) !important}

/* ---------- 1. Recall strip: one plain line on a phone, red alert style kept (no handwriting, no tilt, no stamp).
   Layout rules apply only to .fn-short (set by the patched kit.js), so the new home's own strip script is untouched
   until it emits the same rs-k / rs-p / rs-h spans. ---------- */
:root .recall-strip{background:var(--fn-red)}
:root .recall-strip.fn-short .wrap{gap:8px;padding:0 16px;min-height:44px}
:root .recall-strip.fn-short .rs-tx{font-family:"Nunito",system-ui,sans-serif;font-weight:800;font-size:.9rem;line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
:root .recall-strip.fn-short .rs-line{color:#FFFFFF;text-decoration:none;display:flex;flex-wrap:wrap;align-items:baseline;column-gap:.3em;row-gap:0;min-width:0;min-height:44px;padding:11px 0;box-sizing:border-box;white-space:nowrap}
/* Strategy §4b P3: never cut the hazard. One line when it fits; on a narrow phone the hazard (with its arrow) moves
   to a 2nd line WHOLE, and only the product is shortened with "...". */
:root .recall-strip.fn-short .rs-line:hover .rs-p,:root .recall-strip.fn-short .rs-line:focus .rs-p{text-decoration:underline}
:root .recall-strip.fn-short .rs-k{flex:none}
:root .recall-strip.fn-short .rs-p{flex:0 1 auto;min-width:0;max-width:calc(100% - 5.5em);overflow:hidden;text-overflow:ellipsis}
:root .recall-strip.fn-short .rs-h{flex:0 0 auto;max-width:100%;font-weight:700;white-space:normal}
:root .recall-strip.fn-short .rs-ar{white-space:nowrap}
:root .recall-strip.fn-short .rs-tx{white-space:normal}
:root .recall-strip.fn-short .rs-line:focus-visible{outline:3px solid var(--fn-mustard);outline-offset:-3px}
:root .recall-strip.fn-short .rs-cta{display:none}

/* menu sheet (chrome) in dark mode: sage (#8FA58A) on the dark sheet = 3.9-4.1:1 -> sage tint #DCE6DC (>9:1) */
@media (prefers-color-scheme:dark){html:root:not([data-theme=light]) :is(#moreSheet nav a.sh-feat,#moreSheet details.sh-fam>summary){color:#DCE6DC}}
html:root[data-theme=dark] :is(#moreSheet nav a.sh-feat,#moreSheet details.sh-fam>summary){color:#DCE6DC}

/* ---------- 3. No eyebrow LOOK, no side bars (htgf-ui-design §2 kill list) ----------
   Strategy §4b 19.11: do NOT hide eyebrows (some carry meaning: "Free, always", "100%"). They become a plain small
   heading: Nunito 700, sentence case (text-transform none: text written in capitals in the source stays capitals,
   that is a copy fix for the page-type pass), no letter-spacing, quiet colour. html:root beats the guide-sheet's
   own ".guide-sheet .eyebrow" (inline page CSS, loaded later). */
html:root :is(.eyebrow,.kicker,.tmeta,.toc .th){font-family:"Nunito",system-ui,sans-serif;font-size:.95rem;font-weight:700;letter-spacing:0;text-transform:none;color:var(--muted,#4F6157);line-height:1.35}
html:root .tmeta{font-size:.85rem}
html:root :is(.eyebrow,.kicker,.tmeta,.toc .th).fn-caps1{text-transform:lowercase}
html:root :is(.eyebrow,.kicker,.tmeta,.toc .th).fn-caps1::first-letter{text-transform:uppercase}
html:root span.fn-caps1{display:inline-block}
@media (prefers-color-scheme:dark){html:root:not([data-theme=light]) :is(.eyebrow,.kicker,.tmeta,.toc .th){color:#C2CCC4}}
html:root[data-theme=dark] :is(.eyebrow,.kicker,.tmeta,.toc .th){color:#C2CCC4}
html:root :is(.band,.newslim,.newshigh,.atlas-cta) .eyebrow{color:inherit;opacity:.85}

/* meta line under article titles ("UPDATED=2026-11-14 READ=28 MIN REVIEW=HTGF EDITORIAL"): the TEXT is printed by PHP
   (htgf-phase2-templates.php htgf_kit_meta_k(), line ~277), so the "=" and the ISO date stay until the Sunday hero pass;
   here: plain type, no orange keys, the REVIEW item hidden (the real reviewer line sits at the article end). */
html:root .metaline{font-family:"Nunito",system-ui,sans-serif;font-size:.85rem;letter-spacing:0;color:var(--muted,#4F6157);gap:4px 14px}
html:root .metaline .k{color:inherit;font-weight:600}
html:root .metaline b{font-weight:700;color:inherit}
html:root .art-head .metaline > span:nth-child(3){display:none}

/* breadcrumb: plain type, normal case; the current page (last, unlinked crumb) and its separator are dropped
   (display:none removes them for screen readers too: the h1 right below names the page) */
html:root .crumb{font-family:"Nunito",system-ui,sans-serif;font-size:.85rem;letter-spacing:0;text-transform:none}
html:root .crumb > span:last-child:not(.sep),html:root .crumb > .sep:has(+ span:last-child:not(.sep)){display:none}
html:root .crumb a{border-bottom-style:solid}

/* side bars -> a full hairline box (same tint), or no box at all for the pull quote */
:root .never-note,:root .art-body .htgf-source{border-left:0;border:1px solid var(--line);border-radius:10px}
:root .pullquote{border-left:0;padding:10px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
:root .art-body .highlight-box{border-left:0;border:1px solid rgba(33,78,59,.22);border-radius:12px}
:root .art-body .highlight-box.warning{border-color:rgba(206,59,43,.35)}
:root .art-body .highlight-box.tip{border-color:rgba(232,182,71,.6)}
:root .atlas-entry.tier-D{border-left-width:1px;border-color:var(--fn-mustard)}
:root .atlas-entry.tier-P{border-left-width:1px;border-color:var(--sage,#8FA58A)}
:root .fam-tile,:root .htgf-mt-badge{border-left-width:1px}
:root .review-note{border-left:0}
/* guide-sheet (curated city/country guides, inline CSS from the guide builder) */

:root .art-body blockquote,:root .art-body .wp-block-quote{border-left:0;padding-left:0}
/* inline side bars from content templates (e.g. the "How we checked this page" box): bar off, the box keeps its tint */
:root main [style*="border-left:3px solid"],:root main [style*="border-left:4px solid"],:root main [style*="border-left:5px solid"],
:root main [style*="border-left: 3px solid"],:root main [style*="border-left: 4px solid"],:root main [style*="border-left: 5px solid"]{border-left:0 !important}
/* every side bar found in kit JSON, mu-plugins and page CSS (grep 19.11, see INVENTORY §3): bar off */
html:root :is(.guide-sheet .trust,.guide-sheet .guide-cta,.trust,.guide-cta,.short-answer,.ft .ft-answer,.htgf-myth-index li,.said blockquote,
  .guide-sheet .howbox,.m16 .m16-pre,.m16 .m16-assoc,.htgfch .rule,.htgfch blockquote,.guide-index .foot,.atlas-checked,.htgf-why__card,
  .flour-glance,.cbc-hit,.hp .hp-ex,.htgf-sub .firewall,.htgf-claim .fnd-box,.htgf-claim .firewall){border-left:0 !important}
/* "answer first" boxes: a full light tint instead of the bar (Strategy §4b P2) */
html:root :is(.ft .ft-answer,.short-answer){background:var(--warm,#F7EFE0);border-radius:12px;padding:12px 16px}
@media (prefers-color-scheme:dark){html:root:not([data-theme=light]) :is(.ft .ft-answer,.short-answer){background:rgba(244,239,227,.07)}}
html:root[data-theme=dark] :is(.ft .ft-answer,.short-answer){background:rgba(244,239,227,.07)}
/* Atlas entries: the 4-5px tier bar becomes a 1px border in the same tier colour (tier symbol + word stay the signal) */
html:root .atlas-entry{border-left-width:1px !important}

/* ---------- 4. Footer (§1b): hand-lettered wordmark as a label + the evidence stamp; calm type, no mono ---------- */
:root body > footer:not(.colophon),:root footer.site-footer{position:relative}
:root body > footer:not(.colophon) > .wrap{position:relative;padding-top:132px}
:root body > footer:not(.colophon) > .wrap::before{
  content:"";position:absolute;left:18px;top:22px;width:150px;height:92px;
  background:var(--fn-label) url(img/htgf-wordmark.svg) center/auto 76px no-repeat;
  border-radius:4px;transform:rotate(-3deg);box-shadow:var(--fn-shadow)}
:root body > footer:not(.colophon) > .wrap::after{
  content:"SOURCE + DATE \A EVERY PLACE";content:"SOURCE + DATE \A EVERY PLACE" / "Source and date for every place";white-space:pre;
  position:absolute;left:186px;top:18px;width:104px;height:104px;border-radius:50%;
  display:flex;align-items:center;justify-content:center;text-align:center;
  font:800 .54rem/1.3 "Montserrat",system-ui,sans-serif;letter-spacing:.03em;padding:0 10px;box-sizing:border-box;color:var(--fn-mustard);
  border:2px solid var(--fn-mustard);outline:1.5px dashed rgba(232,182,71,.7);outline-offset:-8px;transform:rotate(8deg)}
:root:lang(de) body > footer:not(.colophon) > .wrap::after{content:"QUELLE + DATUM \A BEI JEDEM ORT";content:"QUELLE + DATUM \A BEI JEDEM ORT" / "Quelle und Datum bei jedem Ort"}
:root:lang(it) body > footer:not(.colophon) > .wrap::after{content:"FONTE + DATA \A PER OGNI POSTO";content:"FONTE + DATA \A PER OGNI POSTO" / "Fonte e data per ogni posto"}
:root .foot-imprint,:root .foot-lang{font-family:"Nunito",system-ui,sans-serif;letter-spacing:0;font-size:.82rem}
:root .foot-imprint b{color:var(--fn-mustard);font-weight:800}
:root .foot-lang a{border-bottom-style:solid}
:root .foot-links{font-family:"Nunito",system-ui,sans-serif}
:root .foot-legal{opacity:1}
/* same values as the home build (home-staging-2026-11-19/DEPLOY-PLAN.md §6) so home and every other page match */
html:root footer .foot-imprint{opacity:1}                                   /* 4.2:1 on home -> 7.0:1 */
html:root footer .beta-badge{color:#E8B647;border-color:#E8B647}            /* #7A5F12 on forest 2.1:1 -> 6.9:1 */
html:root a[href$="claim-listing/"][style]{color:#3E6B59 !important}       /* venue band link #5A8A78 on #F4F7F5 3.6:1 -> 5.6:1 */
:root .foot-legal a{color:rgba(250,247,239,.8)}   /* was opacity .75 on .72 white: 4.42:1 in dark -> 6.9:1 */
:root footer .socials a{background:rgba(250,247,239,.12)}
@media (min-width:980px){
  :root body > footer:not(.colophon) > .wrap{padding-top:28px;padding-left:330px;min-height:150px}
  :root body > footer:not(.colophon) > .wrap::before{left:24px;top:30px}
  :root body > footer:not(.colophon) > .wrap::after{left:200px;top:34px}
}
@media print{:root body > footer:not(.colophon) > .wrap::before,:root body > footer:not(.colophon) > .wrap::after{display:none}}
/* app WebView: footer is hidden there anyway (htgfEmbedCss) */

/* ---------- 5b. Place captions on our own photos (frame-fn.js adds .fn-place when the caption credits HTGF) ---------- */
:root figcaption.fn-place{font-family:var(--fn-hand);font-weight:600;font-size:1.32rem;line-height:1.2;color:var(--fn-forest);letter-spacing:0}
:root figcaption.fn-place .fn-credit{display:block;font-family:"Nunito",system-ui,sans-serif;font-size:.78rem;font-weight:600;color:var(--muted,#4F6157);margin-top:2px}
@media (prefers-color-scheme:dark){html:root:not([data-theme=light]) figcaption.fn-place{color:#DCE6DC}}
html:root[data-theme=dark] figcaption.fn-place{color:#DCE6DC}

/* ---------- 6. a11y: skip link visible on focus everywhere (home fallback inserted by frame-fn.js) ---------- */
:root .fn-skip{position:absolute;left:-9999px;top:0;z-index:100000;background:var(--fn-mustard);color:var(--fn-ink);font:800 1rem/1 "Nunito",system-ui,sans-serif;padding:14px 18px;border-radius:0 0 12px 0;text-decoration:none}
:root .fn-skip:focus{left:0;outline:3px solid var(--fn-ink);outline-offset:2px}
