/* Guide typography and restrained glass surfaces in Ricaora's app palette. */
:root{--ink:#122c42;--muted:#4d6477;--blue:#0877cb;--cyan:#159579;--line:rgba(65,104,136,.15);--soft:rgba(218,234,245,.56);--surface:rgba(255,255,255,.62);--glass:linear-gradient(145deg,rgba(255,255,255,.78),rgba(255,255,255,.43));--rim:rgba(255,255,255,.85);--shadow:0 5px 18px rgba(35,69,95,.045),inset 0 1px 0 var(--rim);color-scheme:light}
html[data-theme=dark]{--ink:#eef5fb;--muted:#b0c2d1;--blue:#84ceff;--cyan:#75dbc1;--line:rgba(171,204,227,.16);--soft:rgba(58,91,116,.4);--surface:rgba(34,58,77,.74);--glass:linear-gradient(145deg,rgba(42,69,91,.78),rgba(30,53,71,.62));--rim:rgba(191,217,235,.13);--shadow:0 6px 22px rgba(0,0,0,.08),inset 0 1px 0 var(--rim);color-scheme:dark}
body{font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:radial-gradient(ellipse at 100% 0,rgba(77,177,171,.08),transparent 45%),radial-gradient(ellipse at 0 18%,rgba(75,148,217,.09),transparent 42%),#f2f6fa;background-attachment:fixed;letter-spacing:-.01em}
html[data-theme=dark] body{background:radial-gradient(ellipse at 100% 0,rgba(70,146,132,.075),transparent 45%),#182e40}
a{color:var(--blue);text-underline-offset:4px}h1,h2,h3,strong,summary,th{color:var(--ink)}.wrap{width:min(1100px,calc(100% - 40px))}
.site-head{padding:12px 0;background:var(--surface);border-bottom:1px solid var(--line);backdrop-filter:blur(20px) saturate(125%);-webkit-backdrop-filter:blur(20px) saturate(125%)}.site-head .wrap{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:nowrap}.brand{font-size:16px;letter-spacing:.07em;gap:9px;flex-shrink:0}.brand img{width:32px;height:32px;border-radius:10px}.nav{display:flex;align-items:center;gap:20px;flex-wrap:nowrap}.nav a{font-size:13px;min-height:44px;display:inline-flex;align-items:center}.theme-toggle{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;flex-shrink:0;padding:0;border:1px solid var(--line);border-radius:14px;background:var(--glass);color:var(--ink);cursor:pointer;box-shadow:inset 0 1px 0 var(--rim)}.theme-toggle svg{width:18px;height:18px}.theme-toggle[hidden]{display:none}
.hero{padding:38px 0 32px}.hero .wrap{padding:0;background:none;border:0;box-shadow:none;backdrop-filter:none}.hero h1{max-width:830px;font-size:clamp(2rem,4.5vw,3.6rem);line-height:1.1;letter-spacing:-.045em;font-weight:750;margin:14px 0 16px}.eyebrow{color:var(--blue);font-size:.68rem;letter-spacing:.11em;font-weight:700}.lede{font-size:1.02rem;line-height:1.7;max-width:650px;margin:0}.updated{font-size:.78rem;margin:18px 0 0}.hero>.wrap>.cta{margin-top:22px}.breadcrumbs{display:flex;align-items:center;flex-wrap:wrap;gap:8px;font-size:.78rem;color:var(--muted);margin:0 0 20px}
.hub-intro{display:grid;grid-template-columns:minmax(0,1fr) 160px;gap:48px;align-items:center}.hub-intro h1{font-size:clamp(2.3rem,4.8vw,3.8rem);max-width:650px}.hub-art{width:160px;height:auto;opacity:.85;color:var(--blue);justify-self:end}.hero-links{display:flex;align-items:center;flex-wrap:wrap;gap:18px;margin-top:18px}.hero-links a{font-size:.88rem;font-weight:650;min-height:36px;display:inline-flex;align-items:center;text-decoration:none;margin:0}.hub-meta{font-size:.75rem;color:var(--muted);border-left:1px solid var(--line);padding-left:18px}
.cta{display:inline-flex;align-items:center;justify-content:center;min-height:46px;padding:11px 18px;border-radius:14px;border:1px solid transparent;color:white;background:#0877cb;box-shadow:none;font-size:.92rem;font-weight:650;letter-spacing:0;text-decoration:none}.cta:hover{background:#0765ac}
.card{background:var(--glass);border:1px solid var(--line);border-radius:20px;padding:clamp(22px,3vw,30px);box-shadow:var(--shadow);backdrop-filter:blur(18px) saturate(125%);-webkit-backdrop-filter:blur(18px) saturate(125%)}.grid{grid-template-columns:minmax(0,1fr) 260px;gap:22px}.grid article{min-width:0}article h2{font-size:1.45rem;line-height:1.3}article p,article li{font-size:.98rem;line-height:1.8}.toc{top:20px}.toc h2{font-size:1.03rem}.toc a{font-weight:550;font-size:.9rem}.toc ul{list-style:none;padding:0}.toc li+li{margin-top:12px}.example,.formula{background:var(--soft);border-color:var(--line);color:var(--ink)}.formula{border-left:3px solid var(--cyan);font-size:.95rem}.next-step{border-color:var(--line)}.next-step h2{margin-top:0}.site-foot{background:var(--surface);padding:24px 0;font-size:.8rem}.skip-link{background:var(--surface);color:var(--ink)}a:focus-visible,button:focus-visible,input:focus-visible,summary:focus-visible{outline:3px solid var(--blue);outline-offset:4px}
.guide-toolbar{display:flex;align-items:center;justify-content:space-between;gap:22px;margin:0 0 16px;flex-wrap:wrap}.guide-toolbar h2{font-size:1.18rem;line-height:1.35;letter-spacing:-.025em;margin:0;font-weight:650}.guide-search{display:flex;align-items:center;gap:10px;min-width:275px;min-height:46px;padding:0 14px;border:1px solid var(--line);border-radius:14px;background:var(--surface);box-shadow:inset 0 1px 0 var(--rim);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px)}.guide-search input{width:100%;min-width:0;border:0;background:transparent;color:var(--ink);font:inherit;font-size:.88rem;padding:12px 0}.guide-search input::placeholder{color:var(--muted)}.guide-search>svg{width:17px;height:17px;flex-shrink:0;color:var(--muted)}
.guide-filters{display:flex;gap:5px;flex-wrap:wrap;margin-bottom:14px}.guide-filters button{font:550 12px system-ui;letter-spacing:0;min-height:44px;padding:9px 13px;background:transparent;color:var(--muted);border:1px solid transparent;border-radius:12px;cursor:pointer}.guide-filters button[aria-pressed=true]{background:var(--soft);color:var(--ink);border-color:var(--line);box-shadow:inset 0 1px 0 var(--rim)}.guide-count{font-size:.74rem;color:var(--muted);margin:0 0 14px}
.guide-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.guide-list .guide-tile{margin:0;display:flex;flex-direction:column;min-width:0;transition:border-color .15s,transform .15s}.guide-tile:hover{transform:translateY(-2px);border-color:rgba(8,119,203,.35)}.guide-tile[hidden]{display:none}.guide-tile-top{display:flex;align-items:center;justify-content:space-between;gap:10px}.guide-symbol{display:grid;place-items:center;width:36px;height:36px;border-radius:12px;background:var(--soft);color:var(--blue)}.guide-symbol svg{width:19px;height:19px}.guide-category{color:var(--muted);font-size:.68rem;font-weight:550}.guide-tile h3{font-size:1.12rem;line-height:1.35;margin:16px 0 9px;letter-spacing:-.025em;font-weight:650}.guide-tile h3 a{color:var(--ink);text-decoration:none}.guide-tile p{font-size:.88rem;line-height:1.65;margin:0 0 20px}.guide-tile-bottom{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:auto;padding-top:12px;border-top:1px solid var(--line)}.guide-tile-bottom span{color:var(--muted);font-size:.7rem}.guide-tile-bottom a{font-size:.76rem;font-weight:600;text-decoration:none;min-height:30px;display:inline-flex;align-items:center;gap:6px}.hub-feature{margin-top:28px;display:grid;grid-template-columns:1fr auto;gap:24px;align-items:center}.hub-feature h2{font-size:1.4rem}.hub-feature p{margin:0;font-size:.92rem}.hub-feature .cta{margin:0;white-space:nowrap}.empty-guides{padding:26px}.guide-search[hidden],.guide-filters[hidden]{display:none}
body .ra-settings{position:static;display:block;margin:0 auto 24px;min-height:44px;height:auto;padding:12px 18px;font-size:12px;color:var(--muted);background:var(--surface);border:1px solid var(--line);box-shadow:none;border-radius:12px}body .ra-consent{bottom:calc(16px + env(safe-area-inset-bottom));max-height:calc(100dvh - 32px)}
@media(max-width:900px){.guide-list{grid-template-columns:repeat(2,minmax(0,1fr))}.grid{grid-template-columns:minmax(0,1fr) 230px}}
@media(max-width:760px){.wrap{width:calc(100% - 36px)}.site-head{padding:8px 0}.site-head .wrap{gap:10px}.brand{font-size:14px;gap:7px}.brand img{width:28px;height:28px}.nav{gap:10px}.nav a{font-size:12px}.theme-toggle{width:44px;height:44px;border-radius:13px}.hero{padding:26px 0 28px}.hero h1{font-size:2rem;line-height:1.12;margin:12px 0 14px}.hub-intro{grid-template-columns:1fr;gap:0}.hub-art{display:none}.hub-intro h1{font-size:2.3rem;max-width:320px}.hero .lede{font-size:.94rem;line-height:1.65}.hero-links{margin-top:14px;gap:12px}.hero-links a{font-size:.82rem}.hub-meta{font-size:.7rem;padding-left:12px}.guide-toolbar{gap:12px;margin-bottom:12px}.guide-toolbar h2{font-size:1.08rem}.guide-search{width:100%;min-width:0}.guide-filters{flex-wrap:nowrap;overflow-x:auto;margin:0 -18px 12px;padding:0 18px 3px;scrollbar-width:thin;scrollbar-color:var(--line) transparent}.guide-filters button{flex-shrink:0;white-space:nowrap;padding:8px 12px;font-size:12px}.grid{grid-template-columns:1fr}.toc{position:static;order:-1}.toc ul{display:flex;flex-wrap:wrap;gap:8px 15px}.toc li+li{margin:0}.hub-feature{grid-template-columns:1fr}.hub-feature .cta{justify-self:start}.site-foot .wrap{flex-direction:column;align-items:flex-start}.guide-tile:hover{transform:none}}
@media(max-width:520px){.guide-list{grid-template-columns:1fr;gap:12px}.guide-tile{padding:20px}.guide-tile h3{font-size:1.1rem}.guide-tile p{font-size:.88rem;margin-bottom:16px}.card{border-radius:18px}.brand{letter-spacing:.04em}.nav{gap:8px}}
@media(max-width:359px){.brand span{font-size:12px}.brand img{width:24px;height:24px}.nav a{font-size:11px}.site-head .wrap{gap:6px}.nav{gap:7px}.hub-meta{border-left:0;padding:0;width:100%}}
@media(prefers-reduced-motion:reduce){.guide-tile{transition:none}.guide-tile:hover{transform:none}}
@media(prefers-reduced-transparency:reduce){:root{--glass:#f8fafc;--surface:#f8fafc}html[data-theme=dark]{--glass:#263e52;--surface:#263e52}}

/* A visible reading recommendation and original illustrations add editorial depth. */
.hub-intro{grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);gap:34px;align-items:center}.hub-heading h1{font-size:clamp(2.2rem,4.5vw,3.6rem)}.hub-heading .lede{max-width:410px}.hero-links .cta{color:#fff;min-height:46px;padding:11px 17px;font-size:.88rem}.hero-links>a:not(.cta){font-size:.83rem}.hero-links{gap:16px}
.featured-guide{display:grid;grid-template-columns:minmax(0,.95fr) minmax(0,1.05fr);gap:20px;align-items:center;padding:26px;border-radius:24px;background:linear-gradient(135deg,rgba(255,255,255,.85),rgba(228,246,245,.62));box-shadow:0 12px 34px rgba(35,89,116,.08),inset 0 1px 0 rgba(255,255,255,.9);border-color:rgba(115,175,193,.22)}.featured-art{align-self:stretch;display:grid;place-items:center;border-radius:18px;background:linear-gradient(150deg,rgba(83,166,222,.12),rgba(75,205,161,.09));overflow:hidden}.guide-cover{display:block;width:100%;height:auto;color:var(--blue)}.featured-art .guide-cover{width:100%;min-height:160px}.feature-label{display:block;font-size:.66rem;font-weight:700;text-transform:uppercase;letter-spacing:.08em;color:var(--cyan);margin-bottom:11px}.featured-copy h2{font-size:1.4rem;line-height:1.28;letter-spacing:-.035em;margin:0 0 10px;font-weight:700}.featured-copy h2 a{color:var(--ink);text-decoration:none}.featured-copy p{font-size:.84rem;line-height:1.65;margin:0 0 12px}.feature-link{display:inline-flex;align-items:center;gap:6px;font-size:.8rem;font-weight:650;min-height:36px;text-decoration:none}.featured-time{display:block;font-size:.67rem;color:var(--muted);margin-top:2px}.tile-visual{height:130px;display:grid;place-items:center;border-radius:14px;background:linear-gradient(135deg,rgba(207,232,247,.48),rgba(218,242,233,.3));margin-bottom:17px;overflow:hidden}.tile-visual .guide-cover{height:100%;width:100%;max-width:290px}.guide-tile .guide-symbol{width:28px;height:28px;border-radius:9px}.guide-tile .guide-symbol svg{width:16px;height:16px}.guide-tile h3{margin-top:12px}.guide-filters button{background:var(--glass);border-color:var(--line);border-radius:14px}.guide-filters button[aria-pressed=true]{background:#0877cb;color:white;border-color:#0877cb}.guide-filters{gap:8px}
html[data-theme=dark] .featured-guide{background:linear-gradient(135deg,rgba(49,83,108,.82),rgba(34,68,78,.64));border-color:rgba(147,202,217,.2);box-shadow:0 12px 30px rgba(0,0,0,.1),inset 0 1px 0 rgba(191,217,235,.13)}html[data-theme=dark] .featured-art{background:linear-gradient(150deg,rgba(87,159,215,.1),rgba(62,175,137,.06))}html[data-theme=dark] .tile-visual{background:linear-gradient(135deg,rgba(105,167,201,.1),rgba(94,173,147,.06))}
@media(max-width:1000px){.hub-intro{grid-template-columns:1fr 1.2fr;gap:24px}.featured-guide{gap:14px;padding:20px}.featured-copy h2{font-size:1.2rem}}
@media(max-width:760px){.hub-intro{grid-template-columns:1fr;gap:22px}.hub-heading h1{max-width:none;font-size:2.3rem;margin:12px 0}.hub-heading .lede{max-width:340px;font-size:.94rem}.hero{padding-top:24px;padding-bottom:26px}.hero-links{margin-top:16px;gap:14px}.hero-links .cta{min-height:44px;padding:10px 14px;font-size:.8rem}.hero-links>a:not(.cta){font-size:.78rem}.featured-guide{grid-template-columns:100px minmax(0,1fr);padding:18px;gap:15px;border-radius:22px}.featured-art{border-radius:14px}.featured-art .guide-cover{width:190px;max-width:none;min-height:0;transform:translateX(-10px)}.featured-copy h2{font-size:1.15rem;line-height:1.25;margin-bottom:7px}.feature-label{font-size:.59rem;letter-spacing:.045em;margin-bottom:8px}.featured-copy p{font-size:.77rem;line-height:1.5;margin-bottom:5px}.feature-link{font-size:.75rem;min-height:32px}.featured-time{font-size:.64rem}.tile-visual{height:125px;margin-bottom:15px}.guide-filters button{border-radius:13px}}
@media(max-width:359px){.featured-guide{grid-template-columns:82px 1fr;gap:12px;padding:15px}.featured-copy h2{font-size:1.08rem}.feature-label{font-size:.55rem}.featured-art .guide-cover{transform:translateX(-16px)}}
@media(max-width:760px){.featured-art .guide-cover{width:100%;transform:none}}

/* Fit the featured illustration to its portrait panel and tighten the mobile intro. */
.featured-art .guide-cover{height:210px;min-height:0;width:100%;transform:none}
@media(max-width:760px){.hub-intro{gap:18px}.hub-heading h1{font-size:2.1rem;margin:9px 0 10px}.hub-heading .lede{font-size:.9rem;line-height:1.55}.hero{padding-top:19px;padding-bottom:22px}.hero-links{margin-top:12px}.featured-guide{grid-template-columns:108px minmax(0,1fr);gap:14px}.featured-art .guide-cover{height:160px;width:100%;transform:none}}
@media(max-width:359px){.featured-guide{grid-template-columns:88px minmax(0,1fr)}.featured-art .guide-cover{height:160px}}

/* Calculator action uses the same brand gradient as the app. */
.hero-links .calculator-cta{background:linear-gradient(112deg,#087dff 0%,#06c4ed 54%,#18e58c 100%);color:#fff;gap:6px;border-color:transparent}
.hero-links .calculator-cta:hover{filter:brightness(.96)}

/* Compact editorial guide hub: one glass surface per card. */
.guide-hub .hero-links .cta:first-child{background:linear-gradient(112deg,#087dff 0%,#06c4ed 54%,#18e58c 100%);color:#fff}
.guide-hub .hero-links .calculator-cta{background:var(--surface);color:var(--ink);border:1px solid var(--line);box-shadow:none;font-weight:600}
.guide-hub .hero-links .calculator-cta:hover{background:var(--soft);filter:none}
.guide-hub .featured-guide{box-shadow:var(--shadow);padding:22px;gap:18px}
.guide-hub .featured-art{background:none;border-radius:0}
.guide-hub .tile-visual{background:none;border-radius:0;height:105px;margin:0 0 12px}
.guide-hub .guide-tile{padding:22px;border-radius:22px}
.guide-hub .guide-tile-top{justify-content:flex-start}
.guide-hub .guide-category{font-size:.68rem;font-weight:600;color:var(--cyan)}
.guide-hub .guide-tile h3{margin:8px 0 10px;font-size:1.16rem;line-height:1.3}
.guide-hub .guide-tile p{font-size:.84rem;line-height:1.55;margin:0 0 14px}
.guide-hub .guide-tile-bottom{padding-top:10px}
.guide-hub .guide-search{box-shadow:none}
@media(max-width:760px){
.guide-hub .hero-links{gap:10px}
.guide-hub .hero-links .cta{font-size:.76rem;padding:10px 12px}
.guide-hub .featured-guide{padding:17px;grid-template-columns:86px minmax(0,1fr);gap:16px}
.guide-hub .featured-art .guide-cover{height:142px}
.guide-hub .feature-label{font-size:.56rem}
.guide-hub .featured-copy h2{font-size:1.08rem}
.guide-hub .guide-list{gap:12px}
.guide-hub .guide-tile{display:grid;grid-template-columns:82px minmax(0,1fr);gap:0 15px;padding:18px;border-radius:20px}
.guide-hub .tile-visual{grid-column:1;grid-row:1/5;height:100%;min-height:95px;margin:0;align-self:center}
.guide-hub .tile-visual .guide-cover{height:auto;width:100%;overflow:visible}
.guide-hub .guide-tile-top{grid-column:2;grid-row:1}
.guide-hub .guide-tile h3{grid-column:2;grid-row:2;font-size:1.05rem;margin:6px 0 8px}
.guide-hub .guide-tile p{grid-column:2;grid-row:3;font-size:.78rem;line-height:1.5;margin:0 0 10px}
.guide-hub .guide-tile-bottom{grid-column:2;grid-row:4;gap:7px;flex-wrap:wrap;padding-top:8px}
.guide-hub .guide-tile-bottom a{font-size:.73rem;min-height:30px}
.guide-hub .guide-tile-bottom span{font-size:.63rem}
.guide-hub .guide-search{min-height:46px}
.guide-hub .guide-filters button{padding:7px 11px;border-radius:12px}
}
@media(max-width:359px){.guide-hub .guide-tile{grid-template-columns:64px minmax(0,1fr);gap:0 12px}}

.guide-hub .guide-tile[hidden]{display:none}

/* Balanced guide actions with consistent dimensions in both themes. */
.guide-hub .hero-links{gap:12px;align-items:stretch}
.guide-hub .hero-links .cta{box-sizing:border-box;display:inline-flex;justify-content:center;align-items:center;gap:7px;height:46px;min-height:46px;padding:0 18px;border:1px solid transparent;border-radius:14px;font-size:.82rem;line-height:1;font-weight:650;white-space:nowrap;box-shadow:none;background-repeat:no-repeat}
.guide-hub .hero-links .cta:first-child{background:linear-gradient(112deg,#087acf 0%,#078fb3 56%,#11977c 100%);color:#fff}
.guide-hub .hero-links .cta:first-child:hover{background:linear-gradient(112deg,#076cba 0%,#07819f 56%,#0f896f 100%)}
.guide-hub .hero-links .calculator-cta{background:var(--surface);color:var(--ink);border-color:var(--line);box-shadow:none}
.guide-hub .hero-links .calculator-cta:hover{background:var(--soft);filter:none}
.guide-hub .hero-links .cta:focus-visible{outline:2px solid var(--blue);outline-offset:3px}
@media(max-width:760px){.guide-hub .hero-links{gap:10px}.guide-hub .hero-links .cta{flex:1 1 0;min-width:0;height:46px;min-height:46px;padding:0 10px;font-size:.76rem;border-radius:14px}}
@media(max-width:359px){.guide-hub .hero-links{flex-direction:column}.guide-hub .hero-links .cta{flex:none;width:100%}}

/* Illustration beside the heading; reading content spans the whole mobile card. */
@media(max-width:760px){
.guide-hub .guide-tile{grid-template-columns:92px minmax(0,1fr);column-gap:14px;row-gap:0;padding:16px;align-content:start}
.guide-hub .tile-visual{grid-column:1;grid-row:1/3;height:86px;min-height:0;margin:0;align-self:center;overflow:visible}
.guide-hub .tile-visual .guide-cover{width:100%;height:86px;max-width:none;overflow:visible}
.guide-hub .guide-tile-top{grid-column:2;grid-row:1;align-self:end;min-width:0}
.guide-hub .guide-tile h3{grid-column:2;grid-row:2;align-self:start;margin:6px 0 0;font-size:1.05rem;line-height:1.3;min-width:0}
.guide-hub .guide-tile p{grid-column:1/-1;grid-row:3;margin:12px 0;font-size:.8rem;line-height:1.55}
.guide-hub .guide-tile-bottom{grid-column:1/-1;grid-row:4;margin-top:0;justify-content:space-between;align-items:center;padding-top:8px}
}
@media(max-width:359px){.guide-hub .guide-tile{grid-template-columns:76px minmax(0,1fr);column-gap:12px}.guide-hub .tile-visual,.guide-hub .tile-visual .guide-cover{height:76px}}

/* The calculator button matches the app's original brand gradient. */
.guide-hub .hero-links .calculator-cta,
.guide-hub .hero-links .calculator-cta:hover{
background:linear-gradient(112deg,#087dff 0%,#06c4ed 54%,#18e58c 100%);
color:#fff;border-color:transparent;box-shadow:none;filter:none;background-repeat:no-repeat
}
