/* Top Trades Glasgow: homepage styles (concept C, The Trade League) */

:root {
  --bg: #0A0D12;
  --bg-2: #0E1218;
  --surface: #12171F;
  --line: #232B36;
  --line-2: #3A4553;
  --text: #F3F5F7;
  --text-2: #C6CDD6;
  --muted: #9AA4B2;
  --accent: #D7FF3A;
  --accent-hover: #E6FF7A;
  --up: #3DDC97;
  --down: #FF8A7A;
  --bar: #5B6675;
  --display: 'Barlow Condensed', 'Arial Narrow', Impact, sans-serif;
  --body: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --wrap: 1280px;
  --radius: 10px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--body); font-size: 16px; line-height: 1.55; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

.wrap { 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: -9999px; top: 0; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--accent); color: var(--bg); padding: 10px 16px; font-weight: 700; border-radius: 6px; }

.display { font-family: var(--display); font-weight: 800; text-transform: uppercase; line-height: 0.95; letter-spacing: -0.01em; }
.kicker { font-size: 14px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.h2 { font-size: clamp(40px, 5vw, 56px); }
.note { font-size: 14px; color: var(--muted); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px; border-radius: 6px; font-weight: 700; border: 1px solid transparent; transition: background-color .15s ease, border-color .15s ease, color .15s ease; }
.btn-primary { background: var(--accent); color: var(--bg); }
.btn-primary:hover { background: var(--accent-hover); color: var(--bg); }
.btn-ghost { border-color: var(--line-2); font-weight: 600; }
.btn-ghost:hover { border-color: var(--accent); }
.btn-dark { background: var(--bg); color: var(--text); }
.btn-dark:hover { color: var(--accent); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(10, 13, 18, 0.94); border-bottom: 1px solid var(--line); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.logo { color: var(--text); font-family: var(--display); font-weight: 800; font-size: 26px; letter-spacing: 0.02em; text-transform: uppercase; line-height: 1; }
.logo span { color: var(--accent); }
.logo:hover { color: var(--text); }
.nav { display: flex; align-items: center; gap: 24px; font-size: 15px; font-weight: 500; }
.nav a { padding: 10px 0; }
.season { font-size: 13px; font-weight: 600; padding: 6px 12px; border: 1px solid var(--accent); color: var(--accent); border-radius: 999px; white-space: nowrap; }
.menu-btn { display: none; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 6px; background: transparent; color: var(--text); font: inherit; font-weight: 600; cursor: pointer; }
.menu-btn svg { width: 18px; height: 18px; }

@media (max-width: 860px) {
  .js .menu-btn { display: inline-flex; }
  .js .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: flex-start; gap: 0; padding: 4px 24px 20px; background: var(--bg); border-bottom: 1px solid var(--line); }
  .js .nav.is-open { display: flex; }
  .js .nav a { width: 100%; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .js .nav .season { margin-top: 16px; }
  .nav { flex-wrap: wrap; gap: 8px 20px; }
}

/* Hero */
.hero { display: flex; flex-wrap: wrap; gap: 40px; padding-top: 48px; padding-bottom: 56px; align-items: stretch; }
.hero-copy { flex: 3 1 560px; min-width: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 24px; }
.hero h1 { display: flex; flex-direction: column; gap: 20px; font-weight: inherit; }
.hero h1 .display { font-size: clamp(64px, 10vw, 152px); line-height: 0.86; }
.hero h1 em { font-style: normal; color: var(--accent); }
.lede { font-size: 19px; color: var(--text-2); max-width: 520px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-figure { flex: 2 1 340px; min-width: 0; margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; min-height: 460px; background: var(--surface); }
.hero-figure img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-badge { position: absolute; left: 16px; right: 16px; bottom: 16px; display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: rgba(10, 13, 18, 0.9); border: 1px solid var(--line); border-radius: 8px; }
.hero-badge .num { font-family: var(--display); font-weight: 800; font-size: 44px; line-height: 1; color: var(--accent); }
.hero-badge strong { display: block; font-weight: 600; }
.hero-badge small { display: block; font-size: 14px; color: var(--muted); }

/* Section scaffolding */
.section { padding-top: 64px; padding-bottom: 64px; display: flex; flex-direction: column; gap: 28px; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; }
.band { border-top: 1px solid var(--line); background: var(--bg-2); }
.ruled { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* League tables */
.tabs { display: none; flex-wrap: wrap; gap: 8px; }
.js .tabs { display: flex; }
.tab { min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--text); font: inherit; font-weight: 600; font-size: 15px; cursor: pointer; transition: background-color .15s ease, border-color .15s ease; }
.tab:hover { border-color: var(--accent); }
.tab[aria-selected="true"] { background: var(--accent); border-color: var(--accent); color: var(--bg); }

.panel { display: flex; flex-direction: column; gap: 16px; }
.panel + .panel { margin-top: 32px; }
.js .panel + .panel { margin-top: 0; }
.panel-title { font-family: var(--display); font-weight: 700; font-size: 28px; text-transform: uppercase; }
.js .panel-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.panel-link { align-self: flex-start; font-weight: 600; color: var(--accent); }
.panel-link:hover { text-decoration: underline; text-underline-offset: 4px; }

.table-box { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.league-table { width: 100%; min-width: 720px; border-collapse: collapse; font-size: 15px; }
.league-table th { text-align: left; padding: 14px 8px; color: var(--muted); font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; }
.league-table td { padding: 14px 8px; border-top: 1px solid var(--line); vertical-align: middle; }
.league-table th:first-child, .league-table td:first-child { padding-left: 16px; width: 64px; }
.league-table th:last-child, .league-table td:last-child { padding-right: 16px; width: 240px; }
.col-move { width: 72px; }
.pos { font-family: var(--display); font-weight: 800; font-size: 28px; line-height: 1; }
.is-top .pos { color: var(--accent); }
.company a { font-weight: 600; }
.area, .reviews { color: var(--text-2); }
.move { font-weight: 600; font-size: 14px; white-space: nowrap; }
.move.up { color: var(--up); }
.move.down { color: var(--down); }
.move.same { color: var(--muted); }
.move.new { color: var(--accent); }
.score { display: flex; align-items: center; gap: 10px; }
.bar { flex: 1; height: 6px; background: var(--line); border-radius: 3px; overflow: hidden; }
.bar span { display: block; height: 100%; width: var(--w, 0%); background: var(--bar); }
.is-top .bar span { background: var(--accent); }
.score b { width: 36px; text-align: right; font-weight: 600; }

@media (max-width: 640px) {
  .league-table { min-width: 0; font-size: 14px; }
  .league-table th, .league-table td { padding-left: 6px; padding-right: 6px; }
  .league-table th:first-child, .league-table td:first-child { width: 40px; padding-left: 12px; }
  .league-table th:last-child, .league-table td:last-child { width: auto; padding-right: 12px; }
  .league-table th { font-size: 11px; letter-spacing: 0.04em; }
  .col-move { width: 44px; }
  .col-reviews, .bar { display: none; }
  .score b { width: auto; }
  .pos { font-size: 24px; }
}

/* Movers */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.card { display: flex; flex-direction: column; gap: 10px; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.card .label { font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.card h3 { font-family: var(--display); font-weight: 700; font-size: 32px; line-height: 1.05; }
.card p { color: var(--muted); }

/* Scoring */
.split { display: flex; flex-wrap: wrap; gap: 48px; padding-top: 64px; padding-bottom: 64px; }
.split > * { min-width: 0; }
.split-intro { flex: 1 1 360px; display: flex; flex-direction: column; gap: 14px; }
.split-intro p { color: var(--text-2); }
.weights { flex: 1 1 480px; display: flex; flex-direction: column; gap: 22px; margin: 0; padding: 0; list-style: none; }
.weight { display: flex; flex-direction: column; gap: 8px; }
.weight-head { display: flex; justify-content: space-between; gap: 12px; font-weight: 600; }
.weight-head span:last-child { font-family: var(--display); font-weight: 700; font-size: 22px; line-height: 1; }
.weight .track { display: block; height: 10px; background: var(--line); border-radius: 5px; overflow: hidden; }
.weight .track span { display: block; height: 100%; width: var(--w, 0%); background: var(--accent); }
.weight p { font-size: 14px; color: var(--muted); }

/* Every table */
.trade-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.trade-grid a { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 64px; padding: 16px 20px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); font-family: var(--display); font-weight: 700; font-size: 24px; text-transform: uppercase; line-height: 1.1; transition: background-color .15s ease; }
.trade-grid a:hover { background: var(--surface); }
.trade-grid a span { color: var(--accent); }

/* FAQ */
.faq { max-width: 880px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 64px; padding: 12px 0; font-weight: 600; font-size: 18px; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-family: var(--display); font-weight: 700; font-size: 28px; line-height: 1; color: var(--accent); }
.faq details[open] summary::after { content: '\2212'; }
.faq details p { padding: 0 0 20px; color: var(--text-2); max-width: 720px; }

/* CTA band */
.cta { background: var(--accent); color: var(--bg); }
.cta-inner { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: center; padding-top: 40px; padding-bottom: 40px; }
.cta-inner > div { display: flex; flex-direction: column; gap: 4px; flex: 1 1 420px; min-width: 0; }
.cta h2 { font-size: 34px; line-height: 1; }

/* Footer */
.site-footer { background: var(--bg); border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; padding-top: 48px; padding-bottom: 40px; }
.footer-grid h2 { font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text); margin-bottom: 12px; }
.footer-grid ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 2px; }
.footer-grid a { display: inline-block; padding: 6px 0; }
.footer-brand p { margin-top: 12px; max-width: 280px; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 20px; padding-bottom: 28px; border-top: 1px solid var(--line); }

/* ===== Trade pages (e.g. /electricians/) ===== */
.breadcrumb { padding-top: 20px; font-size: 14px; color: var(--muted); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.breadcrumb li + li::before { content: '/'; margin-right: 8px; color: var(--line-2); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb [aria-current] { color: var(--text-2); }

.hero-trade { padding-top: 24px; }
.hero-trade h1 .display { font-size: clamp(56px, 8.4vw, 128px); }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px 24px; font-size: 14px; color: var(--muted); }
.hero-meta strong { color: var(--text); font-weight: 600; }

.td-score { font-family: var(--display); font-weight: 800; font-size: 22px; }

/* Ranked entries */
.entries { display: flex; flex-direction: column; gap: 20px; margin: 0; padding: 0; list-style: none; counter-reset: none; }
.entry { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 0 28px; padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); scroll-margin-top: 96px; }
.entry.is-top { border-color: var(--accent); }
.entry-rank { font-family: var(--display); font-weight: 800; font-size: 96px; line-height: 0.8; color: var(--line-2); }
.entry.is-top .entry-rank { color: var(--accent); }
.entry-body { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.entry-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 12px 24px; }
.entry-head h3 { font-family: var(--display); font-weight: 800; font-size: clamp(30px, 3.4vw, 40px); line-height: 1; text-transform: uppercase; }
.entry-head .where { margin-top: 6px; color: var(--muted); font-size: 15px; }
.entry-score { text-align: right; }
.entry-score b { display: block; font-family: var(--display); font-weight: 800; font-size: 48px; line-height: 0.9; color: var(--accent); }
.entry-score span { font-size: 13px; color: var(--muted); }
.entry-summary { color: var(--text-2); font-size: 17px; max-width: 760px; }
.subscores { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px 24px; margin: 0; padding: 0; list-style: none; }
.subscores li { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); }
.subscores .lbl { display: flex; justify-content: space-between; gap: 8px; }
.subscores .lbl b { color: var(--text); font-weight: 600; }
.subscores .track { display: block; height: 6px; background: var(--line); border-radius: 3px; overflow: hidden; }
.subscores .track span { display: block; height: 100%; width: var(--w, 0%); background: var(--accent); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px 24px; margin: 0; padding-top: 18px; border-top: 1px solid var(--line); }
.facts div { display: flex; flex-direction: column; gap: 4px; }
.facts dt { font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 0; font-size: 15px; color: var(--text-2); }
.entry-links { display: flex; flex-wrap: wrap; gap: 10px; }
.entry-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 6px; border: 1px solid var(--line-2); font-weight: 600; font-size: 15px; }
.entry-links a:hover { border-color: var(--accent); }

@media (max-width: 640px) {
  .entry { grid-template-columns: 1fr; padding: 22px 20px; gap: 12px; }
  .entry-rank { font-size: 64px; }
  .entry-score { text-align: left; }
}

/* Also checked */
.also { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.also li { padding: 18px 20px 18px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.also strong { font-weight: 600; }
.also span { font-size: 14px; color: var(--muted); }

/* Guide / prose */
.guide { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; padding-top: 64px; padding-bottom: 64px; }
.guide > * { min-width: 0; }
.prose { flex: 1 1 520px; display: flex; flex-direction: column; gap: 18px; color: var(--text-2); font-size: 17px; }
.prose h2 { color: var(--text); margin-bottom: 4px; }
.prose h3 { color: var(--text); font-size: 20px; font-weight: 700; margin-top: 10px; }
.prose ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
.prose strong { color: var(--text); }
.guide figure { flex: 1 1 380px; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.guide figure img { width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--line); }
.guide figcaption { font-size: 13px; color: var(--muted); }
.method-note { padding: 18px 20px; border: 1px dashed var(--line-2); border-radius: var(--radius); font-size: 15px; color: var(--text-2); }

.related { display: flex; flex-wrap: wrap; gap: 8px; }
.related a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line-2); font-weight: 600; font-size: 15px; }
.related a:hover { border-color: var(--accent); }

/* Blog */
.blog-hero { display: flex; flex-direction: column; gap: 24px; padding-top: 40px; padding-bottom: 40px; }
.blog-hero h1 { display: flex; flex-direction: column; gap: 18px; font-weight: inherit; }
.blog-hero h1 .display { font-size: clamp(56px, 8.4vw, 120px); line-height: 0.88; }
.blog-hero h1 em { font-style: normal; color: var(--accent); }
.blog-hero .lede { max-width: 680px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line-2); font-weight: 600; font-size: 15px; }
.chips a:hover { border-color: var(--accent); }
.blog-group + .blog-group { border-top: 1px solid var(--line); }
.see-all { font-weight: 700; color: var(--accent); border-bottom: 1px solid currentColor; }
.see-all:hover { color: var(--accent-hover); }

.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.post-card { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.post-card-link { display: flex; flex-direction: column; gap: 12px; }
.post-card img { width: 100%; height: auto; aspect-ratio: 1200 / 670; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--line); transition: border-color .15s ease; }
.post-card-link:hover img { border-color: var(--accent); }
.post-card-cat { font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.post-card-title { font-size: 20px; font-weight: 700; line-height: 1.3; color: var(--text); }
.post-card-link:hover .post-card-title { color: var(--accent); }
.post-card p { font-size: 15px; color: var(--muted); }

.post-head { display: flex; flex-direction: column; gap: 16px; padding-top: 32px; padding-bottom: 32px; }
.post-head .kicker a { color: var(--accent); }
.post-title { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: clamp(40px, 5.6vw, 76px); line-height: 0.95; letter-spacing: -0.01em; max-width: 1000px; }
.post-meta { font-size: 14px; color: var(--muted); }
.post-hero { margin: 8px 0 0; }
.post-hero img { width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--line); }
.post-layout { display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-start; padding-bottom: 64px; }
.post-body { flex: 1 1 560px; max-width: 760px; min-width: 0; }
.post-body > h2 { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: clamp(30px, 3.4vw, 40px); line-height: 1; color: var(--text); margin-top: 24px; scroll-margin-top: 96px; }
.post-body a:not(.btn) { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.post-body a:not(.btn):hover { color: var(--accent-hover); }
.post-body ol:not(.sources) { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.answer { padding: 22px 24px; border-radius: var(--radius); background: var(--surface); border-left: 4px solid var(--accent); display: flex; flex-direction: column; gap: 8px; }
.answer p { color: var(--text); font-size: 18px; }
.answer .answer-label { font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.takeaways { padding: 20px 24px; border: 1px solid var(--line-2); border-radius: var(--radius); display: flex; flex-direction: column; gap: 12px; }
.takeaways-title { font-size: 16px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text); }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.data-table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 460px; }
.data-table caption { text-align: left; padding: 12px 16px; font-size: 13px; color: var(--muted); caption-side: bottom; }
.data-table th, .data-table td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.data-table thead th { background: var(--surface); color: var(--text); font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table td:first-child { color: var(--text); font-weight: 600; }
.inline-cta { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; padding: 22px 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line-2); }
.inline-cta p { flex: 1 1 280px; }
.callout { padding: 18px 20px; border: 1px dashed var(--line-2); border-radius: var(--radius); }
.sources { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; font-size: 15px; }
.post-note { font-size: 14px; color: var(--muted); }
.post-body .faq summary { font-size: 17px; }

.post-aside { flex: 0 1 300px; min-width: 0; position: sticky; top: 96px; display: flex; flex-direction: column; gap: 20px; }
.toc, .aside-box { padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); }
.toc h2, .aside-box h2 { font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.toc ol, .aside-box ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; }
.toc a, .aside-box a { display: block; padding: 6px 0; font-size: 15px; color: var(--text-2); line-height: 1.35; }
.toc a:hover, .aside-box a:hover { color: var(--accent); }
@media (max-width: 960px) {
  .post-aside { position: static; flex-basis: 100%; }
  .toc { display: none; }
}

/* Very narrow phones (320px) */
@media (max-width: 380px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  .hero-trade h1 .display { font-size: 40px; }
  .table-box { max-width: 100%; min-width: 0; }
  .league-table .area, .league-table th:nth-child(4) { display: none; }
  .post-grid { grid-template-columns: 1fr; }
}

/* This quarter: three across on desktop */
@media (min-width: 960px) { .cards-3 { grid-template-columns: repeat(3, 1fr); } }
.card h3 a:hover { color: var(--accent); }

/* ===== Forms (contact, get assessed) ===== */
.form-layout { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; padding-top: 48px; padding-bottom: 64px; }
.form-layout > * { min-width: 0; }
.form-box { flex: 1 1 560px; padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.form-intro { flex: 1 1 320px; }
.form-intro a, .form-box .check a, .prose p a, .prose li a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.form { display: flex; flex-direction: column; gap: 20px; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field label { font-weight: 600; font-size: 15px; color: var(--text); }
.field .opt { font-weight: 400; color: var(--muted); }
.field .hint { font-size: 13px; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; min-height: 50px; padding: 12px 14px; font: inherit; font-size: 16px; color: var(--text); background: var(--bg); border: 1px solid var(--line-2); border-radius: 6px; transition: border-color .15s ease; }
.field textarea { min-height: 120px; resize: vertical; }
.field select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.field input::placeholder, .field textarea::placeholder { color: var(--bar); }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--muted); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(215, 255, 58, 0.18); }
.field [aria-invalid="true"] { border-color: var(--down); }
.field.check { flex-direction: row; align-items: flex-start; gap: 12px; }
.field.check input { width: 22px; height: 22px; min-height: 0; flex: 0 0 22px; margin: 1px 0 0; padding: 0; accent-color: var(--accent); }
.field.check label { font-weight: 400; color: var(--text-2); }
.form .btn { align-self: flex-start; cursor: pointer; font: inherit; font-weight: 700; }
.form .btn[disabled] { opacity: 0.6; cursor: wait; }
.form-status { padding: 14px 16px; border-radius: 6px; border: 1px solid var(--line-2); font-weight: 600; }
.form-status.is-ok { border-color: var(--accent); color: var(--accent); }
.form-status.is-error { border-color: var(--down); color: var(--down); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

/* Steps (get assessed) */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { counter-increment: step; display: flex; flex-direction: column; gap: 8px; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.steps li::before { content: counter(step, decimal-leading-zero); font-family: var(--display); font-weight: 800; font-size: 44px; line-height: 1; color: var(--accent); }
.steps strong { font-family: var(--display); font-weight: 700; font-size: 26px; text-transform: uppercase; line-height: 1.05; }
.steps span { color: var(--muted); }
.steps a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* Area pages */
.area-table td.trade { color: var(--text-2); }
.area-hoods { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.area-hoods li { padding: 6px 12px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 14px; color: var(--text-2); }
.prose-narrow { max-width: 820px; }

/* Image logo (November 2026) */
.logo { display: inline-flex; align-items: center; flex-shrink: 0; }
.logo img { display: block; height: 58px; width: auto; }
.logo-footer img { height: 64px; }
@media (max-width: 860px) { .logo img { height: 46px; } .logo-footer img { height: 56px; } }
