/*********************************************************************************
	XENVORA — platform components
	Everything added on top of the inherited layout: the wordmark, language
	switch, account chrome, article furniture, forms, promos and empty states.
	New components use CSS logical properties so they mirror in RTL for free.
	Design: AB DESIGNS — https://abdesigns.site
**********************************************************************************/

/* ------------------------------------------------------------------ helpers */
.sr-only,
.screen-reader-text {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.xv-skip-link {
    position: absolute;
    inset-inline-start: -9999px;
    top: 0;
    z-index: 1200;
    padding: 12px 22px;
    background: var(--color-tertiary);
    color: #fff;
    font-weight: var(--p-bold);
    border-end-end-radius: var(--radius);
}

.xv-skip-link:focus {
    inset-inline-start: 0;
    color: #fff;
}

/* Logical spacing/alignment utilities — safe in both directions. */
.xv-me-20 { margin-inline-end: 20px; }
.xv-ms-20 { margin-inline-start: 20px; }
.xv-text-start { text-align: start; }
.xv-text-end { text-align: end; }

@media (min-width: 576px) {
    .xv-text-sm-end { text-align: end; }
}

@media (max-width: 575px) {
    .xv-text-sm-end { text-align: start; }
}

/* ----------------------------------------------------------------- wordmark */
.xv-wordmark {
    display: inline-flex;
    flex-direction: column;
    line-height: 1;
    text-decoration: none;
}

.xv-wordmark-text {
    font-family: var(--secondary-font);
    font-weight: var(--p-extra-bold);
    font-size: 34px;
    letter-spacing: 0.18em;
    color: var(--color-heading);
    background: linear-gradient(100deg, var(--color-heading) 0%, var(--color-heading) 52%, var(--color-primary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: var(--transition);
}

html[lang="ar"] .xv-wordmark-text {
    /* Keep the Latin wordmark shape in Arabic — the brand name is not translated */
    font-family: "Sora", var(--secondary-font);
    letter-spacing: 0.16em;
}

.xv-wordmark-tagline {
    margin-top: 7px;
    font-family: var(--font-primary);
    font-size: 11px;
    font-weight: var(--p-semi-bold);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--color-gray);
}

html[lang="ar"] .xv-wordmark-tagline {
    letter-spacing: 0;
    text-transform: none;
    font-size: 12px;
}

.xv-wordmark:hover .xv-wordmark-text {
    background: linear-gradient(100deg, var(--color-primary) 0%, var(--color-primary-bright) 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

.xv-wordmark--compact .xv-wordmark-text { font-size: 24px; }

.xv-wordmark--footer { margin-bottom: 18px; }

@media (max-width: 767px) {
    .xv-wordmark-text { font-size: 27px; }
}

/* ------------------------------------------------------- top utility strip */
.xv-top-utility { gap: 18px; }

.xv-lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 3px;
    border: 1px solid var(--color-border);
    border-radius: 100px;
    background: var(--color-white);
}

.xv-lang-switch a {
    display: inline-block;
    padding: 3px 13px;
    font-size: 12px;
    font-weight: var(--p-semi-bold);
    line-height: 1.6;
    border-radius: 100px;
    color: var(--color-gray);
}

.xv-lang-switch a.is-active {
    background: var(--color-primary);
    color: #fff;
}

.xv-lang-switch a:not(.is-active):hover {
    background: var(--color-lightest);
    color: var(--color-primary);
}

.xv-mobile-lang {
    display: flex;
    gap: 10px;
    margin-top: 26px;
    padding-top: 22px;
    border-top: 1px solid var(--color-border);
}

.xv-mobile-lang a {
    flex: 1;
    padding: 9px 0;
    text-align: center;
    font-weight: var(--p-semi-bold);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-small);
}

.xv-mobile-lang a.is-active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
}

/* --------------------------------------------------------- account controls */
.xv-auth-link a {
    font-size: var(--font-size-b3);
    font-weight: var(--p-semi-bold);
    white-space: nowrap;
}

.metabar-block li.icon a { position: relative; }

.xv-badge {
    position: absolute;
    top: -6px;
    inset-inline-end: -8px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    font-size: 10px;
    font-weight: var(--p-bold);
    line-height: 18px;
    text-align: center;
    color: #fff;
    background: var(--color-secondary);
    border-radius: 100px;
}

.xv-avatar-initials {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    font-family: var(--secondary-font);
    font-weight: var(--p-bold);
    font-size: 15px;
    color: #fff;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-bright));
    border-radius: 50%;
}

/* ---------------------------------------------------------------- buttons */
/* The inherited forms reset sets `button { width: 100% }`, so every button here
   has to opt back out; only .xv-btn--block wants the full width. */
.xv-btn {
    display: inline-flex;
    width: auto;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 28px;
    font-family: var(--secondary-font);
    font-size: var(--font-size-b3);
    font-weight: var(--p-bold);
    letter-spacing: 0.02em;
    color: #fff;
    background: var(--color-primary);
    border: 2px solid var(--color-primary);
    border-radius: 100px;
    cursor: pointer;
    transition: var(--transition);
}

.xv-btn:hover,
.xv-btn:focus {
    color: #fff;
    background: var(--color-tertiary);
    border-color: var(--color-tertiary);
}

.xv-btn--sm { padding: 8px 20px; font-size: 13px; }
.xv-btn--block { width: 100%; }

.xv-btn--ghost {
    color: var(--color-primary);
    background: transparent;
}

.xv-btn--ghost:hover {
    color: #fff;
    background: var(--color-primary);
    border-color: var(--color-primary);
}

.xv-btn--accent {
    background: var(--color-secondary);
    border-color: var(--color-secondary);
}

.xv-btn--accent:hover {
    background: var(--color-secondary-alt);
    border-color: var(--color-secondary-alt);
}

.xv-more-row { text-align: center; }

/* --------------------------------------------------------- section headings */
.xv-section-head { margin-bottom: 30px; }

.xv-section-standfirst {
    margin-top: 10px;
    margin-bottom: 0;
    max-width: 62ch;
    font-size: var(--font-size-b2);
    color: var(--color-gray);
}

.section-title .title {
    position: relative;
    padding-inline-start: 18px;
}

.section-title .title::before {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    top: 0.12em;
    bottom: 0.12em;
    width: 5px;
    border-radius: 100px;
    background: linear-gradient(180deg, var(--color-primary-bright), var(--color-primary));
}

.bg-color-black .xv-section-standfirst,
.xv-section-head--light .xv-section-standfirst { color: rgba(255, 255, 255, 0.66); }

/* ------------------------------------------------------------------- flags */
.xv-flag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-inline-start: 10px;
    padding: 3px 11px;
    font-family: var(--secondary-font);
    font-size: 11px;
    font-weight: var(--p-bold);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 100px;
}

html[lang="ar"] .xv-flag { letter-spacing: 0; text-transform: none; font-size: 12px; }

.xv-flag--lead { color: #fff; background: var(--color-secondary); }
.xv-flag--review { color: var(--color-primary); background: rgba(var(--color-primary-rgb), 0.14); }
.xv-flag--video { color: #fff; background: rgba(11, 21, 36, 0.72); }

/* -------------------------------------------------------------- card extras */
.xv-standfirst {
    margin-top: 12px;
    margin-bottom: 18px;
    font-size: var(--font-size-b2);
    line-height: 1.6;
    color: var(--color-gray);
}

.xv-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    margin-top: 12px;
    margin-bottom: 0;
    font-size: var(--font-size-b4);
    color: var(--color-midgray);
}

.xv-card-meta li::after { display: none; }

.xv-card-meta li + li {
    position: relative;
    padding-inline-start: 16px;
}

.xv-card-meta li + li::before {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    top: 50%;
    width: 4px;
    height: 4px;
    margin-top: -2px;
    background: currentColor;
    border-radius: 50%;
    opacity: 0.55;
}

/* The inherited sheet colours the <li> directly, so the override has to as
   well — inherited colour on the <ul> would never win. */
.post-grid-content .xv-card-meta,
.post-grid-content .xv-card-meta li,
.bg-color-black .xv-card-meta li { color: rgba(255, 255, 255, 0.82); }

.post-grid-content .xv-card-meta { margin-top: 14px; }

.xv-card-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
}

/* -------------------------------------------------------------- save button */
.xv-save-form { display: inline-flex; margin: 0; }

.xv-save-btn {
    display: inline-flex;
    width: auto;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    font-size: 14px;
    font-weight: var(--p-semi-bold);
    color: var(--color-gray);
    background: transparent;
    border: 1px solid var(--color-border);
    border-radius: 100px;
    cursor: pointer;
    transition: var(--transition);
}

.xv-save-btn:hover {
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.xv-save-btn.is-saved {
    color: var(--color-primary);
    background: rgba(var(--color-primary-rgb), 0.11);
    border-color: var(--color-primary);
}

.xv-save-btn--wide { padding: 11px 22px; }

/* --------------------------------------- overlay legibility on photography */
/* Generated artwork was dark by construction; real photographs are not, so any
   card that lays white text over its image needs a scrim underneath. */
.content-block.post-grid .post-thumbnail::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(to top,
        rgba(8, 15, 26, 0.92) 0%,
        rgba(8, 15, 26, 0.74) 26%,
        rgba(8, 15, 26, 0.28) 56%,
        rgba(8, 15, 26, 0.04) 100%);
}

.content-block.post-grid .post-thumbnail {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
}

/* Video cards put a play button over the artwork; a light wash keeps the white
   circle and the caption separated from a bright frame. */
.xv-card--video .post-thumbnail::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(to top, rgba(8, 15, 26, 0.5) 0%, rgba(8, 15, 26, 0.12) 60%, rgba(8, 15, 26, 0.2) 100%);
}

.xv-card--video .post-thumbnail { position: relative; }
.xv-card--video .video-popup { z-index: 3; }

/* The review score badge sits on photographs too. */
.review-count { z-index: 3; }

/* ------------------------------------------------- external photography fit */
/* Editorial photographs arrive pre-cropped, but the generated SVG fallbacks
   have their own ratios — object-fit keeps either filling the slot cleanly. */
.content-block .post-thumbnail img,
.xv-topic-card img,
.instagram-post-list img,
.xv-single-widget.widget_instagram .instagram-post-list-wrapper img,
.xv-single-widget.widget_categories ul li.cat-item .thumbnail img,
.list-categories .single-cat .thumbnail img,
.xv-article-figure img,
.featured-post .post-thumbnail img {
    object-fit: cover;
}

.xv-photo-credit {
    display: block;
    margin-top: 8px;
    font-size: var(--font-size-b4);
    color: var(--color-midgray);
}

.xv-photo-credit a { color: var(--color-gray); text-decoration: underline; }
.xv-photo-credit a:hover { color: var(--color-primary); }

/* --------------------------------------------------------- advertising slots */
.xv-ad { position: relative; }

.xv-ad-flag {
    display: block;
    margin-bottom: 6px;
    font-size: 10px;
    font-weight: var(--p-semi-bold);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-midgray);
}

html[lang="ar"] .xv-ad-flag { letter-spacing: 0; text-transform: none; font-size: 12px; }

.xv-ad-unit {
    position: relative;
    display: flex;
    align-items: center;
    gap: 22px;
    overflow: hidden;
    padding: 18px 24px;
    background: var(--color-tertiary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    text-decoration: none;
    transition: var(--transition);
}

.xv-ad-unit:hover { box-shadow: var(--shadow-primary); }

/* The photograph is the creative's backdrop; a scrim keeps the copy legible
   over whatever the product shot happens to look like. */
.xv-ad-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.42;
}

.xv-ad-unit::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to var(--xv-ad-fade, right),
        rgba(11, 21, 36, 0.94) 0%, rgba(11, 21, 36, 0.72) 52%, rgba(11, 21, 36, 0.34) 100%);
}

html[dir="rtl"] .xv-ad-unit { --xv-ad-fade: left; }

.xv-ad-copy,
.xv-ad-cta {
    position: relative;
    z-index: 2;
}

.xv-ad-copy {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.xv-ad-kicker {
    font-size: 10px;
    font-weight: var(--p-bold);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--color-primary-bright);
}

html[lang="ar"] .xv-ad-kicker { letter-spacing: 0; text-transform: none; font-size: 12px; }

.xv-ad-head {
    font-family: var(--secondary-font);
    font-size: 19px;
    font-weight: var(--p-bold);
    line-height: 1.3;
    color: #fff;
}

.xv-ad-brand {
    margin-top: 2px;
    font-family: var(--secondary-font);
    font-size: 11px;
    font-weight: var(--p-extra-bold);
    letter-spacing: 0.2em;
    color: rgba(255, 255, 255, 0.62);
}

html[lang="ar"] .xv-ad-brand { letter-spacing: 0.04em; font-size: 13px; }

.xv-ad-cta {
    flex-shrink: 0;
    margin-inline-start: auto;
    padding: 11px 22px;
    font-family: var(--secondary-font);
    font-size: var(--font-size-b3);
    font-weight: var(--p-bold);
    white-space: nowrap;
    color: var(--color-tertiary);
    background: var(--color-primary-bright);
    border-radius: 100px;
    transition: var(--transition);
}

.xv-ad-unit:hover .xv-ad-cta { background: #fff; }

/* Leaderboard is a short strip, so the copy is tightened. */
.xv-ad--leaderboard .xv-ad-unit { min-height: 92px; padding: 14px 20px; }
.xv-ad--leaderboard .xv-ad-head { font-size: 16px; }
.xv-ad--leaderboard { text-align: start; }

/* The in-article panel is the tallest unit and can breathe. */
.xv-ad--inline .xv-ad-unit { min-height: 168px; padding: 26px 32px; }
.xv-ad--inline .xv-ad-head { font-size: 24px; max-width: 26ch; }

.xv-ad--wide .xv-ad-unit { min-height: 116px; }
.xv-ad--wide .xv-ad-head { font-size: 21px; }

@media (max-width: 991px) {
    .xv-ad--leaderboard { display: none; }
}

@media (max-width: 575px) {
    .xv-ad-unit { flex-direction: column; align-items: flex-start; gap: 16px; }
    .xv-ad-cta { margin-inline-start: 0; }
    .xv-ad--inline .xv-ad-head,
    .xv-ad--wide .xv-ad-head { font-size: 19px; }
}

body.active-dark-mode .xv-ad-unit { border-color: #22364A; }

/* Media-kit samples: the leaderboard is normally hidden below 992px, but on the
   advertise page it is the product being described, so it always shows. */
.xv-format-sample .xv-ad--leaderboard { display: block; }

.xv-format-label {
    display: block;
    margin-bottom: 10px;
    font-family: var(--secondary-font);
    font-size: var(--font-size-b3);
    font-weight: var(--p-bold);
    color: var(--color-heading);
}

/* ------------------------------------------------------------------ promos */
.xv-promo { position: relative; }

.xv-promo img {
    border-radius: var(--radius);
    max-width: 100%;
    height: auto;
}

.xv-promo-flag {
    display: block;
    margin-bottom: 6px;
    font-size: 10px;
    font-weight: var(--p-semi-bold);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-midgray);
}

html[lang="ar"] .xv-promo-flag { letter-spacing: 0; text-transform: none; font-size: 12px; }

.xv-promo--leaderboard { text-align: end; }
.xv-promo--leaderboard img { max-height: 92px; width: auto; }

@media (max-width: 991px) {
    .xv-promo--leaderboard { display: none; }
}

/* --------------------------------------------------------------- pagination */
.xv-pagination { margin-top: 48px; }

.xv-pagination ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    list-style: none;
}

.xv-pagination a,
.xv-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 14px;
    font-family: var(--secondary-font);
    font-size: var(--font-size-b3);
    font-weight: var(--p-semi-bold);
    color: var(--color-heading);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-small);
    transition: var(--transition);
}

.xv-pagination a:hover {
    color: #fff;
    background: var(--color-primary);
    border-color: var(--color-primary);
}

.xv-pagination .is-active span {
    color: #fff;
    background: var(--color-tertiary);
    border-color: var(--color-tertiary);
}

.xv-pagination .is-disabled span { opacity: 0.4; }
.xv-pagination .is-gap span { border-color: transparent; min-width: 24px; }

/* ------------------------------------------------------------------ flashes */
.xv-flash-wrap { padding-top: 24px; }

.xv-flash {
    padding: 15px 22px;
    margin-bottom: 12px;
    font-size: var(--font-size-b2);
    font-weight: var(--p-medium);
    border-inline-start: 4px solid var(--color-primary);
    border-radius: var(--radius-small);
    background: rgba(var(--color-primary-rgb), 0.09);
    color: var(--color-heading);
}

.xv-flash--error {
    border-inline-start-color: var(--color-danger);
    background: rgba(211, 56, 47, 0.09);
}

.xv-flash--info {
    border-inline-start-color: var(--color-info);
    background: rgba(30, 127, 168, 0.09);
}

/* -------------------------------------------------------------------- forms */
.xv-form-field { margin-bottom: 22px; }

.xv-form-field label {
    display: block;
    margin-bottom: 9px;
    font-family: var(--secondary-font);
    font-size: var(--font-size-b3);
    font-weight: var(--p-semi-bold);
    color: var(--color-heading);
}

.xv-form-field input,
.xv-form-field select,
.xv-form-field textarea {
    width: 100%;
    /* The inherited reset pins bare `input` and `select` to height: 40px, which
       clips the taller padding used here. */
    height: auto;
    padding: 14px 18px;
    font-family: var(--font-primary);
    font-size: var(--font-size-b2);
    line-height: 1.5;
    color: var(--color-heading);
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-small);
    transition: var(--transition);
}

/* Self-contained chevron so the control never depends on a bitmap asset, and
   it sits on the correct side in both reading directions. */
.xv-form-field select {
    padding-inline-end: 44px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%235A6B7C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18px center;
    background-size: 14px 9px;
}

html[dir="rtl"] .xv-form-field select {
    background-position: left 18px center;
    padding-right: 18px;
}

.xv-newsletter-form input[type="email"] { height: auto; line-height: 1.5; }

.xv-form-field textarea { min-height: 170px; resize: vertical; }

.xv-form-field input:focus,
.xv-form-field select:focus,
.xv-form-field textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(var(--color-primary-rgb), 0.2);
}

.xv-form-field.has-error input,
.xv-form-field.has-error textarea { border-color: var(--color-danger); }

.xv-field-error {
    display: block;
    margin-top: 7px;
    font-size: var(--font-size-b3);
    color: var(--color-danger);
}

.xv-form-note {
    margin-top: 10px;
    margin-bottom: 0;
    font-size: var(--font-size-b3);
    color: var(--color-midgray);
}

.xv-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: var(--font-size-b3);
    color: var(--color-gray);
}

.xv-checkbox input { width: auto; }

.xv-form-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 24px;
}

/* --------------------------------------------------------------- auth layout */
.xv-auth-section { padding: 90px 0 110px; }

.xv-auth-card {
    max-width: 520px;
    margin: 0 auto;
    padding: 46px 44px;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-big);
    box-shadow: var(--shadow-primary);
}

.xv-auth-card .title { margin-bottom: 10px; }

.xv-auth-intro {
    margin-bottom: 32px;
    color: var(--color-gray);
}

.xv-auth-alt {
    margin-top: 26px;
    padding-top: 24px;
    margin-bottom: 0;
    text-align: center;
    font-size: var(--font-size-b3);
    color: var(--color-gray);
    border-top: 1px solid var(--color-border);
}

.xv-auth-alt a { font-weight: var(--p-bold); color: var(--color-primary); }

.xv-demo-hint {
    margin-top: 18px;
    padding: 12px 16px;
    font-size: var(--font-size-b4);
    color: var(--color-gray);
    background: var(--color-lightest);
    border-radius: var(--radius-small);
    text-align: center;
    direction: ltr;
}

@media (max-width: 575px) {
    .xv-auth-card { padding: 32px 24px; }
}

/* ----------------------------------------------------------- page furniture */
.xv-page-head {
    padding: 66px 0 56px;
    background: var(--color-lightest);
    border-bottom: 1px solid var(--color-border);
}

.xv-page-head .title { margin-bottom: 14px; }

.xv-page-head .xv-page-intro {
    max-width: 68ch;
    margin-bottom: 0;
    font-size: var(--font-size-b1);
    color: var(--color-gray);
}

/* Each beat carries its own accent, set inline as --stream-accent from the
   database. Used only for decoration — the bar and a hairline — so it never has
   to meet a text contrast ratio. */
.xv-page-head--stream .section-title .title::before {
    background: linear-gradient(180deg, var(--stream-accent, var(--color-primary-bright)), var(--color-primary));
}

.xv-page-head--stream {
    border-bottom-color: transparent;
    box-shadow: inset 0 -3px 0 0 var(--stream-accent, var(--color-primary));
}

.xv-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    padding: 0;
    margin: 0 0 18px;
    list-style: none;
    font-size: var(--font-size-b4);
    color: var(--color-midgray);
}

/* Chevron points the way the reader travels; rtl.css flips it for Arabic. */
.xv-breadcrumb li + li::before {
    content: "\203A";
    margin-inline-end: 8px;
    opacity: 0.7;
}

.xv-prose { max-width: 72ch; }

.xv-prose h4 {
    margin-top: 40px;
    margin-bottom: 14px;
}

.xv-prose p { margin-bottom: 22px; }

.xv-empty {
    padding: 70px 30px;
    text-align: center;
    background: var(--color-lightest);
    border: 1px dashed var(--color-lighter);
    border-radius: var(--radius-big);
}

.xv-empty p { margin-bottom: 22px; color: var(--color-gray); }

/* ---------------------------------------------------------------- categories */
/* The stream carousel lays a label over generated artwork, so it needs a scrim
   heavy enough for the headline to stay readable on any of the eight palettes. */
.list-categories .single-cat .inner {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
}

.list-categories .single-cat .inner::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(11, 21, 36, 0.15) 0%, rgba(11, 21, 36, 0.5) 45%, rgba(11, 21, 36, 0.88) 100%);
    pointer-events: none;
}

.list-categories .single-cat .content {
    position: relative;
    z-index: 2;
}

.list-categories .single-cat .content .title {
    text-shadow: 0 1px 12px rgba(11, 21, 36, 0.6);
}

.xv-cat-count {
    display: block;
    margin-top: 5px;
    font-size: 11px;
    font-weight: var(--p-semi-bold);
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.82);
}

.xv-topic-card {
    display: block;
    height: 100%;
    overflow: hidden;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-big);
    transition: var(--transition);
}

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

.xv-topic-card img {
    width: 100%;
    height: 170px;
    object-fit: cover;
}

.xv-topic-card .inner { padding: 24px 26px 28px; }

.xv-topic-card .title { margin-bottom: 8px; }

.xv-topic-card p {
    margin-bottom: 14px;
    font-size: var(--font-size-b3);
    color: var(--color-gray);
}

.xv-topic-card .xv-topic-count {
    font-family: var(--secondary-font);
    font-size: var(--font-size-b4);
    font-weight: var(--p-bold);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-primary);
}

html[lang="ar"] .xv-topic-card .xv-topic-count { letter-spacing: 0; text-transform: none; }

/* ------------------------------------------------------------------ writers */
.xv-writer-card {
    height: 100%;
    padding: 30px 28px;
    text-align: center;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-big);
    transition: var(--transition);
}

.xv-writer-card:hover { box-shadow: var(--shadow-primary); }

.xv-writer-card img {
    width: 96px;
    height: 96px;
    margin: 0 auto 18px;
    border-radius: 50%;
}

.xv-writer-card .title { margin-bottom: 4px; }

.xv-writer-role {
    display: block;
    margin-bottom: 14px;
    font-size: var(--font-size-b4);
    font-weight: var(--p-semi-bold);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-primary);
}

html[lang="ar"] .xv-writer-role { letter-spacing: 0; text-transform: none; font-size: 13px; }

.xv-writer-card p {
    margin-bottom: 0;
    font-size: var(--font-size-b3);
    color: var(--color-gray);
}

.xv-author-hero {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 30px;
}

.xv-author-hero img {
    width: 128px;
    height: 128px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* ------------------------------------------------------------ article layout */
.xv-article-head { padding: 56px 0 0; }

.xv-article-title { margin-bottom: 20px; }

.xv-article-standfirst {
    max-width: 70ch;
    margin-bottom: 30px;
    font-size: 20px;
    line-height: 1.55;
    color: var(--color-gray);
}

.xv-byline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    padding: 22px 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.xv-byline img {
    width: 52px;
    height: 52px;
    border-radius: 50%;
}

.xv-byline-text { line-height: 1.4; }

.xv-byline-name {
    margin-bottom: 3px;
    font-family: var(--secondary-font);
    font-size: var(--font-size-b2);
    font-weight: var(--p-bold);
}

.xv-byline-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 5px 14px;
    padding: 0;
    margin: 0;
    list-style: none;
    font-size: var(--font-size-b3);
    color: var(--color-midgray);
}

.xv-byline-tools {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-inline-start: auto;
}

.xv-article-figure { margin: 34px 0; }

.xv-article-figure img {
    width: 100%;
    border-radius: var(--radius-big);
}

.xv-article-figure figcaption {
    margin-top: 12px;
    font-size: var(--font-size-b3);
    color: var(--color-midgray);
}

.xv-article-body {
    font-size: 18px;
    line-height: 1.78;
}

.xv-article-body p { margin-bottom: 26px; }

.xv-article-body h4 {
    margin-top: 42px;
    margin-bottom: 16px;
}

.xv-blockquote {
    position: relative;
    margin: 38px 0;
    padding: 28px 34px;
    background: var(--color-lightest);
    border-inline-start: 5px solid var(--color-primary);
    border-radius: var(--radius);
}

.xv-blockquote p {
    margin-bottom: 0;
    font-family: var(--secondary-font);
    font-size: 21px;
    font-weight: var(--p-medium);
    line-height: 1.5;
    color: var(--color-heading);
}

.xv-score-card {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 26px;
    margin: 38px 0;
    padding: 30px 34px;
    color: #fff;
    background: linear-gradient(120deg, var(--color-tertiary), #163040);
    border-radius: var(--radius-big);
}

.xv-score-value {
    font-family: var(--secondary-font);
    font-size: 54px;
    font-weight: var(--p-extra-bold);
    line-height: 1;
    color: var(--color-primary-bright);
}

.xv-score-label {
    font-size: var(--font-size-b4);
    font-weight: var(--p-semi-bold);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.72);
}

html[lang="ar"] .xv-score-label { letter-spacing: 0; text-transform: none; font-size: 13px; }

.xv-score-note {
    flex: 1 1 260px;
    margin-bottom: 0;
    font-size: var(--font-size-b3);
    color: rgba(255, 255, 255, 0.82);
}

.xv-article-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    padding: 26px 0;
    margin-top: 20px;
    border-top: 1px solid var(--color-border);
}

.xv-share-label {
    font-family: var(--secondary-font);
    font-size: var(--font-size-b3);
    font-weight: var(--p-bold);
    margin-inline-end: 4px;
}

.xv-author-box {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
    padding: 30px;
    margin-top: 34px;
    background: var(--color-lightest);
    border-radius: var(--radius-big);
}

.xv-author-box img {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    flex-shrink: 0;
}

.xv-author-box .content { flex: 1 1 260px; }

.xv-author-box .title { margin-bottom: 4px; }

.xv-author-box p {
    margin-bottom: 0;
    font-size: var(--font-size-b3);
    color: var(--color-gray);
}

/* ----------------------------------------------------------------- comments */
.xv-comments { margin-top: 54px; }

.xv-comment {
    display: flex;
    gap: 16px;
    padding: 22px 0;
    border-bottom: 1px solid var(--color-border);
}

.xv-comment:last-child { border-bottom: 0; }

.xv-comment-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    font-family: var(--secondary-font);
    font-weight: var(--p-bold);
    color: #fff;
    background: var(--color-primary);
    border-radius: 50%;
}

.xv-comment-name {
    margin-bottom: 4px;
    font-family: var(--secondary-font);
    font-size: var(--font-size-b2);
    font-weight: var(--p-bold);
}

.xv-comment-date {
    font-size: var(--font-size-b4);
    color: var(--color-midgray);
    margin-inline-start: 10px;
    font-weight: var(--p-regular);
}

.xv-comment-body { margin-bottom: 0; color: var(--color-body); }

/* ------------------------------------------------------------- contact cards */
.xv-contact-card {
    height: 100%;
    padding: 28px 30px;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-big);
}

.xv-contact-card h6 { margin-bottom: 8px; }

.xv-contact-card a { color: var(--color-primary); font-weight: var(--p-semi-bold); }

.xv-contact-card p { margin-bottom: 0; font-size: var(--font-size-b3); color: var(--color-gray); }

/* --------------------------------------------------------------- credits page */
.xv-credits-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
}

.xv-credits-table {
    width: 100%;
    min-width: 620px;
    border-collapse: collapse;
    font-size: var(--font-size-b3);
}

.xv-credits-table th,
.xv-credits-table td {
    padding: 12px 16px;
    text-align: start;
    vertical-align: top;
    border-bottom: 1px solid var(--color-border);
}

.xv-credits-table th {
    font-family: var(--secondary-font);
    font-size: var(--font-size-b4);
    font-weight: var(--p-bold);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-midgray);
    background: var(--color-lightest);
}

html[lang="ar"] .xv-credits-table th { letter-spacing: 0; text-transform: none; font-size: 13px; }

.xv-credits-table tbody tr:last-child td { border-bottom: 0; }
.xv-credits-table tbody tr:hover { background: var(--color-lightest); }
.xv-credits-table a { color: var(--color-primary); }

body.active-dark-mode .xv-credits-table-wrap { border-color: #22364A; }
body.active-dark-mode .xv-credits-table th { background: #16273A; }
body.active-dark-mode .xv-credits-table th,
body.active-dark-mode .xv-credits-table td { border-bottom-color: #22364A; }
body.active-dark-mode .xv-credits-table tbody tr:hover { background: #16273A; }

/* ------------------------------------------------------------------ metrics */
.xv-stat {
    padding: 30px;
    text-align: center;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-big);
}

.xv-stat-value {
    display: block;
    font-family: var(--secondary-font);
    font-size: 42px;
    font-weight: var(--p-extra-bold);
    line-height: 1.1;
    color: var(--color-primary);
}

.xv-stat-label {
    font-size: var(--font-size-b3);
    color: var(--color-gray);
}

/* ------------------------------------------------------- newsletter + footer */
.xv-newsletter-form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.xv-newsletter-form .xv-btn { flex: 0 0 auto; }

.xv-newsletter-form input[type="email"] {
    flex: 1 1 240px;
    width: auto;
    min-width: 0;
    padding: 14px 20px;
    font-family: var(--font-primary);
    font-size: var(--font-size-b2);
    border: 1px solid var(--color-border);
    border-radius: 100px;
    background: var(--color-white);
}

.xv-newsletter-form input[type="email"]:focus {
    outline: none;
    border-color: var(--color-primary);
}

.xv-newsletter-form--stacked { flex-direction: column; }
.xv-newsletter-form--stacked input[type="email"] { flex: 1 1 auto; width: 100%; }
.xv-newsletter-form--stacked .xv-btn { width: 100%; }

.xv-footer-newsletter {
    padding: 54px 0;
    background: var(--color-lightest);
    border-top: 1px solid var(--color-border);
}

.xv-footer-columns { padding: 62px 0 46px; }

.xv-footer-blurb {
    max-width: 40ch;
    margin-bottom: 22px;
    color: var(--color-gray);
}

.xv-footer-heading {
    margin-bottom: 18px;
    font-size: var(--font-size-b4);
    font-weight: var(--p-bold);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-midgray);
}

html[lang="ar"] .xv-footer-heading { letter-spacing: 0; text-transform: none; font-size: 14px; }

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

.xv-footer-list li { margin-bottom: 11px; }

.xv-footer-list a {
    font-size: var(--font-size-b3);
    color: var(--color-gray);
}

.xv-footer-list a:hover { color: var(--color-primary); }

.copyright-area {
    padding: 26px 0;
    border-top: 1px solid var(--color-border);
}

.xv-copyright-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    color: var(--color-gray);
}

.xv-credit-sep { color: var(--color-lighter); }

.xv-credit { font-weight: var(--p-medium); }

.xv-credit a {
    font-family: var(--secondary-font);
    font-weight: var(--p-bold);
    letter-spacing: 0.06em;
    color: var(--color-primary);
}

.xv-credit a:hover {
    color: var(--color-secondary);
    text-decoration: underline;
}

.xv-copyright-nav { flex-wrap: wrap; }

/* ------------------------------------------------------------- dark surfaces */
.bg-color-black .xv-standfirst { color: rgba(255, 255, 255, 0.7); }
.bg-color-black .xv-card-meta { color: rgba(255, 255, 255, 0.6); }
.bg-color-black .xv-link-button { color: var(--color-primary-bright); }

.bg-color-black .section-title .title::before {
    background: linear-gradient(180deg, var(--color-primary-bright), var(--color-secondary));
}

/* --------------------------------------------------------------- feed strip */
.instagram-post-list .single-post a .instagram-button {
    background: rgba(11, 21, 36, 0.72);
    color: #fff;
}

/*********************************************************************************
	Dark mode
	The inherited sheet themes its own blocks under body.active-dark-mode; these
	rules extend the same switch to every XENVORA component.
**********************************************************************************/
body.active-dark-mode {
    --color-heading: #F2F6F9;
    --color-body: #C9D5E0;
    --color-gray: #9AAABB;
    --color-midgray: #8494A6;
    --color-border: #22364A;
    --color-lightest: #16273A;
    --color-lighter: #2A3F55;
    --color-white: #132030;
}

body.active-dark-mode .xv-wordmark-text {
    background: linear-gradient(100deg, #F2F6F9 0%, #F2F6F9 52%, var(--color-primary-bright) 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

body.active-dark-mode .xv-wordmark-tagline { color: #8494A6; }

body.active-dark-mode .xv-lang-switch {
    background: #16273A;
    border-color: #22364A;
}

body.active-dark-mode .xv-lang-switch a:not(.is-active) { color: #9AAABB; }

body.active-dark-mode .xv-lang-switch a:not(.is-active):hover {
    background: #1D3247;
    color: var(--color-primary-bright);
}

body.active-dark-mode .xv-btn {
    background: var(--color-primary-soft);
    border-color: var(--color-primary-soft);
    color: #08161C;
}

body.active-dark-mode .xv-btn:hover {
    background: var(--color-primary-bright);
    border-color: var(--color-primary-bright);
    color: #08161C;
}

body.active-dark-mode .xv-btn--ghost {
    background: transparent;
    color: var(--color-primary-bright);
    border-color: var(--color-primary-bright);
}

body.active-dark-mode .xv-btn--ghost:hover {
    background: var(--color-primary-bright);
    color: #08161C;
}

body.active-dark-mode .xv-auth-card,
body.active-dark-mode .xv-topic-card,
body.active-dark-mode .xv-writer-card,
body.active-dark-mode .xv-contact-card,
body.active-dark-mode .xv-stat {
    background: #16273A;
    border-color: #22364A;
}

body.active-dark-mode .xv-page-head {
    background: #16273A;
    border-bottom-color: #22364A;
}

body.active-dark-mode .xv-empty {
    background: #16273A;
    border-color: #2A3F55;
}

body.active-dark-mode .xv-form-field input,
body.active-dark-mode .xv-form-field select,
body.active-dark-mode .xv-form-field textarea,
body.active-dark-mode .xv-newsletter-form input[type="email"] {
    background: #0E1B2B;
    border-color: #2A3F55;
    color: #F2F6F9;
}

body.active-dark-mode .xv-form-field select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%239AAABB' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

body.active-dark-mode .xv-blockquote,
body.active-dark-mode .xv-author-box {
    background: #16273A;
}

body.active-dark-mode .xv-footer-newsletter {
    background: #16273A;
    border-top-color: #22364A;
}

body.active-dark-mode .xv-footer-area,
body.active-dark-mode .xv-footer-columns { background: #132030; }

body.active-dark-mode .copyright-area { border-top-color: #22364A; }

body.active-dark-mode .xv-pagination a,
body.active-dark-mode .xv-pagination span {
    color: #E1E9F0;
    border-color: #2A3F55;
}

body.active-dark-mode .xv-pagination .is-active span {
    background: var(--color-primary-soft);
    border-color: var(--color-primary-soft);
    color: #08161C;
}

body.active-dark-mode .xv-save-btn { border-color: #2A3F55; color: #9AAABB; }

body.active-dark-mode .xv-demo-hint { background: #0E1B2B; }

body.active-dark-mode .xv-flash { color: #F2F6F9; }

body.active-dark-mode .xv-stat-value,
body.active-dark-mode .xv-topic-card .xv-topic-count,
body.active-dark-mode .xv-writer-role,
body.active-dark-mode .xv-credit a,
body.active-dark-mode .xv-auth-alt a,
body.active-dark-mode .xv-contact-card a { color: var(--color-primary-bright); }

body.active-dark-mode .xv-blockquote { border-inline-start-color: var(--color-primary-bright); }
