/* ==========================================================================
   HamPost — Design System (v2, 2026-10: "radio front panel")
   Palette:  paper ground | navy ink | signal orange (from the logo), sparingly
   Fonts:    Archivo (headings) | Inter (body/UI) | IBM Plex Mono (data, readouts)
   The --gold* names are kept from the template; they now hold the orange accent.
   ========================================================================== */

:root {
  --bg:        #F5F3EE;  /* Paper        — page background            */
  --bg-2:      #FFFFFF;  /* White        — cards, panels               */
  --bg-3:      #EDE8DD;  /* Sand         — alternate section bands     */
  --line:      #DDD6C8;  /* Hairlines on paper                         */
  --gold:      #C2410C;  /* Signal Orange — buttons, accents (white text passes AA) */
  --gold-dark: #9A3412;  /* Links on paper                              */
  --gold-light:#FB923C;  /* Accent on navy                              */
  --text:      #0F1B2D;  /* Navy ink     — headings, body              */
  --text-2:    #5B6575;  /* Slate        — meta, dates, captions       */
  --dark:      #0F1B2D;  /* Navy         — footer, strips              */

  --maxw: 1240px;
  --readw: 720px;
  --radius: 10px;
  --radius-sm: 6px;

  --f-head: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-accent: "Inter", system-ui, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; overflow-x: hidden; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 1.125rem;         /* 18px */
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

h1, h2, h3, h4 {
  font-family: var(--f-head);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 0 0 0.5em;
}
h1 { font-size: 2.5rem; }      /* 40px */
h2 { font-size: 2rem; }        /* 32px */
h3 { font-size: 1.5rem; }      /* 24px */

p { margin: 0 0 1em; }

a { color: var(--gold-dark); text-decoration: none; }
a:hover { color: var(--gold); text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; }

.accent {
  font-family: var(--f-accent);
  color: var(--text-2);
}

.meta { font-size: 0.875rem; color: var(--text-2); }

/* ------- Layout primitives ------- */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.readable  { max-width: var(--readw); margin-left: auto; margin-right: auto; }
.section   { padding-top: 56px; padding-bottom: 56px; }
.section-tight { padding-top: 32px; padding-bottom: 32px; }

.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ------- Header / nav ------- */
.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
.nav {
  display: flex; align-items: center; gap: 24px;
  height: 72px;
}
.brand {
  font-family: var(--f-head);
  font-size: 1.6rem; font-weight: 700;
  color: var(--text); text-decoration: none;
  letter-spacing: 0.02em; white-space: nowrap;
  display: inline-flex; align-items: center;
}
.brand:hover { color: var(--text); text-decoration: none; }
.brand-logo {
  display: block; height: 40px; width: auto; max-width: 100%;
}
.footer-brand .brand-logo { height: 44px; }
.nav-links {
  display: flex; gap: 20px; margin: 0; padding: 0; list-style: none;
  flex: 1;
}
.nav-links a {
  color: var(--text); font-weight: 600; font-size: 1rem; white-space: nowrap;
  padding: 6px 0; border-bottom: 2px solid transparent;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--text); text-decoration: none; border-bottom-color: var(--gold);
}
.nav-actions { display: flex; align-items: center; gap: 14px; }

.btn {
  display: inline-block;
  background: var(--gold); color: #fff;
  font-family: var(--f-body); font-weight: 600; font-size: 1rem;
  padding: 10px 20px; border: none; border-radius: var(--radius);
  cursor: pointer; text-decoration: none; min-height: 44px; line-height: 24px;
  transition: background .15s ease;
}
.btn:hover { background: var(--gold-dark); color: #fff; text-decoration: none; }
.btn-ghost {
  background: transparent; color: var(--text);
  border: 1px solid rgba(15,23,42,0.25);
}
.btn-ghost:hover { background: var(--bg-2); color: var(--text); }

/* ------- Hamburger (mobile) ------- */
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--text); margin: 5px 0; }

/* ------- Cards ------- */
.card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(15,23,42,0.08); }
.card-img { aspect-ratio: 16/10; background: #E2E8F0; object-fit: cover; width: 100%; }
.card-body { padding: 18px 20px 22px; }
.card-title { font-size: 1.25rem; margin: 0 0 6px; }
.card-title a { color: var(--text); }
.card-title a:hover { color: var(--text); text-decoration: none; }

/* ------- Hero ------- */
.hero { padding: 48px 0 24px; }
.hero-inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.hero-img { aspect-ratio: 4/3; border-radius: var(--radius); background: #E2E8F0; object-fit: cover; width: 100%; }
.hero h1 { font-size: 3rem; margin-bottom: 0.3em; }
.hero .kicker {
  font-family: var(--f-body); font-weight: 600; font-size: 0.8rem;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-dark);
  margin-bottom: 12px;
}

/* ------- Score / stars ------- */
.stars { color: var(--gold); letter-spacing: 2px; }
.stars .off { color: rgba(15,23,42,0.22); }
.score-badge {
  display: inline-flex; align-items: baseline; gap: 4px;
  font-family: var(--f-head); font-weight: 700; color: var(--dark);
}
.score-badge .num { font-size: 2rem; color: var(--gold-dark); }

/* ------- Section heading ------- */
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 24px; }
.section-head h2 { margin: 0; }
.section-head .more { font-weight: 600; font-size: 0.95rem; }
.divider { height: 1px; background: var(--gold); opacity: 0.5; border: 0; margin: 0; }

/* ------- Story photo grid ------- */
.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.photo-grid .ph { aspect-ratio: 1/1; border-radius: var(--radius-sm); background: #E2E8F0; object-fit: cover; width: 100%; }

/* ------- Newsletter ------- */
.newsletter { background: var(--bg-2); border-radius: var(--radius); padding: 40px; text-align: center; }
.newsletter form { display: flex; gap: 10px; max-width: 460px; margin: 18px auto 0; }
.newsletter input[type=email] {
  flex: 1; padding: 12px 14px; border: 1px solid rgba(15,23,42,0.25);
  border-radius: var(--radius); font-family: var(--f-body); font-size: 1rem; background: #fff;
}

/* ------- Brand logo grid ------- */
.brand-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; }
.brand-chip {
  background: var(--bg-2); border-radius: var(--radius); min-height: 92px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  padding: 14px 12px; font-family: var(--f-head); color: var(--dark); font-size: 0.95rem;
  line-height: 1.25; overflow-wrap: break-word; word-break: break-word; hyphens: auto;
}
.brand-chip .meta { margin-top: 4px; }
.brand-chip:hover { color: var(--gold-dark); text-decoration: none; }

/* ------- Footer ------- */
.site-footer { background: var(--dark); color: #E2E8F0; margin-top: 64px; }
.site-footer a { color: #E2E8F0; }
.site-footer a:hover { color: var(--gold); text-decoration: none; }
.footer-inner { display: grid; grid-template-columns: 1.5fr 0.8fr 0.8fr 1.4fr; gap: 40px; padding: 44px 0 36px; }
.footer-brand .brand { color: #fff; }
.footer-cols h4 { color: #fff; font-family: var(--f-body); font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; }
.footer-cols ul { list-style: none; margin: 0; padding: 0; }
.footer-cols li { margin: 8px 0; font-size: 0.95rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding: 16px 0; font-size: 0.85rem; color: #94A3B8; }
.footer-bottom-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 24px; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.site-footer .footer-legal a { color: #94A3B8; }
.site-footer .footer-legal a:hover { color: var(--gold); }

/* ------- Spec / data tables ------- */
.spec-table { width: 100%; border-collapse: collapse; font-size: 1rem; }
.spec-table th, .spec-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid rgba(15,23,42,0.14); vertical-align: top; }
.spec-table thead th { font-family: var(--f-body); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-2); }
.spec-table tbody th { width: 34%; color: var(--text-2); font-weight: 600; font-family: var(--f-body); }
.spec-table a { font-weight: 600; }

/* ------- Article body ------- */
.article-body { max-width: var(--readw); margin: 0 auto; }
.article-body h2 { margin-top: 1.6em; }
.article-body h3 { margin-top: 1.3em; }
.article-body p, .article-body li { font-size: 1.15rem; line-height: 1.7; }
.article-body blockquote { font-family: var(--f-accent); font-style: italic; font-size: 1.4rem; color: var(--text-2); border-left: 3px solid var(--gold); margin: 1.5em 0; padding: 0.2em 0 0.2em 1.2em; }
.article-body img { border-radius: var(--radius); margin: 1.5em 0; }
.article-body table { width: 100%; border-collapse: collapse; margin: 1.5em 0; }
.article-body th, .article-body td { border: 1px solid rgba(15,23,42,0.16); padding: 8px 12px; text-align: left; }
.article-head { max-width: var(--readw); margin: 0 auto 24px; }
.article-head h1 { font-size: 2.6rem; }
.score-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; max-width: var(--readw); margin: 24px auto; }
.score-grid .cell { background: var(--bg-2); border-radius: var(--radius); padding: 14px 16px; text-align: center; }
.score-grid .cell .n { font-family: var(--f-head); font-size: 1.6rem; color: var(--gold-dark); font-weight: 700; }
.score-grid .cell .l { font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-2); }
.score-grid .cell.overall { background: var(--dark); color: #F1F5F9; }
.score-grid .cell.overall .n, .score-grid .cell.overall .l { color: var(--gold); }
.post-list { list-style: none; padding: 0; margin: 0; }

/* ------- Breadcrumb ------- */
.breadcrumb { font-size: 0.875rem; color: var(--text-2); padding: 16px 0; }
.breadcrumb a { color: var(--text-2); }
.breadcrumb a:hover { color: var(--gold-dark); }

/* ------- Utility ------- */
.center { text-align: center; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.tag {
  display: inline-block; background: rgba(194,65,12,0.12); color: var(--dark);
  font-size: 0.78rem; font-weight: 600; padding: 3px 10px; border-radius: 999px;
}

/* ------- Responsive ------- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 24px 32px; padding: 36px 0 28px; }
  .footer-brand, .footer-subscribe { grid-column: 1 / -1; }
}
@media (max-width: 1080px) {
  .nav { gap: 12px; }
  .nav-links { display: none; }
  .nav-toggle { display: block; order: 3; }
  .nav-actions { margin-left: auto; }
  .nav-links.open {
    display: flex; flex-direction: column; position: absolute; top: 72px; left: 0; right: 0;
    background: var(--bg); padding: 16px 24px; border-bottom: 1px solid var(--line); gap: 8px;
  }
}
@media (max-width: 640px) {
  h1 { font-size: 2rem; } .hero h1 { font-size: 2.2rem; }
  h2 { font-size: 1.6rem; }
  .article-head h1 { font-size: 1.9rem; }
  .article-body p, .article-body li { font-size: 1.05rem; }
  body { font-size: 1.0625rem; }
  .container { padding: 0 16px; }
  .site-footer .footer-inner { padding-top: 32px; padding-bottom: 28px; }
  .grid-3, .grid-4, .photo-grid { grid-template-columns: repeat(2, 1fr); }
  .newsletter { padding: 28px 20px; }
  .newsletter form { flex-direction: column; }
  .section { padding-top: 36px; padding-bottom: 36px; }
  .newsletter form { flex-direction: column; }
  /* Wide content (tables) scrolls instead of stretching the page */
  .article-body table, .spec-table { display: block; width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .score-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 460px) {
  .nav-actions { gap: 6px; }
  .nav-actions .btn { padding: 7px 11px; font-size: 0.85rem; }
  .nav-actions .nav-search { display: none; }  /* drop search icon, keep both auth buttons */
  .brand { font-size: 1.35rem; }
  .brand-logo { height: 32px; }
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .score-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   GĐ3 — Ash & Stories
   ========================================================================== */
.story-topbar { display:flex; align-items:flex-end; justify-content:space-between; gap:16px; flex-wrap:wrap; margin-bottom:8px; }
.story-topbar h1 { margin:0; }
.story-tabs { display:flex; gap:20px; border-bottom:1px solid rgba(15,23,42,0.15); margin:20px 0 28px; }
.story-tabs a { padding:10px 2px; color:var(--text-2); font-weight:600; text-decoration:none; border-bottom:2px solid transparent; }
.story-tabs a.active { color:var(--text); border-bottom-color:var(--gold); }

.story-grid { columns:3; column-gap:22px; }
.story-card { background:var(--bg-2); border-radius:var(--radius); overflow:hidden; display:flex; flex-direction:column; break-inside:avoid; margin-bottom:22px; }
.story-cover { display:block; position:relative; background:#E2E8F0; overflow:hidden; }
.story-cover img { width:100%; height:auto; object-fit:contain; display:block; }
.story-cover-ph { width:100%; aspect-ratio:4/3; display:flex; align-items:center; justify-content:center; font-size:2.6rem; background:#E2E8F0; }
.story-cover-ph.big { aspect-ratio:4/3; border-radius:var(--radius); }
.story-multi { position:absolute; top:8px; right:8px; background:rgba(15,23,42,0.7); color:#fff; border-radius:4px; padding:1px 6px; font-size:0.8rem; }
.story-meta { padding:12px 14px 14px; display:flex; flex-direction:column; gap:6px; }
.story-head { display:flex; align-items:center; gap:8px; }
.story-ava { width:32px; height:32px; border-radius:50%; object-fit:cover; }
.story-ava-ph { width:32px; height:32px; border-radius:50%; background:var(--dark); color:#fff; display:inline-flex; align-items:center; justify-content:center; font-weight:700; font-size:0.85rem; }
.story-user { font-weight:600; color:var(--text); text-decoration:none; }
.story-time { color:var(--text-2); font-size:0.85rem; }
.story-cap { margin:2px 0 0; }
.story-cap-lg { font-size:1.15rem; margin:8px 0; }
.story-cigar { display:inline-block; font-size:0.85rem; color:var(--gold-dark); font-weight:600; text-decoration:none; }
.story-cigar:hover { text-decoration:underline; }
.story-stats { display:flex; align-items:center; gap:14px; margin-top:4px; color:var(--text-2); font-size:0.9rem; }
.story-stats a { color:var(--text-2); text-decoration:none; }
.story-details { color:var(--text-2); font-size:0.95rem; }

.story-detail { display:grid; grid-template-columns:1.1fr 0.9fr; gap:36px; align-items:start; }
.story-detail-media { display:flex; flex-direction:column; gap:12px; }
.story-detail-media img { width:100%; border-radius:var(--radius); display:block; }
.story-actions { display:flex; align-items:center; gap:14px; margin:16px 0 8px; }
.btn-like.liked { background:var(--dark); color:#fff; }
.linkbtn { background:none; border:none; color:var(--text-2); cursor:pointer; text-decoration:underline; font:inherit; padding:0; }

.cmt-list { list-style:none; padding:0; margin:0 0 16px; display:flex; flex-direction:column; gap:14px; }
.cmt { display:flex; gap:10px; }
.cmt p { margin:2px 0 0; }
.cmt-form { display:flex; gap:10px; align-items:flex-start; }
.cmt-form textarea { flex:1; padding:10px; border:1px solid rgba(15,23,42,.25); border-radius:8px; font:inherit; }

.fld-label { display:block; margin-bottom:4px; font-weight:600; color:var(--dark); }
.story-previews { display:flex; gap:8px; flex-wrap:wrap; margin-top:8px; }
.story-preview-thumb { width:84px; height:84px; object-fit:cover; border-radius:6px; }

/* ------- Story composer form ------- */
.story-form { display:grid; gap:20px; }
.story-form .fld { display:grid; gap:6px; }
.story-form .fld-hint { font-weight:400; color:var(--text-2); font-size:.9em; }
.story-form textarea,
.story-form select,
.story-form input[type="text"],
.story-form input:not([type]) {
  width:100%; box-sizing:border-box; font:inherit; font-size:1.05rem;
  padding:12px 14px; border:1px solid rgba(15,23,42,0.28); border-radius:10px;
  background:#fff; color:var(--dark); -webkit-appearance:none; appearance:none;
}
.story-form textarea { min-height:120px; line-height:1.5; resize:vertical; }
.story-form select {
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%235c3a1e' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat:no-repeat; background-position:right 14px center; padding-right:38px;
}
.story-form textarea:focus,
.story-form select:focus,
.story-form input:focus { outline:none; border-color:var(--gold); box-shadow:0 0 0 3px rgba(37,99,235,0.15); }
.story-form .btn-lg { padding:14px 22px; font-size:1.05rem; width:100%; }

/* file dropzone */
.story-drop {
  position:relative; display:flex; flex-direction:column; align-items:center; justify-content:center;
  gap:4px; text-align:center; padding:28px 18px; cursor:pointer;
  border:2px dashed rgba(15,23,42,0.35); border-radius:12px; background:#F8FAFC;
  transition:border-color .15s, background .15s;
}
.story-drop:hover, .story-drop.is-drag { border-color:var(--gold); background:#EEF2F7; }
.story-drop input[type="file"] { position:absolute; inset:0; width:100%; height:100%; opacity:0; cursor:pointer; }
.story-drop-icon { font-size:1.8rem; }
.story-drop-title { font-weight:600; color:var(--dark); }
.story-drop-sub { font-size:.9rem; color:var(--text-2); }
.story-previews .story-preview-wrap { position:relative; }
.story-preview-remove {
  position:absolute; top:-6px; right:-6px; width:22px; height:22px; border-radius:50%;
  border:none; background:rgba(0,0,0,0.7); color:#fff; font-size:14px; line-height:22px;
  cursor:pointer; padding:0; display:flex; align-items:center; justify-content:center;
}
.story-preview-remove:hover { background:#a11; }

@media (max-width: 900px) {
  .story-detail { grid-template-columns:1fr; gap:20px; }
}
@media (max-width: 640px) {
  .story-grid { columns:2; column-gap:14px; }
}

/* G�5 search affordance */
.nav-search{font-size:20px;text-decoration:none;color:inherit;padding:0 6px;line-height:1;display:inline-flex;align-items:center;}
.nav-search:hover{opacity:.7;}
.link-list{list-style:none;padding:0;margin:0;}
.link-list li{padding:10px 0;border-bottom:1px solid rgba(15,23,42,.12);}

/* --- GD6: review tasting, pros/cons, FAQ, article comments --- */
.tasting-part { max-width: var(--readw); margin: 28px auto 0; }
.tasting-part h2 { font-size: 1.3rem; color: var(--gold-dark); border-bottom: 1px solid rgba(15,23,42,.15); padding-bottom: 6px; }
.proscons { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; max-width: var(--readw); margin: 28px auto 0; }
.proscons .pros, .proscons .cons { background: var(--bg-2); border-radius: var(--radius); padding: 16px 18px; }
.proscons h3 { margin: 0 0 8px; font-size: 1.05rem; }
.proscons .pros h3 { color: #2e7d32; }
.proscons .cons h3 { color: #b23b3b; }
.proscons ul { margin: 0; padding-left: 18px; }
.proscons li { margin: 4px 0; }
.faq { max-width: var(--readw); margin: 32px auto 0; }
.faq-item { border: 1px solid rgba(15,23,42,.18); border-radius: var(--radius); padding: 10px 14px; margin: 8px 0; }
.faq-item summary { cursor: pointer; font-weight: 600; }
.acomments { max-width: var(--readw); margin: 40px auto 0; }
.acomment-list { list-style: none; padding: 0; margin: 0 0 24px; }
.acomment { border-top: 1px solid rgba(15,23,42,.12); padding: 16px 0; }
.acomment-head { display: flex; gap: 10px; align-items: baseline; margin-bottom: 8px; }
.acomment-img { max-width: 100%; border-radius: var(--radius); margin: 8px 0; display: block; }
.acomment-form { background: var(--bg-2); border-radius: var(--radius); padding: 18px; display: grid; gap: 12px; }
@media (max-width: 640px) { .proscons { grid-template-columns: 1fr; } }

/* --- GD7: guide optimization (takeaways, ToC, HowTo, related, updated) --- */
.article-head .updated { font-style: italic; opacity: .85; }
.takeaways { max-width: var(--readw); margin: 24px auto 0; background: var(--bg-2); border-left: 4px solid var(--gold-dark); border-radius: var(--radius); padding: 16px 20px; }
.takeaways h2 { margin: 0 0 8px; font-size: 1.1rem; color: var(--gold-dark); }
.takeaways ul { margin: 0; padding-left: 18px; }
.takeaways li { margin: 5px 0; }
.toc { max-width: var(--readw); margin: 24px auto 0; border: 1px solid rgba(15,23,42,.18); border-radius: var(--radius); padding: 14px 20px; }
.toc h2 { margin: 0 0 8px; font-size: 1rem; letter-spacing: .04em; text-transform: uppercase; color: var(--text-2); }
.toc ol { margin: 0; padding-left: 20px; }
.toc li { margin: 4px 0; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }
.howto { max-width: var(--readw); margin: 32px auto 0; }
.howto-list { padding-left: 22px; }
.howto-list li { margin: 12px 0; }
.howto-list li strong { display: block; margin-bottom: 4px; }
.related-articles { max-width: var(--maxw, 1120px); margin: 44px auto 0; }
.related-articles h2 { border-top: 1px solid rgba(15,23,42,.15); padding-top: 24px; }

/* --- Admin rich-text editor (admin-editor.js) --- */
.rte { border: 1px solid rgba(15,23,42,0.24); border-radius: 8px; overflow: hidden; margin-top: 6px; }
.rte-toolbar { display: flex; flex-wrap: wrap; gap: 2px; padding: 6px; background: var(--bg-2); border-bottom: 1px solid rgba(15,23,42,0.16); }
.rte-btn { min-width: 32px; padding: 6px 8px; border: 1px solid rgba(15,23,42,0.18); background: #fff; border-radius: 6px; cursor: pointer; font-size: 0.9rem; line-height: 1; }
.rte-btn:hover { background: var(--bg-2); }
.rte-surface { min-height: 220px; padding: 14px; background: #fff; outline: none; }
.rte-surface:focus { box-shadow: inset 0 0 0 2px rgba(15,23,42,0.12); }
.rte-surface img { max-width: 100%; }

/* --- Category chips + hub (article sections) --- */
.tag-cat { margin-left: 6px; text-decoration: none; }
.tag-cat:hover { text-decoration: underline; }
.cat-hub { margin-top: 24px; }
.cat-hub h2 { margin-bottom: 12px; }
.cat-card .card-body { padding: 16px; }
.cat-card .card-title a { text-decoration: none; }
.cat-card .card-title a:hover { text-decoration: underline; }

/* Footer newsletter subscribe */
.footer-subscribe .subscribe-form {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.footer-subscribe .subscribe-form input[type="email"] {
  flex: 1 1 160px;
  min-width: 0;
  padding: 9px 12px;
  border: 1px solid rgba(148,163,184, 0.3);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: #F1F5F9;
}
.footer-subscribe .subscribe-form input::placeholder { color: #94A3B8; }
.footer-subscribe .subscribe-form button {
  padding: 9px 16px;
  border: none;
  border-radius: 8px;
  background: var(--gold-light);
  color: var(--dark);
  font-weight: 600;
  cursor: pointer;
}
.footer-subscribe .subscribe-form button:hover { background: #FDBA74; }
/* Honeypot: hidden from real users, visible to naive bots. */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  opacity: 0;
}
/* Subscribe flash toast */
.sub-flash {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9998;
  max-width: 92vw;
  padding: 12px 20px;
  border-radius: 10px;
  background: #1E293B;
  color: #F1F5F9;
  border: 1px solid rgba(148,163,184, 0.3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  font-size: 0.95rem;
}

/* --- Pagination (server-side, no JS) --- */
.pagination{display:flex;align-items:center;justify-content:center;gap:16px;margin:40px 0 8px;flex-wrap:wrap}
.pagination .page-link{display:inline-block;padding:10px 18px;border:1px solid var(--border,#3a3a3a);border-radius:8px;text-decoration:none;color:inherit;font-weight:600;transition:background .15s,border-color .15s}
.pagination a.page-link:hover{background:var(--accent,#c8962f);border-color:var(--accent,#c8962f);color:#1a1a1a}
.pagination .page-link.is-disabled{opacity:.4;pointer-events:none}
.pagination .page-status{font-size:.95rem;opacity:.75}
@media (max-width:480px){.pagination{gap:10px}.pagination .page-link{padding:9px 14px}}

/* --- Brand detail page --- */
.brand-facts { margin: 20px 0 8px; }
.facts-table { border-collapse: collapse; width: 100%; max-width: 460px; }
.facts-table th, .facts-table td { text-align: left; padding: 8px 12px; border-bottom: 1px solid var(--border, #e5e0d8); vertical-align: top; font-size: 0.95rem; }
.facts-table th { width: 40%; font-weight: 600; color: var(--muted, #6b6157); white-space: nowrap; }
.brand-toplines { margin: 28px 0 8px; }
.topline-list { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.topline-list li { display: flex; align-items: baseline; gap: 8px; }
.brand-history { margin: 28px 0 8px; }
.brand-faq { margin: 32px 0 8px; }
.brand-faq .faq-item { border-bottom: 1px solid var(--border, #e5e0d8); padding: 10px 0; }
.brand-faq .faq-item summary { cursor: pointer; font-weight: 600; list-style: none; }
.brand-faq .faq-item summary::-webkit-details-marker { display: none; }
.brand-faq .faq-item summary::before { content: "+"; display: inline-block; width: 1em; color: var(--accent, #9a6b3f); font-weight: 700; }
.brand-faq .faq-item[open] summary::before { content: "\2013"; }
.brand-related { margin: 36px 0 8px; }
.gear-photo { width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; }

/* ==========================================================================
   Homepage v2 (home.ts) — classes prefixed hp-
   ========================================================================== */
.hp-mono { font-family: var(--f-mono); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }
.hp-muted { color: var(--text-2); }
.hp-kicker { display: block; color: var(--gold); margin-bottom: 6px; }
.hp-kicker-light { display: block; color: var(--gold-light); margin-bottom: 6px; }
.hp-more { font-weight: 600; white-space: nowrap; }
.hp-section { padding-top: 64px; padding-bottom: 64px; }
.hp-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px 24px; margin-bottom: 28px; }
.hp-head h2 { margin: 0; font-size: 2.25rem; }
.hp-head p { margin: 6px 0 0; }
.hp-band-bg { background: var(--bg-3); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.hp-white { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* Band conditions strip */
.hp-strip { background: var(--dark); color: #E6EAF0; }
.hp-strip-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 36px; padding-top: 12px; padding-bottom: 12px; }
.hp-strip-head { display: flex; flex-direction: column; }
.hp-strip-k { color: var(--gold-light); }
.hp-strip-sub { font-size: 0.78rem; color: #A3AEC0; }
.hp-strip-sub a { color: #C9D1DC; text-decoration: underline; }
.hp-metrics { display: flex; gap: 22px; }
.hp-metric { display: flex; flex-direction: column; }
.hp-metric-l { font-family: var(--f-mono); font-size: 0.7rem; letter-spacing: 0.08em; color: #A3AEC0; }
.hp-metric-v { font-family: var(--f-mono); font-size: 1.35rem; font-weight: 600; line-height: 1.1; }
.hp-bands { display: flex; flex-wrap: wrap; gap: 8px 18px; list-style: none; margin: 0; padding: 0; flex: 1 1 420px; }
.hp-band { display: flex; align-items: center; gap: 6px; }
.hp-band-n { font-family: var(--f-mono); font-size: 0.82rem; }
.hp-cond { font-family: var(--f-mono); font-size: 0.7rem; font-weight: 600; padding: 2px 7px; border-radius: 999px; }
.hp-cond.is-good { background: var(--gold-light); color: var(--dark); }
.hp-cond.is-fair { color: #FDBA74; box-shadow: inset 0 0 0 1px var(--gold-light); }
.hp-cond.is-poor { background: #1C2A40; color: #A3AEC0; }

/* Hero */
.hp-hero { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; padding-top: 56px; padding-bottom: 64px; }
.hp-hero-copy { flex: 1 1 480px; min-width: 0; }
.hp-hero h1 { font-size: clamp(2.3rem, 4.6vw, 3.6rem); line-height: 1.04; letter-spacing: -0.02em; margin: 0 0 18px; }
.hp-lede { font-size: 1.2rem; color: #3A4556; max-width: 34em; }
.hp-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 18px; }
.hp-actions .btn-ghost { border-color: var(--text); }
.hp-stats { font-weight: 500; letter-spacing: 0.04em; text-transform: none; }
.hp-feature { flex: 1 1 420px; min-width: 0; background: var(--bg-2); border: 1px solid var(--line); border-radius: 18px; padding: 26px; display: flex; flex-direction: column; gap: 16px; }
.hp-feature-top { display: flex; justify-content: space-between; gap: 12px; }
.hp-feature-top .hp-mono:first-child { color: var(--gold); }
.hp-feature-title { font-size: 1.35rem; margin: 0; }
.hp-feature-title a { color: var(--text); }
.hp-meter-wrap { display: flex; flex-direction: column; align-items: center; }
.hp-meter { width: 100%; max-width: 360px; height: auto; }
.hp-meter-l { font-family: var(--f-mono); font-size: 12px; fill: var(--text-2); }
.hp-score { display: flex; align-items: baseline; gap: 6px; margin-top: -4px; }
.hp-score span { font-family: var(--f-head); font-weight: 800; font-size: 3.6rem; line-height: 1; }
.hp-score small { font-family: var(--f-mono); font-size: 1rem; color: var(--text-2); }
.hp-subs { display: flex; flex-direction: column; gap: 8px; }
.hp-sub { display: flex; align-items: center; gap: 12px; font-size: 0.92rem; }
.hp-sub-l { width: 104px; color: #3A4556; }
.hp-sub-v { width: 28px; text-align: right; font-family: var(--f-mono); font-weight: 600; }
.hp-bar { flex: 1 1 auto; display: block; height: 8px; border-radius: 99px; background: #EFEAE0; overflow: hidden; }
.hp-bar > span { display: block; height: 100%; border-radius: 99px; background: var(--text); }
.hp-bar-accent { height: 6px; flex: 0 0 auto; }
.hp-bar-accent > span { background: var(--gold); }
.hp-specs { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 20px; border-top: 1px solid #EFEAE0; padding-top: 14px; }
.hp-specs dt { font-family: var(--f-mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-2); }
.hp-specs dd { margin: 0; font-weight: 600; font-size: 0.95rem; }

/* Start here */
.hp-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.hp-step { display: flex; flex-direction: column; gap: 8px; height: 100%; background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px; padding: 22px; color: var(--text); }
.hp-step:hover { text-decoration: none; color: var(--text); border-color: var(--text); }
.hp-step-n { font-family: var(--f-mono); font-size: 1.7rem; font-weight: 600; color: var(--gold); }
.hp-step-name { font-family: var(--f-head); font-weight: 700; font-size: 1.2rem; }
.hp-step-title { font-size: 0.95rem; color: #3A4556; flex: 1 1 auto; }
.hp-step .hp-more { color: var(--gold-dark); font-size: 0.92rem; }

/* Review cards */
.hp-rgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.hp-rcard { display: flex; flex-direction: column; gap: 12px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px; padding: 22px; color: var(--text); }
.hp-rcard:hover { text-decoration: none; color: var(--text); border-color: var(--text); }
.hp-rcard-img { width: 100%; height: 170px; object-fit: contain; background: #fff; border-radius: 10px; margin: -6px 0 2px; }
.hp-rcard-top { display: flex; justify-content: space-between; align-items: center; }
.hp-badge { font-family: var(--f-mono); font-weight: 600; background: var(--dark); color: #fff; border-radius: 8px; padding: 2px 9px; }
.hp-rcard-model { font-family: var(--f-head); font-weight: 800; font-size: 2rem; line-height: 1; letter-spacing: -0.01em; }
.hp-rcard-sub { font-size: 0.95rem; color: #3A4556; flex: 1 1 auto; }
.hp-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.hp-chip { font-family: var(--f-mono); font-size: 0.72rem; border: 1px solid var(--line); border-radius: 6px; padding: 2px 8px; }

/* Guides by topic */
.hp-topics { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.hp-topics > nav { flex: 1 1 250px; max-width: 320px; }
.hp-topic-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.hp-topic { display: flex; justify-content: space-between; align-items: center; min-height: 44px; padding: 0 14px; border: 1px solid #CFC7B6; border-radius: 10px; background: var(--bg-2); color: var(--text); font-weight: 600; font-size: 0.95rem; }
.hp-topic:hover { text-decoration: none; color: var(--text); border-color: var(--text); }
.hp-topic[aria-current="true"] { background: var(--dark); border-color: var(--dark); color: #fff; }
.hp-topic .hp-mono { font-weight: 500; letter-spacing: 0; }
.hp-panels { flex: 999 1 520px; min-width: 0; }
.hp-panel h3 { font-size: 1.35rem; margin: 0 0 4px; }
.hp-panel > p { margin: 0 0 6px; font-size: 0.95rem; }
.hp-panel .hp-more { display: inline-block; margin-top: 18px; }
.hp-glist { list-style: none; margin: 0; padding: 0; }
.hp-grow { display: flex; align-items: center; gap: 16px; padding: 16px 0; border-bottom: 1px solid #EFEAE0; color: var(--text); }
.hp-grow:hover { text-decoration: none; color: var(--gold-dark); }
.hp-grow-tag { flex: 0 0 150px; font-size: 0.7rem; }
.hp-grow-title { flex: 1 1 auto; min-width: 0; font-weight: 500; }

/* Gear table */
.hp-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.hp-filter { min-height: 44px; padding: 0 16px; border: 1px solid #CFC7B6; border-radius: 999px; background: var(--bg-2); color: var(--text); font: 600 0.92rem var(--f-body); cursor: pointer; }
.hp-filter[aria-pressed="true"] { background: var(--dark); border-color: var(--dark); color: #fff; }
.hp-table-wrap { overflow-x: auto; background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px; }
.hp-table { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 0.95rem; }
.hp-table th { text-align: left; font-family: var(--f-mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-2); padding: 14px 18px; border-bottom: 1px solid var(--line); }
.hp-table td { padding: 12px 18px; border-bottom: 1px solid #EFEAE0; vertical-align: middle; }
.hp-table tr:last-child td { border-bottom: 0; }
.hp-table td.hp-mono { font-size: 0.85rem; text-transform: none; letter-spacing: 0; font-weight: 500; }
.hp-table .hp-num { text-align: right; }
.hp-thumb { width: 88px; padding-right: 0 !important; }
.hp-thumb img { display: block; width: 72px; height: 72px; object-fit: contain; border-radius: 8px; background: #fff; border: 1px solid #EFEAE0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp-gmodel { display: block; font-family: var(--f-head); font-weight: 700; font-size: 1.05rem; color: var(--text); }
.hp-table td .hp-muted { font-size: 0.82rem; }
.hp-makers { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 18px; }
.hp-maker { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 1px solid #CFC7B6; border-radius: 10px; background: var(--bg-2); color: var(--text); font-weight: 600; }
.hp-maker:hover { text-decoration: none; color: var(--text); border-color: var(--text); }
.hp-maker .hp-mono { letter-spacing: 0; font-weight: 500; }

/* Newsletter + community */
.hp-cta { display: flex; flex-wrap: wrap; gap: 16px; padding-top: 0; }
.hp-news { flex: 3 1 460px; min-width: 0; background: var(--dark); color: #E6EAF0; border-radius: 18px; padding: 36px; }
.hp-news h2 { color: #fff; font-size: 1.9rem; margin: 0 0 16px; }
.hp-news-form label { display: block; font-size: 0.9rem; color: #C9D1DC; margin-bottom: 6px; }
.hp-news-row { display: flex; flex-wrap: wrap; gap: 10px; }
.hp-news-row input[type=email] { flex: 1 1 240px; min-width: 0; height: 48px; padding: 0 14px; border-radius: 10px; border: 1px solid #3A4A63; background: #16263D; color: #fff; font: 1rem var(--f-body); }
.hp-news-row input::placeholder { color: #8592A6; }
.hp-news-row button { height: 48px; padding: 0 22px; border: 0; border-radius: 10px; background: var(--gold-light); color: var(--dark); font: 700 1rem var(--f-body); cursor: pointer; }
.hp-news-row button:hover { background: #FDBA74; }
.hp-news-note { margin: 12px 0 0; font-size: 0.85rem; color: #A3AEC0; }
.hp-community { flex: 2 1 300px; min-width: 0; background: var(--bg-2); border: 1px solid var(--line); border-radius: 18px; padding: 36px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.hp-community h2 { font-size: 1.7rem; margin: 0; }
.hp-community p { margin: 0 0 6px; }
.hp-stories { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; width: 100%; }
.hp-story img { aspect-ratio: 1/1; width: 100%; object-fit: cover; border-radius: 8px; }

/* ==========================================================================
   Article & review pages (articles.ts renderArticleDetail) — art-, rv-
   ========================================================================== */
.art-head { max-width: 860px; margin: 0 0 28px; }
.art-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.art-head h1 { font-size: clamp(2rem, 3.6vw, 2.9rem); line-height: 1.08; letter-spacing: -0.02em; margin: 14px 0 12px; }
.art-dek { font-size: 1.2rem; color: #3A4556; margin: 0 0 10px; max-width: 46em; }
.art-meta { margin: 0; }
.art-meta a { color: inherit; text-decoration: underline; }
.art-cover img { width: 100%; max-width: 1040px; border-radius: 14px; border: 1px solid var(--line); margin-bottom: 28px; }
.art-layout { display: grid; grid-template-columns: 250px minmax(0, 760px); gap: 48px; align-items: start; }
.art-layout.no-toc { grid-template-columns: minmax(0, 760px); }
.art-aside { position: sticky; top: 92px; max-height: calc(100vh - 110px); overflow: auto; }
.art-toc { margin: 0; border: 0; padding: 0; max-width: none; }
.art-toc h2 { font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-2); margin: 0 0 10px; }
.art-toc ol { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--line); }
.art-toc li { margin: 0; }
.art-toc a { display: block; padding: 6px 0 6px 14px; margin-left: -2px; border-left: 2px solid transparent; color: var(--text-2); font-size: 0.92rem; line-height: 1.35; }
.art-toc a:hover { color: var(--text); border-left-color: var(--gold); text-decoration: none; }
.art-main { min-width: 0; }
.art-main .article-body, .art-main .takeaways, .art-main .faq, .art-main .howto, .art-main .tasting-part { max-width: none; margin-left: 0; margin-right: 0; }
.takeaways { background: var(--bg-2); border: 1px solid var(--line); border-left: 1px solid var(--line); border-radius: 14px; padding: 20px 24px; margin: 0 0 32px; }
.takeaways h2 { font-family: var(--f-mono); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); margin: 0 0 10px; }
.takeaways li { margin: 6px 0; }
.tk-more summary { cursor: pointer; font-weight: 600; color: var(--gold-dark); margin-top: 8px; }
.article-body h2 { scroll-margin-top: 90px; }
.article-body ul li::marker { color: var(--gold); }
.article-body table { font-size: 0.95rem; background: var(--bg-2); }
.article-body th { background: var(--bg-3); }
.faq-item { background: var(--bg-2); border-color: var(--line); }
.art-next { margin-top: 40px; }
.art-next h2 { font-size: 1.3rem; }
.art-next-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.art-next-card { display: flex; flex-direction: column; gap: 4px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; color: var(--text); }
.art-next-card:hover { border-color: var(--text); text-decoration: none; color: var(--text); }
.art-next-card span { color: var(--text-2); font-size: 0.92rem; }
.art-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 32px; }
.art-pager-link { display: flex; flex-direction: column; gap: 6px; border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; color: var(--text); background: var(--bg-2); }
.art-pager-link:hover { border-color: var(--text); text-decoration: none; color: var(--text); }
.art-pager-link.is-next { text-align: right; }
.art-pager-link .hp-mono { letter-spacing: 0.04em; text-transform: none; font-weight: 500; }
/* Reading paths: series, prerequisites, pillar, read next */
.series-box { background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px; margin: 0 0 20px; }
.series-box summary { cursor: pointer; display: flex; flex-direction: column; gap: 4px; list-style: none; }
.series-box summary::-webkit-details-marker { display: none; }
.series-box summary strong { font-size: 1.05rem; }
.series-bar { display: block; height: 4px; background: var(--line); border-radius: 2px; overflow: hidden; margin-top: 6px; }
.series-bar span { display: block; height: 100%; background: var(--gold); }
.series-list { margin: 12px 0 0; padding-left: 22px; }
.series-list li { margin: 5px 0; }
.series-list li.is-current { font-weight: 600; }
.series-list li.is-done a::after { content: " ✓"; color: var(--gold); }
.prereq-box { border: 1px dashed var(--line); border-radius: 12px; padding: 12px 18px; margin: 0 0 20px; }
.prereq-box ul { margin: 6px 0 0; padding-left: 18px; }
.prereq-box li { margin: 4px 0; }
.pillar-line { margin-top: 6px; }
.read-next { display: flex; flex-direction: column; gap: 6px; margin: 32px 0; padding: 20px 22px; border: 1px solid var(--text); border-radius: 14px; background: var(--bg-2); color: var(--text); }
.read-next:hover { text-decoration: none; color: var(--text); box-shadow: 0 2px 0 var(--gold); }
.read-next strong { font-size: 1.15rem; }
.read-next span:last-child:not(.hp-kicker) { color: var(--muted, #555); font-size: 0.95rem; }
.acomments-empty { max-width: 760px; margin: 40px 0 0; border: 1px dashed #CFC7B6; border-radius: 12px; padding: 14px 18px; }
.acomments-empty summary { cursor: pointer; font-weight: 600; }
.acomments-empty .acomment-form, .acomments-empty p { margin-top: 12px; }
.related-articles { margin-top: 48px; }
.rel-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.rel-card { display: flex; flex-direction: column; gap: 8px; height: 100%; box-sizing: border-box; background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; color: var(--text); }
.rel-card:hover { border-color: var(--text); text-decoration: none; color: var(--text); }
.rel-card .hp-mono { font-size: 0.7rem; letter-spacing: 0.06em; }
.rel-card strong { font-family: var(--f-head); font-size: 1.02rem; line-height: 1.3; flex: 1 1 auto; }
.rel-card .meta { margin: 0; }
@media (max-width: 1100px) { .rel-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .rel-grid { grid-template-columns: minmax(0, 1fr); } }

/* Category hubs */
.hub-intro { max-width: 760px; margin-top: 18px; }
.hub-intro p { font-size: 1.08rem; }
.hub-path { max-width: 760px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px; padding: 20px 24px; margin-top: 24px; }
.hub-path h2 { font-family: var(--f-mono); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); margin: 0 0 10px; }
.hub-path ol { margin: 0; padding-left: 22px; }
.hub-path li { margin: 8px 0; font-weight: 600; }
.hub-path li::marker { font-family: var(--f-mono); color: var(--gold); }

/* Review verdict panel */
.rv-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; background: var(--bg-2); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; margin-bottom: 40px; }
.rv-panel > * { padding: 26px 28px; }
.rv-panel h2 { font-family: var(--f-mono); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-2); margin: 0 0 10px; }
.rv-media { display: flex; align-items: center; justify-content: center; border-right: 1px solid var(--line); background: #fff; }
.rv-media img { width: 100%; max-width: 520px; height: auto; }
.rv-verdict { display: flex; flex-direction: column; gap: 10px; }
.rv-score { display: flex; flex-direction: column; align-items: center; }
.rv-score .hp-meter { max-width: 300px; }
.rv-summary { font-size: 1.08rem; margin: 0; }
.rv-best ul, .rv-pc ul { margin: 0; padding-left: 18px; }
.rv-best li, .rv-pc li { margin: 4px 0; font-size: 0.97rem; }
.rv-pc, .rv-scores, .rv-specs { border-top: 1px solid var(--line); }
.rv-pc { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.rv-pros h2 { color: #1F6F43; }
.rv-cons h2 { color: var(--gold-dark); }
.rv-scores { border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.rv-scores .meta, .rv-specs .meta { margin: 8px 0 0; }
.rv-compare { margin-top: 40px; }
.rv-compare .hp-table { min-width: 0; }
.rv-compare tr.is-current { background: #FFF1E6; }
.rv-compare th[scope=row] { font-family: var(--f-head); font-weight: 700; }

@media (max-width: 1100px) {
  .art-layout, .art-layout.no-toc { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .art-aside { position: static; max-height: none; }
  .art-toc { border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; background: var(--bg-2); }
}
@media (max-width: 760px) {
  .rv-panel { grid-template-columns: minmax(0, 1fr); }
  .rv-panel > * { padding: 20px; }
  .rv-media, .rv-scores { border-right: 0; }
  .rv-media { padding: 8px 20px; border-bottom: 1px solid var(--line); }
  .rv-media img { width: auto; max-width: 100%; max-height: 220px; }
  .rv-pc { grid-template-columns: 1fr; gap: 12px; }
  .art-pager { grid-template-columns: 1fr; }
  .art-pager-link.is-next { text-align: left; }
}

.hp-strip-more { color: var(--gold-light); font-size: 0.9rem; font-weight: 600; padding: 8px 0; }
.hp-strip-more:hover { color: #FDBA74; }

/* ==========================================================================
   Live pages (/propagation/, /dx-spots/, homepage "On the air now") — lv-
   ========================================================================== */
.lv-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); margin-right: 6px; vertical-align: 1px; animation: lv-pulse 2s ease-in-out infinite; }
@keyframes lv-pulse { 50% { opacity: 0.35; } }
@media (prefers-reduced-motion: reduce) { .lv-dot { animation: none; } }
.lv-split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: 24px; }
.lv-split h3 { font-size: 1.2rem; margin: 0 0 10px; }
.lv-src { font-size: 0.82rem; margin: 8px 0 0; }
.lv-table { min-width: 0; font-size: 0.88rem; }
.lv-table th, .lv-table td { padding: 9px 12px; }
.hp-mono-cell { font-family: var(--f-mono); font-size: 0.82rem; white-space: nowrap; }
.lv-comment { color: var(--text-2); max-width: 22ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lv-compact .lv-wide { display: none; }
.lv-head { margin: 40px 0 14px; align-items: baseline; }
.lv-head h2 { font-size: 1.6rem; }
.lv-filters { margin-top: 24px; }
.lv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 20px; margin-top: 28px; }
.lv-card { background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px; padding: 24px; }
.lv-card h2 { font-size: 1.4rem; margin: 0 0 14px; }
.lv-card h3 { font-size: 1.05rem; margin: 22px 0 8px; }
.lv-space { margin-top: 20px; }
.lv-cond { width: 100%; border-collapse: collapse; }
.lv-cond th, .lv-cond td { text-align: left; padding: 10px 8px; border-bottom: 1px solid #EFEAE0; }
.lv-cond thead th { font-family: var(--f-mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-2); }
.hp-cond-l { font-family: var(--f-mono); font-size: 0.8rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; }
.hp-cond-l.is-good { background: var(--gold); color: #fff; }
.hp-cond-l.is-fair { box-shadow: inset 0 0 0 1.5px var(--gold); color: var(--gold-dark); }
.hp-cond-l.is-poor { background: #EFEAE0; color: var(--text-2); }
.lv-indices { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; }
.lv-indices dt { font-family: var(--f-mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-2); }
.lv-indices dd { margin: 2px 0 0; font-family: var(--f-mono); font-size: 1.6rem; font-weight: 600; }
.lv-indices dd small { font-size: 0.8rem; color: var(--text-2); }
.lv-scales { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.lv-scale { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.lv-scale.is-active { background: #FFF1E6; border-color: var(--gold); }
.lv-scale-k { font-family: var(--f-mono); font-size: 1.7rem; font-weight: 600; }
.lv-scale-n { font-weight: 600; font-size: 0.95rem; }
.lv-scale-t { color: var(--text-2); font-size: 0.88rem; text-transform: capitalize; }
.kp-chart { width: 100%; max-width: 760px; height: auto; display: block; }
.kp-grid line { stroke: #EFEAE0; }
.kp-chart text { font-family: var(--f-mono); font-size: 11px; fill: var(--text-2); }
.kp-quiet { fill: var(--text); }
.kp-active { fill: var(--gold); }
.kp-storm { fill: #7C2D12; }
.kp-pred { fill: #CFC7B6; }
.kp-now { stroke: var(--gold); stroke-dasharray: 4 3; }
.kp-chart .kp-now-l { fill: var(--gold-dark); }
.lv-explain { max-width: var(--readw); margin-top: 40px; }
.lv-explain h2 { font-size: 1.5rem; margin-top: 1.4em; }
.lv-explain h3 { font-size: 1.1rem; margin: 1.2em 0 0.3em; }
.lv-explain code { font-family: var(--f-mono); font-size: 0.9em; background: #EFEAE0; padding: 1px 6px; border-radius: 4px; }
.lv-tool-name { font-size: 1.5rem; }

/* Tools */
.tl-form { max-width: 640px; margin-top: 24px; display: flex; flex-direction: column; gap: 10px; }
.tl-form label { font-weight: 600; font-size: 0.95rem; }
.tl-form input[type=number], .tl-form input[type=text] { width: 100%; max-width: 260px; height: 48px; padding: 0 14px; border: 1px solid #CFC7B6; border-radius: 10px; background: #fff; font: 600 1.1rem var(--f-mono); color: var(--text); }
.tl-form input:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.tl-form h3 { margin: 18px 0 0; font-size: 1.1rem; }
.tl-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.tl-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.tl-two > div { display: flex; flex-direction: column; gap: 6px; }
.tl-out { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; margin-top: 6px; }
.tl-out > div { background: var(--bg); border-radius: 10px; padding: 12px 14px; display: flex; flex-direction: column; }
.tl-out span { font-size: 0.85rem; color: var(--text-2); }
.tl-out strong { font-family: var(--f-mono); font-size: 1.2rem; }

@media (max-width: 640px) {
  .hp-section { padding-top: 44px; padding-bottom: 44px; }
  .hp-head h2 { font-size: 1.7rem; }
  .hp-hero { padding-top: 32px; gap: 32px; }
  .hp-feature, .hp-news, .hp-community { padding: 22px; }
  .hp-grow { align-items: flex-start; flex-direction: column; gap: 4px; }
  .hp-grow-tag { flex: none; }
  .hp-grow > span[aria-hidden] { display: none; }
  .hp-metrics { gap: 16px; }
}

/* Shack Stories: text posts, topics, sorts, pinned thread, replies (ported from CigarDesk 2026-11-05) */
.story-detail.no-media { grid-template-columns:1fr; max-width:760px; }
.story-text .story-meta { padding-top:16px; }
.story-cap-link { color:var(--text); text-decoration:none; font-size:1.05rem; line-height:1.45; }
.story-cap-link:hover { color:var(--gold-dark); }
.story-actions-top { display:flex; gap:10px; flex-wrap:wrap; }
.topic-bar { display:flex; gap:8px; flex-wrap:wrap; margin:-12px 0 24px; }
.topic-chip { display:inline-block; padding:4px 11px; border-radius:999px; border:1px solid rgba(15,27,45,.2); color:var(--text-2); font-size:.82rem; text-decoration:none; background:transparent; white-space:nowrap; }
.topic-chip:hover { color:var(--text); border-color:rgba(15,27,45,.4); }
.topic-chip.on { background:var(--text); border-color:var(--text); color:#fff; }
.story-stats .topic-chip { margin-left:auto; }
.story-last { color:var(--text-2); font-size:.8rem; }
.story-pinned-row { display:grid; grid-template-columns:repeat(auto-fit,minmax(280px,1fr)); gap:22px; margin-bottom:22px; }
.story-pinned { border:1px solid var(--gold); }
.story-pin { align-self:flex-start; font-size:.72rem; font-weight:700; letter-spacing:.06em; text-transform:uppercase; color:var(--gold-dark); }
.story-welcome { display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap; background:var(--bg-2); border-left:3px solid var(--gold); border-radius:var(--radius); padding:14px 18px; margin:16px 0 0; }
.story-welcome p { margin:0; max-width:620px; }
.story-pager { display:flex; justify-content:space-between; margin:8px 0 0; }
.story-crumb { margin:0 0 12px; color:var(--text-2); font-size:.9rem; }
.story-crumb a { color:var(--text-2); }
.cmt-quote { display:block; margin:4px 0 2px; padding:4px 10px; border-left:2px solid rgba(15,27,45,.25); color:var(--text-2); font-size:.85rem; text-decoration:none; }
.cmt-reply { font-size:.82rem; color:var(--text-2); margin-top:2px; }
.cmt-form { flex-wrap:wrap; }
.cmt-replying { flex-basis:100%; font-size:.85rem; color:var(--text-2); }
.compose-choice { display:grid; grid-template-columns:1fr 1fr; gap:18px; margin-top:20px; }
.compose-card { display:flex; flex-direction:column; gap:8px; padding:22px; border-radius:var(--radius); background:var(--bg-2); border:1px solid var(--line); color:var(--text); text-decoration:none; }
.compose-card:hover { border-color:var(--gold); }
.compose-card span { color:var(--text-2); }
@media (max-width:640px) { .compose-choice { grid-template-columns:1fr; } .story-stats .topic-chip { margin-left:0; } }

/* ===== Practice exams (/exam/) ===== */
.ex .hp-lede { max-width: 70ch; }
.ex-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin: 24px 0 40px; }
.ex-card { background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px; padding: 20px 22px; display: flex; flex-direction: column; gap: 10px; }
.ex-card h2 { margin: 0; font-size: 1.4rem; }
.ex-card h2 a { color: var(--text); }
.ex-card p { margin: 0; color: var(--text-2); }
.ex-facts { display: flex; gap: 18px; margin: 4px 0; }
.ex-facts dt { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); }
.ex-facts dd { margin: 0; font-weight: 700; }
.ex-actions, .ex-start, .ex-nav { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 16px 0; }
.ex-big { font-size: 1.05rem; padding: 14px 22px; }
.ex-progress { background: #FFF7ED; border: 1px solid #FED7AA; border-radius: 10px; padding: 10px 14px; font-size: .95rem; }
.ex-progress-wide { margin: 8px 0 24px; }
.ex-how ol { padding-left: 22px; } .ex-how li { margin: 8px 0; }
.ex-subs { list-style: none; padding: 0; margin: 12px 0 24px; display: grid; gap: 8px; }
.ex-sub { background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; }
.ex-sub > a { font-weight: 600; color: var(--text); } .ex-sub .hp-mono { color: var(--gold); margin-right: 6px; }
.ex-sub-score { font-size: .85rem; color: var(--gold-dark); font-weight: 600; }
.ex-sub-guides { flex-basis: 100%; font-size: .9rem; color: var(--text-2); }
.ex-credit { margin-top: 32px; }
.ex-toggle { display: inline-flex; gap: 6px; align-items: center; font-size: .95rem; cursor: pointer; }
.ex-qlist { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 12px; }
.ex-q { background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; scroll-margin-top: 90px; }
.ex-q:target { border-color: var(--gold); box-shadow: 0 0 0 2px #FED7AA; }
.ex-q-text { margin: 0 0 8px; font-weight: 600; }
.ex-qid { color: var(--gold); margin-right: 6px; font-weight: 600; }
.ex-opts { margin: 0 0 8px; padding-left: 24px; } .ex-opts li { margin: 3px 0; }
.ex-reveal-all .ex-opts .is-correct, .ex-q:has(.ex-reveal[open]) .ex-opts .is-correct { color: #15803D; font-weight: 700; }
.ex-reveal summary { cursor: pointer; color: var(--gold-dark); font-weight: 600; font-size: .9rem; }
.ex-fig img, .ex-fig-img { max-width: 100%; height: auto; border: 1px solid var(--line); border-radius: 8px; background: #fff; margin: 8px 0; }
.ex-app { background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px; padding: 20px 22px; margin: 16px 0; min-height: 320px; }
.ex-head { display: flex; justify-content: space-between; margin-bottom: 8px; }
.ex-bar { height: 4px; background: var(--line); border-radius: 2px; overflow: hidden; margin-bottom: 18px; } .ex-bar span { display: block; height: 100%; background: var(--gold); }
.ex-q-big { font-size: 1.15rem; line-height: 1.45; }
.ex-choices { display: grid; gap: 10px; margin: 16px 0; }
.ex-choice { display: flex; gap: 12px; align-items: flex-start; text-align: left; width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--text); font: inherit; cursor: pointer; }
.ex-choice:hover:not(:disabled) { border-color: var(--text); }
.ex-choice.is-picked { border-color: var(--gold); background: #FFF7ED; }
.ex-choice.is-right { border-color: #15803D; background: #F0FDF4; }
.ex-choice.is-wrong { border-color: #B91C1C; background: #FEF2F2; }
.ex-choice:disabled { cursor: default; color: var(--text); }
.ex-letter { font-family: var(--f-mono); font-weight: 600; color: var(--gold); min-width: 1.2em; }
.ex-fb { margin: 6px 0; font-weight: 600; } .ex-fb.is-right { color: #15803D; } .ex-fb.is-wrong { color: #B91C1C; }
.ex-grid { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.ex-cell { width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 6px; background: #fff; font: 600 .8rem var(--f-mono); cursor: pointer; color: var(--text); }
.ex-cell.is-done { background: #FFEDD5; border-color: #FDBA74; } .ex-cell.is-here { outline: 2px solid var(--gold); }
.ex-result { text-align: center; padding: 18px; border-radius: 12px; background: #F8FAFC; margin-bottom: 16px; }
.ex-result.is-pass { background: #F0FDF4; } .ex-result.is-fail { background: #FEF2F2; }
.ex-score { font: 800 2.4rem "Archivo", sans-serif; margin: 0; }
.ex-ready { font-weight: 700; color: #15803D; text-align: center; }
.ex-review { padding-left: 22px; } .ex-review li { margin: 14px 0; }
.ex-cta { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: space-between; margin: 28px 0; padding: 18px 22px; border-radius: 14px; background: #0F1B2D; color: #fff; }
.ex-cta strong { font-size: 1.1rem; display: block; } .ex-cta span { color: #CBD5E1; }
.ex-cta .btn { background: var(--gold); border-color: var(--gold); color: #fff; }
.hp-exam-band { background: #0F1B2D; color: #fff; }
.hp-exam-band h2, .hp-exam-band .ex-card h2 a { color: inherit; }
.hp-exam-band .hp-muted, .hp-exam-band .hp-lede { color: #CBD5E1; }
.hp-exam-band .ex-card { background: #16243A; border-color: #24344F; }
.hp-exam-band .ex-card p, .hp-exam-band .ex-facts dt { color: #CBD5E1; }
.hp-exam-band .btn-ghost { color: #fff; border-color: #475569; }
@media (max-width: 640px) { .ex-app { padding: 16px; } .ex-q-big { font-size: 1.05rem; } }
.hp-exam-band .ex-progress { background: #24344F; border-color: #334155; color: #E2E8F0; }
