/* Axilegal shared stylesheet — tokens, base, components, page layouts.
   Breakpoints: <900 phone/tablet (accordion + bottom bar) · 900–1199 two columns · ≥1200 tab rail.
   Header nav collapses to a drawer below 1080. */

/* ------------------------------------------------------------ tokens */
:root {
  --navy-950: #081629;
  --navy-900: #0C1F3A;
  --navy-800: #15305A;
  --navy-600: #2D4B78;
  --navy-100: #E4EAF3;
  --navy-50:  #F2F5F9;
  --amber-500: #EDA92A;
  --amber-600: #DB951A;
  --amber-800: #8A5A00;
  --amber-100: #FBEBCB;
  --paper: #EEF1F5;
  --sheet: #FFFFFF;
  --ink: #172338;
  --ink-2: #47546B;
  --ink-3: #66728A;
  --line: #DCE2EA;
  --line-2: #C3CCD9;
  --wa: #157A47;
  --ok: #1E7B4E;
  --err: #B3261E;
  --err-bg: #FCEDEB;

  --font-sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;

  --fs-body: 1rem;
  --fs-small: .875rem;
  --fs-h1: clamp(1.8rem, 1.2rem + 2.4vw, 2.8rem);
  --fs-h2: clamp(1.45rem, 1.15rem + 1.15vw, 1.95rem);
  --fs-h3: 1.2rem;
  --fs-h4: 1.05rem;

  --s-1: .25rem; --s-2: .5rem; --s-3: .75rem; --s-4: 1rem; --s-5: 1.5rem; --s-6: 2rem; --s-7: 3rem; --s-8: 4rem;
  --r-sm: 6px; --r-md: 10px; --r-lg: 16px; --r-pill: 999px;
  --sh-1: 0 1px 2px rgba(12, 31, 58, .06), 0 2px 8px rgba(12, 31, 58, .05);
  --sh-2: 0 10px 30px -8px rgba(12, 31, 58, .22);
  --sh-3: 0 24px 60px -12px rgba(8, 22, 41, .45);

  --header-h: 64px;
  --mbar-h: 64px;
  --wrap: 1280px;
  --gutter: 16px;
  --tap: 44px;
}
@media (min-width: 600px) { :root { --gutter: 24px; } }
@media (min-width: 1200px) { :root { --gutter: 32px; --fs-body: 1.0625rem; } }

/* ------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 var(--fs-body)/1.6 var(--font-sans);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--navy-800); text-underline-offset: .18em; }
a:hover { color: var(--navy-600); }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--amber-500); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4 { margin: 0; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.ico { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ico--chev { width: 1em; height: 1em; transition: transform .15s; }
.skip-link { position: absolute; left: 8px; top: -60px; z-index: 300; background: var(--amber-500); color: var(--navy-950); padding: 10px 16px; border-radius: var(--r-sm); font-weight: 700; }
.skip-link:focus { top: 8px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }

/* ------------------------------------------------------------ buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: var(--tap); padding: .55em 1.25em; border: 1.5px solid transparent; border-radius: var(--r-md);
  font-weight: 700; font-size: 1rem; line-height: 1.2; text-align: center; text-decoration: none;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn--sm { font-size: .9375rem; padding-inline: 1em; }
.btn--block { width: 100%; }
.btn--amber { background: var(--amber-500); color: var(--navy-950); }
.btn--amber:hover { background: var(--amber-600); color: var(--navy-950); }
.btn--amber:focus-visible { outline-color: var(--navy-900); }
.btn--navy { background: var(--navy-900); color: #fff; }
.btn--navy:hover { background: var(--navy-800); color: #fff; }
.btn--outline { border-color: var(--navy-800); color: var(--navy-800); background: transparent; }
.btn--outline:hover { background: var(--navy-50); color: var(--navy-900); }
.btn--outline-light { border-color: rgba(237, 169, 42, .8); color: var(--amber-500); }
.btn--outline-light:hover { background: var(--amber-500); color: var(--navy-950); }
.btn[disabled] { opacity: .7; cursor: progress; }
.link-btn { background: none; border: 0; padding: 0; color: var(--navy-800); font-weight: 600; text-decoration: underline; text-underline-offset: .18em; min-height: var(--tap); }
.link-btn:hover { color: var(--navy-600); }

/* ------------------------------------------------------------ header + navigation */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--navy-900); color: #fff; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.site-header__in { display: flex; align-items: center; gap: var(--s-5); min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; min-height: var(--tap); font: 800 1.5rem/1 var(--font-sans); color: #fff; text-decoration: none; letter-spacing: -.035em; }
.brand span { color: var(--amber-500); }
.brand:hover { color: #fff; }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: var(--s-5); }
.site-nav__list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: var(--s-1); }
.site-nav__link {
  display: inline-flex; align-items: center; gap: .3em; min-height: var(--tap); padding: 0 .8em; border: 0; border-radius: var(--r-sm);
  background: none; color: rgba(255, 255, 255, .86); font-weight: 600; font-size: .9375rem; text-decoration: none;
}
.site-nav__link:hover, .site-nav__link[aria-expanded="true"] { color: #fff; background: rgba(255, 255, 255, .07); }
.site-nav__link.is-active { color: #fff; }
.site-nav__link[aria-expanded="true"] .ico--chev { transform: rotate(180deg); }
.site-nav__auth { display: flex; align-items: center; gap: var(--s-2); }
.has-menu { position: relative; }
.menu { position: absolute; top: calc(100% + 10px); z-index: 120; background: var(--sheet); color: var(--ink); border-radius: var(--r-lg); box-shadow: var(--sh-3); }
.menu a { display: flex; align-items: center; min-height: 40px; padding: .35em .75em; border-radius: var(--r-sm); color: var(--ink); text-decoration: none; }
.menu a:hover { background: var(--navy-50); color: var(--navy-900); }
.site-header__in { position: relative; }
.has-menu--mega { position: static; }
.menu--mega { left: var(--gutter); right: var(--gutter); top: calc(100% + 2px); padding: var(--s-5); }
.mega ul { list-style: none; margin: 0; padding: 0; }
.mega li a { min-height: 36px; font-size: .9375rem; color: var(--ink-2); }
.nav-toggle { display: none; }

@media (max-width: 1079.98px) {
  .nav-toggle {
    display: inline-flex; align-items: center; gap: .6em; margin-left: auto; min-height: var(--tap); padding: 0 .9em;
    background: none; border: 1.5px solid rgba(255, 255, 255, .25); border-radius: var(--r-md); color: #fff; font-weight: 600;
  }
  .nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; position: relative; transition: transform .15s; }
  .nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
  .nav-toggle__bars::before { top: -6px; } .nav-toggle__bars::after { top: 6px; }
  .nav-open .nav-toggle__bars { background: transparent; }
  .nav-open .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
  .nav-open .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }
  .site-nav {
    display: none; position: fixed; inset: var(--header-h) 0 0 0; z-index: 110; margin: 0; padding: var(--s-4) var(--gutter) var(--s-7);
    flex-direction: column; align-items: stretch; gap: var(--s-4); overflow-y: auto; overscroll-behavior: contain;
    background: var(--navy-900);
  }
  .nav-open .site-nav { display: flex; }
  .nav-open { overflow: hidden; }
  .site-nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav__list > li { border-bottom: 1px solid rgba(255, 255, 255, .1); }
  .site-nav__link { width: 100%; justify-content: space-between; min-height: 52px; padding: 0 .25em; font-size: 1.0625rem; }
  .menu { position: static; width: auto; box-shadow: none; border-radius: var(--r-md); margin-bottom: var(--s-3); }
  .menu--mega { padding: var(--s-2); }
  .mega li a { min-height: var(--tap); padding-left: 1.5em; }
  .site-nav__auth { gap: var(--s-3); }
  .site-nav__auth > * { flex: 1; justify-content: center; min-height: 48px; }
  .site-nav__auth .site-nav__link { border: 1.5px solid rgba(255, 255, 255, .25); border-radius: var(--r-md); }
}

/* ------------------------------------------------------------ service hero + head index */
.svc-hero {
  position: relative; color: #fff; padding: var(--s-5) 0 calc(var(--s-8) + var(--s-5));
  background-color: var(--navy-900);
  /* ruled-paper hairlines, faded toward the text side */
  background-image:
    linear-gradient(90deg, var(--navy-900) 30%, rgba(12, 31, 58, 0) 75%),
    repeating-linear-gradient(180deg, transparent 0 31px, rgba(255, 255, 255, .055) 31px 32px);
}
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4em; margin: 0 0 var(--s-5); padding: 0; font-size: var(--fs-small); color: rgba(255, 255, 255, .62); }
.crumbs li + li::before { content: "/"; margin-right: .4em; color: rgba(255, 255, 255, .35); }
.crumbs a { color: rgba(255, 255, 255, .8); }
.crumbs a:hover { color: #fff; }
.svc-hero__title { font: 800 var(--fs-h1)/1.14 var(--font-sans); letter-spacing: -.025em; word-spacing: .06em; max-width: 18ch; text-wrap: balance; }
.svc-hero__lede { margin: var(--s-4) 0 0; max-width: 52ch; color: rgba(255, 255, 255, .78); font-size: 1.0625rem; }

.head-index {
  position: relative; z-index: 2; margin-top: calc(-1 * var(--s-8)); padding: var(--s-4) var(--s-5) var(--s-5);
  display: grid; gap: var(--s-4); background: var(--sheet); border-radius: var(--r-lg); box-shadow: var(--sh-2);
}
@media (min-width: 900px) {
  .head-index { grid-template-columns: 6fr 5fr; gap: var(--s-6); }
  .head-index__group + .head-index__group { border-left: 1px solid var(--line); padding-left: var(--s-6); }
}
.head-index__title { font: 700 var(--fs-small)/1.4 var(--font-sans); color: var(--ink-3); margin-bottom: var(--s-3); }
.head-index__chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s-2); }
.chip {
  display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 1em; border: 1.5px solid var(--line-2); border-radius: var(--r-pill);
  color: var(--ink); font-weight: 600; font-size: .9375rem; text-decoration: none; background: var(--sheet); transition: border-color .15s, background-color .15s;
}
.chip:hover { border-color: var(--navy-600); color: var(--navy-900); }
.chip[aria-current="true"] { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }
@media (max-width: 599.98px) {
  .svc-hero { padding: var(--s-4) 0 calc(var(--s-7) + var(--s-3)); }
  .crumbs ol { margin-bottom: var(--s-4); }
  .preview-tag { float: none; display: table; margin: 0 0 var(--s-3); }
  .svc-hero__lede { font-size: 1rem; }
  .head-index { margin-top: calc(-1 * var(--s-7)); padding: var(--s-3) var(--s-3) var(--s-4); gap: var(--s-3); }
  .head-index__title { margin-bottom: var(--s-2); }
  .head-index__chips { gap: 6px; }
  .chip { padding: 0 .95em; font-size: .875rem; }
}
/* round 4 (item 15): the dot sits inside the padding, so a selected chip never gets wider and the row never rewraps */
.chip { position: relative; }
.chip[aria-current="true"]::before { content: ""; position: absolute; left: 4px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--amber-500); }

/* ------------------------------------------------------------ service layout */
.svc-layout { display: grid; gap: var(--s-5); padding-top: var(--s-5); padding-bottom: var(--s-8); }
.svc-main { min-width: 0; }
@media (min-width: 900px) {
  .svc-layout { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; gap: var(--s-6); padding-top: var(--s-6); }
  .svc-aside { position: sticky; top: calc(var(--header-h) + var(--s-4)); }
}
@media (min-width: 1200px) { .svc-layout { grid-template-columns: minmax(0, 1fr) 340px; } }

/* ------------------------------------------------------------ document (docx content) + tabs */
.doc { background: var(--sheet); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s-5) var(--s-4) var(--s-4); }
@media (min-width: 600px) { .doc { padding: var(--s-6) var(--s-6) var(--s-5); } }
.doc__title { font: 700 var(--fs-h2)/1.25 var(--font-sans); color: var(--navy-900); letter-spacing: -.02em; word-spacing: .05em; text-wrap: balance; padding-bottom: var(--s-4); margin-bottom: var(--s-5); border-bottom: 1px solid var(--line); }
.doc__note { color: var(--ink-2); max-width: 60ch; }

.tabs__list { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-bottom: var(--s-5); }
.tabs__tab {
  min-height: var(--tap); padding: .45em 1em; border: 1.5px solid var(--line-2); border-radius: var(--r-pill); background: var(--sheet);
  color: var(--ink-2); font-weight: 600; font-size: .9375rem; text-align: left; line-height: 1.3;
}
.tabs__tab:hover { border-color: var(--navy-600); color: var(--navy-900); }
.tabs__tab[aria-selected="true"] { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }
.tabs__panel:focus-visible { outline-offset: 6px; }
.tabs__bar { display: flex; justify-content: flex-end; margin-bottom: var(--s-3); }
.tabs__next {
  display: flex; flex-direction: column; align-items: flex-end; gap: 2px; width: 100%; margin-top: var(--s-6); padding: var(--s-4) 0 var(--s-2);
  border: 0; border-top: 1px solid var(--line); background: none; color: var(--navy-800); font-weight: 700; text-align: right;
}
.tabs__next span { color: var(--ink-3); font-weight: 600; font-size: var(--fs-small); }
.tabs__next:hover { color: var(--navy-600); }
.acc__trigger { display: none; }

@media (min-width: 1200px) {
  .tabs { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: var(--s-6); align-items: start; }
  .tabs__list { flex-direction: column; flex-wrap: nowrap; gap: 0; margin: 0; position: sticky; top: calc(var(--header-h) + var(--s-4)); border-left: 1px solid var(--line); }
  .tabs__tab { border: 0; border-left: 3px solid transparent; margin-left: -2px; border-radius: 0 var(--r-sm) var(--r-sm) 0; padding: .55em .9em; background: none; font-size: .9375rem; }
  .tabs__tab:hover { background: var(--navy-50); }
  .tabs__tab[aria-selected="true"] { background: var(--navy-50); border-left-color: var(--amber-500); color: var(--navy-900); }
}

@media (max-width: 899.98px) {
  .doc__title { border-bottom: 0; padding-bottom: 0; }
  .tabs__list { display: none; }
  .tabs__panels { border-top: 1px solid var(--line); }
  .acc__trigger {
    display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); width: 100%; min-height: 56px; padding: var(--s-3) 0;
    border: 0; border-bottom: 1px solid var(--line); background: none; text-align: left; font-weight: 700; color: var(--navy-900); line-height: 1.35;
  }
  .acc__trigger::after {
    content: ""; flex: none; width: 10px; height: 10px; margin-right: 6px; border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3);
    transform: rotate(45deg) translateY(-3px); transition: transform .15s;
  }
  .acc__trigger[aria-expanded="true"]::after { transform: rotate(-135deg) translateY(-3px); }
  .acc__trigger[aria-expanded="true"] { border-bottom-color: transparent; }
  .tabs__panel { padding: var(--s-2) 0 var(--s-5); border-bottom: 1px solid var(--line); }
  .tabs__bar { justify-content: flex-start; }
}

/* long-form reading */
.prose { max-width: 68ch; line-height: 1.7; overflow-wrap: break-word; }
.prose > :first-child { margin-top: 0; }
.prose p { margin: 0 0 1em; }
.prose h3 { font: 700 var(--fs-h3)/1.35 var(--font-sans); color: var(--navy-900); letter-spacing: -.015em; margin: 1.7em 0 .55em; }
.prose h4 { font: 700 var(--fs-h4)/1.4 var(--font-sans); color: var(--navy-900); margin: 1.5em 0 .45em; }
.prose strong { font-weight: 700; color: var(--navy-950); }
.prose ul, .prose ol { margin: 0 0 1.1em; padding-left: 1.35em; }
.prose li { margin: .35em 0; padding-left: .2em; }
.prose li > ul, .prose li > ol { margin: .35em 0 .4em; }
.prose ul li::marker { color: var(--amber-600); }
.prose ol li::marker { color: var(--navy-600); font-weight: 700; }
.table-box { margin: 0 0 1.3em; }
.table-wrap { margin: 0; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); }
.prose table { width: 100%; border-collapse: collapse; font-size: .9375rem; line-height: 1.5; }
.prose th, .prose td { padding: .65em .85em; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); min-width: 8.5em; }
/* Wide tables keep a horizontal scroll; this caption (a pseudo-element, so it never ends up in the
   page text) appears only when site.js finds the table wider than its box (client visual review #4/#5:
   a clipped table used to look like a hard cut with no hint). */
.table-box.is-scrollable::after {
  content: 'Swipe →';
  display: block; text-align: right; margin: .35em .15em 0;
  font: 600 .75rem/1.2 var(--font-sans); letter-spacing: .02em; color: var(--ink-3);
}
.table-box.is-scrollable .table-wrap { scrollbar-width: thin; }
.table-box.is-scrollable .table-wrap::-webkit-scrollbar { height: 8px; }
.table-box.is-scrollable .table-wrap::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 4px; }
.table-box.is-scrollable .table-wrap::-webkit-scrollbar-track { background: var(--navy-50); }
/* Phone: tighter type and padding so the 3-column tables fit inside 375px instead of being cut. */
@media (max-width: 640px) {
  .prose table { font-size: .8125rem; }
  .prose th, .prose td { min-width: 0; padding: .5em .45em; }
}
.prose th { background: var(--navy-50); color: var(--navy-900); font-weight: 700; }
.prose tr:last-child td { border-bottom: 0; }
.prose .doc-cta { margin: 1.5em 0; }
.prose .doc-cta-lead { margin-bottom: .6em; }
@media (max-width: 599.98px) { .prose .doc-cta .btn { width: 100%; } }

/* ------------------------------------------------------------ fee schedule (packages) */
.fees { background: var(--sheet); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s-5) var(--s-4) var(--s-4); }
.fees__title { font: 700 1.25rem/1.25 var(--font-sans); letter-spacing: -.02em; color: var(--navy-900); }
.fees__hint { margin: var(--s-1) 0 0; color: var(--ink-3); font-size: var(--fs-small); }
.fees__list { list-style: none; margin: var(--s-4) 0 0; padding: 0; border-top: 1px solid var(--line); }
.fee { border-bottom: 1px solid var(--line); }
.fee__row {
  display: grid; grid-template-columns: minmax(0, auto) minmax(1.25rem, 1fr) auto; align-items: end; column-gap: var(--s-2);
  width: 100%; min-height: 64px; padding: var(--s-3) var(--s-2); border: 0; background: none; text-align: left; color: var(--ink);
}
button.fee__row { border-radius: var(--r-sm); }
button.fee__row:hover { background: var(--navy-50); }
.fee__name { font-weight: 700; line-height: 1.35; padding-bottom: .1em; }
.fee__leader { align-self: end; margin-bottom: .45em; border-bottom: 2px dotted var(--line-2); }
.fee__price { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.1; white-space: nowrap; }
.fee__from { font-size: .75rem; color: var(--ink-3); font-weight: 600; margin-bottom: 3px; }
.fee__price strong { font: 700 1.25rem/1 var(--font-sans); letter-spacing: -.02em; color: var(--navy-900); font-variant-numeric: lining-nums; }
.fee.is-open .fee__row { background: var(--navy-50); }
.fee.is-open .fee__price strong { color: var(--amber-800); }
.fee__body { padding: var(--s-3) var(--s-2) var(--s-4); }
.checks { list-style: none; margin: 0 0 var(--s-4); padding: 0; font-size: .9375rem; }
.checks li { display: flex; gap: .55em; align-items: flex-start; padding: .3em 0; line-height: 1.45; }
.checks .ico { width: 1.1em; height: 1.1em; margin-top: .15em; color: var(--ok); stroke-width: 2.4; }
.fees__alt { margin: var(--s-4) 0 0; font-size: var(--fs-small); color: var(--ink-2); }

.fees--consult { background: var(--navy-900); border-color: var(--navy-900); color: #fff; padding: var(--s-5); }
.consult-card__badge { display: inline-block; margin: 0 0 var(--s-4); padding: .3em .8em; border-radius: var(--r-pill); background: var(--amber-500); color: var(--navy-950); font-weight: 700; font-size: .8125rem; }
.consult-card__title { font: 700 1.35rem/1.25 var(--font-sans); letter-spacing: -.02em; }
.consult-card__fee { margin: var(--s-2) 0 var(--s-5); color: rgba(255, 255, 255, .78); }

/* ------------------------------------------------------------ floating contact + mobile bar */
.fab { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 90; display: flex; flex-direction: column; gap: var(--s-2); align-items: flex-end; }
.fab__btn {
  display: inline-flex; align-items: center; gap: .5em; min-height: 48px; padding: 0 1.1em 0 .95em; border-radius: var(--r-pill);
  color: #fff; font-weight: 700; text-decoration: none; box-shadow: var(--sh-2);
}
.fab__btn:hover { color: #fff; filter: brightness(1.1); }
.fab__btn--call { background: var(--navy-800); }
.fab__btn--wa { background: var(--wa); }
.fab__btn .ico { width: 1.3em; height: 1.3em; }
.fab__btn--call .ico { fill: currentColor; stroke: none; }
/* service pages carry Call/WhatsApp in the bottom bar (mobile), so the floating buttons never sit on
   top of package or body content there. The desktop "Prefer to talk to us?" box was removed in round 2. */
.page-service .fab { display: none; }

.mbar { display: none; }
.preview-tag {
  float: right; margin: 0 0 var(--s-2) var(--s-3); padding: .3em .8em; border-radius: var(--r-pill);
  background: rgba(237, 169, 42, .16); color: var(--amber-500); font-size: .75rem; font-weight: 600;
}
@media (max-width: 899.98px) {
  .has-mbar .site-footer { padding-bottom: calc(var(--mbar-h) + env(safe-area-inset-bottom)); }
  .mbar {
    position: fixed; inset: auto 0 0 0; z-index: 92; display: flex; align-items: center; gap: var(--s-3);
    min-height: calc(var(--mbar-h) + env(safe-area-inset-bottom)); padding: var(--s-2) var(--gutter) calc(var(--s-2) + env(safe-area-inset-bottom));
    background: var(--sheet); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(12, 31, 58, .08); transition: transform .2s, visibility .2s;
  }
  .mbar.is-off { transform: translateY(110%); visibility: hidden; }
  .mbar__contact { display: flex; gap: var(--s-2); flex: none; }
  .mbar__ico { display: inline-flex; align-items: center; justify-content: center; width: var(--tap); height: var(--tap); border-radius: 50%; color: #fff; }
  .mbar__ico .ico { width: 1.35em; height: 1.35em; }
  .mbar__ico--call { background: var(--navy-800); }
  .mbar__ico--call .ico { fill: currentColor; stroke: none; }
  .mbar__ico--wa { background: var(--wa); }
  .mbar__text { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
  .mbar { gap: var(--s-2); }
  .mbar [data-mbar-go] { flex: none; padding-inline: .8em; font-size: .875rem; }
  .mbar__contact { gap: 6px; }
  .mbar__text strong { font-size: .9375rem; }
  .mbar__text { padding-left: var(--s-1); }
  .mbar__text strong { font-weight: 700; color: var(--navy-900); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .mbar__text span { font-size: .8125rem; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .fab__btn { width: 52px; height: 52px; padding: 0; justify-content: center; }
  .fab__btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .fab__btn .ico { width: 1.6em; height: 1.6em; }
}

/* ------------------------------------------------------------ modal + form */
.modal { width: min(520px, calc(100% - 32px)); max-height: calc(100% - 32px); padding: 0; border: 0; border-radius: var(--r-lg); background: var(--sheet); color: var(--ink); box-shadow: var(--sh-3); overflow: auto; overscroll-behavior: contain; }
.modal::backdrop { background: rgba(8, 22, 41, .6); }
.modal[open] { animation: modal-in .18s ease-out; }
@keyframes modal-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.modal__box { position: relative; padding: var(--s-6) var(--s-5) var(--s-5); }
.modal__close { position: absolute; top: 8px; right: 8px; width: var(--tap); height: var(--tap); display: grid; place-items: center; border: 0; border-radius: 50%; background: none; color: var(--ink-2); }
.modal__close:hover { background: var(--navy-50); color: var(--ink); }
.modal__title { font: 700 1.45rem/1.25 var(--font-sans); letter-spacing: -.025em; color: var(--navy-900); padding-right: var(--s-6); }
.modal__desc { margin: var(--s-2) 0 var(--s-4); color: var(--ink-2); }
.modal__pkg { display: flex; flex-direction: column; gap: 2px; margin-bottom: var(--s-5); padding: var(--s-3) var(--s-4); border-radius: var(--r-md); background: var(--navy-50); border-left: 3px solid var(--amber-500); }
.modal__pkg-label { font-size: .8125rem; color: var(--ink-3); font-weight: 600; }
.modal__pkg strong { color: var(--navy-900); line-height: 1.35; }
.modal__done { text-align: center; padding: var(--s-4) 0 var(--s-2); outline: none; }
.modal__done-ico { width: 56px; height: 56px; margin: 0 auto var(--s-4); fill: none; stroke: var(--ok); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.modal__done .modal__title { padding: 0; }
.modal__done p { margin: var(--s-3) auto var(--s-5); max-width: 38ch; color: var(--ink-2); }
@media (max-width: 599.98px) {
  .modal { width: 100%; max-width: none; max-height: 94%; margin: auto 0 0; border-radius: var(--r-lg) var(--r-lg) 0 0; }
  .modal__box { padding: var(--s-5) var(--gutter) calc(var(--s-5) + env(safe-area-inset-bottom)); }
  @keyframes modal-in { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
}

.form { display: grid; gap: var(--s-4); }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: .9375rem; }
.field__opt { color: var(--ink-3); font-weight: 400; }
.field input, .field textarea {
  width: 100%; min-height: 48px; padding: .65em .85em; border: 1.5px solid var(--line-2); border-radius: var(--r-md); background: var(--sheet);
  font-size: 1rem; line-height: 1.4; transition: border-color .15s, box-shadow .15s;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:hover, .field textarea:hover { border-color: var(--ink-3); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--navy-800); box-shadow: 0 0 0 3px rgba(237, 169, 42, .45); }
.field [aria-invalid="true"] { border-color: var(--err); }
.field__err { margin: 0; color: var(--err); font-size: .875rem; font-weight: 600; }
.field__err:empty { display: none; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form__alert { padding: var(--s-3) var(--s-4); border-radius: var(--r-md); background: var(--err-bg); color: #7A1A14; font-size: .9375rem; }
.form__alert p { margin: 0; }
.form__alert-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-4); margin-top: var(--s-3); }
.form__alert a { color: #7A1A14; font-weight: 700; display: inline-flex; align-items: center; min-height: var(--tap); }
.form__preview { margin: calc(-1 * var(--s-2)) 0 0; text-align: center; font-size: .8125rem; color: var(--ink-3); }
.spinner { display: none; width: 1em; height: 1em; border: 2.5px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
.is-loading .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ------------------------------------------------------------ footer */
.site-footer { background: var(--navy-950); color: rgba(255, 255, 255, .72); font-size: .9375rem; }
.site-footer__grid { display: grid; gap: var(--s-5) var(--s-4); grid-template-columns: repeat(2, minmax(0, 1fr)); padding-top: var(--s-7); padding-bottom: var(--s-6); }
.site-footer__brand { grid-column: 1 / -1; }
@media (min-width: 900px) { .site-footer__grid { grid-template-columns: 1.4fr repeat(4, 1fr); } .site-footer__brand { grid-column: auto; } }
.site-footer__h { font: 700 .9375rem/1.4 var(--font-sans); color: #fff; margin-bottom: var(--s-2); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li a { display: inline-flex; align-items: center; min-height: 44px; color: rgba(255, 255, 255, .72); text-decoration: none; }
.site-footer li a:hover { color: var(--amber-500); }
.site-footer__bottom { padding-top: var(--s-4); padding-bottom: var(--s-5); border-top: 1px solid rgba(255, 255, 255, .1); font-size: var(--fs-small); color: rgba(255, 255, 255, .55); }

/* ------------------------------------------------------------ 2026-11-22: service pages without a package column
   Used by the prose pages (terms, privacy, refund, hiring, calculator):
   the two-column .svc-layout collapses to a single full-width column so the text is not squeezed. */
@media (min-width: 900px) { .svc-layout--single { grid-template-columns: minmax(0, 1fr); } }

/* ------------------------------------------------------------ 2026-11-22: misc pages (policy TOC, hiring/partner cards, court fee calculator)
   Appended only; no existing rules altered. */
.doc-toc {
  margin-bottom: var(--s-5); padding: var(--s-4); border-radius: var(--r-md);
  background: var(--navy-50); border-left: 3px solid var(--amber-500);
}
.doc-toc__title { font: 700 var(--fs-small)/1.3 var(--font-sans); color: var(--ink-3); text-transform: uppercase; letter-spacing: .04em; margin: 0 0 var(--s-2); }
.doc-toc__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px var(--s-5); }
@media (min-width: 600px) { .doc-toc__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.doc-toc__list a { display: inline-flex; align-items: center; min-height: 36px; font-size: .9375rem; font-weight: 600; text-decoration: none; }
.doc-toc__list a:hover { text-decoration: underline; }

.action-grid { display: grid; gap: var(--s-3); margin: var(--s-4) 0 var(--s-5); }
@media (min-width: 600px) { .action-grid--two { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.action-card {
  display: flex; flex-direction: column; justify-content: space-between; gap: var(--s-3);
  padding: var(--s-4); border: 1px solid var(--line); border-radius: var(--r-md); background: var(--navy-50);
}
.action-card__title { font: 700 1.05rem/1.3 var(--font-sans); color: var(--navy-900); margin: 0; }
.action-card__desc { margin: 0; color: var(--ink-2); font-size: .9375rem; }
.action-note {
  padding: var(--s-4); border: 1px solid var(--line); border-radius: var(--r-md); background: var(--sheet);
  color: var(--ink-2); font-size: .9375rem;
}
.action-note p:last-child { margin-bottom: 0; }

.field select {
  width: 100%; min-height: 48px; padding: .65em .85em; border: 1.5px solid var(--line-2); border-radius: var(--r-md); background: var(--sheet);
  font-size: 1rem; line-height: 1.4; transition: border-color .15s, box-shadow .15s;
}
.field select:hover { border-color: var(--ink-3); }
.field select:focus { outline: none; border-color: var(--navy-800); box-shadow: 0 0 0 3px rgba(237, 169, 42, .45); }
.field__hint { margin: 0; font-size: .875rem; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.field__hint:empty { display: none; }

.calc-grid { display: grid; gap: var(--s-5); align-items: start; }
@media (min-width: 900px) { .calc-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: var(--s-6); } }
.calc-actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-2); }
.calc-actions .btn--amber { flex: 1 1 200px; }
.calc-result {
  padding: var(--s-5); border-radius: var(--r-md); background: var(--navy-50); border: 1px solid var(--line);
  border-top: 4px solid var(--amber-500);
}
.calc-result__label { margin: 0; font-size: var(--fs-small); font-weight: 700; color: var(--ink-3); text-transform: uppercase; letter-spacing: .04em; }
.calc-result__amt { margin: var(--s-2) 0; font: 800 clamp(1.85rem, 1.4rem + 1.7vw, 2.5rem)/1.15 var(--font-sans); letter-spacing: -.03em; color: var(--navy-900); font-variant-numeric: lining-nums; }
.calc-result__meta { margin: 0 0 var(--s-3); font-size: .9375rem; color: var(--ink-2); }
.calc-result__note { margin: 0 0 var(--s-4); font-size: .9375rem; color: var(--ink); font-weight: 600; }
.calc-disclaimer { margin: var(--s-4) 0 0; font-size: var(--fs-small); color: var(--ink-3); line-height: 1.5; }

/* ============================================================ 2026-11-22: home (index.html) + contact (contact.html)
   Landing hierarchy: navy hero → service cards → reviews → About → booking band (Why Axilegal? box + in-page form). Contact: hero + one overlapping card
   (details | Quick Consultation form). All classes below are new; no earlier rule is changed. */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.home-h2 { font: 800 var(--fs-h2)/1.2 var(--font-sans); color: var(--navy-900); letter-spacing: -.025em; word-spacing: .06em; }
.home-h2::before { content: ""; display: block; width: 44px; height: 3px; margin-bottom: var(--s-3); border-radius: 2px; background: var(--amber-500); }

/* hero: one centred promise (round 4, item 9); the navy fades into the page like the client's old site (item 8) */
.home-hero {
  position: relative; color: #fff; text-align: center; padding: var(--s-8) 0 calc(var(--s-8) + 100px); background-color: var(--navy-900);
  background-image:
    radial-gradient(60% 80% at 50% 30%, rgba(237, 169, 42, .10), transparent 70%),
    repeating-linear-gradient(180deg, transparent 0 31px, rgba(255, 255, 255, .05) 31px 32px);
}
.home-hero::after { content: ""; position: absolute; inset: auto 0 0; height: 100px; background: linear-gradient(to top, var(--paper), transparent); pointer-events: none; }
.home-hero__title { font: 800 clamp(1.6rem, .5rem + 6vw, 4rem)/1.12 var(--font-sans); letter-spacing: -.03em; word-spacing: .06em; white-space: nowrap; }
.home-hero__lede { margin: var(--s-4) auto 0; max-width: 52ch; text-align: center; font-size: clamp(1.0625rem, 1rem + .4vw, 1.3rem); color: rgba(255, 255, 255, .8); }
.home-hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-3); margin-top: var(--s-6); }
.home-hero__cta { font-size: 1.0625rem; padding-inline: 1.5em; min-height: 52px; }
.home-hero__more { min-height: 52px; }
.home-hero .preview-tag, .partner .preview-tag { float: none; display: table; margin: 0 auto var(--s-4); }
@media (max-width: 899.98px) { .home-hero { padding: var(--s-7) 0 calc(var(--s-6) + 100px); } }

/* services (round 4, item 26): seven equal centred cards, 4 + 3 with the second row centred, no numbers */
.home-svc { padding: var(--s-6) 0 var(--s-8); }
.svc-grid { --cols: 1; list-style: none; margin: var(--s-6) 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-4); }
@media (min-width: 600px) { .svc-grid { --cols: 2; } }
@media (min-width: 900px) { .svc-grid { --cols: 4; } }
.svc-card {
  position: relative; display: flex; flex-direction: column; flex: 0 0 calc((100% - (var(--cols) - 1) * var(--s-4)) / var(--cols)); padding: var(--s-5) var(--s-4) var(--s-3);
  background: var(--sheet); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-1); text-align: center;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.svc-card:hover { border-color: var(--navy-600); box-shadow: var(--sh-2); transform: translateY(-2px); }
.svc-card:focus-within { outline: 3px solid var(--amber-500); outline-offset: 2px; }
.svc-card__title { font: 700 1.3rem/1.25 var(--font-sans); color: var(--navy-900); letter-spacing: -.02em; }
.svc-card__list { list-style: none; margin: var(--s-3) auto var(--s-5); padding: 0; color: var(--ink-2); }
.svc-card__list li { display: flex; align-items: baseline; gap: .6em; padding: .15em 0; }
.svc-card__list li::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--amber-500); transform: translateY(-2px); }
main .svc-card p.svc-card__price { margin: auto 0 0; padding: .5em .6em; border-radius: 8px; background: #FFF9EB; text-align: center; font-size: var(--fs-small); color: var(--ink-2); }
.svc-card__price strong { font: 800 1.5rem/1.1 var(--font-sans); color: #EDA92A; letter-spacing: -.02em; margin-left: .15em; }
.svc-card__link { display: inline-flex; align-items: center; justify-content: center; margin-top: var(--s-1); min-height: var(--tap); font-weight: 700; color: var(--navy-800); text-decoration: none; }
.svc-card__link::after { content: ""; position: absolute; inset: 0; border-radius: var(--r-lg); } /* whole card is the link */
.svc-card__link:focus-visible { outline: none; }
.svc-card__arrow { margin-left: .3em; color: var(--amber-600); transition: transform .15s; }
.svc-card:hover .svc-card__arrow { transform: translateX(3px); }
@media (max-width: 599.98px) {
  .home-svc { padding: var(--s-5) 0 var(--s-7); }
  .svc-card { padding: var(--s-4); }
  .svc-card__list { margin-bottom: var(--s-4); }
}

/* Why Axilegal (round 4, item 24): white box with a gold left border, next to the enquiry form */
.why { padding: var(--s-6); background: var(--sheet); color: var(--ink); border-radius: var(--r-lg); border-left: 5px solid var(--amber-500); box-shadow: var(--sh-3); }
.why__list { list-style: none; margin: var(--s-5) 0 0; padding: 0; display: grid; gap: var(--s-5); }
.why__item { display: grid; grid-template-columns: 48px minmax(0, 1fr); column-gap: var(--s-4); }
.why__ico { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--amber-100); color: var(--amber-800); }
.why__ico .ico { width: 24px; height: 24px; }
.why__h { font: 700 1.0625rem/1.35 var(--font-sans); color: var(--navy-900); }
.why__item p { margin: .25em 0 0; color: var(--ink-2); }
@media (max-width: 599.98px) { .why { padding: var(--s-5) var(--s-4); } }

/* reviews (round 4, item 10): one at a time, justified, fading every 5 s like the client's old site.
   All five sit in the same grid cell, so the block keeps the height of the longest one. */
.reviews { padding: var(--s-7) 0; }
.reviews__list { list-style: none; max-width: 800px; margin: 0 auto; padding: 0; display: grid; }
.review { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity .8s, visibility .8s; }
.review.is-on { opacity: 1; visibility: visible; }
.review figure { margin: 0; height: 100%; display: flex; flex-direction: column; justify-content: center; gap: var(--s-3); }
.review__stars { display: flex; justify-content: center; gap: 2px; margin: 0; }
.review__star { width: 18px; height: 18px; fill: var(--amber-500); }
.review blockquote { margin: 0; }
main .review blockquote p { margin: 0; font-style: italic; font-size: 19px; line-height: 1.7; color: var(--ink); text-align: justify; hyphens: auto; }
.review figcaption { text-align: center; font-weight: 700; color: var(--navy-900); }
.review figcaption::before { content: "— "; color: var(--amber-600); }
@media (max-width: 599.98px) { main .review blockquote p { font-size: 17px; } }
@media (prefers-reduced-motion: reduce) {   /* no rotation: all five, one under the other */
  .reviews__list { gap: var(--s-6); }
  .review { grid-area: auto; opacity: 1; visibility: visible; }
}

/* About Axilegal: heading column + reading column */
.about { background: var(--sheet); padding: var(--s-8) 0; border-block: 1px solid var(--line); }
.about__in { display: grid; gap: var(--s-5); }
.about__text { max-width: 68ch; line-height: 1.75; color: var(--ink-2); }
.about__text p { margin: 0 0 1em; }
.about__text p:first-child { font-size: 1.125rem; color: var(--ink); }
@media (min-width: 900px) { .about__in { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); } }
@media (max-width: 599.98px) { .about { padding: var(--s-7) 0; } }

/* booking band with the in-page form */
.book { padding: var(--s-8) 0; background: var(--navy-950); color: #fff;
  background-image: repeating-linear-gradient(180deg, transparent 0 31px, rgba(255, 255, 255, .04) 31px 32px); }
.book__in { display: grid; gap: var(--s-6); align-items: stretch; }
.contact-card__talk { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-5); }
.contact-card__talk .ico { width: 1.15em; height: 1.15em; }
.contact-card__talk [data-call] .ico { fill: currentColor; stroke: none; }
.book__wa { background: var(--wa); color: #fff; border-color: var(--wa); }
.book__wa:hover { color: #fff; filter: brightness(1.1); }
.book__card { padding: var(--s-6); background: var(--sheet); color: var(--ink); border-radius: var(--r-lg); box-shadow: var(--sh-3); }
@media (min-width: 900px) { .book__in { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
@media (max-width: 599.98px) { .book { padding: var(--s-7) 0; } .book__card { padding: var(--s-5) var(--s-4); } }

/* in-page enquiry form (home + contact): name | email, then phone, then the message */
@media (min-width: 600px) {
  .inline-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .inline-form .field--phone, .inline-form .field--requirement, .inline-form .inline-form__go { grid-column: 1 / -1; }
}
.inline-form__go { min-height: 52px; font-size: 1.0625rem; }

/* contact page */
.contact { padding-bottom: var(--s-8); }
.contact-card {
  position: relative; z-index: 2; margin-top: calc(-1 * var(--s-8)); display: grid;
  background: var(--sheet); border-radius: var(--r-lg); box-shadow: var(--sh-2); overflow: hidden;
}
.contact-card__info { padding: var(--s-6); }
.contact-card__form { padding: var(--s-6); background: var(--navy-50); border-top: 1px solid var(--line); }
.contact-card__h { font: 700 1.45rem/1.3 var(--font-sans); letter-spacing: -.025em; color: var(--navy-900); }
.contact-card__desc { margin: var(--s-2) 0 var(--s-5); color: var(--ink-2); }
.details { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-5); }
.detail { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: var(--s-4); align-items: start; }
.detail__ico { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--amber-100); color: var(--amber-800); }
.detail__ico .ico { width: 22px; height: 22px; }
.detail__h { font: 700 var(--fs-small)/1.4 var(--font-sans); color: var(--ink-3); }
.detail__v { margin: .2em 0 0; font-size: 1.0625rem; font-weight: 600; color: var(--navy-900); overflow-wrap: anywhere; }
.detail__v a { color: inherit; display: inline-flex; align-items: center; min-height: var(--tap); margin-block: -10px; }
@media (min-width: 900px) {
  .contact-card { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .contact-card__info, .contact-card__form { padding: var(--s-7); }
  .contact-card__form { border-top: 0; border-left: 1px solid var(--line); }
}
@media (max-width: 599.98px) {
  .contact-card { margin-top: calc(-1 * var(--s-7)); }
  .contact-card__info, .contact-card__form { padding: var(--s-5) var(--s-4); }
}

/* 2026-11-22: home/contact — the floating call/WhatsApp buttons step aside while a section with its own
   Call/WhatsApp buttons and form is on screen (home #contact, contact card), so they never cover the form or its submit. */
.fab { transition: opacity .2s ease, visibility .2s; }
.fab.is-off { opacity: 0; visibility: hidden; pointer-events: none; }

/* ============================================================ C17 round 2 (client, 2025-11-25) */

/* ------------------------------------------------------------ 1. menu: the client's own structure back
   Two panes: the 7 categories on the left, the hovered/focused category's own groups and items on the
   right (the client's 3rd level: "Return Filing", "Trademark", "Bare Acts", … is a labelled sub-list).
   Every entry is a real link. The phone/tablet drawer hides the category list and shows every panel in
   flow under its own category heading, so all 85 entries stay one tap away. */
@media (min-width: 1080px) {
  .menu--mega { max-height: calc(100vh - var(--header-h) - 24px); max-height: calc(100dvh - var(--header-h) - 24px); overflow: auto; overscroll-behavior: contain; }
  .mega { display: grid; grid-template-columns: minmax(200px, 264px) minmax(0, 1fr); gap: 0 var(--s-5); align-items: start; }
  .mega__cats { list-style: none; margin: 0; padding: 0 var(--s-4) 0 0; border-right: 1px solid var(--line); }
  .mega__cat-item { display: flex; align-items: center; border-radius: var(--r-sm); }
  .mega__cat-item.is-active { background: var(--navy-50); }
  .mega a.mega__cat { flex: 1; min-height: 40px; padding: .4em .7em; font: 600 .9375rem/1.3 var(--font-sans); color: var(--navy-900); }
  .mega__more { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border: 0; border-radius: 50%; background: none; color: var(--ink-3); }
  .mega__more:hover { color: var(--navy-900); background: var(--navy-100); }
  .mega__more .ico { width: 14px; height: 14px; }
  .mega__cat-item.is-active .mega__more .ico--chev { transform: rotate(-90deg); }
  .mega__panel { display: none; columns: 3; column-gap: var(--s-5); }
  .mega__panel.is-active { display: block; }
  .mega a.mega__panel-h { display: none; }
  .mega__group { break-inside: avoid; margin: 0 0 var(--s-3); }
  .mega a.mega__sub {
    display: block; min-height: 0; padding: .3em .7em .15em; color: var(--ink-3);
    font: 700 .6875rem/1.3 var(--font-sans); letter-spacing: .06em; text-transform: uppercase;
  }
  .mega a.mega__sub:hover { background: none; color: var(--navy-900); text-decoration: underline; }
  .mega li a { min-height: 30px; padding: .15em .7em; line-height: 1.35; }
}

/* Phone/tablet drawer. */
@media (max-width: 1079.98px) {
  .mega { display: block; }
  .mega__cats { display: none; }
  .mega__panel { display: block; }
  .mega a.mega__panel-h { display: flex; align-items: center; min-height: 44px; padding: .6em .9em .2em; font: 700 1rem/1.3 var(--font-sans); color: var(--navy-900); }
  .mega a.mega__sub {
    display: flex; align-items: center; min-height: 44px; padding: .3em .9em; color: var(--ink-3);
    font: 700 .75rem/1.3 var(--font-sans); letter-spacing: .06em; text-transform: uppercase;
  }
  .mega__group ul { padding-bottom: var(--s-2); }
  .mega__group + .mega__group { margin-top: var(--s-2); }
}

/* ------------------------------------------------------------ 2. body copy justified (client asked for it)
   Paragraphs and list items only: headings, buttons, prices, tables, the nav and the footer keep their
   alignment. hyphens keeps the word gaps small in narrow columns. */
main :is(p, li) { text-align: justify; text-justify: inter-word; hyphens: auto; -webkit-hyphens: auto; }
main :is(.fees, .consult-card, .package-card, .doc-card, .sub-card, .head-index, .tabs__list, .crumbs,
         .calc-result, form) :is(p, li),
main :is(p, li):is(.fee__price, .fee__from, .review__stars) {
  text-align: left; hyphens: manual; -webkit-hyphens: manual;
}
/* Freebies cards (Court Forms / Bare Acts): the card titles are 2-4 words in a narrow card, so justify
   stretched them into "Process      Fee Form" (independent review, item 8). */
main :is(.acts, .acts__list, .act) :is(p, li, h2, h3, .act__name, .act__meta) {
  text-align: left; hyphens: manual; -webkit-hyphens: manual;
}
/* Short card copy (testimonials, benefit cards, CTA cards) stays left: one justified 3-word line
   would stretch the spaces into rivers, and the client's complaint is about the article text. */
main :is(.why, .book__card, .action-card, .svc-card, .detail, .contact-card__talk) :is(p, li) {
  text-align: left; hyphens: manual; -webkit-hyphens: manual;
}
/* Phone: a 340px column cannot justify without rivers of white space -> back to left. */
@media (max-width: 640px) {
  main :is(p, li) { text-align: left; hyphens: manual; -webkit-hyphens: manual; }
}

/* ------------------------------------------------------------ 3. bare-acts.html (new Freebies page) */
.acts-page { padding: var(--s-7) 0 var(--s-8); }
.acts { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-3); grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.act {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-4);
  padding: var(--s-4) var(--s-5); background: var(--sheet); border: 1px solid var(--line);
  border-radius: var(--r-md); box-shadow: var(--sh-1); scroll-margin-top: calc(var(--header-h) + var(--s-4));
}
.act__name { margin: 0; font: 700 1.0625rem/1.35 var(--font-sans); letter-spacing: -.01em; color: var(--navy-900); overflow-wrap: anywhere; }
.act__actions { display: flex; gap: var(--s-2); flex: none; }
.act__actions .btn { white-space: nowrap; }
@media (max-width: 599.98px) {
  .act { flex-direction: column; align-items: stretch; gap: var(--s-3); }
  .act__actions .btn { flex: 1; justify-content: center; }
  .acts { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------ round 3 (client list 2025-11-24) */

/* 1. Services menu: every group heading ("RETURN FILING", "GST FILING", "Trademark", …) reads as a
   heading now — heavier weight, full-strength ink and a tinted band — instead of one more link in
   the grey small print.  Desktop panel and phone drawer both use .mega__sub, so one rule covers all
   categories (client item 一.1). */
.mega a.mega__sub {
  font-weight: 800; color: var(--navy-900); background: var(--navy-50);
  border-radius: var(--r-sm); margin-bottom: 2px;
}
.mega a.mega__sub:hover { background: var(--navy-100); color: var(--navy-900); text-decoration: none; }
.mega__group ul { padding-bottom: var(--s-2); }

/* 2. The in-page section list on the left of a service page (Importance / Documents Required / Time
   Taken & Statutory Timelines / …) is justified, so the items that wrap to two lines fill the column
   instead of leaving a ragged edge (client item 一.2, screenshots wa-1123-change-2 / wa-1124-ip-2).
   Only the ≥1200px vertical rail: below that the same list is a wrapped pill row, on a phone it is
   hidden behind the accordions — both keep their round-2 look.  Single-line items are not stretched
   (justify never touches a last line; no text-align-last).  hyphens lets a long word break instead of
   opening a river between the words.
   Round 3 rework: the rail is 300px (was 200px in round 2, 240px in the first pass).  Measured on
   Taxation + IP: 200px -> 33/56 labels wrap and the word gaps reach 40-50px; 240px -> 30 wrap, max
   44px; 300px -> 7 wrap, median 10.3px, max 27.2px.  300px costs 60px of article width (446px with
   the packages column, 506px before) — the page container is capped at 1200px, so ~560px would need
   a wider container (see docs/第三轮-问客户.md 第 1 条). */
@media (min-width: 1200px) {
  .tabs { grid-template-columns: 300px minmax(0, 1fr); }
  .tabs__list .tabs__tab {
    text-align: justify; text-justify: inter-word;
    hyphens: auto; -webkit-hyphens: auto;
  }
}
/* 1200-1279 has the least room: keep the rail at 280px there so the article column does not drop
   below ~386px (at 1280+ the page container stops growing, so 280px would only buy 20px). */
@media (min-width: 1200px) and (max-width: 1279.98px) {
  .tabs { grid-template-columns: 280px minmax(0, 1fr); }
}

/* 3. FAQ: question on its own line, answer below it — the Copyright Registration shape the client
   pointed at (item 一.3).  The blocks are <h4 class="faq-q"> + <p class="faq-a">; only the spacing
   between the pair is tightened so it reads as one Q/A unit. */
.prose .faq-q + .faq-a { margin-top: -.15em; }

/* ============================================================ round 4 (client lists 2025-11-24 + 2025-11-25) */

/* 1. header: menu centred, Get Consultation + search on the right (items 2, 4); search looks like the old site */
.site-search { position: relative; display: flex; align-items: center; padding: 2px; border-radius: 50px; background: rgba(255, 255, 255, .1); }
.site-search__box {
  flex: 1; min-width: 0; width: 140px; min-height: var(--tap); padding: 0 4px 0 15px; border: 0; background: transparent; color: #fff; font-size: .9375rem;
  -webkit-appearance: none; appearance: none;
}
.site-search__box::placeholder { color: rgba(255, 255, 255, .6); opacity: 1; }
.site-search__box::-webkit-search-cancel-button { display: none; }
.site-search__box:focus { outline: none; }
.site-search:focus-within { box-shadow: 0 0 0 2px var(--amber-500); }
.site-search__btn { flex: none; min-height: var(--tap); padding: 0 18px; border: 0; border-radius: 50px; background: #EDA92A; color: var(--navy-950); font-weight: 700; font-size: .8125rem; }
.site-search__btn:hover { background: var(--amber-600); }
.site-search__results {
  position: absolute; right: 0; top: calc(100% + 10px); z-index: 130; width: 360px; max-width: calc(100vw - 2 * var(--gutter)); max-height: min(75vh, 530px);
  overflow: auto; overscroll-behavior: contain; padding: var(--s-2); background: var(--sheet); color: var(--ink); border-radius: var(--r-md); box-shadow: var(--sh-3);
}
.site-search__results a { display: block; padding: .55em .75em; border-radius: var(--r-sm); color: var(--navy-900); font-weight: 600; line-height: 1.35; text-decoration: none; }
.site-search__results a small { display: block; font-weight: 400; font-size: .8125rem; color: var(--ink-3); }
.site-search__results a:hover, .site-search__results a[aria-selected="true"] { background: var(--navy-50); }
.site-search__none { margin: 0; padding: .55em .75em; color: var(--ink-2); font-size: .9375rem; }
@media (min-width: 1080px) {
  .site-header__in { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: var(--s-4); }
  .site-nav { display: contents; }
  .site-header .brand { justify-self: start; }
  .site-nav__end { display: flex; align-items: center; justify-content: flex-end; gap: var(--s-3); min-width: 0; }
  .site-nav__auth { flex: none; }
  .site-nav__auth .btn { min-height: 44px; white-space: nowrap; }
}
@media (min-width: 1080px) and (max-width: 1199.98px) {
  .site-search__box { width: 84px; padding-left: 12px; }
  .site-search__btn { padding: 0 12px; }
  .site-nav__auth .btn { padding-inline: .8em; font-size: .875rem; }
}
@media (max-width: 1079.98px) {
  .site-nav__end { display: contents; }
  .site-search { order: -1; }
  .site-search__box { font-size: 1rem; }
  .site-search__results { left: 0; right: 0; width: auto; max-width: none; max-height: 60vh; }
}

/* 2. Freebies menu (item 7): four entries; hovering one with sub-items opens them next to it */
@media (min-width: 1080px) {
  .menu--fly { left: 0; right: auto; width: max-content; padding: var(--s-3); overflow: visible; }
  .menu--fly .mega { grid-template-columns: auto auto; gap: 0; }
  .menu--fly .mega__cats { min-width: 290px; padding: 0; border: 0; }
  .menu--fly .mega__panel.is-active { columns: 1; padding-left: var(--s-3); margin-left: var(--s-3); border-left: 1px solid var(--line); min-width: 250px; max-width: 340px; }
  .menu--fly .mega__panel--empty.is-active { display: none; }
  .menu--fly .mega__group { margin: 0; }
}
@media (max-width: 1079.98px) {
  .menu--fly .mega__group { display: none; }
  .menu--fly .mega a.mega__panel-h { padding-block: .4em; }
}

/* sub-items stay on screen: the widest (Court Forms) makes the menu about 670px */
@media (min-width: 1080px) and (max-width: 1279.98px) { .menu--fly { left: -240px; } }
@media (min-width: 1280px) and (max-width: 1559.98px) { .menu--fly { left: -160px; } }

/* 3. top service boxes: tinted groups that fill the row (items 15, 17, 19, 20, 21, 25) */
:is(.head-index--ip, .head-index--corp, .head-index--tax) { gap: var(--s-3); grid-template-columns: 1fr; }
:is(.head-index--ip, .head-index--corp, .head-index--tax) .head-index__group,
:is(.head-index--ip, .head-index--corp, .head-index--tax) .head-index__group + .head-index__group {
  padding: var(--s-3) var(--s-3) var(--s-4); border-radius: var(--r-md); border-left: 0;
}
@media (max-width: 599.98px) {   /* phone: Trademark | Copyright, Design | Patent, then Infringement across */
  .head-index--ip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .head-index--ip .head-index__group--violet { grid-column: 1 / -1; }
}
:is(.head-index--ip, .head-index--corp, .head-index--tax) .head-index__title {
  font: 800 .75rem/1.3 var(--font-sans); letter-spacing: .08em; text-transform: uppercase;
  color: var(--navy-900); margin-bottom: var(--s-2);
}
.head-index__group--green { background: #E9F3EC; }
.head-index__group--blue { background: #E8F0FA; }
.head-index__group--yellow { background: #FBF3DF; }
.head-index__group--orange { background: #FBEAE1; }
.head-index__group--violet { background: #F1EAF8; }
.head-index--ip .head-index__chips { flex-direction: column; align-items: flex-start; }
.head-index--ip .head-index__group--violet .head-index__chips { display: grid; grid-template-columns: repeat(2, max-content); align-items: start; }
@media (min-width: 600px) {
  .head-index--ip { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .head-index--ip .head-index__group { grid-column: span 2; }
  .head-index--ip .head-index__group:nth-child(n+4) { grid-column: span 3; }
}
@media (min-width: 1080px) {
  .head-index--ip { grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(0, 1.5fr); }
  .head-index--ip .head-index__group:nth-child(n) { grid-column: auto; }
}
.head-index--corp .head-index__group--blue .head-index__chips,
.head-index--corp .head-index__group--yellow .head-index__chips { flex-direction: column; align-items: flex-start; }
@media (min-width: 600px) {
  .head-index--corp { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .head-index--corp .head-index__group:is(:nth-child(1), :nth-child(4)) { grid-column: 1 / -1; }
  .head-index--tax { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1080px) {
  .head-index--corp { grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr) minmax(0, .75fr); }
  .head-index--corp .head-index__group:nth-child(1) { grid-column: auto; }
  .head-index--corp .head-index__group--green .head-index__chips { display: grid; grid-template-columns: repeat(2, max-content); justify-items: start; }
}
/* one untitled-colour group whose chips fill the whole row (Litigation 8, Consumer 3) */
.head-index--row { grid-template-columns: 1fr; }
.head-index--row .head-index__chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 600px) { .head-index--row .chip[aria-current="true"]::before { left: 1em; } }
.head-index--row .chip { width: 100%; justify-content: center; text-align: center; padding-inline: 1em; line-height: 1.25; }
@media (min-width: 900px) {
  .head-index--row4 .head-index__chips { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-3); }
  .head-index--row3 .head-index__chips { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-3); }
}
@media (max-width: 599.98px) { .head-index--row3 .head-index__chips { grid-template-columns: 1fr; } }

/* 4. right-hand enquiry box (items 18, 21, 35) */
.fees--enquiry { border-top: 4px solid var(--amber-500); }
.fees--enquiry .inline-form { grid-template-columns: 1fr; gap: 10px; margin-top: var(--s-3); }
.fees--enquiry .inline-form > * { grid-column: auto; }
.fees--enquiry .field { gap: 3px; }
.fees--enquiry .field input { min-height: 44px; }
.fees--enquiry .field textarea { height: 76px; min-height: 76px; }
.req { color: var(--err); margin-left: 3px; }

/* 5. Documentation packages (item 22): seven collapsed rows on one screen */
@media (min-width: 900px) {
  body:has(.fees--many) .svc-hero__title { max-width: none; }
  .fees--many { padding: var(--s-4) var(--s-4) var(--s-3); }
  .fees--many .fees__list { margin-top: var(--s-2); }
  .fees--many .fee__row { grid-template-columns: minmax(0, 1fr) auto; min-height: 38px; padding-block: 3px; align-items: center; }
  .fees--many .fee__leader { display: none; }
  .fees--many .fee__name { font-size: .9375rem; padding: 0; }
  .fees--many .fee__price { flex-direction: row; align-items: baseline; gap: 6px; }
  .fees--many .fee__from { font-size: .6875rem; margin: 0; }
  .fees--many .fee__price strong { font-size: 1.15rem; }
  .fees--many .fees__alt { margin-top: var(--s-2); }
}

/* 6. Partner with us (item 11): the client's own centred card */
.partner { max-width: calc(800px + 2 * var(--gutter)); padding-top: var(--s-7); padding-bottom: var(--s-8); }
.partner__card { padding: var(--s-7) var(--s-6); background: var(--sheet); border-top: 5px solid var(--amber-500); border-radius: 20px; box-shadow: 0 15px 35px rgba(12, 31, 58, .08); }
.partner__title { font: 800 1.75rem/1.25 var(--font-sans); letter-spacing: -.025em; word-spacing: .06em; color: var(--navy-900); text-align: center; }
main .partner__sub { margin: var(--s-2) 0 var(--s-6); text-align: center; color: var(--ink-2); }
.partner .inline-form > *, .partner .inline-form .field--requirement { grid-column: 1 / -1; }
.consent { display: flex; align-items: flex-start; gap: 10px; padding: 15px; background: var(--navy-50); border: 1px solid var(--line); border-radius: 8px; }
.consent input { flex: none; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--navy-900); }
.consent label { font-size: .875rem; line-height: 1.5; color: var(--ink-2); }
@media (min-width: 600px) { .partner .inline-form :is(.field--email, .field--phone) { grid-column: auto; } .partner .inline-form > :is(.field--email, .field--phone) { grid-column: auto; } }
@media (max-width: 599.98px) { .partner { padding-top: var(--s-5); } .partner__card { padding: var(--s-5) var(--s-4); } }

/* home form card is as tall as the Why box: the message field takes the spare height */
@media (min-width: 900px) {
  .book__card { display: flex; }
  .book__card .inline-form { flex: 1; grid-template-rows: auto auto 1fr auto; }
  .book__card .field--requirement { display: flex; flex-direction: column; }
  .book__card .field--requirement textarea { flex: 1; }
}

/* 7. footer (items 12, 13) */
.site-footer__bottom { text-align: center; }
@media (max-width: 599.98px) {   /* clear of the round Call / WhatsApp buttons: at the page end, and while typing */
  .site-footer { padding-bottom: 88px; }
  .site-footer__bottom { padding-inline: 60px; text-wrap: balance; }
  body:has([data-inline-enquiry] :is(input:not([type=checkbox]), select, textarea):focus) .fab { opacity: 0; visibility: hidden; pointer-events: none; }
}
.site-footer__brand .brand { font-size: 3.6rem; }

/* Round 5 (5): desktop Call panel (site.js) — the number and a Copy button next to the Call button */
.callpop { position: fixed; z-index: 200; display: flex; flex-wrap: wrap; align-items: center; gap: 4px var(--s-3);
  width: 300px; max-width: calc(100vw - 16px); padding: var(--s-3) var(--s-4); background: var(--sheet); color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--sh-3); }
.callpop[hidden] { display: none; }
.callpop__label { flex-basis: 100%; font-size: .8125rem; color: var(--ink-2); }
.callpop__num { font: 700 1.25rem/1.3 var(--font-sans); color: var(--navy-900); white-space: nowrap; user-select: all; }
.callpop__copy { min-height: 36px; padding: 0 var(--s-3); border: 1px solid var(--navy-900); border-radius: var(--r-pill);
  background: var(--navy-900); color: #fff; font: 600 .875rem/1 var(--font-sans); cursor: pointer; }
.callpop__copy:hover { filter: brightness(1.15); }
.callpop__copy:focus-visible { outline: 2px solid var(--amber-500); outline-offset: 2px; }
.callpop__msg { flex-basis: 100%; min-height: 1em; font-size: .8125rem; color: var(--ink-2); }
.callpop__msg:empty { display: none; }
/* Round 5 fix (5): the IP page's second-level lists (NOC, Logo Lockups, Section 3, Direct Infringement)
   stay left-aligned. The site-wide justify above stretches their short, hard-to-break lines
   ("company/employer") into wide word gaps at 1366. Only nested lists on the IP page are touched; all
   other body copy keeps the client's justify. */
body[data-page="Intellectual Property"] main li > ul { text-align: left; }
body[data-page="Intellectual Property"] main li > ul :is(li, p) {
  text-align: left; text-justify: auto; hyphens: manual; -webkit-hyphens: manual;
}
