/* FastJichang.blog — Ember-Charcoal Interactive Benchmark Portal v4 (Pure Native CSS) */
:root {
  --bg-page: #f6f5f2;
  --bg-surface: #ffffff;
  --bg-warm: #fff7ed;
  --bg-charcoal: #18181b;
  --bg-charcoal-2: #27272a;
  --text-primary: #18181b;
  --text-secondary: #3f3f46;
  --text-muted: #71717a;
  --accent: #ea580c;
  --accent-hover: #c2410c;
  --crimson: #e11d48;
  --grad-ember: linear-gradient(135deg, #ea580c 0%, #e11d48 100%);
  --grad-dark: linear-gradient(135deg, #18181b 0%, #27272a 60%, #3f1d2b 100%);
  --border: #e4e4e7;
  --border-strong: #d4d4d8;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --shadow-sm: 0 2px 6px rgba(24, 24, 27, 0.05);
  --shadow-md: 0 10px 26px rgba(24, 24, 27, 0.08);
  --container-max: 1280px;
  --font-sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Segoe UI", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background: linear-gradient(180deg, rgba(239, 246, 255, 0.28) 0%, rgba(246, 245, 242, 0.36) 100%),
    url("../images/site-bg.jpg") center center / cover no-repeat fixed;
  background-color: #dbeafe;
  color: var(--text-primary);
  line-height: 1.72;
  overflow-x: hidden;
  font-variant-numeric: tabular-nums;
}

img,
svg {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

h1,
h2,
h3,
h4 {
  color: var(--text-primary);
  line-height: 1.3;
  margin-top: 0;
  font-weight: 800;
  letter-spacing: -0.015em;
}

h1 {
  font-size: clamp(1.65rem, 2.9vw, 2.25rem);
  margin-bottom: 0.9rem;
}

h2 {
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  margin-bottom: 0.75rem;
}

h3 {
  font-size: 1.06rem;
  margin-bottom: 0.5rem;
}

p {
  margin-top: 0;
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

ul,
ol {
  margin-top: 0;
  margin-bottom: 1rem;
  padding-left: 1.3rem;
  color: var(--text-secondary);
}

li {
  margin-bottom: 0.42rem;
}

code {
  font-family: var(--font-mono);
  font-size: 0.87em;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  padding: 0.1rem 0.36rem;
  border-radius: 4px;
  color: #9a3412;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 999;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* Dual-Tier Header: Charcoal Utility Ticker + Crisp Navigation Masthead */
.top-ticker {
  background: var(--bg-charcoal);
  color: #d4d4d8;
  font-size: 0.78rem;
  padding: 0.36rem 0;
  border-bottom: 1px solid #27272a;
}

.top-ticker-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.top-ticker strong {
  color: #fb923c;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #ffffff;
  border-bottom: 2px solid var(--bg-charcoal);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 62px;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 900;
  font-size: 1.15rem;
  color: var(--bg-charcoal);
  white-space: nowrap;
}

.site-logo:hover {
  text-decoration: none;
  color: var(--accent);
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 6px;
  background: var(--grad-ember);
  color: #ffffff;
  font-size: 0.86rem;
  font-weight: 900;
  font-family: var(--font-mono);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.site-nav a {
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.92rem;
  font-weight: 700;
  white-space: nowrap;
}

.site-nav a:hover {
  background: var(--bg-warm);
  color: var(--accent);
  text-decoration: none;
}

.site-nav a.is-active {
  background: var(--bg-charcoal);
  color: #ffffff;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-icon,
.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 38px;
  padding: 0.35rem 0.85rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--bg-page);
  color: var(--text-primary);
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
}

.btn-icon:hover,
.menu-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--bg-warm);
}

.btn-contact-trigger {
  border-color: #fed7aa;
  background: #fff7ed;
  color: #9a3412;
}

.btn-contact-trigger:hover {
  background: var(--grad-ember);
  color: #ffffff;
  border-color: transparent;
}

.menu-toggle {
  display: none;
}

.subnav-ribbon {
  background: var(--bg-warm);
  border-bottom: 1px solid #fed7aa;
  padding: 0.45rem 0;
  font-size: 0.83rem;
}

.subnav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.15rem;
}

.subnav-links a {
  color: #7c2d12;
  font-weight: 650;
  white-space: nowrap;
}

.subnav-links a:hover {
  color: var(--crimson);
}

@media (max-width: 980px) {
  .menu-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 62px;
    flex-direction: column;
    align-items: stretch;
    background: #ffffff;
    border-bottom: 2px solid var(--bg-charcoal);
    padding: 0.85rem 1.25rem 1rem;
    box-shadow: var(--shadow-md);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 0.65rem 0.8rem;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 40px;
  padding: 0.52rem 1.1rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 750;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: var(--grad-ember);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(234, 88, 12, 0.28);
}

.btn-primary:hover {
  color: #ffffff;
  filter: brightness(1.06);
}

.btn-secondary {
  background: #ffffff;
  color: var(--text-primary);
  border-color: var(--border-strong);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-dark {
  background: var(--bg-charcoal);
  color: #ffffff;
}

.btn-dark:hover {
  background: #3f3f46;
  color: #ffffff;
}

.btn-ghost-light {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.25);
}

.btn-ghost-light:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

.btn-sm {
  min-height: 34px;
  padding: 0.3rem 0.78rem;
  font-size: 0.82rem;
}

/* 3-Column Bento Dashboard Hero */
.hero-dashboard {
  padding: 1.65rem 0 2rem;
  background: rgba(255, 255, 255, 0.14);
  border-bottom: 1px solid rgba(255, 255, 255, 0.45);
}

.hero-bento {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 1.15rem;
  align-items: stretch;
}

.hero-lead-box {
  background: var(--grad-dark);
  color: #f4f4f5;
  border-radius: var(--radius-lg);
  padding: 1.65rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-md);
}

.hero-lead-box h1 {
  color: #ffffff;
  font-size: clamp(1.5rem, 2.3vw, 2rem);
  line-height: 1.25;
}

.hero-lead-box p {
  color: #d4d4d8;
  font-size: 0.94rem;
}

.hero-kicker {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 800;
  color: #fdba74;
  background: rgba(234, 88, 12, 0.22);
  border: 1px solid rgba(251, 146, 60, 0.45);
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-sm);
  margin-bottom: 0.75rem;
}

.hero-matcher-box {
  background: #ffffff;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 1.35rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.matcher-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.matcher-result-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.7rem;
  background: var(--bg-page);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
}

.hero-top3-box {
  background: #ffffff;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 1.35rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.honor-row {
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 0.68rem 0.85rem;
  background: #fafafa;
}

@media (max-width: 1024px) {
  .hero-bento {
    grid-template-columns: 1fr 1fr;
  }

  .hero-lead-box {
    grid-column: 1 / -1;
  }
}

@media (max-width: 680px) {
  .hero-bento {
    grid-template-columns: 1fr;
  }
}

/* Sections */
.section {
  padding: 2.5rem 0;
}

.section-surface {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(8px);
  border-top: 1px solid rgba(228, 228, 231, 0.85);
  border-bottom: 1px solid rgba(228, 228, 231, 0.85);
}

.section-dark {
  background: rgba(24, 24, 27, 0.86);
  backdrop-filter: blur(8px);
  color: #f4f4f5;
}

.section-dark h2,
.section-dark h3 {
  color: #ffffff;
}

.section-dark p {
  color: #a1a1aa;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.35rem;
  padding: 0.85rem 1.15rem;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(228, 228, 231, 0.9);
  border-bottom: 2px solid var(--border-strong);
  border-radius: var(--radius-md);
}

.section-dark .section-head {
  background: rgba(24, 24, 27, 0.75);
  border-color: #3f3f46;
  border-bottom-color: #52525b;
}

.section-head p {
  margin-bottom: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.section-link {
  font-size: 0.89rem;
  font-weight: 800;
  white-space: nowrap;
}

/* Master-Detail Interactive Showcase for Featured Brands */
.master-detail {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 1.25rem;
  align-items: start;
}

.master-list {
  display: grid;
  gap: 0.5rem;
}

.master-btn {
  width: 100%;
  text-align: left;
  padding: 0.85rem 1rem;
  background: var(--bg-page);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  font-family: inherit;
}

.master-btn.is-active {
  background: var(--bg-charcoal);
  color: #ffffff;
  border-color: var(--bg-charcoal);
}

.master-btn.is-active span {
  color: #fb923c !important;
}

.detail-pane {
  background: #ffffff;
  border: 2px solid var(--bg-charcoal);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
}

@media (max-width: 860px) {
  .master-detail {
    grid-template-columns: 1fr;
  }
}

/* Speed Bars */
.speed-bar-bg,
.speed-bar-bg-light {
  width: 100%;
  height: 10px;
  background: #e4e4e7;
  border-radius: 999px;
  overflow: hidden;
}

.speed-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--grad-ember);
}

/* Grids & Cards */
.grid {
  display: grid;
  gap: 1.15rem;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 960px) {
  .grid-3,
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
}

.card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.2rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.card-muted {
  background: var(--bg-page);
}

.card-dark {
  background: var(--bg-charcoal-2);
  border: 1px solid #3f3f46;
  border-radius: var(--radius-md);
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  color: #f4f4f5;
}

.card-dark:hover {
  border-color: var(--accent);
  text-decoration: none;
}

.card-title {
  font-size: 1.08rem;
  margin-bottom: 0.15rem;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  font-size: 0.79rem;
  color: var(--text-muted);
}

.card-actions {
  margin-top: auto;
  padding-top: 0.45rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Decision Tinted Tiles */
.tile-warm {
  border-top: 4px solid var(--accent);
  background: #ffffff;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  border-left: 1px solid var(--border);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  padding: 1.15rem;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.14rem 0.55rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 750;
  line-height: 1.4;
}

.badge-official {
  background: #fff7ed;
  color: #c2410c;
  border: 1px solid #fed7aa;
}

.badge-tested {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.badge-unverified {
  background: #fefce8;
  color: #854d0e;
  border: 1px solid #fef08a;
}

.badge-dark {
  background: #18181b;
  color: #fdba74;
}

.badge-neutral {
  background: #f4f4f5;
  color: #3f3f46;
  border: 1px solid #e4e4e7;
}

/* Tables with Charcoal Header */
.table-wrap {
  width: 100%;
  overflow-x: visible;
  background: #ffffff;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.87rem;
}

th,
td {
  padding: 0.72rem 0.68rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  overflow-wrap: break-word;
  word-break: break-word;
}

th {
  background: var(--bg-charcoal);
  font-weight: 800;
  color: #ffffff;
  font-size: 0.82rem;
}

.article-body table {
  font-size: 0.81rem;
}

.article-body th,
.article-body td {
  padding: 0.58rem 0.48rem;
}

tr:last-child td {
  border-bottom: none;
}

tbody tr:hover {
  background: #fff7ed;
}

.rank-medal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 25px;
  padding: 0 0.45rem;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 800;
  background: #f4f4f5;
  color: #18181b;
}

.rank-medal-1 {
  background: var(--grad-ember);
  color: #ffffff;
}

.rank-medal-2 {
  background: #18181b;
  color: #fdba74;
}

.rank-medal-3 {
  background: #fb923c;
  color: #ffffff;
}

/* Ember Compare Strip */
.compare-strip {
  background: var(--grad-ember);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 1.85rem 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  box-shadow: 0 12px 28px rgba(234, 88, 12, 0.24);
}

.compare-strip h2 {
  color: #ffffff;
  margin-bottom: 0.3rem;
}

.compare-strip p {
  color: #ffedd5;
  margin-bottom: 0;
}

/* 3-Column Portal Newsstand */
.newsstand-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.newsstand-col {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.newsstand-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.newsstand-list li {
  padding: 0.65rem 0;
  border-bottom: 1px dashed var(--border);
}

.newsstand-list li:last-child {
  border-bottom: none;
}

@media (max-width: 960px) {
  .newsstand-grid {
    grid-template-columns: 1fr;
  }
}

/* Callouts */
.callout {
  padding: 1rem 1.2rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  background: #ffffff;
  margin-bottom: 1.25rem;
}

.callout-info {
  background: #fff7ed;
  border-color: #fed7aa;
  border-left-color: var(--accent);
}

.callout-warn {
  background: #fef2f2;
  border-color: #fecaca;
  border-left-color: var(--crimson);
}

.callout-title {
  font-weight: 800;
  margin-bottom: 0.3rem;
  color: var(--text-primary);
}

/* Breadcrumbs */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.84rem;
  color: var(--text-muted);
  margin-bottom: 0.9rem;
}

.breadcrumb a {
  color: var(--text-muted);
}

.breadcrumb a:hover {
  color: var(--accent);
}

/* Banners */
.page-banner {
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  padding: 1.85rem 0 1.55rem;
}

.page-banner-dark {
  background: var(--grad-dark);
  color: #f4f4f5;
  padding: 2.1rem 0 1.85rem;
  border-bottom: 3px solid var(--accent);
}

.page-banner-dark h1 {
  color: #ffffff;
}

.page-banner-dark p {
  color: #d4d4d8;
}

.page-banner-dark code {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.25);
  color: #fdba74;
}

.kpi-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 1.2rem;
}

.kpi-box {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-sm);
  padding: 0.8rem 1rem;
}

.kpi-box-label {
  font-size: 0.75rem;
  color: #a1a1aa;
  display: block;
}

.kpi-box-val {
  font-family: var(--font-mono);
  font-size: 1.02rem;
  font-weight: 800;
  color: #fb923c;
}

@media (max-width: 760px) {
  .kpi-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Visual Speed Chart */
.speed-chart-box {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-bottom: 1.25rem;
}

.speed-chart-row {
  display: grid;
  grid-template-columns: 105px 1fr 148px;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 0.65rem;
  font-size: 0.86rem;
}

.speed-chart-row > span:last-child {
  white-space: nowrap;
}

.speed-chart-row:last-child {
  margin-bottom: 0;
}

@media (max-width: 560px) {
  .speed-chart-row {
    grid-template-columns: 88px 1fr 95px;
    font-size: 0.8rem;
  }
}

/* 3-Column Desktop Reading Layout (TOC Left + Article Center + Quick Tools Right) */
.article-layout {
  display: grid;
  grid-template-columns: 200px minmax(0, 820px) minmax(220px, 1fr);
  gap: 1.5rem;
  align-items: start;
  padding: 2rem 0 3rem;
}

.article-toc {
  position: sticky;
  top: 82px;
}

.article-body {
  min-width: 0;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.85rem;
  box-shadow: var(--shadow-sm);
}

.article-body h2 {
  margin-top: 2rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--border);
}

.article-body h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.article-sidebar {
  display: grid;
  gap: 1.1rem;
  position: sticky;
  top: 82px;
}

.sidebar-box {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem;
  box-shadow: var(--shadow-sm);
}

.sidebar-box h3 {
  font-size: 0.94rem;
  margin-bottom: 0.65rem;
  padding-bottom: 0.45rem;
  border-bottom: 2px solid var(--bg-warm);
}

.sidebar-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.86rem;
}

.sidebar-list li {
  margin-bottom: 0.42rem;
}

@media (max-width: 1120px) {
  .article-layout {
    grid-template-columns: minmax(0, 780px) 1fr;
  }

  .article-toc {
    display: none;
  }
}

@media (max-width: 860px) {
  .article-layout {
    grid-template-columns: 1fr;
  }

  .article-sidebar {
    position: static;
  }

  .article-body {
    padding: 1.25rem;
  }
}

/* Step Timeline */
.step-timeline {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
  border-left: 2px solid #fed7aa;
  margin-left: 0.85rem;
}

.step-timeline li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.step-timeline li::before {
  content: attr(data-step);
  position: absolute;
  left: -13px;
  top: 2px;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: var(--grad-ember);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Podium */
.podium-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
  margin-bottom: 1.75rem;
}

.podium-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-top: 4px solid var(--accent);
  border-radius: var(--radius-md);
  padding: 1.2rem;
  box-shadow: var(--shadow-md);
}

@media (max-width: 780px) {
  .podium-grid {
    grid-template-columns: 1fr;
  }
}

/* FAQ */
.faq-list {
  display: grid;
  gap: 0.7rem;
}

details.faq-item {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.95rem 1.2rem;
}

details.faq-item summary {
  cursor: pointer;
  font-weight: 750;
  color: var(--text-primary);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

details.faq-item summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 1.15rem;
  color: var(--accent);
}

details.faq-item[open] summary::after {
  content: "−";
}

details.faq-item summary::-webkit-details-marker {
  display: none;
}

details.faq-item[open] summary {
  color: var(--accent);
  margin-bottom: 0.55rem;
}

/* Compare Controls */
.compare-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.95rem 1.1rem;
  margin-bottom: 1.25rem;
}

.compare-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem 0.7rem;
  background: var(--bg-warm);
  border: 1px solid #fed7aa;
  border-radius: var(--radius-sm);
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--accent);
}

.compare-chip button {
  border: none;
  background: transparent;
  color: var(--accent);
  font-weight: 700;
  cursor: pointer;
  padding: 0 0.2rem;
  font-size: 1rem;
  line-height: 1;
}

.compare-select {
  min-height: 38px;
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.9rem;
  background: #ffffff;
}

/* Search Modal */
.search-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(24, 24, 27, 0.68);
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 4.5rem 1rem 1rem;
}

.search-modal.is-open {
  display: flex;
}

.search-dialog {
  width: 100%;
  max-width: 660px;
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 2px solid var(--bg-charcoal);
  overflow: hidden;
}

.search-input-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.05rem;
  border-bottom: 1px solid var(--border);
}

.search-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 1rem;
  font-family: inherit;
  color: var(--text-primary);
}

.search-results {
  max-height: 360px;
  overflow-y: auto;
  padding: 0.5rem;
}

.search-result-item {
  display: block;
  padding: 0.68rem 0.85rem;
  border-radius: var(--radius-sm);
  color: var(--text-primary);
}

.search-result-item:hover {
  background: var(--bg-warm);
  text-decoration: none;
}

.search-result-title {
  font-weight: 700;
  display: block;
}

.search-result-desc {
  font-size: 0.84rem;
  color: var(--text-muted);
}

/* Prev / Next Sequential Navigation & Related Articles */
.prev-next-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 2px solid var(--border);
}

.prev-next-card {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.95rem 1.1rem;
  background: var(--bg-page);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.prev-next-card:hover {
  border-color: var(--accent);
  background: var(--bg-warm);
  text-decoration: none;
}

.prev-next-card.is-next {
  text-align: right;
  border-left: 1px solid var(--border-strong);
  border-right: 4px solid var(--accent);
}

.prev-next-card.is-prev {
  border-left: 4px solid var(--bg-charcoal);
}

.prev-next-label {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.prev-next-title {
  font-size: 0.94rem;
  font-weight: 750;
  color: var(--text-primary);
  line-height: 1.38;
}

.related-box {
  margin-top: 1.75rem;
  padding: 1.15rem;
  background: var(--bg-page);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.related-item {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.related-item:hover {
  border-color: var(--accent);
  text-decoration: none;
}

.back-to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.5rem;
  z-index: 90;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  background: var(--bg-charcoal);
  color: #ffffff;
  border: 1px solid #3f3f46;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-md);
}

.back-to-top.is-visible {
  display: inline-flex;
}

.back-to-top:hover {
  background: var(--accent);
  border-color: var(--accent);
}

@media (max-width: 640px) {
  .prev-next-nav,
  .related-grid {
    grid-template-columns: 1fr;
  }

  .prev-next-card.is-next {
    text-align: left;
  }
}

/* Footer */
.site-footer {
  background: var(--bg-charcoal);
  color: #d4d4d8;
  padding: 3rem 0 2rem;
  margin-top: 2rem;
  border-top: 4px solid var(--accent);
}

.site-footer h4 {
  color: #ffffff;
  font-size: 0.96rem;
  margin-bottom: 0.8rem;
}

.site-footer a {
  color: #d4d4d8;
  font-size: 0.88rem;
}

.site-footer a:hover {
  color: #fb923c;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, minmax(0, 1fr));
  gap: 2rem;
  margin-bottom: 1.85rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.42rem;
}

.footer-bottom {
  border-top: 1px solid #27272a;
  padding-top: 1.2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.82rem;
  color: #a1a1aa;
}

@media (max-width: 840px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* Contact Modal & Channel Cards */
.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 210;
  background: rgba(24, 24, 27, 0.72);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.contact-modal.is-open {
  display: flex;
}

.contact-dialog {
  width: 100%;
  max-width: 680px;
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 2px solid var(--bg-charcoal);
  box-shadow: var(--shadow-lg, 0 20px 50px rgba(0, 0, 0, 0.25));
  overflow: hidden;
}

.contact-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.35rem;
  background: var(--bg-charcoal);
  border-bottom: 3px solid var(--accent);
}

.contact-eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #fb923c;
}

.contact-close-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  border: 1px solid #3f3f46;
  background: #27272a;
  color: #ffffff;
  font-size: 0.9rem;
  cursor: pointer;
}

.contact-close-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.contact-body {
  padding: 1.35rem;
}

.contact-intro {
  font-size: 0.93rem;
  line-height: 1.65;
  color: var(--text-secondary);
  margin-bottom: 1.15rem;
}

.contact-channel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  margin-bottom: 1.1rem;
}

.contact-channel-card {
  background: var(--bg-page);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.contact-channel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
}

.contact-channel-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 800;
}

.contact-channel-badge.is-gmail {
  background: #fee2e2;
  color: #b91c1c;
}

.contact-channel-badge.is-tg {
  background: #e0f2fe;
  color: #0369a1;
}

.contact-channel-tag {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
}

.contact-channel-handle {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--text-primary);
  word-break: break-all;
}

.contact-channel-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: auto;
}

.contact-channel-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 38px;
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 750;
  color: #ffffff;
  text-decoration: none;
}

.contact-channel-btn:hover {
  color: #ffffff;
  text-decoration: none;
  filter: brightness(1.06);
}

.contact-channel-btn.is-gmail {
  background: linear-gradient(135deg, #ea580c, #dc2626);
}

.contact-channel-btn.is-tg {
  background: linear-gradient(135deg, #0284c7, #2563eb);
}

.contact-copy-btn {
  min-height: 38px;
  padding: 0.45rem 0.72rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: #ffffff;
  color: var(--text-primary);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.contact-copy-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.contact-copy-btn.is-copied {
  background: #ecfdf5;
  border-color: #10b981;
  color: #047857;
}

.contact-footer-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--text-muted);
}

.contact-footer-note a {
  font-weight: 700;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .contact-channel-grid {
    grid-template-columns: 1fr;
  }

  .btn-contact-trigger,
  .btn-icon,
  .menu-toggle {
    padding: 0.35rem 0.6rem;
    font-size: 0.8rem;
  }
}
