:root {
  --ink: #05240f;
  --cream: #fffee8;
  --green: #60bb82;
  --paper: #fffef4;
  --muted: #536454;
  --line: #d9decd;
  --line-soft: #e7e9d9;
  --radius: 12px;
  --font: 'Poppins','Avenir Next','Century Gothic',Arial,sans-serif;
  --serif: 'Libre Baskerville','Baskerville',Georgia,serif;
  --shadow: 0 18px 48px rgba(5,36,15,.1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 142px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font); -webkit-font-smoothing: antialiased; }
body.nav-open { overflow: hidden; }
a { color: inherit; }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 4px; }
::selection { background: var(--green); color: var(--ink); }
.visually-hidden { position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0; }
.skip-link { position: fixed; z-index: 100; top:-100px;left:14px;padding:12px 18px;border-radius:9px;background:var(--cream);color:var(--ink);font-weight:600; }
.skip-link:focus { top:12px; }

/* Brand header */
.site-header { background:var(--cream); border-bottom:1px solid rgba(5,36,15,.13); position:relative; z-index:24; }
.header-inner { max-width:1440px; margin:auto; min-height:82px; padding:9px clamp(20px,4.5vw,76px); display:flex; align-items:center; justify-content:space-between; gap:24px; }
.brand { display:inline-flex;align-items:center; flex-shrink:0; border-radius:3px; }
.brand img { display:block; width:199px; height:auto; }
.header-right { display:flex; align-items:center; gap:35px; }
.header-download { text-decoration:none; font-size:.78rem; font-weight:500; border-bottom:1px solid currentColor; padding-bottom:4px; display:inline-flex; align-items:center; gap:9px; white-space:nowrap; transition:opacity .18s; }
.header-download:hover { opacity:.6; }
.header-download svg { height:16px;width:16px; }

/* Introduction */
.hero { background:var(--ink); color:var(--cream); position:relative; overflow:hidden; }
.hero-inner { position:relative; max-width:1440px; margin:auto; padding:66px clamp(20px,6vw,100px) 64px; min-height:335px; display:flex; align-items:center; }
.hero-copy { max-width:790px; position:relative; z-index:1; }
.hero h1 { margin:0 0 18px; font-size:clamp(3.7rem,7.4vw,7.9rem); line-height:1.0; letter-spacing:-.068em; font-weight:500; }
.hero-description { margin:0 0 29px; line-height:1.75; font-size:clamp(.99rem,1.55vw,1.18rem);max-width:625px; }

/* Search always reachable while reading */
.search-strip { position:sticky; z-index:23; top:0; background:rgba(255,254,232,.98); border-bottom:1px solid var(--line); box-shadow:0 5px 22px rgba(5,36,15,.045); }
.search-inner { max-width:1440px; margin:auto; padding:14px clamp(20px,4.5vw,76px); min-height:88px; display:flex; align-items:center; gap:18px; }
.search-field { width:min(100%,765px); flex:1 1 400px;position:relative; display:flex;align-items:center; }
.search-field input { display:block; width:100%; height:54px; border-radius:7px; border:1.5px solid var(--ink); background:#fff; color:var(--ink); padding:0 84px 0 56px; outline:none; font-size:.91rem; transition:box-shadow .2s, border-color .2s; -webkit-appearance:none; appearance:none; }
.search-field input::placeholder { color:#718071; opacity:1; }
.search-field input:focus { outline:0;box-shadow:0 0 0 3px rgba(96,187,130,.35); }
.search-field input::-webkit-search-cancel-button { -webkit-appearance:none; }
.search-icon { pointer-events:none;position:absolute;left:18px;top:14px;width:24px;height:24px; color:var(--ink); }
.keyboard-hint { position:absolute; right:14px; top:50%;transform:translateY(-50%); color:var(--muted); font-size:.73rem; border:1px solid var(--line); padding:4px 7px; line-height:1.25; border-radius:4px; background:var(--paper); pointer-events:none; }
.search-clear { position:absolute; right:11px; top:50%; transform:translateY(-50%); background:var(--cream);border:0; width:32px;height:32px;border-radius:5px; font-size:1.5rem;line-height:1; color:var(--ink); }
.search-helper { font-size:.71rem; color:var(--muted); white-space:nowrap; margin-left:auto; line-height:1.65; }
.hint-query { font-size:inherit; border:0; border-bottom:1px solid currentColor; background:transparent;color:var(--ink);padding:0 0 1px; }
.mobile-menu-btn { display:none;align-items:center;gap:8px;padding:11px 12px;border:1px solid var(--ink); background:transparent;border-radius:6px;font-size:.78rem;font-weight:600; }
.mobile-menu-btn svg { width:20px;height:20px; }

/* Reading layout, sticky chapter outline */
.layout { max-width:1440px; margin:0 auto; padding:0 clamp(20px,4.5vw,76px); display:grid; grid-template-columns:minmax(220px,278px) minmax(0,1fr); column-gap:clamp(46px,6vw,108px); align-items:start; }
.sidebar { position:sticky;top:104px; min-width:0; height:calc(100vh - 114px);max-height:900px; display:flex;flex-direction:column; padding:39px 0 22px; }
.sidebar-head { display:flex;justify-content:space-between;align-items:center; font-weight:600;font-size:.73rem;letter-spacing:.12em;margin-bottom:17px; }
.close-sidebar { display:none; background:transparent;border:0; font-size:1.7rem;line-height:1; }
.chapter-nav { overflow-y:auto;overscroll-behavior:contain;min-height:0; scrollbar-color:#9eae9e transparent; scrollbar-width:thin; padding-right:14px; padding-bottom:20px; }
.nav-group { font-size:.68rem; letter-spacing:.07em; color:var(--muted); font-weight:600; margin:24px 0 10px; }
.nav-group:first-child { margin-top:0; }
.side-link { display:flex; align-items:baseline;gap:11px;padding:10px 10px 10px 12px; border-left:3px solid transparent; text-decoration:none;font-size:.8rem;line-height:1.45; border-radius:0 5px 5px 0;transition:background .16s,border-color .16s; }
.side-link:hover { background:#eaf1e6; }
.side-link.active { border-color:var(--ink); background:#e4f2e2; font-weight:600; }
.side-num { flex:0 0 23px; font-weight:500; font-size:.75rem; font-variant-numeric:tabular-nums;color:#687d69; }
.side-link.active .side-num { color:var(--ink); }
.side-title { min-width:0; }
.sidebar-bottom { border-top:1px solid var(--line);margin-top:12px;padding-top:17px;font-size:.66rem;line-height:1.5;color:var(--muted); }
.main-panel { min-width:0;padding-top:51px;padding-bottom:80px; }
.reading-intro { display:flex;align-items:center;gap:26px;border-bottom:1px solid var(--line);padding:0 0 41px; }
.kicker { margin:0 0 12px;font-size:.69rem;font-weight:600; letter-spacing:.15em; }
.reading-intro h2, .results-heading h2 { margin:0 0 16px;font-size:clamp(1.7rem,3vw,2.7rem);line-height:1.25;font-weight:500;letter-spacing:-.045em; }
.reading-intro p:not(.kicker) { margin:0; font-size:.88rem; line-height:1.75;max-width:580px; }
.intro-symbol { background:var(--green); display:grid;place-items:center; border-radius:50% 46% 50% 44%; width:87px;height:96px;transform:rotate(-12deg);font-size:3.45rem;font-family:var(--serif);line-height:1;flex-shrink:0; }
.shortcut-links { padding:23px 0 38px;display:flex;align-items:center;gap:9px;flex-wrap:wrap; }
.shortcut-links>span { margin-right:8px;font-size:.67rem;font-weight:600;letter-spacing:.105em; }
.shortcut-links a { border:1px solid var(--line); background:var(--cream); font-size:.72rem;text-decoration:none;line-height:1.5;padding:8px 13px;border-radius:20px;transition:border .17s, background .17s; }
.shortcut-links a:hover { border-color:var(--ink);background:#eaf1e5; }

/* Chapter and provision text */
.chapter { margin-bottom:83px;scroll-margin-top:135px; }
.chapter-topline { display:flex; justify-content:space-between;align-items:center; border-top:2px solid var(--ink); padding-top:12px;margin-bottom:28px;gap:10px;font-size:.68rem;letter-spacing:.105em;font-weight:600; }
.chapter-topline span:last-child { font-size:.66rem; color:var(--muted);letter-spacing:0;font-weight:400; }
.chapter h2 { font-size:clamp(1.75rem,2.85vw,2.75rem);line-height:1.25; letter-spacing:-.043em; font-weight:500; margin:0 0 32px;max-width:700px; }
.chapter-symbol { font-family:var(--serif); font-weight:400;letter-spacing:-.09em; white-space:nowrap; margin-right:8px; }
.chapter-preface { padding:0 0 18px; font-size:.89rem; }
.effective-preface { border-left:3px solid var(--ink); padding:11px 17px; background:#eaf1e6; margin-bottom:26px; }
.chapter-preface p { margin:0 0 6px; }
.provision { display:grid;grid-template-columns:75px minmax(0,1fr) 29px;gap:17px;align-items:start; border-top:1px solid var(--line); padding:24px 0 25px;scroll-margin-top:148px;transition:background .2s; }
.provision:last-of-type { border-bottom:1px solid var(--line); }
.provision:target { background:#e5f4dc; box-shadow:0 0 0 14px #e5f4dc; border-color:transparent; border-radius:3px; }
.provision-num { font-size:.83rem;font-weight:600;letter-spacing:-.01em;padding-top:2px;white-space:nowrap; }
.provision-body { font-size:.94rem;line-height:1.85;overflow-wrap:anywhere; }
.provision-body p { margin:0 0 12px; }
.provision-body p:last-child { margin-bottom:0; }
.provision-body .document-list { margin:10px 0 15px; padding-left:1.35em; }
.provision-body .document-list:last-child { margin-bottom:0; }
.provision-body li { padding-left:.15em;margin:4px 0; }
.provision-body li::marker { color:var(--ink); }
.xref { text-decoration-color:#83a08a; text-decoration-thickness:1px; text-underline-offset:3px; }
.xref:hover { background:#d9efcf; }
.copy-link { display:grid;place-items:center;border:0;background:transparent;border-radius:5px;color:#708370;opacity:0; padding:5px; width:29px;height:29px; transition:opacity .15s,background .15s; }
.copy-link svg { display:block;width:19px;height:19px; }
.provision:hover .copy-link, .copy-link:focus-visible { opacity:1; }
.copy-link:hover { color:var(--ink);background:#e5f3e4; }
.next-chapter { display:grid; grid-template-columns:1fr auto; gap:2px 10px; padding:22px 0 0; margin-top:25px; text-decoration:none; }
.next-chapter>span:first-child { grid-column:1;font-size:.64rem;font-weight:600;letter-spacing:.13em;color:var(--muted); }
.next-chapter strong { font-size:.92rem;line-height:1.65;font-weight:500;grid-column:1; }
.next-chapter .next-arrow { grid-column:2; grid-row:1 / 3; align-self:center;font-size:1.6rem;font-weight:400;transition:transform .18s; }
.next-chapter:hover .next-arrow { transform:translateX(6px); }

/* Search results */
.search-view { scroll-margin-top:112px; }
.results-heading { padding-bottom:31px; border-bottom:2px solid var(--ink); }
.results-heading>p:last-child { margin:0;font-size:.91rem;color:var(--muted); }
.result-row { display:block;padding:24px 8px 26px 0; border-bottom:1px solid var(--line);text-decoration:none;transition:background .15s,padding-left .15s; }
.result-row:hover { background:#f0f5e9;padding-left:12px; }
.result-meta { display:block;color:var(--muted);font-size:.7rem;margin-bottom:10px;letter-spacing:.025em; }
.result-label { display:block;font-size:1.12rem;font-weight:600;margin:0 0 10px;letter-spacing:-.025em;line-height:1.4; }
.result-preview { font-size:.84rem;line-height:1.8;display:block; color:#243c2a; max-width:740px;overflow-wrap:anywhere; }
mark { background:#d9ef9b; color:var(--ink);border-radius:2px;padding:0 1px; }
.show-more { background:transparent;border:1px solid var(--ink);border-radius:5px;color:var(--ink);font-size:.82rem;padding:13px 19px;margin-top:27px; }
.show-more:hover { background:var(--ink);color:var(--cream); }
.show-more span { margin-left:12px; }
.no-results { margin:48px 0 70px; padding:26px 0; }
.no-results-icon { display:grid;place-items:center;width:66px;height:66px;border-radius:50%;background:var(--green);font-family:var(--serif);font-size:2rem; }
.no-results h3 { font-size:1.35rem;font-weight:500;margin:22px 0 10px; }
.no-results p { font-size:.9rem;line-height:1.8;max-width:540px; }

/* Footer */
.site-footer { background:var(--ink);color:var(--cream); }
.footer-inner { max-width:1440px;margin:auto; padding:62px clamp(20px,4.5vw,76px) 65px;display:flex;justify-content:space-between;gap:30px; }
.site-footer img { width:178px;height:auto;display:block;margin-bottom:24px; }
.site-footer p { margin:5px 0;line-height:1.75;color:rgba(255,254,232,.75);font-size:.72rem;max-width:560px; }
.footer-actions { display:flex; flex-direction:column;align-items:flex-end;gap:18px;padding-top:5px; }
.footer-actions a { display:flex;gap:20px;align-items:center;text-decoration:none;font-size:.8rem;border-bottom:1px solid rgba(255,254,232,.65);padding-bottom:8px;white-space:nowrap; }
.footer-actions a:hover { color:var(--green); }
.toast { position:fixed;left:50%;bottom:25px;transform:translate(-50%,90px);pointer-events:none;background:var(--ink);color:var(--cream);font-size:.79rem;padding:12px 19px;border-radius:7px; box-shadow:var(--shadow); opacity:0;z-index:80;transition:opacity .25s,transform .25s; }
.toast.visible { transform:translate(-50%,0);opacity:1; }
.sidebar-backdrop { display:none; }

@media(max-width:1200px) {
  .search-helper { display:none; }
  .layout { column-gap:44px;grid-template-columns:245px minmax(0,1fr); }
  .provision { grid-template-columns:66px minmax(0,1fr) 27px;gap:12px; }
}
@media(max-width:850px) {
  html { scroll-padding-top:95px; }
  .header-inner { min-height:70px; }
  .brand img { width:166px; }
  .hero-inner { min-height:315px; padding:52px 27px 57px; }
  .hero h1 { font-size:clamp(3.8rem,11vw,5.8rem); }
  .search-inner { padding:10px 20px; min-height:74px;gap:10px; }
  .mobile-menu-btn { display:inline-flex;flex-shrink:0; }
  .search-field { min-width:0; }
  .search-field input { height:49px;font-size:.81rem;padding:0 42px 0 44px; }
  .search-icon { left:13px;top:12px; }
  .keyboard-hint { display:none; }
  .layout { display:block; padding:0 27px; }
  .main-panel { padding-top:35px; }
  .sidebar { position:fixed; height:100dvh;max-height:none; z-index:42; left:0;top:0;bottom:0;width:min(360px,87vw);padding:26px 22px 26px;background:var(--cream);box-shadow:var(--shadow);transform:translateX(-110%);transition:transform .25s; }
  body.nav-open .sidebar { transform:translateX(0); }
  .sidebar-head { margin-bottom:21px; }
  .close-sidebar { display:block; }
  .sidebar-backdrop { position:fixed; inset:0;z-index:41; background:rgba(5,36,15,.56); }
  body.nav-open .sidebar-backdrop { display:block; }
  .chapter-nav { padding-right:0; }
  .intro-symbol { width:70px;height:77px;font-size:3.4rem; }
  .copy-link { opacity:.75; }
  .chapter {scroll-margin-top:98px;}
  .provision {scroll-margin-top:112px;}
}
@media(max-width:560px) {
  .header-inner { padding:8px 20px;min-height:66px; }
  .brand img { width:155px; }
  .header-download { font-size:.67rem;gap:5px; }
  .header-download svg { width:13px;height:13px; }
  .hero-inner { min-height:292px;padding:43px 22px 45px; }
  .hero h1 { font-size:clamp(3.6rem,13.3vw,5.2rem);margin-bottom:14px; }
  .hero-description { font-size:.9rem;line-height:1.65;margin-bottom:20px;max-width:380px; }
  .search-inner { padding:8px 13px;gap:8px; }
  .mobile-menu-btn { width:43px;height:45px;padding:0;justify-content:center; }
  .mobile-menu-btn span { display:none; }
  .search-field input { height:45px;font-size:1rem;padding-left:38px;padding-right:36px; }
  .search-icon { width:21px;height:21px;left:11px;top:12px; }
  .search-clear { right:5px; }
  .layout { padding:0 20px; }
  .main-panel { padding-top:30px;padding-bottom:55px; }
  .reading-intro { gap:10px;padding-bottom:27px; }
  .reading-intro h2 { font-size:1.77rem;line-height:1.17; }
  .reading-intro p:not(.kicker) { font-size:.81rem; }
  .intro-symbol { display:none; }
  .shortcut-links { padding:20px 0 35px; }
  .shortcut-links>span { display:block; width:100%; }
  .shortcut-links a { font-size:.73rem;padding:9px 12px; }
  .chapter { margin-bottom:68px; }
  .chapter h2 { margin-bottom:23px;font-size:1.79rem; }
  .chapter-topline { margin-bottom:20px; }
  .provision { grid-template-columns:53px minmax(0,1fr) 22px;gap:8px;padding:19px 0 22px; }
  .provision-num { font-size:.75rem; }
  .provision-body { font-size:.91rem;line-height:1.75; }
  .provision-body p { margin-bottom:8px; }
  .copy-link { width:22px;height:25px;padding:2px; }
  .copy-link svg { width:16px;height:16px; }
  .result-row { padding:20px 0 23px; }
  .results-heading h2 { font-size:1.85rem; }
  .result-preview { font-size:.8rem; }
  .footer-inner { flex-direction:column;padding:48px 22px; }
  .footer-actions { align-items:flex-start; }
}
@media(prefers-reduced-motion:reduce) {
  html { scroll-behavior:auto; }
  *,*::before,*::after { transition-duration:.01ms!important; animation-duration:.01ms!important; }
}
@media print {
  @page { margin:15mm 17mm; }
  html { scroll-behavior:auto; }
  body { background:white;color:black;font:10pt/1.6 Arial,sans-serif; }
  .site-header,.hero,.search-strip,.sidebar,.sidebar-backdrop,.site-footer,.shortcut-links,.next-chapter,.copy-link,.intro-symbol,.toast { display:none!important; }
  .layout { display:block;max-width:none;padding:0; }
  .main-panel { padding:0; }
  .reading-intro { padding:0 0 20px; }
  .chapter { margin:18px 0 28px;break-inside:auto; }
  .chapter h2 { font-size:19pt;break-after:avoid; }
  .chapter-topline { break-after:avoid; }
  .provision { display:grid;grid-template-columns:15mm 1fr;break-inside:avoid;padding:9px 0; }
  .provision-body { font-size:9.4pt;line-height:1.55; }
  .chapter-preface { font-size:9.4pt; }
  a { text-decoration:none!important; }
}

@media(max-width:850px) { .sidebar[aria-hidden="true"] { visibility:hidden; } }
