/* Globevia News — public site styles. Mobile first, no framework. */

@font-face { font-family: "Newsreader"; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url(../fonts/newsreader-latin-opsz-normal.woff2) format("woff2-variations");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Newsreader"; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url(../fonts/newsreader-latin-ext-opsz-normal.woff2) format("woff2-variations");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Newsreader"; font-style: italic; font-display: swap; font-weight: 200 800;
  src: url(../fonts/newsreader-latin-opsz-italic.woff2) format("woff2-variations");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Newsreader"; font-style: italic; font-display: swap; font-weight: 200 800;
  src: url(../fonts/newsreader-latin-ext-opsz-italic.woff2) format("woff2-variations");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(../fonts/inter-latin-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(../fonts/inter-latin-ext-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }

:root {
  --ink: #0d1b2a;
  --ink-2: #1c2d40;
  --ink-soft: #33445a;
  --muted: #5a6573;
  --line: #e2dfd8;
  --line-strong: #c9c4ba;
  --paper: #ffffff;
  --paper-2: #f6f4ef;
  --paper-3: #ece8e0;
  --accent: #c8102e;
  --accent-ink: #a30d25;
  --focus: #1a5fd0;
  --serif: "Newsreader", "Iowan Old Style", "Charter", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1240px;
  --gutter: 16px;
  --radius: 4px;
  --shadow: 0 1px 2px rgba(13, 27, 42, .06), 0 6px 20px -8px rgba(13, 27, 42, .18);
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}
@media (min-width: 700px) { :root { --gutter: 24px; } }
@media (min-width: 1100px) { :root { --gutter: 32px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 90px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: 16px; line-height: 1.5;
  font-feature-settings: "cv11", "ss01"; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .18em; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 2px; }
main:focus { outline: none; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 820px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--radius); font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 12px; }
.icon { flex: none; vertical-align: middle; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 20px; border: 1px solid var(--ink); background: var(--ink); color: #fff; border-radius: var(--radius); font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.btn:hover { background: var(--ink-2); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--paper-2); }
.btn-lg { min-height: 50px; padding: 0 28px; font-size: 16px; }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 0; background: none; border-radius: 50%; cursor: pointer; color: var(--ink); }
.icon-btn:hover { background: var(--paper-2); }

/* ---------- Header ---------- */
.site-header { background: var(--paper); }
.topbar { display: none; background: var(--ink); color: #c9d2dc; font-size: 12.5px; }
.topbar-inner { display: flex; align-items: center; gap: 20px; min-height: 34px; }
.topbar-place { display: inline-flex; align-items: center; gap: 4px; }
.topbar-links { margin-left: auto; display: flex; gap: 18px; }
.topbar-links a { color: #e6ebf1; text-decoration: none; display: inline-flex; align-items: center; gap: 4px; }
.topbar-links a:hover { color: #fff; text-decoration: underline; }
@media (min-width: 900px) { .topbar { display: block; } }

.masthead { border-bottom: 1px solid var(--line); }
.masthead-inner { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; min-height: 64px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; color: var(--ink); justify-self: center; --logo-accent: var(--accent); }
.logo { display: block; height: 38px; width: auto; overflow: visible; }
.logo .gv-via, .logo .gv-dot { fill: var(--logo-accent); }
.logo .gv-grid { opacity: .38; }
.brand-sm .logo { height: 30px; }
.header-search { display: none; }
.search-link { justify-self: end; }
@media (min-width: 900px) {
  .masthead-inner { grid-template-columns: auto 1fr auto; min-height: 92px; gap: 24px; }
  .menu-toggle { display: none; }
  .brand { justify-self: start; }
  .masthead .logo { height: 70px; }
  .search-link { display: none; }
  .header-search { display: flex; grid-column: 3; align-items: center; border: 1px solid var(--line-strong); border-radius: 999px; padding-left: 16px; width: 280px; transition: border-color .2s, box-shadow .2s; }
  .header-search:focus-within { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(13, 27, 42, .08); }
  .header-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: inherit; font-size: 14.5px; height: 40px; }
  .header-search .icon-btn { width: 40px; height: 40px; }
}

.mainnav { position: sticky; top: 0; background: rgba(255, 255, 255, .96); border-bottom: 1px solid var(--line); backdrop-filter: saturate(180%) blur(8px); -webkit-backdrop-filter: saturate(180%) blur(8px); transition: box-shadow .25s var(--ease); }
.mainnav-list { list-style: none; display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; mask-image: linear-gradient(90deg, #000 85%, transparent); }
.mainnav-list::-webkit-scrollbar { display: none; }
.mainnav-list a { display: block; padding: 13px 12px; font-size: 14.5px; font-weight: 600; text-decoration: none; white-space: nowrap; color: var(--ink-soft); position: relative; }
.mainnav-list a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 0; height: 3px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.mainnav-list a:hover { color: var(--ink); }
.mainnav-list a:hover::after, .mainnav-list a[aria-current="page"]::after { transform: scaleX(1); }
.mainnav-list a[aria-current="page"] { color: var(--ink); }
@media (min-width: 1100px) { .mainnav-list { mask-image: none; justify-content: space-between; } .mainnav-list a { padding: 14px 10px; } }
/* the nav sits outside <header> so it can stay sticky while the masthead scrolls away */
.mainnav { z-index: 40; }
body.scrolled .mainnav { box-shadow: 0 4px 18px -10px rgba(13, 27, 42, .35); }

.breaking { background: var(--accent); color: #fff; }
.breaking-inner { display: flex; align-items: center; gap: 14px; min-height: 44px; padding-top: 8px; padding-bottom: 8px; }
.breaking-label { flex: none; display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; background: #fff; color: var(--accent); padding: 4px 10px; border-radius: 2px; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
@media (prefers-reduced-motion: no-preference) { .pulse { animation: pulse 1.6s infinite; } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(200, 16, 46, .6); } 70% { box-shadow: 0 0 0 8px rgba(200, 16, 46, 0); } 100% { box-shadow: 0 0 0 0 rgba(200, 16, 46, 0); } }
.breaking-viewport { flex: 1; min-width: 0; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 40px), transparent); }
.breaking-track { display: flex; width: max-content; }
.breaking-list { list-style: none; display: flex; gap: 0; flex: none; }
.breaking-list li { font-weight: 600; font-size: 15px; line-height: 1.35; white-space: nowrap; padding-right: 56px; position: relative; }
.breaking-list li::after { content: ""; position: absolute; right: 24px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: rgba(255,255,255,.55); }
.breaking-list[aria-hidden] { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .breaking-list[aria-hidden] { display: flex; }
  .breaking-track { animation: ticker var(--ticker-dur, 28s) linear infinite; }
  .breaking:hover .breaking-track, .breaking:focus-within .breaking-track { animation-play-state: paused; }
}
@media (prefers-reduced-motion: reduce) { .breaking-viewport { mask-image: none; } .breaking-list { flex-wrap: wrap; } .breaking-list li { white-space: normal; } }
@keyframes ticker { to { transform: translateX(-50%); } }
.breaking-list a { color: #fff; text-decoration: none; }
.breaking-list a:hover { text-decoration: underline; }
.breaking-list time { font-weight: 400; opacity: .85; font-size: 13px; margin-left: 6px; white-space: nowrap; }

/* Drawer (mobile menu) */
.drawer { position: fixed; inset: 0; z-index: 90; background: rgba(13, 27, 42, .45); }
.drawer[hidden] { display: none; }
.drawer-panel { position: absolute; inset: 0 auto 0 0; width: min(88vw, 360px); background: var(--paper); overflow-y: auto; padding: 12px 20px 40px; box-shadow: 20px 0 40px -20px rgba(0, 0, 0, .4); }
@media (prefers-reduced-motion: no-preference) {
  .drawer.is-open { animation: fade .2s ease-out; }
  .drawer.is-open .drawer-panel { animation: slide-in .28s var(--ease); }
}
@keyframes fade { from { opacity: 0; } }
@keyframes slide-in { from { transform: translateX(-100%); } }
.drawer-head { display: flex; align-items: center; justify-content: space-between; min-height: 52px; margin-bottom: 8px; }
.drawer-search { display: flex; border: 1px solid var(--line-strong); border-radius: var(--radius); margin-bottom: 18px; }
.drawer-search input { flex: 1; min-width: 0; border: 0; padding: 0 12px; height: 46px; font: inherit; background: none; }
.drawer-search button { width: 46px; border: 0; background: var(--ink); color: #fff; border-radius: 0 var(--radius) var(--radius) 0; }
.drawer-heading { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 18px 0 6px; }
.drawer-list { list-style: none; }
.drawer-list a { display: block; padding: 11px 0; font-family: var(--serif); font-size: 21px; font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--line); }
.drawer-list-small a { font-family: var(--sans); font-size: 15px; font-weight: 500; }
body.drawer-open { overflow: hidden; }

/* ---------- Typography helpers ---------- */
.kicker { font-size: 12px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.kicker a { color: inherit; text-decoration: none; }
.kicker a:hover { text-decoration: underline; }
.kicker-lg { font-size: 13px; }
.tag-breaking { background: var(--accent); color: #fff; padding: 2px 7px; border-radius: 2px; letter-spacing: .08em; }
.meta { font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.meta-sep { color: var(--line-strong); }

/* ---------- Cards ---------- */
.card { position: relative; display: flex; flex-direction: column; gap: 12px; height: 100%; }
.card-media { position: relative; overflow: hidden; aspect-ratio: 16 / 9; border-radius: var(--radius); background: var(--paper-3); }
.card-media img, .card-media .img-placeholder { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.img-placeholder { display: block; background: linear-gradient(135deg, var(--paper-3), var(--paper-2)); }
@media (prefers-reduced-motion: no-preference) {
  .card-media { background: linear-gradient(100deg, var(--paper-3) 30%, var(--paper-2) 50%, var(--paper-3) 70%) 0 0 / 300% 100%; animation: shimmer 1.6s linear infinite; }
  @keyframes shimmer { to { background-position: -150% 0; } }
}
.card-title { font-family: var(--serif); font-weight: 600; font-size: 21px; line-height: 1.18; letter-spacing: -.005em; font-variation-settings: "opsz" 36; }
.card-title a { text-decoration: none; background-image: linear-gradient(currentColor, currentColor); background-size: 0 1px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size .35s var(--ease); }
.card-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card:hover .card-title a, .card-title a:focus-visible { background-size: 100% 1px; }
.card:hover .card-media img { transform: scale(1.035); }
.card-title a:focus-visible { outline: none; }
.card:focus-within { outline: 3px solid var(--focus); outline-offset: 4px; border-radius: var(--radius); }
.card-excerpt { color: var(--ink-soft); font-size: 15px; line-height: 1.5; }
.card-body { display: flex; flex-direction: column; gap: 6px; }
.card-body .kicker { margin-bottom: 0; }
.card-body .meta { margin-top: 2px; }

.card-lead { gap: 16px; }
.card-lead .card-title { font-size: clamp(28px, 4.4vw, 46px); line-height: 1.06; letter-spacing: -.018em; font-weight: 650; font-variation-settings: "opsz" 72; }
.card-lead .card-excerpt { font-size: 17.5px; font-family: var(--serif); color: var(--ink-soft); line-height: 1.45; max-width: 62ch; }
.card-lead .card-media { aspect-ratio: 16 / 9; }

.card-compact { flex-direction: row-reverse; align-items: flex-start; gap: 14px; }
.card-compact .card-media { flex: none; width: 112px; aspect-ratio: 4 / 3; }
.card-compact .card-body { flex: 1; min-width: 0; }
.card-compact .card-title { font-size: 17.5px; line-height: 1.22; }
@media (min-width: 900px) { .card-compact .card-media { width: 132px; } }

.card-text .card-title { font-size: 19px; }

.card-result { flex-direction: column; }
@media (min-width: 700px) {
  .card-result { flex-direction: row; gap: 24px; }
  .card-result .card-media { flex: none; width: 240px; }
  .card-result .card-title { font-size: 23px; }
}

/* ---------- Layout blocks ---------- */
.band { padding-top: 36px; padding-bottom: 8px; }
.band-tight { padding-top: 8px; padding-bottom: 48px; }
.grid-3 { display: grid; gap: 32px 28px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; border-top: 3px solid var(--ink); padding-top: 12px; margin-bottom: 22px; }
.section-title { font-family: var(--sans); font-size: 15px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.section-title a { text-decoration: none; }
.section-title a:hover { color: var(--accent); }
.more-link { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--ink-soft); text-decoration: none; white-space: nowrap; }
.more-link:hover { color: var(--accent); }
.more-link .icon { transition: transform .2s var(--ease); }
.more-link:hover .icon { transform: translateX(3px); }

/* Top stories */
.top-stories { padding-top: 24px; }
.top-grid { display: grid; gap: 28px; }
.top-secondary { display: grid; gap: 22px; align-content: start; }
.top-secondary > div + div { border-top: 1px solid var(--line); padding-top: 20px; }
@media (min-width: 900px) {
  .top-stories { padding-top: 32px; }
  .top-grid { grid-template-columns: minmax(0, 1.72fr) minmax(0, 1fr); gap: 36px; }
  .top-lead { border-right: 1px solid var(--line); padding-right: 36px; }
}

/* Latest + Just in */
.latest-layout { display: grid; gap: 40px; }
@media (min-width: 1100px) { .latest-layout { grid-template-columns: minmax(0, 1fr) 320px; gap: 44px; } .latest-layout .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1240px) { .latest-layout .grid-3 { grid-template-columns: repeat(3, 1fr); } .latest-layout { grid-template-columns: minmax(0, 1fr) 300px; } }
.just-in { background: var(--paper-2); border-radius: var(--radius); padding: 20px 20px 8px; align-self: start; }
@media (min-width: 1100px) { .just-in { position: sticky; top: 72px; } }
.rail-title { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 12px; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
@media (prefers-reduced-motion: no-preference) { .live-dot { animation: pulse 1.6s infinite; } }
.timeline { list-style: none; }
.timeline li { display: grid; grid-template-columns: 50px 1fr; gap: 10px; padding: 12px 0; border-top: 1px solid var(--line); }
.timeline time { font-size: 13px; font-weight: 700; color: var(--accent); font-variant-numeric: tabular-nums; padding-top: 2px; }
.timeline-cat { display: block; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.timeline a { font-family: var(--serif); font-weight: 600; font-size: 16.5px; line-height: 1.25; text-decoration: none; }
.timeline a:hover { text-decoration: underline; }

/* Category sections on the homepage */
.home-section { padding-top: 44px; }
.section-layout { display: grid; gap: 24px; }
.section-list { display: grid; gap: 20px; align-content: start; }
.section-list > div + div { border-top: 1px solid var(--line); padding-top: 20px; }
@media (min-width: 900px) {
  .section-layout { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 36px; }
  .section-main .card-title { font-size: 28px; line-height: 1.12; }
  .home-section.is-alt .section-main { order: 2; }
}

/* ---------- Page headers ---------- */
.page-header { padding-top: 22px; padding-bottom: 24px; }
.page-title { font-family: var(--serif); font-size: clamp(34px, 5vw, 54px); line-height: 1.05; letter-spacing: -.02em; font-weight: 650; font-variation-settings: "opsz" 72; }
.page-no { font-family: var(--sans); font-size: .4em; font-weight: 600; color: var(--muted); letter-spacing: 0; vertical-align: middle; margin-left: 8px; }
.page-intro { margin-top: 12px; font-size: 18px; color: var(--ink-soft); max-width: 68ch; font-family: var(--serif); line-height: 1.5; }
.page-header .meta { margin-top: 10px; }
.category-lead { padding-bottom: 32px; margin-bottom: 32px; border-bottom: 1px solid var(--line); }
@media (min-width: 900px) {
  .category-lead .card-lead { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 32px; align-items: center; }
  .category-lead .card-lead .card-title { font-size: clamp(30px, 3.2vw, 42px); }
}
.subnav { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.subnav a, .chip-list a, .tag-list a { display: inline-block; padding: 7px 14px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 14px; font-weight: 500; text-decoration: none; transition: background .2s, border-color .2s; }
.subnav a:hover, .chip-list a:hover, .tag-list a:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip-list, .tag-list { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }

.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.breadcrumbs li:not(:last-child)::after { content: "›"; margin-left: 6px; color: var(--line-strong); }
.breadcrumbs a { text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; color: var(--ink); }
.breadcrumbs [aria-current] { color: var(--ink-soft); }

/* Pagination */
.pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; margin-top: 48px; }
.page-list { list-style: none; display: flex; gap: 4px; }
.page-list a, .page-list span { display: grid; place-items: center; min-width: 42px; height: 42px; padding: 0 8px; border-radius: var(--radius); text-decoration: none; font-weight: 600; font-size: 15px; }
.page-list a:hover { background: var(--paper-2); }
.page-list [aria-current] { background: var(--ink); color: #fff; }
.page-list .gap { display: grid; place-items: center; min-width: 24px; color: var(--muted); }
.page-btn { display: inline-flex; align-items: center; gap: 6px; height: 42px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: var(--radius); text-decoration: none; font-weight: 600; font-size: 14.5px; }
.page-btn:hover { border-color: var(--ink); }

/* ---------- Article ---------- */
.article-wrap { display: grid; gap: 48px; padding-top: 20px; }
@media (min-width: 1100px) { .article-wrap { grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; padding-top: 28px; } }
.article { min-width: 0; }
.article-header { max-width: 820px; }
.article-title { font-family: var(--serif); font-size: clamp(32px, 5.2vw, 54px); line-height: 1.06; letter-spacing: -.02em; font-weight: 650; font-variation-settings: "opsz" 72; text-wrap: balance; }
.article-deck { margin-top: 16px; font-family: var(--serif); font-size: clamp(19px, 2.2vw, 23px); line-height: 1.4; color: var(--ink-soft); font-weight: 400; text-wrap: pretty; }
.byline-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 22px; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.byline { display: flex; align-items: center; gap: 12px; }
.byline-photo { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.byline-name { font-weight: 700; font-size: 15px; }
.byline-name a { text-decoration: none; }
.byline-name a:hover { text-decoration: underline; }
.byline-role { font-weight: 400; color: var(--muted); }
.byline-dates { font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }

.share { display: flex; align-items: center; gap: 4px; }
.share-label { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-right: 6px; }
.share-btn { position: relative; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: var(--paper); color: var(--ink-soft); cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s var(--ease); }
.share-btn:hover { background: var(--ink); border-color: var(--ink); color: #fff; transform: translateY(-1px); }
.share-btn[hidden] { display: none; }
.copied { position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; font-size: 12px; padding: 4px 8px; border-radius: 3px; white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity .2s; }
.copied:not(:empty) { opacity: 1; }

.article-figure { margin: 28px 0 0; }
.article-figure-media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--paper-3); border-radius: var(--radius); }
.article-figure-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.article-figure figcaption, .prose figcaption { font-size: 14px; color: var(--muted); margin-top: 10px; line-height: 1.45; max-width: 680px; }
.credit { color: var(--muted); font-size: 12.5px; letter-spacing: .02em; }

.article-body { max-width: 680px; margin-top: 32px; }
.prose { font-family: var(--serif); font-size: 19px; line-height: 1.68; color: #16212e; font-variation-settings: "opsz" 16; }
@media (min-width: 700px) { .prose { font-size: 20.5px; } }
.prose > * + * { margin-top: 1.05em; }
.prose h2 { font-size: 1.45em; line-height: 1.2; margin-top: 1.7em; letter-spacing: -.01em; font-variation-settings: "opsz" 48; }
.prose h3 { font-size: 1.2em; line-height: 1.25; margin-top: 1.5em; }
.prose h4 { font-family: var(--sans); font-size: .85em; text-transform: uppercase; letter-spacing: .06em; margin-top: 1.5em; }
.prose a { color: var(--ink); text-decoration-color: var(--accent); text-decoration-thickness: 2px; }
.prose a:hover { color: var(--accent-ink); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .4em; }
.prose blockquote { margin-left: 0; margin-right: 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--accent); font-style: italic; color: var(--ink-soft); }
.prose blockquote.pull-quote, .prose .pull-quote { border: 0; padding: 18px 0; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line); font-size: 1.3em; line-height: 1.3; font-style: normal; font-weight: 600; color: var(--ink); }
.prose figure { margin: 1.8em 0; }
.prose figure img { border-radius: var(--radius); width: 100%; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.prose table { width: 100%; border-collapse: collapse; font-family: var(--sans); font-size: 15px; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: 8px 10px; text-align: left; }
.prose iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: var(--radius); }
.prose strong { font-weight: 700; }
.prose-sm { font-size: 17px; }
.static-prose { max-width: 720px; padding-bottom: 64px; }
.static-prose h2 { font-size: 1.3em; }

.import-note { font-family: var(--sans); font-size: 15px; line-height: 1.55; background: var(--paper-2); border-left: 3px solid var(--ink); padding: 16px 18px; border-radius: 0 var(--radius) var(--radius) 0; }
.import-note p + p { margin-top: 8px; }
.import-note a { font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }

.sources { font-family: var(--sans); font-size: 15px; margin-top: 2em; padding-top: 1em; border-top: 1px solid var(--line); }
.sources h2 { font-family: var(--sans); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; margin: 0 0 8px; }
.sources ul { padding-left: 1.1em; }

.article-footer { max-width: 680px; margin-top: 40px; display: grid; gap: 28px; }
.article-footer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.more-in { font-size: 15px; }
.more-in a { font-weight: 700; }
.author-box { display: flex; gap: 16px; padding: 20px; background: var(--paper-2); border-radius: var(--radius); }
.author-box img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex: none; }
.author-box-name { font-family: var(--serif); font-size: 20px; font-weight: 700; }
.author-box-name a { text-decoration: none; }
.author-box-role { font-size: 13px; color: var(--muted); margin-top: 2px; }
.author-box-bio { font-size: 15px; margin-top: 8px; color: var(--ink-soft); }
.adjacent { display: grid; gap: 12px; }
@media (min-width: 640px) { .adjacent { grid-template-columns: 1fr 1fr; } }
.adjacent-link { display: flex; flex-direction: column; gap: 6px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; transition: border-color .2s, box-shadow .2s; }
.adjacent-link:hover { border-color: var(--ink); box-shadow: var(--shadow); }
.adjacent-next { text-align: right; align-items: flex-end; }
.adjacent-label { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.adjacent-title { font-family: var(--serif); font-weight: 600; font-size: 17px; line-height: 1.25; }

.article-rail { display: none; }
@media (min-width: 1100px) { .article-rail { display: block; } }
.rail-sticky { position: sticky; top: 72px; border-top: 3px solid var(--ink); padding-top: 12px; }
.rail-list { list-style: none; }
.rail-list li { display: grid; grid-template-columns: 28px 1fr; gap: 10px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.rail-num { font-family: var(--serif); font-size: 26px; font-weight: 700; line-height: 1; color: var(--line-strong); }
.rail-list a { display: block; font-family: var(--serif); font-weight: 600; font-size: 16.5px; line-height: 1.25; text-decoration: none; }
.rail-list a:hover { text-decoration: underline; }
.rail-list time { display: block; font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.related { padding-bottom: 56px; }

/* Preview bar (admin) */
.preview-bar { background: #fff6d6; border-bottom: 1px solid #e8d48a; font-size: 14px; padding: 10px 0; }
.preview-bar a { font-weight: 700; margin-left: 8px; }
.seo-preview { padding-top: 16px; }
.seo-preview-label { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.serp { display: flex; flex-direction: column; gap: 3px; max-width: 600px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 8px; font-family: Arial, sans-serif; }
.serp-url { font-size: 13px; color: #202124; }
.serp-title { font-size: 20px; color: #1a0dab; line-height: 1.3; }
.serp-desc { font-size: 14px; color: #4d5156; line-height: 1.5; }

/* ---------- Author page ---------- */
.author-hero { display: flex; gap: 22px; align-items: flex-start; }
.author-photo { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; flex: none; }
.author-initials { flex: none; display: grid; place-items: center; width: 96px; height: 96px; border-radius: 50%; background: var(--ink); color: #fff; font-family: var(--serif); font-size: 42px; font-weight: 700; }
.author-role { font-weight: 600; color: var(--muted); margin-top: 6px; }
@media (min-width: 700px) { .author-photo, .author-initials { width: 120px; height: 120px; } }

/* ---------- Search ---------- */
.search-big { display: flex; gap: 8px; margin-top: 18px; max-width: 680px; }
.search-big input { flex: 1; min-width: 0; height: 52px; padding: 0 16px; border: 1px solid var(--line-strong); border-radius: var(--radius); font: inherit; font-size: 17px; background: var(--paper); }
.search-big input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(13, 27, 42, .1); }
.search-big .btn { height: 52px; }
.search-count { margin-top: 16px; color: var(--ink-soft); }
.search-results { list-style: none; display: grid; gap: 0; margin-bottom: 16px; }
.search-results .result { padding: 24px 0; border-bottom: 1px solid var(--line); }
.search-results .result:first-child { padding-top: 8px; }

/* ---------- Forms / Contact ---------- */
.contact-layout { display: grid; gap: 32px; }
@media (min-width: 900px) { .contact-layout { grid-template-columns: 320px minmax(0, 1fr); gap: 56px; } }
.contact-card { background: var(--paper-2); border-radius: var(--radius); padding: 24px; align-self: start; }
.contact-card h2 { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 18px 0 6px; }
.contact-card h2:first-child { margin-top: 0; }
.contact-card address { font-style: normal; line-height: 1.6; }
.contact-card a { font-weight: 600; }
.form { display: grid; gap: 18px; max-width: 680px; }
.form-row-2 { display: grid; gap: 18px; }
@media (min-width: 640px) { .form-row-2 { grid-template-columns: 1fr 1fr; } }
.field label { display: block; font-weight: 600; font-size: 14.5px; margin-bottom: 6px; }
.field input, .field textarea { width: 100%; border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 12px 14px; font: inherit; font-size: 16px; background: var(--paper); transition: border-color .2s, box-shadow .2s; }
.field textarea { resize: vertical; min-height: 160px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(13, 27, 42, .1); }
.has-error input, .has-error textarea { border-color: var(--accent); }
.field-error { color: var(--accent-ink); font-size: 14px; margin-top: 6px; font-weight: 500; }
.form-note { font-size: 14px; color: var(--muted); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.notice { padding: 16px 18px; border-radius: var(--radius); margin-bottom: 18px; }
.notice h2 { font-family: var(--serif); font-size: 24px; margin-bottom: 6px; }
.notice-success { background: #eaf6ee; border: 1px solid #b9dcc5; }
.notice-error { background: #fdecee; border: 1px solid #f2b8c1; color: var(--accent-ink); font-weight: 500; }

/* ---------- 404 / empty ---------- */
.notfound { padding-top: 56px; padding-bottom: 24px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.notfound-code { font-family: var(--serif); font-size: clamp(80px, 16vw, 150px); font-weight: 700; line-height: .9; color: var(--paper-3); letter-spacing: -.04em; }
.notfound .page-intro { margin-left: auto; margin-right: auto; }
.notfound .search-big { width: 100%; }
.notfound-sub { font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-top: 16px; }
.notfound .chip-list { justify-content: center; }
.empty-state { padding: 48px 0; color: var(--ink-soft); display: grid; gap: 16px; }
.empty-state h2 { font-family: var(--serif); font-size: 30px; color: var(--ink); }

/* ---------- Footer ---------- */
.site-footer { margin-top: 56px; background: var(--ink); color: #c4ccd6; font-size: 15px; }
.footer-grid { display: grid; gap: 32px; padding-top: 48px; padding-bottom: 32px; }
@media (min-width: 700px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; } }
.brand-invert { color: #fff; --logo-accent: #ff4d68; }
.brand-invert .logo { height: 52px; }
.brand-invert .logo .gv-grid { opacity: .45; }
.footer-tagline { margin-top: 14px; font-family: var(--serif); font-size: 18px; color: #e8edf2; max-width: 34ch; }
.footer-address { font-style: normal; margin-top: 16px; line-height: 1.6; }
.site-footer a { color: #e8edf2; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-heading { font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #8b99a8; margin-bottom: 12px; }
.footer-col ul { list-style: none; display: grid; gap: 8px; }
.footer-col a { display: inline-flex; align-items: center; gap: 6px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 20px; padding-bottom: 28px; font-size: 13.5px; color: #8b99a8; }

/* ---------- Consent ---------- */
.consent { position: fixed; z-index: 80; left: 12px; right: 12px; bottom: 12px; max-width: 560px; margin-left: auto; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 18px; box-shadow: 0 18px 50px -12px rgba(13, 27, 42, .4); font-size: 14.5px; }
.consent[hidden] { display: none; }
.consent-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 12px; }

/* ---------- Motion ---------- */
/* Logo intro on the homepage: the G draws itself, the dot drops in, "via" glides in. */
@media (prefers-reduced-motion: no-preference) {
  .is-home .logo-animated .gv-ring { stroke-dasharray: 100; animation: gv-draw 1.1s .1s cubic-bezier(.65,0,.35,1) both; }
  .is-home .logo-animated .gv-grid { animation: gv-fade .8s .7s ease-out both; }
  .is-home .logo-animated .gv-dot { transform-box: fill-box; transform-origin: center; animation: gv-pop .55s 1s cubic-bezier(.34,1.56,.64,1) both; }
  .is-home .logo-animated .gv-globe { animation: gv-rise .7s .25s var(--ease) both; }
  .is-home .logo-animated .gv-via { animation: gv-slide .8s .55s var(--ease) both; }
  .is-home .logo-animated .gv-news { animation: gv-fade .6s 1s ease-out both; }
  .brand .gv-dot { transform-box: fill-box; transform-origin: center; transition: transform .3s cubic-bezier(.34,1.56,.64,1); }
  .brand:hover .gv-dot { transform: scale(1.35); }
  .brand .gv-mark { transform-box: fill-box; }
  .brand .gv-via { transition: transform .4s var(--ease); }
  .brand:hover .gv-via { transform: translateX(3px); }
}
@keyframes gv-draw { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
@keyframes gv-fade { from { opacity: 0; } }
@keyframes gv-pop { from { transform: scale(0); } }
@keyframes gv-rise { from { opacity: 0; transform: translateY(10px); } }
@keyframes gv-slide { from { opacity: 0; transform: translateX(-14px); } }

/* Images fade in once decoded; the shimmer behind them acts as a loading skeleton. */
.img-fade { opacity: 0; transition: opacity .6s ease-out; }
.img-fade.is-loaded { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .top-lead .card-media img.is-loaded, .article-figure-media img.is-loaded, .category-lead .card-media img.is-loaded { animation: kenburns 1.8s var(--ease) both; }
  .card-lift { transition: transform .35s var(--ease); }
  .grid-3 > .reveal-pending:nth-child(3n+2) { transition-delay: .08s; }
  .grid-3 > .reveal-pending:nth-child(3n+3) { transition-delay: .16s; }
  .section-list > .reveal-pending:nth-child(2) { transition-delay: .08s; }
  .section-list > .reveal-pending:nth-child(3) { transition-delay: .16s; }
}
@keyframes kenburns { from { transform: scale(1.07); } to { transform: scale(1); } }
.card:hover .card-media img.is-loaded { animation: none; }

/* Reading progress on article pages */
.read-progress { position: fixed; z-index: 60; top: 0; left: 0; right: 0; height: 3px; pointer-events: none; }
.read-progress span { display: block; height: 100%; width: 100%; background: var(--accent); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }

@media (prefers-reduced-motion: no-preference) {
  .reveal-pending { opacity: 0; transform: translateY(14px); }
  .reveal-pending.is-in { opacity: 1; transform: none; transition: opacity .55s var(--ease), transform .55s var(--ease); }
  @view-transition { navigation: auto; }
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: .2s; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

@media print {
  .site-header, .site-footer, .article-rail, .share, .related, .adjacent, .consent, .breaking { display: none !important; }
  .prose { font-size: 12pt; }
}
