/* ==========================================================================
   TeenPattiMasters — design system
   ========================================================================== */

:root {
	/* Brand colours */
	--tpm-blue-950: #0b1650;
	--tpm-blue-900: #11206e;
	--tpm-blue-800: #1a2f96;
	--tpm-blue-700: #2342c4;
	--tpm-blue-600: #2f63e8;
	--tpm-gold: #f5b400;
	--tpm-gold-bright: #ffc93c;
	--tpm-gold-soft: #fff3c4;
	--tpm-gold-ink: #8a5800;

	/* Surfaces & text */
	--tpm-cream: #eef3ff;
	--tpm-paper: #fbfcff;
	--tpm-surface: #ffffff;
	--tpm-ink: #0f1a3d;
	--tpm-body-text: #2b3553;
	--tpm-muted: #5a6585;
	--tpm-border: #dbe3f5;
	--tpm-border-strong: #bccbee;
	--tpm-mint: #e6eeff;
	--tpm-on-dark: #e8edff;
	--tpm-on-dark-muted: #b8c3ea;

	/* Spacing scale */
	--tpm-space-1: .5rem;
	--tpm-space-2: 1rem;
	--tpm-space-3: 1.5rem;
	--tpm-space-4: 2rem;
	--tpm-space-5: 3rem;
	--tpm-space-6: 4rem;
	--tpm-space-7: clamp(2.5rem, 4.5vw, 3.5rem);

	/* Type */
	--tpm-heading: Georgia, "Iowan Old Style", "Palatino Linotype", "Times New Roman", serif;
	--tpm-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

	/* Shape & depth */
	--tpm-radius-sm: .625rem;
	--tpm-radius: 1rem;
	--tpm-radius-lg: 1.5rem;
	--tpm-shadow-sm: 0 1px 2px rgba(15, 26, 70, .05), 0 2px 8px rgba(15, 26, 70, .04);
	--tpm-shadow: 0 10px 30px -8px rgba(15, 26, 70, .16), 0 4px 10px -4px rgba(15, 26, 70, .06);
	--tpm-shadow-lg: 0 30px 60px -18px rgba(5, 10, 40, .5);
	--tpm-ring: 0 0 0 3px rgba(255, 201, 60, .55);

	/* Motion */
	--tpm-ease: cubic-bezier(.22, .7, .2, 1);
	--tpm-fast: .18s;
	--tpm-med: .32s;

	--tpm-header-h: 72px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 6.5rem; -webkit-text-size-adjust: 100%; }
body { margin: 0; color: var(--tpm-body-text); background: var(--tpm-paper); font-family: var(--tpm-body); font-size: 1rem; line-height: 1.7; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
img { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; }
a { color: var(--tpm-blue-700); text-underline-offset: .2em; text-decoration-thickness: 1px; transition: color var(--tpm-fast) ease; }
a:hover { color: var(--tpm-blue-600); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--tpm-gold); outline-offset: 3px; border-radius: 4px; }
::selection { color: var(--tpm-blue-950); background: var(--tpm-gold-bright); }
h1, h2, h3, h4 { margin: 0 0 var(--tpm-space-2); color: var(--tpm-ink); font-family: var(--tpm-heading); font-weight: 700; line-height: 1.12; letter-spacing: -.015em; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 2.2rem + 2.6vw, 4.25rem); letter-spacing: -.025em; }
h2 { font-size: clamp(1.85rem, 1.5rem + 1.6vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 1.15rem + .6vw, 1.55rem); }
p { margin: 0 0 var(--tpm-space-2); text-wrap: pretty; }
.wrap { width: min(100% - 3rem, 1200px); margin-inline: auto; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.tpm-skip-link { position: absolute; z-index: 1000; top: .5rem; left: .5rem; padding: .75rem 1rem; transform: translateY(-160%); color: var(--tpm-ink); background: var(--tpm-gold-bright); border-radius: var(--tpm-radius-sm); font-weight: 700; transition: transform var(--tpm-fast) ease; }
.tpm-skip-link:focus { transform: translateY(0); }

/* ---------- Notice bar ---------- */
.tpm-notice { color: var(--tpm-on-dark-muted); background: var(--tpm-blue-950); font-size: .78rem; letter-spacing: .01em; text-align: center; }
.tpm-notice .wrap { padding: .5rem 0; }
.tpm-notice strong { color: var(--tpm-gold-bright); }

/* ---------- Header & navigation ---------- */
.tpm-header { position: sticky; z-index: 100; top: 0; color: #eef2ff; background: rgba(17, 32, 110, .9); border-bottom: 1px solid rgba(255,255,255,.07); -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px); transition: box-shadow var(--tpm-med) ease, background var(--tpm-med) ease; }
.tpm-header.is-scrolled { background: rgba(11, 22, 80, .95); box-shadow: 0 10px 30px -12px rgba(0,0,0,.45); }
.admin-bar .tpm-header { top: 32px; }
.tpm-header__inner { min-height: var(--tpm-header-h); display: flex; align-items: center; justify-content: space-between; gap: var(--tpm-space-3); }
.tpm-brand { display: inline-flex; align-items: center; gap: .7rem; color: var(--tpm-gold-bright); font-family: var(--tpm-heading); font-size: 1.3rem; font-weight: 700; line-height: 1.1; letter-spacing: -.01em; text-decoration: none; white-space: nowrap; }
.tpm-brand:hover { color: #ffe27a; }
.tpm-brand__mark { display: block; flex: none; width: 2.5rem; height: 2.5rem; object-fit: cover; border-radius: .7rem; box-shadow: 0 0 0 1px rgba(255,255,255,.12), 0 4px 12px rgba(0,0,0,.3); transition: transform var(--tpm-med) var(--tpm-ease); }
.tpm-brand:hover .tpm-brand__mark { transform: rotate(-6deg) scale(1.05); }
.tpm-brand__light { color: #ffffff; font-weight: 400; }
.tpm-primary-nav { display: flex; align-items: center; gap: .25rem; }
.tpm-primary-nav a { position: relative; display: inline-flex; min-height: 44px; align-items: center; padding: .55rem 1rem; color: #dfe6ff; border-radius: 999px; font-size: .95rem; font-weight: 500; text-decoration: none; transition: background var(--tpm-fast) ease, color var(--tpm-fast) ease; }
.tpm-primary-nav a:hover { color: #fff; background: rgba(255,255,255,.07); }
.tpm-primary-nav a[aria-current="page"] { color: var(--tpm-blue-950); background: var(--tpm-gold-bright); font-weight: 600; }
.tpm-menu-toggle { display: none; width: 44px; height: 44px; place-items: center; color: white; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.22); border-radius: 12px; cursor: pointer; transition: background var(--tpm-fast) ease; }
.tpm-menu-toggle:hover { background: rgba(255,255,255,.1); }
.tpm-menu-toggle__icon, .tpm-menu-toggle__icon::before, .tpm-menu-toggle__icon::after { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; transition: transform var(--tpm-med) var(--tpm-ease), opacity var(--tpm-fast) ease, top var(--tpm-med) var(--tpm-ease); }
.tpm-menu-toggle__icon { position: relative; }
.tpm-menu-toggle__icon::before, .tpm-menu-toggle__icon::after { position: absolute; left: 0; content: ""; }
.tpm-menu-toggle__icon::before { top: -6px; }
.tpm-menu-toggle__icon::after { top: 6px; }
.tpm-menu-toggle[aria-expanded="true"] .tpm-menu-toggle__icon { background: transparent; }
.tpm-menu-toggle[aria-expanded="true"] .tpm-menu-toggle__icon::before { top: 0; transform: rotate(45deg); }
.tpm-menu-toggle[aria-expanded="true"] .tpm-menu-toggle__icon::after { top: 0; transform: rotate(-45deg); }

/* ---------- Reading progress & back to top (created by site.js) ---------- */
.tpm-progress { position: fixed; z-index: 120; top: 0; left: 0; width: 100%; height: 3px; pointer-events: none; transform: scaleX(0); transform-origin: 0 50%; background: linear-gradient(90deg, var(--tpm-gold), var(--tpm-gold-bright)); }
.admin-bar .tpm-progress { top: 32px; }
.tpm-back-to-top { position: fixed; z-index: 90; right: 1.25rem; bottom: 1.25rem; display: grid; width: 46px; height: 46px; place-items: center; color: var(--tpm-blue-950); background: var(--tpm-gold-bright); border: 0; border-radius: 50%; box-shadow: 0 10px 24px -6px rgba(0,0,0,.35); cursor: pointer; font-size: 1.15rem; font-weight: 700; opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity var(--tpm-med) ease, transform var(--tpm-med) var(--tpm-ease), visibility var(--tpm-med), background var(--tpm-fast) ease; }
.tpm-back-to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.tpm-back-to-top:hover { background: #ffd75e; transform: translateY(-3px); }

/* ---------- Floating download widget (all pages) ---------- */
.tpm-float-dl { position: fixed; z-index: 95; right: 14px; top: 50%; width: 136px; transform: translateY(-50%); animation: tpm-float-dl-in .55s var(--tpm-ease) .7s both; }
.tpm-float-dl.is-hidden { display: none; }
.tpm-float-dl__link { display: flex; flex-direction: column; align-items: center; gap: .55rem; padding: .6rem .6rem .7rem; color: #fff; text-align: center; text-decoration: none; background: radial-gradient(10rem 8rem at 50% 0%, rgba(255,201,60,.22), transparent 70%), linear-gradient(170deg, var(--tpm-blue-700), var(--tpm-blue-950)); border: 1px solid rgba(255,201,60,.55); border-radius: 1.1rem; box-shadow: 0 18px 40px -12px rgba(5,10,40,.55), 0 0 0 4px rgba(255,201,60,.08); transition: transform var(--tpm-med) var(--tpm-ease), box-shadow var(--tpm-med) ease; }
.tpm-float-dl__link:hover { color: #fff; transform: translateY(-3px); box-shadow: 0 24px 46px -12px rgba(5,10,40,.6), 0 0 0 4px rgba(255,201,60,.16); }
.tpm-float-dl__link:focus-visible { outline: none; box-shadow: var(--tpm-ring), 0 18px 40px -12px rgba(5,10,40,.55); }
.tpm-float-dl__icon { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: .8rem; box-shadow: 0 0 0 1px rgba(255,255,255,.15); }
.tpm-float-dl__text { display: flex; flex-direction: column; gap: .1rem; line-height: 1.2; }
.tpm-float-dl__title { color: var(--tpm-gold-bright); font-family: var(--tpm-heading); font-size: .9rem; font-weight: 700; }
.tpm-float-dl__sub { color: var(--tpm-on-dark-muted); font-size: .7rem; }
.tpm-float-dl__btn { display: inline-flex; width: 100%; min-height: 38px; align-items: center; justify-content: center; gap: .35rem; color: var(--tpm-blue-950); background: linear-gradient(180deg, #ffe27a, var(--tpm-gold-bright) 55%, #f5ac00); border-radius: 999px; box-shadow: 0 6px 14px -6px rgba(245,180,0,.8), inset 0 1px 0 rgba(255,255,255,.5); font-size: .8rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.tpm-float-dl__close { position: absolute; z-index: 1; top: -9px; right: -7px; display: grid; width: 26px; height: 26px; padding: 0; place-items: center; color: #fff; background: var(--tpm-blue-950); border: 1px solid rgba(255,255,255,.35); border-radius: 50%; box-shadow: 0 4px 10px rgba(0,0,0,.3); cursor: pointer; font-size: 1rem; line-height: 1; transition: background var(--tpm-fast) ease; }
.tpm-float-dl__close:hover { background: var(--tpm-blue-700); }
.tpm-float-dl__close > span { display: none; }
.tpm-float-dl__close::before, .tpm-float-dl__close::after { position: absolute; top: 50%; left: 50%; width: 10px; height: 2px; margin: -1px 0 0 -5px; background: currentColor; border-radius: 1px; content: ""; }
.tpm-float-dl__close::before { transform: rotate(45deg); }
.tpm-float-dl__close::after { transform: rotate(-45deg); }
@keyframes tpm-float-dl-in { from { opacity: 0; transform: translate(24px, -50%); } to { opacity: 1; transform: translate(0, -50%); } }
@keyframes tpm-float-dl-up { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* Not enough side margin: show as a slim bar at the bottom instead of covering content. */
@media (max-width: 1479px) {
	.tpm-float-dl { top: auto; right: 12px; bottom: 12px; left: 12px; width: auto; max-width: 460px; margin-inline: auto; transform: none; animation-name: tpm-float-dl-up; }
	.tpm-float-dl__link { flex-direction: row; gap: .75rem; padding: .5rem .55rem .5rem .5rem; text-align: left; border-radius: 1rem; }
	.tpm-float-dl__link:hover { transform: translateY(-2px); }
	.tpm-float-dl__icon { flex: none; width: 48px; border-radius: .7rem; }
	.tpm-float-dl__text { flex: 1; min-width: 0; }
	.tpm-float-dl__title { font-size: 1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
	.tpm-float-dl__sub { font-size: .75rem; }
	.tpm-float-dl__btn { flex: none; width: auto; min-height: 42px; padding: 0 1.1rem; font-size: .82rem; }
	body.has-float-dl { padding-bottom: 84px; }
	body.has-float-dl .tpm-back-to-top { bottom: 92px; }
}
@media (max-width: 560px) {
	.tpm-float-dl { right: 10px; bottom: 10px; left: 10px; }
	.tpm-float-dl__link { gap: .6rem; }
	.tpm-float-dl__icon { width: 44px; }
	.tpm-float-dl__title { font-size: .92rem; }
	.tpm-float-dl__sub { font-size: .72rem; }
	.tpm-float-dl__btn { min-height: 40px; padding: 0 .85rem; font-size: .76rem; letter-spacing: .04em; }
}

/* ---------- Dark hero surfaces (shared) ---------- */
.tpm-home-hero, .tpm-page-hero, .tpm-detail-hero, .tpm-blog-hero { position: relative; isolation: isolate; overflow: hidden; color: var(--tpm-on-dark); background-color: var(--tpm-blue-900); background-image: radial-gradient(60rem 30rem at 92% 110%, rgba(245,180,0,.16), transparent 60%), radial-gradient(40rem 26rem at -5% 100%, rgba(62,197,255,.22), transparent 65%); }
.tpm-home-hero::after, .tpm-page-hero::after, .tpm-detail-hero::after, .tpm-blog-hero::after { position: absolute; z-index: -1; inset: 0; background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1px); background-size: 22px 22px; -webkit-mask-image: linear-gradient(180deg, transparent, #000 35%, #000 70%, transparent); mask-image: linear-gradient(180deg, transparent, #000 35%, #000 70%, transparent); content: ""; pointer-events: none; }
.tpm-home-hero h1, .tpm-page-hero h1, .tpm-detail-hero h1, .tpm-blog-hero h1 { max-width: 780px; color: #ffffff; }
.tpm-home-hero h1 em, .tpm-page-hero h1 em, .tpm-detail-hero h1 em, .tpm-blog-hero h1 em { color: var(--tpm-gold-bright); }

/* ---------- Home hero ---------- */
.tpm-home-hero { padding: clamp(2.5rem, 5vw, 4.5rem) 0 0; }
.tpm-home-hero::before { position: absolute; inset: 0 0 auto; height: 1px; background: linear-gradient(90deg, transparent, rgba(245,180,0,.6), transparent); content: ""; }
.tpm-home-hero__inner { position: relative; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(300px, .7fr); align-items: center; gap: clamp(2rem, 5vw, 4.5rem); }
.tpm-home-hero__copy { max-width: 680px; }
.tpm-home-hero__copy h1 { font-size: clamp(2.1rem, 1.85rem + 2vw, 3.6rem); }
.tpm-home-hero__copy .tpm-lead { font-size: clamp(1rem, .96rem + .2vw, 1.1rem); }
.tpm-home-hero__copy > .tpm-eyebrow:first-child { margin-bottom: .5rem; color: rgba(255,201,60,.75); font-size: 1rem; letter-spacing: .18em; }
.tpm-home-hero__aside { position: relative; display: flex; flex-direction: column; align-items: center; gap: 1.75rem; }
.tpm-home-hero__aside::before { position: absolute; z-index: -1; top: 8%; left: 50%; width: 120%; aspect-ratio: 1; transform: translateX(-50%); background: radial-gradient(circle, rgba(255,201,60,.28), transparent 62%); content: ""; filter: blur(10px); }
.tpm-hero-image { display: block; width: min(100%, 260px); height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 24px; box-shadow: 0 0 0 1px rgba(255,255,255,.12), var(--tpm-shadow-lg); animation: tpm-float 7s ease-in-out infinite; }
.tpm-home-hero__aside .tpm-button-row { display: grid; width: min(100%, 300px); gap: .75rem; margin-top: 0; }
.tpm-home-hero__aside .tpm-button { width: 100%; padding-inline: 1rem; white-space: nowrap; }
.tpm-red { color: #a43e31; }
.tpm-home-stats { display: flex; justify-content: center; margin-top: clamp(2rem, 4vw, 3rem); padding: 1.1rem 0 1.25rem; border-top: 1px solid rgba(255,255,255,.12); }
.tpm-home-stats div { display: flex; flex: 0 1 220px; flex-direction: column; align-items: center; padding: 0 1rem; text-align: center; }
.tpm-home-stats div + div { border-left: 1px solid rgba(255,255,255,.12); }
.tpm-home-stats strong { color: var(--tpm-gold-bright); font-family: var(--tpm-heading); font-size: 2rem; line-height: 1.2; }
.tpm-home-stats span { color: var(--tpm-on-dark-muted); font-size: .85rem; }
@keyframes tpm-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ---------- Eyebrows, lead, buttons ---------- */
.tpm-eyebrow { margin: 0 0 .75rem; color: var(--tpm-gold-ink); font-size: .75rem; font-weight: 700; letter-spacing: .14em; line-height: 1.4; text-transform: uppercase; }
.tpm-eyebrow--gold { color: var(--tpm-gold-bright); }
.tpm-lead { max-width: 640px; margin: var(--tpm-space-3) 0 0; color: #cbd5f5; font-size: clamp(1.05rem, 1rem + .35vw, 1.2rem); line-height: 1.7; }
.tpm-button-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: var(--tpm-space-4); }
.tpm-button { position: relative; display: inline-flex; min-height: 50px; align-items: center; justify-content: center; gap: .55rem; padding: .75rem 1.35rem; border: 1px solid transparent; border-radius: .8rem; font-size: .98rem; font-weight: 650; line-height: 1.2; text-decoration: none; cursor: pointer; transition: transform var(--tpm-fast) var(--tpm-ease), box-shadow var(--tpm-fast) ease, background var(--tpm-fast) ease, color var(--tpm-fast) ease, border-color var(--tpm-fast) ease; }
.tpm-button > span[aria-hidden="true"] { display: inline-block; transition: transform var(--tpm-fast) var(--tpm-ease); }
.tpm-button:hover { transform: translateY(-2px); }
.tpm-button:hover > span[aria-hidden="true"] { transform: translateX(3px); }
.tpm-button:active { transform: translateY(0) scale(.98); }
.tpm-button:focus-visible { outline: none; box-shadow: var(--tpm-ring); }
.tpm-button[aria-disabled="true"] { cursor: not-allowed; opacity: .6; box-shadow: none; }
.tpm-button[aria-disabled="true"]:hover { transform: none; }
.tpm-button--gold { color: #0b1650; background: linear-gradient(180deg, #ffe27a, var(--tpm-gold-bright) 55%, #f5ac00); box-shadow: 0 8px 20px -8px rgba(245,180,0,.7), inset 0 1px 0 rgba(255,255,255,.45); }
.tpm-button--gold:hover { color: #0b1650; box-shadow: 0 14px 26px -10px rgba(245,180,0,.85), inset 0 1px 0 rgba(255,255,255,.5); }
.tpm-button--dark { color: white; background: var(--tpm-blue-800); box-shadow: 0 8px 20px -10px rgba(17,32,110,.6); }
.tpm-button--dark:hover { color: white; background: var(--tpm-blue-700); }
.tpm-button--outline-light { color: #f2f5ff; background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.28); }
.tpm-button--outline-light:hover { color: white; background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.45); }
.tpm-button--outline { color: var(--tpm-blue-800); background: var(--tpm-surface); border-color: var(--tpm-border-strong); }
.tpm-button--outline:hover { color: var(--tpm-blue-900); background: var(--tpm-cream); }

/* ---------- Sections ---------- */
.tpm-section { padding: var(--tpm-space-7) 0; }
.tpm-section--cream { background: var(--tpm-cream); }
.tpm-section--paper { background: var(--tpm-paper); }
.tpm-section--home-blog { padding-bottom: var(--tpm-space-7); }
.tpm-section--responsible { padding: clamp(2rem, 4vw, 2.75rem) 0; background: var(--tpm-paper); }
.tpm-section-heading { display: flex; align-items: end; justify-content: space-between; gap: var(--tpm-space-3); margin-bottom: clamp(1.25rem, 2.5vw, 1.75rem); }
.tpm-section-heading h2 { margin-bottom: 0; }
.tpm-section-heading .tpm-eyebrow { display: inline-flex; align-items: center; gap: .6rem; }
.tpm-section-heading .tpm-eyebrow::before { width: 1.5rem; height: 2px; background: var(--tpm-gold); border-radius: 2px; content: ""; }
.tpm-section-heading--center { justify-content: center; text-align: center; }
.tpm-section-heading--center .tpm-eyebrow { justify-content: center; }
.tpm-section-heading--center .tpm-eyebrow::after { width: 1.5rem; height: 2px; background: var(--tpm-gold); border-radius: 2px; content: ""; }
.tpm-text-link { display: inline-flex; min-height: 44px; align-items: center; gap: .45rem; color: var(--tpm-gold-ink); font-weight: 700; text-decoration: none; transition: color var(--tpm-fast) ease, gap var(--tpm-fast) var(--tpm-ease); }
.tpm-text-link:hover { gap: .7rem; color: var(--tpm-blue-800); }

/* ---------- Cards ---------- */
.tpm-card-grid { display: grid; gap: clamp(1rem, 2vw, 1.5rem); }
.tpm-card-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tpm-card { position: relative; min-width: 0; overflow: hidden; background: var(--tpm-surface); border: 1px solid var(--tpm-border); border-radius: var(--tpm-radius-lg); box-shadow: var(--tpm-shadow-sm); transition: transform var(--tpm-med) var(--tpm-ease), box-shadow var(--tpm-med) ease, border-color var(--tpm-med) ease; }
.tpm-card::before { position: absolute; z-index: 1; inset: 0 0 auto; height: 3px; transform: scaleX(0); transform-origin: 0 50%; background: linear-gradient(90deg, var(--tpm-gold), var(--tpm-gold-bright)); content: ""; transition: transform var(--tpm-med) var(--tpm-ease); }
.tpm-card:hover { transform: translateY(-5px); border-color: var(--tpm-border-strong); box-shadow: var(--tpm-shadow); }
.tpm-card:hover::before, .tpm-card:focus-within::before { transform: scaleX(1); }
.tpm-card__link { display: flex; height: 100%; flex-direction: column; color: inherit; text-decoration: none; }
.tpm-card__link:focus-visible { outline: none; }
.tpm-card:has(.tpm-card__link:focus-visible) { box-shadow: var(--tpm-ring), var(--tpm-shadow); }
.tpm-card__image { overflow: hidden; aspect-ratio: 16 / 10; background: var(--tpm-blue-900); }
.tpm-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--tpm-ease); }
.tpm-card:hover .tpm-card__image img { transform: scale(1.05); }
.tpm-card__image--placeholder { display: grid; place-items: center; background: radial-gradient(circle at 70% 20%, rgba(255,201,60,.18), transparent 45%), radial-gradient(circle at 50% 30%, #2440b8, var(--tpm-blue-900) 70%); }
.tpm-card__image--placeholder span { display: grid; width: 84px; height: 116px; place-items: center; color: var(--tpm-gold-bright); background: rgba(255,255,255,.04); border: 1px solid rgba(255,201,60,.45); border-radius: 12px; box-shadow: 0 18px 30px -12px rgba(0,0,0,.5); font-size: 2.8rem; transform: rotate(-7deg); transition: transform .5s var(--tpm-ease); }
.tpm-card:hover .tpm-card__image--placeholder span { transform: rotate(0deg) translateY(-4px); }
.tpm-card__body { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: 1.2rem 1.3rem 1.1rem; }
.tpm-card__body h3 { margin: .35rem 0 .6rem; font-size: 1.35rem; line-height: 1.22; transition: color var(--tpm-fast) ease; }
.tpm-card:hover .tpm-card__body h3 { color: var(--tpm-blue-700); }
.tpm-card__body p { margin-bottom: 1.1rem; color: var(--tpm-muted); font-size: .95rem; line-height: 1.65; }
.tpm-card__category { display: inline-block; margin-bottom: .25rem; padding: .3rem .7rem; color: var(--tpm-blue-800); background: var(--tpm-mint); border-radius: 999px; font-size: .66rem; letter-spacing: .09em; }
.tpm-card__meta { display: flex; flex-wrap: wrap; gap: .5rem 1rem; margin-top: auto; padding-top: .9rem; width: 100%; color: var(--tpm-muted); border-top: 1px solid #e8edf8; font-size: .8rem; }
.tpm-card__meta span + span::before { margin-right: .6rem; color: var(--tpm-border-strong); content: "•"; }
.tpm-card .tpm-text-link { min-height: 36px; margin-top: .35rem; font-size: .9rem; }
.tpm-card:hover .tpm-text-link { gap: .7rem; }

/* ---------- Empty state ---------- */
.tpm-empty-state { padding: clamp(2rem, 5vw, 4rem); text-align: center; background: rgba(255,255,255,.6); border: 1px dashed var(--tpm-border-strong); border-radius: var(--tpm-radius-lg); }
.tpm-empty-state h2, .tpm-empty-state h3 { margin-bottom: .55rem; }
.tpm-empty-state p { color: var(--tpm-muted); }
.tpm-empty-state__mark { display: inline-grid; width: 3.25rem; height: 3.25rem; margin-bottom: 1rem; place-items: center; color: var(--tpm-gold-ink); background: var(--tpm-gold-soft); border-radius: 50%; font-size: 1.4rem; }

/* ---------- Featured game ---------- */
.tpm-featured-game { position: relative; display: grid; grid-template-columns: 110px 1fr; align-items: center; gap: clamp(1.25rem, 3vw, 2rem); margin-top: clamp(1.25rem, 2.5vw, 1.75rem); padding: clamp(1.25rem, 3vw, 1.75rem); overflow: hidden; color: var(--tpm-on-dark); background: radial-gradient(30rem 16rem at 100% 0%, rgba(255,201,60,.18), transparent 60%), linear-gradient(135deg, var(--tpm-blue-800), var(--tpm-blue-950)); border-radius: var(--tpm-radius-lg); box-shadow: var(--tpm-shadow); }
.tpm-featured-game h3 { margin-bottom: .5rem; color: #ffffff; font-size: clamp(1.6rem, 1.3rem + 1vw, 2.2rem); }
.tpm-featured-game p:not(.tpm-eyebrow) { max-width: 640px; color: #cbd5f5; }
.tpm-featured-game .tpm-button { margin-top: .5rem; }
.tpm-featured-game__mark { display: grid; width: 104px; height: 104px; overflow: hidden; place-items: center; color: var(--tpm-gold-bright); background: rgba(255,255,255,.04); border: 1px solid rgba(255,201,60,.4); border-radius: 1.4rem; box-shadow: 0 16px 30px -14px rgba(0,0,0,.6); font-size: 3rem; }
.tpm-featured-game__mark img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Values grid ---------- */
.tpm-values-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: clamp(1rem, 2vw, 1.5rem); margin-top: 0; }
.tpm-values-grid article { padding: 1.3rem 1.25rem; background: var(--tpm-surface); border: 1px solid var(--tpm-border); border-radius: var(--tpm-radius-lg); box-shadow: var(--tpm-shadow-sm); transition: transform var(--tpm-med) var(--tpm-ease), box-shadow var(--tpm-med) ease; }
.tpm-values-grid article:hover { transform: translateY(-4px); box-shadow: var(--tpm-shadow); }
.tpm-values-grid article > span { display: inline-grid; width: 3rem; height: 3rem; margin-bottom: 1rem; place-items: center; color: var(--tpm-gold-ink); background: var(--tpm-gold-soft); border-radius: .9rem; font-size: 1.3rem; }
.tpm-values-grid h3 { margin-bottom: .45rem; font-size: 1.25rem; }
.tpm-values-grid p { margin: 0; color: var(--tpm-muted); font-size: .93rem; }

/* ---------- Responsible box (home) ---------- */
.tpm-responsible-box { display: flex; align-items: flex-start; gap: 1rem; padding: 1.25rem 1.5rem; color: var(--tpm-blue-900); background: #eaf0ff; border: 1px solid #cdd9f5; border-radius: var(--tpm-radius); }
.tpm-responsible-box > span { display: grid; flex: none; width: 2rem; height: 2rem; place-items: center; color: var(--tpm-gold-ink); background: var(--tpm-gold-soft); border-radius: 50%; font-size: 1rem; }
.tpm-responsible-box p { margin: 0; align-self: center; }

/* ---------- Page heroes ---------- */
.tpm-page-hero { padding: clamp(2.5rem, 5vw, 4rem) 0; }
.tpm-page-hero .tpm-lead { max-width: 640px; }
.tpm-page-hero h1 { font-size: clamp(2.6rem, 2.2rem + 2.4vw, 4.25rem); }

/* ---------- Responsible gaming page ---------- */
.tpm-responsible-hero { padding-top: 0; padding-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.tpm-responsible-hero .tpm-breadcrumbs { padding-top: 1rem; padding-bottom: clamp(1.75rem, 4vw, 2.75rem); }
.tpm-responsible-hero .tpm-breadcrumbs ol { color: var(--tpm-on-dark-muted); }
.tpm-responsible-hero .tpm-breadcrumbs li + li::before { color: var(--tpm-gold); }
.tpm-responsible-hero .tpm-breadcrumbs [aria-current="page"] { color: var(--tpm-gold-bright); }
.tpm-responsible-hero .tpm-lead { max-width: 640px; }
.tpm-responsible-hero__suits { margin-bottom: .8rem; color: rgba(255,201,60,.72); font-size: .9rem; letter-spacing: .8rem; }
.tpm-responsible-main { padding-top: clamp(2rem, 4vw, 3rem); }
.tpm-responsible-layout { display: grid; grid-template-columns: minmax(0, 760px) minmax(240px, 300px); justify-content: space-between; gap: clamp(2.2rem, 6vw, 5rem); }
.tpm-responsible-article { min-width: 0; }
.tpm-responsible-article > section { padding: clamp(1.5rem, 3vw, 2.25rem); background: var(--tpm-surface); border: 1px solid var(--tpm-border); border-radius: var(--tpm-radius-lg); box-shadow: var(--tpm-shadow-sm); scroll-margin-top: 6.5rem; }
.tpm-responsible-article > section + section { margin-top: clamp(1.25rem, 2.5vw, 1.75rem); }
.tpm-responsible-article h2 { margin-top: 0; font-size: clamp(1.6rem, 1.4rem + 1vw, 2.15rem); }
.tpm-responsible-article .tpm-rich-content > :last-child { margin-bottom: 0; }
.tpm-responsible-rule, .tpm-responsible-help-note { margin: 1.5rem 0 0; padding: 1.1rem 1.25rem; border-radius: var(--tpm-radius-sm); }
.tpm-responsible-rule { color: var(--tpm-blue-900); background: #eaf0ff; border: 1px solid #cdd9f5; border-left: 4px solid var(--tpm-blue-700); }
.tpm-responsible-rule strong, .tpm-responsible-help-note strong { display: block; margin-bottom: .3rem; color: var(--tpm-blue-950); font-family: var(--tpm-heading); font-size: 1.1rem; }
.tpm-responsible-rule p, .tpm-responsible-help-note p { margin: 0; }
.tpm-responsible-help-note { color: #6b4a00; background: #fff8e1; border: 1px solid #ffe08a; border-left: 4px solid var(--tpm-gold); }
.tpm-responsible-table { max-width: 100%; margin: 1.2rem 0 0; overflow-x: auto; }
.tpm-responsible-table table { display: table; width: 100%; overflow: visible; }
.tpm-responsible-table th, .tpm-responsible-table td { min-width: 135px; vertical-align: top; }
.tpm-responsible-table--self-check th:last-child, .tpm-responsible-table--self-check td:last-child { min-width: 100px; white-space: nowrap; }
.tpm-responsible-sidebar { position: sticky; top: calc(var(--tpm-header-h) + 1.5rem); align-self: start; display: grid; align-content: start; gap: 1rem; }
.tpm-responsible-sidebar-card { padding: 1.4rem; color: #cdd6f5; background: linear-gradient(160deg, var(--tpm-blue-800), var(--tpm-blue-950)); border-radius: var(--tpm-radius-lg); box-shadow: var(--tpm-shadow); }
.tpm-responsible-sidebar-card h2 { margin-bottom: .7rem; color: var(--tpm-gold-bright); font-size: 1.3rem; }
.tpm-responsible-sidebar-card p { margin-bottom: 0; font-size: .92rem; }
.tpm-responsible-sidebar-card ul { display: grid; gap: .1rem; margin: 0; padding: 0; list-style: none; }
.tpm-responsible-sidebar-card li { padding: 0; border-bottom: 1px solid rgba(255,255,255,.1); font-size: .91rem; }
.tpm-responsible-sidebar-card li:last-child { border-bottom: 0; }
.tpm-responsible-sidebar-card a { color: #ffd34d; font-weight: 600; }
.tpm-responsible-sidebar-card a:hover { color: #fff; }
.tpm-responsible-sidebar-card li a { display: flex; min-height: 44px; align-items: center; font-weight: 400; text-decoration: none; transition: color var(--tpm-fast) ease, padding var(--tpm-fast) var(--tpm-ease); }
.tpm-responsible-sidebar-card li a:hover { padding-left: .3rem; }
.tpm-responsible-anchor-target { scroll-margin-top: 6.5rem; }
.tpm-responsible-related { margin-top: clamp(2.5rem, 5vw, 4rem); }
.tpm-responsible-related h2 { margin-bottom: 1rem; }
.tpm-responsible-related .tpm-card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tpm-responsible-related .tpm-card__body h3 { font-size: 1.15rem; }
.tpm-responsible-related .tpm-card__body { padding: 1.1rem; }

/* ---------- Pagination & filters ---------- */
.tpm-pagination { margin-top: var(--tpm-space-4); }
.tpm-pagination .nav-links, .tpm-pagination ul.page-numbers { display: flex; justify-content: center; flex-wrap: wrap; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.tpm-pagination a, .tpm-pagination span { display: grid; min-width: 44px; min-height: 44px; padding: .45rem .9rem; place-items: center; color: var(--tpm-blue-900); background: var(--tpm-surface); border: 1px solid var(--tpm-border); border-radius: .7rem; font-weight: 600; text-decoration: none; transition: background var(--tpm-fast) ease, border-color var(--tpm-fast) ease, color var(--tpm-fast) ease; }
.tpm-pagination a:hover { background: var(--tpm-gold-soft); border-color: var(--tpm-border-strong); }
.tpm-pagination .current { color: #fff; background: var(--tpm-blue-800); border-color: var(--tpm-blue-800); }
.tpm-filter-list { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: clamp(1.5rem, 3vw, 2.25rem); }
.tpm-filter-list a { display: inline-flex; min-height: 42px; align-items: center; padding: .45rem 1.05rem; color: var(--tpm-blue-900); background: var(--tpm-surface); border: 1px solid var(--tpm-border); border-radius: 999px; font-size: .88rem; font-weight: 600; text-decoration: none; box-shadow: var(--tpm-shadow-sm); transition: background var(--tpm-fast) ease, color var(--tpm-fast) ease, border-color var(--tpm-fast) ease, transform var(--tpm-fast) var(--tpm-ease); }
.tpm-filter-list a:hover { transform: translateY(-1px); border-color: var(--tpm-border-strong); }
.tpm-filter-list a.is-active { color: #fff; background: var(--tpm-blue-800); border-color: var(--tpm-blue-800); }

/* ---------- Breadcrumbs ---------- */
.tpm-breadcrumbs-band { background: var(--tpm-blue-900); }
.tpm-breadcrumbs-band .tpm-breadcrumbs ol { color: var(--tpm-on-dark-muted); }
.tpm-breadcrumbs-band .tpm-breadcrumbs li + li::before { color: var(--tpm-gold); }
.tpm-breadcrumbs-band .tpm-breadcrumbs [aria-current="page"] { color: var(--tpm-gold-bright); }
.tpm-breadcrumbs { padding-top: 1.1rem; padding-bottom: .6rem; }
.tpm-breadcrumbs ol { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; padding: 0; color: var(--tpm-muted); font-size: .82rem; list-style: none; }
.tpm-breadcrumbs li { min-width: 0; }
.tpm-breadcrumbs li + li::before { margin-right: .5rem; color: #8c97bd; content: "›"; }
.tpm-breadcrumbs [aria-current="page"] { display: inline-block; max-width: 42ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }
.tpm-breadcrumbs a { color: inherit; text-decoration: none; }
.tpm-breadcrumbs a:hover { color: #fff; text-decoration: underline; }

/* ---------- Detail heroes ---------- */
.tpm-detail-hero { padding: 1.75rem 0 clamp(2.25rem, 4vw, 3.25rem); }
.tpm-detail-hero__inner { display: grid; grid-template-columns: minmax(0,1fr) minmax(220px,.55fr); align-items: center; gap: var(--tpm-space-5); }
.tpm-detail-hero__inner--text { grid-template-columns: minmax(0, 1fr); }
.tpm-detail-hero h1 { font-size: clamp(2.3rem, 2rem + 2.2vw, 4rem); }
.tpm-detail-hero .tpm-lead, .tpm-blog-hero .tpm-lead { margin-top: 1rem; }
.tpm-detail-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.2rem; margin: 1.4rem 0 0; color: var(--tpm-on-dark-muted); font-size: .87rem; }
.tpm-detail-meta span + span::before, .tpm-detail-meta time::before { margin-right: .55rem; color: var(--tpm-gold); content: "·"; }
.tpm-detail-hero .tpm-button { margin-top: 1.5rem; }
.tpm-detail-hero__image { overflow: hidden; max-height: 340px; border: 1px solid rgba(255,255,255,.14); border-radius: var(--tpm-radius-lg); box-shadow: var(--tpm-shadow-lg); }
.tpm-detail-hero__image img { width: 100%; height: 320px; object-fit: cover; }

/* ---------- Article layout ---------- */
.tpm-detail-layout { display: grid; grid-template-columns: minmax(0, 760px) minmax(240px, 300px); justify-content: space-between; gap: clamp(2.2rem, 6vw, 5rem); padding-top: clamp(2rem, 4vw, 3rem); padding-bottom: var(--tpm-space-7); }
.tpm-article { min-width: 0; }

/* ---------- Download app card (blog posts) ---------- */
.tpm-download-card { position: relative; display: flex; align-items: center; gap: 1.1rem; margin-bottom: clamp(1.5rem, 3vw, 2rem); padding: 1.1rem 1.25rem; overflow: hidden; color: var(--tpm-on-dark); background: radial-gradient(22rem 10rem at 100% 0%, rgba(255,201,60,.18), transparent 65%), linear-gradient(135deg, var(--tpm-blue-800), var(--tpm-blue-950)); border: 1px solid rgba(255,255,255,.08); border-radius: var(--tpm-radius-lg); box-shadow: var(--tpm-shadow); }
.tpm-download-card__icon { flex: none; width: 72px; height: 72px; object-fit: cover; border-radius: 1rem; box-shadow: 0 0 0 1px rgba(255,255,255,.15), 0 8px 18px -6px rgba(0,0,0,.5); }
.tpm-download-card__info { flex: 1; min-width: 0; }
.tpm-download-card__title { margin: 0 0 .2rem; color: #fff; font-family: var(--tpm-heading); font-size: 1.3rem; font-weight: 700; line-height: 1.2; }
.tpm-download-card__meta { margin: 0; color: var(--tpm-on-dark-muted); font-size: .9rem; }
.tpm-download-card__button { flex: none; min-height: 48px; padding-inline: 1.4rem; white-space: nowrap; }
.tpm-download-card__button:hover > span[aria-hidden="true"] { transform: translateY(2px); }

/* ---------- Rich content ---------- */
.tpm-rich-content { color: var(--tpm-body-text); font-size: 1.05rem; line-height: 1.85; }
.tpm-rich-content > * + * { margin-top: 1.1em; }
.tpm-rich-content h2, .tpm-content-section h2 { margin: 2.2em 0 .6em; font-size: clamp(1.6rem, 1.4rem + 1vw, 2.2rem); scroll-margin-top: 6.5rem; }
.tpm-rich-content h3 { margin: 1.8em 0 .5em; font-size: 1.4rem; scroll-margin-top: 6.5rem; }
.tpm-rich-content h4 { margin: 1.5em 0 .45em; font-size: 1.18rem; }
.tpm-rich-content p { margin: 0 0 1.15em; }
.tpm-rich-content ul, .tpm-rich-content ol { padding-left: 1.4em; }
.tpm-rich-content li { padding-left: .25em; }
.tpm-rich-content li + li { margin-top: .45em; }
.tpm-rich-content li::marker { color: var(--tpm-gold); font-weight: 700; }
.tpm-rich-content strong { color: var(--tpm-ink); }
.tpm-rich-content blockquote { margin: 1.6em 0; padding: 1.1rem 1.4rem; color: #1f3170; background: var(--tpm-mint); border-left: 4px solid var(--tpm-blue-700); border-radius: 0 var(--tpm-radius-sm) var(--tpm-radius-sm) 0; font-family: var(--tpm-heading); font-size: 1.1rem; }
.tpm-rich-content table { display: block; width: 100%; overflow-x: auto; border-collapse: separate; border-spacing: 0; background: var(--tpm-surface); border: 1px solid var(--tpm-border); border-radius: var(--tpm-radius-sm); }
.tpm-rich-content th { color: #ffffff; background: var(--tpm-blue-900); font-size: .9rem; letter-spacing: .02em; text-align: left; }
.tpm-rich-content th, .tpm-rich-content td { min-width: 120px; padding: .8rem 1rem; border-bottom: 1px solid var(--tpm-border); }
.tpm-rich-content tr:last-child td { border-bottom: 0; }
.tpm-rich-content .tpm-responsible-table table { display: table; width: 100%; overflow: visible; }
.tpm-rich-content tr:nth-child(even) td { background: #f5f8ff; }
.tpm-rich-content img { border-radius: var(--tpm-radius); }
.tpm-rich-content a { font-weight: 600; text-decoration-color: rgba(35,66,196,.35); }
.tpm-rich-content a:hover { text-decoration-color: currentColor; }
.tpm-content-section { margin-top: clamp(1.75rem, 3vw, 2.25rem); scroll-margin-top: 6.5rem; }
.tpm-content-section h2 { margin-top: 0; }
.tpm-article > .tpm-content-section:first-child, .tpm-article > .tpm-toc + .tpm-content-section { margin-top: 0; }
.tpm-section-image { margin-top: 1.25rem; border-radius: var(--tpm-radius); box-shadow: var(--tpm-shadow-sm); }

/* ---------- Home: long-form article ---------- */
.tpm-section.tpm-home-about { padding-top: 2rem; padding-bottom: 2.5rem; }
.tpm-home-about__article { max-width: none; }
.tpm-home-about__article > .tpm-eyebrow { display: inline-flex; align-items: center; gap: .6rem; margin-bottom: .5rem; }
.tpm-home-about__article > .tpm-eyebrow::before { width: 1.5rem; height: 2px; background: var(--tpm-gold); border-radius: 2px; content: ""; }
.tpm-home-about__article > .tpm-eyebrow + h2 { margin-top: 0; }
.tpm-home-about__article h2 { margin-top: .75em; padding-top: .75em; border-top: 1px solid var(--tpm-border); }
.tpm-home-about__article > .tpm-eyebrow + h2, .tpm-home-about__article h2:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }
.tpm-home-about__article ol, .tpm-home-about__article ul { margin: 0 0 1.15em; }
.tpm-home-about__article ol { padding: 1.1rem 1.25rem 1.1rem 2.75rem; background: var(--tpm-surface); border: 1px solid var(--tpm-border); border-radius: var(--tpm-radius); }

/* ---------- Tags box ---------- */
.tpm-tags-box { margin-top: 1.75rem; padding: clamp(1rem, 2.5vw, 1.4rem); background: var(--tpm-cream); border: 1px solid var(--tpm-border); border-radius: var(--tpm-radius-lg); }
.tpm-tags-box__title { display: inline-flex; align-items: center; gap: .6rem; margin: 0 0 .75rem; font-size: 1.3rem; }
.tpm-tags-box__title::before { width: 1.5rem; height: 2px; background: var(--tpm-gold); border-radius: 2px; content: ""; }
.tpm-tags { display: flex; flex-wrap: wrap; gap: .6rem; margin: 0; padding: 0; list-style: none; }
.tpm-tag { padding: .45rem .95rem; color: var(--tpm-blue-900); background: var(--tpm-surface); border: 1px solid var(--tpm-border); border-radius: 999px; font-size: .88rem; font-weight: 600; line-height: 1.3; transition: background var(--tpm-fast) ease, border-color var(--tpm-fast) ease, color var(--tpm-fast) ease; }
.tpm-tag:hover { color: var(--tpm-blue-950); background: var(--tpm-gold-soft); border-color: var(--tpm-border-strong); }

/* ---------- Table of contents ---------- */
.tpm-detail-sidebar { position: relative; }
.tpm-toc { padding: 1.15rem 1.3rem; background: var(--tpm-surface); border: 1px solid var(--tpm-border); border-radius: var(--tpm-radius); box-shadow: var(--tpm-shadow-sm); }
.tpm-toc summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; color: var(--tpm-blue-900); font-family: var(--tpm-heading); font-size: 1.25rem; font-weight: 700; cursor: pointer; list-style: none; }
.tpm-toc summary::-webkit-details-marker { display: none; }
.tpm-toc summary::after { display: grid; width: 28px; height: 28px; place-items: center; color: var(--tpm-gold-ink); background: var(--tpm-gold-soft); border-radius: 50%; content: "+"; font-family: var(--tpm-body); font-size: 1.05rem; line-height: 1; transition: transform var(--tpm-med) var(--tpm-ease); }
.tpm-toc[open] summary::after { content: "−"; }
.tpm-toc ol { display: grid; gap: .1rem; margin: .75rem 0 0; padding: 0; list-style: none; counter-reset: tpm-toc; }
.tpm-toc li { border-top: 1px solid #e8edf8; counter-increment: tpm-toc; }
.tpm-toc a { position: relative; display: flex; gap: .6rem; padding: .55rem 0 .55rem .1rem; color: #4a5578; font-size: .9rem; line-height: 1.45; text-decoration: none; transition: color var(--tpm-fast) ease, padding var(--tpm-fast) var(--tpm-ease); }
.tpm-toc a::before { flex: none; min-width: 1.4rem; color: var(--tpm-gold); content: counter(tpm-toc, decimal-leading-zero); font-size: .75rem; font-weight: 700; line-height: 1.95; }
.tpm-toc a:hover, .tpm-toc a.is-active { color: var(--tpm-gold-ink); }
.tpm-toc--sidebar { position: sticky; top: calc(var(--tpm-header-h) + 1.5rem); max-height: calc(100vh - var(--tpm-header-h) - 3rem); overflow-y: auto; padding: 1.4rem; background: linear-gradient(160deg, var(--tpm-blue-800), var(--tpm-blue-950)); border: 0; border-radius: var(--tpm-radius-lg); box-shadow: var(--tpm-shadow); scrollbar-width: thin; }
.tpm-toc--sidebar summary { color: var(--tpm-gold-bright); cursor: default; pointer-events: none; }
.tpm-toc--sidebar li { border-color: rgba(255,255,255,.1); }
.tpm-toc--sidebar a { color: #cdd6f5; }
.tpm-toc--sidebar a:hover { padding-left: .35rem; color: #fff; }
.tpm-toc--sidebar a.is-active { padding-left: .35rem; color: var(--tpm-gold-bright); }
.tpm-toc--sidebar summary::after { display: none; }

/* ---------- FAQ ---------- */
.tpm-faq-section, .tpm-related-section { margin-top: clamp(2.25rem, 4vw, 3rem); }
.tpm-faq-section { scroll-margin-top: 6.5rem; }
.tpm-faq-section h2, .tpm-related-section h2 { margin-bottom: 1rem; }
.tpm-faq-list { display: grid; gap: .75rem; }
.tpm-faq-item { background: var(--tpm-surface); border: 1px solid var(--tpm-border); border-radius: var(--tpm-radius); transition: border-color var(--tpm-fast) ease, box-shadow var(--tpm-med) ease; }
.tpm-faq-item:hover { border-color: var(--tpm-border-strong); }
.tpm-faq-item[open] { border-color: var(--tpm-border-strong); box-shadow: var(--tpm-shadow-sm); }
.tpm-faq-item summary { position: relative; display: flex; min-height: 60px; align-items: center; justify-content: space-between; gap: 1rem; padding: .9rem 3.5rem .9rem 1.25rem; color: var(--tpm-ink); font-family: var(--tpm-heading); font-size: 1.12rem; font-weight: 700; cursor: pointer; list-style: none; }
.tpm-faq-item summary::-webkit-details-marker { display: none; }
.tpm-faq-item summary::after { position: absolute; top: 50%; right: 1rem; width: 30px; height: 30px; margin-top: -15px; color: var(--tpm-gold-ink); background: linear-gradient(currentColor, currentColor) center / 12px 2px no-repeat, linear-gradient(currentColor, currentColor) center / 2px 12px no-repeat, var(--tpm-gold-soft); border-radius: 50%; content: ""; transition: transform var(--tpm-med) var(--tpm-ease), background-color var(--tpm-fast) ease, color var(--tpm-fast) ease; }
.tpm-faq-item[open] summary::after { color: #fff; background-color: var(--tpm-blue-800); transform: rotate(45deg); }
.tpm-faq-answer { padding: 0 1.25rem 1.2rem; font-size: .98rem; animation: tpm-fade-down var(--tpm-med) var(--tpm-ease); }
.tpm-faq-answer > :last-child { margin-bottom: 0; }
@keyframes tpm-fade-down { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ---------- Notes, author, related ---------- */
.tpm-responsible-note { display: flex; gap: .6rem; margin-top: 2.25rem; padding: 1rem 1.25rem; color: #3d4870; background: #eaf0ff; border: 1px solid #cdd9f5; border-radius: var(--tpm-radius-sm); font-size: .92rem; }
.tpm-responsible-note strong { flex: none; color: var(--tpm-blue-900); }
.tpm-author-card { display: flex; align-items: flex-start; gap: 1rem; margin-top: var(--tpm-space-4); padding: 1.25rem; background: var(--tpm-surface); border: 1px solid var(--tpm-border); border-radius: var(--tpm-radius); }
.tpm-author-card__avatar { display: grid; flex: 0 0 48px; width: 48px; height: 48px; place-items: center; color: var(--tpm-blue-900); background: var(--tpm-cream); border-radius: 50%; font-family: var(--tpm-heading); font-size: 1.4rem; }
.tpm-author-card h2 { margin: 0 0 .3rem; font-size: 1.35rem; }
.tpm-author-card p { margin: 0; color: var(--tpm-muted); font-size: .91rem; }
.tpm-related-section .tpm-section-heading { margin-bottom: 1.25rem; }
.tpm-related-section .tpm-card-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
.tpm-related-section .tpm-card__image { display: none; }
.tpm-related-section .tpm-card__body h3 { font-size: 1.15rem; }
.tpm-related-section .tpm-card__body { padding: 1.15rem; }
.tpm-related-section .tpm-card__body p { font-size: .88rem; }

/* ---------- Blog hero & misc pages ---------- */
.tpm-blog-hero { padding: 1.75rem 0 clamp(2.25rem, 4vw, 3.25rem); }
.tpm-blog-hero__inner { display: grid; grid-template-columns: minmax(0,1fr); align-items: start; gap: var(--tpm-space-5); }
.tpm-blog-hero__copy { max-width: 860px; }
.tpm-blog-hero h1 { font-size: clamp(2.3rem, 2rem + 2.2vw, 4rem); }
.tpm-blog-category { display: inline-block; padding: .3rem .75rem; background: rgba(255,201,60,.12); border: 1px solid rgba(255,201,60,.3); border-radius: 999px; text-decoration: none; transition: background var(--tpm-fast) ease, color var(--tpm-fast) ease; }
.tpm-blog-category:hover { color: var(--tpm-blue-950); background: var(--tpm-gold-bright); }
.tpm-detail-layout--blog { padding-top: clamp(2rem, 4vw, 2.75rem); }
.tpm-plain-page { min-height: 45vh; padding-top: var(--tpm-space-5); padding-bottom: var(--tpm-space-7); }
.tpm-error-page { min-height: 60vh; padding-top: clamp(5rem,10vw,9rem); padding-bottom: clamp(5rem,10vw,9rem); }
.tpm-error-page h1 { max-width: 680px; }

/* ---------- Footer ---------- */
.tpm-footer { position: relative; padding: clamp(2.5rem, 5vw, 3.5rem) 0 1.25rem; color: var(--tpm-on-dark-muted); background: radial-gradient(50rem 20rem at 100% 0%, rgba(245,180,0,.08), transparent 60%), var(--tpm-blue-950); }
.tpm-footer::before { position: absolute; inset: 0 0 auto; height: 1px; background: linear-gradient(90deg, transparent, rgba(245,180,0,.5), transparent); content: ""; }
.tpm-footer__main { display: grid; grid-template-columns: minmax(260px, 1.6fr) repeat(2, minmax(160px, .8fr)); gap: clamp(2rem, 5vw, 4rem); padding-bottom: 2rem; }
.tpm-footer__brand .tpm-brand { margin-bottom: 1rem; }
.tpm-footer__brand p { max-width: 360px; color: var(--tpm-on-dark-muted); font-size: .93rem; }
.tpm-footer__column { display: flex; flex-direction: column; align-items: flex-start; gap: .2rem; }
.tpm-footer__column h2 { margin: .25rem 0 .6rem; color: var(--tpm-gold-bright); font-family: var(--tpm-body); font-size: .76rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.tpm-footer__column a { display: inline-flex; min-height: 38px; align-items: center; color: #c5cff0; font-size: .93rem; text-decoration: none; transition: color var(--tpm-fast) ease, transform var(--tpm-fast) var(--tpm-ease); }
.tpm-footer__column a:hover { color: #fff; transform: translateX(3px); }
.tpm-footer__bottom { display: flex; align-items: flex-start; justify-content: space-between; gap: 2rem; padding-top: 1.25rem; border-top: 1px solid rgba(255,255,255,.1); color: #93a0cc; font-size: .82rem; }
.tpm-footer__bottom p { margin: 0; }
.tpm-footer__bottom p:first-child { max-width: 780px; }
.tpm-footer__bottom p:last-child { flex: 0 0 auto; }
.tpm-footer__bottom strong { color: #ffd34d; }

/* ---------- Scroll reveal (enabled only when JS adds .tpm-js) ---------- */
.tpm-js .tpm-reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--tpm-ease), transform .6s var(--tpm-ease); transition-delay: var(--tpm-delay, 0s); }
.tpm-js .tpm-reveal.is-visible { opacity: 1; transform: none; }
.tpm-js .tpm-card.tpm-reveal.is-visible:hover { transform: translateY(-5px); transition-delay: 0s; }
.tpm-js .tpm-values-grid article.tpm-reveal.is-visible:hover { transform: translateY(-4px); transition-delay: 0s; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
	.tpm-values-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 960px) {
	.tpm-card-grid--3 { grid-template-columns: repeat(2, minmax(0,1fr)); }
	.tpm-detail-layout { grid-template-columns: minmax(0,1fr) 250px; gap: 2rem; }
	.tpm-related-section .tpm-card-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
	.tpm-responsible-layout { grid-template-columns: minmax(0,1fr) 250px; gap: 2rem; }
	.tpm-responsible-related .tpm-card-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
	.tpm-home-hero__inner { grid-template-columns: minmax(0, 1fr) minmax(280px, .8fr); }
}
@media (min-width: 769px) {
	.tpm-detail-layout .tpm-article > .tpm-toc { display: none; }
}
@media (max-width: 782px) {
	.admin-bar .tpm-header, .admin-bar .tpm-progress { top: 46px; }
}
@media (max-width: 768px) {
	:root { --tpm-header-h: 64px; }
	.wrap { width: min(100% - 2rem, 680px); }
	.tpm-brand { font-size: 1.15rem; }
	.tpm-brand__mark { width: 2.25rem; height: 2.25rem; }
	.tpm-menu-toggle { display: grid; }
	.tpm-primary-nav { position: absolute; top: 100%; right: 0; left: 0; display: flex; flex-direction: column; align-items: stretch; gap: .25rem; padding: .75rem 1rem 1.1rem; background: var(--tpm-blue-950); border-top: 1px solid rgba(255,255,255,.08); box-shadow: 0 24px 30px -10px rgba(0,0,0,.4); opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity var(--tpm-med) ease, transform var(--tpm-med) var(--tpm-ease), visibility var(--tpm-med); }
	.tpm-primary-nav.is-open { opacity: 1; visibility: visible; transform: none; }
	.tpm-primary-nav a { justify-content: flex-start; min-height: 48px; padding: .7rem 1rem; border-radius: .75rem; font-size: 1rem; }
	.tpm-primary-nav a[aria-current="page"] { color: var(--tpm-gold-bright); background: rgba(255,201,60,.12); }
	.tpm-home-hero { padding-top: 2.25rem; }
	.tpm-home-hero__inner { grid-template-columns: 1fr; gap: 2rem; }
	.tpm-home-hero__copy { text-align: center; margin-inline: auto; }
	.tpm-home-hero__copy .tpm-lead { margin-inline: auto; }
	.tpm-home-hero__aside { gap: 1.5rem; }
	.tpm-hero-image { width: min(60%, 200px); border-radius: 20px; }
	.tpm-home-hero__aside .tpm-button-row { width: min(100%, 300px); }
	.tpm-home-stats { margin-top: 2rem; }
	.tpm-home-stats div { padding: 0 .5rem; }
	.tpm-home-stats strong { font-size: 1.6rem; }
	.tpm-home-stats span { max-width: 110px; font-size: .76rem; }
	.tpm-section { padding: 2.5rem 0; }
	.tpm-section--home-blog { padding-bottom: 2.5rem; }
	.tpm-section--responsible { padding: 2rem 0; }
	.tpm-section-heading { align-items: flex-start; flex-direction: column; gap: .5rem; }
	.tpm-section-heading--center { align-items: center; }
	.tpm-featured-game { grid-template-columns: 76px 1fr; align-items: start; gap: 1rem; }
	.tpm-featured-game__mark { width: 72px; height: 72px; border-radius: 1rem; font-size: 2.2rem; }
	.tpm-detail-hero__inner, .tpm-blog-hero__inner { grid-template-columns: 1fr; gap: 1.8rem; }
		.tpm-detail-hero__image { max-height: 260px; }
	.tpm-detail-hero__image img { height: 250px; }
	.tpm-detail-layout { display: flex; flex-direction: column; gap: 1.5rem; padding-top: 1.75rem; }
	.tpm-detail-sidebar { display: none; }
	.tpm-responsible-layout { display: flex; flex-direction: column; gap: 2rem; }
	.tpm-responsible-sidebar { position: static; grid-template-columns: repeat(2,minmax(0,1fr)); }
	.tpm-detail-layout .tpm-article > .tpm-toc { display: block; margin-bottom: 1.5rem; }
	.tpm-detail-layout--blog { padding-top: 1.75rem; }
	.tpm-breadcrumbs [aria-current="page"] { max-width: 24ch; }
	.tpm-footer__main { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 2rem; }
	.tpm-footer__brand { grid-column: 1 / -1; }
	.tpm-footer__bottom { flex-direction: column; gap: .7rem; }
	.tpm-back-to-top { right: 1rem; bottom: 1rem; }
}
@media (max-width: 560px) {
	.wrap { width: min(100% - 1.75rem, 680px); }
	h1 { font-size: clamp(2.2rem, 10vw, 3rem); }
	.tpm-home-hero__copy h1 { font-size: clamp(1.9rem, 8.6vw, 2.6rem); }
	.tpm-card-grid--3 { grid-template-columns: 1fr; }
	.tpm-values-grid { grid-template-columns: 1fr 1fr; gap: .75rem; }
	.tpm-values-grid article { padding: 1.15rem 1rem; }
	.tpm-values-grid article > span { width: 2.5rem; height: 2.5rem; margin-bottom: .75rem; font-size: 1.1rem; }
	.tpm-values-grid h3 { font-size: 1.1rem; }
	.tpm-values-grid p { font-size: .86rem; }
	.tpm-featured-game { grid-template-columns: 1fr; }
	.tpm-featured-game__mark { width: 60px; height: 60px; }
	.tpm-detail-meta { gap: .4rem .8rem; }
	.tpm-detail-meta span + span::before, .tpm-detail-meta time::before { margin-right: .35rem; }
	.tpm-related-section .tpm-card-grid { grid-template-columns: 1fr; }
	.tpm-responsible-related .tpm-card-grid { grid-template-columns: 1fr; }
	.tpm-responsible-sidebar { grid-template-columns: 1fr; }
	.tpm-responsible-article > section { padding: 1.25rem; }
	.tpm-home-about__article ol { padding: .9rem 1rem .9rem 2.25rem; }
	.tpm-section.tpm-home-about { padding-top: 1.75rem; }
	.tpm-download-card { flex-wrap: wrap; gap: .9rem 1rem; padding: 1rem; }
	.tpm-download-card__icon { width: 60px; height: 60px; }
	.tpm-download-card__title { font-size: 1.15rem; }
	.tpm-download-card__button { width: 100%; }
	.tpm-faq-item summary { font-size: 1.02rem; padding-left: 1rem; }
	.tpm-faq-answer { padding-inline: 1rem; }
	.tpm-footer__main { grid-template-columns: 1fr 1fr; gap: 1.75rem 1rem; }
	.tpm-footer__column a { font-size: .88rem; }
	.tpm-filter-list { flex-wrap: nowrap; margin-inline: -.875rem; padding: 0 .875rem .35rem; overflow-x: auto; scrollbar-width: none; }
	.tpm-filter-list::-webkit-scrollbar { display: none; }
	.tpm-filter-list a { flex: none; min-height: 40px; padding-inline: .85rem; font-size: .84rem; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
	.tpm-js .tpm-reveal { opacity: 1; transform: none; }
}
