/*
 * Property for Profits — assets/styles.css
 * "The Journal" — authoritative, editorial, quietly premium.
 */

/* ── Google Fonts (editorial serif) ── */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

/* ════════════════════════════════════════════
   1. DESIGN TOKENS
   ════════════════════════════════════════════ */
:root {
  /* Brand */
  --green:        #102a22;
  --green-mid:    #1a3d2b;
  --green-light:  #2d5c42;
  --green-faint:  #eef5f1;

  --gold:         #1f7a3f;
  --gold-deep:    #145c2c;   /* 5.1:1 on --paper ✓ */
  --gold-light:   #e8f3ec;

  --navy:         #1a2e42;

  /* Paper */
  --paper:        #faf8f4;
  --paper-alt:    #f2efe9;
  --card:         #ffffff;
  --field:        #f0ece4;

  /* Text */
  --ink:          #1c1914;   /* ~20:1 on --paper ✓ */
  --ink-soft:     #3d3932;
  --soft:         #6b6860;   /* 4.7:1 on --paper ✓ */
  --body:         #42403a;
  --muted:        #6b6860;
  --acc:          #145c2c;

  /* Borders & shadows */
  --border:        rgba(28,22,8,.11);
  --border-strong: rgba(28,22,8,.20);
  --shadow:        0 2px 14px rgba(18,14,5,.08);
  --shadow-md:     0 6px 28px rgba(18,14,5,.12);

  /* Semantic */
  --emerald-bg: #ecf7f0;
  --amber-bg:   #fef5e3;

  /* Type stacks */
  --font-serif: 'Playfair Display','Georgia','Times New Roman',serif;
  --font-sans:  'IBM Plex Sans','Helvetica Neue',Arial,sans-serif;
  --font-ui:    'Sora','IBM Plex Sans','Helvetica Neue',Arial,sans-serif;
  --font-mono:  'JetBrains Mono','Courier New',monospace;

  /* Layout */
  --wrap:      1160px;
  --wrap-text: 760px;
  --maxw:      1140px;
  --gutter:    clamp(20px,4vw,40px);

  /* Radii */
  --radius:    12px;
  --radius-sm: 8px;
  --radius-lg: 20px;

  --ease: 0.18s ease;
}

/* ════════════════════════════════════════════
   2. RESET
   ════════════════════════════════════════════ */
*,*::before,*::after { box-sizing:border-box; margin:0; padding:0; }

html { scroll-behavior:smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

img,video { max-width:100%; height:auto; display:block; }

a {
  color: var(--green-mid);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color var(--ease);
}
a:hover { color: var(--green-light); }

strong,b { font-weight:600; }
em,i     { font-style:italic; }
ul,ol    { padding-left:1.4em; margin-bottom:1em; }
li       { margin-bottom:.35em; }

/* ════════════════════════════════════════════
   3. TYPOGRAPHY
   ════════════════════════════════════════════ */
h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.18;
  color: var(--ink);
  letter-spacing: -.01em;
}

h1 { font-size:clamp(1.85rem,4.5vw,3rem);  line-height:1.1;  margin-bottom:.5em; }
h2 { font-size:clamp(1.45rem,3vw,2rem);    margin-bottom:.45em; }
h3 { font-size:clamp(1.1rem,2.2vw,1.35rem);margin-bottom:.35em; }
h4 { font-size:1.1rem;   margin-bottom:.3em; }
h5 {
  font-family: var(--font-sans);
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(255,255,255,.5);
  margin-bottom: .75rem;
}
h6 { font-size:.875rem; }

p { margin-bottom:1em; }
p:last-child { margin-bottom:0; }

blockquote {
  border-left: 4px solid var(--green-light);
  margin: 1.75em 0;
  padding: .8em 1.5em;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.1em;
  color: var(--ink-soft);
  background: var(--paper-alt);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

code {
  font-family: var(--font-mono);
  font-size: .875em;
  background: var(--field);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--ink);
}

pre {
  font-family: var(--font-mono);
  font-size: .875em;
  background: var(--green);
  color: #d4ead8;
  padding: 18px 20px;
  border-radius: var(--radius);
  overflow-x: auto;
  margin: 1.5em 0;
  line-height: 1.55;
}
pre code { background:none; padding:0; color:inherit; font-size:1em; }

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
  font-size: .94rem;
  border-radius: var(--radius);
  overflow: hidden;
}
th {
  background: var(--green);
  color: #fff;
  font-family: var(--font-sans);
  font-weight: 600;
  padding: 10px 14px;
  text-align: left;
  font-size: .84rem;
  letter-spacing: .04em;
}
td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  font-size: .94rem;
  color: var(--ink-soft);
}
tr:nth-child(even) td { background:var(--field); }
tr:last-child td      { border-bottom:none; }

/* ════════════════════════════════════════════
   4. LAYOUT
   ════════════════════════════════════════════ */
.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* RentCheckUK / SA-checker wrapper */
.page-wrap {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 20px;
}

/* Article / about page content area */
.article {
  max-width: var(--wrap-text);
  margin-inline: auto;
  padding: 36px var(--gutter) 64px;
}

/* ════════════════════════════════════════════
   5. SKIP LINKS
   ════════════════════════════════════════════ */
.skip,
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  z-index: 9999;
}
.skip:focus,
.skip-link:focus {
  position: fixed;
  top: 0; left: 0;
  width: auto; height: auto;
  padding: 12px 20px;
  background: var(--green);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  border-radius: 0 0 var(--radius-sm) 0;
  z-index: 9999;
  overflow: visible;
}

/* ════════════════════════════════════════════
   6. SITE HEADER / NAV
   ════════════════════════════════════════════ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--green);
  border-bottom: 1px solid rgba(255,255,255,.07);
  box-shadow: 0 1px 0 rgba(0,0,0,.14);
}

.nav {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 72px;
  padding-block: 8px;
  position: relative;
}

.brand {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #fff;
}
.brand img {
  height: 46px;
  width: auto;
  object-fit: contain;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: 1px solid rgba(255,255,255,.32);
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 18px;
  padding: 6px 10px;
  cursor: pointer;
  line-height: 1;
  transition: border-color var(--ease);
}
.nav-toggle:hover { border-color:rgba(255,255,255,.65); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  padding: 0;
  margin: 0 auto;
  flex-wrap: wrap;
}
.nav-links li a {
  display: block;
  padding: 7px 11px;
  color: rgba(255,255,255,.82);
  font-family: var(--font-ui);
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: background var(--ease), color var(--ease);
  white-space: nowrap;
}
.nav-links li a:hover                  { color:#fff; background:rgba(255,255,255,.1); }
.nav-links li a.active,
.nav-links li a[aria-current="page"]   { color:#fff; background:rgba(255,255,255,.12); }

.nav-cta,
.desktop-cta {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

/* blog.html minimal nav ──────────────────── */
.logo {
  font-family: var(--font-ui);
  font-weight: 800;
  font-size: 18px;
  color: var(--ink);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo span { color:var(--gold-deep); }

.nl {
  display: flex;
  gap: 2px;
  align-items: center;
}
.nl a {
  color: var(--soft);
  font-size: 13px;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: color var(--ease), background var(--ease);
}
.nl a:hover { color:var(--ink); background:rgba(0,0,0,.05); }
.nl a.on    { color:var(--gold-deep); font-weight:700; }

/* ════════════════════════════════════════════
   7. BUTTONS
   ════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 24px;
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: filter var(--ease), background var(--ease), border-color var(--ease), color var(--ease);
  border: 2px solid transparent;
  white-space: nowrap;
}

.btn-sm { padding:8px 16px; font-size:13px; }

/* Gold primary */
.btn-gold {
  background: var(--gold-deep);
  color: #fff;
  border-color: transparent;
  border-radius: var(--radius-sm);
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 15px;
  padding: 13px 26px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: filter var(--ease);
}
.btn-gold:hover { filter:brightness(1.1); color:#fff; }

/* Ghost on light backgrounds */
.btn-ghost {
  background: transparent;
  color: var(--green);
  border: 2px solid var(--green-light);
  border-radius: var(--radius-sm);
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 15px;
  padding: 11px 24px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: background var(--ease), border-color var(--ease);
}
.btn-ghost:hover { background:var(--green-faint); color:var(--green); }

/* Ghost-light — for dark hero backgrounds */
.btn-ghost-light {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,.45);
  border-radius: var(--radius-sm);
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 15px;
  padding: 12px 24px;
  text-decoration: none;
  display: inline-block;
  transition: border-color var(--ease);
}
.btn-ghost-light:hover { border-color:#fff; color:#fff; }

/* Navy */
.btn-navy {
  background: var(--navy);
  color: #fff;
  border-color: transparent;
}
.btn-navy:hover { filter:brightness(1.12); color:#fff; }

/* ════════════════════════════════════════════
   8. HERO (homepage dark-green)
   ════════════════════════════════════════════ */
.hero {
  background: var(--green);
  color: #fff;
  padding: 80px 0 68px;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.hero h1 {
  color: #fff;
  font-size: clamp(2rem,5vw,3.5rem);
  line-height: 1.08;
  margin-bottom: 20px;
}

.hero h1 .accent,
.accent { color:var(--gold); }

.hero .lead {
  color: rgba(255,255,255,.88);
  font-size: 1.1rem;
  line-height: 1.7;
  max-width: 640px;
  margin-bottom: 0;
}

/* .lead as a standalone text modifier */
.lead {
  font-size: 1.08rem;
  line-height: 1.7;
  color: var(--ink-soft);
}

.cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.trust-row {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 20px;
  font-size: 13.5px;
  color: rgba(255,255,255,.7);
}

/* ── RC Hero (RentCheckUK / SA-checker) ─── */
.rc-hero {
  background: linear-gradient(135deg,var(--navy) 0%,#1d3352 60%,#27456b 100%);
  color: #fff;
  padding: 64px 0 56px;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.rc-hero .eyebrow {
  color: var(--gold);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: 13px;
}

.rc-hero h1 {
  color: #fff;
  font-size: clamp(1.875rem,4.5vw,2.75rem);
  line-height: 1.12;
  margin: 14px 0 16px;
}

.rc-hero p.lead {
  color: #c9d6e8;
  font-size: 17px;
  max-width: 720px;
  margin: 0;
}

.rc-hero .cta-row { margin-top:24px; }

/* Stats block inside rc-hero */
.stats {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  margin-top: 26px;
}

.stat b {
  display: block;
  font-family: var(--font-ui);
  font-size: 26px;
  font-weight: 700;
  color: #fff;
}

.stat span {
  font-size: 13px;
  color: #9fb3cc;
}

/* Free badge */
.free-badge {
  display: inline-block;
  background: rgba(201,162,75,.16);
  border: 1px solid rgba(201,162,75,.5);
  color: var(--gold);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  margin-top: 8px;
}

/* ════════════════════════════════════════════
   9. SECTIONS
   ════════════════════════════════════════════ */
.section { padding:64px 0; }

.section.alt { background:var(--paper-alt); }

/* Lead-capture section (dark) */
.section.lead {
  background: var(--green);
  color: #fff;
  text-align: center;
}
.section.lead h2 { color:#fff; }
.section.lead p  { color:rgba(255,255,255,.8); }

.section-head {
  text-align: center;
  max-width: 600px;
  margin-inline: auto;
  margin-bottom: 44px;
}
.section-head p {
  color: var(--soft);
  font-size: 1rem;
  margin-top: 8px;
  margin-bottom: 0;
}

/* Sub-label (RC pages) */
.sub {
  color: var(--soft);
  font-size: 14.5px;
  margin-bottom: 20px;
}

/* Kicker (category label above headings) */
.kicker {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 700;
  color: var(--gold-deep);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 10px;
}

/* Lede (blog.html subtitle) */
.lede {
  color: var(--soft);
  max-width: 600px;
  font-size: 15px;
  margin-bottom: 12px;
}

/* ════════════════════════════════════════════
   10. GRID / CARDS
   ════════════════════════════════════════════ */
.grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fill,minmax(280px,1fr));
}

.grid-3 { grid-template-columns:repeat(auto-fill,minmax(280px,1fr)); }
.grid-4 { grid-template-columns:repeat(auto-fill,minmax(230px,1fr)); }

/* General card */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: box-shadow var(--ease), transform var(--ease);
}
.card:hover { box-shadow:var(--shadow-md); transform:translateY(-2px); }

.card h3 { margin-bottom:8px; }

.card p.muted { font-size:14.5px; color:var(--soft); margin-bottom:12px; }

.card > a {
  font-weight: 600;
  font-size: 14px;
  color: var(--green-mid);
  text-decoration: none;
}
.card > a:hover { color:var(--green-light); }

/* Tool card */
.tool-card { text-align:left; }

.ic {
  font-size: 28px;
  margin-bottom: 10px;
  line-height: 1;
  display: block;
}

/* Free badge on calc cards */
.badge-free {
  display: inline-block;
  background: var(--emerald-bg);
  color: #14532d;
  border: 1px solid #b5dfc9;
  border-radius: 999px;
  padding: 3px 10px;
  font-family: var(--font-ui);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .04em;
  margin-bottom: 8px;
}

/* Feature grid (RC pages) */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(240px,1fr));
  gap: 16px;
}

.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: box-shadow var(--ease);
}
.feature-card:hover { box-shadow:var(--shadow); }
.feature-card h3 { margin:0 0 6px; font-size:1rem; }
.feature-card p  { margin:0; color:var(--soft); font-size:13.5px; line-height:1.5; }

/* ════════════════════════════════════════════
   11. POST CARDS (index + blog listing)
   ════════════════════════════════════════════ */
.post-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--ease), transform var(--ease), border-color var(--ease);
}
.post-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--green-light);
}

.post-card h3 {
  font-size: 1.05rem;
  line-height: 1.35;
  margin-bottom: 6px;
}
.post-card h3 a {
  color: var(--ink);
  text-decoration: none;
}
.post-card h3 a:hover { color:var(--green); }

.post-card p {
  font-size: 14px;
  color: var(--soft);
  line-height: 1.55;
  margin-bottom: 0;
}

.post-card > a,
.post-card .pc-body a {
  font-weight: 600;
  font-size: 14px;
  color: var(--green-mid);
  text-decoration: none;
}
.post-card > a:hover,
.post-card .pc-body a:hover { color:var(--green-light); }

/* Thumbnail area */
.thumb {
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg,var(--green-faint),rgba(26,61,43,.06));
  position: relative;
  overflow: hidden;
}
.thumb svg { width:38px; height:38px; }

/* Category badge in thumbnail */
.cat {
  position: absolute;
  top: 10px;
  left: 12px;
  background: var(--green);
  color: #fff;
  font-family: var(--font-ui);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
}

/* Post body wrapper inside post-card */
.pc-body {
  padding: 16px 18px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 6px;
}

.meta {
  font-size: 12.5px;
  color: var(--soft);
  font-weight: 500;
}

/* ── blog.html old-style anchor-card ──────── */
.post {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: var(--ink);
  transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
}
.post:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0,0,0,.12);
  border-color: var(--gold-deep);
}

/* .body — card content wrapper inside .post */
.body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.body h2 { font-size:15px; line-height:1.4; color:var(--ink); margin-bottom:6px; }
.body p   { font-size:13px; color:var(--soft); line-height:1.55; }

/* "Read guide →" in blog.html cards */
.read {
  font-size: 13px;
  font-weight: 700;
  color: var(--gold-deep);
  margin-top: auto;
  padding-top: 10px;
  text-decoration: none;
}
.read:hover { color:var(--gold); }

/* ════════════════════════════════════════════
   12. BREADCRUMBS
   ════════════════════════════════════════════ */
.crumbs {
  font-size: 13px;
  color: var(--soft);
  padding: 16px 0;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
}
.crumbs a { color:var(--soft); text-decoration:none; }
.crumbs a:hover { color:var(--green); }

/* ════════════════════════════════════════════
   13. ARTICLE / BLOG POST
   ════════════════════════════════════════════ */
.article .kicker { margin-bottom:12px; }

.article h1 {
  font-size: clamp(1.75rem,4vw,2.75rem);
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: 16px;
}

/* Byline */
.byline {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--soft);
  margin-bottom: 28px;
  flex-wrap: wrap;
}

/* Avatar initials */
.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
  letter-spacing: .03em;
}

/* Post figure (article header image) */
.post-figure {
  margin: 28px auto 30px;
  max-width: 520px;
  display: block;
}
.post-figure img {
  width: 100%;
  height: auto;
  border-radius: 14px;
  display: block;
}
.post-figure figcaption {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
  color: var(--soft);
}

/* ── Long-form prose ──────────────────────── */
.prose {
  font-size: 17px;
  line-height: 1.82;
  color: var(--ink);
}

.prose h2 {
  font-size: clamp(1.3rem,2.5vw,1.7rem);
  margin-top: 2.2em;
  margin-bottom: .6em;
  color: var(--ink);
  border-bottom: 1px solid var(--border);
  padding-bottom: .3em;
}

.prose h3 {
  font-size: clamp(1.1rem,2vw,1.3rem);
  margin-top: 1.6em;
  margin-bottom: .5em;
  color: var(--green-mid);
}

.prose p  { margin-bottom:1.35em; }
.prose ul,
.prose ol { margin-bottom:1.35em; padding-left:1.5em; }
.prose li { margin-bottom:.5em; }

.prose blockquote {
  margin: 2em 0;
  padding: 1em 1.5em;
  border-left: 4px solid var(--green-light);
  font-style: italic;
  color: var(--ink-soft);
  background: var(--paper-alt);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.prose a {
  color: var(--green-mid);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.prose a:hover { color:var(--green-light); }

/* Author box */
.author-box {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--paper-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 36px 0;
}
.author-box h3 { margin:0 0 6px; font-size:1.05rem; }

/* Share bar */
.share-bar {
  margin: 34px 0 8px;
  padding: 20px 0 4px;
  border-top: 1px solid var(--border);
}
.share-bar a {
  display: inline-block;
  padding: 9px 16px;
  border-radius: 999px;
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--border-strong);
  color: var(--ink);
  transition: background var(--ease), border-color var(--ease), color var(--ease);
}
.share-bar a:hover {
  background: var(--paper-alt);
  border-color: var(--green-light);
  color: var(--green);
}

/* Listing link (Deal Spotlight pages) */
.listing-link {
  background: var(--paper-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 28px 0;
  text-align: center;
}
.listing-link h2 {
  font-size: 1.2rem;
  margin-bottom: 12px;
  color: var(--ink);
}
.listing-link p.muted {
  font-size: 13px;
  color: var(--soft);
  margin-top: 10px;
}

/* ════════════════════════════════════════════
   14. FAQ
   ════════════════════════════════════════════ */
.faq-list { margin:12px 0 24px; }

/* Section wrapper (.faq on a <section>) */
section.faq { padding:10px 0 40px; }
section.faq h2 { font-size:clamp(1.3rem,2.5vw,1.75rem); margin-bottom:20px; }

/* Accordion item (.faq on <details>) */
details.faq {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin-bottom: 10px;
  background: var(--card);
}

details.faq summary {
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  color: var(--ink);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
details.faq summary::-webkit-details-marker { display:none; }
details.faq summary::after {
  content: '+';
  font-size: 20px;
  font-weight: 300;
  color: var(--soft);
  flex-shrink: 0;
  line-height: 1;
}
details.faq[open] summary::after { content: '−'; }

.ans,
details.faq .ans {
  color: var(--soft);
  font-size: 14.5px;
  line-height: 1.65;
  margin-top: 10px;
}

/* ════════════════════════════════════════════
   15. LEAD / SIGNUP FORM
   ════════════════════════════════════════════ */
.lead-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin: 20px 0 12px;
}

.lead-form input {
  padding: 12px 16px;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,.12);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 15px;
  min-width: 200px;
  flex: 1;
  outline: none;
  transition: border-color var(--ease);
}
.lead-form input::placeholder { color:rgba(255,255,255,.52); }
.lead-form input:focus { border-color:var(--gold); }

.lead-ok {
  display: none;
  color: var(--gold);
  font-weight: 600;
  margin-top: 10px;
}

.lead-fine {
  font-size: 12px;
  color: rgba(255,255,255,.52);
  margin-top: 10px;
}
.lead-fine a { color:rgba(255,255,255,.72); text-decoration:underline; }

/* ════════════════════════════════════════════
   16. SCORE DEMO (RentCheckUK / SA-checker)
   ════════════════════════════════════════════ */
.score-demo {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 24px;
  margin-top: 20px;
}

.score-bar {
  display: flex;
  gap: 4px;
  height: 14px;
  border-radius: 8px;
  overflow: hidden;
  margin: 12px 0 18px;
}
.score-bar div { flex:1; }

.score-row {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(150px,1fr));
  gap: 12px;
}

.score-cell {
  background: var(--field);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}
.score-cell b    { display:block; font-size:18px; color:var(--ink); font-weight:700; }
.score-cell span { font-size:12px; color:var(--soft); }

.verdict-good {
  color: #14532d;
  background: var(--emerald-bg);
  border: 1px solid #b5dfc9;
  border-radius: 999px;
  padding: 6px 14px;
  font-weight: 700;
  font-size: 13px;
  display: inline-block;
}

/* ════════════════════════════════════════════
   17. STEPS (install guide)
   ════════════════════════════════════════════ */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(220px,1fr));
  gap: 16px;
  counter-reset: step;
}

.step-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px 20px;
  position: relative;
}
.step-card::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: -12px;
  left: 18px;
  background: var(--gold-deep);
  color: #fff;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-ui);
  font-weight: 800;
  font-size: 14px;
}
.step-card h3 { margin:6px 0 6px; font-size:1rem; }
.step-card p  { margin:0; color:var(--soft); font-size:13px; line-height:1.5; }

/* ════════════════════════════════════════════
   18. PORTAL ROW
   ════════════════════════════════════════════ */
.portal-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.portal-pill {
  background: var(--field);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--body);
}

/* ════════════════════════════════════════════
   19. DISCLAIMER
   ════════════════════════════════════════════ */
.disclaimer {
  background: var(--amber-bg);
  border: 1px solid #ecd9a8;
  border-radius: var(--radius);
  padding: 14px 18px;
  color: #5c4300;
  font-size: 13.5px;
  line-height: 1.55;
  margin-top: 26px;
}
.disclaimer ul { margin:8px 0 0 1em; }
.disclaimer li { margin-bottom:4px; }

/* ════════════════════════════════════════════
   20. FOOTER
   ════════════════════════════════════════════ */
.site-footer {
  background: var(--green);
  color: rgba(255,255,255,.75);
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 40px;
}

.footer-logo {
  height: 36px;
  width: auto;
  margin-bottom: 14px;
}

.blurb {
  font-size: 13.5px;
  color: rgba(255,255,255,.55);
  line-height: 1.65;
  margin: 0;
}

.footer-grid h5 {
  color: rgba(255,255,255,.45);
  margin-bottom: 10px;
}

.footer-grid a {
  display: block;
  color: rgba(255,255,255,.68);
  font-size: 13.5px;
  text-decoration: none;
  margin-bottom: 7px;
  transition: color var(--ease);
}
.footer-grid a:hover { color:#fff; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 18px 0;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  color: rgba(255,255,255,.42);
}
.footer-bottom a        { color:rgba(255,255,255,.55); text-decoration:none; }
.footer-bottom a:hover  { color:rgba(255,255,255,.9); }

/* Simplified footer (RC / SA pages) */
.foot {
  color: var(--soft);
  font-size: 12.5px;
  border-top: 1px solid var(--border);
  padding: 20px 0 30px;
  margin-top: 20px;
}
.foot a { color:var(--soft); }

/* ════════════════════════════════════════════
   21. UTILITIES
   ════════════════════════════════════════════ */
.center { text-align:center; }
.muted  { color:var(--soft); }
.soft   { color:var(--soft); }
.mt-lg  { margin-top:36px; }
.mt-md  { margin-top:20px; }

/* ════════════════════════════════════════════
   22. RESPONSIVE — mobile-first breakpoints
   ════════════════════════════════════════════ */

/* ── tablet / phablet (≤ 768px) ── */
@media (max-width:768px) {
  body { font-size:16px; }

  /* Hamburger */
  .nav-toggle { display:block; }
  .desktop-cta { display:none; }

  /* Slide-in nav (toggled via JS .open class) */
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--green);
    flex-direction: column;
    align-items: stretch;
    padding: 8px 16px 16px;
    gap: 2px;
    border-bottom: 1px solid rgba(255,255,255,.07);
    box-shadow: 0 8px 24px rgba(0,0,0,.24);
  }
  .nav-links.open { display:flex; }
  .nav-links li a { padding:10px 12px; font-size:15px; }

  .site-header { position:relative; }
  .nav         { flex-wrap:wrap; }

  .hero { padding:52px 0 44px; }

  .section    { padding:44px 0; }

  .grid-4     { grid-template-columns:repeat(2,1fr); }

  .footer-grid { grid-template-columns:1fr 1fr; gap:24px; }

  .article { padding:24px var(--gutter) 44px; }

  .prose { font-size:16px; line-height:1.78; }

  .score-row { grid-template-columns:repeat(2,1fr); }

  .cta-row { flex-direction:column; align-items:flex-start; }

  .author-box { flex-direction:column; }

  .stats { gap:18px; }
}

/* ── narrow mobile (≤ 600px) ── */
@media (max-width:600px) {
  .grid,
  .grid-3,
  .grid-4  { grid-template-columns:1fr; }

  h1 { font-size:1.75rem; }
  h2 { font-size:1.35rem; }

  .trust-row  { flex-direction:column; gap:8px; }

  .lead-form          { flex-direction:column; }
  .lead-form input    { min-width:0; width:100%; }

  .footer-grid  { grid-template-columns:1fr; }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .feature-grid { grid-template-columns:1fr; }

  .byline { gap:8px; }

  .post-figure { max-width:100%; }
}

/* ── small handset (≤ 400px / 360px target) ── */
@media (max-width:400px) {
  body { font-size:15px; }

  .score-row  { grid-template-columns:1fr; }
  .steps      { grid-template-columns:1fr; }
  .grid-4     { grid-template-columns:1fr; }

  .cta-row > *       { width:100%; text-align:center; }
  .btn               { width:100%; justify-content:center; }
  .btn-gold,
  .btn-ghost,
  .btn-ghost-light   { width:100%; text-align:center; display:block; }

  .stats { flex-direction:column; gap:12px; }
}

/* ── large desktop (≥ 1280px) ── */
@media (min-width:1280px) {
  .grid-3 { grid-template-columns:repeat(3,1fr); }
  .grid-4 { grid-template-columns:repeat(4,1fr); }
  .footer-grid { grid-template-columns:2fr 1fr 1fr 1fr; }
}

/* ════════════════════════════════════════════
   23. PREFERS-REDUCED-MOTION
   ════════════════════════════════════════════ */
@media (prefers-reduced-motion:reduce) {
  html { scroll-behavior:auto; }

  *,*::before,*::after {
    animation-duration:    0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration:   0.01ms !important;
    scroll-behavior:       auto !important;
  }
}

/* ===== completion pass: previously-undefined classes ===== */

/* ============================================================
   Calculator shell — 5 classes
   ============================================================ */

.calc {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  margin: 0 auto 40px;
  max-width: 920px;
}

.calc-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px 26px;
  background: var(--navy);
  color: #fff;
}

.calc-head .ic {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex: none;
}

.calc-head h3 {
  color: #fff;
  font-size: 20px;
  margin: 0;
}

.calc-head p {
  color: rgba(255, 255, 255, .65);
  font-size: 13.5px;
  margin: 3px 0 0;
}

.calc-body {
  padding: 26px;
}

.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 22px;
}

@media (max-width: 680px) {
  .calc-grid {
    grid-template-columns: 1fr;
  }
}

.calc-note {
  font-size: 13px;
  color: var(--soft);
  line-height: 1.6;
  margin-top: 16px;
}

/* ============================================================
   Inputs / forms — 10 unique classes
   ============================================================ */

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field label {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}

.hint {
  font-size: 12.5px;
  color: var(--soft);
  font-weight: 500;
}

.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.input-wrap .unit {
  position: absolute;
  left: 13px;
  color: var(--soft);
  font-weight: 600;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 15px;
  pointer-events: none;
  z-index: 1;
}

/* has-unit: modifier on .input-wrap when a £ prefix is rendered inside */
.has-unit input {
  padding-left: 30px;
}

.suffix {
  position: absolute;
  right: 13px;
  color: var(--soft);
  font-weight: 600;
  font-size: 14px;
  pointer-events: none;
  white-space: nowrap;
}

/* pad the input so its value doesn't overlap the suffix */
.input-wrap:has(.suffix) input {
  padding-right: 72px;
}

.span2 {
  grid-column: 1 / -1;
}

.seg {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.seg label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: var(--field);
  cursor: pointer;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
  transition: background .15s, border-color .15s;
}

.seg input[type="checkbox"],
.seg input[type="radio"] {
  accent-color: var(--gold-deep);
  width: 18px;
  height: 18px;
  flex: none;
  cursor: pointer;
}

.seg label:has(input:checked) {
  border-color: var(--gold);
  background: var(--emerald-bg);
}

.preset-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.form-card {
  max-width: 620px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow-sm);
}

.form-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 18px;
}

@media (max-width: 560px) {
  .form-2col {
    grid-template-columns: 1fr;
  }
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}

.form-row label {
  font-weight: 700;
  color: var(--ink);
  font-size: 14.5px;
}

/* ============================================================
   Results — 3 classes
   ============================================================ */

.results {
  margin-top: 24px;
  border-top: 1px dashed var(--border-strong);
  padding-top: 22px;
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

@media (max-width: 680px) {
  .result-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 430px) {
  .result-grid {
    grid-template-columns: 1fr;
  }
}

/* SDLT band-by-band breakdown table */
.sdlt-breakdown {
  width: 100%;
  border-collapse: collapse;
  margin-top: 14px;
  font-size: 14.5px;
}

.sdlt-breakdown th,
.sdlt-breakdown td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}

.sdlt-breakdown th {
  color: var(--soft);
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .05em;
  background: var(--field);
}

.sdlt-breakdown tr:last-child td {
  border-bottom: none;
  font-weight: 700;
  color: var(--ink);
}

/* right-align and tabular-nums for all numeric columns */
.sdlt-breakdown th:nth-child(n+2),
.sdlt-breakdown td:nth-child(n+2) {
  text-align: right;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}

.sdlt-breakdown td.num {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-variant-numeric: tabular-nums;
  text-align: right;
  color: var(--ink);
}

/* ============================================================
   Misc / layout — 12 classes
   ============================================================ */

.btn-block {
  width: 100%;
  justify-content: center;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 6px 14px;
  border-radius: 100px;
  border: 1px solid var(--border-strong);
  background: var(--field);
  color: var(--ink);
  font-weight: 700;
  font-size: 13.5px;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background .15s, border-color .15s;
}

.chip:hover {
  border-color: var(--gold);
  background: var(--amber-bg);
  color: var(--ink);
}

/* empty state — "results will appear here" / "no data" */
.empty {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 20px;
  background: var(--field);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--soft);
  font-size: 14.5px;
  font-weight: 600;
  text-align: center;
  min-height: 80px;
}

/* headline: modifier on .stat to make it the prominent/hero result card */
.headline {
  background: var(--navy);
  border-color: var(--navy);
}

.headline .k {
  color: rgba(255, 255, 255, .6);
}

.headline .v {
  color: #fff;
}

/* mono: monospace text for numbers / figures */
.mono {
  font-family: 'JetBrains Mono', ui-monospace, 'Courier New', monospace;
  font-variant-numeric: tabular-nums;
}

/* neighbor-link: contextual "see also" link between related tools/articles */
.neighbor-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--card);
  color: var(--ink);
  font-weight: 700;
  font-size: 14.5px;
  text-decoration: none;
  transition: border-color .15s, box-shadow .15s;
}

.neighbor-link:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow-sm);
  color: var(--ink);
}

.neighbor-link::after {
  content: '→';
  color: var(--gold-deep);
  font-size: 15px;
  margin-left: 2px;
}

/* Legend components — dot + label + count in a horizontal legend row */
.legend-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex: none;
  vertical-align: middle;
}

.legend-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--body);
  flex: 1;
}

.legend-count {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-variant-numeric: tabular-nums;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  margin-left: auto;
  padding-left: 12px;
}

/* ok: positive / neutral verdict state (applied alongside .verdict) */
.ok {
  background: var(--amber-bg);
  border-color: #e8d39c;
  color: var(--amber);
}

/* site: body-level class — full-height flex column, page background */
.site {
  min-height: 100vh;
  background: var(--bg);
  color: var(--body);
  display: flex;
  flex-direction: column;
}

.site > main {
  flex: 1;
}