/* ==========================================================================
   ClearCoin — main stylesheet
   --------------------------------------------------------------------------
   Editorial finance design: dark navy header and hero, bright blue accent,
   colored category badges, bordered article cards, numbered editor's
   picks, a blue newsletter band and a dark footer.

   Contents
     1.  Design tokens (colors, fonts, sizes)  <- change the look here
     2.  Base and typography
     3.  Layout helpers
     4.  Buttons, badges and links
     5.  Header, navigation and search
     6.  Homepage hero and stats
     7.  Category tabs and article cards
     8.  Homepage sections (belief, editor's picks, newsletter)
     9.  Inner pages (page hero, content, topic cards, tables)
     10. Article page (blog-post.html)
     11. Calculator
     12. Forms
     13. Popup (modal)
     14. Cookie banner
     15. Footer
     16. Responsive rules
   ========================================================================== */

/* 1. Design tokens --------------------------------------------------------- */
:root {
  --navy-950: #060b16;       /* deepest background */
  --navy-900: #0a1222;       /* header, hero, footer */
  --navy-800: #111c33;       /* raised dark panels */
  --navy-700: #1c2a47;       /* dark borders */
  --blue: #2563eb;           /* main accent: buttons, links, highlights (AA with white) */
  --blue-dark: #1d4ed8;      /* hover */
  --blue-light: #8fb0ff;     /* blue text on dark backgrounds */
  --blue-soft: #eaf0ff;      /* pale blue tint */
  --ink: #0f172a;            /* main text on light backgrounds */
  --muted: #55607a;          /* secondary text (AA on white) */
  --muted-dark: #9aa6c0;     /* secondary text on dark (AA on navy) */
  --line: #e3e7ef;           /* light borders */
  --bg-soft: #f5f7fb;        /* light section background */
  --white: #ffffff;
  --green: #17a34a;
  --error: #c62828;

  --font-heading: "Outfit", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;

  --container: 1200px;
  --narrow: 780px;
  --gutter: clamp(16px, 4vw, 32px);
  --section: clamp(56px, 7vw, 96px);
  --radius: 6px;
}

/* 2. Base and typography --------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.55em;
  color: inherit;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.25rem; letter-spacing: -0.01em; }

p {
  margin: 0 0 1.1em;
}

a {
  color: var(--blue);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--blue-dark);
}

:focus-visible {
  outline: 3px solid #ffb020;
  outline-offset: 2px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 999;
  background: var(--blue);
  color: var(--white);
  padding: 10px 16px;
  border-radius: var(--radius);
}

.skip-link:focus {
  top: 12px;
}

/* Small uppercase label above headings */
.eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 12px;
}

/* Blue labels on dark backgrounds use a lighter blue for contrast */
.hero .eyebrow,
.page-hero .eyebrow,
.article-hero .eyebrow,
.section--dark .eyebrow {
  color: var(--blue-light);
}

/* Blue highlighted words in big headings */
.highlight {
  color: var(--blue);
}

.section--dark .highlight,
.hero .highlight,
.page-hero .highlight {
  color: var(--blue-light);
}

/* 3. Layout helpers -------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.container--narrow {
  max-width: calc(var(--narrow) + 2 * var(--gutter));
}

.section {
  padding: var(--section) 0;
}

.section--soft {
  background: var(--bg-soft);
}

.section--dark {
  background: var(--navy-900);
  color: var(--white);
}

.section--dark p {
  color: var(--muted-dark);
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.section-head h2 {
  margin: 0;
}

.section-head p {
  margin: 8px 0 0;
  color: var(--muted);
  max-width: 560px;
}

.center {
  text-align: center;
}

.mt-24 {
  margin-top: 24px;
}

.mt-40 {
  margin-top: 40px;
}

/* 4. Buttons, badges and links --------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 24px;
  border: 2px solid var(--blue);
  border-radius: 4px;
  background: var(--blue);
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
}

.btn:hover {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
  color: var(--white);
}

.btn--outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}

.btn--outline:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
}

/* Outline button on dark backgrounds */
.btn--ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.45);
}

.btn--ghost:hover {
  background: var(--white);
  border-color: var(--white);
  color: var(--navy-900);
}

.btn--white {
  background: var(--white);
  border-color: var(--white);
  color: var(--navy-900);
}

.btn--white:hover {
  background: var(--blue-soft);
  border-color: var(--blue-soft);
  color: var(--navy-900);
}

.btn--small {
  min-height: 38px;
  padding: 0 16px;
  font-size: 0.72rem;
}

.btn--block {
  width: 100%;
}

/* Colored category badge. The color comes from data/blogs-data.js */
.badge {
  display: inline-block;
  padding: 4px 9px;
  border-radius: 3px;
  background: var(--badge, var(--blue));
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1.4;
}

.badge:hover {
  color: var(--white);
  filter: brightness(1.1);
}

.read-link {
  font-family: var(--font-heading);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--blue);
  white-space: nowrap;
}

.read-link::after {
  content: " \2192";
}

.link-button {
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

/* 5. Header, navigation and search ----------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy-900);
  border-bottom: 1px solid var(--navy-700);
}

.header-bar {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  text-decoration: none;
  flex: none;
}

.brand:hover {
  color: var(--white);
}

.brand img {
  width: 34px;
  height: 34px;
}

.brand__name {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand__name span {
  color: var(--blue);
}

.main-nav {
  margin-right: auto;
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 2px;
}

.main-nav a {
  display: block;
  padding: 8px 10px;
  color: #c8d1e4;
  font-family: var(--font-heading);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 4px;
  white-space: nowrap;
}

.main-nav a:hover {
  color: var(--white);
  background: var(--navy-800);
}

.main-nav a[aria-current="page"] {
  color: var(--white);
  box-shadow: inset 0 -2px 0 var(--blue);
  border-radius: 0;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--navy-700);
  border-radius: 4px;
  background: transparent;
  color: var(--white);
  cursor: pointer;
}

.icon-btn:hover {
  border-color: var(--blue);
  background: var(--navy-800);
}

.icon-btn svg {
  width: 18px;
  height: 18px;
}

.menu-toggle {
  display: none;
}

/* Search panel (opens from the header) */
.search-panel {
  background: var(--navy-950);
  border-top: 1px solid var(--navy-700);
  padding: 22px 0 26px;
}

.search-panel[hidden] {
  display: none;
}

.search-box {
  display: flex;
  border: 1px solid var(--navy-700);
  border-radius: 4px;
  overflow: hidden;
  background: var(--navy-800);
}

.search-box input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--white);
  font: inherit;
  font-size: 1.05rem;
  padding: 14px 16px;
}

.search-box input::placeholder {
  color: var(--muted-dark);
}

.search-box input:focus {
  outline: none;
}

.search-box:focus-within {
  border-color: var(--blue);
}

.search-box button {
  border: 0;
  background: var(--blue);
  color: var(--white);
  padding: 0 22px;
  font-family: var(--font-heading);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}

.search-results {
  margin-top: 14px;
  display: grid;
  gap: 6px;
  list-style: none;
  padding: 0;
}

.search-results a {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 12px;
  border-radius: 4px;
  color: var(--white);
  text-decoration: none;
  background: var(--navy-900);
}

.search-results a:hover,
.search-results a:focus {
  background: var(--navy-800);
}

.search-results small {
  color: var(--muted-dark);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.68rem;
  white-space: nowrap;
}

.search-hint {
  color: var(--muted-dark);
  font-size: 0.9rem;
  margin: 12px 0 0;
}

/* 6. Homepage hero and stats ----------------------------------------------- */
.hero {
  position: relative;
  background: var(--navy-900);
  color: var(--white);
  overflow: hidden;
  padding: 44px 0 0;
}

/* Faint photo on the right side of the hero */
.hero__bg {
  position: absolute;
  inset: 0 0 0 45%;
  opacity: 0.16;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 60%);
  mask-image: linear-gradient(90deg, transparent, #000 60%);
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero > .container {
  position: relative;
}

.hero__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  border-bottom: 1px solid var(--navy-700);
  padding-bottom: 24px;
}

.hero__brand {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 9vw, 6.4rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.95;
  margin: 0;
}

.hero__tagline {
  text-align: right;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-dark);
  line-height: 1.9;
  margin: 0;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
  padding: 34px 0 40px;
}

.hero__feature h1,
.hero__feature h2 {
  font-size: clamp(1.9rem, 4vw, 3rem);
  margin: 16px 0 16px;
}

.hero__feature h1 a,
.hero__feature h2 a {
  color: var(--white);
  text-decoration: none;
}

.hero__feature h1 a:hover,
.hero__feature h2 a:hover {
  color: #c9d8ff;
}

.hero__excerpt {
  color: var(--muted-dark);
  font-size: 1.08rem;
  max-width: 640px;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  font-size: 0.82rem;
  color: var(--muted-dark);
  margin-bottom: 22px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero__list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 1px solid var(--navy-700);
  padding-left: clamp(20px, 3vw, 36px);
}

.hero__list-title {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-dark);
  margin: 0 0 6px;
}

.hero__list li {
  padding: 16px 0;
  border-bottom: 1px solid var(--navy-700);
}

.hero__list li:last-child {
  border-bottom: 0;
}

.hero__list .cat {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #c8d1e4;
  margin-bottom: 4px;
}

/* Colored dot keeps the category color readable on dark backgrounds */
.hero__list .cat::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--badge, var(--blue));
  margin-right: 8px;
  vertical-align: 1px;
}

.hero__list a {
  font-family: var(--font-heading);
  font-size: 1.06rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--white);
  text-decoration: none;
}

.hero__list a:hover {
  color: #c9d8ff;
}

.hero__list small {
  display: block;
  color: var(--muted-dark);
  margin-top: 4px;
  font-size: 0.78rem;
}

/* Stats row under the hero */
.stats {
  background: var(--navy-950);
  border-top: 1px solid var(--navy-700);
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stat {
  padding: 26px 20px;
  border-right: 1px solid var(--navy-700);
  text-align: center;
}

.stat:last-child {
  border-right: 0;
}

.stat strong {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
}

.stat span {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-dark);
}

/* 7. Category tabs and article cards --------------------------------------- */
.tabs-bar {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 68px;
  z-index: 40;
}

.tabs {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 10px 0;
}

.tabs::-webkit-scrollbar {
  display: none;
}

.tab {
  flex: none;
  border: 0;
  border-radius: 3px;
  background: transparent;
  padding: 8px 14px;
  font-family: var(--font-heading);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
}

.tab:hover {
  color: var(--ink);
  background: var(--bg-soft);
}

.tab[aria-pressed="true"] {
  background: var(--ink);
  color: var(--white);
}

/* Bordered card grid (like a magazine contact sheet) */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--white);
  transition: background 0.2s;
}

/* Colored line on top of each card, matching its category */
.card::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  height: 3px;
  background: var(--badge, var(--blue));
}

.card:hover {
  background: #fbfcff;
}

.card__media {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #dfe6f3;
}

.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.card:hover .card__media img {
  transform: scale(1.04);
}

.card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 20px 22px 18px;
}

.card__top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.78rem;
  color: var(--muted);
}

.card h3 {
  font-size: 1.24rem;
  margin-bottom: 10px;
}

.card h3 a {
  color: var(--ink);
  text-decoration: none;
}

.card h3 a:hover {
  color: var(--blue);
}

.card p {
  color: var(--muted);
  font-size: 0.94rem;
  margin-bottom: 18px;
}

.card__foot {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 0.76rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Large card spanning two columns (first card on the homepage) */
.card--wide {
  grid-column: span 2;
}

.card--wide .card__media {
  aspect-ratio: 16 / 8;
}

.card--wide h3 {
  font-size: 1.65rem;
}

.empty-state {
  text-align: center;
  padding: 48px 20px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}

.empty-state[hidden] {
  display: none;
}

.result-count {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0 0 18px;
}

/* 8. Homepage sections ----------------------------------------------------- */
.belief h2 {
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  max-width: 820px;
}

.belief p {
  max-width: 640px;
  font-size: 1.06rem;
}

.belief__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

/* Editor's picks: numbered columns */
.picks {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  background: var(--white);
}

.pick {
  padding: 24px 22px;
  border-right: 1px solid var(--line);
}

.pick:last-child {
  border-right: 0;
}

.pick__num {
  display: block;
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 800;
  color: #d5dcea;
  line-height: 1;
  margin-bottom: 14px;
}

.pick .cat {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--badge, var(--blue));
  margin-bottom: 6px;
}

.pick a {
  font-family: var(--font-heading);
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
  text-decoration: none;
}

.pick a:hover {
  color: var(--blue);
}

.pick small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
}

/* Topic links on the homepage */
.topic-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.topic-card {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 4 / 5;
  background: var(--navy-800);
  color: var(--white);
  text-decoration: none;
}

.topic-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
  transition: transform 0.5s, opacity 0.3s;
}

.topic-card:hover img {
  transform: scale(1.05);
  opacity: 0.5;
}

.topic-card__text {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 22px;
  background: linear-gradient(0deg, rgba(6, 11, 22, 0.92), rgba(6, 11, 22, 0));
}

.topic-card__text h3 {
  margin: 0 0 4px;
  color: var(--white);
}

.topic-card__text p {
  margin: 0;
  font-size: 0.9rem;
  color: #cdd6ea;
}

/* Blue newsletter band */
.newsletter {
  background: var(--blue);
  color: var(--white);
  padding: clamp(48px, 6vw, 72px) 0;
}

.newsletter__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 36px;
  align-items: center;
}

.newsletter h2 {
  font-size: clamp(2rem, 4.4vw, 3.2rem);
  margin-bottom: 10px;
}

.newsletter p {
  color: #e2eaff;
  margin: 0;
}

.newsletter .eyebrow {
  color: #cfdcff;
}

.newsletter-form {
  display: grid;
  gap: 12px;
}

.newsletter-form__row {
  display: flex;
  gap: 8px;
}

.newsletter-form input[type="email"] {
  flex: 1;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  padding: 13px 14px;
  font: inherit;
}

.newsletter-form input[type="email"]::placeholder {
  color: #dbe5ff;
}

.newsletter-form input[type="email"]:focus {
  outline: none;
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.2);
}

.newsletter .check label,
.newsletter .check a,
.newsletter .form-status {
  color: var(--white);
}

.newsletter .field-error {
  color: #ffe1e1;
}

/* 9. Inner pages ----------------------------------------------------------- */
.page-hero {
  position: relative;
  background: var(--navy-900);
  color: var(--white);
  padding: clamp(48px, 7vw, 84px) 0;
  overflow: hidden;
}

.page-hero__bg {
  position: absolute;
  inset: 0;
  opacity: 0.18;
}

.page-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero > .container {
  position: relative;
}

.page-hero h1 {
  max-width: 820px;
}

.page-hero p {
  color: var(--muted-dark);
  font-size: 1.1rem;
  max-width: 680px;
  margin: 0;
}

.breadcrumbs ol {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--muted-dark);
}

.breadcrumbs a {
  color: #c8d1e4;
}

.breadcrumbs li + li::before {
  content: "/";
  margin-right: 6px;
  color: var(--navy-700);
}

/* Readable long-form text */
.prose {
  font-size: 1.04rem;
}

.prose h2 {
  font-size: clamp(1.45rem, 2.6vw, 1.9rem);
  margin-top: 1.6em;
}

.prose h3 {
  margin-top: 1.4em;
}

.prose ul,
.prose ol {
  padding-left: 1.3em;
}

.prose li {
  margin-bottom: 0.45em;
}

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 56px;
  align-items: start;
}

/* Two-column text + image block */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 60px);
  align-items: center;
}

.split__media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius);
  background: #dfe6f3;
}

.split__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Info cards used on topic pages */
.info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

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

.info-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--badge, var(--blue));
  border-radius: var(--radius);
  padding: 24px;
}

.info-card h3 {
  margin-bottom: 8px;
}

.info-card p {
  color: var(--muted);
  margin: 0 0 10px;
  font-size: 0.96rem;
}

.info-card ul {
  margin: 0;
  padding-left: 1.2em;
  color: var(--muted);
  font-size: 0.94rem;
}

.info-card__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--blue);
  font-family: var(--font-heading);
  font-weight: 800;
  margin-bottom: 12px;
}

.section--dark .info-card {
  background: var(--navy-800);
  border-color: var(--navy-700);
}

.section--dark .info-card h3 {
  color: var(--white);
}

/* Comparison tables */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
  font-size: 0.95rem;
}

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

th {
  background: var(--bg-soft);
  font-family: var(--font-heading);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

/* Callouts */
.callout {
  background: var(--blue-soft);
  border-left: 4px solid var(--blue);
  padding: 16px 20px;
  border-radius: var(--radius);
  margin: 24px 0;
}

.callout p:last-child {
  margin: 0;
}

.callout--warn {
  background: #fff6e5;
  border-left-color: #e19b00;
}

.notice-strip {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 18px;
  font-size: 0.9rem;
  color: var(--muted);
}

/* Link list cards (official resources) */
.link-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.link-list a {
  display: block;
  height: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  text-decoration: none;
  color: var(--ink);
  background: var(--white);
}

.link-list a:hover {
  border-color: var(--blue);
}

.link-list strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.link-list strong::after {
  content: " \2197";
  color: var(--blue);
}

.link-list span {
  color: var(--muted);
  font-size: 0.92rem;
}

.updated {
  color: var(--muted);
  font-size: 0.9rem;
}

.example-flag {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 700;
  color: #8a4b00;
  background: #fff1d6;
  border-radius: 3px;
  padding: 1px 8px;
}

.sidebar {
  display: grid;
  gap: 24px;
  position: sticky;
  top: 140px;
}

.widget {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}

.widget--dark {
  background: var(--navy-900);
  border-color: var(--navy-900);
  color: var(--white);
}

.widget--dark p {
  color: var(--muted-dark);
}

.widget h2 {
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.mini-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.mini-list a {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.3;
}

.mini-list a:hover {
  color: var(--blue);
}

.mini-list img {
  width: 70px;
  height: 52px;
  object-fit: cover;
  border-radius: 4px;
  background: #dfe6f3;
}

/* 10. Article page --------------------------------------------------------- */
.article-hero {
  background: var(--navy-900);
  color: var(--white);
  padding: clamp(40px, 6vw, 72px) 0 clamp(120px, 14vw, 180px);
}

.article-hero h1 {
  font-size: clamp(2rem, 4.6vw, 3.3rem);
  margin: 16px 0 18px;
}

.article-hero .hero__excerpt {
  font-size: 1.15rem;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-size: 0.85rem;
  color: var(--muted-dark);
}

.article-image {
  margin: calc(-1 * clamp(96px, 12vw, 150px)) 0 0;
  aspect-ratio: 16 / 8;
  overflow: hidden;
  border-radius: var(--radius);
  background: #dfe6f3;
  box-shadow: 0 24px 60px rgba(6, 11, 22, 0.25);
}

.article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-body {
  padding-top: 40px;
}

.article-body .lead {
  font-size: 1.2rem;
  color: var(--ink);
}

.takeaways {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 0 0 28px;
}

.takeaways h2 {
  font-size: 0.82rem !important;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 0 0 10px !important;
  color: var(--blue);
}

.takeaways ul {
  margin: 0;
}

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

.article-tags a {
  display: inline-block;
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 4px 10px;
  font-size: 0.82rem;
  text-decoration: none;
  color: var(--muted);
}

.article-tags a:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.article-disclaimer {
  margin-top: 28px;
  font-size: 0.88rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.not-found {
  text-align: center;
  padding: 60px 0;
}

/* 11. Calculator ----------------------------------------------------------- */
.calculator {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(20px, 3vw, 32px);
  color: var(--ink);
}

.calculator__result {
  background: var(--navy-900);
  color: var(--white);
  border-radius: var(--radius);
  padding: 24px;
}

.calculator__result p {
  color: var(--muted-dark);
}

.calculator__total {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
  margin: 6px 0 16px;
}

.calculator__rows {
  display: grid;
  gap: 8px;
  margin: 0 0 16px;
}

.calculator__rows div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--navy-700);
  padding-bottom: 8px;
  font-size: 0.94rem;
}

.calculator__rows dt {
  color: var(--muted-dark);
}

.calculator__rows dd {
  margin: 0;
  font-weight: 700;
}

.bar {
  height: 12px;
  border-radius: 6px;
  background: var(--navy-700);
  overflow: hidden;
  display: flex;
}

.bar span {
  display: block;
  height: 100%;
}

.bar__contrib {
  background: #8fb0ff;
}

.bar__growth {
  background: var(--blue);
}

.bar-legend {
  display: flex;
  gap: 16px;
  margin-top: 8px;
  font-size: 0.8rem;
  color: var(--muted-dark);
}

.bar-legend i {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  margin-right: 6px;
  vertical-align: -1px;
}

/* 12. Forms ---------------------------------------------------------------- */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.form-grid .full {
  grid-column: 1 / -1;
}

.field label {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 6px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  padding: 12px 14px;
  border: 1px solid #c9d1df;
  border-radius: 4px;
  background: var(--white);
  color: var(--ink);
}

.field textarea {
  min-height: 140px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-soft);
}

.field [aria-invalid="true"] {
  border-color: var(--error);
}

.field-hint {
  font-size: 0.84rem;
  color: var(--muted);
  margin: 4px 0 0;
}

.req {
  color: var(--error);
}

.field-error {
  display: block;
  min-height: 1.2em;
  margin-top: 4px;
  font-size: 0.84rem;
  color: var(--error);
}

.check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.check input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  flex: none;
  accent-color: var(--blue);
}

.check label {
  font-size: 0.92rem;
  font-weight: 400;
}

.form-status {
  margin: 14px 0 0;
  font-weight: 600;
}

.form-status:empty {
  display: none;
}

.form-status--success {
  color: var(--green);
}

.form-status--error {
  color: var(--error);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(28px, 5vw, 60px);
  align-items: start;
}

.contact-card {
  background: var(--navy-900);
  color: var(--white);
  border-radius: var(--radius);
  padding: 30px;
}

.contact-card p {
  color: var(--muted-dark);
}

.contact-card dl {
  margin: 0;
}

.contact-card dt {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-dark);
  margin-top: 20px;
}

.contact-card dd {
  margin: 4px 0 0;
}

.contact-card a {
  color: #a9c2ff;
}

/* 13. Popup (modal) -------------------------------------------------------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal[hidden] {
  display: none;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 11, 22, 0.7);
}

.modal__dialog {
  position: relative;
  width: 100%;
  max-width: 540px;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  background: var(--white);
  border-radius: var(--radius);
  border-top: 5px solid var(--blue);
  padding: 34px 30px 28px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35);
}

.modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 4px;
  background: var(--bg-soft);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  color: var(--ink);
}

.modal__close:hover {
  background: var(--line);
}

.modal__dialog h2 {
  font-size: 1.7rem;
  margin-right: 36px;
}

.modal__dialog > p {
  color: var(--muted);
}

body.modal-open {
  overflow: hidden;
}

/* 14. Cookie banner -------------------------------------------------------- */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 250;
  background: var(--navy-950);
  color: #d5dcec;
  border-top: 1px solid var(--navy-700);
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.25);
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.cookie-banner p {
  margin: 0;
  font-size: 0.9rem;
  flex: 1 1 420px;
}

.cookie-banner a {
  color: #a9c2ff;
}

.cookie-banner__actions {
  display: flex;
  gap: 8px;
}

/* 15. Footer --------------------------------------------------------------- */
.site-footer {
  background: var(--navy-900);
  color: var(--muted-dark);
  padding-top: 60px;
  font-size: 0.94rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: 36px;
  padding-bottom: 44px;
}

.site-footer h2 {
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 16px;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 9px;
}

.site-footer a {
  color: #c8d1e4;
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--white);
  text-decoration: underline;
}

.site-footer address {
  font-style: normal;
  margin-top: 16px;
  line-height: 1.8;
}

.site-footer .example-flag {
  background: var(--navy-800);
  color: #ffcf7a;
}

.footer-disclaimer {
  border-top: 1px solid var(--navy-700);
  padding-top: 20px;
  padding-bottom: 20px;
  font-size: 0.84rem;
}

.footer-bottom {
  border-top: 1px solid var(--navy-700);
  padding-top: 18px;
  padding-bottom: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.84rem;
}

.footer-bottom ul {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* 16. Responsive rules ----------------------------------------------------- */
.hero__grid > *,
.content-layout > *,
.split > *,
.contact-layout > *,
.newsletter__grid > *,
.calculator > *,
.card-grid > *,
.picks > *,
.info-grid > *,
.footer-grid > * {
  min-width: 0;
}

@media (max-width: 1240px) {
  .menu-toggle {
    display: inline-flex;
  }

  .header-bar {
    flex-wrap: wrap;
  }

  .header-actions {
    margin-left: auto;
  }

  .main-nav {
    display: none;
    order: 3;
    width: 100%;
    margin: 0;
    padding-bottom: 12px;
  }

  .main-nav.is-open {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
  }

  .main-nav a {
    padding: 12px 6px;
    border-bottom: 1px solid var(--navy-700);
    border-radius: 0;
  }

  .main-nav a[aria-current="page"] {
    box-shadow: inset 3px 0 0 var(--blue);
    padding-left: 12px;
  }
}

@media (max-width: 1000px) {
  .hero__grid,
  .content-layout,
  .newsletter__grid,
  .contact-layout,
  .calculator {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero__list {
    border-left: 0;
    padding-left: 0;
    border-top: 1px solid var(--navy-700);
    padding-top: 10px;
  }

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

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

  .pick:nth-child(2) {
    border-right: 0;
  }

  .pick:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

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

  .sidebar {
    position: static;
  }

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

@media (max-width: 680px) {
  .hero__top {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero__tagline {
    text-align: left;
  }

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

  .stat:nth-child(2) {
    border-right: 0;
  }

  .stat:nth-child(-n + 2) {
    border-bottom: 1px solid var(--navy-700);
  }

  .card-grid,
  .info-grid,
  .info-grid--2,
  .picks,
  .topic-grid,
  .split,
  .link-list,
  .form-grid,
  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .card--wide {
    grid-column: auto;
  }

  .card--wide .card__media {
    aspect-ratio: 16 / 10;
  }

  .card--wide h3 {
    font-size: 1.3rem;
  }

  .pick {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .pick:last-child {
    border-bottom: 0;
  }

  .newsletter-form__row {
    flex-direction: column;
  }

  .brand__name {
    font-size: 1.15rem;
  }

  .header-cta {
    display: none;
  }

  .cookie-banner__actions {
    width: 100%;
  }

  .cookie-banner__actions .btn {
    flex: 1;
  }

  .tabs-bar {
    top: 64px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition: none !important;
  }
}

/* Blog page toolbar: search box + sort menu (stacks on small screens) */
.blog-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.search-box--light {
  background: var(--white);
  border-color: #c9d1df;
  width: 320px;
  max-width: 100%;
}

.search-box--light input {
  color: var(--ink);
}

.search-box--light input::placeholder {
  color: var(--muted);
}

.select {
  font: inherit;
  font-size: 0.95rem;
  padding: 12px 14px;
  border: 1px solid #c9d1df;
  border-radius: 4px;
  background: var(--white);
  color: var(--ink);
}

@media (max-width: 680px) {
  .blog-toolbar,
  .search-box--light,
  .blog-toolbar .select {
    width: 100%;
  }
}

/* Images inside articles span the full text width */
.prose figure {
  margin: 24px 0;
}
