/* ============================================================
   TFE · Transport For Events · Shared styles
   Brand: cinematic night — deep blacks, cool blue shadow tones,
   warm ivory type, bronze/champagne accents (≈60/20/15/5).
   Display: Cormorant Garamond · UI/body: Manrope (see fonts.css)

   THEMES — the accent family is swappable at runtime. The admin picks
   one in /admin/settings/ (setting `site_theme`) and the value lands on
   <html data-theme="gold|red|karogs">. ONLY the accent tokens change:
   backgrounds, ink and type are fixed across all three. See the
   [data-theme] blocks right below :root.

   Accent token contract — respect it when adding rules:
     --accent        fill / border / glow colour. NOT guaranteed to be
                     readable as small text on --bg (a bold crimson or a
                     deep maroon simply cannot be).
     --accent-2      the light tint. Always ≥ 9:1 on --bg → safe as text.
     --accent-deep   the darkest shade (gradient tails, deep edges).
     --accent-ink    the accent-family colour that IS safe as small text
                     on --bg (≥ 4.5:1 in every theme). --paint aliases it,
                     which is why the whole admin UI stays legible.
     --on-accent     ink to place ON an --accent fill (≥ 4.5:1).
     --on-accent-2   ink to place ON an --accent-2 fill (≥ 8.8:1).
     --btn-a/--btn-b primary-button gradient stops; --btn-edge is an inset
                     hairline for themes whose fill is too dark to read as
                     a shape against the page.
     --accent-rgb / --accent-2-rgb / --accent-deep-rgb — bare triplets so
                     translucent borders, scrims and glows recolour too.
                     Never hardcode an accent literal; use rgba(var(--…-rgb), a).
   ============================================================ */
:root {
  /* --- TFE brand tokens --- */
  --bg: #080B00;            /* Cinema Black */
  --bg-blue: #0B1820;       /* Midnight Blue */
  --panel: #101417;         /* Carbon */
  --panel-2: #191D20;       /* Graphite */
  --ink: #EEE9DF;           /* Warm Ivory */
  --ink-dim: #A7A399;       /* ivory, lowered */
  --ink-faint: #6B6960;     /* ivory, whisper */

  /* --- accent family (theme: gold — the default) --- */
  --accent: #B58A44;        /* Cinematic Bronze */
  --accent-2: #D2B886;      /* Champagne */
  --accent-deep: #7E5F2C;   /* deep bronze (shadows / pressed) */
  --accent-3: var(--accent-deep);   /* historic name, kept for --paint-3 */
  --accent-rgb: 181,138,68;
  --accent-2-rgb: 210,184,134;
  --accent-deep-rgb: 126,95,44;
  --accent-ink: var(--accent);      /* bronze reads at 6.32:1 on --bg */
  --on-accent: #12100A;             /* 6.05:1 on bronze */
  --on-accent-2: #12100A;           /* 9.91:1 on champagne */
  --btn-a: var(--accent);
  --btn-b: var(--accent-2);
  --btn-edge: transparent;

  --steel-blue: #456778;    /* Steel Blue */
  --electric: #4EBFAB;      /* Electric Blue — rare accent (brand sheet) */
  --blue: #6FA0BF;          /* muted electric blue — rare highlights */
  --ok: #8FB59A;            /* availability green, desaturated to fit */
  --rule: rgba(238, 233, 223, 0.12);
  --rule-strong: rgba(238, 233, 223, 0.24);

  /* --- type --- */
  --font-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-ui: 'Manrope', 'Segoe UI', system-ui, sans-serif;
  --font-mono: ui-monospace, 'Cascadia Mono', 'SF Mono', Consolas, monospace;

  /* --- legacy aliases (shootix-era rules keep working) --- */
  --concrete: var(--bg);
  --concrete-1: var(--panel);
  --concrete-2: var(--panel-2);
  --concrete-3: #22262a;
  --steel: var(--ink);
  --steel-2: var(--ink-dim);
  --steel-3: var(--ink-faint);
  /* --paint is the shootix-era accent alias. The admin CMS uses it both as
     small text colour AND as a fill behind --concrete ink, so it maps to
     --accent-ink (the readable member) rather than to --accent. In the gold
     theme --accent-ink IS --accent, so nothing moves. */
  --paint: var(--accent-ink);
  --paint-2: var(--accent-2);
  --paint-3: var(--accent-3);
  --signal: var(--ok);
}

/* ============================================================
   THEME · gold — the house palette. Declared explicitly so
   data-theme="gold" is a real selector, but every value is the
   :root default, so the default render is unchanged.
   Contrast on --bg #080B00: accent 6.32:1 · accent-2 10.34:1 ·
   button ink on the gradient 6.05:1 → 9.91:1.
   ============================================================ */
:root[data-theme="gold"] {
  --accent: #B58A44;
  --accent-2: #D2B886;
  --accent-deep: #7E5F2C;
  --accent-rgb: 181,138,68;
  --accent-2-rgb: 210,184,134;
  --accent-deep-rgb: 126,95,44;
  --accent-ink: var(--accent);
  --on-accent: #12100A;
  --on-accent-2: #12100A;
  --btn-a: var(--accent);
  --btn-b: var(--accent-2);
  --btn-edge: transparent;
}

/* ============================================================
   THEME · red — vivid crimson. Bold and modern: the fill stays
   fully saturated (#C62828) and the type that sits on it flips to
   warm ivory, because no crimson dark enough to stay crimson can
   carry near-black text. Accent TEXT uses the coral tint.
   Contrast on --bg: accent-2 / accent-ink 9.22:1 · ivory on the
   crimson fill 4.65:1 (worst gradient stop) → 6.74:1.
   ============================================================ */
:root[data-theme="red"] {
  --accent: #C62828;        /* crimson — fills, borders, glows */
  --accent-2: #EF9A9A;      /* coral tint — accent text, hover */
  --accent-deep: #7F1616;   /* oxblood — gradient tail, deep edges */
  --accent-rgb: 198,40,40;
  --accent-2-rgb: 239,154,154;
  --accent-deep-rgb: 127,22,22;
  --accent-ink: var(--accent-2);
  --on-accent: var(--ink);
  --on-accent-2: #12100A;
  --btn-a: #C62828;
  --btn-b: #9B1C1C;
  --btn-edge: transparent;
}

/* ============================================================
   THEME · karogs — built out from the logo wave, whose stroke
   samples at #550000 (dominant pixel, public/assets/logo-white.png).
   #550000 alone is 1.31:1 on Cinema Black — invisible — so the
   scale lifts to #8E1F1F for fills and keeps #550000 as the deep
   shade, where it does the work it is good at: gradient tails and
   edges. The lifted maroon is still only 2.24:1 against the page,
   so filled controls get a dusty-rose inset hairline (--btn-edge)
   and are identifiable by their edge, not by fill luminance.
   Contrast on --bg: accent-2 / accent-ink 9.45:1 · ivory on the
   maroon fill 7.34:1 → 12.52:1 on #550000.
   ============================================================ */
:root[data-theme="karogs"] {
  --accent: #8E1F1F;        /* lifted maroon — fills, borders, glows */
  --accent-2: #D9A7A2;      /* warm dusty rose — accent text, hover */
  --accent-deep: #550000;   /* the logo maroon itself */
  --accent-rgb: 142,31,31;
  --accent-2-rgb: 217,167,162;
  --accent-deep-rgb: 85,0,0;
  --accent-ink: var(--accent-2);
  --on-accent: var(--ink);
  --on-accent-2: #12100A;
  --btn-a: #8E1F1F;
  --btn-b: #550000;
  --btn-edge: rgba(var(--accent-2-rgb), 0.5);
}

* { -webkit-font-smoothing: antialiased; box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--concrete);
  color: var(--steel);
  font-family: var(--font-ui);
  font-weight: 400;
  overflow-x: hidden;
}
.mono { font-family: var(--font-mono); font-weight: 500; }
.display { font-family: var(--font-display); font-weight: 300; letter-spacing: 0.02em; text-transform: uppercase; line-height: 1.02; }

/* ====== BOOT SCREEN ======
   Quiet cinematic fade: brand lockup + a thin champagne progress line.
   (The old terminal-style scanlines / blinking square are gone.) */
.boot {
  position: fixed; inset: 0; z-index: 200;
  background: radial-gradient(ellipse 120% 90% at 50% 110%, rgba(11,24,32,0.85) 0%, transparent 60%), var(--bg);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1.6rem;
  transition: opacity 700ms ease, visibility 700ms;
}
.boot.gone { opacity: 0; visibility: hidden; pointer-events: none; }
.boot .crest { width: min(240px, 56vw); height: auto; display: block; opacity: 0; animation: boot-crest 900ms ease 100ms forwards; }
@keyframes boot-crest { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.boot .status { font-family: var(--font-ui); font-weight: 500; font-size: 0.68rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--ink-faint); min-height: 1rem; display: flex; align-items: center; }
.boot .bar { width: min(240px, 56vw); height: 1px; background: rgba(238,233,223,0.14); position: relative; overflow: hidden; }
.boot .bar .fill { position: absolute; left: 0; top: 0; bottom: 0; background: linear-gradient(90deg, var(--accent), var(--accent-2)); animation: boot-fill 1.1s cubic-bezier(0.4, 0.0, 0.2, 1) forwards; }
@keyframes boot-fill { 0% { width: 0; } 60% { width: 55%; } 100% { width: 100%; } }

/* ====== GLOBAL ATMOSPHERE ======
   body::before (atmospheric backdrop) is defined in the overrides layer
   below — the film-grain noise lives here. */
body::after { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0.12; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0.78  0 0 0 0 0.78  0 0 0 0 0.77  0 0 0 0 0.5 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* ====== MOTION ====== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 700ms cubic-bezier(0.2,0.7,0.2,1), transform 700ms cubic-bezier(0.2,0.7,0.2,1); transition-delay: var(--reveal-delay, 0ms); }
.reveal.in { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } .boot { display: none; } body::before, body::after { animation: none; } * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; } }

/* Suppress boot splash on subsequent page loads within the same browser
   tab. The .no-boot class is added in <head> by the inline script when
   sessionStorage already has the shx_intro_shown flag (set the first time
   the boot screen runs). Cleared automatically when the tab closes. */
html.no-boot #boot,
html.no-boot .boot { display: none !important; }

/* Filter-driven reloads — suppress boot AND .reveal fade-ins so the page
   feels seamless when the user is refining filters mid-task. */
html.no-intro-anim #boot,
html.no-intro-anim .boot { display: none !important; }
html.no-intro-anim .reveal,
html.no-intro-anim .reveal-r {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

/* ====== HEADER ====== */
header { background: rgba(8,11,0,0.82); backdrop-filter: blur(10px); border-bottom: 1px solid var(--rule); position: sticky; top: 0; z-index: 29; transition: background 280ms, border-color 280ms; }
header.scrolled { background: rgba(8,11,0,0.95); }
.topnav { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; padding: 0.85rem 0; }
.logo { font-family: var(--font-ui); font-weight: 600; font-size: 1.5rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--steel); text-decoration: none; display: inline-flex; align-items: center; gap: 0.6rem; transition: opacity 200ms; }
.logo:hover { color: var(--paint); opacity: 0.85; }
/* When .logo contains an <img class="logo-img"> (public header now uses the
   real brand lockup PNG), size it to fit the nav bar height. Aspect ratio
   is preserved by width:auto; max-width keeps it from blowing out the
   topnav on narrow mobile viewports. The old CSS-rendered red .mark square
   + text "TFE" rendering is retained below for the admin header and
   any other place the .logo class is used without a child <img>. */
.logo-img { height: 44px; width: auto; max-width: 220px; display: block; }
@media (max-width: 600px) { .logo-img { height: 36px; max-width: 170px; } }
.logo .mark { width: 24px; height: 24px; background: var(--paint); position: relative; transition: transform 240ms cubic-bezier(0.2,0.7,0.2,1); }
.logo:hover .mark { transform: rotate(45deg); }
.logo .mark::after { content: ""; position: absolute; inset: 6px; background: var(--concrete); }
.logo span { color: var(--paint); }
nav.main { display: flex; gap: 0.4rem; flex-wrap: wrap; align-items: center; }
nav.main a { font-family: var(--font-ui); font-weight: 500; font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.18em; color: var(--ink-dim); text-decoration: none; padding: 0.55rem 0.9rem; position: relative; transition: color 180ms; }
nav.main a::after { content: ""; position: absolute; left: 0.9rem; right: 100%; bottom: 0.25rem; height: 1px; background: var(--accent-2); transition: right 240ms cubic-bezier(0.2,0.7,0.2,1); }
nav.main a:hover, nav.main a.active { color: var(--ink); }
nav.main a:hover::after, nav.main a.active::after { right: 0.9rem; }
nav.main a.active { color: var(--accent-2); }

/* ====== CART BUTTON (in nav) ====== */
.cart-btn {
  /* Mockup's outlined "REQUEST A QUOTE"-style button — thin champagne
     border, ivory label, sits at the right edge of the nav bar. */
  position: relative;
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: transparent;
  border: 1px solid rgba(var(--accent-2-rgb), 0.55);
  padding: 0.62rem 1.25rem;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  transition: all 200ms;
  cursor: pointer;
}
.cart-btn:hover { border-color: var(--accent-2); color: var(--accent-2); background: rgba(var(--accent-2-rgb), 0.06); }
.cart-btn svg { width: 16px; height: 16px; transition: transform 220ms cubic-bezier(0.2,0.7,0.2,1); }
.cart-btn:hover svg { transform: translateY(-1px); }
.cart-btn .badge {
  background: var(--paint);
  color: var(--concrete);
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.1rem 0.4rem;
  min-width: 20px;
  text-align: center;
  letter-spacing: 0;
  line-height: 1;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: none;
  margin-left: 0.2rem;
}

/* ====== BUTTONS (per brand sheet) ======
   Primary — bronze→champagne fill, near-black text, uppercase Manrope.
   Secondary — thin ivory outline, ivory text, champagne on hover. */
/* The inset hairline is the button's edge in themes whose fill is too dark
   to read as a shape on Cinema Black; it is `transparent` in gold and red,
   and box-shadow (not border) so no theme shifts the button's box by a pixel. */
.btn-cta { display: inline-flex; align-items: center; gap: 0.7rem; background: linear-gradient(100deg, var(--btn-a) 0%, var(--btn-b) 100%); color: var(--on-accent); text-decoration: none; padding: 0.95rem 1.6rem; font-family: var(--font-ui); font-weight: 600; font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase; border: none; cursor: pointer; box-shadow: inset 0 0 0 1px var(--btn-edge); transition: box-shadow 200ms, transform 200ms, filter 200ms; }
.btn-cta:hover { color: var(--on-accent); filter: brightness(1.07); transform: translateY(-1px); box-shadow: inset 0 0 0 1px var(--btn-edge), 0 12px 32px rgba(var(--accent-rgb), 0.28); }
.btn-cta:active { transform: translateY(0); box-shadow: inset 0 0 0 1px var(--btn-edge), 0 4px 14px rgba(var(--accent-rgb), 0.2); filter: brightness(0.97); }
.btn-cta .arrow { transition: transform 200ms; }
.btn-cta:hover .arrow { transform: translateX(4px); }
.btn-ghost { display: inline-flex; align-items: center; gap: 0.7rem; color: var(--ink); text-decoration: none; padding: 0.95rem 1.6rem; font-family: var(--font-ui); font-weight: 500; font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase; border: 1px solid rgba(238,233,223,0.35); background: transparent; cursor: pointer; position: relative; transition: color 200ms, border-color 200ms, background 200ms; }
.btn-ghost:hover { color: var(--accent-2); border-color: var(--accent-2); background: rgba(var(--accent-2-rgb), 0.06); }

/* ====== PAGE HERO (inner pages) ====== */
.page-hero { padding: 3.5rem 0 2rem; border-bottom: 1px solid var(--rule); position: relative; }
.page-hero h1 { font-family: var(--font-display); font-weight: 300; font-size: clamp(2.2rem, 5.5vw, 4.2rem); text-transform: uppercase; letter-spacing: 0.03em; line-height: 1.02; color: var(--ink); margin: 0.6rem 0 0; }
.page-hero h1 .stripe { background: transparent; color: var(--accent-2); font-style: italic; padding: 0; }
.page-hero .lead { color: var(--steel-2); font-size: 1rem; line-height: 1.55; max-width: 60ch; margin-top: 1rem; }
.crumb { font-family: var(--font-ui); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--steel-3); margin-bottom: 0.5rem; display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.crumb a { color: var(--steel-3); text-decoration: none; transition: color 200ms; }
.crumb a:hover { color: var(--paint); }
.crumb .sep { color: var(--steel-3); opacity: 0.5; }
.crumb .current { color: var(--paint); }

/* ====== SECTIONS ====== */
section { padding: 4rem 0; position: relative; }
section.with-rule { border-bottom: 1px solid var(--rule); }
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 1rem; flex-wrap: wrap; margin-bottom: 2.5rem; padding-bottom: 1rem; border-bottom: 1px dashed var(--rule-strong); }
.sec-head h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(2rem, 4.5vw, 3.2rem); text-transform: uppercase; letter-spacing: 0.03em; margin: 0.3rem 0 0; color: var(--ink); line-height: 1.02; }
.sec-head h2 .stripe { background: transparent; color: var(--accent-2); font-style: italic; padding: 0; }
.sec-head .id { display: inline-flex; align-items: center; gap: 0.55rem; font-family: var(--font-ui); font-weight: 500; font-size: 0.68rem; letter-spacing: 0.26em; text-transform: uppercase; color: var(--accent-ink); }
.sec-head .id::before { content: ""; width: 22px; height: 1px; background: var(--accent-ink); }
.sec-head .meta { color: var(--steel-2); font-family: var(--font-ui); font-size: 0.78rem; letter-spacing: 0.04em; }
.tag { display: inline-flex; align-items: center; gap: 0.4rem; font-family: var(--font-ui); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.18em; color: var(--paint); }
.tag .sq { width: 8px; height: 8px; background: var(--paint); }

/* ====== UNITS (product cards) ====== */
.units { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 576px) { .units { grid-template-columns: 1fr 1fr; } }
@media (min-width: 992px) { .units { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1280px) { .units { grid-template-columns: repeat(4, 1fr); } }

/* Anchor target for pager links (#rezultati) — offset so the sticky
   header doesn't cover the section heading on jump. */
#rezultati { scroll-margin-top: 96px; }

/* ====== PAGER (kadra-auto product grid) ======
   Server-rendered page navigation. Mono type, red active page, ghost
   prev/next, a prominent "Rādīt vēl" CTA below. Wraps on mobile. */
.pager { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 0.5rem; margin: 2.5rem 0 0.5rem; font-family: var(--font-ui); }
.pager-step { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--steel); text-decoration: none; padding: 0.5rem 0.85rem; border: 1px solid var(--rule-strong); transition: color 180ms, border-color 180ms; }
.pager-step:hover { color: var(--paint); border-color: var(--paint); }
.pager-step.is-disabled { color: var(--steel-3); border-color: var(--rule); opacity: 0.5; pointer-events: none; }
.pager-nums { display: inline-flex; align-items: center; gap: 0.3rem; flex-wrap: wrap; justify-content: center; }
.pager-num { min-width: 34px; text-align: center; font-size: 0.78rem; color: var(--steel-2); text-decoration: none; padding: 0.45rem 0.5rem; border: 1px solid transparent; transition: color 180ms, border-color 180ms; }
.pager-num:hover { color: var(--paint); border-color: var(--rule-strong); }
.pager-num.is-current { color: var(--concrete); background: var(--paint); border-color: var(--paint); font-weight: 600; }
.pager-gap { color: var(--steel-3); padding: 0 0.2rem; }
.pager-more-wrap { display: flex; flex-direction: column; align-items: center; gap: 0.6rem; margin: 1rem 0 0.5rem; }
.pager-more { justify-content: center; }
.pager-readout { font-family: var(--font-ui); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--steel-3); }
@media (max-width: 480px) { .pager-step { padding: 0.45rem 0.6rem; } .pager-num { min-width: 30px; } }

.unit { background: var(--concrete); border: 1px solid var(--rule); display: flex; flex-direction: column; text-decoration: none; color: inherit; position: relative; transition: border-color 240ms; }
.unit:hover { border-color: var(--paint); }
.unit .img { aspect-ratio: 4/3; background-size: cover; background-position: center; filter: grayscale(0.2) contrast(1.05); position: relative; overflow: hidden; transition: filter 400ms; }
.unit:hover .img { filter: grayscale(0) contrast(1.1); }
.unit .img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 60%, rgba(13,17,19,0.6) 100%); }
.unit .img .sku { position: absolute; top: 0.6rem; left: 0.6rem; font-family: var(--font-ui); font-size: 0.7rem; background: var(--concrete); color: var(--paint); padding: 0.25rem 0.5rem; letter-spacing: 0.1em; border: 1px solid var(--paint); transform: rotate(-2deg); transition: transform 240ms cubic-bezier(0.2,0.7,0.2,1); z-index: 2; }
.unit:hover .img .sku { transform: rotate(0deg) scale(1.04); }
.unit .img .meter { position: absolute; right: 0.6rem; top: 0.6rem; font-family: var(--font-ui); font-size: 0.65rem; color: var(--steel); padding: 0.2rem 0.45rem; background: rgba(13,17,19,0.85); border: 1px solid var(--rule-strong); letter-spacing: 0.04em; z-index: 2; }
.unit .img .meter b { color: var(--signal); font-weight: 600; }
.unit .body { padding: 1rem 1.1rem 1.2rem; display: flex; flex-direction: column; gap: 0.6rem; flex: 1; }
.unit h4 { font-family: var(--font-ui); font-weight: 600; font-size: 1.25rem; text-transform: uppercase; letter-spacing: 0.005em; color: var(--steel); margin: 0; line-height: 1.1; }
.unit .sub { font-family: var(--font-ui); font-size: 0.7rem; color: var(--steel-2); letter-spacing: 0.06em; text-transform: uppercase; }
.unit .foot-row { display: flex; justify-content: space-between; align-items: end; margin-top: auto; padding-top: 0.5rem; border-top: 1px dashed var(--rule-strong); gap: 0.5rem; }
.unit .price { font-family: var(--font-ui); font-weight: 600; font-size: 1.5rem; color: var(--paint); letter-spacing: -0.005em; line-height: 1; }
.unit .price span { font-size: 0.72rem; color: var(--steel-2); font-weight: 500; font-family: var(--font-ui); letter-spacing: 0.06em; }
.unit .act { font-family: var(--font-ui); font-weight: 600; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--steel); border-bottom: 1px solid var(--paint); padding: 0 0 0.15rem; position: relative; }
.unit .act::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -1px; height: 2px; background: var(--paint); transition: right 240ms cubic-bezier(0.2,0.7,0.2,1); }
.unit:hover .act { color: var(--paint); }
.unit:hover .act::after { right: 0; }

/* ====== FILTER PILLS ====== */
.filters { display: flex; gap: 0.5rem; flex-wrap: wrap; padding: 1rem 0 1.5rem; border-bottom: 1px solid var(--rule); margin-bottom: 2rem; }
.pill-btn { font-family: var(--font-ui); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--steel); background: transparent; border: 1px solid var(--rule-strong); padding: 0.5rem 0.85rem; cursor: pointer; transition: all 180ms; display: inline-flex; align-items: center; gap: 0.4rem; }
.pill-btn:hover { border-color: var(--paint); color: var(--paint); }
.pill-btn.active { background: var(--paint); border-color: var(--paint); color: var(--concrete); }
.pill-btn .chev { font-size: 0.6rem; opacity: 0.6; }
.pill-btn .x { font-size: 0.85rem; line-height: 1; margin-left: 0.2rem; }

/* ====== FORMS ====== */
.form-grid { display: grid; gap: 1.25rem; }
.form-section { padding: 1.5rem 0 2rem; border-bottom: 1px solid var(--rule); }
.form-section:last-of-type { border-bottom: none; }
.form-section h3 { font-family: var(--font-ui); font-weight: 600; font-size: 1.4rem; text-transform: uppercase; letter-spacing: 0.005em; margin: 0 0 1.25rem; color: var(--steel); display: inline-flex; align-items: center; gap: 0.5rem; }
.form-section h3::before { content: ""; width: 8px; height: 8px; background: var(--paint); }
/* width:100% is explicit because Bootstrap's .col-2 utility (loaded by
   layout-head.php and admin-head.php) sets width:16.66% on any element
   with class .col-2 — which collides with the design's own .col-2
   meaning "two-column grid". This rule also covers .field-row used by
   admin edit pages (products/services/categories/company/departments). */
.form-row,
.field-row { display: grid; gap: 1rem; grid-template-columns: 1fr; width: 100%; }
@media (min-width: 768px) { .form-row.col-2 { grid-template-columns: 1fr 1fr; } }
.f-lbl { display: block; font-family: var(--font-ui); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--steel-2); margin-bottom: 0.5rem; font-weight: 500; }
.f-lbl .req { color: var(--paint); }
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="date"], textarea, select {
  width: 100%; background: var(--concrete-1); color: var(--steel);
  border: 1px solid var(--rule-strong); padding: 0.85rem 1rem;
  font-family: var(--font-ui); font-size: 0.95rem; outline: none;
  transition: border-color 200ms, background 200ms;
}
input::placeholder, textarea::placeholder { color: var(--steel-3); }
input:focus, textarea:focus, select:focus { border-color: var(--paint); background: var(--concrete-2); }
textarea { resize: vertical; min-height: 100px; }
/* iOS Safari renders <input type="date"> with extra native chrome that
   inflates the box to textarea-like height. Force a consistent appearance
   so date inputs match text/email inputs on mobile. The ::-webkit-date-
   and-time-value selector aligns the typed value with the placeholder
   baseline. min-height matches the computed single-line height of the
   sibling text inputs (0.95rem * ~1.2 line-height + 2 * 0.85rem padding
   + 2px border ≈ 50px). */
input[type="date"] {
  -webkit-appearance: none;
  appearance: none;
  line-height: 1.2;
  min-height: 50px;
  font-family: var(--font-ui);
}
input[type="date"]::-webkit-date-and-time-value { text-align: left; }
/* Dark theme: the native picker glyph is black-on-dark (invisible). Invert it
   to a light icon so it reads on the dark input background. */
input[type="date"]::-webkit-calendar-picker-indicator { cursor: pointer; opacity: 0.9; filter: invert(0.85); }
.check-row { display: flex; gap: 0.6rem; align-items: center; padding: 0.4rem 0; cursor: pointer; font-family: var(--font-ui); }
.check-row input[type="checkbox"] { appearance: none; -webkit-appearance: none; width: 18px; height: 18px; border: 1px solid var(--rule-strong); background: var(--concrete-1); cursor: pointer; position: relative; flex-shrink: 0; }
.check-row input[type="checkbox"]:checked { background: var(--paint); border-color: var(--paint); }
.check-row input[type="checkbox"]:checked::after { content: ""; position: absolute; left: 5px; top: 1px; width: 5px; height: 10px; border: solid var(--concrete); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.check-row span { font-size: 0.92rem; color: var(--steel); }
.dropzone { border: 1px dashed var(--rule-strong); background: rgba(255,255,255,0.02); padding: 1.8rem 1rem; text-align: center; color: var(--steel-2); font-family: var(--font-ui); font-size: 0.85rem; cursor: pointer; transition: all 220ms; }
.dropzone:hover { border-color: var(--paint); color: var(--paint); background: rgba(var(--accent-rgb), 0.04); }
.dropzone .accent { color: var(--paint); font-weight: 600; }

/* ====== ABOUT ====== */
.about { background: var(--concrete-1); }
.about-grid { display: grid; gap: 3rem; grid-template-columns: 1fr; align-items: end; }
@media (min-width: 992px) { .about-grid { grid-template-columns: 1.2fr 1fr; } }
.about p { font-size: 1.05rem; line-height: 1.65; color: var(--steel); max-width: 56ch; }
.about p b { color: var(--paint); font-weight: 600; }
/* ====== CONTACT ====== */
.contact-section { padding: 5rem 0 4rem; }
.contact-section h2 { font-family: var(--font-display); font-weight: 300; text-transform: uppercase; font-size: clamp(2.5rem, 7vw, 5rem); letter-spacing: 0.02em; line-height: 1; color: var(--ink); }
.contact-section h2 .stripe { background: transparent; color: var(--accent-2); font-style: italic; padding: 0; }
.contact-section .email { font-family: var(--font-ui); color: var(--paint); font-size: 1.4rem; letter-spacing: 0.04em; text-decoration: underline; text-underline-offset: 6px; transition: color 200ms; }
.contact-section .email:hover { color: var(--paint-2); }
.contact-section .info { font-family: var(--font-ui); font-size: 0.8rem; color: var(--steel-2); line-height: 1.7; letter-spacing: 0.04em; }
.contact-section .info strong { color: var(--steel); font-weight: 500; display: block; text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.7rem; margin-bottom: 0.4rem; }

/* ====== COLOPHON (base — footer band styles live in the TFE brand layer) ====== */
.colophon { border-top: 1px solid var(--rule); padding: 1rem 0; color: var(--steel-2); font-family: var(--font-ui); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; }

/* ====== CART TABLE ======
   Single 2-column layout for every viewport: item content fills 1fr,
   the × remove button sits in a fixed 36px column. .price and .total
   children render as display:none (set below in the consolidated cart
   override block) because pricing is always "on request" — no need for
   columns that hold nothing. Mobile typography tweaks in the
   @media (max-width: 600px) block lower in this file. */
.cart-head { display: grid; grid-template-columns: 1fr 36px; gap: 1rem; padding: 0.9rem 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); font-family: var(--font-ui); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--steel-2); }
@media (max-width: 767px) { .cart-head { display: none; } }
.cart-row { display: grid; grid-template-columns: 1fr 36px; gap: 1rem; align-items: center; padding: 1rem 0; border-bottom: 1px solid var(--rule); }
.cart-row .item { display: flex; gap: 1rem; align-items: center; min-width: 0; }
.cart-row .item > div { min-width: 0; flex: 1; }
/* Linked item (product / service) — strip default anchor styling, signal
   click-affordance on hover. The name flips to paint and the thumb gets
   a thin red border lift so the row feels clickable without losing the
   industrial restraint of the rest of the cart layout. */
a.cart-row .item,
.cart-row a.item { text-decoration: none; color: inherit; cursor: pointer; }
.cart-row .item.is-linked .name { transition: color 180ms; }
.cart-row .item.is-linked .thumb { transition: border-color 180ms, transform 240ms; }
.cart-row .item.is-linked:hover .name { color: var(--paint); }
.cart-row .item.is-linked:hover .thumb { border-color: var(--paint); transform: translateX(-2px); }
.cart-row .item.is-linked:focus-visible { outline: 2px solid var(--paint); outline-offset: 4px; }
.cart-row .thumb { width: 76px; aspect-ratio: 1/1; background-size: cover; background-position: center; flex-shrink: 0; border: 1px solid var(--rule); }
.cart-row .name { font-family: var(--font-ui); font-weight: 600; font-size: 1.05rem; text-transform: uppercase; color: var(--steel); }
.cart-row .sub-meta { font-family: var(--font-ui); color: var(--steel-3); font-size: 0.72rem; letter-spacing: 0.04em; }
.cart-row .price { font-family: var(--font-ui); font-weight: 600; color: var(--steel); }
.cart-row .dates { font-family: var(--font-ui); font-size: 0.78rem; line-height: 1.5; color: var(--steel-2); letter-spacing: 0.04em; }
.cart-row .total { font-family: var(--font-ui); font-weight: 600; color: var(--paint); font-size: 1.15rem; }
.cart-row .rm { background: transparent; border: 1px solid var(--rule-strong); width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; color: var(--steel-2); cursor: pointer; transition: all 200ms; }
.cart-row .rm:hover { border-color: var(--paint); color: var(--paint); }
.cart-summary { background: var(--concrete-1); padding: 1.5rem; border: 1px solid var(--rule); align-self: start; position: sticky; top: 110px; }
.cart-summary h3 { font-family: var(--font-ui); font-weight: 600; font-size: 1.4rem; text-transform: uppercase; color: var(--steel); margin: 0 0 1.25rem; display: inline-flex; align-items: center; gap: 0.5rem; }
.cart-summary h3::before { content: ""; width: 8px; height: 8px; background: var(--paint); }
.cart-summary .row { display: flex; justify-content: space-between; padding: 0.6rem 0; color: var(--steel-2); font-family: var(--font-ui); font-size: 0.85rem; letter-spacing: 0.04em; border-bottom: 1px solid var(--rule); }
.cart-summary .row b { color: var(--steel); font-weight: 600; }
.cart-summary .total-row { display: flex; justify-content: space-between; align-items: baseline; padding: 1rem 0; }
.cart-summary .total-row .lbl { font-family: var(--font-ui); font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--steel-2); }
.cart-summary .total-row .v { font-family: var(--font-ui); font-weight: 600; font-size: 2.2rem; color: var(--paint); letter-spacing: -0.005em; }
.cart-summary .btn-cta { width: 100%; justify-content: center; margin-top: 0.5rem; }
.cart-summary .note { font-family: var(--font-ui); color: var(--steel-3); font-size: 0.72rem; margin-top: 1rem; line-height: 1.5; letter-spacing: 0.04em; }

/* ====== DETAIL PAGE ====== */
.detail-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; margin-top: 1rem; }
@media (min-width: 992px) { .detail-grid { grid-template-columns: 1.1fr 1fr; gap: 3rem; } }
.gallery { display: grid; gap: 0.6rem; grid-template-columns: 1fr 1fr; }
.gallery .main { grid-column: 1 / -1; aspect-ratio: 4/3; background-size: cover; background-position: center; border: 1px solid var(--rule); }
.gallery .thumb { aspect-ratio: 1/1; background-size: cover; background-position: center; cursor: pointer; transition: filter 200ms; filter: brightness(0.85); border: 1px solid var(--rule); }
.gallery .thumb:hover { filter: brightness(1); border-color: var(--paint); }
.info-pane { display: flex; flex-direction: column; gap: 1.25rem; }
.info-pane h1 { font-family: var(--font-display); font-weight: 400; font-size: clamp(2rem, 4vw, 3rem); text-transform: uppercase; letter-spacing: 0.02em; margin: 0; line-height: 1.02; color: var(--ink); }
.tag-row { display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; font-family: var(--font-ui); font-size: 0.78rem; color: var(--steel-2); letter-spacing: 0.04em; }
.tag-row::before { content: ""; width: 8px; height: 8px; background: var(--paint); display: inline-block; }
.price-row { display: flex; align-items: baseline; gap: 0.6rem; padding: 0.5rem 0; }
.price-row .num { font-family: var(--font-ui); font-weight: 600; font-size: 2.8rem; color: var(--paint); letter-spacing: -0.02em; line-height: 1; }
.price-row .per { color: var(--steel-2); font-family: var(--font-ui); font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; }
.booking-card { background: var(--concrete-1); padding: 1.25rem; border: 1px solid var(--rule); display: flex; flex-direction: column; gap: 1rem; }
.booking-card h3 { font-family: var(--font-ui); font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--paint); margin: 0; display: inline-flex; align-items: center; gap: 0.45rem; }
.booking-card h3::before { content: ""; width: 8px; height: 8px; background: var(--paint); }
.actions { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-top: 0.5rem; }
.actions .btn-cta { flex: 1; min-width: 180px; justify-content: center; }
.actions .btn-ghost { flex: 1; min-width: 180px; justify-content: center; }
/* Dividers live on the cells (not a container background showing through 1px
   gaps) so when the last row isn't full, the empty trailing cells vanish into
   the page instead of rendering as grey "silver" boxes. */
.specs-grid { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--rule); border-left: 1px solid var(--rule); margin-top: 1rem; }
@media (min-width: 576px) { .specs-grid { grid-template-columns: repeat(3, 1fr); } }
.specs-grid .row { background: var(--concrete-1); padding: 1rem; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.specs-grid .k { font-family: var(--font-ui); font-size: 0.65rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--steel-2); }
.specs-grid .v { font-family: var(--font-ui); font-weight: 600; font-size: 1.15rem; color: var(--steel); margin-top: 0.3rem; text-transform: uppercase; letter-spacing: 0.005em; }



/* ============================================================
   24 MINIMAL OVERRIDES
   ============================================================ */

/* Atmospheric backdrop — cool midnight-blue depth (the 20% blue tones of
   the brand proportion), a whisper of bronze at the bottom-right (the 5%). */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(ellipse 90% 60% at 50% -12%, rgba(11, 24, 32, 0.9) 0%, rgba(11, 24, 32, 0.3) 40%, transparent 70%),
    radial-gradient(ellipse 70% 50% at 110% 110%, rgba(var(--accent-rgb), 0.06) 0%, transparent 55%),
    radial-gradient(ellipse 60% 50% at -10% 80%, rgba(69, 103, 120, 0.10) 0%, transparent 60%);
}
/* Slightly more visible film grain so the surface feels alive */
body::after { opacity: 0.08; }

/* Staff preview bar — shown on public pages that are NOT live yet, so an
   admin previewing from /admin can never mistake them for published. */
.staff-preview-bar {
  position: sticky; top: 0; z-index: 60;
  display: flex; align-items: center; justify-content: center; gap: 1.2rem; flex-wrap: wrap;
  padding: 0.6rem 1rem; background: var(--accent); color: var(--on-accent);
  font-family: var(--font-ui); font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
}
.staff-preview-bar a { color: var(--on-accent); text-decoration: underline; }

/* ====== PAGE-HERO BACKDROP — softer ambient on inner pages ====== */
.page-hero { position: relative; }
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(11, 24, 32, 0.5) 0%, transparent 60%);
}
/* With an admin-set hero photo the ambient gradient is not enough — lay a
   proper scrim over the image so the headline and lead stay readable. */
.page-hero.has-img { background-size: cover; background-position: center; background-repeat: no-repeat; }
.page-hero.has-img::before {
  z-index: 0;
  background: linear-gradient(180deg, rgba(8,11,0,0.86) 0%, rgba(8,11,0,0.58) 45%, rgba(8,11,0,0.94) 100%);
}
.page-hero.has-img > .container { position: relative; z-index: 1; }

/* ====== ABOUT — photo backdrop fading to dark ====== */
.about {
  position: relative; isolation: isolate;
  background:
    linear-gradient(180deg, rgba(10,10,10,0.85) 0%, rgba(10,10,10,0.92) 50%, var(--concrete-1) 100%),
    url('https://images.unsplash.com/photo-1492144534655-ae79c964c9d7?w=2200&q=85') center/cover no-repeat;
}

/* Page hero — slightly smaller scale on inner pages */
.page-hero h1 { font-size: clamp(1.9rem, 4.2vw, 3.2rem); }

/* Section headings — calmer scale */
.sec-head h2 { font-size: clamp(1.7rem, 3.6vw, 2.7rem) !important; }

/* Product cards: hide €/day price, show "Cena pēc pieprasījuma" badge instead */
.unit .price { display: none; }
.unit .foot-row {
  justify-content: space-between;
  border-top: 1px dashed var(--rule-strong);
  padding-top: 0.5rem;
}
.unit .price-request {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--steel-2);
  padding: 0.3rem 0.55rem;
  border: 1px solid var(--rule-strong);
  white-space: nowrap;
  transition: color 200ms, border-color 200ms;
}
.unit:hover .price-request { color: var(--paint); border-color: var(--paint); }

/* Detail page: replace €450/dienā with a tag */
.price-callout {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  letter-spacing: 0.005em;
  text-transform: uppercase;
  color: var(--paint);
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--paint);
}
.price-callout::before {
  content: ""; width: 8px; height: 8px; background: var(--paint);
}
.price-callout small {
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 0.7rem;
  color: var(--steel-2);
  letter-spacing: 0.08em;
  margin-left: 0.3rem;
}
/* Product detail — mobile polish. On a narrow screen the price label wraps to
   two lines, so drop the "· per order" note onto its own full-width line under
   it instead of letting it float beside the wrapped text. Let the meta tag and
   price box flow rather than overflow. */
@media (max-width: 600px) {
  .price-callout { flex-wrap: wrap; align-items: center; }
  .price-callout small { flex-basis: 100%; margin-left: 0; margin-top: 0.15rem; }
  .tag { flex-wrap: wrap; letter-spacing: 0.1em; row-gap: 0.15rem; }
}

/* Cart: hide the price/total cells (pricing is always "on request"), and
   hide the matching header labels. The grid layout itself is set in the
   base .cart-head/.cart-row rules above — single 2-column layout (1fr 36px)
   at every viewport size; this block only handles cell visibility. */
.cart-row .price, .cart-row .total { display: none; }
.cart-head span:nth-child(2),
.cart-head span:nth-child(3),
.cart-head span:nth-child(4) { display: none; }
@media (max-width: 600px) {
  .cart-row { padding: 0.85rem 0; }
  .cart-row .thumb { width: 64px; }
  .cart-row .item { gap: 0.75rem; align-items: flex-start; }
  .cart-row .name { font-size: 0.98rem; line-height: 1.25; word-break: break-word; }
  .cart-row .sub-meta { font-size: 0.68rem; word-break: break-word; }
  .type-tag { font-size: 0.58rem; padding: 0.08rem 0.35rem; margin-left: 0.25rem; }
}
.cart-summary .row,
.cart-summary .total-row { display: none; }
.cart-summary .summary-note {
  font-family: var(--font-ui);
  color: var(--steel-2); font-size: 0.85rem; line-height: 1.55;
  padding: 0.5rem 0 1rem; letter-spacing: 0.04em;
  border-top: 1px solid var(--rule); margin-top: 0.5rem;
}
.cart-summary .summary-note b { color: var(--paint); font-weight: 600; }

/* Hide price filter pill if present */
.pill-btn.is-price { display: none; }

/* =========================================================
   DESIGN 25 — additions
   ========================================================= */

/* Admin footer link */
.admin-link { color: var(--steel-3); text-decoration: none; opacity: 0.7; transition: color 200ms, opacity 200ms; }
.admin-link:hover { color: var(--paint); opacity: 1; }

/* Service pages */
.service-hero {
  background-size: cover; background-position: center;
  padding: 6rem 0 5rem; position: relative;
  overflow: hidden;
}
/* Horizontal fade — text-side dark, opposite side image visible */
.service-hero::before {
  content: ""; position: absolute; inset: 0;
  pointer-events: none; z-index: 1;
  background:
    linear-gradient(90deg, var(--concrete) 0%, rgba(0,0,0,0.78) 28%, rgba(0,0,0,0.4) 60%, rgba(0,0,0,0.15) 100%),
    linear-gradient(180deg, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0.15) 60%, rgba(0,0,0,0) 100%);
}
/* Bottom fade — dissolve into page background */
.service-hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 55%; pointer-events: none; z-index: 1;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.55) 55%, var(--concrete) 100%);
}
.service-hero > .container { position: relative; z-index: 2; }
.service-hero .crumb a { color: var(--steel); }
.service-hero .eyebrow {
  display: inline-block; font-family: var(--font-ui);
  font-size: 0.72rem; letter-spacing: 0.18em; color: var(--paint);
  text-transform: uppercase; margin: 1.4rem 0 0.6rem;
}
.service-hero h1 {
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(2.6rem, 7vw, 5rem); line-height: 1;
  letter-spacing: 0.02em; text-transform: uppercase;
  color: var(--ink); margin: 0;
}
.service-hero h1 .stripe { background: transparent; color: var(--accent-2); font-style: italic; padding: 0; }
.service-hero .lead { color: var(--steel-2); font-size: 1.05rem; max-width: 60ch; margin-top: 1.2rem; line-height: 1.55; }

.service-desc { padding: 4rem 0; border-bottom: 1px solid var(--rule); }
.desc-grid { display: grid; gap: 2.5rem; grid-template-columns: 1fr; }
@media (min-width: 992px) { .desc-grid { grid-template-columns: 1.6fr 1fr; gap: 4rem; } }
.desc-text p { color: var(--steel-2); font-size: 1.02rem; line-height: 1.7; margin-bottom: 1rem; }
.desc-text p b { color: var(--paint); font-weight: 600; }
.desc-meta { background: var(--concrete-1); border: 1px solid var(--rule); padding: 1.5rem; align-self: start; }
.desc-meta .meta-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; padding: 0.6rem 0; border-bottom: 1px solid var(--rule); font-family: var(--font-ui); font-size: 0.82rem; }
.desc-meta .meta-row:last-child { border-bottom: none; }
.desc-meta .meta-row .lbl { color: var(--steel-3); letter-spacing: 0.06em; text-transform: uppercase; font-size: 0.7rem; }
.desc-meta .meta-row .val { color: var(--steel); letter-spacing: 0.02em; text-align: right; }

.service-gallery { padding: 4rem 0; }
.photo-grid {
  display: grid; gap: 1px; background: var(--rule);
  grid-template-columns: 1fr; border: 1px solid var(--rule);
}
@media (min-width: 576px) { .photo-grid { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 992px) { .photo-grid { grid-template-columns: repeat(4,1fr); } }
.photo {
  background: var(--concrete-1); aspect-ratio: 4/5;
  background-size: cover; background-position: center;
  position: relative; overflow: hidden;
  transition: transform 600ms cubic-bezier(0.2,0.7,0.2,1);
}
.photo:hover { transform: scale(1.02); }
.photo .caption {
  position: absolute; left: 0; bottom: 0; right: 0;
  padding: 0.6rem 0.9rem; font-family: var(--font-ui);
  font-size: 0.72rem; letter-spacing: 0.08em; color: var(--steel);
  background: linear-gradient(0deg, rgba(0,0,0,0.85), rgba(0,0,0,0));
}

/* Slim thumbnail strip — alternative to the big 4-col gallery for service
   pages where the client wants the description to dominate. Pages opt in
   by setting $skipGallery = true plus a $thumbStrip array of 3-4 images.
   Three columns at >=768px, 2 at >=480px, single column on the smallest
   phones. Tiles are wider (16:10) so they read as supporting imagery
   rather than feature photography. */
.service-thumbs { padding: 1rem 0 4rem; }
.thumb-strip { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 480px) { .thumb-strip { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 768px) { .thumb-strip { grid-template-columns: repeat(3, 1fr); } }
.thumb-tile {
  position: relative; aspect-ratio: 16/10;
  background-size: cover; background-position: center;
  border: 1px solid var(--rule); overflow: hidden;
  transition: transform 400ms cubic-bezier(0.2,0.7,0.2,1);
}
.thumb-tile:hover { transform: scale(1.02); border-color: var(--paint); }
.thumb-tile .caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 0.5rem 0.7rem; font-family: var(--font-ui);
  font-size: 0.7rem; letter-spacing: 0.08em; color: var(--steel);
  background: linear-gradient(0deg, rgba(0,0,0,0.85), rgba(0,0,0,0));
}

.service-cta { padding: 4rem 0 5rem; border-top: 1px solid var(--rule); text-align: center; }
.service-cta h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(2rem, 5vw, 3.2rem); text-transform: uppercase; letter-spacing: 0.02em; color: var(--ink); margin: 0; }
.service-cta h2 .stripe { background: transparent; color: var(--accent-2); font-style: italic; padding: 0; }
.service-cta p { color: var(--steel-2); max-width: 50ch; margin: 1.2rem auto 0; line-height: 1.6; }
.service-cta .cta-btns { display: inline-flex; gap: 1rem; flex-wrap: wrap; justify-content: center; margin-top: 2rem; }

/* Kategorijas — 9 category blocks */
.cat-blocks {
  display: grid; gap: 1px; background: var(--rule);
  grid-template-columns: 1fr; border: 1px solid var(--rule);
}
@media (min-width: 576px) { .cat-blocks { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 992px) { .cat-blocks { grid-template-columns: repeat(3,1fr); } }
.cat-block {
  background: var(--concrete-1); aspect-ratio: 4/3;
  position: relative; overflow: hidden; text-decoration: none;
  display: block; transition: transform 320ms cubic-bezier(0.2,0.7,0.2,1);
}
.cat-block:hover { transform: translateY(-2px); }
.cat-block .img {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0.42; transition: opacity 320ms, transform 600ms;
}
.cat-block:hover .img { opacity: 0.62; transform: scale(1.04); }
.cat-block .cb-body {
  position: absolute; inset: 0; padding: 1.2rem 1.4rem;
  display: flex; flex-direction: column; justify-content: flex-end;
  gap: 0.3rem; z-index: 2;
  background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,0.78) 100%);
}
.cat-block .cb-id { font-family: var(--font-ui); font-size: 0.65rem; letter-spacing: 0.2em; color: var(--paint); text-transform: uppercase; }
.cat-block h3 { font-family: var(--font-ui); font-weight: 600; font-size: 1.7rem; text-transform: uppercase; letter-spacing: -0.005em; color: var(--steel); margin: 0; line-height: 1; }
.cat-block .count { font-family: var(--font-ui); font-size: 0.72rem; letter-spacing: 0.08em; color: var(--steel-2); }

/* Filter grid */
.filter-grid {
  display: grid; gap: 1.4rem; grid-template-columns: 1fr;
  background: var(--concrete-1); border: 1px solid var(--rule); padding: 1.6rem;
}
@media (min-width: 768px) { .filter-grid { grid-template-columns: 1fr 1fr 2fr 1fr; gap: 1.6rem; align-items: start; } }
@media (min-width: 768px) { .filter-cell-q { grid-column: span 2; } } /* search box gets a double cell */

/* Multi-select filter dropdown (<details> based — e.g. Krāsa) */
.filter-dd { position: relative; }
.filter-dd > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; user-select: none; }
.filter-dd > summary::-webkit-details-marker { display: none; }
.filter-dd > summary > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.filter-dd > summary::after { content: "▾"; color: var(--steel-2); font-size: 0.75rem; flex: none; transition: transform 160ms; }
.filter-dd[open] > summary { border-color: var(--paint); }
.filter-dd[open] > summary::after { transform: rotate(180deg); }
.filter-dd-panel {
  position: absolute; top: calc(100% + 6px); left: 0; z-index: 30;
  min-width: 100%; width: max-content; max-width: min(420px, calc(100vw - 3rem));
  background: var(--concrete-1); border: 1px solid var(--rule-strong);
  padding: 0.9rem; box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.5);
}
.filter-cell-wide { grid-column: span 1; }
@media (min-width: 768px) { .filter-cell-wide { grid-column: span 1; } }
.filter-label {
  display: block; font-family: var(--font-ui);
  font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--steel-3); margin-bottom: 0.45rem;
}
.filter-select {
  width: 100%; background: transparent; border: 1px solid var(--rule-strong);
  color: var(--steel); padding: 0.55rem 0.7rem;
  font-family: var(--font-ui); font-size: 0.85rem;
}
.filter-select:focus { outline: none; border-color: var(--paint); }
.range-pair { position: relative; height: 28px; }
.range-pair input[type="range"] {
  position: absolute; left: 0; right: 0; top: 8px; width: 100%;
  -webkit-appearance: none; appearance: none; background: transparent; pointer-events: none;
}
.range-pair input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 14px; height: 14px; border-radius: 50%; background: var(--paint);
  border: 2px solid var(--concrete); cursor: pointer; pointer-events: auto;
  box-shadow: 0 0 0 1px var(--paint);
}
.range-pair input[type="range"]::-moz-range-thumb {
  width: 14px; height: 14px; border-radius: 50%; background: var(--paint);
  border: 2px solid var(--concrete); cursor: pointer; pointer-events: auto;
}
.range-pair::before {
  content: ""; position: absolute; left: 0; right: 0; top: 14px; height: 2px;
  background: var(--rule-strong);
}
.range-readout { font-family: var(--font-ui); font-size: 0.78rem; color: var(--steel-2); margin-top: 0.45rem; letter-spacing: 0.06em; }
.chip-group { display: flex; flex-wrap: wrap; gap: 0.45rem; }
/* Checkbox chips (kadra-auto colour filter). */
.chip {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.35rem 0.7rem; border: 1px solid var(--rule-strong);
  font-family: var(--font-ui); font-size: 0.74rem;
  letter-spacing: 0.05em; color: var(--steel-2); cursor: pointer;
  user-select: none; transition: all 180ms;
}
.chip:hover { border-color: var(--paint); color: var(--steel); }
.chip input { accent-color: var(--paint); margin: 0; }
.chip:has(input:checked) { border-color: var(--paint); color: var(--steel); background: rgba(var(--accent-rgb), 0.06); }

/* locationunit-style cards */
.lu-grid {
  display: grid; gap: 1.2rem;
  grid-template-columns: 1fr;
}
@media (min-width: 576px) { .lu-grid { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 992px) { .lu-grid { grid-template-columns: repeat(3,1fr); } }
.lu-card { display: block; text-decoration: none; color: var(--steel); transition: transform 280ms; }
.lu-card:hover { transform: translateY(-3px); }
.lu-img { aspect-ratio: 4/3; background-size: cover; background-position: center; border: 1px solid var(--rule); }
.lu-card:hover .lu-img { border-color: var(--paint); }
.lu-body { padding: 0.8rem 0 0; }
.lu-body h4 { font-family: var(--font-ui); font-weight: 600; font-size: 1.25rem; text-transform: uppercase; letter-spacing: 0; margin: 0; color: var(--steel); }
.lu-spec { font-family: var(--font-ui); font-size: 0.78rem; color: var(--steel-2); letter-spacing: 0.04em; margin-top: 0.2rem; display: block; }

/* Copy-to-clipboard styling */
.copy-all-btn {
  margin-left: 0.6rem; padding: 0.25rem 0.6rem;
  background: transparent; border: 1px solid var(--paint);
  color: var(--paint); font-family: var(--font-ui);
  font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase;
  cursor: pointer; transition: background 160ms, color 160ms;
}
.copy-all-btn:hover { background: var(--paint); color: var(--concrete); }
/* minmax(0,1fr): plain 1fr can't shrink below the content's min width, so an
   unbreakable value (IBAN) forced the row past the card border on phones. */
.company-card .kv { grid-template-columns: 10rem minmax(0, 1fr) auto !important; }
.company-card .v { overflow-wrap: anywhere; } /* long tokens (IBAN, e-mail) wrap instead of overflowing */
@media (max-width: 600px) {
  .company-card .kv { grid-template-columns: 6.5rem minmax(0, 1fr) auto !important; }
}
.copy-btn {
  background: transparent; border: none; color: var(--steel-3);
  cursor: pointer; padding: 0 0.4rem; font-size: 0.95rem;
  transition: color 160ms;
}
.copy-btn:hover { color: var(--paint); }
.copy-toast {
  position: fixed; bottom: 1.5rem; left: 50%; transform: translate(-50%, 20px);
  background: var(--paint); color: var(--concrete);
  padding: 0.55rem 1.1rem; font-family: var(--font-ui);
  font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase;
  box-shadow: 0 8px 22px rgba(0,0,0,0.5);
  opacity: 0; pointer-events: none; transition: opacity 220ms, transform 220ms;
  z-index: 200;
}
.copy-toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }

/* Slim variant of service-hero (for product detail pages) */
.service-hero-slim { padding: 4.5rem 0 3.5rem; }
.service-hero-slim h1 { font-size: clamp(2rem, 5vw, 3.6rem); }

/* Sub-bar — strip below service-hero for filters */
.sub-bar { padding: 1.6rem 0; border-bottom: 1px solid var(--rule); background: var(--concrete-1); }
.sub-bar .filters { display: flex; flex-wrap: wrap; gap: 0.5rem; }



/* Social icon row */
.social-row { display: inline-flex; align-items: center; gap: 0.5rem; }
.social-row a {
  width: 34px; height: 34px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--rule-strong);
  color: var(--steel-2); text-decoration: none;
  transition: all 200ms cubic-bezier(0.2,0.7,0.2,1);
}
.social-row a:hover {
  border-color: var(--paint); color: var(--paint);
  transform: translateY(-2px);
}
.social-row a svg { width: 16px; height: 16px; }
.social-row.compact a { width: 28px; height: 28px; }
.social-row.compact a svg { width: 14px; height: 14px; }

/* Header: pull right side closer when no meta text */
.topnav { gap: 1.25rem; }

/* About section: keep dark, not lighter */
.about { background: var(--concrete-1); }

/* Specs cells — less visual weight */
.specs .cell { padding: 0.95rem 1.1rem; }
.specs .val { font-size: 1.5rem; }

/* =========================================================
   Phase B additions — language switcher
   ========================================================= */
.lang-switch {
  display: inline-flex; gap: 0.4rem; align-items: center;
  font-family: var(--font-ui); font-size: 0.72rem;
  letter-spacing: 0.14em; margin-left: 0.4rem;
}
.lang-switch a {
  color: var(--steel-3); text-decoration: none;
  padding: 0.2rem 0.35rem; transition: color 160ms;
}
.lang-switch a:hover { color: var(--steel); }
.lang-switch a.active { color: var(--paint); }
/* Visible at every width until the ≤600px burger takes over — the mobile
   panel then re-surfaces the languages as .lang-row (see header partial). */

/* Product cards — greyed-out treatment for unavailable / maintenance */
.unit.is-unavailable { opacity: 0.55; pointer-events: none; }
.unit.is-unavailable .img { filter: grayscale(0.4) brightness(0.75); }
.unit.is-unavailable .act { color: var(--steel-3); }

/* =========================================================
   Mobile burger menu — only active at ≤600px viewports.
   The header keeps its existing desktop layout; below the
   breakpoint we hide the inline nav/cart/lang/socials and
   surface them inside a slide-down panel.
   ========================================================= */
.burger { display: none; }              /* hidden on desktop */
.mobile-panel { display: none; }        /* hidden on desktop */

@media (max-width: 600px) {
  /* Header itself needs to host the absolutely-positioned panel. */
  header { position: sticky; }
  .topnav { justify-content: space-between; flex-wrap: nowrap; gap: 0.5rem; position: relative; }

  /* Hide everything that gets re-surfaced inside the panel. */
  .topnav nav.main,
  .topnav .cart-btn,
  .topnav .lang-switch,
  .topnav .social-row { display: none; }

  .burger {
    display: inline-flex; flex-direction: column; justify-content: center;
    align-items: center; gap: 5px;
    width: 40px; height: 40px;
    background: transparent; border: 1px solid var(--rule-strong);
    cursor: pointer; padding: 0;
    color: var(--steel);
    transition: border-color 180ms;
  }
  .burger:hover { border-color: var(--paint); }
  .burger span {
    display: block; width: 18px; height: 2px;
    background: var(--steel);
    transition: transform 200ms, opacity 200ms;
  }
  .burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .mobile-panel {
    display: block;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--concrete-1);
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
    padding: 0.4rem 1.25rem;
    max-height: 0; overflow: hidden;
    opacity: 0;
    transition: max-height 240ms ease, opacity 200ms ease;
    z-index: 28;
  }
  .mobile-panel.is-open {
    max-height: 85vh;
    opacity: 1;
    overflow: auto;
  }
  .mobile-panel > a {
    display: block;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--rule);
    color: var(--steel);
    text-decoration: none;
    font-family: var(--font-ui);
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
  }
  .mobile-panel > a.sub {
    padding-left: 0.9rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--steel-2);
    letter-spacing: 0.04em;
  }
  .mobile-panel > a.active { color: var(--paint); }
  .mobile-panel > a:hover { color: var(--paint); }

  .mobile-panel .lang-row {
    display: flex; gap: 0.4rem; padding: 0.85rem 0;
    border-bottom: 1px solid var(--rule);
  }
  .mobile-panel .lang-row a {
    display: inline-block;
    padding: 0.4rem 0.7rem;
    border: 1px solid var(--rule-strong);
    font-family: var(--font-ui);
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    color: var(--steel-2);
    text-decoration: none;
  }
  .mobile-panel .lang-row a.active {
    background: var(--paint); color: var(--concrete); border-color: var(--paint);
  }
  .mobile-panel .social-row {
    display: flex; gap: 0.5rem; padding: 0.85rem 0;
  }
  .mobile-panel .social-row a {
    width: 34px; height: 34px;
    border: 1px solid var(--rule-strong);
    display: inline-flex; align-items: center; justify-content: center;
    color: var(--steel-2);
    padding: 0;
    border-bottom: 1px solid var(--rule-strong);
  }
  .mobile-panel .social-row a:hover { border-color: var(--paint); color: var(--paint); }
  .mobile-panel .social-row a svg { width: 16px; height: 16px; }
}

/* ====== A11y: replacement-photo helper ======
   When a content-bearing card image becomes a real <img> (so screen
   readers get alt text), we keep the existing card structure and slot
   .shx-photo INSIDE the existing wrapper (.unit .img, .cat-block .img).
   The img then fills its parent with object-fit:cover, matching the
   visual that background-image:cover used to provide. */
.shx-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  border: 0;
}
/* .unit .img originally had aspect-ratio + relative; keep those but
   ensure the inner <img> is positioned absolutely on top of it (so the
   .sku and .meter spans render over the photo, same as before). */
.unit .img { display: block; }

/* ====== COOKIE CONSENT ======
   Fixed bottom bar, dark with red accent. Starts off-screen (translateY)
   and slides up when .is-visible is added by the inline script. Only
   essential cookies are used → single Accept dismiss. */
.cookie-consent {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
  justify-content: center;
  padding: 0.9rem 1.25rem;
  background: rgba(10,10,10,0.97);
  border-top: 2px solid var(--paint);
  box-shadow: 0 -8px 30px rgba(0,0,0,0.5);
  transform: translateY(110%);
  transition: transform 300ms cubic-bezier(0.2,0.7,0.2,1);
}
.cookie-consent.is-visible { transform: translateY(0); }
.cookie-consent .cc-text {
  margin: 0; font-family: var(--font-ui);
  font-size: 0.76rem; letter-spacing: 0.03em; line-height: 1.5;
  color: var(--steel-2); max-width: 70ch;
}
.cookie-consent .cc-more { color: var(--paint); text-decoration: none; white-space: nowrap; }
.cookie-consent .cc-more:hover { text-decoration: underline; }
.cookie-consent .cc-accept {
  flex-shrink: 0;
  font-family: var(--font-ui); font-weight: 600;
  font-size: 0.95rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--concrete); background: var(--paint); border: none;
  padding: 0.6rem 1.4rem; cursor: pointer;
  box-shadow: none;
  transition: transform 140ms, box-shadow 140ms;
}
.cookie-consent .cc-accept:hover { transform: translate(-1px,-1px); box-shadow: 0 10px 24px rgba(0,0,0,0.35); }
.cookie-consent .cc-accept:active { transform: translate(1px,1px); box-shadow: none; }
@media (max-width: 600px) {
  .cookie-consent { flex-direction: column; align-items: stretch; text-align: center; gap: 0.7rem; padding: 0.85rem 1rem; }
  .cookie-consent .cc-accept { width: 100%; }
}

/* ===== Scroll-to-top button (created by app.js on every public page) ===== */
.to-top {
  position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 55; /* below .cookie-consent (60) */
  width: 46px; height: 46px; padding: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--concrete-1); color: var(--paint);
  border: 1px solid var(--rule-strong); cursor: pointer;
  font-family: var(--font-ui); font-size: 1.05rem; line-height: 1;
  opacity: 0; transform: translateY(10px); pointer-events: none;
  transition: opacity 220ms, transform 220ms cubic-bezier(0.2,0.7,0.2,1),
              background 160ms, color 160ms, border-color 160ms, box-shadow 140ms;
}
.to-top.show { opacity: 1; transform: translateY(0); pointer-events: auto; }
.to-top:hover { background: var(--paint); color: var(--concrete); border-color: var(--paint); box-shadow: none; }
.to-top:active { box-shadow: none; transform: translate(1px,1px); }
.to-top:focus-visible { outline: 2px solid var(--paint); outline-offset: 2px; }
/* Lift it above the cookie banner while that is on screen. */
body:has(.cookie-consent.is-visible) .to-top { bottom: 4.6rem; }
@media (max-width: 600px) {
  .to-top { right: 0.85rem; bottom: 0.85rem; width: 42px; height: 42px; }
  body:has(.cookie-consent.is-visible) .to-top { bottom: 10.5rem; } /* stacked banner is taller */
}
@media (prefers-reduced-motion: reduce) {
  .to-top { transition: opacity 160ms; transform: none; }
  .to-top.show { transform: none; }
}


/* ============================================================
   TFE BRAND LAYER — home page (Task 5)
   Hero, numbered section cards, footer band, header-over-hero.
   ============================================================ */

/* --- kicker — small overline label with a short bronze rule --- */
.kicker {
  display: inline-flex; align-items: center; gap: 0.7rem;
  font-family: var(--font-ui); font-weight: 500;
  font-size: 0.68rem; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--accent-2); margin: 0;
}
.kicker::before { content: ""; width: 26px; height: 1px; background: var(--accent-ink); flex: none; }

/* --- nav layout (mockup): logo left · links centered · outlined cart
       button right. The right-hand cluster (lang · socials · cart · burger)
       is grouped in .nav-right by header.php. True centering via a
       1fr/auto/1fr grid — only at ≥1001px; below that the bar keeps its
       flex-wrap behaviour, and ≤600px hands over to the burger panel. --- */
.nav-right { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; justify-content: flex-end; }
@media (min-width: 1001px) {
  .topnav { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
  .topnav .logo { justify-self: start; }
  .topnav nav.main { justify-self: center; flex-wrap: nowrap; }
  .topnav .nav-right { justify-self: end; flex-wrap: nowrap; }
}
/* Tight middle range: drop the header socials (footer still carries them;
   the mockup shows none in the nav) and compact the links so the three
   grid zones fit without wrapping. */
@media (min-width: 1001px) and (max-width: 1199px) {
  .topnav .social-row { display: none; }
  nav.main a { padding: 0.55rem 0.65rem; letter-spacing: 0.14em; }
}

/* --- header floats transparent over the home hero, solidifies on scroll --- */
body.is-home #site-header {
  position: fixed; left: 0; right: 0; top: 0;
  background: linear-gradient(180deg, rgba(8,11,0,0.55) 0%, rgba(8,11,0,0) 100%);
  backdrop-filter: none;
  border-bottom-color: transparent;
}
body.is-home #site-header.scrolled {
  background: rgba(8,11,0,0.94);
  backdrop-filter: blur(10px);
  border-bottom-color: var(--rule);
}

/* --- full-viewport cinematic hero --- */
.tfe-hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  padding: 7rem 0 5rem;
  border-bottom: 1px solid rgba(var(--accent-rgb), 0.25);
}
.tfe-hero-bg {
  /* Black 911 rear · rainy night city street · glowing tail lights —
     mirrors the mockup's night-noir vehicle scene. background-position
     keeps the image's LEFT edge pinned so the (centered) car lands in
     the right two-thirds while the copy owns the darker left street. */
  position: absolute; inset: 0; z-index: -2;
  background-image: url('https://images.unsplash.com/photo-1471479917193-f00955256257?w=2400&q=80');
  background-size: cover; background-position: left center;
  filter: saturate(0.9) brightness(0.72) contrast(1.05);
}
.tfe-hero::after {
  /* layered legibility scrim: near-black left column for the copy (per
     mockup), midnight cast overall, hard fade to page black at the bottom */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(8,11,0,0.96) 0%, rgba(8,11,0,0.84) 30%, rgba(8,11,0,0.38) 58%, rgba(8,11,0,0.12) 80%, rgba(8,11,0,0.42) 100%),
    linear-gradient(180deg, rgba(8,11,0,0.55) 0%, rgba(11,24,32,0.10) 35%, rgba(8,11,0,0.10) 55%, rgba(8,11,0,0.96) 100%);
}
.tfe-hero-inner { max-width: 980px; }
.tfe-hero h1 {
  /* Mockup scale: ~9vw Cormorant across tight lines (leading ≈0.95) filling a
     bit over half the viewport width. Sentence case, not uppercase — the
     headline is set exactly as written in the admin, so Latvian capitalisation
     stays correct. Ascenders/descenders need a touch more leading than caps. */
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(2.6rem, 8vw, 7.4rem);
  line-height: 1.02; letter-spacing: 0.005em;
  color: var(--ink); margin: 1.4rem 0 0; text-wrap: balance;
}
.tfe-hero h1 em { font-style: normal; color: var(--accent-2); }
.tfe-hero .sub {
  font-family: var(--font-ui); font-size: 1rem; font-weight: 400;
  color: var(--ink-dim); line-height: 1.65; max-width: 44ch; margin-top: 1.4rem;
}
.tfe-hero .cta-row { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 2.4rem; }
@media (max-width: 1000px) {
  /* header wraps to two rows below ~1000px (nav + cart + lang) — give the
     fixed header more clearance above the hero copy */
  .tfe-hero { padding-top: 10rem; }
}
@media (max-width: 600px) {
  .tfe-hero { padding: 7.5rem 0 4rem; }
  .tfe-hero .cta-row .btn-cta { width: 100%; justify-content: center; }
  /* narrow portrait crop: recentre so the car (image centre) stays in frame */
  .tfe-hero-bg { background-position: center; }
}

/* --- numbered section cards (01 · 02 · 03) --- */
.tfe-cards { padding: 4.5rem 0 5.5rem; }
.tfe-card-grid { display: grid; gap: 2rem 1.5rem; grid-template-columns: minmax(0, 1fr); margin-top: 2.2rem; }
/* auto-fit: 3 cards → 3 columns, 2 cards (kadra auto hidden) → 2 wider
   columns instead of a dangling empty track */
@media (min-width: 700px) { .tfe-card-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); } }
.tfe-card { min-width: 0; }
.tfe-card { display: block; text-decoration: none; color: inherit; border-bottom: 1px solid rgba(var(--accent-rgb), 0.45); padding-bottom: 1px; transition: transform 320ms cubic-bezier(0.2,0.7,0.2,1), border-color 320ms; }
.tfe-card:hover { transform: translateY(-4px); border-bottom-color: rgba(var(--accent-rgb), 0.85); }
/* Card head — serif title + arrow, OVERLAID on the card image (top-left)
   above the scrim. The thin bronze rule under the image block is the
   .tfe-card border-bottom. */
.tfe-card-head {
  position: absolute; top: 0; left: 0; right: 0; z-index: 2;
  display: flex; flex-direction: column; align-items: stretch;
  padding: 1.15rem 1.25rem 0;
}
.tfe-card-title { display: flex; align-items: baseline; gap: 0.9rem; }
.tfe-card-head h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.6rem, 2.4vw, 1.8rem); letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink); margin: 0; line-height: 1; transition: color 240ms; }
.tfe-card:hover .tfe-card-head h2 { color: var(--accent-2); }
.tfe-card-head .go { margin-left: auto; color: var(--ink-dim); font-size: 1.05rem; transition: transform 240ms cubic-bezier(0.2,0.7,0.2,1), color 240ms; }
.tfe-card:hover .tfe-card-head .go { transform: translateX(6px); color: var(--accent-2); }
.tfe-card-img { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--panel); }
@media (min-width: 700px) { .tfe-card-img { aspect-ratio: 1 / 1.05; } }
.tfe-card-img img {
  width: 100%; height: 100%; object-fit: cover; object-position: center; display: block;
  filter: saturate(0.85) brightness(0.82);
  transition: transform 700ms cubic-bezier(0.2,0.7,0.2,1), filter 500ms;
}
.tfe-card:hover .tfe-card-img img { transform: scale(1.05); filter: saturate(1) brightness(0.95); }
.tfe-card-img::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  /* stronger top band so the overlaid head stays legible on bright images */
  background: linear-gradient(180deg, rgba(8,11,0,0.78) 0%, rgba(8,11,0,0.28) 34%, transparent 55%, rgba(8,11,0,0.45) 100%);
}

/* --- footer band (colophon) — logo + tagline · socials + copyright --- */
.colophon { border-top: 1px solid rgba(var(--accent-rgb), 0.25); padding: 2.4rem 0 2rem; }
.colo-grid { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem 2.5rem; flex-wrap: wrap; }
.colo-brand { display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap; }
.colo-logo { width: 132px; height: auto; display: block; opacity: 0.92; }
.colo-brand .tagline {
  font-family: var(--font-display); font-weight: 400; font-style: italic;
  font-size: 1.05rem; letter-spacing: 0.04em; color: var(--ink-dim);
  border-left: 1px solid var(--rule-strong); padding-left: 1.4rem;
}
.colo-based { font-family: var(--font-ui); font-weight: 500; font-size: 0.68rem; letter-spacing: 0.26em; text-transform: uppercase; color: var(--ink-dim); text-align: center; }
.colo-meta { display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap; }
.colo-meta .copyright { font-family: var(--font-ui); font-weight: 400; font-size: 0.66rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-faint); }
@media (max-width: 700px) {
  .colo-grid { flex-direction: column; align-items: flex-start; }
  .colo-brand .tagline { border-left: none; padding-left: 0; }
  .colo-based { text-align: left; }
}

/* ============================================================
   TFE BRAND LAYER — section pages (Task 6)
   Chip bar, from-price tag, kubli rates panel + cards,
   transports pricing strip, empty states.
   ============================================================ */

/* --- sub-category chip bar (transports ?tips= filter) --- */
.tfe-chipbar { display: flex; flex-wrap: wrap; gap: 0.55rem; margin-bottom: 2.2rem; }
.tfe-chip {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.55rem 1rem;
  border: 1px solid var(--rule-strong); background: transparent;
  color: var(--ink-dim); text-decoration: none;
  font-family: var(--font-ui); font-weight: 500;
  font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase;
  transition: color 180ms, border-color 180ms, background 180ms;
}
.tfe-chip:hover { color: var(--accent-2); border-color: var(--accent-2); }
.tfe-chip.is-on {
  background: linear-gradient(100deg, var(--btn-a) 0%, var(--btn-b) 100%);
  border-color: transparent; color: var(--on-accent); font-weight: 600;
  box-shadow: inset 0 0 0 1px var(--btn-edge);
}
.tfe-chip .n { font-size: 0.62rem; letter-spacing: 0.08em; opacity: 0.75; }

/* --- from-price tag on catalog cards (pairs with .price-request) --- */
.unit .price-from {
  font-family: var(--font-ui);
  font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent-2);
  padding: 0.3rem 0.55rem;
  border: 1px solid rgba(var(--accent-2-rgb), 0.4);
  white-space: nowrap;
  transition: color 200ms, border-color 200ms;
}
.unit:hover .price-from { color: var(--accent-2); border-color: var(--accent-2); }

/* --- imageless card slot — "BEZ ATTĒLA" placeholder (kubli seeds, etc.) --- */
.unit .img.is-empty { background: var(--panel); display: flex; align-items: center; justify-content: center; }
.unit .img .no-img,
.kc-img .no-img {
  font-family: var(--font-mono); font-size: 0.72rem;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ink-faint);
}

/* --- empty state (filtered grid with no rows) --- */
.tfe-empty {
  font-family: var(--font-mono); font-size: 0.9rem;
  color: var(--ink-dim); letter-spacing: 0.02em; line-height: 1.7;
  text-align: center; padding: 3rem 1rem;
  border: 1px dashed var(--rule-strong); margin: 0;
}
.tfe-empty a { color: var(--accent-2); text-decoration: none; }
.tfe-empty a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* --- transports pricing explainer strip --- */
.tfe-pricing-strip { border: 1px solid var(--rule); background: var(--panel); padding: 2rem 2rem 1.6rem; }
.tfe-pricing-strip .tps-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.6rem 2rem; margin-bottom: 1.6rem; }
.tfe-pricing-strip .tps-note { font-family: var(--font-ui); font-size: 0.85rem; color: var(--ink-dim); line-height: 1.55; margin: 0; max-width: 62ch; }
.tps-bands { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
@media (min-width: 768px) { .tps-bands { grid-template-columns: repeat(4, 1fr); } }
.tps-band { background: var(--panel-2); padding: 1.1rem 1.2rem 1rem; display: flex; flex-direction: column; gap: 0.35rem; }
.tps-band .num { font-family: var(--font-ui); font-weight: 500; font-size: 0.66rem; letter-spacing: 0.26em; color: var(--accent-ink); }
.tps-band .lbl { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.25rem, 2vw, 1.6rem); letter-spacing: 0.02em; color: var(--ink); line-height: 1.05; }
.tfe-pricing-strip .tps-foot {
  display: flex; flex-wrap: wrap; gap: 0.4rem 2rem; margin-top: 1.2rem;
  font-family: var(--font-ui); font-size: 0.7rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-faint);
}
@media (max-width: 600px) { .tfe-pricing-strip { padding: 1.4rem 1.2rem 1.2rem; } }

/* --- kubli rates panel — champagne numerals, Cormorant --- */
.tfe-rates { border: 1px solid rgba(var(--accent-rgb), 0.35); background: var(--panel); padding: 2rem 2rem 1.6rem; position: relative; }
.tfe-rates::before {
  /* thin bronze top edge — the panel reads as the section's price card */
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-2) 55%, transparent 100%);
}
.tfe-rates .kicker { margin-bottom: 1.6rem; }
.tfe-rates .rate-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
@media (min-width: 768px) { .tfe-rates .rate-grid { grid-template-columns: repeat(4, 1fr); } }
.tfe-rates .rate { background: var(--panel-2); padding: 1.2rem 1.3rem 1.1rem; display: flex; flex-direction: column; gap: 0.55rem; }
.tfe-rates .rate .lbl {
  font-family: var(--font-ui); font-weight: 500; font-size: 0.68rem;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-dim);
}
.tfe-rates .rate .val {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(2.1rem, 4vw, 2.9rem); line-height: 1;
  color: var(--accent-2); letter-spacing: 0.01em;
}
.tfe-rates .rate .val small { font-size: 0.55em; margin-left: 0.18em; color: var(--accent-ink); }
.tfe-rates .rate-foot {
  display: flex; flex-wrap: wrap; gap: 0.4rem 2rem; margin-top: 1.2rem;
  font-family: var(--font-ui); font-size: 0.7rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-faint);
}
.tfe-rates .rate-foot b { color: var(--accent-2); font-weight: 600; }
@media (max-width: 600px) { .tfe-rates { padding: 1.4rem 1.2rem 1.2rem; } }

/* --- kubli product cards — two wide editorial cards --- */
.kubli-grid { display: grid; gap: 1.5rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .kubli-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.kubli-card { background: var(--panel); border: 1px solid var(--rule); display: flex; flex-direction: column; transition: border-color 240ms; }
.kubli-card:hover { border-color: rgba(var(--accent-rgb), 0.5); }
.kubli-card .kc-img {
  display: flex; align-items: center; justify-content: center;
  aspect-ratio: 16 / 9; position: relative; overflow: hidden;
  background: var(--panel-2); text-decoration: none;
}
.kubli-card .kc-img img { filter: saturate(0.9) brightness(0.9); transition: transform 700ms cubic-bezier(0.2,0.7,0.2,1), filter 500ms; }
.kubli-card:hover .kc-img img { transform: scale(1.04); filter: saturate(1) brightness(1); }
.kubli-card .kc-body { padding: 1.5rem 1.5rem 1.6rem; display: flex; flex-direction: column; gap: 0.7rem; flex: 1; }
.kubli-card h3 { margin: 0; line-height: 1.05; }
.kubli-card h3 a {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(1.6rem, 2.6vw, 2.1rem); letter-spacing: 0.03em;
  text-transform: uppercase; color: var(--ink); text-decoration: none;
  transition: color 200ms;
}
.kubli-card h3 a:hover { color: var(--accent-2); }
.kubli-card .kc-sub { font-family: var(--font-ui); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-ink); }
.kubli-card .kc-desc { font-family: var(--font-ui); font-size: 0.92rem; color: var(--ink-dim); line-height: 1.65; }
.kubli-card .kc-desc p { margin: 0 0 0.5rem; }
.kubli-card .kc-desc p:last-child { margin-bottom: 0; }
.kubli-card .kc-actions { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-top: auto; padding-top: 0.9rem; }
@media (max-width: 480px) {
  .kubli-card .kc-actions .btn-cta,
  .kubli-card .kc-actions .btn-ghost { flex: 1 1 100%; justify-content: center; }
}

/* --- price calculator (.calc on produkts + kubli; see initCalc in app.js) --- */
.calc-wrap { max-width: 760px; margin-top: 1.8rem; }
.calc { border-color: rgba(var(--accent-rgb), 0.35); }
.calc input[type="date"] { font-family: var(--font-mono); font-size: 0.82rem; letter-spacing: 0.03em; }
.calc .calc-result { border: 1px dashed var(--rule-strong); padding: 0.85rem 1rem; }
.calc .calc-hint { margin: 0; font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.05em; color: var(--ink-faint); }
.calc .calc-hint.is-error { color: #ffd8d8; }
.calc .calc-hint.is-unavailable { color: #ffd8d8; }
.calc .calc-row { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: 0.22rem 0; font-family: var(--font-ui); font-size: 0.85rem; color: var(--ink-dim); }
.calc .calc-row .v { color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.calc .calc-row.calc-total { border-top: 1px solid var(--rule); margin-top: 0.45rem; padding-top: 0.6rem; }
.calc .calc-row.calc-total .k { text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.7rem; }
.calc .calc-row.calc-total .v { font-family: var(--font-display); font-weight: 400; font-size: 1.7rem; line-height: 1; color: var(--accent-2); }
.calc .calc-note { margin: 0.65rem 0 0; font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.05em; line-height: 1.6; color: var(--ink-faint); }
.calc .calc-unavailable { margin: 0.65rem 0 0; padding: 0.5rem 0.7rem; font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.04em; color: #ffd8d8; background: #2a0d0d; border: 1px solid rgba(228,73,49,0.5); }
.btn-cta:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-cta:disabled:hover { transform: none; box-shadow: none; filter: none; }
/* per-band km allowance line inside the transports tier grid */
.tfe-rates .rate .km { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.08em; color: var(--ink-faint); }

/* ============================================================
   CLIENT PORTAL (/klients) — lean layer on the TFE brand tokens.
   Forms reuse the checkout field styles (.f-lbl, inputs); everything
   else is scoped under .client-*.
   ============================================================ */
.client-page { padding: 3rem 0 5rem; }
.client-page .crumb { margin-bottom: 1.6rem; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em; color: var(--ink-faint); }
.client-page .crumb a { color: var(--ink-dim); text-decoration: none; }
.client-page .crumb a:hover { color: var(--accent-2); }
.client-page .crumb .sep { margin: 0 0.45rem; color: var(--ink-faint); }
.client-page h1 { font-family: var(--font-display); font-weight: 300; font-size: clamp(2rem, 4.5vw, 3.2rem); letter-spacing: 0.02em; text-transform: uppercase; color: var(--ink); margin: 0.7rem 0 0.4rem; line-height: 1.05; }
.client-lead { font-family: var(--font-ui); font-size: 0.95rem; color: var(--ink-dim); line-height: 1.65; margin: 0.3rem 0 0; max-width: 62ch; }
.client-h2 { font-family: var(--font-ui); font-weight: 500; font-size: 0.78rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--accent-ink); margin: 2.6rem 0 1rem; }
.client-note { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.03em; color: var(--ink-faint); line-height: 1.6; margin: 0.6rem 0; }
.client-note-inline { display: block; font-family: var(--font-mono); font-size: 0.64rem; color: var(--ink-faint); }

.client-shell { max-width: 460px; background: var(--panel); border: 1px solid var(--rule); padding: 2rem 2.2rem 2.2rem; margin-top: 1rem; }
.client-shell.client-account { max-width: 560px; }
.client-shell label.f-lbl { display: block; margin: 1.1rem 0 0.35rem; }
.client-shell input, .client-shell textarea {
  width: 100%; background: transparent; border: 1px solid var(--rule-strong);
  color: var(--ink); padding: 0.7rem 0.9rem;
  font-family: var(--font-mono); font-size: 0.9rem;
}
.client-shell input:focus, .client-shell textarea:focus { outline: none; border-color: var(--accent); }
.client-shell input:disabled { color: var(--ink-faint); border-style: dashed; }
.client-shell .btn-cta { margin-top: 1.5rem; }
.client-links { margin-top: 1.3rem; font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.05em; }
.client-links a { color: var(--accent-2); text-decoration: none; }
.client-links a:hover { text-decoration: underline; }
.client-links .sep { margin: 0 0.5rem; color: var(--ink-faint); }

.client-flash { padding: 0.75rem 1rem; margin: 0 0 1.4rem; font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.02em; border-left: 3px solid; }
.client-flash.err { border-color: #e04931; background: rgba(228, 73, 49, 0.1); color: #f5b3b3; }
.client-flash.ok  { border-color: #4ade80; background: rgba(74, 222, 128, 0.08); color: #c7e8c4; }

.client-dash-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1.4rem; flex-wrap: wrap; }
.client-logout { white-space: nowrap; }
.client-verify-notice { max-width: 620px; margin-top: 1.6rem; padding: 1.2rem 1.4rem; border: 1px solid var(--accent); background: rgba(var(--accent-rgb), 0.08); }
.client-verify-notice p { font-family: var(--font-ui); font-size: 0.92rem; color: var(--ink-dim); line-height: 1.65; margin: 0 0 1rem; }

.client-table-wrap { overflow-x: auto; border: 1px solid var(--rule); background: var(--panel); }
.client-table { width: 100%; border-collapse: collapse; min-width: 620px; }
.client-table th { font-family: var(--font-ui); font-weight: 500; font-size: 0.66rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-faint); text-align: left; padding: 0.8rem 1rem; border-bottom: 1px solid var(--rule-strong); }
.client-table td { font-family: var(--font-ui); font-size: 0.88rem; color: var(--ink-dim); padding: 0.85rem 1rem; border-bottom: 1px solid var(--rule); vertical-align: middle; }
.client-table tr:last-child td { border-bottom: none; }
.client-table .mono { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.03em; white-space: nowrap; }
.client-order-link { color: var(--ink); text-decoration: none; }
.client-order-link:hover { color: var(--accent-2); }
.client-badge { display: inline-block; min-width: 1.3em; margin-left: 0.4rem; padding: 0.05rem 0.4rem; font-family: var(--font-mono); font-size: 0.66rem; font-weight: 600; text-align: center; color: var(--on-accent-2); background: var(--accent-2); }
.client-chip { display: inline-block; padding: 0.12rem 0.55rem; font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.1em; text-transform: uppercase; border: 1px solid var(--rule-strong); color: var(--ink-dim); white-space: nowrap; }
.client-chip.active, .client-chip.confirmed { color: var(--accent-2); border-color: var(--accent-2); }
.client-chip.tentative, .client-chip.draft { color: #f5b338; border-color: #f5b338; }
.client-chip.completed { color: #4ade80; border-color: #4ade80; }
.client-chip.cancelled { color: var(--ink-faint); border-color: var(--ink-faint); }

.client-thread { max-width: 720px; }
.client-msg { max-width: 85%; margin: 0 0 0.9rem; padding: 0.8rem 1rem; border: 1px solid var(--rule); background: var(--panel); }
.client-msg.mine { margin-left: auto; border-color: rgba(var(--accent-rgb), 0.45); background: rgba(var(--accent-rgb), 0.07); }
.client-msg-meta { font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 0.4rem; }
.client-msg.mine .client-msg-meta { color: var(--accent-2); }
.client-msg-body { font-family: var(--font-ui); font-size: 0.92rem; color: var(--ink-dim); line-height: 1.6; overflow-wrap: anywhere; }
.client-msg-form { margin-top: 1.6rem; }
.client-msg-form textarea { width: 100%; background: transparent; border: 1px solid var(--rule-strong); color: var(--ink); padding: 0.7rem 0.9rem; font-family: var(--font-ui); font-size: 0.9rem; line-height: 1.55; }
.client-msg-form textarea:focus { outline: none; border-color: var(--accent); }
.client-msg-form .btn-cta { margin-top: 0.9rem; }

/* header account link — matches .cart-btn's quiet outline language */
.account-link { display: inline-flex; align-items: center; gap: 0.45rem; color: var(--ink-dim); text-decoration: none; font-family: var(--font-ui); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; padding: 0.45rem 0.2rem; transition: color 200ms; }
.account-link:hover { color: var(--accent-2); }
.account-link svg { flex: none; }
@media (min-width: 1001px) and (max-width: 1199px) { .account-link .account-label { display: none; } }
@media (max-width: 600px) { .account-link { display: none; } } /* burger panel carries it */
