/* jichangt.blog - Swiss Editorial & Tech Matrix Pure CSS Framework */
:root {
  --bg: #fafaf9;
  --surface: #ffffff;
  --surface-tint: #f5f5f4;
  --ink: #111827;
  --text: #374151;
  --muted: #6b7280;
  --border: #e5e7eb;
  --border-dark: #111827;
  --accent: #6d28d9;
  --accent-hover: #5b21b6;
  --accent-soft: #f5f3ff;
  --accent-border: #ddd6fe;
  --amber-bg: #fffbeb;
  --amber-text: #92400e;
  --amber-border: #fde68a;
  --radius: 4px;
  --radius-lg: 8px;
  --max-width: 1220px;
  --article-width: 820px;
  --font-sans: "Noto Sans SC", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", 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: var(--bg);
  color: var(--text);
  line-height: 1.72;
  overflow-x: hidden;
}

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(--ink);
  line-height: 1.3;
  margin-top: 0;
  font-weight: 800;
  letter-spacing: -0.015em;
}
h1 { font-size: clamp(1.8rem, 3vw, 2.5rem); margin-bottom: 0.85rem; }
h2 { font-size: clamp(1.32rem, 2vw, 1.65rem); margin-bottom: 0.7rem; }
h3 { font-size: 1.08rem; margin-bottom: 0.45rem; }

p { margin: 0 0 1rem; }
ul, ol { margin: 0 0 1rem; padding-left: 1.3rem; }
li { margin-bottom: 0.35rem; }

code, pre {
  font-family: var(--font-mono);
  font-size: 0.88em;
}
code {
  background: var(--surface-tint);
  border: 1px solid var(--border);
  padding: 0.1rem 0.38rem;
  border-radius: 3px;
  color: var(--ink);
}
pre {
  background: var(--ink);
  color: #f3f4f6;
  padding: 1rem;
  border-radius: var(--radius);
  overflow-x: auto;
}

.num, .mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

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

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

/* Editorial Top Masthead */
.topbar {
  background: var(--ink);
  color: #d1d5db;
  font-size: 0.78rem;
  padding: 0.35rem 0;
}
.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.topbar-tag {
  color: #c4b5fd;
  font-family: var(--font-mono);
  font-weight: 700;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 2px solid var(--ink);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 62px;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink);
  font-weight: 900;
  font-size: 1.12rem;
  white-space: nowrap;
}
.brand-logo:hover { text-decoration: none; color: var(--accent); }
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background: var(--ink);
  color: #c4b5fd;
  font-family: var(--font-mono);
  font-size: 0.86rem;
  font-weight: 800;
  border-radius: 3px;
}
.brand-domain {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 700;
  border-left: 1px solid var(--border);
  padding-left: 0.55rem;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}
.nav-link {
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.42rem 0.68rem;
  border-radius: var(--radius);
  white-space: nowrap;
}
.nav-link:hover,
.nav-link.active {
  background: var(--ink);
  color: #ffffff;
  text-decoration: none;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.52rem 1rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  border: 1.5px solid transparent;
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn:hover { text-decoration: none; }

.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #fff;
}

.btn-outline {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--ink);
}
.btn-outline:hover {
  background: var(--ink);
  color: #fff;
}

.btn-sm { padding: 0.34rem 0.72rem; font-size: 0.83rem; }

.menu-toggle {
  display: none;
  background: var(--surface);
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  padding: 0.4rem 0.68rem;
  color: var(--ink);
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 700;
}

/* Split Editorial Hero */
.hero {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 2.5rem 0;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(290px, 0.95fr);
  gap: 2rem;
  align-items: stretch;
}
.hero-kicker {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  padding: 0.22rem 0.65rem;
  border-radius: 3px;
  margin-bottom: 0.9rem;
}
.hero-lead {
  font-size: 1.03rem;
  color: var(--text);
  margin-bottom: 1.25rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1.1rem;
}
.hero-meta {
  font-size: 0.83rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
  padding-top: 0.8rem;
  margin: 0;
}

/* Hero Right Panel: Quick Index Ledger */
.hero-panel {
  background: var(--surface-tint);
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
}
.hero-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.6rem;
  margin-bottom: 0.75rem;
  font-size: 0.86rem;
  font-weight: 800;
  color: var(--ink);
}
.ledger-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 0;
  border-bottom: 1px dashed var(--border);
  font-size: 0.9rem;
}
.ledger-row:last-of-type { border-bottom: none; }
.ledger-rank {
  font-family: var(--font-mono);
  font-weight: 800;
  color: var(--accent);
  min-width: 24px;
}
.ledger-price {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}

/* Sections */
.section { padding: 2.4rem 0; }
.section-alt {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.section-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 2px solid var(--ink);
  margin-bottom: 1.5rem;
}
.section-subtitle { color: var(--muted); margin: 0; font-size: 0.94rem; }

/* 4-Column Numbered Editorial Strip (Quick Answers) */
.strip-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius);
}
.strip-cell {
  padding: 1.25rem;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.strip-cell:last-child { border-right: none; }
.strip-num {
  font-family: var(--font-mono);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}

/* Grids & Cards (Crisp Editorial Style) */
.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)); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--ink);
  border-radius: var(--radius);
  padding: 1.15rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.card-muted {
  background: var(--surface-tint);
  border-top-color: var(--accent);
}
.card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}
.card-title { font-size: 1.08rem; font-weight: 800; color: var(--ink); margin: 0; }
.card-footer {
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  justify-content: space-between;
}

/* Bento Need Strip */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.bento-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

/* 3-Column Magazine Digest (Guides / Articles / Glossary) */
.digest-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}
.digest-col {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}
.digest-col-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 0.55rem;
  margin-bottom: 0.9rem;
}
.digest-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.digest-list li {
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
}
.digest-list li:last-child { border-bottom: none; padding-bottom: 0; }
.digest-list strong { display: block; font-size: 0.96rem; margin-bottom: 0.15rem; }
.digest-list span { display: block; font-size: 0.84rem; color: var(--muted); }

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.16rem 0.5rem;
  border-radius: 3px;
  font-size: 0.76rem;
  font-weight: 700;
  white-space: nowrap;
}
.badge-official { background: var(--surface-tint); color: var(--ink); border: 1px solid var(--border); }
.badge-verified { background: var(--accent-soft); color: var(--accent); border: 1px solid var(--accent-border); }
.badge-unverified { background: var(--amber-bg); color: var(--amber-text); border: 1px solid var(--amber-border); }

.spec-list { list-style: none; padding: 0; margin: 0; font-size: 0.9rem; }
.spec-list li {
  padding: 0.34rem 0;
  border-bottom: 1px dashed var(--border);
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
}
.spec-list li:last-child { border-bottom: none; }
.spec-label { color: var(--muted); flex-shrink: 0; }
.spec-value { color: var(--ink); font-weight: 600; text-align: right; }

.pros-cons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  font-size: 0.86rem;
}
.pros-box, .cons-box {
  padding: 0.7rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.pros-box { background: var(--accent-soft); border-color: var(--accent-border); }
.cons-box { background: var(--amber-bg); border-color: var(--amber-border); }
.pros-box strong, .cons-box strong { display: block; margin-bottom: 0.3rem; color: var(--ink); }
.pros-box ul, .cons-box ul { margin: 0; padding-left: 1.05rem; }

/* High-Contrast Data Tables */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--surface);
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
}
table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
  font-size: 0.9rem;
}
th, td {
  padding: 0.78rem 0.9rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
thead th {
  background: var(--ink);
  color: #ffffff;
  font-weight: 700;
  white-space: nowrap;
  font-size: 0.86rem;
}
tbody th {
  background: var(--surface-tint);
  color: var(--ink);
  font-weight: 700;
  white-space: nowrap;
}
tbody tr:nth-child(even) { background: #fafaf9; }
tbody tr:hover { background: var(--accent-soft); }
tr:last-child td, tr:last-child th { border-bottom: none; }
.cell-nowrap { white-space: nowrap; }
.table-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  white-space: nowrap;
}

/* Breadcrumb & Article Layout */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.84rem;
  color: var(--muted);
  padding: 0.9rem 0 0.45rem;
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--accent); }

.page-head {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 1.4rem 0 1.65rem;
}
.page-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  font-size: 0.84rem;
  color: var(--muted);
  margin-top: 0.7rem;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, var(--article-width)) minmax(260px, 1fr);
  gap: 2rem;
  padding: 1.85rem 0 3rem;
  align-items: start;
}
.article-body {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--ink);
  border-radius: var(--radius);
  padding: 1.65rem;
}
.article-body h2 {
  margin-top: 1.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.article-body h2:first-child { margin-top: 0; padding-top: 0; border-top: none; }

.callout {
  background: var(--accent-soft);
  border-left: 4px solid var(--accent);
  padding: 0.95rem 1.1rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.1rem 0;
}
.callout-warn {
  background: var(--amber-bg);
  border-left-color: #d97706;
}
.callout-title { font-weight: 800; color: var(--ink); margin-bottom: 0.3rem; }

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  position: sticky;
  top: 78px;
}
.sidebar-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 2px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.05rem;
}
.sidebar-box h3 {
  font-size: 0.96rem;
  margin-bottom: 0.65rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid var(--border);
}
.sidebar-links { list-style: none; padding: 0; margin: 0; font-size: 0.88rem; }
.sidebar-links li { margin-bottom: 0.42rem; }

/* Prev / Next Article Navigation & Related Strip */
.pager-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 2px solid var(--ink);
}
.pager-card {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
  padding: 0.85rem 0.95rem;
  background: var(--surface-tint);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--ink);
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.pager-card:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
  text-decoration: none;
}
.pager-card.pager-next { text-align: right; }
.pager-label {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--accent);
}
.pager-title {
  display: block;
  font-weight: 800;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.related-box {
  margin-top: 1.4rem;
  padding: 1.1rem 1.15rem;
  background: var(--surface-tint);
  border: 1px solid var(--border);
  border-left: 4px solid var(--ink);
  border-radius: var(--radius);
}
.related-box h3 {
  font-size: 0.96rem;
  margin-bottom: 0.55rem;
}
.related-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem 1rem;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.89rem;
}

/* FAQ */
.faq-list { display: grid; gap: 0.75rem; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--ink);
  border-radius: var(--radius);
  padding: 0.95rem 1.15rem;
}
.faq-item summary { font-weight: 800; color: var(--ink); cursor: pointer; }
.faq-item p { margin: 0.6rem 0 0; font-size: 0.94rem; }

/* Interactive Tools */
.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  background: var(--surface);
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  padding: 0.95rem 1.1rem;
  margin-bottom: 1.1rem;
}
.form-control, select {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  padding: 0.46rem 0.7rem;
  border: 1px solid #9ca3af;
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
}
.chip-list { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-bottom: 1rem; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius);
  padding: 0.28rem 0.7rem;
  font-size: 0.84rem;
  font-weight: 700;
}
.chip button {
  background: none;
  border: none;
  color: #c4b5fd;
  cursor: pointer;
  font-weight: 800;
  padding: 0;
}
.empty-state {
  background: var(--surface);
  border: 1.5px dashed #9ca3af;
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  color: var(--muted);
}

/* Search Modal */
.search-modal {
  position: fixed;
  inset: 0;
  background: rgba(17, 24, 39, 0.55);
  z-index: 300;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 4rem 1rem 1rem;
}
.search-modal.open { display: flex; }
.search-dialog {
  width: 100%;
  max-width: 640px;
  background: var(--surface);
  border-radius: var(--radius);
  border: 2px solid var(--ink);
  overflow: hidden;
}
.search-head {
  display: flex;
  gap: 0.5rem;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--border);
}
.search-head input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 1rem;
  font-family: var(--font-sans);
}
.search-results { max-height: 60vh; overflow-y: auto; padding: 0.5rem; }
.search-result-item {
  display: block;
  padding: 0.65rem 0.8rem;
  border-radius: var(--radius);
  color: var(--text);
}
.search-result-item:hover { background: var(--accent-soft); text-decoration: none; }
.search-result-title { display: block; font-weight: 700; color: var(--ink); }
.search-result-meta { display: block; font-size: 0.82rem; color: var(--muted); }

/* Contact Modal */
.contact-dialog {
  width: 100%;
  max-width: 540px;
  background: var(--surface);
  border-radius: var(--radius);
  border: 2px solid var(--ink);
  overflow: hidden;
}
.contact-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.95rem 1.2rem;
  background: var(--ink);
  color: #ffffff;
}
.contact-head h3 { color: #ffffff; margin: 0; font-size: 1.02rem; }
.contact-body { padding: 1.2rem; display: flex; flex-direction: column; gap: 0.9rem; }
.contact-channel {
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 0.9rem 1rem;
  background: var(--surface-tint);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.contact-channel-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.contact-handle {
  font-family: var(--font-mono);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ink);
}
.contact-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }

/* Footer */
.site-footer {
  background: var(--ink);
  color: #d1d5db;
  padding: 2.5rem 0 1.65rem;
  margin-top: 2rem;
}
.site-footer h3, .site-footer h4 { color: #ffffff; font-size: 0.98rem; margin-bottom: 0.75rem; }
.site-footer a { color: #d1d5db; font-size: 0.88rem; }
.site-footer a:hover { color: #c4b5fd; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 1.75rem;
  margin-bottom: 1.75rem;
}
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 0.38rem; }
.footer-bottom {
  border-top: 1px solid #374151;
  padding-top: 1.15rem;
  font-size: 0.82rem;
  color: #9ca3af;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
}

/* Responsive */
@media (max-width: 1000px) {
  .hero-grid, .article-layout, .digest-3 { grid-template-columns: 1fr; }
  .strip-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .strip-cell:nth-child(2) { border-right: none; }
  .strip-cell:nth-child(1), .strip-cell:nth-child(2) { border-bottom: 1px solid var(--border); }
  .bento-grid, .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sidebar { position: static; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 780px) {
  .menu-toggle { display: inline-flex; }
  .main-nav {
    display: none;
    position: absolute;
    left: 0; right: 0; top: 62px;
    background: var(--surface);
    border-bottom: 2px solid var(--ink);
    padding: 0.75rem 1.25rem 1rem;
    flex-direction: column;
    align-items: stretch;
  }
  .main-nav.open { display: flex; }
  .strip-4, .bento-grid, .grid-2, .grid-3, .grid-4, .pros-cons, .footer-grid, .pager-nav, .related-links {
    grid-template-columns: 1fr;
  }
  .pager-card.pager-next { text-align: left; }
  .strip-cell { border-right: none; border-bottom: 1px solid var(--border); }
  .strip-cell:last-child { border-bottom: none; }
  .article-body { padding: 1.15rem; }
}
