/* Hainan Insider
   Colours from the island itself: deep sea green for text and dark bands, shallow-water teal for links
   and buttons, bougainvillea pink only for the single most important button on a page.
   Headings: Bricolage Grotesque (OFL) for Latin letters, the system's own sans-serif for everything else. */

@font-face { font-family: "Bricolage"; font-weight: 200 800; font-display: swap;
  src: url(/fonts/bricolage-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Bricolage"; font-weight: 200 800; font-display: swap;
  src: url(/fonts/bricolage-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Bricolage"; font-weight: 200 800; font-display: swap;
  src: url(/fonts/bricolage-vietnamese.woff2) format("woff2");
  unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB; }

:root {
  /* bright, clean and see-through: white, shallow-water aqua, clear sea blue-green, a splash of bougainvillea */
  --sea: #087e88;          /* links, buttons, numbers (dark enough for white text on top) */
  --sea-dark: #066a73;
  --lagoon: #3ccbc0;       /* decoration only, never under text */
  --sky: #2fa7d8;          /* decoration only */
  --foam: #effaf8;         /* light panels */
  --band: #e6f7f5;         /* light sections */
  --band2: #e9f3fc;        /* the sky end of light gradients */
  --paper: #ffffff;
  --flower: #d6346d;       /* the one most important button on a page */
  --ink: #15303a;
  --muted: #557079;
  --line: #d9ebea;
  --on-sea: #ffffff;
  --warn-bg: #fdf3e2; --warn-line: #e5c463; --warn-ink: #4d3a10;
  /* map colours: fill, selected, dark text */
  --f0: #d5e8c8; --s0: #9ccb86; --d0: #3d6b2c;
  --f1: #f3e3b0; --s1: #e5c463; --d1: #7d5b10;
  --f2: #c3e4de; --s2: #74c2b6; --d2: #1c6a60;
  --f3: #f6d3dd; --s3: #e892ab; --d3: #93304f;
  --f4: #d2e2f4; --s4: #8db5e1; --d4: #2d5b8e;
  --text: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans", sans-serif;
  --display: "Bricolage", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  --wrap: 1240px;
  color-scheme: light;
}
/* languages whose letters the heading font doesn't have use one system font throughout, not two mixed in a word */
:root:lang(zh) { --display: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif; }
:root:lang(ja) { --display: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", "Noto Sans JP", sans-serif; }
:root:lang(ko) { --display: "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif; }
:root:lang(th), :root:lang(ru) { --display: var(--text); }
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #e8f6f5; --muted: #a6c3c4; --line: #23464c; --paper: #0b1f25; --foam: #11303a; --band: #0f2a31; --band2: #10283a;
    --sea: #4fd1c5; --sea-dark: #7fe0d6; --lagoon: #4fd1c5; --sky: #5bbfe8; --flower: #ff5c93; --on-sea: #062026;
    --warn-bg: #33291a; --warn-line: #8a7230; --warn-ink: #f0e2bd;
    --f0: #2f5a45; --s0: #4f8f6c; --d0: #a8d99a; --f1: #625428; --s1: #9a8436; --d1: #ecd27c;
    --f2: #1f5956; --s2: #3a8f87; --d2: #8fd9cf; --f3: #643145; --s3: #a14d6c; --d3: #f2a8c0;
    --f4: #2b4865; --s4: #4d78a6; --d4: #a9c8ee;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
:lang(ko) { word-break: keep-all; overflow-wrap: break-word; }
h1, h2 { text-wrap: balance; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.65 var(--text); -webkit-font-smoothing: antialiased; }
body { display: flex; flex-direction: column; min-height: 100vh; }
body > main { flex: 1 0 auto; width: 100%; }
a { color: var(--sea); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--flower); outline-offset: 3px; border-radius: 4px; }
img { max-width: 100%; height: auto; display: block; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 32px; }
@media (max-width: 640px) { .wrap { padding: 0 18px; } body { font-size: 16px; } }
.main { padding-top: 40px; padding-bottom: 80px; }
.narrow { max-width: 760px; margin: 0 auto; }

h1, h2, h3 { font-family: var(--display); color: var(--ink); font-weight: 750; }
h1 { font-size: clamp(32px, 4.2vw, 52px); line-height: 1.08; letter-spacing: -0.025em; margin: 8px 0 16px; }
h2 { font-size: clamp(24px, 2.4vw, 30px); line-height: 1.2; letter-spacing: -0.015em; margin: 48px 0 12px; }
h3 { font-size: 19px; line-height: 1.3; margin: 24px 0 8px; }
:lang(zh) :is(h1, h2, h3), :lang(ja) :is(h1, h2, h3), :lang(ko) :is(h1, h2, h3) { letter-spacing: 0; font-weight: 800; }
:lang(zh) h1, :lang(ja) h1, :lang(ko) h1 { line-height: 1.25; }
p, ul, ol { margin: 0 0 14px; }
li { margin-bottom: 6px; }
ul > li::marker { color: var(--sea); }
.lead { font-size: 19px; color: var(--muted); max-width: 62ch; text-wrap: pretty; }
.muted { color: var(--muted); }
.meta { color: var(--muted); font-size: 14px; margin-top: -4px; }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--muted); }

/* ---------- header */
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.header-inner { display: flex; align-items: center; gap: 28px; padding-top: 16px; padding-bottom: 16px; }
.brand { display: flex; align-items: baseline; gap: 12px; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand b { font-family: "Bricolage", var(--text); font-size: 22px; font-weight: 750; letter-spacing: -0.01em; }
.brand span { font-size: 14px; color: var(--muted); }
.site-nav { display: flex; gap: 26px; }
.site-nav a { color: var(--muted); text-decoration: none; font-size: 15px; padding: 4px 0; border-bottom: 2px solid transparent; }
.site-nav a:hover { color: var(--ink); }
.site-nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--sea); }
.lang-menu { position: relative; font-size: 14px; }
.lang-menu summary { list-style: none; cursor: pointer; padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; white-space: nowrap; color: var(--muted); }
.lang-menu summary:hover { color: var(--ink); border-color: var(--muted); }
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu ul { position: absolute; right: 0; top: calc(100% + 8px); margin: 0; padding: 6px; list-style: none; background: var(--paper);
  border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 18px 40px rgba(10, 110, 120, .14); min-width: 190px; max-height: 70vh; overflow: auto; z-index: 20; }
.lang-menu li { margin: 0; }
.lang-menu a { display: block; padding: 6px 12px; border-radius: 8px; text-decoration: none; color: var(--ink); }
.lang-menu a:hover, .lang-menu a[aria-current="true"] { background: var(--foam); }
@media (max-width: 860px) {
  .header-inner { flex-wrap: wrap; gap: 10px 20px; }
  .site-nav { order: 3; width: 100%; gap: 22px; overflow-x: auto; scrollbar-width: none; }
  .site-nav a { white-space: nowrap; flex: none; }
  .site-header { position: static; }
}
@media (max-width: 640px) { .brand { flex-direction: column; gap: 0; } .brand b { font-size: 20px; } .brand span { font-size: 13px; } .site-nav { gap: 2px 14px; flex-wrap: wrap; overflow: visible; } .site-nav a { font-size: 14px; } }

/* ---------- buttons */
.button, .btn { display: inline-block; text-decoration: none; font-weight: 650; font-size: 16px; padding: 13px 22px; border-radius: 999px; line-height: 1.3; }
.button, .btn.solid { background: var(--sea); color: var(--on-sea); }
.button:hover, .btn.solid:hover { background: var(--sea-dark); color: var(--on-sea); }
.btn.ghost { border: 1.5px solid var(--ink); color: var(--ink); }
.btn.ghost:hover { background: var(--foam); }
.button.flower, .btn.flower { background: var(--flower); color: #fff; }
.button.flower:hover, .btn.flower:hover { filter: brightness(.92); background: var(--flower); color: #fff; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- page head (guides, test pay, local guide, about): like the home page, words centred on top and a
   full-width photo underneath that fades in from the page colour and fades out again into the page */
.page-head-text { text-align: center; padding-top: 64px; position: relative; z-index: 1; }
.page-head h1 { margin: 0 auto; max-width: 20em; }
:lang(zh) .page-head h1, :lang(ja) .page-head h1, :lang(ko) .page-head h1 { font-size: clamp(30px, 3.4vw, 46px); }
.page-head .lead { margin: 18px auto 0; max-width: 40em; text-wrap: balance; }
.page-photo { margin: -8px 0 0; }
.page-photo img { width: 100%; height: clamp(220px, 24vw, 360px); object-fit: cover;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 35%, #000 62%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 35%, #000 62%, transparent 100%); }
@media (max-width: 640px) {
  .page-head-text { padding-top: 36px; }
  :lang(zh) .page-head h1 { font-size: 6.9vw; }
  .page-photo img { height: 200px; }
}

/* ---------- home: hero. Words centred on top; the photo runs full width underneath.
   Its top fades in from the page colour and its bottom fades into the dark band below, so nothing is cut by a hard line. */
.hero-text { text-align: center; padding-top: 88px; padding-bottom: 8px; position: relative; z-index: 1; }
.hero-text h1 { font-size: clamp(44px, 6vw, 88px); line-height: 0.98; letter-spacing: -0.035em; font-weight: 780; margin: 0; }
:lang(zh) .hero-text h1, :lang(ja) .hero-text h1, :lang(ko) .hero-text h1 { font-size: clamp(34px, 4.4vw, 64px); line-height: 1.22; letter-spacing: 0.01em; font-weight: 800; }
.hero-text p { font-size: 19px; color: var(--muted); max-width: 36em; margin: 28px auto 34px; text-wrap: balance; }
.hero-text .btns { justify-content: center; }
.hero-photo { position: relative; margin: -24px 0 0; }
.hero-photo img { width: 100%; height: clamp(380px, 50vw, 760px); object-fit: cover; object-position: 50% 62%;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 34%); mask-image: linear-gradient(to bottom, transparent 0, #000 34%); }
.hero-photo::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 32%; pointer-events: none;
  background: linear-gradient(to bottom, transparent 0%, var(--band) 100%); }
.hero-photo figcaption { position: absolute; right: 18px; top: 40%; z-index: 1; font-size: 12px; color: rgba(255, 255, 255, .85); text-shadow: 0 1px 3px rgba(0,0,0,.45); }
@media (max-width: 640px) {
  .hero-text { padding-top: 44px; }
  .hero-text p { font-size: 17px; margin: 20px auto 26px; }
  :lang(zh) .hero-text h1 { font-size: 7.3vw; }
  .hero-photo { margin-top: -8px; }
  .hero-photo img { height: 380px; }
  .hero-photo figcaption { left: 18px; text-align: right; }
}

/* ---------- home: three ways in, as white cards floating over the end of the photo */
.doors { background: var(--band); padding: 0 0 72px; }
.doors ul { list-style: none; margin: -110px auto 0; padding: 0 32px; max-width: var(--wrap); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; position: relative; z-index: 1; }
.doors li { margin: 0; padding: 28px 28px 30px; display: flex; flex-direction: column; background: var(--paper); border-radius: 20px; box-shadow: 0 18px 44px rgba(10, 110, 120, .14); }
.doors h2 { font-size: 22px; letter-spacing: -0.01em; margin: 0 0 6px; }
.doors p { margin: 0 0 14px; color: var(--muted); font-size: 16px; flex: 1; }
.doors a { align-self: flex-start; }
.doors a { color: var(--sea); font-weight: 700; text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
.doors li:last-child a { color: var(--flower); }
@media (max-width: 860px) {
  .doors ul { grid-template-columns: minmax(0, 1fr); margin-top: -70px; }
}
@media (max-width: 640px) { .doors ul { padding: 0 18px; gap: 14px; } .doors li { padding: 22px 22px 24px; } .doors { padding-bottom: 48px; } }

/* ---------- home: sections */
.home-section { padding: 104px 0; }
.home-section > .wrap > h2, .island-head h2, .plan h2 { font-size: clamp(30px, 3.6vw, 48px); line-height: 1.05; letter-spacing: -0.02em; max-width: 18ch; margin: 0; }
:lang(zh) .home-section h2, :lang(ja) .home-section h2, :lang(ko) .home-section h2 { letter-spacing: 0; line-height: 1.25; }
@media (max-width: 640px) { .home-section { padding: 72px 0; } }
.island-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 32px 72px; align-items: end; }
.island-head .lead { font-size: 18px; max-width: 46ch; margin: 0; }
.facts { margin: 48px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 36px; }
.facts div { border-top: 2px solid var(--sea); padding-top: 12px; }
.facts dt { font-family: var(--display); font-size: 30px; font-weight: 750; letter-spacing: -0.02em; line-height: 1.1; }
:lang(zh) .facts dt { font-size: 26px; letter-spacing: 0; }
.facts dd { margin: 6px 0 0; color: var(--muted); font-size: 15px; }
@media (max-width: 1000px) { .island-head { grid-template-columns: minmax(0, 1fr); } .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .facts { grid-template-columns: minmax(0, 1fr); gap: 20px; margin-top: 36px; } }

/* ---------- home: county map */
.explore { margin-top: 88px; }
.explore > h3 { font-size: clamp(24px, 2.4vw, 32px); letter-spacing: -0.015em; margin: 0; }
:lang(zh) .explore > h3 { letter-spacing: 0; }
.explore .hint { color: var(--muted); margin: 8px 0 0; }
.explorer { position: relative; margin-top: 28px; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 72px; align-items: start; }
.cmap svg { width: 100%; height: auto; display: block; overflow: visible; }
.cmap .c { stroke: var(--paper); stroke-width: 1.6; stroke-linejoin: round; cursor: pointer; transition: fill .15s, filter .15s; outline: none; }
.cmap .m0 { fill: var(--f0); } .cmap .m0.on { fill: var(--s0); }
.cmap .m1 { fill: var(--f1); } .cmap .m1.on { fill: var(--s1); }
.cmap .m2 { fill: var(--f2); } .cmap .m2.on { fill: var(--s2); }
.cmap .m3 { fill: var(--f3); } .cmap .m3.on { fill: var(--s3); }
.cmap .m4 { fill: var(--f4); } .cmap .m4.on { fill: var(--s4); }
.cmap .c:hover { filter: brightness(.95) saturate(1.15); }
.cmap .c.on { filter: none; stroke-width: 2.2; }
.cmap .coast { fill: none; stroke: var(--sea); stroke-width: 2.2; stroke-linejoin: round; pointer-events: none; }
.cmap .c:focus-visible { stroke: var(--ink); stroke-width: 3; }
.cmap .cl { font: 600 12.5px var(--text); fill: var(--ink); text-anchor: middle; pointer-events: none; }
.cmap .cl.on { font-weight: 800; }
.cmap .ctx { font: 500 13px var(--text); fill: var(--muted); }
.cmap .sea-lbl { font: italic 500 14px var(--text); fill: var(--muted); letter-spacing: .04em; }
.map-credit { font-size: 12px; color: var(--muted); margin: 8px 0 0; }
[data-tone="0"] { --tf: var(--f0); --ts: var(--s0); --td: var(--d0); }
[data-tone="1"] { --tf: var(--f1); --ts: var(--s1); --td: var(--d1); }
[data-tone="2"] { --tf: var(--f2); --ts: var(--s2); --td: var(--d2); }
[data-tone="3"] { --tf: var(--f3); --ts: var(--s3); --td: var(--d3); }
[data-tone="4"] { --tf: var(--f4); --ts: var(--s4); --td: var(--d4); }
.leader { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.leader path { fill: none; stroke: var(--td); stroke-width: 1.5; stroke-linecap: round; }
.leader .dot { fill: var(--td); }
.leader .halo { fill: var(--paper); stroke: var(--td); stroke-width: 1.5; }
.panel { position: sticky; top: 96px; padding: 16px 16px 24px; border-radius: 22px; background: color-mix(in srgb, var(--tf) 70%, var(--paper)); transition: background-color .35s ease; }
.panel .tx { padding: 0 10px; }
.panel .pp { margin: 0 0 20px; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 120px 120px 10px 10px; background: var(--tf); }
.panel .pp img { width: 100%; height: 100%; object-fit: cover; }
.panel .pp .shape { display: none; width: 100%; height: 100%; padding: 22px; }
.panel .pp.noimg img { display: none; }
.panel .pp.noimg .shape { display: block; }
.panel .pp .shape path { fill: var(--ts); stroke: var(--td); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.panel h4 { font-family: var(--display); font-size: 30px; font-weight: 750; letter-spacing: -0.02em; margin: 0; line-height: 1.1; color: var(--ink); }
:lang(zh) .panel h4 { letter-spacing: 0; }
.panel .tag { font-size: 18px; margin: 6px 0 14px; color: var(--td); font-weight: 600; background: none; padding: 0; border-radius: 0; }
.panel ul { margin: 0; padding: 0 0 0 1.1em; }
.panel li { margin: 0 0 8px; }
.panel li::marker { color: var(--td); }
.panel .credit { font-size: 12px; color: var(--muted); margin: 12px 0 0; }
@media (max-width: 1000px) { .explorer { grid-template-columns: minmax(0, 1fr); gap: 24px; } .leader { display: none; } .panel { position: static; } }
@media (max-width: 640px) {
  .explore { margin-top: 64px; }
  .cmap .cl { display: none; }
  .cmap .cl.on { display: block; font-size: 22px; }
  .cmap .ctx, .cmap .sea-lbl { font-size: 22px; }
  .panel h4 { font-size: 26px; }
  .panel .pp { border-radius: 80px 80px 10px 10px; }
  .panel { padding: 12px 12px 20px; }
}

/* ---------- home: before you fly */
.plan .lead { font-size: 18px; margin: 16px 0 0; max-width: 46ch; }
.plan-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 72px; margin-top: 40px; align-items: start; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 0 18px; padding: 20px 0; border-top: 1px solid var(--line); margin: 0; }
.steps li::before { content: counter(s); font-family: var(--display); font-size: 30px; font-weight: 750; color: var(--sea); line-height: 1; grid-row: span 2; }
.steps b { font-size: 14px; color: var(--sea); letter-spacing: .01em; }
.steps p { margin: 2px 0 0; }
.steps a { font-size: 14px; color: var(--muted); white-space: nowrap; }
.side { position: sticky; top: 96px; display: grid; gap: 28px; }
.test { background: var(--band); border-radius: 18px; padding: 30px; }
.test h3 { font-size: 26px; letter-spacing: -0.01em; margin: 0 0 8px; }
.test p { color: var(--muted); margin: 0 0 20px; font-size: 16px; }
.apps h3 { font-size: 20px; margin: 0 0 6px; }
.apps dl { margin: 0; }
.apps div { display: grid; grid-template-columns: 9.5em minmax(0, 1fr); gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); font-size: 15px; }
.apps dt { font-weight: 700; }
.apps dd { margin: 0; color: var(--muted); }
@media (max-width: 1000px) { .plan-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; } .side { position: static; } }
@media (max-width: 640px) { .apps div { grid-template-columns: minmax(0, 1fr); gap: 2px; } }

/* ---------- home: guides row */
.home-guides { padding-top: 0; }
.guides-row { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 24px; border-top: 2px solid var(--ink); padding-top: 28px; }
.guides-row h2 { margin: 0; }
.chips { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { margin: 0; }
.chips a { display: inline-block; text-decoration: none; color: var(--ink); border: 1px solid var(--line); border-radius: 999px; padding: 7px 15px; font-size: 15px; }
.chips a:hover { border-color: var(--sea); color: var(--sea); }

/* ---------- ask a local (home and the end of each guide) */
.ask { background: linear-gradient(120deg, var(--band) 0%, var(--band2) 100%); }
.ask .wrap { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.ask h2 { margin: 0; }
.ask p { font-size: 18px; color: var(--muted); margin: 0 0 24px; max-width: 46ch; }
.ask .more { color: var(--sea); margin-left: 18px; font-weight: 700; }
@media (max-width: 1000px) { .ask .wrap { grid-template-columns: minmax(0, 1fr); gap: 24px; } }
@media (max-width: 640px) { .ask .more { display: table; margin: 18px 0 0; } }

/* ---------- article pieces */
.quick { background: var(--foam); border-left: 4px solid var(--sea); border-radius: 0 14px 14px 0; padding: 18px 22px; margin: 18px 0 30px; }
.quick > strong { color: var(--sea); display: block; margin-bottom: 4px; font-family: var(--display); font-size: 16px; letter-spacing: .01em; }
.quick p { margin: 0; }
blockquote { margin: 22px 0; padding: 14px 20px; background: var(--warn-bg); border-left: 4px solid var(--warn-line); border-radius: 0 12px 12px 0; color: var(--warn-ink); }
blockquote p:last-child { margin-bottom: 0; }
.note { font-size: 15px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 14px; margin-top: 28px; }
.cta { margin: 56px 0 8px; padding: 28px 30px; background: linear-gradient(120deg, var(--band) 0%, var(--band2) 100%); border-radius: 20px; }
.cta h2 { margin: 0 0 6px; font-size: 24px; }
.cta p { margin: 0 0 18px; max-width: 62ch; color: var(--muted); }
.cta-photo { display: grid; grid-template-columns: 170px 1fr; gap: 26px; align-items: center; padding: 18px 26px 18px 18px; }
.cta-photo img { width: 170px; height: 150px; object-fit: cover; border-radius: 90px 90px 10px 10px; }
@media (max-width: 560px) { .cta-photo { grid-template-columns: 1fr; padding: 18px; } .cta-photo img { width: 100%; height: 150px; border-radius: 80px 80px 10px 10px; } }

table { width: 100%; border-collapse: collapse; margin: 16px 0 26px; font-size: 16px; }
th, td { text-align: left; vertical-align: top; padding: 11px 14px; border-bottom: 1px solid var(--line); }
th { background: var(--foam); font-weight: 700; border-bottom: 2px solid var(--sea); }
td:first-child { min-width: 6.5em; }
@media (max-width: 700px) { table { display: block; overflow-x: auto; } }

/* ---------- article layout: the text, read top to bottom; on wide screens "On this page" sits on the right as a helper */
.layout { display: grid; grid-template-columns: minmax(0, 760px) 220px; gap: 72px; justify-content: center; align-items: start; }
.content { min-width: 0; }
.toc { position: sticky; top: 96px; font-size: 14px; padding-left: 16px; border-left: 2px solid var(--line); }
.toc-title { font-weight: 700; margin: 0 0 8px; }
.toc ol { list-style: none; padding: 0; margin: 0; }
.toc li { margin: 0; }
.toc a { display: block; padding: 5px 0 5px 12px; margin-left: -18px; border-left: 2px solid transparent; color: var(--muted); text-decoration: none; line-height: 1.4; }
.toc a:hover { color: var(--sea); }
.toc a.read { color: var(--sea); opacity: .75; }
.toc a[aria-current] { color: var(--ink); font-weight: 700; border-left-color: var(--sea); }
.toc-inline { display: none; margin: 0 0 28px; border: 1px solid var(--line); border-radius: 14px; padding: 4px 18px; }
.toc-inline summary { cursor: pointer; font-weight: 700; padding: 10px 0; }
.toc-inline ol { margin: 0 0 12px; padding-left: 20px; }
.toc-inline a { color: var(--ink); text-decoration: none; }
.toc-inline a[aria-current] { color: var(--sea); font-weight: 700; }
.reading-bar { position: fixed; left: 0; right: 0; top: 0; height: 3px; z-index: 30; pointer-events: none; }
.reading-bar span { display: block; height: 100%; background: var(--sea); transform-origin: 0 50%; transform: scaleX(0); }
.article h2 { scroll-margin-top: 96px; }
@media (max-width: 1100px) { .layout { grid-template-columns: minmax(0, 760px); } .toc { display: none; } .toc-inline { display: block; } }
@media (max-width: 860px) { .article h2, .cat { scroll-margin-top: 16px; } }
.related ul { padding-left: 20px; }

/* ---------- the 7-step checklist: where this page sits, and the way to the next step */
.step-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; margin: 0 0 14px; }
.page-head .step-bar { justify-content: center; margin-bottom: 18px; }
.step-label { font-size: 14px; font-weight: 700; color: var(--sea); text-decoration: none; }
.step-label:hover { text-decoration: underline; }
.step-dots { display: inline-flex; gap: 6px; }
.step-dots a { width: 22px; height: 6px; border-radius: 3px; background: var(--line); }
.step-dots a.done { background: var(--lagoon); }
.step-dots a.on { background: var(--sea); width: 34px; }
.step-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 48px 0 0; }
.step-nav a { display: block; padding: 16px 20px; border: 1px solid var(--line); border-radius: 16px; text-decoration: none; color: var(--ink); font-weight: 700; line-height: 1.4; }
.step-nav a:hover { border-color: var(--sea); }
.step-nav small { display: block; font-weight: 600; color: var(--sea); margin-bottom: 4px; font-size: 13px; }
.step-nav .next { text-align: right; }
@media (max-width: 560px) { .step-nav { grid-template-columns: 1fr; } .step-nav .next { text-align: left; } }

/* ---------- guides index: one row per topic */
.cat { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 56px; padding: 40px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 96px; }
.cat:first-child { padding-top: 8px; }
.cat-head img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 120px 120px 14px 14px; margin-bottom: 18px; }
.cat-head h2 { margin: 0 0 6px; }
.cat-head p { color: var(--muted); font-size: 15px; margin: 0; }
.guide-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; align-content: start; }
.guide-list li { padding: 14px 0; border-top: 1px solid var(--line); margin: 0; }
.guide-list a { font-weight: 700; display: block; color: var(--ink); text-decoration: none; line-height: 1.45; margin-bottom: 4px; }
.guide-list a:hover { color: var(--sea); text-decoration: underline; }
.guide-list span { font-size: 14px; color: var(--muted); line-height: 1.6; display: block; }
@media (max-width: 1000px) { .guide-list { grid-template-columns: 1fr; } }
@media (max-width: 760px) {
  .cat { grid-template-columns: 1fr; gap: 16px; padding: 28px 0; }
  .cat-head { display: grid; grid-template-columns: 96px 1fr; gap: 4px 14px; align-items: center; }
  .cat-head img { grid-row: span 2; width: 96px; height: 96px; margin: 0; border-radius: 48px 48px 10px 10px; }
}

/* ---------- local guide page */
.guide-col { max-width: 880px; margin: 0 auto; }  /* cards and FAQ share one centred column under the centred heading */
.guide-col .faq { max-width: none; }
.services { display: grid; gap: 24px; margin: 4px 0 8px; }
.service { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 6px 30px 24px; }
.service h2 { margin-top: 22px; font-size: 24px; }
.service ul { padding-left: 20px; columns: 2; column-gap: 48px; }
.service li { break-inside: avoid; }
.service .anything { margin-top: 10px; }
.guide-page .anything { font-size: 17px; margin: 18px 0 0; padding: 14px 18px; border-left: 3px solid var(--flower); background: var(--foam); border-radius: 0 12px 12px 0; }
#contact { scroll-margin-top: 110px; }
.guide-page .cta { display: flex; align-items: center; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; padding: 30px 34px; }
.guide-page .cta p { margin: 0; }
.guide-page .cta .button { background: var(--flower); color: #fff; }
.guide-page .cta .button:hover { filter: brightness(.92); background: var(--flower); color: #fff; }
@media (max-width: 760px) { .service ul { columns: 1; } .service { padding: 2px 20px 18px; } .service h2 { font-size: 21px; } }

/* ---------- test pay: one column, read top to bottom */
.flow { max-width: 900px; margin: 0 auto; }
.personal { background: var(--foam); border-radius: 18px; padding: 4px 28px 22px; margin-top: 28px; }
.personal h2 { font-size: 22px; margin-top: 22px; }
.personal p:last-child { margin-bottom: 4px; }
.qr-grid { margin-top: 0; }
.qr-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; margin: 22px 0; }
.qr-card { border: 1px solid var(--line); border-radius: 18px; padding: 20px; }
.qr-card ol { font-size: 15px; padding-left: 20px; margin: 12px 0 0; }
.qr-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.qr-head h3 { margin: 0; }
.tag { font-size: 13px; font-weight: 700; color: var(--sea); background: var(--foam); padding: 2px 10px; border-radius: 999px; }
.qr-reveal { position: relative; display: grid; place-items: center; width: 100%; max-width: calc(var(--qr, 220px) + 22px); min-height: calc(var(--qr, 220px) + 22px);
  margin: 12px auto 0; padding: 10px; border: 1px solid var(--line); border-radius: 14px; background: #fff; cursor: pointer; font: inherit; color: #15303a; overflow: hidden; }
.qr-reveal img { display: block; width: var(--qr, 220px); height: auto; }
.qr-ph { position: absolute; inset: 16px; background: url("/img/qr-placeholder.svg?v=2a062420") center / contain no-repeat; filter: blur(4px); opacity: .55; }
.qr-cover { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 14px; border-radius: 12px; background: rgba(255,255,255,.86); }
.qr-cover b { font-size: 15px; }
.qr-cover small { font-size: 13px; color: #48605f; }
.qr-reveal:hover .qr-cover { background: #fff; }
.qr-reveal.shown { cursor: default; }
.qr-reveal.shown .qr-ph, .qr-reveal.shown .qr-cover { display: none; }
.wa-qr .qr-reveal { margin: 0; }
.wa-qr .qr-cover { padding: 6px 8px; }
.wa-qr .qr-cover b { font-size: 13px; }
.qr-missing { margin: 10px 0 0; padding: 44px 10px; text-align: center; border: 2px dashed var(--line); border-radius: 14px; color: var(--muted); }
.wa-box { display: flex; align-items: center; gap: 24px; }
.wa-qr { margin: 0; text-align: center; }
.wa-qr img { width: 112px; height: 112px; background: #fff; padding: 6px; border-radius: 10px; border: 1px solid var(--line); }
.wa-qr figcaption { font-size: 13px; color: var(--muted); margin-top: 4px; }
@media (max-width: 760px), (hover: none) { .wa-qr { display: none; } }

.scan-how { border-left: 3px solid var(--sea); padding: 2px 0 2px 20px; margin-bottom: 24px; }
.scan-how h2 { margin: 0 0 6px; font-size: 21px; }
.scan-how ul { list-style: none; padding: 0; margin: 0 0 6px; }
.scan-how li { margin-bottom: 8px; }
.scan-how .how-label { display: block; font-weight: 700; }
.scan-how .muted { font-size: 15px; margin: 0; }
.qr-head .amount { font-family: var(--display); font-weight: 750; font-size: 18px; color: var(--sea); }
.qr-where { font-size: 14px; color: var(--muted); margin: 4px 0 0; }
.qr-where .tag { margin-right: 6px; }
.result { border-top: 1px solid var(--line); margin-top: 14px; padding-top: 12px; }
.result-ask { font-weight: 700; font-size: 15px; margin: 0 0 8px; }
.result-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.result-btn { display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: 14px; padding: 7px 13px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); cursor: pointer; }
.result-btn.r0 { color: #2f7a4b; border-color: #b9dcc6; }
.result-btn.r1 { color: #b4322a; border-color: #ecc3bf; }
.result-btn.r2 { color: #9a6a0c; border-color: #ecd3ae; }
.result-btn:disabled { opacity: .45; cursor: not-allowed; }
.result-hint { font-size: 13px; color: var(--muted); margin: 8px 0 0; }
.result-btn:not(:disabled):hover { border-color: currentColor; }
.result-btn.r0[aria-pressed="true"] { background: #2f7a4b; border-color: #2f7a4b; color: #fff; }
.result-btn.r1[aria-pressed="true"] { background: #b4322a; border-color: #b4322a; color: #fff; }
.result-btn.r2[aria-pressed="true"] { background: #9a6a0c; border-color: #9a6a0c; color: #fff; }
.result-answer { font-size: 15px; background: var(--foam); border-radius: 10px; padding: 10px 12px; margin: 10px 0 0; }
@media (prefers-color-scheme: dark) { .result-btn.r0 { color: #7cc79a; border-color: #2f5a40; } .result-btn.r1 { color: #f08a7e; border-color: #5a2a26; } .result-btn.r2 { color: #e8b468; border-color: #5a4220; } }

/* ---------- travel essentials */
.essentials { margin-top: 72px; }
.essentials h2 { margin-bottom: 4px; }
.ess-grid { list-style: none; padding: 0; margin: 20px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 32px; }
.ess-grid li { border-top: 2px solid var(--ink); padding: 14px 0 22px; margin: 0; display: flex; flex-direction: column; }
.ess-grid li::marker { content: none; }
.ess-grid h3 { margin: 0 0 4px; font-size: 19px; }
.ess-grid p { font-size: 15px; color: var(--muted); margin: 0 0 10px; flex: 1; }
.ess-links { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; }
.ess-links a { font-size: 13px; font-weight: 600; }
.ess-links .store { color: var(--ink); text-decoration: none; border: 1px solid var(--line); border-radius: 999px; padding: 4px 11px; background: var(--paper); }
.ess-links .store:hover { border-color: var(--sea); color: var(--sea); }
.ess-links .more { color: var(--sea); }
.ess-more { margin-top: 8px; gap: 6px 16px; }
.ess-more:empty { margin-top: 0; }
/* each card spans four rows of the grid (title, text, store buttons, guide links), so the parts line up across a row */
@supports (grid-template-rows: subgrid) {
  .ess-grid li { display: grid; grid-row: span 4; grid-template-rows: subgrid; row-gap: 0; }
  .ess-grid p { margin-bottom: 14px; }
  .ess-links { align-self: start; }
  .ess-more:empty { margin-top: 8px; }
}
@media (max-width: 1000px) { .ess-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .ess-grid { gap: 0 18px; } .ess-grid h3 { font-size: 17px; } .ess-grid p { font-size: 14px; } }

.calm { margin-top: 64px; padding: 28px 32px; border-radius: 18px; background: var(--foam); max-width: 900px; }
.calm h2 { margin: 0 0 8px; font-size: 24px; }
.calm p { margin: 0; font-size: 17px; }
.calm a { white-space: nowrap; }

/* ---------- questions */
.faq { max-width: 760px; margin-top: 64px; }
.faq details { border-top: 1px solid var(--line); padding: 4px 0; }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-family: var(--display); font-weight: 750; font-size: 18px; padding: 12px 0 12px 30px; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "+"; position: absolute; left: 2px; top: 9px; color: var(--sea); font-size: 21px; font-weight: 700; width: 18px; text-align: center; }
.faq details[open] summary::before { content: "\2212"; }
.faq details p { padding-left: 30px; margin: 0 0 14px; color: var(--ink); }

/* ---------- footer */
.site-footer { background: var(--foam); border-top: 1px solid var(--line); padding: 40px 0 48px; font-size: 15px; color: var(--muted); }
.site-footer .muted { color: var(--muted); opacity: .8; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.footer-links a { color: var(--sea); }

/* country list inside the visa table */
.country-list { display: block; margin-top: 8px; font-size: 14px; line-height: 1.65; color: var(--muted); }
.country-list b { display: block; margin-top: 6px; color: var(--ink); font-size: 14px; }
.country-note { display: block; margin-top: 8px; font-size: 13px; color: var(--sea); }

@media (prefers-reduced-motion: reduce) { *:not(.panel):not(.panel *):not(.leader *) { transition: none !important; } html { scroll-behavior: auto; } }

/* bigger tap targets on touch screens */
@media (pointer: coarse) {
  .lang-menu a { padding: 11px 12px; }
  .toc a { padding: 8px 0; }
}

/* ---------- small helpers: topic jump links, checklist step badges, back to top */
.chips.jump { justify-content: center; margin: 0 0 24px; }
.step-badge { display: inline-block !important; font-size: 12px !important; font-weight: 700; color: var(--sea) !important; background: var(--foam); border-radius: 999px; padding: 1px 10px; margin: 0 0 6px !important; text-decoration: none !important; }
.to-top { position: fixed; right: 20px; bottom: 20px; z-index: 25; font: 600 14px var(--text); color: var(--ink); background: var(--paper); border: 1px solid var(--line);
  border-radius: 999px; padding: 9px 16px; box-shadow: 0 8px 24px rgba(10, 110, 120, .14); cursor: pointer; }
.to-top:hover { border-color: var(--sea); color: var(--sea); }
.to-top[hidden] { display: none; }

/* long Chinese, Japanese and Korean guide titles stay on one line on computers instead of breaking inside a word */
:lang(zh) .article h1, :lang(ja) .article h1, :lang(ko) .article h1 { font-size: clamp(28px, 3vw, 42px); }

/* ---------- the one list of guides, in the order a visitor needs them
   A single reading column; the five stretches of time hang off one vertical line like stops on a route. */
.route-page { max-width: 880px; margin: 0 auto; }
.route-jump { list-style: none; margin: 0 0 56px; padding: 12px 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
  position: sticky; top: var(--route-top, 0px); z-index: 5; background: var(--paper);
  box-shadow: 0 0 0 100vmax var(--paper); clip-path: inset(0 -100vmax); transition: box-shadow .2s; }  /* full-width white band behind the stages */
.route-jump.stuck { clip-path: inset(0 -100vmax -12px); box-shadow: 0 0 0 100vmax var(--paper), 0 8px 12px -10px rgba(10, 80, 90, .25); }
.route-jump li { margin: 0; }
.route-jump a { display: inline-flex; align-items: center; gap: 8px; padding: 7px 16px 7px 8px; border: 1px solid var(--line); border-radius: 999px;
  color: var(--ink); text-decoration: none; font-size: 15px; }
.route-jump a:hover { border-color: var(--sea); color: var(--sea); }
.route-jump b { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--foam); color: var(--sea); font-size: 13px; }
.route-jump a { transition: background-color .25s, color .25s, border-color .25s; }
.route-jump a.on { background: var(--sea); border-color: var(--sea); color: #fff; }
.route-jump a.on b { background: #fff; color: var(--sea); }
@media (max-width: 860px) { .route-jump { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; margin-bottom: 36px; } .route-jump::-webkit-scrollbar { display: none; } .route-jump li { flex: none; } .route-jump a { white-space: nowrap; } }
.phase { position: relative; padding: 0 0 56px 72px; scroll-margin-top: calc(var(--route-top, 0px) + 84px); }
.phase::before { content: ""; position: absolute; left: 21px; top: 44px; bottom: 0; width: 2px; background: var(--line); }
.phase:last-child::before { display: none; }
.phase-head { display: flex; align-items: center; gap: 24px; margin-bottom: 18px; }
.phase-no { position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--sea) 0%, #0b7fa6 100%); color: var(--on-sea); font: 750 19px var(--display); box-shadow: 0 6px 16px rgba(10, 138, 148, .28); }
.phase-head > div { flex: 1; }
.phase-head h2 { margin: 4px 0 4px; }
.phase-head p { margin: 0; color: var(--muted); }
.phase-head img { width: 132px; height: 88px; object-fit: cover; border-radius: 66px 66px 10px 10px; flex: none; }
.phase-list { list-style: none; margin: 0; padding: 0; counter-reset: g; border-top: 1px solid var(--line); }
.phase-list li { margin: 0; counter-increment: g; border-bottom: 1px solid var(--line); }
.phase-list a { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 2px 12px; padding: 16px 12px 16px 4px; color: var(--ink); text-decoration: none; border-radius: 12px; }
.phase-list a::before { content: counter(g); grid-row: span 2; color: var(--sea); font: 700 15px var(--display); padding-top: 2px; }
.phase-list a:hover { background: var(--foam); }
.phase-list a:hover .t { color: var(--sea); }
.phase-list .t { font-weight: 700; line-height: 1.45; }
.phase-list .d { grid-column: 2 / 4; font-size: 14px; color: var(--muted); line-height: 1.6; }
.must { display: inline-block; align-self: start; font-size: 12px; font-weight: 700; color: var(--flower); border: 1px solid currentColor;
  border-radius: 999px; padding: 0 9px; line-height: 20px; white-space: nowrap; }
.step-bar .must { margin-left: 2px; }
@media (max-width: 640px) {
  .route-jump { justify-content: flex-start; margin-bottom: 40px; }
  .phase { padding-left: 52px; padding-bottom: 44px; }
  .phase::before { left: 16px; top: 36px; }
  .phase-no { width: 34px; height: 34px; font-size: 16px; }
  .phase-head img { display: none; }
  .phase-list a { grid-template-columns: 22px minmax(0, 1fr) auto; padding-right: 4px; }
}

/* ---------- home: the same route in five stops, leading to the list */
.home-guides .guides-row { align-items: end; }
.home-guides .lead { margin: 10px 0 0; }
.route { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; counter-reset: r; }
.route li { margin: 0; position: relative; }
.route li::before { content: ""; position: absolute; left: 0; right: 0; top: 21px; height: 2px; background: var(--line); }
.route li:first-child::before { left: 22px; }
.route li:last-child::before { right: calc(100% - 22px); }
.route a { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 0 22px 8px 0; color: var(--ink); text-decoration: none; }
.route b { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--paper); border: 2px solid var(--sea);
  color: var(--sea); font: 750 18px var(--display); margin-bottom: 8px; transition: background .15s, color .15s; }
.route a:hover b { background: var(--sea); color: var(--on-sea); }
.route .rn { font: 750 19px var(--display); }
.route .rd { font-size: 14px; color: var(--muted); line-height: 1.55; }
.route .rc { font-size: 13px; font-weight: 600; color: var(--sea); }
@media (max-width: 900px) {
  .route { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .route li::before { left: 21px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; }
  .route li:first-child::before { top: 22px; left: 21px; }
  .route li:last-child::before { bottom: auto; height: 22px; right: auto; }
  .route a { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 2px 16px; padding: 0 0 22px; }
  .route b { grid-row: span 3; margin: 0; }
}

/* Chinese and Japanese titles break at punctuation (，：、) rather than inside a word; a title too long for that still wraps */
:lang(zh) :is(h1, h2, h3, .phase-list .t, .step-nav a), :lang(ja) :is(h1, h2, h3, .phase-list .t, .step-nav a) { word-break: keep-all; overflow-wrap: anywhere; }

/* the map's line is drawn like a pen stroke; the card's photo and words then fade in, one after another */
.leader path { stroke-width: 2; }
.leader .nib { fill: var(--td); transition: opacity .3s, r .3s; }
.leader .nib-glow { fill: var(--td); opacity: .22; transition: opacity .3s; }
.leader .gone { opacity: 0; }
/* the card is wiped in from left to right, as if the line arriving at its edge carries on across it */
.panel { clip-path: inset(0 0 0 0 round 22px); transition: clip-path 1.2s cubic-bezier(.45,.05,.25,1), opacity .5s ease, background-color .35s ease; }
.panel.hide { clip-path: inset(0 100% 0 0 round 22px); opacity: .4; transition: none; }

/* the "Sources" line at the end of a guide: a reference, set apart from the text */
.article .sources { margin-top: 40px; padding: 14px 0 0; border-top: 1px dashed var(--line); font-size: 13.5px; line-height: 1.7; color: var(--muted); }
.article .sources strong { display: block; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.article .sources a { color: var(--muted); text-decoration-color: var(--line); }
.article .sources a:hover { color: var(--sea); text-decoration-color: currentColor; }

/* ---------- reaching me: at the top of the local help page (a line and two buttons, no box), and alongside every guide */
/* the button sits on the page's centre line, the QR code hangs to its right */
.head-contact { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 22px; margin: 30px auto 0; scroll-margin-top: 110px; }
.head-contact > .hello-btn, .head-contact > .note { grid-column: 2; }
.head-contact > .wa-qr { grid-column: 3; justify-self: start; }
.hello-btn { display: inline-flex; align-items: center; gap: 16px; padding: 18px 26px 18px 22px; border-radius: 22px; background: var(--flower); color: #fff;
  text-decoration: none; text-align: left; box-shadow: 0 14px 30px rgba(214, 52, 109, .28); transition: transform .15s, box-shadow .15s; max-width: 520px; }
.hello-btn:hover { transform: translateY(-2px); box-shadow: 0 18px 36px rgba(214, 52, 109, .34); color: #fff; }
.hello-btn svg { width: 30px; height: 30px; flex: none; }
.hello-btn b { display: block; font-family: var(--display); font-size: 21px; font-weight: 750; line-height: 1.25; }
.hello-btn small { display: block; font-size: 14px; line-height: 1.5; opacity: .92; margin-top: 2px; }
.hello-btn i { font-style: normal; font-size: 22px; margin-left: 4px; }
.hello-btn .wa-tag { display: inline-block; vertical-align: 3px; margin-left: 8px; padding: 2px 9px; border-radius: 999px; background: rgba(255, 255, 255, .2); font-style: normal; font-size: 13px; font-weight: 650; letter-spacing: .02em; }
.head-contact .wa-qr figcaption { color: var(--muted); }
@media (max-width: 760px) { .head-contact { margin-top: 24px; grid-template-columns: minmax(0, 1fr); } .head-contact > .hello-btn, .head-contact > .note { grid-column: 1; } .hello-btn { width: 100%; } }

@media (min-width: 1101px) { .layout { grid-template-columns: minmax(0, 760px) 250px; } }
.side-col { position: sticky; top: 92px; display: grid; gap: 26px; max-height: calc(100vh - 110px); overflow: auto; scrollbar-width: none; }
.side-col .toc { position: static; }
.ask-card { padding: 14px 14px 18px; border-radius: 18px; background: linear-gradient(160deg, var(--band) 0%, var(--band2) 100%); font-size: 14px; }
.ask-card img { width: 100%; height: 108px; object-fit: cover; border-radius: 60px 60px 10px 10px; margin-bottom: 10px; }
.ask-card .ask-t { font-family: var(--display); font-weight: 750; font-size: 17px; color: var(--ink); margin: 0 4px 4px; }
.ask-card p { margin: 0 4px 12px; color: var(--muted); line-height: 1.55; }
.ask-card .button { display: block; text-align: center; font-size: 14px; padding: 10px 14px; margin: 0 4px; }
.ask-card .ask-more { display: block; margin: 10px 4px 0; font-size: 13px; font-weight: 600; text-align: center; }
.ask-float { display: none; }
/* the payment test page has no right column, so it always uses the floating button */
.flow ~ .ask-float { position: fixed; left: 16px; bottom: 18px; z-index: 25; display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; background: var(--flower); color: #fff; font-weight: 700; font-size: 15px; text-decoration: none; box-shadow: 0 10px 26px rgba(214, 52, 109, .35); }
@media (max-width: 1100px) {
  .side-col { display: none; }
  .ask-float { position: fixed; left: 16px; bottom: 18px; z-index: 25; display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px;
    border-radius: 999px; background: var(--flower); color: #fff; font-weight: 700; font-size: 15px; text-decoration: none;
    box-shadow: 0 10px 26px rgba(214, 52, 109, .35); }
  .ask-float:hover { filter: brightness(.92); }
}

/* the local help page: no photo, just the words and the way to reach me, on a light band */
.page-head.plain { background: linear-gradient(180deg, var(--paper) 0%, var(--band) 100%); padding-bottom: 56px; }
@media (max-width: 640px) { .page-head.plain { padding-bottom: 40px; } }

/* "rules change, check with the officials": fine print with a small info mark, not a coloured box */
.article blockquote.fine { position: relative; background: none; border: 0; border-radius: 0; margin: 28px 0; padding: 0 0 0 26px;
  font-size: 13.5px; line-height: 1.7; color: var(--muted); }
.article blockquote.fine::before { content: "i"; position: absolute; left: 0; top: 2px; width: 17px; height: 17px; border-radius: 50%;
  border: 1.3px solid currentColor; font: italic 700 11px/15px Georgia, serif; text-align: center; }
.article blockquote.fine strong { color: var(--muted); }
