/* ══════════════════════════════════════════════════════════
   officialdrivingpermit.com — global stylesheet
   System font stack (no webfont request = faster LCP)
   ══════════════════════════════════════════════════════════ */

:root {
  /* governmental design tokens — softened international palette
     (header/footer: Canada.ca slate · links/keylines: USWDS blue) */
  --navy:        #26374a;   /* slate navy — header bar, footer, headings */
  --navy-800:    #1d2939;
  --blue:        #005ea2;   /* institutional link/accent blue (USWDS primary) */
  --blue-hover:  #1a4480;
  --accent:      #005ea2;
  --accent-hover:#1a4480;
  --green:       #00703c;   /* the action color — every primary CTA */
  --green-dark:  #002d18;
  --focus:       #ffdd00;   /* the famous yellow focus state */
  --error:       #d4351c;
  --ink:         #1b1b1b;   /* USWDS ink — never pure black */
  --muted:       #565c65;
  --line:        #b1b4b6;
  --border-strong: #3d4551; /* form input borders (USWDS base-darker) */
  --bg:          #ffffff;
  --bg-soft:     #f0f0f0;   /* institutional grey */
  --radius:      0;         /* government = square corners */
  --shadow:      none;      /* flat, no floating cards */
  --container:   1320px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--blue-hover); text-decoration-thickness: 3px; }
/* the signature governmental focus state */
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 0;
  box-shadow: 0 0 0 6px var(--focus) inset;
  box-shadow: none;
  background-image: none;
}
a:focus-visible, button:focus-visible, summary:focus-visible {
  background-color: var(--focus);
  color: var(--navy) !important;
  outline: 3px solid var(--focus);
  box-shadow: 0 4px 0 var(--navy);
  text-decoration: none;
}
ul { list-style: none; }
[hidden] { display: none !important; }

h1, h2, h3, h4 { line-height: 1.2; color: var(--navy); font-weight: 700; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); }
h3 { font-size: 1.25rem; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }

/* ── Accessibility ── */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--navy); color: #fff; padding: 10px 16px; z-index: 200;
}
.skip-link:focus { left: 0; }

/* ── Buttons ── */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
  text-align: center;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: var(--navy); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-outline { border-color: #fff; color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,.12); }
.btn-header { padding: 10px 20px; font-size: .95rem; }

/* ── Header ── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; gap: 24px;
  height: 68px;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  color: var(--navy);
  white-space: nowrap;
}
.logo:hover { text-decoration: none; }
/* Emblem image, tinted via mask so it follows the surrounding color
   (navy in header, white in footer, blue for booklet stamps). */
.logo-seal, .stamp, .mock-permit-emblem {
  display: inline-block;
  background-color: currentColor;
  -webkit-mask: url('/assets/img/idp-emblem.svg') center / contain no-repeat;
  mask: url('/assets/img/idp-emblem.svg') center / contain no-repeat;
}
.logo-seal { flex: none; width: 46px; height: 46px; color: var(--navy); }
.logo-text {
  display: flex; flex-direction: column;
  font-size: .98rem; line-height: 1.12;
  letter-spacing: .3px; font-weight: 500;
}
.logo-text strong { font-weight: 800; font-size: 1.02rem; }

.main-nav { margin-left: auto; }
.main-nav ul { display: flex; gap: 4px; }
.main-nav a {
  display: block; padding: 8px 12px;
  color: var(--ink); font-weight: 500; font-size: .95rem;
  border-radius: 8px;
}
.main-nav a:hover { background: var(--bg-soft); text-decoration: none; }
.main-nav a.active { color: var(--blue); font-weight: 600; }

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

/* ── Language switcher ── */
.lang-switcher { position: relative; }
.lang-toggle {
  background: none; border: 1px solid var(--line); border-radius: 8px;
  padding: 8px 12px; font-family: inherit; font-size: .9rem; font-weight: 600;
  color: var(--ink); cursor: pointer;
}
.lang-toggle:hover { border-color: var(--muted); }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 6px);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); min-width: 140px; padding: 6px; z-index: 150;
}
.lang-menu a {
  display: block; padding: 8px 12px; border-radius: 8px;
  color: var(--ink); font-size: .95rem;
}
.lang-menu a:hover { background: var(--bg-soft); text-decoration: none; }
.lang-menu a.active { color: var(--blue); font-weight: 700; }

/* ── Mobile nav toggle ── */
.nav-toggle {
  display: none;
  flex-direction: column; justify-content: center; gap: 5px;
  width: 42px; height: 42px;
  background: none; border: 1px solid var(--line); border-radius: 8px;
  cursor: pointer; padding: 0 9px;
}
.nav-toggle span {
  height: 2px; background: var(--navy); border-radius: 2px;
  transition: transform .2s, opacity .2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Hero ── */
.hero {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-800) 60%, #1b3a6b 100%);
  color: #fff;
  padding: 64px 0;
}
.hero-full {
  display: flex;
  align-items: center;
  min-height: max(600px, calc(100svh - 68px));
  padding: 48px 0;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr minmax(400px, 460px);
  grid-template-areas:
    "copy form"
    "extras form";
  gap: 0 56px;
  align-items: center;
  width: 100%;
}
.hero-copy   { grid-area: copy; align-self: end; }
.hero-extras { grid-area: extras; align-self: start; }
.hero-form   { grid-area: form; }
.hero h1 { color: #fff; margin: 10px 0 16px; font-size: clamp(1.9rem, 4vw, 3rem); }
.hero-badge {
  display: inline-block;
  background: rgba(245, 158, 11, .15); color: var(--accent);
  border: 1px solid rgba(245, 158, 11, .4);
  padding: 6px 14px; border-radius: 999px;
  font-size: .85rem; font-weight: 600;
}
.hero-sub { font-size: 1.15rem; color: #cbd5e1; margin-bottom: 28px; max-width: 54ch; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-note { margin-top: 14px; font-size: .9rem; color: #94a3b8; text-align: center; }

.hero-rating { font-size: .95rem; font-weight: 600; color: #e2e8f0; margin-bottom: 18px; }
.hero-rating .stars { color: var(--accent); letter-spacing: 2px; margin-right: 6px; }
.hero-fines {
  color: #fcd34d;
  font-size: clamp(1.3rem, 2.6vw, 1.9rem);
  font-weight: 800;
}

.logos-label { margin-top: 30px; font-size: .85rem; color: #94a3b8; }
.logo-strip { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; align-items: center; }
.logo-strip img {
  width: 44px; height: 44px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .25);
}

.hero-checks {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 12px 28px;
  margin-top: 28px;
  font-size: 1rem; color: #e2e8f0;
}
.hero-checks .check {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; margin-right: 8px;
  background: var(--accent); color: var(--navy);
  border-radius: 50%; font-size: .8rem; font-weight: 800;
}

/* ── Hero eligibility form card ── */
.hero-form {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .35);
  padding: 32px 30px;
  color: var(--ink);
}
.hero-form-title {
  font-size: 1.3rem;
  text-align: center;
  margin-bottom: 24px;
}
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-weight: 600; font-size: .95rem;
  margin-bottom: 8px; color: var(--navy);
}
.form-group select,
.form-group input {
  width: 100%;
  padding: 13px 14px;
  font-family: inherit; font-size: 1rem; color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.form-group select:focus,
.form-group input:focus {
  outline: 2px solid var(--blue);
  outline-offset: 1px;
  border-color: var(--blue);
}
.btn-block { display: block; width: 100%; padding: 15px; font-size: 1.05rem; }

/* Image placeholder (swap for real assets later) */
.img-placeholder {
  background: repeating-linear-gradient(45deg, #e2e8f0, #e2e8f0 12px, #f1f5f9 12px, #f1f5f9 24px);
  border: 2px dashed #94a3b8; border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: .9rem; font-weight: 600; text-align: center;
  width: 100%; aspect-ratio: 4 / 3; padding: 20px;
}
.hero .img-placeholder { border-color: rgba(255,255,255,.35); background: rgba(255,255,255,.06); color: #94a3b8; }

/* ══════════ What is an IDP — open booklet ══════════ */
.wii-intro {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 64px;
  align-items: start;
  margin-bottom: 56px;
}
.wii-copy p { margin-bottom: 18px; color: var(--ink); font-size: 1.05rem; }
.wii-copy p:last-child { margin-bottom: 0; }
.wii-list { margin: 0 0 24px; }
.wii-list li { display: flex; align-items: baseline; margin-bottom: 12px; font-weight: 500; }
.wii-list .check {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 22px; height: 22px; margin-right: 10px;
  background: var(--accent); color: var(--navy);
  border-radius: 50%; font-size: .8rem; font-weight: 800;
  transform: translateY(3px);
}

/* The booklet is fully scalable: every inner size is in em,
   driven by this font-size. Full container width, landscape pages. */
.booklet {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 860px;              /* real-booklet proportions, centered */
  margin: 0 auto;
  font-size: 11px;
  font-family: Georgia, 'Times New Roman', serif;
  color: #1f1f1f;
  filter: drop-shadow(0 10px 16px rgba(11, 37, 69, .14)); /* soft edge shadow */
}
.booklet-page {
  background: linear-gradient(105deg, #fcfcf9 0%, #f7f6f0 100%);
  border: 1px solid #e3e1d6;
  padding: 2em 2.4em;
  position: relative;
}
.booklet-cover {
  border-radius: 10px 2px 2px 10px;
  transform: perspective(1500px) rotateY(3deg);
  transform-origin: right center;
  box-shadow: inset -16px 0 26px -16px rgba(0, 0, 0, .38);
  text-align: center;
}
.booklet-form-page {
  border-radius: 2px 10px 10px 2px;
  transform: perspective(1500px) rotateY(-3deg);
  transform-origin: left center;
  box-shadow: inset 16px 0 26px -16px rgba(0, 0, 0, .32);
}

/* ── Cover page ── */
.doc-frame {
  border: 1.5px solid #2a2a2a;
  height: 100%;
  padding: 2em 1.8em 1.8em;
  display: flex; flex-direction: column; align-items: center;
}
.doc-small { font-size: 1.2em; font-weight: 600; font-family: var(--font); }
.doc-title {
  font-size: 2.3em; font-weight: 700; line-height: 1.15;
  font-family: var(--font); color: #161616;
  margin: .9em 0 .35em;
}
.doc-sub { font-size: 1em; line-height: 1.5; }
.doc-valid { margin-top: 1.8em; font-size: 1.25em; }
.doc-valid .doc-fill {
  font-family: var(--font); font-weight: 600; font-size: 1.4em;
  border-bottom: 1.5px solid #2a2a2a;
  padding: 0 .5em .05em;
  white-space: nowrap;
}
.doc-important { margin-top: 1.6em; font-size: 1.05em; line-height: 1.55; }
.doc-seal { width: 9.5em; height: 9.5em; margin-top: auto; color: #1a1a1a; }

/* ── Details page ── */
.doc-lines { list-style: none; margin-bottom: 1.4em; }
.doc-lines li { display: flex; align-items: baseline; gap: .7em; margin-bottom: .5em; }
.doc-num { font-size: 1.05em; color: #444; flex: none; width: 1.4em; text-align: right; }
.doc-fill-line {
  flex: 1;
  font-family: var(--font); font-weight: 600; font-size: 1.25em;
  letter-spacing: .04em; line-height: 1.3;
  border-bottom: 1.5px dotted #777;
}
/* landscape layout: stamps column | photo | exclusions */
.doc-body { display: grid; grid-template-columns: 6.5em 14em 1fr; gap: 1.5em; }
.doc-boxes { border: 1px solid #555; align-self: start; }
.doc-box {
  border-bottom: 1px solid #555;
  padding: .4em .4em .6em;
  min-height: 5.4em;
}
.doc-box:last-child { border-bottom: none; }
.doc-box-letter { display: block; font-size: 1.05em; margin-bottom: .25em; }
.doc-box-circle {
  display: flex; align-items: center; justify-content: center;
  width: 4.2em; height: 4.2em; margin: 0 auto;
  border: 1px solid #8a8a8a; border-radius: 50%;
  font-size: .72em; text-align: center; color: #666;
  padding: .5em; line-height: 1.25;
}
.doc-photo-col { display: flex; flex-direction: column; }
.doc-photo {
  position: relative;
  width: 12.5em; max-width: 100%;
  margin: 0 auto;
  border: 1px solid #999;
  background: #e9e7df;
}
.doc-silhouette { display: block; width: 100%; height: auto; }
.doc-signature {
  margin-top: 1.6em;
  text-align: center; font-size: 1em; color: #333;
}
.doc-sign-line { display: block; border-bottom: 1.5px dotted #777; margin-bottom: .4em; height: 1.2em; }
.doc-excl-col { display: flex; flex-direction: column; justify-content: flex-start; padding-top: .4em; }
.doc-exclusions { margin-top: 0; }
.doc-excl-title { text-align: center; font-size: 1.2em; font-weight: 700; font-family: var(--font); line-height: 1.3; }
.doc-excl-title span { font-weight: 400; font-size: .85em; }
.doc-excl-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: .5em 1.2em; margin-top: 1em;
}
.doc-excl-grid span { display: flex; align-items: baseline; border-bottom: 1px dotted #888; padding-bottom: .2em; }
.doc-excl-grid i { font-style: normal; font-size: 1.05em; color: #444; margin-right: .5em; }

/* ── Red authority stamps ── */
.stamp {
  position: absolute;
  color: #bb2b2b;
  opacity: .72;
  pointer-events: none;
}
.stamp-photo { width: 6.6em; height: 6.6em; left: -2.4em; bottom: -2em; transform: rotate(-16deg); }
.stamp-top { width: 7.6em; height: 7.6em; top: 5.6em; right: 2em; transform: rotate(12deg); }
.stamp-boxes { width: 8.2em; height: 8.2em; top: 16em; left: 1em; transform: rotate(-9deg); }

/* ── Sections ── */
.section { padding: 72px 0; }
.section-soft { background: var(--bg-soft); }
.section-title { text-align: center; margin-bottom: 44px; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 52px; }
.section-head .section-title { margin-bottom: 14px; }
.section-badge {
  display: inline-block;
  background: rgba(245, 158, 11, .12); color: var(--accent-hover);
  border: 1px solid rgba(245, 158, 11, .35);
  padding: 6px 16px; border-radius: 999px;
  font-size: .8rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  margin-bottom: 18px;
}
.section-sub { color: var(--muted); font-size: 1.1rem; }

/* ══════════ How It Works ══════════ */
.hiw-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
/* dashed road connecting the steps */
.hiw-grid::before {
  content: '';
  position: absolute;
  top: 46px; left: 8%; right: 8%;
  border-top: 3px dashed #cbd5e1;
}
.hiw-card {
  position: relative; /* sits above the road */
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 26px;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}
.hiw-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.hiw-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; flex: none;
  background: var(--accent); color: var(--navy);
  border-radius: 12px;
  font-size: 1.05rem; font-weight: 800;
  box-shadow: 0 6px 14px rgba(245, 158, 11, .35);
}
.hiw-head h3 { font-size: 1.15rem; flex: 1; min-width: 0; }
.hiw-tag {
  border: 1px solid var(--line); color: var(--muted);
  border-radius: 999px; padding: 3px 10px;
  font-size: .74rem; font-weight: 600; white-space: nowrap;
}
.hiw-text { color: var(--muted); font-size: .95rem; margin-bottom: 20px; }
.hiw-visual {
  margin-top: auto;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
}

/* mock UI shared */
.mock { font-size: .8rem; }
/* step 1 — guided form */
.mock-progress { display: flex; align-items: center; gap: 6px; margin-bottom: 12px; }
.mock-dot {
  width: 20px; height: 20px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--blue); color: #fff;
  border-radius: 50%; font-size: .68rem; font-weight: 700;
}
.mock-progress i { height: 4px; flex: 1; background: var(--line); border-radius: 2px; }
.mock-progress i.on { background: var(--blue); }
.mock-title { font-weight: 700; color: var(--navy); font-size: .95rem; margin-bottom: 10px; }
.mock-field { margin-bottom: 8px; }
.mock-label { display: block; font-weight: 600; color: var(--ink); font-size: .72rem; margin-bottom: 3px; }
.mock-input {
  display: block; height: 30px;
  background: #fff; border: 1px solid var(--line); border-radius: 7px;
}
.mock-btn {
  display: inline-block; margin-top: 4px;
  background: var(--accent); color: var(--navy);
  border-radius: 8px; padding: 7px 14px;
  font-weight: 700; font-size: .78rem;
}
/* step 2 — upload */
.mock-drop {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  border: 2px dashed #94a3b8; border-radius: 10px;
  padding: 16px 10px; background: #fff;
  color: var(--muted); font-weight: 600;
  margin-bottom: 12px;
}
.mock-drop-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px;
  background: var(--blue); color: #fff;
  border-radius: 50%; font-size: .8rem;
}
.mock-checks { margin-bottom: 12px; }
.mock-checks li { display: flex; align-items: center; gap: 7px; color: var(--ink); margin-bottom: 5px; font-size: .78rem; }
.mock-checks li::before {
  content: '✓';
  display: inline-flex; align-items: center; justify-content: center;
  width: 15px; height: 15px; flex: none;
  background: #16a34a; color: #fff;
  border-radius: 50%; font-size: .58rem; font-weight: 800;
}
.mock-file {
  display: flex; align-items: center; justify-content: space-between;
  background: #fff; border: 1px solid var(--line); border-radius: 8px;
  padding: 8px 10px;
}
.mock-file-name { font-weight: 600; color: var(--ink); }
.mock-file-ok { color: #16a34a; font-weight: 700; font-size: .74rem; }
/* step 3 — permit ready */
.mock-permit {
  position: relative;
  background: linear-gradient(105deg, #fcfcf9, #f3f1e8);
  border: 1px solid #d9d6c8; border-radius: 10px;
  padding: 14px 12px 12px;
  text-align: center;
  font-family: Georgia, 'Times New Roman', serif;
  margin-bottom: 12px;
}
.mock-permit-emblem { width: 34px; height: 34px; color: #1a1a1a; margin-bottom: 6px; }
.mock-permit-title {
  display: block;
  font-family: var(--font); font-weight: 700; color: #161616;
  font-size: .86rem; line-height: 1.25;
  margin-bottom: 5px;
}
.mock-permit-valid { display: block; font-size: .68rem; color: #444; }
.mock-approved {
  position: absolute; top: -9px; right: -8px;
  background: #16a34a; color: #fff;
  border-radius: 999px; padding: 4px 10px;
  font-family: var(--font); font-size: .7rem; font-weight: 700;
  box-shadow: 0 4px 10px rgba(22, 163, 74, .4);
  transform: rotate(4deg);
}
.mock-ready-chips { display: flex; flex-direction: column; gap: 7px; }
.mock-chip {
  display: block;
  background: #fff; border: 1px solid var(--line); border-radius: 8px;
  padding: 7px 10px;
  font-size: .78rem; font-weight: 600; color: var(--ink);
}

/* ── Cards ── */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow);
}
.card-icon { font-size: 2rem; margin-bottom: 14px; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); font-size: .97rem; }

/* ══════════ Pricing ══════════ */
.pricing-section {
  background:
    radial-gradient(rgba(11, 37, 69, .07) 1px, transparent 1.5px) 0 0 / 26px 26px,
    linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  padding: 88px 0;
}
.price-rating { margin-top: 18px; font-weight: 600; color: var(--ink); }
.price-rating .stars { color: var(--accent); letter-spacing: 2px; margin-right: 6px; }

.price-toggle-wrap { text-align: center; margin-bottom: 44px; }
.price-toggle {
  display: inline-flex; gap: 4px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 5px;
  box-shadow: var(--shadow);
}
.price-toggle button {
  border: none; background: none; cursor: pointer;
  font-family: inherit;
  padding: 9px 24px;
  border-radius: 10px;
  text-align: center;
  transition: background .15s;
}
.price-toggle strong { display: block; font-size: 1rem; color: var(--navy); }
.price-toggle span { font-size: .76rem; color: var(--muted); }
.price-toggle button.active { background: var(--navy); }
.price-toggle button.active strong,
.price-toggle button.active span { color: #fff; }

.price-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  max-width: 1020px;
  margin: 0 auto;
  align-items: stretch;
}
.price-card {
  display: flex; flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 30px 30px 26px;
  box-shadow: var(--shadow);
}
.price-card.featured {
  background: linear-gradient(180deg, #fffdf5 0%, #fff 55%);
  border: 2px solid rgba(245, 158, 11, .75);
  box-shadow: 0 24px 55px rgba(11, 37, 69, .16);
}
.price-card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.price-name {
  color: var(--navy); font-size: .95rem; font-weight: 800;
  letter-spacing: .12em; text-transform: uppercase;
}
.price-best {
  background: var(--accent); color: var(--navy);
  border-radius: 999px; padding: 5px 14px;
  font-size: .78rem; font-weight: 800; white-space: nowrap;
  box-shadow: 0 6px 14px rgba(245, 158, 11, .35);
}
.price-desc { font-size: .96rem; color: var(--muted); margin-bottom: 18px; }
.price-row { display: flex; align-items: baseline; gap: 12px; margin-bottom: 6px; }
.price-now { font-size: 3.1rem; font-weight: 800; color: var(--navy); line-height: 1; }
.featured .price-now { color: var(--accent-hover); }
.price-was { color: #94a3b8; font-size: 1.25rem; }

/* CSS product scenes — miniatures of the real permit document */
.price-visual { position: relative; height: 236px; margin: 16px 0 22px; }
.pv-emblem {
  display: inline-block; width: 30px; height: 30px;
  background-color: #1a1a1a;
  -webkit-mask: url('/assets/img/idp-emblem.svg') center / contain no-repeat;
  mask: url('/assets/img/idp-emblem.svg') center / contain no-repeat;
}
.pv-emblem-sm { width: 20px; height: 20px; }

/* mini booklet cover — same anatomy as the big replica, straight & bold */
.pcover {
  position: absolute; left: 10%; top: 0;
  width: 172px; height: 228px;
  background: linear-gradient(160deg, #fcfcf9, #f0eee4);
  border: 1px solid #dedbd0;
  border-radius: 6px;
  box-shadow: 0 16px 30px rgba(11, 37, 69, .2);
  padding: 10px;
}
.pcover-frame {
  height: 100%;
  border: 1px solid #2a2a2a;
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
  padding: 14px 9px 11px;
  font-family: Georgia, 'Times New Roman', serif;
  color: #222;
}
.pcover-small { font-size: 7.5px; font-family: var(--font); font-weight: 600; }
.pcover-title {
  font-family: var(--font); font-weight: 800;
  font-size: 14.5px; line-height: 1.2; color: #161616;
  margin: 15px 0 4px;
}
.pcover-valid { font-size: 8px; margin-top: 10px; }
.pcover-valid b { display: block; font-family: var(--font); font-size: 10px; border-bottom: 1px solid #444; padding: 1px 6px 2px; }
.pcover .pv-emblem { width: 52px; height: 52px; margin-top: auto; }

/* phone mockup — identical size on both cards, booklet cover on screen */
.pv-phone {
  position: absolute; right: 12%; bottom: 0;
  width: 104px; height: 200px;
  background: #0f172a;
  border: 2px solid #334155;
  border-radius: 16px;
  padding: 7px 6px;
  box-shadow: 0 18px 34px rgba(11, 37, 69, .3);
}
.pv-screen {
  height: 100%;
  background: #fdfdfb;
  border-radius: 9px;
  padding: 5px 4px;
}
/* the booklet cover, rendered inside the phone screen */
.pv-screen .pcover-frame { padding: 9px 5px 7px; }
.pv-screen .pcover-small { font-size: 5.5px; }
.pv-screen .pcover-title { font-size: 9.5px; margin: 9px 0 3px; }
.pv-screen .pcover-valid { font-size: 6px; margin-top: 6px; }
.pv-screen .pcover-valid b { font-size: 7px; padding: 0 4px 1px; }
.pv-screen .pv-emblem { width: 32px; height: 32px; margin-top: auto; }

/* digital-only card: the same phone, centered */
.pv-digital .pv-phone {
  left: 50%; right: auto;
  transform: translateX(-50%);
}

.price-features { margin: 4px 0 22px; flex: 1; }
.price-features li {
  display: flex; align-items: baseline; gap: 10px;
  color: var(--ink); font-size: .95rem;
  margin-bottom: 10px;
}
.price-features li::before {
  content: '✓';
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 17px; height: 17px;
  background: rgba(22, 163, 74, .12); color: #16a34a;
  border-radius: 50%;
  font-size: .62rem; font-weight: 800;
  transform: translateY(2px);
}
.price-features li.no { color: var(--muted); }
.price-features li.no::before {
  content: '✕';
  background: rgba(100, 116, 139, .12); color: #64748b;
}
.btn-ghost {
  border-color: var(--navy); color: var(--navy);
  background: none;
}
.btn-ghost:hover { background: rgba(11, 37, 69, .06); }
.price-save { text-align: center; margin-top: 12px; color: var(--accent-hover); font-weight: 700; font-size: .9rem; }
.price-guarantee { text-align: center; margin-top: 30px; color: var(--muted); font-size: .92rem; }

/* ══════════ Eligibility ══════════ */
/* interactive checker */
.elig-check {
  max-width: 960px;
  margin: 0 auto 26px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 26px 28px;
}
.elig-check form {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 16px;
  align-items: end;
}
.elig-check-field label {
  display: block;
  font-weight: 600; font-size: .92rem; color: var(--navy);
  margin-bottom: 7px;
}
.elig-check-field select {
  width: 100%;
  padding: 12px 13px;
  font-family: inherit; font-size: .98rem; color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.elig-check-field select:focus { outline: 2px solid var(--blue); outline-offset: 1px; }
.elig-check .btn { padding: 12px 22px; }

.elig-result { margin-top: 18px; border-radius: 12px; padding: 16px 18px; font-size: .96rem; line-height: 1.6; }
.elig-result.ok   { background: #f0fdf4; border: 1px solid #86efac; color: #14532d; }
.elig-result.warn { background: #fef3c7; border: 1px solid rgba(245, 158, 11, .55); color: #78350f; }
.elig-result p { margin-top: 6px; }
.elig-result .btn { display: inline-block; margin-top: 12px; }

/* compact reference panel */
.elig-panel {
  max-width: 960px;
  margin: 0 auto;
  background: #fdf9ee;
  border: 1px solid rgba(245, 158, 11, .4);
  border-radius: 16px;
  padding: 22px 24px;
}
.elig-panel-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.elig-warn-icon {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 36px; height: 36px;
  background: rgba(245, 158, 11, .16);
  border-radius: 10px;
  font-size: 1.05rem; color: var(--accent-hover);
}
.elig-panel-head h3 { font-size: 1.08rem; }

.elig-mini-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.elig-mini {
  display: flex; align-items: flex-start; gap: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
}
.elig-flag {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 28px; height: 28px;
  background: var(--bg-soft);
  border: 1px solid var(--line); border-radius: 8px;
  font-size: 1.05rem;
}
.elig-mini strong { display: block; color: var(--navy); font-size: .92rem; margin-bottom: 2px; }
.elig-mini p { color: var(--muted); font-size: .82rem; line-height: 1.45; }

/* ══════════ FAQ ══════════ */
.faq-grid {
  display: grid;
  grid-template-columns: minmax(320px, .8fr) 1.4fr;
  gap: 72px;
  align-items: start;
}
.faq-left { position: sticky; top: 100px; }
.faq-left h2 { margin: 4px 0 14px; }
.faq-left .section-sub { margin-bottom: 32px; }

.faq-contact {
  position: relative;
  overflow: hidden;
  background: linear-gradient(150deg, var(--navy) 0%, var(--navy-800) 100%);
  color: #cbd5e1;
  border-radius: 16px;
  padding: 28px 26px;
}
.faq-contact-emblem {
  position: absolute; right: -34px; bottom: -38px;
  width: 150px; height: 150px;
  display: block;
  background-color: rgba(255, 255, 255, .07);
  -webkit-mask: url('/assets/img/idp-emblem.svg') center / contain no-repeat;
  mask: url('/assets/img/idp-emblem.svg') center / contain no-repeat;
}
.faq-contact h3 { color: #fff; margin-bottom: 8px; }
.faq-contact p { font-size: .95rem; margin-bottom: 20px; max-width: 32ch; }

.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  margin-bottom: 14px;
  transition: border-color .2s, box-shadow .2s;
}
.faq-item:hover { border-color: #cbd5e1; }
.faq-item[open] {
  border-color: rgba(245, 158, 11, .55);
  box-shadow: 0 10px 28px rgba(11, 37, 69, .09);
}
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 20px 22px;
  cursor: pointer;
  list-style: none;
  font-weight: 650; font-size: 1.06rem; line-height: 1.45;
  color: var(--navy);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-q { flex: 1; }
.faq-icon {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 30px; height: 30px;
  border: 1.5px solid var(--line); border-radius: 50%;
  font-size: 1.15rem; font-weight: 600; color: var(--muted);
  transition: transform .25s, background .2s, color .2s, border-color .2s;
}
.faq-item[open] .faq-icon {
  transform: rotate(45deg);
  background: var(--accent); border-color: var(--accent); color: var(--navy);
}
.faq-answer { padding: 0 60px 22px 22px; }
.faq-answer p { color: var(--muted); line-height: 1.7; max-width: 68ch; }

/* ── CTA strip ── */
.cta-strip { background: var(--navy); color: #fff; text-align: center; padding: 64px 0; }
.cta-strip h2 { color: #fff; margin-bottom: 10px; }
.cta-strip p { color: #cbd5e1; margin-bottom: 26px; }

/* ── Footer ── */
.site-footer { background: var(--navy); color: #cbd5e1; padding: 56px 0 24px; }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px;
  padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,.12);
}
.site-footer .logo { color: #fff; margin-bottom: 12px; }
.site-footer .logo-seal { color: #fff; }
.footer-brand p { font-size: .92rem; color: #94a3b8; max-width: 34ch; }
.footer-col h3 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.footer-col li { margin-bottom: 9px; }
.footer-col a { color: #cbd5e1; font-size: .95rem; }
.footer-col a:hover { color: #fff; }
.footer-langs { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.footer-langs a { font-size: .88rem; color: #94a3b8; }
.footer-bottom { padding-top: 24px; font-size: .85rem; color: #94a3b8; }
.footer-disclaimer { margin-bottom: 12px; max-width: 90ch; }

/* ══════════ Apply page ══════════ */
.apply-hero {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-800) 100%);
  color: #fff;
  padding: 52px 0 46px;
}
.apply-hero h1 { color: #fff; font-size: clamp(1.7rem, 3.6vw, 2.4rem); margin-bottom: 8px; }
.apply-hero p { color: #cbd5e1; }
.apply-section-wrap { background: var(--bg-soft); padding: 48px 0 80px; }

.apply-grid {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 40px;
  align-items: start;
}
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.apply-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 26px 28px;
  margin-bottom: 20px;
}
.apply-card-head { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 22px; }
.apply-num {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 40px; height: 40px;
  background: var(--navy); color: #fff;
  border-radius: 50%;
  font-weight: 800; font-size: 1.05rem;
}
.apply-card-head h2 { font-size: 1.2rem; margin-bottom: 3px; }
.apply-card-head p { color: var(--muted); font-size: .92rem; }

.apply-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.form-group-full { grid-column: 1 / -1; }
.apply-fields .form-group { margin-bottom: 0; }

/* license category picker */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}
.cat-opt {
  position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 9px;
  padding: 20px 8px 18px;
  border-right: 1px solid var(--line);
  cursor: pointer;
  transition: background .15s, box-shadow .15s;
}
.cat-opt:last-child { border-right: none; }
.cat-opt input { position: absolute; opacity: 0; pointer-events: none; }
.cat-icon { color: var(--navy); line-height: 0; }
.cat-icon svg { width: 34px; height: 34px; }
.cat-letter { font-weight: 800; font-size: 1.1rem; color: var(--navy); }
.cat-dot {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px;
  border: 1.5px solid var(--line); border-radius: 50%;
  font-size: .7rem; font-weight: 800; color: transparent;
  transition: background .15s, border-color .15s, color .15s;
}
.cat-opt:has(input:checked) {
  background: rgba(245, 158, 11, .08);
  box-shadow: inset 0 0 0 2px var(--accent);
}
.cat-opt:has(input:checked) .cat-dot { background: var(--accent); border-color: var(--accent); color: var(--navy); }
.cat-chip {
  display: inline-block;
  margin-top: 14px;
  background: rgba(245, 158, 11, .12);
  border-radius: 10px;
  padding: 8px 16px;
  font-weight: 700; color: var(--navy); font-size: .95rem;
}

/* applicants */
.appl-card {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 14px;
}
.appl-head { display: flex; align-items: center; gap: 11px; margin-bottom: 16px; }
.appl-avatar {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 30px; height: 30px;
  background: var(--navy); color: #fff;
  border-radius: 50%;
}
.appl-avatar svg { width: 17px; height: 17px; }
.appl-title { color: var(--navy); font-size: .98rem; }
.appl-remove {
  margin-left: auto;
  background: none; border: none; cursor: pointer;
  font-family: inherit; font-size: .82rem; font-weight: 600;
  color: var(--muted);
  padding: 4px 8px; border-radius: 6px;
}
.appl-remove:hover { color: #b91c1c; background: rgba(185, 28, 28, .07); }
.add-person {
  display: block; width: 100%;
  border: 2px dashed var(--line);
  border-radius: 14px;
  background: none;
  padding: 15px;
  font-family: inherit; font-size: .98rem; font-weight: 600; color: var(--ink);
  cursor: pointer;
  transition: border-color .15s, color .15s;
}
.add-person:hover { border-color: var(--accent); color: var(--accent-hover); }
.contact-block { margin-top: 20px; padding-top: 20px; border-top: 1px dashed var(--line); }

/* trip eligibility strip */
#trip-verdict { margin-top: 16px; }
.apply-notok {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
  margin-top: 16px;
  font-size: .84rem;
}
.apply-notok b { color: #78350f; font-weight: 700; margin-right: 4px; }
.notok-chip {
  background: #fef3c7;
  border: 1px solid rgba(245, 158, 11, .4);
  border-radius: 999px;
  padding: 3px 11px;
  font-size: .78rem; font-weight: 600; color: #78350f;
  white-space: nowrap;
}

/* photo uploads — per applicant, 3 tiles */
.ph-group { margin-bottom: 22px; }
.ph-group:last-child { margin-bottom: 0; }
.ph-head {
  font-size: .8rem; font-weight: 800; color: var(--navy);
  text-transform: uppercase; letter-spacing: .09em;
  margin-bottom: 12px;
}
.ph-name { color: var(--muted); font-weight: 600; letter-spacing: 0; text-transform: none; font-size: .84rem; }
.upload-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.up-label { display: block; font-weight: 600; font-size: .86rem; color: var(--ink); margin-bottom: 6px; }
.upload-tile {
  position: relative;
  display: flex; align-items: center; gap: 11px;
  border: 2px dashed #cbd5e1;
  border-radius: 12px;
  padding: 12px;
  cursor: pointer;
  background: #fff;
  transition: border-color .15s, background .15s;
}
.upload-tile:hover { border-color: var(--accent); background: rgba(245, 158, 11, .04); }
.upload-tile input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.upload-tile.has-file { border-style: solid; border-color: #16a34a; background: #f0fdf4; }
.upload-ic {
  display: flex; align-items: center; justify-content: center; flex: none;
  width: 44px; height: 44px;
  background: var(--bg-soft);
  border-radius: 10px;
  color: var(--muted);
  overflow: hidden;
}
.upload-ic svg { width: 20px; height: 20px; }
.upload-preview { width: 100%; height: 100%; object-fit: cover; }
.upload-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.upload-txt strong { color: var(--navy); font-size: .82rem; line-height: 1.3; }
.upload-txt span { color: var(--muted); font-size: .72rem; line-height: 1.35; }

/* upload states + delete */
.upload-field { position: relative; }
.upload-tile.uploading { border-color: var(--blue); }
.upload-tile.uploading .upload-preview { opacity: .45; animation: up-pulse 1.1s ease-in-out infinite; }
@keyframes up-pulse { 50% { opacity: .8; } }
.upload-tile.upload-error { border-color: #dc2626; background: #fef2f2; }
.upload-remove {
  position: absolute; top: 22px; right: -8px;
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px;
  background: var(--navy); color: #fff;
  border: 2px solid #fff; border-radius: 50%;
  font-size: .68rem; font-weight: 800; line-height: 1;
  cursor: pointer;
  box-shadow: 0 3px 8px rgba(11, 37, 69, .3);
  z-index: 2;
}
.upload-remove:hover { background: #b91c1c; }

/* not-accepted strip in the sidebar */
.apply-notok-side {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--bg-soft);
}
.apply-notok-side b { flex-basis: 100%; }

/* plan & years */
.plan-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 16px; }
.plan-card {
  position: relative;
  display: flex; flex-direction: column; gap: 5px;
  border: 2px solid var(--line);
  border-radius: 14px;
  padding: 18px 18px 16px;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.plan-card input { position: absolute; opacity: 0; pointer-events: none; }
.plan-card:has(input:checked) { border-color: var(--accent); background: rgba(245, 158, 11, .06); }
.plan-card-name { font-weight: 800; color: var(--navy); font-size: .92rem; text-transform: uppercase; letter-spacing: .07em; }
.plan-card-desc { color: var(--muted); font-size: .85rem; line-height: 1.45; }
.plan-card-price { font-weight: 800; color: var(--accent-hover); font-size: 1.4rem; margin-top: 2px; }

.years-pills { display: flex; gap: 10px; margin-bottom: 6px; }
.years-pill { position: relative; cursor: pointer; }
.years-pill input { position: absolute; opacity: 0; pointer-events: none; }
.years-pill span {
  display: inline-block;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 8px 20px;
  font-weight: 600; font-size: .92rem; color: var(--ink);
  transition: all .15s;
}
.years-pill:has(input:checked) span { background: var(--navy); border-color: var(--navy); color: #fff; }

.ship-fields { margin-top: 18px; padding-top: 18px; border-top: 1px dashed var(--line); }
.ship-note { color: var(--muted); font-size: .9rem; margin-bottom: 14px; }

/* consent + submit */
.apply-card-submit { padding: 26px 28px 22px; }
.consent { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 18px; cursor: pointer; }
.consent input { width: 18px; height: 18px; margin-top: 3px; flex: none; accent-color: var(--accent); }
.consent span { font-size: .92rem; color: var(--ink); line-height: 1.55; }
.btn-lg { padding: 16px 28px; font-size: 1.08rem; }
.apply-trust { text-align: center; color: var(--muted); font-size: .88rem; margin-top: 14px; }

/* sticky summary */
.apply-summary { position: sticky; top: 92px; }
.sum-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 24px 26px;
}
.sum-card h2 { font-size: 1.05rem; margin-bottom: 16px; }
.sum-row { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--bg-soft); }
.sum-row dt { color: var(--muted); font-size: .92rem; }
.sum-row dd { font-weight: 600; color: var(--ink); font-size: .95rem; text-align: right; }
.sum-row-total { border-bottom: none; padding-top: 14px; }
.sum-row-total dt { color: var(--navy); font-weight: 700; }
.sum-row-total dd { font-size: 1.5rem; font-weight: 800; color: var(--navy); }
.sum-note { color: var(--muted); font-size: .84rem; line-height: 1.55; margin-top: 12px; }

/* thank-you */
.ty-section { background: var(--bg-soft); }
.ty-card {
  max-width: 640px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 48px 44px;
  text-align: center;
}
.ty-check {
  display: inline-flex; align-items: center; justify-content: center;
  width: 64px; height: 64px;
  background: #16a34a; color: #fff;
  border-radius: 50%;
  font-size: 1.8rem; font-weight: 800;
  margin-bottom: 18px;
  box-shadow: 0 12px 30px rgba(22, 163, 74, .35);
}
.ty-card h1 { font-size: 1.8rem; margin-bottom: 10px; }
.ty-text { color: var(--muted); margin-bottom: 10px; }
.ty-id {
  display: inline-block;
  background: var(--bg-soft);
  border: 1px dashed var(--line);
  border-radius: 10px;
  padding: 8px 18px;
  font-weight: 800; color: var(--navy); letter-spacing: .05em;
  margin-bottom: 24px;
}
.ty-next { text-align: left; background: var(--bg-soft); border-radius: 14px; padding: 22px 24px; margin-bottom: 26px; }
.ty-next h2 { font-size: 1.05rem; margin-bottom: 12px; }
.ty-next ol { list-style: none; counter-reset: ty; }
.ty-next li { counter-increment: ty; position: relative; padding-left: 34px; margin-bottom: 10px; color: var(--ink); line-height: 1.55; }
.ty-next li::before {
  content: counter(ty);
  position: absolute; left: 0; top: 1px;
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px;
  background: var(--accent); color: var(--navy);
  border-radius: 50%; font-size: .78rem; font-weight: 800;
}

/* ══════════ Blog ══════════ */
.blog-hero { background: var(--bg-soft); padding: 64px 0 8px; }
.blog-hero .section-head { margin-bottom: 24px; }

/* cards */
.blog-chip {
  display: inline-block;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 12px;
  font-size: .74rem; font-weight: 700; color: var(--muted);
  text-transform: uppercase; letter-spacing: .06em;
  background: #fff;
}
.blog-chip-accent { background: var(--accent); border-color: var(--accent); color: var(--navy); }
.blog-card-meta { display: flex; gap: 8px; margin-bottom: 12px; }
.blog-excerpt { color: var(--muted); font-size: .95rem; line-height: 1.6; }
.blog-byline { color: var(--muted); font-size: .84rem; margin-top: 12px; }

.blog-featured {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 40px;
  color: inherit;
  transition: box-shadow .2s, transform .2s;
}
.blog-featured:hover { text-decoration: none; box-shadow: 0 18px 44px rgba(11, 37, 69, .14); transform: translateY(-2px); }
.blog-featured-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.blog-featured-body { padding: 34px 36px; display: flex; flex-direction: column; justify-content: center; }
.blog-featured-body h2 { font-size: clamp(1.3rem, 2.4vw, 1.8rem); margin-bottom: 12px; }
.blog-featured:hover h2 { color: var(--blue); }

.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.blog-card {
  display: flex; flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  color: inherit;
  transition: box-shadow .2s, transform .2s;
}
.blog-card:hover { text-decoration: none; box-shadow: 0 16px 38px rgba(11, 37, 69, .13); transform: translateY(-2px); }
.blog-card-media img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.blog-card-body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.blog-card-body h3 { font-size: 1.08rem; line-height: 1.4; margin-bottom: 10px; }
.blog-card:hover h3 { color: var(--blue); }
.blog-card .blog-byline { margin-top: auto; padding-top: 12px; }

/* ── article page ── */
.post-container { max-width: 860px; }
.post-header { background: var(--bg-soft); padding: 44px 0 28px; }
.post-breadcrumb { font-size: .88rem; color: var(--muted); margin-bottom: 20px; display: flex; gap: 8px; flex-wrap: wrap; }
.post-breadcrumb a { color: var(--muted); }
.post-breadcrumb a:hover { color: var(--blue); }
.post-header h1 { font-size: clamp(1.7rem, 4vw, 2.5rem); margin-bottom: 18px; max-width: 24ch; }
.post-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; color: var(--muted); font-size: .92rem; padding-bottom: 12px; }
.post-meta-dot { color: var(--line); }
.post-avatar {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px;
  background: var(--navy); color: #fff;
  border-radius: 50%;
  font-weight: 700; font-size: .95rem;
}
.post-hero-media { margin: 28px 0; }
.post-hero-media img { width: 100%; height: auto; border-radius: 16px; box-shadow: var(--shadow); }

.post-toc {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px 24px;
  margin-bottom: 32px;
}
.post-toc-title { font-size: .78rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 10px; }
.post-toc ol { list-style: none; counter-reset: toc; }
.post-toc li { counter-increment: toc; margin-bottom: 7px; }
.post-toc a { color: var(--ink); font-weight: 500; }
.post-toc a::before { content: counter(toc, decimal-leading-zero); color: var(--accent-hover); font-weight: 700; font-size: .8rem; margin-right: 10px; }
.post-toc a:hover { color: var(--blue); text-decoration: none; }

/* rich text body */
.post-body { font-size: 1.06rem; line-height: 1.8; color: var(--ink); }
.post-body h2 { font-size: 1.5rem; margin: 40px 0 14px; scroll-margin-top: 90px; }
.post-body h3 { font-size: 1.18rem; margin: 28px 0 10px; }
.post-body p { margin-bottom: 16px; }
.post-body a { text-decoration: underline; text-underline-offset: 3px; }
.post-body ul, .post-body ol { margin: 0 0 18px; padding-left: 6px; }
.post-body ul li { position: relative; padding-left: 24px; margin-bottom: 8px; }
.post-body ul li::before {
  content: '';
  position: absolute; left: 5px; top: .68em;
  width: 7px; height: 7px;
  background: var(--accent);
  border-radius: 50%;
}
.post-body blockquote {
  border-left: 4px solid var(--accent);
  background: var(--bg-soft);
  border-radius: 0 12px 12px 0;
  padding: 18px 24px;
  margin: 24px 0;
  font-style: italic; color: var(--navy); font-weight: 500;
}
.post-body figure { margin: 28px 0; }
.post-body figure img { width: 100%; height: auto; border-radius: 12px; }
.post-body figcaption { font-size: .86rem; color: var(--muted); margin-top: 10px; text-align: center; }
.post-body table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: .96rem; }
.post-body th, .post-body td { border: 1px solid var(--line); padding: 10px 14px; text-align: left; }
.post-body th { background: var(--bg-soft); color: var(--navy); }

.post-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  flex-wrap: wrap;
  background: linear-gradient(150deg, var(--navy), var(--navy-800));
  color: #cbd5e1;
  border-radius: 18px;
  padding: 30px 34px;
  margin: 44px 0;
}
.post-cta h2 { color: #fff; font-size: 1.35rem; margin-bottom: 6px; }
.post-related { margin-top: 8px; }
.post-related > h2 { margin-bottom: 22px; font-size: 1.4rem; }

/* ══════════ Country guides ══════════ */
.cty-hero {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-800) 100%);
  color: #cbd5e1;
  padding: 40px 0 56px;
}
.cty-breadcrumb { margin-bottom: 26px; }
.cty-breadcrumb a, .cty-breadcrumb span { color: #94a3b8; }
.cty-breadcrumb a:hover { color: #fff; }
.cty-hero-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 52px;
  align-items: center;
}
.cty-hero h1 {
  color: #fff;
  font-size: clamp(1.7rem, 3.6vw, 2.5rem);
  margin: 14px 0;
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
}
.cty-flag {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 54px; height: 54px;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 14px;
  font-size: 1.7rem;
}
.cty-intro { max-width: 56ch; margin-bottom: 22px; }
.cty-updated { color: #94a3b8; margin-top: 14px; margin-bottom: 0; }
.cty-hero-media img { width: 100%; height: auto; border-radius: 16px; box-shadow: 0 20px 44px rgba(0, 0, 0, .4); }

/* hero booklet scene — the full open booklet, scaled down */
.cty-visual { position: relative; max-width: 640px; margin: 0 auto; }
.cty-visual .booklet {
  font-size: 7px; /* whole document scales through its em system */
  max-width: 100%;
  filter: drop-shadow(0 20px 34px rgba(0, 0, 0, .45));
}
.cty-visual-flag {
  position: absolute; right: -12px; top: -18px; z-index: 2;
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px;
  background: #fff;
  border-radius: 50%;
  font-size: 1.55rem;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .4);
  transform: rotate(8deg);
}

/* per-country pricing */
.cty-pricing { margin-bottom: 40px; }
.cty-pricing h2 { font-size: 1.4rem; margin-bottom: 16px; }
.cpp-grid { max-width: 560px; }
.cpp-card {
  background: linear-gradient(180deg, #fffdf5 0%, #fff 55%);
  border: 2px solid rgba(245, 158, 11, .75);
  border-radius: 16px;
  padding: 24px 26px;
  box-shadow: 0 16px 38px rgba(11, 37, 69, .12);
}
.cpp-head { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.cpp-name { font-weight: 800; color: var(--navy); font-size: 1.02rem; text-transform: uppercase; letter-spacing: .07em; }
.cpp-price { font-weight: 800; color: var(--accent-hover); font-size: 1.7rem; white-space: nowrap; }
.cpp-card .price-features { margin-bottom: 14px; }
.cpp-card .price-features li { color: var(--ink); }
.cpp-note {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 10px;
  padding: 12px 14px;
  color: #14532d; font-size: .93rem; font-weight: 600; line-height: 1.55;
  margin-bottom: 16px;
}
.cpp-print { text-align: center; margin-top: 12px; font-size: .9rem; }
.cpp-print a { color: var(--muted); font-weight: 600; }
.cpp-print a:hover { color: var(--blue); }

.cty-main { max-width: 900px; padding-top: 44px; padding-bottom: 72px; }

.quick-box {
  background: #f0fdf4;
  border: 1px solid #86efac;
  border-left: 5px solid #16a34a;
  border-radius: 14px;
  padding: 24px 28px;
  margin-bottom: 36px;
}
.quick-box h2 { font-size: 1.25rem; margin-bottom: 10px; }
.quick-box p { color: #14532d; line-height: 1.7; }

.cty-facts { margin-bottom: 40px; }
.cty-facts h2 { font-size: 1.4rem; margin-bottom: 16px; }
.cty-facts table { width: 100%; border-collapse: collapse; font-size: .97rem; }
.cty-facts th, .cty-facts td { border: 1px solid var(--line); padding: 11px 16px; text-align: left; }
.cty-facts th { background: var(--bg-soft); color: var(--navy); width: 42%; font-weight: 600; }
.cty-facts tr:nth-child(even) td { background: #fcfcfd; }

.cty-body { margin-bottom: 40px; }
.cty-body section { margin-bottom: 8px; }

.cty-faq { margin-bottom: 8px; }
.cty-faq > h2 { font-size: 1.4rem; margin-bottom: 18px; }

.cty-related { margin-top: 40px; }
.cty-related h2 { font-size: 1.3rem; margin-bottom: 18px; }
.cty-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.cty-card {
  display: flex; align-items: center; gap: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 18px;
  color: var(--navy); font-weight: 700;
  box-shadow: var(--shadow);
  transition: box-shadow .2s, transform .2s, border-color .2s;
}
.cty-card:hover { text-decoration: none; transform: translateY(-2px); border-color: var(--accent); box-shadow: 0 14px 30px rgba(11, 37, 69, .13); }
.cty-card-flag {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 40px; height: 40px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 1.3rem;
}
.cty-card-name { flex: 1; }
.cty-card-arrow { color: var(--accent-hover); font-size: 1.1rem; }

/* countries hub */
.co-h2 { font-size: 1.35rem; margin: 36px 0 18px; }
.co-h2:first-child { margin-top: 0; }
.co-guides { max-width: 900px; }
.chip-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.cloud-chip {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: .86rem; color: var(--ink);
}

/* ══════════ Legal page ══════════ */
.legal-hero {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-800) 100%);
  color: #fff;
  padding: 64px 0 56px;
}
.legal-hero h1 { color: #fff; font-size: clamp(1.9rem, 4vw, 2.7rem); margin-bottom: 10px; }
.legal-hero p { color: #cbd5e1; max-width: 70ch; }

.legal-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 64px;
  align-items: start;
}
.legal-toc {
  position: sticky; top: 96px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
  box-shadow: var(--shadow);
}
.legal-toc-title {
  font-size: .78rem; font-weight: 700; color: var(--muted);
  text-transform: uppercase; letter-spacing: .1em;
  margin-bottom: 12px;
}
.legal-toc li { margin-bottom: 4px; }
.legal-toc a {
  display: flex; align-items: baseline; gap: 10px;
  padding: 9px 12px;
  border-radius: 9px;
  color: var(--ink); font-size: .95rem; font-weight: 500;
  line-height: 1.35;
}
.legal-toc a span { color: var(--muted); font-size: .78rem; font-weight: 700; }
.legal-toc a:hover { background: var(--bg-soft); text-decoration: none; }
.legal-toc a.active { background: rgba(245, 158, 11, .12); color: var(--navy); font-weight: 700; }
.legal-toc a.active span { color: var(--accent-hover); }

.legal-doc { padding-bottom: 48px; margin-bottom: 48px; border-bottom: 1px solid var(--line); }
.legal-doc:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.legal-doc { scroll-margin-top: 90px; }
.legal-doc h2 { font-size: 1.7rem; margin-bottom: 6px; }
.legal-updated { color: var(--muted); font-size: .88rem; margin-bottom: 26px; }
.legal-doc h3 { font-size: 1.08rem; margin: 26px 0 10px; }
.legal-doc p { color: var(--ink); line-height: 1.75; margin-bottom: 12px; max-width: 75ch; }
.legal-doc ul { margin: 0 0 14px; padding-left: 4px; }
.legal-doc ul li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 8px;
  line-height: 1.65; color: var(--ink);
  max-width: 72ch;
}
.legal-doc ul li::before {
  content: '';
  position: absolute; left: 4px; top: .62em;
  width: 7px; height: 7px;
  background: var(--accent);
  border-radius: 50%;
}

/* ── About / What-is-IDP / Contact ── */
.wid-main .wii-list { margin: 24px 0 40px; }
.about-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  margin: 36px 0;
}
.about-stat {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
  text-align: center;
}
.about-stat strong { display: block; font-size: 2.1rem; font-weight: 800; color: var(--navy); }
.about-stat span { color: var(--muted); font-size: .92rem; }
.about-cards { margin: 8px 0 36px; }
.about-disclaimer {
  background: var(--bg-soft);
  border-left: 4px solid var(--accent);
  border-radius: 0 12px 12px 0;
  padding: 18px 22px;
  color: var(--muted); font-size: .92rem; line-height: 1.65;
}
.contact-grid {
  display: grid; grid-template-columns: 1.3fr .9fr; gap: 32px;
  align-items: start; max-width: 1040px;
}
.contact-card { margin-bottom: 0; }
.contact-ok { margin-bottom: 20px; }
.contact-card textarea {
  width: 100%; padding: 12px 13px;
  font-family: inherit; font-size: .98rem; color: var(--ink);
  border: 1px solid var(--line); border-radius: 10px;
  resize: vertical;
}
.contact-card textarea:focus { outline: 2px solid var(--blue); outline-offset: 1px; }
.contact-aside { position: sticky; top: 96px; }

/* ── 404 ── */
.error-page { text-align: center; padding: 100px 0; }
.error-page h1 { margin-bottom: 12px; }
.error-page p { color: var(--muted); margin-bottom: 28px; }

/* ══════════════ Responsive ══════════════ */
@media (max-width: 960px) {
  .main-nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 68px;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 12px 20px 20px;
    box-shadow: var(--shadow);
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; gap: 2px; }
  .main-nav a { padding: 12px; font-size: 1.05rem; }
  .nav-toggle { display: flex; }
  .header-actions { margin-left: auto; }

  .hero { padding: 56px 0; }
  .hero-full { min-height: 0; padding: 40px 0 56px; }
  .hero-inner {
    grid-template-columns: 1fr;
    /* conversion order on mobile: headline → form → trust extras */
    grid-template-areas: "copy" "form" "extras";
    gap: 32px;
  }
  .hero-checks { grid-template-columns: 1fr; gap: 10px; }

  .wii-intro { grid-template-columns: 1fr; gap: 28px; margin-bottom: 40px; }
  .booklet { font-size: clamp(7.5px, 1.35vw, 12px); }

  .hiw-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .hiw-grid::before { display: none; }

  .faq-grid { grid-template-columns: 1fr; gap: 36px; }
  .faq-left { position: static; }

  .elig-check form { grid-template-columns: 1fr; }
  .elig-mini-grid { grid-template-columns: 1fr; }

  .price-grid { grid-template-columns: 1fr; max-width: 520px; }
  .price-toggle button { padding: 8px 14px; }

  .apply-grid { grid-template-columns: 1fr; }
  .apply-summary { position: static; order: -1; }
  .apply-fields { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: repeat(5, 1fr); }
  .cat-icon svg { width: 26px; height: 26px; }
  .upload-grid-3, .plan-cards { grid-template-columns: 1fr; }

  .cty-hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .cty-grid { grid-template-columns: 1fr; }

  .blog-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .blog-featured { grid-template-columns: 1fr; }
  .blog-featured-body { padding: 26px; }

  .legal-grid { grid-template-columns: 1fr; gap: 32px; }
  .about-stats { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-aside { position: static; }
  .legal-toc { position: static; }
  .legal-toc ul { display: flex; flex-wrap: wrap; gap: 6px; }
  .legal-toc li { margin-bottom: 0; }
  .cards { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .btn-header { display: none; }
  .footer-grid { grid-template-columns: 1fr; }

  /* booklet folds shut: pages stack as two flat sheets */
  .booklet { grid-template-columns: 1fr; font-size: clamp(9px, 2.7vw, 12px); }
  .booklet-cover, .booklet-form-page {
    transform: none;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(11, 37, 69, .15);
  }
  .booklet-cover { margin-bottom: 18px; }
  /* exclusions drop below photo on narrow pages */
  .doc-body { grid-template-columns: 8em 1fr; gap: 1.6em; }
  .doc-excl-col { grid-column: 1 / -1; }
}

/* ═══════════════════════════════════════════════════════════════════
   GOVERNMENTAL THEME LAYER (gov-design branch)
   Flat, square, institutional — GOV.UK / DSFR visual language.
   Overrides the component styles above; tokens already swapped in :root.
   ═══════════════════════════════════════════════════════════════════ */

/* ── disclosure strip (official-notice style) ── */
.gov-banner {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
  font-size: .8rem;
  color: var(--ink);
  padding: 7px 0;
}
.gov-banner .container { display: flex; align-items: center; gap: 8px; }
.gov-banner-ic {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 16px; height: 16px;
  border: 1.5px solid var(--ink); border-radius: 50%;
  font-size: .62rem; font-weight: 700;
}

/* ── header: black institutional bar with blue keyline ── */
.site-header {
  background: var(--navy);
  border-bottom: 6px solid var(--blue);
}
.site-header .logo { color: #fff; }
.site-header .logo-seal { color: #fff; }
.main-nav a { color: #fff; border-radius: 0; text-decoration: none; }
.main-nav a:hover { background: none; text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 5px; color: #fff; }
.main-nav a.active {
  color: #fff; font-weight: 700;
  text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 5px;
  text-decoration-color: var(--focus);
}
.lang-toggle { border-color: rgba(255,255,255,.5); color: #fff; border-radius: 0; }
.lang-toggle:hover { border-color: #fff; }
.lang-menu { border-radius: 0; }
.nav-toggle { border-color: rgba(255,255,255,.5); border-radius: 0; }
.nav-toggle span { background: #fff; }
@media (max-width: 960px) {
  .main-nav { background: var(--navy); border-bottom: 1px solid var(--blue); }
}

/* ── buttons: square, solid, with the gov "shoulder" ── */
.btn {
  border-radius: 0;
  font-weight: 600;
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--green);
  color: #fff;
  box-shadow: 0 3px 0 var(--green-dark);
}
.btn-primary:hover { background: #005a30; color: #fff; }
.btn-primary:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--green-dark); }
.btn-outline { border-color: #fff; color: #fff; border-radius: 0; }
.btn-ghost { border-color: var(--navy); color: var(--navy); border-radius: 0; }

/* ── forms: solid slate borders, square (USWDS-style) ── */
.form-group select, .form-group input, .contact-card textarea,
.elig-check-field select {
  border: 1.5px solid var(--border-strong);
  border-radius: 0;
}
.form-group label, .elig-check-field label { color: var(--navy); }

/* ── hero: white, austere, red fine warning ── */
.hero, .hero-full {
  background: #fff;
  color: var(--ink);
}
.hero h1 { color: var(--navy); }
.hero-sub { color: var(--muted); }
.hero-rating { color: var(--muted); }
.hero-rating .stars { color: var(--muted); letter-spacing: 1px; }
.hero-fines { color: var(--error); }
.hero-note { color: var(--muted); }
.logos-label { color: var(--muted); }
.logo-strip img { border-radius: 0; box-shadow: none; border: 1px solid var(--line); }
.hero-checks { color: var(--ink); }
.hero-checks .check, .wii-list .check {
  background: var(--green); color: #fff; border-radius: 50%;
}
.hero-form {
  order: initial;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-left: 6px solid var(--blue);
  border-radius: 0;
  box-shadow: none;
}
.hero-form-title { color: var(--navy); }

/* ── sections & badges: flat, square labels ── */
.section-badge {
  background: none;
  border: 2px solid var(--blue);
  color: var(--blue);
  border-radius: 0;
  padding: 4px 12px;
}
.section-soft { background: var(--bg-soft); }

/* ── cards & panels: bordered, no float ── */
.card, .hiw-card, .price-card, .blog-card, .blog-featured, .cty-card,
.apply-card, .sum-card, .elig-check, .elig-mini, .faq-item, .legal-toc,
.appl-card, .about-stat, .post-toc, .ty-card, .contact-card {
  border-radius: 0;
  box-shadow: none;
  border: 1px solid var(--line);
}
.card:hover, .blog-card:hover, .blog-featured:hover, .cty-card:hover {
  transform: none;
  box-shadow: none;
  border-color: var(--navy);
}
.hiw-num { background: var(--blue); color: #fff; border-radius: 0; box-shadow: none; }
.hiw-tag, .blog-chip, .years-pill span, .notok-chip, .cloud-chip { border-radius: 0; }
.hiw-visual, .appl-card { border-radius: 0; }
.mock-btn { background: var(--green); color: #fff; border-radius: 0; }
.mock-dot { background: var(--blue); }

/* ── eligibility ── */
.elig-panel { border-radius: 0; background: #fff; border: 1px solid var(--line); border-left: 6px solid var(--focus); }
.elig-warn-icon { background: var(--focus); color: var(--navy); border-radius: 0; }
.elig-flag { border-radius: 0; }
.elig-result { border-radius: 0; }
.elig-result.warn { background: #fff7bf; border: 1px solid var(--focus); color: var(--navy); }
.cat-chip { border-radius: 0; background: var(--bg-soft); }

/* ── pricing: flat institutional ── */
.pricing-section { background: var(--bg-soft); }
.price-toggle { border-radius: 0; box-shadow: none; border: 1.5px solid var(--border-strong); padding: 3px; }
.price-toggle button { border-radius: 0; }
.price-toggle button.active { background: var(--navy); }
.price-card { background: #fff; }
.price-card.featured {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 6px solid var(--green);
  box-shadow: none;
}
.price-best { background: var(--green); color: #fff; border-radius: 0; box-shadow: none; }
.featured .price-now { color: var(--navy); }
.price-now { color: var(--navy); }
.price-save { color: var(--green); }
.price-features li::before { background: var(--green); color: #fff; }
.price-features li.no::before { background: var(--bg-soft); color: var(--muted); }

/* ── FAQ ── */
.faq-item[open] { border-color: var(--navy); box-shadow: none; }
.faq-icon { border-radius: 0; }
.faq-item[open] .faq-icon { background: var(--navy); border-color: var(--navy); color: #fff; }
.faq-contact { border-radius: 0; background: var(--navy); }

/* ── CTA strip & footer: black ── */
.cta-strip { background: var(--navy); }
.post-cta { background: var(--navy); border-radius: 0; }
.site-footer { background: var(--navy); border-top: 6px solid var(--blue); }
.site-footer a { text-decoration: underline; }
.footer-langs a, .site-footer .logo { text-decoration: none; }

/* ── apply / misc ── */
.apply-hero, .legal-hero, .cty-hero { background: var(--navy); }
.apply-num { border-radius: 0; background: var(--blue); }
.upload-tile, .upload-ic, .plan-card, .add-person { border-radius: 0; }
.plan-card:has(input:checked) { border-color: var(--green); background: #f0f7f3; }
.cat-opt:has(input:checked) { background: var(--bg-soft); box-shadow: inset 0 0 0 2px var(--navy); }
.cat-opt:has(input:checked) .cat-dot { background: var(--green); border-color: var(--green); color: #fff; }
.years-pill:has(input:checked) span { background: var(--navy); border-color: var(--navy); }
.upload-remove { border-radius: 50%; }
.quick-box { border-radius: 0; }
.cpp-card { border-radius: 0; background: #fff; border: 1px solid var(--line); border-top: 6px solid var(--green); box-shadow: none; }
.cpp-price { color: var(--navy); }
.cpp-note { border-radius: 0; }
.ty-check { border-radius: 50%; background: var(--green); box-shadow: none; }
.legal-toc a.active { background: var(--bg-soft); border-left: 4px solid var(--blue); border-radius: 0; }
.legal-toc a.active span { color: var(--blue); }
.about-disclaimer { border-left-color: var(--blue); border-radius: 0; }
.booklet { filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .18)); }
.logo, .logo:hover { text-decoration: none; }
.blog-card, .blog-featured, .cty-card { text-decoration: none; }

