/* =====================================================================
   Travel By Taxi office and customer pages: "rank" styles (0.8.1)
   LEARN: The look borrows the tile idea of the old Windows Phone start
   LEARN: screen: flat squares of solid colour, big light type, content
   LEARN: instead of decoration. It is our own take: our own colours (from
   LEARN: the taxi world: kerb, loch, rank-light amber, plate yellow), no
   LEARN: Microsoft names, logos or icons.
   LEARN: Typeface: Selawik, Microsoft's open-source font (SIL Open Font
   LEARN: Licence, see fonts/SELAWIK-OFL.txt), served from our own domain.
   LEARN: One variable file covers every weight from 200 (thin) to 700.
   LEARN: Rules: no rounded corners, no drop shadows. Depth comes from a
   LEARN: gentle fade on coloured tiles (lighter top-left, darker
   LEARN: bottom-right), which only ever darkens, so text contrast holds.
   LEARN: Every colour pair meets WCAG 2.2 AA; checked with the WCAG formula.
   ===================================================================== */
@font-face {
  font-family: "Selawik";
  src: url("fonts/selawik-vf.woff2") format("woff2");
  font-weight: 200 700;
  font-display: swap;   /* LEARN: show text straight away in a system font, swap when Selawik arrives */
}
:root {
  --ink: #000;             /* LEARN: true black text, as the tile style uses */
  --muted: #5e6670;        /* LEARN: secondary text: 5.8:1 on white, 5.2:1 on the grey ground */
  --line: #c9cdd2;
  --hairline: #e3e5e8;
  --ground: #f1f2f3;       /* LEARN: the flat grey that panels sit on (cool, not cream) */
  --accent: #00666e;       /* LEARN: "loch": the office colour for links and main buttons (6.7:1 with white) */
  --accent-dark: #00525a;
  --accent-tint: #e1f0f1;
  /* LEARN: One colour per stage of a job, used for tiles, row edges and tags. White text on each is 5.8:1 or better. */
  --st-requested: #7b2d8b; /* plum: a web request waiting for the office */
  --st-new: #a64b00;       /* burnt amber: needs a driver */
  --st-offer: #f2c230;     /* rank-light yellow (black text): offered to drivers */
  --st-allocated: #00666e; /* loch */
  --st-en_route: #2b4fbf;  /* cobalt: driver on the way */
  --st-arrived: #a3215d;   /* fuchsia: driver outside */
  --st-pob: #2e7031;       /* forest: passenger on board */
  --st-done: #56606b;      /* slate */
  --st-bad: #b02a2a;       /* brick: cancelled, no-show, problems */
  --ok: #2e7031; --bad: #b02a2a; --warn: #8a4a00;
  --font: "Selawik", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  /* LEARN: 0.9.0: surfaces named by job, so the dark mode below only has to swap values, never rules. */
  --btn: #00666e; --btn-dark: #00525a; --on-btn: #fff;   /* LEARN: button colour kept apart from link colour, so links can lighten in dark mode while white-on-button stays 6.7:1 */
  --page-bg: #fff; --surface: #fff; --field: #fff; --field-edge: #8b9198; --field-edge-hover: #3d434a; --placeholder: #6b727a;
  --row-hover: #f7f8f9; --tint-arrived: #fbf2f6; --tint-pob: #f1f7f1; --focus: #000; --focus-gap: #fff;
  --late: #b02a2a;
  color-scheme: light;
}
/* =====================================================================
   0.9.0: dark office mode, each person's choice (Light, Dark, or Automatic,
   which follows the device). Office pages only: customer pages stay in
   their brand's light colours.
   LEARN: Dark is deep navy-grey, never pure black (the same rule Domboc
   LEARN: uses: DEC-0250), so panels can sit a shade lighter than the page.
   LEARN: Every pair still meets WCAG 2.2 AA; the stage colours are the same,
   LEARN: because white text on them already passes and they read well on dark.
   ===================================================================== */
:root[data-mode=dark] {
  --ink: #e8eef2; --muted: #a9b6c0; --line: #3a4a56; --hairline: #26343e; --ground: #15232d;
  --accent: #4fb8c1; --accent-dark: #3aa0a9; --accent-tint: #123b40;
  --page-bg: #0e1a22; --surface: #15232d; --field: #0e1a22; --field-edge: #6f808c; --field-edge-hover: #a9b6c0; --placeholder: #8e9ca6;
  --row-hover: #1b2c38; --tint-arrived: #2b1622; --tint-pob: #142a17; --focus: #fff; --focus-gap: #0e1a22;
  --late: #ff9a8f;   /* LEARN: late readouts in dark: 7.6:1 */
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root[data-mode=auto] {
    --ink: #e8eef2; --muted: #a9b6c0; --line: #3a4a56; --hairline: #26343e; --ground: #15232d;
    --accent: #4fb8c1; --accent-dark: #3aa0a9; --accent-tint: #123b40;
    --page-bg: #0e1a22; --surface: #15232d; --field: #0e1a22; --field-edge: #6f808c; --field-edge-hover: #a9b6c0; --placeholder: #8e9ca6;
    --row-hover: #1b2c38; --tint-arrived: #2b1622; --tint-pob: #142a17; --focus: #fff; --focus-gap: #0e1a22;
    --late: #ff9a8f;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
/* LEARN: Office pages run tight: 15px text, small gaps. Customer pages (body.public) set their own, roomier size further down. */
body { margin: 0; font: 400 15px/1.45 var(--font); color: var(--ink); background: var(--page-bg); min-height: 100vh; display: flex; flex-direction: column; }
main { padding: 1rem 1.5rem 2.5rem; max-width: 1680px; margin: 0 auto; width: 100%; flex: 1; }
footer { color: var(--muted); font-size: .8125rem; padding: 1rem 1.5rem; margin-top: 1.5rem; border-top: 1px solid var(--hairline); }
footer a { color: var(--muted); text-decoration: underline; }
footer .sep { display: inline-block; width: 1.5rem; }   /* LEARN: plain space between footer parts instead of dots */

/* LEARN: Headings are light and large: the type does the work a border or box would do elsewhere. */
h1 { font-size: 2.25rem; font-weight: 250; letter-spacing: -.02em; line-height: 1.1; margin: .25rem 0 1rem; display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
h2 { font-size: 1.375rem; font-weight: 300; letter-spacing: -.01em; margin: 1.5rem 0 .5rem; }
h3 { font-size: 1rem; font-weight: 600; margin: 1rem 0 .3rem; }
/* LEARN: Office section headings in lower case, like the tile style's section titles. Done in CSS, so screen readers still read the words normally. */
body:not(.public) main h2, body:not(.public) legend { text-transform: lowercase; }
h2.inline { display: inline; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; color: var(--accent-dark); }
p { margin: .4rem 0; }

/* LEARN: Keyboard focus: a thick black ring with a white gap, visible on any colour, tiles included. */
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; box-shadow: 0 0 0 2px var(--focus-gap); }

.sr-only, .visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------------------------------------------------------------------
   Office header: the office name as a solid tile, then the menu as plain
   lower-case words (the current page in black and heavier, the rest grey).
   --------------------------------------------------------------------- */
header.top { display: flex; justify-content: space-between; align-items: stretch; background: var(--surface); padding: 0 1.5rem 0 0;
             min-height: 52px; flex-wrap: wrap; gap: 0 1rem; border-bottom: 1px solid var(--hairline); position: sticky; top: 0; z-index: 10; }
header.top nav { display: flex; align-items: stretch; flex-wrap: wrap; }
header.top .product { display: flex; align-items: flex-end; min-width: 9.5rem; padding: .45rem .8rem; margin-right: .75rem; font-size: .9375rem; font-weight: 600; line-height: 1.15;
                      color: #fff; background: linear-gradient(135deg, var(--btn) 0%, var(--btn-dark) 100%); }
header.top .product:hover { text-decoration: none; color: #fff; }
header.top nav a:not(.product) { display: flex; align-items: center; color: var(--muted); font-size: 1.0625rem; font-weight: 350; padding: 0 .55rem; text-transform: lowercase; }
header.top nav a:not(.product):hover { color: var(--ink); text-decoration: none; }
header.top nav a[aria-current=page] { color: var(--ink); font-weight: 600; }
header.top form.inline { display: flex; align-items: center; gap: .5rem; }
header.top .who { color: var(--muted); font-size: .875rem; }
header.top button.link { color: var(--accent); font-size: .875rem; }

/* ---- Forms: square boxes with a firm 2px edge ---- */
label { display: block; font-weight: 600; font-size: .8125rem; margin: .6rem 0 .2rem; }
input, select, textarea { font: inherit; font-size: .9375rem; padding: .35rem .55rem; border: 2px solid var(--field-edge); border-radius: 0; width: 100%;
                          background: var(--field); color: var(--ink); min-height: 34px; }
input:hover, select:hover, textarea:hover { border-color: var(--field-edge-hover); }
input:focus, select:focus, textarea:focus { border-color: var(--accent); outline: none; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; }
input[readonly] { background: var(--ground); }
input[type=checkbox], input[type=radio] { width: 18px; height: 18px; min-height: 0; margin: 0 .55rem 0 0; flex: none; accent-color: var(--accent); }
input[type=color] { padding: 0; height: 2.2rem; width: 4rem; }
textarea { resize: vertical; font-family: var(--font); }
::placeholder { color: var(--placeholder); }

/* LEARN: Buttons are flat rectangles. The main one is solid with a faint fade; the others are outlined in black. All at least 32px tall (WCAG asks 24). */
button, .button { font: 600 .875rem/1.2 var(--font); padding: .5rem 1rem; border-radius: 0; border: 2px solid var(--btn); cursor: pointer;
                  background: linear-gradient(135deg, var(--btn) 0%, var(--btn-dark) 100%); color: var(--on-btn); text-decoration: none; display: inline-block; min-height: 34px; }
button:hover, .button:hover { background: var(--btn-dark); border-color: var(--btn-dark); text-decoration: none; color: var(--on-btn); }
button:active, .button:active { transform: scale(.98); }   /* LEARN: a slight press, like tapping a tile */
button.ghost, .button.ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
button.ghost:hover, .button.ghost:hover { background: var(--ink); color: var(--surface); }
button.small, .button.small { padding: .2rem .55rem; font-size: .8125rem; min-height: 28px; }
button.danger { background: var(--bad); border-color: var(--bad); color: #fff; }
button.link { background: none; border: 0; padding: 0; min-height: 0; color: var(--accent); font-weight: 400; }
button.link:hover { text-decoration: underline; background: none; color: var(--accent-dark); }
button:disabled { opacity: .45; cursor: not-allowed; }
form.inline { display: inline; }
.filters { display: flex; gap: .4rem; flex-wrap: wrap; align-items: center; margin-bottom: .75rem; }
.filters input, .filters select { width: auto; }

.row { display: flex; gap: .5rem .75rem; flex-wrap: wrap; align-items: flex-end; }
.row > div { min-width: 9rem; }
.row > div.grow { flex: 1; }
.row > .check { display: flex; align-items: center; min-width: auto; padding-bottom: .45rem; }
.row > .check label { margin: 0; font-weight: 400; }

/* ---- Panels and fieldsets: flat grey ground, no edges, no shadows ---- */
fieldset { border: 0; background: var(--ground); margin: 0 0 .75rem; padding: .5rem 1rem .9rem; min-width: 0; }
legend { font-weight: 300; font-size: 1.25rem; padding: .35rem 0 0; float: left; width: 100%; margin-bottom: .1rem; }
legend + * { clear: both; }
form.booking { max-width: 1100px; }
.panel { background: var(--ground); padding: .6rem 1rem .85rem; margin: .75rem 0; max-width: 1100px; }
.panel h2:first-child { margin-top: .1rem; }
.panel.danger { box-shadow: inset 5px 0 0 var(--bad); }
fieldset fieldset, form fieldset { margin-top: .75rem; }

/* LEARN: Messages are solid bars: green for done, brick for problems, white text (6:1+). Links inside stay readable. */
.flash { padding: .55rem .9rem; margin: .5rem 0; font-size: .9375rem; color: #fff; }
.flash.ok { background: linear-gradient(135deg, var(--ok) 0%, #255a27 100%); }
.flash.err { background: linear-gradient(135deg, var(--bad) 0%, #8e2222 100%); }
.flash a { color: #fff; text-decoration: underline; }
.flash ul { margin: .2rem 0 0; }
.paylink input { max-width: 40rem; display: inline-block; }

/* ---- Tables: tight rows, a coloured edge on the left says the job's stage ---- */
table.board, table.history, table.pricing { width: 100%; border-collapse: collapse; background: var(--surface); }
table.board th, table.board td, table.history th, table.history td, table.pricing th, table.pricing td { text-align: left; vertical-align: top; padding: .35rem .55rem; border-bottom: 1px solid var(--hairline); }
table.board th, table.history th, table.pricing th { font-size: .8125rem; font-weight: 600; color: var(--muted); border-bottom: 2px solid var(--ink); text-transform: lowercase; }
table.board tbody tr:hover, table.pricing tbody tr:hover { background: var(--row-hover); }
table.board td:first-child { box-shadow: inset 5px 0 0 var(--edge, transparent); padding-left: .8rem; }
tr.st-requested { --edge: var(--st-requested); }
tr.st-new { --edge: var(--st-new); }
tr.st-allocated { --edge: var(--st-allocated); }
tr.st-en_route { --edge: var(--st-en_route); }
tr.st-arrived { --edge: var(--st-arrived); background: var(--tint-arrived); }
tr.st-pob { --edge: var(--st-pob); background: var(--tint-pob); }
tr.st-completed { --edge: var(--st-done); }
tr.st-cancelled, tr.st-no_show { --edge: var(--st-bad); color: var(--muted); text-decoration: line-through; }
td.time { font-weight: 600; font-size: 1.0625rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
td.actions { white-space: nowrap; }
td.actions select { width: auto; max-width: 16rem; }
.muted { color: var(--muted); font-size: .875rem; }
.note { color: var(--warn); font-size: .875rem; }
.empty { color: var(--muted); }
tr.inactive { opacity: .6; }
td.expired { color: var(--bad); font-weight: 600; }
td.expiring { color: var(--warn); font-weight: 600; }

/* LEARN: Brand chips and tags are tiny solid tiles. Brand colours come from brand-css.php, which picks black or white text for contrast. */
.chip { display: inline-block; padding: .05rem .45rem; color: #fff; font-size: .75rem; font-weight: 600; background: #444; }
.tag { display: inline-block; padding: .05rem .4rem; font-size: .75rem; font-weight: 600; background: var(--hairline); color: var(--ink); vertical-align: 1px; }
.tag.asap { color: #fff; background: var(--st-bad); }
.tag.wc { color: #fff; background: var(--st-en_route); }
.tag.paid { color: #fff; background: var(--st-pob); }
.tag.web { color: #fff; background: var(--st-requested); }
.tag.offer { color: #000; background: var(--st-offer); }
.tag.warn { color: #fff; background: var(--st-new); }
a.tag:hover { text-decoration: underline; color: #fff; }
.status { display: inline-block; padding: .1rem .5rem; background: var(--hairline); font-size: .8125rem; font-weight: 600; }
.count { display: inline-block; min-width: 1.35em; padding: 0 .35em; margin-left: .25rem; background: var(--st-bad); color: #fff;
         font-size: .75rem; font-weight: 600; line-height: 1.5; text-align: center; vertical-align: 2px; }

section.login { max-width: 26rem; margin: 3.5rem auto; padding: 0; }
section.login h1 { font-size: 2.5rem; }
section.login button { margin-top: 1rem; width: 100%; min-height: 44px; }
details summary { cursor: pointer; margin-top: .75rem; color: var(--accent); }
details summary:hover { text-decoration: underline; }
pre { background: var(--ground); padding: .6rem; overflow: auto; font-size: .8125rem; }
hr { border: 0; border-top: 1px solid var(--hairline); margin: .75rem 0; }

/* ---------------------------------------------------------------------
   The board's live tiles: one tile per stage, with the count large.
   LEARN: These are the one moving part: when the board loads, the tiles
   LEARN: turn in one after another, like cards being dealt. Nothing else
   LEARN: animates. People who ask their device for less motion get none.
   --------------------------------------------------------------------- */
.board-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: .5rem 1rem; }
.board-head h1 { margin-bottom: .5rem; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, 8.25rem); gap: 6px; margin: .25rem 0 1rem; }
.tile { --c: var(--accent); position: relative; display: flex; flex-direction: column; justify-content: space-between; aspect-ratio: 1 / 1; padding: .55rem .7rem;
        color: #fff; text-decoration: none; background: linear-gradient(135deg, var(--c) 0%, color-mix(in srgb, var(--c) 78%, #000) 100%);
        animation: tile-in .45s cubic-bezier(.1, .9, .2, 1) both; transform-origin: left center; }
.tile:hover { text-decoration: none; color: #fff; filter: brightness(1.08); }
.tile.wide { grid-column: span 2; aspect-ratio: auto; }
.tile .n { font-size: 2.75rem; font-weight: 250; line-height: 1; font-variant-numeric: tabular-nums; }
.tile .l { font-size: .875rem; font-weight: 600; line-height: 1.2; }
.tile.zero { background: linear-gradient(135deg, #6b737c 0%, #555c64 100%); }   /* LEARN: nothing at this stage: the tile goes grey (white on it is 4.8:1 or better) */
.tile.t-requested { --c: var(--st-requested); }
.tile.t-new { --c: var(--st-new); }
.tile.t-live { --c: var(--st-en_route); }
.tile.t-partners { --c: var(--st-bad); }
.tile.t-inbox { --c: #1f1f1f; }
.tile.t-online { --c: var(--st-pob); }
.tile.t-done { --c: var(--st-done); }
.tiles .tile:nth-child(2) { animation-delay: .05s; } .tiles .tile:nth-child(3) { animation-delay: .1s; }
.tiles .tile:nth-child(4) { animation-delay: .15s; } .tiles .tile:nth-child(5) { animation-delay: .2s; }
.tiles .tile:nth-child(6) { animation-delay: .25s; } .tiles .tile:nth-child(7) { animation-delay: .3s; }
@keyframes tile-in { from { opacity: 0; transform: perspective(700px) rotateY(-70deg); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .tile { animation: none; } button:active, .button:active { transform: none; } }
/* LEARN: The board reloads itself every 30 seconds with ?quiet=1, and then the tiles just sit still (index.php adds this class). */
.tiles.no-intro .tile { animation: none; }

p.online { margin: 0 0 .6rem; }
p.online .tag { margin-right: .2rem; }
input.copylink { width: 32rem; max-width: 100%; display: inline-block; font-size: .8125rem; }

/* =====================================================================
   Customer pages (book, my booking, account, partner ...)
   LEARN: Roomier than the office: these are used one-handed on phones.
   LEARN: The brand fills the top band with its own colour and a fade, so
   LEARN: Trident and Helensburgh & Lomond each look like themselves.
   ===================================================================== */
body.public { font-size: 17px; line-height: 1.5; }
body.public main { padding: 1.25rem 1.25rem 2.5rem; }
body.public h1 { font-size: 2.75rem; margin: .5rem 0 1rem; }
body.public h2 { font-size: 1.5rem; }
body.public label { font-size: .9375rem; margin: .8rem 0 .3rem; }
body.public input, body.public select, body.public textarea { font-size: 1rem; padding: .55rem .65rem; min-height: 46px; }
body.public fieldset { padding: .6rem 1.1rem 1.1rem; margin-bottom: 1rem; }
body.public legend { font-size: 1.5rem; font-weight: 250; }
body.public .panel { padding: .9rem 1.1rem 1.1rem; }
body.public button, body.public .button { font-size: 1rem; min-height: 46px; border-color: var(--brand, var(--accent)); color: var(--on-brand, #fff);
  background: linear-gradient(135deg, var(--brand, var(--accent)) 0%, color-mix(in srgb, var(--brand, var(--accent)) 82%, #000) 100%); }
body.public button:hover, body.public .button:hover { filter: brightness(.92); }
body.public button.ghost, body.public .button.ghost { background: transparent; color: var(--ink); border-color: var(--ink); filter: none; }
body.public button.ghost:hover, body.public .button.ghost:hover { background: var(--ink); color: #fff; }

/* LEARN: The brand band: the brand's colour fading slightly darker to the right, with the brand name in large light type. */
.brandbar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 1.25rem; min-height: 76px;
            color: var(--on-brand, #fff); background: linear-gradient(110deg, var(--brand, var(--accent)) 0%, var(--brand, var(--accent)) 45%, color-mix(in srgb, var(--brand, var(--accent)) 72%, #000) 100%); }
.brandbar .brandname { font-size: 1.75rem; font-weight: 250; letter-spacing: -.015em; line-height: 1.1; }
/* LEARN: Logos are drawn for white backgrounds, so a logo sits on its own white tile inside the band. */
.brandbar .logo { max-height: 52px; max-width: 60%; background: #fff; padding: .3rem .5rem; }
.brandbar .call { color: var(--on-brand, #fff); font-weight: 600; font-size: 1rem; text-decoration: none; border: 2px solid currentColor; padding: .4rem .8rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.brandbar .call:hover { background: var(--on-brand, #fff); color: var(--brand, var(--accent)); text-decoration: none; }
main.narrow { max-width: 660px; }
button.wide { width: 100%; margin-top: .75rem; padding: .85rem; font-size: 1.125rem; }
body.public button.wide { min-height: 56px; }
.public-form .check, .cancel-form .check { display: flex; align-items: center; margin: .6rem 0; }
.public-form .check label, .cancel-form .check label { margin: 0; font-weight: 400; font-size: 1rem; }
/* LEARN: Payment choices as two tiles side by side; the chosen one takes the brand's edge. Works with the keyboard as normal radio buttons. */
.public-form .check:has(> input[type=radio]) { display: inline-flex; width: calc(50% - .3rem); margin: .4rem 0; padding: .75rem .8rem; background: #fff; border: 2px solid #8b9198; vertical-align: top; }
.public-form .check:has(> input[type=radio]) + .check:has(> input[type=radio]) { margin-left: .5rem; }
.public-form .check:has(> input[type=radio]:checked) { border: 3px solid var(--brand, var(--accent)); padding: calc(.75rem - 1px) calc(.8rem - 1px); }
.public-form .check:has(> input[type=radio]:checked) label { font-weight: 600; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.quote .price, .quote-result .price { font-size: 3.5rem; font-weight: 200; letter-spacing: -.03em; line-height: 1; margin: .25rem 0 .5rem; font-variant-numeric: tabular-nums; }
dl.summary { display: grid; grid-template-columns: max-content 1fr; gap: .3rem 1.25rem; margin: 1rem 0; font-size: .9375rem; }
dl.summary dt { font-weight: 600; color: var(--muted); }
dl.summary dd { margin: 0; }
.panel.car { text-align: center; }
.panel.car .big { font-size: 1.375rem; font-weight: 300; margin: .4rem 0 .25rem; }
/* LEARN: The number plate keeps its real-world look so the passenger recognises the car. */
.panel.car .reg { display: inline-block; background: #f7d117; color: #000; font: 700 1.6rem/1 "Arial Narrow", Arial, sans-serif; letter-spacing: .08em; padding: .3rem .8rem; border-radius: 4px; border: 2px solid #000; }
.small { font-size: .875rem; }
body.public main a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }   /* LEARN: links underlined, so a brand colour is never the only clue */
body.public main a.button { text-decoration: none; }
body.public footer { text-align: center; border-top: 0; background: var(--ground); }

/* LEARN: My booking: the live line is a big tile in the colour of the job's stage. */
.live { --c: var(--st-allocated); }
body.public .panel.live { font-size: 1.25rem; font-weight: 300; color: #fff; padding: 1rem 1.1rem;
        background: linear-gradient(135deg, var(--c) 0%, color-mix(in srgb, var(--c) 78%, #000) 100%); }
.live[data-status=requested] { --c: var(--st-requested); }
.live[data-status=new] { --c: var(--st-new); }
.live[data-status=en_route] { --c: var(--st-en_route); }
.live[data-status=arrived] { --c: var(--st-arrived); }
.live[data-status=pob] { --c: var(--st-pob); }
.live[data-status=completed] { --c: var(--st-done); }
.live[data-status=cancelled], .live[data-status=no_show] { --c: var(--st-bad); }
body.public main .live a { color: #fff; }
.spot.asked { box-shadow: inset 5px 0 0 var(--st-arrived); }
.spot-form button.wide { margin-bottom: .5rem; }
.panel.telegram { box-shadow: inset 5px 0 0 #229ed9; }

/* 0.3.0 / 0.4.0 leftovers, restyled */
ul.rules { margin: .5rem 0 .75rem 1.1rem; padding: 0; }
ul.rules li { margin: .2rem 0; }
fieldset.who-cancelled { border: 0; padding: 0; margin: .5rem 0 0; background: none; }
fieldset.who-cancelled .check { display: flex; align-items: center; }
fieldset.who-cancelled .check label { margin: 0; font-weight: 400; }
.quote-result ul { margin: .25rem 0 .5rem 1.1rem; padding: 0; }
input.short { max-width: 10rem; }
table.pricing input { max-width: 8rem; }

/* ---------------------------------------------------------------------
   0.8.0 message thread, inbox, address finder
   --------------------------------------------------------------------- */
.nowrap { white-space: nowrap; }
.row > form.grow { flex: 1; min-width: 16rem; display: flex; flex-direction: column; gap: .35rem; }
.row > form.grow button { align-self: flex-start; }
table.thread { width: 100%; border-collapse: collapse; margin-bottom: .75rem; background: var(--surface); }
table.thread td, table.thread th { padding: .35rem .5rem; border-bottom: 1px solid var(--hairline); vertical-align: top; text-align: left; }
table.thread th { font-size: .8125rem; color: var(--muted); border-bottom: 2px solid var(--ink); }
/* LEARN: What the customer sent has a loch edge; office notes sit on grey; unread replies are tinted and bold. */
table.thread tr.dir-in td:first-child { box-shadow: inset 4px 0 0 var(--accent); }
table.thread tr.dir-note td { background: var(--ground); }
table.thread tr.unread td { background: var(--accent-tint); font-weight: 600; }
pre.msg { white-space: pre-wrap; font: inherit; margin: .4rem 0 0; }
.msg { overflow-wrap: anywhere; }
.addr-find { display: flex; gap: .4rem; flex-wrap: wrap; align-items: center; margin-top: .3rem; }
.addr-find input { width: 9rem; }
.addr-find select { flex: 1; min-width: 14rem; }

/* ---------------------------------------------------------------------
   0.8.1: booking page in two columns on wide screens (details left,
   messages and history right), so it needs half the scrolling.
   --------------------------------------------------------------------- */
@media (min-width: 1280px) {
  .booking-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 1.25rem; align-items: start; }
  .booking-split > * { min-width: 0; }
  .booking-split .panel, .booking-split form.booking { max-width: none; }
}

/* LEARN: Small screens (the Fold folded, phones): narrower edges; the menu scrolls sideways. */
@media (max-width: 720px) {
  main { padding: .75rem .75rem 2rem; }
  header.top { padding: 0; }
  header.top nav { flex-wrap: nowrap; overflow-x: auto; width: 100%; }
  header.top nav a:not(.product) { padding: .7rem .5rem; white-space: nowrap; }
  header.top form.inline { padding: .3rem .75rem; }
  h1 { font-size: 1.85rem; }
  body.public h1 { font-size: 2.25rem; }
  .tiles { grid-template-columns: repeat(3, 1fr); }
  .tile .n { font-size: 2.1rem; }
  .public-form .check:has(> input[type=radio]) { width: 100%; }
  .public-form .check:has(> input[type=radio]) + .check:has(> input[type=radio]) { margin-left: 0; }
}
table.board td span.muted { white-space: nowrap; }   /* LEARN: phone numbers stay on one line */

/* ---------------------------------------------------------------------
   0.9.0: live readouts, icons in tags and buttons, the display switch
   --------------------------------------------------------------------- */
/* LEARN: "in 18 min" / "12 min late" under pick-up times. Late is in red (and says "late", so colour isn't the only clue). */
.readout { display: inline-block; font-size: .8125rem; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.readout.late { color: var(--late); }
span.status + .readout { margin-left: .6rem; }
.tag .ic, .status .ic, button .ic, .button .ic { margin-right: .3em; }
.tag .ic { width: 1em; height: 1em; vertical-align: -.15em; }
td .ic { margin-right: .3em; }
.tile .ic { position: absolute; right: .6rem; bottom: .6rem; width: 24px; height: 24px; opacity: .85; }
header.top .right { display: flex; align-items: center; gap: .9rem; }
/* LEARN: The office bar carries the real Travel by Taxi wordmark (white, cyan pin dot) on brand black, then the word "office". */
header.top .product { background: #000; gap: .55rem; }
header.top .product .wordmark { height: 40px; width: auto; flex: none; }
header.top .product .office { font-weight: 400; opacity: .9; display: flex; align-items: center; gap: .6rem; }
/* LEARN: Choice E: a slanted cyan bar between the wordmark and "office". */
header.top .product .office::before { content: ""; width: 3px; height: 26px; background: #00e4f0; transform: skewX(-14deg); }
header.top .product { align-items: center; }
/* LEARN: The display switch: three small icon buttons; the chosen one is underlined (and announced as pressed). */
.mode-switch { display: flex; gap: 2px; }
.mode-switch button { color: var(--muted); padding: .25rem; min-height: 28px; min-width: 28px; }
.mode-switch button[aria-pressed=true] { color: var(--ink); box-shadow: inset 0 -2px 0 currentColor; }
.mode-switch .ic { margin: 0; width: 18px; height: 18px; }
.tile .l { padding-right: 28px; }   /* LEARN: room for the tile's icon */
@media (max-width: 1500px) { header.top nav a:not(.product) { font-size: .96rem; padding: 0 .42rem; } }

/* =====================================================================
   0.10.0: brand websites and the information pages.
   LEARN: Reading pages, so a comfortable line length (about 70 characters)
   LEARN: and plain tables. The footer carries the information links and the
   LEARN: company disclosure on every customer page.
   ===================================================================== */
.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: .5rem; top: .5rem; z-index: 10; background: #fff; color: #000; padding: .5rem .75rem; outline: 3px solid #000; }
.brandbar a.home { color: inherit; text-decoration: none; display: inline-flex; align-items: center; }
.brandbar a.home:hover .brandname { text-decoration: underline; text-underline-offset: .2em; }
.site { max-width: 44rem; }
.site h2 { margin-top: 1.75rem; }
.site p, .site li { line-height: 1.55; }
.site ul { padding-left: 1.2rem; }
.site li + li { margin-top: .4rem; }
.site .lede { font-size: 1.25rem; line-height: 1.45; margin-bottom: 1rem; }
.site .actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.25rem 0; }
.site .facts { margin-top: 2rem; }
.site ul.licences { list-style: none; padding: 0; }
.site ul.licences li { border-left: 4px solid var(--brand, var(--accent)); padding: .35rem 0 .35rem .75rem; }
table.plain { width: 100%; border-collapse: collapse; margin: .75rem 0 1rem; font-size: .9375rem; }
table.plain th, table.plain td { text-align: left; vertical-align: top; padding: .45rem .6rem .45rem 0; border-bottom: 1px solid var(--hairline); }
table.plain th { font-weight: 600; border-bottom: 2px solid var(--ink); }
footer.public-foot nav { display: flex; flex-wrap: wrap; gap: .35rem 1.25rem; margin-bottom: .6rem; }
footer.public-foot nav a { color: var(--ink); }
footer.public-foot p { margin: 0; max-width: 60rem; }
@media (max-width: 560px) {
  table.plain thead { display: none; }
  table.plain tr { display: block; border-bottom: 1px solid var(--hairline); padding: .4rem 0; }
  table.plain td { display: block; border: 0; padding: .1rem 0; }
  table.plain td:first-child { font-weight: 600; }
}

/* 0.10.0: go-live check. */
/* LEARN: the level is written in words as well as colour, so it doesn't rely on colour alone. */
table.golive td.lvl { width: 7.5rem; font-weight: 600; white-space: nowrap; }
tr.golive-fail td.lvl { color: #b02a2a; }
tr.golive-warn td.lvl { color: #8a4600; }   /* LEARN: amber dark enough for 5.9:1 on white */
tr.golive-ok td.lvl { color: #2e7031; }
.panel.golive-fail { border-left: 6px solid var(--st-bad); } .panel.golive-warn { border-left: 6px solid #c27400; } .panel.golive-ok { border-left: 6px solid var(--st-pob); }
ul.golive-manual li + li { margin-top: .35rem; }
/* LEARN: lighter versions for dark office mode, so the words keep their contrast on navy. */
:root[data-mode=dark] tr.golive-fail td.lvl { color: #ff8a80; } :root[data-mode=dark] tr.golive-warn td.lvl { color: #ffc069; } :root[data-mode=dark] tr.golive-ok td.lvl { color: #7fd88a; }
@media (prefers-color-scheme: dark) { :root[data-mode=auto] tr.golive-fail td.lvl { color: #ff8a80; } :root[data-mode=auto] tr.golive-warn td.lvl { color: #ffc069; } :root[data-mode=auto] tr.golive-ok td.lvl { color: #7fd88a; } }
