.avfc-article {
  --avfc-ink: #12283d;
  --avfc-navy: #0d2d4f;
  --avfc-blue: #59b9df;
  --avfc-blue-pale: #dff4fb;
  --avfc-orange: #f69a42;
  --avfc-orange-dark: #c95d0b;
  --avfc-cream: #fff8ec;
  --avfc-paper: #fffdf8;
  --avfc-muted: #5a6d7d;
  --avfc-line: #cad9e2;
  position: relative;
  left: 50%;
  width: min(1480px, calc(100vw - 32px));
  max-width: none !important;
  margin: 0 0 72px !important;
  overflow: hidden;
  border: 1px solid #d7e0e5;
  border-radius: 0 0 32px 32px;
  background: #fff;
  color: var(--avfc-ink) !important;
  box-shadow: 0 22px 60px rgba(13, 45, 79, .12);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1.72;
  transform: translateX(-50%);
}

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

.entry-content .avfc-article .avfc-display,
.entry-content .avfc-article .avfc-subhead,
.avfc-article .avfc-display,
.avfc-article .avfc-subhead {
  margin-top: 0;
  color: var(--avfc-navy) !important;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  font-style: normal !important;
  font-weight: 900 !important;
  letter-spacing: -.045em !important;
  line-height: 1.04 !important;
  text-transform: none !important;
}

.entry-content .avfc-article h1.avfc-display,
.avfc-article h1.avfc-display { font-size: clamp(3rem, 7vw, 6.9rem) !important; }

.entry-content .avfc-article h2.avfc-display,
.avfc-article h2.avfc-display {
  margin-bottom: 24px !important;
  font-size: clamp(2.35rem, 5vw, 4.7rem) !important;
}

.entry-content .avfc-article .avfc-subhead,
.avfc-article .avfc-subhead {
  margin-bottom: 10px !important;
  font-size: clamp(1.22rem, 2vw, 1.55rem) !important;
  letter-spacing: -.025em !important;
  line-height: 1.15 !important;
}

.avfc-article p { margin: 0 0 1.2em; color: inherit; }
.avfc-article a { color: #075c87; font-weight: 750; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.avfc-article a:hover { color: var(--avfc-orange-dark); }
.avfc-article img { display: block; max-width: 100%; height: auto; }
.avfc-article .wp-block-group,
.avfc-article .wp-block-columns { margin-top: 0; margin-bottom: 0; }

.avfc-article .avfc-eyebrow,
.entry-content .avfc-article .avfc-eyebrow {
  margin: 0 0 14px !important;
  color: var(--avfc-orange-dark) !important;
  font-size: .75rem !important;
  font-weight: 950 !important;
  letter-spacing: .17em !important;
  line-height: 1.3 !important;
  text-transform: uppercase !important;
}

.avfc-page-hero {
  position: relative;
  isolation: isolate;
  min-height: min(780px, 86vh);
  display: grid !important;
  align-items: end;
  overflow: hidden;
  padding: clamp(38px, 7vw, 105px) !important;
  border-radius: 0 !important;
  background-color: var(--avfc-navy);
  background-image: url("images/flight-cost-calculator-hero.webp");
  background-position: center 48%;
  background-size: cover;
}

.avfc-page-hero::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg, rgba(6, 29, 52, .94) 0%, rgba(8, 39, 68, .78) 48%, rgba(8, 39, 68, .18) 82%), linear-gradient(0deg, rgba(6, 29, 52, .78), transparent 58%);
  content: "";
}

.avfc-page-hero > .wp-block-shortcode {
  position: absolute;
  z-index: -2;
  inset: 0;
  margin: 0 !important;
}

.avfc-page-hero > .avfc-media-hero {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 48%;
}
.avfc-page-hero .wp-block-shortcode .avfc-media-hero { width: 100%; height: 100%; object-fit: cover; object-position: center 48%; }
.avfc-hero-copy { width: min(900px, 92%); margin: 0 !important; }
.entry-content .avfc-article .avfc-page-hero h1,
.avfc-article .avfc-page-hero h1 { max-width: 900px; margin: 0 0 24px !important; color: #fff !important; }
.avfc-page-hero .avfc-eyebrow { color: var(--avfc-orange) !important; }
.avfc-hero-deck { max-width: 790px; margin-bottom: 32px !important; color: #fff !important; font-size: clamp(1.08rem, 2vw, 1.42rem); font-weight: 620; line-height: 1.55; }
.avfc-button-row { display: flex; gap: 12px; flex-wrap: wrap; }
.avfc-button-link .wp-block-button__link,
.entry-content .avfc-article .avfc-button-link .wp-block-button__link {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border: 2px solid transparent;
  border-radius: 6px;
  background: var(--avfc-orange) !important;
  color: var(--avfc-navy) !important;
  font-size: .83rem;
  font-weight: 900;
  letter-spacing: .02em;
  text-decoration: none !important;
  box-shadow: 5px 5px 0 rgba(89, 185, 223, .8);
  transition: transform 150ms ease, box-shadow 150ms ease;
}
.avfc-button-link .wp-block-button__link:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 rgba(89, 185, 223, .8); }
.avfc-button-link--ghost .wp-block-button__link,
.entry-content .avfc-article .avfc-button-link--ghost .wp-block-button__link { border-color: rgba(255,255,255,.7); background: rgba(13,45,79,.58) !important; color: #fff !important; box-shadow: none; }

.avfc-section { padding: clamp(76px, 9vw, 132px) clamp(24px, 7vw, 104px) !important; }
.avfc-section--cream { background: var(--avfc-cream); }
.avfc-section--blue { background: var(--avfc-blue-pale); }
.avfc-section--tight { padding-top: clamp(52px, 7vw, 84px) !important; padding-bottom: clamp(52px, 7vw, 84px) !important; }
.avfc-section-intro { width: min(850px, 100%); margin-bottom: clamp(34px, 5vw, 64px) !important; }
.avfc-section-intro > p:last-child { margin-bottom: 0; color: var(--avfc-muted); font-size: 1.08rem; }
.avfc-calculator-intro { width: min(860px, 100%); margin: 0 auto 40px !important; text-align: center; }
.avfc-calculator-wrap { scroll-margin-top: 30px; }

.avfc-visual-split,
.avfc-story { display: grid !important; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(38px, 6vw, 86px); align-items: center; }
.avfc-visual-split > *,
.avfc-story > * { min-width: 0; }
.avfc-visual-split > .avfc-article-image,
.avfc-story-image:not(.avfc-image-frame) > .avfc-article-image {
  position: relative;
  aspect-ratio: 3 / 2;
  min-height: 320px;
  margin: 0 !important;
  overflow: hidden;
  border: 8px solid #fff;
  border-radius: 8px;
  background-color: #d8edf6;
  background-position: center;
  background-size: cover;
  box-shadow: 14px 16px 0 var(--avfc-blue), 0 20px 45px rgba(13,45,79,.18);
  transform: rotate(-1.15deg);
}
.avfc-visual-split > .avfc-article-image--hidden-costs { background-image: url("images/true-cost-of-a-flight-hidden-expenses.webp"); }
.avfc-visual-split > .avfc-article-image--best-value { background-image: url("images/cheapest-flight-vs-best-value-flight.webp"); transform: rotate(1deg); }
.avfc-story-image:not(.avfc-image-frame) > .avfc-article-image--carter-lisbon { background-image: url("images/carter-lowry-lisbon-travel.webp"); box-shadow: 14px 16px 0 var(--avfc-orange), 0 20px 45px rgba(13,45,79,.18); transform: rotate(1.1deg); }
.avfc-visual-split > .avfc-article-image img,
.avfc-story-image:not(.avfc-image-frame) > .avfc-article-image img { width: 100%; height: 100%; border: 0; border-radius: 0; object-fit: cover; box-shadow: none; transform: none; }
.avfc-visual-split > .avfc-article-image figcaption,
.avfc-story-image:not(.avfc-image-frame) > .avfc-article-image figcaption { position: absolute; right: 12px; bottom: 12px; left: 12px; margin: 0; padding: 8px 11px; border-radius: 5px; background: rgba(13,45,79,.84); color: #fff; font-size: .68rem; font-style: italic; line-height: 1.35; text-align: center; }
.avfc-visual-split:has(> .avfc-cost-grid):not(:has(> .avfc-article-image)):not(:has(> .avfc-image-frame))::before,
.avfc-visual-split:has(.avfc-value-panels):not(:has(> .avfc-article-image)):not(:has(> .avfc-image-frame))::after {
  display: block;
  aspect-ratio: 3 / 2;
  min-height: 320px;
  border: 8px solid #fff;
  border-radius: 8px;
  background-color: #d8edf6;
  background-position: center;
  background-size: cover;
  box-shadow: 14px 16px 0 var(--avfc-blue), 0 20px 45px rgba(13,45,79,.18);
  content: "";
}
.avfc-visual-split:has(> .avfc-cost-grid):not(:has(> .avfc-article-image)):not(:has(> .avfc-image-frame))::before { background-image: url("images/true-cost-of-a-flight-hidden-expenses.webp"); transform: rotate(-1.15deg); }
.avfc-visual-split:has(.avfc-value-panels):not(:has(> .avfc-article-image)):not(:has(> .avfc-image-frame))::after { background-image: url("images/cheapest-flight-vs-best-value-flight.webp"); transform: rotate(1deg); }
.avfc-story-image:not(.avfc-image-frame):not(:has(.avfc-article-image)) { aspect-ratio: 16 / 9; min-height: 320px; border: 8px solid #fff; border-radius: 8px; background: #d8edf6 url("images/carter-lowry-lisbon-travel.webp") center / cover no-repeat; box-shadow: 14px 16px 0 var(--avfc-orange), 0 20px 45px rgba(13,45,79,.18); transform: rotate(1.1deg); }
.avfc-image-frame {
  position: relative;
  aspect-ratio: 3 / 2;
  min-height: 320px;
  margin: 0 !important;
  overflow: hidden;
  border: 8px solid #fff;
  border-radius: 8px;
  background-color: #d8edf6;
  background-position: center;
  background-size: cover;
  box-shadow: 14px 16px 0 var(--avfc-blue), 0 20px 45px rgba(13,45,79,.18);
  transform: rotate(-1.15deg);
}
.avfc-image-frame--hidden-costs { background-image: url("images/true-cost-of-a-flight-hidden-expenses.webp"); }
.avfc-image-frame--best-value { background-image: url("images/cheapest-flight-vs-best-value-flight.webp"); transform: rotate(1deg); }
.avfc-image-frame--carter-lisbon { background-image: url("images/carter-lowry-lisbon-travel.webp"); box-shadow: 14px 16px 0 var(--avfc-orange), 0 20px 45px rgba(13,45,79,.18); transform: rotate(1.1deg); }
.avfc-image-frame > .wp-block-shortcode,
.avfc-image-frame > .avfc-article-image { position: absolute; inset: 0; margin: 0 !important; }
.avfc-image-frame .avfc-article-image { width: 100%; height: 100%; margin: 0 !important; }
.avfc-image-frame .avfc-article-image img { width: 100%; height: 100%; border: 0; border-radius: 0; object-fit: cover; box-shadow: none; transform: none; }
.avfc-image-frame .avfc-article-image figcaption {
  position: absolute;
  right: 12px;
  bottom: 12px;
  left: 12px;
  margin: 0;
  padding: 8px 11px;
  border-radius: 5px;
  background: rgba(13,45,79,.84);
  color: #fff;
  font-size: .68rem;
  font-style: italic;
  line-height: 1.35;
  text-align: center;
}

.avfc-cost-grid { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.avfc-cost-card {
  position: relative;
  min-height: 260px;
  padding: 32px 28px 27px !important;
  overflow: hidden;
  border: 1px solid var(--avfc-line);
  border-top: 5px solid var(--avfc-orange);
  border-radius: 18px;
  background: #fff;
}
.avfc-cost-card:nth-child(even) { border-top-color: var(--avfc-blue); background: #f4fbfe; }
.avfc-cost-card:nth-child(5) { grid-column: 1 / -1; }
.avfc-cost-card p:last-child { margin-bottom: 0; color: var(--avfc-muted); font-size: .91rem; line-height: 1.6; }
.avfc-card-index { display: grid; width: 42px; height: 42px; margin-bottom: 25px; place-items: center; border-radius: 50%; background: var(--avfc-navy); color: #fff; font-size: .72rem; font-weight: 950; }

.avfc-formula-strip { padding: clamp(58px, 7vw, 92px) clamp(24px, 7vw, 104px) !important; background: var(--avfc-navy); color: #fff !important; text-align: center; }
.entry-content .avfc-article .avfc-formula-strip h2,
.avfc-article .avfc-formula-strip h2 { color: #fff !important; }
.avfc-formula-strip > p { max-width: 880px; margin-inline: auto; color: #d8e7f0; }
.avfc-formula {
  width: min(1060px, 100%);
  margin: 32px auto 24px !important;
  padding: 22px 26px;
  border: 2px solid var(--avfc-blue);
  border-radius: 12px;
  background: rgba(255,255,255,.06);
  color: #fff !important;
  font-size: clamp(1rem, 2vw, 1.32rem);
  font-weight: 850;
  line-height: 1.55;
  box-shadow: 8px 8px 0 var(--avfc-orange);
}
.avfc-formula strong { color: var(--avfc-orange); }

.avfc-value-panels { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 30px !important; }
.avfc-value-panel { padding: 26px !important; border: 1px solid #cbd9e1; border-radius: 14px; background: #fff; }
.avfc-value-panel--best { background: var(--avfc-orange); transform: rotate(-.7deg); }
.avfc-value-panel p:last-child { margin-bottom: 0; font-size: .9rem; }

.avfc-story-copy { padding: 18px 0; }
.avfc-pullquote {
  margin: 28px 0 !important;
  padding: 22px 24px !important;
  border: 0 !important;
  border-left: 6px solid var(--avfc-orange) !important;
  background: #fff3e6;
  color: var(--avfc-navy);
  font-size: 1.12rem;
  font-weight: 800;
}
.avfc-pullquote p { margin: 0 !important; }

.avfc-strategy-list { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; counter-reset: strategy; }
.avfc-strategy-item { position: relative; min-height: 245px; padding: 32px 30px 28px 88px !important; border: 1px solid var(--avfc-line); border-radius: 16px; background: #fff; counter-increment: strategy; }
.avfc-strategy-item::before { position: absolute; top: 30px; left: 27px; display: grid; width: 43px; height: 43px; place-items: center; border-radius: 50%; background: var(--avfc-orange); color: var(--avfc-navy); content: counter(strategy, decimal-leading-zero); font-size: .72rem; font-weight: 950; }
.avfc-strategy-item:nth-child(3n + 2)::before { background: var(--avfc-blue); }
.avfc-strategy-item p:last-child { margin-bottom: 0; color: var(--avfc-muted); font-size: .91rem; }
.avfc-source-note { margin-top: 26px !important; padding: 20px 22px !important; border-left: 6px solid var(--avfc-orange); background: var(--avfc-cream); color: var(--avfc-muted); font-size: .8rem; }
.avfc-source-note p { margin: 0; }

.avfc-checklist-section { padding: clamp(70px, 8vw, 110px) clamp(24px, 7vw, 104px) !important; background: var(--avfc-navy); color: #fff !important; }
.entry-content .avfc-article .avfc-checklist-section h2,
.avfc-article .avfc-checklist-section h2 { color: #fff !important; }
.avfc-checklist-section .avfc-eyebrow { color: var(--avfc-orange) !important; }
.avfc-checklist { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 20px; margin: 38px 0 0 !important; padding: 0 !important; list-style: none !important; }
.avfc-checklist li { position: relative; margin: 0 !important; padding: 18px 20px 18px 54px; border: 1px solid rgba(255,255,255,.18); border-radius: 9px; background: rgba(255,255,255,.07); color: #fff; font-size: .9rem; }
.avfc-checklist li::before { position: absolute; top: 17px; left: 18px; display: grid; width: 24px; height: 24px; place-items: center; border-radius: 50%; background: var(--avfc-blue); color: var(--avfc-navy); content: "✓"; font-size: .75rem; font-weight: 950; }
.avfc-checklist li:last-child { border-color: var(--avfc-orange); background: var(--avfc-orange); color: var(--avfc-navy); font-weight: 900; }
.avfc-checklist li:last-child::before { background: var(--avfc-navy); color: #fff; }

.avfc-faq { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.avfc-faq-item { padding: 28px !important; border: 1px solid var(--avfc-line); border-radius: 14px; background: #fff; }
.avfc-faq-item p:last-child { margin-bottom: 0; color: var(--avfc-muted); font-size: .91rem; }

.avfc-last-thoughts { position: relative; padding: clamp(76px, 9vw, 132px) clamp(24px, 10vw, 150px) !important; overflow: hidden; background: var(--avfc-cream); text-align: center; }
.avfc-last-thoughts::before { position: absolute; top: 28px; left: 10%; width: 80%; height: 9px; background: repeating-linear-gradient(90deg, var(--avfc-orange) 0 28px, transparent 28px 38px, var(--avfc-blue) 38px 62px, transparent 62px 72px); content: ""; transform: rotate(-.2deg); }
.avfc-last-thoughts p { max-width: 860px; margin: 0 auto; font-size: 1.12rem; }

@media (max-width: 960px) {
  .avfc-visual-split,
  .avfc-story { grid-template-columns: 1fr; }
  .avfc-story-image { order: -1; }
  .avfc-cost-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .avfc-cost-card:nth-child(5) { grid-column: auto; }
}

@media (max-width: 720px) {
  .avfc-article { width: 100vw; margin-bottom: 40px !important; border-right: 0; border-left: 0; border-radius: 0; font-size: 16px; }
  .avfc-page-hero { min-height: 680px; padding: 34px 22px 52px !important; }
  .avfc-page-hero::after { background: linear-gradient(0deg, rgba(6,29,52,.96) 0%, rgba(6,29,52,.82) 66%, rgba(6,29,52,.22) 100%); }
  .avfc-page-hero .avfc-media-hero { object-position: 57% center; }
  .avfc-hero-copy { width: 100%; }
  .entry-content .avfc-article h1.avfc-display,
  .avfc-article h1.avfc-display { font-size: clamp(2.7rem, 15vw, 4.4rem) !important; }
  .entry-content .avfc-article h2.avfc-display,
  .avfc-article h2.avfc-display { font-size: clamp(2rem, 11vw, 3.1rem) !important; }
  .avfc-button-row { flex-direction: column; }
  .avfc-button-link,
  .avfc-button-link .wp-block-button__link { width: 100%; }
  .avfc-cost-grid,
  .avfc-value-panels,
  .avfc-strategy-list,
  .avfc-checklist,
  .avfc-faq { grid-template-columns: 1fr; }
  .avfc-strategy-item { min-height: 0; padding-left: 76px !important; }
  .avfc-strategy-item::before { left: 20px; }
  .avfc-image-frame { min-height: 260px; border-width: 5px; box-shadow: 8px 10px 0 var(--avfc-blue), 0 14px 32px rgba(13,45,79,.17); }
  .avfc-image-frame--carter-lisbon { box-shadow: 8px 10px 0 var(--avfc-orange), 0 14px 32px rgba(13,45,79,.17); }
  .avfc-visual-split > .avfc-article-image,
  .avfc-story-image:not(.avfc-image-frame) > .avfc-article-image { min-height: 260px; border-width: 5px; box-shadow: 8px 10px 0 var(--avfc-blue), 0 14px 32px rgba(13,45,79,.17); }
  .avfc-story-image:not(.avfc-image-frame) > .avfc-article-image--carter-lisbon { box-shadow: 8px 10px 0 var(--avfc-orange), 0 14px 32px rgba(13,45,79,.17); }
}

@media (prefers-reduced-motion: reduce) {
  .avfc-button-link .wp-block-button__link { transition: none; }
}

@media print {
  .avfc-article { left: auto; width: 100%; margin: 0 !important; border: 0; box-shadow: none; transform: none; }
  .avfc-page-hero { min-height: 440px; }
  .avfc-button-row { display: none; }
  .avfc-section,
  .avfc-checklist-section,
  .avfc-last-thoughts { padding: 40px !important; }
}
