/* insights.css — Insights hub and articles. Loads after base.css.
   Survey-report style to match the tool pages: IBM Plex, square corners,
   ruled sections instead of boxed cards, sentence-case labels. */

/* Prose pages keep the narrower measure (comfortable line length). */
:root { --measure: 680px; }

main { padding: 3rem 2rem; min-width: 0; }   /* grid child: lets wide tables scroll instead of widening the page */
.main-inner, article { max-width: 680px; margin: 0 auto; }

a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--accent); }

.crumbs { font-size: 0.75rem; color: var(--ink-soft); margin-bottom: 1.25rem; }
.crumbs a { color: inherit; }
.crumbs a:hover { color: var(--ink); }

.eyebrow { font-size: 0.75rem; color: var(--ink-soft); margin-bottom: 0.35rem; }
h1 { font-size: 1.75rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.2; margin-bottom: 0.5rem; }
.intro { font-size: 0.9rem; color: var(--ink-soft); font-weight: 300; line-height: 1.6; max-width: 52ch; margin-bottom: 2rem; }

/* ── Hub: sections and article rows (matches "More ways to search") ── */
.featured, .series { margin-bottom: 2.25rem; }
.series-title { font-size: 1.35rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.2; margin: 0.3rem 0 0.4rem; }
.series-desc { font-size: 0.85rem; color: var(--ink-soft); font-weight: 300; margin-bottom: 1rem; max-width: 56ch; }

.article-list { list-style: none; border-top: 1px solid var(--ink); }
.article-list a {
  display: flex; align-items: flex-start; gap: 0.75rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
  color: inherit; text-decoration: none;
}
.article-list a:hover .art-title { text-decoration: underline; text-underline-offset: 2px; }
.article-list .part {
  width: 2rem; flex-shrink: 0; padding-top: 0.15rem;
  font-family: var(--font-mono); font-size: 0.72rem; color: var(--ink-soft);
}
.article-list .part svg { width: 14px; height: 14px; }
.featured .article-list .part { color: var(--accent); }
.art-body { flex: 1; min-width: 0; }
.art-title { display: block; font-size: 0.9rem; font-weight: 500; color: var(--ink); }
.art-desc { display: block; font-size: 0.8rem; color: var(--ink-soft); font-weight: 300; line-height: 1.45; }
.art-meta { display: block; font-size: 0.72rem; color: var(--ink-soft); font-family: var(--font-mono); margin-top: 0.2rem; }
.chev { flex-shrink: 0; align-self: center; color: var(--ink-faint); display: flex; }
.chev svg { width: 14px; height: 14px; }
.coming { font-size: 0.78rem; color: var(--ink-soft); margin-top: 0.9rem; font-weight: 300; }

/* ── Article ── */
article { font-size: 16px; line-height: 1.7; }
article h1 { font-size: 2rem; line-height: 1.15; margin-bottom: 0.75rem; }
.standfirst { font-size: 1.05rem; color: var(--ink-soft); font-weight: 300; margin-bottom: 0.9rem; }
.meta { font-size: 0.78rem; color: var(--ink-soft); margin-bottom: 1rem; }
.note { font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 0.6rem; }
.note:last-of-type { margin-bottom: 2rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--border); }

article h2 {
  font-size: 1.15rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3;
  margin: 2.5rem 0 0.9rem; padding-bottom: 0.4rem; border-bottom: 1px solid var(--ink);
}
article h3 { font-size: 1rem; font-weight: 600; margin: 1.75rem 0 0.35rem; }
article p { margin-bottom: 1rem; }
article ul { margin: 0 0 1rem 1.2rem; }
article li { margin-bottom: 0.4rem; }

.answer { border-left: 2px solid var(--ink); padding: 0.2rem 0 0.2rem 1rem; margin-bottom: 1.75rem; }
.answer p:last-child { margin-bottom: 0; }
.answer-label { font-size: 0.8rem; font-weight: 600; color: var(--ink); margin-bottom: 0.35rem; }

.table-wrap { overflow-x: auto; margin: 1rem 0 0.5rem; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--border); }
article table { width: 100%; border-collapse: collapse; font-size: 0.8rem; min-width: 620px; }
article th, article td { padding: 0.55rem 0.6rem 0.55rem 0; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; line-height: 1.45; }
article thead th { font-size: 0.75rem; color: var(--ink-soft); font-weight: 500; }
article tbody tr:last-child td { border-bottom: none; }
article td:first-child { font-weight: 500; white-space: nowrap; }
td.yes { color: var(--accent); font-weight: 500; }
td.part { color: var(--caution); }
td.no { color: var(--ink-soft); }
.table-note { font-size: 0.72rem; color: var(--ink-soft); margin-bottom: 1.5rem; }
.ex-table table { min-width: 0; }
.ex-table td:first-child { white-space: normal; }
.ex-meta { font-size: 0.8rem; color: var(--ink-soft); font-family: var(--font-mono); }

figure { margin: 1rem 0 1.5rem; }
figure img { width: 100%; height: auto; border: 1px solid var(--border); display: block; }
figcaption { font-size: 0.75rem; color: var(--ink-soft); margin-top: 0.35rem; }

.tool { border-top: 1px solid var(--border); padding: 1rem 0; }
.tool:last-of-type { border-bottom: 1px solid var(--border); }
.tool.ours { border-left: 2px solid var(--accent); padding-left: 0.9rem; }
.tool h3 { margin: 0 0 0.25rem; font-size: 1.02rem; }
.tool .facts { font-size: 0.75rem; color: var(--ink-soft); margin-bottom: 0.5rem; }
.tool p { font-size: 0.92rem; margin-bottom: 0.4rem; }
.tool p:last-child { margin-bottom: 0; }
.tool .best { font-size: 0.85rem; }

.cta { margin: 2.5rem 0; }
.cta h2 { margin-top: 0; }
.cta-links { display: flex; flex-direction: column; border-top: 1px solid var(--ink); }
.cta-links a {
  display: block; padding: 0.8rem 0; border-bottom: 1px solid var(--border);
  text-decoration: none; color: var(--ink-soft); font-size: 0.85rem;
}
.cta-links a strong { color: var(--ink); font-weight: 500; font-size: 0.9rem; }
.cta-links a:hover strong { text-decoration: underline; text-underline-offset: 2px; }

details { border-bottom: 1px solid var(--border); padding: 0.8rem 0; }
details:first-of-type { border-top: 1px solid var(--ink); }
summary { cursor: pointer; font-weight: 500; }
details p { margin: 0.5rem 0 0; font-size: 0.93rem; }

.disclaimer { font-size: 0.75rem; color: var(--ink-soft); margin-top: 2.5rem; padding-top: 1rem; border-top: 1px solid var(--border); }

@media (max-width: 520px) {
  header, main, footer { padding-left: 1rem; padding-right: 1rem; }
  main { padding-top: 2rem; padding-bottom: 2.5rem; }
  article h1 { font-size: 1.65rem; }
}

/* ── Inflation Tax series components ── */
.byline { font-size: 0.78rem; color: var(--ink-soft); margin-bottom: 0.35rem; }
.disclaimer-top { font-size: 0.75rem; color: var(--ink-soft); font-style: italic; padding-bottom: 1.5rem; margin-bottom: 1.75rem; border-bottom: 1px solid var(--border); }
article strong { font-weight: 600; }
article ol { margin: 0 0 1rem 1.2rem; }

.example { border-left: 2px solid var(--border); padding: 0.2rem 0 0.2rem 1rem; margin: 0 0 1.25rem; }
.example p { margin: 0; font-size: 0.95rem; }

.series-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.5rem; margin: 2.5rem 0 0; border-top: 1px solid var(--ink); }
.series-nav-label { grid-column: 1 / -1; font-size: 0.8rem; font-weight: 600; padding: 0.6rem 0 0.1rem; }
.sn-card { display: block; padding: 0.8rem 0; border-bottom: 1px solid var(--border); color: inherit; text-decoration: none; }
a.sn-card:hover { color: inherit; }
a.sn-card:hover .sn-title { text-decoration: underline; text-underline-offset: 2px; }
.sn-card.sn-next { grid-column: 2; text-align: right; }
.sn-card.soon { color: var(--ink-soft); }
.sn-dir { display: block; font-family: var(--font-mono); font-size: 0.72rem; color: var(--ink-soft); margin-bottom: 0.15rem; }
.sn-title { display: block; font-size: 0.95rem; font-weight: 600; }
.sn-desc { display: block; font-size: 0.8rem; color: var(--ink-soft); font-weight: 300; line-height: 1.45; margin-top: 0.15rem; }

/* Inline CTA: same grey, ink-bordered button as "Analyse property". */
aside.cta { display: flex; align-items: center; gap: 1rem; padding: 1rem 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--border); }
.cta-body { flex: 1; min-width: 0; }
.cta-title { font-size: 1.05rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; }
.cta-desc { font-size: 0.82rem; color: var(--ink-soft); font-weight: 300; margin-top: 0.2rem; line-height: 1.5; }
.cta-btn {
  flex-shrink: 0; padding: 0.7rem 1.2rem;
  background: #f2f3f3; color: var(--ink); border: 1px solid var(--ink);
  font-size: 0.85rem; font-weight: 500; text-decoration: none; white-space: nowrap;
}
.cta-btn:hover { background: var(--ink); color: var(--white); }

.disclaimer + .sources, .sources { margin-top: 0.5rem; }
p.disclaimer { font-style: italic; }
.sources h2 { font-size: 1rem; margin-top: 1.5rem; }
.sources li { font-size: 0.85rem; }

@media (max-width: 520px) {
  .series-nav { grid-template-columns: 1fr; }
  .sn-card.sn-next { grid-column: 1; text-align: left; }
  aside.cta { flex-direction: column; align-items: stretch; }
  .cta-btn { text-align: center; }
}

/* Print/PDF: show wide tables in full instead of printing a scrollbar. */
@media print {
  .table-wrap { overflow: visible; }
  article table { min-width: 0; }
}

/* Readability step, hub only (2026-11-03): matches the homepage's larger
   small print. Scoped to the page that holds the article list, so the
   articles themselves are unchanged. Width stays 680px. */
.main-inner:has(.article-list) .crumbs { font-size: 0.85rem; }
.main-inner:has(.article-list) .eyebrow { font-size: 0.8rem; }
.main-inner:has(.article-list) h1 { font-size: 2rem; }
.main-inner:has(.article-list) .intro { font-size: 1rem; max-width: 60ch; }
.series-title { font-size: 1.45rem; }
.series-desc { font-size: 0.95rem; max-width: 60ch; }
.article-list a { padding: 1rem 0; }
.article-list .part { font-size: 0.8rem; padding-top: 0.2rem; }
.art-title { font-size: 1rem; }
.art-desc { font-size: 0.875rem; }
.art-meta { font-size: 0.78rem; }
.coming { font-size: 0.875rem; }
