:root {
  --wps-navy: #1f3a6f;
  --wps-blue: #004c97;
  --wps-cyan: #00a9e0;
  --wps-sky: #39afe0;
  --wps-pale: #f8fbfe;
  --wps-ice: #e0f2fe;
  --wps-ink: #1f3a6f;
  --wps-muted: #475569;
  --wps-line: #c7dced;
  --wps-white: #ffffff;
  --wps-light: url("/theme/wps-light.jpg");
  --wps-dark: url("/theme/wps-dark.jpg");
  --blue: var(--wps-blue);
  --navy: var(--wps-navy);
  --ink: var(--wps-ink);
  --grey: var(--wps-muted);
  --mist: var(--wps-pale);
  --aqua: var(--wps-cyan);
  --lime: var(--wps-cyan);
  --paper: var(--wps-white);
  --red: #b42318;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 108px;
}

body {
  margin: 0;
  background: #e7f0f8;
  color: var(--wps-ink);
  font-family: Poppins, Arial, Helvetica, sans-serif;
  font-size: 15px;
  line-height: 1.62;
}

a {
  color: var(--wps-blue);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--wps-cyan);
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--wps-cyan);
  outline-offset: 3px;
}

.rail {
  position: sticky;
  inset: auto;
  top: 0;
  z-index: 50;
  width: 100%;
  min-height: 82px;
  padding: 12px max(22px, calc((100vw - 1280px) / 2));
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  overflow: visible;
  color: var(--wps-white);
  background: var(--wps-navy);
  border-bottom: 5px solid var(--wps-cyan);
  box-shadow: 0 8px 28px rgba(11, 31, 65, 0.22);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
  color: var(--wps-white);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 0.95;
}

.brand::before {
  display: none;
}

.brand span {
  display: block;
}

.brand small {
  display: block;
  margin-top: 7px;
  color: var(--wps-cyan);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.org-logo {
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  box-shadow: none;
}

.rail nav {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 2px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--wps-cyan) transparent;
}

.rail nav a {
  flex: 0 0 auto;
  padding: 11px 12px 9px;
  color: #e8f5fc;
  border: 0;
  border-bottom: 3px solid transparent;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
}

.rail nav a:hover {
  color: var(--wps-white);
  border-color: var(--wps-cyan);
  background: rgba(255, 255, 255, 0.06);
}

.print {
  width: auto;
  margin: 0;
  padding: 10px 15px;
  border: 1px solid var(--wps-cyan);
  border-radius: 3px;
  background: var(--wps-cyan);
  color: var(--wps-navy);
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.print:hover {
  background: var(--wps-white);
  border-color: var(--wps-white);
}

.doc {
  margin: 0;
  padding: 28px 0 72px;
  background:
    linear-gradient(90deg, rgba(31, 58, 111, 0.035) 1px, transparent 1px),
    linear-gradient(rgba(31, 58, 111, 0.035) 1px, transparent 1px),
    #e7f0f8;
  background-size: 32px 32px;
}

.page,
.chapter-banner {
  width: min(1280px, calc(100% - 40px));
  margin: 0 auto 28px;
  box-shadow: 0 18px 50px rgba(20, 50, 95, 0.14);
}

.page {
  position: relative;
  min-height: 720px;
  padding: 64px 68px 104px;
  overflow: hidden;
  color: var(--wps-ink);
  background-color: var(--wps-pale);
  background-image: var(--wps-light);
  background-position: center bottom;
  background-repeat: no-repeat;
  background-size: 100% auto;
  border: 0;
  border-radius: 0;
  backdrop-filter: none;
}

.page::before,
.page::after {
  display: none;
}

.page > * {
  position: relative;
  z-index: 1;
}

.section-no {
  margin: 0 0 8px 20px;
  color: var(--wps-cyan);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.page h2 {
  margin: 0 0 30px;
  color: var(--wps-blue);
  font-size: clamp(36px, 4.6vw, 58px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.02;
  text-transform: uppercase;
}

.page h2::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 1.08em;
  margin-right: 12px;
  background: var(--wps-cyan);
  vertical-align: -0.1em;
}

.page h3 {
  margin: 32px 0 12px;
  color: var(--wps-blue);
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -0.025em;
}

.page h4 {
  margin: 26px 0 10px;
  color: var(--wps-blue);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.page p,
.page li,
.page td {
  color: var(--wps-ink);
}

.page p {
  max-width: 1040px;
}

.lead {
  max-width: 920px;
  color: var(--wps-ink);
  font-size: 21px;
  font-weight: 500;
  line-height: 1.5;
}

.kicker,
.eyebrow,
.smallcaps {
  color: var(--wps-cyan);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.cover {
  min-height: min(840px, calc(100vh - 118px));
  padding: 72px 64px 54px;
  display: grid;
  grid-template-rows: 1fr auto;
  align-items: center;
  isolation: isolate;
  overflow: hidden;
  color: var(--wps-white);
  background: #10264f;
}

.cover::before {
  content: "";
  position: absolute;
  inset: 0 0 auto auto;
  z-index: -1;
  width: 22%;
  height: 16px;
  display: block;
  background: var(--wps-cyan);
}

.cover::after {
  display: none;
}

.cover-copy {
  width: min(100%, 1040px);
  padding-left: 30px;
  border-left: 12px solid var(--wps-cyan);
  position: relative;
  z-index: 1;
}

.cover-edition {
  width: max-content;
  margin-bottom: 24px;
  padding: 9px 14px 8px;
  color: #10264f;
  background: var(--wps-cyan);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.cover .kicker {
  max-width: 820px;
  margin-bottom: 30px;
  color: var(--wps-cyan);
  font-size: clamp(12px, 1.4vw, 16px);
  line-height: 1.45;
}

.cover h1 {
  max-width: 1040px;
  margin: 0;
  color: var(--wps-white);
  font-size: clamp(52px, 6.7vw, 92px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.cover h1 span,
.cover h1 strong {
  display: block;
}

.cover h1 strong {
  margin-top: 18px;
  color: var(--wps-cyan);
  font-size: 0.72em;
  font-weight: 800;
  letter-spacing: -0.025em;
}

.cover .meta {
  position: relative;
  z-index: 1;
  margin-top: 54px;
  padding-top: 18px;
  display: flex;
  gap: 10px 34px;
  flex-wrap: wrap;
  color: var(--wps-white);
  font-size: 13px;
  border-top: 1px solid rgba(255, 255, 255, 0.34);
}

.cover .meta b,
.cover .meta span {
  padding: 0;
  border: 0;
}

.chapter-banner {
  position: relative;
  min-height: 420px;
  padding: 72px 92px;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--wps-white);
  background: var(--wps-navy) var(--wps-dark) center center / cover no-repeat;
}

.chapter-banner h2 {
  width: min(720px, 67%);
  margin: 0;
  color: var(--wps-white);
  font-size: clamp(42px, 5.8vw, 70px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.05;
}

.chapter-banner h2::after {
  content: "";
  display: block;
  width: min(380px, 72%);
  height: 10px;
  margin-top: 18px;
  background: var(--wps-cyan);
}

.grid2,
.grid3,
.athlete-grid,
.status-grid,
.quick-links,
.qr-row,
.profile-facts {
  gap: 16px;
}

.card,
.athlete,
.status-card,
.quick-link,
.qr-card,
.route,
.turkiye-profile,
.cue,
.note,
.stat {
  border-radius: 4px;
  box-shadow: none;
}

.card,
.athlete,
.status-card,
.quick-link,
.route,
.turkiye-profile,
.cue,
.note {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid #dce9f3;
  border-left: 6px solid var(--wps-cyan);
}

.card {
  padding: 22px 24px;
  border-top: 1px solid #dce9f3;
}

.card:nth-child(n) {
  box-shadow: none;
}

.card strong,
.status-card strong {
  color: var(--wps-blue);
}

.quick-link {
  padding: 16px 18px;
  color: var(--wps-blue);
}

.quick-link span,
.status-card b,
.athlete .meta-line {
  color: var(--wps-cyan);
}

.status-card {
  padding: 19px 21px;
}

.stat,
.qr-card {
  color: var(--wps-white);
  background: var(--wps-navy);
  border: 0;
  border-top: 7px solid var(--wps-cyan);
}

.stat b,
.qr-card b {
  color: var(--wps-cyan);
}

.route {
  padding: 18px 20px;
  margin: 12px 0;
}

.note {
  padding: 17px 19px;
}

.tag {
  margin: 3px;
  padding: 5px 10px;
  color: var(--wps-white);
  background: var(--wps-blue);
  border: 0;
  border-radius: 2px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.timeline {
  margin-left: 10px;
  padding-left: 28px;
  border-left: 3px solid var(--wps-cyan);
}

.timeline p::before {
  left: -36px;
  width: 12px;
  height: 12px;
  background: var(--wps-blue);
  border: 3px solid var(--wps-white);
  box-shadow: 0 0 0 2px var(--wps-cyan);
}

.toc {
  columns: 2;
  column-gap: 54px;
}

.toc a {
  margin: 0 0 10px;
  padding: 15px 16px;
  align-items: center;
  color: var(--wps-blue);
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid #dce9f3;
  border-left: 6px solid var(--wps-cyan);
  text-decoration: none;
  break-inside: avoid;
}

.toc a:hover {
  color: var(--wps-blue);
  background: var(--wps-ice);
}

.toc span {
  color: var(--wps-cyan);
  font-size: 18px;
  font-weight: 800;
}

table {
  width: 100%;
  margin: 16px 0 30px;
  overflow: hidden;
  border-collapse: collapse;
  border: 1px solid #d7e6f1;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.95);
  font-size: 13px;
}

th {
  padding: 13px 12px;
  color: var(--wps-white);
  background: var(--wps-blue);
  border-bottom: 5px solid var(--wps-cyan);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-align: left;
  text-transform: uppercase;
}

td {
  padding: 12px;
  border-bottom: 1px solid #d7e6f1;
  vertical-align: top;
}

tr:nth-child(even) td {
  background: #f1f7fc;
}

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

.athlete {
  padding: 24px;
}

.athlete h3 {
  margin: 0 0 5px;
}

.athlete .bio {
  color: var(--wps-ink);
}

.facts p {
  border-color: var(--wps-line);
}

.turkiye-profile {
  grid-template-columns: 1fr;
  gap: 22px;
  padding: 22px;
}

.accreditation-map {
  margin: 22px 0 30px;
}

.accreditation-map figcaption {
  margin-top: 9px;
  color: var(--wps-muted);
  font-size: 13px;
}

.athlete-avatar {
  width: 150px;
  height: 176px;
  object-fit: cover;
  background: var(--wps-navy);
  border: 4px solid var(--wps-cyan);
  border-radius: 0;
}

.profile-facts p {
  background: var(--wps-pale);
  border-radius: 0;
}

.programme {
  max-height: 620px;
  padding: 20px 22px;
  overflow: auto;
  color: #eaf8ff;
  background: var(--wps-navy);
  border-left: 7px solid var(--wps-cyan);
  font: 11px/1.6 ui-monospace, SFMono-Regular, Consolas, monospace;
  white-space: pre-wrap;
}

.map {
  width: 100%;
  margin: 20px 0;
  display: block;
  border: 5px solid var(--wps-white);
  border-radius: 0;
  box-shadow: 0 12px 34px rgba(20, 50, 95, 0.16);
}

.placeholder {
  color: var(--wps-muted);
  background: rgba(255, 255, 255, 0.85);
  border: 2px dashed var(--wps-cyan);
  border-radius: 0;
}

.footer {
  position: absolute;
  right: 46px;
  bottom: 28px;
  left: 68px;
  padding-top: 10px;
  display: flex;
  justify-content: space-between;
  color: var(--wps-navy);
  border-top: 2px solid var(--wps-cyan);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.dark {
  color: var(--wps-white);
  background: var(--wps-navy) var(--wps-dark) center center / cover no-repeat;
}

.dark h2,
.dark h3,
.dark p,
.dark .footer {
  color: var(--wps-white);
}

.dark .footer {
  border-color: var(--wps-cyan);
}

.final-logo {
  width: 180px;
  height: 180px;
  margin-bottom: 36px;
  border: 2px solid var(--wps-white);
  border-radius: 50%;
  box-shadow: none;
}

@media (max-width: 980px) {
  html {
    scroll-padding-top: 138px;
  }

  .rail {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px 16px;
    padding: 10px 16px 0;
  }

  .rail nav {
    grid-column: 1 / -1;
    width: calc(100% + 32px);
    margin-left: -16px;
    padding: 0 12px 4px;
  }

  .rail nav a {
    padding: 8px 10px;
  }

  .page {
    padding: 56px 40px 92px;
  }

  .footer {
    left: 40px;
  }
}

@media (max-width: 720px) {
  html {
    scroll-padding-top: 126px;
  }

  body {
    font-size: 14px;
  }

  .rail {
    min-height: 0;
  }

  .brand {
    font-size: 16px;
  }

  .brand small {
    display: none;
  }

  .org-logo {
    width: 42px;
    height: 42px;
  }

  .print {
    padding: 8px 10px;
  }

  .doc {
    padding: 0;
    background: var(--wps-pale);
  }

  .page,
  .chapter-banner {
    width: 100%;
    margin: 0;
    box-shadow: none;
  }

  .page {
    min-height: 0;
    padding: 46px 22px 48px;
    border-bottom: 8px solid #e7f0f8;
    background-size: auto 360px;
  }

  .section-no {
    margin-left: 15px;
    font-size: 10px;
  }

  .page h2 {
    margin-bottom: 24px;
    font-size: clamp(32px, 10vw, 44px);
  }

  .page h2::before {
    width: 7px;
    margin-right: 8px;
  }

  .page h3 {
    font-size: 21px;
  }

  .cover {
    min-height: 720px;
    padding: 42px 24px 38px;
  }

  .cover::before {
    width: 38%;
    height: 11px;
  }

  .cover-copy {
    width: 100%;
    padding-left: 18px;
    border-left-width: 8px;
  }

  .cover h1 {
    max-width: 560px;
    font-size: clamp(38px, 11vw, 56px);
  }

  .cover h1 strong {
    margin-top: 12px;
  }

  .cover .meta {
    margin-top: 34px;
    gap: 8px 16px;
    font-size: 11px;
  }

  .chapter-banner {
    min-height: 330px;
    padding: 54px 28px;
    background-position: 66% center;
  }

  .chapter-banner h2 {
    width: 72%;
    font-size: clamp(34px, 11vw, 50px);
  }

  .grid2,
  .grid3,
  .athlete-grid,
  .status-grid,
  .quick-links,
  .qr-row,
  .profile-facts,
  .turkiye-profile {
    grid-template-columns: 1fr;
  }

  .toc {
    columns: 1;
  }

  .athlete-avatar {
    width: 100%;
    height: 290px;
  }

  table {
    display: block;
    overflow-x: auto;
  }

  .footer {
    position: static;
    margin-top: 38px;
    padding-top: 9px;
    display: flex;
  }
}

@media print {
  @page {
    size: A4;
    margin: 0;
  }

  .rail {
    display: none;
  }

  .doc {
    padding: 0;
    background: transparent;
  }

  .page {
    width: 210mm;
    min-height: 297mm;
    margin: 0;
    padding: 18mm 16mm 20mm;
    box-shadow: none;
    page-break-after: always;
    background-size: cover;
  }

  .cover {
    min-height: 297mm;
    padding: 18mm 14mm;
  }

  .chapter-banner {
    width: 210mm;
    min-height: 120mm;
    margin: 0;
    padding: 20mm 16mm;
    box-shadow: none;
    page-break-after: always;
  }

  .footer {
    right: 16mm;
    bottom: 9mm;
    left: 16mm;
  }

  .card,
  .athlete,
  .turkiye-profile,
  table {
    break-inside: avoid;
  }
}
