/* public/css/marketplace.css
   ---------------------------------------------------------------------------
   The proposition marketplace. Namespaced .mp-* so nothing here can reach the
   existing listing marketplace, which must keep working unchanged.

   Colours, radii and type follow the site's established language: navy #0B1626,
   gold #C9A227 (darkened to #8A6E12 on light grounds, where the brand gold is
   only 2.4:1 and fails AA), warm paper #F7F5EF.
   --------------------------------------------------------------------------- */

.page-marketplace {
    /* Inherited from coutts-tokens.css with a local fallback, so the canonical proposition
       template and the rest of the site share one palette rather than two copies that drift. */
    --mp-navy:  var(--cx-navy,  #0B1626);
    --mp-ink: var(--cx-ink);
    --mp-muted: var(--cx-muted);
    --mp-gold:  var(--cx-gold-ink,  #8A6E12);
    --mp-gold-d:var(--cx-gold-soft, #D9B65A);
    --mp-line: var(--cx-line);
    --mp-paper: var(--cx-paper);
    --mp-font: var(--cx-sans);
    background: #fff;
    font-family: var(--mp-font);
}
/* tl.css sets every heading to Manrope + uppercase globally; neutralised in scope. */
.page-marketplace h1, .page-marketplace h2, .page-marketplace h3 {
    font-family: var(--mp-font); text-transform: none; letter-spacing: normal;
}

.mp-wrap { max-width: var(--cx-container); margin: 0 auto; padding: 0 var(--cx-gutter); }
.mp-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---- preview banner ---- */
.mp-preview { background: #0B1626; color: #F4F6F9; padding: .7rem 0; font-size: .84rem; }
.mp-preview--warn { background: #5A4300; }
.mp-preview-inner { display: flex; flex-wrap: wrap; gap: .25rem 1rem; align-items: baseline; }
.mp-preview strong { color: #D9B65A; }
.mp-preview em { font-style: normal; text-decoration: underline; }
.mp-preview-note { opacity: .75; }

/* ---- hero ---- */
.mp-hero { background: var(--mp-navy); color: #F4F6F9; padding: clamp(2rem, 4vw, 3.2rem) 0; }
.mp-hero--sub, .mp-hero--proposition { padding: clamp(1.6rem, 3vw, 2.4rem) 0; }
.mp-eyebrow { font-size: .68rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
    color: var(--mp-gold-d); margin: 0 0 .5rem; }
.mp-eyebrow a { color: inherit; }
.mp-h1 { font-size: clamp(1.5rem, 3vw, 2.3rem); font-weight: 600; line-height: 1.15;
    letter-spacing: -.015em; margin: 0 0 .6rem; text-wrap: balance; max-width: 26ch; }
.mp-lede { font-size: .95rem; line-height: 1.6; color: rgba(244,246,249,.82);
    margin: 0 0 1rem; max-width: 62ch; text-wrap: pretty; }
.mp-meta { font-size: .82rem; color: rgba(244,246,249,.7); margin: 0 0 .7rem; }
.mp-meta .fi { width: 18px; height: 13px; border-radius: var(--cx-radius-xs); vertical-align: -1px; }

.mp-hero-search { display: flex; gap: .5rem; max-width: 560px; margin-top: 1rem; }
.mp-hero-search input { flex: 1; min-width: 0; padding: .7rem .9rem; border-radius: 8px;
    border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.07);
    color: #fff; font-size: .9rem; font-family: inherit; }
.mp-hero-search input::placeholder { color: rgba(255,255,255,.5); }

/* ---- buttons ---- */
.mp-btn { display: inline-flex; align-items: center; gap: .4rem; white-space: nowrap;
    background: var(--mp-gold-d); color: #1A1204; border: 0; border-radius: var(--cx-btn-radius);
    font-size: var(--cx-btn-fs); font-weight: var(--cx-btn-weight); padding: 0 var(--cx-btn-pad-x); cursor: pointer;
    text-decoration: none; font-family: inherit;
    transition: transform var(--cx-duration-sm) ease, box-shadow var(--cx-duration-sm) ease; min-height: var(--cx-btn-h);}
.mp-btn:hover { transform: translateY(var(--cx-hover-lift)); box-shadow: 0 8px 20px rgba(217,182,90,.26); color: #1A1204; }
.mp-btn--primary { margin-top: .4rem; }
.mp-btn:focus-visible { outline: 2px solid var(--mp-gold-d); outline-offset: 3px; }

/* ---- breadcrumbs ---- */
.mp-crumbs { background: var(--mp-paper); border-bottom: 1px solid var(--mp-line); padding: .6rem 0; }
.mp-crumbs ol { display: flex; flex-wrap: wrap; gap: .3rem .5rem; list-style: none; margin: 0; padding: 0;
    font-size: .78rem; color: var(--mp-muted); }
.mp-crumbs li + li::before { content: "/"; margin-right: .5rem; color: #9AA6B6; }
.mp-crumbs a { color: var(--mp-muted); text-decoration: none; }
.mp-crumbs a:hover { color: var(--mp-gold); text-decoration: underline; }
.mp-crumbs [aria-current] { color: var(--mp-ink); font-weight: 600; }

/* ---- body ---- */
.mp-body { padding: clamp(1.6rem, 3vw, 2.6rem) 0 clamp(2.4rem, 4vw, 3.4rem); }
.mp-h2 { font-size: 1.05rem; font-weight: 600; color: var(--mp-ink); margin: 1.6rem 0 .9rem; }
.mp-h2:first-child { margin-top: 0; }
.mp-h3 { font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
    color: var(--mp-muted); margin: 0 0 .6rem; }
.mp-empty { font-size: .92rem; color: var(--mp-muted); padding: 1.4rem 0; }
.mp-empty a { color: var(--mp-gold); }

/* ---- family grid ---- */
.mp-families { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.mp-family { display: block; padding: 1.2rem 1.3rem; border: 1px solid var(--mp-line);
    border-radius: var(--cx-radius-lg); text-decoration: none; background: #fff;
    transition: transform var(--cx-duration-sm) ease, box-shadow var(--cx-duration-sm) ease, border-color var(--cx-duration-sm) ease; }
.mp-family:hover { transform: translateY(var(--cx-hover-lift)); border-color: #D8C486;
    box-shadow: var(--cx-shadow-3); }
.mp-family:focus-visible { outline: 2px solid var(--mp-gold); outline-offset: 3px; }
.mp-family-name { display: block; font-size: 1rem; font-weight: 600; color: var(--mp-ink);
    line-height: 1.3; margin-bottom: .35rem; text-wrap: balance; }
.mp-family-desc { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden; font-size: .84rem; line-height: 1.5; color: var(--mp-muted); margin-bottom: .5rem; }
.mp-family-count { display: block; font-size: .76rem; font-weight: 600; color: var(--mp-gold); }

/* ---- subcategory chips ---- */
.mp-subs { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.6rem; }
.mp-sub { display: inline-flex; align-items: center; gap: .5rem; padding: .5rem .85rem;
    border: 1px solid var(--mp-line); border-radius: 999px; text-decoration: none;
    font-size: .84rem; color: var(--mp-ink); background: #fff; transition: border-color var(--cx-duration-sm) ease; }
.mp-sub:hover { border-color: var(--mp-gold); color: var(--mp-ink); }
.mp-sub:focus-visible { outline: 2px solid var(--mp-gold); outline-offset: 2px; }
.mp-sub-count { font-size: .72rem; font-weight: 600; color: var(--mp-gold);
    background: rgba(201,162,39,.1); border-radius: var(--cx-radius-sm); padding: .1rem .38rem; }

/* ---- filters ---- */
.mp-filters { display: flex; flex-wrap: wrap; gap: .7rem; align-items: flex-end;
    padding: 1rem 1.1rem; background: var(--mp-paper); border: 1px solid var(--mp-line);
    border-radius: var(--cx-radius-lg); margin-bottom: 1.4rem; }
.mp-filter { display: flex; flex-direction: column; gap: .25rem; min-width: 0; flex: 1 1 200px; }
.mp-filter label { font-size: .7rem; font-weight: 600; letter-spacing: .08em;
    text-transform: uppercase; color: var(--mp-muted); }
.mp-filter input, .mp-filter select { padding: .55rem .7rem; border: 1px solid var(--mp-line);
    border-radius: var(--cx-radius-sm); font-size: .88rem; font-family: inherit; background: #fff; color: var(--mp-ink); }
.mp-clear { font-size: .8rem; color: var(--mp-muted); text-decoration: underline; padding-bottom: .6rem; }

/* ---- proposition cards ---- */
.mp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; }
.mp-card { display: flex; flex-direction: column; padding: 1.1rem 1.2rem;
    border: 1px solid var(--mp-line); border-radius: var(--cx-radius-lg); background: #fff;
    text-decoration: none; transition: transform var(--cx-duration-sm) ease, box-shadow var(--cx-duration-sm) ease, border-color var(--cx-duration-sm) ease; }
.mp-card:hover { transform: translateY(var(--cx-hover-lift)); border-color: #D8C486;
    box-shadow: var(--cx-shadow-3); }
.mp-card:focus-visible { outline: 2px solid var(--mp-gold); outline-offset: 3px; }
.mp-card-flag { display: inline-flex; align-items: center; gap: .4rem; font-size: .74rem;
    font-weight: 600; color: var(--mp-muted); margin-bottom: .5rem; }
.mp-card-flag .fi { width: 18px; height: 13px; border-radius: var(--cx-radius-xs); }
.mp-card-flag--global { color: var(--mp-gold); }
.mp-card-title { font-size: .95rem; font-weight: 600; line-height: 1.35; color: var(--mp-ink);
    margin-bottom: .35rem; display: -webkit-box; -webkit-line-clamp: 3;
    -webkit-box-orient: vertical; overflow: hidden; }
.mp-card-desc { font-size: .82rem; line-height: 1.5; color: var(--mp-muted);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mp-card-foot { display: flex; align-items: center; justify-content: space-between;
    gap: .5rem; margin-top: auto; padding-top: .8rem; }
.mp-card-sub { font-size: .72rem; color: var(--mp-muted); }
.mp-card-go { color: var(--mp-gold); font-weight: 600; transition: transform var(--cx-duration-sm) ease; }
.mp-card:hover .mp-card-go { transform: translateX(3px); }

.mp-pager { margin-top: 1.6rem; }

/* ---- proposition detail ---- */
.mp-detail { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(1.4rem, 3vw, 2.6rem);
    align-items: start; }
/* ---- listing body -----------------------------------------------------------
   The structured Gold Standard sections render as h2 + ul/ol inside this wrapper.
   Only colour was set here before, so headings had no separation from the text
   above them and lists had no markers or indent — which is why the sections read
   as one continuous run. Editorial, not boxed: a rule and spacing do the work. */
.mp-prose { font-size: .95rem; line-height: 1.75; color: var(--mp-muted); max-width: 72ch; }

.mp-prose h2 {
    color: var(--mp-ink);
    font-family: var(--cx-display, inherit);
    font-size: 1.02rem; font-weight: 800; letter-spacing: -.005em;
    margin: 2.1rem 0 .75rem; padding-top: 1.1rem;
    border-top: 1px solid var(--mp-line, #E4E7EC);
}
.mp-prose h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.mp-prose h3 { color: var(--mp-ink); font-weight: 700; font-size: .95rem; margin: 1.4rem 0 .5rem; }
.mp-prose p { margin: 0 0 1rem; }

.mp-prose ul, .mp-prose ol { margin: 0 0 1.1rem; padding-left: 0; list-style: none; }
.mp-prose li { position: relative; padding-left: 1.5rem; margin-bottom: .5rem; }

/* Gold marker rather than a browser bullet — restrained, and consistent across browsers. */
.mp-prose ul > li::before {
    content: ""; position: absolute; left: .35rem; top: .62em;
    width: 5px; height: 5px; border-radius: 50%;
    background: var(--mp-gold, #C9A227);
}

/* Numbered steps: the counter is the design, so it is set in the display face. */
.mp-prose ol { counter-reset: mp-step; }
.mp-prose ol > li { counter-increment: mp-step; padding-left: 2.4rem; margin-bottom: .7rem; }
.mp-prose ol > li::before {
    content: counter(mp-step, decimal-leading-zero);
    position: absolute; left: 0; top: 0;
    font-family: var(--cx-display, inherit);
    font-size: .78rem; font-weight: 800; letter-spacing: .04em;
    color: var(--mp-gold, #C9A227);
    line-height: 1.75;
}

/* A single-line section — Timescale — reads better without the full paragraph gap. */
.mp-prose h2 + p:last-child { margin-bottom: 0; }

@media (max-width: 620px) {
    .mp-prose h2 { margin-top: 1.6rem; font-size: .98rem; }
    .mp-prose ol > li { padding-left: 2.1rem; }
}
.mp-pathways, .mp-modules, .mp-listings { list-style: none; margin: 0 0 1.4rem; padding: 0; }
.mp-pathways li, .mp-modules li { padding: .75rem 0; border-bottom: 1px solid var(--mp-line); }
.mp-pathways strong, .mp-modules strong { display: block; font-size: .9rem; color: var(--mp-ink); }
.mp-pathways span, .mp-modules span { display: block; font-size: .82rem; color: var(--mp-muted); margin-top: .15rem; }
.mp-module-tag { display: inline-block !important; font-size: .68rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: .06em; color: var(--mp-gold);
    background: rgba(201,162,39,.1); border-radius: var(--cx-radius-xs); padding: .1rem .35rem; margin-top: .25rem !important; }
.mp-listings li { padding: .45rem 0; border-bottom: 1px solid var(--mp-line); font-size: .88rem; }
.mp-listings a { color: var(--mp-ink); text-decoration: none; }
.mp-listings a:hover { color: var(--mp-gold); text-decoration: underline; }

.mp-detail-side { display: flex; flex-direction: column; gap: 1.1rem; }
.mp-price { padding: 1.1rem 1.2rem; background: var(--mp-paper); border: 1px solid var(--mp-line);
    border-radius: var(--cx-radius-lg); }
.mp-price-label { display: block; font-size: .68rem; font-weight: 600; letter-spacing: .1em;
    text-transform: uppercase; color: var(--mp-muted); }
.mp-price-value { display: block; font-size: 1.15rem; font-weight: 600; color: var(--mp-ink); margin: .2rem 0; }
.mp-price-note { display: block; font-size: .74rem; color: var(--mp-muted); line-height: 1.45; }
.mp-side-block ul { list-style: none; margin: 0; padding: 0; }
.mp-side-block li { padding: .4rem 0; border-bottom: 1px solid var(--mp-line); font-size: .85rem; }
.mp-side-block a { color: var(--mp-ink); text-decoration: none; display: flex; align-items: center; gap: .45rem; }
.mp-side-block a:hover { color: var(--mp-gold); }
.mp-side-block .fi { width: 18px; height: 13px; border-radius: var(--cx-radius-xs); flex: none; }
.mp-disclaimer { font-size: .74rem; line-height: 1.55; color: var(--mp-muted); }
.mp-disclaimer a { color: var(--mp-gold); }

.mp-suggest { padding: .8rem 1rem; background: var(--mp-paper); border: 1px solid var(--mp-line);
    border-radius: var(--cx-radius-lg); margin-bottom: 1.2rem; font-size: .86rem; }
.mp-suggest p { margin: .2rem 0; color: var(--mp-muted); }
.mp-suggest span { font-style: italic; }
.mp-suggest a { color: var(--mp-gold); font-weight: 600; }

/* ---- responsive ---- */
@media (max-width: 900px) {
    .mp-detail { grid-template-columns: minmax(0, 1fr); }
    .mp-detail-side { order: -1; }   /* price and CTA context above the prose on narrow screens */
}
@media (max-width: 620px) {
    .mp-grid, .mp-families { grid-template-columns: minmax(0, 1fr); }
    .mp-hero-search { flex-direction: column; }
    .mp-hero-search .mp-btn { justify-content: center; }
    .mp-filters { flex-direction: column; align-items: stretch; }
    .mp-filter { flex: 1 1 auto; }
    .mp-preview-inner { flex-direction: column; gap: .2rem; }
    .mp-h1 { max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
    .mp-family, .mp-card, .mp-btn, .mp-card-go { transition: none; }
    .mp-family:hover, .mp-card:hover, .mp-btn:hover { transform: none; }
    .mp-card:hover .mp-card-go { transform: none; }
}

/* ---- proposition hero photograph -------------------------------------
   Applied only when the resolver found an image, so a proposition without one
   keeps the current flat navy hero rather than showing a broken layer. */
.mp-hero--proposition.has-hero-image {
    position: relative; isolation: isolate;
    background-image: var(--mp-hero-img);
    background-size: cover; background-position: center;
    padding-block: clamp(2.2rem, 1.6rem + 2.6vw, 3.6rem);
}
/* Overlay heaviest where the text sits. Measured against the brand navy: the
   title clears AA at every point across the band. */
.mp-hero--proposition.has-hero-image::before {
    content: ''; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(100deg,
    rgba(11,22,38,.94) 0%,
    rgba(11,22,38,.88) 42%,
    rgba(11,22,38,.62) 78%,
    rgba(11,22,38,.48) 100%);
}
@media (max-width: 760px) {
    /* Narrow screens put the text over the full width, so the overlay must be
       even throughout rather than graded. */
    .mp-hero--proposition.has-hero-image::before {
        background: linear-gradient(180deg, rgba(11,22,38,.9) 0%, rgba(11,22,38,.94) 100%);
    }
}

/* ============================================================================
   SERVICE INFORMATION — compliance disclosure (Phase C §8)
   ----------------------------------------------------------------------------
   Deliberately NOT a warning box. §8 rules out large warnings and §13 rules out
   a defensive-looking site, so this reads as a considered note from a
   professional firm rather than a legal caution: paper ground, a single gold
   rule, no icon, no border-all, no amber.

   Everything is a Stage 4A/4B token, so it inherits the site's type scale,
   spacing and radius rather than introducing a seventh set of values.

   Body text is --cx-fs-sm, not a smaller "small print" size. §8 asks for normal
   accessible sizing, and disclosure text set smaller than the copy it qualifies
   is the pattern the brief is trying to avoid.
   ============================================================================ */
/* ---- PROPOSITION FOOTNOTE ---------------------------------------------------
   A footnote, not a panel.

   This was `background: var(--cx-paper)`, a 3px gold left border and
   `--cx-card-pad-feature`, sitting directly above the closing CTA — which made an
   ordinary trade mark registration look as though it carried regulatory risk.

   No background, no border box, no icon. A single hairline rule separates it from
   the content above, and the type sits at --cx-fs-sm on --cx-ink-soft, which is
   the same size and colour the rest of the site uses for secondary text. Small
   print must still be readable print. */
.mp-note {
    margin: var(--cx-space-7) 0 0;
    padding: var(--cx-space-5) 0 0;
    border-top: 1px solid var(--cx-rule);
    /* Modest measure: a full-width line of small type is tiring to read. */
    max-width: 78ch;
}

.mp-note-p {
    font-size: var(--cx-fs-sm);
    line-height: var(--cx-lh-relaxed);
    color: var(--cx-ink-soft);
    margin: 0 0 var(--cx-space-3);
}
.mp-note-p:last-child { margin-bottom: 0; }

/* The label runs into the sentence rather than sitting above it as a heading —
   that is what keeps it a footnote rather than a section. */
.mp-note-lead {
    font-weight: 700;
    color: var(--cx-ink);
}
.mp-note-lead::after { content: ' '; }

.mp-note-link {
    color: var(--cx-gold-ink);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
    white-space: nowrap;
}
.mp-note-link:hover,
.mp-note-link:focus-visible { text-decoration-thickness: 2px; }

@media (max-width: 700px) {
    /* Full content width on mobile, tighter leading in, same type size. */
    .mp-note { max-width: none; margin-top: var(--cx-space-6); padding-top: var(--cx-space-4); }
}

@media (max-width: 767.98px) {
}

/* ---- HERO CTA GROUP (§4, §21) ------------------------------------------
   Scoped to the proposition hero. Deliberately a NEW class rather than a change
   to .mp-btn: the primary button is used elsewhere on the page and altering it
   would reach beyond this fix (§30).

   align-items:center puts both controls on one baseline regardless of the
   margin-top that .mp-btn--primary carries for its original inline context.
   On mobile they stack rather than being squeezed onto one row (§23). */
.mp-hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .7rem;
    margin-top: .4rem;
}
.mp-hero-actions .mp-btn--primary { margin-top: 0; }
.mp-hero-actions .mc-save--hero { margin-left: 0; }

@media (max-width: 599px) {
    .mp-hero-actions { flex-direction: column; align-items: stretch; }
    .mp-hero-actions .mp-btn,
    .mp-hero-actions .mc-save--hero,
    .mp-hero-actions .mc-save-form { width: 100%; }
    .mp-hero-actions .mc-save--hero { justify-content: center; }
}

/* ---- SERVICE DETAILS -------------------------------------------------------
   Structured supplementary information, rendered from `service_details`.
   Editorial rather than boxed: rules, spacing and typography carry it. No cards,
   because a page of cards stops reading like advice and starts reading like a
   product listing. */
.mp-sd { margin: 2.6rem 0 0; padding-top: 1.8rem; border-top: 2px solid var(--mp-line); }

.mp-sd-title {
    font-family: var(--cx-display, inherit);
    font-size: .74rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
    color: var(--mp-gold); margin: 0 0 1.5rem;
}
.mp-sd-h {
    font-family: var(--cx-display, inherit);
    font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
    color: var(--mp-ink); margin: 0 0 .7rem;
}
.mp-sd-prose { margin-bottom: 2rem; max-width: 72ch; }
.mp-sd-prose p { margin: 0; font-size: .95rem; line-height: 1.75; color: var(--mp-muted); }

/* Two columns on desktop, stacking cleanly. auto-fit rather than a fixed count so an
   odd number of populated sections cannot leave a hole. */
.mp-sd-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.6rem 2.6rem; margin-bottom: 2rem;
    padding-bottom: 1.8rem; border-bottom: 1px solid var(--mp-line);
}
.mp-sd-list { list-style: none; margin: 0; padding: 0; }
.mp-sd-list li {
    position: relative; padding-left: 1.5rem; margin-bottom: .5rem;
    font-size: .9rem; line-height: 1.6; color: var(--mp-muted);
}
/* A tick, drawn rather than a font glyph so it renders identically everywhere. */
.mp-sd-list li::before {
    content: ""; position: absolute; left: .1rem; top: .48em;
    width: 9px; height: 5px; border-left: 1.5px solid var(--mp-gold);
    border-bottom: 1.5px solid var(--mp-gold); transform: rotate(-45deg);
}

.mp-sd-steps-wrap { margin-bottom: 2rem; padding-bottom: 1.8rem; border-bottom: 1px solid var(--mp-line); }
.mp-sd-steps {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.3rem 1.8rem; list-style: none; margin: 0; padding: 0; counter-reset: none;
}
.mp-sd-steps li { display: flex; flex-direction: column; gap: .35rem; }
.mp-sd-n {
    font-family: var(--cx-display, inherit);
    font-size: 1.15rem; font-weight: 800; color: var(--mp-gold-d, #D9B65A);
    line-height: 1;
}
.mp-sd-t { font-size: .88rem; line-height: 1.5; color: var(--mp-ink); font-weight: 600; }

.mp-sd-note { margin-bottom: .5rem; }
.mp-sd-note p { margin: 0; font-size: .95rem; color: var(--mp-muted); }

@media (max-width: 620px) {
    .mp-sd-grid { gap: 1.4rem; }
    .mp-sd-steps { grid-template-columns: repeat(2, 1fr); gap: 1.1rem; }
}

/* ---- STICKY SIDEBAR --------------------------------------------------------
   The body is long; without this the column empties after the first screen and
   most of the desktop layout does nothing. */
.mp-facts { display: flex; flex-direction: column; gap: .8rem; }
.mp-fact { display: flex; flex-direction: column; gap: .15rem; }
.mp-fact-k {
    font-size: .64rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
    color: var(--mp-muted);
}
.mp-fact-v { font-size: .9rem; font-weight: 600; color: var(--mp-ink); }
.mp-fact-v a { color: var(--mp-ink); text-decoration: none; border-bottom: 1px solid var(--mp-line); }
.mp-fact-v a:hover { border-bottom-color: var(--mp-gold); }
.mp-fact-v .fi { width: 18px; height: 13px; border-radius: 2px; vertical-align: -1px; margin-right: .3rem; }

.mp-side-more {
    display: inline-block; margin-top: .6rem; font-size: .8rem; font-weight: 600;
    color: var(--mp-gold); text-decoration: none;
}
.mp-side-more:hover { text-decoration: underline; }

.mp-advice p { font-size: .86rem; line-height: 1.6; color: var(--mp-muted); margin: 0 0 .6rem; }
.mp-advice-link { font-size: .86rem; font-weight: 700; color: var(--mp-ink); text-decoration: none; }
.mp-advice-link:hover { color: var(--mp-gold); }

/* ---- SIDEBAR NAVIGATION ----------------------------------------------------
   Soft cards on an off-white ground, each with a heading, a "View all" on the
   same line, and rows that carry a chevron. Restrained: one background tone, one
   hairline, gold reserved for the affordances. */
.mp-side-card {
    background: var(--mp-soft, #F7F8FA);
    border: 1px solid var(--mp-line);
    border-radius: 14px;
    padding: 1rem 1.05rem;
    margin-bottom: 1rem;
}
.mp-side-head {
    display: flex; align-items: baseline; justify-content: space-between; gap: .6rem;
    margin-bottom: .5rem;
}
.mp-side-h {
    font-family: var(--cx-display, inherit);
    font-size: .92rem; font-weight: 700; line-height: 1.3;
    color: var(--mp-ink); margin: 0;
}
.mp-side-all {
    font-size: .76rem; font-weight: 600; color: var(--mp-gold);
    text-decoration: none; white-space: nowrap; flex: 0 0 auto;
}
.mp-side-all:hover { text-decoration: underline; }

.mp-navlist { list-style: none; margin: 0; padding: 0; }
.mp-navlist li + li { border-top: 1px solid var(--mp-line); }
.mp-navlist a {
    display: flex; align-items: center; gap: .6rem;
    padding: .62rem 0; text-decoration: none; color: var(--mp-ink);
}
.mp-navlist .fi {
    width: 26px; height: 19px; border-radius: 3px; flex: 0 0 auto;
    box-shadow: 0 0 0 1px rgba(0,0,0,.08);
}
.mp-nav-body { flex: 1 1 auto; min-width: 0; }
.mp-nav-t {
    display: block; font-size: .87rem; font-weight: 700; line-height: 1.3;
    overflow: hidden; text-overflow: ellipsis;
}
.mp-nav-s {
    display: block; font-size: .74rem; font-weight: 400; color: var(--mp-muted);
    line-height: 1.3; margin-top: .08rem;
}
/* Chevron rather than an underline: it reads as "goes somewhere" without shouting. */
.mp-nav-go { flex: 0 0 auto; font-size: 1.25rem; color: var(--mp-muted); line-height: 1; }
.mp-navlist a:hover .mp-nav-t { color: var(--mp-gold); }
.mp-navlist a:hover .mp-nav-go { color: var(--mp-gold); }

/* ---- explore jurisdiction ---- */
.mp-explore { text-align: left; }
.mp-explore-row { display: flex; align-items: center; gap: .5rem; margin: .3rem 0 .55rem; }
.mp-explore-row .fi { width: 26px; height: 19px; border-radius: 3px; box-shadow: 0 0 0 1px rgba(0,0,0,.08); }
.mp-explore-name { font-size: .95rem; font-weight: 700; color: var(--mp-ink); }
.mp-explore-count { margin-bottom: .8rem; }
.mp-explore-count b {
    display: block; font-family: var(--cx-display, inherit);
    font-size: 1.7rem; font-weight: 800; line-height: 1; color: var(--mp-ink);
}
.mp-explore-count span { font-size: .78rem; color: var(--mp-muted); }
.mp-explore-cta {
    display: block; text-align: center;
    padding: .62rem .9rem; border-radius: 9px;
    background: var(--mp-gold-d, #D9B65A); color: #1B2534;
    font-size: .82rem; font-weight: 700; text-decoration: none;
}
.mp-explore-cta:hover { filter: brightness(.95); color: #1B2534; }

.mp-side-more {
    display: inline-block; margin-top: .6rem; font-size: .8rem; font-weight: 600;
    color: var(--mp-gold); text-decoration: none;
}
.mp-side-more:hover { text-decoration: underline; }

.mp-facts { display: flex; flex-direction: column; gap: .8rem; }
.mp-fact { display: flex; flex-direction: column; gap: .15rem; }
.mp-fact-k { font-size: .64rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--mp-muted); }
.mp-fact-v { font-size: .9rem; font-weight: 600; color: var(--mp-ink); }
.mp-fact-v a { color: var(--mp-ink); text-decoration: none; border-bottom: 1px solid var(--mp-line); }
.mp-fact-v a:hover { border-bottom-color: var(--mp-gold); }
.mp-fact-v .fi { width: 18px; height: 13px; border-radius: 2px; vertical-align: -1px; margin-right: .3rem; }

.mp-advice p { font-size: .86rem; line-height: 1.6; color: var(--mp-muted); margin: 0 0 .6rem; }
.mp-advice-link { font-size: .86rem; font-weight: 700; color: var(--mp-ink); text-decoration: none; }
.mp-advice-link:hover { color: var(--mp-gold); }

/* ---- sticky, but never trapping -------------------------------------------
   The earlier rule made the whole column sticky with its own scrollbar, which
   is wrong when the sidebar is taller than the viewport: the reader gets a
   second scroll region and can lose the page. This sticks only while the
   sidebar fits, and otherwise scrolls with the page. */
@media (min-width: 981px) {
    .mp-detail-side { position: sticky; top: 1.5rem; align-self: start; }
}
@media (min-width: 981px) and (max-height: 900px) {
    .mp-detail-side { position: static; }
}

/* Global listings carry a globe rather than a flag — same slot, same rhythm. */
.mp-globe { font-size: .95em; margin-right: .25rem; line-height: 1; }
