/* The guides wear the landing's studio grammar (landing-redesign.css, C2): a
   navy sheet for the hero, Geist on a cool paper, the coin's pale blue as the
   accent, Newsreader italic for the one lit phrase. Fonts are self-hosted so
   the pages stay static and third-party free. */
@font-face {
  font-family: "Geist";
  src: url("/fonts/geist-latin-400-normal.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 400;
}

@font-face {
  font-family: "Geist";
  src: url("/fonts/geist-latin-500-normal.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 500;
}

@font-face {
  font-family: "Geist";
  src: url("/fonts/geist-latin-600-normal.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 600;
}

@font-face {
  font-family: "Geist Mono";
  src: url("/fonts/geist-mono-latin-500-normal.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 500;
}

@font-face {
  font-family: "Newsreader";
  src: url("/fonts/newsreader-latin-italic-400.woff2") format("woff2");
  font-display: swap;
  font-style: italic;
  font-weight: 400;
}

:root {
  --paper: #f6f7f9;
  --card: #ffffff;
  --ink: #172b3b;
  --soft: #536271;
  --meta: #667482;
  --rule: #e3e8ed;
  --navy: #1f3a52;
  --navy-lit: #3d6283;
  --navy-deep: #142737;
  --navy-soft: #eaeef4;
  --sky: #9cc6ea;
  --sheet: radial-gradient(120% 90% at 12% 0%, var(--navy-lit) 0%, var(--navy) 58%, var(--navy-deep) 100%);
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --serif: "Newsreader", Georgia, serif;
  color: var(--ink);
  color-scheme: light;
  font-family: Geist, ui-sans-serif, system-ui, -apple-system, sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--paper);
  margin: 0;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--sky);
  outline-offset: 3px;
}

/* Bar: the landing's detached navy bar, a rounded slab inset from the edges. */
.guide-header {
  padding: 10px 12px 0;
  position: sticky;
  top: 0;
  z-index: 10;
}

.guide-header__inner {
  align-items: center;
  background: radial-gradient(140% 220% at 10% 0%, var(--navy-lit) 0%, var(--navy) 55%, var(--navy-deep) 100%);
  border-radius: 16px;
  box-shadow: 0 14px 34px -18px rgb(20 39 55 / 60%);
  color: #ffffff;
  display: flex;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1160px;
  min-height: 56px;
  padding: 8px 10px 8px 18px;
}

/* At rest the bar sits flat on the hero sheet; scrolling lifts the slab off
   the top edge. Browsers without scroll timelines keep the always-on slab. */
@supports (animation-timeline: scroll()) {
  .guide-header__inner {
    background: none;
    box-shadow: none;
    isolation: isolate;
    position: relative;
  }

  .guide-header__inner::before {
    animation: guide-bar-detach linear both;
    animation-range: 0 80px;
    animation-timeline: scroll(root);
    background: radial-gradient(140% 220% at 10% 0%, var(--navy-lit) 0%, var(--navy) 55%, var(--navy-deep) 100%);
    border-radius: 16px;
    box-shadow: 0 14px 34px -18px rgb(20 39 55 / 60%);
    content: "";
    inset: 0;
    position: absolute;
    z-index: -1;
  }
}

@keyframes guide-bar-detach {
  from {
    box-shadow: none;
    opacity: 0;
    transform: translateY(-6px) scale(1.03);
  }
}

.guide-brand {
  align-items: center;
  display: inline-flex;
  gap: 11px;
  text-decoration: none;
}

.guide-brand img {
  height: 29px;
  width: 20px;
}

.guide-brand span {
  display: grid;
  font-size: 21px;
  font-weight: 600;
  gap: 2px;
  line-height: 1;
}

.guide-brand small {
  color: #c9d6e2;
  font-size: 10px;
  font-weight: 400;
}

.guide-header nav {
  align-items: center;
  display: flex;
  font-size: 14px;
  font-weight: 500;
  gap: 22px;
}

.guide-header nav a {
  color: #dfe7ee;
  text-decoration: none;
}

.guide-header nav a:hover {
  color: #ffffff;
}

.guide-header nav .guide-header__cta {
  background: var(--sky);
  border-radius: 999px;
  color: var(--navy-deep);
  padding: 10px 18px;
}

.guide-header nav .guide-header__cta:hover {
  background: #b5d5f0;
  color: var(--navy-deep);
}

/* Hero: the navy sheet, curved at its foot, with the coin mark as a watermark.
   It runs up under the bar so the bar reads as part of it, as on the landing. */
.guide-hero {
  background: var(--sheet);
  clip-path: ellipse(120% 100% at 50% 0%);
  color: #ffffff;
  margin-top: -66px;
  overflow: hidden;
  position: relative;
}

.guide-hero::after {
  background: url("/miseguro-y-coin.svg") no-repeat center / contain;
  content: "";
  height: 520px;
  opacity: 0.06;
  pointer-events: none;
  position: absolute;
  right: max(24px, calc((100vw - 1040px) / 2));
  top: -40px;
  width: 360px;
}

.guide-hero__inner {
  margin: 0 auto;
  max-width: 1040px;
  padding: 118px 24px 96px;
  position: relative;
  z-index: 1;
}

.guide-breadcrumb {
  align-items: center;
  color: rgb(255 255 255 / 62%);
  display: flex;
  flex-wrap: wrap;
  font-size: 13px;
  gap: 8px;
  margin-bottom: 44px;
}

.guide-breadcrumb a {
  color: rgb(255 255 255 / 80%);
  text-underline-offset: 3px;
}

.guide-breadcrumb a:hover {
  color: #ffffff;
}

.guide-eyebrow,
.guide-answer__label,
.guide-index > p {
  color: var(--soft);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  margin: 0 0 14px;
  text-transform: uppercase;
}

.guide-hero .guide-eyebrow {
  color: var(--sky);
}

.guide-hero h1 {
  font-size: 52px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.06;
  margin: 0;
  max-width: 880px;
  text-wrap: balance;
}

.guide-lede {
  color: rgb(255 255 255 / 78%);
  font-size: 19px;
  line-height: 1.55;
  margin: 24px 0 0;
  max-width: 740px;
}

.guide-reviewed {
  color: rgb(255 255 255 / 55%);
  font-family: var(--mono);
  font-size: 12px;
  margin: 28px 0 0;
}

/* Body */
.guide-content {
  margin: 0 auto;
  max-width: 1040px;
  padding: 8px 24px 84px;
}

/* The short answer is the page's first card, lifted like the landing's plate
   box, with its label as a pill on the edge. */
.guide-answer {
  background: var(--card);
  border: 1px solid rgb(31 58 82 / 6%);
  border-radius: 20px;
  box-shadow: 0 18px 40px -22px rgb(31 58 82 / 38%);
  margin: -40px 0 60px;
  max-width: 860px;
  padding: 34px 32px 28px;
  position: relative;
  z-index: 2;
}

.guide-answer__label {
  background: var(--navy-soft);
  border-radius: 999px;
  color: var(--navy);
  display: inline-block;
  margin-bottom: 14px;
  padding: 5px 12px;
}

.guide-answer > p:last-child {
  color: var(--ink);
  font-size: 20px;
  line-height: 1.55;
  margin: 0;
}

.guide-layout {
  align-items: start;
  display: grid;
  gap: 72px;
  grid-template-columns: minmax(0, 680px) minmax(200px, 1fr);
}

.guide-body {
  min-width: 0;
}

.guide-section {
  border-top: 1px solid var(--rule);
  padding: 38px 0 28px;
  scroll-margin-top: 90px;
}

.guide-section:first-child {
  border-top: 0;
  padding-top: 0;
}

.guide-section h2,
.guide-sources h2,
.guide-related h2,
.guide-cta h2 {
  color: var(--ink);
  font-size: 30px;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.2;
  margin: 0 0 18px;
  text-wrap: balance;
}

.guide-section p,
.guide-section li,
.guide-sources p,
.guide-sources li {
  color: var(--soft);
  font-size: 17px;
  line-height: 1.72;
}

.guide-section p {
  margin: 0 0 18px;
}

.guide-section ul,
.guide-sources ul {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
}

.guide-section li,
.guide-sources li {
  padding-left: 26px;
  position: relative;
}

.guide-section li::before {
  background: var(--sky);
  border-radius: 50%;
  content: "";
  height: 8px;
  left: 4px;
  position: absolute;
  top: 0.72em;
  width: 8px;
}

.guide-section li + li,
.guide-sources li + li {
  margin-top: 10px;
}

/* Data tables (the price guide). Cells wrap to fit a phone; the box only
   scrolls sideways as a last resort, never the page. */
.guide-table {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 18px;
  margin: 24px 0 8px;
  overflow-x: auto;
}

.guide-table table {
  border-collapse: collapse;
  font-size: 15px;
  width: 100%;
}

.guide-table caption {
  color: var(--meta);
  font-size: 13px;
  padding: 16px 20px 4px;
  text-align: left;
}

.guide-table th,
.guide-table td {
  border-top: 1px solid var(--rule);
  color: var(--soft);
  line-height: 1.45;
  padding: 12px 20px;
  text-align: left;
  vertical-align: top;
}

.guide-table thead th {
  border-top: 0;
  color: var(--meta);
  font-size: 13px;
  font-weight: 500;
}

.guide-table tbody th {
  color: var(--ink);
  font-weight: 500;
  white-space: nowrap;
}

.guide-table td {
  font-variant-numeric: tabular-nums;
}

@media (max-width: 760px) {
  .guide-table table {
    font-size: 14px;
  }

  .guide-table caption {
    padding: 14px 14px 2px;
  }

  .guide-table th,
  .guide-table td {
    padding: 10px 12px;
  }
}

/* Index: a quiet white card that follows the reader. */
.guide-index {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 18px;
  padding: 20px 20px 12px;
  position: sticky;
  top: 90px;
}

.guide-index > p {
  margin: 0 0 8px;
}

.guide-index ol {
  counter-reset: guide;
  list-style: none;
  margin: 0;
  padding: 0;
}

.guide-index li {
  counter-increment: guide;
  display: grid;
  gap: 10px;
  grid-template-columns: 22px 1fr;
  padding: 9px 0;
}

.guide-index li + li {
  border-top: 1px solid var(--rule);
}

.guide-index li::before {
  color: var(--meta);
  content: counter(guide, decimal-leading-zero);
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.6;
}

.guide-index a {
  color: var(--soft);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  text-decoration: none;
}

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

.guide-sources {
  border-top: 1px solid var(--rule);
  margin-top: 20px;
  padding-top: 38px;
}

.guide-sources li::before {
  color: var(--sky);
  content: "↗";
  left: 2px;
  position: absolute;
}

.guide-sources a {
  color: var(--navy);
  font-weight: 500;
  text-decoration-color: rgb(31 58 82 / 30%);
  text-underline-offset: 3px;
}

.guide-sources a > span {
  display: none;
}

.guide-sources a:hover,
.guide-footer a:hover {
  color: var(--navy-lit);
}

/* Related guides: white cards, the landing's FAQ tiles. */
.guide-related {
  border-top: 1px solid var(--rule);
}

.guide-related__inner {
  margin: 0 auto;
  max-width: 1040px;
  padding: 66px 24px 16px;
}

.guide-related h2 {
  max-width: 620px;
}

.guide-related__grid {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr 1fr;
  margin-top: 30px;
}

.guide-related__grid a {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 18px;
  display: grid;
  gap: 6px 16px;
  grid-template-columns: 1fr auto;
  padding: 22px 22px 22px 24px;
  text-decoration: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.guide-related__grid a:hover {
  border-color: rgb(31 58 82 / 22%);
  box-shadow: 0 16px 34px -22px rgb(31 58 82 / 45%);
  transform: translateY(-2px);
}

.guide-related__grid strong {
  color: var(--ink);
  font-size: 16px;
  font-weight: 600;
}

.guide-related__grid span:not(.guide-related__arrow) {
  color: var(--soft);
  font-size: 14px;
  line-height: 1.45;
}

.guide-related__arrow {
  align-self: center;
  background: var(--navy-soft);
  border-radius: 50%;
  color: var(--navy);
  display: grid;
  font-size: 16px;
  grid-column: 2;
  grid-row: 1 / 3;
  height: 34px;
  place-items: center;
  width: 34px;
}

/* Closing call: a navy card, the hero's sheet in miniature. */
.guide-cta {
  align-items: center;
  background: var(--sheet);
  border-radius: 28px;
  box-shadow: 0 30px 60px -34px rgb(20 39 55 / 70%);
  color: #ffffff;
  display: grid;
  gap: 56px;
  grid-template-columns: 1.2fr 1fr;
  margin: 56px auto 80px;
  max-width: 1040px;
  overflow: hidden;
  padding: 48px;
  position: relative;
}

.guide-cta::after {
  background: url("/miseguro-y-coin.svg") no-repeat center / contain;
  content: "";
  height: 340px;
  left: 38%;
  opacity: 0.06;
  pointer-events: none;
  position: absolute;
  top: -40px;
  width: 240px;
}

.guide-cta > div {
  position: relative;
  z-index: 1;
}

.guide-cta .guide-eyebrow {
  color: var(--sky);
}

.guide-cta h2 {
  color: #ffffff;
  font-size: 36px;
}

.guide-cta h2 em {
  color: var(--sky);
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
}

.guide-cta p:not(.guide-eyebrow) {
  color: rgb(255 255 255 / 76%);
  font-size: 16px;
  line-height: 1.55;
  margin: 0 0 26px;
}

.guide-cta > div:first-child > a {
  align-items: center;
  background: #ffffff;
  border-radius: 999px;
  box-shadow: 0 8px 20px rgb(8 20 30 / 28%);
  color: var(--navy);
  display: inline-flex;
  font-weight: 600;
  gap: 12px;
  min-height: 54px;
  padding: 0 26px;
  text-decoration: none;
  transition: transform 160ms ease;
}

.guide-cta > div:first-child > a:hover {
  transform: translateY(-1px);
}

.guide-carriers {
  background: rgb(255 255 255 / 8%);
  border: 1px solid rgb(255 255 255 / 14%);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 22px;
}

.guide-carriers ul {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, 1fr);
  list-style: none;
  margin: 0;
  padding: 0;
}

.guide-carriers li {
  align-items: center;
  display: flex;
  height: 48px;
  justify-content: center;
}

.guide-carriers img {
  height: 24px;
  max-width: 100%;
  object-fit: contain;
  width: auto;
}

.guide-carriers img[src$=".svg"] {
  height: 20px;
}

.guide-carriers small {
  color: rgb(255 255 255 / 66%);
  font-size: 11px;
  line-height: 1.45;
  text-align: center;
}

.guide-footer {
  border-top: 1px solid var(--rule);
  color: var(--soft);
  font-size: 12px;
}

.guide-footer > div {
  margin: 0 auto;
  max-width: 1040px;
  padding: 30px 24px 42px;
}

.guide-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 10px;
}

.guide-footer p {
  margin: 0;
}

@media (max-width: 760px) {
  .guide-header {
    padding: 8px 8px 0;
  }

  .guide-header__inner {
    padding-left: 14px;
  }

  .guide-brand span {
    font-size: 19px;
  }

  .guide-header nav > a:first-child {
    display: none;
  }

  .guide-hero {
    clip-path: ellipse(150% 100% at 50% 0%);
    margin-top: -64px;
  }

  .guide-hero::after {
    height: 330px;
    right: -40px;
    top: 60px;
    width: 230px;
  }

  .guide-hero__inner {
    padding: 94px 16px 76px;
  }

  .guide-breadcrumb {
    margin-bottom: 30px;
  }

  .guide-hero h1 {
    font-size: 36px;
  }

  .guide-lede {
    font-size: 17px;
  }

  .guide-content {
    padding: 8px 16px 62px;
  }

  .guide-answer {
    border-radius: 18px;
    margin: -34px 0 44px;
    padding: 26px 20px 22px;
  }

  .guide-answer > p:last-child {
    font-size: 18px;
  }

  .guide-layout {
    display: block;
  }

  .guide-index {
    display: none;
  }

  .guide-section h2,
  .guide-sources h2,
  .guide-related h2,
  .guide-cta h2 {
    font-size: 26px;
  }

  .guide-section p,
  .guide-section li,
  .guide-sources p,
  .guide-sources li {
    font-size: 16px;
  }

  .guide-related__inner {
    padding: 52px 16px 8px;
  }

  .guide-related__grid {
    grid-template-columns: 1fr;
  }

  .guide-cta {
    border-radius: 24px;
    display: block;
    margin: 40px 16px 54px;
    padding: 32px 22px;
  }

  .guide-cta::after {
    left: auto;
    right: -30px;
  }

  .guide-cta h2 {
    font-size: 30px;
  }

  .guide-carriers {
    margin-top: 30px;
  }

  .guide-footer > div {
    padding-inline: 16px;
  }
}

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

  .guide-related__grid a,
  .guide-cta > div:first-child > a {
    transition: none;
  }

  .guide-related__grid a:hover,
  .guide-cta > div:first-child > a:hover {
    transform: none;
  }
}

@media (forced-colors: active) {
  .guide-hero,
  .guide-header__inner,
  .guide-cta {
    border: 1px solid CanvasText;
  }
}
