/* Pikakasinot.fi — teema hyväksytystä ulkoasuluonnoksesta (CAS-2026-11-09-002). Värit logosta: sininen P ja oranssinkeltainen reunus. */
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 500 900; font-display: swap; src: url("/assets/fonts/montserrat-latin-var.woff2") format("woff2"); }
@font-face { font-family: "Cabin"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("/assets/fonts/cabin-latin-var.woff2") format("woff2"); }

:root {
  --pk-blue: #1670b8;
  --pk-blue-deep: #0f4f85;
  --pk-sky: #2ba6e0;
  --pk-sun: #ffb81c;
  --pk-sun-deep: #e8930c;
  --pk-sun-soft: #fff5d9;
  --pk-ink: #172631;
  --pk-text: #26313a;
  --pk-muted: #5b6874;
  --pk-line: #dfe7ef;
  --pk-bg: #fbfcfe;
  --pk-header: #eef6fe;
  --pk-band: #f2f7fc;
  --pk-cta: #009b5f;
  --pk-cta-edge: #00744a;
  --pk-cta-hover: #00ad6a;
  --pk-radius: 16px;
  --pk-shadow: 0 1px 2px rgba(23, 38, 49, .06), 0 8px 24px rgba(23, 38, 49, .08);
  --pk-max: 1180px;
  --pk-read: 760px;
  --pk-head: "Montserrat", "Segoe UI", Arial, sans-serif;
  --pk-body: "Cabin", "Segoe UI", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--pk-bg); color: var(--pk-text); font: 17px/1.6 var(--pk-body); }
img { max-width: 100%; height: auto; }
a { color: var(--pk-blue); text-underline-offset: 2px; }
a:hover { color: var(--pk-blue-deep); }
h1, h2, h3 { font-family: var(--pk-head); color: var(--pk-ink); line-height: 1.2; letter-spacing: -.01em; }
h1 { font-size: clamp(1.7rem, 1.2rem + 2.2vw, 2.6rem); font-weight: 800; margin: 0 0 .6em; }
h2 { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 1.95rem); font-weight: 800; margin: 0 0 .5em; }
h3 { font-size: 1.2rem; font-weight: 700; margin: 1.4em 0 .4em; }
.wrap { width: min(100% - 32px, var(--pk-max)); margin-inline: auto; }
.read { max-width: var(--pk-read); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; z-index: 50; background: #fff; padding: 8px 12px; border-radius: 8px; }

/* Ylätunniste */
.draft-bar { background: #172631; color: #fff; font: 600 13px/1.4 var(--pk-body); text-align: center; padding: 6px 16px; }
.agebar { background: var(--pk-blue-deep); color: #e8f3ff; font-size: 13px; }
.agebar .wrap { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; }
.agebar strong { color: var(--pk-sun); }
.site-header { background: var(--pk-header); border-bottom: 1px solid var(--pk-line); position: sticky; top: 0; z-index: 20; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; }
.brand img { display: block; width: 264px; height: auto; }
.nav { display: flex; gap: 2px; flex-wrap: nowrap; }
.nav a { font: 700 14.5px/1 var(--pk-head); color: var(--pk-ink); text-decoration: none; padding: 10px 11px; border-radius: 999px; white-space: nowrap; }
.nav a:hover { background: #fff; color: var(--pk-blue); }

/* Hero */
.hero { background: radial-gradient(120% 140% at 100% 0%, #dff0fd 0%, var(--pk-header) 45%, var(--pk-bg) 100%); padding: 40px 0 28px; }
.hero .lead p { margin: 0 0 .8em; font-size: 1.06rem; }

.newrow { scroll-margin-top: 90px; }

/* Osiot */
.section { padding: 44px 0; }
.section.band { background: var(--pk-band); }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 8px 24px; margin-bottom: 20px; }
.section-head p { margin: 0; color: var(--pk-muted); max-width: 60ch; }
.kicker { display: inline-block; font: 800 12px/1 var(--pk-head); letter-spacing: .12em; text-transform: uppercase; color: var(--pk-blue);
  background: #e3f1fc; border-radius: 999px; padding: 6px 10px; margin-bottom: 10px; }

/* Kortit */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.cards.compact { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.card { position: relative; display: flex; flex-direction: column; background: var(--card-bg, #fff); color: var(--card-fg, var(--pk-text));
  border-radius: var(--pk-radius); box-shadow: var(--pk-shadow); border: 1px solid rgba(0,0,0,.06); overflow: hidden; }
.card .logo { display: grid; place-items: center; height: 118px; padding: 14px 18px 6px; }
.card .logo img { max-height: 92px; width: auto; object-fit: contain; }
.card .body { display: flex; flex-direction: column; flex: 1; padding: 6px 20px 18px; }
.card .tagline { margin: 0 0 10px; font-size: 1rem; }
.card .tagline strong { font-family: var(--pk-head); }
.card ul { list-style: none; padding: 0; margin: 0 0 16px; flex: 1; }
.card li { position: relative; padding-left: 26px; margin: 0 0 6px; font-size: .97rem; line-height: 1.45; }
.card li::before { content: ""; position: absolute; left: 0; top: .28em; width: 16px; height: 16px; border-radius: 50%;
  background: var(--pk-cta) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.2l2.6 2.5L12 5.4' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat; }
.card.dark li::before { box-shadow: 0 0 0 2px rgba(255,255,255,.25); }
.rank { position: absolute; top: 12px; left: 12px; z-index: 2; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: var(--pk-blue); color: #fff; font: 800 15px/1 var(--pk-head); box-shadow: 0 0 0 3px var(--pk-sun); }
.cta { display: inline-flex; justify-content: center; align-items: center; gap: 8px; min-height: 50px; padding: 12px 22px; border-radius: 999px;
  background: var(--pk-cta); color: #fff !important; font: 800 18px/1.1 var(--pk-head); text-decoration: none; letter-spacing: .01em;
  box-shadow: 0 3px 0 var(--pk-cta-edge), 0 6px 14px rgba(0,116,74,.25); transition: transform .12s, box-shadow .12s, background .12s; }
.cta:hover { background: var(--pk-cta-hover); transform: translateY(-1px); }
.cta:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--pk-cta-edge); }
.cta::after { content: "›"; font-size: 1.3em; line-height: 0; }
.cta.small { min-height: 40px; padding: 9px 16px; font-size: 15px; }
.terms { margin: 10px 0 0; font-size: 12.5px; opacity: .8; text-align: center; }
details.more { margin-top: 12px; border-top: 1px solid rgba(127,127,127,.25); padding-top: 10px; }
details.more summary { cursor: pointer; font: 700 14px/1.2 var(--pk-head); list-style: none; display: flex; justify-content: space-between; align-items: center; }
details.more summary::-webkit-details-marker { display: none; }
details.more summary::after { content: "+"; font-size: 20px; line-height: 1; }
details.more[open] summary::after { content: "–"; }
details.more dl { margin: 10px 0 0; font-size: 14px; display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; }
details.more dt { font-weight: 700; }
details.more dd { margin: 0; }

/* Uudet pikakasinot -nauha */
.newband { background: linear-gradient(180deg, var(--pk-sun-soft), #fffaf0); border-block: 1px solid #f6e3b0; }
.newband .kicker { background: var(--pk-sun); color: var(--pk-ink); }
.newlist { display: grid; gap: 14px; counter-reset: newpos; }
.newrow { display: grid; grid-template-columns: 170px minmax(0, 1fr) auto; align-items: center; gap: 18px; background: #fff;
  border: 1px solid #f1e2bd; border-radius: 14px; padding: 14px 18px; box-shadow: 0 2px 10px rgba(146,104,0,.07); }
.newrow .nlogo { display: grid; place-items: center; height: 72px; border-radius: 10px; background: #fff; }
.newrow .nlogo img { max-height: 64px; width: auto; }
.newrow h3 { margin: 0 0 4px; font-size: 1.1rem; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.newrow p { margin: 0; font-size: .97rem; }
.badge { display: inline-block; font: 800 11px/1 var(--pk-head); letter-spacing: .08em; text-transform: uppercase; padding: 5px 8px; border-radius: 999px;
  background: var(--pk-sun); color: var(--pk-ink); }
.newrow:first-child { border: 2px solid var(--pk-sun); }
.newrow:first-child .badge { background: var(--pk-blue); color: #fff; }

/* Kaikki kasinot */
.alllist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.allrow { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 14px; align-items: start; background: #fff; border: 1px solid var(--pk-line);
  border-radius: 12px; padding: 12px 14px; }
.allrow .alogo { display: grid; place-items: center; height: 56px; }
.allrow .alogo img { max-height: 52px; width: auto; }
.allrow h3 { margin: 0 0 2px; font-size: 1rem; }
.allrow p { margin: 0 0 8px; font-size: .93rem; color: var(--pk-text); }
.allrow .row-cta { font: 800 14px/1 var(--pk-head); color: var(--pk-cta); text-decoration: none; }
.allrow .row-cta::after { content: " ›"; }
.draft-note { display: block; margin-top: 4px; font: 600 11.5px/1.3 var(--pk-body); color: #8a5a00; background: #fff1cc; border-radius: 6px; padding: 3px 6px; width: fit-content; }

/* Leipäteksti */
.prose p, .prose li { font-size: 1.02rem; }
.prose h2 { margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose table { width: 100%; border-collapse: collapse; margin: 1em 0 1.4em; font-size: .95rem; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 0 0 1px var(--pk-line); }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--pk-line); vertical-align: top; }
.prose thead th, .prose tr:first-child th { background: var(--pk-header); font-family: var(--pk-head); font-size: .9rem; }
.prose figure { margin: 1.4em 0; text-align: center; }
.prose figcaption { color: var(--pk-muted); font-size: .9rem; }
.note { background: #fff; border-left: 5px solid var(--pk-sun); border-radius: 12px; padding: 18px 20px; box-shadow: var(--pk-shadow); margin: 1.4em 0; }
.note h3 { margin-top: 0; }
.faq { background: #fff; border: 1px solid var(--pk-line); border-radius: 14px; overflow: hidden; margin: 1.2em 0; }
.faq details { border-bottom: 1px solid var(--pk-line); }
.faq details:last-child { border-bottom: 0; }
.faq summary { cursor: pointer; padding: 14px 18px; font: 700 1rem/1.35 var(--pk-head); list-style: none; display: flex; gap: 12px; justify-content: space-between; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--pk-blue); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq .a { padding: 0 18px 14px; }

.tscroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 1em 0 1.4em; }
.tscroll table { margin: 0; min-width: 520px; }
.with-toc { display: grid; grid-template-columns: minmax(0, var(--pk-read)) 300px; justify-content: space-between; gap: 40px; align-items: start; }
.toc { position: sticky; top: 100px; background: #fff; border: 1px solid var(--pk-line); border-radius: 14px; padding: 18px 20px; box-shadow: var(--pk-shadow); }
.toc ol { margin: 0; padding-left: 1.2em; font-size: .95rem; }
.toc li { margin: 0 0 6px; }
.toc a { color: var(--pk-ink); text-decoration: none; }
.toc a:hover { color: var(--pk-blue); text-decoration: underline; }

/* Alatunniste */
.site-footer { background: var(--pk-ink); color: #cfdbe5; padding: 36px 0 28px; margin-top: 30px; font-size: 15px; }
.site-footer a { color: #fff; }
.site-footer .cols { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; }
.site-footer .legal { margin-top: 18px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.15); font-size: 13.5px; }
.age { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 2px solid var(--pk-sun); color: var(--pk-sun); font: 800 14px/1 var(--pk-head); margin-right: 10px; vertical-align: middle; }

@media (max-width: 1020px) {
  .with-toc { grid-template-columns: 1fr; }
  .toc { display: none; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards.compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav { display: none; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .site-header .wrap { min-height: 62px; }
  .brand img { width: 190px; }
  .hero { padding: 22px 0 14px; }
  .hero .lead p { font-size: 1rem; }
  .section { padding: 32px 0; }
  .cards, .cards.compact { grid-template-columns: 1fr; gap: 16px; }
  .newrow { grid-template-columns: 96px minmax(0, 1fr); gap: 12px; padding: 12px; }
  .newrow .nlogo { height: 56px; }
  .newrow .nlogo img { max-height: 50px; }
  .newrow .cta { grid-column: 1 / -1; width: 100%; }
  .alllist { grid-template-columns: 1fr; }
  .allrow { grid-template-columns: 76px minmax(0, 1fr); }
  .agebar .wrap span:last-child { display: none; }
  .prose table { font-size: .88rem; }
  .prose th, .prose td { padding: 8px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .cta { transition: none; } }

/* Sivupohjien lisäykset (sivu, artikkeli, arkisto, kirjoittaja, 404) ja mobiilivalikko. Liitetään teeman perään. */
a:focus-visible, summary:focus-visible, .cta:focus-visible { outline: 3px solid var(--pk-sun); outline-offset: 2px; }

/* Varafontit (Lighthouse 11.11.2026, CLS 0,15): kun Cabin ja Montserrat latautuvat, teksti ei saa rivittyä uudelleen.
   Arial ja sen kanssa samanmittaiset fontit skaalataan vastaamaan verkkofonttien leveyttä ja korkeutta; arvot on
   mitattu selaimessa suomenkielisellä tekstillä (Cabin 400/700, Montserrat 700/800 vastaan Arial ja Arial Bold). */
@font-face { font-family: "Cabin Fallback"; font-weight: 400 599; src: local("Arial"), local("ArialMT"), local("Liberation Sans"), local("Helvetica"), local("Roboto");
  size-adjust: 94.2%; ascent-override: 102.44%; descent-override: 26.54%; line-gap-override: 0%; }
@font-face { font-family: "Cabin Fallback"; font-weight: 600 900; src: local("Arial Bold"), local("Arial-BoldMT"), local("Liberation Sans Bold"), local("Helvetica Bold"), local("Helvetica-Bold"), local("Roboto Bold");
  size-adjust: 90.19%; ascent-override: 107%; descent-override: 27.72%; line-gap-override: 0%; }
@font-face { font-family: "Montserrat Fallback"; font-weight: 500 749; src: local("Arial Bold"), local("Arial-BoldMT"), local("Liberation Sans Bold"), local("Helvetica Bold"), local("Helvetica-Bold"), local("Roboto Bold");
  size-adjust: 110.38%; ascent-override: 87.69%; descent-override: 22.74%; line-gap-override: 0%; }
@font-face { font-family: "Montserrat Fallback"; font-weight: 750 900; src: local("Arial Bold"), local("Arial-BoldMT"), local("Liberation Sans Bold"), local("Helvetica Bold"), local("Helvetica-Bold"), local("Roboto Bold");
  size-adjust: 112.75%; ascent-override: 85.85%; descent-override: 22.26%; line-gap-override: 0%; }
:root { --pk-head: "Montserrat", "Montserrat Fallback", "Segoe UI", Arial, sans-serif; --pk-body: "Cabin", "Cabin Fallback", "Segoe UI", Arial, sans-serif; }

/* Mobiilivalikko ilman JavaScriptiä */
.menu { display: none; position: relative; }
.menu summary { list-style: none; cursor: pointer; font: 800 15px/1 var(--pk-head); color: var(--pk-ink); background: #fff; border: 1px solid var(--pk-line);
  border-radius: 999px; padding: 10px 14px; }
.menu summary::-webkit-details-marker { display: none; }
.menu[open] summary { background: var(--pk-sun); border-color: var(--pk-sun); }
.menu nav { position: absolute; right: 0; top: calc(100% + 8px); width: min(86vw, 300px); background: #fff; border: 1px solid var(--pk-line);
  border-radius: 14px; box-shadow: var(--pk-shadow); padding: 8px; display: grid; }
.menu nav a { font: 700 16px/1.2 var(--pk-head); color: var(--pk-ink); text-decoration: none; padding: 12px; border-radius: 10px; }
.menu nav a:hover { background: var(--pk-header); }
@media (max-width: 899px) { .menu { display: block; } }

/* Murupolku ja sivun otsikkoalue */
.crumbs { font-size: 14px; color: var(--pk-muted); margin: 0 0 12px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; margin: 0; padding: 0; }
.crumbs li + li::before { content: "›"; margin-right: 4px; color: var(--pk-muted); }
.crumbs a { color: var(--pk-muted); }
/* Otsikkoalue on sisältöpalstan alussa, jotta sivupalkki alkaa heti valikon alta otsikon vierestä (omistaja
   10.11.2026). Taustan liukuväri on koko leveällä ylälohkolla. H1 on teemaa pienempi samasta pyynnöstä. */
h1 { font-size: clamp(1.6rem, 1.1rem + 1.4vw, 2.1rem); }
.content.top { background: linear-gradient(180deg, var(--pk-header), var(--pk-bg)) no-repeat; background-size: 100% 240px; padding-top: 30px; }
.page-head { padding: 0 0 18px; margin-bottom: 26px; }
.page-head h1 { margin-bottom: .3em; }
.hero.top { background: radial-gradient(120% 100% at 100% 0%, #dff0fd 0%, var(--pk-header) 45%, var(--pk-bg) 100%) no-repeat;
  background-size: 100% 520px; padding-bottom: 44px; }
.hero.top .paid { margin-top: 56px; }
.byline { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 15px; color: var(--pk-muted); margin: 0; }
.byline a { color: var(--pk-ink); font-weight: 700; }
.lead-image { margin: 18px 0 0; }
.lead-image img { display: block; width: 100%; max-height: 460px; object-fit: cover; border-radius: var(--pk-radius); }

/* Leipäteksti täydellä palstalla; kortit ja listat koko leveydelle */
.content { padding: 26px 0 40px; }
.prose > * { max-width: var(--pk-read); }
.prose > .cards, .prose > .alllist, .prose > .newlist { max-width: none; margin: 1.4em 0; }
.prose img { border-radius: 12px; }
.prose h4 { font: 700 1.05rem/1.3 var(--pk-head); color: var(--pk-ink); margin: 1.3em 0 .3em; }
.prose blockquote, .note { overflow-wrap: anywhere; }
.page-head h1, .crumbs { overflow-wrap: anywhere; }
.box { background: #fff; border: 1px solid var(--pk-line); border-radius: 14px; padding: 16px 20px; margin: 1.4em 0; box-shadow: var(--pk-shadow); }
.box > :first-child { margin-top: 0; }
.box > :last-child { margin-bottom: 0; }
.media-text { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 20px; align-items: center; margin: 1.4em 0; }
.media-text figure { margin: 0; }
.howto ol { counter-reset: step; list-style: none; padding: 0; }
.howto li { position: relative; padding-left: 44px; margin: 0 0 14px; }
.howto li::before { counter-increment: step; content: counter(step); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; background: var(--pk-blue); color: #fff; font: 800 14px/1 var(--pk-head); }
.howto strong { display: block; }
.howto figure { margin: 10px 0 0; text-align: left; }
.howto figure img { width: 250px; max-width: 100%; height: auto; border: 1px solid var(--pk-line); }
.toc-inline { background: #fff; border: 1px solid var(--pk-line); border-radius: 14px; padding: 14px 18px; margin: 1.2em 0; }
.toc-inline p { margin: 0 0 6px; font: 800 14px/1 var(--pk-head); text-transform: uppercase; letter-spacing: .08em; color: var(--pk-blue); }
.toc-inline ol { margin: 0; padding-left: 1.2em; }
.terms-inline { font-size: 13px; color: var(--pk-muted); }

/* Etusivun Suosikit: listarivit kortin vieressä kahden sarakkeen levyisenä yhtenä palstana, kuten hyväksytyssä
   luonnoksessa. Ilman tätä lista jäi yhteen korttisarakkeeseen ja teksti työntyi näytön reunan yli. */
.cards > .favs { grid-column: span 2; grid-template-columns: minmax(0, 1fr); align-content: start; }

/* Kortit leipätekstissä: ei leipätekstin listasisennystä */
.prose .card ul { padding: 0; }
.prose .card li { font-size: .97rem; }

/* Artikkeli: teksti lukupalstalla */
.article .page-head h1, .article .byline { max-width: var(--pk-read); }
.article .prose > * { max-width: none; }
.article .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.article .with-side .main { max-width: var(--pk-read); }

/* Sivupalkki: pysyvät sivut tiiviinä kortteina (kuva, otsikko, lyhyt kuvaus). Leveällä näytöllä sisällön oikealla
   puolella kuva tekstin päällä, kuten vanhalla sivustolla; kapealla näytöllä sisällön alla pienoiskuva tekstin
   vieressä. Sivu on hieman leveämpi kuin teemassa, jotta kasinokortit eivät kapene liikaa. */
:root { --pk-max: 1240px; --pk-side: clamp(170px, 18vw, 232px); }
.with-side { display: grid; grid-template-columns: minmax(0, 1fr) var(--pk-side); gap: clamp(12px, 1.6vw, 20px); align-items: start; }
.with-side .lead-image { margin: 0 0 22px; max-width: var(--pk-read); }
.side h2 { font: 800 12px/1.2 var(--pk-head); text-transform: uppercase; letter-spacing: .08em; color: var(--pk-blue); margin: 0 0 8px; }
.side ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.side-card { position: relative; background: #fff; border: 1px solid var(--pk-line); border-radius: 10px; overflow: hidden; }
.side-card img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.side-card div { padding: 7px 9px 9px; }
.side-card h3 { font-size: .9rem; line-height: 1.25; margin: 0 0 2px; overflow-wrap: anywhere; }
.side-card h3 a { color: var(--pk-ink); text-decoration: none; }
.side-card h3 a::after { content: ""; position: absolute; inset: 0; }
.side-card:hover h3 a { color: var(--pk-blue); text-decoration: underline; }
.side-card p { margin: 0; font-size: .8rem; line-height: 1.35; color: var(--pk-text); }

/* Työpöytänäkymä alkaa 900 px:stä (omistaja 10.11.2026: "näyttörajat aivan liian massiiviset, tähänkin mahtuu hyvin
   kolme kasinoa rinnakkain"; ikkuna oli noin 970 px leveä 133 %:n zoomauksella). Teeman 1020 px:n tablettisäännöt
   kumotaan välillä 900–1020 px: valikko näkyy, kortteja on kolme rinnakkain ja sivupalkki on sisällön vieressä.
   Valikon teksti ja välit joustavat ikkunan mukaan, ja kortti tiivistyy oman leveytensä mukaan. */
@media (min-width: 900px) {
  .nav a { font-size: clamp(12.5px, 1.36vw, 14.5px); padding: 10px clamp(5px, .9vw, 11px); }
  .with-side .cards { gap: clamp(12px, 1.3vw, 16px); }
  .card { container-type: inline-size; }
  @container (max-width: 300px) {
    .card .logo { height: 100px; padding: 12px 14px 4px; }
    .card .logo img { max-height: 76px; }
    .card .body { padding: 6px 14px 16px; }
    .card .tagline { font-size: .96rem; }
    .card li { font-size: .92rem; padding-left: 24px; }
    .card .cta { font-size: 15.5px; padding: 10px; min-height: 46px; gap: 6px; }
    details.more dl { grid-template-columns: minmax(0, 1fr); gap: 0; }
    details.more dd { margin: 0 0 6px; overflow-wrap: anywhere; }
  }
  @container (max-width: 245px) {
    .card .body { padding: 6px 11px 14px; }
    .card li { font-size: .88rem; }
    .card .cta { font-size: 14px; padding: 9px 6px; min-height: 42px; gap: 4px; }
    .card .terms { font-size: 11.5px; }
  }
}
@media (min-width: 900px) and (max-width: 1020px) {
  .nav { display: flex; }
  .cards, .cards.compact { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .article .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 900px) and (max-width: 1099px) { .with-side .post-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Artikkelilistat (arkisto, kirjoittaja, lisää luettavaa) */
.post-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 10px 0 0; padding: 0; list-style: none; }
.post-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--pk-line); border-radius: 14px; overflow: hidden; box-shadow: var(--pk-shadow); }
.post-card img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.post-card .pc-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.post-card h2, .post-card h3 { font-size: 1.08rem; margin: 0; }
.post-card h2 a, .post-card h3 a { color: var(--pk-ink); text-decoration: none; }
.post-card h2 a:hover, .post-card h3 a:hover { color: var(--pk-blue); text-decoration: underline; }
.post-card p { margin: 0; font-size: .95rem; color: var(--pk-text); }
.post-card time { font-size: 13px; color: var(--pk-muted); }
.more-reading { border-top: 1px solid var(--pk-line); padding-top: 26px; margin-top: 30px; }
.author-box { display: flex; gap: 14px; align-items: flex-start; background: #fff; border: 1px solid var(--pk-line); border-radius: 14px; padding: 16px 18px; max-width: var(--pk-read); }
.author-box .initial { flex: 0 0 auto; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--pk-blue); color: #fff;
  font: 800 18px/1 var(--pk-head); box-shadow: 0 0 0 3px var(--pk-sun); }
.author-box p { margin: 0 0 4px; }
.cats { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.cats a { display: inline-block; background: var(--pk-header); border-radius: 999px; padding: 6px 12px; font: 700 13px/1 var(--pk-head); color: var(--pk-blue); text-decoration: none; }
.error-page { text-align: center; padding: 60px 0; }
.error-page .cta { margin-top: 14px; }

.tscroll table.narrow { min-width: 0; width: 100%; }
.tscroll table.narrow th, .tscroll table.narrow td { padding-left: 10px; padding-right: 10px; }
@media (max-width: 380px) { .tscroll table.narrow th, .tscroll table.narrow td { padding: 7px 5px; font-size: .78rem; } }

/* Alle 900 px (tabletti ja puhelin): sivupalkki siirtyy sisällön alle, etusivulla pois */
@media (max-width: 899px) {
  .post-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article .wrap { width: min(100% - 32px, var(--pk-read)); }
  .with-side { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .side { border-top: 1px solid var(--pk-line); padding-top: 26px; margin-top: 30px; }
  .side-desktop { display: none; }
  .side h2 { font-size: 14px; margin-bottom: 12px; }
  .side ul { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .side-card { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 12px; align-items: center; padding: 10px; border-radius: 14px; box-shadow: var(--pk-shadow); }
  .side-card img { border-radius: 8px; }
  .side-card div { padding: 0; }
  .side-card h3 { font-size: 1.02rem; margin-bottom: 4px; }
  .side-card p { font-size: .92rem; line-height: 1.45; }
}
@media (max-width: 560px) { .side ul { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 720px) {
  .article .cards { grid-template-columns: 1fr; }
  .content.top { padding-top: 20px; }
  .page-head { padding: 0 0 12px; margin-bottom: 20px; }
  .hero.top { padding-bottom: 32px; }
  .hero.top .paid { margin-top: 36px; }
  .post-list { grid-template-columns: 1fr; }
  .media-text { grid-template-columns: 1fr; }
  .article .post-list { grid-template-columns: 1fr; }
  .lead-image img { max-height: 260px; }
  .cards > .favs { grid-column: auto; }
}

/* Keep the cover's headline and logo visible at every screen width. */
.featured-image img { display: block; width: 100%; height: auto; max-height: none; object-fit: contain; }
.featured-image.at-end { margin: 28px 0 0; }
