/* ------------------------------------------------------------------------
   Thai Visum — same theme as the Dinner app: a first-class menu card.
   White ground, warm neutral tints, deep gold labels set small, uppercase
   and letterspaced, notes in italic, 1px rules instead of shadows.
   ------------------------------------------------------------------------ */

:root {
  color-scheme: light;

  --bg: #ffffff;
  --tint: #f7f6f3;
  --tint-deep: #f0eee9;

  --ink: #2e2b26;
  --ink-soft: #4b4740;
  --muted: #6f6a60;
  --faint: #9a958a;

  --gold: #8c6d1f;
  --gold-soft: #a98c46;
  --gold-wash: #faf6ea;
  --gold-deep: #6f5617;

  --line: #e2ded4;
  --line-soft: #eeebe3;

  --danger: #9c3226;
  --danger-line: #e3c6c1;
  --danger-wash: #fbf4f3;
  --ok: #2f6b4f;
  --ok-line: #cadfd2;
  --ok-wash: #f3f8f4;

  --ui: "Source Sans 3", "Source Sans Pro", ui-sans-serif, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;

  --radius: 2px;

  --wrap: 1080px;
  --wrap-narrow: 720px;

  /* The prajam yam rosette, carried over from the Dinner app as the mark of
     the house. Its white ring is a stroke in the page's own ground, so it
     only works on a light background. */
  --ornament: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='1 1 14 14'%3E%3Cg fill='%238c6d1f'%3E%3Cpath d='M8 1C5.1 3.66 5.91 7.16 8 8 10.09 7.16 10.9 3.66 8 1ZM8 4.1C8.85 5.58 8.61 7.53 8 8 7.39 7.53 7.15 5.58 8 4.1Z'/%3E%3Cpath d='M15 8C12.34 5.1 8.84 5.91 8 8 8.84 10.09 12.34 10.9 15 8ZM11.9 8C10.42 8.85 8.47 8.61 8 8 8.47 7.39 10.42 7.15 11.9 8Z'/%3E%3Cpath d='M8 15C10.9 12.34 10.09 8.84 8 8 5.91 8.84 5.1 12.34 8 15ZM8 11.9C7.15 10.42 7.39 8.47 8 8 8.61 8.47 8.85 10.42 8 11.9Z'/%3E%3Cpath d='M1 8C3.66 10.9 7.16 10.09 8 8 7.16 5.91 3.66 5.1 1 8ZM4.1 8C5.58 7.15 7.53 7.39 8 8 7.53 8.61 5.58 8.85 4.1 8Z'/%3E%3Cpath d='M11.25 4.75C8.67 4.64 7.42 6.64 8 8 9.36 8.58 11.36 7.33 11.25 4.75Z'/%3E%3Cpath d='M11.25 11.25C11.36 8.67 9.36 7.42 8 8 7.42 9.36 8.67 11.36 11.25 11.25Z'/%3E%3Cpath d='M4.75 11.25C7.33 11.36 8.58 9.36 8 8 6.64 7.42 4.64 8.67 4.75 11.25Z'/%3E%3Cpath d='M4.75 4.75C4.64 7.33 6.64 8.58 8 8 8.58 6.64 7.33 4.64 4.75 4.75Z'/%3E%3Cpath d='M6.85 8A1.15 1.15 0 1 1 9.15 8 1.15 1.15 0 1 1 6.85 8Z'/%3E%3C/g%3E%3Cpath d='M6.05 8A1.95 1.95 0 1 1 9.95 8 1.95 1.95 0 1 1 6.05 8Z' fill='none' stroke='%23ffffff' stroke-width='0.85' stroke-linecap='round'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.55 var(--ui);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--gold); text-decoration-color: rgba(140,109,31,.32); text-underline-offset: 2px; }
a:hover { color: var(--gold-deep); text-decoration-color: currentColor; }

/* Headings are set the way the menu sets its categories: small, gold,
   uppercase, widely tracked. Size carries the hierarchy, not weight. */
h1, h2, h3, h4 { margin: 0 0 .5em; color: var(--gold); font-weight: 600; }

h1 {
  font-size: clamp(23px, 1.1rem + 1.6vw, 30px);
  letter-spacing: .14em;
  text-transform: uppercase;
  line-height: 1.28;
}
h2 {
  font-size: 15px;
  letter-spacing: .16em;
  text-transform: uppercase;
  line-height: 1.4;
}
h3 { font-size: 19px; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--ink); line-height: 1.4; }
h4, .label-head {
  font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold); line-height: 1.5; font-weight: 600;
}

p { margin: 0 0 1em; }
hr { border: 0; border-top: 1px solid var(--line-soft); margin: 34px 0; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 28px; }
.wrap-narrow { max-width: var(--wrap-narrow); }

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

.skip-link {
  position: absolute; left: 8px; top: -60px; z-index: 200;
  background: var(--gold); color: #fff; padding: 10px 16px;
  font-size: 11.5px; font-weight: 600; letter-spacing: .15em; text-transform: uppercase;
  border-radius: 0 0 var(--radius) var(--radius); text-decoration: none;
  transition: top .15s;
}
.skip-link:focus { top: 0; color: #fff; }

/* ------------------------------------------------------------------ header */

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 20px; min-height: 66px; }

.brand {
  display: inline-flex; align-items: center; gap: 11px;
  text-decoration: none; white-space: nowrap;
  font-size: 15px; font-weight: 600; letter-spacing: .17em;
  text-transform: uppercase; color: var(--gold);
}
.brand:hover { color: var(--gold-deep); }
.brand-mark {
  width: 22px; height: 22px; flex: none;
  background: var(--ornament) center / contain no-repeat;
}
.brand-sub {
  display: block; margin-top: 2px;
  font-size: 10px; font-weight: 400; letter-spacing: .12em;
  color: var(--faint); text-transform: uppercase;
}

.nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav a {
  padding: 8px 11px; text-decoration: none;
  font-size: 12.5px; letter-spacing: .04em; color: var(--muted);
  border-radius: var(--radius);
}
.nav a:hover { color: var(--gold); background: var(--gold-wash); }
.nav a.is-active { color: var(--gold); border-bottom: 1px solid var(--gold-soft); border-radius: 0; }

.lang-toggle { display: inline-flex; gap: 6px; flex: none; }
.lang-toggle button {
  appearance: none; cursor: pointer;
  font: 600 10.5px/1 var(--ui); letter-spacing: .15em; text-transform: uppercase;
  color: var(--muted); background: transparent;
  border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 11px;
  transition: background .16s ease, color .16s ease, border-color .16s ease;
}
.lang-toggle button:hover { color: var(--gold); border-color: var(--gold-soft); background: var(--gold-wash); }
.lang-toggle button[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: #fff; }

.nav-toggle {
  display: none; appearance: none; cursor: pointer;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: transparent; color: var(--gold);
  width: 40px; height: 38px; font-size: 15px; padding: 0;
}

@media (max-width: 980px) {
  .nav-toggle { display: block; order: 3; }
  .lang-toggle { order: 2; margin-left: auto; }
  .nav {
    order: 4; width: 100%; margin: 0; display: none;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 4px 0 12px; border-top: 1px solid var(--line-soft);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 4px; font-size: 13.5px; border-bottom: 1px solid var(--line-soft); border-radius: 0; }
  .nav a.is-active { border-bottom-color: var(--gold-soft); }
  .header-inner { flex-wrap: wrap; padding-block: 10px; min-height: 0; gap: 14px; }
}

/* ----------------------------------------------------------------- buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 11.5px/1 var(--ui); letter-spacing: .15em; text-transform: uppercase;
  cursor: pointer; text-decoration: none; text-align: center;
  border: 1px solid var(--gold); border-radius: var(--radius);
  padding: 14px 26px; background: var(--gold); color: #fff;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.btn:hover { background: var(--gold-deep); border-color: var(--gold-deep); color: #fff; }
.btn-primary, .btn-gold { background: var(--gold); border-color: var(--gold); color: #fff; }
.btn-ghost { background: transparent; color: var(--gold); border-color: var(--line); }
.btn-ghost:hover { background: var(--gold-wash); border-color: var(--gold); color: var(--gold); }
.btn-sm { padding: 10px 16px; font-size: 10.5px; letter-spacing: .13em; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .4; pointer-events: none; }

/* -------------------------------------------------------------------- hero */

/* The cover of the card: centred, the title in gold small caps, the rosette
   set beneath it, everything on the page's own white. */
.hero {
  background: var(--bg);
  border-bottom: 1px solid var(--line-soft);
  padding: clamp(52px, 6vw, 84px) 0 clamp(40px, 5vw, 62px);
  text-align: center;
}
.hero h1 {
  font-size: clamp(26px, 1rem + 2.4vw, 36px);
  letter-spacing: .17em;
  margin: 0 auto 22px;
  max-width: 18ch;
}
.hero h1::after {
  content: ""; display: block; width: 28px; height: 28px;
  background: var(--ornament) center / contain no-repeat;
  margin: 24px auto 0;
}
.hero-lede {
  max-width: 56ch; margin: 0 auto 30px;
  font-size: 17.5px; font-style: italic; line-height: 1.6; color: var(--ink-soft);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

.eyebrow {
  display: block; margin-bottom: 18px;
  font-size: 11px; font-weight: 600; letter-spacing: .18em;
  text-transform: uppercase; color: var(--faint);
}

.hero-stats {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 48px;
  margin: 46px auto 0; padding-top: 30px; max-width: 760px;
  border-top: 1px solid var(--line-soft);
}
.hero-stat strong {
  display: block; font-size: 27px; font-weight: 300; color: var(--gold); line-height: 1.2;
}
.hero-stat span {
  display: block; margin-top: 3px;
  font-size: 11px; letter-spacing: .13em; text-transform: uppercase; color: var(--faint);
}

/* ---------------------------------------------------------------- sections */

.section { padding: clamp(46px, 5vw, 72px) 0; }
.section-soft { background: var(--tint); }
.section-tint { background: var(--gold-wash); }
.section + .section:not(.section-soft):not(.section-tint) { border-top: 1px solid var(--line-soft); }

.section-head { max-width: 60ch; margin-bottom: 34px; }
.section-head p { color: var(--muted); font-style: italic; font-size: 16.5px; margin-bottom: 0; }
.section-head.center { margin-inline: auto; text-align: center; }

/* ------------------------------------------------------------------- cards */

.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(262px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(206px, 1fr)); }

.card {
  background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px 26px;
}
.card h3 { margin-bottom: .3em; }
.card p { color: var(--ink-soft); font-size: 16px; font-style: italic; margin-bottom: 0; }

.card-link {
  display: flex; flex-direction: column; text-decoration: none; color: inherit;
  transition: border-color .18s ease, background .18s ease;
}
.card-link:hover { border-color: var(--gold); background: var(--gold-wash); color: inherit; }

/* A numeral in a bordered square, set like the menu's course numbers. */
.card-step {
  display: inline-grid; place-items: center;
  width: 30px; height: 30px; margin-bottom: 16px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--gold-wash); color: var(--gold);
  font-size: 13px; font-weight: 600; letter-spacing: .04em;
}
.card-link:hover .card-step { border-color: var(--gold-soft); background: var(--bg); }

.card-foot {
  margin-top: auto; padding-top: 18px;
  display: flex; align-items: center; gap: 7px;
  font-size: 11px; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--gold);
}
.card-foot span { transition: transform .18s ease; }
.card-link:hover .card-foot span { transform: translateX(4px); }

/* ------------------------------------------------------------------- pills */

.badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 9.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--gold-wash); color: var(--gold);
  white-space: nowrap;
}
.badge-gold  { background: var(--gold); border-color: var(--gold); color: #fff; }
.badge-green { background: var(--ok-wash); border-color: var(--ok-line); color: var(--ok); }
.badge-red   { background: var(--danger-wash); border-color: var(--danger-line); color: var(--danger); }
.badge-amber { background: var(--tint-deep); border-color: var(--line); color: var(--muted); }
.badge-row { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; }

/* ------------------------------------------------------------------ tables */

.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { border-collapse: collapse; width: 100%; font-size: 15.5px; }
th, td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
thead th {
  background: var(--tint); color: var(--gold);
  font-size: 10.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap;
}
tbody tr:last-child td { border-bottom: 0; }

/* ---------------------------------------------------------------- messages */

.note {
  font-size: 15px; padding: 15px 17px; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--tint); color: var(--ink-soft);
}
.note strong { color: var(--gold); font-weight: 600; }
.note-warn { border-color: var(--line); background: var(--gold-wash); color: var(--ink-soft); }
.note-warn strong { color: var(--gold); }
.note-ok { border-color: var(--ok-line); background: var(--ok-wash); color: var(--ok); }
.note-ok strong { color: var(--ok); }
.note-red { border-color: var(--danger-line); background: var(--danger-wash); color: var(--danger); }
.note-red strong { color: var(--danger); }

.source-line {
  font-size: 12.5px; color: var(--faint); line-height: 1.7;
  margin-top: 34px; padding-top: 16px; border-top: 1px solid var(--line-soft);
}
.source-line strong { color: var(--muted); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; font-size: 10.5px; }
.source-line a { color: var(--muted); word-break: break-all; }
.source-line a:hover { color: var(--gold); }

/* ------------------------------------------------------------------ footer */

.site-footer {
  background: var(--tint); border-top: 1px solid var(--line);
  padding: 56px 0 30px; font-size: 15px; color: var(--muted);
}
.site-footer .label-head { margin-bottom: 14px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.site-footer .brand { color: var(--gold); }
.site-footer p { font-style: italic; color: var(--ink-soft); font-size: 15.5px; }

.footer-grid { display: grid; gap: 34px; grid-template-columns: 1.6fr 1fr 1fr 1.1fr; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: 14.5px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-disclaimer {
  margin-top: 40px; padding: 16px 18px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--bg); font-size: 13.5px; line-height: 1.6; color: var(--muted);
}

.footer-bottom {
  margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line-soft);
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
  font-size: 11.5px; letter-spacing: .04em; color: var(--faint);
}

/* -------------------------------------------------------------- page heads */

.page-head {
  background: var(--tint); border-bottom: 1px solid var(--line);
  padding: 46px 0 42px;
}
.page-head h1 { margin-bottom: 16px; }
.page-head p { max-width: 62ch; margin-bottom: 0; font-size: 17px; font-style: italic; color: var(--ink-soft); }

.breadcrumb {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--faint); margin-bottom: 20px;
}
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb span { color: var(--line); }

/* ------------------------------------------------------------------ layout */

.layout-side { display: grid; grid-template-columns: minmax(0,1fr) 272px; gap: 52px; align-items: start; }
@media (max-width: 980px) { .layout-side { grid-template-columns: 1fr; gap: 34px; } }

.sidebar { position: sticky; top: 92px; display: grid; gap: 18px; }
@media (max-width: 980px) { .sidebar { position: static; } }
.sidebar-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 20px; }
.sidebar-card .label-head { margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--line-soft); }
.sidebar-card p { font-size: 15px; font-style: italic; color: var(--muted); }
.sidebar-nav { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.sidebar-nav li + li { border-top: 1px solid var(--line-soft); }
.sidebar-nav a { display: block; padding: 10px 0; text-decoration: none; color: var(--ink-soft); font-size: 15px; }
.sidebar-nav a:hover { color: var(--gold); }

/* ------------------------------------------------------- purpose accordion */

.purpose {
  border: 1px solid var(--line); border-radius: var(--radius);
  margin-bottom: 14px; background: var(--bg); scroll-margin-top: 88px;
}
.purpose > summary {
  cursor: pointer; list-style: none;
  padding: 20px 22px; display: flex; align-items: flex-start; gap: 14px;
  transition: background .16s ease;
}
.purpose > summary::-webkit-details-marker { display: none; }
.purpose > summary:hover { background: var(--gold-wash); }
.purpose[open] > summary { border-bottom: 1px solid var(--line-soft); }
.purpose-title {
  margin: 0; font-size: 18px; font-weight: 400; letter-spacing: 0;
  text-transform: none; color: var(--ink); line-height: 1.4;
}

.purpose-num {
  flex: none; width: 26px; height: 26px; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--gold-wash); color: var(--gold);
  font-size: 11px; font-weight: 600; letter-spacing: .04em;
}
.purpose[open] .purpose-num { background: var(--gold); border-color: var(--gold); color: #fff; }
/* Number and chevron hold the first line of a heading that wraps to several. */
.purpose-num, .purpose-chevron { margin-top: 2px; }
.purpose-chevron {
  margin-left: auto; flex: none; width: 8px; height: 8px; align-self: flex-start;
  border-right: 1.5px solid var(--faint); border-bottom: 1.5px solid var(--faint);
  transform: rotate(45deg); transition: transform .2s ease;
}
.purpose[open] .purpose-chevron { transform: rotate(-135deg); margin-top: 6px; }
.purpose-body { padding: 24px 22px 26px; }

/* ------------------------------------------------------------------- facts */

/* Set like the event details on the menu: a tiny gold label over a value at
   reading size. */
.fact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(158px, 1fr)); gap: 20px 26px; margin: 0 0 28px; }
.fact { padding: 0; }
.fact dt { font-size: 10.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-bottom: 6px; }
.fact dd { margin: 0; font-size: 17.5px; line-height: 1.4; color: var(--ink); white-space: pre-line; }
.fact-fee dd { color: var(--gold); }

.subhead {
  display: flex; align-items: center; gap: 12px;
  font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold); margin: 30px 0 14px;
}
.subhead::after { content: ""; flex: 1; height: 1px; background: var(--line-soft); }
.subhead:first-child { margin-top: 0; }

/* Documents read as a numbered list on the card, not as boxes. */
.doc-list { list-style: none; margin: 0; padding: 0; counter-reset: doc; }
.doc-list li {
  counter-increment: doc; position: relative;
  padding: 0 0 0 30px; font-size: 16.5px; line-height: 1.5; color: var(--ink);
}
.doc-list li + li { margin-top: 15px; padding-top: 15px; border-top: 1px solid var(--line-soft); }
.doc-list li::before {
  content: counter(doc) "."; position: absolute; left: 0;
  color: var(--gold-soft); font-size: 14px; font-weight: 600; line-height: 1.75;
}
.doc-list li + li::before { top: 15px; }
.doc-list li .sub {
  display: block; margin-top: 5px; padding-left: 13px;
  border-left: 1px solid var(--line); color: var(--ink-soft);
  font-size: 15.5px; font-style: italic;
}

.bullets { margin: 0; padding-left: 19px; display: grid; gap: 9px; font-size: 16px; color: var(--ink-soft); }
.bullets li::marker { color: var(--gold-soft); }

/* ------------------------------------------------------------------- price */

/* What the client pays us, set apart from the consulate's own fee above it. */
.price-box {
  margin: 26px 0 4px; padding: 20px 22px;
  border: 1px solid var(--gold-soft); border-radius: var(--radius);
  background: var(--gold-wash);
}
.price-main { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 16px; }
.price-label {
  font-size: 10.5px; font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; color: var(--gold);
}
.price-value {
  margin-left: auto; font-size: 26px; font-weight: 300; color: var(--gold); line-height: 1.2;
}
.price-value.is-on-request { font-size: 19px; font-style: italic; }
.price-remark {
  margin: 12px 0 0; font-size: 14px; font-style: italic;
  line-height: 1.5; color: var(--ink-soft);
}
.price-breakdown {
  margin: 8px 0 0; font-size: 13px; color: var(--muted);
  padding-top: 8px; border-top: 1px solid rgba(140,109,31,.18);
}
.price-box .btn { margin-top: 16px; }

@media (max-width: 520px) {
  .price-value { margin-left: 0; }
}

/* The application call in the header, set apart from the plain nav links. */
.nav a.nav-cta {
  border: 1px solid var(--gold); background: var(--gold); color: #fff;
  font-weight: 600; letter-spacing: .1em; text-transform: uppercase; font-size: 10.5px;
  padding: 9px 14px; margin-left: 6px;
}
.nav a.nav-cta:hover { background: var(--gold-deep); border-color: var(--gold-deep); color: #fff; }
.nav a.nav-cta.is-active { border-radius: var(--radius); }
@media (max-width: 980px) {
  .nav a.nav-cta { margin: 8px 0 0; text-align: center; border-radius: var(--radius); }
}

/* ------------------------------------------------------------------- tools */

.tool-shell { border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); }
.tool-progress { height: 2px; background: var(--line-soft); }
.tool-progress-bar { height: 100%; background: var(--gold); width: 0; transition: width .35s ease; }
.tool-body { padding: clamp(26px, 3.5vw, 42px); }

.step-meta { font-size: 10.5px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--faint); margin-bottom: 12px; }
.step-q { font-size: clamp(20px, 1rem + .9vw, 25px); font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--ink); margin-bottom: 10px; }
.step-hint { color: var(--muted); font-style: italic; font-size: 16.5px; margin-bottom: 28px; }

.opt-list { display: grid; gap: 10px; margin-bottom: 30px; }
.opt {
  display: flex; align-items: flex-start; gap: 14px; width: 100%; text-align: left;
  padding: 17px 20px; cursor: pointer;
  font: 400 16.5px/1.5 var(--ui); color: var(--ink);
  background: transparent; border: 1px solid var(--line); border-radius: var(--radius);
  letter-spacing: 0; text-transform: none;
  transition: border-color .18s ease, background .18s ease;
}
.opt:hover { border-color: var(--gold); background: var(--gold-wash); }
.opt.is-selected { border-color: var(--gold); background: var(--gold-wash); }
.opt-mark {
  flex: none; width: 16px; height: 16px; margin-top: 4px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--bg); color: transparent;
  position: relative;
  transition: background .16s ease, border-color .16s ease;
}
.opt.is-selected .opt-mark::after {
  content: ""; position: absolute; left: 5px; top: 1px;
  width: 3px; height: 7px; border: solid #fff; border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}
.opt:hover .opt-mark { border-color: var(--gold-soft); }
.opt.is-selected .opt-mark { background: var(--gold); border-color: var(--gold); }
.opt-text { min-width: 0; }
.opt-text strong { display: block; font-weight: 400; }
.opt-text span { display: block; margin-top: 3px; font-size: 15px; font-style: italic; color: var(--muted); }

.field { margin-bottom: 28px; }
.field label {
  display: block; margin-bottom: 8px;
  font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.field select, .field input[type="number"], .field input[type="text"] {
  width: 100%; font: 400 16px/1.5 var(--ui); color: var(--ink);
  background: var(--tint); border: 1px solid transparent; border-radius: var(--radius);
  padding: 13px 15px;
  transition: background .16s ease, border-color .16s ease;
}
.field select {
  cursor: pointer; appearance: none; padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%236f6a60' stroke-width='1.2' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 15px center;
}
.field input::placeholder { color: var(--faint); }
.field select:focus, .field input:focus { outline: none; background-color: var(--bg); border-color: var(--gold); }
.field .help { margin-top: 8px; font-size: 13.5px; font-style: italic; color: var(--faint); }

.tool-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.tool-actions .spacer { flex: 1; }

/* ------------------------------------------------------------- the verdict */

.result-head { padding: 30px clamp(26px, 3.5vw, 42px); background: var(--tint); border-bottom: 1px solid var(--line); }
.tool-body > .result-head:first-child { margin: calc(-1 * clamp(26px, 3.5vw, 42px)); margin-bottom: 0; }
.result-head h2 {
  font-size: clamp(20px, 1rem + .9vw, 25px); font-weight: 400;
  letter-spacing: 0; text-transform: none; color: var(--ink); margin-bottom: 0;
}
.result-head p { margin: 8px 0 0; font-style: italic; color: var(--ink-soft); }
.result-kicker { font-size: 10.5px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }

.result-head.is-no    { background: var(--ok-wash);     border-bottom-color: var(--ok-line); }
.result-head.is-no .result-kicker { color: var(--ok); }
.result-head.is-yes   { background: var(--danger-wash); border-bottom-color: var(--danger-line); }
.result-head.is-yes .result-kicker { color: var(--danger); }
.result-head.is-maybe { background: var(--gold-wash);   border-bottom-color: var(--gold-soft); }

.reason-list { list-style: none; margin: 0; padding: 0; }
.reason-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; line-height: 1.55; padding: 12px 0; }
.reason-list li + li { border-top: 1px solid var(--line-soft); }
.reason-ico {
  flex: none; width: 18px; height: 18px; margin-top: 4px;
  display: grid; place-items: center; border-radius: 999px;
  font-size: 11px; font-weight: 600; line-height: 1; border: 1px solid;
}
.reason-ico.ok   { background: var(--ok-wash); border-color: var(--ok-line); color: var(--ok); }
.reason-ico.no   { background: var(--danger-wash); border-color: var(--danger-line); color: var(--danger); }
.reason-ico.info { background: var(--tint); border-color: var(--line); color: var(--muted); }
.reason-ico.warn { background: var(--gold-wash); border-color: var(--gold-soft); color: var(--gold); }

.rec-card {
  display: block; text-decoration: none; color: inherit;
  border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 22px;
  transition: border-color .18s ease, background .18s ease;
}
.rec-card:hover { border-color: var(--gold); background: var(--gold-wash); color: inherit; }
.rec-card.is-top { border-color: var(--gold-soft); background: var(--gold-wash); }
.rec-rank {
  display: block; margin-bottom: 10px;
  font-size: 10px; font-weight: 600; letter-spacing: .17em; text-transform: uppercase; color: var(--gold);
}
.rec-card h3 { margin-bottom: .25em; }
.rec-card p { font-size: 16px; font-style: italic; color: var(--ink-soft); margin-bottom: 14px; }
.rec-card .fact-grid { grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); gap: 16px 22px; margin: 16px 0 0; }
.rec-card .fact dd { font-size: 15.5px; }

/* --------------------------------------------------------- the path taken */

.flow-map { display: grid; }
.flow-node { display: flex; gap: 13px; }
.flow-rail { flex: none; width: 18px; display: flex; flex-direction: column; align-items: center; }
.flow-dot {
  width: 18px; height: 18px; flex: none; display: grid; place-items: center;
  border: 1px solid var(--gold-soft); border-radius: 999px;
  background: var(--gold-wash); color: var(--gold); font-size: 9.5px; font-weight: 600;
}
.flow-dot.is-current { background: var(--gold); border-color: var(--gold); color: #fff; }
.flow-line { flex: 1; width: 1px; background: var(--line); min-height: 14px; }
.flow-content { flex: 1; min-width: 0; padding-bottom: 18px; }
.flow-q { font-size: 10px; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; color: var(--faint); }
.flow-a { font-size: 15px; color: var(--ink); line-height: 1.4; margin-top: 2px; }

/* ------------------------------------------------------------ narrow screens */

@media (max-width: 620px) {
  .wrap { padding-inline: 22px; }
  .hero-stats { gap: 22px 30px; }
  .hero-stat strong { font-size: 23px; }
  .purpose > summary { padding: 16px; gap: 11px; }
  .purpose-body { padding: 20px 16px 22px; }
  .fact-grid { gap: 16px 20px; }
}

@media print {
  .site-header, .site-footer, .tool-actions, .nav, .lang-toggle, .skip-link, .sidebar { display: none !important; }
  body { font-size: 11pt; }
  .card, .purpose { break-inside: avoid; }
  .purpose-body { display: block !important; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 8.5pt; color: var(--faint); }
}

/* Language visibility — driven by <html lang> */
html[lang="de"] [data-i18n-lang="en"] { display: none !important; }
html[lang="en"] [data-i18n-lang="de"] { display: none !important; }

/* =============================================================================
   Application form, confirmation and admin desk
   ========================================================================== */

/* --- form fields ---------------------------------------------------------- */

.field .req { color: var(--gold-soft); font-weight: 400; }
.field.is-invalid input,
.field.is-invalid select,
.field.is-invalid textarea { border-color: var(--danger); background: var(--danger-wash); }
.field textarea {
  width: 100%; font: 400 16px/1.5 var(--ui); color: var(--ink);
  background: var(--tint); border: 1px solid transparent; border-radius: var(--radius);
  padding: 13px 15px; resize: vertical; min-height: 84px;
}
.field textarea:focus { outline: none; background: var(--bg); border-color: var(--gold); }
.field-error { margin: 7px 0 0; font-size: 13.5px; color: var(--danger); }
.detail-field { margin: 12px 0 0; padding-left: 14px; border-left: 2px solid var(--gold-soft); }

.yesno { display: flex; gap: 8px; }
.yesno-btn {
  flex: 0 0 auto; min-width: 92px; cursor: pointer;
  font: 600 11px/1 var(--ui); letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); background: transparent;
  border: 1px solid var(--line); border-radius: var(--radius); padding: 13px 18px;
  transition: background .16s ease, color .16s ease, border-color .16s ease;
}
.yesno-btn:hover { border-color: var(--gold-soft); color: var(--gold); background: var(--gold-wash); }
.yesno-btn.is-on { background: var(--gold); border-color: var(--gold); color: #fff; }

/* --- document checklist with uploads -------------------------------------- */

.doc-upload-list li { display: block; }
.doc-text { display: block; }
.doc-upload { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; }

.file-add {
  display: inline-flex; align-items: center; cursor: pointer;
  font: 600 10.5px/1 var(--ui); letter-spacing: .13em; text-transform: uppercase;
  color: var(--gold); background: transparent;
  border: 1px dashed var(--gold-soft); border-radius: var(--radius); padding: 9px 14px;
  transition: background .16s ease;
}
.file-add:hover { background: var(--gold-wash); }

.file-chip {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--ink);
  background: var(--tint); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 7px 10px; max-width: 100%;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.file-remove {
  appearance: none; border: 0; background: none; cursor: pointer;
  color: var(--faint); font-size: 15px; line-height: 1; padding: 0 2px;
}
.file-remove:hover { color: var(--danger); }

.file-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: 15px; }
.file-list li { padding-bottom: 9px; border-bottom: 1px solid var(--line-soft); }

/* --- review --------------------------------------------------------------- */

.review-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.review-block {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px;
}
.review-block h5 {
  margin: 0 0 12px; display: flex; align-items: baseline; gap: 10px;
  font-size: 10.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--gold);
}
.review-block dl { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; }
.review-block dt { font-size: 12.5px; color: var(--faint); margin-top: 10px; }
.review-block dt:first-child { margin-top: 0; }
.review-block dd { margin: 2px 0 0; font-size: 15px; color: var(--ink); }
.review-edit {
  appearance: none; border: 0; background: none; cursor: pointer; padding: 0;
  font: 400 11px/1 var(--ui); letter-spacing: .04em; text-transform: none;
  color: var(--muted); text-decoration: underline;
}
.review-edit:hover { color: var(--gold); }

.consent {
  display: flex; gap: 12px; align-items: flex-start; cursor: pointer;
  padding: 13px 0; border-bottom: 1px solid var(--line-soft); font-size: 15px; line-height: 1.5;
}
.consent:last-of-type { border-bottom: 0; }
.consent.is-invalid { color: var(--danger); }
.consent input[type="checkbox"] {
  appearance: none; width: 17px; height: 17px; flex: none; margin-top: 2px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg);
  position: relative; cursor: pointer;
  transition: background .14s ease, border-color .14s ease;
}
.consent input[type="checkbox"]:checked { background: var(--gold); border-color: var(--gold); }
.consent input[type="checkbox"]:checked::after {
  content: ""; position: absolute; left: 5px; top: 1px;
  width: 4px; height: 8px; border: solid #fff; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg);
}

.mini-facts { margin: 0; display: grid; gap: 0; }
.mini-facts dt { font-size: 10.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); margin-top: 12px; }
.mini-facts dt:first-child { margin-top: 0; }
.mini-facts dd { margin: 3px 0 0; font-size: 15px; color: var(--ink); }

/* --- admin desk ----------------------------------------------------------- */

.admin-login { max-width: 420px; margin: 0 auto; }
.code-input {
  width: 100%; font: 300 34px/1 var(--ui); letter-spacing: .38em; text-align: center; text-indent: .38em;
  color: var(--gold); background: var(--tint);
  border: 1px solid transparent; border-radius: var(--radius); padding: 18px 12px;
}
.code-input:focus { outline: none; background: var(--bg); border-color: var(--gold); }
.code-display-inline { font-size: 22px; letter-spacing: .3em; color: var(--gold); }

.admin-bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  padding-bottom: 18px; margin-bottom: 26px; border-bottom: 1px solid var(--line);
}
.admin-bar .spacer { flex: 1; }
.admin-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.admin-tab {
  appearance: none; cursor: pointer;
  font: 600 10.5px/1 var(--ui); letter-spacing: .15em; text-transform: uppercase;
  color: var(--muted); background: transparent;
  border: 1px solid var(--line); border-radius: var(--radius); padding: 11px 18px;
  transition: background .16s ease, color .16s ease, border-color .16s ease;
}
.admin-tab:hover { color: var(--gold); border-color: var(--gold-soft); background: var(--gold-wash); }
.admin-tab.is-on { background: var(--gold); border-color: var(--gold); color: #fff; }

.admin-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.admin-filters input, .admin-filters select {
  font: 400 15px/1.4 var(--ui); color: var(--ink);
  background: var(--tint); border: 1px solid transparent; border-radius: var(--radius); padding: 11px 14px;
}
.admin-filters input { flex: 1 1 260px; }
.admin-filters input:focus, .admin-filters select:focus { outline: none; background: var(--bg); border-color: var(--gold); }

tr.row-link { cursor: pointer; }
tr.row-link:hover td { background: var(--gold-wash); }
.muted { color: var(--faint); font-size: 13px; }

.inline-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.inline-form .field { flex: 1 1 200px; }

.price-row { padding: 16px 0; border-bottom: 1px solid var(--line-soft); }
.price-row:last-child { border-bottom: 0; }
.price-row.is-visa-wide { background: var(--tint); margin: -4px -22px 8px; padding: 16px 22px; }
.price-row-head { display: flex; flex-wrap: wrap; gap: 10px; align-items: baseline; margin-bottom: 12px; }
.price-row-fields { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.price-row-fields label {
  display: flex; flex-direction: column; gap: 5px; flex: 1 1 150px;
  font-size: 10.5px; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; color: var(--muted);
}
.price-row-fields input {
  font: 400 15px/1.4 var(--ui); color: var(--ink); text-transform: none; letter-spacing: 0;
  background: var(--tint); border: 1px solid transparent; border-radius: var(--radius); padding: 10px 12px;
}
.price-row-fields input:focus { outline: none; background: var(--bg); border-color: var(--gold); }
.price-row-actions { display: flex; gap: 8px; flex: 0 0 auto; }

@media (max-width: 620px) {
  .price-row.is-visa-wide { margin-inline: -16px; padding-inline: 16px; }
  .review-grid { grid-template-columns: 1fr; }
}

/* Legal pages: the parts only the business can supply are marked, not invented. */
.placeholder {
  background: var(--gold-wash); color: var(--gold);
  border: 1px dashed var(--gold-soft); border-radius: var(--radius);
  padding: 2px 8px; font-style: italic; font-size: .95em;
}
.footer-legal a { text-decoration: none; }
.footer-legal a:hover { color: #fff; }

/* A price row with edits that have not been saved yet. */
.price-row.is-edited { background: var(--gold-wash); box-shadow: inset 2px 0 0 var(--gold-soft); }

/* The way in to the admin desk. Deliberately quiet and in the footer rather
   than the navigation: it is for the person running the agency, not for
   clients, and it is protected by the code either way. */
.footer-admin { opacity: .65; }
.footer-admin:hover { opacity: 1; }

/* --- tracking: where an applicant stands -------------------------------- */

.code-input-5 { letter-spacing: .3em; text-indent: .3em; font-size: 30px; }

.track-steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.track-steps li {
  counter-increment: step; position: relative;
  padding: 0 0 20px 34px; font-size: 16px; color: var(--faint);
}
.track-steps li::before {
  content: ""; position: absolute; left: 0; top: 3px;
  width: 16px; height: 16px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--bg);
}
/* The rail joining one step to the next, drawn behind the markers. */
.track-steps li::after {
  content: ""; position: absolute; left: 7.5px; top: 19px; bottom: 3px;
  width: 1px; background: var(--line);
}
.track-steps li:last-child { padding-bottom: 0; }
.track-steps li:last-child::after { display: none; }

.track-steps li.is-done { color: var(--ink-soft); }
.track-steps li.is-done::before { background: var(--gold-soft); border-color: var(--gold-soft); }
.track-steps li.is-current { color: var(--ink); font-weight: 600; }
.track-steps li.is-current::before {
  background: var(--gold); border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-wash);
}

/* A download that has to be a POST cannot be an anchor, so it is a button
   dressed as one. */
.link-button {
  appearance: none; border: 0; background: none; padding: 0; cursor: pointer;
  font: inherit; color: var(--gold); text-decoration: underline;
  text-underline-offset: 2px;
}
.link-button:hover { color: var(--gold-deep); }
.link-button:disabled { color: var(--faint); cursor: default; text-decoration: none; }
