/* RDMC Fairfield County public-site palette */
:root {
  --chapter-red: #a41122;
  --chapter-ink: #17171c;
  --chapter-muted: #4a4a50;
  --chapter-card: #151519;
  --chapter-rose: #ff8c97;
  color-scheme: light;
}
:root, body, main, .hero {
  background: #fff;
  color: var(--chapter-ink);
}
.hero { border-color: #dedee1; }
.hero::after { background: none; }
.hero > span, .hero .tag, .payIcon { color: var(--chapter-red); }
.hero p, .title p, .privateGate p, .paywall p, .paywall > small,
.paywall h1 small, .directoryNote, .permissionNote, .consumptionSync,
.consumptionHistory small, .consumptionForm small { color: var(--chapter-muted); }
main > header, nav {
  background: var(--chapter-red);
  color: #fff;
  border-color: #750b16;
}
header b, header small, .bell, header .languageControl, nav button { color: #fff; }
nav button.on, .authSwitch button.on {
  background: #7f0d19;
  color: #fff !important;
  box-shadow: inset 0 -3px #fff;
}
header .memberLogin, header .brotherLogin, header select {
  background: #fff;
  color: var(--chapter-red);
  border: 1px solid #fff;
}
.stats article, .card, .row, .country, .authBox, .accountBadge, .memberInvite,
.inventoryRow, .worldUpdate, .merchCard, .adminHero, .consumptionSummary,
.eventFlyer, .chatFeed {
  background: var(--chapter-card);
  border-color: var(--chapter-red);
  color: #fff;
  color-scheme: dark;
}
.card p, .stats small, .row small, .authMsg, .worldUpdate p,
.merchCard small, .inventoryName small, .adminMember small,
.memberInvite small, .worldUpdateHead small, .eventFlyer small,
.card .consumptionSync, .card .consumptionForm small { color: #e2e2e5; }
.tag, .stats svg, .row > svg, .country svg, .inventoryName span,
.adminHero > b, .worldUpdateHead svg, .memberPhone,
.contactCard a svg, .contactCard p svg { color: var(--chapter-rose); }
.hero button, .card button, .add, .privateGate button, .adminLaunch,
.memberInvite button, .chatComposer button, .zoomJoin, .paywall button,
.merchCard button, .authBox > button:not(.authClose) {
  color: #fff;
  background: var(--chapter-red);
}
.chatError { color: var(--chapter-red); }
.card .chatError, .authBox .chatError { color: var(--chapter-rose); }
.consumptionTableWrap { background: var(--chapter-card); color: #fff; }
body .sol-live-launcher {
  background: var(--chapter-card);
  border-color: var(--chapter-red);
  box-shadow: 0 6px 18px #5c0d1733;
}
body .sol-live-launcher img { border-color: var(--chapter-rose); box-shadow: none; }
body .sol-live-launcher small { color: #ffe9ec; }
:focus-visible { outline: 2px solid var(--chapter-red); outline-offset: 2px; }
header :focus-visible, nav :focus-visible, .card :focus-visible,
.authBox :focus-visible { outline-color: #fff; }
main > header {
  position: relative;
  top: auto;
  height: auto;
  min-height: 0;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) 48px;
  grid-template-areas:
    "logo heading coin"
    "language controls controls";
  align-items: center;
  column-gap: 12px;
  row-gap: 14px;
  padding: 16px;
  overflow: visible;
}
main > header .clubLogo {
  grid-area: logo;
  width: 58px;
  height: 58px;
  min-width: 0;
  flex: none;
}
main > header .clubHeading {
  grid-area: heading;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
}
main > header .clubHeading b {
  display: block;
  font-size: clamp(16px, 4.5vw, 20px);
  line-height: 1.1;
  letter-spacing: .35px;
  white-space: normal;
  overflow-wrap: normal;
}
main > header .clubHeading small {
  display: block;
  max-width: none;
  font-size: clamp(10px, 2.65vw, 12px);
  line-height: 1.3;
  letter-spacing: .2px;
  white-space: normal;
  overflow-wrap: normal;
}
main > header .clubCoin {
  grid-area: coin;
  display: block;
  width: 48px;
  height: 48px;
  max-width: 100%;
  object-fit: contain;
  justify-self: end;
}
main > header .languageControl {
  grid-area: language;
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 4px;
}
main > header .languageControl select {
  min-width: 0;
  max-width: 100%;
}
main > header .loginGroup {
  grid-area: controls;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-self: end;
  justify-content: flex-end;
  min-width: 0;
  margin-left: 0;
  gap: 8px;
}
main > header .loginGroup button {
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  min-height: 36px;
}
main > header .bell { display: none; }
@media (max-width: 390px) {
  main > header {
    grid-template-columns: 48px minmax(0,1fr) 40px;
    grid-template-areas:
      "logo heading coin"
      "language language language"
      "controls controls controls";
    column-gap: 8px;
    row-gap: 10px;
    padding: 12px 10px;
  }
  main > header .clubLogo { width: 48px; height: 48px; }
  main > header .clubCoin { width: 40px; height: 40px; }
  main > header .clubHeading b { font-size: 17px; }
  main > header .clubHeading small { font-size: 10px; }
  main > header .loginGroup { justify-self: start; justify-content: flex-start; }
}


