:root {
  --san-ink: #06080c;
  --san-navy: #07172f;
  --san-navy-2: #0b2448;
  --san-paper: #f7f9fc;
  --san-card: #ffffff;
  --san-muted: #5b6980;
  --san-line: #dbe3ee;
  --san-signal: #2ed3b7;
  --san-alert: #e63b45;
  --san-radius: 8px;
  --san-shadow: 0 16px 48px rgba(7, 23, 47, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--san-paper);
  color: #101827;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

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

.san-shell {
  display: block;
  width: min(1180px, calc(100% - 48px));
  max-width: 1180px;
  min-width: 0;
  margin-right: auto;
  margin-left: auto;
}

.san-main,
.san-main > section,
.san-main > div {
  width: 100%;
  max-width: none;
}

.san-site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(255, 255, 255, 0.11);
  background: rgba(6, 8, 12, 0.96);
  color: #fff;
  backdrop-filter: blur(12px);
}

.san-site-header__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  min-height: 58px;
  padding: 6px 0;
}

.san-brand {
  display: inline-flex;
  align-items: center;
  min-width: max-content;
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.san-brand img,
.san-brand .custom-logo {
  width: auto;
  max-width: 220px;
  max-height: 42px;
  object-fit: contain;
}

.san-nav ul {
  display: flex;
  gap: 18px;
  justify-content: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.san-nav a {
  color: #d9e6f7;
  font-size: 0.9rem;
  font-weight: 700;
}

.san-mode-toggle,
.san-newsletter button {
  min-height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 6px;
  background: var(--san-signal);
  color: var(--san-ink);
  cursor: pointer;
  font-weight: 800;
  padding: 0 12px;
}

.san-main {
  min-height: 70vh;
}

.san-breaking {
  background: var(--san-alert);
  color: #fff;
  font-weight: 800;
}

.san-breaking__inner {
  display: flex;
  gap: 16px;
  align-items: center;
  min-height: 42px;
}

.san-breaking strong {
  padding: 4px 8px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.22);
  text-transform: uppercase;
}

.san-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.85fr);
  gap: 18px;
  align-items: start;
  padding: 24px 0 34px;
}

.san-hero__lead,
.san-card,
.san-compact,
.san-ad-slot,
.san-widget {
  border: 1px solid var(--san-line);
  border-radius: var(--san-radius);
  background: var(--san-card);
  box-shadow: 0 1px 0 rgba(7, 23, 47, 0.05);
}

.san-hero__lead {
  align-self: start;
  overflow: hidden;
}

.san-hero__image img,
.san-hero__placeholder {
  width: 100%;
  aspect-ratio: 2.05;
  object-fit: cover;
  background: linear-gradient(135deg, var(--san-navy), var(--san-ink));
}

.san-hero__content,
.san-card__body {
  padding: 16px;
}

.san-hero h1 {
  margin: 8px 0 10px;
  max-width: 20ch;
  font-size: clamp(2rem, 2.7vw, 3rem);
  line-height: 1.04;
  letter-spacing: 0;
}

.san-hero p,
.san-card p,
.san-compact p,
.san-section-head p,
.san-lede {
  color: var(--san-muted);
}

.san-hero__side,
.san-stack {
  display: grid;
  gap: 14px;
}

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

.san-hero__side .san-card__media img,
.san-hero__side .san-card__placeholder {
  width: 128px;
  height: 128px;
  min-height: 0;
  aspect-ratio: 1;
  object-fit: cover;
}

.san-hero__side .san-card__body {
  padding: 12px;
}

.san-hero__side .san-card h3 {
  font-size: 0.98rem;
}

.san-hero__side .san-card p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  margin-bottom: 8px;
}

.san-grid {
  display: grid;
  gap: 18px;
}

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

.san-card {
  overflow: hidden;
}

.san-card__media img,
.san-card__placeholder {
  width: 100%;
  aspect-ratio: 1.55;
  object-fit: cover;
  background: linear-gradient(135deg, #102a4e, #0d121f);
}

.san-card h3,
.san-compact h3 {
  margin: 8px 0;
  font-size: 1.06rem;
  line-height: 1.26;
}

.san-kicker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.san-kicker a {
  color: var(--san-navy-2);
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.san-meta,
.san-article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--san-muted);
  font-size: 0.9rem;
}

.san-section {
  padding: 38px 0;
}

.san-section-head {
  margin-bottom: 20px;
}

.san-section-head p {
  margin: 0 0 6px;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.san-section-head h1,
.san-section-head h2 {
  margin: 0;
}

.san-section--dark {
  background: var(--san-navy);
  color: #fff;
}

.san-section--dark .san-section-head p {
  color: var(--san-signal);
}

.san-section--dark .san-section-head h1,
.san-section--dark .san-section-head h2 {
  color: #fff;
}

.san-topic-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.san-topic-grid a {
  min-height: 108px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--san-radius);
  background: rgba(255, 255, 255, 0.06);
}

.san-topic-grid span {
  display: block;
  font-size: 1.1rem;
  font-weight: 900;
}

.san-topic-grid small {
  color: #b9c8dc;
}

.san-two-col,
.san-article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 36px;
}

.san-compact a {
  display: block;
  padding: 18px;
}

.san-newsletter {
  background: var(--san-ink);
  color: #fff;
  padding: 42px 0;
}

.san-newsletter__inner {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 440px);
  gap: 28px;
  align-items: center;
}

.san-newsletter h2 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 3rem);
}

.san-newsletter form {
  display: flex;
  gap: 10px;
  align-items: stretch;
}

.san-newsletter input {
  width: 100%;
  min-height: 46px;
  border: 1px solid #34445d;
  border-radius: 6px;
  background: #0f1725;
  color: #fff;
  padding: 0 14px;
}

.san-newsletter button {
  min-width: 120px;
  min-height: 46px;
}

.san-rss-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.san-rss-item {
  padding: 16px;
  border: 1px solid var(--san-line);
  border-radius: var(--san-radius);
  background: #fff;
}

.san-article-hero {
  background: var(--san-navy);
  color: #fff;
  padding: 30px 0;
}

.san-article-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.8fr);
  gap: 36px;
  align-items: center;
}

.san-article-hero h1 {
  margin: 12px 0;
  font-size: clamp(2rem, 3.6vw, 4rem);
  line-height: 1.04;
}

.san-article-hero .san-kicker a,
.san-article-hero .san-breadcrumbs a {
  color: var(--san-signal);
}

.san-article-hero__media img {
  border-radius: var(--san-radius);
  box-shadow: var(--san-shadow);
}

.san-article-layout {
  grid-template-columns: 70px minmax(0, 760px) 260px;
  align-items: start;
  padding-top: 38px;
}

.san-share {
  position: sticky;
  top: 100px;
  display: grid;
  gap: 10px;
}

.san-share a {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--san-line);
  border-radius: 50%;
  background: #fff;
  font-weight: 900;
}

.san-entry {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.14rem;
  line-height: 1.78;
}

.san-entry > * {
  margin-top: 0;
  margin-bottom: 1.3em;
}

.san-entry a {
  color: #0b4aa0;
  text-decoration: underline;
}

.san-article-side {
  position: sticky;
  top: 100px;
}

.san-site-footer {
  margin-top: 56px;
  background: var(--san-ink);
  color: #d8e4f3;
  padding: 42px 0;
}

.san-site-footer__grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 28px;
}

.san-reading-dark body {
  background: #080b11;
  color: #e8eef7;
}

.san-reading-dark .san-card,
.san-reading-dark .san-compact,
.san-reading-dark .san-rss-item,
.san-reading-dark .san-widget {
  background: #101826;
  border-color: #26334a;
}

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

@media (max-width: 920px) {
  .san-hero,
  .san-newsletter__inner,
  .san-article-hero__grid,
  .san-two-col,
  .san-article-layout,
  .san-site-footer__grid {
    grid-template-columns: 1fr;
  }

  .san-site-header__inner {
    grid-template-columns: 1fr auto;
  }

  .san-brand img,
  .san-brand .custom-logo {
    max-width: min(250px, 64vw);
    max-height: 44px;
  }

  .san-nav {
    grid-column: 1 / -1;
  }

  .san-nav ul {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 8px;
  }

  .san-hero {
    padding-top: 18px;
  }

  .san-hero__side .san-card {
    grid-template-columns: 144px minmax(0, 1fr);
  }

  .san-hero__side .san-card__media img,
  .san-hero__side .san-card__placeholder {
    width: 144px;
    height: 144px;
  }

  .san-hero h1 {
    max-width: 18ch;
    font-size: clamp(1.8rem, 6vw, 2.6rem);
  }

  .san-grid--cards,
  .san-rss-grid,
  .san-topic-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .san-share,
  .san-article-side {
    position: static;
  }

  .san-share {
    display: flex;
  }
}

@media (max-width: 620px) {
  .san-shell {
    width: min(100% - 24px, 1180px);
    max-width: 1180px;
  }

  .san-grid--cards,
  .san-rss-grid,
  .san-topic-grid {
    grid-template-columns: 1fr;
  }

  .san-site-header__inner {
    gap: 10px;
    min-height: 58px;
  }

  .san-brand img,
  .san-brand .custom-logo {
    max-width: min(190px, 56vw);
    max-height: 36px;
  }

  .san-mode-toggle {
    min-height: 34px;
    font-size: 0.78rem;
    padding: 0 10px;
  }

  .san-hero__content,
  .san-card__body {
    padding: 14px;
  }

  .san-hero h1 {
    font-size: clamp(1.65rem, 8vw, 2.25rem);
  }

  .san-hero__side .san-card {
    grid-template-columns: 104px minmax(0, 1fr);
    min-height: 104px;
  }

  .san-hero__side .san-card__media img,
  .san-hero__side .san-card__placeholder {
    width: 104px;
    height: 104px;
    min-height: 0;
  }

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

/* Magazine redesign inspired by the requested clean reference layout. */
body {
  background: #f5f5f4;
}

.san-site-header {
  position: static;
  border-bottom: 0;
  background: #fff;
  color: #111827;
  backdrop-filter: none;
}

.san-header-top {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 14px 0 16px;
  text-align: center;
}

.san-header-top .san-brand {
  justify-content: center;
  min-width: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.25rem, 4vw, 4rem);
  font-weight: 400;
  line-height: 1;
  text-transform: none;
}

.san-header-top .san-brand img,
.san-header-top .san-brand .custom-logo {
  width: auto;
  max-width: min(390px, 76vw);
  max-height: 68px;
  object-fit: contain;
}

.san-header-top p {
  margin: 0;
  color: #172033;
  font-size: 0.98rem;
}

.san-header-nav {
  border-top: 1px solid #eff1f4;
  border-bottom: 1px solid #e7e9ed;
  background: #fff;
}

.san-site-header__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  min-height: 54px;
  padding: 0;
}

.san-nav ul {
  justify-content: flex-start;
  gap: 34px;
}

.san-nav a {
  color: #111827;
  font-size: 0.9rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.san-header-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.san-header-search input {
  width: 180px;
  min-height: 34px;
  border: 1px solid #d8dde6;
  border-radius: 6px;
  opacity: 1;
  padding: 0 10px;
}

.san-header-search button {
  min-width: 54px;
  height: 34px;
  border: 0;
  border-radius: 6px;
  background: #111827;
  color: #fff;
  cursor: pointer;
  font-weight: 800;
}

.san-hero--magazine {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  width: min(1180px, calc(100% - 48px));
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px 0 34px;
  overflow: visible;
}

.san-hero--magazine .san-hero__lead {
  position: relative;
  grid-column: 1;
  grid-row: 1;
  min-height: clamp(340px, 38vw, 500px);
  border: 0;
  border-radius: 8px;
  background: #111827;
  box-shadow: 0 22px 60px rgba(17, 24, 39, 0.14);
}

.san-hero--magazine .san-hero__image {
  position: absolute;
  inset: 0;
}

.san-hero--magazine .san-hero__image img,
.san-hero--magazine .san-hero__placeholder {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
}

.san-hero--magazine .san-hero__lead::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.02) 28%, rgba(17, 24, 39, 0.7) 100%);
}

.san-hero--magazine .san-hero__content {
  position: absolute;
  right: 8%;
  bottom: 46px;
  left: 8%;
  z-index: 1;
  display: grid;
  justify-items: center;
  padding: 0;
  color: #fff;
  text-align: center;
}

.san-hero--magazine .san-kicker {
  justify-content: center;
}

.san-hero--magazine .san-kicker a {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  border-radius: 999px;
  background: #e9495f;
  color: #fff;
  padding: 0 14px;
  font-size: 0.78rem;
}

.san-hero--magazine h1 {
  max-width: 820px;
  margin: 14px 0 0;
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 3.2vw, 3.8rem);
  font-weight: 400;
  line-height: 1.16;
  text-wrap: balance;
}

.san-hero--magazine .san-meta {
  justify-content: center;
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.84);
}

.san-hero--magazine .san-hero__side {
  display: none;
}

.san-hero--magazine .san-hero__side .san-card {
  position: relative;
  grid-row: 1;
  display: block;
  min-height: clamp(390px, 48vw, 650px);
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  background: #cfd5d8;
  box-shadow: none;
  opacity: 0.82;
}

.san-hero--magazine .san-hero__side .san-card:nth-child(1) {
  grid-column: 1;
}

.san-hero--magazine .san-hero__side .san-card:nth-child(2) {
  grid-column: 3;
}

.san-hero--magazine .san-hero__side .san-card__media,
.san-hero--magazine .san-hero__side .san-card__media img,
.san-hero--magazine .san-hero__side .san-card__placeholder {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
}

.san-hero--magazine .san-hero__side .san-card__body {
  display: none;
}

.san-section {
  padding: 34px 0;
}

.san-section-head h2 {
  color: #111827;
  font-size: clamp(1.7rem, 2vw, 2.35rem);
}

.san-grid--cards {
  gap: 22px;
}

.san-card {
  border: 0;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(17, 24, 39, 0.08);
}

.san-card__media img,
.san-card__placeholder {
  aspect-ratio: 1.42;
  border-radius: 10px 10px 0 0;
}

.san-card h3 {
  font-size: 1.16rem;
}

.san-section--dark {
  margin-top: 34px;
  background: #07172f;
}

@media (max-width: 920px) {
  .san-header-top {
    padding: 12px 0 14px;
  }

  .san-site-header__inner {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 10px 0;
  }

  .san-nav ul {
    gap: 22px;
  }

  .san-header-search {
    justify-content: flex-start;
  }

  .san-header-search input,
  .san-header-search:focus-within input {
    width: min(280px, 70vw);
    opacity: 1;
  }

  .san-hero--magazine {
    width: min(100% - 24px, 1180px);
    padding: 14px 0 28px;
  }

  .san-hero--magazine .san-hero__lead {
    grid-column: 1;
    min-height: 360px;
  }

  .san-hero--magazine .san-hero__side {
    display: none;
  }
}

@media (max-width: 620px) {
  .san-header-top .san-brand img,
  .san-header-top .san-brand .custom-logo {
    max-width: min(300px, 86vw);
    max-height: 56px;
  }

  .san-header-top p {
    max-width: 28ch;
  }

  .san-nav ul {
    gap: 18px;
  }

  .san-hero--magazine .san-hero__lead {
    min-height: 315px;
  }

  .san-hero--magazine .san-hero__content {
    right: 20px;
    bottom: 36px;
    left: 20px;
  }

  .san-hero--magazine h1 {
    font-size: clamp(1.65rem, 8vw, 2.45rem);
  }
}

/* Admin-connected final overrides. */
:root {
  --san-admin-primary: #07172f;
  --san-admin-accent: #e9495f;
  --san-admin-width: 1180px;
}

.san-shell,
.san-hero--magazine {
  max-width: var(--san-admin-width);
}

.san-shell {
  width: min(var(--san-admin-width), calc(100% - 48px));
}

.san-section--dark,
.san-newsletter {
  background: var(--san-admin-primary);
}

.san-hero--magazine .san-kicker a,
.san-breaking,
.san-newsletter button {
  background: var(--san-admin-accent);
}

.san-grid__full {
  grid-column: 1 / -1;
}

.san-ad-slot {
  display: grid;
  gap: 8px;
  margin: 18px 0;
  padding: 12px;
  border: 1px solid #e3e7ee;
  border-radius: 8px;
  background: #fff;
  text-align: center;
}

.san-ad-label {
  color: #697386;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.san-ad-slot--mobile_sticky {
  display: none;
}

.san-author-box {
  margin-top: 26px;
  padding: 22px;
  border: 1px solid #e3e7ee;
  border-radius: 10px;
  background: #fff;
}

.san-author-box h2 {
  margin-top: 0;
}

.san-layout-dense .san-grid--cards {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.san-mode-dark body,
body.san-mode-dark {
  background: #080b11;
  color: #e8eef7;
}

@media (max-width: 920px) {
  .san-layout-dense .san-grid--cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .san-shell,
  .san-hero--magazine {
    width: min(100% - 24px, var(--san-admin-width));
  }

  .san-ad-slot--hide-mobile {
    display: none;
  }

  .san-ad-slot--mobile_sticky {
    position: fixed;
    right: 12px;
    bottom: 12px;
    left: 12px;
    z-index: 80;
    display: grid;
    margin: 0;
    box-shadow: 0 12px 32px rgba(17, 24, 39, 0.24);
  }

  .san-ad-slot--mobile_sticky.san-ad-slot--hide-mobile {
    display: none;
  }
}

/* Stable final front page shell. */
.san-front {
  background: #f3f5f8;
}

.san-front .san-hero--magazine.san-shell {
  display: block !important;
  width: min(1120px, calc(100% - 48px)) !important;
  max-width: 1120px !important;
  margin: 24px auto 0 !important;
  padding: 0 !important;
}

.san-front .san-hero--magazine .san-hero__lead {
  min-height: 0 !important;
  border: 1px solid #dfe5ee !important;
  border-radius: 8px !important;
  background: #fff !important;
  box-shadow: 0 12px 32px rgba(17, 24, 39, 0.08) !important;
}

.san-front .san-hero--magazine .san-hero__image {
  position: relative !important;
  display: block !important;
  inset: auto !important;
}

.san-front .san-hero--magazine .san-hero__image img,
.san-front .san-hero--magazine .san-hero__placeholder {
  width: 100% !important;
  height: clamp(280px, 38vw, 470px) !important;
  max-height: 470px !important;
  aspect-ratio: auto !important;
  object-fit: cover !important;
}

.san-front .san-hero--magazine .san-hero__lead::after {
  display: none !important;
}

.san-front .san-hero--magazine .san-hero__content {
  position: relative !important;
  right: auto !important;
  bottom: auto !important;
  left: auto !important;
  z-index: 1 !important;
  display: block !important;
  padding: 22px 26px 26px !important;
  color: #111827 !important;
  text-align: left !important;
}

.san-front .san-hero--magazine .san-kicker {
  justify-content: flex-start !important;
}

.san-front .san-hero--magazine h1 {
  max-width: 760px !important;
  margin: 12px 0 0 !important;
  color: #111827 !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  font-size: clamp(2rem, 3vw, 3.35rem) !important;
  font-weight: 900 !important;
  line-height: 1.04 !important;
}

.san-front .san-hero--magazine .san-meta {
  justify-content: flex-start !important;
  margin-top: 14px !important;
  color: #5b6980 !important;
}

.san-latest-section {
  display: block !important;
  width: min(1120px, calc(100% - 48px)) !important;
  max-width: 1120px !important;
  margin-right: auto !important;
  margin-left: auto !important;
  padding-top: 34px !important;
}

.san-latest-section .san-grid--cards {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 20px !important;
}

.san-latest-section .san-card__media img,
.san-latest-section .san-card__placeholder {
  height: 220px !important;
  aspect-ratio: auto !important;
  object-fit: cover !important;
}

/* Archive/blog fallback hardening for posts-page views and parent-theme leakage. */
.san-main.san-shell {
  padding: 34px 0 56px;
}

.san-main.san-shell .san-section-head {
  max-width: var(--san-admin-width);
  margin: 0 auto 24px;
}

.san-main.san-shell .san-section-head h1 {
  font-size: clamp(2rem, 3vw, 3rem);
}

.san-main.san-shell .san-grid--cards {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 22px !important;
}

.san-main.san-shell .san-card {
  overflow: hidden;
  border: 0;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(17, 24, 39, 0.08);
}

.san-main.san-shell .san-card__media {
  display: block;
}

.san-main.san-shell .san-card__media img,
.san-main.san-shell .san-card__placeholder {
  display: block;
  width: 100% !important;
  height: auto;
  aspect-ratio: 1.42;
  object-fit: cover;
}

.san-main.san-shell .san-card__body {
  padding: 16px;
}

body.home .site-content,
body.blog .site-content,
body.archive .site-content,
body.search .site-content {
  width: min(1120px, calc(100% - 48px)) !important;
  max-width: 1120px !important;
  margin-right: auto !important;
  margin-left: auto !important;
}

body.home .site-main:not(.san-main),
body.blog .site-main:not(.san-main),
body.archive .site-main:not(.san-main),
body.search .site-main:not(.san-main) {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 20px !important;
  padding: 34px 0 56px !important;
}

body.home .site-main:not(.san-main) > header,
body.blog .site-main:not(.san-main) > header,
body.archive .site-main:not(.san-main) > header,
body.search .site-main:not(.san-main) > header,
body.home .site-main:not(.san-main) > .page-header,
body.blog .site-main:not(.san-main) > .page-header,
body.archive .site-main:not(.san-main) > .page-header,
body.search .site-main:not(.san-main) > .page-header {
  grid-column: 1 / -1 !important;
}

body.home .site-main:not(.san-main) > article,
body.blog .site-main:not(.san-main) > article,
body.archive .site-main:not(.san-main) > article,
body.search .site-main:not(.san-main) > article {
  overflow: hidden !important;
  margin: 0 !important;
  border: 1px solid #dfe5ee !important;
  border-radius: 8px !important;
  background: #fff !important;
  box-shadow: 0 10px 28px rgba(17, 24, 39, 0.08) !important;
}

body.home .site-main:not(.san-main) > article img,
body.blog .site-main:not(.san-main) > article img,
body.archive .site-main:not(.san-main) > article img,
body.search .site-main:not(.san-main) > article img {
  width: 100% !important;
  height: 220px !important;
  max-height: 220px !important;
  object-fit: cover !important;
}

body.home .site-main:not(.san-main) > article .entry-header,
body.home .site-main:not(.san-main) > article .entry-content,
body.home .site-main:not(.san-main) > article .entry-summary,
body.blog .site-main:not(.san-main) > article .entry-header,
body.blog .site-main:not(.san-main) > article .entry-content,
body.blog .site-main:not(.san-main) > article .entry-summary,
body.archive .site-main:not(.san-main) > article .entry-header,
body.archive .site-main:not(.san-main) > article .entry-content,
body.archive .site-main:not(.san-main) > article .entry-summary,
body.search .site-main:not(.san-main) > article .entry-header,
body.search .site-main:not(.san-main) > article .entry-content,
body.search .site-main:not(.san-main) > article .entry-summary {
  padding: 14px 16px !important;
}

body.home .site-main:not(.san-main) > article h1,
body.home .site-main:not(.san-main) > article h2,
body.blog .site-main:not(.san-main) > article h1,
body.blog .site-main:not(.san-main) > article h2,
body.archive .site-main:not(.san-main) > article h1,
body.archive .site-main:not(.san-main) > article h2,
body.search .site-main:not(.san-main) > article h1,
body.search .site-main:not(.san-main) > article h2 {
  margin: 0 0 8px !important;
  font-size: 1.1rem !important;
  line-height: 1.25 !important;
}

@media (max-width: 920px) {
  .san-latest-section .san-grid--cards,
  .san-main.san-shell .san-grid--cards {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  body.home .site-main:not(.san-main),
  body.blog .site-main:not(.san-main),
  body.archive .site-main:not(.san-main),
  body.search .site-main:not(.san-main) {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 620px) {
  .san-front .san-hero--magazine.san-shell,
  .san-latest-section,
  body.home .site-content,
  body.blog .site-content,
  body.archive .site-content,
  body.search .site-content {
    width: min(100% - 24px, 1120px) !important;
  }

  .san-front .san-hero--magazine .san-hero__image img,
  .san-front .san-hero--magazine .san-hero__placeholder {
    height: 240px !important;
  }

  .san-front .san-hero--magazine .san-hero__content {
    padding: 16px !important;
  }

  .san-front .san-hero--magazine h1 {
    font-size: clamp(1.55rem, 8vw, 2.15rem) !important;
  }

  .san-latest-section .san-grid--cards,
  .san-main.san-shell .san-grid--cards {
    grid-template-columns: 1fr !important;
  }

  body.home .site-main:not(.san-main),
  body.blog .site-main:not(.san-main),
  body.archive .site-main:not(.san-main),
  body.search .site-main:not(.san-main) {
    grid-template-columns: 1fr !important;
  }
}
