/* I ♥ Ivanytsya – varm, tydlig design med tre färgteman (Ukraina, Rotary, Lions). */
/* Teman: bara färger + typografi via CSS-variabler. Standard (utan/ogiltigt tema) = Ukraina.
   Temat sätts på <html data-tema="…"> av ett litet inline-skript i <head> (ingen färgblink). Mörk text på guld/gult (WCAG AA). */
:root, :root[data-tema="ukraina"] {
  --blue: #0057b7; --blue-d: #003f86; --blue-l: #e6effa; --blue-line: #c3d6ef;
  --yellow: #ffd700; --yellow-l: #fff7cc; --on-accent: #262000; --gold-ink: #5c4a00; --accent-line: #f0dc7a; --accent-edge: #d4b300;
  --focus: #003f86; --focus-glow: rgba(0,87,183,.25);
}
:root[data-tema="rotary"] {
  --blue: #17458f; --blue-d: #0e2f66; --blue-l: #e7edf7; --blue-line: #c5d2e8;
  --yellow: #f7a81b; --yellow-l: #fef1da; --on-accent: #231700; --gold-ink: #6b4200; --accent-line: #f3d29a; --accent-edge: #d98d0a;
  --focus: #0e2f66; --focus-glow: rgba(23,69,143,.25);
}
:root[data-tema="lions"] {
  --blue: #00338d; --blue-d: #7a2582; --blue-l: #e6ecf7; --blue-line: #c2cfe8;
  --yellow: #ebb700; --yellow-l: #fcf4d6; --on-accent: #221a00; --gold-ink: #5e4800; --accent-line: #ecd889; --accent-edge: #c99c00;
  --focus: #7a2582; --focus-glow: rgba(0,51,141,.25);
}
:root {
  --bg: #fbf8f1; --card: #fff; --ink: #1c2b3a; --muted: #5d6b78; --line: #e6e0d4; --green: #2e7d4f; --red: #b3261e;
  --r: 14px; --shadow: 0 1px 2px rgba(28,43,58,.06), 0 4px 14px rgba(28,43,58,.06);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-family: var(--font);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-size: 16px; line-height: 1.5; min-height: 100vh; display: flex; flex-direction: column; }
a { color: var(--blue); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: 1.8rem; } h2 { font-size: 1.25rem; } h3 { font-size: 1.05rem; }
#top { background: var(--blue); color: #fff; position: sticky; top: 0; z-index: 20; box-shadow: 0 2px 8px rgba(0,0,0,.12); }
#top .bar { max-width: 980px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px 4px; flex-wrap: wrap; }
.brand { color: #fff; text-decoration: none; font-weight: 800; font-size: 1.25rem; letter-spacing: .01em; white-space: nowrap; }
.heart { color: var(--yellow); }
.tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.langs { display: flex; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; overflow: hidden; }
.lang { background: transparent; color: #fff; border: 0; padding: 5px 10px; font: inherit; font-size: .8rem; font-weight: 700; cursor: pointer; min-height: 40px; display: inline-flex; align-items: center; gap: 6px; }
.lang .flag { width: 20px; height: 14px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(255,255,255,.55); flex: none; }
.lang.on { background: var(--yellow); color: var(--on-accent); }
.account { display: flex; align-items: center; gap: 8px; }
.who { font-size: .85rem; display: flex; flex-direction: column; line-height: 1.1; text-align: right; }
.who small { opacity: .8; font-size: .72rem; }
.nav { max-width: 980px; margin: 0 auto; display: flex; gap: 2px; padding: 0 10px; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a { color: #fff; text-decoration: none; padding: 10px 10px 9px; font-weight: 600; font-size: .95rem; white-space: nowrap; border-bottom: 3px solid transparent; opacity: .9; }
.nav a:hover { opacity: 1; }
.nav a[aria-current="page"] { border-bottom-color: var(--yellow); opacity: 1; }
main#app { flex: 1; width: 100%; max-width: 980px; margin: 0 auto; padding: 20px 16px 48px; }
#foot { text-align: center; color: var(--muted); font-size: .85rem; padding: 18px 16px 28px; border-top: 1px solid var(--line); }
.page-head { margin: 4px 0 16px; }
.lead { color: var(--muted); margin: 0; max-width: 60ch; }
.muted { color: var(--muted); } .small { font-size: .85rem; } .block { display: block; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; box-shadow: var(--shadow); margin-bottom: 16px; }
.card.narrow, .narrow { max-width: 460px; }
.grid3 { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.grid3 .card { margin: 0; }
.more { display: inline-block; margin-top: 8px; font-weight: 600; text-decoration: none; }
/* hero */
.hero { text-align: center; padding: 18px 8px 28px; }
.hero h1 { font-size: clamp(2rem, 7vw, 3.2rem); color: var(--blue); margin-bottom: .2em; }
.tagline { font-size: 1.1rem; font-weight: 600; margin: 0 0 .6em; }
.intro { max-width: 62ch; margin: 0 auto 20px; color: var(--muted); }
.total-card { display: inline-flex; flex-direction: column; align-items: center; background: var(--blue); color: #fff; border-radius: 18px; padding: 16px 32px 0; overflow: hidden; text-decoration: none; box-shadow: var(--shadow); min-width: 260px; }
.total-card .label { font-size: .9rem; opacity: .9; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.total-card .amount { font-size: clamp(2rem, 8vw, 2.8rem); font-weight: 800; line-height: 1.15; }
.total-card .sub { color: var(--on-accent); background: var(--yellow); font-weight: 600; font-size: .9rem; margin: 10px -32px 0; padding: 7px 32px; align-self: stretch; text-align: center; }
.total-card.big { display: flex; margin: 0 0 18px; padding: 18px; border-bottom: 8px solid var(--yellow); }
/* listor */
.list { list-style: none; margin: 0 0 16px; padding: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; }
.list > li { display: flex; align-items: stretch; border-top: 1px solid var(--line); background: var(--card); }
.list > li:first-child { border-top: 0; }
.list .row { flex: 1; display: flex; align-items: center; gap: 12px; padding: 13px 16px; color: inherit; text-decoration: none; min-height: 52px; min-width: 0; }
.list a.row:hover { background: #fdfbf6; }
.list a.row:focus-visible { outline: 3px solid var(--focus); outline-offset: -3px; }
.list .main { flex: 1; min-width: 0; font-weight: 600; overflow-wrap: anywhere; }
.list .meta { color: var(--muted); font-size: .88rem; white-space: nowrap; }
.list .meta.date { min-width: 6.5em; }
.list .num { font-variant-numeric: tabular-nums; font-weight: 700; white-space: nowrap; }
.list.compact { box-shadow: none; border: 0; border-radius: 0; margin: 0; }
.list.compact .row { padding: 9px 0; min-height: 0; }
.list.compact > li { border-top-color: #f0ebe1; }
.list li.pending { background: #fffdf3; }
.list li.disabled { opacity: .6; }
.rank { display: inline-flex; align-items: center; justify-content: center; min-width: 26px; height: 26px; border-radius: 50%; background: var(--blue-l); color: var(--blue); font-weight: 800; font-size: .85rem; }
.empty { color: var(--muted); font-style: italic; padding: 8px 0; }
.chip { display: inline-block; font-size: .75rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; white-space: nowrap; margin-left: 8px; vertical-align: middle; }
.row > .chip { margin-left: 0; }
.st-wanted { background: var(--yellow-l); color: var(--gold-ink); border: 1px solid var(--accent-line); }
.st-ordered { background: var(--blue-l); color: var(--blue-d); }
.st-bought { background: var(--blue); color: #fff; }
.st-delivered { background: #e3f3e8; color: var(--green); border: 1px solid #bfe2cb; }
.chip.uncertain { background: #fdeceb; color: var(--red); border: 1px solid #f3c9c6; }
.chip.pending { background: var(--yellow-l); color: var(--gold-ink); }
.chip.internal { background: #eee; color: #444; }
/* drag and drop */
.handle { flex: none; width: 48px; border: 0; border-right: 1px solid var(--line); background: #faf7ef; color: var(--muted); font-size: 1.2rem; cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.handle:focus-visible { outline: 3px solid var(--focus); outline-offset: -3px; }
.sortable li { transition: transform .15s ease; }
.is-sorting li { user-select: none; -webkit-user-select: none; }
.sortable li.dragging { transition: none; position: relative; z-index: 5; box-shadow: 0 8px 24px rgba(0,0,0,.18); }
.sortable li.dragging .handle { cursor: grabbing; background: var(--yellow); color: var(--on-accent); }
.hint { color: var(--muted); font-size: .88rem; }
.drag-hint { margin: 0 0 8px; }
/* detalj */
.back { display: inline-block; margin-bottom: 8px; text-decoration: none; font-weight: 600; }
.detail-top { display: flex; gap: 6px; margin-bottom: 8px; }
.detail-top .chip { margin-left: 0; }
.facts { display: grid; grid-template-columns: minmax(110px, 30%) 1fr; gap: 8px 16px; margin: 0; }
.facts dt { color: var(--muted); font-size: .9rem; }
.facts dd { margin: 0; overflow-wrap: anywhere; }
.url { color: var(--muted); margin-left: 6px; }
.prose { white-space: pre-wrap; overflow-wrap: anywhere; }
article .prose { font-size: 1.05rem; }
.totals .rate, .detail .rate { margin: 12px 0 0; font-size: .88rem; }
/* filer */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; margin-bottom: 12px; }
.tile { margin: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #faf7ef; }
.tile a { display: flex; align-items: center; justify-content: center; aspect-ratio: 4/3; background: #f1ece1; text-decoration: none; }
.tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fileicon { font-weight: 800; color: var(--blue); font-size: 1.3rem; }
.tile figcaption { padding: 6px 8px; font-size: .8rem; display: flex; flex-direction: column; gap: 2px; position: relative; }
.tile .fname { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-right: 30px; }
.tile figcaption .btn { position: absolute; right: 4px; top: 4px; padding: 2px 8px; min-height: 26px; }
.upload { border-top: 1px dashed var(--line); padding-top: 12px; margin-top: 8px; }
/* formulär */
.form .field, .upload .field, .inline-form .field { margin-bottom: 12px; }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 4px; }
.field .hint { font-weight: 400; }
.field.check { display: flex; align-items: center; gap: 10px; }
.field.check label { margin: 0; font-weight: 500; }
.field.check input { width: 22px; height: 22px; flex: none; }
input, select, textarea { font: inherit; color: inherit; width: 100%; padding: 10px 12px; border: 1px solid #cfc7b8; border-radius: 10px; background: #fff; min-height: 44px; }
input[type="file"] { padding: 8px; }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 3px solid var(--focus-glow); border-color: var(--blue); }
.row2, .row3 { display: grid; gap: 0 12px; grid-template-columns: 1fr 1fr; }
.row3 { grid-template-columns: 1fr 1fr 1fr; }
@media (max-width: 560px) { .row2, .row3 { grid-template-columns: 1fr; } .row3 { grid-template-columns: 1fr 1fr; } }
.form-error { color: var(--red); font-weight: 600; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; margin: 4px 0 16px; align-items: center; }
.inline-form { display: flex; gap: 8px; align-items: flex-end; flex-wrap: wrap; margin-top: 12px; }
.inline-form .field { margin: 0; } .inline-form .actions { margin: 0; } .inline-form .form-error { flex-basis: 100%; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font: inherit; font-weight: 600; padding: 9px 16px; min-height: 44px; border-radius: 10px; border: 1px solid #cfc7b8; background: #fff; color: var(--ink); cursor: pointer; text-decoration: none; }
.btn:hover { border-color: var(--blue); }
.btn.primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn.primary:hover { background: var(--blue-d); }
.btn.danger { color: var(--red); border-color: #e7b9b5; }
.btn.small { padding: 4px 10px; min-height: 34px; font-size: .88rem; }
.btn.ghost { background: transparent; }
#top .btn.ghost { color: #fff; border-color: rgba(255,255,255,.45); }
.btn.link { border: 0; background: none; color: var(--blue); text-decoration: underline; padding: 0 2px; min-height: 0; }
.btn:disabled { opacity: .6; cursor: wait; }
.btn.add { margin: 0 0 14px; }
.notice { background: var(--blue-l); border: 1px solid var(--blue-line); border-radius: var(--r); padding: 12px 14px; }
.copyrow { display: flex; gap: 8px; }
.copyrow input { font-family: ui-monospace, monospace; font-size: .8rem; }
.users .row.static { flex-wrap: wrap; }
.ctrls { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.ctrls select { width: auto; min-height: 34px; padding: 4px 8px; }
.log .main { font-weight: 400; font-size: .88rem; }
section > h2 { margin-top: 24px; }
/* kalender */
.monthnav { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.monthnav h2 { margin: 0; flex: 1; text-align: center; text-transform: capitalize; }
.calgrid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.calgrid .wd { text-align: center; font-size: .75rem; color: var(--muted); font-weight: 700; text-transform: uppercase; padding-bottom: 4px; }
.calgrid .day { aspect-ratio: 1; border: 1px solid var(--line); border-radius: 8px; background: #fff; font: inherit; display: flex; flex-direction: column; align-items: center; justify-content: center; cursor: pointer; padding: 0; min-height: 38px; }
.calgrid .day.blank { border: 0; background: none; cursor: default; }
.calgrid .day.has { background: var(--blue-l); border-color: var(--blue-line); font-weight: 700; }
.calgrid .day.today { outline: 2px solid var(--yellow); outline-offset: -2px; }
.calgrid .dots { color: var(--blue); line-height: .6; font-size: 1.1rem; }
/* toast */
#toasts { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; z-index: 50; width: min(92vw, 420px); }
.toast { background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 10px; box-shadow: var(--shadow); font-weight: 600; text-align: center; }
.toast.err { background: var(--red); }
body.plain { justify-content: center; align-items: center; padding: 16px; }
body.plain .card { width: 100%; }
@media (max-width: 560px) {
  h1 { font-size: 1.5rem; }
  .who { display: none; }
  .nav a { padding: 10px 8px 9px; font-size: .9rem; }
  .list .row { gap: 8px; padding: 12px; }
  .list .meta.date { min-width: 0; }
  .items .row { flex-wrap: wrap; }
  .items .row .main { flex-basis: 100%; }
  .lang { padding: 5px 8px; }
  .facts { grid-template-columns: 1fr; gap: 2px; }
  .facts dd { margin-bottom: 8px; }
  .total-card { min-width: 0; width: 100%; }
}

/* superenkelt: stora knappar, "Visa mer", bilder */
.btn.big { min-height: 54px; padding: 12px 22px; font-size: 1.05rem; border-radius: 12px; }
.btn.add { width: 100%; max-width: 460px; }
.btn.shop { margin: 6px 0 14px; width: 100%; max-width: 460px; background: var(--yellow); border-color: var(--accent-edge); color: var(--on-accent); }
.big-amount { font-size: 1.9rem; font-weight: 800; margin: 4px 0 10px; color: var(--blue-d); font-variant-numeric: tabular-nums; }
.big-links { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; margin: 0 0 18px; }
.big-link { display: flex; flex-direction: column; gap: 4px; padding: 18px; min-height: 84px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); text-decoration: none; color: var(--ink); }
.big-link:hover { border-color: var(--blue); }
.bl-title { font-size: 1.2rem; font-weight: 800; color: var(--blue-d); }
.bl-sub { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.more-box { margin: 0 0 16px; border: 1px solid var(--line); border-radius: var(--r); background: #fffdf8; }
.more-box > summary { cursor: pointer; list-style: none; padding: 12px 16px; min-height: 48px; font-weight: 700; color: var(--blue); display: flex; align-items: center; gap: 8px; }
.more-box > summary::-webkit-details-marker { display: none; }
.more-box > summary::before { content: "▸"; transition: transform .15s; }
.more-box[open] > summary::before { transform: rotate(90deg); }
.more-box .opened, .more-box[open] .closed { display: none; }
.more-box[open] .opened { display: inline; }
.more-box .more-body { padding: 0 16px 14px; }
.form .more-box { background: #fbf8f1; }
.card .more-box { margin-top: 12px; }
.hero .tagline { max-width: 40ch; margin-left: auto; margin-right: auto; }
.hero { padding-bottom: 18px; }
/* drag-handtag visas bara när "Visa mer" är öppen */
.sortable:not(.reorder) .handle { display: none; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; margin: -1px; }
.picker { margin: 4px 0 12px; }
.pick-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.pick { flex: 1 1 200px; display: flex; }
.pick-btn { width: 100%; border: 2px dashed var(--blue-line); background: var(--blue-l); color: var(--blue-d); }
.tiles { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
.tile .thumb { display: flex; align-items: center; justify-content: center; aspect-ratio: 1; width: 100%; background: #f1ece1; border: 0; padding: 0; cursor: zoom-in; text-decoration: none; }
.tile figcaption { min-height: 34px; }
.lightbox { position: fixed; inset: 0; z-index: 60; background: rgba(10,20,35,.88); display: flex; align-items: center; justify-content: center; padding: 16px; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 96px); border-radius: 8px; box-shadow: 0 8px 30px rgba(0,0,0,.4); background: #fff; }
.lb-close { position: absolute; top: 12px; right: 12px; }
@media (max-width: 560px) {
  .big-links { grid-template-columns: 1fr; }
  .big-link { min-height: 72px; padding: 14px 16px; }
  .btn.add, .btn.shop, .pick { max-width: none; }
}
.big-link, .bl-sub { min-width: 0; }

/* stegindikator */
.mini-steps { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.mini-steps .dots { display: inline-flex; gap: 3px; }
.mini-steps .dot { width: 14px; height: 6px; border-radius: 3px; background: #e4ddcf; }
.mini-steps .dot.done { background: var(--blue); }
.mini-steps .dot.current { background: var(--yellow); box-shadow: 0 0 0 1px var(--accent-edge); }
.mini-steps .dot.skipped { background: repeating-linear-gradient(90deg, #c9c1b2 0 3px, transparent 3px 5px); }
.mini-label { font-size: .82rem; font-weight: 700; color: var(--blue-d); }
.mini-label.wanted { color: var(--gold-ink); }
.stepper { list-style: none; margin: 6px 0 16px; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; counter-reset: s; }
.step { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; position: relative; font-size: .85rem; color: var(--muted); }
.step:not(:first-child)::before { content: ""; position: absolute; top: 20px; right: 50%; width: 100%; height: 3px; background: #e4ddcf; z-index: 0; }
.step.done::before, .step.current::before { background: var(--blue); }
.step.skipped::before { background: repeating-linear-gradient(90deg, #c9c1b2 0 5px, transparent 5px 9px); }
.bubble { position: relative; z-index: 1; width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.15rem; background: #fff; border: 2px solid #e4ddcf; }
.step.done .bubble { background: var(--blue); border-color: var(--blue); color: #fff; font-weight: 800; }
.step.current .bubble { background: var(--yellow); border-color: var(--accent-edge); color: var(--on-accent); font-weight: 800; transform: scale(1.12); }
.step.skipped .bubble { border-style: dashed; opacity: .7; }
.step.todo .bubble { opacity: .55; }
.step.current .step-label { color: var(--ink); font-weight: 800; }
.step-label small { display: block; font-size: .72rem; font-style: italic; }
.next-step { width: 100%; max-width: 460px; margin: 0 0 14px; font-size: 1.15rem; min-height: 60px; }
.step-hint { font-weight: 700; margin: 0 0 8px; }
.detail .card.upload { box-shadow: none; background: var(--yellow-l); border-color: var(--accent-line); }
@media (max-width: 560px) {
  .stepper { grid-template-columns: 1fr; gap: 0; }
  .step { flex-direction: row; text-align: left; gap: 12px; padding: 4px 0; }
  .step:not(:first-child)::before { top: auto; bottom: 50%; right: auto; left: 19px; width: 3px; height: 100%; }
  .step.skipped::before { background: repeating-linear-gradient(180deg, #c9c1b2 0 5px, transparent 5px 9px); }
  .step-label small { display: inline; margin-left: 6px; }
  .items .row .mini-steps { margin-left: auto; }
}
/* processida */
.page-langs { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 16px; }
.page-lang { gap: 8px; }
.page-lang .flag { width: 22px; height: 15px; border-radius: 2px; box-shadow: 0 0 0 1px var(--line); }
.page-lang.on { border-color: var(--blue); background: var(--blue-l); }
.proc { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 10px; }
.proc li { display: flex; align-items: center; gap: 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; box-shadow: var(--shadow); }
.proc-n { flex: none; width: 52px; height: 52px; border-radius: 50%; background: var(--blue); color: #fff; font-size: 1.7rem; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.proc-i { flex: none; font-size: 1.8rem; }
.proc-t { font-size: 1.15rem; font-weight: 600; }
.proc-who { background: var(--yellow-l); border: 1px solid var(--accent-line); border-radius: var(--r); padding: 12px 16px; font-weight: 600; }
.chain { list-style: none; padding: 0; margin: 0 0 18px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.chain li { background: var(--blue-l); color: var(--blue-d); border-radius: 999px; padding: 6px 12px; font-weight: 700; font-size: .92rem; }
.chain li.pre { background: var(--yellow-l); color: var(--gold-ink); }
.chain li:not(:last-child)::after { content: " →"; color: var(--muted); }
.center { text-align: center; }
.more-link { font-weight: 700; text-decoration: none; }

/* överföringar i journalen */
.transfer-box { display: grid; gap: .6rem; margin: .4rem 0 1rem; }
.transfer-parties { font-size: 1.6rem; font-weight: 700; margin: 0; }
.transfer-parties .party { display: inline-grid; place-items: center; min-width: 2.4rem; height: 2.4rem; border-radius: 999px; background: var(--soft, #f3efe2); }
.transfer-status { list-style: none; padding: 0; margin: 0; display: grid; gap: .3rem; font-size: 1.05rem; }
.transfer-status .wait { color: var(--gold-ink); font-weight: 600; }
.item-transfers h3 { margin: 1rem 0 .3rem; font-size: 1rem; }
.item-transfers .list { margin: 0; }
.transfer-fields { display: grid; gap: .5rem; }
.detail > h3 { margin: 1.2rem 0 .3rem; }
.funded-line { margin: -.3rem 0 .6rem; font-weight: 600; color: #2b5d1f; }

/* temaväljare (sidfot) */
.themes { display: inline-flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; margin: 0 0 10px; }
.themes .tl { font-weight: 600; margin-right: 2px; }
.theme-btn { display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: .85rem; font-weight: 600; min-height: 36px; padding: 4px 12px; border-radius: 999px; border: 1px solid #cfc7b8; background: #fff; color: var(--ink); cursor: pointer; }
.theme-btn:hover { border-color: var(--blue); }
.theme-btn:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.theme-btn[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: #fff; }
.theme-btn .sw { width: 22px; height: 12px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,.25); flex: none; }
.sw-ukraina { background: linear-gradient(90deg, #0057b7 50%, #ffd700 50%); }
.sw-rotary { background: linear-gradient(90deg, #17458f 50%, #f7a81b 50%); }
.sw-lions { background: linear-gradient(90deg, #00338d 33%, #7a2582 33% 66%, #ebb700 66%); }

/* notiser från området (temafärger via variabler) */
.news-box { border-top: 4px solid var(--yellow); margin: 0 0 18px; }
.news-box > h2, .news-list h2 { color: var(--blue-d); }
.notice-item { padding: 12px 0; border-top: 1px solid var(--line); }
.news-box > h2 + .notice-item, .news-list > .notice-item:first-child { border-top: 0; padding-top: 4px; }
.notice-meta { margin: 0 0 2px; color: var(--muted); font-size: .88rem; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.notice-meta .chip { margin-left: 0; }
.notice-title { margin: 0 0 4px; font-size: 1.1rem; color: var(--ink); }
.news-list .notice-title { font-size: 1.2rem; }
.notice-body { margin: 0 0 6px; white-space: pre-line; }
.notice-source { margin: 0; font-size: .9rem; color: var(--muted); }
.notice-source a { color: var(--blue); font-weight: 600; overflow-wrap: anywhere; }
.notice-tools { margin: 8px 0 0; }
.news-all { margin: 8px 0 0; }
.notice-lang { border: 1px solid var(--line); border-radius: var(--r); padding: 10px 14px 4px; margin: 0 0 12px; }
.notice-lang legend { font-weight: 700; color: var(--blue-d); padding: 0 6px; }

/* om projektet */
.about-tabs { padding: 2px 0 6px; margin: 0 0 12px; }
.about-tabs ol { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; flex-wrap: wrap; }
.about-tabs a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 14px 6px 8px; border-radius: 999px; border: 1px solid var(--blue-line); background: var(--blue-l); color: var(--blue-d); font-weight: 700; text-decoration: none; }
.about-tabs a:hover { border-color: var(--blue); }
.about-tabs a:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.tab-n { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--blue); color: #fff; font-size: .9rem; font-weight: 800; flex: none; }
.about-sec { scroll-margin-top: 160px; border-top: 4px solid var(--yellow); }
.about-sec > h2 { display: flex; align-items: center; gap: 10px; color: var(--blue-d); }
.about-sec h3 { margin-top: 18px; color: var(--blue-d); }
.about-sec p { max-width: 70ch; }
.about-facts { list-style: none; padding: 0; margin: 4px 0 14px; display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.about-facts li { background: var(--blue-l); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; }
.fact-n { font-size: 1.8rem; font-weight: 800; color: var(--blue-d); line-height: 1.1; }
.fact-l { color: var(--ink); font-weight: 600; }
.about-cards { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.about-cards li { border: 1px solid var(--line); border-left: 4px solid var(--yellow); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; background: var(--card); }
.about-cards strong { color: var(--blue-d); }
.about-pics { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); margin: 0 0 12px; }
.about-pics figure { margin: 0; } .about-pics img { width: 100%; border-radius: 10px; display: block; }
.about-pics figcaption { font-size: .85rem; color: var(--muted); margin-top: 4px; }
@media (max-width: 560px) { .about-tabs a { padding: 4px 10px 4px 6px; font-size: .9rem; } }
