/*
Theme Name: Tenistas Child
Description: Editorial child theme for Tenistas, based on Twenty Twenty-Five.
Template: twentytwentyfive
Version: 1.14.0
Text Domain: tennis-portal-child
*/

/* ==========================================================================
   1. Design tokens — the single source for colour, type, space, layout,
      shape and motion (documented in docs/DESIGN_SYSTEM.md). Components use
      these variables; raw values belong here only.
   ========================================================================== */
:root {
	/* Colour — brand */
	--tp-color-primary: #123d2c;          /* dark court green: headings, nav, buttons */
	--tp-color-primary-deep: #08291d;     /* deepest green: footer, dark bands, scrims */
	--tp-color-primary-hover: #1d5a42;    /* hover/pressed state of primary */
	--tp-color-accent: #c8f04a;           /* tennis-ball lime: small accents only */
	--tp-color-on-accent: #08291d;        /* text on lime */
	/* Colour — neutrals */
	--tp-color-bg: #fff;
	--tp-color-surface: #f4f6f2;          /* panels, light bands, image placeholders */
	--tp-color-ink: #17231d;              /* body text */
	--tp-color-muted: #66736b;            /* meta / secondary text (4.97:1 on white, 4.57:1 on surface) */
	--tp-color-placeholder: #56625b;      /* form placeholders (5.86:1 on surface) */
	--tp-color-border: #dfe5df;
	--tp-color-border-strong: #c3cec6;
	--tp-color-on-dark: #fff;
	--tp-color-on-dark-muted: rgb(255 255 255 / 74%);
	--tp-color-on-dark-border: rgb(255 255 255 / 16%);
	/* Colour — semantic */
	--tp-color-success: #1f7a4d;
	--tp-color-warning-bg: #fff4cc;
	--tp-color-warning: #5c4a0e;
	--tp-color-danger: #b3261e;
	--tp-color-info: #1f5f8b;
	--tp-scrim: linear-gradient(180deg, rgb(8 41 29 / 0%) 42%, rgb(8 41 29 / 42%) 66%, rgb(8 41 29 / 88%) 100%); /* lighter: more photo, text stays AA on the dark base */

	/* Typography — Noto Sans (self-hosted variable font, verified Greek + Greek Extended) */
	--tp-font-sans: var(--wp--preset--font-family--portal-sans, "Noto Sans", "Segoe UI", Arial, sans-serif);
	--tp-weight-regular: 400;
	--tp-weight-medium: 500;
	--tp-weight-semibold: 600;
	--tp-weight-bold: 700;
	--tp-weight-heavy: 800;
	/* Fluid type scale (min at 320px → max at ~1440px) */
	--tp-text-2xs: .6875rem;                                    /* 11px labels, chips */
	--tp-text-xs: .8125rem;                                     /* 13px meta, dates */
	--tp-text-sm: .9375rem;                                     /* 15px excerpts, nav, UI */
	--tp-text-md: 1rem;                                         /* 16px */
	--tp-text-body: clamp(1rem, .96rem + .2vw, 1.125rem);       /* 16 → 18 */
	--tp-text-card: clamp(1rem, .96rem + .22vw, 1.125rem);      /* 16 → 18 card titles */
	--tp-text-card-lg: clamp(1.125rem, 1.03rem + .42vw, 1.375rem); /* 18 → 22 secondary titles */
	--tp-text-section: clamp(1.25rem, 1.12rem + .55vw, 1.625rem);  /* 20 → 26 section headers */
	--tp-text-feature: clamp(1.375rem, 1.15rem + 1vw, 2rem);    /* 22 → 32 feature titles */
	--tp-text-lead: clamp(1.625rem, 1.2rem + 1.75vw, 2.625rem); /* 26 → 42 lead story */
	--tp-text-display: clamp(1.875rem, 1.3rem + 2.4vw, 3rem);   /* 30 → 48 article H1 (phase B) */
	--tp-leading-tight: 1.12;
	--tp-leading-snug: 1.28;
	--tp-leading-normal: 1.5;
	--tp-leading-body: 1.7;
	--tp-leading-loose: 2.25;
	--tp-tracking-tight: -.02em;
	--tp-tracking-snug: -.01em;
	--tp-tracking-label: .06em;

	/* Layout */
	--tp-container: 1240px;
	--tp-container-prose: 700px;
	--tp-gutter: clamp(16px, 3vw, 32px);
	--tp-aside-width: 340px;
	--tp-grid-gap: clamp(16px, 1.2rem + .5vw, 28px);
	--tp-grid-gap-lg: clamp(24px, 1rem + 2vw, 48px);
	--tp-section-gap: clamp(40px, 2rem + 2.5vw, 72px);
	--tp-band-pad: clamp(36px, 1.5rem + 3vw, 64px);
	--tp-thumb-compact: 112px;
	--tp-thumb-row: 248px;
	--tp-thumb-video: 176px;

	/* Spacing scale (4px base) */
	--tp-space-1: 4px;
	--tp-space-2: 8px;
	--tp-space-3: 12px;
	--tp-space-4: 16px;
	--tp-space-5: 24px;
	--tp-space-6: 32px;
	--tp-space-7: 48px;
	--tp-space-8: 64px;
	--tp-space-9: 80px;

	/* Image aspect ratios */
	--tp-ratio-lead: 16 / 10;
	--tp-ratio-card: 16 / 10;
	--tp-ratio-wide: 16 / 9;
	--tp-ratio-photo: 3 / 2;
	--tp-ratio-thumb: 4 / 3;
	--tp-ratio-portrait: 4 / 5;

	/* Shape */
	--tp-radius-sm: 2px;                  /* chips, labels */
	--tp-radius: 4px;                     /* images, cards, inputs */
	--tp-radius-lg: 8px;                  /* panels */
	--tp-radius-pill: 999px;              /* buttons, search */
	--tp-border-width: 1px;
	--tp-rule: var(--tp-border-width) solid var(--tp-color-border);
	--tp-accent-bar: 6px;                 /* lime bar before section titles */
	--tp-shadow: none;                    /* cards are flat */
	--tp-shadow-pop: 0 12px 28px rgb(8 41 29 / 14%); /* menus, drawer only */

	/* Motion */
	--tp-duration-fast: 150ms;            /* colour / underline */
	--tp-duration-base: 250ms;            /* buttons, arrows, drawer fade */
	--tp-duration-slow: 450ms;            /* drawer slide, reveals */
	--tp-duration-image: 700ms;           /* photo zoom */
	--tp-ease: cubic-bezier(.2, .7, .2, 1);       /* ease-out for entrances/hover */
	--tp-ease-in-out: cubic-bezier(.65, 0, .35, 1);
	--tp-zoom: 1.04;

	/* Hit areas (WCAG 2.2 target size ≥ 24px) */
	--tp-hit-pad: 6px;                    /* invisible padding around small text links */
	--tp-chip-pad-y: 5px;                 /* lime category chip: 14px text + 10px = 24px */

	/* Focus */
	--tp-focus-outline: 3px solid var(--tp-color-primary);
	--tp-focus-halo: 0 0 0 6px var(--tp-color-accent);

	/* Ads (IAB sizes) */
	--tp-ad-leaderboard-w: 970px;
	--tp-ad-leaderboard-h: 90px;
	--tp-ad-mobile-h: 50px;
	--tp-ad-banner-w: 728px;

	/* Colour — extra neutrals / states (phase B) */
	--tp-color-ink-soft: #3d4a42;         /* long-form secondary text (9.6:1) */
	--tp-color-subtle: #b4bdb6;           /* separators on dark, disabled */
	--tp-color-media-bg: #0b1510;         /* behind video / letterboxed media */
	--tp-color-warning-border: #e6d9a8;
	--tp-color-warning-soft: #fff8df;
	--tp-color-warning-ink: #634d12;
	--tp-color-warning-rule: #c9a53b;
	--tp-color-danger-soft: #fde8e6;
	--tp-color-danger-ink: #8a1f13;
	--tp-color-on-dark-soft: rgb(255 255 255 / 76%);
	--tp-color-on-dark-faint: rgb(255 255 255 / 35%);
	--tp-color-on-dark-rule: rgb(255 255 255 / 20%);
	--tp-color-on-dark-veil: rgb(255 255 255 / 8%);
	--tp-fade-dark-end: linear-gradient(90deg, rgb(8 41 29 / 0%), var(--tp-color-primary-deep)); /* ticker edge fade */
	--tp-color-court-line: rgb(255 255 255 / 45%); /* painted lines on placeholder courts */
	--tp-color-focus-ring-soft: rgb(200 240 74 / 55%);
	--tp-overlay: rgb(8 41 29 / 56%);     /* drawer backdrop */
	--tp-overlay-strong: rgb(8 41 29 / 72%);
	--tp-text-shadow-photo: 0 1px 12px rgb(8 41 29 / 40%);
	--tp-shadow-menu: 0 10px 24px rgb(8 41 29 / 12%);
	--tp-shadow-drawer: 8px 0 32px rgb(8 41 29 / 18%);
	--tp-shadow-hairline: 0 2px 8px rgb(8 41 29 / 3%);

	/* Type — long-form and page titles (phase B) */
	--tp-text-prose: clamp(1.0625rem, 1rem + .2vw, 1.125rem);     /* 17 → 18 article body */
	--tp-text-subhead: clamp(1.25rem, 1.1rem + .5vw, 1.5rem);      /* 20 → 24 prose H2 */
	--tp-text-page: clamp(1.75rem, 1.3rem + 1.2vw, 2.375rem);      /* 28 → 38 archive / directory H1 */
	--tp-measure: 68ch;                                            /* long-form line length */

	/* Layout constants — page templates (phase B) */
	--tp-aside-width-sm: 280px;
	--tp-toc-width: 260px;
	--tp-hero-max-h: 680px;
	--tp-cover-max-h: 520px;
	--tp-lead-min-h: 420px;
	--tp-lead-min-h-desktop: 340px;
	--tp-lead-max-h: 520px;
	--tp-map-h: clamp(280px, 36vw, 440px);
	--tp-map-h-sm: 240px;
	--tp-filter-min: 170px;
	--tp-gallery-min: 160px;
	--tp-thumb-side: 132px;
	--tp-hit: 44px;
	--tp-hit-lg: 48px;
	--tp-ratio-cinema: 21 / 9;
	--tp-rule-strong: 3px solid var(--tp-color-primary);

	/* Spacing — half steps */
	--tp-space-hair: 2px;
	--tp-space-1-5: 6px;
	--tp-space-2-5: 10px;
	--tp-space-3-5: 14px;
	--tp-space-4-5: 20px;
	--tp-space-5-5: 28px;
	--tp-space-6-5: 40px;
}

html {
	scroll-behavior: smooth;
}

body {
	background: var(--tp-color-bg);
	color: var(--tp-color-ink);
	font-family: var(--wp--preset--font-family--portal-sans, "Noto Sans", "Segoe UI", Arial, sans-serif);
	font-size: var(--tp-text-body);
	font-weight: 400;
	line-height: var(--tp-leading-body);
	font-synthesis: none;
	-webkit-font-smoothing: antialiased;
}

:where(h1, h2, h3, h4, h5, h6) {
	text-wrap: balance;
	word-break: normal;
	overflow-wrap: break-word;
	hyphens: none;
}

button,
input,
select,
textarea {
	font-family: inherit;
}

strong,
b {
	font-weight: 700;
}

a {
	text-underline-offset: .2em;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
	outline: var(--tp-focus-outline);
	outline-offset: 3px;
	box-shadow: var(--tp-focus-halo);
}

.tp-container {
	box-sizing: border-box;
	width: min(100% - 2 * var(--tp-gutter), var(--tp-container));
	margin-inline: auto;
}

/* WordPress wraps shortcode blocks with wpautop; drop the empty paragraphs it leaves around block markup. */
.wp-block-template-part > p:empty,
.tp-home p:empty {
	display: none;
}

/* ==========================================================================
   2. Header — row 1: logo + menu, row 2: search
   ========================================================================== */
.wp-block-template-part:has(> .tp-header) {
	margin-block: 0;
}

.tp-header {
	--tp-logo-desktop: 160px;
	--tp-logo-mobile: clamp(112px, 31vw, 136px);
	--tp-header-gap: 40px; /* navigation.js switches to the drawer when logo + 40px + menu do not fit */
	position: relative;
	z-index: 50;
	background: var(--tp-color-bg);
}

.tp-header__bar {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	align-items: center;
	column-gap: var(--tp-header-gap);
	min-height: 80px;
}

.tp-header__brand {
	display: flex;
	align-items: center;
	min-width: 0;
	line-height: 0;
}

.tp-header__brand .custom-logo-link {
	display: block;
	line-height: 0;
}

.tp-header__brand .custom-logo {
	display: block;
	width: var(--tp-logo-desktop);
	max-width: 100%;
	height: auto;
}

.tp-header__site-title {
	color: var(--tp-color-primary);
	font-size: var(--tp-text-card-lg);
	font-weight: 800;
	line-height: 1.2;
	text-decoration: none;
}

/* Navigation (desktop) */
.tp-primary-navigation {
	justify-self: end;
	min-width: 0;
}

.tp-primary-navigation__toggle,
.tp-primary-navigation__close {
	display: inline-grid;
	place-items: center;
	width: var(--tp-hit);
	height: var(--tp-hit);
	padding: 0;
	border: 0;
	border-radius: var(--tp-radius);
	background: transparent;
	color: var(--tp-color-primary);
	cursor: pointer;
}

.tp-primary-navigation__toggle[hidden],
.tp-primary-navigation__overlay,
.tp-primary-navigation__drawer-head {
	display: none;
}

.tp-primary-navigation__toggle svg,
.tp-primary-navigation__close svg,
.tp-primary-navigation__submenu-toggle svg {
	display: block;
	width: 24px;
	height: 24px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.tp-primary-navigation__list,
.tp-primary-navigation__list .sub-menu {
	margin: 0;
	padding: 0;
	list-style: none;
}

.tp-primary-navigation__list {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	align-items: center;
	gap: var(--tp-space-hair);
}

/* JS measures before showing the inline menu, so it never flashes in the wrong mode. */
.tp-js .tp-header:not([data-nav]) .tp-primary-navigation__list {
	visibility: hidden;
}

.tp-js .tp-primary-navigation__list {
	flex-wrap: nowrap;
}

.tp-primary-navigation__list > li {
	position: relative;
	display: flex;
	align-items: center;
}

.tp-primary-navigation__list a {
	display: block;
	padding: var(--tp-space-2-5) var(--tp-space-2-5);
	color: var(--tp-color-ink);
	font-size: var(--tp-text-sm);
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	white-space: nowrap;
}

.tp-primary-navigation__list > li > a {
	position: relative;
}

.tp-primary-navigation__list > li > a::after {
	content: "";
	position: absolute;
	right: var(--tp-space-2-5);
	bottom: var(--tp-space-hair);
	left: var(--tp-space-2-5);
	height: 3px;
	background: var(--tp-color-accent);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform .2s var(--tp-ease);
}

.tp-primary-navigation__list > li > a:hover::after,
.tp-primary-navigation__list > li > a[aria-current="page"]::after,
.tp-primary-navigation__list > .current-menu-item > a::after {
	transform: scaleX(1);
}

.tp-primary-navigation__list a:hover {
	color: var(--tp-color-primary);
}

.tp-primary-navigation__submenu-toggle {
	display: inline-grid;
	place-items: center;
	width: 28px;
	height: 28px;
	margin-left: calc(-1 * var(--tp-space-1-5));
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--tp-color-muted);
	cursor: pointer;
}

.tp-primary-navigation__submenu-toggle svg {
	width: 16px;
	height: 16px;
	transition: transform .2s ease;
}

.tp-primary-navigation__submenu-toggle[aria-expanded="true"] svg {
	transform: rotate(180deg);
}

.tp-header[data-nav="desktop"] .tp-primary-navigation__list .sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	z-index: 60;
	display: none;
	min-width: 220px;
	padding: var(--tp-space-2) 0;
	border-top: 3px solid var(--tp-color-accent);
	background: var(--tp-color-bg);
	box-shadow: var(--tp-shadow-menu);
}

.tp-header[data-nav="desktop"] .tp-primary-navigation__list li:hover > .sub-menu,
.tp-header[data-nav="desktop"] .tp-primary-navigation__list li:focus-within > .sub-menu,
.tp-header[data-nav="desktop"] .tp-primary-navigation__list .is-submenu-open > .sub-menu {
	display: block;
}

.tp-header[data-nav="desktop"] .sub-menu a {
	padding: var(--tp-space-2-5) var(--tp-space-4);
	font-weight: 500;
}

/* Compact mode: hamburger left, logo centred on the full header width. */
.tp-header[data-nav="compact"] .tp-header__bar {
	grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
	column-gap: var(--tp-space-3);
	min-height: 64px;
}

.tp-header[data-nav="compact"] .tp-header__brand {
	grid-row: 1;
	grid-column: 2;
	justify-content: center;
}

.tp-header[data-nav="compact"] .tp-header__brand .custom-logo {
	width: var(--tp-logo-mobile);
}

/* Compact Tenistas wordmark (assets/brand) replaces the custom logo while the header is in hamburger mode. */
.tp-header__compact-logo {
	display: none;
	line-height: 0;
}

.tp-header__compact-logo img {
	display: block;
	width: var(--tp-logo-mobile);
	max-width: 100%;
	height: auto;
}

.tp-header[data-nav="compact"] .tp-header__brand:has(.tp-header__compact-logo) .custom-logo-link,
.tp-header[data-nav="compact"] .tp-header__brand:has(.tp-header__compact-logo) .tp-header__site-title {
	display: none;
}

.tp-header[data-nav="compact"] .tp-header__compact-logo {
	display: block;
}

.tp-header[data-nav="compact"] .tp-primary-navigation {
	grid-row: 1;
	grid-column: 1;
	justify-self: start;
	margin-left: calc(-1 * var(--tp-space-2-5));
}

/* Drawer */
.tp-header[data-nav="compact"] .tp-primary-navigation__overlay {
	position: fixed;
	inset: 0;
	z-index: 1000;
	display: block;
	width: 100%;
	height: 100%;
	padding: 0;
	border: 0;
	background: var(--tp-overlay);
	opacity: 0;
	pointer-events: none;
	cursor: pointer;
	transition: opacity .25s ease;
}

.tp-header[data-nav="compact"] .tp-primary-navigation__panel {
	position: fixed;
	inset: 0 auto 0 0;
	z-index: 1001;
	display: flex;
	flex-direction: column;
	box-sizing: border-box;
	width: min(86vw, 360px);
	height: 100%;
	height: 100dvh;
	overflow-y: auto;
	overscroll-behavior: contain;
	background: var(--tp-color-bg);
	box-shadow: var(--tp-shadow-drawer);
	transform: translateX(-102%);
	visibility: hidden;
	transition: transform .3s var(--tp-ease), visibility 0s linear .3s;
}

.tp-header[data-nav="compact"] .is-open .tp-primary-navigation__overlay {
	opacity: 1;
	pointer-events: auto;
}

.tp-header[data-nav="compact"] .is-open .tp-primary-navigation__panel {
	transform: none;
	visibility: visible;
	transition: transform .3s var(--tp-ease), visibility 0s;
}

.tp-header[data-nav="compact"] .tp-primary-navigation__drawer-head {
	position: sticky;
	top: 0;
	z-index: 1;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: var(--tp-space-3);
	min-height: 64px;
	padding: 0 var(--tp-space-2) 0 var(--tp-space-4-5);
	border-bottom: var(--tp-rule);
	background: var(--tp-color-bg);
}

.tp-primary-navigation__drawer-brand .custom-logo {
	display: block;
	width: 122px;
	height: auto;
}

.tp-primary-navigation__drawer-brand .custom-logo-link {
	display: block;
	line-height: 0;
}

.tp-header[data-nav="compact"] .tp-primary-navigation__list {
	display: block;
	padding: var(--tp-space-2) 0 var(--tp-space-5);
}

.tp-header[data-nav="compact"] .tp-primary-navigation__list li {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	border-bottom: var(--tp-rule);
}

.tp-header[data-nav="compact"] .tp-primary-navigation__list a {
	flex: 1;
	padding: var(--tp-space-3-5) var(--tp-space-4-5);
	font-size: var(--tp-text-prose);
	white-space: normal;
}

.tp-header[data-nav="compact"] .tp-primary-navigation__list > li > a::after {
	top: var(--tp-space-3);
	right: auto;
	bottom: var(--tp-space-3);
	left: 0;
	width: 4px;
	height: auto;
	transform: scaleY(0);
}

.tp-header[data-nav="compact"] .tp-primary-navigation__list > li > a[aria-current="page"]::after,
.tp-header[data-nav="compact"] .tp-primary-navigation__list > .current-menu-item > a::after {
	transform: scaleY(1);
}

.tp-header[data-nav="compact"] .tp-primary-navigation__submenu-toggle {
	width: 52px;
	height: 52px;
	margin: 0;
}

.tp-header[data-nav="compact"] .tp-primary-navigation__list .sub-menu {
	display: none;
	flex-basis: 100%;
	background: var(--tp-color-surface);
}

.tp-header[data-nav="compact"] .tp-primary-navigation__list .is-submenu-open > .sub-menu {
	display: block;
}

.tp-header[data-nav="compact"] .sub-menu li:last-child {
	border-bottom: 0;
}

.tp-header[data-nav="compact"] .sub-menu a {
	padding-left: var(--tp-space-6);
	font-size: var(--tp-text-md);
	font-weight: 500;
}

html.tp-drawer-open,
html.tp-drawer-open body {
	overflow: hidden;
}

/* While the drawer is open the page logo would show beside the panel (tablets): the drawer has its own. */
html.tp-drawer-open .tp-header__brand {
	visibility: hidden;
}

.tp-primary-navigation__panel:focus {
	outline: 0;
}

/* Close control: plain 44×44 icon (focus ring only for keyboard users). */
.tp-header[data-nav="compact"] .tp-primary-navigation__close {
	border: 0;
	background: transparent;
	box-shadow: none;
}

.tp-header[data-nav="compact"] .tp-primary-navigation__close:hover {
	background: var(--tp-color-surface);
}

/* Drawer: divider + information links (footer "Πληροφορίες" menu). Never shown in the inline menu. */
.tp-primary-navigation__secondary {
	display: none;
}

.tp-header[data-nav="compact"] .tp-primary-navigation__secondary {
	display: block;
	margin: 0 var(--tp-space-4-5);
	padding: var(--tp-space-4) 0 var(--tp-space-7);
	border-top: 2px solid var(--tp-color-border);
}

.tp-primary-navigation__secondary-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.tp-header[data-nav="compact"] .tp-primary-navigation__secondary-list a {
	display: block;
	padding: var(--tp-space-2-5) 0;
	color: var(--tp-color-muted);
	font-size: var(--tp-text-sm);
	font-weight: var(--tp-weight-medium);
	text-decoration: none;
}

.tp-header[data-nav="compact"] .tp-primary-navigation__secondary-list a:hover {
	color: var(--tp-color-primary);
	text-decoration: underline;
}

/* Off-screen copy used by navigation.js to measure the natural menu width. */
.tp-nav-measure {
	position: absolute;
	top: 0;
	left: -9999px;
	visibility: hidden;
	pointer-events: none;
}

.tp-nav-measure ul {
	display: flex;
	flex-wrap: nowrap;
	gap: var(--tp-space-hair);
	margin: 0;
	padding: 0;
	list-style: none;
}

.tp-nav-measure a {
	display: block;
	padding: var(--tp-space-2-5) var(--tp-space-2-5);
	font-size: var(--tp-text-sm);
	font-weight: 600;
	line-height: 1.2;
	white-space: nowrap;
}

/* Search row */
.tp-header__search {
	padding-bottom: var(--tp-space-3-5);
}

.tp-header[data-nav="compact"] .tp-header__search {
	padding-bottom: var(--tp-space-3);
}

.tp-search {
	display: flex;
	align-items: center;
	box-sizing: border-box;
	width: 100%;
	height: 50px;
	margin: 0;
	padding: var(--tp-space-1) var(--tp-space-1) var(--tp-space-1) var(--tp-space-4-5);
	border: var(--tp-rule);
	border-radius: var(--tp-radius-pill);
	background: var(--tp-color-surface);
	transition: border-color .15s ease, background-color .15s ease;
}

.tp-search:focus-within {
	border-color: var(--tp-color-primary);
	background: var(--tp-color-bg);
	box-shadow: 0 0 0 3px var(--tp-color-focus-ring-soft);
}

/* Keyboard focus on the search field: the same high-contrast ring as every other control (WCAG 2.4.7 / 2.4.11). */
.tp-search:has(.tp-search__input:focus-visible) {
	outline: var(--tp-focus-outline);
	outline-offset: 2px;
}

.tp-search__input {
	flex: 1;
	min-width: 0;
	height: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--tp-color-ink);
	font-size: var(--tp-text-md);
	line-height: 1.2;
	appearance: none;
}

.tp-search__input {
	padding-inline-end: var(--tp-space-2);
	text-overflow: ellipsis;
}

.tp-search__input::placeholder {
	color: var(--tp-color-placeholder);
	opacity: 1;
}

.tp-search__input:focus,
.tp-search__input:focus-visible {
	outline: 0;
	box-shadow: none;
}

.tp-search__input::-webkit-search-cancel-button {
	cursor: pointer;
}

.tp-search__button {
	display: grid;
	flex: 0 0 40px;
	place-items: center;
	width: 40px;
	height: 40px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--tp-color-primary);
	color: var(--tp-color-bg);
	line-height: 0;
	cursor: pointer;
	transition: background-color .15s ease;
}

.tp-search__button:hover {
	background: var(--tp-color-primary-deep);
}

.tp-search__icon {
	display: block;
	width: 20px;
	height: 20px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2.2;
	stroke-linecap: round;
}

/* Breaking strip */
.tp-breaking {
	background: var(--tp-color-primary-deep);
	color: var(--tp-color-bg);
}

.tp-breaking__inner {
	display: flex;
	align-items: center;
	gap: var(--tp-space-4);
	min-height: 42px;
}

.tp-breaking__label {
	flex: none;
	padding: var(--tp-space-1) var(--tp-space-2);
	border-radius: var(--tp-radius-sm);
	background: var(--tp-color-accent);
	color: var(--tp-color-primary-deep);
	font-size: var(--tp-text-xs);
	font-weight: 800;
	letter-spacing: .04em;
	line-height: 1.3;
}

.tp-breaking__inner {
	position: relative;
}

/* Fit-to-width, lead first: the first headline is always shown in full (ellipsis only if it is longer than
   the bar); later headlines appear only when they fit completely (navigation.js hides the rest).
   No auto-scrolling text, so nothing moves (WCAG 2.2.2). */
.tp-breaking__list {
	display: flex;
	flex: 1;
	flex-wrap: wrap;
	column-gap: var(--tp-space-6);
	min-width: 0;
	height: 1.4em;
	margin: 0;
	padding: 0 var(--tp-space-6) 0 0;
	overflow: hidden;
	font-size: var(--tp-text-sm);
	line-height: 1.4;
	list-style: none;
}

/* 32px fade into the bar colour at the right edge. */
.tp-breaking__inner::after {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	width: var(--tp-space-6);
	background: var(--tp-fade-dark-end);
	pointer-events: none;
}

.tp-breaking__item {
	display: flex;
	flex: none;
	align-items: baseline;
	gap: var(--tp-space-2);
	max-width: 100%; /* the lead headline gets the whole bar; only it may end in an ellipsis */
	min-width: 0;
	white-space: nowrap;
}

/* Secondary headlines are never truncated: shown only when they fit completely (navigation.js). */
.tp-breaking__item + .tp-breaking__item {
	max-width: none;
}

.tp-breaking__item[hidden] {
	display: none;
}

.tp-breaking__item time {
	flex: none;
	color: var(--tp-color-accent);
	font-size: var(--tp-text-xs);
	font-weight: 700;
}

.tp-breaking__item a {
	overflow: hidden;
	min-width: 0;
	color: var(--tp-color-bg);
	text-decoration: none;
	text-overflow: ellipsis;
}

.tp-breaking__item a:hover {
	text-decoration: underline;
	text-decoration-color: var(--tp-color-accent);
}

/* Header ad (Advanced Ads placement "below-navigation"): compact, centred leaderboard. */
.tp-ad-slot--below-navigation {
	box-sizing: border-box;
	width: min(100% - 2 * var(--tp-gutter), var(--tp-ad-banner-w));
	margin: var(--tp-space-4) auto 0;
}

.tp-ad-slot--below-navigation .tpc-ad-demo {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: var(--tp-space-hair) var(--tp-space-2-5);
	box-sizing: border-box;
	min-height: 50px;
	height: auto;
	padding: var(--tp-space-2) var(--tp-space-3);
	font-size: var(--tp-text-xs);
	line-height: 1.35;
}

/* ==========================================================================
   3. Templates: archive, single, sidebar, ads, breadcrumbs, video, footer
   ========================================================================== */
.tp-main {
	width: min(100% - 2rem, var(--tp-container));
	margin-inline: auto;
}

.tp-main.has-global-padding {
	padding-inline: 0;
}

/* Let the portal's grids use the wide container, not WordPress's prose measure. */
.tp-archive-main.is-layout-constrained > .wp-block-query,
.tp-archive-main.is-layout-constrained > .tp-archive-heading,
.tp-single-main.is-layout-constrained > .tp-breadcrumbs {
	max-width: none;
}

.tp-archive-main .wp-block-query .wp-block-post-template {
	max-width: none;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--tp-space-5);
}

.tp-archive-heading.is-layout-constrained > *,
.tp-archive-main .wp-block-query > .tp-pagination {
	max-width: none;
}

.tp-archive-main .wp-block-post-template > .wp-block-post {
	min-width: 0;
	padding: 0;
	border: 0;
	background: transparent;
}

.tp-front-page.is-layout-constrained > .wp-block-post-content {
	max-width: none;
}

.tp-front-page .tpc-home {
	width: 100%;
}

.tp-archive-main {
	padding-block: var(--tp-section-gap);
}

.tp-archive-heading {
	margin-bottom: var(--tp-space-5);
	padding-bottom: var(--tp-space-4);
	border-bottom: var(--tp-rule);
}

.tp-archive-heading .wp-block-query-title,
.tp-archive-heading h1 {
	margin: 0;
	color: var(--tp-color-primary);
	font-size: var(--tp-text-page);
	line-height: 1.2;
}

.tp-archive-heading .wp-block-term-description {
	max-width: 70ch;
	margin-top: var(--tp-space-3);
	color: var(--tp-color-muted);
}

.tp-coach-featured-image {
	max-width: 520px;
	margin-inline: auto;
}

.tp-coach-featured-image img {
	aspect-ratio: 3 / 4;
	object-fit: cover;
}

.tp-pagination {
	margin-top: var(--tp-space-6);
}

.tp-single-main {
	padding-block: clamp(1.5rem, 4vw, 3rem) var(--tp-space-8);
}

.tp-single-main > .wp-block-post-title {
	margin-block: var(--tp-space-3) var(--tp-space-4);
	color: var(--tp-color-primary);
	font-size: var(--tp-text-display);
	line-height: 1.3;
}

.tp-post-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--tp-space-2-5) var(--tp-space-4);
	margin-block: 0 var(--tp-space-4-5);
	color: var(--tp-color-muted);
	font-size: var(--tp-text-xs);
}

.tp-demo-badge {
	display: inline-flex;
	align-items: center;
	padding: var(--tp-space-1) var(--tp-space-2);
	border: 1px solid var(--tp-color-warning-border);
	border-radius: var(--tp-radius-pill);
	background: var(--tp-color-warning-soft);
	color: var(--tp-color-warning-ink);
	font-size: var(--tp-text-2xs);
	font-weight: 600;
	letter-spacing: .05em;
}

.tp-featured-figure {
	margin: var(--tp-space-5) 0 var(--tp-space-6);
}

.tp-featured-figure img {
	display: block;
	width: 100%;
	height: auto;
	max-height: var(--tp-hero-max-h);
	border-radius: var(--tp-radius);
	object-fit: cover;
}

.tp-featured-figure figcaption {
	margin-top: var(--tp-space-2-5);
	color: var(--tp-color-muted);
	font-size: var(--tp-text-xs);
	line-height: 1.5;
}

.tp-sidebar {
	position: sticky;
	top: var(--tp-space-5);
}

.tp-sidebar__panel {
	margin-bottom: var(--tp-space-5);
	padding: var(--tp-space-4-5);
	border: var(--tp-rule);
	border-radius: var(--tp-radius);
	background: var(--tp-color-surface);
}

.tp-sidebar__panel h2 {
	margin: 0 0 var(--tp-space-3-5);
	color: var(--tp-color-primary);
	font-size: var(--tp-text-card);
	line-height: 1.35;
}

.tp-sidebar__panel ul {
	margin: 0;
	padding-left: var(--tp-space-4-5);
}

.tp-sidebar__panel li + li {
	margin-top: var(--tp-space-3);
}

.tp-sidebar__panel li {
	font-size: var(--tp-text-md);
	line-height: 1.55;
	overflow-wrap: break-word;
}

.tp-sidebar__panel a {
	color: var(--tp-color-ink);
	font-weight: 500;
}

.tp-ad-slot {
	margin-block: var(--tp-space-5);
}

.tp-ad-slot .tpc-ad-demo {
	box-sizing: border-box;
	min-height: 90px;
	padding: var(--tp-space-3);
}

.tp-ad-slot--mobile-in-content {
	display: none;
	border-radius: 10px;
}

.tp-breadcrumbs {
	margin-bottom: var(--tp-space-4);
	color: var(--tp-color-muted);
	font-size: var(--tp-text-xs);
	line-height: 1.6;
}

.tp-breadcrumbs ol {
	display: flex;
	flex-wrap: nowrap;
	min-width: 0;
	margin: 0;
	padding: 0;
	list-style: none;
}

.tp-breadcrumbs li {
	flex: none;
	white-space: nowrap;
}

.tp-breadcrumbs li:not(:last-child)::after {
	margin: 0 var(--tp-space-1-5);
	color: var(--tp-color-muted);
	content: "/";
}

.tp-breadcrumbs li:last-child {
	flex: 0 1 auto;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
}

.tp-breadcrumbs a {
	color: var(--tp-color-primary);
}

.tp-video-figure {
	margin: var(--tp-space-5) 0 var(--tp-space-6);
}

.tp-video-figure video {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	border-radius: var(--tp-radius);
	background: var(--tp-color-media-bg);
}

.tp-video-figure figcaption {
	margin-top: var(--tp-space-2-5);
	color: var(--tp-color-muted);
	font-size: var(--tp-text-xs);
	line-height: 1.5;
}

.tp-video-figure figcaption a {
	color: var(--tp-color-primary);
}

.tp-demo-note {
	padding: var(--tp-space-3) var(--tp-space-4);
	border-left: 4px solid var(--tp-color-warning-rule);
	background: var(--tp-color-warning-soft);
	color: var(--tp-color-warning-ink);
	font-size: var(--tp-text-sm);
}

/* ---- Footer: brand + up to 3 menu columns (registered locations) + optional social links ---- */
.tp-site-footer {
	margin-top: 0;
	padding: var(--tp-space-7) 0 var(--tp-space-4-5);
	background: var(--tp-color-primary-deep);
	color: var(--tp-color-on-dark);
}

.tp-site-footer__inner,
.tp-site-footer__copyright {
	box-sizing: border-box;
	width: min(100% - 2 * var(--tp-gutter), var(--tp-container));
	margin-inline: auto;
}

.tp-site-footer__inner {
	display: grid;
	grid-template-columns: minmax(240px, 1.3fr) repeat(3, minmax(150px, .7fr));
	gap: var(--tp-space-6);
}

.tp-site-footer .custom-logo {
	display: block;
	width: min(100%, 220px);
	height: auto;
	filter: brightness(0) invert(1);
}

/* White Tenistas wordmark (assets/brand/tenistas-logo-white.svg): already light, no filter. */
.tp-site-footer__logo-link {
	display: inline-block;
	line-height: 0;
}

.tp-site-footer__logo {
	display: block;
	width: min(100%, 174px);
	height: auto;
}

.tp-site-footer__description {
	max-width: 34ch;
	color: var(--tp-color-on-dark-soft);
	line-height: var(--tp-leading-normal);
}

.tp-site-footer__social {
	display: flex;
	flex-wrap: wrap;
	gap: var(--tp-space-2) var(--tp-space-4);
	margin: var(--tp-space-4-5) 0 0;
	padding: 0;
	list-style: none;
}

.tp-site-footer h2 {
	margin: 0 0 var(--tp-space-3);
	color: var(--tp-color-accent);
	font-size: var(--tp-text-sm);
	letter-spacing: var(--tp-tracking-label);
	text-transform: uppercase;
}

.tp-site-footer ul {
	display: grid;
	gap: var(--tp-space-2);
	margin: 0;
	padding: 0;
	list-style: none;
}

.tp-site-footer a {
	color: var(--tp-color-on-dark);
	text-decoration-color: var(--tp-color-on-dark-faint);
}

.tp-site-footer a:hover {
	text-decoration-color: var(--tp-color-accent);
}

.tp-site-footer__copyright {
	margin-top: var(--tp-space-6);
	padding-top: var(--tp-space-4);
	border-top: 1px solid var(--tp-color-on-dark-rule);
	color: var(--tp-color-on-dark-muted);
	font-size: var(--tp-text-xs);
}

@media (max-width: 1024px) {
	.tp-site-footer__inner {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.tp-site-footer__brand {
		grid-column: 1 / -1;
	}
}

/* Phones: every menu becomes a full-width group of wrapping links, so no column ends with a lone item. */
@media (max-width: 600px) {
	.tp-site-footer__inner {
		grid-template-columns: minmax(0, 1fr);
		gap: var(--tp-space-5);
	}

	.tp-site-footer__col + .tp-site-footer__col {
		padding-top: var(--tp-space-5);
		border-top: 1px solid var(--tp-color-on-dark-rule);
	}

	/* Inline links with balanced line breaks: «ATP WTA Grand Slam / Ελληνικό τένις Βίντεο», never one orphan. */
	.tp-site-footer__col ul {
		display: block;
		line-height: var(--tp-leading-loose);
		text-wrap: balance;
	}

	.tp-site-footer__col li {
		display: inline;
		margin-inline-end: var(--tp-space-5);
		white-space: nowrap;
	}

	.tp-site-footer__col li:last-child {
		margin-inline-end: 0;
	}

	.tp-site-footer__col a {
		padding-block: var(--tp-space-2);
	}
}

/* Legacy plugin components still used outside the homepage (related articles, directories). */
.tpc-home__section-heading {
	padding-bottom: var(--tp-space-3-5);
	border-bottom: var(--tp-rule);
}

.tpc-home__section-heading > div {
	min-width: 0;
	padding-inline-start: var(--tp-space-3-5);
	border-inline-start: 3px solid var(--tp-color-accent);
}

.tpc-home__section-heading h2 {
	color: var(--tp-color-primary);
}

.tpc-home__section-heading > a {
	color: var(--tp-color-primary);
	font-size: var(--tp-text-sm);
	font-weight: 500;
}

.tpc-home__news-grid {
	align-items: stretch;
}

.tpc-news-card,
.tpc-card {
	border-color: var(--tp-color-border);
	border-radius: var(--tp-radius);
	box-shadow: var(--tp-shadow-hairline);
}

.tpc-news-card__body h2 a,
.tpc-card__body h3 a {
	color: var(--tp-color-ink);
}

.tpc-news-card__date {
	color: var(--tp-color-muted);
}

.tp-related-articles .tpc-home__news-grid {
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
}

.tpc-news-card__badge {
	display: inline-flex;
	padding: .2rem .45rem;
	border: 1px solid var(--tp-color-warning-border);
	border-radius: var(--tp-radius-pill);
	background: var(--tp-color-warning-soft);
	color: var(--tp-color-warning-ink);
	letter-spacing: .04em;
}

.tpc-card__link,
.tpc-home a {
	color: var(--tp-color-primary);
}

.tpc-directory {
	box-sizing: border-box;
	width: 100%;
	margin-block: var(--tp-space-4-5) var(--tp-space-5-5);
	padding: var(--tp-space-4-5);
	border-radius: var(--tp-radius);
	background: var(--tp-color-surface);
}

.tpc-eyebrow {
	color: var(--tp-color-primary);
}

.tpc-feature-grid {
	width: 100%;
}

.tpc-filter input,
.tpc-filter select {
	border-color: var(--tp-color-border);
}

.tpc-button {
	border-color: var(--tp-color-primary);
	background: var(--tp-color-primary);
}

.tpc-button--outline {
	background: transparent;
	color: var(--tp-color-primary);
}

@media (max-width: 900px) {
	.tp-archive-main .wp-block-query .wp-block-post-template,
	.tpc-home__news-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.tp-sidebar {
		position: static;
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: var(--tp-space-4);
	}
}

@media (max-width: 620px) {
	.tp-ad-slot--article-after-content {
		display: none;
	}

	.tp-ad-slot--mobile-in-content {
		display: block;
	}

	.tp-ad-slot--below-navigation {
		margin-top: var(--tp-space-3);
	}

	.tp-ad-slot--below-navigation .tpc-ad-demo {
		min-height: 40px;
		padding: var(--tp-space-1-5) var(--tp-space-2-5);
	}

	.tp-ad-slot--below-navigation .tpc-ad-demo > span {
		display: none;
	}

	.tp-search {
		padding-left: 18px;
	}

	.tp-breaking__inner {
		gap: var(--tp-space-2-5);
		min-height: 38px;
	}

	.tp-breaking__list {
		font-size: var(--tp-text-xs);
	}

	.tp-sidebar {
		grid-template-columns: minmax(0, 1fr);
	}

	.tpc-home__news-grid,
	.tp-archive-main .wp-block-query .wp-block-post-template {
		grid-template-columns: minmax(0, 1fr);
	}

}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		transition-duration: .01ms !important;
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
	}
}

/* ==========================================================================
   4. Homepage (rendered by Tennis Platform Core → TPC_Home)
      Composition: DESIGN_SYSTEM.md §8. Values come from the tokens in §1.
   ========================================================================== */
.tp-front-page.tp-main {
	width: 100%;
}

.tp-front-page .wp-block-post-content > .tp-home {
	max-width: none;
	margin: 0;
}

.tp-home {
	padding-top: var(--tp-space-5);
}

/* The visually hidden H1 is the first child: the hero must not get a section gap. */
.tp-home > .screen-reader-text + * {
	margin-top: 0;
}

.tp-home > * + * {
	margin-top: var(--tp-section-gap);
}

.tp-home > .tp-home-ad {
	margin-top: var(--tp-space-6);
}

.tp-home-ad .tp-ad-slot {
	max-width: var(--tp-ad-leaderboard-w);
	margin: 0 auto;
}

.tp-home-ad .tpc-ad-demo {
	min-height: 0;
	height: var(--tp-ad-leaderboard-h);
}

/* ---- Section header: accent bar · title · hairline rule · "all" link ---- */
.tp-section__head {
	display: flex;
	align-items: center;
	gap: var(--tp-space-4);
	margin: 0 0 var(--tp-space-5);
}

.tp-section__head::after {
	content: "";
	order: 1;
	flex: 1 1 var(--tp-space-5);
	height: var(--tp-border-width);
	background: var(--tp-color-border);
}

.tp-section__title {
	display: flex;
	align-items: center;
	gap: var(--tp-space-3);
	margin: 0;
	color: var(--tp-color-primary);
	font-size: var(--tp-text-section);
	font-weight: var(--tp-weight-heavy);
	line-height: var(--tp-leading-tight);
	letter-spacing: var(--tp-tracking-snug);
}

.tp-section__title::before {
	content: "";
	flex: none;
	width: var(--tp-accent-bar);
	height: .9em;
	border-radius: var(--tp-radius-sm);
	background: var(--tp-color-accent);
}

.tp-section__more {
	order: 2;
	display: inline-flex;
	flex: none;
	align-items: center;
	gap: var(--tp-space-1);
	color: var(--tp-color-primary);
	font-size: var(--tp-text-xs);
	font-weight: var(--tp-weight-bold);
	text-decoration: none;
	white-space: nowrap;
}

.tp-section__more > span:last-child {
	display: inline-block;
	transition: transform var(--tp-duration-base) var(--tp-ease);
}

/* Long labels («Όλες οι ειδήσεις») show one word on phones; the link keeps the full accessible name. */
.tp-section__more-short {
	display: none;
}

@media (max-width: 640px) {
	.tp-section__more-full {
		display: none;
	}

	.tp-section__more-short {
		display: inline;
	}
}

.tp-section__more:hover {
	text-decoration: underline;
	text-decoration-color: var(--tp-color-accent);
	text-decoration-thickness: 2px;
}

.tp-section__more:hover > span:last-child {
	transform: translateX(3px);
}

/* ---- Cards (shared base) ---- */
.tp-card {
	position: relative;
	display: flex;
	flex-direction: column;
	min-width: 0;
	margin: 0;
}

.tp-card__media {
	position: relative;
	display: block;
	overflow: hidden;
	aspect-ratio: var(--tp-ratio-card);
	border-radius: var(--tp-radius);
	background: var(--tp-color-surface);
	isolation: isolate;
}

.tp-card__img,
.tp-card__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform var(--tp-duration-image) var(--tp-ease);
}

@media (hover: hover) {
	.tp-card:hover .tp-card__img {
		transform: scale(var(--tp-zoom));
	}
}

.tp-card__placeholder {
	position: absolute;
	inset: 0;
	background: linear-gradient(135deg, var(--tp-color-primary), var(--tp-color-primary-deep));
}

.tp-card__body {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--tp-space-2);
	min-width: 0;
	padding-top: var(--tp-space-3);
}

/* Category label: 24px tall hit area (WCAG 2.2 target size) without changing the visual rhythm. */
.tp-card__cat {
	display: inline-block;
	margin-block: calc(-1 * var(--tp-hit-pad)) calc(var(--tp-space-1) - var(--tp-hit-pad));
	padding-block: var(--tp-hit-pad);
	color: var(--tp-color-primary);
	font-size: var(--tp-text-2xs);
	font-weight: var(--tp-weight-heavy);
	line-height: var(--tp-leading-snug);
	letter-spacing: var(--tp-tracking-label);
	text-decoration: none;
	text-transform: uppercase;
}

.tp-card__cat:hover {
	text-decoration: underline;
	text-decoration-color: var(--tp-color-accent);
	text-decoration-thickness: 2px;
}

.tp-card__title {
	margin: 0;
	color: var(--tp-color-ink);
	font-size: var(--tp-text-card);
	font-weight: var(--tp-weight-bold);
	line-height: var(--tp-leading-snug);
	letter-spacing: var(--tp-tracking-snug);
}

.tp-card__title a {
	color: inherit;
	text-decoration: none;
	background-image: linear-gradient(var(--tp-color-accent), var(--tp-color-accent));
	background-position: 0 100%;
	background-repeat: no-repeat;
	background-size: 0 2px;
	transition: background-size var(--tp-duration-slow) var(--tp-ease);
}

.tp-card:hover .tp-card__title a,
.tp-card__title a:focus-visible {
	background-size: 100% 2px;
}

.tp-card__excerpt {
	display: -webkit-box;
	overflow: hidden;
	margin: 0;
	color: var(--tp-color-muted);
	font-size: var(--tp-text-sm);
	line-height: var(--tp-leading-normal);
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.tp-card__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--tp-space-2);
	margin: 0;
	color: var(--tp-color-muted);
	font-size: var(--tp-text-xs);
	line-height: var(--tp-leading-snug);
}

.tp-card__demo {
	padding: var(--tp-space-hair) var(--tp-space-2);
	border-radius: var(--tp-radius-sm);
	background: var(--tp-color-warning-bg);
	color: var(--tp-color-warning);
	font-size: var(--tp-text-2xs);
	font-weight: var(--tp-weight-bold);
	letter-spacing: var(--tp-tracking-label);
}

/* ---- Overlay variants (hero lead, overlay, poster): text on the photo ---- */
.tp-card--overlay,
.tp-card--hero,
.tp-card--poster {
	overflow: hidden;
	border-radius: var(--tp-radius);
	background: var(--tp-color-primary-deep);
}

.tp-card--overlay .tp-card__media,
.tp-card--hero .tp-card__media,
.tp-card--poster .tp-card__media {
	border-radius: 0;
}

.tp-card--overlay .tp-card__media::after,
.tp-card--hero .tp-card__media::after,
.tp-card--poster .tp-card__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: var(--tp-scrim);
}

.tp-card--overlay .tp-card__body,
.tp-card--hero .tp-card__body,
.tp-card--poster .tp-card__body {
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	padding: var(--tp-space-5);
	pointer-events: none;
}

.tp-card--overlay .tp-card__body a,
.tp-card--hero .tp-card__body a,
.tp-card--poster .tp-card__body a {
	pointer-events: auto;
}

.tp-card--overlay .tp-card__cat,
.tp-card--hero .tp-card__cat {
	margin-block: 0;
	padding: var(--tp-chip-pad-y) var(--tp-space-2);
	border-radius: var(--tp-radius-sm);
	background: var(--tp-color-accent);
	color: var(--tp-color-on-accent);
}

.tp-card--overlay .tp-card__title,
.tp-card--hero .tp-card__title,
.tp-card--poster .tp-card__title {
	color: var(--tp-color-on-dark);
	text-shadow: var(--tp-text-shadow-photo);
}

.tp-card--overlay .tp-card__title,
.tp-card--poster .tp-card__title {
	display: -webkit-box;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
}

.tp-card--overlay .tp-card__excerpt,
.tp-card--hero .tp-card__excerpt {
	color: var(--tp-color-on-dark-muted);
}

.tp-card--overlay .tp-card__meta,
.tp-card--hero .tp-card__meta,
.tp-card--poster .tp-card__meta {
	color: var(--tp-color-on-dark-muted);
}

/* Lead story */
.tp-card--hero .tp-card__media {
	aspect-ratio: var(--tp-ratio-lead);
}

.tp-card--hero .tp-card__body {
	gap: var(--tp-space-3);
	padding: var(--tp-space-6);
}

.tp-card--hero .tp-card__title {
	max-width: 32ch;
	font-size: var(--tp-text-lead);
	font-weight: var(--tp-weight-heavy);
	line-height: var(--tp-leading-tight);
	letter-spacing: var(--tp-tracking-tight);
}

.tp-card--hero .tp-card__excerpt {
	max-width: 60ch;
	font-size: var(--tp-text-md);
}

/* Crops are centred (50% 50%) unless the image has its own focal point (Media → «Σημείο εστίασης»,
   output inline as object-position). Diagrams/logos flagged «ολόκληρη η εικόνα» are never cropped. */
.tp-card__media .tp-img--contain,
.tp-img--contain {
	object-fit: contain;
	background: var(--tp-color-surface);
}

@media (hover: hover) {
	.tp-card:hover .tp-img--contain {
		transform: none;
	}
}

/* Poster (photo-led strip) */
.tp-card--poster .tp-card__media {
	aspect-ratio: var(--tp-ratio-portrait);
}

.tp-card--poster .tp-card__body {
	padding: var(--tp-space-4);
}

.tp-card--poster .tp-card__title {
	font-size: var(--tp-text-md);
	overflow-wrap: normal;
	hyphens: manual;
	text-wrap: pretty;
	-webkit-line-clamp: 4;
}

/* ---- Row variant (latest news list) ---- */
.tp-card--row {
	display: grid;
	grid-template-columns: minmax(0, var(--tp-thumb-row)) minmax(0, 1fr);
	gap: var(--tp-space-5);
	align-items: start;
	padding-block: var(--tp-space-5);
	border-bottom: var(--tp-rule);
}

.tp-card--row:first-child {
	padding-top: 0;
}

.tp-card--row .tp-card__media {
	aspect-ratio: var(--tp-ratio-photo);
}

.tp-card--row .tp-card__body {
	padding-top: 0;
}

.tp-card--row .tp-card__title {
	font-size: var(--tp-text-card-lg);
}

/* ---- Compact variant (thumbnail + title) ---- */
.tp-card--compact {
	display: grid;
	grid-template-columns: var(--tp-thumb-compact) minmax(0, 1fr);
	gap: var(--tp-space-4);
	align-items: start;
}

.tp-card--compact .tp-card__media {
	aspect-ratio: var(--tp-ratio-thumb);
}

.tp-card--compact .tp-card__body {
	gap: var(--tp-space-1);
	padding-top: 0;
}

.tp-card--compact .tp-card__title {
	display: -webkit-box;
	overflow: hidden;
	font-size: var(--tp-text-md);
	text-wrap: pretty;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
}

/* ---- Video play button ---- */
.tp-card__play {
	position: absolute;
	top: 50%;
	left: 50%;
	z-index: 1;
	display: grid;
	place-items: center;
	width: 56px;
	height: 56px;
	border: 2px solid var(--tp-color-accent);
	border-radius: 50%;
	background: var(--tp-overlay-strong);
	transform: translate(-50%, -50%);
	transition: transform var(--tp-duration-base) var(--tp-ease), background-color var(--tp-duration-base) ease;
}

.tp-card__play svg {
	display: block;
	width: 24px;
	height: 24px;
	margin-left: 3px;
	fill: var(--tp-color-on-dark);
}

.tp-card--video:hover .tp-card__play {
	background: var(--tp-color-primary);
	transform: translate(-50%, -50%) scale(1.08);
}

/* ---- Hero: dominant lead + supporting column ---- */
.tp-hero {
	display: grid;
	grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr);
	gap: var(--tp-grid-gap-lg);
	align-items: stretch;
}

.tp-hero__lead,
.tp-hero__lead .tp-card {
	height: 100%;
}

.tp-hero__lead .tp-card__media {
	height: 100%;
	min-height: 440px;
}

.tp-hero__side {
	display: flex;
	flex-direction: column;
	gap: var(--tp-space-4);
	min-width: 0;
}

.tp-hero__side > .tp-card--stack .tp-card__title {
	font-size: var(--tp-text-card-lg);
	line-height: var(--tp-leading-snug);
}

.tp-hero__side > .tp-card--compact {
	padding-top: var(--tp-space-4);
	border-top: var(--tp-rule);
}

/* ---- Latest news + aside ---- */
.tp-latest {
	display: grid;
	grid-template-columns: minmax(0, 1fr) var(--tp-aside-width);
	gap: var(--tp-grid-gap-lg);
	align-items: start;
}

.tp-latest__rest {
	grid-column: 1 / -1;
	min-width: 0;
}

.tp-latest__ad {
	padding-block: var(--tp-space-5);
	border-bottom: var(--tp-rule);
}

/* Below the aside: two columns of stories across the full container width. */
.tp-latest__list--more {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	column-gap: var(--tp-grid-gap-lg);
}

.tp-latest__list--more > .tp-card--row,
.tp-latest__list--more > .tp-card--row:first-child {
	grid-template-columns: minmax(0, 200px) minmax(0, 1fr);
	padding-top: var(--tp-space-5);
}

.tp-latest__list--more > .tp-latest__ad {
	grid-column: 1 / -1;
}

.tp-latest--full .tp-latest__list--more > .tp-card--row:nth-child(-n+2) {
	padding-top: 0;
}

.tp-latest__ad .tp-ad-slot {
	margin: 0;
}

.tp-latest__actions {
	display: flex;
	justify-content: center;
	padding-top: var(--tp-space-5);
}

/* Button (outline → solid on hover) */
.tp-button {
	display: inline-flex;
	justify-content: center;
	align-items: center;
	gap: var(--tp-space-2);
	min-height: 46px;
	padding: 0 var(--tp-space-6);
	border: 2px solid var(--tp-color-primary);
	border-radius: var(--tp-radius-pill);
	background: transparent;
	color: var(--tp-color-primary);
	font-size: var(--tp-text-sm);
	font-weight: var(--tp-weight-bold);
	text-decoration: none;
	transition: background-color var(--tp-duration-fast) ease, color var(--tp-duration-fast) ease;
}

.tp-button:hover {
	background: var(--tp-color-primary);
	color: var(--tp-color-on-dark);
}

.tp-button[aria-busy="true"] {
	opacity: .7;
	pointer-events: none;
}

.tp-latest__aside {
	display: grid;
	align-self: stretch;
	gap: var(--tp-space-5);
}

.tp-latest__aside > .tp-upcoming {
	box-sizing: border-box;
	height: 100%;
}

.tp-upcoming {
	padding: var(--tp-space-5);
	border-top: 3px solid var(--tp-color-primary);
	border-radius: 0 0 var(--tp-radius-lg) var(--tp-radius-lg);
	background: var(--tp-color-surface);
}

.tp-upcoming .tp-section__head {
	margin-bottom: var(--tp-space-2);
}

.tp-upcoming .tp-section__head::after {
	display: none;
}

.tp-upcoming .tp-section__head {
	flex-wrap: nowrap;
}

.tp-upcoming .tp-section__more {
	margin-left: auto;
}

.tp-upcoming .tp-section__title {
	min-width: 0;
	font-size: var(--tp-text-card);
	white-space: nowrap;
}

.tp-upcoming__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.tp-upcoming__item {
	display: grid;
	grid-template-columns: 52px minmax(0, 1fr);
	gap: var(--tp-space-4);
	align-items: center;
	padding-block: var(--tp-space-3);
	border-bottom: var(--tp-rule);
}

.tp-upcoming__item:last-child {
	border-bottom: 0;
}

.tp-upcoming__date {
	display: grid;
	place-items: center;
	height: 52px;
	border-radius: var(--tp-radius);
	background: var(--tp-color-primary-deep);
	color: var(--tp-color-on-dark);
	font-size: var(--tp-text-2xs);
	font-weight: var(--tp-weight-bold);
	line-height: 1.1;
	text-transform: uppercase;
}

.tp-upcoming__date span {
	color: var(--tp-color-accent);
	font-size: var(--tp-text-section);
	font-weight: var(--tp-weight-heavy);
}

.tp-upcoming__title {
	display: -webkit-box;
	overflow: hidden;
	text-wrap: pretty;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	color: var(--tp-color-ink);
	font-size: var(--tp-text-sm);
	font-weight: var(--tp-weight-bold);
	line-height: var(--tp-leading-snug);
	text-decoration: none;
}

.tp-upcoming__title:hover {
	color: var(--tp-color-primary);
	text-decoration: underline;
	text-decoration-color: var(--tp-color-accent);
	text-decoration-thickness: 2px;
}

.tp-upcoming__place {
	display: block;
	margin-top: var(--tp-space-hair);
	color: var(--tp-color-muted);
	font-size: var(--tp-text-xs);
}

.tp-upcoming-section .tp-upcoming__list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	column-gap: var(--tp-space-5);
}

/* ---- Pairs (two category columns) ---- */
.tp-pair {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--tp-grid-gap-lg);
}

.tp-pair__col {
	min-width: 0;
}

.tp-pair__col > .tp-card--stack .tp-card__title {
	font-size: var(--tp-text-card-lg);
}

.tp-pair__list {
	display: grid;
	gap: var(--tp-space-4);
	margin-top: var(--tp-space-5);
	padding-top: var(--tp-space-5);
	border-top: var(--tp-rule);
}

.tp-pair__list > .tp-card + .tp-card {
	padding-top: var(--tp-space-4);
	border-top: var(--tp-rule);
}

/* ---- Grids ---- */
.tp-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: var(--tp-space-6) var(--tp-grid-gap);
}

.tp-grid--3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tp-grid--2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tp-grid--1 {
	grid-template-columns: minmax(0, 1fr);
}

/* ---- Feature: split lead (photo | deep-green panel) + row of compact stories (Ελληνικό τένις) ---- */
.tp-feature__lead .tp-card--split {
	display: grid;
	grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
	overflow: hidden;
	border-radius: var(--tp-radius);
	background: var(--tp-color-primary-deep);
}

.tp-card--split .tp-card__media {
	height: 100%;
	border-radius: 0;
	aspect-ratio: var(--tp-ratio-card);
}

.tp-card--split .tp-card__body {
	justify-content: center;
	gap: var(--tp-space-3);
	padding: var(--tp-space-6);
	border-left: 4px solid var(--tp-color-accent);
}

.tp-card--split .tp-card__title {
	color: var(--tp-color-on-dark);
	font-size: var(--tp-text-feature);
	line-height: var(--tp-leading-tight);
	letter-spacing: var(--tp-tracking-tight);
}

.tp-card--split .tp-card__excerpt {
	color: var(--tp-color-on-dark-muted);
	font-size: var(--tp-text-sm);
	-webkit-line-clamp: 4;
}

.tp-card--split .tp-card__meta {
	color: var(--tp-color-on-dark-muted);
}

.tp-feature__side {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--tp-grid-gap);
	margin-top: var(--tp-space-5);
}

.tp-feature__side:has(> .tp-card:nth-child(2):last-child) {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* ---- Bands ---- */
.tp-band {
	padding-block: var(--tp-band-pad);
	background: var(--tp-color-surface);
}

/* Grand Slam: light band with portrait photo posters */
.tp-band--slams .tp-band__track {
	gap: var(--tp-grid-gap);
}

/* Video: dark band, large lead + list */
.tp-band--video {
	background: var(--tp-color-primary-deep);
	color: var(--tp-color-on-dark);
}

.tp-band--video .tp-section__head::after {
	background: var(--tp-color-on-dark-border);
}

.tp-band--video .tp-section__title,
.tp-band--video .tp-card__title {
	color: var(--tp-color-on-dark);
}

.tp-band--video .tp-section__more {
	color: var(--tp-color-accent);
}

.tp-band--video .tp-card__meta,
.tp-band--video .tp-card__excerpt {
	color: var(--tp-color-on-dark-muted);
}

.tp-band--video .tp-card__media {
	background: var(--tp-color-on-dark-veil);
}

.tp-video__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
	gap: var(--tp-grid-gap-lg);
	align-items: stretch;
}

.tp-video__lead .tp-card__media {
	aspect-ratio: var(--tp-ratio-wide);
}

.tp-video__lead .tp-card__body {
	gap: var(--tp-space-3);
	padding-top: var(--tp-space-4);
}

.tp-video__lead .tp-card__title {
	font-size: var(--tp-text-feature);
	line-height: var(--tp-leading-tight);
	letter-spacing: var(--tp-tracking-tight);
}

/* Lead video: play control in the lower-left corner, clear of faces and of text burned into thumbnails. */
.tp-video__lead .tp-card__play {
	top: auto;
	right: auto;
	bottom: var(--tp-space-5);
	left: var(--tp-space-5);
	width: 76px;
	height: 76px;
	transform: none;
}

.tp-card--video.tp-card--stack:hover .tp-video__lead .tp-card__play,
.tp-video__lead .tp-card--video:hover .tp-card__play {
	transform: scale(1.08);
}

.tp-video__lead .tp-card__play svg {
	width: 32px;
	height: 32px;
}

.tp-video__list {
	display: grid;
	grid-auto-rows: 1fr;
	align-content: stretch;
	gap: var(--tp-space-4);
}

/* Desktop: each video row fills an equal share of the lead's height (no empty block under the list). */
.tp-video__list > .tp-card--compact {
	align-items: center;
}

.tp-video__list > .tp-card + .tp-card {
	padding-top: var(--tp-space-4);
	border-top: var(--tp-border-width) solid var(--tp-color-on-dark-border);
}

.tp-video__list .tp-card--compact {
	grid-template-columns: minmax(0, 46%) minmax(0, 1fr);
}

.tp-video__list .tp-card--compact .tp-card__title {
	font-size: var(--tp-text-card);
}

.tp-video__list .tp-card__media {
	aspect-ratio: var(--tp-ratio-wide);
}

.tp-card--compact .tp-card__play {
	width: 36px;
	height: 36px;
	border-width: 1.5px;
}

.tp-card--compact .tp-card__play svg {
	width: 16px;
	height: 16px;
	margin-left: var(--tp-space-hair);
}

/* ---- Directory strip (clubs) ---- */
.tp-directory-strip .tp-card__media {
	aspect-ratio: var(--tp-ratio-photo);
}

/* ---- Reveal on scroll: one-off entrance; the resting state is always visible ---- */
@keyframes tp-enter {
	from {
		opacity: 0;
		transform: translateY(16px);
	}

	to {
		opacity: 1;
		transform: none;
	}
}

.tp-reveal.is-entering {
	animation: tp-enter var(--tp-duration-slow) var(--tp-ease) both;
}

/* ==== Homepage responsive ==== */
@media (max-width: 1100px) {
	.tp-grid,
	.tp-grid--3 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	/* Homepage 3-story rows stay three across on tablets (no orphan card). */
	.tp-home .tp-grid--3 {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.tp-band--slams .tp-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.tp-latest {
		grid-template-columns: minmax(0, 1fr) 300px;
	}

	.tp-card--row {
		--tp-thumb-row: 200px;
	}

	.tp-hero {
		grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
	}

	.tp-hero__lead .tp-card__media {
		min-height: 400px;
	}
}

/* Tablet: lead full width, supporting stories in two columns. */
@media (max-width: 900px) {
	.tp-hero {
		grid-template-columns: minmax(0, 1fr);
		gap: var(--tp-space-5);
	}

	.tp-hero__lead .tp-card__media {
		height: auto;
		min-height: 0;
	}

	/* Tablet: the supporting stories become equal photo cards side by side (balanced row). */
	.tp-hero__side {
		display: grid;
		grid-template-columns: none;
		grid-auto-columns: minmax(0, 1fr);
		grid-auto-flow: column;
		align-items: start;
		gap: var(--tp-grid-gap);
	}

	.tp-hero__side > .tp-card--compact {
		display: flex;
		flex-direction: column;
		gap: 0;
		padding-top: 0;
		border-top: 0;
	}

	.tp-hero__side > .tp-card .tp-card__media {
		aspect-ratio: var(--tp-ratio-card);
	}

	.tp-hero__side > .tp-card .tp-card__body {
		gap: var(--tp-space-1);
		padding-top: var(--tp-space-3);
	}

	.tp-hero__side > .tp-card .tp-card__title,
	.tp-hero__side > .tp-card--stack .tp-card__title {
		font-size: var(--tp-text-md);
	}

	.tp-latest,
	.tp-video__grid,
	.tp-latest__list--more {
		grid-template-columns: minmax(0, 1fr);
	}

	.tp-latest--full .tp-latest__list--more > .tp-card--row:nth-child(2) {
		padding-top: var(--tp-space-5);
	}

	.tp-video__list {
		grid-auto-rows: auto;
	}

	.tp-feature__side,
	.tp-feature__side:has(> .tp-card:nth-child(2):last-child) {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.tp-latest__aside {
		position: static;
	}

	.tp-latest__aside .tp-upcoming__list {
		display: grid;
		grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
		column-gap: var(--tp-space-5);
	}

	.tp-latest__aside .tp-upcoming__item {
		border-bottom: 0;
	}

	.tp-video__list {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: var(--tp-space-5);
	}

	.tp-video__list > .tp-card + .tp-card {
		padding-top: 0;
		border-top: 0;
	}

	.tp-video__list .tp-card--compact {
		grid-template-columns: minmax(0, 1fr);
		gap: var(--tp-space-3);
	}
}

/* Phones: every composition rebuilt for one column, not just scaled down. */
@media (max-width: 640px) {
	.tp-home {
		padding-top: var(--tp-space-3);
	}

	.tp-home-ad .tpc-ad-demo,
	.tp-latest__ad .tpc-ad-demo {
		display: flex;
		justify-content: center;
		align-items: center;
		box-sizing: border-box;
		height: auto;
		min-height: var(--tp-ad-mobile-h);
		padding: var(--tp-space-2) var(--tp-space-3);
	}

	.tp-home-ad .tpc-ad-demo > span,
	.tp-latest__ad .tpc-ad-demo > span {
		display: none;
	}

	/* Phones: no flexible rule; the head wraps instead of overflowing (long titles + "all" link). */
	/* Phones: title (wraps within its column) + "all" link aligned right on the title's last line. */
	.tp-section__head {
		display: grid;
		grid-template-columns: minmax(0, 1fr) auto;
		align-items: end;
		gap: var(--tp-space-3);
		margin-bottom: var(--tp-space-4);
		padding-bottom: var(--tp-space-3);
		border-bottom: var(--tp-rule);
	}

	.tp-section__title {
		align-items: flex-start;
	}

	.tp-section__title::before {
		margin-top: .1em;
	}

	.tp-section__more {
		padding-block: var(--tp-hit-pad);
	}

	.tp-section__head::after {
		display: none;
	}

	.tp-section__title {
		min-width: 0;
	}

	.tp-upcoming .tp-section__head {
		border-bottom: 0;
	}

	/* Lead: edge-to-edge photo, headline set on white below it (readable, no scrim over faces). */
	.tp-hero__lead .tp-card--hero {
		margin-inline: calc(-1 * var(--tp-gutter));
		border-radius: 0;
		background: transparent;
	}

	.tp-hero__lead .tp-card--hero .tp-card__media {
		aspect-ratio: var(--tp-ratio-thumb);
	}

	.tp-hero__lead .tp-card--hero .tp-card__media::after {
		display: none;
	}

	.tp-hero__lead .tp-card--hero .tp-card__body {
		position: static;
		gap: var(--tp-space-2);
		padding: var(--tp-space-4) var(--tp-gutter) 0;
	}

	.tp-hero__lead .tp-card--hero .tp-card__title {
		color: var(--tp-color-primary);
		text-shadow: none;
	}

	.tp-hero__lead .tp-card--hero .tp-card__excerpt {
		color: var(--tp-color-muted);
		font-size: var(--tp-text-sm);
	}

	.tp-hero__lead .tp-card--hero .tp-card__meta {
		color: var(--tp-color-muted);
	}

	.tp-hero__side {
		display: flex;
		flex-direction: column;
		gap: 0;
		padding-top: var(--tp-space-5);
		border-top: var(--tp-rule);
	}

	.tp-hero__side > .tp-card--compact {
		display: grid;
		grid-template-columns: var(--tp-thumb-compact) minmax(0, 1fr);
		gap: var(--tp-space-4);
		padding-block: var(--tp-space-4);
		border-bottom: var(--tp-rule);
	}

	.tp-hero__side > .tp-card .tp-card__media {
		aspect-ratio: var(--tp-ratio-thumb);
	}

	.tp-hero__side > .tp-card .tp-card__body {
		padding-top: 0;
	}

	.tp-hero__side > .tp-card--stack {
		display: grid;
		grid-row: auto;
		grid-template-columns: var(--tp-thumb-compact) minmax(0, 1fr);
		gap: var(--tp-space-4);
		align-items: start;
		padding-bottom: var(--tp-space-4);
		border-bottom: var(--tp-rule);
	}

	.tp-hero__side > .tp-card--stack .tp-card__media {
		aspect-ratio: var(--tp-ratio-thumb);
	}

	.tp-hero__side > .tp-card--stack .tp-card__body {
		gap: var(--tp-space-1);
		padding-top: 0;
	}

	.tp-hero__side > .tp-card--stack .tp-card__title {
		font-size: var(--tp-text-md);
	}

	.tp-hero__side > .tp-card--stack + .tp-card--compact {
		padding-top: var(--tp-space-4);
	}

	.tp-hero__side > .tp-card--compact:last-child {
		border-bottom: 0;
		padding-bottom: 0;
	}

	.tp-card--overlay .tp-card__excerpt,
	.tp-card--stack .tp-card__excerpt {
		display: none;
	}

	.tp-pair {
		grid-template-columns: minmax(0, 1fr);
		gap: var(--tp-section-gap);
	}

	.tp-latest__aside .tp-upcoming__list {
		display: block;
	}

	.tp-feature__lead .tp-card--split {
		grid-template-columns: minmax(0, 1fr);
	}

	.tp-card--split .tp-card__media {
		height: auto;
		aspect-ratio: var(--tp-ratio-thumb);
	}

	.tp-card--split .tp-card__body {
		padding: var(--tp-space-4) var(--tp-space-4) var(--tp-space-5);
		border-top: 4px solid var(--tp-color-accent);
		border-left: 0;
	}

	.tp-card--split .tp-card__excerpt {
		display: -webkit-box;
		-webkit-line-clamp: 3;
	}

	.tp-feature__side,
	.tp-feature__side:has(> .tp-card:nth-child(2):last-child) {
		grid-template-columns: minmax(0, 1fr);
		gap: 0;
	}

	.tp-feature__side > .tp-card + .tp-card {
		margin-top: var(--tp-space-4);
		padding-top: var(--tp-space-4);
		border-top: var(--tp-rule);
	}

	.tp-card--row {
		grid-template-columns: var(--tp-thumb-compact) minmax(0, 1fr);
		gap: var(--tp-space-4);
		padding-block: var(--tp-space-4);
	}

	.tp-card--row .tp-card__media {
		aspect-ratio: var(--tp-ratio-thumb);
	}

	.tp-card--row .tp-card__title {
		font-size: var(--tp-text-md);
	}

	.tp-card--row .tp-card__excerpt {
		display: none;
	}

	/* Category grids: first story large, the rest as compact rows. */
	.tp-grid,
	.tp-grid--2,
	.tp-grid--3,
	.tp-home .tp-grid--3 {
		grid-template-columns: minmax(0, 1fr);
		gap: 0;
	}

	.tp-grid > .tp-card + .tp-card {
		display: grid;
		grid-template-columns: var(--tp-thumb-compact) minmax(0, 1fr);
		gap: var(--tp-space-4);
		align-items: start;
		margin-top: var(--tp-space-4);
		padding-top: var(--tp-space-4);
		border-top: var(--tp-rule);
	}

	.tp-grid > .tp-card + .tp-card .tp-card__media {
		aspect-ratio: var(--tp-ratio-thumb);
	}

	.tp-grid > .tp-card + .tp-card .tp-card__body {
		padding-top: 0;
	}

	.tp-grid > .tp-card + .tp-card .tp-card__title {
		font-size: var(--tp-text-md);
	}

	/* Grand Slam posters scroll sideways (snap), never cause page overflow. */
	.tp-band--slams .tp-band__track {
		display: flex;
		gap: var(--tp-space-3);
		margin-inline: calc(-1 * var(--tp-gutter));
		padding-inline: var(--tp-gutter);
		overflow-x: auto;
		overscroll-behavior-x: contain;
		scroll-snap-type: x mandatory;
		scroll-padding-inline: var(--tp-gutter);
		scrollbar-width: none;
	}

	.tp-band--slams .tp-band__track::-webkit-scrollbar {
		display: none;
	}

	.tp-band--slams .tp-band__track > .tp-card,
	.tp-band--slams .tp-band__track > .tp-card + .tp-card {
		display: flex;
		flex: 0 0 64%;
		margin: 0;
		padding: 0;
		border: 0;
		scroll-snap-align: start;
	}

	.tp-band--slams .tp-band__track > .tp-card + .tp-card .tp-card__media {
		aspect-ratio: var(--tp-ratio-portrait);
	}

	.tp-band--slams .tp-band__track > .tp-card + .tp-card .tp-card__body {
		padding: var(--tp-space-4);
	}

	.tp-video__list {
		grid-template-columns: minmax(0, 1fr);
		gap: var(--tp-space-4);
	}

	.tp-video__list > .tp-card + .tp-card {
		padding-top: var(--tp-space-4);
		border-top: var(--tp-border-width) solid var(--tp-color-on-dark-border);
	}

	.tp-video__list .tp-card--compact {
		grid-template-columns: 136px minmax(0, 1fr);
	}

	.tp-video__lead .tp-card__play {
		bottom: var(--tp-space-3);
		left: var(--tp-space-3);
		width: 52px;
		height: 52px;
	}

	.tp-video__lead .tp-card__play svg {
		width: 22px;
		height: 22px;
	}
}

/* Small phones: compact story titles 15px, max 3 lines (all compact/row/secondary cards). */
@media (max-width: 640px) {
	.tp-home {
		--tp-thumb-compact: 104px;
	}

	.tp-home .tp-card--compact .tp-card__title,
	.tp-home .tp-card--row .tp-card__title,
	.tp-home .tp-hero__side > .tp-card .tp-card__title,
	.tp-home .tp-grid > .tp-card + .tp-card .tp-card__title,
	.tp-home .tp-video__list .tp-card__title {
		display: -webkit-box;
		overflow: hidden;
		font-size: var(--tp-text-sm);
		line-height: var(--tp-leading-snug);
		text-wrap: pretty;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 3;
	}
}

@media (max-width: 640px) {
	.tp-latest__list--more > .tp-card--row,
	.tp-latest__list--more > .tp-card--row:first-child {
		grid-template-columns: var(--tp-thumb-compact) minmax(0, 1fr);
		padding-block: var(--tp-space-4);
	}
}

@media (max-width: 400px) {
	.tp-home {
		--tp-thumb-compact: 96px;
	}

}

@media (prefers-reduced-motion: reduce) {
	.tp-card__img,
	.tp-card__title a,
	.tp-card__play,
	.tp-section__more > span,
	.tp-primary-navigation__panel,
	.tp-primary-navigation__overlay,
	.tp-reveal {
		transition: none !important;
		animation: none !important;
	}

	.tp-card:hover .tp-card__img {
		transform: none;
	}
}

/* ==========================================================================
   5. Page templates v2 (phase B): article, archives, search, directories,
      club / tournament detail, static pages. Tokens only (§1); composition in
      DESIGN_SYSTEM.md §17.
   ========================================================================== */
.tp-main.tp-page-main {
	width: 100%;
	margin-block: 0;
	padding: 0 0 var(--tp-section-gap);
}

.tp-page-main > .tp-container,
.tp-page-main > article {
	margin-top: 0;
}

header.wp-block-template-part .tp-ad-slot--below-navigation {
	margin-bottom: 0;
}

main.tp-main.tp-front-page {
	margin-block-start: 0;
}

.tp-home {
	padding-top: var(--tp-space-5);
}

/* ---- Breadcrumbs ---- */
.tp-page-main .tp-breadcrumbs {
	margin: 0 0 var(--tp-space-4);
	color: var(--tp-color-muted);
	font-size: var(--tp-text-xs);
}

/* One line: each separator belongs to the crumb before it (never a leading «/»); ancestors keep their
   width and only the current page title is truncated with an ellipsis. */
.tp-page-main .tp-breadcrumbs ol {
	display: flex;
	flex-wrap: nowrap;
	align-items: baseline;
	min-width: 0;
	margin: 0;
	padding: 0;
	list-style: none;
}

.tp-page-main .tp-breadcrumbs li {
	flex: none;
	white-space: nowrap;
}

.tp-page-main .tp-breadcrumbs li:not(:last-child)::after {
	content: "/";
	margin: 0 var(--tp-space-2);
	color: var(--tp-color-subtle);
}

.tp-page-main .tp-breadcrumbs li:last-child {
	flex: 0 1 auto;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
}

.tp-page-main .tp-breadcrumbs a {
	color: var(--tp-color-muted);
	text-decoration: none;
}

.tp-page-main .tp-breadcrumbs a:hover {
	color: var(--tp-color-primary);
	text-decoration: underline;
}

.tp-page-main .tp-breadcrumbs [aria-current] {
	display: block;
	max-width: 40ch;
	overflow: hidden;
	color: var(--tp-color-ink);
	text-overflow: ellipsis;
	white-space: nowrap;
	vertical-align: bottom;
}

/* ---- Kicker / eyebrow: lime square + label (same mark as the section titles) ---- */
.tp-kicker,
.tp-archive__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: var(--tp-space-2);
	margin: 0 0 var(--tp-space-3);
	color: var(--tp-color-primary);
	font-size: var(--tp-text-xs);
	font-weight: var(--tp-weight-heavy);
	letter-spacing: var(--tp-tracking-label);
	text-decoration: none;
	text-transform: uppercase;
}

.tp-kicker::before,
.tp-archive__eyebrow::before {
	content: "";
	width: var(--tp-space-2);
	height: var(--tp-space-2);
	background: var(--tp-color-accent);
	box-shadow: 0 0 0 var(--tp-space-hair) var(--tp-color-primary);
}

a.tp-kicker:hover {
	text-decoration: underline;
	text-decoration-color: var(--tp-color-accent);
	text-decoration-thickness: var(--tp-space-hair);
}

/* ==========================================================================
   Article
   ========================================================================== */
.tp-article__head {
	padding-top: var(--tp-space-5);
}

.tp-article__intro {
	max-width: calc(100% - var(--tp-aside-width) - var(--tp-grid-gap-lg));
}

.tp-article__title {
	margin: 0;
	color: var(--tp-color-ink);
	font-size: var(--tp-text-display);
	font-weight: var(--tp-weight-heavy);
	line-height: var(--tp-leading-tight);
	letter-spacing: var(--tp-tracking-tight);
	text-wrap: balance;
}

.tp-article__dek {
	max-width: var(--tp-measure);
	margin: var(--tp-space-4) 0 0;
	color: var(--tp-color-ink-soft);
	font-size: var(--tp-text-card-lg);
	line-height: var(--tp-leading-normal);
	text-wrap: pretty;
}

.tp-article__meta {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: var(--tp-space-3) var(--tp-space-5);
	margin-top: var(--tp-space-5);
	padding-top: var(--tp-space-4);
	border-top: var(--tp-rule);
}

.tp-article__byline {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--tp-space-1) var(--tp-space-2);
	color: var(--tp-color-muted);
	font-size: var(--tp-text-sm);
}

.tp-article__author {
	color: var(--tp-color-ink);
	font-weight: var(--tp-weight-bold);
}

.tp-dot {
	color: var(--tp-color-subtle);
}

.tp-article__hero {
	margin: var(--tp-space-5) auto 0;
}

.tp-article__hero-img {
	display: block;
	width: 100%;
	height: auto;
	max-height: var(--tp-hero-max-h);
	aspect-ratio: var(--tp-ratio-wide);
	object-fit: cover;
	border-radius: var(--tp-radius);
	background: var(--tp-color-surface);
}

.tp-article__credit {
	margin-top: var(--tp-space-2);
	color: var(--tp-color-muted);
	font-size: var(--tp-text-xs);
	line-height: var(--tp-leading-normal);
}

.tp-article__credit a {
	color: inherit;
}

.tp-article__layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) var(--tp-aside-width);
	gap: var(--tp-grid-gap-lg);
	align-items: start;
	margin-top: var(--tp-space-6);
}

.tp-article--video .tp-article__layout {
	margin-top: var(--tp-space-5);
}

.tp-article__main {
	min-width: 0;
}

.tp-article__aside {
	position: sticky;
	top: var(--tp-space-5);
	display: grid;
	gap: var(--tp-space-6);
}

/* ---- Prose: ~68ch measure, 17–18px, Greek-friendly wrapping ---- */
.tp-prose {
	color: var(--tp-color-ink);
	font-size: var(--tp-text-prose);
	line-height: var(--tp-leading-body);
	overflow-wrap: break-word;
	hyphens: manual;
}

.tp-prose > * {
	max-width: var(--tp-measure);
	margin-block: 0 1.25em;
}

.tp-prose p {
	text-wrap: pretty;
}

.tp-prose > .wp-block-embed,
.tp-prose > figure,
.tp-prose > .wp-block-image,
.tp-prose > .tp-inline-ad,
.tp-prose > .wp-block-video,
.tp-prose > .tp-video-figure,
.tp-prose > .wp-block-table {
	max-width: 100%;
	margin-block: var(--tp-space-6);
}

.tp-prose > :first-child {
	margin-top: 0;
}

.tp-prose h2 {
	margin: 1.8em 0 .6em;
	color: var(--tp-color-primary);
	font-size: var(--tp-text-subhead);
	font-weight: var(--tp-weight-heavy);
	line-height: var(--tp-leading-snug);
	letter-spacing: var(--tp-tracking-snug);
}

.tp-prose h3 {
	margin: 1.6em 0 .5em;
	color: var(--tp-color-ink);
	font-size: var(--tp-text-card-lg);
	font-weight: var(--tp-weight-bold);
	line-height: var(--tp-leading-snug);
}

.tp-prose a {
	color: var(--tp-color-primary);
	text-decoration-color: var(--tp-color-accent);
	text-decoration-thickness: var(--tp-space-hair);
}

.tp-prose a:hover {
	text-decoration-color: var(--tp-color-primary);
}

.tp-prose ul,
.tp-prose ol {
	padding-left: 1.3em;
}

.tp-prose li + li {
	margin-top: .4em;
}

.tp-prose ul li::marker {
	color: var(--tp-color-primary);
}

.tp-prose blockquote,
.tp-prose .wp-block-quote,
.tp-prose .wp-block-pullquote {
	margin-inline: 0;
	padding: var(--tp-space-1) 0 var(--tp-space-1) var(--tp-space-5);
	border: 0;
	border-left: var(--tp-space-1) solid var(--tp-color-accent);
	color: var(--tp-color-primary);
	font-size: var(--tp-text-card-lg);
	font-weight: var(--tp-weight-semibold);
	line-height: var(--tp-leading-normal);
}

.tp-prose blockquote cite,
.tp-prose .wp-block-quote cite {
	display: block;
	margin-top: var(--tp-space-2);
	color: var(--tp-color-muted);
	font-size: var(--tp-text-sm);
	font-style: normal;
	font-weight: var(--tp-weight-regular);
}

.tp-prose figure img,
.tp-prose .wp-block-image img {
	height: auto;
	border-radius: var(--tp-radius);
}

.tp-prose figcaption,
.tp-prose .wp-element-caption {
	margin-top: var(--tp-space-2);
	color: var(--tp-color-muted);
	font-size: var(--tp-text-xs);
	line-height: var(--tp-leading-normal);
	text-align: left;
}

/* Video embeds: 16:9 frame on the media colour, caption under it. */
.tp-prose .wp-block-embed__wrapper {
	position: relative;
}

.tp-prose .wp-block-embed.is-type-video .wp-block-embed__wrapper {
	overflow: hidden;
	aspect-ratio: var(--tp-ratio-wide);
	border-radius: var(--tp-radius);
	background: var(--tp-color-media-bg);
}

.tp-prose .wp-block-embed.is-type-video iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.tp-prose .wp-block-embed.is-type-video .wp-block-embed__wrapper::before {
	display: none;
}

.tp-prose .wp-block-embed.is-type-video figcaption {
	padding-left: var(--tp-space-3);
	border-left: var(--tp-space-hair) solid var(--tp-color-accent);
}

.tp-prose table {
	width: 100%;
	border-collapse: collapse;
	font-size: var(--tp-text-sm);
}

.tp-prose th,
.tp-prose td {
	padding: var(--tp-space-2-5) var(--tp-space-3);
	border-bottom: var(--tp-rule);
	text-align: left;
	vertical-align: top;
}

.tp-prose thead th {
	border-bottom: var(--tp-space-hair) solid var(--tp-color-primary);
	color: var(--tp-color-primary);
}

.tp-prose hr {
	border: 0;
	border-top: var(--tp-rule);
}

/* ---- Tags & chips ---- */
.tp-tags {
	display: flex;
	flex-wrap: wrap;
	gap: var(--tp-space-2);
	margin: var(--tp-space-6) 0 0;
	padding: 0;
	list-style: none;
}

.tp-tags a,
.tp-chips a {
	display: inline-block;
	padding: var(--tp-space-1-5) var(--tp-space-3);
	border: var(--tp-rule);
	border-radius: var(--tp-radius-pill);
	background: var(--tp-color-bg);
	color: var(--tp-color-primary);
	font-size: var(--tp-text-sm);
	font-weight: var(--tp-weight-semibold);
	text-decoration: none;
	transition: background-color var(--tp-duration-fast) var(--tp-ease), border-color var(--tp-duration-fast) var(--tp-ease);
}

.tp-tags a:hover,
.tp-chips a:hover {
	border-color: var(--tp-color-primary);
	background: var(--tp-color-surface);
}

/* ---- Share: compact icons in the byline row, labelled row after the text ---- */
.tp-share {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--tp-space-2-5) var(--tp-space-3-5);
}

.tp-share--top .tp-share__label {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.tp-share--bottom {
	margin: var(--tp-space-6) 0 0;
	padding: var(--tp-space-4) 0;
	border-block: var(--tp-rule);
}

.tp-share__label {
	color: var(--tp-color-muted);
	font-size: var(--tp-text-xs);
	font-weight: var(--tp-weight-bold);
}

.tp-share__list {
	display: flex;
	flex-wrap: wrap;
	gap: var(--tp-space-2);
	margin: 0;
	padding: 0;
	list-style: none;
}

.tp-share__btn {
	display: inline-flex;
	justify-content: center;
	align-items: center;
	gap: var(--tp-space-2);
	box-sizing: border-box;
	min-width: var(--tp-space-6-5);
	height: var(--tp-space-6-5);
	padding: 0 var(--tp-space-2-5);
	border: var(--tp-rule);
	border-radius: var(--tp-radius-pill);
	background: var(--tp-color-bg);
	color: var(--tp-color-primary);
	font: inherit;
	font-size: var(--tp-text-xs);
	font-weight: var(--tp-weight-bold);
	text-decoration: none;
	cursor: pointer;
	transition: background-color var(--tp-duration-fast) var(--tp-ease), border-color var(--tp-duration-fast) var(--tp-ease);
}

.tp-share__btn:hover {
	border-color: var(--tp-color-primary);
	background: var(--tp-color-surface);
}

.tp-share__btn svg {
	display: block;
	width: var(--tp-space-4-5);
	height: var(--tp-space-4-5);
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.tp-share__btn--facebook svg {
	fill: currentColor;
	stroke: none;
}

.tp-share__btn--copy {
	padding-inline: var(--tp-space-3) var(--tp-space-3-5);
}

.tp-share--top .tp-share__btn--copy {
	padding-inline: var(--tp-space-2-5);
}

.tp-share--top .tp-share__copy-text,
.tp-share__copy-text[hidden] {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.tp-share__btn.is-copied {
	border-color: var(--tp-color-primary);
	background: var(--tp-color-accent);
	color: var(--tp-color-on-accent);
}

/* ---- Inline ad wrappers (nothing renders when a slot has no creative) ---- */
.tp-inline-ad {
	margin-block: var(--tp-space-6);
}

.tp-inline-ad .tp-ad-slot {
	margin: 0;
}

.tp-inline-ad--mobile {
	display: none;
}

.tp-inline-ad--sidebar {
	margin: 0;
}

/* ---- Sidebar boxes ---- */
.tp-side-box {
	padding-top: var(--tp-space-3-5);
	border-top: var(--tp-rule-strong);
}

.tp-side-box__title {
	margin: 0 0 var(--tp-space-2);
	color: var(--tp-color-primary);
	font-size: var(--tp-text-card);
	font-weight: var(--tp-weight-heavy);
	line-height: var(--tp-leading-snug);
}

.tp-mini-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.tp-mini-list__item + .tp-mini-list__item {
	border-top: var(--tp-rule);
}

.tp-mini-list__link {
	display: grid;
	grid-template-columns: var(--tp-space-9) minmax(0, 1fr);
	gap: var(--tp-space-3);
	align-items: start;
	padding-block: var(--tp-space-3);
	color: var(--tp-color-ink);
	text-decoration: none;
}

.tp-mini-list__img {
	display: block;
	width: var(--tp-space-9);
	height: auto;
	aspect-ratio: var(--tp-ratio-thumb);
	object-fit: cover;
	border-radius: var(--tp-radius);
	background: var(--tp-color-surface);
}

.tp-mini-list__text {
	display: grid;
	gap: var(--tp-space-1);
}

.tp-mini-list__title {
	display: -webkit-box;
	overflow: hidden;
	font-size: var(--tp-text-sm);
	font-weight: var(--tp-weight-bold);
	line-height: var(--tp-leading-snug);
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
}

.tp-mini-list__link:hover .tp-mini-list__title {
	color: var(--tp-color-primary);
	text-decoration: underline;
	text-decoration-color: var(--tp-color-accent);
	text-decoration-thickness: var(--tp-space-hair);
}

.tp-mini-list time {
	color: var(--tp-color-muted);
	font-size: var(--tp-text-2xs);
}

/* ---- Below the article ---- */
.tp-related {
	margin-top: var(--tp-section-gap);
}

.tp-article .tp-related + .tp-related {
	margin-top: var(--tp-space-7);
}

.tp-related--more .tp-grid {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* ==========================================================================
   Archives (category, tag, date, news) and search
   ========================================================================== */
.tp-archive {
	padding-top: var(--tp-space-5);
}

.tp-archive__head {
	display: grid;
	justify-items: start;
	margin-bottom: var(--tp-space-6);
	padding-bottom: var(--tp-space-4-5);
	border-bottom: var(--tp-rule);
}

.tp-archive__head .tp-breadcrumbs {
	justify-self: stretch;
}

.tp-archive__title {
	margin: 0;
	color: var(--tp-color-primary);
	font-size: var(--tp-text-page);
	font-weight: var(--tp-weight-heavy);
	line-height: var(--tp-leading-tight);
	letter-spacing: var(--tp-tracking-tight);
	text-wrap: balance;
}

.tp-archive__desc {
	display: -webkit-box;
	max-width: var(--tp-measure);
	margin: var(--tp-space-3) 0 0;
	overflow: hidden;
	color: var(--tp-color-ink-soft);
	font-size: var(--tp-text-md);
	line-height: var(--tp-leading-normal);
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.tp-archive__desc p {
	margin: 0;
}

/* Directory intros carry the «verify with the organiser» notice: never clamp them. */
.tp-directory-page .tp-archive__desc {
	display: block;
	overflow: visible;
}

.tp-archive__count {
	margin: var(--tp-space-3) 0 0;
	color: var(--tp-color-muted);
	font-size: var(--tp-text-sm);
	font-weight: var(--tp-weight-semibold);
}

.tp-archive__count--pill {
	padding: var(--tp-space-1) var(--tp-space-3);
	border-radius: var(--tp-radius-pill);
	background: var(--tp-color-surface);
	color: var(--tp-color-primary);
}

/* Lead + secondary column */
.tp-archive__top {
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
	gap: var(--tp-grid-gap);
	margin-bottom: var(--tp-space-7);
}

.tp-archive__top--solo {
	grid-template-columns: minmax(0, 1fr);
}

.tp-archive__lead {
	min-width: 0;
}

.tp-archive__lead .tp-card--hero {
	height: 100%;
}

.tp-archive__lead .tp-card--hero .tp-card__media {
	height: 100%;
	min-height: var(--tp-lead-min-h);
	aspect-ratio: auto;
}

.tp-archive__side {
	display: grid;
	gap: var(--tp-grid-gap);
	align-content: start;
	min-width: 0;
}

.tp-archive__side--2 .tp-card--stack .tp-card__title {
	font-size: var(--tp-text-card-lg);
}

.tp-archive__side--3 {
	gap: 0;
	align-content: stretch;
}

.tp-archive__side--3 .tp-card--row {
	--tp-thumb-row: var(--tp-thumb-side);
	gap: var(--tp-space-4);
	padding-block: var(--tp-space-4);
}

.tp-archive__side--3 .tp-card--row .tp-card__title {
	font-size: var(--tp-text-card);
	overflow-wrap: break-word;
}

.tp-archive__side--3 .tp-card--row:first-child {
	padding-top: 0;
}

/* Desktop: the lead row has a viewport-tied height so the photo subject and headline sit in the first
   screen (1440×900: ≈470px). Side stories share that height; their photos flex, keeping tp_focal. */
@media (min-width: 901px) {
	.tp-archive__top {
		--tp-lead-h: clamp(var(--tp-lead-min-h-desktop), 52vh, var(--tp-lead-max-h));
		align-items: start;
	}

	.tp-archive__lead .tp-card--hero,
	.tp-archive__lead .tp-card--hero .tp-card__media {
		height: var(--tp-lead-h);
		min-height: 0;
	}

	.tp-archive__side--2 {
		grid-template-rows: repeat(2, minmax(0, 1fr));
		height: var(--tp-lead-h);
	}

	.tp-archive__side--2 .tp-card--stack {
		display: flex;
		flex-direction: column;
		min-height: 0;
	}

	.tp-archive__side--2 .tp-card--stack .tp-card__media {
		flex: 1 1 0;
		min-height: var(--tp-space-9);
		aspect-ratio: auto;
	}

	.tp-archive__side--2 .tp-card--stack .tp-card__title {
		font-size: var(--tp-text-card);
	}

	.tp-archive__side--2 .tp-card--stack .tp-card__excerpt {
		display: none;
	}
}

.tp-archive__grid .tp-card__title {
	font-size: var(--tp-text-card-lg);
}

.tp-archive__more {
	display: flex;
	justify-content: center;
	margin-top: var(--tp-space-6);
}

.tp-search-page__form {
	justify-self: stretch;
	max-width: var(--tp-container-prose);
	margin-top: var(--tp-space-4);
}

.tp-search-results {
	min-width: 0;
}

.tp-search-layout {
	margin-top: var(--tp-space-2);
}

.tp-search-results .tp-card--row:first-child {
	padding-top: 0;
}

.tp-mark {
	padding: 0 var(--tp-space-hair);
	border-radius: var(--tp-radius-sm);
	background: var(--tp-color-accent);
	color: var(--tp-color-on-accent);
}

.tp-card__placeholder--court {
	background:
		linear-gradient(90deg, transparent 49.6%, var(--tp-color-court-line) 49.6%, var(--tp-color-court-line) 50.4%, transparent 50.4%),
		linear-gradient(transparent 20%, var(--tp-color-on-dark-faint) 20%, var(--tp-color-on-dark-faint) calc(20% + 1px), transparent calc(20% + 1px), transparent 80%, var(--tp-color-on-dark-faint) 80%, var(--tp-color-on-dark-faint) calc(80% + 1px), transparent calc(80% + 1px)),
		linear-gradient(135deg, var(--tp-color-primary), var(--tp-color-primary-deep));
}

/* ---- Pagination ---- */
.tp-pager {
	margin-top: var(--tp-space-7);
}

.tp-pager ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: var(--tp-space-1-5);
	margin: 0;
	padding: 0;
	list-style: none;
}

.tp-pager .page-numbers {
	display: inline-flex;
	justify-content: center;
	align-items: center;
	box-sizing: border-box;
	min-width: var(--tp-hit);
	height: var(--tp-hit);
	padding: 0 var(--tp-space-3-5);
	border: var(--tp-rule);
	border-radius: var(--tp-radius-pill);
	color: var(--tp-color-primary);
	font-weight: var(--tp-weight-bold);
	text-decoration: none;
}

.tp-pager a.page-numbers:hover {
	border-color: var(--tp-color-primary);
	background: var(--tp-color-surface);
}

.tp-pager .page-numbers.current {
	border-color: var(--tp-color-primary);
	background: var(--tp-color-primary);
	color: var(--tp-color-bg);
}

.tp-pager .page-numbers.dots {
	border: 0;
}

/* ---- Empty state ---- */
.tp-empty {
	padding: var(--tp-space-6);
	border-radius: var(--tp-radius-lg);
	background: var(--tp-color-surface);
}

.tp-empty__msg {
	margin: 0 0 var(--tp-space-1-5);
	color: var(--tp-color-primary);
	font-size: var(--tp-text-section);
	font-weight: var(--tp-weight-heavy);
}

.tp-empty__title {
	margin: var(--tp-space-6) 0 var(--tp-space-4);
	color: var(--tp-color-primary);
	font-size: var(--tp-text-card-lg);
	font-weight: var(--tp-weight-heavy);
}

.tp-chips {
	display: flex;
	flex-wrap: wrap;
	gap: var(--tp-space-2);
	margin: var(--tp-space-4) 0 0;
	padding: 0;
	list-style: none;
}

/* Wider screens: inline chips with balanced line breaks (5 + 5, never 9 + 1). */
@media (min-width: 641px) {
	.tp-chips {
		display: block;
		text-wrap: balance;
	}

	.tp-chips li {
		display: inline-block;
		margin: 0 var(--tp-space-2) var(--tp-space-2) 0;
	}
}

/* ==========================================================================
   Directories (clubs, tournaments)
   ========================================================================== */
.tp-filter-wrap {
	margin-bottom: var(--tp-space-6);
	border-radius: var(--tp-radius-lg);
	background: var(--tp-color-surface);
}

.tp-filter-wrap__toggle {
	display: none;
}

.tp-filter {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(var(--tp-filter-min), 1fr));
	gap: var(--tp-space-3) var(--tp-space-4);
	align-items: end;
	padding: var(--tp-space-4-5);
}

.tp-filter__field {
	display: grid;
	gap: var(--tp-space-1-5);
	min-width: 0;
}

.tp-filter__field label {
	color: var(--tp-color-primary);
	font-size: var(--tp-text-xs);
	font-weight: var(--tp-weight-bold);
}

.tp-filter select {
	box-sizing: border-box;
	width: 100%;
	height: var(--tp-hit);
	padding: 0 var(--tp-space-6-5) 0 var(--tp-space-3);
	border: var(--tp-rule);
	border-radius: var(--tp-radius);
	background: var(--tp-color-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23123d2c' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right var(--tp-space-2-5) center / var(--tp-space-4-5);
	color: var(--tp-color-ink);
	font-size: var(--tp-text-md);
	appearance: none;
}

.tp-filter__actions {
	display: flex;
	align-items: center;
	gap: var(--tp-space-3-5);
}

.tp-filter__clear {
	color: var(--tp-color-primary);
	font-size: var(--tp-text-sm);
	font-weight: var(--tp-weight-bold);
}

.tp-button--solid {
	background: var(--tp-color-primary);
	color: var(--tp-color-bg);
	cursor: pointer;
	font-family: inherit;
}

.tp-button--solid:hover {
	background: var(--tp-color-primary-deep);
	border-color: var(--tp-color-primary-deep);
}

.tp-map-wrap {
	margin-bottom: var(--tp-space-6);
}

.tp-map {
	height: var(--tp-map-h);
	border-radius: var(--tp-radius-lg);
	background: var(--tp-color-surface);
}

.tp-entity__aside .tp-map {
	height: var(--tp-map-h-sm);
}

.tp-map__note {
	margin: var(--tp-space-1-5) 0 0;
	color: var(--tp-color-muted);
	font-size: var(--tp-text-2xs);
}

.tp-map__note a {
	color: inherit;
}

.tp-dir-card .tp-card__title {
	font-size: var(--tp-text-card-lg);
}

/* ---- Tournament calendar: upcoming first, completed after ---- */
.tp-events-group + .tp-events-group {
	margin-top: var(--tp-space-7);
}

.tp-events-group__count {
	order: 1;
	min-width: var(--tp-space-5);
	padding: var(--tp-space-hair) var(--tp-space-2);
	border-radius: var(--tp-radius-pill);
	background: var(--tp-color-surface);
	color: var(--tp-color-primary);
	font-size: var(--tp-text-xs);
	font-weight: var(--tp-weight-heavy);
	text-align: center;
}

.tp-events {
	display: grid;
	border-top: var(--tp-rule);
}

.tp-section__head + .tp-events {
	border-top: 0;
}

.tp-event {
	display: grid;
	grid-template-columns: var(--tp-space-9) minmax(0, 1fr) auto;
	gap: var(--tp-space-4-5);
	align-items: center;
	padding-block: var(--tp-space-4);
	border-bottom: var(--tp-rule);
}

.tp-event__date {
	display: grid;
	place-items: center;
	align-content: center;
	height: var(--tp-space-9);
	border-radius: var(--tp-radius);
	background: var(--tp-color-primary-deep);
	color: var(--tp-color-bg);
	line-height: var(--tp-leading-tight);
	text-align: center;
}

.tp-event__day {
	color: var(--tp-color-accent);
	font-size: var(--tp-text-feature);
	font-weight: var(--tp-weight-heavy);
}

.tp-event__month {
	font-size: var(--tp-text-2xs);
	font-weight: var(--tp-weight-bold);
}

.tp-event__title {
	margin: 0;
	font-size: var(--tp-text-card-lg);
	font-weight: var(--tp-weight-bold);
	line-height: var(--tp-leading-snug);
	text-wrap: pretty;
}

.tp-event__title a {
	color: var(--tp-color-ink);
	text-decoration: none;
}

.tp-event__title a:hover {
	color: var(--tp-color-primary);
	text-decoration: underline;
	text-decoration-color: var(--tp-color-accent);
	text-decoration-thickness: var(--tp-space-hair);
}

.tp-event__meta {
	margin: var(--tp-space-1) 0 0;
	color: var(--tp-color-muted);
	font-size: var(--tp-text-sm);
}

.tp-events-group--finished .tp-event__date {
	background: var(--tp-color-surface);
	color: var(--tp-color-muted);
}

.tp-events-group--finished .tp-event__day {
	color: var(--tp-color-primary);
}

.tp-events-group--finished .tp-event__title {
	font-size: var(--tp-text-card);
}

.tp-status {
	display: inline-block;
	padding: var(--tp-space-1) var(--tp-space-2-5);
	border-radius: var(--tp-radius-pill);
	background: var(--tp-color-surface);
	color: var(--tp-color-primary);
	font-size: var(--tp-text-2xs);
	font-weight: var(--tp-weight-heavy);
	white-space: nowrap;
}

.tp-status--upcoming {
	background: var(--tp-color-accent);
	color: var(--tp-color-on-accent);
}

.tp-status--ongoing {
	background: var(--tp-color-primary);
	color: var(--tp-color-bg);
}

.tp-status--cancelled {
	background: var(--tp-color-danger-soft);
	color: var(--tp-color-danger-ink);
}

/* ---- Club / tournament detail ---- */
.tp-entity {
	padding-top: var(--tp-space-5);
}

.tp-entity__head {
	margin-bottom: var(--tp-space-5);
}

.tp-entity__when {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--tp-space-2-5);
	margin: var(--tp-space-3) 0 0;
	color: var(--tp-color-ink);
	font-size: var(--tp-text-prose);
	font-weight: var(--tp-weight-bold);
}

.tp-entity__demo {
	display: flex;
	align-items: center;
	gap: var(--tp-space-2);
	margin: var(--tp-space-3) 0 0;
	color: var(--tp-color-muted);
	font-size: var(--tp-text-sm);
}

.tp-entity__cover {
	margin: 0 0 var(--tp-space-6);
}

.tp-entity__cover img {
	display: block;
	width: 100%;
	height: auto;
	max-height: var(--tp-cover-max-h);
	aspect-ratio: var(--tp-ratio-cinema);
	object-fit: cover;
	border-radius: var(--tp-radius);
}

.tp-entity__layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) var(--tp-aside-width);
	gap: var(--tp-grid-gap-lg);
	align-items: start;
}

.tp-entity__main {
	display: grid;
	gap: var(--tp-space-6);
	min-width: 0;
}

.tp-entity__aside {
	position: sticky;
	top: var(--tp-space-5);
	display: grid;
	gap: var(--tp-space-5);
}

.tp-facts-box {
	padding: var(--tp-space-4-5) var(--tp-space-5) var(--tp-space-2);
	border-top: var(--tp-rule-strong);
	border-radius: 0 0 var(--tp-radius-lg) var(--tp-radius-lg);
	background: var(--tp-color-surface);
}

.tp-facts {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0 var(--tp-space-5);
	margin: 0;
}

.tp-facts__row {
	padding-block: var(--tp-space-3);
	border-bottom: var(--tp-rule);
}

.tp-facts__row:nth-last-child(-n + 2) {
	border-bottom: 0;
}

.tp-facts dt {
	color: var(--tp-color-muted);
	font-size: var(--tp-text-xs);
	font-weight: var(--tp-weight-bold);
}

.tp-facts dd {
	margin: var(--tp-space-1) 0 0;
	color: var(--tp-color-ink);
	font-weight: var(--tp-weight-semibold);
}

.tp-contact {
	display: grid;
	gap: var(--tp-space-2-5);
	margin: 0;
	padding: 0;
	list-style: none;
}

.tp-contact li {
	display: grid;
	gap: var(--tp-space-hair);
}

.tp-contact span {
	color: var(--tp-color-muted);
	font-size: var(--tp-text-xs);
}

.tp-contact a {
	color: var(--tp-color-primary);
	font-weight: var(--tp-weight-bold);
}

.tp-contact a.tp-button--solid {
	justify-content: center;
	color: var(--tp-color-bg);
	text-align: center;
}

.tp-muted {
	margin: 0;
	color: var(--tp-color-muted);
	font-size: var(--tp-text-sm);
}

.tp-gallery {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(var(--tp-gallery-min), 1fr));
	gap: var(--tp-space-2-5);
}

.tp-gallery figure {
	margin: 0;
}

.tp-gallery img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: var(--tp-ratio-thumb);
	object-fit: cover;
	border-radius: var(--tp-radius);
}

/* ==========================================================================
   Static / legal pages: prose with a section index on long pages
   ========================================================================== */
.tp-static {
	padding-top: var(--tp-space-5);
}

.tp-static__head {
	margin-bottom: var(--tp-space-6);
	padding-bottom: var(--tp-space-4-5);
	border-bottom: var(--tp-rule);
}

.tp-static__title {
	margin: 0;
	color: var(--tp-color-primary);
	font-size: var(--tp-text-page);
	font-weight: var(--tp-weight-heavy);
	line-height: var(--tp-leading-tight);
	letter-spacing: var(--tp-tracking-tight);
}

.tp-static__layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	max-width: var(--tp-container-prose);
}

.tp-static--toc .tp-static__layout {
	grid-template-columns: var(--tp-toc-width) minmax(0, var(--tp-container-prose));
	gap: var(--tp-grid-gap-lg);
	max-width: none;
	align-items: start;
}

.tp-static__body > :first-child em:only-child {
	color: var(--tp-color-muted);
	font-size: var(--tp-text-sm);
}

.tp-static__body h2 {
	scroll-margin-top: var(--tp-space-5);
}

.tp-toc {
	position: sticky;
	top: var(--tp-space-5);
	padding: var(--tp-space-4) var(--tp-space-4-5);
	border-radius: var(--tp-radius-lg);
	background: var(--tp-color-surface);
}

.tp-toc__title {
	display: block;
	margin: 0 0 var(--tp-space-2);
	list-style: none;
	cursor: default;
	pointer-events: none;
	color: var(--tp-color-primary);
	font-size: var(--tp-text-xs);
	font-weight: var(--tp-weight-heavy);
	letter-spacing: var(--tp-tracking-label);
	text-transform: uppercase;
}

.tp-toc__title::-webkit-details-marker {
	display: none;
}

.tp-toc__count {
	color: var(--tp-color-muted);
	font-weight: var(--tp-weight-bold);
}

.tp-toc__list {
	display: grid;
	gap: var(--tp-space-1);
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: tp-toc;
}

.tp-toc__list a {
	display: block;
	padding-block: var(--tp-space-1);
	color: var(--tp-color-ink);
	font-size: var(--tp-text-sm);
	line-height: var(--tp-leading-snug);
	text-decoration: none;
}

.tp-toc__list a:hover {
	color: var(--tp-color-primary);
	text-decoration: underline;
	text-decoration-color: var(--tp-color-accent);
	text-decoration-thickness: var(--tp-space-hair);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
	.tp-archive__side--3 .tp-card--row {
		--tp-thumb-row: var(--tp-thumb-compact);
	}

	/* Narrow desktops: give the secondary column more room so side titles keep 2–3 lines. */
	.tp-archive__top {
		grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
	}

	.tp-article__layout,
	.tp-entity__layout {
		grid-template-columns: minmax(0, 1fr) var(--tp-aside-width-sm);
	}

	.tp-article__intro {
		max-width: calc(100% - var(--tp-aside-width-sm) - var(--tp-grid-gap-lg));
	}

	.tp-static--toc .tp-static__layout {
		grid-template-columns: minmax(0, 1fr);
		max-width: var(--tp-container-prose);
	}

	.tp-toc {
		position: static;
	}

	/* Below 1100px the contents list is a disclosure: «Περιεχόμενα (14) +». */
	.tp-toc__title {
		display: flex;
		align-items: center;
		justify-content: space-between;
		min-height: var(--tp-hit);
		margin: 0;
		cursor: pointer;
		pointer-events: auto;
	}

	.tp-toc__title::after {
		content: "+";
		color: var(--tp-color-primary);
		font-size: var(--tp-text-section);
		line-height: 1;
	}

	.tp-toc__box[open] .tp-toc__title {
		margin-bottom: var(--tp-space-2);
	}

	.tp-toc__box[open] .tp-toc__title::after {
		content: "−";
	}

	.tp-toc__count {
		margin-inline-end: auto;
		padding-inline-start: var(--tp-space-1);
	}

	.tp-toc__list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		column-gap: var(--tp-space-5);
	}

	.tp-related--more .tp-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 900px) {
	.tp-article__layout,
	.tp-entity__layout {
		grid-template-columns: minmax(0, 1fr);
	}

	.tp-article__intro {
		max-width: none;
	}

	.tp-article__aside,
	.tp-entity__aside {
		position: static;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		align-items: start;
	}

	.tp-inline-ad--sidebar {
		display: none;
	}

	.tp-archive__top {
		grid-template-columns: minmax(0, 1fr);
	}

	.tp-archive__lead .tp-card--hero .tp-card__media {
		min-height: 0;
		aspect-ratio: var(--tp-ratio-wide);
	}

	.tp-archive__side--2 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.tp-archive__side--3 {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: var(--tp-grid-gap);
	}

	.tp-archive__side--3 .tp-card--row {
		display: flex;
		flex-direction: column;
		gap: var(--tp-space-3);
		padding: 0;
		border: 0;
	}

	.tp-archive__side--3 .tp-card--row .tp-card__media {
		width: 100%;
	}

	.tp-search-layout .tp-article__aside {
		grid-template-columns: minmax(0, 1fr);
	}

	.tp-entity__cover img {
		aspect-ratio: var(--tp-ratio-wide);
	}
}

@media (max-width: 640px) {
	.tp-home,
	.tp-article__head,
	.tp-archive,
	.tp-entity,
	.tp-static {
		padding-top: var(--tp-space-4);
	}

	.tp-article__meta {
		margin-top: var(--tp-space-4);
	}

	.tp-article__hero {
		width: 100%;
	}

	.tp-article__hero-img {
		aspect-ratio: var(--tp-ratio-thumb);
		border-radius: 0;
	}

	.tp-article__credit {
		padding-inline: var(--tp-gutter);
	}

	.tp-article__aside,
	.tp-entity__aside {
		grid-template-columns: minmax(0, 1fr);
	}

	.tp-inline-ad--mobile {
		display: block;
	}

	.tp-inline-ad--after {
		display: none;
	}

	.tp-share__btn--copy .tp-share__copy-text {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0 0 0 0);
	}

	.tp-share__btn--copy {
		padding-inline: var(--tp-space-2-5);
	}

	.tp-share__btn--copy.is-copied .tp-share__copy-text {
		position: static;
		width: auto;
		height: auto;
		clip: auto;
	}

	.tp-related--more .tp-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	/* Archive lead on phones: photo edge to edge, title under it (no scrim over faces). */
	.tp-archive__lead .tp-card--hero {
		margin-inline: calc(-1 * var(--tp-gutter));
		background: none;
	}

	.tp-archive__lead .tp-card--hero .tp-card__media {
		position: relative;
		height: auto;
		aspect-ratio: var(--tp-ratio-photo);
		border-radius: 0;
	}

	.tp-archive__lead .tp-card--hero .tp-card__media::after {
		display: none;
	}

	.tp-archive__lead .tp-card--hero .tp-card__body {
		position: static;
		padding: var(--tp-space-3) var(--tp-gutter) 0;
		background: none;
		color: var(--tp-color-ink);
	}

	.tp-archive__lead .tp-card--hero .tp-card__body a,
	.tp-archive__lead .tp-card--hero .tp-card__title {
		color: var(--tp-color-ink);
		text-shadow: none;
	}

	.tp-archive__lead .tp-card--hero .tp-card__excerpt,
	.tp-archive__lead .tp-card--hero .tp-card__meta {
		color: var(--tp-color-muted);
	}

	.tp-archive__side--2,
	.tp-archive__side--3 {
		grid-template-columns: minmax(0, 1fr);
		gap: 0;
	}

	.tp-archive__side .tp-card--stack,
	.tp-archive__side--3 .tp-card--row {
		display: grid;
		grid-template-columns: var(--tp-thumb-compact) minmax(0, 1fr);
		gap: var(--tp-space-3);
		align-items: start;
		padding-block: var(--tp-space-4);
		border-bottom: var(--tp-rule);
	}

	.tp-archive__side .tp-card--stack .tp-card__media,
	.tp-archive__side--3 .tp-card--row .tp-card__media {
		aspect-ratio: var(--tp-ratio-thumb);
	}

	.tp-archive__side .tp-card--stack .tp-card__excerpt {
		display: none;
	}

	.tp-archive__side .tp-card__title,
	.tp-archive__side--2 .tp-card--stack .tp-card__title {
		font-size: var(--tp-text-md);
	}

	.tp-archive__top {
		gap: 0;
		margin-bottom: var(--tp-space-6);
	}

	/* Filters collapse behind a toggle on phones (opened by navigation.js unless a filter is active). */
	.tp-filter-wrap__toggle {
		display: flex;
		justify-content: space-between;
		align-items: center;
		min-height: var(--tp-hit-lg);
		padding: 0 var(--tp-space-4);
		color: var(--tp-color-primary);
		font-weight: var(--tp-weight-bold);
		cursor: pointer;
		list-style: none;
	}

	.tp-filter-wrap__toggle::-webkit-details-marker {
		display: none;
	}

	.tp-filter-wrap__toggle::after {
		content: "+";
		font-size: var(--tp-text-section);
		line-height: 1;
	}

	.tp-filter-wrap[open] .tp-filter-wrap__toggle::after {
		content: "–";
	}

	.tp-filter {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		padding: 0 var(--tp-space-4) var(--tp-space-4);
	}

	.tp-filter__actions {
		grid-column: 1 / -1;
	}

	.tp-event {
		grid-template-columns: var(--tp-space-8) minmax(0, 1fr);
		gap: var(--tp-space-3-5);
	}

	.tp-event__date {
		height: var(--tp-space-8);
	}

	.tp-event__day {
		font-size: var(--tp-text-card-lg);
	}

	.tp-event .tp-status {
		grid-column: 2;
		justify-self: start;
	}

	.tp-facts {
		grid-template-columns: minmax(0, 1fr);
	}

	.tp-facts__row:nth-last-child(2) {
		border-bottom: var(--tp-rule);
	}

	.tp-entity__cover {
		margin-inline: calc(-1 * var(--tp-gutter));
	}

	.tp-entity__cover img {
		aspect-ratio: var(--tp-ratio-photo);
		border-radius: 0;
	}

	.tp-entity__cover .tp-article__credit {
		padding-inline: var(--tp-gutter);
	}

	.tp-toc__list {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* ==========================================================================
   6. Ad placements (phase 13): one compact system for all 12 Advanced Ads placements.
   desktop-only = ≥901px, mobile-only = ≤900px (display:none → responsive units are not requested).
   ========================================================================== */
.tp-ad-slot--header-leaderboard {
	box-sizing: border-box;
	width: min(100% - 2 * var(--tp-gutter), 970px);
	margin: var(--tp-space-4) auto 0;
}

header.wp-block-template-part .tp-ad-slot--header-leaderboard {
	margin-bottom: 0;
}

.tp-ad-slot--header-leaderboard .tpc-ad-demo,
.tp-ad-slot--mobile-anchor-planned .tpc-ad-demo,
.tp-ad-slot--direct-sponsor-banner .tpc-ad-demo,
.tp-ad-slot--category-between-cards .tpc-ad-demo {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: var(--tp-space-hair) var(--tp-space-2-5);
	box-sizing: border-box;
	min-height: 50px;
	height: auto;
	padding: var(--tp-space-2) var(--tp-space-3);
	font-size: var(--tp-text-xs);
	line-height: 1.35;
}

/* Placement without a creative: visitors get no markup at all (TPC_Public::ad_placement_shortcode);
   administrators see this quiet 44px outline with the placement key only. */
.tp-ad-slot--empty {
	display: flex;
	justify-content: center;
	align-items: center;
	box-sizing: border-box;
	min-height: var(--tp-hit);
	border: 1px dashed var(--tp-color-border-strong);
	border-radius: var(--tp-radius);
	background: transparent;
}

.tp-ad-slot__key {
	color: var(--tp-color-muted);
	font-size: var(--tp-text-2xs);
	font-weight: var(--tp-weight-semibold);
	letter-spacing: var(--tp-tracking-label);
}

.tp-home-ad .tp-ad-slot--empty,
.tp-latest__ad .tp-ad-slot--empty {
	height: auto;
}

.tp-ad-slot--mobile-anchor-planned {
	box-sizing: border-box;
	width: min(100% - 2 * var(--tp-gutter), var(--tp-ad-banner-w));
	margin: 0 auto var(--tp-space-5);
}

.tp-ad-slot--mobile-anchor-planned .tpc-ad-demo > span,
.tp-ad-slot--category-between-cards .tpc-ad-demo > span {
	display: none;
}

.tp-archive__grid > .tp-inline-ad--grid {
	grid-column: 1 / -1;
	margin: 0;
}

.tp-inline-ad--after-grid,
.tp-inline-ad--sponsor {
	margin-top: var(--tp-space-6);
}

.tp-search-results > .tp-inline-ad--feed {
	margin: 18px 0;
}

.tp-home > .tp-home-ad.tp-ad-slot--home-sponsor .tp-ad-slot {
	max-width: 970px;
}

@media (min-width: 901px) {
	.tp-ad-wrap--mobile,
	.tp-ad-slot.tp-ad-slot--mobile-only {
		display: none !important;
	}
}

@media (max-width: 900px) {
	.tp-ad-wrap--desktop,
	.tp-ad-slot.tp-ad-slot--desktop-only {
		display: none !important;
	}

	.tp-inline-ad.tp-ad-wrap--mobile,
	.tp-ad-slot.tp-ad-slot--mobile-only {
		display: block;
	}
}


/* ---- Google AdSense units via Advanced Ads (t71u) ---- */
.tp-ad-slot ins.adsbygoogle {
	display: block;
	max-width: 100%;
}

.tp-inline-ad--listing-top {
	margin-block: 0 var(--tp-space-6);
}

.tp-inline-ad--entity {
	margin-block: var(--tp-space-6);
}

/* TENISTAS MULTIPLEX after the article shows on mobile too (the old demo slot was hidden there). */
.tp-inline-ad.tp-inline-ad--after,
.tp-ad-slot.tp-ad-slot--article-after-content {
	display: block;
}

.tp-ad-slot--before-footer {
	box-sizing: border-box;
	width: min(100% - 2 * var(--tp-gutter), var(--tp-container));
	margin: var(--tp-space-6) auto;
}

/* =====================================================================
   Club location — «Τοποθεσία & πρόσβαση» (accounts phase 1)
   ===================================================================== */
.tp-loc {
	margin-top: var(--tp-space-6);
	padding-top: var(--tp-space-3);
	border-top: var(--tp-rule-strong);
}

.tp-loc__grid {
	display: grid;
	gap: var(--tp-space-4) var(--tp-space-5);
}

.tp-loc__address {
	margin: 0 0 var(--tp-space-4);
	color: var(--tp-color-ink);
	font-style: normal;
	font-weight: var(--tp-weight-semibold);
	line-height: var(--tp-leading-normal);
}

.tp-loc__btns {
	display: flex;
	flex-wrap: wrap;
	gap: var(--tp-space-2);
	margin: 0;
}

.tp-loc__btns--sm {
	margin-top: var(--tp-space-3);
}

.tp-loc__btns .tp-loc__btn {
	justify-content: center;
}

.tp-loc__note {
	margin: var(--tp-space-3) 0 0;
	color: var(--tp-color-muted);
	font-size: var(--tp-text-xs);
	line-height: var(--tp-leading-normal);
}

.tp-loc__map {
	margin-bottom: 0;
}

.tp-loc__map .tp-map {
	height: var(--tp-map-h-sm);
}

.tp-map--link {
	cursor: pointer;
}

.tp-card__addr {
	display: flex;
	flex-wrap: wrap;
	gap: var(--tp-space-1) var(--tp-space-3);
	align-items: baseline;
}

.tp-card__maplink {
	color: var(--tp-color-primary);
	font-weight: var(--tp-weight-bold);
	text-decoration: underline;
	text-underline-offset: 2px;
}

@media (min-width: 900px) {
	.tp-loc__grid {
		grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
		align-items: start;
	}

	.tp-loc__btns {
		flex-direction: column;
		align-items: stretch;
	}
}

@media (max-width: 640px) {
	.tp-loc__btns .tp-loc__btn {
		flex: 1 1 100%;
	}
}

/* =====================================================================
   Accounts (phase 2): register / login / password reset / my account
   ===================================================================== */
.tp-header__search-row {
	display: flex;
	align-items: center;
	gap: var(--tp-space-3);
}

.tp-header__search-row .tp-search {
	flex: 1 1 auto;
	min-width: 0;
}

.tp-header__account {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	gap: var(--tp-space-2);
	min-height: 44px;
	padding: 0 var(--tp-space-4);
	border: var(--tp-rule);
	border-radius: var(--tp-radius-pill);
	color: var(--tp-color-primary);
	font-size: var(--tp-text-sm);
	font-weight: var(--tp-weight-bold);
	text-decoration: none;
	white-space: nowrap;
	transition: border-color var(--tp-duration-fast) ease, background-color var(--tp-duration-fast) ease;
}

.tp-header__account:hover,
.tp-header__account[aria-current="page"],
.tp-header__account.is-current {
	border-color: var(--tp-color-primary);
	background: var(--tp-color-surface);
}

.tp-header__account svg {
	fill: none;
	stroke: currentcolor;
	stroke-width: 1.8;
}

@media (max-width: 520px) {
	.tp-header__account {
		width: 44px;
		padding: 0;
		justify-content: center;
	}

	.tp-header__account-label {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0 0 0 0);
		white-space: nowrap;
	}
}

.tp-auth {
	padding-block: var(--tp-space-6) var(--tp-section-gap);
}

.tp-auth__head {
	max-width: 760px;
	margin-bottom: var(--tp-space-6);
}

.tp-auth__title {
	margin: 0;
	color: var(--tp-color-primary);
	font-size: var(--tp-text-page);
	font-weight: var(--tp-weight-heavy);
	line-height: var(--tp-leading-tight);
	letter-spacing: var(--tp-tracking-tight);
}

.tp-auth__lead {
	margin: var(--tp-space-3) 0 0;
	color: var(--tp-color-ink-soft);
	font-size: var(--tp-text-md);
	line-height: var(--tp-leading-normal);
}

.tp-auth__layout {
	display: grid;
	gap: var(--tp-grid-gap-lg);
}

.tp-auth--narrow .tp-auth__head,
.tp-auth--narrow .tp-auth__main {
	max-width: 480px;
}

.tp-auth__main {
	min-width: 0;
}

.tp-auth__card,
.tp-account__card {
	padding: var(--tp-space-5);
	border: var(--tp-rule);
	border-top: var(--tp-accent-bar) solid var(--tp-color-accent);
	border-radius: var(--tp-radius-lg);
	background: var(--tp-color-bg);
}

.tp-auth__card-title,
.tp-account__card-title {
	margin: 0 0 var(--tp-space-4);
	color: var(--tp-color-primary);
	font-size: var(--tp-text-card-lg);
	font-weight: var(--tp-weight-heavy);
	line-height: var(--tp-leading-snug);
}

.tp-checklist {
	display: grid;
	gap: var(--tp-space-3);
	margin: 0;
	padding: 0;
	list-style: none;
	color: var(--tp-color-ink);
	font-size: var(--tp-text-sm);
	line-height: var(--tp-leading-normal);
}

.tp-checklist li {
	display: grid;
	grid-template-columns: 24px minmax(0, 1fr);
	gap: var(--tp-space-3);
	align-items: start;
}

.tp-icon {
	fill: none;
	stroke: currentcolor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.tp-checklist .tp-icon {
	color: var(--tp-color-success);
}

/* Alerts */
.tp-alert {
	margin: 0 0 var(--tp-space-5);
	padding: var(--tp-space-3) var(--tp-space-4);
	border-left: 4px solid var(--tp-color-success);
	border-radius: var(--tp-radius);
	background: var(--tp-color-surface);
	color: var(--tp-color-ink);
	font-size: var(--tp-text-sm);
	font-weight: var(--tp-weight-semibold);
	line-height: var(--tp-leading-normal);
}

.tp-alert--error {
	border-left-color: var(--tp-color-danger);
	background: var(--tp-color-danger-soft);
	color: var(--tp-color-danger-ink);
}

.tp-alert:focus {
	outline: var(--tp-focus-outline);
	outline-offset: 2px;
}

/* Forms */
.tp-form {
	display: grid;
	gap: var(--tp-space-4);
	margin: 0;
}

.tp-form--inline {
	display: inline-block;
}

.tp-form__row {
	display: grid;
	gap: var(--tp-space-4);
}

.tp-form__field {
	display: grid;
	align-content: start;
	gap: var(--tp-space-1);
	min-width: 0;
}

.tp-form__label,
.tp-form__legend {
	color: var(--tp-color-ink);
	font-size: var(--tp-text-sm);
	font-weight: var(--tp-weight-bold);
}

.tp-form__legend {
	margin-bottom: var(--tp-space-2);
	padding: 0;
}

.tp-form__input {
	box-sizing: border-box;
	width: 100%;
	min-height: 48px;
	padding: 0 var(--tp-space-4);
	border: var(--tp-border-width) solid var(--tp-color-border-strong);
	border-radius: var(--tp-radius);
	background: var(--tp-color-bg);
	color: var(--tp-color-ink);
	font-size: var(--tp-text-md);
	transition: border-color var(--tp-duration-fast) ease;
}

.tp-form__input:hover {
	border-color: var(--tp-color-muted);
}

.tp-form__input:focus-visible {
	border-color: var(--tp-color-primary);
	outline: var(--tp-focus-outline);
	outline-offset: 1px;
	box-shadow: none;
}

.is-invalid > .tp-form__input,
.is-invalid .tp-form__pw .tp-form__input {
	border-color: var(--tp-color-danger);
}

.tp-form__help {
	margin: 0;
	color: var(--tp-color-muted);
	font-size: var(--tp-text-xs);
	line-height: var(--tp-leading-normal);
}

.tp-form__error {
	margin: 0;
	color: var(--tp-color-danger);
	font-size: var(--tp-text-xs);
	font-weight: var(--tp-weight-bold);
	line-height: var(--tp-leading-normal);
}

.tp-form__pw {
	position: relative;
}

.tp-form__pw .tp-form__input {
	padding-right: 108px;
}

.tp-form__pw-toggle {
	position: absolute;
	top: 50%;
	right: var(--tp-space-1);
	min-height: 40px;
	padding: 0 var(--tp-space-3);
	transform: translateY(-50%);
	border: 0;
	border-radius: var(--tp-radius);
	background: transparent;
	color: var(--tp-color-primary);
	cursor: pointer;
	font-size: var(--tp-text-xs);
	font-weight: var(--tp-weight-bold);
}

.tp-form__pw-toggle:hover {
	background: var(--tp-color-surface);
}

.tp-form__types {
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
}

.tp-typecards {
	display: grid;
	gap: var(--tp-space-3);
}

.tp-typecard {
	position: relative;
	display: block;
	cursor: pointer;
}

.tp-typecard input {
	position: absolute;
	top: var(--tp-space-4);
	right: var(--tp-space-4);
	width: 20px;
	height: 20px;
	margin: 0;
	accent-color: var(--tp-color-primary);
}

.tp-typecard__box {
	display: grid;
	grid-template-columns: 40px minmax(0, 1fr);
	gap: var(--tp-space-1) var(--tp-space-3);
	height: 100%;
	box-sizing: border-box;
	padding: var(--tp-space-4) var(--tp-space-7) var(--tp-space-4) var(--tp-space-4);
	border: 2px solid var(--tp-color-border);
	border-radius: var(--tp-radius-lg);
	background: var(--tp-color-bg);
	transition: border-color var(--tp-duration-fast) ease, background-color var(--tp-duration-fast) ease;
}

.tp-typecard__box .tp-icon {
	grid-row: span 2;
	width: 40px;
	height: 40px;
	padding: var(--tp-space-2);
	box-sizing: border-box;
	border-radius: var(--tp-radius-pill);
	background: var(--tp-color-surface);
	color: var(--tp-color-primary);
}

.tp-typecard__name {
	color: var(--tp-color-primary);
	font-size: var(--tp-text-md);
	font-weight: var(--tp-weight-heavy);
}

.tp-typecard__desc {
	color: var(--tp-color-muted);
	font-size: var(--tp-text-xs);
	line-height: var(--tp-leading-normal);
}

.tp-typecard:hover .tp-typecard__box {
	border-color: var(--tp-color-border-strong);
}

.tp-typecard input:checked + .tp-typecard__box {
	border-color: var(--tp-color-primary);
	background: var(--tp-color-surface);
}

.tp-typecard input:checked + .tp-typecard__box .tp-icon {
	background: var(--tp-color-accent);
	color: var(--tp-color-on-accent);
}

.tp-typecard input:focus-visible + .tp-typecard__box {
	outline: var(--tp-focus-outline);
	outline-offset: 2px;
}

.is-invalid .tp-typecard__box {
	border-color: var(--tp-color-danger);
}

.tp-form__check {
	grid-template-columns: 24px minmax(0, 1fr);
	gap: var(--tp-space-2) var(--tp-space-3);
	align-items: start;
	color: var(--tp-color-ink);
	font-size: var(--tp-text-sm);
	line-height: var(--tp-leading-normal);
}

.tp-form__check input {
	width: 20px;
	height: 20px;
	margin: 2px 0 0;
	accent-color: var(--tp-color-primary);
}

.tp-form__check .tp-form__error {
	grid-column: 2;
}

.tp-form__check a,
.tp-form__alt a,
.tp-form__inline a,
.tp-account__card p a {
	color: var(--tp-color-primary);
	font-weight: var(--tp-weight-bold);
}

.tp-form__inline {
	display: flex;
	flex-wrap: wrap;
	gap: var(--tp-space-2) var(--tp-space-4);
	align-items: center;
	justify-content: space-between;
	font-size: var(--tp-text-sm);
}

.tp-form__check-inline {
	display: inline-flex;
	gap: var(--tp-space-2);
	align-items: center;
	min-height: 32px;
}

.tp-form__check-inline input {
	width: 18px;
	height: 18px;
	margin: 0;
	accent-color: var(--tp-color-primary);
}

.tp-form__submit {
	width: 100%;
}

.tp-form__alt {
	margin: 0;
	color: var(--tp-color-ink-soft);
	font-size: var(--tp-text-sm);
	text-align: center;
}

.tp-hp {
	position: absolute;
	left: -10000px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.tp-button--danger {
	border-color: var(--tp-color-danger);
	color: var(--tp-color-danger);
}

.tp-button--danger:hover {
	background: var(--tp-color-danger-soft);
}

.tp-button:disabled {
	cursor: progress;
	opacity: .7;
}

/* My account */
.tp-account {
	display: grid;
	gap: var(--tp-space-5);
}

.tp-account__nav ul {
	display: flex;
	flex-wrap: wrap;
	gap: var(--tp-space-2);
	margin: 0;
	padding: 0;
	list-style: none;
}

.tp-account__nav a {
	display: inline-flex;
	align-items: center;
	min-height: 40px;
	padding: 0 var(--tp-space-4);
	border: var(--tp-rule);
	border-radius: var(--tp-radius-pill);
	color: var(--tp-color-primary);
	font-size: var(--tp-text-sm);
	font-weight: var(--tp-weight-bold);
	text-decoration: none;
}

.tp-account__nav a:hover {
	border-color: var(--tp-color-primary);
	background: var(--tp-color-surface);
}

.tp-account__nav .tp-account__logout {
	color: var(--tp-color-danger);
}

.tp-account__body {
	display: grid;
	gap: var(--tp-space-5);
	min-width: 0;
}

.tp-account__card {
	scroll-margin-top: var(--tp-space-6);
}

.tp-account__card > .tp-form,
.tp-account__card > p {
	max-width: 640px;
}

.tp-account__facts {
	display: grid;
	gap: var(--tp-space-3);
	margin: 0;
}

.tp-account__facts div {
	display: grid;
	gap: var(--tp-space-1);
}

.tp-account__facts dt {
	color: var(--tp-color-muted);
	font-size: var(--tp-text-xs);
	font-weight: var(--tp-weight-bold);
}

.tp-account__facts dd {
	margin: 0;
	color: var(--tp-color-ink);
	font-weight: var(--tp-weight-semibold);
	overflow-wrap: anywhere;
}

.tp-badge {
	display: inline-block;
	margin-left: var(--tp-space-1);
	padding: 2px var(--tp-space-2);
	border-radius: var(--tp-radius-sm);
	font-size: var(--tp-text-2xs);
	font-weight: var(--tp-weight-bold);
	letter-spacing: var(--tp-tracking-label);
	text-transform: uppercase;
	vertical-align: middle;
	white-space: nowrap;
}

.tp-badge--ok {
	background: var(--tp-color-accent);
	color: var(--tp-color-on-accent);
}

.tp-badge--warn {
	background: var(--tp-color-warning-soft);
	color: var(--tp-color-warning-ink);
	box-shadow: inset 0 0 0 1px var(--tp-color-warning-border);
}

.tp-account__verify {
	display: grid;
	gap: var(--tp-space-3);
	margin-top: var(--tp-space-5);
	padding: var(--tp-space-4);
	border: var(--tp-border-width) solid var(--tp-color-warning-border);
	border-radius: var(--tp-radius);
	background: var(--tp-color-warning-soft);
	color: var(--tp-color-warning-ink);
	font-size: var(--tp-text-sm);
}

.tp-account__verify p,
.tp-account__note {
	margin: 0;
}

.tp-account__note {
	margin-top: var(--tp-space-4);
	color: var(--tp-color-ink-soft);
	font-size: var(--tp-text-sm);
	line-height: var(--tp-leading-normal);
}

.tp-account__sub {
	margin: var(--tp-space-5) 0 var(--tp-space-3);
	color: var(--tp-color-ink);
	font-size: var(--tp-text-md);
	font-weight: var(--tp-weight-bold);
}

.tp-account__sub:first-of-type {
	margin-top: 0;
}

.tp-account__actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--tp-space-3);
	margin-top: var(--tp-space-4);
}

@media (min-width: 641px) {
	.tp-form__row {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.tp-typecards {
		grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	}

	.tp-typecard__box {
		grid-template-columns: minmax(0, 1fr);
		padding: var(--tp-space-5) var(--tp-space-4) var(--tp-space-4);
	}

	.tp-typecard__box .tp-icon {
		grid-row: auto;
		margin-bottom: var(--tp-space-2);
	}

	.tp-form__submit {
		width: auto;
		justify-self: start;
		min-width: 240px;
	}

	.tp-form--narrow .tp-form__submit {
		width: 100%;
	}

	.tp-form > .tp-button {
		justify-self: start;
		min-width: 220px;
	}
}

@media (min-width: 960px) {
	.tp-auth--register .tp-auth__layout {
		grid-template-columns: minmax(0, 1fr) var(--tp-aside-width);
		align-items: start;
	}

	.tp-auth--register .tp-auth__aside {
		position: sticky;
		top: var(--tp-space-6);
	}

	.tp-account {
		grid-template-columns: 220px minmax(0, 1fr);
		align-items: start;
	}

	.tp-account__nav {
		position: sticky;
		top: var(--tp-space-6);
	}

	.tp-account__nav ul {
		flex-direction: column;
	}

	.tp-account__nav a {
		width: 100%;
		box-sizing: border-box;
	}
}

/* ==========================================================================
   Club dashboard (Phase 3) — /club-dashboard/
   ========================================================================== */
.tp-auth--club .tp-auth__layout {
	align-items: start;
}

.tp-auth--club .tp-auth__main {
	display: grid;
	gap: var(--tp-space-5);
}

.tp-auth--club .tp-auth__main > .tp-alert {
	margin: 0;
}

.tp-club-nav ul {
	display: flex;
	flex-wrap: wrap;
	gap: var(--tp-space-2);
	margin: 0;
	padding: 0;
	list-style: none;
}

.tp-club-nav a {
	display: inline-flex;
	align-items: center;
	min-height: 40px;
	padding: 0 var(--tp-space-4);
	border: var(--tp-rule);
	border-radius: var(--tp-radius-pill);
	color: var(--tp-color-primary);
	font-size: var(--tp-text-sm);
	font-weight: var(--tp-weight-bold);
	text-decoration: none;
}

.tp-club-nav a:hover {
	border-color: var(--tp-color-primary);
	background: var(--tp-color-surface);
}

.tp-club-nav a[aria-current="page"] {
	border-color: var(--tp-color-primary);
	background: var(--tp-color-primary);
	color: var(--tp-color-on-dark);
}

/* Block-content link colour (theme.json, 0-1-1) must not override solid button links on account pages. */
.tp-auth a.tp-button--solid,
.tp-auth a.tp-button--solid:hover,
.tp-auth a.tp-button--solid:visited {
	color: var(--tp-color-bg);
}

.tp-button[hidden] {
	display: none;
}

.tp-club-gate {
	margin-top: 0;
}

/* Status chips (sentence case: easier to read than the uppercase badge) */
.tp-status {
	display: inline-flex;
	align-items: center;
	min-height: 24px;
	padding: 0 var(--tp-space-2-5);
	border-radius: var(--tp-radius-pill);
	background: var(--tp-color-surface);
	color: var(--tp-color-ink);
	font-size: var(--tp-text-xs);
	font-weight: var(--tp-weight-bold);
	line-height: 1.2;
	white-space: nowrap;
	box-shadow: inset 0 0 0 1px var(--tp-color-border);
}

.tp-status--ok {
	background: var(--tp-color-accent);
	color: var(--tp-color-on-accent);
	box-shadow: none;
}

.tp-status--info {
	background: var(--tp-color-surface);
	color: var(--tp-color-primary);
	box-shadow: inset 0 0 0 1px var(--tp-color-primary);
}

.tp-status--warn {
	background: var(--tp-color-warning-soft);
	color: var(--tp-color-warning-ink);
	box-shadow: inset 0 0 0 1px var(--tp-color-warning-border);
}

.tp-status--danger {
	background: var(--tp-color-danger-soft);
	color: var(--tp-color-danger-ink);
	box-shadow: inset 0 0 0 1px var(--tp-color-danger);
}

/* Approval steps */
.tp-steps {
	display: flex;
	flex-wrap: wrap;
	gap: var(--tp-space-1) var(--tp-space-4);
	margin: var(--tp-space-3) 0 0;
	padding: 0;
	list-style: none;
	color: var(--tp-color-muted);
	font-size: var(--tp-text-xs);
	font-weight: var(--tp-weight-semibold);
}

.tp-steps__item {
	display: inline-flex;
	gap: var(--tp-space-2);
	align-items: center;
}

.tp-steps__dot {
	width: 10px;
	height: 10px;
	border: 2px solid var(--tp-color-border-strong);
	border-radius: 50%;
	background: var(--tp-color-bg);
}

.tp-steps__item--done {
	color: var(--tp-color-ink-soft);
}

.tp-steps__item--done .tp-steps__dot {
	border-color: var(--tp-color-primary);
	background: var(--tp-color-primary);
}

.tp-steps__item--current {
	color: var(--tp-color-primary);
	font-weight: var(--tp-weight-heavy);
}

.tp-steps__item--current .tp-steps__dot {
	border-color: var(--tp-color-primary);
	background: var(--tp-color-accent);
}

/* Empty state */
.tp-club-start {
	display: grid;
	gap: var(--tp-space-3);
}

.tp-club-start__card {
	display: grid;
	grid-template-columns: 40px minmax(0, 1fr);
	gap: var(--tp-space-1) var(--tp-space-3);
	padding: var(--tp-space-4);
	border: 2px solid var(--tp-color-border);
	border-radius: var(--tp-radius-lg);
	color: var(--tp-color-ink);
	text-decoration: none;
	transition: border-color var(--tp-duration-fast) ease, background-color var(--tp-duration-fast) ease;
}

.tp-club-start__card:hover {
	border-color: var(--tp-color-primary);
	background: var(--tp-color-surface);
}

.tp-club-start__card:focus-visible {
	outline: var(--tp-focus-outline);
	outline-offset: 2px;
}

.tp-club-start__card .tp-icon {
	grid-row: span 2;
	width: 40px;
	height: 40px;
	padding: var(--tp-space-2);
	box-sizing: border-box;
	border-radius: var(--tp-radius-pill);
	background: var(--tp-color-accent);
	color: var(--tp-color-on-accent);
}

.tp-club-start__title {
	color: var(--tp-color-primary);
	font-size: var(--tp-text-md);
	font-weight: var(--tp-weight-heavy);
}

.tp-club-start__desc {
	color: var(--tp-color-muted);
	font-size: var(--tp-text-xs);
	line-height: var(--tp-leading-normal);
}

/* Managed clubs list */
.tp-club-list,
.tp-club-claims {
	display: grid;
	gap: var(--tp-space-3);
	margin: 0;
	padding: 0;
	list-style: none;
}

.tp-club-item {
	display: grid;
	grid-template-columns: 56px minmax(0, 1fr);
	gap: var(--tp-space-4);
	padding: var(--tp-space-4);
	border: var(--tp-rule);
	border-radius: var(--tp-radius-lg);
}

.tp-club-item__media {
	display: grid;
	place-items: center;
	width: 56px;
	height: 56px;
	overflow: hidden;
	border-radius: var(--tp-radius);
	background: var(--tp-color-surface);
	color: var(--tp-color-primary);
}

.tp-club-item__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.tp-club-item__media .tp-icon {
	width: 28px;
	height: 28px;
}

.tp-club-item__body {
	min-width: 0;
}

.tp-club-item__name {
	margin: 0;
	color: var(--tp-color-primary);
	font-size: var(--tp-text-card);
	font-weight: var(--tp-weight-heavy);
	line-height: var(--tp-leading-snug);
	overflow-wrap: anywhere;
}

.tp-club-item__meta {
	display: flex;
	flex-wrap: wrap;
	gap: var(--tp-space-2);
	align-items: center;
	margin: var(--tp-space-2) 0 0;
	color: var(--tp-color-muted);
	font-size: var(--tp-text-xs);
}

.tp-club-item__city {
	display: inline-flex;
	gap: var(--tp-space-1);
	align-items: center;
	color: var(--tp-color-ink-soft);
	font-weight: var(--tp-weight-semibold);
}

.tp-club-item__city .tp-icon {
	width: 16px;
	height: 16px;
}

.tp-club-item__date {
	color: var(--tp-color-muted);
	font-size: var(--tp-text-xs);
}

.tp-club-item__actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--tp-space-2);
	margin: var(--tp-space-4) 0 0;
}

.tp-club-note {
	margin: var(--tp-space-3) 0 0;
	padding: var(--tp-space-3);
	border-left: 4px solid var(--tp-color-warning-border);
	border-radius: var(--tp-radius);
	background: var(--tp-color-warning-soft);
	color: var(--tp-color-warning-ink);
	font-size: var(--tp-text-sm);
	line-height: var(--tp-leading-normal);
	overflow-wrap: anywhere;
}

.tp-club-claims li {
	padding: var(--tp-space-3) 0;
	border-bottom: var(--tp-rule);
	line-height: 2;
}

.tp-club-claims li:last-child {
	border-bottom: 0;
}

.tp-howto {
	display: grid;
	gap: var(--tp-space-3);
	margin: 0;
	padding-left: var(--tp-space-5);
	color: var(--tp-color-ink);
	font-size: var(--tp-text-sm);
	line-height: var(--tp-leading-normal);
}

.tp-howto strong {
	color: var(--tp-color-primary);
}

/* Edit form */
.tp-club-fieldset {
	display: grid;
	gap: var(--tp-space-5);
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
}

.tp-club-fieldset:disabled {
	opacity: .72;
}

.tp-club-status p {
	margin: var(--tp-space-3) 0 0;
	max-width: 70ch;
	color: var(--tp-color-ink-soft);
	font-size: var(--tp-text-sm);
	line-height: var(--tp-leading-normal);
}

.tp-club-status .tp-club-item__meta {
	margin-top: 0;
}

.tp-club-hint {
	max-width: 70ch;
}

.tp-form__textarea {
	min-height: 96px;
	padding: var(--tp-space-3) var(--tp-space-4);
	font-family: inherit;
	line-height: var(--tp-leading-normal);
	resize: vertical;
}

.tp-form__select {
	padding-right: var(--tp-space-7);
	appearance: none;
	background-image: linear-gradient(45deg, transparent 50%, var(--tp-color-primary) 50%), linear-gradient(135deg, var(--tp-color-primary) 50%, transparent 50%);
	background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%;
	background-repeat: no-repeat;
	background-size: 6px 6px;
}

.is-invalid > .tp-form__textarea,
.is-invalid > .tp-form__select {
	border-color: var(--tp-color-danger);
}

.tp-form__input:disabled {
	background-color: var(--tp-color-surface);
	cursor: not-allowed;
}

.tp-media-slot,
.tp-club-form .tp-form__field {
	min-width: 0;
}

.tp-form__file {
	display: block;
	min-width: 0;
	max-width: 100%;
}

.tp-form__file input[type="file"] {
	box-sizing: border-box;
	width: 100%;
	min-width: 0;
	max-width: 100%;
	color: var(--tp-color-ink-soft);
	font-size: var(--tp-text-sm);
}

.tp-form__file input[type="file"]::file-selector-button {
	min-height: 40px;
	margin-right: var(--tp-space-3);
	padding: 0 var(--tp-space-4);
	border: var(--tp-border-width) solid var(--tp-color-primary);
	border-radius: var(--tp-radius-pill);
	background: var(--tp-color-bg);
	color: var(--tp-color-primary);
	cursor: pointer;
	font-weight: var(--tp-weight-bold);
}

.tp-club-map-wrap {
	display: grid;
	gap: var(--tp-space-2);
}

.tp-club-map {
	height: 260px;
	border: var(--tp-rule);
	border-radius: var(--tp-radius-lg);
	overflow: hidden;
	background: var(--tp-color-surface);
}

.tp-club-map[hidden] {
	display: none;
}

.tp-club-map-empty {
	display: flex;
	gap: var(--tp-space-3);
	align-items: flex-start;
	margin: 0;
	padding: var(--tp-space-4);
	border: var(--tp-border-width) dashed var(--tp-color-border-strong);
	border-radius: var(--tp-radius-lg);
	background: var(--tp-color-surface);
	color: var(--tp-color-ink-soft);
	font-size: var(--tp-text-sm);
	line-height: var(--tp-leading-normal);
}

.tp-club-map-empty[hidden] {
	display: none;
}

.tp-club-map-empty .tp-icon {
	flex: 0 0 24px;
	color: var(--tp-color-primary);
}

.tp-media-slot__row {
	display: flex;
	gap: var(--tp-space-3);
	align-items: center;
}

.tp-media-slot__preview {
	display: grid;
	flex: 0 0 72px;
	place-items: center;
	width: 72px;
	height: 72px;
	overflow: hidden;
	border: var(--tp-rule);
	border-radius: var(--tp-radius);
	background: var(--tp-color-surface);
	color: var(--tp-color-muted);
}

.tp-media-slot__preview img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.tp-media-slot__controls {
	display: grid;
	flex: 1 1 auto;
	gap: var(--tp-space-2);
	min-width: 0;
}

.tp-gallery-edit {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
	gap: var(--tp-space-3);
	margin: 0 0 var(--tp-space-2);
	padding: 0;
	list-style: none;
}

.tp-gallery-edit li {
	display: grid;
	gap: var(--tp-space-1);
	font-size: var(--tp-text-xs);
}

.tp-gallery-edit img {
	width: 100%;
	height: auto;
	aspect-ratio: 1;
	border-radius: var(--tp-radius);
	object-fit: cover;
}

.tp-club-submitbar {
	display: grid;
	gap: var(--tp-space-3);
	padding: var(--tp-space-4) var(--tp-space-5);
	border: var(--tp-rule);
	border-radius: var(--tp-radius-lg);
	background: var(--tp-color-surface);
}

.tp-club-submitbar .tp-form__help {
	max-width: 70ch;
	color: var(--tp-color-ink-soft);
	font-size: var(--tp-text-sm);
}

.tp-club-submitbar .tp-account__actions {
	margin-top: 0;
}

.tp-history {
	display: grid;
	gap: var(--tp-space-3);
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: var(--tp-text-sm);
	line-height: var(--tp-leading-normal);
}

.tp-history li {
	padding-left: var(--tp-space-3);
	border-left: 3px solid var(--tp-color-border);
}

.tp-history time {
	color: var(--tp-color-muted);
	font-variant-numeric: tabular-nums;
}

.tp-history__note {
	color: var(--tp-color-ink-soft);
}

.tp-club-claim-form,
.tp-club-claim-form .tp-club-fieldset {
	max-width: 640px;
}

@media (max-width: 480px) {
	.tp-club-submitbar .tp-account__actions .tp-button,
	.tp-club-item__actions .tp-button {
		flex: 1 1 100%;
		justify-content: center;
	}
}

@media (min-width: 641px) {
	.tp-club-start {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.tp-club-map {
		height: 320px;
	}
}

@media (min-width: 960px) {
	.tp-auth--club .tp-auth__layout:has(> .tp-auth__aside) {
		grid-template-columns: minmax(0, 1fr) var(--tp-aside-width);
	}

	.tp-auth--club .tp-auth__aside {
		position: sticky;
		top: var(--tp-space-6);
	}
}

/* ==========================================================================
   Phase 4 — Coaches: directory, profile v2, coach dashboard (v1.8.0)
   Public views only render while the Coaches module is enabled.
   ========================================================================== */

/* Solid/accent anchors keep their ink against theme.json link colour (0-1-1). */
.tp-coach-directory a.tp-button--solid,
.tp-coach-profile a.tp-button--solid,
.tp-coach-preview a.tp-button--solid,
.tp-coach-directory a.tp-button--solid:visited,
.tp-coach-profile a.tp-button--solid:visited,
.tp-coach-profile a.tp-button--solid:hover {
	color: var(--tp-color-bg);
}

.tp-button--accent,
a.tp-button--accent,
a.tp-button--accent:visited {
	border-color: var(--tp-color-accent);
	background: var(--tp-color-accent);
	color: var(--tp-color-on-accent);
}

a.tp-button--accent:hover {
	filter: brightness(0.95);
	color: var(--tp-color-on-accent);
}

.tp-button--ghost,
a.tp-button--ghost,
a.tp-button--ghost:visited {
	border-color: var(--tp-color-on-dark-border);
	background: transparent;
	color: var(--tp-color-on-dark);
}

a.tp-button--ghost:hover {
	border-color: var(--tp-color-on-dark);
	color: var(--tp-color-on-dark);
}

.tp-filter__field--wide {
	grid-column: 1 / -1;
}

/* ---------- Chips ---------- */
.tp-coach-chips {
	display: flex;
	flex-wrap: wrap;
	gap: var(--tp-space-1-5);
	margin: 0;
	padding: 0;
	list-style: none;
}

.tp-coach-chips li {
	padding: var(--tp-chip-pad-y) var(--tp-space-2-5);
	border: var(--tp-rule);
	border-radius: var(--tp-radius-pill);
	background: var(--tp-color-surface);
	color: var(--tp-color-ink-soft);
	font-size: var(--tp-text-xs);
	font-weight: var(--tp-weight-semibold);
	line-height: var(--tp-leading-snug);
	overflow-wrap: anywhere;
}

.tp-coach-chips--accent li {
	border-color: transparent;
	background: var(--tp-color-primary);
	color: var(--tp-color-bg);
}

.tp-coach-chips li.tp-coach-chips__more {
	background: transparent;
	color: var(--tp-color-muted);
}

/* ---------- Directory cards ---------- */
.tp-coach-grid {
	align-items: stretch;
}

.tp-coach-card {
	padding: var(--tp-space-3);
	border: var(--tp-rule);
	border-radius: var(--tp-radius-lg);
	background: var(--tp-color-bg);
}

.tp-coach-card .tp-card__media,
.tp-coach-card__media {
	aspect-ratio: var(--tp-ratio-portrait);
	max-height: 340px;
}

.tp-coach-card .tp-card__media img {
	object-position: center 25%;
}

.tp-coach-card .tp-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: var(--tp-space-2);
	padding-top: var(--tp-space-3);
}

.tp-coach-card__exp {
	margin: 0;
	color: var(--tp-color-ink-soft);
	font-size: var(--tp-text-sm);
	font-weight: var(--tp-weight-semibold);
}

.tp-coach-card__facts {
	display: grid;
	gap: var(--tp-space-1);
	margin: 0;
	font-size: var(--tp-text-sm);
}

.tp-coach-card__facts div {
	display: flex;
	flex-wrap: wrap;
	gap: 0 var(--tp-space-1-5);
}

.tp-coach-card__facts dt {
	color: var(--tp-color-muted);
}

.tp-coach-card__facts dd {
	margin: 0;
	color: var(--tp-color-ink);
	overflow-wrap: anywhere;
}

.tp-coach-card__link {
	margin-top: auto;
	padding-top: var(--tp-space-2);
	color: var(--tp-color-primary);
	font-size: var(--tp-text-sm);
	font-weight: var(--tp-weight-bold);
	text-decoration: none;
}

.tp-coach-card__link:hover {
	text-decoration: underline;
}

/* ---------- Join box ---------- */
.tp-coach-join {
	display: grid;
	gap: var(--tp-space-4);
	align-items: center;
	margin-top: var(--tp-section-gap);
	padding: var(--tp-space-6);
	border-radius: var(--tp-radius-lg);
	background: var(--tp-color-primary-deep);
	color: var(--tp-color-on-dark);
}

.tp-coach-join__title {
	margin: 0 0 var(--tp-space-2);
	color: var(--tp-color-on-dark);
	font-size: var(--tp-text-section);
	line-height: var(--tp-leading-tight);
}

.tp-coach-join p {
	margin: 0;
}

.tp-coach-join__more {
	margin-top: var(--tp-space-2) !important;
	color: var(--tp-color-on-dark-muted);
	font-size: var(--tp-text-sm);
}

.tp-coach-join__actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--tp-space-2);
}

@media (min-width: 900px) {
	.tp-coach-join {
		grid-template-columns: minmax(0, 1fr) auto;
	}
}

/* ---------- Profile hero ---------- */
.tp-coach-hero {
	display: grid;
	gap: var(--tp-space-5);
	margin-bottom: var(--tp-space-6);
	padding-bottom: var(--tp-space-6);
	border-bottom: var(--tp-rule);
}

.tp-coach-hero__photo {
	overflow: hidden;
	width: 100%;
	max-width: 320px;
	aspect-ratio: var(--tp-ratio-portrait);
	border-radius: var(--tp-radius-lg);
	background: var(--tp-color-surface);
}

.tp-coach-hero__photo img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 25%;
}

.tp-coach-hero__placeholder {
	display: grid;
	place-items: center;
	height: 100%;
	color: var(--tp-color-muted);
}

.tp-coach-hero__placeholder .tp-icon {
	width: 56px;
	height: 56px;
}

.tp-coach-hero__info {
	display: flex;
	flex-direction: column;
	gap: var(--tp-space-3);
	min-width: 0;
}

.tp-coach-hero__info .tp-breadcrumbs,
.tp-coach-hero__info .tp-archive__eyebrow {
	margin: 0;
}

.tp-coach-hero__name {
	margin: 0;
	overflow-wrap: anywhere;
}

.tp-coach-hero__lead {
	max-width: var(--tp-measure);
	margin: 0;
	color: var(--tp-color-ink-soft);
	font-size: var(--tp-text-md);
	line-height: var(--tp-leading-normal);
}

.tp-coach-hero__facts {
	display: flex;
	flex-wrap: wrap;
	gap: var(--tp-space-2) var(--tp-space-4);
	margin: 0;
	padding: 0;
	list-style: none;
	color: var(--tp-color-ink);
	font-size: var(--tp-text-sm);
	font-weight: var(--tp-weight-semibold);
}

.tp-coach-hero__facts li {
	display: inline-flex;
	gap: var(--tp-space-1-5);
	align-items: center;
}

.tp-coach-hero__facts .tp-icon {
	width: 18px;
	height: 18px;
	color: var(--tp-color-primary);
}

.tp-coach-hero__label {
	display: block;
	margin-bottom: var(--tp-space-1-5);
	color: var(--tp-color-muted);
	font-size: var(--tp-text-xs);
	font-weight: var(--tp-weight-bold);
	letter-spacing: var(--tp-tracking-label);
	text-transform: uppercase;
}

.tp-coach-hero__cta {
	margin: var(--tp-space-1) 0 0;
}

.tp-coach-profile .tp-entity__demo {
	margin: 0;
}

@media (min-width: 720px) {
	.tp-coach-hero {
		grid-template-columns: minmax(200px, 300px) minmax(0, 1fr);
		align-items: start;
	}
}

@media (max-width: 719px) {
	.tp-coach-hero__photo {
		max-width: 220px;
	}

	.tp-coach-hero__cta .tp-button {
		box-sizing: border-box;
		width: 100%;
		justify-content: center;
	}
}

/* ---------- Profile sections ---------- */
.tp-coach-section,
.tp-coach-lesson {
	margin-bottom: var(--tp-space-6);
}

.tp-coach-section__title {
	margin: 0 0 var(--tp-space-3);
	font-size: var(--tp-text-subhead);
	line-height: var(--tp-leading-tight);
}

.tp-coach-quals {
	display: grid;
	gap: var(--tp-space-4);
}

@media (min-width: 720px) {
	.tp-coach-quals {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.tp-coach-quals__sub {
	margin: 0 0 var(--tp-space-2);
	color: var(--tp-color-muted);
	font-size: var(--tp-text-sm);
	font-weight: var(--tp-weight-bold);
}

.tp-coach-list {
	display: grid;
	gap: var(--tp-space-1-5);
	margin: 0;
	padding-left: var(--tp-space-4);
	overflow-wrap: anywhere;
}

.tp-coach-verify {
	display: flex;
	gap: var(--tp-space-2);
	align-items: flex-start;
	margin: var(--tp-space-3) 0 0;
	padding: var(--tp-space-2-5) var(--tp-space-3);
	border-radius: var(--tp-radius);
	background: var(--tp-color-surface);
	color: var(--tp-color-ink-soft);
	font-size: var(--tp-text-sm);
}

.tp-coach-verify .tp-icon {
	flex: 0 0 18px;
	width: 18px;
	height: 18px;
	margin-top: 2px;
}

.tp-coach-verify--ok {
	color: var(--tp-color-success);
}

.tp-coach-clubs {
	display: grid;
	gap: var(--tp-space-2);
	margin: 0 0 var(--tp-space-2);
	padding: 0;
	list-style: none;
}

@media (min-width: 720px) {
	.tp-coach-clubs {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.tp-coach-clubs__item {
	display: flex;
	gap: var(--tp-space-3);
	align-items: center;
	min-height: var(--tp-hit-lg);
	padding: var(--tp-space-2-5);
	border: var(--tp-rule);
	border-radius: var(--tp-radius);
	color: var(--tp-color-ink);
	text-decoration: none;
}

a.tp-coach-clubs__item:hover {
	border-color: var(--tp-color-primary);
}

.tp-coach-clubs__logo {
	display: grid;
	flex: 0 0 48px;
	place-items: center;
	width: 48px;
	height: 48px;
	overflow: hidden;
	border-radius: var(--tp-radius-sm);
	background: var(--tp-color-surface);
	color: var(--tp-color-muted);
}

.tp-coach-clubs__logo--round {
	border-radius: 50%;
}

.tp-coach-clubs__logo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.tp-coach-clubs__text {
	display: flex;
	flex-direction: column;
	min-width: 0;
	font-size: var(--tp-text-sm);
	overflow-wrap: anywhere;
}

.tp-coach-clubs__text span {
	color: var(--tp-color-muted);
}

.tp-coach-lesson {
	padding: var(--tp-space-5);
	border: var(--tp-border-width) dashed var(--tp-color-border-strong);
	border-radius: var(--tp-radius-lg);
	background: var(--tp-color-surface);
	scroll-margin-top: var(--tp-space-6);
}

.tp-coach-lesson:focus {
	outline: none;
}

.tp-coach-lesson p {
	margin: 0 0 var(--tp-space-2);
}

.tp-coach-aside-cta {
	box-sizing: border-box;
	width: 100%;
	justify-content: center;
}

.tp-coach-facts .tp-facts dd {
	overflow-wrap: anywhere;
}

/* ---------- Coach dashboard ---------- */
.tp-coach-summary .tp-club-item__media img {
	object-position: center 25%;
}

.tp-coach-progress {
	display: grid;
	gap: var(--tp-space-1);
	margin-top: var(--tp-space-2);
	max-width: 360px;
}

.tp-coach-progress__label {
	color: var(--tp-color-ink-soft);
	font-size: var(--tp-text-sm);
	font-weight: var(--tp-weight-semibold);
}

.tp-coach-progress__bar {
	display: block;
	height: 8px;
	overflow: hidden;
	border-radius: var(--tp-radius-pill);
	background: var(--tp-color-surface);
	box-shadow: inset 0 0 0 1px var(--tp-color-border);
}

.tp-coach-progress__bar span {
	display: block;
	height: 100%;
	background: var(--tp-color-primary);
}

.tp-coach-missing {
	margin: var(--tp-space-2) 0 0;
	padding-left: var(--tp-space-4);
	color: var(--tp-color-ink-soft);
	font-size: var(--tp-text-sm);
}

.tp-coach-checks {
	margin: 0;
	padding: 0;
	border: 0;
	min-width: 0;
}

.tp-coach-checks__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 180px), 1fr));
	gap: var(--tp-space-1-5);
}

.tp-coach-check {
	display: flex;
	gap: var(--tp-space-2);
	align-items: center;
	min-height: var(--tp-hit);
	padding: var(--tp-space-1-5) var(--tp-space-2-5);
	border: var(--tp-rule);
	border-radius: var(--tp-radius);
	background: var(--tp-color-bg);
	font-size: var(--tp-text-sm);
	cursor: pointer;
}

.tp-coach-check:has(input:checked) {
	border-color: var(--tp-color-primary);
	background: var(--tp-color-surface);
}

.tp-coach-check input {
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	margin: 0;
	accent-color: var(--tp-color-primary);
}

.tp-coach-check span {
	min-width: 0;
	overflow-wrap: anywhere;
}

.tp-coach-checks.is-invalid .tp-coach-checks__grid {
	outline: 2px solid var(--tp-color-danger);
	outline-offset: 4px;
	border-radius: var(--tp-radius);
}

.tp-media-slot__preview--portrait {
	flex-basis: 96px;
	width: 96px;
	height: 120px;
}

.tp-coach-preview-bar {
	display: flex;
	flex-wrap: wrap;
	gap: var(--tp-space-2) var(--tp-space-4);
	align-items: center;
	justify-content: space-between;
	margin-top: var(--tp-space-4);
	margin-bottom: var(--tp-space-4);
	padding: var(--tp-space-3) var(--tp-space-4);
	border: var(--tp-border-width) solid var(--tp-color-warning-border);
	border-radius: var(--tp-radius);
	background: var(--tp-color-warning-soft);
	color: var(--tp-color-warning-ink);
}

.tp-coach-preview-bar p {
	margin: 0;
}

.tp-coach-preview-bar a.tp-button--solid,
.tp-coach-preview-bar a.tp-button--solid:visited {
	color: var(--tp-color-bg);
}

@media (max-width: 480px) {
	.tp-coach-join {
		padding: var(--tp-space-4);
	}

	.tp-coach-join__actions .tp-button,
	.tp-coach-preview-bar .tp-button {
		flex: 1 1 100%;
		justify-content: center;
	}
}

.tp-filter input[type="search"] {
	box-sizing: border-box;
	width: 100%;
	height: var(--tp-hit);
	padding: 0 var(--tp-space-3);
	border: var(--tp-rule);
	border-radius: var(--tp-radius);
	background: var(--tp-color-bg);
	color: var(--tp-color-ink);
	font-family: inherit;
	font-size: var(--tp-text-md);
}

.tp-filter input[type="search"]::placeholder {
	color: var(--tp-color-placeholder);
}

.tp-coach-facts .tp-facts {
	grid-template-columns: minmax(0, 1fr);
}

.tp-auth__card .tp-howto + .tp-muted {
	margin-top: var(--tp-space-3);
}

/* ==========================================================================
   Phase 5 — lesson requests (form, inbox, «Τα αιτήματά μου») + coach–club relations
   ========================================================================== */
.tp-coach-lesson:has(.tp-lesson-form, .tp-coach-lesson__gate, .tp-alert) {
	border-style: solid;
	border-color: var(--tp-color-border);
	background: var(--tp-color-bg);
	box-shadow: var(--tp-shadow-hairline);
}

.tp-coach-lesson__lead {
	color: var(--tp-color-ink-soft);
}

.tp-coach-lesson__gate {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	gap: var(--tp-space-1) var(--tp-space-3);
	align-items: start;
	margin-top: var(--tp-space-3);
	padding: var(--tp-space-4);
	border-radius: var(--tp-radius);
	background: var(--tp-color-surface);
}

.tp-coach-lesson__gate .tp-icon {
	width: 22px;
	height: 22px;
	color: var(--tp-color-primary);
}

.tp-coach-lesson__gate > :not(.tp-icon) {
	grid-column: 2;
	margin: 0;
}

.tp-coach-lesson__gate .tp-account__actions {
	margin-top: var(--tp-space-2);
}

.tp-lesson-form {
	margin-top: var(--tp-space-4);
}

.tp-lesson-form__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0 var(--tp-space-4);
}

.tp-lesson-form .tp-form__input,
.tp-lesson-form .tp-form__select,
.tp-lesson-form .tp-form__textarea {
	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
}

.tp-lesson-form .tp-form__submit {
	margin-top: var(--tp-space-2);
}

@media (max-width: 640px) {
	.tp-lesson-form__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.tp-coach-lesson {
		padding: var(--tp-space-4);
	}

	.tp-lesson-form .tp-form__submit {
		box-sizing: border-box;
		width: 100%;
		justify-content: center;
	}
}

/* Inbox + my requests */
.tp-lesson-stats {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: var(--tp-space-2);
	margin: 0 0 var(--tp-space-4);
	padding: 0;
	list-style: none;
}

.tp-lesson-stats__item {
	display: flex;
	flex-direction: column;
	gap: var(--tp-space-1);
	padding: var(--tp-space-3);
	border: var(--tp-rule);
	border-radius: var(--tp-radius);
	color: var(--tp-color-ink);
	text-decoration: none;
}

.tp-lesson-stats__item:hover {
	border-color: var(--tp-color-primary);
}

.tp-lesson-stats__num {
	color: var(--tp-color-primary);
	font-size: var(--tp-text-section);
	font-weight: var(--tp-weight-heavy);
	line-height: 1;
}

.tp-lesson-stats__item--new .tp-lesson-stats__num {
	color: var(--tp-color-warning-ink);
}

.tp-lesson-stats__label {
	color: var(--tp-color-muted);
	font-size: var(--tp-text-xs);
	font-weight: var(--tp-weight-bold);
}

@media (max-width: 480px) {
	.tp-lesson-stats {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.tp-lesson-tabs {
	margin-bottom: var(--tp-space-4);
}

.tp-lesson-tabs ul {
	display: flex;
	flex-wrap: wrap;
	gap: var(--tp-space-1-5);
	margin: 0;
	padding: 0;
	list-style: none;
}

.tp-lesson-tabs a {
	display: inline-flex;
	align-items: center;
	gap: var(--tp-space-1-5);
	min-height: 36px;
	padding: 0 var(--tp-space-3);
	border-radius: var(--tp-radius-pill);
	background: var(--tp-color-surface);
	color: var(--tp-color-ink);
	font-size: var(--tp-text-sm);
	font-weight: var(--tp-weight-semibold);
	text-decoration: none;
}

.tp-lesson-tabs a span {
	color: var(--tp-color-muted);
	font-size: var(--tp-text-xs);
}

.tp-lesson-tabs a[aria-current="true"] {
	background: var(--tp-color-primary);
	color: var(--tp-color-on-dark);
}

.tp-lesson-tabs a[aria-current="true"] span {
	color: var(--tp-color-on-dark-muted);
}

.tp-lesson-list {
	display: grid;
	gap: var(--tp-space-3);
	margin: 0;
	padding: 0;
	list-style: none;
}

.tp-lesson-item {
	position: relative;
	padding: var(--tp-space-4);
	border: var(--tp-rule);
	border-radius: var(--tp-radius);
	background: var(--tp-color-bg);
}

.tp-lesson-item--new {
	border-left: 4px solid var(--tp-color-warning);
}

.tp-lesson-item__head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--tp-space-2);
}

.tp-lesson-item__title {
	min-width: 0;
	color: var(--tp-color-ink);
	font-size: var(--tp-text-md);
	font-weight: var(--tp-weight-bold);
	text-decoration: none;
	overflow-wrap: anywhere;
}

.tp-lesson-item__title:hover {
	color: var(--tp-color-primary);
	text-decoration: underline;
}

.tp-lesson-item__meta {
	display: flex;
	flex-wrap: wrap;
	gap: var(--tp-space-1) var(--tp-space-3);
	margin: var(--tp-space-2) 0 0;
	color: var(--tp-color-muted);
	font-size: var(--tp-text-sm);
}

.tp-lesson-item__meta span {
	display: inline-flex;
	align-items: center;
	gap: var(--tp-space-1);
	min-width: 0;
	overflow-wrap: anywhere;
}

.tp-lesson-item__meta .tp-icon {
	width: 16px;
	height: 16px;
	flex: none;
}

.tp-lesson-item__excerpt {
	margin: var(--tp-space-2) 0 0;
	color: var(--tp-color-ink-soft);
	font-size: var(--tp-text-sm);
	overflow-wrap: anywhere;
}

.tp-lesson-item__link {
	display: inline-block;
	margin-top: var(--tp-space-2);
	color: var(--tp-color-primary);
	font-size: var(--tp-text-sm);
	font-weight: var(--tp-weight-bold);
}

.tp-back-link {
	color: var(--tp-color-primary);
	font-size: var(--tp-text-sm);
	font-weight: var(--tp-weight-bold);
	text-decoration: none;
}

.tp-back-link:hover {
	text-decoration: underline;
}

.tp-lesson-facts {
	margin-top: var(--tp-space-3);
}

.tp-lesson-facts dd {
	overflow-wrap: anywhere;
}

.tp-lesson-detail__sub {
	margin: var(--tp-space-5) 0 var(--tp-space-2);
	font-size: var(--tp-text-md);
}

.tp-lesson-detail__msg {
	padding: var(--tp-space-3) var(--tp-space-4);
	border-radius: var(--tp-radius);
	background: var(--tp-color-surface);
	overflow-wrap: anywhere;
}

.tp-lesson-detail__msg p {
	margin: 0 0 var(--tp-space-2);
}

.tp-lesson-detail__msg p:last-child {
	margin-bottom: 0;
}

.tp-lesson-detail__msg--reply {
	border-left: 3px solid var(--tp-color-accent);
}

.tp-lesson-history {
	margin: 0;
	padding: 0;
	list-style: none;
}

.tp-lesson-history li {
	padding: var(--tp-space-2) 0;
	border-bottom: var(--tp-rule);
	font-size: var(--tp-text-sm);
}

.tp-lesson-history li:last-child {
	border-bottom: 0;
}

.tp-lesson-history__when {
	color: var(--tp-color-muted);
}

.tp-lesson-history__note {
	margin: var(--tp-space-1) 0 0;
	color: var(--tp-color-ink-soft);
	overflow-wrap: anywhere;
}

@media (max-width: 480px) {
	.tp-lesson-facts {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* Relations (both dashboards) */
.tp-rel__sub {
	margin: var(--tp-space-4) 0 var(--tp-space-2);
	font-size: var(--tp-text-md);
}

.tp-rel__sub:first-of-type {
	margin-top: 0;
}

.tp-rel-list {
	display: grid;
	gap: var(--tp-space-2);
	margin: 0 0 var(--tp-space-3);
	padding: 0;
	list-style: none;
}

.tp-rel-item {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--tp-space-2) var(--tp-space-3);
	padding: var(--tp-space-3);
	border: var(--tp-rule);
	border-radius: var(--tp-radius);
}

.tp-rel-item__name {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--tp-space-1-5) var(--tp-space-2);
	min-width: 0;
	overflow-wrap: anywhere;
}

.tp-rel-item__name .tp-status {
	white-space: normal;
}

.tp-rel-item__actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--tp-space-2);
}

.tp-rel-item__actions form {
	margin: 0;
}

.tp-status--neutral {
	background: var(--tp-color-surface);
	color: var(--tp-color-muted);
}

.tp-auth--account .tp-auth__main > .tp-account__card + .tp-account__card {
	margin-top: var(--tp-space-5);
}

.tp-lesson-detail .tp-form__help {
	margin-top: var(--tp-space-2);
}

.tp-lesson-detail .tp-account__actions {
	margin-top: var(--tp-space-4);
}

#tpc-response {
	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
}

.tp-account__card .tp-rel__sub ~ form.tp-form:not(.tp-form--inline) {
	margin-top: var(--tp-space-4);
}

/* ---- Dynamic audit §22: very long Greek words/names in card titles never widen a card or the page ---- */
.tp-card__title,
.tp-card__title a,
.tp-card--poster .tp-card__title {
	overflow-wrap: anywhere;
}

/* Dashboard nav: logout link (coach/club dashboards, matches the account page). */
.tp-club-nav .tp-account__logout {
	color: var(--tp-color-danger);
}

/* ==========================================================================
   Tournament match search (plugin TPC_Matches): only the form is rendered;
   match cards are added after a search. White panel, dark green, lime accents.
   ========================================================================== */
.tp-matches {
	box-sizing: border-box;
	margin-block: var(--tp-space-6);
	padding: clamp(16px, 3vw, 28px);
	border: var(--tp-rule);
	border-radius: var(--tp-radius-lg);
	background: var(--tp-color-bg);
}

.tp-matches__title {
	margin-top: 0;
}

.tp-matches__lead {
	margin: 0 0 var(--tp-space-4);
	color: var(--tp-color-muted);
	font-size: var(--tp-text-sm);
	line-height: var(--tp-leading-normal);
}

.tp-matches__form {
	margin: 0;
}

.tp-matches__search {
	height: 54px;
	border-color: var(--tp-color-border-strong);
	background: var(--tp-color-bg);
}

.tp-matches__search .tp-search__button {
	flex-basis: 44px;
	width: 44px;
	height: 44px;
}

.tp-matches__input::-webkit-search-cancel-button {
	display: none;
	-webkit-appearance: none;
}

.tp-matches__clear {
	display: grid;
	flex: 0 0 36px;
	place-items: center;
	width: 36px;
	height: 36px;
	margin: 0 var(--tp-space-1) 0 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--tp-color-muted);
	line-height: 0;
	cursor: pointer;
}

.tp-matches__clear[hidden] {
	display: none;
}

.tp-matches__clear svg {
	fill: none;
	stroke: currentColor;
	stroke-width: 2.2;
	stroke-linecap: round;
}

.tp-matches__clear:hover {
	background: var(--tp-color-surface);
	color: var(--tp-color-primary);
}

.tp-matches__status {
	margin: var(--tp-space-3) 0 0;
	color: var(--tp-color-muted);
	font-size: var(--tp-text-sm);
	line-height: var(--tp-leading-normal);
}

.tp-matches.is-error .tp-matches__status {
	color: var(--tp-color-danger);
}

.tp-matches.is-loading .tp-matches__status::before {
	content: "";
	display: inline-block;
	width: 12px;
	height: 12px;
	margin-inline-end: 8px;
	border: 2px solid var(--tp-color-border-strong);
	border-top-color: var(--tp-color-primary);
	border-radius: 50%;
	vertical-align: -1px;
	animation: tp-matches-spin .8s linear infinite;
}

@keyframes tp-matches-spin {
	to { transform: rotate(360deg); }
}

.tp-matches__list {
	display: grid;
	gap: var(--tp-space-3);
	margin: var(--tp-space-4) 0 0;
	padding: 0;
	list-style: none;
}

.tp-matches__list[hidden] {
	display: none;
}

.tp-match {
	min-width: 0;
	margin: 0;
	padding: var(--tp-space-4);
	border: var(--tp-rule);
	border-left: 4px solid var(--tp-color-accent);
	border-radius: var(--tp-radius-lg);
	background: var(--tp-color-bg);
}

.tp-match__players {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
	gap: var(--tp-space-3);
	align-items: center;
}

.tp-match__player {
	min-width: 0;
	color: var(--tp-color-primary);
	font-size: var(--tp-text-card);
	font-weight: var(--tp-weight-bold);
	line-height: var(--tp-leading-snug);
	overflow-wrap: anywhere;
	hyphens: auto;
}

.tp-match__player:last-child {
	text-align: right;
}

.tp-match__vs {
	padding: 3px 9px;
	border-radius: var(--tp-radius-pill);
	background: var(--tp-color-accent);
	color: var(--tp-color-on-accent);
	font-size: var(--tp-text-2xs);
	font-weight: var(--tp-weight-heavy);
	letter-spacing: var(--tp-tracking-label);
	line-height: 1.4;
}

.tp-match__meta {
	display: flex;
	flex-wrap: wrap;
	gap: var(--tp-space-2) var(--tp-space-3);
	align-items: center;
	margin-top: var(--tp-space-3);
	padding-top: var(--tp-space-3);
	border-top: var(--tp-rule);
	color: var(--tp-color-ink);
	font-size: var(--tp-text-sm);
}

.tp-match__when {
	display: inline-flex;
	gap: 6px;
	color: var(--tp-color-primary);
	font-weight: var(--tp-weight-bold);
	font-variant-numeric: tabular-nums;
}

.tp-match__sep,
.tp-match__day {
	color: var(--tp-color-muted);
	font-weight: var(--tp-weight-regular);
}

.tp-match__chip {
	padding: 2px 9px;
	border-radius: var(--tp-radius-pill);
	background: var(--tp-color-surface);
	font-size: var(--tp-text-xs);
	overflow-wrap: anywhere;
}

.tp-match__chip--status {
	background: var(--tp-color-warning-bg);
	color: var(--tp-color-warning);
}

.tp-match--completed .tp-match__chip--status {
	background: #e7f3ec;
	color: var(--tp-color-success);
}

.tp-match__result {
	font-weight: var(--tp-weight-bold);
	font-variant-numeric: tabular-nums;
}

.tp-matches__more {
	display: block;
	min-height: 44px;
	margin: var(--tp-space-4) auto 0;
	padding: 0 var(--tp-space-5);
	border: 1px solid var(--tp-color-primary);
	border-radius: var(--tp-radius-pill);
	background: var(--tp-color-bg);
	color: var(--tp-color-primary);
	font: inherit;
	font-size: var(--tp-text-sm);
	font-weight: var(--tp-weight-bold);
	cursor: pointer;
}

.tp-matches__more[hidden] {
	display: none;
}

.tp-matches__more:hover {
	background: var(--tp-color-primary);
	color: var(--tp-color-bg);
}

@media (max-width: 479px) {
	.tp-match__players {
		grid-template-columns: minmax(0, 1fr);
		gap: var(--tp-space-1);
	}

	.tp-match__player:last-child {
		text-align: left;
	}

	.tp-match__vs {
		justify-self: start;
	}
}

/* Matches: the section is a grid item of .tp-entity__main; allow it to shrink so result cards never widen the column (320px). */
.tp-matches {
	min-width: 0;
	max-width: 100%;
}

/* ==========================================================================
   Tournament draw download «Ταμπλό Αγώνα» (plugin TPC_Draws): a separate card,
   white with a lime accent and a dark-green download button.
   ========================================================================== */
.tp-draw {
	box-sizing: border-box;
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	gap: var(--tp-space-4);
	align-items: center;
	min-width: 0;
	max-width: 100%;
	margin-block: var(--tp-space-6);
	padding: clamp(16px, 3vw, 28px);
	border: var(--tp-rule);
	border-top: 4px solid var(--tp-color-accent);
	border-radius: var(--tp-radius-lg);
	background: var(--tp-color-bg);
}

.tp-draw__icon {
	display: grid;
	place-items: center;
	width: 56px;
	height: 56px;
	border-radius: var(--tp-radius-lg);
	background: var(--tp-color-surface);
	color: var(--tp-color-primary);
}

.tp-draw__icon svg,
.tp-draw__button-icon {
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.tp-draw__body {
	min-width: 0;
}

.tp-draw__title {
	margin: 0 0 var(--tp-space-1);
}

.tp-draw__lead {
	margin: 0;
	color: var(--tp-color-muted);
	font-size: var(--tp-text-sm);
	line-height: var(--tp-leading-normal);
}

.tp-draw__file {
	display: flex;
	flex-wrap: wrap;
	gap: var(--tp-space-1) var(--tp-space-2);
	align-items: center;
	margin: var(--tp-space-2) 0 0;
	color: var(--tp-color-muted);
	font-size: var(--tp-text-xs);
	line-height: var(--tp-leading-snug);
}

.tp-draw__type {
	padding: 2px 8px;
	border-radius: var(--tp-radius-pill);
	background: var(--tp-color-accent);
	color: var(--tp-color-on-accent);
	font-weight: var(--tp-weight-bold);
	letter-spacing: var(--tp-tracking-label);
}

.tp-draw__name {
	min-width: 0;
	max-width: 100%;
	color: var(--tp-color-ink);
	overflow-wrap: anywhere;
}

.tp-draw__button {
	box-sizing: border-box;
	display: inline-flex;
	gap: var(--tp-space-2);
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 12px 22px;
	border-radius: var(--tp-radius-pill);
	background: var(--tp-color-primary);
	color: #fff;
	font-weight: var(--tp-weight-bold);
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color .15s ease, box-shadow .15s ease;
}

.tp-draw__button:hover,
.tp-draw__button:focus-visible {
	background: var(--tp-color-ink);
	color: #fff;
	box-shadow: 0 0 0 3px var(--tp-color-accent);
}

.tp-draw__button-icon {
	flex: 0 0 20px;
}

@media (max-width: 719px) {
	.tp-draw {
		grid-template-columns: auto minmax(0, 1fr);
	}

	.tp-draw__button {
		grid-column: 1 / -1;
		width: 100%;
		white-space: normal;
	}
}

@media (max-width: 359px) {
	.tp-draw__icon {
		width: 44px;
		height: 44px;
	}
}
