/**
 * The travel blog - listing and article.
 *
 * Built on the fh- design tokens (flighta_home_sections.css): maroon #5C1A2A, orange #E8820C,
 * the cream page and the grey card surfaces. No colour is invented here; the page has to read as
 * the same site as the rest of the consumer front end.
 *
 * Everything is scoped under .fb- so it cannot leak into the shared header, footer or hero.
 */

.fb-page { background: var(--fh-cream, #FFFBF5); }

/* ---- hero ----------------------------------------------------------------- */
.fb-hero {
    background: var(--fh-maroon, #5C1A2A);
    color: #fff;
    padding: 26px 0 44px;
}
.fb-wrap { width: min(1100px, 100% - 32px); margin-inline: auto; }

.fb-crumb { display: flex; align-items: center; gap: 8px; font-size: 13px; margin-bottom: 26px; }
.fb-crumb a { color: rgba(255, 255, 255, .78); text-decoration: none; }
.fb-crumb a:hover { color: #fff; text-decoration: underline; }
.fb-crumb span { color: rgba(255, 255, 255, .45); }
.fb-crumb em { font-style: normal; color: rgba(255, 255, 255, .78); }

.fb-eyebrow {
    display: block; margin-bottom: 14px;
    font-size: 12.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
    color: var(--fh-gold, #F2AE58);
}
.fb-hero h1 {
    margin: 0 0 14px;
    font-size: clamp(30px, 4.4vw, 42px); line-height: 1.18; font-weight: 800; color: #fff;
    max-width: 16ch;
}
.fb-hero__lead {
    margin: 0 0 26px; max-width: 62ch;
    font-size: 15.5px; line-height: 1.65; color: rgba(255, 255, 255, .82);
}

.fb-search { display: flex; gap: 12px; max-width: 560px; }
.fb-search input {
    flex: 1 1 auto; min-width: 0; height: 46px; padding: 0 16px;
    border: 1px solid rgba(255, 255, 255, .25); border-radius: 8px;
    background: #fff; color: var(--fh-ink, #101828);
    font: inherit; font-size: 14.5px; outline: none;
}
.fb-search input::placeholder { color: var(--fh-faint, #99A1AF); }
.fb-search button {
    flex: 0 0 auto; height: 46px; padding: 0 26px; border: 0; border-radius: 8px;
    background: var(--fh-orange, #E8820C); color: #fff;
    font: inherit; font-size: 14.5px; font-weight: 700; cursor: pointer;
    transition: filter .2s;
}
.fb-search button:hover { filter: brightness(1.07); }

/* ---- category pills -------------------------------------------------------- */
.fb-pills { display: flex; flex-wrap: wrap; gap: 10px; padding: 30px 0 0; }
.fb-pill {
    display: inline-flex; align-items: center; height: 36px; padding: 0 18px;
    border: 1px solid var(--fh-line-2, #E5E7EB); border-radius: 999px;
    background: #fff; color: var(--fh-body, #364153);
    font-size: 13.5px; font-weight: 600; text-decoration: none;
    transition: border-color .2s, color .2s, background .2s;
}
.fb-pill:hover { border-color: var(--fh-maroon, #5C1A2A); color: var(--fh-maroon, #5C1A2A); text-decoration: none; }
.fb-pill.is-on { background: var(--fh-maroon, #5C1A2A); border-color: var(--fh-maroon, #5C1A2A); color: #fff; }

/* ---- the featured article -------------------------------------------------- */
.fb-featured {
    display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
    margin: 26px 0 0; border-radius: 12px; overflow: hidden;
    background: #fff; border: 1px solid var(--fh-line-2, #E5E7EB);
}
.fb-featured__media { background: #EADDD4; min-height: 260px; overflow: hidden; }
/* height:100% resolves against a grid area of a definite height, so this one is safe - but the
   cover crop is what keeps a tall photograph from dictating the card's height. */
.fb-featured__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.fb-featured__body { padding: 28px 30px; }
.fb-featured h2 {
    margin: 14px 0 12px; font-size: clamp(21px, 2.3vw, 26px); line-height: 1.28; font-weight: 800;
}
.fb-featured h2 a { color: var(--fh-ink, #101828); text-decoration: none; }
.fb-featured h2 a:hover { color: var(--fh-maroon, #5C1A2A); }
.fb-featured p { margin: 0 0 16px; font-size: 14.5px; line-height: 1.65; color: var(--fh-body, #364153); }

.fb-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.fb-badge {
    display: inline-flex; align-items: center; height: 26px; padding: 0 12px;
    border-radius: 999px; background: var(--fh-tint, #FDF0E8);
    font-size: 12px; font-weight: 700; color: var(--fh-maroon, #5C1A2A);
}
.fb-badge--featured { background: #FBE9D7; }

.fb-byline { font-size: 13px; color: var(--fh-muted, #6A7282); margin: 0 0 18px; }

.fb-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    height: 44px; padding: 0 24px; border: 0; border-radius: 8px;
    background: var(--fh-btn, #541725); color: #fff;
    font: inherit; font-size: 14.5px; font-weight: 700; text-decoration: none; cursor: pointer;
    transition: background .2s;
}
.fb-btn:hover { background: var(--fh-btn-hover, #3F101B); color: #fff; text-decoration: none; }
.fb-btn--orange { background: var(--fh-orange, #E8820C); }
.fb-btn--orange:hover { background: #CE7309; }

/* ---- the grid -------------------------------------------------------------- */
.fb-listhead {
    display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
    margin: 44px 0 20px;
}
.fb-listhead h2 { margin: 0; font-size: 24px; font-weight: 800; color: var(--fh-ink, #101828); }
.fb-listhead span { font-size: 13.5px; color: var(--fh-muted, #6A7282); }

.fb-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }

.fb-card {
    display: flex; flex-direction: column;
    background: #fff; border: 1px solid var(--fh-line-2, #E5E7EB); border-radius: 12px;
    overflow: hidden;
    transition: box-shadow .2s, transform .2s;
}
.fb-card:hover { box-shadow: 0 10px 28px rgba(16, 24, 40, .08); transform: translateY(-2px); }
/* THE RATIO IS ON THE IMAGE, not only on the box around it.
   `height: 100%` inside an auto-height flex item resolves to `auto`, so the photograph rendered
   at its OWN intrinsic ratio and pushed the box past the 16/9 it was given - a row of cards came
   out with their titles at six different heights, depending on what each picture happened to be.
   Stating the ratio on the <img> makes its height follow its width whatever the file is, and
   object-fit crops the overflow. */
.fb-card__media { aspect-ratio: 16 / 9; background: #EADDD4; flex: 0 0 auto; overflow: hidden; }
.fb-card__media img {
    display: block; width: 100%; height: 100%; aspect-ratio: 16 / 9; object-fit: cover;
}
.fb-card__body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1 1 auto; }
.fb-card h3 { margin: 12px 0 10px; font-size: 16.5px; line-height: 1.35; font-weight: 800; }
.fb-card h3 a { color: var(--fh-ink, #101828); text-decoration: none; }
.fb-card h3 a:hover { color: var(--fh-maroon, #5C1A2A); }
.fb-card p { margin: 0 0 14px; font-size: 13.5px; line-height: 1.6; color: var(--fh-body, #364153); }
.fb-card__meta { margin-top: auto; font-size: 12.5px; color: var(--fh-muted, #6A7282); }

/* ---- pagination ------------------------------------------------------------ */
.fb-pager { display: flex; justify-content: center; gap: 8px; margin: 34px 0 0; }
.fb-pager a, .fb-pager span {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 40px; height: 40px; padding: 0 14px;
    border: 1px solid var(--fh-line-2, #E5E7EB); border-radius: 8px;
    background: #fff; color: var(--fh-body, #364153);
    font-size: 13.5px; font-weight: 600; text-decoration: none;
}
.fb-pager a:hover { border-color: var(--fh-maroon, #5C1A2A); color: var(--fh-maroon, #5C1A2A); text-decoration: none; }
.fb-pager .is-now { background: var(--fh-maroon, #5C1A2A); border-color: var(--fh-maroon, #5C1A2A); color: #fff; }
.fb-pager .is-off { color: var(--fh-faint, #99A1AF); }

/* ---- the orange band and the newsletter ------------------------------------ */
.fb-cta {
    display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
    margin: 44px 0 0; padding: 26px 30px;
    border-radius: 12px; background: var(--fh-gold, #F2AE58);
}
.fb-cta h2 { margin: 0 0 6px; font-size: 21px; font-weight: 800; color: var(--fh-ink, #101828); }
.fb-cta p { margin: 0; font-size: 14px; color: #42332B; }

.fb-news {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: start;
    margin: 24px 0 56px; padding: 28px 30px;
    background: #fff; border: 1px solid var(--fh-line-2, #E5E7EB); border-radius: 12px;
}
.fb-news h2 { margin: 0 0 8px; font-size: 20px; font-weight: 800; color: var(--fh-ink, #101828); }
.fb-news p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--fh-body, #364153); }
.fb-news label { display: block; margin-bottom: 7px; font-size: 13px; font-weight: 700; }
.fb-news__row { display: flex; gap: 10px; }
.fb-news__row input {
    flex: 1 1 auto; min-width: 0; height: 44px; padding: 0 14px;
    border: 1px solid var(--fh-line-2, #E5E7EB); border-radius: 8px;
    font: inherit; font-size: 14px; outline: none;
}
.fb-news__row input:focus { border-color: var(--fh-maroon, #5C1A2A); box-shadow: 0 0 0 1px var(--fh-maroon, #5C1A2A); }
.fb-news__note { margin-top: 10px; font-size: 12.5px; color: var(--fh-muted, #6A7282); }
.fb-news__note a { color: var(--fh-maroon, #5C1A2A); }

/* ---- the article ----------------------------------------------------------- */
.fb-article { padding: 22px 0 0; }
.fb-article .fb-crumb a, .fb-article .fb-crumb em { color: var(--fh-muted, #6A7282); }
.fb-article .fb-crumb span { color: var(--fh-faint, #99A1AF); }

.fb-article h1 {
    margin: 14px 0 14px; max-width: 24ch;
    font-size: clamp(28px, 4vw, 40px); line-height: 1.16; font-weight: 800; color: var(--fh-ink, #101828);
}
.fb-article__lead {
    margin: 0 0 22px; max-width: 70ch;
    font-size: 16px; line-height: 1.65; color: var(--fh-body, #364153);
}

.fb-author { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.fb-author__mark {
    width: 40px; height: 40px; flex: 0 0 40px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: var(--fh-maroon, #5C1A2A); color: #fff; font-weight: 700;
    overflow: hidden;
}
.fb-author__mark img { width: 100%; height: 100%; object-fit: cover; }
.fb-author__name { font-size: 14px; font-weight: 700; color: var(--fh-ink, #101828); }
.fb-author__meta { font-size: 12.5px; color: var(--fh-muted, #6A7282); }

.fb-hero-image {
    border-radius: 12px; overflow: hidden; background: #EADDD4;
    aspect-ratio: 1200 / 630; margin-bottom: 30px;
}
.fb-hero-image img { display: block; width: 100%; height: 100%; object-fit: cover; }

.fb-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; align-items: start; }

.fb-panel {
    background: #fff; border: 1px solid var(--fh-line-2, #E5E7EB); border-radius: 12px;
    padding: 22px 24px; margin-bottom: 22px;
}
.fb-panel h2, .fb-panel h3 { margin: 0 0 12px; font-size: 16px; font-weight: 800; color: var(--fh-ink, #101828); }
.fb-takeaways { margin: 0; padding-inline-start: 20px; }
.fb-takeaways li { margin-bottom: 8px; font-size: 14px; line-height: 1.6; color: var(--fh-body, #364153); }

/* The table of contents is sticky on a wide screen: it is a map of a long read. */
.fb-toc { position: sticky; top: 90px; }
.fb-toc ol { margin: 0; padding-inline-start: 20px; }
.fb-toc li { margin-bottom: 9px; font-size: 13.5px; line-height: 1.45; }
.fb-toc a { color: var(--fh-maroon, #5C1A2A); text-decoration: none; }
.fb-toc a:hover { text-decoration: underline; }

.fb-side-cta {
    background: var(--fh-maroon, #5C1A2A); color: #fff;
    border-radius: 12px; padding: 22px 24px; margin-bottom: 22px;
}
.fb-side-cta h3 { margin: 0 0 8px; font-size: 16.5px; font-weight: 800; color: #fff; }
.fb-side-cta p { margin: 0 0 16px; font-size: 13.5px; line-height: 1.6; color: rgba(255, 255, 255, .82); }

.fb-share { margin-bottom: 22px; }
.fb-share__label { font-size: 13px; font-weight: 700; margin-bottom: 10px; color: var(--fh-ink, #101828); }
.fb-share__row { display: flex; gap: 10px; }
.fb-share__row a, .fb-share__row button {
    width: 36px; height: 36px; padding: 0; border: 1px solid var(--fh-line-2, #E5E7EB); border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: #fff; color: var(--fh-maroon, #5C1A2A); cursor: pointer;
    font-size: 14px; text-decoration: none;
    transition: border-color .2s, background .2s;
}
.fb-share__row a:hover, .fb-share__row button:hover { border-color: var(--fh-maroon, #5C1A2A); background: var(--fh-tint, #FDF0E8); }

/* The article body. Scoped so the editor's HTML cannot restyle the page around it. */
.fb-body { font-size: 15.5px; line-height: 1.75; color: var(--fh-body, #364153); }
.fb-body h2 {
    margin: 32px 0 12px; font-size: clamp(20px, 2.2vw, 24px); line-height: 1.3;
    font-weight: 800; color: var(--fh-ink, #101828); scroll-margin-top: 90px;
}
.fb-body h3 { margin: 24px 0 10px; font-size: 17px; font-weight: 800; color: var(--fh-ink, #101828); }
.fb-body p { margin: 0 0 16px; }
.fb-body ul, .fb-body ol { margin: 0 0 16px; padding-inline-start: 22px; }
.fb-body li { margin-bottom: 8px; }
.fb-body a { color: var(--fh-maroon, #5C1A2A); }
.fb-body img { max-width: 100%; height: auto; border-radius: 10px; }
.fb-body blockquote {
    margin: 0 0 16px; padding: 2px 0 2px 16px;
    border-inline-start: 3px solid var(--fh-gold, #F2AE58); color: var(--fh-muted, #6A7282);
}
.fb-body table { width: 100%; border-collapse: collapse; margin: 0 0 16px; }
.fb-body th, .fb-body td { padding: 9px 12px; border: 1px solid var(--fh-line-2, #E5E7EB); font-size: 14px; }

/* FAQ. <details> so it works with no JavaScript at all. */
.fb-faq { margin-top: 10px; }
.fb-faq details {
    border: 1px solid var(--fh-line-2, #E5E7EB); border-radius: 10px;
    padding: 14px 18px; margin-bottom: 12px; background: #fff;
}
.fb-faq summary {
    cursor: pointer; font-size: 14.5px; font-weight: 700; color: var(--fh-ink, #101828);
    list-style: none;
}
.fb-faq summary::-webkit-details-marker { display: none; }
.fb-faq summary::before { content: "\25B8"; display: inline-block; margin-inline-end: 8px; transition: transform .2s; }
.fb-faq details[open] summary::before { transform: rotate(90deg); }
.fb-faq p { margin: 12px 0 0; font-size: 14px; line-height: 1.65; color: var(--fh-body, #364153); }

.fb-authorbox { display: flex; gap: 14px; align-items: flex-start; }
.fb-authorbox p { margin: 4px 0 0; font-size: 13.5px; line-height: 1.6; color: var(--fh-body, #364153); }
/* The role sits after the name on the same line, quieter than it. */
.fb-authorbox__role { font-weight: 500; color: var(--fh-muted, #6A7282); }
.fb-authorbox__role::before { content: "\00b7"; margin-inline: 6px; }

/* ---- responsive ------------------------------------------------------------ */
@media (max-width: 991px) {
    .fb-layout { grid-template-columns: 1fr; }
    .fb-toc { position: static; }
    .fb-featured { grid-template-columns: 1fr; }
    .fb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .fb-news { grid-template-columns: 1fr; }
}
@media (max-width: 639px) {
    .fb-grid { grid-template-columns: 1fr; }
    .fb-search { flex-direction: column; }
    .fb-search button { width: 100%; }
    .fb-cta { flex-direction: column; align-items: flex-start; }
}
