:root {
  --ink: #172033;
  --muted: #667085;
  --line: #d9dee8;
  --paper: #ffffff;
  --soft: #f5f7fb;
  --navy: #102a43;
  --red: #b4232a;
  --teal: #08746f;
  --gold: #b7791f;
  --green: #26734d;
  --shadow: 0 12px 30px rgba(16, 42, 67, 0.12);
  --radius: 8px;
  --container: 1180px;
}

/* Magazine-style redesign inspired by contemporary Indonesian news portals. */
:root {
  --ink: #111827;
  --muted: #687386;
  --line: #e4e7ec;
  --paper: #ffffff;
  --soft: #f3f5f8;
  --navy: #153e63;
  --red: #c9272d;
  --teal: #0d6f7b;
  --shadow: 0 10px 24px rgba(17, 24, 39, 0.08);
  --radius: 4px;
  --container: 1200px;
}

body {
  background: var(--soft);
  font-family: Poppins, Arial, Helvetica, sans-serif;
}

.site-header {
  background: #fff;
}

.topbar {
  background: #101828;
  color: #edf2f7;
}

.masthead {
  min-height: 118px;
  padding: 22px 0;
}

.brand__logo {
  width: min(320px, 76vw);
}

.masthead__promo {
  flex: 1;
  max-width: 728px;
}

.masthead__promo .ad-slot {
  min-height: 82px;
  border: 0;
  border-radius: 2px;
  background: linear-gradient(90deg, #edf2f7, #ffffff 42%, #e9eef6);
  box-shadow: inset 0 0 0 1px #d8dee9;
}

.masthead__promo .ad-slot strong {
  font-size: 20px;
}

.primary-nav {
  border: 0;
  background: var(--navy);
  box-shadow: 0 4px 12px rgba(17, 24, 39, 0.12);
}

.primary-nav__inner {
  gap: 18px;
  overflow-x: visible;
}

.primary-menu {
  flex: 1;
  overflow-x: auto;
  scrollbar-width: none;
}

.primary-menu a {
  padding: 16px 13px;
  color: #fff;
  font-size: 13px;
}

.primary-menu a:hover,
.primary-menu a:focus {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.primary-nav__search {
  flex: 0 0 268px;
}

.primary-menu {
  min-width: 0 !important;
}

.primary-nav__search {
  min-width: 0;
}

.primary-nav__search .search-form {
  border: 0;
  border-radius: 2px;
}

.primary-nav__search .search-field,
.primary-nav__search .search-form button {
  height: 36px;
  min-height: 36px;
  font-size: 13px;
}

.primary-nav__search .search-form button {
  background: var(--red);
}

.top-ad {
  padding-top: 24px;
}

.top-ad .ad-slot,
.sidebar .ad-slot {
  border-radius: 2px;
  background: #fff;
}

.breaking {
  margin: 18px 0 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}

.breaking__inner {
  gap: 0;
  padding-left: 0;
}

.breaking strong {
  align-self: stretch;
  display: flex;
  align-items: center;
  padding: 0 18px;
  background: var(--navy);
  color: #fff;
}

.breaking__track {
  padding-left: 18px;
}

.breaking__track a {
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}

.hero-grid {
  grid-template-columns: 1.08fr 1fr;
  gap: 4px;
  padding: 24px 0 30px;
}

.lead-story,
.hero-stack .news-card--compact {
  position: relative;
  overflow: hidden;
  border: 0;
  border-radius: 2px;
  background: #0b1220;
  box-shadow: none;
}

.lead-story {
  display: flex;
  min-height: 510px;
  align-items: end;
}

.lead-story__image,
.hero-stack .news-card--compact .news-card__image {
  position: absolute;
  inset: 0;
  aspect-ratio: auto;
}

.lead-story__image::after,
.hero-stack .news-card--compact .news-card__image::after,
.visual-card::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, rgba(9, 17, 31, 0.08), rgba(9, 17, 31, 0.78));
}

.lead-story__content {
  position: relative;
  z-index: 2;
  padding: 30px;
  color: #fff;
}

.lead-story h1 {
  max-width: 760px;
  color: #fff;
  font-size: 34px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.lead-story p,
.lead-story .meta-line {
  color: #eef2f6;
}

.eyebrow {
  border-radius: 2px;
  background: #fff;
  color: var(--red);
  font-size: 11px;
}

.hero-stack {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
}

.hero-stack .news-card--compact {
  display: flex;
  min-height: 253px;
}

.hero-stack .news-card--compact .news-card__body {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: 253px;
  flex-direction: column;
  justify-content: flex-end;
  padding: 18px;
  color: #fff;
}

.hero-stack .news-card--compact .news-card__image .eyebrow {
  display: none;
}

.hero-stack .news-card--compact h3 {
  color: #fff;
  font-size: 18px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.hero-stack .news-card--compact .meta-line {
  color: #eef2f6;
  font-size: 12px;
}

.news-card {
  border: 0;
  border-radius: 2px;
  box-shadow: none;
}

.news-card__image {
  border-radius: 2px 2px 0 0;
}

.news-card h3 {
  font-weight: 800;
}

.news-card--horizontal {
  grid-template-columns: 250px minmax(0, 1fr);
  border-bottom: 1px solid var(--line);
}

.section-heading {
  align-items: center;
  border-bottom: 2px solid var(--navy);
  padding-bottom: 8px;
}

.section-heading span,
.archive-header span,
.page-header span,
.tool-panel span,
.newsletter-band span,
.empty-state span {
  display: inline-flex;
  width: fit-content;
  border-radius: 2px;
  padding: 4px 8px;
  background: var(--red);
  color: #fff;
  font-size: 11px;
}

.section-heading h2 {
  font-size: 24px;
}

.channel-band {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.panel,
.tool-panel,
.page-card,
.empty-state {
  border: 0;
  border-top: 4px solid var(--navy);
  border-radius: 2px;
  box-shadow: var(--shadow);
}

.ranked-link span {
  border-radius: 50%;
}

.visual-strip {
  background: #102f4a;
}

.visual-card {
  border-radius: 2px;
}

.visual-card img {
  opacity: 1;
}

.visual-card span,
.visual-card strong {
  z-index: 2;
}

@media (max-width: 1040px) {
  .primary-nav__inner {
    overflow-x: auto;
  }

  .primary-nav__search {
    display: none;
  }

  .masthead__promo {
    max-width: 56%;
  }
}

@media (max-width: 760px) {
  .masthead {
    min-height: 0;
  }

  .masthead__promo {
    display: none;
  }

  .primary-nav__search {
    display: block;
    width: 100%;
    margin-top: 10px;
  }

  .hero-grid,
  .hero-stack {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .lead-story,
  .hero-stack .news-card--compact {
    display: grid;
    min-height: 0;
    background: #fff;
  }

  .lead-story__image,
  .hero-stack .news-card--compact .news-card__image {
    position: relative;
    aspect-ratio: 16 / 10;
  }

  .lead-story__image::after,
  .hero-stack .news-card--compact .news-card__image::after {
    display: none;
  }

  .lead-story__content,
  .hero-stack .news-card--compact .news-card__body {
    min-height: 0;
    padding: 18px;
    color: var(--ink);
  }

  .lead-story h1,
  .hero-stack .news-card--compact h3 {
    color: var(--ink);
    text-shadow: none;
  }

  .lead-story p,
  .lead-story .meta-line,
  .hero-stack .news-card--compact .meta-line {
    color: var(--muted);
  }

  .news-card--horizontal {
    grid-template-columns: 1fr;
  }
}

.topbar__inner,
.masthead,
.primary-nav__inner,
.breaking__inner,
.hero-grid {
  min-width: 0;
}

.primary-menu,
.breaking__track {
  min-width: 0;
}

.primary-nav__inner {
  overflow-x: hidden;
}

.primary-menu,
.breaking__track {
  overflow-x: auto;
}

.primary-menu {
  flex: 1 1 0;
  max-width: calc(100% - 286px);
}

.primary-nav__search {
  flex: 0 0 268px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.58;
  letter-spacing: 0;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover,
a:focus {
  color: var(--red);
}

button,
input {
  font: inherit;
}

.container {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
}

.skip-link,
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  z-index: 999;
  width: auto;
  height: auto;
  padding: 10px 14px;
  margin: 8px;
  clip: auto;
  background: var(--ink);
  color: #fff;
}

.topbar {
  background: var(--navy);
  color: #dce7f5;
  font-size: 13px;
}

.topbar__inner,
.masthead,
.primary-nav__inner,
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.topbar nav,
.footer-menu,
.site-footer a {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.topbar a:hover,
.topbar a:focus {
  color: #fff;
}

.masthead {
  min-height: 106px;
  padding: 18px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand__mark {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: var(--radius);
  background: var(--red);
  color: #fff;
  font-weight: 800;
}

.brand__logo {
  width: min(300px, 72vw);
  height: auto;
}

.brand strong {
  display: block;
  color: var(--ink);
  font-size: 28px;
  line-height: 1;
}

.brand small {
  display: block;
  color: var(--teal);
  font-size: 13px;
  font-weight: 700;
  margin-top: 6px;
  text-transform: uppercase;
}

.masthead__search {
  width: min(430px, 45%);
}

.search-form {
  display: flex;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
}

.search-form label {
  flex: 1;
}

.search-field {
  width: 100%;
  height: 44px;
  border: 0;
  padding: 0 14px;
  outline: none;
}

.search-form button,
.button,
.newsletter-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 0;
  border-radius: var(--radius);
  padding: 0 16px;
  background: var(--red);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.search-form button {
  border-radius: 0;
}

.primary-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.primary-nav__inner {
  overflow-x: auto;
  scrollbar-width: thin;
}

.primary-menu {
  display: flex;
  flex-wrap: nowrap;
  gap: 2px;
  min-width: max-content;
  padding: 0;
  margin: 0;
  list-style: none;
}

.primary-menu a {
  display: block;
  padding: 14px 12px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
  text-transform: uppercase;
}

.primary-menu a:hover,
.primary-menu a:focus {
  background: var(--soft);
  color: var(--red);
}

.menu-toggle {
  display: none;
  align-items: center;
  gap: 3px 8px;
  grid-template-columns: 20px auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 9px 11px;
  color: var(--ink);
  font-weight: 800;
}

.menu-toggle span {
  display: block;
  grid-column: 1;
  width: 17px;
  height: 2px;
  background: var(--ink);
}

.menu-toggle b {
  grid-column: 2;
  grid-row: 1 / 4;
}

.top-ad {
  padding: 20px 0 0;
}

.ad-slot {
  display: grid;
  min-height: 92px;
  place-items: center;
  padding: 16px;
  border: 1px dashed #9aa4b2;
  border-radius: var(--radius);
  background: #f8fafc;
  color: #475467;
  text-align: center;
}

.ad-slot span {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.ad-slot strong {
  color: var(--ink);
  font-size: 22px;
  line-height: 1.2;
}

.ad-slot small {
  max-width: 560px;
}

.breaking {
  margin: 20px 0 0;
  background: var(--red);
  color: #fff;
}

.breaking__inner {
  display: flex;
  align-items: center;
  min-height: 46px;
  gap: 16px;
  overflow: hidden;
}

.breaking strong {
  flex: 0 0 auto;
  font-size: 13px;
  text-transform: uppercase;
}

.breaking__track {
  display: flex;
  gap: 20px;
  overflow: auto;
  scrollbar-width: none;
  white-space: nowrap;
}

.breaking__track a {
  color: #fff;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(300px, 0.85fr);
  gap: 22px;
  padding: 24px 0 32px;
}

.lead-story {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.lead-story__image {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--soft);
}

.lead-story__image img,
.news-card__image img,
.visual-card img,
.article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lead-story__content {
  padding: 22px;
}

.lead-story h1 {
  margin: 8px 0 10px;
  font-size: 34px;
  line-height: 1.12;
}

.lead-story p,
.news-card p,
.panel p,
.tool-panel p,
.newsletter-band p,
.article-hero p,
.archive-header p,
.site-footer p {
  color: var(--muted);
}

.eyebrow {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  min-height: 25px;
  align-items: center;
  border-radius: 999px;
  padding: 4px 9px;
  background: #fef3f2;
  color: var(--red);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
}

.meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: #788397;
  font-size: 13px;
}

.hero-stack {
  display: grid;
  gap: 12px;
}

.news-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.news-card__image {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  background: var(--soft);
}

.news-card__image .eyebrow {
  position: absolute;
  left: 10px;
  bottom: 10px;
  background: #fff;
}

.news-card__body {
  padding: 14px;
}

.news-card h3 {
  margin: 0 0 8px;
  font-size: 19px;
  line-height: 1.24;
}

.news-card p {
  margin: 0 0 12px;
}

.news-card--compact {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  min-height: 128px;
}

.news-card--compact .news-card__image {
  height: 100%;
  aspect-ratio: auto;
}

.news-card--compact .news-card__body {
  padding: 12px;
}

.news-card--compact h3 {
  font-size: 16px;
}

.news-card--horizontal {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
}

.news-card--horizontal .news-card__image {
  height: 100%;
  min-height: 156px;
  aspect-ratio: auto;
}

.news-card--commercial {
  border-color: #f5c27a;
}

.content-layout,
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: start;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 18px;
}

.section-heading span,
.archive-header span,
.page-header span,
.tool-panel span,
.newsletter-band span,
.empty-state span {
  display: block;
  color: var(--teal);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.section-heading h2,
.archive-header h1,
.page-header h1 {
  margin: 2px 0 0;
  font-size: 28px;
  line-height: 1.18;
}

.section-heading > a {
  color: var(--red);
  font-weight: 800;
}

.news-list {
  display: grid;
  gap: 14px;
}

.sidebar {
  display: grid;
  gap: 18px;
}

.panel,
.tool-panel,
.page-card,
.empty-state {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 18px;
}

.panel h2 {
  margin: 0 0 12px;
  font-size: 20px;
}

.panel--accent {
  background: #f7fbfb;
  border-color: #b8dedb;
}

.ranked-link {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 10px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.ranked-link:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.ranked-link span {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: var(--radius);
  background: var(--navy);
  color: #fff;
  font-weight: 800;
}

.ranked-link strong {
  font-size: 15px;
  line-height: 1.3;
}

.channel-band,
.visual-strip {
  margin: 34px 0;
  padding: 34px 0;
}

.channel-band {
  background: var(--soft);
}

.card-grid {
  display: grid;
  gap: 16px;
}

.card-grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.channel-section {
  padding: 24px 0;
}

.business-tools {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding: 22px 0;
}

.tool-panel {
  border-left: 5px solid var(--teal);
}

.tool-panel:nth-child(2) {
  border-left-color: var(--gold);
}

.tool-panel:nth-child(3) {
  border-left-color: var(--green);
}

.tool-panel strong {
  display: block;
  margin: 5px 0;
  font-size: 25px;
  line-height: 1.16;
}

.visual-strip {
  background: var(--navy);
  color: #fff;
}

.section-heading--light span,
.section-heading--light a {
  color: #8ee0d7;
}

.section-heading--light h2 {
  color: #fff;
}

.visual-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  gap: 16px;
}

.visual-card {
  position: relative;
  display: flex;
  min-height: 280px;
  flex-direction: column;
  justify-content: end;
  overflow: hidden;
  border-radius: var(--radius);
  background: #0a1a2a;
  padding: 18px;
}

.visual-card img {
  position: absolute;
  inset: 0;
  opacity: 0.52;
}

.visual-card span,
.visual-card strong {
  position: relative;
  z-index: 1;
}

.visual-card span {
  color: #8ee0d7;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.visual-card strong {
  max-width: 680px;
  font-size: 24px;
  line-height: 1.2;
}

.newsletter-band {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff8ed;
}

.newsletter-band__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 30px 0;
}

.newsletter-band h2 {
  max-width: 660px;
  margin: 2px 0 0;
  font-size: 24px;
  line-height: 1.22;
}

.newsletter-form {
  display: flex;
  width: min(430px, 100%);
  gap: 8px;
}

.newsletter-form input {
  min-width: 0;
  flex: 1;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 13px;
}

.archive-header,
.page-shell {
  padding: 34px 0;
}

.archive-header h1 {
  max-width: 800px;
}

.article-hero {
  background: var(--soft);
  border-bottom: 1px solid var(--line);
}

.article-hero__inner {
  max-width: 900px;
  padding: 34px 0;
}

.article-hero h1 {
  margin: 10px 0 12px;
  font-size: 42px;
  line-height: 1.1;
}

.paid-label {
  display: inline-flex;
  margin-left: 8px;
  border-radius: 999px;
  padding: 4px 9px;
  background: #fff2cc;
  color: #7a4f01;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.article-layout {
  padding: 28px 0 44px;
}

.article-main {
  min-width: 0;
}

.article-image {
  aspect-ratio: 16 / 9;
  margin: 0 0 18px;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--soft);
}

.share-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.share-row a,
.chip-link {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 6px 10px;
  background: #fff;
  color: var(--ink);
  font-weight: 800;
}

.article-content {
  font-size: 18px;
  line-height: 1.76;
}

.article-content h2,
.article-content h3 {
  line-height: 1.25;
}

.article-content a {
  color: var(--red);
  font-weight: 700;
}

.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 15px;
}

.article-content th,
.article-content td {
  border: 1px solid var(--line);
  padding: 10px;
  text-align: left;
  vertical-align: top;
}

.article-content th {
  background: var(--navy);
  color: #fff;
}

.related-posts {
  margin-top: 28px;
}

.page-card {
  max-width: 980px;
  margin: 0 auto;
  padding: 28px;
}

.empty-state {
  text-align: center;
}

.empty-state--wide {
  max-width: 720px;
  margin: 0 auto;
}

.pagination {
  margin-top: 22px;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.page-numbers {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px 12px;
  background: #fff;
}

.page-numbers.current {
  background: var(--navy);
  color: #fff;
}

.site-footer {
  background: #111827;
  color: #d1d5db;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.7fr 0.9fr 1fr;
  gap: 28px;
  padding: 38px 0;
}

.brand--footer strong {
  color: #fff;
  font-size: 24px;
}

.brand--footer {
  width: fit-content;
  border-radius: var(--radius);
  background: #fff;
  padding: 10px 12px;
}

.site-footer h2 {
  margin: 0 0 10px;
  color: #fff;
  font-size: 16px;
}

.site-footer a {
  color: #d1d5db;
}

.site-footer a:hover,
.site-footer a:focus {
  color: #fff;
}

.footer-grid > div:nth-child(n + 2),
.footer-menu {
  flex-direction: column;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 16px 0;
  color: #9ca3af;
  font-size: 13px;
}

@media (max-width: 1040px) {
  .hero-grid,
  .content-layout,
  .article-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .sidebar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .card-grid--4,
  .card-grid--3,
  .business-tools {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .masthead__search {
    width: min(360px, 42%);
  }
}

@media (max-width: 760px) {
  .topbar__inner,
  .masthead,
  .newsletter-band__inner,
  .footer-bottom {
    align-items: stretch;
    flex-direction: column;
  }

  .masthead__search {
    width: 100%;
  }

  .menu-toggle {
    display: inline-grid;
    width: fit-content;
  }

  .primary-nav__inner {
    display: none;
    align-items: stretch;
    overflow-x: visible;
  }

  .primary-nav__inner.is-open {
    display: block;
  }

  .primary-menu {
    flex-direction: column;
    min-width: 0;
  }

  .primary-menu a {
    border-bottom: 1px solid var(--line);
  }

  .brand strong {
    font-size: 24px;
  }

  .lead-story h1,
  .article-hero h1 {
    font-size: 30px;
  }

  .lead-story__content,
  .page-card {
    padding: 18px;
  }

  .news-card--horizontal,
  .news-card--compact {
    grid-template-columns: 1fr;
  }

  .news-card--horizontal .news-card__image,
  .news-card--compact .news-card__image {
    min-height: 0;
    aspect-ratio: 16 / 10;
  }

  .sidebar,
  .card-grid--4,
  .card-grid--3,
  .business-tools,
  .visual-grid {
    grid-template-columns: 1fr;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .newsletter-form button,
  .search-form button {
    min-width: 86px;
  }

  .article-content {
    font-size: 16px;
  }
}

/* Final magazine redesign overrides. Keep this block last. */
:root {
  --ink: #111827;
  --muted: #687386;
  --line: #e4e7ec;
  --soft: #f3f5f8;
  --navy: #153e63;
  --red: #c9272d;
  --shadow: 0 10px 24px rgba(17, 24, 39, 0.08);
  --radius: 4px;
  --container: 1200px;
}

body {
  background: var(--soft);
  font-family: Poppins, Arial, Helvetica, sans-serif;
}

.site-header {
  background: #fff;
}

.topbar {
  background: #101828;
  color: #edf2f7;
}

.masthead {
  min-height: 118px;
  padding: 22px 0;
}

.brand__logo {
  width: min(320px, 76vw);
}

.masthead__promo {
  flex: 1;
  max-width: 728px;
}

.masthead__promo .ad-slot {
  min-height: 82px;
  border: 0;
  border-radius: 2px;
  background: linear-gradient(90deg, #edf2f7, #ffffff 42%, #e9eef6);
  box-shadow: inset 0 0 0 1px #d8dee9;
}

.primary-nav {
  border: 0;
  background: var(--navy);
  box-shadow: 0 4px 12px rgba(17, 24, 39, 0.12);
}

.primary-nav__inner {
  gap: 18px;
  overflow-x: visible;
}

.primary-menu {
  flex: 1;
  overflow-x: auto;
  scrollbar-width: none;
}

.primary-menu a {
  padding: 16px 13px;
  color: #fff;
  font-size: 13px;
}

.primary-menu a:hover,
.primary-menu a:focus {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.primary-nav__search {
  flex: 0 0 268px;
}

.primary-nav__search .search-form {
  border: 0;
  border-radius: 2px;
}

.primary-nav__search .search-field,
.primary-nav__search .search-form button {
  height: 36px;
  min-height: 36px;
  font-size: 13px;
}

.breaking {
  margin: 18px 0 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}

.breaking__inner {
  gap: 0;
  padding-left: 0;
}

.breaking strong {
  align-self: stretch;
  display: flex;
  align-items: center;
  padding: 0 18px;
  background: var(--navy);
  color: #fff;
}

.breaking__track {
  padding-left: 18px;
}

.breaking__track a {
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}

.hero-grid {
  grid-template-columns: 1.08fr 1fr;
  gap: 4px;
  padding: 24px 0 30px;
}

.lead-story,
.hero-stack .news-card--compact {
  position: relative;
  overflow: hidden;
  border: 0;
  border-radius: 2px;
  background: #0b1220;
  box-shadow: none;
}

.lead-story {
  display: flex;
  min-height: 510px;
  align-items: end;
}

.lead-story__image,
.hero-stack .news-card--compact .news-card__image {
  position: absolute;
  inset: 0;
  aspect-ratio: auto;
}

.lead-story__image::after,
.hero-stack .news-card--compact .news-card__image::after,
.visual-card::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, rgba(9, 17, 31, 0.08), rgba(9, 17, 31, 0.78));
}

.lead-story__content {
  position: relative;
  z-index: 2;
  padding: 30px;
  color: #fff;
}

.lead-story h1 {
  max-width: 760px;
  color: #fff;
  font-size: 34px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.lead-story p,
.lead-story .meta-line {
  color: #eef2f6;
}

.eyebrow {
  border-radius: 2px;
  background: #fff;
  color: var(--red);
  font-size: 11px;
}

.hero-stack {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
}

.hero-stack .news-card--compact {
  display: flex;
  min-height: 253px;
}

.hero-stack .news-card--compact .news-card__body {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: 253px;
  flex-direction: column;
  justify-content: flex-end;
  padding: 18px;
  color: #fff;
}

.hero-stack .news-card--compact .news-card__image .eyebrow {
  display: none;
}

.hero-stack .news-card--compact h3 {
  color: #fff;
  font-size: 18px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.hero-stack .news-card--compact .meta-line {
  color: #eef2f6;
  font-size: 12px;
}

.news-card {
  border: 0;
  border-radius: 2px;
  box-shadow: none;
}

.news-card--horizontal {
  grid-template-columns: 250px minmax(0, 1fr);
  border-bottom: 1px solid var(--line);
}

.section-heading {
  align-items: center;
  border-bottom: 2px solid var(--navy);
  padding-bottom: 8px;
}

.section-heading span,
.archive-header span,
.page-header span,
.tool-panel span,
.newsletter-band span,
.empty-state span {
  display: inline-flex;
  width: fit-content;
  border-radius: 2px;
  padding: 4px 8px;
  background: var(--red);
  color: #fff;
  font-size: 11px;
}

.section-heading h2 {
  font-size: 24px;
}

.channel-band {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.panel,
.tool-panel,
.page-card,
.empty-state {
  border: 0;
  border-top: 4px solid var(--navy);
  border-radius: 2px;
  box-shadow: var(--shadow);
}

.visual-strip {
  background: #102f4a;
}

.visual-card {
  border-radius: 2px;
}

.visual-card img {
  opacity: 1;
}

.visual-card span,
.visual-card strong {
  z-index: 2;
}

@media (max-width: 1040px) {
  .primary-nav__inner {
    overflow-x: auto;
  }

  .primary-nav__search {
    display: none;
  }

  .masthead__promo {
    max-width: 56%;
  }
}

@media (max-width: 760px) {
  .masthead {
    min-height: 0;
  }

  .masthead__promo {
    display: none;
  }

  .primary-nav__search {
    display: block;
    width: 100%;
    margin-top: 10px;
  }

  .hero-grid,
  .hero-stack {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .lead-story,
  .hero-stack .news-card--compact {
    display: grid;
    min-height: 0;
    background: #fff;
  }

  .lead-story__image,
  .hero-stack .news-card--compact .news-card__image {
    position: relative;
    aspect-ratio: 16 / 10;
  }

  .lead-story__image::after,
  .hero-stack .news-card--compact .news-card__image::after {
    display: none;
  }

  .lead-story__content,
  .hero-stack .news-card--compact .news-card__body {
    min-height: 0;
    padding: 18px;
    color: var(--ink);
  }

  .lead-story h1,
  .hero-stack .news-card--compact h3 {
    color: var(--ink);
    text-shadow: none;
  }

  .lead-story p,
  .lead-story .meta-line,
  .hero-stack .news-card--compact .meta-line {
    color: var(--muted);
  }

  .news-card--horizontal {
    grid-template-columns: 1fr;
  }
}
