/* Åsundens Pärla – designsystem (från skisserna "1+2. Kombination" och "Startsidans fem lägen") */
:root {
  --bg: #DCEBF8; --ink: #0E2A78; --accent: #1846B0; --muted: #3A5BA8; --soft: #EAF2FA; --card: #FFFFFF;
  --line: #E3ECF7; --letters: #BCD8F1; --gold: #D4A04A; --gold2: #E6BC66; --red: #E0393E;
  --ok-bg: #E2F4EA; --ok: #1B6E3C; --warn-bg: #FFF4D6; --warn: #7A5300;
  --head: "Unbounded", system-ui, sans-serif; --body: "Manrope", system-ui, sans-serif;
  --pad: 16px; --r: 22px; --max: 1312px;
}
@media (min-width: 960px) { :root { --pad: 64px; } }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 500 16px/1.5 var(--body); }
a { color: var(--ink); }
a:hover { color: var(--accent); }
h1, h2, h3 { margin: 0; font-family: var(--head); line-height: 1.05; }
p { margin: 0; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--pad)); margin: 0 auto; padding: 0 var(--pad); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--card); padding: 10px 16px; border-radius: 12px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }

/* ---------- sidhuvud ---------- */
.top { display: flex; align-items: center; gap: 12px; padding-top: 16px; padding-bottom: 16px; position: relative; z-index: 5; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { width: 44px; height: 44px; border-radius: 14px; background: var(--card); display: grid; place-items: center; flex: none; }
.brand-mark svg { width: 30px; height: 30px; }
.brand b { display: block; font: 700 13px/1.2 var(--head); letter-spacing: .5px; }
.brand span { display: block; font-size: 12px; color: var(--muted); }
.navpill { display: none; margin-left: 32px; gap: 4px; background: var(--card); border-radius: 16px; padding: 4px; list-style: none; }
.navpill a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 12px; text-decoration: none; font-weight: 700; color: #33456F; }
.navpill a[aria-current="page"] { background: var(--ink); color: #fff; }
.top .top-cta { display: none; margin-left: auto; }
.icon-btn { margin-left: auto; width: 48px; height: 48px; border-radius: 14px; border: 0; background: var(--card); color: var(--ink); display: grid; place-items: center; cursor: pointer; }
@media (min-width: 960px) {
  .top { padding-top: 24px; padding-bottom: 24px; }
  .brand b { font-size: 15px; }
  .navpill { display: flex; }
  .icon-btn { display: none; }
  .top .top-cta { display: inline-flex; }
}
.menu { position: fixed; inset: 0; z-index: 60; background: var(--card); padding: 16px var(--pad) 32px; overflow-y: auto; }
.menu[hidden] { display: none; }
.menu-head { display: flex; justify-content: flex-end; }
.menu ul { list-style: none; margin: 32px 0 0; padding: 0; }
.menu li a { display: block; padding: 10px 0; font: 800 2rem/1.15 var(--head); text-decoration: none; }
.menu li a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 4px; text-underline-offset: 6px; text-decoration-color: var(--gold2); }

/* ---------- knappar ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 24px; border-radius: 16px; border: 2px solid transparent; font: 800 16px var(--body); text-decoration: none; cursor: pointer; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--ink); color: #fff; }
.btn-white { background: var(--card); color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); min-height: 44px; padding: 0; }
.btn-block { display: flex; width: 100%; }
.pill { display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; padding: 7px 14px; font-size: 13px; font-weight: 800; }
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.pill-ok { background: var(--ok-bg); color: var(--ok); }
.pill-grey { background: var(--card); color: #33456F; }
.pill-warn { background: var(--warn-bg); color: var(--warn); }
.pill-block { display: flex; justify-content: center; }

/* ---------- affischen ---------- */
.hero { position: relative; height: 440px; overflow: hidden; }
.hero-letters { position: absolute; left: 50%; top: -6px; transform: translateX(-50%); font: 800 130px/0.86 var(--head); color: var(--letters); text-align: center; white-space: nowrap; user-select: none; }
.hero-bar { position: absolute; width: 130px; height: 16px; transform: rotate(-35deg); }
.hero-bar.b1 { left: -40px; top: 36px; background: var(--gold); } .hero-bar.b2 { left: -30px; top: 64px; background: var(--gold2); }
.hero-bar.b3 { right: -36px; bottom: 40px; background: var(--gold); } .hero-bar.b4 { right: -26px; bottom: 12px; background: var(--gold2); }
.hero-rings { position: absolute; left: 50%; top: 90px; width: 300px; height: 300px; transform: translateX(-50%); }
.hero-rings text { font: 700 11px var(--head); letter-spacing: 4px; fill: var(--ink); }
.hero-photo { position: absolute; left: 50%; top: 125px; width: 160px; height: 240px; transform: translateX(-50%); border-radius: 80px 80px 20px 20px; object-fit: cover; }
@media (min-width: 960px) {
  .hero { height: 620px; max-width: var(--max); margin: 0 auto; }
  .hero-letters { font-size: 300px; line-height: .9; top: 0; letter-spacing: -6px; }
  .hero-letters br { display: none; }
  .hero-bar { width: 260px; height: 24px; }
  .hero-bar.b1 { left: -60px; top: 70px; } .hero-bar.b2 { left: -40px; top: 112px; }
  .hero-bar.b3 { right: -60px; top: 70px; bottom: auto; transform: rotate(32deg); } .hero-bar.b4 { right: -40px; top: 112px; bottom: auto; transform: rotate(32deg); }
  .hero-rings { top: 70px; width: 500px; height: 500px; }
  .hero-rings text { font-size: 11px; }
  .hero-photo { top: 135px; width: 250px; height: 380px; border-radius: 125px 125px 26px 26px; }
}
/* Kompakt affisch på tävlingsdagen */
.hero.compact { height: 200px; margin: 0 var(--pad); border-radius: 28px; background: #C9E0F4; }
.hero.compact .hero-letters { font-size: 120px; line-height: 1; top: 18px; color: #B2D2EE; }
.hero.compact .hero-letters br { display: none; }
.hero.compact .hero-bar.b1, .hero.compact .hero-bar.b2 { display: none; }
.hero.compact .hero-bar.b3 { right: -30px; top: 30px; bottom: auto; width: 120px; height: 14px; }
.hero.compact .hero-bar.b4 { right: -20px; top: 54px; bottom: auto; width: 120px; height: 14px; }
.hero.compact .hero-rings { left: 20px; top: 20px; width: 160px; height: 160px; transform: none; }
.hero.compact .hero-rings text { display: none; }
.hero.compact .hero-photo { display: none; }
.hero-day { display: none; position: absolute; left: 196px; bottom: 22px; }
.hero.compact .hero-day { display: block; }
.hero-day span { display: block; font-size: 12px; font-weight: 800; letter-spacing: 1.5px; color: var(--accent); }
.hero-day b { font: 800 22px/1 var(--head); }
@media (min-width: 960px) { .hero.compact { height: 240px; max-width: var(--max); margin: 0 auto; } .hero.compact .hero-letters { font-size: 200px; } .hero-day { left: 260px; bottom: 36px; } .hero-day b { font-size: 34px; } .hero.compact .hero-rings { width: 200px; height: 200px; } }

/* ---------- lägesinnehåll ---------- */
.ph { display: grid; gap: 16px; padding-bottom: 32px; }
@media (min-width: 960px) { .ph { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; } .ph > * { grid-column: span 12; order: var(--d, 0); } .s4 { grid-column: span 4 !important; } .s5 { grid-column: span 5 !important; } .s6 { grid-column: span 6 !important; } .s7 { grid-column: span 7 !important; } .s8 { grid-column: span 8 !important; } }
.intro { display: flex; flex-direction: column; gap: 10px; }
.intro h1 { font-size: 42px; font-weight: 800; line-height: .95; letter-spacing: -1px; }
.intro p { font-size: 17px; font-weight: 600; }
@media (min-width: 960px) { .intro h1 { font-size: 60px; } .intro p { font-size: 19px; } }
.sec { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.sec > h2 { font-size: 24px; font-weight: 800; }
.card { background: var(--card); border-radius: var(--r); padding: 20px; }
.card h2, .card h3 { font-size: 20px; font-weight: 800; }
.card-dark { background: var(--ink); color: #fff; border-radius: 24px; padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.card-dark a:not(.btn) { color: #fff; }
.eyebrow { font-size: 12px; font-weight: 800; letter-spacing: 2px; color: #BFD3F5; text-transform: uppercase; }
.card-dark .big { font: 700 22px/1.15 var(--head); }
.countdown { display: flex; gap: 8px; margin-top: 4px; }
.countdown span { flex: 1; background: rgba(255,255,255,.12); border-radius: 14px; padding: 10px; display: flex; flex-direction: column; align-items: center; font-size: 12px; color: #BFD3F5; }
.countdown b { font: 800 24px var(--head); color: #fff; }
.note-dashed { border: 2px dashed #8FAAD6; border-radius: 20px; padding: 16px; font-weight: 600; }
.info-list { background: var(--card); border-radius: 24px; padding: 4px 20px; }
.info-list > div { padding: 14px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; }
.info-list > div:last-child { border-bottom: 0; }
.info-list span { font-size: 14px; color: var(--muted); }
.daycard { background: var(--card); border-radius: 20px; padding: 16px 18px; display: flex; flex-direction: column; }
.daycard span { font-size: 14px; color: var(--muted); }

/* klasser */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; background: var(--soft); border-radius: 999px; padding: 8px 14px; font-weight: 700; }
.cdot { width: 14px; height: 14px; border-radius: 50%; flex: none; display: inline-block; }
.cdot.vit { background: #F4F4F6; box-shadow: inset 0 0 0 1.5px #B4C3DA; } .cdot.gul { background: #F5C400; } .cdot.gron { background: #2E9E5B; } .cdot.bla { background: #2F6FDB; } .cdot.rod { background: #D6343F; }
.cdot.none { background: #C7D3E6; }
.cdot.pause { width: 14px; height: 2px; border-radius: 0; background: #8A97B3; }

/* listor med länkar per klass */
.linklist { background: var(--card); border-radius: var(--r); padding: 4px 16px; }
.linklist a, .linklist div { display: flex; align-items: center; gap: 12px; min-height: 56px; text-decoration: none; border-bottom: 1px solid var(--line); }
.linklist > :last-child { border-bottom: 0; }
.linklist .t { font-size: 13px; color: var(--muted); }
.linklist .go { margin-left: auto; }
.linklist .wait { margin-left: auto; font-size: 13px; color: var(--muted); }

/* tidsschema */
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); background: var(--card); border-radius: 16px; padding: 4px; }
.seg button { min-height: 44px; border: 0; border-radius: 12px; background: transparent; color: #33456F; font: 700 14px var(--body); cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--ink); color: #fff; font-weight: 800; }
.rows { display: flex; flex-direction: column; gap: 8px; list-style: none; margin: 0; padding: 0; }
.row { background: var(--card); border-radius: 18px; padding: 14px 16px; display: flex; align-items: center; gap: 12px; }
.row .tm { font-weight: 800; width: 56px; flex: none; font-variant-numeric: tabular-nums; }
.row .nm { font-weight: 600; }
.row.done { opacity: .7; }
.row.now { box-shadow: inset 0 0 0 2px var(--ink); }
.row.now .nm { font-weight: 800; }
.row .st { margin-left: auto; font-size: 12px; font-weight: 800; border-radius: 999px; padding: 4px 10px; white-space: nowrap; }
.row .st.done { color: var(--ok); background: var(--ok-bg); }
.row .st.now { color: #fff; background: var(--ink); }
.row .est { margin-left: auto; font-size: 13px; color: var(--muted); white-space: nowrap; }

/* live */
.live { background: var(--ink); color: #fff; border-radius: 24px; padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.live-top { display: flex; align-items: center; gap: 12px; }
.live-sw { width: 48px; height: 48px; border-radius: 12px; flex: none; }
.live-lbl { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 800; letter-spacing: 2px; color: #FF9CA0; }
.live-lbl i { width: 8px; height: 8px; border-radius: 50%; background: #FF6B70; animation: blink 1.6s infinite; }
@keyframes blink { 50% { opacity: .3; } }
.live-name { font: 700 20px var(--head); display: block; }
.live-delay { margin-left: auto; background: var(--gold2); color: var(--ink); border-radius: 999px; padding: 5px 11px; font-size: 13px; font-weight: 800; white-space: nowrap; }
.live-bar { height: 6px; border-radius: 3px; background: rgba(255,255,255,.22); }
.live-bar i { display: block; height: 6px; border-radius: 3px; background: #fff; }
.live-foot { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; color: #BFD3F5; }
.msg { background: var(--warn-bg); border-radius: 18px; padding: 14px 16px; display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: #4A3A10; }
.msg b { color: var(--warn); }

/* Planera besöket */
.plan { display: grid; gap: 12px; }
@media (min-width: 700px) { .plan { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .plan { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; } }
.plan a { text-decoration: none; background: var(--card); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; transition: transform .15s; }
.plan a:hover { transform: translateY(-2px); color: var(--ink); }
.plan .pic { height: 110px; background: var(--letters); display: grid; place-items: center; color: var(--accent); position: relative; overflow: hidden; }
.plan .pic svg { width: 44px; height: 44px; position: relative; }
.plan .pic::before { content: ""; position: absolute; width: 180px; height: 180px; border-radius: 50%; border: 3px solid rgba(24,70,176,.18); }
.plan .pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.plan .txt { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 2px; }
.plan .txt span { font-size: 14px; color: var(--muted); }
.plan .first .pic { background: var(--ink); color: #fff; }
.plan .first .pic::before { border-color: rgba(255,255,255,.18); }

/* small grid of two link cards */
.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.duo a { text-decoration: none; background: var(--card); border-radius: 20px; padding: 18px; display: flex; flex-direction: column; gap: 4px; }
.duo a span { font-size: 13px; color: var(--muted); }

/* undersidor */
.page-head { padding-top: 12px; padding-bottom: 8px; }
.page-head h1 { font-size: clamp(2.2rem, 9vw, 4.2rem); font-weight: 800; letter-spacing: -1px; }
.page-head p { margin-top: 12px; font-size: 17px; max-width: 60ch; font-weight: 600; }
.prose { max-width: 70ch; display: flex; flex-direction: column; gap: 12px; }
.prose h2 { font-size: 22px; margin-top: 16px; }
.prose ul { margin: 0; padding-left: 1.2em; }
.anchor { scroll-margin-top: 16px; }
.page-grid { display: grid; gap: 16px; padding-bottom: 40px; }
@media (min-width: 960px) { .page-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px; align-items: start; } }

/* sidfot och bottenmeny */
.foot { padding-top: 32px; padding-bottom: 120px; font-size: 13px; color: var(--muted); display: flex; flex-direction: column; gap: 4px; }
@media (min-width: 960px) { .foot { background: var(--ink); color: #C9D8F4; max-width: none; flex-direction: row; justify-content: space-between; padding: 28px var(--pad); margin-top: 24px; } .foot a { color: #fff; } }
.botnav { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 40; background: var(--card); border-radius: 24px; box-shadow: 0 8px 28px rgba(14,42,120,.18); display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); padding: 6px; }
.botnav a { min-height: 56px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-decoration: none; font-size: 12px; font-weight: 700; color: var(--muted); border-radius: 18px; }
.botnav a[aria-current="page"] { color: var(--ink); font-weight: 800; background: var(--soft); }
.botnav svg { width: 20px; height: 20px; }
@media (min-width: 960px) { .botnav { display: none; } }
.loading { color: var(--muted); font-weight: 600; padding: 12px 0; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

.hero.compact ~ .wrap .ph { padding-top: 16px; }
