:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-strong: #f8fafd;
  --ink: #202124;
  --muted: #5f6368;
  --line: #dadce0;
  --brand: #1a73e8;
  --brand-strong: #185abc;
  --accent: #1a73e8;
  --shadow: none;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}

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

a:hover {
  color: var(--brand);
}

.site-header {
  align-items: center;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  min-height: 72px;
  padding: 0 7vw;
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
}

.brand {
  align-items: center;
  display: inline-flex;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 0;
}

.brand-logo {
  display: block;
  height: auto;
  max-width: min(220px, 58vw);
  object-fit: contain;
  width: 220px;
}

.nav {
  align-items: center;
  display: flex;
  gap: 10px;
  font-size: 0.95rem;
  font-weight: 650;
}

.nav span {
  color: var(--muted);
}

.nav a[aria-current="page"] {
  color: var(--brand);
}

.hero {
  align-items: stretch;
  display: grid;
  gap: 44px;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  margin: 0 auto;
  max-width: 1180px;
  padding: 86px 24px 58px;
}

.hero-copy,
.page-intro,
.section {
  min-width: 0;
}

.eyebrow {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin: 0 0 12px;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  letter-spacing: 0;
  line-height: 1.12;
}

h1 {
  font-size: clamp(2.4rem, 6vw, 5.8rem);
  margin: 0;
  max-width: 920px;
}

h2 {
  font-size: clamp(1.55rem, 3vw, 2.25rem);
  margin: 0 0 16px;
}

h3 {
  font-size: 1.35rem;
  margin: 0 0 12px;
}

.hero-text,
.page-intro p,
.dek {
  color: var(--muted);
  font-size: clamp(1.05rem, 1.7vw, 1.28rem);
  margin: 22px 0 0;
  max-width: 760px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  align-items: center;
  border-radius: 8px;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
}

.button.primary {
  background: var(--brand);
  color: white;
}

.button.secondary {
  border: 1px solid var(--line);
  color: var(--ink);
}

.hero-panel,
.post-card,
.list-item,
.answer-box,
.sidebar-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-panel {
  align-self: end;
  padding: 28px;
}

.hero-panel dl,
.hero-panel dd {
  margin: 0;
}

.hero-panel div {
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
}

.hero-panel div:last-child {
  border-bottom: 0;
}

.hero-panel dt {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 750;
  text-transform: uppercase;
}

.hero-panel dd {
  font-size: 1.16rem;
  font-weight: 800;
  margin-top: 4px;
}

.section,
.page-intro,
.stories-header,
.stories-section {
  margin: 0 auto;
  max-width: 1280px;
  padding: 48px 24px 72px;
}

.stories-header {
  padding-bottom: 22px;
  padding-top: 38px;
}

.stories-header h1 {
  font-size: clamp(2rem, 3vw, 2.75rem);
}

.stories-header p {
  color: var(--muted);
  font-size: 1.05rem;
  margin: 14px 0 0;
  max-width: 780px;
}

.topic-track {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
}

.topic-track li {
  display: flex;
}

.topic-button {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 650;
  line-height: 1;
  padding: 9px 13px;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    color 160ms ease;
}

.topic-button:hover,
.topic-button.is-active {
  background: #eef3fe;
  border-color: #c9d7f2;
  color: var(--brand-strong);
}

.stories-section {
  padding-top: 0;
}

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

.story-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 176px;
  overflow: hidden;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.story-card.is-hidden {
  display: none;
}

.story-card:hover {
  border-color: #c9d7f2;
  box-shadow: 0 2px 8px rgba(60, 64, 67, 0.14);
  transform: translateY(-1px);
}

.story-card-link {
  align-items: center;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) 146px;
  min-height: 188px;
  padding: 26px 16px 20px 24px;
}

.story-card img,
.story-thumb-text {
  aspect-ratio: 1.52;
  border-radius: 8px;
  display: block;
  filter: saturate(1.06) contrast(1.03);
  height: 96px;
  object-fit: cover;
  transition:
    filter 160ms ease,
    transform 160ms ease;
  width: 146px;
}

.story-card:hover img {
  filter: saturate(1.14) contrast(1.06);
  transform: scale(1.035);
}

.story-thumb-text {
  align-items: center;
  background: #eef3fe;
  color: var(--brand);
  display: flex;
  font-size: 1.05rem;
  font-weight: 800;
  justify-content: center;
}

.story-meta {
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 0.82rem;
  font-weight: 700;
  gap: 7px;
  letter-spacing: 0.04em;
  margin-bottom: 22px;
  text-transform: uppercase;
  white-space: nowrap;
}

.story-meta span {
  max-width: 190px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.story-meta span:last-child,
.story-meta time + span {
  color: var(--brand-strong);
}

.story-meta span:not(:first-child)::before {
  color: var(--muted);
  content: "-";
  margin-right: 7px;
}

.story-card h2 {
  font-size: 1.05rem;
  font-weight: 450;
  line-height: 1.55;
  margin: 0;
}

.muted-card {
  background: #fff;
}

.muted-card .story-card-link {
  color: var(--muted);
}

.load-more {
  background: white;
  border: 1px solid var(--ink);
  border-radius: 999px;
  color: var(--brand-strong);
  display: block;
  font-size: 1rem;
  font-weight: 650;
  margin: 36px auto 0;
  min-height: 48px;
  padding: 0 58px;
}

.section.compact {
  padding-top: 18px;
}

.section-heading {
  align-items: end;
  display: flex;
  justify-content: space-between;
  margin-bottom: 22px;
}

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

.post-card,
.list-item {
  padding: 24px;
}

.post-card p,
.list-item p {
  color: var(--muted);
}

.post-meta,
.article-meta {
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 0.86rem;
  font-weight: 700;
  gap: 10px;
}

.post-meta span:not(:last-child)::after,
.article-meta span:not(:last-child)::after {
  content: "|";
  margin-left: 10px;
}

.text-link {
  color: var(--brand);
  font-weight: 800;
}

.article-list {
  display: grid;
  gap: 18px;
  max-width: 860px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
}

.article-tags li {
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 650;
  padding: 5px 12px;
}

.tag-row li {
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--brand-strong);
  font-size: 0.85rem;
  font-weight: 750;
  padding: 5px 9px;
}

.article-layout {
  display: grid;
  gap: 64px;
  grid-template-columns: minmax(0, 780px) 280px;
  margin: 0 auto;
  max-width: 1180px;
  padding: 54px 24px 96px;
}

.article {
  min-width: 0;
}

.article-header {
  border-bottom: 0;
  margin-bottom: 34px;
  padding-bottom: 0;
}

.article-header h1 {
  font-size: clamp(3rem, 7vw, 5.8rem);
  font-weight: 700;
  line-height: 1.02;
  max-width: 940px;
}

.breadcrumb {
  align-items: center;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 0.88rem;
  gap: 8px;
  margin-bottom: 20px;
}

.breadcrumb a {
  color: var(--brand-strong);
  font-weight: 750;
}

.article section {
  margin-top: 56px;
}

.article p,
.article li {
  font-size: 1.08rem;
}

.article p {
  margin: 0 0 18px;
}

.answer-box {
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand);
  margin: 42px 0;
  padding: 24px 28px;
}

.answer-box h2 {
  font-size: 1.05rem;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.answer-box p {
  font-size: 1.1rem;
  font-weight: 750;
  margin: 0;
}

.source-note {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-weight: 700;
  margin: 24px 0;
  padding: 14px 16px;
}

.source-note a {
  color: var(--brand-strong);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.table-wrap,
.comparison-table-wrap {
  border: 1px solid var(--line);
  border-radius: 8px;
  max-width: 100%;
  overflow-x: auto;
}

table {
  background: var(--surface);
  border-collapse: collapse;
  min-width: 620px;
  width: 100%;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 14px 16px;
  text-align: left;
  vertical-align: top;
}

th {
  background: var(--surface-strong);
  color: var(--brand-strong);
  font-size: 0.85rem;
  text-transform: uppercase;
}

tr:last-child td {
  border-bottom: 0;
}

.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-bottom: 10px;
  padding: 16px 18px;
}

.faq summary {
  cursor: pointer;
  font-weight: 850;
}

.article-cta {
  background: #f8fafd;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 64px 0 0;
  padding: 28px;
}

.article-cta h2 {
  font-size: clamp(1.45rem, 2.6vw, 2rem);
  margin-bottom: 10px;
}

.article-cta p {
  color: var(--muted);
  max-width: 680px;
}

.article-cta-link {
  align-items: center;
  background: var(--brand);
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  font-weight: 800;
  margin-top: 8px;
  min-height: 44px;
  padding: 0 20px;
}

.article-cta-link:hover {
  background: var(--brand-strong);
  color: #fff;
}

.faq details p {
  color: var(--muted);
  margin: 12px 0 0;
}

.sidebar {
  align-self: start;
  display: grid;
  gap: 18px;
  position: sticky;
  top: 104px;
}

.sidebar-box {
  border-left: 4px solid var(--line);
  padding: 18px 18px 18px 26px;
}

.sidebar-box h2 {
  color: var(--muted);
  font-size: 0.84rem;
  letter-spacing: 0.06em;
  margin: 0 0 12px;
  text-transform: uppercase;
}

.sidebar-box ul,
.sidebar-box ol {
  color: var(--muted);
  margin: 0;
  padding-left: 18px;
}

.sidebar-box li {
  line-height: 1.45;
  margin: 6px 0;
  padding-left: 2px;
}

.sidebar-box a {
  color: var(--muted);
}

.sidebar-box a:hover {
  color: var(--brand);
}

.article-hero-image {
  margin: 0 0 44px;
}

.article-hero-image img {
  border-radius: 12px;
  display: block;
  height: auto;
  width: 100%;
}

.site-footer {
  align-items: center;
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  justify-content: center;
  padding: 28px 7vw;
  text-align: center;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--brand-strong);
  font-weight: 800;
}

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

  .article-grid {
    grid-template-columns: 1fr;
  }

  .story-grid {
    grid-template-columns: 1fr;
  }

  .story-card-link {
    grid-template-columns: minmax(0, 1fr) 220px;
    min-height: 220px;
  }

  .story-card img,
  .story-thumb-text {
    height: 145px;
    width: 220px;
  }

  .sidebar {
    position: static;
  }
}

@media (max-width: 640px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
    padding: 16px 20px;
  }

  .nav {
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 2px;
    width: 100%;
  }

  .hero,
  .section,
  .page-intro,
  .stories-header,
  .stories-section,
  .article-layout {
    padding-left: 18px;
    padding-right: 18px;
  }

  .story-card-link {
    gap: 16px;
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 16px;
  }

  .story-card img,
  .story-thumb-text {
    height: auto;
    order: -1;
    width: 100%;
  }

  .story-meta {
    margin-bottom: 12px;
  }

  .hero {
    padding-top: 46px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .site-footer {
    align-items: center;
    flex-direction: column;
    gap: 10px;
    padding: 24px 20px;
  }
}
