/* RefineID preview: local typography and assets only. */
:root {
  color-scheme: light dark;
  --paper: #faf9f6;
  --surface: #fff;
  --ink: #192c32;
  --muted: #53656a;
  --line: #d8e1df;
  --accent: #145a50;
  --tint: #e7efeb;
  --button-text: #fff;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  padding: 0 clamp(1.25rem, 5vw, 4rem) 2rem;
  background: var(--paper);
  color: var(--ink);
  font: 1rem/1.65 system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
header, main { max-width: 64rem; margin-inline: auto; }
.bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding-block: 1.6rem;
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: .8rem; }
.wordmark { font-size: 1.5rem; font-weight: 750; letter-spacing: -.065em; }
.beta {
  padding: .15rem .55rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--muted);
  font-size: .7rem;
  font-weight: 650;
  letter-spacing: .06em;
  text-transform: uppercase;
}
a { color: var(--accent); text-underline-offset: .22em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
.langs { display: flex; gap: .25rem; }
.langs a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: .35rem .65rem;
  font-size: .875rem;
  text-decoration: none;
  color: var(--muted);
  border-radius: 5px;
}
.langs a:hover, .langs [aria-current="true"] { background: var(--tint); color: var(--accent); }
.langs [aria-current="true"] { font-weight: 650; }
h1 {
  max-width: 15ch;
  margin: 4.8rem 0 1.6rem;
  font: 400 clamp(2.6rem, 6.4vw, 5rem)/1.07 Georgia, serif;
  letter-spacing: -.045em;
  text-wrap: balance;
}
.tagline { max-width: 42rem; margin: 0 0 1.6rem; font-size: clamp(1.25rem, 2.4vw, 1.65rem); line-height: 1.4; color: var(--ink); }
.lede { max-width: 39rem; margin: 0; font-size: 1rem; color: var(--muted); }
.card-note { max-width: 42rem; color: var(--muted); font-size: .9rem; margin-block: 1.1rem 1.5rem; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-block: 1.6rem 4.8rem; }
.cta {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: .8rem 1.15rem;
  min-height: 48px;
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 6px;
  color: var(--button-text);
  text-decoration: none;
  font-size: .94rem;
  font-weight: 650;
}
.cta:hover { filter: brightness(1.12); text-decoration: none; }
.cta.secondary { background: transparent; color: var(--accent); border-color: var(--line); }
.cta.secondary:hover { background: var(--tint); }
h2 { font-size: 1.55rem; line-height: 1.3; letter-spacing: -.025em; margin: 0 0 .6rem; }
table { width: 100%; border-collapse: collapse; margin: 0; }
caption { text-align: left; color: var(--muted); font-size: .85rem; padding-bottom: 1.5rem; }
thead th {
  text-align: left;
  font-size: .76rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--muted);
  padding: .75rem 1rem;
  border-block: 1px solid var(--line);
}
tbody th, tbody td { text-align: left; padding: 1.15rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
tbody th { width: 34%; font-weight: 600; }
tbody td { font-size: .94rem; }
tbody tr:hover { background: var(--surface); }
td small { display: block; margin-top: .25rem; font-size: .8rem; color: var(--muted); }
footer { margin-top: 3rem; padding-top: 1rem; }
footer ul { display: flex; flex-wrap: wrap; gap: .2rem 1.6rem; list-style: none; padding: 0; margin: 0; }
footer a { display: inline-block; padding-block: .6rem; font-size: .8rem; color: var(--muted); }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.skip { position: absolute; top: -10rem; left: 1rem; padding: 1rem; background: var(--surface); z-index: 2; }
.skip:focus { top: 1rem; }
.language-name { margin-top: 4rem; padding-top: 2rem; border-top: 1px solid var(--line); color: var(--muted); }
html.js .language-name { display: none; }
html.js main > section[data-lang] { display: none; }
html.js[data-show="fi"] main > section[data-lang="fi"],
html.js[data-show="sv"] main > section[data-lang="sv"],
html.js[data-show="en"] main > section[data-lang="en"] { display: block; }
@media (max-width: 36rem) {
  h1 { margin-top: 3rem; }
  .actions { margin-bottom: 3rem; }
  tbody th, tbody td { padding: 1rem .4rem; }
  thead th { padding-inline: .4rem; }
  tbody th { width: 37%; }
  footer ul { gap: 0 1.2rem; }
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #142025;
    --surface: #1b2a30;
    --ink: #f1f3ed;
    --muted: #b0c1c4;
    --line: #35484d;
    --accent: #b3dfcf;
    --tint: #253e3c;
    --button-text: #142025;
  }
}
