:root {
  --bg: #F4F7F6;
  --surface: #FFFFFF;
  --surface-alt: #EAF2EF;
  --ink: #10221C;
  --ink-muted: #4B615A;
  --border: #D2E0DC;
  --primary: #0F766E;
  --primary-hover: #0B5D57;
  --accent: #9F1239;
  --radius: 10px;
  --shadow-sm: 0 1px 2px rgba(16, 34, 28, 0.06);
  --shadow-md: 0 8px 24px rgba(16, 34, 28, 0.08);
  --font-display: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  --font-body: 'DM Sans', system-ui, -apple-system, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration-thickness: 1.5px; text-underline-offset: 2px; }
a:hover { color: var(--primary-hover); }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
[hidden] { display: none !important; }

.skip-link {
  position: absolute; left: -9999px; top: 8px;
  background: var(--primary); color: #FFFFFF; padding: 8px 16px; border-radius: var(--radius); z-index: 100;
}
.skip-link:focus { left: 16px; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

.verify-bar {
  position: sticky; top: 0; z-index: 40;
  background: var(--primary); color: #FFFFFF; font-size: 14px;
  box-shadow: var(--shadow-sm);
}
.verify-bar-inner {
  min-height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 6px; padding-bottom: 6px;
}
.verify-status { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pulse-dot { width: 8px; height: 8px; border-radius: 999px; background: #5EEAD4; flex-shrink: 0; }
.verify-jump {
  color: #FFFFFF; background: rgba(255, 255, 255, 0.16); text-decoration: none;
  padding: 6px 12px; border-radius: var(--radius); font-weight: 600; font-size: 13px; white-space: nowrap;
}
.verify-jump:hover { background: rgba(255, 255, 255, 0.28); color: #FFFFFF; }

.site-header { background: var(--surface); border-bottom: 1px solid var(--border); }
.header-inner { min-height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 8px; padding-bottom: 8px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--font-display); font-weight: 700; font-size: 18px; }
.brand:hover { color: var(--primary); }
.brand-mark { display: inline-flex; flex-shrink: 0; }
.site-nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.nav-link {
  color: var(--ink-muted); text-decoration: none; font-weight: 600; font-size: 14px;
  padding: 8px 12px; border-radius: var(--radius);
}
.nav-link:hover, .nav-link.is-active { background: var(--surface-alt); color: var(--primary); }

.site-main { padding-bottom: 64px; }
.hero-compact { padding: 24px 0 16px; }
.hero-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--primary); margin-bottom: 8px; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.2; color: var(--ink); margin-top: 0; }
h1 { font-size: 36px; margin-bottom: 12px; letter-spacing: -0.02em; }
h2 { font-size: 24px; margin-bottom: 16px; letter-spacing: -0.01em; }
h3 { font-size: 18px; margin-bottom: 8px; }
.hero-lead { max-width: 70ch; color: var(--ink-muted); font-size: 16px; margin: 0; }

.section-codes { padding: 8px 0 24px; }
.codes-toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  margin-bottom: 16px; font-size: 14px; color: var(--ink-muted);
}
.toggle-used { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 600; color: var(--ink); }
.toggle-used input { width: 16px; height: 16px; accent-color: var(--primary); }

.code-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.code-stub {
  display: grid; grid-template-columns: minmax(0, 1fr) 124px;
  background: var(--surface); border: 1px solid var(--border); border-left: 5px solid var(--primary);
  border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden;
  transition: opacity 0.16s ease, border-color 0.16s ease;
}
.code-stub.is-used { opacity: 0.62; border-left-color: var(--ink-muted); background: #F9FBFA; }
.code-stub-main { padding: 16px; min-width: 0; }
.code-meta-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.status-pill {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 0.04em;
  padding: 2px 8px; border-radius: 999px;
}
.status-new { background: #FFE4E6; color: var(--accent); }
.status-active { background: var(--surface-alt); color: var(--primary); }
.status-expired { background: #FFE4E6; color: var(--accent); }
.case-tag, .verified-stamp { font-size: 12px; color: var(--ink-muted); }
.code-value-row { margin-bottom: 6px; }
.code-text-btn {
  background: transparent; border: none; padding: 0; cursor: pointer; text-align: left;
  font-family: var(--font-mono); font-size: 22px; font-weight: 700; color: var(--ink);
  letter-spacing: 0.02em; font-variant-numeric: tabular-nums;
}
.code-text-btn:hover { color: var(--primary); }
.code-stub.is-used .code-text-btn { text-decoration: line-through; color: var(--ink-muted); }
.code-reward { margin: 0 0 4px; font-size: 15px; font-weight: 600; color: var(--ink); }
.code-note { margin: 0; font-size: 13px; color: var(--ink-muted); line-height: 1.45; }
.code-stub-actions {
  border-left: 2px dashed var(--border); background: #FAFDFC;
  padding: 12px; display: flex; flex-direction: column; justify-content: center; gap: 8px;
}
.btn-copy {
  min-height: 44px; width: 100%; border: none; border-radius: var(--radius);
  background: var(--primary); color: #FFFFFF; font-family: var(--font-display);
  font-size: 15px; font-weight: 700; cursor: pointer; transition: background 0.14s ease;
}
.btn-copy:hover { background: var(--primary-hover); }
.btn-copy.is-copied { background: #10221C; }
.btn-used {
  min-height: 36px; width: 100%; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); color: var(--ink-muted); font-size: 12px; font-weight: 600; cursor: pointer;
}
.btn-used:hover { border-color: var(--primary); color: var(--primary); }
.btn-used[aria-pressed="true"] { background: var(--surface-alt); border-color: var(--primary); color: var(--primary); }


.section { margin-top: 48px; }
.section-tight { margin-top: 32px; }
.section-lead { color: var(--ink-muted); max-width: 70ch; margin: 0 0 16px; }

.steps-strip {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px;
}
.steps-strip li {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px; display: flex; flex-direction: column; gap: 6px; box-shadow: var(--shadow-sm);
}
.step-num {
  width: 28px; height: 28px; border-radius: 999px; background: var(--primary); color: #FFFFFF;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 14px;
}
.steps-strip strong { font-size: 15px; color: var(--ink); }
.steps-strip span:last-child { font-size: 13px; color: var(--ink-muted); line-height: 1.5; }

.diagram-figure {
  margin: 24px 0 0; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 12px; box-shadow: var(--shadow-sm);
}
.diagram-figure figcaption { margin-top: 10px; font-size: 13px; color: var(--ink-muted); }

.callout-box {
  background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--primary);
  border-radius: var(--radius); padding: 16px 20px; box-shadow: var(--shadow-sm);
}
.callout-box p { margin: 8px 0 0; color: var(--ink-muted); max-width: 70ch; }

.table-scroll { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); }
.spec-table, .prose-block table { width: 100%; border-collapse: collapse; font-size: 14px; text-align: left; }
.spec-table th, .spec-table td, .prose-block th, .prose-block td { padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
.spec-table th, .prose-block th { background: var(--surface-alt); font-family: var(--font-display); font-weight: 700; color: var(--ink); white-space: nowrap; }
.spec-table tr:last-child td, .prose-block tr:last-child td { border-bottom: none; }
.prose-block table { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); margin: 16px 0 24px; display: block; overflow-x: auto; }
.prose-block code { font-family: var(--font-mono); font-size: 13px; background: var(--surface-alt); color: var(--primary-hover); padding: 2px 6px; border-radius: 6px; }
.prose-block p, .prose-block li { max-width: 70ch; color: var(--ink); }
.prose-block h2 { margin-top: 32px; }
.prose-block h3 { margin-top: 24px; }
.prose-block ul, .prose-block ol { padding-left: 20px; }
.prose-block li { margin-bottom: 8px; }

.row-directory {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm);
}
.dir-row {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 20px; text-decoration: none; border-bottom: 1px solid var(--border);
  transition: background 0.14s ease;
}
.dir-row:last-child { border-bottom: none; }
.dir-row:hover { background: var(--surface-alt); }
.dir-row strong { display: block; color: var(--ink); font-family: var(--font-display); font-size: 16px; margin-bottom: 2px; }
.dir-row span { display: block; color: var(--ink-muted); font-size: 14px; }
.dir-arrow { font-size: 20px; font-weight: 700; color: var(--primary); flex-shrink: 0; }

.engage-section { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); }
.engage-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.engage-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.btn-primary-sm {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; padding: 0 16px; border: none; border-radius: var(--radius);
  background: var(--primary); color: #FFFFFF; font-weight: 700; font-size: 14px;
  text-decoration: none; cursor: pointer;
}
.btn-primary-sm:hover { background: var(--primary-hover); color: #FFFFFF; }
.btn-primary-sm[data-gf-done] { background: #10221C; }
.btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; padding: 0 14px; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); color: var(--ink); font-weight: 600; font-size: 14px;
  text-decoration: none; cursor: pointer;
}
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-ghost[data-gf-liked] { background: var(--surface-alt); border-color: var(--primary); color: var(--primary); }
.count-badge { font-family: var(--font-mono); font-size: 13px; background: var(--surface-alt); color: var(--primary); padding: 2px 7px; border-radius: 999px; }
.share-msg, .comment-msg { font-size: 13px; color: var(--primary); font-weight: 600; }

.notify-strip {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 16px; border-radius: var(--radius); background: var(--surface-alt); border: 1px solid var(--border);
  margin-bottom: 24px; transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.notify-strip.is-highlighted { border-color: var(--primary); box-shadow: var(--shadow-md); }
.notify-copy strong { display: block; font-size: 15px; color: var(--ink); }
.notify-copy span { display: block; font-size: 13px; color: var(--ink-muted); }
.notify-btns { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.notify-msg { width: 100%; margin: 4px 0 0; font-size: 13px; color: var(--ink-muted); }

.comments-head h3 { margin-bottom: 12px; }
.comment-form { margin-bottom: 16px; }
.comment-reply-bar { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--primary); margin-bottom: 8px; }
.comment-inputs { display: grid; gap: 10px; margin-bottom: 10px; }
.comment-inputs input, .comment-inputs textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px;
  background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 14px;
}
.comment-inputs input:focus, .comment-inputs textarea:focus { background: var(--surface); border-color: var(--primary); outline: none; }
.comment-submit-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.comments-list { display: grid; gap: 10px; }
.comments-list[data-gf-empty] + .comments-empty-hint { display: block; }
.comments-empty-hint { display: none; font-size: 14px; color: var(--ink-muted); margin: 8px 0 0; }
.comment-card, .reply-card { background: var(--bg); border: 1px solid var(--border); border-radius: 8px; padding: 12px 14px; }
.comment-card[data-gf-owner], .reply-card[data-gf-owner] { border-left: 4px solid var(--primary); background: var(--surface-alt); }
.comment-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; margin-bottom: 6px; }
.owner-badge { font-size: 12px; font-weight: 700; background: var(--primary); color: #FFFFFF; padding: 1px 7px; border-radius: 999px; }
.comment-time, .reply-to { color: var(--ink-muted); font-size: 12px; }
.comment-body { margin: 0; font-size: 14px; white-space: pre-wrap; }
.comment-foot { margin-top: 6px; }
.comment-replies { margin-top: 10px; padding-left: 16px; display: grid; gap: 8px; }
.link-btn { background: none; border: none; padding: 0; color: var(--primary); font-weight: 600; font-size: 13px; cursor: pointer; }

.faq-list { display: grid; gap: 10px; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.faq-item summary {
  padding: 16px 20px; font-family: var(--font-display); font-weight: 700; font-size: 16px;
  cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-family: var(--font-mono); font-size: 18px; color: var(--primary); flex-shrink: 0; }
.faq-item[open] summary::after { content: "−"; }
.faq-answer { padding: 0 20px 16px; color: var(--ink-muted); }
.faq-answer p { margin: 0; max-width: 70ch; }

.page-topbar {
  padding: 20px 0 8px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-muted); }
.breadcrumb a { color: var(--primary); text-decoration: none; font-weight: 600; }
.btn-back-codes {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px;
  background: var(--primary); color: #FFFFFF; border-radius: var(--radius);
  text-decoration: none; font-weight: 700; font-size: 13px;
}
.btn-back-codes:hover { background: var(--primary-hover); color: #FFFFFF; }
.page-header { padding: 12px 0 20px; }
.tool-header { padding-bottom: 16px; }
.page-meta { margin-top: 12px; display: flex; gap: 8px; flex-wrap: wrap; font-size: 13px; color: var(--ink-muted); }
.tool-stage { margin-bottom: 32px; }
.tool-content-wrap, .article-shell { max-width: 100%; }

.next-step-box {
  margin-top: 40px; background: var(--surface); border: 1px solid var(--border);
  border-left: 4px solid var(--primary); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-sm);
}
.next-step-kicker { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--primary); margin-bottom: 6px; }
.next-step-box p { margin: 0 0 14px; color: var(--ink-muted); max-width: 70ch; }
.next-step-links { display: flex; flex-wrap: wrap; gap: 10px; }

.notfound-wrap { padding: 64px 24px; max-width: 680px; }
.notfound-wrap h1 { margin-top: 12px; }
.notfound-wrap .next-step-links { margin-top: 24px; }

.site-footer { background: var(--surface); border-top: 1px solid var(--border); padding: 48px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 32px; margin-bottom: 32px; }
.footer-brand { font-family: var(--font-display); font-weight: 700; font-size: 18px; margin-bottom: 8px; }
.footer-copy { font-size: 14px; color: var(--ink-muted); margin: 0; max-width: 44ch; }
.footer-heading { font-family: var(--font-display); font-weight: 700; font-size: 14px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink); margin-bottom: 10px; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 14px; }
.footer-links a { color: var(--ink-muted); text-decoration: none; }
.footer-links a:hover { color: var(--primary); text-decoration: underline; }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 16px; font-size: 12px; color: var(--ink-muted); }
.footer-bottom p { margin: 0; }

@media (max-width: 860px) {
  .code-grid { grid-template-columns: 1fr; }
  .steps-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .verify-bar-inner { font-size: 12px; }
  .verify-jump { display: none; }
  .header-inner { flex-direction: column; align-items: flex-start; gap: 8px; padding-top: 10px; padding-bottom: 10px; }
  .site-nav { width: 100%; display: flex; gap: 2px; flex-wrap: wrap; }
  .nav-link { white-space: nowrap; padding: 6px 8px; font-size: 13px; }
  .hero-compact { padding: 12px 0 8px; }
  h1 { font-size: 26px; margin-bottom: 6px; }
  .hero-lead { font-size: 14px; line-height: 1.5; }
  h2 { font-size: 22px; }
  .section { margin-top: 32px; }
  .code-stub { grid-template-columns: minmax(0, 1fr) 104px; }
  .code-stub-main { padding: 12px; }
  .code-text-btn { font-size: 18px; }
  .code-note { display: none; }
  .code-stub-actions { padding: 10px 8px; }
  .steps-strip { grid-template-columns: 1fr; }
  .engage-section { padding: 16px; }
  .next-step-links a, .notify-btns button { width: 100%; }
}



.media-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px;
}
.media-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.media-card, .compare-card {
  margin: 0; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
}
.compare-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px;
}
.compare-card.is-official { border-top: 4px solid var(--primary); }
.compare-card.is-clone { border-top: 4px solid var(--accent); }
.compare-card-head {
  padding: 12px 14px; display: flex; align-items: center; justify-content: space-between; gap: 8px;
  background: #FAFDFC; border-bottom: 1px solid var(--border); flex-wrap: wrap;
}
.compare-place { font-size: 12px; color: var(--ink-muted); }
.compare-place code {
  font-family: var(--font-mono); font-size: 12px; color: var(--ink);
  background: var(--surface-alt); padding: 2px 6px; border-radius: 6px;
}
.media-frame {
  position: relative; aspect-ratio: 16 / 9; background: #10221C; overflow: hidden;
}
.media-frame img {
  width: 100%; height: 100%; object-fit: cover;
}
.media-tag {
  position: absolute; top: 10px; left: 10px;
  background: rgba(16, 34, 28, 0.88); color: #FFFFFF;
  font-family: var(--font-display); font-size: 12px; font-weight: 700;
  padding: 3px 9px; border-radius: 999px; letter-spacing: 0.02em;
}
.media-caption, .compare-card-body {
  padding: 14px; display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--ink-muted);
}
.media-caption strong, .compare-card-body strong {
  font-family: var(--font-display); font-size: 15px; color: var(--ink); line-height: 1.3;
}
.compare-creator { font-size: 12px; font-weight: 700; color: var(--primary); }
.compare-card.is-clone .compare-creator { color: var(--accent); }
.compare-card-body p { margin: 4px 0 0; line-height: 1.5; }

.video-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px;
}
.video-grid-1 { grid-template-columns: minmax(0, 760px); }
.video-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
}
.video-facade {
  position: relative; aspect-ratio: 16 / 9; background: #10221C; overflow: hidden;
}
.video-facade img {
  width: 100%; height: 100%; object-fit: cover; transition: transform 0.22s ease;
}
.video-facade:hover img { transform: scale(1.03); }
.video-facade iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
}
.video-play-btn {
  position: absolute; inset: 0; width: 100%; height: 100%; border: none; padding: 0;
  background: linear-gradient(180deg, rgba(16, 34, 28, 0.14) 0%, rgba(16, 34, 28, 0.54) 100%);
  color: #FFFFFF; cursor: pointer; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 8px; font-family: var(--font-display);
}
.video-play-icon {
  width: 58px; height: 58px; border-radius: 999px; background: var(--primary); color: #FFFFFF;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 20px rgba(16, 34, 28, 0.42); transition: transform 0.16s ease, background 0.16s ease;
}
.video-play-btn:hover .video-play-icon { background: var(--primary-hover); transform: scale(1.07); }
.video-play-label {
  background: rgba(16, 34, 28, 0.88); color: #FFFFFF; padding: 4px 12px; border-radius: 999px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.02em;
}
.video-duration {
  position: absolute; right: 10px; bottom: 10px;
  background: rgba(16, 34, 28, 0.9); color: #FFFFFF;
  font-family: var(--font-mono); font-size: 12px; font-weight: 700;
  padding: 2px 8px; border-radius: 6px; pointer-events: none;
}
.video-meta { padding: 14px 16px 16px; }
.video-kicker {
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--primary); margin-bottom: 4px;
}
.video-meta h3 { font-size: 17px; margin: 0 0 6px; }
.video-meta p { margin: 0; font-size: 14px; color: var(--ink-muted); line-height: 1.5; }

@media (max-width: 860px) {
  .media-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .video-grid, .compare-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .media-grid, .media-grid-2 { grid-template-columns: 1fr; }
}

.table-meta-stamp {
  font-size: 13px; color: var(--ink-muted); margin: 0 0 14px; max-width: 78ch;
}
.table-meta-stamp code {
  font-family: var(--font-mono); font-size: 12px; background: var(--surface-alt);
  color: var(--primary-hover); padding: 1px 6px; border-radius: 5px;
}
.sub-table-heading { margin-top: 28px; }
.plant-filter-bar {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 14px; margin-bottom: 18px; box-shadow: var(--shadow-sm);
}
.plant-filter-top {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  flex-wrap: wrap; margin-bottom: 10px;
}
.plant-search-input {
  flex: 1 1 280px; min-height: 44px; padding: 8px 12px;
  border: 1px solid var(--border); border-radius: 8px;
  background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 14px;
}
.plant-search-input:focus { outline: 2px solid var(--primary); outline-offset: 1px; background: var(--surface); }
.plant-filter-count { font-size: 13px; font-weight: 600; color: var(--ink-muted); white-space: nowrap; }
.rarity-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.rarity-pill {
  min-height: 32px; padding: 4px 10px; border: 1px solid var(--border); border-radius: 999px;
  background: var(--bg); color: var(--ink-muted); font-family: var(--font-body);
  font-size: 12px; font-weight: 600; cursor: pointer; transition: background 0.14s ease, color 0.14s ease;
}
.rarity-pill:hover { border-color: var(--primary); color: var(--primary); }
.rarity-pill.is-active { background: var(--primary); border-color: var(--primary); color: #FFFFFF; }
.rarity-tag {
  display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 8px;
  border-radius: 6px; background: var(--surface-alt); color: var(--primary-hover); white-space: nowrap;
}
.related-guides-box {
  margin-top: 36px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-sm);
}
.related-guides-box h2 { font-size: 20px; margin: 0 0 12px; }
.related-guides-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.related-guides-list li {
  display: flex; flex-direction: column; gap: 2px; padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.related-guides-list li:last-child { padding-bottom: 0; border-bottom: none; }
.related-guides-list a { font-family: var(--font-display); font-weight: 700; font-size: 15px; }
.related-guides-list span { font-size: 13px; color: var(--ink-muted); }

.ad-native-band {
  margin: 32px 0;
  padding: 14px 16px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--ink);
}
.ad-native-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.ad-native-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.ad-native-slot {
  min-height: 168px;
  width: 100%;
  overflow: hidden;
}
@media (max-width: 640px) {
  .ad-native-band {
    margin: 24px 0;
    padding: 12px;
  }
  .ad-native-slot {
    min-height: 140px;
  }
}
