/* The small pages (confirmation, unsubscribe, privacy notice, legal notice, news): the main page's
   tokens, one reading column. Keep the colours in step with index.html. */
:root {
  --surface: #F4F5F7; --panel: #FFFFFF; --subtle: #EEF0F3; --line: #DDE1E7; --line-strong: #C5CCD6;
  --ink: #1A2230; --muted: #536074; --accent: #0B3D91; --accent-hover: #082F70; --on-accent: #FFFFFF;
  --mint-ink: #00634F; --wordmark: #0B2A5C;
  --ok-bg: #E3F4E8; --ok-ink: #14532D; --warn-bg: #FDF2D4; --warn-ink: #7A3D06; --danger: #C0301F;
  --sans: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --surface: #0E131A; --panel: #161C25; --subtle: #1E2631; --line: #2B3441; --line-strong: #3A4555;
    --ink: #E5E9EF; --muted: #A0ABBA; --accent: #7BA4F0; --accent-hover: #9CBCF5; --on-accent: #04163A;
    --mint-ink: #8EEAD8; --wordmark: #E5E9EF;
    --ok-bg: #12351F; --ok-ink: #A6E3BB; --warn-bg: #3D2C0A; --warn-ink: #F6D38A; --danger: #E5584A;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --surface: #0E131A; --panel: #161C25; --subtle: #1E2631; --line: #2B3441; --line-strong: #3A4555;
  --ink: #E5E9EF; --muted: #A0ABBA; --accent: #7BA4F0; --accent-hover: #9CBCF5; --on-accent: #04163A;
  --mint-ink: #8EEAD8; --wordmark: #E5E9EF;
  --ok-bg: #12351F; --ok-ink: #A6E3BB; --warn-bg: #3D2C0A; --warn-ink: #F6D38A; --danger: #E5584A;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--sans); font-size: 1.0625rem; line-height: 1.6;
  color: var(--ink); background: var(--surface); -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { margin: 0; font-weight: 600; line-height: 1.15; letter-spacing: -0.01em; text-wrap: balance; }
p, ul, ol, dl, dd { margin: 0; }

.wrap {
  width: 100%; max-width: 760px; margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.site-head { border-bottom: 1px solid var(--line); background: var(--panel); }
.site-head .wrap { display: flex; align-items: center; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--wordmark); text-decoration: none; font-weight: 600; font-size: 1.3rem; }
.brand:hover { color: var(--wordmark); }
.brand svg { width: 32px; height: 32px; }

main { padding-block: clamp(40px, 7vw, 72px) 64px; }
.card { display: grid; gap: 18px; padding: clamp(22px, 4vw, 32px); background: var(--panel); border: 1px solid var(--line); border-radius: 16px; }
.card h1 { font-size: clamp(1.75rem, 3.5vw, 2.25rem); }
.muted { color: var(--muted); }
.status { padding: 12px 14px; border-radius: 10px; font-weight: 600; }
.status.ok { background: var(--ok-bg); color: var(--ok-ink); }
.status.warn { background: var(--warn-bg); color: var(--warn-ink); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 11px 20px;
  font: inherit; font-weight: 600; font-size: 1rem; line-height: 1.2; border-radius: 10px; border: 1px solid transparent;
  text-decoration: none; cursor: pointer; justify-self: start;
}
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); color: var(--on-accent); }
.btn-primary:disabled { opacity: 0.6; cursor: default; }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }

/* Legal text */
.doc { display: grid; gap: 14px; }
.doc h1 { font-size: clamp(1.9rem, 4vw, 2.5rem); margin-bottom: 6px; }
.doc h2 { font-size: 1.3rem; margin-top: 22px; }
.doc ul { padding-left: 1.3em; display: grid; gap: 6px; }
.doc table { width: 100%; border-collapse: collapse; font-size: 0.97rem; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 9px 10px; border-bottom: 1px solid var(--line); }
.doc th { font-weight: 600; width: 34%; }
.table-scroll { overflow-x: auto; }
.todo { background: var(--warn-bg); color: var(--warn-ink); padding: 1px 6px; border-radius: 6px; font-weight: 600; }

/* News (hirek/, en/news/; built by news/build.py) */
.head-links { margin-left: auto; display: flex; flex-wrap: wrap; gap: 4px 18px; font-weight: 600; }
.head-links a { text-decoration: none; }
.head-links a:hover { text-decoration: underline; }
.crumbs { margin-bottom: 14px; color: var(--muted); font-size: 0.9375rem; }
.crumbs a { color: var(--muted); }
.kicker { display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--mint-ink); font-size: 0.875rem; font-weight: 600; letter-spacing: 0.02em; text-transform: uppercase; }
.lead { font-size: 1.1875rem; line-height: 1.5; }
.news-article h1 { margin-bottom: 0; }
.lesson { display: grid; gap: 10px; margin-top: 10px; padding: 18px 20px; background: var(--subtle); border-left: 4px solid var(--accent); border-radius: 10px; }
.doc .lesson h2 { margin-top: 0; font-size: 1.15rem; }
.sources { overflow-wrap: anywhere; font-size: 0.97rem; }
.note { font-size: 0.9375rem; margin-top: 8px; }
/* The topic filter: radio buttons drawn as their labels; the per-topic rules are in the page. */
.news-index { position: relative; }
.news-index > input[type="radio"] { position: absolute; top: 0; left: 0; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
.news-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.news-filter label {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 7px 14px;
  border: 1px solid var(--line-strong); border-radius: 999px; font-size: 0.95rem; font-weight: 600;
  line-height: 1.2; cursor: pointer; user-select: none;
}
.news-filter label:hover { border-color: var(--accent); }
.news-filter .n { font-weight: 400; opacity: 0.75; }
.news-habit p { display: none; padding: 12px 16px; background: var(--subtle); border-left: 4px solid var(--accent); border-radius: 10px; font-weight: 600; }
.news-list { list-style: none; padding: 0 !important; display: grid; gap: 0 !important; }
.news-list li { display: grid; gap: 4px; padding-block: 16px; border-bottom: 1px solid var(--line); }
.doc .news-list h2 { margin-top: 0; font-size: 1.15rem; line-height: 1.3; }
.news-list h2 a { text-decoration: none; }
.news-list h2 a:hover { text-decoration: underline; }

.foot { border-top: 1px solid var(--line); padding-block: 28px 40px; color: var(--muted); font-size: 0.9375rem; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot a { color: var(--muted); }

/* The legal pages: the provider's data behind a "show" button (assets/reveal.js) */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.secret { position: relative; display: inline-block; min-height: 1.35em; vertical-align: top; max-width: 100%; }
.secret::after {
  content: ""; position: absolute; inset: 0.12em 0; border-radius: 4px; background: #0B2A5C; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  transform-origin: right center; transition: transform .6s cubic-bezier(.65, 0, .2, 1); transition-delay: var(--d, 0s);
}
.secret.is-open::after { transform: scaleX(0); }
.reveal-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 4px; }
.reveal-btn { gap: 8px; min-height: 40px; padding: 8px 16px; font-size: 0.95rem; }
.reveal-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.reveal-btn.is-done { opacity: 0; pointer-events: none; transition: opacity .4s ease .5s; }
@media (prefers-reduced-motion: reduce) { .secret::after, .reveal-btn.is-done { transition: none; } }
