/* UK Compliance Desk - one stylesheet for the whole site. System fonts only (fast, no third-party cookies). */
:root {
  --navy: #1e3a5f;
  --navy-dark: #10233d;
  --amber: #f59e0b;
  --amber-soft: #fef3c7;
  --ink: #0f172a;
  --muted: #475569;
  --line: #e2e8f0;
  --paper: #ffffff;
  --tint: #f1f5f9;
  --green: #15803d;
  --red: #b91c1c;
  --max: 760px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body { overflow-x: hidden; }
body { margin: 0; font-family: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif; font-size: 18px; line-height: 1.65; color: var(--ink); background: var(--paper); }
a { color: var(--navy); text-underline-offset: 3px; }
a:hover { color: #0b5cad; }
img { max-width: 100%; height: auto; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.wide { max-width: 1080px; }

/* header */
.top { background: var(--navy-dark); color: #fff; border-bottom: 6px solid var(--amber); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; flex-wrap: wrap; }
.logo { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 800; font-size: 20px; letter-spacing: -.3px; }
.logo svg { flex: none; }
.logo:hover { color: #fff; }
nav.main { display: flex; gap: 18px; flex-wrap: wrap; font-size: 16px; }
nav.main a { color: #dbeafe; text-decoration: none; }
nav.main a:hover, nav.main a[aria-current] { color: #fff; text-decoration: underline; }

/* content */
main { padding: 28px 0 48px; }
h1 { font-size: 2.1rem; line-height: 1.15; letter-spacing: -.5px; margin: .2em 0 .4em; color: var(--navy-dark); }
h2 { font-size: 1.45rem; line-height: 1.25; margin: 1.8em 0 .5em; color: var(--navy-dark); }
h3 { font-size: 1.15rem; margin: 1.4em 0 .4em; color: var(--navy-dark); }
p, ul, ol, table { margin: 0 0 1em; }
li { margin-bottom: .35em; }
.lede { font-size: 1.15rem; color: var(--muted); }
.crumbs { font-size: 15px; color: var(--muted); }
.crumbs a { color: var(--muted); }
.meta { font-size: 15px; color: var(--muted); border-left: 4px solid var(--amber); padding-left: 12px; margin-bottom: 1.4em; }

table { border-collapse: collapse; width: 100%; font-size: 16px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--tint); color: var(--navy-dark); }
.table-scroll { overflow-x: auto; }

.box { border-radius: 14px; padding: 18px 20px; margin: 1.4em 0; }
.box > :last-child { margin-bottom: 0; }
.box.key { background: var(--amber-soft); border-left: 8px solid var(--amber); }
.box.info { background: var(--tint); border-left: 8px solid var(--navy); }
.box.warn { background: #fef2f2; border-left: 8px solid var(--red); }
.box h2, .box h3 { margin-top: 0; }

.toc { background: var(--tint); border-radius: 14px; padding: 14px 20px; font-size: 16px; }
.toc ol { margin: .4em 0 0; padding-left: 1.2em; }

.btn { display: inline-block; background: var(--navy); color: #fff; text-decoration: none; font-weight: 700; padding: 12px 22px; border-radius: 999px; border: 0; font-size: 17px; cursor: pointer; }
.btn:hover { background: #0b5cad; color: #fff; }
.btn.amber { background: var(--amber); color: #111827; }
.btn.amber:hover { background: #d97706; color: #111827; }

/* template promo box at the end of a guide */
.tpl { display: flex; gap: 18px; align-items: center; border: 2px solid var(--line); border-radius: 16px; padding: 16px; margin: 2em 0; }
.tpl img { width: 160px; border-radius: 10px; flex: none; }
.tpl p { margin: .2em 0 .6em; font-size: 16px; color: var(--muted); }
.tpl strong { color: var(--navy-dark); }

/* home */
.hero { background: linear-gradient(180deg, #f8fafc, #fff); padding: 34px 0 10px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin: 1.2em 0 2em; }
.card { border: 2px solid var(--line); border-radius: 16px; padding: 18px; text-decoration: none; color: var(--ink); display: block; }
.card:hover { border-color: var(--navy); color: var(--ink); }
.card h3 { margin: 0 0 .3em; }
.card p { margin: 0; font-size: 16px; color: var(--muted); }
.card .tag { display: inline-block; background: var(--amber); color: #111827; font-weight: 800; font-size: 12px; letter-spacing: 1px; padding: 3px 10px; border-radius: 999px; margin-bottom: 8px; }

/* forms and the checker tool */
form .row { margin-bottom: 16px; }
label { display: block; font-weight: 700; margin-bottom: 4px; }
.hint { display: block; font-weight: 400; font-size: 15px; color: var(--muted); }
input[type=number], input[type=text], input[type=email], textarea, select { width: 100%; font: inherit; padding: 10px 12px; border: 2px solid #94a3b8; border-radius: 10px; }
input:focus, textarea:focus, select:focus { outline: 3px solid var(--amber); outline-offset: 1px; }
.money { position: relative; }
.money span { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.money input { padding-left: 28px; }
.result { border-radius: 16px; padding: 18px 20px; margin-top: 18px; border: 3px solid var(--navy); background: #f8fafc; }
.result h2 { margin-top: 0; }
.result.yes { border-color: var(--red); }
.result.soon { border-color: var(--amber); }
.result.no { border-color: var(--green); }

/* ---------- visuals ---------- */
/* full-width photo hero (home page): breaks out of the narrow text column */
.bleed { width: 100vw; margin-left: calc(50% - 50vw); }
.hero-photo { position: relative; min-height: 440px; display: flex; align-items: flex-end; margin-top: -28px; background: var(--navy-dark) center/cover no-repeat; }
.hero-photo::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(16,35,61,.85) 0%, rgba(16,35,61,.55) 55%, rgba(16,35,61,.15) 100%), linear-gradient(180deg, rgba(16,35,61,0) 50%, rgba(16,35,61,.6) 100%); }
.hero-photo .inner { position: relative; max-width: 1080px; margin: 0 auto; padding: 40px 20px 36px; width: 100%; color: #fff; }
.hero-photo h1 { color: #fff; font-size: 2.6rem; max-width: 760px; text-shadow: 0 2px 16px rgba(0,0,0,.35); }
.hero-photo p { font-size: 1.2rem; max-width: 640px; color: #e2e8f0; margin-bottom: 1.2em; }
.hero-photo .credit { position: absolute; right: 12px; bottom: 6px; font-size: 11px; color: rgba(255,255,255,.6); }

/* photo banner at the top of a guide */
.banner { margin: 0 0 1.4em; border-radius: 18px; overflow: hidden; position: relative; aspect-ratio: 16 / 7; background: var(--tint); }
.banner img { width: 100%; height: 100%; object-fit: cover; display: block; }
.banner .tag { position: absolute; left: 16px; top: 16px; background: var(--amber); color: #111827; font-weight: 800; font-size: 13px; letter-spacing: 1px; padding: 5px 12px; border-radius: 999px; }

/* inline photo with caption */
figure.photo { margin: 1.6em 0; }
figure.photo img { border-radius: 14px; display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
figure.photo figcaption { font-size: 15px; color: var(--muted); margin-top: 6px; }

/* cards with a picture on top */
.card.pic { padding: 0; overflow: hidden; }
.card.pic img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; transition: transform .3s; }
.card.pic:hover img { transform: scale(1.04); }
.card.pic .body { padding: 14px 18px 18px; }

/* big-number tiles */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin: 1.4em 0; }
.stat { background: var(--navy-dark); color: #fff; border-radius: 16px; padding: 18px 16px; text-align: center; border-bottom: 6px solid var(--amber); }
.stat b { display: block; font-size: 2.3rem; line-height: 1.05; color: var(--amber); letter-spacing: -1px; }
.stat span { display: block; font-size: 15px; color: #dbeafe; margin-top: 6px; line-height: 1.3; }
.stat.light { background: var(--tint); color: var(--ink); }
.stat.light b { color: var(--navy); }
.stat.light span { color: var(--muted); }

/* timeline (MTD start dates) */
.timeline { list-style: none; padding: 0; margin: 1.6em 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 22px; top: 8px; bottom: 8px; width: 4px; background: linear-gradient(var(--navy), var(--amber)); border-radius: 4px; }
.timeline li { position: relative; padding: 0 0 22px 64px; margin: 0; }
.timeline li:last-child { padding-bottom: 0; }
.timeline .dot { position: absolute; left: 6px; top: 0; width: 36px; height: 36px; border-radius: 50%; background: var(--amber); border: 4px solid #fff; box-shadow: 0 0 0 3px var(--navy); }
.timeline li.done .dot { background: var(--navy); }
.timeline .when { font-weight: 800; color: var(--navy-dark); font-size: 1.15rem; }
.timeline .what { color: var(--muted); }
.timeline .big { display: inline-block; background: var(--amber-soft); color: #78350f; font-weight: 800; padding: 1px 10px; border-radius: 999px; margin-left: 6px; font-size: 15px; }

/* deadline calendar tiles */
.cal { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin: 1.4em 0; }
.cal .day { border: 2px solid var(--line); border-radius: 14px; overflow: hidden; text-align: center; background: #fff; }
.cal .mon { background: var(--navy); color: #fff; font-weight: 800; letter-spacing: 1px; font-size: 14px; padding: 6px; text-transform: uppercase; }
.cal .num { font-size: 2.6rem; font-weight: 800; color: var(--navy-dark); line-height: 1.2; padding-top: 6px; }
.cal .lbl { font-size: 14px; color: var(--muted); padding: 0 8px 10px; line-height: 1.3; }

/* icon list */
.icons { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.icons li { display: flex; gap: 12px; align-items: flex-start; background: var(--tint); border-radius: 14px; padding: 12px 14px; margin: 0; font-size: 16px; }
.icons svg { flex: none; width: 34px; height: 34px; }
.icons strong { color: var(--navy-dark); display: block; }

@media (max-width: 600px) {
  .hero-photo { min-height: 380px; }
  .hero-photo h1 { font-size: 1.9rem; }
  .banner { aspect-ratio: 16 / 9; }
  .stat b { font-size: 1.9rem; }
}

/* placeholder text that Imran must replace before publishing (build-site.ps1 warns about these) */
.needs { background: #fee2e2; color: #991b1b; font-weight: 700; padding: 2px 6px; border-radius: 6px; }

/* footer */
footer { background: var(--navy-dark); color: #cbd5e1; font-size: 15px; padding: 28px 0; }
footer a { color: #fff; }
footer .cols { display: flex; gap: 28px; flex-wrap: wrap; justify-content: space-between; }
footer p { margin: 0 0 .6em; }
.stripe { height: 10px; background: repeating-linear-gradient(-45deg, var(--amber) 0 12px, #111827 12px 24px); }

@media (max-width: 600px) {
  body { font-size: 17px; }
  h1 { font-size: 1.7rem; }
  .tpl { flex-direction: column; align-items: flex-start; }
  .tpl img { width: 100%; }
}
