/* Demo site styles. Two editions share one sheet: .ed-tax (ledger paper,
   turmeric marker, rubber-stamp labels) and .ed-ca (letterhead: plain
   type, hairline rules, no decoration that could read as a logo).
   The WitsCode overlay (.sample-bar, .dx, .dtoast, .ftr-demo) uses its own
   system-font styling so it never looks like part of the firm's site. */

:root {
  --paper: #f5f0e4; --paper-2: #ece4d2; --card: #fffcf5;
  --ink: #152620; --ink-2: #3f4d46; --muted: #5c6762;
  --line: #ddd3bd; --line-2: #c9bda3;
  --brand: #0f4d3a; --brand-dk: #0b3528;
  --accent: #e3a21a; --accent-soft: #f6e3b4; --accent-ink: #7a5208;
  --stamp: #b5432c; --wa: #177a41;
  --rule: rgba(15, 77, 58, .075); --focus: rgba(15, 77, 58, .28);
  --font-d: "Young Serif", Georgia, serif;
  --font-b: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-m: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --r: 16px; --r-btn: 999px;
  --wc: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
.ed-ca {
  --paper: #f7f6f2; --paper-2: #eeebe3; --card: #ffffff;
  --ink: #151b2a; --ink-2: #3a4357; --muted: #5b6376;
  --line: #dedad0; --line-2: #c8c2b4;
  --brand: #1d2b4a; --brand-dk: #141e36;
  --accent: #9a7a3a; --accent-soft: #efe6d2; --accent-ink: #6e5524;
  --stamp: #8a3a2c;
  --rule: transparent; --focus: rgba(29, 43, 74, .25);
  --font-d: "Newsreader", Georgia, serif;
  --font-m: "Schibsted Grotesk", system-ui, sans-serif;
  --r: 6px; --r-btn: 6px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 16px/1.6 var(--font-b);
  padding-bottom: calc(60px + env(safe-area-inset-bottom));
}
svg { display: block; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-family: var(--font-d); font-weight: 400; line-height: 1.1; letter-spacing: -.01em; text-wrap: balance; }
.ed-ca h1, .ed-ca h2 { font-weight: 500; letter-spacing: -.005em; }
h1 { font-size: clamp(2.1rem, 1.2rem + 4vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 1.1rem + 2vw, 2.4rem); }
h3 { font-family: var(--font-b); font-weight: 650; font-size: 1.06rem; line-height: 1.3; letter-spacing: 0; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .wrap { padding: 0 28px; } }

/* Placeholder for facts only the real firm can supply */
.ph {
  background: rgba(227, 162, 26, .17); border-bottom: 1.5px dashed rgba(122, 82, 8, .55);
  padding: 0 .28em; border-radius: 3px; color: var(--ink);
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.ed-ca .ph { background: rgba(154, 122, 58, .13); border-bottom-color: rgba(110, 85, 36, .55); }

/* ---------- WitsCode overlay: banner ---------- */
.sample-bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 14px;
  background: #16171b; color: #ecebe6; text-align: center;
  font: 500 12.5px/1.45 var(--wc); letter-spacing: .01em; padding: 8px 16px;
}
/* WitsCode opener buttons: 36px visible, 44px tap area */
.sb-btn, .ftr-dx {
  position: relative; min-height: 36px; padding: 0 14px; border: 1px solid #9be38b; border-radius: 999px;
  background: transparent; color: #9be38b; font: 600 12.5px/1 var(--wc); cursor: pointer;
}
.sb-btn::after, .ftr-dx::after { content: ""; position: absolute; inset: -4px -2px; }
.sb-btn:hover, .ftr-dx:hover { background: rgba(155, 227, 139, .12); }
.sb-btn:focus-visible, .ftr-dx:focus-visible { outline: 3px solid #9be38b; outline-offset: 2px; }
.ftr-dx { margin-top: 12px; }
html:not(.js) [data-dx-open] { display: none; }

/* ---------- Header ---------- */
.hdr { position: relative; z-index: 30; background: var(--paper); border-bottom: 1px solid var(--line); }
.ed-ca .hdr { background: var(--card); border-bottom: 3px double var(--line-2); }
@media (min-width: 960px) { .hdr { position: sticky; top: 0; } }
.hdr-in { display: flex; align-items: center; gap: 16px; min-height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; min-height: 44px; margin-right: auto; min-width: 0; text-decoration: none; }
.brand-mark { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--brand); color: var(--accent); }
.brand-mark .ic { width: 21px; height: 21px; }
.brand-name { font-family: var(--font-d); font-size: 1.22rem; line-height: 1.15; }
@media (max-width: 959px) { .brand-name { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; } }
.brand-ca { flex-direction: column; align-items: flex-start; justify-content: center; gap: 1px; }
.brand-ca .brand-name { font-family: var(--font-b); font-weight: 600; font-size: 1.04rem; }
.brand-des { font-size: .76rem; color: var(--muted); letter-spacing: .04em; }
.nav, .hdr-cta { display: none; }
@media (min-width: 960px) {
  .nav { display: flex; gap: 2px; }
  .nav a { padding: 8px 12px; border-radius: 8px; text-decoration: none; font-weight: 500; color: var(--ink-2); }
  .nav a:hover { background: var(--paper-2); color: var(--ink); }
  .nav a[aria-current] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--accent); border-radius: 0; }
  .hdr-cta { display: flex; align-items: center; gap: 14px; }
}
.hdr-tel { display: flex; align-items: center; gap: 6px; font-weight: 600; font-size: .95rem; text-decoration: none; }
.hdr-tel .ic { width: 17px; height: 17px; }
.mnav { position: relative; flex: none; }
@media (min-width: 960px) { .mnav { display: none; } }
.mnav summary {
  list-style: none; display: flex; align-items: center; gap: 6px; cursor: pointer;
  min-height: 44px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 10px;
  background: var(--card); font-weight: 600; font-size: .9rem;
}
.mnav summary::-webkit-details-marker { display: none; }
.mnav summary .ic { width: 19px; height: 19px; }
.mnav nav {
  position: absolute; right: 0; top: calc(100% + 8px); width: min(260px, calc(100vw - 32px));
  display: grid; padding: 8px; background: var(--card); border: 1px solid var(--line);
  border-radius: 14px; box-shadow: 0 24px 48px -20px rgba(0, 0, 0, .35);
}
.mnav nav a { padding: 12px 14px; border-radius: 9px; text-decoration: none; font-weight: 500; }
.mnav nav a[aria-current] { background: var(--paper-2); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 48px; padding: 0 20px; border: 1.5px solid transparent; border-radius: var(--r-btn);
  font: 600 .98rem/1.2 var(--font-b); text-decoration: none; cursor: pointer;
  transition: transform .15s, background-color .15s, box-shadow .15s;
}
.btn .ic { flex: none; width: 19px; height: 19px; }
.btn:active { transform: translateY(1px); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: #12663a; box-shadow: 0 10px 22px -12px rgba(23, 122, 65, .8); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dk); }
.btn-line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-line:hover { background: var(--ink); color: var(--paper); }
.btn-text { min-height: 44px; padding: 0 4px; color: var(--brand); text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1.5px; }
.btn-text .ic { width: 17px; height: 17px; transition: transform .2s; }
.btn-text:hover .ic { transform: translateX(3px); }
.btn-light { background: #fff; color: var(--brand-dk); }
.btn-ghost { border-color: rgba(255, 255, 255, .5); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .1); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: .92rem; }
.btn-block { width: 100%; }
.btns { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 26px; }
@media (max-width: 560px) { .btns .btn:not(.btn-text) { flex: 1 1 100%; } }

/* ---------- Hero and page heads ---------- */
.hero, .phead {
  position: relative; border-bottom: 1px solid var(--line);
  background: repeating-linear-gradient(to bottom, transparent 0 35px, var(--rule) 35px 36px), var(--paper);
}
.hero { padding: 40px 0 52px; }
@media (min-width: 960px) { .hero { padding: 72px 0 84px; } }
@media (min-width: 1240px) {
  .ed-tax .hero::before, .ed-tax .phead::before {
    content: ""; position: absolute; top: 0; bottom: 0; left: calc(50% - 600px); width: 5px;
    border-left: 1px solid rgba(181, 67, 44, .35); border-right: 1px solid rgba(181, 67, 44, .35);
  }
}
.hero-grid { display: grid; gap: 34px; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 56px; align-items: start; } }
.hero h1 { max-width: 17ch; }
.hero-svc h1 { font-size: clamp(2rem, 1.2rem + 3.4vw, 3.2rem); }
.lede { margin-top: 18px; max-width: 58ch; font-size: 1.1rem; color: var(--ink-2); }
.hl {
  color: var(--brand); padding: 0 .06em; white-space: nowrap;
  background: linear-gradient(var(--accent-soft), var(--accent-soft)) 0 90% / 0% 40% no-repeat;
  animation: mark .8s .55s cubic-bezier(.3, .7, .2, 1) forwards;
}
@keyframes mark { to { background-size: 100% 40%; } }
.ticks { list-style: none; display: grid; gap: 10px; margin: 22px 0 0; padding: 0; }
.ticks li { display: flex; align-items: flex-start; gap: 10px; }
.ticks .ic { flex: none; width: 22px; height: 22px; margin-top: 1px; padding: 3px; border-radius: 50%; background: var(--accent-soft); color: var(--brand); stroke-width: 2.4; }
.ticks-sm li { font-size: .94rem; }
.ticks-sm .ic { width: 20px; height: 20px; }
@media (min-width: 760px) { .ticks-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 28px; } }
.notice { display: inline-block; margin-top: 14px; padding: 6px 10px; border-radius: 8px; background: var(--accent-soft); color: var(--accent-ink); font-size: .86rem; font-weight: 600; }
.hero-copy > *, .hero-form, .hero-card { animation: rise .6s cubic-bezier(.2, .7, .2, 1) both; }
.hero-copy > :nth-child(2) { animation-delay: .06s; }
.hero-copy > :nth-child(3) { animation-delay: .12s; }
.hero-copy > :nth-child(4) { animation-delay: .18s; }
.hero-copy > :nth-child(5) { animation-delay: .24s; }
.hero-form, .hero-card { animation-delay: .2s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

.phead { padding: 34px 0 42px; }
@media (min-width: 960px) { .phead { padding: 56px 0 64px; } }
.phead h1 { max-width: 22ch; font-size: clamp(2rem, 1.3rem + 3vw, 3.1rem); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 18px; padding: 0; font-size: .86rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line-2); }
.crumbs a { display: inline-block; padding: 12px 0; margin: -12px 0; color: var(--ink-2); }

/* CA hero: name, designation, particulars card */
.ed-ca .hero, .ed-ca .phead { background: var(--paper); }
.hero-ca h1 { max-width: 20ch; font-size: clamp(2.3rem, 1.3rem + 4vw, 3.9rem); }
.designation { margin-top: 12px; font-size: .9rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--accent-ink); }
.hero-place { display: flex; align-items: center; gap: 6px; margin-top: 16px; color: var(--ink-2); }
.hero-place .ic { width: 18px; height: 18px; flex: none; }
.hero-card { padding: 22px 22px 8px; background: var(--card); border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: var(--r); box-shadow: 0 22px 44px -32px rgba(20, 28, 43, .5); }
.parts-t { margin-bottom: 10px; font-size: .74rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--accent-ink); }
.parts { display: grid; margin: 0; border-top: 1px solid var(--line); }
.parts > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.hero-card .parts > div:last-child { border-bottom: 0; }
.parts dt { font-size: .9rem; color: var(--muted); }
.parts dd { margin: 0; font-weight: 500; }
.sec .parts { max-width: 760px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 4px 20px; }
.sec .parts > div:last-child { border-bottom: 0; }

/* ---------- Micro form ---------- */
.mform {
  position: relative; padding: 24px 20px 18px; background: var(--card);
  border: 1px solid var(--line); border-radius: 18px;
  box-shadow: 0 1px 0 var(--line), 0 28px 50px -30px rgba(21, 38, 32, .45);
}
.ed-ca .mform { border-radius: var(--r); border-top: 3px solid var(--brand); }
.ed-tax .mform::before {
  content: ""; position: absolute; left: 22px; right: 22px; top: -6px; height: 12px;
  background: radial-gradient(circle at 6px 6px, var(--paper) 4px, transparent 4.6px) 0 0 / 18px 12px repeat-x;
}
.mform-t { font-family: var(--font-d); font-size: 1.55rem; line-height: 1.15; }
.mform-s { margin-top: 6px; font-size: .93rem; color: var(--muted); }
.fld { display: grid; gap: 6px; margin-top: 14px; font-size: .9rem; font-weight: 600; }
.fld input {
  width: 100%; min-height: 50px; padding: 0 14px; border: 1.5px solid var(--line-2); border-radius: 12px;
  background: var(--paper); color: var(--ink); font: 400 1rem var(--font-b);
}
.ed-ca .fld input { border-radius: 4px; background: #fff; }
.fld input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--focus); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; padding: 0; border: 0; min-width: 0; }
.chips legend { padding: 0; margin-bottom: 8px; font-size: .9rem; font-weight: 600; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; cursor: pointer;
  border: 1.5px solid var(--line-2); border-radius: var(--r-btn); background: var(--card);
  font-size: .92rem; font-weight: 500; transition: background-color .15s, color .15s, border-color .15s;
}
.chip input:checked + span { background: var(--brand); border-color: var(--brand); color: #fff; }
.chip input:focus-visible + span { box-shadow: 0 0 0 3px var(--focus); }
.mform .btn { margin-top: 18px; }
.fine { margin-top: 10px; font-size: .8rem; color: var(--muted); text-align: center; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Trust strip ---------- */
.strip { padding: 24px 0; background: var(--brand-dk); color: #f3efe4; }
.strip-in { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; margin: 0; }
@media (min-width: 768px) { .strip-in { grid-template-columns: repeat(4, minmax(0, 1fr)); } .strip-in > div + div { border-left: 1px solid rgba(255, 255, 255, .14); padding-left: 20px; } }
.strip dt { font: 500 .68rem/1.2 var(--font-m); letter-spacing: .13em; text-transform: uppercase; color: rgba(243, 239, 228, .7); }
.strip dd { margin: 6px 0 0; font-family: var(--font-d); font-size: 1.15rem; line-height: 1.3; }
.strip .ph { background: rgba(255, 255, 255, .1); border-bottom-color: rgba(255, 255, 255, .5); color: #fff; }
.strip-note { margin-top: 16px; font-size: .82rem; color: rgba(243, 239, 228, .72); }

/* ---------- Sections ---------- */
.sec { padding: 56px 0; }
@media (min-width: 768px) { .sec { padding: 84px 0; } }
.sec-tight { padding: 30px 0; }
@media (min-width: 768px) { .sec-tight { padding: 40px 0; } }
.tone-alt { background: var(--paper-2); }
.sec-head { max-width: 720px; margin-bottom: 32px; }
.sec-tight .sec-head { margin-bottom: 16px; }
.sec-tight .sec-head h2 { font-size: 1.45rem; }
.kicker { margin-bottom: 12px; font: 500 .74rem/1 var(--font-m); letter-spacing: .14em; text-transform: uppercase; color: var(--stamp); }
.sec-intro { margin-top: 12px; font-size: 1.05rem; color: var(--ink-2); }
.note { max-width: 72ch; margin-top: 20px; font-size: .88rem; color: var(--muted); }
.sec-more { margin-top: 10px; }

.grid { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
ul.grid { list-style: none; margin: 0; padding: 0; }
@media (min-width: 640px) { .g2, .g3, .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 980px) { .team.g2 { max-width: 760px; } }
@media (min-width: 980px) { .g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.card { position: relative; padding: 22px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }

.svc { display: flex; flex-direction: column; gap: 10px; text-decoration: none; transition: transform .2s, box-shadow .2s, border-color .2s; }
a.svc:hover { transform: translateY(-3px); border-color: var(--brand); box-shadow: 0 20px 36px -26px rgba(21, 38, 32, .55); }
.svc-ic { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--accent-soft); color: var(--brand); }
.ed-ca .svc-ic { width: auto; height: auto; place-items: start; background: none; color: var(--accent-ink); }
.svc-ic .ic { width: 23px; height: 23px; }
.svc p { font-size: .96rem; color: var(--ink-2); }
.more { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin-top: auto; font-weight: 600; font-size: .95rem; color: var(--brand); text-decoration: none; }
.more .ic { width: 17px; height: 17px; transition: transform .2s; }
a.svc:hover .more .ic { transform: translateX(3px); }
.more-wa { color: var(--wa); }
.more-wa:hover { text-decoration: underline; }

.pull-box {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 28px;
  padding: 20px 22px; background: var(--card); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: var(--r);
}
.pull-box > div { flex: 1 1 320px; }
.pull-t { font-weight: 650; }
.pull-box p + p { margin-top: 4px; font-size: .95rem; color: var(--ink-2); }
.pull-box .btn { padding: 10px 18px; text-align: center; }

/* Steps */
.steps { list-style: none; display: grid; gap: 30px; margin: 0; padding: 0; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 34px; } }
.steps li { position: relative; padding-top: 66px; }
.step-n { position: absolute; top: 0; left: 0; display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; background: var(--brand); color: var(--accent); font-family: var(--font-d); font-size: 1.55rem; }
.ed-ca .step-n { background: none; color: var(--brand); border: 1.5px solid var(--brand); }
@media (min-width: 860px) { .steps li:not(:last-child)::after { content: ""; position: absolute; top: 25px; left: 64px; right: -20px; border-top: 1.5px dashed var(--line-2); } }
.steps p { margin-top: 8px; color: var(--ink-2); }

/* Rubber stamp label */
.stamp {
  display: inline-block; align-self: flex-start; padding: 5px 8px;
  border: 1.5px solid currentColor; border-radius: 5px; color: var(--stamp);
  font: 500 .66rem/1 var(--font-m); letter-spacing: .14em; text-transform: uppercase;
  transform: rotate(-3deg); opacity: .92;
}
.ed-ca .stamp { transform: none; border-radius: 3px; letter-spacing: .08em; }
.stamp-sm { margin-left: 8px; padding: 4px 6px; font-size: .6rem; vertical-align: middle; }

/* Fees */
.fee { display: flex; flex-direction: column; gap: 12px; }
.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.amt { font-family: var(--font-d); font-size: 2.5rem; line-height: 1; }
.gst { font: 500 .82rem/1.2 var(--font-m); color: var(--muted); }
.suits { font-size: .95rem; color: var(--ink-2); }
.fee .btn { margin-top: auto; }
.fee .ticks { margin: 4px 0 8px; }

/* Due-date calendar */
.dues { list-style: none; display: grid; gap: 12px; margin: 0; padding: 0; }
.due { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 16px; align-items: start; padding: 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); transition: opacity .2s; }
@media (min-width: 760px) { .due { grid-template-columns: 90px minmax(0, 1fr) auto; align-items: center; padding: 18px 22px; } }
.due-d { position: relative; padding: 11px 4px 9px; text-align: center; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; }
.ed-tax .due-d::before { content: ""; position: absolute; top: -5px; left: 50%; width: 34px; height: 9px; transform: translateX(-50%); background: radial-gradient(circle, var(--ink-2) 2.4px, transparent 3px) 0 0 / 17px 9px repeat-x; }
.due-day { display: block; font-family: var(--font-d); font-size: 1.9rem; line-height: 1; }
.due-mon { display: block; margin-top: 6px; font: 500 .64rem/1.2 var(--font-m); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.due-tag { margin-bottom: 6px; font: 500 .66rem/1 var(--font-m); letter-spacing: .13em; text-transform: uppercase; color: var(--stamp); }
.due-b > p:last-child { margin-top: 4px; font-size: .93rem; color: var(--ink-2); }
.due-s { grid-column: 2; font-size: .85rem; font-weight: 650; }
.due-s:empty { display: none; }
@media (min-width: 760px) { .due-s { grid-column: auto; justify-self: end; text-align: right; } }
.due.is-next { border: 2px solid var(--brand); }
.due.is-next .due-d { background: var(--brand); border-color: var(--brand); color: #fff; }
.due.is-next .due-d::before { background-image: radial-gradient(circle, var(--accent) 2.4px, transparent 3px); }
.due.is-next .due-mon { color: rgba(255, 255, 255, .8); }
.due.is-next .due-s { color: var(--brand); }
.due.is-past { opacity: .58; }
.due.is-past .due-s { color: var(--muted); font-weight: 500; }
[data-hide-past] .is-past { display: none; }

/* Document checklist tabs (folder tabs) */
.tablist { position: relative; z-index: 1; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 6px; margin-bottom: -1px; }
@media (min-width: 760px) { .tablist { grid-auto-columns: max-content; } }
html:not(.js) .tablist { display: none; }
.tablist [role="tab"] {
  min-height: 44px; padding: 12px 12px; cursor: pointer; text-align: center;
  background: var(--paper-2); color: var(--ink-2); border: 1px solid var(--line); border-bottom: 0;
  border-radius: 12px 12px 0 0; font: 600 .88rem/1.25 var(--font-b);
}
.ed-ca .tablist [role="tab"] { border-radius: 4px 4px 0 0; }
.tone-alt .tablist [role="tab"] { background: var(--paper); }
.tablist [role="tab"][aria-selected="true"] { background: var(--card); color: var(--ink); box-shadow: inset 0 3px 0 var(--accent); }
.tabpanel { padding: 22px; background: var(--card); border: 1px solid var(--line); border-radius: 0 var(--r) var(--r) var(--r); }
html:not(.js) .tabpanel + .tabpanel { margin-top: 12px; border-radius: var(--r); }
.js .tabpanel { display: none; }
.js .tabpanel.is-on { display: block; }
.tabpanel-t { margin-bottom: 14px; font-weight: 650; }
.js .tabpanel-t { display: none; }
.checks { list-style: none; display: grid; gap: 12px; margin: 0; padding: 0; }
@media (min-width: 760px) { .checks { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 28px; } }
.checks li { display: flex; align-items: flex-start; gap: 10px; }
.checks .ic { flex: none; width: 20px; height: 20px; margin-top: 2px; color: var(--brand); }
.docs-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 20px; }
.docs-foot p { font-size: .9rem; color: var(--muted); }

/* Reviews (samples) */
.review { display: flex; flex-direction: column; gap: 14px; margin: 0; }
.review blockquote { position: relative; margin: 0; padding-top: 22px; font-family: var(--font-d); font-size: 1.14rem; line-height: 1.45; }
.review blockquote::before { content: "\201C"; position: absolute; top: -8px; left: -2px; font-size: 3.2rem; line-height: 1; color: var(--accent); }
.review figcaption { margin-top: auto; font-size: .9rem; color: var(--muted); }

/* FAQ */
.faq { display: grid; gap: 10px; max-width: 860px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; }
.ed-ca .faq details { border-radius: var(--r); }
.faq summary { position: relative; padding: 18px 56px 18px 20px; list-style: none; cursor: pointer; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; top: 50%; right: 20px; width: 14px; height: 14px; margin-top: -7px;
  background: linear-gradient(currentColor, currentColor) center / 14px 2px no-repeat, linear-gradient(currentColor, currentColor) center / 2px 14px no-repeat;
  transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq-a { padding: 0 20px 18px; color: var(--ink-2); }

/* Closing band */
.band {
  padding: 58px 0; color: #f4f1e8;
  background: repeating-linear-gradient(to bottom, transparent 0 35px, rgba(255, 255, 255, .045) 35px 36px), var(--brand-dk);
}
.ed-ca .band { background: var(--card); color: var(--ink); border-top: 1px solid var(--line); }
.ed-ca .band h2 { color: var(--ink); }
.ed-ca .band p { color: var(--ink-2); }
.band-in { display: grid; gap: 26px; }
@media (min-width: 900px) { .band-in { grid-template-columns: minmax(0, 1.25fr) auto; align-items: center; } }
.band h2 { max-width: 20ch; color: #fff; }
.band p { max-width: 52ch; margin-top: 12px; color: rgba(244, 241, 232, .82); }
.band .btns { margin-top: 0; }

/* Prose, inclusions, penalties */
.sec-prose .wrap { display: grid; gap: 30px; }
@media (min-width: 900px) { .has-aside .wrap { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: start; } }
.prose { max-width: 720px; }
.prose .sec-head { margin-bottom: 18px; }
.prose p { font-size: 1.06rem; color: var(--ink-2); }
.prose p + p { margin-top: 14px; }
.prose-aside { padding: 22px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }
.aside-t { margin-bottom: 10px; font-weight: 650; }
.prose-aside ul { display: grid; gap: 8px; margin: 0; padding-left: 18px; }
.incl .card { display: flex; flex-direction: column; gap: 8px; }
.incl .card > .ic { width: 26px; height: 26px; color: var(--brand); }
.incl p { font-size: .95rem; color: var(--ink-2); }
.pen { list-style: none; display: grid; gap: 12px; margin: 0; padding: 0; }
@media (min-width: 760px) { .pen { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pen li { padding: 18px 20px; background: var(--card); border: 1px solid var(--line); border-left: 3px solid var(--stamp); border-radius: 0 var(--r) var(--r) 0; }
.pen p { margin-top: 6px; font-size: .95rem; color: var(--ink-2); }

/* Team */
.person { display: flex; align-items: center; gap: 16px; margin: 0; }
.photo { flex: none; display: grid; place-items: center; align-content: center; gap: 4px; width: 84px; height: 84px; border: 1px dashed var(--line-2); border-radius: 50%; background: var(--paper-2); color: var(--muted); text-align: center; }
.photo .ic { width: 30px; height: 30px; }
.photo span { padding: 0 6px; font-size: .58rem; line-height: 1.15; letter-spacing: .04em; text-transform: uppercase; }
.photo-pp { width: 90px; height: 116px; border-radius: 3px; }
.person-n { font-weight: 650; }
.person-r { font-size: .93rem; color: var(--ink-2); }
.person-q { margin-top: 4px; font-size: .88rem; color: var(--muted); }

/* Contact */
.chan { display: flex; flex-direction: column; gap: 8px; }
.chan > .ic { width: 28px; height: 28px; color: var(--brand); }
.chan .sub { font-size: .88rem; color: var(--muted); }
.split { display: grid; gap: 34px; }
@media (min-width: 900px) { .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; } }
.hours { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.hours caption { padding-bottom: 10px; text-align: left; font-weight: 650; }
.hours th, .hours td { padding: 12px 16px; text-align: left; font-size: .95rem; border-bottom: 1px solid var(--line); }
.hours tr:last-child th, .hours tr:last-child td { border-bottom: 0; }
.hours th { font-weight: 500; color: var(--ink-2); }
.map-ph { display: grid; place-items: center; align-content: center; gap: 8px; height: 180px; margin-top: 16px; border: 1px dashed var(--line-2); border-radius: var(--r); color: var(--muted); font-size: .9rem; background: repeating-linear-gradient(45deg, transparent 0 10px, rgba(0, 0, 0, .025) 10px 20px); }
.map-ph .ic { width: 26px; height: 26px; }

/* Articles and links */
.arts { display: grid; gap: 12px; max-width: 900px; }
.art { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }
.art summary { display: grid; gap: 5px; padding: 18px 20px; list-style: none; cursor: pointer; }
.art summary::-webkit-details-marker { display: none; }
.art summary::after { content: "Read"; margin-top: 4px; font-size: .86rem; font-weight: 650; color: var(--brand); text-decoration: underline; text-underline-offset: 4px; }
.art[open] summary::after { content: "Close"; }
.art-d { font: 500 .68rem/1 var(--font-m); letter-spacing: .12em; text-transform: uppercase; color: var(--stamp); }
.art-t { font-family: var(--font-d); font-size: 1.28rem; line-height: 1.25; }
.art-s { font-size: .95rem; color: var(--ink-2); }
.art-body { padding: 0 20px 20px; color: var(--ink-2); }
.art-body p + p { margin-top: 12px; }
.olink { display: flex; flex-direction: column; gap: 4px; height: 100%; padding-right: 48px; text-decoration: none; }
.olink span { font-weight: 650; }
.olink small { font-size: .88rem; color: var(--muted); }
.olink .ic { position: absolute; top: 22px; right: 20px; width: 18px; height: 18px; color: var(--brand); }
.olink:hover { border-color: var(--brand); }
.rel { display: flex; flex-wrap: wrap; gap: 10px; }
.rel-a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; background: var(--card); border: 1px solid var(--line-2); border-radius: var(--r-btn); font-weight: 600; font-size: .95rem; text-decoration: none; }
.rel-a .ic { width: 16px; height: 16px; }
.rel-a:hover { border-color: var(--brand); color: var(--brand); }

/* ---------- Footer ---------- */
.ftr { padding: 50px 0 26px; background: var(--ink); color: #d9d6cc; font-size: .93rem; }
.ed-ca .ftr { background: #10172a; }
.ftr-grid { display: grid; gap: 30px; }
@media (min-width: 760px) { .ftr-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; } }
.ftr-name { font-family: var(--font-d); font-size: 1.4rem; line-height: 1.2; color: #fff; }
.ed-ca .ftr-name { font-family: var(--font-b); font-weight: 600; font-size: 1.15rem; }
.ftr-des { margin-top: 4px; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: #bfb9a8; }
.ftr-firm > p:not(.ftr-name):not(.ftr-des) { margin-top: 10px; }
.ftr address { display: grid; gap: 2px; margin-top: 14px; font-style: normal; }
.ftr a { color: #fff; text-decoration-color: rgba(255, 255, 255, .35); text-underline-offset: 3px; }
.ftr-h { margin-bottom: 12px; font: 500 .7rem/1 var(--font-m); letter-spacing: .14em; text-transform: uppercase; color: #a8a49a; }
.ftr-list { list-style: none; display: grid; gap: 8px; margin: 0; padding: 0; }
.ftr-list li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 10px; }
.ftr-list:has(a) { gap: 0; }
.ftr-list a, .ftr address a { display: inline-flex; align-items: center; min-width: 44px; min-height: 44px; }
.ftr .ph { background: rgba(255, 255, 255, .1); border-bottom-color: rgba(255, 255, 255, .5); color: #fff; }
.ftr-disc { max-width: 92ch; margin-top: 34px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .85rem; color: #b9b5aa; }

/* ---------- WitsCode overlay: footer note, toast, pop-up ---------- */
.ftr-demo { margin-top: 20px; padding: 10px 12px; border-radius: 8px; background: rgba(255, 255, 255, .06); font: 500 .8rem/1.5 var(--wc); color: #d4d1c7; }
.ftr-disc + .ftr-demo { margin-top: 16px; }

.dtoast {
  position: fixed; left: 50%; bottom: calc(76px + env(safe-area-inset-bottom)); z-index: 60;
  width: min(440px, calc(100% - 32px)); padding: 12px 16px 12px 14px;
  background: #16171b; color: #f1efe8; border-radius: 12px; box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .6);
  font: 500 14px/1.45 var(--wc); opacity: 0; transform: translate(-50%, 10px); transition: opacity .2s, transform .2s;
}
.dtoast.show { opacity: 1; transform: translate(-50%, 0); }
.dtoast b { margin-right: 4px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: #9be38b; }
@media (min-width: 960px) { .dtoast { bottom: 28px; } }

.dx { position: fixed; inset: 0; z-index: 2147483000; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(10, 10, 14, .55); opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s; }
.dx.show { opacity: 1; visibility: visible; transition: opacity .35s, visibility 0s; }
.dx-card { position: relative; width: 100%; max-width: 400px; padding: 30px 26px 22px; background: #16171b; color: #f1efe8; border-radius: 20px; font-family: var(--wc); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .6); transform: translateY(14px); transition: transform .35s; }
.dx.show .dx-card { transform: none; }
.dx-from { font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: #8a8f98; }
.dx-card h2 { margin: 14px 0 10px; font: 800 26px/1.15 var(--wc); letter-spacing: -.01em; color: #fff; }
.dx-p { margin: 0 0 22px; font-size: 15.5px; line-height: 1.55; color: #c9c7bf; }
.dx-p [data-p="firm"] { color: #fff; font-weight: 600; }
.dx-btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 52px; padding: 0 18px; border-radius: 999px; background: #25d366; color: #062e16; font-size: 16px; font-weight: 700; text-decoration: none; }
.dx-btn:hover { background: #3be07a; }
.dx-btn .ic { flex: none; width: 22px; height: 22px; stroke-width: 2; }
.dx-x { position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; color: #a3a7ae; font: 400 26px/1 var(--wc); cursor: pointer; }
.dx-x:hover { background: rgba(255, 255, 255, .08); }
.dx-later { display: block; min-height: 44px; margin: 8px auto 0; padding: 0 16px; border: 0; background: none; font: 400 14px var(--wc); color: #a3a7ae; text-decoration: underline; cursor: pointer; }
.dx-x:focus-visible, .dx-btn:focus-visible, .dx-later:focus-visible { outline: 3px solid #9be38b; outline-offset: 2px; }
@media (max-width: 480px) { .dx-card { padding: 28px 20px 20px; } .dx-card h2 { font-size: 23px; } }

/* ---------- Mobile bottom bar (the only floating firm element) ---------- */
.mbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: grid; grid-template-columns: repeat(3, 1fr);
  padding-bottom: env(safe-area-inset-bottom); background: var(--card); border-top: 1px solid var(--line);
  box-shadow: 0 -12px 30px -20px rgba(0, 0, 0, .4);
}
.mbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 60px; font-size: .78rem; font-weight: 650; color: var(--ink); text-decoration: none; }
.mbar a:nth-child(2) { background: var(--wa); color: #fff; }
.ed-ca .mbar a:nth-child(2) { background: none; color: var(--ink); border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
.mbar .ic { width: 22px; height: 22px; }
@media (min-width: 960px) { .mbar { display: none; } body { padding-bottom: 0; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .hl { background-size: 100% 40%; }
}
