/* =============================================================================
   TurkSim — one page site
   -----------------------------------------------------------------------------
   1.  Design tokens & base
   2.  Buttons and small shared pieces
   3.  Navigation
   4.  Hero
   5.  Sections & cards
   6.  Active flights table
   7.  News
   8.  About & facts
   9.  Rules & call-to-action
   10. Roster
   11. Footer & back to top
   12. Mobile table layout
   ========================================================================== */

/* 1. Design tokens & base
   ========================================================================== */
:root {
  --ts-red: #b3121b;
  --ts-red-dark: #8e0c14;
  --ts-red-soft: #fbecec;
  --ts-ink: #161a20;
  --ts-ink-soft: #3c434b;
  --ts-muted: #5c6570;
  --ts-paper: #f5f2ec;
  --ts-paper-deep: #ece6dc;
  --ts-card: #ffffff;
  --ts-line: rgba(20, 24, 30, 0.1);
  --ts-radius: 1.1rem;
  --ts-shadow: 0 14px 34px rgba(20, 24, 30, 0.07);
  --ts-shadow-lift: 0 22px 44px rgba(20, 24, 30, 0.12);
}

html {
  scroll-behavior: smooth;
}

[hidden] {
  display: none !important;
}

body {
  position: relative;
  margin: 0;
  font-family: "Lato", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ts-ink);
  background-color: var(--ts-paper);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--ts-ink);
}

h2 {
  font-size: clamp(2rem, 3.6vw, 2.9rem);
  margin-bottom: 0.9rem;
  text-wrap: balance;
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--ts-red);
  text-decoration: underline;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}

a:hover {
  color: var(--ts-red-dark);
}

strong {
  font-weight: 900;
}

::selection {
  background: var(--ts-red);
  color: #fff;
}

:focus-visible {
  outline: 3px solid rgba(179, 18, 27, 0.55);
  outline-offset: 3px;
  border-radius: 0.3rem;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 1rem;
  z-index: 2000;
  padding: 0.7rem 1.1rem;
  border-radius: 0 0 0.6rem 0.6rem;
  background: var(--ts-ink);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 0;
  color: #fff;
}

/* 2. Buttons and small shared pieces
   ========================================================================== */
.btn {
  font-weight: 800;
  letter-spacing: 0.01em;
  border-radius: 0.65rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.btn-lg {
  padding: 0.8rem 1.4rem;
  font-size: 1rem;
}

.btn-ts {
  background: var(--ts-red);
  border: 1px solid var(--ts-red);
  color: #fff;
  box-shadow: 0 10px 22px rgba(179, 18, 27, 0.28);
}

.btn-ts:hover,
.btn-ts:focus {
  background: var(--ts-red-dark);
  border-color: var(--ts-red-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(142, 12, 20, 0.32);
}

.btn-ghost-light {
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(10, 13, 18, 0.35);
  color: #fff;
  backdrop-filter: blur(6px);
}

.btn-ghost-light:hover,
.btn-ghost-light:focus {
  background: #fff;
  border-color: #fff;
  color: var(--ts-ink);
}

.btn-outline-ts {
  border: 1.5px solid rgba(20, 24, 30, 0.25);
  background: transparent;
  color: var(--ts-ink);
}

.btn-outline-ts:hover,
.btn-outline-ts:focus {
  background: var(--ts-ink);
  border-color: var(--ts-ink);
  color: #fff;
}

.btn-nav {
  padding: 0.5rem 0.95rem;
  font-size: 0.85rem;
  border-radius: 0.55rem;
}

.btn-nav-ghost {
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: transparent;
  color: #fff;
}

.btn-nav-ghost:hover,
.btn-nav-ghost:focus {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.6);
  color: #fff;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 800;
  color: var(--ts-red);
  text-decoration: none;
}

.link-arrow:hover {
  color: var(--ts-red-dark);
  gap: 0.6rem;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.85rem;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ts-muted);
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--ts-red);
}

.eyebrow .num {
  color: var(--ts-red);
  font-variant-numeric: tabular-nums;
}

.live-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem 0.7rem;
  border: 1px solid #f2cdd0;
  border-radius: 999px;
  background: var(--ts-red-soft);
  color: #9d0f17;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  white-space: nowrap;
}

.live-chip .dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: #c8102e;
  animation: ts-pulse 2s ease-out infinite;
}

@keyframes ts-pulse {
  0% { box-shadow: 0 0 0 0 rgba(200, 16, 46, 0.5); }
  70% { box-shadow: 0 0 0 7px rgba(200, 16, 46, 0); }
  100% { box-shadow: 0 0 0 0 rgba(200, 16, 46, 0); }
}

/* 3. Navigation
   ========================================================================== */
.site-nav {
  padding-block: 1rem;
  background: transparent;
  transition: background-color 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
}

.site-nav.is-scrolled {
  padding-block: 0.5rem;
  background: rgba(14, 17, 22, 0.94);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(14px);
}

.site-nav .navbar-brand {
  padding: 0;
}

.site-nav .navbar-brand img {
  width: auto;
  height: 36px;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.45));
}

.site-nav .nav-link {
  position: relative;
  padding: 0.55rem 0.8rem !important;
  border-radius: 0.5rem;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.88rem;
  font-weight: 800;
}

.site-nav .nav-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.site-nav .nav-link.active {
  color: #fff;
}

.site-nav .nav-link.active::after {
  content: "";
  position: absolute;
  left: 0.8rem;
  right: 0.8rem;
  bottom: 0.22rem;
  height: 2px;
  border-radius: 2px;
  background: #ff5d66;
}

.site-nav .navbar-toggler {
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 0.5rem;
  padding: 0.45rem 0.6rem;
}

.site-nav .navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.2);
}

@media (max-width: 991.98px) {
  .site-nav .navbar-collapse {
    margin-top: 0.85rem;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1rem;
    background: #12161c;
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.35);
  }

  .site-nav .nav-link {
    padding: 0.7rem 0.75rem !important;
  }

  .site-nav .nav-link.active::after {
    left: 0.75rem;
    right: auto;
    width: 22px;
    bottom: 0.35rem;
  }

  .site-nav .nav-cta {
    margin-top: 0.9rem;
    padding-top: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .site-nav .nav-cta .btn {
    flex: 1 1 100%;
  }
}

/* 4. Hero
   ========================================================================== */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: 8.5rem 0 3.5rem;
  overflow: hidden;
  color: #fff;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  transform: scale(1.03);
}

.hero-bg {
  position: absolute;
  inset: 0;
  opacity: 0;
  background-position: center;
  background-size: cover;
  transition: opacity 1.1s ease;
}

.hero-bg.is-active {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(8, 10, 14, 0.93) 0%, rgba(8, 10, 14, 0.74) 46%, rgba(8, 10, 14, 0.34) 100%),
    linear-gradient(180deg, rgba(8, 10, 14, 0.65) 0%, rgba(8, 10, 14, 0.2) 38%, rgba(10, 12, 16, 0.92) 100%);
}

@media (prefers-reduced-motion: no-preference) {
  .hero-media {
    animation: hero-zoom 26s ease-out forwards;
  }
}

@keyframes hero-zoom {
  from { transform: scale(1.03); }
  to { transform: scale(1.11); }
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1.15rem;
  font-size: 0.73rem;
  font-weight: 900;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
}

.hero-eyebrow-line {
  display: inline-block;
  width: 34px;
  height: 2px;
  background: #ff5d66;
}

.hero h1 {
  margin-bottom: 1.35rem;
  color: #fff;
  font-size: clamp(2.9rem, 6.4vw, 5.2rem);
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.hero h1 .accent {
  color: #ff6b73;
}

.hero-lead {
  max-width: 46ch;
  margin-bottom: 2rem;
  font-size: clamp(1rem, 1.2vw, 1.15rem);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.82);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 1.6rem;
}

.hero-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.35rem;
  margin: 0;
  font-size: 0.82rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.72);
}

.hero-note > span:not(.live-chip) {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.hero-note i {
  color: rgba(255, 255, 255, 0.9);
}

.hero-note .live-chip {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.hero-badge {
  display: flex;
  justify-content: flex-end;
}

.hero-badge img {
  width: min(100%, 250px);
  height: auto;
  border-radius: 50%;
  filter: drop-shadow(0 26px 44px rgba(0, 0, 0, 0.5));
  transform: rotate(-2.5deg);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 2.75rem;
}

.stat-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 5.4rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 0.9rem;
  background: rgba(10, 13, 18, 0.55);
  backdrop-filter: blur(10px);
}

.stat-value {
  font-size: clamp(1.45rem, 2.1vw, 1.85rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.stat-label {
  margin-top: 0.3rem;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
}

@media (min-width: 576px) {
  .hero-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 992px) {
  .hero-stats {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    margin-top: 3.5rem;
  }
}

@media (max-width: 767.98px) {
  .hero {
    min-height: 0;
    padding: 7.5rem 0 3rem;
  }

  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(8, 10, 14, 0.8) 0%, rgba(8, 10, 14, 0.6) 40%, rgba(10, 12, 16, 0.95) 100%);
  }

  .hero h1 {
    font-size: clamp(2.6rem, 11vw, 3.6rem);
  }

  .hero-note {
    gap: 0.6rem 1rem;
  }
}

/* 5. Sections & cards
   ========================================================================== */
.section {
  padding: clamp(3.5rem, 6vw, 6rem) 0;
  scroll-margin-top: 5rem;
}

.section-news {
  border-block: 1px solid var(--ts-line);
  background: #fffdfa;
}

.section-rules {
  background: var(--ts-paper-deep);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: clamp(1.75rem, 3vw, 2.75rem);
}

.section-head-main {
  max-width: 62ch;
}

.section-lead {
  max-width: 58ch;
  margin-bottom: 0;
  color: var(--ts-muted);
  font-size: 1rem;
}

.section-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.45rem;
  margin-left: auto;
}

.meta-note {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ts-muted);
}

@media (max-width: 767.98px) {
  .section-meta {
    align-items: flex-start;
    margin-left: 0;
  }
}

.ts-card {
  overflow: hidden;
  border: 1px solid var(--ts-line);
  border-radius: var(--ts-radius);
  background: var(--ts-card);
  box-shadow: var(--ts-shadow);
}

.table-card-head,
.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.35rem;
  border-bottom: 1px solid var(--ts-line);
}

.table-card-head h3,
.card-head h3 {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: -0.01em;
}

.table-card-head h3 i,
.card-head h3 i {
  color: var(--ts-red);
}

.table-card-head p {
  margin: 0.25rem 0 0;
  font-size: 0.8rem;
  color: var(--ts-muted);
}

.count-badge {
  flex: 0 0 auto;
  padding: 0.32rem 0.7rem;
  border: 1px solid #e7e0d4;
  border-radius: 999px;
  background: #f7f3ec;
  color: #5b6470;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  white-space: nowrap;
}

.empty-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(2.5rem, 6vw, 4rem) 1.5rem;
  border: 1px dashed rgba(20, 24, 30, 0.2);
  border-radius: var(--ts-radius);
  background: rgba(255, 255, 255, 0.55);
  text-align: center;
}

.empty-card > i {
  margin-bottom: 1rem;
  font-size: 2.1rem;
  color: var(--ts-red);
}

.empty-card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
}

.empty-card p {
  max-width: 46ch;
  margin-bottom: 1.25rem;
  color: var(--ts-muted);
}

.empty-card--compact {
  padding: 2.5rem 1.5rem;
}

/* 6. Active flights table
   ========================================================================== */
.ts-table {
  --bs-table-bg: transparent;
  --bs-table-hover-bg: transparent;
  margin: 0;
  color: var(--ts-ink);
  font-size: 0.9rem;
}

.ts-table thead th {
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--ts-line);
  background: #faf7f2;
  color: var(--ts-muted);
  font-size: 0.67rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.ts-table tbody td {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid rgba(20, 24, 30, 0.06);
  vertical-align: middle;
}

.ts-table tbody tr:last-child td {
  border-bottom: 0;
}

.ts-table tbody tr:hover {
  background: #fdfbf7;
}

.flight-number {
  display: block;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.flight-sub {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--ts-muted);
  letter-spacing: 0.06em;
}

.route {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 900;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.route-arrow {
  color: var(--ts-red);
  font-size: 0.8rem;
}

.route-names {
  max-width: 17rem;
  margin: 0.15rem 0 0;
  overflow: hidden;
  color: var(--ts-muted);
  font-size: 0.72rem;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.aircraft {
  font-size: 0.85rem;
  white-space: nowrap;
}

.distance {
  font-size: 0.84rem;
  font-weight: 700;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.distance-sep {
  color: var(--ts-muted);
  font-weight: 400;
  padding: 0 0.1rem;
}

.distance-unit {
  margin-left: 0.1rem;
  color: var(--ts-muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.progress-wrap {
  min-width: 7.5rem;
}

.progress-wrap .progress {
  height: 6px;
  border-radius: 999px;
  background: #ece7df;
}

.progress-wrap .progress-bar {
  border-radius: 999px;
  background: linear-gradient(90deg, #d21f2b, #8e0c14);
}

.progress-text {
  display: block;
  margin-top: 0.28rem;
  color: var(--ts-muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.status-pill {
  display: inline-block;
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
  background: #eef6f0;
  color: #17603a;
  font-size: 0.69rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.net-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.24rem 0.6rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.69rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.net-badge::before {
  content: "";
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: currentColor;
}

.net-ivao {
  border-color: #cfe0f8;
  background: #eaf2fd;
  color: #0b4f9c;
}

.net-vatsim {
  border-color: #cbe9d8;
  background: #eaf7f0;
  color: #0f6b3d;
}

.net-offline {
  border-color: #e0ded8;
  background: #f0efec;
  color: #5b6470;
}

.pilot-name {
  display: block;
  font-weight: 800;
  font-size: 0.88rem;
}

.pilot-link {
  display: inline-block;
  margin-top: 0.1rem;
  font-size: 0.69rem;
  font-weight: 700;
  color: var(--ts-muted);
  text-decoration: none;
}

.pilot-link:hover {
  color: var(--ts-red);
  text-decoration: underline;
}

/* 6b. Flight operations (tours + latest reports)
   ========================================================================== */
.section-operations {
  background: #fbf8f2;
}

.ops-block + .ops-block {
  margin-top: clamp(2.25rem, 4vw, 3rem);
}

.block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.block-head h3 {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  font-size: 1.2rem;
  letter-spacing: -0.015em;
}

.block-head h3 i {
  color: var(--ts-red);
}

.tour-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.1rem;
}

.tour-card {
  padding: 1.35rem 1.4rem;
  border: 1px solid var(--ts-line);
  border-radius: 1rem;
  background: #fff;
  box-shadow: var(--ts-shadow);
}

.tour-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.95rem;
}

.tour-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.55rem;
  border: 1px solid #f2cdd0;
  border-radius: 999px;
  background: var(--ts-red-soft);
  color: #9d0f17;
  font-size: 0.63rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.tour-airline {
  color: var(--ts-muted);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tour-card h3 {
  margin-bottom: 1rem;
  font-size: 1.12rem;
  line-height: 1.3;
}

.tour-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem 1rem;
  margin: 0;
  padding-top: 0.95rem;
  border-top: 1px solid var(--ts-line);
}

.tour-meta div:last-child {
  grid-column: 1 / -1;
}

.tour-meta dt {
  margin-bottom: 0.1rem;
  color: var(--ts-muted);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.tour-meta dd {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 900;
  line-height: 1.3;
}

.empty-inline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.35rem;
  padding: 1.15rem 1.35rem;
  border: 1px dashed rgba(20, 24, 30, 0.2);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.6);
}

.empty-inline > i {
  flex: 0 0 auto;
  color: var(--ts-red);
  font-size: 1.5rem;
}

.empty-inline-copy {
  flex: 1 1 18rem;
}

.empty-inline-copy h3 {
  margin: 0 0 0.15rem;
  font-size: 1rem;
}

.empty-inline-copy p {
  margin: 0;
  color: var(--ts-muted);
  font-size: 0.88rem;
}

.empty-inline .btn {
  flex: 0 0 auto;
}

.report-date {
  font-size: 0.82rem;
}

.report-tz {
  margin-left: 0.28rem;
  color: var(--ts-muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

/* 7. News
   ========================================================================== */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.news-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 1.6rem 1.6rem 1.35rem;
  border: 1px solid var(--ts-line);
  border-radius: var(--ts-radius);
  background: #fff;
  box-shadow: var(--ts-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.news-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, #d21f2b, #8e0c14);
}

.news-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--ts-shadow-lift);
}

.news-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.1rem;
}

.news-date {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.6rem;
  border: 1px solid #ece5da;
  border-radius: 0.6rem;
  background: #faf7f1;
  color: var(--ts-muted);
  text-decoration: none;
}

.news-day {
  font-size: 1.2rem;
  font-weight: 900;
  line-height: 1;
  color: var(--ts-red);
  font-variant-numeric: tabular-nums;
}

.news-month {
  font-size: 0.62rem;
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.news-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--ts-muted);
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.news-tag i {
  color: var(--ts-red);
}

.news-title {
  margin-bottom: 0.8rem;
  font-size: 1.18rem;
  line-height: 1.28;
  letter-spacing: -0.015em;
}

.news-body {
  margin-bottom: 1.4rem;
  color: #3d444c;
  font-size: 0.92rem;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.news-body > :last-child {
  margin-bottom: 0;
}

.news-body p {
  margin-bottom: 0.7rem;
}

.news-body ul,
.news-body ol {
  padding-left: 1.15rem;
  margin-bottom: 0.7rem;
}

.news-body a {
  font-weight: 700;
}

.news-body img {
  display: block;
  float: none !important;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 240px;
  margin: 0.6rem auto;
  object-fit: contain;
  border-radius: 0.5rem;
}

.news-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 0.9rem;
  border-top: 1px solid var(--ts-line);
  color: var(--ts-muted);
  font-size: 0.76rem;
  font-weight: 700;
}

.news-footer span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

/* 8. About & facts
   ========================================================================== */
.about-lead {
  margin-bottom: 1.2rem;
  color: #262c34;
  font-size: 1.15rem;
  line-height: 1.7;
}

.section-about p {
  max-width: 64ch;
  color: var(--ts-ink-soft);
}

.section-about p strong {
  color: var(--ts-ink);
}

.about-outro {
  font-weight: 700;
  color: var(--ts-ink) !important;
}

.fact-card {
  position: relative;
  overflow: hidden;
  padding: 1.85rem;
  border-radius: 1.35rem;
  background: radial-gradient(120% 90% at 100% 0%, rgba(179, 18, 27, 0.32), transparent 55%), #12161c;
  box-shadow: 0 24px 50px rgba(18, 22, 28, 0.28);
  color: #fff;
}

.fact-card::after {
  content: "";
  position: absolute;
  right: -4.5rem;
  bottom: -6rem;
  width: 15rem;
  height: 15rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  pointer-events: none;
}

.fact-head {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.fact-head img {
  width: 76px;
  height: auto;
  border-radius: 50%;
  filter: drop-shadow(0 12px 20px rgba(0, 0, 0, 0.4));
}

.fact-kicker {
  display: block;
  margin-bottom: 0.2rem;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.fact-year {
  display: block;
  color: #fff;
  font-size: 2.1rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.03em;
}

.fact-list {
  display: grid;
  gap: 0;
  margin: 1.35rem 0 1.5rem;
  padding: 0;
  list-style: none;
}

.fact-list li {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 0.85rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.fact-list i {
  display: inline-flex;
  flex: 0 0 2rem;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 0.55rem;
  background: rgba(255, 255, 255, 0.08);
  color: #ff9aa1;
  font-size: 0.95rem;
}

.fact-list span {
  display: block;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.fact-list strong {
  display: block;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.45;
}

.fact-quote {
  position: relative;
  margin: 0 0 1.75rem;
  padding: 1.2rem 0 0 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.fact-quote i {
  position: absolute;
  top: 0.75rem;
  left: 0;
  color: #ff9aa1;
  font-size: 1.6rem;
}

.fact-quote p {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.55;
}

.fact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0;
  padding: 0.62rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.6rem;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 0.84rem;
  font-weight: 800;
  text-decoration: none;
}

.fact-link:hover {
  background: #fff;
  color: var(--ts-ink);
}

/* 9. Rules & call-to-action
   ========================================================================== */
.rule-list,
.legal-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.rule-list li {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 1rem 1.35rem;
  border-bottom: 1px solid rgba(20, 24, 30, 0.06);
  color: var(--ts-ink-soft);
}

.rule-list li:last-child {
  border-bottom: 0;
}

.rule-list i {
  margin-top: 0.15rem;
  color: var(--ts-red);
  font-size: 1rem;
}

.legal-list li {
  position: relative;
  padding: 0.8rem 1.35rem 0.8rem 2rem;
  border-bottom: 1px solid rgba(20, 24, 30, 0.06);
  color: var(--ts-ink-soft);
  font-size: 0.9rem;
}

.legal-list li:last-child {
  border-bottom: 0;
}

.legal-list li::before {
  content: "";
  position: absolute;
  top: 1.35rem;
  left: 1.35rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #9a948a;
}

.legal-list strong {
  color: var(--ts-ink);
}

.cta-band {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 2rem;
  overflow: hidden;
  margin-top: 2rem;
  padding: clamp(1.75rem, 4vw, 2.5rem);
  border-radius: 1.35rem;
  background: linear-gradient(115deg, #b3121b 0%, #8e0c14 70%, #6d080f 100%);
  box-shadow: 0 22px 44px rgba(142, 12, 20, 0.28);
  color: #fff;
}

.cta-copy h3 {
  margin-bottom: 0.4rem;
  color: #fff;
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
}

.cta-copy p {
  max-width: 46ch;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.92rem;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  position: relative;
  z-index: 1;
}

.cta-actions .btn-light {
  font-weight: 900;
  color: var(--ts-red-dark);
}

.cta-icon {
  position: absolute;
  right: 1.5rem;
  bottom: -2rem;
  color: #fff;
  font-size: 9rem;
  opacity: 0.1;
  transform: rotate(-12deg);
  pointer-events: none;
}

@media (max-width: 767.98px) {
  .cta-actions {
    width: 100%;
  }

  .cta-actions .btn {
    flex: 1 1 100%;
  }

  .cta-icon {
    display: none;
  }
}

/* 10. Roster
   ========================================================================== */
.roster-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem 1.2rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--ts-line);
  background: #fbf8f3;
}

.roster-search {
  position: relative;
  flex: 1 1 300px;
  max-width: 30rem;
}

.roster-search > i {
  position: absolute;
  top: 50%;
  left: 0.9rem;
  z-index: 2;
  transform: translateY(-50%);
  color: var(--ts-muted);
  font-size: 0.9rem;
  pointer-events: none;
}

.roster-search .form-control {
  height: 2.7rem;
  padding-left: 2.4rem;
  border: 1px solid #ddd6ca;
  border-radius: 0.6rem;
  background: #fff;
  color: var(--ts-ink);
  font-size: 0.9rem;
}

.roster-search .form-control::placeholder {
  color: #8b929b;
}

.roster-search .form-control:focus {
  border-color: rgba(179, 18, 27, 0.55);
  box-shadow: 0 0 0 0.2rem rgba(179, 18, 27, 0.12);
}

.roster-count {
  margin-left: auto;
  color: var(--ts-muted);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.roster-scroll {
  max-height: 36rem;
  overflow: auto;
  scrollbar-width: thin;
}

.roster-table {
  font-size: 0.88rem;
}

.roster-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #f7f3ec;
  box-shadow: inset 0 -1px 0 var(--ts-line);
}

.roster-table tbody td {
  padding-block: 0.75rem;
}

.roster-name {
  display: inline-block;
  color: var(--ts-ink);
  font-weight: 800;
  text-decoration: none;
}

.roster-name:hover {
  color: var(--ts-red);
  text-decoration: underline;
}

.roster-sub {
  display: block;
  color: var(--ts-muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.cell-stack {
  display: block;
}

.roster-location {
  display: block;
  font-size: 0.84rem;
  line-height: 1.35;
}

.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
}

.roster-table .badge {
  padding: 0.42em 0.75em;
  font-size: 0.67rem;
  font-weight: 900;
  letter-spacing: 0.03em;
}

.roster-empty td {
  padding: 1.5rem 1.25rem !important;
  color: var(--ts-muted);
  text-align: center;
}

.roster-empty .btn-link {
  color: var(--ts-red);
  font-weight: 800;
  text-decoration: underline;
}

/* 11. Footer & back to top
   ========================================================================== */
.site-footer {
  padding: 4rem 0 1.5rem;
  background: #101318;
  color: #a7afb9;
}

.site-footer .footer-logo {
  width: auto;
  height: 39px;
  margin-bottom: 1.1rem;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.5));
}

.footer-about {
  max-width: 42ch;
  margin-bottom: 1.2rem;
  font-size: 0.9rem;
  line-height: 1.7;
  color: #98a1ab;
}

.footer-networks {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
}

.footer-networks img {
  width: auto;
  height: 26px;
  filter: brightness(0) invert(1);
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.footer-networks img:hover {
  opacity: 1;
}

.footer-heading {
  margin-bottom: 0.9rem;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.footer-links {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.35rem;
}

.footer-links a {
  color: #a7afb9;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
}

.footer-links a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.6rem 1.5rem;
  margin-top: 3rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #7f8892;
  font-size: 0.76rem;
}

.back-to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 1030;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: var(--ts-red);
  box-shadow: 0 10px 24px rgba(142, 12, 20, 0.35);
  color: #fff;
  font-size: 1.1rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease, background-color 0.2s ease;
}

.back-to-top:hover {
  background: var(--ts-red-dark);
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: none;
}

/* 12. Responsive table layout
   ========================================================================== */
@media (min-width: 1200px) {
  .ops-table th:last-child,
  .ops-table td:last-child {
    text-align: right;
  }
}

/* Flights: eight columns need room, so rows become cards below 1200px.
   On tablets and small laptops the details are paired in two columns. */
@media (max-width: 1199.98px) {
  .ops-table thead {
    display: none;
  }

  .ops-table,
  .ops-table tbody,
  .ops-table tr,
  .ops-table td {
    display: block;
    width: 100%;
  }

  .ops-table tbody tr {
    padding: 1rem 1.15rem;
    border-bottom: 1px solid rgba(20, 24, 30, 0.09);
  }

  .ops-table tbody tr:last-child {
    border-bottom: 0;
  }

  .ops-table tbody tr:hover {
    background: transparent;
  }

  .ops-table tbody td {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.32rem 0;
    border: 0;
    text-align: right;
  }

  .ops-table tbody td::before {
    content: attr(data-label);
    flex: 0 0 38%;
    color: var(--ts-muted);
    font-size: 0.66rem;
    font-weight: 900;
    letter-spacing: 0.09em;
    text-align: left;
    text-transform: uppercase;
  }

  .ops-table tbody td[data-label="Flight"],
  .ops-table tbody td[data-label="Route"],
  .ops-table tbody td[data-label="Pilot"] {
    display: block;
    padding: 0;
    text-align: left;
  }

  .ops-table tbody td[data-label="Flight"]::before,
  .ops-table tbody td[data-label="Route"]::before,
  .ops-table tbody td[data-label="Pilot"]::before {
    display: none;
  }

  .ops-table tbody td[data-label="Flight"] {
    margin-bottom: 0.35rem;
  }

  .ops-table tbody td[data-label="Flight"] .flight-number {
    font-size: 1.05rem;
  }

  .ops-table tbody td[data-label="Route"] {
    margin-bottom: 0.35rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px dashed rgba(20, 24, 30, 0.12);
  }

  .ops-table tbody td[data-label="Route"] .route {
    gap: 0.6rem;
    font-size: 1.1rem;
  }

  .ops-table .route-names {
    max-width: none;
    white-space: normal;
    font-size: 0.78rem;
  }

  .ops-table tbody td[data-label="Progress"] {
    display: block;
    padding-top: 0.5rem;
    text-align: left;
  }

  .ops-table tbody td[data-label="Progress"]::before {
    display: block;
    margin-bottom: 0.4rem;
  }

  .ops-table .progress-wrap {
    min-width: 0;
  }

  .ops-table tbody td[data-label="Pilot"] {
    margin-top: 0.5rem;
    padding-top: 0.55rem;
    border-top: 1px solid rgba(20, 24, 30, 0.08);
  }

  .ops-table tbody td[data-label="Pilot"] .pilot-name {
    display: inline;
    margin-right: 0.4rem;
  }

  .ops-table tbody td[data-label="Pilot"] .pilot-link {
    display: inline;
    margin: 0;
  }

  .ops-table tbody td[data-label="Status"],
  .ops-table tbody td[data-label="Network"],
  .ops-table tbody td[data-label="Aircraft"],
  .ops-table tbody td[data-label="Flown / planned"] {
    font-size: 0.86rem;
  }

  .ops-table tbody td[data-label="Status"] .status-pill {
    margin-left: auto;
  }
}

@media (min-width: 768px) and (max-width: 1199.98px) {
  .ops-table tbody tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 2.5rem;
  }

  .ops-table tbody td {
    justify-content: flex-start;
    text-align: left;
  }

  .ops-table tbody td::before {
    flex: 0 0 8rem;
  }

  .ops-table tbody td[data-label="Flight"],
  .ops-table tbody td[data-label="Route"],
  .ops-table tbody td[data-label="Progress"],
  .ops-table tbody td[data-label="Pilot"] {
    grid-column: 1 / -1;
  }

  .ops-table tbody td[data-label="Status"] .status-pill {
    margin-left: 0;
  }

  .reports-table tbody td[data-label="Pilot"] {
    display: flex;
    grid-column: auto;
    align-items: baseline;
    justify-content: flex-start;
    gap: 1rem;
    margin: 0;
    padding: 0.32rem 0;
    border-top: 0;
    text-align: left;
  }

  .reports-table tbody td[data-label="Pilot"]::before {
    display: block;
  }

  .reports-table tbody td[data-label="Pilot"] .pilot-name {
    display: inline;
    margin: 0;
  }
}

/* Roster: six-column table fits tablets, so cards start at phone widths. */
@media (max-width: 991.98px) {
  .roster-table thead {
    display: none;
  }

  .roster-table,
  .roster-table tbody,
  .roster-table tr,
  .roster-table td {
    display: block;
    width: 100%;
  }

  .roster-table tbody tr {
    padding: 1rem 1.15rem;
    border-bottom: 1px solid rgba(20, 24, 30, 0.09);
  }

  .roster-table tbody tr:last-child {
    border-bottom: 0;
  }

  .roster-table tbody tr:hover {
    background: transparent;
  }

  .roster-table tbody td {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.32rem 0;
    border: 0;
    text-align: right;
  }

  .roster-table tbody td::before {
    content: attr(data-label);
    flex: 0 0 38%;
    color: var(--ts-muted);
    font-size: 0.66rem;
    font-weight: 900;
    letter-spacing: 0.09em;
    text-align: left;
    text-transform: uppercase;
  }

  .roster-table tbody td[data-label="Pilot"] {
    display: block;
    margin-bottom: 0.35rem;
    padding: 0 0 0.55rem;
    border-bottom: 1px dashed rgba(20, 24, 30, 0.12);
    text-align: left;
  }

  .roster-table tbody td[data-label="Pilot"]::before {
    display: none;
  }

  .roster-table tbody td[data-label="Pilot"] .roster-name {
    font-size: 1rem;
  }

  .roster-table tbody td[data-label="Pilot"] .roster-sub {
    display: inline-block;
    margin-left: 0.35rem;
    font-size: 0.72rem;
  }

  .roster-table tbody td[data-label="Location"] {
    display: block;
    padding-top: 0.5rem;
    text-align: left;
  }

  .roster-table tbody td[data-label="Location"]::before {
    display: block;
    margin-bottom: 0.1rem;
  }

  .cell-stack {
    text-align: left;
  }

  .roster-table tbody td[data-label="Status"] .badge {
    margin-left: auto;
  }

  .roster-empty td {
    display: block;
    text-align: center;
  }

  .roster-empty td::before {
    display: none;
  }

  .roster-scroll {
    max-height: none;
  }
}

/* Tablet roster cards: pair the short fields to use the extra width. */
@media (min-width: 768px) and (max-width: 991.98px) {
  .roster-table tbody tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 2.5rem;
  }

  .roster-table tbody td {
    justify-content: flex-start;
    text-align: left;
  }

  .roster-table tbody td::before {
    flex: 0 0 7rem;
  }

  .roster-table tbody td[data-label="Pilot"],
  .roster-table tbody td[data-label="Location"] {
    grid-column: 1 / -1;
  }

  .roster-table tbody td[data-label="Status"] .badge {
    margin-left: 0;
  }
}

@media (max-width: 575.98px) {
  .section {
    padding-block: 3rem;
  }

  .ts-card {
    border-radius: 0.95rem;
  }

  .news-card {
    padding: 1.35rem 1.25rem 1.2rem;
  }

  .fact-card {
    padding: 1.5rem;
  }

  .empty-inline {
    padding: 1.1rem;
  }

  .empty-inline .btn {
    width: 100%;
  }

  .hero-actions .btn {
    flex: 1 1 100%;
    justify-content: center;
  }

  .footer-bottom {
    font-size: 0.72rem;
  }
}
