/* Countdown block: the closing band used at the end of the homepage and before the footer
   on inner pages. Self-contained (class prefix sc-); needs only the design tokens from
   brand.css and the .wrap, .eyebrow and .button classes every page already loads.
   States are set by countdown.js on the section: sc-ready, sc-before, sc-live, sc-after. */

.surbhi-countdown {
  position: relative;
  padding: 72px 0 80px;
  background: var(--vermilion, #ec4b3b);
  color: var(--paper, #fffbed);
  text-align: center;
}
.surbhi-countdown .sc-inner { position: relative; }

.surbhi-countdown .sc-eyebrow {
  margin: 0;
  color: #301510;
  font-size: 12px;
  letter-spacing: .13em;
}

/* live timer */
.surbhi-countdown .sc-timer {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr) auto) minmax(0, 1fr);
  align-items: start;
  gap: clamp(6px, 1.5vw, 14px);
  max-width: 520px;
  margin: 22px auto 30px;
}
.surbhi-countdown .sc-unit { display: grid; justify-items: center; min-width: 0; }
.surbhi-countdown .sc-num {
  display: block;
  font-family: var(--serif);
  font-size: 53px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -.06em;
  font-variant-numeric: lining-nums tabular-nums;
  color: var(--paper, #fffbed);
}
.surbhi-countdown .sc-unit small {
  display: block;
  margin-top: 5px;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: .13em;
  color: #301510;
}
.surbhi-countdown .sc-colon {
  font-family: var(--serif);
  font-size: 30px;
  line-height: 58px;
  color: #ffcc8d;
}
/* until the script has written real numbers, keep the space but show nothing */
.surbhi-countdown:not(.sc-ready) .sc-num { visibility: hidden; }

/* during and after the festival the timer gives way to one line of text */
.surbhi-countdown .sc-status {
  display: none;
  max-width: 30ch;
  margin: 0 auto 30px;
  font-family: var(--serif);
  font-size: clamp(24px, 2.6vw, 34px);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -.03em;
  color: var(--paper, #fffbed);
  text-wrap: balance;
}
.surbhi-countdown:is(.sc-live, .sc-after) :is(.sc-timer, .sc-eyebrow) { display: none; }
.surbhi-countdown:is(.sc-live, .sc-after) .sc-status { display: block; }

.surbhi-countdown h2.sc-title {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(50px, 6.3vw, 90px);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -.055em;
  color: var(--paper, #fffbed);
}
.surbhi-countdown h2.sc-title em {
  font-style: normal;
  font-weight: 600;
  color: var(--paper, #fffbed);
}

/* the nine nights, as one ivory strip */
.surbhi-countdown .sc-nights {
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  gap: 1px;
  max-width: 1240px;
  margin: 44px auto 38px;
  padding: 0;
  list-style: none;
  background: var(--line, #d8d3be);
  border: 1px solid var(--line, #d8d3be);
  box-shadow: 0 22px 44px -30px #30151099;
  text-align: center;
}
.surbhi-countdown .sc-night {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  margin: 0;
  padding: 26px 4px 16px;
  background: var(--paper, #fffbed);
  color: var(--ink, #183e59);
}
.surbhi-countdown .sc-top { display: flex; align-items: center; justify-content: center; gap: 7px; }
.surbhi-countdown .sc-dot {
  flex: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--sc-colour, #fff);
  box-shadow: inset 0 0 0 1px #183e5940;
}
.surbhi-countdown .sc-no {
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .12em;
  color: var(--red, #a73530);
}
.surbhi-countdown .sc-goddess {
  margin-top: 8px;
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.02em;
  color: var(--blue, #184878);
  white-space: nowrap;
}
.surbhi-countdown .sc-date {
  margin-top: 4px;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted, #52616b);
  white-space: nowrap;
}
.surbhi-countdown .sc-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* tonight, and the nights already danced */
.surbhi-countdown .sc-night.is-tonight { background: #fff; }
.surbhi-countdown .sc-night.is-tonight::before {
  content: 'Tonight';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 2px 0;
  background: var(--red, #a73530);
  color: var(--paper, #fffbed);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.surbhi-countdown .sc-night.is-past .sc-goddess { color: var(--muted, #52616b); }
.surbhi-countdown .sc-night.is-past .sc-dot { opacity: .45; }

/* booking */
.surbhi-countdown .sc-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.surbhi-countdown .button {
  background: var(--paper, #fffbed);
  border-color: var(--paper, #fffbed);
  color: var(--red, #a73530);
}
.surbhi-countdown .button:hover { background: #ffdc9c; border-color: #ffdc9c; }
.surbhi-countdown .text-link { color: #301510; font-size: 13px; }
.surbhi-countdown .text-link:hover { color: #301510; }
.surbhi-countdown.sc-after .sc-book { display: none; }
.surbhi-countdown a:focus-visible { outline: 3px solid #301510; outline-offset: 4px; }

/* below the width where nine names fit side by side, the strip becomes three by three */
@media (max-width: 1279px) {
  .surbhi-countdown .sc-nights { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 760px; }
  .surbhi-countdown .sc-goddess { font-size: 18px; }
}

@media (max-width: 650px) {
  .surbhi-countdown { padding: 52px 0 58px; }
  .surbhi-countdown .sc-eyebrow { font-size: 10px; letter-spacing: .07em; }
  .surbhi-countdown .sc-timer { margin: 21px auto 27px; }
  .surbhi-countdown .sc-num { font-size: clamp(34px, 9vw, 44px); }
  .surbhi-countdown .sc-unit small { font-size: 9px; }
  .surbhi-countdown .sc-colon { font-size: 26px; line-height: clamp(37px, 9.9vw, 48px); }
  .surbhi-countdown .sc-status { margin: 0 auto 27px; font-size: 24px; }
  .surbhi-countdown h2.sc-title { font-size: clamp(40px, 10.5vw, 64px); letter-spacing: -.06em; line-height: 1.05; }
  .surbhi-countdown .sc-nights { margin: 32px auto 30px; }
  .surbhi-countdown .sc-night { padding: 24px 2px 12px; }
  .surbhi-countdown .sc-top { gap: 5px; }
  .surbhi-countdown .sc-dot { width: 12px; height: 12px; }
  .surbhi-countdown .sc-no { font-size: 10px; }
  .surbhi-countdown .sc-goddess { margin-top: 6px; font-size: clamp(12px, 3.7vw, 14px); letter-spacing: -.03em; }
  .surbhi-countdown .sc-date { font-size: 9px; letter-spacing: .06em; }
  .surbhi-countdown .sc-night.is-tonight::before { font-size: 9px; }
  .surbhi-countdown .button { font-size: 14px; }
}
