/* ============================================================
   finditrate.com — Design System
   Modern · minimal · airy · neutral, with a magenta accent.
   Type: Archivo (display/headline) + Public Sans (body/UI)
   ============================================================ */

:root {
  --accent: #E63462;
  --accent-ink: #ffffff;
  --accent-soft: #fdeef2;

  --ink:      #15171c;   /* near-black text */
  --ink-2:    #3d424d;   /* secondary text */
  --ink-3:    #6b7280;   /* muted */
  --ink-4:    #9aa0ab;   /* faint */
  --line:     #e8e9ec;   /* hairline borders */
  --line-2:   #f1f2f4;
  --bg:       #ffffff;
  --bg-2:     #f7f8fa;   /* page wash */
  --bg-3:     #fbfbfc;
  --paper:    #ffffff;

  --radius:   14px;
  --radius-sm: 10px;
  --radius-lg: 20px;

  --shadow-sm: 0 1px 2px rgba(20,23,28,.04), 0 1px 3px rgba(20,23,28,.06);
  --shadow:    0 4px 16px rgba(20,23,28,.07), 0 1px 3px rgba(20,23,28,.05);
  --shadow-lg: 0 18px 50px rgba(20,23,28,.16);

  --maxw: 1160px;
  --font-display: "Archivo", system-ui, sans-serif;
  --font-body: "Public Sans", system-ui, sans-serif;

  --ease: cubic-bezier(.2,.7,.2,1);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
::selection { background: var(--accent); color: #fff; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.1; letter-spacing: -.02em; margin: 0; color: var(--ink); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 40px; }
.muted { color: var(--ink-3); }
.faint { color: var(--ink-4); }

/* ---------- eyebrow / kicker ---------- */
.kicker {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-display);
  font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent);
}
.kicker::before { content: ""; width: 18px; height: 2px; background: var(--accent); border-radius: 2px; }

/* ---------- pill / category chip ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--accent); background: var(--accent-soft);
  padding: 5px 10px; border-radius: 999px; line-height: 1;
}
.chip.ghost { color: var(--ink-2); background: var(--bg-2); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-display); font-weight: 600; font-size: 14.5px;
  padding: 11px 20px; border-radius: 999px; border: 1px solid transparent;
  background: var(--ink); color: #fff; transition: transform .15s var(--ease), background .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn.accent { background: var(--accent); }
.btn.outline { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.outline:hover { border-color: var(--ink); }
.btn.ghost { background: var(--bg-2); color: var(--ink); }
.btn.sm { padding: 8px 14px; font-size: 13px; }
.btn.lg { padding: 14px 26px; font-size: 16px; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

/* ---------- form fields ---------- */
.field {
  width: 100%; font-family: var(--font-body); font-size: 14.5px; color: var(--ink);
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 11px 13px; transition: border-color .15s, box-shadow .15s;
}
.field:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
textarea.field { resize: vertical; min-height: 90px; line-height: 1.55; }
.label { display: block; font-size: 12.5px; font-weight: 700; color: var(--ink-2); margin-bottom: 6px; font-family: var(--font-display); letter-spacing: .01em; }
.field-row { margin-bottom: 16px; }

/* repeatable editor rows (pre-blog benefits/pros) */
.rep-row { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 10px; }
.rep-num { width: 26px; height: 26px; border-radius: 7px; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: 13px; display: grid; place-items: center; flex-shrink: 0; margin-top: 7px; font-family: var(--font-display); }

/* small icon button */
.icon-btn.sm { width: 28px; height: 28px; border-radius: 7px; }
.icon-btn:disabled { opacity: .35; cursor: not-allowed; }

/* block builder */
.blk { border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); overflow: hidden; }
.blk-head { display: flex; align-items: center; gap: 6px; padding: 9px 10px 9px 14px; background: var(--bg-3); border-bottom: 1px solid var(--line); }
.blk-badge { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-display); font-weight: 700; font-size: 12.5px; color: var(--ink-2); text-transform: uppercase; letter-spacing: .04em; }
.blk-body { padding: 14px; }
.blk-add { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border: 0; background: transparent; border-radius: 8px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); text-align: left; cursor: pointer; font-family: var(--font-display); }
.blk-add:hover { background: var(--bg-2); color: var(--accent); }

/* pre-blog list rows */
.pre-row { display: flex; align-items: center; gap: 12px; padding: 11px 16px; border-bottom: 1px solid var(--line-2); }
.pre-row--head { background: var(--bg-3); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-4); }
.pre-col { width: 110px; flex-shrink: 0; }
@media (max-width: 720px) { .pre-col { display: none; } }

/* logs table */
.logtable { width: 100%; border-collapse: collapse; font-size: 13px; }
.logtable th { text-align: left; font-family: var(--font-display); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-4); padding: 11px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.logtable td { padding: 11px 14px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.logtable tbody tr:hover { background: var(--bg-3); }
.rep-tab { background: none; border: 0; padding: 12px 6px; margin-bottom: -1px; font-family: var(--font-display); font-weight: 700; font-size: 14.5px; cursor: pointer; }

/* ---------- cards ---------- */
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }

/* ============================================================
   AD SLOTS — responsive, AdSense-optimized placeholders
   ============================================================ */
.ad {
  position: relative; width: 100%;
  background:
    repeating-linear-gradient(135deg, #fafbfc 0 12px, #f4f5f7 12px 24px);
  border: 1px dashed #d7dae0; border-radius: var(--radius-sm);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: var(--ink-4); text-align: center; min-height: 90px; overflow: hidden;
}
.ad__tag { position: absolute; top: 8px; left: 10px; font-size: 9.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-4); }
.ad__size { font-family: var(--font-display); font-weight: 700; font-size: 15px; color: var(--ink-3); letter-spacing: .02em; }
.ad__meta { font-size: 11px; color: var(--ink-4); margin-top: 3px; }
.ad--leaderboard { min-height: 90px; max-width: 728px; margin: 0 auto; }
.ad--rect { aspect-ratio: 300/250; max-width: 300px; }
.ad--large { aspect-ratio: 336/280; max-width: 336px; margin: 0 auto; }
.ad--infeed { min-height: 120px; }
.ad--article { min-height: 110px; margin: 28px 0; }
.ad--live { background: #fff; border-style: solid; border-color: var(--line); }

/* sticky anchor ad */
.anchor-ad {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
  background: rgba(255,255,255,.97); backdrop-filter: blur(8px);
  border-top: 1px solid var(--line); box-shadow: 0 -6px 24px rgba(20,23,28,.08);
  display: flex; align-items: center; justify-content: center; gap: 14px;
  padding: 10px 16px; animation: anchorUp .4s var(--ease);
}
@keyframes anchorUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
.anchor-ad .ad { min-height: 60px; max-width: 728px; }
.anchor-ad__close {
  position: absolute; top: -13px; right: 14px; width: 28px; height: 28px;
  border-radius: 50%; background: var(--ink); color: #fff; border: 2px solid #fff;
  display: grid; place-items: center; box-shadow: var(--shadow);
}

/* ---------- skip / utility ---------- */
.hide { display: none !important; }
.spin { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.fade-in { animation: fadeIn .4s var(--ease) both; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- prose (article body) ---------- */
.prose { font-size: 17.5px; line-height: 1.75; color: var(--ink-2); }
.prose > p, .prose > h2, .prose > h3, .prose > blockquote, .prose > ul, .prose > ol, .prose > img { margin: 0 0 22px; }
.prose h2 { font-size: 27px; color: var(--ink); margin-top: 38px; }
.prose h3 { font-size: 21px; color: var(--ink); margin-top: 30px; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose blockquote {
  margin: 28px 0; padding: 4px 0 4px 24px; border-left: 3px solid var(--accent);
  font-family: var(--font-display); font-size: 22px; line-height: 1.4; font-weight: 600; color: var(--ink); font-style: normal;
}
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.prose img { border-radius: var(--radius); }
.admin-editor:empty::before { content: "Write your story…"; color: var(--ink-4); }
.admin-editor:focus { outline: none; }

/* ---------- rich article body elements ---------- */
.prose .lead { font-size: 20px; line-height: 1.6; color: var(--ink); font-weight: 500; }
.prose .callout { display: block; background: var(--accent-soft); border-radius: 12px; padding: 16px 20px; color: var(--ink); font-size: 15.5px; line-height: 1.6; margin: 0 0 24px; }
.prose .callout-tag { display: inline-block; font-family: var(--font-display); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-right: 10px; }
.prose figure.media { margin: 0 0 28px; }
.prose figure.media img { width: 100%; border-radius: var(--radius); aspect-ratio: 16/9; object-fit: cover; background: var(--line-2); }
.prose figure.media figcaption { text-align: center; font-size: 13px; color: var(--ink-4); margin-top: 10px; }

.prose ul.feature-list { list-style: none; padding: 0; margin: 0 0 24px; }
.prose ul.feature-list li { position: relative; padding: 13px 0 13px 40px; border-bottom: 1px solid var(--line-2); font-size: 15.5px; color: var(--ink-2); margin: 0; }
.prose ul.feature-list li:last-child { border-bottom: 0; }
.prose ul.feature-list li::before { content: "✓"; position: absolute; left: 0; top: 12px; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 13px; font-weight: 800; text-align: center; line-height: 26px; }
.prose ul.feature-list strong { color: var(--ink); }

.prose .proscons { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin: 0 0 24px; }
.prose .pc-col h4 { font-size: 15px; margin: 0 0 10px; font-family: var(--font-display); }
.prose ul.check-list, .prose ul.x-list { list-style: none; padding: 0; margin: 0; }
.prose ul.check-list li, .prose ul.x-list li { position: relative; padding: 7px 0 7px 28px; font-size: 14.5px; color: var(--ink-2); margin: 0; }
.prose ul.check-list li::before { content: "✓"; position: absolute; left: 0; top: 7px; color: #0e9f6e; font-weight: 800; }
.prose ul.x-list li::before { content: "✕"; position: absolute; left: 0; top: 7px; color: var(--accent); font-weight: 800; }

.prose details.faq { border-bottom: 1px solid var(--line); margin: 0; }
.prose details.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 0; font-family: var(--font-display); font-weight: 700; font-size: 16.5px; color: var(--ink); }
.prose details.faq summary::-webkit-details-marker { display: none; }
.prose details.faq summary::after { content: "+"; color: var(--accent); font-size: 24px; font-weight: 400; line-height: 1; flex-shrink: 0; }
.prose details.faq[open] summary::after { content: "–"; }
.prose details.faq p { margin: -4px 0 16px; font-size: 14.5px; color: var(--ink-2); }

.prose .inline-cta-wrap { margin: 32px 0; }
.prose a.inline-cta {
  position: relative; display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%;
  background: linear-gradient(180deg, #f15c83 0%, #E63462 55%, #cf1d4d 100%); color: #fff; text-decoration: none;
  padding: 22px 56px; border-radius: 14px; font-family: var(--font-display); font-weight: 800; font-size: 19px; letter-spacing: .04em; text-transform: uppercase;
  box-shadow: 0 12px 24px rgba(230,52,98,.30), inset 0 1px 0 rgba(255,255,255,.28); transition: transform .15s var(--ease), box-shadow .2s;
}
.prose a.inline-cta:hover { transform: translateY(-2px); box-shadow: 0 16px 32px rgba(230,52,98,.40), inset 0 1px 0 rgba(255,255,255,.28); }
.prose .inline-cta__icon { position: absolute; left: 22px; width: 34px; height: 34px; border-radius: 50%; border: 2px solid rgba(255,255,255,.85); display: grid; place-items: center; font-size: 20px; }
@media (max-width: 560px) { .prose .proscons { grid-template-columns: 1fr; } }

/* ---------- 3-column reading layout ---------- */
.post3 { display: grid; grid-template-columns: 186px minmax(0,1fr) 186px; gap: 56px; align-items: start; }
.post3 .col-side { position: sticky; top: 74px; max-height: calc(100vh - 90px); overflow-y: auto; }
.post3 .col-side::-webkit-scrollbar { width: 6px; }
.post3 .col-side::-webkit-scrollbar-thumb { background: var(--line); border-radius: 3px; }

.toc-title { font-family: var(--font-display); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-4); margin-bottom: 14px; }
.toc-list { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.toc-list li { margin: 0; }
.toc-list a { display: block; padding: 7px 0 7px 14px; margin-left: -2px; border-left: 2px solid transparent; font-size: 13.5px; line-height: 1.35; color: var(--ink-3); cursor: pointer; transition: color .15s, border-color .15s; }
.toc-list a.lvl3 { padding-left: 26px; font-size: 13px; }
.toc-list a:hover { color: var(--ink); }
.toc-list a.active { color: var(--accent); border-left-color: var(--accent); font-weight: 600; }

/* deliberately understated 'relevant reads' list — text only, low emphasis */
.rel-list { list-style: none; margin: 0; padding: 0; }
.rel-list li { padding: 11px 0; border-bottom: 1px solid var(--line-2); cursor: pointer; }
.rel-list li:first-child { padding-top: 0; }
.rel-list li:last-child { border-bottom: 0; }
.rel-list .rel-title { display: block; font-size: 13px; line-height: 1.45; font-weight: 500; color: var(--ink-3); transition: color .15s; }
.rel-list li:hover .rel-title { color: var(--ink-2); }
.rel-list .rel-meta { display: block; font-size: 10.5px; color: var(--ink-4); margin-top: 3px; letter-spacing: .01em; }

/* ---------- PRE-BLOG (paid-traffic funnel — bridge layout) ---------- */
.prelead { max-width: 600px; margin: 0 auto; }
.prelead-title { font-size: clamp(24px,3.4vw,33px); line-height: 1.18; margin: 0 0 22px; text-align: center; }
.prelead-intro { font-size: 17px; line-height: 1.65; color: var(--ink-2); margin: 0 0 4px; }
.adlabel { font-size: 10px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-4); margin-bottom: 8px; }

/* big gradient CTA */
.cta-xl {
  position: relative; width: 100%; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(180deg, #f15c83 0%, #E63462 55%, #cf1d4d 100%);
  color: #fff; border: 0; border-radius: 14px; padding: 27px 56px;
  font-family: var(--font-display); font-weight: 800; font-size: 21px; letter-spacing: .05em; text-transform: uppercase;
  box-shadow: 0 12px 24px rgba(230,52,98,.30), inset 0 1px 0 rgba(255,255,255,.28);
  cursor: pointer; transition: transform .15s var(--ease), box-shadow .2s; margin: 32px 0;
}
.cta-xl:hover { transform: translateY(-2px); box-shadow: 0 16px 32px rgba(230,52,98,.40), inset 0 1px 0 rgba(255,255,255,.28); }
.cta-xl:active { transform: translateY(0); }
.cta-xl__icon { position: absolute; left: 22px; width: 38px; height: 38px; border-radius: 50%; border: 2px solid rgba(255,255,255,.85); display: grid; place-items: center; }

/* hero banner */
.prelead-banner { position: relative; border-radius: var(--radius); overflow: hidden; margin: 4px 0 30px; box-shadow: var(--shadow); }
.prelead-banner img { width: 100%; aspect-ratio: 16/8; object-fit: cover; display: block; background: var(--line-2); }
.prelead-banner__badge { position: absolute; top: 12px; right: 12px; background: var(--ink); padding: 6px 12px; border-radius: 8px; box-shadow: var(--shadow-sm); }

.prelead-h2 { font-size: 21px; margin: 6px 0 8px; }

/* benefit list */
.bz-list { margin-top: 8px; }
.bz-item { display: flex; gap: 16px; padding: 19px 0; border-bottom: 1px solid var(--line); align-items: flex-start; }
.bz-item:last-child { border-bottom: 0; }
.bz-icon { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; color: #fff; flex-shrink: 0; box-shadow: var(--shadow-sm); }
.bz-item h4 { font-size: 16.5px; margin: 2px 0 5px; }
.bz-item p { margin: 0; font-size: 14.5px; color: var(--ink-2); line-height: 1.55; }

/* pros */
.pros-head { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.pros-list { margin-top: 10px; }
.pros-item { display: flex; gap: 14px; padding: 16px 0 16px 6px; border-bottom: 1px solid var(--line); align-items: flex-start; }
.pros-item:last-child { border-bottom: 0; }
.pros-check { width: 24px; height: 24px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; flex-shrink: 0; margin-top: 1px; }
.pros-item h4 { font-size: 15.5px; margin: 0 0 4px; }
.pros-item p { margin: 0; font-size: 14px; color: var(--ink-3); line-height: 1.5; }

/* editorial bio */
.prebio { text-align: center; margin-top: 44px; padding-top: 8px; }
.prebio-logo { width: 92px; height: 92px; border-radius: 50%; background: var(--ink); display: grid; place-items: center; margin: 0 auto 16px; overflow: hidden; }
.prebio-name { font-family: var(--font-display); font-weight: 700; font-size: 17px; margin-bottom: 8px; }
.prebio-text { font-size: 14px; color: var(--ink-3); line-height: 1.6; max-width: 460px; margin: 0 auto 12px; }
.prebio-link { color: var(--accent); font-weight: 600; font-size: 14px; cursor: pointer; }
.prebio-link:hover { text-decoration: underline; }

@media (max-width: 560px) {
  .cta-xl { font-size: 17px; padding: 22px 48px; }
  .cta-xl__icon { width: 32px; height: 32px; left: 16px; }
}

/* ---------- icon button ---------- */
.icon-btn {
  width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--line);
  background: var(--bg); color: var(--ink-2); display: grid; place-items: center; transition: all .15s;
}
.icon-btn:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- mobile nav links ---------- */
.mob-link { display: block; padding: 12px 4px; border-bottom: 1px solid var(--line-2); font-family: var(--font-display); font-weight: 600; font-size: 16px; cursor: pointer; color: var(--ink); }
.mob-link:active { color: var(--accent); }

/* ============================================================
   HOMEPAGE — hero, editor's-picks rail, news cards, sections
   ============================================================ */
.hero-row { display: grid; grid-template-columns: 1.9fr 1fr; gap: 30px; margin-bottom: 14px; align-items: start; }

.feature-card { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; cursor: pointer; background: var(--paper); transition: box-shadow .2s var(--ease), transform .2s var(--ease); }
.feature-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.feature-card__media { position: relative; aspect-ratio: 16/9; overflow: hidden; background: var(--line-2); }
.feature-card__media img { width: 100%; height: 100%; object-fit: cover; }
.feature-card__body { padding: 22px 26px 26px; }
.feature-card__title { font-size: clamp(22px,2.6vw,30px); line-height: 1.14; margin: 8px 0 12px; }
.feature-card__excerpt { color: var(--ink-3); font-size: 15.5px; margin: 0; line-height: 1.6; }

.hero-rail { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px 18px 8px; }
.rail-title { font-family: var(--font-display); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-4); margin-bottom: 6px; padding: 0 2px; }
.rail-list { display: flex; flex-direction: column; }
.rail-item { display: flex; gap: 13px; align-items: center; padding: 14px 2px; border-bottom: 1px solid var(--line-2); cursor: pointer; }
.rail-item:last-child { border-bottom: 0; }
.rail-item img { width: 86px; height: 62px; border-radius: 9px; object-fit: cover; flex-shrink: 0; background: var(--line-2); }
.rail-item h4 { font-size: 14.5px; line-height: 1.3; margin: 0; letter-spacing: -.01em; transition: color .15s; }
.rail-item:hover h4 { color: var(--accent); }
.rail-item__date { font-size: 11.5px; color: var(--ink-4); margin-top: 5px; }

/* news card */
.news-card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; cursor: pointer; background: var(--paper); display: flex; flex-direction: column; transition: box-shadow .2s var(--ease), transform .2s var(--ease); }
.news-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.news-card__media { position: relative; aspect-ratio: 16/10; overflow: hidden; background: var(--line-2); }
.news-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s var(--ease); }
.news-card:hover .news-card__media img { transform: scale(1.04); }
.news-card__body { padding: 14px 16px 18px; }
.news-card__date { font-size: 11.5px; color: var(--ink-4); margin-bottom: 7px; }
.news-card__title { font-size: 16px; line-height: 1.28; letter-spacing: -.01em; margin: 0;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* card grid */
.card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }

/* centered section heading */
.section-head { display: flex; align-items: center; gap: 20px; margin: 44px 0 22px; }
.section-head__line { flex: 1; height: 1px; background: var(--line); }
.section-head h2 { font-size: 23px; letter-spacing: -.01em; white-space: nowrap; }
.section-head h2:hover { color: var(--accent); }

@media (max-width: 900px) {
  .hero-row { grid-template-columns: 1fr; gap: 20px; }
  .card-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 680px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .section-head { gap: 12px; margin: 32px 0 18px; }
  .section-head h2 { font-size: 19px; }
}
@media (max-width: 430px) {
  .card-grid { grid-template-columns: 1fr; }
}

.mob-only { }

/* ============================================================
   RESPONSIVE — mobile-first breakpoints
   ============================================================ */
@media (max-width: 1080px) {
  .home-layout, .post-layout { grid-template-columns: 1fr !important; }
  aside { order: 2; }
  .post-layout aside, .home-layout aside { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
  /* 3-col reading -> drop the contents index, keep main + related */
  .post3 { grid-template-columns: minmax(0,1fr) 260px !important; }
  .post3 .col-toc { display: none !important; }
}
@media (max-width: 900px) {
  .desk-nav, .desk-search { display: none !important; }
  .mob-only { display: grid !important; }
  .foot-grid { grid-template-columns: 1fr 1fr !important; }
  .admin-side { width: 68px !important; }
  .admin-side .label, .admin-side nav span:not(:empty), .admin-side button span { display: none; }
  .admin-side nav button { justify-content: center; }
  .admin-side > div:first-child { display: none; }
}
@media (max-width: 760px) {
  .hero-grid { grid-template-columns: 1fr !important; }
  .feed-grid { grid-template-columns: 1fr !important; }
  .stat-grid { grid-template-columns: 1fr 1fr !important; }
  .two-col { grid-template-columns: 1fr !important; }
  .post-layout aside, .home-layout aside { grid-template-columns: 1fr; }
  .post-layout .feed-grid, .post-layout div[style*="grid-template-columns: 1fr 1fr"] { grid-template-columns: 1fr !important; }
  .post3 { grid-template-columns: 1fr !important; gap: 28px; }
  .post3 .col-side { position: static !important; max-height: none !important; overflow: visible !important; }
  .post3 .col-related { order: 3; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 18px; }
  .ad--leaderboard { min-height: 70px; }
  .post-editor-grid { grid-template-columns: 1fr !important; }
}
@media (max-width: 560px) {
  body { font-size: 15.5px; }
  .prose { font-size: 16.5px; }
}

code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: .9em; }
select.field { -webkit-appearance: none; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 34px; }
