/* ==========================================================================
   Dubai projects reference (/dubai-projects). Everything is under .dp-page.
   Tokens match projects.css and layout.css, so it reads as the same site.
   The page has only a light theme, like the rest of the site.
   ========================================================================== */
.dp-page {
  --ink: #142D54;
  --muted: #5A6B86;
  --line: #E9E4DA;
  --soft: #F8F6F1;
  --cream: #F8F1DE;
  --gold: #D4A843;
  --gold-ink: #8A6A16;
  --good: #0b7a0b;
  --good-bg: #E9F6E9;
  --warn: #8a5a00;
  --warn-bg: #FEF4DC;
  --serious: #a8481f;
  --serious-bg: #FCEDE6;
  --r-sm: 10px;
  --r: 16px;
  --sh: 0 1px 2px rgba(20, 45, 84, .05), 0 8px 24px rgba(20, 45, 84, .06);
  --max: 1350px;
  background: #fff;
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
.dp-page :is(h1, h2, h3, table, input, select, button) { font-family: inherit; }
.dp-page a { color: inherit; }

.dp-wrap { box-sizing: content-box; max-width: var(--max); margin: 0 auto; padding: 24px var(--hm-gutter, 56px) 72px; }
@media (max-width: 991px) { .dp-wrap { padding-inline: 16px; padding-top: 16px; padding-bottom: 48px; } }

.dp-visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---- buttons, fields ------------------------------------------------- */
.dp-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 22px; border: 1px solid var(--ink); border-radius: var(--r-sm); background: var(--ink); color: #fff; font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer; }
.dp-btn:hover { background: #0E2142; color: #fff; }
.dp-btn--ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.dp-btn--ghost:hover { background: var(--soft); color: var(--ink); }
.dp-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.dp-field > span { font-size: 14px; font-weight: 600; color: var(--muted); }
.dp-field :is(input, select) { width: 100%; min-height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--r-sm); background: #fff; color: var(--ink); font-size: 15px; }
.dp-field :is(input, select):focus { outline: 2px solid var(--ink); outline-offset: 1px; }
.dp-field--inline { flex-direction: row; align-items: center; gap: 10px; }
.dp-field--inline > span { white-space: nowrap; }
.dp-field--inline select { min-width: 170px; }
.dp-check { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 15px; cursor: pointer; }
.dp-check input { width: 18px; height: 18px; accent-color: var(--ink); }

/* ---- filters --------------------------------------------------------- */
.dp-filters { margin-bottom: 24px; padding: 18px; border: 1px solid var(--line); border-radius: var(--r); background: var(--soft); }
.dp-filters__grid { display: grid; grid-template-columns: 1.3fr 1.3fr 1fr 1fr 1fr; gap: 12px; }
.dp-filters__row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; margin-top: 10px; }
.dp-filters__acts { display: flex; gap: 8px; margin-inline-start: auto; }
@media (max-width: 991px) { .dp-filters__grid { grid-template-columns: 1fr 1fr; } .dp-field--grow { grid-column: 1 / -1; } }
@media (max-width: 575px) {
  .dp-filters__row { flex-direction: column; align-items: stretch; }
  .dp-field--inline { flex-direction: column; align-items: stretch; gap: 6px; }
  .dp-filters__acts { margin-inline-start: 0; }
  .dp-filters__acts > * { flex: 1; }
}
.dp-count { margin: 0 0 14px; color: var(--muted); font-size: 15px; }

/* ---- cards ----------------------------------------------------------- */
.dp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 991px) { .dp-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; } }
@media (max-width: 640px) { .dp-grid { grid-template-columns: 1fr; } }
.dp-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r); background: #fff; box-shadow: var(--sh); transition: transform .18s, box-shadow .18s; }
.dp-card:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(20, 45, 84, .06), 0 14px 32px rgba(20, 45, 84, .1); }
.dp-card__img { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--ink); }
.dp-card__img img { width: 100%; height: 100%; object-fit: cover; }
.dp-card__img .dp-pill { position: absolute; top: 12px; inset-inline-start: 12px; }
.dp-card__img .dp-pill.is-draft { inset-inline-start: auto; inset-inline-end: 12px; }
.dp-noimg { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 100%; color: rgba(255, 255, 255, .55); background: linear-gradient(155deg, #142D54, #24467c); }
.dp-noimg i { font-size: 44px; }
.dp-noimg--big { min-height: 320px; border-radius: var(--r); text-align: center; padding: 24px; }
.dp-noimg--big i { font-size: 64px; }
.dp-noimg--big span { font-size: 15px; color: rgba(255, 255, 255, .8); }
.dp-card__body { display: flex; flex: 1; flex-direction: column; gap: 8px; padding: 18px; }
.dp-card__usage { color: var(--gold-ink); font-size: 14px; font-weight: 600; }
.dp-card__title { margin: 0; font-size: 20px; font-weight: 700; line-height: 1.3; }
.dp-card__title a { text-decoration: none; }
.dp-card__title a:hover { text-decoration: underline; }
.dp-card__who { display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--muted); font-size: 15px; }
.dp-card__loc { display: inline-flex; align-items: center; gap: 4px; }
.dp-card__facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 8px 0 0; padding-top: 14px; border-top: 1px solid var(--line); }
.dp-card__facts dt { margin-bottom: 2px; color: var(--muted); font-size: 13.5px; font-weight: 500; }
.dp-card__facts dd { margin: 0; font-size: 15px; font-weight: 600; }

/* ---- status + progress ----------------------------------------------- */
.dp-pill { display: inline-block; padding: 4px 11px; border-radius: 999px; background: #fff; color: var(--ink); font-size: 13.5px; font-weight: 700; box-shadow: 0 1px 3px rgba(0, 0, 0, .15); }
.dp-pill.is-completed, .dp-pill.is-handed-over { background: var(--good-bg); color: var(--good); }
.dp-pill.is-under-construction { background: #E6EFFA; color: #1f5fa8; }
.dp-pill.is-announced { background: var(--cream); color: var(--gold-ink); }
.dp-pill.is-delayed { background: var(--serious-bg); color: var(--serious); }
.dp-pill.is-draft { background: var(--ink); color: #fff; }
.dp-progress__head { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 6px; font-size: 14.5px; color: var(--muted); }
.dp-progress__head b { color: var(--ink); }
.dp-progress__bar { height: 6px; overflow: hidden; border-radius: 3px; background: var(--line); }
.dp-progress__bar span { display: block; height: 100%; border-radius: 3px; background: var(--ink); }
.dp-progress--big .dp-progress__bar { height: 8px; }
.dp-card .dp-progress { margin-top: 6px; }

.dp-st { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; font-size: 13.5px; font-weight: 600; white-space: nowrap; }
.dp-st i { font-size: 12px; }
.dp-st.is-ok { background: var(--good-bg); color: var(--good); }
.dp-st.is-warn { background: var(--warn-bg); color: var(--warn); }
.dp-st.is-none { background: #EEF1F5; color: var(--muted); }

/* ---- empty + banners ------------------------------------------------- */
.dp-empty { max-width: 560px; margin: 32px auto; padding: 48px 24px; border: 1px dashed var(--line); border-radius: var(--r); text-align: center; }
.dp-empty i { font-size: 40px; color: var(--gold); }
.dp-empty h2 { margin: 12px 0 8px; font-size: 21px; font-weight: 700; }
.dp-empty p { margin: 0 0 16px; color: var(--muted); }
.dp-banner { display: flex; gap: 12px; margin-bottom: 14px; padding: 14px 16px; border-radius: var(--r-sm); background: var(--warn-bg); color: #5c4200; font-size: 15px; line-height: 1.7; }
.dp-banner i { font-size: 20px; flex: none; }
.dp-banner a { font-weight: 600; text-decoration: underline; margin-inline-start: 6px; }
.dp-banner.is-draft { background: var(--ink); color: #fff; }
.dp-banner.is-serious { background: var(--serious-bg); color: #7c3414; }
.dp-pages { margin-top: 28px; display: flex; justify-content: center; }

/* ---- sections -------------------------------------------------------- */
.dp-sections { position: sticky; top: 72px; z-index: 5; display: flex; gap: 2px; margin: 0 0 8px; padding: 6px; overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, .96); scrollbar-width: none; }
.dp-sections::-webkit-scrollbar { display: none; }
.dp-sections a { flex: none; padding: 8px 14px; border-radius: 8px; color: var(--muted); font-size: 15px; font-weight: 600; text-decoration: none; }
.dp-sections a:hover { background: var(--soft); color: var(--ink); }
.dp-section { padding: 36px 0 12px; scroll-margin-top: 120px; }
.dp-section + .dp-section { border-top: 1px solid var(--line); margin-top: 28px; }
.dp-section h2 { margin: 0 0 18px; font-size: 26.5px; font-weight: 700; }
.dp-section h3 { margin: 0 0 8px; font-size: 18px; font-weight: 700; }
.dp-note { margin: 0 0 12px; color: var(--muted); font-size: 15px; line-height: 1.7; }
.dp-src { margin-inline-start: 6px; color: var(--muted); font-size: 13.5px; text-decoration: underline; text-underline-offset: 2px; }
.dp-src-date { display: block; color: var(--muted); font-size: 13.5px; }

.dp-sections a.is-on { background: var(--ink); color: #fff; }
.dp-mt { margin-top: 28px; }
.dp-mt-sm { margin-top: 12px; }
.dp-subhead { margin-top: 24px !important; }
.dp-unk { color: var(--muted); font-size: 14px; font-weight: 400; }
.dp-extra.is-out, .is-collapsed .dp-extra { display: none !important; }
tr[hidden] { display: none !important; }
.dp-morebtn { display: inline-flex; align-items: center; min-height: 40px; margin-top: 10px; padding: 0 16px; border: 1px solid var(--line); border-radius: var(--r-sm); background: #fff; color: var(--ink); font-size: 14.5px; font-weight: 600; cursor: pointer; }
.dp-morebtn:hover { background: var(--soft); }
.dp-morebtn[hidden] { display: none; }

/* ---- photos: one large tile and up to four small ones ------------------ */
.dp-mosaic-wrap { margin-bottom: 16px; }
.dp-mosaic { display: grid; grid-template-rows: 1fr 1fr; gap: 8px; height: min(56vw, 480px); overflow: hidden; border-radius: var(--r); }
.dp-mosaic--s0 { grid-template-columns: 1fr; }
.dp-mosaic--s1, .dp-mosaic--s2 { grid-template-columns: 2fr 1fr; }
.dp-mosaic--s3, .dp-mosaic--s4 { grid-template-columns: 2fr 1fr 1fr; }
.dp-shot { position: relative; display: block; min-width: 0; min-height: 0; overflow: hidden; background: linear-gradient(155deg, #142D54, #24467c); }
.dp-shot img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.dp-shot:hover img { transform: scale(1.03); }
/* YouTube's stills are 4:3 with black bars around a 16:9 picture: cut the bars off */
img[data-dp-poster], .dp-shot:hover img[data-dp-poster] { transform: scale(1.34); }
.dp-shot:focus-visible { outline: 3px solid var(--gold); outline-offset: -3px; }
.dp-shot.is-main { grid-row: 1 / 3; }
.dp-shot.is-extra { display: none; }
.dp-mosaic--s1 .dp-shot:not(.is-main), .dp-mosaic--s3 .dp-shot:nth-child(2) { grid-row: 1 / 3; }
.dp-shot .dp-pill { position: absolute; top: 14px; inset-inline-start: 14px; }
.dp-shot__more { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(20, 45, 84, .58); color: #fff; font-size: 25.5px; font-weight: 700; }
.dp-shot__label { position: absolute; inset-inline: 0; bottom: 0; padding: 22px 12px 10px; background: linear-gradient(transparent, rgba(0, 0, 0, .7)); color: #fff; font-size: 14.5px; font-weight: 600; text-align: center; }
.dp-play { position: absolute; top: 50%; left: 50%; display: flex; align-items: center; justify-content: center; width: 58px; height: 58px; border-radius: 50%; background: rgba(20, 45, 84, .88); color: #fff; font-size: 25.5px; transform: translate(-50%, -50%); box-shadow: 0 4px 16px rgba(0, 0, 0, .35); transition: background .15s; }
a:hover > .dp-play { background: var(--gold-ink); }
.dp-mosaic-foot { display: flex; justify-content: space-between; gap: 16px; margin-top: 8px; }
.dp-mosaic-cap { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.dp-mosaic-cap small { display: block; font-size: 13.5px; }
.dp-mosaic-count { flex: none; color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }
.dp-mosaic-count[hidden] { display: none; }
.dp-mosaic-none { margin-bottom: 16px; }
@media (max-width: 767px) {
  /* a swipeable strip of every photo */
  .dp-mosaic { display: flex; height: auto; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .dp-mosaic::-webkit-scrollbar { display: none; }
  .dp-shot, .dp-shot.is-extra { display: block; flex: 0 0 100%; aspect-ratio: 16 / 10; border-radius: var(--r); scroll-snap-align: start; }
  .dp-shot--video, .dp-shot__more { display: none !important; }
  .dp-mosaic-count[hidden] { display: inline; }
}

/* ---- photo viewer ------------------------------------------------------ */
.dp-lb { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; padding: 0; border: 0; background: rgba(8, 15, 28, .96); color: #fff; overflow: hidden; }
.dp-lb::backdrop { background: rgba(8, 15, 28, .96); }
.dp-lb[open] { display: flex; align-items: center; justify-content: center; }
.dp-lb__fig { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; width: 100%; height: 100%; margin: 0; padding: 56px 72px 16px; touch-action: pan-y; }
.dp-lb__fig img { flex: 0 1 auto; min-height: 0; max-width: 100%; max-height: calc(100dvh - 190px); object-fit: contain; border-radius: 6px; }
.dp-lb__fig figcaption { flex: none; display: flex; flex-direction: column; gap: 3px; max-width: 760px; text-align: center; font-size: 15px; line-height: 1.6; }
.dp-lb__count { color: rgba(255, 255, 255, .7); font-size: 14px; font-variant-numeric: tabular-nums; }
.dp-lb__meta { color: rgba(255, 255, 255, .72); font-size: 13.5px; }
.dp-lb__meta a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.dp-lb__close, .dp-lb__nav { position: absolute; display: flex; align-items: center; justify-content: center; width: 46px; height: 46px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff; font-size: 21px; cursor: pointer; }
.dp-lb__close:hover, .dp-lb__nav:hover { background: rgba(255, 255, 255, .28); }
.dp-lb__close:focus-visible, .dp-lb__nav:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.dp-lb__close { top: 12px; inset-inline-end: 12px; z-index: 2; }
.dp-lb__nav { top: 50%; margin-top: -23px; z-index: 2; }
.dp-lb__nav.is-prev { inset-inline-start: 12px; }
.dp-lb__nav.is-next { inset-inline-end: 12px; }
.dp-lb__nav[hidden] { display: none; }
@media (max-width: 767px) {
  .dp-lb__fig { padding: 60px 12px 16px; }
  .dp-lb__nav { top: auto; bottom: 14px; margin-top: 0; width: 42px; height: 42px; }
  .dp-lb__fig figcaption { padding-inline: 44px; font-size: 14px; }
}

/* ---- headline figures --------------------------------------------------- */
/* flex, not grid: however many are known, the last row stretches and leaves no empty cell */
.dp-kpis { display: flex; flex-wrap: wrap; gap: 1px; margin: 0 0 16px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r); background: var(--line); }
.dp-kpi { display: flex; flex: 1 1 15%; flex-direction: column; gap: 6px; min-width: 0; padding: 14px 16px; background: #fff; }
.dp-kpi dt { color: var(--muted); font-size: 14px; font-weight: 500; }
.dp-kpi dd { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; margin: 0; }
.dp-kpi b { font-size: 20px; font-weight: 700; line-height: 1.25; font-variant-numeric: tabular-nums; }
.dp-kpi .dp-progress__bar { display: block; width: 100%; }
@media (max-width: 1100px) { .dp-kpi { flex-basis: 30%; } }
@media (max-width: 575px) { .dp-kpi { flex-basis: 45%; padding: 12px; } .dp-kpi b { font-size: 17.5px; } }

/* ---- overview + timeline ------------------------------------------------ */
.dp-split { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 40px; align-items: start; }
@media (max-width: 991px) { .dp-split { grid-template-columns: minmax(0, 1fr); gap: 24px; } }
.dp-overview p { margin: 0 0 12px; font-size: 16px; line-height: 1.9; }
.dp-timeline { position: relative; margin: 12px 0 0; padding: 0; list-style: none; }
.dp-timeline li { position: relative; display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 4px 12px; padding-block: 8px; padding-inline-start: 22px; font-size: 15px; line-height: 1.6; }
.dp-timeline li::before { content: ""; position: absolute; top: 14px; inset-inline-start: 0; width: 10px; height: 10px; border: 2px solid var(--ink); border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 2px #fff; z-index: 1; }
.dp-timeline li::after { content: ""; position: absolute; top: 18px; bottom: -14px; inset-inline-start: 4px; width: 2px; background: var(--line); }
.dp-timeline li:last-child::after, .dp-timeline.is-collapsed li:has(+ .dp-extra)::after { display: none; }
.dp-timeline li.is-planned::before { background: #fff; }
.dp-timeline time { color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }
.dp-timeline em { display: inline-block; margin-inline-start: 6px; padding: 0 7px; border-radius: 999px; background: #EEF1F5; color: var(--muted); font-size: 13px; font-style: normal; font-weight: 600; }
@media (max-width: 575px) { .dp-timeline li { grid-template-columns: minmax(0, 1fr); } }

.dp-credit-img { display: flex; align-items: center; gap: 10px; font-weight: 400; }
.dp-credit-img img { flex: none; width: 56px; height: 42px; border-radius: 6px; object-fit: cover; }

.dp-facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 40px; margin: 0; }
.dp-facts--wide { margin-top: 18px; }
.dp-facts--one { grid-template-columns: minmax(0, 1fr); padding: 4px 18px; border: 1px solid var(--line); border-radius: var(--r); background: var(--soft); }
.dp-facts--one .dp-fact:last-child { border-bottom: 0; }
@media (max-width: 767px) { .dp-facts { grid-template-columns: 1fr; } }
.dp-fact { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.dp-fact dt { flex: none; width: 42%; color: var(--muted); font-size: 15px; font-weight: 500; }
.dp-fact dd { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 4px 8px; margin: 0; font-size: 15px; text-align: end; min-width: 0; }
.dp-fact__v { font-weight: 600; overflow-wrap: anywhere; }
.dp-fact__how { flex-basis: 100%; color: var(--muted); font-size: 13.5px; line-height: 1.6; }
.dp-more { flex-basis: 100%; font-size: 13.5px; color: var(--muted); }
.dp-more summary { cursor: pointer; text-decoration: underline; text-underline-offset: 2px; list-style: none; }
.dp-more summary::-webkit-details-marker { display: none; }
.dp-more ul { margin: 6px 0 0; padding: 0; list-style: none; }
.dp-more li { padding: 2px 0; }
.dp-more a { text-decoration: underline; }

/* ---- tables ---------------------------------------------------------- */
.dp-panel { margin-bottom: 30px; }
.dp-tablewrap { overflow-x: auto; }
.dp-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.dp-table :is(th, td) { padding: 11px 10px; border-bottom: 1px solid var(--line); text-align: start; vertical-align: top; }
.dp-table thead th { color: var(--muted); font-size: 13.5px; font-weight: 600; white-space: nowrap; border-bottom-color: #d9d3c6; }
.dp-table tbody th { font-weight: 500; }
.dp-table a { text-decoration: underline; text-underline-offset: 2px; }
.dp-table__v { font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.dp-table__v small { display: block; max-width: 260px; font-weight: 400; color: var(--muted); font-size: 13.5px; line-height: 1.5; white-space: normal; }
.dp-table__other :is(th, td) { color: var(--muted); }
.dp-table__other .dp-table__v { font-weight: 500; }
.dp-differ { display: inline-block; margin-inline-start: 6px; padding: 1px 7px; border: 0; border-radius: 999px; background: var(--cream); color: var(--gold-ink); font-size: 13px; font-weight: 600; white-space: nowrap; }
button.dp-differ { cursor: pointer; }
button.dp-differ:hover { background: #f1e5c4; }
button.dp-differ[aria-expanded="true"] { background: var(--gold-ink); color: #fff; }
button.dp-differ[hidden] { display: none; }
.dp-table tr.is-current :is(th, td) { background: #F1F5FB; }
.dp-table tr.is-current th { font-weight: 700; }
.dp-table--compare .dp-pill { box-shadow: none; white-space: nowrap; }
.dp-sizecell { display: flex; flex-direction: column; gap: 5px; min-width: 150px; }
.dp-range { position: relative; display: block; height: 6px; border-radius: 3px; background: #EEF1F5; }
.dp-range i { position: absolute; top: 0; bottom: 0; display: block; border-radius: 3px; background: #1f5fa8; }
.dp-mins { display: flex; flex-direction: column; gap: 5px; min-width: 90px; }
.dp-mins__bar { display: block; height: 6px; border-radius: 3px; background: #EEF1F5; }
.dp-mins__bar i { display: block; height: 100%; border-radius: 3px; background: #1f5fa8; }
@media (max-width: 767px) {
  /* one stacked block per row: six columns can't be read on a phone */
  .dp-table:not(.dp-table--plain) thead { display: none; }
  .dp-table:not(.dp-table--plain) tr { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .dp-table:not(.dp-table--plain) :is(th, td) { display: flex; justify-content: space-between; gap: 16px; padding: 3px 0; border: 0; text-align: end; }
  .dp-table:not(.dp-table--plain) tbody th { justify-content: flex-start; flex-wrap: wrap; font-weight: 700; text-align: start; }
  .dp-table:not(.dp-table--plain) td::before { content: attr(data-th); flex: none; color: var(--muted); font-size: 13.5px; font-weight: 500; }
  .dp-table:not(.dp-table--plain) td.dp-table__none { justify-content: flex-start; }
  .dp-table:not(.dp-table--plain) td:empty { display: none; }
  .dp-table__v { white-space: normal; }
  .dp-table__v small { max-width: none; }

  /* a figure on a phone: name and value, then one quiet line for where it came from */
  .dp-table.dp-table--figures tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; row-gap: 2px; align-items: baseline; padding: 11px 0; }
  .dp-table.dp-table--figures tbody :is(th, td) { display: block; padding: 0; text-align: start; font-size: 13.5px; color: var(--muted); }
  .dp-table.dp-table--figures tbody td::before { content: none; }
  .dp-table.dp-table--figures tbody th { grid-column: 1; font-size: 15px; color: inherit; }
  .dp-table.dp-table--figures tbody td.dp-table__v { grid-column: 2; grid-row: 1; max-width: 190px; text-align: end; font-size: 15px; color: inherit; }
  .dp-table.dp-table--figures tbody td.dp-table__none { grid-column: 2; grid-row: 1; }
  .dp-table.dp-table--figures .dp-c-type, .dp-table.dp-table--figures .dp-c-period { grid-column: 1 / -1; }
  .dp-table.dp-table--figures .dp-c-type.is-all { display: none; }
  .dp-table.dp-table--figures .dp-c-source { grid-column: 1; }
  .dp-table.dp-table--figures .dp-c-status { grid-column: 2; text-align: end; }
  .dp-table.dp-table--figures .dp-src-date { display: inline; margin-inline-start: 4px; }
  .dp-table.dp-table--figures .dp-src-date::before { content: "· "; }
  .dp-table.dp-table--figures tbody tr.dp-table__other th, .dp-table--figures tbody tr.dp-table__other td.dp-table__v { color: var(--muted); }
  .dp-sizecell, .dp-mins { align-items: flex-end; min-width: 0; flex: 1; }
  .dp-sizecell .dp-range, .dp-mins .dp-mins__bar { width: min(180px, 100%); }

  /* long lists on a phone: the name and its main number on one line, the rest quietly under them */
  .dp-table.dp-table--rows tbody tr { display: flex; flex-wrap: wrap; align-items: baseline; gap: 3px 0; padding: 10px 0; }
  .dp-table.dp-table--rows tbody th { flex: 0 0 56%; order: 0; padding: 0; font-size: 15px; }
  .dp-table.dp-table--rows tbody td { display: inline-flex; gap: 5px; order: 2; margin-inline-end: 12px; padding: 0; color: var(--muted); font-size: 13.5px; text-align: start; }
  .dp-table.dp-table--rows tbody td.dp-nolabel::before, .dp-table.dp-table--rows tbody td.dp-row-main::before { content: none; }
  .dp-table.dp-table--rows tbody td.dp-row-main, .dp-table.dp-table--rows tbody td.dp-table__none { flex: 0 0 44%; order: 1; justify-content: flex-end; margin: 0; color: var(--ink); font-size: 15px; font-weight: 700; text-align: end; }

  /* unit types: the name across, then count and size, then source and status */
  .dp-table.dp-table--units tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 4px 14px; align-items: start; padding: 11px 0; }
  .dp-table.dp-table--units tbody th { grid-column: 1 / -1; padding: 0 0 2px; }
  .dp-table.dp-table--units tbody td { flex-wrap: wrap; justify-content: flex-start; gap: 2px 6px; padding: 0; font-size: 14px; font-weight: 500; text-align: start; }
  .dp-table.dp-table--units tbody td.dp-nolabel::before { content: none; }
  .dp-table.dp-table--units .dp-sizecell { flex: 0 1 100%; align-items: flex-start; }
  /* compare: one small card per project, three short figures a line */
  .dp-table.dp-table--compare tbody tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 12px; align-items: start; padding: 12px 0; }
  .dp-table.dp-table--compare tbody th { grid-column: span 2; padding: 0; }
  .dp-table.dp-table--compare tbody td { flex-direction: column; justify-content: flex-start; align-items: flex-start; gap: 1px; padding: 0; font-size: 14px; font-weight: 600; text-align: start; }
  .dp-table.dp-table--compare tbody td::before { font-size: 13px; }
  .dp-table.dp-table--compare tbody td:first-of-type { align-items: flex-end; }
  .dp-table.dp-table--compare tbody td:first-of-type::before { content: none; }
  .dp-table.dp-table--compare .dp-pill { padding-inline: 8px; font-size: 13px; white-space: normal; text-align: center; }
  .dp-table.dp-table--compare .dp-unk { font-size: 13.5px; font-weight: 500; }
  .dp-table.dp-table--compare small { font-size: 13px; font-weight: 500; line-height: 1.4; }
  .dp-table tr.is-current { padding-inline: 10px; border-radius: var(--r-sm); background: #F1F5FB; }
  .dp-table tr.is-current :is(th, td) { background: transparent; }
  .dp-table--credits .dp-credit-img { flex-wrap: nowrap; }
}

/* ---- investment ------------------------------------------------------ */
.dp-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 991px) { .dp-tiles { grid-template-columns: 1fr 1fr; gap: 12px; } }
.dp-tile { padding: 18px; border: 1px solid var(--line); border-radius: var(--r); background: var(--soft); }
.dp-tile__label { min-height: 34px; color: var(--muted); font-size: 14.5px; font-weight: 600; }
.dp-tile__value { margin: 4px 0 8px; font-size: 29.5px; font-weight: 700; line-height: 1.15; font-variant-numeric: tabular-nums; }
.dp-tile__none { margin-top: 8px; }
.dp-tile__how { margin-top: 10px; color: var(--muted); font-size: 13.5px; line-height: 1.6; overflow-wrap: anywhere; }
.dp-section .dp-tiles + .dp-note { margin-top: 12px; }

.dp-calc { margin-top: 28px; padding: 22px; border-radius: var(--r); background: var(--ink); color: #fff; }
.dp-calc h3 { color: #fff; }
.dp-calc .dp-note { color: rgba(255, 255, 255, .72); }
.dp-calc .dp-field > span { color: rgba(255, 255, 255, .78); }
.dp-calc .dp-field input { border-color: transparent; }
.dp-calc__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (max-width: 991px) { .dp-calc__grid { grid-template-columns: 1fr 1fr; } }
.dp-calc__grid .dp-field > span { min-height: 34px; display: flex; align-items: flex-end; }
.dp-calc__out { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 18px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .18); }
@media (max-width: 575px) { .dp-calc__out { grid-template-columns: 1fr 1fr; } }
.dp-calc__out span { display: block; color: rgba(255, 255, 255, .72); font-size: 14px; }
.dp-calc__out b { display: block; margin-top: 2px; color: #fff; font-size: 19px; font-variant-numeric: tabular-nums; }

/* ---- charts ---------------------------------------------------------- */
.dpc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
@media (max-width: 991px) { .dpc-grid { grid-template-columns: 1fr; } }
.dpc { display: flex; flex-direction: column; margin: 0; padding: 18px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; min-width: 0; }
.dpc-title { flex: none; }
/* beside a taller card a plot sits in the middle of its own, instead of leaving all the space under it */
.dpc > .dpc-plot { width: 100%; margin-block: auto; }
/* a chart left alone on its row takes the row, but a plot that wide would only be huge */
.dpc-grid > :last-child:nth-child(odd) { grid-column: 1 / -1; }
.dpc-grid > :last-child:nth-child(odd) > .dpc-plot { max-width: 720px; margin-inline: auto; }
.dpc-title { margin-bottom: 10px; font-size: 16px; font-weight: 700; }
.dpc-legend { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-bottom: 6px; color: var(--muted); font-size: 14px; }
.dpc-legend span { display: inline-flex; align-items: center; gap: 6px; }
.dpc-legend i { width: 12px; height: 12px; border-radius: 3px; }
/* charts read left to right in both languages: time runs that way */
.dpc-plot { direction: ltr; }
.dpc-svg { display: block; width: 100%; height: auto; overflow: visible; }
.dpc-sm { display: none; }
@media (max-width: 575px) { .dpc-lg { display: none; } .dpc-sm { display: block; } }
.dpc-svg .dpc-gridline { stroke: var(--line); stroke-width: 1; }
.dpc-svg .dpc-axis { stroke: #b9b2a3; stroke-width: 1; }
.dpc-svg text { font-family: inherit; font-size: 11.5px; fill: var(--muted); }
.dpc-svg .dpc-value { fill: var(--ink); font-weight: 700; font-size: 11.5px; }
.dpc-svg .dpc-line { fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.dpc-svg .dpc-line.is-dashed { stroke-dasharray: 6 5; }
.dpc-svg .dpc-dot { stroke: #fff; stroke-width: 2; }
.dpc-svg .dpc-hitbox { fill: transparent; }
.dpc-svg .dpc-cross { stroke: var(--muted); stroke-width: 1; opacity: 0; }
.dpc-hit { cursor: pointer; outline: none; }
.dpc-hit:hover .dpc-cross, .dpc-hit:focus .dpc-cross { opacity: .5; }
.dpc-hit:hover .dpc-bar, .dpc-hit:focus .dpc-bar { opacity: .82; }
.dpc-hit:focus-visible .dpc-hitbox { stroke: var(--ink); stroke-width: 1; stroke-dasharray: 2 2; }
.dpc-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 180px; padding: 20px; border-radius: var(--r-sm); background: var(--soft); color: var(--muted); font-size: 15px; text-align: center; line-height: 1.7; }
.dpc-empty i { font-size: 26px; color: #b9b2a3; }
.dpc .dp-note { margin: 10px 0 0; font-size: 14px; }
.dpc-table { margin-top: 10px; font-size: 14.5px; }
.dpc-table summary { cursor: pointer; color: var(--muted); font-size: 14px; text-decoration: underline; text-underline-offset: 2px; min-height: 24px; }
.dpc-table table { margin-top: 8px; }
.dpc-tip { position: fixed; z-index: 1000; max-width: 240px; padding: 8px 12px; border-radius: 8px; background: var(--ink); color: #fff; font-size: 14px; line-height: 1.5; box-shadow: 0 6px 20px rgba(20, 45, 84, .3); pointer-events: none; }
.dpc-tip__v { font-weight: 700; font-size: 15px; }
.dpc-tip[hidden] { display: none; }
.dpc-grid > :only-child { grid-column: 1 / -1; }
.dpc-svg .dpc-refline { stroke: var(--muted); stroke-width: 1.5; }
.dpc-svg .dpc-reflabel { fill: var(--muted); font-weight: 600; paint-order: stroke; stroke: #fff; stroke-width: 3px; }
/* horizontal bars: the name and value above a thin track */
.dpb { display: flex; flex-direction: column; gap: 12px; }
.dpb-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: baseline; }
.dpb-label { min-width: 0; font-size: 14.5px; line-height: 1.45; }
.dpb-label small { display: block; color: var(--muted); font-size: 13.5px; }
.dpb-value { color: var(--ink); font-size: 14.5px; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.dpb-track { grid-column: 1 / -1; height: 10px; border-radius: 5px; background: #F1F3F6; }
.dpb-track .dpc-bar { display: block; height: 100%; min-width: 3px; border-radius: 5px; background: #9dbde0; }
.dpb-row.is-lead .dpc-bar, .dpb.is-single .dpc-bar { background: #1f5fa8; }
.dpb-row:focus-visible, .dpcol-item:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
/* columns: heights side by side */
.dpcol { display: flex; align-items: stretch; justify-content: space-around; gap: 10px; padding-top: 6px; }
.dpcol-item { flex: 1 1 0; display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 0; }
.dpcol-plot { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 4px; width: 100%; height: 220px; border-bottom: 1px solid #b9b2a3; }
.dpcol-plot .dpc-bar { display: block; flex: none; width: min(28px, 70%); min-height: 3px; border-radius: 4px 4px 0 0; background: #c7cfdb; max-height: calc(100% - 22px); }
.dpcol-item.is-current .dpc-bar { background: #1f5fa8; }
.dpcol-value { font-size: 13.5px; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.dpcol-name { max-width: 100%; color: var(--muted); font-size: 13.5px; line-height: 1.35; text-align: center; overflow-wrap: anywhere; }
.dpcol-item.is-current .dpcol-name { color: var(--ink); font-weight: 700; }
.dpcol-name a { text-decoration: underline; text-underline-offset: 2px; }
.dp-gaps { margin-top: 20px; padding: 14px 18px; border-radius: var(--r-sm); background: var(--soft); font-size: 15px; }
.dp-gaps summary { display: flex; align-items: center; gap: 8px; min-height: 24px; color: var(--muted); font-weight: 600; cursor: pointer; }
.dp-gaps ul { margin: 10px 0 0; padding: 0; list-style: none; }
.dp-gaps li { padding: 8px 0; border-top: 1px solid var(--line); line-height: 1.7; }
.dp-gaps b { display: block; font-weight: 600; }
.dp-gaps span { color: var(--muted); font-size: 14px; }

/* ---- videos ------------------------------------------------------------ */
.dp-videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 20px; }
.dp-video { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r); background: #fff; }
.dp-videos > :only-child { grid-column: 1 / -1; width: 100%; max-width: 640px; }
.dp-video__frame { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: linear-gradient(155deg, #142D54, #24467c); }
.dp-video__frame img { display: block; width: 100%; height: 100%; object-fit: cover; }
.dp-video__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.dp-video__body { padding: 12px 14px 14px; }
.dp-section .dp-video__body h3 { margin: 0 0 6px; font-size: 15.5px; line-height: 1.5; }
.dp-video__meta { display: flex; flex-wrap: wrap; gap: 2px 12px; color: var(--muted); font-size: 13.5px; }
.dp-video__meta a { text-decoration: underline; text-underline-offset: 2px; }

/* ---- payment plans ------------------------------------------------------ */
.dp-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 16px; }
.dp-plan { min-width: 0; padding: 16px; border: 1px solid var(--line); border-radius: var(--r); }
.dp-plan__bar { display: flex; gap: 2px; height: 26px; overflow: hidden; border-radius: 6px; }
.dp-plan__seg { display: flex; flex: 1 1 0; align-items: center; justify-content: center; min-width: 3px; color: var(--ink); font-size: 13.5px; font-weight: 700; font-variant-numeric: tabular-nums; }
.dp-plan__seg.is-dark { color: #fff; }
.dp-plan__stages { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 10px 0; padding: 0; list-style: none; }
.dp-plan__stages li { display: flex; align-items: baseline; gap: 8px; font-size: 14.5px; }
.dp-plan__stages i { flex: none; width: 10px; height: 10px; border-radius: 3px; transform: translateY(1px); }
.dp-plan__stages b { font-variant-numeric: tabular-nums; }
.dp-plan__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 13.5px; }
.dp-plan__foot a { text-decoration: underline; text-underline-offset: 2px; }

/* ---- documents ---------------------------------------------------------- */
.dp-docs { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); gap: 12px; }
.dp-doc { display: flex; align-items: flex-start; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: var(--r-sm); text-decoration: none; transition: background .15s; }
.dp-doc:hover { background: var(--soft); }
.dp-doc > i { flex: none; color: var(--gold-ink); font-size: 20px; }
.dp-doc span { min-width: 0; }
.dp-doc b { display: block; font-size: 15px; font-weight: 600; line-height: 1.5; overflow-wrap: anywhere; }
.dp-doc small { color: var(--muted); font-size: 13.5px; }

/* ---- location -------------------------------------------------------- */
.dp-map { height: 420px; overflow: hidden; border-radius: var(--r); background: var(--soft); z-index: 0; }
@media (max-width: 575px) { .dp-map { height: 300px; } }
.dp-maplinks { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.dp-pin { width: 18px; height: 18px; border: 3px solid #fff; border-radius: 50%; background: var(--ink, #142D54); box-shadow: 0 1px 6px rgba(0, 0, 0, .4); }
.dp-maplink { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; color: var(--muted); font-size: 14.5px; text-decoration: underline; text-underline-offset: 2px; }
.dp-list { margin: 0; padding: 0; list-style: none; }
.dp-list--cols { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); column-gap: 28px; }
.dp-list li { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: baseline; gap: 2px 8px; padding: 7px 0; font-size: 15px; }
.dp-list li > .dp-src { grid-column: 2; }
.dp-list i { color: var(--gold-ink); font-size: 14px; }

/* ---- analysis -------------------------------------------------------- */
.dp-analysis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (max-width: 767px) { .dp-analysis { grid-template-columns: 1fr; } }
.dp-analysis__card { padding: 20px; border: 1px solid var(--line); border-radius: var(--r); }
.dp-analysis__card:last-child:nth-child(odd) { grid-column: 1 / -1; }
.dp-analysis__card h3 { display: flex; align-items: center; gap: 8px; }
.dp-analysis__card h3 i { color: var(--gold-ink); }
.dp-analysis__item + .dp-analysis__item { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.dp-analysis__item p { margin: 0 0 4px; font-size: 15.5px; line-height: 1.8; }
.dp-analysis__item small { color: var(--muted); font-size: 13.5px; line-height: 1.6; display: block; }
.dp-summary { margin-top: 16px; padding: 22px; border-radius: var(--r); background: var(--good-bg); border: 1px solid #b9dfb9; }
.dp-summary h3 { color: var(--good); }
.dp-summary p { margin: 0; font-size: 16px; line-height: 1.9; }
