:root {
  color-scheme: light;
  --blue: #305cde;
  --navy: #101f3d;
  --red: #d62839;
  --white: #fff;
  --gray: #f3f5f9;
  --ink: #142444;
  --muted: #4b5a73;
  --line: #dbe2ee;
  --soft-blue: #e8eeff;
  --hero-dark: #1e429f;
  --brand-accent: #b6c9ff;
  --nav-hover: #c5d3ff;
  --nav-border: #425270;
  --nav-shadow: #101f3d30;
  --mobile-shadow: #101f3d35;
  --inverse-focus: #fbb88c;
  --hero-copy: #f2f5ff;
  --hero-line: #a8bbf6a0;
  --hero-line-faint: #a8bbf690;
  --empty-border: #b7c3d7;
  --portrait-shape: #dbe5ff;
  --portrait-ink: #3652a0;
  --field-border: #aebbd0;
  --footer-muted: #cad6ef;
  --footer-link: #dae3f5;
  --error-ink: #8b1723;
  --error-bg: #fff1f2;
  --error-border: #e7bcbe;
  --success-ink: #14553a;
  --success-bg: #e8f7ee;
  --focus: #a43104;
  --wrap: 1180px;
  --radius: 12px;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 1rem; }
body { margin: 0; color: var(--ink); background: var(--white); font: 1rem/1.55 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
main { min-height: 60vh; }
main:focus { outline: none; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.035em; }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: 1.14rem; }
a { color: inherit; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; }
button, input, select, textarea { min-width: 0; }
button, summary { cursor: pointer; }
img { max-width: 100%; }
ul, ol { padding: 0; }
:is(a,button,summary,input,select,textarea):focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.wrap { width: min(var(--wrap), calc(100% - 32px)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; z-index: 6; top: 10px; left: 16px; padding: 8px 14px; background: var(--white); color: var(--navy); transform: translateY(-150%); }
.skip:focus { transform: none; }
.site-header { background: var(--navy); color: var(--white); position: relative; z-index: 2; }
.header-inner { display: flex; align-items: center; gap: 12px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 0; color: var(--white); font-size: 1.45rem; font-weight: 830; letter-spacing: -.055em; white-space: nowrap; text-decoration: none; }
.brand > span:last-child { color: var(--brand-accent); }
.brand-mark { width: 28px; height: 29px; position: relative; margin-right: 8px; display: inline-block; }
.brand-mark i { position: absolute; display: block; width: 7px; transform: skew(-16deg); background: var(--white); bottom: 4px; }
.brand-mark i:nth-child(1) { left: 4px; height: 11px; }
.brand-mark i:nth-child(2) { left: 12px; height: 17px; }
.brand-mark i:nth-child(3) { left: 20px; height: 23px; background: var(--red); }
.desktop-nav { display: none; margin-left: auto; }
.desktop-nav ul { list-style: none; display: flex; margin: 0; gap: clamp(4px, 1.35vw, 24px); }
.desktop-nav li > a, .header-search { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 8px 4px; text-decoration: none; font-weight: 650; font-size: .91rem; }
.desktop-nav li > a:hover, .header-search:hover { color: var(--nav-hover); }
.header-search { margin-left: auto; padding-inline: 12px; border: 1px solid var(--nav-border); border-radius: 8px; min-height: 44px; }
.header-search span:last-child { display: none; }
.search-icon { display: inline-block; position: relative; width: 14px; height: 14px; border: 2px solid currentColor; border-radius: 50%; flex: 0 0 auto; }
.search-icon::after { content: ""; position: absolute; width: 6px; height: 2px; transform: rotate(45deg); background: currentColor; right: -5px; bottom: -3px; }
.chevron { border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); padding: 3px; margin-top: -4px; }
.has-mega { position: relative; }
.mega { display: none; position: absolute; top: 100%; left: -95px; width: max-content; padding: 22px; border-radius: 0 0 var(--radius) var(--radius); background: var(--navy); box-shadow: 0 22px 35px var(--nav-shadow); }
.has-mega:not([data-dismissed]):is(:hover,:focus-within) .mega { display: block; }
.mega-all { display: inline-flex; gap: 9px; font-weight: 740; align-items: center; min-height: 44px; text-decoration: none; }
.mega-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px 20px; margin-block: 8px; }
.mega .mega-grid { grid-template-columns: repeat(4,1fr); }
.mega-grid strong { display: block; color: var(--brand-accent); margin-bottom: 4px; }
.mega-grid a { display: flex; align-items: center; font-size: .88rem; min-height: 44px; text-decoration: none; }
.mega-grid a:hover, .mega-all:hover { text-decoration: underline; }
.site-header :is(a,summary):focus-visible, .site-footer :is(a,summary):focus-visible { outline-color: var(--inverse-focus); }
.mobile-nav { color: var(--white); font-size: .91rem; }
.mobile-nav > summary { list-style: none; display: flex; align-items: center; gap: 7px; min-height: 44px; }
.mobile-nav > summary::-webkit-details-marker { display: none; }
.hamburger { width: 15px; height: 12px; display: inline-block; border-block: 2px solid currentColor; background: linear-gradient(currentColor,currentColor) center/100% 2px no-repeat; }
.mobile-nav > nav { position: absolute; top: 100%; inset-inline: 0; padding: 12px 20px 20px; background: var(--navy); box-shadow: 0 16px 18px var(--mobile-shadow); max-height: 75vh; overflow: auto; }
.mobile-nav nav > a, .mobile-nav nav > details > summary { display: block; padding: 10px 0; text-decoration: none; }
.mobile-nav nav > details > summary { display: list-item; }
.mobile-nav nav > details { border-block: 1px solid var(--nav-border); }
.hero { position: relative; isolation: isolate; overflow: hidden; background: var(--blue); color: var(--white); }
.hero-grid { position: relative; z-index: 1; padding-block: clamp(50px, 8vw, 102px); }
.hero h1 { font-size: clamp(2.55rem, 7vw, 5.15rem); max-width: 11ch; letter-spacing: -.065em; line-height: .99; }
.hero p { max-width: 42ch; margin-block: 18px 24px; color: var(--hero-copy); font-size: clamp(1rem, 2vw, 1.13rem); }
.hero-art { position: absolute; pointer-events: none; z-index: 0; width: 48%; min-width: 250px; height: 100%; right: 0; top: 0; opacity: .42; }
.hero-art i { position: absolute; display: block; }
.hero-art i:nth-child(1) { background: var(--navy); width: 70%; height: 160%; top: -8%; right: -30%; transform: skew(-29deg); }
.hero-art i:nth-child(2) { border: 1px solid var(--hero-line); width: 72%; height: 97%; border-radius: 50%; right: -7%; top: 22%; transform: rotate(-28deg); }
.hero-art i:nth-child(3) { background: var(--red); width: 44%; height: 10%; top: 79%; right: -4%; transform: skew(-30deg); }
.hero-art i:nth-child(4) { border: 1px solid var(--hero-line-faint); width: 65%; height: 55%; right: 15%; top: 15%; transform: skew(-28deg); }
.search-bar { display: flex; align-items: center; gap: 12px; background: var(--white); color: var(--navy); padding: 5px 6px 5px 15px; border-radius: 9px; max-width: 490px; }
.search-bar input { padding: 10px 3px; flex: 1; width: 100%; border: 0; }
.search-bar button, .filter-buttons button, .button, .admin button { min-height: 44px; border: 0; border-radius: 7px; padding: 8px 14px; font-weight: 730; color: var(--white); background: var(--navy); text-decoration: none; display: inline-flex; align-items: center; gap: 8px; justify-content: center; }
.search-bar button:hover, .filter-buttons button:hover, .button:hover, .admin button:hover { background: var(--hero-dark); }
.section { padding-block: 35px; }
.section-title { display: flex; align-items: baseline; gap: 12px; justify-content: space-between; margin-bottom: 18px; }
.section-title a { font-size: .92rem; flex-shrink: 0; }
.text-link { color: var(--blue); font-weight: 730; text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.sport-grid { list-style: none; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin: 0; }
.sport-tile { padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); position: relative; overflow: hidden; background: var(--white); }
.sport-tile h3 { margin-block: 9px 5px; }
.sport-tile a { display: flex; justify-content: space-between; align-items: center; gap: 5px; min-height: 44px; border-top: 1px solid var(--line); font-size: .85rem; text-decoration: none; font-weight: 650; }
.sport-tile a:hover { color: var(--blue); text-decoration: underline; }
.sport-symbol { display: block; position: relative; background: var(--soft-blue); color: var(--blue); width: 38px; height: 38px; border-radius: 8px; }
.sport-symbol::before, .sport-symbol::after { content: ""; position: absolute; inset: 9px; border: 1.5px solid currentColor; border-radius: 50%; }
.sport-symbol::after { inset: 10px 16px; border-radius: 35%; }
.sport-symbol[data-sport="voleybol"]::after { transform: rotate(-42deg); }
.sport-symbol[data-sport="tenis"]::after { border-inline: 0; transform: rotate(-42deg); inset: 15px 9px; }
.sport-symbol[data-sport="yuzme"]::before { inset: 14px 9px 19px; border: 0; border-top: 2px solid currentColor; transform: skewY(-12deg); }
.sport-symbol[data-sport="yuzme"]::after { inset: 21px 9px 12px; border: 0; border-top: 2px solid currentColor; transform: skewY(-12deg); }
.summary-strip { border-block: 1px solid var(--line); background: var(--gray); }
.summary-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); margin-block: 0; }
.summary-grid div { padding: 15px 6px; display: flex; flex-direction: column-reverse; align-items: center; border-right: 1px solid var(--line); text-align: center; }
.summary-grid div:last-child { border: 0; }
.summary-grid dt { font-size: .82rem; color: var(--muted); }
.summary-grid dd { margin: 0; font-size: clamp(1.65rem,4vw,2.6rem); line-height: 1.15; color: var(--navy); font-weight: 820; }
.muted-section { background: var(--gray); }
.empty { padding: 17px 18px; color: var(--muted); border: 1px dashed var(--empty-border); border-radius: var(--radius); background: var(--white); }
.page-intro { padding-block: 23px 34px; background: var(--gray); border-bottom: 1px solid var(--line); }
.page-intro h1 { margin-top: 12px; }
.page-intro p { max-width: 63ch; margin-top: 12px; color: var(--muted); }
.breadcrumb ol { display: flex; gap: 7px; flex-wrap: wrap; margin: 0 0 10px; list-style: none; color: var(--muted); font-size: .88rem; }
.breadcrumb li + li::before { content: "/"; padding-right: 7px; }
.card-grid, .school-grid, .news-grid { list-style: none; padding: 0; margin: 0; display: grid; gap: 11px; }
.card-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
.athlete-card, .school-card, .news-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); height: 100%; }
.athlete-card:focus-within, .school-card:focus-within, .news-card:focus-within { outline: 3px solid var(--focus); outline-offset: 2px; }
.athlete-card a, .school-card a, .news-card a { display: block; height: 100%; text-decoration: none; }
.athlete-card a:hover h3, .school-card a:hover h3, .news-card a:hover h3 { text-decoration: underline; color: var(--blue); }
.media { position: relative; overflow: hidden; background: var(--soft-blue); display: grid; place-items: center; }
.media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.media-portrait { aspect-ratio: 4 / 5; }
.media-portrait::before { content: ""; position: absolute; background: var(--portrait-shape); width: 46%; height: 160%; transform: rotate(31deg); bottom: -15%; right: 0; }
.media-logo { border-radius: 9px; width: 64px; height: 64px; flex: 0 0 64px; }
.media-logo img { object-fit: contain; }
.media-wide { aspect-ratio: 16 / 9; }
.monogram { z-index: 0; font-weight: 820; font-size: clamp(2rem, 7vw, 4.3rem); letter-spacing: -.085em; color: var(--portrait-ink); }
.media-logo .monogram { font-size: 1.24rem; }
.card-body { padding: 10px; }
.card-sport, .card-division { color: var(--muted); font-size: .77rem; }
.card-sport { color: var(--blue); font-weight: 730; }
.card-body h3 { font-size: clamp(.99rem, 2vw, 1.22rem); overflow-wrap: anywhere; margin-block: 5px; }
.card-school { color: var(--navy); font-size: .85rem; }
.card-division { margin-top: 4px; }
.category-links { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; }
.category-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 7px 11px; border: 1px solid var(--line); border-radius: 7px; font-size: .87rem; font-weight: 650; text-decoration: none; }
.category-links a:hover { background: var(--soft-blue); }
.filter-form { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--gray); }
.filter-form label, .admin label { display: grid; gap: 4px; font-size: .86rem; font-weight: 650; align-content: start; }
.filter-search, .filter-buttons { grid-column: 1 / -1; }
.filter-form :is(input,select), .admin :is(input:not([type=checkbox]),textarea,select) { min-height: 44px; min-width: 0; width: 100%; border: 1px solid var(--field-border); border-radius: 6px; color: var(--ink); background: var(--white); padding: 7px 9px; }
.filter-buttons { display: flex; align-items: center; gap: 15px; }
.result-summary { margin-block: 19px 12px; font-weight: 730; }
.pagination { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 24px; align-items: center; }
.pagination span { display: inline-flex; align-items: center; gap: 5px; }
.pagination :is(a,strong) { display: inline-flex; min-height: 44px; min-width: 44px; padding: 7px; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 7px; text-decoration: none; }
.pagination strong { background: var(--navy); color: var(--white); }
.school-grid,.news-grid { grid-template-columns: 1fr; }
.school-card a { display: flex; gap: 13px; padding: 15px; }
.school-card p, .news-card p { color: var(--muted); margin-block: 6px; font-size: .88rem; }
.school-card strong { color: var(--blue); font-size: .86rem; }
.news-card h3 { margin-block: 6px; }
.news-card .card-body { padding: 15px; }
.info-meta { color: var(--muted); font-size: .9rem; }
.detail-area { padding-block: 18px 30px; background: var(--gray); border-bottom: 1px solid var(--line); }
.profile-hero { display: grid; grid-template-columns: minmax(0,1fr); align-items: start; gap: 20px; }
.profile-hero .media-portrait { inline-size: min(45vw,180px); border-radius: var(--radius); }
.profile-hero h1 { margin-block: 5px 8px; }
.profile-tag { display: inline-block; color: var(--blue); font-weight: 730; font-size: .9rem; }
.profile-facts { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; margin-block: 17px; }
.profile-facts dt { font-size: .78rem; color: var(--muted); }
.profile-facts dd { margin: 0; overflow-wrap: anywhere; font-weight: 650; }
.profile-tabs { display: flex; flex-wrap: wrap; gap: 8px 18px; border-bottom: 1px solid var(--line); }
.profile-tabs a { min-height: 44px; display: inline-flex; align-items: center; font-weight: 700; text-decoration: none; }
.profile-tabs a:hover { color: var(--blue); text-decoration: underline; }
.profile-section { padding-block: 22px; border-bottom: 1px solid var(--line); scroll-margin-top: 12px; }
.profile-section h2, .profile-section h3 { margin-bottom: 12px; }
.profile-section h3:not(:first-child) { margin-top: 16px; }
.profile-section ul { padding-left: 20px; }
.profile-section li + li { margin-top: 8px; }
.stats-boxes { list-style: none; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; padding: 0 !important; margin: 0; }
.stats-boxes li { margin: 0 !important; background: var(--gray); border-radius: 8px; padding: 11px; }
.stats-boxes li strong { display: block; font-size: 1.35rem; }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; }
.table-scroll table { width: 100%; border-collapse: collapse; font-size: .89rem; }
.table-scroll caption { padding: 8px; text-align: left; font-weight: 700; }
.table-scroll :is(th,td) { padding: 10px; text-align: left; border-top: 1px solid var(--line); }
.table-scroll thead { background: var(--gray); }
.week-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; list-style: none; margin: 0; }
.week-grid li { border: 1px solid var(--line); border-radius: var(--radius); padding: 13px; background: var(--white); }
.week-grid strong { display: block; font-size: 1.25rem; }
.article-body { max-width: 72ch; }
.article-body p + p { margin-top: 14px; }
.site-footer { background: var(--navy); color: var(--white); padding-block: 30px 16px; margin-top: 12px; }
.footer-grid { display: grid; gap: 17px; grid-template-columns: repeat(2,minmax(0,1fr)); }
.footer-grid > div:first-child { grid-column: 1/-1; }
.footer-grid > * { overflow-wrap: anywhere; }
.footer-grid p { color: var(--footer-muted); font-size: .9rem; margin-top: 8px; }
.footer-grid nav > a, .footer-grid nav div a, .footer-contact a { display: flex; align-items: center; min-height: 44px; font-size: .85rem; text-decoration: none; color: var(--footer-link); }
.footer-grid a:hover { text-decoration: underline; }
.footer-end { color: var(--footer-muted); border-top: 1px solid var(--nav-border); padding-top: 13px; margin-top: 16px; font-size: .82rem; }
.admin { padding-block: 25px; }
.admin h1, .admin h2 { margin-bottom: 12px; }
.admin-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-block: 17px; list-style: none; }
.admin-nav a { display: inline-flex; min-height: 44px; padding: 7px 10px; align-items: center; border: 1px solid var(--line); border-radius: 6px; text-decoration: none; }
.admin-form { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; max-width: 790px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--gray); }
.admin-form .full, .admin-form > button, .admin-form > p { grid-column: 1 / -1; }
.admin-form textarea { min-height: 85px; resize: vertical; }
.admin-form .check { display: flex; gap: 8px; min-height: 44px; align-items: center; }
.admin-form .check input { width: 20px; height: 20px; }
.admin .status-error { color: var(--error-ink); background: var(--error-bg); border: 1px solid var(--error-border); border-radius: 8px; padding: 9px; margin-block: 10px; }
.admin .status-ok { color: var(--success-ink); background: var(--success-bg); border-radius: 8px; padding: 9px; margin-block: 10px; }
.admin .section-title { flex-wrap: wrap; }
@media (min-width: 680px) {
  .wrap { width: min(var(--wrap), calc(100% - 56px)); }
  .hero-art { opacity: .9; }
  .section { padding-block: 48px; }
  .sport-grid, .week-grid { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; }
  .sport-tile { padding: 17px; }
  .card-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
  .card-body { padding: 14px; }
  .filter-form { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .filter-search { grid-column: span 2; }
  .school-grid, .news-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
  .profile-hero { grid-template-columns: 200px minmax(0,1fr); }
  .profile-hero .media-portrait { inline-size: 100%; }
  .profile-facts { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .stats-boxes { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .footer-grid { grid-template-columns: 1.2fr .7fr 1.3fr .8fr; }
  .footer-grid > div:first-child { grid-column: auto; }
}
@media (min-width: 950px) {
  .desktop-nav { display: block; }
  .mobile-nav { display: none; }
  .header-search { margin-left: 12px; }
  .header-search span:last-child { display: inline; }
  .card-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .school-grid, .news-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .filter-form { grid-template-columns: repeat(5,minmax(0,1fr)); }
  .footer-categories { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 360px) {
  .wrap { width: calc(100% - 24px); }
  .header-inner { gap: 8px; }
  .section-title { flex-wrap: wrap; }
  .admin-form { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; } }

.card-school { display: flex; align-items: center; gap: 6px; }
.card-school img { object-fit: contain; flex-shrink: 0; }

.directory-header .brand { min-height: 44px; }
.directory-header .brand img { display: block; width: 84px; height: auto; }
.directory-header .mega-all > a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.directory-header .mega-all > a:hover, .directory-header a[aria-current="page"] { text-decoration: underline; }
.directory-header .mobile-nav nav > details { border-block-end: 0; }
.directory-header .mobile-nav nav > details > :is(.mega-all, .mega-grid) { margin-inline-start: 12px; }

@media (min-width: 950px) {
  .directory-header .brand img { width: 104px; }
}

@media (min-width: 950px) and (hover: hover) {
  .directory-header .header-inner { position: relative; }
  .directory-header .desktop-nav { align-self: stretch; }
  .directory-header .desktop-nav > ul { height: 100%; }
  .directory-header .desktop-nav > ul > li { display: flex; position: static; }
  .directory-header .desktop-nav > ul > li > a { white-space: nowrap; }
  .directory-header .mega { inset-inline: auto 0; width: min(100%, 600px); border-top: 1px solid var(--nav-border); }
  .directory-header .has-mega:focus-within .mega { z-index: 1; }
  .directory-header .has-mega:hover .mega { z-index: 2; }
}

@media (min-width: 950px) and (hover: none) {
  .directory-header .desktop-nav { display: none; }
  .directory-header .mobile-nav { display: block; }
  .directory-header .header-search { margin-left: auto; }
}

[hidden] { display: none !important; }
#arama { margin-top: 22px; }
.performance-card { list-style: none; border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.performance-card .profile-facts { grid-template-columns: repeat(3,minmax(0,1fr)); }
