/* Best UK Car Insurance: public site. The home design (../html/assets/css/site.css) unchanged at the top; inner pages under "Inner pages". */
@font-face {
  font-family: "Manrope";
  src: url("/fonts/Manrope-VariableFont_wght.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --navy: #0b1f4d;
  --navy-2: #12306e;
  --flag-navy: #012169;
  --red: #c8102e;
  --red-dark: #a10c24;
  --ink: #0f172a;
  --muted: #566178;
  --paper: #f7f5f0;
  --surface: #ffffff;
  --line: #e7e3d9;
  --sky: #eaf0fb;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 8px 24px rgba(15, 23, 42, .07);
  --shadow-lg: 0 2px 6px rgba(15, 23, 42, .08), 0 24px 60px rgba(11, 31, 77, .18);
  --wrap: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; margin: 0; }
p { margin: 0; }
svg { flex: none; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 10px; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 6px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px; border: 2px solid transparent;
  font: inherit; font-weight: 700; font-size: 16px; line-height: 1.2;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.btn svg { width: 18px; height: 18px; transition: transform .2s; }
.btn:hover svg { transform: translateX(3px); }
.btn-red { background: var(--red); color: #fff; box-shadow: 0 6px 18px rgba(200, 16, 46, .28); }
.btn-red:hover { background: var(--red-dark); transform: translateY(-1px); }
.btn-ghost { border-color: var(--navy); color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: #fff; }
.btn-white { background: #fff; color: var(--navy); }
.btn-white:hover { background: var(--sky); }
.btn-sm { padding: 10px 18px; font-size: 15px; box-shadow: none; }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--red); text-decoration: none; }
.link-arrow svg { width: 18px; height: 18px; transition: transform .2s; }
.link-arrow:hover svg { transform: translateX(4px); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 245, 240, .86);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.scrolled { border-color: var(--line); box-shadow: 0 6px 20px rgba(15, 23, 42, .05); }
.header-row { display: flex; align-items: center; gap: 28px; height: 98px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); font-weight: 800; font-size: 19px; letter-spacing: -.02em; }
.brand picture { display: block; }
.brand-logo { display: block; height: 70px; width: auto; }
.main-nav { display: flex; gap: 6px; margin-left: auto; }
.main-nav a { padding: 10px 14px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 16px; color: var(--ink); transition: background .2s, color .2s; }
.main-nav a:hover { background: rgba(11, 31, 77, .07); color: var(--navy); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.header-search { position: relative; display: flex; align-items: center; }
.header-search input {
  width: 190px; height: 42px; padding: 0 42px 0 16px;
  border: 1px solid var(--line); border-radius: 999px; background: #fff;
  font: inherit; font-size: 15px; color: var(--ink); transition: width .25s, border-color .2s;
}
.header-search input:focus { width: 240px; border-color: var(--navy); outline: none; }
.header-search button { position: absolute; right: 4px; width: 34px; height: 34px; border: 0; border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer; display: grid; place-items: center; }
.header-search button svg { width: 18px; height: 18px; }
.menu-btn { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; padding: 0 11px; flex-direction: column; justify-content: center; gap: 5px; }
.menu-btn span { display: block; height: 2px; background: var(--navy); border-radius: 2px; transition: transform .25s, opacity .25s; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 56px 0 88px; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(600px 400px at 85% 10%, rgba(1, 33, 105, .10), transparent 70%),
    radial-gradient(500px 360px at 5% 90%, rgba(200, 16, 46, .07), transparent 70%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 14px; font-weight: 700; color: var(--navy); }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px rgba(200, 16, 46, .15); }
.hero h1 { position: relative; isolation: isolate; margin-top: 22px; font-size: clamp(38px, 5.4vw, 64px); font-weight: 800; color: var(--navy); letter-spacing: -.035em; }
.hero h1 .hl { color: var(--red); position: relative; white-space: nowrap; }
.hero h1 .hl::after { content: ""; position: absolute; left: 0; right: 0; bottom: .02em; height: .16em; background: rgba(200, 16, 46, .16); border-radius: 4px; z-index: -1; }
.lead { margin-top: 22px; font-size: 19px; color: var(--muted); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 24px; margin: 30px 0 0; padding: 0; list-style: none; font-size: 15px; font-weight: 600; color: var(--ink); }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.hero-points svg { width: 20px; height: 20px; padding: 3px; border-radius: 50%; background: var(--navy); color: #fff; }

.hero-media { position: relative; isolation: isolate; justify-self: center; width: 100%; max-width: 460px; }
.hero-photo { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4 / 5; transform: rotate(1.5deg); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 60%; }
.hero-media::before {
  content: ""; position: absolute; inset: 22px -22px -22px 22px; border-radius: var(--radius-lg);
  background: repeating-linear-gradient(135deg, var(--navy) 0 14px, var(--navy-2) 14px 28px);
  z-index: -1;
}
.float-card { position: absolute; background: #fff; border-radius: 16px; box-shadow: var(--shadow-lg); margin: 0; }
.float-quote { left: -48px; bottom: 54px; display: flex; align-items: center; gap: 12px; padding: 14px 18px 14px 14px; max-width: 300px; }
.float-quote img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.float-quote figcaption { display: flex; flex-direction: column; font-size: 14px; line-height: 1.35; }
.float-quote strong { color: var(--navy); }
.float-quote span { color: var(--muted); font-size: 13px; margin-top: 2px; }
.float-stat { right: -26px; top: 36px; display: flex; align-items: center; gap: 12px; padding: 14px 18px; }
.stat-num { font-size: 38px; font-weight: 800; color: var(--red); line-height: 1; }
.stat-label { font-size: 13px; font-weight: 700; color: var(--navy); line-height: 1.3; }

/* Sections */
.section { padding: 88px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px 48px; margin-bottom: 40px; flex-wrap: wrap; }
.section-head.center { justify-content: center; text-align: center; }
.kicker { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; color: var(--red); margin-bottom: 10px; }
.kicker-light { color: #ff8a9c; }
.section h2 { font-size: clamp(30px, 3.6vw, 44px); font-weight: 800; color: var(--navy); }
.section-sub { color: var(--muted); font-size: 17px; flex: 1 1 320px; }

/* Picker */
.picker-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pick {
  display: flex; align-items: center; gap: 16px; padding: 20px 20px 20px 18px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  text-decoration: none; transition: border-color .2s, box-shadow .2s, transform .2s;
}
.pick:hover { border-color: var(--navy); box-shadow: var(--shadow); transform: translateY(-2px); }
.pick-ico { width: 52px; height: 52px; border-radius: 14px; background: var(--sky); color: var(--navy); display: grid; place-items: center; flex: none; transition: background .2s, color .2s; }
.pick-ico svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pick:hover .pick-ico { background: var(--navy); color: #fff; }
.pick-body { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }
.pick-body strong { font-size: 17px; color: var(--navy); line-height: 1.3; }
.pick-body span { font-size: 14.5px; color: var(--muted); line-height: 1.45; }
.pick-arrow { width: 20px; height: 20px; color: var(--red); opacity: .5; transition: opacity .2s, transform .2s; }
.pick:hover .pick-arrow { opacity: 1; transform: translateX(3px); }

/* Guides */
.guides { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.guides-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { display: flex; flex-direction: column; background: var(--paper); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); transition: box-shadow .25s, transform .25s; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.card-img { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--sky); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .card-img img { transform: scale(1.04); }
.card-body { display: flex; flex-direction: column; gap: 10px; padding: 20px 22px 24px; flex: 1; }
.card-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; font-size: 13.5px; color: var(--muted); font-weight: 600; }
.tag { padding: 4px 10px; border-radius: 999px; background: var(--sky); color: var(--navy); font-size: 12px; font-weight: 800; letter-spacing: .02em; }
.card h3 { font-size: 19px; font-weight: 800; line-height: 1.3; }
.card h3 a { text-decoration: none; color: var(--navy); background-image: linear-gradient(var(--red), var(--red)); background-size: 0 2px; background-position: 0 100%; background-repeat: no-repeat; transition: background-size .3s; }
.card h3 a:hover { background-size: 100% 2px; }
.card h3 a::after { content: ""; position: absolute; inset: 0; }
.card { position: relative; }
.card .link-arrow { position: relative; z-index: 1; }

.card-feature { grid-column: span 3; display: grid; grid-template-columns: 1.15fr 1fr; background: var(--navy); border-color: var(--navy); }
.card-feature .card-img { aspect-ratio: auto; min-height: 340px; }
.card-feature .card-body { justify-content: center; gap: 16px; padding: 44px 48px; color: #d7def0; }
.card-feature .card-meta { color: #aab6d3; }
.card-feature .tag { background: var(--red); color: #fff; }
.card-feature h3 { font-size: clamp(24px, 2.6vw, 34px); }
.card-feature h3 a { color: #fff; }
.card-feature p { font-size: 17px; }
.card-feature .link-arrow { color: #fff; margin-top: 6px; }

/* Why */
.why { position: relative; overflow: hidden; background: var(--navy); color: #d7def0; }
.why::before {
  content: ""; position: absolute; right: -180px; top: -180px; width: 560px; height: 560px; border-radius: 50%;
  background: radial-gradient(circle, rgba(200, 16, 46, .35), transparent 65%);
}
.why-grid { position: relative; display: grid; grid-template-columns: .95fr 1.05fr; gap: 64px; align-items: center; }
.why h2 { color: #fff; }
.why-intro p { margin: 20px 0 30px; font-size: 18px; }
.why-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.why-list li { display: flex; flex-direction: column; gap: 14px; padding: 24px; border-radius: var(--radius); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); transition: background .2s; }
.why-list li:hover { background: rgba(255, 255, 255, .1); }
.why-num { font-size: 14px; font-weight: 800; color: #ff8a9c; letter-spacing: .08em; }
.why-list h3 { color: #fff; font-size: 18px; font-weight: 800; margin-bottom: 6px; }
.why-list p { font-size: 15px; line-height: 1.55; }

/* Testimonials */
.voices-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.quote { margin: 0; position: relative; padding: 40px 40px 32px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); display: flex; flex-direction: column; justify-content: space-between; gap: 28px; }
.quote::before { content: "“"; position: absolute; top: 4px; right: 28px; font-size: 120px; line-height: 1; font-weight: 800; color: var(--sky); }
.quote blockquote { position: relative; margin: 0; font-size: 22px; font-weight: 700; line-height: 1.45; color: var(--navy); letter-spacing: -.01em; }
.quote figcaption { display: flex; align-items: center; gap: 14px; }
.quote figcaption img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 3px solid var(--sky); }
.quote figcaption span { display: flex; flex-direction: column; color: var(--muted); font-size: 15px; line-height: 1.35; }
.quote figcaption strong { color: var(--ink); font-size: 16px; }

/* Newsletter + collaborate */
.duo { padding-top: 0; }
.duo-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; }
.panel { border-radius: var(--radius-lg); padding: 48px; display: flex; flex-direction: column; gap: 16px; }
.panel h2 { font-size: clamp(26px, 2.8vw, 34px); }
.panel p { color: var(--muted); }
.panel-news { background: var(--sky); border: 1px solid #d6e0f3; }
.panel-collab { background: linear-gradient(140deg, var(--red) 0%, var(--red-dark) 100%); color: #ffe3e8; }
.panel-collab h2 { color: #fff; }
.panel-collab p { color: #ffe3e8; flex: 1; }
.panel-collab .kicker-light { color: #ffd0d8; }
.panel-collab .btn { align-self: flex-start; }
.news-form { display: flex; gap: 10px; margin-top: 8px; padding: 6px; background: #fff; border-radius: 999px; box-shadow: var(--shadow); }
.news-form input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 0 18px; font: inherit; font-size: 16px; color: var(--ink); }
.news-form input:focus { outline: none; }
.news-form:focus-within { box-shadow: 0 0 0 3px rgba(11, 31, 77, .25), var(--shadow); }
.form-note { font-size: 14px; font-weight: 600; color: var(--navy); }

/* Footer */
.site-footer { background: #081638; color: #aab6d3; padding: 72px 0 28px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
/* The logo's navy lettering needs a light plate on the dark footer. */
.brand-light .brand-logo { height: 64px; padding: 8px 14px; background: #fff; border-radius: 12px; box-sizing: content-box; }
.footer-brand p { margin-top: 16px; }
.site-footer nav { display: flex; flex-direction: column; gap: 10px; }
.site-footer h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .12em; color: #fff; margin-bottom: 6px; }
.site-footer nav a { text-decoration: none; transition: color .2s; }
.site-footer nav a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 14px; }
.to-top { text-decoration: none; font-weight: 700; color: #fff; }

/* Reveal on scroll (JS adds .js to <html>) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 1080px) {
  .header-search { display: none; }
  .why-grid { grid-template-columns: 1fr; gap: 40px; }
  .picker-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  body { font-size: 16px; }
  .menu-btn { display: flex; }
  .hide-sm { display: none; }
  .header-row { height: 80px; justify-content: space-between; }
  .brand-logo { height: 58px; }
  .main-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; gap: 2px; padding: 12px 16px 20px;
    background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: 0 16px 30px rgba(15, 23, 42, .08);
    display: none;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 14px 12px; border-radius: 12px; font-size: 17px; }
  .hero { padding: 32px 0 72px; }
  .hero-grid { grid-template-columns: 1fr; gap: 56px; }
  .hero-media { max-width: 400px; }
  .float-quote { left: -12px; }
  .float-stat { right: -10px; }
  .guides-grid { grid-template-columns: repeat(2, 1fr); }
  .card-feature { grid-column: span 2; grid-template-columns: 1fr; }
  .card-feature .card-img { min-height: 0; aspect-ratio: 16 / 9; }
  .card-feature .card-body { padding: 28px; }
  .voices-grid, .duo-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: span 2; }
  .section { padding: 64px 0; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 18px; }
  .header-row { height: 72px; }
  .brand-logo { height: 52px; }
  .hero h1 .hl { white-space: normal; }
  .lead { font-size: 17px; }
  .hero-cta .btn { flex: 1 1 100%; justify-content: center; }
  .picker-grid, .guides-grid, .why-list { grid-template-columns: 1fr; }
  .card-feature { grid-column: auto; }
  .panel, .quote { padding: 28px 24px; }
  .quote blockquote { font-size: 19px; }
  .news-form { flex-direction: column; border-radius: 20px; }
  .news-form input { height: 48px; }
  .news-form .btn { justify-content: center; }
  .float-quote { left: 0; right: auto; bottom: -24px; max-width: 86%; }
  .float-stat { right: 0; top: 16px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ======================================================================
   Inner pages (guides, site pages, lists, forms, comments). Same tokens.
   ====================================================================== */
.page-head { position: relative; overflow: hidden; padding: 48px 0 40px; }
.page-head::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(520px 320px at 90% 0%, rgba(1, 33, 105, .09), transparent 70%), radial-gradient(420px 300px at 0% 100%, rgba(200, 16, 46, .06), transparent 70%);
}
.page-head .wrap { position: relative; }
.page-head h1 { margin-top: 14px; font-size: clamp(32px, 4.4vw, 52px); font-weight: 800; color: var(--navy); letter-spacing: -.03em; }
.page-head .lead { margin-top: 16px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; font-size: 14px; font-weight: 600; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: #b8b2a3; }
.crumbs a { text-decoration: none; color: var(--navy); }
.crumbs a:hover { color: var(--red); }
.meta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 20px; font-size: 15px; color: var(--muted); font-weight: 600; }
.byline { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.byline img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
a.byline:hover strong { color: var(--red); }

.article-wrap { padding: 8px 0 72px; }
.article-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; align-items: start; }
.article-main { min-width: 0; }
.article-hero { margin: 0 0 32px; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); background: var(--sky); }
.article-hero img { display: block; width: 100%; height: auto; }

/* Body copy written in the CMS (or imported from WordPress). */
.prose { font-size: 18px; line-height: 1.75; color: #1e293b; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { margin-top: 1.9em; font-size: clamp(24px, 2.6vw, 30px); font-weight: 800; color: var(--navy); }
.prose h3 { margin-top: 1.6em; font-size: 21px; font-weight: 800; color: var(--navy); }
.prose h4 { margin-top: 1.4em; font-size: 18px; font-weight: 800; color: var(--navy); }
.prose a { color: var(--red); font-weight: 600; text-underline-offset: 3px; }
.prose a:hover { color: var(--red-dark); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .45em; }
.prose li::marker { color: var(--red); font-weight: 800; }
.prose strong { color: var(--navy); }
.prose img { border-radius: 14px; margin: 0 auto; }
.prose figure { margin: 1.6em 0; }
.prose figcaption { margin-top: 8px; font-size: 14px; color: var(--muted); text-align: center; }
.prose blockquote { margin: 1.6em 0; padding: 18px 24px; border-left: 4px solid var(--red); background: #fff; border-radius: 0 14px 14px 0; color: var(--navy); font-weight: 600; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.2em 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: 16px; background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 0 0 1px var(--line); }
.prose th, .prose td { padding: 12px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.prose th { background: var(--sky); color: var(--navy); font-weight: 800; }
.prose .table-scroll { overflow-x: auto; }
.bk-align-center { text-align: center; } .bk-align-left { text-align: left; } .bk-align-right { text-align: right; }

.sources { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 15px; color: var(--muted); }
.sources h2 { font-size: 18px; color: var(--navy); margin-bottom: 10px; }
.sources ol { padding-left: 1.2em; margin: 0; }
.sources a { color: var(--navy); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.chip { display: inline-flex; padding: 6px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--navy); font-size: 14px; font-weight: 700; text-decoration: none; transition: border-color .2s, background .2s; }
a.chip:hover { border-color: var(--navy); background: var(--sky); }

.article-foot { margin-top: 40px; display: grid; gap: 24px; }
.author-box { display: flex; gap: 18px; padding: 24px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.author-box img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex: none; }
.author-box h2 { font-size: 18px; color: var(--navy); }
.author-box p { margin-top: 6px; color: var(--muted); font-size: 15px; }
.disclaimer { font-size: 14px; color: var(--muted); padding: 16px 20px; border-radius: 14px; background: rgba(11, 31, 77, .04); }

.aside { position: sticky; top: 100px; display: grid; gap: 20px; }
.aside-card { padding: 24px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.aside-card h2 { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; color: var(--red); margin-bottom: 14px; }
.toc ol { margin: 0; padding-left: 1.1em; display: grid; gap: 8px; font-size: 15px; }
.toc a { color: var(--navy); text-decoration: none; font-weight: 600; }
.toc a:hover { color: var(--red); }
.mini-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.mini-list a { display: flex; gap: 12px; align-items: center; text-decoration: none; color: var(--navy); font-weight: 700; font-size: 15px; line-height: 1.35; }
.mini-list img { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; flex: none; }
.mini-list a:hover span { color: var(--red); }
.aside-news { background: var(--sky); border-color: #d6e0f3; }
.aside-news p { font-size: 15px; color: var(--muted); margin-bottom: 14px; }

/* Lists of guides */
.list-section { padding: 16px 0 88px; }
.guides-grid.grid-plain .card-feature { grid-column: auto; display: flex; background: var(--paper); border-color: var(--line); }
.empty-state { padding: 48px; border-radius: var(--radius-lg); background: #fff; border: 1px dashed var(--line); text-align: center; color: var(--muted); }
.pager { display: flex; justify-content: center; gap: 8px; margin-top: 40px; flex-wrap: wrap; }
.pager a, .pager span { min-width: 44px; height: 44px; padding: 0 14px; display: inline-grid; place-items: center; border-radius: 999px; border: 1px solid var(--line); background: #fff; text-decoration: none; font-weight: 700; color: var(--navy); }
.pager a:hover { border-color: var(--navy); }
.pager .current { background: var(--navy); border-color: var(--navy); color: #fff; }
.pager .disabled { opacity: .45; }

/* Forms (contact, collaborate, comments, search) */
.form-card { padding: 36px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.form-card h2 { font-size: clamp(24px, 2.6vw, 30px); font-weight: 800; color: var(--navy); }
.form-card > p { margin-top: 8px; color: var(--muted); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; margin-top: 24px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-full { grid-column: 1 / -1; }
.field label, .field .label { font-size: 15px; font-weight: 700; color: var(--navy); }
.field .optional { font-weight: 600; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; height: 50px; padding: 0 16px; border: 1px solid #d9d4c7; border-radius: 14px; background: #fff;
  font: inherit; font-size: 16px; color: var(--ink); transition: border-color .2s, box-shadow .2s;
}
.field textarea { height: auto; min-height: 150px; padding: 14px 16px; line-height: 1.55; resize: vertical; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--navy) 50%), linear-gradient(135deg, var(--navy) 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 42px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(11, 31, 77, .15); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--red); }
.field-error { font-size: 14px; font-weight: 600; color: var(--red); }
.field-hint { font-size: 13.5px; color: var(--muted); }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 24px; }
.form-actions .fine { font-size: 13.5px; color: var(--muted); flex: 1 1 260px; }
.form-actions .fine a { color: var(--navy); }
.hp-field { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.notice { display: flex; gap: 12px; align-items: flex-start; padding: 16px 20px; border-radius: 14px; font-weight: 600; font-size: 15.5px; }
.notice svg { width: 22px; height: 22px; padding: 3px; border-radius: 50%; flex: none; }
.notice-ok { background: #e7f6ec; color: #14532d; }
.notice-ok svg { background: #15803d; color: #fff; }
.notice-error { background: #fdecef; color: #8a0b20; }
.notice-error svg { background: var(--red); color: #fff; }

.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 48px; align-items: start; }
.contact-aside { display: grid; gap: 20px; }

/* Comments */
.comments { margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--line); }
.comments > h2 { font-size: clamp(24px, 2.6vw, 30px); font-weight: 800; color: var(--navy); }
.comments > p.sub { margin-top: 6px; color: var(--muted); }
.comment-list { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 16px; }
.comment { padding: 20px 22px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.comment-head { display: flex; align-items: center; gap: 12px; }
.avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--sky); color: var(--navy); font-weight: 800; flex: none; }
.comment-head strong { color: var(--navy); }
.comment-head time { display: block; font-size: 13px; color: var(--muted); font-weight: 600; }
.comment-body { margin-top: 12px; white-space: pre-line; color: #1e293b; }
.comment .replies { list-style: none; margin: 16px 0 0; padding: 0 0 0 20px; border-left: 3px solid var(--sky); display: grid; gap: 12px; }
.comment .replies .comment { background: var(--paper); }
.staff-badge { padding: 2px 8px; border-radius: 999px; background: var(--navy); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.reply-link { margin-top: 10px; padding: 0; border: 0; background: none; font: inherit; font-size: 14px; font-weight: 700; color: var(--red); cursor: pointer; }
.comment-form { margin-top: 32px; }
.replying-to { display: flex; align-items: center; gap: 12px; margin-top: 16px; font-size: 15px; font-weight: 600; color: var(--navy); }
.replying-to button { border: 0; background: none; color: var(--red); font: inherit; font-weight: 700; cursor: pointer; padding: 0; }

/* Newsletter band (guides, lists) */
.news-band { margin-top: 8px; padding: 40px; border-radius: var(--radius-lg); background: var(--sky); border: 1px solid #d6e0f3; display: grid; grid-template-columns: 1fr 1.1fr; gap: 24px 40px; align-items: center; }
.news-band h2 { font-size: clamp(22px, 2.4vw, 28px); font-weight: 800; color: var(--navy); }
.news-band p { margin-top: 6px; color: var(--muted); }
.news-form + .form-note, .form-note { margin-top: 10px; }
.form-note.is-error { color: var(--red); }
.news-consent { margin-top: 10px; font-size: 13px; color: var(--muted); }
.news-consent a { color: var(--navy); }

/* Simple centred message pages (newsletter confirm, unsubscribe) */
.message-page { padding: 40px 0 96px; }
.message-card { padding: 44px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); text-align: center; }
.message-card h1 { font-size: clamp(26px, 3vw, 34px); font-weight: 800; color: var(--navy); }
.message-card p { margin-top: 12px; color: var(--muted); }
.message-card .btn { margin-top: 24px; }

/* Search page */
.search-form { display: flex; gap: 10px; padding: 6px; background: #fff; border-radius: 999px; box-shadow: var(--shadow); }
.search-form input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 0 18px; font: inherit; font-size: 17px; }
.search-form input:focus { outline: none; }
.search-status { margin: 24px 0; font-weight: 700; color: var(--navy); }

/* Author page */
.author-hero { display: flex; align-items: center; gap: 24px; margin-top: 14px; }
.author-hero img { width: 112px; height: 112px; border-radius: 50%; object-fit: cover; border: 4px solid #fff; box-shadow: var(--shadow); }
.author-hero h1 { margin-top: 0; }

/* HTML sitemap */
.sitemap-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.sitemap-groups ul { margin: 12px 0 0; padding-left: 1.1em; display: grid; gap: 6px; }
.sitemap-groups a { color: var(--navy); }

@media (max-width: 1080px) {
  .article-grid { grid-template-columns: 1fr; }
  .aside { position: static; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
}
@media (max-width: 900px) {
  .contact-grid, .news-band { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .form-grid { grid-template-columns: 1fr; }
  .form-card, .news-band, .message-card { padding: 26px 20px; }
  .prose { font-size: 17px; }
  .author-hero { flex-direction: column; align-items: flex-start; }
  .search-form { flex-direction: column; border-radius: 20px; }
  .search-form input { height: 48px; }
}
