/* quickhelpsupport.com: one stylesheet for the whole site.
   Layout and rhythm after githubstatus.com (1012px container, bordered component boxes,
   2-per-row grid, 4px boxes and 99px pills, soft shadow). Type after gov.uk (19px body,
   48/32px H1, 24/21px H2, bold numbers, underlined links). Colour balance after caniuse.com
   (one saturated band carrying the main tool, translucent white veils on it, an accent used
   sparingly), re-keyed to a calm deep teal. System sans stack in place of GDS Transport.
   Mobile first: every rule below is the 390px design; wider screens add, never undo. */

:root {
  --band: #0f4657;
  --band-deep: #0a3340;
  --veil-1: rgba(255, 255, 255, 0.10);
  --veil-2: rgba(255, 255, 255, 0.22);
  --on-band: #ffffff;
  --on-band-soft: rgba(255, 255, 255, 0.82);
  --ground: #f4f7f8;
  --card: #ffffff;
  --line: #d5dee1;
  --line-soft: #e5ebed;
  --ink: #13232a;
  --muted: #4f6168;
  --link: #0a5d72;
  --link-hover: #063c4a;
  --focus: #f2c14e;
  --ai: #4f3e9e;
  --ai-bg: #ece8f8;
  --human: #15603f;
  --human-bg: #e0f1e8;
  --mixed: #6e4a0e;
  --mixed-bg: #f8edd6;
  --unk: #46555b;
  --unk-bg: #e7edef;
  --radius: 4px;
  --pill: 99px;
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 19px;
  line-height: 25px;
  color: var(--ink);
  background: var(--ground);
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; }
h1 { font-size: 32px; line-height: 35px; font-weight: 700; letter-spacing: -0.01em; }
h2 { font-size: 21px; line-height: 25px; font-weight: 700; }
h3 { font-size: 19px; line-height: 25px; font-weight: 700; }
img, svg { display: block; }
.ico { flex: none; }

a { color: var(--link); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--link-hover); text-decoration-thickness: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 0;
  box-shadow: 0 4px 0 var(--ink);
  text-decoration: none;
}

.wrap { width: 100%; max-width: 1012px; margin: 0 auto; padding: 0 16px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip { position: absolute; left: 8px; top: -60px; z-index: 20; padding: 8px 12px; background: var(--focus); color: var(--ink); font-weight: 700; }
.skip:focus { top: 8px; }

/* ── header: saturated band, stacked on phones (logo row, then links) ── */
.site-head { background: var(--band); color: var(--on-band); border-bottom: 1px solid var(--veil-1); }
.head-bar { display: flex; flex-direction: column; align-items: center; gap: 6px; padding-top: 12px; padding-bottom: 10px; }
.mark { display: inline-flex; align-items: center; gap: 10px; color: var(--on-band); text-decoration: none; font-weight: 700; font-size: 19px; line-height: 28px; }
.mark:hover { color: var(--on-band); text-decoration: none; }
.mark:hover span { text-decoration: underline; text-decoration-thickness: 2px; }
.head-nav { display: flex; gap: 22px; }
.head-nav a { color: var(--on-band-soft); font-size: 16px; line-height: 32px; text-decoration: none; }
.head-nav a:hover, .head-nav a[aria-current="page"] { color: var(--on-band); text-decoration: underline; text-decoration-thickness: 2px; }

/* ── page band: crumbs + H1 + lede (the strongest painted area) ── */
.band { background: var(--band); color: var(--on-band); padding: 20px 0 40px; }
.band a { color: var(--on-band); }
.band a:hover { color: var(--on-band); }
.band h1 { color: var(--on-band); }
.lede { margin-top: 12px; color: var(--on-band-soft); }
.crumbs { margin-bottom: 14px; font-size: 16px; line-height: 20px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 0; }
.crumbs li { color: var(--on-band-soft); }
.crumbs li + li::before { content: "/"; margin: 0 10px; color: var(--veil-2); }
.crumbs a { color: var(--on-band-soft); }
.facts { list-style: none; margin-top: 16px; display: flex; flex-direction: column; gap: 6px; font-size: 16px; line-height: 22px; color: var(--on-band-soft); }
.facts li { display: flex; align-items: flex-start; gap: 8px; }
.facts .ico { margin-top: 2px; opacity: 0.85; }

/* ── home search inside the band ── */
.band-home { padding-bottom: 44px; }
.search { margin-top: 24px; }
.search-label { display: block; font-weight: 700; margin-bottom: 8px; }
.search-row { display: flex; gap: 8px; }
.search-row input {
  flex: 1 1 auto; min-width: 0; height: 48px; padding: 0 14px;
  font: inherit; font-size: 19px; color: var(--on-band);
  background: var(--veil-1); border: 2px solid var(--veil-2); border-radius: var(--radius);
  -webkit-appearance: none; appearance: none;
}
.search-row input::placeholder { color: rgba(255, 255, 255, 0.66); }
.search-row input:focus { background: #fff; color: var(--ink); border-color: #fff; }
.search-row input:focus::placeholder { color: var(--muted); }
.search-results { list-style: none; margin-top: 8px; background: var(--card); color: var(--ink); border-radius: var(--radius); box-shadow: 0 1px 15px rgba(0, 0, 0, 0.18); overflow: hidden; }
.search-results li + li { border-top: 1px solid var(--line-soft); }
.search-results a { display: flex; flex-direction: column; padding: 10px 14px; color: var(--ink); text-decoration: none; }
.search-results a strong { color: var(--link); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
.search-results a:hover strong { text-decoration-thickness: 3px; }
.search-results a span { font-size: 16px; line-height: 20px; color: var(--muted); }
.search-results .search-none { padding: 12px 14px; font-size: 16px; color: var(--muted); }
.band .search-results a, .band .search-none a { color: var(--link); }

/* ── buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 10px 18px;
  font: inherit; font-size: 19px; line-height: 24px; font-weight: 700;
  color: #fff; background: var(--link); border: 0; border-radius: var(--radius);
  text-decoration: none; cursor: pointer;
}
.btn:hover { color: #fff; background: var(--link-hover); text-decoration: none; }
.btn-light { background: #fff; color: var(--band); flex: none; }
.btn-light:hover { background: #e7f1f3; color: var(--band-deep); }

/* ── sections and panels (githubstatus component boxes) ── */
.main { padding-bottom: 48px; }
.section { padding-top: 32px; }
.section > h2 { margin-bottom: 14px; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }

/* start-here bar: overlaps the band edge like a status banner */
.start {
  position: relative; margin-top: -24px;
  display: grid; grid-template-columns: auto 1fr; gap: 12px 14px; align-items: start;
  padding: 16px; background: var(--card); border: 1px solid var(--line); border-top: 4px solid var(--link);
  border-radius: var(--radius); box-shadow: 0 1px 15px rgba(0, 0, 0, 0.10);
}
.start-ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--pill); background: var(--link); color: #fff; }
.start-body p { margin-top: 4px; color: var(--muted); font-size: 16px; line-height: 22px; overflow-wrap: anywhere; }
.start-cta { grid-column: 1 / -1; width: 100%; }

/* route rows */
.rows { list-style: none; }
.rows > .route + .route { border-top: 1px solid var(--line-soft); }
.route { display: grid; grid-template-columns: 24px 1fr; gap: 12px; padding: 14px 16px; }
.route-ico { color: var(--link); padding-top: 2px; }
.route-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.route-kind { font-size: 16px; line-height: 20px; font-weight: 700; color: var(--muted); }
.route-num { font-size: 24px; line-height: 30px; font-weight: 700; white-space: nowrap; }
.route-main { font-weight: 700; overflow-wrap: anywhere; }
.route-label { color: var(--ink); }
.route-note, .route-url { font-size: 16px; line-height: 20px; color: var(--muted); overflow-wrap: anywhere; }
.route-src { font-size: 16px; line-height: 20px; color: var(--muted); overflow-wrap: anywhere; margin-top: 2px; }
.route-src:hover { color: var(--link-hover); }
.route-text + .route-text { margin-top: 4px; }
.route .route-kind + .route-text, .route .route-kind + .hours { margin-top: 2px; }
.hours { list-style: none; }
.hours li + li { margin-top: 4px; }

/* chips for who answers */
.chip { display: inline-flex; align-items: center; padding: 2px 10px; border-radius: var(--pill); font-size: 16px; line-height: 20px; font-weight: 700; white-space: nowrap; vertical-align: 1px; background: var(--unk-bg); color: var(--unk); }
.chip-ai { background: var(--ai-bg); color: var(--ai); }
.chip-human { background: var(--human-bg); color: var(--human); }
.chip-mixed { background: var(--mixed-bg); color: var(--mixed); }

/* link-to-this-page box */
.linkbox { padding: 16px; }
.linkbox h2 { margin-bottom: 8px; }
.linkbox-label { display: block; margin-bottom: 8px; color: var(--muted); font-size: 16px; line-height: 22px; }
.snippet {
  display: block; width: 100%; padding: 10px 12px; margin-bottom: 12px; resize: none;
  font-family: var(--mono); font-size: 15px; line-height: 21px; color: var(--ink);
  background: var(--ground); border: 2px solid var(--line); border-radius: var(--radius);
  field-sizing: content; min-height: 0; overflow: hidden;
}
.linkbox .btn { width: 100%; }

/* corrections + disclaimer */
.fix { display: flex; flex-direction: column; gap: 10px; }
.fix p { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.fix .ico { color: var(--muted); }
.disclaimer { margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 16px; line-height: 22px; color: var(--muted); }

/* tiles: countries + categories (2 per row on phones) */
.tiles { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tile {
  display: flex; flex-direction: column; gap: 2px; height: 100%; padding: 12px 14px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  color: var(--ink); text-decoration: none;
}
.tile:hover { color: var(--ink); text-decoration: none; border-color: var(--link); }
.tiles > li:last-child:nth-child(odd) { grid-column: 1 / -1; }
.tile-code { align-self: flex-start; padding: 0 8px; margin-bottom: 4px; border-radius: var(--pill); background: var(--band); color: #fff; font-size: 14px; line-height: 20px; font-weight: 700; letter-spacing: 0.04em; }
.tile-name { font-weight: 700; color: var(--link); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
.tile:hover .tile-name { color: var(--link-hover); text-decoration-thickness: 3px; }
.tile-count { font-size: 16px; line-height: 20px; color: var(--muted); }

/* brand lists */
.list { list-style: none; }
.list-row { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; }
.list-row + .list-row { border-top: 1px solid var(--line-soft); }
.list-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.list-name { font-weight: 700; }
.list-meta { display: flex; flex-wrap: wrap; gap: 0 14px; font-size: 16px; line-height: 22px; color: var(--muted); }
.list-ch { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.list-ch li { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: var(--pill); background: var(--ground); border: 1px solid var(--line-soft); font-size: 15px; line-height: 20px; color: var(--muted); }
.list-ch .ico { color: var(--link); }

/* AI or human teaser + stats */
.teaser { padding: 16px; }
.teaser h2 { margin-bottom: 6px; }
.teaser > p { color: var(--muted); }
.teaser .btn { width: 100%; margin-top: 16px; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.stats > div { padding: 10px 12px; border: 1px solid var(--line-soft); border-radius: var(--radius); background: var(--ground); }
.stats > div:last-child:nth-child(odd) { grid-column: 1 / -1; }
.stats dt { font-size: 16px; line-height: 20px; color: var(--muted); }
.stats dd { font-size: 32px; line-height: 38px; font-weight: 700; }
.stats-big { margin-top: 0; padding: 12px; }
.stats-big dd span { display: block; font-size: 16px; line-height: 20px; font-weight: 400; color: var(--muted); }

/* data table: stacked rows on phones */
.table-wrap { overflow: hidden; }
.data { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 22px; }
.data thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.data tr { display: block; padding: 12px 16px; }
.data tbody tr + tr { border-top: 1px solid var(--line-soft); }
.data td { display: block; padding: 2px 0; }
.data td[data-label="Chat provider"]::before { content: "Provider: "; color: var(--muted); }
.data td:first-child a { font-size: 19px; line-height: 25px; font-weight: 700; }
.cell-sub { display: block; color: var(--muted); }
.download { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; font-size: 16px; line-height: 22px; color: var(--muted); }
.download .btn { width: 100%; }

/* long-form pages */
.prose ul { padding-left: 22px; }
.prose li + li { margin-top: 8px; }
.prose p + p, .prose p + ul, .prose ul + p { margin-top: 14px; }
.prose h2 + p, .prose h2 + ul { margin-top: 0; }

/* submit form (gov.uk-style fields) */
.form { padding: 16px; display: flex; flex-direction: column; gap: 22px; }
.field { display: flex; flex-direction: column; gap: 4px; }
.field label { font-weight: 700; }
.hint { font-size: 16px; line-height: 22px; color: var(--muted); }
.field input, .field textarea {
  width: 100%; margin-top: 4px; padding: 8px 10px;
  font: inherit; font-size: 19px; color: var(--ink);
  background: #fff; border: 2px solid var(--ink); border-radius: 0;
  -webkit-appearance: none; appearance: none;
}
.field input { height: 44px; }
.field textarea { min-height: 150px; resize: vertical; }
.form .btn { width: 100%; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* footer */
.site-foot { background: var(--band-deep); color: var(--on-band-soft); padding: 28px 0 36px; font-size: 16px; line-height: 22px; }
.foot-links { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; }
.foot-links a { color: var(--on-band); }
.foot-links a:hover { color: var(--on-band); }
.foot-note { margin-top: 18px; }

/* ── wider screens ── */
@media (min-width: 544px) {
  .start { grid-template-columns: auto 1fr auto; align-items: center; }
  .start-cta { grid-column: auto; width: auto; }
  .teaser .btn, .linkbox .btn, .download .btn, .form .btn { width: auto; align-self: flex-start; }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .stats:has(> div:nth-child(3):last-child) { grid-template-columns: repeat(3, 1fr); }
  .stats > div:last-child:nth-child(odd) { grid-column: auto; }
  .download { flex-direction: row; align-items: center; gap: 16px; }
  .fix { flex-direction: row; gap: 32px; }
}

@media (min-width: 768px) {
  .wrap { padding: 0 24px; }
  h1 { font-size: 48px; line-height: 50px; }
  h2 { font-size: 24px; line-height: 30px; }
  .head-bar { flex-direction: row; justify-content: space-between; height: 64px; padding-top: 0; padding-bottom: 0; }
  .head-nav { gap: 28px; }
  .band { padding: 28px 0 56px; }
  .band-home { padding: 44px 0 64px; }
  .lede { margin-top: 16px; }
  .facts { flex-direction: row; flex-wrap: wrap; gap: 8px 28px; }
  .search { margin-top: 32px; }
  .btn { font-size: 16px; line-height: 20px; }
  .start { margin-top: -30px; padding: 18px 20px; }
  .section { padding-top: 40px; }
  .section > h2 { margin-bottom: 16px; }

  .grid2 { display: grid; grid-template-columns: 1fr 1fr; }
  .grid2 > .route + .route { border-top: 0; }
  .grid2 > .route:nth-child(n + 3) { border-top: 1px solid var(--line-soft); }
  .grid2 > .route:nth-child(odd) { border-right: 1px solid var(--line-soft); }
  .route { padding: 16px 20px; }

  .tiles { gap: 14px; }
  .tiles-4 { grid-template-columns: repeat(4, 1fr); }
  .tiles-3 { grid-template-columns: repeat(3, 1fr); }
  .tiles > li:last-child:nth-child(odd) { grid-column: auto; }
  .tile { padding: 14px 16px; }

  .list-row { flex-direction: row; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 20px; }
  .list-ch { justify-content: flex-end; flex: none; max-width: 50%; }

  .teaser, .linkbox, .form { padding: 20px 24px; }

  .data thead { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
  .data tr { display: table-row; padding: 0; }
  .data th, .data td { display: table-cell; padding: 12px 20px; text-align: left; vertical-align: top; }
  .data th { font-size: 16px; color: var(--muted); border-bottom: 1px solid var(--line); background: var(--ground); }
  .data tbody tr + tr td { border-top: 1px solid var(--line-soft); }
  .data tbody tr + tr { border-top: 0; }
  .data td[data-label="Chat provider"]::before { content: none; }
  .data td:first-child a { font-size: 19px; }

  .foot-links { display: flex; flex-wrap: wrap; gap: 10px 28px; }
}

/* A to Z index: letter jump row, wraps on a phone */
.az { padding-top: 24px; }
.az ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.az a { display: grid; place-items: center; min-width: 40px; height: 40px; padding: 0 8px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); font-weight: 700; text-decoration: none; }
.az a:hover { border-color: var(--link); text-decoration: underline; }
.az-group { scroll-margin-top: 16px; }
.more { margin-top: 14px; font-weight: 700; }
