/* public/css/jurisdictions.css
   ---------------------------------------------------------------------------
   Jurisdictions landing page and country pages.

   Navy, white and restrained gold. Gold is an accent — markers, borders, small labels
   and calls to action — never large areas of text (§42). The photography and the map
   carry the premium feel; the type stays quiet.
   --------------------------------------------------------------------------- */

:root {
    --jx-navy:  #0B1626;
    --jx-navy2: #16243B;
    --jx-gold:  #C9A227;
    --jx-line: var(--cx-line);
    --jx-muted: #6B7688;
    --jx-soft:  #F7F8FA;
    --jx-font: var(--cx-sans);
}

.page-jurisdictions { background: var(--jx-soft); font-family: var(--jx-font);
    -webkit-font-smoothing: antialiased; }

/* ── Explorer hero ────────────────────────────────────────────────────────── */

.jx {
    background:
        radial-gradient(1200px 600px at 50% -10%, #1B2E4A 0%, transparent 70%),
        var(--jx-navy);
    /* Brought up ~90px from the previous 5rem top: less empty navy above the map, so the
       heading and the map read as one connected hero (Simon, follow-up note). */
    /* Trimmed: the lower padding was up to 48px, and with the stats' own 48px top margin
       that put ~96px of empty space between the map and the figures. */
    padding: clamp(1rem, 1.8vw, 1.4rem) 1.5rem clamp(1.25rem, 2vw, 1.75rem);
    color: #fff;
}
.jx-inner { max-width: var(--cx-container); margin: 0 auto; text-align: center; }

.jx-eyebrow {
    font: 700 .74rem/1 var(--jx-font); letter-spacing: .18em; text-transform: uppercase;
    color: var(--jx-gold); margin: 0 0 .8rem;
}
.jx-title {
    font: 800 clamp(1.9rem, 4vw, 3rem)/1.08 var(--jx-font);
    letter-spacing: -.028em; color: #fff; margin: 0 0 .8rem;
}
.jx-lead {
    font: 400 clamp(.95rem, 1.4vw, 1.06rem)/1.65 var(--jx-font);
    color: rgba(255,255,255,.78); max-width: 62ch;
    /* Tighter gap to the map so more of it sits above the fold (§7). */
    margin: 0 auto clamp(1rem, 2vw, 1.5rem);
}

/* ── The interactive map ──────────────────────────────────────────────────── */

.jx-map-wrap {
    position: relative; max-width: 980px; margin: 0 auto; width: 100%;

    /*
     * HEIGHT-DRIVEN, not ratio-driven.
     *
     * aspect-ratio made the height a function of the width, so on a wide screen the map grew
     * to ~446px regardless of how much vertical room was left. max-height could clamp the box
     * but not the intent, and the statistics bar below still fell past the fold.
     *
     * Stating the height directly makes the constraint the thing that actually matters: how
     * much of the window the map is allowed to take. 34vh keeps the map, the stats and the
     * top of the panels visible together on a normal laptop; the 300px ceiling stops it
     * growing on very tall monitors, and the 200px floor keeps it legible on short ones.
     *
     * A min-height is still set, so there is no layout shift while jsVectorMap initialises.
     */
    height: clamp(200px, 34vh, 300px);
    min-height: 200px;
}
/* Portrait needs more vertical room for the map to be readable at all. */
@media (max-width: 760px) {
    .jx-map-wrap { height: auto; aspect-ratio: 4 / 3; max-width: none; }
}

.jx-map-canvas { width: 100%; height: 100%; }

/* jsVectorMap paints its own container; these keep it out of the way. */
.jx-map-canvas .jvm-container { background: transparent !important; }
.jx-map-canvas .jvm-tooltip { display: none !important; }   /* replaced by .jx-hover */

/* The active regions glow gently. Slow enough to read as illumination, not animation. */
.jx-map-canvas .jvm-region[fill="#C9A227"] {
    filter: drop-shadow(0 0 6px rgba(201,162,39,.45));
    transition: filter .25s ease;
}
.jx-map-canvas .jvm-region[fill="#E4BE45"] {
    filter: drop-shadow(0 0 14px rgba(201,162,39,.8));
    cursor: pointer;
}

/* Gold location markers with a restrained pulse — a live signal, not a flight tracker (§1). */
.jx-map-canvas .jvm-marker { cursor: pointer; animation: jx-marker-pulse 2.8s ease-in-out infinite; }
.jx-map-canvas .jvm-marker:hover { filter: drop-shadow(0 0 8px rgba(201,162,39,.9)); }
@keyframes jx-marker-pulse {
    0%, 100% { filter: drop-shadow(0 0 2px rgba(201,162,39,.55)); }
    50%      { filter: drop-shadow(0 0 7px rgba(201,162,39,.95)); }
}
@media (prefers-reduced-motion: reduce) {
    .jx-map-canvas .jvm-marker { animation: none; filter: drop-shadow(0 0 4px rgba(201,162,39,.7)); }
}

/* ── Hover preview ────────────────────────────────────────────────────────── */

/* Compact dark tooltip, not a white card.
   The 250px white panel sat over the map and, for a bottom-right country like
   Australia, covered the very region being read. Dark-on-dark reads as an
   annotation on the map rather than a panel floating above it. */
.jx-hover {
    position: absolute; z-index: 5; pointer-events: none;
    width: 176px;
    padding: .6rem .7rem;
    background: rgba(11,22,38,.96); color: #F4F6F9;
    border-radius: var(--cx-radius); border: 1px solid rgba(201,162,39,.45);
    box-shadow: var(--cx-shadow-3);
    display: flex; flex-direction: column; gap: .1rem;
    animation: jx-card-in .16s ease-out;
    backdrop-filter: blur(2px);
}
@keyframes jx-card-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* Gold on rgba(11,22,38,.96) clears AA. The same gold on the old white card was
   2.4:1 and failed, which is why the name had to be navy before. */
.jx-hover-name   { font: 700 .82rem/1.2 var(--jx-font); color: var(--jx-gold);
    letter-spacing: .03em; text-transform: uppercase; }
.jx-hover-region { font: 500 .64rem/1.3 var(--jx-font); color: rgba(244,246,249,.6);
    letter-spacing: .07em; text-transform: uppercase; }
.jx-hover-count  { font: 600 .78rem/1.4 var(--jx-font); color: #F4F6F9; margin-top: .25rem; }
.jx-hover-go     { font: 600 .7rem/1 var(--jx-font); color: var(--jx-gold); margin-top: .35rem; }

/* The category list was the main cause of the panel's height, and it is the least
   useful line in it. Hidden, not removed: the JS still populates the element, so
   nothing can throw. */
.jx-hover-cats   { display: none; }

/* The close button belongs to the mobile docked panel only. On desktop the tooltip
   follows the cursor and hides on mouseout, so a button there is both useless and —
   as it currently renders — a stray empty box under the link. */
.jx-hover-close  { display: none; }

@media (max-width: 760px) {
    /* Hover means nothing on touch, and a tap navigates. §10. */
    .jx-hover { display: none !important; }
}

/* ── Statistics ───────────────────────────────────────────────────────────── */

.jx-stats {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1.5rem; max-width: 820px; margin: clamp(1.1rem, 2vw, 1.6rem) auto 0;
}
.jx-stats div { text-align: center; }
.jx-stats dd { font: 800 clamp(1.6rem, 3vw, 2.2rem)/1 var(--jx-font);
    color: var(--jx-gold); margin: 0 0 .3rem; letter-spacing: -.02em; }
.jx-stats dt { font: 500 .78rem/1.3 var(--jx-font); color: rgba(255,255,255,.6);
    letter-spacing: .04em; text-transform: uppercase; }

/* ── Region filter ────────────────────────────────────────────────────────── */

.jx-regions { max-width: var(--cx-container); margin: 0 auto; padding: 2.5rem 1.5rem 0; }
.jx-regions h2 { font: 700 1.4rem/1.2 var(--jx-font); color: var(--jx-navy);
    letter-spacing: -.02em; margin: 0 0 1rem; }
.jx-region-tabs { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1.6rem; }
/*
 * Region pills, sized to the site-wide control standard.
 *
 * These used `inline-block` with vertical padding, so their height was whatever the font
 * and padding happened to produce — noticeably shallower than every other button on the
 * site. Every other control uses `inline-flex` + `min-height: var(--cx-btn-h)`, which is
 * also what makes the coarse-pointer bump to 46px reach them.
 *
 * Same pattern applied here: horizontal padding and the pill radius are kept, the vertical
 * padding is dropped in favour of the shared height, and the label is centred rather than
 * sitting on the baseline.
 */
.jx-region-tab {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: var(--cx-btn-h);
    padding: 0 var(--cx-btn-pad-x);
    border-radius: var(--cx-radius-pill);
    border: 1px solid var(--jx-line); background: #fff;
    font-family: var(--jx-font);
    font-weight: var(--cx-btn-weight);
    /*
     * .85rem retained, not --cx-btn-fs (.78rem).
     *
     * The ask was height, and adopting the button font size would have shrunk these labels
     * by 8% — a visible change to the approved appearance that was not requested. Height,
     * padding, radius and weight now match the site-wide standard; the label size is
     * unchanged.
     */
    font-size: .85rem;
    line-height: 1;
    color: var(--jx-navy); text-decoration: none;
    cursor: pointer; white-space: nowrap;
}
.jx-region-tab:hover { border-color: var(--jx-gold); color: var(--jx-navy); }
.jx-region-tab.is-active { background: var(--jx-navy); border-color: var(--jx-navy); color: #fff; }

/* ── Country cards ────────────────────────────────────────────────────────── */

/* FOUR panels across on desktop.
   The three-column regression was arithmetic, not a missing rule: within 1180px, minus
   ~48px padding and three 19px gaps, four cards are ~264px each — under the 280px
   minimum, so auto-fill could only ever settle on three. Fixed columns state the intent
   instead of leaving it to a minimum width to imply. */
/* align-items: start so each card is the height of its own content.
   Grid stretches items by default, which forced every card in a row to match the
   tallest — and with the body no longer filling, that surplus showed as an empty
   band above "Explore". A card with a longer tagline is simply taller now. */
.jx-countries {
    display: grid; gap: 1.2rem; max-width: var(--cx-container); margin: 0 auto;
    padding: 0 1.5rem clamp(3rem, 6vw, 5rem);
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    align-items: start;
}
@media (min-width: 1024px) { .jx-countries { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 640px) and (max-width: 1023px) { .jx-countries { grid-template-columns: repeat(2, 1fr); } }
.jx-country {
    background: #fff; border: 1px solid var(--jx-line); border-radius: var(--cx-radius-xl);
    overflow: hidden; text-decoration: none; display: flex; flex-direction: column;
    transition: border-color var(--cx-duration-sm) ease, box-shadow var(--cx-duration-sm) ease, transform var(--cx-duration-sm) ease;
}
.jx-country:hover {
    border-color: var(--jx-gold); transform: translateY(var(--cx-hover-lift));
    box-shadow: var(--cx-shadow-4);
}
.jx-country-media { position: relative; aspect-ratio: 16 / 9; background: var(--jx-navy); overflow: hidden; }
.jx-country-media img { width: 100%; height: 100%; object-fit: cover; object-position: var(--img-pos, 50% 50%); display: block;
    transition: transform .5s ease; }
.jx-country:hover .jx-country-media img { transform: scale(var(--cx-hover-scale)); }
/* Inline beside the name rather than overlaid on the photograph. On the same
   line as the heading it costs no card height at all. */
.jx-country-flag {
    display: inline-block; width: 24px; height: 17px; margin-right: .5rem;
    vertical-align: -2px; flex: none;
    border-radius: 2px; box-shadow: 0 0 0 1px rgba(11,22,38,.08);
    background-size: cover; background-position: 50%; line-height: 17px;
}
/* No flex:1 and no auto margin below — those stretched every card to the tallest
   in the row and left the gap above Explore. The card is now the height of its
   own content. */
.jx-country-body { padding: .95rem 1.15rem 1.05rem; display: flex; flex-direction: column; }
.jx-country-region { font: 600 .7rem/1 var(--jx-font); letter-spacing: .07em;
    text-transform: uppercase; color: var(--jx-muted); }
.jx-country-name { display: flex; align-items: center;
    font: 700 1.1rem/1.25 var(--jx-font); color: var(--jx-navy);
    margin: .25rem 0 .2rem; letter-spacing: -.015em; }
.jx-country-tag { font: 400 .84rem/1.45 var(--jx-font); color: var(--jx-muted); margin: 0 0 .5rem; }
.jx-country-count { font: 700 .85rem/1 var(--jx-font); color: var(--jx-gold); margin-bottom: .5rem; }
.jx-country-cats { font: 400 .8rem/1.5 var(--jx-font); color: var(--jx-muted); margin: 0 0 1rem; }
/* Sits directly under the metrics. `margin-top: auto` pushed it to the bottom of
   a stretched card, which is what produced the empty band above it. */
.jx-country-go { margin-top: .65rem; font: 700 .85rem/1 var(--jx-font); color: var(--jx-navy); }
.jx-country:hover .jx-country-go { color: var(--jx-gold); }

/* ── Mobile ───────────────────────────────────────────────────────────────── */

@media (max-width: 760px) {
    /* Hover cards are useless on touch, and a marker tap should simply navigate — §8 and
       §31's "no hover-only functionality". The map stays as an illustration; the cards
       below are the navigation. */
    .jx-card { display: none; }
    .jx-map { aspect-ratio: 2 / 1; max-width: 100%; }
    .jx-marker { width: 11px; height: 11px; margin: -5.5px 0 0 -5.5px; }
    .jx-countries { grid-template-columns: 1fr; }
}

/* §9 and §37 — reduced motion is respected rather than approximated. */
@media (prefers-reduced-motion: reduce) {
    .jx-dot { animation: none; }
    .jx-country, .jx-country-media img, .jx-dot, .jx-card { transition: none; }
    .jx-country:hover { transform: none; }
    .jx-country:hover .jx-country-media img { transform: none; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   COUNTRY PAGE
   One template for every jurisdiction, so the styling carries no country's
   assumptions — a page with three sections and one with nine both have to read
   as finished.
   ═══════════════════════════════════════════════════════════════════════════ */

.cy-hero { position: relative; background: var(--jx-navy); overflow: hidden;
    padding: clamp(2.5rem, 5vw, 4rem) 1.5rem clamp(2.2rem, 4vw, 3.2rem); }

.cy-hero.has-image::before {
    content: ""; position: absolute; inset: 0;
    background-image: var(--hero); background-size: cover; background-position: center;
    filter: saturate(.9) contrast(1.05);
}

/* Same fixed scrim as the listing hero — text contrast must not depend on which
   photograph a jurisdiction happens to have. */
.cy-hero-scrim {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(11,22,38,.42) 0%, rgba(11,22,38,.58) 45%,
    rgba(11,22,38,.74) 100%);
}

.cy-hero-inner {
    position: relative; max-width: var(--cx-container); margin: 0 auto;
    display: grid; grid-template-columns: 1.4fr .8fr; gap: 3rem; align-items: center;
}
@media (max-width: 900px) { .cy-hero-inner { grid-template-columns: 1fr; gap: 2rem; } }

.cy-hero-eyebrow {
    display: flex; align-items: center; gap: .6rem;
    font: 700 .78rem/1 var(--jx-font); letter-spacing: .16em;
    color: var(--jx-gold); margin: 0 0 .7rem;
}
.cy-flag { border-radius: var(--cx-radius-xs); display: block; }

.cy-hero-title {
    font: 800 clamp(1.6rem, 2.8vw, 2.35rem)/1.15 var(--jx-font); letter-spacing: -.02em;
    color: #fff; margin: 0 0 .7rem; text-shadow: 0 2px 18px rgba(11,22,38,.45);
}
.cy-hero-lead {
    font: 400 clamp(.9rem, 1.2vw, 1rem)/1.55 var(--jx-font);
    color: rgba(255,255,255,.86); max-width: 56ch; margin: 0 0 .9rem;
    text-shadow: 0 1px 12px rgba(11,22,38,.5);
}
.cy-hero-counts { font: 400 .88rem/1 var(--jx-font); color: rgba(255,255,255,.75); margin: 0 0 1.1rem; }
.cy-hero-counts strong { color: var(--jx-gold); font-weight: 700; }

.cy-hero-cta { display: flex; gap: .7rem; flex-wrap: wrap; }
/* inline-FLEX, not inline-block.
   Stage 4B replaced this rule's vertical padding (.85rem 1.6rem) with a min-height of 42px.
   On an inline-block that makes the box 42px tall while the label, at line-height 1, stays
   on the first line — so the text sat at the top of a box with ~28px of empty gold beneath
   it. Centring the content is what the min-height always assumed. */
.cy-btn {
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--jx-gold); color: #1A1204;
    font: 700 .9rem/1 var(--jx-font); padding: 0 var(--cx-btn-pad-x); border-radius: var(--cx-btn-radius);
    text-decoration: none; transition: transform var(--cx-duration-sm) ease, box-shadow var(--cx-duration-sm) ease; min-height: var(--cx-btn-h);}
.cy-btn:hover { transform: translateY(var(--cx-hover-lift)); box-shadow: 0 8px 24px rgba(201,162,39,.32); color: #1A1204; }
.cy-btn-ghost {
    background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.35);
}
.cy-btn-ghost:hover { background: rgba(255,255,255,.08); color: #fff; box-shadow: none; }

/* The country outline — a design element, not a navigation map. */
.cy-hero-map { display: flex; justify-content: center; }
.cy-hero-map img {
    max-width: 100%; max-height: 200px; width: auto; display: block;
    opacity: .85;
    /* Gold, whatever colour the source SVG happens to be — one filter rather than a
       recoloured file per country. */
    filter: brightness(0) saturate(100%) invert(72%) sepia(48%) saturate(560%)
    hue-rotate(2deg) brightness(92%) contrast(88%)
    drop-shadow(0 0 26px rgba(201,162,39,.35));
}
@media (max-width: 900px) { .cy-hero-map { display: none; } }

/* ── Sections ─────────────────────────────────────────────────────────────── */

/* Top padding only, so consecutive sections do not double their gap. */
.cy-section { padding: clamp(2.5rem, 5vw, 4rem) 1.5rem 0; }

/*
 * The last section on the page needs a bottom.
 *
 * With padding-bottom 0 the final row of cards sat flush against the dark footer CTA.
 *
 * NOT :last-of-type. @yield('content') is not wrapped in <main>, so these sections are direct
 * children of <body> — and so is the footer's own <section class="ft-cta">. That makes the
 * FOOTER the last section of its type, and the rule landed there instead. An explicit class
 * cannot be defeated by markup that sits outside this page.
 */
.cy-section--last { padding-bottom: clamp(2.5rem, 5vw, 4rem); }
.cy-inner { max-width: var(--cx-container); margin: 0 auto; }
.cy-section h2 {
    font: 700 clamp(1.3rem, 2.2vw, 1.7rem)/1.2 var(--jx-font);
    color: var(--jx-navy); letter-spacing: -.022em; margin: 0 0 1.4rem;
}

/* At a glance */
.cy-facts-section { background: transparent; }
.cy-facts {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1px; background: var(--jx-line); border: 1px solid var(--jx-line);
    border-radius: var(--cx-radius-xl); overflow: hidden; margin: 0;
}
.cy-facts > div { background: #fff; padding: 1.15rem 1.3rem; }
.cy-facts dt {
    font: 600 .7rem/1.3 var(--jx-font); letter-spacing: .06em; text-transform: uppercase;
    color: var(--jx-muted); margin-bottom: .3rem;
}
.cy-facts dd { font: 600 1rem/1.4 var(--jx-font); color: var(--jx-navy); margin: 0; }
.cy-checked { font: 400 .75rem/1 var(--jx-font); color: var(--jx-muted); margin: .8rem 0 0; }

/* Service categories */
.cy-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: .7rem; }
.cy-cat {
    background: #fff; border: 1px solid var(--jx-line); border-radius: var(--cx-radius-lg);
    padding: 1rem 1.2rem; text-decoration: none; display: block;
    transition: border-color var(--cx-duration-sm) ease, transform var(--cx-duration-sm) ease;
}
.cy-cat:hover { border-color: var(--jx-gold); transform: translateY(var(--cx-hover-lift)); }
.cy-cat.is-active { border-color: var(--jx-navy); background: var(--jx-navy); }
.cy-cat.is-active .cy-cat-name { color: #fff; }
.cy-cat.is-active .cy-cat-count { color: var(--jx-gold); }
.cy-cat-name { display: block; font: 700 .95rem/1.3 var(--jx-font); color: var(--jx-navy); }
.cy-cat-count { display: block; font: 600 .8rem/1 var(--jx-font); color: var(--jx-gold); margin-top: .3rem; }
.cy-cat-clear { display: flex; align-items: center; justify-content: center;
    font: 600 .88rem/1 var(--jx-font); color: var(--jx-muted); }

/* Listing cards */
.cy-listings { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.1rem; }
.cy-listing {
    background: #fff; border: 1px solid var(--jx-line); border-radius: var(--cx-radius-xl);
    overflow: hidden; text-decoration: none; display: flex; flex-direction: column;
    transition: border-color var(--cx-duration-sm) ease, transform var(--cx-duration-sm) ease, box-shadow var(--cx-duration-sm) ease;
}
.cy-listing:hover { border-color: var(--jx-gold); transform: translateY(var(--cx-hover-lift));
    box-shadow: var(--cx-shadow-4); }
.cy-listing-media { display: block; aspect-ratio: 16/9; overflow: hidden; background: var(--jx-soft); }
.cy-listing-media img { width: 100%; height: 100%; object-fit: cover; object-position: var(--img-pos, 50% 50%); display: block;
    transition: transform .5s ease; }
.cy-listing:hover .cy-listing-media img { transform: scale(var(--cx-hover-scale)); }
.cy-listing-body { padding: 1rem 1.15rem 1.15rem; display: flex; flex-direction: column; flex: 1; }
.cy-listing-cat { font: 600 .68rem/1 var(--jx-font); letter-spacing: .07em;
    text-transform: uppercase; color: var(--jx-muted); }
.cy-listing-name { font: 700 1rem/1.35 var(--jx-font); color: var(--jx-navy); margin: .4rem 0 .35rem; }
.cy-listing-desc {
    font: 400 .84rem/1.5 var(--jx-font); color: var(--jx-muted); margin-bottom: .8rem;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.cy-listing-go { margin-top: auto; font: 700 .84rem/1 var(--jx-font); color: var(--jx-navy); }
.cy-listing:hover .cy-listing-go { color: var(--jx-gold); }

/* Why this jurisdiction */
.cy-why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.cy-why-block {
    background: #fff; border: 1px solid var(--jx-line); border-left: 3px solid var(--jx-gold);
    border-radius: var(--cx-radius-lg); padding: 1.2rem 1.4rem;
}
.cy-why-block h3 { font: 700 1rem/1.3 var(--jx-font); color: var(--jx-navy); margin: 0 0 .5rem; }
.cy-why-block p { font: 400 .9rem/1.6 var(--jx-font); color: #33405A; margin: 0; }

/* Guides */
.cy-guides { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem;
    margin-bottom: 1rem; }
.cy-guide {
    background: #fff; border: 1px solid var(--jx-line); border-radius: var(--cx-radius-lg);
    padding: 1.2rem 1.3rem; text-decoration: none; display: block;
}
.cy-guide:hover { border-color: var(--jx-gold); }
.cy-guide-kind { font: 700 .66rem/1 var(--jx-font); letter-spacing: .1em;
    text-transform: uppercase; color: var(--jx-gold); }
.cy-guide-name { display: block; font: 600 1rem/1.35 var(--jx-font); color: var(--jx-navy);
    margin: .5rem 0 .4rem; }
.cy-guide-desc { font: 400 .84rem/1.55 var(--jx-font); color: var(--jx-muted); }
.cy-more { display: inline-block; font: 700 .88rem/1 var(--jx-font);
    color: var(--jx-gold); text-decoration: none; }
.cy-more:hover { text-decoration: underline; }

/* Related jurisdictions */
.cy-nearby { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .8rem; }
.cy-nearby-card {
    background: #fff; border: 1px solid var(--jx-line); border-radius: var(--cx-radius-lg);
    padding: 1rem 1.2rem; text-decoration: none; display: flex; align-items: center; gap: .7rem;
}
.cy-nearby-card:hover { border-color: var(--jx-gold); }
.cy-nearby-name { font: 700 .95rem/1.2 var(--jx-font); color: var(--jx-navy); }
.cy-nearby-count { margin-left: auto; font: 600 .78rem/1 var(--jx-font); color: var(--jx-gold); }

.cy-pagination { margin-top: 1.6rem; }

/* Adviser CTA */
.cy-cta { background: var(--jx-navy); margin-top: clamp(3rem, 6vw, 5rem);
    padding: clamp(3rem, 6vw, 4.5rem) 1.5rem; }
.cy-cta-inner { max-width: 680px; margin: 0 auto; text-align: center; }
.cy-cta h2 { font: 800 clamp(1.5rem, 2.6vw, 1.9rem)/1.2 var(--jx-font); color: #fff;
    letter-spacing: -.022em; margin: 0 0 .9rem; }
.cy-cta p { font: 400 .98rem/1.7 var(--jx-font); color: rgba(255,255,255,.78); margin: 0 0 1.7rem; }
.cy-cta .cy-hero-cta { justify-content: center; }

@media (prefers-reduced-motion: reduce) {
    /* Motion only. The min-height Stage 4B appended here was wrong: this selector also covers
       .cy-cat, .cy-listing and a .cy-listing-media <img>, none of which are buttons. */
    .cy-btn, .cy-cat, .cy-listing, .cy-listing-media img { transition: none; }
    .cy-btn:hover, .cy-cat:hover, .cy-listing:hover { transform: none; }
    .cy-listing:hover .cy-listing-media img { transform: none; }
}


/* ── Motion — §9 ──────────────────────────────────────────────────────────────
   Restrained: short distances, quick durations, once each. The register is an
   institutional financial site, where movement should feel like the interface
   settling rather than performing.
   ─────────────────────────────────────────────────────────────────────────── */

.jx-reveal { opacity: 0; transform: translateY(14px); }
.jx-reveal.is-in {
    opacity: 1; transform: none;
    transition: opacity .5s ease, transform .5s cubic-bezier(.22,.61,.36,1);
}

/* Staggered along each row, so a grid arrives as a sequence rather than a block. */
.jx-country:nth-child(2n).is-in { transition-delay: .05s; }
.jx-country:nth-child(3n).is-in { transition-delay: .1s; }
.jx-country:nth-child(4n).is-in { transition-delay: var(--cx-duration-sm); }

.jx-region-tab { transition: background-color var(--cx-duration-sm) ease, border-color var(--cx-duration-sm) ease, color var(--cx-duration-sm) ease; }

@media (prefers-reduced-motion: reduce) {
    .jx-reveal, .jx-reveal.is-in { opacity: 1; transform: none; transition: none; }
    .jx-hover { animation: none; }
    .jx-map-canvas .jvm-region { transition: none; filter: none; }
}

/* §33 — compare from a jurisdiction page, with it preselected. Sits under the
   lead, subordinate to the page's own calls to action. */
.cy-hero-compare { margin: .7rem 0 0; }
.cy-hero-compare a { font-size: .85rem; font-weight: 700; color: var(--cx-gold-soft, #D9B65A);
    text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }

/* ---- COMPARE JURISDICTIONS CTA ---------------------------------------------
   A shallow champagne panel between the hero and Explore by region. Not a second
   hero: the world map above stays the page's primary visual.

   Aligned to --cx-container, the same width as the explorer below, so it reads as
   part of the page rather than an inserted banner. */
.jcta {
    max-width: var(--cx-container, 1180px);
    margin: clamp(1.4rem, 3vw, 2.2rem) auto 0;
    padding: 0 clamp(1rem, 3vw, 2rem);
}

.jcta-inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: clamp(1rem, 2.4vw, 1.8rem);
    padding: clamp(1.1rem, 2vw, 1.5rem) clamp(1.2rem, 2.4vw, 1.9rem);
    border: 1px solid #EFE4CE;
    border-radius: 12px;
    /* Pale ivory to pale champagne, left to right. Nothing saturated enough to
       read as yellow, nothing dark enough to compete with the navy hero. */
    background: linear-gradient(100deg, #FDFBF6 0%, #FBF6EA 58%, #F7EFDD 100%);
}

.jcta-ico { display: flex; color: #B99B4E; }
.jcta-ico svg { width: 38px; height: 38px; display: block; }

.jcta-text { min-width: 0; }
.jcta-eyebrow {
    margin: 0 0 .25rem;
    font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
    color: #8A6E12;
}
/* §15 — prominent, but materially below the hero heading. */
/* Sentence case, stated explicitly. The markup was already sentence case and
   nothing currently uppercases it, but pinning it means a future section-heading
   rule cannot quietly change that. */
.jcta-h {
    margin: 0 0 .3rem;
    text-transform: none;
    font-family: Arial, Helvetica, sans-serif;
    font-size: clamp(1.05rem, 1.7vw, 1.4rem); font-weight: 700; line-height: 1.2;
    letter-spacing: -.01em; color: #0B1626;
}
.jcta-p {
    margin: 0; font-size: .86rem; line-height: 1.5; color: #3A4757; max-width: 68ch;
}

.jcta-btn {
    display: inline-block; white-space: nowrap;
    padding: .82rem 1.5rem; border-radius: 8px;
    background: #C9A227; color: #0B1626;
    font-size: .88rem; font-weight: 700; text-decoration: none;
}
.jcta-btn:hover { filter: brightness(1.05); color: #0B1626; }
.jcta-btn:focus-visible { outline: 2px solid #0B1626; outline-offset: 2px; }

@media (max-width: 900px) {
    /* §19 — the button drops beneath the copy rather than the type shrinking. */
    .jcta-inner { grid-template-columns: auto 1fr; row-gap: 1rem; }
    .jcta-btn { grid-column: 1 / -1; justify-self: start; }
}

@media (max-width: 560px) {
    /* §20 — stacked, and the button spans for an easy tap target. */
    .jcta-inner { grid-template-columns: 1fr; gap: .7rem; padding: 1.2rem 1.1rem; }
    .jcta-btn { justify-self: stretch; text-align: center; }
}

/* The view controls sit on the Explore by region heading line, so they read as
   belonging to the explorer rather than to the compare panel above it. */
.jx-regions-head { display: flex; align-items: center; justify-content: space-between;
    gap: 1rem; flex-wrap: wrap; }
.jx-regions-head h2 { margin-bottom: 0; }

/* ---- View toggle -----------------------------------------------------------
   Grid and list are the same cards with a different container rule, so switching
   re-renders nothing and loses no filter state. */
.jx-views { display: inline-flex; border: 1px solid #E7E3DA; border-radius: 9px; overflow: hidden; background: #fff; }
.jx-view { display: inline-flex; align-items: center; gap: .45rem;
    padding: .5rem .85rem; border: 0; background: none; cursor: pointer;
    font: inherit; font-family: Arial, Helvetica, sans-serif; font-size: .82rem; font-weight: 600;
    color: #5A6675; }
.jx-view + .jx-view { border-left: 1px solid #E7E3DA; }
.jx-view svg { width: 15px; height: 15px; }
.jx-view.is-on { background: #FAF2DF; color: #8A6E12; }
.jx-view:focus-visible { outline: 2px solid #8A6E12; outline-offset: -2px; }

/* Card metrics — services and guides, each with a small line icon. */
.jx-country-metrics { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: .15rem; }
.jx-metric { display: inline-flex; align-items: center; gap: .35rem;
    font-size: .82rem; color: #5A6675; }
.jx-metric svg { width: 15px; height: 15px; color: #B99B4E; flex: none; }
.jx-metric strong { color: #0B1626; font-weight: 700; }

/* ---- List view --------------------------------------------------------------
   One row per jurisdiction: image left at a fixed width, everything else in a
   line. Service areas appear here because the extra width makes them readable —
   in the grid they crowded the card. */
.jx-as-list { display: block !important; }
.jx-as-list .jx-country {
    display: grid; grid-template-columns: 168px 1fr auto; align-items: center;
    gap: 1.2rem; margin-bottom: .7rem;
}
.jx-as-list .jx-country-media { aspect-ratio: 16 / 10; border-radius: 8px; }
.jx-as-list .jx-country-body { padding: .2rem 0; }
.jx-as-list .jx-country-cats { display: block; font-size: .78rem; color: #6B7688; margin-top: .35rem; }
.jx-as-list .jx-country-go { justify-self: end; white-space: nowrap; }

/* Grid view hides the service-area line; the card has no room for it. */
.jx-countries:not(.jx-as-list) .jx-country-cats { display: none; }

@media (max-width: 760px) {
    /* A three-column row does not fit; list becomes the grid card again. */
    .jx-as-list .jx-country { grid-template-columns: 1fr; gap: 0; }
    .jx-as-list .jx-country-go { justify-self: start; }
    .jx-regions-head { gap: .7rem; }
}

/* List view: the card is a grid row, so the column-flex body rules do not apply.
   Explicit here rather than relying on inheritance from the grid card. */
.jx-as-list .jx-country-body { padding: .2rem 0; }
.jx-as-list .jx-country-name { margin: .15rem 0 .2rem; }
.jx-as-list .jx-country-go { margin-top: .4rem; }

/* ---- knowledge & guidance ---------------------------------------------------
   The section reuses partials/related-knowledge, so the cards themselves are styled
   by knowledge.css and nothing is restyled here. Two contextual rules only.

   THREE ACROSS, not four. RelatedKnowledge caps at three publications, and the shared
   grid is a four-track layout — which would leave an empty fourth column on every
   jurisdiction. Three tracks fill the row. */
.cy-knowledge .rk-grid { grid-template-columns: repeat(3, 1fr); }

@media (max-width: 900px) { .cy-knowledge .rk-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cy-knowledge .rk-grid { grid-template-columns: 1fr; } }

/* The shared partial carries its own top margin for pages that drop it into running
   content; here the section already supplies that spacing and both together is one gap
   of daylight twice over. */
.cy-knowledge .rk { margin-top: 0; }

/* A deliberate break between Featured Services and All Services — the publications are
   research material, not Marketplace listings, and a run of service cards either side
   makes that distinction easy to lose. */
.cy-knowledge { background: var(--cx-paper, #F7F5EF); }
.cy-knowledge .cy-more { display: inline-flex; margin-top: 1.4rem; }



/* ---- hero CTA hierarchy ----------------------------------------------------
   Three actions, one primary. .cy-btn is already gold and .cy-btn-ghost makes it
   transparent, so the hierarchy comes from which class each carries — Build keeps
   the gold, Explore and Speak became ghosts. The only addition is a little extra
   width on the primary, so it reads as first among three rather than merely a
   different colour. */
.cy-btn-build { padding: 0 var(--cx-btn-pad-x-lg, 28px); gap: .5rem; }

/* ---- follow, relocated from the hero ---------------------------------------
   Sits with the jurisdiction facts: still easy to find, visually subordinate to the
   three hero actions, and beside the research it belongs to. */
.cy-facts-foot {
    display: flex; flex-wrap: wrap; gap: .6rem 1.2rem;
    align-items: center; justify-content: space-between;
    margin-top: 1rem;
}
.cy-facts-foot .cy-checked { margin: 0; }

/* ---- mobile ---------------------------------------------------------------
   Three buttons cannot sit on one line at phone widths. They stack full width in
   source order, so the primary is still first and nothing overlaps or overflows. */
@media (max-width: 560px) {
    .cy-hero-cta { flex-direction: column; align-items: stretch; }
    .cy-hero-cta .cy-btn { width: 100%; }
    .cy-facts-foot { flex-direction: column; align-items: flex-start; }
}


/* ── SEO-01: the complete jurisdiction service index ─────────────────────────────
   Every proposition in the jurisdiction, as plain crawlable links. The listing above
   it is paginated at 24 and robots.txt disallows ?page=, so without this section a
   crawler never reaches the rest. Visible, not hidden: a list shown only to crawlers
   is cloaking. */
.cy-index-sec { padding-bottom: clamp(2.5rem, 5vw, 4rem); }

.cy-index-lede {
    margin: -.4rem 0 1.4rem;
    font-size: .9rem;
    color: var(--cx-muted, #5A6472);
}

.cy-index {
    list-style: none;
    margin: 0;
    padding: 0;
    columns: 3 18rem;
    column-gap: 2.5rem;
}

.cy-index li {
    break-inside: avoid;
    margin: 0 0 .6rem;
    font-size: .9rem;
    line-height: 1.45;
}

.cy-index a {
    color: var(--cx-ink-soft, #33404F);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: color .15s ease, border-color .15s ease;
}

.cy-index a:hover {
    color: var(--cx-gold-ink, #8A6E12);
    border-bottom-color: var(--cx-gold-soft, #D9B65A);
}

.cy-index a:focus-visible {
    outline: 2px solid var(--cx-gold-ink, #8A6E12);
    outline-offset: 2px;
}
