/* =====================================================================
   CasePilot · site.css  ("The Register")
   Public website + client portal of the demo chamber Nyayrekh Chambers.
   Ivory paper, ink navy, oxblood red tape, brass hairlines.
   Cormorant Garamond (display) · Instrument Sans (UI) · JetBrains Mono (numbers)
   ===================================================================== */

:root {
  --ivory: #f6f1e7;
  --paper: #fbf8f2;
  --cream: #efe5cf;
  --cream-2: #e6d8b9;
  --ink: #14213d;
  --navy-2: #1f2f55;
  --ox: #8c1c13;
  --ox-2: #a8291d;
  --brass: #b08d57;
  --brass-d: #86672f;
  --brass-l: #d8c39a;
  --hair: rgba(20, 33, 61, .14);
  --hair-2: rgba(20, 33, 61, .08);
  --muted: #5b6475;
  --ok: #2f6b4f;
  --serif: "Cormorant Garamond", "Tiro Devanagari Hindi", Georgia, "Times New Roman", serif;
  --sans: "Instrument Sans", "Noto Sans Devanagari", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --wrap: 1200px;
  --gut: clamp(16px, 4vw, 40px);
  --r: 4px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --shadow-1: 0 1px 0 rgba(20, 33, 61, .04), 0 10px 30px -18px rgba(20, 33, 61, .28);
  --shadow-2: 0 2px 0 rgba(20, 33, 61, .04), 0 28px 60px -30px rgba(20, 33, 61, .45);
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .08 0 0 0 0 .1 0 0 0 0 .2 0 0 0 .075 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------------- base ---------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0; color: var(--ink); font: 400 16px/1.65 var(--sans);
  background: var(--ivory) var(--grain) repeat; overflow-x: hidden;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; }
a { color: var(--ink); text-decoration-color: rgba(140, 28, 19, .45); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--ox); text-decoration-color: var(--ox); }
:focus-visible { outline: 2px solid var(--ox); outline-offset: 3px; border-radius: 2px; }
::selection { background: rgba(140, 28, 19, .16); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.08; margin: 0; letter-spacing: -.005em; color: var(--ink); }
h1 em, h2 em, h3 em, .serif em { font-style: italic; color: var(--ox); font-weight: 500; }
p { margin: 0 0 1em; }
button { font: inherit; color: inherit; }
.mono { font-family: var(--mono); font-size: .86em; letter-spacing: .01em; font-feature-settings: "zero" 1; }
.serif { font-family: var(--serif); }
.muted { color: var(--muted); }
.small { font-size: .84rem; color: var(--muted); line-height: 1.55; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 300; background: var(--ink); color: var(--paper); padding: 10px 14px; border-radius: var(--r); text-decoration: none; }
.skip:focus { top: 12px; color: var(--paper); }
html.lang-hi body { line-height: 1.75; }
html.lang-hi h1, html.lang-hi h2, html.lang-hi h3 { line-height: 1.3; letter-spacing: 0; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gut) * 2); margin: 0 auto; padding: 0 var(--gut); }
.wrap-narrow { max-width: calc(780px + var(--gut) * 2); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; font: 600 .72rem/1.2 var(--sans); letter-spacing: .18em;
  text-transform: uppercase; color: var(--ox); margin: 0 0 18px;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--brass); }
.eyebrow.plain::before { display: none; }
html.lang-hi .eyebrow { letter-spacing: .04em; font-size: .8rem; }
.lede { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: #2c3650; max-width: 60ch; line-height: 1.7; }

.rule { height: 1px; background: var(--hair); border: 0; margin: 0; }
.rule-brass { height: 1px; background: linear-gradient(90deg, transparent, var(--brass) 12%, var(--brass) 88%, transparent); border: 0; opacity: .7; }

/* ---------------- buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; padding: 0 22px;
  font: 600 .9rem/1 var(--sans); letter-spacing: .02em; text-decoration: none; cursor: pointer; border-radius: 2px;
  border: 1px solid transparent; transition: background .25s var(--ease), color .25s, border-color .25s, transform .25s var(--ease), box-shadow .25s;
  white-space: nowrap;
}
.btn .bi { font-size: 1rem; transition: transform .3s var(--ease); }
.btn:hover .bi-arrow-right, .btn:hover .bi-arrow-up-right { transform: translateX(3px); }
.btn-ink { background: var(--ink); color: var(--paper); box-shadow: 0 10px 24px -14px rgba(20, 33, 61, .8); }
.btn-ink:hover { background: var(--navy-2); color: #fff; }
.btn-ox { background: var(--ox); color: #fff; }
.btn-ox:hover { background: var(--ox-2); color: #fff; }
.btn-line { background: transparent; color: var(--ink); border-color: rgba(20, 33, 61, .35); }
.btn-line:hover { border-color: var(--ink); color: var(--ink); background: rgba(255, 255, 255, .4); }
.btn-cream { background: var(--paper); color: var(--ink); }
.btn-cream:hover { background: #fff; color: var(--ink); }
.btn-quiet { background: none; border: 0; padding: 0; min-height: 0; color: var(--ink); text-decoration: underline; text-decoration-color: rgba(140, 28, 19, .45); text-underline-offset: 4px; font-weight: 500; }
.btn-quiet:hover { color: var(--ox); }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: .82rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: .9rem; text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--brass); padding-bottom: 3px; }
.link-arrow .bi { transition: transform .3s var(--ease); }
.link-arrow:hover .bi { transform: translateX(4px); }

/* ---------------- header: index tabs ---------------- */
.site-header {
  position: sticky; top: 0; z-index: 60; background: rgba(246, 241, 231, .93);
  -webkit-backdrop-filter: saturate(1.2) blur(10px); backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid var(--hair);
}
.hdr { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; min-height: 78px; }
.brand { display: flex; align-items: center; gap: 12px; padding: 14px 0; text-decoration: none; color: var(--ink); align-self: center; min-width: 0; }
.brand:hover { color: var(--ink); }
.brand-mark { width: 44px; height: 44px; flex: none; color: var(--ink); }
.brand-mark svg { width: 100%; height: 100%; display: block; }
.brand-word { font-family: var(--serif); font-size: 1.42rem; font-weight: 600; line-height: 1; white-space: nowrap; }
.brand-word em { font-style: italic; color: var(--ox); font-weight: 500; }
.brand-mark .amp { fill: var(--ox); }
.ft-name .brand-mark .amp { fill: var(--brass-l); }
.brand-word small { display: block; font: 500 .64rem/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }
html.lang-hi .brand-word small { letter-spacing: .06em; font-size: .72rem; }
.tabs { display: flex; align-items: flex-end; gap: 3px; margin: 0 0 -1px auto; }
.tab {
  position: relative; display: block; padding: 11px 15px 12px; font: 500 .84rem/1 var(--sans); letter-spacing: .02em; color: var(--navy-2);
  text-decoration: none; background: rgba(20, 33, 61, .028); border: 1px solid var(--hair-2); border-bottom: 0; border-radius: 8px 8px 0 0;
  transition: background .25s, color .25s, transform .3s var(--ease), border-color .25s;
}
.tab::before { content: ""; position: absolute; left: 12px; right: 12px; top: -1px; height: 2px; background: var(--ox); border-radius: 2px; transform: scaleX(0); transition: transform .35s var(--ease); }
.tab:hover { background: rgba(255, 255, 255, .55); color: var(--ink); transform: translateY(-2px); border-color: var(--hair); }
.tab[aria-current="page"] { background: var(--ivory); border-color: var(--hair); color: var(--ink); transform: none; z-index: 1; }
.tab[aria-current="page"]::before { transform: scaleX(1); }
.tab[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--ivory); }
html.gate-on .tabs .tab { opacity: 0; }
.hdr-tools { display: flex; align-items: center; gap: 10px; align-self: center; }
.lang { display: inline-flex; border: 1px solid var(--hair); border-radius: 99px; padding: 3px; background: rgba(255, 255, 255, .45); }
.lang button { border: 0; background: none; cursor: pointer; font: 600 .74rem/1 var(--sans); letter-spacing: .06em; color: var(--muted); padding: 7px 10px; border-radius: 99px; transition: background .25s, color .25s; }
.lang button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.menu-btn { display: none; align-items: center; gap: 8px; border: 1px solid var(--hair); background: var(--paper); border-radius: 2px; padding: 9px 12px; font: 600 .8rem/1 var(--sans); cursor: pointer; letter-spacing: .04em; }
.menu-btn .bi { font-size: 1rem; color: var(--ox); }

/* phone index sheet */
.sheet { position: fixed; inset: 0; z-index: 120; }
.sheet[hidden] { display: none; }
.sheet-scrim { position: absolute; inset: 0; background: rgba(20, 33, 61, .45); opacity: 0; transition: opacity .3s; }
.sheet-panel {
  position: absolute; left: 0; right: 0; bottom: 0; max-height: 88vh; overflow: auto; background: var(--paper) var(--grain); border-radius: 14px 14px 0 0;
  padding: 10px 20px calc(22px + env(safe-area-inset-bottom)); transform: translateY(100%); transition: transform .38s var(--ease); box-shadow: 0 -20px 50px -20px rgba(20, 33, 61, .5);
}
.sheet.open .sheet-scrim { opacity: 1; }
.sheet.open .sheet-panel { transform: none; }
.sheet-grip { width: 44px; height: 4px; background: var(--hair); border-radius: 4px; margin: 4px auto 14px; }
.sheet-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.sheet-top .eyebrow { margin: 0; }
.sheet-x { border: 0; background: none; font-size: 1.4rem; cursor: pointer; padding: 6px; line-height: 1; color: var(--muted); }
.sheet-list { list-style: none; margin: 0 0 18px; padding: 0; }
.sheet-list a { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 8px; padding: 14px 4px; border-bottom: 1px solid var(--hair); text-decoration: none; font: 500 1.35rem/1.1 var(--serif); }
.sheet-list a[aria-current="page"] { color: var(--ox); }
.sheet-list .no { font: 500 .72rem/1 var(--mono); color: var(--brass-d); }
.sheet-list .bi { color: var(--muted); font-size: .95rem; }
.sheet .lang { margin: 0 0 16px; }

/* ---------------- sections ---------------- */
.section { padding: clamp(64px, 9vw, 124px) 0; position: relative; }
.section.tight { padding: clamp(40px, 6vw, 72px) 0; }
.section + .section { border-top: 1px solid var(--hair-2); }
.section.paper { background: var(--paper) var(--grain); }
.sec-head { display: grid; grid-template-columns: 92px 1fr; gap: 0 28px; margin-bottom: clamp(32px, 4vw, 56px); align-items: start; }
.sec-no { font: 400 .78rem/1 var(--mono); color: var(--brass-d); padding-top: 14px; border-top: 1px solid var(--brass); letter-spacing: .06em; }
.sec-head h2 { font-size: clamp(2.1rem, 4.2vw, 3.4rem); max-width: 20ch; }
.sec-head p { margin: 16px 0 0; color: var(--muted); max-width: 62ch; }
.sec-head .row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }

.page-hero { padding: clamp(48px, 7vw, 96px) 0 clamp(36px, 5vw, 64px); border-bottom: 1px solid var(--hair); position: relative; }
.page-hero h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); max-width: 18ch; }
.page-hero .lede { margin-top: 20px; }
.crumbs { font-size: .8rem; color: var(--muted); margin-bottom: 22px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ox); }
.crumbs .sep { color: var(--brass); }

/* legal information notice */
.notice {
  display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1px solid var(--hair); border-left: 3px solid var(--ox);
  background: rgba(255, 255, 255, .5); font-size: .84rem; color: #39425a; line-height: 1.55; border-radius: 0 var(--r) var(--r) 0;
}
.notice .bi { color: var(--ox); margin-top: 2px; }
.notice b { color: var(--ink); }

/* ---------------- reveal ---------------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
html.no-js .reveal { opacity: 1; transform: none; }

/* ---------------- HOME: hero ---------------- */
.hero { padding: clamp(48px, 7vw, 104px) 0 clamp(56px, 8vw, 112px); position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.hero h1 { font-size: clamp(2.9rem, 6.6vw, 5.6rem); line-height: .98; letter-spacing: -.015em; }
html.lang-hi .hero h1 { font-size: clamp(2.3rem, 5vw, 4.2rem); line-height: 1.25; }
.hero h1 em { display: inline; }
.hero .lede { margin: 26px 0 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; }
.hero-facts { list-style: none; padding: 0; margin: 44px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--hair); }
.hero-facts li { padding: 16px 16px 0 0; font-size: .82rem; color: var(--muted); line-height: 1.45; }
.hero-facts li + li { padding-left: 16px; border-left: 1px solid var(--hair); }
.hero-facts b { display: block; font: 500 1.08rem/1.2 var(--serif); color: var(--ink); margin-bottom: 4px; }

/* INDEX sheet (court paper-book style) */
.index-wrap { position: relative; padding: 26px 10px 20px 0; }
.index-tape { position: absolute; z-index: 0; left: -16%; top: 60%; width: 132%; height: 110px; pointer-events: none; }
.index-sheet {
  position: relative; z-index: 1; background: var(--paper) var(--grain); border: 1px solid rgba(20, 33, 61, .1); padding: 40px clamp(20px, 3vw, 40px) 30px;
  box-shadow: 4px 4px 0 -1px var(--cream), 8px 8px 0 -2px var(--cream-2), var(--shadow-2); transform: rotate(.6deg);
}
.index-sheet::before { content: ""; position: absolute; left: clamp(14px, 2vw, 26px); top: 0; bottom: 0; width: 1px; background: rgba(140, 28, 19, .28); }
.is-clip { position: absolute; top: -26px; left: 50%; width: 92px; transform: translateX(-50%); z-index: 2; filter: drop-shadow(0 4px 4px rgba(20, 33, 61, .2)); }
.is-title { text-align: center; font: 600 .82rem/1 var(--sans); letter-spacing: .5em; text-indent: .5em; margin: 6px 0 4px; }
.is-sub { text-align: center; font: italic 500 1rem/1.3 var(--serif); color: var(--muted); margin: 0 0 22px; }
.is-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.is-table th { font: 600 .66rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); text-align: left; padding: 0 0 10px; border-bottom: 1px solid var(--ink); }
.is-table th:last-child, .is-table td:last-child { text-align: right; width: 56px; }
.is-table th:first-child, .is-table td:first-child { width: 40px; }
.is-table td { padding: 12px 0; border-bottom: 1px solid var(--hair-2); vertical-align: baseline; }
.is-table td:first-child { font: 400 .8rem/1 var(--mono); color: var(--brass-d); }
.is-table td:last-child { font: 400 .8rem/1 var(--mono); color: var(--muted); }
.is-table a { text-decoration: none; display: flex; gap: 6px; align-items: baseline; font-family: var(--serif); font-size: 1.14rem; font-weight: 500; }
.is-table a::after { content: ""; flex: 1; border-bottom: 1px dotted rgba(20, 33, 61, .35); transform: translateY(-4px); min-width: 12px; }
.is-table a:hover { color: var(--ox); }
.is-foot { display: flex; justify-content: space-between; margin-top: 22px; font: 400 .7rem/1.3 var(--mono); color: var(--muted); gap: 10px; }
.stamp { position: absolute; right: 22px; top: 20px; width: 78px; transform: rotate(-14deg); opacity: .8; mix-blend-mode: multiply; pointer-events: none; }

/* chamber statement */
.chamber-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 6vw, 96px); align-items: start; }
.chamber-copy p { font-size: 1.06rem; color: #2c3650; }
.chamber-copy p:first-child::first-letter { float: left; font: 500 4.6rem/.8 var(--serif); color: var(--ox); padding: 8px 10px 0 0; }
.ways { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--hair); }
.ways li { display: grid; grid-template-columns: 34px 1fr; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--hair); }
.ways .bi { font-size: 1.2rem; color: var(--brass-d); }
.ways b { display: block; font: 500 1.15rem/1.2 var(--serif); }
.ways span { font-size: .88rem; color: var(--muted); }

/* courts & forums */
.courts-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(28px, 6vw, 88px); align-items: center; }
.facade { width: 100%; max-width: 460px; color: var(--ink); }
.facade .draw { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2.2s var(--ease); transition-delay: calc(var(--dl, 0s) + .2s); }
.in .facade .draw { stroke-dashoffset: 0; }
.facade-box { display: flex; justify-content: center; }
.forum-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.forum-list li { display: grid; grid-template-columns: 140px 1fr; gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--hair); align-items: baseline; }
.forum-list .kind { font: 600 .68rem/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--brass-d); }
.forum-list .nm { font: 500 1.22rem/1.25 var(--serif); }
.forum-list .nm small { display: block; font: 400 .8rem/1.4 var(--sans); color: var(--muted); margin-top: 3px; }

/* practice index cards */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.icard {
  position: relative; display: flex; flex-direction: column; min-height: 260px; padding: 26px 24px 22px; text-decoration: none; color: var(--ink);
  background-color: var(--paper);
  background-image: linear-gradient(var(--paper) 58px, transparent 58px), repeating-linear-gradient(180deg, transparent 0 27px, rgba(31, 47, 85, .1) 27px 28px);
  border: 1px solid rgba(20, 33, 61, .1); box-shadow: var(--shadow-1); transition: opacity .9s var(--ease) var(--d, 0s), transform .6s var(--ease), box-shadow .45s var(--ease), border-color .3s;
  overflow: hidden;
}
.icard::before { content: ""; position: absolute; left: 0; right: 0; top: 58px; height: 1px; background: rgba(140, 28, 19, .55); }
.icard::after { content: ""; position: absolute; right: -1px; top: 18px; width: 4px; height: 34px; background: var(--brass); transform: scaleY(0); transform-origin: top; transition: transform .4s var(--ease); }
.icard:hover { transform: translateY(-5px) rotate(-.3deg); box-shadow: var(--shadow-2); color: var(--ink); border-color: rgba(20, 33, 61, .2); }
.icard:hover::after { transform: scaleY(1); }
.icard .ic-top { display: flex; justify-content: space-between; align-items: baseline; height: 32px; }
.icard .ic-no { font: 400 .74rem/1 var(--mono); color: var(--brass-d); }
.icard .ic-hi { font: 500 .86rem/1 var(--serif); color: var(--muted); }
.icard h3 { font-size: 1.6rem; margin: 18px 0 10px; line-height: 1.12; }
.icard p { font-size: .9rem; color: #3a4460; line-height: 28px; margin: 0 0 16px; flex: 1; }
.icard .ic-go { display: inline-flex; gap: 8px; align-items: center; font: 600 .8rem/1 var(--sans); color: var(--ox); letter-spacing: .03em; }
.icard .ic-go .bi { transition: transform .3s var(--ease); }
.icard:hover .ic-go .bi { transform: translateX(4px); }

/* register (home preview) */
.reg-table { width: 100%; border-collapse: collapse; }
.reg-table th { text-align: left; font: 600 .66rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding: 0 12px 12px 0; border-bottom: 1px solid var(--ink); white-space: nowrap; }
.reg-table td { padding: 16px 12px 16px 0; border-bottom: 1px solid var(--hair); vertical-align: middle; font-size: .92rem; }
.reg-table tr { transition: background .25s; }
.reg-table tbody tr:hover { background: rgba(255, 255, 255, .5); }
.reg-name { display: flex; align-items: center; gap: 14px; }
.reg-name b { display: block; font: 500 1.22rem/1.15 var(--serif); }
.reg-name small { color: var(--muted); font-size: .8rem; }
.mono-mark { width: 46px; height: 46px; flex: none; }
.mono-mark svg { width: 100%; height: 100%; display: block; }

/* notes list */
.note-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.note-row a { display: grid; grid-template-columns: 170px minmax(0, 1fr) 40px; gap: 24px; padding: 26px 0; border-bottom: 1px solid var(--hair); text-decoration: none; align-items: baseline; transition: padding .35s var(--ease), background .3s; }
.note-row a:hover { padding-left: 10px; background: linear-gradient(90deg, rgba(255, 255, 255, .55), transparent); color: var(--ink); }
.note-row .tag { font: 600 .68rem/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ox); }
.note-row h3 { font-size: clamp(1.35rem, 2.2vw, 1.75rem); margin-bottom: 6px; }
.note-row p { margin: 0; color: var(--muted); font-size: .92rem; }
.note-row .bi { font-size: 1.2rem; color: var(--brass-d); justify-self: end; transition: transform .35s var(--ease); }
.note-row a:hover .bi { transform: translateX(5px); color: var(--ox); }

/* appointment band */
.appt-band { background: var(--ink); color: #e9e3d6; position: relative; overflow: hidden; }
.appt-band::before { content: ""; position: absolute; inset: 0; background: var(--grain); opacity: .5; pointer-events: none; }
.band-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: 40px; align-items: center; }
.appt-band h2 { color: #fbf8f2; font-size: clamp(2.2rem, 4.4vw, 3.6rem); }
.appt-band h2 em { color: var(--brass-l); }
.appt-band p { color: rgba(233, 227, 214, .82); max-width: 56ch; margin: 18px 0 28px; }
.appt-band .eyebrow { color: var(--brass-l); }
.appt-band .scales { width: 100%; max-width: 260px; justify-self: center; color: var(--brass); opacity: .9; }
.appt-band .small { color: rgba(233, 227, 214, .6); }
.appt-band a:not(.btn) { color: var(--brass-l); text-decoration-color: rgba(216, 195, 154, .5); }
.appt-band a:not(.btn):hover { color: #fff; }

/* ---------------- PRACTICE ---------------- */
.area-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(32px, 5vw, 72px); align-items: start; }
.area-hero .num { font: 400 .8rem/1 var(--mono); color: var(--brass-d); display: block; margin-bottom: 18px; }
.area-hero .hi { display: block; font: italic 500 1.4rem/1.3 var(--serif); color: var(--muted); margin-top: 12px; }
.block { padding: 44px 0; border-top: 1px solid var(--hair); }
.block:first-child { border-top: 0; padding-top: 12px; }
.block > h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: 22px; }
.block > h2 .bno { font: 400 .74rem/1 var(--mono); color: var(--brass-d); display: block; margin-bottom: 10px; letter-spacing: .06em; }
.roman { list-style: none; counter-reset: r; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
.roman li { counter-increment: r; padding: 13px 0 13px 44px; border-bottom: 1px solid var(--hair-2); position: relative; font-size: .98rem; }
.roman li::before { content: counter(r, lower-roman) "."; position: absolute; left: 0; top: 13px; font: italic 500 1.08rem/1.4 var(--serif); color: var(--ox); width: 36px; }
.forums { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.forum { display: flex; gap: 14px; padding: 18px; border: 1px solid var(--hair); background: rgba(255, 255, 255, .45); align-items: flex-start; }
.forum .bi { font-size: 1.3rem; color: var(--brass-d); }
.forum span { font: 500 1.1rem/1.3 var(--serif); }

.stageline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); position: relative; }
.stageline::before { content: ""; position: absolute; left: calc(50% / var(--n)); right: calc(50% / var(--n)); top: 15px; height: 1px; background: var(--hair); }
.stageline::after { content: ""; position: absolute; left: calc(50% / var(--n)); right: calc(50% / var(--n)); top: 14px; height: 3px; background: var(--ox); transform: scaleX(0); transform-origin: left; transition: transform calc(var(--n) * .22s) cubic-bezier(.5, 0, .3, 1) .2s; }
.stageline.in::after { transform: scaleX(1); }
.stageline li { position: relative; text-align: center; padding: 0 6px; }
.stageline button { all: unset; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 10px; width: 100%; border-radius: 4px; padding-bottom: 6px; }
.stageline button:focus-visible { outline: 2px solid var(--ox); outline-offset: 4px; }
.stageline .dot { width: 31px; height: 31px; border-radius: 50%; background: var(--ivory); border: 1px solid var(--brass); display: grid; place-items: center; font: 500 .7rem/1 var(--mono); color: var(--brass-d); position: relative; z-index: 1; transform: scale(.6); opacity: 0; transition: transform .5s var(--ease), opacity .5s, background .3s, color .3s, border-color .3s; transition-delay: calc(.25s + var(--i) * .22s); }
.stageline.in .dot { transform: none; opacity: 1; }
.stageline .nm { font-size: .8rem; line-height: 1.35; color: #39425a; opacity: 0; transform: translateY(6px); transition: opacity .5s, transform .5s var(--ease), color .3s; transition-delay: calc(.35s + var(--i) * .22s); }
.stageline.in .nm { opacity: 1; transform: none; }
.stageline button:hover .dot, .stageline button[aria-pressed="true"] .dot { background: var(--ox); border-color: var(--ox); color: #fff; }
.stageline button[aria-pressed="true"] .nm { color: var(--ox); font-weight: 600; }
.stage-cap { margin-top: 26px; padding: 18px 20px; background: rgba(255, 255, 255, .55); border: 1px solid var(--hair); min-height: 78px; display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; }
.stage-cap .k { font: italic 500 1.25rem/1.2 var(--serif); color: var(--ox); }
.stage-cap p { margin: 0; font-size: .92rem; color: #39425a; }
.stage-cap .lbl { font: 600 .66rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); display: block; margin-bottom: 6px; }

.doclist { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 0; }
.doclist li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; padding: 11px 0; border-bottom: 1px dashed var(--hair); font-size: .95rem; }
.doclist .bi { color: var(--brass-d); }
.rel-notes { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.rel-note { display: block; padding: 20px; border: 1px solid var(--hair); background: var(--paper); text-decoration: none; transition: transform .35s var(--ease), box-shadow .35s; }
.rel-note:hover { transform: translateY(-3px); box-shadow: var(--shadow-1); color: var(--ink); }
.rel-note .tag { font: 600 .66rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ox); }
.rel-note h3 { font-size: 1.3rem; margin: 10px 0 6px; }
.rel-note p { font-size: .85rem; color: var(--muted); margin: 0; }

.aside { position: sticky; top: 104px; display: grid; gap: 18px; }
.aside-card { border: 1px solid var(--hair); background: var(--paper) var(--grain); padding: 22px; }
.aside-card h3 { font: 600 .68rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.aside-card h3 em { font-style: normal; color: inherit; font-weight: inherit; }
.aside-idx { list-style: none; margin: 0; padding: 0; }
.aside-idx a { display: grid; grid-template-columns: 28px 1fr; gap: 6px; padding: 8px 0; border-bottom: 1px solid var(--hair-2); text-decoration: none; font: 500 1.02rem/1.3 var(--serif); }
.aside-idx a[aria-current="page"] { color: var(--ox); }
.aside-idx .n { font: 400 .68rem/1.8 var(--mono); color: var(--brass-d); }
.aside-people { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.aside-people a { display: flex; gap: 10px; align-items: center; text-decoration: none; font: 500 1.05rem/1.2 var(--serif); }
.aside-people .mono-mark { width: 34px; height: 34px; }
.aside-people small { display: block; font: 400 .74rem/1.3 var(--sans); color: var(--muted); }

/* ---------------- REGISTER (advocates) ---------------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 32px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border: 1px solid var(--hair); background: rgba(255, 255, 255, .5);
  border-radius: 99px; font: 500 .8rem/1.1 var(--sans); cursor: pointer; text-decoration: none; color: var(--navy-2); transition: all .25s;
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip[aria-pressed="true"], .chip.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.register { display: grid; gap: 28px; }
.reg {
  position: relative; display: grid; grid-template-columns: 220px minmax(0, 1fr); background: var(--paper) var(--grain); border: 1px solid rgba(20, 33, 61, .12);
  box-shadow: var(--shadow-1);
}
.reg[hidden] { display: none; }
.reg-side { padding: 28px 24px; border-right: 1px solid var(--hair); display: flex; flex-direction: column; gap: 16px; background: linear-gradient(180deg, rgba(239, 229, 207, .45), transparent); }
.reg-entry { font: 400 .72rem/1 var(--mono); color: var(--brass-d); letter-spacing: .08em; }
.reg-side .mono-mark { width: 92px; height: 92px; }
.reg-side h2 { font-size: 1.7rem; line-height: 1.1; }
.reg-side .role { font: 600 .68rem/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ox); }
.reg-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; }
.reg-grid > div { padding: 18px 24px; border-bottom: 1px solid var(--hair-2); }
.reg-grid > div:nth-child(odd):not(.wide) { border-right: 1px solid var(--hair-2); }
.reg-grid .wide { grid-column: 1 / -1; }
.reg-grid > div:last-child { border-bottom: 0; }
.reg-grid dt { font: 600 .64rem/1.2 var(--sans); letter-spacing: .15em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.reg-grid dd { margin: 0; font-size: .96rem; }
.reg-grid dd.mono { font-size: .9rem; }
.reg-grid .chips { display: flex; flex-wrap: wrap; gap: 6px; }
.reg-grid .chip { padding: 5px 11px; font-size: .78rem; }
.staff { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.staff-card { display: flex; gap: 14px; align-items: center; padding: 16px 18px; border: 1px dashed rgba(20, 33, 61, .22); }
.staff-card .mono-mark { width: 40px; height: 40px; }
.staff-card b { display: block; font: 500 1.15rem/1.2 var(--serif); }
.staff-card span { font-size: .8rem; color: var(--muted); }

/* ---------------- NOTES ---------------- */
.article { max-width: 720px; }
.article .tag { font: 600 .7rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--ox); }
.article h1 { font-size: clamp(2.3rem, 5vw, 3.8rem); margin: 18px 0 20px; }
.article .summary { font: italic 500 1.35rem/1.45 var(--serif); color: #39425a; margin: 0 0 18px; }
.article .meta { display: flex; gap: 16px; flex-wrap: wrap; font-size: .8rem; color: var(--muted); padding: 14px 0; border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); margin-bottom: 36px; }
.article .body p { font-size: 1.08rem; line-height: 1.85; color: #222c45; margin-bottom: 1.4em; }
.article .body p:first-child::first-letter { float: left; font: 500 4.4rem/.82 var(--serif); color: var(--ox); padding: 8px 10px 0 0; }
.article-end { margin: 44px 0 0; text-align: center; color: var(--brass); letter-spacing: 1em; font-size: .9rem; }

/* ---------------- TOOLS ---------------- */
.tool-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--hair); margin-bottom: 0; overflow-x: auto; scrollbar-width: none; }
.tool-tabs::-webkit-scrollbar { display: none; }
.tool-tabs button {
  flex: none; display: flex; align-items: center; gap: 8px; padding: 13px 18px 14px; border: 1px solid var(--hair-2); border-bottom: 0; border-radius: 8px 8px 0 0;
  background: rgba(20, 33, 61, .028); font: 500 .86rem/1 var(--sans); color: var(--navy-2); cursor: pointer; position: relative; margin-bottom: -1px; transition: background .25s, color .25s;
}
.tool-tabs button .n { font: 400 .68rem/1 var(--mono); color: var(--brass-d); }
.tool-tabs button[aria-selected="true"] { background: var(--paper); color: var(--ink); border-color: var(--hair); }
.tool-tabs button[aria-selected="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--paper); }
.tool-tabs button[aria-selected="true"]::before { content: ""; position: absolute; left: 14px; right: 14px; top: -1px; height: 2px; background: var(--ox); }
.tool-panel { background: var(--paper) var(--grain); border: 1px solid var(--hair); border-top: 0; padding: clamp(22px, 4vw, 48px); }
.tool-panel[hidden] { display: none; }
.tool-panel > h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin-bottom: 10px; }
.tool-panel > .intro { color: var(--muted); max-width: 64ch; margin-bottom: 30px; }

/* checklist builder */
.cb { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.cb-pick { display: grid; gap: 8px; }
.cb-pick label { display: flex; align-items: center; gap: 12px; padding: 13px 16px; border: 1px solid var(--hair); background: rgba(255, 255, 255, .55); cursor: pointer; transition: all .25s var(--ease); font-size: .93rem; }
.cb-pick label:hover { border-color: rgba(20, 33, 61, .4); transform: translateX(3px); }
.cb-pick input { position: absolute; opacity: 0; pointer-events: none; }
.cb-pick .rd { width: 16px; height: 16px; border-radius: 50%; border: 1px solid rgba(20, 33, 61, .4); flex: none; display: grid; place-items: center; }
.cb-pick input:checked + .rd { border-color: var(--ox); }
.cb-pick input:checked + .rd::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ox); }
.cb-pick label:has(input:checked) { border-color: var(--ink); background: #fff; }
.cb-pick input:focus-visible + .rd { outline: 2px solid var(--ox); outline-offset: 3px; }

.minibrief {
  position: relative; background: #f3e9d2; border: 1px solid rgba(134, 103, 47, .35); padding: 46px 28px 26px 64px; min-height: 420px;
  box-shadow: 3px 3px 0 -1px #e6d8b9, 6px 6px 0 -2px #dccba5, var(--shadow-2);
  background-image: var(--grain), linear-gradient(180deg, rgba(255, 255, 255, .35), transparent 40%);
}
.minibrief::before { content: ""; position: absolute; left: 30px; top: -10px; bottom: -10px; width: 12px; background: linear-gradient(90deg, #6f140e, var(--ox) 30%, #a3291c 55%, var(--ox) 75%, #6f140e); box-shadow: 1px 0 2px rgba(0, 0, 0, .2); }
.minibrief .mb-clip { position: absolute; top: -22px; right: 32px; width: 70px; }
.minibrief .mb-head { border-bottom: 1px solid rgba(20, 33, 61, .3); padding-bottom: 14px; margin-bottom: 8px; }
.minibrief .mb-head .eyebrow { margin-bottom: 8px; }
.minibrief h3 { font-size: 1.7rem; }
.minibrief .mb-empty { color: var(--muted); font: italic 500 1.15rem/1.5 var(--serif); padding: 40px 0; text-align: center; }
.mb-items { list-style: none; margin: 0; padding: 0; }
.mb-items li { border-bottom: 1px solid rgba(20, 33, 61, .1); opacity: 0; transform: translate(-26px, -8px) rotate(-1.5deg); animation: drop .55s var(--ease) forwards; animation-delay: calc(var(--i) * 90ms); }
@keyframes drop { to { opacity: 1; transform: none; } }
.mb-items label { display: grid; grid-template-columns: 22px 1fr; gap: 12px; padding: 11px 0; cursor: pointer; font-size: .93rem; align-items: start; }
.mb-items input { appearance: none; -webkit-appearance: none; width: 18px; height: 18px; border: 1.5px solid rgba(20, 33, 61, .5); border-radius: 2px; margin: 2px 0 0; display: grid; place-items: center; cursor: pointer; background: rgba(255, 255, 255, .6); transition: all .2s; }
.mb-items input:checked { background: var(--ink); border-color: var(--ink); }
.mb-items input:checked::after { content: ""; width: 9px; height: 5px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: translateY(-1px) rotate(-45deg); }
.mb-items input:checked + span { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(140, 28, 19, .6); }
.mb-items li.own span::after { content: " · added by you"; font-size: .72rem; color: var(--brass-d); }
.mb-progress { display: flex; align-items: center; gap: 12px; margin: 18px 0 14px; font-size: .8rem; color: var(--muted); }
.mb-bar { flex: 1; height: 3px; background: rgba(20, 33, 61, .12); position: relative; overflow: hidden; }
.mb-bar i { position: absolute; inset: 0; background: var(--ox); transform: scaleX(var(--p, 0)); transform-origin: left; transition: transform .5s var(--ease); }
.mb-add { display: flex; gap: 8px; margin-bottom: 14px; }
.mb-add .input { min-height: 40px; background: rgba(255, 255, 255, .6); }
.mb-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.mb-also { margin-top: 18px; font-size: .82rem; color: #4a536a; }
.mb-also b { font: 600 .64rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); display: block; margin-bottom: 6px; }

/* section finder */
.sf-bar { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: end; margin-bottom: 18px; }
.search { position: relative; }
.search .bi { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search .input { padding-left: 44px; min-height: 54px; font-size: 1.02rem; }
.seg { display: inline-flex; border: 1px solid var(--hair); background: rgba(255, 255, 255, .5); padding: 3px; border-radius: 2px; flex-wrap: wrap; }
.seg button, .seg label { border: 0; background: none; padding: 9px 14px; font: 500 .8rem/1 var(--sans); cursor: pointer; color: var(--navy-2); border-radius: 2px; transition: background .2s, color .2s; display: inline-flex; align-items: center; gap: 6px; }
.seg button[aria-pressed="true"], .seg label:has(input:checked) { background: var(--ink); color: var(--paper); }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label:has(input:focus-visible) { outline: 2px solid var(--ox); outline-offset: 2px; }
.sf-count { font-size: .8rem; color: var(--muted); margin: 0 0 10px; }
.sf-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.sf-list li { display: grid; grid-template-columns: minmax(0, 150px) 40px minmax(0, 150px) minmax(0, 1fr); gap: 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--hair); animation: fadeUp .4s var(--ease) both; animation-delay: calc(var(--i) * 25ms); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(6px); } }
.sf-list .old { font: 500 .92rem/1.2 var(--mono); color: var(--muted); }
.sf-list .new { font: 600 .92rem/1.2 var(--mono); color: var(--ink); }
.sf-list .arr { color: var(--ox); text-align: center; }
.sf-list .topic { font: 500 1.12rem/1.3 var(--serif); }
.sf-list mark { background: rgba(176, 141, 87, .3); color: inherit; padding: 0 1px; }
.sf-empty { padding: 26px 0; color: var(--muted); font-style: italic; }

/* hearing-day guide */
.day-line { list-style: none; margin: 0 0 36px; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--ink); }
.day-line li { padding: 18px 18px 18px 0; border-right: 1px solid var(--hair-2); }
.day-line li + li { padding-left: 18px; }
.day-line li:last-child { border-right: 0; }
.day-line .t { font: 400 .74rem/1 var(--mono); color: var(--ox); }
.day-line b { display: block; font: 500 1.2rem/1.2 var(--serif); margin: 10px 0 6px; }
.day-line span { font-size: .86rem; color: var(--muted); }
.guide-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.gcol { border: 1px solid var(--hair); background: rgba(255, 255, 255, .5); padding: 24px; }
.gcol h3 { font-size: 1.5rem; display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.gcol h3 .bi { font-size: 1.1rem; color: var(--brass-d); }
.gcol ul { margin: 0; padding: 0; list-style: none; }
.gcol li { padding: 10px 0 10px 18px; border-top: 1px solid var(--hair-2); font-size: .9rem; position: relative; line-height: 1.55; }
.gcol li::before { content: ""; position: absolute; left: 0; top: 19px; width: 6px; height: 1px; background: var(--ox); }

/* CNR explainer */
.cnr-demo { display: flex; flex-wrap: wrap; gap: 4px 4px; margin: 10px 0 8px; }
.cnr-grp { display: flex; flex-direction: column; align-items: stretch; gap: 8px; }
.cnr-chars { display: flex; gap: 3px; }
.cnr-chars span { width: clamp(16px, 4.2vw, 40px); height: clamp(30px, 6vw, 54px); display: grid; place-items: center; font: 500 clamp(.8rem, 2.4vw, 1.4rem)/1 var(--mono); background: #fff; border: 1px solid var(--hair); color: var(--ink); }
.cnr-grp .lab { border-top: 2px solid var(--c, var(--brass)); padding-top: 6px; font-size: .72rem; line-height: 1.3; color: var(--muted); text-align: center; }
.cnr-grp .lab b { display: block; color: var(--ink); font-size: .76rem; }
.cnr-grp:nth-child(1) { --c: var(--ox); } .cnr-grp:nth-child(2) { --c: var(--brass); } .cnr-grp:nth-child(3) { --c: var(--navy-2); } .cnr-grp:nth-child(4) { --c: #2f6b4f; } .cnr-grp:nth-child(5) { --c: var(--muted); }
.cnr-grp:nth-child(1) .cnr-chars span { background: rgba(140, 28, 19, .06); }
.cnr-try { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; max-width: 560px; margin: 26px 0 8px; }
.cnr-try .input { font-family: var(--mono); letter-spacing: .12em; text-transform: uppercase; min-height: 50px; }
.cnr-msg { font-size: .86rem; min-height: 1.5em; margin: 6px 0 0; }
.cnr-msg.bad { color: var(--ox); }
.cnr-msg.good { color: var(--ok); }
.steps-num { counter-reset: s; list-style: none; padding: 0; margin: 28px 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.steps-num li { counter-increment: s; padding: 20px; border: 1px solid var(--hair); background: rgba(255, 255, 255, .5); font-size: .9rem; }
.steps-num li::before { content: counter(s, decimal-leading-zero); display: block; font: 400 .74rem/1 var(--mono); color: var(--ox); margin-bottom: 10px; }
.steps-num b { display: block; font: 500 1.2rem/1.2 var(--serif); margin-bottom: 6px; }

/* ---------------- forms ---------------- */
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; border: 0; padding: 0; margin: 0; }
.field > label, .field > legend, .label { font: 600 .74rem/1.2 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--navy-2); padding: 0; }
html.lang-hi .field > label, html.lang-hi .field > legend { letter-spacing: .02em; }
.field .opt { text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--muted); }
.input, .select, textarea.input {
  width: 100%; min-height: 48px; padding: 10px 14px; font: 400 .98rem/1.3 var(--sans); color: var(--ink); background: #fff;
  border: 1px solid rgba(20, 33, 61, .22); border-radius: 2px; transition: border-color .2s, box-shadow .2s; appearance: none; -webkit-appearance: none;
}
.select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2314213d' stroke-width='1.4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }
.input:focus, .select:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(20, 33, 61, .08); }
.input[aria-invalid="true"], .select[aria-invalid="true"] { border-color: var(--ox); }
.hint { font-size: .78rem; color: var(--muted); margin: 0; line-height: 1.45; }
.hint .bi { color: var(--ox); }
.err { font-size: .78rem; color: var(--ox); margin: 0; min-height: 0; }
.err:empty { display: none; }
.check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-size: .9rem; line-height: 1.5; }
.check input { appearance: none; -webkit-appearance: none; width: 20px; height: 20px; flex: none; border: 1.5px solid rgba(20, 33, 61, .5); border-radius: 2px; background: #fff; margin: 1px 0 0; display: grid; place-items: center; cursor: pointer; }
.check input:checked { background: var(--ink); border-color: var(--ink); }
.check input:checked::after { content: ""; width: 10px; height: 5px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: translateY(-1px) rotate(-45deg); }
.check input[aria-invalid="true"] { border-color: var(--ox); }

.appt-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 18px; }
.appt-grid .span-2 { grid-column: 1 / -1; }
.days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.days label { position: relative; cursor: pointer; }
.days input { position: absolute; opacity: 0; pointer-events: none; }
.days .d { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 2px 9px; border: 1px solid rgba(20, 33, 61, .2); background: #fff; transition: all .2s var(--ease); }
.days .d small { font: 600 .62rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.days .d b { font: 500 1.45rem/1.05 var(--serif); }
.days .d i { font-style: normal; font-size: .66rem; color: var(--muted); }
.days label:hover .d { border-color: var(--ink); transform: translateY(-2px); }
.days input:checked + .d { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.days input:checked + .d small, .days input:checked + .d i { color: var(--brass-l); }
.days input:focus-visible + .d { outline: 2px solid var(--ox); outline-offset: 2px; }
.field .seg { width: 100%; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; }
.field .seg label { justify-content: center; padding: 12px 6px; text-transform: none; letter-spacing: 0; font-size: .82rem; }
.data-notice { border: 1px solid var(--hair); background: rgba(239, 229, 207, .35); padding: 14px 16px; font-size: .8rem; color: #3d4660; line-height: 1.55; }
.data-notice b { font: 600 .64rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ox); display: block; margin-bottom: 8px; }
.data-notice ul { margin: 0; padding-left: 16px; }
.data-notice li { margin: 2px 0; }
.appt-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 26px; }
.appt-actions .small { max-width: 38ch; margin: 0; }
.form-error { color: var(--ox); font-size: .86rem; margin-top: 16px; }
.form-error:empty { display: none; }

.appt-done { text-align: left; padding: 8px 0; animation: fadeUp .6s var(--ease) both; }
.appt-done:focus { outline: none; }
.appt-done .seal-ok { width: 74px; height: 74px; margin-bottom: 14px; color: var(--ox); }
.appt-done h3 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); margin-bottom: 10px; }
.appt-done .ref { display: inline-flex; gap: 10px; align-items: center; padding: 8px 14px; border: 1px dashed var(--brass); background: #fff; margin: 6px 0 22px; font-size: .9rem; }
.next-steps { list-style: none; counter-reset: n; padding: 0; margin: 0 0 22px; border-top: 1px solid var(--hair); }
.next-steps li { counter-increment: n; display: grid; grid-template-columns: 40px 1fr; gap: 10px; padding: 14px 0; border-bottom: 1px solid var(--hair); font-size: .92rem; }
.next-steps li::before { content: counter(n, decimal-leading-zero); font: 400 .74rem/1.9 var(--mono); color: var(--ox); }
.next-steps b { font-family: var(--serif); font-size: 1.12rem; font-weight: 600; }

/* ---------------- CONTACT ---------------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.card-paper { background: var(--paper) var(--grain); border: 1px solid rgba(20, 33, 61, .12); padding: clamp(22px, 3.4vw, 40px); box-shadow: var(--shadow-1); }
.addr { font: 500 1.4rem/1.45 var(--serif); font-style: normal; margin: 0 0 18px; }
.c-lines { list-style: none; margin: 0 0 22px; padding: 0; border-top: 1px solid var(--hair); }
.c-lines li { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--hair); font-size: .92rem; align-items: baseline; }
.c-lines .k { font: 600 .66rem/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.c-lines a { word-break: break-word; }
.sticky-col { position: sticky; top: 104px; display: grid; gap: 18px; }

/* ---------------- PORTAL ---------------- */
.login-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.client-pick { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.client-pick button { all: unset; box-sizing: border-box; cursor: pointer; display: grid; grid-template-columns: 38px 1fr; gap: 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--hair); background: rgba(255, 255, 255, .55); width: 100%; transition: all .25s var(--ease); }
.client-pick button:hover, .client-pick button:focus-visible { border-color: var(--ink); background: #fff; transform: translateY(-2px); }
.client-pick button:focus-visible { outline: 2px solid var(--ox); outline-offset: 2px; }
.client-pick .mono-mark { width: 38px; height: 38px; }
.client-pick b { display: block; font: 500 1.05rem/1.2 var(--serif); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.client-pick small { font: 400 .72rem/1.2 var(--mono); color: var(--muted); }
.login-form { display: grid; gap: 16px; }
.login-form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.p-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; padding: clamp(36px, 5vw, 64px) 0 26px; }
.p-head h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
.p-head .who { display: flex; gap: 16px; align-items: center; }
.p-head .who .mono-mark { width: 64px; height: 64px; }
.p-head .meta { font-size: .82rem; color: var(--muted); margin-top: 8px; display: flex; gap: 14px; flex-wrap: wrap; }
.p-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--hair); overflow-x: auto; scrollbar-width: none; }
.p-tabs::-webkit-scrollbar { display: none; }
.p-tabs button { flex: none; padding: 12px 16px 13px; border: 1px solid var(--hair-2); border-bottom: 0; border-radius: 8px 8px 0 0; background: rgba(20, 33, 61, .028); font: 500 .85rem/1 var(--sans); color: var(--navy-2); cursor: pointer; position: relative; margin-bottom: -1px; display: flex; gap: 8px; align-items: center; }
.p-tabs button .ct { font: 500 .66rem/1 var(--mono); background: rgba(20, 33, 61, .08); padding: 3px 6px; border-radius: 99px; }
.p-tabs button[aria-selected="true"] { background: var(--paper); color: var(--ink); border-color: var(--hair); }
.p-tabs button[aria-selected="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--paper); }
.p-tabs button[aria-selected="true"]::before { content: ""; position: absolute; left: 12px; right: 12px; top: -1px; height: 2px; background: var(--ox); }
.p-panel { background: var(--paper) var(--grain); border: 1px solid var(--hair); border-top: 0; padding: clamp(18px, 3.4vw, 40px); margin-bottom: 80px; min-height: 360px; }
.p-panel h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 6px; }
.p-panel .intro { color: var(--muted); margin-bottom: 26px; font-size: .92rem; }

.matter { border: 1px solid rgba(20, 33, 61, .13); background: #fff; margin-bottom: 22px; box-shadow: var(--shadow-1); }
.matter-top { padding: 22px 24px 18px; border-bottom: 1px solid var(--hair-2); }
.matter-top .eyebrow { margin-bottom: 10px; }
.matter-top h3 { font-size: clamp(1.4rem, 2.6vw, 1.85rem); }
.m-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 10px; font-size: .82rem; color: var(--muted); }
.m-meta .mono { color: var(--ink); }
.m-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1px solid var(--hair-2); }
.m-facts > div { padding: 18px 24px; }
.m-facts > div + div { border-left: 1px solid var(--hair-2); }
.m-facts .k { font: 600 .64rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); display: block; margin-bottom: 8px; }
.m-facts .v { font: 500 1.25rem/1.2 var(--serif); display: block; }
.m-facts .s { font-size: .82rem; color: #4a536a; display: block; margin-top: 4px; line-height: 1.45; }
.pill { display: inline-flex; align-items: center; gap: 6px; font: 600 .68rem/1 var(--sans); letter-spacing: .06em; padding: 5px 9px; border-radius: 99px; border: 1px solid currentColor; text-transform: uppercase; }
.pill.ox { color: var(--ox); } .pill.ok { color: var(--ok); } .pill.mut { color: var(--muted); } .pill.brass { color: var(--brass-d); } .pill.ink { color: var(--ink); }
.tracker { padding: 20px 24px 22px; }
.tracker ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); position: relative; }
.tracker li { position: relative; text-align: center; font-size: .74rem; color: var(--muted); padding: 0 3px; line-height: 1.3; }
.tracker li::before { content: ""; position: absolute; top: 8px; left: -50%; width: 100%; height: 2px; background: var(--hair); }
.tracker li:first-child::before { display: none; }
.tracker li.done::before, .tracker li.cur::before { background: var(--ox); }
.tracker .pt { position: relative; z-index: 1; display: block; width: 18px; height: 18px; margin: 0 auto 8px; border-radius: 50%; border: 2px solid var(--hair); background: #fff; }
.tracker li.done .pt { background: var(--ox); border-color: var(--ox); }
.tracker li.cur .pt { border-color: var(--ox); box-shadow: 0 0 0 5px rgba(140, 28, 19, .12); }
.tracker li.cur .pt::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--ox); animation: pulse 2.2s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(.55); opacity: .6; } }
.tracker li.cur { color: var(--ink); font-weight: 600; }
.tracker .explain { margin: 16px 0 0; padding: 12px 14px; background: rgba(239, 229, 207, .4); border-left: 2px solid var(--brass); font-size: .86rem; color: #39425a; }
.updates { padding: 0 24px 20px; }
.updates details summary { cursor: pointer; font: 600 .74rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--navy-2); padding: 10px 0; list-style: none; display: flex; gap: 8px; align-items: center; }
.updates details summary::-webkit-details-marker { display: none; }
.updates details[open] summary .bi-chevron-down { transform: rotate(180deg); }
.updates .msg { background: #f2f6ef; border: 1px solid rgba(47, 107, 79, .2); padding: 12px 14px; font-size: .86rem; margin: 6px 0; border-radius: 0 10px 10px 10px; max-width: 64ch; }
.updates .msg small { display: block; color: var(--muted); font-size: .72rem; margin-top: 6px; }
.lag { font-size: .74rem; color: var(--muted); padding: 0 24px 18px; display: flex; gap: 8px; }

.tbl-wrap { position: relative; overflow-x: auto; -webkit-overflow-scrolling: touch; border-top: 1px solid var(--ink); }
.tbl { width: 100%; border-collapse: collapse; font-size: .88rem; min-width: 560px; }
.tbl th { text-align: left; font: 600 .64rem/1.2 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: 12px 10px 10px 0; border-bottom: 1px solid var(--hair); white-space: nowrap; }
.tbl td { padding: 12px 10px 12px 0; border-bottom: 1px solid var(--hair-2); vertical-align: top; }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tbl tfoot td { font-weight: 600; border-top: 1px solid var(--ink); border-bottom: 0; }
.doc-name { display: flex; gap: 10px; align-items: center; }
.doc-name .bi { font-size: 1.1rem; color: var(--brass-d); }
.upload { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 12px; align-items: end; padding: 20px; border: 1px dashed rgba(20, 33, 61, .3); background: rgba(255, 255, 255, .55); margin: 26px 0 0; }
.file-in { min-height: 48px; padding: 9px 12px; background: #fff; border: 1px solid rgba(20, 33, 61, .22); font-size: .85rem; width: 100%; }
.file-in::file-selector-button { border: 0; background: var(--ink); color: var(--paper); padding: 7px 12px; margin-right: 10px; font: 600 .78rem/1 var(--sans); cursor: pointer; border-radius: 2px; }

.inv { border: 1px solid rgba(20, 33, 61, .13); background: #fff; margin-bottom: 22px; box-shadow: var(--shadow-1); }
.inv-top { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 20px 24px; border-bottom: 1px solid var(--hair-2); align-items: flex-start; }
.inv-top h3 { font-size: 1.45rem; }
.inv-top .mono { color: var(--muted); }
.inv-body { padding: 6px 24px 20px; }
.inv-body .tbl { min-width: 0; }
.inv-tot { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 24px; align-items: start; margin-top: 16px; }
.legend { font-size: .78rem; color: #4a536a; padding: 12px 14px; background: rgba(239, 229, 207, .4); border-left: 2px solid var(--brass); }
.legend b { display: block; font: 600 .62rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--brass-d); margin-bottom: 6px; }
.totals { margin: 0; display: grid; gap: 0; }
.totals > div { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; font-size: .88rem; border-bottom: 1px solid var(--hair-2); }
.totals dt { color: var(--muted); }
.totals dd { margin: 0; font-variant-numeric: tabular-nums; }
.totals .grand { border-bottom: 0; border-top: 1px solid var(--ink); padding-top: 10px; font-weight: 600; font-size: 1rem; }
.totals .grand dt { color: var(--ink); }
.inv-foot { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; align-items: center; padding: 16px 24px; border-top: 1px solid var(--hair-2); background: rgba(246, 241, 231, .5); }
.receipts { display: flex; gap: 8px; flex-wrap: wrap; font-size: .82rem; align-items: center; }
.pay-box { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 24px; align-items: center; }
.qr { width: 210px; height: 210px; padding: 12px; background: #fff; border: 1px solid var(--hair); position: relative; }
.qr::after { content: "DEMO"; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(-18deg); font: 700 1.1rem/1 var(--sans); letter-spacing: .3em; color: var(--ox); background: rgba(255, 255, 255, .92); padding: 6px 10px; border: 1px solid var(--ox); }
.qr svg { width: 100%; height: 100%; display: block; }
.upi-text { font: 400 .74rem/1.5 var(--mono); background: var(--ivory); border: 1px solid var(--hair); padding: 10px 12px; word-break: break-all; margin: 10px 0; }

.stmt-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-bottom: 26px; }
.stile { border: 1px solid var(--hair); background: #fff; padding: 20px 22px; }
.stile h3 { font: 600 .68rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; display: flex; gap: 8px; align-items: center; }
.stile h3 .bi { color: var(--brass-d); font-size: .95rem; }
.stile dl { margin: 0; }
.stile dl > div { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid var(--hair-2); font-size: .9rem; }
.stile dl > div:last-child { border-bottom: 0; font-weight: 600; }
.stile dd { margin: 0; font-variant-numeric: tabular-nums; }
.balance { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 18px 22px; background: var(--ink); color: var(--paper); margin-bottom: 26px; }
.balance .k { font: 600 .7rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--brass-l); }
.balance .v { font: 500 2rem/1 var(--serif); }
.balance .s { font-size: .8rem; color: rgba(251, 248, 242, .7); }

.pref { display: grid; gap: 0; border-top: 1px solid var(--hair); max-width: 760px; }
.pref-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--hair); }
.pref-row b { display: block; font: 500 1.25rem/1.2 var(--serif); margin-bottom: 4px; }
.pref-row span { font-size: .86rem; color: var(--muted); }
.switch { position: relative; width: 52px; height: 30px; flex: none; }
.switch input { position: absolute; inset: 0; opacity: 0; cursor: pointer; z-index: 1; margin: 0; }
.switch i { position: absolute; inset: 0; border-radius: 99px; background: rgba(20, 33, 61, .2); transition: background .25s; }
.switch i::after { content: ""; position: absolute; left: 3px; top: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .3s var(--ease); }
.switch input:checked + i { background: var(--ok); }
.switch input:checked + i::after { transform: translateX(22px); }
.switch input:focus-visible + i { outline: 2px solid var(--ox); outline-offset: 3px; }
.preview-msg { margin-top: 20px; max-width: 520px; }
.preview-msg .bubble { background: #e7f3e4; padding: 14px 16px; border-radius: 0 12px 12px 12px; font-size: .9rem; line-height: 1.55; box-shadow: 0 1px 1px rgba(0, 0, 0, .06); }
.preview-msg .lbl { font: 600 .64rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); display: block; margin-bottom: 8px; }

.empty { text-align: center; padding: 48px 16px; color: var(--muted); }
.empty .bi { font-size: 2rem; color: var(--brass); display: block; margin-bottom: 10px; }

/* ---------------- footer ---------------- */
.site-footer { background: var(--ink); color: rgba(233, 227, 214, .78); padding: 72px 0 28px; font-size: .86rem; position: relative; }
.site-footer::before { content: ""; position: absolute; inset: 0; background: var(--grain); opacity: .45; pointer-events: none; }
.site-footer .wrap { position: relative; }
.site-footer a { color: #f1ead9; text-decoration-color: rgba(216, 195, 154, .5); }
.site-footer a:hover { color: #fff; }
.ft-grid { display: grid; grid-template-columns: 1.3fr .8fr .9fr 1.4fr; gap: 40px; padding-bottom: 44px; border-bottom: 1px solid rgba(216, 195, 154, .22); }
.ft-brand { display: flex; flex-direction: column; gap: 16px; }
.ft-name { display: flex; gap: 12px; align-items: center; color: #fbf8f2; }
.ft-name .brand-mark { color: var(--brass-l); }
.ft-name b { font: 600 1.4rem/1 var(--serif); }
.ft-name small { display: block; font: 500 .62rem/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: rgba(233, 227, 214, .6); margin-top: 6px; }
.ft-brand address { font-style: normal; line-height: 1.6; }
.site-footer h4 { font: 600 .66rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--brass-l); margin-bottom: 16px; }
.ft-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.ft-links a, .ft-links button { color: #f1ead9; text-decoration: none; background: none; border: 0; padding: 0; cursor: pointer; font-size: .88rem; text-align: left; }
.ft-links a:hover, .ft-links button:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.ft-legal p { margin: 0 0 10px; line-height: 1.55; font-size: .8rem; }
.ft-legal p .bi { color: var(--brass-l); margin-right: 6px; }
.ft-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px 24px; padding-top: 22px; font-size: .76rem; color: rgba(233, 227, 214, .58); }
.ft-base .credit a { color: var(--brass-l); font-weight: 600; text-decoration: none; }

/* ---------------- dialog & toast ---------------- */
.dlg { border: 0; padding: 0; width: min(680px, calc(100vw - 24px)); max-height: calc(100vh - 40px); background: var(--paper) var(--grain); color: var(--ink); box-shadow: 0 40px 90px -30px rgba(20, 33, 61, .6); border-top: 3px solid var(--ox); }
.dlg.wide { width: min(860px, calc(100vw - 24px)); }
.dlg::backdrop { background: rgba(20, 33, 61, .5); backdrop-filter: blur(2px); }
.dlg[open] { animation: dlgIn .4s var(--ease); }
@keyframes dlgIn { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.dlg-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 22px 26px 16px; border-bottom: 1px solid var(--hair); position: sticky; top: 0; background: var(--paper); z-index: 1; }
.dlg-head h2 { font-size: 1.8rem; }
.dlg-x { border: 0; background: none; cursor: pointer; font-size: 1.4rem; line-height: 1; padding: 4px; color: var(--muted); }
.dlg-x:hover { color: var(--ox); }
.dlg-body { padding: 22px 26px 26px; font-size: .92rem; }
.dlg-body h3 { font-size: 1.25rem; margin: 20px 0 8px; }
.dlg-body ul { padding-left: 18px; }
.dlg-body li { margin: 4px 0; }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 400; transform: translate(-50%, 20px); opacity: 0; background: var(--ink); color: var(--paper); padding: 12px 18px; font-size: .88rem; box-shadow: var(--shadow-2); transition: all .35s var(--ease); max-width: calc(100vw - 32px); display: flex; gap: 10px; align-items: center; pointer-events: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast .bi { color: var(--brass-l); }

/* receipt (modal + print) */
.receipt { font-size: .9rem; }
.receipt .r-head { display: flex; justify-content: space-between; gap: 16px; border-bottom: 2px solid var(--ink); padding-bottom: 14px; margin-bottom: 14px; flex-wrap: wrap; }
.receipt .r-head b { font: 600 1.4rem/1.1 var(--serif); display: block; }
.receipt .r-amt { font: 500 2.1rem/1 var(--serif); margin: 16px 0; }
.receipt dl { display: grid; grid-template-columns: 140px 1fr; gap: 8px 14px; margin: 0 0 16px; }
.receipt dt { color: var(--muted); }
.receipt dd { margin: 0; }

/* ======================= THE BRIEF (disclaimer gate) ======================= */
html.gated body { overflow: hidden; }
html.gated:not(.gate-on) body { visibility: hidden; animation: gateFallback 0s linear 4s forwards; }
@keyframes gateFallback { to { visibility: visible; } }
.gate {
  position: fixed; inset: 0; z-index: 500; overflow-y: auto; overscroll-behavior: contain;
  display: grid; place-items: center; padding: 36px 44px 36px 20px; perspective: 2200px;
  background: radial-gradient(120% 90% at 50% 30%, #23345e 0%, #14213d 55%, #0c152b 100%);
  transition: background-color .8s, opacity .8s var(--ease);
}
.gate::before { content: ""; position: fixed; inset: 0; background: var(--grain); opacity: .55; pointer-events: none; }
.gate::after { content: ""; position: fixed; inset: 0; pointer-events: none; background: radial-gradient(60% 50% at 50% 45%, rgba(176, 141, 87, .16), transparent 70%); }
.brief { position: relative; width: min(820px, 100%); transform-style: preserve-3d; z-index: 1; animation: briefIn 1s var(--ease) both; }
@keyframes briefIn { from { opacity: 0; transform: translateY(28px) rotate(-1.2deg) scale(.97); } }
.brief-page {
  position: absolute; inset: 0; background: var(--paper) var(--grain); border: 1px solid rgba(20, 33, 61, .12);
  box-shadow: 3px 4px 0 -1px #e9dfc8, 6px 8px 0 -2px #ded0b1, 9px 12px 0 -3px #d3c29e, 0 40px 80px -30px rgba(0, 0, 0, .7);
  padding: clamp(28px, 5vw, 56px) clamp(20px, 5vw, 64px); overflow: hidden;
}
.brief-page .bp-title { text-align: center; font: 600 .8rem/1 var(--sans); letter-spacing: .5em; text-indent: .5em; margin: 10px 0 22px; }
.brief-page ol { list-style: none; margin: 0 auto; padding: 0; max-width: 460px; }
.brief-page li { display: flex; gap: 10px; align-items: baseline; padding: 10px 0; border-bottom: 1px solid var(--hair-2); font: 500 1.15rem/1.2 var(--serif); }
.brief-page li span:first-child { font: 400 .72rem/1 var(--mono); color: var(--brass-d); width: 26px; }
.brief-page li i { flex: 1; border-bottom: 1px dotted rgba(20, 33, 61, .3); transform: translateY(-4px); }
.brief-tabs { position: absolute; top: 18px; bottom: 18px; right: -27px; width: 28px; display: flex; flex-direction: column; gap: 4px; z-index: 0; }
.brief-tabs span {
  flex: 1; display: grid; place-items: center; writing-mode: vertical-rl; font: 600 .62rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink); background: var(--c, #f4ecd9); border: 1px solid rgba(20, 33, 61, .16); border-left: 0; border-radius: 0 6px 6px 0; box-shadow: 2px 2px 6px -2px rgba(0, 0, 0, .35); overflow: hidden; white-space: nowrap; letter-spacing: .08em; font-size: .58rem;
}
html.lang-hi .is-title, html.lang-hi .bp-title { letter-spacing: .04em; text-indent: 0; font-size: 1rem; }
html.lang-hi .brief-tabs span { letter-spacing: .02em; font-size: .7rem; }
.brief-tabs span:nth-child(1) { --c: #f3e6c8; } .brief-tabs span:nth-child(2) { --c: #ead7cf; } .brief-tabs span:nth-child(3) { --c: #dfe3d4; }
.brief-tabs span:nth-child(4) { --c: #f0dfbf; } .brief-tabs span:nth-child(5) { --c: #dcdfe8; } .brief-tabs span:nth-child(6) { --c: #ecd9c4; }
.brief-cover { position: relative; z-index: 2; transform-origin: 0 50%; transform-style: preserve-3d; transition: transform 1.15s cubic-bezier(.55, .02, .25, 1); }
.cover-front, .cover-back { backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.cover-front {
  --pad: clamp(64px, 11vw, 116px); --tx: clamp(26px, 5vw, 50px); --padr: clamp(20px, 4vw, 48px);
  position: relative; background-color: #f1e5c9; color: var(--ink);
  background-image: var(--grain), radial-gradient(130% 90% at 30% 20%, rgba(255, 255, 255, .55), transparent 60%), linear-gradient(180deg, rgba(0, 0, 0, 0) 85%, rgba(120, 90, 40, .08));
  border: 1px solid rgba(134, 103, 47, .4); padding: clamp(30px, 4.4vw, 50px) var(--padr) clamp(26px, 3.6vw, 40px) var(--pad);
  box-shadow: inset 0 0 0 6px rgba(255, 255, 255, .18), inset 0 0 60px rgba(134, 103, 47, .15);
}
.cover-front::before { content: ""; position: absolute; top: 0; bottom: 0; left: calc(var(--tx) + 30px); width: 1px; background: rgba(140, 28, 19, .22); }
.cover-back { position: absolute; inset: 0; transform: rotateY(180deg); background: #ece0c3 var(--grain); border: 1px solid rgba(134, 103, 47, .4); box-shadow: inset -30px 0 60px -30px rgba(0, 0, 0, .25); }
.cv-kicker { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font: 500 .66rem/1.2 var(--mono); color: var(--brass-d); letter-spacing: .06em; margin-bottom: 22px; }
.cv-firm { font: 600 clamp(2.1rem, 5.4vw, 3.6rem)/1 var(--serif); letter-spacing: -.01em; margin: 0; }
.cv-firm em { color: var(--ox); font-weight: 500; }
html.lang-hi .cv-firm { line-height: 1.3; font-size: clamp(1.8rem, 4.6vw, 3rem); }
.cv-sub { font: 500 .72rem/1 var(--sans); letter-spacing: .3em; text-transform: uppercase; color: var(--muted); margin: 12px 0 0; }
html.lang-hi .cv-sub { letter-spacing: .06em; font-size: .84rem; }
.tape-row { position: relative; height: 40px; margin: 22px 0 20px; }
.tape-h { position: absolute; top: 12px; left: calc(-1 * var(--pad) - 14px); right: calc(-1 * var(--padr) - 1px); height: 16px; }
.tape, .tape-h, .tape-v {
  background: linear-gradient(180deg, #6c130d 0%, #8c1c13 22%, #a8291d 48%, #8c1c13 74%, #5e110b 100%);
  box-shadow: 0 2px 3px rgba(0, 0, 0, .28);
}
.tape-h::after, .tape-v::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .05) 0 2px, transparent 2px 5px); }
.tape-v { position: absolute; top: -14px; bottom: -14px; left: var(--tx); width: 16px; z-index: 3; background: linear-gradient(90deg, #6c130d 0%, #8c1c13 22%, #a8291d 48%, #8c1c13 74%, #5e110b 100%); }
.tape-v::after { background: repeating-linear-gradient(180deg, rgba(255, 255, 255, .05) 0 2px, transparent 2px 5px); }
.tape-h { z-index: 4; }
.knot { position: absolute; z-index: 5; width: 96px; height: 80px; top: -15px; left: calc(var(--tx) - var(--pad) + 8px - 48px); pointer-events: none; filter: drop-shadow(0 3px 3px rgba(0, 0, 0, .3)); }
.clip { position: absolute; z-index: 6; top: -30px; right: clamp(40px, 12%, 110px); width: clamp(84px, 14vw, 116px); filter: drop-shadow(0 6px 6px rgba(0, 0, 0, .3)); transform-origin: 50% 0; }
.cv-inre { font: italic 500 1.3rem/1.3 var(--serif); margin: 0 0 12px; }
.cv-text { font-size: .86rem; line-height: 1.6; color: #2c3650; max-width: 62ch; }
.cv-text p { margin: 0 0 .7em; }
.cv-text ul { margin: 0 0 .7em; padding: 0; list-style: none; }
.cv-text li { position: relative; padding-left: 18px; margin: 4px 0; }
.cv-text li::before { content: "§"; position: absolute; left: 0; top: 0; color: var(--ox); font-family: var(--serif); }
.cv-actions { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; margin-top: 22px; padding-top: 18px; border-top: 1px solid rgba(20, 33, 61, .18); }
.cv-actions .btn-ink { min-width: 170px; }
.cv-lang { margin-left: auto; }
.cv-stamp { position: absolute; right: clamp(14px, 3vw, 34px); top: clamp(58px, 8vw, 86px); width: clamp(70px, 11vw, 104px); transform: rotate(-12deg); opacity: .62; mix-blend-mode: multiply; pointer-events: none; }

/* untie + open sequence */
.gate.untie .knot { transition: transform .5s cubic-bezier(.5, 0, .7, .4), opacity .45s; transform: scale(.3) rotate(70deg); opacity: 0; }
.gate.untie .tape-h { transition: transform .85s cubic-bezier(.55, 0, .75, .3) .12s, opacity .6s .35s; transform: translate(42%, 34px) rotate(5deg); opacity: 0; }
.gate.untie .tape-v { transition: transform .85s cubic-bezier(.55, 0, .75, .3) .22s, opacity .6s .45s; transform: translate(-12px, 46%) rotate(-3deg); opacity: 0; }
.gate.untie .clip { transition: transform .55s cubic-bezier(.5, -.4, .7, .6) .05s, opacity .45s .15s; transform: translateY(-70px) rotate(-22deg); opacity: 0; }
.gate.untie .cv-stamp { transition: opacity .4s; opacity: 0; }
.gate.open .brief-cover { transform: rotateY(-172deg); }
.gate.open .cover-front .cv-actions { opacity: 0; transition: opacity .2s; }
.gate.fade { background-color: transparent; opacity: 0; transition: opacity .75s var(--ease); }
.gate.fade .brief { transform: scale(1.06); opacity: 0; transition: transform .8s var(--ease), opacity .7s; }
.gate.fade .brief-tabs { opacity: 0; transition: opacity .2s; }
.fly-tab { position: fixed; z-index: 600; pointer-events: none; border: 1px solid rgba(20, 33, 61, .2); border-radius: 6px 6px 0 0; display: grid; place-items: center; font: 600 .62rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--ink); overflow: hidden; box-shadow: 0 6px 16px -6px rgba(0, 0, 0, .4); transition: left .75s cubic-bezier(.6, .05, .2, 1), top .75s cubic-bezier(.6, .05, .2, 1), width .75s cubic-bezier(.6, .05, .2, 1), height .75s cubic-bezier(.6, .05, .2, 1), opacity .3s, background .6s; }
.tabs.landing .tab { animation: tabLand .5s var(--ease) both; animation-delay: calc(var(--i) * 50ms + .55s); }
@keyframes tabLand { from { opacity: 0; } to { opacity: 1; } }

/* ---------------- print ---------------- */
#print-root { display: none; }
@media print {
  @page { margin: 16mm; }
  body { background: #fff !important; }
  body.print-mode > *:not(#print-root) { display: none !important; }
  body.print-mode #print-root { display: block !important; }
  #print-root * { box-shadow: none !important; animation: none !important; opacity: 1 !important; transform: none !important; }
  #print-root .minibrief { background: #fff !important; border: 1px solid #999; padding: 20px 20px 20px 40px; min-height: 0; }
  #print-root .minibrief::before { width: 6px; left: 16px; }
  #print-root .mb-add, #print-root .mb-actions, #print-root .mb-clip { display: none !important; }
  #print-root .mb-items input { border: 1.5px solid #333 !important; }
  .print-head { display: flex !important; justify-content: space-between; border-bottom: 1px solid #333; padding-bottom: 8px; margin-bottom: 16px; font: 12px/1.4 var(--sans); }
  .print-foot { display: block !important; margin-top: 18px; font: 11px/1.5 var(--sans); color: #444; border-top: 1px solid #999; padding-top: 8px; }
  #print-root .tbl-wrap { overflow: visible; }
  #print-root .tbl { min-width: 0; }
  #print-root .btn { display: none !important; }
}
.print-head, .print-foot { display: none; }

/* ---------------- responsive ---------------- */
@media (max-width: 1100px) {
  .tab { padding: 11px 11px 12px; font-size: .8rem; }
  .ft-grid { grid-template-columns: 1fr 1fr; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  .tabs { display: none; }
  .menu-btn { display: inline-flex; }
  .hdr { align-items: center; min-height: 66px; }
  .brand { padding: 10px 0; }
  .brand-mark { width: 38px; height: 38px; }
  .brand-word { font-size: 1.24rem; }
  .hero-grid, .chamber-grid, .courts-grid, .contact-grid, .login-grid { grid-template-columns: minmax(0, 1fr); }
  .index-wrap { max-width: 520px; }
  .area-layout { grid-template-columns: minmax(0, 1fr); }
  .aside, .sticky-col { position: static; }
  .cb { grid-template-columns: minmax(0, 1fr); }
  .guide-cols { grid-template-columns: minmax(0, 1fr); }
  .band-grid { grid-template-columns: minmax(0, 1fr); }
  .appt-band .scales { display: none; }
  .facade { max-width: 360px; }
  .reg { grid-template-columns: minmax(0, 1fr); }
  .reg-side { border-right: 0; border-bottom: 1px solid var(--hair); flex-direction: row; flex-wrap: wrap; align-items: center; }
  .reg-side .mono-mark { width: 64px; height: 64px; }
  .reg-side .reg-entry { width: 100%; }
}
@media (max-width: 720px) {
  html { scroll-padding-top: 80px; }
  .hdr .lang { display: none; }
  .sec-head { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .sec-no { width: 64px; }
  .hero-facts { grid-template-columns: minmax(0, 1fr); }
  .hero-facts li + li { border-left: 0; padding-left: 0; border-top: 1px solid var(--hair-2); padding-bottom: 14px; }
  .hero-facts li { padding-bottom: 14px; }
  .cards { grid-template-columns: minmax(0, 1fr); }
  .icard { min-height: 0; }
  .forum-list li { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .note-row a { grid-template-columns: minmax(0, 1fr) 24px; gap: 6px 12px; padding: 22px 0; }
  .note-row .tag { grid-column: 1 / -1; }
  .reg-table .hide-s { display: none; }
  .roman { grid-template-columns: minmax(0, 1fr); }
  .stageline { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .stageline::before, .stageline::after { left: 15px; right: auto; top: 16px; bottom: 16px; width: 1px; height: auto; }
  .stageline::after { width: 3px; left: 14px; transform: scaleY(0); transform-origin: top; }
  .stageline.in::after { transform: scaleY(1); }
  .stageline li { text-align: left; padding: 0 0 14px; }
  .stageline button { flex-direction: row; gap: 14px; }
  .stageline .nm { font-size: .92rem; }
  .reg-grid { grid-template-columns: minmax(0, 1fr); }
  .reg-grid > div:nth-child(odd):not(.wide) { border-right: 0; }
  .reg-grid > div { padding: 14px 18px; }
  .reg-side { padding: 20px 18px; }
  .sf-bar { grid-template-columns: minmax(0, 1fr); }
  .sf-list li { grid-template-columns: minmax(0, 1fr) 28px minmax(0, 1fr); gap: 4px 8px; }
  .sf-list .topic { grid-column: 1 / -1; font-size: 1.02rem; }
  .day-line { grid-template-columns: 1fr 1fr; }
  .day-line li { border-right: 0; border-bottom: 1px solid var(--hair-2); padding: 14px 10px 14px 0 !important; }
  .steps-num { grid-template-columns: minmax(0, 1fr); }
  .appt-grid { grid-template-columns: minmax(0, 1fr); }
  .days { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .client-pick { grid-template-columns: minmax(0, 1fr); }
  .m-facts { grid-template-columns: minmax(0, 1fr); }
  .m-facts > div + div { border-left: 0; border-top: 1px solid var(--hair-2); }
  .matter-top, .m-facts > div, .tracker, .inv-top, .inv-body, .inv-foot { padding-left: 16px; padding-right: 16px; }
  .updates, .lag { padding-left: 16px; padding-right: 16px; }
  .tracker li { font-size: 0; }
  .tracker li.cur { font-size: .74rem; }
  .inv-tot { grid-template-columns: minmax(0, 1fr); }
  .upload { grid-template-columns: minmax(0, 1fr); }
  .pay-box { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .stmt-tiles { grid-template-columns: minmax(0, 1fr); }
  .c-lines li { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .ft-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .ft-base { flex-direction: column; }
  .p-panel { padding: 18px 14px; }
  .gate { padding: 26px 36px 26px 12px; place-items: start center; }
  .cover-front { --pad: 54px; --tx: 20px; --padr: 18px; padding: 32px 18px 22px var(--pad); }
  .cover-front::before { left: 44px; }
  .cv-text { font-size: .82rem; }
  .cv-stamp { display: none; }
  .clip { right: 22px; }
  .cv-actions .btn-ink { flex: 1; }
  .cv-lang { margin-left: 0; }
  .brief-tabs { right: -25px; width: 26px; }
  .brief-tabs span { font-size: .55rem; letter-spacing: .08em; }
  .tbl-wrap .tbl.stack { min-width: 0; }
}
@media (max-width: 420px) {
  .brand-word { font-size: 1.08rem; }
  .brand-word small { letter-spacing: .14em; }
  .menu-btn span { display: none; }
  .days { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .login-form .row2 { grid-template-columns: minmax(0, 1fr); }
  .tool-tabs button { padding: 12px 12px 13px; font-size: .8rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .stageline .dot, .stageline .nm { opacity: 1; transform: none; }
  .stageline::after { transform: scaleX(1); }
  .facade .draw { stroke-dashoffset: 0; }
}
