/* pangpriser.nu – Mix 1 (svart, signalgult, snedställda prislappar) */
:root {
  --ink: #111111;
  --accent: #FFD400;
  --muted: #555555;
  --line: #d4d4d4;
  --chip: #f1f1f1;
  --good: #9BE39B;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: Inter, system-ui, sans-serif; color: var(--ink); background: #fff; line-height: 1.5; }
a { color: var(--ink); }
a:hover { color: #000; }
.wrap { max-width: 1200px; margin: 0 auto; padding-inline: 24px; }
.display { font-family: Archivo, Inter, sans-serif; letter-spacing: -0.02em; }

/* Kurslisten */
.ticker { background: var(--ink); color: #fff; font-size: 14px; font-weight: 600; border-bottom: 1px solid #2a2a2a; }
.ticker .row { max-width: 1200px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 4px 24px; padding: 9px 24px; }
.ticker .row > * { white-space: nowrap; }
.ticker .lead, .ticker .p { color: var(--accent); }
.ticker .up { color: #ff9a8a; } .ticker .down { color: var(--good); }
.ticker a { color: #fff; text-decoration: none; }

/* Sidhuvud */
.top { background: var(--ink); color: #fff; }
.top .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-block: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.brand:hover { color: #fff; }
.brand .badge { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; background: var(--accent); color: var(--ink); font-family: Archivo, sans-serif; font-weight: 900; font-size: 22px; border-radius: 8px; transform: rotate(-6deg); }
.brand .name { font-family: Archivo, sans-serif; font-weight: 900; font-size: 26px; letter-spacing: -0.02em; }
.brand .name span { color: var(--accent); }
.top nav { display: flex; flex-wrap: wrap; gap: 8px 24px; font-weight: 500; font-size: 15px; }
.top nav a { color: #fff; text-decoration: none; padding-block: 8px; }
.top nav a:hover, .top nav a[aria-current] { color: var(--accent); }

/* Hero + sök */
.hero { background: var(--accent); }
.hero .wrap { padding-block: 52px 60px; display: flex; flex-direction: column; gap: 26px; }
.hero h1 { margin: 0; font-family: Archivo, sans-serif; font-weight: 900; font-size: clamp(40px, 6vw, 76px); line-height: 0.98; letter-spacing: -0.03em; max-width: 900px; }
.search { background: #fff; border: 3px solid var(--ink); border-radius: 16px; padding: 16px; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; align-items: end; box-shadow: 8px 8px 0 var(--ink); }
.search label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 14px; }
.search input, .search select { font: inherit; font-size: 17px; font-weight: 500; min-height: 52px; padding: 0 12px; border: 2px solid var(--line); border-radius: 10px; background: #fff; width: 100%; color: var(--ink); }
.search input:focus, .search select:focus, .btn:focus-visible, a:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.btn { font-family: Archivo, sans-serif; font-weight: 800; font-size: 19px; min-height: 52px; border: 0; border-radius: 10px; background: var(--ink); color: #fff; cursor: pointer; padding: 0 20px; text-decoration: none; white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; }
.btn:hover { background: #000; color: #fff; }
.search .opts { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px 24px; font-weight: 500; }
.search .opts label { flex-direction: row; align-items: center; gap: 8px; font-weight: 500; font-size: 15px; }
.search .opts input[type=checkbox] { width: 20px; height: 20px; min-height: 0; accent-color: var(--ink); }
.search .opts select { min-height: 40px; font-size: 15px; width: auto; }

/* Sektioner */
section.block { padding-block: 48px 8px; }
.head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 22px; }
.head h2 { margin: 0; font-family: Archivo, sans-serif; font-weight: 800; font-size: clamp(26px, 3vw, 34px); letter-spacing: -0.02em; }
.head .muted { color: var(--muted); font-size: 15px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 22px 20px; }
.grid.small { grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); }

/* Kort */
.card { position: relative; border: 2px solid var(--ink); border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 12px; background: #fff; }
.card .flag { position: absolute; top: -13px; left: 16px; background: var(--ink); color: var(--accent); font-family: Archivo, sans-serif; font-weight: 800; font-size: 13px; padding: 5px 11px; border-radius: 99px; }
.card .row1 { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.card .title { font-weight: 700; font-size: 17px; overflow-wrap: anywhere; }
.card .sub { color: var(--muted); font-size: 15px; }
.tag { background: var(--accent); border: 2px solid var(--ink); border-radius: 10px; padding: 7px 11px; transform: rotate(3deg); text-align: center; flex: none; }
.tag b { display: block; font-family: Archivo, sans-serif; font-weight: 900; font-size: 28px; line-height: 1; white-space: nowrap; }
.tag small { font-size: 11px; font-weight: 700; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; font-weight: 500; }
.chips span { background: var(--chip); border-radius: 99px; padding: 4px 10px; white-space: nowrap; }
.chips .warn { background: #ffe7c2; }
.chips .out { background: #ffd9d4; }
.card .foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; border-top: 1px dashed #bdbdbd; padding-top: 12px; margin-top: auto; font-size: 15px; flex-wrap: wrap; }
.card .foot a { font-weight: 700; }
.nowrap { white-space: nowrap; }
.strike { text-decoration: line-through; }

/* Tomt läge, info */
.empty { border: 2px dashed var(--ink); border-radius: 16px; padding: 28px; font-size: 17px; }
.empty p { margin: 0 0 12px; }
.dark { background: var(--ink); color: #fff; border-radius: 20px; padding: 28px 32px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; margin-block: 40px 64px; }
.dark h3 { margin: 0 0 6px; font-family: Archivo, sans-serif; font-weight: 800; font-size: 26px; }
.dark p { margin: 0; color: #d4d4d4; }
.dark a { color: #fff; }
.btn-accent { background: var(--accent); color: var(--ink); }
.btn-accent:hover { background: #ffe14d; color: var(--ink); }

/* Tabeller (butiker, status) */
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 12px 10px; border-bottom: 1px solid #e5e5e5; vertical-align: top; }
th { font-size: 13px; color: var(--muted); }
.tablebox { overflow-x: auto; border: 2px solid var(--ink); border-radius: 16px; }
.prose { max-width: 720px; font-size: 17px; }
.prose h2 { font-family: Archivo, sans-serif; font-weight: 800; }

footer.site { border-top: 1px solid #e5e5e5; margin-top: 24px; }
footer.site .wrap { padding-block: 24px; font-size: 14px; color: var(--muted); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
footer.site a { color: var(--muted); }

@media (max-width: 600px) {
  .ticker .row a:nth-of-type(n+5) { display: none; }   /* på mobil: bara de 4 populäraste */
  .hero .wrap { padding-block: 36px 44px; }
  .search { box-shadow: 5px 5px 0 var(--ink); }
  .dark { padding: 22px; }
}
