@layer legacy {
/**
 * Morocco Passage — Refinement layer
 *
 * Senior frontend design pass, 7 October 2026.
 *
 * Loaded after components.css. Everything here consumes tokens from
 * tokens.css; the few new values are declared once in the local token
 * block below and nowhere else. Sections:
 *
 *   0  local tokens
 *   1  header and primary navigation
 *   2  language selector
 *   3  mobile menu (drawer)
 *   4  section heads and homepage composition
 *   5  closing chapter (homepage CTA) and footer
 *   6  cards
 *   7  detail pages
 *   8  itinerary
 *   9  Plan your trip form
 *  10  subpages
 *  11  motion and reduced motion
 */

/* ============================================================
   0  TOKENS — moved to tokens.css (master brief §8: one token source)
   ============================================================ */

/* ============================================================
   1  HEADER AND PRIMARY NAVIGATION
   ============================================================ */

/* The header stays the same height in every state, so nothing shifts.
   Scrolled, it gains a soft lower edge and a slightly translucent surface,
   which reads as a layer above the page rather than a band glued to it. */

.mp-header {
    transition:
        background-color var(--dur-base) var(--ease),
        border-color var(--dur-base) var(--ease),
        box-shadow var(--dur-base) var(--ease),
        color var(--dur-base) var(--ease);
}

.mp-header.is-scrolled:not(.mp-header--transparent) {
    border-block-end-color: transparent;
    box-shadow: var(--shadow-header);
}

@supports (backdrop-filter: blur(1px)) {

    .mp-header.is-scrolled:not(.mp-header--transparent) {
        background-color: color-mix(in srgb, var(--c-canvas) 90%, transparent);
        backdrop-filter: saturate(1.15) blur(12px);
    }
}

.mp-brand {
    --mp-brand-h: calc(var(--h-header) * 0.84);
}

.mp-brand:focus-visible {
    outline-offset: 4px;
}

@media (min-width: 1120px) {

    .mp-header__inner {
        gap: var(--s-6);
    }

    .mp-header__nav .mp-nav__list {
        gap: clamp(1.25rem, 0.2rem + 1.6vw, 2.25rem);
    }

    /* Navigation link: UI face at a quiet weight, softened ink at rest,
       full ink on hover. A 1px saffron rule draws in from the left on
       hover and stays drawn for the current section. */
    .mp-header__nav .mp-nav__list a {
        position: relative;
        display: inline-flex;
        align-items: center;
        min-height: var(--h-touch);
        padding-block: 0;
        font-family: var(--font-ui);
        font-size: var(--fs-nav);
        font-weight: 500;
        letter-spacing: 0.01em;
        color: var(--c-ink-soft);
        border-block-end: 0;
        transition: color var(--dur-micro) var(--ease);
    }

    .mp-header__nav .mp-nav__list a::after {
        content: "";
        position: absolute;
        inset-inline: 0;
        inset-block-end: 0.55rem;
        height: 1px;
        background-color: var(--c-signal);
        transform: scaleX(0);
        transform-origin: right center;
        transition: transform var(--dur-base) var(--ease);
    }

    @media (hover: hover) and (pointer: fine) { .mp-header__nav .mp-nav__list a:hover {
        color: var(--c-ink);
    } }

    @media (hover: hover) and (pointer: fine) { .mp-header__nav .mp-nav__list a:hover::after {
        transform: scaleX(1);
        transform-origin: left center;
    } }

    /* Current section: full ink and a drawn rule. Saffron stays a rule,
       never text colour on Plaster, where it falls below AA. */
    .mp-header__nav .mp-nav__list .current-menu-item > a,
    .mp-header__nav .mp-nav__list a[aria-current="page"] {
        color: var(--c-ink);
    }

    .mp-header__nav .mp-nav__list .current-menu-item > a::after,
    .mp-header__nav .mp-nav__list a[aria-current="page"]::after {
        transform: scaleX(1);
    }

    /* Over the hero. Scoped away from the owner preview, where the plugin
       makes the header sticky and paints it solid. */
    body:not(.mp-full-site-preview) .mp-header--transparent .mp-header__nav .mp-nav__list a {
        color: var(--c-on-deep-soft);
    }

    body:not(.mp-full-site-preview) .mp-header--transparent .mp-header__nav .mp-nav__list a:hover,
    body:not(.mp-full-site-preview) .mp-header--transparent .mp-header__nav .mp-nav__list .current-menu-item > a {
        color: var(--c-on-deep);
    }

    /* Actions are separated from the sections by a short vertical
       hairline, so the language and the planning action read as tools
       rather than as two more menu items. */
    .mp-header__actions {
        position: relative;
        gap: var(--s-4);
        padding-inline-start: var(--s-6);
    }

    .mp-header__actions::before {
        content: "";
        position: absolute;
        inset-inline-start: 0;
        inset-block: 50%;
        height: 1.5rem;
        transform: translateY(-50%);
        border-inline-start: var(--border-strong);
    }

    body:not(.mp-full-site-preview) .mp-header--transparent .mp-header__actions::before {
        border-inline-start-color: var(--c-rule-on-deep);
    }
}

/* Owner preview: the plugin makes the header sticky at top 0, which slid
   it under the fixed WordPress toolbar once the page scrolled and cropped
   the mark. Stick it below the toolbar instead. Below 600px WordPress
   stops fixing the toolbar, so the header sticks to the very top again.
   Public visitors have no toolbar and are unaffected. */
.admin-bar.mp-full-site-preview .mp-header {
    top: 32px;
}

@media screen and (max-width: 782px) {

    .admin-bar.mp-full-site-preview .mp-header {
        top: 46px;
    }
}

@media screen and (max-width: 600px) {

    .admin-bar.mp-full-site-preview .mp-header {
        top: 0;
    }
}

/* Header CTA — the planning action is the only filled control in the
   header: Indigo, compact, a touch of tracking. Noticeable without
   outweighing the mark. */
.mp-header .mp-header__cta {
    min-height: var(--h-touch);
    padding-inline: var(--s-6);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.mp-header:not(.mp-header--transparent) .mp-header__cta,
.mp-full-site-preview .mp-header .mp-header__cta {
    background-color: var(--c-deep);
    border-color: var(--c-deep);
    color: var(--c-on-deep);
}

@media (hover: hover) and (pointer: fine) { .mp-header:not(.mp-header--transparent) .mp-header__cta:hover,
.mp-full-site-preview .mp-header .mp-header__cta:hover {
    background-color: var(--c-deep-strong);
    border-color: var(--c-deep-strong);
    color: var(--c-on-deep);
} }

body:not(.mp-full-site-preview) .mp-header--transparent .mp-header__cta {
    background-color: var(--c-on-deep);
    border-color: var(--c-on-deep);
    color: var(--c-ink);
}

@media (hover: hover) and (pointer: fine) { body:not(.mp-full-site-preview) .mp-header--transparent .mp-header__cta:hover {
    background-color: var(--c-surface);
    border-color: var(--c-surface);
    color: var(--c-ink);
} }

/* Compact header: an explicit "Menu" word beside the bars. An icon alone
   is the most common mobile-navigation miss in usability testing. */
.mp-header__toggle {
    gap: var(--s-3);
    width: auto;
    min-width: var(--h-touch);
    min-height: var(--h-touch);
    padding-inline: var(--s-3);
    margin-inline-end: calc(var(--s-3) * -1);
}

.mp-header__toggle-word {
    font-family: var(--font-ui);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.mp-header__toggle-bars,
.mp-header__toggle-bars::before,
.mp-header__toggle-bars::after {
    width: 1.375rem;
    height: 1.5px;
}

.mp-header__toggle-bars::after {
    width: 0.875rem;
    transition: width var(--dur-micro) var(--ease);
}

@media (hover: hover) and (pointer: fine) { .mp-header__toggle:hover .mp-header__toggle-bars::after {
    width: 1.375rem;
} }

/* ============================================================
   2  LANGUAGE SELECTOR
   ============================================================ */

.mp-languages__summary {
    min-height: var(--h-touch);
    padding-inline: var(--s-2);
    font-family: var(--font-ui);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: inherit;
    border-radius: var(--radius-control);
    transition: background-color var(--dur-micro) var(--ease);
}

@media (hover: hover) and (pointer: fine) { .mp-languages__summary:hover {
    background-color: color-mix(in srgb, var(--c-ink) 5%, transparent);
} }

@media (hover: hover) and (pointer: fine) { body:not(.mp-full-site-preview) .mp-header--transparent .mp-languages__summary:hover {
    background-color: color-mix(in srgb, var(--c-on-deep) 12%, transparent);
} }

.mp-languages__indicator {
    display: inline-block;
    font-size: 0.625rem;
    opacity: 0.7;
    transition: transform var(--dur-base) var(--ease);
}

.mp-languages[open] .mp-languages__indicator {
    transform: rotate(180deg);
}

.mp-languages--desktop .mp-languages__menu {
    inset-block-start: calc(100% + var(--s-3));
    min-width: 11rem;
    padding: var(--s-2);
    background-color: var(--c-surface);
    border: var(--border);
    border-radius: var(--radius-control);
    box-shadow: var(--shadow-popover);
    transform-origin: top right;
    animation: mp-popover-in var(--dur-base) var(--ease);
}

.mp-languages--desktop .mp-languages__menu a,
.mp-languages--desktop .mp-languages__current {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: var(--h-touch);
    padding: 0 var(--s-3);
    font-size: 0.9375rem;
    color: var(--c-ink);
    border-radius: var(--radius-control);
}

@media (hover: hover) and (pointer: fine) { .mp-languages--desktop .mp-languages__menu a:hover {
    background-color: var(--c-canvas);
} }

.mp-languages--desktop .mp-languages__current::after {
    content: "";
    width: 6px;
    height: 6px;
    background-color: var(--c-signal);
}

/* ============================================================
   3  MOBILE MENU (DRAWER)
   ============================================================ */

/* A designed mobile surface rather than a collapsed desktop menu:
   the brand stays where it was, the close control sits exactly where the
   menu control was, sections are set large in the display face with their
   chapter number, and the planning action anchors the foot.

   Focus trap, inert background, Escape, scroll lock and focus return were
   already implemented in navigation.js and are unchanged. */

.mp-drawer {
    gap: 0;
    padding-block-start: 0;
    background-color: var(--c-canvas);
}

/* The owner-preview banner is a sticky layer above the page. The drawer is
   modal, so it must sit above that banner too (it already starts below the
   WordPress toolbar). Public visitors have neither layer. */
.mp-full-site-preview .mp-drawer {
    z-index: 99990;
}

.mp-drawer__head {
    position: sticky;
    inset-block-start: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: none;
    height: var(--h-header);
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
    background-color: var(--c-canvas);
    border-block-end: var(--border);
}

.mp-drawer__brand {
    display: block;
    line-height: 0;
}

.mp-drawer__brand img {
    width: auto;
    height: calc(var(--h-header) * 0.84);
}

.mp-drawer .mp-drawer__close {
    position: static;
    gap: var(--s-3);
    width: auto;
    height: var(--h-touch);
    min-width: var(--h-touch);
    padding-inline: var(--s-3);
    margin-inline-end: calc(var(--s-3) * -1);
    font-family: var(--font-ui);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--c-ink);
}

.mp-drawer__close-icon {
    position: relative;
    display: block;
    width: 1.125rem;
    height: 1.125rem;
}

.mp-drawer__close-icon::before,
.mp-drawer__close-icon::after {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    inset-block-start: 50%;
    width: 100%;
    height: 1.5px;
    background-color: currentColor;
    transform: rotate(45deg);
}

.mp-drawer__close-icon::after {
    transform: rotate(-45deg);
}

.mp-drawer__nav {
    padding-block: var(--s-8) var(--s-6);
}

.mp-drawer .mp-nav__list,
.mp-drawer .mp-drawer__list {
    counter-reset: mp-drawer;
    border-block-start: var(--border);
}

.mp-drawer .mp-nav__list li,
.mp-drawer .mp-drawer__list li {
    counter-increment: mp-drawer;
}

.mp-drawer .mp-nav__list a,
.mp-drawer .mp-drawer__list a {
    display: flex;
    align-items: baseline;
    gap: var(--s-4);
    min-height: 3.5rem;
    padding-block: var(--s-4);
    font-family: var(--font-display);
    font-size: var(--fs-drawer-link);
    line-height: 1.1;
    letter-spacing: -0.01em;
    color: var(--c-ink);
    border-block-end: var(--border);
}

.mp-drawer .mp-nav__list a::before,
.mp-drawer .mp-drawer__list a::before {
    content: counter(mp-drawer, decimal-leading-zero);
    flex: none;
    min-width: 1.75rem;
    font-family: var(--font-ui);
    font-size: var(--fs-label);
    font-weight: 600;
    letter-spacing: var(--ls-meta);
    color: var(--c-signal-text);
    transform: translateY(-0.55em);
}

.mp-drawer .mp-nav__list a::after,
.mp-drawer .mp-drawer__list a::after {
    content: "\2192";
    margin-inline-start: auto;
    font-family: var(--font-ui);
    font-size: 1rem;
    color: var(--c-muted);
    transition:
        transform var(--dur-micro) var(--ease),
        color var(--dur-micro) var(--ease);
}

.mp-drawer .mp-nav__list a:hover::after,
.mp-drawer .mp-nav__list a:focus-visible::after {
    color: var(--c-signal-text);
    transform: translateX(4px);
}

.mp-drawer .mp-nav__list .current-menu-item > a,
.mp-drawer .mp-nav__list a[aria-current="page"] {
    color: var(--c-ink);
}

.mp-drawer .mp-nav__list .current-menu-item > a::after,
.mp-drawer .mp-nav__list a[aria-current="page"]::after {
    content: "";
    width: 7px;
    height: 7px;
    align-self: center;
    background-color: var(--c-signal);
    transform: none;
}

.mp-drawer__foot {
    align-items: stretch;
    gap: var(--s-4);
    padding-block-start: var(--s-6);
}

.mp-drawer__note {
    margin: 0;
    font-size: var(--fs-meta);
    color: var(--c-muted);
}

.mp-drawer__foot .mp-btn {
    width: 100%;
    justify-content: center;
}

.mp-drawer__languages {
    margin-block-start: var(--s-2);
    padding-block-start: var(--s-4);
    border-block-start: var(--border);
}

.mp-drawer__languages .mp-languages__list {
    gap: 0 var(--s-1);
}

.mp-drawer__languages .mp-lang {
    display: inline-flex;
    align-items: center;
    min-height: var(--h-touch);
    padding-inline: var(--s-3);
    font-size: var(--fs-meta);
    letter-spacing: 0.04em;
    text-transform: none;
    color: var(--c-muted);
    border-radius: var(--radius-control);
}

.mp-drawer__languages li:first-child .mp-lang {
    padding-inline-start: 0;
}

.mp-drawer__languages [aria-current="true"] {
    color: var(--c-ink);
    text-decoration: underline;
    text-decoration-color: var(--c-signal);
    text-underline-offset: 0.4em;
}

/* ============================================================
   4  SECTION HEADS AND HOMEPAGE COMPOSITION
   ============================================================ */

/* Every homepage section opened with the same stacked label, heading and
   lead. Discovery sections now open on a split head — heading left, lead
   right on the shared baseline — so the page alternates between split,
   stacked, sticky and full-bleed openings instead of repeating one. */

@media (min-width: 1024px) {

    /* Why: a sticky statement beside two-by-two principles, a composition
       nothing else on the page uses. */

}

/* Section foot links: the closing link of a section sits on a full rule
   and aligns to the reading edge rather than floating under the grid. */
.mp-section__foot {
    display: flex;
    justify-content: flex-start;
}

/* Hero: a slightly wider measure for the lead, and the actions spaced
   off the paragraph by one step more so the CTA has its own line of
   sight. The title scale is unchanged — photography carries the weight. */

/* ============================================================
   5  CLOSING CHAPTER AND FOOTER
   ============================================================ */

/* Homepage close: the invitation sits on Indigo and the footer continues
   on the same surface under a hairline, so the page ends in one movement:
   content -> planning moment -> footer. */

/* Footer */

/* The footer now shares the content container with the sections above it,
   so its brand and columns sit on the same left edge as the closing
   invitation instead of jumping out to the wide header measure. */

/* Two columns on phones and tablets keep the footer short without shrinking
   any tap target; four across once the brand column sits beside them. */

/* Lower utility row on a deeper indigo, full bleed, so the footer has a
   floor. Box-shadow bleeding keeps the row inside the container's grid. */

/* ============================================================
   6  CARDS
   ============================================================ */

/* One editorial card family. The media frame is the card's only edge: the
   hairline that used to run under every frame doubled it, so the body now
   opens on space instead of a second rule. Meta, title and excerpt keep
   one vertical rhythm, and the directional cue is ink, not grey, so it
   reads as the action it is. Rows breathe more than columns so a grid
   reads as rows of stories rather than a mosaic. */

.mp-card {
    gap: var(--s-4);
}

.mp-card .mp-card__body {
    gap: var(--s-3);
    padding-block-start: var(--s-2);
    border-block-start: 0;
}

.mp-card .mp-meta {
    margin: 0;
    font-family: var(--font-ui);
    font-size: var(--fs-label);
    font-weight: 600;
    letter-spacing: var(--ls-label);
    text-transform: uppercase;
    color: var(--c-muted);
}

.mp-card--experience .mp-meta,
.mp-card--experience .mp-card__body > p:first-child:not(.mp-card__excerpt) {
    font-family: var(--font-ui);
    font-size: var(--fs-label);
    font-style: normal;
    font-weight: 600;
    letter-spacing: var(--ls-label);
    text-transform: uppercase;
    color: var(--c-signal-text);
}

.mp-card__title {
    line-height: 1.18;
    letter-spacing: -0.005em;
    text-wrap: balance;
    /* A long German compound ("Wüstenwanderungen") must shrink the card, never widen the page.
       `anywhere` counts the break in the minimum width; `break-word` does not. */
    overflow-wrap: anywhere;
}

.mp-card__excerpt {
    max-width: 42ch;
    font-size: var(--fs-body);
    line-height: 1.6;
    color: var(--c-muted);
}

.mp-card .mp-card__action {
    margin-block-start: auto;
    padding-block-start: var(--s-3);
    min-height: 0;
    font-size: var(--fs-meta);
    font-weight: 500;
    color: var(--c-ink);
    border-block-end: 0;
}

.mp-card .mp-card__action .mp-action__arrow {
    color: var(--c-signal-text);
    transition: transform var(--dur-micro) var(--ease);
}

.mp-card:hover .mp-card__action .mp-action__arrow,
.mp-card:focus-within .mp-card__action .mp-action__arrow {
    transform: translateX(4px);
}

.mp-grid--cards {
    row-gap: var(--s-16);
}

@media (min-width: 1024px) {

    .mp-grid--cards {
        column-gap: var(--s-8);
    }
}

/* Hub head: title left, intro right, closed by a hairline so the grid
   begins on a clear line. */

.mp-archive__head--split {
    max-width: none;
    margin-block-end: var(--s-12);
    padding-block-end: var(--s-8);
    border-block-end: var(--border);
}

.mp-archive__intro {
    display: flex;
    flex-direction: column;
    gap: var(--s-4);
}

.mp-archive__intro .mp-lead {
    margin: 0;
}

@media (min-width: 1024px) {

    .mp-archive__head--split {
        display: grid;
        grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
        column-gap: clamp(3rem, 6vw, 6rem);
        align-items: end;
    }

    .mp-archive__head--split .mp-lead {
        max-width: 42ch;
    }
}

/* ============================================================
   7  DETAIL PAGES
   ============================================================ */

/* Hero titles take a wider measure so long journey names settle on two
   balanced lines instead of three ragged ones. */

/* Long-form entity copy (Tour overview, Destination and Experience
   editorial). At desktop the prose becomes a two-column editorial grid:
   section headings hang in a left margin beside the paragraphs they open,
   which breaks a long column into chapters without boxing anything. The
   opening paragraph is set as a standfirst. */

@media (min-width: 1024px) {

    :is(.mp-entity, .mp-article, .mp-page-body) .mp-prose {
        display: grid;
        grid-template-columns: minmax(0, 15rem) minmax(0, 42rem);
        column-gap: clamp(3rem, 5vw, 5rem);
        max-width: none;
    }

    :is(.mp-entity, .mp-article, .mp-page-body) .mp-prose > * {
        grid-column: 2;
        margin-block: 0;
    }

    :is(.mp-entity, .mp-article, .mp-page-body) .mp-prose > * + * {
        margin-block-start: var(--s-6);
    }

    :is(.mp-entity, .mp-article, .mp-page-body) .mp-prose > h2 {
        grid-column: 1;
        align-self: start;
        margin-block-start: var(--s-12);
        padding-block-start: var(--s-4);
        font-size: var(--fs-h3);
        line-height: var(--lh-heading);
        text-wrap: balance;
        border-block-start: var(--rule-signal);
    }

    /* The paragraph a heading opens starts on the same line as the
       heading, so the two columns share a baseline. */
    :is(.mp-entity, .mp-article, .mp-page-body) .mp-prose > h2 + * {
        margin-block-start: var(--s-12);
        padding-block-start: var(--s-4);
    }

    :is(.mp-entity, .mp-article, .mp-page-body) .mp-prose > h2 + h3 {
        align-self: start;
        margin-block-start: var(--s-12);
        padding-block-start: var(--s-4);
    }

    /* A question list (H2 followed straight by H3s): the H2 spans two
       rows so the first question and its answer stay together instead of
       the answer dropping below the height of the H2. */
    :is(.mp-entity, .mp-article, .mp-page-body) .mp-prose > h2:has(+ h3) {
        grid-row: span 2;
    }

    :is(.mp-entity, .mp-article, .mp-page-body) .mp-prose > h2:first-child,
    :is(.mp-entity, .mp-article, .mp-page-body) .mp-prose > h2:first-child + * {
        margin-block-start: 0;
    }

    :is(.mp-entity, .mp-article, .mp-page-body) .mp-prose > figure {
        grid-column: 1 / -1;
    }
}

/* Editorial depth (7 October 2026). Longer entity pages:
   - the part after the editor's More divider (comparison, planning,
     questions) opens as its own chapter after the related strips;
   - H3 sub-questions read as quiet display headings inside the reading
     column, with steady spacing so a long page stays scannable;
   - lists inside entity prose keep the reading measure. */
/* The section before it (a related strip) already ends with its own
   bottom padding, so this chapter adds only the hairline and its gap. */
.mp-entity-more {
    padding-block-start: 0;
}

.mp-entity-more > .mp-container::before {
    content: "";
    display: block;
    margin-block-end: var(--section-y-compact);
    border-block-start: var(--border);
}

:is(.mp-entity, .mp-article, .mp-page-body) .mp-prose > h3 {
    margin-block-start: var(--s-8);
    font-size: clamp(1.1875rem, 1.1rem + 0.35vw, 1.375rem);
    line-height: 1.3;
    text-wrap: balance;
}

:is(.mp-entity, .mp-article, .mp-page-body) .mp-prose > h3 + p {
    margin-block-start: var(--s-2);
}

:is(.mp-entity, .mp-article, .mp-page-body) .mp-prose > ul {
    max-width: 42rem;
}

:is(.mp-entity, .mp-article, .mp-page-body) .mp-prose a {
    text-decoration-color: color-mix(in srgb, var(--c-signal) 70%, transparent);
    text-underline-offset: 0.2em;
}

@media (hover: hover) and (pointer: fine) { :is(.mp-entity, .mp-article, .mp-page-body) .mp-prose a:hover {
    color: var(--c-signal-text);
    text-decoration-color: var(--c-signal);
} }

/* Related strips on a single: the head sits on a hairline with the label,
   so each strip reads as a chapter of the page rather than another section
   with a full-size heading. */
.mp-related .mp-section__head h2 {
    max-width: 28ch;
    font-size: var(--fs-h3);
}

/* Text-only related items (no media on a single's strips) read as an
   index: a hairline above each, tighter rows. */
.mp-related .mp-grid--cards {
    row-gap: var(--s-8);
}

.mp-related .mp-card:not(:has(.mp-card__media)) {
    padding-block-start: var(--s-4);
    border-block-start: var(--border);
}

/* Planning close on a single: one step more air above the action. */
.mp-entity-cta .mp-btn {
    margin-block-start: var(--s-2);
}

/* Breadcrumbs stay on one line on phones; the current page (which the
   H1 directly below repeats) truncates instead of wrapping onto a line of
   its own behind a stray separator. */
.mp-breadcrumbs__list {
    flex-wrap: nowrap;
}

.mp-breadcrumbs__item:last-child {
    flex: 1 1 auto;
}

.mp-breadcrumbs__item:not(:last-child) {
    flex: none;
}

/* Phone title scale: one step smaller at 390px so long journey names
   settle on three or four lines, unchanged from tablet up. */
:root {
    --fs-page-title: clamp(2.125rem, 1.5rem + 2.7vw, 3.5rem);
}

/* ============================================================
   8  ITINERARY
   ============================================================ */

/* A printed-itinerary layout. Each day: a display numeral, the day's
   title and narrative, and the day's route as a column of stops on the
   right. On a white band, so the product's central element is set apart
   from the plaster pages around it. */

.mp-itinerary-section {
    background-color: var(--c-surface);
}

.mp-related:not(.mp-section--alt) + .mp-itinerary-section,
.mp-itinerary-section + .mp-related:not(.mp-section--alt) {
    padding-block-start: var(--section-y);
}

.mp-related:not(.mp-section--alt) + .mp-itinerary-section > .mp-container::before {
    content: none;
}

.mp-itinerary__day {
    padding-block: var(--s-8) var(--s-12);
}

.mp-itinerary__aside {
    display: contents;
}

.mp-itinerary__day > .mp-itinerary__aside > .mp-itinerary__position {
    order: 0;
}

.mp-itinerary__body {
    order: 1;
    gap: var(--s-3);
}

.mp-itinerary__position--numbered {
    display: flex;
    align-items: baseline;
    gap: var(--s-3);
    margin: 0;
    color: var(--c-signal-text);
}

.mp-itinerary__position-word {
    font-family: var(--font-ui);
    font-size: var(--fs-label);
    font-weight: 600;
    letter-spacing: var(--ls-label);
    text-transform: uppercase;
}

.mp-itinerary__position-num {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 2rem + 2vw, 3.5rem);
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.02em;
    color: var(--c-ink);
    font-variant-numeric: lining-nums;
}

.mp-itinerary__title {
    max-width: 28ch;
    line-height: 1.2;
}

.mp-itinerary__narrative {
    max-width: 60ch;
    line-height: 1.7;
}

/* Mobile and tablet: the day's stops run as one line of places joined by
   short saffron rules instead of a tall column. */
@media (max-width: 1023.98px) {

    .mp-itinerary__day {
        display: flex;
        flex-direction: column;
        gap: var(--s-4);
    }

}

@media (min-width: 1024px) {

    .mp-itinerary__day {
        grid-template-columns: 7rem minmax(0, 1fr) minmax(12rem, 15rem);
        column-gap: clamp(2rem, 4vw, 4rem);
        align-items: start;
    }

    .mp-itinerary__position--numbered {
        flex-direction: column;
        gap: var(--s-2);
    }

}

/* ============================================================
   10  SUBPAGES
   ============================================================ */

/* Guide article head: the head box was capped at the reading measure
   without being centred, so the title sat against the page edge while the
   breadcrumb and body sat in the container. The head now spans the
   container and only its intro is held to a measure. */
.mp-article__head {
    max-width: none;
    padding-block: var(--section-y-compact) var(--s-12);
}

.mp-article__intro {
    max-width: 54rem;
}

.mp-article__head h1 {
    max-width: 22ch;
    font-size: var(--fs-page-title);
    line-height: var(--lh-heading);
    letter-spacing: -0.015em;
    text-wrap: balance;
}

.mp-article__head .mp-label {
    display: flex;
    align-items: center;
    gap: var(--s-3);
}

.mp-article__head .mp-label::before {
    content: "";
    flex: none;
    width: var(--s-8);
    height: 1px;
    background-color: var(--c-signal);
}

.mp-article__head .mp-lead {
    max-width: 52ch;
}

/* Questions and answers. The browser triangle becomes a quiet plus that
   turns to a minus; the question is the whole row, 44px+ tall. */
.mp-prose .wp-block-details {
    padding-block: 0;
    border-block-start: var(--border);
}

.mp-prose .wp-block-details:not(:has(+ .wp-block-details)) {
    border-block-end: var(--border);
}

.mp-prose .wp-block-details summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--s-6);
    min-height: 3.5rem;
    padding-block: var(--s-4);
    font-size: clamp(1.1875rem, 1.1rem + 0.35vw, 1.375rem);
    list-style: none;
    transition: color var(--dur-micro) var(--ease);
}

.mp-prose .wp-block-details summary::-webkit-details-marker {
    display: none;
}

.mp-prose .wp-block-details summary::after {
    content: "";
    flex: none;
    width: 0.875rem;
    height: 0.875rem;
    background:
        linear-gradient(currentColor, currentColor) center / 100% 1.5px no-repeat,
        linear-gradient(currentColor, currentColor) center / 1.5px 100% no-repeat;
    color: var(--c-signal-text);
    transition: background-size var(--dur-base) var(--ease);
}

.mp-prose .wp-block-details[open] summary::after {
    background-size: 100% 1.5px, 1.5px 0;
}

@media (hover: hover) and (pointer: fine) { .mp-prose .wp-block-details summary:hover {
    color: var(--c-signal-text);
} }

.mp-prose .wp-block-details[open] summary {
    margin-block-end: 0;
}

.mp-prose .wp-block-details > :not(summary) {
    max-width: 60ch;
    margin-block: 0 var(--s-6);
    color: var(--c-muted);
}

/* Page closing invitation (About, FAQ, Contact, Guide articles): heading
   left, words and action right, the same composition as the homepage
   close on a light surface. */
@media (min-width: 1024px) {

    .mp-section--alt > .mp-container > .mp-cta:not(.mp-cta--closing) {
        display: grid;
        grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
        column-gap: clamp(3rem, 7vw, 7rem);
        align-items: end;
        max-width: none;
    }

    .mp-section--alt > .mp-container > .mp-cta:not(.mp-cta--closing) > h2 {
        grid-row: 1 / span 2;
        max-width: 16ch;
        margin: 0;
    }

    .mp-section--alt > .mp-container > .mp-cta:not(.mp-cta--closing) > :not(h2) {
        grid-column: 2;
    }
}

/* Tables written in the editor: core paints a dark box around every cell.
   Editorial tables use horizontal hairlines only, with a label-style head. */
.mp-prose .wp-block-table table,
.mp-prose .wp-block-table th,
.mp-prose .wp-block-table td {
    border: 0;
}

.mp-prose .wp-block-table td {
    border-block-end: var(--border);
}

.mp-prose .wp-block-table tr:first-child td,
.mp-prose .wp-block-table th {
    border-block-end: 1px solid var(--c-ink);
}

.mp-prose .wp-block-table thead th,
.mp-prose .wp-block-table tr:first-child:not(:only-child) td:only-child {
    font-size: var(--fs-label);
    letter-spacing: var(--ls-label);
    text-transform: uppercase;
}

/* Buttons written in the editor follow the theme's primary button, not
   a black slab. */
.mp-prose .wp-block-button__link {
    min-height: var(--h-btn);
    padding-inline: var(--s-6);
    background-color: var(--c-deep);
    border: 1px solid var(--c-deep);
    border-radius: var(--radius-control);
    color: var(--c-on-deep);
    font-size: var(--fs-btn);
    letter-spacing: var(--ls-btn);
    transition: background-color var(--dur-micro) var(--ease);
}

@media (hover: hover) and (pointer: fine) { .mp-prose .wp-block-button__link:hover {
    background-color: var(--c-deep-strong);
    color: var(--c-on-deep);
} }

.mp-prose .wp-block-button.is-style-outline .wp-block-button__link {
    border-color: var(--c-rule-strong);
    color: var(--c-ink);
}

/* Previous / next guide: a lone "next" link belongs on the right. */
@media (min-width: 768px) {

    .mp-article-nav__link--next {
        grid-column: 2;
    }
}

/* 404: the code is set as display type beside the link list. */
.mp-404 .mp-linklist {
    max-width: 28rem;
}

/* ============================================================
   11  MOTION AND REDUCED MOTION
   ============================================================ */

@keyframes mp-popover-in {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }
}

@keyframes mp-drawer-in {
    from {
        opacity: 0;
    }
}

@keyframes mp-rise-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
}

/* A display:none -> flex change restarts CSS animations, so the drawer
   animates on every open without any extra script. */
.mp-drawer:not([hidden]) {
    animation: mp-drawer-in var(--dur-base) var(--ease);
}

.mp-drawer:not([hidden]) .mp-drawer__nav li,
.mp-drawer:not([hidden]) .mp-drawer__foot {
    animation: mp-rise-in var(--dur-reveal) var(--ease) both;
}

.mp-drawer:not([hidden]) .mp-drawer__nav li:nth-child(2) { animation-delay: 40ms; }
.mp-drawer:not([hidden]) .mp-drawer__nav li:nth-child(3) { animation-delay: 80ms; }
.mp-drawer:not([hidden]) .mp-drawer__nav li:nth-child(4) { animation-delay: 120ms; }
.mp-drawer:not([hidden]) .mp-drawer__nav li:nth-child(5) { animation-delay: 160ms; }
.mp-drawer:not([hidden]) .mp-drawer__nav li:nth-child(6) { animation-delay: 200ms; }
.mp-drawer:not([hidden]) .mp-drawer__foot { animation-delay: 220ms; }

@media (prefers-reduced-motion: reduce) {

    .mp-drawer:not([hidden]),
    .mp-drawer:not([hidden]) .mp-drawer__nav li,
    .mp-drawer:not([hidden]) .mp-drawer__foot,
    .mp-languages--desktop .mp-languages__menu {
        animation: none;
    }

    .mp-header__nav .mp-nav__list a::after,
.mp-header__toggle-bars::after,
.mp-drawer .mp-nav__list a::after {
        transition: none;
    }
}

/* ============================================================
   Editorial tables and buttons inside page and article prose
   (8 October 2026). Price tables on the Transfers page and
   comparison tables in Travel Guide articles are core Table
   blocks; calls to action are core Buttons blocks. Tokens only.
   ============================================================ */

.mp-prose .wp-block-table {
    margin-block: var(--s-8);
    overflow-x: auto;
}

.mp-prose .wp-block-table table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--font-ui);
    font-size: var(--fs-body);
    line-height: 1.5;
}

.mp-prose .wp-block-table th,
.mp-prose .wp-block-table td {
    padding: var(--s-3) var(--s-4);
    border-block-end: 1px solid var(--c-rule);
    text-align: start;
    vertical-align: top;
}

.mp-prose .wp-block-table thead th {
    border-block-end: 1px solid var(--c-rule-strong);
    font-size: var(--fs-meta);
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--c-muted);
}

/* Price tables (Table block with the "is-style-prices" class): figures
   align on the right and never wrap. */
.mp-prose .wp-block-table.is-style-prices td:not(:first-child),
.mp-prose .wp-block-table.is-style-prices th:not(:first-child) {
    text-align: end;
    white-space: nowrap;
}

.mp-prose .wp-block-table.is-style-prices td:first-child {
    width: 55%;
}

.mp-prose .wp-block-table figcaption {
    margin-block-start: var(--s-3);
}

.mp-prose .wp-block-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: var(--s-3);
    margin-block: var(--s-8);
}

.mp-prose .wp-block-button__link {
    display: inline-flex;
    align-items: center;
    min-height: var(--h-control, 2.75rem);
    padding: var(--s-3) var(--s-6);
    border: 1px solid var(--c-deep);
    background-color: var(--c-deep);
    color: var(--c-surface);
    font-family: var(--font-ui);
    font-size: var(--fs-meta);
    font-weight: 600;
    text-decoration: none;
}

.mp-prose .wp-block-button.is-style-outline .wp-block-button__link {
    background-color: transparent;
    color: var(--c-deep);
}

.mp-prose .wp-block-button__link:hover,
.mp-prose .wp-block-button__link:focus-visible {
    background-color: var(--c-ink, var(--c-deep));
    color: var(--c-surface);
}

/* Call-to-action links written in content as
   [mp_link type="site" key="plan-trip" button="primary"]…[/mp_link]. */

.mp-prose a.mp-cta-button:focus-visible {
    background-color: var(--c-ink);
    border-color: var(--c-ink);
    color: var(--c-surface);
}
}
