/* Gulf News quiz site. Tokens taken from gulfnews.com (9 Nov 2026). */
:root {
  --ink: #0c1215;            /* --light-ink-contrast */
  --ink-2: #303d43;          /* --light-interface-neutral-010 */
  --muted: #596e79;          /* --light-ink-subtle */
  --faint: #9fadb5;          /* --light-ink-non-essential */
  --line: #dee3e6;           /* --light-interface-neutral-030 */
  --tint: #eff1f2;           /* --light-interface-neutral-020 */
  --tint-blue: #edf1f4;      /* --light-interactive-primary-010 */
  --blue: #013d6c;           /* --light-interactive-primary-030 (labels) */
  --navy: #002748;           /* --light-interactive-primary-050 */
  --link: #0170ac;           /* --light-link-blue */
  --logo-blue: #002e6e;
  --right: #007b22;          /* --light-ink-inkpositive */
  --wrong: #a90000;          /* --light-interactive-red */
  --white: #fff;
  --serif: "Roboto Serif", Georgia, serif;
  --sans: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --max: 680px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--white); color: var(--ink);
  font: 400 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased;
}
body.no-scroll { overflow: hidden; }
a { color: var(--link); }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; }

/* Header: matches gulfnews.com section pages (measured 10 Nov 2026) */
.gn-wrap { max-width: 1110px; margin: 0 auto; padding: 0 16px; box-sizing: content-box; }
.gn-header { background: var(--white); }
.gn-top { border-bottom: 1px solid var(--tint); }
.gn-top-inner { display: flex; align-items: center; gap: 16px; height: 60px; }
.gn-icon-btn { display: inline-grid; place-items: center; width: 32px; height: 32px; padding: 0; background: none; border: 0; cursor: pointer; flex: none; }
.gn-logo { display: block; flex: none; }
.gn-logo img { width: 180px; height: auto; }
.gn-utils { display: flex; gap: 32px; margin-left: auto; margin-right: 16px; }
.gn-utils a, .gn-utils-mob a { font: 500 12px/21px var(--sans); color: var(--ink); text-decoration: none; }
.gn-utils a:hover, .gn-utils-mob a:hover { text-decoration: underline; }
.gn-btn { display: inline-flex; align-items: center; justify-content: center; height: 34px; padding: 0 12px; border-radius: 4px; font: 400 12px/1 var(--sans); text-decoration: none; flex: none; }
.gn-btn--solid { background: var(--blue); color: var(--white); padding: 0 24px; }
.gn-btn--line { border: 1px solid var(--ink-2); color: var(--ink-2); padding: 0 10px; min-width: 72px; }
.gn-epaper-icon { display: none; }
.gn-utils-mob { display: none; }
.gn-section.gn-wrap { padding: 0; margin: 0 max(16px, calc((100% - 1110px) / 2)); border-bottom: 1px solid var(--ink-2); }
.gn-section-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 0 14px; }
.gn-section-title { font: 700 28px/1.15 var(--sans); color: var(--ink); text-decoration: none; }
.gn-section-toggle { display: none; width: 40px; height: 40px; }
.gn-subnav { display: flex; gap: 32px; list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--tint); }
.gn-subnav li { padding: 13px 0 12px; }
.gn-subnav a { font: 500 14px/21px var(--sans); color: var(--ink); text-decoration: none; text-transform: uppercase; padding-bottom: 12px; border-bottom: 3px solid transparent; }
.gn-subnav a:hover { color: var(--blue); }
.gn-subnav a[aria-current="page"] { border-bottom-color: var(--blue); color: var(--blue); }
@media (max-width: 1023px) {
  .gn-utils, .gn-btn { display: none; }
  .gn-top-inner { height: 64px; gap: 10px; }
  .gn-logo { margin-right: auto; }
  .gn-logo img { width: 180px; }
  .gn-epaper-icon { display: inline-grid; }
  .gn-utils-mob { display: flex; justify-content: space-between; padding: 10px 16px 11px; border-top: 1px solid var(--tint); }
  .gn-utils-mob a { font-size: 12px; color: var(--ink-2); }
  .gn-section-head { padding: 12px 0; }
  .gn-section-title { font: 600 16px/1.3 var(--sans); }
  .gn-section-toggle { display: inline-grid; margin-right: -8px; }
  .gn-section-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
  .gn-subnav { display: none; flex-direction: column; gap: 0; }
  .gn-subnav.is-open { display: flex; }
  .gn-subnav li { padding: 0; border-bottom: 1px solid var(--tint); }
  .gn-subnav li:last-child { border-bottom: 0; }
  .gn-subnav a { display: block; padding: 12px 0; border: 0; }
  .gn-subnav a[aria-current="page"] { border: 0; }
}
@media (max-width: 400px) { .gn-logo img { width: 160px; } }

/* Gulf News main menu drawer */
.gn-drawer-backdrop { position: fixed; inset: 0; z-index: 90; background: rgba(12,18,21,.45); }
.gn-drawer { position: fixed; top: 0; bottom: 0; left: 0; z-index: 100; width: min(430px, 100vw); background: var(--white); overflow-y: auto; transform: translateX(-100%); transition: transform .2s ease; visibility: hidden; }
.gn-drawer.is-open { transform: none; visibility: visible; }
.gn-drawer-top { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 14px 24px; }
.gn-drawer-top .gn-logo img { width: 150px; }
.gn-drawer-quick { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px; background: var(--tint); padding: 18px 24px; }
.gn-drawer-quick a { display: flex; align-items: center; gap: 8px; font: 500 15px/1.5 var(--sans); color: var(--ink); text-decoration: none; }
.gn-drawer-quick a:hover { text-decoration: underline; }
.gn-drawer-list { list-style: none; margin: 0; padding: 0; }
.gn-drawer-list li { border-bottom: 1px solid var(--line); }
.gn-drawer-list a { display: block; padding: 21px 24px; font: 500 16px/1.4 var(--sans); color: var(--ink); text-decoration: none; }
.gn-drawer-list a:hover { background: var(--tint-blue); }
.gn-drawer-list .is-current a { color: var(--blue); box-shadow: inset 4px 0 0 var(--blue); }

.wrap { flex: 1; width: 100%; max-width: var(--max); margin: 0 auto; padding: 28px 16px 56px; outline: none; }
.card { background: var(--white); border: 1px solid var(--line); padding: 30px 28px; margin-bottom: 20px; }
@media (max-width: 520px) { .card { padding: 24px 18px; } .wrap { padding-top: 18px; } }

/* Type */
.headline { font: 700 32px/1.2 var(--serif); letter-spacing: -0.3px; margin: 12px 0 12px; color: var(--ink); }
.headline--sm { font-size: 26px; }
@media (max-width: 520px) { .headline { font-size: 26px; } .headline--sm { font-size: 23px; } }
.subhead { margin: 0 0 24px; color: var(--muted); font-size: 16px; }
.section-title { font: 700 22px/1.25 var(--serif); margin: 0 0 12px; }
.label { display: inline-block; font: 700 12px/1.4 var(--sans); letter-spacing: 0.8px; text-transform: uppercase; color: var(--blue); }
.tag { display: inline-block; background: var(--blue); color: var(--white); font: 600 11px/1 var(--sans); letter-spacing: 0.8px; text-transform: uppercase; padding: 6px 8px; }
/* Staging only: quiz not yet approved for production (live: false in quizzes.js). */
.tag-draft { background: #ffd400; color: #111; }
.meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.meta-item { font: 500 12px/1 var(--sans); letter-spacing: 0.6px; text-transform: uppercase; color: var(--muted); }
.meta-dot { width: 4px; height: 4px; background: var(--faint); border-radius: 50%; }
.micro { font: 400 13px/1.5 var(--sans); color: var(--muted); margin: 12px 0 0; text-align: center; }
.micro--warn { color: var(--wrong); }
.micro a { color: var(--link); font-weight: 600; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px;
  font: 700 14px/1 var(--sans); letter-spacing: 0.8px; text-transform: uppercase; text-decoration: none;
  border: 1px solid var(--blue); border-radius: 4px; cursor: pointer; transition: background .15s, color .15s;
}
.btn-primary { width: 100%; background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--navy); }
.btn-primary:disabled { opacity: .6; cursor: progress; }
.btn-ghost { background: var(--white); color: var(--blue); }
.btn-ghost:hover { background: var(--tint-blue); }
.btn-whatsapp { background: #128c4b; border-color: #128c4b; color: var(--white); }
.btn-whatsapp:hover { background: #0e723d; }
.btn-row { display: grid; gap: 10px; }
@media (min-width: 521px) { .btn-row { grid-template-columns: 1fr 1fr; } }

/* Start / about */
.about p { margin: 0 0 12px; color: var(--ink-2); }
.about .label { margin-top: 10px; }
.steps { margin: 10px 0 0; padding: 0; list-style: none; counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding: 10px 0 10px 44px; border-top: 1px solid var(--line); font-size: 15px; }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: 9px; width: 28px; height: 28px; display: grid; place-items: center;
  background: var(--blue); color: var(--white); border-radius: 50%; font: 700 13px/1 var(--sans);
}
.disclaimer { font: 400 12px/1.5 var(--sans); color: var(--muted); margin-top: 18px !important; }

/* Question */
.progress { margin-bottom: 20px; }
.progress-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.progress-count { font: 700 13px/1 var(--sans); color: var(--ink); }
.progress-bar { display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; }
.progress-bar i { height: 4px; background: var(--line); }
.progress-bar i.done { background: var(--blue); }
.progress-bar i.current { background: var(--blue); opacity: .35; }
.q-cat { display: inline-block; font: 700 12px/1 var(--sans); letter-spacing: .8px; text-transform: uppercase; color: var(--white); background: var(--ink); padding: 6px 8px; margin-bottom: 12px; }
.q-text { font: 700 24px/1.3 var(--serif); margin: 0 0 22px; }
@media (max-width: 520px) { .q-text { font-size: 21px; } }
.answers { display: grid; gap: 10px; }
@media (min-width: 521px) { .answers { grid-template-columns: 1fr 1fr; } }
.answer {
  display: flex; align-items: center; gap: 14px; width: 100%; min-height: 58px; padding: 12px 14px; text-align: left;
  background: var(--white); border: 1px solid var(--line); border-radius: 4px; font: 500 16px/1.35 var(--sans);
  cursor: pointer; transition: background .12s, color .12s, border-color .12s; -webkit-tap-highlight-color: transparent;
}
.answer-letter { flex: none; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--tint-blue); color: var(--blue); font: 700 13px/1 var(--sans); }
@media (hover: hover) { .answer:not(:disabled):hover { border-color: var(--blue); background: var(--tint-blue); } }
.answer.is-picked { background: var(--blue); border-color: var(--blue); color: var(--white); }
.answer.is-picked .answer-letter { background: var(--white); color: var(--blue); }
.answer:disabled { cursor: default; }
.answer:disabled:not(.is-picked) { opacity: .45; }
.gn-icon-btn:focus-visible, .gn-header a:focus-visible, .gn-drawer a:focus-visible, .answer:focus-visible, .btn:focus-visible, .ad-close:focus-visible, .quiz-card:focus-visible { outline: 3px solid var(--link); outline-offset: 2px; }
.restart { text-align: center; margin: 0; font: 400 13px/1 var(--sans); }
.restart a { color: var(--muted); }

/* Photos and archive placeholders */
.q-img, .cover, .review-img { margin: 0; }
.q-img { margin: 0 0 18px; background: var(--ink); display: flex; justify-content: center; }
.q-img img { width: auto; max-width: 100%; max-height: min(62vh, 460px); object-fit: contain; }
.ph {
  aspect-ratio: 3 / 2; width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  background: repeating-linear-gradient(135deg, #e9e2d4 0 14px, #e3dbcb 14px 28px); color: #8a7d64; text-align: center; padding: 18px;
}
.ph-label { font: 600 12px/1.3 var(--sans); letter-spacing: .8px; text-transform: uppercase; }
.ph-brief { font: 500 13px/1.45 var(--sans); color: var(--ink-2); background: rgba(255,255,255,.8); padding: 8px 10px; max-width: 460px; }
.cover { margin: -30px -28px 22px; }
.cover .ph, .cover img { aspect-ratio: 16 / 9; object-fit: cover; }
.cover figcaption, .review-img figcaption { font: 400 11px/1.4 var(--sans); color: var(--muted); padding: 6px 28px 0; }
@media (max-width: 520px) { .cover { margin: -24px -18px 18px; } .cover figcaption { padding: 6px 18px 0; } }
.review-img { margin: 6px 0 10px; max-width: 360px; }
.review-img figcaption { padding: 4px 0 0; }

/* Result */
.result, .locked { text-align: center; }
.score { display: flex; justify-content: center; align-items: baseline; gap: 8px; margin: 8px 0 0; font-family: var(--serif); }
.score strong { font-size: 88px; line-height: 1; font-weight: 700; color: var(--blue); }
.score span { font-size: 28px; color: var(--muted); }
.score--locked { margin: 18px 0 24px; }
.score--locked strong { color: var(--line); }
.result .subhead { margin-bottom: 24px; }
.next { border: 1px solid var(--line); border-top: 3px solid var(--blue); background: var(--tint-blue); padding: 20px; margin: 0 0 18px; text-align: left; }
.next-title { font: 700 19px/1.3 var(--serif); margin: 6px 0 16px; }
.next-bottom .next { margin: 0; }

/* Review */
.review-list { list-style: none; margin: 0; padding: 0; }
.review-item { border-top: 1px solid var(--line); padding: 18px 0; }
.review-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.review-num { width: 26px; height: 26px; display: grid; place-items: center; background: var(--blue); color: var(--white); border-radius: 50%; font: 700 12px/1 var(--sans); }
.review-mark { font: 700 12px/1 var(--sans); letter-spacing: .8px; text-transform: uppercase; }
.review-cat { margin-left: auto; font: 600 11px/1 var(--sans); letter-spacing: .8px; text-transform: uppercase; color: var(--muted); }
.is-right .review-mark { color: var(--right); }
.is-wrong .review-mark { color: var(--wrong); }
.review-yours, .review-correct { font: 500 15px/1.4 var(--sans); margin: 0 0 4px; }
.review-yours { color: var(--wrong); text-decoration: line-through; text-decoration-thickness: 1px; }
.review-yours span, .review-correct span { display: inline-block; min-width: 96px; font-size: 11px; font-weight: 600; letter-spacing: .8px; text-transform: uppercase; color: var(--muted); text-decoration: none; }
.review-explain { font-size: 15px; color: var(--ink-2); margin: 8px 0 0; }

/* Home */
.home-intro { text-align: center; margin: 8px 0 24px; }
.home-intro .headline { margin: 6px 0 8px; }
.home-intro .subhead { margin: 0; }
.quiz-list { list-style: none; margin: 0; padding: 0; }
.quiz-card { display: block; text-decoration: none; color: inherit; padding-top: 0; transition: border-color .15s; }
.quiz-card:hover { border-color: var(--blue); }
.quiz-card-img { display: block; margin: 0 -28px 20px; }
.quiz-card-img .ph, .quiz-card-img img { aspect-ratio: 16 / 7; object-fit: cover; }
@media (max-width: 520px) { .quiz-card-img { margin: 0 -18px 18px; } }
.quiz-card-title { font: 700 23px/1.25 var(--serif); margin: 14px 0 8px; }
.quiz-card:hover .quiz-card-title { color: var(--blue); }
.quiz-card-sub { margin: 0 0 18px; font-size: 15px; color: var(--muted); }
.quiz-card-cta { font: 700 13px/1 var(--sans); letter-spacing: .8px; text-transform: uppercase; color: var(--blue); }
@media (max-width: 520px) { .quiz-card-title { font-size: 20px; } }

/* Footer */
.site-footer { background: var(--ink); color: var(--faint); padding: 36px 20px 40px; text-align: center; font: 400 12px/1.6 var(--sans); }
.footer-logo { margin: 0 auto 18px; filter: brightness(0) invert(1); width: 160px; }
.footer-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 22px; margin-bottom: 14px; }
.footer-links a { color: var(--line); text-decoration: none; font-size: 13px; }
.footer-links a:hover { text-decoration: underline; }
.footer-copy { margin: 0; }

/* Ads */
.ad-loading, .ad-overlay { position: fixed; inset: 0; z-index: 1000; background: rgba(12, 18, 21, .82); display: flex; align-items: center; justify-content: center; }
.ad-loading { flex-direction: column; gap: 14px; color: var(--white); font: 500 14px/1 var(--sans); }
.spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid rgba(255,255,255,.25); border-top-color: var(--white); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.ad-frame { width: min(92vw, 420px); background: var(--white); }
.ad-bar { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-bottom: 1px solid var(--line); font: 500 12px/1 var(--sans); }
.ad-label { flex: 1; color: var(--muted); }
.ad-count { font-weight: 700; }
.ad-close { min-width: 32px; height: 32px; padding: 0 8px; background: var(--white); border: 1px solid var(--line); cursor: pointer; font: 700 13px/1 var(--sans); }
.ad-close--done { background: var(--blue); color: var(--white); border-color: var(--blue); text-transform: uppercase; letter-spacing: .8px; padding: 0 14px; }
.ad-creative { aspect-ratio: 6 / 5; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; background: repeating-linear-gradient(45deg, #f3f3f3 0 12px, #ebebeb 12px 24px); text-align: center; padding: 20px; }
.ad-creative strong { font-size: 22px; }
.ad-creative span { font-size: 12px; color: var(--muted); }
.ad-creative-tag { background: #ffd54a; color: var(--ink) !important; padding: 4px 8px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; }
.ad-progress { height: 4px; background: var(--line); }
.ad-progress i { display: block; height: 100%; width: 0; background: var(--blue); animation: grow linear forwards; }
@keyframes grow { to { width: 100%; } }
.ad-slot { margin: 40px auto 8px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.ad-slot-label { font: 500 10px/1 var(--sans); letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); }
.ad-slot-box { max-width: 100%; }
.ad-mock-mpu { display: grid; place-items: center; max-width: 100%; background: repeating-linear-gradient(45deg, #f1f1f1 0 10px, #e9e9e9 10px 20px); border: 1px dashed #c9c9c9; font: 600 12px/1 var(--sans); color: var(--muted); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition: none !important; } }

/* Staging review banner */
.env-banner { position: sticky; top: 0; z-index: 200; background: #ffd54a; color: var(--ink); text-align: center; font: 500 12px/1.4 var(--sans); padding: 7px 12px; }
.env-banner strong { font-weight: 700; letter-spacing: 1px; margin-right: 8px; }
