/**
 * Cleared for Departure — Kadence child layout
 * Boarding-pass content, homepage partials, footer, mobile filters.
 */

body.cfd-kadence-child {
  background: var(--cfd-page-bg);
}

/* Prevent duplicate Kadence Header Builder output when child header is active */
body.cfd-custom-header-active #masthead,
body.cfd-custom-header-active .site-header-wrap:not(.cfd-departure-header):not(.cfd-classic-header),
body.cfd-custom-header-active header#masthead,
body.cfd-custom-header-active .kadence-header-hook,
body.cfd-custom-header-active #mobile-header {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  min-height: 0 !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
}

body.cfd-kadence-child #wrapper,
body.cfd-kadence-child .site {
  background: transparent;
}

/* Do not clip ticket shell corner / side notches at the viewport edge */
body.cfd-custom-header-active #wrapper,
body.cfd-custom-header-active #inner-wrap {
  overflow: visible;
}

body.cfd-kadence-child .content-bg,
body.cfd-kadence-child .content-area,
body.cfd-kadence-child #primary {
  background: transparent;
}

body.cfd-kadence-child .entry-hero-container-inner,
body.cfd-kadence-child .entry-content-wrap {
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}

/* Singular: child theme controls measure; neutralize Kadence narrow/full wrappers */
body.cfd-kadence-child.cfd-singular.cfd-kadence-width-override #inner-wrap,
body.cfd-kadence-child.cfd-singular.cfd-kadence-width-override #inner-wrap .site,
body.cfd-kadence-child.cfd-singular.cfd-kadence-width-override .content-bg,
body.cfd-kadence-child.cfd-singular.cfd-kadence-width-override .content-container,
body.cfd-kadence-child.cfd-singular.cfd-kadence-width-override .content-container.site-container,
body.cfd-kadence-child.cfd-singular.cfd-kadence-width-override .hero-container.site-container,
body.cfd-kadence-child.cfd-singular.cfd-kadence-width-override .site-container,
body.cfd-kadence-child.cfd-singular.cfd-kadence-width-override .entry-content-wrap,
body.cfd-kadence-child.cfd-singular.cfd-kadence-width-override .entry-content,
body.cfd-kadence-child.cfd-singular.cfd-kadence-width-override .wp-block-post-content {
  max-width: none !important;
  width: 100%;
  margin-left: 0;
  margin-right: 0;
  padding-left: 0;
  padding-right: 0;
}

body.cfd-kadence-child.cfd-singular.cfd-kadence-width-override #primary.content-area,
body.cfd-kadence-child.cfd-singular.cfd-kadence-width-override .cfd-single-main {
  max-width: none;
  width: 100%;
}

body.cfd-kadence-child.cfd-singular.cfd-kadence-width-override.content-width-narrow .content-container.site-container,
body.cfd-kadence-child.cfd-singular.cfd-kadence-width-override.content-width-normal .content-container.site-container {
  max-width: none !important;
}

body.cfd-kadence-child.cfd-home-layout #primary > .content-container {
  padding: 0;
  max-width: none;
}

body.cfd-kadence-child .loop-entry .entry-title {
  font-family: var(--cfd-serif);
}

body.cfd-kadence-child .loop-entry .entry-taxonomies,
body.cfd-kadence-child .loop-entry .entry-meta {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cfd-muted);
}

body.cfd-kadence-child .loop-entry .entry-taxonomies a {
  color: var(--cfd-burgundy);
}

:root {
  --cfd-cream: #f9f8f4;
  --cfd-cream-alt: #f5f2eb;
  --cfd-accent: #a8322d;
  --cfd-burgundy: #a64030;
  --cfd-burgundy-alt: #963328;
  --cfd-text: #1a1a1a;
  --cfd-muted: #6b6558;
  --cfd-border: #d8d2c5;
  --cfd-footer: #0e0e0e;
  --cfd-black: #000000;
  --cfd-newsletter-bg: #eeede8;
  --cfd-search-bg: #f3f2ee;
  --cfd-serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --cfd-sans: "DM Sans", system-ui, -apple-system, sans-serif;
  --cfd-max: 1496px;
  --cfd-gutter: 24px;
  --cfd-label-spacing: 0.12em;
  --cfd-page-bg: #f5f2ed;
  --cfd-notch-r: clamp(16px, 1.6vw, 24px);
  --cfd-paper-noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='128' height='128'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='128' height='128' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
  --cfd-k-cream: var(--cfd-cream);
  --cfd-perforation-color: #A8322D;
  --cfd-perforation-dash: 2px;
  --cfd-perforation-gap: 4px;
  /* Scalloped ticket tear (radial punch holes + rust bridge dashes) */
  --cfd-perf-hole-fill: var(--cfd-k-cream);
  --cfd-perf-strip-w: 6px;
  --cfd-perf-step: 8px;
  --cfd-perf-hole-r: 2px;
  --cfd-perf-hole-x: 3px;
  --cfd-perf-hole-y: 4px;
  --cfd-perf-bridge-x: 3px;
  --cfd-perf-bridge-w: 1px;
  --cfd-perf-bridge-start: 3px;
  --cfd-perf-bridge-end: 4px;
  --cfd-perf-scallop: radial-gradient(
    circle at var(--cfd-perf-hole-x) var(--cfd-perf-hole-y),
    var(--cfd-perf-hole-fill) var(--cfd-perf-hole-r),
    transparent calc(var(--cfd-perf-hole-r) + 0.25px)
  );
  --cfd-perf-bridge: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent var(--cfd-perf-bridge-start),
    var(--cfd-perforation-color) var(--cfd-perf-bridge-start),
    var(--cfd-perforation-color) var(--cfd-perf-bridge-end),
    transparent var(--cfd-perf-bridge-end),
    transparent var(--cfd-perf-step)
  );
  --cfd-perf-edge-bg: var(--cfd-perf-scallop) 0 0 / var(--cfd-perf-strip-w) var(--cfd-perf-step) repeat-y,
    var(--cfd-perf-bridge) var(--cfd-perf-bridge-x) 0 / var(--cfd-perf-bridge-w) var(--cfd-perf-step) repeat-y;
}

body.cfd-strong-perforation-on {
  --cfd-perforation-dash: 3px;
  --cfd-perforation-gap: 3px;
  --cfd-perf-bridge-start: 2px;
  --cfd-perf-bridge-end: calc(2px + var(--cfd-perforation-dash));
}

body.cfd-strong-perforation-off {
  --cfd-perf-hole-r: 2px;
  --cfd-perf-bridge-start: 3px;
  --cfd-perf-bridge-end: 4px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body.cfd-kadence-child {
  margin: 0;
  font-family: var(--cfd-sans);
  font-size: 14px;
  line-height: 1.5;
  color: var(--cfd-text);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--cfd-burgundy);
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ─── Site shell (ticket frame) ─── */
/*
 * Ticket notches: SVG clip-path on .cfd-site-shell (top corners + left mid semicircle).
 * Top-corner radial punches reinforce cutouts when clip-path is flaky (no side fallbacks).
 * Border on ::after (inset ring) — clip-path on the shell clips a normal border.
 * Mobile: rounded top corners, clip-path removed, classic border on shell.
 */

.cfd-site-shell {
  max-width: var(--cfd-max);
  margin: 24px auto;
  background-color: var(--cfd-cream);
  background-image:
    radial-gradient(
      circle var(--cfd-notch-r) at 0 0,
      var(--cfd-page-bg) calc(100% - 0.5px),
      transparent calc(100% + 0.5px)
    ),
    radial-gradient(
      circle var(--cfd-notch-r) at 100% 0,
      var(--cfd-page-bg) calc(100% - 0.5px),
      transparent calc(100% + 0.5px)
    ),
    linear-gradient(180deg, var(--cfd-cream) 0%, var(--cfd-cream-alt) 100%);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  clip-path: var(--cfd-notch-clip-path, url("../images/ticket-notch-mask.svg#cfd-ticket-shell-clip"));
  -webkit-clip-path: var(--cfd-notch-clip-path, url("../images/ticket-notch-mask.svg#cfd-ticket-shell-clip"));
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04), 0 8px 24px rgba(0, 0, 0, 0.06);
}

/* Subtle paper grain on cream shell (Customizer toggle) */
body.cfd-ticket-texture-on .cfd-site-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.05;
  background: var(--cfd-paper-noise) repeat;
  background-size: 180px 180px;
  mix-blend-mode: multiply;
}

/* Ticket stroke follows clipped shape (including top notches) */
.cfd-site-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  clip-path: var(--cfd-notch-clip-path, url("../images/ticket-notch-mask.svg#cfd-ticket-shell-clip"));
  -webkit-clip-path: var(--cfd-notch-clip-path, url("../images/ticket-notch-mask.svg#cfd-ticket-shell-clip"));
  box-shadow: inset 0 0 0 1px var(--cfd-border);
}

/* Customizer: flat rounded shell instead of clip-path notches (desktop) */
@media (min-width: 769px) {
  body.cfd-ticket-notches-off .cfd-site-shell {
    clip-path: none;
    border-radius: 14px 14px 0 0;
    background-image: linear-gradient(180deg, var(--cfd-cream) 0%, var(--cfd-cream-alt) 100%);
  }

  body.cfd-ticket-notches-off .cfd-site-shell::after {
    clip-path: none;
    border-radius: 14px 14px 0 0;
  }
}

/* Layout hook for header cream / singles — notches live on .cfd-site-shell only */
.cfd-ticket-shell {
  position: relative;
}

/* Departure hero: cream board reads as ticket face inside shell (grid-lines z-index unchanged) */
body.cfd-departure-header-active .cfd-departure-header__cream {
  background: linear-gradient(180deg, var(--cfd-cream) 0%, var(--cfd-cream-alt) 100%);
}

/* Shared barcode ticket stub */
.cfd-ticket-stub {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  position: relative;
  padding-right: 14px;
  min-height: 158px;
}

.cfd-ticket-stub__barcode-link {
  display: block;
  flex-shrink: 0;
  line-height: 0;
  padding: 8px 6px;
  background: #fff;
  box-shadow: 0 0 0 1px #fff;
}

.cfd-ticket-stub__barcode {
  display: block;
  width: 74px;
  height: 158px;
  object-fit: contain;
  object-position: center bottom;
  background: #fff;
}

.cfd-ticket-stub__text {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cfd-ticket-stub__label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  line-height: 1.2;
  max-height: 130px;
}

.cfd-ticket-stub__code {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--cfd-burgundy);
}

.cfd-ticket-stub__perforation {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: var(--cfd-perf-strip-w);
  border: none;
  border-color: var(--cfd-perforation-color, #a8322d);
  background: var(--cfd-perf-edge-bg);
  pointer-events: none;
}

.cfd-custom-icon {
  display: block;
  object-fit: contain;
}

.cleared-stamp__img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 104px;
  filter: none;
  transform: none;
}

.site-main {
  min-height: 40vh;
}

/* ─── Utility bar ─── */

.ticket-header__utility {
  border-bottom: 1px solid var(--cfd-border);
  padding: 10px var(--cfd-gutter);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: var(--cfd-label-spacing);
  text-transform: uppercase;
  color: var(--cfd-muted);
}

.ticket-header__utility-inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 16px;
}

.utility-plane {
  width: 14px;
  height: 14px;
  background: var(--cfd-burgundy);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M21 16v-2l-8-5V3.5a1.5 1.5 0 00-3 0V9l-8 5v2l8-2.5V19l-2 1.5V22l3.5-1 3.5 1v-1.5L13 19v-5.5l8 2.5z'/%3E%3C/svg%3E") center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M21 16v-2l-8-5V3.5a1.5 1.5 0 00-3 0V9l-8 5v2l8-2.5V19l-2 1.5V22l3.5-1 3.5 1v-1.5L13 19v-5.5l8 2.5z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.cfd-flight-code,
.utility-code {
  color: var(--cfd-burgundy);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  letter-spacing: 0.12em;
}

.cfd-ticket-stub__code.cfd-flight-code {
  letter-spacing: 0.1em;
}

.utility-divider {
  width: 1px;
  height: 12px;
  background: var(--cfd-border);
}

.utility-tagline {
  margin-left: auto;
  letter-spacing: 0.14em;
}

.ticket-header__menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  margin-left: auto;
  border: 1px solid var(--cfd-border);
  background: transparent;
  cursor: pointer;
}

.ticket-header__menu-btn span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--cfd-text);
}

/* ─── Brand row ─── */

.ticket-header__brand {
  display: grid;
  grid-template-columns: 160px 1fr 200px;
  align-items: center;
  gap: 24px;
  padding: 28px var(--cfd-gutter) 20px;
  border-bottom: 1px solid var(--cfd-border);
}

.ticket-header__rail--left {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.ticket-barcode--vertical {
  flex-shrink: 0;
  width: 74px;
  height: auto;
  max-height: 158px;
}

.ticket-header__rail-text {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rail-title {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  line-height: 1.2;
  max-height: 120px;
}

.rail-code {
  font-size: 11px;
  font-weight: 700;
  color: var(--cfd-burgundy);
  letter-spacing: 0.1em;
}

.ticket-header__center {
  text-align: center;
}

.site-logo__title,
.site-logo .custom-logo-link {
  font-family: var(--cfd-serif);
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 500;
  color: var(--cfd-text);
  letter-spacing: -0.02em;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.site-logo--custom img {
  margin: 0 auto;
  max-height: 72px;
  width: auto;
}

.site-logo__divider {
  display: flex;
  justify-content: center;
  margin: 12px 0 10px;
}

.divider-plane {
  display: block;
  width: 20px;
  height: 20px;
  background: var(--cfd-burgundy);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M21 16v-2l-8-5V3.5a1.5 1.5 0 00-3 0V9l-8 5v2l8-2.5V19l-2 1.5V22l3.5-1 3.5 1v-1.5L13 19v-5.5l8 2.5z'/%3E%3C/svg%3E") center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M21 16v-2l-8-5V3.5a1.5 1.5 0 00-3 0V9l-8 5v2l8-2.5V19l-2 1.5V22l3.5-1 3.5 1v-1.5L13 19v-5.5l8 2.5z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.site-tagline {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cfd-muted);
}

.ticket-header__rail--right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 16px;
}

/* Cleared stamp */
.cleared-stamp {
  position: relative;
  width: 100px;
  height: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  transform: rotate(-12deg);
}

.cleared-stamp:has(.cleared-stamp__img) {
  filter: none;
}

.cleared-stamp:not(:has(.cleared-stamp__img)) {
  filter: contrast(1.04) saturate(0.94);
}

.cleared-stamp__ring {
  position: absolute;
  inset: 0;
  border: 3px solid var(--cfd-burgundy);
  border-radius: 50%;
  opacity: 0.85;
}

.cleared-stamp__text {
  position: relative;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--cfd-burgundy);
  z-index: 1;
}

.cleared-stamp__sub,
.cleared-stamp__est {
  position: relative;
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--cfd-burgundy);
  z-index: 1;
}

.cleared-stamp--sm {
  width: 72px;
  height: 72px;
}

.cleared-stamp--sm .cleared-stamp__text {
  font-size: 13px;
}

/* Search trigger */
.search-trigger {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 180px;
  padding: 10px 14px;
  border: 1px solid var(--cfd-border);
  background: var(--cfd-search-bg);
  cursor: pointer;
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--cfd-muted);
  text-transform: uppercase;
}

.search-trigger__icon {
  width: 16px;
  height: 16px;
  background: var(--cfd-muted);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M15.5 14h-.79l-.28-.27A6.471 6.471 0 0016 9.5 6.5 6.5 0 109.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z'/%3E%3C/svg%3E") center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M15.5 14h-.79l-.28-.27A6.471 6.471 0 0016 9.5 6.5 6.5 0 109.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.search-panel {
  border-bottom: 1px solid var(--cfd-border);
  background: var(--cfd-cream);
  padding: 16px var(--cfd-gutter);
}

.search-panel[hidden] {
  display: none !important;
}

body.cfd-search-open .search-panel {
  display: block !important;
}

.search-panel__inner {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 640px;
  margin: 0 auto;
}

.search-panel__close {
  border: none;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  color: var(--cfd-muted);
}

.search-form {
  display: flex;
  flex: 1;
  border: 1px solid var(--cfd-border);
  background: #fff;
}

.search-form__input {
  flex: 1;
  border: none;
  padding: 12px 16px;
  font-family: inherit;
  font-size: 14px;
  background: transparent;
}

.search-form__input:focus {
  outline: none;
}

.search-form__submit {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  border: none;
  border-left: 1px solid var(--cfd-border);
  background: var(--cfd-burgundy);
  color: #fff;
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  cursor: pointer;
}

.search-form__icon {
  width: 14px;
  height: 14px;
  background: #fff;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M15.5 14h-.79l-.28-.27A6.471 6.471 0 0016 9.5 6.5 6.5 0 109.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5z'/%3E%3C/svg%3E") center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M15.5 14h-.79l-.28-.27A6.471 6.471 0 0016 9.5 6.5 6.5 0 109.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ─── Ticket navigation (classic header overrides in header-classic.css) ─── */

.ticket-nav-wrap {
  border-bottom: 1px solid var(--cfd-border);
}

.ticket-nav {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
  width: 100%;
}

.ticket-nav > .ticket-nav__item,
.ticket-nav > li {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-width: 0;
  border-right: 1px solid var(--cfd-border);
  position: relative;
}

.ticket-nav > .ticket-nav__item:last-child,
.ticket-nav > li:last-child {
  border-right: none;
}

.ticket-nav__label {
  display: block;
  padding: 10px 8px 4px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--cfd-burgundy);
  text-transform: uppercase;
}

.ticket-nav__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 4px 12px 14px;
  width: 100%;
  text-align: center;
  transition: color 0.15s;
}

.ticket-nav__name {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cfd-text);
  line-height: 1.3;
}

.ticket-nav__icon {
  width: 22px;
  height: 22px;
  background: var(--cfd-muted);
  opacity: 0.7;
}

.ticket-nav__icon img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.ticket-nav__icon--home {
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z'/%3E%3C/svg%3E") center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.ticket-nav__icon--globe {
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-1 17.93c-3.95-.49-7-3.85-7-7.93 0-.62.08-1.21.21-1.79L9 15v1c0 1.1.9 2 2 2v1.93zm6.9-2.54c-.26-.81-1-1.39-1.9-1.39h-1v-3c0-.55-.45-1-1-1H8v-2h2c.55 0 1-.45 1-1V7h2c1.1 0 2-.9 2-2v-.41c2.93 1.19 5 4.06 5 7.41 0 2.08-.8 3.97-2.1 5.39z'/%3E%3C/svg%3E") center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-1 17.93c-3.95-.49-7-3.85-7-7.93 0-.62.08-1.21.21-1.79L9 15v1c0 1.1.9 2 2 2v1.93zm6.9-2.54c-.26-.81-1-1.39-1.9-1.39h-1v-3c0-.55-.45-1-1-1H8v-2h2c.55 0 1-.45 1-1V7h2c1.1 0 2-.9 2-2v-.41c2.93 1.19 5 4.06 5 7.41 0 2.08-.8 3.97-2.1 5.39z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.ticket-nav__icon--clipboard,
.ticket-nav__icon--passport,
.ticket-nav__icon--luggage,
.ticket-nav__icon--tickets,
.ticket-nav__icon--default {
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M14 2H6c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V8l-6-6z'/%3E%3C/svg%3E") center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M14 2H6c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V8l-6-6z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.ticket-nav__item--active::after,
.ticket-nav > li.current-menu-item::after,
.ticket-nav > li:hover::after,
.ticket-nav > .ticket-nav__item:hover::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 12%;
  right: 12%;
  height: 2px;
  background: var(--cfd-burgundy);
}

.ticket-nav__item--active .ticket-nav__name,
.ticket-nav > li.current-menu-item .ticket-nav__name {
  color: var(--cfd-burgundy);
}

/* ─── Post meta ─── */

.post-meta {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cfd-muted);
}

.post-meta__sep {
  margin: 0 6px;
  opacity: 0.6;
}

/* ─── Hero section (homepage) ─── */

.hero-section {
  border-bottom: 1px solid var(--cfd-border);
  background: linear-gradient(180deg, var(--cfd-cream) 0%, var(--cfd-cream-alt) 100%);
}

/* Split lead: image left | copy + briefings right */
.cfd-home-hero-board {
  border-bottom: 1px solid var(--cfd-border);
}

.cfd-home-hero-split {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
  padding: clamp(24px, 3vw, 40px) var(--cfd-gutter, 24px);
}

.cfd-home-hero-split__panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
  gap: clamp(20px, 2.5vw, 36px);
  align-items: start;
  min-width: 0;
}

.cfd-home-hero-split__media {
  display: block;
  border: 1px solid var(--cfd-border);
  overflow: hidden;
  background: #ddd9d0;
}

.cfd-home-hero-split__image,
.cfd-home-hero-split__placeholder {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.cfd-home-hero-split__placeholder {
  min-height: 200px;
  background: linear-gradient(135deg, #ddd9d0 0%, #c8c2b6 50%, #a8322d 100%);
}

.cfd-home-hero-split__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  padding-top: 4px;
}

.cfd-home-hero-split__category,
.cfd-home-hero-split__content .cfd-kicker__cat {
  margin-bottom: 1rem;
}

.cfd-home-hero-split__title {
  font-family: var(--cfd-serif);
  font-size: clamp(1.5rem, 2.6vw, 2.125rem);
  font-weight: 500;
  line-height: 1.2;
  margin: 0 0 12px;
  color: var(--cfd-text);
}

.cfd-home-hero-split__title a {
  color: inherit;
  text-decoration: none;
}

.cfd-home-hero-split__title a:hover {
  color: var(--cfd-burgundy);
}

.cfd-home-hero-split__meta {
  margin-bottom: 14px;
}

.cfd-home-hero-split__meta .post-meta,
.cfd-home-hero-split__meta .post-meta time,
.cfd-home-hero-split__meta .post-meta__read {
  font-family: var(--cfd-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--cfd-muted);
  text-transform: uppercase;
}

.cfd-home-hero-split__excerpt {
  font-family: var(--cfd-sans);
  font-size: 15px;
  line-height: 1.6;
  color: var(--cfd-muted);
  margin: 0 0 16px;
  max-width: 42em;
}

.cfd-home-hero-split__more {
  font-family: var(--cfd-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cfd-burgundy);
  text-decoration: none;
}

.cfd-home-hero-split__more:hover {
  text-decoration: underline;
}

/* Legacy block pattern / overlay hero */
.hero-section__grid {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 380px);
  min-height: 420px;
}

.hero-feature__link {
  display: block;
  height: 100%;
  color: #fff;
}

.hero-feature__link:hover {
  color: #fff;
}

.hero-feature__media {
  position: relative;
  height: 100%;
  min-height: 420px;
  overflow: hidden;
}

.hero-feature__image,
.hero-feature__placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 420px;
}

.hero-feature__placeholder {
  background: linear-gradient(135deg, #4a5568 0%, #2d3748 50%, #c05621 100%);
}

.hero-feature__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 32px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.1) 55%, transparent 100%);
}

/* Featured-image overlay category tags (homepage hero, lead card) */
.cfd-kicker__cat,
.cfd-overlay__category {
  display: inline-block;
  align-self: flex-start;
  background: #a8322d;
  color: #fff;
  padding: 0.45rem 0.65rem;
  font-family: var(--cfd-sans);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1.2;
  text-transform: uppercase;
  text-decoration: none;
  border: 0;
  border-radius: 0;
}

.hero-feature__overlay .cfd-kicker__cat,
.hero-feature__overlay .cfd-overlay__category,
.cfd-lead-card .cfd-kicker__cat,
.cfd-lead-card .cfd-overlay__category {
  margin-bottom: 1rem;
}

.hero-feature__overlay .cfd-kicker__cat:hover,
.hero-feature__overlay .cfd-overlay__category:hover,
.cfd-lead-card .cfd-kicker__cat:hover,
.cfd-lead-card .cfd-overlay__category:hover {
  color: #fff;
  text-decoration: none;
}

.hero-feature__title {
  font-family: var(--cfd-serif);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 500;
  line-height: 1.2;
  max-width: 90%;
  margin-bottom: 12px;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.hero-feature__meta .post-meta,
.hero-feature__meta .post-meta time,
.hero-feature__meta .post-meta__read {
  color: #fff;
}

.hero-feature__arrow {
  position: absolute;
  right: 32px;
  bottom: 32px;
  font-size: 24px;
  opacity: 0.9;
}

/* Briefings panel */
.briefings-panel {
  padding: 24px var(--cfd-gutter, 24px);
  display: flex;
  flex-direction: column;
}

.briefings-panel--home {
  max-width: none;
}

.cfd-home-hero-board__aside.briefings-panel--home {
  border-left: 1px solid var(--cfd-border);
  border-top: none;
  padding: 4px 0 0 clamp(16px, 2vw, 28px);
  align-self: stretch;
}

.briefings-panel--home-standalone {
  border-left: none;
  border-top: none;
}

.briefings-panel__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--cfd-border);
}

.briefings-panel__title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.briefings-panel__all {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--cfd-burgundy);
  text-transform: uppercase;
}

.briefings-panel__list {
  display: flex;
  flex-direction: column;
  gap: 0;
  flex: 1;
}

.briefing-card {
  display: grid;
  grid-template-columns: 72px 1fr 24px;
  gap: 12px;
  align-items: start;
  padding: 16px 0;
  border-bottom: 1px solid var(--cfd-border);
}

.briefing-card:last-child {
  border-bottom: none;
}

.briefing-card__thumb {
  display: block;
}

.briefing-card__image,
.briefing-card__placeholder {
  width: 72px;
  height: 72px;
  object-fit: cover;
  background: #ddd9d0;
}

.briefing-card__category {
  display: block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--cfd-burgundy);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.briefing-card__title {
  font-family: var(--cfd-serif);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.35;
  margin-bottom: 6px;
}

.briefing-card__bookmark {
  border: none;
  background: transparent;
  width: 18px;
  height: 22px;
  padding: 0;
  cursor: pointer;
  opacity: 0.4;
}

.briefing-card__bookmark span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--cfd-muted);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M17 3H7c-1.1 0-2 .9-2 2v16l7-3 7 3V5c0-1.1-.9-2-2-2z'/%3E%3C/svg%3E") center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M17 3H7c-1.1 0-2 .9-2 2v16l7-3 7 3V5c0-1.1-.9-2-2-2z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ─── Filter bar ─── */

.articles-section {
  padding: 0;
}

.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 24px var(--cfd-gutter);
  border-bottom: 1px solid var(--cfd-border);
}

.filter-bar__heading {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.filter-bar__filters {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 20px;
}

.filter-bar__label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--cfd-muted);
  text-transform: uppercase;
}

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
}

.filter-tabs__link {
  display: block;
  padding: 4px 0;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cfd-muted);
  border-bottom: 2px solid transparent;
}

.filter-tabs__item--active .filter-tabs__link {
  color: var(--cfd-burgundy);
  border-bottom-color: var(--cfd-burgundy);
}

/* ─── Articles grid ─── */

.articles-grid {
  display: grid;
  border-top: 1px solid var(--cfd-border);
}

.articles-grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

.article-card {
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--cfd-border);
  border-bottom: 1px solid var(--cfd-border);
  min-height: 100%;
}

.articles-grid--4 .article-card:nth-child(4n) {
  border-right: none;
}

.article-card__media {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border-bottom: 1px solid var(--cfd-border);
}

.article-card__image,
.article-card__placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.article-card__placeholder {
  background: #ddd9d0;
  min-height: 160px;
}

.article-card:hover .article-card__image {
  transform: scale(1.03);
}

.article-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 20px 20px 48px;
  position: relative;
}

.article-card__category {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--cfd-burgundy);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.article-card__title {
  font-family: var(--cfd-serif);
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.35;
  margin-bottom: 10px;
}

.article-card__title a:hover {
  color: var(--cfd-burgundy);
}

.article-card__body .post-meta {
  margin-bottom: 12px;
}

.article-card__excerpt {
  font-size: 13px;
  line-height: 1.55;
  color: var(--cfd-muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-card__arrow {
  position: absolute;
  right: 20px;
  bottom: 20px;
  font-size: 18px;
  color: var(--cfd-muted);
}

/* ─── Newsletter ─── */

.newsletter-band {
  margin: 0;
  border-top: 1px solid var(--cfd-border);
  background: var(--cfd-newsletter-bg);
}

.newsletter-band__inner {
  display: grid;
  grid-template-columns: 120px 1fr minmax(280px, 420px);
  align-items: center;
  gap: 32px;
  padding: 40px var(--cfd-gutter);
}

.passport-art {
  width: 100px;
  height: auto;
  opacity: 0.9;
}

.newsletter-band__title {
  font-family: var(--cfd-serif);
  font-size: 1.75rem;
  font-weight: 500;
  margin-bottom: 8px;
}

.newsletter-band__text {
  font-size: 14px;
  color: var(--cfd-muted);
  max-width: 420px;
}

.newsletter-band__form {
  display: flex;
  gap: 0;
  border: 1px solid var(--cfd-border);
}

.newsletter-band__input {
  flex: 1;
  min-width: 0;
  padding: 14px 16px;
  border: none;
  font-family: inherit;
  font-size: 14px;
  background: #fff;
}

.newsletter-band__input:focus {
  outline: 2px solid var(--cfd-burgundy);
  outline-offset: -2px;
}

.newsletter-band__btn {
  padding: 14px 24px;
  border: none;
  background: var(--cfd-burgundy);
  color: #fff;
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  cursor: pointer;
  white-space: nowrap;
}

.newsletter-band__btn:hover {
  background: var(--cfd-burgundy-alt);
  color: #fff;
}

/* ─── In-article ticket callout (block pattern) ─── */

.cfd-ticket-callout {
  margin: 32px 0;
  padding: 20px 24px 20px 28px;
  border: 1px solid var(--cfd-border);
  border-left: 4px solid var(--cfd-burgundy);
  background: var(--cfd-k-cream, #f9f8f4);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}

.cfd-ticket-callout__kicker {
  margin: 0 0 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cfd-burgundy);
}

.cfd-ticket-callout__text {
  margin: 0;
  color: var(--cfd-text, #1a1a1a);
  line-height: 1.55;
}

/* ─── Category topic hub ─── */

.cfd-category-hub__wrap {
  max-width: var(--cfd-ticket-max, 1496px);
  margin: 0 auto;
}

.category-hub-hero__visual {
  margin-top: 24px;
  border-top: 1px solid var(--cfd-border);
  padding-top: 24px;
}

.category-hub-hero__image {
  display: block;
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 2px;
}

.category-hub-filters .filter-tabs__link[aria-current="true"] {
  color: var(--cfd-burgundy);
  pointer-events: none;
}

/* ─── Archive hero & breadcrumbs ─── */

.archive-hero {
  border-bottom: 1px solid var(--cfd-border);
  padding: 32px var(--cfd-gutter);
}

.archive-hero__inner {
  display: grid;
  grid-template-columns: 74px 1fr auto;
  gap: 24px;
  align-items: center;
}

.archive-hero__title {
  font-family: var(--cfd-serif);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 500;
  margin-top: 8px;
}

.archive-hero__desc {
  margin-top: 8px;
  color: var(--cfd-muted);
  max-width: 640px;
}

.breadcrumbs {
  margin-bottom: 4px;
}

.breadcrumbs__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cfd-muted);
}

.breadcrumbs__item:not(:last-child)::after {
  content: "/";
  margin-left: 8px;
  opacity: 0.5;
}

.breadcrumbs__item--current {
  color: var(--cfd-burgundy);
}

/* ─── Readiness badges (story cards) ─── */

.cfd-card-kicker {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  margin-bottom: 8px;
}

.cfd-readiness-badge {
  display: inline-block;
  padding: 2px 6px;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.3;
  border: 1px solid var(--cfd-border);
  background: var(--cfd-k-cream, #f9f8f4);
  color: var(--cfd-muted);
}

.cfd-readiness-badge--updated,
.cfd-readiness-badge--policy {
  border-color: var(--cfd-burgundy);
  color: var(--cfd-burgundy);
  background: rgba(168, 50, 45, 0.06);
}

.briefing-card__content .cfd-card-kicker {
  margin-bottom: 4px;
}

/* ─── Category topic hub ─── */

.cfd-category-hub__wrap {
  padding-bottom: 48px;
}

.category-hub-hero--ticket {
  background: var(--cfd-k-cream, #f9f8f4);
}

.category-hub-hero__eyebrow {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cfd-burgundy);
  margin: 0 0 6px;
}

.category-hub-hero__label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cfd-muted);
  margin: 0 0 4px;
}

.category-hub-hero__title {
  margin-top: 0;
}

.category-hub-hero__visual {
  margin-top: 0;
  border-top: 1px solid var(--cfd-border);
}

.category-hub-hero__image {
  display: block;
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: cover;
}

.category-hub-filters {
  padding: 20px var(--cfd-gutter);
  border-bottom: 1px solid var(--cfd-border);
  background: #fff;
}

.category-hub-filters__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
}

.cfd-category-hub__grid {
  padding: 32px var(--cfd-gutter);
}

/* Ticket callout (block pattern) */
.cfd-ticket-callout {
  margin: 2rem 0;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--cfd-border);
  border-left: 3px solid var(--cfd-burgundy);
  background: var(--cfd-k-cream, #f9f8f4);
}

.cfd-ticket-callout__kicker {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cfd-burgundy);
  margin: 0 0 8px;
}

.cfd-ticket-callout__text {
  margin: 0;
  color: var(--cfd-ink, #1a1a1a);
  line-height: 1.55;
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 80px var(--cfd-gutter);
  border-bottom: 1px solid var(--cfd-border);
}

.empty-state__stamp {
  margin: 0 auto 24px;
}

.empty-state__title {
  font-family: var(--cfd-serif);
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.empty-state__text {
  color: var(--cfd-muted);
  margin-bottom: 24px;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.empty-state__btn {
  display: inline-block;
  padding: 12px 24px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  background: var(--cfd-burgundy);
  color: #fff;
}

.empty-state__btn:hover {
  color: #fff;
  background: var(--cfd-burgundy-alt);
}

/* Single & page: assets/css/single.css (enqueued on singular templates) */

/* Pagination */
.navigation.pagination {
  padding: 32px var(--cfd-gutter);
  border-top: 1px solid var(--cfd-border);
  text-align: center;
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 8px;
  border: 1px solid var(--cfd-border);
  font-size: 12px;
  font-weight: 600;
}

.page-numbers.current {
  background: var(--cfd-burgundy);
  border-color: var(--cfd-burgundy);
  color: #fff;
}

/* ─── Footer ─── */

.site-footer {
  margin-top: 0;
}

.site-footer__main {
  background: var(--cfd-footer);
  color: rgba(255, 255, 255, 0.75);
  padding: 56px var(--cfd-gutter) 40px;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr 1.4fr;
  gap: 32px;
}

.footer-brand__logo {
  display: flex;
  width: 48px;
  height: 48px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.footer-brand__icon {
  width: 22px;
  height: 22px;
  background: #fff;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M21 16v-2l-8-5V3.5a1.5 1.5 0 00-3 0V9l-8 5v2l8-2.5V19l-2 1.5V22l3.5-1 3.5 1v-1.5L13 19v-5.5l8 2.5z'/%3E%3C/svg%3E") center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M21 16v-2l-8-5V3.5a1.5 1.5 0 00-3 0V9l-8 5v2l8-2.5V19l-2 1.5V22l3.5-1 3.5 1v-1.5L13 19v-5.5l8 2.5z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.footer-brand__name {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #fff;
  margin-bottom: 8px;
}

.footer-brand__tagline {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 20px;
  line-height: 1.5;
}

.footer-social__list {
  display: flex;
  gap: 12px;
}

.footer-social__link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  font-size: 10px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.8);
}

.footer-social__link:hover {
  border-color: var(--cfd-burgundy);
  color: #fff;
}

.footer-col__title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #fff;
  margin-bottom: 16px;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
}

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

.boarding-pass-widget {
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 20px;
  background: rgba(0, 0, 0, 0.25);
}

.boarding-pass-widget__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.boarding-pass-widget__label {
  display: block;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 4px;
}

.boarding-pass-widget__value {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #fff;
}

.boarding-pass-widget__status {
  margin-bottom: 12px;
}

.boarding-pass-widget__cleared {
  display: block;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--cfd-burgundy-alt);
  line-height: 1;
}

.boarding-pass-widget__barcode {
  display: block;
  width: 100%;
  max-width: 200px;
  height: 24px;
  object-fit: contain;
  object-position: left center;
  margin: 12px 0;
}

.boarding-pass-widget__thanks {
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.6;
}

.boarding-pass-widget__journey {
  display: block;
}

.boarding-pass-widget__plus {
  float: right;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.4);
}

.site-footer__legal {
  background: var(--cfd-black);
  padding: 16px var(--cfd-gutter);
}

.site-footer__legal-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 16px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

.site-footer__copy {
  justify-self: start;
}

.site-footer__legal-nav {
  justify-self: end;
}

.legal-links {
  display: flex;
  gap: 20px;
  justify-content: flex-end;
}

.legal-links a {
  color: rgba(255, 255, 255, 0.55);
}

.legal-links a:hover {
  color: #fff;
}

/* ─── Responsive ─── */

@media (max-width: 1200px) {
  .articles-grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .articles-grid--4 .article-card {
    border-right: 1px solid var(--cfd-border);
  }

  .articles-grid--4 .article-card:nth-child(2n) {
    border-right: none;
  }

  .articles-grid--4 .article-card:nth-child(4n) {
    border-right: 1px solid var(--cfd-border);
  }

  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-boarding-pass {
    grid-column: 1 / -1;
  }
}

@media (max-width: 992px) {
  .ticket-header__brand {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .ticket-header__rail--left,
  .ticket-header__rail--right {
    justify-content: center;
    align-items: center;
  }

  .ticket-header__rail-text {
    flex-direction: row;
    align-items: center;
  }

  .rail-title {
    writing-mode: horizontal-tb;
    transform: none;
    max-height: none;
  }

  .cfd-home-hero-split {
    grid-template-columns: 1fr;
  }

  .cfd-home-hero-split__panel {
    grid-template-columns: 1fr;
  }

  .cfd-home-hero-board__aside.briefings-panel--home {
    border-left: none;
    border-top: 1px solid var(--cfd-border);
    padding: clamp(20px, 3vw, 28px) 0 0;
  }

  .hero-section__grid {
    grid-template-columns: 1fr;
  }

  .briefings-panel {
    border-left: none;
    border-top: 1px solid var(--cfd-border);
  }

  .newsletter-band__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .passport-art {
    margin: 0 auto;
  }

  .newsletter-band__text {
    margin: 0 auto;
  }

  .newsletter-band__form {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  /* Breadcrumbs & featured image captions (archives + shell-wide) */
  .cfd-breadcrumbs,
  nav.cfd-breadcrumbs,
  .cfd-article__breadcrumbs,
  nav[aria-label="Breadcrumb"],
  .breadcrumbs,
  .cfd-article__caption,
  .cfd-featured-caption,
  .cfd-article__figure figcaption,
  .wp-block-image figcaption,
  .wp-caption-text {
    display: none !important;
  }

  .cfd-site-shell {
    margin: 0;
    border: 1px solid var(--cfd-border);
    border-left: none;
    border-right: none;
    border-radius: 14px 14px 0 0;
    clip-path: none;
    background-image: linear-gradient(180deg, var(--cfd-cream) 0%, var(--cfd-cream-alt) 100%);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04), 0 8px 24px rgba(0, 0, 0, 0.06);
  }

  .cfd-site-shell::before {
    display: none;
  }

  .cfd-site-shell::after {
    display: none;
  }

  .utility-tagline {
    display: none;
  }

  .ticket-header__menu-btn {
    display: flex;
  }

  body:not(.cfd-classic-header-active) .ticket-nav-wrap {
    display: none;
    position: fixed;
    inset: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 100dvh;
    max-height: none;
    overflow-y: auto;
    align-items: stretch;
    text-align: left;
    z-index: var(--cfd-z-nav-panel, 99999);
    background: var(--cfd-cream);
    box-shadow: none;
  }

  body:not(.cfd-classic-header-active).cfd-menu-open .ticket-nav-wrap {
    display: flex;
    flex-direction: column;
  }

  body:not(.cfd-classic-header-active).cfd-menu-open .ticket-nav__link {
    display: grid;
    grid-template-columns: auto 1fr;
    flex-direction: row;
    justify-content: flex-start;
    justify-items: start;
    align-items: center;
    text-align: left;
    gap: 12px 16px;
    padding-left: var(--cfd-k-gutter, 16px);
    padding-right: var(--cfd-k-gutter, 16px);
  }

  body:not(.cfd-classic-header-active).cfd-menu-open .ticket-nav__label,
  body:not(.cfd-classic-header-active).cfd-menu-open .ticket-nav__name {
    text-align: left;
  }

  body:not(.cfd-classic-header-active) .ticket-nav {
    display: flex;
    flex-direction: column;
    grid-template-columns: none;
  }

  body:not(.cfd-classic-header-active) .ticket-nav > li,
  body:not(.cfd-classic-header-active) .ticket-nav > .ticket-nav__item {
    border-right: none;
    border-bottom: 1px solid var(--cfd-border);
  }

  .ticket-header {
    position: relative;
  }

  .articles-grid--4 {
    grid-template-columns: 1fr;
  }

  .articles-grid--4 .article-card {
    border-right: none !important;
  }

  .filter-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-footer__legal-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .site-footer__copy,
  .site-footer__legal-nav {
    justify-self: center;
  }

  .legal-links {
    flex-wrap: wrap;
    justify-content: center;
  }

  /* Featured images: fill aspect-ratio containers on mobile */
  .cfd-home-hero-split__media {
    display: block;
    min-height: 220px;
    aspect-ratio: 4 / 3;
    overflow: hidden;
  }

  .cfd-home-hero-split__media img,
  .cfd-home-hero-split__image,
  .cfd-home-hero-split__placeholder {
    width: 100%;
    height: 100%;
    min-height: 0;
    aspect-ratio: auto;
    object-fit: cover;
    object-position: center;
    display: block;
  }

  .hero-feature__link {
    display: block;
  }

  .hero-feature__media {
    display: block;
    min-height: 280px;
    aspect-ratio: 16 / 9;
    height: auto;
    overflow: hidden;
  }

  .hero-feature__media img,
  .hero-feature__image,
  .hero-feature__placeholder {
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: cover;
    object-position: center;
    display: block;
  }

  .cfd-lead-card__media,
  .cfd-lead-card__image-wrap {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
  }

  .cfd-lead-card__image,
  .cfd-lead-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
  }

  .article-card__media {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
  }

  .article-card__media img,
  .article-card__image,
  .article-card__placeholder {
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: cover;
    object-position: center;
    display: block;
  }

  .cfd-thumb,
  .briefing-card__thumb {
    display: block;
    overflow: hidden;
    aspect-ratio: 1;
  }

  .cfd-thumb img,
  .briefing-card__image,
  .briefing-card__placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
  }
}

/* ─── Mobile filter strip ─── */

.cfd-mobile-filter {
  display: none;
  border-top: 1px dashed var(--cfd-border);
  border-bottom: 1px dashed var(--cfd-border);
  padding: 14px var(--cfd-gutter);
  background: var(--cfd-cream);
}

body.cfd-departure-header-active .cfd-mobile-filter {
  display: none !important;
}

.cfd-mobile-filter__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.cfd-mobile-filter__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
}

.cfd-mobile-filter__label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cfd-burgundy);
}

.cfd-mobile-filter__icon {
  width: 22px;
  height: 22px;
  background: var(--cfd-text);
}

.cfd-mobile-filter__icon--globe {
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-1 17.93c-3.95-.49-7-3.85-7-7.93 0-.62.08-1.21.21-1.79L9 15v1c0 1.1.9 2 2 2v1.93zm6.9-2.54c-.26-.81-1-1.39-1.9-1.39h-1v-3c0-.55-.45-1-1-1H8v-2h2c.55 0 1-.45 1-1V7h2c1.1 0 2-.9 2-2v-.41c2.93 1.19 5 4.06 5 7.41 0 2.08-.8 3.97-2.1 5.39z'/%3E%3C/svg%3E") center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-1 17.93c-3.95-.49-7-3.85-7-7.93 0-.62.08-1.21.21-1.79L9 15v1c0 1.1.9 2 2 2v1.93zm6.9-2.54c-.26-.81-1-1.39-1.9-1.39h-1v-3c0-.55-.45-1-1-1H8v-2h2c.55 0 1-.45 1-1V7h2c1.1 0 2-.9 2-2v-.41c2.93 1.19 5 4.06 5 7.41 0 2.08-.8 3.97-2.1 5.39z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.cfd-mobile-filter__icon--pin {
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5a2.5 2.5 0 110-5 2.5 2.5 0 010 5z'/%3E%3C/svg%3E") center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5a2.5 2.5 0 110-5 2.5 2.5 0 010 5z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.cfd-mobile-filter__icon--check {
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z'/%3E%3C/svg%3E") center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.cfd-mobile-filter__icon--seat {
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 11V8h14v3H5zm0 2h14v5H5v-5zm2-9h10a2 2 0 012 2v3H5V6a2 2 0 012-2z'/%3E%3C/svg%3E") center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 11V8h14v3H5zm0 2h14v5H5v-5zm2-9h10a2 2 0 012 2v3H5V6a2 2 0 012-2z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.cfd-mobile-filter__value {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cfd-text);
}

/* Load more */
.cfd-load-more-wrap {
  padding: 28px var(--cfd-gutter) 36px;
  border-top: 1px solid var(--cfd-border);
}

.cfd-load-more {
  display: block;
  width: 100%;
  padding: 14px 20px;
  border: 1px solid var(--cfd-border);
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cfd-text);
  background: transparent;
}

.cfd-load-more:hover {
  border-color: var(--cfd-burgundy);
  color: var(--cfd-burgundy);
}

/* Footer boarding pass heading */
.boarding-pass-widget__heading {
  margin: 0 0 14px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.footer-boarding-pass--mobile {
  display: none;
}

.cfd-footer-stub {
  margin-top: 24px;
  padding: 16px;
  border: 1px dashed rgba(255, 255, 255, 0.35);
}

.cfd-footer-stub__quote {
  margin: 0 0 12px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
}

.cfd-footer-stub__barcode {
  display: block;
  width: 100%;
  max-width: 200px;
  height: 24px;
  object-fit: contain;
  object-position: left center;
}

.cfd-footer-stub__links {
  display: flex;
  gap: 16px;
  margin: 20px 0 12px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.cfd-footer-stub__links a {
  color: rgba(255, 255, 255, 0.75);
}

.cfd-footer-stub__copy {
  margin: 0;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.06em;
}

.cfd-site-footer {
  margin-top: 0;
}

@media (max-width: 768px) {
  body.cfd-home-layout.cfd-classic-header-active .cfd-mobile-filter {
    display: block;
  }

  .footer-boarding-pass--desktop,
  .site-footer__grid .footer-col {
    display: none;
  }

  .site-footer__grid {
    grid-template-columns: 1fr;
  }

  .footer-boarding-pass--mobile {
    display: block;
    padding: 0 var(--cfd-gutter) 24px;
  }

  .site-footer__main {
    padding-bottom: 24px;
  }

  .briefings-panel__header .briefings-panel__all {
    display: none;
  }

  .briefings-panel__header::after {
    content: "FILTER";
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--cfd-burgundy);
  }
}

@media (min-width: 769px) {
  .cfd-load-more-wrap {
    display: none;
  }
}
