/* Gärdet theme. Blue palette carried over from today's vastergardet.se. Design D, chosen by the board 2026-11-26. */
:root {
  --navy: #0f1d38;
  --blue: #25498e;
  --mid: #358dd6;
  --sky: #9eb8e6;
  --ice: #f0f5fb;
  --slate: #576c8e;
  --ink: #0f1d38;
  --text: #3e4f6c;
  --line: #dfe7f2;
  --white: #ffffff;
  --radius: 12px;
  --radius-lg: 16px;
  --font-head: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --page-bg: var(--white);
  --btn-radius: 8px;
  --footer-bg: var(--navy);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--page-bg); color: var(--ink); font-family: var(--font-body); font-size: 17px; line-height: 1.65; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: 2px; }
a:hover { color: var(--navy); }
a:focus-visible, button:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid var(--mid); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--font-head); color: var(--ink); line-height: 1.12; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2rem, 4.2vw, 2.85rem); font-weight: 800; letter-spacing: -0.012em; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.05rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
.wrap { max-width: 1200px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left)); padding-right: max(20px, env(safe-area-inset-right)); }
.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--white); padding: 8px 14px; z-index: 100; }
.skip-link:focus { left: 8px; }
.eyebrow { font-family: var(--font-head); font-size: 0.82rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--mid); }
.meta { font-size: 0.88rem; font-weight: 600; color: var(--slate); }

/* Buttons */
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }
.btn { display: inline-block; font-family: var(--font-head); font-weight: 700; text-decoration: none; padding: 13px 24px; border-radius: var(--btn-radius); line-height: 1.2; }
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--navy); color: var(--white); }
.btn-soft { background: var(--ice); color: var(--blue); }
.btn-outline { background: var(--white); color: var(--blue); border: 1px solid #c9d8ef; }
.btn-white { background: var(--white); color: var(--blue); }
.more { display: inline-block; margin-top: 8px; font-family: var(--font-head); font-weight: 700; }

/* Header */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); position: relative; z-index: 10; }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-block: 12px; }
.brand img { height: 62px; width: auto; }
.main-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 22px; font-family: var(--font-head); font-weight: 700; font-size: 0.95rem; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 22px; }
.main-nav li { position: relative; }
.main-nav a { text-decoration: none; color: var(--ink); }
.main-nav .sub-menu { display: none; position: absolute; top: 100%; left: -14px; background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 8px; min-width: 220px; flex-direction: column; gap: 0; box-shadow: 0 8px 24px rgba(15, 29, 56, .12); }
.main-nav .sub-menu a { display: block; padding: 8px 10px; border-radius: 6px; font-weight: 600; }
.main-nav .sub-menu a:hover { background: var(--ice); }
.main-nav li:hover > .sub-menu, .main-nav li:focus-within > .sub-menu { display: flex; }
.btn-mina { padding: 9px 18px; border-radius: var(--btn-radius); background: var(--blue); color: var(--white) !important; }
.nav-toggle { display: none; }
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav-toggle summary { list-style: none; cursor: pointer; width: 44px; height: 44px; display: flex; flex-direction: column; justify-content: center; gap: 5px; padding: 10px; }
  .nav-toggle summary::-webkit-details-marker { display: none; }
  .nav-toggle summary span { display: block; height: 2px; background: var(--ink); border-radius: 2px; }
  .main-nav { display: none; width: 100%; flex-direction: column; align-items: flex-start; padding-bottom: 12px; }
  .nav-toggle[open] ~ .main-nav { display: flex; }
  .main-nav ul { flex-direction: column; gap: 4px; width: 100%; }
  .main-nav .sub-menu { display: flex; position: static; border: 0; box-shadow: none; padding: 0 0 0 12px; min-width: 0; }
  .brand img { height: 52px; }
}

/* Bands */
.band-light { background: var(--ice); }
.band-white { background: var(--white); }

/* ---------- Design D ---------- */
.d-hero { position: relative; background: var(--white); padding-bottom: 40px; }
.d-hero-photo { width: 100%; height: clamp(300px, 42vw, 520px); object-fit: cover; object-position: center 45%; }
.d-hero-card { position: relative; margin-top: -150px; max-width: 640px; background: var(--white); border-radius: var(--radius); padding: 32px 34px; display: flex; flex-direction: column; gap: 14px; box-shadow: 0 10px 30px rgba(15, 29, 56, .16); }
.d-hero-card p { margin: 0; color: var(--text); font-size: 1.08rem; }
@media (max-width: 640px) { .d-hero-card { margin-top: -60px; padding: 22px 20px; } }
.d-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; padding-block: 16px 56px; }
.d-tile { text-decoration: none; color: var(--ink); background: var(--ice); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.d-tile img { width: 100%; height: 150px; object-fit: cover; }
.d-tile-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 4px; }
.d-tile-body strong { font-family: var(--font-head); font-size: 1.1rem; }
.d-tile-body span { color: #4a5b78; font-size: 0.94rem; }
.d-tile:hover { box-shadow: 0 6px 20px rgba(15, 29, 56, .12); }
.d-split { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; padding-block: 56px; }
.d-news { flex: 3 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.d-news-item { background: var(--white); border-radius: var(--radius); padding: 20px 22px; display: flex; flex-direction: column; gap: 4px; }
.d-news-item > a { font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; text-decoration: none; }
.excerpt { color: var(--text); font-size: 0.97rem; }
.d-room { flex: 2 1 340px; min-width: 0; background: var(--blue); color: var(--white); border-radius: var(--radius); overflow: hidden; }
.d-room img { width: 100%; height: 210px; object-fit: cover; }
.d-room-body { padding: 24px 26px 28px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.d-room h2 { color: var(--white); font-size: 1.6rem; }
.d-room p { margin: 0; color: #dbe6f6; }

/* ---------- Design E ---------- */
.e-hero { display: flex; flex-wrap: wrap; align-items: center; gap: 40px; padding-block: 48px 40px; }
.e-hero-text { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.e-hero-text p { margin: 0; color: var(--text); font-size: 1.08rem; max-width: 34em; }
.e-hero-photo { flex: 1 1 460px; min-width: 0; width: 100%; height: clamp(260px, 32vw, 400px); object-fit: cover; border-radius: var(--radius-lg); }
.e-shortcuts { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; padding-block: 8px 56px; }
.e-shortcut { text-decoration: none; background: var(--white); color: var(--ink); border-radius: var(--radius); padding: 18px 20px; display: flex; align-items: center; gap: 14px; font-family: var(--font-head); }
.e-shortcut strong { display: block; font-size: 1.05rem; }
.e-shortcut span span { font-size: 0.9rem; color: var(--slate); }
.e-shortcut:hover { box-shadow: 0 6px 20px rgba(15, 29, 56, .1); }
.e-icon { width: 46px; height: 46px; flex-shrink: 0; border-radius: 12px; background: var(--ice); color: var(--blue); display: flex; align-items: center; justify-content: center; }
.e-room { display: flex; flex-wrap: wrap; align-items: center; gap: 40px; padding-block: 56px; }
.e-room > img { flex: 1 1 420px; min-width: 0; height: 340px; object-fit: cover; border-radius: var(--radius-lg); }
.e-room-text { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.e-room-text p, .e-room-text ul { margin: 0; color: var(--text); }
.e-news { padding-block: 56px; display: flex; flex-direction: column; gap: 20px; }
.e-news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 18px; }
.e-card { background: var(--white); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.e-card img { width: 100%; height: 170px; object-fit: cover; }
.e-card-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 4px; }
.e-card-body > a { font-family: var(--font-head); font-weight: 800; font-size: 1.15rem; text-decoration: none; }

/* ---------- Inner pages ---------- */
.page-banner { position: relative; background: var(--navy); color: var(--white); }
.page-banner-photo { width: 100%; height: 260px; object-fit: cover; opacity: .55; }
.page-banner-inner { position: absolute; left: 0; right: 0; bottom: 0; padding-block: 28px; display: flex; flex-direction: column; gap: 6px; }
.page-banner h1 { color: var(--white); }
.page-banner .crumb { color: #dbe6f6; font-weight: 600; text-decoration: none; }
.page-banner .meta { color: #dbe6f6; }
.page-banner-plain { background: var(--blue); }
.page-banner-plain .page-banner-inner { position: static; padding-block: 44px 34px; }
.page-body { display: flex; flex-wrap: wrap; gap: 40px; padding-block: 40px 64px; align-items: flex-start; }
.content { flex: 3 1 560px; min-width: 0; max-width: 46rem; }
.content h2 { margin: 1.6em 0 .5em; font-size: 1.5rem; }
.content h3 { margin: 1.4em 0 .4em; }
.content p, .content ul, .content ol { margin: 0 0 1em; color: var(--text); }
.content li { margin-bottom: .3em; }
.content .wp-block-image img { border-radius: var(--radius); }
.content .wp-block-buttons { margin: 1.4em 0; }
.content .wp-block-button__link { background: var(--blue); color: var(--white); border-radius: var(--btn-radius); font-family: var(--font-head); font-weight: 700; padding: 13px 24px; text-decoration: none; }
.content .notice { background: var(--ice); border-radius: var(--radius); padding: 16px 20px; color: var(--ink); }
.child-pages { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.child-card { display: flex; flex-direction: column; gap: 2px; text-decoration: none; background: var(--ice); color: var(--ink); border-radius: var(--radius); padding: 16px 18px; }
.child-card strong { font-family: var(--font-head); font-size: 1.05rem; color: var(--blue); }
.child-card span { font-size: .92rem; color: var(--text); }
.news-list { flex: 1 1 100%; max-width: 46rem; display: flex; flex-direction: column; }
.news-row { padding: 18px 0; border-bottom: 1px solid var(--line); }
.news-row h2 { font-size: 1.3rem; margin: 2px 0 4px; }
.news-row h2 a { text-decoration: none; }
.news-row p { margin: 0; color: var(--text); }

/* ---------- Footer ---------- */
.site-footer { background: var(--footer-bg); color: #c9d6ea; font-size: .95rem; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding-block: 40px 96px; }
.footer-logo { height: 70px; width: auto; }
.footer-col strong { color: var(--white); }
.site-footer a { color: var(--white); }


@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }

/* Notices from Mina sidor (Notiser) */
.notice-bar { background: #e3edfb; color: var(--ink); font-weight: 600; padding: 12px 0; border-bottom: 1px solid var(--line); }
.notice-bar.important { background: #fdf0d8; color: #8a5300; }
.notice-bar a { margin-left: 6px; color: inherit; }
