:root {
    --eosp-navy: #082942;
    --eosp-gold: #b67b2d;
    --eosp-ivory: #f6f0e6;
}

.eosp-publication-cover {
    --eosp-ink: #f7f0e3;
    --eosp-accent: #d1a253;
    position: relative;
    box-sizing: border-box;
    width: 100%;
    aspect-ratio: 1055 / 1491;
    overflow: hidden;
    background-color: #082942;
    background-image: var(--eosp-cover-bg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    color: var(--eosp-ink);
    container-type: inline-size;
    font-family: Georgia, 'Times New Roman', serif;
    isolation: isolate;
}

.eosp-palette-ivory,
.eosp-palette-sand {
    --eosp-ink: #082942;
    --eosp-accent: #9a6528;
}

.eosp-palette-navy,
.eosp-palette-olive,
.eosp-palette-burgundy,
.eosp-palette-slate {
    --eosp-ink: #f9f1e4;
    --eosp-accent: #d5ab61;
}

.eosp-cover__body {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    box-sizing: border-box;
    padding: 7.2% 8.4% 8%;
    text-align: start;
}

.eosp-cover__seal {
    display: block;
    width: 24%;
    height: auto;
    margin: 0 0 7.5%;
    object-fit: contain;
}

.eosp-cover__type {
    color: var(--eosp-ink);
    font-size: 6.3cqw;
    font-weight: 500;
    letter-spacing: .025em;
    line-height: 1.04;
    text-transform: uppercase;
}

.eosp-cover__marker {
    display: flex;
    align-items: center;
    gap: 3.8cqw;
    width: 100%;
    margin: 5.5% 0 8%;
    color: var(--eosp-accent);
}

.eosp-cover__marker span {
    width: 4.2cqw;
    height: 4.2cqw;
    box-sizing: border-box;
    border: max(1px, .65cqw) solid currentColor;
    transform: rotate(45deg);
}

.eosp-cover__marker i {
    display: block;
    width: 24%;
    height: max(1px, .65cqw);
    background: currentColor;
}

.eosp-cover__title {
    max-width: 96%;
    color: var(--eosp-ink);
    font-size: 9.1cqw;
    font-weight: 600;
    letter-spacing: -.025em;
    line-height: 1.03;
    text-wrap: balance;
}

.eosp-cover--long .eosp-cover__title {
    font-size: 7.8cqw;
    line-height: 1.02;
}

.eosp-cover--very-long .eosp-cover__title {
    font-size: 6.8cqw;
    line-height: 1.02;
}

[dir='rtl'] .eosp-cover__body,
.rtl .eosp-cover__body {
    align-items: flex-end;
    text-align: right;
}

[dir='rtl'] .eosp-cover__marker,
.rtl .eosp-cover__marker {
    flex-direction: row-reverse;
}

[dir='rtl'] .eosp-cover__type,
.rtl .eosp-cover__type {
    font-family: 'Noto Naskh Arabic', 'Geeza Pro', Tahoma, serif;
    font-size: 7.1cqw;
    text-transform: none;
}

[dir='rtl'] .eosp-cover__title,
.rtl .eosp-cover__title {
    font-family: 'Noto Naskh Arabic', 'Geeza Pro', Tahoma, serif;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.13;
}


/* Keep the existing homepage columns, card links and mobile rows intact. */
body.home #room-03 .cerax-reference-cover.eosp-home-cover-host {
    display: block !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: 1055 / 1491 !important;
    background: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    overflow: hidden !important;
}
body.home #room-03 .eosp-home-cover-host::before,
body.home #room-03 .eosp-home-cover-host::after {
    display: none !important;
    content: none !important;
}
body.home #room-03 .eosp-home-cover-host > .eosp-publication-cover {
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}
body.home #room-03 .eosp-cover__seal {
    width: 24% !important;
    height: auto !important;
    max-width: none !important;
    max-height: none !important;
    border: 0 !important;
    box-shadow: none !important;
    object-fit: contain !important;
    flex: none !important;
    transform: none !important;
    transition: none !important;
}
body.home #room-03 .eosp-cover__title {
    text-transform: none !important;
    overflow-wrap: anywhere;
}
body.home.rtl #room-03 .eosp-cover__body,
html[dir='rtl'] body.home #room-03 .eosp-cover__body {
    align-items: flex-start !important;
    text-align: right !important;
}
body.home.rtl #room-03 .eosp-cover__marker,
html[dir='rtl'] body.home #room-03 .eosp-cover__marker {
    flex-direction: row !important;
}
/* Keep the category label within its existing desktop header row. */
@media (min-width: 901px) {
  body.home #room-03 .cerax-publication-categories > h2 {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    display: flex !important;
    align-items: center !important;
  }
}

/* Extend the existing Arabic desktop flow repair to English briefing panels. */
@media (min-width: 1181px) {
  html:not([dir="rtl"]) body.home #room-02,
  html:not([dir="rtl"]) body.home #room-02 .cerax-home-live-layout {
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
  }
  html:not([dir="rtl"]) body.home #room-02 .cerax-home-hero {
    flex: none !important;
    height: clamp(300px, 12.61vw, 323px) !important;
  }
  html:not([dir="rtl"]) body.home #room-02 .cerax-briefing-content {
    flex: none !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 15px 3.5vw 28px 4.05vw !important;
    display: grid !important;
    grid-template-columns: minmax(0, 57fr) minmax(0, 34.6fr) !important;
    grid-template-areas: "feature analysis" "cards regions" "cards newsletter" !important;
    grid-template-rows: minmax(350px, auto) minmax(204px, auto) minmax(145px, auto) !important;
    gap: 18px 1.4vw !important;
    overflow: visible !important;
  }
  html:not([dir="rtl"]) body.home #room-02 .cerax-briefing-content > * {
    position: static !important;
    inset: auto !important;
    width: auto !important;
    height: auto !important;
    min-width: 0 !important;
    margin: 0 !important;
    transform: none !important;
  }
  html:not([dir="rtl"]) body.home #room-02 .cerax-briefing-feature {
    grid-area: feature !important;
    position: relative !important;
    min-height: 350px !important;
  }
  html:not([dir="rtl"]) body.home #room-02 .cerax-analysis-list {
    grid-area: analysis !important;
    min-height: 270px !important;
  }
  html:not([dir="rtl"]) body.home #room-02 .cerax-briefing-regions {
    grid-area: regions !important;
    min-height: 204px !important;
  }
  html:not([dir="rtl"]) body.home #room-02 .cerax-home-newsletter {
    grid-area: newsletter !important;
    min-height: 145px !important;
  }
  html:not([dir="rtl"]) body.home #room-02 .cerax-briefing-cards {
    grid-area: cards !important;
    min-height: 367px !important;
  }
  html:not([dir="rtl"]) body.home #room-02 .cerax-briefing-cards > a {
    grid-template-rows: 44% 56% !important;
  }
}
