/* ==========================================================================
   kosu.co 2026 — ana stil dosyası
   Mobil öncelikli. Kırılımlar: 700px (tablet), 1100px (masaüstü).
   Renk ve ölçüler yalnızca :root değişkenlerinden okunur; yeni renk eklemeyin.
   ========================================================================== */

/* --- Yazı tipleri (temada barındırılır; Fontsource, OFL-1.1) --------------- */
@font-face{font-family:Righteous;font-weight:400;font-display:swap;src:url("../fonts/righteous-latin-400-normal.woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:Righteous;font-weight:400;font-display:swap;src:url("../fonts/righteous-latin-ext-400-normal.woff2");unicode-range:U+0100-02FF,U+1D00-1EFF,U+2020,U+20A0-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:Roboto;font-weight:400;font-display:swap;src:url("../fonts/roboto-latin-400-normal.woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:Roboto;font-weight:400;font-display:swap;src:url("../fonts/roboto-latin-ext-400-normal.woff2");unicode-range:U+0100-02FF,U+1D00-1EFF,U+2020,U+20A0-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:Roboto;font-weight:700;font-display:swap;src:url("../fonts/roboto-latin-700-normal.woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:Roboto;font-weight:700;font-display:swap;src:url("../fonts/roboto-latin-ext-700-normal.woff2");unicode-range:U+0100-02FF,U+1D00-1EFF,U+2020,U+20A0-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}


:root {
	--petrol: #0B2E33;
	--petrol-2: #0D3D42;
	--turq: #20C5B5;
	--turq-dk: #087A72;
	--mint: #E3F6F2;
	--sun: #FFC23D;
	--ink: #0F1E1D;
	--muted: #3D4F4D;
	--paper: #FAFBF9;
	--line: #D5DEDB;
	--on-dark: #CFE3E0;

	--font: "Roboto", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; /* metin */
	--font-display: "Righteous", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; /* başlık */
	--wrap: 1320px;
	--gutter: clamp(16px, 4vw, 32px);
	--radius: 20px;
	--radius-lg: 32px;
	--gap: clamp(16px, 2.4vw, 28px);
	--section: clamp(56px, 8vw, 96px);

	--fs-h1: clamp(44px, 8.4vw, 104px);
	--fs-h2: clamp(34px, 5vw, 64px);
	--fs-h3: clamp(20px, 2vw, 24px);
	--fs-lead: clamp(17px, 1.6vw, 20px);
}

/* --- Temel ---------------------------------------------------------------- */

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

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 16px; }

body {
	margin: 0;
	font-family: var(--font);
	font-size: 17px;
	line-height: 1.55;
	color: var(--ink);
	background: var(--paper);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	/* Righteous tek ağırlıklı (400): sahte kalın kapalı. Eğik (italik) sentezine izin var, çünkü Roboto italik yüklenmiyor. */
	font-synthesis: style;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--turq-dk); }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.05; letter-spacing: -0.02em; }
/* Righteous: başlıklar + kısa vurgu yazıları (rozet, etiket, buton, canlı akış, yazar/tarih).
   Roboto: okunacak her şey (paragraf, özet, menü, form, liste). */
h1, h2, h3, h4, h5, h6,
.hero__title, .section-head__title, .story__title, .page-hero__title, .article__title,
.community__title, .community__cities, .site-footer__title, .author__name,
.sticker, .bib__num, .bib__band, .bib__unit, .bib__name, .race-row__date, .race-row__name,
.group-card__name, .map-pop__t,
.btn, .tag, .chip, .skip-link, .field__label, .facts dt, .race-callout__label, .author__label,
.ticker__label, .ticker__tag, .article__meta {
	font-family: var(--font-display);
}
p { margin: 0; }

:focus-visible { outline: 3px solid var(--turq); outline-offset: 3px; border-radius: 6px; }

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

.skip-link {
	position: absolute; left: 12px; top: -60px; z-index: 100;
	padding: 10px 16px; border-radius: 999px; background: var(--petrol); color: #fff; font-weight: 700;
}
.skip-link:focus { top: 12px; color: #fff; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: calc(760px + 2 * var(--gutter)); }

.section { padding-block: var(--section) 0; }
.section--tight { padding-block: clamp(24px, 4vw, 40px) 0; }

.muted { color: var(--turq-dk); }
.empty { padding: 24px; border-radius: var(--radius); background: var(--mint); color: var(--muted); }

.icon { width: 20px; height: 20px; flex: none; }

/* --- Butonlar, etiketler -------------------------------------------------- */

.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 48px; padding: 0 24px; border: 0; border-radius: 999px;
	font-weight: 800; font-size: 16px; line-height: 1; cursor: pointer;
	transition: transform .15s ease, background-color .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn--sm { min-height: 44px; padding: 0 18px 0 14px; font-size: 15px; font-weight: 700; }
.btn--dark { background: var(--petrol); color: #fff; }
.btn--dark:hover { background: var(--petrol-2); color: #fff; }
.btn--accent { background: var(--turq); color: var(--petrol); }
.btn--accent:hover { background: #3ad3c4; color: var(--petrol); }
.btn--ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px rgba(255,255,255,.5); }
.btn--ghost:hover { color: #fff; box-shadow: inset 0 0 0 2px #fff; }

.icon-btn {
	display: inline-flex; align-items: center; justify-content: center;
	width: 44px; height: 44px; border-radius: 50%;
	border: 2px solid var(--ink); background: transparent; color: var(--ink); cursor: pointer;
}
.icon-btn:hover { color: var(--turq-dk); border-color: var(--turq-dk); }

.tag {
	display: inline-flex; align-self: flex-start; align-items: center;
	padding: 6px 14px; border-radius: 999px;
	font-size: 13px; font-weight: 800; letter-spacing: .06em;
}
.tag--sun { background: var(--sun); color: var(--ink); }
.tag--sun:hover { color: var(--ink); }
.tag--muted { background: rgba(255,255,255,.14); color: #fff; }

.chip {
	display: inline-flex; align-self: flex-start;
	padding: 3px 10px; border-radius: 999px;
	background: var(--mint); color: var(--turq-dk);
	font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
}

.pill {
	display: inline-flex; padding: 3px 10px; border-radius: 999px;
	border: 1.5px solid currentColor; font-size: 13px; font-weight: 800; line-height: 1.3;
}
.pill--light { color: #fff; }
.pill--light:hover { color: var(--sun); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-link {
	display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px;
	border-radius: 999px; background: #fff; border: 1px solid var(--line); font-weight: 600;
}
.chip-link.is-active { background: var(--petrol); border-color: var(--petrol); color: #fff; }
.chip-link__count { font-size: 13px; opacity: .7; }

.link-more {
	font-weight: 700; color: var(--turq-dk);
	border-bottom: 3px solid var(--turq); padding-bottom: 2px;
}

.hl { background: var(--turq); color: var(--petrol); padding: 0 .12em; border-radius: .16em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.hl--sun { background: var(--sun); color: var(--ink); }

/* --- Logo (animasyonlu petrol) ------------------------------------------- */

.logo {
	position: relative; display: block; overflow: hidden; border-radius: 50%;
	background: var(--petrol); width: 64px; height: 64px; flex: none;
}
.logo--md { width: 64px; height: 64px; }
.logo--sm { width: 72px; height: 72px; box-shadow: 0 10px 28px rgba(0,0,0,.4); }
.logo__glow {
	position: absolute; inset: -35%;
	background: radial-gradient(circle at 72% 22%, rgba(32,197,181,.95) 0%, rgba(32,197,181,0) 42%);
	animation: logo-spin 9s linear infinite;
}
.logo__word { position: absolute; inset: 0; width: 100%; height: 100%; }
a:hover .logo__word { animation: logo-pop .45s ease; }
@keyframes logo-spin { to { transform: rotate(360deg); } }
@keyframes logo-pop { 50% { transform: scale(1.07); } }

/* --- Üst bölüm ------------------------------------------------------------ */

.site-header { position: relative; z-index: 20; background: var(--paper); }
.site-header__inner { display: flex; align-items: center; gap: 16px; min-height: 84px; }
.site-header__brand { display: block; }
.site-header__actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.site-header__actions .btn span { display: none; }
.site-header__actions .btn--sm { padding: 0; width: 44px; }

.site-header__toggle-close { display: none; }
.site-header__toggle[aria-expanded="true"] .site-header__toggle-open { display: none; }
.site-header__toggle[aria-expanded="true"] .site-header__toggle-close { display: inline; }

.site-nav {
	display: none;
	position: absolute; left: 0; right: 0; top: 100%;
	padding: 8px var(--gutter) 24px; background: var(--paper);
	border-bottom: 1px solid var(--line); box-shadow: 0 16px 32px rgba(11,46,51,.12);
}
.site-nav.is-open { display: block; }
.site-nav__list { list-style: none; margin: 0; padding: 0; }
.site-nav__list a { display: block; padding: 12px 0; font-weight: 700; font-size: 20px; border-bottom: 1px solid var(--line); }
.site-nav__list .sub-menu { list-style: none; padding: 0 0 0 16px; margin: 0; }
.site-nav__list .sub-menu a { font-size: 17px; font-weight: 600; }
.site-nav .current-menu-item > a, .site-nav .current-menu-ancestor > a { color: var(--turq-dk); }

@media (min-width: 700px) {
	.site-header__actions .btn span { display: inline; }
	.site-header__actions .btn--sm { padding: 0 18px 0 14px; width: auto; }
}

@media (min-width: 1100px) {
	.site-header__toggle { display: none; }
	.site-nav { display: block; position: static; padding: 0; background: none; border: 0; box-shadow: none; margin-left: 12px; }
	.site-nav__list { display: flex; flex-wrap: wrap; gap: 4px 24px; }
	.site-nav__list > li { position: relative; }
	.site-nav__list a { padding: 8px 0; font-size: 17px; font-weight: 600; border: 0; }
	.site-nav__list .sub-menu {
		display: none; position: absolute; top: 100%; left: -16px; min-width: 220px; padding: 8px 16px;
		background: #fff; border-radius: 14px; box-shadow: 0 16px 32px rgba(11,46,51,.14);
	}
	.site-nav__list li:hover > .sub-menu, .site-nav__list li:focus-within > .sub-menu { display: block; }
}

/* --- Hero (ana sayfa) ----------------------------------------------------- */

.hero, .page-hero {
	color: #fff;
	background:
		radial-gradient(55% 75% at 88% 8%, rgba(32,197,181,.55) 0%, rgba(32,197,181,0) 65%),
		radial-gradient(45% 60% at 4% 100%, rgba(255,194,61,.33) 0%, rgba(255,194,61,0) 60%),
		linear-gradient(165deg, var(--petrol) 0%, var(--petrol-2) 55%, var(--petrol) 100%);
}
.hero__inner { display: grid; gap: 40px; padding-block: clamp(40px, 6vw, 64px); }
.hero__copy { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.hero__title { font-size: var(--fs-h1); font-weight: 800; line-height: .9; letter-spacing: -.045em; }
.hero__line { display: block; }
/* “Katıl.” sarı, hafif eğik sticker; kendi satırında, üstteki satırın harflerine binmez. */
.hero__join {
	display: inline-block; margin-top: .42em; padding: .12em .34em .16em;
	font-size: .62em; line-height: 1; letter-spacing: -.01em;
	background: var(--sun); color: var(--ink); border-radius: 999px;
	transform: rotate(-4deg); transform-origin: left center;
	box-shadow: 0 .08em 0 rgba(0,0,0,.25), 0 .3em .6em rgba(0,0,0,.25);
}
.hero__lead { font-size: var(--fs-lead); color: var(--on-dark); max-width: 520px; }
.hero__map { min-width: 0; display: flex; flex-direction: column; gap: 14px; }

@media (min-width: 1100px) {
	.hero__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); align-items: center; gap: 48px; }
}

/* Arama kutusu */
.finder { background: #fff; color: var(--ink); border-radius: 22px; padding: 10px; display: flex; flex-direction: column; gap: 10px; }
.finder__tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.finder__tabs[hidden], .finder__form[hidden] { display: none; }
.finder__tab {
	min-height: 44px; padding: 0 18px; border: 0; border-radius: 999px;
	background: var(--mint); color: var(--petrol); font-weight: 600; cursor: pointer;
}
.finder__tab[aria-pressed="true"] { background: var(--petrol); color: #fff; font-weight: 700; }
.finder__form { display: flex; flex-wrap: wrap; gap: 8px; }
.finder__form .field { flex: 1 1 150px; }
.finder__submit { flex: 1 0 auto; min-height: 58px; border-radius: 14px; font-size: 17px; }

.field {
	display: flex; flex-direction: column; gap: 2px; padding: 8px 14px;
	border: 1px solid #CFDDDA; border-radius: 14px; background: #fff;
}
.field__label { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.field__input { border: 0; background: transparent; font-size: 16px; font-weight: 600; padding: 2px 0; min-height: 28px; width: 100%; }
.field__input:focus { outline: none; }
.field:focus-within { border-color: var(--turq-dk); box-shadow: 0 0 0 3px rgba(32,197,181,.35); }
.field--inline { flex: 1 1 180px; }

/* --- Harita --------------------------------------------------------------- */

.race-map {
	position: relative; width: 100%; aspect-ratio: 4 / 3; overflow: hidden; isolation: isolate;
	border-radius: 28px; border: 1px solid rgba(255,255,255,.12);
	background-color: rgba(11,46,51,.5);
	background-image: radial-gradient(rgba(207,227,224,.22) 1.7px, transparent 1.7px);
	background-size: 16px 16px;
	color: var(--ink);
}
.race-map--hero { aspect-ratio: 4 / 3; }
.race-map--wide { aspect-ratio: 16 / 10; max-height: 640px; background-color: var(--petrol); }
.race-map--single { aspect-ratio: 1 / 1; background-color: var(--petrol); }
@media (min-width: 700px) {
	.race-map--hero { aspect-ratio: 2 / 1.15; }
	.race-map--wide { aspect-ratio: 2 / 1; }
}
.race-map .leaflet-container, .race-map.leaflet-container { background: transparent; font-family: var(--font); }
.race-map__note { position: absolute; inset: auto 16px 16px; color: var(--on-dark); font-size: 14px; }

.map-legend { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14px; color: var(--on-dark); }
.section .map-legend { color: var(--muted); margin-top: 12px; }
.map-legend li { display: inline-flex; align-items: center; gap: 8px; }

/* İşaretler (Leaflet divIcon) */
.mk { display: inline-block; width: 14px; height: 14px; border-radius: 50%; background: var(--turq); box-shadow: 0 0 0 2px var(--petrol); }
.mk--trail { border-radius: 3px; background: var(--sun); }
.mk--past { background: #8FA6A2; }
.mk-icon { background: none; border: 0; }
.mk-icon .mk { position: relative; width: 16px; height: 16px; }
.mk-icon--past .mk::after { content: none; }

.leaflet-popup-content-wrapper { border-radius: 16px; box-shadow: 0 12px 32px rgba(0,0,0,.3); }
.leaflet-popup-content { margin: 14px 16px; font-family: var(--font); font-size: 14px; line-height: 1.4; }
.map-pop__t { display: block; font-weight: 800; font-size: 16px; color: var(--ink); margin-bottom: 4px; }
.map-pop__m { display: block; color: var(--muted); }
.map-pop__a { display: inline-block; margin-top: 8px; font-weight: 700; color: var(--turq-dk); }
.leaflet-control-attribution { font-size: 10px; background: rgba(255,255,255,.7) !important; }

/* Kümeler (markercluster CSS'i yerine) */
.marker-cluster { background: rgba(32,197,181,.35); border-radius: 50%; }
.marker-cluster div {
	width: 30px; height: 30px; margin: 5px; border-radius: 50%;
	background: var(--turq); color: var(--petrol); font-weight: 800; font-size: 13px;
	display: flex; align-items: center; justify-content: center;
}
.leaflet-cluster-anim .leaflet-marker-icon, .leaflet-cluster-anim .leaflet-marker-shadow { transition: transform .3s ease-out, opacity .3s ease-in; }

/* Nabız halkası: box-shadow yerine transform + opacity (her karede yeniden boyama yok). */
.mk-icon .mk::after, .dot-pulse::after {
	content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
	background: rgba(32,197,181,.55); animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse { from { transform: scale(1); opacity: 1; } to { transform: scale(var(--ps, 3)); opacity: 0; } }

/* --- Canlı akış ----------------------------------------------------------- */

.ticker {
	display: flex; align-items: stretch;
	background: linear-gradient(90deg, var(--turq) 0%, var(--turq) 35%, var(--sun) 100%);
	color: var(--petrol);
}
.ticker__label {
	flex: none; display: inline-flex; align-items: center; gap: 10px; padding: 0 18px 0 var(--gutter);
	background: var(--petrol); color: #fff; font-weight: 800; font-size: 13px; letter-spacing: .1em;
}
.dot-pulse { position: relative; width: 10px; height: 10px; border-radius: 50%; background: var(--turq); --ps: 4.2; }
.ticker__viewport { flex: 1 1 auto; min-width: 0; overflow: hidden; padding: 12px 0; }
.ticker__track { display: flex; width: max-content; animation: ticker 55s linear infinite; }
.ticker:hover .ticker__track, .ticker:focus-within .ticker__track { animation-play-state: paused; }
.ticker__group { display: flex; }
.ticker__item { display: inline-flex; align-items: center; gap: 10px; padding-right: 36px; white-space: nowrap; color: var(--petrol); }
.ticker__item:hover { color: var(--petrol); text-decoration: underline; text-underline-offset: 4px; }
.ticker__tag { padding: 4px 10px; border-radius: 999px; background: var(--petrol); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .08em; }
.ticker__text { font-weight: 700; font-size: 17px; }
@keyframes ticker { to { transform: translateX(-50%); } }
@media (min-width: 700px) { .ticker__text { font-size: 20px; } .ticker__label { font-size: 15px; } }

/* --- Bölüm başlığı -------------------------------------------------------- */

.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; margin-bottom: 28px; }
.section-head__title { font-size: var(--fs-h2); font-weight: 800; line-height: .95; letter-spacing: -.035em; }

/* --- Medya ---------------------------------------------------------------- */

.media { position: relative; display: block; overflow: hidden; border-radius: var(--radius); background: #DCE4E2; }
.media__img { width: 100%; height: 100%; object-fit: cover; }
.media__ph {
	position: absolute; inset: 0;
	background-color: var(--petrol-2);
	background-image: radial-gradient(rgba(207,227,224,.18) 1.5px, transparent 1.5px);
	background-size: 14px 14px;
}

/* --- Hikâye kartları ------------------------------------------------------ */

.stories { display: grid; gap: 32px; }
.stories--single { display: block; margin-bottom: 40px; }

.story { position: relative; min-width: 0; }
.story__link { display: flex; flex-direction: column; gap: 14px; color: inherit; }
.story__link:hover { color: inherit; }
.story__link:hover .story__title { color: var(--turq-dk); }
.story__body { display: flex; flex-direction: column; gap: 10px; }
.story__title { font-size: var(--fs-h3); font-weight: 700; line-height: 1.12; transition: color .15s; }
.story__title--xl { font-size: clamp(30px, 4vw, 48px); font-weight: 800; line-height: 1; letter-spacing: -.03em; }
.story__excerpt { font-size: var(--fs-lead); color: var(--muted); max-width: 680px; }

/*
 * Yazı görselleri 3:1 hazırlanıyor (768×256). Tüm yazı kartları 3:1 gösterir,
 * böylece görselin tamamı kırpılmadan görünür. Görsel ölçüsü değişirse yalnızca
 * --story-ratio değişkenini güncelleyin.
 */
:root { --story-ratio: 3 / 1; }
.story--feature .story__media { aspect-ratio: var(--story-ratio); border-radius: 24px; }
.story--card .story__media,
.story--mini .story__media { aspect-ratio: var(--story-ratio); border-radius: 16px; }
.story--mini .story__link { gap: 10px; }
.story--mini .story__body { gap: 8px; }
.story--mini .story__title { font-size: 18px; line-height: 1.15; }

/* Ana sayfa: solda manşet, sağda 2×2 küçük kart; tablette manşet üstte, altında 2 sütun. */
.stories__list { display: grid; gap: 24px 20px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 700px) { .stories__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) {
	.stories { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: start; }
	.stories__list { gap: 28px 20px; }
}

.sticker {
	position: absolute; top: -14px; right: 20px; z-index: 2;
	width: clamp(96px, 12vw, 128px); aspect-ratio: 1; border-radius: 50%;
	background: var(--sun); color: var(--ink); transform: rotate(8deg);
	display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; line-height: 1;
}
.sticker__small { font-size: 12px; font-weight: 700; padding-inline: 10px; }
.sticker__big { font-size: clamp(26px, 3vw, 38px); font-weight: 800; letter-spacing: -.03em; }

.card-grid { display: grid; gap: var(--gap); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 700px) { .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* --- Göğüs numarası (bib) ------------------------------------------------- */

.bib-grid { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 700px) { .bib-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .bib-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.bib {
	--b-body: #fff; --b-ink: var(--petrol); --b-band: var(--turq); --b-band-ink: var(--petrol); --b-tear: #BFD3CF;
	position: relative; display: flex; flex-direction: column; overflow: hidden; min-width: 0;
	background: var(--b-body); color: var(--b-ink); border-radius: 10px;
	box-shadow: 0 2px 0 rgba(11,46,51,.18), 0 14px 30px rgba(11,46,51,.12);
	transition: transform .2s ease, box-shadow .2s ease;
}
.bib:hover { color: var(--b-ink); transform: translateY(-3px) rotate(-.4deg); box-shadow: 0 2px 0 rgba(11,46,51,.18), 0 20px 36px rgba(11,46,51,.18); }
.bib--b { --b-body: var(--turq); --b-band: var(--petrol); --b-band-ink: #fff; --b-tear: rgba(11,46,51,.35); }
.bib--c { --b-band: var(--sun); }
.bib--d { --b-body: var(--petrol); --b-ink: #fff; --b-tear: rgba(255,255,255,.3); }
.bib--e { --b-band: var(--petrol); --b-band-ink: #fff; }
.bib--f { --b-body: var(--sun); --b-band: var(--petrol); --b-band-ink: #fff; --b-tear: rgba(11,46,51,.35); }

.bib__hole {
	position: absolute; z-index: 2; width: 14px; height: 14px; border-radius: 50%;
	background: var(--paper); box-shadow: inset 0 1px 3px rgba(0,0,0,.45);
}
.bib__hole--tl { top: 14px; left: 14px; } .bib__hole--tr { top: 14px; right: 14px; }
.bib__hole--bl { bottom: 14px; left: 14px; } .bib__hole--br { bottom: 14px; right: 14px; }

.bib__band {
	display: flex; justify-content: space-between; align-items: center; gap: 12px;
	padding: 13px 40px; background: var(--b-band); color: var(--b-band-ink);
	font-weight: 800; font-size: 13px; letter-spacing: .08em; text-transform: uppercase;
}
.bib__city { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bib__date { white-space: nowrap; }
.bib__main { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: end; gap: 16px; padding: 14px 40px 10px; }
.bib__num { font-weight: 800; font-size: clamp(84px, 9vw, 118px); line-height: .82; letter-spacing: -.06em; font-variant-numeric: tabular-nums; }
.bib__num--done { font-size: 56px; }
/* Yarış adı geri sayımın yanında; uzun adlar en fazla 3 satır. */
.bib__side { display: flex; flex-direction: column; gap: 8px; min-width: 0; padding-bottom: 4px; }
.bib__name {
	font-family: var(--font-display); font-size: 21px; line-height: 1.1;
	display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.bib__unit { display: flex; align-items: baseline; gap: 6px; font-weight: 800; line-height: 1; font-size: 16px; }
.bib__left { font-size: 12px; letter-spacing: .12em; opacity: .75; }
.bib__foot {
	margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
	padding: 12px 40px 16px; border-top: 2px dashed var(--b-tear);
}
.bib__dist { display: flex; flex-wrap: wrap; gap: 6px; }

/* --- Takvimim (kosuco-app; düğme .btn--sm üzerine) -------------------------- */

.bib-card { position: relative; display: flex; min-width: 0; transition: transform .2s ease; }
.bib-card > .bib { flex: 1; }
.bib-card:hover { transform: translateY(-3px) rotate(-.4deg); }
.bib-card .bib:hover { transform: none; }
.bib-card .bib__dist { flex-wrap: nowrap; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.bib-card .bib__dist::-webkit-scrollbar { display: none; }
.bib-card .bib__dist > *, .bib-card .bib__dist::after { flex: none; }
.bib-card .bib__dist::after { content: ""; width: 124px; }
.bib-card > .takvim-btn { position: absolute; right: 36px; bottom: 13px; min-width: 0; min-height: 32px; padding: 0 10px; font-size: 12px; gap: 4px; }
.bib-card > .takvim-btn::after { content: ""; position: absolute; inset: -6px 0; }
.takvim-btn { min-width: 12em; background: #fff; color: var(--petrol); box-shadow: inset 0 0 0 2px var(--petrol); }
.takvim-btn:hover { background: var(--mint); color: var(--petrol); }
.takvim-btn[aria-pressed="true"] { background: var(--turq); }
.takvim-btn__icon::before { content: "+"; font-size: 18px; }
.takvim-btn[aria-pressed="true"] .takvim-btn__icon::before { content: "\2713"; font-size: 14px; }
.takvim-btn__on, .takvim-btn[aria-pressed="true"] .takvim-btn__off { display: none; }
.takvim-btn[aria-pressed="true"] .takvim-btn__on { display: inline; }
.race-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.takvim-link { position: relative; background: var(--mint); color: var(--petrol); }
.takvim-link__n { position: absolute; top: -5px; right: -5px; min-width: 20px; padding: 0 5px; border-radius: 999px; background: var(--sun); font-size: 12px; line-height: 20px; text-align: center; }
.toast {
	position: fixed; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 60; margin: 0;
	padding: 12px 20px; border-radius: 999px; background: var(--petrol); color: #fff; font-weight: 700;
	opacity: 0; transform: translate(-50%, 12px); transition: opacity .2s, transform .2s; pointer-events: none;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* --- Topluluk ------------------------------------------------------------- */

.community {
	display: grid; gap: 32px; padding: clamp(28px, 5vw, 56px) clamp(20px, 4vw, 48px);
	border-radius: 36px;
	background:
		radial-gradient(60% 90% at 100% 100%, rgba(255,194,61,.35) 0%, rgba(255,194,61,0) 70%),
		linear-gradient(135deg, var(--mint) 0%, #D2F1EB 100%);
}
@media (min-width: 1100px) { .community { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.community__copy { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.community__title { font-size: clamp(44px, 6vw, 68px); font-weight: 800; line-height: .92; letter-spacing: -.04em; }
.community__lead { font-size: var(--fs-lead); color: #24403E; max-width: 460px; }
.community__cities { display: flex; flex-wrap: wrap; gap: 2px 18px; font-weight: 800; font-size: clamp(26px, 3.4vw, 40px); line-height: 1.15; letter-spacing: -.035em; }
.community__cities a:hover { color: var(--turq-dk); text-decoration: underline; text-decoration-thickness: 3px; }
.community__list { display: flex; flex-direction: column; gap: 12px; }

.group-grid { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); margin-top: 24px; }
@media (min-width: 700px) { .group-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .group-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.group-card { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 20px; background: #fff; box-shadow: 0 1px 0 var(--line); }
.group-card:hover { color: inherit; box-shadow: 0 0 0 2px var(--turq); }
.group-card__logo { position: relative; flex: none; width: 56px; height: 56px; border-radius: 50%; overflow: hidden; background: var(--petrol); }
.group-card__img { width: 100%; height: 100%; object-fit: cover; }
.group-card__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.group-card__name { font-weight: 700; font-size: 18px; line-height: 1.2; }
.group-card__meta { font-size: 14px; color: var(--muted); }

/* --- Instagram ------------------------------------------------------------ */

.ig-cta {
	display: flex; align-items: center; gap: 16px; padding: 24px 28px; border-radius: 24px;
	background: var(--petrol); color: #fff; font-size: var(--fs-lead); font-weight: 600;
}
.ig-cta:hover { color: var(--sun); }
.ig-cta .icon { width: 32px; height: 32px; }

/* --- İç sayfa başlığı ----------------------------------------------------- */

.page-hero__inner { display: flex; flex-direction: column; gap: 18px; padding-block: clamp(40px, 7vw, 80px); }
.page-hero__title { font-size: clamp(38px, 6.4vw, 80px); font-weight: 800; line-height: .95; letter-spacing: -.04em; max-width: 18ch; }
.page-hero__lead { font-size: var(--fs-lead); color: var(--on-dark); max-width: 640px; }
.page-hero .actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* Filtreler */
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding-top: 28px; }

/* Geçmiş yarış listesi */
.race-list { list-style: none; margin: 0; padding: 0; border-radius: 20px; overflow: hidden; background: #fff; }
.race-list li + li { border-top: 1px solid #E5E9E2; }
.race-row { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 4px 18px; align-items: center; padding: 16px 20px; }
.race-row:hover { background: var(--mint); color: inherit; }
.race-row__date { grid-row: span 2; display: flex; flex-direction: column; align-items: center; font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; line-height: 1.1; }
.race-row__date span { font-size: 28px; font-weight: 800; color: var(--ink); }
.race-row__name { font-weight: 700; font-size: 18px; line-height: 1.2; }
.race-row__meta { font-size: 14px; color: var(--muted); }

/* --- Yarış sayfası -------------------------------------------------------- */

.race-hero { display: grid; gap: 32px; padding-block: clamp(40px, 6vw, 72px); align-items: center; }
@media (min-width: 1100px) { .race-hero { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); } }
.race-hero__copy { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.race-hero__bib .bib { --b-body: #fff; }
.race-hero__logo { justify-self: start; background: #fff; border-radius: 24px; padding: 16px; }

.facts { margin: 0; display: flex; flex-wrap: wrap; gap: 16px 40px; }
.facts dt { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--on-dark); }
.facts dd { margin: 4px 0 0; font-weight: 700; font-size: 18px; }
.facts__pills { display: flex; flex-wrap: wrap; gap: 6px; }

.race-body { display: grid; gap: 40px; padding-block: var(--section) 0; }
@media (min-width: 1100px) { .race-body { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: start; } }

.race-callout { display: flex; flex-direction: column; gap: 12px; max-width: 440px; }
.race-callout__label { font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--turq-dk); }

/* --- Grup profili --------------------------------------------------------- */

.group-hero { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; padding-block: clamp(40px, 6vw, 72px); }
.group-hero > div { display: flex; flex-direction: column; gap: 14px; }
.group-hero__logo { width: 120px; height: 120px; border-radius: 50%; overflow: hidden; background: #fff; flex: none; }
.group-hero__logo img { width: 100%; height: 100%; object-fit: cover; }

/* --- Yazı ----------------------------------------------------------------- */

.article__head { padding-block: clamp(32px, 6vw, 64px) 32px; }
.article__head .wrap { display: flex; flex-direction: column; gap: 18px; }
.article__title { font-size: clamp(36px, 5.6vw, 64px); font-weight: 800; line-height: 1; letter-spacing: -.035em; }
.article__lead { font-size: clamp(19px, 2vw, 23px); color: var(--muted); }
.article__meta { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 15px; color: var(--muted); }
.article__cover { aspect-ratio: var(--story-ratio); border-radius: 0; margin: 0 auto 40px; padding: 0; }
@media (min-width: 700px) { .article__cover { width: calc(100% - 2 * var(--gutter)); max-width: 960px; border-radius: 24px; } }
.article__foot { display: flex; flex-direction: column; gap: 32px; padding-top: 32px; }

.prose { font-size: 19px; line-height: 1.7; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: clamp(26px, 3vw, 34px); font-weight: 800; margin-top: 1.8em; }
.prose h3 { font-size: clamp(22px, 2.4vw, 26px); font-weight: 700; margin-top: 1.6em; }
.prose a { color: var(--turq-dk); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .4em; }
.prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 22px; border-left: 4px solid var(--turq); font-size: 1.15em; font-weight: 600; }
.prose img, .prose figure img { border-radius: 16px; }
.prose figure { margin: 1.6em 0; }
.prose figcaption, .prose .wp-element-caption { font-size: 14px; color: var(--muted); margin-top: 8px; }
.prose iframe { max-width: 100%; border: 0; border-radius: 16px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 16px; display: block; overflow-x: auto; }
.prose th, .prose td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.prose .alignwide { margin-inline: calc(-1 * min(120px, 6vw)); }
.prose .alignfull { margin-inline: calc(50% - 50vw); max-width: 100vw; }
.prose .aligncenter { margin-inline: auto; }

.author { display: flex; gap: 18px; align-items: flex-start; padding: 24px; border-radius: 24px; background: var(--mint); }
.author__img { flex: none; width: 72px; height: 72px; border-radius: 50%; }
.author__label { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--turq-dk); }
.author__name { font-size: 22px; font-weight: 800; margin: 2px 0 6px; }
.author__bio { font-size: 16px; color: var(--muted); }

/* --- Sayfalama, arama ----------------------------------------------------- */

.pagination { margin-top: 48px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.pagination .page-numbers { min-width: 44px; min-height: 44px; padding: 0 14px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-weight: 700; }
.pagination .page-numbers.current { background: var(--petrol); border-color: var(--petrol); color: #fff; }

.search-form { display: flex; gap: 8px; max-width: 560px; }
.search-form__input { flex: 1; min-height: 52px; padding: 0 18px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink); }
.search-form__input:focus { outline: 3px solid var(--turq); }
.search-form .btn span { display: none; }
@media (min-width: 700px) { .search-form .btn span { display: inline; } }
.search-again { margin-bottom: 32px; }
.page-hero .search-again { margin: 8px 0 0; }

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

.site-footer {
	margin-top: var(--section); color: #fff;
	background:
		radial-gradient(50% 90% at 0% 0%, rgba(32,197,181,.33) 0%, rgba(32,197,181,0) 70%),
		radial-gradient(40% 80% at 100% 100%, rgba(255,194,61,.2) 0%, rgba(255,194,61,0) 70%),
		var(--petrol);
}
.site-footer .wrap { display: flex; flex-direction: column; gap: 40px; padding-block: 64px 32px; }
.site-footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 28px; }
.site-footer__title { font-size: clamp(40px, 6vw, 72px); font-weight: 800; line-height: .9; letter-spacing: -.04em; max-width: 12ch; }
.site-footer__form { flex: 1 1 320px; max-width: 520px; }
.site-footer__bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; padding-top: 24px; border-top: 1px solid #24484D; }
.site-footer__menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.site-footer__menu a, .site-footer__ig { color: var(--on-dark); }
.site-footer__menu a:hover, .site-footer__ig:hover { color: var(--sun); }
.site-footer__ig { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }
.site-footer__copy { font-size: 13px; color: #8FB1AC; }

/* Contact Form 7 bülten formu: gönder butonu e-posta alanının içinde, en sağda.
   Buton ile alan aynı ızgara satırına (1. satır) yerleştirilir; böylece formdan önce gelen
   gizli alanlar, <label> ya da <p> sarmalayıcıları butonun yerini kaydırmaz. */
.site-footer .wpcf7-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; row-gap: 10px; }
.site-footer .wpcf7-form :is(p, label, div:not(.wpcf7-response-output)) { display: contents; }
.site-footer .wpcf7-form :is(fieldset.hidden-fields-container, br) { display: none; }
.site-footer .wpcf7-form-control-wrap { grid-row: 1; grid-column: 1 / -1; display: block; min-width: 0; }
.site-footer .wpcf7-form input[type="email"], .site-footer .wpcf7-form input[type="text"] {
	width: 100%; min-height: 60px; padding: 0 clamp(112px, 34vw, 140px) 0 24px; border: 0; border-radius: 999px;
	background: #fff; color: var(--ink); font-size: 17px;
}
.site-footer .wpcf7-form input[type="email"]:focus, .site-footer .wpcf7-form input[type="text"]:focus {
	outline: none; box-shadow: 0 0 0 3px var(--turq);
}
.site-footer .wpcf7-submit {
	grid-row: 1; grid-column: 2; align-self: start; z-index: 1;
	margin: 6px 6px 0 0; min-height: 48px; padding: 0 clamp(16px, 5vw, 24px); border: 0; border-radius: 999px;
	background: var(--turq); color: var(--petrol); font-weight: 800; font-size: 16px; cursor: pointer;
	transition: background-color .15s ease;
}
.site-footer .wpcf7-submit:hover { background: #3ad3c4; }
.site-footer .wpcf7-submit:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; }
.site-footer .wpcf7-submit:disabled { opacity: .6; cursor: default; }
/* Gönderim sırasındaki dönen simge, alanın içinde butonun solunda görünür. */
.site-footer .wpcf7-spinner { grid-row: 1; grid-column: 1; justify-self: end; align-self: start; z-index: 1; margin: 18px 10px 0 0; }
.site-footer .wpcf7-response-output { grid-column: 1 / -1; margin: 0 !important; padding: 10px 16px !important; border-radius: 14px; color: #fff; font-size: 15px; }
.site-footer .wpcf7-not-valid-tip { color: var(--sun); font-size: 14px; margin: 6px 0 0 24px; }

/* --- Hareket hassasiyeti -------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
	.ticker__viewport { overflow-x: auto; }
}
