@layer legacy {
/**
 * Morocco Passage — Components
 * Buttons, headings, Passage Line, cards, hero, drawer, CTA.
 */

/* ============================================================
   BUTTONS AND ACTIONS
   ============================================================ */

.mp-btn {
    display: inline-flex;
    white-space: nowrap;
    align-items: center;
    justify-content: center;
    gap: var(--s-2);
    min-height: var(--h-control);
    padding-inline: var(--s-8);
    border-radius: var(--radius);
    font-family: var(--font-ui);
    font-size: var(--fs-body);
    font-weight: 600;
    line-height: var(--lh-heading);
    text-align: center;
    text-decoration: none;
    transition:
        background-color var(--dur-micro) var(--ease),
        color var(--dur-micro) var(--ease),
        border-color var(--dur-micro) var(--ease);
}

.mp-btn--primary {
    background-color: var(--c-ink);
    color: var(--c-canvas);
    border: 1px solid var(--c-ink);
}

@media (hover: hover) and (pointer: fine) { .mp-btn--primary:hover {
    background-color: var(--c-deep);
    border-color: var(--c-deep);
} }

.mp-btn--secondary {
    background-color: transparent;
    color: var(--c-ink);
    border: 1px solid var(--c-ink);
}

@media (hover: hover) and (pointer: fine) { .mp-btn--secondary:hover {
    background-color: var(--c-ink);
    color: var(--c-canvas);
} }

/* On the indigo surface the button inverts so contrast is preserved. */

/* Text action */

.mp-action {
    display: inline-flex;
    align-items: center;
    gap: var(--s-2);
    min-height: var(--h-control);
    font-family: var(--font-ui);
    font-size: var(--fs-body);
    font-weight: 600;
    color: var(--c-signal-text);
    text-decoration: none;
    border-block-end: 1px solid var(--c-signal);
    align-self: flex-start;
}

.mp-action__arrow {
    display: inline-block;
    transition: transform var(--dur-micro) var(--ease);
}

@media (hover: hover) and (pointer: fine) { .mp-action:hover .mp-action__arrow {
    transform: translateX(var(--s-1));
} }

.mp-section--deep .mp-action {
    color: var(--c-on-deep);
}

/* ============================================================
   FOCUS ON DEEP SURFACES
   ============================================================ */

/* Batch 5A. The global focus rule lives in base.css and is correct for
   Plaster:

       :where(a, button, input, select, textarea, summary, [tabindex])
           :focus-visible { outline: var(--focus-ring) solid var(--c-focus); }

   It is not edited here. Instead --c-focus is re-pointed inside the five dark
   scopes, so the same base rule paints the accessible value on those surfaces
   and the light-surface treatment is untouched.

   Measured against --c-deep (Indigo). Literal values are documented in
   tokens.css, which remains the only file in this theme containing them:

       --c-signal-text  (the light-surface value)   1.96:1   FAILS 3:1
       --c-focus-on-deep                            3.32:1   passes

   Custom properties inherit, so declaring the override on the container
   reaches every focusable descendant — links, buttons, the language
   switcher, the drawer trigger — with no per-component rules.

   .mp-drawer is deliberately absent: it paints --c-canvas, so it is a light
   surface and keeps the default. */

.mp-header--transparent,
.mp-section--deep {
    --c-focus: var(--c-focus-on-deep);
}

/* ============================================================
   SECTION HEADING
   ============================================================ */

.mp-heading__label {
    display: block;
    margin-block-end: var(--s-3);
}

/* ============================================================
   PASSAGE LINE
   Signature route device. 1px saffron rule, square nodes, labels.
   ============================================================ */

.mp-passage {
    --mp-passage-node: var(--size-node);
    display: flex;
    font-family: var(--font-ui);
    font-size: var(--fs-meta);
    letter-spacing: var(--ls-meta);
    text-transform: uppercase;
    color: var(--c-muted);
}

.mp-passage__list {
    display: flex;
    margin: 0;
    padding: 0;
    list-style: none;
}

.mp-passage__stop {
    display: flex;
    align-items: center;
    gap: var(--s-3);
}

.mp-passage__node {
    flex: none;
    width: var(--mp-passage-node);
    height: var(--mp-passage-node);
    background-color: var(--c-signal);
}

.mp-passage__label {
    white-space: nowrap;
}

/* Horizontal */

.mp-passage--horizontal .mp-passage__list {
    flex-wrap: wrap;
    align-items: center;
    gap: var(--s-3);
}

.mp-passage--horizontal .mp-passage__stop:not(:last-child)::after {
    content: "";
    display: block;
    width: var(--s-8);
    height: 1px;
    background-color: var(--c-signal);
}

/* Vertical — reserved for the Stage 2 itinerary, same component. */

.mp-passage--vertical .mp-passage__list {
    flex-direction: column;
    gap: 0;
}

.mp-passage--vertical .mp-passage__stop {
    align-items: flex-start;
    padding-block-end: var(--s-6);
    position: relative;
}

.mp-passage--vertical .mp-passage__stop:not(:last-child)::after {
    content: "";
    position: absolute;
    inset-block: var(--mp-passage-node) 0;
    inset-inline-start: calc(var(--mp-passage-node) / 2);
    width: 1px;
    background-color: var(--c-signal);
}

.mp-passage--vertical .mp-passage__node {
    margin-block-start: var(--s-1);
}

/* On indigo */

/* ============================================================
   HERO
   ============================================================ */

@keyframes mp-hero-content-in {
    from {
        opacity: 0;
        transform: translateY(var(--s-4));
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================================
   CARDS
   Unboxed, editorial, image first, hairline separated.
   ============================================================ */

.mp-card {
    display: flex;
    flex-direction: column;
    gap: var(--s-4);
}

.mp-card__media {
    margin: 0;
    overflow: hidden;
    background-color: var(--c-canvas-alt);
}

.mp-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--dur-base) var(--ease);
}

@media (hover: hover) and (pointer: fine) { .mp-card:hover .mp-card__media img {
    transform: scale(1.02);
} }

.mp-card--tour .mp-card__media {
    aspect-ratio: var(--ratio-tour);
}

.mp-card--destination .mp-card__media {
    aspect-ratio: var(--ratio-destination);
}

.mp-card__body {
    display: flex;
    flex-direction: column;
    gap: var(--s-3);
    padding-block-start: var(--s-4);
    border-block-start: var(--border);
}

.mp-card__title {
    font-size: var(--fs-h3);
}

.mp-card__link {
    text-decoration: none;
}

/* CARD LINK PATTERN — reviewed in Stage 3A.
   Stage 1 stretched an absolutely positioned pseudo-element across the
   whole card. That made every card clickable but also sat on top of the
   text, so card text could not be selected.

   The image is now wrapped in its own link to the same URL, hidden from
   assistive technology and removed from the tab order. Result: the image
   is still clickable, the accessibility tree still contains exactly one
   link per card, there are no nested interactive elements, and all card
   text is selectable again. The trade-off is that the gap between image
   and title is no longer a hit area. */

.mp-card__media-link {
    display: block;
    text-decoration: none;
}

.mp-card__excerpt {
    color: var(--c-muted);
}

/* CARD ACTION — NON-INTERACTIVE EDITORIAL CUE. Batch 5A.

   INTERACTION CONTRACT, in one place so it is not re-litigated:

     A card has exactly ONE accessible link — the title (.mp-card__link).
     The media wrapper points at the same URL but is tabindex="-1" and
     aria-hidden, so it adds a hit area without a second tab stop.
     .mp-card__action is decorative. It is aria-hidden in markup, carries no
     href, and MUST NOT become a link: a second link would duplicate the tab
     stop the media wrapper was written to avoid.

   The defect this fixes: the cue inherited .mp-action wholesale, so it
   rendered in Saffron Deep at 600 weight with a moving arrow — the exact
   treatment used by real text links elsewhere on the page. It read as
   interactive, and pointer users tried to click it.

   The cue is now muted, regular weight, and default-cursor at rest, and it
   adopts the link's colour only while the card is hovered or contains focus.
   It therefore reads as a state of the single card link rather than as a
   control of its own.

   min-height stays auto: this is text, not a target, so the 52px --h-control
   minimum inherited from .mp-action does not apply to it.

   The selector is .mp-action.mp-card__action rather than .mp-card__action so
   it also outranks ".mp-section--deep .mp-action" (both 0,2,0, this one later
   in source) if a card is ever placed on a deep surface. */

.mp-action.mp-card__action {
    margin-block-start: var(--s-1);
    min-height: auto;
    border-block-end: 0;
    font-weight: 400;
    color: var(--c-muted);
    cursor: default;
    transition: color var(--dur-micro) var(--ease);
}

.mp-card:hover .mp-card__action,
.mp-card:focus-within .mp-card__action {
    color: var(--c-signal-text);
}

.mp-card:hover .mp-card__action .mp-action__arrow,
.mp-card:focus-within .mp-card__action .mp-action__arrow {
    transform: translateX(var(--s-1));
}

/* ============================================================
   DESTINATION FEATURE
   ============================================================ */

/* ============================================================
   BRAND STATEMENT AND CTA
   ============================================================ */

.mp-cta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--s-6);
    max-width: var(--w-reading);
}

.mp-cta__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--s-6);
}

/* ============================================================
   HOMEPAGE STORY ARCHITECTURE
   ============================================================ */

.mp-card--experience .mp-card__media {
    aspect-ratio: var(--ratio-experience);
}

/* FP: the caption-mask gradient that used to live here is gone.

   It existed only to hide "TOUR 01 - 3:2" style labels baked into the old
   development SVGs, and it darkened the bottom of every homepage media frame
   as a side effect. The placeholder system no longer carries text, so the
   mask has no job and the frames render clean.

   The rule that hid the first footer note on the homepage is also gone: it
   was tied to the removed "development build" string and made the homepage
   footer inconsistent with every other page. */

@media (min-width: 768px) {

    /* HOMEPAGE CARD PROGRESSION — 1 / 2 / 3. Batch 5A.

       These two grids went straight from one column to three at 768px, which
       put a 3:2 image, a meta line, an h3, an excerpt and an action cue into
       roughly 224px of width. The intermediate two-column stage restores a
       usable card at tablet width; the third column now arrives at 1024px,
       where the journeys grid already changes to its editorial 1.18/0.91/0.91
       composition, so desktop is unchanged.

       Three cards across two columns intentionally leaves the third on its
       own row — the grid is a progression, not a fixed 3-up. The generic
       .mp-grid--cards utility used by the archives is untouched. */

}

@media (min-width: 1024px) {

    /* Third column arrives here, not at 768px.

       FP: the journeys grid previously ran 1.18fr / 0.91fr / 0.91fr. Measured
       in Chrome at a 1396px viewport that produced media frames of 281px,
       217px and 217px against a shared 3:2 ratio, so the meta line, title and
       excerpt of the first card started 65px below the other two. The row had
       no common baseline.

       Equal columns restore it. The asymmetry was carrying no editorial
       meaning that the wider container and the section heading were not
       already carrying, and it cost the row its alignment - the most visible
       craft signal in a three-card editorial row. */

}

/* ============================================================
   NAVIGATION
   ============================================================ */

/* Brand lockup.
   ------------------------------------------------------------------
   Variant visibility is owned by .mp-header--transparent, the existing
   header-surface state. No new breakpoint, no new listener, no src swap.

   Both approved source files now share identical canvas geometry, verified
   14 August 2026:

       Light_mood.png   1536 x 1024  aspect 1.500  content 1447 x 948
       Dark_mood.png    1536 x 1024  aspect 1.500  content 1500 x 971

   An earlier revision of these assets did not match (2.000 vs 1.500), which
   required two compensating height ratios. That compensation is gone: one
   ratio now serves both states, so the lockup cannot change size when the
   header crosses from transparent to solid.

   The ratio is expressed against --h-header, so the lockup tracks the
   header's existing 64px / 88px authority automatically and introduces no
   media query and no new breakpoint.

   RATIO AUTHORITY — 0.88. Corrected 15 August 2026, Batch 5A.

   This comment previously documented 0.78 and warned that anything beyond
   ~0.85 would crowd the navigation. The implemented value has been 0.88 since
   Batch 3, when the lockup was deliberately enlarged after the mark read too
   small at the shipped header heights. The prose was stale, not the code, and
   the numbers below are the ones that actually render:

       0.88  ->  77.4px tall / 116px wide at the 88px desktop header
                 56.3px tall /  85px wide at the 64px compact header

   Verified in Chrome against the running site on 15 August 2026:

       1396px viewport   header 88px   computed logo height 77.43px
                         measured lockup 116 x 77, clears the header by
                         5.3px top and bottom, nav begins ~600px to its right
       1012px viewport   header 64px   logo 56.32px, hamburger clears it

   No overflow and no crowding at either header height, so 0.88 stands as the
   authority. The earlier ~0.85 ceiling was a prediction, not a measurement,
   and it is withdrawn.

   Still tunable in one place. Lower it toward 0.72 for a quieter mark. If it
   is raised further, re-measure the compact 64px header first — that is the
   constrained state, not the desktop one. */

.mp-brand {
    --mp-brand-h: calc(var(--h-header) * 0.88);

    position: relative;
    display: block;
    flex: 0 0 auto;
    line-height: 0;
    text-decoration: none;
    color: inherit;
}

.mp-brand__logo {
    display: block;
    width: auto;
    height: var(--mp-brand-h);
    transition:
        opacity var(--dur-base) var(--ease),
        visibility var(--dur-base) var(--ease);
}

/* Overlaid so the swap is a cross-fade with no layout shift and no
   network request at the transition. The light variant stays in flow and
   defines the anchor's box. */
.mp-brand__logo--dark {
    position: absolute;
    inset-block-start: 50%;
    inset-inline-start: 0;
    transform: translateY(-50%);
    opacity: 0;
    visibility: hidden;
}

.mp-header--transparent .mp-brand__logo--light {
    opacity: 0;
    visibility: hidden;
}

.mp-header--transparent .mp-brand__logo--dark {
    opacity: 1;
    visibility: visible;
}

.mp-nav__list {
    display: flex;
    align-items: center;
    gap: var(--s-8);
    margin: 0;
    padding: 0;
    list-style: none;
}

.mp-nav__list a {
    display: inline-block;
    white-space: nowrap;
    padding-block: var(--s-2);
    font-size: var(--fs-body);
    text-decoration: none;
    border-block-end: 1px solid transparent;
}

.mp-nav__list a:hover,
.mp-nav__list .current-menu-item > a {
    border-block-end-color: var(--c-signal);
}

.mp-lang {
    font-size: var(--fs-meta);
    letter-spacing: var(--ls-meta);
    text-transform: uppercase;
    text-decoration: none;
}

.mp-languages--desktop {
    position: relative;
}

.mp-languages__summary {
    display: inline-flex;
    align-items: center;
    gap: var(--s-1);
    cursor: pointer;
    list-style: none;
}

.mp-languages__summary::-webkit-details-marker {
    display: none;
}

.mp-languages__menu {
    position: absolute;
    inset-block-start: calc(100% + var(--s-2));
    inset-inline-end: 0;
    min-width: var(--s-40);
    margin: 0;
    padding: var(--s-2) 0;
    list-style: none;
    background-color: var(--c-canvas);
    color: var(--c-ink);
    border: var(--border);
}

.mp-languages__menu a,
.mp-languages__current {
    display: block;
    padding: var(--s-2) var(--s-4);
    font-size: var(--fs-meta);
    text-decoration: none;
}

@media (hover: hover) and (pointer: fine) { .mp-languages__menu a:hover {
    background-color: var(--c-canvas-alt);
} }

.mp-languages__current {
    font-weight: 600;
}

.mp-languages__list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--s-4);
    margin: 0;
    padding: 0;
    list-style: none;
}

.mp-languages__list [aria-current="true"] {
    font-weight: 600;
}

/* Transparent-over-hero state */

.mp-header--transparent {
    background-color: transparent;
    border-block-end-color: transparent;
    color: var(--c-on-deep);
}

.mp-header::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: 0;
    background: linear-gradient(180deg, var(--c-scrim), transparent);
    background: linear-gradient(
        180deg,
        color-mix(in srgb, var(--c-deep) 78%, transparent),
        transparent
    );
    transition: opacity var(--dur-base) var(--ease);
}

.mp-header--transparent::before {
    opacity: 1;
}

.mp-header__inner {
    position: relative;
    z-index: 1;
}

/* WordPress fixes its authenticated toolbar above the viewport. Keep the
   equally fixed site header below it so the brand and controls remain usable. */
.admin-bar .mp-header {
    inset-block-start: 32px;
}

@media screen and (max-width: 782px) {

    .admin-bar .mp-header {
        inset-block-start: 46px;
    }
}

.mp-header:not(.mp-header--transparent) .mp-header__cta {
    background-color: var(--c-deep);
    color: var(--c-on-deep);
    border-color: var(--c-deep);
}

@media (hover: hover) and (pointer: fine) { .mp-header:not(.mp-header--transparent) .mp-header__cta:hover {
    background-color: var(--c-ink);
    border-color: var(--c-ink);
} }

.mp-header--transparent .mp-btn--secondary {
    background-color: color-mix(in srgb, var(--c-deep) 28%, transparent);
    color: var(--c-on-deep);
    border-color: var(--c-on-deep);
}

@media (hover: hover) and (pointer: fine) { .mp-header--transparent .mp-btn--secondary:hover {
    background-color: var(--c-on-deep);
    color: var(--c-ink);
} }

/* Toggle */

/* Display is set by the navigation breakpoint authority below. */
.mp-header__toggle {
    align-items: center;
    justify-content: center;
    width: var(--h-control);
    height: var(--h-control);
    margin-inline-end: calc(var(--s-3) * -1);
    color: inherit;
}

.mp-header__toggle-bars,
.mp-header__toggle-bars::before,
.mp-header__toggle-bars::after {
    display: block;
    width: var(--icon-bar-w);
    height: 1px;
    background-color: currentColor;
}

.mp-header__toggle-bars::before,
.mp-header__toggle-bars::after {
    content: "";
    position: relative;
}

.mp-header__toggle-bars::before {
    inset-block-start: calc((var(--icon-bar-gap) + 1px) * -1);
}

.mp-header__toggle-bars::after {
    inset-block-start: var(--icon-bar-gap);
}

/* Drawer */

.mp-drawer {
    position: fixed;
    inset: 0;
    z-index: var(--z-drawer);
    display: flex;
    flex-direction: column;
    gap: var(--s-8);
    padding: var(--gutter);
    padding-block-start: calc(var(--h-header) + var(--s-8));
    background-color: var(--c-canvas);
    overflow-y: auto;
    /* Scrolling inside the open menu never chains to the page behind (iOS). */
    overscroll-behavior: contain;
}

.mp-drawer[hidden] {
    display: none;
}

.mp-drawer__list,
.mp-drawer .mp-nav__list {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.mp-drawer__list a,
.mp-drawer .mp-nav__list a {
    display: block;
    padding-block: var(--s-4);
    font-family: var(--font-display);
    font-size: var(--fs-h3);
    text-decoration: none;
    border-block-end: var(--border);
}

.mp-drawer__foot {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--s-6);
    margin-block-start: auto;
}

.mp-drawer__close {
    position: absolute;
    inset-block-start: 0;
    inset-inline-end: var(--gutter);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: var(--h-control);
    height: var(--h-header);
    font-size: var(--fs-meta);
    letter-spacing: var(--ls-meta);
    text-transform: uppercase;
}

body.mp-scroll-locked > :not(.mp-drawer) {
    pointer-events: none;
}

/* ============================================================
   FOOTER
   ============================================================ */

/* Footer language navigation — Batch 5A.

   Reuses the drawer's .mp-languages--mobile markup and its existing
   .mp-lang / .mp-languages__list rules; the only addition is tone. The row it
   replaced was muted plain text, so the resting state matches --mp-footer__note
   exactly and the footer gains no visual weight. The current language and the
   hovered language lift to full --c-on-deep so the switcher still reads as
   interactive.

   The focus ring on these links is Saffron (--c-focus-on-deep, 3.32:1 on
   Indigo) via the .mp-footer scope declared near the top of this file. */

/* ============================================================
   NAVIGATION BREAKPOINT AUTHORITY

   1120px is the only navigation breakpoint in this theme, and this
   block is the only place that decides which navigation is visible.
   Do not add display rules for .mp-header__nav, .mp-header__cta,
   the header language slot, .mp-header__toggle or .mp-drawer anywhere
   else — a duplicate rule in a later-loaded file silently wins and
   both navigations end up on screen.

   Below 1120px  compact: brand + hamburger, drawer available
   1120px and up full:    brand + links + language + CTA, no hamburger

   The two states are mutually exclusive by construction: every
   element appears in exactly one side of this query.

   1120px fits the seven menu entries, so laptops get the full menu. Recheck
   it when a language goes live or an entry returns: translated labels and
   the language selector are wider.
   ============================================================ */

/* Compact state (mobile first) */

.mp-header__nav,
.mp-languages--desktop,
.mp-header__cta {
    display: none;
}

.mp-header__toggle {
    display: inline-flex;
}

/* Full state */

@media (min-width: 1120px) {

    .mp-header__nav {
        display: block;
        margin-inline-start: auto;
    }

    .mp-languages--desktop {
        display: block;
    }

    .mp-header__cta {
        display: inline-flex;
    }

    .mp-header__toggle {
        display: none;
    }

    /* Belt and braces: even if the drawer were left open across the
       breakpoint, it cannot coexist with the full navigation.
       navigation.js also closes it and restores scroll and focus. */
    .mp-drawer {
        display: none;
    }
}

/* ============================================================
   ENTITY TEMPLATES — Stage 3A
   Archives and singles for tours, destinations and experiences.
   ============================================================ */

/* Experience cards are square. */

.mp-card--experience .mp-card__media {
    aspect-ratio: var(--ratio-experience);
}

/* Archive head is wider than a section head: an archive h1 carries the
   page, so it is given room rather than being squeezed to reading width. */

.mp-archive__head {
    max-width: var(--w-reading);
}

/* Empty archive state */

.mp-empty {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--s-4);
    max-width: var(--w-reading);
    padding-block: var(--s-12);
    border-block-start: var(--border);
}

.mp-empty__title {
    font-family: var(--font-display);
    font-size: var(--fs-h3);
    line-height: var(--lh-heading);
}

.mp-empty .mp-btn {
    margin-block-start: var(--s-2);
}

/* Pagination — native WordPress markup */

.mp-pagination {
    margin-block-start: var(--s-16);
    padding-block-start: var(--s-6);
    border-block-start: var(--border);
}

.mp-pagination .nav-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--s-2);
}

.mp-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: var(--h-control);
    min-height: var(--h-control);
    padding-inline: var(--s-3);
    font-family: var(--font-ui);
    font-size: var(--fs-body);
    text-decoration: none;
    border: 1px solid transparent;
}

@media (hover: hover) and (pointer: fine) { .mp-pagination a.page-numbers:hover {
    border-color: var(--c-rule-strong);
} }

.mp-pagination .page-numbers.current {
    border-color: var(--c-ink);
    font-weight: 600;
}

/* Breadcrumbs */

.mp-breadcrumbs {
    padding-block: var(--s-8) 0;
}

.mp-breadcrumbs__list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--s-2);
    margin: 0;
    padding: 0;
    list-style: none;
    font-family: var(--font-ui);
    font-size: var(--fs-meta);
    color: var(--c-muted);
}

.mp-breadcrumbs__item {
    display: flex;
    align-items: center;
    gap: var(--s-2);
    min-width: 0;
}

/* Separator is decorative and generated, so it is never announced. */
.mp-breadcrumbs__item:not(:first-child)::before {
    content: "/";
    color: var(--c-rule-strong);
}

.mp-breadcrumbs a {
    color: inherit;
    text-decoration: none;
    border-block-end: 1px solid transparent;
}

@media (hover: hover) and (pointer: fine) { .mp-breadcrumbs a:hover {
    border-block-end-color: var(--c-signal);
} }

.mp-breadcrumbs [aria-current="page"] {
    color: var(--c-ink);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Entity hero */

/* Long-form body content.
   Constrained to reading width rather than the full container: editorial
   quality matters here for readers and for future long-form content. */

.mp-prose {
    max-width: var(--w-reading);
    font-family: var(--font-display);
    font-size: var(--fs-article);
    line-height: var(--lh-article);
}

.mp-prose > * + * {
    margin-block-start: var(--s-6);
}

.mp-prose h2,
.mp-prose h3 {
    margin-block-start: var(--s-12);
}

.mp-prose h2 {
    font-size: var(--fs-h3);
}

.mp-prose a {
    color: var(--c-signal-text);
    text-decoration-color: var(--c-signal);
}

/* GATE B RUNTIME FIX — restore Gutenberg list markers.

   base.css resets `ul[class], ol[class]` to `list-style: none` for
   component lists (navigation, cards, footer and so on). Gutenberg List
   blocks render as `<ul class="wp-block-list">`, so that reset matched
   them too, and nothing in the prose layer ever re-declared list-style —
   only the padding was restored. Result: editorial lists rendered with
   no visible markers on the live site.

   The restoration lives here, scoped to .mp-prose, so every component
   list outside editorial content keeps its intentional marker-free
   styling. Equal specificity to the reset; this file loads later, so
   the cascade resolves without !important. */

.mp-prose ul {
    list-style: disc;
}

.mp-prose ul {
    padding-inline-start: var(--s-6);
}

.mp-prose li + li {
    margin-block-start: var(--s-2);
}

.mp-prose figure {
    margin-block: var(--s-8);
}

/* ============================================================
   EDITORIAL + CORE PAGES — Stage 3B
   ============================================================ */

/* Travel Guide cards are 16:9. */

.mp-card--guide .mp-card__media {
    aspect-ratio: var(--ratio-guide);
}

/* Article and page heads share the same editorial opening. */

.mp-article__head,
.mp-page__head {
    padding-block: var(--s-8) 0;
}

.mp-article__intro,
.mp-page__intro {
    display: flex;
    flex-direction: column;
    gap: var(--s-4);
    max-width: var(--w-reading);
}

.mp-article__media,
.mp-page__media {
    margin: var(--s-12) 0 0;
    overflow: hidden;
    background-color: var(--c-canvas-alt);
}

.mp-article__media img,
.mp-page__media img {
    width: 100%;
    height: auto;
}

.mp-guide__intro {
    margin-block-end: var(--s-12);
}

/* Previous / next article navigation */

.mp-article-nav {
    padding-block: var(--s-12);
    border-block-start: var(--border);
}

.mp-article-nav__inner {
    display: grid;
    gap: var(--s-8);
}

.mp-article-nav__link {
    display: flex;
    flex-direction: column;
    gap: var(--s-2);
    text-decoration: none;
    padding-block: var(--s-2);
}

.mp-article-nav__title {
    font-family: var(--font-display);
    font-size: var(--fs-h3);
    line-height: var(--lh-heading);
    text-wrap: balance;
}

@media (hover: hover) and (pointer: fine) { .mp-article-nav__link:hover .mp-article-nav__title {
    color: var(--c-signal-text);
} }

@media (min-width: 768px) {

    .mp-article-nav__inner {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mp-article-nav__link--next {
        text-align: end;
        align-items: flex-end;
    }
}

/* Plan Your Trip — process steps */

/* Search form */

.mp-search-form {
    display: flex;
    flex-direction: column;
    gap: var(--s-3);
    width: 100%;
    max-width: var(--w-reading);
}

.mp-search-form__label {
    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-search-form__row {
    display: flex;
    flex-wrap: wrap;
    gap: var(--s-3);
}

.mp-search-form__input {
    flex: 1 1 12rem;
    min-width: 0;
    min-height: var(--h-control);
    padding-inline: var(--s-4);
    background-color: var(--c-surface);
    border: var(--border-strong);
    border-radius: var(--radius-input);
    font-family: var(--font-ui);
    font-size: var(--fs-body);
}

.mp-search-form__submit {
    flex: none;
}

/* Search results */

.mp-results {
    display: flex;
    flex-direction: column;
}

.mp-result {
    display: grid;
    gap: var(--s-4);
    padding-block: var(--s-8);
    border-block-start: var(--border);
}

.mp-result:last-child {
    border-block-end: var(--border);
}

.mp-result__media {
    margin: 0;
    aspect-ratio: var(--ratio-tour);
    overflow: hidden;
    background-color: var(--c-canvas-alt);
}

.mp-result__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mp-result__media-link {
    display: block;
}

.mp-result__body {
    display: flex;
    flex-direction: column;
    gap: var(--s-2);
    min-width: 0;
}

.mp-result__title {
    font-size: var(--fs-h3);
}

.mp-result__title a {
    text-decoration: none;
}

.mp-result__excerpt {
    color: var(--c-muted);
    max-width: var(--w-reading);
}

@media (min-width: 768px) {

    .mp-result {
        grid-template-columns: 200px minmax(0, 1fr);
        gap: var(--s-8);
        align-items: start;
    }
}

/* Simple link lists — 404 and empty states */

.mp-linklist {
    display: flex;
    flex-wrap: wrap;
    gap: var(--s-2) var(--s-6);
    margin: 0;
    padding: 0;
    list-style: none;
    font-family: var(--font-ui);
}

.mp-linklist a {
    text-decoration: none;
    border-block-end: 1px solid var(--c-signal);
}

/* 404 */

.mp-404 {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--s-8);
    max-width: var(--w-reading);
}

/* ============================================================
   GUTENBERG BLOCK TREATMENT — Stage 3B
   Core block styles now load normally. This layer applies the
   design system on top; it does not re-implement core layout.
   ============================================================ */

/* Wide alignment. The reading column is narrow, so a wide block breaks out
   symmetrically to the content container. alignfull is capped to the same
   width rather than the viewport: a true full-bleed block inside a padded
   container is the classic source of horizontal overflow, and every page in
   this theme is verified overflow-free. */

/* Figures, galleries and captions */

.mp-prose .wp-block-image figcaption,
.mp-prose .wp-block-gallery figcaption,
.mp-prose .wp-block-embed figcaption {
    font-family: var(--font-ui);
    font-size: var(--fs-meta);
    color: var(--c-muted);
    text-align: start;
}

/* Quotes */

.mp-prose .wp-block-quote {
    padding-inline-start: var(--s-6);
    border-inline-start: 1px solid var(--c-signal);
    font-style: normal;
}

.mp-prose .wp-block-quote cite {
    display: block;
    margin-block-start: var(--s-3);
    font-family: var(--font-ui);
    font-size: var(--fs-meta);
    font-style: normal;
    color: var(--c-muted);
}

/* Separator */

.mp-prose .wp-block-separator {
    max-width: var(--s-16);
    margin-block: var(--s-12);
    border: 0;
    border-block-start: 1px solid var(--c-rule-strong);
}

/* Tables */

.mp-prose .wp-block-table table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--font-ui);
    font-size: var(--fs-body);
}

.mp-prose .wp-block-table th,
.mp-prose .wp-block-table td {
    padding: var(--s-3) var(--s-4);
    text-align: start;
    vertical-align: top;
    border-block-end: var(--border);
}

.mp-prose .wp-block-table th {
    font-weight: 600;
    border-block-end: var(--border-strong);
}

/* A wide table stays readable by scrolling itself rather than the page. */
.mp-prose .wp-block-table {
    overflow-x: auto;
}

/* Details block — accessible FAQ behaviour with no JavaScript. */

.mp-prose .wp-block-details {
    padding-block: var(--s-4);
    border-block-start: var(--border);
}

.mp-prose .wp-block-details summary {
    font-family: var(--font-display);
    font-size: var(--fs-h3);
    line-height: var(--lh-heading);
    cursor: pointer;
}

.mp-prose .wp-block-details summary:focus-visible {
    outline: var(--focus-ring) solid var(--c-focus);
    outline-offset: var(--focus-ring);
}

.mp-prose .wp-block-details[open] summary {
    margin-block-end: var(--s-4);
}

/* Buttons inherit the design system rather than core's pill shape. */

.mp-prose .wp-block-button__link {
    display: inline-flex;
    align-items: center;
    min-height: var(--h-control);
    padding-inline: var(--s-8);
    background-color: var(--c-ink);
    color: var(--c-canvas);
    border-radius: var(--radius);
    font-family: var(--font-ui);
    font-size: var(--fs-body);
    font-weight: 600;
    text-decoration: none;
}

.mp-prose .wp-block-button.is-style-outline .wp-block-button__link {
    background-color: transparent;
    color: var(--c-ink);
    border: 1px solid var(--c-ink);
}

/* Lists written as blocks */

.mp-prose .wp-block-list {
    padding-inline-start: var(--s-6);
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */

/* FP. Progressive enhancement, and the order of these rules is the whole
   contract:

     No JavaScript  -> no data-mp-reveal attribute is ever written, so none of
                       these rules match and every element renders normally.
                       A JS failure cannot hide content.
     JavaScript     -> navigation.js marks only elements that start BELOW the
                       fold as "pending". Anything already on screen at load is
                       marked "shown" immediately, so nothing that the visitor
                       can already see is hidden and re-revealed.

   Reduced motion is handled twice: navigation.js does not initialise the
   observer at all, and the block at the end of this section neutralises the
   attribute in case the preference changes after load. */

[data-mp-reveal="pending"] {
    opacity: 0;
    transform: translateY(var(--shift-reveal));
}

[data-mp-reveal="shown"] {
    opacity: 1;
    transform: none;
    transition:
        opacity var(--dur-reveal) var(--ease),
        transform var(--dur-reveal) var(--ease);
    transition-delay: calc(var(--mp-reveal-i, 0) * var(--stagger-reveal));
}

/* Only opacity and transform are animated, so a reveal never triggers layout
   and never blocks the main thread on a long grid. */
[data-mp-reveal] {
    will-change: opacity, transform;
}

[data-mp-reveal="shown"] {
    will-change: auto;
}

@media (prefers-reduced-motion: reduce) {

    [data-mp-reveal],
    [data-mp-reveal="pending"],
    [data-mp-reveal="shown"] {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ============================================================
   ITINERARY
   Day-by-day editorial component. Presentation only.
   ============================================================ */

/* FP. This component is data-source neutral by construction. It receives
   display strings and nothing else — see template-parts/single/itinerary.php
   for the contract. It has no knowledge of payload shape, identifiers or
   storage, and every row it draws is conditional, so a Day with no narrative,
   no stops, no accommodation and no media still renders as a clean entry
   rather than an empty frame. */

.mp-itinerary {
    display: flex;
    flex-direction: column;
}

.mp-itinerary__day {
    display: grid;
    gap: var(--s-6);
    padding-block: var(--s-12);
    border-block-start: var(--border);
}

.mp-itinerary__day:last-child {
    border-block-end: var(--border);
}

.mp-itinerary__aside {
    display: flex;
    flex-direction: column;
    gap: var(--s-6);
}

.mp-itinerary__position {
    font-family: var(--font-ui);
    font-size: var(--fs-label);
    font-weight: 600;
    letter-spacing: var(--ls-label);
    text-transform: uppercase;
    color: var(--c-signal-text);
}

.mp-itinerary__body {
    display: flex;
    flex-direction: column;
    gap: var(--s-4);
    align-items: flex-start;
    min-width: 0;
}

.mp-itinerary__title {
    font-size: var(--fs-h3);
    text-wrap: balance;
}

.mp-itinerary__narrative {
    max-width: var(--w-reading);
    color: var(--c-muted);
}

/* Facts row. A definition list, not a card grid: the values are short and
   the labels carry the meaning. Any fact the adapter cannot supply is simply
   not rendered, so this row shrinks rather than showing an empty slot. */

.mp-itinerary__media {
    margin: 0;
    aspect-ratio: var(--ratio-tour);
    overflow: hidden;
    background-color: var(--c-canvas-alt);
}

.mp-itinerary__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* On the indigo surface the component inverts with the section, matching the
   Passage Story treatment above it. */

@media (min-width: 768px) {

    .mp-itinerary__day {
        grid-template-columns: minmax(10rem, 3fr) minmax(0, 9fr);
        gap: var(--s-12);
    }

}

/* ============================================================
   TOUCH TARGET FLOOR
   ============================================================ */

/* FP. --h-control (52px) already governs buttons, the search input, the
   drawer trigger and pagination. These four families were the exceptions:
   they are inline text links whose hit area was only their line box, between
   24px and 37px tall.

   Padding is used rather than min-height so the targets grow without forcing
   a taller line box, and the footer list gap is reduced by the same amount
   the padding adds, so the footer column keeps its rhythm. */

.mp-languages__menu a,
.mp-languages__current {
    padding-block: var(--s-3);
}

.mp-breadcrumbs a,
.mp-linklist a {
    display: inline-block;
    padding-block: var(--s-2);
}

/* ============================================================
   DRAWER — ADMIN BAR AND SAFE AREA
   ============================================================ */

/* FP. Measured in Chrome at a 786px viewport with the drawer open:

       #wpadminbar         height 32px
       .mp-header          inset-block-start 32px   (already offset)
       .mp-drawer          inset-block-start  0px   (was not)

   The drawer is fixed to the top of the viewport, so its close control sat
   underneath the admin bar and rendered half-clipped for every logged-in
   editor. This mirrors the header's existing rule, including the 782px switch
   where WordPress swaps the bar from 32px to 46px.

   Logged-out visitors are unaffected: no admin bar in the markup, no offset,
   no change to the public rendering. */

.admin-bar .mp-drawer {
    inset-block-start: 32px;
}

@media screen and (max-width: 782px) {

    .admin-bar .mp-drawer {
        inset-block-start: 46px;
    }
}

/* Safe area. The drawer's last element is its primary CTA, so on a handset
   with a home indicator or an overlaying browser toolbar it is the control
   most likely to be cut off. env() resolves to 0px wherever there is no
   inset, so this is inert on desktop and costs nothing. */

.mp-drawer {
    padding-block-end: calc(var(--gutter) + env(safe-area-inset-bottom, 0px));
    padding-inline-start: calc(var(--gutter) + env(safe-area-inset-left, 0px));
    padding-inline-end: calc(var(--gutter) + env(safe-area-inset-right, 0px));
}

/* ============================================================
   FP-R2 — SECTION RHYTHM AND SURFACE SYSTEM
   ============================================================ */

/* The homepage previously ran ten sections at one padding value across two
   light surfaces that differ by about 2% luminance. It read as one long
   column. Two systems fix that together: rhythm tiers, and a third light
   surface that was already in the approved palette but unused.

   --c-surface (White) is the missing note. Plaster to White is a visible
   step; Plaster to Plaster Alt is not. Using White for the two discovery
   sections gives the page a real alternation without adding a colour. */

.mp-section--compact {
    padding-block: var(--section-y-compact);
}

/* Homepage surface and rhythm score.

   hero          image / indigo   arrival
   brand         Plaster          generous   promise
   journeys      White            generous   discovery, the central offer
   passage       Indigo           atmospheric story
   destinations  Plaster          generous   place
   experiences   White            generous   people
   why           Plaster Alt      normal     trust
   tonal         image / indigo   atmospheric reset
   guide         Plaster          generous   editorial
   cta           White            generous   invitation
   footer        Indigo           close

   Applied by scope rather than by editing ten template parts, so the
   semantic markup and the qualified IA are untouched. */

/* Where two light surfaces still meet, a hairline states the boundary
   rather than leaving the eye to guess. Never between a light and a dark
   section, where the colour change is the boundary. */

/* ============================================================
   FP-R2 — SECTION HEADING COMPOSITION
   ============================================================ */

/* The eyebrow was a small caps line floating above a heading. It now sits on
   a short saffron rule, which gives every section the same recognisable
   opening gesture and quietly repeats the Passage Line motif at section
   scale. The heading measure is capped so a long H2 breaks editorially
   rather than running the full container width. */

.mp-heading__label {
    display: flex;
    align-items: center;
    gap: var(--s-3);
    margin-block-end: var(--s-4);
}

.mp-heading__label::before {
    content: "";
    flex: none;
    width: var(--s-8);
    height: 1px;
    background-color: var(--c-signal);
}

.mp-section__head h2,
.mp-archive__head h1 {
    max-width: 20ch;
}

.mp-section__head {
    max-width: min(var(--w-reading), 100%);
    margin-block-end: var(--section-y-compact);
}

.mp-section__foot {
    margin-block-start: var(--section-y-compact);
    padding-block-start: var(--s-6);
    border-block-start: var(--border);
}

/* ============================================================
   FP-R2 — MEDIA FRAME AND HOVER LANGUAGE
   ============================================================ */

/* One media language for every frame in the theme. Photography is the
   subject, so the only things that move are a small scale and the focal
   point; nothing darkens on hover and nothing lifts. --media-focal is the
   theme-facing focal value a future adapter will set per image. */

.mp-card__media img,
.mp-itinerary__media img,
.mp-page__media img {
    object-position: var(--media-focal);
    transition: transform var(--dur-media) var(--ease);
}

.mp-card__media {
    background-color: var(--c-canvas-alt);
    overflow: hidden;
}

/* Scale lives at the low end of the allowed range. At 1.03 the crop shifts
   enough to register as responsive and not enough to soften the image. */
.mp-card:hover .mp-card__media img,
.mp-card:focus-within .mp-card__media img {
    transform: scale(1.03);
}

/* Title colour is the second hover signal, so the card reads as one target
   even though only the title is a link. */
.mp-card:hover .mp-card__link,
.mp-card:focus-within .mp-card__link {
    color: var(--c-signal-text);
}

.mp-card__link {
    transition: color var(--dur-micro) var(--ease);
}

@media (prefers-reduced-motion: reduce) {

    .mp-card:hover .mp-card__media img,
    .mp-card:focus-within .mp-card__media img {
        transform: none;
    }
}

/* ============================================================
   FP-R2 — CARD CONTAINER QUERIES
   ============================================================ */

/* Cards previously sized their type from the page breakpoint, so the same
   card rendered identically in a 340px homepage column and a 620px archive
   column. They now respond to the space they are given, which is what makes
   one card component work in every context without variant classes.

   Progressive: without container query support the base rules apply and the
   card is simply the compact version everywhere. */

/* The container is the CARD, not the grid.

   Caught in the browser: with container-type on the grid, the query measured
   the full grid width, so every card in a three-column row matched the wide
   branch and rendered a section-scale title inside a 357px column. The card
   must measure itself — that is the entire point of the technique. */

.mp-card {
    container-type: inline-size;
    container-name: mp-card;
}

@supports (container-type: inline-size) {

    /* Only a card that genuinely has the width earns display-scale type:
       a single-column layout, a two-up related strip, a wide feature slot. */
    @container mp-card (min-width: 30rem) {

        .mp-card__title {
            font-size: var(--fs-h2);
            max-width: 20ch;
        }

        .mp-card__body {
            gap: var(--s-4);
        }

        .mp-card__excerpt {
            max-width: 52ch;
        }
    }
}

/* ============================================================
   FP-R2 — SIGNATURE JOURNEYS
   ============================================================ */

/* Equal baselines from FP-R1 are preserved. What changes is the reading
   order inside the card: a hairline now separates media from body, the meta
   line sits tighter to the title, and the action cue is pushed to the
   bottom of the card so every card in a row ends on the same gesture even
   when excerpts differ in length. */

.mp-card {
    height: 100%;
}

.mp-card__body {
    flex: 1 1 auto;
}

/* DEV-3B2 — SPECIFICITY REPAIR, NOT A REDESIGN.

   The comment above has always described the intended behaviour: the action
   cue is pushed to the bottom so every card in a row ends on the same
   gesture. It never happened. `.mp-card__action` is (0,1,0); the cue's own
   appearance rule earlier in this file is `.mp-action.mp-card__action`,
   (0,2,0), and it sets `margin-block-start: var(--s-1)`. Specificity beats
   source order, so `auto` lost and the cue sat 4px under the excerpt instead
   of at the foot of the card.

   Measured on the running site before this change: the homepage journeys
   grid and experiences grid each showed a 32px spread between the lowest and
   highest action cue in the same row, with the cards themselves already at
   equal height. Matching the selector to (0,2,0) — later in source, so it
   wins — restores the documented behaviour and changes nothing else. The
   appearance rule keeps ownership of colour, weight, border and min-height. */

.mp-action.mp-card__action {
    margin-block-start: auto;
    padding-block-start: var(--s-4);
}

/* ============================================================
   FP-R2 — PASSAGE STORY
   ============================================================ */

/* The signature section: intro and image, set against a wider asymmetry
   on desktop. */

@media (min-width: 1024px) {

    /* A wider left column than the FP-R1 5/7 split: the sticky intro is the
       anchor of the section and deserves the emphasis. */
    
}

/* ============================================================
   FP-R2 — DESTINATION FEATURE
   ============================================================ */

/* Was a lead card plus two rail cards, which read as another card section.
   It now reads as arriving somewhere: the place name is set at display
   scale, the supporting rail is reduced to hairline-separated entries, and
   the media frame carries the portrait ratio that belongs to place. */

/* ============================================================
   FP-R2 — EXPERIENCES
   ============================================================ */

/* Differentiated from Tours by crop and by label. Tours are 3/2 editorial
   landscapes about route; Experiences stay square and human, and their meta
   line is set in the display face rather than the uppercase UI label, which
   makes the section feel closer to people and further from inventory. */

/* ============================================================
   FP-R2 — WHY PASSAGE
   ============================================================ */

/* Three or four values in a row of plain text. The numbering and the rule
   give the section structure without boxing anything, and the value title
   moves to the display face so the principles carry the same authority as
   the section headings above them. */

/* ============================================================
   FP-R2 — TRAVEL GUIDE EDITORIAL IDENTITY
   ============================================================ */

/* FP-R1's explicit failure: Guide content reused the Tour card unchanged, so
   editorial reading material looked like inventory. The Guide now has its
   own language, built from the same primitives so it stays inside the system:

     Tour card      image-led, uppercase UI meta, action cue, 3/2 frame
     Guide card     headline-led, display-face topic, date, no button,
                    reading affordance carried by the headline itself

   The difference is deliberate and legible at a glance. */

.mp-card--guide .mp-card__media {
    aspect-ratio: var(--ratio-guide);
}

.mp-card--guide .mp-card__body {
    gap: var(--s-3);
    padding-block-start: var(--s-4);
    border-block-start: 0;
}

/* Topic and date sit on one line in the UI face at label scale — the
   publishing convention — rather than as a tracked-out product meta row. */
.mp-card--guide .mp-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: var(--s-3);
    font-family: var(--font-ui);
    font-size: var(--fs-label);
    letter-spacing: var(--ls-label);
    text-transform: uppercase;
    color: var(--c-signal-text);
}

/* The headline is the component. It is larger than a Tour title at the same
   container width, and it is the reading affordance — no button, no arrow. */
.mp-card--guide .mp-card__title {
    font-size: var(--fs-h3);
    text-wrap: balance;
}

.mp-card--guide .mp-card__link {
    text-decoration: none;
    background-image: linear-gradient(var(--c-rule), var(--c-rule));
    background-repeat: no-repeat;
    background-position: 0 100%;
    background-size: 0 1px;
    transition:
        background-size var(--dur-base) var(--ease),
        color var(--dur-micro) var(--ease);
}

.mp-card--guide:hover .mp-card__link,
.mp-card--guide:focus-within .mp-card__link {
    background-size: 100% 1px;
}

.mp-card--guide .mp-card__excerpt {
    max-width: 46ch;
}

/* The homepage lead story. A single wide editorial frame with the headline
   at section scale, so the Guide block opens like a publication front page
   rather than a third card row. */

/* Supporting stories reduce to hairline-separated headlines. No media, no
   excerpt competition — a contents list beside the lead. */

/* The Guide archive inherits the same language, so homepage and archive
   read as one publication. */

/* ============================================================
   FP-R2 — ARTICLE TYPOGRAPHY
   ============================================================ */

/* The reading surface. Measure is held at the editorial range rather than
   the container width, headings get air above and less below so they bind
   to the text they introduce, and the pull quote finally has a treatment. */

.mp-prose {
    max-width: var(--w-reading);
}

.mp-prose > * + * {
    margin-block-start: var(--s-6);
}

.mp-prose h2 {
    margin-block-start: var(--s-16);
    margin-block-end: var(--s-4);
}

.mp-prose h3 {
    margin-block-start: var(--s-12);
    margin-block-end: var(--s-3);
}

/* Figures and wide blocks may break the reading measure; text may not. */
.mp-prose figure {
    max-width: none;
}

.mp-article__head {
    max-width: var(--w-reading);
}

/* ============================================================
   FP-R2 — GLOBAL PAGE HERO SYSTEM
   ============================================================ */

/* One anatomy, five purposes. Breadcrumb, eyebrow, H1, standfirst, optional
   media — shared by archives, entity pages, institutional pages and the
   Guide, differing only by measure and rhythm modifier rather than by five
   separate implementations. */

.mp-page__head,
.mp-archive__head {
    padding-block: var(--section-y-generous) var(--section-y-compact);
}

.mp-page__head h1,
.mp-archive__head h1 {
    max-width: 18ch;
    text-wrap: balance;
}

.mp-page__intro {
    max-width: var(--w-reading);
}

.mp-page__head .mp-lead,
.mp-archive__head .mp-lead {
    max-width: 52ch;
}

.mp-page__head .mp-label {
    display: flex;
    align-items: center;
    gap: var(--s-3);
    margin-block-end: var(--s-4);
}

.mp-page__head .mp-label::before {
    content: "";
    flex: none;
    width: var(--s-8);
    height: 1px;
    background-color: var(--c-signal);
}

.mp-page__media {
    margin-block-start: var(--section-y-compact);
    overflow: hidden;
    aspect-ratio: var(--ratio-guide);
    background-color: var(--c-canvas-alt);
}

.mp-page__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ============================================================
   FP-R2 — ENTITY HERO RATIO SYSTEM
   ============================================================ */

/* FP-R1 recorded the inconsistency: all three entity heroes resolved to the
   Tour ratio while their cards used three different ones, so a Destination
   was portrait as a card and landscape as a hero. Resolved deliberately —
   each hero now takes the ratio that matches its subject, and each matches
   its own card family:

     Tour hero         21/9  cinematic; a route is a horizon
     Destination hero   4/5  portrait; a place is somewhere you stand
     Experience hero    3/2  landscape but closer; activity in context

   Destination keeps portrait on desktop and relaxes to landscape on narrow
   screens, where a 4/5 hero would push the H1 below the fold. */

/* ============================================================
   FP-R2 — ARCHIVE PERSONALITY
   ============================================================ */

/* Shared infrastructure, different character. The card family already
   differentiates by ratio; these rules differentiate the opening gesture so
   each archive announces what kind of discovery it offers. */

.mp-archive__head {
    max-width: min(var(--w-reading), 100%);
}

.post-type-archive-mp_destination .mp-archive__head h1 {
    max-width: 12ch;
}

.post-type-archive-mp_experience .mp-archive__head h1 {
    max-width: 16ch;
}

/* Destination archive reads as a place index: portrait frames, two across
   at tablet, three at desktop, tighter gutters than the Tour grid. */
.post-type-archive-mp_destination .mp-grid--cards {
    gap: var(--gap-card);
}

.mp-empty {
    max-width: 46ch;
    padding-block: var(--section-y-generous);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--s-4);
    border-block-start: var(--border);
}

.mp-empty__title {
    font-family: var(--font-display);
    font-size: var(--fs-h2);
    line-height: var(--lh-heading);
    letter-spacing: var(--ls-display);
    text-wrap: balance;
}

.mp-empty .mp-btn {
    margin-block-start: var(--s-4);
}

/* ============================================================
   FP-R2 — FINAL CTA AND PAGE CTA
   ============================================================ */

/* An editorial close rather than a marketing panel. The heading takes
   display scale, the measure stays tight, and the two actions keep their
   hierarchy — one solid, one text. Saffron is not used as a button fill
   anywhere; it stays a rule and an accent. */

.mp-cta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--s-6);
    max-width: var(--w-reading);
}

.mp-cta h2 {
    font-size: var(--fs-h2);
    max-width: 16ch;
    text-wrap: balance;
}

.mp-cta .mp-lead {
    max-width: 48ch;
}

.mp-cta__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--s-6);
    margin-block-start: var(--s-2);
}

/* ============================================================
   FP-R2 — FOOTER AS A BRAND SURFACE
   ============================================================ */

/* The footer closed the page but did not close the brand. It now opens with
   a brand block — mark, positioning line and planning action — above the
   navigation columns, so the last thing a visitor sees restates who this is
   and what to do next. Everything here already existed in the theme; no
   contact detail, social account or legal claim is invented. */

/* ============================================================
   FP-R2 — 404 AND SEARCH
   ============================================================ */

/* The 404 uses the brand device rather than a joke: a Passage Line whose
   last node has no label, which is exactly what a missing page is. */

.mp-404 {
    padding-block: var(--section-y-generous);
    max-width: var(--w-reading);
}

.mp-404__code {
    font-family: var(--font-display);
    font-size: clamp(4rem, 14vw, 9rem);
    line-height: 1;
    letter-spacing: var(--ls-display);
    color: var(--c-rule-strong);
}

.mp-linklist {
    display: flex;
    flex-wrap: wrap;
    gap: var(--s-3) var(--s-8);
    margin: 0;
    padding: 0;
    list-style: none;
    padding-block-start: var(--s-6);
    border-block-start: var(--border);
}

/* ============================================================
   FP-R2 — PAGE ENTRANCE
   ============================================================ */

/* One gesture on load, not a loader. Main content settles from 0.985 opacity
   and 4px, which registers as the page arriving without ever delaying
   navigation or hiding anything: the animation runs forwards from a nearly
   final state, so a failed animation still leaves readable content. */

@media (prefers-reduced-motion: no-preference) {

    .mp-main {
        animation: mp-enter var(--dur-entrance) var(--ease) both;
    }
}

@keyframes mp-enter {
    from {
        opacity: 0.985;
        transform: translateY(4px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

/* ============================================================
   FP-R2 — FACT STRIP
   ============================================================ */

/* A row of already-formatted display values under an entity hero. Hairline
   above and below, labels in the UI face at label scale, values in the
   display face — so it reads as a specification, not a badge row.

   auto-fit means the strip works with two facts or six without the caller
   choosing a column count, which is what keeps it safe as the future adapter
   decides how many facts a given entity has. */

/* ============================================================
   FP-R2 — FOOTER WORDMARK AND PENDING STATE
   ============================================================ */

/* The pending state is the empty state with a saffron rule instead of a
   neutral one: the page is not broken, it is waiting. */
.mp-empty--pending {
    border-block-start: 2px solid var(--c-signal);
}

/* ============================================================
   FP-R2 — MULTILINGUAL AND SCALE SAFETY
   ============================================================ */

/* EN is the source language; FR, ES and DE arrive later and run 15-30%
   longer. Anything that could clip a longer string is given room to wrap
   here rather than being discovered when translations land.

   Buttons keep nowrap by design, so their padding is the elastic part; every
   text container below wraps. */

.mp-nav__list a,
.mp-drawer__list a,
.mp-breadcrumbs a,
.mp-breadcrumbs span {
    overflow-wrap: break-word;
}

.mp-card__title,
.mp-itinerary__title,
.mp-empty__title {
    overflow-wrap: break-word;
    hyphens: auto;
}

/* A long unbroken place name in a narrow card must not push the grid wider
   than its track. minmax(0, ...) on every grid above handles the track; this
   handles the text inside it. */
.mp-card,
.mp-itinerary__body {
    min-width: 0;
}

/* Grids must survive any item count, including a lone final item. Cards are
   never centred or stretched to fill a short last row — a single item in a
   three-column grid stays one column wide and sits at the start, which is
   correct for an editorial index and requires no item-count CSS anywhere. */
.mp-grid--cards {
    justify-items: stretch;
}

/* Cards stretch to the tallest in the row so that .mp-card__action, which is
   pushed down with margin-block-start:auto, lands on one line across the row
   even when excerpts differ in length. Every card in a row therefore ends on
   the same gesture — the detail that separates an editorial row from three
   independent boxes.

   align-items is deliberately left at its stretch default here: setting it to
   start (an earlier revision of this block did) breaks that alignment, and a
   lone item in a three-column grid is already handled by justify-items rather
   than by block alignment. */

/* ============================================================
   FP-R2 — INTERACTION STATE COMPLETENESS
   ============================================================ */

/* Every interactive surface states hover, focus and current. The focus
   treatment from Batch 5A is untouched — this only fills the gaps where an
   element had a hover but no current state, or neither. */

.mp-nav__list a,
.mp-drawer__list a {
    transition: color var(--dur-micro) var(--ease);
}

.mp-nav__list .current-menu-item > a,
.mp-drawer__list .current-menu-item > a,
.mp-nav__list [aria-current="page"],
.mp-drawer__list [aria-current="page"] {
    color: var(--c-signal);
}

.mp-breadcrumbs a {
    transition: color var(--dur-micro) var(--ease);
}

@media (hover: hover) and (pointer: fine) { .mp-breadcrumbs a:hover {
    color: var(--c-signal-text);
} }

.mp-linklist a {
    text-decoration: none;
    border-block-end: 1px solid var(--c-rule);
    transition:
        color var(--dur-micro) var(--ease),
        border-color var(--dur-micro) var(--ease);
}

@media (hover: hover) and (pointer: fine) { .mp-linklist a:hover {
    color: var(--c-signal-text);
    border-block-end-color: var(--c-signal);
} }

/* ============================================================
   FP-R2 — MEDIA FRAME EDGE
   ============================================================ */

/* Found by looking at the rendered page rather than the code: once the
   discovery sections moved to White, the placeholder's lightest band sat
   within a few percent of the section background and the card frames lost
   their edge — the images read as blank space rather than as reserved
   frames.

   A hairline states the frame. It is the same rule weight used everywhere
   else in the theme, it is correct on all three light surfaces, and it will
   still be right under photography, where a fine containing line is an
   editorial convention rather than a workaround. */

.mp-card__media,
.mp-itinerary__media,
.mp-page__media {
    border: var(--border);
}

/* On the indigo surface the same frame needs the light rule instead. */

/* Guide cards drop the action cue entirely. The headline is the reading
   affordance — it carries the growing underline on hover and focus — so an
   arrow beneath it repeats a promise the headline has already made. This is
   the last thing separating the Guide from product inventory: journeys point
   somewhere, stories are simply read. */

.mp-card--guide .mp-card__action {
    display: none;
}

/* ============================================================
   UI POLISH — VISUAL REFINEMENT PASS
   ============================================================

   Appended deliberately at the end of the file so source order does the
   specificity work and the whole block can be removed in one piece.

   Six measured problems, in the order they hurt:

   1  A Tour single put its H1 at y=516 on a 762px viewport. Above it:
      140px of empty canvas, a breadcrumb, then 144px more of empty canvas.
      The first screen of every entity page said nothing.

   2  Page titles rendered at --fs-display, 76px at 1536px wide. That is a
      homepage-hero size being asked to carry a 53-character Tour name, which
      it did in four lines and 319px. Archive heads had the same problem: a
      504px head before the first card.

   3  Empty media frames read as voids rather than as frames. The Tour hero
      is a 487px band of flat canvas-alt with a placeholder inside it.

   4  The fact strip spent 126px on a single row.

   5  Card media had no hover state, so a linked card and a dead card looked
      identical until the cursor reached the title.

   6  Thirty-five entities share one placeholder graphic per type, so an
      archive grid read as a repeated swatch.

   Everything below uses existing tokens. One new type-scale token is added
   because none of the five existing steps was right for a page title.
   ============================================================ */

/* ---- A NEW STEP IN THE TYPE SCALE -------------------------

   --fs-display is right for four words on a homepage hero and wrong for a
   sentence-length entity title. --fs-h2 is too quiet to open a page. This
   sits between them: 34px on a phone, 56px at the cap. */

:root {
    --fs-page-title: clamp(2.125rem, 4.2vw, 3.5rem);
}

/* ---- B PAGE HEAD RHYTHM -----------------------------------

   The generous tier assumes a head that opens the page. On entity and
   archive pages the breadcrumb already does that, so the tier below it is
   the correct one — the head is a second element, not a first.

   Measured effect at 1536px: 144px -> 96px on the top pad, and the H1 moves
   from y=516 to roughly y=400 once the title scale lands too. */

.mp-page__head,
.mp-archive__head {
    padding-block: var(--section-y) var(--section-y-compact);
}

/* Where a breadcrumb sits above, tighter again: the breadcrumb carries its
   own 32px and two stacked openings read as a gap, not as rhythm.

   The breadcrumb is wrapped in its own .mp-container, so it is never an
   adjacent sibling of the head. The structural selector is the reliable one;
   the :has() rule below catches the same case on any template that arranges
   it differently, and is additive so it costs nothing where it does not
   match. */

/* ---- C PAGE TITLE SCALE -----------------------------------

   Entity and archive titles only. The homepage hero keeps --fs-display and
   is untouched: that headline is short and the size is doing real work there.

   The measure relaxes from 18ch to 21ch because the type is smaller — the
   line count falls without the column getting wider than it should. */

.mp-archive__head h1,
.mp-page__head h1 {
    font-size: var(--fs-page-title);
    line-height: var(--lh-heading);
    letter-spacing: -0.015em;
    max-width: 21ch;
}

/* ---- D MEDIA FRAMES ---------------------------------------

   A frame with nothing in it should look like a frame that is waiting, not
   like a layout that failed. The treatment is one soft vertical gradient and
   one inset hairline — enough to give the band an edge and a light direction
   without inventing an image or printing a label.

   ::after rather than a background on the element itself, so a real
   photograph will sit under it and gain a very slight vignette rather than
   having to fight a background it cannot cover. */

.mp-card__media,
.mp-page__media {
    position: relative;
    overflow: hidden;
}

.mp-card__media::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(
            180deg,
            color-mix(in srgb, var(--c-surface) 22%, transparent) 0%,
            transparent 42%,
            color-mix(in srgb, var(--c-ink) 5%, transparent) 100%
        );
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c-ink) 6%, transparent);
}

/* On the indigo surface the same treatment needs the light rule instead,
   or the inset hairline disappears into the panel. */

/* ---- E CARD MEDIA HOVER -----------------------------------

   A very small scale on the image inside a fixed-ratio frame that already
   clips. Nothing moves in the layout, the grid cannot shift, and the card is
   fully understandable without it — the hover is confirmation that the card
   is a link, not the only way to find out.

   --dur-media exists for exactly this and is longer than a hover so the
   movement reads as weight rather than as a flicker. */

@media (prefers-reduced-motion: no-preference) {

    .mp-card__media img {
        transition: transform var(--dur-media) var(--ease);
        will-change: transform;
    }

    .mp-card:hover .mp-card__media img,
.mp-card:focus-within .mp-card__media img,
.mp-card:focus-within .mp-card__media picture {
        transform: scale(1.03);
    }
}

/* ---- F PLACEHOLDER DEPTH ----------------------------------

   Thirty-five entities currently share three placeholder graphics between
   them, so a twenty-card Destination archive is the same swatch twenty
   times. A faint diagonal wash over the frame breaks that repetition without
   pretending to be content and without touching the artwork itself.

   Deliberately weak. It should be noticed as texture, never as a pattern. */

.mp-card__media {
    background-image:
        linear-gradient(
            135deg,
            color-mix(in srgb, var(--c-signal) 4%, transparent) 0%,
            transparent 38%,
            transparent 62%,
            color-mix(in srgb, var(--c-deep) 5%, transparent) 100%
        );
    background-color: var(--c-canvas-alt);
}

/* ---- G FACT STRIP DENSITY ---------------------------------

   126px for one row. The strip is a fact, not a section, and it currently
   spends more vertical space than the facts it holds.

   The single-row case gets the tightest treatment; a fuller strip keeps more
   air because it needs it. :has() is used for the one-row case only, and the
   base rule below stands on its own if it is unsupported. */

/* ---- H SINGLE-PAGE SECTION RHYTHM -------------------------

   The first section after a hero was inheriting the full section rhythm on
   top of the hero's own bottom padding, so two paddings stacked into one
   large gap. The hero already ended the block; the section below it only
   needs to begin. */

/* ---- I RELATED STRIP HEADS --------------------------------

   Related strips are secondary content and were opening with the same
   spacing as the page's own sections, which flattened the difference between
   "this page" and "other pages". A tighter head gap restores it.

   Scoped to .mp-related (added in template-parts/single/related-strip.php).
   The earlier `.mp-section .mp-section__head` selector also matched all five
   homepage section heads and cut their gap from 64px to 32px at 1536px. */

.mp-related .mp-section__head {
    margin-block-end: var(--s-8);
}

/* ---- J BREADCRUMB WEIGHT ----------------------------------

   The breadcrumb is orientation, not content. At body size and full ink it
   competed with the title beneath it. */

.mp-breadcrumbs {
    font-size: var(--fs-meta);
}

.mp-breadcrumbs__item:last-child {
    color: var(--c-muted);
}

/* ============================================================
   C5 — ENTITY PAGE RHYTHM CORRECTIONS
   ============================================================

   Measured on a Tour single at 1440px in the local full-site preview.

   1  Polish rule H (`.mp-entity-hero + .mp-section`) gave the fact strip a
      64px top pad, overriding its own `--flush-top` modifier. The hero
      already ends with 64px, so the strip floated 128px below the media.
      The modifier is the more specific intent and wins again.

   2  A compact strip (the fact strip) followed by a full section stacked
      64px + 96px of padding into one 160px void before "Day by day". The
      section after a compact strip only needs to begin, not to open a
      new chapter. */

.mp-section--compact + .mp-section {
    padding-block-start: var(--section-y-compact);
}

/* Pre-media review — homepage destination feature.
   The lead's text column was capped at 16rem, so "Explore Morocco
   destinations" broke over four lines at every desktop width, and between
   768 and 1199px the 7fr/5fr split left the portrait media frame 106-232px
   wide. Below 1200px the lead now takes the full width with the rail
   beneath it; from 1200px the original side-by-side composition returns
   with a text column wide enough for the action on one line. */

/* Pre-media review — destination hero.
   The 4/5 portrait frame was applied to the full single-column hero, so on
   desktop it rendered 1136 x 1420px: the overview began almost two screens
   below the title. From 1024px the destination hero becomes the same
   composition as the homepage destination lead — title and introduction
   beside a portrait frame — which keeps the portrait intent at a sane height
   (about 440 x 550px at 1440). Tour and Experience heroes are unchanged. */

/* ============================================================
   FINAL PRE-MEDIA PASS — TYPE, CARDS, PLANNING, RHYTHM
   ============================================================ */

/* ---- Card titles ------------------------------------------
   One compact title size for every card family in a grid. The wide-card
   container query above still lifts a card that genuinely has the room. */

.mp-card__title,
.mp-card--guide .mp-card__title {
    font-size: var(--fs-card);
    line-height: var(--lh-heading);
    text-wrap: balance;
}

@supports (container-type: inline-size) {
    @container mp-card (min-width: 30rem) {
        .mp-card__title {
            font-size: var(--fs-h3);
        }
    }
}

/* ---- Entity close: planning and price ----------------------
   Destination and Experience pages keep the single editorial close. The
   Tour close becomes a two-part planning area: the action on the left, and
   on the right how a private journey is priced and arranged — or an
   approved canonical price when one exists. */

.mp-entity-cta__grid {
    display: grid;
    gap: var(--s-12);
}

.mp-planning {
    display: grid;
    margin: 0;
    border-block-start: 2px solid var(--c-signal);
}

.mp-planning__item {
    display: grid;
    gap: var(--s-2);
    padding-block: var(--s-6);
    border-block-end: var(--border);
}

.mp-planning dt {
    font-family: var(--font-ui);
    font-size: var(--fs-label);
    font-weight: 600;
    letter-spacing: var(--ls-label);
    text-transform: uppercase;
    color: var(--c-signal-text);
}

.mp-planning dd {
    margin: 0;
    max-width: 44ch;
    color: var(--c-ink);
    font-size: var(--fs-body);
    line-height: var(--lh-body);
}

@media (min-width: 1024px) {
    .mp-entity-cta--planning .mp-entity-cta__grid {
        grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
        align-items: start;
        gap: var(--s-16);
    }
}

/* ---- Related strips on a single ---------------------------
   Consecutive strips on the same surface used two full section paddings
   between them. The second one only needs to begin, separated by a rule
   that sits on the content edge. After the itinerary, its own last rule
   already divides the two, so no second rule is drawn. */

.mp-related:not(.mp-section--alt) + .mp-itinerary-section,
.mp-itinerary-section + .mp-related:not(.mp-section--alt) {
    padding-block-start: 0;
}

.mp-related:not(.mp-section--alt) + .mp-itinerary-section > .mp-container::before {
    content: "";
    display: block;
    margin-block-end: var(--section-y-compact);
    border-block-start: var(--border);
}

/* ---- Places on this route ---------------------------------
   The route's places are an ordered sequence, not a set of equal cards:
   each carries its position in the route, and the repeated "Explore
   destination" cue is dropped because the place name is already the link. */

#route .mp-grid--cards {
    counter-reset: mp-route;
}

#route .mp-card {
    counter-increment: mp-route;
}

#route .mp-card__body {
    gap: var(--s-2);
    padding-block: var(--s-4) var(--s-2);
}

#route .mp-card__title::before {
    content: counter(mp-route, decimal-leading-zero);
    display: block;
    margin-block-end: var(--s-1);
    font-family: var(--font-ui);
    font-size: var(--fs-label);
    font-weight: 600;
    letter-spacing: var(--ls-label);
    color: var(--c-signal-text);
}

#route .mp-card__action {
    display: none;
}

#route .mp-card__link:hover,
#route .mp-card__link:focus-visible {
    color: var(--c-signal-text);
}

/* ---- Experience hero ---------------------------------------
   At 3/2 across the full container the empty experience frame measured
   1136 x 757px — taller than the rest of the page's content combined on a
   short Experience. From 1024px it takes the 16/9 editorial ratio instead,
   which keeps it landscape and close, and in proportion to the Tour hero. */

/* ---- Mobile reading comfort -------------------------------- */

@media (max-width: 767px) {
    .mp-prose p,
    .mp-prose li {
        font-size: var(--fs-body);
    }

    .mp-cta__actions {
        align-self: stretch;
    }

    .mp-cta__actions .mp-btn {
        width: 100%;
    }

    /* Ten places in one column ran past a full screen; two columns keep
       the route readable as a sequence at a glance. */
    #route .mp-grid--cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: var(--s-6);
    }
}

/* ============================================================
   FINAL UX PASS — BUTTON AND ACTION SYSTEM
   ============================================================

   Four levels, one system:

     .mp-btn--primary    Indigo fill. The one planning action per view.
     .mp-btn--secondary  Hairline outline. A real alternative, never a twin.
     .mp-btn--quiet      No frame. Low-emphasis actions beside a primary.
     .mp-action          Directional text link with a moving arrow.

   Restrained 3px corners (--radius-control), 48px height (52px for
   --large), 15px semibold type. Indigo replaces the black rectangle as the
   primary fill: it carries the brand and reads calmer at the same contrast
   (on-deep text on #1C3A52 measures 11.4:1). Deep surfaces and the hero keep
   their inverted treatments, which are more specific and still win. */

.mp-btn {
    min-height: var(--h-btn);
    padding-inline: var(--s-6);
    border: 1px solid transparent;
    border-radius: var(--radius-control);
    font-size: var(--fs-btn);
    font-weight: 600;
    letter-spacing: var(--ls-btn);
    line-height: 1.2;
    cursor: pointer;
    transition:
        background-color var(--dur-micro) var(--ease),
        border-color var(--dur-micro) var(--ease),
        color var(--dur-micro) var(--ease),
        box-shadow var(--dur-micro) var(--ease);
}

.mp-btn--primary {
    background-color: var(--c-deep);
    border-color: var(--c-deep);
    color: var(--c-on-deep);
}

@media (hover: hover) and (pointer: fine) { .mp-btn--primary:hover {
    background-color: var(--c-deep-strong);
    border-color: var(--c-deep-strong);
    color: var(--c-on-deep);
} }

.mp-btn--secondary {
    background-color: transparent;
    border-color: var(--c-rule-strong);
    color: var(--c-ink);
}

@media (hover: hover) and (pointer: fine) { .mp-btn--secondary:hover {
    background-color: var(--c-canvas-alt);
    border-color: var(--c-ink);
    color: var(--c-ink);
} }

.mp-btn--large {
    min-height: var(--h-btn-lg);
    padding-inline: var(--s-8);
    font-size: var(--fs-body);
}

.mp-btn:focus-visible {
    outline: var(--focus-ring) solid var(--c-focus);
    outline-offset: 3px;
}

.mp-btn:active {
    box-shadow: var(--shadow-pressed);
}

/* Deep surfaces: the primary inverts to plaster, hover to saffron. */

/* The header CTA follows the same geometry, slightly more compact so it
   stays noticeable without dominating the logo. */
.mp-header__cta {
    min-height: var(--h-touch);
    padding-inline: var(--s-6);
}

/* Directional text link */

.mp-action {
    min-height: var(--h-touch);
    gap: var(--s-2);
    font-size: var(--fs-btn);
    letter-spacing: var(--ls-btn);
    border-block-end: 1px solid color-mix(in srgb, var(--c-signal) 50%, transparent);
    transition:
        border-color var(--dur-micro) var(--ease),
        color var(--dur-micro) var(--ease);
}

@media (hover: hover) and (pointer: fine) { .mp-action:hover {
    border-block-end-color: var(--c-signal);
} }

.mp-action__arrow {
    transition: transform var(--dur-micro) var(--ease);
}

.mp-action:hover .mp-action__arrow,
.mp-action:focus-visible .mp-action__arrow {
    transform: translateX(4px);
}

.mp-action:focus-visible {
    outline: var(--focus-ring) solid var(--c-focus);
    outline-offset: 4px;
}

}
