*{box-sizing:border-box}
/* Font stack = Tailwind v4 default (what the SPA renders with) — keep identical. */
body{margin:0;font:16px/1.75 ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";color:#1e293b;background:#fff}
.wrap{max-width:760px;margin:0 auto;padding:0 20px}
h1{font-size:28px;font-weight:700;line-height:1.35;margin:28px 0 8px}
h2{font-size:20px;font-weight:700;margin:28px 0 10px}
a{color:#0d9488}
/* Header — clone of the SPA LandingHeader (slate nav, teal CTA, 1280px rail) */
header.site{border-bottom:1px solid #e2e8f0}
.hwrap{max-width:1280px;margin:0 auto;display:flex;align-items:center;justify-content:space-between;gap:16px;height:80px;padding:0 20px}
@media (min-width:1024px){.hwrap{padding:0 80px}} /* SPA: px-5 lg:px-20 */
.brand{display:flex;align-items:center;gap:10px;font-weight:600;font-size:22px;color:#0f172a;text-decoration:none}
.brand-logo{height:36px;width:auto}
.hnav{display:flex;align-items:center;gap:36px}
.hnav a{font-size:15px;font-weight:500;color:#64748b;text-decoration:none}
.hnav a:hover{color:#334155}
.btn{display:inline-block;background:#0d9488;color:#fff;font-weight:600;padding:10px 24px;border-radius:8px;text-decoration:none;font-size:14px}
.btn:hover{background:#0f766e}
.hcta{white-space:nowrap;display:inline-flex;align-items:center;gap:8px}
.hidden{display:none!important}
@media (max-width:1023px){.hnav{display:none}}
.tag{font-size:13px;color:#64748b;text-decoration:none}
/* Blog category nav bar (Grammarly-style secondary bar). Wraps rather than
   scroll-clips so hover dropdowns are never cut off; dropdowns are gated to
   pointer devices so touch never gets a stuck-open menu. */
.blognav{border-bottom:1px solid #e2e8f0;background:#fff}
.blognav-wrap{max-width:1280px;margin:0 auto;display:flex;flex-wrap:wrap;align-items:center;gap:2px 28px;padding:0 20px;min-height:56px}
@media(min-width:1024px){.blognav-wrap{padding:0 80px}}
.blognav-brand{font-size:20px;font-weight:700;color:#0f172a;text-decoration:none;white-space:nowrap;margin-right:8px}
.blognav-item{position:relative}
.blognav-top{display:inline-flex;align-items:center;gap:4px;font-size:15px;font-weight:500;color:#334155;text-decoration:none;white-space:nowrap;padding:15px 0}
.blognav-top:hover{color:#0d9488}
.blognav-chev{transition:transform .15s ease}
.blognav-drop{position:absolute;left:0;top:100%;min-width:184px;background:#fff;border:1px solid #e2e8f0;border-radius:10px;box-shadow:0 10px 30px rgba(15,23,42,.10);padding:6px;display:none;z-index:30}
.blognav-drop a{display:block;padding:8px 12px;font-size:14px;color:#334155;text-decoration:none;border-radius:6px;white-space:nowrap}
.blognav-drop a:hover{background:#f1f5f9;color:#0d9488}
@media(hover:hover){
.blognav-item:hover .blognav-drop{display:block}
.blognav-item:hover .blognav-chev{transform:rotate(180deg)}
}
/* Post listing (index + category pages) — Grammarly-style rows: a color tile on
   the left, title/excerpt/date on the right, thin rules between rows. Tile color
   variants .tile-0…4 are picked deterministically in pages.rs (slug hash) so a
   post keeps its color across regens. */
.wrap.wide{max-width:1080px}
.list-title{text-align:center;margin:16px 0 6px;font-size:32px}
.list{display:flex;flex-direction:column;margin:28px 0 48px}
.row{display:flex;align-items:flex-start;gap:44px;padding:34px 0;border-top:1px solid #eef2f7}
.row:last-child{border-bottom:1px solid #eef2f7}
.tile{position:relative;flex:0 0 360px;aspect-ratio:21/11;border-radius:10px;display:flex;align-items:center;padding:20px 26px;overflow:hidden;text-decoration:none}
.tile-t{position:relative;z-index:1;max-width:62%;font-size:19px;line-height:1.45;font-weight:700;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.tile-b{position:absolute;right:34px;top:50%;transform:translateY(-50%);width:86px;height:86px;border-radius:50%;border-bottom-left-radius:0}
.tile-0{background:#0d9488}.tile-0 .tile-t{color:#fff}.tile-0 .tile-b{background:#fff}
.tile-1{background:#475569}.tile-1 .tile-t{color:#fff}.tile-1 .tile-b{background:#2dd4bf}
.tile-2{background:#1e1b4b}.tile-2 .tile-t{color:#fff}.tile-2 .tile-b{background:#5eead4}
.tile-3{background:#0f172a}.tile-3 .tile-t{color:#fff}.tile-3 .tile-b{background:#d9f99d}
.tile-4{background:#2dd4bf}.tile-4 .tile-t{color:#134e4a}.tile-4 .tile-b{background:#fff}
.row-body{flex:1;min-width:0}
.row-body h2{margin:-3px 0 8px;font-size:21px;line-height:1.45}
.row-body h2 a{color:#0f172a;text-decoration:none}
.row-body h2 a:hover{color:#0d9488}
.row-body .sum{margin:0 0 10px;color:#64748b;font-size:16px;line-height:1.65;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.row-body .tag{margin:0}
@media(max-width:767px){
.row{flex-direction:column;align-items:stretch;gap:16px;padding:24px 0}
.tile{flex:auto;width:100%}
}
/* Post detail — centered title, author rail left (sticky), generated hero
   banner (reuses the .tile-N palette + watermark words), reading typography. */
.post-title{text-align:center;font-size:34px;line-height:1.4;margin:36px auto 30px;max-width:840px}
.post-grid{display:grid;grid-template-columns:150px minmax(0,1fr);gap:48px;margin-bottom:48px}
.rail{position:sticky;top:32px;align-self:start;display:flex;flex-direction:column;gap:6px}
.rail-avatar{width:60px;height:60px;border:2px solid #5eead4;border-radius:50%;padding:6px;margin-bottom:6px}
.rail-name{margin:0;font-weight:700;font-size:15px;color:#0f172a}
.rail-date{margin:0;font-size:13px;color:#64748b;line-height:1.6}
.rail-cat{margin-top:8px;font-size:12px;font-weight:700;letter-spacing:1px;color:#334155;text-decoration:none}
.rail-cat:hover{color:#0d9488}
.hero{position:relative;aspect-ratio:21/9;border-radius:12px;overflow:hidden}
.hero .tile-b{width:132px;height:132px;right:12%}
.hero-word{position:absolute;font-weight:800;font-size:clamp(30px,6vw,64px);line-height:1;letter-spacing:2px;color:rgba(255,255,255,.35);user-select:none}
.post .body{margin-top:32px;font-size:17px;line-height:1.9;color:#334155}
.post .body h2{font-size:24px;margin:40px 0 14px;color:#0f172a}
.post .body p{margin:16px 0}
.post .body ol{list-style:none;counter-reset:li;padding-left:0;margin:18px 0}
.post .body ol>li{counter-increment:li;position:relative;padding-left:42px;margin:14px 0}
.post .body ol>li::before{content:counter(li);position:absolute;left:0;top:4px;width:26px;height:26px;border-radius:50%;background:#0d9488;color:#fff;font-size:14px;font-weight:700;display:flex;align-items:center;justify-content:center}
@media(max-width:900px){
.post-grid{display:block}
.rail{position:static;flex-direction:row;flex-wrap:wrap;align-items:center;gap:10px 14px;margin-bottom:20px}
.rail-avatar{width:44px;height:44px;margin-bottom:0}
.rail-date br{display:none}
.rail-cat{margin-top:0}
}
.post .body pre{background:#f8fafc;border:1px solid #e2e8f0;border-radius:8px;padding:12px 16px;overflow-x:auto;font-size:14px}
.post .body code{background:#f1f5f9;border-radius:4px;padding:1px 5px;font-size:.92em}
.post .body pre code{background:none;padding:0}
.post .body blockquote{margin:16px 0;padding:8px 16px;border-left:4px solid #e2e8f0;color:#475569}
.post .body img{max-width:100%;height:auto;display:block;margin:16px auto;border-radius:8px}
.post .body table{border-collapse:collapse;width:100%;font-size:15px}
.post .body th,.post .body td{border:1px solid #e2e8f0;padding:8px 12px;text-align:left}
.cta{display:flex;align-items:center;justify-content:space-between;gap:24px;margin:44px 0;padding:20px 26px;background:#f8fafc;border:1px solid #0d9488;border-radius:12px}
.cta-title{margin:0;font-weight:700;font-size:17px;color:#0f172a}
.cta-sub{margin:2px 0 0;font-size:14px;color:#64748b}
.cta .btn{white-space:nowrap}
@media(max-width:640px){.cta{flex-direction:column;align-items:flex-start}}
/* Related articles — tile-card grid (reference: 3-up, tile + category + title). */
.related h2{margin:48px 0 20px}
.rel-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:32px 24px}
.rel-card{display:flex;flex-direction:column;text-decoration:none}
.rel-card .tile{flex:none;width:100%}
.rel-card .tile-t{font-size:16px;line-height:1.5}
.rel-card .tile-b{width:56px;height:56px;right:22px}
.rel-tag{margin-top:12px;font-size:13px;color:#64748b}
.rel-title{margin-top:2px;font-size:17px;font-weight:700;line-height:1.5;color:#0f172a}
.rel-card:hover .rel-title{color:#0d9488}
@media(max-width:900px){.rel-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:560px){.rel-grid{grid-template-columns:1fr}}
/* Listing pager — boxed buttons, centered; current page gets a tinted fill. */
.pager{display:flex;justify-content:center;gap:10px;margin:8px 0 56px}
.pbtn{display:inline-flex;align-items:center;justify-content:center;min-width:46px;padding:10px 18px;border:1px solid #0d9488;border-radius:8px;color:#0f766e;font-weight:600;font-size:16px;text-decoration:none}
a.pbtn:hover{background:#f0fdfa}
.pcur{background:#ccfbf1}
/* Footer — clone of the SPA Footer (slate-50 sitemap: brand, link columns, QR, ICP).
   Hidden on phones, mirroring the SPA's form-factor gate. */
footer.site{border-top:1px solid #e2e8f0;background:#f8fafc;margin-top:40px;scroll-margin-top:80px}
.fwrap{max-width:1280px;margin:0 auto;display:flex;flex-direction:column;gap:40px;padding:60px 40px 40px}
.fcols{display:flex;flex-wrap:wrap;gap:40px;justify-content:space-between}
.fbrand{display:flex;flex-direction:column;gap:16px;max-width:280px}
.fbrand-row{display:flex;align-items:center;gap:10px;font-weight:700;font-size:18px;color:#0f172a}
.fbrand-row .brand-logo{height:28px}
.fbrand p{margin:0;font-size:14px;line-height:1.5;color:#64748b}
.fcol,.fcontact{display:flex;flex-direction:column;gap:14px}
.fcol h4,.fcontact h4{margin:0;font-size:13px;font-weight:600;letter-spacing:1px;color:#0f172a}
.fcol a{font-size:14px;color:#64748b;text-decoration:none}
.fcol a:hover{color:#334155}
.fcontact{align-items:flex-start}
.fqr{display:flex;align-items:center;justify-content:center;height:140px;width:140px;border:1px solid #e2e8f0;background:#fff;border-radius:8px;padding:10px}
.fqr img{border-radius:4px}
.fcontact span{font-size:12px;color:#94a3b8}
.fdivider{height:1px;width:100%;background:#e2e8f0}
.flegal{display:flex;flex-direction:column;align-items:center;gap:8px;font-size:13px;color:#94a3b8}
.flegal a{color:#94a3b8;text-decoration:none}
.flegal a:hover{color:#475569}
@media (max-width:767px){footer.site{display:none}}
