/* LEVEL-ONE page-specific layer */

:where(.home-page, .account-page, .member-page, .news-page, .contact-page, .club-page, .sports-shell, .table-page) {
  min-width: 0;
}

:where(.home-page .shell, .account-page .shell, .member-page .shell, .news-page .shell, .contact-page .shell, .club-page .shell, .sports-shell.shell, .table-page .shell) {
  width: min(calc(100% - (var(--lo-page-gutter) * 2)), var(--lo-content-shell));
}

:where(.page-header h1, .home-page h1, .account-page h1, .member-page h1, .news-page h1, .contact-page h1, .club-page h1) {
  font-size: var(--lo-text-h1);
  line-height: 1.08;
}

:where(.section-card h2, .table-card h2, .member-card h2, .home-dark-panel h2, .news-card h2, .contact-card h2, .club-card h2) {
  font-size: var(--lo-text-h2);
  line-height: 1.14;
}

:where(.lead-text, .page-intro, .home-page .lead-text, .member-card p, .news-card p, .contact-card p, .club-card p) {
  line-height: 1.5;
}

:where(.home-events-list, .home-dark-list, .member-grid, .member-summary-grid, .news-grid, .contact-grid, .club-grid, .table-grid) {
  display: grid;
  gap: var(--lo-grid-gap);
}

:where(.member-grid, .news-grid, .contact-grid, .club-grid, .table-grid) {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

:where(.member-kv-row, .member-summary-box, .member-ledger-item, .member-transfer-grid, .member-line-items li, .news-card, .contact-card, .club-card, .table-card) {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: normal;
}

:where(.member-action-row, .member-mini-form, .news-actions, .contact-actions, .club-actions) {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
}

:where(.member-action-row :is(a, button), .member-mini-form :is(a, button), .news-actions :is(a, button), .contact-actions :is(a, button), .club-actions :is(a, button)) {
  min-height: var(--lo-control-height-sm);
}

@media (max-width: 720px) {
  :where(.home-page .shell, .account-page .shell, .member-page .shell, .news-page .shell, .contact-page .shell, .club-page .shell, .sports-shell.shell, .table-page .shell) {
    width: min(calc(100% - 1.5rem), var(--lo-content-shell));
  }
  :where(.member-grid, .member-summary-grid, .news-grid, .contact-grid, .club-grid, .table-grid) {
    grid-template-columns: 1fr;
  }

  :where(.member-action-row :is(a, button), .member-mini-form :is(a, button), .news-actions :is(a, button), .contact-actions :is(a, button), .club-actions :is(a, button)) {
    width: 100%;
  }
}

/* Extracted news/page editor block from legacy site.css. */
.news-entry-select-card {
  display: grid;
  gap: 12px;
  padding-top: 20px;
  padding-bottom: 20px;
}

.news-entry-select-card label {
  max-width: 680px;
}

.news-editor-item {
  display: grid;
  gap: 16px;
}

.news-editor-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.news-editor-head span {
  color: var(--muted);
  font-size: 0.9rem;
}

.page-editor-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1rem, 2vw, 1.5rem);
  align-items: start;
}

.page-editor-nav {
  display: grid;
  gap: 0.85rem;
}

.page-editor-nav-copy {
  display: grid;
  gap: 0.4rem;
}

.page-editor-nav-copy strong {
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.page-editor-nav-copy p,
.page-editor-tab span,
.page-editor-tab small {
  color: var(--muted);
}

.page-editor-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.page-editor-tab {
  flex: 1 1 min(100%, 14rem);
  display: grid;
  gap: 0.28rem;
  min-width: 0;
  padding: 0.8rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.02);
  text-align: left;
  transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.page-editor-tab strong,
.page-editor-tab small {
  display: block;
}

.page-editor-tab span {
  font-size: 0.86rem;
}

.page-editor-tab small {
  font-size: 0.9rem;
}

.page-editor-tab:hover,
.page-editor-tab.is-active {
  transform: translateY(-1px);
  border-color: rgba(var(--theme-primary-rgb), 0.35);
  background: linear-gradient(180deg, rgba(var(--theme-primary-rgb), 0.14), rgba(255, 255, 255, 0.03));
  box-shadow: 0 14px 24px rgba(0, 0, 0, 0.16);
}

.page-editor-stage {
  min-width: 0;
}

.page-editor-panel {
  display: grid;
}

.page-editor-panel.is-active {
  display: grid;
}

.page-editor-panel .section-heading {
  align-items: start;
}

.page-editor-panel .section-heading > div {
  display: grid;
  gap: 6px;
}

.page-editor-panel .section-heading p {
  margin-bottom: 0;
}

.page-editor-scope-note {
  display: grid;
  gap: 0.5rem;
}

.page-content-editor {
  display: grid;
  gap: 10px;
}

.page-content-editor > label {
  display: grid;
  gap: 4px;
}

.page-content-editor > label > span {
  font-weight: 700;
}

.page-content-editor > label > small {
  color: var(--muted);
  font-size: 0.92rem;
}

.page-content-textarea {
  min-height: 320px;
  width: 100%;
  resize: vertical;
  font: inherit;
  line-height: 1.55;
}

.page-content-preview-shell {
  display: grid;
  gap: 0.55rem;
}

.page-content-preview-shell .muted {
  margin: 0;
}

.page-content-preview {
  min-height: 140px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
}

.editor-field {
  display: grid;
  gap: 8px;
}

.editor-field-copy {
  display: grid;
  gap: 4px;
}

.editor-field-copy > span {
  font-weight: 700;
}

.editor-field-copy small {
  color: var(--muted);
  font-size: 0.92rem;
}

.visual-editor-note {
  margin: 0;
}

.visual-editor {
  display: grid;
  gap: 10px;
}

.visual-editor trix-toolbar {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  padding: 8px;
}

.visual-editor trix-toolbar .trix-button-group {
  border-color: var(--line);
}

.visual-editor trix-editor {
  min-height: 320px;
  padding: 18px 20px 22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.03);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.12);
}

.visual-editor trix-editor:focus {
  outline: 0;
  border-color: rgba(var(--theme-primary-rgb), 0.38);
  box-shadow:
    0 0 0 4px rgba(var(--theme-primary-rgb), 0.08),
    0 12px 26px rgba(0, 0, 0, 0.16);
}

.visual-editor trix-editor:empty::before {
  content: "Hier Inhalt eingeben ...";
  color: var(--muted);
  font-style: italic;
}

.editor-field .visual-editor trix-editor h1 {
  font-size: 1.35rem;
  line-height: 1.3;
}

.editor-field .visual-editor trix-editor pre {
  border-radius: 12px;
  background: rgba(18, 32, 46, 0.08);
}

.editor-field .visual-editor trix-editor ul,
.editor-field .visual-editor trix-editor ol {
  padding-left: 1.3rem;
}

.editor-card {
  gap: 18px;
}

/* Extracted home page block from legacy site.css. */
.home-page {
  display: grid;
  gap: clamp(0.75rem, 1.6vw, 1.15rem);
  color: var(--theme-text);
}

.home-page .shell {
  position: relative;
  width: min(calc(100% - (var(--page-gutter) * 2)), var(--content-shell));
  margin-inline: auto;
}

.home-page .section-kicker,
.home-page .meta,
.home-page .timeline-copy p,
.home-page .editorial-news-card p,
.home-page .lead-text,
.home-page .richtext,
.home-page .richtext p {
  color: var(--theme-text-muted);
}

.home-page .richtext a,
.home-page .section-heading a {
  color: var(--theme-primary);
}

.home-page .primary-button {
  color: var(--theme-button-text);
}

.home-page .secondary-button {
  color: var(--theme-text);
}

.home-poster {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1rem, 3vw, 2.5rem);
  min-height: clamp(24rem, 56vh, 38rem);
  padding: clamp(1.35rem, 3vw, 2.2rem);
  overflow: hidden;
  border: 1px solid var(--theme-border);
  border-radius: 28px;
  background:
    linear-gradient(112deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 48%, rgba(255, 255, 255, 0) 100%),
    linear-gradient(132deg, var(--theme-surface-strong) 0%, var(--theme-surface) 48%, rgba(8, 9, 10, 0.24) 100%),
    var(--home-hero-bg-image);
  background-position: center center, center center, center 46%;
  background-size: cover, cover, cover;
  background-repeat: no-repeat;
  box-shadow:
    0 24px 52px rgba(0, 0, 0, 0.22),
    inset 0 0 0 1px rgba(255, 255, 255, 0.05),
    inset 0 1px 0 var(--theme-primary-soft);
}

.home-poster::before,
.home-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.home-poster::before {
  background:
    radial-gradient(circle at 16% 24%, var(--theme-primary-soft-strong), transparent 16rem),
    radial-gradient(circle at 78% 18%, var(--theme-primary-soft), transparent 14rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(0, 0, 0, 0.18));
}

.home-poster::after {
  opacity: 0.22;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.36) 0 1px, transparent 1.5px),
    radial-gradient(circle, rgba(255, 255, 255, 0.18) 0 1px, transparent 1.5px);
  background-position: 0 0, 18px 18px;
  background-size: 28px 28px, 32px 32px;
}

.home-poster-copy,
.home-poster-stage {
  position: relative;
  z-index: 1;
}

.home-poster-copy {
  display: grid;
  align-content: center;
  gap: 0.7rem;
  max-width: min(100%, var(--copy));
  margin-inline: auto;
  padding: clamp(1rem, 2vw, 1.6rem) 0;
}

.home-hero-brand {
  display: inline-flex;
  align-items: center;
  margin-bottom: clamp(0.4rem, 1vw, 0.75rem);
}

.home-hero-theme-logo {
  width: clamp(32.5rem, 52vw, 38.75rem);
  max-width: 100%;
  height: auto;
  object-fit: contain;
  opacity: 0.95;
}

.home-poster-brand {
  width: fit-content;
  margin: 0;
  color: var(--accent-yellow);
  font-size: clamp(3.8rem, 9vw, 7.6rem);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.08em;
  text-transform: uppercase;
  transform: rotate(-4deg);
  text-shadow: 0 10px 18px rgba(0, 0, 0, 0.28);
}

.home-poster-logo {
  width: min(100%, clamp(14rem, 34vw, 24rem));
  max-height: clamp(4rem, 10vw, 6.8rem);
  height: auto;
  margin: 0;
  object-fit: contain;
  filter: drop-shadow(0 12px 22px rgba(0, 0, 0, 0.22));
}

.home-poster h1 {
  max-width: min(100%, 15ch);
  margin: 0;
  color: var(--text-main);
  font-size: clamp(2.15rem, 4.7vw, 3.4rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.home-hero-mantra {
  margin: clamp(0.25rem, 0.7vw, 0.45rem) 0 0;
  color: var(--theme-text);
  font-size: clamp(1.32rem, 2.2vw, 1.9rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: 0.01em;
}

.home-hero-description {
  max-width: 35rem;
  margin: 0.35rem 0 0;
  color: var(--theme-text);
  font-size: clamp(1rem, 1.4vw, 1.14rem);
  line-height: 1.56;
  font-weight: 650;
}

.home-poster-intro {
  max-width: 35rem;
  margin: 0.32rem 0 0;
  color: var(--theme-text-muted);
  font-size: clamp(0.98rem, 1.22vw, 1.06rem);
  line-height: 1.58;
}

.home-poster-actions {
  margin-top: 0.8rem;
}

.home-poster-ribbon {
  width: fit-content;
  margin: 0.45rem 0 0;
  padding: 0.55rem 1.1rem 0.6rem;
  color: var(--theme-button-text);
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--accent-yellow), var(--accent-yellow-dark));
  background: linear-gradient(135deg, var(--theme-primary), var(--theme-secondary));
  clip-path: polygon(2% 0, 100% 0, 96% 100%, 0 100%);
}

.home-poster-stage {
  display: none;
  align-content: end;
  justify-items: end;
  min-height: 26rem;
  opacity: 0;
  pointer-events: none;
}

.home-poster-glow {
  position: absolute;
  top: 10%;
  right: 12%;
  width: 9rem;
  height: 9rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--theme-primary-rgb), 0.95) 0, rgba(var(--theme-primary-rgb), 0.2) 38%, transparent 70%);
  filter: blur(2px);
}

.home-poster-table {
  position: relative;
  width: min(100%, 38rem);
  height: clamp(16rem, 38vw, 26rem);
  margin-bottom: 3rem;
  border-radius: 40px 40px 26px 26px;
  background:
    linear-gradient(180deg, rgba(38, 25, 15, 0.12), rgba(0, 0, 0, 0.5)),
    radial-gradient(circle at 20% 60%, rgba(var(--theme-primary-rgb), 0.16), transparent 11rem),
    linear-gradient(135deg, #2d2118, #0e0a08 65%);
  border: 1px solid rgba(var(--theme-primary-rgb), 0.18);
  box-shadow: inset 0 0 0 1px rgba(var(--theme-primary-rgb), 0.06), 0 28px 55px rgba(0, 0, 0, 0.36);
  overflow: hidden;
}

.home-poster-table::before {
  content: "";
  position: absolute;
  inset: 8% 6%;
  border: 1px solid rgba(var(--theme-primary-rgb), 0.14);
  border-radius: 26px;
}

.home-poster-table::after {
  content: "";
  position: absolute;
  inset: 48% 0 auto;
  height: 4px;
  background: linear-gradient(90deg, transparent, rgba(var(--theme-primary-rgb), 0.44), transparent);
}

.home-poster-table span {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 14px;
  background: linear-gradient(180deg, rgba(249, 251, 252, 0.92), rgba(129, 132, 135, 0.78));
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.18);
}

.home-poster-table span:nth-child(1) { left: 14%; }
.home-poster-table span:nth-child(2) { left: 34%; }
.home-poster-table span:nth-child(3) { right: 34%; }
.home-poster-table span:nth-child(4) { right: 14%; }

.home-poster-ball {
  position: absolute;
  right: clamp(1rem, 5vw, 3rem);
  bottom: 0.25rem;
  width: clamp(4.5rem, 9vw, 7rem);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, #fff9e5, #d3c6aa 58%, #7f715d 100%);
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.28);
}

.home-value-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(0.55rem, 1vw, 0.8rem);
  align-items: stretch;
  margin-top: 0;
}

.home-topics-grid {
  margin-top: 0;
}

.home-topic-card {
  position: relative;
  display: grid;
  grid-template-rows: auto auto auto 1fr;
  gap: 0.32rem;
  min-width: 0;
  min-height: 9.75rem;
  padding: clamp(0.82rem, 1.45vw, 1rem);
  border: 1px solid var(--theme-border);
  border-radius: var(--radius-md);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)),
    linear-gradient(180deg, var(--theme-surface-strong), var(--theme-surface));
  color: inherit;
  text-decoration: none;
  text-align: left;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.16);
  transition: border-color 180ms ease, background-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.home-topic-card:hover,
.home-topic-card:focus-visible {
  transform: translateY(-1px);
  border-color: var(--theme-focus-ring);
  outline: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.04)),
    linear-gradient(180deg, var(--theme-surface-strong), var(--theme-surface));
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.2);
}

.home-feature-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  background: linear-gradient(90deg, var(--theme-primary), transparent 78%);
}

.home-topic-icon {
  width: clamp(2.65rem, 3.3vw, 3.25rem);
  aspect-ratio: 1;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.24));
}

.theme-leonhart .feature-icon--tische { background-image: url("/static/img/bullet/leonhart_tische.webp"); }
.theme-leonhart .feature-icon--training { background-image: url("/static/img/bullet/leonhart_training.webp"); }
.theme-leonhart .feature-icon--events { background-image: url("/static/img/bullet/leonhart_events.webp"); }
.theme-leonhart .feature-icon--community { background-image: url("/static/img/bullet/leonhart_community.webp"); }
.theme-leonhart .feature-icon--standort { background-image: url("/static/img/bullet/leonhart_standort.webp"); }

.theme-garlando .feature-icon--tische { background-image: url("/static/img/bullet/garlando_tische.webp"); }
.theme-garlando .feature-icon--training { background-image: url("/static/img/bullet/garlando_training.webp"); }
.theme-garlando .feature-icon--events { background-image: url("/static/img/bullet/garlando_events.webp"); }
.theme-garlando .feature-icon--community { background-image: url("/static/img/bullet/garlando_community.webp"); }
.theme-garlando .feature-icon--standort { background-image: url("/static/img/bullet/garlando_standort.webp"); }

.theme-tornado .feature-icon--tische { background-image: url("/static/img/bullet/tornado_tische.webp"); }
.theme-tornado .feature-icon--training { background-image: url("/static/img/bullet/tornado_training.webp"); }
.theme-tornado .feature-icon--events { background-image: url("/static/img/bullet/tornado_events.webp"); }
.theme-tornado .feature-icon--community { background-image: url("/static/img/bullet/tornado_community.webp"); }
.theme-tornado .feature-icon--standort { background-image: url("/static/img/bullet/tornado_standort.webp"); }

.home-topic-title {
  margin: 0;
  color: var(--theme-text);
  font-size: clamp(0.98rem, 1.05vw, 1.08rem);
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: 0;
}

.home-topic-subtitle {
  margin: 0;
  color: var(--theme-text-muted);
  font-size: 0.74rem;
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.home-topic-text {
  margin: 0;
  color: var(--theme-text-muted);
  font-size: 0.84rem;
  line-height: 1.34;
}

.home-poster-columns {
  gap: clamp(0.75rem, 1.45vw, 1.1rem);
  margin-top: 0;
}

/* Members area unified with global system */
.member-shell {
  width: 100%;
}

.member-page-header {
  gap: 0.28rem;
  padding: 0.78rem 1rem;
}

.member-page-header h1,
.member-page-header .lead-text {
  margin: 0;
}

.member-page-header .lead-text {
  font-size: 0.95rem;
  line-height: 1.35;
}

.member-header {
  display: grid;
  gap: 0.75rem;
}

.member-top-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.62rem;
  align-items: start;
}

.member-intro {
  max-width: none;
}

.member-header h2 {
  margin: 0 0 0.35rem;
  color: var(--text-main);
  font-size: var(--type-h2-size);
  line-height: var(--type-h2-line);
  letter-spacing: -0.04em;
  font-weight: var(--type-h2-weight);
}

.member-subtle {
  margin: 0;
  color: rgba(233, 239, 255, 0.84);
}

.member-strong {
  margin: 0;
  color: var(--text-main);
  font-weight: 700;
}

.member-status-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.55rem;
  align-items: start;
  padding-top: 0.6rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.member-open-label,
.member-recent-label {
  margin: 0;
  color: rgba(233, 239, 255, 0.84);
}

.member-open-value,
.member-open-empty {
  margin: 0;
  color: var(--text-main);
  font-weight: 700;
}

.member-payments {
  margin: 0.25rem 0 0;
  padding-left: 1rem;
  color: rgba(242, 246, 255, 0.92);
}

.member-payments li {
  margin: 0.12rem 0;
}

.member-kv-list {
  display: grid;
  gap: 0.38rem;
}

.member-kv-row {
  display: flex;
  justify-content: space-between;
  gap: 0.65rem;
  padding-bottom: 0.2rem;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.16);
  font-size: 0.92rem;
}

.member-kv-row strong {
  color: var(--text-main);
}

.member-action-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: 0.45rem;
  margin-top: 0.5rem;
}

.member-usage-form {
  margin: 0;
  min-width: 0;
}

.member-fee-cta-form {
  margin-top: 0.35rem;
}

.member-action-row :is(a, button) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  text-align: center;
  min-height: 2.65rem;
}

.member-mini-note {
  margin-top: 0.35rem;
  color: rgba(224, 232, 248, 0.74);
  font-size: 0.84rem;
}

.member-usage-explainer {
  display: grid;
  gap: 0.34rem;
  margin-top: 0.55rem;
  color: rgba(224, 232, 248, 0.84);
  font-size: 0.86rem;
  line-height: 1.45;
}

.member-usage-explainer p,
.member-usage-explainer ul {
  margin: 0;
}

.member-usage-title {
  color: var(--text-main);
  font-weight: 750;
}

.member-usage-explainer ul {
  display: grid;
  gap: 0.24rem;
  padding-left: 1rem;
}

.member-usage-explainer strong {
  color: var(--text-main);
}

.member-usage-explainer span {
  display: block;
  color: rgba(224, 232, 248, 0.74);
}

.member-category-block {
  margin-top: 0.7rem;
}

.member-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 0.65rem;
  margin-top: 0.45rem;
}

.member-item-card {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.member-item-media {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 110px;
  padding: 0.4rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
}

.member-item-image {
  width: 100%;
  height: 100%;
  border-radius: 10px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.09);
}

.member-item-title {
  min-height: 2.4em;
  margin: 0;
  color: var(--text-main);
  font-size: 0.96rem;
  line-height: 1.25;
}

.member-product-price {
  margin: 0;
  color: var(--success);
  font-weight: 700;
  white-space: nowrap;
}

.member-item-card form {
  margin-top: auto;
}

.member-item-card .secondary-button {
  width: 100%;
  justify-content: center;
}

.member-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.5rem;
  margin-top: 0.6rem;
}


.member-summary-box--open {
  border-color: rgba(210, 68, 68, 0.58);
  background: rgba(210, 68, 68, 0.16);
}

.member-summary-box--reported {
  border-color: rgba(219, 168, 34, 0.62);
  background: rgba(219, 168, 34, 0.18);
}

.member-summary-box--confirmed {
  border-color: rgba(64, 166, 94, 0.62);
  background: rgba(64, 166, 94, 0.18);
}

.member-summary-box p {
  margin: 0;
}

.member-label {
  color: rgba(224, 232, 248, 0.72);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.member-value {
  margin-top: 0.12rem;
  color: var(--text-main);
  font-weight: 650;
}

.member-ledger-list {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.5rem;
}


.member-invoice-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.member-invoice-no {
  font-weight: 800;
  letter-spacing: 0.01em;
}

.member-ledger-title {
  margin: 0 0 0.15rem;
  color: var(--text-main);
  font-weight: 650;
}

.member-ledger-meta {
  margin: 0.08rem 0;
  color: rgba(224, 232, 248, 0.8);
}

.member-mini-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.3rem;
}

.member-line-items {
  margin: 0.35rem 0 0;
  padding-left: 0;
  list-style: none;
}

.member-line-items li {
  display: flex;
  justify-content: space-between;
  gap: 0.7rem;
  margin: 0;
  padding: 0.12rem 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
  color: rgba(238, 243, 255, 0.9);
}

.member-line-items li:last-child {
  border-bottom: 0;
}

.member-copy-btn {
  padding: 0.15rem 0.42rem;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #f2f6ff;
  font-size: 0.72rem;
  cursor: pointer;
}

.member-copy-btn:hover {
  background: rgba(255, 255, 255, 0.16);
}

.member-copy-feedback {
  min-height: 1em;
  color: #b8ffd1;
  font-size: 0.72rem;
}

.member-transfer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem;
  align-items: center;
  margin-top: 0.35rem;
}

.member-qr {
  width: 140px;
  height: 140px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: #fff;
}

.member-epc {
  margin: 0.3rem 0 0;
  color: rgba(220, 228, 248, 0.82);
  font-size: 0.72rem;
  white-space: pre-wrap;
  word-break: break-word;
}

/* Admin invoice detail unified system */
.admin-user-invoice-page .invoice-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.admin-user-invoice-page .invoice-no {
  font-weight: 800;
  letter-spacing: 0.01em;
}

.admin-user-invoice-page .invoice-lines {
  margin-top: 0.4rem;
  padding-left: 0;
  list-style: none;
}

.admin-user-invoice-page .invoice-lines li {
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
}

.home-dark-panel {
  position: relative;
  overflow: hidden;
  padding: clamp(1rem, 1.7vw, 1.25rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(15, 12, 10, 0.88), rgba(10, 8, 6, 0.9));
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.16);
}

.home-dark-heading {
  align-items: center;
  margin-bottom: 0.5rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid rgba(var(--theme-primary-rgb), 0.12);
}

.home-dark-heading .section-kicker {
  margin-bottom: 0.35rem;
}

.home-dark-heading h2,
.home-dark-panel h3,
.home-dark-panel .timeline-day,
.home-dark-panel .timeline-time {
  color: var(--text-main);
}

.home-dark-list {
  gap: 0;
}

.home-events-list {
  display: grid;
  gap: 0;
  align-content: start;
}

.home-event-item {
  display: grid;
  grid-template-columns: minmax(96px, 118px) minmax(0, 1fr);
  gap: 0.75rem;
  padding: 0.78rem 0;
  border-bottom: 1px solid rgba(var(--theme-primary-rgb), 0.08);
}

.home-event-item:first-child {
  padding-top: 0;
}

.home-event-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.home-event-date {
  display: grid;
  align-content: start;
  gap: 0.22rem;
}

.home-event-date--news {
  min-width: 0;
}

.home-event-day {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--accent-yellow);
  font-size: 0.8rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.home-event-weekday {
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.home-event-time {
  color: rgba(var(--theme-primary-rgb), 0.95);
  font-size: 0.82rem;
  line-height: 1.2;
  font-weight: 700;
}

.home-event-copy {
  min-width: 0;
}

.home-event-copy h3 {
  margin: 0;
  font-size: clamp(0.96rem, 1.15vw, 1.08rem);
  line-height: 1.24;
  letter-spacing: 0;
}

.home-event-meta {
  margin: 0.3rem 0 0.34rem;
}

.home-event-pill {
  display: inline-flex;
  align-items: center;
  min-height: 1.4rem;
  padding: 0.16rem 0.56rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.home-event-pill--club_time {
  border-color: rgba(149, 187, 255, 0.5);
  background: rgba(149, 187, 255, 0.15);
  color: #deebff;
}

.home-event-pill--event {
  border-color: rgba(var(--theme-primary-rgb), 0.45);
  background: rgba(var(--theme-primary-rgb), 0.14);
  color: var(--theme-text);
}

.home-event-pill--tournament {
  border-color: rgba(245, 142, 108, 0.5);
  background: rgba(245, 142, 108, 0.16);
  color: #ffd8cb;
}

.home-event-pill--training {
  border-color: rgba(135, 217, 143, 0.5);
  background: rgba(135, 217, 143, 0.16);
  color: #d7ffe0;
}

.home-event-description {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.86rem;
  line-height: 1.38;
}

.home-empty-state {
  display: grid;
  gap: 0.45rem;
  margin: 0.15rem 0 0;
  padding: 0.75rem 0.85rem;
  border: 1px dashed rgba(var(--theme-primary-rgb), 0.24);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
}

.home-empty-state p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.86rem;
  line-height: 1.36;
}

.home-empty-state a {
  width: fit-content;
  color: var(--theme-primary);
  font-size: 0.82rem;
  font-weight: 800;
}

.home-empty-state--compact {
  max-width: 24rem;
}

.home-news-section {
  margin-top: 0;
}

.home-news-heading {
  margin-bottom: 0.25rem;
}

.home-news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--section-gap);
}

.home-news-card {
  display: grid;
  gap: 0.45rem;
  min-height: 100%;
  padding: var(--card-padding);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(15, 12, 10, 0.82), rgba(10, 8, 6, 0.88));
}

.home-news-card h3 {
  margin: 0;
  font-size: clamp(1rem, 1.2vw, 1.16rem);
  line-height: 1.24;
}

.home-news-date {
  margin: 0;
}

.home-news-tag {
  width: fit-content;
  margin: 0;
  padding: 0.12rem 0.5rem;
  border: 1px solid rgba(var(--theme-primary-rgb), 0.3);
  border-radius: 999px;
  color: var(--theme-text);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(var(--theme-primary-rgb), 0.09);
}

.home-news-preview {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.92rem;
  line-height: 1.45;
}

.home-news-link {
  width: fit-content;
  margin-top: 0.2rem;
  color: var(--accent-yellow);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.home-news-link:hover {
  color: #fff2a8;
}

.home-dark-panel .timeline-time,
.home-dark-panel .meta {
  color: var(--accent-yellow);
}

.home-dark-panel .timeline-item {
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  padding: 0;
  border-bottom: 0;
}

.home-dark-panel .timeline-copy h3,
.home-dark-panel .editorial-news-card h3 {
  font-size: inherit;
}

.home-dark-panel .timeline-copy p,
.home-dark-panel .editorial-news-card p {
  font-size: inherit;
  line-height: inherit;
}

body:has(.home-page) {
  background-image: var(--theme-gradient);
}

body:has(.home-page) .site-header {
  border-bottom-color: var(--theme-border);
  background: linear-gradient(180deg, var(--theme-surface-strong), var(--theme-surface));
}

body:has(.home-page):not(:has(.main-nav-logout)) .site-header-shell,
body:has(.home-page) .footer-row {
  width: min(calc(100% - (var(--page-gutter) * 2)), var(--content-shell));
}

body:has(.home-page) .brand,
body:has(.home-page) .main-nav a:hover,
body:has(.home-page) .main-nav a.is-active,
body:has(.home-page) .main-nav-logout-button:hover,
body:has(.home-page) .site-header .ghost-button:hover {
  color: var(--text-main);
}

body:has(.home-page) .header-nav-row {
  border-top: 1px solid var(--theme-primary-soft);
}

body:has(.home-page) .main-nav a,
body:has(.home-page) .main-nav-logout-button,
body:has(.home-page) .site-header .ghost-button {
  color: rgba(248, 243, 231, 0.72);
}

body:has(.home-page) .main-nav a::after,
body:has(.home-page) .main-nav-logout-button::after {
  background: var(--theme-primary);
}

body:has(.home-page) .site-footer {
  border-top-color: var(--theme-primary-soft);
  background: rgba(7, 6, 5, 0.92);
}

body:has(.home-page) .footer-brand p,
body:has(.home-page) .footer-links a {
  color: rgba(248, 243, 231, 0.72);
}

/* Home + member shell responsive (ordered: 1080 -> 920 -> 860 -> 720 -> 520 -> 420) */
@media (max-width: 1080px) {
  .home-poster {
    grid-template-columns: 1fr;
    background-position: center center, center center, 60% center;
  }

  .home-poster-stage {
    min-height: 18rem;
  }

  .home-value-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .home-topic-card {
    min-height: 9.4rem;
  }

  .home-news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .home-value-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 920px) {
  .site-header-shell {
    flex-wrap: wrap;
    gap: 0.85rem;
  }

  .member-subnav {
    top: 0;
  }

  .member-subnav-nav {
    gap: 0.55rem;
  }

  body:has(.home-page) .main-nav {
    border-color: var(--theme-primary-soft);
    background: rgba(12, 10, 8, 0.96);
  }

  body:has(.home-page) .main-nav a:hover,
  body:has(.home-page) .main-nav a.is-active,
  body:has(.home-page) .main-nav-logout-button:hover {
    border-color: var(--theme-focus-ring);
    background: var(--theme-primary-soft);
  }
}

@media (max-width: 860px) {
  .member-top-grid {
    grid-template-columns: 1fr;
  }

  .member-intro {
    max-width: none;
  }

  .member-status-strip {
    grid-template-columns: 1fr;
    gap: 0.45rem;
  }
}

@media (max-width: 720px) {
  .site-header-shell {
    align-items: flex-start;
  }

  .member-subnav-shell {
    min-height: auto;
  }

  .member-subnav-nav {
    gap: 0.5rem;
    padding: 0.55rem 0;
  }

  .site-brand-level-one {
    width: min(11rem, 62vw);
    height: 1.5rem;
  }

  .site-brand-text {
    font-size: 0.62rem;
  }

  .home-poster {
    min-height: auto;
    padding: 1.2rem;
    border-radius: 24px;
  }

  .home-poster-brand {
    font-size: clamp(3rem, 16vw, 4.7rem);
  }

  .home-hero-theme-logo {
    width: min(85vw, 38.75rem);
    max-width: 85vw;
  }

  .home-poster h1 {
    max-width: none;
    font-size: clamp(1.9rem, 10.4vw, 2.55rem);
  }

  .home-hero-mantra {
    font-size: clamp(1.18rem, 5.3vw, 1.55rem);
  }

  .home-hero-description {
    font-size: 1rem;
  }

  .home-poster-columns {
    grid-template-columns: 1fr;
  }

  .home-value-strip {
    display: flex;
    gap: 0.65rem;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 0.25rem;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }

  .home-topic-card {
    flex: 0 0 min(76vw, 20rem);
    min-height: 8.7rem;
    padding: 0.78rem 0.8rem 0.82rem;
    scroll-snap-align: start;
  }

  .home-topic-icon {
    width: clamp(2.65rem, 10vw, 3rem);
  }

  .home-event-item {
    grid-template-columns: 1fr;
    gap: 0.38rem;
  }

  .home-news-grid {
    grid-template-columns: 1fr;
  }

  .home-poster-table {
    width: 100%;
    height: 15rem;
    margin-bottom: 2rem;
  }
}

@media (max-width: 520px) {
  .member-subnav-logout {
    margin-left: 0;
  }

  .site-header-theme-toggle {
    min-height: 2rem;
    padding: 0.2rem 0.65rem;
    font-size: 0.67rem;
  }

  .site-header-theme-toggle-current {
    padding-left: 0.35rem;
  }

  .site-header-theme-item {
    min-height: 1.88rem;
    font-size: 0.68rem;
  }

  .site-brand-text {
    display: none;
  }

  .home-hero-theme-logo {
    width: min(85vw, 20rem);
    max-width: 85vw;
  }

  .home-poster-ribbon {
    width: 100%;
    text-align: center;
  }

  .home-dark-panel {
    border-radius: 22px;
  }

  .home-topic-subtitle {
    letter-spacing: 0.02em;
  }
}

@media (max-width: 420px) {
  .home-value-strip {
    margin-right: calc(var(--page-gutter-tight) * -1);
    padding-right: var(--page-gutter-tight);
  }
}

@media (max-width: 640px) {
  .home-page .shell {
    width: min(calc(100% - (var(--page-gutter-tight) * 2)), var(--content-shell));
  }

  body:has(.home-page):not(:has(.main-nav-logout)) .site-header-shell,
  body:has(.home-page) .footer-row {
    width: min(calc(100% - (var(--page-gutter-tight) * 2)), var(--content-shell));
  }
}
