/* The customer account, from design/account-prototype.html: the builder's light tokens, after Porsche's site. */
:root {
  --ground: #EEEFF2; --panel: #FFFFFF; --plate-in: #F2F3F5; --well: #E4E6EA;
  --ink: #16181A; --ink-dim: #3C4145; --muted: #5C6166; --line: #E2E5E8; --edge: #848B93;
  --acc: #D32D1F; --acc-ink: #B8261A; --focus: #1D5FA8; --done: #2E7D4F;
  --bar: #262626; --btn: #262626; --btn-ink: #F45A48;
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px;
  --body: "IBM Plex Sans", system-ui, "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --label: "Wylfa Microgramma", var(--body);
  --lift: 0 1px 2px rgba(16, 24, 32, 0.04), 0 10px 30px -12px rgba(16, 24, 32, 0.10);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #0C0F12; --panel: #161B20; --plate-in: #1C2228; --well: #232A31;
    --ink: #E6EAEE; --ink-dim: #B7C1CB; --muted: #94A1AD; --line: #2C343D; --edge: #67737F;
    --acc: #F45A48; --acc-ink: #F45A48; --focus: #7FC4FF; --done: #5FBF86;
    --btn: #1C2229; --lift: 0 0 0 1px rgba(255, 255, 255, 0.04), 0 10px 30px -12px rgba(0, 0, 0, 0.6);
    color-scheme: dark;
  }
}
@font-face { font-family: "Wylfa Microgramma"; src: url("/wp-content/uploads/useanyfont/1352Microgramma.woff2") format("woff2"); font-display: swap; }

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body { background: radial-gradient(1200px 420px at 50% -120px, color-mix(in srgb, var(--panel) 85%, transparent), transparent 70%), var(--ground);
  color: var(--ink); font: 400 16px/24px var(--body); min-height: 100vh; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
p, li, dd { text-wrap: pretty; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.label { font: 600 12px/16px var(--label); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.ico { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* The site's dark bar. */
.site-bar { background: var(--bar); }
.site-bar-in { max-width: 1120px; margin: 0 auto; padding: var(--s4); display: flex; align-items: center; justify-content: space-between; gap: var(--s4); min-height: 72px; }
.logo { display: flex; align-items: center; min-height: 44px; line-height: 0; }
.logo img { height: 39px; width: auto; display: block; }
.site-nav { display: flex; align-items: center; gap: var(--s5); font: 600 14px/20px var(--label); }
.site-nav a { color: #fff; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; }
.site-nav a:hover { text-decoration: underline; text-underline-offset: 3px; }
.site-nav .nav-x { opacity: 0.9; }
.site-nav .nav-out { color: #F45A48; }
.nav-acct .ico { width: 18px; height: 18px; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 var(--s5);
  background: var(--btn); color: var(--btn-ink); border: 1px solid var(--btn); border-radius: 4px;
  font: 600 15px/20px var(--label); letter-spacing: 0.02em; cursor: pointer; text-decoration: none; text-align: center; }
.btn:hover { filter: brightness(1.15); }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; filter: none; }
.btn.outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn.wide { width: 100%; }
.btn.solid-black, .btn.grey { min-height: 52px; border-radius: 8px; font: 500 15px/20px var(--body); letter-spacing: 0;
  transition: background-color 0.25s cubic-bezier(0.25, 0.1, 0.25, 1); }
.btn.solid-black { background: #0E0E0E; border-color: #0E0E0E; color: #fff; }
.btn.solid-black:hover { filter: none; background: #2A2A2A; }
.btn.grey { background: var(--plate-in); border-color: var(--plate-in); color: var(--ink); }
.btn.grey:hover { filter: none; background: var(--well); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .btn.solid-black { background: #F4F5F6; border-color: #F4F5F6; color: #0E0E0E; }
  :root:not([data-theme="light"]) .btn.solid-black:hover { background: #FFFFFF; }
}
.linkish { background: none; border: 0; padding: var(--s2) 0; color: var(--acc-ink); text-decoration: underline; text-underline-offset: 3px;
  cursor: pointer; min-height: 44px; display: inline-flex; align-items: center; }
.linkish.center { display: flex; justify-content: center; width: fit-content; margin: var(--s3) auto 0; }

.field { display: grid; gap: 6px; margin-bottom: var(--s4); }
.field label { font-weight: 500; font-size: 15px; }
.field small { color: var(--muted); font-size: 14px; line-height: 20px; }
.field small.bad { color: var(--acc-ink); }
.field input { min-height: 48px; padding: 0 var(--s3); border: 1px solid var(--edge); border-radius: 4px; background: var(--panel); width: 100%; }
.pw { position: relative; display: block; }
.pw input { padding-right: 72px; }
.pw button { position: absolute; right: 2px; top: 2px; min-height: 44px; min-width: 56px; padding: 0 var(--s3); background: none; border: 0; color: var(--acc-ink); cursor: pointer; font-size: 14px; }
.check { display: flex; gap: var(--s2); align-items: center; margin-bottom: var(--s5); min-height: 44px; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--ink); margin: 0; }
.muted { color: var(--ink-dim); margin-bottom: var(--s4); }

/* Sign in and the password screens. */
.narrow { max-width: 440px; margin: 0 auto; padding: var(--s6) var(--s4) 64px; }
.narrow h1 { font-size: 36px; line-height: 42px; font-weight: 300; letter-spacing: -0.01em; margin-bottom: var(--s2); }
.narrow > p { color: var(--ink-dim); margin-bottom: var(--s5); }
.card { background: var(--panel); border-radius: 16px; box-shadow: var(--lift); }
.narrow .card { padding: 28px; }
.aside { margin-top: var(--s5); padding: var(--s4); background: var(--plate-in); border-radius: 6px; color: var(--ink-dim); font-size: 15px; }
.aside b { color: var(--ink); font-weight: 600; }
.alert, .notice { display: grid; grid-template-columns: 20px 1fr; gap: var(--s3); border-radius: 12px; padding: var(--s4); font-size: 15px; line-height: 22px; margin-bottom: var(--s5); }
.alert { background: color-mix(in srgb, var(--acc) 7%, var(--panel)); }
.alert .ico { color: var(--acc-ink); margin-top: 1px; }
.notice { background: var(--plate-in); }
.notice .ico { color: var(--done); margin-top: 1px; }
.alert b, .notice b { font-weight: 600; }
.mail-ico { width: 56px; height: 56px; border-radius: 50%; background: var(--panel); display: grid; place-items: center; margin-bottom: var(--s4); box-shadow: 0 1px 2px rgba(16, 24, 32, 0.05); }
.mail-ico .ico { width: 26px; height: 26px; color: var(--ink-dim); }

/* The account. */
.acct { max-width: 1120px; margin: 0 auto; padding: var(--s6) var(--s4) 64px; }
.acct-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: var(--s3); margin-bottom: var(--s5); }
.acct-head h1 { font-size: 40px; line-height: 46px; font-weight: 300; letter-spacing: -0.01em; }
.status { color: var(--ink-dim); font-size: 17px; line-height: 26px; margin-top: var(--s1); }
.acct-head .ref { font-size: 13px; color: var(--muted); }
.acct-head .ref span { font-family: var(--mono); background: var(--panel); border-radius: 20px; padding: 4px 10px; margin-left: 6px; color: var(--ink-dim); box-shadow: 0 1px 2px rgba(16, 24, 32, 0.05); }
.tabs { display: flex; border-bottom: 1px solid color-mix(in srgb, var(--edge) 30%, transparent); margin-bottom: var(--s5); }
.tabs a { border-bottom: 3px solid transparent; padding: var(--s3) var(--s5); min-height: 48px; display: inline-flex; align-items: center; justify-content: center;
  font: 600 13px/20px var(--label); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); text-decoration: none; margin-bottom: -1px; }
.tabs a[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--acc); }

.build { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: var(--s5); align-items: start; }
.shot, .spec { background: var(--panel); border-radius: 16px; box-shadow: var(--lift); overflow: hidden; }
.shot img { display: block; width: 100%; height: auto; background: var(--plate-in); }
.shot-foot { display: flex; flex-wrap: wrap; gap: var(--s3); justify-content: space-between; align-items: center; padding: var(--s4); border-top: 1px solid var(--line); }
.shot-foot:first-child { border-top: 0; }
.shot-foot p { color: var(--muted); font-size: 14px; line-height: 20px; flex: 1 1 220px; }
.spec { padding: var(--s5); }
.spec h2 { font-size: 22px; line-height: 28px; font-weight: 600; margin: var(--s1) 0 var(--s4); }
.spec dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: var(--s3) var(--s4); }
.spec dt { color: var(--muted); font-size: 15px; }
.spec dd { margin: 0; font-size: 15px; }
.spec hr { border: 0; border-top: 1px solid var(--line); margin: var(--s4) 0; }
.change { margin-top: var(--s4); padding: var(--s4); background: var(--plate-in); border-radius: 6px; font-size: 15px; color: var(--ink-dim); }
.change b { color: var(--ink); font-weight: 600; }
.change a { color: var(--acc-ink); overflow-wrap: anywhere; }

/* The tracker: the build on the left, the summary on the right. */
.tk { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: var(--s5); align-items: start; }
.card-h { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s3); padding: 28px 28px var(--s3); }
.card-h h3 { font-size: 20px; line-height: 28px; font-weight: 400; }
.card-h small { background: var(--plate-in); border-radius: 20px; padding: 2px 10px; font-size: 13px; color: var(--ink-dim); white-space: nowrap; }
.side { position: sticky; top: var(--s4); display: grid; gap: var(--s5); background: var(--panel); padding: 28px; border-radius: 16px; box-shadow: var(--lift); }
.side-top, .side-acts { display: grid; gap: var(--s4); }
.side h2 { font-size: 28px; line-height: 34px; font-weight: 300; letter-spacing: -0.01em; display: flex; align-items: center; gap: var(--s2); flex-wrap: wrap; }
.side hr { border: 0; border-top: 1px solid color-mix(in srgb, var(--edge) 22%, transparent); margin: 0; }
.pill { display: inline-block; background: var(--plate-in); border-radius: 20px; padding: 2px 10px; font-size: 13px; line-height: 20px; color: var(--ink-dim); font-weight: 500; letter-spacing: 0; }
.big { font-size: 32px; line-height: 38px; font-weight: 300; letter-spacing: -0.015em; margin-top: 2px; }
.k { color: var(--muted); font-size: 13px; line-height: 20px; }
.k.gap { margin-top: var(--s2); }
.now { font-weight: 600; margin: 2px 0 var(--s2); }
.seg-meter { display: grid; grid-auto-flow: column; gap: 3px; }
.seg-meter i { height: 4px; border-radius: 2px; background: var(--well); }
.seg-meter i.done { background: var(--done); }
.seg-meter i.cur { background: var(--acc); }
.working { background-image: repeating-linear-gradient(115deg, transparent 0 10px, rgba(255, 255, 255, 0.16) 10px 20px); background-size: 200% 100%; animation: shift 2.4s linear infinite; }
@keyframes shift { to { background-position: -46px 0; } }

/* The rail: every step on one line. Steps to come are small hollow rings, done steps a small green tick, and the step
   happening now a red disc whose ring slowly breathes out. */
.rail { list-style: none; margin: 0; padding: var(--s1) 28px 28px; }
.rail li { position: relative; display: grid; grid-template-columns: 32px 1fr auto; gap: 2px var(--s4); padding: 15px 0; align-items: center; }
.rail li::before { content: ""; position: absolute; left: 15px; top: 0; bottom: 0; width: 2px; background: var(--well); }
.rail li:first-child::before { top: 50%; }
.rail li:last-child::before { bottom: 50%; }
.rail li.done::before { background: var(--done); }
.rail li.cur::before { background: linear-gradient(var(--done) 0 25%, var(--acc) 25% 50%, var(--well) 50%); }
.rail li.cur:last-child::before { background: linear-gradient(var(--done) 0 25%, var(--acc) 25% 50%, transparent 50%); }
.rail .dot { position: relative; z-index: 1; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); }
.rail .dot::after { content: ""; position: absolute; inset: 9px; border-radius: 50%; border: 2px solid color-mix(in srgb, var(--edge) 55%, transparent); background: var(--panel); }
.rail .todo .dot .ico { display: none; }
.rail .done .dot::after { inset: 5px; border: 0; background: var(--done); }
.rail .done .dot .ico { position: relative; z-index: 1; width: 12px; height: 12px; stroke-width: 2.4; color: #fff; }
.rail b { font-size: 16px; font-weight: 400; color: var(--ink-dim); }
.rail .when { font-size: 14px; color: var(--muted); white-space: nowrap; text-align: right; font-variant-numeric: tabular-nums; }
.rail .done .when { color: var(--done); }
.rail .note { grid-column: 2 / 4; font-size: 15px; line-height: 22px; color: var(--ink-dim); max-width: 52ch; margin-top: 2px; }
.rail li.cur { padding: 22px 0; }
.rail li.cur b { font-size: 19px; font-weight: 600; letter-spacing: -0.005em; color: var(--acc-ink); }
.rail li.cur .when { color: var(--acc-ink); font-weight: 600; }
.rail li.cur .dot { background: var(--acc); color: #fff; transform: scale(1.15);
  box-shadow: 0 6px 16px -4px color-mix(in srgb, var(--acc) 60%, transparent); animation: breathe 2.4s ease-out infinite; }
.rail li.cur .dot::after { display: none; }
.rail li.cur .dot .ico { width: 16px; height: 16px; }
@keyframes breathe {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--acc) 40%, transparent), 0 6px 16px -4px color-mix(in srgb, var(--acc) 60%, transparent); }
  70%, 100% { box-shadow: 0 0 0 12px color-mix(in srgb, var(--acc) 0%, transparent), 0 6px 16px -4px color-mix(in srgb, var(--acc) 60%, transparent); }
}
@media (prefers-reduced-motion: reduce) {
  .working { animation: none; }
  .rail li.cur .dot { animation: none; box-shadow: 0 0 0 5px color-mix(in srgb, var(--acc) 20%, transparent); }
}

/* Saved builds. */
.empty { padding: 28px; max-width: 560px; display: grid; gap: var(--s3); justify-items: start; }
.empty h2 { font-size: 24px; line-height: 30px; font-weight: 300; }
.empty p { color: var(--ink-dim); margin-bottom: var(--s2); }

@media (max-width: 760px) {
  .site-nav { gap: var(--s4); }
  .site-nav .nav-x { display: none; }
  .logo img { height: 32px; }
  .narrow h1 { font-size: 30px; line-height: 36px; }
  .narrow .card { padding: var(--s5); }
  .acct { padding-top: var(--s5); }
  .acct-head h1 { font-size: 32px; line-height: 38px; }
  .tabs a { flex: 1; padding: var(--s3) var(--s2); }
  .build { grid-template-columns: 1fr; }
  .tk { grid-template-columns: minmax(0, 1fr); }
  /* On a phone the summary leads, the tracker follows, and the buttons come after it. */
  .side { display: contents; }
  .side-top { order: -1; background: var(--panel); border-radius: 16px; padding: var(--s5); box-shadow: var(--lift); }
  .side-acts { order: 1; }
  .side-acts > hr { display: none; }
  .rail { padding: 0 var(--s5) var(--s5); }
  .rail li { grid-template-columns: 32px 1fr; padding: 12px 0; }
  .rail .when { grid-column: 2; text-align: left; justify-self: start; white-space: normal; }
  .rail .note { grid-column: 2; }
  .card-h { padding: var(--s5) var(--s5) var(--s2); flex-direction: column; align-items: flex-start; gap: var(--s2); }
}

/* ---------- The new website look (Cat, 21 Nov 2026) ----------
   Matches wylfahardtops.co.uk, the builder and the order page: a white page, flat square boxes, Switzer for reading,
   Microgramma on headings, tabs and buttons, red for the main button. Light whatever the computer is set to. */
:root, :root:not([data-theme="light"]) {
  color-scheme: light;
  --ground: #FFFFFF; --panel: #FFFFFF; --plate-in: #F3F4F3; --well: #E9EBE9;
  --ink: #1A1A1A; --ink-dim: #3A3E3C; --muted: #515654; --line: #D3D6D4; --edge: #7B807D;
  --acc: #D32D1F; --acc-ink: #C0281B; --focus: #1D5FA8; --done: #2E7D4F;
  --bar: #FFFFFF; --btn: #D32D1F; --btn-ink: #FFFFFF; --lift: none;
  --body: "Switzer", "IBM Plex Sans", system-ui, "Helvetica Neue", Arial, sans-serif;
}
body { background: var(--ground); }
.site-bar { border-bottom: 1px solid var(--line); }
.logo img { height: 32px; }
.site-nav { font: 400 13px/20px var(--label); letter-spacing: 0.02em; }
.site-nav a { color: var(--ink); }
.site-nav .nav-out { color: var(--acc-ink); }
.label { font: 500 13px/20px var(--body); letter-spacing: 0; text-transform: none; }
.narrow h1, .acct-head h1 { font-family: var(--label); font-weight: 400; letter-spacing: 0; }
.tabs { border-bottom-color: var(--line); }
.tabs a { font: 400 13px/20px var(--label); letter-spacing: 0.02em; text-transform: none; }
/* Flat, square boxes with a thin edge. */
.card, .shot, .spec, .side { border-radius: 0; box-shadow: none; border: 1px solid var(--line); }
.btn, .field input, .aside, .alert, .notice, .change, .pill, .card-h small, .acct-head .ref span { border-radius: 2px; }
.acct-head .ref span { box-shadow: none; border: 1px solid var(--line); }
.mail-ico { box-shadow: none; border: 1px solid var(--line); }
/* Buttons as on the site: Microgramma, red for the main one, outlined for the rest. */
.btn, .btn.solid-black, .btn.grey { font: 400 13px/20px var(--label); letter-spacing: 0.02em; border-radius: 2px; }
.btn:hover { filter: none; background: #B9261A; border-color: #B9261A; }
.btn.solid-black, :root:not([data-theme="light"]) .btn.solid-black { background: var(--btn); border-color: var(--btn); color: var(--btn-ink); }
.btn.solid-black:hover, :root:not([data-theme="light"]) .btn.solid-black:hover { background: #B9261A; border-color: #B9261A; }
.btn.outline, .btn.grey { background: var(--panel); color: var(--ink); border-color: var(--edge); }
.btn.outline:hover, .btn.grey:hover { background: var(--plate-in); border-color: var(--ink); }
@media (max-width: 760px) { .side { border: 0; } .side-top { border-radius: 0; box-shadow: none; border: 1px solid var(--line); } }
/* The website's own header and footer (site-chrome.js, from the builder's folder), and the account's links on a slim line under it. */
wylfa-site-header { display: block; position: sticky; top: 0; z-index: 10; }
wylfa-site-footer { display: block; margin-top: 64px; }
.site-bar-in { min-height: 48px; justify-content: flex-end; padding-block: 0; }
/* The narrow pages' titles fit one line, "Forgotten your password?" included, on a laptop and a phone (Cat, 21 Nov 2026). */
.narrow { max-width: 480px; }
.narrow h1 { font-size: 24px; line-height: 32px; }
@media (max-width: 760px) { .narrow h1 { font-size: min(19px, 5.1vw); line-height: 28px; } }
