

/* ================= Reset ================= */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body, h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd, ul, ol { margin: 0; }
:where(ul[role="list"], ol[role="list"]) { list-style: none; padding: 0; }
img, picture, svg, video, canvas { display: block; max-width: 100%; }
img, video { height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
table { border-collapse: collapse; border-spacing: 0; }
[hidden] { display: none !important; }

/* ================= Base elements ================= */
body {
  min-height: 100vh;
  background-color: var(--tmm-white);
  color: var(--tmm-text);
  font-family: var(--tmm-font);
  font-size: var(--tmm-fs-body);
  line-height: var(--tmm-lh-body);
  font-weight: var(--tmm-fw-body);
  /* Text figures in running text. Inter's "tnum" also swaps the hyphen for a wide tabular one ("sign - in",
     "Write - off"), so tabular figures are not set here: plates, prices, totals and tables of figures opt in
     (.tmm-num, .tmm-plate, .tmm-table .tmm-num here; the family sheets' own price, plate and count classes). */
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
/* Ink only for H1/H2 (black sparingly); H3 and below are the dark-grey text. */
h1, .tmm-h1 { font-size: var(--tmm-fs-h1); line-height: var(--tmm-lh-h1); font-weight: var(--tmm-fw-h1); letter-spacing: var(--tmm-ls-h1); color: var(--tmm-ink); }
h2, .tmm-h2 { font-size: var(--tmm-fs-h2); line-height: var(--tmm-lh-h2); font-weight: var(--tmm-fw-h2); letter-spacing: var(--tmm-ls-h2); color: var(--tmm-ink); }
h3, .tmm-h3 { font-size: var(--tmm-fs-h3); line-height: var(--tmm-lh-h3); font-weight: var(--tmm-fw-h3); color: var(--tmm-text); }
h4, h5, h6 { font-size: var(--tmm-fs-body); line-height: var(--tmm-lh-body); font-weight: 700; color: var(--tmm-text); }
.tmm-display { font-size: var(--tmm-fs-display); line-height: var(--tmm-lh-display); font-weight: var(--tmm-fw-display); letter-spacing: var(--tmm-ls-display); color: var(--tmm-ink); }
@media (max-width: 600px) {
  .tmm-display { font-size: var(--tmm-fs-h1); line-height: var(--tmm-lh-h1); letter-spacing: var(--tmm-ls-h1); }
  h1, .tmm-h1 { font-size: var(--tmm-fs-h2); line-height: var(--tmm-lh-h2); letter-spacing: var(--tmm-ls-h2); }
}
p { max-width: var(--tmm-measure); }
.tmm-body { font-size: var(--tmm-fs-body); line-height: var(--tmm-lh-body); }
.tmm-small, small { font-size: var(--tmm-fs-small); line-height: var(--tmm-lh-small); }
.tmm-muted { color: var(--tmm-muted); }
/* Label role: 12, uppercase, +0.08em. TMM's signature for section labels. */
.tmm-caps { font-size: var(--tmm-fs-label); line-height: var(--tmm-lh-label); font-weight: var(--tmm-fw-label); letter-spacing: var(--tmm-ls-label); text-transform: uppercase; color: var(--tmm-muted); }
/* Status words (PAID, TAXED, ONE THING NEEDED): the label role in the "My" colour. */
.tmm-status { font-size: var(--tmm-fs-label); line-height: var(--tmm-lh-label); font-weight: var(--tmm-fw-label); letter-spacing: var(--tmm-ls-label); text-transform: uppercase; color: var(--tmm-amber-deep); }
.tmm-my { color: var(--tmm-amber-deep); }
.tmm-num { font-feature-settings: var(--tmm-tnum); font-variant-numeric: tabular-nums; }
.tmm-vin { font-family: var(--tmm-font-mono); font-size: var(--tmm-fs-vin); font-weight: var(--tmm-fw-vin); letter-spacing: 0.02em; color: var(--tmm-ink); word-spacing: 0.3em; }
strong, b { font-weight: 700; }

a { color: var(--tmm-ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { text-decoration-color: var(--tmm-amber); text-decoration-thickness: 2px; }

hr, .tmm-hairline { border: 0; border-top: 1px solid var(--tmm-line); margin: var(--tmm-space-4) 0; }

::selection { background-color: var(--tmm-amber-tint); color: var(--tmm-ink); }

:focus-visible { outline: 2px solid var(--tmm-amber-deep); outline-offset: 3px; }
:focus:not(:focus-visible) { outline: none; }

/* ================= Layout ================= */
.tmm-container { width: 100%; max-width: calc(var(--tmm-width) + 2 * var(--tmm-gutter)); margin-inline: auto; padding-inline: var(--tmm-gutter); }
.tmm-container--text { max-width: calc(var(--tmm-measure) + 2 * var(--tmm-gutter)); }
.tmm-section { padding-block: var(--tmm-gap-section); }
.tmm-section--tight { padding-block: var(--tmm-gap-block); }
.tmm-bg-white { background-color: var(--tmm-white); }
.tmm-bg-canvas { background-color: var(--tmm-canvas); }
.tmm-bg-mist { background-color: var(--tmm-mist); }

.tmm-stack { display: flex; flex-direction: column; gap: var(--tmm-space-3); }
.tmm-stack--6 { gap: var(--tmm-space-1); }
.tmm-stack--12 { gap: var(--tmm-space-2); }
.tmm-stack--24 { gap: var(--tmm-space-4); }
.tmm-stack--36 { gap: var(--tmm-space-5); }
.tmm-stack--72 { gap: var(--tmm-space-7); }
.tmm-cluster { display: flex; flex-wrap: wrap; align-items: center; gap: var(--tmm-space-2); }
.tmm-cluster--6 { gap: var(--tmm-space-1); }
.tmm-cluster--18 { gap: var(--tmm-space-3); }
.tmm-cluster--24 { gap: var(--tmm-space-4); }
.tmm-grid { display: grid; gap: var(--tmm-space-4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }

.tmm-visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.tmm-skip-link { position: absolute; left: var(--tmm-space-2); top: -100px; background-color: var(--tmm-white); color: var(--tmm-ink); padding: var(--tmm-space-2) var(--tmm-space-3); border-radius: var(--tmm-r-control); box-shadow: var(--tmm-shadow); z-index: 100; }
.tmm-skip-link:focus { top: var(--tmm-space-2); }

/* ================= Icons (Lucide, inline SVG; no icon font) ================= */
.tmm-icon { width: var(--tmm-icon); height: var(--tmm-icon); flex: none; display: inline-block; vertical-align: middle; color: var(--tmm-ink); fill: none; stroke: currentColor; stroke-width: var(--tmm-icon-stroke); stroke-linecap: round; stroke-linejoin: round; }
.tmm-icon--16 { width: 16px; height: 16px; }
.tmm-icon--24 { width: 24px; height: 24px; }

/* ================= Buttons ================= */
/* Primary: amber, ink text, 48px, r12, 700, sentence case, verb first. One per view. No border, no shadow. */
.tmm-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--tmm-space-1);
  min-height: var(--tmm-control-h); padding: 0 var(--tmm-space-4);
  background-color: var(--tmm-amber); color: var(--tmm-ink);
  border: 0; border-radius: var(--tmm-r-control); box-shadow: none;
  font-family: var(--tmm-font); font-size: var(--tmm-fs-body); font-weight: 700; line-height: 1.2;
  text-decoration: none; text-align: center; cursor: pointer;
  transition: transform var(--tmm-motion);
}

.tmm-btn:hover { text-decoration: none; color: var(--tmm-ink); box-shadow: inset 0 0 0 2px var(--tmm-ink); }
.tmm-btn:active { transform: translateY(1px); }
.tmm-btn--wide { width: 100%; }
.tmm-btn:disabled, .tmm-btn[aria-disabled="true"] { background-color: var(--tmm-mist); color: var(--tmm-muted); cursor: not-allowed; text-decoration: none; transform: none; box-shadow: none; }
/* Secondary: an ink text link, underlined with a 2px offset. There are no outlined "ghost" buttons. */
.tmm-link-btn {
  display: inline-flex; align-items: center; gap: var(--tmm-space-1); min-height: var(--tmm-control-h);
  padding: 0; background: none; border: 0;
  color: var(--tmm-ink); font-family: var(--tmm-font); font-size: var(--tmm-fs-body); font-weight: 600;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; cursor: pointer;
}
.tmm-link-btn:hover { text-decoration-color: var(--tmm-amber); text-decoration-thickness: 2px; }
/* On graphite: a cream (canvas) text link. */
.tmm-link-btn--on-dark, .tmm-panel--graphite a { color: var(--tmm-canvas); }
.tmm-panel--graphite :focus-visible { outline-color: var(--tmm-amber); }

/* ================= Form fields ================= */
/* Filled field: quiet mist fill, no outline border, r12, 48px. Focus: 2px ink inset ring and a white fill. */
.tmm-field { display: flex; flex-direction: column; gap: var(--tmm-space-1); margin-bottom: var(--tmm-space-3); max-width: 100%; }
.tmm-label { display: block; font-size: var(--tmm-fs-small); line-height: var(--tmm-lh-small); font-weight: 600; color: var(--tmm-text); }
.tmm-input {
  display: block; width: 100%; min-height: var(--tmm-control-h); padding: 0 var(--tmm-space-2);
  background-color: var(--tmm-mist); color: var(--tmm-text);
  border: 0; border-radius: var(--tmm-r-control); box-shadow: none; outline: none;
  font-family: var(--tmm-font); font-size: var(--tmm-fs-body); line-height: 1.4;
  -webkit-appearance: none; appearance: none;
  transition: background-color var(--tmm-motion);
}
textarea.tmm-input { min-height: calc(var(--tmm-control-h) * 2.5); padding: var(--tmm-space-2); resize: vertical; }
select.tmm-input { padding-right: var(--tmm-space-6); background-image: linear-gradient(45deg, transparent 50%, var(--tmm-ink) 50%), linear-gradient(135deg, var(--tmm-ink) 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
.tmm-input::placeholder { color: var(--tmm-muted); opacity: 1; }
.tmm-input:focus, .tmm-input:focus-visible { background-color: var(--tmm-white); box-shadow: inset 0 0 0 2px var(--tmm-ink); outline: none; }
.tmm-input[aria-invalid="true"] { box-shadow: inset 0 0 0 2px var(--tmm-amber-deep); }
.tmm-input:disabled { color: var(--tmm-muted); cursor: not-allowed; }
.tmm-hint { font-size: 13px; line-height: var(--tmm-lh-small); color: var(--tmm-muted); }
/* Errors: the "My" colour with a warning glyph, one line under the field. Say what happened, then what to do. */
.tmm-error { font-size: var(--tmm-fs-small); line-height: var(--tmm-lh-small); font-weight: 600; color: var(--tmm-amber-deep); }
.tmm-error::before { content: "\26A0\FE0E\00A0"; }
.tmm-check { display: flex; align-items: flex-start; gap: var(--tmm-space-2); font-size: var(--tmm-fs-body); color: var(--tmm-text); }
.tmm-check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--tmm-ink); flex: none; }

/* ================= Stacked facts ================= */
/* Label (12, uppercase) above the value (16/600), hairlines between pairs. Never two-column rows. */
.tmm-facts { margin: 0; }
.tmm-facts > div { padding: var(--tmm-space-2) 0; }
.tmm-facts > div + div { border-top: 1px solid var(--tmm-line); }
.tmm-facts dt { font-size: var(--tmm-fs-label); line-height: var(--tmm-lh-label); font-weight: var(--tmm-fw-label); letter-spacing: var(--tmm-ls-label); text-transform: uppercase; color: var(--tmm-muted); }
.tmm-facts dd { margin: var(--tmm-space-1) 0 0; font-size: var(--tmm-fs-body); font-weight: 600; color: var(--tmm-text); }
.tmm-facts--on-graphite > div + div { border-top-color: rgba(255, 255, 255, .18); }
.tmm-facts--on-graphite dt { color: var(--tmm-mist); }
.tmm-facts--on-graphite dd { color: var(--tmm-white); }

/* ================= Tables ================= */
/* No header fill, caps column labels, hairline rows, numbers right-aligned. No zebra, no bordered cells. */
.tmm-table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tmm-table { width: 100%; border-collapse: collapse; font-size: var(--tmm-fs-small); line-height: var(--tmm-lh-small); color: var(--tmm-text); }
.tmm-table th { padding: var(--tmm-space-2) var(--tmm-space-3) var(--tmm-space-2) 0; background: none; text-align: left; vertical-align: bottom; font-size: var(--tmm-fs-label); line-height: var(--tmm-lh-label); font-weight: var(--tmm-fw-label); letter-spacing: var(--tmm-ls-label); text-transform: uppercase; color: var(--tmm-muted); border-bottom: 1px solid var(--tmm-line); }
.tmm-table td { padding: var(--tmm-space-2) var(--tmm-space-3) var(--tmm-space-2) 0; vertical-align: top; border-bottom: 1px solid var(--tmm-line); }
.tmm-table th:last-child, .tmm-table td:last-child { padding-right: 0; }
.tmm-table .tmm-num, .tmm-table th.tmm-num { text-align: right; font-feature-settings: var(--tmm-tnum); font-variant-numeric: tabular-nums; }
.tmm-table--hover tbody tr { transition: background-color var(--tmm-motion); }
.tmm-table--hover tbody tr:hover { background-color: var(--tmm-mist); }

/* ================= Status chip ================= */
/* Quiet fill, ink text, a dot for state: ink = done, amber = needs action, amber-deep = problem. No green chips. */
.tmm-chip { display: inline-flex; align-items: center; gap: var(--tmm-space-1); padding: var(--tmm-space-1) var(--tmm-space-2); background-color: var(--tmm-mist); color: var(--tmm-ink); border-radius: var(--tmm-r-chip); font-size: var(--tmm-fs-label); line-height: 1; font-weight: 700; white-space: nowrap; }
.tmm-chip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background-color: var(--tmm-ink); flex: none; }
.tmm-chip--done::before, .tmm-chip--ok::before { background-color: var(--tmm-ink); }
.tmm-chip--action::before, .tmm-chip--warn::before { background-color: var(--tmm-amber); }
.tmm-chip--problem::before, .tmm-chip--error::before { background-color: var(--tmm-amber-deep); }
.tmm-chip--info::before { background-color: var(--tmm-muted); }

/* ================= Plate ================= */
.tmm-plate { display: inline-block; padding: 2px var(--tmm-space-1); background-color: var(--tmm-plate); color: var(--tmm-plate-ink); border-radius: var(--tmm-r-plate-s); font-family: var(--tmm-font); font-size: var(--tmm-fs-plate-s); line-height: 1.15; font-weight: var(--tmm-fw-plate); letter-spacing: var(--tmm-ls-plate); text-transform: uppercase; white-space: nowrap; font-feature-settings: var(--tmm-tnum); text-align: center; }
.tmm-plate--lg { padding: var(--tmm-space-1) var(--tmm-space-2); border-radius: var(--tmm-r-plate-l); font-size: var(--tmm-fs-plate-l); }

/* ================= Surfaces ================= */
/* No outlined cards: separation comes from tints. Hairlines only top or bottom. */
.tmm-card { background-color: var(--tmm-white); color: var(--tmm-text); border-radius: var(--tmm-r-card); padding: var(--tmm-pad-card); border: 0; box-shadow: none; }
.tmm-card--canvas { background-color: var(--tmm-canvas); }
.tmm-card--mist { background-color: var(--tmm-mist); }
.tmm-panel { background-color: var(--tmm-canvas); color: var(--tmm-text); border-radius: var(--tmm-r-panel); padding: var(--tmm-space-5) var(--tmm-space-4); border: 0; box-shadow: none; }
.tmm-panel--white { background-color: var(--tmm-white); }
.tmm-panel--mist { background-color: var(--tmm-mist); }
/* Graphite: small secondary panels only (footer strip, one compact card up to 360px tall). Never a hero or a page background. */
.tmm-panel--graphite { background-color: var(--tmm-graphite); color: var(--tmm-white); max-height: 360px; overflow: auto; padding: var(--tmm-space-3); border-radius: var(--tmm-r-card); }
.tmm-panel--graphite h1, .tmm-panel--graphite h2, .tmm-panel--graphite h3 { color: var(--tmm-white); }
.tmm-band { background-color: var(--tmm-graphite); color: var(--tmm-white); max-height: 56px; padding: var(--tmm-space-2) 0; font-size: var(--tmm-fs-label); line-height: 1.4; }
/* The one elevation: overlays and menus only. */
.tmm-overlay { background-color: var(--tmm-white); border-radius: var(--tmm-r-card); padding: var(--tmm-pad-card); box-shadow: var(--tmm-shadow); }
.tmm-fade { transition: opacity var(--tmm-motion); }

/* ================= Notice and alert ================= */
.tmm-notice { display: flex; gap: var(--tmm-space-2); align-items: flex-start; background-color: var(--tmm-amber-tint); color: var(--tmm-text); border-radius: var(--tmm-r-control); padding: var(--tmm-space-2) var(--tmm-space-3); font-size: var(--tmm-fs-small); line-height: var(--tmm-lh-small); }
.tmm-notice__title { display: block; font-weight: 700; color: var(--tmm-ink); }
.tmm-notice--quiet { background-color: var(--tmm-mist); }
.tmm-notice--alert .tmm-notice__title { color: var(--tmm-amber-deep); }
.tmm-notice--alert .tmm-notice__title::before { content: "\26A0\FE0E\00A0"; }

/* ================= Empty and error states ================= */
/* One sentence-case headline, one plain line of what to do, one action. No illustrations, no "Oops". */
.tmm-empty { display: flex; flex-direction: column; align-items: flex-start; gap: var(--tmm-space-2); padding: var(--tmm-space-5) var(--tmm-space-4); background-color: var(--tmm-canvas); border-radius: var(--tmm-r-panel); }
.tmm-empty__title { font-size: var(--tmm-fs-h3); line-height: var(--tmm-lh-h3); font-weight: var(--tmm-fw-h3); color: var(--tmm-text); }
.tmm-empty__text { color: var(--tmm-muted); max-width: var(--tmm-measure); }
.tmm-empty > .tmm-btn, .tmm-empty > .tmm-link-btn { margin-top: var(--tmm-space-1); }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }


.reg-plate, .tmm-plate, .plate { width: max-content; max-width: 100%; min-width: 6.6em; flex: none; box-sizing: border-box;
  text-align: center; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* ================= The registration field: one component on every customer page ================= */
.home-reg__plate-wrap { display: flex; align-items: stretch; width: 100%; min-height: 64px; border: 2px solid var(--tmm-ink); border-radius: var(--tmm-r-plate-l); background-color: var(--tmm-white); overflow: hidden; }
.home-reg__gb { display: flex; align-items: center; justify-content: center; flex: none; width: var(--tmm-plate-band-w); background-color: var(--tmm-plate-band); color: var(--tmm-white); font-weight: var(--tmm-fw-plate); font-size: var(--tmm-fs-small); letter-spacing: var(--tmm-ls-plate); }
.home-reg__plate-wrap > .home-reg__plate {
  display: block; flex: 1; width: 100%; min-width: 0; min-height: 0; margin: 0;
  padding: var(--tmm-space-2) calc(var(--tmm-space-2) + var(--tmm-plate-band-w)) var(--tmm-space-2) var(--tmm-space-2);
  background-color: var(--tmm-white); color: var(--tmm-ink); border: 0; border-radius: 0; box-shadow: none; outline: none;
  font-family: var(--tmm-font); font-size: var(--tmm-fs-plate-l); line-height: 1.15; font-weight: var(--tmm-fw-plate);
  letter-spacing: var(--tmm-ls-plate); text-indent: var(--tmm-ls-plate); text-transform: uppercase; text-align: center;
  font-feature-settings: var(--tmm-tnum); -webkit-appearance: none; appearance: none;
}
.home-reg__plate-wrap > .home-reg__plate::placeholder { color: var(--tmm-plate-ph); opacity: 1; text-align: center; font-size: var(--tmm-fs-h3); letter-spacing: 0; }
.home-reg__plate-wrap > .home-reg__plate:placeholder-shown { text-indent: 0; }
.home-reg__plate-wrap:focus-within { outline: none; border-color: var(--tmm-amber-deep); box-shadow: 0 0 0 4px color-mix(in srgb, var(--tmm-amber) 28%, transparent); }
/* The field sizes to its own box, so the words and a typed plate always fit. From 521px of box the skin's own sizes apply.
   Up to 380px the band narrows and the text centres in the white part instead of the whole box. */
.home-reg__plate-wrap { container-type: inline-size; }
@container (max-width: 520px) {
  .home-reg__plate-wrap.home-reg__plate-wrap > .home-reg__plate.home-reg__plate::placeholder { font-size: clamp(11px, 4.3cqi, 19px); letter-spacing: 0; }
  .home-reg__plate-wrap.home-reg__plate-wrap > .home-reg__plate.home-reg__plate { font-size: clamp(18px, 6.6cqi, 30px); }
}
@container (max-width: 380px) {
  .home-reg__plate-wrap.home-reg__plate-wrap > .home-reg__gb.home-reg__gb { width: 38px; font-size: 16px; }
  .home-reg__plate-wrap.home-reg__plate-wrap > .home-reg__plate.home-reg__plate { padding-inline: 10px; text-indent: 0; font-size: clamp(18px, 8.4cqi, 26px); letter-spacing: .02em; }
  .home-reg__plate-wrap.home-reg__plate-wrap > .home-reg__plate.home-reg__plate::placeholder { font-size: clamp(11px, 5.2cqi, 17px); }
}
