/* PHU · Analyser av Per Högberg — gemensam stilmall
   Färger och regler enligt grafiskt förslag omgång 2 (märke E). */

@font-face { font-family: "Fira Sans"; font-weight: 300; font-style: normal; font-display: swap; src: url("/assets/fonts/FiraSans-Light.woff") format("woff"); }
@font-face { font-family: "Fira Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url("/assets/fonts/FiraSans-Regular.woff") format("woff"); }
@font-face { font-family: "Fira Sans"; font-weight: 600; font-style: normal; font-display: swap; src: url("/assets/fonts/FiraSans-SemiBold.woff") format("woff"); }

:root {
  --navy: #15213D;
  --ink: #1B2235;
  --ink-2: #2E3A55;
  --grey: #5F6B7A;
  --pale: #DCE4EC;
  --mist: #F2F6F8;
  --amber: #C4701A;
  --teal-bright: #3FD0D4;
  --accent: #00939A;          /* rapportens accentfärg, PHU01 = turkos */
  --accent-dark: #00707A;
  --max: 1080px;
  --text: 720px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: #fff; color: var(--ink);
  font-family: "Fira Sans", -apple-system, "Segoe UI", Arial, sans-serif;
  font-size: 17px; line-height: 1.65; font-weight: 400;
  font-variant-numeric: lining-nums tabular-nums;
}
a { color: var(--accent-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { color: var(--navy); line-height: 1.2; font-weight: 600; margin: 0 0 0.6em; }
h1 { font-size: clamp(2rem, 4.5vw, 3rem); letter-spacing: -0.01em; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.5rem; }
.narrow { max-width: var(--text); }

/* ---------- header ---------- */
.site-header { border-top: 6px solid var(--accent); border-bottom: 1px solid var(--pale); background: #fff; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 76px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 0.75rem; color: var(--navy); }
.brand:hover { text-decoration: none; }
.brand img { width: 40px; height: 40px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-weight: 600; font-size: 1.15rem; letter-spacing: 0.08em; }
.brand-sub { font-size: 0.82rem; color: var(--grey); }
.nav { display: flex; gap: 1.6rem; font-size: 0.98rem; }
.nav a { color: var(--ink-2); padding: 0.3rem 0; border-bottom: 2px solid transparent; }
.nav a:hover { text-decoration: none; border-bottom-color: var(--pale); }
.nav a.active { color: var(--navy); border-bottom-color: var(--accent); font-weight: 600; }

/* ---------- labels ---------- */
.kicker { font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-dark); font-weight: 600; margin-bottom: 0.8rem; display: block; }
.lead { font-size: 1.2rem; color: var(--ink-2); font-weight: 300; }
.muted { color: var(--grey); }

/* ---------- featured report (start page) ---------- */
.feature { padding: 4rem 0 3rem; }
.feature-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 3rem; align-items: center; }
.feature-num { font-weight: 300; font-size: 4.5rem; line-height: 1; color: var(--accent); margin-bottom: 0.4rem; }
.field-panel { background: var(--mist); border-radius: 8px; padding: 1.2rem; }
.actions { display: flex; gap: 0.8rem; flex-wrap: wrap; margin-top: 1.6rem; }
.btn { display: inline-block; padding: 0.7rem 1.2rem; border-radius: 6px; font-weight: 600; font-size: 0.95rem; border: 1.5px solid var(--navy); color: var(--navy); }
.btn:hover { text-decoration: none; background: var(--mist); }
.btn.primary { background: var(--navy); color: #fff; }
.btn.primary:hover { background: var(--ink-2); }

/* ---------- key figures with method tags ---------- */
.figures { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--pale); border: 1px solid var(--pale); border-radius: 8px; overflow: hidden; margin: 2rem 0; }
.figure { background: #fff; padding: 1.2rem 1.2rem 1.1rem; }
.figure .num { font-size: 1.9rem; font-weight: 600; color: var(--navy); line-height: 1.1; margin: 0.5rem 0 0.4rem; }
.figure p { font-size: 0.9rem; color: var(--ink-2); margin: 0; }
.tag { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--grey); }
.tag::before { content: ""; width: 14px; height: 10px; display: inline-block; }
.tag.fakta::before { background: var(--navy); }
.tag.berakning::before { background: #fff; border: 2px solid var(--navy); }
.tag.antagande::before { background: repeating-linear-gradient(45deg, var(--navy) 0 2px, #fff 2px 5px); border: 1px solid var(--navy); }
.tag.scenario::before { background: rgba(0,147,154,0.18); border: 1.5px dashed var(--accent); }
.tag.slutsats::before { background: #fff; border: 1px solid var(--navy); box-shadow: inset 3px 0 0 var(--amber); }

.conclusion { border: 1px solid var(--navy); border-left: 6px solid var(--amber); padding: 1rem 1.2rem; margin: 1.5rem 0; background: #fff; }
.conclusion p:last-child { margin: 0; }

/* ---------- sections ---------- */
.section { padding: 3rem 0; border-top: 1px solid var(--pale); }
.section.tint { background: var(--mist); border-top: none; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; }

/* ---------- report page ---------- */
.report-head { padding: 3rem 0 2rem; }
.report-head .meta-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.report-head .num { font-weight: 300; font-size: 5rem; line-height: 0.9; color: var(--accent); }
.downloads { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 1.5rem 0; }
.dl { border: 1px solid var(--pale); border-radius: 8px; padding: 1rem 1.1rem; color: var(--ink); display: flex; flex-direction: column; gap: 0.2rem; }
.dl:hover { border-color: var(--navy); text-decoration: none; }
.dl .t { font-weight: 600; color: var(--navy); }
.dl .s { font-size: 0.85rem; color: var(--grey); }
.dl .f { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; color: var(--accent-dark); }
.trust { background: var(--mist); border-radius: 8px; padding: 1.4rem 1.6rem; }
.trust dl { display: grid; grid-template-columns: 9.5rem 1fr; gap: 0.55rem 1.2rem; margin: 0; font-size: 0.95rem; }
.trust dt { color: var(--grey); font-weight: 600; }
.trust dd { margin: 0; color: var(--ink); }
.legend { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1rem; margin: 1rem 0; }
.legend div { font-size: 0.9rem; color: var(--ink-2); }
.legend .tag { display: flex; margin-bottom: 0.3rem; color: var(--navy); }
.toc { columns: 2; column-gap: 2.5rem; padding-left: 1.1rem; }
.toc li { break-inside: avoid; margin-bottom: 0.4rem; }
.note { font-size: 0.92rem; color: var(--ink-2); border-left: 3px solid var(--pale); padding-left: 1rem; }

/* ---------- lists ---------- */
.report-list { display: grid; gap: 1rem; }
.report-card { display: grid; grid-template-columns: 7rem 1fr; gap: 1.5rem; border: 1px solid var(--pale); border-top: 4px solid var(--accent); border-radius: 8px; padding: 1.4rem 1.5rem; color: var(--ink); }
.report-card:hover { text-decoration: none; border-color: var(--navy); border-top-color: var(--accent); }
.report-card .num { font-weight: 300; font-size: 3.2rem; line-height: 1; color: var(--accent); }
.report-card h3 { margin-bottom: 0.3rem; }
.report-card .meta { font-size: 0.85rem; color: var(--grey); margin-bottom: 0.5rem; }
.empty { border: 1.5px dashed var(--pale); border-radius: 8px; padding: 2rem; color: var(--grey); text-align: center; }
.breadcrumb { font-size: 0.85rem; color: var(--grey); padding-top: 1.5rem; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--pale); padding: 2rem 0 2.5rem; margin-top: 3rem; font-size: 0.88rem; color: var(--grey); }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

@media (max-width: 820px) {
  .feature-grid, .two-col { grid-template-columns: 1fr; gap: 2rem; }
  .figures { grid-template-columns: 1fr 1fr; }
  .downloads { grid-template-columns: 1fr; }
  .toc { columns: 1; }
  .trust dl { grid-template-columns: 1fr; gap: 0.1rem; }
  .trust dd { margin-bottom: 0.6rem; }
  .report-card { grid-template-columns: 1fr; gap: 0.5rem; }
  .report-head .num { font-size: 3.5rem; }
}
@media (max-width: 520px) { .figures { grid-template-columns: 1fr; } .nav { gap: 1.1rem; } }
