:root {
  /* palette sampled from the club logo: navy wheel + blue anchor */
  --ink: #1b263f;
  --navy: #22304f;
  --navy-2: #2c3d63;
  --sea: #2c6296;
  --sea-deep: #1f4a75;
  --buoy: #e0632c;
  --sand: #d8c3a5;
  --paper: #f4f7f8;
  --card: #ffffff;
  --line: #e2e9ec;
  --muted: #566875;
  --shadow: 0 1px 2px rgba(10,36,50,.04), 0 8px 24px rgba(10,36,50,.06);
  --radius: 14px;
  --wrap: 1080px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--sea-deep); }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--navy); color: #fff; padding: 10px 16px; z-index: 100;
  border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; min-height: 66px;
}
.brand {
  display: inline-flex; align-items: center; gap: 12px;
  text-decoration: none; color: var(--ink);
  font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  font-size: 15px;
}
/* Real club logo: circular crop clips the white square corners,
   so it sits cleanly on both the light header and the navy footer. */
.brand .mark {
  width: 34px; height: 34px; flex: 0 0 34px;
  border-radius: 50%; display: block;
}
.menu-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  padding: 8px; color: var(--ink);
}
.menu { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.menu a {
  display: block; text-decoration: none; color: var(--ink);
  padding: 9px 14px; border-radius: 8px; font-size: 14px; font-weight: 500;
  letter-spacing: .01em;
}
.menu a:hover { background: rgba(22,105,122,.08); color: var(--sea-deep); }

/* Login is an account action, not another page about the club, so it sits
   apart from the content nav. Styled DOWN rather than up: only twelve people
   can use it, and giving it button weight would put it above Medlemskab —
   the page that actually converts a prospective member. */
.menu .menu-login { margin-left: auto; }
.menu .menu-login a { color: var(--muted); }
.menu a[aria-current="page"] { color: var(--sea-deep); }
.menu a[aria-current="page"]::after {
  content: ""; display: block; height: 2px; margin-top: 6px;
  background: var(--buoy); border-radius: 2px;
}
.has-sub { position: relative; }
.submenu {
  list-style: none; margin: 0; padding: 6px;
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 180px;
  background: var(--card); border: 1px solid var(--line); border-radius: 10px;
  box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: .16s ease;
}
.has-sub:hover .submenu, .has-sub:focus-within .submenu {
  opacity: 1; visibility: visible; transform: translateY(0);
}

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff;
  background: var(--navy);
}
.hero img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: .55;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(9,30,42,.35), rgba(9,30,42,.78));
}
.hero-inner {
  position: relative; z-index: 1;
  padding: clamp(72px, 14vw, 148px) 0 clamp(56px, 10vw, 104px);
  max-width: 620px;
}
.eyebrow {
  display: inline-block; text-transform: uppercase; letter-spacing: .2em;
  font-size: 12px; font-weight: 600; color: var(--sand);
  margin: 0 0 18px;
}
.hero h1 {
  margin: 0 0 18px; font-size: clamp(34px, 6vw, 56px); line-height: 1.05;
  font-weight: 700; letter-spacing: -.01em;
}
.hero p { margin: 0 0 28px; font-size: clamp(17px, 2.4vw, 20px); color: rgba(255,255,255,.9); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; text-decoration: none;
  font-weight: 600; font-size: 15px; cursor: pointer; border: 0;
  transition: transform .12s ease, background .18s ease, box-shadow .18s ease;
}
.btn-primary { background: var(--buoy); color: #fff; box-shadow: 0 6px 18px rgba(224,99,44,.28); }
.btn-primary:hover { transform: translateY(-1px); background: #d1571f; }
.btn-ghost { background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.4); }
.btn-ghost:hover { background: rgba(255,255,255,.2); }
.btn-line { background: transparent; color: var(--sea-deep); border: 1px solid var(--sea); }
.btn-line:hover { background: rgba(22,105,122,.08); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Sections ---------- */
main { display: block; }
.section { padding: clamp(56px, 9vw, 96px) 0; }
.section.alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 640px; margin: 0 auto clamp(36px, 6vw, 56px); text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }
.kicker {
  text-transform: uppercase; letter-spacing: .18em; font-size: 12px;
  font-weight: 600; color: var(--sea); margin: 0 0 12px;
}
h2 { font-size: clamp(26px, 4vw, 36px); line-height: 1.15; margin: 0 0 16px; letter-spacing: -.01em; }
h3 { font-size: 19px; margin: 0 0 10px; }
.lead { font-size: 19px; color: var(--muted); }
p { margin: 0 0 16px; }
.muted { color: var(--muted); }

/* ---------- Cards / grid ---------- */
.grid { display: grid; gap: 22px; }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow);
}
.card .num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 10px; margin-bottom: 16px;
  background: rgba(22,105,122,.1); color: var(--sea-deep); font-weight: 700;
}
.card h3 { margin-bottom: 8px; }
.card p:last-child { margin-bottom: 0; }

/* Split media + text */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 64px); align-items: center; }
.split.reverse .media { order: 2; }
.media img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; height: 100%; object-fit: cover; }

/* ---------- Notice / banner ---------- */
.notice {
  display: flex; gap: 16px; align-items: flex-start;
  background: #fff7f2; border: 1px solid #f3d3c1; border-left: 4px solid var(--buoy);
  border-radius: var(--radius); padding: 22px 24px; margin: 0 auto; max-width: 640px;
}
.notice .dot { flex: 0 0 auto; font-size: 22px; line-height: 1; }
.notice h3 { margin: 0 0 4px; }
.notice p { margin: 0; color: var(--muted); }

/* ---------- Page header (interior) ---------- */
.page-head {
  background: var(--navy);
  color: #fff; padding: clamp(56px, 10vw, 92px) 0 clamp(36px, 6vw, 56px);
  position: relative; overflow: hidden;
}
.page-head::before {
  content: ""; position: absolute; right: -60px; top: -60px;
  width: 260px; height: 260px; border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, rgba(22,105,122,.5), transparent 70%);
}
.page-head .wrap { position: relative; }
.page-head h1 { margin: 0 0 10px; font-size: clamp(30px, 5vw, 44px); letter-spacing: -.01em; }
.page-head p { margin: 0; color: rgba(255,255,255,.85); max-width: 620px; }
.crumbs { font-size: 13px; color: var(--sand); margin: 0 0 14px; letter-spacing: .04em; }
.crumbs a { color: var(--sand); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

/* ---------- FAQ (native details) ---------- */
.faq { max-width: 760px; margin: 0 auto; }
.faq details {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  margin-bottom: 12px; box-shadow: var(--shadow); overflow: hidden;
}
.faq summary {
  cursor: pointer; list-style: none; padding: 20px 24px;
  font-weight: 600; font-size: 17px; display: flex; justify-content: space-between; gap: 16px;
  align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; font-size: 22px; color: var(--sea); font-weight: 400; transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details[open] summary { border-bottom: 1px solid var(--line); }
.faq .answer { padding: 18px 24px 22px; color: var(--muted); }
.faq .answer p:last-child { margin-bottom: 0; }

/* ---------- Bylaws ---------- */
.bylaws { max-width: 780px; margin: 0 auto; }
.bylaws .toolbar { display: flex; justify-content: flex-end; margin-bottom: 24px; }
.bylaws section { margin-bottom: 34px; scroll-margin-top: 90px; }
.bylaws h2 {
  font-size: 20px; margin: 0 0 14px; padding-bottom: 10px;
  border-bottom: 2px solid var(--line); display: flex; gap: 12px; align-items: baseline;
}
.bylaws h2 .par { color: var(--sea); font-weight: 700; }
.bylaws .clause { display: flex; gap: 16px; margin-bottom: 12px; }
.bylaws .clause .no { flex: 0 0 46px; color: var(--sea-deep); font-weight: 600; font-variant-numeric: tabular-nums; }
.bylaws .clause p { margin: 0; }
.bylaws ol.roman { margin: 6px 0 0; padding-left: 22px; }
.bylaws ol.roman li { margin-bottom: 4px; }
.bylaws .closing { text-align: center; color: var(--muted); margin-top: 40px; font-style: italic; }

/* ---------- Login (minimal chrome, no site nav/page-head) ---------- */
.login-body { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--paper); padding: 24px; }
.login-logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: 15px; margin-bottom: 32px; }
.login-logo img { border-radius: 50%; }
.login-card { width: 100%; max-width: 400px; }
.login-footer { margin-top: 24px; color: var(--muted); font-size: 13px; }

/* ---------- Forms ---------- */
.form-wrap { max-width: 640px; margin: 0 auto; }
form.styled { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow); }
.field { margin-bottom: 20px; }
.field label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 7px; }
.field .req { color: var(--buoy); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px;
  font-family: inherit; font-size: 15px; background: #fbfcfd; color: var(--ink); transition: border .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--sea); box-shadow: 0 0 0 3px rgba(22,105,122,.14); background: #fff;
}
.field textarea { min-height: 140px; resize: vertical; }
.checkbox { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 16px; }
.checkbox input { width: auto; margin-top: 4px; flex: 0 0 auto; }
.checkbox label { font-weight: 400; font-size: 14px; color: var(--muted); margin: 0; }
.hp { position: absolute; left: -9999px; }
.form-note { font-size: 13px; color: var(--muted); margin-top: 14px; }
.form-error {
  margin: 14px 0 0; padding: 12px 14px; border-radius: 10px;
  background: #fdf1ec; border: 1px solid #f0c7b3; color: #8a3310; font-size: 14px;
}
.form-info { background: #eef4f6; border: 1px solid #d5e3e8; border-radius: 12px; padding: 18px 20px; margin-bottom: 28px; }
.form-info p:last-child { margin-bottom: 0; }
.dock-outer { max-width: 960px; margin: 0 auto 28px; }
.dock-wrap {
  overflow-x: auto; padding: 20px 16px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.dock-diagram { display: block; width: 100%; min-width: 640px; }
.dock-diagram .flag { fill: var(--buoy); }
.dock-diagram .boat { fill: var(--navy); }
.dock-diagram .bar { fill: var(--buoy); }
.dock-diagram .dock { fill: #ccd3d8; }
.dock-diagram .col-divider { stroke: var(--ink); stroke-width: 1.5; opacity: .35; }
.dock-diagram .plads-num { font: 700 16px var(--font); fill: var(--ink); }
.dock-diagram .plads-name { font: 500 12.5px var(--font); fill: var(--sea-deep); }
.dock-diagram .marker-orange { fill: var(--buoy); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy); color: rgba(255,255,255,.72);
  padding: 56px 0 30px; margin-top: 0;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.site-footer .brand { color: #fff; margin-bottom: 14px; }
.site-footer h4 { color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: .1em; margin: 0 0 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: rgba(255,255,255,.72); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.14); padding-top: 22px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-size: 13px; color: rgba(255,255,255,.55);
}

/* ---------- Dashboard chrome ---------- */
.dash-topbar { background: var(--card); border-bottom: 1px solid var(--line); }
.dash-topbar-inner { display: flex; align-items: center; justify-content: space-between; min-height: 52px; flex-wrap: wrap; gap: 12px; padding: 8px 24px; }
.dash-tabs { display: flex; gap: 4px; }
.dash-tabs a { padding: 8px 14px; border-radius: 8px; text-decoration: none; color: var(--muted); font-weight: 600; font-size: 14px; }
.dash-tabs a:hover { background: rgba(22,105,122,.08); color: var(--sea-deep); }
.dash-tabs a.active { background: var(--sea); color: #fff; }
.dash-user { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--muted); }

.status-pill { display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: 2px 8px; border-radius: 999px; margin-left: 8px; vertical-align: middle; }
.status-pill.active { background: rgba(44,98,150,.12); color: var(--sea-deep); }
.status-pill.disabled { background: var(--line); color: var(--muted); }

/* ---------- Member list (card-grid, not a table — see README) ---------- */
.member-grid { display: flex; flex-direction: column; gap: 12px; }
.member-row { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 22px; }
.member-row-main { display: grid; grid-template-columns: 110px 1fr 1fr; gap: 16px; align-items: center; }
.member-plads { font-weight: 700; color: var(--sea-deep); }
.member-navn { font-weight: 600; }
.member-baad { color: var(--muted); }
.member-row details { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 12px; }
.member-row summary { cursor: pointer; font-size: 13px; color: var(--sea); font-weight: 600; list-style: none; }
.member-row summary::-webkit-details-marker { display: none; }
.member-row summary::before { content: "+ "; }
.member-row details[open] summary::before { content: "− "; }
.member-history-entry { padding: 12px 0; border-top: 1px solid var(--line); }
.member-history-entry:first-child { border-top: none; padding-top: 12px; }
.member-history-date { font-size: 13px; font-weight: 600; margin-bottom: 8px; color: var(--ink); }
.member-history-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px 20px; font-size: 14px; }
.member-history-grid .dt { color: var(--muted); margin-right: 6px; }
.member-history-grid .dd { color: var(--ink); }

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .menu-toggle { display: inline-flex; }
  .menu {
    position: fixed; inset: 66px 0 auto 0; flex-direction: column; align-items: stretch;
    background: var(--card); border-bottom: 1px solid var(--line); padding: 12px;
    gap: 2px; box-shadow: var(--shadow); display: none;
  }
  .menu.open { display: flex; }
  .menu a { padding: 12px 14px; }
  .menu a[aria-current="page"]::after { display: none; }
  /* margin-left:auto does nothing once the menu stacks, so the separation is
     restored on the axis that's actually available. */
  .menu .menu-login { margin-left: 0; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); }
  .submenu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 0 14px; }
  .grid.cols-3, .grid.cols-2 { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .split.reverse .media { order: 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .member-row-main { grid-template-columns: 1fr; gap: 4px; }
  .member-history-grid { grid-template-columns: 1fr; }
  .dash-topbar-inner { padding: 8px 16px; }
}
