/*
 * CRU - Chabad Research Unit
 * Site Stylesheet
 * Two-tone design system: dark (#2F2E3C) on white
 * Fonts: Playfair Display (headings), Libre Baskerville (body)
 */

@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&family=Playfair+Display:wght@400;700&display=swap');

/* ===================================================
   CSS VARIABLES - Global two-tone palette
   Change --cru-dark to reskin the entire site.
   =================================================== */
:root {
  --cru-dark: #2F2E3C;
  --cru-light: #ffffff;
  --cru-muted: rgba(47, 46, 60, 0.55);
  --cru-border: rgba(47, 46, 60, 0.2);
  --cru-hover: rgba(47, 46, 60, 0.06);
  --cru-overlay: rgba(47, 46, 60, 0.92);

  --font-heading: "Playfair Display", "Georgia", serif;
  --font-body: "Libre Baskerville", "Times New Roman", serif;
}

/* ===================================================
   RESET
   =================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--cru-dark);
  background: var(--cru-light);
  line-height: 1.7;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--cru-dark); text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* Phosphor icon base sizing */
i[class*="ph-"] { vertical-align: middle; line-height: 1; }

/* ===================================================
   UTILITIES
   =================================================== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ===================================================
   HEADER
   =================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--cru-dark);
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
}
body { padding-top: 56px; }

.header-logo {
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cru-dark);
  height: 86px;
  width: 170px;
  clip-path: polygon(0 0, 100% 0, 88% 100%, 0 100%);
  z-index: 102;
  padding: 8px 26px 8px 10px;
}
.header-logo img {
  max-height: 58px;
  max-width: 110px;
  width: auto;
  height: auto;
  filter: brightness(0) invert(1);
}

.header-beis-heh {
  position: absolute;
  right: 0;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cru-dark);
  height: 86px;
  width: 170px;
  clip-path: polygon(12% 0, 100% 0, 100% 100%, 0 100%);
  z-index: 2;
  padding: 4px 10px 4px 26px;
}
.header-beis-heh span {
  font-family: "David", "Times New Roman", serif;
  font-size: 60px;
  color: var(--cru-light);
  line-height: 1;
  letter-spacing: 3px;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 1;
}
.header-nav a {
  color: var(--cru-light);
  font-family: var(--font-body);
  font-size: 13px;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  gap: 7px;
  transition: opacity 0.2s;
  white-space: nowrap;
}
.header-nav > a:hover, .nav-dropdown > a:hover { opacity: 0.7; }
.header-nav > a i, .nav-dropdown > a i { font-size: 17px; }

/* Dropdown menus */
.nav-dropdown { position: relative; }
.nav-dropdown > a {
  color: var(--cru-light);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 0 12px;
}
.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--cru-dark);
  min-width: 220px;
  padding: 8px 0;
  z-index: 200;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.nav-dropdown:hover .nav-dropdown-menu { display: block; }
.nav-dropdown-menu a {
  display: block;
  color: var(--cru-light);
  font-size: 13px;
  padding: 10px 24px;
  white-space: nowrap;
  transition: background 0.15s;
  text-transform: none;
  letter-spacing: 0;
  text-align: center;
}
.nav-dropdown-menu a:hover { background: rgba(255,255,255,0.1); }

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--cru-light);
  cursor: pointer;
  padding: 8px;
  z-index: 3;
}
.mobile-menu-btn i { font-size: 24px; }

.mobile-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--cru-overlay);
  z-index: 200;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
}
.mobile-nav-overlay.active { display: flex; }
.mobile-nav-links {
  width: 100%;
  max-width: 320px;
}
.mobile-nav-level {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.mobile-nav-sub { display: none; }
.mobile-nav-overlay a {
  color: var(--cru-light);
  font-family: var(--font-body);
  font-size: 16px;
  padding: 14px 32px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: opacity 0.2s;
}
.mobile-nav-overlay a:hover { opacity: 0.7; }
.mobile-nav-overlay a i { font-size: 20px; }
/* Top-level item with sub-menu: row with link + expand button */
.mobile-nav-has-sub {
  display: flex;
  align-items: center;
}
.mobile-nav-has-sub > a {
  flex: 1;
}
.mobile-nav-expand {
  background: none;
  border: none;
  border-left: 1px solid rgba(255,255,255,0.15);
  color: var(--cru-light);
  cursor: pointer;
  padding: 14px 18px;
  font-size: 18px;
  transition: opacity 0.2s;
}
.mobile-nav-expand:hover { opacity: 0.7; }
/* Sub-menu back button */
.mobile-nav-back {
  background: none;
  border: none;
  color: rgba(255,255,255,0.6);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 13px;
  padding: 14px 32px;
  display: flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  transition: opacity 0.2s;
}
.mobile-nav-back:hover { opacity: 0.7; }
.mobile-nav-back i { font-size: 16px; }
/* Sub-menu title */
.mobile-nav-sub-title {
  color: var(--cru-light);
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 400;
  padding: 8px 32px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  margin-bottom: 4px;
}
.mobile-nav-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  color: var(--cru-light);
  cursor: pointer;
  padding: 8px;
  font-size: 28px;
}

/* ===================================================
   HERO
   =================================================== */
.hero {
  padding: 80px 40px 60px;
  text-align: center;
  border-bottom: 1px solid var(--cru-border);
}
.hero-label {
  font-family: var(--font-body);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: var(--cru-muted);
  display: block;
  margin-bottom: 12px;
}
.hero h1 {
  font-family: var(--font-heading);
  font-size: 48px;
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 20px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}
.hero-tagline {
  font-size: 16px;
  color: var(--cru-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* Homepage hero: two-column with image */
.hero-home {
  text-align: left;
}
.hero-home .hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  max-width: 1100px;
  margin: 0 auto;
  align-items: start;
}
.hero-home .hero-text h1 {
  font-family: var(--font-heading);
  font-size: 42px;
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 20px;
  max-width: none;
  margin-left: 0;
}
.hero-intro {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 12px;
}
.hero-body {
  font-size: 14px;
  color: var(--cru-muted);
  line-height: 1.7;
  margin-bottom: 12px;
}
.hero-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* CTA grid: sits inside the hero-home, below the text, alongside the image */
.cta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  max-width: 1100px;
  margin: 0 auto;
}
.cta-grid-buttons {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cta-button {
  display: block;
  background: var(--cru-dark);
  color: var(--cru-light);
  text-align: center;
  padding: 18px 24px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: opacity 0.2s;
}
.cta-button:hover { opacity: 0.85; }

/* Library intro section */
.library-intro {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  margin-bottom: 40px;
  align-items: start;
}
.library-intro-text { font-size: 14px; line-height: 1.8; color: var(--cru-muted); }
.library-intro-text p { margin-bottom: 12px; }
.library-intro-text h3 {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 400;
  color: var(--cru-dark);
  margin: 20px 0 12px;
}
.library-intro-photo img { width: 200px; height: auto; }

/* ===================================================
   SECTION WRAPPER
   =================================================== */
.section {
  padding: 64px 40px;
  max-width: 1200px;
  margin: 0 auto;
}
.section-border { border-bottom: 1px solid var(--cru-border); }

.section-header { margin-bottom: 40px; }
.section-header h2 {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 400;
  margin-bottom: 8px;
}
.section-header p {
  color: var(--cru-muted);
  font-size: 14px;
}
.section-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--cru-muted);
  margin-bottom: 20px;
}

/* ===================================================
   LIBRARY CARDS GRID
   =================================================== */
.library-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}
.library-card {
  border: 1px solid var(--cru-border);
  padding: 32px 28px;
  transition: background 0.2s, box-shadow 0.2s;
  cursor: pointer;
}
.library-card:hover {
  background: var(--cru-hover);
  box-shadow: 0 2px 12px rgba(47, 46, 60, 0.06);
}
.library-card-icon {
  margin-bottom: 16px;
  color: var(--cru-dark);
  font-size: 28px;
}
.library-card h3 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 400;
  margin-bottom: 8px;
}
.library-card p {
  font-size: 13px;
  color: var(--cru-muted);
  line-height: 1.6;
}
.library-card-count {
  font-size: 12px;
  color: var(--cru-muted);
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.library-card-count i { font-size: 14px; }

/* ===================================================
   CONTENT LIST (Library listing)
   =================================================== */
.content-list { display: flex; flex-direction: column; }

.content-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  padding: 32px 0;
  border-bottom: 1px dashed var(--cru-border);
  align-items: end;
}
.content-item:first-child { padding-top: 0; }

.content-item-body h3 {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 400;
  margin-bottom: 4px;
}
.content-item-meta {
  font-size: 12px;
  color: var(--cru-muted);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.content-item-meta i { font-size: 13px; }
.content-item-body p {
  font-size: 14px;
  color: var(--cru-muted);
  line-height: 1.7;
}

.content-item-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 140px;
  align-items: flex-end;
}
.action-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--cru-dark);
  transition: opacity 0.2s;
  white-space: nowrap;
}
.action-link:hover { opacity: 0.6; }
.action-link i { font-size: 20px; }

/* Theme chips */
.theme-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.theme-chip {
  font-size: 11px;
  letter-spacing: 0.5px;
  padding: 4px 12px;
  border: 1px solid var(--cru-border);
  color: var(--cru-muted);
  transition: background 0.2s, color 0.2s;
  cursor: pointer;
}
.theme-chip:hover {
  background: var(--cru-dark);
  color: var(--cru-light);
  border-color: var(--cru-dark);
}

/* ===================================================
   STUDY VIEW
   =================================================== */
.study-breadcrumb {
  font-size: 13px;
  color: var(--cru-muted);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.study-breadcrumb a { color: var(--cru-muted); }
.study-breadcrumb a:hover { color: var(--cru-dark); }
.study-breadcrumb i { font-size: 12px; }

.study-header {
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--cru-border);
}
.study-header h1 {
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 400;
  margin-bottom: 8px;
}
.study-header-meta {
  font-size: 13px;
  color: var(--cru-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.study-header-meta .divider { margin: 0 4px; }
.study-summary {
  font-size: 15px;
  line-height: 1.8;
  margin-top: 16px;
  max-width: 680px;
}

/* Study layout: adaptive based on available media */
.study-layout {
  position: relative;
  display: grid;
  gap: 0;
  margin-bottom: 48px;
}
.study-layout.layout-split { grid-template-columns: 1fr 1fr; }
.study-layout.layout-audio-pdf { grid-template-columns: 1fr; }
.study-layout.layout-full { grid-template-columns: 1fr; }
.study-layout.layout-audio-only { grid-template-columns: 1fr; }
.study-layout.layout-pdf-only { grid-template-columns: 1fr; }

/* Audio-only standalone panel */
.audio-panel-standalone {
  border: 1px solid var(--cru-border);
}
.audio-panel-standalone .audio-player { border-top: none; }

/* PDF-only layout: show PDF in A4-ish proportions */
.study-layout.layout-pdf-only .pdf-panel iframe {
  min-height: 80vh;
}

/* Audio+PDF layout: PDF gets tall display, audio stays compact */
.study-layout.layout-audio-pdf .pdf-panel iframe {
  min-height: 70vh;
}

/* Fullscreen toggle */
.fullscreen-toggle {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 10;
  width: 32px;
  height: 32px;
  border: 1px solid var(--cru-border);
  border-radius: 4px;
  background: rgba(255,255,255,0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--cru-dark);
  transition: background 0.2s;
}
.fullscreen-toggle:hover { background: var(--cru-dark); color: var(--cru-light); }

/* Fullscreen mode */
.study-layout.is-fullscreen {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 9999;
  background: #fff;
  overflow-y: auto;
  margin: 0;
  padding: 0;
}
.study-layout.is-fullscreen .video-placeholder { min-height: 60vh; }
.study-layout.is-fullscreen .pdf-panel iframe { min-height: 85vh; }
.study-layout.is-fullscreen .fullscreen-toggle { position: fixed; top: 12px; right: 12px; z-index: 10000; }

/* In fullscreen, audio player should stay compact, PDF fills remaining space */
.study-layout.is-fullscreen .audio-panel-standalone { max-height: auto; }
.study-layout.is-fullscreen .audio-player { padding: 10px 20px; }
.study-layout.is-fullscreen .media-panel { flex-shrink: 0; }
.study-layout.is-fullscreen .media-downloads { padding: 6px 20px; }

/* Audio+PDF fullscreen: make it a column layout, PDF fills the rest */
.study-layout.layout-audio-pdf.is-fullscreen {
  display: flex;
  flex-direction: column;
}
.study-layout.layout-audio-pdf.is-fullscreen .audio-panel-standalone { flex-shrink: 0; }
.study-layout.layout-audio-pdf.is-fullscreen .pdf-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.study-layout.layout-audio-pdf.is-fullscreen .pdf-panel iframe { flex: 1; min-height: 0; }

/* Split layout fullscreen: keep side-by-side grid, PDF fills height */
.study-layout.layout-split.is-fullscreen {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr;
  height: 100vh;
}
.study-layout.layout-split.is-fullscreen .media-panel {
  overflow-y: auto;
}
.study-layout.layout-split.is-fullscreen .pdf-panel {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.study-layout.layout-split.is-fullscreen .pdf-panel iframe { flex: 1; min-height: 0; }

/* PDF-only fullscreen: PDF takes all available space */
.study-layout.layout-pdf-only.is-fullscreen .pdf-panel iframe { min-height: 90vh; }

/* Media panel */
.media-panel {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--cru-border);
}
.layout-split .media-panel { border-right: none; }
.video-placeholder {
  width: 100%;
  flex: 1;
  min-height: 300px;
  background: var(--cru-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  color: var(--cru-muted);
}
.video-placeholder i { font-size: 44px; }
.video-placeholder span { font-size: 12px; letter-spacing: 1px; text-transform: uppercase; }

.audio-player {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border-top: 1px solid var(--cru-border);
}
.audio-play-btn {
  width: 36px;
  height: 36px;
  border: 1.5px solid var(--cru-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: none;
  color: var(--cru-dark);
  flex-shrink: 0;
  transition: background 0.2s, color 0.2s;
}
.audio-play-btn:hover {
  background: var(--cru-dark);
  color: var(--cru-light);
}
.audio-play-btn i { font-size: 16px; }
.audio-track {
  flex: 1;
  height: 2px;
  background: var(--cru-border);
  position: relative;
}
.audio-track-fill {
  position: absolute;
  left: 0; top: 0;
  height: 100%;
  width: 35%;
  background: var(--cru-dark);
}
.audio-track-dot {
  position: absolute;
  top: 50%;
  left: 35%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  background: var(--cru-dark);
  border-radius: 50%;
}
.audio-time { font-size: 12px; color: var(--cru-muted); font-variant-numeric: tabular-nums; }

.media-downloads {
  display: flex;
  border-top: 1px solid var(--cru-border);
}
.media-downloads a {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--cru-dark);
  transition: background 0.2s;
}
.media-downloads a:hover { background: var(--cru-hover); }
.media-downloads a + a { border-left: 1px solid var(--cru-border); }
.media-downloads i { font-size: 16px; }

/* PDF panel */
.pdf-panel {
  border: 1px solid var(--cru-border);
  display: flex;
  flex-direction: column;
}
.pdf-panel-header {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--cru-muted);
  padding: 20px 28px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--cru-border);
}
.pdf-panel-header i { font-size: 16px; }
.pdf-placeholder-text {
  font-family: "David", "Times New Roman", serif;
  font-size: 20px;
  direction: rtl;
  line-height: 2;
  color: var(--cru-muted);
  flex: 1;
  padding: 28px;
}
.pdf-download {
  border-top: 1px solid var(--cru-border);
}
.pdf-download a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--cru-dark);
  transition: background 0.2s;
}
.pdf-download a:hover { background: var(--cru-hover); }
.pdf-download i { font-size: 16px; }

/* ===================================================
   DISCUSSION
   =================================================== */
.discussion-section {
  border-top: 1px solid var(--cru-border);
  padding-top: 40px;
}
.discussion-header {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 400;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.discussion-header i { font-size: 22px; }

.discussion-compose {
  border: 1px solid var(--cru-border);
  padding: 20px;
  margin-bottom: 32px;
}
.discussion-compose textarea {
  width: 100%;
  border: none;
  font-family: var(--font-body);
  font-size: 14px;
  resize: none;
  outline: none;
  color: var(--cru-dark);
  min-height: 60px;
  background: transparent;
}
.discussion-compose textarea::placeholder { color: var(--cru-border); }
.discussion-compose-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 12px;
}

.discussion-message {
  padding: 20px 0;
  border-bottom: 1px solid var(--cru-border);
}
.discussion-message-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.discussion-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--cru-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--cru-dark);
}
.discussion-author { font-size: 13px; font-weight: 700; }
.discussion-time { font-size: 12px; color: var(--cru-muted); }
.discussion-body { font-size: 14px; line-height: 1.7; margin-left: 36px; }
.discussion-actions {
  display: flex;
  gap: 16px;
  margin-top: 8px;
  margin-left: 36px;
}
.discussion-action {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--cru-muted);
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  font-family: var(--font-body);
  transition: color 0.2s;
}
.discussion-action:hover { color: var(--cru-dark); }
.discussion-action i { font-size: 14px; }

.discussion-reply {
  margin-left: 36px;
  padding-left: 20px;
  border-left: 1px solid var(--cru-border);
}

/* ===================================================
   RELATED ITEMS
   =================================================== */
.related-section {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--cru-border);
}
.related-header {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--cru-muted);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.related-header i { font-size: 16px; }
.related-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.related-card {
  border: 1px solid var(--cru-border);
  padding: 20px 18px;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: background 0.2s;
}
.related-card:hover { background: var(--cru-hover); }
.related-card-badge {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--cru-muted);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.related-card-badge i { font-size: 12px; }
.related-card h4 {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 400;
  margin-bottom: 8px;
  line-height: 1.4;
}
.related-card p {
  font-size: 12px;
  color: var(--cru-muted);
  line-height: 1.6;
  flex: 1;
}
.related-card-media {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  font-size: 14px;
  color: var(--cru-muted);
}
.related-hidden { display: none; }
a.theme-chip {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
a.theme-chip:hover {
  background: var(--cru-dark);
  color: var(--cru-light);
}
@media (max-width: 900px) {
  .related-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 500px) {
  .related-grid { grid-template-columns: 1fr; }
}

/* ===================================================
   BUTTONS
   =================================================== */
.btn {
  font-family: var(--font-body);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 12px 28px;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn:hover { opacity: 0.8; }
.btn-primary {
  background: var(--cru-dark);
  color: var(--cru-light);
}
.btn-outline {
  background: transparent;
  color: var(--cru-dark);
  border: 1px solid var(--cru-dark);
}
.btn-ghost {
  background: transparent;
  color: var(--cru-dark);
  padding: 8px 16px;
}
.btn i { font-size: 14px; }

/* ===================================================
   FEATURED CONTENT
   =================================================== */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.featured-card {
  border: 1px solid var(--cru-border);
  padding: 28px 24px;
  transition: background 0.2s, box-shadow 0.2s;
  cursor: pointer;
}
.featured-card:hover {
  background: var(--cru-hover);
  box-shadow: 0 2px 12px rgba(47, 46, 60, 0.06);
}
.featured-card-badge {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--cru-muted);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.featured-card-badge i { font-size: 13px; }
.featured-card h3 {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 400;
  margin-bottom: 8px;
}
.featured-card p {
  font-size: 13px;
  color: var(--cru-muted);
  line-height: 1.6;
}
.featured-card-date {
  font-size: 12px;
  color: var(--cru-muted);
  margin-top: 14px;
}
.featured-card-media {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}
.featured-card-media i { font-size: 17px; color: var(--cru-muted); }

/* ===================================================
   SEDRA FEATURE
   =================================================== */
.sedra-feature {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 32px;
  align-items: start;
}
.sedra-badge {
  writing-mode: vertical-lr;
  transform: rotate(180deg);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: var(--cru-muted);
  padding-top: 4px;
}
.sedra-items { display: flex; flex-direction: column; gap: 16px; }
.sedra-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border: 1px solid var(--cru-border);
  transition: background 0.2s;
}
.sedra-item:hover { background: var(--cru-hover); }
.sedra-item-info h4 {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 400;
  margin-bottom: 2px;
}
.sedra-item-info span { font-size: 12px; color: var(--cru-muted); }
.sedra-item-arrow { color: var(--cru-muted); font-size: 20px; }

/* ===================================================
   NAVIGATION (prev/next)
   =================================================== */
.item-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--cru-border);
  margin-top: 48px;
}
.item-nav a {
  padding: 24px 0;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--cru-muted);
  transition: color 0.2s;
}
.item-nav a:hover { color: var(--cru-dark); }
.item-nav a:last-child {
  justify-content: flex-end;
  text-align: right;
  border-left: 1px solid var(--cru-border);
  padding-left: 24px;
}
.item-nav i { font-size: 20px; }
.item-nav-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  display: block;
  margin-bottom: 2px;
}

/* ===================================================
   LIBRARY FILTER BAR
   =================================================== */
.library-search-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--cru-border);
  padding: 0 16px;
  margin-bottom: 28px;
}
.library-search-bar i { font-size: 18px; color: var(--cru-muted); flex-shrink: 0; }
.library-search-bar input {
  flex: 1;
  border: none;
  padding: 12px 0;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--cru-dark);
  background: transparent;
  outline: none;
}
.library-search-bar input::placeholder { color: rgba(47,46,60,0.3); }
.library-filter-count {
  font-size: 12px;
  color: var(--cru-muted);
  white-space: nowrap;
}

/* ===================================================
   HEADER SEARCH
   =================================================== */
.header-search-btn {
  position: absolute;
  right: 180px;
  background: none;
  border: none;
  color: var(--cru-light);
  cursor: pointer;
  font-size: 20px;
  padding: 8px;
  opacity: 0.7;
  transition: opacity 0.2s;
  z-index: 3;
}
.header-search-btn:hover { opacity: 1; }

/* Search panel: drops down from header */
.search-panel {
  display: none;
  position: fixed;
  top: 56px;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99;
  background: rgba(47,46,60,0.5);
}
.search-panel.active { display: block; }
.search-panel-inner {
  max-width: 580px;
  margin: 0 auto;
  background: var(--cru-light);
  clip-path: polygon(3% 0, 97% 0, 100% 100%, 0 100%);
  padding: 36px 32px 16px;
  border-top: 8px solid var(--cru-dark);
  box-shadow: inset 3px 30px 20px -20px rgba(47,46,60,0.25), inset -3px 30px 20px -20px rgba(47,46,60,0.25);
  max-height: 70vh;
  overflow-y: auto;
}
.search-panel-input-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 2px solid var(--cru-dark);
  padding-bottom: 12px;
  margin-bottom: 16px;
}
.search-panel-input-wrap i { font-size: 20px; color: var(--cru-muted); }
.search-panel-input-wrap input {
  flex: 1;
  border: none;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--cru-dark);
  outline: none;
  background: transparent;
}
.search-panel-input-wrap input::placeholder { color: rgba(47,46,60,0.3); }
.search-panel-close {
  background: none;
  border: none;
  color: var(--cru-muted);
  cursor: pointer;
  font-size: 18px;
  padding: 4px;
}
.search-panel-close:hover { color: var(--cru-dark); }

/* Suggestion results inside panel */
.sp-section { margin-bottom: 12px; }
.sp-label {
  display: block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--cru-muted);
  margin-bottom: 8px;
}
.sp-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.sp-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--cru-border);
  color: var(--cru-dark);
  text-decoration: none;
  transition: opacity 0.2s;
}
.sp-item:hover { opacity: 0.7; }
.sp-item-title {
  font-size: 14px;
  font-family: var(--font-heading);
  font-weight: 400;
}
.sp-item-lib {
  font-size: 11px;
  color: var(--cru-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  flex-shrink: 0;
  margin-left: 12px;
}
.sp-library {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px solid var(--cru-border);
  font-size: 14px;
  color: var(--cru-dark);
  text-decoration: none;
  transition: opacity 0.2s;
}
.sp-library:hover { opacity: 0.7; }
.sp-library i:last-child { margin-left: auto; color: var(--cru-muted); }
.sp-see-all {
  display: block;
  text-align: center;
  padding: 14px 0 4px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--cru-dark);
  text-decoration: none;
  transition: opacity 0.2s;
}
.sp-see-all:hover { opacity: 0.7; }
.sp-see-all i { font-size: 14px; margin-left: 4px; }
.sp-empty {
  text-align: center;
  color: var(--cru-muted);
  font-size: 14px;
  padding: 20px 0;
}

@media (max-width: 900px) {
  .header-search-btn { right: 130px; }
  .search-panel { top: 56px; }
  .search-panel-inner {
    max-width: none;
    margin: 0 12px;
    clip-path: polygon(2% 0, 98% 0, 100% 100%, 0 100%);
    padding: 20px 24px 12px;
    border-top: none;
  }
  .search-panel-input-wrap input { font-size: 16px; }
}
@media (max-width: 500px) {
  .header-search-btn { right: 90px; font-size: 18px; }
  .search-panel { top: 48px; }
  .search-panel-inner {
    margin: 0 8px;
    clip-path: polygon(1% 0, 99% 0, 100% 100%, 0 100%);
    padding: 28px 18px 10px;
    border-top: none;
  }
  .search-panel-input-wrap input { font-size: 16px; }
  .sp-item-title { font-size: 13px; }
  .sp-item-lib { font-size: 10px; }
}

/* ===================================================
   REUSABLE PAGE CONTENT
   =================================================== */
.page-title {
  font-family: var(--font-heading);
  font-size: 48px;
  font-weight: 400;
  margin-bottom: 24px;
}
.page-lead {
  font-size: 18px;
  line-height: 1.6;
  color: var(--cru-muted);
  margin-bottom: 28px;
}
.page-body {
  font-size: 15px;
  line-height: 1.8;
}
.page-list-item {
  padding: 12px 0;
  border-bottom: 1px solid var(--cru-border);
}
.page-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.page-two-col-image img {
  width: 100%;
  max-width: 400px;
  height: auto;
  display: block;
}
.page-image-caption {
  font-size: 12px;
  color: var(--cru-muted);
  margin-top: 12px;
  text-align: center;
  line-height: 1.6;
}
/* Policy/legal content */
.policy-content {
  max-width: 800px;
}
.policy-content p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--cru-muted);
  margin-bottom: 16px;
}
.policy-content h2 {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 400;
  margin: 36px 0 16px;
  color: var(--cru-dark);
}
.policy-content ul {
  margin: 0 0 16px 24px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--cru-muted);
}
.policy-content li { margin-bottom: 8px; }
.policy-content a { text-decoration: underline; text-underline-offset: 2px; }

@media (max-width: 900px) {
  .page-two-col { grid-template-columns: 1fr; gap: 28px; }
  .page-two-col-image { text-align: center; }
  .page-two-col-image img { max-width: 280px; margin: 0 auto; }
  .page-title { font-size: 36px; }
  .page-lead { font-size: 16px; }
}
@media (max-width: 500px) {
  .page-title { font-size: 28px; margin-bottom: 16px; }
  .page-lead { font-size: 15px; }
  .page-two-col { gap: 20px; }
  .page-two-col-image img { max-width: 220px; }
  .policy-content h2 { font-size: 19px; margin-top: 28px; }
}

/* ===================================================
   FOOTER
   =================================================== */
.site-footer {
  background: var(--cru-dark);
  padding: 40px;
  margin-top: 48px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}
.footer-link {
  color: var(--cru-light);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: opacity 0.2s;
}
.footer-link:hover { opacity: 0.7; }
.footer-link i { font-size: 24px; }
.footer-copyright {
  width: 100%;
  text-align: center;
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.footer-copyright a {
  color: rgba(255,255,255,0.5);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.footer-copyright a:hover { color: var(--cru-light); }
.footer-contact-icons {
  display: flex;
  gap: 8px;
  height: 24px;
  align-items: center;
}
.footer-contact-icons i { font-size: 24px; }

/* ===================================================
   RESPONSIVE
   =================================================== */
@media (max-width: 900px) {
  .header-logo { width: 130px; height: 72px; padding: 6px 22px 6px 10px; }
  .header-logo img { height: 56px; }
  .header-beis-heh { width: 130px; height: 72px; }
  .header-beis-heh span { font-size: 40px; }
  .header-nav { display: none; }
  .mobile-menu-btn { display: flex; }

  .hero { padding: 80px 24px 60px; }
  .hero h1 { font-size: 32px; }

  .section { padding: 48px 24px; }

  .featured-grid { grid-template-columns: 1fr; }
  .library-grid { grid-template-columns: 1fr; }

  .study-layout { grid-template-columns: 1fr !important; }
  .media-panel { border-right: none; border-bottom: 1px solid var(--cru-border); }
  .pdf-panel { overflow: hidden; width: 100%; }
  .pdf-panel iframe { width: 100%; min-height: 60vh; max-width: 100%; }
  .study-header h1 { font-size: 28px; }
  .theme-chips { flex-wrap: wrap; }

  .content-item { grid-template-columns: 1fr; gap: 16px; }
  .content-item-actions { flex-direction: row; align-items: flex-start; min-width: 0; flex-wrap: wrap; }
  .action-link { white-space: normal; }

  .footer-inner { flex-direction: column; gap: 24px; align-items: center; }
  .footer-link { font-size: 11px; letter-spacing: 1.5px; }

  .hero-home .hero-content { grid-template-columns: 1fr; }
  .cta-grid { grid-template-columns: 1fr; }

  .library-intro { grid-template-columns: 1fr; }
  .library-intro-photo { text-align: center; }

  .sedra-feature { grid-template-columns: 1fr; }
  .sedra-badge { writing-mode: horizontal-tb; transform: none; }

  .item-nav { grid-template-columns: 1fr; }
  .item-nav a:last-child { border-left: none; border-top: 1px solid var(--cru-border); padding-left: 0; padding-top: 24px; }
}

@media (max-width: 500px) {
  .site-header { height: 48px; }
  body { padding-top: 48px; }
  .header-logo { width: 120px; height: 64px; padding: 6px 16px 6px 8px; }
  .header-logo img { height: 48px; }
  .header-beis-heh { width: 100px; height: 64px; }
  .header-beis-heh span { font-size: 34px; }

  .hero h1 { font-size: 26px; }
  .hero { padding: 60px 20px 48px; }
  .section { padding: 36px 16px; }

  .pdf-panel iframe { min-height: 50vh; }
  .content-item-actions { gap: 8px; }
  .action-link { font-size: 11px; letter-spacing: 1px; }
  .action-link i { font-size: 16px; }

  .library-grid { grid-template-columns: 1fr; }

  .related-grid { grid-template-columns: 1fr; }
  .related-card h4 { font-size: 14px; }

  .footer-inner { gap: 20px; padding: 0 16px; }
  .footer-link span { font-size: 10px; }

  .ut-columns { gap: 24px !important; }
  .artist-layout { grid-template-columns: 1fr !important; gap: 24px; }
  .artist-sidebar { max-width: 250px; }
}

/* ===================================================
   SHARED: Tab navigation + Sedra grid
   Used by Rebbe's Discourses and Friday Night
   =================================================== */
.rd-hero {
  padding: 80px 40px 60px;
  border-bottom: 1px solid var(--cru-border);
}
.rd-hero-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  max-width: 1100px;
  margin: 0 auto;
  align-items: start;
}
.rd-hero-text h1 {
  font-family: var(--font-heading);
  font-size: 38px;
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 12px;
}
.rd-hero-text > p:first-of-type {
  font-size: 15px;
  color: var(--cru-muted);
  line-height: 1.8;
  max-width: 560px;
}
.rd-hero-image { max-width: 300px; flex-shrink: 0; }
.rd-hero-image img { width: 100%; height: auto; display: block; }

.rd-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--cru-border);
  margin-bottom: 32px;
}
.rd-tab {
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--cru-muted);
  background: none;
  border: none;
  padding: 14px 24px;
  cursor: pointer;
  position: relative;
  transition: color 0.2s;
  white-space: nowrap;
}
.rd-tab:hover { color: var(--cru-dark); }
.rd-tab-active { color: var(--cru-dark); font-weight: 700; }
.rd-tab-active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--cru-dark);
}

.rd-tab-panel { display: none; }
.rd-tab-panel-active { display: block; }

.rd-sedra-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 32px 40px;
}
.rd-sedra-column { min-width: 0; }
.rd-sedra-name {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 400;
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--cru-border);
}
.rd-sedra-items {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.rd-sedra-items li a {
  font-size: 13px;
  color: var(--cru-dark);
  line-height: 1.5;
  display: block;
  padding: 4px 0;
  transition: opacity 0.2s;
}
.rd-sedra-items li a:hover { opacity: 0.6; }

/* This Week feature (used on library pages) */
.this-week {
  margin-bottom: 48px;
  border: 1px solid var(--cru-border);
}
.this-week-header {
  padding: 16px 24px;
  border-bottom: 1px solid var(--cru-border);
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.this-week-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--cru-muted);
}
.this-week-parsha {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 400;
  color: var(--cru-dark);
}
.this-week-holiday {
  font-size: 13px;
  color: var(--cru-muted);
  margin-left: auto;
}
.this-week-body {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: 400px;
}
.this-week-list {
  border-right: 1px solid var(--cru-border);
  overflow-y: auto;
  max-height: 500px;
}
.this-week-item {
  display: block;
  padding: 14px 20px;
  border-bottom: 1px solid var(--cru-border);
  color: var(--cru-dark);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s;
}
.this-week-item:hover, .this-week-item.tw-active {
  background: var(--cru-hover);
}
.this-week-item.tw-active {
  border-left: 3px solid var(--cru-dark);
  padding-left: 17px;
}
.this-week-item-title {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 400;
  display: block;
  margin-bottom: 2px;
}
.this-week-item-meta {
  font-size: 11px;
  color: var(--cru-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}
.this-week-item-media { display: inline-flex; gap: 4px; }
.this-week-item-media i { font-size: 13px; color: var(--cru-muted); }
.this-week-viewer {
  display: flex;
  flex-direction: column;
}
.this-week-viewer iframe {
  flex: 1;
  border: none;
  width: 100%;
  min-height: 400px;
}
.this-week-viewer-empty {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cru-muted);
  font-size: 14px;
  padding: 40px;
  text-align: center;
}
.this-week-download {
  border-top: 1px solid var(--cru-border);
}
.this-week-download a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--cru-dark);
  transition: background 0.2s;
}
.this-week-download a:hover { background: var(--cru-hover); }
.this-week-download i { font-size: 16px; }

@media (max-width: 900px) {
  .this-week-header { flex-direction: column; gap: 4px; }
  .this-week-holiday { margin-left: 0; }
  .this-week-body { grid-template-columns: 1fr; }
  .this-week-list { max-height: 200px; border-right: none; border-bottom: 1px solid var(--cru-border); }
}

@media (max-width: 900px) {
  .rd-hero { padding: 48px 0 0; }
  .rd-hero-inner { grid-template-columns: 1fr; gap: 0; }
  .rd-hero-text { padding: 0 24px 24px; }
  .rd-hero-text h1 { font-size: 28px; }
  .rd-hero-image {
    max-width: none;
    width: 100%;
    height: 200px;
    overflow: hidden;
    order: -1;
    margin-bottom: 24px;
  }
  .rd-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
  }
  .rd-tabs { flex-wrap: wrap; }
  .rd-tab { padding: 10px 14px; font-size: 11px; letter-spacing: 1.5px; }
  .rd-sedra-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 24px; }
}
@media (max-width: 500px) {
  .rd-hero { padding: 0; }
  .rd-hero-text { padding: 24px 16px 20px; }
  .rd-hero-text h1 { font-size: 24px; letter-spacing: 1px; }
  .rd-hero-image { height: 160px; }
  .rd-sedra-grid { grid-template-columns: 1fr 1fr; gap: 20px 16px; }
  .rd-tab { padding: 8px 10px; font-size: 10px; letter-spacing: 1px; }
}

/* ===================================================
   UNIVERSAL TEACHINGS pages
   =================================================== */
.ut-columns {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 48px;
  align-items: start;
}
.ut-block { margin-bottom: 24px; }
.ut-block:last-child { margin-bottom: 0; }
.ut-block h3 {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 400;
  margin-bottom: 12px;
}
.ut-block p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--cru-dark);
}
.ut-laws-list {
  list-style: none;
  padding-left: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
  counter-reset: laws;
}
.ut-laws-list li {
  font-size: 15px;
  line-height: 1.8;
  color: var(--cru-dark);
  padding-left: 48px;
  position: relative;
  counter-increment: laws;
}
.ut-laws-list li::before {
  content: counter(laws);
  position: absolute;
  left: 0;
  top: -2px;
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 400;
  color: var(--cru-dark);
  line-height: 1;
}
.ut-portrait { margin-top: 32px; }
.ut-portrait-caption {
  font-size: 12px;
  color: var(--cru-muted);
  margin-top: 8px;
}
.ut-arrow-link {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--cru-dark);
  transition: opacity 0.2s;
  max-width: 680px;
}
.ut-arrow-link:hover { opacity: 0.6; }
.ut-arrow-link i { font-size: 22px; flex-shrink: 0; }

@media (max-width: 900px) {
  .ut-columns { grid-template-columns: 1fr !important; gap: 28px; }
  .ut-columns .ut-col img { max-width: 280px; }
  /* Floated portraits in seven-laws etc */
  [style*="float: left"][style*="180px"] {
    float: none !important;
    width: 100% !important;
    max-width: 200px;
    margin: 0 auto 16px !important;
    display: block;
  }
  [style*="float: left"][style*="180px"] img {
    width: 100% !important;
  }
}

/* ===================================================
   MAIMONIDES MAP PROJECT
   =================================================== */

/* Prose blocks (used for all text sections) */
.mm-prose { }
.mm-prose p { font-size: 15px; line-height: 1.8; margin-bottom: 20px; }
.mm-prose p:last-child { margin-bottom: 0; }
.mm-prose a { text-decoration: underline; }
.mm-prose::after { content: ''; display: table; clear: both; }

/* Small floating portrait images */
.mm-float-right {
  float: right;
  width: 200px;
  margin: 0 0 20px 28px;
}
.mm-float-right img {
  width: 200px;
  height: auto;
  border: 1px solid var(--cru-border);
  display: block;
}
.mm-float-caption {
  font-size: 12px;
  color: var(--cru-muted);
  margin-top: 8px;
}

/* Centered MAPS heading */
.mm-maps-heading { }

/* Map blocks */
.mm-map-block { margin-bottom: 56px; padding-bottom: 56px; border-bottom: 1px solid var(--cru-border); }
.mm-map-block:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.mm-map-block h3 {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 400;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.mm-map-block p { font-size: 15px; line-height: 1.8; margin-bottom: 16px; }
.mm-link { text-decoration: underline; }
.mm-map-image-link { display: block; margin-top: 24px; }
.mm-map-img {
  width: auto;
  height: auto;
  max-width: 100%;
  border: 1px solid var(--cru-border);
  transition: opacity 0.2s;
}
.mm-map-image-link:hover .mm-map-img { opacity: 0.85; }

/* Two-column map layout (image left, text right) */
.mm-map-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
  margin-top: 8px;
}
.mm-map-split-image .mm-map-image-link { margin-top: 0; }
.mm-map-split-text p { font-size: 15px; line-height: 1.8; margin-bottom: 16px; }
.mm-map-split-text p:last-child { margin-bottom: 0; }

/* Back link */
.mm-back-link { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: var(--cru-muted); transition: color 0.2s; }
.mm-back-link:hover { color: var(--cru-dark); }
.mm-back-link i { font-size: 20px; }

@media (max-width: 900px) {
  .mm-float-right {
    float: none;
    margin: 0 auto 24px;
  }
  .mm-map-split { grid-template-columns: 1fr; gap: 24px; }
}
