/* ==========================================================================
   DataBazzar design system
   Neo-brutalist, minimal: cream paper, ink outlines, hard offset shadows.
   Tokens → base → type → controls → cards → data display → overlays →
   site chrome (awning, header, footer) → responsive.
   ========================================================================== */

:root {
  --cream: #FFFDF8;
  --cream-2: #FAF7EF;
  --ink: #1B1511;
  --ink-2: #2A231E;
  --ink-3: #5A4F46;
  --muted: #5E554D;
  --muted-2: #B9AFA5;
  --line: #E8E2D7;

  --pink: #FF5CA8;
  --gold: #FFB91F;
  --green: #1FC37E;
  --cyan: #63C6FF;
  --purple: #B9A2FF;
  --orange: #FF6B3D;
  --blue: #2445F2;

  --pink-soft: #FFE3EF;
  --gold-soft: #FFF0C7;
  --green-soft: #DAF6E8;
  --blue-soft: #DCE2FF;
  --red: #D8342C;
  --red-soft: #FFE1DE;

  --font-display: 'Bricolage Grotesque', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Figtree', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  --font-mono: 'DM Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --container: 1240px;
  --gutter: clamp(16px, 3vw, 24px);
  --section-y: clamp(56px, 8vw, 104px);

  --border: 2.5px solid var(--ink);
  --border-thin: 2px solid var(--ink);
  --shadow-sm: 4px 4px 0 var(--ink);
  --shadow: 6px 6px 0 var(--ink);
  --shadow-lg: 10px 10px 0 var(--ink);
}

@media (min-width: 1600px) { :root { --container: 1400px; --gutter: 32px; } }

/* ------------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; scroll-behavior: smooth; background: var(--cream); }
body { margin: 0; background: var(--cream); color: var(--ink); font: 17px/1.5 var(--font-body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul[role="list"], ol[role="list"], .plain { list-style: none; padding: 0; margin: 0; }
img, svg { vertical-align: middle; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a, button, label, select, summary { touch-action: manipulation; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
::placeholder { color: #6B6157; opacity: 1; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 1000; background: var(--ink); color: var(--cream); padding: 10px 16px; border-radius: 999px; font-weight: 700; }
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; }
.section { padding: var(--section-y) var(--gutter); }
.stack { display: flex; flex-direction: column; gap: var(--gap, 16px); min-width: 0; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--gap, 12px); }
.grow { flex: 1 1 auto; min-width: 0; }
.center { text-align: center; }
.muted { color: var(--muted); }
.nowrap { white-space: nowrap; }
.mono { font-family: var(--font-mono); }
.right { text-align: right; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 40px; }

.split { display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; gap: var(--split-gap, clamp(32px, 6vw, 64px)); }
.split-top { align-items: start; }
@media (min-width: 900px) {
  .split { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split-wide { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
}

/* ------------------------------------------------------------------ type */
.eyebrow { font: 500 13px/1 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; }
.h-xl, .h-lg, .h-md, .h-sm { font-family: var(--font-display); font-weight: 800; overflow-wrap: break-word; text-wrap: balance; }
.h-xl { font-size: clamp(40px, 6.2vw, 96px); line-height: 0.93; letter-spacing: -0.045em; }
.h-lg { font-size: clamp(36px, 5vw, 76px); line-height: 0.96; letter-spacing: -0.04em; }
.h-md { font-size: clamp(30px, 3.6vw, 52px); line-height: 1; letter-spacing: -0.035em; }
.h-sm { font-size: clamp(22px, 2.4vw, 30px); line-height: 1.08; letter-spacing: -0.03em; }
.lead { font-size: clamp(17px, 1.9vw, 20px); font-weight: 500; line-height: 1.45; text-wrap: pretty; }
.small { font-size: 14px; }
.tiny { font: 400 12.5px/1.4 var(--font-mono); color: var(--muted); }
.prose { max-width: 70ch; }
.prose h2 { font-family: var(--font-display); font-weight: 800; font-size: 28px; letter-spacing: -0.03em; margin: 40px 0 12px; line-height: 1.1; }
.prose h3 { font-family: var(--font-display); font-weight: 700; font-size: 20px; margin: 28px 0 8px; }
.prose p, .prose li { margin: 0 0 14px; }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 16px; }
.prose a { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.prose code, code.inline { font: 500 0.9em var(--font-mono); background: var(--gold-soft); padding: 2px 6px; border-radius: 6px; border: 1.5px solid var(--ink); }
.ul:hover { text-decoration: underline; text-decoration-thickness: 2.5px; text-underline-offset: 5px; }

/* --------------------------------------------------------------- controls */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 24px; border: var(--border); border-radius: 999px; background: var(--cream); color: var(--ink); font-weight: 700; font-size: 16px; line-height: 1; white-space: nowrap; box-shadow: var(--shadow-sm); transition: transform .15s ease, box-shadow .15s ease, background .15s ease; text-decoration: none; }
.btn:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.btn[disabled], .btn.is-loading { opacity: .55; pointer-events: none; }
@media (hover: hover) { .btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); } }
.btn-ink { background: var(--ink); color: var(--cream); }
.btn-gold { background: var(--gold); }
.btn-pink { background: var(--pink); }
.btn-green { background: var(--green); }
.btn-blue { background: var(--blue); color: var(--cream); }
.btn-danger { background: var(--red); color: #fff; }
.btn-flat { box-shadow: none; }
.btn-flat:hover { box-shadow: none; transform: none; }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: 14px; box-shadow: 3px 3px 0 var(--ink); border-width: 2px; }
.btn-lg { min-height: 58px; padding: 0 32px; font-size: 18px; }
.btn-block { width: 100%; }
.btn-link { background: none; border: 0; box-shadow: none; padding: 0; min-height: 0; font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.btn-link:hover { transform: none; box-shadow: none; }
.btn .spinner { width: 16px; height: 16px; }

.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label, .label { font-weight: 700; font-size: 15px; }
.help { font-size: 13.5px; color: var(--muted); }
.err { font-size: 13.5px; color: var(--red); font-weight: 600; }
.input, .select, .textarea { -webkit-appearance: none; appearance: none; width: 100%; min-height: 50px; padding: 12px 14px; border: var(--border-thin); border-radius: 12px; background: #fff; color: var(--ink); font-size: 16px; line-height: 1.3; }
.textarea { min-height: 110px; resize: vertical; line-height: 1.45; }
.select { padding-right: 42px; font-weight: 600; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231B1511' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center / 16px; cursor: pointer; }
.input:focus-visible, .select:focus-visible, .textarea:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.input[aria-invalid="true"], .is-invalid { border-color: var(--red); }
.input-sm { min-height: 40px; padding: 8px 12px; font-size: 15px; border-radius: 10px; }
.check { display: flex; align-items: flex-start; gap: 12px; font-size: 15.5px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--ink); flex: none; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 16px; }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 8px; }
.search { display: flex; align-items: center; gap: 12px; padding: 4px 8px 4px 20px; background: #fff; border: var(--border); border-radius: 999px; box-shadow: var(--shadow); }
.search input { flex: 1 1 auto; min-width: 0; border: 0; background: transparent; padding: 14px 0; font-size: 18px; font-weight: 500; outline: none; -webkit-appearance: none; appearance: none; text-overflow: ellipsis; }
.search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.search .btn { box-shadow: none; flex: none; min-height: 48px; }
.search:focus-within { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--ink); }
.search svg { flex: none; }

.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border: var(--border-thin); border-radius: 999px; background: var(--cream); font: 500 12px/1 var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border: var(--border-thin); border-radius: 999px; background: var(--cream); font-weight: 700; font-size: 15px; white-space: nowrap; }
.chip[aria-pressed="true"], .chip.is-on { background: var(--ink); color: var(--cream); }
.dot { width: 12px; height: 12px; border-radius: 999px; border: 2px solid var(--ink); flex: none; display: inline-block; }

.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border: 2px solid var(--ink); border-radius: 999px; font-size: 12.5px; font-weight: 700; line-height: 1.2; white-space: nowrap; background: var(--cream); }
.badge-green { background: var(--green-soft); } .badge-gold { background: var(--gold-soft); } .badge-pink { background: var(--pink-soft); }
.badge-blue { background: var(--blue-soft); } .badge-red { background: var(--red-soft); } .badge-ink { background: var(--ink); color: var(--cream); }
.badge-dashed { border-style: dashed; background: var(--gold-soft); }
.tag { display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border: 2px solid var(--ink); border-radius: 10px; font-size: 12.5px; font-weight: 700; }
.tag-download { background: var(--gold-soft); } .tag-train { background: var(--pink-soft); } .tag-synthetic { background: var(--green-soft); }

.check-ico { flex: none; }

/* ------------------------------------------------------------------ cards */
.card { background: var(--cream); border: var(--border); border-radius: 22px; box-shadow: var(--shadow-sm); overflow: hidden; min-width: 0; }
.card-pad { padding: clamp(18px, 3vw, 28px); }
.card-lg { border-radius: 26px; box-shadow: var(--shadow-lg); }
.card-white { background: #fff; }
.card-dash { border-style: dashed; box-shadow: none; background: var(--gold-soft); }
.stripe { height: 16px; border-bottom: var(--border); background: repeating-linear-gradient(90deg, var(--c, var(--gold)) 0 20px, var(--cream) 20px 40px); }
.card-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; padding: 16px clamp(18px, 3vw, 26px); border-bottom: var(--border); }
.dashed-top { border-top: 2px dashed var(--ink); padding-top: 14px; }
.kv { display: grid; grid-template-columns: minmax(110px, 160px) minmax(0, 1fr); gap: 10px 16px; font-size: 15px; align-items: baseline; }
.kv dt { font: 500 12px/1.4 var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; }
.kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 520px) { .kv { grid-template-columns: 1fr; gap: 2px; } .kv dd { margin-bottom: 10px; } }

/* dataset ticket card */
.ticket { display: flex; flex-direction: column; background: var(--cream); border: var(--border); border-radius: 22px; overflow: hidden; box-shadow: 5px 5px 0 var(--ink); transition: transform .18s ease, box-shadow .18s ease; color: var(--ink); }
@media (hover: hover) { .ticket:hover { transform: translate(-3px, -3px); box-shadow: 10px 10px 0 var(--ink); } }
.ticket:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.ticket-body { flex: 1 1 auto; padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 12px; }
.ticket-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ticket h3 { font-family: var(--font-display); font-weight: 700; font-size: 22px; line-height: 1.12; letter-spacing: -0.02em; }
.ticket p { color: var(--muted); font-size: 15px; line-height: 1.45; }
.ticket-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; color: var(--muted); font: 400 12.5px/1.3 var(--font-mono); }
.ticket-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.ticket-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding-top: 14px; border-top: 2px dashed var(--ink); }
.ticket-seller { display: flex; flex-direction: column; min-width: 0; font-size: 13px; line-height: 1.3; color: var(--muted); }
.ticket-seller strong { color: var(--ink); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.price { display: flex; align-items: baseline; gap: 4px; white-space: nowrap; }
.price .pre { font-size: 13px; font-weight: 600; color: var(--muted); }
.price .amt { font-family: var(--font-display); font-weight: 800; font-size: 24px; line-height: 1; letter-spacing: -0.02em; }
.price .unit { font-size: 13px; font-weight: 700; }
.ticket-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(270px, 100%), 1fr)); gap: 22px; }

/* ----------------------------------------------------------- data display */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: var(--border-thin); border-radius: 14px; background: #fff; }
.table { width: 100%; border-collapse: collapse; font-size: 14.5px; text-align: left; }
.table th { background: var(--ink); color: var(--cream); padding: 10px 14px; font: 500 12px/1.3 var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; }
.table td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: #FFF9E6; }
.table td.num, .table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.table .cell-nowrap { white-space: nowrap; }
.table.data td { font-family: var(--font-mono); font-size: 13px; white-space: nowrap; }
.table .link { font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.table .link:hover { color: var(--blue); }
.audit { display: flex; flex-direction: column; }
.audit-row { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 4px 12px; padding: 12px 0; border-top: 2px dashed #D9D2C9; }
.audit-row:first-child { border-top: 0; }
.audit-row > svg { flex: none; margin-top: 2px; }
.audit-label { flex: 0 0 130px; padding-top: 3px; font: 700 12.5px/1.3 var(--font-mono); text-transform: uppercase; }
.audit-text { flex: 1 1 160px; min-width: 0; font-size: 15px; }
.audit-text small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
@media (max-width: 560px) { .audit-label { flex: 1 1 calc(100% - 40px); } .audit-text { flex-basis: 100%; padding-left: 34px; } }
.empty { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 32px; border: 2.5px dashed var(--ink); border-radius: 22px; background: var(--gold-soft); }
.empty h3 { font-family: var(--font-display); font-weight: 800; font-size: 26px; letter-spacing: -0.03em; line-height: 1.05; }
.empty p { color: var(--muted); max-width: 52ch; }
.callout { padding: 14px 16px; border: 2px solid var(--ink); border-radius: 14px; background: var(--gold-soft); font-size: 15px; }
.callout-red { background: var(--red-soft); } .callout-green { background: var(--green-soft); } .callout-blue { background: var(--blue-soft); }
.progress { height: 12px; border: 2px solid var(--ink); border-radius: 999px; background: #fff; overflow: hidden; }
.progress > i { display: block; height: 100%; background: var(--green); }
.spinner { width: 20px; height: 20px; border: 3px solid rgba(27, 21, 17, .2); border-top-color: var(--ink); border-radius: 50%; animation: spin .7s linear infinite; display: inline-block; }
.btn-ink .spinner { border-color: rgba(255, 253, 248, .3); border-top-color: var(--cream); }
@keyframes spin { to { transform: rotate(360deg); } }
.skeleton { background: linear-gradient(90deg, #efe9dc 25%, #f7f3ea 37%, #efe9dc 63%); background-size: 400% 100%; animation: shimmer 1.4s ease infinite; border-radius: 12px; min-height: 16px; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.tab { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border: var(--border-thin); border-radius: 999px; background: var(--cream); font-weight: 700; font-size: 14.5px; }
.tab[aria-selected="true"] { background: var(--gold); box-shadow: 3px 3px 0 var(--ink); }
.code { background: var(--ink-2); color: var(--cream); border: 2.5px solid var(--cream); border-radius: 18px; padding: 18px 20px; font: 400 13.5px/1.7 var(--font-mono); overflow-x: auto; white-space: pre; }
.code .k { color: var(--cyan); } .code .s { color: var(--gold); } .code .n { color: var(--green); } .code .b { color: var(--pink); } .code .c { color: var(--muted-2); }

/* --------------------------------------------------------------- overlays */
.modal-back { position: fixed; inset: 0; z-index: 9000; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(27, 21, 17, .72); backdrop-filter: blur(3px); animation: fade .18s ease; }
.modal { width: 100%; max-width: var(--modal-w, 560px); max-height: calc(100vh - 40px); max-height: calc(100dvh - 40px); display: flex; flex-direction: column; background: var(--cream); border: 3px solid var(--ink); border-radius: 26px; box-shadow: var(--shadow-lg); overflow: hidden; animation: pop .22s cubic-bezier(.16, 1, .3, 1); }
.modal:focus { outline: none; }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 24px; border-bottom: var(--border); background: var(--gold); }
.modal-head h2 { font-family: var(--font-display); font-weight: 800; font-size: 24px; letter-spacing: -0.03em; line-height: 1.1; }
.modal-x { flex: none; width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; border: var(--border-thin); border-radius: 999px; background: var(--cream); font-size: 18px; font-weight: 800; }
.modal-body { padding: 22px 24px; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 16px; }
.modal-foot { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 12px; padding: 16px 24px; border-top: var(--border-thin); background: var(--cream-2); }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }
.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 9500; display: flex; flex-direction: column; gap: 10px; pointer-events: none; max-width: min(420px, calc(100vw - 32px)); }
.toast { pointer-events: auto; display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; background: var(--cream); border: var(--border); border-left-width: 10px; border-radius: 14px; box-shadow: var(--shadow-sm); font-weight: 600; font-size: 15px; animation: pop .25s cubic-bezier(.16, 1, .3, 1); }
.toast-ok { border-left-color: var(--green); } .toast-err { border-left-color: var(--red); } .toast-info { border-left-color: var(--blue); }
body.modal-open { overflow: hidden; }

/* ------------------------------------------------------------ site chrome */
.awning { height: 22px; background: repeating-linear-gradient(90deg, var(--awning, var(--pink)) 0 44px, var(--cream) 44px 88px); border-bottom: var(--border); }
.awning-scallop { height: 22px; background: radial-gradient(circle at 22px 0, var(--awning, var(--pink)) 0 19px, var(--ink) 19px 21.5px, transparent 22px) 0 0 / 88px 22px repeat-x, radial-gradient(circle at 66px 0, var(--cream) 0 19px, var(--ink) 19px 21.5px, transparent 22px) 0 0 / 88px 22px repeat-x; }
.announce { background: var(--ink); color: var(--cream); text-align: center; padding: 10px var(--gutter); font-weight: 600; font-size: 14.5px; }
.stall { background: var(--stall, var(--gold)); border-bottom: var(--border); }
.site-header { max-width: var(--container); margin: 0 auto; padding: 14px var(--gutter) 0; display: flex; align-items: center; justify-content: space-between; gap: 12px 28px; position: relative; z-index: 50; }
.logo { display: flex; align-items: center; gap: 10px; flex: none; color: var(--ink); }
.logo-word { font-family: var(--font-display); font-weight: 800; font-size: 28px; line-height: 1; letter-spacing: -0.045em; }
.nav { display: flex; align-items: center; gap: 0 26px; font-weight: 600; font-size: 16px; white-space: nowrap; }
.nav a { padding: 12px 0; }
.nav a[aria-current="page"] { padding: 7px 14px; border: var(--border-thin); border-radius: 999px; background: var(--cream); }
.nav a:not([aria-current]):hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.header-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.header-actions .login { font-weight: 600; padding: 12px 14px; }
.header-actions .btn-ink { min-height: 46px; box-shadow: none; padding: 0 22px; border-width: 2px; }
.menu-btn { display: none; width: 48px; height: 48px; padding: 0; align-items: center; justify-content: center; border: var(--border); border-radius: 999px; background: var(--cream); box-shadow: 3px 3px 0 var(--ink); }
.menu-btn i, .menu-btn i::before, .menu-btn i::after { display: block; width: 20px; height: 2.5px; border-radius: 2px; background: var(--ink); transition: transform .2s ease, background .2s ease; }
.menu-btn i { position: relative; }
.menu-btn i::before, .menu-btn i::after { content: ''; position: absolute; left: 0; }
.menu-btn i::before { top: -7px; } .menu-btn i::after { top: 7px; }
.menu-open .menu-btn i { background: transparent; }
.menu-open .menu-btn i::before { transform: translateY(7px) rotate(45deg); }
.menu-open .menu-btn i::after { transform: translateY(-7px) rotate(-45deg); }
.user-menu { position: relative; }
.user-pop { position: absolute; right: 0; top: calc(100% + 10px); min-width: 230px; padding: 8px; background: var(--cream); border: var(--border); border-radius: 18px; box-shadow: var(--shadow-sm); z-index: 60; display: flex; flex-direction: column; }
.user-pop a, .user-pop button { display: block; width: 100%; text-align: left; padding: 11px 14px; border: 0; border-radius: 10px; background: none; font-weight: 600; font-size: 15.5px; }
.user-pop a:hover, .user-pop button:hover { background: var(--gold-soft); }
.user-pop .who { padding: 10px 14px 12px; border-bottom: 2px dashed var(--ink); margin-bottom: 6px; font-size: 14px; color: var(--muted); }
.user-pop .who strong { display: block; color: var(--ink); font-size: 16px; }

.footer { background: var(--ink); color: var(--cream); padding: 0 var(--gutter) 40px; }
.footer-inner { display: flex; flex-direction: column; gap: clamp(36px, 6vw, 56px); padding-top: clamp(40px, 6vw, 56px); }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px 56px; }
.footer-brand { flex: 1 1 280px; max-width: 340px; display: flex; flex-direction: column; gap: 16px; }
.footer-brand p { color: var(--muted-2); }
.footer-cols { flex: 2 1 560px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr)); gap: 32px; }
.footer-col { display: flex; flex-direction: column; gap: 4px; }
.footer-col .eyebrow { color: var(--muted-2); font-size: 12px; margin-bottom: 8px; }
.footer-col a { padding: 4px 0; font-size: 15px; }
.footer-col a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.wordmark { font-family: var(--font-display); font-weight: 800; font-size: clamp(48px, 15.5vw, 280px); line-height: 0.8; letter-spacing: -0.06em; color: var(--gold); white-space: nowrap; user-select: none; }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; color: var(--muted-2); font: 400 13px/1.4 var(--font-mono); }

.page-hero { padding: clamp(28px, 5vw, 48px) var(--gutter) clamp(40px, 6vw, 64px); }
.page-head { max-width: var(--container); margin: 0 auto; display: flex; flex-direction: column; gap: 24px; }

/* ------------------------------------------------------------- responsive */
@media (max-width: 1023px) {
  .site-header { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 12px; padding-bottom: 12px; align-items: center; }
  .menu-btn { display: inline-flex; }
  .nav, .header-actions { display: none; grid-column: 1 / -1; }
  .menu-open .nav { display: flex; flex-direction: column; align-items: stretch; margin-top: 12px; font-size: 18px; animation: fade .2s ease; }
  .nav a { padding: 14px 4px; border-bottom: 2px dashed rgba(27, 21, 17, .28); }
  .nav a:last-child { border-bottom: 0; }
  .nav a[aria-current="page"] { margin: 4px 0; padding: 12px 16px; border-radius: 16px; }
  .menu-open .header-actions { display: flex; flex-wrap: wrap; padding: 14px 0 6px; }
  .header-actions .btn, .header-actions .login { flex: 1 1 140px; text-align: center; }
  .header-actions .login { border: var(--border-thin); border-radius: 999px; background: var(--cream); display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 16px; }
  .user-menu { flex: 1 1 100%; }
  .user-pop { position: static; box-shadow: none; margin-top: 8px; }
  .page-hero { padding-top: 24px; }
}
@media (max-width: 767px) {
  body { font-size: 16px; }
  .logo-word { font-size: 25px; } .logo svg { width: 38px; height: 38px; }
  .card, .ticket { border-radius: 18px; }
  .card-lg { box-shadow: var(--shadow); }
  .modal-back { padding: 10px; align-items: flex-end; }
  .modal { max-height: calc(100dvh - 20px); border-radius: 22px; box-shadow: 6px 6px 0 var(--ink); }
  .modal-head { padding: 14px 16px; } .modal-head h2 { font-size: 20px; }
  .modal-body { padding: 18px 16px; } .modal-foot { padding: 14px 16px; }
  .modal-foot .btn { flex: 1 1 100%; }
  .toasts { left: 16px; right: 16px; bottom: 16px; max-width: none; }
  .search { padding-left: 14px; gap: 8px; }
  .search input { font-size: 16px; }
  .search .btn { padding: 0 18px; min-height: 44px; font-size: 15px; }
}
@media (max-width: 480px) { .btn { min-height: 46px; font-size: 15px; padding: 0 20px; } .btn-lg { min-height: 54px; font-size: 16px; } }
@media (max-width: 359px) { .logo-word { font-size: 22px; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
