/* Passover People — Static Site Stylesheet
   Preserves original Headway cream/plum/blue visual identity */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: #dddddd;
  color: #555555;
  font-family: "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  font-size: 16px;
  line-height: 1.5;
}

img {
  max-width: 100%;
  height: auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: #0051FF;
  color: #ffffff;
  padding: 8px 14px;
  z-index: 1000;
  text-decoration: none;
  font-size: 14px;
}

.skip-link:focus {
  left: 12px;
  top: 12px;
}

.container {
  max-width: 846px;
  margin: 0 auto;
  padding: 0 18px;
}

/* --------------------------------------------------------------------------
   Header Band
   -------------------------------------------------------------------------- */
.site-header {
  background-color: #ffffff;
  border-top: 5px solid #0051FF;
  border-bottom: 1px solid #0051FF;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0 10px;
}

.site-logo {
  display: inline-block;
  text-decoration: none;
  max-width: 360px;
}

.site-logo img {
  display: block;
  width: 100%;
  max-width: 360px;
  height: auto;
}

.hebrew-header {
  font-family: Tahoma, "Helvetica Neue", Arial, sans-serif;
  font-size: 50px;
  line-height: 1.1;
  color: #000000;
  font-weight: 400;
  margin: 0;
  text-align: right;
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Main Content Band
   -------------------------------------------------------------------------- */
.site-main {
  background-color: #F5EDD9;
  border-bottom: 1px solid #0051FF;
  padding: 22px 0 42px;
  min-height: 60vh;
}

.site-main--home {
  padding-top: 26px;
}

/* --------------------------------------------------------------------------
   Primary Navigation (Internal Pages)
   -------------------------------------------------------------------------- */
.primary-nav-wrap {
  border-bottom: 1px solid rgba(188, 188, 188, 0.52);
  margin-bottom: 24px;
  padding-bottom: 6px;
}

.nav-toggle {
  display: none;
  background: #E9E1CB;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 3px;
  color: #222222;
  font-family: Georgia, serif;
  font-size: 14px;
  padding: 6px 12px;
  cursor: pointer;
}

.primary-nav .nav-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 26px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-item {
  position: relative;
}

.nav-item > a,
.nav-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: "Palatino Linotype", Palatino, Georgia, serif;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 30px;
  color: #888888;
  text-decoration: none;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
}

.nav-item > a:hover,
.nav-dropdown-trigger:hover,
.nav-item > a:focus-visible,
.nav-dropdown-trigger:focus-visible {
  color: #555555;
}

.nav-item.is-active > a,
.nav-item.is-active > .nav-dropdown-trigger {
  color: #222222;
  font-weight: 700;
}

.nav-caret {
  font-size: 9px;
  opacity: 0.75;
}

.sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  max-width: 340px;
  background-color: #E9E1CB;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  list-style: none;
  margin: 0;
  padding: 6px 0;
  z-index: 60;
}

.nav-item.has-children:hover > .sub-menu,
.nav-item.has-children:focus-within > .sub-menu,
.nav-item.has-children.is-open > .sub-menu {
  display: block;
}

.sub-menu li a {
  display: block;
  padding: 6px 14px;
  font-family: Georgia, serif;
  font-size: 12px;
  line-height: 1.45;
  color: #444444;
  text-decoration: none;
  text-transform: none;
}

.sub-menu li a:hover,
.sub-menu li.is-active > a {
  background-color: rgba(255, 255, 255, 0.55);
  color: #0051FF;
}

/* --------------------------------------------------------------------------
   Homepage Hero, Testimonial & 5-Column Directory
   -------------------------------------------------------------------------- */
.home-hero {
  margin: 0 0 18px;
}

.home-hero img {
  display: block;
  width: 100%;
  height: auto;
}

.home-testimonial {
  color: #5D3954;
  font-family: Georgia, serif;
  margin: 14px 0 10px;
}

.home-quote {
  font-size: 19px;
  line-height: 1.4;
  font-style: italic;
  text-align: center;
  margin: 0 0 10px;
}

.home-attribution {
  font-size: 14px;
  line-height: 1.25;
  text-align: right;
  margin: 0;
}

.section-divider {
  border: 0;
  border-top: 1px solid rgba(188, 188, 188, 0.52);
  margin: 20px 0 24px;
}

.home-columns {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px;
}

.home-col-title {
  font-family: Georgia, serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.35;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #111111;
  margin: 0 0 12px;
}

.home-col-list {
  list-style-type: circle;
  padding-left: 16px;
  margin: 0;
}

.home-col-list li {
  font-family: Georgia, serif;
  font-size: 12px;
  line-height: 1.35;
  margin-bottom: 6px;
}

.home-col-list a {
  color: #5D3954;
  text-decoration: underline;
}

.home-col-list a:hover {
  color: #0051FF;
}

/* --------------------------------------------------------------------------
   Single Page & Single Post Content
   -------------------------------------------------------------------------- */
.single-column {
  max-width: 640px;
}

.entry-header {
  margin-bottom: 16px;
}

.entry-title {
  font-family: Georgia, serif;
  font-size: 24px;
  line-height: 1.3;
  font-weight: 400;
  color: #333333;
  margin: 0 0 6px;
}

.entry-meta {
  font-family: Georgia, serif;
  font-size: 13px;
  line-height: 1.4;
  color: #818181;
  margin: 0;
}

.entry-meta a {
  color: #5D3954;
  text-decoration: underline;
}

.entry-meta a:hover {
  color: #0051FF;
}

.entry-content {
  font-family: Georgia, serif;
  font-size: 16px;
  line-height: 1.45;
  color: #555555;
}

.entry-content::after {
  content: "";
  display: table;
  clear: both;
}

.entry-content p {
  margin: 0 0 1em;
}

.entry-content h1,
.entry-content h2,
.entry-content h3 {
  font-size: 20px;
  line-height: 1.5;
  font-weight: 600;
  color: #333333;
  margin: 1.25em 0 0.5em;
}

.entry-content h4,
.entry-content h5,
.entry-content h6 {
  font-size: 16px;
  line-height: 1.5;
  font-weight: 600;
  color: #333333;
  margin: 1em 0 0.4em;
}

.entry-content ul,
.entry-content ol {
  margin: 0 0 1em;
  padding-left: 1.5em;
}

.entry-content li {
  margin-bottom: 0.35em;
}

.entry-content a {
  color: #5D3954;
  text-decoration: underline;
  overflow-wrap: anywhere;
}

.entry-content a:hover {
  color: #0051FF;
}

.entry-content blockquote {
  border-left: 3px solid #5D3954;
  margin: 1em 0;
  padding: 0.2em 0 0.2em 1em;
  color: #444444;
  font-style: italic;
}

.entry-content hr {
  border: 0;
  border-top: 1px solid #d5ccb7;
  margin: 1.4em 0;
}

.entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.2em 0;
  font-size: 15px;
}

.entry-content th,
.entry-content td {
  border: 1px solid #d5ccb7;
  padding: 6px 8px;
  text-align: left;
  vertical-align: top;
}

.entry-content th {
  background-color: rgba(233, 225, 203, 0.7);
}

.entry-content .aligncenter {
  display: block;
  margin: 1em auto;
}

.entry-content .alignleft {
  float: left;
  margin: 0.3em 1.2em 0.8em 0;
}

.entry-content .alignright {
  float: right;
  margin: 0.3em 0 0.8em 1.2em;
}

.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.text-left {
  text-align: left;
}

.text-justify {
  text-align: justify;
}

.u-underline {
  text-decoration: underline;
}

.entry-footer {
  margin-top: 28px;
  padding-top: 14px;
  border-top: 1px solid rgba(188, 188, 188, 0.52);
  font-family: Georgia, serif;
  font-size: 13px;
  color: #818181;
}

.entry-footer a {
  color: #5D3954;
  text-decoration: underline;
}

.entry-footer a:hover {
  color: #0051FF;
}

.post-nav {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 14px;
}

.post-nav-next {
  margin-left: auto;
  text-align: right;
}

/* --------------------------------------------------------------------------
   Archived Comments
   -------------------------------------------------------------------------- */
.comments-section {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid rgba(188, 188, 188, 0.65);
}

.comments-title {
  font-family: Georgia, serif;
  font-size: 19px;
  font-weight: 400;
  color: #333333;
  margin: 0 0 16px;
}

.comment-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.comment-item {
  background-color: rgba(233, 225, 203, 0.55);
  border-radius: 5px;
  padding: 12px 15px;
  margin-bottom: 12px;
}

.comment-item--reply {
  margin-left: 26px;
  border-left: 3px solid #5D3954;
}

.comment-meta {
  font-family: Georgia, serif;
  font-size: 13px;
  color: #666666;
  margin-bottom: 6px;
}

.comment-author {
  font-weight: 700;
  color: #333333;
}

.comment-body {
  font-family: Georgia, serif;
  font-size: 15px;
  line-height: 1.45;
  color: #555555;
}

.comment-body p:last-child {
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Blog & Category Archive Cards
   -------------------------------------------------------------------------- */
.archive-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
}

.archive-title {
  font-family: Georgia, serif;
  font-size: 28px;
  line-height: 1.25;
  font-weight: 400;
  color: #000000;
  margin: 0;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.post-card {
  background-color: rgba(233, 225, 203, 0.58);
  border-radius: 5px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
}

.post-card-title {
  font-family: Georgia, serif;
  font-size: 22px;
  line-height: 1.28;
  font-weight: 400;
  margin: 0 0 10px;
}

.post-card-title a {
  color: #333333;
  text-decoration: none;
}

.post-card-title a:hover {
  color: #0051FF;
}

.post-card-excerpt {
  font-family: Georgia, serif;
  font-size: 15px;
  line-height: 1.45;
  color: #555555;
  margin: 0 0 12px;
}

.more-link {
  margin-top: auto;
  align-self: flex-start;
  font-family: Georgia, serif;
  font-size: 14px;
  color: #5D3954;
  text-decoration: underline;
}

.more-link:hover {
  color: #0051FF;
}

/* Pagination */
.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
  font-family: Georgia, serif;
  font-size: 14px;
}

.pagination a,
.pagination .current-page {
  display: inline-block;
  padding: 5px 11px;
  border-radius: 4px;
  text-decoration: none;
}

.pagination a {
  background-color: rgba(233, 225, 203, 0.85);
  color: #5D3954;
}

.pagination a:hover {
  color: #0051FF;
  background-color: #ffffff;
}

.pagination .current-page {
  background-color: #5D3954;
  color: #ffffff;
}

/* --------------------------------------------------------------------------
   Footer Band
   -------------------------------------------------------------------------- */
.site-footer {
  background-color: #ffffff;
  border-bottom: 5px solid #0051FF;
  padding: 14px 0 18px;
}

.footer-inner {
  border-top: 1px solid #E1E0E0;
  padding-top: 12px;
  text-align: center;
  font-family: "Palatino Linotype", Palatino, Georgia, serif;
  font-size: 13px;
  color: #000000;
}

.footer-copyright {
  margin: 0;
}

/* --------------------------------------------------------------------------
   Lightbox Modal
   -------------------------------------------------------------------------- */
.lightbox[hidden] {
  display: none;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(15, 15, 20, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 1000;
}

.lightbox-stage {
  max-width: min(92vw, 960px);
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: 3px;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.45);
}

.lightbox-bar {
  margin-top: 10px;
  color: #f3eee2;
  font-family: Georgia, serif;
  font-size: 14px;
  display: flex;
  gap: 16px;
}

.lightbox-close,
.lightbox-nav {
  position: fixed;
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  border: 0;
  border-radius: 50%;
  width: 42px;
  height: 42px;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.lightbox-close:hover,
.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.28);
}

.lightbox-close {
  top: 16px;
  right: 18px;
}

.lightbox-nav--prev {
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-nav--next {
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
}

/* --------------------------------------------------------------------------
   Responsive Breakpoints
   -------------------------------------------------------------------------- */
@media screen and (max-width: 740px) {
  .home-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media screen and (max-width: 680px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
  }

  .primary-nav {
    display: none;
    margin-top: 10px;
  }

  .primary-nav.is-open {
    display: block;
  }

  .primary-nav .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }

  .nav-item > a,
  .nav-dropdown-trigger {
    width: 100%;
    justify-content: space-between;
    padding: 4px 2px;
    border-bottom: 1px solid rgba(188, 188, 188, 0.35);
  }

  .sub-menu {
    position: static;
    min-width: 0;
    max-width: none;
    box-shadow: none;
    border: 0;
    padding: 2px 0 6px 12px;
  }

  .nav-item.has-children:hover > .sub-menu {
    display: none;
  }

  .nav-item.has-children.is-open > .sub-menu {
    display: block;
  }
}

@media screen and (max-width: 630px) {
  .post-grid {
    grid-template-columns: 1fr;
  }
}

@media screen and (max-width: 600px) {
  .header-inner {
    justify-content: center;
  }

  .hebrew-header {
    display: none;
  }

  .home-quote {
    font-size: 17px;
  }
}

@media screen and (max-width: 500px) {
  .home-columns {
    grid-template-columns: 1fr;
  }

  .entry-content .alignleft,
  .entry-content .alignright {
    float: none;
    display: block;
    margin: 1em auto;
  }
}

/* Generated study highlight utility classes */
.hl-bg-47ccfc { background-color: #47ccfc; padding: 0 2px; }
.hl-bg-722cfd { background-color: #722cfd; padding: 0 2px; }
.hl-bg-74a7fe { background-color: #74a7fe; padding: 0 2px; }
.hl-bg-86cd4d { background-color: #86cd4d; padding: 0 2px; }
.hl-bg-96d35f { background-color: #96d35f; padding: 0 2px; }
.hl-bg-c1eefd { background-color: #c1eefd; padding: 0 2px; }
.hl-bg-caf0fe { background-color: #caf0fe; padding: 0 2px; }
.hl-bg-d357fe { background-color: #d357fe; padding: 0 2px; }
.hl-bg-d9cafe { background-color: #d9cafe; padding: 0 2px; }
.hl-bg-d9eaca { background-color: #d9eaca; padding: 0 2px; }
.hl-bg-dd2067 { background-color: #dd2067; padding: 0 2px; }
.hl-bg-e0edd4 { background-color: #e0edd4; padding: 0 2px; }
.hl-bg-e392fe { background-color: #e392fe; padding: 0 2px; }
.hl-bg-ecbafe { background-color: #ecbafe; padding: 0 2px; }
.hl-bg-ed719e { background-color: #ed719e; padding: 0 2px; }
.hl-bg-f6c7d9 { background-color: #f6c7d9; padding: 0 2px; }
.hl-bg-f8fadb { background-color: #f8fadb; padding: 0 2px; }
.hl-bg-fda531 { background-color: #fda531; padding: 0 2px; }
.hl-bg-fee8cb { background-color: #fee8cb; padding: 0 2px; }
.hl-bg-ff6251 { background-color: #ff6251; padding: 0 2px; }
.hl-bg-ff8c82 { background-color: #ff8c82; padding: 0 2px; }
.hl-bg-ffb5af { background-color: #ffb5af; padding: 0 2px; }
.hl-bg-ffc677 { background-color: #ffc677; padding: 0 2px; }
.hl-bg-ffd9a8 { background-color: #ffd9a8; padding: 0 2px; }
.hl-bg-ffdad8 { background-color: #ffdad8; padding: 0 2px; }
.hl-bg-fff959 { background-color: #fff959; padding: 0 2px; }
.hl-bg-fff995 { background-color: #fff995; padding: 0 2px; }
.hl-fg-000000 { color: #000000; }
.hl-fg-0000ff { color: #0000ff; }
.hl-fg-555555 { color: #555555; }
.hl-fg-800080 { color: #800080; }
