/* ============================================================
   Agatheeswarar Temple — 2026 Redesign theme
   Bright festive: warm sand & cream, rich gold ornament,
   kumkum maroon + saffron pops. Mobile-first.
   Consumes tokens from css/styles.css.
   ============================================================ */

/* ---------- Page ---------- */
body.rd {
  background-color: var(--sand);
  background-image:
    radial-gradient(rgba(184, 134, 11, 0.07) 1px, transparent 1.5px),
    radial-gradient(circle at 12% -5%, rgba(224, 123, 42, 0.12), transparent 42%),
    radial-gradient(circle at 88% 0%, rgba(184, 134, 11, 0.12), transparent 44%);
  background-size: 26px 26px, auto, auto;
  overflow-x: hidden;
}
.container { width: min(92%, 1120px); margin: 0 auto; }

/* ---------- Topbar ---------- */
.rd-topbar {
  background: linear-gradient(90deg, var(--maroon-dark), #6b1717, var(--maroon-dark));
  color: var(--gold-light);
  display: flex; align-items: center; justify-content: center;
  gap: 10px;
  white-space: nowrap;
  min-height: 40px;
  line-height: 1.5;
  text-align: center;
  font-size: 0.95rem;
  padding: 4px 12px;
}

/* ---------- Header ---------- */
.rd-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(255, 250, 240, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 18px rgba(90, 18, 18, 0.10);
}
.rd-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
}
.rd-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; min-height: 44px; }
.rd-om-emblem {
  width: 46px; height: 46px; flex: 0 0 auto;
  display: grid; place-items: center;
  background: radial-gradient(circle at 35% 30%, #f2dc92, var(--gold-bright) 60%, var(--gold));
  color: var(--maroon-dark);
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 0.88rem; line-height: 1;
  border-radius: 50%;
  border: 2px solid var(--cream);
  box-shadow: 0 0 0 2px var(--gold), 0 4px 12px rgba(90, 18, 18, 0.25);
}
.rd-brand-main { font-family: var(--font-serif); font-weight: 700; color: var(--maroon-dark); font-size: clamp(0.98rem, 1.5vw, 1.1rem); line-height: 1.25; white-space: nowrap; }
.rd-brand-sub { color: var(--ink-soft); font-size: 0.78rem; }

.rd-nav ul { list-style: none; display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; }
.rd-nav a {
  display: flex; align-items: center; min-height: 44px;
  text-decoration: none; padding: 6px 12px; border-radius: 999px;
  font-weight: 600; font-size: 0.92rem; color: var(--maroon-dark);
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}
.rd-nav a:hover { background: rgba(212, 175, 55, 0.18); }
.rd-nav a.active { background: var(--maroon); color: #fff8e6; }
.rd-nav a.rd-donate {
  background: linear-gradient(180deg, #e9c95c, var(--gold-bright));
  color: var(--maroon-dark);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.18);
  margin-left: 6px;
}
.rd-nav a.rd-donate:hover { filter: brightness(1.06); }

/* hamburger */
.rd-burger {
  display: none;
  width: 46px; height: 46px;
  flex: 0 0 auto;
  border: 1.5px solid var(--gold-bright);
  background: var(--cream);
  border-radius: 12px;
  color: var(--maroon-dark);
  font-size: 1.35rem;
  cursor: pointer;
}
@media (max-width: 1020px) and (min-width: 1001px) {
  .rd-nav a { padding: 6px 9px; font-size: 0.86rem; }
}

/* quick-access strip (mobile only — hidden on desktop) */
.rd-quicknav { display: none; }

/* garland (thoranam) under header */
.rd-garland {
  height: 12px;
  background:
    radial-gradient(circle at 8px -3px, var(--maroon) 0 6.5px, transparent 7.5px),
    radial-gradient(circle at 8px -5px, var(--gold-bright) 0 8px, transparent 9px);
  background-size: 16px 12px;
  background-repeat: repeat-x;
}

/* ---------- Page-title band ---------- */
.rd-pageband {
  text-align: center;
  padding: 46px 16px 38px;
  background:
    repeating-conic-gradient(from -90deg at 50% 130%, rgba(212, 175, 55, 0.07) 0 5deg, transparent 5deg 10deg),
    linear-gradient(180deg, var(--sand-deep), var(--sand));
  border-bottom: 1px solid var(--line);
}
.rd-pageband .kicker { font-family: var(--font-serif); color: var(--saffron); font-weight: 700; font-size: 0.95rem; }
.rd-pageband h1 { font-size: clamp(1.7rem, 5vw, 2.7rem); margin: 6px 0 4px; }
.rd-pageband .sub { color: var(--ink-soft); max-width: 680px; margin: 0 auto; }

/* ---------- Section heads ---------- */
.rd-shead { text-align: center; margin-bottom: 34px; }
.rd-shead .kicker { font-family: var(--font-serif); color: var(--saffron); font-weight: 700; font-size: 0.9rem; }
.rd-shead h2 { font-size: clamp(1.45rem, 3.8vw, 2.1rem); margin: 4px 0 0; }
.rd-shead .orn { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 10px; color: var(--gold); }
.rd-shead .orn::before, .rd-shead .orn::after {
  content: ""; height: 2px; width: min(110px, 24vw);
  background: linear-gradient(90deg, transparent, var(--gold));
}
.rd-shead .orn::after { background: linear-gradient(90deg, var(--gold), transparent); }
.rd-shead .sub { color: var(--ink-soft); margin-top: 8px; }

.rd-section { padding: clamp(48px, 7vw, 72px) 0; }
.rd-section.alt { background: linear-gradient(180deg, var(--sand-deep), #f8ecd2); }

/* ---------- Hero ---------- */
.rd-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(36px, 6vw, 64px) 0 clamp(44px, 6vw, 72px);
  background:
    repeating-conic-gradient(from -90deg at 50% 135%, rgba(212, 175, 55, 0.09) 0 5deg, transparent 5deg 10deg),
    linear-gradient(180deg, #fbf0d8, var(--sand) 75%);
}
.rd-hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  position: relative;
  z-index: 2;
}
.rd-hero .kicker {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(212, 175, 55, 0.16);
  border: 1px solid var(--gold-bright);
  color: var(--maroon-dark);
  font-weight: 700; font-size: 0.88rem;
  padding: 6px 16px; border-radius: 999px;
}
.rd-hero h1 { font-size: clamp(1.7rem, 4.1vw, 2.8rem); line-height: 1.38; margin: 14px 0 8px; }
.rd-hero .sub { color: var(--ink-soft); font-size: clamp(1rem, 2.4vw, 1.15rem); }
.rd-hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }

/* arch-framed deity image */
.rd-arch {
  position: relative;
  border-radius: 999px 999px 22px 22px / 42% 42% 22px 22px;
  overflow: hidden;
  border: 6px solid var(--cream);
  outline: 2px solid var(--gold-bright);
  outline-offset: 5px;
  box-shadow: 0 24px 60px rgba(90, 18, 18, 0.22);
}
.rd-arch img { display: block; width: 100%; height: 100%; object-fit: cover; }
.rd-arch::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 2px rgba(212, 175, 55, 0.5), inset 0 -60px 80px rgba(58, 12, 12, 0.35);
  pointer-events: none;
}

/* floating om particles */
.rd-oms { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 1; }
.rd-oms span {
  position: absolute; bottom: -40px;
  color: var(--gold);
  opacity: 0;
  animation: rd-float var(--d, 16s) linear infinite;
  animation-delay: var(--dl, 0s);
  font-size: var(--s, 1.4rem);
}
@keyframes rd-float {
  0% { transform: translateY(0) rotate(-6deg); opacity: 0; }
  12% { opacity: 0.18; }
  80% { opacity: 0.12; }
  100% { transform: translateY(-120vh) rotate(8deg); opacity: 0; }
}

/* ---------- Countdown ---------- */
.rd-count { display: flex; gap: clamp(8px, 1.6vw, 14px); flex-wrap: wrap; margin-top: 22px; }
.rd-count .unit {
  min-width: clamp(64px, 9vw, 86px);
  background: linear-gradient(180deg, #fffdf6, var(--cream));
  border: 1.5px solid var(--gold-bright);
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(90, 18, 18, 0.10), inset 0 -3px 0 rgba(212, 175, 55, 0.45);
  text-align: center;
  padding: 10px 8px 8px;
}
.rd-count .n {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(1.5rem, 3.4vw, 2rem);
  color: var(--maroon);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.rd-count .l { font-size: 0.78rem; color: var(--ink-soft); font-weight: 600; }
.rd-count.big { justify-content: center; width: min(100%, 620px); margin-left: auto; margin-right: auto; }
.rd-count.big .unit { flex: 1 1 0; min-width: clamp(74px, 12vw, 110px); padding: 14px 10px 12px; }
.rd-count.big .n { font-size: clamp(1.9rem, 5vw, 2.8rem); }

/* ---------- Buttons ---------- */
.rd-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px;
  font-family: var(--font-sans); font-weight: 700; font-size: 1rem;
  text-decoration: none; cursor: pointer;
  padding: 12px 28px; border-radius: 999px; border: none;
  white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease;
}
.rd-btn:hover { transform: translateY(-2px); }
.rd-btn:active { transform: translateY(0); filter: brightness(0.96); }
.rd-btn.maroon { background: linear-gradient(180deg, var(--maroon-soft), var(--maroon)); color: #fff8e6; box-shadow: 0 8px 20px rgba(90, 18, 18, 0.28); }
.rd-btn.maroon:hover { box-shadow: 0 12px 26px rgba(90, 18, 18, 0.34); }
.rd-btn.gold { background: linear-gradient(180deg, #efd06a, var(--gold-bright)); color: var(--maroon-dark); box-shadow: 0 8px 20px rgba(184, 134, 11, 0.32); }
.rd-btn.gold:hover { box-shadow: 0 12px 26px rgba(184, 134, 11, 0.4); }
.rd-btn.ghost { background: transparent; border: 1.5px solid var(--gold-bright); color: var(--maroon-dark); }

/* ---------- Cards ---------- */
.rd-grid { display: grid; gap: 18px; }
.rd-grid.c4 { grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); }
.rd-grid.c3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.rd-card {
  position: relative;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 26px 20px 22px;
  text-align: center;
  box-shadow: 0 8px 24px rgba(90, 18, 18, 0.09);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.rd-card:hover { transform: translateY(-5px); box-shadow: 0 16px 34px rgba(90, 18, 18, 0.16); }
.rd-card .emblem {
  width: 58px; height: 58px;
  margin: 0 auto 12px;
  display: grid; place-items: center;
  font-size: 1.7rem;
  background: radial-gradient(circle at 35% 30%, #f6e3a3, rgba(212, 175, 55, 0.45));
  border: 1.5px solid var(--gold-bright);
  border-radius: 50%;
}
.rd-card h3 { font-size: 1.12rem; margin-bottom: 4px; }
.rd-card .big { font-family: var(--font-serif); font-size: 1.32rem; color: var(--maroon); font-weight: 700; }
.rd-card .sub { color: var(--ink-soft); font-size: 0.95rem; }
.rd-card::before {
  content: "";
  position: absolute; top: 0; left: 24px; right: 24px; height: 4px;
  border-radius: 0 0 6px 6px;
  background: linear-gradient(90deg, var(--gold), var(--gold-bright), var(--gold));
}
a.rd-card { display: block; text-decoration: none; }

/* ---------- Diya ---------- */
.rd-diya { position: relative; width: 54px; height: 56px; display: inline-block; }
.rd-diya .flame {
  position: absolute; left: 50%; bottom: 26px;
  width: 14px; height: 22px;
  transform: translateX(-50%);
  background: radial-gradient(circle at 50% 78%, #fff7c4 0 22%, #ffd95e 45%, #f08c1f 78%, rgba(240, 110, 20, 0));
  border-radius: 50% 50% 50% 50% / 64% 64% 36% 36%;
  transform-origin: 50% 100%;
  animation: rd-flicker 1.6s ease-in-out infinite;
  filter: drop-shadow(0 0 8px rgba(255, 180, 60, 0.85));
}
.rd-diya .wick { position: absolute; left: 50%; bottom: 24px; width: 2px; height: 5px; background: #5a2d0c; transform: translateX(-50%); }
.rd-diya .bowl {
  position: absolute; left: 50%; bottom: 8px;
  width: 48px; height: 18px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, var(--maroon-soft), var(--maroon-dark));
  border-radius: 4px 4px 24px 24px / 4px 4px 18px 18px;
  box-shadow: inset 0 2px 3px rgba(255, 220, 140, 0.45);
}
.rd-diya .base {
  position: absolute; left: 50%; bottom: 2px;
  width: 26px; height: 7px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  border-radius: 3px;
}
@keyframes rd-flicker {
  0%, 100% { transform: translateX(-50%) rotate(-2.5deg) scale(1); }
  30% { transform: translateX(-52%) rotate(2deg) scale(1.06, 0.95); }
  60% { transform: translateX(-48%) rotate(-1.5deg) scale(0.96, 1.05); }
}
.rd-diya-row { display: flex; align-items: center; justify-content: center; gap: clamp(14px, 4vw, 36px); }

/* ---------- Schedule tabs + timeline ---------- */
.rd-tabs { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-bottom: 30px; }
.rd-tab {
  min-height: 48px;
  border: 1.5px solid var(--gold-bright);
  background: var(--cream);
  color: var(--maroon-dark);
  font-family: var(--font-sans); font-weight: 700; font-size: 0.98rem;
  padding: 10px 20px; border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.rd-tab .d { display: block; font-weight: 500; font-size: 0.78rem; color: var(--ink-soft); }
.rd-tab.on { background: linear-gradient(180deg, var(--maroon-soft), var(--maroon)); color: #fff8e6; border-color: var(--maroon); box-shadow: 0 8px 20px rgba(90, 18, 18, 0.25); }
.rd-tab.on .d { color: var(--gold-light); }

.rd-tl { position: relative; max-width: 760px; margin: 0 auto; padding-left: 26px; }
.rd-tl::before {
  content: "";
  position: absolute; left: 7px; top: 6px; bottom: 6px;
  width: 2px;
  background: repeating-linear-gradient(180deg, var(--gold-bright) 0 8px, transparent 8px 14px);
}
.rd-tl-item { position: relative; padding: 0 0 22px 16px; }
.rd-tl-item::before {
  content: "";
  position: absolute; left: -26px; top: 6px;
  width: 16px; height: 16px;
  background: radial-gradient(circle at 35% 30%, #f6e3a3, var(--gold-bright));
  border: 2px solid var(--cream);
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--gold);
}
.rd-tl-item .time {
  display: inline-block;
  white-space: nowrap;
  background: var(--maroon);
  color: #fff8e6;
  font-weight: 700; font-size: 0.85rem;
  padding: 3px 12px; border-radius: 999px;
  margin-bottom: 6px;
}
.rd-tl-item .act { color: var(--ink); }
.rd-tl-item.hl { background: linear-gradient(90deg, rgba(212, 175, 55, 0.18), transparent 85%); border-radius: 14px; padding-top: 12px; padding-bottom: 26px; padding-right: 14px; margin-left: -8px; padding-left: 24px; }
.rd-tl-item.hl::before { animation: rd-node-glow 2s ease-in-out infinite; }
.rd-tl-item.hl .time { background: linear-gradient(180deg, #efd06a, var(--gold-bright)); color: var(--maroon-dark); }
.rd-tl-item.hl .act { font-weight: 600; }
@keyframes rd-node-glow {
  0%, 100% { box-shadow: 0 0 0 2px var(--gold); }
  50% { box-shadow: 0 0 0 2px var(--gold), 0 0 16px 4px rgba(212, 175, 55, 0.65); }
}

/* ---------- Gallery ---------- */
.rd-gal { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.rd-gal figure { margin: 0; position: relative; cursor: zoom-in; border-radius: 14px; overflow: hidden; border: 3px solid var(--cream); outline: 1px solid var(--gold-bright); box-shadow: 0 8px 22px rgba(90, 18, 18, 0.12); transition: transform 0.2s ease, box-shadow 0.2s ease; }
.rd-gal figure:hover { transform: translateY(-4px) scale(1.01); box-shadow: 0 14px 30px rgba(90, 18, 18, 0.2); }
.rd-gal img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.rd-gal figcaption {
  position: absolute; inset: auto 0 0 0;
  padding: 26px 12px 10px;
  background: linear-gradient(180deg, transparent, rgba(45, 9, 9, 0.78));
  color: #fdeccb; font-size: 0.88rem; text-align: center;
}
.rd-gal .soon {
  aspect-ratio: 4 / 5;
  border: 2px dashed var(--gold-bright);
  border-radius: 14px;
  display: grid; place-items: center;
  color: var(--ink-soft);
  background: rgba(255, 250, 240, 0.6);
  font-size: 0.9rem; text-align: center; padding: 12px;
}

/* lightbox */
.rd-lb {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(30, 6, 6, 0.92);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 20px;
  animation: rd-fade 0.25s ease;
}
.rd-lb img { max-width: min(92vw, 980px); max-height: 76vh; border-radius: 12px; border: 3px solid var(--cream); outline: 1px solid var(--gold-bright); }
.rd-lb .cap { color: var(--gold-light); margin-top: 14px; font-size: 1rem; text-align: center; }
.rd-lb button {
  position: absolute;
  background: rgba(255, 250, 240, 0.12);
  border: 1.5px solid var(--gold-bright);
  color: var(--gold-light);
  width: 50px; height: 50px;
  border-radius: 50%;
  font-size: 1.3rem;
  cursor: pointer;
  transition: background 0.2s;
}
.rd-lb button:hover { background: rgba(212, 175, 55, 0.3); }
.rd-lb .x { top: 18px; right: 18px; }
.rd-lb .prev { left: 14px; top: 50%; transform: translateY(-50%); }
.rd-lb .next { right: 14px; top: 50%; transform: translateY(-50%); }
@keyframes rd-fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- CTA band ---------- */
.rd-band {
  position: relative;
  background:
    radial-gradient(circle at 15% 20%, rgba(212, 175, 55, 0.16), transparent 45%),
    linear-gradient(120deg, var(--maroon-dark), var(--maroon) 55%, #8a2222);
  color: #fff7e6;
  text-align: center;
  padding: clamp(44px, 6vw, 64px) 0;
  border-top: 3px solid var(--gold-bright);
  border-bottom: 3px solid var(--gold-bright);
  overflow: hidden;
}
.rd-band h2 { color: var(--gold-light); font-size: clamp(1.4rem, 3.6vw, 2rem); }
.rd-band p { max-width: 700px; margin: 12px auto 0; color: #fdeccb; }

/* ---------- Bell FAB ---------- */
.rd-bell {
  position: fixed;
  right: 18px; bottom: 18px;
  z-index: 120;
  width: 58px; height: 58px;
  border-radius: 50%;
  border: 2px solid var(--cream);
  background: radial-gradient(circle at 35% 30%, #f2dc92, var(--gold-bright) 60%, var(--gold));
  box-shadow: 0 0 0 2px var(--gold), 0 10px 24px rgba(90, 18, 18, 0.32);
  font-size: 1.65rem;
  cursor: pointer;
  display: grid; place-items: center;
  transition: transform 0.15s ease;
}
.rd-bell:hover { transform: scale(1.06); }
.rd-bell .b { display: inline-block; transform-origin: 50% 8%; }
.rd-bell.ring .b { animation: rd-ring 1s ease-in-out; }
@keyframes rd-ring {
  0% { transform: rotate(0); }
  15% { transform: rotate(22deg); }
  35% { transform: rotate(-18deg); }
  55% { transform: rotate(12deg); }
  75% { transform: rotate(-7deg); }
  100% { transform: rotate(0); }
}

/* ---------- Footer ---------- */
.rd-footer {
  background: linear-gradient(180deg, var(--maroon-dark), #380b0b);
  color: var(--gold-light);
  padding: 44px 0 22px;
  text-align: center;
  border-top: 4px solid var(--gold-bright);
}
.rd-footer .f-om { font-family: var(--font-serif); font-weight: 700; font-size: 1.25rem; color: var(--gold-bright); text-shadow: 0 0 18px rgba(212, 175, 55, 0.55); }
.rd-footer .f-name { color: #fff7e6; font-family: var(--font-serif); font-size: 1.15rem; margin: 10px 0 4px; }
.rd-footer nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 8px; margin: 16px 0; }
.rd-footer nav a { color: var(--gold-light); text-decoration: none; font-weight: 600; padding: 8px 10px; border-radius: 8px; }
.rd-footer nav a:hover { color: #fff7e6; background: rgba(255, 255, 255, 0.06); }
.rd-footer .f-copy { font-size: 0.85rem; opacity: 0.75; margin-top: 14px; }

/* ---------- Reveal on scroll ---------- */
@media (prefers-reduced-motion: no-preference) {
  .rv { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s ease; }
  .rv.in { opacity: 1; transform: none; }
  .rv.d1 { transition-delay: 0.08s; }
  .rv.d2 { transition-delay: 0.16s; }
  .rv.d3 { transition-delay: 0.24s; }
}
@media (prefers-reduced-motion: reduce) {
  .rd-oms span, .rd-diya .flame, .rd-tl-item.hl::before { animation: none !important; }
}

/* ---------- Misc ---------- */
.rd-prose { max-width: 780px; margin: 0 auto; }
.rd-prose p { margin-bottom: 18px; }
.rd-prose h3 { margin: 28px 0 10px; font-size: 1.3rem; }
.center { text-align: center; }
.mt { margin-top: 28px; }

.rd-two { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(24px, 4vw, 44px); align-items: center; }

/* ---------- Mobile ---------- */
@media (max-width: 1000px) {
  .rd-burger { display: grid; place-items: center; }

  /* let the long temple name wrap to multiple lines instead of overflowing */
  .rd-brand { align-items: flex-start; }
  .rd-brand-main { white-space: normal; line-height: 1.3; }

  .rd-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--cream);
    border-bottom: 3px solid var(--gold-bright);
    box-shadow: 0 18px 30px rgba(90, 18, 18, 0.18);
    max-height: 0; overflow: hidden;
    transition: max-height 0.35s ease;
  }
  /* extended dropdown — fits every link and scrolls if the viewport is short */
  .rd-nav.open { max-height: min(80vh, 560px); overflow-y: auto; -webkit-overflow-scrolling: touch; }
  .rd-nav ul { flex-direction: column; align-items: stretch; gap: 2px; padding: 10px 14px 16px; }
  .rd-nav a { border-radius: 12px; padding: 14px 16px; font-size: 1rem; }
  .rd-nav a.rd-donate { margin: 8px 0 0; justify-content: center; }

  /* quick menu of important pages — horizontal scroll strip under the header */
  .rd-quicknav {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 8px 12px;
    background: linear-gradient(180deg, var(--cream), var(--sand-deep));
    border-top: 1px solid var(--line);
  }
  .rd-quicknav::-webkit-scrollbar { display: none; }
  .rd-quicknav a {
    flex: 0 0 auto;
    display: inline-flex; align-items: center; gap: 6px;
    white-space: nowrap;
    font-weight: 600; font-size: 0.86rem;
    color: var(--maroon-dark);
    text-decoration: none;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1.5px solid var(--gold-bright);
    background: rgba(255, 250, 240, 0.92);
  }
  .rd-quicknav a.active { background: var(--maroon); color: #fff8e6; border-color: var(--maroon); }
  .rd-quicknav .qi { font-size: 0.98rem; line-height: 1; }

  .rd-hero-grid { grid-template-columns: 1fr; }
  .rd-hero-grid .rd-arch { max-width: 420px; margin: 0 auto; order: -1; }
  .rd-hero { text-align: center; }
  .rd-hero-ctas, .rd-count { justify-content: center; }

  .rd-two { grid-template-columns: 1fr; }
  .rd-two .rd-arch { max-width: 400px; margin: 0 auto; }
  .rd-count .unit { flex: 1 1 calc(25% - 8px); }
}
