/* ==========================================================================
   Kaikkikasinot – main stylesheet
   Mobile first. One breakpoint: 720px (desktop rules in min-width: 721px).
   Also loaded into the block editor (add_editor_style), so typography is
   written on elements, and page spacing on .kk-content.
   ========================================================================== */

:root {
	--kk-ink: #111827;
	--kk-text: #1f2937;
	--kk-text-2: #374151;
	--kk-muted: #4b5563;
	--kk-control: #6b7280;
	--kk-accent: #1d4ed8;
	--kk-accent-dark: #1e3a8a;
	--kk-accent-bg: #eff6ff;
	--kk-surface: #ffffff;
	--kk-bg: #f6f7f9;
	--kk-head: #eef1f5;
	--kk-border: #d9dde3;
	--kk-line: #e5e7eb;
	--kk-radius: 10px;
	--kk-font: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
	--kk-display: "Space Grotesk", Inter, system-ui, sans-serif;
}

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

body {
	margin: 0;
	background: var(--kk-bg);
	color: var(--kk-ink);
	font-family: var(--kk-font);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

a { color: var(--kk-accent); text-underline-offset: 2px; }
a:hover { color: var(--kk-accent-dark); }

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible { outline: 3px solid var(--kk-accent); outline-offset: 2px; }

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

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.kk-skip { position: absolute; left: 8px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--kk-ink); color: #fff; border-radius: 8px; font-weight: 600; }
.kk-skip:focus { top: 8px; color: #fff; }

.kk-muted { color: var(--kk-muted); }

/* Visibility utilities (the only place the breakpoint is written twice). */
@media (max-width: 720px) { .kk-only-wide { display: none !important; } }
@media (min-width: 721px) { .kk-only-narrow { display: none !important; } }

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */

h1, h2, h3, h4 { margin: 0; color: var(--kk-ink); }

h1,
.kk-h1 {
	font-family: var(--kk-display);
	font-weight: 700;
	font-size: 32px;
	line-height: 1.1;
	letter-spacing: -0.8px;
}

h2 {
	font-family: var(--kk-display);
	font-weight: 700;
	font-size: 24px;
	line-height: 1.2;
	letter-spacing: -0.3px;
}

h3 {
	font-family: var(--kk-font);
	font-weight: 700;
	font-size: 17px;
	line-height: 1.35;
}

p { margin: 0; }

.is-style-kk-ingressi,
.kk-lead {
	font-size: 18px;
	line-height: 1.6;
	color: var(--kk-text);
	max-width: 780px;
}

.is-style-kk-pieni,
p.is-style-kk-pieni { font-size: 13px; color: var(--kk-muted); }

h2.is-style-kk-pieni,
h3.is-style-kk-pieni { font-family: var(--kk-display); font-size: 18px; letter-spacing: 0; }

.kk-meta { margin: 0; font-size: 14px; color: var(--kk-muted); }

@media (min-width: 721px) {
	h1, .kk-h1 { font-size: 44px; }
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.kk-site { min-height: 100vh; display: flex; flex-direction: column; }

.kk-header { background: var(--kk-surface); border-bottom: 1px solid var(--kk-border); }

.kk-header__inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 14px 16px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 20px;
}

.kk-logo {
	font-family: var(--kk-display);
	font-weight: 700;
	font-size: 22px;
	color: var(--kk-ink);
	text-decoration: none;
	letter-spacing: -0.3px;
}
.kk-logo:hover { color: var(--kk-ink); }

/* Menu button (mobile) and submenu buttons share the 44px icon button look. */
.kk-menu-btn,
.kk-sub-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid var(--kk-line);
	border-radius: var(--kk-radius);
	background: var(--kk-surface);
	color: var(--kk-ink);
	cursor: pointer;
}
.kk-menu-btn__close,
.kk-header.is-open .kk-menu-btn__open { display: none; }
.kk-header.is-open .kk-menu-btn__close { display: block; }

.kk-nav { display: none; flex-basis: 100%; }
.kk-header.is-open .kk-nav { display: block; }

.kk-nav ul { list-style: none; margin: 0; padding: 0; }
.kk-nav a { color: var(--kk-ink); text-decoration: none; }
.kk-nav a:hover,
.kk-nav a[aria-current="page"],
.kk-nav .current-menu-ancestor > a { color: var(--kk-accent); }

/* Mobile: list with dividers, submenus as accordions. */
.kk-nav .menu { padding-bottom: 8px; }
.kk-nav .menu > li { display: flex; flex-wrap: wrap; align-items: center; border-bottom: 1px solid var(--kk-line); }
.kk-nav .menu > li:last-child { border-bottom: 0; }
.kk-nav .menu > li > a { flex: 1; display: flex; align-items: center; min-height: 52px; font-size: 17px; font-weight: 600; }

.kk-sub-btn { border: 0; background: var(--kk-bg); }
.kk-sub-btn svg { transition: transform 0.15s; }
.kk-sub-btn[aria-expanded="true"] { background: var(--kk-accent-bg); color: var(--kk-accent); }
.kk-sub-btn[aria-expanded="true"] svg { transform: rotate(180deg); }

.kk-nav .sub-menu { display: none; flex-basis: 100%; margin-bottom: 8px; padding: 4px 16px; background: var(--kk-bg); border-radius: 12px; }
.kk-nav .is-sub-open > .sub-menu { display: block; }
.kk-nav .sub-menu a { display: flex; align-items: center; min-height: 48px; font-size: 16px; font-weight: 500; }
.kk-nav .kk-sub-all { display: none; }

@media (min-width: 721px) {
	.kk-header__inner { padding: 14px 24px; flex-wrap: nowrap; }
	.kk-menu-btn { display: none; }
	.kk-nav { display: block; flex-basis: auto; }

	/* Desktop: one row, submenus as dropdown cards. */
	.kk-nav .menu { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px; padding: 0; }
	.kk-nav .menu > li { position: relative; flex-wrap: nowrap; border: 0; border-radius: 8px; }
	.kk-nav .menu > li > a { min-height: 0; padding: 10px 12px; font-size: 15px; }
	.kk-nav .menu > .menu-item-has-children > a { padding-right: 2px; }

	.kk-sub-btn { width: 28px; height: 38px; background: none; border-radius: 8px; color: inherit; }
	.kk-sub-btn[aria-expanded="true"] { background: none; }

	.kk-nav .menu > .is-sub-open { background: var(--kk-accent-bg); }
	.kk-nav .menu > .is-sub-open > a,
	.kk-nav .menu > .is-sub-open > .kk-sub-btn { color: var(--kk-accent); }

	.kk-nav .sub-menu {
		position: absolute;
		top: calc(100% + 8px);
		left: 0;
		z-index: 50;
		flex-direction: column;
		gap: 2px;
		width: 280px;
		margin: 0;
		padding: 8px;
		background: var(--kk-surface);
		border: 1px solid var(--kk-line);
		border-radius: 12px;
		box-shadow: 0 12px 32px rgba(17, 24, 39, 0.12);
	}
	/* Bridge the gap so the dropdown stays open while the pointer moves into it. */
	.kk-nav .sub-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -9px; height: 9px; }
	.kk-nav .is-sub-open > .sub-menu { display: flex; }
	.kk-nav .sub-menu a { min-height: 44px; padding: 12px; font-size: 15px; border-radius: 8px; }
	.kk-nav .sub-menu a:hover,
	.kk-nav .sub-menu a[aria-current="page"] { background: var(--kk-bg); }

	.kk-nav .kk-sub-all { display: block; margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--kk-line); }
	.kk-nav .kk-sub-all a { font-size: 14px; font-weight: 600; color: var(--kk-accent); }

	@media (hover: hover) {
		.kk-nav .menu > .menu-item-has-children:hover { background: var(--kk-accent-bg); }
		.kk-nav .menu > .menu-item-has-children:hover > a,
		.kk-nav .menu > .menu-item-has-children:hover > .kk-sub-btn { color: var(--kk-accent); }
		.kk-nav .menu-item-has-children:hover > .sub-menu { display: flex; }
		.kk-nav .menu-item-has-children:hover > .kk-sub-btn svg { transform: rotate(180deg); }
	}
}

/* --------------------------------------------------------------------------
   Page frame
   -------------------------------------------------------------------------- */

.kk-main {
	max-width: 1200px;
	width: 100%;
	margin: 0 auto;
	padding: 24px 16px 48px;
	display: flex;
	flex-direction: column;
	gap: 28px;
}
.kk-main--narrow { max-width: 820px; }
.kk-main--medium { max-width: 1000px; }

@media (min-width: 721px) {
	.kk-main { padding: 28px 24px 64px; }
	.kk-main--front { padding-top: 40px; }
}

.kk-breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--kk-muted); }
.kk-breadcrumb li + li::before { content: "›" / ""; margin-right: 8px; }

.kk-page-head { display: flex; flex-direction: column; gap: 14px; }
.kk-title-row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; }

/* Block content flow */
.kk-content > * { margin-top: 0; margin-bottom: 0; }
.kk-content > * + * { margin-top: 16px; }
.kk-content > h2 { margin-top: 36px; }
.kk-content > h2 + * { margin-top: 12px; }
.kk-content > .kk-stats,
.kk-content > .kk-clist,
.kk-content > .wp-block-columns { margin-top: 32px; }
.kk-content > :first-child { margin-top: 0; }

.kk-content > p,
.kk-content > ul,
.kk-content > ol,
.wp-block-column > p,
.wp-block-column > ul,
.wp-block-column > ol { max-width: 780px; }

.kk-content > p:not([class*="is-style"]),
.wp-block-column > p:not([class*="is-style"]) { font-size: 16px; line-height: 1.65; color: var(--kk-text); }

.kk-content > ul,
.kk-content > ol,
.wp-block-column > ul,
.wp-block-column > ol { padding-left: 20px; font-size: 16px; line-height: 1.7; color: var(--kk-text); }

/* Front page: a little more air between sections */
.kk-main--front .kk-content > h2 { font-size: 28px; letter-spacing: -0.4px; margin-top: 44px; }
.kk-main--front .kk-content > h2 + * { margin-top: 16px; }
.kk-main--front .is-style-kk-ingressi { color: var(--kk-text-2); line-height: 1.55; max-width: 760px; }
.kk-main--front .kk-content > h1 { max-width: 820px; }

/* --------------------------------------------------------------------------
   Core block styles
   -------------------------------------------------------------------------- */

/* Columns: content + sidebar (wraps under the sidebar on narrow screens) */
.wp-block-columns.is-style-kk-sivupalkki {
	display: flex;
	flex-wrap: wrap !important;
	gap: 28px;
	align-items: flex-start;
}
.wp-block-columns.is-style-kk-sivupalkki > .wp-block-column { margin: 0; min-width: 0; }
.wp-block-columns.is-style-kk-sivupalkki > .wp-block-column:first-child { flex: 999 1 560px !important; }
.wp-block-columns.is-style-kk-sivupalkki > .wp-block-column:last-child:not(:first-child) { flex: 1 1 280px !important; }
.wp-block-columns.is-style-kk-sivupalkki > .wp-block-column > * { margin-top: 0; margin-bottom: 0; }
.wp-block-columns.is-style-kk-sivupalkki > .wp-block-column:first-child > * + * { margin-top: 16px; }
.wp-block-columns.is-style-kk-sivupalkki > .wp-block-column:first-child > h2:not(:first-child) { margin-top: 36px; }
.wp-block-columns.is-style-kk-sivupalkki > .wp-block-column:first-child > h2 + * { margin-top: 12px; }
.wp-block-columns.is-style-kk-sivupalkki > .wp-block-column:last-child:not(:first-child) > * + * { margin-top: 20px; }

/* Group: white box */
.is-style-kk-laatikko,
.kk-box {
	background: var(--kk-surface);
	border: 1px solid var(--kk-border);
	border-radius: var(--kk-radius);
	padding: 20px;
}
.is-style-kk-laatikko > * { margin-top: 0; margin-bottom: 0; }
.is-style-kk-laatikko > * + * { margin-top: 10px; }
.is-style-kk-laatikko h2,
.is-style-kk-laatikko h3,
.kk-box h2 { font-family: var(--kk-display); font-size: 18px; letter-spacing: 0; }
.is-style-kk-laatikko p,
.kk-box p { font-size: 14px; line-height: 1.6; color: var(--kk-text-2); }
.is-style-kk-laatikko ul,
.is-style-kk-laatikko ol,
.kk-box ul { margin: 0; padding-left: 18px; font-size: 14px; line-height: 1.7; color: var(--kk-text); }
.is-style-kk-laatikko > p > a:only-child { font-weight: 600; }

/* Box variant that holds a form */
.is-style-kk-laatikko:has(.wpcf7) { padding: 24px; }

/* Lists of sources */
.wp-block-list.is-style-kk-lahteet { padding-left: 18px; font-size: 14px; line-height: 1.7; }

/* Tables */
.wp-block-table.is-style-kk-taulukko,
.wp-block-table.is-style-kk-tietotaulu {
	margin: 0;
	background: var(--kk-surface);
	border: 1px solid var(--kk-border);
	border-radius: var(--kk-radius);
	overflow-x: auto;
}
.wp-block-table.is-style-kk-taulukko table,
.wp-block-table.is-style-kk-tietotaulu table {
	width: 100%;
	border-collapse: collapse;
	font-size: 15px;
	text-align: left;
}
.wp-block-table.is-style-kk-taulukko table { min-width: 480px; }
.wp-block-table.is-style-kk-taulukko th,
.wp-block-table.is-style-kk-taulukko td,
.wp-block-table.is-style-kk-tietotaulu th,
.wp-block-table.is-style-kk-tietotaulu td {
	border: 0;
	border-bottom: 1px solid var(--kk-line);
	padding: 13px 16px;
	vertical-align: top;
}
.wp-block-table.is-style-kk-taulukko thead { border: 0; }
.wp-block-table.is-style-kk-taulukko thead th {
	background: var(--kk-head);
	border-bottom: 1px solid var(--kk-border);
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: var(--kk-text-2);
}
.wp-block-table.is-style-kk-taulukko tbody td:first-child { color: var(--kk-muted); }
.wp-block-table.is-style-kk-taulukko tbody tr:last-child td,
.wp-block-table.is-style-kk-tietotaulu tbody tr:last-child td { border-bottom: 0; }
.wp-block-table.is-style-kk-taulukko figcaption,
.wp-block-table.is-style-kk-tietotaulu figcaption { padding: 10px 16px; margin: 0; font-size: 13px; color: var(--kk-muted); }

.wp-block-table.is-style-kk-tietotaulu td { padding: 13px 20px; }
.wp-block-table.is-style-kk-tietotaulu td:first-child { color: var(--kk-muted); }
@media (max-width: 720px) {
	.wp-block-table.is-style-kk-tietotaulu td { display: block; }
	.wp-block-table.is-style-kk-tietotaulu td:first-child { border-bottom: 0; padding-bottom: 2px; }
	.wp-block-table.is-style-kk-tietotaulu td + td { padding-top: 0; }
}
@media (min-width: 721px) {
	.wp-block-table.is-style-kk-tietotaulu td:first-child { width: 220px; }
}

/* Buttons */
.wp-block-button__link,
.kk-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 0 18px;
	border: 1px solid var(--kk-accent);
	border-radius: 8px;
	background: var(--kk-accent);
	color: #fff;
	font: 600 15px/1.2 var(--kk-font);
	text-decoration: none;
	cursor: pointer;
	text-align: center;
}
.wp-block-button__link:hover,
.kk-btn:hover { background: var(--kk-accent-dark); border-color: var(--kk-accent-dark); color: #fff; }

.is-style-kk-reunus .wp-block-button__link,
.is-style-outline .wp-block-button__link,
.kk-btn--outline { background: var(--kk-surface); color: var(--kk-accent); }
.is-style-kk-reunus .wp-block-button__link:hover,
.is-style-outline .wp-block-button__link:hover,
.kk-btn--outline:hover { background: var(--kk-accent-bg); color: var(--kk-accent-dark); border-color: var(--kk-accent); }

.kk-btn--sm { min-height: 36px; padding: 0 12px; border-radius: 6px; font-size: 13px; }
.kk-btn--lg { min-height: 50px; font-size: 16px; font-weight: 700; padding: 0 28px; }
.kk-btn--block { display: flex; width: 100%; }

.kk-linkbtn { background: none; border: 0; padding: 0; color: var(--kk-accent); font: inherit; text-decoration: underline; cursor: pointer; }

/* --------------------------------------------------------------------------
   Pills, chips, form controls
   -------------------------------------------------------------------------- */

.kk-pill { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; line-height: 1.4; white-space: nowrap; }
.kk-pill--active { background: #dcfce7; color: #14532d; }
.kk-pill--left { background: #fef3c7; color: #78350f; }
.kk-pill--neutral { background: var(--kk-line); color: var(--kk-text); }
.kk-pill--lg { padding: 5px 12px; font-size: 13px; }

.kk-chip {
	min-height: 44px;
	padding: 0 16px;
	border-radius: 999px;
	font: 600 14px var(--kk-font);
	cursor: pointer;
	background: var(--kk-surface);
	color: var(--kk-ink);
	border: 1px solid var(--kk-control);
}
.kk-chip:hover { border-color: var(--kk-ink); }
.kk-chip[aria-pressed="true"] { background: var(--kk-ink); color: #fff; border-color: var(--kk-ink); }

.kk-input,
.kk-select,
.kk-textarea {
	width: 100%;
	min-height: 48px;
	padding: 0 14px;
	font: 400 16px var(--kk-font);
	border: 1px solid var(--kk-control);
	border-radius: 8px;
	background: var(--kk-surface);
	color: var(--kk-ink);
}
.kk-select { padding: 0 12px; font-weight: 500; }
.kk-textarea { padding: 12px 14px; line-height: 1.5; resize: vertical; min-height: 140px; }

.kk-field { display: flex; flex-direction: column; gap: 6px; flex: 1 1 0; min-width: 0; }
.kk-field > label { font-size: 14px; font-weight: 600; }
.kk-field__optional { font-weight: 400; color: var(--kk-muted); }

/* --------------------------------------------------------------------------
   Search, stats, cards, logs
   -------------------------------------------------------------------------- */

.kk-search { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; max-width: 620px; }
.kk-search .kk-input { flex: 1 1 220px; width: auto; padding: 0 16px; }
.kk-search .kk-btn { min-height: 48px; padding: 0 22px; }

.kk-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.kk-stat { background: var(--kk-surface); border: 1px solid var(--kk-border); border-radius: var(--kk-radius); padding: 18px 20px; display: flex; flex-direction: column; gap: 4px; }
.kk-stat__num { font-family: var(--kk-display); font-weight: 700; font-size: 30px; line-height: 1.2; }
.kk-stat__label { font-size: 14px; color: var(--kk-muted); }
@media (min-width: 721px) { .kk-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.kk-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; }
.kk-card {
	background: var(--kk-surface);
	border: 1px solid var(--kk-border);
	border-radius: var(--kk-radius);
	padding: 18px 20px;
	text-decoration: none;
	color: var(--kk-ink);
	display: flex;
	flex-direction: column;
	gap: 6px;
}
a.kk-card:hover { border-color: var(--kk-accent); color: var(--kk-ink); }
.kk-card__title { font-weight: 700; font-size: 16px; }
.kk-card__text { font-size: 14px; color: var(--kk-muted); line-height: 1.45; }

.kk-log { list-style: none; margin: 0; padding: 0; background: var(--kk-surface); border: 1px solid var(--kk-border); border-radius: var(--kk-radius); font-size: 15px; }
.kk-log li { display: flex; flex-wrap: wrap; gap: 6px 20px; padding: 13px 20px; border-bottom: 1px solid var(--kk-line); }
.kk-log li:last-child { border-bottom: 0; }
.kk-log__date { flex: 0 0 96px; color: var(--kk-muted); }
.kk-log__text { flex: 1 1 220px; }
.kk-log__name { font-weight: 700; }
.kk-log--terms .kk-log__date { flex-basis: 240px; color: var(--kk-ink); }
.kk-changes-block { display: flex; flex-direction: column; gap: 16px; }
.kk-more { margin: 0; font-weight: 600; font-size: 15px; }

.kk-empty { margin: 0; padding: 16px 20px; font-size: 14px; color: var(--kk-muted); }

/* --------------------------------------------------------------------------
   Casino list (table on desktop, cards on mobile)
   -------------------------------------------------------------------------- */

.kk-clist { display: flex; flex-direction: column; gap: 18px; }
.kk-filters { display: flex; flex-direction: column; gap: 12px; }
.kk-filters__row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.kk-filters__label { font-size: 13px; font-weight: 700; color: var(--kk-text-2); min-width: 72px; }
.kk-filters-narrow { display: flex; gap: 10px; }
.kk-filters-narrow label { font-size: 13px; font-weight: 700; color: var(--kk-text-2); }
.kk-count { margin: 0; font-size: 14px; color: var(--kk-text-2); }
.kk-footnote { margin: 0; font-size: 13px; color: var(--kk-muted); }

.kk-ctable { width: 100%; border-collapse: collapse; font-size: 14px; text-align: left; }
.kk-ctable tr[hidden] { display: none !important; }
.kk-ctable .kk-c-name a { font-weight: 700; color: var(--kk-ink); }
.kk-ctable .kk-c-name a:hover { color: var(--kk-accent); }

/* Mobile: cards */
@media (max-width: 720px) {
	.kk-ctable,
	.kk-ctable tbody { display: block; }
	.kk-ctable thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
	.kk-ctable tr {
		display: flex;
		flex-direction: column;
		gap: 6px;
		background: var(--kk-surface);
		border: 1px solid var(--kk-border);
		border-radius: var(--kk-radius);
		padding: 16px;
		margin-bottom: 12px;
	}
	.kk-ctable .kk-c-name {
		display: flex;
		align-items: center;
		justify-content: space-between;
		flex-wrap: wrap;
		gap: 10px;
		margin-bottom: 6px;
		font-weight: 400;
		text-align: left;
	}
	.kk-ctable .kk-c-name a { font-size: 17px; }
	.kk-ctable td { display: grid; grid-template-columns: 118px minmax(0, 1fr); gap: 10px; }
	.kk-ctable td::before { content: attr(data-label); color: var(--kk-muted); }
	.kk-ctable td.kk-col-tila { display: none; }
	.kk-ctable td.kk-col-linkki { display: block; margin-top: 6px; }
	.kk-ctable td.kk-col-linkki::before { content: none; }
	.kk-ctable td.kk-col-linkki .kk-btn { display: flex; width: 100%; min-height: 44px; font-size: 14px; border-radius: 8px; }
	.kk-ctable td.kk-col-linkki:has(.kk-nolink) { display: none; }
}

/* Desktop: table */
@media (min-width: 721px) {
	.kk-table-wrap { background: var(--kk-surface); border: 1px solid var(--kk-border); border-radius: var(--kk-radius); overflow-x: auto; }
	.kk-table-wrap--wide .kk-ctable { min-width: 1080px; }
	.kk-ctable thead th {
		background: var(--kk-head);
		border-bottom: 1px solid var(--kk-border);
		padding: 14px 16px;
		font-size: 12px;
		font-weight: 700;
		text-transform: uppercase;
		letter-spacing: 0.5px;
		color: var(--kk-text-2);
		white-space: nowrap;
	}
	.kk-ctable thead th:first-child,
	.kk-ctable tbody th { padding-left: 20px; }
	.kk-ctable tbody th,
	.kk-ctable tbody td { padding: 14px 16px; border-bottom: 1px solid var(--kk-line); vertical-align: middle; font-weight: 400; }
	.kk-ctable tbody tr:last-child th,
	.kk-ctable tbody tr:last-child td { border-bottom: 0; }
	.kk-ctable td.kk-col-tarkistettu,
	.kk-ctable td.kk-col-tilan_pvm { color: var(--kk-muted); white-space: nowrap; }
	.kk-ctable td.kk-col-linkki { white-space: nowrap; }
	.kk-ctable .kk-nolink { font-size: 13px; }
}

/* --------------------------------------------------------------------------
   Casino page
   -------------------------------------------------------------------------- */

.kk-layout { display: flex; gap: 28px; flex-wrap: wrap; align-items: flex-start; }
.kk-layout__main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.kk-layout__aside { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }

.kk-section { display: flex; flex-direction: column; gap: 12px; }
.kk-section > p { font-size: 15px; line-height: 1.55; color: var(--kk-text-2); }

.kk-intro > * { margin: 0; }
.kk-intro > * + * { margin-top: 12px; }
.kk-intro p { font-size: 18px; line-height: 1.6; color: var(--kk-text); max-width: 780px; }

.kk-dl { margin: 0; background: var(--kk-surface); border: 1px solid var(--kk-border); border-radius: var(--kk-radius); font-size: 15px; }
.kk-dl__row { display: grid; grid-template-columns: minmax(0, 1fr); border-bottom: 1px solid var(--kk-line); }
.kk-dl__row:last-child { border-bottom: 0; }
.kk-dl dt { padding: 13px 20px 2px; color: var(--kk-muted); }
.kk-dl dd { margin: 0; padding: 0 20px 13px; font-weight: 600; }
.kk-dl--plain dd { font-weight: 400; }
@media (min-width: 721px) {
	.kk-dl__row { grid-template-columns: minmax(150px, 220px) minmax(0, 1fr); }
	.kk-dl dt { padding: 13px 20px; }
	.kk-dl dd { padding: 13px 20px; }
}

.kk-chiplinks { display: flex; gap: 12px; flex-wrap: wrap; }
.kk-chiplinks a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	padding: 0 16px;
	background: var(--kk-surface);
	border: 1px solid var(--kk-border);
	border-radius: 8px;
	font-weight: 600;
	font-size: 15px;
	text-decoration: none;
	color: var(--kk-ink);
}
.kk-chiplinks a:hover { border-color: var(--kk-accent); color: var(--kk-accent); }
.kk-chiplinks .kk-pill { font-size: 11px; padding: 2px 8px; }

.kk-box { display: flex; flex-direction: column; gap: 10px; }
.kk-box--cta { gap: 12px; }
.kk-box--cta p { font-size: 13px; line-height: 1.5; color: var(--kk-muted); }
.kk-box a.kk-text-link { font-size: 14px; font-weight: 600; }

/* --------------------------------------------------------------------------
   FAQ and author
   -------------------------------------------------------------------------- */

.kk-faq { display: flex; flex-direction: column; gap: 14px; max-width: 760px; }
.kk-faq__item { display: flex; flex-direction: column; gap: 6px; }
.kk-faq__q { margin: 0; font-family: var(--kk-font); font-size: 17px; font-weight: 700; letter-spacing: 0; }
.kk-faq__a { margin: 0; font-size: 16px; line-height: 1.6; color: var(--kk-text); }

.kk-author { flex-direction: row; gap: 18px; align-items: center; flex-wrap: wrap; scroll-margin-top: 20px; }
.kk-author__img { width: 84px; height: 84px; border-radius: 50%; flex: 0 0 84px; object-fit: cover; }
.kk-author__img--empty { display: inline-flex; align-items: center; justify-content: center; background: var(--kk-line); color: var(--kk-muted); font: 700 28px var(--kk-display); }
.kk-author__body { display: flex; flex-direction: column; gap: 4px; flex: 1 1 220px; min-width: 0; }
.kk-author__name { font-weight: 700; font-size: 18px; }
.kk-author__role { font-size: 15px; color: var(--kk-muted); }
.kk-author__bio { font-size: 15px; line-height: 1.55; color: var(--kk-text); }

/* --------------------------------------------------------------------------
   Contact form (Contact Form 7)
   -------------------------------------------------------------------------- */

.wpcf7 form { display: flex; flex-direction: column; gap: 18px; }
.wpcf7 .wpcf7-form-control-wrap { display: block; }
.wpcf7 .kk-field { flex: none; }
.wpcf7 .wpcf7-not-valid { border-color: #b91c1c; }
.wpcf7 .wpcf7-not-valid-tip { display: block; margin-top: 6px; font-size: 13px; color: #b91c1c; }
.wpcf7 .kk-btn { align-self: flex-start; }
.wpcf7 .wpcf7-spinner { display: none; }
.wpcf7 form.submitting .wpcf7-spinner { display: inline-block; }
.wpcf7 .wpcf7-response-output { margin: 0; padding: 12px 16px; border-radius: 8px; font-size: 14px; border: 1px solid var(--kk-border); }
.wpcf7 form.sent .wpcf7-response-output { border-color: #16a34a; background: #f0fdf4; }
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.spam .wpcf7-response-output { border-color: #b91c1c; background: #fef2f2; }
.wpcf7 form.init .wpcf7-response-output,
.wpcf7 form.resetting .wpcf7-response-output,
.wpcf7 form.submitting .wpcf7-response-output { display: none; }
.wpcf7 .screen-reader-response { position: absolute; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); height: 1px; width: 1px; margin: -1px; padding: 0; border: 0; }
.wpcf7 .hidden-fields-container { display: none; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.kk-footer { background: var(--kk-ink); color: #e5e7eb; margin-top: auto; }
.kk-footer__inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 28px 16px;
	display: flex;
	justify-content: space-between;
	gap: 24px;
	flex-wrap: wrap;
	font-size: 14px;
	line-height: 1.6;
}
.kk-footer__brand { display: flex; flex-direction: column; gap: 6px; max-width: 520px; }
.kk-footer__name { font-family: var(--kk-display); font-weight: 700; font-size: 18px; color: #fff; }
.kk-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.kk-footer a { color: #fff; }
.kk-footer a:hover { color: #bfdbfe; }
.kk-footer a:focus-visible { outline-color: #93c5fd; }
@media (min-width: 721px) { .kk-footer__inner { padding: 28px 24px; } }

/* Samankaltaiset listat */
.kk-box--links a { font-size: 15px; font-weight: 600; }
