/* ==========================================================================
   MBU public tables — shared Shiurim-style list tables
   ========================================================================== */

.mbu-prayer-times-detail,
.mbu-lectures-detail,
.mbu-weekday-prayers-detail {
  position: relative;
  font-family: var(--font-sans);
  color: var(--ink);
}

.mbu-prayer-times-detail > h3,
.mbu-lectures-detail > h3,
.mbu-weekday-prayers-detail > h3 {
  margin: 0 0 1.25rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  line-height: 1.2;
  color: var(--ink);
}

.mbu-prayer-times-detail > p,
.mbu-lectures-detail > p {
  margin: 0 0 1.5rem;
  max-width: 42rem;
  color: var(--muted-foreground);
  font-size: 0.95rem;
  line-height: 1.55;
}

.mbu-prayer-times-detail > p a,
.mbu-lectures-detail > p a {
  color: var(--gold-dim);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

/* Summary + pager */
.mbu-prayer-times-detail .dtq-mbu-grid,
.mbu-lectures-detail .dtq-mbu-grid {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.mbu-prayer-times-detail .dtq-mbu-grid-summary,
.mbu-lectures-detail .dtq-mbu-grid-summary {
  position: absolute;
  top: 0.4rem;
  right: 0;
  margin: 0;
  font-family: var(--font-label);
  font-size: 0.8rem;
  color: var(--muted-foreground);
  text-align: right;
}

@media (max-width: 640px) {
  .mbu-prayer-times-detail .dtq-mbu-grid-summary,
  .mbu-lectures-detail .dtq-mbu-grid-summary {
    position: static;
    margin: 0 0 0.75rem;
    text-align: left;
  }
}

.mbu-prayer-times-detail .dtq-mbu-grid-pager,
.mbu-lectures-detail .dtq-mbu-grid-pager,
.mbu-prayer-times-detail .tablenav,
.mbu-lectures-detail .tablenav {
  font-family: var(--font-label);
  font-size: 0.85rem;
  color: var(--muted-foreground);
}

.mbu-prayer-times-detail .dtq-mbu-grid-pager a,
.mbu-lectures-detail .dtq-mbu-grid-pager a {
  color: var(--gold-dim);
}

/* --------------------------------------------------------------------------
   Shared table shell (Shiurim look)
   -------------------------------------------------------------------------- */

.mbu-prayer-times-detail .dtq-mbu-grid-table,
.mbu-lectures-detail .dtq-mbu-grid-table,
.mbu-prayer-times-detail .mbu-regular-prayer-times {
  width: 100%;
  min-width: 0;
  border-collapse: separate;
  border-spacing: 0;
  background: transparent;
  border: 0;
  border-top: 1px solid color-mix(in oklab, var(--ink) 12%, transparent);
  border-bottom: 1px solid color-mix(in oklab, var(--ink) 12%, transparent);
  box-shadow: none;
}

.mbu-prayer-times-detail table.dtq-mbu-grid-table {
  min-width: 720px;
}

.mbu-prayer-times-detail .mbu-regular-prayer-times {
  width: 100%;
  max-width: none;
  table-layout: fixed;
}

.mbu-prayer-times-detail .widefat.dtq-mbu-grid-table > thead > tr > th,
.mbu-prayer-times-detail .widefat.dtq-mbu-grid-table > thead > tr > td,
.mbu-lectures-detail .widefat.dtq-mbu-grid-table > thead > tr > th,
.mbu-lectures-detail .widefat.dtq-mbu-grid-table > thead > tr > td,
.mbu-prayer-times-detail .mbu-regular-prayer-times thead th {
  background: transparent !important;
  color: var(--muted-foreground) !important;
  border: 0 !important;
  border-bottom: 1px solid color-mix(in oklab, var(--ink) 10%, transparent) !important;
  padding: 1rem 0.75rem !important;
  font-family: var(--font-label);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  text-align: left;
  vertical-align: middle;
  white-space: nowrap;
}

.mbu-prayer-times-detail .widefat.dtq-mbu-grid-table > thead > tr > th a,
.mbu-prayer-times-detail .widefat.dtq-mbu-grid-table > thead > tr > td a,
.mbu-lectures-detail .widefat.dtq-mbu-grid-table > thead > tr > th a,
.mbu-lectures-detail .widefat.dtq-mbu-grid-table > thead > tr > td a {
  color: var(--muted-foreground) !important;
  text-decoration: none;
}

/* Prayer-times / Shiurim: solid header background */
.mbu-prayer-times-detail .widefat.dtq-mbu-grid-table > thead > tr > th,
.mbu-prayer-times-detail .widefat.dtq-mbu-grid-table > thead > tr > td,
.mbu-lectures-detail .widefat.dtq-mbu-grid-table > thead > tr > th,
.mbu-lectures-detail .widefat.dtq-mbu-grid-table > thead > tr > td {
  background: var(--secondary) !important;
  color: var(--ink) !important;
  border-bottom: 1px solid color-mix(in oklab, var(--ink) 12%, transparent) !important;
  padding: 0.85rem 0.75rem !important;
  letter-spacing: 0.16em;
  font-size: 0.62rem;
  white-space: normal;
  line-height: 1.35;
  max-width: 7.5rem;
  vertical-align: bottom;
}

.mbu-prayer-times-detail .widefat.dtq-mbu-grid-table > thead > tr > th a,
.mbu-prayer-times-detail .widefat.dtq-mbu-grid-table > thead > tr > td a,
.mbu-lectures-detail .widefat.dtq-mbu-grid-table > thead > tr > th a,
.mbu-lectures-detail .widefat.dtq-mbu-grid-table > thead > tr > td a {
  color: var(--ink) !important;
}

.mbu-prayer-times-detail .widefat.dtq-mbu-grid-table > thead > tr:first-child > th.merged-cell {
  text-align: center;
  border-bottom: 0 !important;
  color: var(--gold-dim) !important;
  letter-spacing: 0.28em;
  font-size: 0.68rem;
  max-width: none;
  vertical-align: middle;
  background: color-mix(in oklab, var(--secondary) 70%, var(--gold) 8%) !important;
}

.mbu-prayer-times-detail .widefat.dtq-mbu-grid-table > thead > tr:first-child > th[rowspan] {
  vertical-align: middle;
  max-width: none;
}

/* Sort affordance on sortable column links */
.mbu-prayer-times-detail .widefat.dtq-mbu-grid-table > thead a,
.mbu-lectures-detail .widefat.dtq-mbu-grid-table > thead a {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  text-decoration: none;
}

.mbu-prayer-times-detail .widefat.dtq-mbu-grid-table > thead a:hover,
.mbu-lectures-detail .widefat.dtq-mbu-grid-table > thead a:hover {
  color: var(--gold-dim) !important;
}

.mbu-prayer-times-detail .widefat.dtq-mbu-grid-table > thead a::after,
.mbu-lectures-detail .widefat.dtq-mbu-grid-table > thead a::after {
  content: "⇅";
  display: inline-block;
  flex-shrink: 0;
  margin-left: 0.1em;
  opacity: 0.4;
  font-size: 0.85em;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1;
  font-weight: 600;
}

.mbu-prayer-times-detail .widefat.dtq-mbu-grid-table > thead a.asc::after,
.mbu-lectures-detail .widefat.dtq-mbu-grid-table > thead a.asc::after {
  content: "▲";
  opacity: 0.95;
  color: var(--gold-dim);
  font-size: 0.65em;
}

.mbu-prayer-times-detail .widefat.dtq-mbu-grid-table > thead a.desc::after,
.mbu-lectures-detail .widefat.dtq-mbu-grid-table > thead a.desc::after {
  content: "▼";
  opacity: 0.95;
  color: var(--gold-dim);
  font-size: 0.65em;
}

.mbu-prayer-times-detail .widefat.dtq-mbu-grid-table > tbody > tr > th,
.mbu-prayer-times-detail .widefat.dtq-mbu-grid-table > tbody > tr > td,
.mbu-lectures-detail .widefat.dtq-mbu-grid-table > tbody > tr > td,
.mbu-prayer-times-detail .mbu-regular-prayer-times tbody th,
.mbu-prayer-times-detail .mbu-regular-prayer-times tbody td {
  background: transparent !important;
  border: 0 !important;
  border-bottom: 1px solid color-mix(in oklab, var(--ink) 10%, transparent) !important;
  padding: 1.5rem 0.75rem !important;
  vertical-align: middle;
  font-size: 0.95rem;
  color: var(--ink);
  white-space: nowrap;
}

.mbu-prayer-times-detail .widefat.dtq-mbu-grid-table > tbody > tr:last-child > td,
.mbu-lectures-detail .widefat.dtq-mbu-grid-table > tbody > tr:last-child > td,
.mbu-prayer-times-detail .mbu-regular-prayer-times tbody tr:last-child th,
.mbu-prayer-times-detail .mbu-regular-prayer-times tbody tr:last-child td {
  border-bottom: 0 !important;
}

.mbu-prayer-times-detail .widefat.dtq-mbu-grid-table > tbody > tr:nth-child(odd) > th,
.mbu-prayer-times-detail .widefat.dtq-mbu-grid-table > tbody > tr:nth-child(odd) > td,
.mbu-lectures-detail .widefat.dtq-mbu-grid-table > tbody > tr:nth-child(odd) > td {
  background: transparent !important;
}

.mbu-prayer-times-detail .widefat.dtq-mbu-grid-table > tbody > tr:hover > td,
.mbu-lectures-detail .widefat.dtq-mbu-grid-table > tbody > tr:hover > td,
.mbu-prayer-times-detail .mbu-regular-prayer-times tbody tr:hover th,
.mbu-prayer-times-detail .mbu-regular-prayer-times tbody tr:hover td {
  background: color-mix(in oklab, var(--secondary) 70%, transparent) !important;
}

/* Weekday 2-col values — label left, time right (do not use browser th centering) */
.mbu-prayer-times-detail .mbu-regular-prayer-times th {
  width: auto;
  text-align: left !important;
  color: var(--muted-foreground) !important;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.95rem !important;
  font-family: var(--font-sans);
  padding-left: 0 !important;
}

.mbu-prayer-times-detail .mbu-regular-prayer-times td {
  width: 7.5rem;
  max-width: 7.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  text-align: right !important;
  white-space: nowrap;
  padding-right: 0 !important;
}

/* First data column (date / name) a touch stronger */
.mbu-prayer-times-detail .widefat.dtq-mbu-grid-table > tbody > tr > td:first-child {
  font-family: var(--font-label);
  font-size: 0.85rem;
  color: var(--ink);
}

.mbu-prayer-times-detail .widefat.dtq-mbu-grid-table > tbody > tr > td:nth-child(2) {
  font-family: var(--font-display);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   Shiurim-only content classes
   -------------------------------------------------------------------------- */

.mbu-lectures-detail .widefat.dtq-mbu-grid-table > thead > tr > th {
  padding: 0.75rem 0.65rem !important;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  max-width: none;
  vertical-align: middle;
}

.mbu-lectures-detail .widefat.dtq-mbu-grid-table > tbody > tr > td {
  padding: 1rem 0.65rem !important;
  font-size: 0.9rem;
  vertical-align: middle;
}

.mbu-lectures-detail .mbr-shiurim-col--loc {
  text-align: right;
}

.mbu-lectures-detail .mbr-shiurim-day {
  display: block;
  font-family: var(--font-label);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-dim);
  line-height: 1.35;
}

.mbu-lectures-detail .mbr-shiurim-time {
  font-family: var(--font-label);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
}

.mbu-lectures-detail .mbr-shiurim-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
  line-height: 1.3;
  color: var(--ink);
  white-space: normal;
}

.mbu-lectures-detail .mbr-shiurim-teacher {
  margin: 0.2rem 0 0;
  font-size: 0.8rem;
  line-height: 1.35;
  color: var(--muted-foreground);
  white-space: normal;
}

.mbu-lectures-detail .mbr-shiurim-loc {
  display: block;
  text-align: right;
  font-family: var(--font-label);
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

.mbu-lectures-detail .mbr-shiurim-status {
  font-size: 0.8rem;
  color: var(--muted-foreground);
}

.mbu-lectures-detail .mbr-shiurim-status.status-cancelled {
  color: #b42318;
}

.mbu-lectures-detail .mbr-shiurim-status.status-active {
  color: var(--gold-dim);
}

.mbu-lectures-detail .remind-me-column,
.mbu-lectures-detail .mbr-shiurim-remind {
  white-space: nowrap;
  font-size: 0.8rem;
  color: var(--muted-foreground);
}

.mbu-lectures-detail .mbr-shiurim-remind label {
  font-weight: 400;
  font-size: 0.8rem;
}

.mbu-lectures-detail .lecture-reminder-progress,
.mbu-lectures-detail .lecture-reminder-done {
  margin-top: 0.25rem;
  color: var(--muted-foreground);
}

.mbu-lectures-detail table.dtq-mbu-grid-table.mbr-shiurim-table {
  min-width: 0;
}

/* --------------------------------------------------------------------------
   Kidusch offers schedule — match prayer-times / Shiurim grid
   -------------------------------------------------------------------------- */

.mbu-offers-detail {
  position: relative;
  font-family: var(--font-sans);
  color: var(--ink);
}

.mbu-offers-detail__intro {
  margin: 0 0 1.5rem;
}

.mbu-offers-detail__intro p {
  margin: 0;
  max-width: 42rem;
  line-height: 1.7;
  color: var(--muted-foreground, #666);
}

.mbu-offers-detail__scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 0 1.5rem;
}

.mbu-offers-detail .mbu-offers-table,
.mbu-offers-detail table.table {
  width: 100%;
  min-width: 640px;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
  margin: 0;
  background: transparent;
  border: 0;
  border-top: 1px solid color-mix(in oklab, var(--ink) 12%, transparent);
  border-bottom: 1px solid color-mix(in oklab, var(--ink) 12%, transparent);
  box-shadow: none;
}

.mbu-offers-detail .mbu-offers-table thead th,
.mbu-offers-detail table.table thead th {
  background: var(--secondary) !important;
  color: var(--ink) !important;
  border: 0 !important;
  border-bottom: 1px solid color-mix(in oklab, var(--ink) 12%, transparent) !important;
  padding: 0.85rem 0.75rem !important;
  font-family: var(--font-label);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-align: left;
  vertical-align: bottom;
  line-height: 1.35;
  white-space: normal;
}

.mbu-offers-detail .mbu-offers-table tbody td,
.mbu-offers-detail table.table tbody td {
  background: transparent !important;
  border: 0 !important;
  border-bottom: 1px solid color-mix(in oklab, var(--ink) 10%, transparent) !important;
  padding: 1.15rem 0.75rem !important;
  vertical-align: top;
  font-size: 0.9rem;
  color: var(--ink);
  word-break: break-word;
  overflow-wrap: anywhere;
}

.mbu-offers-detail .mbu-offers-table tbody tr:last-child td,
.mbu-offers-detail table.table tbody tr:last-child td {
  border-bottom: 0 !important;
}

.mbu-offers-detail .mbu-offers-table tbody tr:hover td,
.mbu-offers-detail table.table tbody tr:hover td {
  background: color-mix(in oklab, var(--secondary) 70%, transparent) !important;
}

.mbu-offers-detail .mbu-offers-table__date,
.mbu-offers-detail .mbu-offers-table td:first-child,
.mbu-offers-detail table.table td:first-child {
  width: 22%;
  font-family: var(--font-label);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.45;
}

.mbu-offers-detail .mbu-offers-table td:not(:first-child),
.mbu-offers-detail table.table td:not(:first-child) {
  width: 19.5%;
  font-family: var(--font-sans);
  font-weight: 500;
  color: color-mix(in oklab, var(--ink) 78%, transparent);
}

.mbu-offers-detail .mbu-offers-table em,
.mbu-offers-detail table.table em {
  font-style: italic;
  color: var(--muted-foreground);
}

.mbu-offers-detail .mbu-cancel-offer {
  display: inline-block;
  margin-top: 0.35rem;
  padding: 0.2rem 0.55rem;
  border: 1px solid color-mix(in oklab, var(--ink) 18%, transparent);
  border-radius: 2px;
  background: transparent;
  color: var(--ink);
  font-family: var(--font-label);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
}

.mbu-offers-detail .mbu-cancel-offer:hover {
  border-color: var(--gold-dim);
  color: var(--gold-dim);
}

.mbu-offers-detail__cta {
  margin: 0 0 1.25rem;
}

/* Avoid a flash above the table before JS moves the CTA into the title row */
body:has([data-kidusch-offer-slot]) .mbu-offers-detail > .mbu-offers-detail__cta {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.mbu-offers-detail__cta .btn-primary,
.mbu-offers-detail__cta .mbu-offers-open-modal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.35rem;
  border: 0;
  border-radius: 2px;
  background: var(--ink);
  color: #fff !important;
  font-family: var(--font-label);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
}

.mbu-offers-detail__cta .btn-primary:hover,
.mbu-offers-detail__cta .mbu-offers-open-modal:hover {
  background: color-mix(in oklab, var(--ink) 88%, var(--gold) 12%);
  color: #fff !important;
}

/* When moved into the page header, spacing is handled there */
.page-header__actions .mbu-offers-detail__cta {
  margin: 0;
}

#mbu-kidusch-offer-modal .modal-dialog {
  width: min(560px, calc(100vw - 2rem));
}

#mbu-kidusch-offer-modal .mbu-offers-new {
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
  box-shadow: none;
  background: transparent;
}

#mbu-kidusch-offer-modal .mbu-offers-new .form-group > [class*="col-"] {
  float: none;
  width: 100%;
  padding: 0;
  margin: 0;
}

#mbu-kidusch-offer-modal .mbu-offers-new .control-label {
  text-align: left;
  margin-bottom: 0.4rem;
}

#mbu-kidusch-offer-modal .mbu-offers-new .col-sm-offset-3 {
  margin-left: 0;
}

/* --------------------------------------------------------------------------
   Org / contact tables (Commission figures + Board bare table)
   Same hairline list as weekday regular prayer times
   -------------------------------------------------------------------------- */

.entry-content :is(figure.wp-block-table.mbu-simple-table, figure.mbu-simple-table),
.site-main :is(figure.wp-block-table.mbu-simple-table, figure.mbu-simple-table) {
  display: block;
  width: 100%;
  max-width: none;
  margin: 0 0 2.75rem;
  overflow: visible;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.entry-content table.mbu-simple-table,
.site-main table.mbu-simple-table,
.entry-content :is(figure.mbu-simple-table, .wp-block-table.mbu-simple-table) table,
.site-main :is(figure.mbu-simple-table, .wp-block-table.mbu-simple-table) table {
  width: 100% !important;
  min-width: 0;
  max-width: none !important;
  table-layout: fixed;
  border-collapse: separate !important;
  border-spacing: 0;
  margin: 0 0 2.75rem;
  font-size: 0.95rem;
  font-family: var(--font-sans);
  color: var(--ink);
  background: transparent !important;
  border: 0 !important;
  border-top: 1px solid color-mix(in oklab, var(--ink) 12%, transparent) !important;
  border-bottom: 1px solid color-mix(in oklab, var(--ink) 12%, transparent) !important;
  box-shadow: none !important;
}

.entry-content :is(figure.mbu-simple-table, .wp-block-table.mbu-simple-table) table,
.site-main :is(figure.mbu-simple-table, .wp-block-table.mbu-simple-table) table {
  margin-bottom: 0;
}

.entry-content :is(figure.mbu-simple-table, .wp-block-table.mbu-simple-table, table.mbu-simple-table) :is(td, th),
.site-main :is(figure.mbu-simple-table, .wp-block-table.mbu-simple-table, table.mbu-simple-table) :is(td, th) {
  padding: 1.5rem 1rem 1.5rem 0 !important;
  border: 0 !important;
  border-bottom: 1px solid color-mix(in oklab, var(--ink) 10%, transparent) !important;
  background: transparent !important;
  vertical-align: middle;
  white-space: normal;
  text-align: left;
}

.entry-content :is(figure.mbu-simple-table, .wp-block-table.mbu-simple-table, table.mbu-simple-table) :is(td, th):last-child,
.site-main :is(figure.mbu-simple-table, .wp-block-table.mbu-simple-table, table.mbu-simple-table) :is(td, th):last-child {
  padding-right: 0 !important;
}

.entry-content :is(figure.mbu-simple-table, .wp-block-table.mbu-simple-table, table.mbu-simple-table) tr:last-child td,
.site-main :is(figure.mbu-simple-table, .wp-block-table.mbu-simple-table, table.mbu-simple-table) tr:last-child td {
  border-bottom: 0 !important;
}

/* In-table section titles (Board "President" / "Board") */
.entry-content table.mbu-simple-table th,
.site-main table.mbu-simple-table th {
  padding: 2.25rem 1rem 0.85rem 0 !important;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 1.8vw, 1.45rem);
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink) !important;
  border-bottom: 1px solid color-mix(in oklab, var(--ink) 12%, transparent) !important;
}

.entry-content table.mbu-simple-table tr:first-child th,
.site-main table.mbu-simple-table tr:first-child th {
  padding-top: 0.35rem !important;
}

/* 2-col contact: name = muted label */
.entry-content :is(figure.mbu-simple-table, .wp-block-table.mbu-simple-table) table:not(:has(td:nth-child(3))) td:first-child,
.site-main :is(figure.mbu-simple-table, .wp-block-table.mbu-simple-table) table:not(:has(td:nth-child(3))) td:first-child,
.entry-content table.mbu-simple-table:not(:has(td:nth-child(3))) td:first-child,
.site-main table.mbu-simple-table:not(:has(td:nth-child(3))) td:first-child {
  width: 55%;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--muted-foreground) !important;
}

/* 2-col contact: email / phone = display value */
.entry-content :is(figure.mbu-simple-table, .wp-block-table.mbu-simple-table) table:not(:has(td:nth-child(3))) td:last-child,
.site-main :is(figure.mbu-simple-table, .wp-block-table.mbu-simple-table) table:not(:has(td:nth-child(3))) td:last-child,
.entry-content table.mbu-simple-table:not(:has(td:nth-child(3))) td:last-child,
.site-main table.mbu-simple-table:not(:has(td:nth-child(3))) td:last-child {
  width: 45%;
  text-align: right;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink) !important;
  line-height: 1.45;
}

/* 3-col board: name | email | role — full-width, left-aligned columns */
.entry-content :is(figure.mbu-simple-table, .wp-block-table.mbu-simple-table) table:has(td:nth-child(3)) td,
.site-main :is(figure.mbu-simple-table, .wp-block-table.mbu-simple-table) table:has(td:nth-child(3)) td,
.entry-content table.mbu-simple-table:has(td:nth-child(3)) td,
.site-main table.mbu-simple-table:has(td:nth-child(3)) td {
  text-align: left;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--ink) !important;
}

.entry-content :is(figure.mbu-simple-table, .wp-block-table.mbu-simple-table) table:has(td:nth-child(3)) td:first-child,
.site-main :is(figure.mbu-simple-table, .wp-block-table.mbu-simple-table) table:has(td:nth-child(3)) td:first-child,
.entry-content table.mbu-simple-table:has(td:nth-child(3)) td:first-child,
.site-main table.mbu-simple-table:has(td:nth-child(3)) td:first-child {
  width: 28%;
  color: var(--muted-foreground) !important;
}

.entry-content :is(figure.mbu-simple-table, .wp-block-table.mbu-simple-table) table:has(td:nth-child(3)) td:nth-child(2),
.site-main :is(figure.mbu-simple-table, .wp-block-table.mbu-simple-table) table:has(td:nth-child(3)) td:nth-child(2),
.entry-content table.mbu-simple-table:has(td:nth-child(3)) td:nth-child(2),
.site-main table.mbu-simple-table:has(td:nth-child(3)) td:nth-child(2) {
  width: 34%;
}

.entry-content :is(figure.mbu-simple-table, .wp-block-table.mbu-simple-table) table:has(td:nth-child(3)) td:nth-child(3),
.site-main :is(figure.mbu-simple-table, .wp-block-table.mbu-simple-table) table:has(td:nth-child(3)) td:nth-child(3),
.entry-content table.mbu-simple-table:has(td:nth-child(3)) td:nth-child(3),
.site-main table.mbu-simple-table:has(td:nth-child(3)) td:nth-child(3) {
  width: 38%;
  color: var(--muted-foreground) !important;
}

.entry-content :is(figure.mbu-simple-table, .wp-block-table.mbu-simple-table, table.mbu-simple-table) a,
.site-main :is(figure.mbu-simple-table, .wp-block-table.mbu-simple-table, table.mbu-simple-table) a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: color-mix(in oklab, var(--gold) 65%, transparent);
  text-underline-offset: 0.15em;
  font-weight: inherit;
}

.entry-content :is(figure.mbu-simple-table, .wp-block-table.mbu-simple-table, table.mbu-simple-table) tr:hover td,
.site-main :is(figure.mbu-simple-table, .wp-block-table.mbu-simple-table, table.mbu-simple-table) tr:hover td {
  background: color-mix(in oklab, var(--secondary) 70%, transparent) !important;
}

/* Hide separator lines under contact blocks; keep vertical gap via figure margin */
.entry-content figure.mbu-simple-table + .wp-block-separator,
.site-main figure.mbu-simple-table + .wp-block-separator {
  display: none;
}

.entry-content figure.mbu-simple-table:last-of-type,
.site-main figure.mbu-simple-table:last-of-type,
.entry-content > table.mbu-simple-table:last-child,
.site-main .entry-content > table.mbu-simple-table:last-child {
  margin-bottom: 0;
}

.entry-content h4 + figure.mbu-simple-table,
.entry-content .wp-block-heading + figure.mbu-simple-table,
.site-main h4 + figure.mbu-simple-table,
.site-main .wp-block-heading + figure.mbu-simple-table {
  margin-top: 0.15rem;
}

@media (max-width: 640px) {
  .entry-content :is(figure.mbu-simple-table, .wp-block-table.mbu-simple-table, table.mbu-simple-table) :is(td, th),
  .site-main :is(figure.mbu-simple-table, .wp-block-table.mbu-simple-table, table.mbu-simple-table) :is(td, th) {
    padding: 1.15rem 0.65rem 1.15rem 0 !important;
    font-size: 0.9rem;
  }

  .entry-content :is(figure.mbu-simple-table, .wp-block-table.mbu-simple-table) table:not(:has(td:nth-child(3))) td:last-child,
  .site-main :is(figure.mbu-simple-table, .wp-block-table.mbu-simple-table) table:not(:has(td:nth-child(3))) td:last-child,
  .entry-content table.mbu-simple-table:not(:has(td:nth-child(3))) td:last-child,
  .site-main table.mbu-simple-table:not(:has(td:nth-child(3))) td:last-child {
    text-align: left;
  }

  .entry-content table.mbu-simple-table:has(td:nth-child(3)),
  .site-main table.mbu-simple-table:has(td:nth-child(3)),
  .entry-content :is(figure.mbu-simple-table, .wp-block-table.mbu-simple-table) table:has(td:nth-child(3)),
  .site-main :is(figure.mbu-simple-table, .wp-block-table.mbu-simple-table) table:has(td:nth-child(3)) {
    table-layout: auto;
  }
}

/* --------------------------------------------------------------------------
   Toranut / duties — parsha intro + duty cards
   -------------------------------------------------------------------------- */

.mbu-duties-detail {
  font-family: var(--font-sans);
  color: var(--ink);
}

.mbu-duties-detail__intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem 2rem;
  flex-wrap: wrap;
  margin: 0 0 1.75rem;
  padding: 1.35rem 1.5rem;
  border: 1px solid color-mix(in oklab, var(--ink) 10%, transparent);
  border-left: 3px solid var(--gold);
  background: color-mix(in oklab, var(--secondary) 70%, #fff);
}

.mbu-duties-detail__intro-main {
  min-width: 0;
  flex: 1 1 16rem;
}

.mbu-duties-detail__eyebrow {
  margin: 0 0 0.4rem;
  font-family: var(--font-label);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-dim);
}

.mbu-duties-detail__parsha {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.2vw, 1.85rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--ink);
}

.mbu-duties-detail__lede {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.45;
  color: color-mix(in oklab, var(--ink) 62%, transparent);
}

.mbu-duties-detail__date {
  margin: 0;
  flex: 0 0 auto;
  padding: 0.55rem 0.9rem;
  border: 1px solid color-mix(in oklab, var(--ink) 12%, transparent);
  background: #fff;
  font-family: var(--font-label);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--ink);
  white-space: nowrap;
}

.mbu-duties-detail__grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 700px) {
  .mbu-duties-detail__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .mbu-duties-detail__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.mbu-duties-card {
  display: flex;
  flex-direction: column;
  min-height: 11rem;
  padding: 1.25rem 1.35rem 1.15rem;
  border: 1px solid color-mix(in oklab, var(--ink) 12%, transparent);
  background: #fff;
  box-shadow: 0 1px 2px color-mix(in oklab, var(--ink) 4%, transparent);
}

.mbu-duties-card.is-empty {
  background: color-mix(in oklab, var(--secondary) 85%, #fff);
}

.mbu-duties-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid color-mix(in oklab, var(--ink) 10%, transparent);
}

.entry-content .mbu-duties-card__title,
.site-main .mbu-duties-card__title,
.mbu-duties-card__title {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.3;
  color: var(--ink);
}

.mbu-duties-card__count {
  flex-shrink: 0;
  min-width: 1.5rem;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: color-mix(in oklab, var(--ink) 8%, transparent);
  font-family: var(--font-label);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink);
  text-align: center;
}

.mbu-duties-card.is-empty .mbu-duties-card__count {
  background: transparent;
  color: var(--muted-foreground);
}

.mbu-duties-card__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.mbu-duties-card__list li {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.4;
  color: var(--ink);
}

.mbu-duties-card__empty {
  font-family: var(--font-sans) !important;
  font-size: 0.9rem !important;
  font-weight: 400 !important;
  font-style: italic;
  color: var(--muted-foreground) !important;
}

.entry-content .mbu-duties-detail ul {
  padding-left: 0;
  margin: 0;
}
