@font-face { font-family: 'Inter'; font-style: normal; font-display: swap; font-weight: 100 900; src: url(inter-latin.woff2) format('woff2-variations'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
:root {
  --ink: #090909; --red: #eb0000; --red-dark: #c40000; --paper: #f4f3f1; --paper-2: #ebe8e3;
  --muted: #5c5c5c; --line: rgba(9, 9, 9, 0.1); --line-strong: rgba(9, 9, 9, 0.22);
  --r-sm: 5px; --r-md: 8px; --r-pill: 999px;
  --shadow: 0 1px 2px rgba(9, 9, 9, 0.06), 0 8px 24px rgba(9, 9, 9, 0.08);
  --ring: 0 0 0 3px rgba(235, 0, 0, 0.2);
  --ease: 180ms ease-out;
  --font: Inter, Arial, Helvetica, sans-serif;
  --level-1: #1a5fb4; --level-2: var(--red); --level-3: var(--ink);
}
*, *::before, *::after { box-sizing: border-box; }
/* Header and footer: they follow the current muscleactivation.com. Inter is used here only; the page body keeps its own font. */
.site-header, .site-footer { font-family: Inter, Arial, sans-serif; background: #000000; }
.site-header a, .site-footer a { text-decoration: none; }
.site-header { position: sticky; top: 0; z-index: 10; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 100px; padding: 0 max(50px, calc((100% - 1212px) / 2)); color: #ffffff; }
.site-header a { color: #ffffff; }
.site-header .logo { flex: none; display: block; }
.site-header .logo { justify-self: start; }
.site-header .logo img { display: block; height: 52px; width: auto; }
.site-header nav { justify-self: center; align-self: stretch; }
.site-header .actions { justify-self: end; display: flex; align-items: center; gap: 6px; }
.site-header nav ul { display: flex; align-items: stretch; height: 100%; gap: 30px; margin: 0; padding: 0; list-style: none; }
.site-header nav li { position: relative; display: flex; align-items: center; }
.site-header nav a { display: inline-flex; align-items: center; gap: 6px; font-size: 16px; font-weight: 600; line-height: 24px; }
.site-header nav a[aria-current="true"] { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 8px; }
.site-header .icon { width: 10px; height: 10px; fill: currentColor; }
.site-header .icon.bars { width: 24px; height: 24px; }
.site-header .sub { display: none; position: absolute; top: 100%; left: -15px; min-width: 200px; margin: 0; padding: 8px 0; list-style: none; background: #000000; }
.site-header .sub li { display: block; }
.site-header .sub a { display: flex; padding: 10px 15px; }
.site-header .has-sub:hover > .sub, .site-header .has-sub:focus-within > .sub { display: block; }
.site-header .member-login, .site-header .become { display: inline-flex; align-items: center; font-size: 14px; font-weight: 500; line-height: 14px; }
.site-header .member-login { padding: 10px 15px; }
.site-header .become { height: 34px; padding: 0 15px; border-radius: 5px; background: #eb0000; }
.site-header .menu-toggle { display: none; }
.site-footer { padding: 50px 50px 60px; color: #c5c5c5; }
.site-footer-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px; }
.site-footer .copyright { align-self: center; margin: 0; font-size: 13px; font-weight: 500; color: #9e9e9e; }
.site-footer h2 { margin: 0 0 20px; font-size: 18px; font-weight: 700; letter-spacing: 0; text-transform: none; color: #ffffff; }
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer li { margin: 0 0 7px; font-size: 16px; font-weight: 600; line-height: 24px; }
.site-footer li, .site-footer a { display: flex; align-items: center; color: #c5c5c5; }
.site-footer a:hover { color: #ffffff; }
.site-footer .icon { flex: none; width: 14px; height: 14px; margin-right: 9px; fill: #d5d5d5; }
.site-header a:focus-visible, .site-header button:focus-visible, .site-footer a:focus-visible { outline-color: #ffffff; }
/* The header collapses at this width; keep it in step with MENU_DESKTOP_QUERY in src/client/menu.ts. */
@media (max-width: 1024px) {
  .site-header { position: static; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; column-gap: 4px; height: auto; padding: 12px 16px; }
  .site-header .logo { grid-column: 1; grid-row: 1; justify-self: start; }
  .site-header .actions { display: contents; }
  .site-header .member-login { grid-column: 2; grid-row: 1; min-height: 44px; }
  .site-header .menu-toggle { grid-column: 3; grid-row: 1; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0; background: transparent; color: #ffffff; cursor: pointer; }
  .site-header .become { grid-column: 1 / -1; grid-row: 2; justify-content: center; height: 44px; margin-top: 12px; }
  .site-header nav { grid-column: 1 / -1; grid-row: 3; margin: 8px 0 0; align-self: auto; justify-self: stretch; }
  .site-header:not(.menu-open) nav { display: none; }
  .site-header nav ul { flex-direction: column; height: auto; gap: 0; }
  .site-header nav li { display: block; }
  .site-header nav a { display: flex; min-height: 44px; }
  .site-header .sub { display: block; position: static; min-width: 0; padding: 0 0 0 20px; }
  .site-header .sub a { padding: 0; }
}
@media (max-width: 767px) {
  .site-footer { padding: 40px 16px; }
  .site-footer-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .site-footer .copyright { order: 5; align-self: start; }
  .site-footer li a { min-height: 44px; }
}


/* MAT Shop page styles (DESIGN.md tokens; header/footer block above is frozen). */
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.5; color: var(--ink); background: #ffffff; -webkit-font-smoothing: antialiased; }
a { color: var(--ink); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--red); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 20; padding: 10px 16px; border-radius: var(--r-pill); background: var(--ink); color: #ffffff; }
.skip-link:focus { top: 12px; }
main { max-width: 1040px; margin: 0 auto; padding: 32px 16px 56px; }
main:focus { outline: none; }
h1 { margin: 12px 0 20px; font-size: 34px; font-weight: 600; line-height: 1.1; letter-spacing: -0.02em; }
h2 { margin: 32px 0 10px; font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.lead { max-width: 640px; color: var(--muted); }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border: 0; border-radius: var(--r-sm); background: var(--red); color: #ffffff; font: inherit; font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: background var(--ease); }
.btn:hover { background: var(--red-dark); }
.btn.ghost { background: #ffffff; color: var(--ink); border: 1px solid var(--line-strong); }
.btn.ghost:hover { border-color: var(--ink); }
.shop-nav { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 8px; }
.shop-nav a { padding: 8px 14px; border: 1px solid var(--line-strong); border-radius: var(--r-pill); text-decoration: none; font-size: 14px; font-weight: 600; }
.shop-nav a[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: #ffffff; }
.shop-nav form { margin-left: auto; }
.shop-nav .signout { padding: 8px 0; border: 0; background: none; font: inherit; font-size: 14px; color: var(--muted); text-decoration: underline; cursor: pointer; }
.field { margin: 0 0 20px; max-width: 420px; }
.field label { display: block; font-weight: 600; margin-bottom: 4px; }
.field input { display: block; width: 100%; min-height: 48px; padding: 12px 14px; font: inherit; font-size: 15px; color: var(--ink); border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: #ffffff; }
.field input:focus { outline: none; border-color: var(--red); box-shadow: var(--ring); }
.field-error { margin: 6px 0 0; font-size: 13px; font-weight: 600; color: var(--red); }
.notice { max-width: 640px; padding: 16px 18px; border-radius: var(--r-md); background: var(--paper); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.card { display: flex; flex-direction: column; gap: 6px; padding: 18px; border: 1px solid var(--line); border-radius: var(--r-md); background: #ffffff; }
.card:target { border-color: var(--red); box-shadow: var(--ring); }
.card h3 { margin: 0; font-size: 18px; font-weight: 600; line-height: 1.25; }
.card .when, .card .where { margin: 0; font-size: 14px; color: var(--muted); }
.card .desc { margin: 4px 0 0; font-size: 14px; }
.card .price { margin: 8px 0 0; font-weight: 600; }
.card form, .card .sold-out { margin-top: auto; padding-top: 12px; }
.card .hint { margin: 8px 0 0; font-size: 13px; color: var(--muted); }
.card .sold-out { font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.cal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 8px 0 12px; }
.cal-head h2 { margin: 0; font-size: 18px; letter-spacing: 0; text-transform: none; color: var(--ink); }
.cal { width: 100%; border-collapse: collapse; table-layout: fixed; }
.cal th { padding: 6px; font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); text-align: left; }
.cal td { height: 92px; padding: 6px; vertical-align: top; border: 1px solid var(--line); }
.cal td.out { background: var(--paper); color: var(--muted); }
.cal .day { display: block; font-size: 12px; font-weight: 600; }
.cal .ev { display: block; margin-top: 4px; padding: 3px 6px; border-radius: var(--r-sm); background: var(--ink); color: #ffffff; font-size: 12px; line-height: 1.3; text-decoration: none; }
.foot { margin-top: 48px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
@media (max-width: 640px) {
  h1 { font-size: 28px; }
  .cal { display: none; }
  .field input { font-size: 16px; }
}

/* Admin (Plan B) */
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.hint { margin: 4px 0 0; font-size: 13px; color: var(--muted); }
.field select, .field textarea { display: block; width: 100%; min-height: 48px; padding: 12px 14px; font: inherit; font-size: 15px; color: var(--ink); border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: #ffffff; }
.field textarea { min-height: 120px; resize: vertical; }
.field select:focus, .field textarea:focus { outline: none; border-color: var(--red); box-shadow: var(--ring); }
.admin-filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; margin: 0 0 20px; }
.admin-filters .field { margin: 0; min-width: 180px; }
.table-wrap { overflow-x: auto; }
.table-wrap:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.admin-table th, .admin-table td { padding: 10px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.version-id { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; user-select: all; word-break: break-all; }
.admin-table th { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.errors { max-width: 640px; margin: 0 0 20px; padding: 16px 18px; border: 1px solid var(--red); border-radius: var(--r-md); }
.errors h2 { margin: 0 0 6px; color: var(--red); }
.errors ul { margin: 0; padding-left: 18px; }
.saved { margin: 0 0 16px; }
.check { display: flex; gap: 8px; align-items: flex-start; margin: 0 0 8px; }
.check input { flex: none; width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--red); }
.btn.small { min-height: 36px; padding: 0 14px; font-size: 12px; }
.inline-form { display: inline-block; margin: 0 6px 6px 0; }
.record { margin: 0 0 16px; }
.record dt { font-weight: 600; }
.record dd { margin: 0 0 10px; }
.explain { padding: 12px 0; border-top: 1px solid var(--line); }
.explain h3 { margin: 0 0 4px; font-size: 16px; font-weight: 600; }
.explain ul { margin: 6px 0 0; padding-left: 20px; }
.explain .chosen { font-weight: 600; }

.picker { max-width: 760px; margin: 0 0 20px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-md); }
.picker legend { padding: 0 6px; font-weight: 600; }
.picker details { margin-top: 8px; }
.picker summary { cursor: pointer; font-weight: 600; }
.groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px 20px; margin: 8px 0; }
.group .members { margin-left: 26px; }
.members.columns { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 0 20px; max-height: 360px; overflow-y: auto; margin-top: 8px; }
.rule-editor h2 { margin-top: 28px; }
.offer-list { padding-left: 20px; }
.offer-list li { margin: 0 0 10px; }
.offer-list .hint { margin: 2px 0 0; }
