/* Rav Shlomo's Torah — standalone microsite styles */

*{margin:0;padding:0;box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  font-family:'Helvetica Neue',Arial,sans-serif;
  color:#2a2f3a;
  line-height:1.75;
  background:#fafbfc;
  min-height:100vh;
  display:flex;flex-direction:column;
}
body > *:not(script){flex-shrink:0;}
.page-flex-grow{flex:1;}

/* ── Listing page hero (slim) ───────────────────────────────── */
.page-hero{
  background:linear-gradient(135deg,#5E90E3,#1C47A5);
  color:#fff;
  padding:36px 24px 32px;
  text-align:center;
  position:relative;
  overflow:hidden;
}
.page-hero::before{
  content:'';position:absolute;inset:0;
  background-image:radial-gradient(circle at 22% 28%,rgba(255,255,255,0.10) 0,transparent 55%),radial-gradient(circle at 78% 72%,rgba(255,255,255,0.07) 0,transparent 55%);
  pointer-events:none;
}
.hero-inner{position:relative;max-width:740px;margin:0 auto;}
.hero-name{
  font-family:'Cormorant Garamond',Georgia,serif;
  font-size:36px;font-weight:600;
  line-height:1.1;
  letter-spacing:0.4px;
  text-shadow:0 1px 8px rgba(0,0,0,0.16);
  margin-bottom:8px;
}
.hero-eyebrow{
  font-family:'Frank Ruhl Libre',serif;
  font-size:20px;font-weight:500;
  letter-spacing:1.5px;
  opacity:0.92;
  direction:rtl;
}
.hero-tagline{
  font-size:13px;line-height:1.5;
  opacity:0.88;
  max-width:520px;margin:0 auto;
  font-weight:300;letter-spacing:0.3px;
}

/* ── Individual post hero ──────────────────────────────────────── */
.post-hero{
  background:linear-gradient(135deg,#5E90E3,#1C47A5);
  color:#fff;
  padding:70px 24px 70px;
  text-align:center;
  position:relative;
  overflow:hidden;
}
.post-hero::before{
  content:'';position:absolute;inset:0;
  background-image:radial-gradient(circle at 22% 28%,rgba(255,255,255,0.10) 0,transparent 55%),radial-gradient(circle at 78% 72%,rgba(255,255,255,0.07) 0,transparent 55%);
  pointer-events:none;
}
.post-hero-inner{position:relative;max-width:780px;margin:0 auto;}

.parsha-line{
  display:flex;align-items:baseline;justify-content:center;gap:18px;
  margin-bottom:18px;flex-wrap:wrap;
}
.parsha-line .heb-parsha{
  font-family:'Frank Ruhl Libre',serif;
  font-size:48px;font-weight:500;line-height:1;
  direction:rtl;text-shadow:0 2px 12px rgba(0,0,0,0.18);
}
.parsha-line .eng-parsha{
  font-size:14px;font-weight:600;letter-spacing:2.5px;
  opacity:0.92;text-transform:uppercase;
}
.title-he{
  font-family:'Frank Ruhl Libre',serif;
  font-size:38px;font-weight:500;line-height:1.2;
  direction:rtl;
  margin-bottom:10px;
  text-shadow:0 2px 14px rgba(0,0,0,0.16);
}
.title-en{
  font-family:'Cormorant Garamond',Georgia,serif;
  font-size:42px;font-weight:600;line-height:1.2;
  letter-spacing:0.3px;
  text-shadow:0 2px 14px rgba(0,0,0,0.16);
  margin-bottom:24px;
}
.date-line{
  font-size:13px;letter-spacing:1.5px;font-weight:600;
  opacity:0.9;
  display:flex;align-items:center;justify-content:center;gap:14px;flex-wrap:wrap;
}
.date-line .heb-date{
  font-family:'Frank Ruhl Libre',serif;
  font-size:15px;font-weight:500;letter-spacing:0;
  direction:rtl;
}
.date-line .separator{opacity:0.5;}

/* ── Page main (listing or individual) — grid with right column for floating btns ── */
.page-main, .post-main{
  flex:1;
  max-width:1120px;width:100%;
  margin:0 auto;
  padding:0 24px 100px;
  position:relative;
}
@media(min-width:1000px){
  .post-main, .page-main:has(.float-btn-stack){
    display:grid;
    grid-template-columns:minmax(0,720px) 220px;
    column-gap:40px;
    justify-content:center;
  }
  .post-toolbar,.post-body,.post-nav,.feed{grid-column:1;}
  .float-btn-stack{
    grid-column:2;grid-row:1 / 99;
    align-self:start;
    position:sticky;top:30px;
    justify-self:start;
    margin-top:30px;
    display:flex;flex-direction:column;gap:10px;
  }
  /* Parshiot: content centered on viewport, donate pill fixed on right */
  .page-main:has(.parshiot-list){
    display:block;
    max-width:680px;
    margin:0 auto;
    padding:0 24px 100px;
  }
  .page-main:has(.parshiot-list) > .float-btn-stack{
    position:fixed;
    top:50%;
    right:max(20px, calc(50vw - 500px));
    transform:translateY(-50%);
    margin:0;
    z-index:30;
  }
  body.cta-visible .page-main:has(.parshiot-list) > .float-btn-stack{
    transform:translateY(calc(-50% - 40px));
  }
}

/* ── Post toolbar (back link, on individual post pages) ─────────── */
.post-toolbar{
  display:flex;align-items:center;
  padding:30px 0 4px;
  margin-bottom:0;
}
.back-link{
  display:inline-flex;align-items:center;gap:8px;
  color:#5E90E3;text-decoration:none;
  font-size:13px;font-weight:700;letter-spacing:1px;
  text-transform:uppercase;
  padding:10px 0;
  transition:color .18s ease;
}
.back-link:hover{color:#1C47A5;}
.back-link::before{content:'←';font-size:16px;line-height:1;transition:transform .18s ease;}
.back-link:hover::before{transform:translateX(-4px);}

/* ── Floating action buttons (Print / All Torah) ───────────── */
.pdf-float-btn,.idx-float-btn{
  display:inline-flex;align-items:center;gap:8px;
  padding:12px 22px;
  border:1.5px solid #5E90E3;background:#fff;
  border-radius:999px;
  color:#1C47A5;
  font-family:inherit;font-size:13px;font-weight:700;letter-spacing:0.8px;
  text-transform:uppercase;text-decoration:none;
  cursor:pointer;
  transition:all .2s ease;
  box-shadow:0 2px 10px rgba(28,71,165,0.10);
  white-space:nowrap;
}
.pdf-float-btn:hover,.idx-float-btn:hover{
  background:#5E90E3;color:#fff;
  transform:translateY(-1px);
  box-shadow:0 6px 18px rgba(94,144,227,0.32);
}
.pdf-float-btn svg,.idx-float-btn svg{width:14px;height:14px;flex-shrink:0;}
.pdf-float-btn .label,.idx-float-btn .label{white-space:nowrap;}

/* Mobile: collapse to compact stacked FABs */
@media(max-width:999px){
  .float-btn-stack{
    position:fixed;
    bottom:20px;right:16px;
    z-index:90;
    display:flex;flex-direction:column;gap:10px;align-items:flex-end;
    transition:bottom .3s ease;
  }
  body.cta-visible .float-btn-stack{bottom:96px;}
  .pdf-float-btn,.idx-float-btn{
    padding:0;
    width:48px;height:48px;
    border-radius:50%;
    justify-content:center;
    background:#1C47A5;border-color:#1C47A5;color:#fff;
    box-shadow:0 6px 20px rgba(28,71,165,0.32);
  }
  .idx-float-btn{
    background:#fff;border-color:#1C47A5;color:#1C47A5;
  }
  .pdf-float-btn:hover,.idx-float-btn:hover{background:#5E90E3;border-color:#5E90E3;color:#fff;}
  .pdf-float-btn svg,.idx-float-btn svg{width:18px;height:18px;}
  .pdf-float-btn .label,.idx-float-btn .label{display:none;}
}

/* ── Post body (used on individual post pages and inside feed sections) ── */
.post-body{
  max-width:720px;margin:0 auto;
  padding:30px 0 40px;
  font-family:'Cormorant Garamond',Georgia,serif;
  font-size:20px;
  line-height:1.75;
  color:#2a2f3a;
}
.post-body p{margin-bottom:22px;}
.post-body p.lead{font-size:22px;color:#1C47A5;font-style:italic;margin-bottom:30px;}
.post-body h2{
  font-family:'Cormorant Garamond',Georgia,serif;
  font-size:30px;font-weight:600;color:#1C47A5;
  margin:42px 0 18px;line-height:1.3;
}
.post-body h3{
  font-family:'Cormorant Garamond',Georgia,serif;
  font-size:24px;font-weight:600;color:#1C47A5;
  margin:32px 0 14px;
}

/* Hebrew block quote (psukim, gemara, etc.) */
.post-body blockquote.hebrew{
  margin:30px 0;
  padding:24px 28px;
  background:linear-gradient(to right,rgba(94,144,227,0.06),rgba(94,144,227,0.02));
  border-right:4px solid #5E90E3;
  border-radius:6px;
}
.post-body blockquote.hebrew .he{
  font-family:'Frank Ruhl Libre',serif;
  font-size:24px;line-height:1.7;font-weight:500;
  color:#1C47A5;
  direction:rtl;text-align:right;
  margin-bottom:12px;
}
.post-body blockquote.hebrew .en{
  font-family:'Cormorant Garamond',Georgia,serif;
  font-size:18px;line-height:1.65;font-style:italic;
  color:#5a6478;
  margin-bottom:0;
}
.post-body blockquote.hebrew .he + .he{margin-bottom:12px;}
.post-body blockquote.hebrew .he:last-child,
.post-body blockquote.hebrew .en:last-child{margin-bottom:0;}

/* Inline Hebrew in English text — browser handles RTL via UBA */
.post-body .he-inline{
  font-family:'Frank Ruhl Libre',serif;
  font-size:1.08em;font-weight:500;
}
.post-body p.he-emphasis{
  font-family:'Frank Ruhl Libre',serif;
  font-size:30px;font-weight:500;color:#1C47A5;
  text-align:center;direction:rtl;
  margin:28px 0;letter-spacing:0.5px;
}
.post-body p.refrain{
  margin:26px 0;line-height:2.1;text-align:center;
}
.post-body p.refrain .he-inline{font-size:1.15em;}
.post-body p.verse{
  margin:24px 0;line-height:1.85;font-style:italic;color:#445;
  padding-left:20px;border-left:2px solid #e3e8ef;
}
.post-body blockquote:not(.hebrew){
  margin:30px 0;padding:18px 26px;
  border-left:4px solid #5E90E3;
  background:#f6f9fd;border-radius:0 6px 6px 0;
  font-style:italic;color:#445;
}
.post-body ul,.post-body ol{margin:18px 0 22px 28px;}
.post-body li{margin-bottom:6px;}

.signature{
  margin-top:50px;padding-top:24px;
  border-top:1px solid #e3e8ef;
  text-align:center;
  font-family:'Cormorant Garamond',Georgia,serif;
  font-size:20px;color:#1C47A5;font-style:italic;
}
.signature .name{
  display:block;margin-top:6px;
  font-style:normal;font-weight:600;letter-spacing:0.5px;
}

/* ── Continuous scroll feed ────────────────────────────────────── */
.feed{
  display:block;
}
.feed-section{
  position:relative;
  padding:0;
}
.feed-section + .feed-section{
  margin-top:60px;
  padding-top:80px;
}
/* Subtle ornament between sections */
.feed-section + .feed-section::before{
  content:'';
  display:block;
  width:80px;height:1px;
  background:linear-gradient(to right,transparent,rgba(28,71,165,0.45),transparent);
  margin:0 auto 60px;
}
.feed-section .post-body{padding:0;}

.feed-section-header{
  text-align:center;
  margin:30px auto 18px;
  max-width:720px;
}
.feed-section-meta{
  display:inline-flex;align-items:center;gap:10px;flex-wrap:wrap;
  justify-content:center;
  font-size:11px;font-weight:700;letter-spacing:2px;text-transform:uppercase;
  color:#5E90E3;
  margin-bottom:14px;
}
.feed-section-meta .heb{
  font-family:'Frank Ruhl Libre',serif;
  font-size:14px;font-weight:500;letter-spacing:0;
  direction:rtl;
  text-transform:none;color:#7a8aa3;
}
.feed-section-meta .dot{opacity:0.45;color:#7a8aa3;}
.feed-section-hebrew-title{
  font-family:'Frank Ruhl Libre',serif;
  font-size:30px;font-weight:500;color:#1C47A5;
  direction:rtl;line-height:1.2;
  margin-bottom:6px;
}
.feed-section-title{
  font-family:'Cormorant Garamond',Georgia,serif;
  font-size:38px;font-weight:600;color:#1C47A5;line-height:1.2;
  letter-spacing:0.3px;
  margin-bottom:8px;
}

/* ── Post nav (prev/next) ──────────────────────────────────────── */
.post-nav{
  max-width:720px;margin:50px auto 0;
  padding:30px 0 50px;
  display:grid;grid-template-columns:1fr 1fr;gap:18px;
}
.post-nav a{
  display:block;padding:18px 22px;
  background:#fff;border:1px solid #e3e8ef;border-radius:10px;
  text-decoration:none;color:#445;
  transition:all .2s ease;
}
.post-nav a:hover{border-color:#5E90E3;transform:translateY(-2px);box-shadow:0 6px 18px rgba(28,71,165,0.10);}
.post-nav .nav-label{font-size:11px;color:#7a8aa3;font-weight:700;letter-spacing:1.5px;margin-bottom:6px;}
.post-nav .nav-title{
  font-family:'Cormorant Garamond',Georgia,serif;
  font-size:18px;color:#1C47A5;font-weight:600;line-height:1.3;
}
.post-nav .next{text-align:right;}

/* ── Loading state ─────────────────────────────────────────────── */
.loading-state{
  text-align:center;padding:80px 20px;color:#7a8aa3;
  grid-column:1;
}
.loading-state::after{
  content:'';display:inline-block;width:18px;height:18px;
  border:2px solid #e3e8ef;border-top-color:#5E90E3;border-radius:50%;
  animation:spin 0.8s linear infinite;margin-left:10px;vertical-align:middle;
}
@keyframes spin{to{transform:rotate(360deg);}}
.fade-in{animation:fadeIn .35s ease both;}
@keyframes fadeIn{from{opacity:0;transform:translateY(8px);}to{opacity:1;transform:translateY(0);}}

/* ── Page footer (minimal) ─────────────────────────────────────── */
.page-footer{
  text-align:center;padding:40px 24px 50px;
  border-top:1px solid #e3e8ef;
  font-size:12px;color:#7a8aa3;letter-spacing:1px;
}
.page-footer a{color:#5E90E3;text-decoration:none;font-weight:600;}
.page-footer a:hover{color:#1C47A5;}

/* ── Print-only page header (shown on every printout) ──────────── */
.print-page-header{display:none;}

/* ── Floating donate CTA bar ──────────────────────────────────── */
.rs-cta-bar{
  position:fixed;left:0;right:0;bottom:0;z-index:60;
  background:linear-gradient(135deg,rgba(28,71,165,0.97) 0%,rgba(15,45,107,0.97) 100%);
  backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);
  border-top:1px solid rgba(200,149,74,0.25);
  box-shadow:0 -8px 28px rgba(28,71,165,0.18);
  padding:14px 0;
  transform:translateY(110%);
  transition:transform .35s cubic-bezier(.4,.2,.2,1);
}
.rs-cta-bar.visible{transform:translateY(0);}
.rs-cta-bar-pad{padding:0 22px;}
.rs-cta-inner{
  max-width:880px;margin:0 auto;
  display:flex;align-items:center;justify-content:space-between;gap:18px;
}
.rs-cta-text{color:#fff;font-size:15px;font-weight:600;line-height:1.35;letter-spacing:0.2px;}
.rs-cta-text strong{color:#E8C781;font-weight:700;}
.rs-cta-text small{
  display:block;font-size:11px;color:rgba(255,255,255,0.6);
  font-weight:500;letter-spacing:.4px;text-transform:uppercase;margin-top:2px;
}
.rs-cta-btn{
  display:inline-flex;align-items:center;gap:8px;
  background:linear-gradient(135deg,#C8954A 0%,#A87A30 100%);color:#fff;
  border:none;padding:12px 22px;border-radius:9px;
  font-weight:700;font-size:14px;letter-spacing:0.5px;text-transform:uppercase;
  cursor:pointer;transition:all .2s;
  box-shadow:0 4px 14px rgba(168,122,48,0.35);
  font-family:inherit;white-space:nowrap;text-decoration:none;
}
.rs-cta-btn:hover{
  transform:translateY(-2px);
  box-shadow:0 10px 22px rgba(168,122,48,0.5);
  background:linear-gradient(135deg,#D5A05A 0%,#B58535 100%);
  color:#fff;
}
.rs-cta-btn .arrow{transition:transform .15s;display:inline-block;}
.rs-cta-btn:hover .arrow{transform:translateX(3px);}
@media(max-width:768px){
  .rs-cta-bar{padding:11px 14px;}
  .rs-cta-inner{gap:10px;}
  .rs-cta-text{font-size:13px;}
  .rs-cta-text small{font-size:10px;margin-top:1px;}
  .rs-cta-btn{padding:10px 14px;font-size:12px;letter-spacing:.3px;}
}
@media print{
  .rs-cta-bar{display:none !important;}
}

/* ── Body bottom padding so donate bar doesn't cover content ──── */
body.cta-visible{padding-bottom:90px;}
@media(max-width:768px){
  body.cta-visible{padding-bottom:78px;}
}

/* ── Contents (book-style table of contents) ──────────────────── */
.contents{
  width:100%;
  max-width:680px;
  margin:0 auto;
  padding:64px 24px 56px;
  align-self:center;
}
.contents-divider{
  display:flex;align-items:center;justify-content:center;gap:18px;
  margin:0 auto 38px;
}
.contents-divider.bottom{margin:46px auto 0;}
.contents-divider::before,
.contents-divider::after{
  content:'';
  flex:1;max-width:120px;height:1px;
  background:linear-gradient(to right,transparent 0%,rgba(28,71,165,0.35) 50%,transparent 100%);
}
.contents-ornament{
  font-family:'Cormorant Garamond',Georgia,serif;
  font-size:13px;color:#5E90E3;line-height:1;
  transform:translateY(-1px);
}
.contents-heading{
  font-family:'Cormorant Garamond',Georgia,serif;
  font-size:13px;font-weight:600;
  color:#7a8aa3;
  text-align:center;
  letter-spacing:5px;text-transform:uppercase;
  margin-bottom:36px;
}
.contents-list{
  list-style:none;padding:0;margin:0;
}
.contents-row{
  margin-bottom:24px;
}
.contents-row:last-child{margin-bottom:0;}
.contents-row a{
  display:block;
  text-decoration:none;color:inherit;
  padding:8px 0;
  position:relative;
  transition:color .2s ease;
}
.contents-row a::after{
  content:'';position:absolute;left:0;right:0;bottom:0;
  height:1px;
  background:linear-gradient(to right,transparent,rgba(94,144,227,0) 50%,transparent);
  transition:background .25s ease;
}
.contents-row a:hover::after{
  background:linear-gradient(to right,transparent,rgba(94,144,227,0.5) 50%,transparent);
}
.contents-row-meta{
  display:flex;justify-content:space-between;align-items:baseline;gap:18px;
  margin-bottom:5px;
}
.contents-row-title{
  font-family:'Cormorant Garamond',Georgia,serif;
  font-size:20px;font-weight:600;
  color:#1C47A5;line-height:1.2;
  transition:color .2s ease;
}
.contents-row a:hover .contents-row-title{color:#5E90E3;}
.contents-row-date{
  font-size:10.5px;letter-spacing:1.8px;text-transform:uppercase;
  color:#9aa6ba;font-weight:600;
  white-space:nowrap;flex-shrink:0;
}
.contents-row-subtitle{
  font-family:'Cormorant Garamond',Georgia,serif;
  font-size:16px;color:#5a6478;
  font-style:italic;line-height:1.45;
}
.contents-row-subtitle .he{
  font-family:'Frank Ruhl Libre',serif;
  font-style:normal;font-weight:500;
  font-size:1.08em;color:#1C47A5;
}
.contents-row-subtitle .sep{
  color:#bcc6d6;margin:0 8px;font-style:normal;
}

@media(max-width:768px){
  .contents{padding:42px 18px 32px;}
  .contents-divider{gap:14px;margin-bottom:28px;}
  .contents-divider.bottom{margin-top:36px;}
  .contents-heading{font-size:12px;letter-spacing:4px;margin-bottom:26px;}
  .contents-row{margin-bottom:20px;}
  .contents-row-title{font-size:18px;}
  .contents-row-subtitle{font-size:15px;}
  .contents-row-meta{flex-direction:column;align-items:flex-start;gap:2px;}
  .contents-row-date{font-size:10px;letter-spacing:1.5px;}
}

/* feed sections need extra scroll-margin so contents links don't tuck section title at viewport top */
.feed-section{scroll-margin-top:30px;}

/* ── Parshiot page (search + list + bio) ──────────────────────── */
.parshiot-bio{
  max-width:680px;margin:80px auto 40px;
  padding:0 24px;
  text-align:center;
}
.parshiot-bio-heading{
  display:flex;align-items:center;justify-content:center;gap:18px;
  margin-bottom:32px;
}
.parshiot-bio-heading::before,
.parshiot-bio-heading::after{
  content:'';flex:1;max-width:120px;height:1px;
  background:linear-gradient(to right,transparent 0%,rgba(28,71,165,0.35) 50%,transparent 100%);
}
.parshiot-bio-heading span{
  font-size:11px;letter-spacing:4px;text-transform:uppercase;
  color:#7a8aa3;font-weight:600;
}
.parshiot-bio-photo{
  width:90px;height:90px;border-radius:50%;
  margin:0 auto 14px;
  background:#e3e8ef;
  display:flex;align-items:center;justify-content:center;
  overflow:hidden;
  border:2px solid #fff;
  box-shadow:0 3px 12px rgba(28,71,165,0.10);
}
.parshiot-bio-photo img{width:100%;height:100%;object-fit:cover;}
.parshiot-bio-photo .placeholder{
  font-family:'Cormorant Garamond',Georgia,serif;
  font-size:32px;color:#9aa6ba;font-weight:600;
}
.parshiot-bio-name{
  font-family:'Cormorant Garamond',Georgia,serif;
  font-size:22px;font-weight:600;color:#1C47A5;
  margin-bottom:4px;line-height:1.2;
}
.parshiot-bio-title{
  font-size:10px;letter-spacing:2px;text-transform:uppercase;
  color:#9aa6ba;font-weight:600;margin-bottom:24px;
}
.parshiot-bio-text{
  font-family:'Cormorant Garamond',Georgia,serif;
  font-size:16px;line-height:1.65;color:#445;
  margin-bottom:14px;
  text-align:left;
}
.parshiot-bio-text:last-child{margin-bottom:0;}
.parshiot-search{
  max-width:680px;margin:50px auto 30px;
  padding:0 24px;
  position:relative;
}
.parshiot-search input{
  width:100%;padding:14px 20px 14px 48px;
  border:1.5px solid #e3e8ef;border-radius:12px;
  font-size:15px;font-family:inherit;color:#333;
  background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2399a' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M21 21l-4.35-4.35'/%3E%3C/svg%3E") 18px 50%/16px no-repeat;
  transition:border-color .18s ease,box-shadow .18s ease;
}
.parshiot-search input:focus{
  outline:none;border-color:#5E90E3;
  box-shadow:0 0 0 4px rgba(94,144,227,0.12);
}
.parshiot-list{
  max-width:680px;margin:0 auto 60px;
  padding:0 24px;
}
.parshiot-empty{
  text-align:center;padding:40px 20px;color:#9aa6ba;
  font-style:italic;font-family:'Cormorant Garamond',Georgia,serif;font-size:17px;
}
.parshiot-back-link{
  display:inline-flex;align-items:center;gap:8px;
  color:#5E90E3;text-decoration:none;
  font-size:13px;font-weight:700;letter-spacing:1px;
  text-transform:uppercase;
  padding:10px 0;
  transition:color .18s ease;
}
.parshiot-back-link:hover{color:#1C47A5;}
.parshiot-back-link::before{content:'←';font-size:16px;line-height:1;transition:transform .18s ease;}
.parshiot-back-link:hover::before{transform:translateX(-4px);}

/* ── Mobile ────────────────────────────────────────────────────── */
@media(max-width:768px){
  .page-hero{padding:60px 18px 56px;}
  .hero-name{font-size:42px;}
  .hero-eyebrow{font-size:24px;margin-bottom:20px;letter-spacing:1.5px;}
  .hero-tagline{font-size:14px;}

  .post-hero{padding:50px 18px 50px;}
  .parsha-line .heb-parsha{font-size:38px;}
  .parsha-line .eng-parsha{font-size:12px;letter-spacing:2px;}
  .title-en{font-size:30px;}
  .title-he{font-size:30px;}

  .page-main,.post-main{padding:0 16px 50px;}
  .post-toolbar{padding:20px 0 0;}
  .post-body{padding:24px 0 30px;font-size:18px;}
  .post-body p.lead{font-size:19px;}
  .post-body h2{font-size:25px;}
  .post-body blockquote.hebrew{padding:18px 20px;}
  .post-body blockquote.hebrew .he{font-size:20px;}
  .post-body blockquote.hebrew .en{font-size:16px;}

  .feed-section + .feed-section{margin-top:40px;padding-top:50px;}
  .feed-section + .feed-section::before{margin-bottom:40px;}
  .feed-section-title{font-size:28px;}
  .feed-section-hebrew-title{font-size:24px;}

  .post-nav{grid-template-columns:1fr;padding:20px 0 40px;}
  .post-nav .next{text-align:left;}
}

/* ── Print stylesheet ───────────────────────────────────────────── */
@media print{
  @page{margin:0.5in 0.55in;}
  body{background:#fff;font-size:10.5pt;line-height:1.4;color:#000;}
  .page-hero,.post-toolbar,.post-nav,.pdf-float-btn,.page-footer,.contents{display:none !important;}
  .print-hide{display:none !important;}

  /* Listing page: only show targeted section */
  body.printing-mode .feed-section.print-hide{display:none !important;}

  /* Print-only page header (Rav Shlomo title block) */
  .print-page-header{
    display:block !important;
    text-align:center;
    padding:0 0 7pt;
    margin:0 0 12pt;
    border-bottom:1.2pt solid #1C47A5;
    page-break-after:avoid;break-after:avoid;
  }
  .print-page-header .name{
    font-family:'Cormorant Garamond',Georgia,serif;
    font-size:18pt;font-weight:600;color:#1C47A5;
    line-height:1.1;margin-bottom:2pt;
  }
  .print-page-header .heb{
    font-family:'Frank Ruhl Libre',serif;
    font-size:13pt;font-weight:500;color:#1C47A5;
    direction:rtl;line-height:1.2;margin-bottom:3pt;
  }
  .print-page-header .tag{
    font-size:8.5pt;color:#555;letter-spacing:0.3pt;
  }

  .post-hero,.feed-section-header{
    background:none !important;color:#000 !important;
    padding:0 0 8pt !important;text-align:center;
    border-bottom:1pt solid #1C47A5;margin:0 0 12pt !important;
    position:static !important;break-after:avoid;page-break-after:avoid;
  }
  .post-hero::before,.post-hero::after{display:none;}
  .parsha-line{gap:10pt !important;margin-bottom:5pt !important;}
  .parsha-line .heb-parsha,.parsha-line .eng-parsha,
  .title-en,.title-he,.date-line,
  .feed-section-meta,.feed-section-title,.feed-section-hebrew-title{
    color:#1C47A5 !important;text-shadow:none !important;
  }
  .parsha-line .heb-parsha{font-size:17pt !important;}
  .parsha-line .eng-parsha{font-size:9pt !important;letter-spacing:1.5pt !important;}
  .title-en,.title-he{font-size:16pt !important;margin-bottom:5pt !important;line-height:1.2 !important;}
  .feed-section-title{font-size:16pt !important;line-height:1.2 !important;margin-bottom:4pt !important;}
  .feed-section-hebrew-title{font-size:13pt !important;margin-bottom:2pt !important;}
  .feed-section-meta{font-size:9pt !important;margin-bottom:4pt !important;letter-spacing:1.5pt !important;}
  .feed-section-meta .heb{font-size:10pt !important;}
  .date-line{font-size:9pt !important;margin-top:2pt !important;}
  .date-line .heb-date{font-size:9.5pt !important;}
  .feed-section + .feed-section::before{display:none;}
  .feed-section + .feed-section{padding-top:0 !important;margin-top:14pt !important;}

  .page-main,.post-main{
    display:block !important;max-width:none;margin:0;padding:0;
  }
  .post-body{
    max-width:none;margin:0;padding:0;
    font-family:'Garamond','Times New Roman',Times,serif;
    font-size:10.5pt;line-height:1.4;color:#000;
  }
  .post-body p{margin-bottom:6pt;orphans:3;widows:3;}
  .post-body p.lead{font-size:11pt;margin-bottom:8pt;}
  .post-body h2{font-size:13pt;color:#1C47A5;break-after:avoid;page-break-after:avoid;margin:12pt 0 4pt;line-height:1.25;}
  .post-body h3{font-size:11.5pt;color:#1C47A5;break-after:avoid;page-break-after:avoid;margin:9pt 0 3pt;}
  .post-body blockquote.hebrew{
    background:none;border:none;
    border-right:1pt solid #1C47A5;
    padding:3pt 10pt;margin:6pt 0;
    break-inside:avoid;page-break-inside:avoid;
  }
  .post-body blockquote.hebrew .he{font-size:11.5pt;color:#1C47A5;margin-bottom:3pt;line-height:1.35;}
  .post-body blockquote.hebrew .en{font-size:9.5pt;color:#333;line-height:1.35;margin-bottom:0;}
  .post-body p.he-emphasis{font-size:13pt;color:#1C47A5;margin:7pt 0;}
  .post-body p.refrain{line-height:1.6;margin:7pt 0;}
  .post-body p.verse{padding-left:10pt;border-left:1pt solid #999;font-style:italic;margin:7pt 0;line-height:1.4;}
  .signature{border-top-color:#999;color:#1C47A5;margin-top:12pt;padding-top:6pt;font-size:11pt;}
  a{color:#000 !important;text-decoration:none !important;}
}
