/* CCMB Immigration — site styles
   Concept: charcoal and the logo's gold. The licence stamp is the one bold element. */
/* Layout: charcoal header and bands frame a quiet light page; the logo gold is the only accent. */
:root {
  --paper: #f4f4f2;
  --surface: #ffffff;
  --ink: #1f2124;
  --muted: #5b5f66;
  --line: #deded9;
  --navy: #2e3135;          /* charcoal: buttons, links, structure */
  --navy-ink: #ffffff;
  --navy-deep: #26282c;     /* header, bands, footer */
  --gold: #c6aa5c;          /* logo gold, used on charcoal */
  --stamp: #a3843a;         /* gold dark enough to read on light paper */
  --alert: #a3302b;
  --band-text: #cfd0d3;
  --focus: #2f6fdb;

  --f-display: "Noto Serif TC", "Noto Serif SC", "Noto Serif", "Songti TC", "PMingLiU", Georgia, serif;
  --f-body: "Noto Sans TC", "Noto Sans SC", "Noto Sans", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;

  --s-1: clamp(2rem, 1.4rem + 2.6vw, 3.25rem);
  --s-2: clamp(1.5rem, 1.25rem + 1vw, 2rem);
  --s-3: 1.25rem;
  --s-body: 1.0625rem;
  --s-small: 0.9375rem;

  --wrap: 1120px;
  --radius: 10px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #17181b; --surface: #202226; --ink: #ecebe7; --muted: #a8aaae; --line: #34373c;
    --navy: #d1b469; --navy-ink: #1a1b1e; --navy-deep: #0f1012; --gold: #d1b469; --stamp: #d1b469;
    --alert: #ec8f86; --band-text: #b9babd; --focus: #8fb4ff; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #17181b; --surface: #202226; --ink: #ecebe7; --muted: #a8aaae; --line: #34373c;
  --navy: #d1b469; --navy-ink: #1a1b1e; --navy-deep: #0f1012; --gold: #d1b469; --stamp: #d1b469;
  --alert: #ec8f86; --band-text: #b9babd; --focus: #8fb4ff; color-scheme: dark;
}
html:lang(zh-Hans) { --f-display: "Noto Serif SC", "Noto Serif TC", "Songti SC", Georgia, serif; --f-body: "Noto Sans SC", "Noto Sans TC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif; }
html:lang(en) { --f-display: "Noto Serif", Georgia, serif; --f-body: "Noto Sans", "Noto Sans TC", system-ui, sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--f-body); font-size: var(--s-body); line-height: 1.75;
}
img { max-width: 100%; height: auto; }
a { color: var(--navy); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 700; line-height: 1.3; text-wrap: balance; margin: 0; letter-spacing: 0.01em; }
h1 { font-size: var(--s-1); }
h2 { font-size: var(--s-2); }
h3 { font-size: var(--s-3); }
p { margin: 0; }
.wrap {
  max-width: var(--wrap); margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 50; background: var(--surface); padding: 8px 12px; }

/* ---------- header ---------- */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--surface); }
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--surface); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; gap: 20px; min-height: 68px; }
.brand { display: flex; align-items: baseline; gap: 8px; text-decoration: none; color: var(--ink); flex-shrink: 0; }
.brand-mark { font-family: var(--f-display); font-weight: 700; font-size: 1.6rem; letter-spacing: 0.06em; color: var(--navy); }
.brand-sub { font-size: 0.8125rem; color: var(--muted); letter-spacing: 0.04em; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { text-decoration: none; color: var(--ink); padding: 8px 10px; border-radius: 6px; font-size: var(--s-small); white-space: nowrap; }
.nav a:hover { background: var(--paper); }
.nav a[aria-current="page"] { color: var(--navy); font-weight: 700; box-shadow: inset 0 -2px 0 var(--navy); border-radius: 0; }
.langs { display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; flex-shrink: 0; }
.langs a { text-decoration: none; color: var(--muted); font-size: 0.875rem; padding: 4px 11px; line-height: 1.6; }
.langs a[aria-current="true"] { background: var(--navy); color: var(--navy-ink); }
.menu { display: none; margin-left: auto; }
.menu summary { white-space: nowrap; list-style: none; cursor: pointer; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; font-size: var(--s-small); }
.menu summary::-webkit-details-marker { display: none; }
.menu[open] .menu-panel { display: flex; }
.menu-panel { display: none; flex-direction: column; position: absolute; left: 0; right: 0; top: 100%; background: var(--surface); border-bottom: 1px solid var(--line); padding: 8px max(16px, env(safe-area-inset-right, 0px)) 16px max(16px, env(safe-area-inset-left, 0px)); }
.menu-panel a { padding: 12px 4px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.menu-panel a[aria-current="page"] { color: var(--navy); font-weight: 700; }
@media (max-width: 420px) { .brand-sub { display: none; } .bar { gap: 12px; } }
@media (max-width: 1000px) {
  .nav { display: none; }
  .menu { display: block; }
  .site-header .wrap { position: relative; }
}

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; font-weight: 700; font-size: 1rem; padding: 12px 22px; border-radius: 8px; border: 2px solid var(--navy); line-height: 1.3; text-align: center; }
.btn-solid { background: var(--navy); color: var(--navy-ink); }
.btn-solid:hover { background: var(--navy-deep); border-color: var(--navy-deep); color: var(--navy-ink); }
.btn-line { background: transparent; color: var(--navy); }
.btn-line:hover { background: var(--surface); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- hero ---------- */
.hero { padding-block: clamp(40px, 7vw, 88px) clamp(32px, 5vw, 64px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.hero h1 { max-width: 18em; }
html:lang(en) .hero h1 { max-width: 15em; }
.hero-text { color: var(--muted); margin-top: 20px; max-width: 34em; font-size: 1.125rem; }
.hero .btn-row { margin-top: 32px; }
.stamp-wrap { display: flex; justify-content: center; }
.stamp { width: min(320px, 70vw); aspect-ratio: 1; max-width: 100%; transform: rotate(-9deg); color: var(--stamp); }
.stamp text { fill: var(--stamp); }
.stamp .ring { fill: none; stroke: var(--stamp); }
@media (prefers-reduced-motion: no-preference) {
  .stamp { animation: press 700ms cubic-bezier(.2,.9,.3,1.3) 200ms both; }
  @keyframes press { from { transform: rotate(-2deg) scale(1.25); opacity: .4; } to { transform: rotate(-9deg) scale(1); opacity: 1; } }
}
@media (max-width: 760px) {
  .hero-grid { grid-template-columns: 1fr; gap: 24px; }
  .stamp-wrap { order: -1; justify-content: flex-start; }
  .stamp { width: 148px; }
}

/* ---------- contact channels ---------- */
.channels { padding-block: 28px; border-block: 1px solid var(--line); background: var(--surface); }
.channels-head { font-size: var(--s-small); color: var(--muted); margin-bottom: 12px; }
.chan-list { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.chan-list a { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); border: 1px solid var(--line); border-radius: 999px; padding: 7px 16px 7px 12px; font-size: var(--s-small); background: var(--paper); }
.chan-list a:hover { border-color: var(--navy); color: var(--navy); }
.chan-list .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--navy); flex-shrink: 0; }
.chan-list a[data-id="booking"] { background: var(--navy); color: var(--navy-ink); border-color: var(--navy); }
.chan-list a[data-id="booking"] .dot { background: var(--navy-ink); }

/* ---------- sections ---------- */
.section { padding-block: clamp(48px, 7vw, 88px); }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px 24px; margin-bottom: 32px; }
.section-alt { background: var(--surface); border-block: 1px solid var(--line); }

.svc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 0 40px; }
.svc-grid a { display: block; text-decoration: none; color: inherit; padding-block: 18px; border-top: 1px solid var(--line); }
.svc-grid a:hover h3 { color: var(--navy); text-decoration: underline; text-underline-offset: 4px; }
.svc-grid p { color: var(--muted); font-size: var(--s-small); margin-top: 4px; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; counter-reset: step; }
.steps li { counter-increment: step; border-top: 2px solid var(--navy); padding-top: 14px; min-width: 0; }
.steps li::before { content: counter(step); font-family: var(--f-display); font-weight: 700; font-size: 1.75rem; color: var(--navy); line-height: 1; display: block; margin-bottom: 10px; font-variant-numeric: tabular-nums; }
.steps h3 { font-size: 1.0625rem; }
.steps p { color: var(--muted); font-size: var(--s-small); margin-top: 6px; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .steps { grid-template-columns: 1fr; } }

.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 48px; align-items: start; }
.licence { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 24px; }
.licence dl { margin: 16px 0 0; display: grid; gap: 10px; }
.licence dt { font-size: 0.8125rem; color: var(--muted); }
.licence dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.licence .role { color: var(--muted); font-size: var(--s-small); margin-top: 4px; }
.prose { display: grid; gap: 16px; max-width: 38em; }
@media (max-width: 760px) { .about { grid-template-columns: 1fr; gap: 24px; } }

.cta-band { background: var(--navy-deep); color: #f4f3ef; }
.cta-band .wrap { display: grid; grid-template-columns: minmax(0, 1.4fr) auto; gap: 24px 48px; align-items: center; padding-block: 56px; }
.cta-band p { color: var(--band-text); margin-top: 10px; max-width: 36em; }
.cta-band .btn-solid { background: var(--gold); color: #1f2124; border-color: var(--gold); }
.cta-band .btn-solid:hover { background: #d8bf76; border-color: #d8bf76; color: #1f2124; }
.cta-band h2 { color: var(--gold); }
.cta-band .btn-line { color: #ffffff; border-color: #6d7076; }
@media (max-width: 760px) { .cta-band .wrap { grid-template-columns: 1fr; } }

/* ---------- inner pages ---------- */
.page-head { padding-block: clamp(36px, 6vw, 64px) 8px; }
.crumbs { font-size: 0.875rem; color: var(--muted); margin-bottom: 12px; }
.crumbs a { color: var(--muted); }
.lead { color: var(--muted); margin-top: 16px; max-width: 40em; font-size: 1.125rem; }
.note { font-size: 0.875rem; color: var(--muted); margin-top: 12px; }

.jump { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 28px 0 0; }
.jump a { display: inline-block; text-decoration: none; font-size: var(--s-small); color: var(--navy); border: 1px solid var(--line); background: var(--surface); padding: 6px 14px; border-radius: 999px; }
.svc-group { padding-block: 40px; border-top: 1px solid var(--line); scroll-margin-top: 90px; }
.svc-group:first-of-type { border-top: 0; }
.svc-group > p { color: var(--muted); margin-top: 6px; }
.svc-items { list-style: none; padding: 0; margin: 20px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 12px 40px; }
.svc-items li { padding-block: 14px; border-bottom: 1px dashed var(--line); min-width: 0; }
.svc-items h3 { font-family: var(--f-body); font-size: 1.0625rem; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.svc-items p { color: var(--muted); font-size: var(--s-small); margin-top: 4px; }
.status { font-family: var(--f-body); font-size: 0.75rem; font-weight: 700; color: var(--alert); border: 1.5px solid var(--alert); padding: 1px 8px; border-radius: 4px; letter-spacing: 0.03em; white-space: nowrap; }
.svc-items li.is-paused h3 > span:first-child { color: var(--muted); }

.panels { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 20px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.panel p { color: var(--muted); font-size: var(--s-small); }
.panel .btn { margin-top: auto; align-self: flex-start; }
.panel ul { margin: 0; padding-left: 1.2em; color: var(--muted); font-size: var(--s-small); }
.price { font-family: var(--f-display); font-weight: 700; font-size: 2rem; color: var(--ink); font-variant-numeric: tabular-nums; line-height: 1.2; }
.price small { font-family: var(--f-body); font-size: 0.875rem; color: var(--muted); font-weight: 400; margin-right: 4px; }
.who { font-size: 0.8125rem !important; }

.checklist { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 10px; }
.checklist li { padding-left: 30px; position: relative; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 0.45em; width: 16px; height: 16px; border: 2px solid var(--navy); border-radius: 3px; }

.office { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 20px 40px; }
.office dt { font-size: 0.8125rem; color: var(--muted); }
.office dd { margin: 4px 0 0; }
.phone { font-variant-numeric: tabular-nums; font-weight: 700; }

.qr { margin-top: 28px; display: inline-block; background: #ffffff; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); }
.qr img { display: block; width: 260px; }
.empty { margin-top: 24px; border: 1px dashed var(--line); border-radius: var(--radius); padding: 28px; background: var(--surface); max-width: 40em; display: grid; gap: 16px; justify-items: start; }
.ig-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 326px), 1fr)); gap: 20px; margin-top: 32px; }
.ig-grid .instagram-media { min-width: 0 !important; width: 100% !important; margin: 0 !important; }

/* ---------- footer ---------- */
.site-footer { background: var(--navy-deep); color: var(--band-text); font-size: var(--s-small); }
.site-footer .wrap { padding-block: 48px 40px; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr); gap: 32px; }
.site-footer a { color: #ecebe7; }
.site-footer h2 { font-family: var(--f-body); font-size: 0.875rem; color: #ffffff; margin-bottom: 10px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.foot-logo { display: block; width: 120px; height: auto; }
.fine { grid-column: 1 / -1; border-top: 1px solid #3a3d42; padding-top: 20px; font-size: 0.8125rem; color: #9a9ca1; display: grid; gap: 8px; }
@media (max-width: 760px) { .site-footer .wrap { grid-template-columns: 1fr; } }

/* ---------- mobile action bar ---------- */
.action-bar { display: none; }
@media (max-width: 760px) {
  .action-bar { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--surface); border-top: 1px solid var(--line); padding: 10px max(12px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px)); }
  .action-bar a { text-decoration: none; text-align: center; font-weight: 700; font-size: 0.9375rem; padding: 11px 6px; border-radius: 8px; border: 1.5px solid var(--navy); color: var(--navy); }
  .action-bar a:first-child { background: var(--navy); color: var(--navy-ink); }
  body { padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
}
.panels-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }

/* ---------- charcoal header with logo ---------- */
body::before { background: var(--navy-deep); }
.site-header { background: var(--navy-deep); border-bottom: 1px solid #3a3d42; }
.bar { min-height: 76px; }
.brand { align-items: center; }
.brand img { display: block; height: 56px; width: auto; }
.nav a { color: #e4e3df; }
.nav a:hover { background: #34373c; }
.nav a[aria-current="page"] { color: var(--gold); box-shadow: inset 0 -2px 0 var(--gold); }
.langs { border-color: #4a4d53; }
.langs a { color: #b9babd; }
.langs a[aria-current="true"] { background: var(--gold); color: #1f2124; }
.login { flex-shrink: 0; text-decoration: none; font-weight: 700; font-size: 0.875rem; color: #1f2124; background: var(--gold); padding: 7px 14px; border-radius: 6px; white-space: nowrap; }
.login:hover { background: #d8bf76; }
.menu summary { color: #e4e3df; border-color: #4a4d53; }
.menu-panel { background: var(--navy-deep); border-bottom-color: #3a3d42; }
.menu-panel a { color: #e4e3df; border-bottom-color: #3a3d42; }
.menu-panel a[aria-current="page"] { color: var(--gold); }
@media (max-width: 560px) { .brand img { height: 46px; } .login { padding: 6px 10px; font-size: 0.8125rem; } .langs a { padding: 4px 8px; } }
@media (max-width: 380px) { .langs { display: none; } }
.hero h1 { color: var(--ink); }
.panel-feature { border: 2px solid var(--gold); }
.other-link { margin-top: 16px; }
.panels-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.dur { font-size: 0.8125rem !important; }
.direct { display: block; margin-top: 8px; font-size: var(--s-small); font-weight: 700; color: var(--stamp); }
.portal-main { flex-direction: row; align-items: center; justify-content: space-between; gap: 20px 40px; flex-wrap: wrap; padding: 32px; }
.portal-main h2 { font-size: var(--s-2); }
.portal-main p { margin-top: 8px; font-size: 1rem; }
.portal-main .btn { margin-top: 0; align-self: center; }
.policy h2 { font-size: 1.25rem; margin-top: 12px; }

/* ---------- contact icons ---------- */
.chan-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 16px 12px; }
.chan-grid a { display: flex; flex-direction: column; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); text-align: center; padding: 6px 2px; border-radius: 12px; }
.chan-grid a:hover .chan-icon { border-color: var(--gold); }
.chan-icon { width: 68px; height: 68px; border-radius: 50%; background: var(--paper); border: 1.5px solid var(--line); display: grid; place-items: center; color: var(--ink); }
.chan-icon svg, .chan-icon img { width: 40px; height: 40px; display: block; }
.chan-label { font-size: 0.875rem; font-weight: 700; line-height: 1.3; }
@media (max-width: 760px) { .chan-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 6px; } .chan-icon { width: 56px; height: 56px; } .chan-icon svg, .chan-icon img { width: 32px; height: 32px; } .chan-label { font-size: 0.75rem; } }
/* ---------- back to top ---------- */
.to-top { position: fixed; right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(24px + env(safe-area-inset-bottom, 0px)); z-index: 31; width: 46px; height: 46px; border-radius: 50%; background: var(--navy-deep); color: var(--gold); display: grid; place-items: center; box-shadow: 0 2px 8px rgba(0,0,0,.25); }
.to-top[hidden] { display: none; }
.to-top svg { width: 24px; height: 24px; }
@media (max-width: 760px) { .to-top { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); } }

/* ---------- process timeline ---------- */
.flow { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.flow > li { display: grid; grid-template-columns: 96px minmax(0, 1fr) minmax(0, 1.25fr); gap: 0 24px; align-items: center; position: relative; }
.flow > li:not(:last-child)::after { content: ""; position: absolute; left: 47px; top: 100px; bottom: -22px; border-left: 2px dashed var(--gold); }
.flow-icon { position: relative; width: 96px; height: 96px; border-radius: 50%; background: var(--paper); border: 1.5px solid var(--line); display: grid; place-items: center; color: var(--ink); }
.flow-icon svg { width: 52px; height: 52px; }
.flow-num { position: absolute; left: -6px; top: -6px; width: 32px; height: 32px; border-radius: 50%; background: var(--gold); color: #1f2124; font-family: var(--f-display); font-weight: 700; display: grid; place-items: center; font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.flow-main { background: var(--paper); border-radius: var(--radius); padding: 18px 20px; }
.flow-main h3 { font-size: 1.25rem; }
.flow-main p { color: var(--muted); font-size: var(--s-small); margin-top: 4px; }
.flow-points { margin: 0; padding: 16px 20px 16px 36px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); font-size: var(--s-small); color: var(--ink); display: grid; gap: 4px; }
.flow-points li::marker { color: var(--gold); }
@media (max-width: 760px) {
  .flow { gap: 16px; }
  .flow > li { grid-template-columns: 64px minmax(0, 1fr); gap: 0 14px; }
  .flow > li:not(:last-child)::after { left: 31px; top: 68px; bottom: -16px; }
  .flow-icon { width: 64px; height: 64px; }
  .flow-icon svg { width: 36px; height: 36px; }
  .flow-num { width: 24px; height: 24px; font-size: 0.85rem; left: -4px; top: -4px; }
  .flow-main { background: transparent; padding: 0; }
  .flow-main h3 { font-size: 1.0625rem; }
  .flow-points { display: none; }
}
.chan-icon.brand { background: none; border: 0; }
.chan-icon.brand img { width: 56px; height: 56px; }
@media (max-width: 760px) { .chan-icon.brand img { width: 48px; height: 48px; } }
.chan-label.phone { white-space: nowrap; font-size: 0.8125rem; }
@media (max-width: 760px) { .chan-label.phone { font-size: 0.75rem; } }
/* uniform icon size: every contact icon occupies the same box */
.chan-icon { width: 56px; height: 56px; }
.chan-icon svg { width: 32px; height: 32px; }
.chan-icon.brand img { width: 56px; height: 56px; border-radius: 14px; }
@media (max-width: 760px) {
  .chan-icon { width: 48px; height: 48px; }
  .chan-icon svg { width: 28px; height: 28px; }
  .chan-icon.brand img { width: 48px; height: 48px; border-radius: 12px; }
}

/* one gold for every contact icon */
.chan-icon { --gold: var(--stamp); color: var(--stamp); background: var(--paper); border: 1.5px solid var(--line); }
.chan-grid a:hover .chan-icon { border-color: var(--stamp); }
.glyph { display: block; width: 28px; height: 28px; background: var(--stamp); -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; }
@media (max-width: 760px) { .glyph { width: 24px; height: 24px; } }

.inapp-tip { margin-top: 10px; font-size: 0.8125rem; color: var(--stamp); max-width: 30em; }
.portal-main .inapp-tip { margin-top: 8px; }

/* ---------- in-page popup ---------- */
.pop { border: 0; border-radius: 14px; padding: 0; width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 48px); background: var(--surface); color: var(--ink); box-shadow: 0 20px 60px rgba(0,0,0,.35); }
.pop::backdrop { background: rgba(20,21,24,.6); }
.pop-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.pop-head h2 { font-size: 1.125rem; }
.pop-x { border: 0; background: none; color: var(--ink); font-size: 1.75rem; line-height: 1; cursor: pointer; padding: 0 4px; }
.pop-body { padding: 20px; display: grid; gap: 12px; justify-items: center; text-align: center; }
.pop-note { color: var(--muted); font-size: var(--s-small); }
.pop-qr { background: #fff; padding: 12px; border-radius: 10px; border: 1px solid var(--line); }
.pop-qr img, .pop-qr canvas { display: block; }
.pop-num { font-size: 1.75rem; font-weight: 700; font-variant-numeric: tabular-nums; user-select: all; }
.pop-frame { width: 100%; height: min(70vh, 640px); border: 0; border-radius: 8px; background: #fff; }
.pop:has(.pop-frame) { width: min(760px, calc(100vw - 32px)); }
.pop:has(.pop-frame) .pop-body { padding: 0 0 8px; }
@media (max-width: 760px) { .pop { width: 100vw; max-width: 100vw; max-height: 100dvh; height: 100dvh; margin: 0; border-radius: 0; } .pop:has(.pop-frame) { width: 100vw; } .pop-frame { height: calc(100dvh - 70px); } }
.pop-card { width: min(320px, 100%); height: auto; border-radius: 10px; display: block; }

/* ---------- cookie consent ---------- */
.cookie-bar { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 40; max-width: 720px; margin-inline: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding: 16px 20px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 12px 40px rgba(0,0,0,.25); }
.cookie-bar[hidden] { display: none; }
.cookie-bar p { flex: 1 1 280px; font-size: var(--s-small); line-height: 1.6; }
.cookie-btns { display: flex; gap: 8px; margin-left: auto; }
.cookie-btns .btn { padding: 8px 18px; }
@media (max-width: 760px) { .cookie-bar { left: 8px; right: 8px; bottom: calc(96px + env(safe-area-inset-bottom, 0px)); padding: 14px 16px; } .cookie-btns { width: 100%; } .cookie-btns .btn { flex: 1; } }
