/* Shared styles for public content pages */

.page-hero {
  position: relative;
  margin-bottom: 1.75rem;
  padding: 1.25rem 0 1.5rem;
  isolation: isolate;
}

.page-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -0.5rem -1rem 0;
  border-radius: calc(var(--radius) + 8px);
  background:
    radial-gradient(120% 90% at 0% 0%, color-mix(in srgb, var(--brand) 14%, transparent), transparent 55%),
    radial-gradient(90% 80% at 100% 20%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 50%);
  pointer-events: none;
}

.page-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset-inline: 0;
  bottom: 0;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--brand) 18%,
    var(--accent) 52%,
    var(--highlight) 78%,
    transparent
  );
  opacity: 0.7;
}

.page-eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--accent);
}

.page-section {
  margin-top: 2.25rem;
}

.page-section-head {
  max-width: 42rem;
  margin-bottom: 1.25rem;
}

.page-section-head h2 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.8vw, 1.75rem);
}

.page-section-head p {
  margin: 0;
  color: var(--ink-soft);
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0 0 1.25rem;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
}

.filter-chip:hover,
.filter-chip.is-active {
  color: #fff;
  background: var(--brand);
  border-color: var(--brand);
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.content-card {
  background:
    linear-gradient(
      160deg,
      color-mix(in srgb, var(--brand) 6%, var(--bg-elevated)),
      var(--bg-elevated)
    );
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem;
  box-shadow: var(--shadow);
  display: grid;
  gap: 0.55rem;
  transition: transform 0.2s ease, border-color 0.2s ease;
  overflow: hidden;
}

.content-card-image {
  width: calc(100% + 2.3rem);
  max-width: none;
  height: 11rem;
  object-fit: cover;
  margin: -1.15rem -1.15rem 0.25rem;
  border-radius: 0;
}

.content-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--brand) 35%, var(--line));
}

.content-card h2,
.content-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--ink);
}

.content-card p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.7;
}

.content-meta {
  display: inline-flex;
  width: fit-content;
  padding: 0.18rem 0.6rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--brand) 14%, transparent);
  color: var(--brand-strong);
  font-size: 0.8rem;
  font-weight: 700;
}

.content-kv {
  display: grid;
  gap: 0.35rem;
  margin-top: 0.35rem;
}

.content-kv div {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.45rem 0;
  border-top: 1px dashed var(--line);
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.content-kv strong {
  color: var(--ink);
  font-weight: 600;
}

.content-empty {
  background: var(--bg-elevated);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 1.2rem;
  color: var(--ink-soft);
}

.content-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-elevated);
  box-shadow: var(--shadow);
}

.content-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}

.content-table th,
.content-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--line);
  text-align: start;
}

.content-table th {
  background: color-mix(in srgb, var(--brand) 10%, var(--bg-elevated));
  color: var(--ink);
  font-size: 0.92rem;
}

.content-table tr:last-child td {
  border-bottom: 0;
}

.split-layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1.25rem;
  align-items: start;
}

.info-panel {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem;
  box-shadow: var(--shadow);
}

.info-panel h2 {
  margin: 0 0 0.65rem;
  font-size: 1.15rem;
  font-family: var(--font-display);
}

.info-panel ol,
.info-panel ul {
  margin: 0;
  padding-inline-start: 1.15rem;
  color: var(--ink-soft);
  line-height: 1.8;
}

.site-form {
  display: grid;
  gap: 0.9rem;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem;
  box-shadow: var(--shadow);
}

.site-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}

.site-form label {
  display: grid;
  gap: 0.35rem;
  font-weight: 600;
}

.site-form .full {
  grid-column: 1 / -1;
}

.site-form input,
.site-form select,
.site-form textarea {
  font: inherit;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  color: var(--ink);
}

.site-form button,
.btn-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 0.75rem 1.2rem;
  background: var(--brand);
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: var(--cursor-click);
  text-decoration: none;
  width: fit-content;
}

.btn-action.soft {
  background: color-mix(in srgb, var(--brand) 14%, var(--bg-elevated));
  color: var(--brand-strong);
}

.form-status {
  min-height: 1.4rem;
  color: var(--ink-soft);
}

.form-status.is-ok { color: var(--brand-strong); }
.form-status.is-err { color: #b42318; }

.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  margin-top: 0.35rem;
}

.video-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.faq-item details {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.95rem 1.05rem;
  margin-bottom: 0.75rem;
  box-shadow: var(--shadow);
}

.faq-item summary {
  cursor: var(--cursor-click);
  font-weight: 700;
  color: var(--ink);
}

.faq-item p {
  margin: 0.7rem 0 0;
  color: var(--ink-soft);
  line-height: 1.7;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.gallery-card {
  margin: 0;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.gallery-card-trigger {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: var(--cursor-zoom);
}

.gallery-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.gallery-card-trigger:hover img,
.gallery-card-trigger:focus-visible img {
  transform: scale(1.04);
}

.gallery-card-trigger:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: -2px;
}

.gallery-card figcaption {
  padding: 0.85rem 1rem;
}

.gallery-card h3 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
}

.gallery-card-desc {
  margin: 0.35rem 0 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

body.gallery-lightbox-open {
  overflow: hidden;
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.gallery-lightbox[hidden] {
  display: none;
}

.gallery-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 14, 11, 0.82);
  backdrop-filter: blur(4px);
}

.gallery-lightbox-shell {
  position: relative;
  z-index: 1;
  width: min(960px, 100%);
  max-height: min(92vh, 900px);
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.gallery-lightbox-stage {
  display: grid;
  place-items: center;
  min-height: 0;
  background:
    radial-gradient(700px 280px at 20% 0%, rgba(140, 0, 255, 0.12), transparent 60%),
    var(--bg-muted);
  padding: 1.25rem 3.5rem;
}

.gallery-lightbox-stage img {
  max-width: 100%;
  max-height: min(62vh, 560px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
}

.gallery-lightbox-meta {
  padding: 1rem 1.25rem 1.2rem;
  border-top: 1px solid var(--line);
  background: var(--bg-elevated);
}

.gallery-lightbox-count {
  margin: 0 0 0.35rem;
  color: var(--ink-soft);
  font-size: 0.82rem;
}

.gallery-lightbox-meta .content-meta {
  margin: 0 0 0.25rem;
}

.gallery-lightbox-meta h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  line-height: 1.35;
}

.gallery-lightbox-desc {
  margin: 0.55rem 0 0;
  color: var(--ink-soft);
  line-height: 1.7;
}

.gallery-lightbox-desc[hidden] {
  display: none;
}

.gallery-lightbox-close,
.gallery-lightbox-nav {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(18, 25, 22, 0.55);
  color: #fff;
  cursor: var(--cursor-click);
  transition: background 0.2s ease, transform 0.2s ease;
}

.gallery-lightbox-close:hover,
.gallery-lightbox-nav:hover,
.gallery-lightbox-close:focus-visible,
.gallery-lightbox-nav:focus-visible {
  background: rgba(18, 25, 22, 0.8);
  outline: none;
}

.gallery-lightbox-close {
  top: 0.75rem;
  right: 0.75rem;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  font-size: 1.5rem;
  line-height: 1;
}

[dir="rtl"] .gallery-lightbox-close {
  right: auto;
  left: 0.75rem;
}

.gallery-lightbox-nav {
  top: 42%;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  font-size: 1.7rem;
  line-height: 1;
}

.gallery-lightbox-prev {
  left: 0.7rem;
}

.gallery-lightbox-next {
  right: 0.7rem;
}

.gallery-lightbox-nav[hidden] {
  display: none;
}

@media (max-width: 720px) {
  .gallery-lightbox {
    padding: 0.5rem;
  }

  .gallery-lightbox-stage {
    padding: 2.75rem 0.85rem 0.85rem;
  }

  .gallery-lightbox-stage img {
    max-height: min(48vh, 420px);
  }

  .gallery-lightbox-nav {
    top: auto;
    bottom: 7.5rem;
    width: 2.4rem;
    height: 2.4rem;
  }

  .gallery-lightbox-meta {
    padding: 0.9rem 1rem 1rem;
  }
}

.results-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.85rem;
  margin: 1.1rem 0;
}

.results-stat {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
}

.results-stat span {
  display: block;
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.results-stat strong {
  display: block;
  margin-top: 0.25rem;
  font-size: 1.35rem;
  font-family: var(--font-display);
  color: var(--ink);
}

.day-block {
  margin-bottom: 1.35rem;
}

.day-block h2 {
  margin: 0 0 0.7rem;
  font-size: 1.15rem;
}

.quick-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.7rem;
  margin-top: 1rem;
}

.quick-link {
  display: block;
  text-decoration: none;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.85rem;
  color: var(--ink);
  font-weight: 600;
}

.quick-link:hover {
  color: var(--brand-strong);
  border-color: color-mix(in srgb, var(--brand) 40%, var(--line));
}

@media (max-width: 900px) {
  .split-layout,
  .site-form-grid {
    grid-template-columns: 1fr;
  }

  .nav-desktop .nav-list { gap: 0.1rem; }
  .nav-desktop .nav-link {
    padding: 0.35rem 0.55rem;
    font-size: 0.85rem;
  }
}
