/* Isolated Preview Stylesheet — Rabbi Yoni Levin Library Reorganization
   Preserves rabbiyonilevin.com warm parchment, deep teal, and refined gold identity */

:root {
  --teal: #0E6E6E;
  --teal-d: #0a5555;
  --teal-deep: #06302f;
  --teal-soft: #eef6f5;
  --gold: #B8924A;
  --gold-l: #D4B56A;
  --gold-soft: #f7f1e3;
  --ink: #1d2626;
  --muted: #5b6868;
  --line: #e6e1d6;
  --cream: #faf7f1;
  --paper: #fdfbf7;
  --bg: #ffffff;
}

/* Updated 9-Tab Sticky Top Navigation */
.reorg-bar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.reorg-bar-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 62px;
}
.reorg-bar .wordmark {
  font-family: Cormorant, Georgia, serif;
  font-weight: 600;
  font-size: 21px;
  letter-spacing: 0.01em;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}
.reorg-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: nowrap;
}
.reorg-nav a {
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.015em;
  color: var(--muted);
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: color 0.18s ease, border-color 0.18s ease;
}
.reorg-nav a:hover {
  color: var(--teal);
}
.reorg-nav a[aria-current="page"] {
  color: var(--teal-deep);
  font-weight: 600;
  border-bottom-color: var(--gold);
}

/* Mobile horizontal nav rail */
.mobile-nav-rail {
  display: none;
}
@media (max-width: 980px) {
  .reorg-nav {
    display: none;
  }
  .reorg-bar-in {
    min-height: 52px;
  }
  .mobile-nav-rail {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0 18px 10px;
    border-top: 1px solid rgba(230, 225, 214, 0.55);
    padding-top: 8px;
  }
  .mobile-nav-rail::-webkit-scrollbar {
    display: none;
  }
  .mobile-nav-rail a {
    flex: 0 0 auto;
    font-size: 12.5px;
    font-weight: 500;
    color: var(--muted);
    text-decoration: none;
    padding: 5px 11px;
    border-radius: 999px;
    background: var(--cream);
    border: 1px solid var(--line);
    white-space: nowrap;
  }
  .mobile-nav-rail a[aria-current="page"] {
    background: var(--teal);
    border-color: var(--teal);
    color: #ffffff;
    font-weight: 600;
  }
}

/* Compact Editorial Hero */
.reorg-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 100% at 88% 20%, rgba(184, 146, 74, 0.18), transparent 65%),
    linear-gradient(118deg, #052626 0%, #093d3d 48%, #0e5858 100%);
  color: #ffffff;
  padding: 34px 0 38px;
}
.reorg-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(212, 181, 106, 0.65) 25%, rgba(212, 181, 106, 0.65) 75%, transparent);
}
.reorg-hero-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 44px;
}
.reorg-hero-text {
  flex: 1;
  min-width: 0;
}
.reorg-crumbs {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-l);
}
.reorg-crumbs a {
  color: var(--gold-l);
  text-decoration: none;
}
.reorg-crumbs span {
  margin: 0 8px;
  opacity: 0.6;
}
.reorg-hero h1 {
  font-family: Cormorant, Georgia, serif;
  font-weight: 600;
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.08;
  color: #ffffff;
  margin: 0 0 12px;
  letter-spacing: -0.005em;
}
.reorg-hero .lede {
  margin: 0 0 18px;
  font-size: 15.5px;
  line-height: 1.58;
  color: rgba(255, 255, 255, 0.88);
  max-width: 56ch;
}
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
}
.hero-stats strong {
  color: #f3dfaa;
  font-weight: 600;
}
.reorg-portrait {
  margin: 0;
  flex: none;
  width: 176px;
  position: relative;
  z-index: 1;
}
.reorg-portrait.wide {
  width: 248px;
}
.reorg-portrait img {
  width: 100%;
  height: auto;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: 3px;
  box-shadow: 0 18px 42px -18px rgba(0, 0, 0, 0.65);
}
.reorg-portrait.wide img {
  aspect-ratio: 3/2;
  object-position: 50% 35%;
}
.reorg-portrait::after {
  content: "";
  position: absolute;
  inset: 9px -9px -9px 9px;
  border: 1px solid rgba(212, 181, 106, 0.65);
  border-radius: 3px;
  z-index: -1;
}
@media (max-width: 760px) {
  .reorg-hero {
    padding: 20px 0 22px;
  }
  .reorg-hero-in {
    gap: 16px;
    align-items: center;
  }
  .reorg-hero h1 {
    font-size: 32px;
    margin-bottom: 8px;
  }
  .reorg-hero .lede {
    font-size: 14px;
    line-height: 1.48;
    margin-bottom: 12px;
  }
  .hero-stats {
    gap: 6px 14px;
    font-size: 12px;
  }
  .reorg-portrait {
    width: 82px;
  }
  .reorg-portrait.wide {
    width: 106px;
  }
  .reorg-portrait::after {
    inset: 5px -5px -5px 5px;
  }
}

/* Warm Parchment Control Deck (Level 1 + Level 2 + Quick Actions) */
.hub-deck {
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  padding: 22px 0 24px;
}
.deck-utility {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.this-week-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--gold);
  background: linear-gradient(135deg, #0E6E6E 0%, #094f4f 100%);
  color: #ffffff;
  font-family: Inter, system-ui, sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 6px 18px -10px rgba(6, 48, 47, 0.65);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.this-week-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px -10px rgba(6, 48, 47, 0.75);
}
.this-week-btn .tw-badge {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: rgba(212, 181, 106, 0.24);
  color: #f4dfab;
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 600;
}
.this-week-btn .tw-arrow {
  color: var(--gold-l);
}

.hub-search-wrap {
  position: relative;
  flex: 1;
  min-width: 240px;
  max-width: 440px;
}
.hub-search-wrap svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--muted);
  pointer-events: none;
}
.hub-search {
  width: 100%;
  height: 42px;
  padding: 0 36px 0 40px;
  border-radius: 999px;
  border: 1px solid #d8d1c2;
  background: #ffffff;
  color: var(--ink);
  font-family: Inter, system-ui, sans-serif;
  font-size: 14px;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.hub-search:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(14, 110, 110, 0.12);
}
.hub-search-clear {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 6px;
  display: none;
}
.hub-search-clear.show {
  display: block;
}

.deck-controls-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.seg-toggle {
  display: inline-flex;
  background: #ffffff;
  border: 1px solid #d8d1c2;
  border-radius: 999px;
  padding: 3px;
}
.seg-toggle button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-family: Inter, system-ui, sans-serif;
  font-size: 12.5px;
  font-weight: 500;
  padding: 6px 13px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.seg-toggle button[aria-pressed="true"] {
  background: var(--teal);
  color: #ffffff;
  font-weight: 600;
}
.amud-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--teal-d);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--teal-soft);
  border: 1px solid rgba(14, 110, 110, 0.22);
}
.amud-chip:hover {
  background: #e1f0ee;
}

/* Step Labels */
.deck-step-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 9px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.deck-step-label .legend {
  font-size: 11.5px;
  letter-spacing: 0.01em;
  text-transform: none;
  font-weight: 500;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.essay-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}

/* Level 1 Tabs: 5 Seforim (+ Specials + All 54) OR 6 Sedarim (+ All Shas) */
.l1-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 18px;
}
.l1-tab {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  text-align: left;
  padding: 11px 13px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease, transform 0.12s ease, box-shadow 0.16s ease;
}
.l1-tab:hover {
  border-color: var(--gold);
  transform: translateY(-1px);
}
.l1-tab-name {
  font-family: Cormorant, Georgia, serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: 3px;
}
.l1-tab-meta {
  font-family: Inter, system-ui, sans-serif;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--muted);
  line-height: 1.25;
  white-space: nowrap;
}
.l1-tab[aria-selected="true"] {
  background: linear-gradient(135deg, #0E6E6E 0%, #095252 100%);
  border-color: #095252;
  box-shadow: 0 10px 24px -14px rgba(6, 48, 47, 0.7);
}
.l1-tab[aria-selected="true"] .l1-tab-name {
  color: #ffffff;
}
.l1-tab[aria-selected="true"] .l1-tab-meta {
  color: #edd79f;
}

/* Level 2 Pill Strip: Parshiyos / Masechtos */
.l2-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.l2-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid #dcd5c5;
  background: #ffffff;
  color: var(--ink);
  font-family: Inter, system-ui, sans-serif;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}
.l2-pill:hover {
  border-color: var(--teal);
  color: var(--teal-deep);
}
.l2-pill .pill-cnt {
  font-size: 11.5px;
  color: var(--muted);
  font-weight: 500;
}
.l2-pill[aria-pressed="true"] {
  background: var(--teal-deep);
  border-color: var(--teal-deep);
  color: #ffffff;
  font-weight: 600;
}
.l2-pill[aria-pressed="true"] .pill-cnt {
  color: #e6cf94;
}
.l2-pill[aria-pressed="true"] .essay-dot {
  background: #f0d285;
}

@media (max-width: 960px) {
  .l1-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  .hub-deck {
    padding: 16px 0 18px;
  }
  .deck-utility {
    margin-bottom: 14px;
    gap: 9px;
  }
  .this-week-btn {
    width: 100%;
    justify-content: center;
    padding: 10px 14px;
    font-size: 13px;
  }
  .hub-search-wrap {
    max-width: none;
    width: 100%;
  }
  .l1-grid {
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 7px;
    padding-bottom: 2px;
    margin-bottom: 14px;
  }
  .l1-grid::-webkit-scrollbar {
    display: none;
  }
  .l1-tab {
    flex: 0 0 auto;
    min-width: 112px;
    padding: 9px 12px;
  }
  .l1-tab-name {
    font-size: 18px;
  }
  .l1-tab-meta {
    font-size: 11px;
  }
  .l2-pills {
    gap: 6px;
  }
  .l2-pill {
    padding: 6px 10px;
    font-size: 12px;
  }
}

/* Main Content Area */
.hub-main {
  padding: 28px 0 56px;
  background: #ffffff;
}
.selection-banner {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-bottom: 14px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.selection-title::after { display: none !important; content: none !important; }
.selection-title {
  font-family: Cormorant, Georgia, serif;
  font-size: clamp(26px, 4vw, 34px);
  font-weight: 600;
  color: var(--ink);
  margin: 0;
  line-height: 1.1;
}
.selection-meta {
  font-size: 13.5px;
  color: var(--muted);
  font-weight: 500;
}

/* Sub-section Heading */
.block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 14px;
}
.block-head h3 {
  font-family: Inter, system-ui, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.block-badge {
  background: var(--teal-soft);
  color: var(--teal-d);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
  padding: 2px 9px;
  border-radius: 999px;
}
.content-block {
  margin-bottom: 32px;
}

/* Written Parsha Pearls Grid */
.essays-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
@media (max-width: 760px) {
  .essays-grid {
    grid-template-columns: 1fr;
    gap: 11px;
  }
}
.essay-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 3.5px solid var(--gold);
  border-radius: 6px;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}
.essay-card:hover {
  border-color: #d6c4a0;
  border-left-color: var(--teal);
  box-shadow: 0 10px 26px -18px rgba(6, 48, 47, 0.35);
}
.essay-kicker {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 5px;
}
.essay-title {
  font-family: Cormorant, Georgia, serif;
  font-size: 21px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--ink);
  text-decoration: none;
  display: block;
}
.essay-title:hover {
  color: var(--teal);
}
.essay-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.essay-pages {
  font-size: 12px;
  color: var(--muted);
}
.essay-actions {
  display: flex;
  gap: 7px;
}
.btn-read {
  display: inline-block;
  padding: 6px 13px;
  border-radius: 4px;
  background: var(--teal);
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
}
.btn-read:hover {
  background: var(--teal-d);
}
.btn-pdf {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 4px;
  border: 1px solid var(--gold);
  background: #ffffff;
  color: var(--teal-deep);
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
}
.btn-pdf:hover {
  background: var(--gold-soft);
}

/* Matching Source Sheet Highlight Card */
.sheet-strip {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sheet-inline-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  padding: 15px 18px;
  background: linear-gradient(135deg, #fbf7ec 0%, #f5eedc 100%);
  border: 1px solid #e2d2ae;
  border-radius: 7px;
}
.sheet-inline-meta {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8f6b29;
  margin-bottom: 3px;
}
.sheet-inline-title {
  font-family: Cormorant, Georgia, serif;
  font-size: 21px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
}
.sheet-inline-heb {
  display: inline-block;
  font-weight: 600;
  color: var(--teal-deep);
  margin-left: 10px;
  font-size: 17px;
}
@media (max-width: 600px) {
  .sheet-inline-heb {
    display: block;
    margin: 3px 0 0;
    font-size: 16px;
  }
}
.sheet-inline-desc {
  font-size: 13px;
  color: var(--muted);
  margin: 4px 0 0;
  max-width: 68ch;
  line-height: 1.45;
}

/* Structured Shiurim List (Parsha) */
.shiur-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.shiur-row {
  border-bottom: 1px solid var(--line);
}
.shiur-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 10px;
  text-decoration: none;
  color: var(--ink);
  border-radius: 4px;
  transition: background 0.14s ease;
}
.shiur-link:hover {
  background: var(--cream);
}
.shiur-main {
  min-width: 0;
  flex: 1;
}
.shiur-t {
  display: block;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.38;
}
.shiur-link:hover .shiur-t {
  color: var(--teal);
}
.shiur-sub {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin-top: 3px;
  font-size: 12.5px;
  color: var(--muted);
}
.parsha-chip {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: var(--teal-d);
  background: var(--teal-soft);
  padding: 1px 8px;
  border-radius: 999px;
}
.src-pill {
  flex-shrink: 0;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--muted);
  border: 1px solid var(--line);
  background: #ffffff;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
@media (max-width: 600px) {
  .shiur-link {
    padding: 11px 4px;
    gap: 10px;
  }
  .shiur-t {
    font-size: 14px;
  }
  .src-pill {
    font-size: 10.5px;
    padding: 3px 8px;
  }
}

/* Daf Range Quick-Jumper & 2-Column Daf Grid */
.daf-ranges {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}
.daf-range-label {
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-right: 4px;
}
.daf-range-btn {
  padding: 5px 11px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: var(--cream);
  color: var(--ink);
  font-family: Inter, system-ui, sans-serif;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
}
.daf-range-btn[aria-pressed="true"] {
  background: var(--gold);
  border-color: var(--gold);
  color: #ffffff;
  font-weight: 600;
}

.daf-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}
@media (max-width: 720px) {
  .daf-grid {
    grid-template-columns: 1fr;
  }
}
.daf-card a {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 12px 14px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 7px;
  text-decoration: none;
  color: var(--ink);
  transition: border-color 0.15s ease, background 0.15s ease;
}
.daf-card a:hover {
  border-color: var(--teal);
  background: var(--paper);
}
.daf-badge {
  flex: none;
  min-width: 64px;
  text-align: center;
  padding: 6px 8px;
  border-radius: 6px;
  background: var(--teal-soft);
  border: 1px solid rgba(14, 110, 110, 0.18);
  color: var(--teal-deep);
  font-family: Cormorant, Georgia, serif;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.1;
}
.daf-badge small {
  display: block;
  font-family: Inter, system-ui, sans-serif;
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 600;
}
.daf-info {
  min-width: 0;
  flex: 1;
}
.daf-title {
  display: block;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.daf-meta {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: var(--muted);
}

/* Pagination / Expand Button */
.more-row {
  margin-top: 16px;
  text-align: center;
}
.btn-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 20px;
  border-radius: 999px;
  border: 1px solid var(--teal);
  background: #ffffff;
  color: var(--teal-deep);
  font-family: Inter, system-ui, sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.btn-more:hover {
  background: var(--teal);
  color: #ffffff;
}

.empty-state {
  padding: 28px 20px;
  text-align: center;
  background: var(--cream);
  border: 1px dashed #d5ccb9;
  border-radius: 8px;
  color: var(--muted);
  font-size: 14.5px;
}

/* Footer */
.reorg-foot {
  background: var(--teal-deep);
  color: rgba(255, 255, 255, 0.8);
  padding: 34px 0;
  font-size: 13.5px;
}
.reorg-foot a {
  color: #edd79f;
  text-decoration: none;
}
.reorg-foot a:hover {
  text-decoration: underline;
}
.reorg-foot-in {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.reorg-foot p {
  margin: 0;
}

/* V2 VISUAL EMBLEMS, NAV ICONS, HEBREW SEFER/SEDER HEADERS, FORMAT FILTER & MOBILE CUE */
.reorg-nav a, .mobile-nav-rail a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.nav-ico {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  opacity: 0.78;
}
.reorg-nav a[aria-current="page"] .nav-ico,
.mobile-nav-rail a[aria-current="page"] .nav-ico {
  opacity: 1;
}

.mobile-rail-wrap {
  display: none;
  position: relative;
}
@media (max-width: 980px) {
  .mobile-rail-wrap {
    display: block;
    position: relative;
  }
  .mobile-rail-wrap .mobile-nav-rail {
    display: flex;
    padding-right: 76px;
  }
  .mobile-rail-cue {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    padding: 0 12px 0 28px;
    background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.96) 42%, #ffffff 100%);
    font-size: 12px;
    font-weight: 600;
    color: var(--teal);
    pointer-events: none;
  }
}

.hero-brand-lockup {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 10px;
}
.hero-emblem-card.parsha-emblem {
  background: rgba(253, 250, 244, 0.96);
  border: 1.5px solid rgba(212, 181, 106, 0.72);
  border-radius: 12px;
  padding: 8px 13px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-emblem-card.parsha-emblem img {
  height: 60px;
  width: auto;
  display: block;
}
.hero-daf-emblem {
  width: 84px;
  height: 84px;
  flex-shrink: 0;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.28));
}
.hero-he-sub {
  text-align: left;
  display: block;
  margin-top: 2px;
  font-family: Georgia, "Frank Ruehl CLM", serif;
  font-size: 15.5px;
  color: #E6CB88;
  letter-spacing: 0.02em;
}
@media (max-width: 640px) {
  .hero-brand-lockup { gap: 12px; }
  .hero-emblem-card.parsha-emblem { padding: 6px 10px; border-radius: 10px; }
  .hero-emblem-card.parsha-emblem img { height: 42px; }
  .hero-daf-emblem { width: 64px; height: 64px; }
  .hero-he-sub {
  text-align: left; font-size: 13.5px; }
}

.l1-tab-he {
  display: block;
  font-family: Georgia, "Frank Ruehl CLM", serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--gold);
  line-height: 1.15;
  margin-bottom: 1px;
}
.l1-tab[aria-selected="true"] .l1-tab-he {
  color: #E8CF8E;
}

.format-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 22px;
}
.fmt-pill {
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all .15s ease;
}
.fmt-pill[aria-selected="true"] {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
}
.with-mini-mark {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
}
.mini-pp-logo {
  height: 20px;
  width: auto;
  display: inline-block;
  vertical-align: middle;
}

/* CALM & BREATHABLE REFINEMENT (DEC 1) — SLIMMER HERO, ZERO VISUAL CLUTTER */
.reorg-hero {
  padding: 20px 0 22px !important;
}
.reorg-hero-in {
  gap: 20px !important;
}
.reorg-hero .reorg-crumbs {
  display: none !important;
}
.reorg-hero h1 {
  font-size: clamp(28px, 3.4vw, 40px) !important;
  margin: 0 0 2px !important;
}
.reorg-hero .lede {
  font-size: 14.5px !important;
  max-width: 52ch !important;
  margin: 6px 0 0 !important;
  opacity: 0.88 !important;
}
.reorg-hero .hero-stats {
  display: none !important;
}
.reorg-portrait img {
  max-height: 118px !important;
  width: auto !important;
  border-radius: 10px !important;
}
.reorg-portrait-wide img {
  max-height: 112px !important;
  width: auto !important;
}
.hero-emblem-card.parsha-emblem {
  padding: 6px 10px !important;
}
.hero-emblem-card.parsha-emblem img {
  height: 46px !important;
}
.hero-daf-emblem {
  width: 68px !important;
  height: 68px !important;
}
.hub-deck {
  padding: 16px 0 18px !important;
  background: #FAF7F1 !important;
  border-bottom: 1px solid var(--line) !important;
}
.deck-utility {
  margin-bottom: 12px !important;
  gap: 10px !important;
}
.deck-step-label {
  display: none !important;
}
.l1-tabs {
  gap: 8px !important;
  margin-bottom: 12px !important;
}
.l1-tab {
  padding: 9px 14px !important;
  border-radius: 8px !important;
  min-width: 0 !important;
}
.l1-tab-meta {
  display: none !important;
}
.l2-pills {
  gap: 6px !important;
}
.l2-pill {
  padding: 6px 12px !important;
  font-size: 13px !important;
  background: #fff;
}
.l2-pill[aria-selected="true"] {
  background: var(--teal-deep) !important;
  color: #ffffff !important;
  border-color: var(--teal-deep) !important;
}
.reorg-portrait::after { display: none !important; }
.l2-pill .pill-cnt {
  display: none !important;
}
.hub-main {
  padding: 24px 0 48px !important;
}
.selection-banner {
  margin-bottom: 6px !important;
}
.format-filter {
  margin: 8px 0 22px !important;
}
.fmt-pill {
  padding: 6px 13px !important;
  font-size: 12.5px !important;
}
@media (max-width: 640px) {
  .reorg-portrait { display: none !important; }
  .reorg-hero { padding: 16px 0 18px !important; }
}

/* COLOR-CODED FORMAT DISTINCTION (WRITTEN = GOLD · VIDEO = TEAL · AUDIO = SLATE BLUE · SHEETS = PLUM) */
.fdot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }
.fdot-written { background: #B8924A; }
.fdot-video { background: #0E6E6E; }
.fdot-audio { background: #2B547E; }
.fdot-sheets { background: #6B2D5C; }
.fcnt { opacity: 0.72; font-size: 11.5px; margin-left: 2px; }
.fmt-pill[aria-selected="true"] .fdot { background: #fff !important; }
.fmt-written[aria-selected="true"] { background: #9A7632 !important; border-color: #9A7632 !important; }
.fmt-video[aria-selected="true"] { background: #0E6E6E !important; border-color: #0E6E6E !important; }
.fmt-audio[aria-selected="true"] { background: #2B547E !important; border-color: #2B547E !important; }
.fmt-sheets[aria-selected="true"] { background: #6B2D5C !important; border-color: #6B2D5C !important; }

.block-written { border-left: 3.5px solid #C59B49; padding-left: 16px; }
.block-video { border-left: 3.5px solid #0E6E6E; padding-left: 16px; }
.block-audio { border-left: 3.5px solid #2B547E; padding-left: 16px; }
.block-sheets { border-left: 3.5px solid #6B2D5C; padding-left: 16px; }

.blk-ico { width: 15px; height: 15px; margin-right: 6px; vertical-align: -2px; }
.blk-title-video { color: #0E6E6E !important; }
.blk-title-audio { color: #2B547E !important; }
.badge-video { background: #E6F4F3 !important; color: #0A5555 !important; }
.badge-audio { background: #EAF0F8 !important; color: #24476B !important; }

.media-pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}
.pill-video { background: #E8F5F4; color: #0A5555; border: 1px solid rgba(14,110,110,.22); }
.pill-audio { background: #EDF3FA; color: #24476B; border: 1px solid rgba(43,84,126,.22); }
.btn-plum { background: #6B2D5C !important; }
.btn-plum:hover { background: #522046 !important; }

/* WARM BALANCED PALETTE (DEC 1 v5) — PULL BACK TEAL; DISTINCT VIDEO / AUDIO / WRITTEN / SHEETS COLORS */
.reorg-hero {
  background: linear-gradient(135deg, #1E3338 0%, #244047 58%, #2B4C52 100%) !important;
}
.this-week-btn {
  background: #FAF3E3 !important;
  color: #5C4012 !important;
  border: 1.5px solid #D5B36A !important;
  box-shadow: none !important;
}
.this-week-btn:hover {
  background: #F4E8CD !important;
  border-color: #B68A35 !important;
}
.this-week-btn .tw-badge {
  background: #9C6F1E !important;
  color: #FFFFFF !important;
}
.this-week-btn strong {
  color: #2B2111 !important;
}
.l1-tab[aria-selected="true"] {
  background: #232F36 !important;
  border-color: #232F36 !important;
  color: #FFFFFF !important;
}
.l1-tab[aria-selected="true"] .l1-he {
  color: #E8C97F !important;
}
.l2-pill[aria-selected="true"] {
  background: #232F36 !important;
  color: #FFFFFF !important;
  border-color: #232F36 !important;
}
.fmt-all[aria-selected="true"] {
  background: #232F36 !important;
  border-color: #232F36 !important;
  color: #FFFFFF !important;
}

/* VIDEO = WARM TERRACOTTA / CRIMSON (#B33F32) */
.fdot-video { background: #B33F32 !important; }
.fmt-video[aria-selected="true"] { background: #B33F32 !important; border-color: #B33F32 !important; color: #FFFFFF !important; }
.block-video { border-left: 4px solid #B33F32 !important; }
.blk-title-video { color: #9E3226 !important; }
.badge-video { background: #FCECE9 !important; color: #9E3226 !important; }
.pill-video {
  background: #B33F32 !important;
  color: #FFFFFF !important;
  border: 1px solid #9E3226 !important;
  padding: 6px 13px !important;
}
.shiur-link:hover .pill-video { background: #943025 !important; }
.short-badge {
  display: inline-block;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  background: #FCECE9;
  color: #9E3226;
  margin-right: 6px;
}

/* AUDIO = RICH INDIGO / NAVY (#2B4C7E) */
.fdot-audio { background: #2B4C7E !important; }
.fmt-audio[aria-selected="true"] { background: #2B4C7E !important; border-color: #2B4C7E !important; color: #FFFFFF !important; }
.block-audio { border-left: 4px solid #2B4C7E !important; }
.blk-title-audio { color: #233E68 !important; }
.badge-audio { background: #E9EFF8 !important; color: #233E68 !important; }
.pill-audio {
  background: #EEF3FA !important;
  color: #233E68 !important;
  border: 1.5px solid #8EA8CE !important;
  padding: 6px 13px !important;
}
.shiur-link:hover .pill-audio { background: #2B4C7E !important; color: #FFFFFF !important; border-color: #2B4C7E !important; }

/* WRITTEN = WARM BURNISHED GOLD (#9C6F1E) */
.fdot-written { background: #B07E24 !important; }
.fmt-written[aria-selected="true"] { background: #9C6F1E !important; border-color: #9C6F1E !important; color: #FFFFFF !important; }
.block-written { border-left: 4px solid #C29136 !important; }
.block-written .block-head h3 { color: #7C5613 !important; }
.block-written .block-badge { background: #FBF3DF !important; color: #7C5613 !important; }
.block-written .btn-read { background: #9C6F1E !important; border-color: #9C6F1E !important; color: #FFFFFF !important; }
.block-written .btn-read:hover { background: #7D5815 !important; }
.block-written .btn-pdf { border-color: #C9A45A !important; color: #7C5613 !important; }

/* SOURCE SHEETS = REGAL PLUM (#6E3356) */
.fdot-sheets { background: #6E3356 !important; }
.fmt-sheets[aria-selected="true"] { background: #6E3356 !important; border-color: #6E3356 !important; color: #FFFFFF !important; }
.block-sheets { border-left: 4px solid #6E3356 !important; }

/* VISUAL 16:9 VIDEO THUMBNAIL CARDS ON /parsha-pearls/ (DEC 1 v6) */
.video-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.vid-card {
  background: #FFFFFF; border: 1px solid #E5DFD3; border-radius: 11px; overflow: hidden;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.vid-card:hover { transform: translateY(-2px); border-color: #B33F32; box-shadow: 0 10px 24px rgba(31,39,43,.10); }
.vid-card-featured { border-color: #D2A853; box-shadow: 0 4px 14px rgba(179,63,50,.10); }
.vid-card-link {
  display: flex; flex-direction: column; width: 100%; height: 100%;
  text-decoration: none; color: inherit; background: none; border: 0; padding: 0; text-align: left; cursor: pointer; font: inherit;
}
.vid-thumb {
  position: relative; aspect-ratio: 16 / 9; background: #1D292F; overflow: hidden;
}
.vid-thumb > img, .vid-studio-bg img {
  width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s ease;
}
.vid-card:hover .vid-thumb > img, .vid-card:hover .vid-studio-bg img { transform: scale(1.03); }
.vid-studio-bg { position: relative; width: 100%; height: 100%; }
.vid-studio-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(22,36,42,.18) 0%, rgba(16,26,30,.72) 100%);
}
.vid-studio-label {
  position: absolute; left: 10px; bottom: 9px; z-index: 2;
  font-family: Cormorant, Georgia, serif; font-size: 16px; font-weight: 600; color: #F5DFAC;
  text-shadow: 0 1px 4px rgba(0,0,0,.6);
}
.vid-play-circle {
  position: absolute; inset: 0; margin: auto; width: 44px; height: 44px; border-radius: 50%; z-index: 2;
  background: rgba(179,63,50,.92); color: #FFFFFF; font-size: 15px; padding-left: 3px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,.42); transition: transform .16s ease, background .16s ease;
}
.vid-card:hover .vid-play-circle { transform: scale(1.08); background: #B33F32; }
.vid-tag-top, .vid-tag-short {
  position: absolute; top: 9px; left: 9px; z-index: 2;
  padding: 3px 8px; border-radius: 999px; font-size: 10.5px; font-weight: 700; letter-spacing: .04em;
}
.vid-tag-top { background: #B33F32; color: #FFFFFF; }
.vid-tag-short { background: rgba(25,35,40,.82); color: #F3D999; backdrop-filter: blur(4px); }
.vid-dur {
  position: absolute; right: 9px; bottom: 9px; z-index: 2;
  padding: 2px 7px; border-radius: 5px; font-size: 11px; font-weight: 700;
  background: rgba(15,22,26,.82); color: #FFFFFF;
}
.vid-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.vid-title { font-size: 14.5px; font-weight: 600; line-height: 1.35; color: #1F272B; }
.vid-meta { font-size: 12px; color: #677075; margin-top: auto; }
@media (max-width: 920px) { .video-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px) { .video-grid { grid-template-columns: 1fr; } }

/* Inline Video Modal */
.pp-vid-modal[hidden] { display: none; }
.pp-vid-modal {
  position: fixed; inset: 0; z-index: 9999; background: rgba(12,18,22,.82);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.pp-vid-box {
  width: 100%; max-width: 820px; background: #141D22; border-radius: 14px; overflow: hidden;
  border: 1px solid rgba(255,255,255,.16); box-shadow: 0 24px 64px rgba(0,0,0,.55);
}
.pp-vid-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 16px; color: #FFFFFF; font-size: 15px;
}
.pp-vid-head button {
  background: rgba(255,255,255,.12); border: 0; color: #fff; width: 30px; height: 30px;
  border-radius: 50%; cursor: pointer; font-size: 14px;
}
.pp-vid-box video { width: 100%; display: block; max-height: 76vh; background: #000; }

/* TODAY'S AMUD / DAF OPENING BUTTON */
.today-jump-bar { margin: 16px 0 4px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.today-jump-btn {
  display: inline-flex; align-items: center; gap: 9px; padding: 8px 16px; border-radius: 999px;
  background: #FAF3E3; color: #5C4012; border: 1.5px solid #D5B36A;
  text-decoration: none; font-size: 13.5px; font-weight: 600; cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}
.today-jump-btn:hover { background: #F2E4C6; border-color: #9C6F1E; }
.today-jump-badge {
  padding: 2px 8px; border-radius: 999px; background: #9C6F1E; color: #FFFFFF;
  font-size: 10.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
}

/* BESPOKE STUDIO VIDEO WINDOW FOR ARCHIVE TORAHANYTIME CLIPS (UNIQUE PER VIDEO!) */
.vid-studio-card {
  position: relative; width: 100%; height: 100%;
  background: linear-gradient(135deg, #1A2B31 0%, #243C44 52%, #19262C 100%);
  display: flex; align-items: stretch; overflow: hidden;
}
.vid-studio-photo {
  position: absolute; right: 0; top: 0; width: 56%; height: 100%;
  object-fit: cover; object-position: center 15%; opacity: 0.78;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.95) 36%, #000 100%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.95) 36%, #000 100%);
}
.vid-studio-text {
  position: relative; z-index: 1; width: 64%; padding: 34px 10px 14px 14px;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 4px;
}
.vid-studio-eyebrow {
  font-size: 9.5px; font-weight: 700; letter-spacing: .1em; color: #E8C77B;
}
.vid-studio-title {
  font-family: Cormorant, Georgia, serif; font-size: 17.5px; font-weight: 700; line-height: 1.16;
  color: #FFFFFF; text-shadow: 0 1px 6px rgba(0,0,0,.55);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
