﻿/*
Theme Name: Ohr Hatzafon 2026
Theme URI: https://ohrhatzafon.com
Description: Custom block theme for Yeshivas Ohr Hatzafon (2026 rebuild).
Version: 0.9.2
Requires at least: 6.0
Requires PHP: 7.4
Author: Yeshivas Ohr Hatzafon
Text Domain: ohr-hatzafon-2026
*/

/* =====================================================================
   Tokens
   ===================================================================== */

:root {
    --ohr-gold: #B4912F;
    --ohr-gold-light: #DCBB63;
    --ohr-gold-dark: #8F721E;
    --ohr-ink: #2B2214;
    --ohr-paper: #FFFDF8;
    --ohr-cream: #FAF6EB;
    --ohr-sand: #F1EBDA;
    --ohr-night: #221A10;
    --ohr-hairline: rgba(43, 34, 20, 0.12);
    --ohr-ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* =====================================================================
   Base polish
   ===================================================================== */

html {
    scroll-behavior: smooth;
}

html,
body {
    overflow-x: hidden;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body.has-nav-open {
    overflow: hidden;
}

::selection {
    background: rgba(180, 145, 47, 0.22);
}

h1, h2, h3, h4 {
    letter-spacing: -0.012em;
    text-wrap: balance;
}

p {
    text-wrap: pretty;
}

a {
    text-underline-offset: 0.18em;
    text-decoration-thickness: 1px;
    transition: color 0.18s var(--ohr-ease);
}

:focus-visible {
    outline: 2px solid var(--ohr-gold);
    outline-offset: 3px;
    border-radius: 2px;
}

.screen-reader-text {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

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

/* WordPress gives every top-level block a 24px top margin; heroes must sit
   flush against the header (and under it on the home page). */
.wp-site-blocks > main {
    margin-block-start: 0;
}

main > .entry-content > *:first-child,
main > *:first-child {
    margin-top: 0;
}

/* Full-width sections stack flush - each supplies its own internal padding.
   This also survives plugins (e.g. AddThis) injecting an empty div ahead of
   the content, which makes positional selectors like :first-child or
   :first-of-type miss the hero and leave a strip above it. */
.entry-content > .alignfull {
    margin-top: 0;
    margin-bottom: 0;
    margin-block-start: 0;
    margin-block-end: 0;
}

/* =====================================================================
   Shared type utilities
   ===================================================================== */

.kicker {
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-size: 0.78rem;
    font-weight: 700;
    font-family: var(--wp--preset--font-family--body);
    margin-bottom: 0.5rem;
}

.gold-italic {
    color: var(--ohr-gold-light);
    font-style: italic;
    font-weight: 500;
}

.gold-rule {
    border: none;
    border-top: 1px solid var(--ohr-gold);
    width: 56px;
    opacity: 0.85;
    margin-left: auto;
    margin-right: auto;
}

/* =====================================================================
   Header + navigation
   ===================================================================== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: var(--ohr-cream);
    border-bottom: 1px solid transparent;
    transition: box-shadow 0.25s var(--ohr-ease), border-color 0.25s var(--ohr-ease);
}

.site-header.is-stuck {
    border-bottom-color: var(--ohr-hairline);
    box-shadow: 0 6px 24px -18px rgba(43, 34, 20, 0.55);
}

.site-header__bar {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0.6rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.site-logo {
    display: block;
    flex: 0 0 auto;
    line-height: 0;
    position: relative;
}

.site-logo img {
    height: 42px;
    width: auto;
    display: block;
    transition: opacity 0.25s var(--ohr-ease);
}

.site-logo__dark {
    mix-blend-mode: multiply;
}

/* White version, stacked on top, shown only over the hero */
.site-logo__light {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    filter: drop-shadow(0 1px 10px rgba(15, 11, 4, 0.65));
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 1.75rem;
}

.site-nav a {
    text-decoration: none;
    color: var(--ohr-ink);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-size: 0.76rem;
    font-weight: 700;
    position: relative;
    padding: 0.35rem 0;
    white-space: nowrap;
}

/* gold underline grows in on hover */
.site-nav a:not(.donate-btn)::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: var(--ohr-gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.22s var(--ohr-ease);
}

.site-nav a:not(.donate-btn):hover::after,
.site-nav a[aria-current="page"]::after {
    transform: scaleX(1);
}

.site-nav a:not(.donate-btn):hover {
    color: var(--ohr-gold-dark);
}

.site-nav a.donate-btn {
    background: var(--ohr-gold);
    color: var(--ohr-paper);
    padding: 0.65rem 1.25rem;
    border-radius: 2px;
    transition: background-color 0.2s var(--ohr-ease), transform 0.2s var(--ohr-ease);
}

.site-nav a.donate-btn:hover {
    background: var(--ohr-gold-dark);
    color: var(--ohr-paper);
    transform: translateY(-1px);
}

/* ---------------------------------------------------------------------
   Home page: header floats transparently over the hero until scrolled,
   then reverts to the solid sticky bar used everywhere else.
   --------------------------------------------------------------------- */

.home .site-header {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    background: transparent;
    transition: background-color 0.3s var(--ohr-ease), box-shadow 0.3s var(--ohr-ease),
        border-color 0.3s var(--ohr-ease);
}

/* WordPress admin bar offset (logged-in views only) */
.admin-bar.home .site-header { top: 32px; }
@media (max-width: 782px) {
    .admin-bar.home .site-header { top: 46px; }
}

.home .site-header.is-stuck,
.home .site-header.is-nav-open {
    background: var(--ohr-cream);
}

/* Transparent state: light, legible lettering over the photograph */
.home .site-header:not(.is-stuck):not(.is-nav-open) .site-nav a:not(.donate-btn) {
    color: var(--ohr-paper);
    text-shadow: 0 1px 12px rgba(15, 11, 4, 0.85);
}

.home .site-header:not(.is-stuck):not(.is-nav-open) .site-nav a:not(.donate-btn):hover {
    color: var(--ohr-gold-light);
}

.home .site-header:not(.is-stuck):not(.is-nav-open) .site-nav a:not(.donate-btn)::after {
    background: var(--ohr-gold-light);
}

.home .site-header:not(.is-stuck):not(.is-nav-open) .site-logo__dark {
    opacity: 0;
}

.home .site-header:not(.is-stuck):not(.is-nav-open) .site-logo__light {
    opacity: 1;
}

.home .site-header:not(.is-stuck):not(.is-nav-open) .nav-toggle {
    color: var(--ohr-paper);
    border-color: rgba(255, 253, 248, 0.65);
    background: rgba(15, 11, 4, 0.32);
    backdrop-filter: blur(3px);
}

/* The fixed header sits over the hero, so its content needs headroom */
.home main .wp-block-cover:first-child .wp-block-cover__inner-container {
    padding-top: 5.5rem;
}

@media (max-width: 600px) {
    .home main .wp-block-cover:first-child .wp-block-cover__inner-container {
        padding-top: 4.5rem;
    }
}

/* Hamburger */
.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 1px solid var(--ohr-hairline);
    border-radius: 3px;
    background: transparent;
    cursor: pointer;
    color: var(--ohr-ink);
}

.nav-toggle__box {
    display: block;
    width: 22px;
    height: 14px;
    position: relative;
}

.nav-toggle__bar {
    position: absolute;
    left: 0;
    width: 100%;
    height: 1.5px;
    background: currentColor;
    border-radius: 2px;
    transition: transform 0.25s var(--ohr-ease), opacity 0.2s var(--ohr-ease);
}

.nav-toggle__bar:nth-child(1) { top: 0; }
.nav-toggle__bar:nth-child(2) { top: 6px; }
.nav-toggle__bar:nth-child(3) { top: 12px; }

.is-nav-open .nav-toggle__bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.is-nav-open .nav-toggle__bar:nth-child(2) { opacity: 0; }
.is-nav-open .nav-toggle__bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Tablet + mobile: collapse into the hamburger panel */
@media (max-width: 1024px) {
    .nav-toggle {
        display: inline-flex;
    }

    /* Collapsed from the first paint - no dependency on JS having run,
       so the links never flash before the menu closes. */
    .site-nav {
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: var(--ohr-cream);
        border-top: 1px solid var(--ohr-hairline);
        box-shadow: 0 18px 32px -22px rgba(43, 34, 20, 0.6);
        padding: 0.5rem 1.5rem 1.5rem;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        transition: opacity 0.22s var(--ohr-ease), transform 0.22s var(--ohr-ease), visibility 0.22s;
    }

    .site-header.is-nav-open .site-nav {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .site-nav a {
        font-size: 0.9rem;
        letter-spacing: 0.08em;
        padding: 0.95rem 0;
        border-bottom: 1px solid var(--ohr-hairline);
        white-space: normal;
    }

    .site-nav a:not(.donate-btn)::after {
        display: none;
    }

    .site-nav a.donate-btn {
        margin-top: 1.1rem;
        text-align: center;
        border-bottom: none;
        padding: 0.9rem 1.25rem;
    }
}

@media (max-width: 600px) {
    .site-header__bar {
        padding: 0.4rem 1.25rem;
    }
    .site-logo img {
        height: 36px;
    }
    .nav-toggle {
        width: 42px;
        height: 42px;
    }
}

/* =====================================================================
   Covers (page heroes)
   ===================================================================== */

.wp-block-cover__inner-container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

/* Legibility over bright photography */
.wp-block-cover .kicker {
    color: var(--ohr-gold-light) !important;
    text-shadow: 0 1px 14px rgba(15, 11, 4, 0.85), 0 0 3px rgba(15, 11, 4, 0.6);
}

.wp-block-cover h1,
.wp-block-cover .hero-lede {
    text-shadow: 0 2px 20px rgba(15, 11, 4, 0.6);
}

.wp-block-cover h1 {
    margin-bottom: 0.35em;
}

/* Inner-page heroes sit on the bottom edge of the photo */
.wp-block-cover.is-position-bottom-left .wp-block-cover__inner-container {
    padding-bottom: 3.25rem;
}

.wp-block-cover.is-position-bottom-left h1 {
    margin-bottom: 0;
}

.hero-lede {
    max-width: 32rem;
    color: var(--ohr-paper);
    font-size: 1.15rem;
    line-height: 1.65;
}

/* Buttons */
.wp-block-button__link {
    padding: 0.95rem 1.9rem;
    transition: background-color 0.2s var(--ohr-ease), color 0.2s var(--ohr-ease),
        border-color 0.2s var(--ohr-ease), transform 0.2s var(--ohr-ease);
}

.wp-block-button__link:hover {
    transform: translateY(-1px);
}

.wp-block-button:not(.btn-outline) .wp-block-button__link:hover {
    background: var(--ohr-gold-dark);
}

.btn-outline .wp-block-button__link {
    background: transparent;
    border: 1px solid rgba(255, 253, 248, 0.75);
    color: var(--ohr-paper);
}

.btn-outline .wp-block-button__link:hover {
    border-color: var(--ohr-gold-light);
    color: var(--ohr-gold-light);
    background: rgba(15, 11, 4, 0.25);
}

/* =====================================================================
   Sections
   ===================================================================== */

.mission-quote {
    font-family: var(--wp--preset--font-family--heading);
    font-style: italic;
    font-size: clamp(1.35rem, 2.4vw, 1.8rem);
    line-height: 1.55;
    font-weight: 500;
    color: var(--ohr-ink);
}

/* "Difference" columns as quiet cards */
.diff-card {
    border-top: 2px solid var(--ohr-gold);
    padding: 1.6rem 1.5rem 1.75rem;
    background: rgba(255, 253, 248, 0.72);
    border-radius: 0 0 3px 3px;
    transition: transform 0.25s var(--ohr-ease), box-shadow 0.25s var(--ohr-ease);
}

.diff-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px -32px rgba(43, 34, 20, 0.75);
}

.diff-card h3 {
    font-size: 1.3rem;
    margin: 0 0 0.55rem;
}

.diff-card p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.7;
}

/* Portraits and inline photography */
.wp-block-image img {
    box-shadow: 0 24px 48px -36px rgba(43, 34, 20, 0.85);
}

/* Form placeholder */
.form-slot {
    border: 1px dashed rgba(180, 145, 47, 0.55);
    background: var(--ohr-paper);
    border-radius: 4px;
    padding: 3rem 2rem;
    text-align: center;
}

.form-slot__label {
    font-family: var(--wp--preset--font-family--heading);
    color: var(--ohr-gold-dark);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-size: 0.8rem;
    font-weight: 700;
    margin: 0 0 0.6rem;
}

.form-slot__note {
    margin: 0 auto;
    max-width: 32rem;
    font-size: 0.95rem;
    opacity: 0.72;
}

/* =====================================================================
   Gravity Forms - restyled to match the theme
   (the forms themselves are unchanged: same fields, notifications
   and entries; this is presentation only)
   ===================================================================== */

.gform_wrapper {
    background: var(--ohr-paper);
    border: 1px solid var(--ohr-hairline);
    border-radius: 4px;
    padding: 2.25rem 2rem;
    box-shadow: 0 30px 60px -50px rgba(43, 34, 20, 0.9);
}

.gform_wrapper .gform_title {
    font-family: var(--wp--preset--font-family--heading);
    font-size: 1.5rem;
    margin-top: 0;
}

.gform_wrapper .gsection_title,
.gform_wrapper h2.gsection_title,
.gform_wrapper h3.gsection_title {
    font-family: var(--wp--preset--font-family--heading);
    font-size: 1.2rem;
    color: var(--ohr-ink);
    border-bottom: 1px solid var(--ohr-hairline);
    padding-bottom: 0.5rem;
    margin: 2rem 0 1rem;
}

.gform_wrapper label,
.gform_wrapper .gfield_label {
    font-family: var(--wp--preset--font-family--body);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--ohr-ink);
}

.gform_wrapper .gfield_required {
    color: var(--ohr-gold-dark);
}

.gform_wrapper input[type="text"],
.gform_wrapper input[type="email"],
.gform_wrapper input[type="tel"],
.gform_wrapper input[type="url"],
.gform_wrapper input[type="number"],
.gform_wrapper input[type="date"],
.gform_wrapper select,
.gform_wrapper textarea {
    font-family: var(--wp--preset--font-family--body);
    font-size: 1rem;
    color: var(--ohr-ink);
    background: #fff;
    border: 1px solid rgba(43, 34, 20, 0.22);
    border-radius: 2px;
    padding: 0.65rem 0.75rem;
    transition: border-color 0.2s var(--ohr-ease), box-shadow 0.2s var(--ohr-ease);
}

.gform_wrapper input:focus,
.gform_wrapper select:focus,
.gform_wrapper textarea:focus {
    border-color: var(--ohr-gold);
    box-shadow: 0 0 0 3px rgba(180, 145, 47, 0.16);
    outline: none;
}

.gform_wrapper .gform_button,
.gform_wrapper .gform_next_button,
.gform_wrapper .gform_previous_button,
.gform_wrapper input[type="submit"] {
    font-family: var(--wp--preset--font-family--heading);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    background: var(--ohr-gold);
    color: var(--ohr-paper);
    border: 1px solid var(--ohr-gold);
    border-radius: 2px;
    padding: 0.85rem 1.9rem;
    cursor: pointer;
    transition: background-color 0.2s var(--ohr-ease), transform 0.2s var(--ohr-ease);
}

.gform_wrapper .gform_button:hover,
.gform_wrapper .gform_next_button:hover,
.gform_wrapper input[type="submit"]:hover {
    background: var(--ohr-gold-dark);
    border-color: var(--ohr-gold-dark);
    transform: translateY(-1px);
}

.gform_wrapper .gform_previous_button {
    background: transparent;
    color: var(--ohr-gold-dark);
}

.gform_wrapper .gform_previous_button:hover {
    background: var(--ohr-sand);
    color: var(--ohr-ink);
}

/* Multi-page progress bar (the 4-step application) */
.gform_wrapper .gf_progressbar_wrapper .gf_progressbar_title {
    font-family: var(--wp--preset--font-family--body);
    font-size: 0.82rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ohr-gold-dark);
    font-weight: 700;
}

.gform_wrapper .gf_progressbar {
    background: var(--ohr-sand);
    border-radius: 2px;
}

.gform_wrapper .gf_progressbar_percentage {
    background: var(--ohr-gold);
    border-radius: 2px;
}

.gform_wrapper .gform_validation_errors,
.gform_wrapper .validation_message {
    font-size: 0.92rem;
    border-radius: 2px;
}

.gform_confirmation_message {
    background: var(--ohr-paper);
    border-left: 3px solid var(--ohr-gold);
    padding: 1.5rem 1.75rem;
    font-size: 1.05rem;
}

@media (max-width: 600px) {
    .gform_wrapper {
        padding: 1.5rem 1.1rem;
    }
}

/* =====================================================================
   Calendar page
   ===================================================================== */

/* Daily schedule */
.schedule-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.schedule-list li {
    display: flex;
    align-items: baseline;
    gap: 1.25rem;
    padding: 0.7rem 0;
    border-bottom: 1px solid var(--ohr-hairline);
}

.schedule-list li:last-child {
    border-bottom: none;
}

.schedule-list .time {
    flex: 0 0 5.5rem;
    font-family: var(--wp--preset--font-family--body);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--ohr-gold-dark);
    text-transform: uppercase;
    border-right: 2px solid var(--ohr-gold);
    padding-right: 1rem;
}

.schedule-list .item {
    font-size: 1.05rem;
}

/* Z'manim cards */
.zman-card {
    background: var(--ohr-paper);
    border-left: 3px solid var(--ohr-gold);
    border-radius: 0 3px 3px 0;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 18px 36px -34px rgba(43, 34, 20, 0.9);
}

.zman-card__head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    flex-wrap: wrap;
}

.zman-card__title {
    font-family: var(--wp--preset--font-family--heading);
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0;
}

.zman-card__when {
    font-style: italic;
    color: var(--ohr-gold-dark);
    font-size: 0.95rem;
}

.zman-card p {
    margin: 0.5rem 0 0;
    font-size: 1rem;
}

.zman-card dl {
    margin: 0.75rem 0 0;
    display: grid;
    /* Cap the label column: with `auto` a long label (e.g. "Simchas Beis
       Shoeva, Hoshana Raba & Simchas Torah in Yeshiva") starves the value
       column and the date wraps one character per line. */
    grid-template-columns: minmax(0, 15rem) minmax(0, 1fr);
    gap: 0.35rem 1.25rem;
    font-size: 0.98rem;
}

.zman-card dt {
    font-weight: 700;
    color: var(--ohr-ink);
}

.zman-card dd {
    margin: 0;
}

/* Interactive month grid */
.cal-wrap {
    background: var(--ohr-paper);
    border: 1px solid var(--ohr-hairline);
    border-radius: 4px;
    padding: 1.5rem;
    box-shadow: 0 30px 60px -50px rgba(43, 34, 20, 0.9);
}

.cal-head {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.25rem;
}

.cal-title {
    font-size: 1.5rem;
    margin: 0;
    min-width: 12rem;
    text-align: center;
}

.cal-nav {
    width: 40px;
    height: 40px;
    border: 1px solid var(--ohr-hairline);
    border-radius: 3px;
    background: transparent;
    color: var(--ohr-ink);
    font-size: 1.1rem;
    cursor: pointer;
    transition: background-color 0.2s var(--ohr-ease), border-color 0.2s var(--ohr-ease);
}

.cal-nav:hover {
    background: var(--ohr-sand);
    border-color: var(--ohr-gold);
}

.cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.cal-dow {
    font-family: var(--wp--preset--font-family--body);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ohr-gold-dark);
    text-align: center;
    padding: 0.4rem 0 0.6rem;
}

.cal-day {
    min-height: 96px;
    border: 1px solid var(--ohr-hairline);
    border-radius: 2px;
    padding: 0.4rem 0.45rem;
    background: #fff;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.cal-day.is-outside {
    background: rgba(43, 34, 20, 0.03);
    border-color: transparent;
}

.cal-day.is-shabbos {
    background: #FFFBEA;
    border-color: rgba(180, 145, 47, 0.45);
}

.cal-day__nums {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem;
}

.cal-day__greg {
    font-family: var(--wp--preset--font-family--heading);
    font-weight: 700;
    font-size: 1.05rem;
    line-height: 1;
}

.cal-day__heb {
    font-size: 0.72rem;
    color: var(--ohr-gold-dark);
    white-space: nowrap;
}

.cal-tag {
    display: block;
    font-size: 0.68rem;
    line-height: 1.3;
    padding: 0.2rem 0.4rem;
    border-radius: 2px;
    color: #fff;
    background: #6B7C5A;
}

.cal-tag.is-parsha      { background: #40694A; }
.cal-tag.is-holiday     { background: #C39A2B; color: #241C12; }
.cal-tag.is-roshchodesh { background: #5B6BA8; }
.cal-tag.is-yeshiva     { background: #6B4A17; }
.cal-tag.is-break       { background: #A08256; }
.cal-tag.is-inshabbos   { background: #7A3E2F; }

/* Continuation days of a multi-day period stay quiet */
.cal-tag.is-cont {
    opacity: 0.45;
    text-align: center;
    letter-spacing: 0.2em;
}

.cal-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.75rem;
    align-items: center;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--ohr-hairline);
    font-size: 0.9rem;
}

.cal-legend span {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.cal-legend i {
    width: 14px;
    height: 14px;
    border-radius: 2px;
    display: inline-block;
}

.cal-fallback {
    margin: 0;
    padding-left: 1.1rem;
}

.cal-fallback li {
    margin-bottom: 0.4rem;
}

@media (max-width: 900px) {
    .cal-wrap {
        padding: 1rem 0.75rem;
    }
    .cal-grid {
        gap: 2px;
    }
    .cal-day {
        min-height: 72px;
        padding: 0.3rem;
    }
    .cal-day__heb {
        display: none;
    }
    .cal-tag {
        font-size: 0.6rem;
        padding: 0.15rem 0.25rem;
    }
    .cal-dow {
        font-size: 0.6rem;
        letter-spacing: 0.06em;
    }
    .schedule-list .time {
        flex-basis: 4.5rem;
        font-size: 0.78rem;
        padding-right: 0.6rem;
    }

    /* Narrow screens: label above value rather than two cramped columns */
    .zman-card dl {
        grid-template-columns: 1fr;
        gap: 0 0;
    }
    .zman-card dd {
        margin-bottom: 0.6rem;
    }
}

/* =====================================================================
   Footer
   ===================================================================== */

.footer-dark {
    background: var(--ohr-night);
    color: #E5DAC1;
}

.footer-dark h2 {
    letter-spacing: -0.01em;
}

.footer-dark a {
    color: #E5DAC1;
    text-decoration: none;
    border-bottom: 1px solid rgba(229, 218, 193, 0.28);
}

.footer-dark a:hover {
    color: var(--ohr-gold-light);
    border-bottom-color: var(--ohr-gold-light);
}

.footer-dark h4 {
    color: var(--ohr-gold-light);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-size: 0.75rem;
    font-family: var(--wp--preset--font-family--body);
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.footer-dark p {
    line-height: 1.75;
    opacity: 0.92;
}

/* =====================================================================
   Responsive
   ===================================================================== */

@media (max-width: 781px) {
    .wp-block-cover {
        min-height: 66vh !important;
    }

    .wp-block-cover h1 {
        font-size: clamp(2.15rem, 9.5vw, 3rem);
    }

    .hero-lede {
        font-size: 1.05rem;
    }

    .wp-block-buttons {
        gap: 0.75rem;
    }

    .wp-block-button {
        width: 100%;
    }

    .wp-block-button__link {
        display: block;
        text-align: center;
        padding: 0.95rem 1.25rem;
    }

    .mission-quote {
        font-size: 1.2rem;
    }

    .diff-card {
        padding: 1.35rem 1.25rem 1.5rem;
    }

    .form-slot {
        padding: 2rem 1.25rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}
