:root {
  /* Villaägarnas blå profil */
  --brand: #0a6cb4;
  --brand-600: #075c9a;
  --brand-700: #064a7e;
  --brand-50: #e9f2fa;
  --brand-100: #d2e5f5;

  --ink: #15212e;
  --ink-soft: #33485a;
  --muted: #5b7082;
  --line: #dce5ed;
  --bg: #f5f8fb;
  --surface: #ffffff;
  --warm: #f3efe7;
  --warm-ink: #524534;
  --success: #24704a;

  /* Status: upptaget av annan = varmt rött, din bokning = brand-blå */
  --busy: #c0392b;
  --busy-bg: #fdecea;
  --busy-line: #f5cfca;
  --mine: var(--brand);
  --mine-bg: var(--brand-50);
  --mine-line: var(--brand-100);
  --blocked: #596976;
  --blocked-bg: #edf1f4;
  --blocked-line: #cdd7de;
  --service: #8b5700;
  --service-bg: #fff3d9;
  --service-line: #ecd39b;

  --danger: #c0392b;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(13, 38, 59, .06), 0 8px 28px rgba(13, 38, 59, .07);
  --shadow-sm: 0 1px 2px rgba(13, 38, 59, .06), 0 3px 10px rgba(13, 38, 59, .05);
}

* { box-sizing: border-box; }
html, body { max-width: 100%; overflow-x: clip; }

body {
  margin: 0;
  font-family: "Inter", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand-700); text-underline-offset: .18em; }
a:hover { color: var(--brand); }
img { max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; }
:focus-visible { outline: 3px solid #f5b82e; outline-offset: 3px; }
.skip-link {
  position: fixed; left: 16px; top: 10px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 6px;
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); color: #fff; }
.container { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }
.eyebrow { margin: 0 0 10px; color: var(--brand-700); font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.lead { color: var(--ink-soft); font-size: clamp(18px, 2vw, 21px); line-height: 1.55; }
.muted { color: var(--muted); }
.section { padding: 64px 0; }
.section--tint { background: #edf4f9; }
.section--warm { background: var(--warm); }
.section-heading { max-width: 700px; margin-bottom: 30px; }
.section-heading h2 { margin: 0 0 10px; font-size: clamp(28px, 4vw, 38px); line-height: 1.15; letter-spacing: -.03em; }
.section-heading p { margin: 0; color: var(--ink-soft); font-size: 17px; }

/* Header */
.site-header {
  background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
}
.site-header .inner {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand { display: inline-flex; align-items: center; gap: 14px; color: var(--ink); text-decoration: none; flex: none; }
.brand img { width: 166px; height: auto; display: block; }
.brand-local { border-left: 1px solid var(--line); padding-left: 14px; font-size: 14px; font-weight: 750; line-height: 1.15; }
/* Menyn står till vänster, en bit efter ortnamnet. Automarginalen till höger
   äter upp det lediga utrymmet i sidhuvudet. */
.primary-nav { display: flex; align-items: center; justify-content: flex-start; gap: 4px; margin-left: 26px; margin-right: auto; }
.primary-nav a { color: var(--ink-soft); text-decoration: none; font-size: 13px; font-weight: 750; padding: 9px 10px; border-radius: 7px; white-space: nowrap; }
.primary-nav a:hover, .primary-nav a[aria-current="page"] { color: var(--brand-700); background: var(--brand-50); }
.nav-toggle {
  display: none;
  flex: none;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  font-weight: 750;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
}
.nav-toggle:hover { border-color: var(--brand); color: var(--brand-700); }

/* Sidhuvudets meny bryts aldrig till två rader. Ryms inte länkarna samlar
   site.js dem under hamburgerknappen med klassen .nav-collapsed – det sker
   vid vilken bredd som helst. */
.site-header .inner { position: relative; }
.js .site-header.nav-collapsed .nav-toggle { display: inline-flex; align-items: center; gap: 9px; }
.js .site-header.nav-collapsed .primary-nav { display: none; }
.js .site-header.nav-collapsed .primary-nav.is-open {
  display: flex;
  position: absolute;
  z-index: 20;
  top: calc(100% + 9px);
  right: var(--nav-drop-inset, 0px);
  width: min(272px, calc(100vw - 28px));
  flex-direction: column;
  align-items: stretch;
  gap: 2px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(11, 57, 88, .18);
}
/* Länkarna ligger nu på vit panel, så reglerna som ger dem ljus text eller
   färgad platta i sidhuvudet måste återställas här. */
.js .site-header.nav-collapsed .primary-nav.is-open a {
  padding: 11px 13px;
  border-radius: 9px;
  background: transparent;
  color: var(--ink);
  font-size: 14px;
  box-shadow: none;
}
.js .site-header.nav-collapsed .primary-nav.is-open a:hover,
.js .site-header.nav-collapsed .primary-nav.is-open a:focus-visible,
.js .site-header.nav-collapsed .primary-nav.is-open a[aria-current="page"] {
  background: var(--brand-50);
  color: var(--brand-700);
}
.header-user { display: flex; align-items: center; gap: 12px; font-size: 14px; }
.header-user .who { color: var(--muted); font-weight: 600; }
.btn-icon { display: inline-flex; align-items: center; gap: 6px; }
.btn-icon svg { flex: none; }
.profile-edit { max-width: 420px; margin: 0 0 18px auto; }
.profile-edit h2 { margin-top: 0; }
.profile-edit-actions { display: flex; gap: 10px; margin-top: 14px; }
.profile-edit-actions button { width: auto; margin-top: 0; flex: 1; }

main.booking-main, main.admin-main { max-width: 1080px; margin: 0 auto; padding: 28px 20px 64px; }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-700) 100%);
  color: #fff;
  border-radius: var(--radius);
  padding: 44px 40px;
  margin-bottom: 28px;
  box-shadow: var(--shadow);
}
.hero::after {
  /* dekorativt hus-emblem som vattenmärke */
  content: "";
  position: absolute;
  right: -40px; top: 50%;
  transform: translateY(-50%);
  width: 260px; height: 260px;
  background: url("emblem.png") center/contain no-repeat;
  opacity: .10;
  filter: brightness(0) invert(1);
  pointer-events: none;
}
.hero h1 { margin: 0 0 10px; font-size: 32px; font-weight: 800; letter-spacing: -.5px; }
.hero p { margin: 0; max-width: 560px; opacity: .94; font-size: 16px; }
.hero .trailer-name { margin: -4px 0 10px; font-size: 14px; font-weight: 600; opacity: .85; letter-spacing: .2px; }

/* Full webbplats */
.home-hero { background: #fff; border-bottom: 1px solid var(--line); }
.home-hero .container { min-height: 520px; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr); gap: 64px; align-items: center; padding-block: 72px; }
.home-hero h1 { max-width: 760px; margin: 0 0 20px; font-size: clamp(43px, 7vw, 76px); line-height: .98; letter-spacing: -.055em; }
.home-hero .lead { max-width: 660px; margin: 0 0 30px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 11px 18px; border-radius: 8px; font-weight: 750; text-decoration: none; border: 1px solid transparent; }
.button--primary { background: var(--brand); color: #fff; }
.button--primary:hover { background: var(--brand-600); color: #fff; }
.button--secondary { background: #fff; color: var(--brand-700); border-color: var(--brand); }
.button--secondary:hover { background: var(--brand-50); }
.button--text { color: var(--brand-700); padding-inline: 8px; }
.hero-panel { background: var(--brand-700); color: #fff; padding: 30px; border-radius: 18px; box-shadow: var(--shadow); }
.hero-panel h2 { margin: 0 0 20px; font-size: 22px; }
.hero-panel ul { list-style: none; margin: 0; padding: 0; }
.hero-panel li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-top: 1px solid rgba(255,255,255,.18); }
.hero-panel li::before { content: "✓"; display: grid; place-items: center; flex: none; width: 24px; height: 24px; border-radius: 50%; color: var(--brand-700); background: #fff; font-size: 13px; font-weight: 900; }
.hero-panel a { color: #fff; }
.service-list { border-top: 1px solid var(--line); }
.service-item { display: grid; grid-template-columns: 52px 1fr auto; gap: 20px; align-items: center; padding: 24px 0; border-bottom: 1px solid var(--line); }
/* Startsidans tjänstekort saknar ikonkolumn – texten börjar längst till vänster. */
.services-section .service-item { grid-template-columns: 1fr auto; }
.service-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: var(--brand-50); color: var(--brand-700); font-weight: 850; }
.service-item h3 { margin: 0 0 3px; font-size: 19px; }
.service-item p { margin: 0; color: var(--muted); }
.service-link { white-space: nowrap; font-weight: 750; }
.status { display: inline-flex; align-items: center; border-radius: 999px; padding: 4px 9px; color: var(--warm-ink); background: var(--warm); font-size: 12px; font-weight: 750; }
.two-column { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.news-list { border-top: 1px solid var(--line); }
.empty-state { border: 1px dashed #b9c8d5; border-radius: var(--radius); padding: 24px; background: rgba(255,255,255,.55); color: var(--muted); }
.empty-state h3 { margin: 0 0 5px; color: var(--ink); font-size: 18px; }
.empty-state p { margin: 0; }
.benefit-split { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.benefit-block { padding: 28px; background: #fff; border-left: 4px solid var(--brand); }
.benefit-block h3 { margin: 0 0 10px; }
.benefit-block p { color: var(--ink-soft); }
.contact-strip { display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center; }
.contact-strip h2 { margin: 0 0 8px; font-size: clamp(28px, 4vw, 38px); }
.contact-strip p { margin: 0; color: var(--warm-ink); }
.page-hero { padding: 58px 0 42px; background: #fff; border-bottom: 1px solid var(--line); }
.page-hero h1 { margin: 0 0 12px; font-size: clamp(38px, 6vw, 58px); line-height: 1.04; letter-spacing: -.045em; }
.page-hero p:not(.eyebrow) { max-width: 760px; margin: 0; }
.breadcrumbs { margin: 0 0 24px; font-size: 14px; color: var(--muted); }
.breadcrumbs a { color: inherit; }
.content-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(240px, 1fr); gap: 48px; align-items: start; }
.prose { max-width: 760px; }
.prose h2 { margin-top: 38px; font-size: 28px; }
.prose h3 { margin-top: 28px; }
.prose p, .prose li { color: var(--ink-soft); }
.link-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.link-list li { border-bottom: 1px solid var(--line); }
.link-list a { display: flex; justify-content: space-between; gap: 16px; padding: 16px 2px; font-weight: 700; text-decoration: none; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
textarea, select { width: 100%; padding: 12px 13px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; color: var(--ink); }
textarea { min-height: 150px; resize: vertical; }
.field-help { margin: 6px 0 0; font-size: 13px; color: var(--muted); }
.honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.resource-summary { width: 100%; min-width: 0; display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 26px; align-items: center; margin-bottom: 28px; padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.resource-summary > *, .grid > *, .content-grid > * { min-width: 0; }
.resource-summary p { overflow-wrap: anywhere; }
.resource-visual { display: grid; place-items: center; background: var(--brand-50); color: var(--brand-700); border-radius: 10px; text-align: center; overflow: hidden; }
.resource-visual:not(:has(img)) { aspect-ratio: 4/3; padding: 20px; }
.resource-visual img { display: block; width: 100%; height: auto; }

/* Bild på hämtningsplatsen, med bildtext */
.location-figure { margin: 16px 0 18px; }
.location-figure img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 10px; }
.location-figure figcaption { margin-top: 8px; font-size: 13px; color: var(--muted); }

/* Tillfällig notis om att hämtningsplatsen byts 1 oktober 2026 */
.notice { margin: 14px 0 0; padding: 12px 14px; border-radius: 9px; font-size: 14px; line-height: 1.5; }
.notice-change { background: var(--warm); color: var(--warm-ink); border: 1px solid #e2d8c6; }
.notice-service { margin: 0 0 14px; background: var(--service-bg); color: var(--service); border: 1px solid var(--service-line); }
.notice-service ul { margin: 6px 0 0; padding-left: 20px; }

/* Inloggningen: numrerade steg och en hjälpruta för den som kör fast. */
.login-steps { margin: 4px 0 18px; padding-left: 22px; font-size: 15px; line-height: 1.55; }
.login-steps li { margin: 0 0 8px; padding-left: 4px; }
.login-steps li::marker { font-weight: 800; color: var(--brand-700); }
.login-help { margin-top: 16px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 9px; background: var(--brand-50); font-size: 14.5px; line-height: 1.55; }
.login-help summary { cursor: pointer; font-weight: 750; color: var(--brand-700); }
.login-help ul { margin: 10px 0 0; padding-left: 20px; }
.login-help li { margin-bottom: 8px; }
.resource-summary h1, .resource-summary h2 { margin: 0 0 8px; }
.resource-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; }
.meta-pill { padding: 5px 9px; border-radius: 999px; background: var(--bg); color: var(--ink-soft); font-size: 13px; font-weight: 650; }

.site-footer { background: #10283a; color: #dce8f0; padding: 50px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 42px; }
.site-footer h2, .site-footer h3 { color: #fff; margin-top: 0; }
.site-footer h2 { font-size: 20px; }
.site-footer h3 { font-size: 14px; text-transform: uppercase; letter-spacing: .06em; }
.site-footer p { color: #b9cad6; }
.site-footer a { color: #fff; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 8px 0; }
.footer-bottom { margin-top: 38px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.15); display: flex; justify-content: space-between; gap: 20px; color: #afc2cf; font-size: 13px; }

/* Cards & layout */
.grid { display: grid; gap: 22px; }
.booking-workspace { display: grid; gap: 22px; }
@media (min-width: 860px) { .grid.cols-2 { grid-template-columns: 1.18fr .82fr; align-items: start; } }
@media (min-width: 860px) { .booking-workspace { grid-template-columns: 1.18fr .82fr; align-items: start; } }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 26px;
}
.card h2 { margin: 0 0 4px; font-size: 19px; font-weight: 700; letter-spacing: -.2px; }
.card .sub { color: var(--muted); font-size: 14px; margin: 0 0 18px; }

/* Forms */
label { display: block; font-size: 13px; font-weight: 600; color: var(--ink); margin: 14px 0 6px; }
input {
  width: 100%;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-family: inherit;
  background: #fff;
  color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
input::placeholder { color: #aab6c2; }
input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-50); }
.row { display: flex; gap: 14px; }
.row > div { flex: 1; }

button {
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-sm);
  padding: 12px 18px;
  cursor: pointer;
  transition: background .15s, box-shadow .15s, opacity .15s, transform .05s;
}
button:active { transform: translateY(1px); }
.btn-primary {
  background: var(--brand); color: #fff; width: 100%; margin-top: 18px;
  box-shadow: 0 2px 8px rgba(10, 108, 180, .28);
}
.btn-primary:hover { background: var(--brand-600); }
.btn-primary:disabled { opacity: .6; cursor: default; }
.btn-ghost { background: #fff; color: var(--brand-600); border: 1px solid var(--line); }
.btn-ghost:hover { background: var(--brand-50); border-color: var(--brand-100); }
.btn-danger { background: #fff; color: var(--danger); border: 1px solid var(--busy-line); }
.btn-danger:hover { background: var(--busy-bg); }
.btn-sm { padding: 8px 13px; font-size: 13px; }

/* Tabs (om de används) */
.tabs { display: flex; gap: 8px; margin-bottom: 4px; }
.tab {
  flex: 1; text-align: center; padding: 10px; border-radius: var(--radius-sm);
  background: var(--brand-50); color: var(--brand); font-weight: 600; cursor: pointer; font-size: 14px;
}
.tab { border: none; transition: background .15s ease; }
.tab:hover { background: var(--brand-100, #d6e6f5); }
.tab.active { background: var(--brand); color: #fff; }
.admin-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.admin-bar .tabs { flex: 1; min-width: 260px; max-width: 560px; margin-bottom: 0; }
[data-panel][hidden] { display: none; }

/* Steps – "Så fungerar det" */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li {
  position: relative;
  padding: 10px 0 10px 44px;
  font-size: 14.5px;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.steps li:last-child { border-bottom: none; }
.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute; left: 0; top: 9px;
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  background: var(--brand-50); color: var(--brand-600);
  border-radius: 50%; font-weight: 700; font-size: 13px;
}

/* Messages */
.msg { padding: 12px 14px; border-radius: var(--radius-sm); font-size: 14px; margin-top: 14px; display: none; }
.msg.show { display: block; }
.msg.error { background: var(--busy-bg); color: var(--danger); border: 1px solid var(--busy-line); }
.msg.success { background: var(--brand-50); color: var(--brand-700); border: 1px solid var(--brand-100); }
.msg.info { background: var(--warm); color: var(--warm-ink); border: 1px solid var(--line); }

/* Member badge */
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--brand-50); color: var(--brand-700);
  border-radius: 999px; padding: 6px 14px; font-size: 14px; font-weight: 600;
}

/* Booking lists */
.booking-item {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 0; border-bottom: 1px solid var(--line);
}
.booking-item:last-child { border-bottom: none; }
.booking-item .when { font-weight: 700; }
.booking-item .meta { font-size: 13px; color: var(--muted); }
.booking-actions { display: flex; gap: 8px; }
.booking-group + .booking-group { margin-top: 22px; padding-top: 6px; border-top: 1px solid var(--line); }
.booking-group-title {
  margin: 0; padding-top: 12px; font-size: 12px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .06em; color: var(--muted);
}
.booking-group.past .booking-item .when { color: var(--ink-soft); font-weight: 650; }
.booking-tag {
  display: inline-block; margin-left: 8px; padding: 1px 9px; border-radius: 999px;
  font-size: 11px; font-weight: 700; vertical-align: 2px;
}
.booking-tag.now { background: var(--brand-50); color: var(--brand-700); }
.booking-tag.done { background: var(--bg); color: var(--muted); border: 1px solid var(--line); }
.empty { color: var(--muted); font-size: 14px; padding: 8px 0; }

/* Calendar */
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.cal-head .title { font-weight: 700; font-size: 16px; text-transform: capitalize; }
.cal-nav { display: flex; gap: 6px; }
.cal-nav button { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; background: var(--brand-50); color: var(--brand-600); padding: 0; line-height: 1; }
.cal-nav button svg { display: block; width: 26px; height: 26px; flex: none; }
.cal-nav button:hover { background: var(--brand-100); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-dow { text-align: center; font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; padding-bottom: 4px; }
.cal-cell {
  aspect-ratio: 1 / 1; border-radius: var(--radius-sm); border: 1px solid var(--line);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-size: 14px; position: relative; background: #fff; font-weight: 500;
}
.cal-cell.muted { color: #c4ccc8; background: transparent; border-color: transparent; }
.cal-cell.clickable { cursor: pointer; transition: border-color .12s, box-shadow .12s, transform .06s; }
.cal-cell.clickable:hover { border-color: var(--brand); box-shadow: 0 4px 12px rgba(10, 108, 180, .15); transform: translateY(-1px); }
.cal-cell.selected { outline: 2px solid var(--brand); outline-offset: -2px; font-weight: 700; box-shadow: 0 4px 12px rgba(10, 108, 180, .18); }
.cal-cell.past { opacity: .4; }
.cal-cell.today { border-color: var(--brand); font-weight: 700; }
.cal-cell.today::after { content: "idag"; position: absolute; bottom: 4px; font-size: 8.5px; font-weight: 700; color: var(--brand); text-transform: uppercase; letter-spacing: .3px; }
.cal-cell.booked { background: var(--busy-bg); border-color: var(--busy-line); color: var(--busy); }
.cal-cell.mine { background: var(--mine-bg); border-color: var(--mine-line); color: var(--brand-700); }
.cal-cell.blocked { background: var(--blocked-bg); border-color: var(--blocked-line); color: var(--blocked); }
.cal-cell.service { background: var(--service-bg); border-color: var(--service-line); color: var(--service); }
.cal-dot { width: 6px; height: 6px; border-radius: 50%; margin-top: 3px; }
.cal-cell.today .cal-dot { display: none; }
.cal-cell.booked .cal-dot { background: var(--busy); }
.cal-cell.mine .cal-dot { background: var(--mine); }
.cal-cell.blocked .cal-dot { background: var(--blocked); }
.cal-cell.service .cal-dot { background: var(--service); }
.legend { display: flex; gap: 16px; margin-top: 16px; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 14px; height: 14px; border-radius: 4px; display: inline-block; border: 1px solid transparent; }

/* Dag-panel: upptaget + lediga starttider */
.day-panel { margin: 16px 0 6px; }
.day-panel .empty.day-hint {
  background: var(--brand-50); color: var(--brand-700); border: 1px dashed var(--brand-100);
  border-radius: var(--radius-sm); padding: 14px 16px; font-weight: 500;
}
.day-title { font-weight: 700; text-transform: capitalize; margin-bottom: 10px; font-size: 16px; }
.day-booked { margin-bottom: 16px; }
.booked-heading, .slot-heading { font-size: 13px; font-weight: 700; color: var(--muted); margin-bottom: 8px; }
.muted-inline { font-weight: 500; color: var(--muted); }
.booked-row { display: flex; align-items: center; gap: 8px; font-size: 14px; padding: 4px 0; color: var(--busy); }
.booked-row.mine { color: var(--brand-700); }
.booked-row.blocked { color: var(--blocked); }
.booked-row.service { color: var(--service); }
.booked-row .dot { width: 9px; height: 9px; border-radius: 50%; background: currentColor; flex: none; }
.tag-mine { font-size: 11px; background: var(--brand-50); color: var(--brand-700); border-radius: 999px; padding: 1px 9px; margin-left: 6px; font-weight: 700; }
.tag-status { font-size: 11px; color: #fff; border-radius: 999px; padding: 1px 9px; margin-left: 6px; font-weight: 700; }
.booked-row.blocked .tag-status { background: var(--blocked); }
.booked-row.service .tag-status { background: var(--service); }
.day-free-note { font-size: 14px; color: var(--brand-700); background: var(--brand-50); border-radius: var(--radius-sm); padding: 10px 14px; font-weight: 500; }

/* Tidslinje */
.timeline { position: relative; margin-bottom: 12px; padding-top: 26px; user-select: none; }
.tl-tip {
  position: absolute; top: 0; left: 0; transform: translateX(-50%);
  background: var(--brand-700); color: #fff; font-size: 12.5px; font-weight: 700;
  padding: 3px 10px; border-radius: 999px; white-space: nowrap; pointer-events: none;
  box-shadow: 0 2px 6px rgba(10, 108, 180, .35);
  opacity: 0; visibility: hidden; transition: opacity .12s;
}
.tl-tip.show { opacity: 1; visibility: visible; }
.tl-track {
  position: relative; height: 52px; border-radius: var(--radius-sm);
  background: var(--brand-50); border: 1px solid var(--brand-100);
  cursor: pointer; overflow: hidden; touch-action: none;
  background-image:
    repeating-linear-gradient(to right, rgba(10, 108, 180, .10) 0 1px, transparent 1px calc(100% / 12)),
    repeating-linear-gradient(to right, rgba(10, 108, 180, .22) 0 1px, transparent 1px calc(100% / 4));
}
.tl-track > * { pointer-events: none; }
.tl-busy {
  position: absolute; top: 0; bottom: 0;
  background: repeating-linear-gradient(-45deg, #f6cfca 0 6px, var(--busy-bg) 6px 12px);
  border-left: 1px solid var(--busy-line); border-right: 1px solid var(--busy-line);
}
.tl-busy.mine {
  background: repeating-linear-gradient(-45deg, var(--brand-100) 0 6px, var(--brand-50) 6px 12px);
  border-color: #a9d0ee;
}
.tl-busy.service {
  background: repeating-linear-gradient(-45deg, var(--service-line) 0 6px, var(--service-bg) 6px 12px);
  border-color: var(--service-line);
}
.tl-past { position: absolute; top: 0; bottom: 0; left: 0; background: rgba(95, 115, 133, .14); }
.tl-sel {
  position: absolute; top: 0; bottom: 0;
  background: rgba(10, 108, 180, .20); border: 2px solid var(--brand); border-radius: 7px;
}
.tl-sel-label {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  background: var(--brand); color: #fff; font-size: 11.5px; font-weight: 700;
  padding: 3px 9px; border-radius: 999px; white-space: nowrap;
  box-shadow: 0 2px 6px rgba(10, 108, 180, .35);
}
.tl-now { position: absolute; top: -2px; bottom: -2px; width: 2px; background: var(--brand-700); }
.tl-now::before {
  content: ''; position: absolute; top: -3px; left: -3px;
  width: 8px; height: 8px; border-radius: 50%; background: var(--brand-700);
}
.tl-hover {
  position: absolute; top: 0; bottom: 0; width: 2px; background: var(--brand);
  opacity: 0; transition: opacity .1s;
}
.tl-hover.show { opacity: .55; }
.tl-axis { position: relative; height: 24px; margin-top: 5px; }
.tl-axis span {
  position: absolute; top: 0; bottom: 0; width: 0;
  display: flex; flex-direction: column; align-items: center;
}
.tl-axis i { width: 1px; height: 5px; background: var(--brand-100); }
.tl-axis b {
  position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  font-size: 11px; line-height: 1; color: var(--muted); font-weight: 600; white-space: nowrap;
}
.tl-axis .maj i { height: 9px; background: var(--brand); opacity: .55; }
.tl-axis .maj b { color: var(--ink-soft); font-weight: 700; }
.tl-axis .min i { height: 4px; }
.tl-axis .min b { display: none; }
.tl-axis span:first-child b { transform: none; }
.tl-axis span:last-child b { transform: translateX(-100%); }
@media (max-width: 560px) { .tl-axis .mid b { display: none; } }
.tl-readout { font-size: 14px; color: var(--muted); min-height: 20px; }
.tl-readout.chosen { color: var(--brand-700); font-weight: 600; }
.tl-readout.bad { color: var(--danger); font-weight: 600; }
.fine-tune { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }

.role-checks { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 6px; }
.role-checks .check { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 600; color: var(--ink-soft); }
.role-checks .check input { width: auto; margin: 0; }

.email-overview { list-style: none; margin: 0; padding: 0; }
.email-overview li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.email-overview li:last-child { border-bottom: none; }
.email-overview .addr { font-weight: 700; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 14px; word-break: break-all; }

.role-multi { margin: 14px 0 4px; }
.role-multi > label { display: block; font-weight: 700; margin-bottom: 6px; }
.add-row { display: flex; gap: 8px; align-items: stretch; }
.add-row input { flex: 1; }
.add-row .btn-ghost { white-space: nowrap; width: auto; }
.email-list { list-style: none; margin: 10px 0 0; padding: 0; }
.email-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 10px; background: var(--bg); border-radius: var(--radius-sm); margin-bottom: 6px; }
.email-list li span { word-break: break-all; font-size: 14px; }
.email-list .btn-danger { width: auto; }
.email-list .empty { justify-content: flex-start; color: var(--muted); background: transparent; padding-left: 0; }

/* Hänglåskoden och mejlmallarna under /admin. */
.field-warning { font-size: 13px; line-height: 1.5; margin: 6px 0 10px; padding: 9px 11px; border-radius: var(--radius-sm); background: var(--busy-bg); color: var(--danger); border: 1px solid var(--busy-line); }
.code-fields { margin: 22px 0 6px; padding: 16px 18px 18px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg); }
.code-fields legend { font-weight: 750; font-size: 14px; padding: 0 6px; }
.code-state p { margin: 0 0 8px; font-size: 14px; }
.code-state { margin-bottom: 14px; }
.recipient-list { list-style: none; margin: 10px 0 0; padding: 0; max-height: 260px; overflow-y: auto; }
.recipient-list li { padding: 9px 11px; background: var(--bg); border-radius: var(--radius-sm); margin-bottom: 6px; font-size: 14px; line-height: 1.5; }
.placeholder-help { margin: 14px 0; font-size: 14px; }
.placeholder-help summary { cursor: pointer; font-weight: 650; }
.placeholder-list { list-style: none; margin: 10px 0; padding: 0; display: grid; gap: 4px; }
.placeholder-list code { background: var(--brand-50); padding: 1px 5px; border-radius: 4px; }
.preview-title { font-size: 14px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin: 0 0 8px; }
.mail-preview { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 18px; background: #fff; min-height: 220px; }
.mail-subject { font-weight: 750; padding-bottom: 10px; margin-bottom: 12px; border-bottom: 1px solid var(--line); }
.mail-body { white-space: pre-wrap; font-size: 14px; line-height: 1.6; }

.audit-wrap { overflow-x: auto; }
.audit-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.audit-table th, .audit-table td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.audit-table th { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 750; }
.audit-table tbody tr:hover { background: var(--brand-50); }
.audit-table td.nowrap { white-space: nowrap; color: var(--ink-soft); }
.audit-table td.empty { text-align: center; color: var(--muted); padding: 22px; }

/* Webbmail-inloggning i e-postöversikten */
.email-overview .muted { margin-right: auto; }
.mail-login { white-space: nowrap; font-weight: 700; font-size: 13px; text-decoration: none; padding: 5px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--brand-50); color: var(--brand-700); }
.mail-login:hover { background: var(--brand-100); color: var(--brand-700); }

/* Underflikar (Släpbokning / Maskinpool) */
.subtabs { display: flex; gap: 6px; margin-bottom: 22px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.subtab { background: none; border: none; padding: 10px 16px; font-weight: 700; font-size: 14px; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.subtab:hover { color: var(--brand-700); }
.subtab.active { color: var(--brand-700); border-bottom-color: var(--brand); }
[data-subpanel][hidden] { display: none; }

.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card-head h2 { margin: 0; }
.card-head .btn-sm { width: auto; margin-top: 0; }

/* Bokningsöversikt */
.table-wrap { overflow-x: auto; }
.bookings-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.bookings-table th, .bookings-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.bookings-table th { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 750; }
.bookings-table td.empty { text-align: center; color: var(--muted); padding: 22px; }
.bookings-table td.nowrap { white-space: nowrap; }
.booking-row { cursor: pointer; }
.booking-row:hover { background: var(--brand-50); }
.booking-row .chev { text-align: center; color: var(--muted); transition: transform .15s ease; }
.booking-row.open .chev { transform: rotate(180deg); }
.booking-row.past td:first-child { color: var(--muted); }
.tag { display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 1px 8px; margin-left: 6px; }
.booking-detail > td { background: var(--brand-50); }
.detail-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px 20px; margin: 0; }
.detail-list dt { font-size: 12px; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); font-weight: 750; margin-bottom: 2px; }
.detail-list dd { margin: 0; font-size: 14px; word-break: break-word; }

/* Sidan /mail – genväg till webbmailen */
.mail-accounts { list-style: none; margin: 14px 0 0; padding: 0; }
.mail-account { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 10px; }
.mail-account:last-child { margin-bottom: 0; }
.mail-account-text { display: grid; gap: 2px; min-width: 0; }
.mail-account .addr { font-weight: 700; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 14px; word-break: break-all; }
.mail-account .muted { font-size: 13px; }
.mail-account-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.mail-account-actions .btn-sm { width: auto; margin-top: 0; text-decoration: none; }
.mail-steps { margin: 12px 0 0; padding-left: 20px; }
.mail-steps li { margin-bottom: 6px; }

/* Medlemsregister – formuläret som fälls ut under en medlemsrad */
.member-form { display: grid; gap: 4px; max-width: 460px; }
.member-form label { font-size: 12px; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); font-weight: 750; }
.member-form input { width: 100%; margin: 0 0 6px; }
.member-form .note { margin: 0 0 10px; font-size: 13px; }
.member-form .btn-sm { width: auto; justify-self: start; margin-top: 0; }

/* Maskinpool */
.machine-item { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; margin-bottom: 12px; }
.machine-item:last-child { margin-bottom: 0; }
.machine-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.machine-top .badge { font-size: 12px; padding: 3px 10px; }
.machine-actions { display: flex; gap: 8px; }
.machine-actions .btn-sm { width: auto; margin-top: 0; }
.machine-item .meta { font-size: 13px; color: var(--muted); margin-top: 6px; }
.machine-item p { margin: 8px 0 0; font-size: 14px; word-break: break-word; }
.machine-instr { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); }
.machine-instr strong { font-size: 12px; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); }
.machine-instr p { margin-top: 4px; }
.machine-actions { flex-wrap: wrap; }
.machine-thumbs { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.machine-thumbs img { width: 62px; height: 46px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); background: var(--bg); }

/* Bilduppladdning i admin: släppyta, vald fil och listan över bilderna */
.image-drop {
  margin-top: 6px; padding: 18px 16px; text-align: center; cursor: default;
  border: 2px dashed var(--line); border-radius: var(--radius-sm); background: var(--bg);
  transition: border-color .15s, background .15s;
}
.image-drop.dragging { border-color: var(--brand); background: var(--brand-50); }
.image-drop.flash { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-50); }
.image-drop-lead { margin: 0; font-weight: 750; color: var(--ink-soft); }
.image-drop .note { margin-top: 4px; }
.btn-link { border: 0; background: none; padding: 0; font: inherit; color: var(--brand); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.image-grid { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 10px; }
.image-item { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; align-items: start; padding: 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.image-item[data-pending] { border-style: dashed; }
.image-item > img { width: 96px; height: 72px; object-fit: cover; border-radius: 6px; background: var(--bg); }
.image-item-body { display: grid; gap: 6px; min-width: 0; }
.image-tag { font-size: 12px; font-weight: 750; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); }
.image-item input { width: 100%; margin: 0; }
.image-item-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.image-item-actions .btn-sm { width: auto; margin-top: 0; }

.badge-AVAILABLE { background: #e6f6ec; color: #1c7a43; }
.badge-UNAVAILABLE { background: var(--busy-bg); color: var(--danger); }
.badge-SERVICE { background: #fff4e0; color: #97590a; }

.hidden { display: none !important; }
.footer { text-align: center; color: var(--muted); font-size: 13px; margin-top: 40px; }
.footer a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.note { font-size: 13px; color: var(--muted); margin-top: 8px; }

@media (max-width: 940px) {
  /* Loggan behåller sin storlek: ortnamnet står i själva bilden och blir
     oläsligt om den krymper. Ortnamnet bredvid loggan är borttaget. */
  .brand-local { display: none; }
  .primary-nav a { padding-inline: 7px; font-size: 12px; }
  .home-hero .container { grid-template-columns: 1fr; min-height: auto; gap: 36px; }
  .hero-panel { max-width: 680px; }
}

@media (max-width: 720px) {
  .container { width: min(100% - 32px, 1160px); }
  .section { padding: 48px 0; }
  html:not(.js) .site-header .inner { flex-wrap: wrap; }
  html:not(.js) .primary-nav { width: 100%; margin-left: 0; overflow-x: auto; justify-content: flex-start; }
  .primary-nav a { padding: 10px; font-size: 13px; }
  .home-hero .container { padding-block: 52px; }
  .home-hero h1 { font-size: clamp(42px, 14vw, 62px); }
  .hero-actions, .hero-actions .button { width: 100%; }
  .service-item { grid-template-columns: 44px 1fr; gap: 14px; }
  .services-section .service-item { grid-template-columns: 1fr; }
  .service-link { grid-column: 2; }
  .services-section .service-link { grid-column: 1; }
  .two-column, .benefit-split, .content-grid, .footer-grid, .contact-strip, .resource-summary { grid-template-columns: 1fr; gap: 26px; }
  .contact-strip .button { width: 100%; }
  .footer-bottom { flex-direction: column; }
  .resource-visual:not(:has(img)) { max-height: 210px; }
  .resource-summary { padding: 20px; }
  .row { flex-direction: column; gap: 0; }
  .booking-item { align-items: flex-start; flex-direction: column; }
  .booking-actions { width: 100%; }
  .booking-actions button { flex: 1; }
}

/* ─────────── Parkeringssidan ─────────── */
.construction-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 20px;
  background: linear-gradient(135deg, var(--brand-50) 0%, var(--bg) 45%, #fff 100%);
}
.construction { width: 100%; max-width: 720px; }
.construction-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(28px, 5vw, 48px);
}
.construction-logo { width: 215px; height: auto; display: block; margin-bottom: 26px; }
.construction-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  padding: 6px 13px;
  border-radius: 999px;
  background: var(--service-bg);
  border: 1px solid var(--service-line);
  color: var(--service);
  font-size: 13px;
  font-weight: 800;
}
.construction-status span { font-size: 10px; }
.construction h1 { margin: 0 0 14px; font-size: clamp(28px, 4.5vw, 40px); line-height: 1.12; }
.construction .lead { margin: 0; }
.construction-actions { margin: 30px 0 14px; }
.construction-actions .button { width: 100%; justify-content: center; text-align: center; }
.construction-note { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.construction-meanwhile { margin-top: 34px; padding-top: 26px; border-top: 1px solid var(--line); }
.construction-meanwhile h2 { margin: 0 0 14px; font-size: 18px; }
.construction-meanwhile .link-list { margin: 0; }
.construction-footer { margin: 30px 0 0; color: var(--muted); font-size: 13px; }

/* ─────────────────── Webbplatsens utseende ───────────────────
   Här börjar sidans egna färger, typografi och komponentlayout. Reglerna
   börjar på html:root i stället för :root eller bara elementet, eftersom de
   ska vinna över grundlagret ovan utan !important. */

/* Den gamla emblem-PNG:n saknar transparens och gav en synlig "halvruta"
   ovanpå hjältebilden. Vattenmärket är borttaget. */
.hero::after { content: none; display: none; }

html:root {
  --brand: #0a6cb4;
  --brand-600: #075c9a;
  --brand-700: #064a7e;
  --brand-50: #e9f2fa;
  --brand-100: #d2e5f5;
  --ink: #142b3d;
  --ink-soft: #40596b;
  --muted: #627788;
  --line: #d7e3ec;
  --bg: #f5f8fb;
  --surface: #fff;
  --warm: #edf7ea;
  --warm-ink: #245c35;
  /* Riksförbundets knappgröna (villaagarna.se), nedtonad till 80 % ljusstyrka
     så vit text blir läsbar. Används som accent på handlingsknappar – inte som
     heltäckande sektionsbakgrund. */
  --cta: #43923a;
  --cta-hover: #3a7f32;
  /* Riksförbundets varma sandton – lugn avdelarbakgrund utan att skrika färg. */
  --sand: #efece7;
  --success: #3c8e3b;
  --mine: #0a6cb4;
  --mine-bg: #e9f2fa;
  --mine-line: #bfdcf0;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 24px 64px rgba(11, 57, 88, .14);
  --shadow-sm: 0 8px 28px rgba(11, 57, 88, .09);
  color-scheme: light;
}
html:root body { background: var(--bg); color: var(--ink); font-family: "Lato", "Aptos", "Segoe UI", Arial, sans-serif; }
html:root h1,
html:root h2,
html:root h3 { letter-spacing: -.038em; }
html:root a { color: var(--brand-700); }
html:root .container { width: min(1260px, calc(100% - 48px)); }
html:root .site-header { border: 0; background: rgba(255,255,255,.96); backdrop-filter: blur(14px); }
html:root .site-header .inner { max-width: 1260px; padding: 14px 24px; }
html:root .brand-local { border-color: #ded8de; }
html:root .primary-nav { gap: 5px; }
html:root .primary-nav a { border-radius: 999px; padding: 10px 13px; color: #403b41; }
html:root .primary-nav a:hover,
html:root .primary-nav a[aria-current="page"] { background: #f4ebf4; color: var(--brand); }
html:root .primary-nav a[href="/boka/"] { padding-inline: 21px; background: var(--brand); color: #fff; }

html:root .home-hero {
  position: relative;
  min-height: 700px;
  overflow: hidden;
  border: 0;
  background:
    linear-gradient(180deg, rgba(249,247,249,.73), rgba(244,236,244,.90)),
    url("/hero-community-v2.jpg") center 58% / cover no-repeat;
}
html:root .home-hero::before {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 9px;
  background: linear-gradient(90deg, #8a2a8d 0 42%, #61d27d 42% 71%, #df5858 71%);
}
html:root .home-hero::after {
  content: "Illustrationsbild";
  position: absolute;
  right: 22px;
  bottom: 16px;
  color: #686169;
  font-size: 10px;
  letter-spacing: .06em;
  text-transform: uppercase;
}
html:root .home-hero .container {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 700px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 36px;
  padding-block: 84px;
}
html:root .home-hero .hero-copy { max-width: 900px; text-align: center; }
html:root .home-hero .eyebrow { color: var(--brand); }
html:root .home-hero h1 { max-width: 900px; margin-inline: auto; font-size: clamp(54px, 7.6vw, 94px); line-height: .91; }
html:root .home-hero .lead { max-width: 720px; margin-inline: auto; color: #3f3a40; font-size: 19px; }
html:root .hero-actions { justify-content: center; }
html:root .button { min-height: 54px; border-radius: 999px; padding-inline: 24px; }
html:root .button--primary { background: var(--brand); box-shadow: 0 10px 26px rgba(138,42,141,.24); }
html:root .button--secondary { border-color: #b797b8; background: rgba(255,255,255,.82); }
html:root .hero-panel {
  width: min(1120px, 100%);
  padding: 10px;
  border: 1px solid rgba(101,67,102,.11);
  border-radius: 22px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 22px 60px rgba(52,27,53,.18);
}
html:root .hero-panel h2 { margin: 4px 12px 8px; color: #6d676e; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
html:root .hero-panel ul { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
html:root .hero-panel li {
  min-height: 70px;
  align-items: center;
  padding: 12px 18px;
  border: 0;
  border-left: 1px solid var(--line);
}
html:root .hero-panel li:first-child { border-left: 0; border-radius: 14px; background: var(--brand); }
html:root .hero-panel li::before { display: none; }
html:root .hero-panel a { color: var(--ink); font-weight: 760; text-decoration: none; }
html:root .hero-panel li:first-child a { color: #fff; }

html:root .section { padding-block: clamp(76px, 8vw, 112px); }
html:root .section-heading { max-width: 790px; margin-bottom: 38px; }
html:root .section-heading h2 { font-size: clamp(40px, 5.4vw, 64px); }
html:root .services-section { background: #fff; }
html:root .services-section .service-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  border: 0;
}
html:root .services-section .service-item {
  position: relative;
  display: flex;
  min-height: 390px;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  overflow: hidden;
  padding: 190px 22px 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}
html:root .services-section .service-item::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 168px;
  background: linear-gradient(135deg, #d8ece0, #b3d3bd);
}
html:root .services-section .service-item:nth-child(1)::before {
  background: linear-gradient(rgba(33,18,34,.08), rgba(33,18,34,.08)), url("/hero-community-v2.jpg") 74% center / cover no-repeat;
}
html:root .services-section .service-item:nth-child(2)::before { background: radial-gradient(circle at 25% 30%, #fff 0 8%, transparent 8.5%), linear-gradient(135deg, #f3dbf4, #bb82bd); }
html:root .services-section .service-item:nth-child(3)::before { background: linear-gradient(135deg, #ffe2dc, #df7669); }
html:root .services-section .service-item:nth-child(4)::before { background: linear-gradient(135deg, #dff5e5, #61d27d); }
html:root .services-section .service-icon {
  position: absolute;
  z-index: 1;
  top: 14px;
  left: 14px;
  width: auto;
  height: auto;
  padding: 6px 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.94);
  color: var(--ink);
  font-size: 12px;
  box-shadow: 0 4px 12px rgba(37,24,38,.12);
}
html:root .services-section .service-item h3 { font-size: 22px; }
html:root .services-section .service-item p { color: var(--muted); }
html:root .services-section .service-link,
html:root .services-section .service-item > .muted { grid-column: auto; margin-top: auto; }
html:root .status { background: #ffe0da; color: #8b3329; }

html:root .current-section { background: #272227; color: #fff; }
html:root .current-section .two-column { gap: 18px; }
html:root .current-section .eyebrow,
html:root .current-section .section-heading p,
html:root .current-section a { color: #fff; }
html:root .current-section .empty-state { min-height: 180px; border: 0; border-radius: 18px; background: #393239; color: #cec5ce; }
html:root .current-section .empty-state h3 { color: #fff; }
html:root .value-section { background: #f5f3f5; }
html:root .benefit-split { gap: 18px; }
html:root .benefit-block { min-height: 300px; padding: clamp(34px, 5vw, 58px); border: 0; border-radius: 22px; background: #fff; box-shadow: var(--shadow-sm); }
html:root .benefit-block + .benefit-block { background: #f2e4f3; }
html:root .benefit-block h3 { font-size: clamp(30px, 4vw, 44px); }
html:root .contact-section { background: #61d27d; }
html:root .contact-section .button { background: #242124; color: #fff; box-shadow: none; }

html:root .page-hero { padding-block: 90px 76px; border: 0; background: #f0e4f0; }
html:root .page-hero h1 { max-width: 920px; font-size: clamp(52px, 7.8vw, 88px); }
html:root .form-card,
html:root .empty-state { border-radius: 18px; background: #fff; box-shadow: var(--shadow-sm); }

html:root main.booking-main { max-width: 1260px; padding: 30px 24px 100px; }
html:root .booking-resource {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(330px, .65fr);
  min-height: 500px;
  align-items: stretch;
  gap: 0;
  margin-bottom: 42px;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow);
}
html:root .booking-resource .resource-visual {
  position: relative;
  width: 100%;
  min-height: 500px;
  aspect-ratio: auto;
  border-radius: 0;
  color: transparent;
  background: #fff;
}
/* Produktbilden på släpet är frilagd mot vit botten och ska inte beskäras. */
html:root .booking-resource .resource-visual img {
  width: 100%;
  height: 100%;
  padding: clamp(18px, 3vw, 34px);
  object-fit: contain;
}
html:root .booking-resource .resource-visual strong { display: none; }
html:root .booking-resource > div:last-child { display: flex; flex-direction: column; justify-content: center; padding: clamp(34px, 4vw, 52px); }
html:root .booking-resource h1 { font-size: clamp(42px, 5vw, 64px); line-height: .94; }
html:root .booking-resource .eyebrow { color: var(--brand); }
html:root .booking-resource .resource-meta { gap: 7px; }
html:root .booking-resource .meta-pill { background: #f5f3f5; color: #504a51; }

html:root #authView {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(350px, 410px);
  gap: 24px 34px;
  align-items: start;
  margin-bottom: 48px;
}
html:root #authView > .grid { display: contents; }
html:root .booking-intro {
  grid-column: 1;
  grid-row: 1;
  margin: 0;
  padding: 36px 0 18px;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  box-shadow: none;
}
html:root .booking-intro h2 { max-width: 690px; font-size: clamp(45px, 6vw, 70px) !important; line-height: .92; }
html:root .booking-intro p { color: var(--ink-soft); font-size: 18px; }
html:root .login-card {
  grid-column: 2;
  grid-row: 1 / span 2;
  position: sticky;
  top: 94px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow);
}
html:root .login-card::before {
  content: "0 kr  ·  medlem";
  display: inline-flex;
  margin-bottom: 22px;
  padding: 7px 12px;
  border-radius: 999px;
  background: #e3f8e8;
  color: #245c35;
  font-size: 13px;
  font-weight: 850;
}
html:root .booking-guide-card {
  grid-column: 1;
  grid-row: 2;
  padding: 34px;
  border: 0;
  border-radius: 20px;
  background: #eee7ef;
  box-shadow: none;
}
html:root .booking-guide-card .steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 22px; }
html:root .booking-guide-card .steps li { border-color: #d6ccd7; }
html:root input,
html:root textarea,
html:root select { min-height: 54px; border: 1px solid #d8d1d8; border-radius: 12px; background: #fff; }
html:root input:focus,
html:root textarea:focus,
html:root select:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-50); }
html:root .btn-primary { min-height: 56px; border-radius: 14px; background: #61d27d; color: #173d22; box-shadow: none; font-weight: 850; }
html:root .btn-primary:hover { background: #4fc56c; }
html:root .btn-ghost { border-radius: 12px; }

html:root .booking-welcome { margin: 24px 0; border: 0; border-radius: 20px; background: linear-gradient(135deg, #8a2a8d, #aa48ad); box-shadow: none; }
html:root .booking-workspace {
  grid-template-columns: minmax(0, 1fr) minmax(350px, 410px);
  grid-template-areas: "booking calendar" "mine calendar";
  gap: 24px;
  align-items: start;
}
html:root .booking-stack { display: contents; }
html:root .booking-card { grid-area: booking; }
html:root .my-bookings-card { grid-area: mine; }
html:root .calendar-card { grid-area: calendar; position: sticky; top: 94px; }
html:root .booking-workspace .card { padding: clamp(28px, 4vw, 42px); border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: var(--shadow-sm); }
html:root .calendar-card::before {
  content: "0 kr / medlem";
  display: block;
  margin: -8px 0 18px;
  color: #2f7b49;
  font-size: 14px;
  font-weight: 850;
}
html:root .cal-grid { gap: 7px; }
html:root .cal-cell { border-radius: 10px; }
html:root .cal-cell.selected { outline: 0; border-color: var(--brand); background: var(--brand); color: #fff; }
html:root .cal-nav button { border-radius: 999px; background: var(--brand-50); color: var(--brand); }
html:root .badge { background: var(--brand-50); color: var(--brand-700); }
html:root .page-booking .section[aria-labelledby="rules-title"] { margin-top: 68px; padding-top: 68px !important; border-top: 1px solid var(--line); }
html:root .site-footer { background: #272227; }

html:root .primary-nav a { color: #29475b; }
html:root .primary-nav a:hover,
html:root .primary-nav a[aria-current="page"] { background: #e9f2fa; color: var(--brand-700); }
/* Bokning är en vanlig menyväg. Endast den aktuella sidan får aktiv markering. */
html:root .primary-nav a[href="/boka/"] {
  padding-inline: 13px;
  background: transparent;
  color: #29475b;
  box-shadow: none;
}
html:root .primary-nav a[href="/boka/"][aria-current="page"] {
  background: #e9f2fa;
  color: var(--brand-700);
}
html:root .home-hero {
  background:
    linear-gradient(180deg, rgba(247,251,254,.78), rgba(230,241,249,.94)),
    url("/hero-community-v2.jpg") center 58% / cover no-repeat;
}
html:root .home-hero::before {
  background: linear-gradient(90deg, #0a6cb4 0 48%, #54b649 48% 73%, #78b8d8 73%);
}
html:root .home-hero::after { color: #526c7d; }
html:root .home-hero .lead { color: #314d60; }
html:root .button--primary,
html:root a.button--primary,
html:root a.button--primary:visited {
  background: var(--cta);
  border-color: var(--cta);
  color: #fff;
  box-shadow: 0 10px 26px rgba(67,146,58,.24);
}
html:root .button--primary:hover,
html:root a.button--primary:hover,
html:root a.button--primary:focus-visible {
  background: var(--cta-hover);
  border-color: var(--cta-hover);
  color: #fff;
}
html:root .button--secondary { border-color: #9dc5df; }
/* Boka släp är en textlänk, inte en knapp – den ska inte konkurrera med "Bli medlem". */
html:root .button--text { color: var(--brand-700); text-decoration: underline; text-decoration-color: rgba(6,74,126,.35); text-underline-offset: .28em; }
html:root .button--text:hover,
html:root .button--text:focus-visible { text-decoration-color: currentColor; }
html:root .hero-panel { border-color: rgba(15,83,125,.13); box-shadow: 0 22px 60px rgba(11,57,88,.18); }
html:root .hero-panel h2 { color: #5d7383; }
html:root .services-section .service-item::before { background: linear-gradient(135deg, #dceef8, #b5d7ea); }
html:root .services-section .service-item:nth-child(1)::before {
  background: linear-gradient(rgba(4,62,102,.12), rgba(4,62,102,.12)), url("/hero-community-v2.jpg") 74% center / cover no-repeat;
}
html:root .services-section .service-item:nth-child(2)::before { background: radial-gradient(circle at 25% 30%, #fff 0 8%, transparent 8.5%), linear-gradient(135deg, #e6f2fa, #91c4e1); }
html:root .services-section .service-item:nth-child(3)::before { background: linear-gradient(135deg, #fff0e7, #ec9566); }
html:root .services-section .service-item:nth-child(4)::before { background: linear-gradient(135deg, #e3f2e8, #7dbf94); }
html:root .services-section .service-icon { box-shadow: 0 4px 12px rgba(11,57,88,.12); }
html:root .status { background: #edf7ea; color: #245c35; }
html:root .current-section { background: #103c58; }
html:root .current-section .empty-state { background: #1a4d6c; color: #c7ddeb; }
html:root .value-section { background: #f5f8fb; }
html:root .benefit-block + .benefit-block { background: #e5f1f8; }
/* Grönt är accentfärg, inte bakgrundsyta: sektionen är ljus och knappen bär färgen. */
html:root .contact-section { background: var(--sand); }
html:root .contact-section .contact-strip h2 { color: var(--ink); }
html:root .contact-section .contact-strip p { color: #5c5852; }
html:root .contact-section .button--primary { background: var(--cta); border-color: var(--cta); color: #fff; }
html:root .contact-section .button--primary:hover,
html:root .contact-section .button--primary:focus-visible { background: var(--cta-hover); border-color: var(--cta-hover); }
html:root .page-hero { background: #e7f2f9; }
html:root .booking-guide-card { background: #e7f2f9; }
html:root .login-card::before { background: #e3f4e9; color: #245c35; }
html:root .btn-primary { background: var(--cta); color: #fff; }
html:root .btn-primary:hover { background: var(--cta-hover); }
html:root .booking-welcome { background: linear-gradient(135deg, #0a6cb4, #328bc4); }
html:root .booking-resource .meta-pill { background: #edf5fa; color: #40596b; }
html:root .site-footer { background: #103c58; }

/* VillaÃ¤garnas huvudspÃ¥r: en lugnare typografisk skala som behÃ¥ller tydlig
   hierarki utan att lÃ¥nga svenska rubriker tar Ã¶ver eller riskerar att klippas. */
html:root .home-hero h1 {
  max-width: 820px;
  font-size: clamp(46px, 6vw, 76px);
  line-height: .96;
}
html:root .home-hero .lead {
  max-width: 680px;
  font-size: clamp(17px, 1.7vw, 19px);
  line-height: 1.5;
}
html:root .section-heading h2,
html:root .contact-strip h2 { font-size: clamp(32px, 4.5vw, 52px); line-height: 1.04; }
html:root .benefit-block h3 { font-size: clamp(26px, 3.5vw, 38px); line-height: 1.08; }
html:root .page-hero h1 { font-size: clamp(42px, 6.5vw, 70px); line-height: .96; }
html:root .booking-resource h1 { font-size: clamp(38px, 4.5vw, 54px); line-height: .98; }
html:root .booking-intro h2 { font-size: clamp(36px, 5vw, 56px) !important; line-height: .98; }
html:root .booking-welcome h2 { font-size: clamp(36px, 5vw, 56px) !important; line-height: .98; }

@media (max-width: 720px) {
  html:root .home-hero h1 { font-size: clamp(40px, 12vw, 56px); }
  html:root .section-heading h2,
  html:root .contact-strip h2 { font-size: clamp(30px, 9vw, 42px); }
}

/* Tjänstekorten bryts om på riktigt, inte bara skalas ned. */
@media (max-width: 1040px) {
  html:root .services-section .service-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  html:root .services-section .service-item { min-height: 360px; }
}

@media (max-width: 860px) {

  html:root .hero-panel ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  html:root .hero-panel li:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); }
  html:root .hero-panel li:nth-child(4) { border-top: 1px solid var(--line); }
  html:root .booking-resource { grid-template-columns: 1fr; }
  html:root .booking-resource .resource-visual { min-height: 390px; }
  html:root #authView { grid-template-columns: 1fr; }
  html:root .booking-intro,
  html:root .login-card,
  html:root .booking-guide-card { grid-column: auto; grid-row: auto; }
  html:root .login-card { position: static; }
  html:root .booking-workspace { grid-template-columns: 1fr; grid-template-areas: "calendar" "booking" "mine"; }
  html:root .calendar-card { position: static; }
}

@media (max-width: 720px) {
  html:root .container { width: min(100% - 32px, 1320px); }
  html:root .site-header .inner { padding-inline: 16px; }
  html:root .primary-nav a[href="/boka/"] { margin: 0; }

  html:root .home-hero,
  html:root .home-hero .container { min-height: 670px; }
  html:root .home-hero .container { gap: 28px; padding-block: 68px; }
  html:root .home-hero h1 { font-size: clamp(48px, 14vw, 66px); }
  html:root .hero-panel { border-radius: 18px; }
  html:root .hero-panel ul { grid-template-columns: 1fr; }
  html:root .hero-panel li,
  html:root .hero-panel li:nth-child(n) { min-height: 0; border: 0; border-top: 1px solid var(--line); }
  html:root .hero-panel li:first-child { border-top: 0; }
  html:root .services-section .service-list { grid-template-columns: 1fr; }
  html:root .services-section .service-item { min-height: 360px; }
  html:root .booking-guide-card .steps { grid-template-columns: 1fr; }
  html:root main.booking-main { padding-inline: 16px; }
  html:root .booking-resource { margin-inline: -8px; border-radius: 0 0 22px 22px; }
  html:root .booking-resource .resource-visual { min-height: 300px; }
  html:root .booking-resource > div:last-child { padding: 32px 24px; }
}

/* ───────── Läsbarhet i sidfoten ─────────
   Den generella a-regeln (html:root a) vann över .site-footer a och gav
   mörkblå länkar på mörkblå botten. Reglerna här ligger sist i filen så
   ljus text alltid vinner. */
html .site-footer a {
  color: #fff;
  text-decoration-color: rgba(255, 255, 255, .5);
  text-underline-offset: .2em;
}
html .site-footer a:hover,
html .site-footer a:focus-visible { color: #fff; text-decoration-color: #fff; }
html .site-footer p { color: #cfdde8; }
html .site-footer .footer-bottom { color: #c3d3de; }

/* ───────── Snabbpanelen "Det här kan du göra här" ─────────
   Fyra likvärdiga ingångar. Tidigare var första posten en fylld blå knapp,
   vilket läste som att de andra tre inte gick att klicka på. Nu är varje post
   ett eget kort där hela ytan är länk – ingen av dem är viktigare än de andra.
   Varje kort bär ikon, kort rubrik och en förklarande rad; pilen sitter direkt
   efter rubriken i stället för på en egen rad, så korten kan vara låga.
   Reglerna ligger sist i filen så de vinner över mediefrågorna ovan utan
   !important. */
html:root .hero-panel { padding: 16px; border-radius: 20px; }
html:root .hero-panel h2 {
  margin: 2px 4px 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}
html:root .hero-panel ul {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
html:root .hero-panel li,
html:root .hero-panel li:nth-child(n) {
  display: block;
  min-height: 0;
  padding: 0;
  border: 0;
  background: none;
}
html:root .hero-panel li::before { display: none; }
html:root .hero-panel li > span { display: block; height: 100%; }
html:root .hero-panel a,
html:root .hero-panel li:first-child a {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 13px;
  height: 100%;
  min-height: 0;
  padding: 15px 16px;
  border: 1px solid #e2edf5;
  border-radius: 15px;
  background: linear-gradient(180deg, #fbfdff, #f2f8fc);
  color: var(--ink);
  font-weight: 400;
  line-height: 1.3;
  text-decoration: none;
}
html:root .hero-panel a::after { content: none; }
html:root .quick-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 12px;
  background: #fff;
  color: var(--brand);
  box-shadow: 0 2px 8px rgba(11, 57, 88, .1);
}
html:root .quick-body { display: block; min-width: 0; }
html:root .quick-name {
  display: block;
  white-space: nowrap;
  color: var(--ink);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -.01em;
}
html:root .quick-arrow {
  display: inline-block;
  margin-left: .38em;
  color: var(--brand);
  font-weight: 700;
}
html:root .quick-note {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.35;
}
html:root .hero-panel a:hover,
html:root .hero-panel a:focus-visible {
  border-color: #b9d8ee;
  background: linear-gradient(180deg, #fff, var(--brand-50));
  color: var(--ink);
}
html:root .hero-panel a:hover .quick-name { color: var(--brand-700); }
html:root .hero-panel a:hover .quick-icon { color: var(--brand-700); }
html:root .hero-panel a:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

@media (prefers-reduced-motion: no-preference) {
  html:root .hero-panel a { transition: background .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease; }
  html:root .quick-arrow { transition: transform .18s ease; }
  html:root .hero-panel a:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(11, 57, 88, .1); }
  html:root .hero-panel a:hover .quick-arrow { transform: translateX(3px); }
}

@media (max-width: 1120px) {
  html:root .hero-panel ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  html:root .hero-panel { padding: 14px; }
  html:root .hero-panel ul { grid-template-columns: 1fr; gap: 8px; }
  html:root .hero-panel a,
  html:root .hero-panel li:first-child a { padding: 13px 14px; }
  html:root .quick-icon { width: 36px; height: 36px; border-radius: 11px; }
}

/* ───────── Samlingssidan för bokning (/boka/) ─────────
   Två likvärdiga vägar in: släpvagnen och maskinpoolen. Korten är lika stora
   så att inget av valen känns som andrahandsalternativ. */
.choice-heading { margin: 0 0 16px; font-size: 20px; }
.choice-grid { display: grid; gap: 22px; margin-bottom: 30px; }
@media (min-width: 760px) { .choice-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.choice-card { display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s; }
.choice-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.choice-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 12px;
  background: var(--brand-50); color: var(--brand-700); margin-bottom: 14px;
}
.choice-label { margin: 0; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.choice-card h3 { margin: 4px 0 10px; font-size: 24px; letter-spacing: -.02em; }
.choice-text { margin: 0 0 16px; color: var(--ink-soft); }
.choice-facts { list-style: none; margin: 0 0 18px; padding: 0; }
.choice-facts li { position: relative; padding-left: 22px; margin-bottom: 7px; color: var(--ink-soft); font-size: 15px; }
.choice-facts li::before { content: "✓"; position: absolute; left: 0; color: var(--brand); font-weight: 800; }
.choice-status { margin: 0 0 18px; font-size: 13px; font-weight: 700; color: var(--muted); }
.choice-status.available { color: #2f7b49; }
.choice-cta { margin-top: auto; align-self: flex-start; gap: 8px; }

.my-overview { margin-bottom: 30px; }
.mine-row {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 13px 0; border-bottom: 1px solid var(--line);
  color: inherit; text-decoration: none;
}
.mine-row:last-child { border-bottom: none; }
.mine-row:hover { color: var(--brand-700); }
.mine-when { display: block; font-weight: 700; }
.mine-what { display: block; font-size: 13px; color: var(--muted); }
.mine-go { color: var(--brand); font-weight: 800; }

/* ───────── Maskinpoolen (/boka/maskiner/) ───────── */
.machine-picker { margin-bottom: 22px; }
.machine-list { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); }
.machine-card {
  display: flex; flex-direction: column; gap: 4px; text-align: left; width: 100%;
  padding: 15px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: #fff; cursor: pointer; font: inherit; color: inherit;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.machine-card:hover { border-color: var(--brand); background: var(--brand-50); }
.machine-card.selected { border-color: var(--brand); background: var(--brand-50); box-shadow: inset 0 0 0 1px var(--brand); }
.machine-card.unavailable { cursor: not-allowed; opacity: .6; background: var(--bg); }
.machine-card.unavailable:hover { border-color: var(--line); background: var(--bg); }
.machine-name { font-weight: 750; }
.machine-desc { font-size: 13px; color: var(--ink-soft); }
.machine-meta { font-size: 12px; font-weight: 700; color: var(--muted); }
.machine-card { padding: 0; overflow: hidden; }
.machine-card > .machine-name { padding: 0 16px; margin-top: 12px; }
.machine-card > .machine-desc, .machine-card > .machine-meta { padding: 0 16px; }
.machine-card > .machine-meta { padding-bottom: 15px; }
.machine-cover { position: relative; display: block; aspect-ratio: 4 / 3; background: var(--brand-50); }
.machine-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.machine-cover-empty { position: absolute; inset: 0; display: grid; place-items: center; font-size: 12px; font-weight: 750; letter-spacing: .03em; text-transform: uppercase; color: var(--brand-700); opacity: .65; }
.machine-cover-count { position: absolute; right: 8px; bottom: 8px; padding: 3px 9px; border-radius: 999px; background: rgba(0, 0, 0, .62); color: #fff; font-size: 12px; font-weight: 700; }

/* Maskinens bilder: en i taget, med pilar, miniatyrer och förstoring */
.machine-showcase { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 26px; align-items: center; margin-bottom: 22px; }
.machine-showcase.no-images { grid-template-columns: minmax(0, 1fr); }
.machine-showcase h2 { margin-top: 0; }
.showcase-desc { color: var(--ink-soft); }
.showcase-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.gallery-stage { position: relative; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.gallery-open { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.gallery-open img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: #fff; }
.gallery-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line);
  background: rgba(255, 255, 255, .92); color: var(--ink); font-size: 24px; line-height: 1;
  cursor: pointer; display: grid; place-items: center; box-shadow: var(--shadow);
}
.gallery-nav:hover { background: #fff; border-color: var(--brand); color: var(--brand); }
.gallery-nav.prev { left: 10px; }
.gallery-nav.next { right: 10px; }
.gallery-counter { position: absolute; right: 10px; bottom: 10px; margin: 0; padding: 3px 10px; border-radius: 999px; background: rgba(0, 0, 0, .62); color: #fff; font-size: 12px; font-weight: 700; }
.gallery-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.gallery-thumb { flex: 0 0 auto; padding: 0; border: 2px solid transparent; border-radius: 8px; background: none; cursor: pointer; line-height: 0; }
.gallery-thumb img { width: 84px; height: 62px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); }
.gallery-thumb.selected { border-color: var(--brand); }
.gallery-caption { font-size: 14px; color: var(--muted); margin-top: 10px; }
.gallery-empty { color: var(--muted); font-size: 14px; margin: 0; }

.lightbox { border: 0; padding: 0; background: none; max-width: 96vw; max-height: 96vh; overflow: visible; }
.lightbox::backdrop { background: rgba(10, 18, 28, .82); }
.lightbox img { display: block; max-width: 92vw; max-height: 84vh; border-radius: var(--radius-sm); background: #fff; }
.lightbox .gallery-nav.prev { left: -18px; }
.lightbox .gallery-nav.next { right: -18px; }
.lightbox-close { position: absolute; top: -16px; right: -16px; z-index: 3; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: #fff; font-size: 22px; line-height: 1; cursor: pointer; }
.lightbox-caption { color: #fff; text-align: center; font-size: 14px; margin: 10px 0 0; }

@media (max-width: 860px) {
  .machine-showcase { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .lightbox .gallery-nav.prev { left: 6px; }
  .lightbox .gallery-nav.next { right: 6px; }
  .lightbox-close { top: 6px; right: 6px; }
}

.machine-info { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.machine-info p { margin: 0 0 8px; font-size: 14px; color: var(--ink-soft); }
.machine-info p:last-child { margin-bottom: 0; }

/* Föreningsdokument på /dokument/ */
.document-group + .document-group { margin-top: 40px; }
.document-group h2 { margin: 0 0 14px; font-size: 24px; }
.document-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.document-list li { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 2px; border-bottom: 1px solid var(--line); }
.document-title { display: block; font-weight: 700; text-decoration: none; }
.document-title:hover { text-decoration: underline; }
.document-meta { display: block; margin-top: 3px; color: var(--muted); font-size: 14px; }
.document-list .btn-sm { flex: none; border-radius: var(--radius-sm); font-weight: 600; text-decoration: none; }

/* Nyheter och aktiviteter (startsidan, /aktuellt/ och arkivet) */
.post-list { display: grid; gap: 16px; }
.post-item { padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; scroll-margin-top: 90px; }
/* Egna färger: korten ligger ibland i en mörk sektion (startsidan) som ärver vit text. */
.post-item { color: var(--ink); }
.post-item h3 { margin: 0 0 8px; color: var(--ink); font-size: 19px; line-height: 1.3; }
.post-item a { color: var(--brand-600); }
.post-item p { margin: 0 0 10px; color: var(--ink-soft); overflow-wrap: anywhere; }
.post-item p:last-child { margin-bottom: 0; }
.post-item .post-meta { margin-bottom: 6px; color: var(--muted); font-size: 14px; font-weight: 600; }
.archive-link { margin: 32px 0 0; }
html:root .current-section .post-item a { color: var(--brand-600); }
