/*!*****************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ../machinepress/node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[2]!../machinepress/node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[3]!./app/globals.css ***!
  \*****************************************************************************************************************************************************************************************************************************************************************************************/
/* ============================================================
   MachinePress — EDITORIAL design system ("ink on paper")
   Calm, magazine-grade publication UI. One restrained accent.
   Flat paper backgrounds, hairline 1px rules, sans-only type.

   TOKEN LAYERS
   1. SKIN tokens consumed by the runtime theme system
      (--bg-primary, --surface, --text-primary, --accent,
       --border, --shadow, --radius … see theme-contract.ts).
      The active theme injects these inline on <body>; the
      :root values below are the editorial defaults / fallback.
   2. EDITORIAL tokens (--paper, --ink, --line, --measure,
      type scale --t-*, spacing --s1..s8). Derived where
      possible from the skin tokens so a future skin swap
      flows through the whole UI.
   ============================================================ */

:root {
  /* ---- font (coordinator wires Pretendard into --font-body) ---- */
  --font-body:
    "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
    system-ui, "Segoe UI", Roboto, "Helvetica Neue", "Apple SD Gothic Neo",
    "Malgun Gothic", sans-serif;
  /* NOTE: serif display intentionally removed — headings are sans. */

  /* ---- SKIN tokens (theme-contract required keys) ---- */
  --bg-primary: #faf9fc;          /* lavender-tinted page */
  --bg-secondary: #f4f3f9;        /* sunken lavender */
  --surface: #ffffff;             /* raised editorial surface */
  --surface-strong: #ffffff;
  --text-primary: #232032;        /* purple-black ink */
  --text-secondary: #5b566e;      /* secondary ink */
  --text-muted: #8b86a0;          /* meta / muted ink */
  --accent: #5b4b8a;              /* esther deep purple */
  --accent-strong: #463972;       /* darker purple */
  --border: #e6e3f0;              /* hairline */
  --focus-ring: var(--accent);
  --shadow: 0 1px 2px rgba(35, 32, 50, 0.05), 0 8px 24px rgba(35, 32, 50, 0.06);
  --shadow-soft: 0 1px 2px rgba(35, 32, 50, 0.05);
  --radius: 16px;
  --content-width: min(72rem, calc(100% - 2.5rem));

  /* ---- EDITORIAL tokens (mapped onto the skin layer) ---- */
  --paper: var(--bg-primary);
  --paper-2: var(--bg-secondary);
  --ink: var(--text-primary);
  --ink-2: var(--text-secondary);
  --ink-3: var(--text-muted);
  --line: var(--border);
  --line-2: #d8d4e8;              /* slightly stronger hairline */
  --accent-ink: var(--accent-strong);
  --accent-wash: #efedf7;         /* faint purple tint */
  --radius-sm: 9px;

  /* type scale */
  --t-hero: clamp(2.1rem, 4.6vw, 3.25rem);
  --t-h1: clamp(1.7rem, 3vw, 2.3rem);
  --t-h2: 1.5rem;
  --t-h3: 1.18rem;
  --t-body: 1.0625rem;            /* 17px */
  --t-sm: 0.875rem;
  --t-xs: 0.78rem;
  --lh-tight: 1.25;
  --lh-body: 1.78;                /* generous for Korean reading */
  --measure: 40rem;              /* article reading column width */

  /* spacing (8pt-ish rhythm) */
  --s1: 0.5rem;
  --s2: 0.75rem;
  --s3: 1rem;
  --s4: 1.5rem;
  --s5: 2rem;
  --s6: 3rem;
  --s7: 4.5rem;
  --s8: 6rem;
}

/* ============================================================
   BASE
   ============================================================ */
* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);           /* flat — no gradients / washes */
  font-size: var(--t-body);
  line-height: var(--lh-body);
  font-feature-settings: "ss01", "tnum";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

img {
  max-width: 100%;
  height: auto;
}

hr {
  border: 0;
  border-top: 1px solid var(--line);
}

/* Korean line-breaking: keep words intact, never orphan a syllable. */
h1,
h2,
h3,
h4,
p,
li,
.headline,
.brand,
.section-title,
.section-description,
.home-hero-copy,
.article-excerpt,
.eyebrow {
  word-break: keep-all;
  overflow-wrap: anywhere;
}

/* Accessible focus — accent ring everywhere. */
:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
  border-radius: 3px;
}

/* Ambient background wash removed — editorial UI is flat paper. */
.ambient-bg {
  display: none;
}

.skip-link {
  position: absolute;
  top: -48px;
  left: 0.5rem;
  background: var(--ink);
  color: var(--paper);
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: var(--t-sm);
  z-index: 100;
}

.skip-link:focus {
  top: 0.5rem;
  text-decoration: none;
}

/* ============================================================
   LAYOUT PRIMITIVES
   ============================================================ */
.container {
  width: var(--content-width);
  margin: 0 auto;
}

.main-content {
  padding: var(--s6) 0 var(--s8);
}

/* Vertical rhythm stacks (kept; tuned to editorial spacing). */
.stack-lg > * + * {
  margin-top: var(--s6);
}

.stack-md > * + * {
  margin-top: var(--s4);
}

.stack-sm > * + * {
  margin-top: var(--s2);
}

/* Generic flat surface — hairline framed, no glass / heavy shadow. */
.surface {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: none;
  padding: clamp(1.1rem, 1.8vw, 1.5rem);
}

.grid-2 {
  display: grid;
  grid-gap: var(--s5);
  gap: var(--s5);
  grid-template-columns: minmax(0, 1.75fr) minmax(280px, 1fr);
}

@media (max-width: 960px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--paper);          /* flat, opaque — no blur/glass */
  border-bottom: 1px solid var(--line);
}

.nav-shell {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
  min-height: 60px;
  padding: 0.55rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 1.06rem;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.brand:hover {
  color: var(--ink);
  text-decoration: none;
}

.brand b {
  color: var(--accent);
}

.brand-logo {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--line);
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.nav-link {
  color: var(--ink-2);
  font-size: var(--t-sm);
  font-weight: 600;
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.7rem;
  transition: color 160ms ease;
}

.nav-link:hover {
  color: var(--ink);
  background: transparent;
  text-decoration: none;
}

.nav-link-utility {
  color: var(--ink-3);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--paper-2);
  padding: var(--s5) 0 var(--s6);
  color: var(--ink-3);
  font-size: var(--t-sm);
}

.site-footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.footer-badge {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.24rem 0.62rem;
  font-size: var(--t-xs);
  font-weight: 700;
  color: var(--ink-2);
  background: var(--surface);
}

/* ============================================================
   SECTION HEADS / EYEBROW
   ============================================================ */
.eyebrow {
  display: inline-flex;
  align-items: center;
  margin: 0;
  font-size: var(--t-xs);
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
}

.section-head h2 {
  margin: 0;
  font-size: var(--t-h2);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.section-head-rich {
  align-items: flex-start;
}

.section-eyebrow {
  margin-bottom: 0.2rem;
}

.section-title {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(1.55rem, 2.6vw, 1.95rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.section-title-sm {
  font-size: clamp(1.2rem, 2vw, 1.4rem);
}

.section-title-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.section-glyph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.05rem;
  height: 1.05rem;
  color: var(--accent);
  font-weight: 800;
}

.section-description {
  margin: 0;
  color: var(--ink-2);
  line-height: 1.65;
  max-width: 60ch;
}

.section-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--ink-2);
  font-size: var(--t-sm);
  font-weight: 700;
  padding-top: 0.25rem;
}

.section-link:hover {
  color: var(--accent);
  text-decoration: none;
}

.section-divider {
  height: 1px;
  width: 100%;
  background: var(--line);
}

/* Section blocks: flat, separated by hairlines, not boxes. */
.section-block {
  padding: 0;
}

.section-block-border {
  padding-top: var(--s5);
  border-top: 1px solid var(--line);
}

/* ============================================================
   HOME
   ============================================================ */
.home-page {
  gap: var(--s6);
}

/* Accent bar restyled flat: a single hairline-weight accent rule. */
.home-accent-bar {
  width: 100%;
  height: 2px;
  border-radius: 0;
  background: var(--accent);
}

/* Editorial hero — eyebrow + big headline + lede + buttons on paper.
   NOT a card floating on a gradient. */
.home-hero-shell {
  padding: 0;
  border-radius: 0;
  background: transparent;
}

.home-hero-card {
  padding: var(--s6) 0 var(--s7);
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.home-hero-card h1 {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--t-hero);
  line-height: var(--lh-tight);
  letter-spacing: -0.03em;
  font-weight: 800;
  max-width: 18ch;
  color: var(--ink);
}

.home-hero-copy {
  max-width: 46ch;
  color: var(--ink-2);
  font-size: 1.15rem;
  line-height: 1.7;
}

.home-hero-actions {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-wrap: wrap;
}

/* Standalone .hero (legacy/shared) — also a flat editorial hero. */
.hero {
  padding: var(--s6) 0 var(--s7);
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.hero h1 {
  font-family: var(--font-body);
  font-size: var(--t-hero);
  margin: 0.3rem 0 var(--s4);
  line-height: var(--lh-tight);
  letter-spacing: -0.03em;
  font-weight: 800;
  max-width: 18ch;
}

.hero p {
  color: var(--ink-2);
  max-width: 46ch;
}

/* ============================================================
   BUTTONS — solid dark primary + outline ghost
   ============================================================ */
.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 44px;
  padding: 0 1.2rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  font-size: var(--t-sm);
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}

.button-link:hover {
  background: var(--accent-ink);
  border-color: var(--accent-ink);
  color: #fff;
  text-decoration: none;
}

.button-link.button-link-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-2);
}

.button-link.button-link-secondary:hover {
  color: var(--ink);
  background: transparent;
  border-color: var(--ink);
}

/* ============================================================
   CHIPS — subtle pill outline
   ============================================================ */
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chip-row-compact {
  gap: 0.4rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  font-size: var(--t-sm);
  font-weight: 600;
  color: var(--ink);
  background: var(--paper);
  transition: border-color 160ms ease, color 160ms ease;
}

.chip:hover {
  color: var(--ink);
  border-color: var(--ink);
  background: var(--paper);
  text-decoration: none;
}

.chip-subtle {
  background: var(--paper);
  color: var(--ink-2);
  border-color: var(--line);
}

.chip-subtle:hover {
  color: var(--ink);
  border-color: var(--line-2);
}

/* ============================================================
   ARTICLE FEED — hairline-separated list, not boxed cards
   ============================================================ */
.article-list {
  display: grid;
  grid-gap: 0;
  gap: 0;
}

.article-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-gap: 0.4rem;
  gap: 0.4rem;
  padding: var(--s5) 0;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.article-card-thumb {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin-bottom: 0.75rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
}

.article-card-thumb img {
  object-fit: cover;
  transition: transform 180ms ease;
}

.article-card-thumb:hover img {
  transform: scale(1.025);
}

.article-card:first-child {
  border-top: 0;
  padding-top: 0;
}

.article-card:hover {
  box-shadow: none;
  transform: none;
  border-color: var(--line);
}

/* date / kicker line */
.article-card-header {
  padding: 0;
}

.card-date-badge {
  display: inline-flex;
  align-items: center;
  padding: 0;
  background: transparent;
  border-radius: 0;
  color: var(--ink-3);
  font-size: var(--t-xs);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.article-card h3 {
  margin: 0.1rem 0 0.15rem;
  padding: 0;
  font-family: var(--font-body);
  font-size: 1.45rem;
  line-height: 1.3;
  letter-spacing: -0.02em;
  font-weight: 800;
}

.article-card h3 a {
  color: var(--ink);
  text-decoration: none;
}

.article-card h3 a:hover {
  color: var(--accent);
  text-decoration: none;
}

.article-card p {
  margin: 0;
  padding: 0;
  color: var(--ink-2);
  line-height: 1.65;
  max-width: 60ch;
}

.article-card .chip-row {
  padding: 0;
  margin-top: 0.5rem;
}

@media (min-width: 760px) {
  .article-card {
    grid-template-columns: 220px minmax(0, 1fr);
    column-gap: var(--s4);
    align-items: start;
  }

  .article-card-thumb {
    grid-row: span 4;
    margin-bottom: 0;
  }
}

/* ============================================================
   ARTICLE READING — centered measure column + sticky TOC
   DOM: .article-page > header
        .article-shell ( .article-toc | .markdown-body )
   ============================================================ */
.article-page {
  gap: var(--s6);
}

.article-page > header {
  gap: 0.85rem;
  padding-bottom: var(--s4);
  border-bottom: 1px solid var(--line);
}

.article-page h1 {
  font-family: var(--font-body);
  margin: 0;
  font-size: var(--t-h1);
  line-height: 1.22;
  letter-spacing: -0.03em;
  font-weight: 800;
  max-width: 20ch;
}

.article-page > header p:last-of-type,
.article-page .article-excerpt {
  color: var(--ink-2);
  max-width: 46ch;
  font-size: 1.18rem;
  margin-top: 0.45rem;
}

/* Reading grid: sticky left sidebar TOC + centered reading column. */
.article-shell {
  display: grid;
  grid-gap: var(--s6);
  gap: var(--s6);
  grid-template-columns: minmax(200px, 14rem) minmax(0, var(--measure));
  justify-content: center;
  align-items: start;
}

/* Sidebar TOC — flat, hairline left-border links (no card chrome). */
.article-toc {
  position: -webkit-sticky;
  position: sticky;
  top: 5.5rem;
  max-height: calc(100vh - 7rem);
  overflow-y: auto;
  justify-self: start;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  font-size: var(--t-sm);
}

.article-toc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin-bottom: 0.5rem;
}

.article-toc .eyebrow {
  color: var(--ink-3);
  font-size: var(--t-xs);
  letter-spacing: 0.12em;
}

.article-toc-close {
  display: none;
  border-radius: 999px;
  padding: 0.35rem 0.65rem;
  border: 1px solid var(--line-2);
  background: var(--surface);
  color: var(--ink);
  font-size: var(--t-xs);
  font-weight: 700;
}

.article-toc ul {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
  display: grid;
  grid-gap: 0;
  gap: 0;
}

.article-toc li a {
  display: block;
  color: var(--ink-2);
  font-size: var(--t-sm);
  line-height: 1.35;
  padding: 0.28rem 0 0.28rem 0.8rem;
  border-left: 2px solid var(--line);
  margin-left: -1px;
}

.article-toc li a:hover {
  color: var(--ink);
  border-left-color: var(--accent);
  text-decoration: none;
}

.article-toc li.depth-3 a {
  padding-left: 1.6rem;
}

.article-toc li.active > a {
  color: var(--ink);
  font-weight: 700;
  border-left-color: var(--accent);
}

/* Reading meta — refined inline meta, hairline underline (not a box). */
.reading-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 1rem;
  color: var(--ink-3);
  font-size: var(--t-xs);
  border: 0;
  border-radius: 0;
  padding: var(--s2) 0;
  background: transparent;
}

.reading-meta span {
  display: inline-block;
  margin-right: 0;
}

/* Fixed reading-progress bar at the top of the viewport (always visible while reading). */
.reading-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 200;
  background: transparent;
  pointer-events: none;
}

.reading-progress-fill {
  height: 100%;
  width: 0;
  background: var(--accent);
  transition: width 0.08s linear;
}

.share-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.share-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.share-icon:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(26, 23, 20, 0.12);
}

.share-icon svg {
  display: block;
}

.share-x {
  background: #000;
  border-color: #000;
}
.share-x svg {
  fill: #fff;
}

.share-li {
  background: #0a66c2;
  border-color: #0a66c2;
}
.share-li svg {
  fill: #fff;
}

.share-copy {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 18px;
  border-radius: 22px;
  border: 0;
  background: var(--ink);
  color: #fff;
  font: inherit;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition: background 0.15s ease;
}
.share-copy svg {
  fill: #fff;
}
.share-copy.is-copied {
  background: var(--accent);
}

/* ============================================================
   PROSE  (.markdown-body)  — editorial reading hierarchy
   ============================================================ */
.markdown-body {
  line-height: var(--lh-body);
  color: var(--ink);
  max-width: var(--measure);
  font-size: var(--t-body);
  text-wrap: pretty;
}

.markdown-body p {
  margin: 0 0 1.35em;
}

.markdown-body ul,
.markdown-body ol,
.markdown-body blockquote,
.markdown-body pre,
.markdown-body table {
  margin: 0 0 1.35em;
}

/* ---- GFM 체크리스트 (- [ ]) ----
   전역 폼 input 스타일(width:100%·패딩·보더)이 본문 체크박스를 풀폭 입력칸으로
   깨뜨리던 것을 복구하고, 자가 체크 항목을 카드형으로 디자인한다. */
.markdown-body ul.contains-task-list {
  list-style: none;
  padding-left: 0;
  display: grid;
  grid-gap: 0.55rem;
  gap: 0.55rem;
}

.markdown-body li.task-list-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.95rem;
  margin: 0;
}

.markdown-body li.task-list-item > input[type="checkbox"] {
  -webkit-appearance: auto;
     -moz-appearance: auto;
          appearance: auto;
  width: 1.15rem;
  height: 1.15rem;
  min-width: 1.15rem;
  padding: 0;
  margin: 0.22rem 0 0;
  border: 1px solid var(--line-2);
  accent-color: var(--accent);
  background: var(--surface);
}

.markdown-body li.task-list-item:hover {
  border-color: var(--accent);
  background: var(--accent-wash);
}

.markdown-body h1,
.markdown-body h2,
.markdown-body h3 {
  font-family: var(--font-body);
  letter-spacing: -0.02em;
  line-height: 1.25;
  scroll-margin-top: 6rem;
}

.markdown-body h2 {
  font-size: var(--t-h2);
  font-weight: 800;
  margin: 2em 0 0.6em;
}

.markdown-body h3 {
  font-size: var(--t-h3);
  font-weight: 700;
  margin: 1.6em 0 0.5em;
}

.markdown-body a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 0.07em;
  text-underline-offset: 0.17em;
  -webkit-text-decoration-color: color-mix(in srgb, var(--accent) 40%, transparent);
          text-decoration-color: color-mix(in srgb, var(--accent) 40%, transparent);
}

.markdown-body a:hover {
  color: var(--accent-ink);
  -webkit-text-decoration-color: var(--accent);
          text-decoration-color: var(--accent);
}

.markdown-body ul,
.markdown-body ol {
  padding-left: 1.2rem;
}

.markdown-body li {
  margin: 0.3em 0;
}

.markdown-body li + li {
  margin-top: 0.35rem;
}

.markdown-body strong {
  font-weight: 700;
}

.markdown-body code {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.1rem 0.38rem;
  font-size: 0.92em;
}

/* Accent left-border blockquote — flat, no tinted fill box. */
.markdown-body blockquote {
  margin: 1.6em 0;
  padding: 0.2em 0 0.2em 1.3em;
  border-left: 3px solid var(--accent);
  background: transparent;
  color: var(--ink-2);
  font-size: 1.1rem;
}

.markdown-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.96rem;
}

.markdown-body th,
.markdown-body td {
  border: 1px solid var(--line);
  padding: 0.55rem 0.65rem;
  text-align: left;
}

.markdown-body th {
  background: var(--paper-2);
  font-weight: 700;
}

/* ============================================================
   MARKDOWN MEDIA
   ============================================================ */
.markdown-table-wrap {
  overflow-x: auto;
}

.markdown-image {
  margin: 1.2rem 0;
  display: grid;
  grid-gap: 0.4rem;
  gap: 0.4rem;
}

.markdown-image-trigger {
  position: relative;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0;
  background: var(--paper-2);
  overflow: hidden;
  display: block;
}

.markdown-image-trigger img {
  width: 100%;
  height: auto;
  display: block;
}

.markdown-image-hint {
  position: absolute;
  right: 0.6rem;
  bottom: 0.6rem;
  border-radius: 999px;
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  background: rgba(26, 23, 20, 0.72);
  color: #f7f4ee;
  padding: 0.22rem 0.55rem;
}

.markdown-image figcaption {
  margin-top: 0.45rem;
  color: var(--ink-3);
  font-size: 0.86rem;
}

.markdown-video-wrap {
  position: relative;
  width: 100%;
  margin: 1.2rem 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
}

.markdown-video-wrap iframe,
.markdown-video-wrap video {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  display: block;
  background: #000;
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(20, 16, 12, 0.84);
  display: grid;
  place-items: center;
  padding: 1.2rem;
}

.image-lightbox-media {
  max-width: min(1200px, 94vw);
  max-height: calc(100vh - 6rem);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.image-lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 1;
}

/* ============================================================
   TOC MOBILE (floating trigger + sheet under 980px)
   ============================================================ */
.toc-mobile-trigger {
  display: none;
}

.toc-mobile-backdrop {
  display: none;
}

/* ============================================================
   FORMS / FIELDS
   ============================================================ */
.field {
  display: grid;
  grid-gap: 0.35rem;
  gap: 0.35rem;
}

input,
textarea,
select,
button {
  font: inherit;
}

input,
textarea,
select {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-2);
  background: var(--surface);
  color: var(--ink);
}

input::placeholder,
textarea::placeholder {
  color: var(--ink-3);
}

button {
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius-sm);
  padding: 0.6rem 1rem;
  cursor: pointer;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}

button:hover {
  background: var(--accent-ink);
  border-color: var(--accent-ink);
  color: #fff;
}

button:active {
  transform: translateY(0);
}

.newsletter-form {
  display: grid;
  grid-gap: 0.8rem;
  gap: 0.8rem;
}

.newsletter-form label {
  font-size: var(--t-sm);
  font-weight: 600;
  color: var(--ink-2);
  letter-spacing: 0.01em;
}

.newsletter-row {
  display: flex;
  gap: 0.5rem;
}

.newsletter-row input {
  flex: 1 1;
}

.newsletter-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.newsletter-submit {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 88px;
}

.newsletter-inline-form {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.newsletter-inline-form select {
  width: auto;
  min-width: 140px;
}

.newsletter-inline-form input[type="number"] {
  width: 100px;
}

.helper {
  margin: 0;
  color: var(--ink-3);
  font-size: var(--t-sm);
}

.state-list {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--ink-2);
}

.state-list li + li {
  margin-top: 0.28rem;
}

/* ============================================================
   COMMENTS — engagement-first comment styles live at the end of this file.
   ============================================================ */

/* ============================================================
   PIPELINE FLOW (publishing pipeline badges)
   ============================================================ */
.pipeline-flow {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.publishing-flow-grid {
  display: grid;
  grid-gap: 0.9rem;
  gap: 0.9rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.publishing-flow-card h3 {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.08rem;
  font-weight: 700;
}

.pipeline-step {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.pipeline-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: var(--surface);
  color: var(--ink-2);
  padding: 0.32rem 0.7rem;
  font-size: 0.8rem;
  font-weight: 700;
}

.pipeline-badge-active {
  color: var(--paper);
  background: var(--ink);
  border-color: var(--ink);
}

.pipeline-arrow {
  color: var(--ink-3);
  font-size: 0.85rem;
}

/* ============================================================
   ADMIN
   ============================================================ */
.admin-layout {
  display: grid;
  grid-template-columns: minmax(220px, 240px) minmax(0, 1fr);
  grid-gap: var(--s4);
  gap: var(--s4);
  align-items: start;
}

.admin-auth-layout {
  width: 100%;
}

.admin-auth-shell {
  width: min(1080px, 100%);
  margin: 0 auto;
}

.admin-auth-page {
  width: min(960px, 100%);
  margin: 0 auto;
}

.admin-auth-grid,
.admin-dashboard-grid {
  display: grid;
  grid-gap: 1rem;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-check-grid {
  display: grid;
  grid-gap: 0.75rem;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.admin-check-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.9rem;
  background: var(--surface);
}

.admin-check-card strong {
  display: block;
  margin: 0.25rem 0 0.35rem;
  font-size: 1rem;
}

.admin-check-pass {
  border-color: rgba(22, 163, 74, 0.3);
}

.admin-check-warn {
  border-color: rgba(202, 138, 4, 0.34);
}

.admin-check-fail {
  border-color: rgba(185, 28, 28, 0.34);
}

.admin-subpanel {
  padding: 1rem;
  box-shadow: none;
}

.admin-nav {
  position: -webkit-sticky;
  position: sticky;
  top: 5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: none;
}

.admin-nav h2 {
  margin-top: 0;
  margin-bottom: 0.25rem;
  font-family: var(--font-body);
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.admin-nav-meta {
  margin-bottom: 0.9rem;
}

.admin-nav-groups {
  display: grid;
  grid-gap: 0.8rem;
  gap: 0.8rem;
}

.admin-nav-group {
  display: grid;
  grid-gap: 0.35rem;
  gap: 0.35rem;
}

.admin-nav-group-label {
  margin: 0;
  color: var(--ink-3);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-gap: 0.4rem;
  gap: 0.4rem;
}

.admin-nav-link {
  display: block;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 0.48rem 0.56rem;
  color: var(--ink-2);
  font-size: var(--t-sm);
  font-weight: 600;
  transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease;
}

.admin-nav-link:hover {
  border-color: var(--line-2);
  color: var(--ink);
  background: var(--paper-2);
}

.admin-nav-link.active {
  border-color: var(--line-2);
  color: var(--accent);
  background: var(--accent-wash);
}

.admin-content {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1rem, 1.6vw, 1.4rem);
  box-shadow: none;
  min-width: 0;
}

.media-list {
  padding-left: 0;
  list-style: none;
}

.media-list li {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  padding: 0.8rem;
}

.media-thumb {
  display: block;
  max-width: min(100%, 460px);
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
}

.form-grid {
  display: grid;
  grid-gap: 0.75rem;
  gap: 0.75rem;
}

.admin-form-grid-2 {
  display: grid;
  grid-gap: 0.75rem;
  gap: 0.75rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-form-span-2 {
  grid-column: 1 / -1;
}

.admin-kpi-grid {
  display: grid;
  grid-gap: 0.75rem;
  gap: 0.75rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-kpi-grid article {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.8rem;
  background: var(--surface);
}

.admin-kpi-grid h3 {
  margin: 0.4rem 0 0.15rem;
  font-size: 1.7rem;
  font-weight: 800;
  font-family: var(--font-body);
  letter-spacing: -0.02em;
}

.admin-kpi-grid p {
  margin: 0;
  color: var(--ink-2);
}

.persona-suggestion-preview {
  max-height: 320px;
}

/* ============================================================
   CODE / TABLES (shared)
   ============================================================ */
pre {
  margin: 0;
  padding: 0.9rem;
  border-radius: var(--radius-sm);
  background: #171312;
  color: #f8f2ea;
  overflow-x: auto;
}

.table-wrap {
  overflow-x: auto;
}

.table-wrap table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.table-wrap th,
.table-wrap td {
  text-align: left;
  padding: 0.55rem 0.5rem;
  border-bottom: 1px solid var(--line);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Collapse reading sidebar TOC under ~880px -> floating sheet. */
@media (max-width: 980px) {
  .article-shell {
    grid-template-columns: 1fr;
  }

  .article-toc {
    display: none;
  }

  .toc-mobile-trigger {
    display: inline-flex;
    align-items: center;
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 60;
    border-radius: 999px;
    padding: 0.62rem 1rem;
    border: 1px solid var(--ink);
    background: var(--ink);
    color: var(--paper);
    font-weight: 700;
    font-size: var(--t-sm);
    box-shadow: var(--shadow);
  }

  .toc-mobile-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 58;
    background: rgba(20, 16, 12, 0.46);
    border: 0;
    padding: 0;
  }

  /* Mobile TOC sheet — here it IS a surface card. */
  .article-toc.open {
    display: block;
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    max-height: min(64vh, 520px);
    overflow-y: auto;
    z-index: 59;
    padding: 1rem 1.1rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
  }

  .article-toc-close {
    display: inline-flex;
  }

  .pipeline-flow {
    align-items: flex-start;
  }
}

@media (max-width: 900px) {
  .admin-layout {
    grid-template-columns: 1fr;
  }

  .admin-auth-grid,
  .admin-dashboard-grid {
    grid-template-columns: 1fr;
  }

  .admin-nav {
    position: static;
    top: auto;
  }

  .admin-nav ul {
    grid-auto-flow: column;
    grid-auto-columns: max-content;
    overflow-x: auto;
    padding-bottom: 0.2rem;
    scrollbar-width: thin;
  }

  .admin-nav-groups {
    gap: 0.55rem;
  }
}

/* Editorial breakpoint: tighten section padding on smaller screens. */
@media (max-width: 880px) {
  .main-content {
    padding: var(--s5) 0 var(--s6);
  }

  .home-page {
    gap: var(--s5);
  }

  .home-hero-card {
    padding: var(--s5) 0 var(--s6);
  }

  .stack-lg > * + * {
    margin-top: var(--s5);
  }
}

@media (max-width: 720px) {
  .nav-shell {
    flex-wrap: wrap;
    justify-content: space-between;
    row-gap: 0.6rem;
  }

  .site-header nav {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 0.15rem;
    scrollbar-width: thin;
  }

  .nav-link {
    padding: 0.4rem 0.62rem;
    font-size: var(--t-sm);
    white-space: nowrap;
  }

  .nav-link-utility {
    margin-left: auto;
  }

  .home-hero-card h1 {
    font-size: clamp(2rem, 9vw, 2.55rem);
    max-width: none;
    line-height: 1.12;
  }

  .home-hero-copy {
    max-width: none;
    font-size: 1rem;
    line-height: 1.75;
  }

  .article-page > header {
    gap: 0.7rem;
  }

  .article-page .article-excerpt,
  .article-page > header p:last-of-type {
    max-width: none;
    font-size: 1.05rem;
  }

  .home-hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.6rem;
  }

  .button-link {
    width: 100%;
  }

  .newsletter-row {
    flex-direction: column;
  }

  .section-head-rich {
    align-items: stretch;
  }

  .section-link {
    padding-top: 0;
  }

  .markdown-body {
    font-size: 1.05rem;
    line-height: 1.9;
  }

  .admin-form-grid-2,
  .admin-kpi-grid {
    grid-template-columns: 1fr;
  }

  .share-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.4rem;
  }

  .share-copy {
    flex: 1 1;
    min-width: 140px;
    justify-content: center;
  }

  .reading-meta span {
    margin-right: 0;
  }
}

/* Respect reduced-motion. */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================================
   Comments — engagement-first: always-visible composer,
   comment count, avatar rows, inviting empty state.
   ============================================================ */
.comment-section .comment-head {
  margin-bottom: 4px;
}
.comment-head h2 {
  font-size: 1.32rem;
  font-weight: 800;
  margin: 0;
  letter-spacing: -0.01em;
}
.comment-count {
  color: var(--accent);
}

.comment-avatar {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.95rem;
  line-height: 1;
}
.comment-avatar-me {
  background: var(--accent);
  color: #fff;
}
.comment-avatar-g {
  background: var(--bg-secondary);
  color: var(--text-secondary);
}

.comment-composer {
  display: flex;
  gap: 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  background: var(--bg-primary);
  margin: 18px 0 6px;
}
.comment-composer-main {
  flex: 1 1;
  min-width: 0;
}
.comment-composer textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 11px 13px;
  font: inherit;
  font-size: 0.95rem;
  line-height: 1.55;
  resize: vertical;
  min-height: 62px;
  background: var(--surface);
  color: var(--text-primary);
}
.comment-composer textarea::placeholder {
  color: var(--text-muted);
}
.comment-composer-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.comment-name-input {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 11px;
  font: inherit;
  font-size: 0.88rem;
  width: 132px;
  background: var(--surface);
  color: var(--text-primary);
}
.comment-pw {
  font-size: 0.8rem;
}
.comment-pw > summary {
  color: var(--text-muted);
  cursor: pointer;
  list-style: none;
}
.comment-pw > summary::-webkit-details-marker {
  display: none;
}
.comment-pw input {
  display: block;
  margin-top: 6px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 7px 10px;
  font: inherit;
  font-size: 0.84rem;
  background: var(--surface);
  color: var(--text-primary);
}
.comment-foot-spacer {
  flex: 1 1;
}
.comment-submit {
  background: var(--accent);
  color: #fff;
  border: 0;
  border-radius: 9px;
  padding: 10px 20px;
  font: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
}
.comment-submit:hover {
  background: var(--accent-strong);
}

.comment-list {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  display: block;
}
.comment-row {
  display: flex;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}
.comment-row:last-child {
  border-bottom: 0;
}
.comment-row-main {
  flex: 1 1;
  min-width: 0;
}
.comment-row-meta {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 5px;
}
.comment-row-meta strong {
  font-size: 0.9rem;
  font-weight: 700;
}
.comment-row-meta time {
  color: var(--text-muted);
  font-size: 0.72rem;
}
.comment-row-body {
  margin: 0;
  font-size: 0.93rem;
  line-height: 1.62;
  color: var(--text-secondary);
}
.comment-del {
  margin-top: 7px;
}
.comment-del > summary {
  color: var(--text-muted);
  font-size: 0.72rem;
  cursor: pointer;
  list-style: none;
  width: -moz-fit-content;
  width: fit-content;
}
.comment-del > summary::-webkit-details-marker {
  display: none;
}
.comment-del-form {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  flex-wrap: wrap;
}
.comment-del-form input {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 7px 10px;
  font: inherit;
  font-size: 0.82rem;
  background: var(--surface);
  color: var(--text-primary);
}
.comment-del-form button {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 8px;
  padding: 7px 12px;
  font: inherit;
  font-size: 0.82rem;
  cursor: pointer;
}
.comment-empty {
  text-align: center;
  padding: 26px 0 6px;
}
.comment-empty-emoji {
  font-size: 1.7rem;
}
.comment-empty p {
  margin: 8px 0 2px;
  color: var(--text-primary);
  font-weight: 600;
}
.comment-empty-sub {
  color: var(--text-secondary);
  font-size: 0.82rem;
}
@media (max-width: 520px) {
  .comment-name-input {
    width: 100%;
  }
  .comment-composer {
    padding: 14px;
    gap: 10px;
  }
}

/* ============================================================
   TOOLS — /tools SEO utility pages (calculators & self-checks)
   APPENDED SECTION — keep scoped to .tool-* / .tools-* / .quiz-*
   ============================================================ */
.tools-grid {
  display: grid;
  grid-gap: var(--s3);
  gap: var(--s3);
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.tool-card {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  border-top: 3px solid var(--accent);
  transition: border-color 160ms ease;
}

.tool-card h2 {
  margin: 0;
  font-size: var(--t-h3);
  font-weight: 800;
  letter-spacing: -0.01em;
}

.tool-card h2 a {
  color: var(--ink);
}

.tool-card h2 a:hover {
  color: var(--accent);
  text-decoration: none;
}

.tool-card p {
  margin: 0;
  color: var(--ink-2);
  font-size: var(--t-sm);
  line-height: 1.65;
}

.tool-card-cta {
  margin-top: auto;
  padding-top: 0.5rem;
  font-size: var(--t-sm);
  font-weight: 700;
  color: var(--accent);
}

.tool-form {
  display: grid;
  grid-gap: var(--s3);
  gap: var(--s3);
}

.tool-form-row {
  display: grid;
  grid-gap: 0.75rem;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.tool-form label,
.tool-field-label {
  font-size: var(--t-sm);
  font-weight: 600;
  color: var(--ink-2);
}

.tool-submit {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  min-height: 44px;
}

.tool-submit:hover {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
}

.tool-results {
  display: grid;
  grid-gap: 0.75rem;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.tool-result-card {
  background: var(--accent-wash);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1rem;
  display: grid;
  grid-gap: 0.2rem;
  gap: 0.2rem;
}

.tool-result-label {
  font-size: var(--t-xs);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.tool-result-value {
  font-size: 1.28rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--accent-ink);
  line-height: 1.3;
}

.tool-result-note {
  font-size: var(--t-sm);
  color: var(--ink-2);
  line-height: 1.6;
}

.tool-result-highlight {
  grid-column: 1 / -1;
  background: var(--accent);
  border-color: var(--accent);
}

.tool-result-highlight .tool-result-label {
  color: rgba(255, 255, 255, 0.78);
}

.tool-result-highlight .tool-result-value,
.tool-result-highlight .tool-result-note {
  color: #fff;
}

.tool-badge {
  display: inline-flex;
  align-items: center;
  width: -moz-fit-content;
  width: fit-content;
  border-radius: 999px;
  padding: 0.24rem 0.7rem;
  font-size: var(--t-xs);
  font-weight: 700;
  background: var(--accent-wash);
  color: var(--accent-ink);
  border: 1px solid var(--line-2);
}

/* self-check (quiz) radio rows */
.quiz-item {
  display: grid;
  grid-gap: 0.5rem;
  gap: 0.5rem;
  padding: var(--s3) 0;
  border-top: 1px solid var(--line);
}

.quiz-item:first-child {
  border-top: 0;
  padding-top: 0;
}

.quiz-question {
  margin: 0;
  font-weight: 700;
  font-size: 1rem;
}

.quiz-question small {
  font-weight: 600;
  color: var(--ink-3);
  font-size: var(--t-xs);
}

.quiz-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.quiz-option {
  position: relative;
  display: inline-flex;
}

.quiz-option input[type="radio"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  opacity: 0;
  cursor: pointer;
}

.quiz-option span {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  font-size: var(--t-sm);
  font-weight: 600;
  color: var(--ink-2);
  background: var(--surface);
  transition: background-color 140ms ease, color 140ms ease, border-color 140ms ease;
}

.quiz-option input[type="radio"]:checked + span {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.quiz-option input[type="radio"]:focus-visible + span {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

/* FAQ + disclaimer */
.tool-faq-list {
  display: grid;
  grid-gap: 0;
  gap: 0;
}

.tool-faq-item {
  border-top: 1px solid var(--line);
  padding: 0.65rem 0;
}

.tool-faq-item:first-child {
  border-top: 0;
  padding-top: 0;
}

.tool-faq-item summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--ink);
}

.tool-faq-item[open] summary {
  color: var(--accent);
}

.tool-faq-item p {
  margin: 0.5rem 0 0;
  color: var(--ink-2);
  font-size: var(--t-sm);
  line-height: 1.7;
}

.tool-disclaimer {
  margin: 0;
  padding: var(--s3);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper-2);
  color: var(--ink-3);
  font-size: var(--t-sm);
  line-height: 1.7;
}

@media (max-width: 520px) {
  .tool-results {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   MONETIZATION — 제품 카드(.product-*) + 광고 슬롯(.ad-slot)
   docs/MONETIZATION.md 참고. 키가 비어 있으면 렌더 자체가 안 된다.
   ============================================================ */
.product-section {
  margin: 28px 0;
  display: grid;
  grid-gap: 14px;
  gap: 14px;
}
.product-section .product-eyebrow {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.product-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  display: grid;
  grid-gap: 8px;
  gap: 8px;
}
.product-card .product-badge {
  justify-self: start;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-ink);
  background: var(--accent-wash);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px 10px;
}
.product-card .product-name {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--text-primary);
}
.product-card .product-brand {
  font-weight: 500;
  color: var(--ink-3);
  font-size: var(--t-sm);
}
.product-card .product-summary {
  margin: 0;
  font-size: var(--t-sm);
  color: var(--text-secondary);
  line-height: 1.6;
}
.product-card .product-points {
  margin: 0;
  padding-left: 18px;
  display: grid;
  grid-gap: 2px;
  gap: 2px;
  font-size: var(--t-sm);
  color: var(--text-secondary);
}
.product-card .product-price {
  margin: 0;
  font-size: var(--t-sm);
  font-weight: 700;
  color: var(--text-primary);
}
.product-card .product-cta {
  justify-self: start;
  display: inline-block;
  margin-top: 4px;
  padding: 9px 18px;
  background: var(--accent);
  color: #fff;
  font-size: var(--t-sm);
  font-weight: 700;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background 0.15s ease;
}
.product-card .product-cta:hover {
  background: var(--accent-strong);
}
.product-card .product-image {
  width: 100%;
  max-width: 420px;
  height: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  margin-top: 6px;
}
.product-missing {
  margin: 0;
  font-size: 0.78rem;
  color: var(--ink-3);
  border-left: 2px solid var(--line-2);
  padding-left: 10px;
}
.product-disclosure {
  margin: 0;
  font-size: 0.78rem;
  color: var(--ink-3);
  line-height: 1.5;
}
.ad-slot {
  margin: 26px 0;
  min-height: 90px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}
@media (max-width: 520px) {
  .product-card {
    padding: 14px 16px;
  }
  .product-card .product-cta {
    width: 100%;
    text-align: center;
  }
}

/*!********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ../machinepress/node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[3].use[1]!../machinepress/node_modules/next/dist/build/webpack/loaders/next-font-loader/index.js??ruleSet[1].rules[14].oneOf[3].use[2]!../machinepress/node_modules/next/font/local/target.css?{"path":"app\\layout.tsx","import":"","arguments":[{"src":"./fonts/PretendardVariable.woff2","variable":"--font-body","display":"swap","weight":"100 900"}],"variableName":"pretendard"} ***!
  \********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
@font-face {
font-family: 'pretendard';
src: url(/_next/static/media/ff840cfebfb63b0c-s.p.woff2) format('woff2');
font-display: swap;
font-weight: 100 900;
}@font-face {font-family: 'pretendard Fallback';src: local("Arial");ascent-override: 93.76%;descent-override: 23.75%;line-gap-override: 0.00%;size-adjust: 101.55%
}.__className_a2baf6 {font-family: 'pretendard', 'pretendard Fallback'
}.__variable_a2baf6 {--font-body: 'pretendard', 'pretendard Fallback'
}

