:root {
  --ink: #633c53;
  --ink-deep: #402636;
  --sage: #eadde5;
  --sage-light: #f8f1f5;
  --cream: #fff8ed;
  --paper: #fffdf9;
  --coral: #cf7185;
  --coral-deep: #9f405b;
  --gold: #d9ae62;
  --muted: #74616c;
  --line: #e5d8df;
  --shadow: 0 18px 45px rgba(79, 43, 64, .11);
  --base-font: 18px;
  --radius: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 140px; font-size: var(--base-font); }
body { margin: 0; color: var(--ink-deep); background: var(--paper); font-family: Inter, Aptos, "Segoe UI", Arial, sans-serif; line-height: 1.6; }
button, a { font: inherit; }
a { color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 4px solid var(--gold); outline-offset: 3px; }
.skip-link { position: fixed; top: -80px; left: 20px; z-index: 100; padding: 12px 18px; color: white; background: var(--ink); border-radius: 10px; }
.skip-link:focus { top: 12px; }
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; padding: 14px clamp(20px, 5vw, 70px); background: rgba(255, 254, 250, .94); border-bottom: 1px solid var(--line); backdrop-filter: blur(14px); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; line-height: 1.15; }
.brand-mark { display: grid; place-items: center; width: 46px; height: 46px; color: white; background: var(--ink); border-radius: 50% 50% 50% 16%; font-family: Georgia, serif; font-size: 1.5rem; }
.brand strong, .brand small { display: block; }
.brand small { margin-top: 4px; color: var(--muted); font-size: .72rem; letter-spacing: .05em; text-transform: uppercase; }
.accessibility { display: flex; gap: 8px; }
.icon-button, .print-button { min-height: 44px; padding: 8px 13px; color: var(--ink); background: white; border: 1px solid var(--line); border-radius: 12px; font-weight: 700; }
.icon-button:hover, .print-button:hover { background: var(--sage-light); border-color: var(--ink); }
.contrast-button { display: flex; align-items: center; gap: 7px; }
.print-button { color: white; background: var(--ink); }
.section-nav { position: sticky; top: 75px; z-index: 15; display: flex; justify-content: center; gap: 6px; padding: 8px 20px; overflow-x: auto; background: rgba(241, 246, 242, .95); border-bottom: 1px solid var(--line); scrollbar-width: none; }
.section-nav a { padding: 7px 14px; white-space: nowrap; text-decoration: none; border-radius: 999px; font-size: .84rem; font-weight: 700; }
.section-nav a:hover, .section-nav a.active { color: white; background: var(--ink); }
main { overflow: hidden; }
.hero { position: relative; display: grid; grid-template-columns: 1.25fr .75fr; align-items: center; gap: clamp(40px, 7vw, 100px); min-height: 690px; padding: 90px max(7vw, 24px); background: var(--cream); }
.hero::before { content: ""; position: absolute; width: 420px; height: 420px; top: -140px; left: 42%; border: 1px solid rgba(99, 60, 83, .14); border-radius: 50%; }
.eyebrow { margin: 0 0 12px; color: var(--coral-deep); font-size: .76rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 750px; margin-bottom: 24px; font-size: clamp(3rem, 6.8vw, 6.2rem); line-height: .96; letter-spacing: -.055em; }
h1 em { color: var(--coral); font-family: Georgia, serif; font-weight: 600; }
.hero-intro { max-width: 620px; color: var(--muted); font-size: 1.18rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.primary-button, .secondary-button { padding: 15px 22px; border-radius: 12px; text-decoration: none; font-weight: 700; }
.primary-button { color: white; background: var(--ink); box-shadow: 0 8px 22px rgba(99, 60, 83, .22); }
.secondary-button { border: 2px solid var(--ink); }
.traveler-card { position: relative; display: grid; justify-items: center; padding: 42px 32px 28px; text-align: center; background: white; border-radius: 180px 180px 26px 26px; box-shadow: var(--shadow); }
.profile-orbit { position: relative; display: grid; place-items: center; width: 190px; height: 190px; margin-bottom: 20px; border: 1px solid var(--sage); border-radius: 50%; }
.profile-photo { display: block; width: 145px; height: 145px; object-fit: cover; object-position: center; border: 9px solid rgba(255,255,255,.68); border-radius: 50%; }
.orbit-dot { position: absolute; width: 18px; height: 18px; background: var(--coral); border: 4px solid white; border-radius: 50%; }
.dot-one { right: 5px; top: 35px; }
.dot-two { left: 15px; bottom: 22px; background: var(--gold); }
.card-label { margin: 0; color: var(--coral-deep); font-size: .74rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.traveler-card h2 { margin: 6px 0; font-size: 1.9rem; line-height: 1.12; }
.muted { color: var(--muted); }
.quick-facts { display: grid; grid-template-columns: 1fr 1fr; width: 100%; margin: 24px 0 0; padding-top: 18px; border-top: 1px solid var(--line); }
.quick-facts div:first-child { border-right: 1px solid var(--line); }
.quick-facts dt { color: var(--muted); font-size: .69rem; text-transform: uppercase; }
.quick-facts dd { margin: 3px 0 0; font-size: 1.12rem; font-weight: 700; }
.section { padding: 90px max(7vw, 24px); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 36px; }
.section-heading h2 { margin: 0; font-size: clamp(2.2rem, 4vw, 3.7rem); line-height: 1; letter-spacing: -.04em; }
.section-note { max-width: 330px; margin: 0; color: var(--muted); }
.emergency-panel { color: white; background: var(--ink); }
.emergency-panel .eyebrow { color: #f3bfd0; }
.status-pill { padding: 7px 13px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); border-radius: 99px; font-size: .76rem; font-weight: 600; }
.emergency-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.emergency-card { display: flex; gap: 18px; min-height: 165px; padding: 26px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16); border-radius: var(--radius); }
.emergency-card.alert-card { background: var(--coral); border-color: var(--coral); }
.card-icon { display: grid; flex: 0 0 auto; place-items: center; width: 42px; height: 42px; background: rgba(255,255,255,.15); border-radius: 50%; font-size: 1.3rem; font-weight: 700; }
.emergency-card h3 { margin-bottom: 6px; }
.emergency-card p { margin: 0; color: rgba(255,255,255,.82); }
.emergency-contact { display: flex; align-items: center; justify-content: space-between; gap: 30px; margin-top: 18px; padding: 18px 22px; color: var(--ink-deep); background: var(--cream); border-radius: 18px; }
.emergency-contact > div { display: flex; align-items: center; gap: 14px; }
.emergency-contact small, .emergency-contact strong { display: block; }
.avatar { display: grid; place-items: center; width: 48px; height: 48px; color: white; background: var(--coral); border-radius: 50%; font-weight: 700; }
.call-button { padding: 13px 18px; color: white; background: var(--coral-deep); border-radius: 12px; text-decoration: none; font-weight: 700; }
.medication-list { border-top: 1px solid var(--line); }
.medication-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 22px; padding: 22px 8px; border-bottom: 1px solid var(--line); }
.medicine-symbol { display: grid; place-items: center; width: 58px; height: 58px; color: var(--ink); background: var(--sage); border-radius: 18px 18px 8px 18px; font-weight: 800; }
.medicine-symbol.drops { color: #80516d; background: #efe1e9; }
.medicine-info h3 { margin-bottom: 2px; }
.medicine-info p { margin-bottom: 1px; font-weight: 600; }
.medicine-info small { color: var(--muted); }
.verify-tag { display: inline-block; margin-left: 7px; padding: 3px 7px; color: var(--coral-deep); background: #fbe9ef; border-radius: 6px; font-size: .62rem; letter-spacing: .03em; text-transform: uppercase; vertical-align: middle; }
.check-action input { position: absolute; opacity: 0; }
.check-action span { display: block; min-width: 100px; padding: 10px 15px; text-align: center; border: 2px solid var(--line); border-radius: 99px; font-weight: 700; }
.check-action input:checked + span { color: white; background: var(--ink); border-color: var(--ink); }
.check-action input:checked + span::before { content: "✓ "; }
.treatment-note { display: flex; gap: 16px; margin-top: 28px; padding: 22px 26px; background: var(--cream); border-left: 5px solid var(--gold); border-radius: 12px; }
.treatment-note > span { color: var(--coral); font-size: 1.6rem; }
.treatment-note p { margin: 3px 0 0; color: var(--muted); }
.soft-section { background: var(--sage-light); }
.info-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.info-card { padding: 30px; background: white; border-radius: var(--radius); box-shadow: 0 8px 30px rgba(99, 60, 83, .07); }
.info-card h3 { font-size: 1.35rem; }
.detail-list { padding: 0; margin: 0; list-style: none; }
.detail-list li { padding: 15px 0; border-top: 1px solid var(--line); }
.detail-list span, .detail-list strong { display: block; }
.detail-list span { color: var(--muted); font-size: .76rem; text-transform: uppercase; }
.detail-list strong { margin-top: 3px; font-weight: 600; }
.recommendations { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 18px; }
.recommendations article { padding: 26px; color: white; background: var(--ink); border-radius: var(--radius); }
.recommendations article:nth-child(2) { color: var(--ink); background: var(--sage); }
.recommendations article:nth-child(3) { background: var(--coral); }
.recommendations span { font-size: 2rem; }
.recommendations h3 { margin: 14px 0 5px; }
.recommendations p { margin: 0; opacity: .82; }
.documents-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.document-card { position: relative; min-height: 240px; padding: 28px; overflow: hidden; background: var(--sage-light); border: 1px solid var(--line); border-radius: var(--radius); }
.document-card::after { content: ""; position: absolute; width: 160px; height: 160px; right: -70px; bottom: -80px; border: 22px solid rgba(99, 60, 83, .07); border-radius: 50%; }
.document-card.passport-card { color: white; background: var(--ink); }
.document-card.health-card { background: var(--cream); }
.document-label { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; opacity: .7; }
.document-card h3 { margin: 28px 0 2px; font-size: 1rem; }
.document-card strong { font-size: 1.65rem; }
.document-card p { position: relative; z-index: 1; margin: 32px 0 0; opacity: .75; }
.travel-insurance-note { margin: 20px 0 0; padding: 15px 18px; background: #fbe9ef; border-left: 4px solid var(--coral); border-radius: 9px; }
.personal-data { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 22px; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.personal-data div { padding: 20px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.personal-data span, .personal-data strong { display: block; }
.personal-data span { color: var(--muted); font-size: .75rem; text-transform: uppercase; }
.contact-section { background: var(--cream); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.contact-card { display: grid; grid-template-columns: auto 1fr; gap: 18px; padding: 28px; background: white; border-radius: var(--radius); box-shadow: var(--shadow); }
.large-avatar { width: 64px; height: 64px; grid-row: span 3; }
.alt-avatar { background: var(--ink); }
.relationship { color: var(--coral-deep); font-size: .76rem; font-weight: 700; text-transform: uppercase; }
.contact-card h3 { margin: 2px 0 10px; }
.contact-card a { grid-column: 2; width: fit-content; color: var(--ink); font-weight: 600; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.accordion { border-top: 1px solid var(--line); }
.accordion-item { border-bottom: 1px solid var(--line); }
.accordion-trigger { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 23px 8px; color: var(--ink); background: transparent; border: 0; text-align: left; }
.accordion-trigger > span:first-child { display: flex; align-items: center; gap: 20px; }
.accordion-trigger b { color: var(--coral-deep); font-size: .74rem; }
.accordion-trigger strong { font-size: 1.18rem; }
.accordion-trigger > span:last-child { font-size: 1.6rem; }
.accordion-content { padding: 0 8px 25px 55px; color: var(--muted); }
.accordion-content address { margin: 7px 0 14px; color: var(--ink-deep); font-style: normal; font-weight: 600; }
.consulate-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.consulate-links a { padding: 7px 12px; color: var(--ink); background: var(--sage-light); border-radius: 8px; font-size: .87rem; font-weight: 600; text-decoration: none; }
footer { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 30px; padding: 35px max(7vw, 24px); color: white; background: var(--ink-deep); }
footer > div { display: flex; align-items: flex-start; gap: 12px; text-align: left; }
footer p { margin: 0; color: rgba(255,255,255,.65); font-size: .78rem; }
footer a { color: white; font-weight: 700; }
.footer-center { display: block; text-align: center; }
.footer-update { text-align: center; }
.footer-center .copyright { margin-top: 4px; }
.footer-credits { display: block; justify-self: end; padding-left: 28px; border-left: 1px solid rgba(255,255,255,.18); text-align: right; }
.footer-credits p { margin-top: 3px; white-space: nowrap; }
.footer-credits a { color: #f3bfd0; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.footer-credits a:hover { color: white; }
.small-mark { width: 40px; height: 40px; color: var(--ink); background: var(--cream); }
.back-to-top { position: fixed; right: 24px; bottom: 24px; z-index: 45; display: grid; place-items: center; width: 54px; height: 54px; color: white; background: var(--coral-deep); border: 0; border-radius: 50%; box-shadow: 0 12px 28px rgba(64, 38, 54, .28); font-size: 1.55rem; opacity: 0; visibility: hidden; transform: translateY(24px); transition: opacity .25s ease, transform .25s ease, visibility .25s; }
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--ink); transform: translateY(-4px); }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 50; padding: 12px 18px; color: white; background: var(--ink-deep); border-radius: 10px; opacity: 0; transform: translate(-50%, 20px); pointer-events: none; transition: .25s ease; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

body.high-contrast { --ink: #54233f; --ink-deep: #2f1123; --sage: #e2cbd8; --sage-light: #f8edf3; --cream: #fff7e8; --coral: #b52f55; --coral-deep: #7f1737; --muted: #503f49; --line: #8b7782; }
body.high-contrast a { text-decoration-thickness: 2px; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 65px; }
  .traveler-card { max-width: 480px; width: 100%; justify-self: center; }
  .emergency-grid, .recommendations, .documents-grid { grid-template-columns: 1fr; }
  .info-columns, .contact-grid { grid-template-columns: 1fr; }
  .personal-data { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  .topbar { align-items: flex-start; padding: 10px 14px; }
  .brand small, .contrast-button span:last-child, .print-button { display: none; }
  .section-nav { top: 67px; justify-content: flex-start; }
  .hero { min-height: auto; padding: 60px 20px; }
  .section { padding: 68px 20px; }
  .section-heading { display: block; }
  .section-note, .status-pill { display: none; }
  .emergency-contact { align-items: stretch; flex-direction: column; }
  .call-button { text-align: center; }
  .medication-row { grid-template-columns: auto 1fr; }
  .check-action { grid-column: 1 / -1; }
  .check-action span { width: 100%; }
  .personal-data { grid-template-columns: 1fr; }
  .accordion-content { padding-left: 8px; }
  footer { grid-template-columns: 1fr; align-items: flex-start; }
  .footer-center, .footer-update { text-align: left; }
  .footer-credits { justify-self: stretch; padding: 14px 0 0; border-top: 1px solid rgba(255,255,255,.18); border-left: 0; text-align: left; }
  .footer-credits p { white-space: normal; }
}

@media print {
  :root { --base-font: 13px; }
  .topbar, .section-nav, .hero-actions, .check-action, .print-button, .toast, .back-to-top { display: none !important; }
  .hero, .section { min-height: auto; padding: 28px 24px; break-inside: avoid; }
  .hero { grid-template-columns: 1.4fr .6fr; }
  .traveler-card { padding: 20px; border: 1px solid var(--line); box-shadow: none; }
  .profile-orbit { width: 100px; height: 100px; }
  .profile-photo { width: 78px; height: 78px; border-width: 5px; }
  .emergency-panel, .recommendations article, .passport-card { color: #000 !important; background: #fff !important; border: 2px solid #000; }
  .emergency-card { color: #000; border-color: #777; }
  .emergency-card p { color: #000; }
  .accordion-content[hidden] { display: block; }
  a { text-decoration: none; }
}
