/* =================================================================
   Clique Cristão — Portal Católico
   Design system editorial · v2 (news magazine)
   ================================================================= */

:root {
  /* Brand */
  --brand-50:  #FFF6E5;
  --brand-100: #FFE6BF;
  --brand-200: #FFCE85;
  --brand-300: #FFB347;
  --brand-400: #F59E1F;
  --brand-500: #F18A00;
  --brand-600: #D67500;
  --brand-700: #A85A00;
  --brand-800: #7A4000;

  --accent-300: #FFD78C;
  --accent-500: #F5C04D;
  --accent-700: #C99526;

  /* Category colors */
  --cat-noticias:   #F18A00;
  --cat-refletindo: #5C3A21;
  --cat-oracoes:    #9B5B2A;
  --cat-musica:     #7A2E2E;
  --cat-fotos:      #2E5A6B;
  --cat-papa:       #3D2A6B;
  --cat-santos:     #C99526;
  --cat-familia:    #2E7D32;

  /* Surfaces */
  --bg:         #FAF6EF;
  --bg-2:       #F3EBD9;
  --bg-3:       #EADFC8;
  --surface:    #FFFFFF;
  --surface-2:  #FDF7EA;
  --border:     #E6D9BC;
  --border-strong: #D2BD96;
  --rule:       #EBDDC0;

  /* Ink */
  --ink-900: #1A0F08;
  --ink-800: #2A1810;
  --ink-700: #3D2817;
  --ink-600: #5C432B;
  --ink-500: #80624A;
  --ink-400: #A88B70;
  --ink-300: #C9B59A;
  --ink-100: #EBDFCA;

  --success: #2E7D32;
  --danger:  #C0392B;

  --font-display: 'Fraunces', 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-xl: 18px;
  --r-2xl: 24px;
  --r-pill: 999px;

  --shadow-xs: 0 1px 2px hsla(28, 50%, 15%, 0.06);
  --shadow-sm: 0 2px 8px hsla(28, 50%, 15%, 0.08);
  --shadow-md: 0 8px 24px hsla(28, 50%, 15%, 0.10);
  --shadow-lg: 0 18px 50px hsla(28, 50%, 15%, 0.16);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --t-fast: 160ms;
  --t-med: 280ms;

  --container: 1280px;
  --container-narrow: 720px;
  --aside-width: 320px;
  --gap: clamp(16px, 2vw, 32px);
}

[data-theme="dark"] {
  --bg:         #12100B;
  --bg-2:       #1B160E;
  --bg-3:       #261D14;
  --surface:    #1B160E;
  --surface-2:  #261D14;
  --border:     #2E2418;
  --border-strong: #46341E;
  --rule:       #2E2418;

  --ink-900: #FFF7E8;
  --ink-800: #F2E4CD;
  --ink-700: #DCC8A8;
  --ink-600: #BAA582;
  --ink-500: #968465;
  --ink-400: #76654A;
  --ink-300: #4F4131;
  --ink-100: #2E2418;

  --shadow-xs: 0 1px 2px rgba(0,0,0,0.5);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.5);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.55);
  --shadow-lg: 0 18px 50px rgba(0,0,0,0.65);
}

/* =========================================================
   Base
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink-800);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-size: 16px;
}
img { max-width: 100%; display: block; height: auto; }
a { color: var(--brand-700); text-decoration: none; transition: color var(--t-fast) var(--ease-out); }
a:hover { color: var(--brand-800); }
button { font: inherit; cursor: pointer; border: 0; background: transparent; color: inherit; }
input, textarea, select { font: inherit; }
h1,h2,h3,h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.2; color: var(--ink-900); margin: 0; letter-spacing: -0.01em; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: -9999px; top: 0; padding: 12px 18px;
  background: var(--ink-900); color: var(--bg); border-radius: 0 0 var(--r-md) 0;
  z-index: 1000; font-weight: 600;
}
.skip-link:focus { left: 0; }

.container {
  width: 100%; max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(16px, 3vw, 32px);
}

.display {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink-900);
  margin: 0 0 14px;
}
.display--md { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.display--lg { font-size: clamp(2.4rem, 5vw, 3.8rem); }

.lead {
  font-size: clamp(1rem, 1.2vw, 1.12rem);
  color: var(--ink-600);
  line-height: 1.55;
  margin: 0 0 20px;
  max-width: 60ch;
}
.lead--light { color: rgba(255, 247, 232, 0.86); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 4px 12px;
  background: var(--brand-50);
  color: var(--brand-700);
  border: 1px solid var(--brand-100);
  border-radius: var(--r-pill);
  font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase;
  margin-bottom: 12px;
}
.eyebrow--light { background: rgba(255,255,255,0.14); color: #FFF6E5; border-color: rgba(255,255,255,0.25); }

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px;
  font-weight: 600; font-size: 0.93rem; line-height: 1;
  border-radius: var(--r-md);
  border: 1px solid transparent;
  cursor: pointer; white-space: nowrap;
  transition: transform var(--t-fast) var(--ease-out), background var(--t-fast) var(--ease-out), color var(--t-fast) var(--ease-out), box-shadow var(--t-fast) var(--ease-out);
}
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 3px solid var(--brand-300); outline-offset: 2px; }
.btn--primary { background: var(--brand-500); color: #FFF; }
.btn--primary:hover { background: var(--brand-600); color: #FFF; transform: translateY(-1px); box-shadow: 0 8px 20px hsla(28, 95%, 47%, 0.30); }
.btn--accent { background: var(--accent-500); color: var(--ink-900); }
.btn--accent:hover { background: var(--accent-700); color: var(--ink-900); transform: translateY(-1px); }
.btn--ghost { background: var(--surface); color: var(--ink-800); border-color: var(--border-strong); }
.btn--ghost:hover { background: var(--bg-2); color: var(--ink-900); }
.btn--sm { padding: 8px 14px; font-size: 0.85rem; }
.btn--block { width: 100%; }

/* =========================================================
   Utility bar
   ========================================================= */
.utility-bar {
  background: var(--ink-900);
  color: rgba(255, 246, 229, 0.78);
  font-size: 0.8rem;
  border-bottom: 1px solid rgba(255, 246, 229, 0.06);
}
.utility-bar__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 8px 16px; flex-wrap: wrap;
}
.utility-bar__left, .utility-bar__right { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.utility-bar__sep { color: rgba(255, 246, 229, 0.3); }
.utility-bar__link { color: var(--accent-500); font-weight: 600; }
.utility-bar__link:hover { color: var(--accent-300); }
.utility-bar__social { display: inline-flex; gap: 8px; }
.utility-bar__social a {
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.06em;
  padding: 2px 6px; border-radius: var(--r-sm);
  background: rgba(255,255,255,0.08); color: rgba(255, 246, 229, 0.85);
  transition: background var(--t-fast) var(--ease-out), color var(--t-fast) var(--ease-out);
}
.utility-bar__social a:hover { background: var(--brand-500); color: #FFF; }

/* =========================================================
   Header / Search / Nav
   ========================================================= */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--t-med) var(--ease-out);
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); }

.site-header__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 14px 16px;
}

.brand { display: inline-flex; align-items: center; }
.brand__logo { height: 48px; width: auto; transition: transform var(--t-med) var(--ease-out); }
.brand:hover .brand__logo { transform: rotate(-3deg) scale(1.04); }

.search-form {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  padding: 4px 4px 4px 16px;
  transition: border-color var(--t-fast) var(--ease-out), box-shadow var(--t-fast) var(--ease-out);
  max-width: 520px; width: 100%;
}
.search-form:focus-within { border-color: var(--brand-400); box-shadow: 0 0 0 4px var(--brand-50); }
.search-form svg { color: var(--ink-500); flex-shrink: 0; }
.search-form input {
  flex: 1; min-width: 0;
  border: 0; background: transparent; outline: 0;
  padding: 10px 0; color: var(--ink-900); font-size: 0.92rem;
}
.search-form input::placeholder { color: var(--ink-400); }
.search-form--mobile {
  max-width: none; margin-bottom: 12px;
}

.header-actions { display: inline-flex; align-items: center; gap: 6px; justify-self: end; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border-radius: var(--r-md);
  color: var(--ink-700);
  border: 1px solid transparent;
  transition: background var(--t-fast) var(--ease-out), color var(--t-fast) var(--ease-out), border-color var(--t-fast) var(--ease-out);
}
.icon-btn:hover { background: var(--bg-2); color: var(--ink-900); border-color: var(--border); }
.icon-btn:focus-visible { outline: 3px solid var(--brand-300); outline-offset: 2px; }
#themeBtn .i-moon { display: none; }
[data-theme="dark"] #themeBtn .i-sun { display: none; }
[data-theme="dark"] #themeBtn .i-moon { display: inline; }

.menu-toggle { display: none; flex-direction: column; gap: 4px; }
.menu-toggle span {
  display: block; width: 20px; height: 2px;
  background: currentColor; border-radius: 2px;
  transition: transform var(--t-fast) var(--ease-out), opacity var(--t-fast) var(--ease-out);
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Category nav (newspaper-style) */
.cat-nav {
  border-top: 1px solid var(--border);
  background: var(--surface);
  overflow-x: auto;
  scrollbar-width: thin;
}
.cat-nav__inner {
  padding: 0 16px;
}
.cat-nav ul {
  list-style: none; display: inline-flex; gap: 2px;
  padding: 0; margin: 0;
  width: max-content;
}
.cat-nav a {
  display: inline-flex; align-items: center;
  padding: 14px 16px;
  font-size: 0.88rem; font-weight: 600;
  color: var(--ink-700);
  border-bottom: 2px solid transparent;
  transition: color var(--t-fast) var(--ease-out), border-color var(--t-fast) var(--ease-out);
  white-space: nowrap;
}
.cat-nav a:hover { color: var(--brand-700); }
.cat-nav a.is-active { color: var(--brand-700); border-bottom-color: var(--brand-500); }

.mobile-nav {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 16px 20px 24px;
}
.mobile-nav ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 4px;
}
.mobile-nav a {
  display: block; padding: 12px 14px;
  border-radius: var(--r-md);
  color: var(--ink-800); font-weight: 500;
}
.mobile-nav a:hover { background: var(--bg-2); color: var(--ink-900); }

/* =========================================================
   Category Tags
   ========================================================= */
.cat-tag {
  display: inline-block;
  padding: 3px 8px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--r-sm);
  background: var(--ink-100);
  color: var(--ink-800);
}
.cat-tag--xs { font-size: 0.66rem; padding: 2px 6px; }
.cat-tag--lg { font-size: 0.82rem; padding: 5px 12px; }
.cat-tag--noticias   { background: color-mix(in srgb, var(--cat-noticias) 14%, transparent); color: var(--cat-noticias); }
.cat-tag--refletindo { background: color-mix(in srgb, var(--cat-refletindo) 14%, transparent); color: var(--cat-refletindo); }
.cat-tag--oracoes    { background: color-mix(in srgb, var(--cat-oracoes) 14%, transparent); color: var(--cat-oracoes); }
.cat-tag--musica     { background: color-mix(in srgb, var(--cat-musica) 14%, transparent); color: var(--cat-musica); }
.cat-tag--fotos      { background: color-mix(in srgb, var(--cat-fotos) 14%, transparent); color: var(--cat-fotos); }
.cat-tag--papa       { background: color-mix(in srgb, var(--cat-papa) 14%, transparent); color: var(--cat-papa); }
.cat-tag--santos     { background: color-mix(in srgb, var(--cat-santos) 18%, transparent); color: var(--brand-700); }
.cat-tag--familia    { background: color-mix(in srgb, var(--cat-familia) 14%, transparent); color: var(--cat-familia); }

[data-theme="dark"] .cat-tag--noticias   { color: #FFB347; }
[data-theme="dark"] .cat-tag--refletindo { color: #D9B58A; }
[data-theme="dark"] .cat-tag--oracoes    { color: #E4A86C; }
[data-theme="dark"] .cat-tag--musica     { color: #F39B9B; }
[data-theme="dark"] .cat-tag--fotos      { color: #84B6C9; }
[data-theme="dark"] .cat-tag--papa       { color: #A493D9; }
[data-theme="dark"] .cat-tag--santos     { color: #F0CF7A; }
[data-theme="dark"] .cat-tag--familia    { color: #8FCD92; }

a.cat-tag:hover { filter: brightness(0.9); }

/* =========================================================
   Ticker (breaking news)
   ========================================================= */
.ticker {
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
}
.ticker__inner {
  display: flex; align-items: center; gap: 16px;
  padding: 10px 16px;
}
.ticker__label {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--brand-500); color: #FFF;
  padding: 5px 12px; border-radius: var(--r-sm);
  font-size: 0.76rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  flex-shrink: 0;
}
.ticker__dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #FFF;
  animation: blink 1.4s infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

.ticker__track { flex: 1; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.ticker__list {
  list-style: none; padding: 0; margin: 0;
  display: inline-flex; gap: 40px;
  animation: tickerScroll 40s linear infinite;
  white-space: nowrap;
  padding-left: 100%;
}
.ticker__list li { font-size: 0.88rem; color: var(--ink-700); }
.ticker__list li::before { content: "•"; color: var(--brand-500); margin-right: 12px; }
.ticker__list a { color: inherit; font-weight: 500; }
.ticker__list a:hover { color: var(--brand-700); }
.ticker:hover .ticker__list { animation-play-state: paused; }
@keyframes tickerScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}

/* =========================================================
   Hero grid (editor's pick)
   ========================================================= */
.hero-grid { padding: clamp(28px, 4vw, 48px) 0; }
.hero-grid__inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: clamp(24px, 3vw, 40px);
}
.hero-grid__side {
  display: flex; flex-direction: column;
  gap: 20px;
  border-left: 1px solid var(--rule);
  padding-left: clamp(16px, 2vw, 28px);
}

/* =========================================================
   Story (universal article card)
   ========================================================= */
.story {
  display: flex; flex-direction: column;
  gap: 14px;
}
.story__media { display: block; overflow: hidden; border-radius: var(--r-lg); background: var(--bg-2); }
.story__art {
  aspect-ratio: 16 / 10;
  display: flex; align-items: center; justify-content: center;
  font-size: 4rem; color: #FFF;
  transition: transform 600ms var(--ease-out);
}
.story__art--hero { aspect-ratio: 16 / 9; }
.story__art--tall { aspect-ratio: 4 / 3; }
.story__art--side1 { background: linear-gradient(135deg, #F18A00, #5C3A21); font-size: 3rem; }
.story__art--side2 { background: linear-gradient(135deg, #5C3A21, #2A1810); font-size: 3rem; }
.story__art--side3 { background: linear-gradient(135deg, #3D2A6B, #1A0F2A); font-size: 3rem; }
.story__art--n1 { background: linear-gradient(135deg, #FFB347, #F18A00, #A24E00); }
.story__art--n2 { background: linear-gradient(135deg, #C99526, #7A4000); }
.story__art--n3 { background: linear-gradient(135deg, #F5C04D, #C99526); color: #1A0F08; }
.story__art--n4 { background: linear-gradient(135deg, #D67500, #5C3A21); }
.story__art--n5 { background: linear-gradient(135deg, #3D2A6B, #1A0F2A); }
.story__art--n6 { background: linear-gradient(135deg, #9B5B2A, #5C3A21); }
.story__media:hover .story__art { transform: scale(1.05); }

.story__body { display: flex; flex-direction: column; gap: 10px; }
.story__meta {
  display: inline-flex; flex-wrap: wrap; gap: 10px; align-items: center;
  font-size: 0.78rem; color: var(--ink-500);
}
.story__meta time { font-variant-numeric: tabular-nums; }
.story__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  line-height: 1.1;
  color: var(--ink-900);
  margin: 0;
}
.story__title a { color: inherit; }
.story__title a:hover { color: var(--brand-700); }
.story__dek { color: var(--ink-600); margin: 0; font-size: 1.02rem; }

.story__byline {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.86rem; color: var(--ink-600);
  margin-top: 4px;
}
.story__byline strong { color: var(--ink-900); }
.story__byline-sep { color: var(--ink-300); }

.story--side h3 {
  font-size: 1.15rem; font-weight: 700;
  line-height: 1.22; color: var(--ink-900); margin: 0;
}
.story--side h3 a { color: inherit; }
.story--side h3 a:hover { color: var(--brand-700); }
.story--side p { margin: 0; color: var(--ink-600); font-size: 0.93rem; }
.story--side .story__media { max-width: 100%; }
.story--side .story__art { aspect-ratio: 16 / 9; }
.story--side { flex-direction: row; gap: 14px; }
.story--side .story__media { flex: 0 0 35%; align-self: flex-start; }
.story--side .story__body { flex: 1; }

.story--row {
  flex-direction: row; gap: 16px;
}
.story--row .story__media { flex: 0 0 38%; max-width: 220px; }
.story--row .story__art { aspect-ratio: 4 / 3; font-size: 2.5rem; }
.story--row h3 {
  font-family: var(--font-display);
  font-size: 1.25rem; font-weight: 700; line-height: 1.22;
  margin: 0;
}
.story--row h3 a { color: var(--ink-900); }
.story--row h3 a:hover { color: var(--brand-700); }
.story--row p { color: var(--ink-600); font-size: 0.93rem; margin: 0; }

.story--feature .story__media { aspect-ratio: 16/10; }
.story--feature h3 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.4vw, 1.9rem);
  line-height: 1.15;
}
.story--feature h3 a { color: var(--ink-900); }
.story--feature h3 a:hover { color: var(--brand-700); }

.story--feature-wide {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(20px, 3vw, 40px);
  align-items: center;
  padding-bottom: 28px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--rule);
}
.story--feature-wide h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  font-weight: 700;
  line-height: 1.1;
}
.story--feature-wide h2 a { color: var(--ink-900); }
.story--feature-wide h2 a:hover { color: var(--brand-700); }
.story--feature-wide p { color: var(--ink-600); font-size: 1.02rem; }

/* =========================================================
   Avatars
   ========================================================= */
.avatar {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--secondary-500, #5C3A21), var(--ink-900));
  color: #FFF6E5;
  font-size: 0.7rem; font-weight: 700;
  font-family: var(--font-body);
  flex-shrink: 0;
}
.avatar--brand { background: linear-gradient(135deg, var(--brand-500), var(--brand-700)); }
.avatar--lg { width: 44px; height: 44px; font-size: 0.86rem; }
.avatar--xl { width: 64px; height: 64px; font-size: 1.1rem; }

/* =========================================================
   Rail (Mais lidas)
   ========================================================= */
.rail {
  padding: 36px 0;
  background: var(--surface);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.rail__head {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px; margin-bottom: 18px;
}
.rail__title {
  font-family: var(--font-display);
  font-size: 1.4rem; font-weight: 700;
  display: inline-flex; align-items: center; gap: 10px;
  margin: 0;
}
.rail__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  background: var(--brand-50); color: var(--brand-700);
  border-radius: var(--r-md);
}
.rail__list {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px;
  counter-reset: rail;
}
.rail__list--vertical { display: flex; flex-direction: column; gap: 14px; }
.rail__list li { display: flex; align-items: flex-start; gap: 12px; }
.rail__num {
  font-family: var(--font-display);
  font-size: 2.4rem; font-weight: 800;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--brand-500);
  flex-shrink: 0;
  letter-spacing: -0.04em;
}
.rail__list a h3, .rail__list a h4 {
  font-family: var(--font-display);
  font-size: 0.98rem; font-weight: 600;
  line-height: 1.25; margin: 4px 0 4px;
  color: var(--ink-900);
}
.rail__list a:hover h3, .rail__list a:hover h4 { color: var(--brand-700); }
.rail__list small { color: var(--ink-500); font-size: 0.78rem; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 600; font-size: 0.88rem;
  color: var(--brand-700);
}
.link-arrow:hover { gap: 12px; color: var(--brand-800); }
.link-arrow span { transition: transform var(--t-fast) var(--ease-out); }

/* =========================================================
   Layout (main + aside)
   ========================================================= */
.layout { padding: clamp(36px, 5vw, 56px) 0; }
.layout__inner {
  display: grid;
  grid-template-columns: 1fr var(--aside-width);
  gap: clamp(24px, 3.5vw, 56px);
  align-items: start;
}
.layout__main { min-width: 0; display: flex; flex-direction: column; gap: 56px; }
.layout__aside { display: flex; flex-direction: column; gap: 24px; position: sticky; top: 130px; align-self: start; max-height: calc(100vh - 140px); overflow-y: auto; padding-right: 4px; scrollbar-width: thin; }
.layout__aside::-webkit-scrollbar { width: 4px; }
.layout__aside::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

/* =========================================================
   Section block
   ========================================================= */
.block { padding-bottom: 8px; }
.block__head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  margin-bottom: 22px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--rule);
}
.block__title {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink-900);
  margin: 0;
}
.block__bar {
  display: inline-block; width: 6px; height: 1.3em;
  border-radius: 2px;
}
.cat-bar--noticias   { background: var(--cat-noticias); }
.cat-bar--refletindo { background: var(--cat-refletindo); }
.cat-bar--oracoes    { background: var(--cat-oracoes); }
.cat-bar--musica     { background: var(--cat-musica); }
.cat-bar--fotos      { background: var(--cat-fotos); }
.cat-bar--papa       { background: var(--cat-papa); }

/* =========================================================
   News grid (notícias section)
   ========================================================= */
.news-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(20px, 2.5vw, 32px);
  grid-template-areas:
    "feature row1"
    "feature row2"
    "row3 row4";
}
.news-grid .story--feature { grid-area: feature; }
.news-grid .story--row:nth-of-type(2) { grid-area: row1; }
.news-grid .story--row:nth-of-type(3) { grid-area: row2; }
.news-grid .story--row:nth-of-type(4) { grid-area: row3; }
.news-grid .story--row:nth-of-type(5) { grid-area: row4; }

/* =========================================================
   Refletindo
   ========================================================= */
.refl-grid {
  display: grid; gap: 24px;
  grid-template-columns: 1.4fr 1fr;
  grid-template-rows: auto auto;
}
.refl { display: flex; flex-direction: column; gap: 12px; }
.refl--feature { grid-row: span 2; }
.refl__media { display: block; border-radius: var(--r-lg); overflow: hidden; }
.refl__art { aspect-ratio: 3 / 2; }
.refl__art svg { width: 100%; height: 100%; display: block; }
.refl__body h3 {
  font-family: var(--font-display);
  font-size: 1.3rem; font-weight: 700;
  line-height: 1.2; margin: 8px 0;
}
.refl__body h3 a { color: var(--ink-900); }
.refl__body h3 a:hover { color: var(--brand-700); }
.refl__body p { color: var(--ink-600); margin: 0 0 12px; font-size: 0.95rem; }
.refl--feature .refl__body h3 { font-size: 1.7rem; }
.refl small { color: var(--ink-500); display: block; font-size: 0.8rem; }
.refl__author { display: flex; align-items: center; gap: 10px; padding-top: 10px; border-top: 1px solid var(--rule); margin-top: 4px; }
.refl__author small { color: var(--ink-600); display: block; line-height: 1.4; }

/* =========================================================
   Prayer feature
   ========================================================= */
.prayer-feature {
  background: linear-gradient(135deg, var(--brand-50), var(--bg-2));
  border: 1px solid var(--border);
  border-radius: var(--r-2xl);
  padding: clamp(24px, 3vw, 36px);
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}
.prayer-feature::before {
  content: "❝";
  position: absolute; top: 8px; right: 28px;
  font-family: var(--font-display);
  font-size: 8rem; color: var(--brand-300);
  opacity: 0.5; line-height: 1;
}
.prayer-feature blockquote { margin: 0 0 18px; position: relative; z-index: 1; }
.prayer-feature__label {
  display: inline-block;
  font-size: 0.74rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--cat-oracoes);
  margin-bottom: 10px;
}
.prayer-feature blockquote p {
  font-family: var(--font-display);
  font-style: italic; font-weight: 500;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  line-height: 1.45; color: var(--ink-800);
  margin: 0 0 8px;
  max-width: 60ch;
}
.prayer-feature footer {
  font-size: 0.88rem; color: var(--ink-600); font-weight: 600;
}
.prayer-feature__actions { display: inline-flex; flex-wrap: wrap; gap: 8px; }

.prayer-list {
  list-style: none; padding: 0; margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 10px;
}
.prayer-list a {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  color: var(--ink-800);
  font-size: 0.92rem;
  transition: border-color var(--t-fast) var(--ease-out), background var(--t-fast) var(--ease-out), transform var(--t-fast) var(--ease-out);
}
.prayer-list a:hover { border-color: var(--brand-300); background: var(--surface-2); color: var(--ink-900); transform: translateX(2px); }
.prayer-list__chip {
  width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--cat-oracoes) 12%, transparent);
  border-radius: var(--r-sm);
  flex-shrink: 0;
}
.prayer-list a span:nth-of-type(2) { flex: 1; line-height: 1.3; }
.prayer-list time { color: var(--ink-500); font-size: 0.78rem; flex-shrink: 0; }

/* =========================================================
   Music grid
   ========================================================= */
.music-grid {
  display: grid; gap: 20px;
  grid-template-columns: 1.4fr 1fr 1fr;
}
.music-card { display: flex; flex-direction: column; gap: 12px; }
.music-card__media { display: block; position: relative; border-radius: var(--r-lg); overflow: hidden; }
.music-card__art {
  aspect-ratio: 4 / 3;
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem;
}
.music-card__art--1 { background: linear-gradient(135deg, #7A2E2E, #2A1810); }
.music-card__art--2 { background: linear-gradient(135deg, #5C3A21, #3D2A6B); }
.music-card__art--3 { background: linear-gradient(135deg, #C99526, #7A4000); }
.music-card__play {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 56px; height: 56px;
  background: rgba(255,255,255,0.95); color: var(--ink-900);
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.2rem; padding-left: 4px;
  box-shadow: var(--shadow-md);
  transition: transform var(--t-fast) var(--ease-out), background var(--t-fast) var(--ease-out);
}
.music-card__media:hover .music-card__play { transform: translate(-50%, -50%) scale(1.1); background: var(--accent-500); }
.music-card__body h3 { font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; line-height: 1.22; margin: 8px 0 4px; }
.music-card__body h3 a { color: var(--ink-900); }
.music-card__body h3 a:hover { color: var(--brand-700); }
.music-card__body p { margin: 0; color: var(--ink-600); font-size: 0.92rem; }
.music-card--feature .music-card__body h3 { font-size: 1.4rem; }

/* =========================================================
   Photo grid
   ========================================================= */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: 200px 200px;
  gap: 10px;
}
.photo {
  display: block;
  border-radius: var(--r-lg); overflow: hidden;
  position: relative;
  isolation: isolate;
}
.photo--lg { grid-column: span 2; grid-row: span 2; }
.photo__art {
  width: 100%; height: 100%;
  background-size: cover; background-position: center;
  transition: transform 600ms var(--ease-out);
}
.photo__art--1 { background: linear-gradient(135deg, #F18A00, #2A1810); }
.photo__art--2 { background: linear-gradient(135deg, #5C3A21, #1A0F08); }
.photo__art--3 { background: linear-gradient(135deg, #C99526, #7A4000); }
.photo__art--4 { background: linear-gradient(135deg, #3D2A6B, #1A0F2A); }
.photo__art--5 { background: linear-gradient(135deg, #FFD389, #F18A00); }
.photo:hover .photo__art { transform: scale(1.08); }
.photo__caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 16px;
  color: #FFF;
  font-size: 0.88rem;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.7));
  pointer-events: none;
}
.photo__caption strong { display: block; font-size: 1.05rem; font-family: var(--font-display); margin-bottom: 2px; }

/* =========================================================
   Sidebar widgets
   ========================================================= */
.widget {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 22px;
}
.widget__title {
  font-family: var(--font-display);
  font-size: 1rem; font-weight: 700;
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--rule);
  color: var(--ink-900);
}
.widget p { margin: 0 0 14px; font-size: 0.92rem; color: var(--ink-600); }
.widget small { font-size: 0.78rem; color: var(--ink-500); display: block; margin-top: 8px; }

.widget--cta {
  background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
  color: #FFF6E5;
  border-color: var(--brand-500);
}
.widget--cta .widget__title { color: #FFF; border-bottom-color: rgba(255,255,255,0.2); }
.widget--cta p { color: rgba(255, 246, 229, 0.9); }
.widget--cta small { color: rgba(255, 246, 229, 0.65); }
.widget__form input {
  width: 100%;
  padding: 12px 14px;
  background: rgba(255, 246, 229, 0.12);
  border: 1px solid rgba(255, 246, 229, 0.20);
  border-radius: var(--r-md);
  color: #FFF;
  margin-bottom: 8px;
  outline: 0;
}
.widget__form input::placeholder { color: rgba(255, 246, 229, 0.55); }
.widget__form input:focus { background: rgba(255, 246, 229, 0.18); border-color: var(--accent-500); }
.widget--cta .btn--primary { background: var(--accent-500); color: var(--ink-900); }
.widget--cta .btn--primary:hover { background: var(--accent-700); color: var(--ink-900); }

.liturgy__refs { font-size: 0.9rem; color: var(--ink-700); margin: 0 0 6px; }
.liturgy__refs strong { color: var(--ink-900); }

.saint { display: flex; gap: 14px; align-items: flex-start; }
.saint__avatar {
  width: 56px; height: 56px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--accent-500), var(--brand-600));
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: #FFF; font-family: var(--font-display); font-weight: 700; font-size: 0.85rem;
}
.saint h4 { font-size: 1.02rem; font-weight: 700; margin: 0 0 4px; color: var(--ink-900); }
.saint p { margin: 0 0 6px; font-size: 0.88rem; color: var(--ink-600); }
.saint a { font-size: 0.88rem; font-weight: 600; color: var(--brand-700); }

.tag-cloud { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-cloud a {
  font-size: 0.82rem;
  padding: 5px 10px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  color: var(--ink-700);
  transition: background var(--t-fast) var(--ease-out), border-color var(--t-fast) var(--ease-out), color var(--t-fast) var(--ease-out);
}
.tag-cloud a:hover { background: var(--brand-50); border-color: var(--brand-300); color: var(--brand-700); }

.widget--ad { text-align: center; background: var(--bg-2); }
.widget__ad-label { display: block; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-500); margin-bottom: 8px; }
.widget__ad { display: flex; flex-direction: column; gap: 8px; align-items: center; padding: 8px 0; }
.widget__ad > span { font-size: 2rem; }
.widget__ad strong { font-family: var(--font-display); font-size: 1.05rem; color: var(--ink-900); }
.widget__ad p { font-size: 0.86rem; color: var(--ink-600); margin: 0 0 4px; }

.aside-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.aside-list a { display: block; }
.aside-list h4 { font-family: var(--font-display); font-size: 0.94rem; font-weight: 600; line-height: 1.25; margin: 4px 0 0; color: var(--ink-900); }
.aside-list a:hover h4 { color: var(--brand-700); }

/* =========================================================
   Strip CTA
   ========================================================= */
.strip-cta {
  padding: clamp(48px, 7vw, 80px) 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(245, 192, 77, 0.25), transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(241, 138, 0, 0.25), transparent 50%),
    linear-gradient(135deg, #2A1810, #5C3A21);
  color: #FFF6E5;
}
.strip-cta__inner {
  display: grid; grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: 32px;
}
.strip-cta .display { color: #FFF6E5; margin-bottom: 6px; }
.strip-cta p { color: rgba(255, 247, 232, 0.84); margin: 0; font-size: 1.02rem; }
.strip-cta__form { display: flex; gap: 8px; flex-wrap: wrap; }
.strip-cta__form input {
  flex: 1; min-width: 200px;
  padding: 14px 18px;
  background: rgba(255,255,255,0.95);
  border: 0; border-radius: var(--r-md);
  color: var(--ink-900);
  outline: 0; font-size: 0.95rem;
}
.strip-cta__form input::placeholder { color: var(--ink-500); }

/* =========================================================
   Category page hero
   ========================================================= */
.cat-hero {
  padding: clamp(48px, 7vw, 84px) 0;
  background:
    radial-gradient(circle at 15% 30%, rgba(245, 192, 77, 0.20), transparent 50%),
    radial-gradient(circle at 85% 75%, rgba(241, 138, 0, 0.25), transparent 50%),
    linear-gradient(135deg, var(--ink-900), var(--secondary-700, #3D2516));
  color: #FFF6E5;
  position: relative;
}
.cat-hero .display { color: #FFF6E5; }
.cat-hero__meta {
  display: inline-flex; flex-wrap: wrap; gap: 24px;
  margin-top: 16px;
  font-size: 0.92rem; color: rgba(255, 247, 232, 0.78);
}
.cat-hero__meta strong { color: #FFF6E5; }

.breadcrumb {
  display: inline-flex; flex-wrap: wrap; gap: 8px;
  font-size: 0.82rem; color: rgba(255, 246, 229, 0.7);
  margin-bottom: 12px;
}
.breadcrumb a { color: rgba(255, 246, 229, 0.9); }
.breadcrumb a:hover { color: var(--accent-500); }
.breadcrumb span[aria-hidden] { color: rgba(255, 246, 229, 0.4); }

.cat-hero--noticias { background: radial-gradient(circle at 70% 30%, color-mix(in srgb, var(--cat-noticias) 40%, transparent), transparent 50%), linear-gradient(135deg, var(--ink-900), #3D2516); }

/* =========================================================
   Filter bar
   ========================================================= */
.filterbar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 60px; z-index: 50;
}
.filterbar__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 12px 16px;
  flex-wrap: wrap;
}
.filterbar__chips {
  display: inline-flex; gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}
.filterbar__chips::-webkit-scrollbar { display: none; }
.chip-btn {
  padding: 7px 14px;
  background: var(--bg-2);
  border-radius: var(--r-pill);
  font-size: 0.84rem; font-weight: 600;
  color: var(--ink-700);
  border: 1px solid var(--border);
  white-space: nowrap;
  transition: background var(--t-fast) var(--ease-out), color var(--t-fast) var(--ease-out), border-color var(--t-fast) var(--ease-out);
}
.chip-btn:hover { background: var(--surface); color: var(--ink-900); border-color: var(--border-strong); }
.chip-btn.is-active { background: var(--brand-500); color: #FFF; border-color: var(--brand-500); }

.sort {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.84rem; color: var(--ink-600);
}
.sort select {
  padding: 7px 28px 7px 12px;
  background: var(--surface) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path fill='%23a88b70' d='M0 0l5 6 5-6z'/></svg>") no-repeat right 10px center;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  font-size: 0.86rem;
  color: var(--ink-800);
  appearance: none; -webkit-appearance: none;
  cursor: pointer;
}

/* =========================================================
   Archive grid (category page)
   ========================================================= */
.archive-grid {
  display: grid; gap: clamp(20px, 2.5vw, 32px);
  grid-template-columns: 1fr 1fr;
  padding-bottom: 16px;
}
.archive-grid .story--row {
  padding-bottom: 24px;
  border-bottom: 1px solid var(--rule);
}
.archive-grid .story--row:last-child { border-bottom: 0; }

/* =========================================================
   Pagination
   ========================================================= */
.pagination {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  padding: 32px 0;
  flex-wrap: wrap;
}
.pagination ol {
  list-style: none; padding: 0; margin: 0;
  display: inline-flex; gap: 6px;
}
.pagination a, .pagination span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 36px; height: 36px; padding: 0 10px;
  border-radius: var(--r-md);
  color: var(--ink-800);
  font-weight: 600; font-size: 0.92rem;
  border: 1px solid transparent;
  transition: background var(--t-fast) var(--ease-out), border-color var(--t-fast) var(--ease-out);
}
.pagination a:hover { background: var(--bg-2); border-color: var(--border); }
.pagination a.is-current { background: var(--brand-500); color: #FFF; border-color: var(--brand-500); }
.pagination__btn {
  padding: 0 16px !important; font-weight: 600;
  border: 1px solid var(--border) !important;
}
.pagination__btn[aria-disabled="true"] { opacity: 0.4; pointer-events: none; }

/* =========================================================
   Article page
   ========================================================= */
.reading-progress {
  position: fixed; top: 0; left: 0; right: 0;
  height: 3px; background: transparent;
  z-index: 200; pointer-events: none;
}
.reading-progress span {
  display: block; height: 100%;
  background: linear-gradient(90deg, var(--brand-500), var(--accent-500));
  width: 0; transition: width 80ms linear;
}

.article__head {
  background: var(--surface);
  padding: clamp(32px, 5vw, 56px) 0 0;
  border-bottom: 1px solid var(--rule);
}
.article__head-inner { max-width: 820px; margin: 0 auto; }
.article__head .breadcrumb { color: var(--ink-500); margin-bottom: 16px; }
.article__head .breadcrumb a { color: var(--ink-700); }
.article__head .breadcrumb a:hover { color: var(--brand-700); }
.article__head .breadcrumb span[aria-hidden] { color: var(--ink-400); }

.article__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink-900);
  margin: 14px 0 18px;
  max-width: 22ch;
}
.article__dek {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  line-height: 1.4; color: var(--ink-600);
  margin: 0 0 28px;
  max-width: 60ch;
}

.article__meta {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 18px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  margin-bottom: 0;
  flex-wrap: wrap;
}
.article__author { display: inline-flex; align-items: center; gap: 12px; }
.article__author-name { margin: 0; font-size: 0.92rem; color: var(--ink-700); }
.article__author-name a { color: inherit; }
.article__author-name strong { color: var(--ink-900); }
.article__author-time { margin: 2px 0 0; font-size: 0.82rem; color: var(--ink-500); display: inline-flex; flex-wrap: wrap; gap: 6px; }
.article__share { display: inline-flex; gap: 4px; align-items: center; }
.article__share-label { font-size: 0.84rem; color: var(--ink-500); margin-right: 6px; }

.article__hero-img { margin: 28px 0 0; }
.article__hero-art {
  max-width: var(--container);
  margin: 0 auto;
  border-radius: 0;
  overflow: hidden;
  aspect-ratio: 16 / 7;
}
.article__hero-art svg { width: 100%; height: 100%; display: block; }
.article__hero-img figcaption {
  max-width: 820px; margin: 12px auto 0;
  font-size: 0.84rem; color: var(--ink-500);
  padding: 0 16px;
}

.article__layout {
  display: grid;
  grid-template-columns: 1fr var(--aside-width);
  gap: clamp(24px, 4vw, 64px);
  padding: clamp(40px, 6vw, 64px) 16px clamp(48px, 7vw, 80px);
  max-width: var(--container);
  margin: 0 auto;
  align-items: start;
}

.article__body {
  max-width: 720px;
  font-size: 1.07rem;
  line-height: 1.7;
  color: var(--ink-800);
}
.article__body p { margin: 0 0 18px; }
.article__body h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.4vw, 1.95rem);
  font-weight: 700; line-height: 1.2;
  margin: 36px 0 16px;
  color: var(--ink-900);
}
.article__body h3 {
  font-family: var(--font-display);
  font-size: 1.3rem; font-weight: 700;
  margin: 28px 0 12px;
}
.article__body ul, .article__body ol { padding-left: 24px; margin: 0 0 22px; }
.article__body li { margin-bottom: 8px; }
.article__body a { color: var(--brand-700); border-bottom: 1px solid currentColor; }
.article__body a:hover { color: var(--brand-800); }
.article__body strong { color: var(--ink-900); }

.article__lead {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.55;
  color: var(--ink-800);
  margin: 0 0 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--rule);
}
.article__lead::first-letter {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 4.2rem;
  float: left;
  line-height: 0.85;
  margin: 8px 12px 0 0;
  color: var(--brand-600);
  letter-spacing: -0.02em;
}

.article__pull {
  margin: 36px -20px;
  padding: 24px 28px 24px 36px;
  border-left: 4px solid var(--brand-500);
  background: var(--bg-2);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  font-family: var(--font-display);
}
.article__pull p {
  margin: 0 0 8px;
  font-style: italic; font-size: 1.35rem;
  line-height: 1.4; color: var(--ink-900);
}
.article__pull footer {
  font-size: 0.92rem; font-style: normal;
  color: var(--ink-600); font-weight: 600;
}

.article__foot {
  margin: 40px 0 32px;
  padding: 24px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
}
.article__tags { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.article__tags a {
  font-size: 0.82rem;
  padding: 5px 12px;
  background: var(--bg-2);
  border-radius: var(--r-pill);
  color: var(--ink-700); font-weight: 500;
  border: 1px solid var(--border);
  transition: background var(--t-fast) var(--ease-out), color var(--t-fast) var(--ease-out);
}
.article__tags a:hover { background: var(--brand-50); color: var(--brand-700); border-color: var(--brand-300); }

.author-box {
  display: flex; gap: 18px;
  padding: 24px;
  background: var(--bg-2);
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  margin-bottom: 32px;
}
.author-box h3 { font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; margin: 0 0 6px; }
.author-box p { font-size: 0.93rem; color: var(--ink-600); margin: 0 0 8px; line-height: 1.5; }
.author-box a { font-size: 0.88rem; font-weight: 600; color: var(--brand-700); }

.inline-cta {
  display: grid; grid-template-columns: 1.4fr 1fr;
  gap: 24px; align-items: center;
  padding: 24px 28px;
  background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
  color: #FFF;
  border-radius: var(--r-lg);
  margin-top: 32px;
}
.inline-cta h3 { color: #FFF; font-family: var(--font-display); font-size: 1.3rem; margin: 0 0 6px; }
.inline-cta p { color: rgba(255, 246, 229, 0.92); margin: 0; font-size: 0.95rem; }
.inline-cta__form { display: flex; gap: 8px; flex-wrap: wrap; }
.inline-cta__form input {
  flex: 1; min-width: 180px;
  padding: 12px 16px;
  border: 0; border-radius: var(--r-md);
  background: rgba(255,255,255,0.95);
  color: var(--ink-900);
  outline: 0;
}

/* Article aside */
.article__aside {
  display: flex; flex-direction: column; gap: 24px;
  position: sticky; top: 130px; align-self: start;
  max-height: calc(100vh - 140px); overflow-y: auto;
  scrollbar-width: thin;
}
.toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 22px;
}
.toc__title {
  font-family: var(--font-display);
  font-size: 0.86rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--ink-500);
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--rule);
}
.toc ol { list-style: none; padding: 0; margin: 0; counter-reset: toc; display: flex; flex-direction: column; gap: 8px; }
.toc a {
  display: block;
  padding: 8px 12px 8px 14px;
  font-size: 0.92rem;
  color: var(--ink-700);
  border-left: 2px solid var(--rule);
  transition: border-color var(--t-fast) var(--ease-out), color var(--t-fast) var(--ease-out);
}
.toc a:hover, .toc a.is-active { color: var(--ink-900); border-left-color: var(--brand-500); }

/* Related */
.related { padding: clamp(40px, 5vw, 64px) 0; background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.related .news-grid {
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-areas: none;
}
.related .news-grid .story--row { grid-area: auto; }

/* Comments */
.comments { padding: clamp(40px, 5vw, 64px) 0; }
.comments__inner { max-width: 820px; margin: 0 auto; }
.comments__head h2 {
  font-family: var(--font-display);
  font-size: 1.5rem; font-weight: 700;
  margin: 0 0 20px; color: var(--ink-900);
}
.comments__head h2 span { color: var(--ink-500); font-weight: 500; }

.comment-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 18px;
  margin-bottom: 32px;
}
.comment-form textarea {
  width: 100%;
  border: 0; outline: 0;
  resize: vertical;
  font-family: inherit; font-size: 0.95rem;
  color: var(--ink-900);
  background: transparent;
  padding: 8px 0;
}
.comment-form textarea::placeholder { color: var(--ink-400); }
.comment-form__row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap;
  padding-top: 12px;
  border-top: 1px solid var(--rule);
}
.comment-form__row small { color: var(--ink-500); font-size: 0.82rem; }
.comment-form__row a { color: var(--brand-700); }

.comment-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 22px; }
.comment {
  display: flex; gap: 14px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}
.comment header { display: inline-flex; align-items: baseline; gap: 8px; margin-bottom: 4px; }
.comment header strong { color: var(--ink-900); font-size: 0.95rem; }
.comment header small { color: var(--ink-500); font-size: 0.82rem; }
.comment p { margin: 0 0 10px; color: var(--ink-700); font-size: 0.94rem; line-height: 1.55; }
.comment__actions { display: inline-flex; gap: 12px; }
.comment__actions button {
  font-size: 0.82rem; color: var(--ink-500);
  font-weight: 600;
  padding: 4px 0;
  transition: color var(--t-fast) var(--ease-out);
}
.comment__actions button:hover { color: var(--brand-700); }

/* Floating share bar (mobile) */
.share-bar {
  position: fixed; left: 50%; bottom: 16px;
  transform: translateX(-50%);
  display: none;
  gap: 4px; padding: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  box-shadow: var(--shadow-md);
  z-index: 80;
}
.share-bar__btn {
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; color: var(--ink-700);
  border-radius: 50%;
  transition: background var(--t-fast) var(--ease-out), color var(--t-fast) var(--ease-out);
}
.share-bar__btn:hover { background: var(--bg-2); color: var(--brand-700); }

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  background: var(--ink-900);
  color: rgba(255, 246, 229, 0.78);
  padding: 64px 0 24px;
  margin-top: 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 246, 229, 0.08);
}
.footer-col--brand img {
  background: rgba(255,255,255,0.08);
  padding: 8px 12px; border-radius: var(--r-md);
  margin-bottom: 14px; height: 48px; width: auto;
}
.footer-col--brand p { max-width: 40ch; font-size: 0.92rem; line-height: 1.55; }
.footer-col h4 { color: #FFF6E5; font-size: 0.85rem; font-weight: 700; margin: 0 0 14px; text-transform: uppercase; letter-spacing: 0.06em; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.footer-col a {
  color: rgba(255, 246, 229, 0.75); font-size: 0.92rem;
  transition: color var(--t-fast) var(--ease-out);
}
.footer-col a:hover { color: var(--accent-500); }

.social { display: inline-flex; gap: 6px; margin-top: 14px; }
.social a {
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--r-md);
  background: rgba(255, 246, 229, 0.08);
  color: rgba(255, 246, 229, 0.9);
  transition: background var(--t-fast) var(--ease-out), color var(--t-fast) var(--ease-out), transform var(--t-fast) var(--ease-out);
}
.social a:hover { background: var(--brand-500); color: #FFF; transform: translateY(-2px); }

.footer-bar {
  padding-top: 22px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 0.82rem; color: rgba(255, 246, 229, 0.5);
}

/* =========================================================
   FAB + Toast
   ========================================================= */
.fab {
  position: fixed; right: 22px; bottom: 22px;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--brand-500); color: #FFF;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md);
  z-index: 90;
  opacity: 0; transform: translateY(16px);
  transition: opacity var(--t-med) var(--ease-out), transform var(--t-med) var(--ease-out);
}
.fab.is-visible { opacity: 1; transform: translateY(0); }
.fab:hover { background: var(--brand-600); transform: translateY(-4px); }

.toast {
  position: fixed; bottom: 24px; left: 50%;
  transform: translate(-50%, 30px);
  background: var(--ink-900); color: #FFF6E5;
  padding: 12px 20px;
  border-radius: var(--r-pill);
  display: inline-flex; align-items: center; gap: 10px;
  box-shadow: var(--shadow-lg);
  z-index: 200;
  opacity: 0;
  transition: opacity var(--t-med) var(--ease-out), transform var(--t-med) var(--ease-out);
  font-size: 0.9rem; font-weight: 500;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.toast svg { color: var(--accent-500); }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1100px) {
  .layout__inner { grid-template-columns: 1fr; }
  .layout__aside { position: static; max-height: none; overflow: visible; }
  .article__layout { grid-template-columns: 1fr; }
  .article__aside { position: static; max-height: none; overflow: visible; flex-direction: row; flex-wrap: wrap; }
  .article__aside .widget, .article__aside .toc { flex: 1 1 260px; }
}

@media (max-width: 900px) {
  .site-header__inner { grid-template-columns: auto auto; }
  .search-form { display: none; }
  .hero-grid__inner { grid-template-columns: 1fr; }
  .hero-grid__side { border-left: 0; padding-left: 0; border-top: 1px solid var(--rule); padding-top: 20px; }
  .news-grid { grid-template-columns: 1fr; grid-template-areas: none; }
  .news-grid .story--feature, .news-grid .story--row { grid-area: auto; }
  .refl-grid { grid-template-columns: 1fr; }
  .refl--feature { grid-row: auto; }
  .music-grid { grid-template-columns: 1fr 1fr; }
  .music-card--feature { grid-column: span 2; }
  .archive-grid { grid-template-columns: 1fr; }
  .story--feature-wide { grid-template-columns: 1fr; }
  .photo-grid { grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(3, 180px); }
  .photo--lg { grid-column: span 2; grid-row: span 1; }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-col--brand { grid-column: span 3; }
  .rail__list { grid-template-columns: 1fr 1fr; }
  .strip-cta__inner { grid-template-columns: 1fr; }
  .menu-toggle { display: inline-flex; }
  .filterbar { top: 0; }
  .share-bar { display: inline-flex; }
}

@media (max-width: 640px) {
  body { font-size: 15px; }
  .utility-bar__inner { font-size: 0.74rem; }
  .utility-bar__right { display: none; }
  .site-header__inner { padding: 10px 16px; }
  .brand__logo { height: 40px; }
  .ticker__inner { padding: 8px 12px; gap: 10px; }
  .ticker__label { font-size: 0.66rem; padding: 4px 8px; }
  .story--side { flex-direction: column; }
  .story--side .story__media { flex: 0 0 auto; width: 100%; }
  .story--row { flex-direction: column; }
  .story--row .story__media { flex: 0 0 auto; max-width: 100%; width: 100%; }
  .rail__list { grid-template-columns: 1fr; }
  .music-grid { grid-template-columns: 1fr; }
  .music-card--feature { grid-column: auto; }
  .photo-grid { grid-template-columns: 1fr; grid-template-rows: repeat(5, 180px); }
  .photo--lg { grid-row: span 1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-col--brand { grid-column: span 2; }
  .footer-bar { justify-content: center; text-align: center; }
  .article__title { font-size: clamp(1.7rem, 6vw, 2.4rem); }
  .article__pull { margin: 28px 0; }
  .inline-cta { grid-template-columns: 1fr; }
  .filterbar__inner { flex-direction: column; align-items: stretch; }
}

@media print {
  .utility-bar, .site-header, .ticker, .layout__aside, .related, .comments, .fab, .toast, .share-bar, .strip-cta, .site-footer, .reading-progress { display: none !important; }
  .article__body { max-width: none; }
}
