/* =========================================================================
   Congregation Shaarei Tefila
   Built to the brand kit: navy, parchment and slate, classical serif display
   over a humanist sans, hairline rules, and no gold.
   ========================================================================= */

/* Palette and typefaces come from brand.css. Only layout metrics live here. */
:root {
  --wrap: 1120px;
  --gutter: clamp(1.25rem, 5vw, 3rem);
}

/* ------------------------------------------------------------------ base */

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

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

body {
  margin: 0;
  background: var(--parchment);
  color: var(--slate);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* Long copy is left aligned; only headings centre. */
.prose p,
.prose li {
  text-align: left;
}

h1,
h2,
h3,
h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.15;
  margin: 0;
  color: var(--navy);
}

/* Page and section headings are set in caps and tracked wide. Prose subheads
   and card titles stay title case: caps on running subheads would fight the
   kit's rule against all-caps body text. */
h1,
.section-head h2 {
  text-transform: uppercase;
  letter-spacing: var(--track-display);
  font-weight: 500;
}

/*
 * Reversed contexts: everything sitting on navy takes parchment. Headings
 * default to navy, so without this the hero heading would be navy on navy.
 */
.hero,
.hero h1,
.hero h2,
.page-head,
.page-head h1,
.page-head h2,
.site-footer h4,
.announce {
  color: var(--parchment);
}

/* A navy button is invisible on a navy ground, so it reverses there. */
.hero .btn--primary,
.page-head .btn--primary {
  background: var(--parchment);
  color: var(--navy);
}

.hero .btn--primary:hover,
.page-head .btn--primary:hover {
  background: var(--parchment-deep);
}

p {
  margin: 0 0 1.15em;
}

a {
  color: var(--navy);
  text-decoration-color: var(--keyline-strong);
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-color: var(--navy);
}

/* Links reversed on navy need a reversed underline for the same reason. */
.site-footer a,
.hero a,
.page-head a {
  text-decoration-color: var(--keyline-reversed);
}

img,
svg {
  max-width: 100%;
}

/* Form controls default to the platform's own face, which would put a third
   typeface on the page. The kit allows two. */
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

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

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: 1rem;
  top: 1rem;
  z-index: 100;
  background: var(--parchment);
  padding: 0.75rem 1.25rem;
  border-radius: 4px;
}

/* --------------------------------------------------------- shared pieces */

/* Hebrew keeps its own serif and is never letterspaced: tracking breaks the
   letterforms. */
.hebrew {
  font-family: var(--hebrew);
  direction: rtl;
  unicode-bidi: isolate;
  letter-spacing: normal;
}

.lede {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  line-height: 1.45;
  color: var(--navy);
}

.section {
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
}

.section--paper {
  background: var(--parchment-deep);
  border-block: 1px solid var(--keyline);
}

.section-head {
  max-width: 46rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(2rem, 4.2vw, 2.9rem);
}

.section-head p {
  color: var(--slate);
  margin-top: 0.9rem;
  margin-bottom: 0;
  font-size: 1.075rem;
}

/* buttons */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  padding: 0.95rem 1.7rem;
  border-radius: 2px;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s, color 0.18s, border-color 0.18s,
    transform 0.18s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--primary {
  background: var(--navy);
  color: var(--parchment);
}

.btn--primary:hover {
  background: var(--navy-deep);
}

.btn--ghost {
  border-color: rgba(253, 252, 248, 0.45);
  color: var(--parchment);
}

.btn--ghost:hover {
  border-color: var(--parchment);
  background: rgba(253, 252, 248, 0.08);
}

.btn--outline {
  border-color: var(--keyline-strong);
  color: var(--navy);
  background: transparent;
}

.btn--outline:hover {
  border-color: var(--navy);
  background: var(--parchment-deep);
}

/* ---------------------------------------------------------- announcement */

.announce {
  background: var(--navy);
  color: var(--parchment);
  text-align: center;
  font-size: 0.9rem;
  padding: 0.6rem var(--gutter);
}

.announce a {
  color: var(--parchment);
}

/* ----------------------------------------------------------- site header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(253, 252, 248, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--keyline);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 4.75rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  color: var(--navy);
}

/*
 * Two files, one shape: the mark in navy for light grounds and in parchment
 * for navy ones. Both are trimmed to the artwork, so a width here is the width
 * of the gate itself.
 *
 * The kit sets a 55px minimum because the picket gates fill in below it. The
 * header sits above that with room to spare; nothing on the site goes under.
 * No filters: inverting the navy file produced pure white, which the kit
 * rules out on navy.
 */
.brand__logo {
  width: 4.25rem;
  height: auto;
  flex: none;
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand__name {
  font-family: var(--serif);
  font-size: 1.32rem;
  font-weight: 600;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.brand__sub {
  font-size: 0.63rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--navy);
  font-weight: 700;
  margin-top: 0.18rem;
}

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

.nav a {
  font-size: 0.79rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
  text-decoration: none;
  padding: 0.55rem 0.75rem;
  border-radius: 2px;
  position: relative;
}

.nav a::after {
  content: '';
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 0.3rem;
  height: 1.5px;
  background: var(--navy);
  transform: scaleX(0);
  transition: transform 0.2s;
}

.nav a:hover::after,
.nav a[aria-current='page']::after {
  transform: scaleX(1);
}

/* Member sign-in lives in the footer on desktop, where members know to look
   for it. On mobile the footer is a long scroll away, so it joins the menu. */
.nav__login {
  display: none;
  color: var(--slate) !important;
  font-weight: 400 !important;
  letter-spacing: 0.09em !important;
}

.nav__login:hover {
  color: var(--navy) !important;
}

.nav a.btn--primary {
  color: var(--parchment);
}

.nav .btn {
  margin-left: 0.6rem;
  padding: 0.7rem 1.2rem;
}

.nav .btn::after {
  display: none;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--keyline-strong);
  border-radius: 2px;
  padding: 0.55rem 0.7rem;
  cursor: pointer;
  color: var(--navy);
}

@media (max-width: 900px) {
  .nav-toggle {
    display: block;
  }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--parchment);
    border-bottom: 1px solid var(--keyline);
    padding: 0.5rem var(--gutter) 1.25rem;
  }

  .nav[hidden] {
    display: none;
  }

  .nav a {
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--keyline);
  }

  .nav a::after {
    display: none;
  }

  .nav__login {
    display: block;
  }

  .nav .btn {
    margin: 1rem 0 0;
    justify-content: center;
    border-bottom: none;
  }
}

/* ------------------------------------------------------------------ hero */

.hero {
  position: relative;
  background: var(--navy);
  color: var(--parchment);
  overflow: hidden;
  padding-block: clamp(3.5rem, 9vw, 6rem) 0;
}

/* Warm light bleeding through the gate, plus a faint lattice. */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--navy);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  text-align: center;
  padding-bottom: clamp(5rem, 12vw, 8rem);
}

/* On the deep navy hero the artwork needs no panel: it was drawn for this. */
.hero__mark {
  width: clamp(10rem, 22vw, 14rem);
  height: auto;
  margin: 0 auto 1.75rem;
}

.hero__hebrew {
  font-family: var(--hebrew);
  font-size: clamp(1.4rem, 3.2vw, 2rem);
  color: var(--parchment);
  margin-bottom: 0.7rem;
}

.hero h1 {
  font-size: clamp(2.9rem, 8.5vw, 5.4rem);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 0.85rem;
}

.hero__rabbi {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.2rem, 2.6vw, 1.55rem);
  color: var(--parchment);
  margin-bottom: 1.5rem;
}

.hero__blurb {
  max-width: 34rem;
  margin: 0 auto 2.25rem;
  color: rgba(253, 252, 248, 0.78);
  font-size: 1.075rem;
}

.hero__actions {
  display: flex;
  gap: 0.85rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ------------------------------------------------------- this week card */

/* Pulled up so it straddles the hero and the section beneath it. */
.shabbos-card {
  position: relative;
  z-index: 5;
  margin-top: clamp(-6.5rem, -9vw, -4.5rem);
  background: var(--parchment);
  border: 1px solid var(--keyline);
  border-top: 3px solid var(--keyline-strong);
  border-radius: 3px;
  padding: clamp(1.75rem, 4vw, 2.75rem);
}

.shabbos-card__head {
  text-align: center;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--keyline);
  margin-bottom: 1.75rem;
}

.shabbos-card__head h2 {
  font-size: clamp(1.75rem, 4vw, 2.4rem);
  color: var(--navy);
}

.shabbos-card__parsha {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.15rem, 2.6vw, 1.45rem);
  color: var(--navy);
  margin-top: 0.35rem;
}

.shabbos-card__date {
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--slate-soft);
  margin-top: 0.7rem;
}

.shabbos-card__cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
}

@media (max-width: 720px) {
  .shabbos-card__cols {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.day-col > h3 {
  font-size: 0.75rem;
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--navy);
  padding-bottom: 0.7rem;
  margin-bottom: 0.3rem;
  border-bottom: 1px solid var(--keyline);
}

/* time rows */

.trow {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--keyline);
}

.trow:last-child {
  border-bottom: 0;
}

.trow__label {
  font-family: var(--serif);
  font-size: 1.24rem;
  color: var(--navy);
  line-height: 1.25;
}

.trow__note {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.98rem;
  color: var(--navy);
}

.trow__time {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--navy);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.trow__time small,
.time-chip small {
  font-size: 0.62em;
  font-weight: 400;
  margin-left: 0.22em;
}

.trow--accent .trow__label,
.trow--accent .trow__time {
  color: var(--navy);
}

.shabbos-card__calc {
  margin-top: 1.25rem;
  text-align: center;
  font-size: 0.82rem;
  color: var(--slate-soft);
}

/* ------------------------------------------------------- weekday grid */

.week-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: 1.25rem;
}

.week-card {
  background: var(--parchment);
  border: 1px solid var(--keyline);
  border-radius: 3px;
  padding: 1.6rem 1.5rem;
}

.week-card h3 {
  font-size: 0.75rem;
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--navy);
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--keyline);
  margin-bottom: 0.4rem;
}

.week-card__note {
  margin: 1rem 0 0;
  font-size: 0.88rem;
  color: var(--slate);
  font-style: italic;
}

/* Cards are too narrow to keep a label and three times on one line, so the
   weekday rows stack: label above, times beneath. */
.week-card .trow {
  display: block;
  padding: 0.9rem 0;
}

.week-card .trow__label {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.times-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.time-chip {
  font-family: var(--serif);
  font-size: 1.18rem;
  font-weight: 600;
  color: var(--navy);
  background: var(--parchment-deep);
  border-radius: 2px;
  padding: 0.14rem 0.55rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* --------------------------------------------------------- coming soon */

/* Stands in wherever a zman would go while the times are being confirmed.
   Deliberately quiet: it should read as "not yet", not as a broken table. */
.coming-soon {
  background: var(--parchment-deep);
  border: 1px dashed var(--keyline-strong);
  border-radius: 3px;
  padding: clamp(2rem, 5vw, 3rem) 1.5rem;
  text-align: center;
}

.coming-soon__title {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  color: var(--navy);
  margin: 0;
}

.coming-soon__note {
  margin: 0.5rem 0 0;
  color: var(--slate);
  font-size: 0.98rem;
}

/* ------------------------------------------------------------- zmanim */

.zmanim {
  background: var(--parchment);
  border: 1px solid var(--keyline);
  border-radius: 3px;
  overflow: hidden;
}

.zmanim table {
  width: 100%;
  border-collapse: collapse;
}

.zmanim caption {
  text-align: left;
  padding: 1.25rem 1.5rem;
  background: var(--navy);
  color: var(--parchment);
  font-family: var(--serif);
  font-size: 1.3rem;
}

.zmanim caption span {
  display: block;
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--parchment);
  margin-top: 0.3rem;
}

.zmanim th,
.zmanim td {
  padding: 0.78rem 1.5rem;
  border-bottom: 1px solid var(--keyline);
  text-align: left;
}

.zmanim tr:last-child th,
.zmanim tr:last-child td {
  border-bottom: 0;
}

.zmanim th {
  font-weight: 400;
  font-family: var(--serif);
  font-size: 1.14rem;
  color: var(--navy);
}

.zmanim th small {
  display: block;
  font-family: var(--sans);
  font-size: 0.76rem;
  color: var(--slate-soft);
}

.zmanim td {
  text-align: right;
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* ------------------------------------------------------------- content */

.prose {
  max-width: 40rem;
}

.prose p {
  font-size: 1.09rem;
}

.prose h3 {
  font-size: 1.6rem;
  margin: 2.25rem 0 0.7rem;
  color: var(--navy);
}

/* A link that is the whole paragraph is acting as a call to action, so give it
   a real target rather than a line of text to hit. */
.prose p > a:only-child {
  display: inline-block;
  padding-block: 0.3rem;
  min-height: 24px;
}

.prose ul {
  margin: 0 0 1.15em;
  padding-left: 1.2rem;
}

.prose li {
  margin-bottom: 0.6rem;
  padding-left: 0.3rem;
}

.prose li::marker {
  color: var(--keyline-strong);
}

.prose blockquote {
  margin: 2rem 0;
  padding-left: 1.5rem;
  border-left: 2px solid var(--navy);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.35rem;
  line-height: 1.45;
  color: var(--navy);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 4.5rem);
  align-items: center;
}

@media (max-width: 860px) {
  .split {
    grid-template-columns: 1fr;
  }
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1.25rem;
}

.card {
  background: var(--parchment);
  border: 1px solid var(--keyline);
  border-radius: 3px;
  padding: 1.75rem 1.6rem;
}

.card h3 {
  font-size: 1.42rem;
  color: var(--navy);
  margin-bottom: 0.3rem;
}

.card__meta {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 0.85rem;
}

.card p {
  margin: 0;
  color: var(--slate);
  font-size: 1rem;
}

/* ------------------------------------------------------------- shiur cards */

/*
 * The times as a small timetable - day on the left, time on the right, one row
 * each - so a shiur that runs on several days reads at a glance instead of as
 * one long uppercase sentence that wraps.
 */
.card--shiur h3 { margin-bottom: 0.5rem; }

.shiur__rabbi {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate-soft);
  margin: 0 0 0.9rem;
}

.shiur__times { margin: 0 0 0.9rem; display: grid; gap: 0.45rem; }

.shiur__time {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1.5rem;
  padding-top: 0.45rem;
  border-top: 1px solid var(--keyline);
}
.shiur__time:first-child { border-top: 0; padding-top: 0; }

.shiur__time dt { color: var(--navy); font-weight: 600; }
.shiur__time dd {
  margin: 0;
  color: var(--slate);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.shiur__note { font-size: 0.95rem; }

/*
 * Buttons inside a card. Wraps rather than scrolls, because these sit in a grid
 * column that is already narrow on a phone and two dues tiers side by side do
 * not fit at 320px.
 */
.card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.15rem;
}

.card__actions .btn {
  flex: 1 1 auto;
  text-align: center;
}

/* ------------------------------------------------------------ page head */

.page-head {
  background: var(--navy);
  color: var(--parchment);
  padding-block: clamp(3rem, 7vw, 5rem);
  position: relative;
  overflow: hidden;
}

.page-head::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--navy);
}

.page-head__inner {
  position: relative;
  text-align: center;
}

.page-head h1 {
  font-size: clamp(2.4rem, 6vw, 3.9rem);
  letter-spacing: 0.02em;
}

.page-head p {
  max-width: 34rem;
  margin: 1rem auto 0;
  color: rgba(253, 252, 248, 0.75);
}

/* ---------------------------------------------------------------- visit */

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

.info-list li {
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--keyline);
}

.info-list dt,
.info-list .k {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 0.3rem;
}

.info-list .v {
  font-family: var(--serif);
  font-size: 1.32rem;
  color: var(--navy);
}

.info-list .v a {
  text-decoration: none;
}

.info-list .v a:hover {
  color: var(--navy);
}

.map-frame {
  border: 1px solid var(--keyline);
  border-radius: 3px;
  overflow: hidden;
  background: var(--parchment-deep);
  aspect-ratio: 4 / 3;
}

.map-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------------------------------------------------------- member login */

.login-section {
  background: var(--navy);
  position: relative;
  overflow: hidden;
  padding-block: clamp(3.5rem, 9vw, 6.5rem);
}

.login-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--navy);
  pointer-events: none;
}

.login-panel {
  position: relative;
  max-width: 30rem;
  margin-inline: auto;
  background: var(--parchment);
  border: 1px solid var(--keyline);
  border-top: 3px solid var(--keyline-strong);
  border-radius: 3px;
  padding: clamp(2rem, 5vw, 3rem) clamp(1.5rem, 4vw, 2.75rem);
  text-align: center;
}

.login-panel__mark {
  width: 5.5rem;
  height: auto;
  margin: 0 auto 1.25rem;
}

.login-panel h1 {
  font-size: clamp(1.9rem, 4.5vw, 2.5rem);
  color: var(--navy);
}

.login-panel__lede {
  color: var(--slate);
  margin: 0.85rem 0 1.75rem;
}

.login-panel__action {
  margin: 0 0 1.5rem;
}

.login-panel__action .btn {
  width: 100%;
  justify-content: center;
}

.login-panel__note {
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--slate);
  margin: 0;
}

.login-panel__help {
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--keyline);
}

.login-panel__help p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--slate);
}

/* --------------------------------------------------------------- footer */

.site-footer {
  background: var(--navy);
  color: rgba(253, 252, 248, 0.72);
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
  font-size: 0.95rem;
}

.site-footer a {
  color: rgba(253, 252, 248, 0.86);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--parchment);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(253, 252, 248, 0.12);
}

@media (max-width: 760px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.footer-grid h4 {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--parchment);
  margin-bottom: 1rem;
}

.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.15rem;
}

/* Footer and contact links are padded out to clear the 24px minimum target
   size, so they are reachable with a thumb rather than a fingertip. */
.footer-grid ul a,
.footer-legal a,
.info-list .v a {
  display: inline-block;
  padding-block: 0.32rem;
  min-height: 24px;
}

.footer-brand__logo {
  width: 5rem;
  height: auto;
  margin-bottom: 1rem;
}

.footer-brand__name {
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--parchment);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.footer-brand__hebrew {
  font-family: var(--hebrew);
  color: var(--parchment);
  font-size: 1.15rem;
  margin-top: 0.2rem;
}

.footer-bottom {
  padding-top: 1.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: rgba(253, 252, 248, 0.66);
}

.footer-legal {
  display: flex;
  gap: 1.4rem;
  flex-wrap: wrap;
}

.footer-legal a {
  color: rgba(253, 252, 248, 0.6);
}

/* --------------------------------------------------------- privacy notice */

/* The map is not embedded until the visitor asks for it, so simply reading
   this page sends nothing to a third party. */
.map-consent {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.85rem;
  padding: 2rem 1.75rem;
  background: var(--parchment-deep);
  border: 0;
  width: 100%;
  cursor: pointer;
  font-family: inherit;
  color: var(--navy);
}

.map-consent:hover {
  background: var(--parchment-shade);
}

.map-consent strong {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 600;
}

.map-consent span {
  font-size: 0.92rem;
  color: var(--slate);
  max-width: 22rem;
  line-height: 1.5;
}

.map-consent svg {
  width: 2rem;
  height: 2rem;
  color: var(--keyline-strong);
}

.notice {
  margin-top: 2rem;
  padding: 1.15rem 1.4rem;
  border-left: 2px solid var(--navy);
  background: var(--parchment-deep);
  font-size: 0.98rem;
  color: var(--navy);
}

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

/* ------------------------------------------------------------ utilities */

.center {
  text-align: center;
}

.stack > * + * {
  margin-top: 1rem;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

@media print {
  .site-header,
  .site-footer,
  .hero__actions,
  .announce {
    display: none;
  }

  body {
    background: var(--parchment);
  }

  .shabbos-card {
    margin-top: 0;
  }
}


/* ------------------------------------------------------------- membership */

/*
 * Two options and a price each. The price is the largest thing in the card
 * because it is the only question the page exists to answer - a membership
 * page where you have to hunt for the number is a page people leave to go and
 * ask somebody.
 */
.membership { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); }

.membership__option { display: flex; flex-direction: column; padding: 2rem 1.75rem; }
.membership__option h2 { margin: 0; font-size: 1.5rem; }

/* Out-specifies `.card p`, which otherwise wins on specificity and holds the
 * price at body size - the one number the page exists to show. */
.membership__option .membership__price {
  margin: 0.4rem 0 0;
  font-family: var(--serif);
  font-size: 2.75rem;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--navy);
}
.membership__option .membership__price span {
  font-family: var(--sans);
  font-size: 0.8rem;
  letter-spacing: var(--track-display);
  text-transform: uppercase;
  color: var(--slate-soft);
  margin-left: 0.5rem;
}

.membership__option .membership__who { margin: 0.9rem 0 0; color: var(--slate); }

/* Pushed to the bottom so two cards of unequal text still line their buttons
   up with each other. */
.membership__option .btn { margin-top: 1.5rem; align-self: start; }
.membership__option .membership__who { margin-bottom: auto; }

.membership__note { font-size: 0.95rem; color: var(--slate); }

/* ------------------------------------------------------------------ soon */

/*
 * "Coming soon", in the muted voice the rest of the site uses for asides, so it
 * reads as information rather than as something having gone wrong.
 */
.soon { color: var(--slate); font-size: 0.95rem; }

/* Under the menu label rather than beside it: the items are nowrap, and a
   second clause on the same line pushes the panel wider than the button. */
.support-menu__items .soon {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 0.15rem;
}

/* ----------------------------------------------------------- support menu */

/*
 * "Support Us" stays a link to /support and gains a menu.
 *
 * It is a link and not a button on purpose: somebody who wants the support page
 * should be able to click the thing labelled Support Us and arrive there, and
 * a trigger that only opens a menu takes that away. The menu opens on hover and
 * on focus, and the link keeps working for anybody who ignores it.
 */
.support-menu { position: relative; }

/*
 * The caret. `.nav a::after` is the underline animation and `.nav .btn::after`
 * turns it off for buttons, so everything that rule set has to say is unsaid
 * again here before the arrow can use the same pseudo-element.
 */
.nav .support-menu__trigger::after,
.nav .support-menu__trigger:hover::after {
  content: '';
  display: block;
  position: static;
  width: 0;
  height: 0;
  background: none;
  border: 0.29rem solid transparent;
  border-bottom: 0;
  border-top-color: currentColor;
  opacity: 0.8;
  transform: translateY(1px);
  transition: transform 0.18s;
}

.nav .support-menu__trigger[aria-expanded='true']::after,
.nav .support-menu__trigger[aria-expanded='true']:hover::after {
  transform: translateY(1px) rotate(180deg);
}

.support-menu__items {
  position: absolute;
  right: 0;
  top: calc(100% + 0.4rem);
  z-index: 50;
  min-width: 14rem;
  padding: 0.4rem;
  background: var(--parchment);
  border: 1px solid var(--keyline);
  border-radius: 4px;
  box-shadow: 0 8px 24px rgba(13, 31, 69, 0.12);
}

/*
 * The menu sits a few pixels clear of the button, and those few pixels used to
 * belong to the header: a cursor crossing them was outside the menu, which
 * closed it on the way down. This covers the gap without filling it in.
 */
.support-menu__items::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 100%;
  height: 0.5rem;
}

.support-menu__items a {
  display: block;
  padding: 0.5rem 0.7rem;
  border-radius: 3px;
  color: var(--navy);
  text-decoration: none;
  font-size: 0.95rem;
  white-space: nowrap;
}
.support-menu__items a:hover,
.support-menu__items a:focus-visible { background: var(--parchment-deep); }

/*
 * Inside the mobile menu there is nowhere to hover and no room to float, so the
 * items sit in the flow, indented under the button that owns them.
 */
@media (max-width: 900px) {
  .support-menu { width: 100%; }
  .support-menu__items::before { display: none; }

  .support-menu__items {
    position: static;
    min-width: 0;
    margin-top: 0.5rem;
    border: 0;
    box-shadow: none;
    background: none;
    padding: 0 0 0 0.4rem;
    border-left: 1px solid var(--keyline);
    border-radius: 0;
  }
}
