/* Golfdraivi.fi – yhtenäinen ilme (2026) */
@import url("https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&display=swap");

:root {
  --ink: #0f172a;
  --muted: #64748b;
  --border: #e2e8f0;
  --bg-page: #f0f4f3;
  --surface: #ffffff;
  --accent: #0d9488;
  --accent-dark: #0f766e;
  --accent-soft: #ecfdf5;
  --header-bg: #0c1220;
  --max-width: 1140px;
  --font: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 14px;
  --shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 12px 40px rgba(15, 23, 42, 0.07);
  /* legacy aliases (sisältöluokat) */
  --teal: var(--accent);
  --teal-dark: var(--accent-dark);
  --teal-light: var(--accent-soft);
  --text: var(--ink);
  --white: #fff;
  --link-blue: #0369a1;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg-page);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent-dark);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

/* Header */
.site-header {
  background: var(--header-bg);
  color: var(--white);
  padding: 0.65rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 30px rgba(12, 18, 34, 0.35);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  text-decoration: none;
  border-radius: 14px;
  line-height: 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-logo:hover {
  text-decoration: none;
  opacity: 0.92;
  transform: scale(1.04);
}

.site-logo__mark {
  display: block;
  flex-shrink: 0;
}

/* Nav */
.main-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 0.35rem;
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0.2rem;
}

.main-nav a {
  display: block;
  padding: 0.7rem 0.65rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: none;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  border-radius: 8px 8px 0 0;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  text-decoration: none;
  color: var(--accent-dark);
  border-bottom-color: var(--accent);
  background: rgba(13, 148, 136, 0.07);
}

@media (max-width: 720px) {
  .nav-inner {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    gap: 0.05rem;
    padding-bottom: 1px;
  }

  .main-nav a {
    flex: 0 0 auto;
    white-space: nowrap;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
}

/* Layout */
.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.25rem 0.85rem 2.5rem;
  display: grid;
  grid-template-columns: minmax(180px, 220px) minmax(0, 1fr) minmax(200px, 260px);
  gap: 1.35rem;
  align-items: start;
}

@media (max-width: 1024px) {
  .wrap {
    grid-template-columns: 1fr;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
}

/* Sidebars */
.sidebar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.05rem;
  font-size: 0.875rem;
  box-shadow: var(--shadow);
}

.sidebar h2,
.sidebar .widget-title {
  margin: 0 0 0.6rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 0.35rem;
}

.sidebar ul {
  margin: 0;
  padding-left: 1.1rem;
}

.sidebar li {
  margin-bottom: 0.35rem;
}

.partner-stack {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 1rem 0;
  padding: 0.75rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.partner-badge {
  background: #f5f5f5;
  border: 1px solid var(--border);
  padding: 0.5rem;
  text-align: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent-dark);
}

.social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.social-row a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 2px;
  color: var(--white);
  font-size: 0.65rem;
  font-weight: 700;
  text-decoration: none;
}

.social-row a:hover {
  opacity: 0.9;
  text-decoration: none;
}

.s-twitter {
  background: #1da1f2;
}
.s-fb {
  background: #1877f2;
}
.s-in {
  background: #0077b5;
}
.s-rss {
  background: #f26522;
}
.s-mail {
  background: var(--muted);
}

.search-box {
  display: flex;
  border: 1px solid var(--border);
  margin-bottom: 1rem;
}

.search-box input {
  flex: 1;
  border: none;
  padding: 0.45rem 0.5rem;
  font-size: 0.85rem;
}

.search-box button {
  border: none;
  background: #f0f0f0;
  padding: 0 0.65rem;
  cursor: pointer;
}

.tabs-mini {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 0.75rem;
}

.tabs-mini span {
  flex: 1;
  text-align: center;
  padding: 0.4rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  background: var(--accent);
  color: var(--white);
  border-radius: 2px;
}

.tabs-mini span.off {
  background: #ccc;
  color: #333;
}

.mini-feed {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.mini-feed a {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  font-size: 0.8rem;
  line-height: 1.35;
  color: var(--link-blue);
  text-decoration: underline;
}

.mini-feed a:hover {
  color: var(--accent-dark);
}

.mini-feed img {
  width: 56px;
  height: 42px;
  object-fit: cover;
  flex-shrink: 0;
}

/* Main column */
.main-col {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem 1.75rem;
  min-width: 0;
  box-shadow: var(--shadow-lg);
}

/* Hero slider */
.hero-slider {
  position: relative;
  margin: -1.25rem -1.35rem 1.25rem;
  background: #111;
}

.slider-viewport {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 7;
  max-height: 320px;
}

.slider-track {
  display: flex;
  transition: transform 0.45s ease;
  height: 100%;
}

.slider-slide {
  min-width: 100%;
  height: 100%;
}

.slider-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.45);
  color: var(--white);
  border: none;
  width: 40px;
  height: 48px;
  font-size: 1.25rem;
  cursor: pointer;
  z-index: 2;
}

.slider-arrow:hover {
  background: rgba(0, 0, 0, 0.65);
}

.slider-prev {
  left: 0;
}
.slider-next {
  right: 0;
}

.slider-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 2;
}

.slider-dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  padding: 0;
}

.slider-dots button.active {
  background: var(--white);
}

/* Article */
.post-meta {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.post-title {
  margin: 0 0 0.75rem;
  font-size: 1.65rem;
  line-height: 1.25;
}

.post-title a {
  color: var(--accent-dark);
  text-decoration: underline;
}

.post-title a:hover {
  color: var(--accent);
}

.post-cats {
  font-size: 0.8rem;
  margin-bottom: 1rem;
}

.post-cats a {
  color: var(--link-blue);
}

.article-body {
  font-size: 0.95rem;
}

.article-body h2 {
  font-size: 1.25rem;
  margin-top: 1.75rem;
  color: var(--accent-dark);
}

.article-body h3 {
  font-size: 1.05rem;
  margin-top: 1.25rem;
}

.article-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  margin: 1rem 0;
}

.article-body th,
.article-body td {
  border: 1px solid var(--border);
  padding: 0.45rem 0.55rem;
  text-align: left;
}

.article-body th {
  background: var(--teal-light);
  font-weight: 600;
}

.article-body .lead {
  font-size: 1.05rem;
  color: var(--muted);
}

.figure-inline {
  float: right;
  max-width: 280px;
  margin: 0 0 1rem 1rem;
  border: 1px solid var(--border);
  padding: 0.35rem;
  background: #fafafa;
}

.figure-inline figcaption {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 0.35rem;
}

.clearfix::after {
  content: "";
  display: table;
  clear: both;
}

.site-footer {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.5rem 0.85rem 2.25rem;
  font-size: 0.8125rem;
  color: var(--muted);
  text-align: center;
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, transparent 0%, rgba(15, 23, 42, 0.02) 100%);
}

.breadcrumb {
  font-size: 0.8rem;
  margin-bottom: 1rem;
  color: var(--muted);
}

.breadcrumb a {
  color: var(--link-blue);
}

/* Article list on home */
.post-list {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.post-list h2 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: 1rem;
}

.post-list article {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #eee;
}

.post-list article:last-child {
  border-bottom: none;
}

.post-list h3 {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
}

.post-list h3 a {
  color: var(--accent-dark);
  text-decoration: underline;
}

.excerpt {
  font-size: 0.9rem;
  color: var(--muted);
}

@media (max-width: 600px) {
  .figure-inline {
    float: none;
    max-width: 100%;
    margin: 1rem 0;
  }
}


/* FAQ (etusivu ja artikkelit) */
.faq-block details {
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.5rem 0.75rem;
  margin-bottom: 0.5rem;
  background: #fafafa;
}

.faq-block summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--accent-dark);
}

.faq-block details[open] summary {
  margin-bottom: 0.5rem;
}

.seo-related {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.seo-related h2 {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
}

/* —— Tekijä, kasinot, yhteiset komponentit —— */
.site-tagline {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.88;
  max-width: 18rem;
  text-align: right;
  line-height: 1.35;
}

@media (max-width: 720px) {
  .site-tagline {
    display: none;
  }
}

.author-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin: 2rem 0 1.5rem;
  padding: 1rem 1.1rem;
  background: linear-gradient(135deg, #f8fafc 0%, #eef2f7 100%);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.author-card__avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.author-card__name {
  margin: 0 0 0.2rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent-dark);
}

.author-card__role {
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.author-card p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.5;
}

.casino-bridge {
  margin: 1.5rem 0;
  padding: 0.85rem 1rem;
  border-left: 4px solid var(--accent);
  background: var(--accent-soft);
  border-radius: 0 8px 8px 0;
  font-size: 0.92rem;
}

.casino-bridge strong {
  color: var(--accent-dark);
}

.page-kasinot .main-col {
  border-radius: 14px;
}

.kasinot-hero {
  margin: -1.25rem -1.35rem 1.5rem;
  padding: 2rem 1.35rem;
  background: linear-gradient(145deg, #0c1220 0%, #134e4a 42%, #0f766e 100%);
  color: #f1f5f9;
  border-radius: 0;
}

.page-kasinot .kasinot-hero {
  border-radius: 12px 12px 0 0;
}

.kasinot-hero h1 {
  margin: 0 0 0.75rem;
  font-size: 1.75rem;
  line-height: 1.2;
}

.kasinot-hero .lead {
  color: rgba(241, 245, 249, 0.88);
  margin: 0;
  font-size: 1.02rem;
}

.kasinot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0 2rem;
}

.kasinot-card {
  display: block;
  padding: 1rem 1.05rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fafafa;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s, border-color 0.2s, transform 0.15s;
}

.kasinot-card:hover {
  text-decoration: none;
  border-color: var(--accent);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.kasinot-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  color: var(--accent-dark);
}

.kasinot-card p {
  margin: 0;
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.45;
}

.steps-ol {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.steps-ol > li {
  counter-increment: step;
  position: relative;
  padding: 0.85rem 0.85rem 0.85rem 3rem;
  margin-bottom: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
}

.steps-ol > li::before {
  content: counter(step);
  position: absolute;
  left: 0.75rem;
  top: 0.85rem;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.site-footer--rich {
  text-align: left;
  max-width: var(--max-width);
  padding: 2rem 0.75rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1.25rem;
}

.footer-grid h3 {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.footer-grid ul {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.88rem;
}

.footer-age {
  margin: 0;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.78rem;
  color: var(--muted);
}

.content-wide-img {
  margin: 1.25rem 0;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.content-wide-img img {
  display: block;
  width: 100%;
  max-height: 420px;
  object-fit: cover;
}

/* Kasinot leaderboard (competitor-style demo listing) */
.kasinot-leaderboard {
  margin: 0 0 2rem;
  padding: 1.25rem 1rem 1.5rem;
  background: linear-gradient(180deg, #f6fffe 0%, #fff 40%);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.05);
}

.kasinot-leaderboard__title {
  margin: 0 0 0.5rem;
  font-size: 1.35rem;
  color: var(--accent-dark);
}

.kasinot-leaderboard__note,
.kasinot-leaderboard__foot {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.5;
}

.kasinot-leaderboard__foot {
  margin-bottom: 0;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--border);
}

.kasinot-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.kasinot-row {
  display: grid;
  grid-template-columns: 1fr minmax(180px, 240px);
  gap: 1rem 1.25rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  align-items: start;
}

.kasinot-row__name {
  margin: 0 0 0.35rem;
  font-size: 1.12rem;
  color: var(--text);
}

.kasinot-row__badge {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.12rem 0.45rem;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: 6px;
  background: var(--teal-light);
  color: var(--teal-dark);
  vertical-align: middle;
}

.kasinot-row__badge--new {
  background: #fff3e0;
  color: #b45309;
}

.kasinot-row__stars {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
  color: #c9a227;
}

.kasinot-row__score {
  color: var(--muted);
  font-size: 0.85rem;
}

.kasinot-row__bullets {
  margin: 0 0 0.65rem;
  padding-left: 1.15rem;
  font-size: 0.88rem;
  color: var(--text);
}

.kasinot-row__bonus {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.kasinot-row__side {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-left: 0.5rem;
  border-left: 1px solid #eee;
}

.kasinot-row__meta {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.kasinot-row__meta span {
  display: block;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #888;
}

.kasinot-row__cta {
  display: inline-block;
  text-align: center;
  padding: 0.55rem 0.85rem;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  background: linear-gradient(180deg, #14b8a6 0%, var(--accent) 100%);
  color: #fff !important;
  text-decoration: none !important;
  border: 1px solid var(--accent-dark);
}

.kasinot-row__cta:hover {
  filter: brightness(1.05);
  text-decoration: none !important;
}

.kasinot-row__cta--ghost {
  background: #fff;
  color: var(--teal-dark) !important;
  border-color: var(--border);
  font-weight: 500;
}

@media (max-width: 720px) {
  .kasinot-row {
    grid-template-columns: 1fr;
  }

  .kasinot-row__side {
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid #eee;
    padding-top: 0.75rem;
  }
}

/* Home: compact casino teaser rows */
.home-kasinot-teaser {
  margin: 1.5rem 0 2rem;
  padding: 1rem 1rem 1.15rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fafafa;
}

.home-kasinot-teaser__title {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
  color: var(--accent-dark);
}

.home-kasinot-teaser__note {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.home-kasinot-teaser__rows {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.home-kasinot-mini {
  display: grid;
  grid-template-columns: 2.25rem 1fr auto;
  align-items: center;
  gap: 0.65rem 0.85rem;
  padding: 0.65rem 0.75rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
}

.home-kasinot-mini__rank {
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  background: var(--teal);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.home-kasinot-mini__tag {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  background: var(--teal-light);
  color: var(--teal-dark);
  margin-left: 0.25rem;
}

.home-kasinot-mini__bonus {
  margin: 0.2rem 0 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.home-kasinot-mini__btn {
  display: inline-block;
  padding: 0.45rem 0.65rem;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 8px;
  background: var(--teal);
  color: #fff !important;
  text-decoration: none !important;
  white-space: nowrap;
}

.home-kasinot-mini__btn:hover {
  filter: brightness(1.06);
}

@media (max-width: 560px) {
  .home-kasinot-mini {
    grid-template-columns: 2rem 1fr;
    grid-template-rows: auto auto;
  }

  .home-kasinot-mini__btn {
    grid-column: 1 / -1;
    text-align: center;
  }
}
