/* Guides (Visa Cheat Sheet, Cost of Living Snapshot): same brand as the landing.
   Screen first; the print rules at the end produce the Letter-size PDFs. */

@font-face { font-family: "Playfair Display"; src: url("fonts/playfair-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Playfair Display"; src: url("fonts/playfair-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  --ink: #0D0D0D;
  --night: #1A1A2E;
  --lavender: #C8C3E8;
  --lavender-hover: #D8D4F0;
  --lavender-mid: #9B97CC;
  --lavender-ink: #4E4985;
  --mist: #EEEDFE;
  --paper: #FFFFFF;
  --paper-tint: #F9F8FF;
  --text: #1A1A1A;
  --muted: #5F5F6B;
  --on-dark: #F4F3FB;
  --soft-dark: #CFCEDB;
  --muted-dark: #A9A9B8;
  --rule: #E2DFF2;
  --rule-mist: #CFCBEA;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --measure: 860px;
  --gutter: clamp(20px, 5vw, 40px);
  --focus: var(--lavender-ink);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font: 400 1rem/1.6 var(--sans);
  font-variant-numeric: lining-nums;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0; text-wrap: balance; font-variant-numeric: lining-nums; }
p { margin: 0; text-wrap: pretty; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
strong { font-weight: 600; }
::selection { background: var(--lavender); color: var(--ink); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 60; background: var(--lavender); color: var(--ink); padding: 10px 16px; border-radius: 8px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: calc(var(--measure) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.print-only { display: none; }

/* Shown until Viviana signs off. Never printed. */
.draft { margin: 0; padding: 9px var(--gutter); background: #FFF1CC; color: #4A3800; font: 500 0.875rem/1.4 var(--sans); text-align: center; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 28px; border: 0; border-radius: 999px;
  font: 600 1rem/1.2 var(--sans); text-align: center; text-decoration: none;
  cursor: pointer; transition: background-color 0.2s ease;
}
.btn--light { background: var(--lavender); color: var(--ink); }
.btn--light:hover { background: var(--lavender-hover); }
.btn--sm { min-height: 40px; padding: 0 18px; font-size: 0.9375rem; }
.btn svg { width: 16px; height: 16px; margin-right: 8px; flex: none; }

/* ---------- Header ---------- */
.g-hero { background: var(--ink); color: var(--on-dark); padding-bottom: clamp(36px, 6vw, 56px); --focus: var(--lavender); }
.g-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.wordmark { font: 600 1.0625rem/1 var(--serif); letter-spacing: 0.01em; color: var(--on-dark); text-decoration: none; }
.g-hero__grid { display: grid; gap: 32px; align-items: end; padding-top: clamp(16px, 4vw, 36px); }
.kicker { font: 500 0.9375rem/1.4 var(--sans); color: var(--lavender); margin-bottom: 12px; }
.g-hero h1 { font-size: clamp(2.25rem, 1.6rem + 2.6vw, 3.25rem); line-height: 1.05; color: #fff; }
.g-lede { margin-top: 16px; font-size: 1.125rem; line-height: 1.55; color: var(--soft-dark); max-width: 50ch; }

/* The arch: the landing's portrait frame, small. */
.g-portrait { display: none; position: relative; margin: 0; width: 168px; }
.g-portrait img { position: relative; z-index: 1; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 15%; border-radius: 50% 50% 12px 12px / 40% 40% 12px 12px; background: var(--night); }
.g-portrait::before { content: ""; position: absolute; z-index: 0; inset: -9px 9px 9px -9px; border: 1px solid var(--lavender-mid); border-radius: 50% 50% 14px 14px / 40% 40% 14px 14px; }
@media (min-width: 680px) {
  .g-top { min-height: 72px; }
  .g-hero__grid { grid-template-columns: minmax(0, 1fr) auto; gap: 48px; }
  .g-portrait { display: block; margin: 0 4px 0 0; }
}

/* ---------- Body ---------- */
.g-main { padding-block: clamp(36px, 6vw, 60px) clamp(40px, 6vw, 64px); }
.g-section + .g-section { margin-top: clamp(40px, 6vw, 56px); }
.g-h2 { font-size: clamp(1.5rem, 1.25rem + 1vw, 1.875rem); }
.g-intro { margin-top: 10px; color: var(--muted); max-width: 62ch; }
.label { display: block; font: 600 0.75rem/1.3 var(--sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--lavender-ink); }

/* Chooser: which visa sounds like you */
.chooser { width: 100%; border-collapse: collapse; margin-top: 16px; }
.chooser th, .chooser td { text-align: left; vertical-align: top; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.chooser thead th { padding-top: 0; font: 600 0.75rem/1.3 var(--sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.chooser td:last-child, .chooser th:last-child { padding-left: 20px; white-space: nowrap; }
.chooser td:last-child { font: 600 1.0625rem/1.4 var(--serif); font-variant-numeric: lining-nums; color: var(--lavender-ink); }

/* Visa cards */
.routes { display: grid; gap: 20px; }
.routes + .routes { margin-top: 20px; }
@media (min-width: 760px) { .routes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.route { display: flex; flex-direction: column; gap: 14px; padding: 22px; border: 1px solid var(--rule); border-radius: 18px; background: var(--paper); }
.route h3 { display: flex; align-items: center; gap: 14px; font-size: 1.3125rem; line-height: 1.2; }
.route__code {
  flex: none; display: grid; place-items: center; width: 50px; height: 58px; padding-top: 7px;
  border-radius: 25px 25px 6px 6px; background: var(--ink); color: var(--lavender);
  font: 600 1.1875rem/1 var(--serif); font-variant-numeric: lining-nums;
}
.route__for { color: var(--muted); }
.facts-list { display: grid; gap: 8px; }
.facts-list li { position: relative; padding-left: 16px; }
.facts-list li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 6px; height: 6px; border-radius: 50%; background: var(--lavender-mid); }
.example { padding: 10px 14px; border-radius: 10px; background: var(--paper-tint); border: 1px solid var(--rule); font-size: 0.9375rem; }
.catch { margin-top: auto; padding: 12px 14px; border-left: 2px solid var(--lavender-ink); border-radius: 0 10px 10px 0; background: var(--mist); font-size: 0.9375rem; }
.catch .label { margin-bottom: 4px; }

/* Callout: family rules */
.callout { padding: 24px; border-radius: 18px; background: var(--mist); }
.callout h2 { font-size: clamp(1.375rem, 1.2rem + 0.7vw, 1.625rem); }
.callout p { margin-top: 10px; max-width: 66ch; }

/* Checklist */
.checks { display: grid; gap: 16px; margin-top: 18px; }
@media (min-width: 760px) { .checks { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 36px; } }
.checks li { position: relative; padding-left: 32px; color: var(--muted); }
.checks li strong { display: block; color: var(--text); }
.checks li::before { content: ""; position: absolute; left: 0; top: 0.2em; width: 20px; height: 20px; border-radius: 50%; background: var(--lavender-ink); }
.checks li::after { content: ""; position: absolute; left: 7px; top: calc(0.2em + 4px); width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }

/* Long game */
.longgame { display: grid; gap: 20px; margin-top: 18px; }
@media (min-width: 640px) { .longgame { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 36px; } }
.lg { padding-top: 14px; border-top: 2px solid var(--lavender-ink); }
.lg__num { font: 600 2.5rem/1 var(--serif); font-variant-numeric: lining-nums; color: var(--lavender-ink); }
.lg__num span { font: 500 1rem/1 var(--sans); margin-left: 4px; }
.lg__label { margin-top: 8px; font-weight: 600; }
.lg p:last-child { margin-top: 4px; color: var(--muted); }

/* Cost tables */
.cost { width: 100%; border-collapse: collapse; }
.cost td { font-variant-numeric: lining-nums tabular-nums; }
.cost caption { caption-side: top; text-align: left; padding-bottom: 10px; }
.cost caption strong { display: block; font: 600 1.375rem/1.2 var(--serif); }
.cost caption span { display: block; margin-top: 2px; color: var(--muted); font-size: 0.9375rem; }
.cost th, .cost td { padding: 10px 12px; border-bottom: 1px solid var(--rule); text-align: right; vertical-align: top; }
.cost th:first-child { text-align: left; font-weight: 400; }
.cost thead th { font: 600 0.75rem/1.3 var(--sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.cost thead th:first-child { color: transparent; }
.cost .total th, .cost .total td { background: var(--mist); border-bottom: 0; font-weight: 600; }
.cost .total td { font-family: var(--serif); font-size: 1.125rem; color: var(--lavender-ink); }
.cost .extra th, .cost .extra td { color: var(--muted); font-size: 0.9375rem; }
.cost .total-alt th, .cost .total-alt td { font-weight: 600; border-bottom: 0; background: var(--paper-tint); }
@media (max-width: 479px) {
  .cost th, .cost td { padding: 9px 6px; }
  .cost th:first-child { padding-left: 10px; }
  .cost td:last-child { padding-right: 10px; }
  .cost td { font-size: 0.9375rem; }
  .cost .extra td, .cost .total-alt td { font-size: 0.875rem; }
}
.tables { display: grid; gap: clamp(32px, 5vw, 44px); margin-top: 28px; }
.tables > * { min-width: 0; }
.cost--compare { margin-top: 16px; }
.takeaway { margin-top: 14px; font-weight: 500; }
.note { margin-top: 10px; color: var(--muted); font-size: 0.875rem; }

/* What isn't in the table */
.notin { display: grid; gap: 14px; margin-top: 18px; }
.notin li { padding-left: 16px; border-left: 2px solid var(--rule-mist); color: var(--muted); }
.notin strong { color: var(--text); }

/* Call to action */
.cta { margin-top: clamp(44px, 7vw, 64px); padding: clamp(24px, 4vw, 36px); border-radius: 22px; background: var(--ink); color: var(--on-dark); --focus: var(--lavender); }
.cta h2 { font-size: clamp(1.5rem, 1.25rem + 1vw, 1.875rem); color: #fff; }
.cta p { margin-top: 10px; color: var(--soft-dark); max-width: 58ch; }
.cta .btn { margin-top: 22px; }
.cta .cta__note { margin-top: 14px; font-size: 0.9375rem; color: var(--muted-dark); }
@media (max-width: 639px) { .cta .btn { width: 100%; } }

/* Footer */
.g-foot { padding-block: 0 48px; color: var(--muted); font-size: 0.875rem; }
.g-foot .wrap { padding-top: 22px; border-top: 1px solid var(--rule); }
.g-foot p + p { margin-top: 6px; }
.g-foot strong { color: var(--text); }

/* ---------- Print / PDF (US Letter, two pages per guide) ---------- */
@page { size: letter; margin: 0.4in 0.5in 0.55in; }
@media print {
  html { font-size: 9.1pt; }
  body { line-height: 1.45; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .skip, .draft, .g-dl, .screen-only { display: none !important; }
  .print-only { display: inline; }
  .wrap { max-width: none; padding-inline: 0; }
  a { text-decoration: none; }

  .g-hero { padding: 0 0.3in 0.2in; border-radius: 14px; }
  .g-top { min-height: 0; padding-top: 0.17in; }
  .wordmark { font-size: 10pt; }
  .g-hero__grid { grid-template-columns: minmax(0, 1fr) auto; gap: 0.4in; padding-top: 0.04in; }
  .kicker { font-size: 8.5pt; margin-bottom: 4pt; }
  .g-hero h1 { font-size: 23pt; }
  .g-lede { font-size: 10pt; margin-top: 6pt; }
  .g-portrait { display: block; width: 0.92in; margin: 0 0.05in 0 0; }
  .g-portrait::before { inset: -6px 6px 6px -6px; }

  .g-main { padding-block: 0.2in 0; }
  .g-section + .g-section { margin-top: 0.18in; }
  .page-break { break-before: page; }
  .g-section.page-break { margin-top: 0; }
  .g-h2, .callout h2 { font-size: 14pt; }
  .g-intro { margin-top: 4pt; }
  .route, .callout, .checks li, .lg, .cost, .cta, .notin li, .example, .catch, .g-foot { break-inside: avoid; }

  .chooser { margin-top: 6pt; }
  .chooser th, .chooser td { padding: 3.5pt 0; }
  .chooser td:last-child { font-size: 10pt; }

  .routes { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.14in; }
  .route { padding: 0.13in 0.15in; gap: 6pt; border-radius: 12px; }
  .route h3 { font-size: 12.5pt; gap: 8pt; }
  .route__code { width: 0.36in; height: 0.42in; padding-top: 0.04in; font-size: 11pt; border-radius: 0.18in 0.18in 4px 4px; }
  .facts-list { gap: 4pt; }
  .example, .catch { padding: 5pt 8pt; font-size: 8.8pt; }
  .callout { padding: 0.14in 0.18in; border-radius: 12px; }
  .callout p { margin-top: 4pt; max-width: none; }

  .checks { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 0.3in; gap: 7pt; margin-top: 7pt; }
  .checks li { padding-left: 22px; }
  .checks li::before { width: 15px; height: 15px; }
  .checks li::after { left: 5px; top: calc(0.2em + 3px); width: 4px; height: 8px; }
  .longgame { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 0.3in; margin-top: 7pt; }
  .lg { padding-top: 6pt; }
  .lg__num { font-size: 18pt; }
  .lg__label { margin-top: 4pt; }

  .tables { gap: 0.17in; margin-top: 0.14in; }
  .cost caption { padding-bottom: 4pt; }
  .cost caption strong, .cost caption span { display: inline; }
  .cost caption strong { font-size: 12.5pt; }
  .cost caption span { margin-left: 8pt; font-size: 8.8pt; }
  .cost th, .cost td { padding: 3.6pt 8pt; }
  .cost .total td { font-size: 10.5pt; }
  .cost--compare { margin-top: 8pt; }
  .note { margin-top: 5pt; font-size: 8.3pt; }
  .takeaway { margin-top: 7pt; }
  .notin { gap: 6pt; margin-top: 7pt; }

  .cta { margin-top: 0.2in; padding: 0.16in 0.24in; border-radius: 14px; }
  .cta h2 { font-size: 14pt; }
  .cta p { margin-top: 5pt; max-width: none; }
  .cta .btn { min-height: 0; padding: 6pt 15pt; margin-top: 9pt; font-size: 9.5pt; }
  .cta .cta__note { margin-top: 7pt; font-size: 8.5pt; }

  .g-foot { padding: 0; font-size: 7.2pt; }
  .g-foot .wrap { margin-top: 0.14in; padding-top: 6pt; }
}
