/* Andrew Green Law look: the firm's self-hosted fonts (SIL Open Font License, see fonts/) and navy and gold palette. */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 300 700; font-display: swap; src: url("/legal-desk/fonts/inter-var.woff") format("woff"); }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("/legal-desk/fonts/cormorant-garamond-var.woff") format("woff"); }

:root {
  --ink: #1b2a3d;
  --ink-soft: #3d4d61;
  --muted: #627189;
  --paper: #f6f8fb;
  --card: #ffffff;
  --line: #dde3ec;
  --navy: #00367a;
  --navy-deep: #021c4a;
  --brass: #9c7a14;
  --brass-text: #7a5f0c; /* brass for small text: 5.3:1 or better on the light backgrounds */
  --brass-soft: #f8f0d6;
  --gold: #d4af37;
  --gold-light: #f3d36f;
  --ok: #2f6b4f;
  --ok-bg: #e6f2ec;
  --warn: #8a5a12;
  --warn-bg: #fbf0dc;
  --stop: #8f2d2d;
  --stop-bg: #f8e4e4;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(20, 30, 50, .05), 0 6px 20px rgba(20, 30, 50, .06);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, Segoe UI, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #eef2f8;
    --ink-soft: #c5d0de;
    --muted: #9fb0c5;
    --paper: #08121f;
    --card: #0f1f35;
    --line: #22344f;
    --navy: #8fb8f0;
    --navy-deep: #021c4a;
    --brass: #f3d36f;
    --brass-text: #f3d36f;
    --brass-soft: #2a2410;
    --ok: #8fd1b0;
    --ok-bg: #16281f;
    --warn: #e7bd73;
    --warn-bg: #2b2213;
    --stop: #ef9b9b;
    --stop-bg: #2e1717;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.6 var(--sans);
}
img, svg { max-width: 100%; }
a { color: var(--navy); }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.15; color: var(--ink); }
h1 { letter-spacing: -.01em; }
h1 { font-size: clamp(2.3rem, 5.5vw, 3.4rem); margin: 0 0 .5em; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.1rem); margin: 2em 0 .5em; }
h3 { font-size: 1.35rem; margin: 1.5em 0 .4em; }
p, li { color: var(--ink-soft); }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 720px; }

/* header / footer */
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--serif); font-weight: 600; font-size: 1.25rem; }
.brand svg { width: 30px; height: 30px; color: var(--brass); }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text small { font-family: var(--sans, inherit); font-weight: 500; font-size: .72rem; letter-spacing: .04em; color: var(--muted, #667); }
.nav { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.nav a { text-decoration: none; color: var(--ink-soft); font-weight: 500; font-size: .95rem; }
.nav a:hover { color: var(--ink); }
.nav-menu { position: relative; }
.nav a.nav-top { color: var(--ink-soft); padding: 6px 2px; display: flex; align-items: center; line-height: 1.5; }
.nav a.nav-top:hover { color: var(--ink); }
.nav-menu > summary { margin: 0; line-height: 1.5; list-style: none; cursor: pointer; color: var(--ink-soft); font-weight: 500; font-size: .95rem; padding: 6px 2px; display: flex; align-items: center; gap: 6px; }
.nav-menu > summary::-webkit-details-marker { display: none; }
.nav-menu > summary::after { content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .15s; }
.nav-menu[open] > summary::after { transform: rotate(-135deg); margin-top: 5px; }
.nav-menu > summary:hover, .nav-menu[open] > summary { color: var(--ink); }
.nav-drop { position: absolute; top: calc(100% + 6px); left: 0; z-index: 20; min-width: 250px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.12); padding: 6px; display: flex; flex-direction: column; }
.nav-account .nav-drop { left: auto; right: 0; min-width: 190px; }
.nav-drop a, .nav-signout { display: block; padding: 8px 12px; border-radius: 6px; color: var(--ink); text-decoration: none; font-weight: 500; font-size: .95rem; }
.nav-drop a.nav-sub { padding-left: 26px; font-weight: 400; color: var(--ink-soft); font-size: .9rem; }
.nav-drop a:hover, .nav-signout:hover { background: var(--line); }
.nav-signout { background: none; border: 0; text-align: left; cursor: pointer; font: inherit; width: 100%; border-top: 1px solid var(--line); border-radius: 0 0 6px 6px; margin-top: 4px; }
@media (max-width: 640px) {
  .site-header .wrap { padding-top: 8px; padding-bottom: 8px; }
  .nav { width: 100%; gap: 14px; }
  .nav-menu { position: static; }
  .site-header .wrap { position: relative; }
  .nav-drop, .nav-account .nav-drop { left: 0; right: 0; top: auto; margin-top: 6px; min-width: 0; position: absolute; }
  .nav .btn-primary { margin-left: auto; }
}
.site-footer .footer-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 18px; margin-bottom: 18px; }
.footer-cols h2 { margin: 0 0 6px; font-family: var(--sans); font-weight: 700; line-height: 1.6; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.footer-cols a { display: block; padding: 2px 0; }
.site-footer { margin-top: 80px; border-top: 1px solid var(--line); padding: 32px 0 48px; font-size: .9rem; }
.site-footer p { color: var(--muted); max-width: 760px; }
.site-footer nav { display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 12px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border-radius: 8px; border: 1px solid transparent; font: 600 1rem var(--sans); text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s; }
.btn-primary { background: var(--gold); color: #021c4a; }
.btn-primary:hover { background: var(--gold-light); }

.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--muted); }
.btn-sm { padding: 8px 14px; font-size: .9rem; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* hero */
.hero { padding-top: 72px; padding-bottom: 40px; }
.hero .eyebrow { display: inline-block; font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--brass-text); margin-bottom: 12px; }
.hero p.lead { font-size: 1.2rem; max-width: 640px; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }

/* cards */
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.card h3 { margin-top: 0; }
.step-num { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--brass-soft); color: var(--brass); font-weight: 600; margin-bottom: 10px; }

/* notices */
.notice { border-radius: var(--radius); padding: 16px 18px; border: 1px solid var(--line); background: var(--card); margin: 16px 0; }
.notice p { margin: .3em 0; }
.notice-legal { background: var(--brass-soft); border-color: transparent; }
.notice-ok { background: var(--ok-bg); border-color: transparent; }
.notice-ok strong { color: var(--ok); }
.notice-warn { background: var(--warn-bg); border-color: transparent; }
.notice-warn strong { color: var(--warn); }
.notice-stop { background: var(--stop-bg); border-color: transparent; }
.notice-stop strong { color: var(--stop); }

/* prose / tables */
.prose { max-width: 720px; }
.prose ol li, .prose ul li { margin: .4em 0; }
table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: .95rem; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 600; color: var(--ink); }
.table-scroll { overflow-x: auto; }

/* forms */
.form-card { max-width: 440px; margin: 48px auto; }
label { display: block; font-weight: 500; margin: 16px 0 6px; color: var(--ink); }
.hint { font-size: .88rem; color: var(--muted); margin: 4px 0 0; }
input[type=text], input[type=email], input[type=password], input[type=date], input[type=number], input[type=tel], select, textarea {
  width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 8px;
  background: var(--paper); color: var(--ink); font: 1rem var(--sans);
}
input:focus, select:focus, textarea:focus, .btn:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; border-color: var(--navy); }
:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; }
[aria-invalid="true"] { border-color: var(--stop); border-width: 2px; }
textarea { min-height: 90px; resize: vertical; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: var(--ink-soft); }
.check input { margin-top: 5px; }
.choices { display: grid; gap: 8px; margin-top: 6px; }
.choice { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); cursor: pointer; font-weight: 400; margin: 0; color: var(--ink); }
.choice:has(input:checked) { border-color: var(--brass); background: var(--brass-soft); }
.choice input { margin-top: 4px; }
.error { color: var(--stop); font-size: .92rem; min-height: 1.4em; margin-top: 10px; }
.row-2 { display: grid; gap: 0 16px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

/* interview */
.interview { display: grid; gap: 32px; grid-template-columns: 240px 1fr; margin-top: 32px; }
@media (max-width: 800px) { .interview { grid-template-columns: 1fr; } .steps-nav { display: none; } }
.steps-nav ol { list-style: none; padding: 0; margin: 0; position: sticky; top: 16px; }
.steps-nav li { margin: 0; }
.steps-nav button { all: unset; display: block; width: 100%; padding: 8px 12px; border-radius: 6px; cursor: pointer; color: var(--muted); font-size: .95rem; }
.steps-nav button[aria-current=step] { background: var(--brass-soft); color: var(--ink); font-weight: 600; }
.steps-nav button.done::before { content: "✓ "; color: var(--ok); }
.progress { height: 6px; background: var(--line); border-radius: 3px; overflow: hidden; margin: 8px 0 24px; }
.progress span { display: block; height: 100%; background: var(--brass); transition: width .25s; }
.step-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
.save-status { font-size: .85rem; color: var(--muted); }
.child-block { border: 1px dashed var(--line); border-radius: 8px; padding: 4px 16px 16px; margin: 12px 0; }
.q-hidden { display: none; }

/* package */
.pkg-section { break-inside: avoid; }
.kv { display: grid; grid-template-columns: minmax(160px, 34%) 1fr; gap: 6px 16px; margin: 8px 0 16px; }
.kv dt { color: var(--muted); font-size: .92rem; }
.kv dd { margin: 0; color: var(--ink); }
.badge { display: inline-block; font-size: .75rem; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--brass-soft); color: var(--brass-text); vertical-align: middle; }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; margin: 16px 0; }

@media print {
  .site-header, .site-footer, .toolbar, .no-print { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .card { box-shadow: none; border-color: #ccc; }
  a { color: #000; }
}
.page-title { margin-top: 48px; }
.hero-note { max-width: 720px; margin-top: 32px; }
.center { text-align: center; }
fieldset.q { border: 0; padding: 0; margin: 16px 0 0; min-width: 0; }
fieldset.q legend { font-weight: 500; color: var(--ink); padding: 0; margin-bottom: 6px; }
details summary { cursor: pointer; margin-top: 40px; }
/* admin */
.stats { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); margin-bottom: 20px; }
.stat { display: flex; flex-direction: column; gap: 4px; padding: 18px; }
.stat-n { font-family: var(--serif); font-size: 2rem; font-weight: 600; color: var(--ink); }
.admin-breakdowns .card { padding: 18px; }
.bar-row { display: grid; grid-template-columns: minmax(90px, 40%) 1fr auto; gap: 10px; align-items: center; font-size: .9rem; margin: 6px 0; color: var(--ink-soft); }
.bar { height: 8px; background: var(--line); border-radius: 4px; overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--brass); }
input[type=search] { width: 100%; max-width: 360px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); color: var(--ink); font: 1rem var(--sans); }
.paywall { margin: 16px 0 20px; border-color: var(--brass); }
.paywall h3 { margin-top: 0; }
.coupon-form { margin-top: 18px; }
.coupon-row { display: flex; gap: 8px; max-width: 380px; }
.coupon-row input { text-transform: uppercase; }
.detail-card { margin: 24px 0; }
.detail-card h2 { margin-top: 0; }
.badge-stop { background: var(--stop-bg); color: var(--stop); }
.coupon-create { margin-bottom: 16px; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .92em; background: var(--brass-soft); padding: 1px 5px; border-radius: 4px; }
.services { margin-top: 8px; }
.service { text-decoration: none; display: flex; flex-direction: column; transition: border-color .15s, transform .15s; }
.service:hover { border-color: var(--brass); transform: translateY(-2px); }
.service h2 { margin: 0 0 .4em; font-size: 1.5rem; }
.service p { flex: 1; }
.service-cta { font-weight: 600; color: var(--navy); margin-top: 8px; }
.group:hover { transform: none; }
.group p { flex: 0; }
.group-links { list-style: none; margin: 4px 0 12px; padding: 0; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.group-links a { display: block; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; text-decoration: none; color: var(--ink); }
.group-links a:hover { border-color: var(--brass); }
.group-links strong { display: block; color: var(--navy); }
.group-links span { display: block; font-size: .9rem; color: var(--ink-soft); }
.eyebrow-block { display: block; margin-top: 48px; font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--brass-text); }
.page-title-tight { margin-top: 8px; }
.fill-group { border: 1px solid var(--line); border-radius: 8px; padding: 12px 16px; margin: 12px 0; }
.fill-group legend { padding: 0 6px; }
.fill-label { font-weight: 400; color: var(--ink-soft); margin: 10px 0 0; }
.fill-label input { margin-top: 4px; }

.form-sub { font-size: 1.15rem; margin: 28px 0 4px; }
.conflict-card { margin: 12px 0; }
.conflict-card h3 { margin-top: 0; }
.qr { max-width: 220px; background: #fff; padding: 8px; border-radius: 8px; margin: 12px 0; }
.qr svg { width: 100%; height: auto; display: block; }
.turnstile-box { margin: 16px 0; }
.process { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.process li { margin: 0; }
.process h3 { margin: 4px 0 6px; font-size: 1.05rem; }
.process p { margin: 0; font-size: .95rem; }
.process-section { margin-top: 8px; }
.review-card { margin: 16px 0; border-color: var(--brass); }
.review-steps { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 12px; }
.review-steps li { font-size: .85rem; padding: 4px 10px; border-radius: 999px; background: var(--line); color: var(--ink-soft); margin: 0; }
.review-steps li.done { background: var(--brass-soft); color: var(--ink); font-weight: 600; }
.slots-day { margin: 18px 0 6px; font-weight: 600; color: var(--ink); }
.slots { display: flex; flex-wrap: wrap; gap: 8px; }
.fee-line { color: var(--ink-soft); margin: 16px 0 0; }
.fee-note { margin-top: 12px; }
.block-list { list-style: none; padding: 0; }
.block-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); margin: 0; }
.actions { display: flex; flex-wrap: wrap; gap: 6px; }
.avail-form { margin: 12px 0; }
.agreement { margin: 16px 0; }
.agreement h3 { font-size: 1rem; margin: 1.2em 0 .3em; }
.agreement-title { text-align: center; margin-top: 0; font-size: 1.3rem; }
.agreement-sign { max-width: 560px; margin: 16px 0 40px; }
.agreement-admin { margin: 12px 0; }
.scope-note { max-width: 760px; }
.editor-card { margin: 24px 0; }
.ed-cat { margin: 22px 0 8px; font-size: 1rem; color: var(--brass); text-transform: uppercase; letter-spacing: .04em; }
.ed-clause { margin: 10px 0 14px; }
.ed-clause-head { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.ed-actions { display: flex; gap: 6px; }
.ed-text { font-family: var(--sans); font-size: .92rem; }
.ed-removed { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line); color: var(--muted); }
.ed-add select { flex: 1; min-width: 0; }
.ed-step { margin: 8px 0; }
.ed-step summary { cursor: pointer; font-weight: 600; color: var(--ink); }
.check-list { list-style: none; padding: 0; }
.check-list li { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); margin: 0; }
.check-list .done { text-decoration: line-through; color: var(--muted); }


/* ===== Andrew Green Law header and footer ===== */
.ag-bar { background: rgba(2, 28, 74, .98); color: #fff; position: relative; z-index: 30; }
.ag-bar .ag-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 7%; }
.ag-logo { display: flex; align-items: center; gap: 15px; text-decoration: none; }
.ag-circle { width: 52px; height: 52px; flex: none; border: 2px solid var(--gold); border-radius: 50%; display: flex; align-items: center; justify-content: center; font: 700 1.3rem "Cormorant Garamond", serif; color: var(--gold); }
.ag-name { color: #fff; font-weight: 600; line-height: 1.3; }
.ag-sub { color: #c9d2e0; font-size: .8rem; line-height: 1.3; }
.ag-menu { list-style: none; display: flex; align-items: center; gap: 40px; margin: 0; padding: 0; }
.ag-menu a { white-space: nowrap; }
.ag-menu li { color: inherit; }
.ag-menu a { color: #fff; text-decoration: none; transition: color .2s; }
.ag-menu a:hover, .ag-menu a.active { color: var(--gold); }
.ag-portal { border: 1px solid var(--gold); padding: 7px 15px; border-radius: 6px; }
.ag-toggle { display: none; background: none; border: 0; padding: 10px; flex-direction: column; gap: 5px; cursor: pointer; }
.ag-toggle span { display: block; width: 26px; height: 2px; background: #fff; }
.ag-bar :focus-visible { outline: 3px solid var(--gold-light); outline-offset: 3px; }
@media (max-width: 900px) {
  .ag-sub { display: none; }
  .ag-toggle { display: flex; }
  .ag-menu { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 6px 7% 20px; background: rgba(2, 28, 74, .99); }
  .ag-menu.open { display: flex; }
  .ag-menu li { border-bottom: 1px solid rgba(255,255,255,.08); }
  .ag-menu a { display: block; padding: 13px 0; }
  .ag-portal { border: 0; padding: 13px 0; }
}
/* Legal Desk section bar, under the firm bar */
.site-header { background: var(--card); border-bottom: 1px solid var(--line); box-shadow: 0 6px 18px rgba(2, 28, 74, .06); }
.site-header .wrap.desk-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 58px; flex-wrap: wrap; }
.desk-name { display: flex; align-items: baseline; gap: 10px; text-decoration: none; color: var(--navy-deep); font: 700 1.55rem var(--serif); }
.desk-name::before { content: ""; width: 4px; height: 22px; background: var(--gold); border-radius: 2px; align-self: center; }
.desk-name small { font: 500 .78rem var(--sans); color: var(--muted); letter-spacing: .03em; }
@media (prefers-color-scheme: dark) { .desk-name { color: #f3f6fb; } }
@media (max-width: 640px) { .desk-name small { display: none; } }
.site-footer.ag-footer { background: #011332; color: #fff; border-top: 0; margin-top: 80px; padding: 56px 0 48px; text-align: center; }
.ag-footer .footer-line { width: 150px; height: 3px; background: var(--gold); margin: 0 auto 22px; }
.ag-footer .footer-name { font: 700 2rem "Cormorant Garamond", serif; color: #fff; margin: 0 auto 10px; text-align: center; }
.ag-footer p { color: #c9d2e0; max-width: 760px; margin: 0 auto 10px; }
.ag-footer a { color: #c9d2e0; }
.ag-footer a:hover { color: var(--gold); }
.ag-footer .footer-cols { text-align: left; max-width: 820px; margin: 28px auto 24px; padding: 22px 0; border-top: 1px solid rgba(255,255,255,.1); border-bottom: 1px solid rgba(255,255,255,.1); }
.ag-footer .footer-cols h2 { color: var(--gold); }
.ag-footer .ag-links { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 26px; margin: 18px 0; padding: 0; }
.ag-footer .footer-small { font-size: .82rem; color: #8e9bb0; }
.ag-footer :focus-visible { outline: 3px solid var(--gold-light); outline-offset: 3px; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Legal Desk admin tabs */
.admin-tabs { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 2px solid var(--line); margin: 0 0 8px; }
.admin-tabs a { padding: 10px 16px; text-decoration: none; color: var(--ink-soft); font-weight: 600; border-bottom: 3px solid transparent; margin-bottom: -2px; }
.admin-tabs a:hover { color: var(--ink); }
.admin-tabs a.active { color: var(--navy); border-bottom-color: var(--gold); }
.admin-tabs .count:not(:empty) { display: inline-block; min-width: 1.5em; padding: 0 6px; margin-left: 4px; border-radius: 999px; background: var(--gold); color: #021c4a; font-size: .78rem; text-align: center; }
/* Third row: one tab per service inside Family, Wills and Benefits */
.admin-subtabs { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 8px; }
.admin-subtabs a { padding: 6px 12px; text-decoration: none; color: var(--ink-soft); border: 1px solid var(--line); border-radius: 999px; font-size: .92rem; }
.admin-subtabs a:hover { color: var(--ink); }
.admin-subtabs a.active { color: var(--navy); font-weight: 600; border-color: var(--gold); }
.admin-subtabs .count:not(:empty) { display: inline-block; min-width: 1.5em; padding: 0 6px; margin-left: 4px; border-radius: 999px; background: var(--gold); color: #021c4a; font-size: .78rem; text-align: center; }
.group-title { margin-top: 1em; }
/* Inside the Andrew Green Law admin panel: no site header, footer or tab bar (that panel has its own tabs) */
.embed .site-header, .embed .site-footer, .embed .admin-tabs, .embed .admin-subtabs, .embed .admin-title { display: none; }
.embed main.wrap { max-width: none; padding: 0 4px; }

/* ===== Layout pass (Nov 21, 2026): one column width everywhere, and the Legal Desk home page ===== */
/* The firm bar, the Legal Desk bar, the page and the footer now share the same left and right edges */
.wrap { max-width: 1120px; padding: 0 24px; }
.ag-bar .ag-inner { max-width: none; margin: 0; padding: 16px 7%; } /* same as the firm pages' menu bar */
.ag-footer .footer-cols { max-width: none; }
/* "Get started" in the menu: the menu's link colour was overriding the button's text colour */
.nav a.btn-primary, .nav a.btn-primary:hover { color: #021c4a; }

/* Hero: headline and buttons on the left, the limited scope notice on the right */
.hero-split { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 56px; align-items: center; padding-top: 56px; padding-bottom: 36px; }
.hero-split h1 { margin-bottom: .4em; }
.hero-split p.lead { max-width: none; margin: 0; }
.hero-side .scope-note { max-width: none; margin: 0; padding: 22px 24px; background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--gold); box-shadow: var(--shadow); }
.hero-side .scope-note p { margin: 0; }
@media (max-width: 900px) { .hero-split { grid-template-columns: 1fr; gap: 24px; padding-top: 36px; padding-bottom: 24px; } }
/* Sections: "How it works" sits in its own band so the page reads as three clear blocks */
.section-band { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 36px 0 48px; }
.section-band h2, .home-section h2.section-title { margin-top: 0; }
.section-band .card { background: var(--paper); box-shadow: none; }
.home-section { padding-top: 56px; }
/* How it works: five equal steps in a row, two across on tablets, a numbered list on phones */
.section-band .process { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.section-band .process li.card { padding: 20px 18px; }
.section-band .process h3 { min-height: 2.3em; }
@media (max-width: 1000px) { .section-band .process { grid-template-columns: repeat(2, minmax(0, 1fr)); } .section-band .process h3 { min-height: 0; } }
@media (max-width: 600px) {
  .section-band .process { grid-template-columns: 1fr; }
  .section-band .process li.card { display: grid; grid-template-columns: 40px 1fr; column-gap: 12px; }
  .section-band .process li.card .step-num { grid-row: 1 / span 2; margin: 0; }
  .section-band .process li.card h3 { margin-top: 2px; }
}
/* Our services: the fee first, in larger type, then three equal columns */
.fee-line { font-size: 1.1rem; color: var(--ink); margin: 0 0 6px; max-width: 820px; }
.fee-line + .fee-note { margin: 0 0 24px; max-width: 820px; }
.services.groups { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 0; }
@media (max-width: 900px) { .services.groups { grid-template-columns: 1fr; } }
.service.group { padding: 28px; }
.service.group h3.group-name { margin: 0 0 .3em; font-size: 1.6rem; }
.group-links { gap: 8px; margin-top: 12px; }
.group-links a { padding: 12px 14px; }

/* Lawyer's clause editor: tick clauses on the left, live preview on the right */
main:has(.lde-layout), .wrap:has(.lde-layout) { max-width: none; }
.lde-layout { display: grid; grid-template-columns: minmax(300px, 400px) 1fr; gap: 20px; align-items: start; margin-top: 12px; }
@media (max-width: 980px) { .lde-layout { grid-template-columns: 1fr; } }
.lde-side { position: sticky; top: 12px; max-height: calc(100vh - 24px); overflow: auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
@media (max-width: 980px) { .lde-side { position: static; max-height: none; } }
.lde-tabs { display: flex; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--card); z-index: 2; }
.lde-tab { flex: 1; background: transparent; color: var(--muted); border: 0; border-bottom: 3px solid transparent; padding: 12px 8px; font: inherit; font-weight: 600; cursor: pointer; }
.lde-tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--gold); }
.lde-panel { padding: 12px 16px 20px; }
.lde-panel label { display: block; margin-top: 10px; }
.lde-tree details { margin: 2px 0; }
.lde-tree summary { cursor: pointer; padding: 6px 4px; font-weight: 700; border-radius: 6px; }
.lde-tree summary:hover { background: rgba(212, 175, 55, .14); }
.lde-sub > summary { font-weight: 600; color: var(--navy); }
.lde-tree ul { list-style: none; margin: 0; padding: 0 0 0 16px; }
.lde-leaf { display: flex; gap: 8px; align-items: flex-start; padding: 4px 0; }
.lde-leaf input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; }
.lde-leaf label { display: inline; margin: 0; cursor: pointer; }
.lde-count { font-weight: 400; color: var(--muted); font-size: .85rem; }
.lde-note { margin: 2px 0 4px; }
.lde-link { background: none; border: 0; padding: 0; margin-left: 6px; font: inherit; font-size: .85rem; color: var(--navy); text-decoration: underline; cursor: pointer; }
.lde-custom { margin-top: 16px; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--radius); }
.lde-custom summary { cursor: pointer; font-weight: 700; }
.lde-custom .btn { margin-top: 10px; }
.lde-preview { min-width: 0; }
.lde-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 8px; }
.lde-bar .hint { flex: 1; margin: 0; min-width: 240px; }
.lde-bar select { width: auto; }
.lde-paper { background: #fff; color: #111; font-family: Arial, Helvetica, sans-serif; line-height: 1.4; padding: 48px 56px; border: 1px solid var(--line); box-shadow: 0 2px 10px rgba(0, 0, 0, .12); max-width: 1000px; }
.lde-z100 { font-size: 12pt; } .lde-z125 { font-size: 15pt; } .lde-z150 { font-size: 18pt; } .lde-z200 { font-size: 24pt; }
.lde-p { margin: 0 0 .6em; font-size: 1em; color: #111; font-family: inherit; }
.lde-title { text-align: center; font-weight: 700; margin-bottom: 1em; }
.lde-center { text-align: center; }
.lde-cat { margin: 1.4em 0 .5em; font-weight: 700; text-transform: none; letter-spacing: 0; }
.lde-heading { margin: .9em 0 .3em; font-weight: 700; }
.lde-num { display: grid; grid-template-columns: 3em 1fr; text-align: justify; }
.lde-subp { margin-left: 3em; }
.lde-spacer { height: 1em; }
.lde-sig { margin-top: 2.4em; }
.lde-sigpair { display: flex; gap: 3em; margin-top: 2.4em; }
.lde-line { display: inline-block; width: 14em; border-bottom: 1px solid #111; }
.lde-pagebreak { border: 0; border-top: 2px dashed #999; margin: 2em -56px; }
.lde-paper mark { background: #fff27a; color: #111; }
.lde-clause { border-radius: 6px; margin: 0 -10px; padding: 2px 10px; cursor: pointer; }
.lde-clause:hover { background: #f3f6fb; outline: 1px solid #c9d4e4; }
.lde-clause:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.lde-clause.lde-edited { border-left: 4px solid var(--gold); }
.lde-dialog { width: min(900px, 94vw); border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); color: var(--ink); padding: 20px 24px; }
.lde-dialog::backdrop { background: rgba(0, 0, 0, .45); }
.lde-dialog h2 { margin-top: 0; font-size: 1.15rem; }
.lde-editor { width: 100%; min-height: 320px; font: 15px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; }
.lde-vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.lde-doctabs { position: static; margin-bottom: 8px; border: 1px solid var(--line); border-radius: var(--radius); flex-wrap: wrap; }
.lde-doctabs .lde-tab { min-width: 140px; }

/* Phone use */
.steps-jump { display: none; margin: 8px 0 4px; }
@media (max-width: 800px) { .steps-jump { display: block; } }
.check input, .choice input { width: 20px; height: 20px; flex: none; }
input[type=file] { width: 100%; max-width: 100%; padding: 10px 0; font: 1rem var(--sans); color: var(--ink); }
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .step-actions .btn { flex: 1 1 140px; }
  .agreement { padding: 16px; }
  .toolbar .btn { flex: 1 1 100%; }
}

/* Free tools cards on service pages */
.free-tools { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-bottom: 24px; }
.free-tools .service h2, .free-tools .service h3 { margin: 0 0 .4em; font-size: 1.2rem; }
.group-sub { margin: 18px 0 4px; font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; color: var(--brass-text); }

/* Page header band, matching the inner pages of andrewgreenlaw.com (navy band, gold curve, gold divider) */
.page-hero { position: relative; overflow: hidden; padding: 72px 20px 64px; text-align: center; color: #fff;
  background: radial-gradient(circle at center, rgba(20, 90, 180, .35) 0%, transparent 50%), linear-gradient(135deg, #021c4a 0%, #00367a 55%, #021c4a 100%); }
.page-hero .gold-curve-top { position: absolute; top: -250px; left: -300px; width: 1100px; height: 500px; border: 8px solid var(--gold); border-radius: 50%; transform: rotate(-12deg); opacity: .35; }
.page-hero-content { position: relative; z-index: 1; max-width: 900px; margin: 0 auto; }
.page-hero .eyebrow { letter-spacing: 4px; color: var(--gold-light); margin-bottom: 20px; font-size: .9rem; font-weight: 400; text-transform: uppercase; }
.page-hero h1 { font: 700 clamp(2.6rem, 6vw, 4.5rem)/1.1 "Cormorant Garamond", Georgia, serif; color: #fff; margin: 0 0 20px; }
.page-hero .divider { width: 220px; height: 3px; background: var(--gold); margin: 0 auto 30px; }
.page-hero p { color: #e4ebf7; font-size: 1.1rem; max-width: 760px; margin: 0 auto; }
.ld-intro { padding-top: 40px; padding-bottom: 8px; }
.ld-intro .actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-bottom: 28px; }
.ld-intro .scope-note { max-width: 820px; margin: 0 auto; }
@media (max-width: 768px) { .page-hero { padding: 48px 20px 44px; } .page-hero .gold-curve-top { display: none; } }
@media print { .page-hero { background: none; color: #000; padding: 0; } .page-hero h1, .page-hero p, .page-hero .eyebrow { color: #000; } .page-hero .gold-curve-top { display: none; } }
[hidden] { display: none !important; }

/* Service pages: the five steps sit on one row, like the home page. The row is wider than the text column. */
.prose [data-process] { width: calc(min(100vw, 1120px) - 48px); max-width: none; }
.prose .process { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.prose .process li.card { padding: 20px 18px; }
.prose .process h3 { min-height: 2.3em; }
@media (max-width: 1000px) { .prose .process { grid-template-columns: repeat(2, minmax(0, 1fr)); } .prose .process h3 { min-height: 0; } }
@media (max-width: 600px) {
  .prose .process { grid-template-columns: 1fr; }
  .prose .process li.card { display: grid; grid-template-columns: 40px 1fr; column-gap: 12px; }
  .prose .process li.card .step-num { grid-row: 1 / span 2; margin: 0; }
  .prose .process li.card h3 { margin-top: 2px; }
}
@media print { .prose [data-process] { width: auto; } }
/* Free tools page: three cards across, so a topic with one or two tools keeps the same card size */
.free-tools.tools-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tools-grid + .prose h2, main > .prose + .prose h2 { margin-top: 1.2em; }
@media (max-width: 900px) { .free-tools.tools-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .free-tools.tools-grid { grid-template-columns: 1fr; } }

/* Accessibility, 2026-11-24: skip link, step heading focus, and h2 headings that keep the smaller h3 look. */
.skip-link { position: absolute; left: 12px; top: -100px; z-index: 1000; background: var(--gold); color: #021c4a; padding: 12px 20px; border-radius: 6px; font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 12px; outline: 3px solid #fff; box-shadow: 0 0 0 6px #021c4a; }
main:focus, h1[tabindex="-1"]:focus { outline: none; }
main .prose h2.h3, main h2.h3 { font-size: 1.35rem; margin: 1.5em 0 .4em; }

/* A soft navy backing behind the hero label dims the gold curve where it passes under the text, so the label keeps 4.5:1 contrast or better. */
.page-hero .eyebrow { position: relative; width: fit-content; max-width: 100%; margin-left: auto; margin-right: auto; }
.page-hero .eyebrow::before { content: ""; position: absolute; inset: -12px -24px; z-index: -1; pointer-events: none; border-radius: 999px; background: rgba(2, 28, 74, 0.4); filter: blur(6px); }
