@import url('https://fonts.googleapis.com/css2?family=Bodoni+Moda:opsz,wght@6..96,700;6..96,800;6..96,900&family=Inter:wght@400;500;600;700;800&family=Source+Serif+4:ital,opsz,wght@0,8..60,400;0,8..60,600;0,8..60,700;1,8..60,400&display=swap');

/* =====================================================================
   SIGNAL — modern news portal template (econherald.com)
   Near-black masthead, red wire rule, grey newsroom canvas, white cards.
   ===================================================================== */

:root {
  --sg-ink: #111111;
  --sg-ink-2: #1c1c1f;
  --sg-text: #1f2328;
  --sg-muted: #5c6068;       /* 6.1:1 on white, 5.6:1 on #f4f4f5 */
  --sg-red: #c8102e;         /* 5.9:1 on white */
  --sg-red-dark: #a00d25;
  --sg-red-on-dark: #ff5a6e; /* 6.0:1 on #111 */
  --sg-bg: #f4f4f5;
  --sg-card: #ffffff;
  --sg-line: #e4e4e7;
  --sg-line-2: #d4d4d8;
  --sg-radius: 10px;
  --sg-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --sg-serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --sg-display: 'Bodoni Moda', 'Didot', 'Bodoni 72', Georgia, serif;
  --sg-max: 1240px;
}

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

html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--sg-bg);
  color: var(--sg-text);
  font-family: var(--sg-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; }
a { color: inherit; }
main { display: block; min-height: 50vh; }

:focus-visible { outline: 2px solid var(--sg-red); outline-offset: 2px; }

/* ---------- Category colour system ----------
   Every value keeps white text >= 4.5:1 (and >= 4.5:1 as text on white). */
[data-ci="0"] { --cat: #c8102e; }  /* 5.9:1 */
[data-ci="1"] { --cat: #0f7a3d; }  /* 5.4:1 */
[data-ci="2"] { --cat: #1d4ed8; }  /* 6.7:1 */
[data-ci="3"] { --cat: #b45309; }  /* 5.0:1 */
[data-ci="4"] { --cat: #6d28d9; }  /* 7.1:1 */
[data-ci="5"] { --cat: #0e7490; }  /* 5.4:1 */
[data-ci="6"] { --cat: #be185d; }  /* 6.0:1 */
[data-ci="7"] { --cat: #9a3412; }  /* 7.3:1 */

/* ---------- Wire (breaking ticker) ---------- */
.sg-wire {
  display: flex;
  align-items: stretch;
  height: 38px;
  background: var(--sg-red);
  color: #fff;
  font-size: 0.8125rem;
  position: relative;
  z-index: 101;
}
.sg-wire-label {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  background: #fff;
  color: var(--sg-red);
  font-weight: 800;
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0 0.85rem;
}
.sg-wire-track {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 16px, #000 calc(100% - 32px), transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 16px, #000 calc(100% - 32px), transparent 100%);
}
.sg-wire-move {
  display: flex;
  width: max-content;
  height: 100%;
  animation: sg-marquee 80s linear infinite;
}
.sg-wire:hover .sg-wire-move,
.sg-wire:focus-within .sg-wire-move { animation-play-state: paused; }
@keyframes sg-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.sg-wire-list { display: flex; align-items: center; list-style: none; margin: 0; padding: 0; white-space: nowrap; }
.sg-wire-list li { display: flex; align-items: center; }
.sg-wire-list li::after {
  content: '';
  width: 1px; height: 16px;
  background: rgba(255, 255, 255, 0.45);
  margin: 0 1.6rem;
}
.sg-wire-list a { color: #fff; text-decoration: none; font-weight: 700; }
.sg-wire-list li.is-section a { font-weight: 600; opacity: 0.95; }
.sg-wire-list a:hover { text-decoration: underline; text-underline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  .sg-wire-move { animation: none; }
  .sg-wire-track { overflow-x: auto; scrollbar-width: none; }
  .sg-wire-track::-webkit-scrollbar { display: none; }
  .sg-card img, .sg-hero-img, .sg-lead img, .sg-rank-thumb img, .sg-river-media img { transition: none !important; }
}

/* ---------- Masthead (single row) ---------- */
.sg-masthead {
  background: var(--sg-ink);
  color: #fff;
  border-bottom: 3px solid var(--sg-red);
  position: relative;
  z-index: 100;
}
.sg-masthead-row {
  max-width: var(--sg-max);
  margin: 0 auto;
  padding: 0 1.5rem;
  min-height: 60px;
  display: flex;
  align-items: center;
  gap: 2rem;
}
.sg-wordmark {
  flex: 0 0 auto;
  font-family: var(--sg-display);
  font-weight: 900;
  font-size: 1.55rem;
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
  display: inline-flex;
  align-items: baseline;
}
.sg-wordmark::after {
  content: '';
  width: 0.22em; height: 0.22em;
  background: var(--sg-red);
  margin-left: 0.1em;
}
.sg-wordmark:hover { opacity: 0.9; }

.sg-primary { flex: 1 1 auto; min-width: 0; }
.sg-primary-list { display: flex; flex-wrap: nowrap; list-style: none; margin: 0; padding: 0; }
.sg-primary-list a {
  display: block;
  color: #d4d4d8;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  padding: 1.35rem 0.7rem 1.15rem;
  border-bottom: 3px solid transparent;
  margin-bottom: -3px;
  transition: color 0.15s, border-color 0.15s;
}
.sg-primary-list a:hover { color: #fff; border-bottom-color: rgba(255, 255, 255, 0.55); }
.sg-primary-list a.is-on { color: #fff; border-bottom-color: var(--cat, var(--sg-red)); }
.sg-primary-extra, .sg-only-m { display: none; }

.sg-masthead-tools { flex: 0 0 auto; display: flex; align-items: center; gap: 1rem; margin-left: auto; }
.sg-masthead-date { font-size: 0.75rem; font-weight: 500; color: #a1a1aa; white-space: nowrap; }
.sg-ghost {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s;
}
.sg-ghost:hover { background: var(--sg-red); border-color: var(--sg-red); }
.sg-burger {
  display: none;
  width: 42px; height: 42px;
  margin-right: -0.5rem;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
  position: relative;
}
.sg-burger span {
  position: absolute;
  left: 10px; right: 10px;
  height: 2px;
  background: #fff;
  transition: transform 0.22s, opacity 0.22s, top 0.22s;
}
.sg-burger span:nth-child(1) { top: 14px; }
.sg-burger span:nth-child(2) { top: 20px; }
.sg-burger span:nth-child(3) { top: 26px; }
.sg-masthead.is-open .sg-burger span:nth-child(1) { top: 20px; transform: rotate(45deg); }
.sg-masthead.is-open .sg-burger span:nth-child(2) { opacity: 0; }
.sg-masthead.is-open .sg-burger span:nth-child(3) { top: 20px; transform: rotate(-45deg); }

/* ---------- Layout primitives ---------- */
main > .container { max-width: var(--sg-max); margin: 0 auto; padding: 0 1.5rem; }
.sg-wrap { max-width: var(--sg-max); margin: 0 auto; padding: 1.75rem 1.5rem 3rem; }
.sg-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 2rem;
  align-items: start;
}
.sg-main { min-width: 0; }
.sg-aside { min-width: 0; align-self: stretch; }
.sg-aside-sticky { position: sticky; top: 1.25rem; display: grid; gap: 1.5rem; }

/* Labels */
.sg-label {
  display: inline-block;
  font-family: var(--sg-sans);
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sg-red);
  text-decoration: none;
  line-height: 1.3;
}
.sg-pill {
  display: inline-block;
  background: var(--sg-red);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.38rem 0.7rem;
  border-radius: 4px;
}
.sg-time {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--sg-muted);
}
.sg-time i { font-size: 0.7rem; }

/* Section header: red bar + label + hairline */
.sg-section { margin-top: 2.5rem; }
.sg-section-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0 0 1.1rem;
}
.sg-section-head h2 {
  position: relative;
  margin: 0;
  padding-left: 0.8rem;
  font-size: 0.875rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sg-ink);
  white-space: nowrap;
}
.sg-section-head h2::before {
  content: '';
  position: absolute;
  left: 0; top: 0.1em; bottom: 0.1em;
  width: 4px;
  background: var(--sg-red);
}
.sg-section-head::after {
  content: '';
  flex: 1 1 auto;
  height: 1px;
  background: var(--sg-line-2);
  order: 1;
}
.sg-section-more {
  order: 2;
  flex: 0 0 auto;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--sg-red);
  text-decoration: none;
  white-space: nowrap;
}
.sg-section-more:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Hero ---------- */
.sg-hero {
  position: relative;
  border-radius: var(--sg-radius);
  overflow: hidden;
  background: var(--sg-ink);
  box-shadow: 0 1px 2px rgba(17, 17, 17, 0.06);
}
.sg-hero-link { display: block; position: relative; color: #fff; text-decoration: none; aspect-ratio: 16 / 9; min-height: 380px; }
.sg-hero-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.sg-hero-link:hover .sg-hero-img { transform: scale(1.025); }
.sg-hero-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,0) 25%, rgba(0,0,0,0.55) 55%, rgba(0,0,0,0.92) 100%),
    linear-gradient(90deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0) 60%);
}
.sg-hero-body {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 2rem 2.25rem 2rem;
}
.sg-hero-title {
  margin: 0.85rem 0 0.6rem;
  font-size: clamp(1.6rem, 3.1vw, 2.55rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
  max-width: 24ch;
  text-wrap: balance;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}
.sg-hero-link:hover .sg-hero-title { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.sg-hero-excerpt {
  margin: 0 0 0.9rem;
  max-width: 62ch;
  font-size: 1rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.9);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.sg-hero-meta { display: flex; gap: 1rem; font-size: 0.8125rem; font-weight: 600; color: rgba(255, 255, 255, 0.88); }
.sg-hero-meta i { margin-right: 0.25rem; }

/* ---------- Cards ---------- */
.sg-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}
.sg-card {
  background: var(--sg-card);
  border: 1px solid var(--sg-line);
  border-radius: var(--sg-radius);
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}
.sg-card:hover { box-shadow: 0 10px 24px -12px rgba(17, 17, 17, 0.25); border-color: var(--sg-line-2); transform: translateY(-2px); }
.sg-card-link { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: inherit; }
.sg-card-media { aspect-ratio: 16 / 10; overflow: hidden; background: #e4e4e7; }
.sg-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.45s ease; }
.sg-card:hover .sg-card-media img { transform: scale(1.04); }
.sg-card-body { display: flex; flex-direction: column; gap: 0.45rem; padding: 0.95rem 1rem 1.05rem; flex: 1 1 auto; }
.sg-card-title {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 800;
  line-height: 1.28;
  letter-spacing: -0.01em;
  color: var(--sg-ink);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.sg-card:hover .sg-card-title { color: var(--sg-red); }
.sg-card-excerpt {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--sg-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.sg-card .sg-time { margin-top: auto; padding-top: 0.2rem; }

/* ---------- Sidebar boxes ---------- */
.sg-box {
  background: var(--sg-card);
  border: 1px solid var(--sg-line);
  border-radius: var(--sg-radius);
  padding: 1.15rem 1.15rem 0.6rem;
}
.sg-box-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 0.35rem;
  padding-bottom: 0.8rem;
  border-bottom: 2px solid var(--sg-ink);
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sg-ink);
}
.sg-box-head::before { content: ''; width: 4px; height: 1em; background: var(--sg-red); }
.sg-box-more {
  display: block;
  padding: 0.75rem 0 0.6rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--sg-red);
  text-decoration: none;
}
.sg-box-more:hover { text-decoration: underline; }

.sg-rank { list-style: none; margin: 0; padding: 0; }
.sg-rank li + li { border-top: 1px solid var(--sg-line); }
.sg-rank-link { display: flex; gap: 0.85rem; padding: 0.85rem 0; text-decoration: none; color: inherit; }
.sg-rank-thumb {
  position: relative;
  flex: 0 0 84px;
  width: 84px; height: 84px;
  border-radius: 6px;
  overflow: hidden;
  background: #e4e4e7;
}
.sg-rank-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s ease; }
.sg-rank-link:hover .sg-rank-thumb img { transform: scale(1.06); }
.sg-rank-num {
  position: absolute;
  left: 0; top: 0;
  min-width: 24px; height: 24px;
  display: grid; place-items: center;
  background: var(--sg-ink);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  border-bottom-right-radius: 6px;
}
.sg-rank li:first-child .sg-rank-num { background: var(--sg-red); }
.sg-rank-text { display: flex; flex-direction: column; gap: 0.25rem; min-width: 0; }
.sg-rank-title {
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--sg-ink);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.sg-rank-link:hover .sg-rank-title { color: var(--sg-red); }

.sg-topics { list-style: none; margin: 0; padding: 0 0 0.4rem; }
.sg-topics li + li { border-top: 1px solid var(--sg-line); }
.sg-topics a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.1rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--sg-ink);
  text-decoration: none;
}
.sg-topics a > i:first-child { width: 1.1rem; text-align: center; font-size: 0.85rem; color: var(--sg-muted); }
.sg-topics a span { flex: 1 1 auto; }
.sg-topics em {
  font-style: normal;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--sg-muted);
  background: var(--sg-bg);
  border: 1px solid var(--sg-line);
  border-radius: 999px;
  padding: 0.12rem 0.55rem;
  min-width: 2rem;
  text-align: center;
}
.sg-topics-arrow { font-size: 0.65rem; color: var(--sg-muted); transition: transform 0.15s; }
.sg-topics a:hover { color: var(--sg-red); }
.sg-topics a:hover > i:first-child, .sg-topics a.is-current > i:first-child { color: var(--sg-red); }
.sg-topics a:hover .sg-topics-arrow { transform: translateX(3px); color: var(--sg-red); }
.sg-topics a.is-current { color: var(--sg-red); }
.sg-topics a.is-current span { font-weight: 800; }

/* ---------- Breadcrumbs ---------- */
.sg-crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sg-muted);
}
.sg-crumbs a { color: var(--sg-muted); text-decoration: none; }
.sg-crumbs a:hover { color: var(--sg-red); }
.sg-crumbs > span:last-child, .sg-crumbs > a:last-child { color: var(--sg-ink); }

/* ---------- Category page ---------- */
.sg-cat-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.25rem;
  background: var(--sg-ink);
  color: #fff;
  border-radius: var(--sg-radius);
  padding: 1.75rem 2rem;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
  border-bottom: 3px solid var(--sg-red);
}
.sg-cat-head::after {
  content: '';
  position: absolute;
  right: -60px; top: -60px;
  width: 260px; height: 260px;
  background: radial-gradient(circle, rgba(200, 16, 46, 0.35), rgba(200, 16, 46, 0) 70%);
  pointer-events: none;
}
.sg-cat-icon {
  width: 64px; height: 64px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--sg-red);
  font-size: 1.5rem;
}
.sg-cat-kicker { margin: 0; font-size: 0.6875rem; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; color: var(--sg-red-on-dark); }
.sg-cat-title { margin: 0.15rem 0 0.35rem; font-size: clamp(1.9rem, 4vw, 2.75rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.05; }
.sg-cat-desc { margin: 0; max-width: 60ch; color: rgba(255, 255, 255, 0.82); font-size: 0.95rem; }
.sg-cat-count {
  position: relative; z-index: 1;
  text-align: center;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
  border-left: 1px solid rgba(255, 255, 255, 0.18);
  padding-left: 1.5rem;
}
.sg-cat-count strong { display: block; font-size: 2rem; letter-spacing: -0.02em; color: #fff; line-height: 1; margin-bottom: 0.2rem; }

.sg-lead {
  background: var(--sg-card);
  border: 1px solid var(--sg-line);
  border-radius: var(--sg-radius);
  overflow: hidden;
}
.sg-lead-link { display: grid; grid-template-columns: 1.15fr 1fr; text-decoration: none; color: inherit; }
.sg-lead-media { aspect-ratio: 4 / 3; overflow: hidden; background: #e4e4e7; }
.sg-lead-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s ease; }
.sg-lead-link:hover .sg-lead-media img { transform: scale(1.03); }
.sg-lead-body { display: flex; flex-direction: column; justify-content: center; gap: 0.7rem; padding: 1.75rem; }
.sg-lead-title { margin: 0; font-size: clamp(1.35rem, 2.3vw, 1.85rem); font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; color: var(--sg-ink); text-wrap: balance; }
.sg-lead-link:hover .sg-lead-title { color: var(--sg-red); }
.sg-lead-excerpt { margin: 0; font-size: 0.95rem; line-height: 1.55; color: var(--sg-muted); display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }

.sg-empty {
  background: var(--sg-card);
  border: 1px dashed var(--sg-line-2);
  border-radius: var(--sg-radius);
  text-align: center;
  padding: 3.5rem 1.5rem;
  color: var(--sg-muted);
}
.sg-empty i { font-size: 2rem; color: var(--sg-red); }
.sg-empty h1, .sg-empty h2 { color: var(--sg-ink); font-size: 1.4rem; margin: 0.75rem 0 0.4rem; }
.sg-empty a { color: var(--sg-red); font-weight: 600; }

/* ---------- Post page ---------- */
.sg-article {
  background: var(--sg-card);
  border: 1px solid var(--sg-line);
  border-radius: var(--sg-radius);
  padding: 2.5rem 3rem 2rem;
}
.sg-article > * { max-width: 720px; margin-left: auto; margin-right: auto; }
.sg-article-head { margin-bottom: 1.5rem; }
.sg-article-cat { font-size: 0.75rem; }
.sg-article-cat:hover { text-decoration: underline; text-underline-offset: 3px; }
.sg-article-title {
  margin: 0.6rem 0 1.25rem;
  font-size: clamp(1.85rem, 3.6vw, 2.75rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--sg-ink);
  text-wrap: balance;
}
.sg-byline {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 0;
  border-top: 1px solid var(--sg-line);
  border-bottom: 1px solid var(--sg-line);
}
.sg-byline p { margin: 0; display: flex; flex-direction: column; gap: 0.1rem; }
.sg-byline-mark {
  flex: 0 0 40px;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--sg-ink);
  color: #fff;
  font-family: var(--sg-display);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  box-shadow: inset 0 -3px 0 var(--sg-red);
}
.sg-byline-by { font-size: 0.875rem; color: var(--sg-text); }
.sg-byline-by strong { font-weight: 700; color: var(--sg-ink); }
.sg-byline-meta { font-size: 0.8125rem; color: var(--sg-muted); display: inline-flex; gap: 0.4rem; flex-wrap: wrap; }

.sg-figure { margin: 0 auto 2rem; }
.sg-figure img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; background: #e4e4e7; }
.sg-article > .sg-figure { max-width: none; }

.sg-article-body {
  overflow-wrap: anywhere;
  word-break: break-word;
  font-family: var(--sg-serif);
  font-size: 18px;
  line-height: 1.7;
  color: #1f2328;
}
.sg-article-body .content-paragraph,
.sg-article-body .intro-paragraph,
.sg-article-body p {
  font-size: 18px;
  line-height: 1.7;
  color: #1f2328;
  margin: 0 0 1.25rem;
}
.sg-article-body > .content-paragraph:first-child,
.sg-article-body > .intro-paragraph:first-child {
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--sg-ink);
}
.sg-article-body > .content-paragraph:first-child::first-letter,
.sg-article-body > .intro-paragraph:first-child::first-letter {
  font-family: var(--sg-display);
  float: left;
  font-size: 3.9rem;
  line-height: 0.82;
  font-weight: 900;
  color: var(--sg-red);
  padding: 0.35rem 0.55rem 0 0;
}
.sg-article-body h1,
.sg-article-body h2,
.sg-article-body .content-heading {
  font-family: var(--sg-sans);
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--sg-ink);
  margin: 2.4rem 0 0.9rem;
  padding: 0;
  border: 0;
}
.sg-article-body h2::after, .sg-article-body .content-heading::after { display: none; }
.sg-article-body h2::before, .sg-article-body .content-heading::before {
  content: '';
  display: block;
  width: 36px;
  height: 3px;
  background: var(--sg-red);
  margin-bottom: 0.7rem;
}
.sg-article-body h3 {
  font-family: var(--sg-sans);
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.3;
  color: var(--sg-ink);
  margin: 1.9rem 0 0.6rem;
}
.sg-article-body h4 { font-family: var(--sg-sans); font-size: 1.05rem; font-weight: 700; margin: 1.5rem 0 0.5rem; color: var(--sg-ink); }
.sg-article-body strong, .sg-article-body b { font-weight: 700; color: var(--sg-ink); }
.sg-article-body a { color: var(--sg-red); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.sg-article-body a:hover { color: var(--sg-red-dark); text-decoration-thickness: 2px; }
.sg-article-body ul,
.sg-article-body ol { margin: 0 0 1.4rem; padding-left: 1.4rem; }
.sg-article-body li { margin: 0 0 0.5rem; padding-left: 0.25rem; }
.sg-article-body ul li::before, .sg-article-body ol li::before { content: none; }
.sg-article-body ul > li { list-style: none; position: relative; }
.sg-article-body ul > li::before {
  content: '';
  position: absolute;
  left: -1.05rem;
  top: 0.72em;
  width: 7px; height: 7px;
  background: var(--sg-red);
  border-radius: 1px;
}
.sg-article-body ol { list-style: decimal; }
.sg-article-body ol > li::marker { font-family: var(--sg-sans); font-weight: 800; color: var(--sg-red); font-size: 0.95em; }
.sg-article-body blockquote,
.sg-article-body .content-quote {
  margin: 2rem 0;
  padding: 1.1rem 1.4rem;
  border-left: 4px solid var(--sg-red);
  background: #fbf3f4;
  border-radius: 0 8px 8px 0;
  font-size: 1.2rem;
  font-style: italic;
  line-height: 1.55;
  color: var(--sg-ink);
}
.sg-article-body blockquote::before, .sg-article-body .content-quote::before { content: none; }
.sg-article-body blockquote p { margin: 0; font-size: inherit; }
.sg-article-body hr {
  border: 0;
  height: 1px;
  background: var(--sg-line-2);
  margin: 2.4rem 0;
}
.sg-article-body code {
  font-family: 'SFMono-Regular', Menlo, Consolas, monospace;
  font-size: 0.85em;
  background: #f1f1f3;
  border: 1px solid var(--sg-line);
  border-radius: 4px;
  padding: 0.1em 0.35em;
  color: #9b0c22;
}
.sg-article-body pre { background: var(--sg-ink); color: #f4f4f5; border-radius: 8px; padding: 1rem 1.2rem; overflow-x: auto; font-size: 0.9rem; }
.sg-article-body pre code { background: none; border: 0; color: inherit; padding: 0; }
.sg-article-body img { max-width: 100%; height: auto; border-radius: 8px; }
.sg-article-body .article-point,
.sg-article-body .content-point {
  margin: 1.1rem 0 1.25rem;
  padding: 1rem 1.2rem;
  background: var(--sg-bg);
  border: 1px solid var(--sg-line);
  border-left: 4px solid var(--sg-red);
  border-radius: 0 8px 8px 0;
  box-shadow: none;
  list-style: none;
}
.sg-article-body .point-title {
  font-family: var(--sg-sans);
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--sg-ink);
  margin: 0;
}
.sg-article-body .point-description { font-size: 1rem; line-height: 1.6; margin: 0.45rem 0 0; color: #33383f; }
.sg-article-body .point-description:empty { display: none; }
.sg-article-body .content-table-wrapper { font-family: var(--sg-sans); border-radius: 8px; }
.sg-article-body .content-table thead th { background: var(--sg-ink); }

.sg-share {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 2.25rem !important;
  padding-top: 1.25rem;
  border-top: 1px solid var(--sg-line);
}
.sg-share-label { font-size: 0.75rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--sg-ink); margin-right: 0.4rem; }
.sg-share a {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--sg-line-2);
  color: var(--sg-ink);
  text-decoration: none;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.sg-share a:hover { background: var(--sg-red); border-color: var(--sg-red); color: #fff; }

/* ---------- Colophon (footer) ---------- */
.sg-colophon {
  background: #0b0b0c;
  color: #b4b4bb;
  font-size: 0.875rem;
  margin-top: 2.5rem;
  border-top: 3px solid var(--sg-red);
}
.sg-colophon > * { max-width: var(--sg-max); margin-left: auto; margin-right: auto; padding-left: 1.5rem; padding-right: 1.5rem; }
.sg-colophon a { color: #e4e4e7; text-decoration: none; }
.sg-colophon a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.sg-colophon-top {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 2.5rem;
  padding-top: 2.75rem;
  padding-bottom: 2.25rem;
}
.sg-wordmark--foot { font-size: 2rem; margin-bottom: 0.8rem; }
.sg-colophon-brand p { margin: 0; max-width: 46ch; line-height: 1.6; }
.sg-colophon-desk { border-left: 1px solid rgba(255, 255, 255, 0.12); padding-left: 2rem; }
.sg-colophon-desk p { margin: 0 0 0.6rem; line-height: 1.6; }
.sg-colophon-desk a { text-decoration: underline; text-decoration-color: rgba(255, 255, 255, 0.35); text-underline-offset: 3px; }
.sg-colophon-kicker { font-size: 0.6875rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: #fff; }
.sg-follow { color: #a1a1aa; }
.sg-follow span { margin: 0 0.3rem; }

.sg-index {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1.75rem;
  padding-top: 2rem;
  padding-bottom: 2.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.sg-index-col { min-width: 0; display: flex; flex-direction: column; }
.sg-index-head {
  display: block;
  padding-top: 0.7rem;
  border-top: 3px solid var(--cat, var(--sg-red));
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff !important;
  margin-bottom: 0.75rem;
}
.sg-index ul { list-style: none; margin: 0 0 0.75rem; padding: 0; }
.sg-index li { margin: 0 0 0.7rem; line-height: 1.4; font-size: 0.8125rem; }
.sg-index li a {
  color: #c7c7cc;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.sg-index-all { margin-top: auto; font-size: 0.75rem; font-weight: 700; color: #fff !important; }

.sg-colophon-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  padding-top: 1.2rem;
  padding-bottom: 1.6rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.75rem;
}
.sg-legal { display: flex; flex-wrap: wrap; gap: 0.35rem 0; list-style: none; margin: 0; padding: 0; }
.sg-legal li + li::before { content: '|'; margin: 0 0.75rem; color: #52525b; }
.sg-legal a { font-weight: 600; }
.sg-copy { margin: 0; color: #a1a1aa; }

/* ---------- Static pages ---------- */
.page-content {
  background: var(--sg-card);
  border: 1px solid var(--sg-line);
  border-radius: var(--sg-radius);
  box-shadow: none;
  padding: 2.75rem 3rem 3rem;
  margin: 2rem 0 1rem;
  color: var(--sg-text);
}
.page-content h1 {
  font-family: var(--sg-sans);
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: var(--sg-ink);
  margin: 0 0 2rem;
  padding: 0 0 1.1rem;
  border-bottom: 1px solid var(--sg-line);
  position: relative;
}
.page-content h1::before {
  content: '';
  display: block;
  width: 44px; height: 4px;
  background: var(--sg-red);
  margin-bottom: 1rem;
}
.page-content h1::after { display: none; }
.page-content h2 { font-family: var(--sg-sans); font-size: 1.3rem; font-weight: 800; letter-spacing: -0.01em; color: var(--sg-ink); margin: 2rem 0 0.75rem; }
.page-content h3 { font-family: var(--sg-sans); font-size: 1.1rem; font-weight: 700; color: var(--sg-ink); }
.page-content p, .page-content li { font-family: var(--sg-serif); font-size: 1.0625rem; line-height: 1.7; color: #2a2e34; }
.page-content ul { padding-left: 1.3rem; }
.page-content a { color: var(--sg-red); text-decoration: underline; text-underline-offset: 3px; }
.page-content a:hover { color: var(--sg-red-dark); }
.page-content strong { color: var(--sg-ink); }
.about-content, .advertisers-content, .terms-content, .privacy-content { max-width: 760px; margin: 0; }
.contact-content { gap: 2rem; }
.contact-info h2, .contact-form h2 { margin-top: 0; }
.company-details, .contact-form {
  background: var(--sg-bg);
  border: 1px solid var(--sg-line);
  border-radius: 8px;
}
.company-details { padding: 1.2rem 1.3rem; border-left: 4px solid var(--sg-red); }
.company-details p { margin: 0 0 0.45rem; }
.company-details p:last-child { margin: 0; }
.contact-form { padding: 1.6rem; }
.form-group label {
  font-family: var(--sg-sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sg-ink);
}
.form-group input, .form-group textarea {
  background: #fff;
  border: 1px solid #a1a1aa;
  border-radius: 6px;
  font-family: var(--sg-sans);
  font-size: 1rem;
  color: var(--sg-ink);
  padding: 0.75rem 0.85rem;
}
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--sg-red); box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.15); }
.btn-primary, .page-content .btn-primary {
  background: var(--sg-red);
  color: #fff;
  border: 0;
  border-radius: 6px;
  font-family: var(--sg-sans);
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.95rem 1.75rem;
  cursor: pointer;
  text-decoration: none;
}
.btn-primary:hover { background: var(--sg-red-dark); transform: none; }

/* 404 / error */
.error-page {
  max-width: 640px;
  margin: 3rem auto 2rem;
  text-align: center;
  background: var(--sg-card);
  border: 1px solid var(--sg-line);
  border-radius: var(--sg-radius);
  padding: 3.5rem 2rem;
  border-top: 4px solid var(--sg-red);
}
.error-page h1 { margin: 0 0 0.6rem; font-size: 3rem; font-weight: 800; letter-spacing: -0.03em; color: var(--sg-ink); }
.error-page h1::before {
  content: 'Error';
  display: block;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sg-red);
  margin-bottom: 0.6rem;
}
.error-page p { color: var(--sg-muted); font-size: 1.05rem; margin: 0 0 1.75rem; }
.error-page .button {
  display: inline-block;
  background: var(--sg-ink);
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.9rem 1.6rem;
  border-radius: 6px;
}
.error-page .button:hover { background: var(--sg-red); }

/* Taboola in article */
.sg-article .taboola-placement { margin: 1.5rem auto; }

/* ---------- Category-coloured components ---------- */
.sg-pill[data-ci] { background: var(--cat); }
.sg-label[data-ci] { color: var(--cat); }
.sg-section[data-ci] .sg-section-head h2::before { background: var(--cat); }
.sg-section[data-ci] .sg-section-more { color: var(--cat); }
.sg-topics a[data-ci] > i:first-child { color: var(--cat); }
.sg-topics a[data-ci].is-current, .sg-topics a[data-ci]:hover { color: var(--cat); }
.sg-topics a[data-ci]:hover .sg-topics-arrow { color: var(--cat); }
.sg-cat-icon[data-ci] { background: var(--cat); }
.sg-article-cat[data-ci] {
  background: var(--cat);
  color: #fff;
  padding: 0.35rem 0.65rem;
  border-radius: 4px;
}
.sg-article-cat[data-ci]:hover { text-decoration: none; filter: brightness(0.92); }

/* Short rows: never leave a lonely card next to empty columns */
.sg-grid[data-n="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sg-grid[data-n="2"] .sg-card-media { aspect-ratio: 16 / 9; }
.sg-grid[data-n="1"] { grid-template-columns: minmax(0, 1fr); }
.sg-grid[data-n="1"] .sg-card-link { flex-direction: row; }
.sg-grid[data-n="1"] .sg-card-media { flex: 0 0 46%; aspect-ratio: 16 / 10; }

/* ---------- Category river ---------- */
.sg-river { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.85rem; }
.sg-river-item { background: var(--sg-card); border: 1px solid var(--sg-line); border-radius: var(--sg-radius); overflow: hidden; transition: box-shadow 0.2s, border-color 0.2s; }
.sg-river-item:hover { border-color: var(--sg-line-2); box-shadow: 0 10px 24px -14px rgba(17, 17, 17, 0.3); }
.sg-river-link { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 1.25rem; padding: 1rem; text-decoration: none; color: inherit; align-items: center; }
.sg-river-media { display: block; aspect-ratio: 16 / 10; border-radius: 6px; overflow: hidden; background: #e4e4e7; }
.sg-river-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.45s ease; }
.sg-river-link:hover .sg-river-media img { transform: scale(1.04); }
.sg-river-body { display: flex; flex-direction: column; gap: 0.45rem; min-width: 0; }
.sg-river-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 0.9rem; }
.sg-river-title { font-size: 1.2rem; font-weight: 800; line-height: 1.25; letter-spacing: -0.01em; color: var(--sg-ink); text-wrap: balance; }
.sg-river-link:hover .sg-river-title { color: var(--sg-red); }
.sg-river-excerpt { font-size: 0.9rem; line-height: 1.55; color: var(--sg-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- Elsewhere strip (thin categories) ---------- */
.sg-elsewhere-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 0.75rem; }
.sg-elsewhere-grid a {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.9rem 1rem;
  background: var(--sg-card);
  border: 1px solid var(--sg-line);
  border-left: 4px solid var(--cat, var(--sg-red));
  border-radius: 8px;
  text-decoration: none;
  color: var(--sg-ink);
  font-weight: 700;
  transition: box-shadow 0.2s, transform 0.2s;
}
.sg-elsewhere-grid a:hover { box-shadow: 0 8px 18px -12px rgba(17, 17, 17, 0.35); transform: translateY(-1px); }
.sg-elsewhere-icon { width: 34px; height: 34px; flex: 0 0 34px; display: grid; place-items: center; border-radius: 50%; background: var(--cat, var(--sg-red)); color: #fff; font-size: 0.85rem; }
.sg-elsewhere-name { flex: 1 1 auto; }
.sg-elsewhere-go { color: var(--cat, var(--sg-red)); transition: transform 0.15s; }
.sg-elsewhere-grid a:hover .sg-elsewhere-go { transform: translateX(3px); }

/* ---------- About page ---------- */
.sg-about-head {
  position: relative;
  overflow: hidden;
  background: var(--sg-ink);
  color: #fff;
  border-radius: var(--sg-radius);
  border-bottom: 3px solid var(--sg-red);
  padding: 2.5rem 2.75rem;
  margin-bottom: 2rem;
}
.sg-about-head::after {
  content: '';
  position: absolute;
  right: -80px; top: -80px;
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(200, 16, 46, 0.35), rgba(200, 16, 46, 0) 70%);
  pointer-events: none;
}
.sg-about-kicker { margin: 0 0 0.6rem; font-size: 0.6875rem; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; color: var(--sg-red-on-dark); }
.sg-about-title { margin: 0 0 0.75rem; max-width: 22ch; font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; line-height: 1.08; letter-spacing: -0.025em; text-wrap: balance; }
.sg-about-dek { margin: 0; max-width: 62ch; font-family: var(--sg-serif); font-size: 1.1rem; line-height: 1.55; color: rgba(255, 255, 255, 0.85); }
.sg-about-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 2rem; align-items: start; }
.sg-about-body {
  background: var(--sg-card);
  border: 1px solid var(--sg-line);
  border-radius: var(--sg-radius);
  padding: 2.25rem 2.75rem 2.5rem;
}
.sg-about-body > * { max-width: 72ch; }
.sg-about-body h2 { font-size: 1.35rem; font-weight: 800; letter-spacing: -0.01em; color: var(--sg-ink); margin: 2.25rem 0 0.75rem; }
.sg-about-body h2:first-child { margin-top: 0; }
.sg-about-body h2::before { content: ''; display: block; width: 36px; height: 3px; background: var(--sg-red); margin-bottom: 0.7rem; }
.sg-about-body h3 { font-size: 0.8125rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--sg-ink); margin: 1.5rem 0 0.35rem; }
.sg-about-body p { font-family: var(--sg-serif); font-size: 1.0625rem; line-height: 1.7; color: #2a2e34; margin: 0 0 1rem; }
.sg-about-body a { color: var(--sg-red); text-underline-offset: 3px; }
.sg-about-desks { list-style: none; margin: 0 0 0.5rem; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0.6rem; }
.sg-about-desks a {
  display: flex; align-items: center; gap: 0.65rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--sg-line);
  border-left: 4px solid var(--cat, var(--sg-red));
  border-radius: 6px;
  color: var(--sg-ink);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
}
.sg-about-desks a:hover { background: var(--sg-bg); }
.sg-about-desks i { color: var(--cat, var(--sg-red)); width: 1.1rem; text-align: center; }
.sg-about-aside { position: sticky; top: 1.25rem; display: grid; gap: 1.25rem; }
.sg-factbox { background: var(--sg-card); border: 1px solid var(--sg-line); border-top: 4px solid var(--sg-red); border-radius: var(--sg-radius); padding: 1.3rem 1.3rem 1.2rem; }
.sg-factbox-head { margin: 0 0 1rem; font-size: 0.8125rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sg-ink); }
.sg-factbox dl { margin: 0; }
.sg-factbox dt { font-size: 0.6875rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--sg-muted); }
.sg-factbox dd { margin: 0.15rem 0 0.9rem; font-size: 0.9375rem; line-height: 1.45; color: var(--sg-ink); overflow-wrap: anywhere; }
.sg-factbox dd:last-child { margin-bottom: 0; }
.sg-factbox dd a { color: var(--sg-red); font-weight: 600; }
.sg-factbox--dark { background: var(--sg-ink); border-color: var(--sg-ink); border-top-color: var(--sg-red); color: #e4e4e7; }
.sg-factbox--dark .sg-factbox-head { color: #fff; }
.sg-factbox--dark ul { list-style: none; margin: 0 0 1rem; padding: 0; }
.sg-factbox--dark li { position: relative; padding: 0.5rem 0 0.5rem 1.4rem; border-bottom: 1px solid rgba(255, 255, 255, 0.1); font-size: 0.9rem; }
.sg-factbox--dark li::before { content: ''; position: absolute; left: 0; top: 0.95rem; width: 8px; height: 8px; background: var(--sg-red-on-dark); }
.sg-factbox-cta { display: inline-block; color: #fff; font-size: 0.8125rem; font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--sg-red-on-dark); padding-bottom: 2px; }
.sg-factbox-cta:hover { color: var(--sg-red-on-dark); }

/* ---------- Responsive ---------- */
@media (max-width: 1240px) {
  .sg-masthead-date { display: none; }
  .sg-masthead-row { gap: 1.25rem; }
  .sg-primary-list a { padding-left: 0.55rem; padding-right: 0.55rem; letter-spacing: 0.06em; }
}
@media (max-width: 1060px) {
  .sg-masthead-row { padding: 0 1rem; min-height: 58px; }
  .sg-burger { display: block; }
  .sg-primary {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    margin-top: 3px;
    background: var(--sg-ink-2);
    border-bottom: 3px solid var(--sg-red);
    box-shadow: 0 18px 30px rgba(0, 0, 0, 0.35);
    padding: 0.4rem 1rem 1rem;
  }
  .sg-masthead.is-open .sg-primary { display: block; }
  .sg-primary-list { flex-direction: column; }
  .sg-only-m { display: block; }
  .sg-primary-list a {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.9rem 0.25rem;
    margin: 0;
    font-size: 0.8125rem;
    letter-spacing: 0.1em;
    color: #f4f4f5;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  .sg-primary-list a[data-ci]::before { content: ''; width: 8px; height: 8px; border-radius: 2px; background: var(--cat); }
  .sg-primary-list a.is-on { color: #fff; border-bottom-color: rgba(255, 255, 255, 0.08); box-shadow: inset 3px 0 0 var(--cat, var(--sg-red)); padding-left: 0.75rem; }
  .sg-primary-extra { display: flex; flex-wrap: wrap; gap: 1.25rem; padding: 0.9rem 0.25rem 0; }
  .sg-primary-extra a { color: #d4d4d8; font-size: 0.8125rem; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, 0.3); }
}
@media (max-width: 1100px) {
  .sg-layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 1.5rem; }
  .sg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sg-article { padding: 2rem 2rem 1.75rem; }
}

@media (max-width: 900px) {
  .sg-layout { grid-template-columns: 1fr; }
  .sg-aside-sticky { position: static; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
  .sg-index { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 2rem; }
  .sg-about-grid { grid-template-columns: minmax(0, 1fr); }
  .sg-about-aside { position: static; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
}

@media (max-width: 640px) {
  .sg-ghost { display: none; }
  .sg-wordmark { font-size: 1.4rem; }
  .sg-wire { height: 36px; }
  .sg-wrap { padding: 1rem 1rem 2.5rem; }
  main > .container { padding: 0 1rem; }
  .sg-hero { border-radius: 8px; }
  .sg-hero-link { aspect-ratio: auto; min-height: 420px; }
  .sg-hero-body { padding: 1.25rem 1.2rem 1.35rem; }
  .sg-hero-title { font-size: 1.55rem; }
  .sg-hero-excerpt { font-size: 0.9rem; -webkit-line-clamp: 2; }
  .sg-grid { grid-template-columns: 1fr; gap: 1rem; }
  .sg-grid[data-n] { grid-template-columns: minmax(0, 1fr); }
  .sg-grid[data-n] .sg-card-media { flex: 0 0 38%; aspect-ratio: auto; }
  .sg-section { margin-top: 2rem; }
  .sg-section-head { gap: 0.75rem; }
  .sg-section-head h2 { font-size: 0.8125rem; white-space: normal; }
  .sg-hide-sm { display: none; }

  /* compact horizontal cards on phones for density */
  .sg-card-link { flex-direction: row; align-items: stretch; }
  .sg-card-media { flex: 0 0 38%; aspect-ratio: auto; min-height: 118px; position: relative; }
  .sg-card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
  .sg-card-body { padding: 0.75rem 0.85rem; gap: 0.3rem; }
  .sg-card-title { font-size: 0.975rem; }
  .sg-card-excerpt { display: none; }

  .sg-cat-head { grid-template-columns: auto 1fr; padding: 1.4rem 1.25rem; gap: 1rem; }
  .sg-cat-icon { width: 48px; height: 48px; font-size: 1.15rem; }
  .sg-cat-count { grid-column: 1 / -1; text-align: left; border-left: 0; padding-left: 0; border-top: 1px solid rgba(255,255,255,0.18); padding-top: 0.9rem; display: flex; align-items: baseline; gap: 0.5rem; }
  .sg-cat-count strong { display: inline; font-size: 1.35rem; margin: 0; }
  .sg-lead-link { grid-template-columns: 1fr; }
  .sg-lead-media { aspect-ratio: 16 / 10; }
  .sg-lead-body { padding: 1.2rem; }

  .sg-article { padding: 1.4rem 1.1rem 1.4rem; border-radius: 8px; }
  .sg-article-title { font-size: 1.8rem; }
  .sg-figure { margin: 0 -1.1rem 1.5rem; }
  .sg-figure img { border-radius: 0; }
  .sg-article-body, .sg-article-body p, .sg-article-body .content-paragraph { font-size: 17px; }
  .sg-article-body > .content-paragraph:first-child, .sg-article-body > .intro-paragraph:first-child { font-size: 1.125rem; }
  .sg-article-body h2, .sg-article-body .content-heading { font-size: 1.3rem; }

  .page-content { padding: 1.6rem 1.2rem 2rem; margin: 1rem 0; }
  .contact-form { padding: 1.2rem; }
  .sg-colophon > * { padding-left: 1rem; padding-right: 1rem; }
  .sg-colophon-top { grid-template-columns: 1fr; gap: 1.5rem; padding-top: 2rem; }
  .sg-colophon-desk { border-left: 0; padding-left: 0; border-top: 1px solid rgba(255, 255, 255, 0.12); padding-top: 1.25rem; }
  .sg-index { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 1.25rem; }
  .sg-index ul { display: none; }
  .sg-index-head { margin-bottom: 0.4rem; }
  .sg-colophon-legal { flex-direction: column; align-items: flex-start; }

  .sg-river-link { grid-template-columns: 112px minmax(0, 1fr); gap: 0.9rem; padding: 0.9rem; }
  .sg-river-media { aspect-ratio: 1 / 1; }
  .sg-river-title { font-size: 1rem; }
  .sg-river-excerpt { display: none; }
  .sg-elsewhere-grid { grid-template-columns: 1fr; }
  .sg-about-head { padding: 1.5rem 1.2rem; }
  .sg-about-body { padding: 1.4rem 1.2rem 1.6rem; }
}
