/* Kerbworks site styles.
   Layout: the browser window is the display. A fixed bezel frames the viewport, a status bar
   (shift lights, page name, clock) sits at the top of the glass and a keypad row at the bottom.
   Pages read like a build log: one wide column, video first, decisions written out underneath. */
:root {
  color-scheme: dark;
  --bezel: #050506;       /* moulded bezel around the glass */
  --glass: #0c0d0f;       /* unlit screen */
  --panel: #131417;       /* dash panel fill */
  --edge: #6d2420;        /* dim red panel border, as on the Red Mini pages */
  --line: #25272b;        /* neutral hairline */
  --cream: #efe6d2;       /* Smiths dial-face cream: primary text, kerb white */
  --muted: #9c968a;       /* secondary text */
  --signal: #e2382c;      /* kerb and rev-limit red: the accent */
  --go: #4fd27f;          /* shift light green */
  --warn: #f3a63c;        /* shift light amber */
  --best: #b583ff;        /* timing-screen purple */
  --sport: #38c8ff; --track: #ff3b30; --rain: #46f08c;   /* Ultima drive-mode colours */
  --lamp-off: #23201e;
  --heading: "Saira Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  --label: "Michroma", "Eurostile", "Arial", sans-serif;
  --body: "Barlow", "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", Consolas, monospace;
  --kerb: repeating-linear-gradient(115deg, var(--signal) 0 22px, var(--cream) 22px 44px);
  --bz: 12px; --bz-b: 26px; --top: 76px; --bottom: 0px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--bz) + var(--top) + 16px); scroll-padding-bottom: calc(var(--bz-b) + var(--bottom) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--glass); color: var(--cream); font: 400 1.075rem/1.65 var(--body); }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; border-radius: 3px; }
img, video { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--heading); font-weight: 800; line-height: .98; margin: 0; text-wrap: balance; }
p { margin: 0; }

/* ---------- Bezel and fixed chrome ---------- */
.bezel { position: fixed; z-index: 60; pointer-events: none; top: calc(var(--bz) + env(safe-area-inset-top, 0px)); left: var(--bz); right: var(--bz); bottom: calc(var(--bz-b) + env(safe-area-inset-bottom, 0px)); border-radius: 22px; box-shadow: 0 0 0 200vmax var(--bezel), inset 0 0 0 1px #24262a, inset 0 18px 40px -30px rgba(255,255,255,.12); }
.bezel-name { position: fixed; z-index: 61; pointer-events: none; left: 0; right: 0; bottom: calc(env(safe-area-inset-bottom, 0px) + 7px); text-align: center; font: 400 .58rem/1 var(--label); letter-spacing: .6em; color: #3b3c40; text-transform: uppercase; }
.status { position: fixed; z-index: 50; top: calc(var(--bz) + env(safe-area-inset-top, 0px)); left: var(--bz); right: var(--bz); height: var(--top); padding: 10px clamp(14px, 3vw, 28px) 0; background: linear-gradient(var(--glass) 70%, color-mix(in srgb, var(--glass) 0%, transparent)); display: grid; grid-template-rows: auto 1fr; }
.leds { display: flex; gap: clamp(3px, .9vw, 9px); justify-content: center; }
.leds i { width: clamp(9px, 1.6vw, 15px); aspect-ratio: 1; border-radius: 50%; background: var(--lamp-off); box-shadow: inset 0 0 0 1px #3a332e; transition: background .12s, box-shadow .12s; }
.leds i.on { background: var(--c); box-shadow: 0 0 9px var(--c), inset 0 0 0 1px rgba(255,255,255,.25); }
.leds i:nth-child(-n+8) { --c: var(--go); } .leds i:nth-child(n+9):nth-child(-n+11) { --c: var(--warn); } .leds i:nth-child(n+12) { --c: var(--signal); }
.leds.shift i.on { animation: shift .32s steps(2, jump-none) infinite; }
@keyframes shift { 50% { background: var(--lamp-off); box-shadow: inset 0 0 0 1px #3a332e; } }
.status-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; justify-self: start; min-width: 0; }
.brand svg { width: 40px; height: 22px; flex: none; }
.brand b { font: 800 italic 1.3rem/1 var(--heading); letter-spacing: .05em; color: var(--cream); }
.brand b i { font-style: inherit; color: var(--signal); }
.pagemenu { display: flex; gap: 6px 24px; font: 400 .7rem/1 var(--label); letter-spacing: .16em; text-transform: uppercase; white-space: nowrap; }
.pagemenu a { color: var(--muted); text-decoration: none; padding: 6px 0; }
.pagemenu a:hover { color: var(--cream); }
.pagemenu a[aria-current="page"] { color: var(--signal); }
.clock { justify-self: end; font: 600 1.05rem/1 var(--heading); letter-spacing: .04em; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.clock b { color: var(--cream); font-weight: 700; margin-left: 8px; font-size: 1.2rem; }

.keypad { position: fixed; z-index: 50; left: var(--bz); right: var(--bz); bottom: calc(var(--bz-b) + env(safe-area-inset-bottom, 0px)); height: var(--bottom); padding: 8px clamp(10px, 2vw, 22px) 10px; background: linear-gradient(0deg, var(--glass) 72%, color-mix(in srgb, var(--glass) 0%, transparent)); display: flex; gap: 6px; align-items: stretch; overflow-x: auto; scrollbar-width: none; }
.keypad::-webkit-scrollbar { display: none; }
.key { flex: 1 0 auto; min-width: 70px; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 8px; padding: 0 12px; border-radius: 9px; background: linear-gradient(#1c1d20, #141517); border: 1px solid #2c2e33; box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 2px 0 #050506; color: var(--muted); text-decoration: none; font: 400 .56rem/1.1 var(--label); letter-spacing: .12em; text-transform: uppercase; cursor: pointer; white-space: nowrap; }
.key:hover { color: var(--cream); }
.key:active { transform: translateY(1px); box-shadow: inset 0 1px 0 rgba(255,255,255,.04); }
.key svg { width: 18px; height: 18px; color: #4a4642; }
.key[aria-current="page"] { color: var(--cream); border-color: var(--edge); }
.key[aria-current="page"] svg { color: var(--k, var(--go)); filter: drop-shadow(0 0 5px var(--k, var(--go))); }
.key.nav { flex: 0 0 auto; min-width: 0; grid-template-columns: auto; justify-items: center; color: var(--go); }
.key.nav svg { color: var(--go); }

/* ---------- Page structure ---------- */
main { padding-top: calc(var(--bz) + var(--top) + 18px + env(safe-area-inset-top, 0px)); padding-bottom: calc(var(--bz-b) + var(--bottom) + 30px + env(safe-area-inset-bottom, 0px)); padding-inline: calc(var(--bz) + clamp(16px, 4vw, 44px)); }
.page { position: relative; max-width: 1180px; margin-inline: auto; padding-block: clamp(36px, 6vw, 80px); display: grid; gap: 30px; }
.page + .page::before { content: ""; position: absolute; top: 0; left: 10%; right: 10%; height: 12px; border-radius: 3px; background: var(--kerb); opacity: .9; }
main .page p.kicker { font: 400 .62rem/1.5 var(--label); letter-spacing: .22em; text-transform: uppercase; color: var(--muted); max-width: none; }
.kicker b { color: var(--signal); font-weight: 400; }
.kicker a { text-decoration: none; color: var(--muted); }
.kicker a:hover { color: var(--cream); }
h1.title { font-size: clamp(2.8rem, 6.6vw, 5.4rem); text-transform: uppercase; }
h1.title em { font-style: italic; color: var(--signal); }
h2 { font-size: clamp(2.2rem, 5vw, 3.6rem); text-transform: uppercase; }
h3 { font-size: 1.45rem; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; }
.intro { display: grid; gap: 14px; max-width: 64ch; }
.intro p { color: var(--muted); font-size: 1.12rem; }
.intro p.strong { color: var(--cream); }
.intro.banner { max-width: none; grid-template-columns: minmax(0, 1fr); }
.note { font-size: .95rem; color: var(--muted); }
.note.centre { text-align: center; text-wrap: balance; }
/* Display Creator section tabs: Service / Portfolio */
/* Display Creator section tabs (Service, Portfolio, Guides): a prominent segmented bar, each tab with an icon,
   the current one filled in signal red. */
.subtabs { width: fit-content; max-width: 100%; margin: 6px auto 0; display: flex; justify-content: center; gap: 6px; padding: 6px; border: 1px solid #3a3d44; border-radius: 999px; background: linear-gradient(#17181b, #101113); box-shadow: 0 14px 32px -20px rgba(0,0,0,.95), inset 0 1px 0 rgba(255,255,255,.04); }
.subtabs a { display: inline-flex; align-items: center; gap: 10px; font: 400 .9rem/1 var(--label); letter-spacing: .14em; text-transform: uppercase; text-decoration: none; color: #e4dccb; padding: 15px 30px; border-radius: 999px; border: 1px solid transparent; transition: background-color .2s, color .2s, border-color .2s; }
.subtabs a::before { content: ""; width: 18px; height: 18px; flex: none; background: currentColor; -webkit-mask: var(--tab-icon) center / contain no-repeat; mask: var(--tab-icon) center / contain no-repeat; }
.subtabs a:nth-child(1) { --tab-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4.2 17.5a9 9 0 1 1 15.6 0' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'/%3E%3Cpath d='M12 14 17 8.5' stroke='black' stroke-width='2.6' stroke-linecap='round'/%3E%3Ccircle cx='12' cy='14' r='2.4'/%3E%3C/svg%3E"); }
.subtabs a:nth-child(2) { --tab-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='3' y='3' width='8' height='8' rx='1.6'/%3E%3Crect x='13' y='3' width='8' height='8' rx='1.6'/%3E%3Crect x='3' y='13' width='8' height='8' rx='1.6'/%3E%3Crect x='13' y='13' width='8' height='8' rx='1.6'/%3E%3C/svg%3E"); }
.subtabs a:nth-child(3) { --tab-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M2.5 5.2c3-1.2 6.2-1 8.5.8v13.4c-2.3-1.6-5.5-1.8-8.5-.7zM21.5 5.2c-3-1.2-6.2-1-8.5.8v13.4c2.3-1.6 5.5-1.8 8.5-.7z'/%3E%3C/svg%3E"); }
.subtabs a:hover { color: #fff; background: #23252a; border-color: #4a4d55; }
.subtabs a:focus-visible { outline: 2px solid var(--cream); outline-offset: 2px; }
.subtabs a[aria-current="page"] { color: #fff; background: var(--signal); border-color: color-mix(in srgb, var(--signal) 70%, #fff); box-shadow: 0 0 22px -6px color-mix(in srgb, var(--signal) 80%, transparent); }
.btns { display: flex; flex-wrap: wrap; gap: 10px; }
.btns.centre { justify-content: center; margin-top: 14px; }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 20px; border-radius: 10px; font: 400 .7rem/1 var(--label); letter-spacing: .18em; text-transform: uppercase; text-decoration: none; color: var(--cream); background: linear-gradient(#1f2023, #151618); border: 1px solid #33353a; box-shadow: inset 0 1px 0 rgba(255,255,255,.07), 0 2px 0 #050506; cursor: pointer; white-space: nowrap; }
.btn .lamp { width: 8px; height: 8px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 8px var(--signal); }
.btn.primary { border-color: var(--signal); }
.btn:hover { color: #fff; border-color: var(--signal); }
.btn:active { transform: translateY(1px); }
.kerbline { height: 10px; width: min(300px, 70%); border-radius: 2px; background: var(--kerb); }
.panel { background: var(--panel); border: 1px solid var(--edge); border-radius: 12px; padding: clamp(18px, 2.4vw, 26px); display: grid; gap: 12px; align-content: start; min-width: 0; }
.panel .cap { font: 400 .6rem/1 var(--label); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.status-chip { display: inline-flex; align-items: center; gap: 8px; font: 400 .58rem/1 var(--label); letter-spacing: .16em; text-transform: uppercase; color: var(--warn); }
.status-chip::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }
.status-chip.go { color: var(--go); } .status-chip.beta { color: var(--best); }

/* Hero: copy left, video right */
.hero { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); align-items: center; gap: clamp(28px, 4.5vw, 56px); }
.hero .copy { display: grid; gap: 20px; }
.hero .copy p { color: var(--muted); font-size: 1.12rem; max-width: 52ch; }
.hero .copy p.strong { color: var(--cream); }

/* Video frames */
.screen { margin: 0; display: grid; gap: 10px; }
.screen .glass { position: relative; background: #000; border-radius: 14px; border: 1px solid #2a2c30; overflow: hidden; box-shadow: 0 30px 60px -30px rgba(0,0,0,.8); }
.screen video, .screen img { width: 100%; height: auto; }
.screen figcaption { font-size: .9rem; color: var(--muted); max-width: 80ch; margin-inline: auto; text-align: center; text-wrap: balance; }
.screen figcaption b { color: var(--cream); font-weight: 600; }

/* Chapters: keypad keys that seek the demo */
.chapters { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.chapters button { font: 400 .58rem/1 var(--label); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding: 11px 13px; border-radius: 8px; background: linear-gradient(#1c1d20, #141517); border: 1px solid #2c2e33; box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 2px 0 #050506; cursor: pointer; display: inline-flex; gap: 8px; align-items: center; }
.chapters button::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--lamp-off); box-shadow: inset 0 0 0 1px #3a332e; }
.chapters button[aria-pressed="true"] { color: var(--cream); border-color: var(--edge); }
.chapters button[aria-pressed="true"]::before { background: var(--go); box-shadow: 0 0 7px var(--go); }
.chapters button span { color: #6b665d; font-variant-numeric: tabular-nums; }

/* Ruled lists: design notes, services, product rows */
.notes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(24px, 4vw, 56px); margin: 0; padding: 0; list-style: none; }
.notes li { padding: 18px 0 20px; border-top: 1px solid var(--line); display: grid; gap: 6px; align-content: start; }
.notes b { font: 700 1.2rem/1.15 var(--heading); text-transform: uppercase; letter-spacing: .02em; }
.notes p { color: var(--muted); font-size: 1rem; }
.notes .fig { font-variant-numeric: tabular-nums; color: var(--cream); }
.services { margin: 0; padding: 0; list-style: none; display: grid; border-top: 1px solid var(--line); }
.services li { display: grid; grid-template-columns: minmax(170px, .5fr) minmax(0, 1.5fr); gap: 8px 32px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.services b { font: 700 1.4rem/1.1 var(--heading); text-transform: uppercase; }
.services p { color: var(--muted); }
.services p em { color: var(--cream); font-style: normal; }
.rows { margin: 0; padding: 0; list-style: none; display: grid; border-top: 1px solid var(--line); }
.rows li { display: grid; grid-template-columns: 240px minmax(0, 1fr) auto; gap: 28px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--line); }
.rows li.lead { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; padding-block: 28px; }
.rows .thumb { aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; border: 1px solid #2a2c30; background: var(--panel); display: grid; place-items: center; }
.rows .thumb img, .rows .thumb video { width: 100%; height: 100%; object-fit: cover; }
.rows .thumb svg { width: 86%; height: auto; }
.rows h3 { font-size: 1.6rem; }
.rows h3 a { text-decoration: none; }
.rows h3 a:hover { color: var(--signal); }
.rows .body { display: grid; gap: 10px; align-content: start; min-width: 0; }
.rows .body p { color: var(--muted); max-width: 62ch; }
.rows .lead h3 { font-size: clamp(2rem, 3.6vw, 2.8rem); }
.rows .lead .cap { margin-top: 4px; }
.price { color: var(--muted); font-size: 1rem; }
.price b { font: 800 2.2rem/1 var(--heading); color: var(--cream); margin-right: 6px; }

/* Exchange panels and ticks */
.exchange { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.ticks { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.ticks li { display: grid; grid-template-columns: 14px 1fr; gap: 10px; color: var(--muted); font-size: 1rem; }
.ticks li::before { content: ""; width: 8px; height: 8px; margin-top: .55em; border-radius: 50%; background: var(--go); box-shadow: 0 0 6px var(--go); }
.ticks.out li::before { background: var(--warn); box-shadow: 0 0 6px var(--warn); }
/* A list inside a section's text reads at the same size as the paragraphs around it. */
.intro .ticks { gap: 10px; }
.intro .ticks li { font-size: 1.12rem; }

/* Feature thumbnails */
.feats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.feat { margin: 0; display: grid; gap: 8px; align-content: start; }
.feat .pic { aspect-ratio: 4 / 3; border-radius: 8px; overflow: hidden; border: 1px solid #2a2c30; background: #000; }
.feat img, .feat video { width: 100%; height: 100%; object-fit: cover; }
.feat .pic.zoom-map img { transform: scale(1.9); transform-origin: 100% 30%; }
.feat .pic.zoom-corner img { transform: scale(2.6); transform-origin: 96% 74%; }
.feat .pic.fit img, .feat .pic.fit video { object-fit: contain; }
.feat figcaption { font-size: .9rem; color: var(--muted); }
.feat figcaption b { display: block; color: var(--cream); font-weight: 600; }
.feat figcaption small { color: var(--warn); font-size: .8rem; }
.extras { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.extras li { font: 400 .58rem/1 var(--label); letter-spacing: .12em; text-transform: uppercase; padding: 10px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); }

/* Check your car */
.setup { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 14px; align-items: start; }
.have { display: grid; gap: 10px; }
.have label { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; align-items: start; padding: 14px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; background: #0f1012; font: 400 1rem/1.4 var(--body); text-transform: none; letter-spacing: 0; color: var(--cream); }
.have label:has(input:checked) { border-color: var(--edge); }
.have input { appearance: none; margin: 2px 0 0; width: 22px; height: 22px; border-radius: 50%; background: var(--lamp-off); box-shadow: inset 0 0 0 1px #3a332e; cursor: pointer; grid-row: span 2; }
.have input:checked { background: var(--go); box-shadow: 0 0 10px var(--go); }
.have input:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; }
.have b { font: 700 1.15rem/1.15 var(--heading); text-transform: uppercase; letter-spacing: .02em; }
.have small { color: var(--muted); font-size: .9rem; line-height: 1.45; }
.have .req { font: 400 .54rem/1 var(--label); letter-spacing: .14em; color: var(--signal); margin-left: 8px; vertical-align: 2px; }
.readout { list-style: none; margin: 0; padding: 0; display: grid; }
.readout li { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 13px 2px; border-bottom: 1px solid var(--line); }
.readout li:last-child { border-bottom: 0; }
.readout .lamp { width: 14px; height: 14px; border-radius: 50%; background: var(--k); box-shadow: 0 0 9px var(--k); }
.readout .f { font-weight: 600; }
.readout .v { font: 400 .56rem/1.3 var(--label); letter-spacing: .14em; text-transform: uppercase; color: var(--k); text-align: right; }
.readout li[data-s="ready"] { --k: var(--go); } .readout li[data-s="need"] { --k: var(--warn); } .readout li[data-s="no"] { --k: var(--signal); }
.steps { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.steps.three { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.steps li { display: grid; gap: 8px; align-content: start; }
.steps li::before { content: ""; height: 6px; border-radius: 3px; background: var(--best); box-shadow: 0 0 8px color-mix(in srgb, var(--best) 60%, transparent); }
.steps b { font: 700 1.2rem/1.1 var(--heading); text-transform: uppercase; }
.steps p { color: var(--muted); font-size: .94rem; }

/* FAQ */
.faq { display: grid; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; font: 700 1.2rem/1.2 var(--heading); text-transform: uppercase; letter-spacing: .02em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--signal); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--muted); padding: 0 0 16px; }

/* Ultima switcher */
.ul-box { --accent: var(--sport); display: grid; gap: 12px; }
.ul-box[data-mode="track"] { --accent: var(--track); }
.ul-box[data-mode="rain"] { --accent: var(--rain); }
.ul-box .glass { border-color: color-mix(in srgb, var(--accent) 45%, #2a2c30); transition: border-color .3s; }
.switch { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 26px; align-items: center; }
.seg { display: inline-flex; border: 1px solid #2c2e33; border-radius: 9px; overflow: hidden; }
.seg span { font: 400 .54rem/1 var(--label); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); align-self: center; padding: 0 12px; }
.seg button { font: 400 .6rem/1 var(--label); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); padding: 11px 14px; background: #121316; border: 0; border-left: 1px solid #2c2e33; cursor: pointer; }
.seg button[aria-pressed="true"] { color: #071017; background: var(--accent); }
.split { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 36px); align-items: start; }
.split.even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
/* "Checked in Display Creator": the two screenshots differ in shape, so both sit in the same framed box. */
#checked .split .glass { aspect-ratio: 5 / 3; display: grid; place-items: center; background: #0b0c0e; }
#checked .split .glass img { width: 100%; height: 100%; object-fit: contain; }
.builds { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 30px); align-items: end; }
.builds .wide { grid-column: 1 / -1; max-width: 1180px; justify-self: center; width: 100%; }
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 30px); align-items: start; }
.split.match { align-items: stretch; }

/* MoTeC C127 housing around a bare 800x480 screen, using Display Creator's own C127 border
   (1016 x 686, screen window 800 x 480 at 108,92), as its simulator shows the display. */
.screen .glass.c127, .gallery a.c127, .c127 { position: relative; aspect-ratio: 1016 / 686; padding: 0; overflow: visible; border: 0; border-radius: 0; background: none; box-shadow: none; }
.c127 > img, .c127 > video, .gallery a.c127 img { position: absolute; left: 10.63%; top: 13.41%; width: 78.74%; height: 69.97%; aspect-ratio: auto; object-fit: cover; background: #000; border-radius: 0; box-shadow: none; }
.c127::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: url("c127-housing.webp") 0 0 / 100% 100% no-repeat; }
/* The same for the C125 (993 x 837, window 800 x 480 at 96,181). */
.gallery a.c125, .c125 { position: relative; aspect-ratio: 993 / 837; padding: 0; overflow: visible; border: 0; border-radius: 0; background: none; box-shadow: none; }
.c125 > img, .gallery a.c125 img { position: absolute; left: 9.67%; top: 21.63%; width: 80.56%; height: 57.35%; aspect-ratio: auto; object-fit: cover; background: #000; border-radius: 0; }
.c125::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: url("c125-housing.webp") 0 0 / 100% 100% no-repeat; }
/* C1212: Display Creator's own border (1495 x 706); the 1280 x 480 screen sits at (107, 81). */
.screen .glass.c1212, .gallery a.c1212, .c1212 { position: relative; aspect-ratio: 1495 / 706; padding: 0; overflow: visible; border: 0; border-radius: 0; background: none; box-shadow: none; }
.c1212 > img, .c1212 > video, .gallery a.c1212 img { position: absolute; left: 7.157%; top: 11.473%; width: 85.619%; height: 67.989%; aspect-ratio: auto; object-fit: cover; background: #000; border-radius: 0; box-shadow: none; }
.c1212::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: url("c1212-housing.webp") 0 0 / 100% 100% no-repeat; }
.gallery a.c127:hover img, .gallery a.c125:hover img, .gallery a.c1212:hover img { transform: none; }
.gallery a.c127:hover::before, .gallery a.c125:hover::before, .gallery a.c1212:hover::before { filter: brightness(1.15); }

/* Portfolio overview: one card per project */
.projects { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 36px); align-items: start; }
/* Every project card is the shape of a C127 housing, so each row of cards stays level: a plain image is shown
   whole on black, and a wider C1212 housing sits centred in a frame of that shape. */
.projects .screen .glass:not(.c127, .c1212) { aspect-ratio: 1016 / 686; background: #000; }
.projects .screen .glass:not(.c127, .c1212) img { width: 100%; height: 100%; object-fit: contain; }
.projects .screen .glass-frame { aspect-ratio: 1016 / 686; display: grid; align-content: center; }
.projects .more { display: block; margin-top: 6px; font: 400 .6rem/1 var(--label); letter-spacing: .18em; text-transform: uppercase; color: var(--signal); }
@media (max-width: 760px) { .projects { grid-template-columns: minmax(0, 1fr); } }

/* Gallery and lightbox */
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-flow: row dense; gap: 12px; margin: 0; padding: 0; list-style: none; }
.gallery li.wide { grid-column: span 2; }
.gallery figure { margin: 0; display: grid; gap: 6px; }
.gallery a { display: block; border-radius: 8px; overflow: hidden; border: 1px solid #2a2c30; background: #000; cursor: zoom-in; }
.gallery a:hover { border-color: var(--edge); }
.gallery img { width: 100%; aspect-ratio: 5 / 3; object-fit: cover; transition: transform .3s; }
.gallery li.wide img { aspect-ratio: 10 / 3.75; }
/* Where a gallery has C127s, plain stills take the housing's shape, so the stills and captions in each row line up. */
.gallery:has(a.c127) a:not(.c127, .c125, .c1212) { aspect-ratio: 1016 / 686; }
.gallery:has(a.c127) a:not(.c127, .c125, .c1212) img { height: 100%; aspect-ratio: auto; }
/* Likewise a plain wide still beside C1212 tiles. */
.gallery:has(a.c1212) li.wide a:not(.c127, .c125, .c1212) { aspect-ratio: 1495 / 706; }
.gallery:has(a.c1212) li.wide a:not(.c127, .c125, .c1212) img { height: 100%; aspect-ratio: auto; }
.gallery a:hover img { transform: scale(1.02); }
.gallery figcaption { font-size: .85rem; color: var(--muted); }
.gallery figcaption b { color: var(--cream); font-weight: 600; }
.filters { display: flex; flex-wrap: wrap; gap: 6px; }
.filters button { font: 400 .58rem/1 var(--label); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding: 10px 12px; border-radius: 999px; background: none; border: 1px solid var(--line); cursor: pointer; }
.filters button[aria-pressed="true"] { color: var(--cream); border-color: var(--signal); }
dialog.lightbox { border: 0; padding: 0; background: transparent; max-width: min(1400px, 94vw); width: 100%; color: var(--cream); }
dialog.lightbox::backdrop { background: rgba(3,3,4,.88); }
dialog.lightbox img { width: 100%; height: auto; border-radius: 10px; border: 1px solid #2a2c30; background: #000; }
.gallery.spinners img { aspect-ratio: 16 / 10; }
.gallery a[data-spin] { position: relative; }
.gallery a[data-spin]::after { content: "360°  drag to spin"; position: absolute; left: 8px; bottom: 8px; font: 400 .5rem/1 var(--label); letter-spacing: .14em; text-transform: uppercase; color: var(--cream); background: rgba(10,11,13,.78); border: 1px solid #33353a; border-radius: 6px; padding: 6px 8px; pointer-events: none; }
.spin-view { position: absolute; inset: 0; background-repeat: no-repeat; background-size: 600% 600%; cursor: grab; touch-action: pan-y; }
.spin-view.dragging, .lb-spin.dragging { cursor: grabbing; }
.lb-spin { width: min(100%, calc(82vh * 1.6)); margin-inline: auto; aspect-ratio: 16 / 10; border-radius: 10px; border: 1px solid #2a2c30; background-color: #000; background-repeat: no-repeat; background-size: 600% 600%; cursor: grab; touch-action: pan-y; }
dialog.lightbox p { margin-top: 10px; color: var(--muted); font-size: .95rem; }
dialog.lightbox button { position: absolute; top: 10px; right: 10px; font: 400 .6rem/1 var(--label); letter-spacing: .16em; text-transform: uppercase; color: var(--cream); background: rgba(12,13,15,.85); border: 1px solid #33353a; border-radius: 8px; padding: 10px 12px; cursor: pointer; }

/* About */
.about { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; gap: clamp(28px, 4.5vw, 64px); }
.about .text { display: grid; gap: 16px; }
.about .text p { color: var(--muted); max-width: 62ch; }
.about .text p.strong { color: var(--cream); font-size: 1.15rem; }
.portrait { margin: 0; display: grid; gap: 10px; justify-items: center; }
.portrait img { width: 100%; max-width: 440px; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 12px; border: 1px solid #2a2c30; }
.portrait figcaption { color: var(--muted); font-size: .9rem; }
.portrait figcaption b { color: var(--cream); font-weight: 600; }
.garage { margin: 0; padding: 0; list-style: none; display: grid; border-top: 1px solid var(--line); }
.garage li { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 18px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: center; }
.garage img { border-radius: 6px; border: 1px solid #2a2c30; aspect-ratio: 5 / 3; object-fit: cover; width: 100%; }
.garage b { font: 700 1.2rem/1.1 var(--heading); text-transform: uppercase; display: block; }
.garage span { color: var(--muted); font-size: .95rem; }

/* Product spec list */
.spec { display: grid; grid-template-columns: max-content 1fr; gap: 8px 16px; margin: 0; font-size: .97rem; }
.spec dt { font: 400 .58rem/2.1 var(--label); letter-spacing: .16em; color: var(--muted); text-transform: uppercase; }
.spec dd { margin: 0; }
.pgallery { margin: 0; display: grid; gap: 10px; align-content: start; min-width: 0; }
.pg-main { display: block; padding: 0; border: 1px solid #2a2c30; border-radius: 12px; overflow: hidden; background: #000; cursor: zoom-in; aspect-ratio: 4 / 3; }
.pg-main img { width: 100%; height: 100%; object-fit: contain; }
.pg-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 8px; }
.pg-thumbs button { padding: 0; border: 1px solid #2a2c30; border-radius: 8px; overflow: hidden; background: #000; aspect-ratio: 1; cursor: pointer; opacity: .65; }
.pg-thumbs button:hover, .pg-thumbs button[aria-current="true"] { opacity: 1; border-color: var(--signal); }
.pg-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.delivery { display: grid; gap: 8px; }
.delivery select { max-width: 320px; }
.delivery-out { font-size: 1.05rem; color: var(--muted); }
.delivery-out b { color: var(--cream); font-weight: 600; }
.legal { font-size: .9rem; color: var(--muted); border-left: 2px solid var(--warn); padding-left: 12px; }
.code { margin: 0; background: #08090a; border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px; overflow-x: auto; font: 400 .86rem/1.65 var(--mono); color: #cfc8b8; }
.code .k { color: var(--warn); } .code .s { color: var(--go); } .code .c { color: #6f6a62; }
.tools { list-style: none; margin: 0; padding: 0; display: grid; }
.tools li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 14px; padding: 12px 2px; border-bottom: 1px solid var(--line); }
.tools li:last-child { border-bottom: 0; }
.tools b { font-weight: 600; }
.tools small { grid-column: 1 / -1; color: var(--muted); font-size: .9rem; }
.where { font: 400 .54rem/1 var(--label); letter-spacing: .12em; text-transform: uppercase; padding: 6px 7px; border-radius: 4px; border: 1px solid; align-self: start; }
.where.hosted { color: var(--go); } .where.local { color: var(--warn); }

/* Call to action band */
.cta { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; gap: 20px; align-items: center; padding: clamp(22px, 3vw, 34px); border-radius: 14px; background: var(--panel); border: 1px solid var(--edge); }
.cta h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.cta p { color: var(--muted); margin-top: 8px; }

/* Contact form */
.contact { grid-template-columns: minmax(0, 1.4fr) minmax(0, .8fr); align-items: start; gap: clamp(20px, 3vw, 40px); }
form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
label, legend { font: 400 .58rem/1.3 var(--label); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
input, select, textarea { font: inherit; color: var(--cream); background: #0b0c0e; border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; width: 100%; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--signal); outline-offset: 0; border-color: transparent; }
textarea { min-height: 140px; resize: vertical; }
fieldset { border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px 14px; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; min-width: 0; }
fieldset label { display: flex; align-items: center; gap: 8px; text-transform: none; letter-spacing: 0; font: 400 1rem/1.3 var(--body); color: var(--cream); }
fieldset input { width: auto; accent-color: var(--signal); }
.drop { position: relative; display: grid; gap: 6px; place-items: center; text-align: center; padding: 22px 16px; border: 1px dashed #3a3c41; border-radius: 10px; background: #0b0c0e; color: var(--muted); font-size: .95rem; cursor: pointer; }
.drop.over { border-color: var(--signal); color: var(--cream); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop b { color: var(--cream); font-weight: 600; }
.files { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.files li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; font-size: .92rem; }
.files li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.files li small { color: var(--muted); font-variant-numeric: tabular-nums; }
.files li button { background: none; border: 0; color: var(--signal); cursor: pointer; font: 400 .56rem/1 var(--label); letter-spacing: .12em; text-transform: uppercase; }
.files li.bad { border-color: var(--warn); color: var(--warn); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.cf-turnstile { min-height: 65px; }
button[disabled] { opacity: .6; cursor: progress; }
.formnote { grid-column: 1 / -1; font-size: .92rem; color: var(--muted); }
.formnote a { color: var(--cream); }
.sent { grid-column: 1 / -1; padding: 14px 16px; border-radius: 8px; border: 1px solid var(--go); color: var(--go); }
.sent.error { border-color: var(--warn); color: var(--warn); }

/* Footer */
.foot { position: relative; max-width: 1180px; margin-inline: auto; padding-top: 30px; display: grid; gap: 14px; color: var(--muted); font-size: .86rem; justify-items: center; text-align: center; }
.foot::before { content: ""; position: absolute; top: 0; left: 10%; right: 10%; height: 5px; border-radius: 2px; background: var(--kerb); opacity: .5; }
.foot nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; }
.foot nav a { text-decoration: none; font: 400 .6rem/1.6 var(--label); letter-spacing: .16em; text-transform: uppercase; color: var(--cream); }
.foot nav a:hover { color: var(--signal); }
.foot p { max-width: 95ch; text-wrap: balance; }
.foot .social { display: flex; justify-content: center; gap: 16px; font-size: .78rem; }
.foot .social a { color: var(--muted); text-decoration: none; }
.foot .social a:hover { color: var(--cream); }

/* ---------- Wide screens: heading left, text right ---------- */
@media (min-width: 1100px) {
  .intro { max-width: none; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-auto-flow: row dense; column-gap: clamp(40px, 5vw, 96px); align-items: start; }
  .intro > * { grid-column: 1; }
  .intro > .kicker { grid-column: 1 / -1; }
  .intro > h1, .intro > h2 { grid-row: span 4; align-self: start; }
  .intro > p:not(.kicker), .intro > .btns, .intro > ul, .intro > ol { grid-column: 2; max-width: 60ch; }
  .intro > .project-nav { grid-column: 2; }
}
@media (min-width: 1600px) {
  .page, .foot { max-width: 1480px; }
  .notes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
  .services li { grid-template-columns: minmax(220px, .45fr) minmax(0, 1.55fr); }
  .gallery { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  /* The combined portfolio gallery has C125, C127 and C1212 housings; four columns keep each type in whole rows. */
  .gallery:has(a.c125):has(a.c127) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  /* A gallery of only wide (C1212) items fills rows of two in four columns; five would leave a gap. */
  .gallery:not(:has(li:not(.wide))) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 2200px) {
  .page, .foot { max-width: 1760px; }
  body { font-size: 1.15rem; }
}
@media (max-width: 1000px) {
  :root { --top: 106px; }
  .status-row { grid-template-columns: 1fr auto; row-gap: 6px; }
  .pagemenu { grid-column: 1 / -1; grid-row: 2; justify-content: safe center; overflow-x: auto; scrollbar-width: none; gap: 6px 20px; padding-bottom: 2px; }
  .pagemenu::-webkit-scrollbar { display: none; }
  .hero, .split, .setup, .about, .contact, .rows li.lead { grid-template-columns: minmax(0, 1fr); }
  .feats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 18px; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  :root { --bz: 5px; --bz-b: 20px; --top: 124px; --bottom: 0px; }
  .bezel { border-radius: 16px; }
  .brand b, .clock span { display: none; }
  .pagemenu { font-size: .62rem; letter-spacing: .1em; flex-wrap: wrap; justify-content: center; overflow: visible; gap: 4px 16px; }
  .notes, .exchange, form, .cta, .split.even, .trio, .builds { grid-template-columns: minmax(0, 1fr); }
  .services li, .rows li { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .rows .thumb { max-width: 360px; }
  .feats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps, .steps.three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* Phones: a wide still drops to one column, but a C1212 tile keeps the full row so it stays readable and level. */
  .gallery li.wide:not(:has(a.c1212)) { grid-column: auto; }
  .gallery li.wide img { aspect-ratio: 5 / 3; }
  .garage li { grid-template-columns: 100px minmax(0, 1fr); }
  /* Phones: a solid header so content never shows through the two-line menu */
  .status { background: linear-gradient(var(--glass) 90%, color-mix(in srgb, var(--glass) 0%, transparent)); }
  /* Phones: less dead space under the menu, and headings, copy and buttons centred */
  main { padding-top: calc(var(--bz) + var(--top) + 6px + env(safe-area-inset-top, 0px)); }
  main > .page:first-of-type { padding-top: 14px; }
  .subtabs { width: 100%; gap: 4px; padding: 5px; }
  .subtabs a { flex: 1 1 auto; min-width: 0; justify-content: center; gap: 5px; padding: 13px 4px; font-size: .64rem; letter-spacing: .05em; }
  .subtabs a::before { width: 13px; height: 13px; }
  .page { padding-block: 32px; gap: 24px; }
  .intro, .hero .copy { text-align: center; justify-items: center; margin-inline: auto; }
  .hero .copy p, .intro p { margin-inline: auto; }
  .btns { justify-content: center; }
  .btns:not(:has(> :nth-child(3))) .btn { justify-content: center; min-width: min(100%, 290px); }
  .rows li { justify-items: center; text-align: center; }
  .rows .thumb { width: 100%; }
  .rows h3 { justify-content: center; }
  /* Feature readout: status label on its own line under the feature name */
  .readout li { grid-template-columns: auto 1fr; row-gap: 4px; }
  .readout .v { grid-column: 2; text-align: left; }
}
@media (prefers-reduced-motion: reduce) { .leds.shift i.on { animation: none; } .gallery a:hover img { transform: none; } }

/* Illustrated guide articles: scoped to the four guide bodies. */
/* One adaptive column: the section rules, headings, text, contents, figures and FAQs all share it, and it
   widens with the screen. Body text grows with it, so lines stay readable (about 85-105 characters). */
.enhanced-guide .page { max-width: clamp(720px, 52vw, 1040px); gap: 24px; padding-block: 40px; }
.enhanced-guide .page + .page::before { height: 4px; left: 0; right: 0; opacity: .5; }
.enhanced-guide .intro { display: block; max-width: none; }
.enhanced-guide .intro > * + * { margin-top: 18px; }
.enhanced-guide h1.title { font-size: clamp(2.5rem,5.3vw,4.7rem); max-width: none; }
.enhanced-guide h2 { font-size: clamp(1.9rem,3.3vw,2.8rem); line-height: 1.05; max-width: none; }
.enhanced-guide .byline { font-size: .94rem; color: #b9b1a2; }
.enhanced-guide .article-body, .enhanced-guide .faq { max-width: none; min-width: 0; }
.enhanced-guide .article-body, .enhanced-guide .intro p, .enhanced-guide .faq p { font-size: clamp(1.075rem, 0.78rem + 0.55vw, 1.5rem); }
.enhanced-guide .article-body > p, .enhanced-guide .article-body > ol, .enhanced-guide .article-body > ul, .enhanced-guide .intro p { max-width: none; }
.enhanced-guide .article-body p, .enhanced-guide .article-body ol, .enhanced-guide .article-body ul { margin: 0 0 1.1rem; }
.enhanced-guide .article-body li { padding-left: .25rem; margin-bottom: .7rem; }
.enhanced-guide .article-body a, .enhanced-guide .intro a { color: #f5dbb4; text-underline-offset: 3px; }
.enhanced-guide .guide-toc { border-left: 3px solid var(--signal); padding: 4px 0 4px 22px; max-width: none; }
.enhanced-guide .guide-toc p { font-weight: 600; margin-bottom: 8px; }
.enhanced-guide .guide-toc ol { padding-left: 20px; margin: 0; columns: 2; column-gap: 32px; }
.enhanced-guide .guide-toc li { break-inside: avoid; margin: 0 0 8px; line-height: 1.4; }
.enhanced-guide .guide-toc a { color: #c9c1b2; text-underline-offset: 3px; }
.enhanced-guide figure { margin: 30px 0; width: 100%; }
.enhanced-guide figure img { width: auto; max-width: 100%; height: auto; border: 1px solid #37393c; border-radius: 6px; margin-inline: auto; }
.enhanced-guide figcaption { font-size: .94rem; line-height: 1.5; color: #b9b1a2; max-width: none; margin: 12px 0 0; }
.enhanced-guide .image-link { display: block; max-width: 100%; width: fit-content; margin-inline: auto; }
.enhanced-guide .table-scroll { max-width: 100%; overflow-x: auto; margin: 24px 0; border: 1px solid #353739; border-radius: 8px; }
.enhanced-guide table { border-collapse: collapse; width: 100%; min-width: 540px; font-size: 1rem; text-align: left; }
.enhanced-guide caption { font-weight: 600; text-align: left; padding: 14px 18px; background: #191b1e; }
.enhanced-guide th, .enhanced-guide td { padding: 14px 18px; border-top: 1px solid #353739; vertical-align: top; }
.enhanced-guide thead th { color: #f2e5c9; background: #121417; }
.enhanced-guide tbody th { font-weight: 600; min-width: 100px; }
.enhanced-guide .source-list { margin: 0; padding-left: 20px; }
.enhanced-guide .source-list li { margin-bottom: 12px; }
.enhanced-guide .guide-cta { padding: 24px; border-left: 4px solid var(--signal); background: #191714; }
.enhanced-guide .guide-cta h2 { margin-bottom: 16px; }
.enhanced-guide .guide-cta p { margin-bottom: 18px; }
.enhanced-guide .guide-cta .button { display: inline-block; padding: 10px 18px; background: var(--signal); color: #fff; font-weight: 600; border-radius: 5px; text-decoration: none; }
@media(max-width:650px) {
  .enhanced-guide .page { padding-block: 28px; }
  .enhanced-guide .guide-toc ol { columns: 1; }
  .enhanced-guide table { min-width: 470px; font-size: .94rem; }
  .enhanced-guide th, .enhanced-guide td { padding: 12px; }
  .enhanced-guide h1.title { font-size: 2.6rem; }
  .enhanced-guide .article-body { font-size: 1.05rem; }
  .enhanced-guide figure { margin: 24px 0; }
}
/* End illustrated guide articles. */

/* Track map library: a search box, then continents, countries and circuits */
.track-search { display: grid; gap: 8px; max-width: 640px; margin: 8px 0 28px; }
.track-search label { font: 400 .75rem/1 var(--label); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.track-search input { font: 500 1.1rem var(--body); padding: 14px 16px; background: var(--panel); color: var(--cream); border: 1px solid var(--line); border-radius: 8px; }
.track-search input:focus { outline: 2px solid var(--signal); outline-offset: 2px; }
.track-count { color: var(--muted); font-size: .95rem; }
.track-continent { margin-top: 32px; }
.track-continent h2 { font-size: clamp(1.6rem, 2.6vw, 2.3rem); margin: 0 0 16px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.track-countries { columns: 3 260px; column-gap: 40px; }
.track-country { break-inside: avoid; margin: 0 0 24px; }
.track-country h3 { font: 700 1.15rem/1.1 var(--heading); text-transform: uppercase; letter-spacing: .02em; margin: 0 0 10px; }
.track-country h3 small { color: var(--muted); font: 400 .75rem var(--label); margin-left: 6px; }
.track-country ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.track-country li { display: grid; gap: 2px; }
.track-country li b { font-weight: 600; }
.track-country li span { color: var(--muted); font-size: .88rem; }
.track-none { margin-top: 16px; }

/* Project buttons, grouped: equal-width buttons in tidy rows under a small label */
.project-nav { display: grid; gap: 18px; width: 100%; }
.project-nav .pn-label { margin: 0 0 8px; max-width: none; font: 400 .62rem/1.5 var(--label); letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.pn-btns { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.pn-btns .btn { justify-content: center; padding-inline: 10px; letter-spacing: .14em; text-align: center; white-space: normal; line-height: 1.35; }
/* Phones: two to a row, longer names wrapping inside their button */
@media (max-width: 760px) {
  .pn-btns { grid-template-columns: 1fr 1fr; gap: 8px; }
  .pn-btns .btn { padding: 12px 8px; letter-spacing: .12em; }
}

/* A plain description under a product name, and the email address on the contact page */
.h-sub { display: block; margin-top: 8px; font: 400 .66rem/1.45 var(--label); letter-spacing: .16em; color: var(--muted); }
.rows h3 a:hover .h-sub { color: var(--cream); }
a.mail { color: var(--cream); text-decoration-color: var(--signal); text-underline-offset: 4px; overflow-wrap: anywhere; }
a.mail:hover { color: var(--signal); }

/* What each display needs: an expandable entry per display, with its parts grouped inside */
.needs-label { margin: 28px 0 10px; font: 400 .66rem/1.4 var(--label); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.needs { display: grid; border-top: 1px solid var(--line); }
.need { border-bottom: 1px solid var(--line); }
.need summary { cursor: pointer; list-style: none; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; padding: 18px 36px 18px 0; position: relative; }
.need summary::-webkit-details-marker { display: none; }
.need summary::after { content: "+"; position: absolute; right: 0; top: 16px; color: var(--signal); font: 700 1.5rem/1 var(--heading); }
.need[open] summary::after { content: "−"; }
.need summary:hover .need-name { color: var(--signal); }
.need-name { font: 700 1.35rem/1.1 var(--heading); text-transform: uppercase; letter-spacing: .02em; }
.need-tag { font: 400 .62rem/1.4 var(--label); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.need-body { display: grid; gap: 20px; padding: 0 0 26px; }
.need-path { color: var(--cream); max-width: 80ch; }
.need-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 22px 36px; }
.need-group h4 { margin: 0 0 10px; font: 400 .64rem/1.4 var(--label); letter-spacing: .18em; text-transform: uppercase; color: var(--signal); }
.need-group ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.need-group li { display: grid; gap: 3px; padding-left: 14px; border-left: 2px solid #2a2c30; }
.need-group li b { font-weight: 600; color: var(--cream); }
.need-group li b em { margin-left: 6px; font: 400 .56rem/1 var(--label); letter-spacing: .14em; text-transform: uppercase; font-style: normal; color: var(--best); vertical-align: 2px; }
.need-group li span { color: var(--muted); font-size: .95rem; }
.need-body .note { max-width: 80ch; }
.need-link a { color: var(--cream); text-decoration-color: var(--signal); text-underline-offset: 4px; }
.need-link a:hover { color: var(--signal); }

/* Cookie notice: a small panel above the bottom of the bezel until it's closed */
.cookie-note { position: fixed; z-index: 55; left: 50%; transform: translateX(-50%); bottom: calc(var(--bz-b) + var(--bottom) + 14px + env(safe-area-inset-bottom, 0px)); width: min(640px, calc(100% - 2 * var(--bz) - 24px)); display: flex; align-items: center; gap: 14px 18px; padding: 14px 16px 14px 20px; background: var(--panel); border: 1px solid #2a2c30; border-radius: 12px; box-shadow: 0 18px 40px rgba(0,0,0,.55); }
.cookie-note[hidden] { display: none; }
.cookie-note p { margin: 0; color: var(--muted); font-size: .95rem; line-height: 1.5; }
.cookie-note b { color: var(--cream); font-weight: 600; }
.cookie-note a { color: var(--cream); text-underline-offset: 3px; text-decoration-color: var(--signal); }
.cookie-note .btn { flex: none; padding: 12px 20px; }
@media (max-width: 520px) { .cookie-note { flex-direction: column; align-items: stretch; text-align: center; } .cookie-note .btn { justify-content: center; } }

/* The card on each project page that links to what the display needs */
.notes .needs-card { border-top-color: var(--signal); }
.notes .needs-card .btn { justify-self: start; margin-top: 8px; }
