:root {
  --navy: #1b2a4a;
  --navy-deep: #122038;
  --teal: #2a7f8a;
  --teal-soft: #d8eef1;
  --ink: #1f2933;
  --muted: #5b6b7c;
  --line: #d7dee7;
  --bg: #ffffff;
  --bg-muted: #f5f8fa;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(18, 32, 56, 0.08);
  --font-sans: "Source Sans 3", "Segoe UI", sans-serif;
  --font-display: "Fraunces", Georgia, serif;
  --container: 1120px;
  --narrow: 720px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
}

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

a {
  color: var(--teal);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

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

h1,
h2,
h3 {
  font-family: var(--font-display);
  color: var(--navy);
  line-height: 1.2;
  font-weight: 700;
}

h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin: 0 0 0.75rem;
}

h2 {
  font-size: clamp(1.45rem, 3vw, 2rem);
  margin: 0;
}

h3 {
  font-size: 1.2rem;
  margin: 0.35rem 0 0;
}

p {
  margin: 0 0 1rem;
}

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

.narrow {
  width: min(100% - 2rem, var(--narrow));
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: 0.75rem 1rem;
  z-index: 1000;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

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

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
  flex-wrap: wrap;
}

.brand {
  display: grid;
  gap: 0.15rem;
  text-decoration: none;
  color: inherit;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--navy);
}

.brand-tagline {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav-toggle {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--navy);
  border-radius: 999px;
  padding: 0.55rem 0.95rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.primary-nav {
  display: none;
  width: 100%;
  flex-direction: column;
  gap: 0.35rem;
  padding-bottom: 0.5rem;
}

.primary-nav[data-open="true"] {
  display: flex;
}

.primary-nav a {
  text-decoration: none;
  color: var(--navy);
  font-weight: 600;
  padding: 0.55rem 0.2rem;
  border-bottom: 1px solid var(--line);
}

.hero {
  padding: 1.75rem 0 0.5rem;
}

.page-h1 {
  max-width: 18ch;
  margin-bottom: 1.25rem;
}

.eyebrow {
  margin: 0 0 0.4rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
}

.featured-card {
  display: grid;
  gap: 1.25rem;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #fff 0%, var(--bg-muted) 100%);
  box-shadow: var(--shadow);
}

.featured-title {
  font-size: clamp(1.45rem, 3.5vw, 2.1rem);
  margin: 0 0 0.75rem;
}

.featured-title a,
.story-card h3 a,
.product-card h3 a {
  color: inherit;
  text-decoration: none;
}

.featured-title a:hover,
.story-card h3 a:hover,
.product-card h3 a:hover {
  color: var(--teal);
}

.media-placeholder {
  min-height: 180px;
  border-radius: calc(var(--radius) - 2px);
  background:
    linear-gradient(135deg, rgba(42, 127, 138, 0.18), rgba(27, 42, 74, 0.35)),
    repeating-linear-gradient(
      -45deg,
      rgba(255, 255, 255, 0.15) 0 12px,
      transparent 12px 24px
    );
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.media-placeholder--sm {
  min-height: 120px;
}

.supporting-grid,
.article-grid,
.topic-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1.25rem;
}

.story-card,
.topic-card,
.product-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
  background: #fff;
}

.topic-card {
  text-decoration: none;
  color: inherit;
  display: grid;
  gap: 0.35rem;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.topic-card:hover {
  border-color: var(--teal);
  transform: translateY(-2px);
}

.topic-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--navy);
  font-weight: 700;
}

.topic-desc {
  color: var(--muted);
  font-size: 0.95rem;
}

.section {
  padding: 2.25rem 0;
}

.section--muted {
  background: var(--bg-muted);
  border-block: 1px solid var(--line);
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.7rem 1.15rem;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}

.btn:hover {
  background: var(--navy-deep);
  color: #fff;
}

.btn--secondary {
  background: var(--teal);
}

.btn--secondary:hover {
  background: #216872;
}

.text-link {
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.lede {
  font-size: 1.125rem;
  color: var(--muted);
}

.site-footer {
  margin-top: 1rem;
  background: var(--navy-deep);
  color: #d7e0ea;
  padding: 2.5rem 0 2rem;
}

.footer-inner {
  display: grid;
  gap: 1.25rem;
}

.footer-about strong {
  display: block;
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-bottom: 0.4rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.25rem;
}

.footer-nav a {
  color: #c9d6e4;
  text-decoration: none;
}

.footer-nav a:hover {
  color: #fff;
}

.footer-copy {
  margin: 0;
  color: #9aadc2;
  font-size: 0.92rem;
}

@media (min-width: 720px) {
  .nav-toggle {
    display: none;
  }

  .header-inner {
    flex-wrap: nowrap;
  }

  .primary-nav {
    display: flex;
    width: auto;
    flex-direction: row;
    align-items: center;
    gap: 1.15rem;
    padding: 0;
  }

  .primary-nav a {
    border: 0;
    padding: 0.25rem 0;
  }

  .featured-card {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
    padding: 1.5rem;
  }

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

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

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

  .media-placeholder {
    min-height: 240px;
  }
}

@media (min-width: 980px) {
  .article-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

/* ---- Content pages & shared components ---- */

.sample-banner,
.disclosure,
.disclaimer,
.related-product,
.author-byline {
  border-radius: var(--radius);
  padding: 0.95rem 1.05rem;
  margin: 0 0 1.15rem;
}

.sample-banner {
  display: grid;
  gap: 0.2rem;
  background: #fff6e8;
  border: 1px solid #efd2a8;
  color: #6a4b16;
}

.disclosure,
.disclaimer {
  background: var(--bg-muted);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.95rem;
}

.disclosure strong,
.disclaimer strong,
.sample-banner strong {
  display: block;
  color: var(--navy);
  margin-bottom: 0.2rem;
}

.disclosure--compact {
  padding: 0.75rem 0.9rem;
}

.disclosure p,
.disclaimer p,
.sample-banner span {
  margin: 0;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.breadcrumb a {
  text-decoration: none;
  color: var(--muted);
}

.breadcrumb a:hover {
  color: var(--teal);
}

.content-page {
  padding: 1.5rem 0 2.5rem;
}

.content-layout {
  display: grid;
  gap: 1.5rem;
}

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

.article-hero {
  margin: 1.25rem 0 1.5rem;
}

.article-body h2 {
  margin: 1.75rem 0 0.75rem;
  font-size: 1.35rem;
}

.article-body p {
  margin-bottom: 1rem;
}

.author-byline {
  background: #fff;
  border: 1px solid var(--line);
}

.author-byline__name {
  margin: 0 0 0.35rem;
  color: var(--navy);
  font-weight: 700;
}

.author-byline__role {
  font-weight: 600;
  color: var(--muted);
}

.author-byline__bio,
.author-byline__meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.author-byline__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  margin-top: 0.55rem;
}

.pill {
  display: inline-block;
  margin-left: 0.45rem;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  background: var(--teal-soft);
  color: var(--navy);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  vertical-align: middle;
}

.related-product {
  background: linear-gradient(180deg, #fff, var(--teal-soft));
  border: 1px solid #b7d8dd;
}

.related-product__title {
  font-size: 1.25rem;
  margin: 0 0 0.55rem;
}

.related-product__title a {
  color: inherit;
  text-decoration: none;
}

.related-articles__heading {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.related-articles__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.related-articles__list li {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  background: #fff;
}

.related-articles__list a {
  display: block;
  color: var(--navy);
  font-weight: 700;
  text-decoration: none;
  margin-top: 0.15rem;
}

.related-articles__list a:hover {
  color: var(--teal);
}

.note {
  color: var(--muted);
  font-size: 0.92rem;
}

.note--tight {
  margin: 0.45rem 0 0;
}

.review-section {
  margin: 1.75rem 0;
}

.review-section h2 {
  margin-bottom: 0.65rem;
}

.pros-cons {
  display: grid;
  gap: 1rem;
}

.pros-cons h3 {
  margin-bottom: 0.4rem;
}

.pros-cons ul {
  margin: 0;
  padding-left: 1.15rem;
}

.merchant-cta {
  display: grid;
  gap: 0.65rem;
  justify-items: start;
}

.btn--disabled,
.btn:disabled {
  background: #8a97a8;
  color: #fff;
  cursor: not-allowed;
  opacity: 0.85;
}

.desktop-only {
  display: none;
}

.mobile-only {
  display: block;
}

@media (min-width: 900px) {
  .content-layout {
    grid-template-columns: minmax(0, 1fr) 300px;
    align-items: start;
    gap: 2rem;
  }

  .content-layout--review {
    grid-template-columns: minmax(0, 760px);
  }

  .content-aside {
    position: sticky;
    top: 5.5rem;
    display: grid;
    gap: 1rem;
  }

  .desktop-only {
    display: block;
  }

  .mobile-only {
    display: none;
  }

  .pros-cons {
    grid-template-columns: 1fr 1fr;
  }
}
