/*
Theme Name: Toolbox Flow
Theme URI: https://toolboxflow.com/
Author: Toolbox Flow
Description: A focused affiliate blog theme for digital product sellers, templates, tools, workflows and Pinterest-driven content.
Version: 0.3.0
Text Domain: toolboxflow
*/

:root {
  --ink: #111827;
  --muted: #5f6876;
  --soft: #eef2f7;
  --line: #dfe5ec;
  --paper: #fbfcf8;
  --surface: #ffffff;
  --teal: #0b8f87;
  --teal-dark: #05786f;
  --coral: #ef6f53;
  --blue: #3658d4;
  --gold: #f2b84b;
  --lime: #c9e95d;
  --mint: #e6f6ef;
  --rose: #fff0eb;
  --sky: #edf2ff;
  --shadow: 0 16px 40px rgba(17, 24, 39, 0.09);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 120px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  scroll-padding-top: 120px;
}

body.article-page {
  background: #fff;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  max-width: 100%;
}

button,
input {
  font: inherit;
}

.container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 12px;
  background: var(--ink);
  color: #fff;
  padding: 10px 14px;
  border-radius: var(--radius);
  z-index: 20;
}

.skip-link:focus {
  left: 12px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(251, 252, 248, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

body.admin-bar .site-header {
  top: 32px;
}

.header-inner {
  min-height: 72px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, var(--lime) 0 46%, transparent 47%),
    linear-gradient(315deg, var(--coral) 0 46%, transparent 47%),
    var(--teal);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.35);
  flex: 0 0 auto;
}

.brand-name {
  display: grid;
  line-height: 1.1;
}

.brand-name strong {
  font-size: 18px;
}

.brand-name span {
  color: var(--muted);
  font-size: 12px;
  margin-top: 3px;
}

.main-nav {
  justify-self: center;
  display: flex;
  gap: 18px;
  align-items: center;
  color: #394150;
  font-size: 14px;
  font-weight: 700;
}

.main-nav a {
  padding: 10px 2px;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--teal);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 16px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 850;
  cursor: pointer;
}

.btn.primary {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
  box-shadow: 0 10px 20px rgba(11,143,135,0.18);
}

.btn.primary:hover {
  background: var(--teal-dark);
}

.btn:hover {
  border-color: #b8c3cf;
}

.btn.small {
  min-height: 34px;
  padding: 0 12px;
  font-size: 13px;
}

.blog-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 440px);
  gap: 40px;
  align-items: center;
  padding: 56px 0 48px;
}

.hero-copy h1 {
  max-width: 780px;
  font-size: clamp(44px, 5.8vw, 72px);
}

.hero-copy p {
  max-width: 720px;
  color: var(--muted);
  font-size: 18px;
}

.topic-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.topic-row span {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 800;
}

.featured-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 18px;
  box-shadow: var(--shadow);
}

.featured-panel h2 {
  margin: 10px 0 10px;
  font-size: 30px;
  line-height: 1.05;
}

.featured-panel p {
  color: var(--muted);
  margin-bottom: 16px;
}

.section-kicker {
  color: var(--teal);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.post-thumb {
  min-height: 170px;
  border: 1px solid rgba(17,24,39,0.10);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255,255,255,0.78), rgba(255,255,255,0.08)),
    var(--sky);
  overflow: hidden;
  position: relative;
}

.post-thumb::before,
.post-thumb::after {
  content: "";
  position: absolute;
  border-radius: 8px;
  background: rgba(255,255,255,0.78);
  border: 1px solid rgba(17,24,39,0.10);
}

.post-thumb::before {
  width: 58%;
  height: 48%;
  left: 18px;
  top: 18px;
}

.post-thumb::after {
  width: 42%;
  height: 34%;
  right: 18px;
  bottom: 18px;
}

.post-thumb span {
  position: absolute;
  left: 34px;
  right: 34px;
  height: 9px;
  border-radius: 999px;
  background: rgba(17,24,39,0.14);
  z-index: 1;
}

.post-thumb span:nth-child(1) { top: 42px; }
.post-thumb span:nth-child(2) { top: 62px; width: 48%; }
.post-thumb span:nth-child(3) { top: 82px; width: 34%; }

.thumb-tools { background-color: var(--mint); }
.thumb-printables { background-color: #fff7df; }
.thumb-canva { background-color: var(--sky); }
.thumb-etsy { background-color: var(--rose); }
.thumb-ideas { background-color: #f1f5f9; }

.hero {
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.82fr);
  gap: 36px;
  align-items: center;
  padding: 44px 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--coral);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  max-width: 760px;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 0.95;
  letter-spacing: 0;
}

.hero p {
  max-width: 690px;
  color: var(--muted);
  font-size: 18px;
}

.hero-actions {
  margin-top: 24px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero .cta-note {
  margin: 12px 0 0;
  max-width: 560px;
  color: var(--muted);
  font-size: 14px;
}

.hero-proof {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 720px;
}

.proof-item {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius);
  padding: 14px;
}

.proof-item strong {
  display: block;
  font-size: 24px;
  line-height: 1;
}

.proof-item span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
}

.toolbox-visual {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.visual-top {
  min-height: 54px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 18px;
}

.dots {
  display: flex;
  gap: 7px;
}

.dots i {
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--line);
}

.dots i:nth-child(1) { background: var(--coral); }
.dots i:nth-child(2) { background: var(--gold); }
.dots i:nth-child(3) { background: var(--teal); }

.visual-top span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.stack-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--line);
}

.stack-tabs span {
  text-align: center;
  padding: 12px 8px;
  color: var(--muted);
  background: #f7f9fb;
  border-right: 1px solid var(--line);
  font-size: 13px;
  font-weight: 850;
}

.stack-tabs span:last-child {
  border-right: 0;
}

.stack-tabs .active {
  color: var(--teal);
  background: var(--mint);
}

.stack-list {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.stack-card {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 13px;
  background: #fff;
}

.stack-card.featured {
  border-color: rgba(11,143,135,0.35);
  background: var(--mint);
}

.stack-logo {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 950;
}

.stack-logo.blue { background: var(--blue); }
.stack-logo.coral { background: var(--coral); }
.stack-logo.teal { background: var(--teal); }
.stack-logo.gold { background: var(--gold); color: #352309; }

.stack-card h3 {
  margin: 0;
  font-size: 16px;
  line-height: 1.2;
}

.stack-card p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 10px;
  background: #fff;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}

.section {
  padding: 84px 0 52px;
  border-top: 1px solid var(--line);
  scroll-margin-top: 120px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 28px;
  margin-bottom: 22px;
}

.section-head h2 {
  margin: 0;
  max-width: 650px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1;
  letter-spacing: 0;
}

.section-head p {
  margin: 0;
  max-width: 520px;
  color: var(--muted);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.category-card {
  min-height: 210px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 16px;
  display: grid;
  gap: 10px;
  align-content: start;
}

.category-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  font-weight: 950;
  color: var(--ink);
}

.category-icon.mint { background: var(--mint); color: var(--teal); }
.category-icon.rose { background: var(--rose); color: var(--coral); }
.category-icon.sky { background: var(--sky); color: var(--blue); }
.category-icon.gold { background: #fff7df; color: #8a5f0b; }
.category-icon.slate { background: #f1f5f9; color: #394150; }

.category-card h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.15;
}

.category-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

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

.starter-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 14px;
  display: grid;
  gap: 14px;
}

.starter-card .post-thumb {
  min-height: 145px;
}

.starter-card h3 {
  margin: 4px 0 8px;
  font-size: 22px;
  line-height: 1.1;
}

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

.featured-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.85fr);
  gap: 16px;
  align-items: stretch;
}

.feature-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 16px;
  display: grid;
  grid-template-columns: minmax(220px, 0.85fr) minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.feature-card h3 {
  margin: 6px 0 10px;
  font-size: 30px;
  line-height: 1.08;
}

.feature-card p {
  color: var(--muted);
}

.guide-list {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  display: grid;
}

.guide-link {
  padding: 16px;
  border-bottom: 1px solid var(--line);
}

.guide-link:last-child {
  border-bottom: 0;
}

.guide-link span {
  display: block;
  color: var(--teal);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
  margin-bottom: 5px;
}

.guide-link strong {
  display: block;
  line-height: 1.2;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.post-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 14px;
  display: grid;
  gap: 12px;
}

.post-card .post-thumb {
  min-height: 130px;
}

.post-card h3 {
  margin: 0;
  font-size: 21px;
  line-height: 1.12;
}

.post-card p {
  color: var(--muted);
  font-size: 14px;
  margin: 0;
}

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

.review-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 16px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.review-card h3 {
  margin: 0 0 6px;
  font-size: 20px;
}

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

.review-card .pill {
  grid-column: 1 / -1;
  justify-self: start;
}

.category-card:hover,
.starter-card:hover,
.feature-card:hover,
.guide-link:hover,
.post-card:hover,
.review-card:hover {
  border-color: rgba(11,143,135,0.45);
  box-shadow: 0 12px 28px rgba(17,24,39,0.07);
}

.path-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.path-card {
  min-height: 220px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 16px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 14px;
}

.path-card h3 {
  margin-bottom: 8px;
  font-size: 18px;
  line-height: 1.16;
}

.path-card p {
  color: var(--muted);
  font-size: 14px;
}

.mini-board {
  height: 78px;
  border-radius: 6px;
  border: 1px solid rgba(17,24,39,0.10);
  background:
    linear-gradient(90deg, rgba(255,255,255,0.75), rgba(255,255,255,0.10)),
    repeating-linear-gradient(0deg, rgba(17,24,39,0.12) 0 2px, transparent 2px 14px);
}

.path-card:nth-child(1) .mini-board { background-color: var(--sky); }
.path-card:nth-child(2) .mini-board { background-color: var(--rose); }
.path-card:nth-child(3) .mini-board { background-color: var(--mint); }
.path-card:nth-child(4) .mini-board { background-color: #fff7df; }
.path-card:nth-child(5) .mini-board { background-color: #f1f5f9; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.product-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 15px;
  min-height: 205px;
  display: grid;
  gap: 10px;
  grid-template-rows: auto auto auto 1fr;
}

.product-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  font-weight: 950;
  color: var(--ink);
}

.product-card:nth-child(1) .product-icon { background: var(--mint); color: var(--teal); }
.product-card:nth-child(2) .product-icon { background: var(--sky); color: var(--blue); }
.product-card:nth-child(3) .product-icon { background: var(--rose); color: var(--coral); }
.product-card:nth-child(4) .product-icon { background: #fff7df; color: #8a5f0b; }
.product-card:nth-child(5) .product-icon { background: #f1f5f9; color: #394150; }

.product-card h3 {
  margin: 0;
  font-size: 17px;
  line-height: 1.2;
}

.product-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.card-cta {
  align-self: end;
  color: var(--teal);
  font-size: 13px;
  font-weight: 900;
}

.product-card:hover,
.path-card:hover,
.article-card:hover {
  border-color: rgba(11,143,135,0.45);
  box-shadow: 0 12px 28px rgba(17,24,39,0.07);
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.article-card {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 14px;
}

.article-type {
  display: grid;
  place-items: center;
  min-height: 82px;
  border-radius: var(--radius);
  background: var(--sky);
  color: var(--blue);
  font-weight: 950;
  font-size: 13px;
}

.article-card:nth-child(2) .article-type { background: var(--mint); color: var(--teal); }
.article-card:nth-child(3) .article-type { background: var(--rose); color: var(--coral); }
.article-card:nth-child(4) .article-type { background: #fff7df; color: #8a5f0b; }

.article-card h3 {
  margin-bottom: 8px;
  font-size: 19px;
  line-height: 1.2;
}

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

.lead-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 26px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #111827;
  color: #fff;
  padding: 28px;
  box-shadow: var(--shadow);
}

.lead-band h2 {
  margin-bottom: 12px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1;
}

.lead-band p {
  color: #cfd6e2;
  margin-bottom: 18px;
}

.route-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 26px;
  align-items: center;
  border: 1px solid var(--line);
  border-left: 6px solid var(--teal);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 26px;
  box-shadow: 0 10px 28px rgba(17,24,39,0.05);
}

.route-band h2 {
  margin: 8px 0 12px;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1;
}

.route-band p {
  max-width: 720px;
  color: var(--muted);
  margin-bottom: 18px;
}

.cta-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.checklist-preview {
  background: #fff;
  color: var(--ink);
  border-radius: var(--radius);
  padding: 18px;
  display: grid;
  gap: 11px;
}

.route-preview {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  display: grid;
  gap: 11px;
}

.check-row {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  align-items: center;
  color: var(--muted);
  font-size: 14px;
}

.check-row::before {
  content: "";
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background: var(--mint);
  border: 1px solid rgba(11,143,135,0.35);
}

.footer {
  padding: 34px 0 46px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 14px;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 760px) 320px;
  gap: 42px;
  align-items: start;
  padding: 44px 0 60px;
}

.article-main h1 {
  font-size: clamp(40px, 5.5vw, 64px);
}

.article-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 18px 0 24px;
}

.disclosure {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8fafc;
  padding: 14px;
  color: var(--muted);
  font-size: 14px;
  margin: 22px 0;
}

.toc {
  position: sticky;
  top: 92px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 16px;
}

.toc h2 {
  margin-bottom: 12px;
  font-size: 18px;
}

.toc a {
  display: block;
  padding: 8px 0;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 14px;
  font-weight: 700;
}

.toc a:hover {
  color: var(--teal);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.comparison-table th,
.comparison-table td {
  border-bottom: 1px solid var(--line);
  padding: 13px;
  text-align: left;
  vertical-align: top;
}

.comparison-table th {
  background: #f8fafc;
  font-size: 13px;
  text-transform: uppercase;
  color: var(--muted);
}

.comparison-table tr:last-child td {
  border-bottom: 0;
}

.article-section {
  padding-top: 28px;
  border-top: 1px solid var(--line);
  margin-top: 32px;
  scroll-margin-top: 120px;
}

.article-section h2 {
  font-size: 30px;
  line-height: 1.1;
  margin-bottom: 12px;
}

.callout {
  border: 1px solid rgba(11,143,135,0.30);
  background: var(--mint);
  border-radius: var(--radius);
  padding: 16px;
  margin: 18px 0;
}

.callout strong {
  display: block;
  margin-bottom: 6px;
}

.cta-box {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 10px 28px rgba(17,24,39,0.06);
  padding: 18px;
  margin: 20px 0;
  display: grid;
  gap: 12px;
}

.cta-box h3 {
  margin: 0;
}

.cta-box p {
  margin: 0;
  color: var(--muted);
}

.workflow-list {
  display: grid;
  gap: 10px;
  padding-left: 0;
  list-style: none;
}

.workflow-list li {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 10px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
}

.workflow-list li::before {
  content: attr(data-step);
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
  font-weight: 950;
  font-size: 13px;
}

@media (max-width: 980px) {
  .header-inner {
    grid-template-columns: 1fr auto;
  }

  .main-nav {
    display: none;
  }

  .hero,
  .blog-hero,
  .featured-layout,
  .lead-band,
  .route-band,
  .article-layout {
    grid-template-columns: 1fr;
  }

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

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

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

  .starter-grid,
  .post-grid,
  .review-grid {
    grid-template-columns: 1fr;
  }

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

  .toc {
    position: static;
  }
}

@media (max-width: 680px) {
  body.admin-bar .site-header {
    top: 46px;
  }

  .container {
    width: min(100% - 28px, 1180px);
  }

  .header-actions {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: 34px 0;
  }

  .blog-hero {
    padding: 34px 0;
  }

  h1 {
    font-size: 42px;
  }

  .hero-proof,
  .category-grid,
  .path-grid,
  .product-grid,
  .article-grid {
    grid-template-columns: 1fr;
  }

  .section-head {
    display: grid;
  }

  .stack-card {
    grid-template-columns: 42px 1fr;
  }

  .stack-card .pill {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .article-card {
    grid-template-columns: 1fr;
  }

  .comparison-table {
    display: block;
    overflow-x: auto;
  }
}

/* Homepage v0.3: reference-led resource blog layout */
.home-hero {
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.70), rgba(251,252,248,0)),
    var(--paper);
}

.home-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 430px);
  gap: 44px;
  align-items: center;
  padding: 58px 0 46px;
}

.home-hero .hero-copy h1 {
  max-width: 820px;
  font-size: clamp(42px, 5.6vw, 70px);
}

.home-hero .hero-copy p {
  max-width: 720px;
  color: var(--muted);
  font-size: 18px;
}

.proof-row {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.proof-row span {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: #465160;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 850;
}

.hero-resource {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 22px;
}

.hero-resource h2 {
  margin: 10px 0;
  font-size: 34px;
  line-height: 1;
}

.hero-resource p {
  color: var(--muted);
  margin-bottom: 18px;
}

.resource-label {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  background: var(--mint);
  color: var(--teal);
  padding: 0 10px;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.resource-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px;
  margin: 18px 0;
}

.resource-steps span {
  min-height: 54px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8fafc;
  color: #465160;
  font-size: 12px;
  font-weight: 900;
}

.resource-steps span:nth-child(1) { background: var(--mint); color: var(--teal); }
.resource-steps span:nth-child(2) { background: var(--sky); color: var(--blue); }
.resource-steps span:nth-child(3) { background: var(--rose); color: var(--coral); }
.resource-steps span:nth-child(4) { background: #fff7df; color: #8a5f0b; }

.intro-strip {
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.intro-strip-inner {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  padding: 16px 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
}

.intro-strip-inner span:first-child {
  color: var(--ink);
}

.section-soft {
  background: #fff;
}

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

.choice-card,
.money-card,
.review-topic,
.resource-card,
.article-list-item,
.method-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.choice-card {
  min-height: 230px;
  padding: 18px;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 11px;
}

.choice-number {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: var(--mint);
  color: var(--teal);
  font-size: 13px;
  font-weight: 950;
}

.choice-card:nth-child(2) .choice-number,
.choice-card:nth-child(5) .choice-number { background: var(--rose); color: var(--coral); }
.choice-card:nth-child(3) .choice-number { background: var(--sky); color: var(--blue); }
.choice-card:nth-child(4) .choice-number { background: #fff7df; color: #8a5f0b; }
.choice-card:nth-child(6) .choice-number { background: #f1f5f9; color: #394150; }

.choice-card h3,
.review-topic h3,
.resource-card h3 {
  margin: 0;
  font-size: 21px;
  line-height: 1.12;
}

.choice-card p,
.review-topic p,
.resource-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.money-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.25fr);
  gap: 18px;
  align-items: stretch;
}

.money-card {
  padding: 22px;
  min-height: 360px;
  display: grid;
  grid-template-rows: auto auto 1fr auto auto;
  gap: 13px;
}

.primary-money {
  background:
    linear-gradient(135deg, rgba(230,246,239,0.96), rgba(255,255,255,0.92)),
    var(--surface);
}

.money-card h3 {
  margin: 0;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1;
}

.money-card p {
  color: var(--muted);
  font-size: 17px;
}

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

.money-meta span {
  border: 1px solid rgba(11,143,135,0.28);
  border-radius: 999px;
  background: #fff;
  color: var(--teal);
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 900;
}

.guide-stack {
  display: grid;
  gap: 10px;
}

.guide-row {
  min-height: 82px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 15px;
  display: grid;
  gap: 4px;
}

.guide-row span,
.article-list-item span {
  color: var(--teal);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.guide-row strong {
  line-height: 1.2;
}

.guide-row em,
.article-list-item em {
  color: var(--muted);
  font-style: normal;
  font-size: 13px;
}

.review-hub {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.review-topic {
  min-height: 260px;
  padding: 18px;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 12px;
}

.review-topic .pill {
  justify-self: start;
}

.method-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 34px;
  align-items: start;
}

.method-panel h2 {
  margin: 8px 0 12px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1;
}

.method-panel p {
  color: var(--muted);
  max-width: 620px;
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.method-item {
  padding: 16px;
  display: grid;
  gap: 8px;
}

.method-item strong {
  font-size: 18px;
}

.method-item span {
  color: var(--muted);
  font-size: 14px;
}

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

.resource-card {
  padding: 14px;
  display: grid;
  gap: 12px;
}

.resource-card .post-thumb {
  min-height: 150px;
}

.article-list {
  display: grid;
  gap: 10px;
}

.article-list-item {
  padding: 16px;
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) minmax(220px, 0.7fr);
  gap: 18px;
  align-items: center;
}

.article-list-item strong {
  line-height: 1.2;
}

.lead-band-light {
  background: #111827;
  color: #fff;
}

.lead-band-light .section-kicker {
  color: var(--lime);
}

.lead-band-light .checklist-preview {
  box-shadow: none;
}

.choice-card:hover,
.money-card:hover,
.guide-row:hover,
.review-topic:hover,
.resource-card:hover,
.article-list-item:hover {
  border-color: rgba(11,143,135,0.45);
  box-shadow: 0 12px 28px rgba(17,24,39,0.07);
}

@media (max-width: 980px) {
  .home-hero-inner,
  .money-layout,
  .method-panel {
    grid-template-columns: 1fr;
  }

  .choice-grid,
  .review-hub,
  .resource-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .article-list-item {
    grid-template-columns: 110px 1fr;
  }

  .article-list-item em {
    grid-column: 2;
  }
}

@media (max-width: 680px) {
  .home-hero-inner {
    padding: 34px 0;
  }

  .home-hero .hero-copy h1 {
    font-size: 40px;
  }

  .intro-strip-inner {
    display: grid;
  }

  .choice-grid,
  .review-hub,
  .resource-grid,
  .method-grid,
  .resource-steps {
    grid-template-columns: 1fr;
  }

  .article-list-item {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .article-list-item em {
    grid-column: auto;
  }
}
