/*
Theme Name: Straat Code
Theme URI: https://straatcode.nl
Author: BlackSunz / Enterprise Upgrade
Description: Enterprise-grade interactive WordPress theme for the Straat Code campaign — Jongeren tegen geweld. Mobile-first, bold black & gold street aesthetic with modern UI/UX.
Version: 4.6.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: straat-code
*/

/* ==========================================================================
   Design Tokens
   ========================================================================== */
:root {
  --black: #080808;
  --panel: #141414;
  --panel-2: #1c1c1c;
  --panel-3: #242424;
  --yellow: #f2bf00;
  --yellow-hover: #ffd84d;
  --yellow-dim: rgba(242, 191, 0, 0.15);
  --orange: #c45a12;
  --white: #f7f4eb;
  --muted: #a8a399;
  --line: #2e2b26;
  --line-strong: #3d3a33;
  --success: #2ecc71;

  --font-display: Impact, "Arial Narrow", "Helvetica Condensed", sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.45);
  --shadow-yellow: 0 8px 24px rgba(242, 191, 0, 0.25);

  --header-h: 60px;
  --touch: 48px; /* minimum touch target */
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  --gutter: 16px;
}

/* ==========================================================================
   Base — Mobile First
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--transition); }
button { font-family: inherit; }

:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--yellow);
  color: var(--black);
  padding: 12px 20px;
  font-weight: 800;
  z-index: 1000;
  border-radius: var(--radius-sm);
}
.skip-link:focus { top: 16px; }

/* ==========================================================================
   Layout
   ========================================================================== */
.wrap {
  width: min(1180px, calc(100% - (var(--gutter) * 2)));
  margin-inline: auto;
}

.display {
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 0.92;
  letter-spacing: 0.01em;
}

.label {
  color: var(--yellow);
  font-weight: 800;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: 0.4rem;
}

.muted { color: var(--muted); }

.lead {
  font-size: 1.05rem;
  color: #d4d0c6;
  max-width: 720px;
  line-height: 1.65;
}

/* ==========================================================================
   Header & Nav — Mobile First
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(8, 8, 8, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 3px solid var(--yellow);
}

.site-header.is-scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.nav {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.brand span { color: var(--yellow); }

.menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: var(--touch);
  min-height: var(--touch);
  background: var(--panel-2);
  color: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0 14px;
}
.menu-toggle[aria-expanded="true"] {
  border-color: var(--yellow);
  background: var(--panel-3);
}

/* Mobile menu = full width dropdown */
nav { position: relative; }

.menu {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 2px);
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 10px;
  flex-direction: column;
  gap: 4px;
  box-shadow: var(--shadow);
  z-index: 50;
  max-height: 70vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.menu.is-open {
  display: flex;
  animation: fadeUp 0.22s ease-out;
}

.menu a {
  display: flex;
  align-items: center;
  min-height: var(--touch);
  font-size: 0.9rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
}
.menu a:hover,
.menu a:focus-visible,
.menu .current-menu-item > a {
  color: var(--yellow);
  background: var(--yellow-dim);
}

/* ==========================================================================
   Buttons — Mobile First (large touch targets)
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: var(--touch);
  padding: 12px 20px;
  background: var(--yellow);
  color: var(--black);
  border: 2px solid var(--yellow);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: transform 0.15s, background var(--transition), box-shadow var(--transition);
  text-align: center;
  line-height: 1.2;
  width: 100%; /* full width on mobile */
}

.btn:hover {
  background: var(--yellow-hover);
  border-color: var(--yellow-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-yellow);
}
.btn:active { transform: translateY(0); }

.btn.alt {
  background: transparent;
  color: var(--white);
  border-color: var(--line-strong);
}
.btn.alt:hover {
  border-color: var(--yellow);
  color: var(--yellow);
  background: var(--yellow-dim);
  box-shadow: none;
}

.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }

.btn-sm {
  min-height: 44px;
  padding: 10px 16px;
  font-size: 0.88rem;
  width: auto;
}

.actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
}

/* ==========================================================================
   Hero — Mobile First
   ========================================================================== */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border-bottom: 5px solid var(--yellow);
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.75) 50%, rgba(0,0,0,0.95) 100%),
    linear-gradient(90deg, rgba(0,0,0,0.7) 0%, transparent 70%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 48px 0 36px;
  max-width: 100%;
  animation: fadeUp 0.7s ease-out both;
}

.hero-tag {
  display: inline-block;
  background: var(--yellow);
  color: var(--black);
  padding: 6px 12px;
  font-weight: 900;
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  border-radius: 4px;
  margin-bottom: 10px;
}

.hero h1 {
  font-size: clamp(3rem, 15vw, 5.5rem);
  margin: 6px 0 10px;
  text-shadow: 3px 3px 0 #000;
}
.hero h1 span { color: var(--yellow); }

.hero-sub {
  font-size: clamp(1.2rem, 5vw, 1.8rem);
  margin-bottom: 12px;
}

.hero p {
  font-size: 1rem;
  max-width: 100%;
  margin-bottom: 4px;
}

.strap {
  background: var(--yellow);
  color: var(--black);
  padding: 14px 16px;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(0.95rem, 3.5vw, 1.25rem);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

/* ==========================================================================
   Sections
   ========================================================================== */
section { padding: 56px 0; }

.surface {
  background: var(--panel);
  border-block: 1px solid var(--line);
}

.grid2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

.title {
  font-size: clamp(2rem, 8vw, 3.2rem);
  margin: 0.15em 0 0.35em;
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Rules Accordion
   ========================================================================== */
.rules {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.rule {
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.rule.is-open {
  border-color: var(--yellow);
  box-shadow: 0 0 0 1px var(--yellow);
}

.rule-toggle {
  width: 100%;
  display: grid;
  grid-template-columns: 48px 1fr 36px;
  gap: 8px;
  align-items: center;
  text-align: left;
  background: none;
  color: var(--white);
  border: 0;
  padding: 14px 14px;
  min-height: var(--touch);
  cursor: pointer;
}

.rule-number {
  font-family: var(--font-display);
  font-size: 1.9rem;
  color: var(--yellow);
  line-height: 1;
}

.rule-title {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 4vw, 1.35rem);
  text-transform: uppercase;
  line-height: 1.15;
}

.rule-plus {
  font-size: 1.5rem;
  color: var(--yellow);
  transition: transform var(--transition);
  justify-self: end;
}
.rule.is-open .rule-plus { transform: rotate(45deg); }

.rule-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--transition-slow);
}
.rule.is-open .rule-body { grid-template-rows: 1fr; }

.rule-body-inner {
  overflow: hidden;
  padding: 0 14px;
}
.rule.is-open .rule-body-inner {
  padding: 0 14px 18px 14px;
  border-top: 1px solid var(--line);
}

.rule-body p {
  margin: 0 0 10px;
  color: #d0cbc1;
  font-size: 0.95rem;
}

/* ==========================================================================
   Cycle
   ========================================================================== */
.cycle {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 28px 0;
}

.step {
  position: relative;
  background: var(--panel-2);
  border-top: 4px solid var(--yellow);
  padding: 20px 16px;
  border-radius: 0 0 var(--radius) var(--radius);
}
.step strong {
  font-family: var(--font-display);
  font-size: 1.3rem;
  text-transform: uppercase;
  display: block;
  margin-bottom: 4px;
}
.step:not(:last-child)::after {
  content: "↓";
  position: absolute;
  left: 50%;
  bottom: -18px;
  transform: translateX(-50%);
  font-size: 1.3rem;
  color: var(--yellow);
  z-index: 2;
}

.break {
  background: linear-gradient(135deg, var(--orange), #a84a10);
  color: var(--black);
  padding: 28px 20px;
  border-radius: var(--radius);
  margin-top: 8px;
}
.break h3 {
  margin: 0 0 8px;
  font-size: clamp(1.5rem, 6vw, 2.2rem);
}
.break p {
  margin: 0 0 16px;
  font-size: 1rem;
}

/* ==========================================================================
   Forms & Pledge
   ========================================================================== */
.sign-box {
  background: var(--panel);
  border: 2px solid var(--yellow);
  padding: 22px 18px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-yellow);
  position: relative;
  overflow: hidden;
}
.sign-box::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--yellow), var(--orange));
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.field {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
}
.field label {
  font-weight: 700;
  font-size: 0.9rem;
}
.field input,
.field textarea {
  width: 100%;
  background: var(--black);
  color: var(--white);
  border: 1px solid var(--line-strong);
  padding: 14px 14px;
  border-radius: var(--radius-sm);
  font-size: 1rem; /* prevents iOS zoom */
  min-height: var(--touch);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus,
.field textarea:focus {
  border-color: var(--yellow);
  box-shadow: 0 0 0 3px var(--yellow-dim);
  outline: none;
}

.check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 16px 0;
  font-size: 0.92rem;
  line-height: 1.45;
}
.check input {
  margin-top: 3px;
  width: 22px;
  height: 22px;
  accent-color: var(--yellow);
  flex-shrink: 0;
}

.share-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}

.pledge-success { text-align: center; animation: scaleIn 0.4s ease-out; }
.pledge-success .display { font-size: 1.8rem; margin-bottom: 6px; }

.pledge-counter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--yellow-dim);
  border: 1px solid var(--yellow);
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 800;
  margin-bottom: 16px;
  font-size: 0.9rem;
}
.pledge-counter strong { color: var(--yellow); font-size: 1.15rem; }

/* ==========================================================================
   Help Cards / Stats
   ========================================================================== */
.help-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 24px;
}

.help-card {
  background: var(--panel);
  border-left: 5px solid var(--yellow);
  padding: 20px 16px;
  border-radius: 0 var(--radius) var(--radius) 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.help-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
  text-transform: uppercase;
}
.help-number {
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--yellow);
}
.help-card .btn { margin-top: auto; align-self: stretch; }

.stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 28px 0;
}
.stat {
  background: var(--panel-2);
  border: 1px solid var(--line);
  padding: 22px 16px;
  text-align: center;
  border-radius: var(--radius);
}
.stat-value {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 10vw, 3rem);
  color: var(--yellow);
  line-height: 1;
  margin-bottom: 6px;
}
.stat-label {
  font-size: 0.82rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
}

/* ==========================================================================
   Poster & Wallet Card
   ========================================================================== */
.poster {
  border: 4px solid #2a2722;
  box-shadow: 10px 10px 0 var(--yellow);
  transform: rotate(-1deg);
  border-radius: 4px;
  max-width: 100%;
}

.wallet-card {
  background: var(--black);
  border: 3px solid var(--yellow);
  border-radius: 12px;
  padding: 20px;
  max-width: 340px;
  margin: 0 auto;
  box-shadow: var(--shadow-yellow);
}
.wallet-card .display { font-size: 1.6rem; text-align: center; margin-bottom: 12px; }
.wallet-card ol {
  margin: 0;
  padding-left: 20px;
  font-size: 0.82rem;
  line-height: 1.55;
  color: #d0cbc1;
}
.wallet-card .wallet-footer {
  margin-top: 14px;
  text-align: center;
  font-size: 0.75rem;
  color: var(--yellow);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Story templates */
.story-preview {
  aspect-ratio: 9 / 16;
  max-width: 220px;
  background: linear-gradient(180deg, #111 0%, #1a1a1a 100%);
  border: 2px solid var(--yellow);
  border-radius: 16px;
  padding: 20px 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
  margin: 0 auto;
}
.story-preview .display { font-size: 1.4rem; line-height: 1; }

/* ==========================================================================
   Events
   ========================================================================== */
.event-card {
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 16px;
  display: grid;
  gap: 6px;
}
.event-date {
  font-family: var(--font-display);
  color: var(--yellow);
  font-size: 1.1rem;
  text-transform: uppercase;
}
.event-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  text-transform: uppercase;
  margin: 0;
}

/* ==========================================================================
   Stories wall
   ========================================================================== */
.story-item {
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 16px;
  margin-bottom: 12px;
}
.story-item blockquote {
  margin: 0 0 10px;
  font-style: italic;
  color: #d0cbc1;
  line-height: 1.55;
}
.story-meta {
  font-size: 0.8rem;
  color: var(--muted);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  border-top: 4px solid var(--yellow);
  padding: 40px 0 100px; /* extra bottom for FAB */
  background: #050505;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-bottom: 32px;
}
.footer-brand .display {
  font-size: 1.5rem;
  margin: 6px 0 10px;
}
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}
.footer-links a {
  font-weight: 600;
  font-size: 0.95rem;
  min-height: 40px;
  display: flex;
  align-items: center;
}
.footer-links a:hover { color: var(--yellow); }

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
}

/* ==========================================================================
   FAB
   ========================================================================== */
.fab {
  position: fixed;
  bottom: 16px;
  right: 16px;
  z-index: 300;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  min-width: 52px;
  padding: 0 18px;
  background: var(--yellow);
  color: var(--black);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.95rem;
  text-transform: uppercase;
  border-radius: 999px;
  box-shadow: 0 6px 24px rgba(242, 191, 0, 0.5);
  border: 3px solid var(--black);
  transition: transform 0.2s, box-shadow 0.2s;
}
.fab:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 10px 28px rgba(242, 191, 0, 0.6);
}
.fab-label { letter-spacing: 0.04em; }

/* ==========================================================================
   Pledge wall
   ========================================================================== */
.pledge-wall .wall-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.wall-item {
  background: var(--panel-2);
  border: 1px solid var(--line);
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
}

/* ==========================================================================
   404
   ========================================================================== */
.error-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  text-align: center;
  padding: 60px 0;
}
.error-page .display {
  font-size: clamp(3.5rem, 18vw, 6rem);
  color: var(--yellow);
  margin-bottom: 12px;
}

/* ==========================================================================
   Print (wallet card)
   ========================================================================== */
@media print {
  body * { visibility: hidden; }
  .wallet-card, .wallet-card * { visibility: visible; }
  .wallet-card {
    position: absolute;
    left: 0; top: 0;
    width: 100%;
    box-shadow: none;
    border-width: 2px;
  }
  .no-print { display: none !important; }
}

/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.94); }
  to { opacity: 1; transform: scale(1); }
}
.pulse { animation: pulse-yellow 2s infinite; }
@keyframes pulse-yellow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(242, 191, 0, 0.4); }
  50% { box-shadow: 0 0 0 12px rgba(242, 191, 0, 0); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   Tablet (min-width: 600px)
   ========================================================================== */
@media (min-width: 600px) {
  :root { --gutter: 24px; --header-h: 64px; }

  .btn { width: auto; }
  .actions { flex-direction: row; flex-wrap: wrap; }
  .share-row { flex-direction: row; flex-wrap: wrap; }
  .form-row { grid-template-columns: 1fr 1fr; gap: 14px; }
  .stats { grid-template-columns: repeat(3, 1fr); }
  .help-grid { grid-template-columns: repeat(2, 1fr); }
  .cycle { grid-template-columns: 1fr 1fr; gap: 16px; }
  .step:nth-child(2)::after { content: none; }
  .step:not(:last-child)::after {
    content: "→";
    left: auto; right: -14px; bottom: auto; top: 40%;
    transform: none;
  }
  .hero { min-height: 80vh; }
  .hero-content { padding: 70px 0 48px; }
  .rule-toggle { grid-template-columns: 56px 1fr 36px; padding: 16px; }
  .rule-number { font-size: 2.3rem; }
  section { padding: 70px 0; }
  .fab { bottom: 22px; right: 22px; min-height: 54px; padding: 0 20px; }
  .site-footer { padding-bottom: 60px; }
}

/* ==========================================================================
   Desktop (min-width: 900px)
   ========================================================================== */
@media (min-width: 900px) {
  :root { --header-h: 72px; --gutter: 32px; }

  .menu-toggle { display: none; }
  .menu {
    display: flex;
    position: static;
    flex-direction: row;
    background: none;
    border: 0;
    padding: 0;
    box-shadow: none;
    max-height: none;
    gap: 4px;
    overflow: visible;
  }
  .menu a {
    min-height: auto;
    padding: 10px 12px;
    font-size: 0.76rem;
  }

  .grid2 { grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
  .footer-bottom { flex-direction: row; justify-content: space-between; text-align: left; }
  .cycle { grid-template-columns: repeat(4, 1fr); }
  .step:nth-child(2)::after { content: "→"; }
  .help-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
  .hero { min-height: calc(100vh - var(--header-h)); }
  .hero-content { max-width: 880px; padding: 90px 0 56px; }
  .hero h1 { font-size: clamp(4.5rem, 10vw, 8rem); }
  .title { font-size: clamp(2.6rem, 5vw, 4.4rem); }
  .rule-toggle { grid-template-columns: 70px 1fr 40px; padding: 18px 20px; }
  .rule-number { font-size: 2.7rem; }
  .rule.is-open .rule-body-inner { padding-left: 98px; }
  .sign-box { padding: 32px; }
  .brand { font-size: 1.55rem; }
  section { padding: 88px 0; }
}

/* ==========================================================================
   Large desktop
   ========================================================================== */
@media (min-width: 1200px) {
  .wrap { width: min(1180px, calc(100% - 48px)); }
}

/* Brand logo */
.brand-logo {
  display: block;
  height: 36px;
  width: auto;
  max-width: 170px;
}
@media (min-width: 900px) {
  .brand-logo {
    height: 40px;
    max-width: 190px;
  }
}

/* Certificate */
.certificate {
  background: #0f0f0f;
  border: 4px solid var(--yellow);
  border-radius: 12px;
  padding: 32px 24px;
  text-align: center;
  max-width: 520px;
  margin: 0 auto;
  position: relative;
}
.certificate::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(242,191,0,0.35);
  border-radius: 8px;
  pointer-events: none;
}
.certificate .display { font-size: 1.8rem; margin: 12px 0; }
.certificate-name {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--yellow);
  margin: 16px 0;
  word-break: break-word;
}
.certificate-meta { font-size: 0.9rem; color: var(--muted); margin-top: 20px; }

/* Group code */
.group-box {
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  margin-top: 16px;
}
.group-code-display {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--yellow);
  letter-spacing: 0.15em;
  text-align: center;
  padding: 12px;
  background: var(--black);
  border-radius: var(--radius-sm);
  margin: 10px 0;
}

@media print {
  .site-header, .site-footer, .fab, .no-print, .menu-toggle, nav { display: none !important; }
  .certificate { border-width: 3px; box-shadow: none; }
  body { background: #fff; color: #000; }
  .certificate { background: #fff; color: #000; border-color: #c49a00; }
  .certificate-name { color: #c49a00; }
}
