/* ==========================================================================
   Arlanda Operations (Ryanair Group) — Cupertino / Apple.com Design System
   Typography: SF Pro Display · SF Pro Text · SF Mono (-apple-system native + self-hosted WOFF)
   ========================================================================== */

@font-face {
  font-family: "SF Pro Display";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: local("SF Pro Display"), local("SF Pro Text"), local(".AppleSystemUIFont"),
       url("/fonts/sf-pro-display-regular.woff") format("woff");
}

@font-face {
  font-family: "SF Pro Display";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: local("SF Pro Display Medium"), local("SF Pro Text Medium"), local("SF Pro Display"),
       url("/fonts/sf-pro-display-medium.woff") format("woff");
}

@font-face {
  font-family: "SF Pro Display";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: local("SF Pro Display Semibold"), local("SF Pro Text Semibold"), local("SF Pro Display Medium"),
       url("/fonts/sf-pro-display-medium.woff") format("woff");
}

@font-face {
  font-family: "SF Pro Display";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: local("SF Pro Display Bold"), local("SF Pro Text Bold"), local("SF Pro Display"),
       url("/fonts/sf-pro-display-bold.woff") format("woff");
}

:root {
  /* Apple.com Surface & Ink Tokens */
  --bg-page: #f5f5f7;
  --bg-card: #ffffff;
  --bg-subtle: #fbfbfd;
  --bg-pill: #e8e8ed;

  --text-main: #1d1d1f;
  --text-muted: #6e6e73;
  --text-dim: #86868b;

  --border-hairline: rgba(0, 0, 0, 0.08);
  --border-subtle: #e5e5ea;
  --border-strong: #d2d2d7;

  /* Apple Interactive & System Semantic Palette */
  --apple-blue: #0071e3;
  --apple-blue-hover: #0077ed;
  --apple-blue-tint: #e8f2ff;

  --red-600: #dc2626;
  --red-700: #b91c1c;
  --red-apple: #ff3b30;
  --red-50: #fff1f2;
  --red-100: #fee2e2;

  --green-600: #1d8348;
  --green-700: #166534;
  --green-apple: #248a3d;
  --green-50: #f2fbf5;
  --green-100: #dcfce7;

  --amber-600: #b25000;
  --amber-100: #fff4e5;
  --purple-700: #6e2ca8;
  --purple-100: #f5ecff;

  /* Typography Stacks (Apple.com exact hierarchy) */
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Icons", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-text: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono: "SF Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* Radii & Shadows */
  --radius-card: 22px;
  --radius-inner: 14px;
  --radius-pill: 980px;
  --shadow-card: 0 2px 14px rgba(0, 0, 0, 0.035), 0 0 1px rgba(0, 0, 0, 0.04);
  --shadow-hover: 0 10px 28px rgba(0, 0, 0, 0.065), 0 0 1px rgba(0, 0, 0, 0.05);
}

* {
  box-sizing: border-box;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  padding: 0;
  max-width: 100%;
  overflow-x: hidden;
  background-color: var(--bg-page);
  color: var(--text-main);
  font-family: var(--font-text);
  font-size: 14px;
  line-height: 1.47059;
  letter-spacing: -0.012em;
  font-variant-numeric: tabular-nums;
}

body.drawer-open {
  overflow: hidden;
}

/* ==========================================================================
   Dark Navy Frosted Top Navigation Bar (Ryanair Brand + Hamburger Archive)
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(6, 28, 72, 0.95);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 2px 12px rgba(4, 18, 48, 0.18);
}

.header-inner {
  max-width: 1260px;
  margin: 0 auto;
  height: 54px;
  padding: 0 24px;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand-group {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  text-decoration: none;
  color: #ffffff;
}

.ryanair-logo {
  display: block;
  height: 18px;
  width: auto;
  flex-shrink: 0;
}

.brand-divider {
  width: 1px;
  height: 17px;
  background: rgba(255, 255, 255, 0.24);
  flex-shrink: 0;
}

.brand-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 16.5px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 3px;
  border-radius: var(--radius-pill);
}

.nav-link {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.8);
  font-family: var(--font-text);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: -0.01em;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  transition: all 0.2s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.nav-link:hover {
  color: #ffffff;
}

.nav-link.active {
  background: #ffffff;
  color: #061c48;
  font-weight: 600;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.hamburger-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 36px;
  padding: 0 12px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-family: var(--font-text);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease;
}

.hamburger-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.32);
}

.hamburger-icon {
  width: 17px;
  height: 17px;
  display: block;
  flex-shrink: 0;
}

.hamburger-label {
  white-space: nowrap;
}

/* ==========================================================================
   Slide-Over Hamburger Report Archive & Navigation Drawer
   ========================================================================== */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(6, 18, 42, 0.46);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.24s ease;
}

.drawer-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.archive-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  width: min(340px, 88vw);
  background: #ffffff;
  box-shadow: -12px 0 38px rgba(6, 18, 42, 0.22);
  display: flex;
  flex-direction: column;
  transform: translateX(104%);
  transition: transform 0.28s cubic-bezier(0.32, 0.72, 0, 1);
}

.archive-drawer.open {
  transform: translateX(0);
}

.drawer-head {
  background: #061c48;
  color: #ffffff;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.drawer-head-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.drawer-close-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 18px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.drawer-close-btn:hover {
  background: rgba(255, 255, 255, 0.22);
}

.drawer-nav-section {
  padding: 12px 14px;
  background: #fbfbfd;
  border-bottom: 1px solid var(--border-subtle);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.drawer-nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 10px;
  border-radius: 10px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  background: #ffffff;
  border: 1px solid var(--border-subtle);
}

.drawer-nav-link.active {
  background: var(--apple-blue);
  color: #ffffff;
  border-color: var(--apple-blue);
}

.drawer-tree-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px 8px;
}

.drawer-body {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 4px 12px 24px;
  -webkit-overflow-scrolling: touch;
}

/* ==========================================================================
   Hero Editorial Header
   ========================================================================== */
.page-hero {
  max-width: 1260px;
  margin: 0 auto;
  padding: 38px 24px 22px;
  text-align: center;
}

.hero-eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--apple-blue);
  margin-bottom: 8px;
}

.hero-headline {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(26px, 4.2vw, 46px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.028em;
  color: var(--text-main);
}

.hero-subhead {
  margin: 10px auto 0;
  max-width: 720px;
  font-family: var(--font-display);
  font-size: clamp(14px, 1.6vw, 18px);
  font-weight: 400;
  line-height: 1.42;
  letter-spacing: -0.014em;
  color: var(--text-muted);
}

/* ==========================================================================
   Main Container & Bento Grid
   ========================================================================== */
.container {
  max-width: 1260px;
  margin: 0 auto;
  padding: 12px 24px 64px;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 16px;
  margin-bottom: 22px;
}

.kpi-grid > *,
.grid-2 > *,
.archive-layout > * {
  min-width: 0;
  max-width: 100%;
}

.kpi-card {
  background: var(--bg-card);
  border-radius: var(--radius-card);
  padding: 20px 20px 18px;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(0, 0, 0, 0.03);
  transition: transform 0.25s cubic-bezier(0.25, 0.1, 0.25, 1), box-shadow 0.25s ease;
}

.kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.kpi-card.kpi-red {
  background: linear-gradient(180deg, #ffffff 0%, #fff7f7 100%);
  border-color: rgba(220, 38, 38, 0.14);
}

.kpi-card.kpi-green {
  background: linear-gradient(180deg, #ffffff 0%, #f5fbf7 100%);
  border-color: rgba(36, 138, 61, 0.14);
}

.kpi-label {
  font-family: var(--font-text);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.008em;
  color: var(--text-muted);
}

.kpi-value {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.032em;
  margin-top: 7px;
  color: var(--text-main);
}

.kpi-sub {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 7px;
  line-height: 1.35;
}

/* ==========================================================================
   Bento Content Cards
   ========================================================================== */
.card {
  background: var(--bg-card);
  border-radius: var(--radius-card);
  padding: 26px 26px 24px;
  margin-bottom: 22px;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(0, 0, 0, 0.03);
  min-width: 0;
  max-width: 100%;
}

.card-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.card-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.022em;
  color: var(--text-main);
}

.card-subtitle {
  margin: 4px 0 0;
  font-size: 13.5px;
  color: var(--text-muted);
  letter-spacing: -0.01em;
}

/* Month quick-jump strip */
.month-pills-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
  align-items: center;
}

.seg-btn {
  background: #f5f5f7;
  color: var(--text-main);
  font-family: var(--font-text);
  font-weight: 500;
  white-space: nowrap;
  transition: all 0.16s ease;
}

.seg-btn:hover {
  background: #e8e8ed;
}

.seg-btn.active {
  background: var(--apple-blue);
  color: #ffffff;
  border-color: var(--apple-blue) !important;
  font-weight: 600;
}

/* ==========================================================================
   Aviation Weather Outlook Bento Card
   ========================================================================== */
.outlook-banner {
  background: var(--bg-card);
  border-radius: var(--radius-card);
  padding: 22px 26px;
  margin-bottom: 22px;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(0, 113, 227, 0.14);
  min-width: 0;
  max-width: 100%;
}

.outlook-banner.lifr,
.outlook-banner.ifr {
  border-color: rgba(110, 44, 168, 0.22);
  background: linear-gradient(180deg, #ffffff 0%, #fcfaff 100%);
}

.raw-wx-box {
  margin-top: 14px;
  background: #1d1d1f;
  color: #f5f5f7;
  padding: 12px 14px;
  border-radius: var(--radius-inner);
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.55;
  overflow-x: auto;
  max-width: 100%;
}

/* Two-Column Bento Split */
.grid-2 {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 22px;
}

@media (max-width: 1024px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Apple Pill Badges & Mandatory Red Gate / Wind Highlighting
   ========================================================================== */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.badge-vfr { background: var(--green-100); color: var(--green-700); }
.badge-mvfr { background: var(--apple-blue-tint); color: #0055b3; }
.badge-ifr { background: var(--red-100); color: var(--red-700); }
.badge-lifr { background: var(--purple-100); color: var(--purple-700); }
.badge-aft-yes { background: var(--green-100); color: var(--green-700); }
.badge-aft-no { background: var(--red-100); color: var(--red-600); border: 1px solid rgba(220, 38, 38, 0.28); }
.badge-wind { background: var(--red-100); color: var(--red-700); font-weight: 700; }

.gate-no-aft {
  color: var(--red-600) !important;
  font-weight: 700 !important;
}

.gate-aft-ok {
  color: var(--text-main);
  font-weight: 600;
}

/* ==========================================================================
   Clean Hairline Tables
   ========================================================================== */
.table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

table.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

table.data-table th {
  background: transparent;
  color: var(--text-dim);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: -0.005em;
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
  white-space: nowrap;
}

table.data-table td {
  padding: 11px 12px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.045);
  vertical-align: middle;
}

table.data-table tbody tr {
  transition: background-color 0.15s ease;
}

table.data-table tbody tr:hover td {
  background: #f5f5f7;
}

table.data-table tbody tr:last-child td {
  border-bottom: none;
}

table.data-table tr.row-no-aft td {
  background: #fff5f5;
}

table.data-table tr.row-no-aft:hover td {
  background: #fee2e2;
}

.hbar-track {
  width: 100%;
  height: 10px;
  background: #eff0f4;
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.hbar-fill {
  height: 100%;
  border-radius: var(--radius-pill);
  transition: width 0.35s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.hbar-fill.aft-ok {
  background: linear-gradient(90deg, #0071e3, #2997ff);
}

.hbar-fill.aft-no {
  background: linear-gradient(90deg, #ff3b30, #dc2626);
}

/* ==========================================================================
   Apple Segmented Controls, Pill Buttons & Form Inputs
   ========================================================================== */
.btn-group {
  display: inline-flex;
  background: var(--bg-pill);
  padding: 3px;
  border-radius: var(--radius-pill);
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.btn-toggle {
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-text);
  font-size: 12.5px;
  font-weight: 500;
  padding: 6px 13px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.btn-toggle:hover {
  color: var(--text-main);
}

.btn-toggle.active {
  background: #ffffff;
  color: var(--text-main);
  font-weight: 600;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  font-family: var(--font-text);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: -0.01em;
  cursor: pointer;
  border: 1px solid var(--border-strong);
  background: #ffffff;
  color: var(--text-main);
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.18s ease;
}

.btn:hover:not(:disabled) {
  background: #f5f5f7;
  border-color: #b9b9c0;
}

.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.btn-primary {
  background: var(--apple-blue);
  color: #ffffff;
  border-color: var(--apple-blue);
  font-weight: 500;
}

.btn-primary:hover:not(:disabled) {
  background: var(--apple-blue-hover);
  border-color: var(--apple-blue-hover);
  color: #ffffff;
}

.input-control,
.select-control {
  padding: 8px 12px;
  border-radius: 11px;
  border: 1px solid var(--border-strong);
  font-family: var(--font-text);
  font-size: 13px;
  background: #fbfbfd;
  color: var(--text-main);
  outline: none;
  max-width: 100%;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.input-control:focus,
.select-control:focus {
  background: #ffffff;
  border-color: var(--apple-blue);
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.16);
}

/* ==========================================================================
   Swedavia Section 3.1 Stand Matrix Cards
   ========================================================================== */
.matrix-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(195px, 1fr));
  gap: 14px;
}

.matrix-col {
  background: #fbfbfd;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-inner);
  overflow: hidden;
  min-width: 0;
}

.matrix-col-head {
  background: #f5f5f7;
  color: var(--text-main);
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-subtle);
}

.matrix-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  font-size: 12.5px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  background: #ffffff;
}

.matrix-row:last-child {
  border-bottom: none;
}

.matrix-row.no-aft {
  background: #fff5f5;
}

/* ==========================================================================
   History Archive Explorer (Sidebar + Hamburger Drawer on Mobile/Tablet)
   ========================================================================== */
.archive-layout {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.mobile-archive-btn {
  display: none;
}

.folder-sidebar {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: var(--radius-card);
  padding: 18px 14px;
  box-shadow: var(--shadow-card);
  position: sticky;
  top: 72px;
  max-height: calc(100vh - 92px);
  overflow-y: auto;
}

.sidebar-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px 10px;
  margin-bottom: 6px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.sidebar-heading {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dim);
  margin: 0;
}

.sidebar-mini-actions {
  display: inline-flex;
  gap: 6px;
}

.sidebar-mini-btn {
  border: none;
  background: transparent;
  color: var(--apple-blue);
  font-family: var(--font-text);
  font-size: 11.5px;
  font-weight: 500;
  padding: 2px 5px;
  border-radius: 5px;
  cursor: pointer;
}

.sidebar-mini-btn:hover {
  background: var(--apple-blue-tint);
}

.tree-row {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-top: 2px;
}

.tree-chevron-btn {
  width: 24px;
  height: 28px;
  flex: 0 0 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: var(--text-dim);
  border-radius: 6px;
  cursor: pointer;
  padding: 0;
  transition: background-color 0.14s ease, color 0.14s ease;
}

.tree-chevron-btn:hover {
  background: rgba(0, 0, 0, 0.055);
  color: var(--text-main);
}

.tree-chevron-icon {
  width: 11px;
  height: 11px;
  transition: transform 0.18s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.tree-chevron-btn[aria-expanded="true"] .tree-chevron-icon {
  transform: rotate(90deg);
}

.tree-btn {
  flex: 1 1 auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  border: none;
  background: transparent;
  padding: 6px 10px;
  border-radius: 9px;
  cursor: pointer;
  font-family: var(--font-text);
  font-size: 13px;
  color: var(--text-main);
  transition: background-color 0.14s ease, color 0.14s ease;
}

.tree-btn:hover {
  background: rgba(0, 0, 0, 0.045);
}

.tree-btn.active {
  background: var(--apple-blue);
  color: #ffffff;
  font-weight: 600;
}

.tree-btn.active span {
  color: #ffffff !important;
}

.tree-btn.active .badge {
  background: rgba(255, 255, 255, 0.22) !important;
  color: #ffffff !important;
}

.tree-children {
  margin-left: 14px;
  padding-left: 8px;
  border-left: 1px solid var(--border-subtle);
}

.tree-children.collapsed {
  display: none;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.filter-inputs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  flex: 1 1 auto;
  min-width: 0;
}

.filter-search-input {
  min-width: 205px;
  flex: 1 1 205px;
}

.viewer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.pagination-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 16px;
  margin-top: 10px;
  border-top: 1px solid var(--border-subtle);
}

.page-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
}

.page-num {
  min-width: 32px;
  height: 32px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  background: #ffffff;
  font-family: var(--font-text);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-main);
  cursor: pointer;
  transition: all 0.15s ease;
}

.page-num:hover {
  background: #f5f5f7;
}

.page-num.active {
  background: var(--text-main);
  color: #ffffff;
  border-color: var(--text-main);
  font-weight: 600;
}

.report-iframe {
  width: 100%;
  min-height: 820px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-inner);
  background: #f5f5f7;
  display: block;
}

/* ==========================================================================
   Apple Minimal Footnote Footer
   ========================================================================== */
.site-footer {
  max-width: 1260px;
  margin: 24px auto 0;
  padding: 22px 24px 44px;
  border-top: 1px solid var(--border-subtle);
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-dim);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
}

/* ==========================================================================
   Responsive Tablet & Mobile Layout (Zero Overflow, Fitted Controls)
   ========================================================================== */
@media (max-width: 980px) {
  .archive-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  /* Sidebar moves into the Hamburger Archive Drawer on tablet & mobile */
  .folder-sidebar {
    display: none;
  }

  .mobile-archive-btn {
    display: inline-flex;
  }
}

@media (max-width: 820px) {
  .nav-links {
    display: none;
  }

  .hamburger-btn {
    padding: 0 10px;
  }

  .hamburger-label {
    display: none;
  }
}

@media (max-width: 640px) {
  .header-inner {
    height: 50px;
    padding: 0 12px;
    gap: 8px;
  }

  .brand-group {
    gap: 8px;
  }

  .ryanair-logo {
    height: clamp(13px, 4vw, 16px);
  }

  .brand-divider {
    height: 14px;
  }

  .brand-title {
    font-size: clamp(13.5px, 4vw, 15.5px);
  }

  .hamburger-btn {
    width: 36px;
    height: 34px;
    padding: 0;
    border-radius: 10px;
  }

  .page-hero {
    padding: 20px 14px 12px;
  }

  .hero-eyebrow {
    font-size: 10.5px;
    margin-bottom: 5px;
  }

  .hero-headline {
    font-size: clamp(22px, 6.6vw, 30px);
  }

  .hero-subhead {
    font-size: 13px;
    margin-top: 7px;
  }

  .container {
    padding: 8px 12px 42px;
  }

  .kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 14px;
  }

  .kpi-card {
    padding: 14px 13px;
    border-radius: 16px;
  }

  .kpi-label {
    font-size: 11px;
  }

  .kpi-value {
    font-size: 24px;
    margin-top: 4px;
  }

  .kpi-sub {
    font-size: 11px;
    margin-top: 5px;
  }

  .card,
  .outlook-banner {
    padding: 16px 13px;
    border-radius: 18px;
    margin-bottom: 14px;
  }

  .card-header {
    gap: 10px;
    margin-bottom: 13px;
  }

  .card-title {
    font-size: 17.5px;
  }

  .card-subtitle {
    font-size: 12px;
  }

  .card-controls-row {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
  }

  .btn-toggle {
    padding: 5px 10px;
    font-size: 11.5px;
  }

  .btn {
    padding: 6px 11px;
    font-size: 12px;
  }

  #fy2026-pills .badge,
  #gate-summary-pills .badge {
    white-space: normal;
    max-width: 100%;
    font-size: 11px !important;
    padding: 4px 10px !important;
  }

  /* Month pills scroll horizontally cleanly in one compact touch strip */
  .month-pills-bar {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
    margin-bottom: 10px;
  }

  table.data-table {
    font-size: 12px;
  }

  table.data-table th {
    font-size: 10.5px;
    padding: 8px 8px;
  }

  table.data-table td {
    padding: 8px 8px;
  }

  .col-hide-mobile {
    display: none;
  }

  .matrix-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  .matrix-col-head {
    padding: 8px 10px;
    font-size: 11.5px;
  }

  .matrix-row {
    padding: 5px 9px;
    font-size: 11px;
  }

  #route-search {
    width: 100%;
  }

  .filter-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .filter-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px;
    width: 100%;
  }

  .filter-search-input {
    grid-column: 1 / -1;
    min-width: 0;
    width: 100%;
  }

  .filter-inputs .select-control,
  .filter-inputs .btn {
    width: 100%;
  }

  .viewer-actions {
    width: 100%;
    gap: 6px;
  }

  .viewer-actions .btn {
    flex: 1 1 auto;
    padding: 6px 9px;
    font-size: 11.5px;
  }

  .pagination-bar {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }

  .page-buttons {
    justify-content: center;
  }

  .page-num {
    min-width: 28px;
    height: 28px;
    font-size: 11.5px;
  }

  .report-iframe {
    min-height: 620px;
  }

  .site-footer {
    padding: 18px 14px 34px;
    font-size: 11px;
  }
}

@media (max-width: 359px) {
  .matrix-grid,
  .kpi-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
