/* ==================================================
  CONTRAIL CUSTOMIZATIONS (Oct 2026)
  Loaded after main.css in default.hbs. Uses Feature's own variables
  so it follows light/dark mode and the accent color settings.
================================================== */

/* ---------- Reading time in byline ---------- */
.s-byline-date ~ .s-byline-reading::before,
.s-byline-author ~ .s-byline-reading::before {
  content: '•';
  margin: 0 10px;
}
.s-byline-reading {
  display: flex;
  align-items: center;
  font-weight: 500;
}

/* ---------- Author box ---------- */
.ct-authorbox {
  max-width: 670px;
  margin: 48px auto 32px;
}
.ct-authorbox-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 24px;
  border-radius: var(--corner-radius-lg);
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border-card);
  color: var(--color-text);
}
.ct-authorbox-item + .ct-authorbox-item { margin-top: 16px; }
.ct-authorbox-photo { flex: 0 0 72px; }
.ct-authorbox-photo img,
.ct-authorbox-initial {
  display: block;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
}
.ct-authorbox-initial {
  overflow: hidden;
  white-space: nowrap;
  text-align: center;
  line-height: 72px;
  font-size: 0;
  background-color: var(--color-bg-button);
  color: var(--color-text-button);
}
.ct-authorbox-initial::first-letter { font-size: 28px; font-weight: 700; }
.ct-authorbox-label {
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.6;
}
.ct-authorbox-name {
  font-size: 20px;
  font-weight: var(--heading-font-weight);
  letter-spacing: var(--heading-letter-spacing);
  color: inherit;
  text-decoration: none;
}
.ct-authorbox-name:hover { text-decoration: underline; }
.ct-authorbox-bio {
  margin: 8px 0 14px;
  font-size: 16px;
  line-height: 1.55;
  opacity: 0.8;
}
.ct-authorbox-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
}
.ct-authorbox-more {
  font-size: 14px;
  font-weight: 600;
  color: inherit;
  text-decoration: none;
}
.ct-authorbox-more:hover { text-decoration: underline; }
.ct-authorbox-social { margin: 0; }
@media screen and (max-width: 560px) {
  .ct-authorbox-item { flex-direction: column; gap: 14px; padding: 20px; }
}

/* ---------- Team page ---------- */
.ct-team {
  max-width: 1080px;
  margin: 0 auto;
  padding: 16px 0 64px;
  color: var(--color-text);
}
.ct-team-head { margin-bottom: 40px; }
.ct-team-intro {
  margin-top: 12px;
  max-width: 640px;
  font-size: 18px;
  font-weight: 500;
  opacity: 0.6;
}
.ct-team-label {
  margin: 0 0 20px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.6;
}
.ct-team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}
.ct-team-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--corner-radius-lg);
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border-card);
  color: inherit;
  text-decoration: none;
  transition: transform 0.15s ease;
}
.ct-team-card:hover { transform: translateY(-3px); }
.ct-team-img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.ct-team-img--blank {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  background-color: var(--color-bg-button);
  color: var(--color-text-button);
}
.ct-team-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 20px 22px;
}
.ct-team-name {
  font-size: 20px;
  font-weight: var(--heading-font-weight);
  letter-spacing: var(--heading-letter-spacing);
}
.ct-team-bio { font-size: 15px; line-height: 1.55; opacity: 0.8; }
.ct-team-count {
  align-self: flex-start;
  margin-top: 4px;
  padding: 4px 10px;
  border-radius: var(--corner-radius);
  font-size: 12px;
  font-weight: 600;
  background-color: var(--color-gray-light);
}
[data-theme="dark"] .ct-team-count { background-color: rgba(255,255,255,0.08); }
.ct-team-content {
  margin-top: 56px;
  max-width: 670px;
}
@media screen and (max-width: 600px) {
  .ct-team-grid { grid-template-columns: 1fr; }
}

/* Names use the heading font (Poppins) */
.ct-authorbox-name,
.ct-team-name,
.ct-team-img--blank {
  font-family: var(--gh-font-heading, var(--heading-font-family)), sans-serif;
}

/* ==================================================
  Oct 16, 2026 bundle: scores, live label, follow the story,
  airline hubs, route map
================================================== */
:root {
  --ct-high: #1F7A4D;
  --ct-mid: #2E4470;
  --ct-low: #C26A00;
  --ct-live: #C8202F;
}
[data-theme=dark] { --ct-mid: #5B78B5; }

/* ---------- Score badge ---------- */
.ct-score[hidden] { display: none !important; }
.ct-score {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 26px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--ct-mid);
  color: #fff;
  font-family: var(--gh-font-heading, var(--heading-font-family)), sans-serif;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
}
.ct-tier-high { background: var(--ct-high); }
.ct-tier-mid { background: var(--ct-mid); }
.ct-tier-low { background: var(--ct-low); }

/* on cards: pinned to the image corner */
.s-card-image { position: relative; }
.s-card-image > .ct-score {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .25);
}
.s-card-row .s-card-image > .ct-score { top: 6px; left: 6px; min-width: 32px; height: 22px; font-size: 11px; }

/* on the review itself: a strip under the byline */
.ct-score--strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: baseline;
  gap: 4px 10px;
  height: auto;
  margin-top: 20px;
  padding: 14px 18px;
  border-radius: var(--corner-radius-lg);
  background: var(--color-bg-card) !important;
  border: 1px solid var(--color-border-card);
  border-left: 6px solid var(--ct-mid);
  color: var(--color-text);
}
.ct-score--strip.ct-tier-high { border-left-color: var(--ct-high); }
.ct-score--strip.ct-tier-low { border-left-color: var(--ct-low); }
.ct-score-num { font-size: 30px; font-weight: 700; }
.ct-score-of { font-size: 15px; opacity: .6; margin-left: -6px; }
.ct-score-label { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; opacity: .7; }
.ct-score-link { margin-left: auto; font-size: 14px; font-weight: 600; color: inherit; }

/* ---------- Live label ---------- */
.ct-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--ct-live);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  line-height: 1.4;
}
.ct-live::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
  animation: ct-pulse 1.6s ease-in-out infinite;
}
@keyframes ct-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
@media (prefers-reduced-motion: reduce) { .ct-live::before { animation: none; } }
.ct-live-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 14px; }
.ct-live-updated { font-size: 14px; font-weight: 600; color: var(--ct-live); }
[data-theme=dark] .ct-live-updated { color: #FF6B76; }
.ct-live--card { margin-bottom: 8px; align-self: flex-start; }

/* ---------- Follow the story ---------- */
.ct-series[hidden] { display: none; }
.ct-series {
  max-width: 670px;
  margin: 48px auto 0;
  padding: 24px;
  border-radius: var(--corner-radius-lg);
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border-card);
}
.ct-series-head { display: flex; flex-direction: column; gap: 2px; margin-bottom: 14px; }
.ct-series-label { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; opacity: .6; }
.ct-series-name {
  font-family: var(--gh-font-heading, var(--heading-font-family)), sans-serif;
  font-size: 22px;
  font-weight: var(--heading-font-weight);
  color: inherit;
  text-decoration: none;
}
.ct-series-name:hover { text-decoration: underline; }
.ct-series-list { list-style: none; margin: 0; padding: 0; }
.ct-series-item {
  position: relative;
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 2px 12px;
  padding: 0 0 14px 20px;
}
.ct-series-item::before {
  content: '';
  position: absolute;
  left: 4px; top: 8px; bottom: -8px;
  width: 2px;
  background: var(--color-border-card);
}
.ct-series-item:last-child::before { display: none; }
.ct-series-item::after {
  content: '';
  position: absolute;
  left: 0; top: 5px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--color-bg-button);
}
.ct-series-item time { font-size: 13px; font-weight: 600; opacity: .6; padding-top: 1px; }
.ct-series-item a { color: inherit; text-decoration: none; font-size: 16px; line-height: 1.45; }
.ct-series-item a:hover { text-decoration: underline; }
.ct-series-item.is-current::after { background: var(--ct-live); box-shadow: 0 0 0 4px rgba(200, 32, 47, .18); }
.ct-series-item.is-current a { font-weight: 700; }
.ct-series-here { grid-column: 2; font-size: 12px; font-weight: 600; opacity: .6; }
.ct-series-all { display: inline-block; margin-top: 4px; font-size: 14px; font-weight: 600; color: inherit; }
@media (max-width: 520px) {
  .ct-series { padding: 20px 16px; }
  .ct-series-item { grid-template-columns: 1fr; }
  .ct-series-here { grid-column: 1; }
}

/* ---------- Airline hub (tag pages) ---------- */
.ct-hub { margin-top: 8px; }
.ct-hub-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.ct-hub-title { font-size: 24px; }
.ct-hub-index { font-size: 14px; font-weight: 600; color: inherit; }
.ct-hub-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ct-hub-card { display: flex; flex-direction: column; gap: 8px; color: inherit; text-decoration: none; }
.ct-hub-card:hover .ct-hub-card-title { text-decoration: underline; }
.ct-hub-img {
  position: relative;
  display: block;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: var(--corner-radius-lg);
  background: var(--color-bg-card);
}
.ct-hub-img img { width: 100%; height: 100%; object-fit: cover; }
.ct-hub-img > .ct-score { position: absolute; top: 10px; left: 10px; box-shadow: 0 2px 8px rgba(0,0,0,.25); }
.ct-hub-card-title {
  font-family: var(--gh-font-heading, var(--heading-font-family)), sans-serif;
  font-weight: var(--heading-font-weight);
  font-size: 18px;
  line-height: 1.35;
}
.ct-hub-card-date { font-size: 13px; opacity: .6; }
.ct-hub-latest { margin-bottom: -24px; }
@media (max-width: 860px) { .ct-hub-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .ct-hub-grid { grid-template-columns: 1fr; } }

/* ---------- Route map page ---------- */
.ct-map-page { max-width: 1200px; }
.ct-map-header { margin: 8px 0 20px; }
.ct-map-eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; opacity: .6; margin-bottom: 4px; }
.ct-map-title { font-size: clamp(30px, 5vw, 44px); }
.ct-map-intro { max-width: 640px; margin-top: 8px; font-size: 18px; opacity: .8; }
.ct-map-legend { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 16px; font-size: 14px; font-weight: 600; }
.ct-map-legend span { display: inline-flex; align-items: center; gap: 8px; }
.ct-map-legend i { display: inline-block; width: 22px; height: 4px; border-radius: 2px; }
.ct-map-legend i.ct-tier-high { background: var(--ct-high); }
.ct-map-legend i.ct-tier-mid { background: var(--ct-mid); }
.ct-map-legend i.ct-tier-low { background: var(--ct-low); }
.ct-map {
  height: min(62vh, 560px);
  min-height: 340px;
  border-radius: var(--corner-radius-lg);
  border: 1px solid var(--color-border-card);
  background: var(--color-bg-card);
  z-index: 0;
}
.ct-map-pop { color: #141E32; text-decoration: none; font-size: 13px; line-height: 1.45; }
.ct-map-pop:hover { text-decoration: underline; }
.ct-map-listwrap { margin-top: 32px; }
.ct-map-subtitle { font-size: 22px; margin-bottom: 12px; }
.ct-map-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.ct-map-list a {
  display: grid;
  grid-template-columns: 48px 120px 1fr;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--corner-radius-lg);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-card);
  color: inherit;
  text-decoration: none;
}
.ct-map-list a:hover .ct-map-name { text-decoration: underline; }
.ct-map-route { font-weight: 700; font-size: 14px; letter-spacing: .04em; }
.ct-map-name { font-size: 15px; line-height: 1.4; }
.ct-map-index { margin-top: 16px; font-size: 15px; }
.ct-map-content { margin-top: 32px; }
@media (max-width: 600px) {
  .ct-map-list a { grid-template-columns: 44px 1fr; }
  .ct-map-name { grid-column: 1 / -1; }
}

/* ---------- As seen in (press strip) ---------- */
.ct-seen { margin: 4px 0 8px; }
.ct-seen-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 10px 28px; padding: 18px 0;
  border-top: 1px solid var(--color-border-card); border-bottom: 1px solid var(--color-border-card);
}
.ct-seen-label { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; opacity: .6; }
.ct-seen-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; }
.ct-seen-list li {
  font-family: var(--gh-font-heading, var(--heading-font-family)), sans-serif;
  font-size: 20px; font-weight: 700; letter-spacing: -.01em; opacity: .85;
}
.ct-seen-link { font-size: 14px; font-weight: 600; color: inherit; }
.ct-seen--compact { margin: 0 0 24px; }
.ct-seen--compact .ct-seen-inner {
  flex-direction: column; align-items: flex-start; gap: 8px; padding: 18px 20px;
  border: 1px solid var(--color-border-card); border-radius: var(--corner-radius-lg); background: var(--color-bg-card);
}
.ct-seen--compact .ct-seen-list { gap: 4px 16px; }
.ct-seen--compact .ct-seen-list li { font-size: 17px; }
@media (max-width: 600px) { .ct-seen-list li { font-size: 17px; } .ct-seen-list { justify-content: center; } }

/* ---------- Breaking banner (homepage) ---------- */
.ct-breaking-wrap { margin-bottom: 4px; }
.ct-breaking {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px;
  padding: 12px 16px; border-radius: var(--corner-radius-lg);
  background: rgba(200, 32, 47, .07); border: 1px solid rgba(200, 32, 47, .35);
  color: inherit; text-decoration: none;
}
.ct-breaking:hover .ct-breaking-title { text-decoration: underline; }
.ct-breaking-title {
  flex: 1 1 260px;
  font-family: var(--gh-font-heading, var(--heading-font-family)), sans-serif;
  font-weight: var(--heading-font-weight); font-size: 17px; line-height: 1.35;
}
.ct-breaking-time { font-size: 13px; font-weight: 600; color: var(--ct-live); }
[data-theme=dark] .ct-breaking-time { color: #FF6B76; }

/* As seen in: softer, blended version (Oct 16 tweak; also pasted in code injection) */
.ct-seen { margin: -8px 0 8px; }
.ct-seen-inner { border: 0; padding: 4px 0 20px; gap: 8px 24px; }
.ct-seen-label { font-family: var(--gh-font-heading), sans-serif; font-size: 11px; letter-spacing: .14em; }
.ct-seen-list li { font-size: 18px; opacity: .7; }
.ct-seen-link { font-family: var(--gh-font-heading), sans-serif; font-size: 13px; opacity: .8; }
.ct-seen--compact .ct-seen-inner { border: 1px solid var(--color-border-card); padding: 18px 20px; }

/* As seen in: stacked + tighter (Oct 16, matches code injection) */
.ct-seen { margin: -40px 0 -12px; }
.ct-seen-inner { border: 0; padding: 0; flex-direction: column; align-items: center; gap: 6px; }
.ct-seen-list { justify-content: center; gap: 6px 28px; }
.ct-seen--compact { margin: 0 0 24px; }
.ct-seen--compact .ct-seen-inner { align-items: flex-start; border: 1px solid var(--color-border-card); padding: 18px 20px; }
.ct-seen--compact .ct-seen-list { justify-content: flex-start; }

/* As seen in: official logos */
.ct-seen-list li { opacity: 1; }
.ct-seen-logo { display: block; height: 17px; width: auto; opacity: .7; }
.ct-seen-aol .ct-seen-logo, .ct-seen-yahoo .ct-seen-logo { height: 24px; }
.ct-seen--compact .ct-seen-logo { height: 14px; }
.ct-seen--compact .ct-seen-aol .ct-seen-logo, .ct-seen--compact .ct-seen-yahoo .ct-seen-logo { height: 20px; }
.ct-seen-list { gap: 10px 36px; align-items: center; }

/* Oct 16 spacing pass: live pill inline with card tags, tighter homepage */
.ct-live--tag { align-self: center; padding: 6px 12px; font-size: 12px; border-radius: var(--corner-radius); line-height: 120%; }
.ct-breaking-wrap { margin-bottom: -48px; }
.ct-breaking { padding: 10px 16px; }
.ct-seen { margin: -48px 0 -24px; }
@media (max-width: 639px) { .ct-breaking-wrap { margin-bottom: -28px; } .ct-seen { margin: -28px 0 -16px; } }

/* Account link styled like the Sign in button (theme left it as a plain link) */
.ct-account-btn { text-decoration: none !important; }

/* Sidebar "As seen in": undo homepage negative margins, smaller logos */
.ct-seen.ct-seen--compact { margin: 0 0 24px; }
.ct-seen.ct-seen--compact .ct-seen-list { gap: 10px 18px; }
.ct-seen.ct-seen--compact .ct-seen-logo { height: 12px; }
.ct-seen.ct-seen--compact .ct-seen-aol .ct-seen-logo,
.ct-seen.ct-seen--compact .ct-seen-yahoo .ct-seen-logo { height: 17px; }

/* "More on" box: ignore airline tag-color styling from code injection */
.ct-series a.ct-series-name,
.ct-series a.ct-series-all {
  background: none !important; color: var(--color-text) !important;
  padding: 0 !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important;
}
.ct-series a.ct-series-name { display: inline-block; font-size: 22px !important; }
.ct-series a.ct-series-all { text-decoration: underline !important; }

/* Route map: drawn land, plain ocean (no tiles) */
.ct-map { background: #F7F8FA !important; }
[data-theme=dark] .ct-map { background: #161A22 !important; }
.ct-map .leaflet-control-zoom a { color: #141E32; }

/* Route map (D3 version) */
.ct-map { height: auto !important; min-height: 0 !important; padding: 0; overflow: hidden; }
.ct-map-svg { display: block; width: 100%; height: auto; }
.ct-map-sphere { fill: #F7F8FA; }
.ct-map-land { fill: #E1E4EA; }
[data-theme=dark] .ct-map-sphere { fill: #161A22; }
[data-theme=dark] .ct-map-land { fill: #262C38; }
.ct-map-arc { fill: none; stroke-width: 2.6; stroke-linecap: round; transition: stroke-width .15s; }
.ct-map-arc-hit { fill: none; stroke: transparent; stroke-width: 14; }
.ct-arc-high { stroke: var(--ct-high); }
.ct-arc-mid { stroke: var(--ct-mid); }
.ct-arc-low { stroke: var(--ct-low); }
.ct-arc-none { stroke: #8A8F99; }
.ct-map-route-link:hover .ct-map-arc { stroke-width: 4.5; }
.ct-map-dot circle { fill: #fff; stroke: #141E32; stroke-width: 2; }
[data-theme=dark] .ct-map-dot circle { fill: #141E32; stroke: #fff; }

/* Mobile pass (Oct 16): logos fit, banner stacks */
@media (max-width: 639px) {
  .ct-seen-list { flex-wrap: wrap; gap: 10px 22px; max-width: 100%; }
  .ct-seen-logo { height: 13px; }
  .ct-seen-aol .ct-seen-logo, .ct-seen-yahoo .ct-seen-logo { height: 18px; }
  .ct-breaking { flex-direction: column; align-items: flex-start; gap: 6px; padding: 12px 14px; }
  .ct-breaking-title { flex: none; font-size: 16px; }
  .ct-breaking-time { font-size: 12px; }
  .ct-breaking-wrap { margin-bottom: -20px; }
}
