/* gulfconstructs.com — base styles. Colours are tokens so the brand palette can be swapped once the logo is in. */
@font-face { font-family: "Plex Arabic"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(/assets/fonts/plex-arabic-arabic-400.woff2) format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Plex Arabic"; font-style: normal; font-weight: 600; font-display: swap;
  src: url(/assets/fonts/plex-arabic-arabic-600.woff2) format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Plex Arabic"; font-style: normal; font-weight: 700; font-display: swap;
  src: url(/assets/fonts/plex-arabic-arabic-700.woff2) format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Plex Arabic"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(/assets/fonts/plex-arabic-latin-400.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Plex Arabic"; font-style: normal; font-weight: 600; font-display: swap;
  src: url(/assets/fonts/plex-arabic-latin-600.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Plex Arabic"; font-style: normal; font-weight: 700; font-display: swap;
  src: url(/assets/fonts/plex-arabic-latin-700.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

@font-face { font-family: "Gulf Serif"; font-style: normal; font-weight: 700; font-display: swap;
  src: url(/assets/fonts/naskh-arabic-700.woff2) format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Gulf Serif"; font-style: normal; font-weight: 700; font-display: swap;
  src: url(/assets/fonts/serif-latin-700.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --ink: #14181f;
  --muted: #5a6370;
  --paper: #ffffff;
  --paper-alt: #f4f4f6;
  --rule: #dfe0e6;
  --brand: #0b0a45;      /* logo navy: footer band */
  --brand-ink: #ffffff;
  --accent: #e3191f;     /* logo red: markers, rules */
  --accent-ink: #c4161c; /* red text on light backgrounds (AA contrast) */
  --link: #1f3a93;
  --wrap: 1180px;
  --serif: "Gulf Serif", Georgia, "Times New Roman", serif;
  --font: "Plex Arabic", "Segoe UI", Tahoma, "Noto Sans Arabic", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font); font-size: 1.0625rem; line-height: 1.8; overflow-wrap: break-word; }
img { max-width: 100%; height: auto; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { color: var(--accent-ink); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
h1, h2, h3 { line-height: 1.4; margin: 0 0 .6em; font-weight: 700; font-family: var(--serif); }
.card h3, .block h2 { font-family: var(--font); }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: 24px; }
.wrap.narrow { max-width: 780px; }

.skip { position: absolute; inset-inline-start: 8px; top: -60px; background: var(--paper); color: var(--ink); padding: 8px 14px; z-index: 10; }
.skip:focus { top: 8px; }

/* Header: light masthead with centred brand, sand-coloured section strip */
.site-header { background: var(--paper); }
.masthead { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px 24px; padding-block: 22px; }
.edition { margin: 0; color: var(--muted); font-size: .9rem; }
.brand { display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; min-width: 0; }
.brand:hover { color: var(--ink); }
.logo { display: block; width: 400px; max-width: 100%; height: auto; }
.brand .tag { font-size: .9rem; font-weight: 700; color: var(--brand); }
.lang { justify-self: end; color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; border: 1px solid var(--rule); padding: 4px 14px; border-radius: 2px; }
.lang:hover { border-color: var(--accent); color: var(--ink); }
.sections { background: var(--paper-alt); border-block: 1px solid var(--rule); }
.nav { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; margin: 0; padding: 0; }
.nav li + li { border-inline-start: 1px solid var(--rule); }
.nav a { display: block; color: var(--ink); text-decoration: none; font-weight: 700; font-size: .95rem; letter-spacing: .03em; padding: 12px 18px; border-bottom: 3px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--accent); color: var(--ink); }
:lang(en) .nav a { text-transform: uppercase; font-size: .88rem; }

/* Hero */
.hero { padding-block: 72px 56px; border-bottom: 1px solid var(--rule); text-align: center; }
.hero h1, .hero .lead { margin-inline: auto; }
.kicker { color: var(--accent-ink); font-weight: 700; font-size: .9rem; letter-spacing: .04em; text-transform: uppercase; margin-bottom: .8em; }
.hero h1 { font-size: clamp(1.9rem, 4.2vw, 3.1rem); max-width: 22ch; }
[lang="en"] .hero h1, .hero h1:lang(en) { max-width: 26ch; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 62ch; }
.status { display: inline-flex; text-align: start; align-items: center; gap: 10px; margin: .6em 0 0; padding: 8px 16px; background: var(--paper-alt); border-inline-start: 3px solid var(--accent); font-weight: 600; font-size: .98rem; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); flex: none; }

/* Blocks */
.block { padding-block: 56px; }
.block.alt { background: var(--paper-alt); }
.block h2 { font-size: 1.35rem; display: flex; align-items: center; gap: 12px; letter-spacing: .03em; }
:lang(en) .block h2 { text-transform: uppercase; font-size: 1.2rem; }
.block h2::before { content: ""; width: 12px; height: 12px; background: var(--accent); transform: rotate(45deg); flex: none; }
.block h2::after { content: ""; flex: 1; height: 1px; background: var(--rule); }
.cards { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0 32px; }
.cards.four { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.card { border-top: 1px solid var(--rule); padding-block: 20px 8px; }
.card h3 { font-size: 1.15rem; margin-bottom: .35em; }
.card h3::before { content: ""; display: block; width: 36px; height: 3px; background: var(--accent); margin-bottom: 14px; }
.card p { color: var(--muted); font-size: 1rem; }
.more { margin-top: 18px; font-weight: 600; }

/* Prose pages */
article.block h1 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); }
article.block h2 { font-size: 1.3rem; margin-top: 1.6em; text-transform: none; }
article.block h2::after { display: none; }
.updated { margin-top: 2.4em; color: var(--muted); font-size: .92rem; border-top: 1px solid var(--rule); padding-top: 14px; }

/* Error pages */
.error .code { font-size: 4rem; font-weight: 700; color: var(--accent-ink); line-height: 1; margin-bottom: .2em; }
.error-en { margin-top: 2.2em; padding-top: 1.4em; border-top: 1px solid var(--rule); }
.error-en h2::after { display: none; }

/* Footer */
.site-footer { background: var(--brand); color: rgba(255,255,255,.85); padding-block: 32px; font-size: .95rem; }
.site-footer a { color: #fff; }
.site-footer p { margin: .3em 0; }
.foot-links { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 0 0 14px; padding: 0; }

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .wrap { padding-inline: 16px; }
  .masthead { grid-template-columns: 1fr auto; padding-block: 14px; }
  .edition { display: none; }
  .brand { align-items: flex-start; gap: 4px; }
  .logo { width: 230px; }
  .brand .tag { font-size: .72rem; }
  .lang { padding: 3px 10px; font-size: .88rem; }
  .nav { justify-content: flex-start; }
  .nav a { padding: 10px 12px; font-size: .9rem; }
  .hero { padding-block: 44px 36px; }
  .lead { font-size: 1.08rem; }
  .block { padding-block: 40px; }
}

/* Articles */
.page-title { font-size: clamp(1.8rem, 3.6vw, 2.5rem); }
.cards.articles { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.card-kicker { color: var(--accent-ink); font-weight: 700; font-size: .82rem; letter-spacing: .03em; margin: 0 0 .3em; }
:lang(en) .card-kicker { text-transform: uppercase; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a:hover { color: var(--accent-ink); text-decoration: underline; }
.cards.articles .card h3 { font-family: var(--serif); font-size: 1.25rem; }
.card .date { font-size: .88rem; color: var(--muted); margin-top: -.4em; }
.article h1 { font-size: clamp(1.8rem, 3.8vw, 2.6rem); }
.article .meta { color: var(--muted); font-size: .92rem; border-block: 1px solid var(--rule); padding-block: 10px; margin-block: 1.4em 1.8em; }
.prose h2 { font-size: 1.35rem; margin-top: 1.8em; }
.prose ul { padding-inline-start: 1.3em; margin: 0 0 1em; }
.prose li { margin-bottom: .45em; }
.sources { margin-top: 2.6em; padding: 20px 22px; background: var(--paper-alt); border-inline-start: 3px solid var(--accent); }
.sources h2 { font-size: 1.15rem; margin-top: 0; }
.sources h2::before, .sources h2::after { display: none; }
.sources ol { margin: 0 0 .8em; padding-inline-start: 1.3em; font-size: .95rem; }
.sources li { margin-bottom: .55em; }
.sources .src-date, .sources .accessed { color: var(--muted); font-size: .9rem; }
.sources .accessed { margin: 0; }
.disclaimer { margin-top: 1.6em; color: var(--muted); font-size: .92rem; }
