/* ==========================================================================
   kosu.co — iç sayfalar (sayfa.css)
   main.css'ten taşındı: ana sayfada HİÇ kullanılmayan bölümler (iç sayfa başlığı,
   filtreler, geçmiş yarış listesi, yarış sayfası, grup profili, yazı/okuma alanı,
   sayfalama, arama sonuçları). Ana sayfa DIŞINDAKİ her sayfada main.css'ten hemen
   sonra yüklenir (inc/assets.php). Ana sayfada kullanılan bir şey buraya konmaz.
   ========================================================================== */

/* --- İç 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__cta { align-self: flex-start; }
.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-list__eval{display:flex;flex-wrap:wrap;align-items:center}.race-list__eval .race-row{flex:1 1 280px;min-width:0}.race-list__eval .btn{margin:0 20px 16px 102px}@media(min-width:700px){.race-list__eval .btn{margin:0 20px 0 0}}
.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; }
.facts dd a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }

.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; }
.page-hero__lead a{text-decoration:underline}

/* --- 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 > h2:first-child { margin-top: 0; } /* bölüm başlığı (ör. "Yarış hakkında"): üstte zaten bölüm boşluğu var */
.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-again { margin-bottom: 32px; }
.page-hero .search-again { margin: 8px 0 0; }

/* --- Şehir / ülke sayfası (taxonomy-race_location.php) ------------------ */
.hero-facts { display: flex; flex-wrap: wrap; gap: 8px 10px; margin: 4px 0 0; padding: 0; list-style: none; }
.hero-facts li, .hero-facts a { display: inline-flex; align-items: baseline; gap: 6px; color: var(--on-dark); font-size: 16px; text-decoration: none; }
.hero-facts li { padding: 8px 14px; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; }
.hero-facts strong { font: 400 20px/1 var(--font-display); color: #fff; }
.hero-facts a:hover strong { color: var(--sun); }
.loc-sub { margin: 0 0 14px; font: 400 var(--fs-h3)/1.2 var(--font-display); }
.loc-empty { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; padding: 24px; border-radius: var(--radius); background: var(--mint); }
.loc-empty p { margin: 0; max-width: 60ch; font-size: 17px; }
#takvim, #gruplar { scroll-margin-top: 90px; }

/* --- Gerçekleşenler: takvimde son 5 + tümü düğmesi; /yaris/ arşivinde filtre çipleri --- */
.race-list__more { margin: 20px 0 0; text-align: center; }
.past-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 20px; }
.past-filters__label { margin-right: 4px; font-size: 15px; color: var(--muted); }
.facts__tag { margin-left: 8px; vertical-align: middle; } /* yarış sayfası: KAPANIYOR */
