/* ukk.info – designsystem v5 (från prototypen "Bygga prototyp av ukk.club startsida") */
:root {
  --cream: #FFF7EA;
  --ink: #1C1A22;
  --ink-soft: #4A4651;
  --blue: #00AAD5;       /* klubbfärgen */
  --blue-deep: #00627C;
  --sun: #FFD54F;
  --pink: #FFB3D4;
  --pink-hot: #F06BA8;
  --lilac: #CBB9FF;
  --leaf: #B5D98A;
  --leaf-deep: #8DBF5A;
  --white: #FFFFFF;
  /* tokens för nedre delen (från variant B) */
  --card: #FFFFFF;
  --line: #E8DDCB;
  --bg: var(--cream);
  --mint: #CFE7DF;
  --rose: #FFD0E8;
  --blue-ice: #CDEFF8;
  --yellow: #FFE14D;
  --font: var(--body);
  --r: 28px;
  --head: "Bricolage Grotesque", "Trebuchet MS", sans-serif;
  --body: "Figtree", "Open Sans", Arial, sans-serif;
  --pad: 18px;
  --r-xl: 32px; --r-lg: 24px; --r-md: 16px;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
@media (min-width: 768px) { :root { --pad: 32px; } }
@media (min-width: 1200px) { :root { --pad: 56px; } }
*, *::before, *::after { box-sizing: inherit; }
[hidden] { display: none !important; }
html { scroll-padding-top: env(safe-area-inset-top, 0px); }
body { margin: 0; background: var(--cream); color: var(--ink); font: 400 1rem/1.5 var(--body); overflow-x: hidden; }
h1, h2, h3 { font-family: var(--head); margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 8px; }
.wrap { max-width: 1320px; margin-inline: auto; padding-inline: var(--pad); }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -80px; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 99px; z-index: 99; }
.skip:focus { top: 12px; }

/* ---------- Sidhuvud ---------- */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 16px; }
.logo { display: inline-flex; padding: 6px; border-radius: 12px; }
.logo svg { height: 34px; width: auto; fill: var(--blue); display: block; }
.navrow { display: none; gap: 6px; list-style: none; margin: 0; padding: 6px; background: var(--white); border-radius: 99px; }
.navrow a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 99px; text-decoration: none; font-weight: 600; }
.navrow a:hover { background: var(--cream); }
.navrow a[aria-current] { background: var(--ink); color: #fff; }
.pill-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 20px; border-radius: 99px; border: 0; background: var(--ink); color: #fff; font: 600 1rem var(--body); cursor: pointer; }
.pill-btn svg { width: 18px; height: 18px; }
.icon-btn { width: 48px; padding: 0; justify-content: center; }
.icon-btn svg { width: 22px; height: 22px; }
@media (min-width: 1000px) { .navrow { display: flex; } #menu-open { display: none; } .logo svg { height: 44px; } }
.menu { position: fixed; inset: 0; z-index: 60; background: var(--white); padding: calc(env(safe-area-inset-top,0px) + 16px) var(--pad) 32px; overflow-y: auto; }
.menu[hidden] { display: none; }
.menu ul { list-style: none; padding: 0; margin: 40px 0 0; }
.menu li a { display: block; padding: 10px 0; font: 800 2.4rem/1.1 var(--head); text-decoration: none; letter-spacing: -0.03em; }
.menu li a[aria-current] { text-decoration: underline; text-decoration-thickness: 5px; text-underline-offset: 6px; text-decoration-color: var(--blue); }
.menu-head { display: flex; justify-content: flex-end; }

/* ---------- Hälsning ---------- */
.hello { position: relative; padding-top: 28px; padding-bottom: 8px; }
.hello_date { font-weight: 600; color: var(--ink-soft); }
.hello h1 { font-size: clamp(3.2rem, 14vw, 7.5rem); line-height: .92; font-weight: 800; margin-top: 6px; letter-spacing: -0.045em; max-width: 11ch; }
.hello h1 .name { position: relative; display: inline-block; white-space: nowrap; }
.hello h1 .name svg { position: absolute; left: -2%; bottom: -0.12em; width: 104%; height: .32em; overflow: visible; }
.hello_sub { margin-top: 18px; font-size: 1.125rem; max-width: 36ch; color: var(--ink-soft); }
.hello_edit { margin-top: 14px; display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.mine { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.mine span { background: var(--white); border-radius: 99px; padding: 4px 12px; font-weight: 700; font-size: .9rem; }
.linkbtn { background: none; border: 0; padding: 0 4px; min-height: 44px; font: 600 1rem var(--body); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; color: var(--ink); }

.badge-blob { position: absolute; right: calc(var(--pad) - 6px); top: 6px; width: 132px; height: 132px; display: grid; place-items: center; text-align: center; animation: spin 40s linear infinite; }
.badge-blob svg { position: absolute; inset: 0; width: 100%; height: 100%; fill: var(--blue); }
.badge-blob span { position: relative; font: 800 1rem/1.05 var(--head); animation: spin 40s linear infinite reverse; }
.badge-blob b { display: block; font-size: 2.6rem; line-height: 1; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (min-width: 768px) { .badge-blob { width: 190px; height: 190px; top: 40px; } .badge-blob b { font-size: 3.6rem; } .badge-blob span { font-size: 1.2rem; } }
@media (max-width: 767px) { .hello_date, .hello h1, .hello_sub { padding-right: 112px; } }
@media (max-width: 420px) { .badge-blob { width: 100px; height: 100px; top: 20px; } .badge-blob b { font-size: 2rem; } .badge-blob span { font-size: .8rem; } }

/* ---------- Profilkort ---------- */
.setup { margin-top: 24px; background: var(--blue-ice); border-radius: var(--r-xl); padding: 24px; position: relative; overflow: hidden; }
.setup[hidden] { display: none; }
.setup h2 { font-size: 1.8rem; line-height: 1.05; font-weight: 800; }
.setup p.lead { margin-top: 6px; max-width: 46ch; }
.field { margin-top: 18px; }
.field label, .field legend { display: block; font-weight: 700; margin-bottom: 8px; padding: 0; }
.field fieldset { border: 0; padding: 0; margin: 0; }
.field input[type=text] { width: 100%; max-width: 360px; min-height: 52px; border: 2px solid var(--ink); border-radius: 99px; padding: 0 20px; font: 500 1.1rem var(--body); background: var(--white); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span { display: inline-grid; place-items: center; min-width: 54px; min-height: 48px; padding: 0 14px; border-radius: 99px; background: var(--white); border: 2px solid var(--ink); font-weight: 700; }
.chip input:checked + span { background: var(--ink); color: #fff; }
.chip input:checked + span { white-space: nowrap; display: inline-flex; align-items: center; }
.chip input:checked + span::before { content: "✓\00a0"; }
.chip input:focus-visible + span { outline: 3px solid var(--blue-deep); outline-offset: 3px; }
.form-actions { margin-top: 20px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.forget { margin-top: 18px; padding-top: 10px; border-top: 1px solid rgba(28,26,34,.2); display: flex; flex-wrap: wrap; align-items: center; gap: 0 12px; }
.forget .linkbtn { padding: 0; }
.status-msg { margin-top: 14px; display: inline-block; background: var(--white); border-radius: 16px; padding: 8px 16px; font-weight: 700; }
.err { margin-top: 12px; font-weight: 700; color: #8A1030; background: #fff; border-radius: 12px; padding: 8px 12px; display: inline-block; }
.err[hidden] { display: none; }
.note { font-size: .9rem; color: var(--ink-soft); }

/* ---------- Nästa pass ---------- */
.section { margin-top: 56px; }
.sec-title { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.sec-title h2 { font-size: clamp(2rem, 7vw, 3.2rem); font-weight: 800; line-height: 1; letter-spacing: -0.035em; }
.sec-title a { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 18px; border-radius: 99px; background: var(--card); border: 1px solid var(--line); text-decoration: none; font-weight: 700; }
.sec-title a svg { width: 16px; height: 16px; }

.schedule-grid { display: grid; gap: 18px; }
@media (min-width: 900px) { .schedule-grid { grid-template-columns: 5fr 7fr; align-items: start; } }
.next { position: relative; background: var(--ink); color: #fff; border-radius: var(--r-xl); padding: 26px; overflow: hidden; min-height: 280px; display: flex; flex-direction: column; }
.next_label { font-weight: 700; color: var(--sun); }
.next_time { font: 800 clamp(4.5rem, 20vw, 7rem)/.9 var(--head); letter-spacing: -0.05em; margin-top: 10px; }
.next_end { font: 700 1.25rem var(--head); opacity: .8; margin-top: 4px; }
.next_tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; padding-top: 22px; }
.tag { display: inline-flex; align-items: center; min-height: 32px; padding: 0 12px; border-radius: 99px; font-weight: 700; font-size: .95rem; background: var(--white); color: var(--ink); }
.next .hall-blob { position: absolute; right: -18px; top: -18px; width: 150px; height: 150px; display: grid; place-items: center; transform: rotate(-12deg); }
.hall-blob svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.hall-blob span { position: relative; font: 800 1.05rem/1 var(--head); color: var(--ink); text-align: center; }
.hall-blob b { display: block; font-size: 2.6rem; }
.next_empty { margin-top: 12px; font: 700 1.6rem/1.15 var(--head); }

/* Veckoremsa */
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; list-style: none; padding: 0; margin: 0 0 16px; }
.day { width: 100%; min-height: 72px; border-radius: 99px; border: 2px solid var(--ink); background: transparent; font: 600 .85rem/1.1 var(--body); color: var(--ink); cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 6px 0; }
.day b { font: 800 1.15rem var(--head); }
.day .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--blue-deep); }
.day .dot.none { background: transparent; }
.day[aria-pressed="true"] { background: var(--ink); color: #fff; }
.day[aria-pressed="true"] .dot:not(.none) { background: var(--sun); }
.day.today:not([aria-pressed="true"]) { background: var(--white); }

.sessions { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.session { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; align-items: center; padding: 16px 18px; border-radius: var(--r-lg); }
.session.hall-A { background: var(--sun); }
.session.hall-B { background: var(--pink); }
.session_time { font: 800 1.5rem/1 var(--head); letter-spacing: -0.03em; }
.session_time small { font-size: .95rem; font-weight: 700; opacity: .75; }
.session_groups { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.session_meta { grid-column: 1 / -1; display: flex; gap: 6px 14px; flex-wrap: wrap; font-weight: 600; font-size: .95rem; }
.session_hall { display: inline-flex; align-items: center; gap: 6px; }
.session_hall::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--ink); }
.empty-day { padding: 28px; border-radius: var(--r-lg); border: 2px dashed var(--ink); font: 700 1.2rem var(--head); text-align: center; }
.toggle-all { margin-top: 10px; }

/* ---------- Sektionsrubriker (från variant B) ---------- */
.head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.head h2 { font-size: clamp(2rem, 7vw, 3.2rem); font-weight: 800; line-height: 1; letter-spacing: -0.035em; }
.head a { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 18px; border-radius: 99px; background: var(--card); border: 1px solid var(--line); text-decoration: none; font-weight: 700; }
.head a svg { width: 16px; height: 16px; }

/* Meddelanden */
.msgs { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
@media (min-width: 768px) { .msgs { grid-template-columns: 1.3fr 1fr; grid-template-rows: auto auto; } .msgs li:first-child { grid-row: span 2; } }
@media (min-width: 1100px) { .msgs { grid-template-columns: 1.4fr 1fr 1fr; grid-template-rows: auto; } .msgs li:first-child { grid-row: auto; } }
.msg { position: relative; border-radius: var(--r); padding: 22px; min-height: 200px; height: 100%; display: flex; flex-direction: column; }
.msgs li:nth-child(1) .msg { background: var(--lilac); }
.msgs li:nth-child(2) .msg { background: var(--mint); }
.msgs li:nth-child(3) .msg { background: var(--rose); }
.msg_date { order: -1; align-self: flex-start; background: var(--card); border-radius: 99px; padding: 4px 14px; font-weight: 700; font-size: .875rem; }
.msg_top { display: flex; align-items: center; gap: 10px; }
.msg_ico { width: 44px; height: 44px; border-radius: 50%; background: var(--card); display: grid; place-items: center; flex: none; }
.msg_ico svg { width: 20px; height: 20px; }
.msg time { font-weight: 700; }
.msg h3 { font-size: 1.55rem; line-height: 1.1; margin-top: 18px; font-weight: 800; }
.msgs li:first-child .msg h3 { font-size: clamp(1.7rem, 4vw, 2.3rem); }
.msg h3 a { text-decoration: none; }
.msg h3 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--r); }
.msg h3 a:focus-visible { outline: none; }
.msg h3 a:focus-visible::after { outline: 3px solid var(--ink); outline-offset: 4px; }
.msg p { margin-top: 10px; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.msg .arrow { margin-top: auto; align-self: flex-end; width: 52px; height: 52px; border-radius: 50%; background: var(--card); display: grid; place-items: center; transition: transform .2s; }
.msg:hover .arrow { transform: rotate(45deg); }
.msg .arrow svg { width: 22px; height: 22px; }

/* FAQ */
.faq-grid { display: grid; gap: 12px; }
@media (min-width: 900px) { .faq-grid { grid-template-columns: 1fr 1.6fr; align-items: start; } }
.faq-intro { background: var(--ink); color: #fff; border-radius: var(--r); padding: 26px; position: relative; overflow: hidden; min-height: 200px; display: flex; flex-direction: column; }
.faq-intro h2 { font-size: clamp(2rem, 7vw, 3.2rem); font-weight: 800; letter-spacing: -0.035em; line-height: 1.05; }
.faq-intro p { margin-top: 10px; color: #D6D2E0; max-width: 32ch; }
.faq-intro a { margin-top: auto; align-self: flex-start; display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 22px; border-radius: 99px; background: var(--blue); color: var(--ink); text-decoration: none; font-weight: 700; margin-top: 22px; }
.faq-intro a svg { width: 18px; height: 18px; }
.faq-intro :focus-visible { outline-color: var(--yellow); }
.faq-intro .q { position: absolute; right: -10px; top: -30px; font-size: 11rem; font-weight: 800; line-height: 1; color: rgba(255,255,255,.08); }
.faq-list { background: var(--card); border-radius: var(--r); padding: 8px; }
.faq-item + .faq-item { border-top: 1px solid var(--line); }
.faq-q { width: 100%; min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 10px 10px 16px; border: 0; background: none; text-align: left; font: 700 1.1rem/1.3 var(--font); color: var(--ink); cursor: pointer; border-radius: 20px; }
.faq-q:hover { background: var(--bg); }
.ico { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid #B9B4C6; position: relative; display: grid; place-items: center; }
.ico::before, .ico::after { content: ""; position: absolute; width: 14px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s; }
.ico::after { transform: rotate(90deg); }
.faq-q[aria-expanded="true"] .ico { background: var(--blue); border-color: var(--blue); }
.faq-q[aria-expanded="true"] .ico::after { transform: rotate(0); }
.faq-a { padding: 0 16px 18px; color: var(--ink); max-width: 70ch; }
.faq-a a { display: inline-flex; min-height: 44px; align-items: center; font-weight: 700; text-underline-offset: 4px; }

/* Kontakt */
.contact { display: grid; gap: 12px; }
@media (min-width: 768px) { .contact { grid-template-columns: repeat(2, 1fr); } }
.contact-card { border-radius: var(--r); padding: 22px; display: flex; flex-direction: column; gap: 6px; min-height: 180px; text-decoration: none; position: relative; }
.contact-card:nth-child(1) { background: var(--blue-ice); }
.contact-card:nth-child(2) { background: var(--card); border: 1px solid var(--line); }
.contact-card .label { font-weight: 700; color: var(--ink-soft); }
.contact-card .addr { font-size: clamp(1.25rem, 4.6vw, 1.6rem); font-weight: 800; line-height: 1.15; word-break: break-word; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.contact-card .desc { margin-top: auto; color: var(--ink-soft); padding-right: 64px; }
.contact-card .mail { position: absolute; right: 18px; bottom: 18px; width: 52px; height: 52px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; }
.contact-card .mail svg { width: 22px; height: 22px; }
.contact-more { display: inline-flex; min-height: 48px; align-items: center; font-weight: 700; text-underline-offset: 4px; margin-top: 6px; }

/* Sidfot */
footer { margin-top: 56px; padding: 36px 0 calc(36px + env(safe-area-inset-bottom, 0px)); background: var(--blue-ice); border-radius: var(--r) var(--r) 0 0; }
footer .wrap { display: grid; gap: 18px; }
@media (min-width: 900px) { footer .wrap { grid-template-columns: 1fr auto; align-items: center; } }
footer .club { font-weight: 800; font-size: 1.25rem; }
footer small { display: block; color: var(--ink-soft); font-size: .95rem; }
footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
footer a { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 18px; border-radius: 99px; background: var(--card); border: 0; text-decoration: none; font-weight: 700; }
footer a svg { width: 14px; height: 14px; }


/* FAQ som ett sammanhållet block: mörk ram med frågelistan infälld */
.faq-grid { background: var(--ink); border-radius: var(--r); padding: 8px; gap: 0; }
.faq-intro { background: transparent; min-height: 0; padding: 22px 18px 26px; }
.faq-intro a { margin-top: 20px; }
.faq-list { border-radius: calc(var(--r) - 8px); padding: 6px 8px; }
@media (min-width: 900px) {
  .faq-grid { align-items: stretch; }
  .faq-intro { padding: 30px 28px; }
}

/* ---------- Undersida: sidtopp ---------- */
.page-head { padding-top: 28px; }
.page-head h1 { font-size: clamp(2.6rem, 10vw, 5rem); line-height: .95; font-weight: 800; letter-spacing: -0.04em; }
.page-head_lead { margin-top: 14px; font-size: 1.125rem; max-width: 52ch; color: var(--ink-soft); }
.page-head_links { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 4px 20px; }
.textlink { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 700; text-underline-offset: 4px; }
.link-pill { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 18px; border-radius: 99px; background: var(--card); border: 1px solid var(--line); text-decoration: none; font-weight: 700; }
.link-pill svg { width: 16px; height: 16px; }
.back { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; font-weight: 700; text-underline-offset: 4px; margin-top: 12px; }
.back svg { width: 18px; height: 18px; }

/* ---------- Gruppfilter (schema) ---------- */
.filter { margin-top: 32px; background: var(--card); border-radius: var(--r); padding: 20px; }
.filter_top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; }
.filter h2 { font-size: 1.5rem; line-height: 1.1; font-weight: 800; }
.filter_hint { color: var(--ink-soft); font-size: .95rem; }
.filter .chips { margin-top: 14px; }
.chip-btn { display: inline-flex; align-items: center; justify-content: center; min-width: 54px; min-height: 48px; padding: 0 14px; border-radius: 99px; background: var(--white); border: 2px solid var(--ink); font: 700 1rem var(--body); color: var(--ink); cursor: pointer; white-space: nowrap; }
.chip-btn:hover { background: var(--cream); }
.chip-btn[aria-pressed="true"] { background: var(--ink); color: #fff; }
.chip-btn[aria-pressed="true"]::before { content: "✓\00a0"; }
.chip-btn:focus-visible { outline: 3px solid var(--blue-deep); outline-offset: 3px; }
.filter_actions { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 4px 20px; }
.filter_actions .linkbtn { padding: 0; }
.day-section { margin-top: 24px; }
.day-section .week { margin-bottom: 20px; max-width: 760px; }
.day-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; margin-bottom: 14px; }
.day-head h2 { font-size: clamp(2rem, 7vw, 3.2rem); font-weight: 800; line-height: 1; letter-spacing: -0.035em; }
.day-head p { color: var(--ink-soft); font-weight: 600; }
@media (min-width: 768px) { .day-section .sessions { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .day-section .sessions { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.session { align-content: start; }
.session.hall-other { background: var(--card); border: 1px solid var(--line); }
.session .mine-mark { grid-column: 1 / -1; justify-self: start; font-size: .875rem; font-weight: 700; background: var(--ink); color: #fff; border-radius: 99px; padding: 2px 10px; }
.session_note { grid-column: 1 / -1; font-size: .95rem; }
.empty-day { grid-column: 1 / -1; }
.note-box { margin-top: 32px; background: var(--card); border-radius: 24px; padding: 20px 22px; max-width: 70ch; }
.note-box h2 { font-size: 1.25rem; font-weight: 800; }
.note-box p { margin-top: 6px; }
.special-flag { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; background: var(--pink); border-radius: 99px; padding: 6px 14px; font-weight: 700; }

/* ---------- Meddelanden ---------- */
.msg-list { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 12px; }
@media (min-width: 768px) { .msg-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 1100px) { .msg-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.msg-list li:nth-child(4n+1) .msg { background: var(--lilac); }
.msg-list li:nth-child(4n+2) .msg { background: var(--mint); }
.msg-list li:nth-child(4n+3) .msg { background: var(--rose); }
.msg-list li:nth-child(4n+4) .msg { background: var(--leaf); }
.msg-list .msg { min-height: 240px; }
.msg_title { font-size: 1.5rem; line-height: 1.1; margin-top: 18px; font-weight: 800; }
.msg_title a { text-decoration: none; }
.msg_title a::after { content: ""; position: absolute; inset: 0; border-radius: var(--r); }
.msg_title a:focus-visible { outline: none; }
.msg_title a:focus-visible::after { outline: 3px solid var(--ink); outline-offset: 4px; }
.msg_pin { order: -1; align-self: flex-start; margin-left: 6px; background: var(--ink); color: #fff; border-radius: 99px; padding: 4px 12px; font-weight: 700; font-size: .8rem; }
.msg_meta { order: -1; display: flex; gap: 6px; flex-wrap: wrap; }
.pager { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.pager_status { font-weight: 700; }
.pager_links { display: flex; gap: 8px; }
.article-head { margin-top: 12px; background: var(--lilac); border-radius: var(--r-xl); padding: 26px 24px 30px; position: relative; overflow: hidden; }
@media (min-width: 768px) { .article-head { padding: 40px 40px 44px; } }
.article-head_meta { display: inline-flex; background: var(--card); border-radius: 99px; padding: 4px 14px; font-weight: 700; font-size: .875rem; }
.article-head h1 { margin-top: 18px; font-size: clamp(2.4rem, 8vw, 4.2rem); line-height: 1; font-weight: 800; letter-spacing: -0.04em; max-width: 18ch; position: relative; }
.article-head .star { position: absolute; right: -40px; bottom: -50px; width: 190px; height: 190px; fill: rgba(255,255,255,.35); }
.article-end { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); max-width: 70ch; display: flex; flex-wrap: wrap; gap: 8px; }
.loading { margin-top: 32px; color: var(--ink-soft); font-weight: 600; }

/* ---------- Löptext (meddelanden och informationssidor) ---------- */
.rich { margin-top: 36px; max-width: 70ch; font-size: 1.125rem; line-height: 1.6; }
.rich > * + * { margin-top: 1em; }
.rich p { margin: 0; }
.rich h2 { margin-top: 1.8em; font-size: clamp(1.6rem, 5vw, 2.1rem); line-height: 1.1; font-weight: 800; letter-spacing: -0.03em; }
.rich h3 { margin-top: 1.4em; font-size: 1.3rem; line-height: 1.2; font-weight: 800; }
.rich h2 + *, .rich h3 + * { margin-top: .5em; }
.rich a { font-weight: 600; text-underline-offset: 3px; }
.rich ul { list-style: none; padding: 0; }
.rich ul li { position: relative; padding-left: 28px; }
.rich ul li + li, .rich ol li + li { margin-top: .4em; }
.rich ul li::before { content: ""; position: absolute; left: 4px; top: .6em; width: 10px; height: 10px; border-radius: 50%; background: var(--blue); }
.rich ol { padding-left: 1.4em; }
.rich ol li::marker { font-weight: 800; font-family: var(--head); }
.rich blockquote { margin: 1.4em 0 0; padding: 18px 22px; background: var(--card); border-radius: 24px; font-weight: 500; }
.rich blockquote strong { display: block; font-family: var(--head); font-size: 1.15rem; margin-bottom: 4px; }

/* ---------- FAQ-kategorier och sektion ---------- */
.cat-list { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 12px; }
@media (min-width: 768px) { .cat-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 1100px) { .cat-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.cat-list li:nth-child(4n+1) .cat { background: var(--lilac); }
.cat-list li:nth-child(4n+2) .cat { background: var(--mint); }
.cat-list li:nth-child(4n+3) .cat { background: var(--rose); }
.cat-list li:nth-child(4n+4) .cat { background: var(--leaf); }
.cat { position: relative; border-radius: var(--r); padding: 24px; min-height: 200px; height: 100%; display: flex; flex-direction: column; }
.cat h2 { font-size: clamp(1.6rem, 4vw, 2rem); line-height: 1.05; font-weight: 800; letter-spacing: -0.03em; }
.cat h2 a { text-decoration: none; }
.cat h2 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--r); }
.cat h2 a:focus-visible { outline: none; }
.cat h2 a:focus-visible::after { outline: 3px solid var(--ink); outline-offset: 4px; }
.cat p { margin-top: 10px; max-width: 40ch; }
.cat .arrow { margin-top: auto; align-self: flex-end; width: 52px; height: 52px; border-radius: 50%; background: var(--card); display: grid; place-items: center; transition: transform .2s; }
.cat:hover .arrow { transform: rotate(45deg); }
.cat .arrow svg { width: 22px; height: 22px; }
.faq-item_h { font: inherit; margin: 0; }
.faq-head { margin-top: 12px; background: var(--ink); color: #fff; border-radius: var(--r-xl); padding: 26px 24px 30px; position: relative; overflow: hidden; }
@media (min-width: 768px) { .faq-head { padding: 40px; } }
.faq-head_label { display: inline-flex; background: var(--blue); color: var(--ink); border-radius: 99px; padding: 4px 14px; font-weight: 700; font-size: .875rem; }
.faq-head h1 { margin-top: 16px; font-size: clamp(2.6rem, 10vw, 5rem); line-height: .95; font-weight: 800; letter-spacing: -0.04em; position: relative; }
.faq-head p { margin-top: 12px; color: #D6D2E0; max-width: 52ch; font-size: 1.125rem; position: relative; }
.faq-head .q { position: absolute; right: -6px; bottom: -40px; font: 800 13rem/1 var(--head); color: rgba(255,255,255,.08); }
.faq-page-list { margin-top: 8px; background: var(--card); border-radius: var(--r); padding: 8px; }
.faq-tools { display: flex; justify-content: flex-end; margin-top: 12px; }
.faq-tools .linkbtn { padding: 0; }
.faq-page-list .faq-a p + p { margin-top: .75em; }
.more-cats { margin-top: 48px; }
.more-cats h2 { font-size: clamp(1.6rem, 5vw, 2.2rem); font-weight: 800; letter-spacing: -0.03em; }
.more-cats ul { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- Information ---------- */
.jump { margin-top: 20px; list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.info-groups { margin-top: 32px; display: grid; gap: 16px; }
@media (min-width: 900px) { .info-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; } }
.info-group { border-radius: var(--r); padding: 8px; scroll-margin-top: 16px; }
.info-group.c-lilac { background: var(--lilac); } .info-group.c-mint { background: var(--mint); }
.info-group.c-rose { background: var(--rose); } .info-group.c-leaf { background: var(--leaf); }
.info-group h2 { padding: 18px 16px 14px; font-size: clamp(1.8rem, 5vw, 2.4rem); line-height: 1; font-weight: 800; letter-spacing: -0.035em; }
.info-rows { list-style: none; margin: 0; padding: 6px; background: var(--card); border-radius: 20px; }
.info-rows li + li { border-top: 1px solid var(--line); }
.info-row { position: relative; display: flex; align-items: center; gap: 14px; padding: 14px 10px 14px 12px; border-radius: 16px; }
.info-row:hover { background: var(--cream); }
.info-row h3 { font-size: 1.2rem; line-height: 1.2; font-weight: 800; }
.info-row h3 a { text-decoration: none; }
.info-row h3 a::after { content: ""; position: absolute; inset: 0; border-radius: 16px; }
.info-row h3 a:focus-visible { outline: none; }
.info-row h3 a:focus-visible::after { outline: 3px solid var(--ink); outline-offset: 2px; }
.info-row p { margin-top: 2px; color: var(--ink-soft); font-size: .95rem; }
.info-row .go { margin-left: auto; flex: none; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--ink); display: grid; place-items: center; transition: transform .2s; }
.info-row:hover .go { transform: rotate(45deg); }
.info-row .go svg { width: 18px; height: 18px; }
.info-head { margin-top: 12px; border-radius: var(--r-xl); padding: 26px 24px 30px; position: relative; overflow: hidden; background: var(--mint); }
@media (min-width: 768px) { .info-head { padding: 40px; } }
.info-head_cat { display: inline-flex; background: var(--card); border-radius: 99px; padding: 4px 14px; font-weight: 700; font-size: .875rem; }
.info-head h1 { margin-top: 16px; font-size: clamp(2.6rem, 10vw, 5rem); line-height: .95; font-weight: 800; letter-spacing: -0.04em; max-width: 16ch; position: relative; }
.info-head p { margin-top: 12px; font-size: 1.125rem; max-width: 52ch; position: relative; }
.info-head .star { position: absolute; right: -40px; bottom: -50px; width: 200px; height: 200px; fill: rgba(255,255,255,.4); }
.info-more { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); }
.info-more h2 { font-size: clamp(1.6rem, 5vw, 2.2rem); font-weight: 800; letter-spacing: -0.03em; }
.info-more ul { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- Kontakt och formulär ---------- */
.page-grid { margin-top: 32px; display: grid; gap: 16px; }
@media (min-width: 960px) { .page-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: start; gap: 24px; } }
.panel { border-radius: var(--r); padding: 24px; }
@media (min-width: 768px) { .panel { padding: 32px; } }
.panel h2 { font-size: clamp(1.6rem, 5vw, 2.2rem); line-height: 1.05; font-weight: 800; letter-spacing: -0.03em; }
.panel p { margin-top: 10px; max-width: 60ch; }
.panel a { font-weight: 700; text-underline-offset: 3px; }
.duo { margin-top: 16px; display: grid; gap: 16px; }
@media (min-width: 960px) { .duo { grid-template-columns: 1fr 1fr; } }
.rink { position: relative; overflow: hidden; background: var(--lilac); }
.rink .star { position: absolute; right: -50px; top: -50px; width: 200px; height: 200px; fill: rgba(255,255,255,.4); }
.rink > * { position: relative; }
.links-panel { background: var(--card); }
.links-panel ul { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.links-panel .link-pill { background: var(--cream); }
.form-card { background: var(--card); }
.req-note { margin-top: 6px; color: var(--ink-soft); }
.f { margin-top: 22px; }
.f label { display: block; font-weight: 700; }
.f .hint { display: block; margin-top: 2px; font-size: .95rem; color: var(--ink-soft); }
.f input, .f select { margin-top: 8px; width: 100%; max-width: 440px; min-height: 52px; border: 2px solid var(--ink); border-radius: 99px; padding: 0 20px; font: 500 1.05rem var(--body); background: var(--white); color: var(--ink); }
.f select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='%231C1A22' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 18px center; background-size: 18px; padding-right: 48px; cursor: pointer; }
.f [aria-invalid="true"] { border-color: #8A1030; border-width: 3px; }
.f-err { display: flex; align-items: flex-start; gap: 8px; margin-top: 8px; color: #8A1030; font-weight: 700; }
.f-err svg { width: 18px; height: 18px; flex: none; margin-top: 3px; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.submit { margin-top: 28px; }
.submit .pill-btn { min-height: 54px; padding: 0 28px; }
.summary { margin-top: 18px; background: #FDECEF; color: #8A1030; border-radius: 24px; padding: 18px 22px; }
.summary h2 { font-size: 1.2rem; font-weight: 800; color: #8A1030; }
.summary ul { margin: 8px 0 0; padding-left: 1.2em; }
.summary a { color: #8A1030; font-weight: 600; text-underline-offset: 3px; }
.done { background: #E3F4E8; color: #1B6E3C; border-radius: var(--r); padding: 28px; }
.done_ico { width: 56px; height: 56px; border-radius: 50%; background: #1B6E3C; color: #fff; display: grid; place-items: center; }
.done_ico svg { width: 28px; height: 28px; }
.done h2 { margin-top: 16px; font-size: clamp(1.8rem, 5vw, 2.4rem); line-height: 1.05; font-weight: 800; letter-spacing: -0.03em; color: #1B6E3C; }
.done p { margin-top: 10px; color: var(--ink); max-width: 56ch; }
.privacy { background: var(--mint); }
.privacy h2 { font-size: 1.4rem; }

/* Förhandsversion: sidor vars innehåll ännu är exempeltext */
.preview-note { margin-top: 16px; display: inline-flex; gap: 8px; align-items: center; background: var(--sun); border-radius: 99px; padding: 6px 14px; font-weight: 700; font-size: .9rem; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
