/*
 * UAEFMA Newsroom 2026
 * Shared editorial design layer. Loaded after the legacy modules so every
 * public template receives the same visual language without changing data,
 * routes, forms, tracking attributes, or Blade contracts.
 */
:root {
    --paper: #fff;
    --band: #f5f7f8;
    --ink: #0b1d39;
    --ink-soft: #34445c;
    --ink-faint: #6b778b;
    --rule: #d9e0e7;
    --rule-2: #edf1f4;
    --accent: #007a4d;
    --accent-deep: #005f3c;
    --up: #087a4c;
    --down: #cc1424;
    --navy: #0b1d39;
    --navy-2: #142b4c;
    --navy-deep: #07152a;
    --gold: #007a4d;
    --red: #cc1424;
    --radius: 6px;
    --container: 1420px;
}

html { scroll-behavior: smooth; }
body {
    background: #fff;
    color: var(--ink);
    font-family: var(--ar-body);
    font-size: 16px;
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
}
.lang-en { font-family: var(--en-sans); }
.container { width: min(calc(100% - 48px), var(--container)); margin-inline: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
img { background: #eef2f4; }

/* Quiet institutional masthead */
.topbar {
    min-height: 34px;
    background: #f7f9fa;
    color: var(--ink-soft);
    border-block: 0 1px solid var(--rule);
}
.topbar-inner { min-height: 34px; }
.topbar-markets { gap: 0; }
.mkt-item {
    min-height: 34px;
    padding-inline: 18px;
    border-inline-end: 1px solid var(--rule);
    font-size: 11px;
}
.mkt-label { color: var(--ink); font-weight: 700; }
.topbar-date, .lang-btn { font-size: 11px; }
.lang-btn {
    border: 1px solid var(--rule);
    border-radius: 4px;
    padding: 2px 8px;
    background: #fff;
    font-weight: 700;
}
.site-header {
    height: auto;
    min-height: 92px;
    background: #fff;
    border-bottom: 1px solid var(--rule);
}
.hdr-inner { min-height: 92px; }
.hdr-logo-text, .footer-logo {
    color: var(--navy);
    font-family: var(--en-sans);
    font-size: clamp(28px, 3vw, 43px);
    font-weight: 800;
    letter-spacing: -.045em;
}
.hdr-brand-divider { background: var(--accent); width: 3px; height: 32px; }
.hdr-newsroom { color: var(--ink-soft); font-size: 13px; font-weight: 600; }
.hdr-wing { color: var(--ink-soft); }
.hdr-wing-name { color: var(--ink); font-size: 13px; }
.hdr-wing-sup { color: var(--ink-faint); letter-spacing: 0; }
.site-nav {
    background: #fff;
    color: var(--ink);
    border-bottom: 1px solid var(--rule);
    box-shadow: none;
}
.nav-inner { min-height: 48px; }
.nav-list { gap: clamp(18px, 2.4vw, 38px); }
.nav-list a {
    position: relative;
    padding-block: 14px 12px;
    color: var(--ink);
    font-size: 13px;
    font-weight: 700;
}
.nav-list a::after {
    content: "";
    position: absolute;
    inset-inline: 0;
    bottom: -1px;
    height: 2px;
    background: transparent;
}
.nav-list a:hover, .nav-list a.is-active { color: var(--accent); }
.nav-list a.is-active::after { background: var(--accent); }
.nav-search {
    color: var(--ink);
    border: 1px solid var(--rule);
    border-radius: 4px;
    width: 34px;
    height: 34px;
}

/* Breaking news is the only emphatic red surface */
.breaking-bar { background: var(--down); color: #fff; min-height: 34px; }
.brk-label { background: #af0716; color: #fff; font-weight: 800; }
.brk-track a, .brk-item { color: #fff; }

/* Homepage: open editorial grid, no floating-card aesthetic */
.hero-ft { padding-block: 24px 10px; background: #fff; }
.hero-ft-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    border-block: 1px solid var(--rule);
    gap: 0;
}
.hero-lead {
    display: grid;
    grid-template-columns: minmax(330px, .82fr) minmax(460px, 1.18fr);
    min-height: 560px;
    border: 0;
    border-inline-end: 1px solid var(--rule);
    border-radius: 0;
    box-shadow: none;
}
.hero-lead-img {
    grid-column: 2;
    grid-row: 1;
    min-height: 560px;
    height: 100%;
    border-radius: 0;
    aspect-ratio: auto;
}
.hero-lead-img img { height: 100%; object-fit: cover; }
.hero-lead-body { padding: 24px clamp(18px, 3vw, 40px); }
.hero-lead-body {
    grid-column: 1;
    grid-row: 1;
    justify-content: center;
}
.hero-lead-cat, .hero-stack-cat, .eg-cat {
    color: var(--accent);
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 0;
    font-size: 11px;
    font-weight: 800;
}
.hero-lead-title {
    color: var(--ink);
    font-family: var(--ar-head);
    font-size: clamp(31px, 3vw, 48px);
    line-height: 1.25;
    letter-spacing: -.025em;
}
.lang-en .hero-lead-title { font-family: var(--en-serif); }
.hero-lead-excerpt { color: var(--ink-soft); font-size: 16px; max-width: 65ch; }
.hero-stack { padding: 0 22px; }
.hero-stack-item {
    padding-block: 18px;
    border-bottom: 1px solid var(--rule);
    border-radius: 0;
}
.hero-stack-thumb { border-radius: 2px; }
.hero-stack-title { color: var(--ink); font-size: 15px; line-height: 1.55; }

.eg-section, .top-stories, .most-read, .media-section { padding-block: clamp(42px, 6vw, 80px); }
.eg-section-hd, .media-section-hd, .fv-hd, .mr-hd {
    border-top: 2px solid var(--ink);
    border-bottom: 1px solid var(--rule);
    padding-block: 11px;
    margin-bottom: 24px;
}
.eg-section-title, .media-section-title, .fv-section-title, .mr-hd-title {
    color: var(--ink);
    font-family: var(--ar-head);
    font-size: clamp(21px, 2vw, 29px);
}
.eg-section-title::before, .media-section-title::before, .fv-section-title::before {
    content: "";
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-inline-end: 10px;
    background: var(--accent);
}
.eg-more, .media-section-more, .fv-more { color: var(--accent); font-weight: 700; }
.eg-card, .ts-featured, .ts-row, .media-card, .pod-list-item {
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}
.eg-card-img, .ts-feat-img, .media-card-thumb, .pod-thumb { border-radius: 2px; overflow: hidden; }
.eg-card-body { padding: 14px 0 0; }
.eg-card-title, .ts-title, .media-card-title, .pod-title { color: var(--ink); }
.eg-card-excerpt { color: var(--ink-soft); }
.eg-card-date, .ts-meta, .media-card-date, .pod-date { color: var(--ink-faint); }
.editorial-grid, .ts-digest, .media-section-grid { gap: 24px; }

.most-read { background: var(--band); border-block: 1px solid var(--rule); }
.mr-list { gap: 0; }
.mr-item { border-bottom: 1px solid var(--rule); border-radius: 0; padding-block: 18px; }
.mr-num {
    color: var(--accent);
    font-family: var(--en-serif);
    font-size: 35px;
    font-weight: 500;
}
.mr-title { color: var(--ink); font-size: 16px; }

/* Ads: premium reservations, visually separate from editorial content */
.ad-zone, .ad-wrap, .sponsor-row { background: #fff; }
.ad-slot {
    position: relative;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid #cfd7df;
    border-radius: 2px;
    background: #f8fafb;
    box-shadow: none;
}
.ad-slot img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.ad-sponsored-label {
    position: absolute;
    z-index: 2;
    inset-block-start: 4px;
    inset-inline-start: 6px;
    padding: 1px 5px;
    background: rgba(255,255,255,.92);
    color: #667085;
    font-size: 9px;
    letter-spacing: .04em;
}
.sponsor-grid { gap: 14px; }

/* Article and all content index pages */
.np-art { background: #fff; }
.np-art-header {
    padding-block: clamp(42px, 7vw, 92px) 32px !important;
    background: #fff !important;
    border-bottom: 1px solid var(--rule) !important;
}
.np-art-header-inner { max-width: 980px !important; }
.np-art-kicker { color: var(--accent) !important; font-weight: 800; }
.np-art-kicker::before { background: var(--accent) !important; }
.np-art-title {
    color: var(--ink) !important;
    font-family: var(--ar-head);
    font-size: clamp(38px, 5.2vw, 72px) !important;
    line-height: 1.24 !important;
    letter-spacing: -.035em !important;
    text-shadow: none !important;
    max-width: 940px !important;
}
.lang-en .np-art-title { font-family: var(--en-serif); }
.np-art-subtitle {
    color: var(--ink-soft) !important;
    font-size: clamp(18px, 1.7vw, 23px) !important;
    max-width: 820px !important;
}
.np-art-byline, .np-art-share { border-color: var(--rule) !important; color: var(--ink-faint) !important; }
.np-art-byline-author, .np-art-byline-author a { color: var(--ink) !important; }
.np-art-byline-date, .np-art-read-time { color: var(--ink-faint) !important; }
.np-art-hero-img { background: #fff !important; }
.np-art-figure::after { display: none !important; }
.np-art-caption { color: var(--ink-faint) !important; background: #fff !important; }
.np-share-btn { border: 1px solid var(--rule); background: #fff; color: var(--ink); border-radius: 4px; }
.np-art-layout { gap: clamp(32px, 5vw, 72px); }
.np-art-figure, .np-art-hero-img { border-radius: 2px; }
.np-art-body {
    color: #172840;
    font-size: clamp(18px, 1.35vw, 21px);
    line-height: 2;
}
.np-art-body p { margin-bottom: 1.55em; }
.np-art-body blockquote {
    border-inline-start: 4px solid var(--accent);
    color: var(--ink);
    background: transparent;
    font-family: var(--ar-head);
    font-size: 1.3em;
}
.np-art-sidebar { border-inline-start: 1px solid var(--rule); padding-inline-start: 24px; }
.np-sidebar-section-title, .np-art-related-title { border-top: 2px solid var(--ink); color: var(--ink); }
.np-sidebar-item, .np-rel-card { border-radius: 0; border-color: var(--rule); box-shadow: none; }
.np-art-author-box, .np-art-newsletter { border: 1px solid var(--rule); border-radius: 6px; background: #fff; }
.np-art-tag { border: 1px solid var(--rule); background: #fff; color: var(--ink-soft); border-radius: 4px; }

.np-page-wrap, .np-static-body { padding-block: clamp(40px, 6vw, 76px); }
.np-index-hd, .np-static-hd {
    background: #fff;
    border-bottom: 1px solid var(--rule);
    padding-block: clamp(34px, 5vw, 64px);
}
.np-index-title, .np-static-hd-title {
    color: var(--ink);
    font-family: var(--ar-head);
    font-size: clamp(36px, 5vw, 64px);
}
.np-index-grid { gap: 28px 22px; }
.eg-card { border-bottom: 1px solid var(--rule); padding-bottom: 20px; }
.np-index-filters, .np-form-wrap {
    background: #f8fafb;
    border: 1px solid var(--rule);
    border-radius: 6px;
    box-shadow: none;
}
.np-filter-search, .np-filter-select, .np-form-input, .np-form-textarea,
.adv-booking-form input, .adv-booking-form select, .adv-booking-form textarea {
    border: 1px solid #bdc8d4;
    border-radius: 5px;
    background: #fff;
    color: var(--ink);
}
.np-filter-btn, .np-form-submit, .adv-form-submit-btn {
    border: 1px solid var(--accent);
    border-radius: 5px;
    background: var(--accent);
    color: #fff;
}
.np-filter-btn:hover, .np-form-submit:hover, .adv-form-submit-btn:hover { background: var(--accent-deep); }

/* Newsletter and footer */
.hp-newsletter { background: #eef6f2; border-block: 1px solid #cfe2d8; color: var(--ink); }
.hp-newsletter-inner { border-radius: 0; box-shadow: none; }
.hp-newsletter-title { color: var(--ink); }
.hp-newsletter-input, .hp-newsletter-btn { border-radius: 4px; }
.hp-newsletter-btn { background: var(--accent); color: #fff; }
.site-footer {
    background: #f5f7f8;
    color: var(--ink-soft);
    border-top: 1px solid var(--rule);
}
.site-footer h4, .footer-logo { color: var(--ink); }
.site-footer a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid var(--rule); }

/* Accessible interaction states */
:where(a, button, input, select, textarea):focus-visible {
    outline: 3px solid rgba(0,122,77,.22);
    outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

@media (max-width: 980px) {
    .container { width: min(calc(100% - 30px), var(--container)); }
    .hdr-wing { display: none; }
    .site-header, .hdr-inner { min-height: 72px; }
    .hero-ft-grid, .np-art-layout { border: 0; }
    .hero-ft-grid { grid-template-columns: 1fr; }
    .hero-lead { grid-template-columns: 1fr 1.12fr; min-height: 460px; }
    .hero-lead-img { min-height: 460px; }
    .hero-lead { border-inline-end: 0; border-bottom: 1px solid var(--rule); }
    .np-art-sidebar { border-inline-start: 0; padding-inline-start: 0; border-top: 1px solid var(--rule); padding-top: 28px; }
}
@media (max-width: 680px) {
    body { font-size: 15px; }
    .container { width: min(calc(100% - 24px), var(--container)); }
    .topbar-meta .topbar-date, .topbar-sep { display: none; }
    .hdr-logo-text { font-size: 30px; }
    .hdr-newsroom { font-size: 11px; }
    .hero-ft { padding-top: 12px; }
    .hero-ft-grid, .hero-lead, .hero-lead-img, .hero-lead-body, .hero-stack {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }
    .hero-ft-grid { display: block; overflow: hidden; }
    .hero-lead { display: flex; min-height: 0; overflow: hidden; }
    .hero-lead-img { min-height: 0; aspect-ratio: 16 / 10; flex: none; }
    .hero-lead-body { padding-inline: 4px; }
    .hero-lead-title { font-size: 31px; }
    .hero-stack { flex-direction: column; overflow: visible; padding-inline: 0; }
    .hero-stack-item {
        width: 100%;
        flex: none;
        flex-direction: row;
        border-inline-end: 0;
        border-bottom: 1px solid var(--rule);
    }
    .hero-stack-thumb { width: 108px; height: 76px; flex: 0 0 108px; }
    .np-art-title { font-size: 38px; }
    .np-art-body { font-size: 18px; }
}
