/* ==========================================================================
   HumanProse: the site header and the sitemap footer (round 6, home track)
   partials/site-header.blade.php, partials/site-footer.blade.php, js/hp-nav.js

   One floating bar on every page. On wide screens the five journeys open
   panels under it; below 1100 px the menu becomes a full-screen forest
   sheet. The footer is the whole map on the same forest. Colours come from
   the tokens of hp-design.css; logical properties mirror it for Arabic.
   ========================================================================== */

/* ---------- The bar ---------- */
body.hp-ui .hp-mast {
    position: sticky; top: 0; z-index: 60;
    padding: 12px 20px 0;
    pointer-events: none;
}
body.hp-ui .hp-mast-bar {
    pointer-events: auto;
    position: relative;
    display: flex; align-items: center; gap: 6px;
    width: min(1200px, 100%); height: 64px; margin-inline: auto;
    padding-inline: 18px 8px;
    background: var(--hx-glass);
    -webkit-backdrop-filter: blur(18px) saturate(1.4);
    backdrop-filter: blur(18px) saturate(1.4);
    border: 1px solid var(--hx-line);
    border-radius: 999px;
    box-shadow: var(--hx-shadow);
    color: var(--hx-ink);
    font-family: var(--hx-f-body);
}
body.hp-ui .hp-mast :where(ul, ol) { list-style: none; margin: 0; padding: 0; }
body.hp-ui .hp-mast :where(button, a) { font: inherit; -webkit-tap-highlight-color: transparent; }
body.hp-ui .hp-mast :is(.hp-nav, .hp-mast-quick, .hp-mast-menu, .hp-mast-burger) svg { display: inline-block; flex: none; }
body.hp-ui .hp-mast-brand { display: flex; align-items: center; flex: none; min-width: 0; margin-inline-end: 8px; border-radius: 10px; }
body.hp-ui .hp-mast-brand .hp-logo { height: 34px; width: auto; }
html[data-hp-theme="dark"] body.hp-ui .hp-mast-brand .hp-logo { content: var(--hx-logo-light); }
/* The logo morphs between pages like before (hp-cinema.css), except while the theme spreads. */
@media (prefers-reduced-motion: no-preference) {
    body.hp-ui .hp-mast-brand .hp-logo { view-transition-name: hp-logo; }
}
html.hp-theme-spread:root body.hp-ui .hp-mast-brand .hp-logo { view-transition-name: none; }

/* Signed in: Dashboard and Documents stay one click away, as before. */
body.hp-ui .hp-mast-quick { display: flex; align-items: center; gap: 2px; padding-inline-end: 6px; margin-inline-end: 4px; border-inline-end: 1px solid var(--hx-line); }
body.hp-ui .hp-mast-pill {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 9px 12px; border-radius: 999px;
    color: var(--hx-ink-2); font-size: .88rem; font-weight: 600; line-height: 1; text-decoration: none; white-space: nowrap;
    transition: background-color .18s ease, color .18s ease;
}
body.hp-ui .hp-mast-pill svg { width: 17px; height: 17px; }
body.hp-ui .hp-mast-pill:hover { color: var(--hx-ink); background: var(--hx-surface-2); }
body.hp-ui .hp-mast-pill[aria-current] { color: var(--hx-royal-ink); background: var(--hx-royal-soft); }

/* ---------- Journeys in the bar (wide screens) ---------- */
body.hp-ui .hp-nav { display: flex; align-items: center; flex: 1 1 auto; min-width: 0; }
body.hp-ui .hp-nav-groups { display: flex; align-items: center; gap: 2px; }
body.hp-ui .hp-nav-trigger {
    position: relative;
    display: inline-flex; align-items: center; gap: 6px;
    padding: 10px 13px; border: 0; border-radius: 999px;
    background: transparent; color: var(--hx-ink-2);
    font-size: .9rem; font-weight: 600; line-height: 1; text-decoration: none; white-space: nowrap;
    cursor: pointer;
    transition: background-color .18s ease, color .18s ease;
}
body.hp-ui .hp-nav-trigger:hover { color: var(--hx-ink); background: var(--hx-surface-2); }
body.hp-ui .hp-nav-trigger[aria-expanded="true"] { color: var(--hx-royal-ink); background: var(--hx-royal-soft); }
body.hp-ui .hp-nav-chev { width: 14px; height: 14px; opacity: .7; transition: transform .22s var(--hx-ease); }
body.hp-ui .hp-nav-trigger[aria-expanded="true"] .hp-nav-chev { transform: rotate(180deg); }
body.hp-ui .hp-nav-num,
body.hp-ui .hp-nav-tag,
body.hp-ui .hp-nav-sheet-head,
body.hp-ui .hp-nav-sheet-foot { display: none; }
/* The journey of the page you are on: a brass point under its name. */
body.hp-ui .hp-nav-group.is-here > .hp-nav-trigger::after {
    content: ""; position: absolute; inset-inline-start: 50%; bottom: 3px;
    width: 4px; height: 4px; margin-inline-start: -2px; border-radius: 50%;
    background: var(--hx-quill);
}

/* ---------- A journey's panel ---------- */
body.hp-ui .hp-nav-panel {
    position: absolute; top: calc(100% + 10px); inset-inline: 0;
    display: none; grid-template-columns: minmax(250px, 300px) minmax(0, 1fr);
    max-height: calc(100vh - 100px); max-height: calc(100dvh - 100px);
    overflow: auto; overscroll-behavior: contain;
    background: var(--hx-surface);
    border: 1px solid var(--hx-line);
    border-radius: 28px;
    box-shadow: var(--hx-shadow-lg);
    text-align: start;
}
/* A bridge over the gap, so the pointer can travel from the bar to the panel. */
body.hp-ui .hp-nav-panel::before { content: ""; position: absolute; inset-inline: 0; top: -12px; height: 12px; }
body.hp-ui .hp-nav-panel.is-open { display: grid; animation: hpNavIn .24s var(--hx-ease); }
@keyframes hpNavIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* The intro comes after the tools in the markup (keyboard and screen readers reach the tools
   first), and is drawn first: the forest column on the start side. */
body.hp-ui .hp-nav-intro {
    order: -1;
    position: relative; isolation: isolate; overflow: hidden;
    display: flex; flex-direction: column; gap: 10px;
    padding: 30px 28px 26px;
    background: linear-gradient(165deg, #155a45 0%, #0d3e31 55%, #062419 100%);
    color: var(--hx-on-stage);
    border-start-start-radius: 27px; border-end-start-radius: 27px;
}
body.hp-ui .hp-nav-intro::before {
    content: ""; position: absolute; inset-inline: 28px; top: 0; height: 2px;
    background: linear-gradient(90deg, transparent, var(--hx-cream), transparent); opacity: .7;
}
body.hp-ui .hp-nav-numeral {
    position: absolute; z-index: -1; inset-inline-end: 18px; bottom: -22px;
    font-family: var(--hx-f-display); font-size: 9.5rem; line-height: 1;
    color: rgba(217, 178, 119, .07); -webkit-text-stroke: 1px rgba(217, 178, 119, .4);
    pointer-events: none;
}
body.hp-ui .hp-nav-intro-title { margin: 0; font-family: var(--hx-f-display); font-size: 2.5rem; line-height: 1; letter-spacing: -.01em; color: #f6efe2; }
body.hp-ui .hp-nav-intro-tag { margin: 0; max-width: 26ch; color: var(--hx-on-stage-2); font-size: .95rem; line-height: 1.55; }
body.hp-ui .hp-nav-all {
    margin-top: auto; align-self: flex-start;
    display: inline-flex; align-items: center; gap: 8px;
    padding: 9px 14px 9px 0; border-radius: 999px;
    color: var(--hx-cream); font-size: .88rem; font-weight: 700; text-decoration: none;
    --hx-focus: var(--hx-focus-on-stage);
}
body.hp-ui .hp-nav-all svg { width: 16px; height: 16px; transition: transform .2s var(--hx-ease); }
body.hp-ui .hp-nav-all:hover svg { transform: translateX(3px); }
[dir="rtl"] body.hp-ui .hp-nav-all svg { transform: scaleX(-1); }
[dir="rtl"] body.hp-ui .hp-nav-all:hover svg { transform: scaleX(-1) translateX(3px); }

body.hp-ui .hp-nav-list {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: start; gap: 2px 6px;
    padding: 18px;
}
body.hp-ui .hp-nav-link {
    display: flex; align-items: flex-start; gap: 14px;
    padding: 12px 14px; border-radius: 16px;
    color: var(--hx-ink); text-decoration: none;
    transition: background-color .18s ease;
}
body.hp-ui .hp-nav-link:hover { background: var(--hx-surface-2); }
body.hp-ui .hp-nav-ico {
    flex: none; display: grid; place-items: center;
    width: 40px; height: 40px; border-radius: 12px;
    background: var(--hx-paper); border: 1px solid var(--hx-line);
    color: var(--hx-royal-ink);
    transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
body.hp-ui .hp-nav-ico svg { width: 20px; height: 20px; }
body.hp-ui .hp-nav-link:hover .hp-nav-ico { background: var(--hx-royal); border-color: var(--hx-royal); color: #f6efe2; --hp-icon-accent: var(--hx-cream); }
body.hp-ui .hp-nav-text { display: block; min-width: 0; }
body.hp-ui .hp-nav-title { display: block; font-size: .95rem; font-weight: 700; line-height: 1.3; color: var(--hx-ink); }
body.hp-ui .hp-nav-desc { display: block; margin-top: 3px; font-size: .84rem; line-height: 1.45; color: var(--hx-ink-2); }
body.hp-ui .hp-nav-link[aria-current] { background: var(--hx-royal-soft); }
body.hp-ui .hp-nav-link[aria-current] .hp-nav-title::after {
    content: ""; display: inline-block; width: 6px; height: 6px; margin-inline-start: 8px; vertical-align: middle;
    border-radius: 50%; background: var(--hx-quill);
}

/* Journey numerals: Roman in English, Arabic-Indic in Arabic (drawn by CSS, so no text to translate). */
body.hp-ui .hp-n[data-n="1"]::before { content: "I"; }
body.hp-ui .hp-n[data-n="2"]::before { content: "II"; }
body.hp-ui .hp-n[data-n="3"]::before { content: "III"; }
body.hp-ui .hp-n[data-n="4"]::before { content: "IV"; }
body.hp-ui .hp-n[data-n="5"]::before { content: "V"; }
html[lang="ar"] body.hp-ui .hp-n[data-n="1"]::before { content: "١"; }
html[lang="ar"] body.hp-ui .hp-n[data-n="2"]::before { content: "٢"; }
html[lang="ar"] body.hp-ui .hp-n[data-n="3"]::before { content: "٣"; }
html[lang="ar"] body.hp-ui .hp-n[data-n="4"]::before { content: "٤"; }
html[lang="ar"] body.hp-ui .hp-n[data-n="5"]::before { content: "٥"; }

/* ---------- The end of the bar ---------- */
body.hp-ui .hp-mast-end { display: flex; align-items: center; gap: 6px; flex: none; margin-inline-start: auto; }
body.hp-ui .hp-mast-login {
    padding: 10px 14px; border-radius: 999px;
    color: var(--hx-ink-2); font-size: .9rem; font-weight: 700; text-decoration: none; white-space: nowrap;
}
body.hp-ui .hp-mast-login:hover { color: var(--hx-ink); background: var(--hx-surface-2); }
body.hp-ui .hp-mast-start { padding: 11px 18px; font-size: .88rem; }
body.hp-ui .hp-mast-burger {
    display: none; align-items: center; gap: 8px;
    min-height: 44px; padding: 0 16px 0 14px; border-radius: 999px;
    background: var(--hx-surface-2); border: 1px solid var(--hx-line);
    color: var(--hx-ink); font-size: .88rem; font-weight: 700; text-decoration: none;
}
body.hp-ui .hp-mast-burger svg { width: 18px; height: 18px; }

/* Account menu */
body.hp-ui .hp-mast-account { position: relative; }
body.hp-ui .hp-mast-avatar {
    display: grid; place-items: center; width: 44px; height: 44px; padding: 0;
    border: 1px solid var(--hx-line); border-radius: 50%; cursor: pointer;
    background: linear-gradient(150deg, #1f6b52, #0b392f); color: #f6efe2;
    font-family: var(--hx-f-display); font-size: 1.25rem; line-height: 1;
    box-shadow: inset 0 0 0 2px rgba(246, 239, 226, .14);
}
body.hp-ui .hp-mast-avatar[aria-expanded="true"] { box-shadow: 0 0 0 3px var(--hx-quill-soft), inset 0 0 0 2px rgba(246, 239, 226, .14); }
body.hp-ui .hp-mast-menu {
    position: absolute; top: calc(100% + 14px); inset-inline-end: 0; z-index: 2;
    display: none; width: 290px; padding: 10px;
    background: var(--hx-surface); border: 1px solid var(--hx-line); border-radius: 22px;
    box-shadow: var(--hx-shadow-lg); text-align: start;
}
body.hp-ui .hp-mast-menu.is-open { display: block; animation: hpNavIn .2s var(--hx-ease); }
body.hp-ui .hp-mast-who { padding: 14px 14px 12px; margin-bottom: 6px; border-radius: 16px; background: var(--hx-royal-soft); }
body.hp-ui .hp-mast-who p { margin: 0; }
body.hp-ui .hp-mast-name { font-weight: 800; color: var(--hx-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.hp-ui .hp-mast-plan {
    display: inline-block; margin-top: 10px; padding: 4px 10px; border-radius: 999px;
    background: var(--hx-surface); color: var(--hx-quill-ink); font-size: .74rem; font-weight: 800; letter-spacing: .04em;
}
body.hp-ui .hp-mast-menu :is(a, button) {
    display: flex; align-items: center; gap: 12px; width: 100%;
    padding: 11px 14px; border: 0; border-radius: 12px;
    background: transparent; color: var(--hx-ink); font-size: .9rem; font-weight: 600; text-align: start; text-decoration: none; cursor: pointer;
}
body.hp-ui .hp-mast-menu :is(a, button) svg { width: 18px; height: 18px; color: var(--hx-ink-3); }
body.hp-ui .hp-mast-menu :is(a, button):hover { background: var(--hx-surface-2); }
body.hp-ui .hp-mast-menu a[aria-current] { color: var(--hx-royal-ink); background: var(--hx-royal-soft); }
body.hp-ui .hp-mast-out { margin: 6px 0 0; padding-top: 6px; border-top: 1px solid var(--hx-line); }
body.hp-ui .hp-mast-out button { color: var(--hx-danger); }
body.hp-ui .hp-mast-out button svg { color: currentColor; }

/* Without JavaScript a panel opens on hover and keyboard focus. */
@media (min-width: 1100px) {
    html:not(.hp-nav-js) body.hp-ui .hp-nav-group:is(:hover, :focus-within) > .hp-nav-panel { display: grid; }
}

/* Signed in, Billing replaces Pricing (it stays in the phone sheet). */
@media (min-width: 1100px) {
    body.hp-ui .hp-mast:has(.hp-mast-account) .hp-nav-group.is-plain { display: none; }
}
/* Signed in with less room: Dashboard and Documents as icons (their names stay for screen readers). */
@media (min-width: 1100px) and (max-width: 1379.98px) {
    body.hp-ui .hp-mast-pill { padding: 10px; }
    body.hp-ui .hp-mast-pill span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
/* A little less room: shorter pills. */
@media (min-width: 1100px) and (max-width: 1279.98px) {
    body.hp-ui .hp-nav-trigger { padding-inline: 10px; }
    body.hp-ui .hp-mast-start { display: none; }
}

/* ---------- The full-screen sheet (below 1100 px) ---------- */
@media (max-width: 1099.98px) {
    body.hp-ui .hp-mast-quick,
    body.hp-ui .hp-mast-start { display: none; }
    body.hp-ui .hp-mast-burger { display: inline-flex; }
    body.hp-ui .hp-nav { display: none; }
    html.hp-nav-locked, html.hp-nav-locked body { overflow: hidden; }
    html.hp-nav-locked body.hp-ui .hp-mast { z-index: 130; }
    /* A blurred bar would become the sheet's containing block: drop the blur while it is open. */
    html.hp-nav-locked body.hp-ui .hp-mast-bar { -webkit-backdrop-filter: none; backdrop-filter: none; }

    body.hp-ui .hp-nav.is-open {
        position: fixed; inset: 0; z-index: 130;
        display: flex; flex-direction: column; align-items: stretch;
        overflow-y: auto; overscroll-behavior: contain;
        padding: max(14px, env(safe-area-inset-top)) 22px max(28px, env(safe-area-inset-bottom));
        background:
            radial-gradient(120% 60% at 100% 0%, rgba(217, 178, 119, .16), transparent 60%),
            linear-gradient(170deg, #155a45 0%, #0d3e31 42%, #04170f 100%);
        color: var(--hx-on-stage);
        --hx-focus: var(--hx-focus-on-stage);
        animation: hpSheetIn .26s var(--hx-ease);
    }
    @keyframes hpSheetIn { from { opacity: 0; } to { opacity: 1; } }
    body.hp-ui .hp-nav.is-open .hp-nav-sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 6px 18px; }
    body.hp-ui .hp-nav-sheet-logo { height: 30px; width: auto; }
    body.hp-ui .hp-nav-close {
        display: grid; place-items: center; width: 46px; height: 46px; padding: 0;
        border: 1px solid rgba(222, 192, 149, .3); border-radius: 50%;
        background: rgba(255, 255, 255, .06); color: #f6efe2; cursor: pointer;
    }
    body.hp-ui .hp-nav-close svg { width: 20px; height: 20px; }

    body.hp-ui .hp-nav.is-open .hp-nav-groups { display: block; border-top: 1px solid rgba(222, 192, 149, .18); }
    body.hp-ui .hp-nav.is-open .hp-nav-group { border-bottom: 1px solid rgba(222, 192, 149, .18); }
    body.hp-ui .hp-nav.is-open .hp-nav-trigger {
        display: grid; grid-template-columns: 46px minmax(0, 1fr) 24px; grid-template-areas: "num label chev" "num tag chev";
        align-items: center; column-gap: 6px; width: 100%;
        padding: 18px 2px; border-radius: 0;
        background: none; color: #f6efe2; text-align: start; white-space: normal;
    }
    body.hp-ui .hp-nav.is-open .hp-nav-trigger::after { display: none; }
    body.hp-ui .hp-nav.is-open .hp-nav-num { display: block; grid-area: num; align-self: start; padding-top: 4px; font-family: var(--hx-f-display); font-size: 1.5rem; line-height: 1; color: var(--hx-cream); }
    body.hp-ui .hp-nav.is-open .hp-nav-label { grid-area: label; font-family: var(--hx-f-display); font-size: 2.1rem; font-weight: 400; line-height: 1.05; }
    body.hp-ui .hp-nav.is-open .hp-nav-tag { display: block; grid-area: tag; margin-top: 6px; color: var(--hx-on-stage-2); font-size: .9rem; font-weight: 500; line-height: 1.45; }
    body.hp-ui .hp-nav.is-open .hp-nav-chev { grid-area: chev; width: 20px; height: 20px; color: var(--hx-cream); opacity: 1; }
    body.hp-ui .hp-nav.is-open .hp-nav-group.is-here .hp-nav-num { color: #f6efe2; }
    body.hp-ui .hp-nav.is-open .hp-nav-plain { grid-template-areas: "num label chev"; }
    body.hp-ui .hp-nav.is-open .hp-nav-plain .hp-nav-label { font-size: 1.5rem; }

    body.hp-ui .hp-nav.is-open .hp-nav-panel {
        position: static; display: none; max-height: none; overflow: visible;
        padding: 0 0 18px; margin-inline-start: 52px;
        background: none; border: 0; border-radius: 0; box-shadow: none; animation: none;
    }
    body.hp-ui .hp-nav.is-open .hp-nav-panel.is-open { display: block; }
    body.hp-ui .hp-nav.is-open .hp-nav-panel::before,
    body.hp-ui .hp-nav.is-open .hp-nav-intro { display: none; }
    body.hp-ui .hp-nav.is-open .hp-nav-list { grid-template-columns: 1fr; gap: 2px; padding: 0; }
    body.hp-ui .hp-nav.is-open .hp-nav-link { gap: 12px; padding: 10px 10px; margin-inline: -10px; color: #f6efe2; }
    body.hp-ui .hp-nav.is-open .hp-nav-link:hover,
    body.hp-ui .hp-nav.is-open .hp-nav-link[aria-current] { background: rgba(255, 255, 255, .06); }
    body.hp-ui .hp-nav.is-open .hp-nav-ico { width: 36px; height: 36px; border-radius: 11px; background: rgba(255, 255, 255, .05); border-color: rgba(222, 192, 149, .22); color: var(--hx-cream); --hp-icon-accent: var(--hx-cream); }
    body.hp-ui .hp-nav.is-open .hp-nav-link:hover .hp-nav-ico { background: rgba(217, 178, 119, .16); border-color: rgba(217, 178, 119, .5); color: #f6efe2; }
    body.hp-ui .hp-nav.is-open .hp-nav-title { color: #f6efe2; font-size: 1rem; }
    body.hp-ui .hp-nav.is-open .hp-nav-desc { color: var(--hx-on-stage-2); }

    body.hp-ui .hp-nav.is-open .hp-nav-sheet-foot { display: grid; gap: 16px; margin-top: 26px; }
    body.hp-ui .hp-nav-sheet-all {
        display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-radius: 18px;
        border: 1px solid rgba(222, 192, 149, .32); background: rgba(217, 178, 119, .1);
        color: #f6efe2; font-weight: 700; text-decoration: none;
    }
    body.hp-ui .hp-nav-sheet-all svg { width: 20px; height: 20px; color: var(--hx-cream); }
    body.hp-ui .hp-nav-sheet-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
    body.hp-ui .hp-nav-sheet-cta .hp-btn { width: 100%; white-space: normal; text-align: center; }
    body.hp-ui .hp-nav-sheet-account { display: flex; flex-wrap: wrap; gap: 8px; }
    body.hp-ui .hp-nav-sheet-account form { margin: 0; }
    body.hp-ui .hp-nav-sheet-account :is(a, button) {
        display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px;
        border: 1px solid rgba(222, 192, 149, .26); background: rgba(255, 255, 255, .05);
        color: #f6efe2; font-size: .9rem; font-weight: 600; text-decoration: none; cursor: pointer;
    }
    body.hp-ui .hp-nav-sheet-account button { color: #f3b4a8; }
}
@media (min-width: 640px) and (max-width: 1099.98px) {
    body.hp-ui .hp-nav.is-open { padding-inline: max(40px, calc((100% - 760px) / 2)); }
    body.hp-ui .hp-nav.is-open .hp-nav-list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 18px; }
}
@media (max-width: 640px) {
    body.hp-ui .hp-mast { padding: 10px 12px 0; }
    body.hp-ui .hp-mast-bar { height: 58px; padding-inline: 14px 6px; gap: 4px; }
    body.hp-ui .hp-mast-brand { margin-inline-end: 0; }
    body.hp-ui .hp-mast-brand .hp-logo { height: 28px; }
    body.hp-ui .hp-mast-end { gap: 4px; }
    body.hp-ui .hp-mast-login,
    body.hp-ui .hp-mast-account { display: none; }
    body.hp-ui .hp-mast-burger { width: 44px; padding: 0; justify-content: center; }
    body.hp-ui .hp-mast-burger span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
/* Small phones: the search button (command palette) steps aside, as it did before. */
@media (max-width: 400px) {
    body.hp-ui .hp-mast .hp-switch-search { display: none; }
}
@media (max-width: 380px) {
    body.hp-ui .hp-mast-brand .hp-logo { height: 24px; }
    body.hp-ui .hp-nav.is-open .hp-nav-label { font-size: 1.85rem; }
}

/* ==========================================================================
   The sitemap footer
   ========================================================================== */
body.hp-ui .hp-foot {
    position: relative; isolation: isolate; overflow: hidden;
    margin-top: 110px;
    background:
        radial-gradient(80% 60% at 0% 0%, rgba(217, 178, 119, .12), transparent 60%),
        linear-gradient(175deg, #0f4536 0%, #082d22 46%, #04170f 100%);
    color: var(--hx-on-stage);
    font-family: var(--hx-f-body);
    --hx-focus: var(--hx-focus-on-stage);
}
body.hp-ui .hp-foot::before {
    content: ""; position: absolute; inset-inline: 0; top: 0; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(240, 214, 170, .75), transparent);
}
body.hp-ui .hp-foot :is(ul, ol) { list-style: none; margin: 0; padding: 0; }
body.hp-ui .hp-foot-inner { width: min(1200px, 100%); margin-inline: auto; padding: 72px 20px 32px; }
body.hp-ui .hp-foot-top { display: grid; grid-template-columns: minmax(0, 330px) minmax(0, 1fr); gap: 56px; }
body.hp-ui .hp-foot-logo { display: block; height: 34px; width: auto; }
body.hp-ui .hp-foot-motto { margin: 26px 0 0; font-family: var(--hx-f-display); font-size: 1.9rem; line-height: 1.12; color: #f6efe2; text-wrap: balance; }
body.hp-ui .hp-foot-motto em { color: var(--hx-cream); }
body.hp-ui .hp-foot-about { margin: 14px 0 0; color: var(--hx-on-stage-2); font-size: .93rem; line-height: 1.65; }
body.hp-ui .hp-foot-cta { margin-top: 24px; padding: 13px 20px; font-size: .9rem; }
body.hp-ui .hp-foot-cta svg { width: 16px; height: 16px; }
[dir="rtl"] body.hp-ui .hp-foot-cta svg { transform: scaleX(-1); }

body.hp-ui .hp-foot-map { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 28px; }
body.hp-ui .hp-foot-h {
    display: flex; align-items: baseline; gap: 10px; margin: 0 0 16px;
    font-family: var(--hx-f-body); font-size: .74rem; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: var(--hx-cream);
}
html[lang="ar"] body.hp-ui .hp-foot-h { letter-spacing: 0; font-size: .9rem; }
body.hp-ui .hp-foot-n { font-family: var(--hx-f-display); font-size: 1rem; font-weight: 400; letter-spacing: 0; color: rgba(217, 178, 119, .7); }
body.hp-ui .hp-foot-col li + li { margin-top: 2px; }
body.hp-ui .hp-foot-col a {
    display: inline-block; padding: 5px 0;
    color: rgba(244, 236, 221, .82); font-size: .92rem; font-weight: 500; line-height: 1.35; text-decoration: none;
    transition: color .18s ease;
}
body.hp-ui .hp-foot-col a:hover { color: #fff; text-decoration: underline; text-decoration-color: rgba(217, 178, 119, .7); text-underline-offset: 4px; }

body.hp-ui .hp-foot-packs {
    display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px;
    margin-top: 56px; padding: 18px 0; border-block: 1px solid rgba(222, 192, 149, .16);
    font-size: .86rem;
}
body.hp-ui .hp-foot-packs span { margin-inline-end: 6px; color: var(--hx-cream); font-size: .72rem; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; }
html[lang="ar"] body.hp-ui .hp-foot-packs span { letter-spacing: 0; font-size: .86rem; }
body.hp-ui .hp-foot-packs a { color: rgba(244, 236, 221, .78); text-decoration: none; font-weight: 600; }
body.hp-ui .hp-foot-packs a:hover { color: #fff; }

body.hp-ui .hp-foot-base { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; padding-top: 22px; }
body.hp-ui .hp-foot-copy { margin: 0; color: rgba(244, 236, 221, .6); font-size: .84rem; }
body.hp-ui .hp-foot .hp-foot-tools.hpg-footer-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .86rem; font-weight: 600; }
body.hp-ui .hp-foot .hp-foot-tools.hpg-footer-links > :is(a, button) {
    display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px;
    border: 1px solid rgba(222, 192, 149, .22); border-radius: 999px; background: rgba(255, 255, 255, .04);
    color: rgba(244, 236, 221, .86); font: inherit; text-decoration: none; cursor: pointer;
}
body.hp-ui .hp-foot .hp-foot-tools.hpg-footer-links > :is(a, button):hover { color: #fff; border-color: rgba(217, 178, 119, .55); }
body.hp-ui .hp-foot .hp-foot-tools.hpg-footer-links > [hidden] { display: none; }
body.hp-ui .hp-foot .hp-foot-tools svg { width: 16px; height: 16px; }
body.hp-ui .hp-foot .hp-foot-lang { color: #f6efe2; border-color: rgba(217, 178, 119, .5); }
body.hp-ui .hp-foot .hp-foot-lang [lang="ar"] { font-family: "HP Arabic", var(--hx-f-body); }

@media (max-width: 1099.98px) {
    body.hp-ui .hp-foot-top { grid-template-columns: 1fr; gap: 48px; }
    body.hp-ui .hp-foot-brand { max-width: 560px; }
}
@media (max-width: 760px) {
    body.hp-ui .hp-foot { margin-top: 80px; }
    body.hp-ui .hp-foot-inner { padding: 56px 16px 28px; }
    body.hp-ui .hp-foot-map { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 18px; }
    body.hp-ui .hp-foot-motto { font-size: 1.65rem; }
    body.hp-ui .hp-foot-base { flex-direction: column; align-items: flex-start; }
}

/* Under reduced motion nothing slides or fades. */
@media (prefers-reduced-motion: reduce) {
    body.hp-ui :is(.hp-nav-panel.is-open, .hp-mast-menu.is-open, .hp-nav.is-open) { animation: none; }
    body.hp-ui :is(.hp-nav-chev, .hp-nav-all svg) { transition: none; }
}
@media print {
    body.hp-ui .hp-mast, body.hp-ui .hp-foot { display: none; }
}
