/*
 * main.css — Boston 2026 Philatelic Archive
 * Layout, header/hero, footer, buttons, theme toggle,
 * floating contact button, contact overlay, first-visit disclaimer panel.
 *
 * Depends on: theme.css (must be loaded first).
 */

/* ─────────────────────────────────────────────
   RESET / BOX MODEL
   ───────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Ensure the [hidden] attribute always wins over author display rules
   (e.g. .gallery{display:grid} would otherwise keep a hidden element visible). */
[hidden] {
  display: none !important;
}

/* ─────────────────────────────────────────────
   PAGE LAYOUT
   ───────────────────────────────────────────── */
.page-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: var(--space-6);
}

@media (max-width: 640px) {
  .container {
    padding-inline: var(--space-4);
  }
}

/* ─────────────────────────────────────────────
   SKIP LINK (accessibility)
   ───────────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  z-index: calc(var(--z-modal) + 10);
  padding: var(--space-2) var(--space-4);
  background: var(--color-accent-gold);
  color: var(--color-text-inverse);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: var(--space-2);
  outline: 2px solid var(--color-text-inverse);
  outline-offset: 2px;
}

/* ─────────────────────────────────────────────
   SITE HEADER — sticky
   ───────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  background-color: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.2);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding-block: var(--space-3);
}

/* Logo / branding */
.site-header__brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  flex: 1;
  min-width: 0;
}

.site-header__logo {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  color: var(--color-accent-gold);
}

.site-header__text {
  min-width: 0;
}

.site-header__title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.2;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.site-header__subtitle {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.3;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Theme toggle button */
.btn-theme-toggle {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text-muted);
  cursor: pointer;
  transition:
    background-color 0.15s ease,
    border-color     0.15s ease,
    color            0.15s ease;
}

.btn-theme-toggle:hover {
  background-color: var(--color-hover-overlay);
  border-color: var(--color-accent-gold);
  color: var(--color-accent-gold);
}

.btn-theme-toggle:focus-visible {
  outline: 2px solid var(--color-focus-ring);
  outline-offset: 3px;
}

.btn-theme-toggle svg {
  width: 20px;
  height: 20px;
  transition: none; /* override global */
}

/* Show only the relevant icon */
[data-theme="dark"]  .icon-sun  { display: block; }
[data-theme="dark"]  .icon-moon { display: none;  }
[data-theme="light"] .icon-sun  { display: none;  }
[data-theme="light"] .icon-moon { display: block; }

/* ─────────────────────────────────────────────
   HERO SECTION
   ───────────────────────────────────────────── */
.hero {
  padding-block: var(--space-16) var(--space-10);
  text-align: center;
  border-bottom: 1px solid var(--color-border);
  background: linear-gradient(
    180deg,
    var(--color-surface) 0%,
    var(--color-bg) 100%
  );
}

.hero__stamp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  color: var(--color-accent-gold);
  margin-bottom: var(--space-5);
}

.hero__title {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -0.02em;
  margin-bottom: var(--space-2);
}

.hero__subtitle {
  font-family: var(--font-body);
  font-size: var(--text-xl);
  font-weight: 300;
  color: var(--color-accent-gold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: var(--space-6);
}

.hero__unofficial {
  display: inline-block;
  margin-bottom: var(--space-4);
  padding: 0.15em 0.7em;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
}

.hero__stats {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  letter-spacing: 0.04em;
}

@media (max-width: 768px) {
  .hero {
    padding-block: var(--space-10) var(--space-6);
  }

  .hero__title {
    font-size: var(--text-3xl);
  }

  .hero__subtitle {
    font-size: var(--text-lg);
  }
}

/* ─────────────────────────────────────────────
   GENERIC BUTTONS
   ───────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-5);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 500;
  line-height: 1.5;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background-color 0.15s ease,
    border-color     0.15s ease,
    color            0.15s ease,
    box-shadow       0.15s ease;
}

.btn:focus-visible {
  outline: 2px solid var(--color-focus-ring);
  outline-offset: 3px;
}

.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

/* Primary — gold fill */
.btn--primary {
  background-color: var(--color-accent-gold);
  color: var(--color-text-inverse);
  border-color: var(--color-accent-gold);
}

.btn--primary:hover {
  background-color: var(--color-accent-gold-light);
  border-color: var(--color-accent-gold-light);
}

/* Secondary — outlined */
.btn--secondary {
  background-color: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}

.btn--secondary:hover {
  border-color: var(--color-accent-gold);
  color: var(--color-accent-gold);
}

/* Ghost — no border */
.btn--ghost {
  background-color: transparent;
  color: var(--color-text-muted);
  border-color: transparent;
}

.btn--ghost:hover {
  background-color: var(--color-hover-overlay);
  color: var(--color-text);
}

/* Danger */
.btn--danger {
  background-color: transparent;
  color: #e05555;
  border-color: #e05555;
}

.btn--danger:hover {
  background-color: rgba(224, 85, 85, 0.12);
}

/* Icon button */
.btn--icon {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: var(--radius-md);
}

.btn--icon svg {
  width: 20px;
  height: 20px;
}

/* Small variant */
.btn--sm {
  padding: var(--space-1) var(--space-3);
  font-size: var(--text-sm);
}

/* Large variant */
.btn--lg {
  padding: var(--space-3) var(--space-8);
  font-size: var(--text-lg);
}

/* Spinner inside button */
.btn .spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

.btn.is-loading .spinner {
  display: block;
}

.btn.is-loading .btn-text {
  opacity: 0.6;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ─────────────────────────────────────────────
   FLOATING CONTACT BUTTON (envelope)
   ───────────────────────────────────────────── */
.btn-contact-float {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  z-index: var(--z-overlay);
  width: 52px;
  height: 52px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-accent-gold);
  color: var(--color-text-inverse);
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  box-shadow: var(--shadow-raised);
  transition:
    background-color 0.15s ease,
    transform        0.15s ease,
    box-shadow       0.15s ease;
}

.btn-contact-float:hover {
  background-color: var(--color-accent-gold-light);
  transform: scale(1.08);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
}

.btn-contact-float:focus-visible {
  outline: 2px solid var(--color-focus-ring);
  outline-offset: 3px;
}

.btn-contact-float svg {
  width: 24px;
  height: 24px;
  transition: none;
}

@media (max-width: 768px) {
  .btn-contact-float {
    width: 44px;
    height: 44px;
    bottom: var(--space-4);
    right: var(--space-4);
  }

  .btn-contact-float svg {
    width: 20px;
    height: 20px;
  }
}

/* ─────────────────────────────────────────────
   CONTACT OVERLAY — backdrop + panel
   ───────────────────────────────────────────── */
.contact-backdrop {
  position: fixed;
  inset: 0;
  z-index: var(--z-overlay);
  background-color: rgba(0, 0, 0, 0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.contact-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.contact-panel {
  position: fixed;
  bottom: 0;
  right: 0;
  z-index: calc(var(--z-overlay) + 1);
  width: min(460px, 100vw);
  max-height: 90vh;
  overflow-y: auto;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  box-shadow: var(--shadow-modal);
  padding: var(--space-6);
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (min-width: 640px) {
  .contact-panel {
    bottom: var(--space-6);
    right: var(--space-6);
    border-radius: var(--radius-xl);
    transform: translateY(calc(100% + var(--space-6)));
  }
}

.contact-panel.is-open {
  transform: translateY(0);
}

.contact-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-4);
}

.contact-panel__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--color-text);
  margin: 0;
}

.contact-panel__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text-muted);
  cursor: pointer;
}

.contact-panel__close:hover {
  border-color: var(--color-accent-gold);
  color: var(--color-accent-gold);
}

.contact-panel__intro {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  margin-bottom: var(--space-5);
}

/* Contact form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.form-field label {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text);
  letter-spacing: 0.02em;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: var(--space-2) var(--space-3);
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition:
    border-color 0.15s ease,
    box-shadow   0.15s ease;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--color-accent-gold);
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.18);
}

.form-field textarea {
  min-height: 100px;
  resize: vertical;
}

.form-field .field-error {
  font-size: var(--text-xs);
  color: #e05555;
}

.contact-form__actions {
  display: flex;
  gap: var(--space-3);
  justify-content: flex-end;
  margin-top: var(--space-2);
}

.contact-form__status {
  font-size: var(--text-sm);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  display: none;
}

.contact-form__status.is-success {
  display: block;
  color: #4caf76;
  background: rgba(76, 175, 118, 0.12);
  border: 1px solid rgba(76, 175, 118, 0.3);
}

.contact-form__status.is-error {
  display: block;
  color: #e05555;
  background: rgba(224, 85, 85, 0.10);
  border: 1px solid rgba(224, 85, 85, 0.3);
}

/* ─────────────────────────────────────────────
   DISCLAIMER PANEL — first-visit collapsible
   ───────────────────────────────────────────── */
/* First-visit disclaimer: hidden until JS adds .is-open, then a floating modal. */
.disclaimer-banner {
  display: none;
}

.disclaimer-banner.is-open {
  display: flex;
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(2px);
}

.disclaimer-banner__inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-4);
  max-width: 540px;
  max-height: 85vh;
  overflow-y: auto;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-modal);
  padding: var(--space-6);
}

.disclaimer-banner__inner .disclaimer-banner__dismiss {
  align-self: flex-end;
}

.disclaimer-banner__content {
  flex: 1;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
}

.disclaimer-banner__content strong {
  color: var(--color-text);
}

.disclaimer-banner__content a {
  color: var(--color-accent-gold);
}

.disclaimer-banner__dismiss {
  flex-shrink: 0;
  padding: var(--space-1) var(--space-3);
  font-size: var(--text-sm);
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text-muted);
  cursor: pointer;
  white-space: nowrap;
  transition:
    border-color 0.15s ease,
    color        0.15s ease;
}

.disclaimer-banner__dismiss:hover {
  border-color: var(--color-accent-gold);
  color: var(--color-accent-gold);
}

/* ─────────────────────────────────────────────
   FOOTER
   ───────────────────────────────────────────── */
.site-footer {
  background-color: var(--color-surface);
  border-top: 1px solid var(--color-border);
  padding-block: var(--space-10);
  margin-top: var(--space-16);
}

.site-footer__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  align-items: start;
}

@media (max-width: 768px) {
  .site-footer__inner {
    grid-template-columns: 1fr;
  }
}

.site-footer__disclaimer {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
}

.site-footer__disclaimer h3 {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-3);
}

.site-footer__disclaimer a {
  color: var(--color-accent-gold);
}

.site-footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.site-footer__thanks {
  margin-bottom: var(--space-5);
}
.site-footer__thanks h3 {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-2);
}
.site-footer__thanks p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
}

.site-footer__credits {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-accent-gold);
  letter-spacing: 0.02em;
  line-height: 1.2;
  margin: 0;
}
.site-footer__credits-sub {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  font-style: italic;
  line-height: 1.2;
  margin: 0 0 var(--space-4);
}

.site-footer__links-heading {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-2);
}

.site-footer__nav {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.site-footer__nav a {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-decoration: none;
}

.site-footer__nav a:hover {
  color: var(--color-accent-gold);
  text-decoration: underline;
}

.site-footer__copyright {
  margin-top: var(--space-8);
  padding-top: var(--space-5);
  border-top: 1px solid var(--color-border);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-align: center;
}

/* ─────────────────────────────────────────────
   FORM UTILITIES
   ───────────────────────────────────────────── */
.input {
  width: 100%;
  padding: var(--space-2) var(--space-3);
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.input:focus {
  outline: none;
  border-color: var(--color-accent-gold);
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.18);
}

.input::placeholder {
  color: var(--color-text-muted);
  opacity: 0.7;
}

select.input {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238b8a8e' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--space-3) center;
  padding-right: var(--space-8);
}

/* Checkbox / radio */
.checkbox-label,
.radio-label {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  cursor: pointer;
  font-size: var(--text-sm);
  color: var(--color-text);
  user-select: none;
}

.checkbox-label input[type="checkbox"],
.radio-label input[type="radio"] {
  width: 16px;
  height: 16px;
  accent-color: var(--color-accent-gold);
  cursor: pointer;
}

/* ─────────────────────────────────────────────
   INFO BUTTON + POPUP (medals / prizes, FIP)
   ───────────────────────────────────────────── */
.info-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  margin-left: 0.35em;
  padding: 0;
  font-family: var(--font-display);
  font-size: 12px;
  font-style: italic;
  font-weight: 700;
  line-height: 1;
  color: var(--color-accent-gold);
  background: transparent;
  border: 1.5px solid var(--color-accent-gold);
  border-radius: 50%;
  cursor: pointer;
  vertical-align: middle;
  transition: background-color 0.15s, color 0.15s;
}
.info-btn:hover { background: var(--color-accent-gold); color: var(--color-text-inverse); }

.info-overlay {
  position: fixed;
  inset: 0;
  z-index: calc(var(--z-modal) + 5);
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(2px);
}
.info-overlay.open { display: flex; }

.info-panel {
  width: min(480px, 100%);
  max-height: 86vh;
  overflow-y: auto;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-modal);
}
.info-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--color-border);
}
.info-panel__title { font-family: var(--font-display); font-size: var(--text-xl); margin: 0; }
.info-panel__close {
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text-muted);
  cursor: pointer;
}
.info-panel__close:hover { border-color: var(--color-accent-gold); color: var(--color-accent-gold); }
.info-panel__body { padding: var(--space-5); font-size: var(--text-sm); line-height: var(--leading-relaxed); color: var(--color-text); }
.info-panel__body p { margin-bottom: var(--space-3); color: var(--color-text-muted); }
.info-panel__body strong { color: var(--color-text); }

.info-scale {
  list-style: none;
  display: grid;
  gap: var(--space-2);
  margin: var(--space-3) 0;
}
.info-scale li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}
.info-scale li span:last-child { font-family: var(--font-mono); color: var(--color-text); }

.info-prizes {
  list-style: none;
  display: grid;
  gap: var(--space-2);
  margin: var(--space-3) 0;
}
.info-prizes li { color: var(--color-text); }

/* ─────────────────────────────────────────────
   TOAST / NOTIFICATIONS
   ───────────────────────────────────────────── */
.toast-container {
  position: fixed;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  pointer-events: none;
}

.toast {
  padding: var(--space-3) var(--space-5);
  background-color: var(--color-surface-raised);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-modal);
  font-size: var(--text-sm);
  color: var(--color-text);
  white-space: nowrap;
  animation: toastIn 0.25s ease forwards;
}

.toast--success { border-color: rgba(76, 175, 118, 0.5); }
.toast--error   { border-color: rgba(224, 85, 85, 0.5);  }

@keyframes toastIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0);    }
}

/* ─────────────────────────────────────────────
   LOADING SKELETON
   ───────────────────────────────────────────── */
.skeleton {
  background: linear-gradient(
    90deg,
    var(--color-surface)        25%,
    var(--color-surface-raised) 50%,
    var(--color-surface)        75%
  );
  background-size: 400% 100%;
  animation: shimmer 1.4s ease infinite;
  border-radius: var(--radius-sm);
}

@keyframes shimmer {
  from { background-position: 100% 0; }
  to   { background-position:   0% 0; }
}

/* ─────────────────────────────────────────────
   MEDAL PILLS — CSS-only (no SVG needed)
   ───────────────────────────────────────────── */
.medal-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.15em 0.55em;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
  line-height: 1.5;
}

.medal-pill--lg { background: var(--color-medal-lg); color: var(--color-medal-text-lg); }
.medal-pill--g  { background: var(--color-medal-g);  color: var(--color-medal-text-g);  }
.medal-pill--lv { background: var(--color-medal-lv); color: var(--color-medal-text-lv); }
.medal-pill--v  { background: var(--color-medal-v);  color: var(--color-medal-text-v);  }
.medal-pill--ls { background: var(--color-medal-ls); color: var(--color-medal-text-ls); }
.medal-pill--s  { background: var(--color-medal-s);  color: var(--color-medal-text-s);  }
.medal-pill--lb { background: var(--color-medal-lb); color: var(--color-medal-text-lb); }
.medal-pill--b  { background: var(--color-medal-b);  color: var(--color-medal-text-b);  }

/* Special-prize badges */
.prize-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.1em 0.45em;
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  white-space: nowrap;
}

.prize-badge--sp   { background: var(--color-badge-sp);  }
.prize-badge--fel  { background: var(--color-badge-fel); }
.prize-badge--gpic { background: var(--color-badge-gp);  }
.prize-badge--gpnc { background: var(--color-badge-gp);  }

/* ─────────────────────────────────────────────
   SECTION BADGE
   ───────────────────────────────────────────── */
.section-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.1em 0.5em;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ─────────────────────────────────────────────
   FOCUS TRAP / ARIA HELPERS
   ───────────────────────────────────────────── */
[aria-hidden="true"] {
  pointer-events: none;
}

/* ─────────────────────────────────────────────
   PRINT
   ───────────────────────────────────────────── */
@media print {
  .site-header,
  .btn-contact-float,
  .contact-backdrop,
  .contact-panel,
  .disclaimer-banner {
    display: none !important;
  }

  body {
    font-size: 12pt;
    color: #000;
    background: #fff;
  }

  a {
    color: #000;
    text-decoration: underline;
  }
}
