/* =============================================================================
   AKA SHOWROOM STYLES · shared engine look (CL-299). Every style page loads this, then its own <style>.css.
   - The color contract: the Studio, its brand kit and the Mix bar read --sr-*; each pack's exact hex arrive as --pk-* (a <style> in the page head).
     With a palette picked in the Studio, the mixer's --mx-* win; with none, the pack's own colors show.
   - Buttons (3 styles + glow + hover / click), the AI label, the AKAREC strip / end band / mini footer, the "my photo" controls.
   No hex in a style's own css except inside its :root tokens.
   ============================================================================= */
:root {
  --sr-accent: var(--mx-pri, var(--pk-main));
  --sr-accent-2: var(--mx-sec, var(--pk-second));
  --sr-line: var(--mx-line, var(--pk-structure));
  --sr-ink: var(--pk-ink);
  --sr-paper: var(--pk-paper);
  --sr-on-accent: var(--mx-on-pri, var(--pk-on-main));
  --sr-on-accent-2: var(--mx-on-sec, var(--pk-on-second));
  /* small text on the page: a shade of the same color that reads at 4.5:1 (worked out by the build, never a new color) */
  --sr-accent-text: var(--mx-text-pri, var(--pk-main-text));
  --sr-accent-2-text: var(--mx-text-sec, var(--pk-second-text));
  --sr-accent-2-on-dark: var(--mx-sec-soft, var(--sr-accent-2));
  --sr-kit-logo-light: var(--sr-line);
  --sr-kit-logo-dark: var(--sr-accent-2);
  --sr-glow: var(--sr-accent-2);
  --sr-font-display: Georgia, serif;
  --sr-font-body: system-ui, -apple-system, sans-serif;
  --ak-strip-h: 48px;
  /* AKAREC palette tokens for the shared signature features (cursor, Mix bar, Random Aura / Texture); copy of site/_build/tokens.css */
  --p-obsidian:#060A12;--p-midnight:#0A1424;--p-ink:#0B1930;--p-amber:#F59E0B;--p-citron:#FDE047;--p-blue:#0284C7;--p-gold:#B45309;--p-linen:#FAF8F5;--p-ivory:#F5F1E9;
  --p-amber-deep:#D97706;--p-amber-brown:#92400E;--p-amber-light:#FCD34D;--p-amber-pale:#FDE68A;--p-blue-deep:#0369A1;--p-sky:#38BDF8;--p-sky-pale:#7DD3FC;
  --p-emerald:#10B981;--p-emerald-deep:#047857;--p-void:#03060C;--p-navy:#0B1324;--p-surface:#0F1B31;--p-slate-50:#F8FAFC;--p-slate-100:#F1F5F9;--p-slate-200:#E2E8F0;
  --p-slate-300:#CBD5E1;--p-slate-350:#A3B0C2;--p-slate-400:#94A3B8;--p-slate-600:#46506A;--p-white:#FFFFFF;--p-black:#000000;
  --f-mono: ui-monospace, 'Cascadia Mono', Consolas, monospace;
  --ak-amber: var(--p-amber); --ak-gold: var(--p-amber-deep); --ak-citron: var(--p-citron); --ak-sky: var(--p-sky); --ak-emerald: var(--p-emerald);
}
:root[data-theme="day"] { --ak-amber: var(--p-gold); --ak-gold: var(--p-gold); --ak-citron: var(--p-amber); --ak-sky: var(--p-blue-deep); --ak-emerald: var(--p-emerald-deep); }
:root[data-theme="night"] {
  --sr-ink: var(--pk-night-ink);
  --sr-paper: var(--pk-night-paper);
  --sr-accent-text: var(--mx-text-pri, var(--pk-main-night));
  --sr-accent-2-text: var(--mx-sec-soft, var(--pk-second-night));
}
:root[data-btn-glow="second"] { --sr-glow: var(--sr-accent-2); }
:root[data-btn-glow="main"] { --sr-glow: var(--sr-accent); }
:root[data-btn-glow="structure"] { --sr-glow: var(--sr-line); }
:root[data-theme="night"][data-btn-glow="structure"] { --sr-glow: color-mix(in srgb, var(--sr-line) 55%, #fff); }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--ak-strip-h) + 24px); }
body { margin: 0; background: var(--sr-paper); color: var(--sr-ink); font-family: var(--sr-font-body); font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; transition: background-color 0.25s ease, color 0.25s ease; }
h1, h2, h3, p, figure, blockquote, dl, dd, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: transparent; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 3px solid var(--sr-accent-2); outline-offset: 3px; }
.sr-skip-link { position: fixed; left: 16px; top: -120px; z-index: 2000; padding: 12px 18px; background: var(--sr-line); color: #fff; border: 2px solid var(--sr-accent-2); font-size: 14px; font-weight: 600; }
.sr-skip-link:focus { top: 12px; }
.ak-sr-visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- buttons: 3 styles, glow, hover lift, click pulse (the Studio's Type & buttons tab) ---------- */
.sr-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; min-width: 44px; padding: 11px 22px;
  font-family: var(--sr-font-body); font-size: 14px; font-weight: 600; line-height: 1.25; text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}
.sr-btn-primary { background: var(--sr-accent); color: var(--sr-on-accent); border: 1.5px solid var(--sr-accent); }
/* CL-354 (Frank 2026-11-30, "Clay"): Bellwren Dental at Night. Its main color (spruce) on its spruce night paper was green on green,
   so the booking buttons use the palette's own second color (Clay #D98A6C in Spruce & Clay) with that color's own text color. Day is unchanged. */
:where(:root[data-theme="night"][data-pack="medical"]) .sr-btn-primary { background-color: var(--sr-accent-2); color: var(--sr-on-accent-2); border-color: var(--sr-accent-2); }
.sr-btn-full { width: 100%; }
:root[data-btn-style="sharp"] .sr-btn { border-radius: 0; }
:root[data-btn-style="classic"] .sr-btn { border-radius: 6px; }
:root[data-btn-style="pill"] .sr-btn { border-radius: 999px; padding-inline: 26px; }
:root[data-btn-hover="on"] .sr-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -10px var(--sr-glow), 0 0 0 3px color-mix(in srgb, var(--sr-glow) 35%, transparent); }
:root[data-btn-hover="off"] .sr-btn:hover { filter: brightness(1.06); }
:root[data-btn-click="on"] .sr-btn:active { transform: scale(0.97); }
.sr-btn.is-clicked { animation: srPulse 0.55s ease-out; }
@keyframes srPulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--sr-glow) 70%, transparent); } 100% { box-shadow: 0 0 0 16px transparent; } }

/* ---------- AI label on pictures (image standard 4b: Inter, 12 px, 4.5:1) ---------- */
.sr-ai-badge {
  position: absolute; right: 10px; bottom: 10px; padding: 4px 9px;
  font: 500 12px/1.3 'Inter', system-ui, sans-serif; letter-spacing: 0.04em;
  background: rgba(6, 10, 18, 0.82); color: #FAF8F5; border: 1px solid rgba(250, 248, 245, 0.28);
  pointer-events: none;
}
.sr-logo-slot { display: inline-grid; place-items: center; }
.sr-logo-slot img { width: 44px; height: 44px; object-fit: contain; }

/* ---------- the visitor's own photos (engine/aka-styles.js): on this device only ---------- */
[data-photo] { position: relative; }
[data-photo].is-mine .sr-ai-badge, [data-photo-echo].is-mine .sr-ai-badge { display: none; }      /* their own photo is not an AI picture */
.sx-swap {
  position: absolute; left: 10px; top: 10px; z-index: 3; display: none; align-items: center; gap: 6px;
  min-height: 36px; padding: 0 12px; border-radius: 999px;
  font: 600 13px/1 'Inter', system-ui, sans-serif; color: #FAF8F5;
  background: rgba(6, 10, 18, 0.82); border: 1px solid rgba(245, 158, 11, 0.7); box-shadow: 0 6px 16px -8px rgba(0, 0, 0, 0.8);
}
.sx-swap:hover, .sx-swap:focus-visible { background: #060A12; border-color: #FDE047; }
html.ak-studio-open .sx-swap, .sx-swap:focus-visible { display: inline-flex; }
[data-photo].is-drop::after { content: "Drop to use your photo"; position: absolute; inset: 0; z-index: 4; display: grid; place-items: center; font: 700 15px/1.2 'Inter', system-ui, sans-serif; color: #FAF8F5; background: rgba(6, 10, 18, 0.62); outline: 3px dashed #F59E0B; outline-offset: -8px; pointer-events: none; }

/* Industry / Style links in the Studio's Layout tab (look of the Studio's segmented options) */
.sx-switch { margin-bottom: 16px; }
.sx-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); padding: 3px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.13); background: rgba(255, 255, 255, 0.04); }
.sx-link { display: flex; align-items: center; justify-content: center; min-height: 40px; padding: 6px; border-radius: 9px; color: #FAF8F5; font: 600 0.8rem/1.2 'Inter', system-ui, sans-serif; text-align: center; }
.sx-link:hover { background: rgba(255, 255, 255, 0.07); }
.sx-link.is-active { background: #FAF8F5; color: #060A12; cursor: default; }
/* the "Use my photos & logo" block inside the Studio's brand kit tab (the Studio is AKAREC's dark glass) */
.sx-mine { margin: 0 0 16px; padding: 14px; border-radius: 14px; border: 1px solid rgba(245, 158, 11, 0.4); background: rgba(245, 158, 11, 0.07); }
.sx-mine p { margin: 6px 0 10px; font-size: 0.84rem; line-height: 1.45; color: #B6C2D2; }
.sx-mine p strong { color: #FAF8F5; }
.sx-mine__btns { display: flex; flex-wrap: wrap; gap: 8px; }
.sx-mine__btns .bm-btn { flex: 1 1 auto; min-height: 44px; }
.sx-mine__state { min-height: 1.2em; margin: 8px 0 0 !important; font-size: 0.8rem !important; color: #FDE047 !important; }
.sx-mine__undo { margin-top: 8px; min-height: 40px; padding: 0 12px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.2); color: #FAF8F5; font: 600 0.8rem/1 'Inter', system-ui, sans-serif; }
.sx-mine__undo:hover { border-color: #F59E0B; }

/* ---------- AKAREC frame: strip on top, end band (Studio css), mini footer ---------- */
.ak-sr-strip {
  position: sticky; top: 0; z-index: 400; height: var(--ak-strip-h);
  display: flex; align-items: center; gap: 10px; padding: 0 max(12px, 5%);
  background: #060A12; color: #FAF8F5; border-bottom: 1px solid rgba(245, 158, 11, 0.35);
  font-family: 'Inter', system-ui, -apple-system, sans-serif; font-size: 13px;
}
.ak-sr-strip__back { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; min-width: 0; margin-right: auto; color: inherit; }
.ak-sr-strip__arrow { font-size: 16px; }
.ak-sr-strip__brand { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.ak-sr-strip__brand b { font-weight: 700; letter-spacing: 0.14em; font-size: 13px; }
.ak-sr-strip__brand small { font-size: 12px; color: #CBD5E1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ak-sr-strip__back:hover .ak-sr-strip__brand b { color: #FDE047; }
/* CL-312 button system: our strip button is Ink (Linen pill on the always-dark strip); the one gold on a Showroom page is the end band (.aks-cta) */
.ak-sr-strip__cta { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 16px; border-radius: 8px; background: #FAF8F5; color: #0B1930; font-weight: 700; font-size: 13px; white-space: nowrap; transition: box-shadow 0.2s ease; }
.ak-sr-strip__cta:hover { box-shadow: 0 2px 0 0 var(--mx-pri, #F59E0B), 0 6px 18px -6px color-mix(in srgb, var(--mx-pri, #F59E0B) 70%, transparent); }
.ak-sr-strip__cta-short { display: none; }
.ak-sr-strip a:focus-visible { outline: 2px solid #FDE047; outline-offset: 2px; }
.ak-sr-foot { margin-top: 28px; padding: 18px max(12px, 5%) 0; border-top: 1px solid rgba(255, 255, 255, 0.16); text-align: center; font-family: 'Inter', system-ui, sans-serif; font-size: 13px; line-height: 1.6; }
.ak-sr-foot p { margin: 4px auto; max-width: 72ch; }
.ak-sr-foot a { text-decoration: underline; text-underline-offset: 3px; display: inline-block; min-height: 24px; }
@media (max-width: 767px) {
  .ak-sr-strip { gap: 6px; padding: 0 8px; }
  .ak-sr-strip__arrow { display: none; }
  .ak-sr-strip__brand { flex-direction: column; gap: 0; line-height: 1.2; }
  .ak-sr-strip__brand small { font-size: 11px; }
  .ak-sr-strip__cta { padding: 0 12px; }
  .ak-sr-strip__cta-long { display: none; }
  .ak-sr-strip__cta-short { display: inline; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .sr-btn, .sr-btn.is-clicked { transition: none; animation: none; } }

/* ---------- CL-308: an industry tool inside a Showroom site, in the sample's own palette (its stylesheet loads with the tool) ---------- */
.sx-tool__host { min-height: 560px; --f-head: var(--sr-font-display); --f-body: var(--sr-font-body);
  --p-amber: var(--sr-accent-2); --p-amber-light: var(--sr-accent-2-on-dark); --p-citron: var(--sr-accent-2-on-dark); --p-emerald: var(--sr-accent-2);
  --mx-pri: var(--sr-accent-2); --mx-hi: var(--sr-accent-2-on-dark); --p-obsidian: color-mix(in srgb, var(--sr-line) 55%, #000); }
.sx-tool__wait { padding: 40px 0; text-align: center; font-size: 14px; opacity: 0.7; }
.sx-tool__host.ak-ind-host .ind-preview { padding: clamp(18px, 3vw, 32px); border-radius: 20px; background: var(--sr-line); border-color: color-mix(in srgb, var(--sr-accent-2) 30%, transparent); }
.sx-tool__host.ak-ind-host .ind-preview h4 { font-size: clamp(20px, 2vw, 26px); font-weight: var(--sr-display-wght, 600); }
.sx-tool__host.ak-ind-host .ind-kpi-box { background: color-mix(in srgb, var(--sr-line) 60%, #000); }
.sx-tool__host.ak-ind-host .ind-kpi-box--highlight { background: color-mix(in srgb, var(--sr-accent-2) 18%, color-mix(in srgb, var(--sr-line) 60%, #000)); }
.sx-tool__host.ak-ind-host .ind-kpi-box--highlight strong { color: var(--sr-accent-2-on-dark); }
.sx-tool__host.ak-ind-host .ind-step.is-on { background: color-mix(in srgb, var(--sr-accent-2) 20%, transparent); }
.sx-tool__host.ak-ind-host .ind-mini-pill.is-on, .sx-tool__host.ak-ind-host .ind-mini-pill.is-on:hover { color: var(--sr-on-accent-2); }
.sx-tool__host.ak-ind-host #reBarNet { background: var(--sr-accent-2) !important; }
.sx-tool__host.ak-ind-host #reBarLoan { background: color-mix(in srgb, #FAF8F5 45%, var(--sr-line)) !important; }
.sx-tool__host.ak-ind-host #reBarCost { background: var(--sr-accent) !important; }
:root[data-tool="off"] [data-sx-tool] { display: none !important; }

/* CL-328 (Frank 2026-11-29): "back to site" in AKAREC blue under the AKAREC mark; the "Get this for my ..." button in the hero gold */
.ak-sr-strip__brand { align-items: center; }
.ak-sr-strip__home { display: grid; gap: 3px; line-height: 1; flex: none; }
.ak-sr-strip__home i { font-style: normal; font-size: 10.5px; font-weight: 700; letter-spacing: 0.05em; color: #0E9BE0; white-space: nowrap; }
.ak-sr-strip__back:hover .ak-sr-strip__home i { color: #38BDF8; text-decoration: underline; text-underline-offset: 2px; }
.ak-sr-strip__cta { background: linear-gradient(135deg, #FCD34D 0%, #F59E0B 52%, #D97706 100%); color: #0B1930; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 6px 18px -8px rgba(245, 158, 11, 0.7); }
.ak-sr-strip__cta:hover { filter: none; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 8px 22px -6px rgba(245, 158, 11, 0.9); }
@media (max-width: 767px) { .ak-sr-strip__brand { flex-direction: row; align-items: center; gap: 10px; } }
