/* =========================================================================
   Digital Federalism — Editorial theme (Infobae/Ámbito inspired).
   News-portal aesthetic: condensed sans headlines, dense layouts, low
   whitespace, chip-based category system with per-page accent color.
   ========================================================================= */

/* ---- 1. Design tokens ---------------------------------------------------- */
:root {
  --bg: #ffffff;
  --bg-alt: #f5f5f5;
  --bg-dark: #111111;
  --fg: #111111;
  --fg-body: #1f1f1f;
  --fg-muted: #666666;
  --fg-subtle: #999999;
  --fg-inverse: #ffffff;
  --border: #e5e5e5;
  --border-strong: #cccccc;

  /* Brand accent — overridden per site by the CMS (mkdocs.yml extra). */
  --accent: #d32f2f;
  --accent-hover: #b71c1c;

  /* Category color — overridden per page via inline style from frontmatter. */
  --category-color: var(--accent);

  --container: 1280px;
  --header-height: 96px;

  --font-headline: 'Roboto Condensed', 'Arial Narrow', system-ui, sans-serif;
  --font-body: 'Inter', -apple-system, 'Segoe UI', sans-serif;

  --tr: 160ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- 2. Reset & base ---------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--fg-body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent-hover); }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-headline); line-height: 1.15; font-weight: 700; color: var(--fg); }
ul, ol { list-style: none; }
button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; }
time { font-variant-numeric: tabular-nums; }

/* ---- 3. Header ---------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.02);
}
.site-header__container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.site-header__topbar {
  background: var(--bg-dark);
  color: var(--fg-inverse);
  border-bottom: 3px solid var(--accent);
}
.site-header__topbar .site-header__container { min-height: 56px; }
.site-header__brand { display: flex; align-items: center; gap: 10px; }
.site-header__brand:hover { color: var(--fg-inverse); }
.site-header__brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 2px;
  background: var(--accent);
  color: var(--fg-inverse);
  display: grid;
  place-items: center;
  font-family: var(--font-headline);
  font-weight: 900;
  font-size: 15px;
  letter-spacing: -0.02em;
}
.site-header__brand-name {
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--fg-inverse);
}
.site-header__meta { display: flex; align-items: center; gap: 16px; font-size: 13px; }
.site-header__date { color: var(--fg-subtle); }
.site-header__lang {
  display: flex;
  gap: 4px;
  padding: 2px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 2px;
}
.site-header__lang-item {
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.55);
  border-radius: 2px;
  transition: color var(--tr), background var(--tr);
}
.site-header__lang-item--active { color: var(--fg-inverse); background: rgba(255, 255, 255, 0.15); }
.site-header__search-btn {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  color: var(--fg-inverse); opacity: 0.7;
  border-radius: 2px;
  transition: opacity var(--tr), background var(--tr);
}
.site-header__search-btn:hover { opacity: 1; background: rgba(255,255,255,0.1); }

.site-header__nav .site-header__container { min-height: 44px; padding-top: 0; padding-bottom: 0; }
.site-nav {
  display: flex;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
}
.site-nav::-webkit-scrollbar { display: none; }
.site-nav__item {
  display: flex;
  align-items: center;
  padding: 12px 14px;
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--fg);
  border-bottom: 3px solid transparent;
  white-space: nowrap;
  transition: border-color var(--tr), color var(--tr);
}
.site-nav__item:hover {
  color: var(--nav-item-color, var(--accent));
  border-bottom-color: var(--nav-item-color, var(--accent));
}
.site-nav__item--emphasis { color: var(--accent); }

/* ---- 4. Layout container ------------------------------------------------ */
.site-main { max-width: var(--container); margin: 0 auto; padding: 24px 20px 64px; }

/* ---- 5. Home ------------------------------------------------------------ */
.home { display: flex; flex-direction: column; gap: 40px; }

/* Hero */
.hero { display: grid; grid-template-columns: 1.4fr 1fr; gap: 0; background: var(--bg-dark); color: var(--fg-inverse); overflow: hidden; }
/* Fallback when there's no cover image: single column, larger padding, centered content */
.hero:not(:has(.hero__cover)) { grid-template-columns: 1fr; min-height: 320px; }
.hero:not(:has(.hero__cover)) .hero__content { padding: 60px 48px; max-width: 900px; margin: 0 auto; }
.hero__cover { display: block; overflow: hidden; aspect-ratio: 16 / 10; }
.hero__cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 400ms var(--tr); }
.hero:hover .hero__cover img { transform: scale(1.02); }
.hero__content { padding: 32px 36px; display: flex; flex-direction: column; justify-content: center; gap: 16px; }
.hero__category {
  display: inline-block;
  align-self: flex-start;
  padding: 4px 10px;
  background: var(--accent);
  color: var(--fg-inverse);
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.hero__title {
  font-family: var(--font-headline);
  font-weight: 900;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.05;
  letter-spacing: -0.015em;
}
.hero__title a { color: var(--fg-inverse); }
.hero__title a:hover { color: rgba(255, 255, 255, 0.8); }
.hero__summary { font-size: 16px; line-height: 1.5; color: rgba(255, 255, 255, 0.75); }

/* Featured grid */
.home__grid-inner { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { display: flex; flex-direction: column; background: var(--bg); border-top: 3px solid var(--card-color, var(--border-strong)); padding-top: 12px; }
.card__cover { display: block; overflow: hidden; aspect-ratio: 16 / 9; margin-bottom: 12px; background: var(--bg-alt); }
.card__cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 300ms var(--tr); }
.card:hover .card__cover img { transform: scale(1.03); }
.card__body { display: flex; flex-direction: column; gap: 6px; }
.card__category {
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--card-color, var(--accent));
}
.card__title {
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.card__title a:hover { color: var(--card-color, var(--accent)); }
.card__summary { font-size: 14px; line-height: 1.5; color: var(--fg-muted); margin-top: 4px; }
.card__meta { font-size: 12px; color: var(--fg-subtle); margin-top: 6px; }
.card__reading { margin-left: 4px; }
.card--hero .card__title { font-size: 28px; }
.card--compact .card__title { font-size: 16px; }

/* Split latest + sidebar */
.home__split { display: grid; grid-template-columns: 1fr 320px; gap: 40px; align-items: start; }
.home__sidebar { position: sticky; top: calc(var(--header-height) + 20px); }

.section-header {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding-bottom: 10px;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--fg);
}
.section-header__title { font-family: var(--font-headline); font-weight: 900; font-size: 20px; text-transform: uppercase; letter-spacing: 0.02em; }
.section-header__accent { flex: 1; height: 2px; background: var(--accent); align-self: center; }
.section-header--sm .section-header__title { font-size: 15px; }
.section-header--dark { background: var(--bg-dark); color: var(--fg-inverse); padding: 14px 18px; border-bottom: 0; }
.section-header--dark .section-header__title { color: var(--fg-inverse); }
.section-header__badge {
  display: inline-block;
  padding: 4px 8px;
  background: var(--accent);
  color: var(--fg-inverse);
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.1em;
}

/* Latest list */
.latest-list { display: flex; flex-direction: column; }
.latest-list__item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.latest-list__item:last-child { border-bottom: 0; }
.latest-list__cover { display: block; overflow: hidden; aspect-ratio: 4 / 3; background: var(--bg-alt); }
.latest-list__cover img { width: 100%; height: 100%; object-fit: cover; }
.latest-list__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.latest-list__category {
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
}
.latest-list__title {
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 17px;
  line-height: 1.2;
}
.latest-list__title a:hover { color: var(--accent); }
.latest-list__meta { font-size: 11.5px; color: var(--fg-subtle); }

/* Ranked list (sidebar) */
.sidebar-block { background: var(--bg-alt); padding: 20px; border-top: 3px solid var(--accent); }
.ranked-list { display: flex; flex-direction: column; }
.ranked-list__item {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.ranked-list__item:last-child { border-bottom: 0; }
.ranked-list__num {
  font-family: var(--font-headline);
  font-weight: 900;
  font-size: 24px;
  color: var(--accent);
  line-height: 1;
}
.ranked-list__title {
  font-family: var(--font-headline);
  font-weight: 600;
  font-size: 14px;
  line-height: 1.25;
}
.ranked-list__title:hover { color: var(--accent); }

/* Investigations block */
.home__investigations { background: #f9f6f0; padding: 32px; border: 1px solid var(--border-strong); }
.inv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; margin-top: 20px; }
.inv-card {
  display: flex; flex-direction: column; gap: 10px;
  padding: 20px;
  background: var(--bg);
  border-left: 4px solid var(--accent);
  transition: border-color var(--tr), transform var(--tr);
}
.inv-card:hover { border-left-color: var(--accent-hover); transform: translateY(-2px); }
.inv-card__category { font-family: var(--font-headline); font-weight: 700; font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--fg-muted); }
.inv-card__title { font-family: var(--font-headline); font-weight: 700; font-size: 18px; line-height: 1.2; }
.inv-card__time { font-size: 11px; color: var(--fg-subtle); margin-top: auto; }

/* ---- 6. Article --------------------------------------------------------- */
.article { display: flex; flex-direction: column; gap: 24px; }
.article__header-inner { max-width: 760px; margin: 0 auto; padding: 24px 0 8px; text-align: left; }
.article__category {
  display: inline-block;
  padding: 5px 10px;
  background: var(--category-color, var(--accent));
  color: var(--fg-inverse);
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
}
.article__title {
  font-family: var(--font-headline);
  font-weight: 900;
  font-size: clamp(32px, 4.5vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--fg);
}
.article__subtitle { font-family: var(--font-headline); font-weight: 400; font-size: 22px; line-height: 1.25; color: var(--fg-muted); margin-top: 12px; }
.article__lede { font-size: 19px; line-height: 1.5; color: var(--fg-body); margin-top: 20px; padding-left: 16px; border-left: 4px solid var(--category-color, var(--accent)); }
.article__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  margin-top: 24px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  color: var(--fg-muted);
}
.article__author-label { color: var(--fg-subtle); margin-right: 4px; }
.article__author-name { color: var(--fg); font-weight: 600; }
.article__share { margin-left: auto; display: flex; gap: 6px; }
.article__share a, .article__share-copy {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border: 1px solid var(--border);
  color: var(--fg-muted);
  border-radius: 2px;
  transition: color var(--tr), border-color var(--tr);
}
.article__share a:hover, .article__share-copy:hover { color: var(--accent); border-color: var(--accent); }

.article__cover {
  max-width: 900px;
  margin: 8px auto 24px;
}
.article__cover img {
  width: 100%;
  max-height: 540px;
  height: auto;
  object-fit: cover;
  display: block;
}
.article__cover-caption { font-size: 12.5px; color: var(--fg-muted); padding: 8px 0; text-align: center; }

.article__body { max-width: 720px; margin: 0 auto; }
.article__tags { max-width: 720px; margin: 40px auto 0; padding: 20px 0; border-top: 1px solid var(--border); display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.article__tags-label { font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--fg-muted); font-weight: 600; }
.tag-list { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-chip {
  display: inline-block;
  padding: 4px 10px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  font-size: 12px;
  color: var(--fg-muted);
  transition: border-color var(--tr), color var(--tr);
}
.tag-chip:hover { border-color: var(--accent); color: var(--accent); }

/* ---- 7. Prose (article body typography) --------------------------------- */
.prose { font-size: 17.5px; line-height: 1.75; color: var(--fg-body); }
.prose > * + * { margin-top: 1.4em; }
.prose h2 { font-size: 26px; margin-top: 2em; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.prose h3 { font-size: 21px; margin-top: 1.8em; }
.prose h4 { font-size: 18px; margin-top: 1.6em; }
.prose p { }
.prose a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose a:hover { color: var(--accent-hover); }
.prose strong { color: var(--fg); font-weight: 700; }
.prose em { color: var(--fg); }
.prose ul, .prose ol { padding-left: 24px; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin: 0.4em 0; }
.prose blockquote {
  padding: 12px 20px;
  border-left: 4px solid var(--category-color, var(--accent));
  background: var(--bg-alt);
  color: var(--fg);
  font-style: italic;
}
.prose code { font-family: 'SF Mono', Menlo, monospace; font-size: 0.9em; padding: 2px 5px; background: var(--bg-alt); border-radius: 3px; }
.prose pre { background: var(--bg-dark); color: var(--fg-inverse); padding: 16px 20px; border-radius: 4px; overflow-x: auto; }
.prose pre code { background: transparent; padding: 0; color: inherit; }
.prose hr { border: 0; height: 1px; background: var(--border); margin: 2em 0; }
.prose img { margin: 1em 0; }
.prose figure { margin: 1.5em 0; }
.prose figcaption { font-size: 13px; color: var(--fg-muted); text-align: center; padding-top: 6px; }
.prose table { border-collapse: collapse; width: 100%; margin: 1.5em 0; font-size: 15px; }
.prose th, .prose td { border-bottom: 1px solid var(--border); padding: 10px 12px; text-align: left; }
.prose th { background: var(--bg-alt); font-weight: 700; }

/* ---- 8. Investigation --------------------------------------------------- */
.investigation__header { background: var(--bg-dark); color: var(--fg-inverse); padding: 40px 0; margin: -24px -20px 32px; }
.investigation__header-inner { max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.investigation__badge-row { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.investigation__badge {
  padding: 5px 10px;
  background: #d4a017;
  color: var(--bg-dark);
  font-family: var(--font-headline);
  font-weight: 900;
  font-size: 12px;
  letter-spacing: 0.1em;
}
.investigation__category {
  font-family: var(--font-headline);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.65);
}
.investigation__title {
  font-family: var(--font-headline);
  font-weight: 900;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--fg-inverse);
  max-width: 900px;
}
.investigation__subtitle { font-family: var(--font-headline); font-weight: 400; font-size: 22px; color: rgba(255, 255, 255, 0.7); margin-top: 12px; max-width: 900px; }
.investigation__meta { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 28px; font-size: 13px; color: rgba(255, 255, 255, 0.6); }
.investigation__author-name { color: var(--fg-inverse); font-weight: 600; }
.investigation__cover { max-width: var(--container); margin: 0 auto 32px; }
.investigation__cover img { width: 100%; }
.investigation__layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; align-items: start; max-width: 1080px; margin: 0 auto; }
.investigation__body { max-width: 720px; }
.investigation__sidebar { position: sticky; top: calc(var(--header-height) + 20px); display: flex; flex-direction: column; gap: 20px; }
.inv-sidebar-block { background: var(--bg-alt); padding: 20px; border-left: 3px solid #d4a017; }
.inv-sidebar-block__title { font-family: var(--font-headline); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--fg-muted); margin-bottom: 12px; }
.inv-sidebar-block__list { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; font-size: 13px; }
.inv-sidebar-block__list dt { color: var(--fg-muted); }
.inv-sidebar-block__list dd { font-weight: 600; color: var(--fg); }
.inv-sidebar-block__author { font-weight: 600; font-size: 15px; }

/* ---- 9. Book ------------------------------------------------------------ */
.book { max-width: 1080px; margin: 0 auto; }
.book__header { background: linear-gradient(to bottom, var(--bg-alt), var(--bg)); padding: 40px 0 60px; margin: -24px 0 32px; }
.book__header-inner { display: grid; grid-template-columns: 260px 1fr; gap: 40px; max-width: 900px; margin: 0 auto; padding: 0 20px; align-items: start; }
.book__cover { aspect-ratio: 2 / 3; overflow: hidden; box-shadow: 0 10px 40px rgba(0,0,0,0.15); }
.book__cover img { width: 100%; height: 100%; object-fit: cover; }
.book__cover--placeholder { background: var(--bg-dark); color: var(--fg-inverse); display: grid; place-items: center; font-family: var(--font-headline); font-weight: 900; font-size: 96px; }
.book__label { font-family: var(--font-headline); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); }
.book__title { font-family: var(--font-headline); font-weight: 900; font-size: clamp(28px, 3.5vw, 40px); line-height: 1.1; margin-top: 12px; }
.book__subtitle { font-family: var(--font-headline); font-size: 20px; color: var(--fg-muted); margin-top: 8px; }
.book__synopsis { font-size: 16px; line-height: 1.55; margin-top: 20px; color: var(--fg-body); }
.book__data { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border-strong); font-size: 13px; }
.book__data dt { color: var(--fg-muted); text-transform: uppercase; letter-spacing: 0.05em; font-size: 11px; font-weight: 600; }
.book__data dd { font-weight: 600; }
.book__preface { max-width: 720px; margin: 0 auto 40px; }
.book__toc { max-width: 720px; margin: 0 auto; }
.chapter-list { display: flex; flex-direction: column; border-top: 2px solid var(--fg); }
.chapter-list__item { border-bottom: 1px solid var(--border); }
.chapter-list__link { display: grid; grid-template-columns: 60px 1fr; gap: 20px; padding: 18px 0; align-items: center; transition: background var(--tr); }
.chapter-list__link:hover { background: var(--bg-alt); }
.chapter-list__num { font-family: var(--font-headline); font-weight: 900; font-size: 28px; color: var(--accent); line-height: 1; }
.chapter-list__title { font-family: var(--font-headline); font-weight: 700; font-size: 20px; }

/* ---- 10. Index pages (category / tag / series) -------------------------- */
.index-page__header { background: var(--bg-dark); color: var(--fg-inverse); padding: 48px 0; margin: -24px -20px 32px; border-bottom: 4px solid var(--category-color, var(--accent)); }
.index-page__header-inner { max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.index-page__label { font-family: var(--font-headline); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: 0.15em; color: var(--category-color, var(--accent)); }
.index-page__title { font-family: var(--font-headline); font-weight: 900; font-size: clamp(36px, 6vw, 64px); line-height: 1; margin-top: 8px; color: var(--fg-inverse); }
.index-page__description { font-size: 17px; color: rgba(255,255,255,0.7); margin-top: 16px; max-width: 720px; }
.index-page__meta { margin-top: 20px; font-size: 13px; color: rgba(255,255,255,0.5); }
.index-page__section { margin-top: 40px; }
.index-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.index-card { display: flex; flex-direction: column; background: var(--bg); border-top: 3px solid var(--category-color, var(--accent)); transition: transform var(--tr), box-shadow var(--tr); overflow: hidden; }
.index-card:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.08); }
.index-card__cover { aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-alt); }
.index-card__cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 300ms var(--tr); }
.index-card:hover .index-card__cover img { transform: scale(1.03); }
.index-card__body { padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; }
.index-card__title { font-family: var(--font-headline); font-weight: 700; font-size: 17px; line-height: 1.25; letter-spacing: -0.01em; }
.index-card__summary { font-size: 13.5px; line-height: 1.5; color: var(--fg-muted); }
.index-card__meta { font-size: 11.5px; color: var(--fg-subtle); margin-top: 4px; font-variant-numeric: tabular-nums; }
.inv-card__summary { font-size: 13px; line-height: 1.5; color: var(--fg-muted); margin-top: 4px; }
.empty-state { padding: 40px; text-align: center; color: var(--fg-muted); background: var(--bg-alt); }

/* ---- 11. Footer --------------------------------------------------------- */
.site-footer { background: var(--bg-dark); color: var(--fg-inverse); margin-top: 80px; padding: 48px 0 24px; }
.site-footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.site-footer__brand { font-family: var(--font-headline); font-weight: 900; font-size: 24px; letter-spacing: -0.02em; }
.site-footer__tagline { font-size: 14px; color: rgba(255,255,255,0.6); margin-top: 8px; }
.site-footer__title { font-family: var(--font-headline); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(255,255,255,0.5); margin-bottom: 14px; }
.site-footer__list { display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.site-footer__list a { color: rgba(255,255,255,0.8); }
.site-footer__list a:hover { color: var(--fg-inverse); }
.site-footer__legal { padding-top: 20px; font-size: 12px; color: rgba(255,255,255,0.4); display: flex; gap: 12px; }

/* ---- 12. 404 ------------------------------------------------------------ */
.error-page { min-height: 60vh; display: grid; place-items: center; }
.error-page__inner { text-align: center; padding: 40px; }
.error-page__code { font-family: var(--font-headline); font-weight: 900; font-size: 120px; color: var(--accent); line-height: 1; }
.error-page__title { font-family: var(--font-headline); font-weight: 700; font-size: 32px; margin-top: 12px; }
.error-page__body { font-size: 16px; color: var(--fg-muted); margin-top: 12px; max-width: 400px; }

/* ---- 12b. About page + team --------------------------------------------- */
.about-page { max-width: 900px; margin: 0 auto; }
.about-page__header { background: var(--bg-dark); color: var(--fg-inverse); padding: 48px 0; margin: -24px -20px 32px; border-bottom: 4px solid var(--accent); }
.about-page__header-inner { max-width: 900px; margin: 0 auto; padding: 0 20px; text-align: center; }
.about-page__label { font-family: var(--font-headline); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: 0.2em; color: var(--accent); }
.about-page__title { font-family: var(--font-headline); font-weight: 900; font-size: clamp(36px, 5vw, 56px); line-height: 1.05; margin-top: 10px; color: var(--fg-inverse); }
.about-page__subtitle { font-family: var(--font-headline); font-weight: 400; font-size: 20px; color: rgba(255,255,255,0.75); margin-top: 12px; max-width: 640px; margin-left: auto; margin-right: auto; }
.about-page__body { max-width: 720px; margin: 0 auto 60px; }

.about-team { max-width: 1080px; margin: 60px auto 40px; }
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 24px;
}
.team-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px;
  border: 1px solid var(--border);
  background: var(--bg);
  text-align: center;
  transition: box-shadow var(--tr), border-color var(--tr);
}
.team-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.06); border-color: var(--border-strong); }
.team-card__avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 16px;
  background: var(--bg-alt);
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 1px var(--border);
}
.team-card__avatar img { width: 100%; height: 100%; object-fit: cover; }
.team-card__avatar--placeholder {
  display: grid;
  place-items: center;
  font-family: var(--font-headline);
  font-weight: 900;
  font-size: 48px;
  color: var(--fg-muted);
}
.team-card__body { display: flex; flex-direction: column; gap: 6px; width: 100%; }
.team-card__name { font-family: var(--font-headline); font-weight: 700; font-size: 20px; line-height: 1.2; }
.team-card__role { font-family: var(--font-headline); font-weight: 700; font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); margin-bottom: 4px; }
.team-card__bio { font-size: 14px; line-height: 1.5; color: var(--fg-muted); margin-top: 6px; }
.team-card__social { display: flex; justify-content: center; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); }
.team-card__social a {
  width: 30px; height: 30px;
  display: grid; place-items: center;
  color: var(--fg-subtle);
  border-radius: 50%;
  transition: color var(--tr), background var(--tr);
}
.team-card__social a:hover { color: var(--accent); background: var(--bg-alt); }

/* Ensure article body images stay contained */
.prose img { max-width: 100%; height: auto; margin: 1.5em auto; display: block; }

/* ---- 13. Responsive ---------------------------------------------------- */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; }
  .home__split { grid-template-columns: 1fr; }
  .home__sidebar { position: static; }
  .home__grid-inner { grid-template-columns: repeat(2, 1fr); }
  .investigation__layout { grid-template-columns: 1fr; }
  .investigation__sidebar { position: static; }
  .book__header-inner { grid-template-columns: 200px 1fr; gap: 24px; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .site-header__brand-name { font-size: 18px; }
  .site-header__date { display: none; }
  .home__grid-inner { grid-template-columns: 1fr; }
  .latest-list__item { grid-template-columns: 100px 1fr; gap: 12px; }
  .latest-list__title { font-size: 15px; }
  .article__meta { gap: 12px; }
  .article__share { width: 100%; margin-left: 0; margin-top: 8px; }
  .book__header-inner { grid-template-columns: 1fr; text-align: center; }
  .book__cover { max-width: 200px; margin: 0 auto; }
  .site-footer__grid { grid-template-columns: 1fr; }
}
