/* Residence Permits hub — page-scoped. Existing fonts and colour tokens only.
   No meander / Greek-key motif. No new typefaces. */
html body.wsite-page-residence-permits div.vd:not(#vd-x) .page-hero,
html body.wsite-page-residence-permits div.vd:not(#vd-x) .page-hero.gd-hero{
  background-color:var(--ink)!important;
  background-image:
    radial-gradient(70% 80% at 88% 8%,rgba(201,168,106,.14),transparent 58%),
    radial-gradient(55% 60% at 8% 92%,rgba(22,40,74,.9),transparent 60%),
    linear-gradient(165deg,var(--ink) 0%,var(--ink-2) 48%,var(--ink-3) 100%)!important;
  background-size:auto!important;
  background-repeat:no-repeat!important;
  align-items:flex-end;
  min-height:100svh;
  overflow:visible;
}
html body.c.wsite-page-residence-permits div.vd:not(#vd-x) section.page-hero::after,
html body.c.wsite-page-residence-permits div.vd:not(#vd-x) section.hero::after,
html body.c.wsite-page-residence-permits div.vd:not(#vd-x) .cta-band::before,
html body.c.wsite-page-residence-permits .site-footer::before{
  background:var(--gold-line)!important;
  background-image:none!important;
  height:1px!important;
  opacity:1!important;
}
html body.c.wsite-page-residence-permits div.vd:not(#vd-x) .navy::before{
  background:var(--gold-line)!important;
  background-image:none!important;
  height:1px!important;
  opacity:1!important;
}

.rp-hero-frame{
  position:relative;
  padding:16px 0 4px;
}
.rp-hero-frame::before,
.rp-hero-frame::after{
  content:"";
  position:absolute;
  left:0;right:0;
  height:1px;
  background:var(--gold-line);
  pointer-events:none;
}
.rp-hero-frame::before{top:0}
.rp-hero-frame::after{bottom:0}
.rp-hero-frame .wrap{
  position:relative;
  padding-left:28px;
}
.rp-hero-frame .wrap::before{
  content:"";
  position:absolute;
  left:0;top:0;bottom:0;
  width:1px;
  background:var(--gold-line);
  pointer-events:none;
}

.rp-crumbs{
  margin:0 0 18px;
}
.rp-crumbs ol{
  list-style:none;
  display:flex;
  flex-wrap:wrap;
  gap:.4em .55em;
  align-items:center;
  font-family:var(--sans);
  font-size:12px;
  font-weight:600;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:rgba(251,248,242,.62);
}
.rp-crumbs li{display:inline-flex;align-items:center;gap:.55em}
.rp-crumbs li:not(:last-child)::after{
  content:"";
  width:12px;height:1px;
  background:var(--gold-line);
}
.rp-crumbs a{color:var(--gold-soft);border-bottom:1px solid transparent}
.rp-crumbs a:hover{border-bottom-color:var(--gold)}
.rp-crumbs [aria-current="page"]{color:rgba(251,248,242,.88)}

/* Light-page crumbs (FIP / Digital Nomad back-link) */
.rp-crumbs.rp-crumbs-light ol{color:var(--muted)}
.rp-crumbs.rp-crumbs-light a{color:var(--ink)}
.rp-crumbs.rp-crumbs-light a:hover{color:var(--gold-deep);border-bottom-color:var(--gold)}
.rp-crumbs.rp-crumbs-light [aria-current="page"]{color:var(--ink)}
.rp-crumbs.rp-crumbs-light li:not(:last-child)::after{background:var(--line)}
.rp-back{
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin:0 0 18px;
  font-family:var(--sans);
  font-size:12.5px;
  font-weight:700;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--ink);
  border-bottom:1px solid var(--gold);
}
.rp-back:hover{color:var(--gold-deep)}

html body.wsite-page-residence-permits div.vd:not(#vd-x) .vd-gi{
  display:inline-block;
  margin:0 0 18px;
  padding:6px 12px;
  border:1px solid var(--gold-line);
  font-family:var(--sans);
  font-size:10.5px;
  font-weight:700;
  letter-spacing:.2em;
  text-transform:uppercase;
  color:var(--gold-soft);
}
html body.wsite-page-residence-permits .page-hero h1{
  max-width:18ch;
  font-size:clamp(46px,6.4vw,92px);
}
html body.wsite-page-residence-permits .page-hero h1 .nw{white-space:nowrap}
html body.wsite-page-residence-permits .page-hero h1 em{
  display:block;
  color:var(--gold-soft);
  font-weight:400;
  font-style:italic;
  letter-spacing:-.01em;
  margin-top:.08em;
}
html body.wsite-page-residence-permits .page-hero .lede{
  max-width:38em;
  font-size:18px;
  line-height:1.65;
}
html body.wsite-page-residence-permits .page-hero .actions{
  display:flex;
  flex-wrap:wrap;
  gap:14px;
  margin-top:32px;
}
html body.wsite-page-residence-permits .page-hero .meta{
  margin-top:28px;
  display:flex;
  flex-wrap:wrap;
  gap:10px 22px;
  font-size:13px;
  color:rgba(251,248,242,.72);
  letter-spacing:.04em;
}
html body.wsite-page-residence-permits .page-hero .meta span{
  display:inline-flex;
  align-items:center;
  gap:8px;
}
html body.wsite-page-residence-permits .page-hero .meta svg{color:var(--gold-soft);flex:none}

/* Intro */
.rp-intro .rp-rule-copy{
  max-width:44em;
  border-left:1px solid var(--gold);
  padding-left:28px;
}
.rp-intro p{
  font-size:19px;
  line-height:1.7;
  color:var(--text);
}
.rp-intro p + p{margin-top:1em;font-size:16.5px;color:var(--muted)}

/* Pathways: stacked legal folios, not a card grid */
.rp-paths .gh{margin-bottom:clamp(36px,5vw,64px)}
.rp-paths .gh h2{max-width:16ch}
.rp-folio{
  display:grid;
  grid-template-columns:minmax(0,1.4fr) minmax(220px,.7fr);
  gap:32px 56px;
  align-items:end;
  padding:clamp(36px,5vw,64px) 0;
  border-top:1px solid var(--gold-line);
  text-decoration:none;
  color:inherit;
  transition:background-color .4s var(--ease);
}
.rp-folio:last-of-type{border-bottom:1px solid var(--gold-line)}
a.rp-folio:hover,
a.rp-folio:focus-visible{
  background:linear-gradient(90deg,rgba(201,168,106,.06),transparent 70%);
}
.rp-folio .idx{
  font-family:var(--serif);
  font-style:italic;
  font-size:22px;
  color:var(--gold-deep);
  letter-spacing:.02em;
  margin-bottom:8px;
}
.rp-folio h3{
  font-size:clamp(32px,3.6vw,52px);
  font-weight:500;
  letter-spacing:-.02em;
  max-width:16ch;
}
.rp-folio .art{
  margin:10px 0 18px;
  font-family:var(--sans);
  font-size:11.5px;
  font-weight:700;
  letter-spacing:.18em;
  text-transform:uppercase;
  color:var(--gold-deep);
}
.rp-folio .blurb{
  max-width:38em;
  font-size:16.5px;
  line-height:1.7;
  color:var(--muted);
}
.rp-folio .go{
  margin-top:22px;
}
.rp-folio-fig{
  text-align:right;
  padding:8px 0 8px 24px;
  border-left:1px solid var(--gold-line);
  min-height:100%;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
}
.rp-folio-fig .fig{
  font-family:var(--serif);
  font-weight:500;
  font-size:clamp(42px,5.2vw,76px);
  line-height:.95;
  letter-spacing:-.03em;
  color:var(--ink);
  font-variant-numeric:lining-nums;
}
.rp-folio-fig .fig-cap{
  margin-top:12px;
  font-size:13.5px;
  line-height:1.5;
  color:var(--muted);
}
.rp-folio-facts{
  margin-top:22px;
  display:grid;
  gap:10px 28px;
  grid-template-columns:auto 1fr;
  font-size:14.5px;
  max-width:36em;
}
.rp-folio-facts dt{
  font-family:var(--sans);
  font-size:11px;
  font-weight:700;
  letter-spacing:.16em;
  text-transform:uppercase;
  color:var(--gold-deep);
  padding-top:3px;
}
.rp-folio-facts dd{color:var(--text);margin:0}

/* Legal schedule */
.rp-sched{
  background:var(--parch);
}
.rp-sched-head{margin-bottom:clamp(28px,4vw,48px)}
.rp-sched-kicker{
  font-family:var(--sans);
  font-size:11.5px;
  font-weight:700;
  letter-spacing:.24em;
  text-transform:uppercase;
  color:#7D5F28;
  margin-bottom:14px;
}
.rp-table-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch}
table.rp-schedule{
  width:100%;
  border-collapse:collapse;
  min-width:640px;
  background:var(--bone);
}
table.rp-schedule caption{
  text-align:left;
  font-family:var(--serif);
  font-style:italic;
  font-size:18px;
  color:var(--muted);
  padding:0 0 16px;
  caption-side:top;
}
table.rp-schedule th,
table.rp-schedule td{
  text-align:left;
  vertical-align:top;
  padding:20px 22px;
  border-bottom:1px solid var(--line);
}
table.rp-schedule thead th{
  background:var(--ink);
  color:var(--gold-soft);
  font-family:var(--sans);
  font-size:11.5px;
  font-weight:700;
  letter-spacing:.16em;
  text-transform:uppercase;
  border-bottom:1px solid var(--gold);
}
table.rp-schedule thead th:first-child{
  color:rgba(251,248,242,.7);
}
table.rp-schedule tbody th{
  font-family:var(--sans);
  font-size:12px;
  font-weight:700;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--ink);
  width:18%;
  background:rgba(243,236,223,.55);
  border-right:1px solid var(--line);
}
table.rp-schedule td{
  font-size:15.5px;
  line-height:1.55;
  color:var(--text);
}
table.rp-schedule td a{border-bottom:1px solid var(--gold)}
table.rp-schedule td a:hover{color:var(--gold-deep)}
.rp-fn{
  margin-top:18px;
  max-width:58em;
  font-size:13.5px;
  line-height:1.65;
  color:var(--muted);
}
.rp-fn a{color:var(--ink);border-bottom:1px solid var(--gold)}
.rp-fn a:hover{color:var(--gold-deep)}
.rp-fn + .rp-fn{margin-top:8px}

/* Which-permit guide */
.rp-fit{background:var(--bone)}
.rp-fit-box{
  border:1px solid var(--gold-line);
  background:var(--parch);
  padding:clamp(28px,4vw,48px);
  position:relative;
}
.rp-fit-box::before{
  content:"";
  position:absolute;
  left:20px;right:20px;top:8px;
  height:1px;
  background:var(--gold-line);
}
.rp-fit-box::after{
  content:"";
  position:absolute;
  left:20px;right:20px;bottom:8px;
  height:1px;
  background:var(--gold-line);
}
.rp-q{
  border:0;
  margin:0 0 28px;
  padding:0;
  min-width:0;
}
.rp-q legend{
  font-family:var(--serif);
  font-size:clamp(22px,2vw,28px);
  font-weight:600;
  color:var(--ink);
  margin-bottom:14px;
  padding:0;
}
.rp-q .q-num{
  display:inline-block;
  font-family:var(--serif);
  font-style:italic;
  font-weight:500;
  color:var(--gold-deep);
  margin-right:.4em;
}
.rp-opts{display:grid;gap:8px}
.rp-opt{
  display:grid;
  grid-template-columns:auto 1fr;
  gap:14px;
  align-items:flex-start;
  padding:14px 16px;
  background:var(--bone);
  border:1px solid var(--line);
  cursor:pointer;
  font-size:16px;
  line-height:1.5;
  color:var(--text);
}
.rp-opt:hover{border-color:var(--gold-line)}
.rp-opt:has(input:focus-visible){outline:2px solid var(--gold);outline-offset:2px}
.rp-opt:has(input:checked){
  border-color:var(--gold);
  box-shadow:inset 3px 0 0 var(--gold);
}
.rp-opt input{
  appearance:none;
  -webkit-appearance:none;
  width:16px;height:16px;
  margin:3px 0 0;
  border:1px solid var(--gold-deep);
  border-radius:50%;
  background:var(--bone);
  flex:none;
}
.rp-opt input:checked{
  background:var(--gold);
  box-shadow:inset 0 0 0 3px var(--bone);
}
.rp-fit-actions{display:flex;flex-wrap:wrap;gap:14px;align-items:center;margin-top:8px}
.rp-result{
  margin-top:28px;
  min-height:4.5em;
  padding:22px 24px;
  background:transparent;
  border-left:2px solid transparent;
  color:var(--text);
  font-size:16.5px;
  line-height:1.7;
}
.rp-result.is-on{
  background:var(--bone);
  border-left-color:var(--gold);
}
.rp-result strong{font-family:var(--serif);font-size:1.25em;font-weight:600;color:var(--ink);display:block;margin-bottom:.35em}
.rp-result .hedge{display:block;margin-top:.8em;font-size:14.5px;color:var(--muted)}
.rp-noscript{margin-top:18px;font-size:14.5px;color:var(--muted)}

html body.wsite-page-residence-permits .cta-band{
  padding:clamp(80px,9vw,120px) 0;
}
html body.wsite-page-residence-permits .cta-band h2{max-width:16ch}

.rp-sources{background:var(--bone)}
.rp-sources ol{
  list-style:decimal;
  padding-left:1.2em;
  max-width:58em;
  color:var(--text);
  font-size:15.5px;
  line-height:1.65;
}
.rp-sources li{margin:0 0 10px;padding-left:.3em}
.rp-sources a{color:var(--ink);border-bottom:1px solid var(--gold)}
.rp-sources a:hover{color:var(--gold-deep)}

@media (max-width:900px){
  html body.wsite-page-residence-permits div.vd:not(#vd-x) .page-hero,
  html body.wsite-page-residence-permits div.vd:not(#vd-x) .page-hero.gd-hero{
    min-height:0;
    display:block;
    padding:calc(var(--alert-h) + var(--header-h) + 36px) 0 56px;
  }
  .rp-hero-frame .wrap{padding-left:18px}
  .rp-folio{
    grid-template-columns:1fr;
    gap:18px;
  }
  .rp-folio-fig{
    text-align:left;
    padding:0 0 4px;
    border-left:0;
    border-top:1px solid var(--gold-line);
    padding-top:18px;
    order:-1;
  }
  .rp-folio-facts{grid-template-columns:1fr;gap:4px}
}
@media (max-width:600px){
  html body.wsite-page-residence-permits .page-hero h1{font-size:clamp(38px,10.4vw,58px)}
  .rp-intro .rp-rule-copy{padding-left:18px}
  .rp-fit-box{padding:22px 16px}
  .rp-opt{padding:12px 12px}
}

html body.wsite-page-residence-permits .vd-liab-sec{margin:0;padding:clamp(28px,4vw,48px) 0;background:var(--bone)}
html body.wsite-page-residence-permits .vd-liab{
  display:grid;grid-template-columns:220px 1fr;gap:12px 40px;padding:24px 28px;
  background:var(--parch);border-left:2px solid var(--gold);
}
html body.wsite-page-residence-permits .vd-liab-h{font-family:var(--serif);font-size:24px;font-weight:600;color:var(--ink);line-height:1.2}
html body.wsite-page-residence-permits .vd-liab-p{font-size:14.5px;color:var(--muted)}
@media (max-width:600px){
  html body.wsite-page-residence-permits .vd-liab{grid-template-columns:1fr;padding:20px}
}

/* —— Hub cover plate (CSS typography, no bitmap) —— */
.rp-cover-plate{
  margin-top:clamp(28px,4vw,48px);
  padding:22px 0 4px;
  border-top:1px solid var(--gold-line);
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:0;
}
.rp-cover-plate a,
.rp-cover-plate .rp-pl{
  display:block;
  padding:16px 18px 8px 0;
  border-right:1px solid var(--gold-line);
  color:rgba(251,248,242,.82);
  text-decoration:none;
  min-height:5.5em;
}
.rp-cover-plate > :last-child{border-right:0;padding-right:0}
.rp-cover-plate .n{
  font-family:var(--serif);
  font-style:italic;
  font-size:18px;
  color:var(--gold-soft);
  display:block;
  margin-bottom:6px;
}
.rp-cover-plate .l{
  font-family:var(--sans);
  font-size:12px;
  font-weight:700;
  letter-spacing:.16em;
  text-transform:uppercase;
  color:var(--bone);
  line-height:1.35;
}
.rp-cover-plate a:hover .l{color:var(--gold-soft)}
@media (max-width:900px){
  .rp-cover-plate{grid-template-columns:1fr 1fr;gap:0}
  .rp-cover-plate a,
  .rp-cover-plate .rp-pl{
    border-right:0;
    border-bottom:1px solid var(--gold-line);
    min-height:0;
    padding:14px 12px 14px 0;
  }
  .rp-cover-plate > :nth-child(odd){padding-right:16px}
}

/* 4-column schedule */
table.rp-schedule.cols-4{min-width:760px}
table.rp-schedule.cols-4 th,
table.rp-schedule.cols-4 td{padding:16px 14px}

/* —— Service pages —— */
html body.rp-svc div.vd:not(#vd-x) .page-hero,
html body.rp-svc div.vd:not(#vd-x) .page-hero.gd-hero{
  background-color:var(--ink)!important;
  background-image:
    radial-gradient(70% 80% at 92% 12%,rgba(201,168,106,.14),transparent 58%),
    linear-gradient(165deg,var(--ink) 0%,var(--ink-2) 52%,var(--ink-3) 100%)!important;
  background-size:auto!important;
  background-repeat:no-repeat!important;
  align-items:center;
  min-height:100svh;
  overflow:visible;
}
html body.c.rp-svc div.vd:not(#vd-x) section.page-hero::after,
html body.c.rp-svc div.vd:not(#vd-x) section.hero::after,
html body.c.rp-svc div.vd:not(#vd-x) .cta-band::before,
html body.c.rp-svc .site-footer::before,
html body.c.rp-svc div.vd:not(#vd-x) .navy::before{
  background:var(--gold-line)!important;
  background-image:none!important;
  height:1px!important;
  opacity:1!important;
}
.rp-svc-hero .rp-hero-grid{
  display:grid;
  grid-template-columns:minmax(0,1.25fr) minmax(240px,.75fr);
  gap:clamp(28px,5vw,72px);
  align-items:start;
}
html body.rp-svc .page-hero h1{
  max-width:13ch;
  font-size:clamp(34px,4.4vw,60px);
  line-height:1.04;
}
html body.rp-svc .page-hero h1 .rp-h1-run{
  display:block;
  margin-top:.22em;
  font-style:italic;
  font-weight:400;
  color:var(--gold-soft);
  font-size:.7em;
  max-width:18ch;
  line-height:1.18;
  letter-spacing:0;
}
html body.rp-svc .page-hero .lede{max-width:36em}
html body.rp-svc .page-hero .actions{
  display:flex;flex-wrap:wrap;gap:14px;margin-top:24px;
}
html body.rp-svc .page-hero .meta{
  margin-top:20px;display:flex;flex-wrap:wrap;gap:10px 22px;
  font-size:13px;color:rgba(251,248,242,.72);letter-spacing:.04em;
}
html body.rp-svc .page-hero .meta span{display:inline-flex;align-items:center;gap:8px}
html body.rp-svc .page-hero .meta svg{color:var(--gold-soft);flex:none}
html body.rp-svc div.vd:not(#vd-x) .vd-gi{
  display:inline-block;margin:0 0 18px;padding:6px 12px;
  border:1px solid var(--gold-line);font-family:var(--sans);
  font-size:10.5px;font-weight:700;letter-spacing:.2em;
  text-transform:uppercase;color:var(--gold-soft);
}

.rp-motif-frame{
  position:relative;
  margin:0 auto;
  width:min(100%,320px);
  aspect-ratio:1;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:24px;
}
.rp-motif-frame::before{
  content:"";
  position:absolute;inset:0;
  border:1px solid var(--gold-line);
  pointer-events:none;
}
.rp-motif-frame::after{
  content:"";
  position:absolute;inset:10px;
  border:1px solid rgba(201,168,106,.28);
  pointer-events:none;
}
.rp-motif{
  width:100%;height:auto;max-height:300px;
  overflow:visible;
  fill:none;
  stroke:#C9A86A;
  stroke-width:5;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.rp-motif .soft{stroke:rgba(201,168,106,.7);stroke-width:3.2}
.rp-motif .fill-quiet{fill:rgba(201,168,106,.08);stroke:#C9A86A}
.rp-motif .fill-gold{fill:rgba(201,168,106,.16);stroke:#C9A86A}
.rp-motif .solid{fill:#C9A86A;stroke:none}
@media (prefers-reduced-motion:no-preference){
  .rp-motif{animation:rp-fade .9s var(--ease) .12s both}
}
@keyframes rp-fade{from{opacity:0}to{opacity:1}}

.rp-steps{list-style:none;max-width:46em}
.rp-steps li{
  display:grid;
  grid-template-columns:auto 1fr;
  gap:8px 28px;
  padding:28px 0;
  border-top:1px solid var(--gold-line);
}
.rp-steps li:last-child{border-bottom:1px solid var(--gold-line)}
.rp-steps .n{
  font-family:var(--serif);font-style:italic;font-size:22px;
  color:var(--gold-deep);padding-top:.15em;
}
.rp-steps h3{font-size:clamp(26px,2.2vw,34px);margin:0 0 8px}
.rp-steps p{color:var(--muted);font-size:16.5px;line-height:1.7;margin:0}

.rp-need{
  max-width:42em;
  border-left:1px solid var(--gold);
  padding-left:28px;
}
.rp-need p{font-size:17.5px;line-height:1.75;color:var(--text)}
.rp-need p+p{margin-top:1em;color:var(--muted);font-size:16.5px}

.rp-brief{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  border-top:1px solid var(--gold-line);
}
.rp-brief div,
.rp-brief dl{
  padding:28px 28px 8px 0;
  border-right:1px solid var(--line);
  margin:0;
}
.rp-brief div:last-child,
.rp-brief dl:last-child{border-right:0;padding-right:0}
.rp-brief dt{
  font-family:var(--sans);font-size:11px;font-weight:700;
  letter-spacing:.16em;text-transform:uppercase;color:#5C4716;
  margin-bottom:10px;
}
.rp-brief dd{
  margin:0;
  font-family:var(--serif);font-size:clamp(26px,2.4vw,36px);
  line-height:1.15;color:var(--ink);font-weight:500;
}
.rp-brief .note{font-family:var(--sans);font-size:14.5px;color:var(--muted);margin-top:10px;line-height:1.55}

html body.rp-svc .vd-liab-sec{margin:0;padding:clamp(28px,4vw,48px) 0;background:var(--bone)}
html body.rp-svc .vd-liab{
  display:grid;grid-template-columns:220px 1fr;gap:12px 40px;
  padding:24px 28px;background:var(--parch);border-left:2px solid var(--gold);
}
html body.rp-svc .vd-liab-h{font-family:var(--serif);font-size:24px;font-weight:600;color:var(--ink);line-height:1.2}
html body.rp-svc .vd-liab-p{font-size:14.5px;color:var(--muted)}

@media (max-width:900px){
  html body.rp-svc div.vd:not(#vd-x) .page-hero,
  html body.rp-svc div.vd:not(#vd-x) .page-hero.gd-hero{
    min-height:0;display:block;
    padding:calc(var(--alert-h) + var(--header-h) + 32px) 0 52px;
  }
  .rp-svc-hero .rp-hero-grid{grid-template-columns:1fr;gap:28px}
  .rp-motif-frame{width:min(58%,260px);margin:8px 0 0;padding:18px}
  .rp-brief{grid-template-columns:1fr;border-top:0}
  .rp-brief div,
  .rp-brief dl{border-right:0;border-top:1px solid var(--gold-line);padding:22px 0}
}
@media (max-width:600px){
  html body.rp-svc .page-hero h1{font-size:clamp(34px,9.6vw,52px)}
  html body.rp-svc .vd-liab{grid-template-columns:1fr;padding:20px}
  .rp-need{padding-left:18px}
  .rp-steps li{grid-template-columns:1fr;gap:4px}
}

/* Instant visibility: no scroll-reveal fade/shift on these pages (no CLS, content readable immediately). */
html.motion body.wsite-page-residence-permits .reveal,
html.motion body.rp-svc .reveal,
html.motion body.wsite-page-residence-permits .reveal :is(.feature-grid>*,.points>*,.steps>li),
html.motion body.rp-svc .reveal :is(.feature-grid>*,.points>*,.steps>li){
  opacity:1!important;
  transform:none!important;
  transition:none!important;
}

/* Hub hero: title + four-route rail in the first viewport */
html body.wsite-page-residence-permits .rp-hero .rp-hero-grid{
  display:grid;
  grid-template-columns:minmax(0,1.25fr) minmax(240px,.7fr);
  gap:clamp(28px,5vw,80px);
  align-items:start;
}
html body.wsite-page-residence-permits .rp-cover-plate{
  margin-top:0;
  padding:8px 0 8px 32px;
  border-top:0;
  border-left:1px solid var(--gold-line);
  display:flex;
  flex-direction:column;
  gap:0;
  grid-template-columns:none;
}
html body.wsite-page-residence-permits .rp-cover-plate a,
html body.wsite-page-residence-permits .rp-cover-plate .rp-pl{
  display:block;
  padding:16px 0 14px;
  border-right:0;
  border-bottom:1px solid var(--gold-line);
  min-height:0;
}
html body.wsite-page-residence-permits .rp-cover-plate > :last-child{
  border-bottom:0;
  padding-right:0;
}
html body.wsite-page-residence-permits .page-hero h1{
  max-width:16ch;
  font-size:clamp(42px,5.8vw,86px);
  line-height:.98;
}
html body.wsite-page-residence-permits .page-hero .lede{max-width:36em}
html body.wsite-page-residence-permits div.vd:not(#vd-x) .vd-gi,
html body.rp-svc div.vd:not(#vd-x) .vd-gi{
  white-space:nowrap;
}

/* Softer in-hero text links (avoid harsh small-caps) */
html body.wsite-page-residence-permits .lede .text-link,
html body.rp-svc .page-hero .lede .text-link{
  text-transform:none;
  letter-spacing:0;
  font-weight:600;
}

@media (max-width:900px){
  html body.wsite-page-residence-permits .rp-hero .rp-hero-grid{
    grid-template-columns:1fr;
    gap:8px;
    align-items:stretch;
  }
  html body.wsite-page-residence-permits .rp-cover-plate{
    margin-top:28px;
    padding:18px 0 0;
    border-left:0;
    border-top:1px solid var(--gold-line);
    display:grid;
    grid-template-columns:1fr 1fr;
  }
  html body.wsite-page-residence-permits .rp-cover-plate a,
  html body.wsite-page-residence-permits .rp-cover-plate .rp-pl{
    border-bottom:1px solid var(--gold-line);
    padding:14px 16px 12px 0;
  }
  html body.wsite-page-residence-permits .rp-cover-plate > :nth-child(odd){padding-right:16px}
  html body.wsite-page-residence-permits .rp-cover-plate > :nth-child(n+3){border-bottom:0}
  html body.wsite-page-residence-permits div.vd:not(#vd-x) .page-hero,
  html body.wsite-page-residence-permits div.vd:not(#vd-x) .page-hero.gd-hero,
  html body.rp-svc div.vd:not(#vd-x) .page-hero,
  html body.rp-svc div.vd:not(#vd-x) .page-hero.gd-hero{
    min-height:0;
  }
  html body.wsite-page-residence-permits div.vd:not(#vd-x) .vd-gi,
  html body.rp-svc div.vd:not(#vd-x) .vd-gi{
    white-space:normal;
  }
}

/* Full-bleed typographic hero: page-hero is display:flex (row). Stretch the frame. */
html body.wsite-page-residence-permits div.vd:not(#vd-x) .page-hero,
html body.wsite-page-residence-permits div.vd:not(#vd-x) .page-hero.gd-hero,
html body.rp-svc div.vd:not(#vd-x) .page-hero,
html body.rp-svc div.vd:not(#vd-x) .page-hero.gd-hero{
  flex-direction:column;
  align-items:stretch;
  justify-content:flex-end;
}
html body.rp-svc div.vd:not(#vd-x) .page-hero,
html body.rp-svc div.vd:not(#vd-x) .page-hero.gd-hero{
  justify-content:center;
}
.rp-hero-frame{
  width:100%;
  max-width:none;
  flex:0 0 auto;
}
.rp-hero-frame .wrap,
html body.wsite-page-residence-permits .rp-hero .rp-hero-grid,
html body.rp-svc .rp-hero-grid{
  width:100%;
  max-width:var(--wrap,1240px);
}

html body.wsite-page-residence-permits div.vd:not(#vd-x) .gd-hero .wrap>.rp-hero-grid,
html body.rp-svc div.vd:not(#vd-x) .gd-hero .wrap>.rp-hero-grid,
html body.wsite-page-residence-permits div.vd:not(#vd-x) .page-hero .wrap>.rp-hero-grid,
html body.rp-svc div.vd:not(#vd-x) .page-hero .wrap>.rp-hero-grid{
  max-width:none!important;
  width:100%;
}
html body.wsite-page-residence-permits .page-hero .lede{max-width:36em}
html body.rp-svc .page-hero .lede{max-width:38em}

/* In-hero / intro text links must stay readable on navy and on cream */
html body.wsite-page-residence-permits .page-hero .lede .text-link,
html body.rp-svc .page-hero .lede .text-link{
  color:var(--gold-soft)!important;
  border-bottom:1px solid var(--gold)!important;
  text-transform:none!important;
  letter-spacing:0!important;
  font-weight:600!important;
  font-size:inherit!important;
}
html body.wsite-page-residence-permits .rp-intro .text-link,
html body.rp-svc .rp-need .text-link{
  text-transform:none!important;
  letter-spacing:.02em!important;
  font-weight:600!important;
}


/* —— Photo practice-style heroes (FIP, Digital Nomad, term-deposit) —— */
/* Match real-estate / golden-visa / property-management treatment: photographic
   cover, left navy gradient, cream/gold type, 680px desktop height via
   practice-hero-height.css. Keep the 1px gold hairline (no Greek-key). */

html body.rp-svc-photo.wsite-page-fip-permit-lawyers-greece div.vd:not(#vd-x){
  --vd-hero:image-set(url('/img/valmas-hero-fip-terrace-sea-2560.avif') type('image/avif'), url('/img/valmas-hero-fip-terrace-sea-2560.webp') type('image/webp'));
  --vd-hero-pos:48% 50%;
}
html body.rp-svc-photo.wsite-page-digital-nomad-lawyers-greece div.vd:not(#vd-x){
  --vd-hero:image-set(url('/img/valmas-hero-dn-athens-cafe-2560.avif') type('image/avif'), url('/img/valmas-hero-dn-athens-cafe-2560.webp') type('image/webp'));
  --vd-hero-pos:62% 48%;
}
html body.rp-svc-photo.wsite-page-golden-visa-term-deposit-lawyers div.vd:not(#vd-x){
  --vd-hero:image-set(url('/img/valmas-hero-bank-deposit-banking-hall-2560.avif') type('image/avif'), url('/img/valmas-hero-bank-deposit-banking-hall-2560.webp') type('image/webp'));
  --vd-hero-pos:center 48%;
}
@media (max-width:900px){
  html body.rp-svc-photo.wsite-page-fip-permit-lawyers-greece div.vd:not(#vd-x){
    --vd-hero:image-set(url('/img/valmas-hero-fip-terrace-sea-m1200.avif') type('image/avif'), url('/img/valmas-hero-fip-terrace-sea-m1200.webp') type('image/webp'));
  }
  html body.rp-svc-photo.wsite-page-digital-nomad-lawyers-greece div.vd:not(#vd-x){
    --vd-hero:image-set(url('/img/valmas-hero-dn-athens-cafe-m1200.avif') type('image/avif'), url('/img/valmas-hero-dn-athens-cafe-m1200.webp') type('image/webp'));
  }
  html body.rp-svc-photo.wsite-page-golden-visa-term-deposit-lawyers div.vd:not(#vd-x){
    --vd-hero:image-set(url('/img/valmas-hero-bank-deposit-banking-hall-m1200.avif') type('image/avif'), url('/img/valmas-hero-bank-deposit-banking-hall-m1200.webp') type('image/webp'));
  }
  html body.rp-svc-photo.wsite-page-golden-visa-term-deposit-lawyers div.vd:not(#vd-x) section.page-hero{background-position:70% center;}
}

html body.rp-svc-photo div.vd:not(#vd-x) section.page-hero{
  background-color:#0C182C !important;
  background-image:linear-gradient(90deg,rgba(12,24,44,.95) 0%,rgba(12,24,44,.9) 36%,rgba(12,24,44,.62) 54%,rgba(12,24,44,.2) 76%,rgba(12,24,44,.08) 100%),var(--vd-hero) !important;
  background-size:cover !important;
  background-repeat:no-repeat !important;
  background-position:var(--vd-hero-pos,center center) !important;
  background-attachment:scroll !important;
  color:#fff !important;
  min-height:0 !important;
  overflow:hidden;
  display:flex;
  flex-direction:column;
  justify-content:flex-start;
  align-items:stretch;
}
html body.rp-svc-photo div.vd:not(#vd-x) section.page-hero > .wrap{
  padding:104px 0 96px;
  width:100%;
  max-width:1120px;
}
html body.rp-svc-photo div.vd:not(#vd-x) section.page-hero .eyebrow{color:#E2CDA0 !important}
html body.rp-svc-photo div.vd:not(#vd-x) section.page-hero h1{
  color:#fff !important;
  font-size:clamp(34px, 4.2vw, 52px) !important;
  max-width:780px !important;
  letter-spacing:-0.01em !important;
  line-height:1.12 !important;
}
html body.rp-svc-photo div.vd:not(#vd-x) section.page-hero h1 .rp-h1-run{
  display:inline;
  margin-top:0;
  font-style:italic;
  font-weight:400;
  color:#E2CDA0;
  font-size:inherit;
  max-width:none;
  line-height:inherit;
  letter-spacing:inherit;
}
html body.rp-svc-photo div.vd:not(#vd-x) section.page-hero .lede{
  font-size:18px !important;
  color:rgba(255,255,255,.82) !important;
  max-width:600px !important;
  margin-top:22px !important;
}
html body.rp-svc-photo div.vd:not(#vd-x) section.page-hero .lede a{
  color:#E2CDA0 !important;
}
html body.rp-svc-photo div.vd:not(#vd-x) section.page-hero .actions{margin-top:34px}
html body.rp-svc-photo div.vd:not(#vd-x) section.page-hero .meta{
  margin-top:20px;
  color:rgba(251,248,242,.78);
}
html body.rp-svc-photo div.vd:not(#vd-x) section.page-hero .rp-crumbs,
html body.rp-svc-photo div.vd:not(#vd-x) section.page-hero .rp-crumbs a,
html body.rp-svc-photo div.vd:not(#vd-x) section.page-hero .rp-crumbs span{
  color:rgba(251,248,242,.86);
}
html body.rp-svc-photo div.vd:not(#vd-x) section.page-hero .rp-crumbs a:hover{color:#E2CDA0}
html body.rp-svc-photo div.vd:not(#vd-x) .vd-gi{
  display:inline-block;margin:0 0 16px;padding:6px 12px;
  border:1px solid var(--gold-line);font-family:var(--sans);
  font-size:10.5px;font-weight:700;letter-spacing:.2em;
  text-transform:uppercase;color:var(--gold-soft);
}

@media (max-width:700px){
  html body.rp-svc-photo div.vd:not(#vd-x) section.page-hero > .wrap{padding:72px 0 64px}
}
@media (max-width:900px){
  html body.rp-svc-photo div.vd:not(#vd-x) section.page-hero{
    min-height:0 !important;
    height:auto !important;
    max-height:none !important;
    /* 16:9 photo strip (heroes.css) + room below the sticky consult bar */
    padding-bottom:96px !important;
  }
  html body.rp-svc-photo div.vd:not(#vd-x) section.page-hero > .wrap{padding:0 0 8px}
  html body.rp-svc-photo div.vd:not(#vd-x) section.page-hero h1{font-size:clamp(30px,8.4vw,44px) !important}
  html body.rp-svc-photo div.vd:not(#vd-x) section.page-hero .lede{font-size:16px !important;max-width:none !important;margin-top:16px !important}
  html body.rp-svc-photo div.vd:not(#vd-x) section.page-hero .actions{margin-top:22px}
  html body.rp-svc-photo div.vd:not(#vd-x) section.page-hero .meta{display:none}
  html body.rp-svc-photo div.vd:not(#vd-x) section.page-hero .vd-gi{margin-bottom:12px}
}

/* Short landscape phones: compact like the other practice pages */
@media (orientation:landscape) and (max-height:500px) and (max-width:1024px){
  html body.rp-svc-photo div.vd:not(#vd-x) section.page-hero{min-height:0 !important;height:auto !important;max-height:none !important}
  html body.rp-svc-photo div.vd:not(#vd-x) section.page-hero > .wrap{padding:16px 0 20px !important}
  html body.rp-svc-photo div.vd:not(#vd-x) section.page-hero h1{font-size:26px !important;line-height:1.22 !important}
  html body.rp-svc-photo div.vd:not(#vd-x) section.page-hero .lede{font-size:15px !important;margin-top:8px !important;max-width:none !important}
  html body.rp-svc-photo div.vd:not(#vd-x) section.page-hero .actions{margin-top:12px !important}
}


/* Kill the html.cx default Athens-dusk ::before (270px mobile strip) and
   c-rise (opacity 0 + translateY, which causes CLS) on hub + service pages. */
html.cx body.wsite-page-residence-permits section.page-hero::before,
html.cx body.rp-svc section.page-hero::before{
  content:none !important;
  display:none !important;
  background:none !important;
  height:0 !important;
  width:0 !important;
}
html.cx body.wsite-page-residence-permits .page-hero .eyebrow,
html.cx body.wsite-page-residence-permits .page-hero h1,
html.cx body.wsite-page-residence-permits .page-hero .lede,
html.cx body.wsite-page-residence-permits .page-hero .actions,
html.cx body.rp-svc .page-hero .eyebrow,
html.cx body.rp-svc .page-hero h1,
html.cx body.rp-svc .page-hero .lede,
html.cx body.rp-svc .page-hero .actions{
  animation:none !important;
  opacity:1 !important;
  transform:none !important;
}


/* —— Guide box on service pages —— */
/* Framed like guides.html .gcard and areas.html .feature:
   white card, gold hairline, full 3:2 thumbnail on the left. */
html body.rp-svc .rp-guidebox,
.rp-guidebox{
  display:grid;
  grid-template-columns:minmax(240px,360px) minmax(0,1fr);
  gap:0;
  align-items:stretch;
  margin:40px 0 0;
  max-width:920px;
  background:#fff;
  border:1px solid #C9A86A;
  border-radius:0;
  overflow:hidden;
  box-sizing:border-box;
  position:relative;
}
html body.rp-svc .rp-guidebox::before,
.rp-guidebox::before{
  content:none !important;
  display:none !important;
}
html body.rp-svc .rp-guidebox-media,
.rp-guidebox-media{
  display:block;
  position:relative;
  z-index:0;
  margin:0;
  padding:0;
  min-width:0;
  width:auto;
  max-width:none;
  aspect-ratio:3/2;
  align-self:stretch;
  background:#0A1424;
  overflow:hidden;
}
html body.rp-svc .rp-guidebox-media picture,
.rp-guidebox-media picture{
  display:block;
  width:100%;
  height:100%;
  line-height:0;
}
html body.rp-svc .rp-guidebox-media img,
.rp-guidebox-media img{
  display:block !important;
  width:100% !important;
  height:100% !important;
  max-width:none !important;
  aspect-ratio:3/2;
  object-fit:cover !important;
  object-position:center center !important;
  vertical-align:top;
}
html body.rp-svc .rp-guidebox-body,
.rp-guidebox-body{
  position:relative;
  z-index:1;
  padding:28px 32px 26px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  min-width:0;
  background:#fff;
}
html body.rp-svc .rp-guidebox-body .eyebrow,
.rp-guidebox-body .eyebrow{
  margin:0 0 8px;
}
html body.rp-svc .rp-guidebox-body h3,
.rp-guidebox-body h3{
  margin:0 0 10px;
  font-family:var(--serif);
  font-size:26px;
  line-height:1.25;
  font-weight:500;
  letter-spacing:0;
  color:var(--ink, #0A1424);
  max-width:18em;
}
html body.rp-svc .rp-guidebox-lede,
.rp-guidebox-lede{
  margin:0;
  font-size:15px !important;
  line-height:1.6 !important;
  color:#4A5463 !important;
  max-width:36em;
}
html body.rp-svc .rp-guidebox-actions,
.rp-guidebox-actions{
  margin:18px 0 0;
  display:block;
}
html body.rp-svc .rp-guidebox-actions .text-link,
.rp-guidebox-actions .text-link{
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin-top:0;
  padding:0;
  font-size:inherit;
  font-weight:inherit;
  letter-spacing:inherit;
  text-transform:none;
  color:inherit;
  background:none !important;
  border:0 !important;
  border-bottom:1px solid var(--gold, #C9A86A) !important;
  transition:none;
}
html body.rp-svc .rp-guidebox-actions .text-link:hover,
.rp-guidebox-actions .text-link:hover{
  color:var(--gold-deep, #8A6A2F) !important;
  background:none !important;
  border-color:var(--gold, #C9A86A) !important;
}
.rp-guidebox-actions .text-link .ic{flex:none}
@media (max-width:800px){
  html body.rp-svc .rp-guidebox,
  .rp-guidebox{
    grid-template-columns:1fr;
    margin-top:32px;
  }
  html body.rp-svc .rp-guidebox-media,
  .rp-guidebox-media{
    width:100%;
    max-width:none;
    padding:0;
    aspect-ratio:3/2;
  }
  html body.rp-svc .rp-guidebox-body,
  .rp-guidebox-body{padding:22px 22px 24px}
  html body.rp-svc .rp-guidebox-body h3,
  .rp-guidebox-body h3{
    max-width:none;
    font-size:24px;
  }
  html body.rp-svc .rp-guidebox-lede,
  .rp-guidebox-lede{max-width:none}
}

/* —— Hub cover gold drawing (reserved right column, no type overlap) —— */
html body.wsite-page-residence-permits .rp-hero .rp-hero-grid{
  display:grid;
  grid-template-columns:minmax(0,1.08fr) minmax(280px,0.92fr);
  grid-template-areas:
    "copy art"
    "rail art";
  column-gap:clamp(32px,5vw,80px);
  row-gap:28px;
  align-items:end;
}
html body.wsite-page-residence-permits .rp-hero-copy{grid-area:copy;min-width:0}
html body.wsite-page-residence-permits .rp-hero-art{
  grid-area:art;
  color:var(--gold-soft, #E2CDA0);
  pointer-events:none;
  min-width:0;
  align-self:end;
}
html body.wsite-page-residence-permits .rp-hero-art svg{
  display:block;
  width:100%;
  height:auto;
  max-height:min(78vh,760px);
}
html body.wsite-page-residence-permits .rp-cover-plate{
  grid-area:rail;
  margin-top:0;
  padding:16px 0 0;
  border-top:1px solid var(--gold-line);
  border-left:0;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:0;
}
html body.wsite-page-residence-permits .rp-cover-plate a,
html body.wsite-page-residence-permits .rp-cover-plate .rp-pl{
  display:block;
  padding:12px 16px 12px 0;
  border-right:0;
  border-bottom:1px solid var(--gold-line);
  min-height:0;
}
html body.wsite-page-residence-permits .rp-cover-plate > :nth-child(odd){padding-right:20px}
html body.wsite-page-residence-permits .rp-cover-plate > :nth-child(n+3){border-bottom:0;padding-bottom:0}
html body.wsite-page-residence-permits .page-hero h1{max-width:16ch}
html body.wsite-page-residence-permits .page-hero .lede{max-width:34em}

@media (max-width:900px){
  html body.wsite-page-residence-permits .rp-hero .rp-hero-grid{
    grid-template-columns:1fr;
    grid-template-areas:
      "copy"
      "art"
      "rail";
    row-gap:22px;
    align-items:stretch;
  }
  html body.wsite-page-residence-permits .rp-hero-art{
    max-height:260px;
    overflow:hidden;
    margin:0;
  }
  html body.wsite-page-residence-permits .rp-hero-art svg{
    max-height:none;
    width:100%;
    height:auto;
    transform:translateY(-8%);
  }
  html body.wsite-page-residence-permits .rp-cover-plate{
    margin-top:0;
    padding:16px 0 0;
    border-left:0;
    border-top:1px solid var(--gold-line);
    display:grid;
    grid-template-columns:1fr 1fr;
  }
}
@media (max-width:480px){
  html body.wsite-page-residence-permits .rp-hero-art{max-height:220px}
}

/* —— Hub header: four routes in one desktop row; 2×2 on mobile —— */
html body.wsite-page-residence-permits .rp-hero .rp-hero-grid{
  grid-template-areas:
    "copy art"
    "rail rail";
  align-items:end;
}
html body.wsite-page-residence-permits .rp-cover-plate{
  grid-area:rail;
  display:grid !important;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:0;
  margin-top:0;
  padding:18px 0 0;
  border-top:1px solid var(--gold-line);
  border-left:0;
  flex-direction:unset;
}
html body.wsite-page-residence-permits .rp-cover-plate a,
html body.wsite-page-residence-permits .rp-cover-plate .rp-pl{
  display:block;
  padding:16px 22px 4px 0;
  border-right:1px solid var(--gold-line);
  border-bottom:0;
  min-height:0;
}
html body.wsite-page-residence-permits .rp-cover-plate > :nth-child(odd){padding-right:22px}
html body.wsite-page-residence-permits .rp-cover-plate > :nth-child(n+3){border-bottom:0;padding-bottom:4px}
html body.wsite-page-residence-permits .rp-cover-plate > :last-child{
  border-right:0;
  padding-right:0;
}
html body.wsite-page-residence-permits .rp-cover-plate .l{
  display:block;
  max-width:100%;
  overflow-wrap:anywhere;
}

@media (max-width:900px){
  html body.wsite-page-residence-permits .rp-hero .rp-hero-grid{
    grid-template-columns:1fr;
    grid-template-areas:
      "copy"
      "art"
      "rail";
  }
  html body.wsite-page-residence-permits .rp-cover-plate{
    display:grid !important;
    grid-template-columns:1fr 1fr;
    padding:16px 0 0;
    border-top:1px solid var(--gold-line);
    border-left:0;
  }
  html body.wsite-page-residence-permits .rp-cover-plate a,
  html body.wsite-page-residence-permits .rp-cover-plate .rp-pl{
    border-right:0;
    border-bottom:1px solid var(--gold-line);
    padding:14px 16px 14px 0;
  }
  html body.wsite-page-residence-permits .rp-cover-plate > :nth-child(odd){
    border-right:1px solid var(--gold-line);
    padding-right:16px;
  }
  html body.wsite-page-residence-permits .rp-cover-plate > :nth-child(even){padding-right:0}
  html body.wsite-page-residence-permits .rp-cover-plate > :nth-child(n+3){border-bottom:0;padding-bottom:0}
}

/* —— Hub body: match site section rhythm, cards, frames, eyebrows —— */
html body.wsite-page-residence-permits .vd-liab-sec{
  margin:0;
  padding:clamp(28px,4vw,48px) 0 clamp(8px,2vw,16px);
  background:var(--bone);
}
html body.wsite-page-residence-permits #in-short,
html body.wsite-page-residence-permits #routes,
html body.wsite-page-residence-permits #compare,
html body.wsite-page-residence-permits #which,
html body.wsite-page-residence-permits #sources{
  scroll-margin-top:calc(var(--alert-h, 36px) + var(--header-h, 78px) + 16px);
}

/* In short — ivory field + white gold-bar card, like guides .vd-answer (site fonts kept) */
html body.wsite-page-residence-permits .rp-intro.ivory{background:var(--parch, #F3ECDF)}
html body.wsite-page-residence-permits .rp-intro-card,
html body.wsite-page-residence-permits .rp-intro .rp-rule-copy{
  max-width:46em;
  background:#fff;
  border:1px solid var(--gold-line, #C9A86A);
  border-left:3px solid var(--gold, #C9A86A);
  padding:28px 32px 28px 30px;
  box-sizing:border-box;
}
html body.wsite-page-residence-permits .rp-intro .rp-rule-copy{
  border-left:3px solid var(--gold, #C9A86A);
  padding-left:30px;
}
html body.wsite-page-residence-permits .rp-intro p{
  font-family:var(--serif);
  font-size:20px;
  line-height:1.55;
  color:var(--ink);
  font-weight:500;
  margin:0;
}
html body.wsite-page-residence-permits .rp-intro p + p{
  margin-top:1em;
  font-family:var(--sans);
  font-size:16.5px;
  line-height:1.7;
  color:var(--muted);
  font-weight:400;
}

/* Pathways — 2×2 framed cards */
html body.wsite-page-residence-permits .rp-paths{background:var(--bone, #FBF8F2)}
html body.wsite-page-residence-permits .rp-paths .wrap{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:24px 28px;
  align-items:stretch;
}
html body.wsite-page-residence-permits .rp-paths .gh{
  grid-column:1 / -1;
  margin-bottom:12px;
}
html body.wsite-page-residence-permits .rp-paths .gh h2{max-width:16ch}
html body.wsite-page-residence-permits a.rp-folio,
html body.wsite-page-residence-permits .rp-folio{
  display:flex;
  flex-direction:column;
  gap:0;
  align-items:stretch;
  background:#fff;
  border:1px solid #E4DCCB;
  padding:32px 32px 28px;
  text-decoration:none;
  color:inherit;
  min-width:0;
  transition:border-color .3s var(--ease, ease), box-shadow .3s var(--ease, ease), background-color .3s;
}
html body.wsite-page-residence-permits a.rp-folio:last-of-type{border-bottom:1px solid #E4DCCB}
html body.wsite-page-residence-permits a.rp-folio:hover,
html body.wsite-page-residence-permits a.rp-folio:focus-visible{
  background:#fff;
  border-color:var(--gold, #C9A86A);
  box-shadow:0 1px 2px rgba(10,20,36,.04);
}
html body.wsite-page-residence-permits .rp-folio > div:first-child{min-width:0}
html body.wsite-page-residence-permits .rp-folio h3{
  font-size:clamp(26px,2.4vw,34px);
  max-width:14ch;
  letter-spacing:-.02em;
}
html body.wsite-page-residence-permits .rp-folio-fig{
  text-align:left;
  padding:18px 0 0;
  margin-top:22px;
  border-left:0;
  border-top:1px solid var(--gold-line, #C9A86A);
  min-height:0;
  justify-content:flex-start;
}
html body.wsite-page-residence-permits .rp-folio-fig .fig{
  font-size:clamp(34px,3.2vw,48px);
}
html body.wsite-page-residence-permits .rp-folio .go{margin-top:18px}

/* Comparison — standard head + framed schedule */
html body.wsite-page-residence-permits .rp-sched{background:var(--parch, #F3ECDF)}
html body.wsite-page-residence-permits .rp-sched-head{margin-bottom:clamp(28px,4vw,48px)}
html body.wsite-page-residence-permits .rp-table-wrap{
  background:#fff;
  border:1px solid #E4DCCB;
  overflow-x:auto;
  -webkit-overflow-scrolling:touch;
}
html body.wsite-page-residence-permits table.rp-schedule{background:#fff;min-width:760px}
html body.wsite-page-residence-permits table.rp-schedule caption{
  padding:18px 22px 8px;
}
html body.wsite-page-residence-permits .rp-fn{padding:0 2px}

/* Short guide — double gold hairline frame, like site cards */
html body.wsite-page-residence-permits .rp-fit{background:var(--bone, #FBF8F2)}
html body.wsite-page-residence-permits .rp-fit .lede{
  max-width:38em;
  margin:0 0 36px;
  color:var(--muted);
}
html body.wsite-page-residence-permits .rp-fit-box{
  background:#fff;
  border:1px solid var(--gold-line, #C9A86A);
  padding:clamp(28px,4vw,44px);
  position:relative;
}
html body.wsite-page-residence-permits .rp-fit-box::before,
html body.wsite-page-residence-permits .rp-fit-box::after{
  left:12px;right:12px;
  height:0;
  border-top:1px solid rgba(201,168,106,.45);
  background:none;
}
html body.wsite-page-residence-permits .rp-fit-box::before{top:8px}
html body.wsite-page-residence-permits .rp-fit-box::after{bottom:8px}
html body.wsite-page-residence-permits .rp-opt{
  background:var(--bone, #FBF8F2);
  border:1px solid #E4DCCB;
}

/* Official sources — ivory, gold index numbers */
html body.wsite-page-residence-permits .rp-sources.ivory{background:var(--parch, #F3ECDF)}
html body.wsite-page-residence-permits .rp-sources h2{margin-bottom:28px}
html body.wsite-page-residence-permits .rp-sources ol{
  list-style:none;
  padding:0;
  margin:0;
  max-width:58em;
  counter-reset:src;
  border-top:1px solid var(--gold-line, #C9A86A);
}
html body.wsite-page-residence-permits .rp-sources li{
  counter-increment:src;
  display:grid;
  grid-template-columns:2.4em 1fr;
  gap:12px;
  margin:0;
  padding:16px 0;
  border-bottom:1px solid #E6DCC9;
  font-size:15.5px;
  line-height:1.65;
  color:var(--text);
}
html body.wsite-page-residence-permits .rp-sources li::before{
  content:counter(src);
  font-family:var(--serif);
  font-style:italic;
  font-size:20px;
  color:var(--gold-deep, #8A6A2F);
  line-height:1.3;
}
html body.wsite-page-residence-permits .rp-sources a{color:var(--ink);border-bottom:1px solid var(--gold)}
html body.wsite-page-residence-permits .rp-sources a:hover{color:var(--gold-deep)}

@media (max-width:800px){
  html body.wsite-page-residence-permits .rp-paths .wrap{grid-template-columns:1fr;gap:18px}
  html body.wsite-page-residence-permits a.rp-folio,
  html body.wsite-page-residence-permits .rp-folio{padding:26px 22px 24px}
  html body.wsite-page-residence-permits .rp-intro .rp-rule-copy{padding:22px 20px 22px 20px}
}

/* Sources: keep links inline (don't grid the li's mixed children) */
html body.wsite-page-residence-permits .rp-sources ol{border-top:1px solid var(--gold-line, #C9A86A)}
html body.wsite-page-residence-permits .rp-sources li{
  display:block;
  position:relative;
  grid-template-columns:none;
  gap:0;
  padding:16px 0 16px 2.6em;
  margin:0;
}
html body.wsite-page-residence-permits .rp-sources li::before{
  position:absolute;
  left:0;
  top:14px;
  content:counter(src);
}

/* Mobile hub: keep the 2×2 route row clear of the sticky CTA */
@media (max-width:900px){
  html body.wsite-page-residence-permits div.vd:not(#vd-x) section.page-hero.gd-hero.rp-hero,
  html body.wsite-page-residence-permits div.vd:not(#vd-x) section.page-hero.rp-hero{
    padding-bottom:calc(36px + 72px);
  }
}

/* —— Hub hero: wider typographic column on desktop
   so the title starts further left, wraps on fewer lines,
   the hero is shorter, and the gold street drawing sits higher,
   vertically centred with the text — as on other guide headers. */
@media (min-width:901px){
  html body.wsite-page-residence-permits div.vd:not(#vd-x) .page-hero,
  html body.wsite-page-residence-permits div.vd:not(#vd-x) .page-hero.gd-hero{
    min-height:0;
    justify-content:flex-start;
  }
  html body.wsite-page-residence-permits .rp-hero .rp-hero-grid{
    grid-template-columns:minmax(0,1fr) minmax(280px,360px);
    column-gap:clamp(28px,3.5vw,56px);
    align-items:center;
  }
  html body.c.wsite-page-residence-permits div.vd:not(#vd-x) section.page-hero h1,
  html body.wsite-page-residence-permits div.vd:not(#vd-x) .page-hero h1{
    max-width:none;
  }
  html body.wsite-page-residence-permits .page-hero .lede{
    max-width:42em;
  }
}
