body.magazine-page {
  background:
    radial-gradient(1200px 620px at 108% -8%, rgba(90, 73, 244, 0.11), transparent 72%),
    radial-gradient(960px 520px at -10% 16%, rgba(23, 72, 122, 0.13), transparent 72%),
    linear-gradient(180deg, #eaf0f5 0%, #f4f7fb 42%, #edf3f7 100%);
}

.magazine-page main {
  margin-top: 56px;
  gap: clamp(28px, 4vw, 52px);
}

.mag-shell {
  display: grid;
  gap: clamp(18px, 2.6vw, 28px);
}

.mag-topline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 20px;
}

.mag-kicker {
  margin: 0;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #3b5577;
  font-weight: 800;
}

.mag-date {
  margin: 0;
  color: #596f8d;
  font-size: 0.83rem;
  font-weight: 700;
}

.mag-edition {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mag-edition-item {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 13px;
  border: 1px solid #c4d2e2;
  border-radius: var(--radius-btn);
  background: rgba(255, 255, 255, 0.75);
  color: #233b5a;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
}

.mag-lead {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: clamp(18px, 2.4vw, 28px);
}

.mag-main-story {
  padding: clamp(18px, 3vw, 28px);
  background: linear-gradient(145deg, rgba(12, 32, 56, 0.9), rgba(10, 23, 40, 0.95));
  border: 1px solid rgba(174, 197, 221, 0.24);
  color: #f2f7fe;
}

.mag-main-story .eyebrow {
  margin-bottom: 14px;
  color: #a8bad4;
}

.mag-main-story h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.3vw, 3.42rem);
  line-height: 1.06;
  margin-bottom: 14px;
  letter-spacing: 0;
}

.mag-main-story p {
  font-size: clamp(1rem, 1.3vw, 1.16rem);
  line-height: 1.56;
  color: #dce8f7;
}

.mag-main-meta {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  color: #b9cee8;
  font-size: 0.83rem;
  font-weight: 700;
}

.mag-main-meta span {
  position: relative;
  padding-left: 13px;
}

.mag-main-meta span::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  transform: translateY(-50%);
  background: #10c7b8;
}

.mag-lead-figure {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid #c6d4e3;
  min-height: 100%;
}

.mag-lead-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mag-highlight-slider {
  display: grid;
  gap: 12px;
}

.mag-highlight-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.mag-highlight {
  padding: 16px;
}

.mag-highlight-pagination {
  display: none;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.mag-highlight-slider.is-slider .mag-highlight-grid {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.mag-highlight-slider.is-slider .mag-highlight-grid::-webkit-scrollbar {
  display: none;
}

.mag-highlight-slider.is-slider .mag-highlight {
  flex: 0 0 100%;
  width: 100%;
  scroll-snap-align: center;
}

.mag-highlight-slider.is-slider .mag-highlight-pagination {
  display: flex;
}

.mag-highlight h2 {
  font-size: 1.07rem;
  line-height: 1.3;
  color: #1a3251;
  margin-bottom: 10px;
}

.mag-highlight p {
  color: #566b88;
  font-size: 0.95rem;
  line-height: 1.45;
}

.mag-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: clamp(16px, 2.2vw, 28px);
}

.mag-story {
  padding: clamp(20px, 2.6vw, 30px);
}

.mag-story h2 {
  font-size: clamp(1.26rem, 2.4vw, 1.85rem);
  color: #1a3251;
  margin-bottom: 12px;
}

.mag-story h3 {
  margin-top: 22px;
  margin-bottom: 10px;
  color: #1f3c60;
  font-size: 1.08rem;
}

.mag-story p {
  color: #2e4564;
  line-height: 1.64;
  font-size: 1rem;
}

.mag-story p + p {
  margin-top: 12px;
}

.mag-story > p:first-of-type::first-letter {
  float: left;
  font-family: var(--font-display);
  font-size: 3.4rem;
  line-height: 0.9;
  margin-right: 10px;
  margin-top: 3px;
  color: #12365f;
}

.mag-list {
  margin: 14px 0 0;
  padding-left: 18px;
  display: grid;
  gap: 10px;
  color: #2e4564;
}

.mag-list li {
  line-height: 1.54;
}

.mag-pullquote {
  margin: 20px 0;
  padding: 18px 20px;
  border-left: 4px solid #10c7b8;
  background: linear-gradient(145deg, rgba(16, 199, 184, 0.08), rgba(16, 124, 199, 0.03));
  border-radius: var(--radius-btn);
}

.mag-pullquote p {
  font-family: var(--font-display);
  color: #173a61;
  font-size: clamp(1.2rem, 2vw, 1.52rem);
  line-height: 1.34;
}

.mag-aside {
  display: grid;
  gap: 12px;
  align-content: start;
}

.mag-side-card {
  padding: 16px;
}

.mag-side-card h3 {
  margin-bottom: 10px;
  color: #16355a;
  font-size: 1rem;
}

.mag-side-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
  color: #30496a;
  font-size: 0.93rem;
}

.mag-side-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px;
  align-items: baseline;
}

.mag-side-list strong {
  color: #12355e;
  font-size: 0.82rem;
}

.mag-next {
  display: grid;
  gap: 12px;
}

.mag-next h2 {
  font-size: clamp(1.22rem, 2vw, 1.62rem);
  color: #1a3558;
}

.mag-next-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.mag-next-item {
  overflow: hidden;
}

.mag-next-item img {
  width: 100%;
  height: 170px;
  object-fit: cover;
}

.mag-next-copy {
  padding: 14px;
  display: grid;
  gap: 8px;
}

.mag-next-copy p {
  margin: 0;
  color: #516987;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
}

.mag-next-copy h3 {
  margin: 0;
  color: #1d3658;
  font-size: 1.02rem;
  line-height: 1.35;
}

.mag-next-copy a {
  color: #4a3ef1;
  font-weight: 700;
  text-decoration: none;
}

.mag-next-copy a:hover,
.mag-next-copy a:focus-visible {
  text-decoration: underline;
}

.mag-contact {
  padding: clamp(18px, 2.8vw, 26px);
  display: grid;
  gap: 10px;
}

.mag-contact p {
  color: #425c7c;
  line-height: 1.55;
}

.mag-overview-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.mag-overview-kpi {
  padding: 16px;
  display: grid;
  gap: 8px;
}

.mag-overview-kpi-label {
  margin: 0;
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 800;
  color: #5f7795;
}

.mag-overview-kpi-value {
  margin: 0;
  color: #17385d;
  font-size: 1.2rem;
  line-height: 1.25;
  font-weight: 800;
  font-family: var(--font-display);
}

.mag-overview-kpi-copy {
  margin: 0;
  color: #45607f;
  line-height: 1.5;
}

.mag-overview-categories {
  display: grid;
  gap: 12px;
}

.mag-overview-category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.mag-overview-category {
  padding: 16px;
  display: grid;
  gap: 8px;
}

.mag-overview-category h3 {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.3;
  color: #1e3a5e;
}

.mag-overview-category p {
  margin: 0;
  color: #4e6685;
  line-height: 1.5;
  font-size: 0.95rem;
}

.mag-overview-roadmap {
  display: grid;
  gap: 14px;
}

.mag-overview-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mag-overview-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.mag-overview-column {
  padding: 16px;
  display: grid;
  gap: 12px;
}

.mag-overview-column h3 {
  margin: 0;
  color: #17385d;
  font-size: 1.06rem;
}

.mag-topic-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.mag-topic-item {
  border-top: 1px solid #cfdaea;
  padding-top: 12px;
  display: grid;
  gap: 6px;
}

.mag-topic-item:first-child {
  border-top: 0;
  padding-top: 0;
}

.mag-topic-state {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 22px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
  border: 1px solid transparent;
}

.mag-topic-state.is-live {
  color: #0d5b56;
  background: rgba(16, 199, 184, 0.15);
  border-color: rgba(16, 199, 184, 0.28);
}

.mag-topic-state.is-priority {
  color: #3c2f8f;
  background: rgba(90, 73, 244, 0.13);
  border-color: rgba(90, 73, 244, 0.24);
}

.mag-topic-state.is-planned {
  color: #4a6381;
  background: rgba(206, 221, 236, 0.65);
  border-color: #c0d0e1;
}

.mag-topic-title {
  margin: 0;
  color: #223f62;
  font-size: 0.99rem;
  line-height: 1.4;
  font-weight: 700;
}

.mag-topic-title a {
  color: inherit;
  text-decoration: none;
}

.mag-topic-title a:hover,
.mag-topic-title a:focus-visible {
  text-decoration: underline;
}

.mag-topic-copy {
  margin: 0;
  color: #4a6381;
  line-height: 1.52;
  font-size: 0.92rem;
}

.mag-topic-copy a {
  color: #4a3ef1;
  font-weight: 700;
}

.mag-topic-copy strong {
  color: #16395f;
}

@media (max-width: 1120px) {
  .mag-overview-strip,
  .mag-overview-columns {
    grid-template-columns: 1fr;
  }

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

  .mag-lead,
  .mag-layout {
    grid-template-columns: 1fr;
  }

  .mag-lead-figure {
    max-height: 380px;
  }
}

@media (max-width: 860px) {
  .mag-highlight-grid,
  .mag-next-grid,
  .mag-overview-category-grid {
    grid-template-columns: 1fr;
  }

  .mag-main-story h1 {
    font-size: clamp(1.76rem, 8vw, 2.4rem);
  }
}

@media (max-width: 760px), ((max-width: 1366px) and (pointer: coarse)) {
  .magazine-page main {
    margin-top: 40px;
  }

  .mag-main-story,
  .mag-story,
  .mag-contact {
    padding: 16px;
  }

  .mag-main-meta {
    font-size: 0.78rem;
  }

  .mag-story > p:first-of-type::first-letter {
    font-size: 2.8rem;
    margin-right: 8px;
  }
}
