/* Shared visual language: illustrated covers, parchment, navy and warm gold. */
:root{--tq-navy:#102d4c;--tq-gold:#edc775;--tq-cream:#fbf6e9;--tq-line:#ddceb2}
html{scroll-padding-top:18px}body[data-tq-page]{background:var(--tq-cream);color:#193449}body[data-tq-page] [hidden]{display:none!important}
#tq-shell{font:15px/1.35 "Avenir Next","Segoe UI",Arial,sans-serif;color:#17384c;margin:0;background:var(--tq-cream)}
#tq-shell *{box-sizing:border-box}#tq-shell a{text-decoration:none}#tq-shell button{font:inherit;cursor:pointer}#tq-shell .tq-masthead{background:#0c2946;border-bottom:2px solid #d6ac5c;color:#fff}
#tq-shell .tq-bar{width:min(1240px,calc(100% - 48px));margin:auto;display:flex;align-items:center;justify-content:space-between;gap:20px;min-height:70px}
#tq-shell .tq-logo{display:flex;align-items:center;gap:11px;color:#fff;font-size:19px;letter-spacing:.045em;font-weight:650;line-height:1.15;white-space:nowrap}
#tq-shell .tq-logo svg{width:37px;height:34px;fill:none;stroke:#edcd83;stroke-width:1.6;flex:none}#tq-shell .tq-logo strong{color:#f1cf82;font-weight:650}#tq-shell .tq-logo small{display:block;font-size:13px;font-weight:400;letter-spacing:0;color:#e0c998;margin-top:4px;text-align:center}
#tq-shell .tq-account{display:flex;align-items:center;gap:18px}#tq-shell .tq-language{display:flex;gap:1px;border:1px solid #56718a;border-radius:8px;padding:3px}#tq-shell .tq-language button{border:0;background:transparent;color:#e2eaf1;min-height:32px;padding:4px 9px;border-radius:5px;font-size:13px}#tq-shell .tq-language button[aria-pressed=true]{background:#eed195;color:#142f48}
#tq-shell .tq-login{display:flex;align-items:center;gap:8px;background:linear-gradient(120deg,#f7dda0,#e7b956);color:#173348;padding:10px 20px;border-radius:22px;font-size:14px;font-weight:650}#tq-shell .tq-bh{font-size:12px;color:#dfcfb0}
#tq-shell .tq-subjects{width:min(1240px,calc(100% - 48px));margin:14px auto 0;display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px}
#tq-shell .tq-subject{display:grid;grid-template-columns:47px 1fr;align-content:center;column-gap:9px;min-width:0;min-height:65px;padding:7px;border:1px solid var(--tq-line);border-radius:10px;background:#fffdf7;color:#244158;box-shadow:0 3px 8px #5c482008}
#tq-shell .tq-subject img{grid-row:1/3;width:47px;height:48px;object-fit:cover;border-radius:6px;align-self:center}#tq-shell .tq-subject .tq-fr,#tq-shell .tq-subject .tq-he{font-size:14px;font-weight:600;line-height:1.4;text-align:start;align-self:center}#tq-shell .tq-subject .tq-he{color:#6b5937}#tq-shell .tq-subject[aria-current=page]{border:2px solid #b88832;padding:6px;background:#fff2d0;box-shadow:0 3px 0 #d2b57c}
#tq-shell .tq-shortcuts{display:flex;justify-content:flex-end;gap:18px;width:min(1240px,calc(100% - 48px));margin:10px auto 0;padding-bottom:10px;border-bottom:1px solid #dfd1b5}#tq-shell .tq-shortcuts a{display:flex;gap:7px;align-items:center;min-height:32px;font-size:12px;color:#365268}
#tq-shell a:hover{filter:brightness(1.06)}#tq-shell a:focus-visible,#tq-shell button:focus-visible,.tq-actions a:focus-visible,.tq-lesson-actions a:focus-visible{outline:3px solid #188084;outline-offset:4px}
html[data-mode=he] #tq-shell .tq-he,html[data-mode=he] .tq-action .tq-he{order:-1}html[data-mode=he] #tq-shell .tq-subject .tq-he{grid-column:2;grid-row:1}html[data-mode=he] #tq-shell .tq-subject .tq-fr{grid-column:2;grid-row:2}
body[data-tq-page=home] .wrap{width:min(1240px,calc(100% - 48px))}body[data-tq-page=home] .hero{background-position:right 57%}body[data-tq-page=home] .hero-copy{width:64%;padding:26px 0 31px}body[data-tq-page=home] .eyebrow{margin-bottom:10px;font-size:11px}body[data-tq-page=home] .hero-title{font-family:Georgia,"Times New Roman",serif;font-size:clamp(28px,3vw,42px);font-weight:600;letter-spacing:-.025em;line-height:1.12;gap:9px}body[data-tq-page=home] .hero-title em{font-style:normal;color:#f1d082}body[data-tq-page=home] .hero-title .he{font:500 clamp(23px,2.3vw,33px)/1.2 Arial,sans-serif;color:#f3dcaa}body[data-tq-page=home] .hero-description{margin:12px 0 0;font-size:15px}body[data-tq-page=home] .hero-signature{display:none}
.tq-actions{position:relative;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px;margin-top:-12px!important;z-index:1}.tq-action{display:flex;align-items:center;gap:14px;min-height:102px;padding:15px 20px;border:1px solid #d9bb71;border-radius:12px;box-shadow:0 5px 16px #16304916,inset 0 0 0 3px #ffffff13;color:#fff;isolation:isolate;position:relative;overflow:hidden}.tq-action::before{content:"";position:absolute;inset:0;z-index:-1;opacity:.18;background:url('/assets/subjects/houmach-v1.webp') right center/cover}.tq-action-learn{background:#163f61}.tq-action-watch{background:linear-gradient(120deg,#f5d78c,#e9ad3e);color:#193a4c}.tq-action-play{background:#12665c}.tq-action-icon{width:47px;height:47px;display:grid;place-items:center;flex:none;border:1px solid #ffe4a873;border-radius:50%;font-size:30px;color:#f5db9d}.tq-action-watch .tq-action-icon{color:#23445b;border-color:#8e661c55}.tq-action>span:nth-child(2){display:grid;grid-template-columns:auto auto;gap:3px 12px;align-items:center;flex:1}.tq-action .tq-fr,.tq-action .tq-he{font-size:21px;font-weight:650;line-height:1.2}.tq-action small{grid-column:1/-1;font-size:12px;opacity:.9}.tq-arrow{font-size:20px}.tq-action:hover{transform:translateY(-2px)}
body[data-tq-page=home] .study-hub{padding-top:22px}body[data-tq-page=home] .section-heading{margin-bottom:13px;justify-content:center;text-align:center}body[data-tq-page=home] .section-kicker{display:none}body[data-tq-page=home] .section-heading h2{font-family:Georgia,serif;font-size:27px;letter-spacing:0}body[data-tq-page=home] .subject-grid{grid-template-columns:repeat(6,minmax(0,1fr));gap:12px}body[data-tq-page=home] .subject-card{display:flex;flex-direction:column;border-radius:10px;border-color:#d6c49d;box-shadow:0 4px 10px #6d522410;background:#fffcf3}body[data-tq-page=home] .subject-heading{order:1;display:flex;flex-direction:column;align-items:center;gap:2px;font-size:18px;padding:10px 6px 8px;background:#fff9ea}body[data-tq-page=home] .subject-heading .he{font-size:18px;color:var(--accent)}body[data-tq-page=home] .subject-art{aspect-ratio:1.7;flex:none}body[data-tq-page=home] .subject-content{order:2;padding:0 9px 7px;background:#fff9ea}body[data-tq-page=home] .subject-content:before,body[data-tq-page=home] .subject-content>p,body[data-tq-page=home] .round-arrow,body[data-tq-page=home] .art-corner{display:none}body[data-tq-page=home] .card-bottom{display:block;text-align:center;font-size:11px;padding:6px 0 0;min-height:0;border-color:#e5d7bb;line-height:1.35}.tq-feature{display:flex;align-items:center;gap:25px;margin:22px auto 18px;padding:0 20px 0 0;border:1px solid #ddc99d;border-radius:12px;overflow:hidden;background:#f0e7d2}.tq-feature img{width:170px;height:92px;object-fit:cover}.tq-feature h2{font:24px/1.2 Georgia,serif;color:#16384b}.tq-feature p{margin:5px 0 0;font-size:19px;color:#716039;text-align:start}.tq-feature>a{display:flex;flex-direction:column;margin-left:auto;padding:10px 17px;border-radius:23px;background:#143e48;color:#fff;font-size:13px;text-align:center;white-space:nowrap}body[data-tq-page=home] .motto{padding:0 0 20px}body[data-tq-page=home] .footer{background:#f0eadb;border-color:#dac9a9}body[data-tq-page=home] .footer-inner{padding-block:20px}
.tq-back{display:inline-flex;align-items:center;min-height:40px;margin-top:10px;color:#365b73;text-decoration:none;font-size:14px}.tq-lesson-actions{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0}.tq-lesson-actions a{display:flex;align-items:center;gap:9px;text-decoration:none;padding:10px 14px;min-height:46px;border:1px solid #cfb67c;border-radius:9px;background:#fff4d6;color:#173f52;font-size:15px;font-weight:650}.tq-lesson-actions a:nth-child(2){background:#e5f3ed}.tq-lesson-actions a:nth-child(3){background:#e6effb}.tq-lesson-actions a:nth-child(4){background:#f3e9f4}body[data-tq-page] :is(.parasha-chooser,.chooser){border-color:#d6bd83;border-top-color:#bd954b;background:#fffdf6}body[data-tq-page] .lesson-view{margin-top:18px}body[data-tq-page] .lesson-head{background:linear-gradient(110deg,#133750,#295f71)}body[data-tq-page] .compact-heading{margin:16px 0 12px}body[data-tq-page] .compact-heading h1{font-size:25px}body[data-tq-page=guemara] main{padding-top:20px}body[data-tq-page=guemara] .intro{margin-bottom:20px}body[data-tq-page=guemara] .intro h1{font-size:34px}body[data-tq-page=guemara] .chapters{margin-bottom:20px}body[data-tq-page=guemara] .chapters button{border-color:#cebb90}body[data-tq-page=guemara] .chapters button[aria-pressed=true]{background:#153d56;color:white;border-color:#bd954b}
.tq-history-intro{display:flex;justify-content:space-between;gap:24px;align-items:center;width:min(1240px,calc(100% - 48px));margin:18px auto;padding:20px 28px;border-radius:13px;background:linear-gradient(90deg,#0d3f4eee,#153a51bb),url('/assets/subjects/histoire-v1.webp') center 35%/cover;color:#fff}.tq-history-intro h1{font:32px/1.2 Georgia,serif;margin:5px 0}.tq-history-intro p{margin:6px 0;color:#f6dfa4}.tq-history-intro .tq-kicker{font:11px Arial,sans-serif;letter-spacing:.12em}.tq-history-intro>span{font-size:14px;line-height:1.6}.tq-history-intro [lang=he]{text-align:start;font-size:24px}body[data-tq-page=histoire] .main-wrap{width:min(1240px,calc(100% - 48px))}body[data-tq-page=histoire] .level-section{padding:12px 0 20px;margin:0}body[data-tq-page=histoire] .level-section .section-intro{margin-bottom:10px}body[data-tq-page=histoire] .level-section .section-intro>p,body[data-tq-page=histoire] .level-section .section-intro .overline{display:none}body[data-tq-page=histoire] .level-section h2{font-size:21px}body[data-tq-page=histoire] .level-section .section-intro>div{display:flex;align-items:center;gap:15px}body[data-tq-page=histoire] .level-section .section-intro p{margin:0;font-size:18px}body[data-tq-page=histoire] .level-card{padding:12px 15px;min-height:0;border-color:#d6c59f}body[data-tq-page=histoire] .level-description{display:none}body[data-tq-page=histoire] .explorer{padding-top:8px}body[data-tq-page=histoire] .explorer-title{margin-bottom:12px}body[data-tq-page=histoire] .explorer-title .overline{display:none}body[data-tq-page=histoire] .explorer-title h2{font-size:25px}body[data-tq-page=histoire] .browse-tabs button{min-height:52px;background:#fff7df;border:1px solid #d6bd83}body[data-tq-page=histoire] .browse-tabs button[aria-pressed=true]{background:#173e55;color:#fff;border-color:#173e55}body[data-tq-page=histoire] .history-heading{padding:14px 0}body[data-tq-page=histoire] .history-heading h1,body[data-tq-page=histoire] .history-heading h1 bdi{font-size:28px}body[data-tq-page=histoire] .history-heading>p{display:none}body[data-tq-page=histoire] .chooser summary{margin-bottom:12px;color:#254b62;font-weight:650}body[data-tq-page=histoire] .lesson-title{margin:15px 0}body[data-tq-page=histoire] .learning-tabs{position:sticky;top:0;z-index:5;background:#fbf6e9;padding:8px 0;border:0;gap:9px}body[data-tq-page=histoire] .learning-tabs button{background:#fff9e9;border:1px solid #d6bc85;border-radius:10px;min-height:58px}body[data-tq-page=histoire] .learning-tabs button[aria-pressed=true]{background:#183d55;color:#e5c67e}body[data-tq-page=histoire] .learning-tabs button[aria-pressed=true] span{color:#fff}
@media(max-width:1000px){#tq-shell .tq-subject{grid-template-columns:1fr;text-align:center;padding:9px 4px}#tq-shell .tq-subject img{display:none}#tq-shell .tq-subject .tq-fr,#tq-shell .tq-subject .tq-he{text-align:center}html[data-mode=he] #tq-shell .tq-subject .tq-fr,html[data-mode=he] #tq-shell .tq-subject .tq-he{grid-column:1}.tq-action{padding:14px;gap:9px}.tq-action-icon{width:36px;height:36px;font-size:24px}.tq-action>span:nth-child(2){grid-template-columns:1fr;gap:3px}.tq-action .tq-fr,.tq-action .tq-he{font-size:18px}.tq-action small{font-size:11px}.tq-arrow{display:none}body[data-tq-page=home] .subject-grid{gap:9px}body[data-tq-page=home] .subject-heading{font-size:16px}body[data-tq-page=home] .subject-heading .he{font-size:16px}body[data-tq-page=home] .subject-content{display:none}}
@media(max-width:650px){#tq-shell .tq-bar{width:calc(100% - 24px);min-height:64px;gap:8px}#tq-shell .tq-logo{font-size:14px;gap:6px}#tq-shell .tq-logo svg{width:26px}#tq-shell .tq-logo small{font-size:11px}#tq-shell .tq-account{gap:8px}#tq-shell .tq-login{padding:9px 12px;font-size:12px}#tq-shell .tq-login .tq-he{display:none}html[data-mode=he] #tq-shell .tq-login .tq-fr{display:none}html[data-mode=he] #tq-shell .tq-login .tq-he{display:inline}#tq-shell .tq-language button{font-size:12px;padding:4px 6px}#tq-shell .tq-bh{display:none}#tq-shell .tq-subjects{width:calc(100% - 24px);grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin-top:10px}#tq-shell .tq-subject{min-height:51px;padding:5px}#tq-shell .tq-subject .tq-fr,#tq-shell .tq-subject .tq-he{font-size:13px}#tq-shell .tq-subject[aria-current=page]{padding:4px}#tq-shell .tq-shortcuts{width:calc(100% - 24px);justify-content:space-between;gap:7px;margin-top:7px;padding-bottom:5px}#tq-shell .tq-shortcuts a{font-size:11px;gap:4px}
body[data-tq-page=home] .wrap{width:calc(100% - 24px)}body[data-tq-page=home] .hero-copy{width:100%;padding:20px 0 27px}body[data-tq-page=home] .hero-title{font-size:28px;gap:8px}body[data-tq-page=home] .hero-title .he{font-size:23px}body[data-tq-page=home] .hero-description{font-size:13px;margin-top:9px}body[data-tq-page=home] .hero::before{background:linear-gradient(90deg,#092c4fe8,#092c4fad 65%,#092c4f66)}body[data-tq-page=home] .eyebrow{font-size:10px;margin-bottom:9px}.tq-actions{gap:7px;margin-top:-10px!important}.tq-action{min-height:86px;padding:12px 6px;justify-content:center;text-align:center;border-radius:9px}.tq-action-icon,.tq-action small{display:none}.tq-action>span:nth-child(2){gap:7px}.tq-action .tq-fr,.tq-action .tq-he{font-size:15px}body[data-tq-page=home] .study-hub{padding-top:17px}body[data-tq-page=home] .section-heading{margin-bottom:11px;align-items:center}body[data-tq-page=home] .section-heading h2{font-size:23px}body[data-tq-page=home] .subject-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}body[data-tq-page=home] .subject-art{aspect-ratio:1.8}body[data-tq-page=home] .subject-heading{font-size:15px;padding:7px 3px;gap:3px}body[data-tq-page=home] .subject-heading .he{font-size:15px}.tq-feature{margin-top:17px;gap:12px;padding-right:12px;min-height:90px}.tq-feature img{width:65px;height:104px}.tq-feature h2{font-size:18px}.tq-feature p{font-size:15px}.tq-feature>a{font-size:11px;padding:8px 10px;white-space:normal;min-width:84px}.tq-feature .tq-he{display:none}
.tq-history-intro{width:calc(100% - 24px);padding:17px;margin:12px auto}.tq-history-intro h1{font-size:25px}.tq-history-intro [lang=he]{font-size:21px}.tq-history-intro>span{display:none}body[data-tq-page=histoire] .main-wrap{width:calc(100% - 24px)}body[data-tq-page=histoire] .level-section .section-intro>div{display:block}body[data-tq-page=histoire] .level-section .section-intro p{font-size:16px;margin-top:5px}body[data-tq-page=histoire] .levels{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}body[data-tq-page=histoire] .level-card{display:flex;flex-direction:column;padding:10px 5px;text-align:center;gap:5px}body[data-tq-page=histoire] .level-symbol{display:none}body[data-tq-page=histoire] .level-name,body[data-tq-page=histoire] .level-name bdi{font-size:14px}body[data-tq-page=histoire] .level-age{font-size:11px}body[data-tq-page=histoire] .explorer-title h2{font-size:23px}body[data-tq-page=histoire] .learning-tabs{gap:6px}body[data-tq-page=histoire] .learning-tabs button{gap:5px;padding:9px 4px;font-size:11px}body[data-tq-page=histoire] .learning-tabs button span{font-size:15px;display:flex;flex-direction:column;gap:3px}.tq-lesson-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.tq-lesson-actions a{display:flex;flex-direction:column;gap:3px;text-align:center;padding:9px 5px;font-size:14px}.tq-lesson-actions a:last-child{grid-column:1/-1;flex-direction:row;justify-content:center;gap:12px}body[data-tq-page] .compact-heading h1{font-size:21px}body[data-tq-page=guemara] .intro h1{font-size:28px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.tq-action:hover{transform:none}}
/* Shared blue and gold masthead, preserving the illustrated home layout. */
#tq-shell .tq-masthead{background:linear-gradient(110deg,#10428d,#1464ad)}
body[data-tq-page=emerald] .hero-inner{min-height:210px}body[data-tq-page=emerald] .hero-copy{padding-block:22px;width:65%}body[data-tq-page=emerald] .hero h1{font-size:clamp(30px,3.4vw,45px)}body[data-tq-page=emerald] .hero-rule{display:none}body[data-tq-page=emerald] .main-actions{margin-top:12px}body[data-tq-page=emerald] .action-card{min-height:100px;padding:16px 20px}body[data-tq-page=emerald] .action-copy h2{font-size:24px}body[data-tq-page=emerald] .subject-grid{grid-template-columns:repeat(6,minmax(0,1fr));gap:12px}body[data-tq-page=emerald] .subject-card .subject-art{height:105px;aspect-ratio:1.7;object-fit:cover}body[data-tq-page=emerald] .subject-label{padding:9px 5px}body[data-tq-page=emerald] .subject-label .fr,body[data-tq-page=emerald] .subject-label .he{font-size:18px}body[data-tq-page=emerald] .subject-label small{display:none}
@media(max-width:650px){body[data-tq-page=emerald] .hero-inner{min-height:175px}body[data-tq-page=emerald] .hero-copy{width:100%;padding:20px 0}body[data-tq-page=emerald] .hero h1{font-size:30px}body[data-tq-page=emerald] .hero p{font-size:14px}body[data-tq-page=emerald] .main-actions{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}body[data-tq-page=emerald] .action-card{min-height:90px;padding:12px 7px}body[data-tq-page=emerald] .action-copy h2{font-size:17px}body[data-tq-page=emerald] .action-copy p,body[data-tq-page=emerald] .action-copy .round-arrow{display:none}body[data-tq-page=emerald] .subject-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}body[data-tq-page=emerald] .subject-card .subject-art{height:65px}body[data-tq-page=emerald] .subject-label .fr,body[data-tq-page=emerald] .subject-label .he{font-size:15px}}
body[data-tq-page=emerald] .subject-grid{grid-template-columns:repeat(8,minmax(0,1fr))}body[data-tq-page=emerald] .subject-card{display:flex;flex-direction:column;min-height:0}body[data-tq-page=emerald] .subject-label{flex:1}body[data-tq-page=emerald] .subject-card.history .subject-label .fr,body[data-tq-page=emerald] .subject-card.history .subject-label .he{font-size:18px}
@media(max-width:1050px){body[data-tq-page=emerald] .subject-grid{grid-template-columns:repeat(4,minmax(0,1fr))}body[data-tq-page=emerald] .subject-card .subject-art{height:65px}}
@media(max-width:650px){body[data-tq-page=emerald] .subject-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}body[data-tq-page=emerald] .subject-card .subject-art{height:50px}body[data-tq-page=emerald] .subject-label{padding:7px 3px;gap:4px}body[data-tq-page=emerald] .subject-label .fr,body[data-tq-page=emerald] .subject-label .he,body[data-tq-page=emerald] .subject-card.history .subject-label .fr,body[data-tq-page=emerald] .subject-card.history .subject-label .he{font:600 14px/1.2 Arial,sans-serif}}
body[data-tq-page=emerald] .subject-card{height:auto}
@media(orientation:landscape) and (min-width:600px) and (max-height:600px){#tq-shell .tq-bar{min-height:42px}#tq-shell .tq-logo{font-size:16px}#tq-shell .tq-logo small{display:none}#tq-shell .tq-logo svg{height:28px}#tq-shell .tq-login{padding:7px 15px}body[data-tq-page=emerald] .hero-inner{min-height:76px}body[data-tq-page=emerald] .hero-copy{padding:10px 0}body[data-tq-page=emerald] .hero h1{font-size:28px;margin:0}body[data-tq-page=emerald] .hero p{display:none}body[data-tq-page=emerald] .main-actions{margin-top:6px}body[data-tq-page=emerald] .action-card{min-height:54px;padding:10px 14px}body[data-tq-page=emerald] .action-copy h2{font-size:21px}body[data-tq-page=emerald] .subject-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px 9px}body[data-tq-page=emerald] .subject-card{display:grid;grid-template-columns:34% 66%;height:59px}body[data-tq-page=emerald] .subject-card .subject-art{height:100%;aspect-ratio:auto}body[data-tq-page=emerald] .subject-label{padding:5px 4px;gap:2px}body[data-tq-page=emerald] .subject-label .fr,body[data-tq-page=emerald] .subject-label .he,body[data-tq-page=emerald] .subject-card.history .subject-label .fr,body[data-tq-page=emerald] .subject-card.history .subject-label .he{font-size:16px;line-height:1.12}}
/* Hebrew and French are always shown together, including on phones. */
body[data-tq-localized] #tq-shell .tq-logo{direction:ltr}
body[data-tq-localized] #tq-shell .tq-subject img{grid-column:1}
[data-fr][data-he]>.tq-label-he,[data-fr][data-he]>.tq-label-fr{display:block;unicode-bidi:isolate;line-height:1.4}
[data-fr][data-he]>.tq-label-he{font-family:Arial,sans-serif}
[data-fr][data-he]>.tq-label-fr{margin-top:.12em}
:is(h1,h2,h3)[data-fr][data-he]>.tq-label-fr{font-size:.78em;font-weight:600}
#tq-shell .tq-subject .tq-he{grid-column:2;grid-row:1;display:block!important}
#tq-shell .tq-subject .tq-fr{grid-column:2;grid-row:2;display:block!important}
#tq-shell .tq-shortcuts{flex-wrap:wrap}
#tq-shell .tq-shortcuts a{flex-direction:column;gap:1px;text-align:center}
#tq-shell .tq-login{flex-direction:column;gap:1px}
#tq-shell .tq-login .tq-he,#tq-shell .tq-login .tq-fr,.tq-feature .tq-he{display:block!important}
#tq-shell .tq-language{flex-shrink:0}
.chapter-count{white-space:normal;text-align:center;flex-shrink:0}
.chapter-top [data-fr]{line-height:1.35}
.chapter-card h2>.tq-label-he{font-size:1.15em;color:var(--accent)}
.chapter-card h2>.tq-label-fr{font-size:.82em;margin-top:5px}
.chapter-range>.tq-label-he{font-size:1.12em}
@media(max-width:1000px){#tq-shell .tq-subject .tq-he,#tq-shell .tq-subject .tq-fr{grid-column:1}}
@media(max-width:650px){#tq-shell .tq-subject{min-height:59px}#tq-shell .tq-shortcuts{justify-content:center;gap:7px 17px}#tq-shell .tq-logo small{font-size:10px}#tq-shell .tq-login{padding:7px 10px}.catalog-heading{align-items:flex-start}.chapter-card{padding:15px}.chapter-count{max-width:112px;font-size:11px}}

/* A single compact, bilingual menu replaces the permanent navigation grid. */
#tq-shell .tq-menu{width:min(1240px,calc(100% - 48px));margin:0 auto;border-bottom:1px solid var(--tq-line)}
#tq-shell .tq-menu-toggle{display:flex;align-items:center;gap:10px;min-height:48px;padding:8px 2px;list-style:none;cursor:pointer;font-size:14px;font-weight:650;color:#173f62;user-select:none}
#tq-shell .tq-menu-toggle::-webkit-details-marker{display:none}
#tq-shell .tq-menu-toggle::marker{content:""}
#tq-shell .tq-menu-toggle:focus-visible{outline:3px solid #188084;outline-offset:3px;border-radius:6px}
#tq-shell .tq-menu-icon{font-size:21px;line-height:1}
#tq-shell .tq-menu-toggle bdi{color:#716039}
#tq-shell .tq-menu-chevron{margin-inline-start:auto;width:8px;height:8px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg);margin-inline-end:6px;margin-top:-4px}
#tq-shell .tq-menu[open] .tq-menu-chevron{transform:rotate(225deg);margin-top:4px}
#tq-shell .tq-menu:not([open])>.tq-menu-content{display:none}
#tq-shell .tq-menu-content{padding:0 0 14px}
#tq-shell .tq-menu .tq-subjects{width:100%;margin:0;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
#tq-shell .tq-menu .tq-subject{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:2px;min-height:58px;padding:8px;text-align:center;box-shadow:none}
#tq-shell .tq-menu .tq-subject img{display:none}
#tq-shell .tq-menu .tq-subject .tq-he{order:-1}
#tq-shell .tq-menu .tq-subject .tq-fr,#tq-shell .tq-menu .tq-subject .tq-he{text-align:center;font-size:14px}
#tq-shell .tq-menu .tq-shortcuts{width:100%;margin:10px 0 0;padding:0 0 10px;justify-content:flex-start;gap:8px}
#tq-shell .tq-menu .tq-shortcuts a{flex:1;min-height:44px;padding:7px 10px;border-radius:8px;background:#f1eadb;font-size:12px;justify-content:center}
#tq-shell .tq-menu .tq-family-nav{padding:12px 0 0;background:transparent;border:0;justify-content:flex-start}
#tq-shell .tq-menu .tq-family-nav button,#tq-shell .tq-menu .tq-family-nav a{min-height:44px;max-width:100%;white-space:normal;text-align:center}
@media(max-width:650px){
 #tq-shell .tq-menu{width:calc(100% - 24px)}
 #tq-shell .tq-menu .tq-subjects{grid-template-columns:repeat(2,minmax(0,1fr))}
 #tq-shell .tq-menu .tq-shortcuts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
 #tq-shell .tq-menu .tq-family-nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch}
 #tq-shell .tq-menu .tq-family-nav a{display:flex;align-items:center;justify-content:center}
}
@media(max-width:380px){
 #tq-shell .tq-logo{font-size:12px}
 #tq-shell .tq-logo svg{display:none}
 #tq-shell .tq-bar{gap:6px}
 #tq-shell .tq-account{gap:5px}
 #tq-shell .tq-language button{padding-inline:5px;font-size:11px}
 #tq-shell .tq-login{padding:7px 8px;font-size:11px}
}
