:root{--navy:#102a4a;--navy2:#173c63;--teal:#087f79;--teal-bg:#e8f7f4;--ink:#182d44;--muted:#64748b;--line:#e3eaf1;--bg:#f5f8fb;--white:#fff;--shadow:0 8px 26px rgba(24,45,68,.06)}
*{box-sizing:border-box}html{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);background:var(--bg);-webkit-text-size-adjust:100%}body{margin:0}button,input{font:inherit}button{cursor:pointer}a{color:var(--teal)}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #43bcb3;outline-offset:3px}button:active{transform:scale(.985)}.topbar{height:calc(74px + env(safe-area-inset-top));padding:calc(12px + env(safe-area-inset-top)) 18px 12px;display:flex;align-items:center;justify-content:space-between;background:#fff;border-bottom:1px solid var(--line);position:sticky;top:0;z-index:30}.brand{display:flex;gap:10px;align-items:center}.brandmark{width:43px;height:43px;display:grid;place-items:center;background:var(--navy);border-radius:13px;color:white}.brandmark svg{width:27px;height:27px}.brand strong{display:block;font-size:17px;letter-spacing:-.4px}.brand span{display:block;color:var(--muted);font-size:10px;margin-top:3px}.net-pill{background:var(--teal-bg);color:#087168;font-weight:750;border-radius:50px;font-size:11px;padding:7px 10px;white-space:nowrap}.net-pill.off{background:#eef1f6;color:#506076}.main{max-width:780px;margin:auto;padding:18px 17px calc(110px + env(safe-area-inset-bottom));min-height:calc(100vh - 80px)}.view{display:none}.view.active{display:block}.hero{background:linear-gradient(125deg,#102a4a,#174b67 80%,#087f79);border-radius:21px;padding:26px 23px 22px;color:#fff;box-shadow:0 14px 30px rgba(16,42,74,.14)}.hero-eyebrow{font-size:11px;letter-spacing:1.8px;font-weight:750;color:#9ce0d7}.hero h1{font-size:clamp(26px,6.3vw,38px);line-height:1.13;letter-spacing:-.8px;margin:13px 0}.hero p{color:#d5e8f0;line-height:1.5;font-size:14px;max-width:450px}.hero-stats{display:flex;gap:18px;flex-wrap:wrap;border-top:1px solid #ffffff30;margin-top:21px;padding-top:16px}.hero-stats span{font-size:11px;color:#dceaf1}.hero-stats b{font-size:17px;color:#fff;margin-right:3px}.search-panel{background:#fff;border:1px solid var(--line);box-shadow:var(--shadow);border-radius:18px;padding:19px;margin-top:17px}.field-label{display:block;font-weight:760;margin-bottom:11px;font-size:14px}.search-box{height:51px;border:1.5px solid #ccd9e5;background:#f9fbfd;border-radius:12px;display:flex;align-items:center;padding:0 13px;gap:9px}.search-box:focus-within{border-color:var(--teal);box-shadow:0 0 0 3px #087f791a}.search-box svg{height:19px;width:19px;fill:none;stroke:#6a7f90;stroke-width:2;flex-shrink:0}.search-box input{width:100%;border:0;outline:0!important;background:transparent;font-size:15px;color:var(--ink);min-width:0}.search-box input::placeholder{color:#8996a5}.clear{border:0;background:none;color:#748497;font-size:25px;padding:2px 5px}.search-hint{color:var(--muted);font-size:11px;margin-top:10px;line-height:1.6}.section-header{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:28px 2px 13px}.section-header h2{font-size:17px;letter-spacing:-.3px;margin:0}.subtle{font-size:12px;color:var(--muted)}.example-list,.stack{display:flex;flex-direction:column;gap:10px}.example,.result-card,.chapter-card,.saved-card{background:white;border:1px solid var(--line);border-radius:14px;padding:15px 16px;box-shadow:0 2px 9px #1e293b06;text-align:left;color:var(--ink);width:100%;display:block}.example{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:13px;line-height:1.5}.example .arr{font-size:20px;color:var(--teal)}.chapter-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.chapter-preview{background:white;border:1px solid var(--line);border-radius:14px;padding:15px 13px;text-align:left;min-height:105px;display:flex;flex-direction:column;justify-content:space-between}.chapter-preview span{font-size:11px;font-weight:750;color:var(--teal)}.chapter-preview strong{font-size:13px;line-height:1.3}.source-note{border-left:3px solid var(--teal);background:#ecf4f6;padding:15px;margin-top:26px;border-radius:0 11px 11px 0;font-size:12px;line-height:1.6}.source-note p{margin:4px 0 0;color:#4c6474}.page-title{padding:12px 3px 18px}.eyebrow{color:var(--teal);letter-spacing:1.7px;font-size:10px;font-weight:800}.page-title h1{font-size:30px;letter-spacing:-.8px;margin:8px 0}.page-title p{font-size:14px;color:var(--muted);line-height:1.5;margin:0}.chapter-card{display:flex;align-items:center;gap:14px}.chapter-num{width:42px;height:42px;border-radius:12px;display:grid;place-items:center;background:var(--teal-bg);color:var(--teal);font-weight:800;font-size:14px;flex-shrink:0}.chapter-card strong{font-size:13px;display:block}.chapter-card small{display:block;font-size:11px;color:var(--muted);margin-top:5px}.chapter-card .chev{margin-left:auto;color:var(--teal);font-size:20px}.result-card{padding:16px}.result-meta{display:flex;justify-content:space-between;gap:8px;align-items:center;margin-bottom:8px}.rule-tag{font-size:11px;font-weight:800;color:var(--teal);background:var(--teal-bg);border-radius:7px;padding:5px 8px}.page-tag{font-size:11px;color:var(--muted)}.result-card h3{font-size:15px;margin:0 0 8px;line-height:1.35}.result-card p{font-size:12px;color:#566a7d;line-height:1.6;margin:0;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.result-foot{margin-top:10px;font-size:11px;font-weight:700;color:var(--teal)}mark{background:#d6f5eb;color:#173c4b;border-radius:2px}.empty{border:1px dashed #c7d3df;border-radius:15px;padding:23px;background:#fff;text-align:center;color:var(--muted);font-size:13px;line-height:1.6}.empty strong{color:var(--ink);display:block;font-size:15px;margin-bottom:5px}.back-link{border:0;background:transparent;color:var(--teal);font-size:13px;font-weight:750;padding:12px 0 19px}.article-header{background:#fff;border:1px solid var(--line);border-radius:17px;padding:20px;margin-bottom:14px}.article-header .eyebrow{font-size:11px}.article-header h1{font-size:28px;margin:10px 0 7px}.article-header p{color:var(--muted);font-size:13px;margin:0;line-height:1.5}.action-row{display:flex;flex-wrap:wrap;gap:9px;margin-top:16px}.btn{border:0;background:var(--navy);color:#fff;padding:12px 14px;border-radius:10px;font-size:12px;font-weight:760;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;gap:5px}.btn.secondary{background:var(--teal-bg);color:#076b64}.btn.outline{border:1px solid #c9d8e3;color:var(--navy);background:#fff}.btn.full{width:100%}.article-text{background:#fff;border:1px solid var(--line);border-radius:17px;padding:21px 18px}.article-text h2{font-size:15px;margin:0 0 15px}.article-text p{font-size:14px;line-height:1.8;white-space:pre-wrap;margin:0 0 12px;overflow-wrap:anywhere}.article-text p:last-child{margin-bottom:0}.note-box{border-radius:12px;padding:14px 15px;background:#fff8e8;border:1px solid #f3dfaa;font-size:12px;color:#66552c;line-height:1.6;margin:14px 0}.article-footer{margin:14px 0}.page-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:2px 0 13px}.page-head h1{font-size:21px;margin:0}.page-head p{color:var(--muted);font-size:12px;margin:5px 0 0}.pager{display:flex;gap:8px;align-items:center;margin-bottom:12px}.pager button{flex:1;border:1px solid #d4dfe8;background:white;padding:11px;border-radius:9px;color:var(--navy);font-weight:750;font-size:12px}.pager button:disabled{opacity:.35}.page-image-wrap{overflow:auto;max-height:75vh;background:#e4e9ed;border-radius:13px;border:1px solid #d8e1e9;text-align:center;overscroll-behavior:contain}.page-image{display:block;width:100%;height:auto;margin:0 auto;max-width:none}.page-image.zoomed{width:185%}.about-card{background:white;border:1px solid var(--line);border-radius:17px;padding:21px}.about-card h2{font-size:19px;margin:0 0 10px}.about-card h3{font-size:15px;margin:20px 0 7px}.about-card p{font-size:13px;line-height:1.8;color:#516477}.inline-link{background:none;border:0;padding:0;color:var(--teal);font-weight:700;text-decoration:underline}.footnote{color:var(--muted);font-size:11px;text-align:center;margin:25px 0}.bottom-nav{position:fixed;z-index:40;bottom:0;left:0;right:0;display:flex;justify-content:center;gap:0;background:#fff;border-top:1px solid var(--line);height:calc(65px + env(safe-area-inset-bottom));padding-bottom:env(safe-area-inset-bottom);box-shadow:0 -5px 20px #1e293b0b}.bottom-nav button{flex:1;max-width:175px;border:0;background:none;color:#8190a2;font-size:10px;font-weight:700;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:2px}.bottom-nav button.selected{color:var(--teal)}.nav-icon{font-size:25px;line-height:1.2}.toast{position:fixed;bottom:calc(79px + env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);background:var(--navy);color:#fff;border-radius:30px;padding:11px 16px;font-size:12px;box-shadow:var(--shadow);opacity:0;pointer-events:none;transition:opacity .2s;z-index:50;white-space:nowrap;max-width:90vw}.toast.show{opacity:1}@media(min-width:650px){.main{padding:28px 28px 120px}.hero{padding:32px}.chapter-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.search-panel{padding:23px}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

.scroll-x{overflow-x:auto;margin:0 0 20px}.data-table{width:100%;border-collapse:collapse;min-width:360px;font-size:12px}.data-table caption{text-align:left;color:var(--teal);font-weight:800;padding:0 0 10px}.data-table th,.data-table td{border:1px solid var(--line);padding:10px 8px;text-align:left;vertical-align:top}.data-table th{background:#eff6f7;font-weight:750}.data-table td:last-child{font-weight:800;color:var(--navy)}
