/* LionWorks brand: the public pages (front page, club landing pages), the login and two-step screens,
 * and the Creator console's frame. Lions blue and gold, a system font stack, nothing loaded from other sites.
 *
 * brand.php pages load only this file. bare.php and platform.php load app.css first, then this file,
 * so everything here that could touch app.css classes is scoped to .lw-auth or .is-platform.
 * Text on gold is always dark (blue or ink), never white. */

:root {
  --lw-blue: #1c4f9c;        /* measured from the emblem; the big blue bands */
  --lw-blue-deep: #00338d;   /* official LCI blue; buttons, links, headings */
  --lw-blue-ink: #0b2350;    /* darkest blue, for text on gold */
  --lw-blue-soft: #e8eef9;
  --lw-gold: #fccb06;        /* measured from the emblem */
  --lw-gold-deep: #ebb700;   /* official LCI gold */
  --lw-gold-soft: #fff6d1;
  --lw-ink: #141c2e;
  --lw-text: #26304a;
  --lw-muted: #5a6478;
  --lw-line: #e2e7f0;
  --lw-input: #9aa5b8;
  --lw-bg: #f4f6fb;
  --lw-surface: #ffffff;
  --lw-red: #b3261e;
  --lw-red-bg: #fde8e6;
  --lw-green: #1d6b2c;
  --lw-green-bg: #e3f3e6;

  --lw-r-sm: 10px;
  --lw-r: 14px;
  --lw-r-lg: 22px;
  --lw-shadow-sm: 0 1px 2px rgba(16, 32, 72, .06), 0 1px 3px rgba(16, 32, 72, .06);
  --lw-shadow: 0 2px 6px rgba(16, 32, 72, .06), 0 10px 30px rgba(16, 32, 72, .08);
  --lw-shadow-lg: 0 4px 12px rgba(16, 32, 72, .08), 0 24px 60px rgba(16, 32, 72, .16);

  --lw-font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --lw-wide: 1120px;
  --lw-gutter: 20px;
}

/* ---------- Base for the brand.php pages ---------- */
body.lw-public {
  margin: 0;
  background: var(--lw-bg);
  color: var(--lw-text);
  font: 17px/1.55 var(--lw-font);
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
  min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column;
}
body.lw-public > main { flex: 1 0 auto; }
:where(.lw-public) *, :where(.lw-public) *::before, :where(.lw-public) *::after { box-sizing: border-box; }
:where(.lw-public) img { max-width: 100%; }
:where(.lw-public) :where(h1, h2, h3) { color: var(--lw-ink); line-height: 1.15; margin: 0 0 12px; letter-spacing: -.01em; }
:where(.lw-public) p { margin: 0 0 14px; }
:where(.lw-public) a { color: var(--lw-blue-deep); text-underline-offset: 3px; }

.lw-public a:focus-visible, .lw-public button:focus-visible,
.lw-auth a:focus-visible, .lw-auth button:focus-visible, .lw-auth input:focus-visible,
.is-platform a:focus-visible, .is-platform button:focus-visible, .is-platform input:focus-visible,
.is-platform summary:focus-visible {
  outline: 3px solid var(--lw-gold);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px var(--lw-blue-deep);
  border-radius: 6px;
}

.lw-skip { position: absolute; left: -999px; top: 8px; }
.lw-skip:focus { left: 8px; z-index: 100; background: #fff; padding: 10px 14px; border-radius: var(--lw-r-sm); }

.lw-wrap { width: 100%; max-width: var(--lw-wide); margin: 0 auto; padding: 0 var(--lw-gutter); }

/* ---------- Buttons ---------- */
.lw-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px;
  border: 2px solid transparent; border-radius: 999px;
  font: inherit; font-weight: 700; font-size: 1rem; line-height: 1.1;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .15s, border-color .15s, color .15s, transform .1s, box-shadow .15s;
}
.lw-btn:active { transform: translateY(1px); }
.lw-btn-gold { background: var(--lw-gold); color: var(--lw-blue-ink) !important; box-shadow: 0 2px 0 var(--lw-gold-deep), var(--lw-shadow-sm); }
.lw-btn-gold:hover { background: #ffd633; }
.lw-btn-blue { background: var(--lw-blue-deep); color: #fff !important; }
.lw-btn-blue:hover { background: #00287a; }
.lw-btn-outline { background: transparent; border-color: currentColor; color: var(--lw-blue-deep) !important; }
.lw-btn-outline:hover { background: var(--lw-blue-soft); }
.lw-btn-sm { min-height: 44px; padding: 0 18px; font-size: .95rem; }
.lw-btn-lg { min-height: 56px; padding: 0 32px; font-size: 1.08rem; }
.lw-btn svg { width: 20px; height: 20px; flex: 0 0 auto; }

/* ---------- Top bar (white, so the emblem sits on its own clear space) ---------- */
.lw-bar { background: var(--lw-surface); border-bottom: 1px solid var(--lw-line); position: relative; z-index: 2; }
.lw-bar::after { /* thin gold and blue rule, like the poster's bands */
  content: ""; position: absolute; left: 0; right: 0; bottom: -5px; height: 4px;
  background: linear-gradient(90deg, var(--lw-blue) 0 70%, var(--lw-gold) 70% 100%);
}
.lw-bar-inner { display: flex; align-items: center; gap: 12px; min-height: 72px; }
.lw-mark { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--lw-ink); min-width: 0; }
.lw-mark img { width: 48px; height: auto; flex: 0 0 auto; }
.lw-mark-name { font-weight: 800; font-size: 1.2rem; letter-spacing: -.01em; color: var(--lw-blue-deep); }
.lw-mark-sub { display: block; font-size: .8rem; font-weight: 600; color: var(--lw-muted); letter-spacing: 0; }
.lw-mark-text { min-width: 0; line-height: 1.2; }
.lw-mark-text .lw-mark-name {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
  font-size: 1rem; line-height: 1.2; overflow-wrap: anywhere;
}
@media (min-width: 600px) { .lw-mark-text .lw-mark-name { font-size: 1.2rem; } }
.lw-bar-action { margin-left: auto; flex: 0 0 auto; }

/* ---------- The poster look: blue band with a diagonal gold stripe ---------- */
.lw-band {
  position: relative; overflow: hidden; color: #fff;
  background:
    linear-gradient(168deg, transparent 0 74%, var(--lw-gold) 74% 80%, transparent 80%),
    linear-gradient(168deg, var(--lw-blue) 0 100%);
}
.lw-band > * { position: relative; }

/* ---------- Front page (lionworks.app) ---------- */
.lw-hero { padding: 28px 0 56px; }
.lw-hero-grid { display: grid; gap: 32px; align-items: center; }
.lw-eyebrow {
  display: inline-block; margin: 0 0 14px; padding: 4px 12px; border-radius: 999px;
  background: var(--lw-gold); color: var(--lw-blue-ink); font-size: .8rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
}
.lw-hero h1 { color: #fff; font-size: clamp(2.1rem, 8.5vw, 3.6rem); font-weight: 850; letter-spacing: -.025em; margin: 0 0 18px; }
.lw-hero h1 em { font-style: normal; color: var(--lw-gold); }
.lw-hero-lead { font-size: 1.12rem; color: #eef3ff; max-width: 34em; }
.lw-hero-text { min-width: 0; }

/* Member login card on the front page (sits on the blue band) */
.lw-login-card {
  background: var(--lw-surface); color: var(--lw-text); border-radius: var(--lw-r-lg); box-shadow: var(--lw-shadow-lg);
  padding: 26px 22px 22px; border-top: 5px solid var(--lw-gold); width: 100%; max-width: 460px; justify-self: center;
}
.lw-login-card h2 { font-size: 1.4rem; font-weight: 800; margin: 0 0 6px; }
.lw-login-sub { color: var(--lw-muted); font-size: .95rem; margin: 0 0 18px; }
.lw-login-foot { text-align: center; font-size: .88rem; color: var(--lw-muted); margin: 14px 0 0; }
.lw-address { border-radius: var(--lw-r); }
.lw-address-label { display: block; font-size: .85rem; font-weight: 700; margin: 0 0 4px; }
.lw-address-url { display: block; font-weight: 800; overflow-wrap: anywhere; }
.lw-login-card .lw-address { margin: 18px 0 0; padding: 14px 16px; background: var(--lw-blue-soft); border: 0; max-width: none; }
.lw-login-card .lw-address-label { color: var(--lw-muted); }
.lw-login-card .lw-address-url { color: var(--lw-blue-ink); font-size: 1.05rem; }
.lw-login-card .lw-address-url span { color: var(--lw-blue-deep); text-decoration: underline; text-decoration-color: var(--lw-gold); text-decoration-thickness: 3px; text-underline-offset: 4px; }

/* Forms on brand.php pages (no app.css there) */
.lw-form { display: grid; gap: 16px; }
.lw-field { display: grid; gap: 6px; min-width: 0; }
.lw-field label { font-weight: 700; font-size: .92rem; color: var(--lw-ink); }
.lw-input {
  display: block; width: 100%; min-height: 52px; padding: 12px 14px;
  border: 1.5px solid var(--lw-input); border-radius: 12px; background: #fff; color: var(--lw-ink);
  font: inherit; font-size: 16px; transition: border-color .15s, box-shadow .15s;
}
.lw-input:focus { outline: none; border-color: var(--lw-blue-deep); box-shadow: 0 0 0 4px rgba(0, 51, 141, .18); }
.lw-btn-block { display: flex; width: 100%; }
.lw-public .flash { padding: 12px 14px; border-radius: 12px; font-weight: 600; font-size: .95rem; }
.lw-public .flash-error { background: var(--lw-red-bg); color: var(--lw-red); border: 1px solid #f3b9b4; }
.lw-public .flash-info, .lw-public .flash-success { background: var(--lw-blue-soft); color: var(--lw-blue-ink); }

/* "Want to join" strip with Daniel's poster */
.lw-join { background: var(--lw-surface); border-top: 1px solid var(--lw-line); padding: 48px 0; }
.lw-join-grid { display: grid; gap: 28px; align-items: center; }
.lw-join h2 { font-size: clamp(1.4rem, 5vw, 1.9rem); }
.lw-join p { color: var(--lw-muted); max-width: 34em; }
.lw-join-poster { margin: 0; width: 100%; max-width: 360px; justify-self: center; border-radius: var(--lw-r-lg); overflow: hidden; box-shadow: var(--lw-shadow); }
.lw-join-poster img { display: block; width: 100%; height: auto; }

.lw-section { padding: 56px 0; }
.lw-section-title { font-size: clamp(1.5rem, 5vw, 2rem); text-align: center; margin: 0 0 8px; }
.lw-section-lead { text-align: center; color: var(--lw-muted); max-width: 36em; margin: 0 auto 32px; }
.lw-features { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.lw-feature {
  background: var(--lw-surface); border: 1px solid var(--lw-line); border-radius: var(--lw-r-lg);
  padding: 24px; box-shadow: var(--lw-shadow-sm);
}
.lw-feature h3 { font-size: 1.12rem; margin: 14px 0 6px; }
.lw-feature p { margin: 0; color: var(--lw-muted); font-size: .98rem; }
.lw-feature-icon {
  display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 14px;
  background: var(--lw-blue-soft); color: var(--lw-blue-deep);
}
.lw-feature:nth-child(2) .lw-feature-icon { background: var(--lw-gold-soft); color: var(--lw-blue-ink); }
.lw-feature-icon svg { width: 24px; height: 24px; }

/* ---------- Footer ---------- */
.lw-footer { border-top: 1px solid var(--lw-line); background: var(--lw-surface); padding: 24px 0 calc(24px + env(safe-area-inset-bottom, 0px)); }
.lw-footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; }
.lw-footer p { margin: 0; font-size: .85rem; color: var(--lw-muted); }
.lw-footer-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; color: var(--lw-blue-deep); }
.lw-footer-brand img { width: 45px; height: auto; }

/* ---------- Club landing page ---------- */
.landing-preview {
  margin: 0; padding: 10px var(--lw-gutter); text-align: center; font-size: .92rem; font-weight: 600;
  background: var(--lw-gold); color: var(--lw-blue-ink);
}
.landing-preview a { color: var(--lw-blue-ink); font-weight: 800; }

.landing { display: block; }
.landing-top { padding: 0 0 36px; }
.landing-top.lw-band { background: var(--lw-blue); } /* the diagonal stripe joins in on wider screens, where it can't cross the text */
.landing-showcase { display: grid; gap: 0; }
.landing-hero { margin: 0 calc(-1 * var(--lw-gutter)); }
.landing-hero img { display: block; width: 100%; height: auto; }

.landing-body { padding: 28px 0 8px; }
.landing-kicker {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 12px;
  font-size: .8rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--lw-gold);
}
.landing-kicker::before { content: ""; width: 28px; height: 4px; border-radius: 2px; background: var(--lw-gold); }
.landing-name { color: #fff; font-size: clamp(2rem, 8vw, 3rem); font-weight: 850; letter-spacing: -.025em; overflow-wrap: anywhere; }
.landing-welcome { font-size: 1.1rem; color: #eef3ff; white-space: normal; overflow-wrap: anywhere; max-width: 36em; }

.landing-login { margin: 24px 0 0; }
.landing-login-button { width: 100%; }

.landing-details { display: grid; gap: 16px; padding-top: 24px; padding-bottom: 48px; }
.landing-card {
  background: var(--lw-surface); border: 1px solid var(--lw-line); border-radius: var(--lw-r-lg);
  padding: 22px 22px 18px; box-shadow: var(--lw-shadow-sm); min-width: 0;
}
.landing-card h2 { display: flex; align-items: center; gap: 10px; font-size: 1.1rem; margin: 0 0 14px; }
.landing-card h2 svg { width: 22px; height: 22px; color: var(--lw-blue-deep); flex: 0 0 auto; }
.landing-meeting p { display: grid; grid-template-columns: 4.5em 1fr; gap: 12px; margin: 0; padding: 10px 0; border-top: 1px solid var(--lw-line); overflow-wrap: anywhere; }
.landing-meeting p:first-of-type { border-top: 0; padding-top: 0; }
.landing-meeting p span { font-size: .8rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--lw-muted); padding-top: 3px; }
.landing-contact { margin: 0; overflow-wrap: anywhere; }
.landing-contact a { font-weight: 700; }

.landing-join {
  display: grid; gap: 6px; align-content: center;
  background: var(--lw-gold); border: 0; color: var(--lw-blue-ink);
}
.landing-join h2 { color: var(--lw-blue-ink); margin-bottom: 4px; }
.landing-join p { margin: 0; }

.landing-footer { margin-top: 0; }

/* ---------- Login and two-step screens (bare.php, on top of app.css) ---------- */
body.lw-auth {
  min-height: 100vh; min-height: 100dvh; padding: 0;
  background: var(--lw-bg); color: var(--lw-text); font-family: var(--lw-font);
  display: flex; flex-direction: column;
}
.lw-auth .lw-auth-band { height: 200px; flex: 0 0 auto; }
.lw-auth-main {
  flex: 1 0 auto; width: 100%; max-width: 480px; margin: -150px auto 0; padding: 0 16px 24px;
  position: relative; z-index: 1;
}
.lw-auth-panel {
  background: var(--lw-surface); border-radius: var(--lw-r-lg); box-shadow: var(--lw-shadow-lg);
  padding: 28px 22px 24px; border-top: 5px solid var(--lw-gold);
}
.lw-auth-brand { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; margin: 0 0 20px; }
.lw-auth-brand img { width: 84px; height: auto; }
.lw-auth-brand .lw-mark-name { font-size: 1.35rem; }
.lw-auth-badge {
  display: inline-block; padding: 3px 12px; border-radius: 999px; font-size: .75rem; font-weight: 800;
  letter-spacing: .06em; text-transform: uppercase; background: var(--lw-blue-soft); color: var(--lw-blue-deep);
}
.lw-auth-title { font-size: 1.45rem; font-weight: 800; color: var(--lw-ink); text-align: center; margin: 0 0 6px; letter-spacing: -.01em; }
.lw-auth-sub { text-align: center; color: var(--lw-muted); margin: 0 0 4px; font-size: .95rem; }
.lw-auth-form { display: grid; gap: 16px; }
.lw-auth-form + .lw-auth-form, .lw-auth-form + form { margin-top: 10px; }
.lw-auth-divider { height: 1px; background: var(--lw-line); margin: 20px 0 6px; border: 0; }
.lw-auth-help { text-align: center; font-size: .88rem; color: var(--lw-muted); margin: 4px 0 0; }
.lw-auth-foot { text-align: center; font-size: .8rem; color: var(--lw-muted); margin: 20px auto 0; max-width: 30em; line-height: 1.45; }
.lw-auth-foot img { display: block; margin: 0 auto 8px; width: 45px; height: auto; opacity: .95; }

/* app.css pieces, tuned for the sign-in card */
.lw-auth .field > label { font-size: .92rem; color: var(--lw-ink); margin-bottom: 6px; }
.lw-auth input:not([type=checkbox]):not([type=radio]):not([type=range]) {
  min-height: 52px; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--lw-input); background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.lw-auth input:not([type=checkbox]):not([type=radio]):not([type=range]):focus {
  outline: none; border-color: var(--lw-blue-deep); box-shadow: 0 0 0 4px rgba(0, 51, 141, .18);
}
.lw-auth input:not([type=checkbox]):not([type=radio]):not([type=range]):focus-visible { border-radius: 12px; outline-offset: 2px; }
.lw-auth input[name=code], .lw-auth input[name=stepup_code] { font-size: 1.35rem; letter-spacing: .18em; text-align: center; font-weight: 700; }
.lw-auth .btn { min-height: 52px; padding: 10px 20px; border-radius: 999px; font-weight: 800; font-size: 1.02rem; line-height: 1.25; text-align: center; }
.lw-auth .btn-primary { background: var(--lw-blue-deep); border-color: var(--lw-blue-deep); color: #fff; box-shadow: 0 2px 8px rgba(0, 51, 141, .25); }
.lw-auth .btn-primary:hover { background: #00287a; }
.lw-auth .btn-ghost { color: var(--lw-blue-deep); }
.lw-auth .btn-ghost:hover { background: var(--lw-blue-soft); }
.lw-auth .flash { border-radius: 12px; margin: 0 0 16px; }
.lw-auth .lw-auth-form .flash { margin: 0; }
.lw-auth .hint { font-size: .85rem; }
.lw-auth .card { background: transparent; border: 0; box-shadow: none; padding: 0; margin: 0; }
.lw-auth .empty-title { font-size: 1.3rem; font-weight: 800; color: var(--lw-ink); text-align: center; }

/* Front-page login: "Which club?" and "Taking you to your club" */
.lw-choices { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.lw-choices form { margin: 0; }
.lw-choice {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 60px;
  padding: 12px 18px; border: 1.5px solid var(--lw-line); border-radius: var(--lw-r); background: #fff; cursor: pointer;
  font: inherit; font-weight: 700; font-size: 1.05rem; color: var(--lw-ink); text-align: left;
  transition: border-color .15s, background-color .15s, box-shadow .15s;
}
.lw-choice:hover { border-color: var(--lw-blue-deep); background: var(--lw-blue-soft); }
.lw-choice-name { min-width: 0; overflow-wrap: anywhere; }
.lw-choice-go {
  flex: 0 0 auto; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--lw-gold); color: var(--lw-blue-ink); font-weight: 800;
}
.lw-handoff { text-align: center; }
.lw-spinner {
  display: block; width: 40px; height: 40px; margin: 0 auto 14px; border-radius: 50%;
  border: 4px solid var(--lw-blue-soft); border-top-color: var(--lw-blue-deep); animation: lw-spin .9s linear infinite;
}
@keyframes lw-spin { to { transform: rotate(360deg); } }

/* Two-step setup */
.lw-auth .steps { gap: 16px; padding-left: 0; list-style: none; counter-reset: lwstep; margin: 4px 0 0; }
.lw-auth .steps > li { counter-increment: lwstep; position: relative; padding-left: 44px; }
.lw-auth .steps > li::before {
  content: counter(lwstep); position: absolute; left: 0; top: -2px; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; background: var(--lw-blue-deep); color: #fff; font-weight: 800; font-size: .9rem;
}
.lw-auth .qr { display: flex; justify-content: center; margin: 14px 0 14px -44px; padding: 12px; border: 1px solid var(--lw-line); border-radius: var(--lw-r); background: #fff; }
.lw-auth .qr img { border-radius: 0; }
.lw-auth .setup-key {
  border-radius: 10px; background: var(--lw-blue-soft); color: var(--lw-blue-ink); border: 1px dashed #9fb3d9;
  font-weight: 700; word-break: break-word; text-align: center;
}

/* Recovery codes */
.lw-auth .recovery-codes {
  list-style: none; margin: 4px 0 0; padding: 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px;
  background: var(--lw-gold-soft); border: 1px solid #f1d977; border-radius: var(--lw-r);
}
.lw-auth .recovery-codes code {
  display: block; text-align: center; padding: 8px 4px; border-radius: 8px; background: #fff;
  font-size: .98rem; font-weight: 700; letter-spacing: .04em; color: var(--lw-ink);
}

/* ---------- Creator console (platform.php, on top of app.css) ---------- */
body.is-platform { background: var(--lw-bg); font-family: var(--lw-font); padding-bottom: 32px; }
.is-platform .platform-bar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 8px max(16px, calc((100% - 960px) / 2));
  background: var(--lw-surface); border-bottom: 1px solid var(--lw-line);
  box-shadow: 0 3px 0 var(--lw-gold);
}
.is-platform .platform-bar img { width: 45px; height: auto; flex: 0 0 auto; }
.is-platform .platform-back {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; margin-left: -6px;
  color: var(--lw-blue-deep); text-decoration: none; font-size: 1.4rem; font-weight: 700;
}
.is-platform .platform-back:hover { background: var(--lw-blue-soft); }
.is-platform .platform-title { line-height: 1.15; min-width: 0; }
.is-platform .platform-title strong { display: block; color: var(--lw-blue-deep); font-size: 1.12rem; font-weight: 800; }
.is-platform .platform-title span { display: block; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--lw-muted); }
.is-platform .platform-logout { margin: 0 0 0 auto; }
.is-platform .platform-logout .btn { min-height: 44px; }
.is-platform .page { max-width: 960px; padding-top: 24px; }
.is-platform .platform-h1 { font-size: clamp(1.5rem, 5vw, 2rem); font-weight: 800; color: var(--lw-ink); letter-spacing: -.01em; margin: 4px 0 18px; }
.is-platform .card { border-color: var(--lw-line); border-radius: var(--lw-r); box-shadow: var(--lw-shadow-sm); padding: 20px; margin-bottom: 16px; }
.is-platform .card.rows, .is-platform .rows.card { padding: 0; }
.is-platform .row { padding: 14px 20px; border-bottom-color: var(--lw-line); }
.is-platform .card > summary { min-height: 44px; display: flex; align-items: center; gap: 6px; cursor: pointer; }
.is-platform .btn { border-radius: 999px; font-weight: 700; }
.is-platform .btn-primary { background: var(--lw-blue-deep); border-color: var(--lw-blue-deep); }
.is-platform input:not([type=checkbox]):not([type=radio]):not([type=range]) { border-radius: 12px; }
.is-platform input:not([type=checkbox]):not([type=radio]):not([type=range]):focus { outline: none; border-color: var(--lw-blue-deep); box-shadow: 0 0 0 4px rgba(0, 51, 141, .18); }
.is-platform .toolbar { margin-bottom: 18px; }
.is-platform .admin-tools { margin-top: 10px; }
.is-platform .admin-tools > summary { cursor: pointer; color: var(--lw-blue-deep); font-weight: 700; font-size: .92rem; min-height: 44px; display: flex; align-items: center; }
.is-platform .admin-tools form { margin: 6px 0 0; }
.is-platform .onetime { border: 2px solid var(--lw-gold); background: var(--lw-gold-soft); }
.is-platform .onetime-password code {
  display: inline-block; padding: 10px 14px; border-radius: 10px; background: #fff; border: 1px dashed #c9a400;
  font-size: 1.2rem; font-weight: 800; letter-spacing: .05em; color: var(--lw-ink); word-break: break-all;
}
.is-platform .slug-input { display: flex; align-items: stretch; border: 1px solid var(--input-border, #a9a293); border-radius: 12px; overflow: hidden; background: #fff; }
.is-platform .slug-input input:not([type=checkbox]):not([type=radio]):not([type=range]) { border: 0; border-radius: 0; flex: 1 1 auto; min-width: 0; }
.is-platform .slug-input input:focus { box-shadow: none !important; }
.is-platform .slug-input:focus-within { border-color: var(--lw-blue-deep); box-shadow: 0 0 0 4px rgba(0, 51, 141, .18); }
.is-platform .slug-input span { display: flex; align-items: center; padding: 0 12px; background: var(--lw-blue-soft); color: var(--lw-blue-ink); font-weight: 700; font-size: .92rem; white-space: nowrap; }

.is-platform .club-row { align-items: center; }
.is-platform .club-row-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.is-platform .club-row-head strong { font-size: 1.05rem; color: var(--lw-ink); }
.is-platform .club-row-url { margin-top: 2px; overflow-wrap: anywhere; }
.is-platform .club-row-stats { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 8px; font-size: .88rem; color: var(--lw-text); }
.is-platform .club-row-stats span { display: inline-flex; align-items: center; gap: 6px; }
.is-platform .club-row-stats .icon { width: 16px; height: 16px; color: var(--lw-blue-deep); }

/* ---------- Wider screens ---------- */
@media (min-width: 600px) {
  :root { --lw-gutter: 32px; }
  .lw-features { grid-template-columns: repeat(3, 1fr); }
  .lw-auth-panel { padding: 36px 36px 30px; }
  .lw-auth .lw-auth-band { height: 260px; }
  .lw-auth-main { margin-top: -180px; }
  .landing-login-button { width: auto; }
}

@media (min-width: 900px) {
  .lw-hero { padding: 72px 0 104px; }
  .lw-hero-grid { grid-template-columns: 1.1fr .9fr; gap: 64px; }
  .lw-login-card { padding: 32px 32px 26px; }
  .lw-join-grid { grid-template-columns: 360px 1fr; gap: 56px; }
  .lw-section { padding: 80px 0; }

  .landing-top { padding: 56px 0 88px; }
  .landing-top.lw-band { background: linear-gradient(168deg, transparent 0 78%, var(--lw-gold) 78% 84%, transparent 84%), var(--lw-blue); }
  .landing-showcase { grid-template-columns: 1.05fr .95fr; grid-template-areas: "body hero"; gap: 56px; align-items: center; }
  .landing-hero { grid-area: hero; margin: 0; border-radius: var(--lw-r-lg); overflow: hidden; box-shadow: var(--lw-shadow-lg); border: 4px solid #fff; background: #fff; }
  .landing-body { grid-area: body; padding: 0; }
  .landing-details { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; padding-top: 40px; padding-bottom: 72px; }
}

@media (prefers-reduced-motion: reduce) {
  .lw-btn, .lw-auth input, .lw-input, .lw-choice { transition: none; }
  .lw-spinner { animation-duration: 3s; }
}

@media print {
  .lw-band, .lw-bar::after, .lw-auth-band { background: none !important; }
  .lw-auth-main { margin-top: 0; }
  .lw-auth-panel { box-shadow: none; border: 1px solid #999; }
}

/* "Put it on your phone" help page */
.lw-help { padding: 24px 0 48px; }
.lw-help h1 { font-size: clamp(1.6rem, 5vw, 2.3rem); margin: 8px 0 12px; color: var(--lw-blue, #1C4F9C); }
.lw-help-lead { font-size: 1.08rem; max-width: 46rem; }
.lw-help-back a { color: var(--lw-blue, #1C4F9C); font-weight: 600; }
.lw-help-pick { display: flex; gap: 12px; margin: 18px 0 8px; flex-wrap: wrap; }
.lw-help-pick a { display: inline-block; padding: 12px 20px; border-radius: 999px; background: #1C4F9C; color: #fff; font-weight: 700; text-decoration: none; min-height: 44px; }
.lw-help-pick a:focus-visible { outline: 3px solid #FCCB06; outline-offset: 2px; }
.lw-help-section { margin-top: 36px; }
.lw-help-section h2 { font-size: 1.4rem; border-bottom: 4px solid #FCCB06; display: inline-block; padding-bottom: 4px; }
.lw-help-steps { padding-left: 1.4em; display: grid; gap: 28px; margin-top: 16px; }
.lw-help-steps li { font-size: 1.05rem; }
.lw-help-steps img, .lw-help-placeholder { display: block; width: 100%; max-width: 320px; height: auto; margin-top: 10px;
  border-radius: 16px; border: 1px solid #d5dce8; box-shadow: 0 6px 18px rgba(16, 37, 77, .12); }
@media (min-width: 900px) {
  .lw-help-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; }
}

/* ---------- "I'd like to join" form (About us page and club landing pages) ---------- */
.landing-joinwrap { padding-bottom: 48px; max-width: 720px; }
.landing-joinlink { margin: 14px 0 0; }
.landing-joinlink a { color: #fff; font-weight: 700; }
.lw-joinform h2 { margin: 0 0 8px; }
.lw-joinform-lead { color: var(--lw-muted); margin: 0 0 16px; }
.lw-optional { font-weight: 400; color: var(--lw-muted); }
.lw-joinform textarea.lw-input { min-height: 110px; resize: vertical; font: inherit; }
.lw-joinform select.lw-input { font: inherit; }
.lw-joinform .field-error { color: var(--lw-red); font-weight: 600; font-size: .9rem; margin: 0; }
/* The trap field: off the screen for people, still in the page for robots. */
.lw-trap { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* The Creator's name in the console bar. */
.is-platform .platform-who { margin-left: auto; display: flex; flex-direction: column; align-items: flex-end; min-width: 0; line-height: 1.2; text-align: right; }
.is-platform .platform-who .topbar-name { font-weight: 800; color: var(--lw-ink); max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.is-platform .platform-who .topbar-roles { font-size: .78rem; color: var(--lw-muted); }
.is-platform .platform-who + .platform-logout { margin-left: 12px; }
