/* howtostopprocrastinating.org — design system: "calm authority"
   Research-backed warmth: deep ink blue + cream + warm amber accent.
   Serif display for authority, humanist sans for readability. */

:root {
  --ink: #1e3350;          /* deep blue — headings, nav */
  --ink-soft: #3d5474;
  --text: #2b3442;
  --text-soft: #5b6676;
  --cream: #faf6ef;        /* page background */
  --paper: #ffffff;        /* cards */
  --line: #e6ddcf;
  --accent: #d97a2b;       /* warm amber — links, CTAs */
  --accent-deep: #b5601c;
  --sage: #6e8b74;         /* research/evidence touches */
  --sage-bg: #eef2ec;
  --amber-bg: #fdf0e2;
  --radius: 10px;
  --shadow: 0 1px 3px rgba(30, 51, 80, 0.08), 0 4px 16px rgba(30, 51, 80, 0.05);
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Spline Sans", -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "Spline Sans Mono", "SF Mono", Menlo, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .display { font-family: var(--font-display); color: var(--ink); line-height: 1.2; font-weight: 600; }
h1 { font-size: clamp(1.9rem, 4.5vw, 2.9rem); letter-spacing: -0.01em; margin-bottom: 0.6em; }
h2 { font-size: clamp(1.4rem, 3vw, 1.8rem); margin: 2em 0 0.7em; }
h3 { font-size: 1.2rem; margin: 1.6em 0 0.5em; }
p { margin-bottom: 1.1em; }
a { color: var(--accent-deep); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--ink); }
ul, ol { padding-left: 1.4em; margin-bottom: 1.1em; }
li { margin-bottom: 0.4em; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 1.25rem; }
.wrap-narrow { max-width: 760px; margin: 0 auto; padding: 0 1.25rem; }

/* Header */
.site-header { background: var(--ink); color: #fff; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 0.9rem; padding-bottom: 0.9rem; flex-wrap: wrap; }
.logo { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; color: #fff; text-decoration: none; }
.logo span { color: #f0b27d; }
.site-nav { display: flex; gap: 1.4rem; flex-wrap: wrap; padding-bottom: 0.8rem; }
.site-nav a { color: #dce4ef; text-decoration: none; font-size: 0.95rem; }
.site-nav a:hover { color: #fff; }

/* Hero */
.hero { background: var(--ink); color: #fff; padding: 3.5rem 0 4rem; }
.hero h1 { color: #fff; max-width: 17em; }
.hero .lede { font-size: 1.2rem; color: #c9d4e3; max-width: 36em; }
.hero .display-accent { color: #f0b27d; font-style: italic; }

/* Buttons */
.btn { display: inline-block; background: var(--accent); color: #fff; font-weight: 600; text-decoration: none; padding: 0.7rem 1.4rem; border-radius: 8px; font-size: 1rem; }
.btn:hover { background: var(--accent-deep); color: #fff; }
.btn-ghost { background: transparent; border: 1.5px solid var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--accent); background: var(--amber-bg); }

/* Breadcrumbs */
.breadcrumbs { font-size: 0.85rem; color: var(--text-soft); padding: 1.1rem 0 0; }
.breadcrumbs a { color: var(--text-soft); }
.breadcrumbs a:hover { color: var(--accent-deep); }

/* Answer-first block */
.answer-box { background: var(--paper); border-left: 4px solid var(--accent); border-radius: 0 var(--radius) var(--radius) 0; padding: 1.1rem 1.3rem; margin: 1.4rem 0 1.8rem; box-shadow: var(--shadow); font-size: 1.1rem; }
.answer-box p:last-child { margin-bottom: 0; }

/* Fact table */
.facts { width: 100%; border-collapse: collapse; margin: 1.2rem 0 1.6rem; background: var(--paper); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); font-size: 0.97rem; }
.facts th, .facts td { text-align: left; padding: 0.65rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.facts th { width: 32%; color: var(--ink-soft); font-weight: 600; background: #f5efe4; }
.facts tr:last-child th, .facts tr:last-child td { border-bottom: none; }

/* Evidence / research notes */
.evidence { background: var(--sage-bg); border-left: 4px solid var(--sage); border-radius: 0 var(--radius) var(--radius) 0; padding: 1rem 1.3rem; margin: 1.4rem 0; font-size: 0.97rem; }
.evidence .label { display: block; font-weight: 700; color: var(--sage); text-transform: uppercase; font-size: 0.75rem; letter-spacing: 0.06em; margin-bottom: 0.3rem; }
.citation { font-family: var(--font-mono); font-size: 0.8rem; color: var(--text-soft); }

/* Steps */
.steps { counter-reset: step; list-style: none; padding-left: 0; }
.steps li { counter-increment: step; position: relative; padding-left: 3rem; margin-bottom: 1rem; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 0.05em; width: 2rem; height: 2rem; border-radius: 50%; background: var(--amber-bg); color: var(--accent-deep); font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: 0.95rem; }

/* Cards / directory grid */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.1rem; margin: 1.5rem 0; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.3rem; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.card h3 { margin: 0 0 0.4rem; font-size: 1.1rem; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a:hover { color: var(--accent-deep); }
.card p { font-size: 0.95rem; color: var(--text-soft); margin-bottom: 0.6rem; }
.card .meta { margin-top: auto; font-size: 0.82rem; color: var(--text-soft); }
.tag { display: inline-block; background: var(--amber-bg); color: var(--accent-deep); font-size: 0.75rem; font-weight: 600; padding: 0.15rem 0.6rem; border-radius: 99px; margin: 0 0.3rem 0.3rem 0; }
.tag.sage { background: var(--sage-bg); color: var(--sage); }

/* FAQ */
.faq details { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 0.7rem; padding: 0; overflow: hidden; }
.faq summary { cursor: pointer; font-weight: 600; color: var(--ink); padding: 0.9rem 1.2rem; list-style: none; position: relative; }
.faq summary::after { content: "+"; position: absolute; right: 1.2rem; color: var(--accent); font-size: 1.2rem; }
.faq details[open] summary::after { content: "–"; }
.faq details .a { padding: 0 1.2rem 1rem; }
.faq details .a p:last-child { margin-bottom: 0; }

/* Section band */
.band { padding: 2.6rem 0; }
.band-alt { background: #f4eee2; }
.band h2:first-child { margin-top: 0; }
.kicker { font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.75rem; font-weight: 600; color: var(--accent-deep); margin-bottom: 0.4rem; }

/* Article body */
.article { padding: 1rem 0 3rem; }
.article-header { padding: 1.4rem 0 0.4rem; }
.updated { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.02em; color: var(--text-soft); }

/* Disclaimer */
.disclaimer { font-size: 0.85rem; color: var(--text-soft); background: var(--paper); border: 1px dashed var(--line); border-radius: var(--radius); padding: 0.8rem 1.1rem; margin: 1.6rem 0; }

/* Footer */
.site-footer { background: var(--ink); color: #b9c6d8; margin-top: 3rem; padding: 2.5rem 0; font-size: 0.92rem; }
.site-footer a { color: #dce4ef; }
.site-footer .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; }
.site-footer h4 { color: #fff; font-size: 0.95rem; margin-bottom: 0.6rem; }
.site-footer ul { list-style: none; padding: 0; }

@media (max-width: 640px) {
  .hero { padding: 2.4rem 0 2.8rem; }
  .facts th { width: 40%; }
}


/* ---- v2 visual layer ---- */
.hero-flex { display: flex; align-items: center; gap: 3rem; }
.hero-art { flex: 0 0 340px; max-width: 340px; }
.hero-art svg { width: 100%; height: auto; display: block; }
@media (max-width: 860px) { .hero-art { display: none; } }

.card { border-top: 3px solid var(--accent); transition: transform 0.15s ease, box-shadow 0.15s ease; }
.card:hover { transform: translateY(-2px); box-shadow: 0 4px 8px rgba(30,51,80,0.1), 0 12px 28px rgba(30,51,80,0.09); }
.card.sage-top { border-top-color: var(--sage); }
.card .icon { width: 34px; height: 34px; margin-bottom: 0.7rem; color: var(--accent-deep); }
.card.sage-top .icon { color: var(--sage); }

.stat-band { background: var(--ink); color: #fff; padding: 2.6rem 0; }
.stat-band .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; }
.stat .num { font-family: var(--font-display); font-size: 2.4rem; color: #f0b27d; line-height: 1.1; }
.stat .lbl { color: #c9d4e3; font-size: 0.95rem; max-width: 22em; }
.stat .src { font-family: var(--font-mono); font-size: 0.7rem; color: #7d90ab; display: block; margin-top: 0.3rem; }

/* Quiz */
.quiz-shell { max-width: 640px; margin: 0 auto; padding: 2.5rem 1.25rem 4rem; }
.quiz-card { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 2rem; }
.quiz-progress { display: flex; gap: 6px; margin-bottom: 1.6rem; }
.quiz-progress span { height: 5px; flex: 1; border-radius: 3px; background: var(--line); }
.quiz-progress span.on { background: var(--accent); }
.quiz-q { font-family: var(--font-display); font-size: 1.45rem; color: var(--ink); margin-bottom: 0.4rem; }
.quiz-sub { color: var(--text-soft); font-size: 0.95rem; margin-bottom: 1.3rem; }
.choices { display: flex; flex-direction: column; gap: 0.6rem; }
.choice { text-align: left; font: inherit; background: var(--cream); border: 1.5px solid var(--line); border-radius: 10px; padding: 0.85rem 1.1rem; cursor: pointer; color: var(--text); }
.choice:hover { border-color: var(--accent); background: var(--amber-bg); }
.choice.sel { border-color: var(--accent); background: var(--amber-bg); font-weight: 600; }
.choices.grid2 { display: grid; grid-template-columns: 1fr 1fr; }
@media (max-width: 520px) { .choices.grid2 { grid-template-columns: 1fr; } }
.dump { width: 100%; min-height: 150px; font: inherit; padding: 0.9rem 1rem; border: 1.5px solid var(--line); border-radius: 10px; background: var(--cream); resize: vertical; }
.dump:focus { outline: 2px solid var(--accent); border-color: var(--accent); }
.quiz-nav { display: flex; justify-content: space-between; margin-top: 1.6rem; }
.quiz-note { font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-soft); margin-top: 1rem; }
.plan-step { background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 0 10px 10px 0; padding: 1rem 1.3rem; margin-bottom: 0.9rem; }
.plan-step h3 { margin: 0 0 0.3rem; font-size: 1.05rem; }
.plan-step p { margin: 0; font-size: 0.95rem; color: var(--text-soft); }
.profile-tag { display: inline-block; font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; background: var(--sage-bg); color: var(--sage); padding: 0.3rem 0.8rem; border-radius: 99px; margin-bottom: 0.8rem; }


/* band texture + entity page accents */
.band-alt { background-color: #f4eee2; background-image: radial-gradient(rgba(30,51,80,0.06) 1px, transparent 1px); background-size: 22px 22px; }
.article-header h1 { max-width: 20em; }
.pull-count { font-family: var(--font-mono); font-size: 0.78rem; color: var(--text-soft); }


/* Search */
.header-row { display: flex; align-items: center; gap: 1.2rem; padding-top: 0.8rem; padding-bottom: 0.6rem; }
.header-row .logo { flex-shrink: 0; }
.quiz-btn { flex-shrink: 0; padding: 0.45rem 1rem; font-size: 0.9rem; }
.search-box { position: relative; flex: 1; max-width: 520px; margin: 0 auto; }
.search-ico { position: absolute; left: 0.8rem; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: #8fa2bd; pointer-events: none; }
.search-box input { width: 100%; font: inherit; font-size: 0.92rem; padding: 0.55rem 0.9rem 0.55rem 2.4rem; border-radius: 99px; border: 1.5px solid #3d5474; background: #243d61; color: #fff; }
.search-box input::placeholder { color: #8fa2bd; }
.search-box input:focus { outline: 2px solid var(--accent); }
.search-results { position: absolute; z-index: 50; top: calc(100% + 6px); left: 0; right: 0; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 8px 30px rgba(30,51,80,0.18); overflow: hidden; }
.sr-item { display: block; padding: 0.6rem 0.9rem; text-decoration: none; color: var(--text); border-bottom: 1px solid var(--line); font-size: 0.9rem; }
.sr-item:last-child { border-bottom: none; }
.sr-item:hover { background: var(--amber-bg); }
.sr-c { font-family: var(--font-mono); font-size: 0.68rem; color: var(--accent-deep); text-transform: uppercase; letter-spacing: 0.08em; }
.sr-b { color: var(--text-soft); font-size: 0.82rem; }

/* Next-step CTA on entity pages */
.next-step { background: var(--ink); color: #c9d4e3; border-radius: 14px; padding: 1.6rem 1.8rem; margin: 2.5rem 0 0; display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; flex-wrap: wrap; }
.next-step h3 { color: #fff; margin: 0 0 0.2rem; }
.next-step p { margin: 0; font-size: 0.95rem; }


/* BestDubai-style listing cards */
.card { border: 1px solid var(--line); border-top: 1px solid var(--line); border-radius: 14px; padding: 0; overflow: hidden; box-shadow: none; }
.card:hover { box-shadow: 0 6px 24px rgba(30,51,80,0.10); }
.card .banner { height: 58px; display: flex; align-items: center; justify-content: center; position: relative; }
.card .banner .icon { width: 26px; height: 26px; margin: 0; color: #fff; opacity: 0.95; }
.card .badge { position: absolute; top: 10px; right: 10px; font-family: var(--font-mono); font-size: 0.68rem; font-weight: 600; letter-spacing: 0.04em; padding: 0.2rem 0.6rem; border-radius: 99px; background: rgba(255,255,255,0.92); color: var(--ink); }
.card .badge.strong { background: #2f7d4f; color: #fff; }
.card .badge.medium { background: #d97a2b; color: #fff; }
.card .badge.weak { background: #8a8f98; color: #fff; }
.card .body { padding: 1.15rem 1.35rem 1.35rem; display: flex; flex-direction: column; flex: 1; }
.card .body h3 { margin: 0 0 0.35rem; }
.card .metaline { font-size: 0.8rem; color: var(--text-soft); margin-bottom: 0.45rem; display: flex; align-items: center; gap: 0.35rem; flex-wrap: wrap; }
.card .metaline .dot::before { content: "·"; margin: 0 0.1rem; }


/* Book covers */
.card .banner.cover-banner { height: 190px; padding: 1rem 0; }
.card .cover-banner img { height: 100%; width: auto; border-radius: 4px; box-shadow: 0 4px 14px rgba(0,0,0,0.35); }
.cover-row { display: flex; gap: 1.3rem; align-items: flex-start; margin: 1.4rem 0 1.8rem; }
.cover-row .cover-img { width: 128px; border-radius: 6px; box-shadow: 0 4px 14px rgba(30,51,80,0.25); flex-shrink: 0; }
@media (max-width: 560px) { .cover-row { flex-direction: column; } .cover-row .cover-img { width: 110px; } }


/* Tool screenshots */
.card .banner.shot-banner { height: 150px; padding: 0; overflow: hidden; }
.card .shot-banner img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.shot-fig { margin: 1.6rem 0; }
.shot-fig img { width: 100%; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); }
.shot-fig figcaption { font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-soft); margin-top: 0.5rem; }


/* Concept diagrams */
.diagram-fig { margin: 1.8rem 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem; box-shadow: var(--shadow); }
.diagram-fig svg { width: 100%; height: auto; display: block; }
.diagram-fig figcaption { font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-soft); margin-top: 0.7rem; }


/* ---- WHITE THEME (BestDubai direction, decided 22 Aug 2026) ---- */
/* BestDubai-style white theme preview overrides */
:root {
  --cream: #ffffff;
  --paper: #ffffff;
  --line: #e5e7eb;
  --amber-bg: #fff7ed;
  --shadow: 0 1px 2px rgba(17,24,39,0.05), 0 4px 12px rgba(17,24,39,0.05);
}
body { background: #fff; color: #1f2937; }
.site-header { background: #fff; border-bottom: 1px solid #eceef1; }
.logo { color: #111827; }
.logo span { color: #d97a2b; }
.site-nav a { color: #4b5563; }
.site-nav a:hover { color: #111827; }
.search-box input { background: #f3f4f6; border-color: #e5e7eb; color: #111827; }
.search-box input::placeholder { color: #9ca3af; }
.search-ico { color: #9ca3af; }
.hero { background: #fff; color: #111827; padding-bottom: 2.5rem; }
.hero h1 { color: #111827; }
.hero .lede { color: #6b7280; }
.hero .display-accent { color: #d97a2b; }
.hero .btn-ghost { border-color: #e5e7eb !important; color: #111827 !important; }
.hero-art svg circle[fill="#243d61"] { fill: #f3f4f6; }
.hero-art svg [stroke="#3d5474"] { stroke: #d1d5db; }
.hero-art svg [stroke="#4a648c"] { stroke: #e5e7eb; }
.hero-art svg line[stroke="#faf6ef"] { stroke: #111827; }
.stat-band { background: #f9fafb; color: #111827; border-top: 1px solid #eceef1; border-bottom: 1px solid #eceef1; }
.stat .num { color: #111827; }
.stat .lbl { color: #6b7280; }
.stat .src { color: #9ca3af; }
.band-alt { background: #f9fafb; background-image: none; }
h1, h2, h3 { color: #111827; }
.card { border-color: #e5e7eb; }
.card h3 a { color: #111827; }
.card p { color: #6b7280; }
.kicker { color: #d97a2b; }

a { color: #b5601c; }
.kicker { color: #b5601c; }
.tag { color: #a05315; }
.sr-c { color: #a05315; }
.metaline, .updated, .citation { color: #6b7280; }
.breadcrumbs, .breadcrumbs a { color: #6b7280; }
.hero .updated { color: #9ca3af !important; }
.hero .btn-ghost { background: #fff; }
.quiz-note { color: #9ca3af; }
.choice { background: #f9fafb; }
.choice:hover, .choice.sel { background: #fff7ed; }
.dump { background: #f9fafb; }
.facts th { background: #f3f4f6; color: #374151; }
.band-alt { background: #f9fafb; background-image: none; }
.answer-box { border-left-color: #d97a2b; }
.next-step { background: #1e3350; }
.next-step p { color: #c9d4e3; }


/* Email signup */
.signup-band { background: #1e3350; color: #c9d4e3; margin-top: 3rem; padding: 2.2rem 0; }
.signup-band + .site-footer { margin-top: 0; border-top: 1px solid #2c4568; }
.signup-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.signup-band h3 { color: #fff; margin: 0 0 0.3rem; }
.signup-band p { margin: 0; font-size: 0.95rem; max-width: 34em; }
.signup-form { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.signup-form input[type=email] { font: inherit; padding: 0.65rem 1rem; border-radius: 8px; border: 1.5px solid #3d5474; background: #243d61; color: #fff; min-width: 240px; }
.signup-form input[type=email]::placeholder { color: #8fa2bd; }

/* Ghost button contrast fix: keep dark text in all states */
.btn-ghost, .btn-ghost:hover, .btn-ghost:focus { color: #111827; background: #fff; }
.btn-ghost:hover { background: #fff7ed; border-color: #d97a2b; }


/* ---- Mobile (≤ 700px) ---- */
@media (max-width: 700px) {
  .header-row { flex-wrap: wrap; gap: 0.7rem; padding-bottom: 0.4rem; }
  .header-row .logo { font-size: 1.1rem; }
  .quiz-btn { order: 2; margin-left: auto; padding: 0.4rem 0.8rem; font-size: 0.85rem; }
  .search-box { order: 3; flex: 1 1 100%; max-width: none; margin: 0; }
  /* nav: one-line horizontal scroll strip */
  .site-header .site-nav { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; -webkit-overflow-scrolling: touch; gap: 0.4rem; padding-bottom: 0.7rem; scrollbar-width: none; }
  .site-nav::-webkit-scrollbar { display: none; }
  .site-nav a { flex: 0 0 auto; background: #f3f4f6; border-radius: 99px; padding: 0.3rem 0.85rem; font-size: 0.85rem; color: #374151; }
  .site-nav a:hover { background: #fff7ed; }

  .hero { padding: 2rem 0 2.4rem; }
  .hero .lede { font-size: 1.05rem; }
  .hero-flex { gap: 1.5rem; }
  .band { padding: 2rem 0; }
  .stat-band { padding: 1.8rem 0; }
  .stat-band .wrap { gap: 1.2rem; }
  .stat .num { font-size: 1.9rem; }

  h1 { font-size: clamp(1.7rem, 7.5vw, 2.2rem); }
  .answer-box { font-size: 1.02rem; padding: 1rem 1.1rem; }
  .facts { font-size: 0.9rem; display: block; overflow-x: auto; }
  .facts th { min-width: 110px; }
  .citation { overflow-wrap: anywhere; }
  .evidence { padding: 0.9rem 1rem; }
  .diagram-fig { padding: 0.8rem; overflow-x: auto; }
  .diagram-fig svg { min-width: 480px; }
  .cover-row { gap: 1rem; }
  .next-step { padding: 1.2rem 1.3rem; }
  .signup-inner { gap: 1.2rem; }
  .signup-form input[type=email] { min-width: 0; flex: 1 1 100%; }
  .signup-form .btn { flex: 1 1 100%; text-align: center; }
  .grid { grid-template-columns: 1fr; }
  .quiz-card { padding: 1.3rem; }
  .quiz-q { font-size: 1.25rem; }
}


.nav-quiz { display: none; }
@media (max-width: 700px) {
  .quiz-btn { display: none; }
  .site-nav a.nav-quiz { display: block; background: #d97a2b; color: #fff; font-weight: 600; }
  .header-row { padding-top: 0.9rem; }
  .header-row .logo { font-size: 1.15rem; }
}

/* Byline (E-E-A-T) */
.byline { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.02em; color: var(--text-soft); }
.byline a { color: inherit; text-decoration: underline; text-decoration-color: var(--line); }

/* Table of contents */
.toc { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.3rem; margin: 1.4rem 0; font-size: 0.95rem; }
.toc .label { display: block; font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-soft); margin-bottom: 0.5rem; }
.toc ol { margin: 0; padding-left: 1.2rem; }
.toc li { margin: 0.25rem 0; }
.toc-inline { margin: 0 0 1.6rem; }

/* Comparison tables on hub pages */
.compare-section { margin-top: 2.5rem; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.compare-table { min-width: 640px; }
.compare-table thead th { width: auto; background: #f5efe4; color: var(--ink-soft); font-weight: 600; }
.compare-table tbody th { width: auto; white-space: nowrap; }
