/* ==========================================================================
   FŪD KIT 2 — token-driven component system
   --------------------------------------------------------------------------
   Every component is a reusable `.fk2-*` block driven entirely by CSS custom
   properties, so restyling is CSS-only. Four levels of control:

   1. GLOBAL REBRAND    — change a PRIMITIVE in :root; it cascades everywhere
                            :root  ..  --fk2-pink: #ff5a5f;
   2. CHANGE A ROLE     — override a SEMANTIC token
                            :root  ..  --fk2-accent: var(--fk2-purple);
   3. ONE COMPONENT     — override its component vars in a rule
                            .fk2-btn  ..  --fk2-btn-radius: 10px;
   4. ONE INSTANCE      — set the component var inline on the element
                            style=  --fk2-btn-bg:#8a5fd0

   Layers below: 1. Primitives  then  2. Semantic roles  then  3. Components.
   Namespaced fk2 so it coexists with the hand-drawn kit.
   ========================================================================== */

/* ==========================================================================
   1. PRIMITIVES  (raw values — the single source of truth)
   ========================================================================== */
:root {
  /* palette */
  --fk2-yellow: #ffd41f;
  --fk2-yellow-deep: #f0b400;
  --fk2-pink: #ef3e6e;
  --fk2-pink-deep: #d92a5b;
  --fk2-pink-soft: #fcdde6;
  --fk2-teal: #12a08e;
  --fk2-teal-deep: #0c7f70;
  --fk2-teal-soft: #dff3f0;
  --fk2-orange: #f4703a;
  --fk2-coral: #f2695c;
  --fk2-purple: #8a5fd0;
  --fk2-cream: #fff6e3;
  --fk2-paper: #ffffff;
  --fk2-ink: #221d1d;
  --fk2-muted: #75695c;
  --fk2-line: #e8dcc8;

  /* type families */
  --fk2-font-display: 'Baloo 2', 'Fredoka', system-ui, sans-serif;
  --fk2-font-body: 'Nunito', 'Baloo 2', system-ui, sans-serif;

  /* type scale — compact */
  --fk2-fs-2xs: 11px;
  --fk2-fs-xs: 12px;
  --fk2-fs-sm: 13px;
  --fk2-fs-base: 14px;
  --fk2-fs-md: 15.5px;
  --fk2-fs-lg: 17px;
  --fk2-fs-xl: 19px;
  --fk2-fs-2xl: 24px;
  --fk2-fs-3xl: 36px;
  --fk2-weight-body: 700;
  --fk2-weight-display: 800;
  /* letter-spacing — casual + tight */
  --fk2-tracking: -.015em;        /* display headings */
  --fk2-tracking-label: 0;        /* small-caps UI labels (was wide/formal) */

  /* spacing scale — extra compact (mobile-first) */
  --fk2-space-1: 3px;
  --fk2-space-2: 5px;
  --fk2-space-3: 8px;
  --fk2-space-4: 11px;
  --fk2-space-5: 14px;
  --fk2-space-6: 17px;
  --fk2-space-7: 22px;
  --fk2-space-8: 28px;

  /* radius scale — compact */
  --fk2-r-xs: 6px;
  --fk2-r-sm: 9px;
  --fk2-r-md: 13px;
  --fk2-r-lg: 18px;
  --fk2-r-pill: 999px;

  /* border widths */
  --fk2-bd-hair: 1px;
  --fk2-bd-thin: 2px;
  --fk2-bd-thick: 3px;

  /* elevation — layered for real depth */
  --fk2-shadow-sm: 0 1px 2px rgba(34, 29, 29, .07), 0 3px 8px rgba(34, 29, 29, .08);
  --fk2-shadow-md: 0 2px 6px rgba(34, 29, 29, .08), 0 10px 24px rgba(34, 29, 29, .12);
  --fk2-shadow-lg: 0 4px 12px rgba(34, 29, 29, .10), 0 22px 48px rgba(34, 29, 29, .17);

  /* motion + focus */
  --fk2-transition: .14s ease;
  --fk2-focus-ring: 0 0 0 3px rgba(18, 160, 142, .35);

  /* texture — warm glow + confetti so color fields aren't dead-flat */
  --fk2-glow-warm: radial-gradient(135% 105% at 24% -12%, rgba(255, 255, 255, .60), rgba(255, 255, 255, 0) 55%);
  --fk2-sheen: linear-gradient(180deg, rgba(255, 255, 255, .12), rgba(0, 0, 0, .05));
  --fk2-tex-confetti: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='210' height='210'%3E%3Cg fill='none' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M26 44 l11 9' stroke='%2312a08e' opacity='.30'/%3E%3Cpath d='M168 32 l-10 8' stroke='%23ef3e6e' opacity='.30'/%3E%3Cpath d='M120 160 l9 10' stroke='%23221d1d' opacity='.16'/%3E%3Cpath d='M60 116 q6 -8 13 -3' stroke='%238a5fd0' opacity='.28'/%3E%3C/g%3E%3Cg%3E%3Ccircle cx='150' cy='120' r='3' fill='%23ef3e6e' opacity='.45'/%3E%3Ccircle cx='34' cy='150' r='2.6' fill='%2312a08e' opacity='.45'/%3E%3Ccircle cx='190' cy='78' r='2.6' fill='%238a5fd0' opacity='.45'/%3E%3Ccircle cx='96' cy='40' r='2.4' fill='%23ffd41f' opacity='.7'/%3E%3C/g%3E%3C/svg%3E");

  /* personality — marker doodles in the palette colors, inline SVG */
  --fk2-doodle-star: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath d='M20 3 L25 15 L37 20 L25 25 L20 37 L15 25 L3 20 L15 15 Z' fill='none' stroke='%23221d1d' stroke-width='3.5' stroke-linejoin='round'/%3E%3C/svg%3E");
  --fk2-doodle-star-solid: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath d='M20 3 L25 15 L37 20 L25 25 L20 37 L15 25 L3 20 L15 15 Z' fill='%23ffd41f' stroke='%23221d1d' stroke-width='3' stroke-linejoin='round'/%3E%3C/svg%3E");
  --fk2-doodle-heart: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 36'%3E%3Cpath d='M20 33 C6 22 2 13 8 7 C13 2 19 5 20 10 C21 5 27 2 32 7 C38 13 34 22 20 33 Z' fill='%23ef3e6e' stroke='%23221d1d' stroke-width='3' stroke-linejoin='round'/%3E%3C/svg%3E");
  --fk2-doodle-bolt: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 40'%3E%3Cpath d='M16 2 L6 22 L13 22 L10 38 L23 16 L15 16 Z' fill='%23ffd41f' stroke='%23221d1d' stroke-width='3' stroke-linejoin='round'/%3E%3C/svg%3E");
  --fk2-doodle-swish-teal: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 24'%3E%3Cpath d='M4 20 Q30 2 56 10' stroke='%2312a08e' stroke-width='5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  --fk2-doodle-swish-pink: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 24'%3E%3Cpath d='M4 16 Q30 24 56 6' stroke='%23ef3e6e' stroke-width='5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  --fk2-doodle-dashes: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 34 30'%3E%3Cpath d='M5 22 L13 12 M14 26 L22 16 M23 29 L31 19' stroke='%23221d1d' stroke-width='4' stroke-linecap='round' fill='none'/%3E%3C/svg%3E");
  --fk2-brush-pink: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 220 14' preserveAspectRatio='none'%3E%3Cpath d='M4 9 Q60 3 110 7 T216 6' stroke='%23ef3e6e' stroke-width='8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  --fk2-brush-teal: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 220 14' preserveAspectRatio='none'%3E%3Cpath d='M4 9 Q60 3 110 7 T216 6' stroke='%2312a08e' stroke-width='8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  --fk2-wave-yellow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 20' preserveAspectRatio='none'%3E%3Cpath d='M0 0 L120 0 L120 6 Q90 20 60 8 Q30 -4 0 12 Z' fill='%23ffd41f'/%3E%3C/svg%3E");

  /* fat highlighter swipes — marker laid over the lower half of a word.
     Ragged ends + a wobbly top edge so it never squares off into a chip. */
  --fk2-mark-yellow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 26' preserveAspectRatio='none'%3E%3Cpath d='M7 15 Q56 7 112 12 T193 10' stroke='%23ffd41f' stroke-width='19' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  --fk2-mark-teal: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 26' preserveAspectRatio='none'%3E%3Cpath d='M7 15 Q56 7 112 12 T193 10' stroke='%23bfe9e2' stroke-width='19' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  --fk2-mark-pink: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 26' preserveAspectRatio='none'%3E%3Cpath d='M7 15 Q56 7 112 12 T193 10' stroke='%23fcdde6' stroke-width='19' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
}

/* ==========================================================================
   2. SEMANTIC ROLES  (what things MEAN — components read these, not palette)
   Remap any of these to re-theme by role without touching components.
   ========================================================================== */
:root {
  --fk2-surface: var(--fk2-paper);          /* default card/menu/table bg */
  --fk2-surface-2: var(--fk2-cream);        /* page / sunken bg */
  --fk2-text: var(--fk2-ink);
  --fk2-text-muted: var(--fk2-muted);
  --fk2-border: var(--fk2-line);

  --fk2-accent: var(--fk2-pink);            /* primary action / emphasis */
  --fk2-accent-deep: var(--fk2-pink-deep);
  --fk2-accent-soft: var(--fk2-pink-soft);
  --fk2-on-accent: #ffffff;

  --fk2-brand: var(--fk2-teal);             /* brand / secondary action */
  --fk2-brand-deep: var(--fk2-teal-deep);
  --fk2-brand-soft: var(--fk2-teal-soft);
  --fk2-on-brand: #ffffff;

  --fk2-highlight: var(--fk2-yellow);       /* highlight / tertiary */
  --fk2-highlight-deep: var(--fk2-yellow-deep);
  --fk2-on-highlight: var(--fk2-ink);

  --fk2-radius-control: var(--fk2-r-pill);  /* buttons, chips, pills */
  --fk2-radius-card: var(--fk2-r-lg);       /* cards, panels */
  --fk2-radius-field: var(--fk2-r-sm);      /* inputs, tables */

  --fk2-shadow-card: var(--fk2-shadow-md);
  --fk2-shadow-pop: var(--fk2-shadow-lg);
  --fk2-focus: var(--fk2-focus-ring);
}

/* ==========================================================================
   3. COMPONENTS
   ========================================================================== */

/* --- 3.1 Type helpers ---------------------------------------------------- */
.fk2-display {
  font-family: var(--fk2-font-display); font-weight: var(--fk2-weight-display);
  text-transform: uppercase; letter-spacing: var(--fk2-tracking); line-height: .96;
  text-shadow: 1px 1.5px 0 rgba(34, 29, 29, .07);
}
.fk2-display .accent-pink { color: var(--fk2-accent); }
.fk2-display .accent-teal { color: var(--fk2-brand); }
.fk2-muted { color: var(--fk2-text-muted); }

/* macron — the bar over the U in FŪD. Baloo's own Ū sits the bar off to the
   right of the bowl, so we set a plain U and draw the bar ourselves, centred
   on the glyph. Markup: F<span class="fk2-macron">U</span>D
   KNOBS: --fk2-macron-w --fk2-macron-h --fk2-macron-top --fk2-macron-color */
.fk2-macron {
  --fk2-macron-w: .54em;
  --fk2-macron-h: .1em;
  --fk2-macron-y: 1.06em;  /* measured up from the baseline, so it clears the caps */
  --fk2-macron-x: 52%;     /* nudge for the U's left side-bearing */
  --fk2-macron-color: currentColor;
  position: relative;
}
.fk2-macron::after {
  content: ""; position: absolute; left: var(--fk2-macron-x); bottom: var(--fk2-macron-y);
  width: var(--fk2-macron-w); height: var(--fk2-macron-h);
  transform: translateX(-50%);
  background: var(--fk2-macron-color); border-radius: 2px;
}

/* kicker — a hand-marked eyebrow, NOT a chip.
   Deliberately has no fill, no border and no radius: an enclosed pill at this
   size is indistinguishable from .fk2-btn--ink and invites a click. Instead:
   a marker tick leads in, and a fat highlighter swipe rides the lower half of
   the caps, so it reads as annotation over the page rather than a control. */
.fk2-kicker {
  --fk2-kicker-fg: var(--fk2-ink);
  --fk2-kicker-mark: var(--fk2-mark-yellow);
  --fk2-kicker-tick: var(--fk2-doodle-swish-teal);
  --fk2-kicker-tick-w: 20px;
  --fk2-kicker-gap: 6px;
  --fk2-kicker-mark-h: .62em;
  display: inline-flex; align-items: center; gap: var(--fk2-kicker-gap);
  color: var(--fk2-kicker-fg);
  font-family: var(--fk2-font-display); font-weight: 800; text-transform: uppercase;
  font-size: var(--fk2-fs-sm); letter-spacing: var(--fk2-tracking-label);
  padding: 0 1px 2px; line-height: 1.25;
  /* swipe starts after the tick so the marker sits under the words only */
  background: var(--fk2-kicker-mark)
    calc(var(--fk2-kicker-tick-w) + var(--fk2-kicker-gap)) 92%
    / calc(100% - var(--fk2-kicker-tick-w) - var(--fk2-kicker-gap)) var(--fk2-kicker-mark-h)
    no-repeat;
  transform: rotate(-1.5deg);
}
.fk2-kicker::before {
  content: ""; flex: none;
  width: var(--fk2-kicker-tick-w); height: .8em;
  background: var(--fk2-kicker-tick) center / contain no-repeat;
}
.fk2-kicker--teal { --fk2-kicker-mark: var(--fk2-mark-teal); --fk2-kicker-tick: var(--fk2-doodle-swish-pink); }
.fk2-kicker--pink { --fk2-kicker-mark: var(--fk2-mark-pink); }
/* no swipe — just the tick and the caps */
.fk2-kicker--bare { --fk2-kicker-mark: none; }
/* on ink/photo surfaces: cream caps, swipe dropped for legibility */
.fk2-kicker--invert { --fk2-kicker-fg: var(--fk2-cream); --fk2-kicker-mark: none; }

/* --strong — a section LABEL, not an eyebrow. Loud enough to be the thing you
   scan a long page by. Type + gradient only (no SVG marks), so it survives a
   font/colour swap and needs no assets: fat display caps sitting on a flat
   marker bar drawn with a linear-gradient, tick dropped so the bar starts at
   the first letter. */
.fk2-kicker--strong {
  --fk2-kicker-tick-w: 0px;
  --fk2-kicker-gap: 0px;
  --fk2-kicker-mark-h: .42em;
  --fk2-kicker-mark: linear-gradient(var(--fk2-kicker-bar), var(--fk2-kicker-bar));
  --fk2-kicker-bar: var(--fk2-highlight);
  --fk2-kicker-strong-fs: clamp(23px, 3.4vw, 31px);
  font-size: var(--fk2-kicker-strong-fs); letter-spacing: .005em; line-height: 1.06;
  padding: 0 5px 2px;
  background-position: 0 88%;
  background-size: 100% var(--fk2-kicker-mark-h);
  transform: rotate(-1deg);
}
.fk2-kicker--strong::before { display: none; }
.fk2-kicker--strong.fk2-kicker--teal { --fk2-kicker-bar: var(--fk2-brand-soft); }
.fk2-kicker--strong.fk2-kicker--pink { --fk2-kicker-bar: var(--fk2-accent-soft); }

/* sparkle flankers */
.fk2-spark { display: inline-flex; align-items: center; gap: 10px; }
.fk2-spark::before, .fk2-spark::after {
  content: ""; width: 26px; height: 20px;
  background: var(--fk2-doodle-dashes) center / contain no-repeat;
}
.fk2-spark::before { transform: scaleX(-1) rotate(8deg); }
.fk2-spark::after { transform: rotate(8deg); }

/* marker underline for accent words */
.fk2-underline { position: relative; display: inline-block; }
.fk2-underline::after {
  content: ""; position: absolute; left: 2%; right: 6%; bottom: -.14em; height: .14em;
  background: var(--fk2-brush-pink) center / 100% 100% no-repeat; transform: rotate(-1.2deg);
}
.fk2-underline--teal::after { background-image: var(--fk2-brush-teal); }

/* standalone doodles */
.fk2-doodle { display: inline-block; width: 28px; height: 28px; background: center / contain no-repeat; }
.fk2-doodle--star { background-image: var(--fk2-doodle-star); transform: rotate(-12deg); }
.fk2-doodle--star-solid { background-image: var(--fk2-doodle-star-solid); transform: rotate(14deg); }
.fk2-doodle--heart { background-image: var(--fk2-doodle-heart); transform: rotate(-8deg); }
.fk2-doodle--bolt { background-image: var(--fk2-doodle-bolt); transform: rotate(10deg); }
.fk2-doodle--swish-teal { background-image: var(--fk2-doodle-swish-teal); width: 44px; }
.fk2-doodle--swish-pink { background-image: var(--fk2-doodle-swish-pink); width: 44px; }
.fk2-doodle--dashes { background-image: var(--fk2-doodle-dashes); }

/* comic speech bubble */
.fk2-bubble {
  position: relative; display: inline-block; background: var(--fk2-surface);
  border: var(--fk2-bd-thick) solid var(--fk2-text);
  border-radius: 50% 46% 52% 48% / 55% 50% 50% 45%;
  padding: var(--fk2-space-4) var(--fk2-space-6);
  font-family: var(--fk2-font-display); font-weight: 700; text-transform: uppercase;
  font-size: var(--fk2-fs-xl); line-height: 1.05; text-align: center;
}
.fk2-bubble .alt { color: var(--fk2-accent); }
.fk2-bubble::after {
  content: ""; position: absolute; left: 18%; bottom: -14px; width: 22px; height: 16px;
  background: var(--fk2-surface); border: var(--fk2-bd-thick) solid var(--fk2-text); border-top: 0;
  clip-path: polygon(0 0, 100% 0, 40% 100%);
}

/* --- 3.2 Bands & ticker -------------------------------------------------- */
.fk2-band { padding: 30px 0; }
.fk2-band--cream { background: var(--fk2-surface-2); }
.fk2-band--white { background: var(--fk2-surface); }
.fk2-band--yellow { background: var(--fk2-highlight); }
.fk2-band--teal { background: var(--fk2-sheen), radial-gradient(120% 130% at 20% 0%, #17b6a1, var(--fk2-brand-deep)); color: #fff; }

.fk2-ticker {
  --fk2-ticker-bg: var(--fk2-orange);
  background: var(--fk2-ticker-bg); color: #fff; text-align: center;
  font-family: var(--fk2-font-display); font-weight: 700; text-transform: uppercase;
  letter-spacing: .12em; font-size: var(--fk2-fs-base); padding: 10px 16px;
}
.fk2-ticker .alt { color: var(--fk2-brand-soft); }

/* hero band — glow + confetti + wavy edge */
.fk2-hero {
  --fk2-hero-bg: var(--fk2-highlight);
  position: relative;
  background: var(--fk2-glow-warm), var(--fk2-tex-confetti), var(--fk2-hero-bg);
  background-size: auto, 210px 210px, auto;
  padding: 24px 0 32px;
}
.fk2-hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -18px; height: 20px;
  background: var(--fk2-wave-yellow) center / 120px 20px repeat-x;
}

/* --- 3.3 Buttons --------------------------------------------------------- */
.fk2-btn {
  --fk2-btn-bg: var(--fk2-accent);
  --fk2-btn-fg: var(--fk2-on-accent);
  --fk2-btn-shade: var(--fk2-accent-deep);
  --fk2-btn-radius: var(--fk2-radius-control);
  --fk2-btn-pad-y: var(--fk2-space-3);
  --fk2-btn-pad-x: var(--fk2-space-6);
  --fk2-btn-fs: var(--fk2-fs-base);
  --fk2-btn-lift: 4px;
  display: inline-flex; align-items: center; justify-content: center; gap: var(--fk2-space-2);
  font-family: var(--fk2-font-display); font-weight: 700; text-transform: uppercase;
  font-size: var(--fk2-btn-fs); letter-spacing: var(--fk2-tracking-label); text-decoration: none;
  padding: var(--fk2-btn-pad-y) var(--fk2-btn-pad-x); border: 0;
  border-radius: var(--fk2-btn-radius);
  background: var(--fk2-btn-bg); color: var(--fk2-btn-fg); cursor: pointer;
  box-shadow: 0 var(--fk2-btn-lift) 0 var(--fk2-btn-shade), var(--fk2-shadow-sm);
  transition: transform var(--fk2-transition), box-shadow var(--fk2-transition), background var(--fk2-transition);
  white-space: nowrap;
}
.fk2-btn:hover { transform: translateY(-2px); box-shadow: 0 calc(var(--fk2-btn-lift) + 2px) 0 var(--fk2-btn-shade), var(--fk2-shadow-md); }
.fk2-btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--fk2-btn-shade); }
.fk2-btn:focus-visible { outline: none; box-shadow: 0 var(--fk2-btn-lift) 0 var(--fk2-btn-shade), var(--fk2-focus); }
.fk2-btn:disabled, .fk2-btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
.fk2-btn--teal   { --fk2-btn-bg: var(--fk2-brand); --fk2-btn-fg: var(--fk2-on-brand); --fk2-btn-shade: var(--fk2-brand-deep); }
.fk2-btn--yellow { --fk2-btn-bg: var(--fk2-highlight); --fk2-btn-fg: var(--fk2-on-highlight); --fk2-btn-shade: var(--fk2-highlight-deep); }
.fk2-btn--ink    { --fk2-btn-bg: var(--fk2-ink); --fk2-btn-fg: var(--fk2-highlight); --fk2-btn-shade: #000; }
/* secondary — quiet by design so the primary pill always wins the eye */
.fk2-btn--outline {
  --fk2-btn-bg: var(--fk2-surface); --fk2-btn-fg: var(--fk2-text);
  --fk2-btn-shade: var(--fk2-border); --fk2-btn-lift: 2px;
  --fk2-btn-bd: var(--fk2-bd-thin) solid var(--fk2-border);
  border: var(--fk2-btn-bd);
}
.fk2-btn--outline:hover { background: var(--fk2-surface-2); }
.fk2-btn--ghost { --fk2-btn-bg: transparent; --fk2-btn-fg: var(--fk2-brand); --fk2-btn-lift: 0; box-shadow: none; }
.fk2-btn--ghost:hover, .fk2-btn--ghost:active { box-shadow: none; transform: none; text-decoration: underline; }
.fk2-btn--sm { --fk2-btn-pad-y: var(--fk2-space-2); --fk2-btn-pad-x: var(--fk2-space-5); --fk2-btn-fs: var(--fk2-fs-xs); }
.fk2-btn--lg { --fk2-btn-pad-y: 15px; --fk2-btn-pad-x: var(--fk2-space-8); --fk2-btn-fs: var(--fk2-fs-md); }
.fk2-btn--wide { width: 100%; }

/* --- 3.4 Nav ------------------------------------------------------------- */
.fk2-nav { display: flex; align-items: center; gap: var(--fk2-space-6); flex-wrap: wrap; }
.fk2-nav a {
  --fk2-nav-fg: var(--fk2-text);
  --fk2-nav-active: var(--fk2-brand);
  font-family: var(--fk2-font-display); font-weight: 700; text-transform: uppercase;
  font-size: var(--fk2-fs-sm); letter-spacing: var(--fk2-tracking-label); color: var(--fk2-nav-fg); text-decoration: none;
  padding: 6px 2px 8px; border-bottom: var(--fk2-bd-thick) solid transparent;
}
.fk2-nav a:hover { color: var(--fk2-nav-active); }
.fk2-nav a.is-active, .fk2-nav a[aria-current] { color: var(--fk2-nav-active); border-bottom-color: var(--fk2-nav-active); }

/* --- 3.5 Top menu (header) ---------------------------------------------- */
.fk2-header {
  --fk2-header-bg: var(--fk2-surface-2);
  --fk2-header-pad-y: var(--fk2-space-3);
  --fk2-header-pad-x: var(--fk2-space-7);
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: var(--fk2-space-6);
  padding: var(--fk2-header-pad-y) var(--fk2-header-pad-x);
  background: var(--fk2-header-bg);
  box-shadow: 0 1px 0 rgba(34, 29, 29, .07), 0 6px 20px rgba(34, 29, 29, .06);
}
.fk2-header .brand { display: flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.fk2-header .brand img { height: 38px; width: auto; display: block; }
.fk2-header-nav { margin: 0 auto; }
.fk2-header-utils { display: flex; align-items: center; gap: var(--fk2-space-5); flex-shrink: 0; margin-left: auto; }
.fk2-util {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--fk2-font-display); font-weight: 700; text-transform: uppercase;
  font-size: var(--fk2-fs-xs); letter-spacing: var(--fk2-tracking-label); color: var(--fk2-text); text-decoration: none;
}
.fk2-util .ic { color: var(--fk2-accent); font-size: 15px; }
.fk2-util:hover { color: var(--fk2-brand); }
/* CSS-only hamburger (checkbox toggle) */
.fk2-header-check { position: absolute; opacity: 0; pointer-events: none; }
.fk2-header-burger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 6px; }
.fk2-header-burger span { width: 26px; height: 3px; border-radius: 2px; background: var(--fk2-text); transition: transform var(--fk2-transition), opacity var(--fk2-transition); }
.fk2-header-check:checked ~ .fk2-header-utils .fk2-header-burger span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.fk2-header-check:checked ~ .fk2-header-utils .fk2-header-burger span:nth-child(2) { opacity: 0; }
.fk2-header-check:checked ~ .fk2-header-utils .fk2-header-burger span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
@media (max-width: 1024px) {
  .fk2-header { flex-wrap: wrap; }
  .fk2-header-nav {
    order: 3; flex-basis: 100%; margin: 0; flex-direction: column; align-items: stretch; gap: 0;
    max-height: 0; overflow: hidden; transition: max-height var(--fk2-transition);
  }
  .fk2-header-check:checked ~ .fk2-header-nav { max-height: 60vh; margin-top: var(--fk2-space-2); }
  .fk2-header-nav a { padding: var(--fk2-space-3) 2px; border-bottom: var(--fk2-bd-hair) solid var(--fk2-border); }
  .fk2-util { display: none; }
  .fk2-header-burger { display: flex; }
}

/* --- 3.6 Footer ---------------------------------------------------------- */
.fk2-footer {
  --fk2-footer-bg: var(--fk2-highlight);
  --fk2-footer-fg: var(--fk2-ink);
  background: var(--fk2-footer-bg); color: var(--fk2-footer-fg); padding: var(--fk2-space-7) 0 var(--fk2-space-5);
}
.fk2-footer--dark { --fk2-footer-bg: var(--fk2-ink); --fk2-footer-fg: #fff6e3; }
.fk2-footer-inner { max-width: 1160px; margin: 0 auto; padding: 0 var(--fk2-space-7); }
.fk2-footer-top { display: flex; align-items: center; justify-content: space-between; gap: var(--fk2-space-4) var(--fk2-space-7); flex-wrap: wrap; }
.fk2-footer .brand { display: inline-flex; align-items: center; text-decoration: none; }
.fk2-footer .brand img { height: 34px; width: auto; display: block; }
.fk2-footer-links { display: flex; flex-wrap: wrap; gap: 6px var(--fk2-space-5); font-weight: 800; font-size: var(--fk2-fs-sm); }
.fk2-footer-links a { text-decoration: none; color: inherit; opacity: .82; }
.fk2-footer-links a:hover { opacity: 1; text-decoration: underline; }
/* multi-column footer — brand + link columns + an app/social column.
   KNOBS: --fk2-footer-cols (the grid template), --fk2-footer-col-gap */
.fk2-footer-cols {
  --fk2-footer-cols: 1.4fr repeat(3, 1fr) 1.2fr;
  --fk2-footer-col-gap: var(--fk2-space-6);
  display: grid; grid-template-columns: var(--fk2-footer-cols);
  gap: var(--fk2-footer-col-gap); padding: var(--fk2-space-6) 0 var(--fk2-space-7);
}
.fk2-footer-cols h3 {
  font-family: var(--fk2-font-display); font-weight: 700; text-transform: uppercase;
  font-size: var(--fk2-fs-xs); letter-spacing: var(--fk2-tracking-label);
  margin-bottom: var(--fk2-space-3); opacity: .75;
}
.fk2-footer-cols a { display: block; color: inherit; text-decoration: none; font-weight: 700; font-size: var(--fk2-fs-sm); padding: 3px 0; opacity: .9; }
.fk2-footer-cols a:hover { text-decoration: underline; opacity: 1; }
/* the brand column stacks; .fk2-footer .brand is inline-flex for the top bar */
.fk2-footer-cols .brand { display: block; }
.fk2-footer-cols .brand img { max-width: 190px; height: auto; }
.fk2-footer-cols .brand p { font-weight: 700; margin-top: var(--fk2-space-4); opacity: .9; }
.fk2-footer-badges { display: flex; gap: var(--fk2-space-3); margin-bottom: var(--fk2-space-6); }
.fk2-footer-badges a { padding: 0; }
.fk2-footer-badges img { height: 40px; width: auto; }
@media (max-width: 900px) { .fk2-footer-cols { --fk2-footer-cols: 1fr 1fr; } }
@media (max-width: 560px) { .fk2-footer-cols { --fk2-footer-cols: 1fr; } }
/* social — drawn from the kit's own tokens (round chip + currentColor glyph),
   so it inherits a rebrand instead of fighting it with stock brand-colour PNGs.
   KNOBS: --fk2-social-size --fk2-social-bg --fk2-social-fg
          --fk2-social-hover-bg --fk2-social-hover-fg --fk2-social-gap */
.fk2-social {
  --fk2-social-gap: var(--fk2-space-3);
  display: flex; gap: var(--fk2-social-gap);
}
.fk2-social a {
  --fk2-social-size: 34px;
  --fk2-social-bg: rgba(34, 29, 29, .07);
  --fk2-social-fg: var(--fk2-ink);
  --fk2-social-hover-bg: var(--fk2-ink);
  --fk2-social-hover-fg: var(--fk2-highlight);
  width: var(--fk2-social-size); height: var(--fk2-social-size);
  border-radius: 50%; display: grid; place-items: center; box-shadow: none;
  background: var(--fk2-social-bg); color: var(--fk2-social-fg);
  transition: transform var(--fk2-transition), background var(--fk2-transition), color var(--fk2-transition);
}
.fk2-social a:hover { transform: translateY(-2px); background: var(--fk2-social-hover-bg); color: var(--fk2-social-hover-fg); }
.fk2-social svg { width: 55%; height: 55%; display: block; fill: currentColor; }
/* on dark surfaces */
.fk2-social--invert a {
  --fk2-social-bg: rgba(255, 246, 227, .12);
  --fk2-social-fg: var(--fk2-cream);
  --fk2-social-hover-bg: var(--fk2-highlight);
  --fk2-social-hover-fg: var(--fk2-ink);
}

/* close / dismiss — deliberately quiet. A close control is never the primary
   action on the surface it sits on, so it gets no fill and no lift until you
   reach for it; it firms up on hover only.
   KNOBS: --fk2-close-size --fk2-close-bg --fk2-close-fg
          --fk2-close-hover-bg --fk2-close-hover-fg */
.fk2-close {
  --fk2-close-size: 28px;
  --fk2-close-bg: transparent;
  --fk2-close-fg: var(--fk2-text-muted);
  --fk2-close-hover-bg: rgba(34, 29, 29, .07);
  --fk2-close-hover-fg: var(--fk2-text);
  width: var(--fk2-close-size); height: var(--fk2-close-size);
  flex: none; display: inline-grid; place-items: center; cursor: pointer;
  border: 0; border-radius: 50%; padding: 0;
  background: var(--fk2-close-bg); color: var(--fk2-close-fg);
  font-family: var(--fk2-font-body); font-weight: 800; font-size: 15px; line-height: 1;
  transition: background var(--fk2-transition), color var(--fk2-transition);
}
.fk2-close:hover { background: var(--fk2-close-hover-bg); color: var(--fk2-close-hover-fg); }
.fk2-close:focus-visible { outline: none; box-shadow: var(--fk2-focus); }
.fk2-close--invert { --fk2-close-fg: rgba(255, 246, 227, .7); --fk2-close-hover-bg: rgba(255, 246, 227, .16); --fk2-close-hover-fg: var(--fk2-cream); }

/* action bar — the kit's one rule about button order: the primary/confirm
   action is ALWAYS last, hard right. Secondary/cancel sits to its left.
   KNOBS: --fk2-actions-gap --fk2-actions-justify --fk2-actions-mt */
.fk2-actions {
  --fk2-actions-gap: var(--fk2-space-3);
  --fk2-actions-justify: flex-end;
  --fk2-actions-mt: var(--fk2-space-5);
  display: flex; flex-wrap: wrap; align-items: center;
  gap: var(--fk2-actions-gap); justify-content: var(--fk2-actions-justify);
  margin-top: var(--fk2-actions-mt);
}
/* destructive/secondary pushed hard left, primary stays right */
.fk2-actions--split { --fk2-actions-justify: space-between; }
.fk2-actions--split > :last-child { margin-left: auto; }
.fk2-footer-copy { text-align: center; margin-top: var(--fk2-space-5); padding-top: var(--fk2-space-4); border-top: var(--fk2-bd-hair) solid rgba(34, 29, 29, .14); font-size: var(--fk2-fs-2xs); font-weight: 700; opacity: .78; }
.fk2-footer--dark .fk2-footer-copy { border-top-color: rgba(255, 255, 255, .16); }

/* --- 3.7 Chips & filters ------------------------------------------------- */
.fk2-chip {
  --fk2-chip-bg: var(--fk2-surface);
  --fk2-chip-fg: var(--fk2-text);
  --fk2-chip-bd: var(--fk2-border);
  --fk2-chip-sel-bg: var(--fk2-brand);
  --fk2-chip-sel-fg: #fff;
  display: inline-flex; align-items: center; gap: var(--fk2-space-2);
  font-family: var(--fk2-font-body); font-weight: 800; font-size: var(--fk2-fs-sm);
  color: var(--fk2-chip-fg); text-decoration: none; cursor: pointer;
  padding: var(--fk2-space-2) var(--fk2-space-4); background: var(--fk2-chip-bg);
  border: var(--fk2-bd-thin) solid var(--fk2-chip-bd); border-radius: var(--fk2-radius-control);
  transition: border-color var(--fk2-transition), background var(--fk2-transition);
}
.fk2-chip:hover { border-color: var(--fk2-brand); }
.fk2-chip.is-selected { background: var(--fk2-chip-sel-bg); border-color: var(--fk2-chip-sel-bg); color: var(--fk2-chip-sel-fg); }
.fk2-chip--sm { padding: 5px var(--fk2-space-3); font-size: var(--fk2-fs-xs); }
.fk2-chip-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.fk2-filter-label { font-family: var(--fk2-font-display); font-weight: 700; text-transform: uppercase; font-size: var(--fk2-fs-2xs); letter-spacing: var(--fk2-tracking-label); color: var(--fk2-text-muted); }

/* status dots + badges */
.fk2-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: baseline; }
.fk2-dot--open { background: #1eae62; }
.fk2-dot--busy { background: var(--fk2-highlight-deep); }
.fk2-dot--new { background: var(--fk2-purple); }
.fk2-dot--fav { background: var(--fk2-accent); }
.fk2-badge {
  --fk2-badge-bg: var(--fk2-brand-soft);
  --fk2-badge-fg: var(--fk2-brand-deep);
  display: inline-block; padding: 3px var(--fk2-space-3) 4px; border-radius: var(--fk2-radius-control);
  font-family: var(--fk2-font-body); font-weight: 800; font-size: var(--fk2-fs-2xs);
  text-transform: uppercase; letter-spacing: var(--fk2-tracking-label);
  background: var(--fk2-badge-bg); color: var(--fk2-badge-fg);
}
.fk2-badge--pink   { --fk2-badge-bg: var(--fk2-accent-soft); --fk2-badge-fg: var(--fk2-accent-deep); }
.fk2-badge--yellow { --fk2-badge-bg: #ffedb0; --fk2-badge-fg: #8a6400; }
/* was a solid ink slab — too heavy for a passive state like "Closed" */
.fk2-badge--ink    { --fk2-badge-bg: rgba(34, 29, 29, .07); --fk2-badge-fg: var(--fk2-text-muted); }
.fk2-badge--solid  { --fk2-badge-bg: var(--fk2-ink); --fk2-badge-fg: var(--fk2-highlight); }
.fk2-rating { font-weight: 800; color: var(--fk2-text); }
.fk2-rating .star { color: var(--fk2-highlight-deep); }

/* --- 3.8 Cards ----------------------------------------------------------- */
.fk2-card {
  --fk2-card-bg: var(--fk2-surface);
  --fk2-card-bd: var(--fk2-border);
  --fk2-card-radius: var(--fk2-radius-card);
  --fk2-card-shadow: var(--fk2-shadow-card);
  --fk2-card-pad: var(--fk2-space-6);
  background: var(--fk2-card-bg); border: var(--fk2-bd-hair) solid var(--fk2-card-bd);
  border-radius: var(--fk2-card-radius); box-shadow: var(--fk2-card-shadow);
  padding: var(--fk2-card-pad);
}
.fk2-card--flat { --fk2-card-shadow: var(--fk2-shadow-sm); }
.fk2-card--cream { --fk2-card-bg: var(--fk2-surface-2); }

/* truck directory card */
.fk2-truck-card {
  --fk2-truck-photo: linear-gradient(158deg, #e4f5f2, #c4ebe4);
  background: var(--fk2-surface); border: var(--fk2-bd-hair) solid var(--fk2-border);
  border-radius: var(--fk2-radius-card); overflow: hidden; text-decoration: none;
  color: var(--fk2-text); display: flex; flex-direction: column; box-shadow: var(--fk2-shadow-card);
  transition: transform var(--fk2-transition), box-shadow var(--fk2-transition);
}
.fk2-truck-card { border-radius: var(--fk2-r-md); }
.fk2-truck-card:hover { transform: translateY(-4px); box-shadow: var(--fk2-shadow-pop); }
.fk2-truck-card .photo {
  position: relative; height: 132px; display: flex; align-items: center; justify-content: center;
  font-size: 58px; background: var(--fk2-truck-photo);
}
.fk2-truck-card .photo--yellow { --fk2-truck-photo: linear-gradient(158deg, #ffe884, #ffce1c); }
.fk2-truck-card .photo--pink { --fk2-truck-photo: linear-gradient(158deg, #fde3ec, #f8c3d3); }
.fk2-truck-card .photo--orange { --fk2-truck-photo: linear-gradient(158deg, #ffd3a6, #f7a35e); }
.fk2-truck-card .photo::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(255, 255, 255, .28), rgba(0, 0, 0, .07)); }
.fk2-truck-card .photo > * { position: relative; z-index: 1; }
.fk2-truck-card .fav { position: absolute; top: 10px; right: 10px; width: 32px; height: 32px; background: var(--fk2-surface); border-radius: 50%; display: grid; place-items: center; box-shadow: var(--fk2-shadow-sm); color: var(--fk2-accent); font-size: 16px; }
.fk2-truck-card .body { padding: var(--fk2-space-4) var(--fk2-space-4) var(--fk2-space-4); }
.fk2-truck-card h3 { font-family: var(--fk2-font-display); font-weight: 700; font-size: var(--fk2-fs-lg); margin: 0; display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.fk2-truck-card .tags { font-size: var(--fk2-fs-xs); font-weight: 700; color: var(--fk2-text-muted); margin-top: 2px; }
.fk2-truck-card .meta { display: flex; justify-content: space-between; align-items: center; margin-top: var(--fk2-space-3); font-size: var(--fk2-fs-xs); font-weight: 800; }

/* truck card — wide/list variant: same markup, photo moves to the side */
.fk2-truck-card--wide { flex-direction: row; align-items: stretch; }
.fk2-truck-card--wide .photo { height: auto; width: 116px; flex: none; font-size: 40px; }
.fk2-truck-card--wide .body { flex: 1; display: flex; flex-direction: column; justify-content: center; }

/* --- menu item card — one dish on a truck's menu ------------------------- */
.fk2-item-card {
  --fk2-item-thumb: linear-gradient(158deg, #ffe884, #ffce1c);
  --fk2-item-pad: var(--fk2-space-4);
  position: relative;
  background: var(--fk2-surface); border: var(--fk2-bd-hair) solid var(--fk2-border);
  border-radius: var(--fk2-r-md); box-shadow: var(--fk2-shadow-card);
  overflow: hidden; text-decoration: none; color: var(--fk2-text);
  display: flex; flex-direction: column;
  transition: transform var(--fk2-transition), box-shadow var(--fk2-transition);
}
.fk2-item-card:hover { transform: translateY(-3px); box-shadow: var(--fk2-shadow-pop); }
.fk2-item-card .thumb {
  position: relative; height: 104px; display: grid; place-items: center;
  font-size: 46px; background: var(--fk2-item-thumb);
}
.fk2-item-card .thumb--teal { --fk2-item-thumb: linear-gradient(158deg, #eafaf7, var(--fk2-brand-soft)); }
.fk2-item-card .thumb--pink { --fk2-item-thumb: linear-gradient(158deg, #fdeaf0, var(--fk2-accent-soft)); }
.fk2-item-card .thumb--cream { --fk2-item-thumb: linear-gradient(158deg, #fff6e3, #f1e3c8); }
.fk2-item-card .thumb::after { content: ""; position: absolute; inset: 0; background: var(--fk2-sheen); pointer-events: none; }
/* corner flag — "Popular", "New", "2 left" */
.fk2-item-card .flag {
  position: absolute; top: 8px; left: 8px; z-index: 1;
  background: var(--fk2-ink); color: var(--fk2-highlight);
  font-family: var(--fk2-font-display); font-weight: 800; text-transform: uppercase;
  font-size: var(--fk2-fs-2xs); letter-spacing: var(--fk2-tracking-label);
  padding: 2px 8px; border-radius: var(--fk2-r-pill);
}
.fk2-item-card .body { padding: var(--fk2-item-pad); display: flex; flex-direction: column; flex: 1; }
.fk2-item-card h4 {
  font-family: var(--fk2-font-display); font-weight: 700; font-size: var(--fk2-fs-md);
  line-height: 1.15; margin: 0;
}
.fk2-item-card .desc {
  font-size: var(--fk2-fs-xs); font-weight: 700; color: var(--fk2-text-muted);
  margin-top: 3px; line-height: 1.35;
}
/* dietary / prep tags */
.fk2-item-card .diet { display: flex; flex-wrap: wrap; gap: 4px; margin-top: var(--fk2-space-3); }
.fk2-item-tag {
  font-size: var(--fk2-fs-2xs); font-weight: 800; letter-spacing: var(--fk2-tracking-label);
  color: var(--fk2-brand-deep); background: var(--fk2-brand-soft);
  border-radius: var(--fk2-r-pill); padding: 1px 7px;
}
.fk2-item-tag--spicy { color: var(--fk2-accent-deep); background: var(--fk2-accent-soft); }
.fk2-item-tag--plain { color: var(--fk2-text-muted); background: var(--fk2-surface-2); border: var(--fk2-bd-hair) solid var(--fk2-border); }
/* price rail pinned to the bottom so a grid of cards lines up */
.fk2-item-card .buy {
  display: flex; align-items: center; justify-content: space-between; gap: var(--fk2-space-3);
  margin-top: auto; padding-top: var(--fk2-space-3);
}
.fk2-item-price { font-family: var(--fk2-font-display); font-weight: 800; font-size: var(--fk2-fs-lg); }
.fk2-item-price .was { font-size: var(--fk2-fs-xs); font-weight: 700; color: var(--fk2-text-muted); text-decoration: line-through; margin-left: 5px; }
.fk2-item-card .add {
  flex: none; width: 30px; height: 30px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--fk2-accent); color: var(--fk2-on-accent);
  font-family: var(--fk2-font-display); font-weight: 800; font-size: 18px; line-height: 1;
  display: grid; place-items: center; box-shadow: var(--fk2-shadow-sm);
  transition: transform var(--fk2-transition);
}
.fk2-item-card .add:hover { transform: scale(1.08); }
.fk2-item-card.is-soldout { opacity: .62; }
.fk2-item-card.is-soldout .add { background: var(--fk2-text-muted); cursor: not-allowed; }

/* menu item — dense list row (a truck's menu, order screens) */
.fk2-item-row {
  display: flex; align-items: center; gap: var(--fk2-space-4);
  background: var(--fk2-surface); border: var(--fk2-bd-hair) solid var(--fk2-border);
  border-radius: var(--fk2-r-md); padding: var(--fk2-space-3) var(--fk2-space-4);
  text-decoration: none; color: var(--fk2-text);
  transition: border-color var(--fk2-transition), box-shadow var(--fk2-transition);
}
.fk2-item-row:hover { border-color: var(--fk2-brand); box-shadow: var(--fk2-shadow-sm); }
.fk2-item-row .thumb {
  flex: none; width: 46px; height: 46px; border-radius: var(--fk2-r-sm);
  display: grid; place-items: center; font-size: 24px;
  background: linear-gradient(158deg, #ffe884, #ffce1c);
}
.fk2-item-row .body { flex: 1; min-width: 0; }
.fk2-item-row h4 { font-family: var(--fk2-font-display); font-weight: 700; font-size: var(--fk2-fs-base); margin: 0; }
.fk2-item-row .desc { font-size: var(--fk2-fs-2xs); font-weight: 700; color: var(--fk2-text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* feature tile */
.fk2-feature { text-align: center; max-width: 150px; }
.fk2-feature .icn {
  --fk2-feature-icn: linear-gradient(155deg, #ffe272, var(--fk2-highlight));
  width: 66px; height: 66px; margin: 0 auto 10px; border-radius: var(--fk2-r-md);
  display: grid; place-items: center; font-size: 30px; background: var(--fk2-feature-icn); box-shadow: var(--fk2-shadow-sm);
}
.fk2-feature .icn--teal { --fk2-feature-icn: linear-gradient(155deg, #eafaf7, var(--fk2-brand-soft)); }
.fk2-feature .icn--pink { --fk2-feature-icn: linear-gradient(155deg, #fdeaf0, var(--fk2-accent-soft)); }
.fk2-feature h4 { font-family: var(--fk2-font-display); font-weight: 700; text-transform: uppercase; font-size: var(--fk2-fs-xs); letter-spacing: var(--fk2-tracking-label); margin: 0 0 4px; }
.fk2-feature p { font-size: var(--fk2-fs-2xs); font-weight: 700; color: var(--fk2-text-muted); margin: 0; line-height: 1.4; }

/* audience row card */
.fk2-audience {
  --fk2-audience-bg: var(--fk2-surface-2);
  --fk2-audience-icn: var(--fk2-highlight);
  display: flex; align-items: center; gap: var(--fk2-space-4); text-decoration: none; color: var(--fk2-text);
  background: var(--fk2-audience-bg); border: var(--fk2-bd-hair) solid var(--fk2-border);
  border-radius: var(--fk2-r-md); padding: var(--fk2-space-4); transition: transform var(--fk2-transition), box-shadow var(--fk2-transition);
}
.fk2-audience:hover { transform: translateY(-2px); box-shadow: var(--fk2-shadow-sm); }
.fk2-audience .icn { width: 54px; height: 54px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; font-size: 26px; background: var(--fk2-audience-icn); }
.fk2-audience h4 { font-family: var(--fk2-font-display); font-weight: 700; text-transform: uppercase; font-size: var(--fk2-fs-sm); letter-spacing: var(--fk2-tracking-label); color: var(--fk2-accent); margin: 0 0 2px; }
.fk2-audience p { font-size: var(--fk2-fs-xs); font-weight: 700; margin: 0; line-height: 1.35; }
.fk2-audience .chev { margin-left: auto; font-weight: 900; color: var(--fk2-text); font-size: 18px; }

/* app promo panel */
.fk2-promo {
  position: relative; overflow: hidden; color: #fff;
  background: var(--fk2-sheen), radial-gradient(120% 100% at 15% 0%, #17b6a1, var(--fk2-brand-deep));
  border-radius: var(--fk2-radius-card); padding: var(--fk2-space-6) 28px; box-shadow: var(--fk2-shadow-card);
}
.fk2-promo h3 { font-family: var(--fk2-font-display); font-weight: 700; text-transform: uppercase; font-size: var(--fk2-fs-xl); letter-spacing: var(--fk2-tracking-label); margin: 0 0 4px; }
.fk2-promo .sub { font-weight: 700; opacity: .9; margin: 0 0 var(--fk2-space-4); font-size: var(--fk2-fs-sm); }
.fk2-check { list-style: none; margin: 0 0 var(--fk2-space-4); padding: 0; }
.fk2-check li { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: var(--fk2-fs-sm); padding: 4px 0; }
.fk2-check li::before { content: "✓"; flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--fk2-highlight); color: var(--fk2-ink); font-weight: 900; font-size: var(--fk2-fs-xs); display: grid; place-items: center; }
.fk2-qr-slot { background: var(--fk2-surface); color: var(--fk2-text); border-radius: var(--fk2-r-sm); padding: 10px; text-align: center; font-size: var(--fk2-fs-2xs); font-weight: 800; }

/* stat cell */
.fk2-stat { text-align: center; }
.fk2-stat b { display: block; font-family: var(--fk2-font-display); font-weight: 700; font-size: var(--fk2-fs-3xl); line-height: 1; }
.fk2-stat .lbl { font-family: var(--fk2-font-display); font-weight: 700; text-transform: uppercase; font-size: var(--fk2-fs-xs); letter-spacing: var(--fk2-tracking-label); opacity: .9; margin-top: 4px; display: block; }

/* --- 3.9 Forms ----------------------------------------------------------- */
.fk2-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: var(--fk2-space-4); }
.fk2-label { font-family: var(--fk2-font-display); font-weight: 700; text-transform: uppercase; font-size: var(--fk2-fs-2xs); letter-spacing: var(--fk2-tracking-label); color: var(--fk2-text-muted); }
.fk2-input, .fk2-select, .fk2-textarea {
  --fk2-input-bg: var(--fk2-surface);
  --fk2-input-bd: var(--fk2-border);
  --fk2-input-radius: var(--fk2-radius-field);
  font-family: var(--fk2-font-body); font-weight: 700; font-size: var(--fk2-fs-base);
  color: var(--fk2-text); background: var(--fk2-input-bg);
  border: var(--fk2-bd-thin) solid var(--fk2-input-bd); border-radius: var(--fk2-input-radius);
  padding: 11px var(--fk2-space-4); outline: none; width: 100%;
  transition: border-color var(--fk2-transition), box-shadow var(--fk2-transition);
}
.fk2-textarea { min-height: 96px; resize: vertical; }
.fk2-input::placeholder, .fk2-textarea::placeholder { color: var(--fk2-text-muted); opacity: .55; font-weight: 500; }
/* numbers: right-aligned, tabular — works on inputs and table cells alike */
.fk2-num, .fk2-table th.fk2-num, .fk2-table td.fk2-num { text-align: right; font-variant-numeric: tabular-nums; }
.fk2-input:focus, .fk2-select:focus, .fk2-textarea:focus { border-color: var(--fk2-brand); box-shadow: var(--fk2-focus); }
.fk2-input.fk2-invalid, .fk2-input[aria-invalid="true"] { border-color: var(--fk2-accent); }
.fk2-help { font-size: var(--fk2-fs-2xs); font-weight: 700; color: var(--fk2-text-muted); }
.fk2-error-text { font-size: var(--fk2-fs-2xs); font-weight: 800; color: var(--fk2-accent-deep); }

/* search bar */
.fk2-search {
  display: flex; align-items: center; gap: 0; background: var(--fk2-surface);
  border: var(--fk2-bd-thin) solid var(--fk2-ink); border-radius: var(--fk2-r-pill);
  padding: 4px 4px 4px var(--fk2-space-4); box-shadow: var(--fk2-shadow-sm); max-width: 560px;
}
.fk2-search .pin { color: var(--fk2-accent); font-size: 18px; margin-right: var(--fk2-space-2); }
.fk2-search input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; font-family: var(--fk2-font-body); font-weight: 700; font-size: var(--fk2-fs-base); color: var(--fk2-text); }
.fk2-search .fk2-btn { box-shadow: 0 var(--fk2-btn-lift) 0 var(--fk2-btn-shade); }

/* --- 3.10 Menu / dropdown ------------------------------------------------ */
.fk2-menu {
  --fk2-menu-bg: var(--fk2-surface);
  background: var(--fk2-menu-bg); border: var(--fk2-bd-hair) solid var(--fk2-border);
  border-radius: var(--fk2-r-md); box-shadow: var(--fk2-shadow-md); padding: var(--fk2-space-2); min-width: 210px;
}
.fk2-menu a { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--fk2-text); font-weight: 800; font-size: var(--fk2-fs-sm); padding: 9px var(--fk2-space-3); border-radius: var(--fk2-r-sm); }
.fk2-menu a:hover { background: var(--fk2-brand-soft); color: var(--fk2-brand-deep); }
.fk2-menu .sep { height: 2px; background: var(--fk2-border); margin: 6px var(--fk2-space-2); border-radius: 2px; }

/* --- 3.11 Tables & tabs -------------------------------------------------- */
.fk2-table-wrap { overflow-x: auto; }
.fk2-table {
  --fk2-table-bg: var(--fk2-surface);
  --fk2-table-head-bg: var(--fk2-surface-2);
  width: 100%; border-collapse: separate; border-spacing: 0;
  background: var(--fk2-table-bg); border: var(--fk2-bd-hair) solid var(--fk2-border);
  border-radius: var(--fk2-r-md); overflow: hidden; font-size: var(--fk2-fs-sm); box-shadow: var(--fk2-shadow-sm);
}
.fk2-table th { font-family: var(--fk2-font-display); font-weight: 700; text-transform: uppercase; font-size: var(--fk2-fs-2xs); letter-spacing: var(--fk2-tracking-label); color: var(--fk2-text-muted); text-align: left; background: var(--fk2-table-head-bg); padding: 11px var(--fk2-space-4); border-bottom: var(--fk2-bd-thin) solid var(--fk2-border); }
.fk2-table td { padding: 11px var(--fk2-space-4); border-bottom: var(--fk2-bd-hair) solid var(--fk2-border); font-weight: 700; }
.fk2-table tr:last-child td { border-bottom: 0; }
.fk2-table tbody tr:hover { background: var(--fk2-surface-2); }
/* row actions live in the last column and align right — same rule as
   .fk2-actions: the button you press sits on the right edge. */
.fk2-table th:last-child, .fk2-table td:last-child { text-align: right; }
.fk2-table td:last-child { white-space: nowrap; }

.fk2-tabs { display: flex; flex-wrap: wrap; gap: var(--fk2-space-2); }
.fk2-tab {
  --fk2-tab-bg: var(--fk2-surface);
  --fk2-tab-fg: var(--fk2-text);
  --fk2-tab-active-bg: var(--fk2-ink);
  --fk2-tab-active-fg: var(--fk2-highlight);
  --fk2-tab-active-bd: var(--fk2-tab-active-bg);
  display: inline-block; text-decoration: none; cursor: pointer;
  font-family: var(--fk2-font-display); font-weight: 700; text-transform: uppercase;
  font-size: var(--fk2-fs-xs); letter-spacing: var(--fk2-tracking-label); color: var(--fk2-tab-fg);
  padding: var(--fk2-space-2) var(--fk2-space-5); background: var(--fk2-tab-bg);
  border: var(--fk2-bd-thin) solid var(--fk2-border); border-radius: var(--fk2-radius-control);
}
.fk2-tab:hover { border-color: var(--fk2-brand); }
.fk2-tab.is-active, .fk2-tab[aria-current] { background: var(--fk2-tab-active-bg); border-color: var(--fk2-tab-active-bd); color: var(--fk2-tab-active-fg); }

/* --- 3.12 Alerts --------------------------------------------------------- */
.fk2-alert {
  --fk2-alert-bg: var(--fk2-brand-soft);
  --fk2-alert-fg: var(--fk2-brand-deep);
  --fk2-alert-icon: "✓";
  display: flex; align-items: center; gap: var(--fk2-space-3);
  border-radius: var(--fk2-r-md); padding: 13px var(--fk2-space-4); margin-bottom: var(--fk2-space-3);
  font-weight: 800; font-size: var(--fk2-fs-sm);
  background: var(--fk2-alert-bg); color: var(--fk2-alert-fg); border: var(--fk2-bd-thin) solid rgba(18, 160, 142, .35);
}
.fk2-alert::before { content: var(--fk2-alert-icon); font-weight: 900; }
.fk2-alert--error { --fk2-alert-bg: var(--fk2-accent-soft); --fk2-alert-fg: var(--fk2-accent-deep); --fk2-alert-icon: "!"; border-color: rgba(239, 62, 110, .4); }
.fk2-alert--warn { --fk2-alert-bg: #fff1c2; --fk2-alert-fg: #7d5c00; --fk2-alert-icon: "⚠"; border-color: rgba(240, 180, 0, .5); }

/* ==========================================================================
   4. DENSE MODE — logged-in / admin surfaces (tighter rhythm, same tokens)
   ========================================================================== */
.fk2-dense { font-size: var(--fk2-fs-xs); }
.fk2-dense .fk2-btn { --fk2-btn-pad-y: var(--fk2-space-2); --fk2-btn-pad-x: var(--fk2-space-4); --fk2-btn-fs: var(--fk2-fs-2xs); --fk2-btn-lift: 2px; }
.fk2-dense .fk2-card { --fk2-card-pad: var(--fk2-space-4); --fk2-card-radius: var(--fk2-r-md); }
.fk2-dense .fk2-table th, .fk2-dense .fk2-table td { padding: 7px var(--fk2-space-3); }
.fk2-dense .fk2-table td { font-size: var(--fk2-fs-xs); }
/* dense selection is a soft brand wash, not an ink slab — a work surface has
   many selected things on screen at once and black blocks fight the data. */
.fk2-dense .fk2-tab {
  padding: 5px var(--fk2-space-3); font-size: var(--fk2-fs-2xs);
  --fk2-tab-active-bg: var(--fk2-brand-soft);
  --fk2-tab-active-fg: var(--fk2-brand-deep);
  --fk2-tab-active-bd: var(--fk2-brand);
}
.fk2-dense .fk2-chip { --fk2-chip-sel-bg: var(--fk2-brand-soft); --fk2-chip-sel-fg: var(--fk2-brand-deep); }
.fk2-dense .fk2-chip.is-selected { border-color: var(--fk2-brand); }
.fk2-dense .fk2-input, .fk2-dense .fk2-select { padding: 7px var(--fk2-space-3); font-size: var(--fk2-fs-xs); }
.fk2-dense .fk2-field { margin-bottom: var(--fk2-space-3); gap: 4px; }
.fk2-dense .fk2-stat b { font-size: var(--fk2-fs-2xl); }
