/* ── Flygnews.se – Stilmall ──────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:    #1a3560;
  --navy-dk: #122444;
  --navy-lt: #2a4f8a;
  --orange:  #e8781e;
  --orange-lt: #f5924a;
  --gray:    #f5f6f8;
  --muted:   #6b7280;
  --border:  #e2e5ea;
  --text:    #1a1f2e;
  --max:     1200px;
}

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  color: var(--text);
  background: #fff;
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.container, .about-section, .article-wrap { flex: 1; }

a { color: inherit; text-decoration: none; }
a:hover { color: var(--orange); }
img { display: block; width: 100%; }

/* ── Topprad ─────────────────────────────────────────────────── */
.topbar {
  background: var(--navy-dk);
  color: rgba(255,255,255,.7);
  font-size: 11px;
  letter-spacing: .4px;
  padding: 5px 0;
}
.topbar-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.topbar a { color: rgba(255,255,255,.6); transition: color .15s; }
.topbar a:hover { color: var(--orange); }

/* ── Header ──────────────────────────────────────────────────── */
header {
  background: #fff;
  border-bottom: 3px solid var(--navy);
  padding: 16px 24px;
}
.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

/* Logotyp */
.masthead { display: flex; align-items: center; gap: 10px; }
.logo-img {
  height: 62px; width: auto;
  flex-shrink: 0;
}
.masthead-text { display: flex; flex-direction: column; justify-content: center; }
.masthead-name {
  font-family: 'Segoe UI', Arial Black, Arial, sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -1px;
  line-height: 1;
}
.masthead-name span { color: var(--orange); }
.masthead-tagline {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: .8px;
  text-transform: uppercase;
  margin-top: 3px;
}
.header-date {
  font-size: 12px;
  color: var(--muted);
  text-align: right;
}

/* ── Nav ─────────────────────────────────────────────────────── */
nav {
  background: var(--navy);
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  gap: 0;
}
.nav-inner a {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .6px;
  padding: 11px 18px;
  color: rgba(255,255,255,.75);
  border-bottom: 3px solid transparent;
  transition: color .15s, border-color .15s;
  display: block;
}
.nav-inner a:hover,
.nav-inner a.active {
  color: #fff;
  border-bottom-color: var(--orange);
}

/* ── Breaking banner ─────────────────────────────────────────── */
.breaking-bar {
  background: var(--orange);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .5px;
  padding: 6px 0;
  text-align: center;
}

/* ── Layout ──────────────────────────────────────────────────── */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px 24px 64px;
}

/* ── Sektion-label ───────────────────────────────────────────── */
.section-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
}
.section-label::after {
  content: '';
  flex: 1;
  height: 2px;
  background: var(--border);
}
.section-label::before {
  content: '';
  width: 18px; height: 3px;
  background: var(--orange);
  border-radius: 2px;
}

/* ── Hero ────────────────────────────────────────────────────── */
.hero {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 32px;
  margin-bottom: 44px;
  align-items: start;
}
@media (max-width: 820px) { .hero { grid-template-columns: 1fr; } }

.hero-image { position: relative; border-radius: 4px; overflow: hidden; }
.hero-image img { aspect-ratio: 16/9; object-fit: cover; }
.hero-image a.category-tag, .hero-image .category-tag {
  position: absolute; top: 14px; left: 14px;
  background: var(--orange); color: #fff;
  font-size: 10px; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase;
  padding: 4px 10px; border-radius: 3px;
}

.hero-text {}
.hero-text .kicker {
  font-size: 11px; font-weight: 700;
  color: var(--orange); text-transform: uppercase; letter-spacing: 1px;
  margin-bottom: 10px;
}
.hero-text h2 {
  font-size: 1.85rem; line-height: 1.25;
  font-weight: 700; margin-bottom: 14px;
  color: var(--navy-dk);
}
.hero-text h2 a:hover { color: var(--orange); }
.hero-text .excerpt {
  font-size: .93rem; color: #4a5568; line-height: 1.7; margin-bottom: 16px;
}
.hero-text .meta-line {
  font-size: 12px; color: var(--muted);
  display: flex; gap: 10px; align-items: center;
  border-top: 1px solid var(--border); padding-top: 12px;
}
.hero-text .meta-line .source { font-weight: 700; color: var(--navy); }
.read-more {
  display: inline-block; margin-top: 16px;
  background: var(--navy); color: #fff;
  font-size: 12px; font-weight: 600;
  padding: 8px 18px; border-radius: 3px;
  letter-spacing: .4px;
  transition: background .15s;
}
.read-more:hover { background: var(--orange); color: #fff; }

/* ── Kortgrid ────────────────────────────────────────────────── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 48px;
}
@media (max-width: 900px) { .card-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px) { .card-grid { grid-template-columns: 1fr; } }

.card { display: flex; flex-direction: column; }
.card-img {
  position: relative; overflow: hidden;
  border-radius: 4px; margin-bottom: 14px;
}
.card-img img {
  aspect-ratio: 3/2; object-fit: cover;
  transition: transform .35s ease;
}
.card:hover .card-img img { transform: scale(1.04); }
.card-img a.category-tag, .card-img .category-tag {
  position: absolute; bottom: 10px; left: 10px;
  background: var(--navy); color: #fff;
  font-size: 9px; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase;
  padding: 3px 8px; border-radius: 3px;
}
.card h3 {
  font-size: 1rem; font-weight: 700; line-height: 1.35;
  color: var(--navy-dk); margin-bottom: 8px;
}
.card h3 a:hover { color: var(--orange); }
.card .excerpt {
  font-size: .84rem; color: #555; line-height: 1.6;
  flex: 1; margin-bottom: 12px;
}
.card .meta-line {
  font-size: 11px; color: var(--muted);
  border-top: 1px solid var(--border); padding-top: 10px;
}
.card .meta-line .source { font-weight: 700; color: var(--navy-lt); }

/* ── Artikelsida ─────────────────────────────────────────────── */
.article-header { margin-bottom: 28px; }
.article-kickers { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.article-kicker, a.article-kicker {
  display: inline-block;
  background: var(--orange); color: #fff;
  text-decoration: none;
  margin-bottom: 0;
  font-size: 10px; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase;
  padding: 3px 10px; border-radius: 3px;
  margin-bottom: 14px;
}
.article-header h1 {
  font-size: 2.3rem; font-weight: 800;
  line-height: 1.2; color: var(--navy-dk);
  margin-bottom: 16px;
}
.article-meta {
  font-size: 12px; color: var(--muted);
  display: flex; gap: 16px; align-items: center;
  padding: 12px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 28px;
}
.article-meta .source { font-weight: 700; color: var(--navy); }
.article-meta .updated { color: var(--muted); font-style: italic; }

.article-body { max-width: 700px; }
.article-body figure { margin: 0 0 32px; }
.article-body figure.inline-figure { margin: 28px 0; }
.article-body figure.inline-figure img {
  width: 100%; border-radius: 4px; object-fit: cover;
  box-shadow: 0 2px 12px rgba(0,0,0,.1);
  aspect-ratio: unset; max-height: 480px;
}
.article-body figure img {
  border-radius: 4px; aspect-ratio: 16/9; object-fit: cover;
  box-shadow: 0 2px 12px rgba(0,0,0,.1);
}
.article-body figcaption {
  font-size: 11px; color: var(--muted);
  margin-top: 7px; line-height: 1.5;
}
.article-body figcaption a { color: var(--muted); text-decoration: underline; }
.article-body p {
  margin-bottom: 22px; font-size: 1.05rem;
  line-height: 1.85; color: #2d3748;
}
.article-body p.lasmer {
  font-size: .88rem;
  border-top: 2px solid var(--border); padding-top: 16px;
  margin-top: 32px; color: var(--muted);
}
.article-body p.lasmer a { color: var(--navy); text-decoration: underline; }
.article-body p.lasmer a:hover { color: var(--orange); }

.article-tags { display: flex; flex-wrap: wrap; gap: 7px; margin: 18px 0 4px; }
.article-tag {
  display: inline-block;
  background: #eef2fa; color: var(--navy);
  font-size: 11px; font-weight: 700;
  letter-spacing: .4px; padding: 3px 10px;
  border-radius: 20px; border: 1px solid #c7d3ec;
}

.draft-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: #fff8e6; border: 1px solid #f6c935;
  color: #8a6400; font-size: 11px; font-weight: 700;
  padding: 5px 12px; border-radius: 4px;
  margin-bottom: 20px; letter-spacing: .3px;
}
.draft-badge::before { content: '⚠'; font-size: 12px; }

/* ── Relaterade artiklar ─────────────────────────────────────── */
.related-section {
  margin-top: 52px;
  padding-top: 32px;
  border-top: 2px solid var(--border);
  max-width: 860px;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 20px;
}
@media (max-width: 700px) { .related-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 460px) { .related-grid { grid-template-columns: 1fr; } }

.related-card { display: flex; flex-direction: column; }
.related-card-img {
  overflow: hidden; border-radius: 4px;
  margin-bottom: 10px;
}
.related-card-img img {
  aspect-ratio: 3/2; object-fit: cover; width: 100%;
  transition: transform .35s ease;
}
.related-card:hover .related-card-img img { transform: scale(1.04); }
.related-card h4 {
  font-size: .9rem; font-weight: 700; line-height: 1.35;
  color: var(--navy-dk); margin-bottom: 6px; flex: 1;
}
.related-card h4 a:hover { color: var(--orange); }
.related-card .related-meta {
  font-size: 11px; color: var(--muted);
  border-top: 1px solid var(--border); padding-top: 8px;
  margin-top: auto;
}
.related-card .related-cat {
  display: inline-block;
  background: var(--orange); color: #fff;
  font-size: 9px; font-weight: 700;
  letter-spacing: .8px; text-transform: uppercase;
  padding: 2px 7px; border-radius: 3px;
  margin-bottom: 7px;
}

/* ── Sidfot ──────────────────────────────────────────────────── */
footer {
  background: var(--navy-dk);
  color: rgba(255,255,255,.6);
  font-size: 12px;
  padding: 32px 24px;
  margin-top: 40px;
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-logo {
  font-family: 'Segoe UI', Arial Black, sans-serif;
  font-size: 1.5rem; font-weight: 800; color: #fff;
  letter-spacing: -0.5px;
}
.footer-logo span { color: var(--orange); }
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: rgba(255,255,255,.5); transition: color .15s; }
.footer-links a:hover { color: var(--orange); }
