:root {
  scroll-behavior: auto;
  --paper: #f7f6f9;
  --ink: #2c2036;
  --muted: #6b5c75;
  --line: #dcd6e0;
  --mint: #bdf6de;
  --mint-soft: #dcf8ec;
  --mint-deep: #236b53;
  --bs-body-font-family: "Instrument Sans", sans-serif;
  --bs-body-color: var(--ink);
  --bs-body-bg: var(--paper);
  --bs-border-color: var(--line);
  --bs-link-color: var(--ink);
  --bs-link-hover-color: var(--mint-deep);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: 28px; scroll-behavior: auto; }
body { margin: 0; color: var(--ink); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
h1,h2,h3,p { margin-top: 0; }
h1,h2,h3,.brand,.clause-title { font-family: "DM Serif Text", Georgia, serif; font-weight: 400; letter-spacing: -.035em; }
h1 { font-size: clamp(58px,6.1vw,88px); line-height: 1.08; margin-bottom: 12px; }
h2 { font-size: 36px; line-height: 1.15; }
h3 { font-size: 24px; line-height: 1.2; }
a { color: var(--ink); text-underline-offset: 4px; text-decoration-thickness: 1px; }
a:hover { color: var(--mint-deep); }
button,input,textarea { font: inherit; }
button { color: var(--ink); }
button svg,a svg { flex-shrink: 0; }
:focus-visible { outline: 3px solid var(--mint-deep) !important; outline-offset: 4px; }
input:focus-visible,textarea:focus-visible { outline-offset: 2px; }
::selection { color: var(--ink); background: var(--mint); }
.site-width { width: calc(100% - 112px); max-width: 1296px; margin-inline: auto; }
.site-header { border-bottom: 1px solid var(--line); }
.header-inner { min-height: 84px; display: flex; align-items: center; gap: 32px; justify-content: space-between; }
.brand { display: inline-flex; gap: 12px; align-items: center; font-size: 32px; letter-spacing: -.045em; text-decoration: none; white-space: nowrap; }
.brand img { object-fit: contain; }
.header-nav { display: flex; gap: 36px; margin-left: -24px; }
.header-nav a { text-decoration: none; font-size: 16px; padding-block: 10px; border-bottom: 1px solid transparent; }
.header-nav a[aria-current] { border-color: var(--ink); }
.btn { --bs-btn-font-family: "Instrument Sans",sans-serif; --bs-btn-font-size: 16px; --bs-btn-font-weight: 600; --bs-btn-border-radius: 7px; --bs-btn-padding-x: 18px; --bs-btn-padding-y: 10px; min-height: 44px; display: inline-flex; gap: 10px; align-items: center; justify-content: center; line-height: 1.4; }
.btn-primary { --bs-btn-bg: var(--mint); --bs-btn-border-color: var(--mint); --bs-btn-color: var(--ink); --bs-btn-hover-bg: #a3eccd; --bs-btn-hover-border-color: #a3eccd; --bs-btn-hover-color: var(--ink); --bs-btn-active-bg: #94dfbe; --bs-btn-active-color: var(--ink); --bs-btn-active-border-color: #94dfbe; --bs-btn-disabled-bg: #e5e1e8; --bs-btn-disabled-border-color: #e5e1e8; --bs-btn-disabled-color: #746a7b; --bs-btn-disabled-opacity: 1; }
.btn-outline-primary { --bs-btn-color: var(--ink); --bs-btn-border-color: var(--ink); --bs-btn-hover-bg: var(--mint); --bs-btn-hover-border-color: var(--ink); --bs-btn-hover-color: var(--ink); --bs-btn-active-bg: var(--mint); --bs-btn-active-color: var(--ink); --bs-btn-active-border-color: var(--ink); }
.btn-link { --bs-btn-color: var(--muted); --bs-btn-hover-color: var(--ink); }
.sheet-count { display: inline-flex; min-width: 21px; height: 21px; align-items: center; justify-content: center; background: var(--mint); border-radius: 30px; font-size: 12px; }
.skip-link { position: absolute; top: -100px; left: 20px; z-index: 100; padding: 12px 18px; background: var(--ink); color: white; }
.skip-link:focus { top: 12px; color: white; }
.page-intro { padding: 38px 0 34px; }
.lead { font-size: 19px; font-weight: 400; max-width: 870px; margin-bottom: 0; line-height: 1.55; }
.workspace { display: grid; grid-template-columns: minmax(0,1.75fr) minmax(360px,1fr); align-items: start; gap: 44px; }
.search-wrap { position: relative; }
.search-wrap > svg { position: absolute; left: 18px; top: 18px; width: 25px; height: 25px; z-index: 1; pointer-events: none; }
.form-control { min-height: 44px; color: var(--ink); background: white; border: 1px solid #cfc5d6; border-radius: 7px; font-size: 15px; padding: 10px 12px; line-height: 1.5; }
.form-control::placeholder { color: #776a80; opacity: 1; }
.form-control:focus { color: var(--ink); background: white; border-color: var(--mint-deep); box-shadow: none; }
.search-wrap .form-control { min-height: 60px; padding: 14px 47px 14px 56px; font-size: 19px; border-radius: 10px; }
.category-tabs { display: flex; gap: 20px; border-bottom: 1px solid #c9becf; margin-top: 14px; }
.category-tabs button { position: relative; padding: 14px 13px 17px; min-height: 55px; background: transparent; border: 0; white-space: nowrap; font-size: 16px; }
.category-tabs button::after { content:""; position:absolute; height:6px; bottom:3px; border-radius:1px; left:6px; right:6px; background:transparent; }
.category-tabs button[aria-pressed="true"] { font-weight:700; }
.category-tabs button[aria-pressed="true"]::after { background:var(--mint); }
.category-tabs button:hover { color:var(--mint-deep); }
.results-heading { padding:17px 1px 12px; display:flex; align-items:center; justify-content:space-between; border-bottom:1px solid var(--line); }
.results-heading h2 { font-size:21px; margin:0; letter-spacing:-.02em; }
.results-heading p { font-size:14px; margin:0; color:var(--muted); }
.results-scroll { max-height:286px; overflow-y:auto; overscroll-behavior:contain; scrollbar-width:thin; scrollbar-color:#c6bfc9 transparent; border-bottom:1px solid var(--line); scroll-padding-block:6px; }
.clause-list { padding:0; margin:0; list-style:none; }
.clause-row { position:relative; display:flex; align-items:center; gap:6px; border-bottom:1px solid var(--line); background:#ffffff66; }
.clause-row:last-child { border-bottom:0; }
.clause-select { min-width:0; flex:1; padding:12px 18px 14px; text-align:left; background:transparent; border:0; }
.clause-title { font-size:28px; display:block; line-height:1.15; margin-bottom:3px; }
.clause-summary { font-size:14px; line-height:1.45; display:block; }
.clause-row.is-active { background:var(--mint-soft); }
.clause-row.is-active::before { position:absolute; content:""; left:0; top:0; bottom:0; width:5px; background:var(--ink); border-radius:2px; }
.clause-row:hover { background:#e9f6f1; }
.add-clause,.remove-clause { border:0; background:transparent; display:inline-flex; align-items:center; justify-content:center; flex-shrink:0; min-width:44px; min-height:44px; padding:10px; border-radius:4px; }
.add-clause { margin-right:9px; }
.add-clause:hover,.remove-clause:hover { background:#2c203610; }
.add-clause.is-added { color:var(--mint-deep); }
.add-clause[aria-disabled="true"] { cursor:default; }
.add-clause svg { width:23px; height:23px; }
.detail-heading { display:flex; gap:16px; justify-content:space-between; align-items:center; margin:26px 0 12px; }
.detail-heading h2 { margin:0; font-size:38px; }
.permalink { font-size:12px; color:var(--muted); flex-shrink:0; }
.definition { font-size:17px; line-height:1.6; margin-bottom:18px; }
.example { background:#e5f7ee; border-radius:7px; padding:15px 18px; margin-bottom:22px; }
.example p { margin:0; font-size:15px; }
.example .example-label { margin-bottom:4px; font-weight:700; }
.reading-question { margin-bottom:18px; }
.reading-question h3 { font-size:22px; margin-bottom:6px; }
.reading-question p { font-size:15px; margin:0; }
.clause-sources { font-size:12px; line-height:1.8; color:var(--muted); margin-bottom:0; }
.clause-sources a { color:inherit; }
.empty-results { padding:28px 18px; border-bottom:1px solid var(--line); }
.empty-results h2 { font-size:30px; }
.empty-results p { color:var(--muted); }
.reading-sheet { padding:23px 24px 18px; border:1px solid #cec3d6; background:white; border-radius:12px; scroll-margin-top:20px; box-shadow:0 4px 20px #2c203603; }
.sheet-title-row { display:flex; gap:10px; align-items:center; }
.sheet-title-row > svg { width:27px; height:27px; }
.sheet-title-row h2 { font-size:32px; margin:0; letter-spacing:-.04em; }
.save-dot { background:#49c89b; width:9px; height:9px; border-radius:50%; margin-left:auto; flex-shrink:0; }
.sheet-intro { font-size:14px; margin:10px 0 2px; }
.save-status { font-size:11px; color:var(--muted); margin:0 0 15px; }
.storage-warning { color:#8f4521; }
.sheet-metadata { border-block:1px solid var(--line); padding:16px 0; }
label { font-size:13px; font-weight:600; margin:0 0 6px; display:block; }
label span { font-weight:400; color:var(--muted); }
.reference-details { margin-top:10px; }
.reference-details summary { font-size:12px; color:var(--muted); cursor:pointer; min-height:28px; }
.reference-details[open] summary { margin-bottom:10px; }
.reference-details .form-control { margin-bottom:12px; }
.reference-details input[type="date"] { max-width:100%; }
.sheet-empty { padding:30px 0 25px; text-align:center; }
.empty-symbol { display:inline-flex; color:#9c8fa5; margin-bottom:9px; }
.empty-symbol svg { width:36px; height:36px; }
.sheet-empty h3 { font-size:25px; margin-bottom:9px; }
.sheet-empty p { font-size:14px; color:var(--muted); max-width:280px; margin:0 auto; }
.sheet-entry { border-bottom:1px solid var(--line); padding:10px 0 19px; }
.entry-heading { display:flex; align-items:center; justify-content:space-between; gap:8px; }
.entry-heading h3 { margin:0; font-size:25px; }
.remove-clause { margin-right:-10px; }
.remove-clause svg { width:19px; height:19px; }
.clause-note { resize:vertical; min-height:83px; }
.sheet-actions { padding-top:19px; text-align:center; }
.copy-btn { width:100%; font-size:17px; }
.copy-status { font-size:12px; color:var(--mint-deep); text-align:left; margin:9px 0 0; overflow-wrap:anywhere; }
.copy-status:empty { display:none; }
.clear-btn { margin-top:7px; font-weight:400; font-size:13px; }
.clear-confirm { border-top:1px solid var(--line); padding-top:12px; text-align:left; }
.clear-confirm p { font-size:14px; margin-bottom:10px; }
.clear-confirm > div { display:flex; gap:8px; }
.clear-confirm .btn { font-size:13px; }
#manual-copy { margin-top:16px; text-align:left; }
#manual-copy summary { font-size:13px; margin-bottom:12px; cursor:pointer; }
#copy-text { font-family:inherit; font-size:13px; }
.definition-index { border-top:1px solid var(--line); margin-top:50px; padding-top:28px; }
.definition-index h2 { font-size:34px; margin-bottom:7px; }
.definition-index > p { color:var(--muted); font-size:15px; }
.definition-index ul { columns:3; column-gap:30px; padding:0; list-style:none; margin:20px 0 0; }
.definition-index li { break-inside:avoid; padding:9px 0; }
.definition-index a { text-decoration:none; font-size:15px; }
.definition-index a span { color:var(--muted); font-size:12px; margin-left:6px; }
.site-footer { margin-top:54px; border-top:1px solid #cec3d6; padding-block:24px; }
.footer-top { display:flex; justify-content:space-between; align-items:center; gap:20px; margin-bottom:20px; }
.footer-brand { font-size:22px; gap:7px; }
.footer-top nav { display:flex; gap:26px; }
.footer-top nav a { font-size:13px; }
.context-fr { font-size:13px; color:var(--muted); margin-bottom:5px; }
.context-fr a { color:inherit; }
.footer-baseline { color:var(--muted); font-size:12px; margin-bottom:0; }
.footer-baseline a { color:inherit; }
.editorial-main { padding-top:27px; }
.back-link,.breadcrumb-line { font-size:14px; }
.breadcrumb-line { display:flex; gap:12px; flex-wrap:wrap; color:var(--muted); }
.editorial-intro { padding-top:28px; padding-bottom:28px; }
.editorial-intro h1 { font-size:clamp(50px,5vw,76px); max-width:1040px; }
.editorial-grid { display:grid; grid-template-columns:minmax(0,3fr) minmax(240px,1fr); gap:72px; }
.article-column { min-width:0; }
.article-column > section { border-top:1px solid var(--line); padding:24px 0 6px; }
.article-column section h2 { font-size:33px; margin-bottom:12px; }
.article-column p { font-size:16px; line-height:1.65; }
.article-column .detail-heading { margin-top:0; }
.article-column .detail-heading h2 { font-size:32px; }
.article-column .clause-detail { border-top:1px solid var(--line); padding-top:24px; }
.article-column .clause-detail .clause-sources { font-size:13px; }
.article-column .clause-detail .example p { font-size:15px; }
.article-column .clause-detail h3 { font-size:26px; }
.article-column.narrow { max-width:840px; }
.editorial-aside { border-left:5px solid var(--mint); padding-left:26px; align-self:start; }
.editorial-aside h2 { font-size:30px; margin-bottom:12px; }
.editorial-aside p { font-size:16px; }
.editorial-aside > a { font-size:15px; font-weight:600; }
.editorial-aside .small { font-size:12px; color:var(--muted); margin-top:20px; }
.annotation-link { margin:26px 0; }
.related ul { margin-top:18px; list-style:none; padding:0; }
.related li { padding-block:7px; }
.source-list { list-style:none; padding:0; margin:0; }
.source-list li { padding:18px 0; border-bottom:1px solid var(--line); }
.source-list a { font-size:17px; font-weight:600; }
.source-list li p { font-size:14px; margin:5px 0 0; color:var(--muted); }
.source-list li .source-issuer { font-size:12px; }
.article-column .source-checked { font-size:13px; color:var(--muted); }
.notice { padding:18px; border:1px solid var(--line); }
@media (min-width:1500px) {
  .workspace { grid-template-columns:minmax(0,1.8fr) minmax(360px,1fr); }
}
@media (max-width:1100px) {
  .site-width { width:calc(100% - 64px); }
  .workspace { grid-template-columns:minmax(0,1.45fr) minmax(330px,1fr); gap:26px; }
  .brand { font-size:27px; }
  .header-nav { gap:24px; margin:0; }
  .reading-sheet { padding:20px 18px; }
  .sheet-title-row h2 { font-size:28px; }
  .category-tabs { gap:5px; justify-content:space-between; }
  .category-tabs button { padding-inline:8px; font-size:14px; }
  .permalink { display:none; }
  .editorial-grid { gap:40px; }
}
@media (max-width:820px) {
  .site-width { width:calc(100% - 48px); }
  .workspace { display:block; }
  .reading-sheet { margin-top:32px; padding:24px; }
  .results-scroll { max-height:285px; }
  .header-nav { display:none; }
  .page-intro { padding-top:30px; padding-bottom:28px; }
  h1 { font-size:65px; }
  .category-tabs { justify-content:flex-start; gap:18px; }
  .category-tabs button { font-size:15px; }
  .sheet-title-row h2 { font-size:32px; }
  .sheet-empty { padding-block:28px; }
  .definition-index ul { columns:2; }
  .editorial-grid { display:flex; flex-direction:column; gap:30px; }
  .editorial-aside { order:-1; padding:0 0 0 20px; }
  .editorial-aside h2 { font-size:26px; }
}
@media (max-width:480px) {
  .site-width { width:calc(100% - 40px); }
  .header-inner { min-height:68px; gap:12px; }
  .brand { gap:7px; font-size:25px; }
  .brand img { width:29px; height:29px; }
  .sheet-link { padding:8px 10px; min-height:40px; font-size:13px; gap:6px; }
  .sheet-link > svg { display:none; }
  .sheet-count { font-size:10px; min-width:17px; height:17px; }
  h1 { font-size:50px; line-height:1.06; margin-bottom:14px; letter-spacing:-.045em; }
  .page-intro { padding-top:27px; padding-bottom:24px; }
  .lead { font-size:16px; line-height:1.5; }
  .search-wrap .form-control { min-height:54px; font-size:16px; padding:12px 36px 12px 45px; }
  .search-wrap > svg { left:14px; top:16px; width:21px; height:21px; }
  .category-tabs { justify-content:space-between; gap:0; margin-top:9px; }
  .category-tabs button { font-size:13px; padding:11px 7px 14px; min-height:48px; }
  .category-tabs button::after { height:4px; }
  .results-heading { padding-top:14px; padding-bottom:10px; }
  .results-heading h2 { font-size:20px; }
  .results-heading p { font-size:12px; }
  .results-scroll { max-height:279px; }
  .clause-select { padding:13px 13px; }
  .clause-title { font-size:25px; }
  .clause-summary { font-size:13px; line-height:1.4; }
  .add-clause { min-width:44px; min-height:48px; margin-right:4px; }
  .detail-heading { margin-top:24px; }
  .detail-heading h2 { font-size:32px; }
  .definition { font-size:15px; line-height:1.65; }
  .example { padding:14px 15px; }
  .example p { font-size:14px; }
  .reading-question h3 { font-size:23px; }
  .reading-question p { font-size:14px; }
  .reading-sheet { padding:20px 18px 15px; margin-top:28px; }
  .sheet-title-row { gap:8px; }
  .sheet-title-row h2 { font-size:29px; }
  .sheet-title-row > svg { width:23px; height:23px; }
  .save-dot { width:7px; height:7px; }
  .sheet-intro { font-size:13px; }
  .sheet-empty h3 { font-size:25px; }
  .entry-heading h3 { font-size:25px; }
  .form-control { font-size:16px; }
  .reference-details summary { min-height:40px; padding-top:6px; }
  label { font-size:13px; }
  .definition-index { margin-top:36px; padding-top:24px; }
  .definition-index h2 { font-size:29px; }
  .definition-index ul { columns:1; margin-top:12px; }
  .definition-index li { padding:10px 0; border-bottom:1px solid var(--line); }
  .definition-index a { display:block; font-size:14px; }
  .footer-top { flex-direction:column; align-items:flex-start; gap:18px; margin-bottom:18px; }
  .footer-top nav { flex-wrap:wrap; gap:13px 20px; }
  .footer-top nav a { font-size:12px; }
  .site-footer { margin-top:34px; }
  .context-fr { font-size:12px; }
  .footer-baseline { font-size:11px; line-height:1.65; }
  .editorial-main { padding-top:22px; }
  .editorial-intro { padding-top:24px; }
  .editorial-intro h1 { font-size:47px; }
  .article-column section h2 { font-size:29px; }
  .article-column p { font-size:15px; }
  .source-list a { font-size:16px; }
  .breadcrumb-line { font-size:12px; gap:8px; }
}
@media (prefers-reduced-motion:reduce) {
  *,*::before,*::after { scroll-behavior:auto !important; transition:none !important; animation:none !important; }
}
@media print {
  .site-header,.directory,.page-intro,.definition-index,.site-footer,.sheet-actions { display:none; }
  .site-width { width:100%; }
  .workspace { display:block; }
  .reading-sheet { border:0; padding:0; box-shadow:none; }
  .reference-details { display:block; }
  .clause-note { min-height:80px; border-color:#aaa; }
}
