/* Shared reading scale for the portfolio and residence studio. Colour is set separately. */
:root {
  --type-display: clamp(3.15rem, 4.25vw, 5rem);
  --type-section: clamp(2.25rem, 3.15vw, 3.65rem);
  --type-card: clamp(1.55rem, 2.15vw, 2.3rem);
  --type-body: clamp(1rem, .94rem + .22vw, 1.095rem);
  --type-label: .875rem;
  --arabic: 'LUXI Arabic', 'IBM Plex Sans Arabic', Tahoma, Arial, sans-serif;
}
html[lang="ar"] {
  --type-display: clamp(2.15rem, 3.25vw, 3.65rem);
  --type-section: clamp(1.72rem, 2.45vw, 2.7rem);
  --type-card: clamp(1.24rem, 1.66vw, 1.8rem);
  --face: var(--arabic);
  --display: var(--arabic);
  --sans: var(--arabic);
  --serif: var(--arabic);
}
[lang="ar"] body, [lang="ar"] button, [lang="ar"] select,
[lang="ar"] input:not([type="range"]), [lang="ar"] textarea {
  font-family: var(--arabic);
  letter-spacing: normal;
}
[lang="ar"] :is(.filmCredit,.smallLabel,.eyebrow,.kicker,.overline,.cardLocation,.photoTag,.viewName,.label,.fine,.chip,.groupWebsite,.cardLaunch,.eyeline,.formlabel) {
  font-family: var(--arabic);
  letter-spacing: normal;
}
:where(.field, .profileDetails, .cardLocation, .cardKind, .metrics, .factLine, .controlpanel, .simResults) bdi {
  font-variant-numeric: tabular-nums;
  unicode-bidi: isolate;
}
body { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

#top .premiere .filmCopy h1, .page .arrival h1, .page .coverImage h1,
.page .directoryCover .pageHead h1, .page .profileIdentity h1,
.page .rawCover h1, .page .pageHead h1, header.buyLead h1 {
  font-size: var(--type-display);
  line-height: 1.06;
  text-wrap: balance;
}
#top :is(.studioIntro,.sectionIntro,.lightText,.accessCopy,.drawerContent,.reading,.leadDialog) h2,
.page :is(.sectiontop,.phaseBrief,.theater,.closing,.slideCopy,.rawPage,.aboutCard,.wu-spec,.lxloc,.mr-report) h2 {
  font-size: var(--type-section);
  line-height: 1.1;
  text-wrap: balance;
}
#top .projectGrid .projectCard h3, #top .articles h3,
.page .phaseCardText h3, .page .fcCopy h3, .page .rawPage .rawColumns h2,
.page .allocationpanel h3, .page .plandetail h3, .page .mr-report h3 {
  font-size: var(--type-card);
  line-height: 1.2;
  text-wrap: balance;
}
html[lang="ar"] :is(h1,h2,h3,h4),
html[lang="ar"] #top :is(.filmCopy,.studioIntro,.sectionIntro,.lightText,.accessCopy,.drawerContent,.reading,.leadDialog,.projectGrid,.articles) :is(h1,h2,h3),
html[lang="ar"] .page :is(.buyLead,.coverImage,.arrival,.directoryCover,.pageHead,.phaseBrief,.rawPage,.profileIdentity,.sectiontop,.mr-report,.phaseCardText,.closing,.slideCopy,.theater,.wu-spec,.fcCopy,.plandetail,.allocationpanel) :is(h1,h2,h3) {
  font-family: var(--arabic);
  font-weight: 550;
  font-style: normal;
  letter-spacing: normal;
  line-height: 1.52;
}
html[lang="ar"] #top :is(h1,h2,h3) em {font-style: normal}
#top :is(.studioIntro,.lightText)>p:not(.eyebrow),
#top .sectionIntro>p, .page :is(.phaseBrief,.slideCopy,.pageHead,.rawColumns) p:not(.kicker,.fine) {
  font-size: var(--type-body);
  line-height: 1.67;
  text-wrap: pretty;
}
html[lang="ar"] #top :is(.studioIntro,.lightText)>p:not(.eyebrow),
html[lang="ar"] #top .sectionIntro>p,
html[lang="ar"] .page :is(.phaseBrief,.slideCopy,.pageHead,.rawColumns) p:not(.kicker,.fine) {line-height:1.88}
#top .filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: .25rem .4rem;
  padding: .375rem 0 .75rem;
  margin-block: 0 clamp(1.2rem, 2.25vw, 2.1rem);
}
#top .filters button {
  text-align: center;
  flex: 0 1 auto;
  min-width: 0;
  min-height: 44px;
  width: auto;
  padding: .4rem clamp(.65rem, 1.45vw, 1.2rem);
  font-family: var(--sans);
  font-size: var(--type-label);
  font-weight: 550;
  line-height: 1.4;
  border-radius: 3px;
}
#top .projectGrid .cardLocation {margin-block:1rem .375rem}
#top .projectGrid .cardBottom {justify-content:flex-start;min-height:44px;padding-block:.45rem}
#top .projectGrid .cardKind {font-size:var(--type-label);line-height:1.5}
#top .projectGrid .cardLaunch {align-items:baseline;font-size:var(--type-label)}
#top .projectGrid .cardLaunch>span {flex-shrink:0}
#top .projectGrid .photoTag {font-size:.8125rem;line-height:1.5;letter-spacing:normal}
#top .projectGrid .photoTag b {display:none}
#top .profits strong,.page .metricrow b {font-variant-numeric:tabular-nums}
#top .buybackQuote {flex-wrap:wrap}
#top .buybackQuote p {flex:1 1 19rem;text-wrap:pretty}

/* Each panel sizes to its copy. Arabic words keep their natural joining and line breaks. */
header.buyLead {
  display:grid;
  grid-template-columns:minmax(0,1.18fr) minmax(17rem,.82fr);
  align-items:start;
  column-gap:clamp(1.75rem,5vw,5.5rem);
  row-gap:1.15rem;
  padding:clamp(1.35rem,3.65vw,3.5rem);
  margin:0;
  height:auto;
  max-height:none;
  overflow:visible;
  text-align:start;
  border:1px solid var(--line);
  border-radius:4px;
}
header.buyLead>* {min-width:0}
header.buyLead h1 {margin:.3rem 0 .75rem;max-width:19ch}
header.buyLead .kicker {margin:0;font-size:var(--type-label);line-height:1.5}
header.buyLead p:not(.kicker) {
  font-size:var(--type-body);
  line-height:1.72;
  overflow-wrap:break-word;
  text-wrap:pretty;
  max-width:62ch;
  margin:.55rem 0 0;
}
header.buyLead aside {
  align-self:stretch;
  padding:.15rem 0;
  padding-inline-start:clamp(1.25rem,2.6vw,2.75rem);
  border-inline-start-width:1px;
}
header.buyLead aside h2 {
  font:500 clamp(1.55rem,2vw,2.2rem)/1.2 var(--display);
  letter-spacing:-.025em;
  margin:0 0 .65rem;
}
html[lang="ar"] header.buyLead aside h2 {font-size:clamp(1.28rem,1.6vw,1.7rem)}
html[lang="ar"] header.buyLead p:not(.kicker) {line-height:1.9;max-width:48ch}
header.buyLead .purchaseTours {display:flex;flex-wrap:wrap;gap:.5rem;margin:.9rem 0 .25rem}
header.buyLead .purchaseTours button {font:500 .91rem/1.45 var(--face);padding:.55rem .85rem}
.page .buyLinks {flex-wrap:wrap;gap:.45rem 1.2rem}
.page .sectiontop {align-items:start}
.page .sectiontop>p {max-width:48ch;line-height:1.65;font-size:1rem}
.page .buyroom .controlpanel {align-self:start}
.page .controlpanel .moneyrow {align-items:baseline;gap:.45rem 1rem;flex-wrap:wrap}
.page .controlpanel .moneyrow b {white-space:nowrap}
.page .controlpanel .fine {max-width:57ch;line-height:1.65;overflow-wrap:break-word}
html[lang="ar"] .page .controlpanel .fine {line-height:1.85}
.page .phaseMenu>div>a {line-height:1.5}
footer .groupSites a {text-underline-offset:.25em}

@media(max-width: 780px){
  header.buyLead {grid-template-columns:minmax(0,1fr);gap:1.15rem;padding:clamp(1.1rem,4.9vw,1.8rem)}
  header.buyLead aside {border-inline-start:none;padding:1.05rem 0 0;border-block-start:1px solid var(--line)}
  header.buyLead aside h2 {margin-bottom:.4rem}
  #top .sectionIntro>p {max-width:50ch}
}
@media(max-width: 470px){
  #top .filters {gap:.2rem .3rem;display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
  #top .filters button {width:100%;padding:.38rem .3rem}
  .page .controlpanel {padding:1.05rem}
  .page .controlpanel .moneyrow {line-height:1.52}
  #top .buybackQuote p {flex-basis:auto}
  #top .sectionIntro h2 {max-width:100%}
}
@media(max-width: 350px){
  header.buyLead .purchaseTours {display:grid;grid-template-columns:minmax(0,1fr)}
  header.buyLead .purchaseTours button {justify-content:center;width:100%;white-space:normal}
}

#top .projectCard .cardAction {
  display:inline-flex;
  align-items:center;
  min-height:44px;
  font-size:.9375rem;
  font-weight:600;
  line-height:1.45;
  text-underline-offset:.3em;
}
#top .stageEmpty {margin-block:1rem;padding-block:1rem;line-height:1.65;max-width:56ch}
.legalLinks {display:flex;flex-wrap:wrap;align-items:baseline;gap:.5rem 1.25rem}
.legalLinks a,.formPrivacy a {text-decoration:underline;text-underline-offset:.24em}
.legalLinks a {display:inline-flex;align-items:center;min-height:44px}
.formPrivacy {margin-block:.65rem;max-width:62ch;line-height:1.65;font-size:.875rem}
html[lang="ar"] .formPrivacy {line-height:1.85}
html[lang="ar"] :is(.legalPage,.legalPage h1,.legalPage h2,.legalPage h3,.legalLinks,.formPrivacy) {font-family:var(--arabic);letter-spacing:normal}
@media(max-width:550px){
  .footerBase:has(.legalLinks),.foot:has(.legalLinks) {flex-wrap:wrap;row-gap:.25rem}
}

.safaPair.phaseCards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 clamp(16px,3vw,44px);align-items:stretch}
.safaCard{--gutter:clamp(18px,2.7vw,40px);display:grid;grid-template-rows:auto auto auto 1fr auto auto;background:var(--panel,var(--card));color:var(--ink);border:1px solid var(--line);min-width:0;position:relative}
@supports(grid-template-rows:subgrid){.safaCard{grid-row:span 6;grid-template-rows:subgrid}}
.safaCard>:not(.safaPhoto){margin:0;padding-inline:var(--gutter)}
.safaPhoto{position:relative;aspect-ratio:2.05;overflow:hidden}.safaPhoto img{width:100%;height:100%;object-fit:cover}.safaPhoto span{position:absolute;inset-block-end:14px;inset-inline-start:var(--gutter);padding:.3em .85em;background:#132337eb;color:#fff7e6;font-size:.85rem}
.safaCard header{padding-block:1.5rem .55rem}.safaCard header .kicker{margin:0 0 .45rem}.safaCard h3{font-size:clamp(1.4rem,2.3vw,2.2rem);line-height:1.35;margin:0}
.safaAvailability span{display:inline-block;border:1px solid var(--line);border-radius:4px;padding:.3em .65em;font-size:.84rem;font-weight:520}
.safaCard p.safaSummary{line-height:1.75;padding-block:.85rem 1.1rem;color:var(--sub);font-size:1rem}
.safaEvidence{font-variant-numeric:tabular-nums;font-size:.87rem;font-weight:520}
.safaAction{padding-block:.8rem 1.5rem}.safaCard .phasePrimary{display:flex;justify-content:center;align-items:center;min-height:48px;padding:.55em 1em;border-radius:4px;background:#174f9d;color:white;text-decoration:none;font-weight:550}.phasePrimary:hover,.phasePrimary:focus-visible{background:#123b78}
.safaCard:focus-within{outline:2px solid #578cd0;outline-offset:2px}
html[lang=ar] .safaCard :is(h3,p,span,a),html[lang=ar] header.buyLead :is(h1,h2,p){letter-spacing:normal;font-family:var(--arabic,'LUXI Arabic',sans-serif)}
html[lang=ar] .safaCard h3,html[lang=ar] header.buyLead h1{font-weight:555;line-height:1.46}
html[lang=ar] .safaCard .safaSummary{font-weight:390;line-height:1.9}
.projectDossier{border-block:1px solid var(--line);margin-block:1rem 2rem}.projectDossier summary{cursor:pointer;padding:1rem .2rem;font-weight:550}.dossierContent>p{max-width:74ch;line-height:1.8}
@media(max-width:660px){.safaPair.phaseCards{grid-template-columns:minmax(0,1fr);row-gap:20px}.safaCard{grid-row:auto;grid-template-rows:auto auto auto auto auto auto}}

html[lang=en] footer .searchAr,html[lang=ar] footer .searchEn{display:none}.searchIntro{padding-block:2rem}.searchIntro p{max-width:70ch;line-height:1.7}
