/* =========================================================
   FLY WORLD — SINGLE POST TEMPLATE  (fly-world-single-post)
   Phase 1: editorial hero, featured image, typography, reading
   width, content styling. Loaded only on single standard Posts,
   scoped to body.fwsp-article.
========================================================= */

body.fwsp-article {
  --fwsp-deep: #04162f;
  --fwsp-navy: #092858;
  --fwsp-gold: #C59335;
  --fwsp-gold-ink: #8f6a22;
  --fwsp-ivory: #F8F6F1;
  --fwsp-canvas: #FCFBF8;
  --fwsp-ink: #26344b;
  --fwsp-muted: rgba(9, 40, 88, .68);
  --fwsp-line: rgba(9, 40, 88, .12);
  --fwsp-reading: 740px;

  background-color: var(--fwsp-canvas);
}

/* Outer editorial width system (Fly World), fed into Blocksy's own container
   variables. Scoped to #main so the site header and footer are unaffected. */
body.fwsp-article #main {
  --fwsp-shell: min(1240px, calc(100% - 64px));
  --theme-container-width-base: calc(100% - 64px);
  --theme-container-width: min(100%, var(--theme-container-width-base));
  --theme-narrow-container-max-width: var(--fwsp-reading);
}

/* Blocksy's top content padding is replaced by the hero's own spacing. */
body.fwsp-article .ct-container-full[data-vertical-spacing*="top"] {
  padding-top: 0;
}

body.fwsp-article .ct-container-full[data-vertical-spacing*="bottom"] {
  padding-bottom: 96px;
}

/* Defensive: never show Blocksy's own featured image if it is enabled later. */
body.fwsp-article article > .ct-featured-image {
  display: none;
}

body.fwsp-article .fwsp-shell {
  width: var(--fwsp-shell);
  margin-inline: auto;
}


/* =========================================================
   HERO
========================================================= */

body.fwsp-article .fwsp-hero {
  position: relative;
  padding: 72px 0 0;
  background:
    radial-gradient(circle at 50% 0%, rgba(197, 147, 53, .10), transparent 46%),
    linear-gradient(180deg, #F7F4EC 0%, var(--fwsp-canvas) 62%);
}

body.fwsp-article .fwsp-hero__copy {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

body.fwsp-article .fwsp-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 20px;
  font-family: "Manrope", sans-serif;
  font-size: 11px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--fwsp-gold-ink);
}

body.fwsp-article .fwsp-hero__rule {
  width: 28px;
  height: 1px;
  background: var(--fwsp-gold);
}

body.fwsp-article .fwsp-hero__title {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(54px, 4.3vw, 62px);
  line-height: 1.02;
  font-weight: 600;
  letter-spacing: -.025em;
  color: var(--fwsp-deep);
  text-wrap: balance;
}

body.fwsp-article .fwsp-hero__deck {
  max-width: 720px;
  margin: 22px auto 0;
  font-family: "Manrope", sans-serif;
  font-size: 18px;
  line-height: 1.65;
  font-weight: 400;
  color: var(--fwsp-muted);
  text-wrap: pretty;
}

body.fwsp-article .fwsp-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 0;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  font-family: "Manrope", sans-serif;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--fwsp-muted);
}

body.fwsp-article .fwsp-meta__item {
  margin: 0;
}

body.fwsp-article .fwsp-meta__item + .fwsp-meta__item::before {
  content: "\00B7";
  margin: 0 12px;
  font-weight: 700;
  color: var(--fwsp-gold);
}

body.fwsp-article .fwsp-meta span[itemprop="name"],
body.fwsp-article .fwsp-meta time {
  font-weight: 600;
  color: var(--fwsp-navy);
}

body.fwsp-article .fwsp-hero__media {
  position: relative;
  margin: 48px 0 0;
  aspect-ratio: 2 / 1;
  overflow: hidden;
  border-radius: 20px;
  background: #E9E4D8;
  box-shadow: 0 24px 60px -30px rgba(4, 22, 47, .35);
}

body.fwsp-article .fwsp-hero__img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center top;
  border-radius: 0;
}


/* =========================================================
   ARTICLE BODY
   Single centered reading column (Phase 2 can add a TOC rail
   by turning .entry-content into a grid area).
========================================================= */

body.fwsp-article article > .entry-content {
  --theme-content-spacing: 1.15em;
  --theme-link-initial-color: var(--fwsp-navy);
  --theme-link-hover-color: var(--fwsp-gold-ink);
  margin-top: 64px;
  font-family: "Manrope", sans-serif;
  font-size: 17.5px;
  line-height: 1.78;
  color: var(--fwsp-ink);
}

body.fwsp-article .entry-content > p {
  margin-block: 0 1.15em;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
}

body.fwsp-article .entry-content > p:first-child {
  font-size: 19px;
  line-height: 1.72;
  color: var(--fwsp-deep);
}

body.fwsp-article .entry-content strong {
  font-weight: 700;
  color: var(--fwsp-deep);
}

/* H2: Cormorant, gold rule above, generous section spacing. */
body.fwsp-article .entry-content > h2 {
  position: relative;
  margin: 2.6em auto .55em;
  padding-top: 22px;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(38px, 2.8vw, 42px);
  line-height: 1.08;
  font-weight: 600;
  letter-spacing: -.02em;
  color: var(--fwsp-deep);
  text-wrap: balance;
}

body.fwsp-article .entry-content > h2::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 36px;
  height: 2px;
  border-radius: 2px;
  background: var(--fwsp-gold);
}

body.fwsp-article .entry-content > h2:first-child {
  margin-top: 0;
}

/* H3: Manrope, restrained. */
body.fwsp-article .entry-content > h3 {
  margin: 1.8em auto .45em;
  font-family: "Manrope", sans-serif;
  font-size: 21px;
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--fwsp-deep);
}

body.fwsp-article .entry-content > h2 + h3 {
  margin-top: .9em;
}

body.fwsp-article .entry-content > h4 {
  margin: 1.6em auto .4em;
  font-family: "Manrope", sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--fwsp-deep);
}

/* Links */
body.fwsp-article .entry-content a {
  color: var(--fwsp-navy);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(197, 147, 53, .7);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
  transition: color .2s ease, text-decoration-color .2s ease;
}

body.fwsp-article .entry-content a:hover {
  color: var(--fwsp-gold-ink);
  text-decoration-color: var(--fwsp-gold);
}

body.fwsp-article .entry-content a:focus-visible {
  outline: 2px solid var(--fwsp-gold);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Lists: semantic ul/ol, gold markers. */
body.fwsp-article .entry-content > ul,
body.fwsp-article .entry-content > ol {
  margin-block: 0 1.3em;
  padding-inline-start: 1.35em;
}

body.fwsp-article .entry-content > ul > li,
body.fwsp-article .entry-content > ol > li {
  margin: 0 0 .55em;
  padding-inline-start: .35em;
  line-height: 1.7;
}

body.fwsp-article .entry-content > ul > li::marker {
  color: var(--fwsp-gold);
  font-size: 1.05em;
}

body.fwsp-article .entry-content > ol > li::marker {
  color: var(--fwsp-gold-ink);
  font-weight: 700;
}

body.fwsp-article .entry-content li > ul,
body.fwsp-article .entry-content li > ol {
  margin: .5em 0 0;
}

/* Tables: semantic markup kept; horizontal scroll on narrow screens. */
body.fwsp-article .entry-content > .wp-block-table {
  margin-block: 1.8em 2em;
  overflow-x: auto;
  border: 1px solid var(--fwsp-line);
  border-radius: 14px;
  background: #fff;
  -webkit-overflow-scrolling: touch;
}

body.fwsp-article .entry-content .wp-block-table table {
  width: 100%;
  min-width: 560px;
  margin: 0;
  border-collapse: collapse;
  font-family: "Manrope", sans-serif;
  font-size: 15px;
  line-height: 1.55;
}

body.fwsp-article .entry-content .wp-block-table th,
body.fwsp-article .entry-content .wp-block-table td {
  padding: 14px 18px;
  border: 0;
  border-bottom: 1px solid var(--fwsp-line);
  text-align: left;
  vertical-align: top;
}

body.fwsp-article .entry-content .wp-block-table thead th {
  background: var(--fwsp-navy);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  border-bottom: 2px solid var(--fwsp-gold);
}

body.fwsp-article .entry-content .wp-block-table tbody tr:nth-child(even) td {
  background: var(--fwsp-ivory);
}

body.fwsp-article .entry-content .wp-block-table tbody tr:last-child td {
  border-bottom: 0;
}

body.fwsp-article .entry-content .wp-block-table td strong {
  color: var(--fwsp-deep);
}

body.fwsp-article .entry-content .wp-block-table figcaption {
  padding: 10px 18px 14px;
  font-size: 13px;
  color: var(--fwsp-muted);
}

/* Blockquotes (reusable for future articles). */
body.fwsp-article .entry-content > blockquote,
body.fwsp-article .entry-content > .wp-block-quote,
body.fwsp-article .entry-content > .wp-block-pullquote {
  margin-block: 1.8em;
  padding: 26px 30px;
  border: 0;
  border-left: 2px solid var(--fwsp-gold);
  border-radius: 0 14px 14px 0;
  background: var(--fwsp-ivory);
  color: var(--fwsp-deep);
}

body.fwsp-article .entry-content > blockquote p,
body.fwsp-article .entry-content > .wp-block-quote p,
body.fwsp-article .entry-content > .wp-block-pullquote p {
  margin: 0 0 .5em;
  font-family: "Cormorant Garamond", serif;
  font-size: 26px;
  line-height: 1.35;
  font-weight: 500;
}

body.fwsp-article .entry-content blockquote cite,
body.fwsp-article .entry-content .wp-block-quote cite {
  display: block;
  margin-top: 8px;
  font-family: "Manrope", sans-serif;
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--fwsp-gold-ink);
}

/* Figures / images (reusable). */
body.fwsp-article .entry-content > figure.wp-block-image,
body.fwsp-article .entry-content > .wp-block-image {
  margin-block: 2em;
}

body.fwsp-article .entry-content .wp-block-image img {
  border-radius: 14px;
}

body.fwsp-article .entry-content figcaption,
body.fwsp-article .entry-content .wp-element-caption {
  margin-top: 10px;
  font-family: "Manrope", sans-serif;
  font-size: 13.5px;
  line-height: 1.5;
  text-align: center;
  color: var(--fwsp-muted);
}

body.fwsp-article .entry-content > hr,
body.fwsp-article .entry-content > .wp-block-separator {
  margin-block: 2.4em;
  border: 0;
  border-top: 1px solid var(--fwsp-line);
}

/* Admin-only edit link stays readable. */
body.fwsp-article .post-edit-link {
  margin-top: 40px;
  font-family: "Manrope", sans-serif;
  font-size: 13px;
}


/* =========================================================
   LAPTOP
========================================================= */

@media (max-width: 1280px) {
  body.fwsp-article #main {
    --fwsp-shell: min(1180px, calc(100% - 48px));
    --theme-container-width-base: calc(100% - 48px);
    --theme-container-width: min(100%, var(--theme-container-width-base));
  }
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1024px) {
  body.fwsp-article #main {
    --fwsp-shell: min(920px, calc(100% - 44px));
    --theme-container-width-base: calc(100% - 44px);
    --theme-container-width: min(100%, var(--theme-container-width-base));
  }

  body.fwsp-article .fwsp-hero {
    padding-top: 60px;
  }

  body.fwsp-article .fwsp-hero__title {
    font-size: clamp(46px, 5.6vw, 54px);
  }

  body.fwsp-article .fwsp-hero__deck {
    font-size: 17.5px;
  }

  body.fwsp-article .fwsp-hero__media {
    margin-top: 40px;
    aspect-ratio: 16 / 9;
  }

  body.fwsp-article article > .entry-content {
    margin-top: 56px;
  }

  body.fwsp-article .entry-content > h2 {
    font-size: 36px;
  }

  body.fwsp-article .ct-container-full[data-vertical-spacing*="bottom"] {
    padding-bottom: 80px;
  }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767px) {
  body.fwsp-article #main {
    --fwsp-shell: calc(100% - 30px);
    --theme-container-width-base: calc(100% - 30px);
    --theme-container-width: min(100%, var(--theme-container-width-base));
  }

  body.fwsp-article .fwsp-hero {
    padding-top: 44px;
  }

  body.fwsp-article .fwsp-hero__eyebrow {
    margin-bottom: 16px;
    font-size: 10px;
  }

  body.fwsp-article .fwsp-hero__title {
    font-size: clamp(38px, 10.6vw, 46px);
    line-height: 1.04;
  }

  body.fwsp-article .fwsp-hero__deck {
    margin-top: 16px;
    font-size: 16.5px;
    line-height: 1.62;
  }

  body.fwsp-article .fwsp-meta {
    margin-top: 20px;
    font-size: 13px;
  }

  body.fwsp-article .fwsp-meta__item + .fwsp-meta__item::before {
    margin: 0 9px;
  }

  body.fwsp-article .fwsp-hero__media {
    margin-top: 32px;
    aspect-ratio: 4 / 3;
    border-radius: 16px;
  }

  body.fwsp-article article > .entry-content {
    margin-top: 40px;
    font-size: 16.5px;
    line-height: 1.75;
  }

  body.fwsp-article .entry-content > p:first-child {
    font-size: 17.5px;
  }

  body.fwsp-article .entry-content > h2 {
    margin-top: 2.2em;
    padding-top: 18px;
    font-size: clamp(28px, 8vw, 32px);
  }

  body.fwsp-article .entry-content > h3 {
    font-size: 19px;
  }

  body.fwsp-article .entry-content .wp-block-table th,
  body.fwsp-article .entry-content .wp-block-table td {
    padding: 12px 14px;
  }

  body.fwsp-article .entry-content > blockquote,
  body.fwsp-article .entry-content > .wp-block-quote {
    padding: 22px 22px;
  }

  body.fwsp-article .entry-content > blockquote p,
  body.fwsp-article .entry-content > .wp-block-quote p {
    font-size: 22px;
  }

  body.fwsp-article .ct-container-full[data-vertical-spacing*="bottom"] {
    padding-bottom: 64px;
  }
}

/* Narrow screens: tables scroll sideways with a sticky first column and a quiet hint. */
@media (max-width: 600px) {
  body.fwsp-article .entry-content .wp-block-table th:first-child,
  body.fwsp-article .entry-content .wp-block-table td:first-child {
    position: sticky;
    left: 0;
    z-index: 1;
    min-width: 128px;
    background: #fff;
    box-shadow: 1px 0 0 var(--fwsp-line), 8px 0 12px -10px rgba(4, 22, 47, .25);
  }

  body.fwsp-article .entry-content .wp-block-table thead th:first-child {
    background: var(--fwsp-navy);
  }

  body.fwsp-article .entry-content .wp-block-table tbody tr:nth-child(even) td:first-child {
    background: var(--fwsp-ivory);
  }

  body.fwsp-article .entry-content > .wp-block-table::after {
    content: "Scroll sideways to compare \2192";
    position: sticky;
    left: 0;
    display: block;
    padding: 10px 14px;
    border-top: 1px solid var(--fwsp-line);
    background: #fff;
    font-family: "Manrope", sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .02em;
    color: var(--fwsp-muted);
  }
}

@media (max-width: 390px) {
  body.fwsp-article #main {
    --fwsp-shell: calc(100% - 22px);
    --theme-container-width-base: calc(100% - 22px);
    --theme-container-width: min(100%, var(--theme-container-width-base));
  }
}

@media (prefers-reduced-motion: reduce) {
  body.fwsp-article .entry-content a {
    transition: none;
  }
}



/* =========================================================
   PHASE 2 — TABLE OF CONTENTS, ARTICLE ENDING
========================================================= */

html:has(body.fwsp-article) {
  scroll-behavior: smooth;
}

body.fwsp-article .entry-content > h2[id] {
  scroll-margin-top: 96px;
}


/* ---------- TOC: tablet / mobile (<1280) — <details> ---------- */

body.fwsp-article .fwsp-toc {
  display: none;
}

body.fwsp-article .fwsp-toc-mobile {
  width: min(var(--fwsp-reading), var(--fwsp-shell));
  margin: 44px auto 0;
  border-top: 1px solid rgba(197, 147, 53, .5);
  border-bottom: 1px solid var(--fwsp-line);
  font-family: "Manrope", sans-serif;
}

body.fwsp-article .fwsp-toc-mobile + .entry-content {
  margin-top: 40px;
}

body.fwsp-article .fwsp-toc-mobile__summary {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 0 2px;
  list-style: none;
  cursor: pointer;
}

body.fwsp-article .fwsp-toc-mobile__summary::-webkit-details-marker {
  display: none;
}

body.fwsp-article .fwsp-toc-mobile__summary:focus-visible {
  outline: 2px solid var(--fwsp-gold);
  outline-offset: 3px;
  border-radius: 4px;
}

body.fwsp-article .fwsp-toc-mobile__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--fwsp-gold-ink);
}

body.fwsp-article .fwsp-toc-mobile__count {
  margin-left: auto;
  font-size: 13px;
  font-weight: 600;
  color: var(--fwsp-muted);
}

body.fwsp-article .fwsp-toc-mobile__chev {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: none;
  stroke: var(--fwsp-gold);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .25s ease;
}

body.fwsp-article .fwsp-toc-mobile[open] .fwsp-toc-mobile__chev {
  transform: rotate(180deg);
}

body.fwsp-article .fwsp-toc-mobile__list {
  margin: 0;
  padding: 0 0 18px;
  list-style: none;
  counter-reset: fwsp-toc;
}

body.fwsp-article .fwsp-toc-mobile__list li {
  margin: 0;
  counter-increment: fwsp-toc;
}

body.fwsp-article .fwsp-toc-mobile__list .fwsp-toc__link {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 9px 2px;
  border-top: 1px solid rgba(9, 40, 88, .06);
  font-size: 15px;
  line-height: 1.45;
  font-weight: 500;
  color: var(--fwsp-navy);
  text-decoration: none;
}

body.fwsp-article .fwsp-toc-mobile__list .fwsp-toc__link::before {
  content: counter(fwsp-toc, decimal-leading-zero);
  flex: 0 0 22px;
  font-variant-numeric: tabular-nums;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--fwsp-gold-ink);
}

body.fwsp-article .fwsp-toc-mobile__list .fwsp-toc__link:hover,
body.fwsp-article .fwsp-toc-mobile__list .fwsp-toc__link.is-active {
  color: var(--fwsp-deep);
  font-weight: 700;
}

body.fwsp-article .fwsp-toc-mobile__list .fwsp-toc__link:focus-visible {
  outline: 2px solid var(--fwsp-gold);
  outline-offset: 2px;
  border-radius: 2px;
}


/* ---------- TOC: desktop rail (>=1280) ---------- */

@media (min-width: 1280px) {
  body.fwsp-article .entry-content > h2[id] {
    scroll-margin-top: 120px;
  }

  /* Symmetric grid: left rail | centred 740px article | right balance space.
     --fwsp-half = (hero width - article width) / 2, so the TOC's left edge lines up with the hero's. */
  body.fwsp-has-toc #main article.type-post {
    --fwsp-half: 220px; /* 1280–1319: hero 1180px */
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, var(--fwsp-reading)) minmax(0, 1fr);
    align-items: start;
  }

  body.fwsp-has-toc #main article.type-post > * {
    grid-column: 1 / -1;
    min-width: 0;
  }

  body.fwsp-has-toc #main article.type-post > .fwsp-toc {
    display: block;
    grid-column: 1;
    grid-row: 2;
    align-self: stretch;
    justify-self: start;
    width: calc(var(--fwsp-half) - 44px);
    margin-top: 64px;
    margin-left: calc(100% - var(--fwsp-half));
  }

  body.fwsp-has-toc #main article.type-post > .fwsp-toc-mobile {
    display: none;
  }

  body.fwsp-has-toc #main article.type-post > .entry-content {
    --theme-container-width: 100%;
    --theme-block-width: 100%;
    grid-column: 2;
    grid-row: 2;
    width: 100%;
    margin-top: 64px;
  }

  body.fwsp-article .fwsp-toc__nav {
    position: sticky;
    top: 122px;
    max-height: calc(100vh - 150px);
    overflow-y: auto;
    padding: 2px 4px 4px 0;
    scrollbar-width: thin;
    scrollbar-color: rgba(197, 147, 53, .4) transparent;
    font-family: "Manrope", sans-serif;
  }

  body.fwsp-article .fwsp-toc__label {
    margin: 0 0 14px;
    font-size: 10.5px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--fwsp-gold-ink);
  }

  body.fwsp-article .fwsp-toc__list {
    margin: 0;
    padding: 0;
    list-style: none;
    border-left: 1px solid var(--fwsp-line);
  }

  body.fwsp-article .fwsp-toc__list li {
    margin: 0;
  }

  body.fwsp-article .fwsp-toc__list .fwsp-toc__link {
    display: block;
    margin-left: -1px;
    padding: 6px 0 6px 16px;
    border-left: 2px solid transparent;
    font-size: 13.5px;
    line-height: 1.42;
    font-weight: 500;
    color: rgba(9, 40, 88, .58);
    text-decoration: none;
    transition: color .2s ease, border-color .2s ease;
  }

  body.fwsp-article .fwsp-toc__list .fwsp-toc__link:hover {
    color: var(--fwsp-deep);
  }

  /* Active section: weight + gold rule, not colour alone. */
  body.fwsp-article .fwsp-toc__list .fwsp-toc__link.is-active {
    border-left-color: var(--fwsp-gold);
    font-weight: 700;
    color: var(--fwsp-deep);
  }

  body.fwsp-article .fwsp-toc__list .fwsp-toc__link:focus-visible {
    outline: 2px solid var(--fwsp-gold);
    outline-offset: 2px;
    border-radius: 2px;
  }
}


/* ---------- Article ending wrapper ---------- */

body.fwsp-article .fwsp-end {
  padding-top: 80px;
}

body.fwsp-article .fwsp-end__inner {
  width: min(1044px, var(--fwsp-shell));
  margin-inline: auto;
}

body.fwsp-article .fwsp-eyebrow {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 0 0 14px;
  font-family: "Manrope", sans-serif;
  font-size: 10.5px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--fwsp-gold-ink);
}

body.fwsp-article .fwsp-eyebrow--light {
  color: #D8AD59;
}

body.fwsp-article .fwsp-eyebrow__line {
  width: 28px;
  height: 1px;
  background: currentColor;
}


/* ---------- Planning CTA ---------- */

body.fwsp-article .fwsp-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 40px;
  padding: 44px 48px 42px;
  border-radius: 20px;
  color: #fff;
  background:
    radial-gradient(circle at 92% 0%, rgba(197, 147, 53, .24), transparent 40%),
    linear-gradient(135deg, var(--fwsp-navy) 0%, var(--fwsp-deep) 100%);
  box-shadow: 0 24px 50px -30px rgba(4, 22, 47, .5);
}

body.fwsp-article .fwsp-cta__title {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(32px, 2.8vw, 40px);
  line-height: 1.02;
  font-weight: 600;
  letter-spacing: -.02em;
  color: #fff;
}

body.fwsp-article .fwsp-cta__title em {
  font-style: normal;
  font-weight: 500;
  color: #D8AD59;
}

body.fwsp-article .fwsp-cta__text {
  max-width: 520px;
  margin: 12px 0 0;
  font-family: "Manrope", sans-serif;
  font-size: 15px;
  line-height: 1.65;
  color: rgba(255, 255, 255, .78);
}

body.fwsp-article .fwsp-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Buttons: Fly World CTA language (glare sweep, lift, inset highlight). */
body.fwsp-article .fwsp-btn {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  min-height: 52px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: "Manrope", sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .02em;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, border-color .25s ease;
}

body.fwsp-article .fwsp-btn::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -70%;
  left: -60%;
  width: 30%;
  height: 240%;
  transform: rotate(24deg);
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .42), transparent);
  transition: left .55s ease;
}

body.fwsp-article .fwsp-btn svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .25s ease;
}

body.fwsp-article .fwsp-btn:hover,
body.fwsp-article .fwsp-btn:focus-visible {
  transform: translateY(-2px);
}

body.fwsp-article .fwsp-btn:hover::before,
body.fwsp-article .fwsp-btn:focus-visible::before {
  left: 130%;
}

body.fwsp-article .fwsp-btn:active {
  transform: translateY(0);
  transition-duration: .08s;
}

body.fwsp-article .fwsp-btn:focus-visible {
  outline: 3px solid #D8AD59;
  outline-offset: 3px;
}

body.fwsp-article .fwsp-btn--gold {
  color: #061326;
  border-color: rgba(255, 255, 255, .15);
  background: linear-gradient(135deg, #e0b768 0%, #c59335 52%, #ad7926 100%);
  box-shadow: 0 14px 35px rgba(0, 0, 0, .22), inset 0 1px 0 rgba(255, 255, 255, .42);
}

body.fwsp-article .fwsp-btn--gold:hover {
  color: #061326;
  box-shadow: 0 20px 42px rgba(0, 0, 0, .30), inset 0 1px 0 rgba(255, 255, 255, .5);
}

body.fwsp-article .fwsp-btn--gold:hover svg,
body.fwsp-article .fwsp-btn--gold:focus-visible svg {
  transform: translateX(4px);
}

body.fwsp-article .fwsp-btn--glass {
  color: #fff;
  border-color: rgba(255, 255, 255, .26);
  background: rgba(255, 255, 255, .07);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .10), 0 12px 28px rgba(0, 0, 0, .10);
}

body.fwsp-article .fwsp-btn--glass::before {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .18), transparent);
}

body.fwsp-article .fwsp-btn--glass svg {
  color: #D8AD59;
}

body.fwsp-article .fwsp-btn--glass:hover {
  color: #fff;
  border-color: rgba(216, 173, 89, .55);
  background: rgba(255, 255, 255, .12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 16px 34px rgba(0, 0, 0, .18);
}

body.fwsp-article .fwsp-btn--glass:hover svg,
body.fwsp-article .fwsp-btn--glass:focus-visible svg {
  transform: scale(1.08) rotate(-6deg);
}


/* ---------- Related Travel Insights ---------- */

body.fwsp-article .fwsp-related {
  margin-top: 72px;
}

body.fwsp-article .fwsp-related__head {
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--fwsp-line);
}

body.fwsp-article .fwsp-related__title {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(32px, 2.8vw, 40px);
  line-height: 1.02;
  font-weight: 600;
  letter-spacing: -.02em;
  color: var(--fwsp-deep);
}

body.fwsp-article .fwsp-related__title em {
  font-style: normal;
  font-weight: 500;
  color: var(--fwsp-gold);
}

body.fwsp-article .fwsp-related__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

body.fwsp-article .fwsp-related__grid--count-1 {
  grid-template-columns: minmax(0, 340px);
}

body.fwsp-article .fwsp-related__grid--count-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.fwsp-article .fwsp-rcard {
  min-width: 0;
}

body.fwsp-article .fwsp-rcard__link {
  display: block;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

body.fwsp-article .fwsp-rcard__link:focus-visible {
  outline: 3px solid var(--fwsp-gold);
  outline-offset: 4px;
  border-radius: 14px;
}

body.fwsp-article .fwsp-rcard__media {
  position: relative;
  aspect-ratio: 16 / 10.5;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid var(--fwsp-line);
  background: #E9E4D8;
  background-clip: padding-box;
}

body.fwsp-article .fwsp-rcard__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  transition: transform .8s cubic-bezier(.2, .7, .2, 1);
}

body.fwsp-article .fwsp-rcard__copy {
  padding: 16px 2px 0;
}

body.fwsp-article .fwsp-rcard__cat {
  margin: 0 0 8px;
  font-family: "Manrope", sans-serif;
  font-size: 10px;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--fwsp-gold-ink);
}

body.fwsp-article .fwsp-rcard__title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: 24px;
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -.015em;
  color: var(--fwsp-deep);
  transition: color .25s ease;
}

body.fwsp-article .fwsp-rcard__arrow {
  display: inline-flex;
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin-top: 3px;
  color: var(--fwsp-gold);
  transition: transform .3s ease;
}

body.fwsp-article .fwsp-rcard__arrow svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body.fwsp-article .fwsp-rcard__excerpt {
  margin: 8px 0 0;
  font-family: "Manrope", sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: var(--fwsp-muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

body.fwsp-article .fwsp-rcard__link:focus-visible .fwsp-rcard__img {
  transform: scale(1.04);
}

@media (hover: hover) {
  body.fwsp-article .fwsp-rcard__link:hover .fwsp-rcard__img {
    transform: scale(1.04);
  }

  body.fwsp-article .fwsp-rcard__link:hover .fwsp-rcard__title {
    color: var(--fwsp-navy);
  }

  body.fwsp-article .fwsp-rcard__link:hover .fwsp-rcard__arrow {
    transform: translate(3px, -3px);
  }
}


/* ---------- Back to Travel Insights ---------- */

body.fwsp-article .fwsp-back {
  margin: 52px 0 0;
}

body.fwsp-article .fwsp-back__link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-family: "Manrope", sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--fwsp-navy);
  text-decoration: none;
}

body.fwsp-article .fwsp-back__link span {
  border-bottom: 1px solid rgba(197, 147, 53, .55);
  padding-bottom: 3px;
  transition: border-color .2s ease;
}

body.fwsp-article .fwsp-back__link svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: var(--fwsp-gold);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .25s ease;
}

body.fwsp-article .fwsp-back__link:hover {
  color: var(--fwsp-deep);
}

body.fwsp-article .fwsp-back__link:hover span {
  border-color: var(--fwsp-gold);
}

body.fwsp-article .fwsp-back__link:hover svg {
  transform: translateX(-3px);
}

body.fwsp-article .fwsp-back__link:focus-visible {
  outline: 2px solid var(--fwsp-gold);
  outline-offset: 4px;
  border-radius: 2px;
}


/* ---------- Ending: tablet ---------- */

@media (max-width: 1023px) {
  body.fwsp-article .fwsp-cta {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
    padding: 38px 36px 36px;
  }

  /* One editorial row per related story: no orphan cards. */
  body.fwsp-article .fwsp-related__grid,
  body.fwsp-article .fwsp-related__grid--count-1,
  body.fwsp-article .fwsp-related__grid--count-2 {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  body.fwsp-article .fwsp-rcard__link {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    align-items: center;
    gap: 24px;
  }

  body.fwsp-article .fwsp-rcard__copy {
    padding: 0;
  }
}


/* ---------- Ending: mobile ---------- */

@media (max-width: 767px) {
  body.fwsp-article .fwsp-end {
    padding-top: 56px;
  }

  body.fwsp-article .fwsp-cta {
    padding: 32px 22px 26px;
    border-radius: 18px;
  }

  body.fwsp-article .fwsp-cta__title {
    font-size: 32px;
  }

  body.fwsp-article .fwsp-cta__actions .fwsp-btn {
    flex: 1 1 100%;
  }

  body.fwsp-article .fwsp-related {
    margin-top: 56px;
  }

  body.fwsp-article .fwsp-rcard__link {
    display: block;
  }

  body.fwsp-article .fwsp-rcard__copy {
    padding: 14px 2px 0;
  }

  body.fwsp-article .fwsp-related__grid {
    gap: 32px;
  }

  body.fwsp-article .fwsp-back {
    margin-top: 40px;
  }
}


/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html:has(body.fwsp-article) {
    scroll-behavior: auto;
  }

  body.fwsp-article .fwsp-btn,
  body.fwsp-article .fwsp-btn svg,
  body.fwsp-article .fwsp-rcard__img,
  body.fwsp-article .fwsp-rcard__arrow,
  body.fwsp-article .fwsp-rcard__title,
  body.fwsp-article .fwsp-back__link svg,
  body.fwsp-article .fwsp-toc-mobile__chev,
  body.fwsp-article .fwsp-toc__link {
    transition: none !important;
  }

  body.fwsp-article .fwsp-btn:hover,
  body.fwsp-article .fwsp-btn:focus-visible {
    transform: none;
  }

  body.fwsp-article .fwsp-btn::before {
    display: none;
  }
}


/* Wide screens (hero 1240px): (1240 - 740) / 2 = 250px half-gutter; TOC 206px + 44px gap. */
@media (min-width: 1320px) {
  body.fwsp-has-toc #main article.type-post {
    --fwsp-half: 250px;
  }
}
