/* ================================================================
   COUNTDOWN ANNOUNCEMENT BAR
   ----------------------------------------------------------------
   A medium dark "exhibit" bar that sits above the nav row (inside
   #navbar, so it reveals with the header) and counts down to the next
   event. Uses the theme's own tokens for exact palette/type parity.
   ================================================================ */

:root { --shn-ann-h: 48px; }

.shn-ann {
  position: relative;
  width: 100%;
  background:
    radial-gradient(120% 180% at 82% -40%, rgba(27, 68, 54, 0.55), transparent 60%),
    linear-gradient(90deg, var(--ink-950) 0%, var(--pine-900) 52%, var(--ink-950) 100%);
  border-bottom: 1px solid rgba(218, 190, 134, 0.24);
  color: var(--on-dark);
}
.shn-ann::before {
  content: '';
  position: absolute;
  inset-block-start: 0;
  inset-inline: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold-leaf), transparent);
  opacity: 0.5;
}

.shn-ann__inner {
  max-width: var(--maxw-header);
  margin-inline: auto;
  padding-inline: var(--gutter);
  min-height: var(--shn-ann-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding-block: 7px;
}

/* Lead — spark + optional edition eyebrow + conference title */
.shn-ann__lead {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
}
.shn-ann__spark { color: var(--gold-leaf); font-size: 0.8rem; line-height: 1; transform: translateY(1px); }
.shn-ann__eyebrow {
  flex: none;
  font-family: var(--ff-ui);
  font-size: 0.80rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--on-dark-gold);
}
.shn-ann__title {
  font-family: var(--ff-display);
  font-size: 1.06rem;
  font-weight: 400;
  letter-spacing: 0.3px;
  color: var(--paper);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Countdown figures */
.shn-ann__count { display: inline-flex; align-items: center; gap: 12px; flex: none; }
.shn-ann__unit { display: inline-flex; flex-direction: column; align-items: center; gap: 2px; min-width: 30px; }
.shn-ann__num {
  font-family: var(--ff-ui);
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1;
  color: var(--gold-leaf);
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum' 1;
}
.shn-ann__lbl {
  font-family: var(--ff-ui);
  font-size: 0.52rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--on-dark-dim);
}
.shn-ann__sep {
  width: 4px;
  height: 4px;
  background: var(--gold);
  border-radius: 50%;
  transform: rotate(45deg) translateY(-3px);
  opacity: 0.7;
}

/* CTA — compact on-dark button */
.shn-ann__cta {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 18px;
  border: 1px solid rgba(218, 190, 134, 0.5);
  color: var(--gold-leaf);
  font-family: var(--ff-ui);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: background 220ms var(--ease), color 220ms var(--ease), border-color 220ms var(--ease);
}
.shn-ann__cta svg { width: 14px; height: 14px; transition: transform 220ms var(--ease); }
.shn-ann__cta:hover { background: var(--gold-leaf); border-color: var(--gold-leaf); color: var(--ink-950); }
.shn-ann__cta:hover svg { transform: translateX(4px); }
.shn-ann__cta:focus-visible { outline: 2px solid var(--gold-leaf); outline-offset: 3px; }

/* Hidden once the event date has passed (countdown.js also drops the body flag) */
.shn-ann--done { display: none; }


/* ── Responsive ── */
@media (max-width: 1160px) { :root { --shn-ann-h: 48px; } }

@media (max-width: 900px) {
  .shn-ann__inner { gap: 16px; }
  .shn-ann__eyebrow { display: none; }
  .shn-ann__title { font-size: 0.98rem; }
  .shn-ann__count { gap: 9px; }

  /* Reserve the taller fixed header on pages whose top clearance is tight. */
  body.has-announcement .news,
  body.has-announcement .event-head { padding-top: calc(118px + var(--shn-ann-h)); }
  body.has-announcement .contact,
  body.has-announcement .ab-intro { padding-top: calc(116px + var(--shn-ann-h)); }
}

@media (max-width: 600px) {
  :root { --shn-ann-h: 72px; }

  /* Title wraps to its own row; the countdown + View Details share the row
     below. Keeps the button (as requested) while staying compact. */
  .shn-ann__inner { flex-wrap: wrap; justify-content: center; gap: 7px 14px; padding-block: 9px; text-align: center; }
  .shn-ann__lead { flex-basis: 100%; justify-content: center; }
  .shn-ann__title { white-space: normal; font-size: 0.92rem; line-height: 1.2; }
  .shn-ann__count { gap: 8px; }
  .shn-ann__unit { min-width: 26px; }
  .shn-ann__cta { padding: 6px 13px; font-size: 0.58rem; }

  body.has-announcement .news,
  body.has-announcement .event-head { padding-top: calc(100px + var(--shn-ann-h)); }
}
