/* Suomalaiset Nettikasinot. Calm information site: navy and blue, a text wordmark like the old logo. */
:root {
  --purple: #2b6cb0;
  --purple-dark: #1f4f86;
  --purple-tint: #e9f0f8;
  --navy: #1f3a5f;
  --ink: #1d2233;
  --muted: #5a6072;
  --bg: #f5f7fa;
  --card: #ffffff;
  --line: #dce3ec;
  --link: #1f5fa3;
  --cta: #d6492a;
  --cta-hover: #b53a1f;
  --tax: #0b6b3a;
  --tax-bg: #e3f4ea;
  --sport: #1f4f8f;
  --sport-bg: #e5eefb;
  --radius: 12px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  overflow-wrap: break-word;
}
img { max-width: 100%; height: auto; }
a { color: var(--link); text-underline-offset: 2px; }
a:hover { color: var(--purple-dark); }
:focus-visible { outline: 3px solid var(--purple); outline-offset: 2px; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; color: var(--navy); }
h1 { font-size: clamp(1.7rem, 5.5vw, 2.6rem); font-weight: 800; letter-spacing: -.01em; hyphens: auto; }
h2 { font-size: clamp(1.4rem, 3.8vw, 1.85rem); font-weight: 800; margin-top: 1.6em; }
h3 { font-size: 1.2rem; font-weight: 750; margin-top: 1.4em; }
p { margin: 0 0 1em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--purple); color: #fff; padding: .6rem 1rem; z-index: 10; }
.skip-link:focus { left: 0; }
.wrap { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 1rem; }
.wrap.narrow { max-width: 760px; }
.preview-strip { background: #ffe58a; color: var(--navy); text-align: center; font-weight: 700; padding: .35rem 1rem; }

/* Header and footer */
.site-header { background: #fff; border-bottom: 4px solid var(--purple); }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .4rem 1.5rem; padding-top: .7rem; padding-bottom: .7rem; }
.brand { display: block; line-height: 0; }
.brand { text-decoration: none; }
.brand-logo { display: inline-flex; flex-direction: column; line-height: 1.05; font-size: 1.45rem; font-weight: 400; letter-spacing: .02em; color: var(--navy); }
.brand-logo span { display: block; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .2rem 1.1rem; }
.nav-link { color: var(--navy); text-decoration: none; font-weight: 650; }
.nav-link:hover, .nav-link[aria-current="page"] { color: var(--purple); text-decoration: underline; }
.site-footer { background: var(--navy); color: #d6daea; margin-top: 3rem; padding: 2.2rem 0 1.6rem; font-size: .95rem; }
.site-footer a { color: #fff; }
.footer-brand { font-weight: 800; font-size: 1.1rem; }
.footer-brand a { text-decoration: none; }
.footer-copy { color: #aab1c8; margin-bottom: 0; }
.badge-18 { display: inline-block; border: 2px solid currentColor; border-radius: 999px; font-weight: 800; font-size: .8rem; padding: 0 .4rem; margin-right: .25rem; }
.crumbs { background: #fff; border-bottom: 1px solid var(--line); }
.breadcrumb { display: flex; flex-wrap: wrap; gap: .4rem; padding-top: .5rem; padding-bottom: .5rem; font-size: .9rem; color: var(--muted); }

/* Buttons */
.btn { display: inline-block; background: var(--cta); color: #fff; font-weight: 750; text-decoration: none; text-align: center; border-radius: 999px; padding: .6rem 1.2rem; line-height: 1.25; white-space: nowrap; }
.btn:hover { background: var(--cta-hover); color: #fff; }
.btn-ghost { background: transparent; color: var(--purple); border: 2px solid var(--purple); }
.btn-ghost:hover { background: var(--purple); color: #fff; }

/* Hero */
.hero { background: linear-gradient(180deg, var(--purple-tint), var(--bg)); padding: 2.2rem 0 1rem; }
.lead { font-size: 1.15rem; }

/* Text pages */
.prose { padding-top: 1.5rem; }
.prose h2:first-child { margin-top: .5em; }
.prose ul { padding-left: 1.3rem; }
.prose li { margin-bottom: .35rem; }
.page-dates { color: var(--muted); font-size: .95rem; }
.article-image { margin: 0 0 1.2rem; }
.article-image img { display: block; width: 100%; max-width: 320px; border-radius: var(--radius); }
@media (min-width: 760px) {
  .article-image { float: right; width: 280px; margin: .3rem 0 1rem 1.5rem; }
  .article-image img { max-width: 100%; }
  .article h2 { clear: none; }
}
.related { clear: both; margin-top: 2.5rem; border-top: 1px solid var(--line); padding-top: .5rem; }
.guides { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.guide { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: .8rem; }
.guide a { text-decoration: none; display: block; }
.guide img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: top; border-radius: 8px; margin-bottom: .6rem; }
.guide-title { display: block; font-weight: 750; color: var(--navy); line-height: 1.3; }
.guide a:hover .guide-title { color: var(--purple); text-decoration: underline; }
.guide p { margin: .4rem 0 0; color: var(--muted); font-size: .92rem; }
.error-page { padding-top: 3rem; padding-bottom: 2rem; }

.toc { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: .8rem 1rem; margin: 0 0 1rem; }
.toc ol { margin: 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 1.2rem; font-size: .95rem; background: var(--card); }
.prose th, .prose td { text-align: left; padding: .5rem .6rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose thead th { color: var(--navy); border-bottom: 2px solid var(--line); }
.glossary dt { font-weight: 750; color: var(--navy); margin-top: 1rem; }
.glossary dd { margin: .2rem 0 0; }
