/* static-mirror additions */

/* mobile menu (replaces the Next.js client menu) */
.soc-menu {
  position: fixed;
  inset: 0;
  z-index: 950;
  display: flex;
  flex-direction: column;
  background: rgba(0, 0, 0, 0.97);
  color: #fff;
  padding: 96px 32px 48px;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}

.soc-menu[data-open="true"] {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.soc-menu__close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 0;
  color: #fff;
  cursor: pointer;
}

.soc-menu__nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.soc-menu__nav a {
  font-family: GaramondStd, Georgia, serif;
  font-size: 30px;
  line-height: 1.1;
  letter-spacing: 0.02em;
  color: #fff;
  text-decoration: none;
  text-transform: uppercase;
}

.soc-menu__nav a:hover {
  opacity: 0.65;
}

.soc-menu__sep {
  height: 1px;
  background: rgba(255, 255, 255, 0.2);
  margin: 26px 0;
}

.soc-menu__sub {
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-family: Gotham, sans-serif;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

.soc-menu__sub a {
  color: inherit;
  text-decoration: none;
}

.soc-menu__sub a:hover {
  color: #fff;
}

body.soc-menu-locked {
  overflow: hidden;
}

/* events gallery lightbox */
.soc-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(4px);
  color: #fff;
}

.soc-lightbox[data-open="true"] {
  display: block;
}

.soc-lightbox__close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 10;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  cursor: pointer;
  backdrop-filter: blur(4px);
}

.soc-lightbox__close:hover,
.soc-lightbox__arrow:hover {
  background: rgba(0, 0, 0, 0.75);
}

.soc-lightbox__info {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 10;
  max-width: calc(100% - 8rem);
}

.soc-lightbox__title {
  margin: 0 0 4px;
  font-family: GaramondStd, Georgia, serif;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.25;
}

.soc-lightbox__meta {
  margin: 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}

.soc-lightbox__count {
  margin: 4px 0 0;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
}

.soc-lightbox__stage {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 72px 16px;
}

.soc-lightbox__img {
  max-width: 90vw;
  max-height: 78vh;
  width: auto;
  height: auto;
  object-fit: contain;
}

.soc-lightbox__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  cursor: pointer;
  backdrop-filter: blur(4px);
}

.soc-lightbox__arrow--prev {
  left: 8px;
}

.soc-lightbox__arrow--next {
  right: 8px;
}

@media (min-width: 768px) {
  .soc-lightbox__close {
    top: 32px;
    right: 32px;
  }
  .soc-lightbox__info {
    top: 32px;
    left: 32px;
  }
  .soc-lightbox__title {
    font-size: 24px;
  }
  .soc-lightbox__meta {
    font-size: 16px;
  }
  .soc-lightbox__arrow--prev {
    left: 16px;
  }
  .soc-lightbox__arrow--next {
    right: 16px;
  }
}

/* forms without a backend in the static copy */
.soc-form-note {
  grid-column: 1 / -1;
  margin: 0;
  padding: 12px 16px;
  border: 1px solid #ecc76f;
  background: rgba(236, 199, 111, 0.08);
  color: #ecc76f;
  font-family: Gotham, sans-serif;
  font-size: 13px;
  line-height: 1.5;
}

.soc-form-note a {
  color: inherit;
  text-decoration: underline;
}

/* horizontal past-events strip */
.soc-carousel {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.soc-carousel::-webkit-scrollbar {
  display: none;
}

/* SPA route change: fallback for browsers without the View Transitions API
   (the router adds .soc-enter for one frame batch after the body swap) */
@keyframes soc-enter {
  from { opacity: 0; }
  to { opacity: 1; }
}

body.soc-enter {
  animation: soc-enter 0.26s ease both;
}

@media (prefers-reduced-motion: reduce) {
  body.soc-enter {
    animation: none;
  }
}

/* ---------------------------------------------------------------- *
 * homepage dwell widgets (dwell.js)
 * ---------------------------------------------------------------- */

/* reading progress */
.soc-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 940;
  height: 2px;
  width: 0;
  background: #ecc76f;
  pointer-events: none;
}

/* next-event countdown */
.soc-cd {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
  margin: 0 auto 28px;
  padding: 18px 22px;
  border: 1px solid rgba(236, 199, 111, 0.28);
  background: linear-gradient(180deg, rgba(236, 199, 111, 0.07), rgba(236, 199, 111, 0));
  font-family: Gotham, sans-serif;
}

.soc-cd__head {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.soc-cd__label {
  font-size: 10px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: #ecc76f;
}

.soc-cd__name {
  font-family: GaramondStd, Georgia, serif;
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #fff;
}

.soc-cd__date {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.soc-cd__clock {
  display: flex;
  gap: 8px;
}

.soc-cd__unit {
  min-width: 66px;
  padding: 8px 6px 7px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.03);
}

.soc-cd__unit b {
  display: block;
  font-family: "SFMono-Regular", ui-monospace, Menlo, Consolas, monospace;
  font-size: 24px;
  font-weight: 500;
  line-height: 1;
  color: #fff;
  font-variant-numeric: tabular-nums;
}

.soc-cd__unit em {
  display: block;
  margin-top: 6px;
  font-style: normal;
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

.soc-cd[data-done="true"] .soc-cd__unit b {
  color: #ecc76f;
}

@media (max-width: 720px) {
  .soc-cd {
    padding: 14px 14px;
    gap: 14px;
  }

  .soc-cd__name {
    font-size: 18px;
  }

  .soc-cd__clock {
    gap: 6px;
    width: 100%;
  }

  .soc-cd__unit {
    flex: 1 1 0;
    min-width: 0;
    padding: 7px 4px;
  }

  .soc-cd__unit b {
    font-size: 20px;
  }
}

/* gallery card affordance */
.soc-shot-hint {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 5;
  padding: 5px 9px;
  border: 1px solid rgba(236, 199, 111, 0.6);
  background: rgba(0, 0, 0, 0.45);
  color: #ecc76f;
  font-family: Gotham, sans-serif;
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}

[data-soc-gallery]:hover .soc-shot-hint,
[data-soc-gallery]:focus-visible .soc-shot-hint {
  opacity: 1;
  transform: none;
}

[data-soc-gallery]:focus-visible {
  outline: 1px solid #ecc76f;
  outline-offset: 2px;
}

/* lightbox autoplay progress */
.soc-lightbox__progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
  height: 2px;
  background: rgba(255, 255, 255, 0.14);
}

.soc-lightbox__progress span {
  display: block;
  height: 100%;
  width: 0;
  background: #ecc76f;
}

/* field notes */
.soc-notes__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 26px;
}

@media (min-width: 900px) {
  .soc-notes__grid {
    grid-template-columns: 1fr 1fr;
    gap: 18px 24px;
  }
}

.soc-note {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #050505;
  transition: border-color 0.3s ease;
}

.soc-note:hover,
.soc-note[data-open="true"] {
  border-color: rgba(236, 199, 111, 0.38);
}

.soc-note__head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  width: 100%;
  padding: 14px;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.soc-note__thumb {
  flex: 0 0 96px;
  height: 74px;
  overflow: hidden;
  background: #111;
}

.soc-note__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.soc-note:hover .soc-note__thumb img {
  transform: scale(1.06);
}

.soc-note__text {
  min-width: 0;
}

.soc-note__kicker {
  display: block;
  font-family: Gotham, sans-serif;
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #ecc76f;
}

.soc-note__title {
  display: block;
  margin: 7px 0 5px;
  font-family: GaramondStd, Georgia, serif;
  font-size: 18px;
  line-height: 1.25;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #fff;
}

.soc-note__lede {
  display: block;
  font-family: Gotham, sans-serif;
  font-size: 12px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.6);
}

.soc-note__plus {
  flex: 0 0 auto;
  margin-left: auto;
  padding-left: 8px;
  font-family: Gotham, sans-serif;
  font-size: 20px;
  line-height: 1;
  color: #ecc76f;
  transition: transform 0.35s ease;
}

.soc-note[data-open="true"] .soc-note__plus {
  transform: rotate(45deg);
}

.soc-note__body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s ease;
}

.soc-note__inner {
  padding: 0 16px 18px;
  font-family: Gotham, sans-serif;
  font-size: 13px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.78);
}

.soc-note__inner p {
  margin: 0 0 11px;
}

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

/* membership quiz */
.soc-quiz {
  margin-top: 8px;
  padding: 26px 24px;
  border: 1px solid rgba(236, 199, 111, 0.25);
  background: linear-gradient(180deg, rgba(236, 199, 111, 0.06), rgba(255, 255, 255, 0));
  font-family: Gotham, sans-serif;
}

.soc-quiz__bar {
  height: 2px;
  margin: 18px 0 24px;
  background: rgba(255, 255, 255, 0.1);
}

.soc-quiz__bar span {
  display: block;
  height: 100%;
  width: 0;
  background: #ecc76f;
  transition: width 0.35s ease;
}

.soc-quiz__step,
.soc-quiz__result {
  display: none;
}

.soc-quiz__step[data-active="true"],
.soc-quiz__result[data-active="true"] {
  display: block;
}

.soc-quiz__q {
  margin: 0 0 16px;
  font-family: GaramondStd, Georgia, serif;
  font-size: 22px;
  line-height: 1.25;
  color: #fff;
}

.soc-quiz__opts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.soc-quiz__opt {
  padding: 11px 16px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: transparent;
  color: rgba(255, 255, 255, 0.85);
  font-family: Gotham, sans-serif;
  font-size: 13px;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: border-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.soc-quiz__opt:hover {
  border-color: #ecc76f;
  color: #ecc76f;
  transform: translateY(-1px);
}

.soc-quiz__back {
  margin-top: 18px;
  padding: 0;
  border: 0;
  background: none;
  color: rgba(255, 255, 255, 0.45);
  font-family: Gotham, sans-serif;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
}

.soc-quiz__back:hover {
  color: #ecc76f;
}

.soc-quiz__form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.soc-quiz__input {
  flex: 1 1 240px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: #0b0b0b;
  color: #fff;
  font-family: Gotham, sans-serif;
  font-size: 14px;
}

.soc-quiz__input:focus {
  outline: none;
  border-color: #ecc76f;
}

.soc-quiz__submit {
  padding: 12px 22px;
  border: 0;
  background: #ecc76f;
  color: #000;
  font-family: Gotham, sans-serif;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.25s ease;
}

.soc-quiz__submit:hover {
  background: #f3d78d;
}

.soc-quiz__recap {
  margin: 16px 0 0;
  font-size: 11px;
  letter-spacing: 0.05em;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.55);
}

.soc-quiz__note {
  margin: 14px 0 0;
  font-size: 12px;
  line-height: 1.6;
  color: #ecc76f;
}

.soc-quiz__note:empty {
  display: none;
}

/* ---------------------------------------------------------------- *
 * language picker + RTL baseline
 * ---------------------------------------------------------------- */

.soc-lang {
  position: relative;
  display: flex;
  align-items: center;
}

.soc-lang__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  font-family: Gotham, sans-serif;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.25s ease, color 0.25s ease;
}

.soc-lang__btn:hover {
  border-color: #ecc76f;
  color: #ecc76f;
}

.soc-lang__menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 20;
  display: none;
  min-width: 168px;
  max-height: 60vh;
  overflow: auto;
  padding: 6px;
  border: 1px solid rgba(236, 199, 111, 0.35);
  background: #0b0b0b;
}

.soc-lang[data-open="true"] .soc-lang__menu {
  display: block;
}

.soc-lang__item {
  display: block;
  width: 100%;
  padding: 9px 12px;
  border: 0;
  background: none;
  color: rgba(255, 255, 255, 0.82);
  font-family: Gotham, sans-serif;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
  white-space: nowrap;
}

.soc-lang__item:hover,
.soc-lang__item[aria-selected="true"] {
  background: rgba(236, 199, 111, 0.12);
  color: #ecc76f;
}

html[dir="rtl"] body {
  direction: rtl;
}

html[dir="rtl"] .text-left {
  text-align: right;
}

html[dir="rtl"] .text-right {
  text-align: left;
}

html[dir="rtl"] .soc-lang__menu {
  right: auto;
  left: 0;
}

html[dir="rtl"] .soc-lang__item {
  text-align: right;
}

/* ---------------------------------------------------------------- *
 * membership form fields
 * the origin sets data-theme="dark" from a boot script so that
 * .bg-background resolves to black; this mirror dropped that script, so
 * the input inherited :root's light token (white) and the white text
 * vanished into it.
 * ---------------------------------------------------------------- */

.soc-register-card input:not([type="hidden"]):not([type="checkbox"]) {
  background-color: transparent;
  color: #fff;
}

.soc-register-card input::placeholder {
  color: rgba(255, 255, 255, 0.7);
  opacity: 1;
}

.soc-register-card input:not([type="hidden"]):not([type="checkbox"]):focus-visible {
  border-color: #ecc76f;
}

/* chrome paints autofilled fields its own yellow-white, which would
   hide the white text again */
.soc-register-card input:-webkit-autofill {
  -webkit-text-fill-color: #fff;
  -webkit-box-shadow: 0 0 0 1000px #000 inset;
  caret-color: #fff;
}
