/* ToraOku: Haftalık Peraşa ve Haftara Merkezi — scoped styles only. */
#towc-center{--twc-ink:#1c303c;--twc-muted:#4e6370;--twc-line:#d9e1e4;--twc-accent:#0f6170;--twc-bg:#f6fafb;color:var(--twc-ink);font-size:18px;line-height:1.65;max-width:1090px;margin:20px auto 58px;font-family:inherit}
#towc-center *{box-sizing:border-box}
#towc-center a{color:var(--twc-accent);text-underline-offset:3px}
#towc-center .towc-hero{padding:32px clamp(18px,4vw,42px);background:#eaf3f2;border-radius:15px;border:1px solid #d7e7e6;margin-bottom:18px}
#towc-center .towc-overline{font-size:13px!important;font-weight:800;letter-spacing:.075em;color:#245961;margin:0 0 10px}
#towc-center h1{font-size:clamp(28px,4vw,39px);color:var(--twc-ink);line-height:1.22;margin:0 0 14px;font-weight:750}
#towc-center .towc-hero>p:last-child{font-size:18px;line-height:1.55;max-width:740px;margin:0;color:#35545c}
#towc-center .towc-control{display:grid;grid-template-columns:1fr 1fr auto;align-items:end;gap:12px;padding:16px 18px;border:1px solid var(--twc-line);background:#fff;border-radius:12px}
#towc-center .towc-control>div{display:grid;gap:5px;min-width:0}
#towc-center .towc-control label{font-size:15px;font-weight:700}
#towc-center .towc-control select,#towc-center .towc-control input,#towc-center .towc-control button{font:inherit;font-size:16px;min-height:46px;padding:9px 11px;border-radius:8px;border:1px solid #a4b5be;color:var(--twc-ink);background:#fff;width:100%;min-width:0}
#towc-center .towc-control button{background:var(--twc-accent);border-color:var(--twc-accent);color:#fff;font-weight:700;cursor:pointer;white-space:nowrap;padding:9px 18px}
#towc-center .towc-helper{margin:9px 2px 18px;font-size:14px!important;color:var(--twc-muted);line-height:1.55}
#towc-center .towc-weeknav{display:flex;justify-content:space-between;align-items:center;gap:9px;flex-wrap:wrap;margin:16px 0 18px}
#towc-center .towc-weeknav a,#towc-center .towc-weeknav>span{border:1px solid var(--twc-line);padding:9px 12px;border-radius:8px;font-size:15px;font-weight:700;text-decoration:none;background:#fff}
#towc-center .towc-weeknav>span{opacity:.42}
#towc-center .towc-weeknav strong{font-size:16px;text-align:center}
#towc-center .towc-panel{border:1px solid var(--twc-line);border-radius:12px;background:#fff;padding:clamp(18px,3vw,25px);margin:14px 0}
#towc-center .towc-panel h2{font-size:24px;line-height:1.34;color:var(--twc-ink);margin:0 0 13px}
#towc-center .towc-panel p{font-size:18px;line-height:1.65;margin:0 0 13px}
#towc-center .towc-main-card{border-top:4px solid var(--twc-accent);background:var(--twc-bg)}
#towc-center .towc-main-card h2{font-size:clamp(26px,4vw,34px);margin:10px 0}
#towc-center .towc-topline{display:flex;justify-content:space-between;flex-wrap:wrap;gap:7px;color:var(--twc-muted);font-size:15px;font-weight:600}
#towc-center .towc-hebrew{font:inherit;font-family:serif!important;font-size:30px!important;line-height:1.7!important;text-align:right}
#towc-center .towc-special{border-left:4px solid #c18c39;background:#fffbef;border-radius:5px;padding:10px 13px}
#towc-center .towc-parsha-links{display:flex;flex-wrap:wrap;gap:9px}
#towc-center .towc-parsha-links a,#towc-center .towc-cta{display:inline-block;background:#fff;border:1px solid #b9d6d8;padding:9px 13px;border-radius:8px;font-size:16px;font-weight:700;text-decoration:none}
#towc-center .towc-aliyot{list-style:none;margin:16px 0 0;padding:0;display:grid;gap:9px}
#towc-center .towc-aliyot li{display:grid;grid-template-columns:minmax(110px,145px) minmax(0,1fr);align-items:center;gap:10px;padding:13px 15px;background:#f6fafb;border:1px solid #e1e9ea;border-radius:9px;font-size:17px;line-height:1.55}
#towc-center .towc-aliya-type{font-weight:800;color:var(--twc-ink);font-size:16px}
#towc-center .towc-aliyot li a{font-weight:650;overflow-wrap:anywhere}
#towc-center .towc-haftara-label{font-size:22px!important;font-weight:750;color:var(--twc-ink)}
#towc-center .towc-note,#towc-center .towc-credit{font-size:15px!important;line-height:1.65!important;color:var(--twc-muted)}
#towc-center .towc-upcoming{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
#towc-center .towc-upcoming a{border:1px solid var(--twc-line);border-radius:9px;padding:15px 14px;display:flex;flex-direction:column;gap:4px;text-decoration:none;background:#f9fbfc;font-size:15px}
#towc-center .towc-upcoming a strong{font-size:19px;color:var(--twc-ink)}
#towc-center .towc-library{padding:0;overflow:hidden}
#towc-center .towc-library summary{cursor:pointer;padding:19px 24px;display:grid;gap:4px;font-size:20px}
#towc-center .towc-library summary span{font-size:15px;color:var(--twc-muted);font-weight:400}
#towc-center .towc-library details[open] summary{border-bottom:1px solid var(--twc-line)}
#towc-center .towc-library ol{padding:16px 28px 24px 46px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 24px;margin:0}
#towc-center .towc-library li{padding:5px 0;font-size:16px}
#towc-center .towc-library li a{display:flex;justify-content:space-between;align-items:center;gap:12px;text-decoration:none}
#towc-center .towc-library li span{font-family:serif;font-size:20px;color:#405b64;text-align:right}
#towc-center :is(a,button,select,input,summary):focus-visible{outline:3px solid #b46e26;outline-offset:3px}
@media(max-width:720px){#towc-center{font-size:17px;margin:9px auto 36px}#towc-center .towc-control{grid-template-columns:1fr 1fr}#towc-center .towc-control button{grid-column:1/-1}#towc-center .towc-upcoming{grid-template-columns:1fr}#towc-center .towc-library ol{grid-template-columns:1fr}#towc-center .towc-panel h2{font-size:22px}}
@media(max-width:470px){#towc-center .towc-control{grid-template-columns:1fr}#towc-center .towc-control button{grid-column:auto}#towc-center .towc-weeknav{display:grid;grid-template-columns:1fr 1fr}#towc-center .towc-weeknav strong{grid-column:1/-1;grid-row:1}#towc-center .towc-weeknav a,#towc-center .towc-weeknav>span{text-align:center;font-size:14px}#towc-center .towc-aliyot li{grid-template-columns:1fr;gap:3px;padding:12px}#towc-center .towc-hero{padding:22px 18px}#towc-center .towc-panel{padding:17px 15px}#towc-center .towc-library{padding:0}#towc-center .towc-hebrew{font-size:27px!important}}


/* v1.0.1: Site's dark page background requires lighter text OUTSIDE the white cards.
   Keep panel text and all other typography unchanged. */
#towc-center .towc-helper{
  color:#d4e8ea!important;
}
#towc-center .towc-weeknav > strong{
  color:#f3fbfc!important;
}
#towc-center .towc-credit{
  color:#d4e8ea!important;
}
#towc-center .towc-credit a{
  color:#aeeaf4!important;
  text-decoration:underline;
}
