/* ============================================================
   QuickHardDrive Theme — Main Stylesheet
   Aesthetic: Warm editorial neutral — think Wirecutter meets
   a well-designed hardware magazine. Off-white ground, slate
   text, one clean steel-blue accent. Reads authoritative and
   trustworthy, not hacker-terminal.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Bitter:ital,wght@0,400;0,600;0,700;1,400&family=Figtree:wght@300;400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');

/* ── DESIGN TOKENS ── */
:root {
  --bg:          #f5f2ee;
  --bg-card:     #ffffff;
  --bg-inset:    #edeae5;
  --bg-dark:     #1e2328;

  --border:      #ddd9d3;
  --border-mid:  #ccc8c1;

  --ink:         #1a1e23;
  --ink-2:       #4a5058;
  --ink-3:       #7a8190;
  --ink-4:       #a8adb5;

  --blue:        #2f6fad;
  --blue-light:  #eaf2fb;
  --blue-dark:   #1d4f80;

  --green:       #2a7a4b;
  --green-bg:    #edf7f1;
  --red:         #c0392b;
  --red-bg:      #fdf0ef;
  --amber:       #b45309;
  --amber-bg:    #fef3e2;
  --amazon:      #e47911;

  --serif:  'Bitter', Georgia, serif;
  --sans:   'Figtree', system-ui, sans-serif;
  --mono:   'JetBrains Mono', 'Courier New', monospace;

  --radius-sm: 4px;
  --radius:    8px;
  --radius-lg: 14px;
  --max-w:     1180px;

  --shadow-xs: 0 1px 3px rgba(0,0,0,.07);
  --shadow-sm: 0 2px 8px rgba(0,0,0,.09);
  --shadow-md: 0 4px 18px rgba(0,0,0,.11);
  --shadow-lg: 0 8px 36px rgba(0,0,0,.13);
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image:
    radial-gradient(ellipse at 20% 0%, rgba(180,160,130,.08) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 100%, rgba(47,111,173,.05) 0%, transparent 60%);
  pointer-events: none; z-index: 0;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; transition: color .15s; }
a:hover { color: var(--blue-dark); text-decoration: underline; text-decoration-color: rgba(47,111,173,.35); }
ul, ol { list-style: none; }
input, button, textarea, select { font-family: inherit; }

/* ── TYPOGRAPHY ── */
h1,h2,h3,h4,h5,h6 { font-family: var(--serif); font-weight: 700; line-height: 1.2; letter-spacing:-.01em; color: var(--ink); }
h1 { font-size: clamp(1.85rem,4vw,2.9rem); }
h2 { font-size: clamp(1.35rem,2.5vw,1.9rem); }
h3 { font-size: 1.2rem; }
h4 { font-size: 1rem; font-weight: 600; }
p  { margin-bottom: 1rem; color: var(--ink-2); }
p:last-child { margin-bottom: 0; }

.entry-content { color: var(--ink-2); line-height: 1.8; font-size: 1.02rem; }
.entry-content h2 { margin: 2.5rem 0 .9rem; font-size: 1.55rem; border-bottom: 2px solid var(--border); padding-bottom: .5rem; }
.entry-content h3 { margin: 2rem 0 .7rem; color: var(--blue-dark); }
.entry-content p  { margin-bottom: 1.3rem; }
.entry-content a  { color: var(--blue); font-weight: 500; }
.entry-content a:hover { color: var(--blue-dark); }
.entry-content strong { color: var(--ink); font-weight: 600; }
.entry-content ul,.entry-content ol { padding-left: 1.5rem; margin-bottom: 1.3rem; }
.entry-content ul { list-style: disc; }
.entry-content ol { list-style: decimal; }
.entry-content li { margin-bottom: .45rem; color: var(--ink-2); }
.entry-content blockquote { border-left: 3px solid var(--blue); padding: 1rem 1.5rem; margin: 1.75rem 0; background: var(--blue-light); border-radius: 0 var(--radius) var(--radius) 0; font-style: italic; color: var(--ink-2); }
.entry-content code { font-family: var(--mono); font-size: .82em; background: var(--bg-inset); border: 1px solid var(--border); padding: .12em .38em; border-radius: var(--radius-sm); color: var(--blue-dark); }
.entry-content pre { background: var(--bg-inset); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; overflow-x: auto; margin-bottom: 1.25rem; }
.entry-content pre code { background: none; border: none; padding: 0; color: var(--ink); }
.entry-content table { width: 100%; border-collapse: collapse; margin-bottom: 1.5rem; font-size: .92rem; }
.entry-content th { background: var(--bg-inset); font-family: var(--mono); font-size: .68rem; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-3); padding: .75rem 1rem; text-align: left; border-bottom: 2px solid var(--border-mid); font-weight: 500; }
.entry-content td { padding: .75rem 1rem; border-bottom: 1px solid var(--border); color: var(--ink-2); }
.entry-content tr:hover td { background: var(--bg-inset); }

/* ── UTILITIES ── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; }
.section    { padding: 3.5rem 0; }
.section-sm { padding: 2.25rem 0; }
.sr-only    { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

.btn {
  display: inline-flex; align-items: center; gap: .4rem;
  font-family: var(--sans); font-size: .84rem; font-weight: 600;
  padding: .72rem 1.4rem; border-radius: var(--radius);
  cursor: pointer; border: none; text-decoration: none; line-height: 1;
  transition: transform .15s, box-shadow .15s, background .15s, color .15s;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); color: #fff; box-shadow: var(--shadow-md); }
.btn-secondary { background: var(--bg-card); color: var(--ink-2); border: 1.5px solid var(--border-mid); box-shadow: var(--shadow-xs); }
.btn-secondary:hover { border-color: var(--blue); color: var(--blue); box-shadow: var(--shadow-sm); }
.btn-amazon { background: var(--amazon); color: #fff; font-size: .78rem; }
.btn-amazon:hover { background: #c96a08; color: #fff; box-shadow: 0 3px 12px rgba(228,121,17,.3); }

.card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-xs);
  transition: box-shadow .2s, transform .2s, border-color .2s;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: var(--border-mid); }

.badge { font-family: var(--mono); font-size: .6rem; font-weight: 500; text-transform: uppercase; letter-spacing: .09em; padding: .22rem .55rem; border-radius: var(--radius-sm); display: inline-block; line-height: 1.4; }
.badge-blue    { background: var(--blue-light); color: var(--blue-dark); border: 1px solid rgba(47,111,173,.2); }
.badge-green   { background: var(--green-bg);   color: var(--green); }
.badge-amber   { background: var(--amber-bg);   color: var(--amber); }
.badge-red     { background: var(--red-bg);     color: var(--red); }
.badge-neutral { background: var(--bg-inset);   color: var(--ink-3); border: 1px solid var(--border); }

/* ── NAVIGATION ── */
#site-header { position: sticky; top: 0; z-index: 1000; background: var(--bg-dark); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.site-branding a { font-family: var(--serif); font-size: 1.15rem; font-weight: 700; letter-spacing: -.02em; color: #fff; text-decoration: none; }
.site-branding a:hover { text-decoration: none; color: #fff; }
.site-branding a span { color: #a8c8e8; }

#primary-menu { display: flex; gap: .1rem; align-items: center; }
#primary-menu li { position: relative; }
#primary-menu a { font-family: var(--sans); font-size: .8rem; font-weight: 500; color: rgba(255,255,255,.65); padding: .45rem .9rem; border-radius: var(--radius-sm); transition: color .15s, background .15s; display: block; white-space: nowrap; text-decoration: none; }
#primary-menu a:hover, #primary-menu .current-menu-item > a { color: #fff; background: rgba(255,255,255,.1); text-decoration: none; }
#primary-menu .sub-menu { position: absolute; top: 100%; left: 0; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg); min-width: 200px; opacity: 0; pointer-events: none; transform: translateY(6px); transition: opacity .2s, transform .2s; z-index: 100; padding: .4rem; }
#primary-menu li:hover > .sub-menu { opacity: 1; pointer-events: all; transform: none; }
#primary-menu .sub-menu a { color: var(--ink-2); font-size: .8rem; border-radius: var(--radius-sm); }
#primary-menu .sub-menu a:hover { color: var(--blue); background: var(--blue-light); }
.header-cta { font-family: var(--sans); font-size: .78rem; font-weight: 600; background: var(--blue); color: #fff; padding: .42rem 1rem; border-radius: var(--radius-sm); transition: background .15s; white-space: nowrap; text-decoration: none; }
.header-cta:hover { background: var(--blue-dark); color: #fff; text-decoration: none; }
.menu-toggle { display: none; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); border-radius: var(--radius-sm); padding: .4rem .6rem; cursor: pointer; color: #fff; }
.menu-toggle span { display: block; width: 18px; height: 2px; background: currentColor; margin: 3px 0; }

/* Category tab bar */
.cat-bar { background: var(--bg-card); border-bottom: 1px solid var(--border); }
.cat-bar-inner { display: flex; overflow-x: auto; scrollbar-width: none; }
.cat-bar-inner::-webkit-scrollbar { display: none; }
.cat-bar-item { font-family: var(--sans); font-size: .78rem; font-weight: 500; color: var(--ink-3); padding: .7rem 1.1rem; border-bottom: 2px solid transparent; white-space: nowrap; transition: color .15s, border-color .15s; text-decoration: none; display: block; }
.cat-bar-item:hover { color: var(--blue); border-bottom-color: var(--blue); text-decoration: none; }
.cat-bar-item.active { color: var(--blue); border-bottom-color: var(--blue); font-weight: 600; }

/* ── TICKER ── */
.news-ticker { background: var(--bg-inset); border-bottom: 1px solid var(--border); overflow: hidden; padding: .5rem 0; }
.ticker-track { display: flex; gap: 3rem; animation: ticker-scroll 40s linear infinite; white-space: nowrap; }
.ticker-track:hover { animation-play-state: paused; }
.ticker-item { font-family: var(--mono); font-size: .67rem; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-3); display: flex; align-items: center; gap: .5rem; flex-shrink: 0; }
.ticker-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--blue); flex-shrink: 0; opacity: .55; }
@keyframes ticker-scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ── HERO ── */
.hero-section {
  padding: 4rem 0 3rem;
  border-bottom: 1px solid var(--border);
  position: relative; overflow: hidden;
}
.hero-section::before {
  content: '';
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 44px 44px;
  opacity: .18; pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1fr 300px; gap: 4rem; align-items: center; position: relative; }
.hero-eyebrow { font-family: var(--mono); font-size: .7rem; text-transform: uppercase; letter-spacing: .12em; color: var(--blue); margin-bottom: 1rem; display: flex; align-items: center; gap: .5rem; }
.hero-eyebrow::before { content: ''; width: 18px; height: 1.5px; background: var(--blue); }
.hero-section h1 { margin-bottom: 1.1rem; }
.hero-section h1 em { font-style: normal; color: var(--blue); background: linear-gradient(to bottom, transparent 65%, rgba(47,111,173,.18) 65%); }
.hero-section .lead { font-size: 1.05rem; color: var(--ink-3); max-width: 480px; margin-bottom: 2rem; line-height: 1.75; }
.hero-actions { display: flex; gap: .75rem; flex-wrap: wrap; }

.hero-stats-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); overflow: hidden; }
.stats-card-head { background: var(--bg-dark); color: rgba(255,255,255,.5); font-family: var(--mono); font-size: .6rem; text-transform: uppercase; letter-spacing: .12em; padding: .72rem 1.25rem; }
.stat-item { display: flex; align-items: flex-start; gap: .85rem; padding: 1rem 1.25rem; border-bottom: 1px solid var(--border); }
.stat-item:last-child { border-bottom: none; }
.stat-num { font-family: var(--mono); font-size: 1.4rem; font-weight: 700; color: var(--blue); line-height: 1; min-width: 2.8rem; white-space: nowrap; }
.stat-desc { font-size: .79rem; color: var(--ink-3); line-height: 1.45; padding-top: .15rem; }

/* ── SECTION HEADERS ── */
.section-header { display: flex; align-items: baseline; justify-content: space-between; border-bottom: 2px solid var(--ink); padding-bottom: .65rem; margin-bottom: 1.75rem; }
.section-heading { font-family: var(--serif); font-size: 1.25rem; font-weight: 700; }
.section-heading .label-tag { font-family: var(--mono); font-size: .6rem; font-weight: 500; text-transform: uppercase; letter-spacing: .1em; color: var(--blue); margin-right: .5rem; }
.section-all-link { font-family: var(--sans); font-size: .78rem; font-weight: 500; color: var(--blue); }
.section-all-link:hover { color: var(--blue-dark); }

/* ── POST GRID ── */
.post-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.25rem; }
.post-card-wide { grid-column: span 2; display: grid; grid-template-columns: 260px 1fr; }
.post-card-wide .card-thumb { height: 100%; min-height: 200px; }
.card-thumb { height: 170px; display: flex; align-items: center; justify-content: center; font-size: 2.8rem; position: relative; overflow: hidden; background: var(--bg-inset); }
.card-thumb .thumb-emoji { position: relative; z-index: 1; opacity: .75; }
.card-thumb.bg-minipc  { background: linear-gradient(135deg,#dce8f5,#edf3fb); }
.card-thumb.bg-storage { background: linear-gradient(135deg,#ddf0e8,#edf7f1); }
.card-thumb.bg-nas     { background: linear-gradient(135deg,#f5e8dc,#fdf4ee); }
.card-thumb.bg-deals   { background: linear-gradient(135deg,#fef3e2,#fffbf0); }
.card-thumb.bg-tools   { background: linear-gradient(135deg,#e8ddf5,#f4eeff); }
.card-thumb-badge { position: absolute; top: .65rem; left: .65rem; z-index: 2; }
.card-body { padding: 1.25rem; background: var(--bg-card); }
.card-meta { font-family: var(--mono); font-size: .62rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-4); margin-bottom: .4rem; }
.card-title { font-family: var(--serif); font-size: 1rem; font-weight: 700; line-height: 1.3; margin-bottom: .6rem; }
.card-title a { color: var(--ink); transition: color .15s; }
.card-title a:hover { color: var(--blue); text-decoration: none; }
.card-excerpt { font-size: .84rem; color: var(--ink-3); line-height: 1.6; margin-bottom: .9rem; }
.card-footer-bar { display: flex; align-items: center; justify-content: space-between; padding-top: .75rem; border-top: 1px solid var(--border); }
.read-more { font-size: .75rem; font-weight: 600; color: var(--blue); display: flex; align-items: center; gap: .3rem; transition: gap .15s; }
.read-more:hover { gap: .55rem; color: var(--blue-dark); text-decoration: none; }
.card-time { font-family: var(--mono); font-size: .6rem; color: var(--ink-4); }

/* ── PRICE TRACKER ── */
.price-tracker-wrap { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-xs); }
.tracker-topbar { background: var(--bg-inset); padding: 1rem 1.5rem; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--border); }
.tracker-topbar-title { font-family: var(--serif); font-size: .95rem; font-weight: 700; }
.live-pill { font-family: var(--mono); font-size: .6rem; text-transform: uppercase; letter-spacing: .09em; color: var(--ink-3); display: flex; align-items: center; gap: .4rem; }
.live-dot { width: 6px; height: 6px; background: var(--green); border-radius: 50%; animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity:1; } 50% { opacity:.3; } }
.tracker-table { width: 100%; border-collapse: collapse; }
.tracker-table th { font-family: var(--mono); font-size: .62rem; text-transform: uppercase; letter-spacing: .09em; color: var(--ink-3); padding: .75rem 1.5rem; text-align: left; border-bottom: 1px solid var(--border-mid); background: var(--bg-inset); font-weight: 500; }
.tracker-table td { padding: .9rem 1.5rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
.tracker-table tr:last-child td { border-bottom: none; }
.tracker-table tbody tr:hover td { background: var(--bg-inset); }
.product-name { font-size: .9rem; font-weight: 600; color: var(--ink); }
.product-chip { font-family: var(--mono); font-size: .62rem; color: var(--ink-4); display: block; margin-top: .2rem; }
.price-val { font-family: var(--mono); font-weight: 700; color: var(--green); font-size: .95rem; }
.delta { font-family: var(--mono); font-size: .65rem; padding: .2rem .5rem; border-radius: var(--radius-sm); font-weight: 500; white-space: nowrap; }
.delta-down { background: var(--green-bg); color: var(--green); }
.delta-up   { background: var(--red-bg);   color: var(--red); }
.delta-flat { background: var(--bg-inset); color: var(--ink-3); }
.use-case-tag { font-size: .8rem; color: var(--ink-3); }

/* ── TOOLS ── */
.tools-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; }
.tool-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.5rem; text-decoration: none; display: block; box-shadow: var(--shadow-xs); transition: box-shadow .2s, transform .2s; position: relative; overflow: hidden; }
.tool-card::after { content: ''; position: absolute; bottom: 0; left: 1.5rem; right: 1.5rem; height: 2px; background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.tool-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); text-decoration: none; }
.tool-card:hover::after { transform: scaleX(1); }
.tool-icon { font-size: 1.75rem; margin-bottom: .85rem; display: block; }
.tool-name { font-family: var(--serif); font-size: .98rem; font-weight: 700; margin-bottom: .35rem; color: var(--ink); }
.tool-desc { font-size: .8rem; color: var(--ink-3); line-height: 1.55; }

/* ── GUIDE LIST + SIDEBAR ── */
.guide-layout { display: grid; grid-template-columns: 1fr 280px; gap: 1.75rem; align-items: start; }
.guide-list { display: flex; flex-direction: column; gap: .75rem; }
.guide-row { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.1rem 1.25rem; display: flex; align-items: center; gap: 1.1rem; text-decoration: none; box-shadow: var(--shadow-xs); transition: box-shadow .2s, transform .15s, border-color .2s; }
.guide-row:hover { box-shadow: var(--shadow-sm); transform: translateX(3px); border-color: var(--blue); text-decoration: none; }
.guide-num { font-family: var(--mono); font-size: 1.3rem; font-weight: 700; color: var(--border-mid); min-width: 2rem; line-height: 1; }
.guide-info h4 { font-family: var(--serif); font-size: .92rem; font-weight: 700; color: var(--ink); margin-bottom: .2rem; line-height: 1.3; }
.guide-info p  { font-size: .78rem; color: var(--ink-3); line-height: 1.4; }
.sidebar-sticky { position: sticky; top: 72px; display: flex; flex-direction: column; gap: 1.1rem; }
.sidebar-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-xs); }
.sidebar-card-head { background: var(--bg-inset); padding: .72rem 1.1rem; border-bottom: 1px solid var(--border); font-family: var(--mono); font-size: .62rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-3); font-weight: 500; }
.sidebar-picks { padding: .75rem; display: flex; flex-direction: column; gap: .6rem; }
.sidebar-pick { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: .85rem; display: flex; gap: .75rem; align-items: flex-start; text-decoration: none; transition: border-color .15s, background .15s; }
.sidebar-pick:hover { border-color: var(--blue); background: var(--blue-light); text-decoration: none; }
.pick-icon { font-size: 1.3rem; flex-shrink: 0; line-height: 1; margin-top: .1rem; }
.pick-name { font-size: .8rem; font-weight: 600; color: var(--ink); margin-bottom: .15rem; line-height: 1.3; }
.pick-note { font-family: var(--mono); font-size: .62rem; color: var(--blue-dark); }

/* ── NEWSLETTER ── */
.newsletter-section { background: var(--bg-dark); border-radius: var(--radius-lg); padding: 2.75rem; text-align: center; position: relative; overflow: hidden; }
.newsletter-section::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 0%,rgba(47,111,173,.25) 0%,transparent 65%); pointer-events: none; }
.newsletter-section h2 { color: #fff; margin-bottom: .6rem; position: relative; }
.newsletter-section p  { color: rgba(255,255,255,.6); max-width: 400px; margin: 0 auto 1.75rem; position: relative; }
.nl-form { display: flex; gap: .65rem; max-width: 400px; margin: 0 auto; position: relative; }
.nl-form input { flex: 1; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); border-radius: var(--radius); padding: .78rem 1rem; color: #fff; outline: none; transition: border-color .15s; font-size: .9rem; }
.nl-form input:focus { border-color: rgba(255,255,255,.5); }
.nl-form input::placeholder { color: rgba(255,255,255,.35); }
.nl-form button { font-size: .8rem; font-weight: 600; background: var(--blue); color: #fff; border: none; border-radius: var(--radius); padding: .78rem 1.25rem; cursor: pointer; white-space: nowrap; transition: background .15s; }
.nl-form button:hover { background: var(--blue-dark); }

/* ── AFFILIATE BOX ── */
.affiliate-box { background: var(--bg-card); border: 1px solid var(--border-mid); border-left: 3px solid var(--blue); border-radius: var(--radius); padding: 1.25rem 1.5rem; margin: 1.75rem 0; display: flex; align-items: center; gap: 1.25rem; box-shadow: var(--shadow-xs); }
.affiliate-box .aff-icon { font-size: 2.2rem; flex-shrink: 0; }
.affiliate-box .aff-name { font-family: var(--serif); font-weight: 700; font-size: .95rem; color: var(--ink); margin-bottom: .2rem; }
.affiliate-box .aff-desc { font-size: .8rem; color: var(--ink-3); }
.affiliate-box .aff-price { font-family: var(--mono); font-weight: 700; color: var(--green); font-size: 1.05rem; margin-bottom: .55rem; }

/* ── DISCLOSURE ── */
.disclosure-bar { background: var(--bg-inset); border-top: 1px solid var(--border); text-align: center; padding: .55rem 1.5rem; font-family: var(--mono); font-size: .6rem; color: var(--ink-3); }
.disclosure-bar a { color: var(--ink-3); }
.disclosure-bar a:hover { color: var(--blue); }

/* ── SINGLE POST ── */
.single-layout { display: grid; grid-template-columns: 1fr 270px; gap: 2.5rem; align-items: start; }
.single-hero { padding: 2.5rem 0 2rem; border-bottom: 1px solid var(--border); margin-bottom: 2rem; }
.post-meta-bar { font-family: var(--mono); font-size: .65rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); margin-bottom: .9rem; display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; }
.post-meta-bar a { color: var(--blue); text-decoration: none; }
.post-meta-sep { color: var(--border-mid); }
.single-hero .post-intro { font-size: 1.1rem; color: var(--ink-2); line-height: 1.75; margin-top: .85rem; }
.toc-box { background: var(--blue-light); border: 1px solid rgba(47,111,173,.2); border-radius: var(--radius); padding: 1.25rem; margin-bottom: 2rem; }
.toc-box h4 { font-family: var(--mono); font-size: .68rem; text-transform: uppercase; letter-spacing: .09em; color: var(--blue-dark); margin-bottom: .75rem; font-weight: 600; }
.toc-box ol { list-style: decimal; padding-left: 1.25rem; }
.toc-box li { margin-bottom: .4rem; }
.toc-box a  { font-size: .84rem; color: var(--blue); font-weight: 500; }
.related-posts { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--border); }

/* ── FOOTER ── */
#site-footer { border-top: 1px solid var(--border); margin-top: 2rem; background: var(--bg-card); }
.footer-main { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; padding: 3rem 0; }
.footer-brand-logo { font-family: var(--serif); font-size: 1.1rem; font-weight: 700; color: var(--ink); text-decoration: none; display: inline-block; margin-bottom: .85rem; }
.footer-brand-logo span { color: var(--blue); }
.footer-brand-logo:hover { text-decoration: none; color: var(--ink); }
.footer-brand p { font-size: .83rem; color: var(--ink-3); line-height: 1.65; max-width: 260px; }
.footer-col h4 { font-family: var(--mono); font-size: .62rem; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-3); margin-bottom: 1rem; font-weight: 500; }
.footer-col ul li { margin-bottom: .55rem; }
.footer-col a { font-size: .83rem; color: var(--ink-3); transition: color .15s; }
.footer-col a:hover { color: var(--blue); text-decoration: none; }
.footer-bottom { border-top: 1px solid var(--border); padding: 1.1rem 0; display: flex; align-items: center; justify-content: space-between; font-family: var(--mono); font-size: .6rem; color: var(--ink-4); }
.footer-bottom-links { display: flex; gap: 1.5rem; }
.footer-bottom-links a { color: var(--ink-4); }
.footer-bottom-links a:hover { color: var(--blue); }

/* ── ARCHIVE ── */
.archive-header { padding: 2.5rem 0 2rem; border-bottom: 2px solid var(--ink); margin-bottom: 2.5rem; }
.archive-header .archive-label { font-family: var(--mono); font-size: .68rem; text-transform: uppercase; letter-spacing: .12em; color: var(--blue); margin-bottom: .4rem; }

/* ── 404 ── */
.error-404 { text-align: center; padding: 6rem 2rem; }
.error-code { font-family: var(--mono); font-size: 7rem; font-weight: 700; color: var(--border-mid); line-height: 1; margin-bottom: 1rem; }

/* ── PAGINATION ── */
.pagination { display: flex; gap: .4rem; justify-content: center; padding: 2rem 0; }
.pagination .page-numbers { font-family: var(--mono); font-size: .72rem; background: var(--bg-card); border: 1px solid var(--border); padding: .5rem .85rem; border-radius: var(--radius-sm); color: var(--ink-3); transition: all .15s; box-shadow: var(--shadow-xs); }
.pagination .page-numbers:hover { border-color: var(--blue); color: var(--blue); }
.pagination .current { background: var(--blue); border-color: var(--blue); color: #fff; }

/* ── COMMENTS ── */
.comments-section { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--border); }
.comment { padding: 1.25rem 0; border-bottom: 1px solid var(--border); }
.comment-author-name { font-weight: 700; color: var(--ink); font-size: .9rem; }
.comment-meta { font-family: var(--mono); font-size: .62rem; color: var(--ink-3); margin-bottom: .75rem; }
.comment-form label { font-size: .78rem; font-weight: 600; color: var(--ink-2); display: block; margin-bottom: .35rem; }
.comment-form input[type="text"],.comment-form input[type="email"],.comment-form textarea { width: 100%; background: var(--bg); border: 1px solid var(--border-mid); border-radius: var(--radius); padding: .72rem 1rem; color: var(--ink); outline: none; margin-bottom: 1rem; transition: border-color .15s; }
.comment-form input:focus,.comment-form textarea:focus { border-color: var(--blue); }
.comment-form textarea { min-height: 130px; resize: vertical; }

/* ── SEARCH ── */
.search-form { display: flex; gap: .5rem; }
.search-form input[type="search"] { flex: 1; background: var(--bg-card); border: 1px solid var(--border-mid); border-radius: var(--radius); padding: .65rem 1rem; color: var(--ink); outline: none; transition: border-color .15s; }
.search-form input:focus { border-color: var(--blue); }
.search-form button { background: var(--blue); border: none; border-radius: var(--radius); padding: .65rem 1.1rem; cursor: pointer; color: #fff; font-weight: 600; transition: background .15s; }
.search-form button:hover { background: var(--blue-dark); }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .hero-grid      { grid-template-columns: 1fr; }
  .hero-stats-card { display: none; }
  .footer-main    { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .guide-layout   { grid-template-columns: 1fr; }
  .single-layout  { grid-template-columns: 1fr; }
  .sidebar-sticky { position: static; }
}
@media (max-width: 768px) {
  .post-grid { grid-template-columns: 1fr 1fr; }
  .post-card-wide { grid-column: span 2; grid-template-columns: 1fr; }
  .post-card-wide .card-thumb { height: 175px; }
  .tools-grid { grid-template-columns: 1fr 1fr; }
  #primary-menu { display: none; }
  #primary-menu.is-open { display: flex; flex-direction: column; position: absolute; top: 56px; left: 0; right: 0; background: var(--bg-card); border-bottom: 1px solid var(--border); box-shadow: var(--shadow-md); padding: .75rem; gap: .15rem; z-index: 999; }
  #primary-menu.is-open a { color: var(--ink-2); }
  #primary-menu.is-open a:hover { color: var(--blue); background: var(--blue-light); }
  .menu-toggle { display: block; }
  .tracker-table th:nth-child(3),.tracker-table td:nth-child(3) { display: none; }
  .tracker-table th:nth-child(4),.tracker-table td:nth-child(4) { display: none; }
}
@media (max-width: 560px) {
  .post-grid    { grid-template-columns: 1fr; }
  .post-card-wide { grid-column: span 1; }
  .tools-grid   { grid-template-columns: 1fr; }
  .footer-main  { grid-template-columns: 1fr; }
  .nl-form      { flex-direction: column; }
  .hero-actions { flex-direction: column; }
  .section-header { flex-direction: column; gap: .5rem; }
}
