/* ============================================================
   ScholarCVPro — design system v6
   Editorial paper aesthetic: warm neutrals, one clay accent,
   Fraunces display over Plus Jakarta Sans, tinted shadows.
   Class names are unchanged; only the visual language moved.
   ============================================================ */

:root {
  /* Ink and paper */
  --ink: #1b1815;
  --ink-soft: #5b534a;
  --ink-faint: #8e857a;
  --line: #e7e0d5;
  --line-strong: #d9d0c1;
  --paper: #fcfaf6;
  --card: #ffffff;
  --wash: #f6f2ea;
  --wash-deep: #efe9de;

  /* One accent, desaturated clay */
  --accent: #8a4b2a;
  --accent-dark: #6d3a20;
  --accent-wash: #f5ebe3;
  --danger: #9a3b3b;

  /* Type */
  --display: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --serif: var(--display);
  --sans: 'Plus Jakarta Sans', 'Segoe UI', system-ui, sans-serif;

  /* Fluid rhythm */
  --maxw: 1180px;
  --gutter: clamp(18px, 4.2vw, 34px);
  --sec-y: clamp(58px, 8vw, 104px);
  --sec-y-lg: clamp(72px, 10vw, 128px);
  --stack: clamp(28px, 4vw, 48px);

  /* Shape */
  --radius: 12px;
  --r-sm: 9px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-pill: 999px;

  /* Light falls from above; every shadow carries the paper hue */
  --shadow-sm: 0 1px 2px rgba(60, 44, 28, 0.05);
  --shadow-md: 0 18px 44px -26px rgba(60, 44, 28, 0.34);
  --shadow-lg: 0 34px 70px -38px rgba(60, 44, 28, 0.42);

  /* Motion */
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-soft: cubic-bezier(0.22, 0.68, 0.16, 1);

  /* Layers */
  --hdr-h: 80px;
  --z-nav: 60;
  --z-float: 80;
  --z-grain: 90;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { max-width: 100%; overflow-x: hidden; }
img, svg, video { max-width: 100%; height: auto; }

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.62;
  color: var(--ink);
  background: var(--paper);
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Paper grain. Fixed and inert, so it never repaints during scroll. */
body::after {
  content: '';
  position: fixed; inset: 0; z-index: var(--z-grain);
  pointer-events: none; opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.055'/%3E%3C/svg%3E");
}
@media print { body::after { display: none; } }

h1, h2, h3, h4 { text-wrap: balance; }
:target, section[id], div[id] { scroll-margin-top: calc(var(--hdr-h) + 24px); }
p { text-wrap: pretty; }

a { color: var(--accent); text-decoration: none; transition: color .2s var(--ease); }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
::selection { background: var(--accent-wash); color: var(--accent-dark); }
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px;
}

/* Keyboard users reach the content without walking the nav */
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  padding: 10px 18px; border-radius: var(--r-pill);
  background: var(--ink); color: var(--paper);
  font-size: 13px; font-weight: 600;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 14px; text-decoration: none; }

/* Scaled A4 iframes: absolutely positioned so they add no intrinsic width */
.fit-frame { position: relative; }
.fit-frame iframe, .tpl-thumb iframe, .hero-frame iframe {
  max-width: none; position: absolute; top: 0; left: 0;
}
.fit-frame iframe { pointer-events: none; }

.wrap { width: min(100% - (var(--gutter) * 2), var(--maxw)); margin-inline: auto; }
.wrap-narrow { width: min(100% - (var(--gutter) * 2), 740px); margin-inline: auto; }
/* Nothing inside a grid or flex track may force the page wider than the screen */
.wrap > *, .wrap-narrow > * { min-width: 0; }

/* ---------- Header ---------- */
/* A floating bar rather than a band glued to the viewport edge. */
.site-header {
  position: sticky; top: 0; z-index: var(--z-nav);
  padding: calc(12px + env(safe-area-inset-top, 0px)) 0 6px;
  background: transparent;
}
.site-header .inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; height: 62px; padding: 0 12px 0 20px;
  border: 1px solid rgba(231, 224, 213, .9);
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .78);
  -webkit-backdrop-filter: saturate(1.5) blur(14px);
  backdrop-filter: saturate(1.5) blur(14px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .8) inset, 0 12px 30px -24px rgba(60, 44, 28, .6);
  position: relative;
}
.brand {
  font-family: var(--display);
  font-size: 21px; font-weight: 600; letter-spacing: -0.4px;
  color: var(--ink);
  display: inline-flex; align-items: center; gap: 10px; flex: 0 0 auto;
}
.brand-mark { display: block; border-radius: 7px; }
.brand:hover { text-decoration: none; }
.brand em { font-style: normal; font-weight: 500; color: var(--accent); }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  position: relative;
  padding: 9px 13px; border-radius: var(--r-pill);
  color: var(--ink-soft); font-size: 14px; font-weight: 500;
  transition: color .2s var(--ease), background .2s var(--ease);
}
.nav a:hover { color: var(--ink); background: rgba(138, 75, 42, .07); text-decoration: none; }
.nav a.active, .nav a[aria-current="page"] { color: var(--ink); }
.nav a.active::after {
  content: ''; position: absolute; left: 13px; right: 13px; bottom: 4px;
  height: 1.5px; border-radius: 2px; background: var(--accent);
}
.nav a.btn-primary, .nav a.btn-primary:hover { color: #fff; margin-left: 6px; }
.nav a.btn-ghost, .nav a.btn-ghost:hover { color: var(--ink); }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--line);
  border-radius: var(--r-pill); padding: 6px 13px;
  font-size: 17px; line-height: 1.2; color: var(--ink); cursor: pointer;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.nav-toggle:hover { background: #fff; border-color: var(--line-strong); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 26px;
  font-family: var(--sans); font-size: 14px; font-weight: 600; letter-spacing: -0.005em;
  line-height: 1.25; border-radius: var(--r-pill);
  border: 1px solid transparent; cursor: pointer;
  transition: background .25s var(--ease), border-color .25s var(--ease),
              color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(.98); }
@media (hover: none) {
  .btn:hover, .btn-primary:hover, .btn-ghost:hover { transform: none; box-shadow: none; }
}
.btn-primary {
  background: var(--ink); color: var(--paper);
  box-shadow: 0 14px 26px -18px rgba(27, 24, 21, .9);
}
.btn-primary:hover {
  background: #2c2620; color: var(--paper);
  transform: translateY(-2px); box-shadow: 0 20px 34px -20px rgba(27, 24, 21, .75);
}
.btn-primary:active { transform: scale(.98); }
.btn-ghost { background: rgba(255, 255, 255, .7); color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--ink-faint); background: #fff; transform: translateY(-2px); }
.btn-small { padding: 8px 16px; font-size: 13px; }
.btn-danger { background: transparent; color: var(--danger); border-color: var(--line-strong); }
.btn-danger:hover { border-color: var(--danger); background: #fdf5f4; }
.btn[disabled] { opacity: .45; cursor: default; transform: none; box-shadow: none; }

/* Text link with a quiet rule under it */
.text-link {
  font-size: 14px; font-weight: 600; color: var(--ink);
  border-bottom: 1px solid var(--line-strong); padding-bottom: 3px;
}
.text-link:hover { color: var(--accent); border-color: var(--accent); text-decoration: none; }

/* ---------- Sections and headings ---------- */
.section { padding: var(--sec-y) 0 calc(var(--sec-y) + 6px); }
.section.alt { background: var(--wash); }
.section h1, .section h2 {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(30px, 3.4vw, 40px);
  letter-spacing: -0.032em; line-height: 1.1;
}
.section .section-sub {
  margin-top: 16px; color: var(--ink-soft);
  max-width: 62ch; font-size: 16.5px; line-height: 1.7;
}

/* Page hero: the same voice as the homepage section heads.
   Heading left, standfirst right, hairline under the pair. */
.page-hero {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(28px, 5vw, 72px); align-items: end;
  padding-bottom: clamp(24px, 3vw, 34px); margin-bottom: clamp(18px, 3vw, 30px);
  border-bottom: 1px solid var(--line);
}
.page-hero h1, .page-hero h2 {
  margin: 0; max-width: 16ch;
  font-family: var(--display); font-weight: 500;
  font-size: clamp(36px, 4.9vw, 60px);
  line-height: 1.0; letter-spacing: -0.042em;
}
.page-hero .section-sub { margin: 0; max-width: 56ch; font-size: 16px; line-height: 1.72; }
.wrap-narrow .page-hero { grid-template-columns: 1fr; gap: 18px; align-items: start; }
.wrap-narrow .page-hero h1, .wrap-narrow .page-hero h2 { max-width: 18ch; font-size: clamp(34px, 5.4vw, 52px); }
@media (max-width: 860px) {
  .page-hero { grid-template-columns: 1fr; gap: 16px; align-items: start; }
  .page-hero h1, .page-hero h2 { max-width: 20ch; }
}

/* Auth pages */
.auth-shell { width: min(100% - (var(--gutter) * 2), 470px); margin-inline: auto; }
.auth-shell .card { padding: clamp(26px, 4vw, 38px); }
.btn-block { width: 100%; }
.auth-foot { margin-top: 20px; font-size: 14px; color: var(--ink-soft); line-height: 1.7; }
.auth-foot a { color: var(--ink); border-bottom: 1px solid var(--line-strong); padding-bottom: 1px; }
.auth-foot a:hover { color: var(--accent); border-color: var(--accent); text-decoration: none; }
.kicker {
  display: inline-block; margin-bottom: 16px;
  padding: 5px 12px; border-radius: var(--r-pill);
  background: var(--accent-wash); color: var(--accent-dark);
  font-size: 10.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
}
.page-head {
  padding: 52px 0 12px;
  display: flex; align-items: flex-end; justify-content: space-between;
  flex-wrap: wrap; gap: 18px;
}
.page-head h1 {
  font-family: var(--display); font-size: clamp(32px, 4.4vw, 46px);
  font-weight: 500; letter-spacing: -0.038em; line-height: 1.04;
}

/* ---------- Motion utilities ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.stagger > * { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.stagger.in > * { opacity: 1; transform: none; }
.stagger.in > *:nth-child(1) { transition-delay: .04s; }
.stagger.in > *:nth-child(2) { transition-delay: .12s; }
.stagger.in > *:nth-child(3) { transition-delay: .20s; }
.stagger.in > *:nth-child(4) { transition-delay: .28s; }
.stagger.in > *:nth-child(5) { transition-delay: .36s; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .stagger > * { opacity: 1 !important; transform: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* Loading surface for previews that have not painted yet */
@keyframes sheen { from { background-position: -160% 0; } to { background-position: 260% 0; } }
.is-loading {
  background-image: linear-gradient(100deg, transparent 20%, rgba(138, 75, 42, .07) 42%, transparent 62%);
  background-size: 220% 100%; animation: sheen 1.6s linear infinite;
}
@media (prefers-reduced-motion: reduce) { .is-loading { animation: none; } }

/* ---------- Template gallery ---------- */
.tpl-filter { margin-top: 34px; margin-bottom: 8px; display: flex; gap: 8px; flex-wrap: wrap; }
.tpl-gallery-page .tpl-filter {
  position: sticky; top: calc(var(--hdr-h) + 6px); z-index: 40;
  padding: 12px 14px; border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .8);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.tpl-filter button {
  padding: 8px 17px; font-size: 13px; font-weight: 600; font-family: var(--sans);
  background: transparent; border: 1px solid transparent; border-radius: var(--r-pill);
  color: var(--ink-soft); cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.tpl-filter button:hover { color: var(--ink); background: var(--wash-deep); }
.tpl-filter button.on { background: var(--ink); color: var(--paper); }

.tpl-cat { margin-top: var(--stack); scroll-margin-top: calc(var(--hdr-h) + 72px); }
.tpl-cat-head {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: 40px; align-items: baseline;
  border-top: 1px solid var(--ink); padding-top: 18px; margin-bottom: 8px;
}
.tpl-cat-head h3 {
  font-family: var(--display); font-size: clamp(26px, 3vw, 34px);
  font-weight: 600; letter-spacing: -0.03em; line-height: 1.06; color: var(--ink);
}
.tpl-cat-head p { color: var(--ink-soft); font-size: 15px; line-height: 1.65; max-width: 64ch; }

.tpl-grid {
  margin-top: 34px;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(258px, 1fr));
  gap: 26px;
}
/* Double bezel: the card is a tray, the preview sits inside it like glass. */
.tpl-card {
  min-width: 0; padding: 10px;
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background: linear-gradient(180deg, #fff, #fdfbf8);
  box-shadow: var(--shadow-sm);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
}
.tpl-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
}
.tpl-thumb {
  display: block; height: 292px; overflow: hidden; position: relative;
  border-radius: calc(var(--r-lg) - 10px);
  background: #fff; border: 1px solid var(--line);
}
.tpl-thumb::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 58px;
  background: linear-gradient(rgba(255, 255, 255, 0), #fff);
  pointer-events: none;
}
.tpl-thumb iframe {
  width: 794px; height: 1123px; border: 0; display: block;
  transform: scale(0.42); transform-origin: top left; pointer-events: none;
}
.tpl-meta { padding: 16px 10px 8px; }
.tpl-meta .t-group {
  font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); font-weight: 700; margin-bottom: 6px;
}
.tpl-meta .t-name { font-family: var(--display); font-weight: 600; font-size: 19px; letter-spacing: -0.02em; }
.tpl-meta .t-desc { font-size: 13px; color: var(--ink-soft); margin-top: 7px; line-height: 1.55; }

/* Legacy showcase cards, kept in step with the new surfaces */
.sc-card {
  position: relative; border-radius: var(--r-md); overflow: hidden;
  border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow-sm);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.sc-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.sc-thumb { position: relative; overflow: hidden; background: #fff; border-bottom: 1px solid var(--line); }
.sc-cap { padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; }
.sc-cap .n { font-family: var(--display); font-size: 16px; font-weight: 600; }
.sc-cap .g { font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); font-weight: 700; }
.sc-card .sc-go { position: absolute; inset: 0; z-index: 2; }

/* ---------- FAQ ---------- */
.faq { margin-top: 26px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 18px;
  padding: 20px 2px; font-size: 17px; font-weight: 600; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; color: var(--accent); font-weight: 400; font-size: 22px; line-height: 1;
}
.faq details[open] summary::after { content: '\2212'; }
.faq details p { padding: 0 2px 20px; color: var(--ink-soft); font-size: 15.5px; line-height: 1.7; max-width: 66ch; }

/* ---------- Guide ---------- */
.guide-block { margin-top: 52px; border-top: 1px solid var(--line); padding-top: 26px; }
.guide-block h3 {
  font-family: var(--display); font-size: clamp(24px, 2.8vw, 30px);
  font-weight: 600; letter-spacing: -0.03em; line-height: 1.12; margin-bottom: 16px;
}
.guide-block p { color: var(--ink-soft); font-size: 16.5px; line-height: 1.72; margin-bottom: 16px; max-width: 64ch; }
.guide-links { margin: 12px 0 0; padding-left: 20px; }
.guide-links li { margin-bottom: 8px; font-size: 15.5px; }
.guide-links a { color: var(--ink); border-bottom: 1px solid var(--line-strong); }
.guide-links a:hover { color: var(--accent); border-color: var(--accent); text-decoration: none; }
.guide-cta {
  margin-top: 56px; padding: 32px 34px;
  background: var(--wash); border: 1px solid var(--line); border-radius: var(--r-lg);
  display: flex; align-items: center; justify-content: space-between; gap: 22px; flex-wrap: wrap;
}
.guide-cta p { font-family: var(--display); font-size: 21px; font-weight: 600; letter-spacing: -0.02em; }

/* ---------- Blog body ---------- */
.post-body { margin-top: 30px; }
.post-body p { color: var(--ink-soft); font-size: 17.5px; line-height: 1.78; margin-bottom: 20px; }
.post-body h3 {
  font-family: var(--display); font-size: 26px; font-weight: 600;
  letter-spacing: -0.028em; margin: 40px 0 14px; color: var(--ink);
}
.post-body ul { margin: 0 0 20px 22px; color: var(--ink-soft); font-size: 17px; line-height: 1.75; }
.post-body li { margin-bottom: 9px; }

/* ---------- Cards and forms ---------- */
.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 36px;
  box-shadow: var(--shadow-sm);
}
.form-title {
  font-family: var(--display); font-size: 29px; font-weight: 600;
  letter-spacing: -0.03em; margin-bottom: 24px;
}
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 7px; color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%; padding: 11px 14px; font-size: 15px; font-family: var(--sans);
  border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  color: var(--ink); background: #fff;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(138, 75, 42, .12);
}
.field .hint { font-size: 12.5px; color: var(--ink-faint); margin-top: 6px; }
.flash {
  padding: 13px 17px; border-radius: var(--r-sm); font-size: 14px; margin-bottom: 22px;
  border: 1px solid var(--line);
}
.flash.ok { background: var(--accent-wash); color: var(--accent-dark); border-color: #e4d2c5; }
.flash.err { background: #fbf1f0; color: var(--danger); border-color: #eed7d4; }

/* ---------- Dashboard ---------- */
.cv-list { margin: 32px 0 80px; display: grid; gap: 12px; }
.cv-item {
  display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 18px 22px; background: var(--card);
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease), transform .25s var(--ease);
}
.cv-item:hover { border-color: var(--line-strong); box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.cv-item .cv-t { font-family: var(--display); font-weight: 600; font-size: 18px; letter-spacing: -0.02em; }
.cv-item .cv-m { font-size: 12.5px; color: var(--ink-faint); margin-top: 4px; }
.cv-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.badge {
  display: inline-block; padding: 4px 10px; border-radius: 6px;
  font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}
.badge.paid { background: var(--accent-wash); color: var(--accent-dark); }
.badge.unpaid { background: var(--wash-deep); color: var(--ink-soft); }
.badge.awaiting { background: #f6efdc; color: #7d6423; }
.admin-choice {
  display: inline-block; background: var(--ink); color: var(--paper);
  font-size: 9.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 5px; margin-left: 6px; vertical-align: middle;
}
.sc-cap .admin-choice { margin-left: 0; }

/* ---------- Tables (admin) ---------- */
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; background: var(--card); min-width: 560px; }
.tbl th {
  text-align: left; font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-faint); padding: 11px 12px; border-bottom: 1px solid var(--line);
}
.tbl td { padding: 13px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.adm-card { overflow-x: auto; }

.empty { text-align: center; padding: 80px 20px; color: var(--ink-faint); }
.empty .big { font-family: var(--display); font-size: 25px; font-weight: 600; color: var(--ink-soft); margin-bottom: 10px; }

/* ---------- Generic blocks kept from earlier layouts ---------- */
.steps { margin-top: 48px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 40px; }
.step .n { font-family: var(--display); font-size: 42px; color: var(--accent); line-height: 1; }
.step h3 { margin-top: 12px; font-size: 18px; }
.step p { margin-top: 8px; color: var(--ink-soft); font-size: 14.5px; }
.aud-grid { margin-top: 44px; display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.aud-grid-3 { grid-template-columns: repeat(3, 1fr); }
.aud-grid-4 { grid-template-columns: repeat(4, 1fr); gap: 22px; }
.aud { padding: 32px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--card); }
.aud h3 { font-family: var(--display); font-size: 24px; font-weight: 600; letter-spacing: -0.025em; }
.aud p { margin-top: 12px; color: var(--ink-soft); font-size: 15px; }
@media (max-width: 900px) { .aud-grid-3 { grid-template-columns: 1fr; } .aud-grid-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) { .aud-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .aud-grid-4 { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line); margin-top: var(--stack);
  padding: var(--sec-y) 0 calc(36px + env(safe-area-inset-bottom, 0px));
  background: var(--wash);
}
.site-footer .cols { display: flex; justify-content: space-between; gap: 48px; flex-wrap: wrap; }
.site-footer .cols > div { min-width: 0; }
.site-footer .about { flex: 1 1 320px; max-width: 46ch; color: var(--ink-soft); font-size: 14px; line-height: 1.68; }
.site-footer .links { flex: 0 1 auto; min-width: 180px; }
.site-footer .links-label {
  font-size: 10.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-faint); margin-bottom: 14px;
}
.site-footer .links a { display: block; color: var(--ink-soft); font-size: 14px; margin-bottom: 9px; }
.site-footer .links a:hover { color: var(--accent); text-decoration: none; }
.site-footer .brand { display: flex; align-items: center; gap: 9px; }
.site-footer .copy {
  margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line);
  font-size: 12.5px; color: var(--ink-faint);
}

/* ---------- Floating contact ---------- */
.wa-float {
  position: fixed;
  right: max(18px, env(safe-area-inset-right, 0px));
  bottom: max(18px, env(safe-area-inset-bottom, 0px));
  z-index: var(--z-float);
  width: 54px; height: 54px; border-radius: 50%;
  background: var(--ink); color: var(--paper);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 16px 34px -16px rgba(27, 24, 21, .75);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.wa-float:hover { transform: translateY(-3px) scale(1.04); background: #2c2620; box-shadow: 0 22px 44px -16px rgba(27, 24, 21, .6); }
.wa-float:active { transform: scale(.97); }
@media (max-width: 560px) { .wa-float { right: 14px; bottom: 14px; width: 50px; height: 50px; } }
@media print { .wa-float, .site-header { display: none; } }

/* ---------- Mobile ---------- */
@media (max-width: 860px) {
  .tpl-cat-head { grid-template-columns: 1fr; gap: 12px; }
}
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav {
    display: none;
    position: absolute; top: calc(100% + 10px); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: 14px; border: 1px solid var(--line); border-radius: var(--r-lg);
    background: rgba(255, 255, 255, .96);
    -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
    box-shadow: var(--shadow-md);
  }
  .nav.open { display: flex; }
  .nav a { display: block; width: 100%; padding: 12px 14px; font-size: 15.5px; border-radius: var(--r-sm); }
  .nav a.active::after { display: none; }
  .nav a.btn-primary { text-align: center; justify-content: center; margin: 8px 0 0; border-radius: var(--r-pill); }
}
@media (max-width: 640px) {
  :root { --hdr-h: 71px; }
  .site-header { padding: calc(9px + env(safe-area-inset-top, 0px)) 0 4px; }
  .site-header .inner { height: 58px; padding-left: 16px; }
  .brand { font-size: 19px; }
  .card { padding: 26px 22px; }
  .page-head { padding: 34px 0 8px; }
  .cv-item { padding: 16px 18px; }
  .guide-cta { padding: 24px 22px; }
  .guide-cta .btn { width: 100%; }
  .tpl-thumb { height: 264px; }
  /* iOS zooms into fields under 16px */
  .field input, .field select, .field textarea { font-size: 16px; padding: 12px 14px; }
  /* Comfortable touch targets */
  .btn { min-height: 46px; }
  .btn-small { min-height: 40px; }
  .tpl-filter button { min-height: 40px; }
  .faq summary, .fmt-faq summary { min-height: 52px; }
}

/* ---------- CV import ---------- */
.imp-wrap { padding-bottom: 8px; }
.imp-sections .imp-row:first-of-type { border-top: 0; }
.imp-form { margin-top: 8px; }
.imp-form input[type=file] {
  width: 100%; padding: 14px; border: 1px dashed var(--line-strong); border-radius: var(--r-md);
  background: var(--wash); font-size: 14px; cursor: pointer;
}
.imp-form input[type=file]:hover { border-color: var(--accent); }
.imp-or { display: flex; align-items: center; gap: 14px; margin: 22px 0; color: var(--ink-faint); font-size: 12px; text-transform: uppercase; letter-spacing: .14em; }
.imp-or:before, .imp-or:after { content: ''; flex: 1; height: 1px; background: var(--line); }
.imp-note { margin-top: 34px; padding-top: 24px; border-top: 1px solid var(--line); }
.imp-note h3 { font-family: var(--display); font-size: 21px; font-weight: 600; letter-spacing: -0.02em; }
.imp-note ul { margin: 16px 0 0; padding-left: 20px; }
.imp-note li { margin-bottom: 10px; color: var(--ink-soft); font-size: 15px; line-height: 1.62; }
.imp-note p { margin-top: 14px; color: var(--ink-faint); font-size: 14px; line-height: 1.6; }
.imp-review .card + .card { margin-top: 18px; }
.imp-h { font-family: var(--display); font-size: 21px; font-weight: 600; letter-spacing: -0.02em; }
.imp-sub { margin: 8px 0 20px; color: var(--ink-soft); font-size: 14.5px; }
.imp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.imp-row {
  display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; align-items: start;
  padding: 14px 0; border-top: 1px solid var(--line); cursor: pointer;
}
.imp-row input[type=checkbox] { width: 17px; height: 17px; margin-top: 10px; accent-color: var(--accent); }
.imp-row-body { min-width: 0; }
.imp-title {
  width: 100%; font-family: var(--display); font-size: 17px; font-weight: 600; letter-spacing: -0.02em;
  padding: 6px 9px; border: 1px solid transparent; border-radius: var(--r-sm); background: transparent; color: var(--ink);
}
.imp-title:hover { border-color: var(--line); background: #fff; }
.imp-title:focus { outline: none; border-color: var(--accent); background: #fff; box-shadow: 0 0 0 3px rgba(138,75,42,.12); }
.imp-meta { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0 0 9px; }
.imp-type, .imp-count {
  font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 999px;
}
.imp-type { background: var(--accent-wash); color: var(--accent-dark); }
.imp-count { background: var(--wash-deep); color: var(--ink-soft); }
.imp-sample { display: block; margin: 8px 0 0 9px; color: var(--ink-faint); font-size: 13px; line-height: 1.5; }
.imp-actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 26px; }
.imp-raw { margin-top: 30px; }
.imp-raw summary { cursor: pointer; font-size: 13.5px; color: var(--ink-soft); }
.imp-raw pre {
  margin-top: 14px; padding: 18px; max-height: 420px; overflow: auto;
  background: var(--wash); border: 1px solid var(--line); border-radius: var(--r-md);
  font-size: 12.5px; line-height: 1.6; white-space: pre-wrap; color: var(--ink-soft);
}
@media (max-width: 620px) {
  .imp-grid { grid-template-columns: 1fr; }
  .imp-actions .btn { width: 100%; }
}

/* ---------- Blog list ---------- */
.post-card { margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line); }
.post-card h3 { font-family: var(--display); font-size: clamp(21px, 2.4vw, 25px); font-weight: 600; letter-spacing: -0.028em; line-height: 1.16; }
.post-card h3 a { color: var(--ink); }
.post-card h3 a:hover { color: var(--accent); text-decoration: none; }
.post-card-excerpt { margin-top: 10px; color: var(--ink-soft); font-size: 16px; line-height: 1.68; max-width: 64ch; }
.post-card-date { margin-top: 8px; font-size: 12px; color: var(--ink-faint); letter-spacing: .04em; }

/* ---------- Gallery card actions ---------- */
.tpl-actions { margin-top: 14px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.tpl-preview-link { font-size: 13px; color: var(--ink-soft); border-bottom: 1px solid var(--line-strong); padding-bottom: 2px; }
.tpl-preview-link:hover { color: var(--accent); border-color: var(--accent); text-decoration: none; }

/* ---------- Dashboard extras ---------- */
.page-sub { color: var(--ink-soft); margin-top: 8px; font-size: 14.5px; }
.empty-action { margin-top: 22px; }
.cv-meta-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.inline-form { display: inline; }
.btn-pending { background: #f6efdc; color: #7d6423; border: 1px solid #e7d9b4; cursor: default; }
.btn-pending:hover { transform: none; box-shadow: none; background: #f6efdc; color: #7d6423; }

/* ---------- Pricing ---------- */
.price-card {
  margin-top: 40px; text-align: center; padding: clamp(32px, 5vw, 52px) clamp(22px, 4vw, 40px);
  background:
    radial-gradient(120% 90% at 50% 0%, var(--accent-wash) 0%, transparent 58%),
    var(--card);
}
.price-figure {
  font-family: var(--display); font-size: clamp(46px, 8vw, 62px);
  font-weight: 500; letter-spacing: -0.04em; line-height: 1;
}
.price-note { color: var(--ink-faint); margin-top: 10px; font-size: 12px; text-transform: uppercase; letter-spacing: .14em; font-weight: 600; }
.price-features { list-style: none; margin: 30px auto; max-width: 42ch; padding: 0; }
.price-features li {
  padding: 11px 0 11px 28px; position: relative; text-align: left;
  border-bottom: 1px solid var(--line); color: var(--ink-soft); font-size: 15px; line-height: 1.55;
}
.price-features li:last-child { border-bottom: 0; }
.price-features li::before {
  content: '\2713'; position: absolute; left: 4px; top: 11px;
  color: var(--accent); font-size: 13px; font-weight: 700;
}
.price-faq { margin-top: var(--stack); }
.price-q { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); }
.price-q h3 { font-family: var(--sans); font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.price-q p { margin-top: 9px; color: var(--ink-soft); font-size: 15.5px; line-height: 1.7; max-width: 64ch; }

/* ---------- Not found ---------- */
.nf {
  min-height: 62dvh; display: grid; place-items: center; text-align: center;
  padding: var(--sec-y) 0;
}
.nf-inner { max-width: 54ch; }
.nf-code {
  display: inline-block; font-family: var(--display); font-size: 13px; font-weight: 600;
  letter-spacing: .22em; color: var(--accent); text-transform: uppercase;
}
.nf h1 {
  margin: 18px 0 0; font-family: var(--display);
  font-size: clamp(38px, 6vw, 62px); line-height: 1.02; letter-spacing: -0.04em; font-weight: 500;
}
.nf p { margin: 18px auto 0; color: var(--ink-soft); font-size: 16.5px; line-height: 1.7; max-width: 48ch; }
.nf-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 30px; }
.nf-links { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); }
.nf-links-label {
  font-size: 10.5px; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--ink-faint);
}
.nf-links ul { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px; margin-top: 14px; padding: 0; }
.nf-links a { color: var(--ink); font-size: 14.5px; border-bottom: 1px solid var(--line-strong); padding-bottom: 2px; }
.nf-links a:hover { color: var(--accent); border-color: var(--accent); text-decoration: none; }

/* ---------- Print ---------- */
@media print {
  body { background: #fff; color: #000; }
  .site-footer, .tpl-filter, .nav, .nav-toggle, .skip-link, .guide-cta, .fmt-side, .fmt-cta { display: none !important; }
  .section, .fmt-page { padding: 0; }
  a { color: #000; text-decoration: underline; }
  .card, .cv-item, .tpl-card { box-shadow: none; border-color: #ccc; }
}

/* ============================================================
   Admissions service: landing page, request form, request page
   ============================================================ */
.svc-landing { background: var(--paper); }
.svc-hero { padding: var(--sec-y) 0 calc(var(--sec-y) * .7); background: linear-gradient(180deg, var(--wash), var(--paper)); }
.svc-hero h1 {
  max-width: 16ch; margin: 16px 0 0; font-family: var(--display);
  font-size: clamp(38px, 5.2vw, 64px); line-height: 1.0; letter-spacing: -0.042em; font-weight: 500;
}
.svc-hero-lead { max-width: 62ch; margin: 22px 0 0; font-size: 17px; line-height: 1.72; color: var(--ink-soft); }
.svc-hero-actions { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-top: 28px; }
.svc-hero-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line-strong); max-width: 760px; }
.svc-hero-facts strong { display: block; font-family: var(--display); font-size: 30px; font-weight: 600; letter-spacing: -0.03em; }
.svc-hero-facts span { display: block; margin-top: 6px; font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-faint); font-weight: 700; }

.svc-how, .svc-pricing, .svc-routes, .svc-faq-wrap { padding: var(--sec-y) 0; }
.svc-how { background: var(--wash); }
.svc-landing h2 { font-family: var(--display); font-size: clamp(28px, 3.4vw, 42px); line-height: 1.06; letter-spacing: -0.034em; font-weight: 500; }
.svc-sub { margin: 14px 0 0; color: var(--ink-soft); font-size: 16px; max-width: 62ch; }
.svc-steps-list { list-style: none; margin: 30px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 44px; }
.svc-steps-list li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; padding: 20px 0; border-top: 1px solid var(--line); }
.svc-steps-list span { font-family: var(--display); font-size: 14px; color: var(--ink-faint); padding-top: 3px; }
.svc-steps-list b { font-family: var(--display); font-size: 19px; font-weight: 600; letter-spacing: -0.02em; }
.svc-steps-list p { margin: 6px 0 0; color: var(--ink-soft); font-size: 14px; line-height: 1.64; }

.svc-price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(258px, 1fr)); gap: 16px; margin-top: 32px; }

/* Services as cards: no prices, so the card carries the weight instead */
.svc-offer-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 16px; margin-top: 34px;
}
.svc-offer-card {
  display: flex; flex-direction: column; min-height: 210px;
  padding: 26px; border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--card); box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.svc-offer-card:hover { transform: translateY(-4px); border-color: var(--line-strong); box-shadow: var(--shadow-md); }
.svc-offer-card.is-feature { background: linear-gradient(180deg, var(--accent-wash), var(--card) 62%); border-color: #e4d2c5; }
.svc-offer-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.svc-offer-n { font-family: var(--display); font-size: 13px; color: var(--ink-faint); letter-spacing: .06em; }
.svc-offer-tag {
  padding: 4px 10px; border-radius: var(--r-pill); background: var(--accent-wash); color: var(--accent-dark);
  font-size: 9.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap;
}
.svc-offer-card.is-feature .svc-offer-tag { background: #fff; }
.svc-offer-card h3 {
  font-family: var(--display); font-size: clamp(19px, 2vw, 23px); line-height: 1.16;
  letter-spacing: -0.025em; font-weight: 600;
}
.svc-offer-card p { margin: 12px 0 0; color: var(--ink-soft); font-size: 14px; line-height: 1.66; }
.svc-offer-price { margin-top: auto; padding-top: 18px; font-family: var(--display); font-size: 24px; font-weight: 600; letter-spacing: -0.025em; }
.svc-offer-price small { display: block; font-family: var(--sans); font-size: 11px; font-weight: 600; color: var(--ink-faint); letter-spacing: 0; }
.svc-offer-foot { margin-top: 26px; color: var(--ink-faint); font-size: 14px; line-height: 1.65; max-width: 62ch; }
@media (max-width: 620px) { .svc-offer-card { min-height: 0; padding: 22px; } }

/* Quantity, labelled plainly */
.svc-qty-wrap { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; }
.svc-qty-wrap span { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-faint); }
.svc-qty-wrap .svc-qty { margin-top: 0; }
.svc-price-card { padding: 26px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--card); box-shadow: var(--shadow-sm); }
.svc-price-card.is-feature { background: linear-gradient(180deg, var(--accent-wash), var(--card) 60%); border-color: #e4d2c5; }
.svc-price-card h3 { font-family: var(--display); font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.svc-price-figure { margin-top: 12px; font-family: var(--display); font-size: 34px; font-weight: 500; letter-spacing: -0.035em; }
.svc-price-figure span { font-family: var(--sans); font-size: 12px; font-weight: 600; color: var(--ink-faint); letter-spacing: 0; }
.svc-price-note { margin-top: 6px; font-size: 11.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--accent); font-weight: 700; }
.svc-price-card p { margin-top: 14px; color: var(--ink-soft); font-size: 14px; line-height: 1.64; }

.svc-routes { background: var(--wash-deep); }
.svc-routes-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 5vw, 60px); }
.svc-route h2 { margin-bottom: 4px; }
.svc-routes p { margin: 14px 0 0; color: var(--ink-soft); font-size: 15px; line-height: 1.72; max-width: 56ch; }
.svc-route-note { padding-left: 16px; border-left: 2px solid var(--accent); }

/* Countries as boxes: one flat alphabetical set, no continent headings */
.svc-where { margin-top: clamp(38px, 5vw, 62px); padding-top: clamp(28px, 4vw, 40px); border-top: 1px solid var(--line-strong); }
.svc-where-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 26px; }
.svc-where-head h3 { font-family: var(--display); font-size: clamp(24px, 3vw, 34px); font-weight: 600; letter-spacing: -0.032em; }
.svc-where-head p { margin: 0; color: var(--ink-faint); font-size: 13.5px; max-width: 46ch; }

.svc-where-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.svc-cbox {
  position: relative; display: block; padding: 16px 18px;
  border: 1px solid var(--line); border-radius: var(--r-md);
  background: var(--card); color: var(--ink); box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.svc-cbox b { display: block; font-family: var(--display); font-size: 17px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }
.svc-cbox small { display: block; margin-top: 6px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-faint); }
.svc-cbox.is-funded-only small, .svc-cbox.is-self-only small { color: var(--accent); }
.svc-cbox-go { position: absolute; right: 16px; top: 16px; color: var(--accent); opacity: 0; transform: translateX(-4px); transition: opacity .25s var(--ease), transform .25s var(--ease); }
a.svc-cbox:hover { transform: translateY(-3px); border-color: var(--line-strong); box-shadow: var(--shadow-md); text-decoration: none; }
a.svc-cbox:hover .svc-cbox-go { opacity: 1; transform: none; }
.svc-cbox.is-plain { background: var(--wash); box-shadow: none; }

@media (hover: none) { a.svc-cbox:hover { transform: none; } .svc-cbox-go { opacity: .5; transform: none; } }
@media (max-width: 820px) { .svc-routes-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .svc-where-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
  .svc-cbox { padding: 13px 14px; }
  .svc-cbox b { font-size: 15.5px; }
  .svc-cbox small { font-size: 10px; }
  .svc-cbox-go { display: none; }
}

.svc-cta { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 30px; align-items: center; margin-top: 48px; padding: 32px 34px; background: var(--wash); border: 1px solid var(--line); border-radius: var(--r-lg); }
.svc-cta h2 { font-size: clamp(24px, 2.6vw, 30px); }
.svc-cta p { margin-top: 8px; color: var(--ink-soft); font-size: 14.5px; }

/* Request form */
.svc-form { margin-top: 10px; }
.svc-step { padding: 26px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--card); margin-bottom: 18px; box-shadow: var(--shadow-sm); }
.svc-step-h { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.svc-step-h span { width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: var(--paper); display: grid; place-items: center; font-size: 13px; font-weight: 700; }
.svc-step-h h2 { font-family: var(--display); font-size: 22px; font-weight: 600; letter-spacing: -0.025em; }
.svc-help { color: var(--ink-faint); font-size: 13.5px; line-height: 1.6; margin-bottom: 16px; }
.svc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.svc-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 18px; }
.svc-pick { display: block; cursor: pointer; }
.svc-pick input { position: absolute; opacity: 0; }
.svc-pick span { display: block; padding: 16px 18px; border: 1px solid var(--line-strong); border-radius: var(--r-md); transition: border-color .2s var(--ease), background .2s var(--ease); }
.svc-pick b { display: block; font-size: 15px; }
.svc-pick small { display: block; margin-top: 4px; color: var(--ink-faint); font-size: 12.5px; line-height: 1.5; }
.svc-pick input:checked + span { border-color: var(--accent); background: var(--accent-wash); }
.svc-pick input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.svc-pick-locked span { opacity: .5; background: var(--wash); border-style: dashed; cursor: not-allowed; }

.svc-services { display: grid; gap: 10px; margin-bottom: 18px; }
.svc-item { display: grid; grid-template-columns: minmax(0, 1fr) 190px; gap: 16px; align-items: center; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--wash); }
.svc-item-main { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 12px; align-items: start; cursor: pointer; }
.svc-item-main input { width: 17px; height: 17px; margin-top: 2px; accent-color: var(--accent); }
.svc-item-main b { display: block; font-size: 15px; }
.svc-item-main small { display: block; margin-top: 4px; color: var(--ink-soft); font-size: 12.5px; line-height: 1.55; }
.svc-item-price { text-align: right; }
.svc-price { font-family: var(--display); font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.svc-per { font-family: var(--sans); font-size: 11px; color: var(--ink-faint); font-weight: 600; }
.svc-note { font-size: 10.5px; color: var(--accent); text-transform: uppercase; letter-spacing: .08em; font-weight: 700; margin-top: 3px; }
.svc-qty { width: 74px; margin-top: 8px; padding: 7px 9px; border: 1px solid var(--line-strong); border-radius: var(--r-sm); text-align: center; font: inherit; }
.svc-summary { position: sticky; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 22px; flex-wrap: wrap; padding: 20px 24px; background: var(--ink); color: var(--paper); border-radius: var(--r-lg); box-shadow: var(--shadow-md); }
.svc-summary-total, .svc-summary-now { display: flex; align-items: baseline; gap: 12px; }
.svc-summary-total span, .svc-summary-now span { font-size: 11.5px; text-transform: uppercase; letter-spacing: .1em; color: rgba(252, 250, 246, .6); }
.svc-summary-total strong { font-family: var(--display); font-size: 27px; font-weight: 600; }
.svc-summary-now strong { font-size: 15px; font-weight: 600; }
.svc-foot { margin-top: 14px; color: var(--ink-faint); font-size: 13px; }

/* Request page */
.svc-page .page-hero { margin-top: 6px; }
.svc-timeline { display: flex; gap: 6px; flex-wrap: wrap; margin: 6px 0 26px; }
.svc-tl { flex: 1 1 110px; }
.svc-tl span { display: block; height: 4px; border-radius: 3px; background: var(--line-strong); }
.svc-tl small { display: block; margin-top: 8px; font-size: 11px; color: var(--ink-faint); }
.svc-tl.done span { background: var(--accent); opacity: .5; }
.svc-tl.now span { background: var(--accent); }
.svc-tl.now small { color: var(--ink); font-weight: 700; }
.svc-cols { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 24px; align-items: start; }
.svc-card { margin-bottom: 18px; padding: 26px; }
.svc-card h2 { font-family: var(--display); font-size: 20px; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 8px; }
.svc-stage-h { margin: 20px 0 10px; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); }
.svc-doc { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.svc-doc-info b { font-size: 14.5px; }
.svc-doc-info small { display: block; margin-top: 3px; color: var(--ink-faint); font-size: 12.5px; }
.svc-opt { font-weight: 400; color: var(--ink-faint); font-size: 11px; }
.svc-doc.is-done { opacity: .72; }
.svc-tick { font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #1f8f4d; }
.svc-upload { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.svc-upload input[type=file] { max-width: 210px; font-size: 12.5px; }
.svc-upload-other { padding: 12px; background: var(--wash); border-radius: var(--r-md); }
.svc-upload-other input[type=text] { padding: 8px 10px; border: 1px solid var(--line-strong); border-radius: var(--r-sm); font: inherit; font-size: 13px; }
.svc-files { margin-top: 10px; }
.svc-file { padding: 10px 0; border-top: 1px solid var(--line); }
.svc-file small { display: block; margin-top: 3px; color: var(--ink-faint); font-size: 12px; }
.svc-file-out { display: flex; gap: 14px; align-items: center; }
.svc-thread { max-height: 380px; overflow: auto; margin-bottom: 16px; }
.svc-msg { padding: 12px 14px; border-radius: var(--r-md); margin-bottom: 10px; background: var(--wash); }
.svc-msg.from-admin { background: var(--accent-wash); }
.svc-msg-who { font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-faint); font-weight: 700; }
.svc-msg-body { margin-top: 6px; font-size: 14.5px; line-height: 1.6; }
.svc-reply textarea { width: 100%; padding: 11px 13px; border: 1px solid var(--line-strong); border-radius: var(--r-sm); font: inherit; font-size: 14.5px; margin-bottom: 10px; }
.svc-kv { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.svc-kv td { padding: 8px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.svc-kv td:first-child { color: var(--ink-faint); width: 42%; }
.svc-kv-total td { font-weight: 700; color: var(--ink); }
.svc-inv { padding: 10px 0; border-top: 1px solid var(--line); }
.svc-inv small { display: block; margin-top: 3px; color: var(--ink-faint); font-size: 12.5px; }
.svc-inv.is-paid b::after { content: ' · paid'; color: #1f8f4d; font-weight: 700; }

/* Dashboard blocks */
.dash-block { margin-top: 34px; }
.dash-block-h { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.dash-block-h h2 { font-family: var(--display); font-size: 24px; font-weight: 600; letter-spacing: -0.025em; }
.dash-empty { padding: 26px; border: 1px dashed var(--line-strong); border-radius: var(--r-lg); margin-top: 16px; background: var(--wash); }
.dash-empty b { font-family: var(--display); font-size: 18px; }
.dash-empty p { margin: 8px 0 16px; color: var(--ink-soft); font-size: 14.5px; line-height: 1.65; max-width: 62ch; }
.dash-empty .text-link { margin-left: 16px; }

@media (max-width: 1000px) { .svc-cols { grid-template-columns: 1fr; } }
@media (max-width: 860px) {
  .svc-steps-list { grid-template-columns: 1fr; }
  /* Facts read as label and value rows rather than three stacked blocks */
  .svc-hero-facts { grid-template-columns: 1fr; gap: 0; margin-top: 32px; padding-top: 6px; }
  .svc-hero-facts div {
    display: grid; grid-template-columns: 110px minmax(0, 1fr); align-items: center; gap: 14px;
    padding: 13px 0; border-bottom: 1px solid var(--line);
  }
  .svc-hero-facts strong { font-size: 23px; }
  .svc-hero-facts span { margin-top: 0; font-size: 10.5px; }
}
@media (max-width: 620px) {
  .svc-choices, .svc-grid { grid-template-columns: 1fr; }
  .svc-item { grid-template-columns: 1fr; }
  .svc-item-price { text-align: left; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
  .svc-qty { margin-top: 0; }
  .svc-summary { flex-direction: column; align-items: stretch; gap: 14px; position: static; }
  .svc-summary .btn { width: 100%; }
  .svc-cta { grid-template-columns: 1fr; }
  .svc-cta .btn { width: 100%; }
  .svc-step { padding: 20px 18px; }
}

/* Request page columns and the service checkbox */
.svc-main, .svc-side { min-width: 0; }
.svc-side { position: sticky; top: calc(var(--hdr-h) + 24px); }
.svc-check { width: 17px; height: 17px; accent-color: var(--accent); }
@media (max-width: 1000px) { .svc-side { position: static; } }

/* Manual bank payment block on a request */
.svc-pay { margin: 12px 0 18px; padding: 16px; border: 1px solid var(--line-strong); border-radius: var(--r-md); background: var(--wash); }
.svc-pay-ref { padding: 12px 14px; border-radius: var(--r-sm); background: var(--card); border: 1px solid var(--line); margin-bottom: 14px; }
.svc-pay-ref span { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); }
.svc-pay-ref code { display: block; margin-top: 5px; font-size: 16px; font-weight: 700; letter-spacing: .02em; color: var(--accent-dark); word-break: break-all; }
.svc-pay-ref small { display: block; margin-top: 6px; color: var(--ink-faint); font-size: 12px; line-height: 1.5; }
.svc-bank { padding: 12px 14px; border-radius: var(--r-sm); background: var(--card); border: 1px solid var(--line); margin-bottom: 10px; }
.svc-bank > b { display: block; font-size: 13.5px; margin-bottom: 6px; }
.svc-bank .svc-kv td { padding: 5px 0; font-size: 12.5px; }
.svc-bank code { font-size: 12.5px; word-break: break-all; }
.svc-bank-note { display: block; margin-top: 8px; color: var(--ink-faint); font-size: 12px; line-height: 1.5; }
.svc-reported { padding: 10px 12px; border-radius: var(--r-sm); background: #f6efdc; color: #7d6423; font-size: 12.5px; line-height: 1.5; margin-bottom: 12px; }
.svc-pay-form { display: grid; gap: 8px; }
.svc-pay-label { font-size: 12px; font-weight: 600; color: var(--ink-soft); }
.svc-pay-form input[type=file] { font-size: 12.5px; }
.svc-pay-form input[type=text] { padding: 9px 11px; border: 1px solid var(--line-strong); border-radius: var(--r-sm); font: inherit; font-size: 13px; }

/* Explains why both funding routes are closed */
.svc-lock {
  margin: -6px 0 18px; padding: 12px 14px; border-radius: var(--r-sm);
  background: #f6efdc; color: #7d6423; font-size: 13px; line-height: 1.6;
}
.svc-summary .btn[disabled] { opacity: .45; cursor: not-allowed; }

/* Quote acceptance, deliveries under review, application tracker */
.svc-quote-box {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 26px; align-items: center;
  margin: 0 0 24px; padding: 22px 26px; border-radius: var(--r-lg);
  background: linear-gradient(180deg, var(--accent-wash), var(--card) 70%); border: 1px solid #e4d2c5;
}
.svc-quote-box span { font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-dark); }
.svc-quote-box strong { display: block; margin-top: 6px; font-family: var(--display); font-size: 34px; font-weight: 600; letter-spacing: -0.035em; }
.svc-quote-box p { margin: 10px 0 0; color: var(--ink-soft); font-size: 13.5px; line-height: 1.6; max-width: 62ch; }
.svc-accepted-note { margin: 0 0 20px; color: var(--ink-faint); font-size: 13px; }
.svc-file-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.svc-delivery { padding: 14px 0; border-top: 1px solid var(--line); }
.svc-review { margin-top: 12px; display: grid; gap: 8px; }
.svc-review textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: var(--r-sm); font: inherit; font-size: 13.5px; }
.svc-review-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.svc-review-actions span { font-size: 12px; color: var(--ink-faint); }
.svc-review-done { margin-top: 10px; font-size: 12.5px; color: #1f8f4d; font-weight: 600; }
.svc-review-changes { margin-top: 10px; padding: 10px 12px; border-radius: var(--r-sm); background: #f6efdc; color: #7d6423; font-size: 12.5px; line-height: 1.55; }
.svc-apps { width: 100%; border-collapse: collapse; font-size: 13.5px; margin-top: 10px; }
.svc-apps th { text-align: left; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); padding: 8px 10px 8px 0; border-bottom: 1px solid var(--line); }
.svc-apps td { padding: 11px 10px 11px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.svc-apps small { color: var(--ink-faint); font-size: 12px; }
.svc-app-status { display: inline-block; padding: 3px 10px; border-radius: var(--r-pill); background: var(--wash-deep); font-size: 11px; font-weight: 700; letter-spacing: .05em; }
.svc-apps tr.is-offer .svc-app-status { background: #eaf5ee; color: #1f8f4d; }
.svc-apps tr.is-rejected .svc-app-status { background: #fbf1f0; color: var(--danger); }
.svc-apps tr.is-submitted .svc-app-status, .svc-apps tr.is-interview .svc-app-status { background: var(--accent-wash); color: var(--accent-dark); }
@media (max-width: 620px) {
  .svc-quote-box { grid-template-columns: 1fr; }
  .svc-quote-box .btn { width: 100%; }
  .svc-apps, .svc-apps tr, .svc-apps td { display: block; }
  .svc-apps th { display: none; }
  .svc-apps td { border: 0; padding: 3px 0; }
  .svc-apps tr { padding: 12px 0; border-bottom: 1px solid var(--line); }
}

/* Funding recommendation */
.svc-rec {
  display: inline-block; margin-left: 8px; padding: 3px 9px; border-radius: var(--r-pill);
  background: var(--accent-wash); color: var(--accent-dark);
  font-style: normal; font-size: 9.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  vertical-align: middle;
}
.svc-pick.is-onrequest span { border-style: dashed; }
.svc-lock.is-advice { background: var(--accent-wash); color: var(--accent-dark); }

/* ============================================================
   Country guides
   ============================================================ */
.cty { background: var(--paper); padding-bottom: 20px; }
.cty-shell { width: min(100% - (var(--gutter) * 2), var(--maxw)); }
.cty-head { padding: 26px 0 34px; border-bottom: 1px solid var(--line); }
.cty-head h1 {
  margin: 14px 0 0; max-width: 18ch; font-family: var(--display);
  font-size: clamp(36px, 5vw, 60px); line-height: 1.0; letter-spacing: -0.042em; font-weight: 500;
}
.cty-tagline { max-width: 64ch; margin: 16px 0 0; font-size: 17.5px; line-height: 1.6; color: var(--ink-soft); }
.cty-routes { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; align-items: center; }
.cty-route {
  padding: 6px 14px; border-radius: var(--r-pill); font-size: 12px; font-weight: 600;
  border: 1px solid var(--line-strong);
}
.cty-route.is-on { background: var(--accent-wash); color: var(--accent-dark); border-color: #e4d2c5; }
.cty-route.is-off { color: var(--ink-faint); border-style: dashed; }
.cty-route-note { font-size: 12.5px; color: var(--ink-faint); }

.cty-body { display: grid; grid-template-columns: minmax(0, 1fr) clamp(280px, 26vw, 330px); gap: clamp(32px, 5vw, 62px); padding: 40px 0 20px; align-items: start; }
.cty-main { min-width: 0; }
.cty-lead { margin: 0 0 18px; font-size: 17px; line-height: 1.74; color: var(--ink-soft); max-width: 70ch; }
.cty-block { margin-top: 46px; }
.cty-block h2 {
  margin-bottom: 16px; font-family: var(--display);
  font-size: clamp(23px, 2.7vw, 30px); line-height: 1.14; letter-spacing: -0.03em; font-weight: 600;
}
.cty-block p { margin: 0 0 15px; font-size: 16px; line-height: 1.74; color: var(--ink-soft); max-width: 70ch; }
.cty-note { font-size: 13.5px; color: var(--ink-faint); }

.cty-snapshot { width: 100%; border-collapse: collapse; }
.cty-snapshot th, .cty-snapshot td { padding: 13px 0; border-bottom: 1px solid var(--line); vertical-align: top; text-align: left; font-size: 15px; }
.cty-snapshot th { width: 34%; padding-right: 20px; font-weight: 600; color: var(--ink); }
.cty-snapshot td { color: var(--ink-soft); }

.cty-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.cty-list li { position: relative; padding: 12px 0 12px 22px; border-bottom: 1px solid var(--line); font-size: 15.5px; line-height: 1.62; color: var(--ink-soft); }
.cty-list li::before { content: '—'; position: absolute; left: 0; color: var(--accent); }

.cty-sup { padding: 24px 26px; background: var(--wash); border-radius: var(--r-lg); border: 1px solid var(--line); }
.cty-sup h2 { margin-bottom: 8px; }
.cty-sup-level { font-family: var(--display); font-size: 18px; font-weight: 600; color: var(--ink) !important; letter-spacing: -0.02em; }

.cty-cal { border-top: 1px solid var(--line-strong); }
.cty-cal-row { display: grid; grid-template-columns: 1.1fr 1fr 1.2fr 1fr; gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--ink-soft); }
.cty-cal-intake { font-weight: 700; color: var(--ink); }
.cty-cal-row span { display: block; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 4px; font-weight: 700; }

.cty-funding { display: grid; gap: 12px; }
.cty-fund { padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--card); }
.cty-fund b { display: block; font-size: 15px; }
.cty-fund p { margin: 6px 0 0 !important; font-size: 14px; }

.cty-two { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; }
.cty-check, .cty-cross { margin: 0; padding: 0; list-style: none; }
.cty-check li, .cty-cross li { position: relative; padding: 10px 0 10px 26px; border-bottom: 1px solid var(--line); font-size: 14.5px; line-height: 1.55; color: var(--ink-soft); }
.cty-check li::before { content: '✓'; position: absolute; left: 2px; color: #1f8f4d; font-weight: 700; font-size: 13px; }
.cty-cross li::before { content: '×'; position: absolute; left: 5px; color: var(--danger); font-weight: 700; font-size: 15px; }

.cty-links { margin: 0 0 14px; padding: 0; list-style: none; }
.cty-links li { padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.cty-links a { color: var(--ink); border-bottom: 1px solid var(--line-strong); }
.cty-links a:hover { color: var(--accent); border-color: var(--accent); text-decoration: none; }

.cty-side { position: sticky; top: calc(var(--hdr-h) + 24px); display: grid; gap: 16px; min-width: 0; }
.cty-card { padding: 22px; }
.cty-card h3 { font-family: var(--display); font-size: 18px; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 14px; }
.cty-tags { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 7px; }
.cty-tags li { padding: 6px 11px; border-radius: var(--r-pill); background: var(--wash); border: 1px solid var(--line); font-size: 12.5px; color: var(--ink-soft); }
.cty-cta-card { background: linear-gradient(180deg, var(--accent-wash), var(--card) 65%); border-color: #e4d2c5; }
.cty-cta-card p { font-size: 13.5px; line-height: 1.6; color: var(--ink-soft); margin-bottom: 16px; }
.cty-cta-card .btn { width: 100%; margin-bottom: 12px; }
.cty-others { display: flex; flex-wrap: wrap; gap: 6px; }
.cty-others a { padding: 5px 11px; border-radius: var(--r-pill); border: 1px solid var(--line); font-size: 12.5px; color: var(--ink-soft); }
.cty-others a:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }

/* Country names on the service page become links */
.svc-country a { color: inherit; }
.svc-country a:hover { color: var(--accent); text-decoration: none; }

@media (max-width: 1000px) {
  .cty-body { grid-template-columns: 1fr; gap: 34px; }
  .cty-side { position: static; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
}
@media (max-width: 720px) {
  .cty-cal-row { grid-template-columns: 1fr 1fr; gap: 12px 16px; }
  .cty-cal-intake { grid-column: 1 / -1; }
  .cty-two { grid-template-columns: 1fr; gap: 12px; }
  .cty-snapshot th, .cty-snapshot td { display: block; width: auto; padding: 4px 0; border: 0; }
  .cty-snapshot tr { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .cty-snapshot th { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-faint); }
  .cty-head h1 { font-size: clamp(30px, 8.5vw, 40px); }
  .cty-sup { padding: 20px 18px; }
}
.cty-docs li::before { content: '›'; font-size: 16px; line-height: 1; }
.cty-route-work { background: var(--wash-deep); color: var(--ink-soft); }

/* ============================================================
   Aggregated positions
   ============================================================ */
.pos { background: var(--paper); padding-bottom: 30px; }
.pos .page-hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 34px; align-items: end; padding-bottom: 26px; }
.pos .page-hero h1 { font-size: clamp(30px, 4vw, 46px); max-width: 14ch; line-height: 1.02; }
.pos .page-hero .section-sub { font-size: 14.5px; line-height: 1.68; max-width: 60ch; }

.pos-search { display: flex; gap: 10px; margin: 6px 0 18px; flex-wrap: wrap; }
.pos-search input[type=search] {
  flex: 1; min-width: 240px; padding: 12px 18px; border: 1px solid var(--line-strong);
  border-radius: var(--r-pill); font: inherit; font-size: 14.5px; background: var(--card);
}

/* Filters: quiet rows, a dropdown for the long country list */
.pos-filters { display: grid; gap: 8px; padding: 14px 0 16px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pos-filter-row { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.pos-filter-row > span { flex: 0 0 62px; font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); }
.pos-chip {
  padding: 4px 11px; border-radius: var(--r-pill); border: 1px solid var(--line);
  font-size: 12px; color: var(--ink-soft); background: transparent; font-family: inherit; cursor: pointer;
}
.pos-chip b { font-weight: 600; color: var(--ink-faint); margin-left: 4px; font-size: 11px; }
.pos-chip:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.pos-chip.is-on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.pos-chip.is-on b { color: rgba(252, 250, 246, .6); }
.pos-chip.is-extra { display: none; }
.pos-more { color: var(--accent); border-style: dashed; }
.pos-select-form { display: inline-flex; gap: 8px; align-items: center; }
.pos-select-form select {
  padding: 5px 30px 5px 12px; border: 1px solid var(--line-strong); border-radius: var(--r-pill);
  font: inherit; font-size: 12.5px; background: var(--card); color: var(--ink-soft); max-width: 260px;
}
.pos-clear { font-size: 12px; color: var(--accent); }
.pos-count { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin: 20px 0 14px; font-size: 13.5px; color: var(--ink-faint); }
.pos-count strong { font-family: var(--display); font-size: 19px; font-weight: 600; color: var(--ink); }

/* Cards: equal height, titles clamped so a long one does not distort the row */
.pos-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.pos-card {
  display: flex; flex-direction: column; min-height: 196px; padding: 18px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.pos-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.pos-card.is-featured { background: linear-gradient(180deg, var(--accent-wash), var(--card) 60%); border-color: #e4d2c5; }
.pos-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.pos-level {
  padding: 3px 9px; border-radius: var(--r-pill); background: var(--wash-deep);
  font-size: 9px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); white-space: nowrap;
}
.pos-level-alt { background: transparent; border: 1px solid var(--line); }
.pos-deadline { font-size: 10.5px; font-weight: 700; letter-spacing: .03em; color: var(--ink-faint); white-space: nowrap; }
.pos-deadline.is-soon { color: var(--accent); }
.pos-deadline.is-closed { color: var(--danger); }
.pos-card h2 {
  font-family: var(--display); font-size: 16px; line-height: 1.28; letter-spacing: -0.015em; font-weight: 600;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.pos-card h2 a { color: var(--ink); }
.pos-card h2 a:hover { color: var(--accent); text-decoration: none; }
.pos-meta { margin-top: 7px; font-size: 12.5px; color: var(--ink-soft); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pos-meta span { display: block; color: var(--ink-faint); font-size: 12px; margin-top: 2px; }
.pos-field { margin-top: 7px; font-size: 11.5px; color: var(--ink-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pos-card-foot { display: flex; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 12px; font-size: 11px; color: var(--ink-faint); }
.pos-pager { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 26px; font-size: 13px; color: var(--ink-faint); }
.pos-note { margin-top: 24px; font-size: 12px; color: var(--ink-faint); line-height: 1.6; max-width: 76ch; }
.pos-empty { padding: 24px; border: 1px dashed var(--line-strong); border-radius: var(--r-lg); background: var(--wash); }
.pos-empty b { font-family: var(--display); font-size: 17px; }
.pos-empty p { margin: 8px 0 0; color: var(--ink-soft); font-size: 13.5px; line-height: 1.6; max-width: 66ch; }

/* Single position */
.pos-single { padding-bottom: 20px; }
.pos-single-grid { display: grid; grid-template-columns: minmax(0, 1fr) clamp(270px, 25vw, 320px); gap: clamp(28px, 4vw, 54px); align-items: start; padding-top: 26px; }
.pos-single-head h1 { margin: 14px 0 0; font-family: var(--display); font-size: clamp(27px, 3.6vw, 40px); line-height: 1.08; letter-spacing: -0.032em; font-weight: 500; max-width: 24ch; }
.pos-single-org { margin: 12px 0 0; font-size: 16px; color: var(--ink-soft); }
.pos-block { margin-top: 34px; }
.pos-block h2 { margin-bottom: 14px; font-family: var(--display); font-size: 21px; font-weight: 600; letter-spacing: -0.022em; }
.pos-excerpt { font-size: 15.5px; line-height: 1.7; color: var(--ink-soft); padding-left: 16px; border-left: 2px solid var(--line-strong); max-width: 70ch; }
.pos-apply { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 30px; padding: 22px; background: var(--wash); border: 1px solid var(--line); border-radius: var(--r-lg); }
.pos-apply span { font-size: 13px; color: var(--ink-faint); max-width: 40ch; }
.pos-side { position: sticky; top: calc(var(--hdr-h) + 24px); display: grid; gap: 16px; min-width: 0; }
.pos-side .cty-card p { font-size: 13.5px; color: var(--ink-soft); line-height: 1.6; margin-bottom: 12px; }
.pos-related { display: grid; gap: 10px; }
.pos-related a { display: block; padding-bottom: 10px; border-bottom: 1px solid var(--line); color: var(--ink); }
.pos-related a:last-child { border-bottom: 0; padding-bottom: 0; }
.pos-related a:hover { color: var(--accent); text-decoration: none; }
.pos-related b { display: block; font-size: 13.5px; font-weight: 600; line-height: 1.35; }
.pos-related small { display: block; margin-top: 3px; font-size: 11.5px; color: var(--ink-faint); }

@media (max-width: 1000px) {
  .pos-single-grid { grid-template-columns: 1fr; }
  .pos-side { position: static; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
}
@media (max-width: 760px) {
  .pos .page-hero { grid-template-columns: 1fr; gap: 12px; padding-bottom: 18px; }
  .pos .page-hero h1 { max-width: none; }
  .pos-filter-row > span { flex: 0 0 100%; }
  .pos-filters { gap: 12px; }
  .pos-grid { grid-template-columns: 1fr; }
  .pos-card { min-height: 0; }
  .pos-select-form select { max-width: 100%; width: 100%; }
  .pos-apply { flex-direction: column; align-items: stretch; }
  .pos-apply .btn { width: 100%; }
}
