/* =============================================
   NEOBRUTALISM DESIGN TOKENS
   Based on neobrutalism.dev (blue theme)
   ============================================= */

@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --nb-bg:         #dde8f8;
  --nb-main:       #88aaee;
  --nb-main-fg:    #000000;
  --nb-secondary:  #ffffff;
  --nb-foreground: #000000;
  --nb-border:     #000000;
  --nb-radius:     5px;
  --nb-shadow:     4px 4px 0px 0px #000;
  --nb-shadow-sm:  2px 2px 0px 0px #000;
}

/* =============================================
   BASE
   ============================================= */

*, *::before, *::after {
  box-sizing: border-box;
}

body {
  font-family: Inter, sans-serif;
  font-weight: 500;
  background-color: var(--nb-bg);
  color: var(--nb-foreground);
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
}

a {
  color: var(--nb-foreground);
}

a:hover {
  color: var(--nb-main);
}

hr {
  border-color: var(--nb-border);
  border-width: 2px;
  opacity: 1;
}

/* =============================================
   LAYOUT  (split-screen preserved)
   ============================================= */

@media (max-width: 767.98px) {
  .sticky-image {
    max-height: 50vw;
    overflow: hidden;
  }
  .sticky-image img {
    width: 100%;
    height: 50vw;
    object-fit: cover;
    object-position: center 25%;
  }
  .scrollable {
    border-left: none;
    border-top: 2px solid var(--nb-border);
  }
}

@media (min-width: 768px) {
  .sticky-image img {
    height: 100%;
    object-fit: cover;
  }
  .scrollable {
    height: 100vh;
    overflow-y: auto;
  }
}

.min-vh-85 {
  min-height: 85vh;
}

.honeypot {
  position: absolute;
  left: -9999px;
}

/* Right-side scrollable panel background */
.scrollable {
  background-color: var(--nb-secondary);
  border-left: 2px solid var(--nb-border);
}

/* =============================================
   NAVIGATION
   ============================================= */

.nb-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 2px solid var(--nb-border);
  margin-bottom: 1.5rem;
}

.nb-nav ul {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
  width: 100%;
}

.nb-nav li {
  flex: 1;
  text-align: center;
}

.nb-nav a {
  display: block;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--nb-foreground);
  padding: 0.35rem 0.5rem;
  transition: color 0.15s;
}

.nb-nav a:hover,
.nb-nav a.active {
  color: var(--nb-main);
}

/* =============================================
   FOOTER
   ============================================= */

.nb-footer {
  border-top: 2px solid var(--nb-border);
  margin-top: 3rem;
  padding: 1.25rem 0;
}

.nb-footer ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin: 0;
  padding: 0;
}

.nb-footer a {
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--nb-foreground);
  padding: 0.25rem 0.75rem;
  opacity: 0.6;
  transition: opacity 0.15s;
}

.nb-footer a:hover {
  opacity: 1;
}

/* =============================================
   BUTTONS
   ============================================= */

.nb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--nb-main);
  color: var(--nb-main-fg);
  border: 2px solid var(--nb-border);
  border-radius: var(--nb-radius);
  box-shadow: var(--nb-shadow);
  font-family: Inter, sans-serif;
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.625rem 1.5rem;
  cursor: pointer;
  transition: transform 0.1s ease-out, box-shadow 0.1s ease-out;
  user-select: none;
  touch-action: manipulation;
  max-width: 100%;
}

.nb-btn:hover,
.nb-btn:active {
  transform: translate(4px, 4px);
  box-shadow: none;
  color: var(--nb-foreground);
  text-decoration: none;
}

.nb-btn:focus-visible {
  outline: 2px solid var(--nb-border);
  outline-offset: 2px;
}

/* Full-width button variant */
.nb-btn-full {
  width: 100%;
}

/* Disabled */
.nb-btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
  transform: none;
  box-shadow: var(--nb-shadow);
}

/* =============================================
   FORM CONTROLS
   ============================================= */

.nb-label {
  font-weight: 700;
  font-size: 0.875rem;
  display: block;
  margin-bottom: 0.35rem;
}

.nb-input {
  width: 100%;
  background-color: var(--nb-secondary);
  border: 2px solid var(--nb-border);
  border-radius: var(--nb-radius);
  box-shadow: var(--nb-shadow-sm);
  font-family: Inter, sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 0.75rem;
  color: var(--nb-foreground);
  transition: box-shadow 0.1s, transform 0.1s;
}

.nb-input:focus {
  outline: 2px solid var(--nb-border);
  outline-offset: 2px;
  box-shadow: none;
  border-color: var(--nb-border);
}

.nb-input[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

textarea.nb-input {
  min-height: 120px;
  resize: vertical;
}

.nb-radio-group {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.nb-radio-option {
  flex: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background-color: var(--nb-secondary);
  border: 2px solid var(--nb-border);
  border-radius: var(--nb-radius);
  box-shadow: var(--nb-shadow-sm);
  padding: 0.55rem 0.75rem;
  font-family: Inter, sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  user-select: none;
  transition: background-color 0.1s, color 0.1s;
}

.nb-radio-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.nb-radio-option:has(input:checked) {
  background-color: var(--nb-main);
  color: var(--nb-main-fg);
}

.nb-radio-option:focus-within {
  outline: 2px solid var(--nb-border);
  outline-offset: 2px;
}

/* =============================================
   BADGES
   ============================================= */

.nb-badge,
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--nb-main);
  color: var(--nb-main-fg);
  border: 2px solid var(--nb-border);
  border-radius: var(--nb-radius);
  box-shadow: var(--nb-shadow-sm);
  font-family: Inter, sans-serif;
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
}

.badge.bg-danger,
.nb-badge-danger {
  background-color: #f87171;
  color: var(--nb-foreground);
}

.nb-badge-warning {
  background-color: #fb923c;
  color: var(--nb-foreground);
}

.nb-status-notice {
  margin: 0.75rem 0 1.25rem;
  padding: 0.75rem 1rem;
  border-radius: var(--nb-radius);
  border: 2px solid var(--nb-border);
  font-weight: 600;
  font-size: 0.925rem;
}

.nb-status-cancelled {
  background-color: #fef2f2;
  border-color: #f87171;
}

.nb-status-postponed {
  background-color: #fff7ed;
  border-color: #fb923c;
}

/* =============================================
   CARDS / BOXES
   ============================================= */

.nb-card {
  background-color: var(--nb-secondary);
  border: 2px solid var(--nb-border);
  border-radius: var(--nb-radius);
  box-shadow: var(--nb-shadow);
  padding: 1.25rem;
}

/* =============================================
   ACCORDION  (pure CSS via <details>/<summary>)
   ============================================= */

.nb-accordion {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.nb-accordion details {
  border: 2px solid var(--nb-border);
  border-radius: var(--nb-radius);
  box-shadow: var(--nb-shadow);
  overflow: hidden;
}

.nb-accordion summary {
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  gap: 1rem;
  user-select: none;
  background-color: var(--nb-main);
  color: var(--nb-main-fg);
}

.nb-accordion summary::-webkit-details-marker {
  display: none;
}

.nb-accordion summary::after {
  content: '+';
  font-size: 1.25rem;
  font-weight: 700;
  flex-shrink: 0;
  transition: transform 0.15s;
}

.nb-accordion details[open] > summary::after {
  content: '−';
}

.nb-accordion .nb-accordion-body {
  padding: 1rem;
  color: #333;
  line-height: 1.65;
}

.nb-accordion .nb-accordion-body p {
  margin-bottom: 0.75rem;
}

.nb-accordion .nb-accordion-body ol,
.nb-accordion .nb-accordion-body ul {
  padding-left: 1.25rem;
  margin-bottom: 0.75rem;
}

/* =============================================
   EVENT LIST ROWS
   ============================================= */

.nb-event-row {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.12);
  text-decoration: none;
  color: var(--nb-foreground);
  font-weight: 500;
}

.nb-event-date {
  font-weight: 700;
  font-size: 0.85rem;
  white-space: nowrap;
  min-width: 6rem;
}

.nb-event-title {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.nb-event-title-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nb-event-subtitle {
  font-size: 0.8rem;
  opacity: 0.6;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nb-event-status {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.2rem;
  flex-shrink: 0;
}

.nb-event-meta {
  font-size: 0.8rem;
  opacity: 0.6;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* =============================================
   DEFINITION LIST (event detail page)
   ============================================= */

.nb-dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.5rem 1.5rem;
  margin: 1.5rem 0;
}

.nb-dl dt {
  font-weight: 700;
  white-space: nowrap;
}

.nb-dl dd {
  margin: 0;
}

@media (max-width: 575.98px) {
  .nb-dl {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .nb-dl dt {
    margin-top: 0.85rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    opacity: 0.5;
    white-space: normal;
  }
  .nb-dl dt:first-child {
    margin-top: 0;
  }
  .nb-dl dd {
    margin-top: 0.1rem;
  }
}

/* =============================================
   PRESS ITEMS
   ============================================= */

.nb-press-item {
  border-bottom: 2px solid var(--nb-border);
  padding-bottom: 1.25rem;
  margin-bottom: 1.25rem;
}

.nb-press-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.25rem;
  gap: 1rem;
}

.nb-press-pub {
  font-weight: 700;
}

.nb-press-date {
  font-size: 0.8rem;
  opacity: 0.6;
  white-space: nowrap;
}

.nb-press-quote {
  border-left: 4px solid var(--nb-main);
  padding-left: 0.75rem;
  margin: 0.5rem 0 0;
  font-style: italic;
  opacity: 0.75;
}

/* =============================================
   TEAM GRID
   ============================================= */

.nb-team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.nb-team-card {
  text-decoration: none;
  color: var(--nb-foreground);
}

.nb-team-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border: 2px solid var(--nb-border);
  box-shadow: var(--nb-shadow);
  border-radius: var(--nb-radius);
  display: block;
}

.nb-team-card:hover img {
  transform: translate(4px, 4px);
  box-shadow: none;
}

.nb-team-card figcaption {
  margin-top: 0.5rem;
}

.nb-team-name {
  font-weight: 700;
}

.nb-team-role {
  font-size: 0.85rem;
  opacity: 0.6;
}

/* =============================================
   PHOTO GRID
   ============================================= */

.nb-photo-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin-top: 1rem;
}

@media (min-width: 576px) {
  .nb-photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 992px) {
  .nb-photo-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.nb-photo-grid-item {
  display: block;
}

.nb-photo-grid img {
  width: 100%;
  aspect-ratio: 3/2;
  object-fit: cover;
  border: 2px solid var(--nb-border);
  box-shadow: var(--nb-shadow-sm);
  border-radius: var(--nb-radius);
  display: block;
  cursor: pointer;
  transition: opacity 0.15s;
}

.nb-photo-grid img:hover {
  opacity: 0.85;
}

/* Lightbox */
#nb-lightbox {
  border: 2px solid rgba(255,255,255,0.15);
  border-radius: var(--nb-radius);
  background: #111;
  padding: 0;
  width: min(95vw, 1200px);
  max-height: 95dvh;
  overflow: hidden;
}

#nb-lightbox::backdrop {
  background: rgba(0, 0, 0, 0.92);
}

.nb-lb-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 2.5rem 3.5rem;
}

@media (max-width: 575.98px) {
  .nb-lb-inner {
    padding: 2rem 2.75rem;
  }
  #nb-lb-img {
    max-height: calc(95dvh - 5rem);
  }
}

.nb-lb-figure {
  margin: 0;
  text-align: center;
  min-width: 0;
}

#nb-lb-img {
  max-width: 100%;
  max-height: calc(95dvh - 6rem);
  object-fit: contain;
  display: block;
  border-radius: var(--nb-radius);
}

#nb-lb-caption {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.8rem;
  margin-top: 0.5rem;
}

.nb-lb-close {
  position: absolute;
  top: 0.4rem;
  right: 0.6rem;
  background: none;
  border: none;
  color: rgba(255,255,255,0.7);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.1rem 0.4rem;
}

.nb-lb-close:hover { color: #fff; }

.nb-lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--nb-radius);
  color: rgba(255,255,255,0.8);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.2rem 0.5rem;
  transition: background 0.15s;
}

.nb-lb-nav:hover:not(:disabled) { background: rgba(255,255,255,0.18); }
.nb-lb-nav:disabled { opacity: 0.2; cursor: default; }
.nb-lb-prev { left: 0.4rem; }
.nb-lb-next { right: 0.4rem; }

/* =============================================
   HOME LINKS GRID
   ============================================= */

.nb-links-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 2rem 0;
}

@media (min-width: 576px) {
  .nb-links-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.nb-link-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
  color: var(--nb-foreground);
  background-color: var(--nb-secondary);
  border: 2px solid var(--nb-border);
  border-radius: var(--nb-radius);
  box-shadow: var(--nb-shadow);
  padding: 1.25rem 0.75rem;
  font-weight: 700;
  font-size: 0.85rem;
  transition: transform 0.1s ease-out, box-shadow 0.1s ease-out;
}

.nb-link-tile:hover {
  transform: translate(4px, 4px);
  box-shadow: none;
}

.nb-link-tile svg {
  display: block;
  margin-bottom: 0.5rem;
}

/* =============================================
   ALERTS
   ============================================= */

.alert {
  border: 2px solid var(--nb-border);
  border-radius: var(--nb-radius);
  box-shadow: var(--nb-shadow);
  font-weight: 500;
}

.alert-success {
  background-color: #bbf7d0;
  color: var(--nb-foreground);
}

.alert-warning {
  background-color: #fef08a;
  color: var(--nb-foreground);
}

/* =============================================
   BREADCRUMB / BACK LINK
   ============================================= */

.nb-back {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--nb-foreground);
  margin-bottom: 1rem;
  opacity: 0.6;
}

.nb-back:hover {
  opacity: 1;
}

/* =============================================
   TEXT UTILITIES
   ============================================= */

.text-muted {
  color: #666 !important;
}

.nb-section-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.5;
  margin-bottom: 0.25rem;
}
