/* Population Decides site styles: home, Learn pages, privacy. Same system as the game. */
@import url("/fonts/fonts.css");
:root {
  --paper: #FFFFFF; --card: #FFFFFF; --ink: #141414; --muted: #5C5A55; --line: #E1DED7; --tint: #F6F5F1;
  --red: #B3121D; --red-soft: #F8ECEC; --left: #B3121D; --right: #1F4E9A; --ok: #0B6B3A; --err: #A3201A;
  --display: "Libre Caslon Display", "Libre Caslon Text", Georgia, serif;
  --head: "Libre Caslon Text", Georgia, serif;
  --body: "Schibsted Grotesk", "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mark: url("/mark.svg");
}
@media all {
  :root[data-theme="dark"] { --paper: #121212; --card: #1C1C1B; --tint: #181817; --ink: #F1EFEA; --muted: #A9A69F; --line: #34322E;
    --red: #E5484D; --red-soft: #2A1718; --left: #F0727E; --right: #7FA6E8; --ok: #5DBB85; --err: #F07A70; --mark: url("/mark-dark.svg") }
}
*, *::before, *::after { box-sizing: border-box }
html { -webkit-text-size-adjust: 100% }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 18px/1.6 var(--body) }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px }
a:hover { color: var(--red) }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px }

/* Masthead */
.mast { background: var(--card); border-bottom: 1px solid var(--line) }
.mast .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 400 26px/1 var(--display); letter-spacing: -.01em; color: var(--ink) }
.brand::before { content: ""; width: 30px; height: 30px; background: var(--mark) center/contain no-repeat; flex: none }
.brand:hover { color: var(--ink) }
.nav { display: flex; align-items: center; gap: 22px; font-size: 16px; font-weight: 500 }
.nav a { text-decoration: none } .nav a:hover { text-decoration: underline }
.nav .hide-s { display: none }
@media (min-width: 720px) { .nav .hide-s { display: inline } }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 4px;
  background: var(--ink); color: var(--paper); font: 600 17px/1 var(--body); text-decoration: none; border: 0; cursor: pointer }
.btn:hover { background: var(--red); color: #fff }
.btn.small { min-height: 38px; padding: 0 16px; font-size: 15px }
.btn.ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--ink) }
.btn.ghost:hover { border-color: var(--red); color: var(--red); background: transparent }

/* Type */
h1, h2, h3 { color: var(--ink) }
.kicker { color: var(--red); font-weight: 600; font-size: 15px; margin: 0 0 10px }

/* Footer */
.foot { border-top: 1px solid var(--line); padding: 28px 0 44px; color: var(--muted); font-size: 15px }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px }
.foot b { color: var(--ink); font-weight: 600 }

/* Forms */
.field { display: block; font-weight: 600; margin: 0 0 8px }
input[type=email] { width: 100%; min-height: 52px; padding: 0 14px; font: inherit; color: var(--ink); background: var(--card);
  border: 1.5px solid var(--ink); border-radius: 4px }
input[type=email]:focus { outline: 3px solid var(--red); outline-offset: 1px }
.consent { display: flex; gap: 12px; align-items: flex-start; margin: 14px 0 18px; font-size: 15px; color: var(--muted) }
.consent input { width: 20px; height: 20px; margin: 3px 0 0; flex: none; accent-color: var(--red) }
.status { min-height: 1.5em; margin: 12px 0 0; font-weight: 600; font-size: 16px } .status.ok { color: var(--ok) } .status.err { color: var(--err) }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0 }

/* Dateline, section bar, poll strip, theme toggle */
.topline { border-bottom: 1px solid var(--line); font-size: 13px; color: var(--muted) }
.topline .wrap { display: flex; align-items: center; gap: 6px 18px; min-height: 40px; flex-wrap: wrap }
.topline b { color: var(--ink); font-weight: 600 } .topline .trust { flex: 1 1 auto }
@media (max-width: 640px) { .topline .trust { display: none } .topline .wrap { justify-content: space-between } }
.themebtn { background: none; border: 1px solid var(--line); border-radius: 999px; padding: 3px 12px; font: 500 13px var(--body); color: var(--ink); cursor: pointer; min-height: 28px }
.themebtn:hover { border-color: var(--ink) }
.sections { border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line); background: var(--card) }
.sections .wrap { display: flex; gap: 4px 26px; overflow-x: auto; scrollbar-width: none; white-space: nowrap; min-height: 46px; align-items: center; font-weight: 600; font-size: 15.5px }
.sections a { text-decoration: none } .sections a:hover { color: var(--red) }
.sections a.on { color: var(--red) }
.pollstrip { background: var(--tint); border-bottom: 1px solid var(--line); font-size: 15px }
.pollstrip .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 20px; min-height: 44px; padding-top: 6px; padding-bottom: 6px }
.pollstrip b { font-weight: 600 } .pollstrip span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap }
.pollstrip i { width: 10px; height: 10px; border-radius: 2px } .pollstrip small { color: var(--muted); font-size: 13px; margin-left: auto }
@media (max-width: 640px) { .pollstrip .wrap { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; font-size: 14px } .pollstrip small { display: none } }
