/* ==========================================================================
   Marrakech Guide — multilingual, independent, non-commercial
   Palette: #1a3a5c / #2c5f8a / #4a90c2 / #eef4f9
   ========================================================================== */

:root {
    --navy: #1a3a5c;
    --navy-deep: #122b45;
    --blue: #2c5f8a;
    --sky: #4a90c2;
    --sky-soft: #dfeef8;
    --bg: #eef4f9;
    --surface: #ffffff;
    --surface-soft: #f7fbfe;
    --ink: #172b3f;
    --ink-soft: #324b63;
    --muted: #5b7185;
    --line: #d5e3ee;
    --line-strong: #b8d0e2;
    --white: #ffffff;
    --shadow-sm: 0 2px 10px rgba(26, 58, 92, 0.05);
    --shadow-md: 0 18px 44px rgba(26, 58, 92, 0.10);
    --radius: 16px;
    --radius-lg: 24px;
    --wrap: 1160px;
    --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 17px;
    line-height: 1.65;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

html[lang="ar"] body {
    line-height: 1.8;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: var(--blue);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

a:hover {
    color: var(--navy);
}

p {
    margin: 0 0 1.15em;
}

h1,
h2,
h3,
h4 {
    margin: 0;
    font-family: var(--sans);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.025em;
    text-wrap: balance;
}

[dir="rtl"] h1,
[dir="rtl"] h2,
[dir="rtl"] h3,
[dir="rtl"] h4 {
    letter-spacing: 0;
    line-height: 1.35;
}

h1 {
    font-size: clamp(2.5rem, 5.4vw, 4.35rem);
}

h2 {
    font-size: clamp(1.85rem, 3.4vw, 2.7rem);
}

h3 {
    font-size: 1.28rem;
}

::selection {
    background: var(--sky);
    color: var(--white);
}

:focus-visible {
    outline: 3px solid var(--sky);
    outline-offset: 3px;
    border-radius: 4px;
}

[id] {
    scroll-margin-top: 100px;
}

.wrap {
    width: min(var(--wrap), calc(100% - 48px));
    margin-inline: auto;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 1000;
    padding: 12px 18px;
    background: var(--navy);
    color: var(--white);
    border-radius: 8px;
    transform: translateY(-160%);
    transition: transform 0.2s ease;
}

.skip-link:focus {
    transform: translateY(0);
}

/* --------------------------------------------------------------------------
   Type and links
   -------------------------------------------------------------------------- */

.eyebrow {
    margin: 0 0 13px;
    color: var(--blue);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.17em;
    text-transform: uppercase;
}

[dir="rtl"] .eyebrow {
    letter-spacing: 0;
}

.eyebrow--light {
    color: #a9d6f3;
}

.lead {
    color: var(--ink-soft);
    font-size: clamp(1.06rem, 1.6vw, 1.2rem);
    line-height: 1.75;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 11px 22px;
    border: 1px solid transparent;
    border-radius: 10px;
    background: var(--navy);
    color: var(--white);
    font-size: 0.88rem;
    font-weight: 650;
    letter-spacing: 0.01em;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.button:hover {
    background: var(--blue);
    color: var(--white);
    transform: translateY(-1px);
}

.button--ghost {
    border-color: rgba(255, 255, 255, 0.55);
    background: rgba(18, 43, 69, 0.25);
    color: var(--white);
    backdrop-filter: blur(6px);
}

.button--ghost:hover {
    border-color: var(--white);
    background: var(--white);
    color: var(--navy);
}

.button--outline {
    border-color: var(--line-strong);
    background: transparent;
    color: var(--navy);
}

.button--outline:hover {
    border-color: var(--navy);
    background: var(--navy);
    color: var(--white);
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--blue);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-decoration: none;
    border-bottom: 1px solid var(--line-strong);
    padding-bottom: 2px;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.text-link:hover {
    border-color: var(--blue);
    color: var(--navy);
}

.inline-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--blue);
    font-size: 0.84rem;
    font-weight: 650;
    text-decoration: none;
}

.inline-link:hover {
    color: var(--navy);
    text-decoration: underline;
}

.arrow {
    display: inline-block;
    transition: transform 0.2s ease;
}

[dir="rtl"] .arrow {
    transform: scaleX(-1);
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(12px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    min-height: 78px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--navy);
    text-decoration: none;
    flex-shrink: 0;
}

.brand:hover {
    color: var(--navy);
}

.brand-mark {
    width: 29px;
    height: 29px;
    color: var(--sky);
    flex-shrink: 0;
}

.brand-name {
    display: grid;
    gap: 1px;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 0.95;
}

.brand-name span:last-child {
    color: var(--blue);
    font-size: 0.55rem;
    font-weight: 700;
    letter-spacing: 0.26em;
    text-transform: uppercase;
}

.primary-nav {
    display: flex;
    align-items: center;
    gap: clamp(10px, 1.8vw, 24px);
    margin-inline-start: auto;
}

.nav-link {
    position: relative;
    padding: 8px 0;
    color: var(--ink);
    font-size: 0.74rem;
    font-weight: 650;
    letter-spacing: 0.03em;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.nav-link::after {
    content: "";
    position: absolute;
    inset-inline: 0;
    bottom: 2px;
    height: 2px;
    background: var(--sky);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.2s ease;
}

[dir="rtl"] .nav-link::after {
    transform-origin: right;
}

.nav-link:hover::after,
.nav-link.is-active::after {
    transform: scaleX(1);
}

.nav-link.is-active,
.nav-link:hover {
    color: var(--navy);
}

.lang-switch {
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 3px;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 999px;
    flex-shrink: 0;
}

.lang-switch a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 29px;
    padding: 0 7px;
    border-radius: 999px;
    color: var(--muted);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-decoration: none;
}

.lang-switch a:hover {
    color: var(--navy);
}

.lang-switch a.is-active {
    background: var(--navy);
    color: var(--white);
}

.mobile-menu {
    display: none;
    position: relative;
    flex-shrink: 0;
}

.mobile-menu summary {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    cursor: pointer;
    list-style: none;
}

.mobile-menu summary::-webkit-details-marker {
    display: none;
}

.burger,
.burger::before,
.burger::after {
    display: block;
    width: 17px;
    height: 1.5px;
    background: var(--navy);
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.burger {
    position: relative;
}

.burger::before,
.burger::after {
    content: "";
    position: absolute;
    left: 0;
}

.burger::before {
    top: -5px;
}

.burger::after {
    top: 5px;
}

.mobile-menu[open] .burger {
    background: transparent;
}

.mobile-menu[open] .burger::before {
    transform: translateY(5px) rotate(45deg);
}

.mobile-menu[open] .burger::after {
    transform: translateY(-5px) rotate(-45deg);
}

.mobile-menu__panel {
    position: absolute;
    top: calc(100% + 12px);
    inset-inline-end: 0;
    width: min(320px, calc(100vw - 36px));
    padding: 12px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
}

.mobile-menu__panel nav {
    display: grid;
}

.mobile-menu__panel nav a {
    padding: 11px 10px;
    border-radius: 8px;
    color: var(--ink);
    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: none;
}

.mobile-menu__panel nav a:hover {
    background: var(--bg);
    color: var(--navy);
}

.mobile-lang {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 8px;
    padding: 10px;
    border-top: 1px solid var(--line);
}

.mobile-lang span {
    margin-inline-end: auto;
    color: var(--muted);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.mobile-lang a {
    padding: 4px 8px;
    border-radius: 6px;
    color: var(--muted);
    font-size: 0.7rem;
    font-weight: 700;
    text-decoration: none;
}

.mobile-lang a.is-active {
    background: var(--navy);
    color: var(--white);
}

/* --------------------------------------------------------------------------
   Home hero
   -------------------------------------------------------------------------- */

.home-hero {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: clamp(600px, 88vh, 820px);
    padding: 140px 0 0;
    overflow: hidden;
    color: var(--white);
    background: var(--navy-deep);
}

.home-hero__media,
.home-hero__overlay {
    position: absolute;
    inset: 0;
}

.home-hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 40%;
}

.home-hero__overlay {
    background:
        linear-gradient(180deg, rgba(18, 43, 69, 0.35) 0%, rgba(18, 43, 69, 0.62) 50%, rgba(18, 43, 69, 0.94) 100%),
        linear-gradient(90deg, rgba(18, 43, 69, 0.75) 0%, rgba(18, 43, 69, 0.1) 70%);
}

.home-hero__content {
    position: relative;
    z-index: 2;
    padding-bottom: 54px;
}

.home-hero h1 {
    max-width: 880px;
    margin-bottom: 22px;
    color: var(--white);
}

.home-hero .hero-lead {
    max-width: 680px;
    margin-bottom: 28px;
    color: rgba(255, 255, 255, 0.85);
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.trust-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 24px;
    margin: 26px 0 0;
    padding: 0;
    list-style: none;
}

.trust-list li {
    position: relative;
    padding-inline-start: 18px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.76rem;
    letter-spacing: 0.03em;
}

.trust-list li::before {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    top: 0.55em;
    width: 7px;
    height: 7px;
    background: var(--sky);
    border-radius: 50%;
}

.hero-credit {
    margin: 22px 0 0;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.66rem;
    text-align: end;
}

.hero-credit a {
    color: rgba(255, 255, 255, 0.72);
}

/* --------------------------------------------------------------------------
   Sections and components
   -------------------------------------------------------------------------- */

.section {
    padding-block: clamp(3.5rem, 7vw, 6.5rem);
}

.section--intro {
    padding-block: clamp(3rem, 6vw, 5.5rem);
}

.section--soft {
    background: var(--surface-soft);
    border-block: 1px solid var(--line);
}

.section--last {
    padding-top: 0;
}

.section-head {
    max-width: 790px;
    margin-bottom: clamp(1.8rem, 3.5vw, 3rem);
}

.section-head--row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
    max-width: none;
}

.section-head h2 {
    margin-bottom: 12px;
    color: var(--navy);
}

.section-lead {
    margin: 0;
    color: var(--muted);
    font-size: 1.02rem;
    line-height: 1.7;
}

.intro-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
    gap: clamp(2rem, 6vw, 5rem);
    align-items: start;
}

.intro-grid h2 {
    margin-bottom: 18px;
    color: var(--navy);
}

.intro-grid .lead {
    max-width: 690px;
}

.highlight-card {
    padding: 28px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-top: 4px solid var(--sky);
    border-radius: 4px 4px var(--radius) var(--radius);
    box-shadow: var(--shadow-sm);
}

.highlight-card h3 {
    margin-bottom: 15px;
    color: var(--navy);
    font-size: 1.1rem;
}

.check-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.check-list li {
    position: relative;
    padding: 0 0 11px 26px;
    color: var(--ink-soft);
    font-size: 0.93rem;
    line-height: 1.6;
}

.check-list li::before {
    content: "✓";
    position: absolute;
    inset-inline-start: 0;
    top: -1px;
    color: var(--sky);
    font-weight: 800;
}

.check-list li:last-child {
    padding-bottom: 0;
}

.group-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.group-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: inherit;
    text-decoration: none;
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.group-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    color: inherit;
}

.group-card__media {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--sky-soft);
}

.group-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.group-card:hover .group-card__media img {
    transform: scale(1.04);
}

.group-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 19px 18px 21px;
}

.group-card__body h3 {
    margin-bottom: 7px;
    color: var(--navy);
    font-size: 1.08rem;
}

.group-card__body p {
    margin-bottom: 16px;
    color: var(--muted);
    font-size: 0.84rem;
    line-height: 1.55;
}

.group-card__body .card__more {
    margin-top: auto;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 22px;
}

.card {
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.card__link {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.card__link:hover {
    color: inherit;
}

.card__media {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--sky-soft);
}

.card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.55s ease;
}

.card:hover .card__media img {
    transform: scale(1.04);
}

.card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 20px 21px 22px;
}

.card__kicker {
    margin-bottom: 8px;
    color: var(--blue);
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

[dir="rtl"] .card__kicker {
    letter-spacing: 0;
}

.card__body h3 {
    margin-bottom: 8px;
    color: var(--navy);
    font-size: 1.24rem;
}

.card__text {
    margin-bottom: 18px;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.58;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card__more {
    margin-top: auto;
    color: var(--blue);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

[dir="rtl"] .card__more {
    letter-spacing: 0;
}

.card-grid--related {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Split / day timeline */

.day-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: clamp(2rem, 6vw, 5rem);
    align-items: start;
}

.day-copy h2 {
    margin-bottom: 14px;
    color: var(--navy);
}

.day-timeline {
    margin: 0;
    padding: 0;
    list-style: none;
}

.day-timeline li {
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr);
    gap: 20px;
    padding: 20px 0;
    border-top: 1px solid var(--line);
}

.day-timeline li:last-child {
    border-bottom: 1px solid var(--line);
}

.day-timeline__time {
    color: var(--sky);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.day-timeline h3 {
    margin-bottom: 5px;
    color: var(--navy);
    font-size: 1.1rem;
}

.day-timeline p {
    margin-bottom: 7px;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Navy band */

.band {
    padding-block: clamp(3.5rem, 7vw, 6rem);
    background: var(--navy);
    color: var(--white);
}

.band-head {
    max-width: 720px;
    margin-bottom: clamp(1.8rem, 3.5vw, 2.8rem);
}

.band-head h2 {
    margin-bottom: 14px;
    color: var(--white);
}

.band-head p {
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
}

.band .card {
    border-color: rgba(255, 255, 255, 0.08);
}

/* Mini cards and note banner */

.mini-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
    gap: 16px;
}

.mini-card {
    display: flex;
    flex-direction: column;
    padding: 24px 22px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: inherit;
    text-decoration: none;
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.mini-card:hover {
    transform: translateY(-3px);
    border-color: var(--line-strong);
    box-shadow: var(--shadow-md);
    color: inherit;
}

.mini-card h3 {
    margin-bottom: 8px;
    color: var(--navy);
    font-size: 1.06rem;
}

.mini-card p {
    margin-bottom: 17px;
    color: var(--muted);
    font-size: 0.86rem;
    line-height: 1.55;
}

.mini-card .card__more {
    margin-top: auto;
}

.note-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: clamp(28px, 4.5vw, 48px);
    background: var(--surface-soft);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
}

.note-banner h2 {
    margin-bottom: 10px;
    color: var(--navy);
    font-size: clamp(1.6rem, 2.8vw, 2.2rem);
}

.note-banner p {
    max-width: 680px;
    margin: 0;
    color: var(--muted);
}

.note-banner .button {
    flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   Page intro (inner pages and hubs)
   -------------------------------------------------------------------------- */

.page-intro {
    padding: clamp(2.5rem, 5vw, 4.5rem) 0 clamp(2.5rem, 5vw, 4.5rem);
    background:
        radial-gradient(circle at 85% 10%, rgba(74, 144, 194, 0.14), transparent 32%),
        linear-gradient(135deg, #f8fcff 0%, #e8f2fa 100%);
    border-bottom: 1px solid var(--line);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 32px;
    color: var(--muted);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.breadcrumb a {
    color: var(--blue);
    text-decoration: none;
}

.breadcrumb a:hover {
    color: var(--navy);
    text-decoration: underline;
}

.page-intro__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: clamp(2rem, 5vw, 4.5rem);
    align-items: center;
}

.page-intro__copy h1 {
    margin-bottom: 18px;
    color: var(--navy);
}

.page-intro__figure {
    margin: 0;
}

.page-intro__figure img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.page-intro__figure figcaption {
    margin-top: 10px;
    color: var(--muted);
    font-size: 0.68rem;
    line-height: 1.45;
}

.page-intro__figure figcaption a {
    color: var(--muted);
}

/* Simple head for about/contact/credits */

.simple-head {
    position: relative;
    padding: clamp(3.5rem, 7vw, 6rem) 0 clamp(3rem, 5vw, 4.5rem);
    overflow: hidden;
    background:
        radial-gradient(circle at 90% 20%, rgba(74, 144, 194, 0.25), transparent 30%),
        var(--navy);
    color: var(--white);
}

.simple-head::after {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    top: -180px;
    inset-inline-end: -140px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    transform: rotate(45deg);
    pointer-events: none;
}

.simple-head .wrap {
    position: relative;
    z-index: 1;
}

.simple-head .breadcrumb {
    color: rgba(255, 255, 255, 0.55);
}

.simple-head .breadcrumb a {
    color: rgba(255, 255, 255, 0.72);
}

.simple-head h1 {
    max-width: 900px;
    margin-bottom: 16px;
    color: var(--white);
}

.simple-head .lead {
    max-width: 760px;
    color: rgba(255, 255, 255, 0.78);
}

.simple-head .eyebrow {
    color: #a9d6f3;
}

/* --------------------------------------------------------------------------
   Content page
   -------------------------------------------------------------------------- */

.content-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: clamp(2.5rem, 6vw, 5rem);
    align-items: start;
    padding-block: clamp(2.5rem, 5vw, 4.5rem);
}

.content-main {
    max-width: 720px;
}

.content-section {
    margin-bottom: 42px;
}

.content-section h2 {
    margin-bottom: 16px;
    color: var(--navy);
    font-size: clamp(1.5rem, 2.6vw, 1.95rem);
}

.content-section p {
    color: var(--ink-soft);
    font-size: 1.02rem;
    line-height: 1.78;
}

.bullet-list {
    margin: 0 0 1.2em;
    padding: 0;
    list-style: none;
}

.bullet-list li {
    position: relative;
    padding: 0 0 10px 22px;
    color: var(--ink-soft);
    font-size: 0.96rem;
    line-height: 1.65;
}

.bullet-list li::before {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    top: 0.65em;
    width: 6px;
    height: 6px;
    background: var(--sky);
    border-radius: 50%;
}

.item-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 24px;
}

.item-card {
    padding: 20px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-inline-start: 3px solid var(--sky);
    border-radius: 0 var(--radius) var(--radius) 0;
}

[dir="rtl"] .item-card {
    border-radius: var(--radius) 0 0 var(--radius);
}

.item-card h3 {
    margin-bottom: 3px;
    color: var(--navy);
    font-size: 1.1rem;
}

.item-card__meta {
    margin-bottom: 9px;
    color: var(--blue);
    font-size: 0.68rem;
    font-weight: 650;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

[dir="rtl"] .item-card__meta {
    letter-spacing: 0;
}

.item-card p:last-child {
    margin-bottom: 0;
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.6;
}

.tips-box {
    margin: 38px 0;
    padding: 24px 26px;
    background: var(--surface-soft);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.tips-box h2 {
    margin-bottom: 14px;
    color: var(--navy);
    font-size: 1.35rem;
}

.related-section {
    margin-top: 48px;
    padding-top: 34px;
    border-top: 1px solid var(--line);
}

.related-section .section-head {
    margin-bottom: 20px;
}

.related-section .section-head h2 {
    font-size: 1.6rem;
}

.sidebar {
    position: sticky;
    top: 104px;
    display: grid;
    gap: 18px;
}

.facts-card,
.sidebar-card {
    padding: 23px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.facts-card h2,
.sidebar-card h2 {
    margin-bottom: 14px;
    color: var(--navy);
    font-size: 1.15rem;
}

.fact-list {
    margin: 0;
}

.fact-list div {
    padding: 11px 0;
    border-top: 1px solid var(--line);
}

.fact-list div:first-child {
    padding-top: 0;
    border-top: 0;
}

.fact-list dt {
    margin-bottom: 3px;
    color: var(--muted);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

[dir="rtl"] .fact-list dt {
    letter-spacing: 0;
}

.fact-list dd {
    margin: 0;
    color: var(--ink-soft);
    font-size: 0.88rem;
    line-height: 1.55;
}

.sidebar-card {
    background: var(--surface-soft);
}

.sidebar-links {
    margin: 0;
    padding: 0;
    list-style: none;
}

.sidebar-links li {
    border-top: 1px solid var(--line);
}

.sidebar-links li:first-child {
    border-top: 0;
}

.sidebar-links a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 9px 0;
    color: var(--ink-soft);
    font-size: 0.85rem;
    text-decoration: none;
}

.sidebar-links a:hover {
    color: var(--blue);
}

.sidebar-note {
    padding: 22px;
    background: var(--navy);
    border-radius: var(--radius);
    color: var(--white);
}

.sidebar-note .eyebrow {
    color: #a9d6f3;
}

.sidebar-note p {
    color: rgba(255, 255, 255, 0.74);
    font-size: 0.86rem;
    line-height: 1.6;
}

.sidebar-note .text-link {
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.35);
}

.source-note {
    margin: 14px 0 0;
    color: var(--muted);
    font-size: 0.72rem;
    line-height: 1.5;
}

.source-note--bottom {
    margin: 0 auto clamp(2rem, 4vw, 3rem);
    max-width: var(--wrap);
}

/* --------------------------------------------------------------------------
   Prose, about, contact, credits, 404
   -------------------------------------------------------------------------- */

.prose-wrap {
    max-width: 860px;
}

.prose-section {
    margin-bottom: 38px;
}

.prose-section h2 {
    margin-bottom: 14px;
    color: var(--navy);
}

.prose-section p {
    color: var(--ink-soft);
    font-size: 1.03rem;
    line-height: 1.78;
}

.disclaimer-box {
    margin: 36px 0;
    padding: 26px 28px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-inline-start: 4px solid var(--sky);
    border-radius: 0 var(--radius) var(--radius) 0;
}

[dir="rtl"] .disclaimer-box {
    border-radius: var(--radius) 0 0 var(--radius);
}

.disclaimer-box h2 {
    margin-bottom: 16px;
    color: var(--navy);
    font-size: 1.35rem;
}

.disclaimer-box p {
    padding-top: 13px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.6;
}

.disclaimer-box p:first-of-type {
    border-top: 0;
    padding-top: 0;
}

.disclaimer-box strong {
    color: var(--blue);
    font-size: 0.68rem;
    letter-spacing: 0.1em;
}

.prose-note {
    padding: 18px 22px;
    background: var(--surface-soft);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--muted);
    font-size: 0.9rem;
}

.contact-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
    gap: clamp(2rem, 5vw, 4rem);
    align-items: start;
}

.contact-card {
    padding: clamp(26px, 4vw, 40px);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.contact-email {
    display: inline-block;
    margin-bottom: 18px;
    color: var(--navy);
    font-size: clamp(1.1rem, 2.5vw, 1.55rem);
    font-weight: 700;
    text-decoration: none;
    overflow-wrap: anywhere;
    unicode-bidi: isolate;
}

.contact-email:hover {
    color: var(--blue);
    text-decoration: underline;
}

.contact-card > p {
    color: var(--muted);
    font-size: 0.95rem;
}

.contact-aside {
    padding: 26px;
    background: var(--navy);
    border-radius: var(--radius);
    color: var(--white);
}

.contact-aside .eyebrow {
    color: #a9d6f3;
}

.contact-aside p {
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.9rem;
    line-height: 1.65;
}

.contact-aside .text-link {
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.35);
}

.credit-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.credit-card {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    padding: 16px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.credit-card img {
    width: 110px;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 8px;
}

.credit-card h2 {
    margin-bottom: 4px;
    color: var(--navy);
    font-size: 0.98rem;
}

.credit-card p {
    margin-bottom: 4px;
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.45;
}

.credit-card .text-link {
    font-size: 0.7rem;
}

.not-found {
    padding: clamp(4rem, 10vw, 8rem) 0;
}

.not-found__code {
    margin: 0 0 -22px;
    color: var(--sky);
    font-size: clamp(6rem, 18vw, 12rem);
    font-weight: 700;
    line-height: 0.8;
    opacity: 0.16;
}

.not-found h1 {
    margin-bottom: 16px;
    color: var(--navy);
}

.not-found .lead {
    max-width: 620px;
}

.not-found__links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 26px;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
    padding-top: 64px;
    background: var(--navy-deep);
    color: rgba(255, 255, 255, 0.68);
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(0, 0.7fr) minmax(0, 0.7fr) minmax(0, 0.55fr);
    gap: 40px;
}

.brand--footer {
    color: var(--white);
    margin-bottom: 16px;
}

.brand--footer .brand-mark {
    color: var(--sky);
}

.brand--footer .brand-name span:last-child {
    color: rgba(255, 255, 255, 0.5);
}

.footer-tagline {
    max-width: 340px;
    margin-bottom: 14px;
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-disclaimer {
    max-width: 380px;
    margin: 0;
    padding-top: 13px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.56);
    font-size: 0.78rem;
    line-height: 1.55;
}

.footer-heading {
    margin: 0 0 12px;
    color: #a9d6f3;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.footer-col a {
    display: block;
    padding: 5px 0;
    color: rgba(255, 255, 255, 0.66);
    font-size: 0.84rem;
    text-decoration: none;
}

.footer-col a:hover {
    color: var(--white);
    text-decoration: underline;
}

.footer-col a.is-active {
    color: var(--white);
    font-weight: 650;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    margin-top: 42px;
    padding: 22px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.footer-bottom p {
    margin: 0;
    font-size: 0.72rem;
    line-height: 1.5;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1060px) {
    .primary-nav {
        display: none;
    }

    .mobile-menu {
        display: block;
    }

    .header-inner {
        gap: 12px;
    }

    .lang-switch {
        margin-inline-start: auto;
    }

    .mobile-menu__panel {
        inset-inline-end: 0;
    }
}

@media (max-width: 900px) {
    .intro-grid,
    .day-grid,
    .page-intro__grid,
    .content-layout,
    .contact-wrap {
        grid-template-columns: 1fr;
    }

    .content-main {
        max-width: none;
    }

    .sidebar {
        position: static;
    }

    .group-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .card-grid--related {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .credit-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    body {
        font-size: 16px;
    }

    .wrap {
        width: calc(100% - 36px);
    }

    .home-hero {
        min-height: 0;
        padding-top: 110px;
    }

    .home-hero__content {
        padding-bottom: 42px;
    }

    .home-hero h1 {
        font-size: clamp(2.2rem, 9.5vw, 3.2rem);
    }

    .section-head--row {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

    .group-grid,
    .card-grid,
    .card-grid--related,
    .item-grid {
        grid-template-columns: 1fr;
    }

    .page-intro {
        padding-top: 2rem;
    }

    .page-intro__figure img {
        aspect-ratio: 16 / 10;
    }

    .page-intro__copy h1 {
        font-size: clamp(2rem, 8.5vw, 2.8rem);
    }

    .breadcrumb {
        margin-bottom: 22px;
    }

    .day-timeline li {
        grid-template-columns: 58px minmax(0, 1fr);
        gap: 14px;
    }

    .note-banner {
        flex-direction: column;
        align-items: flex-start;
        gap: 22px;
    }

    .note-banner .button {
        width: 100%;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 26px;
    }

    .footer-brand {
        grid-column: auto;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 6px;
    }

    .credit-card {
        grid-template-columns: 90px minmax(0, 1fr);
    }

    .credit-card img {
        width: 90px;
    }
}

@media (max-width: 480px) {
    .brand-name {
        font-size: 1.02rem;
    }

    .brand-mark {
        width: 25px;
        height: 25px;
    }

    .lang-switch a {
        min-width: 30px;
        padding: 0 5px;
    }

    .hero-actions,
    .not-found__links {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-actions .button,
    .not-found__links .button {
        width: 100%;
    }

    .trust-list {
        flex-direction: column;
        gap: 8px;
    }

    .page-intro__copy h1 {
        font-size: clamp(1.9rem, 8.5vw, 2.5rem);
    }

    .simple-head h1 {
        font-size: clamp(2rem, 8.5vw, 2.8rem);
    }

    .content-section p {
        font-size: 0.98rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}

@media print {
    .site-header,
    .site-footer,
    .mobile-menu,
    .hero-actions,
    .note-banner,
    .skip-link {
        display: none !important;
    }

    body {
        background: #fff;
        color: #000;
        font-size: 12pt;
    }

    .home-hero,
    .simple-head {
        min-height: 0;
        padding: 14px 0;
        background: #fff;
        color: #000;
    }

    .home-hero__media,
    .home-hero__overlay {
        display: none;
    }

    .home-hero h1,
    .home-hero .hero-lead,
    .simple-head h1,
    .simple-head .lead {
        color: #000;
    }

    a {
        color: #000;
        text-decoration: underline;
    }
}
