:root {
  --bg: #f6f4ef;
  --text: #1a1916;
  --muted: #6b6560;
  --accent: #9a4b1a;
  --accent-soft: rgba(154, 75, 26, .1);
  --card: #fffcf7;
  --line: rgba(26, 25, 22, .1);
  --header-bg: rgba(255, 252, 247, .86);
  --header-fg: var(--text);
  --hero-fg: var(--text);
  --footer-bg: #1a1916;
  --footer-fg: #d8d2c8;
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 18px 50px rgba(26, 25, 22, .08);
  --shadow-hover: 0 24px 60px rgba(26, 25, 22, .12);
  --font: "Outfit", "Segoe UI", system-ui, sans-serif;
  --font-display: "Fraunces", Georgia, serif;
  --wrap: min(1160px, calc(100% - 2.5rem));
  --header-h: 72px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  min-height: 100%;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
input[type="checkbox"],
input[type="radio"] {
  width: 1.1rem; height: 1.1rem; min-width: 1.1rem; margin: 0; padding: 0;
  flex: 0 0 auto; accent-color: var(--accent); cursor: pointer;
}
.wrap { width: var(--wrap); margin-inline: auto; }
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: var(--header-bg);
  backdrop-filter: saturate(1.4) blur(16px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  position: relative;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.brand {
  display: flex; align-items: center; gap: .7rem;
  text-decoration: none; font-weight: 650; letter-spacing: -.02em;
  color: var(--header-fg);
  flex-shrink: 0;
}
.brand-mark {
  width: 34px; height: 34px; border-radius: 10px;
  background: var(--accent); color: #fff;
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 600; font-size: 1.05rem;
}
.brand-text { font-family: var(--font-display); font-size: 1.25rem; }
.brand-logo {
  display: block;
  width: auto;
  max-width: min(220px, 42vw);
  object-fit: contain;
}
.brand.has-logo .brand-logo { max-height: 2.5rem; }
.footer-brand-logo {
  display: inline-block;
  margin: 0 0 .4rem;
  text-decoration: none;
}
.footer-brand-logo img {
  display: block;
  max-height: 3rem;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}
.header-search {
  flex: 1; max-width: 280px; position: relative; margin-left: auto;
}
.header-search input {
  width: 100%; border: 1px solid var(--line); background: var(--card);
  border-radius: 999px; padding: .55rem .9rem .55rem 2.3rem; color: var(--text);
}
.header-search::before {
  content: ""; position: absolute; left: .9rem; top: 50%; width: 14px; height: 14px;
  transform: translateY(-50%);
  background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%236b6560' stroke-width='2' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3-3'/%3E%3C/svg%3E");
}
.header-actions { display: flex; align-items: center; gap: .75rem; }
.header-profile-wrap { position: relative; }
.header-profile {
  display: flex; align-items: center; gap: .5rem;
  border: 0; background: transparent; cursor: pointer;
  color: var(--text);
  padding: .25rem .6rem .25rem .25rem; border-radius: 999px;
  transition: background .15s; font: inherit;
}
.header-profile:hover { background: var(--accent-soft); }
.header-profile-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent); color: #fff;
  font-size: .75rem; font-weight: 700; flex-shrink: 0; overflow: hidden;
}
.header-profile-avatar.is-photo {
  object-fit: cover;
}
.header-profile-name {
  font-size: .85rem; font-weight: 600;
  max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.header-profile-chevron {
  color: var(--muted); transition: transform .2s;
}
.header-profile-wrap.is-open .header-profile-chevron {
  transform: rotate(180deg);
}
.header-profile-dropdown {
  display: none;
  position: absolute; top: calc(100% + 6px); right: 0; min-width: 220px;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 12px 32px rgba(0,0,0,.12);
  z-index: 60; padding: .5rem;
  animation: profileDropIn .15s ease-out;
}
@keyframes profileDropIn {
  from { opacity: 0; transform: translateY(-6px) scale(.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.header-profile-wrap.is-open .header-profile-dropdown {
  display: block;
}
.header-profile-dropdown-head {
  display: flex; align-items: center; gap: .7rem;
  padding: .5rem .6rem;
}
.header-profile-avatar-lg {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent); color: #fff;
  font-size: .85rem; font-weight: 700; flex-shrink: 0; overflow: hidden;
}
.header-profile-avatar-lg.is-photo {
  object-fit: cover;
}
.header-profile-dropdown-info {
  display: grid; gap: .1rem; min-width: 0;
}
.header-profile-dropdown-info strong {
  font-size: .88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.header-profile-dropdown-info span {
  font-size: .78rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.header-profile-dropdown-divider {
  border: 0; border-top: 1px solid var(--line); margin: .3rem 0;
}
.header-profile-dropdown-item {
  display: flex; align-items: center; gap: .6rem;
  padding: .55rem .6rem; border-radius: 10px;
  text-decoration: none; color: var(--text); font-size: .88rem; font-weight: 500;
  border: 0; background: transparent; width: 100%; cursor: pointer; font: inherit;
  text-align: left;
}
.header-profile-dropdown-item:hover {
  background: var(--accent-soft); color: var(--accent);
}
.header-profile-dropdown-item--danger {
  color: #b91c1c;
}
.header-profile-dropdown-item--danger:hover {
  background: rgba(185, 28, 28, .08); color: #b91c1c;
}
.site-nav { display: flex; align-items: center; gap: .15rem; }
.site-nav a, .nav-item > a {
  text-decoration: none; color: var(--muted); padding: .4rem .75rem;
  border-radius: 999px; font-size: .92rem; font-weight: 500;
  display: inline-flex; align-items: center; gap: .4rem;
}
.site-nav a:hover, .nav-item > a:hover { color: var(--header-fg); background: var(--accent-soft); }
.nav-item { position: relative; }
.nav-item.has-sub > a { padding-right: 1.1rem; }
.nav-sub {
  display: none; position: absolute; top: calc(100% - .15rem); left: 0; min-width: 180px;
  padding: .45rem; background: var(--header-bg, #fff); border: 1px solid var(--line);
  border-radius: 12px; box-shadow: 0 12px 32px rgba(0,0,0,.12); z-index: 8;
}
.nav-sub a { display: flex; width: 100%; border-radius: 8px; }
.nav-item.has-sub:hover .nav-sub, .nav-item.has-sub:focus-within .nav-sub { display: grid; gap: .15rem; }
.footer-child { opacity: .78; padding-left: .6rem; }
.cat-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--accent-soft, rgba(0,0,0,.04)); color: var(--accent); margin-bottom: .55rem; }
.nav-toggle {
  display: none; width: 42px; height: 42px; border-radius: 10px;
  border: 1px solid var(--line); background: transparent; cursor: pointer; position: relative;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 16px; height: 1.5px; background: var(--header-fg); position: absolute; left: 12px;
}
.nav-toggle span { top: 20px; }
.nav-toggle span::before { content: ""; top: -5px; }
.nav-toggle span::after { content: ""; top: 5px; }
.lang-switch { display: flex; gap: .2rem; padding: .2rem; border: 1px solid var(--line); border-radius: 999px; }
.lang-switch a {
  text-decoration: none; text-transform: uppercase; font-size: .72rem; letter-spacing: .08em;
  font-weight: 650; color: var(--muted); padding: .28rem .55rem; border-radius: 999px;
}
.lang-switch a.is-active { background: var(--accent); color: #fff; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  background: var(--accent); color: #fff; border: 0; border-radius: 999px;
  padding: .72rem 1.25rem; text-decoration: none; cursor: pointer; font-weight: 600;
  letter-spacing: .01em; box-shadow: 0 8px 20px rgba(154, 75, 26, .18);
}
.btn:hover { filter: brightness(1.05); }
.btn-ghost {
  background: transparent; color: var(--header-fg); box-shadow: none;
  border: 1px solid var(--line); padding: .45rem .9rem; font-size: .9rem;
}
.site-main { padding: 0 0 4.5rem; }
.flash {
  width: var(--wrap); margin: 1rem auto 0; padding: .85rem 1.1rem;
  border-radius: var(--radius-sm); background: #e8f6ee; color: #14532d;
}
.block { padding: 2.6rem 0; }
.block + .block { padding-top: 0; }
.section-head {
  display: flex; align-items: end; justify-content: space-between; gap: 1rem;
  margin-bottom: 1.4rem;
}
.section-head > div { display: grid; gap: .2rem; }
.section-head h2 {
  font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin: 0; letter-spacing: -.03em; font-weight: 560;
}
.text-link { color: var(--accent); text-decoration: none; font-weight: 650; font-size: .92rem; }
.skip-link {
  position: absolute; left: 1rem; top: -48px; z-index: 80;
  background: var(--accent); color: #fff; padding: .45rem .8rem; border-radius: 8px;
}
.skip-link:focus { top: .8rem; }
.block-hero {
  position: relative; overflow: hidden;
  min-height: min(72vh, 620px); display: grid; align-items: stretch;
  background:
    radial-gradient(1200px 480px at 85% -10%, var(--accent-soft), transparent 55%),
    linear-gradient(180deg, color-mix(in srgb, var(--card) 70%, transparent), var(--bg));
  color: var(--hero-fg);
}
.block-hero.has-image {
  background-image: linear-gradient(90deg, rgba(16,15,13,.72), rgba(16,15,13,.28)), var(--hero-image);
  background-size: cover; background-position: center;
  color: #fff; --hero-fg: #fff;
}
.hero-inner, .hero-grid {
  display: grid; gap: 1rem; align-content: center; padding: 4.5rem 0 3.5rem;
}
.hero-grid {
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, .82fr);
  gap: clamp(1.6rem, 4vw, 3.6rem);
  align-items: center;
  max-width: none;
}
.hero-grid.is-solo { grid-template-columns: minmax(0, 38rem); }
.hero-copy { display: grid; gap: 1rem; max-width: 40rem; }
.kicker {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .78rem; font-weight: 650; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent);
}
.block-hero.has-image .kicker { color: #f4d2b8; }
.hero-copy h1, .hero-inner h1 {
  font-family: var(--font-display); font-weight: 560;
  font-size: clamp(2.4rem, 6.4vw, 4.6rem); line-height: 1.08;
  letter-spacing: -.04em; margin: 0;
}
.lede { font-size: 1.15rem; color: var(--muted); max-width: 38rem; margin: 0; }
.block-hero.has-image .lede { color: rgba(255,255,255,.86); }
.hero-actions { display: flex; gap: .7rem; flex-wrap: wrap; margin-top: .4rem; }
.hero-spotlight {
  display: grid; text-decoration: none; overflow: hidden;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); color: var(--text);
}
.spot-media, .spot-media img, .spot-media .card-fallback { aspect-ratio: 16 / 11; width: 100%; object-fit: cover; }
.spot-body { display: grid; gap: .35rem; padding: 1.05rem 1.15rem 1.2rem; }
.spot-body strong { font-family: var(--font-display); font-size: 1.28rem; line-height: 1.25; font-weight: 560; }

/* Hero layouts */
.block-hero.is-magazine,
.block-hero.has-cover-story { min-height: 0; }
.block-hero.is-magazine.hero-height-auto,
.block-hero.has-cover-story.hero-height-auto { min-height: 0; }
.block-hero.is-magazine.hero-height-compact,
.block-hero.has-cover-story.hero-height-compact { min-height: min(48vh, 420px); }
.block-hero.is-magazine.hero-height-medium,
.block-hero.has-cover-story.hero-height-medium { min-height: min(58vh, 520px); }
.block-hero.is-magazine.hero-height-tall,
.block-hero.has-cover-story.hero-height-tall { min-height: min(72vh, 620px); }
.hero-layout {
  display: grid; gap: clamp(1.4rem, 3vw, 2.4rem);
  padding: 4rem 0 3.2rem;
}
.hero-copy-zone.is-center .hero-copy { text-align: center; margin-inline: auto; }
.hero-copy-zone.is-center .hero-actions { justify-content: center; }
.hero-magazine-head { display: grid; }
.hero-magazine-body { display: grid; gap: 1.2rem; }
.hero-layout-lead {
  grid-template-columns: minmax(0, 1.25fr) minmax(240px, .75fr);
  align-items: stretch;
}
.hero-layout-lead .hero-post-card.is-lead {
  display: grid; grid-template-columns: 1.15fr .85fr; min-height: 360px;
}
.hero-layout-lead .hero-post-card.is-lead .hero-post-media,
.hero-layout-lead .hero-post-card.is-lead .hero-post-media img,
.hero-layout-lead .hero-post-card.is-lead .card-fallback {
  min-height: 100%; height: 100%; aspect-ratio: auto;
}
.hero-magazine-side { display: grid; gap: .85rem; align-content: start; }
.hero-layout-split {
  grid-template-columns: minmax(0, 1fr) minmax(280px, .9fr);
  gap: clamp(1.4rem, 3vw, 2.8rem);
  align-items: start;
}
.hero-magazine-stack { display: grid; gap: .85rem; }
.hero-layout-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.hero-layout-grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hero-layout-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hero-layout-grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.hero-layout-bento-grid {
  display: grid; gap: .85rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-areas:
    "lead lead tile1 tile2"
    "lead lead tile3 tile4";
}
.hero-layout-bento-grid .hero-post-card.is-lead { grid-area: lead; }
.hero-layout-bento-grid .hero-post-card--tile:nth-child(2) { grid-area: tile1; }
.hero-layout-bento-grid .hero-post-card--tile:nth-child(3) { grid-area: tile2; }
.hero-layout-bento-grid .hero-post-card--tile:nth-child(4) { grid-area: tile3; }
.hero-layout-bento-grid .hero-post-card--tile:nth-child(5) { grid-area: tile4; }
.hero-layout-bento-grid .hero-post-card--tile { min-height: 160px; }
.hero-layout-bento-grid .hero-post-card--tile .hero-post-body { padding: .65rem .75rem; }
.hero-layout-bento-grid .hero-post-card--tile h3 { font-size: .92rem; }
.block-hero.has-cover-story,
.block-hero.hero-style-cover_story.has-image {
  background-image: linear-gradient(180deg, rgba(16,15,13,.55), rgba(16,15,13,.78)), var(--hero-image);
  background-size: cover; background-position: center;
  color: #fff; --hero-fg: #fff;
}
.hero-cover-story {
  position: relative; min-height: min(68vh, 580px);
  display: grid; align-content: end; padding: 0 0 2.5rem;
}
.hero-cover-copy { position: relative; z-index: 2; max-width: 42rem; }
.hero-cover-link { position: absolute; inset: 0; z-index: 1; }
.block-hero.has-cover-story .kicker { color: color-mix(in srgb, var(--accent) 70%, #fff); }
.block-hero.has-cover-story .lede { color: rgba(255,255,255,.88); }
.hero-headline-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.hero-headline-row {
  display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: start;
  padding: 1rem 0; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit;
}
.hero-headline-row:hover strong { color: var(--accent); }
.hero-headline-num {
  font-family: var(--font-display); font-size: 1.35rem; font-weight: 560; color: var(--muted); line-height: 1;
}
.hero-headline-main { display: grid; gap: .35rem; }
.hero-headline-main strong { font-family: var(--font-display); font-size: 1.2rem; line-height: 1.25; }
.hero-headline-main time { font-size: .82rem; color: var(--muted); }
.hero-newspaper-mast { border-bottom: 2px solid var(--line); padding-bottom: 1rem; }
.hero-layout-newspaper-grid .hero-post-card { border-radius: max(0px, calc(var(--radius) - 6px)); }
.hero-filmstrip {
  display: flex; gap: .85rem; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: .35rem 0 1rem; -webkit-overflow-scrolling: touch;
}
.hero-filmstrip .hero-rail-item {
  flex: 0 0 min(280px, 78vw); scroll-snap-align: start;
}
.hero-rail-item {
  display: grid; grid-template-columns: 96px 1fr; gap: .75rem; align-items: center;
  text-decoration: none; color: inherit;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: .55rem; box-shadow: var(--shadow);
}
.hero-rail-item:hover { border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); }
.hero-rail-thumb, .hero-rail-thumb img, .hero-rail-thumb .card-fallback {
  aspect-ratio: 4 / 3; width: 100%; object-fit: cover; border-radius: calc(var(--radius-sm, 8px));
  overflow: hidden; display: block;
}
.hero-rail-text { display: grid; gap: .25rem; min-width: 0; }
.hero-rail-text strong { font-size: .92rem; line-height: 1.3; }
.hero-rail-text time { font-size: .78rem; color: var(--muted); }
.hero-card-stack { display: grid; gap: .85rem; }
.hero-card-stack .hero-post-card--overlay { min-height: 200px; }
.hero-minimal-copy .hero-copy { max-width: 34rem; margin-inline: auto; text-align: center; }
.hero-minimal-copy .hero-actions { justify-content: center; }
.hero-minimal-rail {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .85rem;
}
.hero-post-card {
  display: grid; overflow: hidden;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); color: var(--text);
}
.hero-post-card--compact { grid-template-columns: 120px 1fr; align-items: stretch; }
.hero-post-card--compact .hero-post-media,
.hero-post-card--compact .hero-post-media img,
.hero-post-card--compact .card-fallback { aspect-ratio: 1; height: 100%; min-height: 100%; }
.hero-post-card--overlay { position: relative; border: 0; min-height: 220px; }
.hero-post-card--overlay .hero-post-media { position: absolute; inset: 0; }
.hero-post-card--overlay .hero-post-media img,
.hero-post-card--overlay .card-fallback { width: 100%; height: 100%; object-fit: cover; aspect-ratio: auto; min-height: 100%; }
.hero-post-card--overlay .hero-post-body {
  position: relative; z-index: 1; align-self: end;
  margin: .65rem; padding: .85rem 1rem;
  background: color-mix(in srgb, var(--text) 78%, transparent); color: var(--card);
  border-radius: calc(var(--radius) - 4px);
}
.hero-post-card--overlay .hero-post-body a,
.hero-post-card--overlay .hero-post-body time,
.hero-post-card--overlay .hero-post-body .byline { color: color-mix(in srgb, var(--card) 88%, transparent); }
.hero-post-card--overlay .chip { background: color-mix(in srgb, var(--card) 18%, transparent); color: var(--card); }
.hero-post-card--tile { min-height: 140px; }
.hero-post-card--tile .hero-post-media img { aspect-ratio: 16 / 11; }
.hero-post-media { display: block; overflow: hidden; text-decoration: none; }
.hero-post-media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16 / 10; transition: transform .45s ease; }
.hero-post-card:hover .hero-post-media img { transform: scale(1.04); }
.hero-post-body { display: grid; gap: .45rem; padding: 1rem 1.05rem 1.1rem; align-content: start; }
.hero-post-card.is-lead .hero-post-body { padding: 1.35rem 1.4rem; gap: .55rem; }
.hero-post-top { display: flex; flex-wrap: wrap; gap: .45rem .7rem; align-items: center; font-size: .82rem; color: var(--muted); }
.hero-post-body h3 { margin: 0; font-family: var(--font-display); font-size: 1.15rem; line-height: 1.25; font-weight: 560; }
.hero-post-card.is-lead .hero-post-body h3 { font-size: clamp(1.5rem, 2.8vw, 2rem); }
.hero-post-body p { margin: 0; color: var(--muted); font-size: .94rem; }
.hero-magazine-empty { margin: 0; color: var(--muted); }
.block-hero.is-center .hero-copy-zone .hero-copy { text-align: center; margin-inline: auto; }
.block-hero.is-center .hero-copy-zone .hero-actions { justify-content: center; }

.card-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.35rem;
}
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; min-height: 100%;
  box-shadow: var(--shadow); transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.card-feature {
  display: grid; grid-template-columns: 1.2fr .9fr; min-height: 360px;
  margin-bottom: 1.35rem;
}
.card-feature .card-media, .card-feature .card-fallback { aspect-ratio: auto; min-height: 100%; height: 100%; }
.card-feature .card-body { padding: 1.6rem 1.5rem; justify-content: center; gap: .65rem; }
.card-feature h3 { font-size: clamp(1.6rem, 3vw, 2.15rem); }
.card-grid-follow { margin-top: .2rem; }
.card-media, .card-fallback {
  aspect-ratio: 16 / 10; overflow: hidden; background: #ebe4d8;
  position: relative;
}
.card-format {
  position: absolute; left: .7rem; bottom: .7rem;
  background: rgba(20, 18, 16, .78); color: #fff;
  font-size: .72rem; font-weight: 650; letter-spacing: .04em;
  text-transform: uppercase; padding: .28rem .55rem; border-radius: 999px;
}
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.card:hover .card-media img { transform: scale(1.04); }
.card-fallback {
  display: grid; place-items: center;
  font-family: var(--font-display); font-size: 2.4rem; color: var(--accent);
  background:
    radial-gradient(circle at 30% 20%, var(--accent-soft), transparent 50%),
    linear-gradient(145deg, #f3ece2, #e4d5c3);
}
.card-body { padding: 1.15rem 1.2rem 1.25rem; display: flex; flex-direction: column; gap: .45rem; flex: 1; }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: .6rem; }
.card h3 { font-family: var(--font-display); font-size: 1.28rem; line-height: 1.25; margin: 0; letter-spacing: -.02em; }
.card h3 a { text-decoration: none; }
.card-body > p { color: var(--muted); margin: 0; flex: 1; font-size: .95rem; }
.card-foot {
  display: flex; align-items: center; justify-content: space-between; gap: .7rem;
  padding-top: .55rem; margin-top: auto; font-size: .85rem; color: var(--muted);
}
.more { color: var(--accent); text-decoration: none; font-weight: 650; }
.story-list { display: grid; }
.story-row {
  display: grid; grid-template-columns: 168px 1fr; gap: 1.25rem; align-items: center;
  padding: 1.15rem 0; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit;
}
.story-row:first-child { padding-top: 0; }
.story-media, .story-media img, .story-media .card-fallback {
  aspect-ratio: 4 / 3; width: 100%; object-fit: cover; border-radius: 14px; overflow: hidden;
}
.story-body { display: grid; gap: .3rem; min-width: 0; }
.story-body h3 { font-family: var(--font-display); font-size: 1.28rem; margin: 0; letter-spacing: -.02em; font-weight: 560; }
.story-body p { margin: 0; color: var(--muted); font-size: .95rem; }
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.cat-card {
  display: grid; gap: .55rem; text-decoration: none; color: inherit;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.3rem 1.25rem 1.2rem; box-shadow: var(--shadow);
  transition: transform .25s ease, box-shadow .25s ease;
}
.cat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.cat-card p { margin: 0; color: var(--muted); }
.author-hero { display: flex; align-items: center; gap: 1rem; margin-top: .6rem; }
.author-hero h1 { margin: 0; }
.chip {
  display: inline-flex; align-items: center; font-size: .72rem; font-weight: 650;
  letter-spacing: .08em; text-transform: uppercase; color: var(--accent);
  text-decoration: none; background: var(--accent-soft); padding: .22rem .55rem; border-radius: 999px;
}
.chip-row { display: flex; flex-wrap: wrap; gap: .55rem; }
.chip-row .chip { padding: .5rem .9rem; font-size: .8rem; background: var(--card); border: 1px solid var(--line); }
.avatar, .avatar-lg {
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent); color: #fff; font-size: .68rem; font-weight: 700; flex-shrink: 0;
}
.avatar-lg { width: 48px; height: 48px; font-size: .95rem; }
.byline { display: flex; align-items: center; gap: .55rem; color: var(--muted); font-size: .9rem; }
.byline a { text-decoration: none; font-weight: 600; color: var(--text); }
.page-hero {
  padding: 3.2rem 0 1.6rem;
  background: radial-gradient(900px 280px at 10% 0, var(--accent-soft), transparent 60%);
}
.page-hero h1, .article-head h1 {
  font-family: var(--font-display); font-size: clamp(2.1rem, 5vw, 3.5rem);
  letter-spacing: -.035em; line-height: 1.12; margin: .35rem 0 .6rem; font-weight: 560;
}
.page-hero p { color: var(--muted); max-width: 38rem; margin: 0; }
.article-shell { padding-bottom: 2rem; }
.article-cover { width: min(1240px, calc(100% - 2rem)); margin: 0 auto 2rem; border-radius: 24px; overflow: hidden; max-height: 520px; }
.article-cover img { width: 100%; height: 520px; object-fit: cover; }
.article { width: min(760px, calc(100% - 2.5rem)); margin-inline: auto; }
.article-head { margin-bottom: 1.6rem; }
.icon-svg { display: inline-block; vertical-align: middle; }
.post-share-btn svg { flex-shrink: 0; }
.post-share { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.post-share-label { font-size: .85rem; font-weight: 600; color: var(--muted); }
.post-share-buttons { display: flex; gap: .5rem; flex-wrap: wrap; }
.post-share-btn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--bg); border: 1px solid var(--line); color: var(--text); text-decoration: none; transition: background .2s, border-color .2s, color .2s, transform .15s; }
.post-share-btn:hover { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.post-share-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.post-share-btn--facebook:hover { background: #1877f2; border-color: #1877f2; color: #fff; }
.post-share-btn--twitter:hover { background: #1da1f2; border-color: #1da1f2; color: #fff; }
.post-share-btn--linkedin:hover { background: #0a66c2; border-color: #0a66c2; color: #fff; }
.post-share-btn--whatsapp:hover { background: #25d366; border-color: #25d366; color: #fff; }
.post-share-btn--telegram:hover { background: #0088cc; border-color: #0088cc; color: #fff; }
.post-share-btn--copy.copied { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.meta { color: var(--muted); }
.prose {
  font-family: var(--font-display); font-size: 1.18rem; line-height: 1.75;
  font-weight: 400;
  overflow-wrap: anywhere;
}
.prose pre, .prose table { max-width: 100%; overflow-x: auto; display: block; }
.prose p { margin: 0 0 1.15rem; }
.prose h2, .prose h3 { font-weight: 600; letter-spacing: -.02em; margin: 1.8rem 0 .7rem; }
.prose a { color: var(--accent); }
.prose ul, .prose ol { padding-left: 1.2rem; }
.prose img, .cover { border-radius: 16px; margin: 1.4rem 0; }
.engage, .comments, .related { margin-top: 2.8rem; }
.engage, .comment-form, .comment {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.3rem;
}
.stars button {
  background: none; border: 0; font-size: 1.45rem; color: #d3ccc4; cursor: pointer; padding: 0 .1rem;
}
.stars button.is-on { color: #d97706; }
.comment { display: grid; grid-template-columns: auto 1fr; gap: .2rem .8rem; margin-top: .8rem; }
.comment strong { grid-column: 2; }
.comment time { grid-column: 2; color: var(--muted); font-size: .8rem; }
.comment p { grid-column: 2; margin: .25rem 0 .4rem; }
.comment .reacts, .comment .link { grid-column: 2; }
.reacts { display: flex; gap: .35rem; flex-wrap: wrap; }
.reacts button, .link {
  border: 1px solid var(--line); background: var(--bg); border-radius: 999px;
  padding: .2rem .55rem; cursor: pointer; font-size: .85rem;
}
.replies { grid-column: 1 / -1; margin-left: 2.4rem; }
.comment-form { display: grid; gap: .7rem; margin-top: 1rem; }
.comment-form label { display: grid; gap: .3rem; color: var(--muted); font-size: .88rem; }
.comment-form input:not([type="checkbox"]):not([type="radio"]), .comment-form textarea, .search-box input, .search-box select {
  border: 1px solid var(--line); background: var(--bg); color: var(--text);
  border-radius: var(--radius-sm); padding: .7rem .85rem;
}
.search-page { padding-top: 2rem; }
.search-shell { position: relative; margin: 1rem 0 1.5rem; }
.search-shell .search-box { margin: 0; }
.search-box {
  display: grid; grid-template-columns: 1.4fr .8fr .8fr auto; gap: .6rem;
  background: var(--card); padding: .7rem; border-radius: 16px; border: 1px solid var(--line);
}
.suggest {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: .55rem; display: grid; gap: .15rem;
  box-shadow: var(--shadow);
}
.suggest[hidden] { display: none !important; }
.search-suggest {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 6;
}
.suggest a { text-decoration: none; padding: .45rem .6rem; border-radius: 8px; }
.suggest a:hover { background: var(--accent-soft); }
.pager { display: flex; gap: .4rem; margin-top: 1.6rem; }
.pager a {
  min-width: 38px; height: 38px; display: grid; place-items: center;
  border-radius: 10px; border: 1px solid var(--line); text-decoration: none;
}
.pager a.is-active { background: var(--accent); color: #fff; border-color: transparent; }
.page-with-blocks {
  display: grid; gap: 1.6rem 1.8rem; align-items: start;
  padding: 1.4rem 0 2.2rem;
}
.page-with-blocks.has-left.has-right { grid-template-columns: minmax(220px, 280px) minmax(0, 1fr) minmax(220px, 280px); }
.page-with-blocks.has-left:not(.has-right) { grid-template-columns: minmax(220px, 280px) minmax(0, 1fr); }
.page-with-blocks.has-right:not(.has-left) { grid-template-columns: minmax(0, 1fr) minmax(220px, 280px); }
.page-with-blocks-main { min-width: 0; }
.page-with-blocks-main > .wrap, .page-with-blocks-main .article { width: 100%; }
.page-with-blocks-main .article-cover { width: 100%; margin-left: 0; margin-right: 0; }
.block-rail { display: grid; gap: 1rem; min-width: 0; }
.block-rail .block { padding: 0; }
.block-rail .wrap { width: 100%; }
.block-rail .card-grid, .block-rail .author-grid, .block-rail .cat-grid, .block-rail .stat-row, .block-rail .hero-grid {
  grid-template-columns: 1fr;
}
.block-rail .block-hero, .block-rail .hero-grid { min-height: 0; padding: 1rem 0; }
.block-rail .section-head { margin-bottom: .7rem; }
.author-grid.is-stack { grid-template-columns: 1fr; }
.author-card-body { display: grid; gap: .3rem; min-width: 0; }
.author-card-links { display: flex; flex-wrap: wrap; gap: .35rem .7rem; font-size: .8rem; color: var(--accent); }
.block-authors.layout-compact .author-card { padding: .85rem; }
.block-authors.layout-compact .avatar-lg { width: 40px; height: 40px; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: .45rem .7rem; align-items: center; }
.tag-cloud a {
  text-decoration: none; color: var(--text); background: var(--card);
  border: 1px solid var(--line); border-radius: 999px; padding: .25rem .7rem;
}
.tag-cloud a span { color: var(--muted); font-size: .75em; margin-left: .25rem; }
.tag-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.tag-list a { display: flex; justify-content: space-between; gap: 1rem; text-decoration: none; color: inherit; }
.cta-inner {
  background: var(--card); border: 1px solid var(--line); border-radius: 28px;
  padding: 2.4rem; text-align: center; box-shadow: var(--shadow);
}
.cta-inner h2 { font-family: var(--font-display); font-size: clamp(1.7rem, 3vw, 2.4rem); margin: 0 0 .5rem; }
.cta-inner p { color: var(--muted); }
.block-newsletter { padding: 2rem 0 3rem; }
.block-newsletter.style-card .newsletter-shell { max-width: 42rem; margin-inline: auto; }
.newsletter-shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 2rem 2.4rem;
  align-items: center;
  padding: clamp(1.6rem, 3vw, 2.4rem);
  border-radius: calc(var(--radius) + 8px);
  border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--line));
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent-soft) 85%, transparent), transparent 58%),
    var(--card);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.newsletter-shell::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: min(42%, 16rem);
  height: 100%;
  background: radial-gradient(circle at 0% 0%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 68%);
  pointer-events: none;
}
.newsletter-copy,
.newsletter-action { position: relative; z-index: 1; min-width: 0; }
.newsletter-copy { display: grid; gap: .65rem; align-content: start; }
.newsletter-icon {
  width: 52px; height: 52px; display: grid; place-items: center;
  border-radius: 14px;
  background: color-mix(in srgb, var(--accent) 14%, var(--card));
  color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 24%, var(--line));
  margin-bottom: .15rem;
}
.block-newsletter .kicker { color: var(--accent); letter-spacing: .12em; }
.newsletter-copy h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 2.8vw, 2.15rem);
  line-height: 1.12;
  letter-spacing: -.03em;
  font-weight: 560;
}
.newsletter-lede {
  margin: 0;
  color: var(--muted);
  font-size: clamp(.98rem, 1.6vw, 1.05rem);
  line-height: 1.55;
  max-width: 36ch;
}
.newsletter-action { display: grid; gap: .65rem; align-content: center; }
.newsletter-form { margin: 0; }
.newsletter-field {
  display: flex;
  align-items: stretch;
  gap: 0;
  padding: .35rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
}
.newsletter-field:focus-within {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-soft) 75%, transparent);
}
.newsletter-field input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  padding: .82rem 1rem .82rem 1.1rem;
  font: inherit;
  font-size: .98rem;
}
.newsletter-field input:focus { outline: none; }
.newsletter-field input::placeholder { color: color-mix(in srgb, var(--muted) 88%, transparent); }
.newsletter-submit {
  flex-shrink: 0;
  border-radius: 999px;
  padding: .78rem 1.15rem .78rem 1.25rem;
  gap: .45rem;
  white-space: nowrap;
  box-shadow: none;
}
.newsletter-submit svg { transition: transform .18s ease; }
.newsletter-submit:hover svg { transform: translateX(2px); }
.newsletter-note {
  margin: 0;
  font-size: .82rem;
  color: var(--muted);
  line-height: 1.45;
  padding-left: .35rem;
}
.block-hero.is-center .hero-copy { text-align: center; margin-inline: auto; }
.block-hero.is-center .hero-actions { justify-content: center; }
.block-hero.is-center .hero-grid.is-solo { justify-items: center; }
.search-box-simple { grid-template-columns: 1fr auto; }
.block-intro .intro-copy { display: grid; gap: .7rem; max-width: 42rem; }
.block-intro.is-center .intro-copy { text-align: center; margin-inline: auto; }
.block-quote blockquote {
  margin: 0; padding: 2.2rem 2.4rem;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.block-quote p {
  font-family: var(--font-display); font-size: clamp(1.4rem, 3vw, 2rem);
  line-height: 1.35; margin: 0 0 1rem; font-weight: 560;
}
.block-quote footer { display: grid; gap: .15rem; color: var(--muted); }
.block-quote cite { font-style: normal; font-weight: 650; color: var(--text); }
.stat-row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
}
.stat-row article {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.3rem 1.2rem; text-align: center; box-shadow: var(--shadow);
}
.stat-row strong {
  display: block; font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.3rem);
  letter-spacing: -.03em; font-weight: 560;
}
.stat-row span { color: var(--muted); font-size: .9rem; }
.author-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
}
.author-card {
  display: grid; grid-template-columns: auto 1fr; gap: .7rem; justify-items: start; align-items: start;
  text-decoration: none; color: inherit;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.2rem; box-shadow: var(--shadow);
}
.author-card .avatar-lg, .author-card img.avatar-lg { width: 64px; height: 64px; font-size: 1.1rem; object-fit: cover; }
.author-card p { margin: 0; color: var(--muted); font-size: .92rem; }
.video-frame {
  position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius);
  overflow: hidden; background: #111; box-shadow: var(--shadow);
}
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-caption { margin: .7rem 0 0; }
.video-frame video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }
.video-fallback { margin-bottom: 1.4rem; }
.chip-format { background: var(--accent-soft); color: var(--accent); }
.audio-player { margin: 0 0 1.4rem; }
.audio-player audio, .audio-frame { width: 100%; border: 0; border-radius: var(--radius); min-height: 120px; }
.article-player, .post-gallery {
  width: min(1240px, calc(100% - 2rem)); margin: 0 auto 1.6rem;
}
.article-shell .video-frame { margin: 0; border-radius: 24px; }
.post-gallery { margin: 0 auto 1.5rem; display: grid; gap: .7rem; }
.post-gallery-main { margin: 0; }
.post-gallery-main button { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.post-gallery-main img { width: 100%; max-height: 70vh; object-fit: cover; border-radius: var(--radius); display: block; }
.post-gallery-main figcaption { margin: .5rem 0 0; color: var(--muted); }
.post-gallery-thumbs { display: flex; gap: .45rem; overflow-x: auto; padding-bottom: .2rem; }
.post-gallery-thumbs button {
  flex: 0 0 88px; height: 66px; padding: 0; border: 2px solid transparent; border-radius: 10px;
  overflow: hidden; cursor: pointer; background: none;
}
.post-gallery-thumbs button.is-on { border-color: var(--accent); }
.post-gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-extras { margin: 1.6rem 0; }
.post-extras-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: .65rem;
}
.post-extras-grid button {
  padding: 0; border: 0; background: none; cursor: zoom-in; text-align: left; color: inherit;
}
.post-extras-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; display: block; }
.post-extras-grid span { display: block; margin-top: .35rem; color: var(--muted); font-size: .85rem; }
.web-story {
  position: relative; max-width: 420px; margin: 0 auto 1.5rem;
  aspect-ratio: 9 / 16; border-radius: 22px; overflow: hidden; background: #111;
  box-shadow: var(--shadow-hover);
  user-select: none;
}
.web-story-bars {
  position: absolute; inset: 10px 10px auto; z-index: 3;
  display: flex; gap: 4px;
}
.web-story-bars span {
  flex: 1; height: 3px; background: rgba(255,255,255,.28); border-radius: 99px; overflow: hidden;
}
.web-story-bars i {
  display: block; width: 0; height: 100%; background: #fff;
}
.web-story-bars .is-done i { width: 100%; }
.web-story-stage { position: absolute; inset: 0; }
.web-story-slide {
  position: absolute; inset: 0; margin: 0; opacity: 0; pointer-events: none;
}
.web-story-slide.is-active { opacity: 1; pointer-events: auto; }
.web-story-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.web-story-slide figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 2.2rem 1.1rem 1.2rem; color: #fff;
  background: linear-gradient(transparent, rgba(0,0,0,.62));
  font-size: 1rem;
}
.web-story-hit {
  position: absolute; top: 0; bottom: 0; width: 34%; z-index: 2;
  border: 0; background: transparent; cursor: pointer;
}
.web-story-hit.is-prev { left: 0; }
.web-story-hit.is-next { right: 0; width: 66%; }
.story-rings {
  display: flex; gap: 1rem; overflow-x: auto; padding: .2rem 0 1rem;
  scrollbar-width: thin;
}
.story-ring {
  flex: 0 0 92px; text-align: center; text-decoration: none; color: inherit;
}
.story-ring-frame {
  display: grid; place-items: center; width: 84px; height: 84px; margin: 0 auto .45rem;
  border-radius: 50%; padding: 3px;
  background: conic-gradient(from 180deg, var(--accent), #e8c48a, var(--accent));
}
.story-ring-frame img, .story-ring-frame .card-fallback {
  width: 74px; height: 74px; border-radius: 50%; object-fit: cover; aspect-ratio: 1;
  border: 3px solid var(--bg); background: var(--card);
}
.story-ring-title {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; font-size: .78rem; line-height: 1.25;
}
.lightbox {
  position: fixed; inset: 0; z-index: 80; display: grid; place-items: center;
  background: rgba(10, 9, 8, .88); padding: 2rem;
}
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: min(1100px, 100%); }
.lightbox img { max-width: 100%; max-height: 82vh; display: block; border-radius: 12px; }
.lightbox figcaption { color: #ddd; text-align: center; margin-top: .6rem; }
.lightbox-close, .lightbox-nav {
  position: absolute; border: 0; background: rgba(255,255,255,.12); color: #fff;
  width: 44px; height: 44px; border-radius: 50%; cursor: pointer; font-size: 1.4rem;
}
.lightbox-close { top: 1rem; right: 1rem; }
.lightbox-nav.is-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox-nav.is-next { right: 1rem; top: 50%; transform: translateY(-50%); }
@keyframes storyFill { from { width: 0; } to { width: 100%; } }
.block-cta { padding: 1rem 0 2.5rem; }
.block-cta.style-card .cta-inner { max-width: 36rem; margin-inline: auto; }
.avatar-xl, img.avatar-xl {
  width: 96px; height: 96px; border-radius: 28px; object-fit: cover;
  display: grid; place-items: center; background: var(--accent); color: #fff;
  font-size: 1.8rem; font-weight: 700; flex-shrink: 0;
}
.author-hero { align-items: flex-start; gap: 1.4rem; }
.author-meta { color: var(--muted); margin: 0 0 .5rem; }
.author-links { display: flex; flex-wrap: wrap; gap: .55rem .9rem; margin-top: .85rem; }
.author-links a { color: var(--accent); text-decoration: none; font-weight: 600; font-size: .92rem; }
img.avatar, img.avatar-lg { object-fit: cover; }
.empty {
  padding: 2.4rem; text-align: center; color: var(--muted);
  border: 1px dashed var(--line); border-radius: var(--radius);
}
.site-footer {
  background: var(--footer-bg); color: var(--footer-fg); padding: 2.8rem 0 1.6rem;
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; margin-bottom: 1.6rem;
}
.footer-brand { font-family: var(--font-display); font-size: 1.5rem; margin: 0 0 .4rem; color: #fff; }
.footer-label {
  margin: 0 0 .55rem; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase;
  font-weight: 650; color: rgba(255,255,255,.45);
}
.footer-grid p, .footer-grid a { color: var(--footer-fg); text-decoration: none; }
.footer-grid nav { display: grid; gap: .4rem; }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,.08); padding-top: 1rem; font-size: .88rem;
}
.footer-social { display: flex; flex-wrap: wrap; gap: .55rem .9rem; margin-top: .85rem; }
.footer-social a { font-size: .88rem; font-weight: 600; }
.header-suggest { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 5; }
body.nav-open { overflow: hidden; }
.nav-toggle { min-width: 44px; min-height: 44px; }
body.auth-page {
  min-height: 100vh; display: grid; place-items: center; padding: 2rem 1rem;
  background:
    radial-gradient(900px 420px at 8% -10%, var(--accent-soft), transparent 55%),
    var(--bg);
}
.auth-card {
  width: min(440px, 100%); background: var(--card); border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 6px); padding: 2rem 1.7rem 1.5rem;
  box-shadow: var(--shadow); display: grid; gap: 1rem;
}
.auth-card h1 {
  font-family: var(--font-display); font-size: 2rem; margin: 0; letter-spacing: -.03em; font-weight: 560;
}
.auth-card .lede { font-size: 1rem; }
.auth-card .stack { display: grid; gap: .8rem; }
.auth-card .stack label { display: grid; gap: .35rem; color: var(--muted); font-size: .88rem; }
.auth-card input:not([type="checkbox"]):not([type="radio"]) {
  border: 1px solid var(--line); background: var(--bg); color: var(--text);
  border-radius: var(--radius-sm); padding: .7rem .85rem; width: 100%;
}
.auth-card .check, .auth-card .stack label.check,
.auth-card label:has(> input[type="checkbox"]),
.auth-card label:has(> input[type="radio"]) {
  display: inline-flex !important; flex-direction: row; flex-wrap: nowrap;
  align-items: center; justify-content: flex-start; gap: .6rem;
  width: auto; max-width: 100%; cursor: pointer; color: var(--text);
}
.auth-card .check input[type="checkbox"],
.auth-card .check input[type="radio"] {
  width: 1.1rem; height: 1.1rem; min-width: 1.1rem; margin: 0; padding: 0;
  flex: 0 0 auto; accent-color: var(--accent); cursor: pointer;
}
.auth-card a { color: var(--accent); }
.auth-foot { margin: 0; font-size: .9rem; color: var(--muted); }
.auth-foot a { color: var(--muted); text-decoration: none; }
.error-page { min-height: 100vh; display: grid; place-items: center; }
.error-shell { text-align: center; padding: 4rem 0; display: grid; gap: 1rem; justify-items: center; }
.error-shell h1 { font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 0; }
@media (max-width: 1100px) {
  .header-search { max-width: 200px; }
  .site-nav a { padding: .4rem .55rem; }
}
@media (max-width: 980px) {
  .card-grid, .cat-grid, .author-grid { grid-template-columns: 1fr 1fr; }
  .page-with-blocks.has-left.has-right,
  .page-with-blocks.has-left:not(.has-right),
  .page-with-blocks.has-right:not(.has-left) { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: 1fr 1fr; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-layout-lead,
  .hero-layout-split { grid-template-columns: 1fr; }
  .hero-layout-lead .hero-post-card.is-lead { grid-template-columns: 1fr; min-height: 0; }
  .hero-layout-grid,
  .hero-layout-overlay { grid-template-columns: 1fr 1fr; }
  .hero-layout-bento-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "lead lead"
      "tile1 tile2"
      "tile3 tile4";
  }
  .hero-minimal-rail { grid-template-columns: 1fr; }
  .card-feature { grid-template-columns: 1fr; min-height: 0; }
  .card-feature .card-media, .card-feature .card-fallback { min-height: 220px; aspect-ratio: 16 / 10; }
  .search-box { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
.nav-mobile-only { display: none; }
@media (max-width: 960px) {
  :root { --wrap: min(1160px, calc(100% - 1.4rem)); }
  .header-inner > .header-search { display: none; }
  .site-nav {
    display: none;
  }
  .header-actions { display: flex; margin-left: auto; gap: .5rem; }
  .header-actions .lang-switch { display: flex; }
  .site-nav.is-open {
    display: flex; flex-direction: column; align-items: stretch;
    position: absolute; left: 0; right: 0; top: var(--header-h);
    background: var(--card); border-bottom: 1px solid var(--line);
    padding: .8rem 1.2rem 1.2rem; gap: .2rem; box-shadow: var(--shadow);
    max-height: calc(100dvh - var(--header-h)); overflow: auto;
    z-index: 45;
  }
  .site-nav.is-open .nav-mobile-only { display: contents; }
  .site-nav.is-open .mobile-search { display: block; max-width: none; margin: .35rem 0 .75rem; }
  .site-nav.is-open a { min-height: 44px; display: flex; align-items: center; }
  .site-nav.is-open .nav-item { display: grid; }
  .site-nav.is-open .nav-sub { display: grid; position: static; box-shadow: none; border: 0; padding: 0 0 0 .9rem; background: transparent; }
  .card-grid, .footer-grid, .search-box, .cat-grid, .author-grid, .stat-row { grid-template-columns: 1fr; }
  .newsletter-shell { grid-template-columns: 1fr; gap: 1.35rem; }
  .newsletter-lede { max-width: none; }
  .newsletter-field { flex-direction: column; border-radius: calc(var(--radius) + 4px); padding: .45rem; }
  .newsletter-field input { padding: .85rem 1rem; text-align: center; }
  .newsletter-submit { width: 100%; justify-content: center; }
  .newsletter-note { text-align: center; padding-left: 0; }
  .story-row { grid-template-columns: 108px 1fr; gap: .9rem; }
  .article-cover img { height: 240px; }
  .hero-inner, .hero-grid { padding: 3rem 0 2.4rem; }
  .block-hero { min-height: 0; }
  body.nav-open::after {
    content: ""; position: fixed; inset: var(--header-h) 0 0; z-index: 35;
    background: rgba(26, 25, 22, .38);
  }

  /* App chrome */
  :root {
    --app-nav-h: 56px;
  }
  .frontend-app .site-main {
    padding-bottom: calc(var(--app-nav-h) + env(safe-area-inset-bottom));
  }
  .frontend-app .site-header {
    padding-top: env(safe-area-inset-top);
  }
  .header-actions .btn-ghost {
    padding: .35rem .65rem;
    font-size: .8rem;
  }
  .header-actions .btn-ghost + .btn-ghost {
    display: none;
  }
  .header-profile-name {
    max-width: 80px;
  }
  .header-profile-dropdown {
    position: fixed; top: var(--header-h); left: .5rem; right: .5rem; bottom: auto;
    min-width: auto; max-width: none;
    border-radius: var(--radius);
  }
  .frontend-app .site-header .header-actions .lang-switch {
    display: none;
  }
  .frontend-app-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 50;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: var(--header-bg);
    backdrop-filter: saturate(1.4) blur(16px);
    border-top: 1px solid var(--line);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .frontend-app-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-height: var(--app-nav-h);
    min-width: 44px;
    padding: 4px 0;
    text-decoration: none;
    color: var(--muted);
    font-size: 0.7rem;
    font-weight: 500;
    line-height: 1;
  }
  .frontend-app-nav-item.is-active {
    color: var(--accent);
  }
  .frontend-app-nav-icon {
    display: flex;
    width: 24px;
    height: 24px;
  }
  .frontend-more-sheet {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    margin: 0;
    border: none;
    border-radius: var(--radius) var(--radius) 0 0;
    background: var(--card);
    color: var(--text);
    max-height: calc(100dvh - var(--app-nav-h) - env(safe-area-inset-bottom));
    box-shadow: 0 -12px 32px rgba(0,0,0,.15);
    inset: auto;
    top: auto;
    z-index: 60;
  }
  dialog[open].frontend-more-sheet {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    inset: auto;
    top: auto;
    z-index: 60;
  }
  .frontend-more-sheet::backdrop {
    position: fixed;
    inset: 0;
    background: rgba(26, 25, 22, .38);
  }
  .frontend-more-sheet-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
  }
  .frontend-more-sheet-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.2rem;
    border-bottom: 1px solid var(--line);
    flex-shrink: 0;
  }
  .frontend-more-sheet-head h2 {
    margin: 0;
    font-size: 1.1rem;
    font-family: var(--font-display);
  }
  .frontend-more-sheet-close {
    width: 36px;
    height: 36px;
    border: 0;
    background: transparent;
    color: var(--text);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    border-radius: 8px;
  }
  .frontend-more-sheet-close:hover {
    background: var(--accent-soft);
  }
  .frontend-more-sheet-body {
    flex: 1;
    overflow: auto;
    padding: 1rem 1.2rem;
    display: grid;
    gap: 1.5rem;
  }
  .frontend-more-sheet-body .nav-group {
    display: grid;
    gap: 0;
    border: 0;
  }
  .frontend-more-sheet-body .nav-group-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    width: 100%;
    padding: 0;
    background: transparent;
    border: 0;
    color: var(--text);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
  }
  .nav-chevron {
    flex-shrink: 0;
    width: .45rem;
    height: .45rem;
    margin-left: auto;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(-135deg);
    transition: transform .22s ease;
    opacity: .75;
  }
  .nav-group.is-collapsed .nav-chevron { transform: rotate(45deg); }
  .frontend-more-sheet-body .nav-group-panel {
    display: grid;
    grid-template-rows: 1fr;
    transition: grid-template-rows .22s ease;
    padding-top: .5rem;
  }
  .frontend-more-sheet-body .nav-group.is-collapsed .nav-group-panel { grid-template-rows: 0fr; }
  .frontend-more-sheet-body .nav-group-links {
    display: grid;
    gap: .25rem;
    overflow: hidden;
    min-height: 0;
  }
  .frontend-more-sheet-body .nav-group-links a {
    padding: .6rem .75rem;
    border-radius: 10px;
    color: var(--text);
    text-decoration: none;
  }
  .frontend-more-sheet-body .nav-group-links a:hover,
  .frontend-more-sheet-body .nav-group-links a.is-active {
    background: var(--accent-soft);
    color: var(--accent);
  }
  .frontend-more-sheet-body .mobile-search {
    max-width: none;
    margin: 0;
  }
  .frontend-more-sheet-body .lang-switch {
    justify-content: center;
    margin-top: .5rem;
  }
  .frontend-app .cookie-consent {
    bottom: calc(var(--app-nav-h) + env(safe-area-inset-bottom));
  }
  @media (prefers-reduced-motion: reduce) {
    .frontend-more-sheet {
      transition: none !important;
    }
    .nav-group-panel, .nav-chevron { transition: none; }
  }
}
@media (min-width: 961px) {
  .frontend-app-nav,
  .frontend-more-sheet {
    display: none !important;
  }
}
@media (max-width: 520px) {
  .story-row { grid-template-columns: 1fr; }
  .story-media, .story-media img, .story-media .card-fallback { border-radius: 16px; }
  .btn { min-height: 44px; }
  .hero-actions .btn { width: 100%; }
  .replies { margin-left: 1rem; }
  .comment { grid-template-columns: 36px 1fr; }
  .page-hero, .hero-inner, .hero-grid { padding-top: 2.2rem; }
}
@supports (padding: env(safe-area-inset-bottom)) {
  .site-footer { padding-bottom: calc(1.6rem + env(safe-area-inset-bottom)); }
  .site-nav.is-open { padding-bottom: calc(1.2rem + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card, .cat-card, .card-media img { transition: none; }
  .web-story-bars i { animation: none !important; }
}

/* Theme customizer — layout modifiers */
body.hero-gradient .block-hero:not(.has-image) {
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 62%, #fff) 0%, color-mix(in srgb, var(--accent) 22%, var(--bg)) 72%);
  color: #fff;
  --hero-fg: #fff;
  min-height: min(68vh, 580px);
}
body.hero-gradient .block-hero:not(.has-image) .kicker { color: rgba(255,255,255,.82); }
body.hero-gradient .block-hero:not(.has-image) .lede { color: rgba(255,255,255,.88); }
body.hero-gradient .block-hero:not(.has-image) .btn-ghost { color: #fff; border-color: rgba(255,255,255,.42); }
body.hero-minimal .block-hero:not(.has-image) {
  min-height: unset;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
body.hero-minimal .hero-inner,
body.hero-minimal .hero-grid { padding: 3rem 0 2.2rem; }
body.hero-centered .block-hero .hero-copy,
body.hero-centered .block-hero .hero-inner { text-align: center; margin-inline: auto; }
body.hero-centered .block-hero .hero-actions { justify-content: center; }
body.hero-centered .hero-grid:not(.is-solo) { grid-template-columns: 1fr; justify-items: center; }
body.hero-centered .hero-copy .lede { margin-inline: auto; }
body.header-solid .site-header { backdrop-filter: none; background: var(--card); }
body.header-bordered .site-header { backdrop-filter: none; border-bottom: 3px double var(--text); }

.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;
}
.btn-sm { min-height: 36px; padding: .45rem .85rem; font-size: .88rem; }
.author-cover {
  min-height: 220px; background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 28%, var(--card)), var(--card));
  background-size: cover; background-position: center;
}
.author-cover.has-image { background-image: linear-gradient(180deg, rgba(0,0,0,.08), rgba(0,0,0,.42)), var(--author-cover); }
.author-profile { margin-bottom: 2rem; }
.author-profile-inner { margin-top: -3.5rem; position: relative; display: grid; gap: 1.2rem; }
.author-profile-head {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap;
}
.author-profile-id { display: flex; align-items: flex-end; gap: 1rem; flex-wrap: wrap; }
.author-profile-avatar { border: 4px solid var(--card); box-shadow: var(--shadow); }
.author-profile-copy h1 { margin: .2rem 0 0; }
.author-actions { display: flex; flex-wrap: wrap; gap: .55rem; }
.author-action-count {
  display: inline-grid; place-items: center; min-width: 1.6rem; height: 1.6rem; margin-left: .35rem;
  border-radius: 999px; background: var(--accent-soft); font-size: .78rem; font-weight: 650;
}
.author-stats {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .65rem;
}
.author-stat {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: .85rem .9rem; display: grid; gap: .15rem;
}
.author-stat strong { font-size: 1.15rem; font-family: var(--font-display); }
.author-stat span { font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.author-bio, .author-links { max-width: 68ch; }
.author-links { display: flex; flex-wrap: wrap; gap: .55rem .85rem; }
.author-links a { font-weight: 600; text-decoration: none; }
.author-posts { padding-bottom: 2.5rem; }
.page-hero-authors .lede { max-width: 52ch; color: var(--muted); }
.authors-directory { padding: 1.5rem 0 2.5rem; display: grid; gap: 1.2rem; }
.authors-toolbar { display: flex; justify-content: flex-end; }
.authors-toolbar select {
  border: 1px solid var(--line); background: var(--card); color: var(--text);
  border-radius: 999px; padding: .55rem 1rem;
}
.authors-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.author-directory-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  overflow: hidden; display: grid; grid-template-rows: auto 1fr; box-shadow: var(--shadow);
}
.author-directory-cover {
  display: block; min-height: 140px; position: relative;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 24%, var(--card)), var(--card));
  background-size: cover; background-position: center;
}
.author-directory-cover.has-image { background-image: linear-gradient(180deg, rgba(0,0,0,.04), rgba(0,0,0,.28)), var(--author-cover); }
.author-directory-avatar {
  position: absolute; left: 1rem; bottom: -1.4rem;
  border: 3px solid var(--card); border-radius: 999px; box-shadow: var(--shadow);
}
.author-directory-body { padding: 2rem 1rem 1rem; display: grid; gap: .65rem; align-content: start; }
.author-directory-top h2 { margin: 0; font-size: 1.15rem; }
.author-directory-stats { display: flex; flex-wrap: wrap; gap: .45rem .75rem; font-size: .82rem; color: var(--muted); }
.author-directory-foot { display: flex; justify-content: space-between; align-items: center; gap: .65rem; flex-wrap: wrap; margin-top: .25rem; }
@media (max-width: 980px) {
  .authors-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .author-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .authors-grid, .author-stats { grid-template-columns: 1fr; }
  .author-profile-inner { margin-top: -2.5rem; }
  .author-profile-head { align-items: flex-start; }
}

/* Block layout styles */
.block-filmstrip,
.block-authors.style-avatar_row .author-avatar-row,
.block-tags.style-pill_bar .tag-pill-bar,
.block-galleries.style-carousel .gallery-carousel,
.block-video.style-filmstrip .video-filmstrip,
.block-web_stories.style-filmstrip .story-filmstrip {
  display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .35rem;
}
.block-filmstrip .card { flex: 0 0 min(280px, 78vw); scroll-snap-align: start; }
.block-editorial-lead { display: grid; grid-template-columns: 1.2fr .8fr; gap: 1rem; align-items: start; }
.block-editorial-side { display: grid; gap: .85rem; }
.card-grid-compact { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .75rem; }
.card-grid-compact .card-body { padding: .75rem; }
.card-grid-compact .card h3 { font-size: .95rem; }
.card-grid-overlay .card { position: relative; min-height: 220px; }
.card-grid-overlay .card-media img { min-height: 220px; object-fit: cover; }
.card-grid-overlay .card-body {
  position: absolute; inset: auto 0 0; padding: 1rem;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.72)); color: #fff;
}
.card-grid-overlay .card-body a, .card-grid-overlay .card-body time, .card-grid-overlay .chip { color: inherit; }
.block-minimal-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.block-minimal-list a { display: flex; justify-content: space-between; gap: 1rem; text-decoration: none; padding: .65rem 0; border-bottom: 1px solid var(--line); }
.block-authors.style-avatar_row .author-avatar-row { gap: 1.25rem; }
.block-authors.style-avatar_row .author-avatar-item { flex: 0 0 auto; text-align: center; text-decoration: none; }
.block-authors.style-minimal .author-minimal-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .35rem; }
.block-categories.style-chips .cat-chips,
.block-tags.style-chips .tag-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.block-categories.style-mosaic .cat-mosaic { display: grid; grid-template-columns: repeat(4, 1fr); gap: .75rem; }
.block-categories.style-mosaic .cat-card:first-child { grid-column: span 2; grid-row: span 2; }
.block-stats.style-grid .stat-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.block-stats.style-cards .stat-row article { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 1rem; }
.block-stats.style-band .stat-row { background: var(--accent-soft); border-radius: 16px; padding: 1.25rem; }
.block-search.style-hero .search-shell { text-align: center; padding: 2rem 0; }
.block-search.style-compact .search-box { border-radius: 999px; }
.block-html.style-boxed .html-box { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 1.5rem; }
.block-quote.style-pullquote blockquote { font-size: clamp(1.35rem, 3vw, 2rem); text-align: center; border: 0; }
.block-quote.style-card blockquote { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 1.5rem; }
.block-intro.style-center .intro-copy { text-align: center; margin-inline: auto; max-width: 52rem; }
.block-intro.style-narrow .intro-copy { max-width: 42ch; margin-inline: auto; }
.block-intro.style-split .intro-copy { columns: 2; gap: 2rem; }
.block-cta.style-inline .cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.block-cta.style-split .cta-inner { display: grid; grid-template-columns: 1fr auto; gap: 1rem; align-items: center; }
.block-newsletter.style-minimal .newsletter-shell { display: block; }
.block-newsletter.style-minimal .newsletter-copy { display: none; }
@media (max-width: 768px) {
  .block-editorial-lead, .block-intro.style-split .intro-copy { grid-template-columns: 1fr; columns: 1; }
  .block-categories.style-mosaic .cat-mosaic { grid-template-columns: repeat(2, 1fr); }
}
