/* ==========================================================================
   Explorer by SamaDesign
   A travel blog theme for Ghost 6.
   Prefix: ex-
   ========================================================================== */


/* 1. Tokens: two palettes, each in light and dark
   ========================================================================== */

:root {
    --ex-font-display: "Oswald", Impact, "Arial Narrow", sans-serif;
    --ex-font-heading: var(--gh-font-heading, "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif);
    --ex-font-body: var(--gh-font-body, "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif);

    --ex-radius: 14px;
    --ex-radius-s: 8px;
    --ex-wrap: 1240px;
    --ex-narrow: 700px;
    --ex-gutter: clamp(16px, 4vw, 56px);
    --ex-header: 72px;
    --ex-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

[data-palette="crimson"] {
    --ex-accent: #d6112c;
    --ex-on-accent: #ffffff;
    --ex-accent-text: #c10f28;
    --ex-bg: #fbfbfa;
    --ex-surface: #f1f1ef;
    --ex-ink: #17181b;
    --ex-muted: #5d6067;
    --ex-line: #e2e2df;
    --ex-deep: #3f242b;
    --ex-on-deep: #f3e9eb;
    --ex-on-deep-muted: #cdb8bd;
}

[data-palette="saffron"] {
    --ex-accent: #ffb000;
    --ex-on-accent: #17181b;
    --ex-accent-text: #8c5a00;
    --ex-bg: #fbfbfa;
    --ex-surface: #f0f0f0;
    --ex-ink: #17181b;
    --ex-muted: #5d6067;
    --ex-line: #e2e2e2;
    --ex-deep: #1d1c19;
    --ex-on-deep: #f4f1ea;
    --ex-on-deep-muted: #bdb8ab;
}

[data-scheme="dark"] {
    --ex-bg: #121214;
    --ex-surface: #1c1c1f;
    --ex-ink: #f0f0ee;
    --ex-muted: #a4a7ad;
    --ex-line: #2d2e32;
    color-scheme: dark;
}

[data-scheme="dark"][data-palette="crimson"] {
    --ex-accent: #e5243d;
    --ex-accent-text: #ff7a89;
    --ex-deep: #1f1216;
}

[data-scheme="dark"][data-palette="saffron"] {
    --ex-accent-text: #ffc23d;
    --ex-deep: #0b0b0a;
}


/* 2. Base
   ========================================================================== */

*,
*::before,
*::after { box-sizing: border-box; }

[hidden] { display: none !important; }

html {
    -webkit-text-size-adjust: 100%;
    scroll-padding-top: calc(var(--ex-header) + 20px);
}

body {
    margin: 0;
    overflow-x: hidden;
    background: var(--ex-bg);
    color: var(--ex-ink);
    font-family: var(--ex-font-body);
    font-size: 1.0625rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img,
svg,
video { display: block; max-width: 100%; }

img { height: auto; }

a { color: inherit; text-decoration: none; }

button,
input,
textarea,
select { font: inherit; color: inherit; }

button { cursor: pointer; }

h1, h2, h3, h4, h5, h6 {
    margin: 0;
    font-family: var(--ex-font-heading);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.01em;
}

p { margin: 0; }

:focus-visible { outline: 2px solid var(--ex-accent); outline-offset: 3px; }

.ex-icon { width: 20px; height: 20px; flex: none; }

.ex-visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.ex-skip {
    position: absolute;
    top: -100px;
    left: 16px;
    z-index: 100;
    padding: 10px 16px;
    border-radius: var(--ex-radius-s);
    background: var(--ex-ink);
    color: var(--ex-bg);
}

.ex-skip:focus { top: 12px; }


/* 3. Layout
   ========================================================================== */

.ex-container { width: min(100% - 2 * var(--ex-gutter), var(--ex-wrap)); margin-inline: auto; }
.ex-narrow { width: min(100% - 2 * var(--ex-gutter), var(--ex-narrow)); margin-inline: auto; }
.ex-section { padding-block: clamp(56px, 8vw, 104px); }
.ex-section + .ex-section:not(.ex-high) { padding-top: 0; }

.ex-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 24px; margin-bottom: 32px; }
.ex-h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); letter-spacing: -0.015em; }

.ex-kicker {
    position: relative;
    z-index: 1;
    color: var(--ex-accent-text);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ex-meta { color: var(--ex-muted); font-size: 0.875rem; }

.ex-link { display: inline-flex; align-items: center; gap: 8px; color: var(--ex-accent-text); font-weight: 600; }
.ex-link .ex-icon { transition: translate 0.3s var(--ex-ease); }
a:hover .ex-link .ex-icon,
.ex-link:hover .ex-icon,
.ex-story:hover .ex-link .ex-icon { translate: 4px 0; }


/* 4. Header, navigation, mega menu, mobile menu
   ========================================================================== */

.ex-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--ex-bg);
    color: var(--ex-ink);
    box-shadow: 0 1px 0 var(--ex-line);
    transition: background-color 0.3s, color 0.3s, box-shadow 0.3s;
}

/* Over the homepage slider the header is transparent until the slider leaves the screen (main.js) */
body:has(.ex-hero) .ex-header { position: fixed; inset: 0 0 auto; }
body:has(.ex-hero) .ex-header:not(.is-solid) { background: transparent; color: #ffffff; box-shadow: none; }
body:has(.ex-hero) .ex-header:not(.is-solid) .ex-logo-dark { display: none; }

.ex-header-inner {
    display: flex;
    align-items: center;
    gap: 28px;
    height: var(--ex-header);
    padding-inline: var(--ex-gutter);
}

.ex-brand { display: inline-flex; flex: none; align-items: center; gap: 10px; }
.ex-brand-mark { width: 14px; height: 14px; background: var(--ex-accent); transform: rotate(45deg); }
.ex-brand-title { font-family: var(--ex-font-heading); font-size: 1.4rem; font-weight: 700; letter-spacing: -0.02em; white-space: nowrap; }
.ex-logo { width: auto; max-width: 200px; max-height: 40px; }
.ex-logo-dark,
[data-scheme="dark"] .ex-logo-light { display: none; }
[data-scheme="dark"] .ex-logo-dark { display: block; }

.ex-nav { margin-inline: auto; }
.ex-menu { display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; list-style: none; }

.ex-menu > li > a,
.ex-menu > li > .ex-sub-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 40px;
    padding: 0 14px;
    border: 0;
    border-radius: 999px;
    background: none;
    font-size: 0.95rem;
    font-weight: 500;
    white-space: nowrap;
    transition: background-color 0.2s;
}

.ex-menu > li > a:hover,
.ex-menu > li > .ex-sub-toggle:hover,
.ex-sub-toggle[aria-expanded="true"] { background: color-mix(in srgb, currentColor 12%, transparent); }
.ex-menu > .is-current > a { box-shadow: inset 0 -2px 0 var(--ex-accent); border-radius: 0; }
.ex-sub-toggle .ex-icon { width: 14px; height: 14px; transition: transform 0.2s; }
.ex-sub-toggle[aria-expanded="true"] .ex-icon { transform: rotate(180deg); }

/* Sub-links stay in the list for the mobile menu; on large screens they appear in the panels */
.ex-submenu { display: none; margin: 0; padding: 0; list-style: none; }
.ex-subsub { margin: 0; padding: 0; list-style: none; }
.ex-nav-members { display: none; }

.ex-actions { display: flex; flex: none; align-items: center; gap: 6px; }
.ex-icon-btn {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: none;
    transition: background-color 0.2s;
}
.ex-icon-btn:hover { background: color-mix(in srgb, currentColor 12%, transparent); }
.ex-icon-sun,
[data-scheme="dark"] .ex-icon-moon { display: none; }
[data-scheme="dark"] .ex-icon-sun { display: block; }
.ex-text-link { padding: 0 8px; font-size: 0.95rem; font-weight: 500; }
.ex-header-cta { margin-left: 6px; }
.ex-burger { display: none; }
.ex-burger span { display: block; width: 18px; height: 2px; margin: 2px 0; background: currentColor; transition: transform 0.25s, opacity 0.25s; }
.ex-burger { flex-direction: column; align-items: center; justify-content: center; }
.ex-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.ex-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.ex-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Centered logo: menu on the left, tools on the right */
.ex-header-center .ex-header-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
.ex-header-center .ex-nav { order: -1; justify-self: start; margin: 0; }
.ex-header-center .ex-brand-title { font-size: 1.6rem; }
.ex-header-center .ex-actions { justify-self: end; }

/* Mega menu (continents > countries) and small drop-down list */
.ex-mega,
.ex-drop {
    position: absolute;
    top: var(--ex-header);
    background: var(--ex-bg);
    color: var(--ex-ink);
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.25s, transform 0.3s var(--ex-ease);
}

.ex-mega { left: 0; right: 0; box-shadow: 0 1px 0 var(--ex-line) inset, 0 28px 48px -28px rgb(20 20 30 / 0.3); }
.ex-mega.is-open,
.ex-drop.is-open { opacity: 1; transform: none; }

.ex-mega-inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 32px;
    max-width: 1440px;
    margin-inline: auto;
    padding: 32px var(--ex-gutter) 40px;
}

.ex-mega-inner:has(.ex-mega-feature) { grid-template-columns: repeat(var(--ex-cols, 4), minmax(0, 1fr)) minmax(240px, 1.3fr); }
.ex-mega-col h3 { margin-bottom: 12px; font-family: var(--ex-font-body); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.ex-mega-col h3 a { color: var(--ex-accent-text); }
.ex-mega-col ul { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.ex-mega-col li a { display: block; padding: 4px 0; font-size: 0.95rem; transition: color 0.2s; }
.ex-mega-col li a:hover { color: var(--ex-accent-text); }

.ex-mega-feature { position: relative; min-height: 220px; overflow: hidden; border-radius: var(--ex-radius); background: var(--ex-deep); color: #ffffff; }
.ex-mega-feature img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ex-ease); }
.ex-mega-feature:hover img { transform: scale(1.04); }
.ex-mega-feature::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 35%, rgb(8 10 14 / 0.78)); }
.ex-mega-feature-text { position: absolute; left: 20px; right: 20px; bottom: 18px; z-index: 1; display: grid; gap: 4px; }
.ex-mega-feature small { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.85; }
.ex-mega-feature strong { font-size: 1.2rem; line-height: 1.25; }

.ex-drop { min-width: 220px; padding: 8px; border-radius: 12px; box-shadow: 0 0 0 1px var(--ex-line), 0 18px 40px -16px rgb(20 20 30 / 0.3); }
.ex-drop ul { margin: 0; padding: 0; list-style: none; }
.ex-drop a { display: block; padding: 8px 12px; border-radius: var(--ex-radius-s); font-size: 0.95rem; }
.ex-drop a:hover { background: var(--ex-surface); }


/* 5. Buttons & forms
   ========================================================================== */

.ex-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 46px;
    padding: 0 22px;
    border: 0;
    border-radius: 999px;
    background: var(--ex-accent);
    color: var(--ex-on-accent);
    font-size: 0.95rem;
    font-weight: 500;
    white-space: nowrap;
    transition: filter 0.2s, transform 0.2s var(--ex-ease), background-color 0.2s, color 0.2s;
}

.ex-btn:hover { filter: brightness(1.06); }
.ex-btn:active { transform: translateY(1px); }
.ex-btn .ex-icon { width: 18px; height: 18px; }
.ex-header .ex-btn { height: 40px; padding: 0 18px; }

.ex-btn-line { background: transparent; color: var(--ex-ink); box-shadow: inset 0 0 0 1.5px var(--ex-ink); }
.ex-btn-line:hover { background: var(--ex-ink); color: var(--ex-bg); filter: none; }
.ex-btn-glass { background: transparent; color: #ffffff; box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / 0.7); }
.ex-btn-glass:hover { background: #ffffff; color: #17181b; filter: none; }
.ex-btn-deep { background: var(--ex-deep); color: var(--ex-on-deep); }

.ex-round {
    display: grid;
    place-items: center;
    flex: none;
    width: 52px;
    height: 52px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: none;
    color: #ffffff;
    box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / 0.55);
    transition: background-color 0.2s, color 0.2s;
}

.ex-round:hover { background: #ffffff; color: #17181b; }

.ex-form { display: grid; gap: 8px; }
.ex-form-label { font-size: 0.8rem; font-weight: 600; }
.ex-form-row { display: flex; gap: 10px; }

.ex-form input {
    flex: 1;
    width: 100%;
    min-width: 0;
    height: 52px;
    padding: 0 22px;
    border: 1px solid var(--ex-line);
    border-radius: 999px;
    background: #ffffff;
    color: #17181b;
}

.ex-form input::placeholder { color: #5d6067; }
.ex-form .ex-btn { height: 52px; }

.ex-form-loading,
.ex-form-success,
.ex-form-error { display: none; }

.ex-form.loading .ex-form-label-text { display: none; }
.ex-form.loading .ex-form-loading {
    display: block;
    width: 18px;
    height: 18px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: ex-spin 0.7s linear infinite;
}

.ex-form.success .ex-form-row,
.ex-form.success .ex-form-label { display: none; }
.ex-form.success .ex-form-success { display: block; font-weight: 600; }
.ex-form.error .ex-form-error { display: block; font-size: 0.9rem; }

@keyframes ex-spin { to { transform: rotate(360deg); } }


/* 6. Slider: cards that open into the background
   ========================================================================== */

.ex-hero { position: relative; isolation: isolate; min-height: 100vh; min-height: 100dvh; overflow: hidden; background: #14161a; color: #ffffff; }

.ex-hero-bg,
.ex-hero-grow { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ex-hero-bg { opacity: 0; transform: scale(1.04); transition: opacity 0.9s ease; }
.ex-hero-bg.is-active { opacity: 1; transform: none; transition: opacity 0.9s ease, transform 7s linear; }
.ex-hero-bg-empty { background: linear-gradient(135deg, var(--ex-deep), #14161a); }
.ex-hero-grow { z-index: 1; transition: clip-path 0.9s var(--ex-ease); }

.ex-hero-shade {
    position: absolute;
    inset: 0;
    z-index: 2;
    background:
        linear-gradient(90deg, rgb(8 10 14 / 0.62) 0%, rgb(8 10 14 / 0.25) 45%, rgb(8 10 14 / 0) 70%),
        linear-gradient(0deg, rgb(8 10 14 / 0.55), transparent 45%),
        linear-gradient(180deg, rgb(8 10 14 / 0.45), transparent 24%);
}

.ex-hero-grid {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    align-items: end;
    gap: 40px;
    min-height: 100vh;
    min-height: 100dvh;
    padding: calc(var(--ex-header) + 48px) 0 56px var(--ex-gutter);
}

.ex-hero-grid:not(:has(.ex-hero-side)) { grid-template-columns: minmax(0, 1fr); padding-right: var(--ex-gutter); }

.ex-hero-copies { display: grid; padding-bottom: 84px; }
.ex-hero-grid:not(:has(.ex-hero-side)) .ex-hero-copies { padding-bottom: 24px; }
.ex-hero-copy { grid-area: 1 / 1; align-self: end; max-width: 600px; visibility: hidden; opacity: 0; }
.ex-hero-copy.is-active { visibility: visible; opacity: 1; }

.ex-hero-kicker { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 12px; font-size: 1.1rem; font-weight: 500; }
.ex-hero-kicker::before { content: ""; width: 28px; height: 3px; background: var(--ex-accent); }

.ex-hero-title {
    display: -webkit-box;
    overflow: hidden;
    padding-bottom: 0.04em;
    font-family: var(--ex-font-display);
    font-size: var(--ex-title, clamp(3.25rem, 7.4vw, 7.5rem));
    font-weight: 600;
    line-height: 0.98;
    letter-spacing: -0.005em;
    text-transform: uppercase;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.ex-hero-text { max-width: 440px; margin-top: 18px; color: rgb(255 255 255 / 0.88); }
.ex-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.ex-hero.is-swap .ex-hero-copy.is-active > * { animation: ex-up 0.9s var(--ex-ease) both; }
.ex-hero.is-swap .ex-hero-copy.is-active > :nth-child(2) { animation-delay: 0.05s; }
.ex-hero.is-swap .ex-hero-copy.is-active > :nth-child(3) { animation-delay: 0.1s; }
.ex-hero.is-swap .ex-hero-copy.is-active > :nth-child(4) { animation-delay: 0.15s; }
@keyframes ex-up { from { opacity: 0; transform: translateY(32px); } to { opacity: 1; transform: none; } }

.ex-hero-side { min-width: 0; }
.ex-deck { display: flex; gap: 18px; overflow: hidden; padding: 8px 0 8px 8px; }

.ex-deck-card {
    position: relative;
    flex: 0 0 clamp(150px, 13vw, 200px);
    aspect-ratio: 3 / 4.1;
    overflow: hidden;
    padding: 0;
    border: 0;
    border-radius: var(--ex-radius);
    background: var(--ex-deep);
    color: #ffffff;
    text-align: left;
    box-shadow: 0 18px 40px -18px rgb(0 0 0 / 0.6);
    transition: transform 0.35s var(--ex-ease);
}

.ex-deck-card:hover { transform: translateY(-6px); }
.ex-deck-card.is-current { display: none; }
.ex-deck-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ex-deck-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 35%, rgb(8 10 14 / 0.82)); }
.ex-deck-text { position: absolute; left: 14px; right: 14px; bottom: 14px; z-index: 1; display: grid; gap: 4px; }
.ex-deck-text small { font-size: 0.75rem; opacity: 0.85; }
.ex-deck-text small::before { content: ""; display: block; width: 16px; height: 2px; margin-bottom: 8px; background: var(--ex-accent); }

.ex-deck-text b {
    display: -webkit-box;
    overflow: hidden;
    font-family: var(--ex-font-display);
    font-size: 1.05rem;
    font-weight: 500;
    line-height: 1.1;
    text-transform: uppercase;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.ex-deck.is-shift .ex-deck-card { animation: ex-in 0.7s var(--ex-ease) both; }
.ex-deck.is-shift .ex-deck-card:nth-child(2) { animation-delay: 0.05s; }
.ex-deck.is-shift .ex-deck-card:nth-child(3) { animation-delay: 0.1s; }
.ex-deck.is-shift .ex-deck-card:nth-child(4) { animation-delay: 0.15s; }
.ex-deck.is-shift .ex-deck-card:nth-child(5) { animation-delay: 0.2s; }
@keyframes ex-in { from { opacity: 0; transform: translateX(60px); } to { opacity: 1; transform: none; } }

.ex-hero-ctrl { display: flex; align-items: center; gap: 14px; margin-top: 28px; padding-right: var(--ex-gutter); }
.ex-progress { position: relative; flex: 1; height: 2px; overflow: hidden; background: rgb(255 255 255 / 0.3); }
.ex-progress i { position: absolute; inset: 0; background: #ffffff; transform: scaleX(0); transform-origin: left; }
.ex-progress i.is-run { animation: ex-progress var(--ex-delay, 7s) linear forwards; }
.ex-hero.is-paused .ex-progress i { animation-play-state: paused; }
@keyframes ex-progress { to { transform: scaleX(1); } }
.ex-count { min-width: 2ch; font-family: var(--ex-font-display); font-size: 3.5rem; font-weight: 500; line-height: 1; text-align: right; }


/* 7. Trending: a curved row (main.js bends the cards and lets the row drift)
   ========================================================================== */

.ex-trend { overflow: hidden; }
.ex-trend-head { margin-bottom: 8px; text-align: center; }

.ex-arc {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 48px var(--ex-gutter) 32px;
    scrollbar-width: none;
    cursor: grab;
    user-select: none;
}

.ex-arc::-webkit-scrollbar { display: none; }
.ex-arc.is-drag { cursor: grabbing; }
.ex-arc-card { flex: 0 0 clamp(170px, 17vw, 232px); transform-origin: center; }
.ex-arc.is-live .ex-arc-card { will-change: transform; }
.ex-arc-img { display: block; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 18px; background: var(--ex-surface); box-shadow: 0 22px 40px -24px rgb(20 20 30 / 0.45); }
.ex-arc-img img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ex-arc-title { display: block; margin-top: 14px; font-weight: 500; line-height: 1.3; }
.ex-arc-meta { display: block; margin-top: 2px; color: var(--ex-muted); font-size: 0.8rem; }


/* 8. Destinations: tabs and four tall cards
   ========================================================================== */

.ex-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 28px; }

.ex-tab {
    height: 40px;
    padding: 0 18px;
    border: 1px solid var(--ex-line);
    border-radius: 999px;
    background: none;
    color: var(--ex-muted);
    font-size: 0.95rem;
    font-weight: 500;
    transition: background-color 0.2s, color 0.2s;
}

.ex-tab:hover { color: var(--ex-ink); }
.ex-tab[aria-selected="true"] { border-color: var(--ex-ink); background: var(--ex-ink); color: var(--ex-bg); }

.ex-dest-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.ex-dest-grid + .ex-dest-grid { margin-top: 40px; }
[data-ex-tabs].is-ready .ex-dest-grid + .ex-dest-grid { margin-top: 0; }
.ex-dest-grid.is-in-view { animation: ex-fade 0.45s ease both; }
@keyframes ex-fade { from { opacity: 0; } to { opacity: 1; } }

.ex-dest-card { min-width: 0; }
.ex-dest-img { display: block; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--ex-radius); background: var(--ex-surface); }
.ex-dest-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ex-ease); }
.ex-dest-card:hover .ex-dest-img img { transform: scale(1.05); }
.ex-dest-title { display: block; margin-top: 14px; font-size: 1.1rem; font-weight: 600; line-height: 1.3; }
.ex-dest-meta { display: block; margin-top: 2px; color: var(--ex-muted); font-size: 0.875rem; }


/* 9. Image styles and story rows
   A 6:5 box is a 120 x 100 grid: the SVG mask (preserveAspectRatio none) and the flat shapes
   (clip-path in %, x / 1.2) share the same coordinates, so diamonds stay square.
   ========================================================================== */

.ex-comp { position: relative; isolation: isolate; aspect-ratio: 6 / 5; }

.ex-comp img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    -webkit-mask: var(--ex-mask) center / 100% 100% no-repeat;
    mask: var(--ex-mask) center / 100% 100% no-repeat;
    transition: transform 1.2s var(--ex-ease);
}

.ex-comp i { position: absolute; inset: 0; transition: transform 0.8s var(--ex-ease); }
.ex-comp-a { z-index: -1; background: var(--ex-accent); clip-path: var(--ex-shape-a); }
.ex-comp-b { z-index: 1; background: var(--ex-deep); clip-path: var(--ex-shape-b); }
[data-scheme="dark"] .ex-comp-b { background: var(--ex-on-deep-muted); }

.ex-comp[data-style="facets"] {
    --ex-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 100' preserveAspectRatio='none'%3E%3Cpath d='M62 12L100 50L62 88L24 50ZM22 13L39 30L22 47L5 30ZM22 55L39 72L22 89L5 72ZM100 -2L114 12L100 26L86 12Z'/%3E%3C/svg%3E");
    --ex-shape-a: polygon(0% 39%, 10% 51%, 0% 63%, -10% 51%);
    --ex-shape-b: polygon(86.67% 73%, 97.5% 86%, 86.67% 99%, 75.83% 86%);
}

.ex-comp[data-style="diamond"] {
    --ex-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 100' preserveAspectRatio='none'%3E%3Cpath d='M54 -12L116 50L54 112L-8 50Z'/%3E%3C/svg%3E");
    --ex-shape-a: polygon(60% 100%, 100% 52%, 100% 62%, 68.33% 100%);
    --ex-shape-b: polygon(61.67% 0%, 100% 0%, 100% 46%);
}

.ex-comp[data-style="diagonal"] {
    --ex-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 100' preserveAspectRatio='none'%3E%3Cpath d='M0 0H108L70 100H0Z'/%3E%3C/svg%3E");
    --ex-shape-a: polygon(95% 0%, 101.67% 0%, 70% 100%, 63.33% 100%);
    --ex-shape-b: polygon(0% 62%, 31.67% 100%, 0% 100%);
}

.ex-comp[data-style="strips"] {
    --ex-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 100' preserveAspectRatio='none'%3E%3Cpath d='M12.9 8H36.9L24 100H0ZM42 0H66L53.1 92H29.1ZM68 14H92L80 100H56Z'/%3E%3C/svg%3E");
    --ex-shape-a: polygon(81.67% 0%, 101.67% 0%, 93.25% 72%, 73.25% 72%);
    --ex-shape-b: polygon(72.58% 78%, 92.58% 78%, 90% 100%, 70% 100%);
}

.ex-comp[data-style="duo"] {
    --ex-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 100' preserveAspectRatio='none'%3E%3Cpath d='M38 5L71 38L38 71L5 38ZM80 38L110 68L80 98L50 68Z'/%3E%3C/svg%3E");
    --ex-shape-a: polygon(88.33% 11%, 97.5% 22%, 88.33% 33%, 79.17% 22%);
    --ex-shape-b: polygon(0% 56%, 36.67% 100%, 0% 100%);
}

.ex-comp[data-style="duo"] .ex-comp-b { z-index: -1; }
.ex-comp[data-style="none"] img { border-radius: var(--ex-radius); -webkit-mask: none; mask: none; }
.ex-comp[data-style="none"] i { display: none; }

.ex-story:hover .ex-comp img { transform: scale(1.03); }
.ex-story:hover .ex-comp-a { transform: translate(1.5%, -1.5%); }

/* Row: the image column touches the left edge of the screen up to 1680px wide */
.ex-story {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(32px, 5vw, 80px);
    margin-left: max(0px, calc((100vw - var(--ex-wrap)) / 2 - 220px));
    padding-right: var(--ex-gutter);
}

.ex-stories .ex-story + .ex-story { margin-top: clamp(56px, 7vw, 96px); }
.ex-story-media { display: block; margin: 0; }
.ex-story-text { display: grid; justify-items: start; gap: 14px; max-width: 540px; }
.ex-story-title { font-size: clamp(1.75rem, 3vw, 2.6rem); line-height: 1.12; letter-spacing: -0.015em; text-wrap: balance; }
.ex-story-title a::after { content: ""; position: absolute; inset: 0; }
.ex-story-excerpt { color: var(--ex-muted); }
.ex-story .ex-link { margin-top: 4px; }

.ex-story-noimg { grid-template-columns: minmax(0, 1fr); width: min(100% - 2 * var(--ex-gutter), var(--ex-wrap)); margin-inline: auto; padding: 40px; border-left: 4px solid var(--ex-accent); background: var(--ex-surface); }
.ex-story-noimg .ex-story-text { max-width: 760px; }

.ex-latest-more { margin-top: clamp(64px, 8vw, 104px); }


/* 10. Cards, grids, pagination
   ========================================================================== */

.ex-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px clamp(24px, 3vw, 40px); }

.ex-card { position: relative; display: flex; flex-direction: column; min-width: 0; }
.ex-card-media { display: block; margin-bottom: 18px; overflow: hidden; border-radius: var(--ex-radius); background: var(--ex-surface); aspect-ratio: 5 / 4; }
.ex-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ex-ease); }
.ex-card:hover .ex-card-media img { transform: scale(1.04); }
.ex-card-tagline { display: flex; align-items: center; gap: 10px; min-height: 1em; margin-bottom: 8px; }
.ex-card-title { font-size: 1.3rem; line-height: 1.25; text-wrap: pretty; }
.ex-card-title a::after { content: ""; position: absolute; inset: 0; }
.ex-card:hover .ex-card-title a { color: var(--ex-accent-text); }
.ex-card-meta { margin-top: 10px; color: var(--ex-muted); font-size: 0.85rem; }
.ex-card-noimg { padding: 24px; border-left: 4px solid var(--ex-accent); background: var(--ex-surface); }

.ex-lock { display: inline-flex; align-items: center; gap: 4px; color: var(--ex-muted); font-size: 0.75rem; font-weight: 600; }
.ex-lock .ex-icon { width: 13px; height: 13px; }

.ex-pagination { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 56px; }
.ex-page-number { color: var(--ex-muted); font-size: 0.9rem; }
.ex-load-more-wrap { display: flex; justify-content: center; margin-top: 56px; }
.ex-load-more.is-loading { opacity: 0.6; pointer-events: none; }


/* 11. About and highlights
   ========================================================================== */

.ex-high { background: var(--ex-surface); }
.ex-high-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr) minmax(0, 0.8fr); gap: 24px; }
.ex-me { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding-right: clamp(0px, 2vw, 24px); }
.ex-me-who { display: flex; align-items: center; gap: 14px; margin: 28px 0 18px; }
.ex-me-who img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.ex-me-who strong { display: block; }
.ex-me-who .ex-meta { display: block; }
.ex-me-bio { color: var(--ex-muted); }
.ex-me .ex-link { margin-top: 22px; }

.ex-high-post { position: relative; min-height: 300px; overflow: hidden; border-radius: var(--ex-radius); background: var(--ex-deep); color: #ffffff; }
.ex-high-big { min-height: 440px; }
.ex-high-big:last-child { grid-column: span 2; }
.ex-high-post img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ex-ease); }
.ex-high-post:hover img { transform: scale(1.04); }
.ex-high-post::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 50%, rgb(8 10 14 / 0.72)); }
.ex-high-caption { position: absolute; left: 20px; right: 20px; bottom: 18px; z-index: 1; font-weight: 500; line-height: 1.3; }

.ex-play {
    position: absolute;
    top: 44%;
    left: 50%;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--ex-accent);
    color: var(--ex-on-accent);
    translate: -50% -50%;
    transition: scale 0.3s var(--ex-ease);
}

.ex-high-post:hover .ex-play { scale: 1.08; }


/* 12. Newsletter band
   ========================================================================== */

.ex-news { padding-block: clamp(56px, 8vw, 96px); background: var(--ex-accent); color: var(--ex-on-accent); text-align: center; }
.ex-news-title { max-width: 22ch; margin-inline: auto; font-size: clamp(1.9rem, 4vw, 3rem); }
.ex-news-text { margin-top: 14px; opacity: 0.9; }
.ex-news .ex-form { max-width: 480px; margin: 28px auto 0; }
.ex-news .ex-form-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.ex-news .ex-form input { border-color: transparent; }
.ex-news .ex-btn { background: var(--ex-deep); color: var(--ex-on-deep); }


/* 13. Archives (tag & author)
   ========================================================================== */

.ex-cover {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: 460px;
    overflow: hidden;
    background: var(--ex-deep);
    color: var(--ex-on-deep);
}

.ex-cover.has-image { color: #ffffff; }
.ex-cover-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ex-cover.has-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgb(8 10 14 / 0.78), rgb(8 10 14 / 0.12)); }

.ex-cover-watermark {
    position: absolute;
    right: -0.04em;
    bottom: -0.16em;
    font-family: var(--ex-font-display);
    font-size: clamp(8rem, 24vw, 22rem);
    font-weight: 600;
    line-height: 1;
    text-transform: uppercase;
    opacity: 0.1;
    white-space: nowrap;
    pointer-events: none;
}

.ex-cover-inner { position: relative; z-index: 1; padding-block: calc(var(--ex-header) + 56px) 44px; }
.ex-cover-kicker { display: inline-flex; align-items: center; gap: 12px; font-size: 0.85rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.9; }
.ex-cover-kicker::before { content: ""; width: 28px; height: 3px; background: var(--ex-accent); }
.ex-cover-title { margin-top: 10px; font-family: var(--ex-font-display); font-size: clamp(3.25rem, 8vw, 7rem); font-weight: 600; line-height: 0.98; text-transform: uppercase; }
.ex-cover-desc { max-width: 52ch; margin-top: 14px; font-size: 1.1rem; opacity: 0.92; }
.ex-cover-avatar { width: 96px; height: 96px; margin-bottom: 18px; border: 3px solid currentColor; border-radius: 50%; object-fit: cover; }

.ex-neighbours { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.ex-neighbour {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgb(255 255 255 / 0.16);
    font-size: 0.875rem;
    transition: background-color 0.2s;
}
.ex-neighbour:hover { background: rgb(255 255 255 / 0.3); }
.ex-neighbour.nav-current { background: var(--ex-accent); color: var(--ex-on-accent); }
.ex-neighbour-icon { padding: 8px; }
.ex-neighbour .ex-icon { width: 16px; height: 16px; }


/* 14. Articles
   ========================================================================== */

.ex-post-head { padding-top: 32px; }
.ex-post-media figcaption { margin-top: 12px; padding-left: var(--ex-gutter); color: var(--ex-muted); font-size: 0.85rem; }
.ex-post-head .ex-story-text { gap: 18px; }
.ex-plain-head { display: grid; justify-items: center; gap: 18px; padding-top: 72px; text-align: center; }

.ex-crumbs { display: flex; flex-direction: row-reverse; justify-content: flex-end; flex-wrap: wrap-reverse; gap: 8px; color: var(--ex-muted); font-size: 0.9rem; }
.ex-plain-head .ex-crumbs { justify-content: center; }
.ex-crumbs a:first-child { color: var(--ex-accent-text); font-weight: 600; }
.ex-crumbs a + a::after { content: "/"; margin-left: 8px; color: var(--ex-muted); }
.ex-crumbs a:hover { text-decoration: underline; text-underline-offset: 3px; }

.ex-article-title { font-size: clamp(2.25rem, 4.4vw, 3.6rem); line-height: 1.07; letter-spacing: -0.02em; text-wrap: balance; }
.ex-lede { color: var(--ex-muted); font-size: 1.2rem; line-height: 1.5; }

.ex-byline { display: flex; align-items: center; gap: 12px; font-size: 0.9rem; }
.ex-byline-avatars { display: flex; }
.ex-byline-avatars:empty { display: none; }
.ex-byline-avatars .ex-avatar { width: 40px; height: 40px; border: 2px solid var(--ex-bg); border-radius: 50%; object-fit: cover; }
.ex-byline-avatars .ex-avatar + .ex-avatar { margin-left: -12px; }
.ex-byline-text { display: grid; line-height: 1.35; }
.ex-byline-names { font-weight: 600; }
.ex-byline-names a { position: relative; z-index: 1; }
.ex-byline-names a:hover { color: var(--ex-accent-text); }
.ex-byline-meta { color: var(--ex-muted); }

.ex-article-body,
.ex-page-body { padding-block: 64px 88px; }

/* Table of contents */
.ex-toc { margin-bottom: 40px; }
.ex-toc-box { padding: 18px 22px; border-left: 4px solid var(--ex-accent); border-radius: 0 var(--ex-radius-s) var(--ex-radius-s) 0; background: var(--ex-surface); }
.ex-toc-title { font-size: 1.05rem; font-weight: 600; cursor: pointer; list-style-position: inside; }
.ex-toc-list { margin: 10px 0 0; padding-left: 22px; font-size: 0.95rem; line-height: 1.5; }
.ex-toc-list li + li { margin-top: 6px; }
.ex-toc-list a { color: var(--ex-muted); transition: color 0.2s; }
.ex-toc-list a:hover { color: var(--ex-ink); }
.ex-toc-list a.is-active { color: var(--ex-accent-text); font-weight: 600; }

/* End of a post */
.ex-post-foot { display: grid; gap: 32px; margin-top: 56px; }
.ex-post-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.ex-pill { padding: 6px 14px; border: 1px solid var(--ex-line); border-radius: 999px; font-size: 0.875rem; transition: border-color 0.2s; }
.ex-pill:hover { border-color: var(--ex-ink); }
.ex-share { display: flex; align-items: center; gap: 4px; }
.ex-share-label { margin-right: 8px; color: var(--ex-muted); font-size: 0.875rem; }
.ex-share .ex-icon { width: 18px; height: 18px; }
.ex-copy.is-copied { color: var(--ex-accent-text); }

.ex-cta {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px 24px;
    padding: 28px;
    border-radius: var(--ex-radius);
    background: var(--ex-deep);
    color: var(--ex-on-deep);
}

.ex-cta-title { margin-bottom: 6px; font-size: 1.5rem; }
.ex-cta-text { color: var(--ex-on-deep-muted); font-size: 0.95rem; }

.ex-author-card { display: flex; gap: 18px; padding-top: 28px; border-top: 1px solid var(--ex-line); }
.ex-author-card .ex-avatar { flex: none; width: 64px; height: 64px; overflow: hidden; border-radius: 50%; background: var(--ex-surface); }
.ex-author-card .ex-avatar img { width: 100%; height: 100%; object-fit: cover; }
.ex-author-card .ex-avatar span { display: grid; place-items: center; height: 100%; font-size: 0; }
.ex-author-card-name { font-size: 1.15rem; font-weight: 600; }
.ex-author-card-bio { margin-top: 4px; color: var(--ex-muted); font-size: 0.95rem; }

.ex-comments { margin-top: 56px; }
.ex-related { padding-top: 0; }


/* 15. Content (Koenig editor)
   ========================================================================== */

.ex-content { font-size: 1.15rem; line-height: 1.75; overflow-wrap: break-word; }

.ex-content-grid {
    display: grid;
    grid-template-columns:
        [full-start] minmax(var(--ex-gutter), 1fr)
        [wide-start] minmax(0, 170px)
        [main-start] min(var(--ex-narrow), calc(100% - 2 * var(--ex-gutter)))
        [main-end] minmax(0, 170px)
        [wide-end] minmax(var(--ex-gutter), 1fr)
        [full-end];
}

.ex-content-wide {
    grid-template-columns:
        [full-start] minmax(var(--ex-gutter), 1fr)
        [wide-start main-start] min(var(--ex-wrap), calc(100% - 2 * var(--ex-gutter)))
        [main-end wide-end] minmax(var(--ex-gutter), 1fr)
        [full-end];
}

.ex-content-grid > * { grid-column: main; }
.ex-content-grid > .kg-width-wide { grid-column: wide; }
.ex-content-grid > .kg-width-full { grid-column: full; }

.ex-content > * + * { margin-top: 1.4em; margin-bottom: 0; }
.ex-content > :first-child { margin-top: 0; }

.ex-content > h2 { margin-top: 1.9em; font-size: 1.9rem; }
.ex-content > h3 { margin-top: 1.7em; font-size: 1.45rem; }
.ex-content > h4 { margin-top: 1.5em; font-size: 1.2rem; }
.ex-content > h2 + *,
.ex-content > h3 + *,
.ex-content > h4 + * { margin-top: 0.7em; }

.ex-content a { color: var(--ex-accent-text); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.ex-content a:hover { text-decoration-thickness: 2px; }
.ex-content a.kg-btn,
.ex-content .kg-bookmark-container,
.ex-content .kg-product-card a { text-decoration: none; }

.ex-content strong { font-weight: 700; }
.ex-content ul,
.ex-content ol { padding-left: 1.4em; }
.ex-content li + li { margin-top: 0.4em; }
.ex-content li::marker { color: var(--ex-accent-text); }

.ex-content blockquote:not([class]) {
    margin-inline: 0;
    padding-left: 24px;
    border-left: 4px solid var(--ex-accent);
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 1.4;
}

.ex-content blockquote.kg-blockquote-alt {
    margin-inline: 0;
    padding: 0.4em 1em;
    font-family: var(--ex-font-display);
    font-size: 2rem;
    line-height: 1.2;
    text-align: center;
    text-transform: uppercase;
}

.ex-content hr { justify-self: center; width: 14px; height: 14px; margin-block: 3em; border: 0; background: var(--ex-accent); transform: rotate(45deg); }

.ex-content code:not(pre code) { padding: 0.15em 0.4em; border-radius: 4px; background: var(--ex-surface); font-size: 0.88em; }
.ex-content pre { overflow-x: auto; padding: 20px; border-radius: var(--ex-radius); background: #111214; color: #e9e9e6; font-size: 0.9rem; line-height: 1.6; }

.ex-content table { display: block; overflow-x: auto; border-collapse: collapse; font-size: 0.95rem; }
.ex-content th,
.ex-content td { padding: 10px 14px; border-bottom: 1px solid var(--ex-line); text-align: left; }

.ex-content figure { margin-inline: 0; }
.ex-content figcaption { margin-top: 10px; color: var(--ex-muted); font-size: 0.85rem; text-align: center; }
.ex-content .kg-image-card img { border-radius: var(--ex-radius); }
.ex-content .kg-width-full img { border-radius: 0; }
.ex-content .kg-gallery-image img { border-radius: 6px; }

.ex-content .kg-callout-card,
.ex-content .kg-toggle-card,
.ex-content .kg-product-card-container,
.ex-content .kg-bookmark-container { border-radius: var(--ex-radius); }
.ex-content .kg-bookmark-container { color: var(--ex-ink); }
.ex-content .kg-toggle-card-icon { min-width: 24px; min-height: 24px; }
.ex-content .gh-post-upgrade-cta-content { border-radius: var(--ex-radius); }

.ex-content-grid > .kg-width-full + .kg-width-full:not(.kg-card-hascaption + .kg-width-full) { margin-top: 0; }


/* 16. Footer
   ========================================================================== */

.ex-footer { padding-block: 72px 28px; background: var(--ex-deep); color: var(--ex-on-deep); }
.ex-footer-top { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
.ex-brand-footer .ex-brand-title { font-size: 1.6rem; }
.ex-footer-text { max-width: 34ch; margin-top: 16px; color: var(--ex-on-deep-muted); font-size: 0.95rem; }
.ex-footer-heading { margin-bottom: 14px; color: var(--ex-on-deep-muted); font-family: var(--ex-font-body); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.ex-footer-menu { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; font-size: 0.95rem; }
.ex-footer-menu a:hover { text-decoration: underline; text-underline-offset: 3px; }

.ex-social { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.ex-footer .ex-social { margin-top: 40px; padding-top: 28px; border-top: 1px solid rgb(255 255 255 / 0.12); }
.ex-social a { display: grid; place-items: center; width: 44px; height: 44px; color: inherit; opacity: 0.92; transition: opacity 0.2s, transform 0.2s; }
.ex-social a:hover { opacity: 1; transform: translateY(-2px); }
.ex-social .ex-icon { width: 26px; height: 26px; }
.ex-social-sm { gap: 2px; margin-top: 8px; margin-left: -10px; }
.ex-social-sm a { width: 36px; height: 36px; }
.ex-social-sm .ex-icon { width: 18px; height: 18px; }
.ex-social-fallback { font-size: 0.75rem; }

.ex-footer-bottom { display: flex; justify-content: space-between; gap: 16px; margin-top: 28px; color: var(--ex-on-deep-muted); font-size: 0.8rem; }
.ex-footer-bottom a { text-decoration: underline; text-underline-offset: 3px; }


/* 17. Misc
   ========================================================================== */

.ex-error { padding-block: calc(var(--ex-header) + 80px) 40px; text-align: center; }
.ex-error-code { color: var(--ex-accent-text); font-family: var(--ex-font-display); font-size: clamp(5rem, 14vw, 9rem); font-weight: 600; line-height: 1; }
.ex-error-title { margin-top: 12px; font-size: clamp(2rem, 4vw, 3rem); }
.ex-error-text { max-width: 48ch; margin: 14px auto 28px; color: var(--ex-muted); }
.ex-error .ex-btn { margin-top: 12px; }
.ex-empty { color: var(--ex-muted); }

/* Blocks rise into place as they enter the viewport (class added by main.js) */
.ex-reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s var(--ex-ease), transform 0.8s var(--ex-ease); }
.ex-reveal.is-in { opacity: 1; transform: none; }


/* 18. Responsive
   ========================================================================== */

@media (max-width: 1180px) {
    .ex-header-inner { gap: 16px; }
    .ex-menu > li > a,
    .ex-menu > li > .ex-sub-toggle { padding: 0 10px; font-size: 0.9rem; }
    .ex-high-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .ex-me { grid-column: 1 / -1; }
    .ex-high-big:last-child { grid-column: 1 / -1; }
}

@media (max-width: 960px) {
    /* Mobile menu: a panel under the header */
    .ex-burger { display: flex; }
    .ex-header-cta,
    .ex-hide-sm { display: none; }
    .ex-header-center .ex-header-inner { display: flex; }
    .ex-header-center .ex-nav { order: 0; }
    .ex-header-inner { justify-content: space-between; }

    .ex-nav {
        position: fixed;
        inset: var(--ex-header) 0 0;
        z-index: 49;
        display: flex;
        flex-direction: column;
        gap: 24px;
        margin: 0;
        padding: 12px var(--ex-gutter) 40px;
        overflow-y: auto;
        background: var(--ex-bg);
        color: var(--ex-ink);
        transform: translateX(100%);
        visibility: hidden;
        transition: transform 0.35s var(--ex-ease), visibility 0.35s;
    }

    .ex-nav.is-open { transform: none; visibility: visible; }
    body.ex-nav-open { overflow: hidden; }
    body.ex-nav-open .ex-header,
    body.ex-nav-open:has(.ex-hero) .ex-header:not(.is-solid) { background: var(--ex-bg); color: var(--ex-ink); box-shadow: 0 1px 0 var(--ex-line); }

    .ex-menu { flex-direction: column; align-items: stretch; gap: 0; }
    .ex-menu > li { border-bottom: 1px solid var(--ex-line); }
    .ex-menu > li > a,
    .ex-menu > li > .ex-sub-toggle { justify-content: space-between; width: 100%; height: auto; padding: 16px 0; border-radius: 0; font-size: 1.25rem; font-weight: 600; text-align: left; }
    .ex-menu > li > a:hover,
    .ex-menu > li > .ex-sub-toggle:hover,
    .ex-sub-toggle[aria-expanded="true"] { background: none; }
    .ex-menu > .is-current > a { box-shadow: none; color: var(--ex-accent-text); }

    .ex-submenu.is-open { display: grid; gap: 4px; padding: 0 0 16px; }
    .ex-submenu > li > a { display: block; padding: 6px 0; font-weight: 600; }
    .ex-subsub { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; margin: 0 0 10px; padding-left: 14px; }
    .ex-subsub a { display: block; padding: 5px 0; color: var(--ex-muted); }
    .ex-sub-all a { color: var(--ex-accent-text); }

    .ex-nav-members { display: flex; flex-wrap: wrap; gap: 10px; }
    .ex-mega,
    .ex-drop { display: none !important; }

    /* Slider */
    .ex-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; padding: calc(var(--ex-header) + 40px) var(--ex-gutter) 32px; }
    .ex-hero-copies { padding-bottom: 0; }
    .ex-deck { margin-right: calc(-1 * var(--ex-gutter)); padding-left: 0; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
    .ex-deck-card { flex-basis: 132px; scroll-snap-align: start; }
    .ex-hero-ctrl { margin-top: 18px; padding-right: 0; }

    /* Destinations scroll sideways */
    .ex-dest-grid { grid-template-columns: repeat(4, minmax(220px, 1fr)); margin-right: calc(-1 * var(--ex-gutter)); padding-right: var(--ex-gutter); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
    .ex-dest-card { scroll-snap-align: start; }

    /* Story rows stack */
    .ex-story { grid-template-columns: minmax(0, 1fr); gap: 28px; margin-left: 0; padding-right: 0; }
    .ex-story-media { margin-right: var(--ex-gutter); }
    .ex-story-text { max-width: 640px; padding-inline: var(--ex-gutter); }
    .ex-story-noimg .ex-story-text { padding-inline: 0; }
    .ex-post-head .ex-story-media figcaption { margin-right: 0; }

    .ex-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ex-footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ex-footer-about { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
    .ex-head { flex-direction: column; align-items: flex-start; }
    .ex-hero-title { font-size: var(--ex-title, clamp(2.75rem, 13vw, 4.25rem)); }
    .ex-count { font-size: 2.5rem; }
    .ex-round { width: 44px; height: 44px; }
    .ex-grid { grid-template-columns: minmax(0, 1fr); }
    .ex-high-grid { grid-template-columns: minmax(0, 1fr); }
    .ex-high-big { min-height: 340px; }
    .ex-form-row { flex-direction: column; }
    .ex-cta { grid-template-columns: minmax(0, 1fr); }
    .ex-footer-bottom { flex-direction: column; }
    .ex-story-noimg { padding: 28px 22px; }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
    .ex-reveal { opacity: 1; transform: none; }
}

/* Pages and archive headings (kept at the end: they only add to the sections above) */
.ex-page-cover { width: min(100% - 2 * var(--ex-gutter), 1040px); margin: 48px auto 0; }
.ex-page-cover img { width: 100%; border-radius: var(--ex-radius); }
.ex-page-cover figcaption { margin-top: 10px; color: var(--ex-muted); font-size: 0.85rem; text-align: center; }
.ex-cover-full { width: 100%; }
.ex-cover-full img { border-radius: 0; }
.ex-index-head { padding-top: 24px; }
.ex-head-note { color: var(--ex-muted); }
.ex-avatar-lg { display: block; }
