:root{--teal:#244c49;--deep:#173b39;--ivory:#f8f6f0;--sage:#dfe8de;--amber:#b78345;--text:#293431;--muted:#65736e;--line:#dfe5dd;font-family:system-ui,-apple-system,"Segoe UI",sans-serif;color:var(--text);background:var(--ivory)}*{box-sizing:border-box}body{margin:0;padding-bottom:calc(80px + env(safe-area-inset-bottom))}button,input{font:inherit}button{cursor:pointer}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid var(--amber);outline-offset:2px}a{color:var(--teal)}.wrap{width:min(100%,760px);margin:auto}.mast{padding:20px 18px 36px;background:linear-gradient(#f8f6f0e9,#f8f6f0ac),url(landscape.svg) center bottom/cover no-repeat}.topbar{display:flex;align-items:center;justify-content:space-between;margin-bottom:25px}.brand{display:flex;gap:10px;align-items:center;color:var(--deep);text-decoration:none}.brand img{width:43px;height:43px}.brand strong{font:600 22px Georgia,serif}.brand small{display:block;font-size:12px;color:var(--muted)}h1,h2,h3{color:var(--deep)}h1{font:600 clamp(28px,6vw,38px)/1.17 Georgia,serif;margin:0 0 10px}h2{font:600 24px Georgia,serif;margin:23px 0 12px}.tagline{font:italic 17px/1.45 Georgia,serif;color:#52695f}.content{padding:19px 16px 40px}.searchbox{display:flex;gap:12px;align-items:center;background:#fff;border:1px solid var(--line);padding:13px;border-radius:15px;box-shadow:0 2px 8px #264d4519}.searchbox input{border:0;outline:0;background:transparent;width:100%;font-size:16px}.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}.category{min-height:123px;display:flex;flex-direction:column;align-items:start;justify-content:space-between;background:white;border:1px solid var(--line);border-radius:16px;padding:15px 12px;text-align:left;color:var(--deep);box-shadow:0 3px 14px #244c4910}.category b{font-size:14px;line-height:1.3}.circle{width:42px;height:42px;background:var(--sage);border-radius:50%;display:grid;place-items:center;font-size:23px;color:var(--teal)}.list{display:flex;flex-direction:column;gap:9px}.list-card{width:100%;border:1px solid var(--line);border-radius:14px;padding:15px;display:flex;align-items:center;justify-content:space-between;gap:14px;text-align:left;background:#fff;color:var(--text);box-shadow:0 2px 8px #244c490f}.list-card b{font-size:15px}.list-card small{display:block;font-size:12px;color:var(--muted);margin-top:5px}.arrow{font-size:24px;color:var(--muted)}.back{background:transparent;border:0;color:var(--teal);font-weight:650;padding:10px 0}.actions{display:flex;align-items:center;justify-content:space-between;gap:10px}.smallbutton{background:white;color:var(--teal);border:1px solid var(--line);border-radius:10px;padding:9px 12px}.chip{display:inline-block;background:#e2eae0;border-radius:20px;padding:5px 11px;font-size:12px;color:var(--deep);margin-bottom:9px}.article{overflow-wrap:anywhere}.article h2,.article h3{font:600 21px Georgia,serif;border-top:1px solid var(--line);padding-top:21px;margin:27px 0 12px}.article p,.article li{font-size:15.5px;line-height:1.64}.article li{margin-bottom:6px}.article ul,.article ol{padding-left:23px}.article table{border-collapse:collapse;display:block;width:100%;overflow-x:auto;font-size:14px;margin:14px 0}.article td,.article th{min-width:130px;text-align:left;vertical-align:top;padding:10px;border-bottom:1px solid var(--line)}.article th{background:var(--sage)}.article a{overflow-wrap:anywhere}.article blockquote{border-left:3px solid var(--sage);margin:14px 0;padding-left:14px}.article h3:last-of-type{color:var(--teal)}.related{border-top:1px solid var(--line);padding-top:9px}.muted{color:var(--muted);line-height:1.55}.info{background:var(--sage);border-radius:12px;padding:13px;font-size:13px;line-height:1.5}.footer{text-align:center;padding:25px 8px;font-size:12px;color:var(--muted)}.source{border-bottom:1px solid var(--line);padding:12px 0;font-size:14px;overflow-wrap:anywhere}.source a{display:block;padding-top:6px}.bottom-nav{position:fixed;bottom:0;left:0;right:0;height:calc(70px + env(safe-area-inset-bottom));background:#fffefcf8;border-top:1px solid var(--line);display:flex;justify-content:space-around;align-items:flex-start;padding:7px 5px env(safe-area-inset-bottom);z-index:20}.bottom-nav button{border:0;background:transparent;display:flex;align-items:center;flex-direction:column;color:var(--muted);font-size:28px;line-height:30px;min-width:55px}.bottom-nav button span{font-size:11px}.bottom-nav button.active{color:var(--deep);font-weight:700}.empty{padding:20px;background:white;border-radius:12px;color:var(--muted)}.loading{padding:80px 16px;text-align:center}@media(min-width:650px){.grid{grid-template-columns:repeat(3,minmax(0,1fr))}.content{padding:25px}.mast{padding:25px 28px}.bottom-nav{width:min(760px,100%);left:50%;transform:translateX(-50%)}}


/* Phase 2 visual refinement — no external assets or dependencies */
:root{--teal:#244c49;--deep:#173b39;--ivory:#f8f6f0;--sage:#e7eee6;--amber:#b78345;--text:#283330;--muted:#61716b;--line:#dce4dd;font-family:ui-sans-serif,system-ui,-apple-system,"Segoe UI",Arial,sans-serif;-webkit-font-smoothing:antialiased}
body{background:var(--ivory)}
.line-icon{width:23px;height:23px;flex:none;display:inline-block;vertical-align:middle}
.wrap{max-width:740px}
.mast{padding:22px 20px 30px;background:linear-gradient(180deg,#f8f6f0f7,#f8f6f0df 65%,#f8f6f0e4),url(landscape.svg) center bottom/cover no-repeat;border-bottom:1px solid #e8ece6}
.topbar{margin-bottom:28px}
.brand{gap:11px}
.brand img{width:42px;height:42px}
.brand strong{font:600 23px/1.08 Georgia,"Times New Roman",serif;letter-spacing:-.5px}
.brand small{font-size:12px;letter-spacing:.02em;margin-top:4px}
h1{font:600 clamp(29px,6vw,39px)/1.16 Georgia,"Times New Roman",serif;letter-spacing:-.65px;max-width:620px}
h2{font:600 24px/1.24 Georgia,"Times New Roman",serif;letter-spacing:-.35px;margin:25px 0 15px}
.tagline{font:italic 16px/1.5 Georgia,"Times New Roman",serif;color:#557168;margin:12px 0 0}
.content{padding:22px 18px 45px}
.searchbox{min-height:53px;border-radius:13px;padding:12px 15px;box-shadow:0 3px 16px #233b3220;gap:11px}
.searchbox>.line-icon{color:var(--teal);width:21px;height:21px}
.searchbox input{min-width:0;font-size:15px;line-height:1.35}
.grid{gap:12px}
.category{min-height:140px;justify-content:flex-start;gap:15px;border-radius:15px;padding:17px 15px;background:#fffefd;box-shadow:0 3px 11px #2c594713;transition:background .15s ease,border-color .15s ease,transform .15s ease}
.category:hover{background:#f4f9f3;border-color:#b2c7b9;transform:translateY(-1px)}
.category:active{transform:none}
.category b{font-family:ui-sans-serif,system-ui,-apple-system,"Segoe UI",Arial,sans-serif;font-size:13.5px;font-weight:650;line-height:1.35;letter-spacing:-.14px;max-width:175px}
.circle{width:47px;height:47px;background:#e8f0e8;color:#397368;flex:none}
.circle .line-icon{width:25px;height:25px}
.list{gap:9px}
.list-card{border-radius:13px;padding:17px 16px;min-height:65px;box-shadow:0 2px 7px #244c4910;background:#fffefd}
.list-card:hover{background:#f6faf6;border-color:#bfcfc1}
.list-card b{font-weight:650;letter-spacing:-.1px}
.list-card small{line-height:1.4}
.arrow{display:grid;place-items:center;color:#71857a}
.arrow .line-icon{width:18px;height:18px}
.overview-link{background:#eaf1e9;border-color:#cfddd0}
.overview-link:hover{background:#e1ece0}
.back{display:inline-flex;gap:4px;align-items:center}
.smallbutton{display:inline-flex;align-items:center;justify-content:center;gap:5px;font-size:13px;font-weight:600;color:var(--teal);min-height:36px;padding:8px 11px;border-radius:10px}
.smallbutton .line-icon{width:17px;height:17px}
.actions{margin:0 0 9px}
.chip{display:inline-flex;align-items:center;gap:6px;font-weight:600;background:#e7eee6;color:#2a5349}
.chip .line-icon{width:15px;height:15px}
.article{color:#303b37}
.article h2,.article h3{font:600 22px/1.28 Georgia,"Times New Roman",serif;letter-spacing:-.3px;border-top:1px solid var(--line);padding-top:23px;margin:26px 0 13px}
.article h2:first-child,.article h3:first-child{border-top:none;margin-top:6px;padding-top:0}
.article p,.article li{font-size:15.5px;line-height:1.7}
.article p{margin:11px 0}
.article strong{color:#203e35}
.article table{font-size:13.5px;border:1px solid var(--line);border-radius:10px;background:#fff;max-width:100%}
.article td,.article th{padding:11px 12px;line-height:1.55}
.article th{background:#e7eee6;color:#244c49}
.article blockquote{border-left:3px solid #a6bdb0;background:#f0f3ed;border-radius:0 8px 8px 0;padding:5px 14px}
.related{margin-top:25px}
.info{background:#e7eee6;border-radius:12px;color:#315247}
.source{line-height:1.5}
.bottom-nav{height:calc(74px + env(safe-area-inset-bottom));background:#fffefcfb;box-shadow:0 -4px 18px #244c4910;padding:9px 8px env(safe-area-inset-bottom)}
.bottom-nav button{min-width:65px;gap:4px;font-size:13px;line-height:1.15;padding:2px 6px;border-radius:8px}
.bottom-nav .line-icon{width:23px;height:23px}
.bottom-nav button span{font-size:11px;letter-spacing:.01em}
.bottom-nav button.active{color:var(--teal)}
.bottom-nav button.active .line-icon{stroke-width:2.3}
@media(min-width:650px){.mast{padding:25px 30px 32px}.content{padding:26px 30px 48px}.grid{grid-template-columns:repeat(3,minmax(0,1fr))}.category{min-height:145px}}
@media(max-width:360px){.category{padding:14px 12px}.category b{font-size:12.75px}.grid{gap:9px}}
@media(prefers-reduced-motion:reduce){.category{transition:none}}

/* Optional Home-screen install action (hidden in installed standalone mode) */
.install-home{display:flex;flex-direction:column;align-items:center;gap:10px;margin:28px auto 0;text-align:center}
.install-home[hidden],.install-tip[hidden]{display:none!important}
.install-btn{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-width:165px;min-height:44px;padding:11px 20px;border:0;border-radius:13px;background:var(--teal);color:#fff;font-size:14px;font-weight:650;box-shadow:0 3px 10px #244c492a}
.install-btn:hover{background:var(--deep)}
.install-btn .line-icon{width:19px;height:19px}
.install-tip{max-width:360px;margin:0;padding:11px 14px;background:#e7eee6;border-radius:10px;color:#315247;font-size:12.5px;line-height:1.5}
@media(display-mode:standalone){.install-home{display:none}}
