/* ── Tokens ── */
:root {
  --bg: #0d0a1a;
  --bg-soft: #161231;
  --card: rgba(22, 18, 49, 0.85);
  --card-hover: rgba(30, 25, 60, 0.95);
  --surface: rgba(255, 255, 255, 0.03);
  --text: #f0ebff;
  --muted: #a99dd0;
  --line: rgba(169, 157, 208, 0.14);
  --accent: #b494ff;
  --accent-soft: rgba(180, 148, 255, 0.12);
  --accent-strong: #ffad75;
  --highlight: #64e8f0;
  --good: #6eeaa0;
  --radius: 20px;
  --radius-lg: 28px;
  --shadow: 0 16px 48px rgba(2, 0, 14, 0.45);
  --shadow-glow: 0 0 80px rgba(180, 148, 255, 0.08);
  --font-display: "Cormorant Garamond", serif;
  --font-body: "Manrope", system-ui, sans-serif;
  --t: 200ms ease;
}
[data-theme="light"] {
  --bg: #f8f4ff;
  --bg-soft: #ffffff;
  --card: rgba(255, 255, 255, 0.92);
  --card-hover: rgba(255, 255, 255, 1);
  --surface: rgba(0, 0, 0, 0.02);
  --text: #211c3a;
  --muted: #6d6490;
  --line: rgba(33, 28, 58, 0.1);
  --accent: #7c5cff;
  --accent-soft: rgba(124, 92, 255, 0.08);
  --accent-strong: #e87a3a;
  --highlight: #3498db;
  --shadow: 0 16px 48px rgba(100, 70, 170, 0.1);
  --shadow-glow: none;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 60% 40% at 15% 10%, rgba(100, 232, 240, 0.07), transparent),
    radial-gradient(ellipse 50% 35% at 85% 8%, rgba(180, 148, 255, 0.1), transparent),
    radial-gradient(ellipse 40% 30% at 50% 0%, rgba(255, 173, 117, 0.05), transparent),
    linear-gradient(180deg, var(--bg), #080618);
}
[data-theme="light"] body::before {
  background:
    radial-gradient(ellipse 60% 40% at 15% 10%, rgba(52, 152, 219, 0.06), transparent),
    radial-gradient(ellipse 50% 35% at 85% 8%, rgba(124, 92, 255, 0.06), transparent),
    linear-gradient(180deg, #fdfaff, #f3ecff);
}
a { color: inherit; }
button { font: inherit; }
h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}

/* ── Skip link ── */
.skip-link {
  position: absolute;
  left: -999px;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
  z-index: 20;
  padding: 0.8rem 1rem;
  border-radius: 999px;
  background: var(--accent);
  color: #0d0a1a;
}

/* ── Shell widths ── */
.site-header,
.hero,
.section-shell,
.detail-layout { width: min(1240px, calc(100% - 2rem)); margin-inline: auto; }

/* ── Header ── */
.site-header { padding-top: 1rem; }
.header-shell {
  padding: 0.75rem 1rem 0.75rem 0.75rem;
  border-radius: 999px;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  background: rgba(13, 10, 26, 0.5);
  border: 1px solid var(--line);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
[data-theme="light"] .header-shell {
  background: rgba(255, 255, 255, 0.7);
}
.brand {
  display: inline-flex;
  gap: 0.75rem;
  align-items: center;
  text-decoration: none;
}
.brand-logo {
  height: 42px;
  width: auto;
  object-fit: contain;
  display: block;
  border-radius: 12px;
}
[data-theme="dark"] .brand-logo {
  filter: brightness(0) invert(1);
}
[data-theme="light"] .brand-logo {
  filter: none;
}
.brand-text strong {
  display: block;
  font: 700 1.1rem/1 var(--font-display);
  letter-spacing: 0.01em;
}
.brand-text small { color: var(--muted); font-size: 0.78rem; }
.header-actions { display: flex; align-items: center; gap: 0.6rem; }
.favorites-pill {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  border-radius: 999px;
  padding: 0.6rem 1rem;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.favorites-pill svg {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.theme-toggle {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  transition: background var(--t);
}
.theme-toggle:hover { background: var(--accent-soft); }
.theme-toggle svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.theme-icon--sun { display: none; }
[data-theme="light"] .theme-icon--moon { display: none; }
[data-theme="light"] .theme-icon--sun { display: block; }

/* ── Hero ── */
.hero {
  padding: 1rem 0;
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 1rem;
  align-items: stretch;
}
.hero-copy,
.ranking-grid,
.panel,
.sign-grid {
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.hero-copy {
  padding: clamp(1.25rem, 2.5vw, 2rem);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}
.hero-copy h1,
.hero-copy .hero-text {
  margin-inline: auto;
}
.hero-copy::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -20%;
  width: 60%;
  height: 120%;
  background: radial-gradient(circle, rgba(180, 148, 255, 0.08), transparent 60%);
  pointer-events: none;
}
.eyebrow,
.section-kicker {
  margin: 0 0 0.4rem;
  color: var(--highlight);
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.2em;
}
h1 {
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  line-height: 1;
  max-width: 16ch;
}
.hero-text,
.section-copy,
.empty-state p,
.forecast-copy,
.score-label,
.classification-chip,
.metric-note,
.insight-note { color: var(--muted); }
.hero-text { font-size: 0.95rem; line-height: 1.7; max-width: 50ch; margin-top: 0.75rem; }

/* ── Ranking ── */
.ranking-grid {
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.ranking-title {
  margin: 0 0 0.6rem;
  font: 800 0.72rem/1 var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--highlight);
}
.ranking-cards {
  display: grid;
  grid-template-columns: 1fr;
}
.ranking-card {
  display: grid;
  grid-template-columns: 2.2rem 1fr 2.2rem;
  gap: 0.75rem;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  transition: background var(--t);
}
.ranking-card:last-child { border-bottom: none; }
.ranking-card:hover { background: var(--accent-soft); margin: 0 -0.5rem; padding-inline: 0.5rem; border-radius: 12px; }
.ranking-card-icon {
  width: 2.2rem;
  height: 2.2rem;
  display: grid;
  place-items: center;
  color: var(--accent);
}
.ranking-card-icon svg { width: 1.3rem; height: 1.3rem; }
.ranking-card-body { min-width: 0; }
.ranking-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 0.1rem;
}
.ranking-name {
  display: block;
  font: 600 1.05rem/1.2 var(--font-display);
}
.ranking-value { font-size: 0.8rem; color: var(--muted); }
.ranking-card-sign {
  width: 2.2rem;
  height: 2.2rem;
  color: var(--muted);
  opacity: 0.45;
}
.ranking-card-sign svg { width: 100%; height: 100%; }

/* ── Section ── */
.section-shell { padding-bottom: 1rem; }
.section-heading,
.panel-heading {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: end;
  margin-bottom: 0.75rem;
}
.section-copy { margin: 0; max-width: 34rem; text-align: right; }

/* ── Sign grid ── */
.sign-grid {
  border-radius: var(--radius-lg);
  padding: 1rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
}
.sign-card {
  border-radius: 16px;
  padding: 0.85rem;
  text-align: left;
  cursor: pointer;
  border: 1px solid var(--line);
  background: var(--surface);
  transition: background var(--t), border-color var(--t), transform 120ms ease;
  text-decoration: none;
  color: inherit;
}
.sign-card:hover {
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-2px);
}
.sign-card.active {
  background: linear-gradient(135deg, rgba(180, 148, 255, 0.16), rgba(100, 232, 240, 0.1));
  border-color: rgba(180, 148, 255, 0.3);
}
.sign-card-top {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  align-items: start;
}
.sign-glyph {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  padding: 0.35rem;
}
.sign-glyph svg {
  width: 100%;
  height: 100%;
}
.sign-card-arrow { color: var(--muted); flex-shrink: 0; }
.sign-card:hover .sign-card-arrow { color: var(--accent); }
.favorite-btn {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 999px;
  cursor: pointer;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  display: inline-grid;
  place-items: center;
  transition: color var(--t), border-color var(--t);
}
.favorite-btn:hover { color: var(--accent-strong); border-color: rgba(255, 173, 117, 0.3); }
.favorite-btn.is-favorite { color: var(--accent-strong); border-color: rgba(255, 173, 117, 0.45); }
.sign-card h3 { font-size: 1rem; }
.sign-date { margin: 0.2rem 0 0.4rem; font-size: 0.82rem; }
.sign-card .metric-note { font-size: 0.78rem; }
.metric-note,
.insight-note,
.classification-chip,
.score-label { font-size: 0.85rem; }

/* ── Detail layout ── */
.detail-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.75fr;
  gap: 1.25rem;
  padding-bottom: 2rem;
}
.panel {
  border-radius: var(--radius-lg);
  padding: 1.25rem;
}
.panel--feature { min-height: 42rem; }
.feature-header { display: grid; gap: 1rem; }
.feature-topline {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: center;
}
.feature-glyph {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font: 800 1.2rem/1 var(--font-body);
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(180, 148, 255, 0.18);
  padding: 0.75rem;
}
.feature-glyph svg { width: 100%; height: 100%; }
.feature-subtitle,
.forecast-copy { margin: 0; }
.forecast-copy { line-height: 1.8; }

/* ── Period tabs ── */
.period-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.6rem;
}
.period-btn {
  padding: 0.8rem 0.6rem;
  border-radius: 14px;
  cursor: pointer;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
  transition: background var(--t), color var(--t), border-color var(--t);
}
.period-btn:hover { background: var(--accent-soft); }
.period-btn.active {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #fff;
  border-color: transparent;
  font-weight: 700;
}

/* ── Score + bars ── */
.score-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}
.score-card,
.insight-card {
  border-radius: var(--radius);
  padding: 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
}
.score-value {
  display: block;
  font: 700 clamp(1.8rem, 3.2vw, 2.6rem)/1 var(--font-display);
  margin-bottom: 0.25rem;
  color: var(--accent);
}
.bar-list { display: grid; gap: 0.7rem; margin-top: 1rem; }
.bar-item { display: grid; gap: 0.3rem; }
.bar-track {
  width: 100%;
  height: 0.4rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}
[data-theme="light"] .bar-track { background: rgba(0, 0, 0, 0.06); }
.bar-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--highlight));
}

/* ── Classification + Insights ── */
.classification-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}
.classification-chip {
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 0.85rem 1rem;
}
.classification-chip strong {
  display: block;
  color: var(--text);
  margin-bottom: 0.15rem;
  font-size: 0.95rem;
}
.insight-stack { display: grid; gap: 0.75rem; }
.insight-card strong { display: block; margin-bottom: 0.3rem; }
.empty-state {
  min-height: 100%;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 2rem;
}

/* ── Loading screen ── */
.loading-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  transition: opacity 400ms ease;
}
[data-theme="dark"] .loading-screen {
  background: var(--bg);
}
.loading-screen.hide {
  opacity: 0;
  pointer-events: none;
}
.loading-screen-logo {
  width: 72px;
  height: 72px;
  object-fit: contain;
  border-radius: 16px;
}
[data-theme="dark"] .loading-screen-logo {
  filter: brightness(0) invert(1);
}
[data-theme="light"] .loading-screen-logo {
  filter: none;
}
.loading-bar {
  width: 180px;
  height: 4px;
  border-radius: 4px;
  background: #e8e0f4;
  overflow: hidden;
}
[data-theme="dark"] .loading-bar {
  background: rgba(255, 255, 255, 0.12);
}
.loading-bar-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #b494ff, #ffad75);
  width: 0%;
  transition: width 300ms ease;
}

/* ── Skeleton loader ── */
@keyframes skeleton-pulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.15; }
}
.skeleton {
  display: grid;
  gap: 0.6rem;
  padding: 1rem;
}
.skeleton-line {
  height: 0.75rem;
  border-radius: 6px;
  background: var(--muted);
  animation: skeleton-pulse 1.2s ease-in-out infinite;
}
.skeleton-line--short { width: 40%; }
.skeleton-line--medium { width: 65%; }
.skeleton-line--long { width: 90%; }
.skeleton-line--full { width: 100%; }
.skeleton-circle {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 12px;
  background: var(--muted);
  animation: skeleton-pulse 1.2s ease-in-out infinite;
}
.skeleton-row {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}
.skeleton-card {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
}
.skeleton-card-img {
  aspect-ratio: 16/9;
  background: var(--muted);
  animation: skeleton-pulse 1.2s ease-in-out infinite;
}
.skeleton-card-body { padding: 0.75rem; display: grid; gap: 0.5rem; }

/* ── Modal ── */
.fmodal-overlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(8, 5, 18, 0.8);
  z-index: 50;
  backdrop-filter: blur(4px);
}
.fmodal-overlay.open { display: flex; }
.fmodal {
  width: min(100%, 34rem);
  border-radius: var(--radius-lg);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.fmodal-header,
.fmodal-tabs { display: flex; align-items: center; }
.fmodal-header {
  justify-content: space-between;
  padding: 1rem;
  border-bottom: 1px solid var(--line);
}
.fmodal-tabs { gap: 0.5rem; }
.fmodal-tab,
.fmodal-close,
.fform-submit { border: 0; cursor: pointer; }
.fmodal-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border-radius: 999px;
  padding: 0.7rem 1rem;
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
  font-size: 0.9rem;
  transition: background var(--t);
}
.fmodal-tab.active { background: linear-gradient(135deg, var(--accent), var(--accent-strong)); color: #fff; }
.fmodal-close {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-size: 1.25rem;
  display: inline-grid;
  place-items: center;
  transition: background var(--t);
}
.fmodal-close:hover { background: rgba(255, 255, 255, 0.08); }
.fmodal-body { padding: 1rem; }
.fform-group { display: grid; gap: 0.4rem; margin-bottom: 0.85rem; }
.fform-label { font-weight: 700; font-size: 0.9rem; }
.fform-hint { color: var(--muted); font-size: 0.85rem; margin: 0 0 0.5rem; }
.fform-input,
.fform-textarea {
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  padding: 0.85rem 1rem;
  font-size: 0.95rem;
}
.fform-textarea { min-height: 7rem; resize: vertical; }
.fform-submit {
  width: 100%;
  border-radius: 14px;
  padding: 0.9rem 1rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #0d0a1a;
  font-size: 0.95rem;
  transition: opacity var(--t);
}
.fform-submit:hover { opacity: 0.9; }
.fmodal-msg.error {
  margin-bottom: 0.85rem;
  padding: 0.8rem 1rem;
  border-radius: 12px;
  background: rgba(255, 80, 80, 0.12);
  color: #ffbfbf;
  font-size: 0.9rem;
}
.fmodal-success-view { text-align: center; padding: 2rem 1rem; }
.fmodal-success-icon svg { width: 3rem; height: 3rem; color: var(--good); }
.fmodal-success-title {
  margin-top: 1rem;
  font: 700 1.6rem/1 var(--font-display);
}
.fmodal-success-desc { color: var(--muted); margin-top: 0.5rem; }

/* ── Responsive ── */
@media (max-width: 1080px) {
  .hero,
  .detail-layout { grid-template-columns: 1fr; }
  .sign-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .section-copy { text-align: left; }
}
@media (max-width: 720px) {
  .site-header, .hero, .section-shell, .detail-layout { width: min(100% - 1rem, 1240px); }
  .header-shell { border-radius: 20px; }
  .header-actions,
  .section-heading,
  .feature-topline { flex-direction: column; }
  .header-shell { flex-wrap: wrap; }
  .section-heading,
  .panel-heading { align-items: stretch; }
  .sign-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .period-tabs,
  .score-grid,
  .classification-grid { grid-template-columns: 1fr; }
  h1 { font-size: clamp(2rem, 6vw, 2.8rem); }
  .news-grid { grid-template-columns: 1fr; }
  .article-shell { grid-template-columns: 1fr; }
}

/* ── Breadcrumb ── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--muted);
  flex-wrap: wrap;
}
.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
  transition: color var(--t);
}
.breadcrumb a:hover { color: var(--text); }
.breadcrumb svg { flex-shrink: 0; }

/* ── Section link ── */
.section-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: opacity var(--t);
}
.section-link:hover { opacity: 0.8; }

/* ── Category tabs ── */
.category-tabs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.category-tab {
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  transition: background var(--t), color var(--t), border-color var(--t);
}
.category-tab:hover { color: var(--text); background: var(--accent-soft); }
.category-tab.active {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #fff;
  border-color: transparent;
}
.category-tab small { opacity: 0.7; }

/* ── News grid ── */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  transition: opacity 200ms ease;
}
.news-grid.fade-out { opacity: 0; }
.news-grid.fade-in { opacity: 1; }
.news-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--card);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 120ms ease, box-shadow var(--t);
}
.news-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.news-card-img {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--surface);
}
.news-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.news-card-img--placeholder {
  display: grid;
  place-items: center;
  color: var(--muted);
}
.news-card-body { padding: 1rem; display: flex; flex-direction: column; gap: 0.35rem; flex: 1; }
.news-card-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
}
.news-card-title {
  font: 600 1rem/1.3 var(--font-display);
  margin: 0;
  letter-spacing: -0.01em;
}
.news-card-desc {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
  flex: 1;
}
.news-card-date {
  font-size: 0.78rem;
  color: var(--muted);
  opacity: 0.7;
  margin-top: 0.25rem;
}

/* ── Article page ── */
.article-shell {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2rem;
  align-items: start;
}
.article-main { min-width: 0; }
.article-hero-img {
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 1.5rem;
}
.article-hero-img img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 420px;
  object-fit: cover;
}
.article-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  line-height: 1.05;
  margin-bottom: 0.75rem;
}
.article-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  font-size: 0.85rem;
  color: var(--muted);
}
.article-tag {
  display: inline-block;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
}
.article-lead {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--muted);
  margin: 0 0 1.5rem;
  border-left: 3px solid var(--accent);
  padding-left: 1rem;
}
.article-body { line-height: 1.8; }
.article-body p { margin: 0 0 1rem; }
.article-body h2,
.article-body h3,
.article-body h4 {
  margin: 1.5rem 0 0.5rem;
  font-family: var(--font-display);
}
.article-sidebar {
  position: sticky;
  top: 1rem;
}
.sidebar-title {
  font: 700 1rem/1 var(--font-display);
  margin: 0 0 1rem;
  color: var(--muted);
}

/* ── Sign hero (signo.html) ── */
.sign-hero {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  box-shadow: var(--shadow);
}

@media (max-width: 1080px) {
  .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article-shell { grid-template-columns: 1fr; }
}
