/* ------------------------------------------------------------------ */
/* Games & Tools pages (template-parts/theory-tool-page.php)            */
/* Hero = the road (tarmac, one yellow marker). Body = the classroom.   */
/* Game cards = brown tourist signs: a detour off the main route, with  */
/* the white inner border real brown signs carry.                       */
/* ------------------------------------------------------------------ */

.tp-tt { background: #fff; }

.tp-tt *, .tp-tt *::before, .tp-tt *::after { box-sizing: border-box; }
.tp-tt-inner { max-width: 1100px; margin: 0 auto; }

/* hero */
.tp-tt-head {
	background: var(--tarmac, #1C1F26);
	padding: 2.2rem 1.25rem 2rem;
	position: relative;
}
.tp-tt-head::after { /* the centre line */
	content: ""; position: absolute; left: 0; right: 0; bottom: 10px; height: 4px;
	background: repeating-linear-gradient(90deg, var(--sign-yellow, #FFDD00) 0 38px, transparent 38px 70px);
	opacity: .85;
}
.tp-tt-plate {
	display: inline-block;
	font-family: var(--font-data, monospace);
	font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
	background: var(--sign-yellow, #FFDD00); color: var(--tarmac, #1C1F26);
	padding: .3rem .6rem; border-radius: 3px; margin-bottom: .9rem;
}
.tp-tt-back {
	display: inline-block; margin-bottom: .9rem;
	font-size: .88rem; font-weight: 600; text-decoration: none;
	color: var(--sign-yellow, #FFDD00);
	border-bottom: 1px solid rgba(255, 221, 0, .35);
}
.tp-tt-back:hover { border-bottom-color: var(--sign-yellow, #FFDD00); color: var(--sign-yellow, #FFDD00); }
.tp-tt-head h1 {
	font-family: var(--font-display, sans-serif); font-weight: 800;
	font-size: clamp(1.9rem, 4.4vw, 3rem); line-height: 1.04; letter-spacing: -.028em;
	color: var(--kerb, #E8E6E1); margin: 0 0 .6rem;
}
.tp-tt-head p {
	color: var(--paint-dim, #A8ADB8); font-size: 1rem; line-height: 1.6;
	margin: 0 0 1rem; max-width: 60ch;
}

/* body */
.tp-tt-body { padding: 1.75rem 1.25rem 3rem; }
.tp-tt-h2 {
	font-family: var(--font-display, sans-serif); font-weight: 800;
	font-size: 1.35rem; margin: 2.2rem 0 .8rem; color: var(--tarmac, #1C1F26);
}

/* brown signs */
.tp-tt-grid {
	list-style: none; margin: 0; padding: 0;
	display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1rem;
}
.tp-tt-sign {
	display: flex; flex-direction: column; gap: .35rem; height: 100%;
	background: var(--sign-brown, #6B4A2F); color: #fff; text-decoration: none;
	border-radius: 12px; padding: 1.05rem 1.15rem 1.15rem;
	box-shadow: inset 0 0 0 3px var(--sign-brown, #6B4A2F), inset 0 0 0 5px #fff;
	transition: transform .12s ease;
}
.tp-tt-sign:hover, .tp-tt-sign:focus-visible { transform: translateY(-2px); color: #fff; }
.tp-tt-sign:focus-visible { outline: 3px solid var(--sign-yellow, #FFDD00); outline-offset: 3px; }
.tp-tt-sign-name { font-family: var(--font-display, sans-serif); font-weight: 800; font-size: 1.15rem; line-height: 1.25; }
.tp-tt-sign-blurb { font-size: .92rem; line-height: 1.5; opacity: .92; }
.tp-tt-grid--small .tp-tt-sign-name { font-size: 1.02rem; }

/* how it works */
.tp-tt-how { margin: 0; padding-left: 1.2rem; line-height: 1.7; color: #2c3140; max-width: 70ch; }
.tp-tt-how li { margin-bottom: .3rem; }

.tp-tt-missing {
	display: grid; gap: .4rem; text-align: center;
	background: #f4f4f2; border: 1px dashed #c9cbd1; border-radius: 12px; padding: 2rem; color: #4b5060;
}

/* call to action — green means go */
.tp-tt-cta {
	margin-top: 2.6rem; display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between;
	background: #f4f6f3; border-left: 6px solid var(--sign-green, #00703C); border-radius: 10px; padding: 1.1rem 1.25rem;
}
.tp-tt-cta strong { display: block; font-size: 1.05rem; color: var(--tarmac, #1C1F26); }
.tp-tt-cta span { color: #4b5060; font-size: .93rem; }

@media (max-width: 520px) {
	.tp-tt-head { padding: 1.6rem 1rem 1.8rem; }
	.tp-tt-body { padding: 1.25rem 1rem 2.5rem; }
	.tp-tt-cta .tp-btn { width: 100%; text-align: center; }
}
@media (prefers-reduced-motion: reduce) { .tp-tt-sign { transition: none; } }

/* dark mode (header.php puts .tp-dark on <html>) */
.tp-dark .tp-tt { background: #15171c; }
.tp-dark .tp-tt-h2, .tp-dark .tp-tt-cta strong { color: #E8E6E1; }
.tp-dark .tp-tt-how, .tp-dark .tp-tt-cta span { color: #c3c7d0; }
.tp-dark .tp-tt-cta { background: #1f232b; }
.tp-dark .tp-tt-missing { background: #1f232b; border-color: #3a3f4b; color: #c3c7d0; }
