/* TenderGulf. White, Gulf blue, lagoon and ink. The arch is the one shaped element; everything else is quiet. */
:root {
  --lagoon: #12B5A6;
  --ink: #0B1A2E;
  --ink-2: #2B3A4F;
  --muted: #56657A;
  --teal: #0A47C9;
  --teal-deep: #0836A0;
  --teal-soft: #E6EEFC;
  --stone: #E6EDF6;
  --stone-soft: #F3F6FA;
  --copper: #C2341B;
  --copper-soft: #FCE9E5;
  --line: #D5DEE9;
  --white: #FFFFFF;
  --wrap: 74rem;
  --display: "Readex Pro", "Helvetica Neue", Arial, sans-serif;
  --text: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --arabic: "IBM Plex Sans Arabic", "Geeza Pro", Tahoma, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--white); color: var(--ink); font-family: var(--text); font-size: 1.0625rem; line-height: 1.6; }
img { max-width: 100%; }
a { color: var(--teal); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--copper); outline-offset: 2px; }
h1, h2, h3, .d { font-family: var(--display); font-weight: 500; line-height: 1.12; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.2rem, 4.6vw, 3.5rem); margin: 0; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 2.6vw, 2.125rem); margin: 0; }
h3 { font-size: 1.25rem; margin: 0; }
p { margin: 0; }
.ar { font-family: var(--arabic); direction: rtl; text-align: right; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--white); padding: 0.5rem 0.75rem; z-index: 10; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: 1.25rem; padding-right: 1.25rem; }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; color: var(--muted); }
.lede { font-size: 1.1875rem; line-height: 1.6; color: var(--ink-2); max-width: 36em; }

/* Shell */
header.site { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.bar { display: flex; align-items: center; gap: 0.75rem 1.75rem; min-height: 4.25rem; flex-wrap: wrap; padding-top: 0.5rem; padding-bottom: 0.5rem; }
.brand { display: inline-flex; align-items: center; gap: 0.5rem; font-family: var(--display); font-weight: 600; font-size: 1.4rem; letter-spacing: -0.02em; color: var(--ink); text-decoration: none; white-space: nowrap; }
.brand svg { width: 1.9rem; height: 1.9rem; flex: none; }
nav.main { display: flex; flex-wrap: wrap; gap: 0.25rem 1.4rem; flex: 1 1 auto; }
nav.main a { color: var(--ink); text-decoration: none; padding: 0.35rem 0; font-size: 0.97rem; }
nav.main a[aria-current="page"] { color: var(--teal); box-shadow: inset 0 -2px 0 var(--teal); }
nav.main a:hover { color: var(--teal); }

.button { display: inline-block; background: var(--teal); color: var(--white); text-decoration: none; font-weight: 500; padding: 0.8rem 1.35rem; border-radius: 999px; border: 1.5px solid var(--teal); line-height: 1.2; font-family: var(--text); font-size: 1rem; cursor: pointer; }
.button:hover { background: var(--teal-deep); border-color: var(--teal-deep); color: var(--white); }
.button.quiet { background: transparent; color: var(--ink); border-color: var(--ink); }
.button.quiet:hover { background: var(--stone-soft); color: var(--ink); }
.button.ink { background: var(--ink); border-color: var(--ink); }
.button.light { background: var(--white); border-color: var(--white); color: var(--ink); }
.button.small { padding: 0.6rem 1.05rem; font-size: 0.95rem; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }

footer.site { background: var(--ink); color: #B8C4D6; margin-top: 0; }
footer.site a { color: var(--white); }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 2rem; padding-top: 3rem; padding-bottom: 2rem; font-size: 0.95rem; }
.cols ul { list-style: none; margin: 0.5rem 0 0; padding: 0; line-height: 1.9; }
.foot-head { color: var(--white); font-weight: 600; }
.brand-foot { display: flex; align-items: center; gap: 0.5rem; font-family: var(--display); font-weight: 600; font-size: 1.3rem; color: var(--white); margin-bottom: 0.5rem; }
.brand-foot svg { width: 1.7rem; height: 1.7rem; }
.fine { padding-top: 1rem; padding-bottom: 2rem; font-size: 0.85rem; border-top: 1px solid #22324A; }

/* Sections */
.sec { padding-top: 4.5rem; padding-bottom: 4.5rem; }
.sec.tight { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.band-stone { background: var(--stone-soft); }
.band-teal { background: var(--teal); color: var(--white); }
.band-ink { background: var(--ink); color: var(--white); }
.head-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1rem 2rem; }
.head-row p { margin-top: 0.5rem; }

/* Hero with the arch */
.hero { display: flex; flex-wrap: wrap; gap: 3rem; align-items: flex-end; padding-top: 3.5rem; padding-bottom: 4.5rem; }
.hero > div:first-child { flex: 1 1 28rem; }
.hero .lede { margin-top: 1.5rem; }
.hero .for { margin-top: 1.5rem; font-size: 0.95rem; color: var(--muted); max-width: 38em; }
.arch { background: var(--stone); border-radius: 16rem 16rem 6px 6px; padding: 7rem 2.5rem 2.5rem; }
.hero .arch { flex: 1 1 28rem; }
.arch h2 { text-align: center; font-size: 1.75rem; }
.arch .sub { text-align: center; margin: 0.6rem auto 0; max-width: 24em; color: var(--ink-2); }
.lookup { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.5rem; }
.lookup input { flex: 1 1 13rem; font: inherit; font-size: 1.0625rem; padding: 0.85rem 1.1rem; border: 1px solid #AEBBCB; border-radius: 999px; background: var(--white); color: var(--ink); min-width: 0; }
.lookup input:focus { outline: 3px solid var(--teal); outline-offset: 1px; }
.covers { margin-top: 1.5rem; background: var(--white); border-radius: 6px; padding: 0.3rem 1.3rem; }
.covers div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.8rem 0; border-bottom: 1px solid var(--stone); font-size: 0.95rem; }
.covers div:last-child { border-bottom: none; }
.covers span:last-child { color: var(--muted); text-align: right; }

/* Tender table on the home page */
.tbl { background: var(--white); border-radius: 6px; overflow-x: auto; margin-top: 1.5rem; }
.tbl-in { min-width: 56rem; padding: 0 1.5rem; }
.trow { display: grid; grid-template-columns: 5rem 9rem minmax(0, 1.25fr) minmax(0, 1fr) 10rem; gap: 1.25rem; align-items: center; padding: 1.1rem 0; border-top: 1px solid var(--line); }
.trow.th { border-top: none; font-size: 0.8rem; color: var(--muted); }
.trow .num { font-family: var(--display); font-size: 2rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.trow .num.soon { color: var(--copper); }
.trow .ref { font-weight: 600; font-size: 0.95rem; }
.trow .en a { color: var(--ink); text-decoration: none; }
.trow .en a:hover { color: var(--teal); text-decoration: underline; }
.trow .en small { display: block; color: var(--muted); font-size: 0.85rem; margin-top: 0.2rem; }
.trow .ar { color: var(--muted); font-size: 0.95rem; line-height: 1.6; }
.trow .ar, .what .ar { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.trow .who { font-size: 0.9rem; color: var(--ink-2); }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip { display: inline-block; padding: 0.45rem 0.9rem; border-radius: 999px; font-size: 0.9rem; border: 1px solid var(--line); color: var(--ink); text-decoration: none; background: var(--white); font-family: var(--text); cursor: pointer; }
.chip[aria-pressed="true"], .chip.on { background: var(--ink); color: var(--white); border-color: var(--ink); }

/* Two readers */
.check { border: 1px solid var(--line); border-radius: 6px; overflow-x: auto; margin-top: 1.75rem; }
.check-in { min-width: 52rem; }
.crow { display: grid; grid-template-columns: minmax(0, 1fr) 9rem minmax(0, 1fr); border-top: 1px solid var(--line); }
.crow > div { padding: 1rem 1.25rem; font-size: 1rem; line-height: 1.55; }
.crow > div:nth-child(2) { text-align: center; font-size: 0.875rem; color: var(--muted); border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
.crow.th { border-top: none; background: var(--stone-soft); font-weight: 600; }
.crow.th > div:nth-child(2) { font-weight: 400; }

/* Big number band */
.bignum { display: flex; flex-wrap: wrap; gap: 2rem 3rem; align-items: center; }
.bignum .n { font-family: var(--display); font-size: clamp(4rem, 9vw, 5.5rem); font-weight: 600; line-height: 1; flex: 0 1 22rem; }
.bignum .n span { font-size: 0.45em; font-weight: 400; }
.bignum p { font-family: var(--display); font-size: 1.6rem; line-height: 1.35; }
.bignum > div { flex: 1 1 24rem; }

/* Prices under arches */
.prices { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1.1rem; margin-top: 1.75rem; }
.price { background: var(--stone); border-radius: 8rem 8rem 6px 6px; padding: 4.6rem 1.5rem 1.8rem; text-align: center; }
.price .amt { font-family: var(--display); font-size: 2.3rem; font-weight: 600; margin-top: 0.4rem; }
.price .note { font-size: 0.9rem; color: var(--muted); margin-top: 0.3rem; }
.price.dark { background: var(--ink); color: var(--white); }
.price.dark .note { color: #B8C4D6; }
.price a { display: inline-block; margin-top: 0.8rem; font-size: 0.95rem; }
.price.dark a { color: var(--white); }

/* FAQ */
.faq { margin-top: 1.5rem; max-width: 52rem; }
.faq details { border-top: 1px solid var(--line); padding: 1rem 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 1.0625rem; }
.faq details p { margin-top: 0.6rem; color: var(--ink-2); }

/* Register */
.filters { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; margin-top: 1.75rem; }
.filters input { flex: 1 1 18rem; font: inherit; padding: 0.7rem 1rem; border: 1px solid var(--line); border-radius: 999px; min-width: 0; }
.register { list-style: none; margin: 1.5rem 0 0; padding: 0; }
.tender { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr) minmax(0, 17rem); gap: 1.25rem 1.75rem; padding: 1.4rem 0; border-top: 1px solid var(--line); }
.tender[hidden] { display: none; }
.when { text-align: left; }
.days { display: block; font-family: var(--display); font-size: 2.2rem; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; }
.days.soon { color: var(--copper); }
.unit { font-size: 0.8rem; color: var(--muted); }
.what .en { font-weight: 500; color: var(--ink); text-decoration: none; font-size: 1.0625rem; }
.what .en:hover { color: var(--teal); text-decoration: underline; }
.what .en.pending { color: var(--muted); }
.what .ar { color: var(--muted); font-size: 0.95rem; margin-top: 0.35rem; line-height: 1.7; }
.meta { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem 1rem; font-size: 0.875rem; }
.meta dt { color: var(--muted); }
.meta dd { margin: 0; }

/* Tender detail and facts */
.crumb { font-size: 0.95rem; margin-bottom: 1rem; }
.facts { margin: 1.75rem 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts > div { padding: 1rem 1.25rem 1rem 0; }
.facts dt { font-size: 0.8rem; color: var(--muted); }
.facts dd { margin: 0.25rem 0 0; font-weight: 500; }
.title-ar { margin-top: 1rem; }
.title-ar .label { font-size: 0.8rem; color: var(--muted); }
.title-ar p { font-size: 1.25rem; line-height: 1.8; color: var(--ink-2); margin-top: 0.2rem; }
.countdown { display: inline-block; margin-top: 1.25rem; background: var(--copper-soft); color: var(--copper); font-weight: 600; padding: 0.4rem 0.9rem; border-radius: 999px; font-size: 0.95rem; }
.countdown.calm { background: var(--teal-soft); color: var(--teal-deep); }
.docs { padding-left: 1.2rem; }
.cta-box { background: var(--stone); border-radius: 6px; padding: 2rem 2.2rem; display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center; justify-content: space-between; margin-top: 2.5rem; }
.cta-box > div { max-width: 38em; }
.cta-box p { margin-top: 0.5rem; color: var(--ink-2); }
.cta-box.dark { background: var(--ink); color: var(--white); }
.cta-box.dark p { color: #B8C4D6; }

/* Verdict arch and bars (brief pages) */
.split { display: flex; flex-wrap: wrap; gap: 2rem; align-items: stretch; }
.split > * { flex: 1 1 26rem; }
.verdict { background: var(--ink); color: var(--white); border-radius: 13rem 13rem 6px 6px; padding: 6rem 2.5rem 2.25rem; text-align: center; }
.verdict .k { color: #B8C4D6; font-size: 0.95rem; }
.verdict h2 { margin-top: 0.6rem; font-size: 1.85rem; line-height: 1.2; }
.verdict p { margin-top: 1rem; color: #B8C4D6; }
.list-plain { list-style: none; margin: 1.25rem 0 0; padding: 0; }
.list-plain li { padding: 0.9rem 0; border-top: 1px solid var(--line); }
.list-plain li strong { display: block; font-family: var(--display); font-weight: 500; font-size: 1.1rem; }
.steps { list-style: none; margin: 1.25rem 0 0; padding: 0; display: grid; gap: 0.9rem; counter-reset: s; max-width: 44rem; }
.steps li { display: grid; grid-template-columns: 2.75rem 1fr; gap: 0.9rem; align-items: start; counter-increment: s; }
.steps li::before { content: counter(s); width: 2.5rem; height: 2.5rem; border-radius: 50%; background: var(--stone); display: flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 600; }
.steps li span { padding-top: 0.45rem; }

/* Timeline */
.timeline { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); margin-top: 1.5rem; }
.timeline > div { padding: 1.1rem 1.25rem 0 0; border-top: 3px solid var(--line); }
.timeline > div.key { border-top-color: var(--teal); }
.timeline > div.open { border-top-style: dashed; }
.timeline .t { font-family: var(--display); font-weight: 600; }
.timeline .key .t { color: var(--teal); }
.timeline p { font-size: 0.95rem; margin-top: 0.35rem; line-height: 1.5; }

/* Emirates coverage */
.emirates { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0.35rem; margin-top: 1rem; }
.emirates span { display: flex; align-items: center; justify-content: center; min-height: 2.9rem; border-radius: 6px; font-size: 0.78rem; font-weight: 500; text-align: center; line-height: 1.15; background: var(--white); color: var(--muted); border: 1px solid var(--line); padding: 0.2rem; }
.emirates span.cur { background: var(--ink); color: var(--white); border-color: var(--ink); }
.emirates span.on { background: var(--teal); color: var(--white); border-color: var(--teal); }
.em-label { font-size: 0.875rem; margin-top: 0.5rem; color: var(--ink-2); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1.1rem; margin-top: 1.5rem; }
.card { border: 1px solid var(--line); border-radius: 6px; padding: 1.4rem; }
.card .v { font-size: 0.9rem; font-weight: 600; color: var(--teal); }
.card .v.no { color: var(--copper); }
.card h3 { margin-top: 0.4rem; }
.card p { font-size: 0.95rem; color: var(--ink-2); margin-top: 0.8rem; line-height: 1.5; }
.mini { display: flex; flex-wrap: wrap; gap: 0.25rem; margin-top: 0.9rem; }
.mini span { width: 2.5rem; text-align: center; font-size: 0.72rem; padding: 0.3rem 0; border-radius: 4px; background: var(--stone); }
.mini span.on { background: var(--teal); color: var(--white); }

/* Guide with margin sources */
.guide-head { background: var(--stone); }
.guide-head .wrap { padding-top: 3.5rem; padding-bottom: 3rem; }
.guide-head .k { font-size: 0.95rem; color: var(--muted); }
.guide-head h1 { margin-top: 0.75rem; max-width: 16em; }
.guide-head .lede { margin-top: 1.25rem; }
.para { display: grid; grid-template-columns: minmax(0, 42rem) minmax(0, 16rem); gap: 1rem 3.5rem; margin-top: 1.4rem; }
.para p { font-size: 1.125rem; line-height: 1.75; }
.src { font-size: 0.875rem; line-height: 1.5; color: var(--muted); border-left: 2px solid var(--stone); padding-left: 0.9rem; align-self: start; }
.known { display: grid; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); gap: 1.1rem; margin-top: 2.5rem; max-width: 62rem; }
.known > div { border-radius: 6px; padding: 1.5rem; }
.known > div:first-child { background: var(--teal-soft); }
.known > div:last-child { background: var(--copper-soft); }
.known p { margin-top: 0.7rem; }
.guide h2 { margin-top: 3.5rem; }

/* Markdown documents (samples, long guide, about) */
.doc { max-width: 46rem; padding-top: 3rem; padding-bottom: 4rem; }
.doc.wide { max-width: 64rem; }
.doc h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.doc h2 { margin-top: 2.75rem; font-size: 1.6rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.doc h3 { margin-top: 1.75rem; }
.doc p { margin-top: 1rem; }
.doc ul, .doc ol { margin: 1rem 0 0; padding-left: 1.3rem; }
.doc li { margin-top: 0.45rem; }
.doc hr { border: none; border-top: 1px solid var(--line); margin: 2.5rem 0; }
.doc table { width: 100%; border-collapse: collapse; margin-top: 1.25rem; font-size: 0.9rem; display: block; overflow-x: auto; }
.doc th { text-align: left; font-weight: 600; background: var(--stone-soft); border-bottom: 1px solid var(--line); padding: 0.65rem 0.75rem; vertical-align: bottom; }
.doc td { border-bottom: 1px solid var(--line); padding: 0.65rem 0.75rem; vertical-align: top; }
.doc blockquote { margin: 1.25rem 0 0; padding: 0.25rem 0 0.25rem 1rem; border-left: 3px solid var(--teal); color: var(--ink-2); }
.doc code { font-size: 0.9em; background: var(--stone-soft); padding: 0.1rem 0.3rem; border-radius: 3px; }
.doc-head { background: var(--stone-soft); }
.doc-head .wrap { padding-top: 2.5rem; padding-bottom: 2rem; }
.doc-head .k { font-size: 0.95rem; color: var(--muted); }
.doc-head h1 { margin-top: 0.5rem; max-width: 22em; font-size: clamp(2rem, 4vw, 2.8rem); }
.doc-head .lede { margin-top: 1rem; }

/* Gulf file */
.gf-search { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.gf-results { list-style: none; margin: 1rem 0 0; padding: 0; }
.gf-results li { border-top: 1px solid var(--line); }
.gf-results a { display: flex; justify-content: space-between; gap: 1rem; padding: 0.85rem 0.25rem; color: var(--ink); text-decoration: none; }
.gf-results a:hover, .gf-results a:focus-visible { background: var(--white); color: var(--teal); }
.gf-results .src-tags { font-size: 0.8rem; color: var(--muted); white-space: nowrap; }
.file-head { background: var(--stone); border-radius: 6px; padding: 2rem; margin-top: 2rem; }
.file-head h2 { font-size: 2.2rem; }
.panels { display: grid; grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr)); gap: 1.25rem; margin-top: 1.25rem; }
.panel { border: 1px solid var(--line); border-radius: 6px; padding: 1.6rem; }
.panel.hot { border: 2px solid var(--teal); }
.kv { display: grid; grid-template-columns: 11rem 1fr; gap: 0.55rem 1rem; margin-top: 1rem; font-size: 0.95rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
.flag { margin-top: 1.1rem; background: var(--teal-soft); border-radius: 6px; padding: 0.9rem 1rem; font-size: 0.95rem; line-height: 1.55; }
.ptable { width: 100%; border-collapse: collapse; margin-top: 1rem; font-size: 0.95rem; }
.ptable th { text-align: left; font-weight: 400; font-size: 0.8rem; color: var(--muted); padding: 0.5rem 0.5rem 0.5rem 0; }
.ptable td { border-top: 1px solid var(--line); padding: 0.6rem 0.5rem 0.6rem 0; vertical-align: top; }

#gview { scroll-margin-top: 5rem; }
h1.title { font-size: clamp(1.8rem, 3.4vw, 2.6rem); max-width: 26em; }
@media (max-width: 760px) {
  .tbl-in { min-width: 0; padding: 0 1rem; }
  .trow { grid-template-columns: 3.2rem minmax(0, 1fr); gap: 0.3rem 0.9rem; }
  .trow > .num { grid-row: span 4; }
  .trow.th { display: none; }
  .trow .ar { display: none; }
  .check-in { min-width: 0; }
  .crow { grid-template-columns: 1fr; }
  .crow > div:nth-child(2) { text-align: left; border: none; padding-top: 0; padding-bottom: 0; }
  .crow.th { display: none; }
  .tender { grid-template-columns: 4rem minmax(0, 1fr); }
  .tender .meta { grid-column: 1 / -1; }
  .para { grid-template-columns: minmax(0, 1fr); }
  .kv { grid-template-columns: 9rem 1fr; }
  .arch { padding: 5rem 1.4rem 1.6rem; border-radius: 10rem 10rem 6px 6px; }
  .emirates { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .sec { padding-top: 3rem; padding-bottom: 3rem; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto; } }

.consent { position: fixed; left: 1rem; right: 1rem; bottom: 1rem; max-width: 34rem; margin: 0 auto; background: var(--white); color: var(--ink); border: 1px solid var(--haze); border-radius: 14px; box-shadow: 0 10px 30px rgba(11,26,46,.14); padding: 1rem 1.1rem; z-index: 50; display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; font-size: .92rem; }
.consent[hidden] { display: none; }
.consent p { margin: 0; flex: 1 1 16rem; }
.consent-actions { display: flex; gap: .5rem; }
