
@import url('https://fonts.googleapis.com/css2?family=Assistant:wght@400;500;600;700&family=Frank+Ruhl+Libre:wght@400;500;600;700&display=swap');
:root{--ink:#101e2c;--navy:#091b2a;--panel:#102b3c;--gold:#d4b477;--gold-dark:#846124;--paper:#fafaf7;--muted:#56646e;--line:#d9dee0;--max:1240px;color-scheme:light}
*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:110px}body{margin:0;background:var(--paper);color:var(--ink);font:400 17px/1.7 'Assistant',Arial,sans-serif}html[lang=en] body{font-family:Arial,sans-serif;font-size:16px;line-height:1.75}a{color:inherit;text-decoration:none}button,input{font:inherit}button,a,input,summary{-webkit-tap-highlight-color:transparent}button{cursor:pointer}a:focus-visible,button:focus-visible,input:focus-visible,summary:focus-visible{outline:3px solid #2f83b6;outline-offset:6px}img{display:block;width:100%;height:auto}p{margin:0 0 1.25em}h1,h2,h3{font-family:'Frank Ruhl Libre',Georgia,serif;font-weight:500;line-height:1.15;margin:0}html[lang=en] h1,html[lang=en] h2,html[lang=en] h3{font-family:Georgia,'Times New Roman',serif}h1{font-size:clamp(46px,5.5vw,78px);letter-spacing:-.035em}h2{font-size:clamp(32px,3.5vw,47px);letter-spacing:-.02em}h3{font-size:29px}small,.small{font-size:14px}.wrap{width:min(var(--max),calc(100% - 96px));margin-inline:auto}.eyebrow{font-size:14px;letter-spacing:.12em;font-weight:600;color:var(--gold);margin-bottom:22px}html[lang=he] .eyebrow{letter-spacing:.025em;font-size:16px}.eyebrow.dark{color:var(--gold-dark)}.muted{color:var(--muted)}.skip{position:fixed;top:-100px;inset-inline-start:20px;z-index:99;padding:12px;background:white}.skip:focus{top:10px}
.site-header{background:var(--navy);color:#fff;border-bottom:1px solid #ffffff20;position:relative;z-index:20}.header-inner{display:flex;align-items:center;min-height:98px;gap:35px}.brand{display:flex;gap:15px;align-items:center;flex-shrink:0}.brand-mark{width:44px;height:48px;display:grid;place-items:center;color:var(--gold);border:1px solid #d4b47777;font-family:'Frank Ruhl Libre',Georgia,serif;font-size:27px}.brand-name{font-family:'Frank Ruhl Libre',Georgia,serif;font-size:25px;line-height:1.15}.brand-small{font-size:11px;letter-spacing:.15em;color:#b8c8d0;display:block;margin-top:8px}.nav{display:flex;align-items:center;gap:25px;margin-inline-start:auto;font-size:15px;white-space:nowrap}.nav a{padding-block:10px;color:#c8d2d8;border-bottom:1px solid transparent}.nav a:hover,.nav a[aria-current=page]{color:#fff;border-color:var(--gold)}.language{font-size:15px;border-inline-start:1px solid #fff3;padding-inline-start:25px;color:var(--gold)}.menu-toggle{display:none;background:transparent;border:1px solid #fff5;color:white;padding:6px 12px}.header-study{border:1px solid #d4b47777!important;padding:7px 17px!important;color:var(--gold)!important}
.hero{background:var(--navy);color:white;position:relative;overflow:hidden}.hero-grid{display:grid;grid-template-columns:1fr 1fr;align-items:center;min-height:640px;gap:58px;padding-block:66px}.hero h1{max-width:590px;white-space:pre-line}.hero h1 em{font-style:normal;color:var(--gold)}.hero .intro{max-width:510px;font-size:20px;line-height:1.7;color:#c4d0d7;margin:25px 0 15px}.editor{font-size:15px;color:#a5b8c3;margin-bottom:29px}.actions{display:flex;align-items:center;gap:25px;flex-wrap:wrap}.button{display:inline-flex;justify-content:center;align-items:center;background:var(--gold);color:var(--navy);padding:13px 23px;font-size:16px;font-weight:600;border:1px solid var(--gold);transition:background .2s}.button:hover{background:#e2c998}.button.secondary{background:transparent;color:inherit;border-color:#aeb8bd}.text-link{border-bottom:1px solid #8d9ca6;padding-bottom:3px;font-size:16px}.text-link:hover{color:var(--gold)}.hero-portrait{position:relative;margin:0;padding:18px 0 0 18px}.hero-portrait:before{content:'';position:absolute;inset:0 18px 26px 0;border:1px solid #d4b47766;pointer-events:none}.hero-portrait img{height:455px;object-fit:cover;object-position:48% 50%;position:relative;filter:saturate(.78)}.hero-portrait figcaption{font-size:13px;color:#aebfc9;position:relative;padding-top:12px;display:flex;gap:12px;justify-content:space-between}.hero-portrait figcaption span:first-child{color:var(--gold)}.hero-index{border-top:1px solid #ffffff20;color:#c4d0d7;display:flex;justify-content:space-between;padding-block:23px;gap:20px}.hero-index span{display:flex;gap:18px;align-items:center}.hero-index b{font-weight:400;color:var(--gold);font-size:13px;direction:ltr}
.section{padding-block:88px}.section-heading{display:flex;justify-content:space-between;gap:35px;align-items:end;margin-bottom:40px}.section-heading p{margin:15px 0 0;max-width:650px;color:var(--muted)}.section-heading .text-link{white-space:nowrap}.books-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:25px}.book{border:1px solid var(--line);background:white;display:flex;flex-direction:column;min-width:0;transition:transform .2s,box-shadow .2s}.book:hover{transform:translateY(-5px);box-shadow:0 18px 30px #14222a0b}.book-top{padding:29px 28px 22px;min-height:194px;background:#edf1f1;position:relative;border-bottom:1px solid var(--line)}.book:nth-child(3n+2) .book-top{background:#e9eff3}.book:nth-child(3n+3) .book-top{background:#f1eee7}.book-no{display:flex;justify-content:space-between;color:#747d82;font-size:13px;margin-bottom:33px}.book-no span:last-child{width:28px;height:1px;background:var(--gold-dark);margin-top:12px}.book-top h3{font-size:30px;overflow-wrap:anywhere}.book-bottom{padding:25px 28px;display:flex;flex-direction:column;flex:1}.book-bottom p{color:var(--muted);margin:0 0 27px}.book-bottom a{font-weight:600;color:#856329;align-self:flex-start;border-bottom:1px solid #c3a46b;margin-top:auto}.book[hidden]{display:none}.legacy-band{background:var(--panel);color:white;display:grid;grid-template-columns:1.25fr 1fr;gap:70px;padding:62px;position:relative;margin-bottom:85px}.legacy-band p{color:#c7d3da;font-size:19px;margin-top:20px;margin-bottom:28px}.legacy-band .emblem{display:flex;align-items:center;justify-content:center;border-inline-start:1px solid #ffffff26;flex-direction:column;gap:18px;text-align:center}.legacy-band .emblem b{font-family:'Frank Ruhl Libre',Georgia,serif;font-weight:400;font-size:80px;color:var(--gold);line-height:1}.legacy-band .emblem span{max-width:200px;color:#d1dce2;font-size:16px}.footer{background:var(--navy);color:#b5c5cd;padding:47px 0 30px}.footer-main{display:flex;justify-content:space-between;gap:40px}.footer-main p{max-width:430px;font-size:15px;margin-top:16px}.footer .brand-name{color:white}.footer-links{display:flex;flex-wrap:wrap;gap:18px;align-items:flex-start;font-size:14px}.footer-bottom{border-top:1px solid #fff2;margin-top:28px;padding-top:21px;display:flex;justify-content:space-between;gap:20px;font-size:13px}
.page-head{background:var(--navy);color:white;padding:70px 0 62px}.page-head h1{max-width:1000px;font-size:clamp(42px,5vw,65px)}.page-head p{max-width:800px;color:#c7d3da;font-size:21px;margin:22px 0 0}.breadcrumb{font-size:14px;color:#bfcbd3;margin-bottom:30px}.breadcrumb a{border-bottom:1px solid #9ca9b2}.editorial{display:grid;grid-template-columns:1.25fr .75fr;gap:80px;align-items:start}.prose{font-size:20px;line-height:1.95;max-width:750px}.prose h2{font-size:34px;margin-bottom:25px}.prose p{color:#394b58}.archive-photo{margin:0}.archive-photo img{max-height:480px;object-fit:cover;object-position:center 36%}.archive-photo figcaption{font-size:13px;color:var(--muted);padding-top:12px}.timeline{margin-top:60px;border-top:1px solid var(--line);padding-top:50px}.timeline-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:30px;margin-top:35px}.time-item{border-top:2px solid var(--gold);padding-top:20px}.time-item strong{font-size:32px;font-family:Georgia,serif;color:var(--gold-dark);font-weight:400}.time-item h3{font-size:24px;margin:15px 0}.time-item p{font-size:16px;color:var(--muted)}.filters{display:flex;gap:10px;flex-wrap:wrap;margin:25px 0 40px}.filter{padding:9px 18px;border:1px solid #c8d0d4;background:transparent;color:var(--ink);font-size:15px}.filter[aria-pressed=true]{background:var(--navy);color:#fff;border-color:var(--navy)}.search{display:block;width:min(100%,520px);background:white;border:1px solid #b7c1c7;padding:13px 17px;margin-top:12px;color:var(--ink)}.empty{padding:35px;border:1px solid var(--line)}.book-detail{display:grid;grid-template-columns:220px 1fr;gap:70px}.book-aside{border-top:3px solid var(--gold);padding-top:25px;color:var(--muted)}.book-aside .number{font-size:75px;font-family:Georgia,serif;line-height:1;color:#d1d8dc;display:block;margin-bottom:20px}.reading{padding:28px 35px;border-inline-start:3px solid var(--gold);background:#eef2f3;margin:35px 0}.reading h3{font-size:26px;margin-bottom:15px}.reading p{margin:0;font-size:18px}.note{font-size:14px!important;color:var(--muted)!important}.family-row{display:grid;grid-template-columns:150px 1fr;gap:40px;padding:40px 0;border-bottom:1px solid var(--line);align-items:center}.family-row:first-child{padding-top:0}.family-row img{height:175px;object-fit:cover;object-position:top}.family-row p{max-width:790px;font-size:19px;color:var(--muted);margin:16px 0 0}.family-row .eyebrow{margin-bottom:12px}.study-panel{background:var(--panel);color:white;padding:45px;display:grid;grid-template-columns:1.3fr 1fr;gap:50px;align-items:center;margin-bottom:55px}.study-panel p{color:#c7d3da;margin:20px 0 0}.study-panel .button{justify-self:end;text-align:center}.source-list{list-style:none;padding:0;margin:0;max-width:900px}.source-list li{padding:28px 0;border-bottom:1px solid var(--line)}.source-list h2{font-size:28px}.source-list p{margin:15px 0 0;color:var(--muted)}.source-list a{text-decoration:underline;text-decoration-color:var(--gold);text-underline-offset:7px}.screenreader{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(min-width:1500px){.hero-grid{min-height:710px}.hero-portrait img{height:500px}}
@media(max-width:1100px){.wrap{width:calc(100% - 56px)}.header-inner{gap:20px}.nav{gap:16px}.header-study{display:none}.hero-grid{gap:35px}.hero h1{font-size:58px}.hero-portrait img{height:440px}.brand-name{font-size:22px}.language{padding-inline-start:15px}.legacy-band{padding:45px;gap:40px}.editorial{gap:45px}.books-grid{gap:18px}.book-top,.book-bottom{padding:24px}.book-top h3{font-size:27px}}
@media(max-width:800px){.wrap{width:calc(100% - 40px)}.header-inner{min-height:84px;gap:13px;flex-wrap:wrap}.brand{gap:10px;margin-inline-end:auto}.brand-name{font-size:22px}.brand-small{font-size:9px;letter-spacing:.1em}.brand-mark{width:35px;height:40px;font-size:23px}.menu-toggle{display:block}.language{font-size:14px;padding-inline-start:12px}.nav{display:none;order:5;flex-basis:100%;margin:0;padding:8px 0 22px;flex-wrap:wrap;gap:15px 25px}.nav.open{display:flex}.header-study{display:block}.hero-grid{grid-template-columns:1fr;padding-block:45px;gap:35px;min-height:0}.hero h1{font-size:clamp(46px,8vw,67px)}.hero .intro{font-size:19px;max-width:600px}.hero-portrait{max-width:630px;width:100%;padding:12px 0 0 12px}.hero-portrait img{height:360px;object-position:center 44%}.hero-portrait figcaption{display:block}.hero-portrait figcaption span{display:block}.hero-portrait:before{inset:0 12px 46px 0}.hero-index{font-size:15px;gap:14px;flex-wrap:wrap}.hero-index span{gap:10px}.section{padding-block:55px}.section-heading{align-items:start;flex-direction:column;gap:20px;margin-bottom:30px}.books-grid{grid-template-columns:repeat(2,1fr)}.book-top{min-height:170px}.legacy-band{grid-template-columns:1fr;padding:32px;gap:30px;margin-bottom:55px}.legacy-band .emblem{border-inline-start:0;border-top:1px solid #fff3;padding-top:25px;flex-direction:row}.legacy-band .emblem b{font-size:58px}.footer-main{flex-direction:column;gap:15px}.footer-bottom{flex-direction:column;gap:10px}.page-head{padding:45px 0}.page-head p{font-size:19px}.editorial{grid-template-columns:1fr;gap:35px}.archive-photo{max-width:430px}.timeline-grid{grid-template-columns:1fr 1fr;gap:25px}.book-detail{grid-template-columns:1fr;gap:30px}.book-aside .number{font-size:45px}.book-aside{display:flex;gap:25px;align-items:center}.book-aside .number{margin:0}.study-panel{grid-template-columns:1fr;padding:30px;gap:25px}.study-panel .button{justify-self:start}.family-row{grid-template-columns:115px 1fr;gap:24px}.family-row img{height:155px}.family-row p{font-size:18px}.prose{font-size:19px}}
@media(max-width:480px){.books-grid{grid-template-columns:1fr}.hero-portrait img{height:300px}.hero-index{font-size:14px;gap:10px}.hero-index span{gap:6px}.hero-index b{font-size:11px}.hero h1{font-size:48px}html[lang=en] .hero h1{font-size:43px}.actions{gap:20px}.button{padding:12px 18px}.family-row{grid-template-columns:1fr}.family-row img{width:120px;height:145px}.brand-name{font-size:21px}html[lang=en] .brand-name{font-size:17px}.brand-small{font-size:8px}.menu-toggle{font-size:14px;padding:5px 8px}.brand-mark{width:30px}.language{padding-inline-start:8px}.header-inner{gap:9px}.timeline-grid{grid-template-columns:1fr}.time-item{display:grid;grid-template-columns:75px 1fr;gap:8px 20px}.time-item h3{margin:6px 0}.time-item p{grid-column:2}.book-top{min-height:155px}.book-no{margin-bottom:20px}.reading{padding:23px}.page-head h1{font-size:43px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{transition:none!important}}

/* Homepage artwork supplied by Chanan, 5 October 2026. */
.hero-portrait img{height:auto;aspect-ratio:16/9;object-fit:contain;filter:none}
.hero-portrait:before{bottom:18px}
@media(max-width:800px){.hero-portrait:before{bottom:12px}}

/* Article uses the established typography and palette. */
.method-article{max-width:960px;margin-inline:auto}.method-article h2{margin-block:2.5em 1em}.method-article h3{font-size:1.25em;margin-block:1.8em .8em}.method-article li{margin-block:.6em}.article-table{overflow-x:auto;margin-block:1.8em}.article-table table{width:100%;min-width:650px;border-collapse:collapse;font-size:.9em}.article-table th,.article-table td{border:1px solid #cbbd9b;padding:16px;text-align:start;vertical-align:top}.article-table th{background:#091b2a;color:#fff}.article-table tr:nth-child(even){background:#f3eee3}.legacy-band{margin-top:55px}
.ph-img{position:relative;overflow:hidden}.ph-img>.ph-bg{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:0;max-width:none}.ph-img::after{content:"";position:absolute;inset:0;z-index:0;background:linear-gradient(90deg,#06142ae6,#06142aa6 60%,#06142a80)}.ph-img>*:not(.ph-bg){position:relative;z-index:1}
.bk-banner .wrap{display:flex;align-items:center;gap:48px}.bk-banner .bk-text{flex:1 1 60%;min-width:0}.bk-banner .bk-side{flex:0 0 40%;margin:0}.bk-banner .bk-side img{display:block;width:100%;aspect-ratio:16/9;object-fit:cover;border-radius:18px;box-shadow:0 12px 34px #0007}@media(max-width:800px){.bk-banner .wrap{flex-direction:column;align-items:stretch;gap:28px}.bk-banner .bk-side{flex-basis:auto}}
.brand-mark{border-radius:50%;background:#0b2240;border-color:#d4b477;font-family:Georgia,'Times New Roman',serif;font-weight:700;width:44px;height:44px}@media(max-width:800px){.brand-mark{width:38px;height:38px;font-size:22px}}

/* FO60 mobile layer (spec 73072641): one column, collapsed menu, no sideways scroll, tappable targets. */
img,video,iframe,table{max-width:100%}img{height:auto}
@media(max-width:800px){
html,body{overflow-x:clip}
.header-inner{flex-wrap:wrap;row-gap:6px;padding-block:10px;min-height:0}
.header-inner>.brand{order:0;margin-inline-end:auto}
.header-inner>.menu-toggle{order:1;min-height:44px;min-width:64px;font-size:16px}
.header-inner>span{order:2;flex:1 1 100%;white-space:normal!important;margin:0!important;padding:0!important;border:0!important;font-size:14px!important;line-height:1.5}
.header-inner>span:not(.zf)[style*="display:flex"]{display:none!important}
.nav{order:5}.nav.open{flex-direction:column;align-items:stretch;gap:0;white-space:normal}
.nav.open a{display:block;padding:12px 4px;min-height:44px;border-bottom:1px solid #ffffff1a;font-size:17px}
[class*="grid"],.book-detail,.bk-banner .wrap{grid-template-columns:minmax(0,1fr)!important}
.book-detail>*,[class*="grid"]>*{min-width:0;max-width:100%}
.method-article table,.method-article thead,.method-article tbody,.method-article tr,.method-article th,.method-article td{display:block;width:100%}.article-table{overflow:visible}.article-table table{min-width:0!important}.article-table th,.article-table td{border:0;border-bottom:1px solid #cbbd9b33}.method-article td{border:0;padding:4px 0}.method-article tr{border-bottom:1px solid var(--line);padding-block:10px}
.book-card a,.books-grid a{display:inline-flex;align-items:center;min-height:44px}
.bk-banner .wrap{flex-direction:column;gap:22px}.bk-banner .bk-side{flex-basis:auto;width:100%}
h1{overflow-wrap:anywhere}
.page-head h1{font-size:clamp(32px,9vw,46px)}.page-head p{font-size:18px}
.section{padding-block:56px}.section-heading{flex-direction:column;align-items:stretch}
a.text-link,.sugg button,.zc-e button,button{min-height:44px}
ul,ol{padding-inline-start:1.2em}
.zc-f{flex-wrap:wrap!important;max-width:100%}.zc-f input{min-width:0!important;flex:1 1 180px!important;width:auto!important}.zc-f button{flex:0 0 auto}
}

/* FO60: short navigational home page - links to each book page. */
.home-books{padding-block:44px 8px}.home-books h2{font-family:"Frank Ruhl Libre",Georgia,serif;margin:0 0 18px}.hb-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.hb-grid a{display:flex;align-items:center;justify-content:center;min-height:56px;padding:12px;background:#091b2a;color:#fff;border:1px solid #d4b47766;font-family:"Frank Ruhl Libre",Georgia,serif;font-size:19px;text-decoration:none}.hb-grid a:hover,.hb-grid a:focus{border-color:#d4b477;color:#d4b477}@media(max-width:800px){.hb-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}}@media(max-width:420px){.hb-grid{grid-template-columns:minmax(0,1fr)}}

/* KAN-446 / KAN-489#13: premium luminous book pages + article image */
.art-img{margin:18px 0 28px}.art-img img{display:block;width:100%;height:auto;aspect-ratio:3/2;object-fit:cover;border-radius:16px;box-shadow:0 12px 34px #0007;border:1px solid #d4b47755}
body:has(.book-detail) main{background:linear-gradient(180deg,#fdfaf2 0%,#eef4fb 45%,#dde9f7 100%)}
body:has(.book-detail) .b377-wrap{background:radial-gradient(ellipse at 30% 20%,#ffffff 0%,#f3f7fd 40%,#d9e7f6 100%);color:#0b2240}
body:has(.book-detail) .b377-wrap h1{color:#0b2240}
body:has(.book-detail) .b377-wrap p,body:has(.book-detail) .b377-wrap .breadcrumb,body:has(.book-detail) .b377-wrap .breadcrumb a{color:#846124}
body:has(.book-detail) .book-detail h2,body:has(.book-detail) .book-detail h3{color:#0b2240}
body:has(.book-detail) .book-detail p,body:has(.book-detail) .book-detail li{color:#26394b}
body:has(.book-detail) .book-detail .eyebrow,body:has(.book-detail) .book-detail .number{color:#a07a2c}
.art-img img{box-shadow:0 14px 36px #84612433}
.art-gen img{aspect-ratio:1/1;max-width:560px;margin-inline:auto}.art-gen figcaption{text-align:center;font-size:14px;color:#846124;margin-top:8px}.art-fail{border:1px solid #d4b477;border-radius:12px;padding:14px;color:#7a4a00;background:#fff7e6}

/* ===== Site-wide royal-blue theme (Chanan 2026-10-15) ===== */
:root{--royal:#0f2c5c;--royal-2:#143a75;--royal-3:#0b2247;--paper:#0f2c5c;--ink:#ffffff;--muted:#ffffff;--line:#d4b47744}
html{background:#0f2c5c!important}body{background:#0f2c5c linear-gradient(180deg,#0b2247 0px,#0f2c5c 900px,#123468 100%)!important;color:#fff!important}
table,thead,tbody,tr,td,th{background:transparent!important;border-color:#d4b47744!important}thead th,thead td{background:#0a1f42!important}
main,section,article,aside,.section,.intro,.legacy-band,.home-books,.book-detail,.family-row,.card,.book-card,.panel,.reading,.noach,.founder,
body:has(.book-detail) main,body:has(.book-detail) .b377-wrap,.b377-wrap,.page-head{background-color:transparent!important;background-image:none!important}
.site-header,.footer{background:#0a1f42!important}
.ph-img,.page-head.ph-img,.hero{background:transparent!important}
/* card-like light boxes -> translucent royal panels */
[class*="card"],.hb-grid a,.book-list a,.zchat-embed,#zchat-embed>div{background:#ffffff0d!important;border-color:#d4b47755!important}
/* text */
body p,body li,body dd,body dt,body td,body th,body span,body blockquote,body figcaption,body small,body label,.prose p,.lead,.muted,
body:has(.book-detail) .book-detail p,body:has(.book-detail) .book-detail li,.founder-text p{color:#fff!important}
h1,h2,h3,h4,h5,body:has(.book-detail) .b377-wrap h1,body:has(.book-detail) .book-detail h2,body:has(.book-detail) .book-detail h3,.founder-text h2{color:#f4ecd8!important}
h2,h3{color:#e6c98f!important}
.eyebrow,.eyebrow.dark,.number,.brand-small,.breadcrumb,.breadcrumb a,body:has(.book-detail) .b377-wrap p,.founder .eyebrow,.art-gen figcaption{color:#e6c98f!important}
a{color:#e6c98f}
.nav a,.footer a,.text-link,.prose a{color:#e6c98f!important}
.nav a[aria-current="page"]{color:#fff!important}
.button,.button.secondary{border-color:#d4b477!important;color:#e6c98f!important;background:transparent!important}
.button:not(.secondary){background:#d4b477!important;color:#0b2247!important}
input,textarea,select{background:#fff!important;color:#0b2247!important}
.art-fail{background:#ffffff14!important;color:#ffe2a8!important}
/* mobile: keep floating chat button off content */

@media(max-width:800px){.zc-btn{bottom:10px!important;left:10px!important;padding:8px 12px!important;font-size:13px!important}.founder-photo{max-width:200px!important}}
.book,.book-top,.book:nth-child(3n+2) .book-top,.book:nth-child(3n+3) .book-top{background:#ffffff0f!important;border-color:#d4b47755!important}
.book-no,.book-no span{color:#e6c98f!important}.book-no span:last-child{background:#d4b477!important}
.book-bottom a,.book h3 a{color:#e6c98f!important;border-color:#d4b477!important}
.skip,.skip:focus{background:#d4b477!important;color:#0b2247!important}
.brand-sub{display:block;font-size:12px;line-height:1.3;color:#e6c98f!important;margin-top:3px;white-space:normal;max-width:260px}
/* KAN-508: unified FO60 book template. One color: dark luxurious blue, white text, minimal gold. */
body:has(.book-detail){background:#0f2c5c linear-gradient(180deg,#0b2247 0px,#0f2c5c 900px,#123468 100%)!important;color:#fff!important}
body:has(.book-detail) .b377-wrap h1,body:has(.book-detail) .b377-wrap p,body:has(.book-detail) .book-detail h2,body:has(.book-detail) .book-detail h3,body:has(.book-detail) .book-detail p,body:has(.book-detail) .book-detail li,body:has(.book-detail) .number{color:#fff!important}
body:has(.book-detail) .b377-wrap{padding-top:44px}
body:has(.book-detail) .book-detail .prose{font-family:'Frank Ruhl Libre',Georgia,serif;font-size:19px;line-height:1.85}
body:has(.book-detail) .book-detail h2{font-weight:700;border-bottom:1px solid #d4b47755;padding-bottom:8px}
body:has(.book-detail) .number{opacity:.35}
body:has(.book-detail) .b377-topics li,body:has(.book-detail) .reading{background:transparent!important;border-color:#ffffff33!important;color:#fff!important}
.zc-e{background:#ffffff0a!important;color:#fff!important;border:1px solid #ffffff2e!important;border-top:1px solid #ffffff2e!important;border-radius:12px}
.zc-e .zc-t,.zc-e .zc-i,.zc-e .zc-topics h3,.zc-e .zc-topics li{color:#fff!important}
.zc-e .zc-topics li{border-color:#ffffff55!important}
.zc-e .zc-f input{background:#ffffff14!important;color:#fff!important;border:1px solid #ffffff55!important}
.zc-e .zc-f input::placeholder{color:#ffffffaa}
.zc-e .zc-f button{background:#fff!important;color:#0b2247!important;font-weight:700}
.zc-e .zc-q{color:#fff!important;background:transparent!important;border:0!important;border-bottom:1px solid #ffffff33!important;border-radius:0!important;padding:4px 0 10px!important;font-family:'Frank Ruhl Libre',Georgia,serif;font-size:20px!important}
.zc-e .zc-ql{color:#ffffffb3!important;font-family:Arial,sans-serif}
.zc-e .zc-a{background:transparent!important;border:0!important;padding:8px 0 0!important;color:#fff!important}
.zc-e .zc-a::first-line{color:#fff!important;font-size:24px}

/* KAN-508: full-width image at the very top of the book header (halacha) */
.bk-top .wrap{flex-direction:column!important;align-items:stretch!important;gap:26px!important}
.bk-top .bk-side{order:-1;flex:0 0 auto!important;width:100%!important}
.bk-top .bk-side img{aspect-ratio:1600/633!important}
.page-head.bk-top{padding-top:28px!important}
/* Mobile header fix: brand wraps inside the viewport */
.brand{flex-shrink:1!important;min-width:0}
.brand>span:last-child{min-width:0}
.brand-name,.brand-sub{display:block!important;white-space:normal!important;overflow-wrap:anywhere}
@media(max-width:800px){.brand{max-width:calc(100% - 110px)}.brand-name{font-size:19px!important}.brand-sub{font-size:11px!important;max-width:none}}
body:has(.book-detail) .page-head.bk-top{padding-top:16px!important}
.page-head.bk-top .wrap{padding-top:0!important}
/* No green/greenish titles: all headings, brand and subtitles white */
h1,h2,h3,h4,h5,.brand-name,.brand-sub,.page-head p,.b377-wrap p,.zc-e .zc-t,.fo60 h1,.fo60 h2,.footer .brand-name{color:#fff!important}
.founder-text h2,main h2{color:#fff!important}
/* One blue: buttons too */
.zc-e .zc-f button,a.button,.button{background:#0b2247!important;color:#fff!important;border:1px solid #ffffffaa!important}
.zc-e .zc-f button:hover,a.button:hover{background:#123468!important}
a.button:not(.secondary),.button:not(.secondary),.button.secondary{background:#0b2247!important;color:#fff!important;border:1px solid #ffffffaa!important}

/* Home portrait: always visible; on mobile it comes first in its section */
.legacy-photo,.legacy-photo picture,.legacy-photo img{display:block!important;visibility:visible!important;opacity:1!important}
@media(max-width:800px){.legacy-band .legacy-photo{order:-1}}

/* Home description paragraph */
.zdesc{color:#fff!important;font-family:'Frank Ruhl Libre',Georgia,serif;font-size:22px;line-height:1.7;margin:22px 0 0;padding-inline-start:16px;border-inline-start:2px solid #d4b477}
.zdesc-m{display:none}
@media(max-width:800px){.zdesc-d{display:none}.zdesc-m{display:block;font-size:18px;text-align:center;border:0;padding:0;margin:14px auto 0;max-width:440px}}
.legacy-band p.zdesc-d{font-size:22px!important;border-inline-start-color:#d4b477!important}
/* KAN-523 article layout on static book pages: bold subheading per paragraph, sentence per line, light-gray rule,
   13cm column desktop / 5cm + 13px on phone. */
.k523{width:13cm;max-width:calc(100% - 32px);margin-inline:auto;direction:rtl;text-align:left;overflow-wrap:anywhere;font-family:'Frank Ruhl Libre',Georgia,serif;font-size:20px;line-height:1.85;color:#fff}
.k523 h3.k523-h{font-weight:700;color:#fff!important;font-size:21px;line-height:1.4;margin:0 0 6px}
.k523 p.k523-p{margin:0;color:#fff}.k523 .k523-s{display:block}
.k523 hr.k523-hr{border:0;height:1px;background:#d9dee0;opacity:.5;margin:20px 0}
@media(max-width:800px){.k523{width:5cm;max-width:calc(100% - 24px);font-size:11px;line-height:1.7}.k523 h3.k523-h{font-size:12px}.k523 hr.k523-hr{margin:14px 0}}
/* KAN-534 copy-article button */
.k523-copy{display:block;margin:0 auto 18px;width:13cm;max-width:calc(100% - 32px);background:#0b2247;color:#fff;border:1px solid #ffffffaa;border-radius:8px;padding:9px 18px;font:600 15px Arial,sans-serif;cursor:pointer;min-height:42px;text-align:center}
.k523-copy:hover{background:#123468}
@media(max-width:800px){.k523-copy{width:5cm;max-width:calc(100% - 24px);font-size:13px}}
/* ===== Phone type scale & alignment (Chanan 17.10): base 11px; emphasis 12-13px bold only; one RTL right edge;
   consistent margins and section spacing; centered column. Desktop unchanged. ===== */
.skip{position:fixed!important;top:8px!important;inset-inline-start:8px;transform:translateY(-200%)!important;clip-path:inset(50%)!important;opacity:0;pointer-events:none}
.skip:focus,.skip:focus-visible{transform:none!important;clip-path:none!important;opacity:1;pointer-events:auto}
@media(max-width:800px){
 html:root body,html:root body *{font-size:11px!important;line-height:1.75!important;letter-spacing:0!important}
 html:root body :is(h1,h2,h3,h4,h5,h6,dt,legend,summary,th){font-weight:700!important;line-height:1.45!important}
 html:root body :is(h1,h2){font-size:13px!important}
 html:root body :is(h3,h4,h5,h6){font-size:12px!important}
 html:root body :is(h1,h2,h3,h4) *{font-size:inherit!important}
 html:root body :is(.brand-name,.l5-t,.zc-t,.fo60 h1){font-size:13px!important;font-weight:700!important}
 html:root body :is(.eyebrow,.brand-small,.l5-h,.k523-h,.fo60-sh,.zc-q,.zc-ql,.fo60-ql,.fo60-q){font-size:12px!important;font-weight:700!important}
 html:root body :is(.eyebrow){letter-spacing:.02em!important}
 html:root body :is(.nav a){font-size:12px!important;font-weight:700!important}
 html:root body :is(button,.button,input[type=submit],.zc-copy,.k523-copy,.menu-toggle){font-size:12px!important;font-weight:700!important;min-height:40px;line-height:1.3!important}
 html:root body :is(input,textarea,select){font-size:16px!important} /* avoids iOS auto-zoom on focus */
 html:root body .brand-mark{font-size:13px!important;font-weight:700!important}
 html:root body :is(.zc-img,.l5-hr,.k523-hr,.fo60-div){line-height:normal!important}
 /* alignment: one right edge, consistent gutters and spacing */
 html:root body .wrap{width:auto!important;max-width:none!important;margin-inline:16px!important;padding-inline:0!important}
 html:root body main :is(p,li,h1,h2,h3,h4,figcaption,blockquote,dd,dt){text-align:left!important}
 html:root body main :is(h1,h2){margin:0 0 8px!important}
 html:root body main :is(h3,h4){margin:16px 0 6px!important}
 html:root body main p{margin:0 0 10px!important}
 html:root body main :is(ul,ol){padding-inline-start:16px!important;margin:0 0 10px!important}
 html:root body main>section,html:root body main>article,html:root body .page-head,html:root body .legacy-band,html:root body .hero{padding-block:24px!important;margin-block:0!important}
 html:root body main section+section{border-top:1px solid #d4b47722}
 html:root body main img{max-width:100%!important;height:auto}
 html:root body .footer{padding-block:24px!important}
 html:root body .footer :is(p,span,a,div){text-align:left!important}
 html:root body .site-header .header-inner{padding-block:10px!important;gap:6px!important;align-items:flex-start!important}
 html:root body .nav a{display:block;padding:10px 0!important;border-bottom:1px solid #ffffff14}
 /* chat card + articles: same right edge as the page */
 html:root body .zc-e{padding:16px!important;margin-inline:0!important}
 html:root body .zdesc-m{text-align:center!important}
 html:root body .legacy-photo figcaption{text-align:center!important}
}
/* Header (Chanan 11:03): Z mark is a perfect circle; 'בית מדרש דיגיטלי' text sits further left of the mark. */
html:root body .brand-mark{width:44px!important;height:44px!important;aspect-ratio:1/1!important;flex:0 0 44px!important;border-radius:50%!important;display:grid!important;place-items:center!important;padding:0!important;line-height:1!important;box-sizing:border-box}
html:root body .brand{gap:22px!important}
@media(max-width:800px){html:root body .brand-mark{width:36px!important;height:36px!important;flex:0 0 36px!important}html:root body .brand{gap:16px!important}}
.book-topics{margin:28px 0 8px}
html:root body .hero-portrait .globe-cap{display:block!important;text-align:center!important;color:#fff!important;font-family:'Frank Ruhl Libre',Georgia,serif;font-size:17px;line-height:1.7;margin:14px auto 0;padding:0!important;max-width:560px}
@media(max-width:800px){html:root body .hero-portrait .globe-cap{font-size:11px!important;text-align:center!important;margin-top:10px}}
/* Home globe (Chanan 11:06): no frame at all; responsive */
html:root body .hero-portrait{padding:0!important;border:0!important;outline:0!important;box-shadow:none!important;background:none!important}
html:root body .hero-portrait:before,html:root body .hero-portrait:after{content:none!important;display:none!important}
html:root body .hero-portrait img{border:0!important;outline:0!important;box-shadow:none!important;background:none!important;border-radius:0!important;width:100%!important;max-width:100%!important;height:auto!important}
/* Home (Chanan 11:09): globe label + gold bars reuse the portrait caption style; photo and globe share one box size. */
html:root body .hero-portrait .globe-label{display:block}
html:root body .hero-portrait .globe-endbar{width:160px;max-width:50%;margin:16px auto 0;border-top:1px solid #d4b47788}
html:root body .hero-portrait,html:root body .legacy-photo{max-width:560px!important;width:100%!important;margin-inline:auto!important}
html:root body .hero-portrait img,html:root body .legacy-photo img{width:100%!important;max-width:560px!important;height:auto!important;aspect-ratio:4/3!important;object-fit:cover!important;margin-inline:auto!important;display:block!important}
html:root body .hero-portrait img{object-position:50% 50%!important}
html:root body .legacy-photo img{object-position:50% 30%!important}
@media(max-width:800px){html:root body .hero-portrait .globe-label{font-size:12px!important;font-weight:700!important}html:root body .hero-portrait .globe-label span{font-size:12px!important}}
@media(min-width:801px){html:root body .legacy-band{grid-template-columns:1fr minmax(0,560px)!important}html:root body .hero-grid{grid-template-columns:1fr minmax(0,560px)!important}html:root body .legacy-photo,html:root body .hero-portrait{margin-inline:0!important;justify-self:start}}
@media(min-width:1101px){html:root body .hero-grid{padding-inline:62px!important}}
@media(min-width:801px) and (max-width:1100px){html:root body .hero-grid{padding-inline:45px!important}}
/* Home polish (Chanan 11:10): each image + its label + caption form one section, closed by one gold bar; identical rhythm. */
html:root body .sec-label{display:inline-block;padding:0!important;border:0!important;color:#fff}
html:root body :is(.legacy-photo figcaption,.hero-portrait .globe-label){margin:16px 0 0!important;text-align:center!important;font-family:'Frank Ruhl Libre',Georgia,serif;font-size:20px;letter-spacing:.02em;line-height:1.4}
html:root body :is(.hero-portrait .globe-cap,.legacy-photo .zdesc-m){margin:8px auto 0!important;max-width:560px;text-align:center!important}
html:root body .sec-endbar{width:160px;max-width:50%;height:0;margin:18px auto 0!important;border-top:1px solid #d4b47788}
html:root body .hero-portrait .globe-endbar{display:none}
@media(min-width:801px){html:root body .legacy-photo .sec-endbar{margin-top:18px!important}}
@media(max-width:800px){html:root body :is(.legacy-photo figcaption,.hero-portrait .globe-label),html:root body :is(.legacy-photo figcaption,.hero-portrait .globe-label) .sec-label{font-size:12px!important;font-weight:700!important;margin-top:12px!important}
 html:root body :is(.hero-portrait .globe-cap,.legacy-photo .zdesc-m){margin-top:6px!important}html:root body .sec-endbar{margin-top:14px!important}}
/* Home page font rules (Chanan 11:12, phone AND desktop): everything 11px except the main page title; intro list 13px with inline bullets. */
html:root body.home :is(main,footer) :not(.hero h1):not(.hero h1 *):not(.home-list li){font-size:11px!important}
html:root body.home .home-list{list-style:none!important;padding:0!important;margin:14px 0 0!important;display:flex!important;flex-wrap:wrap;gap:4px 0;justify-content:flex-start}
html:root body.home .home-list li{font-size:13px!important;line-height:1.6!important;margin:0!important;padding:0!important;display:inline-flex;align-items:center}
html:root body.home .home-list li+li::before{content:"•";color:#d4b477;margin:0 10px;font-size:13px}
@media(max-width:800px){html:root body.home .hero h1,html:root body.home .hero h1 *{font-size:13px!important}}
/* 11:23 Chanan: לאור ההלכה page, divider directly under the site header, same style as the header/menu dividers (1px solid #d4b47755). Shared header already has a faint 1px #ffffff20 line on every page. */
html:root body:has(.nav a[href="/books/halacha/"][aria-current=page]) .site-header{border-bottom:1px solid #d4b47755!important}
/* 11:17-11:19 Chanan: סיפורי חסידים weekly story (character block, full story, image after opening paragraph, gold line between paragraphs, divider under story). 11px; 10px variant ready via body.ws-10 */
html:root body .weekly-story{margin:22px 0 0}
html:root body .weekly-story .ws-open{font-size:13px!important;font-weight:700!important;color:#d4b477!important;margin:0 0 6px!important}
html:root body .weekly-story .ws-title{font-size:12px!important;font-weight:700!important;color:#fff!important;margin:0 0 12px!important}
html:root body .weekly-story .ws-body,html:root body .weekly-story .ws-body *,html:root body .weekly-story .ws-ref,html:root body .weekly-story .ws-gap{font-size:11px!important;line-height:1.75}
html:root body .weekly-story .k523-s{display:block}
html:root body .weekly-story hr.ws-gold{border:0!important;height:0!important;background:none!important;border-top:1px solid #d4b47788!important;opacity:1!important;margin:14px 0!important}
html:root body .weekly-story .ws-img{margin:14px 0!important;padding:0!important;border:0!important}
html:root body .weekly-story .ws-img img{width:100%!important;max-width:560px;height:auto!important;aspect-ratio:16/9;object-fit:cover;display:block;margin:0 auto;border:0!important;border-radius:0!important}
html:root body .weekly-story .ws-ref{color:#c8d2d8!important;margin:12px 0 0!important}
html:root body .weekly-story .ws-gap{color:#c8d2d8!important;font-style:italic}
html:root body hr.ws-div{border:0!important;height:0!important;border-top:1px solid #d4b47788!important;margin:22px auto!important;width:160px;max-width:50%}
html:root body.ws-10 .weekly-story .ws-body,html:root body.ws-10 .weekly-story .ws-body *,html:root body.ws-10 .weekly-story .ws-ref{font-size:10px!important}
/* 11:14-11:15 Chanan: method page in home style + FO60 format: subheadings list, secondary serif font for subheadings, one sentence per line, thin gray line under each paragraph, gold bar closing each part. Essay text unchanged. */
html:root body .m523 .k523-s{display:block}
html:root body .m523 hr.k523-hr{border:0!important;height:0!important;border-top:1px solid #d9dee080!important;margin:12px 0!important;background:none!important}
html:root body .m523 :is(h2,h3){font-family:'Frank Ruhl Libre',Georgia,serif!important;font-weight:700!important}
html:root body .m523 h2{color:#d4b477!important;margin:22px 0 10px!important}
html:root body .m523 h3{color:#fff!important;margin:16px 0 6px!important}
html:root body .m523 .m-toc ul{list-style:none!important;margin:0!important;padding:0!important}
html:root body .m523 .m-toc li{margin:0 0 4px!important;padding:0!important;font-family:'Frank Ruhl Libre',Georgia,serif}
html:root body .m523 .m-toc li.t-h3{padding-inline-start:14px!important}
html:root body .m523 .m-toc li.t-h2 a{color:#d4b477!important;font-weight:700!important}
html:root body .m523 .m-toc a{color:#c8d2d8!important;text-decoration:none!important}
html:root body .m523 .sec-endbar{display:block!important}
/* 11:14-11:16 Chanan: 11px standard on DESKTOP too, for all pages except home (home has its own 11:12 rule). Same scale as phone: body 11px; h2 13px bold, h3/eyebrow 12px bold; only the page title (h1) larger. Bold/gold kept. Inputs keep a usable size. */
@media(min-width:801px){
html:root body:not(.home) :is(main,footer) :is(p,li,span,a,td,th,label,figcaption,blockquote,div,strong,em,small,dd,dt,b,i,q,cite):not(h1 *):not(h2 *):not(h3 *){font-size:11px!important}
html:root body:not(.home) :is(main,footer) :is(p,li,td,div,span){line-height:1.75}
html:root body:not(.home) main :is(h2,h2 *){font-size:13px!important;font-weight:700!important;line-height:1.45!important}
html:root body:not(.home) main :is(h3,h3 *,h4,h4 *,.eyebrow,.number,.zc-t){font-size:12px!important;font-weight:700!important;line-height:1.45!important}
html:root body:not(.home) main h2.zc-t{font-size:13px!important}
html:root body:not(.home) main .page-head :is(p,.bk-text p){font-size:11px!important}
html:root body:not(.home) main :is(h2,h3){margin-block:1.2em .5em!important}
html:root body:not(.home) main :is(input,textarea){font-size:13px!important}
html:root body:not(.home) main button{font-size:12px!important;font-weight:700!important}
}
.nav a.lang-he{font-family:'Frank Ruhl Libre',Georgia,serif;color:#d4b477}

/* Body text scale (Chanan 25.10): phones 11px (above), desktop 13px; headings unchanged */
@media(min-width:801px){html:root body :is(#main,footer) :is(p,li,td,th,figcaption,blockquote,dd,dt,label,span,a,div,strong,em,small,b,i,q,cite,.zdesc,.prose,.intro,.k523):not(h1,h2,h3,h4,h1 *,h2 *,h3 *,h4 *,.hero h1 *,.home-list li,.eyebrow,.eyebrow *,.number,.zc-t,button,button *){font-size:13px!important;line-height:1.75!important}}
/* Desktop home section headings/eyebrows 13px (Chanan 25.10 17:36) */
@media(min-width:801px){html:root body.home :is(#main,footer) :is(h2,h3,h4,h5,h6,.eyebrow,.sec-label,h2 *,h3 *,h4 *,.eyebrow *){font-size:13px!important}}
/* Chanan 25.10 17:39 (EN desktop): roomier masthead, larger inner-page text, tighter page hero */
@media(min-width:801px){
html:root body .site-header .header-inner{padding:28px 0 10px!important;column-gap:44px!important;row-gap:20px!important;flex-wrap:wrap!important;align-items:center!important;min-height:0!important}
html:root body .site-header .brand{gap:20px!important}
html:root body .site-header .brand-name{font-size:24px!important;line-height:1.3!important}
html:root body .site-header .brand-sub{font-size:13px!important;line-height:1.55!important;margin-top:6px!important;max-width:300px!important}
html:root body .site-header .header-inner>span{line-height:1.5!important}
html:root body .site-header .nav{flex-basis:100%!important;margin:4px 0 0!important;padding:14px 0 12px!important;border-top:1px solid #ffffff1a;display:flex!important;flex-wrap:wrap!important;gap:8px 30px!important}
html:root body .site-header .nav a{font-size:16px!important;line-height:1.5!important;padding-block:8px!important}
html:root body:not(.home) :is(#main,footer) :is(p,li,td,th,figcaption,blockquote,dd,dt,label,span,a,div,strong,em,small,b,i,q,cite):not(h1 *,h2 *,h3 *,h4 *,.eyebrow,.eyebrow *,.number,button,button *){font-size:16px!important;line-height:1.8!important}
html:root body:not(.home) #main :is(h2,h2 *){font-size:24px!important;line-height:1.35!important}
html:root body:not(.home) #main :is(h3,h3 *,h4,h4 *){font-size:19px!important;line-height:1.4!important}
html:root body:not(.home) #main :is(.eyebrow,.eyebrow *){font-size:14px!important}
html:root body:not(.home) #main .page-head :is(p,.bk-text p,p *){font-size:21px!important;line-height:1.6!important;margin-top:16px!important}
html:root body:not(.home) #main .page-head{padding:20px 0 24px!important;min-height:0!important}
html:root body:not(.home) #main .page-head>.wrap{padding-block:20px!important;min-height:0!important;align-items:center!important}
html:root body:not(.home) #main .section{padding-block:48px!important}
}
