/* RAVIX | Divan Jan V10.0 — brand layer: all resources are bundled locally.
   Existing functional stylesheet is retained; this file intentionally overrides visuals only. */
@font-face{font-family:RavixVazir;src:url('fonts/vazir.ttf') format('truetype');font-style:normal;font-weight:100 900;font-display:swap}
@font-face{font-family:RavixNastaliq;src:url('fonts/nastaliq.ttf') format('truetype');font-style:normal;font-weight:400;font-display:swap}
:root{
 --bg:#f5f7ff;--paper:#fff;--paper2:#edf2ff;--ink:#162752;--body:#495878;--muted:#7885a0;
 --gold:#3155d6;--gold2:#8aaaff;--line:#e0e7f7;--deep:#0e2470;--red:#3362ec;
 --shadow:0 14px 43px rgba(34,66,153,.075);--ui:RavixVazir,Tahoma,Arial,sans-serif;
 --poetry:RavixNastaliq,'DimaShekasteh',serif;--emerald:#264ccf;--emerald2:#477bff;
 --dj-jade:#2449cc;--dj-jade-dark:#1b337f;--dj-gold:#406df1;--dj-paper:#fff;
 --dj-ink:#1c2b55;--dj-muted:#677999;--dj-line:#e0e7f7;
 --gold-grad:linear-gradient(135deg,#2667ff,#8cafff 55%,#3358c9);
}
html[data-theme=night]{
 --bg:#0b1430;--paper:#131f41;--paper2:#1b2b55;--ink:#eef3ff;--body:#c3cee7;
 --muted:#9db0db;--gold:#88aaff;--gold2:#6993ff;--line:#30416a;--deep:#1e3c95;
 --red:#7da3ff;--shadow:0 16px 55px rgba(0,0,0,.3);--dj-jade:#b0c5ff;
 --dj-jade-dark:#eef3ff;--dj-ink:#eef3ff;--dj-muted:#9fb1d8;--dj-paper:#142144;
 --dj-line:#30416a;--emerald:#b3c6ff;--emerald2:#6e97ff;
}
html{scroll-padding-top:115px;max-width:100%}
body,body *{font-family:var(--ui)}
body{background:radial-gradient(950px 610px at 100% -12%,rgba(105,151,255,.13),transparent 65%),radial-gradient(840px 500px at 0% 42%,rgba(39,88,216,.06),transparent 65%),var(--bg)!important;line-height:1.9;color:var(--body);overflow-x:hidden;min-width:0}
html[data-theme=night] body{background:radial-gradient(900px 610px at 100% 0%,rgba(72,99,236,.14),transparent 70%),var(--bg)!important}
.background-art{opacity:.5;background:radial-gradient(circle at 1px 1px,rgba(69,98,192,.12) 1px,transparent 1.4px) 0 0/30px 30px}
.wrap{width:min(1180px,calc(100% - 36px))}
h1,h2,h3,button,input,a,p,small,label{font-family:var(--ui)!important}
.hero h1,.page-intro h1,.section-heading h2,.daily-heading h2,.poet-profile h1,.single-poem-title,.modal-top h2,.feature-card h2,.poet-card h3,.poem-card-title,.brand-word strong,.poet-collections-heading h2{font-family:var(--ui)!important;font-weight:850!important;line-height:1.62!important;letter-spacing:-.5px!important}
.poetry-lines,.arch-poetry,.verse-line,.fortune-medallion span{font-family:var(--poetry)!important;word-spacing:1px}
.poetry-lines .verse-line{line-height:3!important}
/* Modern sticky header: the book app's title remains, RAVIX is its parent brand. */
.site-header,html[data-theme=night] .site-header,header.site-header{position:sticky;top:0;z-index:70;background:rgba(255,255,255,.91)!important;border:0!important;border-bottom:1px solid var(--line)!important;box-shadow:0 5px 28px rgba(21,39,92,.065)!important;backdrop-filter:blur(20px) saturate(1.2)}
html[data-theme=night] .site-header{background:rgba(15,25,55,.93)!important}
.header-inner{height:84px;gap:16px}
.brand{min-width:0;gap:11px}
.brand-emblem,.brand-emblem svg{transform:none!important}
.brand-emblem{height:48px;width:48px;border:1px solid rgba(94,128,237,.3);border-radius:15px;background:linear-gradient(135deg,#153cb7,#5188ff);box-shadow:0 8px 23px rgba(48,85,208,.18)}
.brand-emblem svg{stroke:#fff;stroke-width:1.8;width:33px;height:33px}
.brand-word strong{font-family:var(--ui)!important;font-size:19px!important;color:var(--ink)!important;white-space:nowrap}
.brand-word small{font-size:10px;color:var(--muted)!important;white-space:nowrap}
.desktop-nav{gap:3px}
.nav-link{font-size:12px!important;font-weight:800;padding:9px 11px;color:var(--body);border-radius:11px}
.nav-link.selected,.nav-link:hover,html[data-theme=night] .nav-link.selected,html[data-theme=night] .nav-link:hover{background:var(--paper2);color:var(--gold)}
.header-actions{display:flex;align-items:center;gap:9px;flex:none}
.ravix-origin{display:flex;align-items:center;gap:9px;min-width:0;padding:5px 8px 5px 11px;border:1px solid var(--line);border-radius:14px;background:var(--paper);color:var(--ink);transition:box-shadow .2s,transform .2s}
.ravix-origin:hover{box-shadow:0 6px 19px rgba(44,87,210,.14);transform:translateY(-1px)}
.origin-logo{width:37px;height:37px;flex:none;display:grid;place-items:center}
.origin-logo img{grid-area:1/1;width:45px;height:45px;object-fit:contain}
.origin-logo .logo-night{display:none}html[data-theme=night] .origin-logo .logo-day{display:none}html[data-theme=night] .origin-logo .logo-night{display:block}
.origin-copy strong{font-size:12px;line-height:1.5;display:block;font-weight:900}
.origin-copy small{font-size:10px;display:block;color:var(--gold);white-space:nowrap;font-weight:800}
.icon-button{width:43px;height:43px;min-width:43px;min-height:43px;background:var(--paper)!important;border:1px solid var(--line)!important;color:var(--ink);border-radius:12px}
.header-fal,.btn-primary{background:linear-gradient(125deg,#2446c8,#3878ff)!important;border:1px solid transparent!important;color:#fff!important;box-shadow:0 8px 22px rgba(45,88,232,.19)!important}
.header-fal{min-height:43px;padding:9px 12px;font-size:12px!important;border-radius:11px}
.header-fal span,.btn-arrow{color:#dbe8ff!important}
.header-fal:hover,.btn-primary:hover{filter:brightness(1.07)}
/* Readability & accessibility */
.reading-toolbar,html[data-theme=night] .reading-toolbar{background:var(--paper);border:1px solid var(--line);border-radius:16px;box-shadow:var(--shadow);padding:10px 15px;margin-top:18px}
.reading-toolbar-title,.reading-toolbar-title>span{color:var(--gold)}
.reading-toolbar-title strong{color:var(--ink)}.reading-toolbar-title small{color:var(--muted)}
.reading-controls button{background:var(--paper);border-color:var(--line);color:var(--ink)}
.reading-controls button:hover,.reading-controls button:focus-visible{background:var(--paper2)}
.reading-percent{color:var(--gold)}
:focus-visible{outline:3px solid #5f89ff!important;outline-offset:3px!important}
::selection{background:#c8d8ff;color:#112963}
/* Hero: deep blue UX presentation, preserving actual app links and poetry. */
.hero,html[data-theme=night] .hero{border:1px solid rgba(75,112,241,.42);border-radius:29px;background:radial-gradient(circle at 17% 78%,rgba(77,122,255,.29),transparent 38%),radial-gradient(circle at 100% 0%,rgba(66,124,255,.31),transparent 42%),linear-gradient(125deg,#10215b 0%,#1b348b 58%,#0f246b 100%)!important;box-shadow:0 24px 55px rgba(29,57,149,.18)!important;min-height:515px;grid-template-columns:1.1fr .9fr;gap:26px;margin:23px 0 42px;padding:46px 48px;overflow:hidden}
.hero:before,.hero:after{background:none;opacity:1;z-index:0;pointer-events:none}
.hero:before{height:490px;width:490px;top:-220px;right:auto;left:-160px;border:1px solid rgba(197,218,255,.13);border-radius:50%;box-shadow:0 0 0 45px rgba(126,175,255,.03),0 0 0 100px rgba(126,175,255,.025)}
.hero:after{width:260px;height:260px;left:10%;bottom:-180px;background:radial-gradient(circle,rgba(98,159,255,.22),transparent 70%);transform:none}
.hero-copy,.hero-visual{position:relative;z-index:1}
.eyebrow,.section-kicker{color:var(--gold);font-family:var(--ui);font-size:12px;font-weight:850}
.hero .eyebrow{display:inline-flex;flex-wrap:wrap;justify-content:flex-start;background:rgba(255,255,255,.095);color:#cad9ff;border:1px solid rgba(192,210,255,.23);border-radius:99px;padding:5px 13px;font-size:12px}
.hero .eyebrow .ornament{color:#9ec4ff}
.hero-ravix-link{color:#fff;font-weight:900;text-decoration:underline;text-underline-offset:3px}
.hero h1{background:none!important;-webkit-background-clip:initial!important;background-clip:initial!important;color:#fff!important;filter:none!important;font-size:clamp(32px,3.9vw,50px)!important;line-height:1.6!important;margin:20px 0 17px}
.hero h1 em{color:#86bdff!important}
.hero .hero-lead{color:#d5e1ff!important;font-size:15px;line-height:2.15;max-width:530px}
.hero .btn-primary{background:#fff!important;color:#173ea2!important;box-shadow:0 10px 22px rgba(0,0,0,.13)!important}
.hero .btn-primary span{color:#1f4eca!important}
.hero .btn-outline{background:rgba(255,255,255,.08)!important;color:#fff!important;border:1px solid rgba(202,220,255,.38)!important}
.hero .quick-search{background:rgba(255,255,255,.1);border:1px solid rgba(190,212,255,.2);max-width:530px;box-shadow:none;margin-top:22px}
.hero .quick-search label{color:#e8f0ff}.hero .quick-search input{background:#fff!important;border:1px solid #d9e4fb!important;color:#1f305c!important;box-shadow:none!important}
.hero .quick-search button{background:linear-gradient(135deg,#3d79ff,#75a5ff)!important;color:#fff!important}
.hero-stats,.hero-stats b{color:#f2f6ff!important}
.hero-stats i{background:#86b4ff}
.hero-visual{height:430px}
.hero-arch,.hero .hero-arch{height:410px;width:min(365px,100%);padding:42px 35px;gap:14px;border:1px solid rgba(203,222,255,.37)!important;border-radius:28px!important;outline:none!important;box-shadow:0 19px 48px rgba(0,15,63,.24),inset 0 1px 0 rgba(255,255,255,.15)!important;background:radial-gradient(circle at 50% 7%,rgba(139,191,255,.28),transparent 50%),linear-gradient(180deg,rgba(55,95,188,.72),rgba(15,32,92,.93))!important;animation:none!important;overflow:hidden}
.hero-arch:before{content:"";position:absolute;inset:12px;border-radius:20px;border:1px solid rgba(224,235,255,.18);pointer-events:none}
.hero-arch:after{display:none!important}.hero-arch .arch-top,.hero-arch .arch-name{font-family:var(--ui)!important;color:#cddfff;font-size:12px}
.hero-arch .arch-poetry{font-family:var(--poetry)!important;color:#fff!important;font-size:clamp(16px,1.9vw,22px)!important;line-height:3.25!important}
.hero-arch .arch-divider{color:#9fbeff}
.mandala{border-color:#a0c1ff;opacity:.17}.section-ornament{color:#4f7af0}.section-ornament span,.section-ornament span:last-child{background:linear-gradient(90deg,transparent,#85aaff,transparent)!important}
/* Cards, archive, source metadata and poem surfaces. */
.feature-card,.poet-card,.poem-card,.fortune-story,.fortune-result,.archive-shell,.daily-paper,.modal-window,.poet-collections,html[data-theme=night] .feature-card,html[data-theme=night] .poet-card,html[data-theme=night] .poem-card,html[data-theme=night] .fortune-story,html[data-theme=night] .fortune-result,html[data-theme=night] .archive-shell{background:var(--paper)!important;background-image:none!important;border:1px solid var(--line)!important;box-shadow:var(--shadow)!important;border-radius:20px!important;color:var(--body)}
.feature-card:before,.feature-card:after,.poet-card:before,.poet-card:after,.poem-card:before,.poem-card:after,.archive-shell:before,.fortune-story:before{display:none!important}
.feature-card:hover,.poet-card:hover,.poem-card:hover{transform:translateY(-3px)!important;box-shadow:0 20px 45px rgba(26,65,155,.13)!important;border-color:#aec5ff!important}
.feature-card{min-height:230px;padding:24px 26px}.feature-card h2{color:var(--ink);font-size:22px!important}.feature-card p{color:var(--body)}
.feature-kicker,.feature-action,.text-link,.poet-card-mark,.poem-tag{color:var(--gold)}
.feature-icon{display:grid;place-items:center;background:#edf3ff;border:1px solid #d6e4ff;border-radius:15px}
.feature-icon img{filter:hue-rotate(139deg) saturate(1.25)}
.daily-heading h2,.section-heading h2{color:var(--ink);font-size:clamp(24px,3vw,32px)!important}
.daily-paper:before,.daily-paper:after{color:var(--gold)}
.page-intro h1{color:var(--ink);font-size:clamp(29px,3.5vw,44px)!important}.page-intro h1 em{color:var(--gold)}
.page-intro p,.daily-heading p{color:var(--body)}
.fortune-medallion{animation:none!important;background:linear-gradient(145deg,#eef4ff,#dce9ff);border-color:#8eb1ff;box-shadow:inset 0 0 0 8px #f9fbff,inset 0 0 0 10px #b8ccff,0 10px 24px rgba(55,97,186,.1)!important}
.fortune-medallion span{animation:none!important;color:#2348a1!important}
.btn-outline{background:var(--paper)!important;color:var(--ink)!important;border:1px solid var(--line)!important;box-shadow:none!important}
.btn-outline:hover{background:var(--paper2)!important;border-color:#96b3ff!important}
.search-field,.category-select,input,.search-field input{border-color:var(--line)!important}
.search-field{background:var(--paper2)!important}
.search-field input{background:transparent!important;color:var(--ink)!important}
.poet-card h3,.poem-card-title{color:var(--ink)!important;font-size:clamp(16px,2vw,20px)!important}
.poet-card,.poem-card{min-width:0}
.poet-card-mark{display:grid;place-items:center;background:#eef3ff!important;color:#3158db!important}
.poem-card .poetry-lines,.poem-card .verse-line{color:var(--ink)!important}
.metadata-row,.metadata-list,.poem-metadata,.interpretation{border-color:var(--line)!important;color:var(--body);background:var(--paper2)!important}
.corpus-notice{background:var(--paper);border-color:var(--line);box-shadow:var(--shadow);color:var(--body)}
.corpus-notice-icon{background:#284bcb;color:white}.corpus-notice-copy strong{color:var(--ink)}.corpus-notice-copy p{color:var(--body)}
/* Poet collections: single scrolling ROW as default; full grid only via button. */
.poet-collections{padding:clamp(18px,3vw,28px);margin-bottom:24px}
.poet-collections-heading{gap:14px;margin-bottom:17px;align-items:center}
.poet-collections-heading h2{color:var(--ink);font-size:clamp(19px,2.4vw,27px)!important}
.poet-collections-heading p{color:var(--muted);line-height:1.85}
.collections-controls{display:flex;align-items:center;flex-wrap:wrap;gap:10px}
.collection-tally{border-color:#cfdaff;background:var(--paper2);color:var(--gold);font-weight:800}
.collection-toggle{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:43px;padding:9px 15px;border:1px solid #426eee;background:linear-gradient(130deg,#284ac9,#3c72ec);border-radius:12px;color:#fff;font-size:13px;font-weight:850;cursor:pointer;box-shadow:0 6px 18px rgba(45,88,213,.13);transition:transform .2s}
.collection-toggle:hover{transform:translateY(-2px)}.collection-toggle[hidden]{display:none!important}
.category-grid,.poet-collections .category-grid{display:flex;flex-wrap:nowrap;gap:10px;overflow-x:auto;overflow-y:hidden;scroll-behavior:smooth;scroll-snap-type:x proximity;overscroll-behavior-inline:contain;scrollbar-width:thin;scrollbar-color:#93acfb transparent;padding:4px 3px 17px;max-width:100%;align-items:stretch;grid-template-columns:none}
.category-grid::-webkit-scrollbar{height:7px}.category-grid::-webkit-scrollbar-thumb{background:#a6bafa;border-radius:10px}
.category-grid .category-tile,.poet-collections .category-tile,html[data-theme=night] .category-tile{display:flex;flex-direction:column;justify-content:center;flex:0 0 clamp(167px,19vw,208px);min-height:112px;min-width:0;max-width:208px;padding:14px 15px;gap:5px;text-align:right;border-radius:15px;background:var(--paper2)!important;border:1px solid var(--line)!important;color:var(--ink)!important;box-shadow:none;scroll-snap-align:start;transition:border-color .2s,transform .2s,background .2s}
.category-tile:hover{border-color:#91afff!important}
.category-tile .category-tile-mark{display:grid;place-items:center;width:27px;height:27px;font-size:16px;color:#3763e4;background:#dfe9ff;border-radius:8px;flex:none}
.category-tile .category-tile-name{font-family:var(--ui)!important;font-size:13px!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%;line-height:1.5;font-weight:900;flex:none}
.category-tile .category-tile-count{color:var(--muted);font-size:11px}
.category-grid .category-tile.active,html[data-theme=night] .category-grid .category-tile.active{background:linear-gradient(135deg,#2548c6,#427df1)!important;color:#fff!important;border-color:#4679f4!important;box-shadow:0 9px 20px rgba(43,84,214,.17)}
.category-grid .category-tile.active .category-tile-mark{background:rgba(255,255,255,.19);color:#fff}
.category-grid .category-tile.active .category-tile-count{color:#e0eaff}
.category-grid.expanded,.poet-collections .category-grid.expanded{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,185px),1fr));overflow:visible;scroll-snap-type:none;gap:10px;padding-bottom:6px}
.category-grid.expanded .category-tile{flex:none;max-width:none;width:100%;min-height:119px;scroll-snap-align:none}
.category-grid.expanded .category-tile-name{white-space:normal;overflow-wrap:anywhere;text-overflow:clip}
.selected-collection{background:var(--paper2);border-right:3px solid #3974ef;color:var(--body);margin-top:12px}
/* Footer = product signature with clear app / company separation. */
.site-footer,html[data-theme=night] .site-footer{position:relative;background:radial-gradient(circle at 90% 0%,rgba(70,118,248,.24),transparent 38%),linear-gradient(125deg,#0b163a,#122966)!important;border:0!important;border-top:4px solid #3b73ff!important;color:#d7e2ff;margin-top:44px;overflow:hidden}
.site-footer *{color:inherit!important}.site-footer a:hover{color:#fff!important}
.footer-inner{display:grid;grid-template-columns:1.24fr .95fr 1fr;gap:35px;align-items:start;padding:55px 0 36px}
.footer-ravix{display:flex;align-items:center;gap:13px;margin-bottom:20px}
.footer-ravix img{width:61px;height:61px;object-fit:contain;filter:drop-shadow(0 1px 10px rgba(120,166,255,.16))}
.footer-ravix strong{font:900 25px/1.2 var(--ui)!important;letter-spacing:.4px;display:block;color:#fff!important}
.footer-persian{font-size:16px;letter-spacing:0}
.footer-ravix small{color:#b2c8fa!important;font-size:11px}
.footer-gift{max-width:420px;color:#cbdafc!important;font-size:13px;line-height:2.2;margin:0 0 18px}
.footer-gift strong{color:#fff!important}
.footer-return{display:inline-flex;align-items:center;gap:8px;border:1px solid rgba(166,200,255,.35);padding:9px 15px;border-radius:11px;background:rgba(104,158,255,.14);color:#fff!important;font-weight:850;font-size:12px;text-decoration:none!important}
.footer-directory h2,.footer-credit h2{font-size:17px;font-weight:850;margin:3px 0 15px;color:#fff!important}
.footer-directory p{font-size:12px;line-height:2.15;color:#cbdafc!important}
.site-footer .footer-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px 14px}
.site-footer .footer-links a{text-decoration:none;color:#c8d9ff!important;font-size:12px;white-space:nowrap}
.site-footer .footer-links a:before{content:"›";margin-left:8px;color:#8eb8ff}
.footer-credit{display:flex;flex-direction:column;gap:12px;max-width:none}
.footer-credit small{font-size:11px;line-height:2.15;color:#bdcff8!important;text-align:right}
.footer-bottom{padding:16px 0 21px;border-top:1px solid rgba(181,205,255,.18);display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px;font-size:11px;color:#a9bfe9}
.footer-bottom span{color:#a9bfe9!important}
/* Mobile bottom navigation and overlays. */
.mobile-nav{background:var(--paper)!important;border-top:1px solid var(--line);box-shadow:0 -12px 30px rgba(17,40,100,.13)}
.mobile-nav a{color:var(--muted)}.mobile-nav a.active{color:var(--gold)!important}
.modal-backdrop{background:rgba(7,17,49,.79)}.modal-window{background:var(--paper)!important}
.toast{background:#1d3faf;color:#fff}
::-webkit-scrollbar-thumb{background:linear-gradient(#608eff,#234dcf)}
/* Dark-mode specifics for cards that legacy CSS hard-coded. */
html[data-theme=night] .poet-collections,html[data-theme=night] .corpus-notice{background:var(--paper)!important;border-color:var(--line)!important}
html[data-theme=night] .reading-toolbar{background:var(--paper)!important}
html[data-theme=night] .feature-card p,html[data-theme=night] .feature-kicker,html[data-theme=night] .footer-credit small{color:var(--body)}
html[data-theme=night] .header-fal{color:#fff}
@media(max-width:1100px){
 .header-inner{gap:9px}.nav-link{padding:8px;font-size:11px!important}
 .origin-copy small{display:none}.origin-copy strong{font-size:11px}
 .hero{padding:38px 32px;gap:15px}
}
@media(max-width:900px){
 .desktop-nav{display:none}.header-inner{height:74px}
 .hero{grid-template-columns:1fr 1fr}.hero-visual{height:365px}.hero .hero-arch{height:335px;width:min(300px,100%);padding:22px}
 .hero .hero-arch .arch-poetry{font-size:16px!important}
 .footer-inner{grid-template-columns:1fr 1fr}.footer-brand{grid-column:1/-1}
}
@media(max-width:680px){
 .wrap{width:calc(100% - 26px)}
 .header-inner{height:65px;gap:6px}.brand{gap:7px}.brand-emblem{height:39px;width:39px;border-radius:12px}.brand-emblem svg{width:27px;height:27px}
 .brand-word strong{font-size:15px!important}.brand-word small{font-size:9px}
 .header-actions{gap:6px}.ravix-origin{padding:1px 5px;border-radius:10px}.origin-logo{width:33px;height:35px}.origin-logo img{width:38px;height:38px}
 .origin-copy{display:none}.icon-button{height:37px;width:37px;min-height:37px;min-width:37px;border-radius:10px}
 .header-fal{display:none}
 .reading-toolbar{margin:11px auto 0;padding:11px 9px}
 .reading-toolbar-title{justify-content:center}.reading-toolbar-title small{display:none}
 .hero,html[data-theme=night] .hero{display:flex;flex-direction:column-reverse;gap:16px;padding:19px 19px 29px;border-radius:20px;margin:15px 0 27px;text-align:right}
 .hero-visual{height:231px;width:100%}.hero .hero-arch{height:224px;width:min(285px,96%);padding:17px 24px;gap:5px;border-radius:21px!important}
 .hero .hero-arch .arch-poetry{font-size:13px!important;line-height:2.85!important}
 .hero-arch .arch-top,.hero-arch .arch-name{font-size:9px}
 .hero h1{font-size:30px!important;margin:12px 0 9px}.hero .hero-lead{font-size:13px;line-height:2.05}
 .hero .eyebrow{font-size:10px;justify-content:center;line-height:1.8}
 .hero-buttons{justify-content:center;gap:8px}
 .hero-buttons .btn{font-size:12px;padding:10px;flex:1;min-height:46px}
 .hero .quick-search{margin-top:20px;padding:12px;background:rgba(255,255,255,.07)}
 .hero .quick-search label{font-size:12px}.hero .quick-search-row{flex-direction:column}
 .hero-stats{justify-content:center;margin-top:18px;gap:9px;font-size:10px}.hero-stats b{font-size:12px}
 .section-ornament{margin:8px 0 22px}
 .intro-cards{grid-template-columns:1fr;gap:12px;margin-bottom:53px}
 .feature-card{padding:19px 20px;min-height:0}.feature-card h2{font-size:19px!important}
 .page-intro{padding:34px 0 22px}.page-intro h1{font-size:29px!important}
 .poet-collections{padding:17px 13px;margin-bottom:14px}
 .poet-collections-heading{align-items:stretch;flex-direction:column;gap:10px}
 .poet-collections-heading h2{font-size:19px!important}.poet-collections-heading p{font-size:12px}
 .collections-controls{justify-content:space-between;width:100%}
 .collection-toggle{font-size:11px;min-height:37px;padding:7px 11px}
 .category-grid .category-tile,.poet-collections .category-tile{flex-basis:162px;max-width:162px;min-height:100px;padding:11px}
 .category-grid.expanded,.poet-collections .category-grid.expanded{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 .category-grid.expanded .category-tile{max-width:none;min-height:109px}
 .category-tile .category-tile-name{font-size:12px!important}
 .footer-inner{grid-template-columns:1fr;gap:29px;padding:39px 0 26px}.footer-brand{grid-column:auto}
 .footer-ravix img{width:52px;height:52px}.footer-ravix strong{font-size:23px!important}
 .footer-directory h2,.footer-credit h2{margin-bottom:10px}.footer-bottom{padding-bottom:100px;gap:6px;display:flex;flex-direction:column;align-items:flex-start}
 .mobile-nav{height:calc(64px + env(safe-area-inset-bottom));padding-bottom:env(safe-area-inset-bottom)}
 .mobile-nav a{padding-top:8px;font-size:20px}.mobile-nav a span{font-size:10px}
 .site-footer{margin-top:29px}
}
@media(max-width:370px){
 .brand-word small{display:none}.brand-word strong{font-size:14px!important}
 .header-inner{gap:4px}.header-actions{gap:4px}
 .hero{padding:13px 12px 25px}.hero .hero-arch{height:210px}
 .hero-visual{height:215px}.hero h1{font-size:26px!important}
 .category-grid.expanded,.poet-collections .category-grid.expanded{grid-template-columns:1fr}
}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;scroll-behavior:auto!important;transition:none!important}}
@media print{.ravix-origin,.collection-toggle{display:none!important}.site-footer{background:#fff!important;color:#111!important}}
/* Reading-mode switch stays on-brand in both light and dark palettes. */
.reading-controls #readableFont,.reading-controls #readableFont:hover,.reading-controls #readableFont:focus-visible{background:linear-gradient(135deg,#244acc,#3f78f4)!important;border:1px solid #3766e3!important;color:#fff!important;box-shadow:0 5px 12px rgba(41,77,206,.14)}
