:root {
  color-scheme: light;
  --ink: #153934;
  --muted: #47615b;
  --ground: #f7f7f0;
  --paper: #fff;
  --soft: #e9f0e7;
  --line: #cbd8d0;
  --accent: #1b5d50;
  --white: #f7fbf5;
  font-family: "DM Sans", "Segoe UI", system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--ground); color: var(--ink); line-height: 1.5; }
.top { background: #163e38; color: var(--white); }
.top-inner, .container { max-width: 1160px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 38px); }
.top-inner { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 12px; min-height: 64px; padding-block: 10px; }
.brand, .session { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.brand { color: inherit; font-size: 1.1rem; text-decoration: none; }
.brand span { border-left: 1px solid #86ad9a; padding-left: 12px; }
.container { padding-bottom: 44px; }
.navigation { display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 14px 0; border-bottom: 1px solid var(--line); }
nav a { text-decoration: none; }
a { color: var(--accent); text-underline-offset: .19em; }
h1 { font-size: clamp(1.65rem, 4vw, 2.2rem); margin: 1.5rem 0 1rem; line-height: 1.2; }
h2 { margin: 0 0 12px; font-size: 1.28rem; }
h3 { margin: 0 0 8px; font-size: 1.08rem; }
p { margin: 0 0 12px; }
section { margin-bottom: 22px; }
.login { max-width: 450px; margin: 42px auto; padding: 26px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; }
.login h1 { margin-top: 0; }
.login > p { margin: 18px 0 0; }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 18px; min-width: 0; }
.dashboard-grid, .club-grid { display: grid; gap: 18px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dashboard-grid > section:first-child { background: var(--soft); border-radius: 12px; padding: 18px; }
.dashboard-grid > section:last-child { padding: 18px; }
.stack { display: grid; gap: 12px; max-width: 650px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,190px),1fr)); align-items: end; gap: 12px; }
label { display: grid; gap: 4px; font-weight: 600; min-width: 0; }
label span, .muted, small { color: var(--muted); font-weight: 400; }
input, textarea, select, button, .button { font: inherit; }
input, textarea, select { min-width: 0; width: 100%; padding: .58rem .62rem; background: var(--paper); color: var(--ink); border: 1px solid #819b8c; border-radius: 6px; }
input[readonly] { background: var(--soft); }
button, .button { display: inline-block; width: fit-content; padding: .54rem .86rem; border: 1px solid var(--accent); border-radius: 7px; background: var(--accent); color: #fff; text-decoration: none; cursor: pointer; }
button.secondary, button.quiet { background: transparent; color: var(--accent); }
button.quiet { color: inherit; border-color: #93b4a9; }
:focus-visible { outline: 3px solid #93753d; outline-offset: 2px; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.rows { list-style: none; padding: 0; margin: 0; }
.rows li { border-top: 1px solid var(--line); padding: .65rem 0; }
.rows li small { display: block; }
.navrows a { display: block; text-decoration: none; padding: 3px 0; }
.module-row { display: flex; justify-content: space-between; flex-wrap: wrap; align-items: center; gap: 8px; }
dl { margin: 0 0 12px; }
dl div { display: grid; grid-template-columns: minmax(85px, .4fr) minmax(0, 1fr); gap: 8px; padding-block: 4px; }
dt { font-weight: 600; }
dd { margin: 0; overflow-wrap: anywhere; }
.preserve { white-space: pre-wrap; }
.notice, .handoff { background: var(--soft); margin: 15px 0; padding: 14px; border-radius: 7px; }
.spaced { margin-top: 12px; }
@media (max-width: 670px) { .dashboard-grid, .club-grid { grid-template-columns: 1fr; } .login { margin-top: 20px; } }
[data-website-builder] fieldset { border: 1px solid var(--line); border-radius: 8px; margin: 8px 0; }
.website-block { padding: 12px 0; }
.website-callout { background: var(--soft); padding: 16px; border-radius: 8px; }
.website-faq { border-bottom: 1px solid var(--line); }
.website-faq summary { cursor: pointer; }
.club-site-water { border-top: 5px solid #277c9a; }
.club-site-event { border-top: 5px solid #b07122; }
.portal-footer{display:flex;align-items:center;flex-wrap:wrap;gap:.75rem 1.5rem;border-top:1px solid var(--line);font-size:.875rem}
.ramea-credit { display: inline-flex; align-items: center; gap: .6rem; }
.ramea-mark {
  --ramea-mark-image: url("ramea-mark.png");
  display: block;
  flex: 0 0 36px;
  width: 36px;
  height: 32px;
  border-radius: .22rem;
  background: #061b33 var(--ramea-mark-image) center / 80% auto no-repeat;
}
.club-public-footer .ramea-mark { --ramea-mark-image: url("ramea.png"); }
@supports (mask-image: url("ramea-mark.png")) {
  .ramea-mark {
    border-radius: 0;
    background: linear-gradient(110deg, #006b77 9%, #102b50 71%);
    mask: var(--ramea-mark-image) center / contain no-repeat;
  }
}
