/* ============================================
   SVMCHRI — Single Design System
   Editorial / Book / Web Magazine
   ============================================ */

/* --- Self-Hosted Fonts --- */
@font-face {
  font-family: 'Sora';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/fonts/sora-latin-variable.woff2') format('woff2');
  size-adjust: 100%;
  ascent-override: 93%;
  descent-override: 24%;
  line-gap-override: 0%;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/newsreader-latin-regular.woff2') format('woff2');
  size-adjust: 105%;
  ascent-override: 90%;
  descent-override: 22%;
  line-gap-override: 0%;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Newsreader';
  font-style: italic;
  font-weight: 400;
  font-display: optional;
  src: url('/fonts/newsreader-latin-italic.woff2') format('woff2');
  size-adjust: 105%;
  ascent-override: 90%;
  descent-override: 22%;
  line-gap-override: 0%;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* --- Tokens --- */
:root {
  --bg: #FAFAF8;
  --bg-alt: #F3F2EF;
  --bg-card: #FFFFFF;
  --surface: #EEEDEA;
  --border: #E5E3DE;
  --border-h: #D0CDC7;

  --text: #1C1C1F;
  --text-2: #4B4B52;
  --text-3: #8A8A94;

  --link: #1A4FBA;
  --link-h: #2D6AE0;
  --accent: #0E7A5E;
  --accent-bg: rgba(14,122,94,0.07);

  --green: #1A9553;
  --red: #C53030;
  --red-bg: rgba(197,48,48,0.05);
  --amber: #B45309;

  --sp-1: 0.25rem; --sp-2: 0.5rem; --sp-3: 0.75rem;
  --sp-4: 1rem; --sp-5: 1.25rem; --sp-6: 1.5rem;
  --sp-8: 2rem; --sp-10: 2.5rem; --sp-12: 3rem;
  --sp-16: 4rem; --sp-20: 5rem; --sp-24: 6rem;

  --f-body: 'Newsreader', Georgia, serif;
  --f-ui: 'Sora', system-ui, sans-serif;
  --f-mono: ui-monospace, 'Cascadia Code', 'Source Code Pro', Menlo, Consolas, 'DejaVu Sans Mono', monospace;

  --r-sm: 4px; --r-md: 8px; --r-lg: 12px; --r-full: 9999px;
  --ease: 200ms ease;
  --max-w: 1080px;
  --content-w: 680px;
  --sidebar-w: 260px;
}

[data-theme="dark"] {
  --bg: #141518;
  --bg-alt: #1B1C21;
  --bg-card: #202127;
  --surface: #2A2B32;
  --border: rgba(255,255,255,0.07);
  --border-h: rgba(255,255,255,0.14);
  --text: #E4E2DD;
  --text-2: #A09FA5;
  --text-3: #6B6A70;
  --link: #5B9BF5;
  --link-h: #7BB3FF;
  --accent: #2DD4A0;
  --accent-bg: rgba(45,212,160,0.08);
  --green: #34D399;
  --red: #F87171;
  --red-bg: rgba(248,113,113,0.08);
  --amber: #FBBF24;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
}

h1, h2, h3, h4 {
  font-family: var(--f-ui);
  line-height: 1.25;
  font-weight: 700;
  color: var(--text);
}
h1 { font-size: 2.4rem; letter-spacing: -0.03em; }
h2 { font-size: 1.5rem; letter-spacing: -0.02em; }
h3 { font-size: 1.15rem; letter-spacing: -0.01em; }

p { margin-bottom: var(--sp-4); color: var(--text-2); }

a { color: var(--link); text-decoration: none; transition: color var(--ease); }
a:hover { color: var(--link-h); }

strong { color: var(--text); font-weight: 600; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

/* --- Layout --- */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--sp-6); position: relative; z-index: 1; }
.grid { display: grid; grid-template-columns: 1fr var(--sidebar-w); gap: var(--sp-12); align-items: start; }
.main { min-width: 0; }

/* --- Header --- */
.hdr {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250,250,248,0.97);
  border-bottom: 1px solid var(--border);
}
[data-theme="dark"] .hdr { background: rgba(20,21,24,0.97); }

.hdr-inner {
  display: flex; align-items: center; height: 52px;
}

.logo {
  font-family: var(--f-ui); font-weight: 800; font-size: 1.2rem;
  letter-spacing: -0.04em; color: var(--text); text-decoration: none;
  margin-right: auto;
}
.logo:hover { color: var(--text); }
.logo b { color: var(--link); font-weight: 800; }

.hdr nav { display: flex; align-items: center; gap: var(--sp-1); }
.hdr nav a {
  font-family: var(--f-ui); font-size: 13px; font-weight: 500;
  color: var(--text-3); padding: 6px 10px; border-radius: var(--r-sm);
  transition: color var(--ease);
}
.hdr nav a:hover, .hdr nav a.on { color: var(--text); }

.theme-btn {
  width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
  background: none; border: 1px solid var(--border); border-radius: var(--r-sm);
  cursor: pointer; font-size: 14px; margin-left: var(--sp-3); color: var(--text-3);
  transition: border-color var(--ease);
}
.theme-btn:hover { border-color: var(--border-h); }

.mob-btn {
  display: none; background: none; border: none; font-size: 20px;
  cursor: pointer; color: var(--text); padding: 4px; margin-left: var(--sp-2);
}

/* --- Hero --- */
.hero { padding: var(--sp-16) 0 var(--sp-8); }
.hero-tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--f-ui); font-size: 12px; font-weight: 500;
  color: var(--green); margin-bottom: var(--sp-5);
}
.hero-tag i {
  width: 6px; height: 6px; background: var(--green); border-radius: 50%;
  animation: blink 2s ease-in-out infinite;
}
@keyframes blink { 0%,100%{opacity:1}50%{opacity:.3} }

.hero h1 { margin-bottom: var(--sp-3); }
.hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--link), var(--accent));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

.hero-sub {
  font-size: 1.1rem; color: var(--text-2); max-width: 560px; line-height: 1.6; margin: 0;
}

/* --- Market List --- */
.mkt-list { display: flex; flex-direction: column; gap: 0; }

.mkt {
  display: grid; grid-template-columns: 40px 1fr auto; gap: var(--sp-4);
  align-items: start; padding: var(--sp-6) 0;
  border-bottom: 1px solid var(--border);
}
.mkt:first-child { border-top: 1px solid var(--border); }

.mkt-icon {
  width: 40px; height: 40px; border-radius: var(--r-md);
  background: var(--surface); overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--f-ui); font-weight: 700; font-size: 15px; color: var(--text-3);
  flex-shrink: 0; margin-top: 2px;
}
.mkt-icon img { width: 100%; height: 100%; object-fit: contain; padding: 3px; }

.mkt-body { min-width: 0; }

.mkt-title {
  font-family: var(--f-ui); font-size: 16px; font-weight: 700;
  color: var(--text); margin-bottom: 2px;
  display: flex; align-items: center; gap: var(--sp-2); flex-wrap: wrap;
}
.mkt-title .on {
  font-size: 11px; font-weight: 500; color: var(--green);
  display: inline-flex; align-items: center; gap: 4px;
}
.mkt-title .on i { width: 5px; height: 5px; background: var(--green); border-radius: 50%; }

.mkt-desc {
  font-size: 14px; color: var(--text-3); line-height: 1.5;
  margin-bottom: var(--sp-2); overflow: hidden;
  display: -webkit-box; /* stylelint-disable-line value-no-vendor-prefix */
  -webkit-box-orient: vertical; /* stylelint-disable-line property-no-vendor-prefix */
  -webkit-line-clamp: 2; /* stylelint-disable-line property-no-vendor-prefix */
  line-clamp: 2;
}

.mkt-link {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  font-family: var(--f-mono); font-size: 13px; color: var(--link);
  padding: 4px 8px; background: var(--bg-alt); border-radius: var(--r-sm);
  cursor: pointer; user-select: all; margin-bottom: var(--sp-2);
  border: 1px solid transparent; transition: border-color var(--ease);
  word-break: break-all;
}
.mkt-link:hover { border-color: var(--border-h); }

.mkt-tags {
  display: flex; flex-wrap: wrap; gap: 4px; margin-top: var(--sp-1);
}
.tag {
  font-family: var(--f-ui); font-size: 10px; font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase;
  padding: 1px 6px; border-radius: 3px;
}
.tag-c { background: rgba(26,79,186,0.07); color: var(--link); }
.tag-f { background: var(--accent-bg); color: var(--accent); }

.mkt-go {
  font-family: var(--f-ui); font-size: 12px; font-weight: 600;
  color: #fff; white-space: nowrap; align-self: center;
  background: linear-gradient(135deg, var(--link), #3B7AE8);
  padding: 8px 18px; border-radius: var(--r-full);
  transition: all var(--ease); text-decoration: none;
  box-shadow: 0 2px 8px rgba(26,79,186,0.18);
  letter-spacing: 0.01em;
}
.mkt-go:hover {
  color: #fff;
  box-shadow: 0 4px 16px rgba(26,79,186,0.35);
  transform: translateY(-1px);
}
[data-theme="dark"] .mkt-go {
  background: linear-gradient(135deg, #4A8BF5, #6CA4FF);
  box-shadow: 0 2px 8px rgba(74,139,245,0.2);
}
[data-theme="dark"] .mkt-go:hover {
  box-shadow: 0 4px 16px rgba(74,139,245,0.4);
}

/* --- CTA Links (scam reports, etc) --- */
.scam-box .more, .scam-section .more {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--f-ui); font-size: 12px; font-weight: 600;
  color: var(--red); padding: 6px 14px;
  border: 1px solid var(--red); border-radius: var(--r-full);
  transition: all var(--ease); text-decoration: none;
  background: transparent;
}
.scam-box .more:hover, .scam-section .more:hover {
  background: var(--red); color: #fff;
  box-shadow: 0 2px 10px rgba(197,48,48,0.2);
}
[data-theme="dark"] .scam-box .more:hover, [data-theme="dark"] .scam-section .more:hover {
  background: #F87171; color: #141518;
}

/* --- Prose --- */
.prose { padding: var(--sp-12) 0 var(--sp-8); }
.prose h2 { margin-bottom: var(--sp-4); }
.prose p { line-height: 1.85; }
.prose a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(26,79,186,0.25); }
.prose a:hover { text-decoration-color: var(--link); }

/* --- Content Image --- */
.c-img {
  border-radius: var(--r-md); overflow: hidden;
  border: 1px solid var(--border); margin: var(--sp-8) 0;
  background: var(--surface); min-height: 120px;
}
.c-img img { width: 100%; }

/* --- Scam Banner --- */
.scam-box {
  border-left: 3px solid var(--red); padding: var(--sp-5) var(--sp-6);
  background: var(--red-bg); border-radius: 0 var(--r-md) var(--r-md) 0;
  margin: var(--sp-8) 0;
}
.scam-box h3 { color: var(--red); font-size: 15px; margin-bottom: var(--sp-2); }
.scam-box p { font-size: 14px; margin-bottom: var(--sp-3); }
.scam-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: var(--sp-3); }
.scam-tags span {
  font-family: var(--f-mono); font-size: 11px; color: var(--red);
  background: rgba(197,48,48,0.06); padding: 1px 8px; border-radius: 3px;
}
.scam-box .more { font-family: var(--f-ui); font-size: 13px; font-weight: 600; color: var(--red); }

/* --- Guide Row --- */
.guides-row {
  display: grid; grid-template-columns: repeat(2,1fr); gap: var(--sp-3);
  margin: var(--sp-4) 0;
}
.g-card {
  padding: var(--sp-5); border: 1px solid var(--border); border-radius: var(--r-md);
  display: block; transition: border-color var(--ease);
}
.g-card:hover { border-color: var(--border-h); }
.g-card h3 { font-size: 14px; margin-bottom: 2px; color: var(--text); }
.g-card p { font-size: 13px; color: var(--text-3); margin: 0; }

/* --- FAQ --- */
.faq { padding: var(--sp-8) 0; }
.faq h2 { margin-bottom: var(--sp-5); }
.faq-list { border-top: 1px solid var(--border); }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  padding: var(--sp-4) 0; background: none; border: none;
  font-family: var(--f-ui); font-size: 14px; font-weight: 600;
  color: var(--text); cursor: pointer; text-align: left; gap: var(--sp-4);
}
.faq-q:hover { color: var(--link); }
.faq-chev { font-size: 11px; color: var(--text-3); transition: transform var(--ease); flex-shrink: 0; }
.faq-item.open .faq-chev { transform: rotate(180deg); }
.faq-a { display: grid; grid-template-rows: 0fr; overflow: hidden; transition: grid-template-rows 250ms ease; }
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-a-in { overflow: hidden; }
.faq-a-in { padding: 0 0 var(--sp-5); font-size: 15px; color: var(--text-2); line-height: 1.75; }
.faq-a-in a { text-decoration: underline; text-underline-offset: 2px; }

/* --- Bottom Articles --- */
.bottom-sec {
  border-top: 1px solid var(--border); margin-top: var(--sp-12);
  padding-top: var(--sp-8);
}
.bottom-sec h2 { font-size: 1.1rem; margin-bottom: var(--sp-4); }
.b-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: var(--sp-3); }
.b-card {
  padding: var(--sp-4); border: 1px solid var(--border); border-radius: var(--r-md);
  display: block; transition: border-color var(--ease);
}
.b-card:hover { border-color: var(--border-h); }
.b-card h3 { font-size: 14px; margin-bottom: 2px; color: var(--text); }
.b-card p { font-size: 12px; color: var(--text-3); margin: 0; }

/* --- Sidebar --- */
.side { position: sticky; top: 64px; }
.sw { margin-bottom: var(--sp-8); }
.sw-title {
  font-family: var(--f-ui); font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-3);
  margin-bottom: var(--sp-3); padding-bottom: var(--sp-2);
  border-bottom: 1px solid var(--border);
}
.sw-list a {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 14px; color: var(--text-2); padding: 6px 0;
  border-bottom: 1px solid var(--border); transition: color var(--ease);
}
.sw-list a:last-child { border-bottom: none; }
.sw-list a:hover { color: var(--link); }
.sw-list .meta { font-family: var(--f-ui); font-size: 11px; color: var(--text-3); }

.sw-alert {
  border-left: 3px solid var(--red); padding: var(--sp-3) var(--sp-4);
  background: var(--red-bg); border-radius: 0 var(--r-sm) var(--r-sm) 0;
}
.sw-alert p { font-size: 13px; color: var(--text-2); margin-bottom: var(--sp-2); }
.sw-alert a { font-family: var(--f-ui); font-size: 12px; font-weight: 600; color: var(--red); }

/* --- Timestamp --- */
.ts { font-family: var(--f-ui); font-size: 12px; color: var(--text-3); padding: var(--sp-3) 0 var(--sp-2); }

/* --- Footer --- */
.ftr {
  border-top: 1px solid var(--border); margin-top: var(--sp-16);
  padding: var(--sp-8) 0 var(--sp-6);
}
.ftr-inner {
  display: flex; justify-content: space-between; align-items: flex-start;
  flex-wrap: wrap; gap: var(--sp-8);
}
.ftr-left { max-width: 340px; }
.ftr-left .logo { margin-bottom: var(--sp-2); display: inline-flex; }
.ftr-left p { font-size: 13px; color: var(--text-3); margin: 0; }

.ftr-links { display: flex; gap: var(--sp-10); flex-wrap: wrap; }
.ftr-col h4 {
  font-family: var(--f-ui); font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-3);
  margin-bottom: var(--sp-2);
}
.ftr-col a { display: block; font-size: 13px; color: var(--text-3); padding: 2px 0; }
.ftr-col a:hover { color: var(--link); }

.ftr-bottom {
  margin-top: var(--sp-6); padding-top: var(--sp-4); border-top: 1px solid var(--border);
  font-family: var(--f-ui); font-size: 11px; color: var(--text-3);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--sp-4);
}

/* --- Breadcrumb --- */
.crumb {
  font-family: var(--f-ui); font-size: 12px; color: var(--text-3);
  display: flex; align-items: center; gap: 6px;
  padding-top: var(--sp-8); padding-bottom: 0;
}
.crumb a { color: var(--text-3); }
.crumb a:hover { color: var(--link); }
.crumb span:not(:last-child) { opacity: 0.4; }

/* --- Links Block (market page) --- */
.links-block {
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding: var(--sp-4) 0; margin-bottom: var(--sp-2);
}
.link-row {
  display: flex; align-items: center; gap: var(--sp-3); padding: 4px 0;
}
.link-label {
  font-family: var(--f-ui); font-size: 12px; font-weight: 600;
  color: var(--text-3); text-transform: uppercase; letter-spacing: 0.03em;
  min-width: 48px;
}

/* --- PGP Signed Mirrors --- */
.pgp-box {
  border: 1px solid var(--border); border-radius: var(--r-md);
  overflow: hidden; margin: var(--sp-8) 0;
}
.pgp-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--sp-3) var(--sp-4); background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}
.pgp-head span {
  font-family: var(--f-ui); font-size: 12px; font-weight: 600;
  color: var(--text-2); text-transform: uppercase; letter-spacing: 0.04em;
}
.pgp-body {
  padding: var(--sp-4); font-family: var(--f-mono); font-size: 12px;
  color: var(--text-3); line-height: 1.6; white-space: pre-wrap;
  word-break: break-all; overflow-x: auto;
}

/* --- Feature List --- */
.feat-list {
  display: flex; flex-direction: column; gap: 0;
  border-top: 1px solid var(--border);
}
.feat-item {
  padding: var(--sp-4) 0; border-bottom: 1px solid var(--border);
  font-size: 15px; color: var(--text-2); line-height: 1.65;
}
.feat-item strong { margin-right: 4px; }

/* --- Steps --- */
.steps { display: flex; flex-direction: column; gap: 0; border-top: 1px solid var(--border); }
.step {
  display: flex; gap: var(--sp-4); padding: var(--sp-4) 0;
  border-bottom: 1px solid var(--border);
  font-size: 15px; color: var(--text-2); line-height: 1.65;
}
.step-n {
  width: 28px; height: 28px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--f-ui); font-size: 13px; font-weight: 700;
  color: var(--link); background: rgba(26,79,186,0.07);
  border-radius: var(--r-sm); margin-top: 1px;
}

/* --- Market Page Logo --- */
.mkt-hero-img { margin: var(--sp-6) 0; }
.mkt-page-logo {
  width: 80px; height: 80px; border-radius: var(--r-md);
  background: var(--surface); object-fit: contain; padding: 6px;
}

/* --- Guide Catalog --- */
.guide-catalog {
  display: flex; flex-direction: column; gap: 0;
  border-top: 1px solid var(--border); margin: var(--sp-4) 0 var(--sp-2);
}
.guide-card {
  display: grid; grid-template-columns: 48px 1fr; gap: var(--sp-5);
  padding: var(--sp-6) 0; border-bottom: 1px solid var(--border);
  text-decoration: none; transition: background var(--ease);
}
.guide-card:hover { background: var(--bg-alt); margin: 0 calc(-1 * var(--sp-4)); padding-left: var(--sp-4); padding-right: var(--sp-4); border-radius: var(--r-md); }
.guide-card-num {
  font-family: var(--f-ui); font-size: 20px; font-weight: 800;
  color: var(--border-h); line-height: 1.3; padding-top: 2px;
}
.guide-card:hover .guide-card-num { color: var(--link); }
.guide-card-body h2 { font-size: 1.15rem; margin-bottom: 4px; color: var(--text); }
.guide-card-body p { font-size: 14px; color: var(--text-3); margin: 0 0 var(--sp-2); line-height: 1.55; }
.guide-card-meta { display: flex; gap: var(--sp-3); align-items: center; }
.guide-tag {
  font-family: var(--f-ui); font-size: 10px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.04em;
  padding: 1px 7px; border-radius: 3px;
  background: var(--accent-bg); color: var(--accent);
}
.guide-read {
  font-family: var(--f-ui); font-size: 11px; color: var(--text-3);
}

/* --- Info Table --- */
.info-table {
  border: 1px solid var(--border); border-radius: var(--r-md);
  overflow: hidden; margin: var(--sp-4) 0 var(--sp-8);
}
.info-table table { width: 100%; border-collapse: collapse; }
.info-table thead { background: var(--bg-alt); }
.info-table th {
  font-family: var(--f-ui); font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-3);
  padding: var(--sp-3) var(--sp-4); text-align: left;
  border-bottom: 1px solid var(--border);
}
.info-table td {
  font-size: 14px; color: var(--text-2); padding: var(--sp-3) var(--sp-4);
  border-bottom: 1px solid var(--border);
}
.info-table tbody tr:last-child td { border-bottom: none; }
.info-table code {
  font-family: var(--f-mono); font-size: 12px;
  background: var(--bg-alt); padding: 1px 5px; border-radius: 3px;
}

/* --- Article List (News) --- */
.article-list {
  display: flex; flex-direction: column; gap: 0;
  border-top: 1px solid var(--border); margin: var(--sp-4) 0;
}
.article-card {
  display: block; padding: var(--sp-6) 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none; transition: background var(--ease);
}
.article-card:hover { background: var(--bg-alt); margin: 0 calc(-1 * var(--sp-4)); padding-left: var(--sp-4); padding-right: var(--sp-4); border-radius: var(--r-md); }
.article-card-tag {
  font-family: var(--f-ui); font-size: 10px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.04em;
  padding: 2px 8px; border-radius: 3px; display: inline-block;
  margin-bottom: var(--sp-2);
}
.tag-scam { background: var(--red-bg); color: var(--red); }
.tag-update { background: rgba(26,79,186,0.07); color: var(--link); }
.tag-info { background: var(--accent-bg); color: var(--accent); }
.article-card h2 { font-size: 1.15rem; margin-bottom: 4px; color: var(--text); }
.article-card p { font-size: 14px; color: var(--text-3); margin: 0 0 var(--sp-2); line-height: 1.55; }
.article-card-meta {
  display: flex; gap: var(--sp-4); font-family: var(--f-ui);
  font-size: 11px; color: var(--text-3);
}

/* --- Scam Sections (per-market) --- */
.scam-section {
  border-bottom: 1px solid var(--border); padding: var(--sp-6) 0;
}
.scam-section:first-of-type { border-top: 1px solid var(--border); }
.scam-section-title {
  font-family: var(--f-ui); font-size: 15px; font-weight: 700;
  color: var(--text); margin-bottom: 4px;
}
.scam-section-sub {
  font-size: 13px; color: var(--text-3); margin-bottom: var(--sp-3);
}
.scam-section-sub a { color: var(--link); text-decoration: underline; text-underline-offset: 2px; }
.scam-section .more { display: inline-block; margin-top: var(--sp-2); }

/* --- Status Board --- */
.status-board {
  border: 1px solid var(--border); border-radius: var(--r-md);
  overflow: hidden; margin: var(--sp-4) 0 var(--sp-8);
}
.status-row {
  display: grid; grid-template-columns: 14px 1fr auto;
  align-items: center; gap: var(--sp-4);
  padding: var(--sp-4) var(--sp-5);
  border-bottom: 1px solid var(--border);
}
.status-row:last-child { border-bottom: none; }
.status-dot {
  width: 10px; height: 10px; border-radius: 50%;
}
.status-online .status-dot { background: #22c55e; box-shadow: 0 0 6px rgba(34,197,94,0.4); }
.status-intermittent .status-dot { background: #f59e0b; box-shadow: 0 0 6px rgba(245,158,11,0.4); }
.status-offline .status-dot { background: #ef4444; box-shadow: 0 0 6px rgba(239,68,68,0.4); }
.status-info { display: flex; flex-direction: column; gap: 2px; }
.status-name {
  font-family: var(--f-ui); font-size: 14px; font-weight: 600;
  color: var(--text); text-decoration: none;
}
.status-name:hover { color: var(--link); }
.status-meta {
  font-family: var(--f-ui); font-size: 11px; color: var(--text-3);
}
.status-badge {
  font-family: var(--f-ui); font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.03em;
  padding: 2px 10px; border-radius: 3px;
}
.status-online .status-badge { background: rgba(34,197,94,0.1); color: #16a34a; }
.status-intermittent .status-badge { background: rgba(245,158,11,0.1); color: #d97706; }
.status-offline .status-badge { background: rgba(239,68,68,0.1); color: #dc2626; }
[data-theme="dark"] .status-online .status-badge { background: rgba(34,197,94,0.15); color: #4ade80; }
[data-theme="dark"] .status-intermittent .status-badge { background: rgba(245,158,11,0.15); color: #fbbf24; }
[data-theme="dark"] .status-offline .status-badge { background: rgba(239,68,68,0.15); color: #f87171; }

/* --- Responsive --- */
@media(max-width:1024px){
  .grid { grid-template-columns: 1fr; }
  .side { position: static; display: grid; grid-template-columns: repeat(auto-fit,minmax(220px,1fr)); gap: var(--sp-4); }
  .sw { margin-bottom: 0; }
}
@media(max-width:768px){
  h1 { font-size: 1.75rem; }
  .container { padding: 0 var(--sp-4); }
  .hdr nav { display: none; }
  .mob-btn { display: block; }
  .hdr nav.open {
    display: flex; flex-direction: column; position: absolute;
    top: 52px; left: 0; right: 0; background: var(--bg-card);
    border-bottom: 1px solid var(--border); padding: var(--sp-3);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  }
  [data-theme="dark"] .hdr nav.open { background: var(--bg-card); }
  .guides-row { grid-template-columns: 1fr; }
  .b-grid { grid-template-columns: 1fr; }
  .mkt { grid-template-columns: 32px 1fr; gap: var(--sp-3); }
  .mkt-go { grid-column: 1 / -1; text-align: center; padding: 10px; font-size: 13px; }
  .mkt-icon { width: 32px; height: 32px; font-size: 13px; }
  .ftr-links { gap: var(--sp-6); }
  .guide-card { grid-template-columns: 36px 1fr; gap: var(--sp-3); }
  .guide-card-num { font-size: 16px; }
  .guide-card:hover { margin: 0; padding-left: 0; padding-right: 0; }
  .info-table { overflow-x: auto; }
  .info-table table { min-width: 400px; }
  .article-card:hover { margin: 0; padding-left: 0; padding-right: 0; }
  .status-row { gap: var(--sp-3); padding: var(--sp-3) var(--sp-4); }
  .status-badge { font-size: 10px; padding: 2px 7px; }
}
@media(max-width:480px){
  h1 { font-size: 1.5rem; }
  .hero { padding: var(--sp-10) 0 var(--sp-6); }
  .ftr-inner { flex-direction: column; }
}

/* --- Utility Classes (replaces inline styles) --- */
.hero--compact { padding-bottom: var(--sp-4); }
.prose--tight { padding-top: var(--sp-4); }
.prose--tight-sm { padding-top: var(--sp-2); }
.prose--flush { padding-bottom: 0; }
.sw-title--alert { color: var(--red); border-color: rgba(197,48,48,0.15); }
.hero-tag--alert { color: var(--red); }
.hero-tag--alert i { background: var(--red); }
.scam-box--flush { border-left-width: 4px; margin-top: 0; }
.mt-4 { margin-top: var(--sp-4); }
.mb-8 { margin-bottom: var(--sp-8); }
.link-inherit { color: inherit; text-decoration: underline; }
.link-alert { color: var(--red); font-weight: 600; }
.link-styled { font-family: var(--f-ui); font-size: 14px; font-weight: 600; }
.mb-0 { margin-bottom: 0; }
.mt-3 { margin-top: var(--sp-3); }

/* --- CSS Containment (off-screen rendering skip) --- */
.faq { contain: layout style paint; }
.bottom-sec { contain: layout style paint; }
.ftr { content-visibility: auto; contain-intrinsic-size: auto 300px; }
.side .sw:last-child { contain: layout style paint; }
