/* Metodai Nyheter — magasinlayout (hero + rutnät), mörkblå + orange */
:root {
  --bg: #eef1f6;
  --ink: #141a26;
  --muted: #64748b;
  --faint: #94a3b8;
  --line: #e4e9f0;
  --navy: #141a26;
  --navy-2: #1e2636;
  --orange: #f5a623;
  --orange-ink: #b8770f;
  --card: #ffffff;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--bg); color: var(--ink); line-height: 1.55;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
a { color: inherit; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* ===== METODAI HEADER (samma stil överallt) ===== */
.top{background:#141a26;color:#fff;position:sticky;top:0;z-index:20;box-shadow:0 1px 0 rgba(255,255,255,.04),0 6px 18px rgba(10,15,30,.18)}
.top .wrap{display:flex;align-items:center;gap:16px;padding-top:15px}
.logo{font-size:23px;font-weight:800;color:#fff;text-decoration:none;letter-spacing:.2px;display:inline-flex;align-items:baseline;gap:5px}
.logo span{color:#f5a623}
.langs{margin-left:auto;display:flex;gap:2px}
.langs a{color:#aeb9cb;text-decoration:none;font-size:12px;font-weight:700;letter-spacing:.4px;padding:4px 8px;border-radius:7px;cursor:pointer}
.langs a:hover{color:#fff}.langs a.active{color:#2a1c00;background:#f5a623}
.search{flex:0 1 230px}
.search input{width:100%;border:1px solid #2c364a;border-radius:999px;padding:9px 16px;font-size:14px;background:#1e2636;color:#fff}
.search input::placeholder{color:#8a97ad}
.search input:focus{outline:none;border-color:#f5a623;background:#232c3f}
.cats{display:flex;gap:2px;padding-top:12px;overflow-x:auto;scrollbar-width:none}
.cats::-webkit-scrollbar{display:none}
.cats a{color:#aeb9cb;text-decoration:none;font-size:14px;font-weight:600;padding:11px 14px 13px;white-space:nowrap;border-bottom:3px solid transparent}
.cats a:hover{color:#fff}.cats a.active{color:#fff;border-bottom-color:#f5a623}
.cats .count{margin-left:auto;align-self:center;white-space:nowrap;flex:none;color:#f5a623;font-size:12px;font-weight:700;background:rgba(245,166,35,.12);border:1px solid rgba(245,166,35,.3);border-radius:999px;padding:4px 12px}
@media(max-width:600px){.search{flex-basis:120px}}
/* ===== slut header ===== */

/* ---------- Verktygsrad (sortering/filter) ---------- */
.toolbar-bar { background: #fff; border-bottom: 1px solid var(--line); }
.toolbar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
.toolbar label { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .3px; }
.toolbar select {
  font: inherit; font-size: 13px; font-weight: 600; text-transform: none; letter-spacing: 0;
  color: var(--ink); background: #f4f6f9; border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 28px 6px 12px; cursor: pointer; appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6'><path d='M0 0l5 6 5-6z' fill='%2364748b'/></svg>");
  background-repeat: no-repeat; background-position: right 11px center;
}
.toolbar select:focus { outline: none; border-color: var(--orange); }
.toolbar .chk { text-transform: none; letter-spacing: 0; font-weight: 600; color: var(--ink); cursor: pointer; }
.toolbar .chk input { accent-color: var(--orange); width: 15px; height: 15px; }
.toolbar button { font: inherit; font-weight: 700; background: var(--orange); color: #2a1c00; border: 0; border-radius: 999px; padding: 7px 16px; cursor: pointer; }
@media (max-width: 560px) { .toolbar { gap: 10px; } .toolbar label { font-size: 11px; } }

.note { color: var(--muted); font-size: 14px; margin: 20px 0 0; }
.empty { color: var(--faint); text-align: center; padding: 60px 0; }

/* ---------- Topnyhet (hero) ---------- */
.topstory {
  display: grid; grid-template-columns: 1.25fr 1fr; gap: 0;
  background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  overflow: hidden; text-decoration: none; color: inherit; margin: 22px 0 26px;
  transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease;
}
.topstory:hover { transform: translateY(-2px); border-color: #d6deea; box-shadow: 0 16px 38px rgba(20,26,38,.12); }
.topstory-img { overflow: hidden; min-height: 280px; background: #eef2f6; }
.topstory-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.topstory:hover .topstory-img img { transform: scale(1.04); }
.topstory-body { padding: 26px 30px; display: flex; flex-direction: column; justify-content: center; }
.topstory-title { font-size: 30px; line-height: 1.2; letter-spacing: -.5px; margin: 10px 0 12px; font-weight: 800; }
.topstory:hover .topstory-title { color: var(--orange-ink); }
.topstory-excerpt {
  font-size: 15px; color: #51607a; line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
}

/* ---------- Rutnät ---------- */
.grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
  padding-bottom: 8px;
}
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease;
}
.card:hover { transform: translateY(-3px); border-color: #d6deea; box-shadow: 0 12px 28px rgba(20,26,38,.11); }
.card-img { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #eef2f6; }
.card-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.card:hover .card-img img { transform: scale(1.05); }
.card-img .badge {
  position: absolute; top: 10px; left: 10px; background: rgba(20,26,38,.82); color: #fff;
  font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; backdrop-filter: blur(2px);
}
.card-body { padding: 13px 15px 15px; display: flex; flex-direction: column; flex: 1; }

/* Meta: kategori överst, källa/tid/källor underst */
.meta-top { margin-bottom: 9px; }
.meta-bottom { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.card .meta-bottom { margin-top: auto; padding-top: 11px; border-top: 1px solid var(--line); }
.topstory .meta-bottom { margin-top: 16px; }
.src { font-weight: 700; color: var(--ink); }
.dot { color: #cbd5e1; }
.time { color: var(--muted); }
.sources {
  display: inline-flex; align-items: center; gap: 3px; background: #fff3e0; color: var(--orange-ink);
  border-radius: 999px; padding: 2px 9px; font-weight: 700; font-size: 11px;
}
.cat { display: inline-block; background: #eef2f6; color: #56627a; border-radius: 999px; padding: 3px 11px; font-weight: 600; font-size: 11px; }
.card .title { font-size: 16px; font-weight: 700; line-height: 1.34; letter-spacing: -.1px; }
.card .title a { color: var(--ink); text-decoration: none; }
.card:hover .title a { color: var(--orange-ink); }
.card .excerpt {
  font-size: 13px; color: #51607a; margin-top: 7px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .topstory { grid-template-columns: 1fr; }
  .topstory-img { min-height: 0; aspect-ratio: 16 / 9; }
  .topstory-body { padding: 20px 22px 24px; }
  .topstory-title { font-size: 25px; }
}
@media (max-width: 560px) {
  .grid { grid-template-columns: 1fr; }
  .topstory-title { font-size: 22px; }
}

/* ---------- Detaljsida ---------- */
.article { max-width: 760px; padding: 24px 0 56px; }
.article .back { margin-bottom: 14px; }
.article .back a { color: var(--orange-ink); text-decoration: none; font-weight: 600; font-size: 14px; }
.article .back a:hover { text-decoration: underline; }
.article .meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 13px; margin-bottom: 10px; }
.article h1 { font-size: 32px; line-height: 1.2; letter-spacing: -.5px; margin-bottom: 16px; }
.article .hero { width: 100%; max-height: 440px; object-fit: cover; border-radius: 16px; margin-bottom: 18px; }
.article .lead { font-size: 18px; line-height: 1.6; color: #334155; margin-bottom: 20px; font-weight: 500; }
.article .fulltext { margin-bottom: 24px; }
.article .fulltext p { font-size: 17px; line-height: 1.72; color: #283342; margin-bottom: 16px; }
.article .fulltext p:last-child { margin-bottom: 0; }
.article .readmore {
  display: inline-block; background: var(--orange); color: #2a1c00; font-weight: 800;
  text-decoration: none; padding: 12px 24px; border-radius: 11px;
  box-shadow: 0 6px 16px rgba(245,166,35,.32); transition: transform .12s, box-shadow .12s;
}
.article .readmore:hover { transform: translateY(-1px); box-shadow: 0 9px 22px rgba(245,166,35,.40); }
.sources-box { margin-top: 28px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px; }
.sources-box h3 { font-size: 13px; color: var(--orange-ink); margin-bottom: 10px; text-transform: uppercase; letter-spacing: .4px; }
.sources-box ul { list-style: none; }
.sources-box li { padding: 8px 0; border-bottom: 1px solid #f1f5f9; display: flex; align-items: center; gap: 8px; }
.sources-box li:last-child { border: 0; padding-bottom: 0; }
.sources-box a { color: var(--ink); text-decoration: none; font-weight: 600; }
.sources-box a:hover { color: var(--orange-ink); text-decoration: underline; }
.sources-box .time { color: var(--faint); font-size: 12px; margin-left: auto; }
.disclaimer { margin-top: 26px; font-size: 12px; color: var(--faint); line-height: 1.6; }

/* ---------- Visa fler / footer ---------- */
.more { text-align: center; padding: 26px 0 36px; }
.more a {
  display: inline-block; background: var(--card); color: var(--ink); text-decoration: none;
  font-weight: 700; padding: 11px 28px; border-radius: 999px; border: 1px solid var(--line);
  transition: border-color .14s, box-shadow .14s, transform .12s;
}
.more a:hover { border-color: var(--orange); box-shadow: 0 6px 16px rgba(20,26,38,.08); transform: translateY(-1px); }
.foot { color: var(--faint); font-size: 12px; padding: 24px 0 44px; text-align: center; line-height: 1.7; }
.foot a { color: var(--muted); font-weight: 600; }
.page { max-width: 760px; padding: 32px 0; }
.page h1 { margin-bottom: 16px; font-size: 26px; }
.page p { margin-bottom: 12px; color: #334155; }
