/* Föreningens profil, hämtad från hembygd.hogerud.se. */
@font-face {
  font-family: Karla;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/karla.woff2') format('woff2');
}

:root {
  color-scheme: light;
  --brand-font: Karla, sans-serif;
  --brand-background: #fbebe1;
  --brand-surface: #fffaf5;
  --brand-ink: #582a2f;
  --brand-secondary: #744f39;
  --brand-muted: #7b5f5b;
  --brand-line: #dec8bc;
  --brand-soft: #f3dfd2;
  --bg: var(--brand-background);
  --white: var(--brand-surface);
  --text: var(--brand-ink);
  --green: var(--brand-ink);
  --muted: var(--brand-muted);
  --border: var(--brand-line);
  --line: var(--brand-line);
  --pale: var(--brand-soft);
  --shadow: none;
}

body { background: var(--bg); color: var(--text); font-family: var(--brand-font); font-size: 16px; line-height: 1.6; }
h1, h2, h3, h4, h5, h6 { font-family: var(--brand-font) !important; color: inherit; font-weight: 700; }
button, input, select, textarea { font-family: inherit; }
a { color: var(--brand-ink); text-underline-offset: .2em; }
input[type='checkbox'], input[type='radio'] { accent-color: var(--brand-ink); }
::selection { color: var(--brand-ink); background: #e9c6b0; }
:is(button, a, input, select, textarea, summary):focus-visible { outline: 3px solid var(--brand-secondary); outline-offset: 3px; }
[hidden] { display: none !important; }

/* Samma tydliga ordmärke som på föreningens webbplats. */
.brand { color: var(--brand-ink); text-decoration: none; }
.brand-name { font-size: 20px; font-weight: 700; line-height: 1.25; letter-spacing: -.015em; }
.site-header { height: auto; min-height: 90px; padding: 22px clamp(20px, 3vw, 40px); background: var(--bg); border-color: var(--brand-line); }
.site-header .brand { max-width: 360px; padding: 0; }
.membership-nav { gap: 28px; flex-wrap: wrap; justify-content: flex-end; }
.membership-nav > a, .site-header > .header-link { color: var(--brand-ink); font-size: 16px; font-weight: 400; }
.site-header a:hover { text-decoration: underline; }

/* Publika formulär och integritetssidan. */
body > .main { max-width: 1180px; padding-top: 44px; }
.intro { margin-bottom: 30px; }
.intro h1 { font-weight: 700; font-size: clamp(34px, 4vw, 48px); line-height: 1.15; letter-spacing: -.025em; margin-top: 10px; }
.intro p { font-size: 18px; color: var(--brand-muted); }
.eyebrow, .section-eyebrow, .overline { color: var(--brand-muted); letter-spacing: .08em; }
.panel, .kpi { background: var(--brand-surface); border-color: var(--brand-line); border-radius: 6px; box-shadow: none; }
.panel h2 { font-size: 24px; font-weight: 700; letter-spacing: -.015em; }
.field label, .booking-field label { color: var(--brand-ink); font-size: 14px; }
.field input, .field textarea, .booking-field input, .booking-field select, .booking-field textarea { font-size: 16px; border-color: #b79a8d; border-radius: 5px; }
.field label small { color: var(--brand-muted); }
.form-panel button[type='submit'], .membership-form-panel #member-review, .review button:not(.secondary) { font-size: 15px; min-height: 48px; border-radius: 5px; }
.membership-type-picker legend { color: var(--brand-ink); font-size: 14px; }
.membership-type-option { background: var(--brand-surface); border-radius: 5px; }
.membership-type-option:has(input:checked) { background: var(--brand-soft); border-color: var(--brand-secondary); box-shadow: inset 0 0 0 1px var(--brand-secondary); }
.membership-type-text strong { color: var(--brand-ink); font-size: 15px; }
.membership-type-text small { color: var(--brand-muted); font-size: 13px; }
.membership-type-price { color: var(--brand-ink); font-size: 17px; }
.membership-summary > p { font-size: 16px; color: var(--brand-muted); }
.membership-fee { background: var(--brand-soft); border-color: var(--brand-line); border-radius: 5px; padding: 22px 18px; }
.membership-fee strong { color: var(--brand-ink); font-size: 25px; }
.membership-fee small, .membership-fee > span { color: var(--brand-muted); font-size: 13px; }
.privacy { color: var(--brand-muted); background: #f8eee5; border-color: var(--brand-line); border-radius: 5px; font-size: 13px; line-height: 1.7; }
.privacy a { color: var(--brand-ink); }
.micro { font-size: 13px; color: var(--brand-muted); }
.calendar button { font-size: 14px; border-radius: 5px; }
.calendar button.chosen { background: var(--brand-ink); color: #fffaf5; }
.calendar button.chosen:hover:not(:disabled), .booking-day.selected:hover:not(:disabled) { background: var(--brand-ink); color: #fffaf5; }
.month-actions button { color: var(--brand-ink); min-height: 40px; min-width: 40px; background: var(--brand-surface); }
.month-label { color: var(--brand-muted); font-size: 15px; }
.occupied { color: var(--brand-ink); background: #f8eee5; border-color: var(--brand-line); border-radius: 5px; }
.occupied #pb-occupied, .selected-date { color: var(--brand-muted); font-size: 14px; }
.privacy-copy p, .privacy-copy li { font-size: 16px; }
body > footer { color: var(--brand-muted); background: transparent; font-size: 13px; padding: 28px 20px; }

/* Inloggning, första lösenordet och återställning. */
.auth-brand { font-family: var(--brand-font); font-size: 21px; font-weight: 700; line-height: 1.3; color: var(--brand-ink); }
.auth-page h1 { font-family: var(--brand-font); font-weight: 700; font-size: clamp(28px, 5vw, 36px); letter-spacing: -.025em; }
.auth-page .panel { border-radius: 6px; }
.auth-page input:not([type='checkbox']) { font-size: 16px; border-color: #b79a8d; border-radius: 5px; }
.auth-page button, .auth-login-link { font-size: 16px; border-radius: 5px; }
.auth-page p, .auth-links, .auth-page label { font-size: 15px; }
.auth-page a { color: var(--brand-ink); }
.auth-page .auth-login-link { color: #fffaf5; }

/* Privat portal: en lugn, ljus meny och samma färger på alla undersidor. */
.sidebar { flex-basis: 258px; background: var(--bg); border-color: var(--brand-line); padding: 30px 20px; }
.sidebar .brand { padding: 0 12px 32px; }
.sidebar .brand-name { font-size: 21px; line-height: 1.3; }
.sidebar .nav-item { color: var(--brand-ink); font-size: 15px; border-radius: 5px; }
.sidebar .nav-item:hover { background: #f4dfd1; }
.sidebar .nav-item.active { color: #fffaf5; background: var(--brand-ink); font-weight: 700; }
.sidebar .side-note { color: var(--brand-ink); border-color: var(--brand-line); }
.topbar { background: var(--bg); border-color: var(--brand-line); }
.topbar a { color: var(--brand-ink); font-size: 14px; }
.heading h1 { font-weight: 700; letter-spacing: -.025em; }
.heading p:not(.eyebrow) { font-size: 15px; }
.kpi strong { color: var(--brand-ink); }
.kpi > span { color: var(--brand-muted); font-size: 13px; }
.kpi small { color: var(--brand-muted); font-size: 12px; }
.portal-grid p, .panel:not(.hero) > p { font-size: 15px; }
.action, .portal-button, .booking-primary { border-radius: 5px; font-size: 14px; min-height: 44px; }
.action:hover, .portal-button:hover, .booking-primary:hover { background: #442126; color: #fffaf5; }
.portal-button.secondary:hover { background: var(--brand-soft); color: var(--brand-ink); }
.hero { background: var(--brand-ink); }
.hero .eyebrow { color: #f1d9c9; }
.hero > p:not(.eyebrow) { color: #f8e7db; }
.hero-symbol { color: rgba(251, 235, 225, .08); }
.portal-landing .brand { padding-left: 0; }
.portal-landing h1 { font-weight: 700; letter-spacing: -.025em; }
.portal-login { background: var(--brand-surface); border-color: var(--brand-line); border-radius: 6px; }
.price-settings .panel + .panel { margin-top: 20px; }
.price-settings { max-width: 910px; }
.price-back { margin-top: 24px; }
.price-checkbox { width: auto !important; min-height: 0 !important; margin-right: 7px; }

/* Färg på besked anger fortfarande bokningens/betalningens status. */
.booking-calendar-entry.booking-entry-confirmed { background: #e3f1e6; border-color: #bed9c4; color: #215b34; }
.booking-calendar-legend > .booking-legend-confirmed::before { background: #e3f1e6; border-color: #95bb9e; }

@media (max-width: 980px) {
  .sidebar { flex-basis: 226px; padding: 24px 14px; }
  .sidebar .brand-name { font-size: 19px; }
}
@media (max-width: 960px) {
  .membership-aside { display: block; }
}
@media (max-width: 730px) {
  .sidebar { padding: 18px 16px 10px; }
  .sidebar .brand { padding: 0 2px 16px; }
  .sidebar .brand-name { font-size: 20px; }
  .sidebar .nav-item { font-size: 14px; padding: 9px 12px; }
  .site-header { align-items: flex-start; flex-wrap: wrap; gap: 18px; padding: 20px; }
  .site-header .brand { max-width: none; }
  .membership-nav { justify-content: flex-start; gap: 12px 22px; }
  .membership-nav > a, .site-header > .header-link { font-size: 14px; }
  .membership-nav a:not(.header-link) { display: inline; }
  .intro p { font-size: 16px; }
}
@media (max-width: 520px) {
  .site-header { padding: 18px; }
  .brand-name { font-size: 19px; }
  body > .main { padding: 28px 16px 45px; }
  .intro h1 { font-size: 35px; }
  .panel { padding: 22px 18px; }
  .panel h2 { font-size: 22px; }
  .membership-type-text strong { font-size: 14px; }
  .membership-type-price { font-size: 15px; }
}
