/* The Java Shoppe — Kinfolk/Monocle editorial world
   Tokens per the approved Figma direction. */

:root {
  --background: #faf6f1;
  --foreground: #1a0f0a;
  --card: #ffffff;
  --card-foreground: #1a0f0a;
  --primary: #7c3117;
  --primary-foreground: #faf6f1;
  --secondary: #f0e9df;
  --secondary-foreground: #1a0f0a;
  --muted: #ede5d8;
  --muted-foreground: #7a6353;
  --accent: #b54d24;
  --accent-foreground: #faf6f1;
  --border: rgba(26, 15, 10, 0.11);
  --ring: #b54d24;
  --radius: 0.125rem;
  --pad-x: 1.75rem;
}
@media (min-width: 768px) {
  :root { --pad-x: 3.5rem; }
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  background: var(--background);
  color: var(--foreground);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, blockquote {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  line-height: 1.12;
}

h1 em, h2 em {
  font-style: italic;
  color: var(--accent);
  font-size: 92%;
}

img { display: block; width: 100%; height: 100%; object-fit: cover; }

a { color: inherit; text-decoration: none; }

.img-frame { background: #a08060; overflow: hidden; border-radius: var(--radius); }

/* ---- shared atoms ---- */

.label {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-foreground);
  margin-bottom: 1.1rem;
}
.label-cream { color: var(--primary-foreground); opacity: 0.5; }

.tag, .event-tag, .attribution, .date-month, .ticker {
  font-family: 'DM Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  transition: opacity 0.18s ease, background 0.18s ease, color 0.18s ease;
}
.btn:hover { opacity: 0.88; }
.btn-sm { padding: 0.5rem 1.15rem; font-size: 0.85rem; }
.btn-dark { background: var(--foreground); color: var(--primary-foreground); }
.btn-outline { border: 1px solid var(--foreground); color: var(--foreground); }
.btn-outline:hover { background: var(--foreground); color: var(--primary-foreground); opacity: 1; }
.btn-accent { background: var(--accent); color: var(--accent-foreground); }

.text-link {
  font-weight: 500;
  border-bottom: 1px solid var(--border);
  padding-bottom: 2px;
  transition: border-color 0.18s ease, color 0.18s ease;
}
.text-link:hover { color: var(--accent); border-color: var(--accent); }

/* ---- 1. nav ---- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem var(--pad-x);
  background: var(--background);
  border-bottom: 1px solid var(--border);
}

.nav-brand {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  font-size: 1.25rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.9rem;
  font-size: 0.92rem;
  font-weight: 500;
}
.nav-links > a:not(.btn):hover { color: var(--accent); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--foreground);
  cursor: pointer;
  padding: 0.25rem;
}

@media (max-width: 767px) {
  .nav { flex-wrap: wrap; }
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.1rem;
    padding-top: 1.2rem;
  }
  .nav-links.open { display: flex; }
}

/* ---- 2. hero ---- */

.hero {
  display: grid;
  min-height: 90vh;
  border-bottom: 1px solid var(--border);
}
@media (min-width: 768px) {
  .hero { grid-template-columns: 58fr 42fr; }
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4.5rem var(--pad-x);
}

.hero h1 {
  font-size: clamp(2.6rem, 5.5vw, 4.5rem);
  margin-bottom: 1.5rem;
}

.body-lg {
  font-size: 1.08rem;
  max-width: 34rem;
  color: var(--muted-foreground);
  margin-bottom: 2.2rem;
}

.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.9rem; }

.hero-photo { position: relative; min-height: 320px; border-radius: 0; }
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26, 15, 10, 0.15);
}
.hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---- 3. ticker ---- */

.ticker {
  overflow: hidden;
  background: var(--secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 0.8rem 0;
  white-space: nowrap;
}
.ticker-track {
  display: inline-block;
  animation: ticker-scroll 28s linear infinite;
}
.ticker-track span { display: inline-block; }
.ticker i { font-style: normal; color: var(--accent); margin: 0 0.9rem; }
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---- 4. the space ---- */

.space { padding: 5rem var(--pad-x); }
@media (min-width: 768px) { .space { padding: 7rem var(--pad-x); } }

.space-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
  margin-bottom: 1rem;
}
@media (min-width: 768px) {
  .space-grid { grid-template-columns: 55fr 45fr; gap: 5rem; }
}

.space-photo { aspect-ratio: 4 / 3; }

.space-copy h2 {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  margin-bottom: 1.4rem;
}
.space-copy p { color: var(--muted-foreground); margin-bottom: 1.1rem; }
.space-copy .text-link { display: inline-block; margin-top: 0.6rem; }

.space-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2.5rem;
}
.ratio-3-2 { aspect-ratio: 3 / 2; }

/* ---- 5. what happens here ---- */

.happens {
  background: var(--secondary);
  border-top: 1px solid var(--border);
  padding: 5rem var(--pad-x);
}
@media (min-width: 768px) { .happens { padding: 7rem var(--pad-x); } }

.happens-head {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 3.5rem;
}
@media (min-width: 768px) {
  .happens-head { grid-template-columns: 42fr 58fr; gap: 5rem; align-items: end; }
}

.happens-head h2 { font-size: clamp(2rem, 3.5vw, 2.8rem); }
.happens-intro { color: var(--muted-foreground); max-width: 30rem; }

.happens-cards {
  display: grid;
  gap: 2.5rem;
}
@media (min-width: 768px) { .happens-cards { grid-template-columns: repeat(3, 1fr); } }

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.4rem;
}

.icon-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-foreground);
}

.tag { color: var(--muted-foreground); }

.card h3 { font-size: 1.45rem; margin-bottom: 0.7rem; }
.card p { color: var(--muted-foreground); font-size: 0.97rem; }

/* ---- 6. events ---- */

.events {
  border-top: 1px solid var(--border);
  padding: 5rem var(--pad-x);
}
@media (min-width: 768px) { .events { padding: 7rem var(--pad-x); } }

.events-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2.5rem;
}
.events-head h2 { font-size: clamp(2rem, 3.5vw, 2.8rem); }

.event-row {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 1.4rem;
  align-items: center;
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--border);
}
@media (min-width: 768px) {
  .event-row { grid-template-columns: 72px 1fr auto; }
}

.date-badge {
  width: 3.5rem;
  height: 3.5rem;
  border: 1px solid var(--foreground);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.05rem;
}
.date-month { font-size: 10px; color: var(--muted-foreground); }
.date-day {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  font-size: 1.35rem;
  line-height: 1;
}

.event-main h3 { font-size: 1.35rem; margin-bottom: 0.3rem; }
.event-row:hover .event-main h3 { text-decoration: underline; text-underline-offset: 4px; }
.event-main p { color: var(--muted-foreground); font-size: 0.95rem; }

.event-tag {
  background: var(--muted);
  color: var(--muted-foreground);
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  justify-self: start;
}
@media (min-width: 768px) { .event-tag { justify-self: end; } }

/* ---- 7. host an event ---- */

.host {
  position: relative;
  margin: 0 var(--pad-x) 5rem;
  background: var(--foreground);
  color: var(--primary-foreground);
  border-radius: var(--radius);
  overflow: hidden;
}
@media (min-width: 768px) { .host { margin-bottom: 7rem; } }

.host-bg {
  position: absolute;
  inset: 0;
  opacity: 0.18;
}

.host-inner {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 3.5rem 2.5rem;
}
@media (min-width: 768px) { .host-inner { padding: 4.5rem 4rem; } }

.host h2 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); color: var(--primary-foreground); }

.host-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 0.9rem; }
.host-phone { font-size: 0.92rem; opacity: 0.7; }
.host-phone:hover { opacity: 1; }

/* ---- 8. testimonial ---- */

.testimonial {
  background: var(--secondary);
  border-top: 1px solid var(--border);
  text-align: center;
  padding: 5.5rem var(--pad-x);
}
@media (min-width: 768px) { .testimonial { padding: 7rem 12vw; } }

.testimonial blockquote {
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  font-weight: 400;
  line-height: 1.3;
  max-width: 60rem;
  margin: 0 auto 1.8rem;
}
.attribution { color: var(--muted-foreground); }

/* ---- 9. footer ---- */

.footer {
  border-top: 1px solid var(--border);
  padding: 4.5rem var(--pad-x) 0;
}

.footer-grid {
  display: grid;
  gap: 2.5rem;
  padding-bottom: 3.5rem;
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}

.footer-name {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
}
.footer-tagline { color: var(--muted-foreground); max-width: 20rem; font-size: 0.95rem; }

.footer-social { display: flex; gap: 0.9rem; margin-top: 1.2rem; }
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: 50%;
  transition: background 0.18s ease, color 0.18s ease;
}
.footer-social a:hover { background: var(--foreground); color: var(--primary-foreground); }

.footer-line {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  color: var(--muted-foreground);
  font-size: 0.95rem;
}
.footer-line svg { flex-shrink: 0; margin-top: 0.25rem; }
.footer-line a { color: inherit; transition: color 0.18s ease; }
.footer-line a:hover { color: var(--accent); }

.footer-nav { display: flex; flex-direction: column; gap: 0.55rem; font-size: 0.95rem; }
.footer-nav a { color: var(--muted-foreground); }
.footer-nav a:hover { color: var(--accent); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  padding: 1.4rem 0;
  font-size: 0.88rem;
  color: var(--muted-foreground);
}
.footer-bottom a:hover { color: var(--accent); }

/* ---- rentals page (2026-09-07) ---- */

.r-hero {
  padding: 6.5rem var(--pad-x) 4.5rem;
  border-bottom: 1px solid var(--border);
  max-width: 62rem;
}
.r-hero h1 { font-size: clamp(2.4rem, 5vw, 4rem); margin: 1rem 0 1.4rem; }
@media (max-width: 767px) {
  .r-hero h1 { font-size: clamp(2rem, 8.5vw, 2.4rem); }
  .r-hero h1 br { display: none; }
}

.r-section { padding: 5rem var(--pad-x); border-bottom: 1px solid var(--border); }
.r-section h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); margin: 0.8rem 0 2.2rem; }
.r-lede { color: var(--muted-foreground); max-width: 40rem; margin: -1.2rem 0 2.2rem; }

.r-grid { display: grid; gap: 1.4rem; }
@media (min-width: 768px) { .r-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .r-grid { grid-template-columns: repeat(4, 1fr); } .r-grid-3 { grid-template-columns: repeat(3, 1fr); } }

.r-card {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 1.8rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.r-card h3 { font-family: 'Playfair Display', serif; font-size: 1.35rem; }
.r-card ul { list-style: none; margin-top: 0.9rem; display: flex; flex-direction: column; gap: 0.5rem; }
.r-card li { font-size: 0.9rem; color: var(--muted-foreground); padding-left: 1.1rem; position: relative; }
.r-card li::before { content: "·"; color: var(--accent); position: absolute; left: 0; font-weight: 700; }
.r-card-featured { background: var(--secondary); border-color: var(--accent); }

.r-price { font-family: 'Playfair Display', serif; font-size: 2.1rem; color: var(--primary); }
.r-price span { font-family: 'DM Sans', sans-serif; font-size: 0.9rem; color: var(--muted-foreground); margin-left: 0.3rem; }
.r-note { font-size: 0.85rem; color: var(--muted-foreground); }
.r-badge {
  align-self: flex-start;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--accent);
  color: var(--accent-foreground);
  padding: 0.25rem 0.6rem;
  margin-bottom: 0.5rem;
}

.r-hybrid {
  background: var(--primary);
  color: var(--primary-foreground);
  padding: 4.5rem var(--pad-x);
  display: grid;
  gap: 2rem;
  align-items: center;
}
@media (min-width: 900px) { .r-hybrid { grid-template-columns: 2fr 1fr; } }
.r-hybrid h2 { color: var(--primary-foreground); font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0.8rem 0 1rem; }
.r-hybrid p { color: rgba(250, 246, 241, 0.85); max-width: 36rem; }
.r-hybrid-price { font-family: 'Playfair Display', serif; font-size: 3.4rem; text-align: left; }
@media (min-width: 900px) { .r-hybrid-price { text-align: right; } }
.r-hybrid-price span { font-family: 'DM Sans', sans-serif; font-size: 1rem; color: rgba(250, 246, 241, 0.75); }

.r-estimator { padding: 5rem var(--pad-x); display: grid; gap: 2.5rem; border-bottom: 1px solid var(--border); }
@media (min-width: 900px) { .r-estimator { grid-template-columns: 1fr 1.2fr; gap: 5rem; } }
.r-est-copy h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); margin: 0.8rem 0 1rem; }
.r-est-copy p { color: var(--muted-foreground); max-width: 30rem; }

.r-est-form { background: var(--card); border: 1px solid var(--border); padding: 2rem 1.8rem; display: flex; flex-direction: column; gap: 1.1rem; }
.r-est-form label { display: flex; flex-direction: column; gap: 0.35rem; font-size: 0.85rem; font-weight: 500; min-width: 0; }
.r-est-form select, .r-est-form input[type="number"] {
  font: inherit;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--border);
  background: var(--background);
  color: var(--foreground);
  min-height: 44px;
  min-width: 0;
}
/* Full width only for the stacked fields inside a <label> (booking type,
   hours, guests) — NOT the inline coffee dropdown in the add-on row. */
.r-est-form label select, .r-est-form label input[type="number"] { width: 100%; }
/* Coffee tier dropdown sits compact at the end of its flex row, beside the
   description, instead of stretching full-width and crushing the text. */
.r-addon-select { flex: 0 1 auto; width: auto; max-width: 60%; }
.r-est-form select:focus, .r-est-form input:focus { outline: 2px solid var(--ring); outline-offset: 1px; }
.r-hint { font-weight: 400; color: var(--muted-foreground); font-size: 0.78rem; }
.r-check { flex-direction: row !important; align-items: center; gap: 0.6rem !important; }
.r-check input { width: 18px; height: 18px; accent-color: var(--accent); }

.r-cart-step {
  font-family: 'DM Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 0.4rem;
}
.r-cart-step .r-hint { text-transform: none; letter-spacing: 0; font-family: 'DM Sans', sans-serif; color: var(--muted-foreground); }
.r-cart-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.r-addon {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  border: 1px solid var(--border);
  background: var(--background);
  padding: 0.85rem 1rem;
}
.r-addon-info { flex: 1; min-width: 0; }
.r-addon-name { font-weight: 500; font-size: 0.92rem; }
.r-addon-desc { font-size: 0.78rem; color: var(--muted-foreground); margin-top: 0.15rem; }
.r-addon-price { font-family: 'Playfair Display', serif; font-size: 1.15rem; white-space: nowrap; }
.r-addon-price span { font-family: 'DM Sans', sans-serif; font-size: 0.75rem; color: var(--muted-foreground); }
.r-addon-btn {
  font: inherit;
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0.45rem 1rem;
  border: 1px solid var(--primary);
  background: transparent;
  color: var(--primary);
  cursor: pointer;
  white-space: nowrap;
}
.r-addon-btn.on { background: var(--primary); color: var(--primary-foreground); }
.r-addon-qty { display: flex; align-items: center; gap: 0.6rem; }
.r-addon-qty button {
  font: inherit;
  font-size: 1rem;
  width: 1.9rem;
  height: 1.9rem;
  border: 1px solid var(--primary);
  background: transparent;
  color: var(--primary);
  cursor: pointer;
  line-height: 1;
}
.r-addon-qty span { min-width: 1.1rem; text-align: center; font-weight: 500; }
@media (max-width: 479px) {
  .r-addon { flex-wrap: wrap; }
  .r-addon-info { flex-basis: 100%; }
  .r-addon-price { margin-right: auto; }
  /* Stack the two-up date/guests fields so they never force the form
     wider than a narrow phone (fixed the 320px estimator overflow). */
  .r-cart-pair { grid-template-columns: 1fr; }
  /* When the coffee row wraps on a phone, let the dropdown go full width. */
  .r-addon-select { max-width: 100%; width: 100%; }
}
/* Booking request form (emails info@thejavashoppe.org) */
.r-book { margin-top: 1.6rem; border-top: 1px solid var(--border); padding-top: 1.4rem; }
.r-book-note { color: var(--muted-foreground); font-size: 0.9rem; margin: 0.3rem 0 1.1rem; }
.r-book-form { display: flex; flex-direction: column; gap: 1.1rem; }
.r-book-form label { display: flex; flex-direction: column; gap: 0.35rem; font-size: 0.85rem; font-weight: 500; min-width: 0; }
.r-book-form input, .r-book-form textarea {
  font: inherit;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--border);
  background: var(--background);
  color: var(--foreground);
  min-height: 44px;
  width: 100%;
  min-width: 0;
}
.r-book-form textarea { min-height: 3.5rem; resize: vertical; }
.r-book-form input:focus, .r-book-form textarea:focus { outline: 2px solid var(--ring); outline-offset: 1px; }
.r-book-form .btn-accent { margin-top: 0.2rem; }
.r-book-alt { font-size: 0.9rem; color: var(--muted-foreground); text-align: center; }
.r-book-alt a { color: var(--primary); }
.r-book-done { padding: 1.5rem; background: var(--secondary); border: 1px solid var(--accent); }
.r-book-ok { font-weight: 600; color: var(--primary); margin-bottom: 0.4rem; }
.r-book-done p { color: var(--foreground); }
.r-book-err { color: #b00020; font-weight: 500; }

.r-est-total { border-top: 1px solid var(--border); padding-top: 1.1rem; }
.r-est-lines p { display: flex; justify-content: space-between; font-size: 0.88rem; color: var(--muted-foreground); margin-bottom: 0.3rem; }
.r-est-sum { display: flex; justify-content: space-between; align-items: baseline; font-size: 1rem; margin-top: 0.6rem; }
.r-est-sum strong { font-family: 'Playfair Display', serif; font-size: 2rem; color: var(--primary); }
.r-est-fine { font-size: 0.78rem; color: var(--muted-foreground); margin-top: 0.5rem; }

.r-footer { padding: 2.2rem var(--pad-x); display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; font-size: 0.9rem; color: var(--muted-foreground); }
.r-footer a { color: var(--primary); }

/* ── Booking slot picker (Troy's grayed-out calendar, 2026-10-03) ── */
.r-slot-wrap { margin: 6px 0 2px; }
.r-slot-label { font-size: 0.82rem; font-weight: 500; color: var(--foreground); margin: 0 0 8px; }
.r-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.r-slot {
  font: 500 0.82rem "DM Sans", sans-serif;
  padding: 9px 4px; border-radius: 8px;
  border: 1px solid var(--border); background: var(--card); color: var(--foreground);
  cursor: pointer; transition: border-color .15s, background .15s;
}
.r-slot:hover:not(:disabled) { border-color: var(--accent); }
.r-slot-sel { background: var(--accent); border-color: var(--accent); color: var(--accent-foreground); }
.r-slot-taken { background: var(--muted); color: var(--muted-foreground); opacity: .55; cursor: not-allowed; text-decoration: line-through; }
.r-slot-hint { grid-column: 1 / -1; font-size: 0.82rem; color: var(--muted-foreground); margin: 0; }

/* ── Policy page ── */
.policy { max-width: 760px; margin: 0 auto; padding: 120px 24px 80px; }
.policy h1 { font-family: "Playfair Display", serif; font-size: clamp(1.9rem, 4.5vw, 2.6rem); margin: 8px 0 10px; }
.policy-intro { color: var(--muted-foreground); margin: 0 0 28px; }
.policy-block { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 22px 24px; margin-bottom: 16px; }
.policy-block h2 { font-family: "Playfair Display", serif; font-size: 1.2rem; margin: 0 0 10px; }
.policy-block ul { margin: 0; padding-left: 20px; }
.policy-block li { margin: 6px 0; line-height: 1.55; }

/* ── Events page CTA ── */
.events-cta { text-align: center; margin-top: 34px; }
.events-cta p { color: var(--muted-foreground); margin: 0 0 12px; }

/* ── Admin panel ── */
.adm { max-width: 1060px; margin: 0 auto; padding: 120px 24px 80px; }
.adm h1 { font-family: "Playfair Display", serif; font-size: clamp(1.8rem, 4vw, 2.4rem); margin: 6px 0 18px; }
.adm-badge { font: 500 0.8rem "DM Mono", monospace; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-foreground); }
.adm-login { max-width: 380px; display: grid; gap: 14px; background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 24px; }
.adm-login label { display: grid; gap: 6px; font-size: .85rem; font-weight: 500; }
.adm-login input { padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; font: inherit; }
.pw-wrap { position: relative; display: block; }
.pw-wrap input { width: 100%; padding-right: 44px; box-sizing: border-box; }
.pw-eye { position: absolute; right: 5px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border: 0; cursor: pointer; opacity: .55; background: transparent no-repeat center / 20px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23715c4f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.5-7 10-7 10 7 10 7-3.5 7-10 7-10-7-10-7Z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E"); }
.pw-eye:hover { opacity: .9; }
.pw-eye-open { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23715c4f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.5-7 10-7 10 7 10 7-3.5 7-10 7-10-7-10-7Z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cline x1='4' y1='20' x2='20' y2='4'/%3E%3C/svg%3E"); }
.adm-forgot { margin: 2px 0 0; font-size: .85rem; }
.text-link-btn { background: none; border: 0; padding: 0; font: inherit; font-size: inherit; color: var(--accent); text-decoration: underline; cursor: pointer; }
.adm-head { display: flex; align-items: end; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.adm-table-wrap { overflow-x: auto; background: var(--card); border: 1px solid var(--border); border-radius: 14px; margin-top: 10px; }
.adm-table { width: 100%; min-width: 880px; border-collapse: collapse; font-size: .85rem; }
.adm-table th { text-align: left; font: 500 .72rem "DM Mono", monospace; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-foreground); padding: 12px 14px; border-bottom: 1px solid var(--border); }
.adm-table td { padding: 11px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
.adm-table tr:last-child td { border-bottom: none; }
.adm-sum { white-space: pre-line; max-width: 260px; font-size: .78rem; color: var(--muted-foreground); }
.adm-cancelled td { opacity: .45; text-decoration: line-through; }
.adm-cancelled td a { text-decoration: line-through; }
.adm-empty { padding: 26px; color: var(--muted-foreground); }
.adm-qr { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 24px; margin-top: 22px; }
.adm-qr h2 { font-family: "Playfair Display", serif; font-size: 1.25rem; margin: 0 0 6px; }
.adm-qr p { color: var(--muted-foreground); margin: 0 0 14px; max-width: 480px; }
.adm-mono { font-family: "DM Mono", monospace; font-size: .9em; }
.adm-qr-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.adm-qr-msg { font-size: .82rem; color: var(--primary); }
#qrCanvas { border: 1px solid var(--border); border-radius: 10px; background: var(--background); }

/* Day schedule line + legend (so "taken" never reads as "broken") */
.r-day-status {
  font-size: 0.85rem; font-weight: 500; color: var(--foreground);
  background: var(--muted); border: 1px solid var(--border);
  border-radius: 8px; padding: 9px 12px; margin: 0 0 10px;
}
.r-day-open { background: #e8f2ec; border-color: rgba(31, 97, 64, 0.25); color: #1f6140; }
.r-slot-legend { display: flex; align-items: center; gap: 6px; font-size: 0.78rem; color: var(--muted-foreground); margin: 10px 0 0; }
.r-slot-mini { display: inline-block; width: 22px; height: 14px; padding: 0; pointer-events: none; }
.r-day-full { background: #f8e8e4; border-color: rgba(181, 77, 36, 0.35); color: #8a2f12; }
.adm-head-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* Booking confirmation: unmistakable so it never reads as "nothing happened" */
.r-book-done { scroll-margin-top: 90px; }
.r-book-ok {
  font-family: "Playfair Display", serif; font-size: 1.3rem; font-weight: 600;
  color: #1f6140; background: #e8f2ec; border: 1px solid rgba(31,97,64,0.3);
  border-radius: 12px; padding: 16px 18px; margin: 0 0 10px;
}
.r-book-err {
  color: #8a2f12; background: #f8e8e4; border: 1px solid rgba(181,77,36,0.35);
  border-radius: 10px; padding: 12px 14px; margin: 0;
}

/* Attribute `hidden` must always win over component display rules */
[hidden] { display: none !important; }

/* Admin block-out controls */
.adm-block { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; flex-wrap: wrap; background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 24px; margin-top: 22px; }
.adm-rec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 44px; }
.adm-rec-head h2 { font-family: "Playfair Display", serif; font-size: 1.5rem; margin: 0; }
.adm-rec-head p { color: var(--muted-foreground); margin: 2px 0 0; }
.adm-month { font-size: .85rem; color: var(--muted-foreground); display: flex; align-items: center; gap: 8px; }
.adm-month input { font: inherit; padding: 8px 10px; border: 1px solid var(--border); border-radius: 10px; background: var(--card); }
.adm-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin-top: 16px; }
.adm-card { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 16px 18px; }
.adm-card .label { margin: 0 0 4px; }
.adm-card strong { font-size: 1.45rem; font-variant-numeric: tabular-nums; }
.adm-card-net { border-color: var(--accent); }
.adm-exp-row td { color: var(--muted-foreground); }
.adm-block h2 { font-family: "Playfair Display", serif; font-size: 1.25rem; margin: 0 0 6px; }
.adm-block p { color: var(--muted-foreground); margin: 0; max-width: 420px; }
.adm-block-form { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; }
.adm-block-form label { display: flex; flex-direction: column; gap: 5px; font-size: 0.8rem; font-weight: 500; }
.adm-block-form input, .adm-block-form select { padding: 9px 11px; border: 1px solid var(--border); border-radius: 8px; font: inherit; background: var(--background); }
.adm-allday { flex-direction: row !important; align-items: center; gap: 7px !important; white-space: nowrap; }
.adm-allday input { width: auto; }
.adm-block-row td { background: rgba(181, 77, 36, 0.06); color: var(--muted-foreground); }

/* ---- Donation page ---- */

.don-grid { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 900px) { .don-grid { grid-template-columns: 1.1fr 1fr; gap: 4rem; } }

.don-copy h2 { font-size: clamp(2rem, 3.5vw, 2.8rem); margin-bottom: 1.2rem; }
.don-lede { color: var(--muted-foreground); margin-bottom: 1rem; max-width: 34rem; }
.don-fine { font-size: 0.82rem; color: var(--muted-foreground); margin-top: 1.4rem; max-width: 30rem; }
.don-fine a { color: var(--primary); }
.don-fine-center { text-align: center; margin-top: 0.9rem; }

.don-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.8rem;
}
@media (min-width: 768px) { .don-card { padding: 2.2rem; } }

.don-step {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-foreground);
  margin: 0 0 0.7rem;
}
.don-step + .don-step, .don-amounts + .don-step { margin-top: 1.4rem; }

.don-freq { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 1.4rem; }
.don-freq-btn {
  font: inherit; font-weight: 500; font-size: 0.95rem;
  padding: 0.7rem 0.5rem; cursor: pointer;
  background: var(--background); color: var(--foreground);
  border: 1px solid var(--border); border-radius: 999px;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.don-freq-btn.active { background: var(--foreground); color: var(--primary-foreground); border-color: var(--foreground); }

.don-amounts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.don-amt {
  font-family: 'DM Mono', monospace; font-size: 1rem; font-weight: 500;
  padding: 0.75rem 0.4rem; cursor: pointer;
  background: var(--background); color: var(--foreground);
  border: 1px solid var(--border); border-radius: 10px;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.don-amt:hover { border-color: var(--accent); }
.don-amt.active { background: var(--accent); color: var(--accent-foreground); border-color: var(--accent); }

.don-custom-label { display: block; font-size: 0.8rem; font-weight: 500; margin: 1.1rem 0 0.4rem; }
.don-custom {
  display: flex; align-items: center; gap: 6px;
  border: 1px solid var(--border); border-radius: 10px;
  padding: 0 0.9rem; background: var(--background);
}
.don-custom span { font-family: 'DM Mono', monospace; color: var(--muted-foreground); }
.don-custom input {
  flex: 1; min-width: 0; border: 0; outline: 0; background: transparent;
  font: inherit; font-family: 'DM Mono', monospace; font-size: 1rem;
  padding: 0.75rem 0;
}

.don-submit { width: 100%; justify-content: center; margin-top: 1.6rem; font-size: 1.05rem; border: 0; cursor: pointer; }
.don-submit:disabled { opacity: 0.6; cursor: default; }

.don-err {
  color: #8a2f12; background: #f8e8e4; border: 1px solid rgba(181,77,36,0.35);
  border-radius: 10px; padding: 12px 14px; margin: 0.9rem 0 0; font-size: 0.92rem;
}

.don-thanks h3 {
  font-family: 'Playfair Display', serif; font-size: 1.6rem;
  color: #1f6140; margin-bottom: 0.7rem;
}
.don-thanks p { color: var(--muted-foreground); margin-bottom: 1rem; }

/* ---- Sponsor nav dropdown + sponsor page ---- */

.nav-drop { position: relative; }
.nav-drop-btn {
  display: inline-flex; align-items: center; gap: 5px;
  font: inherit; font-weight: 500; font-size: 0.92rem;
  background: none; border: 0; padding: 0; cursor: pointer;
  color: inherit;
}
.nav-drop-btn:hover { color: var(--accent); }
.nav-drop-menu {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%);
  display: none; flex-direction: column; min-width: 220px;
  background: var(--background); border: 1px solid var(--border);
  border-radius: 12px; padding: 6px; z-index: 60;
  box-shadow: 0 10px 30px rgba(26, 15, 10, 0.08);
}
.nav-drop:hover .nav-drop-menu,
.nav-drop:focus-within .nav-drop-menu,
.nav-drop.open .nav-drop-menu { display: flex; }
.nav-drop-menu a { padding: 9px 13px; border-radius: 8px; font-size: 0.92rem; }
.nav-drop-menu a:hover { background: var(--secondary); color: var(--accent); }

@media (max-width: 767px) {
  .nav-drop { position: static; }
  .nav-drop-menu {
    position: static; transform: none; display: flex;
    border: 0; box-shadow: none; padding: 0.6rem 0 0 1.1rem; gap: 0.8rem;
    background: transparent; min-width: 0;
  }
  .nav-drop-btn { pointer-events: none; }
  .nav-drop-btn svg { display: none; }
}

.spon-cards { display: grid; gap: 1.4rem; margin-top: 2rem; }
@media (min-width: 768px) { .spon-cards { grid-template-columns: 1fr 1fr; gap: 2rem; } }
.spon-card {
  display: block; background: var(--card);
  border: 1px solid var(--border); border-radius: 14px;
  padding: 1.8rem; transition: border-color 0.18s ease, transform 0.18s ease;
}
.spon-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.spon-card h3 { font-size: 1.45rem; margin-bottom: 0.6rem; }
.spon-card p:not(.label) { color: var(--muted-foreground); margin-bottom: 1rem; }

/* Sponsor page: program photo + next-gathering details */
.spon-photo { margin-top: 1.8rem; border-radius: 14px; aspect-ratio: 3 / 2; max-width: 34rem; }
.spon-event {
  margin-top: 1.4rem; max-width: 34rem;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 14px; padding: 1.4rem 1.6rem;
}
.spon-event dl {
  display: grid; grid-template-columns: auto 1fr;
  gap: 0.55rem 1.2rem; margin: 0; font-size: 0.93rem;
}
.spon-event dt {
  font-family: 'DM Mono', monospace; font-size: 10.5px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted-foreground); padding-top: 3px; white-space: nowrap;
}
.spon-event dd { margin: 0; }
@media (max-width: 479px) {
  .spon-event dl { grid-template-columns: 1fr; gap: 0.15rem; }
  .spon-event dd { margin-bottom: 0.65rem; }
}
.spon-card-photo { aspect-ratio: 3 / 2; border-radius: 10px; overflow: hidden; margin-bottom: 1.2rem; }

/* Sponsor page: program pillars + event flyer */
.spon-pillars {
  list-style: none; display: flex; flex-wrap: wrap; gap: 8px;
  margin: 0.4rem 0 0; padding: 0; max-width: 34rem;
}
.spon-pillars li {
  font-family: 'DM Mono', monospace; font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--foreground); background: var(--secondary);
  border: 1px solid var(--border); border-radius: 999px;
  padding: 7px 13px 7px 11px; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 7px;
}
.spon-pillars li svg {
  width: 15px; height: 15px; flex: none; color: var(--accent);
}
.spon-flyer { margin-top: 1.6rem; max-width: 21rem; }
.spon-flyer a { display: block; }
.spon-flyer img {
  width: 100%; height: auto; display: block; border-radius: 14px;
  border: 1px solid var(--border);
  box-shadow: 0 10px 30px rgba(26, 15, 10, 0.1);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.spon-flyer a:hover img {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(26, 15, 10, 0.16);
}
.spon-flyer .don-fine { margin-top: 0.6rem; }
