/* usa-eb5.com — Global Immigrate EB-5 Practice */

:root {
  /* Matches globalimmigrate.com (assets/styles.css) */
  --ledger: #01334A;      /* Global Immigrate logo blue */
  --ledger-deep: #00233A;
  --paper: #FFFFFF;       /* page background */
  --sheet: #FFFFFF;       /* memo sheet, form fields */
  --ink: #1E2226;         /* headings and strong text */
  --ink-soft: #60666E;    /* secondary text */
  --text: #4C5259;        /* body text */
  --mist: #F4F5F6;        /* quiet panels */
  --line: #DCDFE3;        /* rules, borders */
  --line-soft: #ECEEF0;
  --brass: #9A7B45;       /* EB-5 practice accent: memo seal and active markers only */
  --oxblood: #8A2E2B;     /* risk notes only */
  --ok: #2E6B4F;

  --serif: "Noto Serif TC", "Songti TC", serif;
  --sans: "Noto Sans TC", "Public Sans", -apple-system, "PingFang TC", "Microsoft JhengHei", sans-serif;

  --measure: 40em;
  --wrap: 1200px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --radius: 0;
}
html[lang="zh-CN"] {
  --serif: "Noto Serif SC", "Source Serif 4", Georgia, serif;
  --sans: "Noto Sans SC", "Public Sans", -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
}
html[lang="en"] {
  --serif: "Source Serif 4", Georgia, serif;
  --sans: "Public Sans", -apple-system, "Segoe UI", sans-serif;
  --measure: 36em;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 6rem; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
html[lang="en"] body { line-height: 1.6; }
img { max-width: 100%; height: auto; }
a { color: var(--ledger); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--brass); outline-offset: 2px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ledger); color: #fff; padding: .5rem 1rem; z-index: 50; }
.skip:focus { left: 1rem; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; color: var(--ink); line-height: 1.3; margin: 0 0 .6em; }
html[lang="en"] h1, html[lang="en"] h2, html[lang="en"] h3 { font-weight: 600; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.1rem); line-height: 1.22; }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.1vw, 2.05rem); }
h3 { font-size: 1.25rem; }
p, ul, ol { margin: 0 0 1.1em; }
p, li { max-width: var(--measure); }
small, .fine { font-size: .875rem; color: var(--ink-soft); }

.wrap { max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Deadline notice ---------- */
.notice { background: var(--ledger-deep); color: #E9EFEC; font-size: .9rem; }
.notice .wrap { display: flex; gap: 1rem; align-items: center; justify-content: space-between; padding-top: .55rem; padding-bottom: .55rem; }
.notice a { color: #fff; }
.notice button { background: none; border: 0; color: inherit; font: inherit; cursor: pointer; padding: .25rem .5rem; }
.notice[hidden] { display: none; }

/* ---------- Header (mirrors globalimmigrate.com) ---------- */
.topbar { border-bottom: 1px solid var(--line-soft); font-size: 13px; color: var(--ink-soft); }
.topbar .wrap { height: 40px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.topbar nav { display: flex; align-items: center; }
.topbar nav > * { padding: 0 14px; line-height: 1; color: var(--ink-soft); text-decoration: none; }
.topbar nav > * + * { border-left: 1px solid var(--line); }
.topbar nav > :last-child { padding-right: 0; }
.topbar a:hover { color: var(--ink); }
.topbar a[aria-current="true"] { color: var(--ink); font-weight: 500; }
html[lang="vi"] .topbar .tel { display: none; }
@media (max-width: 700px) { .topbar__group, .topbar .tel { display: none; } .topbar .wrap { justify-content: flex-end; } .topbar nav > * { padding: 0 10px; } }

.site-header { position: sticky; top: 0; z-index: 20; background: var(--paper); border-bottom: 1px solid var(--line-soft); }
.site-header .wrap { display: flex; align-items: center; gap: 2rem; min-height: 88px; }
.brand { flex: none; display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ledger); line-height: 1.2; margin-right: auto; }
.brand img { width: 48px; height: auto; }
.brand-text { display: flex; flex-direction: column; gap: 3px; white-space: nowrap; }
.brand-en { font-family: "Cormorant Garamond", var(--serif); font-size: 15px; font-weight: 600; letter-spacing: 3px; }
.brand-zh { font-size: 15px; font-weight: 500; letter-spacing: 4px; }
.brand-practice { font-size: 12px; color: var(--ink-soft); letter-spacing: .5px; padding-left: 12px; margin-left: 2px; border-left: 1px solid var(--line); align-self: stretch; display: flex; align-items: center; }
.nav { display: flex; align-items: center; gap: 2rem; align-self: stretch; }
.nav a { color: var(--text); text-decoration: none; font-size: 15px; font-weight: 500; display: flex; align-items: center; border-bottom: 2px solid transparent; white-space: nowrap; }
html[lang="en"] .nav { gap: 1.5rem; }
html[lang="en"] .brand-zh { font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif; }
.nav > a:not(.btn) { align-self: stretch; }
.nav a:hover { color: var(--ink); border-bottom-color: var(--ledger); }
.nav a[aria-current="page"] { border-bottom-color: var(--ledger); color: var(--ink); }
.menu-btn { display: none; }
/* nav panels (same pattern as globalimmigrate.com: full-width panel, no animation) */
.nav-dd { display: flex; align-items: stretch; }
.nav-dd__btn { display: flex; align-items: center; gap: 6px; padding: 0; border: 0; border-bottom: 2px solid transparent; background: none; font: inherit; font-size: 15px; font-weight: 500; color: var(--text); cursor: pointer; white-space: nowrap; }
.nav-dd__btn svg { transition: transform .2s; }
.nav-dd__btn[aria-expanded="true"], .nav-dd:has(a[aria-current="page"]) .nav-dd__btn { color: var(--ink); border-bottom-color: var(--ledger); }
.nav-dd__btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.nav-dd__sub { position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-top: 1px solid var(--line-soft); box-shadow: 0 20px 40px rgba(30,34,38,.16); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; padding: 36px max(var(--gutter), calc((100% - var(--wrap)) / 2)) 40px; z-index: 30; }
.nav-dd__sub[hidden] { display: none; }
.nav .nav-dd__sub a { display: flex; flex-direction: column; align-items: flex-start; text-align: left; gap: 4px; padding: 12px; margin: -12px; border-bottom: 0; white-space: normal; align-self: auto; }
.nav .nav-dd__sub a:hover { background: var(--mist); border-bottom: 0; }
.nav .nav-dd__sub a b { font-weight: 500; color: var(--ink); }
.nav .nav-dd__sub a small { font-size: 13px; color: var(--ink-soft); line-height: 1.6; font-weight: 400; }
.nav .nav-dd__sub a[aria-current="page"] b { color: var(--ledger); font-weight: 700; }
/* floating contact buttons (same as globalimmigrate.com) */
.fc-wa { position: relative; display: inline-flex; }
.wa-menu { position: absolute; right: 0; bottom: calc(100% + 10px); min-width: 236px; background: #fff; border: 1px solid var(--line); box-shadow: 0 12px 32px rgba(30,34,38,.22); display: flex; flex-direction: column; z-index: 5; }
.wa-menu[hidden] { display: none; }
.wa-menu a { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 13px 16px; font-size: 14px; font-weight: 600; color: var(--ink, #1c2530); text-decoration: none; white-space: nowrap; }
.wa-menu a + a { border-top: 1px solid var(--line); }
.wa-menu a:hover { background: #F4F5F6; }
.wa-menu small { font-size: 12.5px; font-weight: 400; color: #60666E; }
@media (max-width: 600px) { .fc-wa { flex: 1; min-width: 0; } .fc-wa > .fc { flex: 1; } .wa-menu { left: 0; right: auto; } }
.float-contact { position: fixed; right: 24px; bottom: 24px; z-index: 25; display: flex; gap: 8px; align-items: center; }
.float-contact .fc { width: 52px; height: 52px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff; box-shadow: 0 8px 22px rgba(30,34,38,.18); transition: transform .15s; text-decoration: none; border: 0; }
.float-contact .fc:hover { transform: translateY(-2px); color: #fff; }
.float-contact .fc svg { width: 28px; height: 28px; }
.float-contact .fc span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.fc--wa { background: #25D366; } .fc--line { background: #06C755; } .fc--wechat { background: #07C160; }
.float-contact .is-primary { height: 52px; padding: 0 22px; border-radius: 26px; display: inline-flex; align-items: center; background: var(--ledger); border: 1px solid var(--ledger); color: #fff; font-size: 14px; font-weight: 500; box-shadow: 0 8px 22px rgba(30,34,38,.18); text-decoration: none; }
.float-contact .is-primary:hover { background: var(--ledger-deep); color: #fff; }
@media (max-width: 600px) {
  .float-contact { left: 0; right: 0; bottom: 0; width: 100%; box-sizing: border-box; padding: 8px 10px calc(10px + env(safe-area-inset-bottom, 0px)); gap: 6px; background: #fff; border-top: 1px solid var(--line); align-items: stretch; }
  .float-contact .fc { width: auto; height: auto; min-height: 56px; border-radius: 8px; flex: 1; min-width: 0; flex-direction: column; gap: 3px; box-shadow: none; }
  .float-contact .fc svg { width: 22px; height: 22px; }
  .float-contact .fc span { position: static; width: auto; height: auto; clip: auto; font-size: 11px; }
  .float-contact .is-primary { flex: 1.4; height: auto; min-height: 56px; border-radius: 8px; justify-content: center; box-shadow: none; padding: 0 8px; font-size: 13px; }
  body { padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
}

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; font: inherit; font-weight: 500; font-size: 15px; text-decoration: none; cursor: pointer;
  padding: 0 30px; border-radius: 0; border: 1px solid var(--ledger); line-height: 1.3; text-align: center; }
.btn-primary { background: var(--ledger); color: #fff; }
.btn-primary:hover { background: var(--ledger-deep); }
.btn-quiet { background: transparent; color: var(--ledger); }
.btn-quiet:hover { background: #E8EEF1; }
.nav .btn { min-height: 46px; padding: 0 22px; align-self: center; color: #fff; border-bottom: 1px solid var(--ledger); }
.nav .btn:hover { color: #fff; border-bottom-color: var(--ledger-deep); }

@media (max-width: 1180px) {
  .brand-practice { display: none; }
  .menu-btn { display: inline-flex; align-items: center; white-space: nowrap; min-height: 44px; background: none; border: 1px solid var(--line); font: inherit; font-size: 14px; padding: 0 1rem; color: var(--ink); cursor: pointer; }
  .site-header .wrap { min-height: 72px; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: 0; padding: .5rem var(--gutter) 1.25rem; box-shadow: 0 20px 40px rgba(30,34,38,.12); }
  .nav.open { display: flex; }
  .nav a { padding: 1rem 0; border-bottom: 1px solid var(--line-soft); font-size: 16px; }
  .nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--line-soft); color: var(--ledger); }
  .nav .btn { margin-top: 1rem; align-self: stretch; }
  .nav { display: none !important; }
}

/* ---------- Hero ---------- */
.hero { padding: clamp(3rem, 7vw, 6rem) 0 clamp(3.5rem, 7vw, 6.5rem); background: var(--mist); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.hero .wrap > div:first-child { padding-top: clamp(0rem, 3vw, 2.5rem); }
.hero h1 { max-width: 15em; }
html[lang="en"] .hero h1 { max-width: 16em; font-size: clamp(2.1rem, 3.6vw, 3rem); line-height: 1.15; font-weight: 500; }
html[lang="en"] .hero .lede { line-height: 1.7; }
html[lang="en"] .hero .actions .btn { padding-left: 20px; padding-right: 20px; }
.hero .lede { font-size: 1.1rem; color: var(--text); line-height: 1.95; max-width: 32em; }
.hero .actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.75rem 0 1rem; }
.hero .fine { max-width: 34em; }
@media (max-width: 880px) { .hero .wrap { grid-template-columns: minmax(0, 1fr); } .memo { transform: none; } .memo th { white-space: normal; } }

/* The memo sheet: the one bold element on the site */
.memo { position: relative; background: var(--sheet); border: 1px solid var(--line); box-shadow: 0 1px 0 var(--line), 0 24px 48px -28px rgba(1,51,74,.45);
  padding: 1.6rem 1.6rem 1.2rem; font-size: .9rem; line-height: 1.55; transform: rotate(-.6deg); }
.memo::before { content: ""; position: absolute; inset: 0; border-top: 4px solid var(--ledger); pointer-events: none; }
.memo-head { display: grid; grid-template-columns: auto 1fr; gap: .2rem 1rem; padding-bottom: .9rem; margin-bottom: .4rem; border-bottom: 2px solid var(--ledger); }
.memo-head h2 { grid-column: 1 / -1; font-size: 1.15rem; margin: 0 0 .5rem; }
.memo-head dt { color: var(--ink-soft); }
.memo-head dd { margin: 0; }
.redact { display: inline-block; background: var(--ink); color: transparent; border-radius: 1px; user-select: none; padding: 0 .2em; line-height: 1.2; }
.memo table { width: 100%; border-collapse: collapse; }
.memo th, .memo td { text-align: left; vertical-align: top; padding: .55rem .4rem .55rem 0; border-bottom: 1px solid var(--mist); }
.memo th { font-weight: 600; width: 24%; color: var(--ledger-deep); white-space: nowrap; }
.memo td:last-child { width: 5.5em; text-align: right; padding-right: 0; white-space: nowrap; }
.mark { font-size: .8rem; font-weight: 600; }
.mark::before { content: ""; display: inline-block; width: .55em; height: .55em; margin-right: .35em; vertical-align: .05em; }
.mark-ok { color: var(--ok); }      .mark-ok::before { background: var(--ok); border-radius: 50%; }
.mark-watch { color: var(--brass); } .mark-watch::before { border: 2px solid var(--brass); border-radius: 50%; }
.mark-risk { color: var(--oxblood); } .mark-risk::before { background: var(--oxblood); transform: rotate(45deg); }
.memo-foot { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin-top: .9rem; color: var(--ink-soft); font-size: .8rem; }
.seal { flex: none; width: 4.6rem; height: 4.6rem; border-radius: 50%; border: 2px solid var(--brass); color: var(--brass); display: grid; place-items: center;
  text-align: center; font-family: var(--serif); font-size: .72rem; line-height: 1.25; transform: rotate(-12deg); }
.seal span { border-top: 1px solid var(--brass); border-bottom: 1px solid var(--brass); padding: .15rem .1rem; }
@media (prefers-reduced-motion: no-preference) {
  .memo { animation: settle .9s cubic-bezier(.2,.7,.2,1) .15s both; }
  .memo tbody tr { animation: ink .5s ease-out both; }
  .memo tbody tr:nth-child(1) { animation-delay: .55s; } .memo tbody tr:nth-child(2) { animation-delay: .7s; }
  .memo tbody tr:nth-child(3) { animation-delay: .85s; } .memo tbody tr:nth-child(4) { animation-delay: 1s; }
  .memo tbody tr:nth-child(5) { animation-delay: 1.15s; } .memo tbody tr:nth-child(6) { animation-delay: 1.3s; }
  .seal { animation: stamp .35s ease-out 1.6s both; }
}
@keyframes settle { from { opacity: 0; transform: translateY(14px) rotate(1.2deg); } to { opacity: 1; transform: rotate(-.6deg); } }
@keyframes ink { from { opacity: 0; } to { opacity: 1; } }
@keyframes stamp { from { opacity: 0; transform: scale(1.6) rotate(-12deg); } to { opacity: 1; transform: scale(1) rotate(-12deg); } }

/* ---------- Sections ---------- */
.section { padding: clamp(4.5rem, 9vw, 8.75rem) 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-mist { background: var(--mist); border-top: 0 !important; }
.section-head { max-width: 46rem; margin-bottom: 2.5rem; }
.section-head p { color: var(--ink-soft); font-size: 1.08rem; }

/* Framework rows: label column + body, separated by rules */
.rows { border-top: 2px solid var(--ledger); }
.row { display: grid; grid-template-columns: minmax(0, 18rem) minmax(0, 1fr); gap: 1rem 3rem; padding: 1.75rem 0; border-bottom: 1px solid var(--line); }
.row h3 { margin: 0; }
.row .k { font-size: .9rem; color: var(--ink-soft); margin-top: .35rem; }
.row ul { padding-left: 1.1em; margin-bottom: 0; }
.row li + li { margin-top: .35em; }
.row ul + p { margin-top: 1.1rem; }
@media (max-width: 760px) { .row { grid-template-columns: 1fr; gap: .5rem; } }

/* True sequences only */
.steps { list-style: none; padding: 0; margin: 0; counter-reset: s; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
.steps > li { counter-increment: s; border-top: 2px solid var(--ledger); padding-top: 1rem; max-width: none; }
.steps > li::before { content: counter(s); display: block; font-family: var(--serif); font-size: 2.4rem; line-height: 1; color: var(--brass); margin-bottom: .6rem; }
.steps h3 { font-size: 1.15rem; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }

.timeline { list-style: none; padding: 0; margin: 1.5rem 0 2rem; border-left: 2px solid var(--line); }
.timeline > li { position: relative; padding: 0 0 1.4rem 1.6rem; max-width: 44rem; }
.timeline > li::before { content: ""; position: absolute; left: -7px; top: .55em; width: 12px; height: 12px; border-radius: 50%; background: var(--paper); border: 2px solid var(--ledger); }
.timeline strong { display: block; color: var(--ledger-deep); }
.timeline .when { font-size: .9rem; color: var(--ink-soft); }

/* Callouts */
.note { border-left: 3px solid var(--brass); background: var(--sheet); padding: 1rem 1.25rem; margin: 1.5rem 0; max-width: 46rem; }
.note-risk { border-left-color: var(--oxblood); }
.note p:last-child, .note ul:last-child { margin-bottom: 0; }
.note strong:first-child { color: var(--ledger-deep); }
.note-risk strong:first-child { color: var(--oxblood); }

/* Tables */
.table-wrap { overflow-x: auto; margin: 1.25rem 0 1.75rem; max-width: 52rem; }
table.data { border-collapse: collapse; width: 100%; font-size: .95rem; background: var(--sheet); }
table.data th, table.data td { text-align: left; padding: .65rem .9rem; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data thead th { background: var(--ledger); color: #fff; font-weight: 500; }
table.data td.num, table.data th.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
caption { caption-side: bottom; text-align: left; font-size: .85rem; color: var(--ink-soft); padding-top: .5rem; }

/* Guide layout with contents column */
.page-head { padding: clamp(2.5rem, 5vw, 4rem) 0 2rem; border-bottom: 1px solid var(--line); }
.page-head p { font-size: 1.12rem; color: var(--ink-soft); max-width: 40em; }
.asof { font-size: .85rem; color: var(--ink-soft); }
.doc { display: grid; grid-template-columns: 15rem minmax(0, 1fr); gap: 3.5rem; padding-top: 3rem; padding-bottom: 4rem; }
.toc { position: sticky; top: 6rem; align-self: start; font-size: .92rem; }
.toc p { font-weight: 600; margin-bottom: .5rem; color: var(--ledger-deep); }
.toc ol { list-style: none; padding: 0; margin: 0; border-left: 1px solid var(--line); }
.toc a { display: block; padding: .3rem 0 .3rem .9rem; color: var(--ink-soft); text-decoration: none; margin-left: -1px; border-left: 2px solid transparent; }
.toc a:hover, .toc a.active { color: var(--ledger-deep); border-left-color: var(--brass); }
.doc article > section { padding-bottom: 2.5rem; margin-bottom: 2.5rem; border-bottom: 1px solid var(--line); }
.doc article > section:last-child { border-bottom: 0; }
.doc article h2 { margin-top: 0; }
.doc article h3 { margin-top: 1.75rem; }
@media (max-width: 900px) { .doc { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; } .toc { position: static; } }
.doc > *, .form-layout > * { min-width: 0; }

/* Checklists */
.check { list-style: none; padding: 0; }
.check li { position: relative; padding-left: 1.75rem; margin-bottom: .6rem; }
.check li::before { content: ""; position: absolute; left: 0; top: .45em; width: .9rem; height: .9rem; border: 1.5px solid var(--ledger); border-radius: 2px; }

/* Scenario profiles */
.profile { display: grid; grid-template-columns: minmax(0, 16rem) minmax(0, 1fr); gap: 1rem 3rem; padding: 2rem 0; border-bottom: 1px solid var(--line); }
.profile dl { margin: 0; font-size: .92rem; }
.profile dt { color: var(--ink-soft); }
.profile dd { margin: 0 0 .6rem; font-weight: 500; }
@media (max-width: 760px) { .profile { grid-template-columns: 1fr; } }

/* FAQ */
details.faq { border-bottom: 1px solid var(--line); max-width: 46rem; }
details.faq summary { cursor: pointer; padding: 1rem 2rem 1rem 0; font-weight: 600; list-style: none; position: relative; color: var(--ledger-deep); }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; position: absolute; right: .25rem; top: .85rem; font-size: 1.3rem; color: var(--brass); }
details.faq[open] summary::after { content: "−"; }
details.faq > div { padding-bottom: 1rem; }

/* CTA band */
.cta-band { background: var(--ledger); color: #E9EFEC; padding: clamp(3rem, 6vw, 4.5rem) 0; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #D3DEDA; }
.cta-band .wrap { display: grid; grid-template-columns: minmax(0, 1.4fr) auto; gap: 2rem; align-items: center; }
.cta-band .btn-primary { background: #fff; color: var(--ledger-deep); border-color: #fff; }
.cta-band .btn-primary:hover { background: var(--mist); }
.cta-band .btn-quiet { color: #fff; border-color: rgba(255,255,255,.55); }
.cta-band .btn-quiet:hover { background: rgba(255,255,255,.08); }
.cta-band .actions { display: flex; flex-wrap: wrap; gap: .75rem; }
@media (max-width: 820px) { .cta-band .wrap { grid-template-columns: 1fr; } }

/* ---------- Forms ---------- */
.form-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 3.5rem; padding-top: 3rem; padding-bottom: 4rem; }
@media (max-width: 900px) { .form-layout { grid-template-columns: minmax(0, 1fr); } }
form.intake { background: var(--sheet); border: 1px solid var(--line); border-top: 4px solid var(--ledger); padding: clamp(1.25rem, 3vw, 2.25rem); }
fieldset { border: 0; padding: 0; margin: 0 0 1.75rem; }
legend { font-family: var(--serif); font-weight: 600; font-size: 1.15rem; color: var(--ledger-deep); margin-bottom: .9rem; padding: 0; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.25rem; }
.fields .full { grid-column: 1 / -1; }
@media (max-width: 600px) { .fields { grid-template-columns: 1fr; } }
.q-label { display: block; font-size: .92rem; font-weight: 500; margin-bottom: .3rem; color: var(--ink); }
label { display: block; font-size: .92rem; font-weight: 500; margin-bottom: .3rem; }
.req { color: var(--oxblood); }
input[type=text], input[type=email], input[type=tel], input[type=date], input[type=number], select, textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--paper);
  border: 1px solid #AEB4BA; border-radius: var(--radius); padding: .6rem .75rem; min-height: 48px; line-height: 1.4; }
textarea { line-height: 1.6; }
textarea { min-height: 7rem; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--ledger); outline-offset: 0; border-color: var(--ledger); }
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem 1.25rem; }
@media (max-width: 600px) { .choices { grid-template-columns: 1fr; } }
.choices label, .consent label { display: flex; gap: .55rem; align-items: flex-start; font-weight: 400; }
.choices input, .consent input { margin-top: .4em; accent-color: var(--ledger); }
.hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-top: 1rem; font-weight: 500; }
.form-status.error { color: var(--oxblood); }
.form-done { padding: 1rem 0; }
.form-done h2 { font-size: 1.5rem; }
.aside h2 { font-size: 1.3rem; }
.contact-list { list-style: none; padding: 0; margin: 0 0 2rem; border-top: 1px solid var(--line); }
.contact-list li { display: grid; grid-template-columns: 7rem 1fr; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--line); }
.contact-list span { color: var(--ink-soft); font-size: .92rem; }
.booking-frame { width: 100%; min-height: 680px; border: 1px solid var(--line); background: var(--sheet); }

/* ---------- Office cards (footer + consultation) ---------- */
.office-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; margin-bottom: 2rem; }
.aside .office-cards { grid-template-columns: 1fr; }
.office-card { border-top: 2px solid var(--ledger, #0b3b34); padding: 1rem 0 .4rem; min-width: 0; }
.office-card h3 { font-size: 1.05rem; margin: 0 0 .6rem; }
.office-card h3 small { display: block; font-weight: 400; font-size: .85rem; color: var(--ink-soft); margin-top: .15rem; }
.office-card dl { margin: 0; display: grid; grid-template-columns: 5.5rem 1fr; gap: .4rem 1rem; font-size: .95rem; }
.office-card dt { color: var(--ink-soft); }
.office-card dd { margin: 0; overflow-wrap: anywhere; }
.office-card .lic { margin: .8rem 0 0; font-size: .82rem; color: var(--ink-soft); }
.footer-offices { border-top: 1px solid rgba(255,255,255,.18); padding-top: 1.5rem; margin-top: 1rem; }
.site-footer .office-card { border-top-color: rgba(255,255,255,.35); }
.site-footer .office-card h3 { color: #fff; }
.site-footer .office-card h3 small, .site-footer .office-card dt, .site-footer .office-card .lic { color: #9fb3ae; }
@media (max-width: 700px) { .office-cards { grid-template-columns: 1fr; } .office-card dl { grid-template-columns: 4.8rem 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--ledger-deep); color: #C9D5D1; font-size: .92rem; padding: 3rem 0 2rem; }
.site-footer a { color: #fff; }
.site-footer .cols { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 2rem; margin-bottom: 2rem; }
@media (max-width: 1000px) { .site-footer .cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } .site-footer .cols > :first-child { grid-column: 1 / -1; } }
.site-footer h2 { color: #fff; font-size: 1rem; margin-bottom: .6rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .35rem; }
.site-footer .operated { max-width: 34em; }
.site-footer .legal { border-top: 1px solid rgba(255,255,255,.15); padding-top: 1.25rem; font-size: .82rem; color: #A9BAB5; }
.site-footer .legal p { max-width: 60em; }
@media (max-width: 760px) { .site-footer .cols { grid-template-columns: 1fr; } }

@media print {
  .site-header, .notice, .cta-band, .site-footer, .toc { display: none; }
  .doc { display: block; }
}

.prose { max-width: 46rem; padding-top: 3rem; padding-bottom: 4rem; }
.prose-wide { padding-bottom: 4rem; }

@media (max-width: 420px) {
  .brand img { width: 40px; }
  .brand-en { font-size: 13px; letter-spacing: 2px; }
  .brand-zh { font-size: 13px; letter-spacing: 3px; }
}

.notice p { max-width: none; }
.section-flush { padding-bottom: 0; }
.section-flush .note { margin-bottom: 0; }

/* ---------- Byline ---------- */
.byline { font-size: .9rem; color: var(--ink-soft); margin-top: 1rem; }
.byline a { color: var(--ledger); }

/* ---------- Blog ---------- */
.post-meta { font-size: .9rem; color: var(--ink-soft); margin-bottom: .6rem; }
.post-meta a { color: var(--ink-soft); }
.post-list { padding-top: 1rem; padding-bottom: 4rem; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.post-list > p { grid-column: 1 / -1; }
.post-item { padding: 1.6rem 1.75rem; border: 1px solid var(--line); background: #fff; display: flex; flex-direction: column; }
.post-item h2 { font-size: 1.3rem; margin-bottom: .5rem; }
.post-item > p:last-child { margin-top: auto; padding-top: .5rem; }
@media (max-width: 720px) { .post-list { grid-template-columns: 1fr; } }
.post-item h2 a { color: var(--ink); text-decoration: none; }
.post-item h2 a:hover { color: var(--ledger); text-decoration: underline; }
.post-layout { display: grid; grid-template-columns: minmax(0, 1fr) 18rem; gap: 4rem; padding-top: 3rem; padding-bottom: 4rem; }
.post-layout > * { min-width: 0; }
.post-body { max-width: 44rem; }
.post-body h2 { font-size: 1.45rem; margin-top: 2.25rem; scroll-margin-top: 5.5rem; }
.toc { border: 1px solid var(--line); padding: 1rem 1.4rem; margin: 1.25rem 0 .5rem; }
.toc .toc-label { font-size: .85rem; font-weight: 600; color: var(--ledger); margin: 0 0 .4rem; }
.toc ol { margin: 0; padding-left: 1.4rem; }
.toc li { line-height: 1.9; }
.toc a { color: var(--ink); text-decoration: none; }
.toc a:hover { color: var(--ledger); text-decoration: underline; }
.post-body h3 { margin-top: 1.75rem; }
.post-body table { border-collapse: collapse; width: 100%; font-size: .95rem; margin: 1.25rem 0 1.75rem; display: block; overflow-x: auto; }
.post-body th, .post-body td { text-align: left; padding: .6rem .8rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.post-body thead th { background: var(--ledger); color: #fff; font-weight: 500; }
.post-body blockquote { margin: 1.5rem 0; padding: 1rem 1.25rem; border-left: 3px solid var(--brass); background: var(--mist); }
.post-body blockquote p:last-child { margin-bottom: 0; }
.post-disclaimer { border-top: 1px solid var(--line); padding-top: 1rem; margin-top: 2.5rem; }
.post-aside { align-self: start; position: sticky; top: 7rem; }
.post-aside h2 { font-size: 1.1rem; margin-top: 2rem; }
.post-aside .note { margin-top: 0; }
.post-aside .btn { width: 100%; }
.post-links { list-style: none; padding: 0; margin: 0; }
.post-links li { padding: .6rem 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
@media (max-width: 900px) { .post-layout { grid-template-columns: minmax(0, 1fr); gap: 2rem; } .post-aside { position: static; } }
@media (max-width: 1320px) { .brand-practice { display: none; } }

/* ---------- Tools ---------- */
form.tool { background: var(--sheet); border: 1px solid var(--line); border-top: 4px solid var(--ledger); padding: clamp(1.25rem, 3vw, 2rem); margin: 1.5rem 0; max-width: 46rem; }
form.tool .btn { margin-top: .5rem; }
.wait-field[hidden] { display: none; }
.tool-result { margin-top: 1.25rem; padding: 1.1rem 1.25rem; background: var(--mist); border-left: 4px solid var(--line); }
.tool-result.tool-ok { border-left-color: var(--ok); }
.tool-result.tool-edge { border-left-color: var(--brass); }
.tool-result.tool-wait { border-left-color: var(--oxblood); }
.tool-result ul { margin-bottom: .6rem; }
.tool-result p:last-child, .tool-result ul:last-child { margin-bottom: 0; }
.tool-block + .tool-block { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.tool-label { font-size: .88rem; color: var(--ink-soft); margin-bottom: .2rem; }
.tool-headline { font-family: var(--serif); font-size: 1.3rem; font-weight: 600; margin-bottom: .4rem; }
.tool-headline.ok { color: var(--ok); }
.tool-headline.wait { color: var(--oxblood); }
.tool-notes { font-size: .93rem; }

/* ---------- Glossary ---------- */
.glossary { margin: 0; }
.glossary dt { font-family: var(--serif); font-weight: 600; color: var(--ink); font-size: 1.12rem; padding-top: 1.25rem; border-top: 1px solid var(--line); scroll-margin-top: 7rem; }
.glossary dt span { font-family: var(--sans); font-weight: 400; font-size: .9rem; color: var(--ink-soft); margin-left: .4rem; }
.glossary dd { margin: .3rem 0 1.25rem; max-width: 40em; }
.glossary dd a { margin-left: .4rem; }

/* ---------- Articles and cases: answer-first summary, cover, FAQ, case facts ---------- */
.post-cover { display: block; width: 100%; height: auto; margin-bottom: 2rem; border: 1px solid var(--line); }
.key-points { background: var(--mist); border-left: 4px solid var(--ledger); padding: 1.1rem 1.4rem; margin: 0 0 2rem; }
.key-points-label { font-family: var(--serif); font-weight: 600; color: var(--ink); margin-bottom: .4rem; }
.key-points p:last-child { margin-bottom: 0; }
.post-faq { margin-top: 2.5rem; }
.case-facts-title { font-family: var(--serif); font-weight: 600; color: var(--ink); margin-bottom: .6rem; }
.case-facts { margin: 0 0 1.75rem; border-top: 2px solid var(--ledger); }
.case-facts dt { font-size: .85rem; color: var(--ink-soft); padding-top: .7rem; }
.case-facts dd { margin: 0; padding-bottom: .7rem; border-bottom: 1px solid var(--line); font-weight: 500; color: var(--ink); }

.post-sources{margin-top:2rem}.post-sources ul{padding-left:1.2rem}.post-sources li{margin:.3rem 0}

/* Track record strip (homepage and About) */
.section-track { padding-block: 2.5rem; border-top: 1px solid var(--line-soft); }
.track { display: flex; flex-wrap: wrap; gap: 1.5rem 4rem; margin: 0 0 1rem; }
.track > div { display: flex; flex-direction: column; }
.track dd { margin: 0; font-family: var(--serif); font-size: clamp(2rem, 5vw, 2.75rem); line-height: 1.1; color: var(--ledger); font-variant-numeric: tabular-nums; }
.track--wide { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.5rem 2rem; }
@media (max-width: 800px) { .track--wide { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.rows .row h3 a { text-decoration: none; }
.rows .row h3 a:hover { text-decoration: underline; }
.track dt { font-size: .9375rem; color: var(--ink-soft); margin-top: .35rem; }

/* Consultation pop-up */
dialog.modal { border: 0; padding: 0; width: min(720px, calc(100vw - 24px)); max-height: calc(100vh - 32px); background: var(--sheet); box-shadow: 0 24px 60px rgba(10,20,30,.35); overflow: auto; }
dialog.modal::backdrop { background: rgba(8,22,34,.55); }
dialog.modal .modal-body { padding: 0; }
dialog.modal form.intake { border: 0; border-top: 4px solid var(--ledger); padding-top: 2.5rem; }
dialog.modal .form-done { padding: 2.5rem 2rem; }
.modal-close { position: absolute; top: 10px; right: 10px; z-index: 2; width: 40px; height: 40px; border: 0; background: transparent; font-size: 28px; line-height: 1; cursor: pointer; color: var(--ink, #1c2530); }
body:has(dialog[open]) .float-contact { display: none; }
.track--wide3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem 2rem; }
@media (max-width: 600px) { .track--wide3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Mobile drawer (full screen, three accordion strips, as on globalimmigrate.com) */
.drawer { position: fixed; inset: 0; z-index: 80; background: var(--paper); overflow-y: auto; padding: 0 var(--gutter) 120px; }
.drawer[hidden] { display: none; }
.drawer:focus { outline: none; }
.drawer__head { height: 72px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line-soft); margin-bottom: 8px; }
.drawer__close { width: 44px; height: 44px; border: 1px solid var(--line); background: none; font-size: 26px; line-height: 1; color: var(--ink); cursor: pointer; }
.drawer details { border-bottom: 1px solid var(--line-soft); }
.drawer summary { list-style: none; padding: 18px 0; font-size: 17px; font-weight: 500; color: var(--ink); display: flex; justify-content: space-between; cursor: pointer; }
.drawer summary::-webkit-details-marker { display: none; }
.drawer summary::after { content: "+"; color: var(--ink-soft); font-weight: 300; font-size: 22px; line-height: 1; }
.drawer details[open] summary::after { content: "\2212"; }
.drawer h4 { margin: 4px 0 4px; font-size: 13px; font-weight: 500; color: var(--ink-soft); }
.drawer ul { list-style: none; margin: 0 0 12px; padding: 0; }
.drawer ul a { display: block; padding: 12px 0 12px 15px; font-size: 16px; color: var(--ink); border-left: 2px solid var(--line); }
.drawer ul a[aria-current="page"] { border-left-color: var(--ledger); color: var(--ledger); font-weight: 600; }
.drawer ul + ul { margin-top: -4px; }
.drawer__ctas { margin-top: 24px; }
.drawer__ctas .btn { width: 100%; min-height: 52px; justify-content: center; }
.drawer__lang { display: flex; gap: 10px; margin-top: 16px; }
.drawer__lang a { flex: 1; text-align: center; padding: 14px 0; border: 1px solid var(--line); font-weight: 600; color: var(--ledger); }
@media (min-width: 1181px) { .drawer { display: none !important; } }
.drawer a { text-decoration: none; }

/* intake request options: tappable cards (popup + page) */
form.intake fieldset:first-child .choices { grid-template-columns: 1fr; gap: .55rem; }
form.intake fieldset:first-child .choices label { align-items: center; padding: .85rem 1rem; border: 1px solid var(--line); background: #fff; cursor: pointer; line-height: 1.4; }
form.intake fieldset:first-child .choices label:has(input:checked) { border-color: var(--ledger); box-shadow: inset 0 0 0 1px var(--ledger); background: rgba(1,51,74,.04); }
form.intake fieldset:first-child .choices input { margin-top: 0; flex: none; }
@media (max-width: 600px) {
  dialog.modal { width: 100vw; max-width: 100vw; max-height: 100dvh; height: 100dvh; margin: 0; }
  dialog.modal form.intake { padding: 3.5rem 1.1rem 1.5rem; }
  dialog.modal legend { font-size: 1.05rem; }
}

/* top bar hidden on phones/tablets (menu drawer is used there) */
@media (max-width: 1180px) { .topbar { display: none; } }

/* Phone header like globalimmigrate.com: logo mark + hamburger icon */
@media (max-width: 1180px) {
  .site-header .menu-btn { font-size: 0; width: 44px; padding: 0; border: 0; justify-content: center; background: linear-gradient(var(--ink), var(--ink)) center 14px / 22px 2px no-repeat, linear-gradient(var(--ink), var(--ink)) center 21px / 22px 2px no-repeat, linear-gradient(var(--ink), var(--ink)) center 28px / 22px 2px no-repeat; }
}
@media (max-width: 600px) { .brand-text, .brand-practice { display: none; } .brand img { width: 48px; } }
.drawer__row { display: block; padding: 18px 0; font-size: 17px; font-weight: 500; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line-soft); }
.drawer__row[aria-current="page"] { color: var(--ledger); }
.talks__tabs{display:flex;gap:0;flex-wrap:wrap;margin:0 0 28px;border:1px solid #01334A;width:fit-content;max-width:100%}
.talks__tabs button{font:inherit;font-size:.95rem;padding:11px 20px;background:#fff;color:#01334A;border:0;cursor:pointer;border-radius:0}
.talks__tabs button+button{border-left:1px solid #01334A}
.talks__tabs button[aria-selected=true]{background:#01334A;color:#fff}
#talks h2{margin:36px 0 18px;font-size:1.4rem;color:#01334A}
.talks__list{display:flex;flex-direction:column;border-top:1px solid #DCDFE3}
.talk{display:grid;grid-template-columns:150px minmax(0,1fr) auto;gap:24px;align-items:start;padding:22px 4px;border-bottom:1px solid #DCDFE3;text-decoration:none;color:#1E2226}
.talk:hover{background:#F4F5F6}
.talk__date b{display:block;color:#01334A;font-size:1.05rem}.talk__date small{color:#60666E}
.talk__body{display:flex;flex-direction:column;gap:6px}.talk__body small{color:#60666E}.talk__body>b{font-size:1.1rem;color:#01334A}.talk__body em{font-style:normal;color:#4C5259;font-size:.92rem}
.talk__cta{color:#01334A;font-weight:600;white-space:nowrap}
@media(max-width:720px){.talk{grid-template-columns:1fr;gap:8px}}
.talks-wrap{padding-top:40px;padding-bottom:72px}

.contact-grid{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,6fr);gap:40px;align-items:start}
.contact-grid .office-cards{grid-template-columns:1fr}
.cform-card .consent label{display:block}.cform-card .consent input{margin-right:.5rem}
.cform-card h2{margin:0 0 1rem;font-size:1.5rem}.cform-card fieldset{border:0;padding:0;margin:0}.cform-card legend{display:none}
.cform__alt{font-size:.9rem;color:var(--ink-soft);margin-top:1rem}
@media(max-width:900px){.contact-grid{grid-template-columns:1fr}}

/* Memo sheet on phones: no tilt, rows stacked so text isn't squeezed into a narrow column */
@media (max-width: 880px) {
  .memo, .memo tbody tr { animation: none !important; transform: none !important; }
  .memo thead { display: none; }
  .memo table, .memo tbody { display: block; width: 100%; }
  .memo tbody tr { display: grid; grid-template-columns: 1fr auto; gap: .25rem .75rem; padding: .75rem 0; border-bottom: 1px solid var(--mist); }
  .memo tbody th, .memo tbody td { display: block; width: auto !important; border: 0; padding: 0; white-space: normal; }
  .memo tbody th { grid-column: 1; grid-row: 1; }
  .memo tbody td:last-child { grid-column: 2; grid-row: 1; white-space: nowrap; }
  .memo tbody td:nth-child(2) { grid-column: 1 / -1; grid-row: 2; }
}

/* Intake option cards: the checked card is the highlight; no extra square focus ring around the radio */
form.intake .choices input[type="radio"]:focus,
form.intake .choices input[type="radio"]:focus-visible { outline: none; }

/* Consent checkbox: box pinned left, text wraps in its own column, link stays inline */
.consent label, .cform-card .consent label { display: block; position: relative; padding-left: 2rem; font-weight: 400; line-height: 1.5; }
.consent input[type="checkbox"], .cform-card .consent input[type="checkbox"] { position: absolute; left: 0; top: .12rem; width: 20px; height: 20px; min-height: 0; margin: 0; padding: 0; }

/* Enquiry form: same look as the EB-3 site (header block, quiet labels, flat fields, custom select arrow) */
dialog.modal .modal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; padding: 1.6rem 2rem 1.25rem; border-bottom: 1px solid var(--line); border-top: 4px solid var(--ledger); }
dialog.modal .modal-head h2 { font-size: clamp(1.35rem, 2.6vw, 1.8rem); margin: .25rem 0 .5rem; line-height: 1.3; }
dialog.modal .modal-head p { margin: 0; font-size: .95rem; color: var(--ink-soft); line-height: 1.7; max-width: 40em; }
.modal-eyebrow { font-size: .85rem; color: var(--ink-soft); }
dialog.modal .modal-close { position: static; flex: none; width: 44px; height: 44px; border: 1px solid var(--line); background: none; font-size: 26px; color: var(--ink); }
dialog.modal .modal-close:hover { background: var(--mist); }
dialog.modal .modal-close:focus-visible { outline: 2px solid var(--ledger); outline-offset: 2px; }
dialog.modal form.intake { border-top: 0; padding-top: 1.75rem; }
form.intake label { font-size: 13px; font-weight: 500; margin-bottom: .45rem; }
form.intake .choices label, form.intake .consent label { font-size: 14px; }
form.intake input[type=text], form.intake input[type=email], form.intake input[type=tel], form.intake input[type=date], form.intake input[type=number], form.intake select, form.intake textarea { border-color: #C8CCD1; border-radius: 0; font-size: 15px; background-color: #fff; }
form.intake input:focus, form.intake select:focus, form.intake textarea:focus { outline: none; border-color: var(--ledger); }
form.intake select { -webkit-appearance: none; appearance: none; padding-right: 36px;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-soft) 50%), linear-gradient(135deg, var(--ink-soft) 50%, transparent 50%);
  background-position: calc(100% - 18px) 21px, calc(100% - 13px) 21px; background-size: 5px 5px; background-repeat: no-repeat; }
form.intake input[type="checkbox"], form.intake input[type="radio"] { width: 18px; height: 18px; accent-color: var(--ledger); }
form.intake .consent label { line-height: 1.7; }
@media (max-width: 600px) {
  dialog.modal .modal-head { padding: calc(1rem + env(safe-area-inset-top, 0px)) 1.1rem 1rem; }
  dialog.modal form.intake { padding: 1.4rem 1.1rem calc(1.75rem + env(safe-area-inset-bottom, 0px)); }
  form.intake .btn-primary[type="submit"] { width: 100%; }
}
