/* Self-hosted fonts (Google Fonts origin removed — see HANDOFF.md item 4). */
/* latin-ext */
@font-face {
  font-family: 'DM Mono';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url(/assets/fonts/dm-mono-300-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'DM Mono';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url(/assets/fonts/dm-mono-300-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'DM Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/dm-mono-400-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'DM Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/dm-mono-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'DM Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/assets/fonts/dm-mono-500-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'DM Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/assets/fonts/dm-mono-500-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url(/assets/fonts/instrument-sans-400-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url(/assets/fonts/instrument-sans-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 500;
  font-stretch: 100%;
  font-display: swap;
  src: url(/assets/fonts/instrument-sans-500-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 500;
  font-stretch: 100%;
  font-display: swap;
  src: url(/assets/fonts/instrument-sans-500-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  font-display: swap;
  src: url(/assets/fonts/instrument-sans-600-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  font-display: swap;
  src: url(/assets/fonts/instrument-sans-600-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Instrument Serif';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/instrument-serif-400-italic-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Instrument Serif';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/instrument-serif-400-italic-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Instrument Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/instrument-serif-400-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Instrument Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/instrument-serif-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* =====================================================================
   noticia — Canadian Discovery Protocol Generator
   Design tokens are at the top: swap them for the site's own values.
   ===================================================================== */
:root{
  --bg:#f4f2ed;            /* noticia page cream */
  --card:#ffffff;
  --ink:#1b1a17;           /* site ink */
  --ink-2:#3a3a3a;
  --muted:#6b6b6b;
  --line:#e3dfd6;
  --line-2:#d3cec3;
  --accent:#1b1a17;        /* primary buttons: ink on cream */
  --accent-ink:#ffffff;
  --accent-2:#b5541c;      /* single warm accent for highlights */
  --ok:#2f7a4f; --warn:#b5541c; --info:#3f5b8a;
  --radius:14px;
  --font:"Instrument Sans",system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  --serif:"Instrument Serif",Georgia,"Times New Roman",serif;
}
*{box-sizing:border-box}
html,body{margin:0;background:var(--bg);color:var(--ink);font-family:var(--font);-webkit-font-smoothing:antialiased}
a{color:inherit}
/* Instrument Sans ships 400/500/600, so the UI's bolds sit on a real cut
   rather than a synthesized one. .doc is excluded on purpose: it renders in
   Calibri/Carlito to mirror Word, where 700 is a weight the font has. */
b,strong{font-weight:600}
.doc b,.doc strong{font-weight:700}
.wrap{max-width:1240px;margin:0 auto;padding:22px 20px 60px}
.hero{display:grid;grid-template-columns:1.3fr 1fr;gap:28px;align-items:end;margin-bottom:26px}
.hero h1{font-size:40px;line-height:1.08;letter-spacing:-.02em;margin:0 0 12px;font-weight:600}
.hero h1 em{font-style:italic;font-family:var(--serif);font-weight:400}
.hero p{font-size:17px;line-height:1.55;color:var(--ink-2);margin:0 0 14px;max-width:62ch}
.hero .kicker{font-size:12px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);margin-bottom:10px}
.hero .actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:6px}
.badges{display:flex;flex-wrap:wrap;gap:8px}
.badge{font-size:12.5px;padding:6px 10px;border:1px solid var(--line-2);border-radius:999px;background:var(--card);color:var(--ink-2)}
.layout{display:grid;grid-template-columns:minmax(380px,520px) 1fr;gap:22px;align-items:start}
.panel{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);}
.step{border-bottom:1px solid var(--line)}
.step:last-child{border-bottom:0}
.step-head{display:flex;align-items:center;gap:12px;padding:16px 18px;cursor:pointer;user-select:none}
.step-head .n{width:26px;height:26px;border-radius:50%;background:var(--bg);border:1px solid var(--line-2);display:grid;place-items:center;font-size:12.5px;font-weight:600}
.step-head h2{font-size:16px;margin:0;flex:1;font-weight:600}
.step-head .chev{color:var(--muted);transition:transform .2s}
.step.open .step-head .chev{transform:rotate(180deg)}
.step-body{display:none;padding:2px 18px 18px}
.step.open .step-body{display:block}
label.f{display:block;font-size:13px;font-weight:600;margin:12px 0 5px;color:var(--ink-2)}
label.f small{font-weight:400;color:var(--muted)}
input[type=text],input[type=date],input[type=number],input[type=email],select,textarea{width:100%;font:inherit;font-size:14.5px;padding:9px 11px;border:1px solid var(--line-2);border-radius:9px;background:#fff;color:var(--ink)}
textarea{min-height:76px;resize:vertical;line-height:1.45}
input:focus,select:focus,textarea:focus{outline:2px solid #cfc7b8;outline-offset:1px}
.row{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.row3{display:grid;grid-template-columns:1fr 1fr 1fr;gap:10px}
.hint{font-size:12.5px;color:var(--muted);line-height:1.45;margin-top:6px}
.cbs{display:grid;grid-template-columns:1fr;gap:4px;margin-top:6px}
label.cb{display:flex;gap:8px;align-items:flex-start;font-size:13.5px;line-height:1.35;padding:4px 0}
label.cb input{margin-top:3px}
.toggle{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;border:1px solid var(--line);border-radius:10px;margin-top:10px;background:#fbfaf7}
.toggle b{font-size:14px}
.toggle small{display:block;color:var(--muted);font-weight:400;margin-top:2px;line-height:1.35}
.toggle input{width:18px;height:18px}
.jcards{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:8px}
.jcard{text-align:left;font:inherit;background:#fff;border:1px solid var(--line-2);border-radius:10px;padding:10px 12px;cursor:pointer;display:flex;flex-direction:column;gap:2px}
.jcard b{font-size:14px}
.jcard span{font-size:12px;color:var(--muted);line-height:1.3}
.jcard.active{border-color:var(--ink);box-shadow:0 0 0 1px var(--ink) inset;background:#fbfaf7}
.chips{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
.chip{font:inherit;font-size:12.5px;padding:6px 10px;border-radius:999px;border:1px solid var(--line-2);background:#fff;cursor:pointer}
.chip:hover{border-color:var(--ink)}
.chip.applied{background:var(--ink);color:#fff;border-color:var(--ink);cursor:default}
.chip-all{border-style:dashed}
.btn{font:inherit;font-weight:600;font-size:14.5px;padding:11px 18px;border-radius:10px;border:1px solid var(--accent);background:var(--accent);color:var(--accent-ink);cursor:pointer;text-decoration:none;display:inline-flex;align-items:center;gap:8px}
.btn:disabled{opacity:.6;cursor:progress}
.btn.ghost{background:#fff;color:var(--ink);border-color:var(--line-2)}
.btn.small{padding:8px 12px;font-size:13px}
.btn.accent{background:var(--accent-2);border-color:var(--accent-2)}
.step-foot{display:flex;justify-content:flex-end;gap:8px;margin-top:14px}
.right{position:sticky;top:16px;display:flex;flex-direction:column;gap:14px;max-height:calc(100vh - 32px)}
.twocol{flex:none}
.twocol{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.twocol .panel{max-height:220px;overflow:auto}
.guide{padding:14px 16px}
.guide h3,.checksbox h3{margin:0 0 8px;font-size:12px;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);font-weight:600}
.g-row{font-size:12.5px;line-height:1.45;color:var(--ink-2);padding:4px 0;border-bottom:1px dashed var(--line)}
.g-row:last-child{border-bottom:0}
.checksbox{padding:14px 16px}
.check{display:flex;gap:9px;font-size:12.5px;line-height:1.45;padding:6px 0;color:var(--ink-2)}
.check .dot{flex:none;width:8px;height:8px;border-radius:50%;margin-top:6px;background:var(--info)}
.check.warn .dot{background:var(--warn)} .check.ok .dot{background:var(--ok)}
.previewbox{overflow:hidden;display:flex;flex-direction:column;min-height:0;flex:1}
.previewhead,.dl{flex:none}
.previewhead{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 16px;border-bottom:1px solid var(--line);background:#fbfaf7;border-radius:var(--radius) var(--radius) 0 0}
.previewhead .t{font-size:13px;color:var(--muted)}
.previewhead .t b{color:var(--ink)}
.dl{padding:14px 16px;border-top:1px solid var(--line);background:#fbfaf7;display:flex;flex-wrap:wrap;align-items:center;gap:10px}
.dl .fn{font-size:12.5px;color:var(--muted);flex:1;min-width:200px;word-break:break-all}
#dl-done{font-size:13px;color:var(--ok)}
/* document preview */
.doc{padding:44px 52px;font-family:"Calibri","Carlito",var(--font);font-size:14px;line-height:1.5;color:#111;background:#fff;flex:1;min-height:0;overflow:auto}
.doc .cap-file{text-align:right;font-size:13px}
.doc .cap-court{text-align:center;font-weight:700;margin:14px 0 12px;font-size:15px}
.doc .cap-between{font-size:13px;margin-top:6px}
.doc .cap-party{display:flex;justify-content:space-between;align-items:baseline;padding:2px 0 2px 40px}
.doc .cap-party span{font-size:12.5px}
.doc .cap-and{text-align:center;font-size:13px;margin:4px 0}
.doc .cap-cpa{text-align:center;font-size:12.5px;margin-top:8px}
.doc .doc-title{text-align:center;font-size:17px;margin:26px 0 4px;font-weight:700;letter-spacing:.02em}
.doc .doc-sub{text-align:center;font-size:12.5px;color:#555}
.doc .cap-ab{width:100%;border-collapse:collapse;font-size:12.5px;margin-bottom:12px}
.doc .cap-ab td{vertical-align:top;padding:4px 6px}
.doc .cap-ab td:first-child{width:38%;font-size:11.5px}
.doc .cap-ab .sub{color:#555;font-size:11.5px}
.doc .cap-qc{display:flex;gap:20px;font-size:13px}
.doc .cap-qc .left,.doc .cap-qc .right{flex:1}
.doc .cap-qc .court{font-weight:700}
.doc .cap-qc .v{text-align:center;padding:6px 0}
.doc .cap-qc .gap{height:12px}
.doc h2.sec{font-size:13.5px;text-transform:uppercase;letter-spacing:.02em;margin:26px 0 8px;padding-bottom:3px;border-bottom:1px solid #d9d9d9}
.doc h3.subsec{font-size:13.5px;font-style:italic;margin:16px 0 6px}
.doc p{margin:0 0 9px;text-align:justify}
.doc p.np{display:flex;gap:10px}
.doc p.np .num{flex:none;width:34px}
.doc p.dnote{background:#f3f4f6;color:#374151;font-style:italic;font-size:12.5px;padding:8px 10px;border-radius:6px;margin-left:44px}
.doc ul{margin:0 0 10px 44px;padding-left:18px}
.doc li{margin-bottom:4px}
.doc table.ptable{width:100%;border-collapse:collapse;font-size:12.5px;margin:6px 0 12px}
.doc table.ptable th,.doc table.ptable td{border:1px solid #bfbfbf;padding:5px 7px;vertical-align:top;text-align:left}
.doc table.ptable th{background:#e5e7eb}
.doc .sig{display:flex;gap:30px;margin-top:30px;font-size:13px}
.doc .sigcol{flex:1}
.doc .sigcol .line{border-bottom:1px solid #111;height:44px;margin-bottom:6px}
.doc .muted{color:#555;font-size:12px}
.doc .pb{border-top:1px dashed #cfcfcf;margin:26px 0;position:relative}
.doc .pb:after{content:"page break";position:absolute;top:-9px;left:0;font-size:10px;color:#999;background:#fff;padding:0 6px}
/* modal */
.modal{position:fixed;inset:0;background:rgba(20,20,20,.45);display:none;align-items:center;justify-content:center;padding:20px;z-index:50}
.modal.open{display:flex}
.modal .box{background:#fff;border-radius:16px;max-width:460px;width:100%;padding:24px 26px;border:1px solid var(--line)}
.modal h3{margin:0 0 6px;font-size:20px;letter-spacing:-.01em}
.modal p{margin:0 0 10px;color:var(--ink-2);font-size:14px;line-height:1.5}
.modal .acts{display:flex;justify-content:flex-end;gap:8px;margin-top:14px}
.hp{position:absolute;left:-9999px;opacity:0;height:0;width:0}
footer.foot{margin-top:40px;font-size:12.5px;color:var(--muted);line-height:1.6;border-top:1px solid var(--line);padding-top:16px}
footer.foot a{color:var(--ink-2)}
.info-strip{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:14px 18px;margin-bottom:18px;font-size:14px;line-height:1.55;color:var(--ink-2)}
.info-strip b{color:var(--ink)}
/* Layout one-offs that would otherwise ride as style="" attributes. The site
   serves style-src 'self' with no 'unsafe-inline', which drops a style
   attribute as surely as it drops a <style> block — and it fails open, showing
   whatever the attribute meant to hide. build/tool-page.js refuses to build a
   tool page that still has one, so put new one-offs here. Anything that has to
   be computed at runtime is set through element.style, which the CSP allows. */
.inline-actions{display:flex;gap:8px;align-items:center;margin-top:8px;flex-wrap:wrap}
.field-actions{display:flex;justify-content:space-between;align-items:center;margin-top:6px}
#cat-editor{min-height:120px}
label.cb.pad-lg{margin-top:34px}
label.cb.pad-sm{margin-top:10px}
@media (max-width:980px){
  .layout{grid-template-columns:1fr}
  .twocol{grid-template-columns:1fr}
  .right{position:static;max-height:none}
  .previewbox{flex:none}
  .doc{flex:none;max-height:62vh}
  .hero{grid-template-columns:1fr}
  .hero h1{font-size:32px}
}
@media print{
  body{background:#fff}
  .site-header,body>footer,.hero,.info-strip,.left,.guide,.checksbox,.previewhead,.dl,footer.foot,.modal{display:none!important}
  .layout{display:block}
  .panel{border:0}
  .doc{max-height:none;overflow:visible;padding:0}
  .doc .pb{page-break-before:always;border:0}
  .doc .pb:after{content:none}
}