/* Notary Riders Club - mockup design system
   Black ground, orange signal, emblem gold. Barlow Condensed = road-sign voice, Barlow = reading voice.
   Signature move: mechanical odometer digits for every mileage figure. */

:root {
  --ink-0: #0b0a09;
  --ink-1: #131110;
  --ink-2: #1b1816;
  --ink-3: #26211e;
  --line: #2a2522;
  --line-2: #3b342f;

  --fg: #f3ede4;
  --fg-2: #bdb2a5;
  --fg-3: #9b9185;

  --or: #ff7a1a;
  --or-hi: #ff9448;
  --or-wash: rgba(255, 122, 26, .12);
  --or-ink: #160a02;
  --gold: #e9b24a;

  --ok: #63d391;
  --ok-wash: rgba(99, 211, 145, .11);
  --warn: #f2c14e;
  --warn-wash: rgba(242, 193, 78, .11);
  --bad: #ff7466;
  --bad-wash: rgba(255, 116, 102, .11);

  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Barlow", "Segoe UI", system-ui, sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --r: 6px;

  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scrollbar-color: var(--line-2) var(--ink-0); scrollbar-width: thin; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--ink-0); }
::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 6px; border: 2px solid var(--ink-0); }
::selection { background: var(--or); color: var(--or-ink); }

body {
  margin: 0;
  background: var(--ink-0);
  color: var(--fg);
  font: 400 16px/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
a.link { color: var(--or); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a.link:hover { color: var(--or-hi); }
:focus-visible { outline: 2px solid var(--or); outline-offset: 2px; border-radius: 3px; }
input, textarea, select { caret-color: var(--or); accent-color: var(--or); }
h1, h2, h3, h4 { font-family: var(--display); text-transform: uppercase; font-weight: 800; line-height: 1; margin: 0; letter-spacing: .01em; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; max-width: 68ch; }
ul, ol { margin: 0; padding: 0; }
.muted { color: var(--fg-2); }
.faint { color: var(--fg-3); }
.small { font-size: .875rem; }
.right { text-align: right; }
.center { text-align: center; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.stack > * + * { margin-top: 12px; }
.mt { margin-top: 24px; } .mt-lg { margin-top: 48px; } .mb { margin-bottom: 24px; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.ico { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; }
.row-flex { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* ---------- lane marking motif ---------- */
.lane { display: block; height: 6px; background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='80' height='6'><rect width='44' height='6' fill='%23ff7a1a'/></svg>") repeat-x; }
.dash { display: block; width: 72px; height: 4px; margin-top: 14px; background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='22' height='4'><rect width='14' height='4' fill='%23ff7a1a'/></svg>") repeat-x; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 4px; border: 1px solid transparent;
  font: 700 1.0625rem/1 var(--display); text-transform: uppercase; letter-spacing: .07em;
  cursor: pointer; transition: background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--or); color: var(--or-ink); }
.btn-primary:hover { background: var(--or-hi); }
.btn-line { border-color: var(--line-2); color: var(--fg); background: transparent; }
.btn-line:hover { border-color: var(--or); color: var(--or); }
.btn-ok { background: var(--ok-wash); border-color: rgba(99, 211, 145, .45); color: var(--ok); }
.btn-ok:hover { background: rgba(99, 211, 145, .2); }
.btn-bad { background: transparent; border-color: rgba(255, 116, 102, .4); color: var(--bad); }
.btn-bad:hover { background: var(--bad-wash); }
.btn-sm { padding: 7px 12px; font-size: .9375rem; }
.btn-block { display: flex; width: 100%; }
.btn[aria-disabled="true"] { opacity: .4; cursor: not-allowed; pointer-events: none; }

/* ---------- status labels ----------
   Plain: condensed uppercase text + drawn glyph, no box (tables, lists).
   Stamp: hard outline, slight tilt - only on ticket cards and event detail. */
.chip { display: inline-flex; align-items: center; gap: 7px; font: 700 .9375rem/1 var(--display); letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; color: var(--fg-2); --g: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'><path d='M6 12h12'/></svg>"); }
.chip::before { content: ""; width: 1.05em; height: 1.05em; flex: none; background: currentColor; -webkit-mask: var(--g) center / contain no-repeat; mask: var(--g) center / contain no-repeat; }
.chip.ok { color: var(--ok); --g: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'><path d='M5 12.5l4.5 4.5L19 7.5'/></svg>"); }
.chip.warn { color: var(--warn); --g: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='8.5'/><path d='M12 7.5V12l3 2'/></svg>"); }
.chip.bad { color: var(--bad); --g: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'><path d='M6.5 6.5l11 11M17.5 6.5l-11 11'/></svg>"); }
.chip.or { color: var(--or); --g: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'><path d='M12 3.5l8.5 8.5-8.5 8.5L3.5 12z'/></svg>"); }
.chip.mute { color: var(--fg-2); --g: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'><path d='M6 12h12'/></svg>"); }
.ticket .body .chip, .side-card .chip, .ph .chip { padding: 6px 11px 5px; border: 2px solid currentColor; border-radius: 2px; outline: 1px solid color-mix(in srgb, currentColor 22%, transparent); outline-offset: 2px; transform: rotate(-1.5deg); letter-spacing: .12em; margin: 3px 3px 3px 0; }
.ticket .body .chip.mute { color: var(--fg-3); }

/* ---------- public nav ---------- */
.nav { position: sticky; top: 0; z-index: 30; background: rgba(11, 10, 9, .9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.brand { display: flex; align-items: center; gap: 12px; font: 800 1.375rem/1 var(--display); text-transform: uppercase; letter-spacing: .06em; }
.brand img { height: 46px; width: auto; display: block; }
.brand small { display: block; font: 600 .6875rem/1 var(--display); letter-spacing: .22em; color: var(--or); margin-top: 4px; }
.nav nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.nav nav a:not(.btn) { padding: 8px 14px; font: 600 1rem/1 var(--display); text-transform: uppercase; letter-spacing: .1em; color: var(--fg-2); border-radius: 4px; transition: color .2s var(--ease); }
.nav nav a:not(.btn):hover, .nav nav a.on { color: var(--fg); }
.nav nav a.on { box-shadow: inset 0 -2px 0 var(--or); border-radius: 0; }
.nav nav .btn { margin-left: 8px; }
.me { display: flex; align-items: center; gap: 10px; padding: 0 8px 0 14px; color: var(--fg-2); font-weight: 500; }

.av { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--ink-3); border: 1px solid var(--line-2); font: 700 .9375rem/1 var(--display); letter-spacing: .04em; color: var(--fg); flex: none; vertical-align: middle; }
.av.lg { width: 96px; height: 96px; font-size: 2rem; border-color: var(--or); }
.av.md { width: 64px; height: 64px; font-size: 1.375rem; }
.av.xs { width: 32px; height: 32px; font-size: .8125rem; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; background: radial-gradient(60% 80% at 72% 0%, rgba(255, 122, 26, .17), transparent 65%), var(--ink-0); }
.hero::before { content: ""; position: absolute; inset: 0; opacity: .5; pointer-events: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .07 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }
.hero-top { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); align-items: center; padding-top: 36px; }
.hero h1 { font-size: clamp(2.75rem, 6.2vw, 5.5rem); line-height: .9; letter-spacing: -.005em; }
.hero h1 em { font-style: normal; color: var(--or); display: block; margin-top: .08em; }
.hero-emblem { display: block; width: 120%; max-width: none; justify-self: end; margin-right: -7vw; filter: drop-shadow(0 26px 34px rgba(0, 0, 0, .65)); }
.hero-foot { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 24px 40px; padding-top: 24px; padding-bottom: 56px; flex-wrap: wrap; }
.hero-foot p { margin: 0; max-width: 54ch; font-size: 1.125rem; color: var(--fg-2); }
.hero .lane { position: relative; }

/* ---------- sections ---------- */
.sec { padding: 88px 0; }
.sec + .sec { padding-top: 0; }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 32px; flex-wrap: wrap; }
.sec-head h2 { font-size: clamp(2.25rem, 4.6vw, 3.5rem); }
.sec-head p { margin: 0; color: var(--fg-2); max-width: 44ch; }

/* ---------- leaderboard ---------- */
.board { border: 1px solid var(--line); border-radius: 10px; background: var(--ink-1); overflow: hidden; }
.board-row { display: grid; grid-template-columns: 76px 1fr auto; align-items: center; gap: 20px; padding: 16px 28px; border-bottom: 1px solid var(--line); transition: background .2s var(--ease); }
.board-row:last-child { border-bottom: 0; }
.board-row:hover { background: var(--ink-2); }
.board-row.first { padding: 26px 28px; background: linear-gradient(90deg, rgba(233, 178, 74, .1), transparent 70%); }
.rk { font: 800 2.75rem/1 var(--display); color: var(--fg-3); font-variant-numeric: tabular-nums; }
.board-row.first .rk { font-size: 4.25rem; color: var(--gold); }
.board-row:nth-child(2) .rk { color: var(--fg-2); }
.board-row:nth-child(3) .rk { color: #c98a5a; }
.who { display: flex; align-items: center; gap: 14px; min-width: 0; }
.who b { display: block; font: 600 1.1875rem/1.2 var(--body); }
.board-row.first .who b { font: 800 1.875rem/1.1 var(--display); text-transform: uppercase; letter-spacing: .02em; }
.who span.sub { color: var(--fg-3); font-size: .875rem; }

/* ---------- odometer ---------- */
.odo { --sz: 28px; display: inline-flex; align-items: center; gap: 3px; font: 700 var(--sz)/1 var(--display); }
.odo i { font-style: normal; display: grid; place-items: center; width: .72em; height: 1.22em; border-radius: 3px; border: 1px solid var(--line-2); color: var(--odo-c, var(--or)); background: linear-gradient(#060505, #221d1a 47%, #0a0908 53%, #1c1815); box-shadow: inset 0 -1px 0 rgba(255, 255, 255, .05); font-variant-numeric: tabular-nums; animation: roll .9s var(--ease) both; animation-delay: calc(var(--i, 0) * 55ms); }
.odo b { font-weight: 700; color: var(--fg-3); width: .22em; text-align: center; align-self: flex-end; line-height: 1.1; }
.odo u { text-decoration: none; font-size: max(11px, .46em); letter-spacing: .12em; color: var(--fg-3); margin-left: 8px; align-self: flex-end; padding-bottom: .22em; }
.odo.fg { --odo-c: var(--fg); }
.odo.gold { --odo-c: var(--gold); }
.odo.xl { --sz: 56px; }
.odo.lg { --sz: 40px; }
.odo.sm { --sz: 20px; }
@keyframes roll { from { transform: translateY(55%); opacity: 0; } }

/* ---------- tickets (events) ---------- */
.ticket { --stub: 136px; position: relative; display: grid; grid-template-columns: var(--stub) 216px 1fr auto; background: var(--ink-1); border: 1px solid var(--line); border-radius: 10px; margin-bottom: 16px; }
.ticket::before, .ticket::after { content: ""; position: absolute; left: calc(var(--stub) - 10px); width: 20px; height: 20px; border-radius: 50%; background: var(--ink-0); }
.ticket::before { top: -11px; } .ticket::after { bottom: -11px; }
.ticket .date { display: grid; align-content: center; justify-items: center; gap: 4px; padding: 24px 14px; border-right: 2px dashed var(--line-2); }
.ticket .date b { font: 800 3.5rem/.9 var(--display); color: var(--or); font-variant-numeric: tabular-nums; }
.ticket .date span { font: 600 .9375rem/1 var(--display); letter-spacing: .16em; text-transform: uppercase; color: var(--fg-2); }
.ticket .photo { display: grid; align-content: center; justify-items: center; gap: 8px; min-height: 150px; padding: 16px; background: var(--ink-2); border-right: 1px solid var(--line); color: var(--fg-3); font-size: .8125rem; }
.ticket.compact { grid-template-columns: 1fr; margin-bottom: 16px; }
.ticket.compact::before, .ticket.compact::after { display: none; }
.ticket.compact .photo { border-right: 0; border-bottom: 1px solid var(--line); }
.ticket.compact .body { padding: 18px 20px; }
.ticket .photo .ico { width: 34px; height: 34px; }
.ticket .body { padding: 22px 28px; min-width: 0; }
.ticket h3 { font-size: 2rem; margin-bottom: 10px; }
.meta { display: flex; flex-wrap: wrap; gap: 6px 20px; color: var(--fg-2); font-size: .9375rem; margin-bottom: 14px; }
.meta span { display: inline-flex; align-items: center; gap: 7px; }
.meta .ico { color: var(--or); }
.ticket .act { display: grid; align-content: center; justify-items: end; gap: 10px; padding: 22px 28px; min-width: 220px; }
.ticket .price { font: 700 1.75rem/1 var(--display); letter-spacing: .02em; }
.ticket .price small { display: block; font: 500 .8125rem/1.4 var(--body); color: var(--fg-3); letter-spacing: 0; text-align: right; margin-top: 4px; }
.ticket.done { opacity: .9; }
.ticket.done .date b { color: var(--fg-3); }

/* ---------- cta band ---------- */
.band { background: var(--or); color: var(--or-ink); position: relative; overflow: hidden; }
.band .wrap { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding-top: 56px; padding-bottom: 56px; flex-wrap: wrap; }
.band h2 { font-size: clamp(2.25rem, 5vw, 3.75rem); max-width: 14ch; }
.band p { margin: 10px 0 0; color: #3a1d08; font-weight: 500; }
.band .btn { background: var(--or-ink); color: var(--or); }
.band .btn:hover { background: #000; }
.band .lane { background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='80' height='6'><rect width='44' height='6' fill='%23160a02'/></svg>") repeat-x; }

.foot { border-top: 1px solid var(--line); padding: 40px 0; color: var(--fg-3); font-size: .9375rem; }
.foot .wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: center; }
.foot img { height: 56px; width: auto; display: block; }

/* ---------- info page ---------- */
.pagehero { padding: 72px 0 40px; border-bottom: 1px solid var(--line); background: radial-gradient(50% 120% at 90% 0%, rgba(255, 122, 26, .12), transparent 70%); }
.pagehero h1 { font-size: clamp(2.75rem, 7vw, 5rem); max-width: 14ch; }
.pagehero p { margin-top: 20px; font-size: 1.125rem; color: var(--fg-2); }
.cols { display: grid; grid-template-columns: 1.5fr 1fr; gap: 56px; align-items: start; }
.steps { list-style: none; counter-reset: s; border-top: 1px solid var(--line); margin-top: 8px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 56px 1fr; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.steps li::before { content: counter(s); font: 800 2.5rem/1 var(--display); color: var(--or); }
.steps b { display: block; font: 700 1.25rem/1.2 var(--display); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 4px; }
.steps span { color: var(--fg-2); }
.rule { padding: 22px 0; border-top: 1px solid var(--line); }
.rule h3 { font-size: 1.5rem; margin-bottom: 8px; }
.contact { border: 1px solid var(--line); border-radius: 10px; background: var(--ink-1); padding: 28px; }
.contact h2 { font-size: 2rem; margin-bottom: 20px; }
.contact dl { margin: 0 0 24px; display: grid; gap: 16px; }
.contact dt { display: flex; align-items: center; gap: 8px; color: var(--fg-3); font: 600 .8125rem/1 var(--display); letter-spacing: .16em; text-transform: uppercase; }
.contact dt .ico { color: var(--or); }
.contact dd { margin: 4px 0 0; font-size: 1.0625rem; }

/* ---------- auth ---------- */
.auth { display: grid; grid-template-columns: 1.05fr 1fr; min-height: 100vh; }
.auth-art { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; padding: 36px 48px 48px; background: radial-gradient(80% 60% at 50% 0%, rgba(255, 122, 26, .2), transparent 70%), var(--ink-1); border-right: 1px solid var(--line); }
.auth-art .brand img { height: 52px; }
.auth-art img.big { width: 130%; max-width: none; margin: 40px -15% 0 -15%; filter: drop-shadow(0 22px 30px rgba(0, 0, 0, .6)); }
.auth-art h2 { font-size: clamp(2.5rem, 4.6vw, 4rem); line-height: .92; margin-bottom: 14px; }
.auth-art h2 em { font-style: normal; color: var(--or); }
.auth-art p { color: var(--fg-2); }
.auth-form { display: grid; place-items: center; padding: 40px 24px; }
.auth-box { width: 100%; max-width: 440px; }
.auth-box h1 { font-size: 2.75rem; margin-bottom: 8px; }
.auth-box .lead { color: var(--fg-2); margin-bottom: 28px; }
.statusicon { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--or); background: var(--or-wash); color: var(--or); margin-bottom: 24px; }
.statusicon .ico { width: 32px; height: 32px; }
.demo { margin-top: 32px; padding-top: 20px; border-top: 1px dashed var(--line-2); }
.demo p { margin-bottom: 10px; }

/* ---------- forms ---------- */
.field { margin-bottom: 18px; }
.field label { display: block; font: 600 .8125rem/1 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--fg-2); margin-bottom: 8px; }
.input, .field input, .field select, .field textarea, .toolbar input, .toolbar select {
  width: 100%; padding: 12px 14px; border-radius: var(--r); border: 1px solid var(--line-2);
  background: var(--ink-2); color: var(--fg); font: 400 1rem/1.4 var(--body);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field input::placeholder, .field textarea::placeholder, .toolbar input::placeholder { color: var(--fg-3); }
.field input:focus, .field select:focus, .field textarea:focus, .toolbar input:focus, .toolbar select:focus { outline: none; border-color: var(--or); box-shadow: 0 0 0 3px rgba(255, 122, 26, .22); }
.field input[disabled] { opacity: .6; cursor: not-allowed; }
.field textarea { min-height: 120px; resize: vertical; }
.field .hint { margin: 8px 0 0; font-size: .8125rem; color: var(--fg-3); }
.field input[type="checkbox"], .tbl input[type="checkbox"] { width: 18px; height: 18px; padding: 0; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ---------- banners ---------- */
.note { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 8px; border: 1px solid; margin-bottom: 24px; font-size: .9375rem; }
.note .ico { margin-top: 2px; }
.note p { margin: 0; max-width: none; }
.note.info { color: var(--fg); background: var(--or-wash); border-color: rgba(255, 122, 26, .4); }
.note.info .ico { color: var(--or); }
.note.ok { background: var(--ok-wash); border-color: rgba(99, 211, 145, .4); }
.note.ok .ico { color: var(--ok); }
.note.lock { background: var(--ink-2); border-color: var(--line-2); border-style: dashed; color: var(--fg-2); }

/* ---------- panels, tables ---------- */
.panel { background: var(--ink-1); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.panel-pad { padding: 24px; }
.panel h2 { font-size: 1.625rem; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 20px 24px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.scroll { overflow-x: auto; }
.panel.scroll, .panel > .scroll { padding: 4px 8px 8px; }
.tbl td:first-child, .tbl th:first-child { padding-left: 14px; }
.tbl td:last-child, .tbl th:last-child { padding-right: 14px; }
.tbl { width: 100%; border-collapse: collapse; }
.tbl th { text-align: left; padding: 12px 20px; font: 600 .8125rem/1 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--fg-3); border-bottom: 1px solid var(--line-2); background: var(--ink-1); white-space: nowrap; }
.tbl td { padding: 14px 20px; border-bottom: 1px solid var(--line); vertical-align: middle; font-variant-numeric: tabular-nums; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr { transition: background .15s var(--ease); }
.tbl tbody tr:hover { background: var(--ink-2); }
.tbl th.num, .tbl td.num { text-align: right; }
.tbl .person { display: flex; align-items: center; gap: 12px; }
.tbl .person b { display: block; font-weight: 600; }
.tbl .person span { color: var(--fg-3); font-size: .875rem; }
.acts { display: flex; gap: 8px; flex-wrap: wrap; }
.toolbar { display: flex; gap: 12px; flex-wrap: wrap; padding: 16px 20px; border-bottom: 1px solid var(--line); align-items: center; }
.toolbar .search { position: relative; flex: 1; min-width: 200px; }
.toolbar .search .ico { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--fg-3); }
.toolbar .search input { padding-left: 38px; }
.toolbar select { width: auto; }
.pager { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; border-top: 1px solid var(--line); color: var(--fg-3); font-size: .875rem; }
.tabs { display: flex; gap: 4px; margin-bottom: 20px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.tabs a { padding: 12px 18px; font: 600 1.0625rem/1 var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--fg-3); }
.tabs a:hover { color: var(--fg); }
.tabs a.on { color: var(--or); box-shadow: inset 0 -2px 0 var(--or); }
.tabs a small { font: 500 .8125rem var(--body); margin-left: 4px; color: var(--fg-3); }

.feed { list-style: none; }
.feed li { display: flex; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.feed li:last-child { border-bottom: 0; }
.feed .grow { flex: 1; min-width: 0; }
.feed .grow b { font-weight: 600; }
.feed .t { color: var(--fg-3); font-size: .8125rem; display: block; }
.feed .ic { width: 36px; height: 36px; border-radius: 8px; display: grid; place-items: center; background: var(--ink-3); color: var(--or); flex: none; }
.feed .ic.ok { color: var(--ok); } .feed .ic.mute { color: var(--fg-2); }

.pulse { display: flex; gap: 0; flex-wrap: wrap; border: 1px solid var(--line); border-radius: 10px; background: var(--ink-1); margin-bottom: 28px; }
.pulse div { padding: 16px 24px; border-right: 1px solid var(--line); flex: 1; min-width: 150px; }
.pulse div:last-child { border-right: 0; }
.pulse b { display: block; white-space: nowrap; font: 700 1.75rem/1 var(--display); font-variant-numeric: tabular-nums; }
.pulse span { color: var(--fg-3); font-size: .8125rem; }
.grid2 { display: grid; grid-template-columns: 1.15fr 1fr; gap: 24px; align-items: start; }
.grid3 { display: grid; grid-template-columns: 1.6fr 1fr; gap: 24px; align-items: start; }

/* ---------- admin shell ---------- */
.shell { display: grid; grid-template-columns: 256px 1fr; min-height: 100vh; }
.rail { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 4px; padding: 20px 14px; background: var(--ink-1); border-right: 1px solid var(--line); }
.rail .brand { padding: 4px 10px 20px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.rail .brand img { height: 52px; }
.rail .brand small { color: var(--or); }
.rail a.item { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 6px; color: var(--fg-2); font-weight: 600; transition: background .2s var(--ease), color .2s var(--ease); }
.rail a.item:hover { background: var(--ink-2); color: var(--fg); }
.rail a.item.on { background: var(--or-wash); color: var(--or); }
.rail .count { margin-left: auto; background: var(--or); color: var(--or-ink); border-radius: 4px; font: 700 .75rem/1 var(--body); padding: 3px 7px; }
.rail .spacer { flex: 1; }
.main { padding: 36px 44px 96px; min-width: 0; }
.ph { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.ph h1 { font-size: clamp(2.25rem, 4vw, 3.125rem); }
.ph p { margin: 8px 0 0; color: var(--fg-2); }
.crumb { display: inline-flex; align-items: center; gap: 6px; color: var(--fg-2); font-size: .9375rem; margin-bottom: 18px; }
.crumb:hover { color: var(--or); }
.crumb .ico { transform: rotate(180deg); }

.facts { display: grid; gap: 18px; }
.facts dt { color: var(--fg-3); font: 600 .75rem/1 var(--display); letter-spacing: .16em; text-transform: uppercase; margin-bottom: 4px; }
.facts dd { margin: 0; }

/* member profile */
.idband { display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center; padding: 28px; margin-bottom: 24px; border: 1px solid var(--line); border-radius: 10px; background: radial-gradient(60% 140% at 100% 0%, rgba(255, 122, 26, .12), transparent 70%), var(--ink-1); }
.idband h1 { font-size: 2.75rem; margin-bottom: 8px; }
.patch { display: inline-flex; align-items: center; gap: 10px; padding: 8px 18px; border: 2px dashed var(--gold); outline: 2px solid var(--ink-1); outline-offset: -6px; border-radius: 6px; background: rgba(233, 178, 74, .08); color: var(--gold); font: 800 1.375rem/1 var(--display); letter-spacing: .1em; text-transform: uppercase; }
.odo-box { text-align: right; }
.odo-box .lbl { display: block; font: 600 .8125rem/1 var(--display); letter-spacing: .16em; text-transform: uppercase; color: var(--fg-3); margin-bottom: 10px; }

.thumb { height: 150px; border: 1px dashed var(--line-2); border-radius: var(--r); display: grid; place-items: center; color: var(--fg-3); font-size: .875rem; background: var(--ink-2); }

/* ---------- email preview ---------- */
.mail { max-width: 620px; margin: 0 auto 40px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line-2); }
.mail .mh { padding: 14px 20px; background: var(--ink-2); font-size: .875rem; color: var(--fg-2); line-height: 1.7; }
.mail .mh b { color: var(--fg); }
.mail .mb { background: #000; padding: 20px 28px; display: flex; align-items: center; gap: 14px; border-bottom: 3px solid var(--or); }
.mail .mb img { height: 54px; }
.mail .mb strong { font: 800 1.25rem/1 var(--display); text-transform: uppercase; letter-spacing: .08em; }
.mail .mc { background: #f4efe8; color: #1a1612; padding: 30px 32px; }
.mail .mc p { max-width: none; }
.mail .mc .btn { background: #ff7a1a; color: #160a02; }
.mail .mc .box { border: 1px solid #d9cfc2; background: #fff; border-radius: 8px; padding: 16px 18px; margin: 0 0 18px; line-height: 1.7; }
.mail .mc .sm { color: #6c6258; font-size: .875rem; }

/* sitemap */
.map { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; }
.map h2 { font-size: 1.875rem; margin-bottom: 14px; }
.map ul { list-style: none; border-top: 1px solid var(--line); }
.map li a { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--line); font-weight: 600; transition: color .2s var(--ease); }
.map li a:hover { color: var(--or); }
.map li a small { color: var(--fg-3); font-weight: 400; font-size: .8125rem; white-space: nowrap; }

.tag { position: fixed; left: 14px; bottom: 14px; z-index: 60; background: var(--ink-3); color: var(--fg-2); border: 1px solid var(--line-2); padding: 7px 12px; border-radius: 4px; font-size: .75rem; }
.tag a { color: var(--or); text-decoration: underline; text-underline-offset: 2px; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .ticket { grid-template-columns: var(--stub) 150px 1fr auto; }
  .hero-top { grid-template-columns: 1fr; }
  .hero-emblem { width: 118%; margin: 8px -9% 0; justify-self: center; }
  .cols, .grid2, .grid3 { grid-template-columns: 1fr; }
  .auth { grid-template-columns: 1fr; }
  .auth-art { display: none; }
  .shell { grid-template-columns: 1fr; }
  .rail { position: static; height: auto; flex-direction: row; align-items: center; overflow-x: auto; padding: 10px 12px; border-right: 0; border-bottom: 1px solid var(--line); }
  .rail .brand { border: 0; margin: 0; padding: 0 12px 0 0; }
  .rail .brand span, .rail .brand small { display: none; }
  .rail .brand img { height: 40px; }
  .rail a.item { white-space: nowrap; }
  .rail .spacer { display: none; }
  .main { padding: 24px 18px 96px; }
  .idband { grid-template-columns: auto 1fr; }
  .odo-box { grid-column: 1 / -1; text-align: left; }
  .map { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 720px) {
  .wrap { padding: 0 16px; }
  .sec { padding: 56px 0; }
  .brand span small { display: none; }
  .nav nav a:not(.btn):not(.keep) { display: none; }
  .ticket { --stub: 92px; grid-template-columns: 92px 1fr; }
  .ticket::before, .ticket::after { display: none; }
  .ticket .photo { grid-column: 1 / -1; grid-row: 1; min-height: 150px; border-right: 0; border-bottom: 1px solid var(--line); }
  .ticket .date b { font-size: 2.5rem; }
  .ticket .body { padding: 18px 18px 8px; }
  .ticket h3 { font-size: 1.625rem; }
  .ticket .act { grid-column: 1 / -1; grid-template-columns: 1fr auto; justify-items: stretch; align-items: center; border-top: 2px dashed var(--line-2); min-width: 0; padding: 16px 18px; }
  .ticket .act .btn { justify-self: end; }
  .board-row { grid-template-columns: 44px 1fr; gap: 12px; padding: 14px 16px; }
  .board-row .odo { grid-column: 2; --sz: 20px; }
  .board-row.first { padding: 18px 16px; }
  .rk { font-size: 2rem; } .board-row.first .rk { font-size: 2.75rem; }
  .board-row.first .who b { font-size: 1.5rem; }
  .two { grid-template-columns: 1fr; }
  .pulse { display: grid; grid-template-columns: 1fr 1fr; }
  .pulse div { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); min-width: 0; }
  .pulse div:nth-child(2n) { border-right: 0; }
  .pulse div:last-child { border-bottom: 0; }
  .odo.xl { --sz: 34px; }
  .main { padding-top: 20px; }
  .tag { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .odo i { animation: none; }
  * { transition: none !important; }
}

/* ---------- events: clickable cards, detail, route, gallery ---------- */
.ticket h3 a::after { content: ""; position: absolute; inset: 0; border-radius: 10px; }
.ticket .act .btn { position: relative; z-index: 1; }
.ticket { transition: border-color .2s var(--ease), transform .2s var(--ease); }
.ticket:not(.compact):hover { border-color: var(--or); }
.ticket h3 a:hover { color: var(--or); }
.ticket.done .photo { opacity: .75; }

.detail { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.cover { display: grid; place-items: center; align-content: center; gap: 10px; height: 340px; padding: 24px; border: 1px solid var(--line); border-radius: 10px; background: var(--ink-2); color: var(--fg-3); }
.cover .ico { width: 44px; height: 44px; }
.side-card { position: sticky; top: 96px; padding: 24px; background: var(--ink-1); border: 1px solid var(--line); border-radius: 10px; }
.shell .side-card { top: 24px; }
.price-lg { font: 800 2.5rem/1 var(--display); margin-bottom: 12px; letter-spacing: .01em; }

.mapbox { margin-bottom: 28px; padding: 16px 16px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--ink-1); }
.mapbox > svg { display: block; width: 100%; height: auto; }
.mapbox .cap { display: flex; align-items: center; gap: 8px; margin-top: 8px; color: var(--fg-3); font-size: .875rem; }
.mapbox .cap .ico { color: var(--or); }

.route { list-style: none; }
.route li { display: grid; grid-template-columns: 64px 24px minmax(0, 1fr); gap: 0 16px; padding-bottom: 28px; }
.route li:last-child { padding-bottom: 0; }
.route .tm { font: 700 1.375rem/1.3 var(--display); letter-spacing: .03em; color: var(--fg-2); text-align: right; }
.route .mk { position: relative; display: flex; justify-content: center; }
.route .mk::before { content: ""; position: absolute; top: 24px; bottom: -28px; border-left: 2px dashed var(--line-2); }
.route li:last-child .mk::before { display: none; }
.route .dot { position: relative; width: 14px; height: 14px; margin-top: 8px; border-radius: 50%; background: var(--or); box-shadow: 0 0 0 5px var(--ink-0); }
.route .c b { display: block; margin-bottom: 8px; font: 700 1.5rem/1.15 var(--display); text-transform: uppercase; letter-spacing: .03em; }
.route .c p { margin: 8px 0 0; color: var(--fg-2); }

.gallery { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 150px; grid-auto-flow: dense; gap: 10px; }
.shot { position: relative; display: grid; place-items: center; align-content: center; gap: 6px; border: 1px solid var(--line); border-radius: 8px; background: var(--ink-2); color: var(--fg-3); font-size: .8125rem; transition: border-color .2s var(--ease), background .2s var(--ease); }
.shot .ico { width: 30px; height: 30px; }
.shot.w { grid-column: span 2; }
.shot.t { grid-row: span 2; }
a.shot:hover { border-color: var(--or); background: var(--ink-3); color: var(--fg-2); }
.gallery.locked .shot { opacity: .45; }
.lockcard { position: absolute; inset: 0; z-index: 2; display: grid; align-content: center; justify-items: center; margin: auto; width: min(420px, calc(100% - 32px)); height: fit-content; padding: 28px 24px; text-align: center; background: var(--ink-1); border: 1px solid var(--line-2); border-radius: 10px; box-shadow: 0 24px 48px rgba(0, 0, 0, .55); }
.gallery.admin { grid-auto-rows: 120px; }
.shot .rm { position: absolute; top: 8px; right: 8px; padding: 5px 8px; background: var(--ink-1); }

.stoprow { display: grid; grid-template-columns: 130px 150px minmax(0, 1fr) auto; gap: 10px; margin-bottom: 14px; align-items: center; }
.stoprow > a { grid-column: 4; grid-row: 1; }
.stoprow .input:nth-child(4) { grid-column: 1 / 4; grid-row: 2; }
.stoprow.head { color: var(--fg-3); font: 600 .75rem/1 var(--display); letter-spacing: .14em; text-transform: uppercase; margin-bottom: 8px; }
.stoprow .input { padding: 10px 12px; }

@media (max-width: 960px) {
  .detail { grid-template-columns: 1fr; }
  .side-card { position: static; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .stoprow { grid-template-columns: 1fr 1fr auto; }
  .stoprow.head { display: none; }
  .stoprow .input:nth-child(3) { grid-column: 1 / -1; }
  .stoprow > a { grid-column: 3; grid-row: 1; }
  .stoprow .input:nth-child(1) { grid-column: 1; }
  .stoprow .input:nth-child(4) { grid-column: 1 / -1; grid-row: auto; }
}
@media (max-width: 720px) {
  .cover { height: 220px; }
  .route li { grid-template-columns: 52px 20px minmax(0, 1fr); gap: 0 10px; }
  .gallery { grid-auto-rows: 120px; }
  .lockcard { padding: 20px 16px; }
}

/* ---------- member finder ---------- */
.finder { margin-top: 40px; padding: 28px; border: 1px solid var(--line); border-radius: 10px; background: var(--ink-1); }
.finder h3 { font-size: 2rem; margin-bottom: 8px; }
.finder > p.muted { margin-bottom: 0; }
.finder-form { display: flex; gap: 10px; margin: 18px 0 16px; align-items: stretch; }
.search { position: relative; flex: 1; min-width: 0; }
.search .ico { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--fg-3); pointer-events: none; }
.search .input { padding-left: 42px; height: 100%; }
.finder .board { background: var(--ink-0); }
@media (max-width: 720px) { .finder { padding: 18px; } .finder-form { flex-direction: column; } }
.board.plain .board-row .rk { color: var(--fg-3); }
