:root {
  --ink: #123B61;
  --muted: #5b6b7f;
  --line: #d7e0ea;
  --red: #D71920;
  --paper: #ffffff;
  --soft: #f3f6fa;
  --bg: #ffffff;
  --card: #ffffff;
  --shadow: 0 10px 30px rgba(18, 59, 97, 0.08);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'Roboto', sans-serif;
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { width: 100%; height: 100%; object-fit: cover; display: block; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }

.wrap, .container {
  width: min(1280px, calc(100% - 44px));
  margin-inline: auto;
}
.serif, .logo, .section-title h2, .editor-choice h2, .news-item h3,
.v1-hcat-feature__title, .v1-hcat-compact h3, .v1-hcat-slide-card h3,
.v1-hcat-list__item h3, .v1-hcat-overlay__title, .v1-article-detail__title,
.v1-author-profile h1, .v1-author-profile h2, .v1-empty__title {
  font-family: 'Roboto', sans-serif;
}
.small, .meta, small.meta { font-size: 10px; color: var(--muted); }
.category {
  display: inline-block;
  width: fit-content;
  max-width: 100%;
  align-self: flex-start;
  color: var(--red);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  line-height: 1.4;
}
.meta { color: var(--muted); font-size: 10px; margin-top: 12px; line-height: 1.5; }
.section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 10px;
  margin-bottom: 20px;
}
.section-title h2 {
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 1.2;
  font-weight: 700;
}
.section-title h2 a:hover,
.section-title a:hover { color: var(--red); }
.section-title a, .section-title .section-link {
  font-size: 11px;
  color: var(--red);
  font-weight: 700;
  white-space: nowrap;
}

/* Topline */
.topline, .topbar {
  border-bottom: 1px solid var(--line);
  font-size: 10px;
  color: var(--muted);
  background: var(--paper);
}
.topline .wrap, .topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-top: 10px;
  padding-bottom: 10px;
  min-height: 36px;
}
.top-links { display: flex; gap: 20px; align-items: center; }
.top-links ul, .top-links-menu { display: flex; gap: 20px; align-items: center; list-style: none; margin: 0; padding: 0; }
.top-links a:hover { color: var(--red); }

/* Masthead */
.masthead, .header {
  position: relative;
  text-align: center;
  padding: 28px 0 24px;
  border-bottom: 0;
}
.header { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 20px; text-align: left; }
.header-left { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .8px; min-width: 0; }
.header-right { display: flex; justify-content: flex-end; align-items: center; gap: 14px; min-width: 0; }
.logo {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  color: var(--ink);
  text-align: center;
  justify-self: center;
  min-width: 0;
  max-width: 100%;
}
.logo img { width: auto; max-width: 280px; height: 56px; object-fit: contain; margin: 0 auto; }
.logo-wordmark, .logo strong, .logo__text {
  font-family: 'Roboto', sans-serif;
  font-size: clamp(42px, 6vw, 65px);
  line-height: .95;
  font-weight: 800;
  letter-spacing: -3px;
  color: var(--ink);
}
.logo-wordmark span, .logo strong span, .logo__text span { color: var(--red); }
.logo p, .logo small {
  display: block;
  font-size: 10px;
  letter-spacing: 4px;
  margin-top: 9px;
  color: var(--muted);
  font-family: 'Roboto', sans-serif;
  font-weight: 500;
  text-transform: uppercase;
}

/* Search */
.v1-search-toggle-wrap { position: relative; display: inline-flex; align-items: center; }
.v1-search-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  transition: color .2s ease, border-color .2s ease, background-color .2s ease;
}
.v1-search-toggle:hover,
.v1-search-toggle[aria-expanded="true"] { color: var(--red); border-color: #c9c9c9; }
.v1-search-toggle:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.v1-search-toggle svg { display: block; width: 18px; height: 18px; }
.v1-search-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  left: auto;
  z-index: 120;
  width: min(320px, calc(100vw - 28px));
  padding: 10px;
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: 0 10px 30px rgba(23, 23, 23, 0.08);
}
.v1-search-panel[hidden] { display: none !important; }
.v1-search-panel form, .header-right form { display: flex; align-items: center; border: 1px solid var(--line); background: var(--paper); max-width: 100%; min-width: 0; }
.v1-search-panel input[type="search"], .header-right input[type="search"] {
  width: 100%; max-width: 100%; min-width: 0; padding: 8px 10px; border: 0; background: transparent; color: var(--ink);
  font: 12px 'Roboto', sans-serif; outline: none;
}
.v1-search-panel button[type="submit"], .header-right button[type="submit"] {
  padding: 8px 12px; border: 0; border-left: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; flex: 0 0 auto;
  font: 700 10px 'Roboto', sans-serif; letter-spacing: .4px; text-transform: uppercase;
}
.v1-search-panel button[type="submit"]:hover, .header-right button[type="submit"]:hover { color: var(--red); }
.v1nt-toggle-slot { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; flex: 0 0 32px; }

/* Navigation */
.nav, .navigation {
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav .wrap, .navigation-inner, .nav-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 27px;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav .wrap::-webkit-scrollbar, .navigation-inner::-webkit-scrollbar { display: none; }
.nav a, .navigation a, .navigation-inner a, .navigation-inner li > a {
  white-space: nowrap;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .4px;
  padding: 15px 0;
  display: inline-block;
}
.nav a:hover, .navigation a:hover, .navigation-inner a:hover,
.nav .current-menu-item > a, .navigation .current-menu-item > a, .navigation-inner .current-menu-item > a { color: var(--red); }
.navigation-inner ul, .v1-nav__list { display: flex; gap: 27px; align-items: center; list-style: none; margin: 0; padding: 0; }

/* Ticker */
.ticker { border-bottom: 1px solid var(--line); background: var(--paper); }
.ticker .wrap { display: flex; align-items: center; gap: 15px; padding-top: 12px; padding-bottom: 12px; }
.ticker-label {
  background: var(--red); color: #fff; padding: 7px 12px;
  font-size: 9px; font-weight: 800; letter-spacing: .8px; white-space: nowrap; text-transform: uppercase;
}
.ticker-text { font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink); }
.ticker-text a:hover { color: var(--red); }

/* Mobile nav */
.mobile-nav { display: none; border-bottom: 1px solid var(--line); background: var(--paper); }
.mobile-nav__bar .wrap, .mobile-nav__bar .container { padding-top: 0; padding-bottom: 0; }
.mobile-nav__toggle {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  padding: 12px 0; font-size: 11px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; color: var(--ink);
}
.mobile-nav__panel { border-top: 1px solid var(--line); background: var(--soft); padding: 8px 0 14px; }
.mobile-nav__panel .navigation-inner { display: block; overflow: visible; }
.mobile-nav__panel .navigation-inner ul { display: block; }
.mobile-nav__panel .navigation-inner a { display: block; padding: 10px 0; border-bottom: 1px solid var(--line); }
.mobile-nav__panel .navigation-inner li:last-child a { border-bottom: 0; }

/* Topic chips */
.topic { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 14px 0; }
.topic strong { font-size: 10px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--red); margin-right: 4px; }
.topic a { font-size: 11px; padding: 6px 10px; border: 1px solid var(--line); color: var(--ink); background: var(--paper); }
.topic a:hover { border-color: var(--red); color: var(--red); }

/* Ad */
.ad, .advertisement {
  margin: 24px auto;
  max-width: 970px;
  min-height: 90px;
  background: #f7f7f7;
  border: 1px dashed #ccc;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #aaa;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* Generic grids */
.hero-grid { display: grid; grid-template-columns: minmax(0,2fr) minmax(0,1.1fr) 280px; gap: 28px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.left-stack, .middle-stack, .right-stack { min-width: 0; }
.right-stack { border-left: 1px solid var(--line); padding-left: 28px; }
.trending h3 { font-size: 12px; letter-spacing: 1px; padding-bottom: 10px; margin-bottom: 14px; border-bottom: 2px solid var(--ink); text-transform: uppercase; font-family: 'Roboto', sans-serif; font-weight: 800; }
.trend { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.trend:last-child { border-bottom: 0; padding-bottom: 0; }
.trend-num { color: #ddd; font-family: 'Roboto', sans-serif; font-size: 34px; line-height: 1; font-weight: 700; flex: 0 0 auto; }
.trend h4 { font-size: 13px; line-height: 1.45; font-weight: 600; }
.trend h4 a:hover { color: var(--red); }

/* Lead story */
.lead-story { display: flex; flex-direction: column; }
.lead-story .media { aspect-ratio: 16/10; overflow: hidden; margin-bottom: 18px; background: var(--soft); width: 100%; }
.lead-story h1 { font-size: clamp(30px, 4vw, 44px); line-height: 1.08; letter-spacing: -1px; margin-bottom: 14px; font-weight: 700; }
.lead-story h1 a:hover { color: var(--red); }
.lead-story p { font-size: 14px; line-height: 1.8; color: #555; max-width: 62ch; margin: 0; }
.lead-story .meta { margin-top: 10px; }
.story-card { display: grid; grid-template-columns: 118px 1fr; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); align-items: start; }
.story-card:first-child { padding-top: 0; }
.story-card:last-child { border-bottom: 0; padding-bottom: 0; }
.story-card .thumb { aspect-ratio: 1/1; overflow: hidden; background: var(--soft); }
.story-card h3 { font-size: 16px; line-height: 1.4; font-weight: 700; margin-bottom: 4px; }
.story-card h3 a:hover { color: var(--red); }
.story-card p { font-size: 12px; color: #666; line-height: 1.6; margin-top: 6px; }
.story-card > div { display: flex; flex-direction: column; justify-content: flex-start; min-width: 0; }

/* Section spacing */
.section { padding: 34px 0; border-bottom: 1px solid var(--line); }
.section:last-child { border-bottom: 0; }

/* Editor grid */
.editor-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: start; }
.editor-card { display: flex; flex-direction: column; min-width: 0; }
.editor-card .thumb { aspect-ratio: 16/10; overflow: hidden; margin-bottom: 14px; background: var(--soft); width: 100%; }
.editor-card h3 { font-size: 22px; line-height: 1.3; margin-bottom: 8px; font-weight: 700; }
.editor-card h3 a:hover { color: var(--red); }
.editor-card p { font-size: 13px; color: #666; line-height: 1.7; margin: 0; }
.editor-card .meta { margin-top: 10px; }

/* Latest layout */
.latest-layout { display: grid; grid-template-columns: minmax(0,1fr) 320px; gap: 34px; }
.latest-main { min-width: 0; }
.latest-layout .news-grid, .v1-home-latest-section .news-grid { grid-template-columns: 1fr; }
.latest-list .item { display: grid; grid-template-columns: 190px 1fr; gap: 18px; padding: 20px 0; border-bottom: 1px solid var(--line); align-items: start; }
.latest-list .item:first-child { padding-top: 0; }
.latest-list .thumb { aspect-ratio: 16/10; overflow: hidden; background: var(--soft); }
.latest-list h3 { font-size: 24px; line-height: 1.3; margin-bottom: 8px; font-weight: 700; }
.latest-list h3 a:hover { color: var(--red); }
.latest-list p { font-size: 13px; line-height: 1.75; color: #666; max-width: 60ch; }

/* Sidebar */
.sidebar-box { padding: 18px 0; border-bottom: 1px solid var(--line); }
.sidebar-box:first-child { padding-top: 0; }
.sidebar-box:last-child { border-bottom: 0; }
.sidebar-box h3 { font-size: 11px; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 14px; font-weight: 800; }
.popular li { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid #eee; font-size: 13px; line-height: 1.45; }
.popular li:last-child { border-bottom: 0; }
.popular span { color: var(--red); font-weight: 800; font-size: 12px; flex: 0 0 auto; width: 18px; }
.popular a:hover { color: var(--red); }

/* Category sections */
.category-section { padding: 34px 0; border-bottom: 1px solid var(--line); }
.category-grid { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 24px; align-items: start; }
.category-main { display: flex; flex-direction: column; min-width: 0; }
.category-main .thumb { aspect-ratio: 16/10; overflow: hidden; margin-bottom: 14px; background: var(--soft); width: 100%; }
.category-main h3 { font-size: 28px; line-height: 1.25; margin-bottom: 8px; font-weight: 700; }
.category-main h3 a:hover { color: var(--red); }
.category-main p { font-size: 13px; color: #666; line-height: 1.7; margin: 0; }
.category-main .meta { margin-top: 10px; }
.category-column { border-left: 1px solid var(--line); padding-left: 24px; min-width: 0; }
.category-column .mini { padding: 14px 0; border-bottom: 1px solid var(--line); }
.category-column .mini:first-child { padding-top: 0; }
.category-column .mini:last-child { border-bottom: 0; padding-bottom: 0; }
.category-column h4 { font-size: 15px; line-height: 1.45; font-weight: 700; }
.category-column h4 a:hover { color: var(--red); }
.category-column p { font-size: 12px; color: #666; line-height: 1.6; margin-top: 6px; }

/* Wide story */
.wide-story { display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; align-items: start; }
.wide-story .thumb { aspect-ratio: 16/10; overflow: hidden; background: var(--soft); width: 100%; }
.wide-story > div { display: flex; flex-direction: column; justify-content: flex-start; min-width: 0; }
.wide-story h3 { font-size: 40px; line-height: 1.15; margin-bottom: 12px; font-weight: 700; }
.wide-story h3 a:hover { color: var(--red); }
.wide-story p { font-size: 14px; line-height: 1.8; color: #666; max-width: 58ch; margin: 0; }
.wide-story .meta { margin-top: 10px; }

/* Opinion */
.opinion-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.opinion-card { padding-top: 14px; border-top: 1px solid var(--line); }
.opinion-card .quote { font-size: 28px; color: var(--red); line-height: 1; margin-bottom: 10px; font-family: 'Roboto', sans-serif; }
.opinion-card h3 { font-size: 18px; line-height: 1.45; margin-bottom: 14px; font-weight: 700; }
.opinion-card h3 a:hover { color: var(--red); }
.opinion-author { display: flex; gap: 10px; align-items: center; font-size: 12px; color: #666; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: #ddd; flex: 0 0 auto; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }

/* Legacy / template compatibility */
.content-grid { display: grid; grid-template-columns: minmax(0,1fr) 320px; gap: 34px; margin-top: 24px; }
.content-grid > * { min-width: 0; }
.news-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
.news-item {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.news-item img { width: 160px; height: 112px; object-fit: cover; background: var(--soft); }
.news-item h3 { font-size: 20px; line-height: 1.35; margin: 0 0 6px; font-weight: 700; }
.news-item h3 a:hover { color: var(--red); }
.news-item .category { margin-bottom: 6px; }
.news-item .meta, .news-item small { font-size: 10px; color: var(--muted); }
.news-item > div { display: flex; flex-direction: column; justify-content: flex-start; min-width: 0; }

.editor-choice { border-top: 2px solid var(--ink); padding-top: 16px; }
.editor-choice h2 { font-size: 12px; text-transform: uppercase; letter-spacing: 1.2px; margin-bottom: 4px; font-weight: 800; font-family: 'Roboto', sans-serif; color: var(--ink); }
.editor-item { padding: 12px 0; border-bottom: 1px solid var(--line); }
.editor-item:last-child { border-bottom: 0; padding-bottom: 0; }
.editor-item small { display: block; color: var(--muted); font-size: 10px; margin-bottom: 4px; text-transform: uppercase; letter-spacing: .6px; line-height: 1.4; }
.editor-item h3 { font-size: 14px; line-height: 1.5; font-weight: 600; margin: 0; font-family: 'Roboto', sans-serif; color: var(--ink); }
.editor-item h3 a { color: inherit; text-decoration: none; }
.editor-item h3 a:hover { color: var(--red); }

/* Category page - masculine, bold THE DAILY */
/* Category page - editorial / THE DAILY */
.v1-category-page {
  --v1-cat-rule: #1a1a1a;
  --v1-cat-soft: #6a6a6a;
  padding-top: 8px;
}

@keyframes v1-category-rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

.v1-category-hero {
  position: relative;
  margin: 0 0 30px;
  padding: 30px 0 24px;
  border-top: 4px solid var(--ink);
  border-bottom: 1px solid #cfcfcf;
  background:
    linear-gradient(180deg, rgba(23, 23, 23, 0.035), rgba(23, 23, 23, 0) 55%),
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 10px,
      rgba(23, 23, 23, 0.012) 10px,
      rgba(23, 23, 23, 0.012) 20px
    );
}

.v1-category-hero__inner {
  max-width: 980px;
  animation: v1-category-rise .45s ease-out both;
}

.v1-category-hero__kicker {
  margin: 0 0 12px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--red);
}

.v1-category-hero__title {
  margin: 0;
  font-size: clamp(34px, 6vw, 68px);
  line-height: .92;
  font-weight: 900;
  letter-spacing: -1.5px;
  text-transform: uppercase;
  color: var(--ink);
  text-wrap: balance;
}

.v1-category-hero__desc {
  margin-top: 18px;
  max-width: 68ch;
  font-size: 14px;
  line-height: 1.75;
  color: #404040;
}

.v1-category-hero__desc p {
  margin: 0;
}

.v1-category-hero__desc p + p {
  margin-top: .75em;
}

.v1-category-hero__meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid #d8d8d8;
}

.v1-category-hero__meta-item {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}

.v1-category-hero__meta-value {
  font-size: 22px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: -.5px;
  color: var(--ink);
}

.v1-category-hero__meta-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--v1-cat-soft);
}

.v1-category-hero__meta-divider {
  width: 32px;
  height: 1px;
  background: #bdbdbd;
  flex: 0 0 auto;
}

.v1-category-page .v1-category-layout.content-grid {
  margin-top: 0;
  gap: 38px;
}

.v1-category-main {
  min-width: 0;
}

.v1-category-feed.news-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 28px;
  align-items: start;
}

.v1-category-lead {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: 28px;
  padding: 0 0 28px;
  margin-bottom: 2px;
  border-bottom: 2px solid var(--ink);
}

.v1-category-lead__media {
  position: relative;
  display: block;
  overflow: hidden;
  background: #e9e9e7;
  aspect-ratio: 16 / 10;
  min-height: 280px;
}

.v1-category-lead__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .55s ease, filter .35s ease;
}

.v1-category-lead__media-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(23, 23, 23, 0) 45%, rgba(23, 23, 23, 0.08) 100%);
  pointer-events: none;
}

.v1-category-lead__media:hover .v1-category-lead__img,
.v1-category-lead__media:focus-visible .v1-category-lead__img {
  transform: scale(1.02);
  filter: contrast(1.04);
}

.v1-category-lead__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 8px 0;
}

.v1-category-lead__eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
}

.v1-category-lead__eyebrow .category {
  margin: 0;
  font-weight: 900;
  letter-spacing: 1.3px;
  border-width: 2px;
}

.v1-category-lead__signal {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--v1-cat-soft);
}

.v1-category-lead__signal::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 1px;
  margin-right: 10px;
  vertical-align: middle;
  background: #b8b8b8;
}

.v1-category-lead__title {
  margin: 0;
  font-size: clamp(28px, 3.4vw, 46px);
  line-height: 1.06;
  font-weight: 900;
  letter-spacing: -1px;
  text-wrap: balance;
  color: var(--ink);
}

.v1-category-lead__title a {
  color: inherit;
  text-decoration: none;
  background-image: linear-gradient(var(--ink), var(--ink));
  background-size: 0% 2px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size .25s ease, color .2s ease;
}

.v1-category-lead__title a:hover,
.v1-category-lead__title a:focus-visible {
  background-size: 100% 2px;
}

.v1-category-lead__excerpt {
  margin: 18px 0 0;
  max-width: 62ch;
  font-size: 14px;
  line-height: 1.75;
  color: #454545;
}

.v1-category-lead__meta {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #d5d5d5;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .4px;
  color: #666;
}

.v1-category-page .news-item {
  padding: 22px 0;
  border-bottom: 1px solid #d2d2d2;
  gap: 14px;
  transition: border-color .2s ease;
}

.v1-category-page .news-item:hover {
  border-bottom-color: var(--ink);
}

.v1-category-page .news-item img {
  aspect-ratio: 16 / 10;
  background: #ececea;
  transition: transform .4s ease, filter .3s ease;
}

.v1-category-page .news-item:hover img {
  transform: scale(1.015);
  filter: contrast(1.04) saturate(.98);
}

.v1-category-page .news-item .category {
  margin-bottom: 10px;
  font-weight: 900;
  letter-spacing: 1.2px;
  border-width: 1px;
  text-transform: none;
}

.v1-category-page .news-item h3 {
  font-size: clamp(18px, 1.9vw, 22px);
  font-weight: 800;
  letter-spacing: -0.4px;
  line-height: 1.35;
  color: var(--ink);
  text-transform: none;
}

.v1-category-page .news-item h3 a {
  color: inherit;
  text-decoration: none;
  transition: color .2s ease;
}

.v1-category-page .news-item h3 a:hover,
.v1-category-page .news-item h3 a:focus-visible {
  color: var(--red);
}

.v1-category-page .news-item .meta,
.v1-category-page .news-item small {
  margin-top: 12px;
  font-size: 11px;
  font-weight: 600;
  color: #686868;
  letter-spacing: .3px;
}

.v1-category-sidebar {
  min-width: 0;
}

.v1-category-editorial.editor-choice {
  position: sticky;
  top: 24px;
  border-top: 4px solid var(--ink);
  padding-top: 20px;
}

.v1-category-editorial__head {
  margin-bottom: 4px;
  padding-bottom: 14px;
  border-bottom: 1px solid #d5d5d5;
}

.v1-category-editorial__kicker {
  margin: 0 0 8px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--red);
}

.v1-category-editorial.editor-choice h2 {
  margin: 0;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--ink);
}

.v1-category-page .editor-item {
  padding: 16px 0;
  border-bottom: 1px solid #d5d5d5;
}

.v1-category-page .editor-item:last-child {
  padding-bottom: 0;
}

.v1-category-page .editor-item small {
  font-size: 10px;
  font-weight: 800;
  color: #727272;
  letter-spacing: 1px;
}

.v1-category-page .editor-item h3 {
  font-size: 15px;
  font-weight: 800;
  line-height: 1.5;
  letter-spacing: -0.1px;
}

.v1-category-page .editor-item h3 a {
  color: var(--ink);
  text-decoration: none;
  transition: color .2s ease;
}

.v1-category-page .editor-item h3 a:hover,
.v1-category-page .editor-item h3 a:focus-visible {
  color: var(--red);
}

.v1-category-page .v1-load-more-wrap {
  margin-top: 4px;
  padding-top: 28px;
  border-top: 2px solid var(--ink);
}

.v1-category-page .load-more {
  min-width: 240px;
  border-width: 2px;
  border-color: var(--ink);
  font-weight: 900;
  letter-spacing: 1.4px;
}

.v1-category-page .load-more:hover:not(:disabled) {
  background: var(--ink);
  color: #fff;
}

.v1-category-page .v1-empty {
  border: 2px solid var(--ink);
  background: linear-gradient(180deg, #fbfbfa, #f3f3f1);
}

.v1-category-page .v1-empty__label {
  font-weight: 900;
  letter-spacing: 1.5px;
}

@media (max-width: 1024px) {
  .v1-category-lead {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .v1-category-lead__body {
    padding: 0;
  }
  .v1-category-editorial.editor-choice {
    position: static;
  }
}

@media (max-width: 760px) {
  .v1-category-hero {
    margin-bottom: 24px;
    padding: 24px 0 20px;
  }
  .v1-category-hero__title {
    letter-spacing: -1px;
  }
  .v1-category-hero__desc {
    margin-top: 14px;
    font-size: 13px;
    line-height: 1.7;
  }
  .v1-category-hero__meta {
    gap: 12px;
    margin-top: 18px;
    padding-top: 14px;
  }
  .v1-category-hero__meta-value {
    font-size: 20px;
  }
  .v1-category-page .v1-category-layout.content-grid {
    gap: 28px;
  }
  .v1-category-feed.news-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .v1-category-lead {
    padding-bottom: 22px;
  }
  .v1-category-lead__media {
    min-height: 0;
  }
  .v1-category-lead__title {
    font-size: clamp(28px, 8vw, 38px);
  }
  .v1-category-lead__excerpt {
    font-size: 13px;
  }
  .v1-category-page .news-item {
    padding: 20px 0;
  }
  .v1-category-page .load-more {
    width: 100%;
    min-width: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .v1-category-hero__inner,
  .v1-category-lead__img,
  .v1-category-page .news-item img,
  .v1-category-lead__title a {
    animation: none;
    transition: none;
  }
}

/* Load more */
.v1-load-more-wrap { margin-top: 8px; padding-top: 24px; border-top: 1px solid var(--line); text-align: center; }
.load-more, .v1zen-load-more {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 220px; padding: 12px 28px;
  border: 1px solid var(--ink); background: var(--paper); color: var(--ink);
  font-size: 11px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase;
  cursor: pointer; transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.load-more:hover, .v1zen-load-more:hover { background: var(--ink); color: #fff; }
.load-more:disabled { opacity: .55; cursor: default; }
.load-more:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }

/* Empty */
.v1-empty { padding: 28px; border: 1px solid var(--line); background: var(--soft); }
.v1-empty__label { display: block; font-size: 10px; font-weight: 800; color: var(--red); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; }
.v1-empty__title { display: block; font-size: 22px; line-height: 1.3; color: var(--ink); }

/* Article detail */
.v1-article-detail, .article-detail { display: grid; grid-template-columns: minmax(0,1fr) 320px; gap: 34px; align-items: start; padding: 34px 0; }
.v1-article-detail__main, .article-detail__main { min-width: 0; }
.v1-article-detail__head, .article-detail__head { padding-bottom: 20px; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
.v1-article-detail__title, .article-detail__title, .v1-article-detail__head h1 { font-size: clamp(32px, 5vw, 52px); line-height: 1.1; letter-spacing: -1px; margin: 10px 0 14px; font-weight: 700; }
.v1-article-detail__meta, .article-detail__meta { font-size: 11px; color: var(--muted); }
.v1-article-detail__meta a:hover { color: var(--red); }
.v1-article-detail__hero { margin: 20px 0 0; }
.v1-article-detail__hero img, .hero-image { width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover; background: var(--soft); }
.v1-article-detail__hero figcaption { margin-top: 10px; }
.v1-article-detail__body, .article-detail__body { font-size: 16px; line-height: 1.85; color: #333; }
.v1-article-detail__body p, .article-detail__body p { margin-bottom: 1.25em; }
.v1-article-detail__body h2, .v1-article-detail__body h3, .v1-article-detail__body h4 { font-family: 'Roboto', sans-serif; color: var(--ink); margin: 1.8em 0 .7em; line-height: 1.3; }
.v1-article-detail__body h2 { font-size: 30px; } .v1-article-detail__body h3 { font-size: 24px; }
.v1-article-detail__body a { color: var(--red); text-decoration: none; }
.v1-article-detail__body img { width: auto; max-width: 100%; height: auto; margin: 1.5rem 0; }
.v1-article-detail__body ul, .v1-article-detail__body ol { margin: 0 0 1.25em 1.5em; padding-left: 1em; }
.v1-article-detail__body ul { list-style: disc; } .v1-article-detail__body ol { list-style: decimal; }
.v1-article-detail__body blockquote { margin: 1.5em 0; padding: .5em 0 .5em 1.25em; border-left: 3px solid var(--red); font-family: 'Roboto', sans-serif; font-size: 20px; line-height: 1.5; color: var(--ink); }
.v1-article-detail__body figure.wp-block-embed-youtube, .v1-article-detail__body iframe[src*="youtube.com"], .v1-article-detail__body iframe[src*="youtu.be"] { width: 100%; aspect-ratio: 16/9; margin: 1.5rem 0; border: 0; }
.v1-article-detail__sidebar, .article-detail__sidebar { min-width: 0; }
/* Beri jarak bawah pada blok "Terbaru" di sidebar artikel. */
.v1-article-detail__sidebar .editor-choice,
.article-detail__sidebar .editor-choice { margin-bottom: 28px; }
.v1-article-detail__sidebar .editor-item:last-child,
.article-detail__sidebar .editor-item:last-child { padding-bottom: 12px; }
@media (min-width: 1024px) { .v1-article-detail__sidebar, .article-detail__sidebar { position: sticky; top: 88px; align-self: start; } }

/* Share/topic chips in article */
.v1-article-detail .topic, .v1-article-detail__body .topic { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 24px 0; }
.v1-article-detail .topic strong { font-size: 10px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--red); margin-right: 4px; }
.v1-article-detail .topic a { font-size: 11px; padding: 6px 10px; border: 1px solid var(--line); color: var(--ink); }
.v1-article-detail .topic a:hover { border-color: var(--red); color: var(--red); }

/* Related posts */
.v1-related-posts { margin-top: 34px; padding-top: 24px; border-top: 1px solid var(--line); }
.v1-related-posts .section-title { margin-bottom: 16px; padding-bottom: 8px; }
.v1-related-posts .section-title h2 { font-size: 14px; letter-spacing: .8px; }
.v1-related-posts .news-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.v1-related-posts .news-item {
  grid-template-columns: 1fr;
  gap: 0;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--soft);
}
.v1-related-posts .news-item img { width: 100%; height: auto; aspect-ratio: 16 / 10; }
.v1-related-posts .news-item > div { padding: 12px 12px 14px; }
.v1-related-posts .news-item .category { margin-bottom: 5px; padding: 2px 6px; font-size: 9px; letter-spacing: .8px; }
.v1-related-posts .news-item h3 { font-size: 15px; line-height: 1.45; margin: 0 0 8px; }
.v1-related-posts .news-item .meta, .v1-related-posts .news-item small { font-size: 10px; margin-top: 0; }

/* Author/comments/tabs */
.v1-author-profile { display: grid; grid-template-columns: 96px minmax(0,1fr); gap: 20px; padding: 28px 0; border-bottom: 1px solid var(--line); align-items: start; }
.v1-author-profile img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; background: var(--soft); }
.v1-author-profile h1 { font-size: 34px; line-height: 1.15; margin-bottom: 8px; }
.v1-author-profile p.meta { font-size: 13px; line-height: 1.7; margin-top: 8px; max-width: 60ch; }
.v1-tabs { padding: 24px 0; }
.v1-tabs__list { display: flex; gap: 0; border-bottom: 2px solid var(--ink); margin-bottom: 20px; }
.v1-tabs__button { padding: 10px 16px; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .8px; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -2px; }
.v1-tabs__button--active, .v1-tabs__button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--red); }
.v1-tabs__panel[hidden] { display: none; }
.v1-comments { margin-top: 34px; padding-top: 24px; border-top: 2px solid var(--ink); }
.v1-comments h2, .v1-comments__title { font-family: 'Roboto', sans-serif; font-size: 28px; margin-bottom: 18px; }
.v1-comment-list { list-style: none; margin: 0; padding: 0; }
.v1-comment-list li { padding: 16px 0; border-bottom: 1px solid var(--line); }
.v1-comment-list ul { list-style: none; margin: 12px 0 0 20px; padding-left: 16px; border-left: 1px solid var(--line); }
.v1-comment-form { display: grid; gap: 12px; margin-top: 20px; }
.v1-comment-form label { font-size: 10px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.v1-comment-form input, .v1-comment-form textarea { width: 100%; padding: 12px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); font: 14px 'Roboto', sans-serif; }
.v1-comment-form textarea { min-height: 120px; resize: vertical; }
.v1-comment-form input[type="submit"], .v1-comment-form__submit, .v1-comment-list__reply { justify-self: start; padding: 10px 18px; border: 1px solid var(--ink); background: var(--ink); color: #fff; font: 700 11px 'Roboto', sans-serif; text-transform: uppercase; letter-spacing: .8px; cursor: pointer; }
.v1-comment-form input[type="submit"]:hover, .v1-comment-form__submit:hover { background: transparent; color: var(--ink); }
.v1-comment-list__reply { background: transparent; color: var(--red); border-color: transparent; padding: 0; }

/* Pagination */
.pagination { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 28px; }
.pagination .page-numbers, .pagination a, .pagination span { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; min-height: 38px; padding: 0 12px; border: 1px solid var(--line); font-size: 11px; font-weight: 700; color: var(--ink); }
.pagination .current, .pagination .page-numbers.current { background: var(--ink); color: #fff; border-color: var(--ink); }
.pagination a:hover { border-color: var(--ink); }

/* Footer */
.footer { background: #111; color: #fff; padding: 34px 0; margin-top: 24px; }
.footer a { color: #fff; }
.footer a:hover { color: #ffb3b8; }
.footer-inner, .footer .wrap { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; align-items: start; }
.footer-col { min-width: 0; }
.footer-col--menu { text-align: left; }
.footer-col--menu .v1-footer-nav ul { display: flex; flex-wrap: wrap; flex-direction: row; justify-content: flex-start; align-items: flex-start; gap: 8px 16px; }
.footer-widget { margin-bottom: 16px; }
.footer-widget:last-child { margin-bottom: 0; }
.footer h4 { font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: #bbb; margin-bottom: 12px; font-family: 'Roboto', sans-serif; font-weight: 800; }
.footer p, .footer li { font-size: 13px; line-height: 1.8; color: #d8d8d8; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer .footer-logo, .footer strong { font-family: 'Roboto', sans-serif; font-size: 34px; font-weight: 800; letter-spacing: -2px; display: block; margin-bottom: 10px; color: #fff; }
.footer .footer-logo span { color: #ff5a64; }
.footer-bottom { margin-top: 24px; padding-top: 18px; border-top: 1px solid #333; font-size: 11px; color: #aaa; display: flex; justify-content: space-between; gap: 12px; }
.v1-footer-nav ul { display: flex; flex-wrap: wrap; gap: 14px 20px; list-style: none; margin: 0; padding: 0; }
.v1-footer-nav a { font-size: 12px; color: #d8d8d8; }
.v1-footer-nav a:hover { color: #fff; }

/* Home category variant compatibility - keep existing home markup styled */
.v1-home-category-section { padding: 34px 0; border-bottom: 1px solid var(--line); }
.v1-home-latest-section { padding: 34px 0; }
.v1-hcat-feature__media, .v1-hcat-compact__media, .v1-hcat-slide-card__media, .v1-hcat-list__media, .v1-hcat-overlay__media { display: block; overflow: hidden; background: var(--soft); }
.v1-hcat-feature__media img, .v1-hcat-compact__media img, .v1-hcat-slide-card__media img, .v1-hcat-list__media img, .v1-hcat-overlay__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.v1-hcat-feature__title, .v1-hcat-compact h3, .v1-hcat-slide-card h3, .v1-hcat-list__item h3 { font-family: 'Roboto', sans-serif; margin: 0; color: var(--ink); }
.v1-hcat-feature__title a:hover, .v1-hcat-compact h3 a:hover, .v1-hcat-slide-card h3 a:hover, .v1-hcat-list__item h3 a:hover { color: var(--red); }
.v1-hcat-feature__media { aspect-ratio: 16/9; }
.v1-hcat-feature__body { padding-top: 14px; }
.v1-hcat-feature__title { font-size: 28px; line-height: 1.25; margin-bottom: 10px; }
.v1-hcat-feature__excerpt { margin: 0 0 10px; font-size: 13px; line-height: 1.7; color: #666; }
.v1-hcat-compact { display: grid; grid-template-columns: 112px minmax(0,1fr); gap: 13px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.v1-hcat-compact__media { width: 112px; height: 82px; }
.v1-hcat-compact h3 { font-size: 15px; line-height: 1.4; margin-bottom: 6px; }
.v1-hcat-slider { position: relative; }
.v1-hcat-slider__track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 44px) / 3); gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 2px 0 6px; scrollbar-width: none; }
.v1-hcat-slider__track::-webkit-scrollbar { display: none; }
.v1-hcat-slide-card { scroll-snap-align: start; border: 1px solid var(--line); background: var(--paper); }
.v1-hcat-slide-card__media { aspect-ratio: 16/10; }
.v1-hcat-slide-card__body { padding: 14px; }
.v1-hcat-slide-card h3 { font-size: 17px; line-height: 1.35; margin-bottom: 8px; }
.v1-hcat-slide-card__excerpt { margin: 0 0 10px; font-size: 13px; line-height: 1.55; color: #666; }
.v1-hcat-slider__nav { position: absolute; top: 34%; z-index: 2; width: 38px; height: 38px; border: 1px solid var(--ink); background: var(--paper); color: var(--ink); font-size: 18px; line-height: 1; cursor: pointer; }
.v1-hcat-slider__nav:hover { background: var(--ink); color: #fff; }
.v1-hcat-slider__nav--prev { left: -10px; } .v1-hcat-slider__nav--next { right: -10px; }
.v1-hcat-split { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(0,1fr); gap: 28px; align-items: start; }
.v1-hcat-split--right { grid-template-columns: minmax(0,1fr) minmax(0,1.15fr); }
.v1-hcat-split__feature .v1-hcat-feature { padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.v1-hcat-split__side .v1-hcat-compact:first-child, .v1-hcat-center__side .v1-hcat-compact:first-child, .v1-hcat-magazine__grid .v1-hcat-compact:first-child { padding-top: 0; }
.v1-hcat-center { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.3fr) minmax(0,1fr); gap: 24px; align-items: start; }
.v1-hcat-center__feature .v1-hcat-feature { padding: 0 24px; border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
.v1-hcat-center__feature .v1-hcat-feature__title, .v1-hcat-center__feature .v1-hcat-feature__body { text-align: center; }
.v1-hcat-list__item { display: grid; grid-template-columns: 220px minmax(0,1fr); gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); align-items: start; }
.v1-hcat-list__item:first-child { padding-top: 0; }
.v1-hcat-list__media { width: 220px; height: 148px; }
.v1-hcat-list__item h3 { font-size: 22px; line-height: 1.3; margin-bottom: 8px; }
.v1-hcat-list__excerpt { margin: 0 0 10px; font-size: 14px; line-height: 1.6; color: #666; }
.v1-hcat-overlay-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; }
.v1-hcat-overlay__link { position: relative; display: block; min-height: 320px; overflow: hidden; background: #222; color: #fff; }
.v1-hcat-overlay__media { position: absolute; inset: 0; }
.v1-hcat-overlay__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(23,23,23,.05) 20%, rgba(23,23,23,.45) 55%, rgba(23,23,23,.92) 100%); }
.v1-hcat-overlay__body { position: absolute; inset: auto 0 0 0; display: flex; flex-direction: column; gap: 8px; padding: 18px; }
.v1-hcat-overlay .category { margin: 0; color: #fff; border-color: rgba(255,255,255,.75); }
.v1-hcat-overlay__title { color: #fff; font-size: 20px; line-height: 1.3; font-family: 'Roboto', sans-serif; }
.v1-hcat-overlay .meta { color: rgba(255,255,255,.82); }
.v1-hcat-magazine { display: grid; grid-template-columns: minmax(0,1.2fr) minmax(0,1fr); gap: 28px; align-items: start; }
.v1-hcat-magazine__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.v1-hcat-magazine__grid .v1-hcat-compact { grid-template-columns: 88px minmax(0,1fr); gap: 10px; }
.v1-hcat-magazine__grid .v1-hcat-compact__media { width: 88px; height: 66px; }
.v1-hcat-magazine__grid .v1-hcat-compact h3 { font-size: 14px; }

/* Home sticky stacking disabled: previously caused overlapping sections on scroll. */
/* Defensive layout: prevent grid/flex overflow and accidental section overlap. */
.section,
.category-section,
.v1-home-category-section,
.v1-home-latest-section,
.hero-grid {
  position: relative;
  isolation: isolate;
}
.hero-grid > *,
.category-grid > *,
.editor-grid > *,
.wide-story > *,
.news-grid > *,
.latest-layout > *,
.story-card > *,
.latest-list .item > *,
.news-item > * {
  min-width: 0;
}
.category-main,
.editor-card,
.wide-story .thumb,
.wide-story > div {
  min-width: 0;
}
.lead-story .media,
.story-card .thumb,
.editor-card .thumb,
.category-main .thumb,
.wide-story .thumb,
.latest-list .thumb {
  display: block;
  max-width: 100%;
}
.category-main,
.category-column,
.editor-card,
.story-card,
.lead-story,
.wide-story,
.trend,
.mini {
  overflow-wrap: break-word;
  word-break: break-word;
}
/* Home column sticky: keep columns visible while scrolling within grid rows. */
.home .hero-grid > *,
.home .category-grid > *,
.home .editor-grid > *,
.home .wide-story > *,
.home .latest-layout > * {
  position: sticky;
  top: calc(var(--v1-nav-h, 60px) + 16px);
  align-self: start;
}

/* Helpers */
[x-cloak] { display: none !important; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Responsive */
@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: 1fr 1fr; }
  .right-stack { grid-column: 1 / -1; border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 20px; }
  .category-grid, .editor-grid { grid-template-columns: 1fr 1fr; }
  .category-column:last-child { grid-column: 1 / -1; border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 10px; }
  .footer-inner, .footer .wrap { grid-template-columns: 1fr 1fr; }
  .v1-hcat-overlay-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .v1-hcat-slider__track { grid-auto-columns: calc((100% - 22px) / 2); }
}
@media (max-width: 900px) {
  .header { grid-template-columns: 1fr; text-align: center; gap: 12px; padding: 22px 0 18px; }
  .header-left, .header-right { justify-self: center; justify-content: center; }
  .v1-search-panel { left: 50%; right: auto; transform: translateX(-50%); }
  .navigation { display: none; }
  .mobile-nav { display: block; }
  .latest-layout, .content-grid, .v1-article-detail, .article-detail, .wide-story { grid-template-columns: 1fr; }
  .home .wide-story > *,
  .home .latest-layout > * { position: static; }
  .v1-article-detail__sidebar { position: static; }
  .news-grid { grid-template-columns: 1fr; }
  .v1-related-posts .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .v1-hcat-split, .v1-hcat-split--right, .v1-hcat-magazine, .v1-hcat-center { grid-template-columns: 1fr; }
  .v1-hcat-center__feature .v1-hcat-feature { padding: 0 0 18px; border: 0; border-bottom: 1px solid var(--line); }
  .v1-hcat-center__feature .v1-hcat-feature__title, .v1-hcat-center__feature .v1-hcat-feature__body { text-align: left; }
}
@media (max-width: 760px) {
  .wrap, .container { width: min(1280px, calc(100% - 28px)); }
  .hero-grid, .editor-grid, .category-grid, .opinion-grid { grid-template-columns: 1fr; }
  .home .hero-grid > *,
  .home .category-grid > *,
  .home .editor-grid > *,
  .home .wide-story > *,
  .home .latest-layout > * { position: static; }
  .story-card, .latest-list .item, .news-item { grid-template-columns: 110px 1fr; gap: 12px; }
  .story-card .thumb, .latest-list .thumb, .news-item img { width: 110px; height: 82px; aspect-ratio: auto; }
  .latest-list h3, .news-item h3 { font-size: 18px; }
  .v1-related-posts .news-grid { grid-template-columns: 1fr; }
  .v1-related-posts .news-item { grid-template-columns: 1fr; }
  .v1-related-posts .news-item img { width: 100%; height: auto; aspect-ratio: 16 / 10; }
  .v1-related-posts .news-item h3 { font-size: 15px; }
  .lead-story h1 { font-size: 34px; }
  .category-main h3, .wide-story h3, .v1-article-detail__title { font-size: 32px; }
  .category-column { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 10px; }
  .footer-inner, .footer .wrap { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; }
  .v1-hcat-list__item { grid-template-columns: 105px minmax(0,1fr); gap: 12px; }
  .v1-hcat-list__media { width: 105px; height: 78px; }
  .v1-hcat-list__excerpt { display: none; }
  .v1-hcat-overlay-grid, .v1-hcat-magazine__grid { grid-template-columns: 1fr; }
  .v1-hcat-slider__track { grid-auto-columns: 82%; }
}
@media (max-width: 520px) {
  .topline .wrap, .topbar-inner { flex-direction: column; align-items: flex-start; }
  .header-right { flex-wrap: wrap; justify-content: center; width: 100%; }
  .header-left { width: 100%; display: flex; justify-content: center; }
  .v1-search-panel { left: 50%; right: auto; transform: translateX(-50%); }
  .header-right form { width: 100%; max-width: 280px; }
  .header-right input[type="search"] { width: 100%; min-width: 0; }
  .footer-inner, .footer .wrap { grid-template-columns: 1fr; }
  .footer-col--menu { text-align: left; }
  .footer-col--menu .v1-footer-nav ul { flex-direction: row; justify-content: flex-start; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

/* Minimal clean category override */
.v1-category-hero {
  border-top: 0;
  border-bottom: 1px solid #e5e5e5;
  background: none;
  padding: 16px 0;
  margin-bottom: 16px;
}
.v1-category-hero__inner { max-width: 100%; animation: none; }
.v1-category-hero__kicker { margin-bottom: 6px; font-size: 10px; letter-spacing: 1.6px; }
.v1-category-hero__title { font-size: clamp(20px, 3.2vw, 28px); line-height: 1.15; letter-spacing: -0.5px; text-transform: none !important; font-weight: 700; }
.v1-category-hero__kicker { text-transform: none !important; }
.v1-category-hero__desc { text-transform: none !important; }
.v1-category-lead__title { text-transform: none !important; }
.v1-category-hero__desc { margin-top: 8px; font-size: 13px; line-height: 1.6; }
.v1-category-hero__meta { margin-top: 10px; padding-top: 10px; gap: 10px; }
.v1-category-hero__meta-value { font-size: 16px; }
.v1-category-hero__meta-label { font-size: 9px; }
.v1-category-hero__meta-divider { width: 20px; }
.v1-category-layout.content-grid { grid-template-columns: 1fr; gap: 16px; }
.v1-category-sidebar { display: none; }
.v1-category-lead__title { font-size: clamp(17px, 2.4vw, 22px); line-height: 1.2; font-weight: 700; letter-spacing: -0.3px; }
.v1-category-lead__excerpt { margin-top: 8px; font-size: 13px; line-height: 1.6; text-transform: none !important; }
.v1-category-lead__meta { margin-top: 10px; padding-top: 8px; font-size: 10px; }
.v1-category-page .news-item { padding: 14px 0; gap: 10px; }
.v1-category-page .news-item .title, .v1-category-page .news-item h3, .v1-category-page .news-item h4 { font-size: 14px; line-height: 1.35; }
.v1-category-page .news-item .meta { font-size: 10px; }
.v1-category-page .v1-empty__title { font-size: 16px; }
@media (max-width: 760px) {
  .v1-category-hero__title { font-size: 20px; }
  .v1-category-lead__title { font-size: 17px; }
}

/* Logo dark/light mode */
.logo-dark { display: none; }
html[data-theme="dark"] .logo-light { display: none; }
html[data-theme="dark"] .logo-dark { display: inline-block; }
.logo img { max-height: none; width: auto; }
.header.logo-pos-left { grid-template-columns: auto 1fr auto; }
.header.logo-pos-left .logo { justify-self: start; align-items: flex-start; }
.header.logo-pos-center { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
.header.logo-pos-center .logo { justify-self: center; }

/* Accessibility focus */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

/* Xtalo widgets */
.xtalo-widget { padding: 14px; border: 1px solid #e5e5e5; background: #fff; }
.xtalo-widget ul { list-style: none; padding: 0; margin: 0; }
.xtalo-widget li { padding: 8px 0; border-bottom: 1px solid #eee; }
.xtalo-widget li:last-child { border-bottom: 0; }
.xtalo-widget li a { color: var(--ink); text-decoration: none; font-weight: 600; }
.xtalo-widget li a:hover { color: var(--red); }
.xtalo-search input[type="search"] { width: 100%; padding: 8px 10px; border: 1px solid #d8d8d8; margin-bottom: 8px; }
.xtalo-search button { width: 100%; padding: 8px 10px; border: 1px solid var(--ink); background: var(--ink); color: #fff; cursor: pointer; }

/* Mobile header */
@media (max-width: 760px) {
  .header { grid-template-columns: 1fr; text-align: center; gap: 12px; }
  .header-left { display: none; }
  .header-right { justify-content: center; }
  .logo { align-items: center; }
  .logo img { max-height: 44px; }
}

/* Mobile nav bar */
.mobile-nav__bar-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.mobile-nav__logo img { max-height: 36px; width: auto; }
.mobile-nav__tools { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.mobile-nav__search { display: flex; flex-direction: column; gap: 8px; flex: 1; }
.mobile-nav__search input { flex: 1; padding: 8px 10px; border: 1px solid #d8d8d8; }
.mobile-nav__search button { padding: 8px 12px; border: 1px solid var(--ink); background: var(--ink); color: #fff; cursor: pointer; }

@media (max-width: 760px) {
  .header { display: none; }
}

/* Mobile search popup */
.mobile-nav__actions { display: flex; align-items: center; gap: 10px; }
.mobile-nav__icon { background: transparent; border: 0; cursor: pointer; padding: 6px; }
.mobile-search-popup { position: fixed; inset: 0; background: rgba(0,0,0,.45); display: flex; align-items: center; justify-content: center; z-index: 9999; }
.mobile-search-popup__inner { background: #fff; padding: 20px; width: min(90vw, 420px); border-radius: 8px; position: relative; }
.mobile-search-popup__close { position: absolute; top: 8px; right: 12px; background: transparent; border: 0; font-size: 22px; cursor: pointer; }
.mobile-nav__search input { width: 100%; padding: 10px; border: 1px solid #d8d8d8; margin-bottom: 8px; }
.mobile-nav__search button { width: 100%; padding: 10px; border: 1px solid var(--ink); background: var(--ink); color: #fff; cursor: pointer; }

/* Dark mode sync for search and widgets */
html[data-theme="dark"] .mobile-search-popup__inner { background: var(--paper); color: var(--ink); border: 1px solid var(--line); }
html[data-theme="dark"] .mobile-search-popup__inner input[type="search"] { background: var(--paper); color: var(--ink); border-color: var(--line); }
html[data-theme="dark"] .xtalo-widget { background: var(--paper); border-color: var(--line); color: var(--ink); }
html[data-theme="dark"] .xtalo-widget li { border-color: var(--line); }
html[data-theme="dark"] .mobile-nav__search input { background: var(--paper); color: var(--ink); border-color: var(--line); }
html[data-theme="dark"] .v1-search-panel { background: var(--paper); color: var(--ink); }
html[data-theme="dark"] .v1-search-panel input[type="search"] { background: var(--paper); color: var(--ink); border-color: var(--line); }

/* Hide top line (date + top links) so logo is at top */
.topline { display: none !important; }

/* Search buttons */
.mobile-nav__search button,
.xtalo-search button,
.v1-search-panel button[type="submit"] {
  padding: 10px 14px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  font-weight: 700;
  cursor: pointer;
  transition: opacity .2s ease;
}
.mobile-nav__search button:hover,
.xtalo-search button:hover,
.v1-search-panel button[type="submit"]:hover {
  opacity: .85;
}


/* Search form layout: button below input */
.mobile-nav__search,
.xtalo-search form,
.v1-search-panel form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mobile-nav__search button,
.xtalo-search button,
.v1-search-panel button[type="submit"] {
  width: 100%;
}

/* Ad slots spacing */
.v1-home-ad {
  margin: 48px 0;
  padding: 20px;
  border: 1px solid #e5e5e5;
  background: #fafafa;
}
html[data-theme="dark"] .v1-home-ad { background: #111; border-color: #333; }

/* Audit fixes: keep search inputs readable in both themes */
html[data-theme="dark"] .xtalo-search input[type="search"] { background: var(--paper); color: var(--ink); border-color: var(--line); }
.xtalo-search input[type="search"]:focus,
.mobile-nav__search input[type="search"]:focus,
.v1-search-panel input[type="search"]:focus { outline: 2px solid var(--red); outline-offset: 1px; }
