:root {
  --site-bg: #f3f5f8;
  --site-surface: rgba(255, 255, 255, 0.88);
  --site-surface-strong: #ffffff;
  --site-surface-muted: rgba(247, 249, 252, 0.9);
  --site-border: rgba(15, 23, 42, 0.08);
  --site-border-strong: rgba(15, 23, 42, 0.12);
  --site-text: #111827;
  --site-text-soft: #475569;
  --site-text-muted: #64748b;
  --site-accent: #2563eb;
  --site-accent-soft: rgba(37, 99, 235, 0.1);
  --site-shadow: 0 18px 48px rgba(15, 23, 42, 0.08);
  --site-shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.06);
}

html[data-theme="dark"] {
  --site-bg: #0b1220;
  --site-surface: rgba(15, 23, 42, 0.78);
  --site-surface-strong: #111827;
  --site-surface-muted: rgba(15, 23, 42, 0.92);
  --site-border: rgba(148, 163, 184, 0.18);
  --site-border-strong: rgba(148, 163, 184, 0.28);
  --site-text: #e5eefb;
  --site-text-soft: #c7d2e4;
  --site-text-muted: #94a3b8;
  --site-accent: #60a5fa;
  --site-accent-soft: rgba(96, 165, 250, 0.14);
  --site-shadow: 0 20px 50px rgba(2, 6, 23, 0.45);
  --site-shadow-soft: 0 10px 24px rgba(2, 6, 23, 0.28);
}

html {
  background: var(--site-bg);
}

body {
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.08), transparent 28%),
    radial-gradient(circle at top right, rgba(59, 130, 246, 0.05), transparent 24%),
    var(--site-bg);
  color: var(--site-text);
  transition: background-color 200ms ease, color 200ms ease;
}

body,
body p,
body li,
body div,
body span {
  color: var(--site-text);
}

body a,
body .link {
  color: var(--site-accent);
}

body a:hover,
body .link:hover {
  color: var(--site-accent);
}

header {
  top: 10px;
  padding-bottom: 92px;
}

.site-brand {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  margin: 0 auto 12px;
  padding: 0 18px;
  width: min(1240px, 100%);
}

.site-brand__link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  padding: 0 28px;
  border: 1px solid var(--site-border-strong);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.68)),
    var(--site-surface);
  box-shadow:
    0 14px 34px rgba(15, 23, 42, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
  color: var(--site-text);
  font-size: 1.24rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, color 180ms ease;
}

.site-brand__link::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 9px;
  height: 1px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent 0%, rgba(37, 99, 235, 0.18) 20%, rgba(37, 99, 235, 0.45) 50%, rgba(37, 99, 235, 0.18) 80%, transparent 100%);
}

.site-brand__link:hover {
  color: var(--site-accent);
  text-decoration: none;
  border-color: rgba(37, 99, 235, 0.24);
  box-shadow:
    0 18px 40px rgba(15, 23, 42, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.78);
  transform: translateY(-1px);
}

html[data-theme="dark"] .site-brand__link {
  background:
    linear-gradient(180deg, rgba(30, 41, 59, 0.96), rgba(15, 23, 42, 0.9)),
    var(--site-surface);
  box-shadow:
    0 16px 36px rgba(2, 6, 23, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

html[data-theme="dark"] .site-brand__link:hover {
  border-color: rgba(96, 165, 250, 0.28);
  box-shadow:
    0 18px 42px rgba(2, 6, 23, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.nav {
  max-width: 1240px;
  min-width: auto;
  margin: 0 auto;
  padding: 0 18px;
  height: auto;
  background: transparent;
  backdrop-filter: none;
}

.nav::after {
  inset: 0 18px;
  border-radius: 20px;
  border: 1px solid var(--site-border);
  background: var(--site-surface);
  box-shadow: var(--site-shadow-soft);
}

.nav-content-wrapper {
  max-width: 1180px;
}

.nav-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 72px;
}

.nav-menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.nav-item-wrapper {
  margin: 0;
  padding: 0;
  border-radius: 999px;
  transition: background-color 180ms ease, transform 180ms ease;
}

.nav-item-wrapper:hover {
  background: var(--site-accent-soft);
  transform: translateY(-1px);
}

.nav-item-content {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--site-text-soft);
  font-size: 0.92rem;
  font-weight: 600;
}

.nav-item-content--icon,
.theme-toggle--icon {
  justify-content: center;
  width: 40px;
  min-width: 40px;
  padding: 0;
  font-size: 0.82rem;
  letter-spacing: 0;
}

.nav-item-wrapper a:hover,
.nav-item-content:hover {
  color: var(--site-accent);
  text-decoration: none !important;
}

.theme-toggle {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--site-border-strong);
  border-radius: 999px;
  background: var(--site-surface-strong);
  color: var(--site-text-soft);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    0 0 0 1px rgba(15, 23, 42, 0.04);
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.theme-toggle:hover {
  color: var(--site-accent);
  border-color: var(--site-border-strong);
  transform: translateY(-1px);
}

.theme-toggle__icon--moon {
  display: none;
}

.theme-toggle__icon {
  font-size: 1rem;
  line-height: 1;
}

html[data-theme="dark"] .theme-toggle__icon--sun {
  display: none;
}

html[data-theme="dark"] .theme-toggle__icon--moon {
  display: inline;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.section-head,
.result__title,
.hero-headline,
.item__headline,
.tile__headline,
.category-header__title,
.footer-main .item .logo,
.footer-main .foot-nav-items .item-title {
  color: var(--site-text);
}

.everydayfeed,
.more-from-newsroom {
  background: transparent;
}

.everydayfeed .view-archive-wrapper {
  margin-top: 36px;
  text-align: center;
}

.more-from-newsroom .section-tiles {
  margin-right: 0;
  margin-left: 0;
  gap: 20px;
  justify-content: center;
}

.more-from-newsroom .tile-item {
  width: 320px;
  margin-right: 0;
  margin-left: 0;
  flex-grow: 0;
}

.more-from-newsroom .section-tiles::before,
.more-from-newsroom .section-tiles::after {
  content: none;
}

@media only screen and (max-width: 1068px) {
  .more-from-newsroom .section-tiles {
    gap: 24px;
  }

  .more-from-newsroom .tile-item {
    width: 100%;
  }
}

.tile {
  border: 2px solid transparent;
  background-origin: border-box;
  background-clip: padding-box, border-box;
  background-image:
    linear-gradient(var(--site-surface-strong), var(--site-surface-strong)),
    linear-gradient(135deg, #8b5cf6 0%, #ec4899 28%, #f59e0b 52%, #22c55e 76%, #3b82f6 100%);
  box-shadow:
    var(--site-shadow-soft),
    0 0 0 1px rgba(236, 72, 153, 0.08),
    0 16px 32px rgba(139, 92, 246, 0.12);
}

.results .result__item {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-top: 16px;
  padding: 30px 22px;
  border: 2px solid transparent;
  border-top-color: transparent;
  border-radius: 24px;
  background-origin: border-box;
  background-clip: padding-box, border-box;
  background-image:
    linear-gradient(var(--site-surface-strong), var(--site-surface-strong)),
    linear-gradient(135deg, #8b5cf6 0%, #ec4899 28%, #f59e0b 52%, #22c55e 76%, #3b82f6 100%);
  box-shadow:
    0 10px 24px rgba(139, 92, 246, 0.08),
    0 0 0 1px rgba(59, 130, 246, 0.06);
}

.tile--draft {
  border-width: 3px;
  background-image:
    linear-gradient(var(--site-surface-strong), var(--site-surface-strong)),
    linear-gradient(135deg, #f59e0b 0%, #fb923c 32%, #f97316 62%, #ea580c 100%);
}

.tile--draft {
  box-shadow:
    var(--site-shadow-soft),
    0 0 0 1px rgba(249, 115, 22, 0.12),
    0 16px 32px rgba(234, 88, 12, 0.16);
}

.results .result__item.result__item--draft {
  border-width: 3px;
  background-image:
    linear-gradient(var(--site-surface-strong), var(--site-surface-strong)),
    linear-gradient(135deg, #f59e0b 0%, #fb923c 32%, #f97316 62%, #ea580c 100%);
  box-shadow:
    var(--site-shadow-soft),
    0 0 0 1px rgba(249, 115, 22, 0.12),
    0 16px 32px rgba(234, 88, 12, 0.16);
}

.tile__category,
.tile__timestamp,
.item__category,
.item__date,
.tile__summary,
.item__summary,
.category-eyebrow__category,
.category-eyebrow__date,
.footer-main .item div,
.footer-main .item a,
.footer-main .copyright,
.result__summary {
  color: var(--site-text-muted);
}

.tile__description {
  background: linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, 0.02) 100%);
}

.tile__summary,
.item__summary {
  margin: 10px 0 0;
  overflow: hidden;
  color: var(--site-text-soft);
  font-size: 0.94rem;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-box-orient: vertical;
}

.tile.tile-hero .tile__summary {
  -webkit-line-clamp: 4;
  line-clamp: 4;
  max-height: calc(1.45em * 4);
}

.tile.tile-2up .tile__summary,
.tile.tile-3up .tile__summary,
.tile.tile-list .tile__summary,
.item__summary {
  -webkit-line-clamp: 2;
  line-clamp: 2;
  max-height: calc(1.45em * 2);
}

.item__summary {
  margin-top: 8px;
}

.everydayfeed .tile__media {
  display: flex;
  align-items: stretch;
  justify-content: center;
}

.everydayfeed .tile__media .image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.everydayfeed .tile.tile-hero .tile__media--compact {
  display: flex;
  align-items: stretch;
  justify-content: center;
  background: #fff;
}

.everydayfeed .tile.tile-hero .tile__media--compact .image {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  object-fit: cover;
  object-position: center top;
}

@media only screen and (max-width: 734px) {
  .everydayfeed .tile.tile-hero .tile__media--compact .image {
    width: 100%;
    max-width: none;
    height: 100%;
    max-height: none;
    object-fit: cover;
  }
}

.results .result__item .viewport-picture {
  display: block;
  width: 220px;
  height: 132px;
  flex: 0 0 220px;
  overflow: hidden;
  border-radius: 16px;
}

.results .result__item .viewport-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 0;
}

.results .result__item .item__content {
  flex: 1 1 auto;
  min-width: 0;
  margin-left: 0;
}

.results__content,
.section-content {
  width: min(1120px, calc(100% - 40px));
}

.category-header {
  width: min(1120px, calc(100% - 40px));
  margin: 20px auto 0;
}

.category-header__inner {
  padding: 24px 28px;
  border: 1px solid var(--site-border);
  border-radius: 24px;
  background: var(--site-surface);
  box-shadow: var(--site-shadow-soft);
  text-align: center;
}

.category-header__title {
  margin: 0;
  font-size: clamp(1.8rem, 2.8vw, 2.5rem);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.result:last-of-type {
  border-bottom-color: var(--site-border);
}

.page-article .article {
  padding-bottom: 32px;
}

.featured-header,
.article-copyright {
  width: min(960px, calc(100% - 40px));
  margin-left: auto;
  margin-right: auto;
}

.featured-header {
  margin-top: 28px;
  padding: 36px 40px;
  border: 1px solid var(--site-border);
  border-radius: 28px;
  background: var(--site-surface);
  box-shadow: var(--site-shadow-soft);
}

.article-hero .component-content {
  width: 100%;
}

.article-hero__media {
  width: min(100%, 760px);
  margin: 28px auto 0;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid var(--site-border);
  background: var(--site-surface-muted);
  box-shadow: var(--site-shadow-soft);
  aspect-ratio: 21 / 9;
  max-height: 340px;
}

.article-hero__media--compact {
  width: min(100%, 620px);
  aspect-ratio: 16 / 10;
  max-height: 360px;
}

.article-hero__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.article-hero__media--compact .article-hero__image {
  object-position: center;
}

.pagebody .component-content.component,
.pagebody .component-content.pagebody.component,
.pagebody blockquote,
.pagebody pre,
.pagebody ul,
.pagebody ol {
  width: min(840px, calc(100% - 40px));
  margin-left: auto;
  margin-right: auto;
}

.pagebody .component-content.component,
.pagebody .component-content.pagebody.component {
  color: var(--site-text-soft);
}

.pagebody pre {
  padding: 20px 22px;
  border: 1px solid var(--site-border);
  border-radius: 18px;
  background: var(--site-surface-muted);
  box-shadow: var(--site-shadow-soft);
  overflow-x: auto;
}

.pagebody blockquote {
  padding: 20px 24px;
  border-left: 4px solid var(--site-accent);
  border-radius: 0 18px 18px 0;
  background: var(--site-surface);
}

.article-copyright {
  margin-top: 28px;
  padding: 24px 28px;
  border: 1px solid var(--site-border);
  border-radius: 20px;
  background: var(--site-surface);
  box-shadow: var(--site-shadow-soft);
}

.footer-main {
  margin: 40px auto 24px;
  width: min(1180px, calc(100% - 32px));
  border-top: none;
  background: transparent;
}

.footer-wraper {
  width: 100%;
  max-width: none;
}

.footer-box {
  border: 1px solid var(--site-border);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.68), rgba(255, 255, 255, 0.52)),
    var(--site-surface);
  box-shadow: var(--site-shadow-soft);
}

.footer-main .foot-nav {
  padding: 20px 22px 12px;
}

.footer-main .foot-nav-items {
  display: grid;
  grid-template-columns: minmax(220px, 1.5fr) repeat(2, minmax(120px, 1fr));
  gap: 20px;
  align-items: start;
}

.footer-main .foot-nav-items .item {
  min-width: 0;
}

.footer-main .item-brand {
  padding-right: 4px;
}

.footer-main .item .logo {
  display: inline-flex;
  align-items: center;
  color: var(--site-text);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.footer-main .item .logo:hover {
  color: var(--site-accent);
  text-decoration: none;
}

.footer-summary {
  margin: 8px 0 0;
  max-width: 28ch;
  color: var(--site-text-soft);
  font-size: 0.9rem;
  line-height: 1.45;
}

.footer-main .email {
  margin-top: 12px;
  font-size: 0.92rem;
}

.footer-main .item-title {
  margin-bottom: 8px;
  color: var(--site-text);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.footer-main .item div,
.footer-main .item a {
  color: var(--site-text-muted);
}

.footer-main .item a {
  display: block;
  width: fit-content;
  margin-top: 7px;
  font-size: 0.92rem;
  text-decoration: none;
  transition: color 180ms ease, transform 180ms ease;
}

.footer-main .item a:hover {
  color: var(--site-accent);
  transform: translateX(1px);
  text-decoration: none;
}

.footer-quote-bar {
  width: 100%;
  margin: 0 auto 24px;
  padding: 14px 24px 0;
}

.footer-quote-bar__text {
  margin: 0;
  padding: 14px 18px;
  border-top: 1px solid var(--site-border);
  color: var(--site-text-muted);
  font-size: 0.86rem;
  line-height: 1.45;
  font-style: italic;
  text-align: center;
}

html[data-theme="dark"] body,
html[data-theme="dark"] .theme-dark {
  color-scheme: dark;
}

html[data-theme="dark"] .nav::after,
html[data-theme="dark"] .featured-header,
html[data-theme="dark"] .article-copyright,
html[data-theme="dark"] .footer-box,
html[data-theme="dark"] .tile,
html[data-theme="dark"] .pagebody blockquote,
html[data-theme="dark"] .pagebody pre {
  box-shadow: var(--site-shadow);
}

html[data-theme="dark"] .footer-box {
  background:
    linear-gradient(180deg, rgba(30, 41, 59, 0.96), rgba(15, 23, 42, 0.88)),
    var(--site-surface);
}

html[data-theme="dark"] .results .result__item {
  box-shadow:
    0 14px 32px rgba(2, 6, 23, 0.35),
    0 0 0 1px rgba(96, 165, 250, 0.12);
}

html[data-theme="dark"] .tile--draft {
  box-shadow:
    var(--site-shadow),
    0 0 0 1px rgba(251, 146, 60, 0.16),
    0 18px 36px rgba(15, 23, 42, 0.45);
}

html[data-theme="dark"] .results .result__item.result__item--draft {
  box-shadow:
    var(--site-shadow),
    0 0 0 1px rgba(251, 146, 60, 0.16),
    0 18px 36px rgba(15, 23, 42, 0.45);
}

@media only screen and (max-width: 1068px) {
  header {
    padding-bottom: 84px;
  }

  .nav-content {
    min-height: 68px;
  }

  .results .result__item {
    gap: 24px;
  }

  .results .result__item .viewport-picture {
    width: 180px;
    height: 108px;
    flex-basis: 180px;
  }

  .featured-header {
    padding: 30px 28px;
  }

  .article-hero__media {
    width: min(100%, 680px);
    margin-top: 24px;
    max-height: 300px;
  }

  .article-hero__media--compact {
    width: min(100%, 560px);
  }

  .footer-main .foot-nav-items {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .category-header {
    margin-top: 18px;
  }
}

@media only screen and (max-width: 734px) {
  header {
    top: 0;
    padding-bottom: 96px;
  }

  .site-brand {
    margin-bottom: 10px;
    padding: 0 10px;
  }

  .site-brand__link {
    min-height: 44px;
    padding: 0 20px;
    font-size: 1.08rem;
    border-radius: 18px;
  }

  .nav {
    padding: 0 10px;
  }

  .nav::after {
    inset: 0 10px;
    border-radius: 16px;
  }

  .nav-content {
    align-items: flex-start;
    justify-content: flex-start;
    padding: 10px 0 12px;
  }

  .nav-menu {
    width: 100%;
    flex-basis: 100%;
    justify-content: flex-start;
  }

  .nav-item-content,
  .theme-toggle {
    min-height: 36px;
    padding: 0 12px;
  }

  .theme-toggle {
    font-size: 0.84rem;
  }

  .featured-header {
    padding: 24px 20px;
    border-radius: 22px;
  }

  .article-hero__media {
    width: 100%;
    margin-top: 20px;
    border-radius: 18px;
    aspect-ratio: 16 / 9;
    max-height: 240px;
  }

  .article-hero__media--compact {
    width: 100%;
    aspect-ratio: 4 / 3;
    max-height: 260px;
  }

  .category-header {
    width: min(100% - 20px, 1120px);
    margin-top: 14px;
  }

  .category-header__inner {
    padding: 20px;
    border-radius: 20px;
  }

  .category-header__title {
    font-size: 1.5rem;
  }

  .footer-main {
    width: min(100% - 20px, 1180px);
    margin-top: 28px;
  }

  .footer-quote-bar {
    margin-bottom: 20px;
    padding: 12px 14px 0;
  }

  .footer-quote-bar__text {
    padding: 12px 8px;
  }

  .footer-main .foot-nav {
    padding: 18px 18px 10px;
  }

  .footer-main .foot-nav-items {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .footer-main .bottom {
    padding: 10px 18px 14px;
  }

  .results .result__item {
    gap: 16px;
  }

  .results .result__item .viewport-picture {
    width: 120px;
    height: 72px;
    flex-basis: 120px;
  }
}
