/* Del Rio Group brand, read from delriogroup.com computed styles (2026-10-16):
   navy #04263A, teal #117C73, terracotta #D9633F, cream #F5F1E8, slate #8FA6B0 (4th ring segment).
   Locator is the brand typeface but licensed; system stack instead. Buttons echo the site's
   one-rounded-corner shape. No inline styles anywhere: the CSP blocks them. */
:root {
  --navy: #04263A; --teal: #117C73; --teal-dark: #0D625B; --terra: #D9633F; --slate: #8FA6B0;
  --cream: #F5F1E8; --sand: #ECE6D9; --white: #fff;
  --ink: #04263A; --muted: #5A6B76; --line: #E3DED3;
  --ready: #117C73; --check: #E3A13B; --need: #D9633F; --pending: #D5DCE0;
  --need-bg: #FBEAE4; --check-bg: #FCF1DD; --ok-bg: #E2F1EF; --fyi: #5A6B76;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font: 15px/1.5 "Segoe UI", -apple-system, BlinkMacSystemFont, Helvetica, Arial, sans-serif; color: var(--ink); background: var(--cream); }
a { color: var(--teal); }
a:hover { color: var(--teal-dark); }

/* ---- brand chrome ---- */
.brandbar { height: 5px; background: linear-gradient(90deg, var(--navy) 0 25%, var(--teal) 25% 50%, var(--terra) 50% 75%, var(--slate) 75% 100%); }
header.top { background: var(--white); border-bottom: 1px solid var(--line); padding: 10px 28px; display: flex; align-items: center; gap: 18px; }
header.top .logo { height: 26px; width: auto; display: block; }
header.top .app { border-left: 1px solid var(--line); padding-left: 16px; font-weight: 700; color: var(--navy); line-height: 1.2; }
header.top .app small { display: block; font-weight: 600; color: var(--muted); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
header.top nav { margin-left: auto; display: flex; gap: 18px; align-items: center; font-size: 14px; }
header.top nav a { color: var(--navy); text-decoration: none; font-weight: 600; }
header.top nav a:hover { color: var(--teal); }
header.top .who { color: var(--muted); }
header.top button.link { background: none; border: 1.5px solid var(--line); color: var(--navy); border-radius: 0 8px 0 0; padding: 5px 12px; cursor: pointer; font: inherit; font-size: 13px; font-weight: 600; }
header.top button.link:hover { border-color: var(--teal); color: var(--teal); }

main { max-width: 1160px; margin: 26px auto; padding: 0 24px; }
.eyebrow { color: var(--teal); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 4px; }
h1 { font-size: 26px; line-height: 1.25; margin: 0 0 4px; color: var(--navy); font-weight: 800; }
h2 { font-size: 17px; margin: 30px 0 12px; color: var(--navy); font-weight: 700; display: flex; align-items: center; gap: 10px; }
.sub { color: var(--muted); margin: 0 0 20px; }
.pagehead { display: flex; align-items: flex-end; gap: 16px; margin-bottom: 18px; }
.pagehead .grow { flex: 1; }

.btn { display: inline-block; background: var(--terra); color: var(--white); border: 0; border-radius: 0 12px 0 0; padding: 11px 20px; text-decoration: none; cursor: pointer; font: inherit; font-weight: 700; font-size: 14px; }
.btn:hover { background: #C4542F; color: var(--white); }
.btn.secondary { background: var(--white); color: var(--teal); border: 1.5px solid var(--teal); }
.btn.secondary:hover { background: var(--ok-bg); color: var(--teal-dark); }
.btn:focus-visible, button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid rgba(17,124,115,.35); outline-offset: 2px; }

/* ---- portfolio summary ---- */
.summary { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; background: var(--navy); color: var(--white); border-radius: 0 22px 0 0; padding: 22px 28px; margin-bottom: 22px; position: relative; overflow: hidden; }
.summary .mark { position: absolute; right: -70px; top: -70px; width: 260px; height: 260px; opacity: .16; pointer-events: none; }
.summary svg.ring .track { stroke: rgba(255,255,255,.14); }
.summary svg.ring .big { fill: var(--white); } .summary svg.ring .small { fill: rgba(255,255,255,.75); }
.summary .stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 14px; position: relative; }
.summary .stat b { display: block; font-size: 28px; line-height: 1.1; font-weight: 800; }
.summary .stat span { font-size: 13px; color: rgba(255,255,255,.75); }
.summary .stat.ready b { color: #6FD0C4; } .summary .stat.check b { color: #F2C277; } .summary .stat.need b { color: #F29A7C; }
.summary .headline { font-size: 12px; color: rgba(255,255,255,.75); margin: 0 0 10px; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; }

/* ---- charts (server-drawn SVG) ---- */
svg.ring { display: block; flex: none; }
svg.ring .track { stroke: var(--pending); }
svg.ring .seg.ready { stroke: var(--ready); } svg.ring .seg.check { stroke: var(--check); }
svg.ring .seg.needs_input { stroke: var(--need); } svg.ring .seg.pending { stroke: var(--pending); }
svg.ring text { text-anchor: middle; font-family: inherit; }
svg.ring .big { font-size: 24px; font-weight: 800; fill: var(--navy); }
svg.ring .small { font-size: 11px; fill: var(--muted); font-weight: 600; }
svg.hbar { display: block; border-radius: 99px; }
svg.hbar .track { fill: var(--sand); }
svg.hbar .seg.ready { fill: var(--ready); } svg.hbar .seg.check { fill: var(--check); }
svg.hbar .seg.needs_input { fill: var(--need); } svg.hbar .seg.pending { fill: var(--pending); }
.legend { display: flex; flex-wrap: wrap; gap: 16px; font-size: 13px; color: var(--muted); margin-top: 12px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }
.legend i.ready { background: var(--ready); } .legend i.check { background: var(--check); }
.legend i.needs_input { background: var(--need); } .legend i.pending { background: var(--pending); }
.legend b { color: var(--navy); }

/* ---- engagement cards ---- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 18px; }
.card { background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--teal); border-radius: 0 18px 0 0; padding: 18px 20px; text-decoration: none; color: inherit; display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; transition: border-color .15s, box-shadow .15s; }
.card:hover { border-color: var(--teal); box-shadow: 0 10px 28px rgba(4,38,58,.08); color: inherit; }
.card .req { font-weight: 800; font-size: 17px; color: var(--navy); }
.card .meta { color: var(--muted); font-size: 13px; margin: 2px 0 8px; }
.card .duechip { margin-bottom: 10px; }
.pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; font-size: 12px; }
.pill { padding: 3px 9px; border-radius: 0 8px 0 0; font-weight: 700; font-size: 12px; }
.pill.need { background: var(--need-bg); color: #A9431F; } .pill.check { background: var(--check-bg); color: #8A5A00; }
.pill.ok { background: var(--ok-bg); color: var(--teal-dark); } .pill.muted { background: var(--sand); color: var(--muted); }
.due { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 99px; }
.due.ok { background: var(--sand); color: var(--muted); } .due.soon { background: var(--check-bg); color: #8A5A00; } .due.late { background: var(--need-bg); color: #A9431F; }
.empty { color: var(--muted); padding: 22px 0; }

/* ---- engagement page ---- */
.panel { background: var(--white); border: 1px solid var(--line); border-radius: 0 16px 0 0; padding: 20px 22px; margin-bottom: 16px; }
.overview { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); margin: 16px 0 22px; counter-reset: step; }
.step { position: relative; padding: 12px 14px 12px 48px; background: var(--white); border: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.step + .step { border-left: 0; }
.step:last-child { border-radius: 0 14px 0 0; }
.step b { display: block; color: var(--navy); font-size: 14px; }
.step::before { counter-increment: step; content: counter(step); position: absolute; left: 12px; top: 13px; width: 24px; height: 24px; border-radius: 50%; background: var(--sand); color: var(--muted); font-weight: 800; font-size: 13px; text-align: center; line-height: 24px; }
.step.done::before { content: "\2713"; background: var(--teal); color: var(--white); }
.step.now { box-shadow: inset 0 -3px 0 var(--terra); }
.step.now::before { background: var(--terra); color: var(--white); }
table.sections { width: 100%; border-collapse: collapse; font-size: 14px; }
table.sections th, table.sections td { padding: 9px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
table.sections th { color: var(--muted); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
table.sections th.num, table.sections td.num { text-align: right; font-variant-numeric: tabular-nums; width: 64px; }
table.sections td.barcell { width: 44%; }
table.sections td.name { font-weight: 600; color: var(--navy); }
form.inline { display: inline; }
label { display: block; font-weight: 700; margin: 16px 0 6px; color: var(--navy); }
input[type=text], input[type=date], select { width: 100%; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 8px; font: inherit; background: var(--white); color: var(--ink); }
input[type=text]:focus, input[type=date]:focus, select:focus { border-color: var(--teal); outline: none; box-shadow: 0 0 0 3px rgba(17,124,115,.18); }
input[type=file] { font: inherit; font-size: 14px; }
.team { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
.team label { font-weight: 500; margin: 0; display: flex; gap: 8px; align-items: center; color: var(--ink); background: var(--cream); padding: 8px 10px; border-radius: 6px; }
.formactions { margin-top: 24px; display: flex; gap: 16px; align-items: center; }
.error { background: var(--need-bg); color: #A9431F; border-left: 4px solid var(--terra); border-radius: 0 8px 8px 0; padding: 11px 14px; margin: 12px 0; font-weight: 600; }
.todo { border: 1px solid var(--line); border-left: 4px solid var(--line); padding: 12px 16px; margin: 8px 0; background: var(--white); border-radius: 0 12px 0 0; display: flex; gap: 16px; align-items: flex-start; }
.todo.needs_person { border-left-color: var(--terra); } .todo.check { border-left-color: var(--check); } .todo.fyi { border-left-color: var(--slate); }
.todo.done { opacity: .55; }
.todo .sev { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.todo.needs_person .sev { color: #A9431F; } .todo.check .sev { color: #8A5A00; } .todo.fyi .sev { color: var(--fyi); }
.todo .t { font-weight: 700; color: var(--navy); } .todo .where { color: var(--muted); font-size: 12px; }
.todo .do { margin-top: 4px; } .todo .do b { color: var(--navy); }
.todo .tick { margin-left: auto; white-space: nowrap; }
.todo .tick button { background: var(--white); border: 1.5px solid var(--line); border-radius: 0 8px 0 0; padding: 6px 12px; cursor: pointer; font: inherit; font-size: 13px; font-weight: 600; color: var(--navy); }
.todo .tick button:hover { border-color: var(--teal); color: var(--teal); }
details.notes { margin-top: 14px; }
details.notes summary { cursor: pointer; color: var(--muted); padding: 8px 0; font-size: 14px; font-weight: 600; }
details.notes summary:hover { color: var(--teal); }
table.list { width: 100%; border-collapse: collapse; font-size: 14px; }
table.list th, table.list td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.list th { color: var(--muted); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
.uploadrow { margin-top: 14px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }

/* ---- sign-in ---- */
.login-wrap { min-height: calc(100vh - 200px); display: grid; place-items: center; padding: 24px 0; }
.login { width: 100%; max-width: 460px; background: var(--white); border: 1px solid var(--line); border-radius: 0 22px 0 0; padding: 34px 32px 28px; text-align: center; box-shadow: 0 14px 40px rgba(4,38,58,.08); }
.login .mark { width: 76px; height: 76px; margin: 0 auto 14px; display: block; }
.login h1 { margin-bottom: 8px; }
.login p { color: var(--muted); }
.login .gsi { display: flex; justify-content: center; margin: 20px 0 8px; }
.login .fine { font-size: 12px; }
.login form .btn { width: 100%; }

footer { color: var(--muted); font-size: 12px; text-align: center; margin: 44px 0 22px; }
footer b { color: var(--navy); }

@media (max-width: 760px) {
  .steps { grid-template-columns: 1fr 1fr; }
  .overview, .summary, .card { grid-template-columns: 1fr; }
  header.top { flex-wrap: wrap; padding: 10px 16px; }
}
form.inline { display: inline; }
.next p { margin: 0 0 12px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 10px; }
.jobline { font-size: 15px; color: var(--navy); }
.fine { color: var(--muted); font-size: 12px; }
.filters { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 4px 0 16px; }
.filters a { text-decoration: none; }
.filters .sep { color: var(--muted); font-size: 12px; margin: 0 4px 0 10px; }
.answer { background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--line); border-radius: 0 12px 0 0; padding: 14px 18px; margin: 10px 0; }
.answer.ready { border-left-color: var(--ready); } .answer.check { border-left-color: var(--check); } .answer.needs_input { border-left-color: var(--terra); }
.qhead { display: flex; gap: 10px; align-items: center; margin-bottom: 6px; }
.qid { font-size: 12px; font-weight: 700; color: var(--teal); letter-spacing: .04em; }
.ctx { color: var(--muted); font-size: 13px; }
.qtext { font-weight: 600; color: var(--navy); margin: 2px 0 10px; }
.fields { display: flex; gap: 14px; flex-wrap: wrap; }
.fields label { display: flex; flex-direction: column; font-size: 12px; font-weight: 700; color: var(--muted); gap: 4px; margin: 0; }
.fields label.grow { flex: 1; min-width: 260px; }
.fields select, .fields textarea { font: inherit; font-size: 14px; padding: 7px 9px; border: 1px solid var(--line); border-radius: 0 8px 0 0; background: var(--white); color: var(--ink, #1d2b33); }
.sources { margin-top: 8px; font-size: 13px; }
.sources summary { cursor: pointer; color: var(--teal); }
.sources ul { margin: 6px 0 0 18px; padding: 0; }
.titlerow { display: flex; align-items: center; gap: 16px; } .titlerow .btn { margin-left: auto; }
.libgrid { display: grid; grid-template-columns: 240px 1fr; gap: 24px; align-items: start; }
@media (max-width: 760px) { .libgrid { grid-template-columns: 1fr; } }
.depts { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: 0 16px 0 0; padding: 8px; }
.depts a { display: flex; justify-content: space-between; padding: 8px 10px; color: var(--navy); text-decoration: none; border-radius: 0 8px 0 0; font-size: 14px; }
.depts a:hover { background: var(--sand); } .depts a.on { background: var(--ok-bg); color: var(--teal-dark); font-weight: 700; }
.depts .count { color: var(--muted); font-weight: 400; font-size: 12px; }
.depts a.manage { margin-top: 6px; border-top: 1px solid var(--line); color: var(--teal); font-size: 13px; }
.search { display: flex; gap: 10px; align-items: center; margin-bottom: 14px; flex-wrap: wrap; }
.search input[type=search] { flex: 1; min-width: 220px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 0 8px 0 0; font: inherit; }
.depthead { font-size: 15px; margin: 18px 0 6px; }
.docrow { display: block; background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--teal); border-radius: 0 12px 0 0; padding: 12px 16px; margin: 8px 0; text-decoration: none; color: inherit; }
.docrow:hover { border-color: var(--teal); } .docrow.archived { opacity: .6; border-left-color: var(--line); }
.docrow .dt { font-weight: 700; color: var(--navy); }
.docrow .dm { color: var(--muted); font-size: 12px; margin-top: 3px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.docrow .dd { font-size: 13px; margin-top: 4px; }
.formgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 20px; }
.formgrid label { display: flex; flex-direction: column; gap: 5px; font-weight: 700; color: var(--navy); font-size: 13px; margin: 0; }
.formgrid .wide { grid-column: 1 / -1; }
.formgrid input[type=text], .formgrid input[type=date], .formgrid select, .formgrid textarea, .uploadrow input[type=text] { font: inherit; font-weight: 400; padding: 8px 10px; border: 1px solid var(--line); border-radius: 0 8px 0 0; background: var(--white); }
.btn.small { padding: 5px 11px; font-size: 12px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--teal); text-decoration: underline; cursor: pointer; font: inherit; font-size: 12px; }
td.right { text-align: right; white-space: nowrap; }
.attach { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 14px; }
.attach label { display: flex; flex-direction: column; gap: 6px; font-weight: 700; color: var(--navy); font-size: 13px; }
.attach select { font: inherit; font-weight: 400; padding: 6px; border: 1px solid var(--line); max-width: 640px; }
.attach optgroup { font-weight: 700; color: var(--teal-dark); }
h2.first { margin-top: 0; }
/* tooltips: hover AND keyboard focus */
.tip { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 17px; height: 17px; border-radius: 50%; background: var(--sand); color: var(--teal-dark); font-size: 11px; font-weight: 800; cursor: help; vertical-align: 2px; margin-left: 4px; font-family: inherit; letter-spacing: 0; text-transform: none; }
.tip:hover, .tip:focus { background: var(--teal); color: var(--white); outline: none; }
.tip::after { content: attr(data-tip); position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translateX(-50%); width: max-content; max-width: 280px; background: var(--navy); color: var(--white); font-size: 12.5px; font-weight: 500; line-height: 1.4; padding: 8px 11px; border-radius: 0 8px 0 0; box-shadow: 0 6px 20px rgba(4,38,58,.25); opacity: 0; pointer-events: none; transition: opacity .12s; z-index: 50; white-space: normal; text-align: left; }
.tip:hover::after, .tip:focus::after { opacity: 1; }
h1 .tip, h2 .tip { vertical-align: 4px; }
/* help dock */
.helpdock { position: fixed; right: 20px; bottom: 20px; z-index: 40; }
.helpdock > summary { list-style: none; display: flex; align-items: center; gap: 8px; background: var(--teal); color: var(--white); padding: 10px 16px; border-radius: 0 16px 0 0; cursor: pointer; box-shadow: 0 6px 22px rgba(4,38,58,.28); font-weight: 700; }
.helpdock > summary::-webkit-details-marker { display: none; }
.helpdock > summary .q { display: inline-flex; width: 20px; height: 20px; border-radius: 50%; background: var(--white); color: var(--teal); align-items: center; justify-content: center; font-weight: 800; }
.helpbody { position: absolute; right: 0; bottom: 48px; width: min(380px, calc(100vw - 40px)); max-height: min(560px, 75vh); overflow: auto; background: var(--white); border: 1px solid var(--line); border-radius: 0 16px 0 0; box-shadow: 0 12px 36px rgba(4,38,58,.25); padding: 14px 16px; }
.helphead { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; color: var(--navy); }
.helphead a { font-size: 12px; }
.helptips details { border-top: 1px solid var(--line); padding: 6px 0; }
.helptips summary { cursor: pointer; color: var(--navy); font-weight: 600; font-size: 13.5px; }
.helptips p { font-size: 13px; margin: 6px 0 2px; }
.chatlog { display: flex; flex-direction: column; gap: 8px; margin: 10px 0; }
.chatlog:empty { display: none; }
.msg { font-size: 13.5px; padding: 8px 11px; border-radius: 0 10px 0 0; max-width: 92%; white-space: pre-wrap; }
.msg.me { align-self: flex-end; background: var(--ok-bg); color: var(--teal-dark); }
.msg.bot { align-self: flex-start; background: var(--sand); color: var(--navy); }
.msg.wait { opacity: .7; font-style: italic; }
.msg a.src { font-size: 12px; }
.ask { display: flex; gap: 8px; }
.ask input[type=text] { flex: 1; min-width: 0; padding: 8px 10px; border: 1px solid var(--line); border-radius: 0 8px 0 0; font: inherit; font-size: 14px; }
.ask.big input[type=text] { font-size: 15px; padding: 11px 13px; }
.answerbox { border-left: 4px solid var(--teal); }
.toc { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13.5px; }
.guide { background: var(--white); border: 1px solid var(--line); border-radius: 0 12px 0 0; padding: 4px 18px 10px; margin: 10px 0; scroll-margin-top: 16px; }
.guide:target { border-left: 4px solid var(--terra); }
@media print { .helpdock { display: none; } }
.notice { background: var(--ok-bg); color: var(--teal-dark); border-left: 4px solid var(--teal); border-radius: 0 8px 8px 0; padding: 11px 14px; margin: 12px 0; font-weight: 600; }
.adduser { display: flex; gap: 16px; align-items: flex-end; flex-wrap: wrap; }
.adduser label { display: flex; flex-direction: column; gap: 5px; font-weight: 700; color: var(--navy); font-size: 13px; margin: 0; }
.adduser input[type=email] { min-width: 280px; font: inherit; font-weight: 400; padding: 8px 10px; border: 1px solid var(--line); border-radius: 0 8px 0 0; }
.adduser select, td select { font: inherit; padding: 6px 8px; border: 1px solid var(--line); border-radius: 0 8px 0 0; background: var(--white); }
/* source documents, completed engagements */
fieldset.fields { border: 0; padding: 0; margin: 0; min-width: 0; }
fieldset[disabled] textarea, fieldset[disabled] select { background: var(--cream, #F5F1E8); color: inherit; }
.completed-banner { border-left: 4px solid var(--teal, #117C73); }
.note-quote { font-style: italic; margin: 6px 0 10px; }
.warn { color: var(--terracotta, #D9633F); }
ul.warnlist { margin: 8px 0; padding-left: 20px; color: var(--terracotta, #D9633F); font-weight: 600; }
ul.rules { margin: 6px 0 4px; padding-left: 20px; }
.searchrow { display: flex; gap: 10px; align-items: center; margin: 12px 0; }
.searchrow input[type=search] { min-width: 320px; font: inherit; padding: 8px 10px; border: 1px solid var(--line); border-radius: 0 8px 0 0; }
#note, #reason { width: 100%; max-width: 640px; font: inherit; padding: 8px 10px; border: 1px solid var(--line); border-radius: 0 8px 0 0; }
/* help page: categorised sidebar; one topic shown at a time (CSS :target, no script needed) */
.helplayout { display: grid; grid-template-columns: 250px 1fr; gap: 22px; align-items: start; margin-top: 16px; }
.helpnav { position: sticky; top: 16px; background: var(--white); border: 1px solid var(--line); border-radius: 0 12px 0 0; padding: 10px 0; max-height: calc(100vh - 32px); overflow-y: auto; }
.helpnav .navgroup + .navgroup { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 6px; }
.helpnav .navcat { margin: 6px 16px 4px; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--teal); }
.helpnav a { display: block; padding: 6px 16px 6px 20px; color: var(--navy); text-decoration: none; border-left: 3px solid transparent; font-size: 14px; }
.helpnav a:hover, .helpnav a:focus-visible { background: var(--cream); }
.helpnav a.on { border-left-color: var(--terra); background: var(--cream); font-weight: 700; }
.helptopics .topic { display: none; background: var(--white); border: 1px solid var(--line); border-radius: 0 12px 0 0; padding: 6px 24px 18px; scroll-margin-top: 16px; }
.helptopics .topic:target { display: block; }
.helptopics:not(:has(.topic:target)) .topic:first-child { display: block; }
.helptopics .topic h2 { margin-top: 2px; }
.helptopics .topic p { line-height: 1.6; max-width: 72ch; }
.helptopics .catblurb { color: var(--teal-dark); font-weight: 600; border-left: 3px solid var(--teal); padding-left: 10px; }
@media (max-width: 860px) { .helplayout { grid-template-columns: 1fr; } .helpnav { position: static; max-height: none; } }
@media print { .helpnav { display: none; } .helptopics .topic { display: block !important; } }
