/* Emirates Spots v2 — night theme for every page except the homepage.
   This REPLACES style.css on those pages, so it has to cover everything the
   templates and app.js produce. Reading comes first here: the homepage can
   afford glass behind its numbers, 1,400 words of body copy cannot. */

:root {
  --ink: #05070b;
  --ink-2: #0b1018;
  --card: rgba(255, 255, 255, .055);
  --line: rgba(255, 255, 255, .14);
  --line-2: rgba(255, 255, 255, .09);
  --text: #e7edf6;
  --body: #c3cedd;      /* long-form copy: softer than white, still 4.5:1+ */
  --muted: #9aa8bd;
  --coral: #ff8a52;
  --coral-2: #ffa877;
  --green: #3ddc84;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--ink); color: var(--text);
  font: 17px/1.6 'Schibsted Grotesk', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--coral); text-decoration: none; text-underline-offset: 3px; }
a:hover { color: var(--coral-2); text-decoration: underline; }
h1, h2, h3, h4 { font-weight: 800; letter-spacing: -.04em; line-height: 1.12; color: #fff; margin: 0; }
strong, b { font-weight: 700; color: var(--text); }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 clamp(18px, 4vw, 34px); }
.prose-w { max-width: 760px; margin: 0 auto; padding: 0 clamp(18px, 4vw, 34px); }

/* ——— a quiet version of the homepage glow, top of page only ——— */
body::before {
  content: ''; position: fixed; inset: 0 0 auto; height: 520px; z-index: 0; pointer-events: none;
  background:
    radial-gradient(620px 420px at 12% -8%, rgba(255,122,69,.17), transparent 70%),
    radial-gradient(560px 380px at 88% -4%, rgba(120,86,255,.15), transparent 70%);
}
body > * { position: relative; z-index: 1; }

/* ——— masthead ——— */
header.site {
  background: rgba(8, 11, 17, .62); border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(20px) saturate(165%); backdrop-filter: blur(20px) saturate(165%);
  position: sticky; top: 0; z-index: 40;
}
header.site .wrap {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: clamp(13px, 2.4vw, 28px); min-height: 68px;
}
.logo { font-size: 21px; font-weight: 800; letter-spacing: -.035em; color: #fff; }
.logo:hover { text-decoration: none; color: #fff; }
.logo b { color: var(--coral); font-weight: 800; }
.tag { color: var(--muted); font-size: .82rem; }
nav.main { display: flex; flex-wrap: wrap; gap: clamp(13px, 2vw, 24px); font-size: 15px; font-weight: 500; }
nav.main a { color: #a4b1c4; }
nav.main a:hover { color: var(--coral); text-decoration: none; }
nav.main a[aria-current] { color: var(--coral); }
#lang-sw {
  margin-left: auto;
  background: rgba(255,255,255,.08) !important; border: 1px solid rgba(255,255,255,.18) !important;
  color: var(--text) !important; border-radius: 999px !important; padding: 8px 13px !important;
  font: 600 .85rem inherit !important; cursor: pointer;
}
#lang-sw option { background: #10141d; color: var(--text); }

/* ——— live ticker app.js injects ——— */
.ticker {
  background: rgba(10,14,22,.7); border-bottom: 1px solid var(--line-2);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  font-size: .82rem; overflow-x: auto; scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.ticker::-webkit-scrollbar { display: none; }
.tk-row { display: flex; gap: 8px; padding: 9px 0; white-space: nowrap; align-items: center; }
.tk {
  background: rgba(255,255,255,.07); border: 1px solid var(--line-2);
  border-radius: 999px; padding: 4px 13px; flex: 0 0 auto; color: #c3cedd;
}
.tk small { opacity: .7; }

/* ——— hub pages ——— */
.sect { display: flex; align-items: baseline; gap: 14px; margin: clamp(30px, 6vw, 52px) 0 18px; }
.sect h2 { font-size: clamp(26px, 4vw, 36px); }
.sect .rule { flex: 1; height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--coral), rgba(255,138,82,.08) 92%); }
.sect a { font-size: .9rem; white-space: nowrap; }

.row-list {
  list-style: none; margin: 22px 0 0; padding: 0;
  display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
}
.row {
  position: relative; display: block; border-radius: 22px; overflow: hidden;
  background: var(--card); border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  box-shadow: 0 18px 48px rgba(0,0,0,.42);
  transition: transform .45s cubic-bezier(.16,1,.3,1), box-shadow .45s cubic-bezier(.16,1,.3,1);
}
.row:hover { transform: translateY(-7px); box-shadow: 0 34px 76px rgba(0,0,0,.6); }
.row img { width: 100%; height: 196px; object-fit: cover; }
.row > div { padding: 16px 20px 20px; }
.row .where { font-size: .78rem; font-weight: 700; color: var(--coral); display: block; }
.row h3 { margin: 7px 0 0; font-size: 1.22rem; letter-spacing: -.035em; line-height: 1.22; }
.row h3 a { color: #fff; }
.row h3 a:hover { color: var(--coral); text-decoration: none; }
.row p { margin: 8px 0 0; color: var(--body); font-size: .94rem; line-height: 1.55; }
.rowcover { position: absolute; inset: 0; z-index: 1; border-radius: 22px; }
.row h3 a, .row p, .row .where { position: relative; z-index: 2; }
.row p, .row .where { pointer-events: none; }

/* feature card on hubs */
.feature { position: relative; border-radius: 24px; overflow: hidden; box-shadow: 0 24px 60px rgba(0,0,0,.55); }
.feature img { width: 100%; height: clamp(230px, 38vw, 400px); object-fit: cover; }
.feature .veil { position: absolute; inset: 0; background: linear-gradient(185deg, transparent 32%, rgba(5,7,11,.92)); }
.feature .txt { position: absolute; left: clamp(18px, 3vw, 30px); right: 18px; bottom: clamp(16px, 3vw, 26px); }
.feature .where { font-size: .78rem; font-weight: 700; color: var(--coral); }
.feature h3 { margin: 6px 0 4px; font-size: clamp(1.4rem, 3.4vw, 2rem); }
.feature p { margin: 0; font-size: .95rem; color: #c3cedd; max-width: 54ch; }
.feature a.cover { position: absolute; inset: 0; }

/* ——— article ——— */
.art-hero { position: relative; overflow: hidden; }
.art-hero img { width: 100%; height: clamp(220px, 40vw, 420px); object-fit: cover; }
.art-hero .veil { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5,7,11,.3) 0%, transparent 34%, var(--ink) 100%); }

.crumbs { font-size: .84rem; color: var(--muted); margin: 18px 0 0; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--coral); }

article h1 { font-size: clamp(30px, 5.2vw, 50px); margin: 12px 0 10px; max-width: 24ch; letter-spacing: -.045em; }
.byline { color: var(--muted); font-size: .86rem; margin-bottom: 10px; }
.byline .dot { color: var(--coral); }

/* quick facts: the one place glass earns its keep on an article */
.facts {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px 18px; margin: 24px 0 14px; padding: 18px 22px;
  background: rgba(255,255,255,.06); border: 1px solid var(--line); border-radius: 20px;
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  box-shadow: 0 20px 50px rgba(0,0,0,.4);
}
.facts > div { padding: 9px 0; }
.facts dt { font-size: .71rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); margin: 0; }
.facts dd { margin: 3px 0 0; font-weight: 650; font-size: 1.02rem; line-height: 1.35; color: var(--text); }
.facts dd .big { font-size: 1.4rem; font-weight: 800; color: var(--coral); letter-spacing: -.03em; }
@media (min-width: 760px) { .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* the reading column: this is the part that must not be clever */
article p, article ul, article ol { color: var(--body); font-size: 1.06rem; line-height: 1.78; max-width: 68ch; }
article p { margin: 0 0 1.05em; }
article li { margin-bottom: .45em; }
article h2 { font-size: clamp(22px, 3.4vw, 30px); margin: 44px 0 12px; }
article h2::before {
  content: ""; display: inline-block; width: 22px; height: 3px; border-radius: 2px;
  background: var(--coral); margin-right: 11px; vertical-align: 7px;
}
article h3 { font-size: 1.18rem; margin: 28px 0 7px; }
article a { text-decoration: underline; text-decoration-color: rgba(255,138,82,.45); }

figure { margin: 30px 0; }
figure img { border-radius: 18px; width: 100%; }
figcaption { font-size: .8rem; color: var(--muted); margin-top: 9px; }
figcaption a { color: var(--muted); }

table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: .95rem; }
th, td { text-align: left; padding: 11px 13px; border-bottom: 1px solid var(--line-2); color: var(--body); }
th { background: rgba(255,255,255,.055); font-size: .85rem; color: var(--text); font-weight: 700; }
tr:first-child th:first-child { border-top-left-radius: 12px; }
tr:first-child th:last-child { border-top-right-radius: 12px; }
td:first-child { font-weight: 600; color: var(--text); }

.note {
  background: rgba(255,138,82,.11); border: 1px solid rgba(255,138,82,.3);
  border-radius: 16px; padding: 15px 19px; margin: 24px 0; font-size: .95rem;
  max-width: 68ch; color: var(--body);
}
.note b:first-child { color: var(--coral); }

.faq h3 { margin-bottom: 2px; }
.faq h3 + p { margin-top: 5px; }

.next {
  background: rgba(255,255,255,.055); border: 1px solid var(--line);
  border-radius: 20px; padding: 19px 22px; margin: 38px 0;
}
.next .t { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--coral); margin-bottom: 5px; }
.next p { margin: 0; color: var(--body); }

/* related guides */
.related { margin: 42px 0 8px; }
.related h2 { font-size: 1.15rem; margin: 0 0 15px; }
.related ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.related li { margin: 0; }
.related a {
  display: block; height: 100%; padding: 15px 17px; border-radius: 16px;
  background: var(--card); border: 1px solid var(--line); text-decoration: none;
  transition: transform .3s cubic-bezier(.16,1,.3,1), border-color .3s, box-shadow .3s;
}
.related a:hover { transform: translateY(-4px); border-color: rgba(255,138,82,.45); box-shadow: 0 16px 36px rgba(0,0,0,.45); text-decoration: none; }
.related b { display: block; font-size: .95rem; line-height: 1.3; margin-bottom: 5px; color: #fff; }
.related span { display: block; font-size: .8rem; line-height: 1.45; color: var(--muted); }

/* property pulse */
.pulse { list-style: none; margin: 16px 0 0; padding: 0; display: grid; border-top: 1px solid var(--line-2); max-width: 780px; }
.pulse li { padding: 14px 2px; border-bottom: 1px solid var(--line-2); display: grid; gap: 3px; }
.pulse a { color: var(--text); font-weight: 600; line-height: 1.45; }
.pulse a:hover { color: var(--coral); text-decoration: none; }
.pulse small { color: var(--muted); }

/* ——— footer ——— */
footer.site {
  border-top: 1px solid var(--line); margin-top: clamp(44px, 8vw, 74px);
  padding: 34px 0 48px; color: var(--muted); font-size: .88rem;
  background: rgba(255,255,255,.02);
}
footer.site .cols { display: grid; gap: 22px; }
@media (min-width: 700px) { footer.site .cols { grid-template-columns: 2fr 1fr 1fr; } }
footer.site a { color: #a4b1c4; }
footer.site a:hover { color: var(--coral); }
footer.site b { color: #dbe3ee; }
footer.site ul { list-style: none; padding: 0; margin: 9px 0 0; display: grid; gap: 7px; }

/* ——— the dock: a floating nav at every width, not only on phones ——— */
body { padding-bottom: 96px; }
.bottomnav {
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr));
  position: fixed; bottom: 12px; left: 50%; transform: translateX(-50%);
  width: min(600px, calc(100% - 20px)); z-index: 50;
  background: rgba(12, 16, 24, .82); border: 1px solid var(--line); border-radius: 24px;
  -webkit-backdrop-filter: blur(20px) saturate(165%); backdrop-filter: blur(20px) saturate(165%);
  padding: 8px 6px calc(8px + env(safe-area-inset-bottom) / 2);
  box-shadow: 0 20px 52px rgba(0, 0, 0, .64), inset 0 1px 0 rgba(255, 255, 255, .14);
}
.bottomnav a {
  display: grid; justify-items: center; gap: 3px; color: #9aa7b9;
  font-weight: 600; padding: 5px 2px; border-radius: 14px;
  /* shrink rather than wrap: six labels have to fit a 360px phone */
  font-size: clamp(.56rem, 2.1vw, .67rem); white-space: nowrap; letter-spacing: -.01em;
  transition: color .25s, background .25s;
}
.bottomnav a:hover { text-decoration: none; color: var(--coral); background: rgba(255, 255, 255, .07); }
.bottomnav a .i { font-size: 1.22rem; line-height: 1; }
.bottomnav a.on { color: var(--coral); background: rgba(255, 138, 82, .17); }

@media (max-width: 768px) {
  nav.main { display: none; }
  header.site { position: static; }
  footer.site { padding-bottom: 22px; }
}

/* ——— reveal on scroll (app.js adds .rv / .in) ——— */
.rv { opacity: 0; transform: translateY(24px); }
.rv.in { opacity: 1; transform: none; transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1); }
@media (prefers-reduced-motion: reduce) {
  .rv, .rv.in { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .row:hover, .related a:hover { transform: none; }
}

/* forms (contact page) */
input, textarea, select, button { font: inherit; }
input[type=text], input[type=email], textarea {
  background: rgba(255,255,255,.07); border: 1px solid var(--line);
  color: var(--text); border-radius: 14px; padding: 12px 15px; width: 100%;
}
input::placeholder, textarea::placeholder { color: #8d9bb0; }
button, .btn {
  background: linear-gradient(135deg, #ff9a63, #ff6a2b); color: #170a03; border: 0;
  padding: 12px 24px; border-radius: 14px; font-weight: 700; cursor: pointer;
  box-shadow: 0 12px 30px rgba(255,122,69,.32);
}

/* ——— holiday announcements feed ———
   A dated list, not a card grid: these are headlines that go stale, and the
   date is the first thing a reader checks. The left rule is a single hairline
   timeline, never a coloured side-stripe. */
.newsfeed { list-style: none; margin: 18px 0 10px; padding: 0 0 0 20px; border-left: 1px solid var(--line-2); max-width: 760px; }
.newsfeed li {
  position: relative; display: grid; gap: 2px 10px; padding: 13px 0;
  grid-template-columns: 1fr auto; align-items: baseline;
  border-bottom: 1px solid var(--line-2);
}
.newsfeed li:last-child { border-bottom: 0; }
.newsfeed li::before {
  content: ''; position: absolute; left: -24px; top: 20px;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--line); outline: 3px solid var(--ink);
}
.newsfeed li:has(.nf-new)::before { background: var(--coral); }
.nf-when {
  grid-column: 1 / -1; font-size: .74rem; font-weight: 600; letter-spacing: .09em;
  text-transform: uppercase; color: var(--muted);
}
.newsfeed a { grid-column: 1; font-size: 1.02rem; font-weight: 600; line-height: 1.4; color: var(--text); }
.newsfeed a:hover { color: var(--coral-2); }
.nf-src { grid-column: 2; font-size: .8rem; color: var(--muted); white-space: nowrap; }
.nf-new, .nf-official {
  grid-column: 1 / -1; justify-self: start; margin-top: 4px;
  font-size: .64rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 999px;
}
.nf-new { color: var(--ink); background: var(--coral); }
.nf-official { color: var(--green); border: 1px solid rgba(61, 220, 132, .4); }
.nf-new + .nf-official { margin-left: 6px; }
.nf-foot, .nf-quiet { font-size: .88rem; color: var(--muted); max-width: 760px; }
@media (max-width: 560px) {
  .newsfeed li { grid-template-columns: 1fr; }
  .nf-src { grid-column: 1; }
}

/* sector comparison cards (public holidays: federal / private / emirate) */
.sector-cards { display: grid; gap: 14px; margin: 26px 0 8px; }
@media (min-width: 900px) { .sector-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.sc {
  background: rgba(255,255,255,.055); border: 1px solid var(--line);
  border-radius: 20px; padding: 18px 20px 14px;
}
.sc-h { font-size: .72rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.sc-dates {
  margin: 6px 0 12px; font-size: 1.28rem; font-weight: 800;
  letter-spacing: -.02em; color: var(--coral); line-height: 1.2;
}
.sc dl { margin: 0; display: grid; gap: 0; }
.sc dl > div { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-top: 1px solid var(--line-2); }
.sc dt { margin: 0; font-size: .82rem; color: var(--muted); flex: 0 0 auto; }
.sc dd { margin: 0; font-size: .88rem; font-weight: 600; color: var(--text); text-align: right; }
.sc-note { margin: 12px 0 0 !important; font-size: .87rem !important; line-height: 1.6 !important; color: var(--muted) !important; max-width: none !important; }
