/* dn-home-2026.css — the home page of the approved 2026 redesign (Main.dc.html + Home-Phone.dc.html, owner 2026-10-10).
   Markup is written by scripts/site/build-home-redesign.py (CRM API repo); listings and search are driven by js/dn-home-2026.js.
   Tokens: css/dn-site-2026.css. One background layer per section; ink only for the primary action. */
#dnh { --ink: #131313; --bone: #e3edf8; --paper: #FFFDF8; --gold: #007bff; --gold-warm: #007bff; --gold-ink: #0056b3; --grey: #69645D;
  --line: #cadaec; --line-gold: #83abd5; --wa: #25D366;
  display: block; background: var(--paper); color: var(--ink); font-family: var(--dn26-font); text-align: start; }
#dnh *, #dnh *::before, #dnh *::after { box-sizing: border-box; }
#dnh section { position: relative; }
#dnh .dnh-wrap { max-width: 1280px; margin: 0 auto; padding: 88px 32px; display: flex; flex-direction: column; gap: 36px; }
#dnh .dnh-h1, #dnh h2, #dnh h3, #dnh p, #dnh figure, #dnh .dnh-h1 { margin: 0; }
#dnh h2 { font-size: 40px !important; line-height: 1.1 !important; font-weight: 800 !important; color: var(--ink) !important; text-wrap: balance; letter-spacing: -0.01em; }
#dnh h3 { color: var(--ink) !important; }
#dnh .dnh-k { color: var(--gold-ink) !important; font-size: 14px !important; font-weight: 800 !important; letter-spacing: .16em; text-transform: uppercase; }
html[dir="rtl"] #dnh .dnh-k { letter-spacing: 0; font-size: 14px !important; }
#dnh .dnh-head { display: flex; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
#dnh .dnh-head > div:first-child { display: flex; flex-direction: column; gap: 10px; max-width: 680px; }
#dnh .dnh-head .dnh-lead { color: var(--grey); font-size: 16px; line-height: 1.6; font-weight: 500; }
#dnh a { text-decoration: none; }
#dnh .dnh-more { margin-inline-start: auto; font-size: 14px !important; font-weight: 800 !important; color: var(--gold-ink) !important; display: inline-flex; align-items: center; min-height: 44px; }
#dnh .dnh-more:hover { color: var(--ink) !important; }
#dnh :focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
#dnh .dnh-ltr { direction: ltr; unicode-bidi: isolate; }

/* ---------- Hero ---------- */
#dnh .dnh-hero { min-height: 740px; display: flex; align-items: center; overflow: hidden; background: var(--ink); }
#dnh .dnh-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
#dnh .dnh-hero::before { content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(100deg, rgba(19,19,19,.68) 0%, rgba(19,19,19,.38) 55%, rgba(19,19,19,.12) 100%); }
html[dir="rtl"] #dnh .dnh-hero::before { background: linear-gradient(260deg, rgba(19,19,19,.68) 0%, rgba(19,19,19,.38) 55%, rgba(19,19,19,.12) 100%); }
#dnh .dnh-hero .dnh-wrap { position: relative; z-index: 2; width: 100%; padding-block: 96px; gap: 28px; }
#dnh .dnh-eyebrow { color: var(--gold-warm) !important; font-size: 14px !important; font-weight: 800 !important; letter-spacing: .18em; text-transform: uppercase; }
html[dir="rtl"] #dnh .dnh-eyebrow { letter-spacing: 0; font-size: 16px !important; }
#dnh .dnh-h1 { color: var(--paper) !important; font-size: 56px !important; line-height: 1.06 !important; font-weight: 800 !important; max-width: 740px; text-wrap: balance; letter-spacing: -0.015em; }
html[dir="rtl"] #dnh .dnh-h1 { line-height: 1.25 !important; font-size: 56px !important; letter-spacing: 0; }
#dnh .dnh-hero-lead { color: var(--bone) !important; font-size: 20px !important; line-height: 1.6 !important; max-width: 600px; font-weight: 500; }

/* search card */
#dnh .dnh-search { background: var(--paper); border-radius: 16px; padding: 20px; max-width: 880px; box-shadow: 0 24px 60px rgba(19,19,19,.28);
  display: flex; flex-direction: column; gap: 14px; }
#dnh .dnh-row1 { display: flex; align-items: center; gap: 10px; }
#dnh .dnh-seg { display: flex; background: var(--bone); border-radius: 999px; padding: 4px; gap: 4px; border: 0; margin: 0; min-width: 0; }
#dnh .dnh-seg label { position: relative; cursor: pointer; margin: 0; }
#dnh .dnh-seg input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
#dnh .dnh-seg span { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; font-size: 14px; font-weight: 800; padding: 0 24px;
  border-radius: 999px; color: var(--ink); border: 1px solid transparent; line-height: 1; transition: background .15s, color .15s; }
#dnh .dnh-seg input:checked + span { background: var(--ink); color: var(--bone); border-color: var(--ink); }
#dnh .dnh-seg input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
#dnh .dnh-ai { margin-inline-start: auto; font: inherit; font-size: 14px; font-weight: 800; min-height: 40px; padding: 0 16px; border-radius: 999px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px; background: var(--bone); color: var(--grey); border: 1px solid #aac4e0; }
#dnh .dnh-ai[aria-pressed="true"] { background: var(--paper); color: var(--gold-ink); border-color: var(--gold); }
#dnh .dnh-ai svg { flex: 0 0 auto; }
#dnh .dnh-row2 { display: flex; gap: 12px; }
#dnh .dnh-field { position: relative; flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 10px; border: 1px solid #aac4e0; border-radius: 12px;
  padding: 0 16px; background: var(--paper); min-height: 54px; flex-wrap: wrap; }
#dnh .dnh-field:focus-within { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(0,123,255,.18); }
#dnh .dnh-tags { display: contents; }
#dnh .dnh-tag { display: inline-flex; align-items: center; gap: 6px; padding: 5px 6px 5px 10px; border-radius: 999px; background: var(--bone); border: 1px solid var(--line-gold);
  font-size: 14px; font-weight: 700; color: var(--ink); max-width: 100%; }
html[dir="rtl"] #dnh .dnh-tag { padding: 5px 10px 5px 6px; }
#dnh .dnh-tag button { width: 24px; height: 24px; border-radius: 50%; border: 0; background: transparent; color: var(--grey); cursor: pointer; font: inherit; font-size: 16px; line-height: 1; }
#dnh .dnh-tag button:hover { background: var(--paper); color: var(--ink); }
#dnh .dnh-field input { flex: 1 1 160px; min-width: 120px; border: 0 !important; outline: none !important; background: transparent !important; height: 52px; padding: 0 !important;
  font: inherit; font-size: 16px !important; color: var(--ink) !important; box-shadow: none !important; }
#dnh .dnh-field input::placeholder { color: #8A8378; opacity: 1; }
#dnh .dnh-go { font: inherit; background: var(--ink); color: var(--bone); border: 1px solid var(--ink); font-size: 16px; font-weight: 800; padding: 0 36px; border-radius: 12px;
  cursor: pointer; min-height: 54px; display: inline-flex; align-items: center; justify-content: center; line-height: 1 !important; }
#dnh .dnh-go:hover { background: #2A2926; }
#dnh .dnh-suggest { position: absolute; top: calc(100% + 8px); inset-inline: -1px; background: var(--paper); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 18px 40px -16px rgba(19,19,19,.3); padding: 6px; max-height: 320px; overflow: auto; z-index: 30; display: none; }
#dnh .dnh-suggest.is-open { display: block; }
#dnh .dnh-suggest button { display: flex; width: 100%; text-align: start; font: inherit; font-size: 14px; font-weight: 700; color: var(--ink); background: none; border: 0;
  border-radius: 12px; padding: 11px 12px; cursor: pointer; min-height: 44px; align-items: center; }
#dnh .dnh-suggest button:hover, #dnh .dnh-suggest button.is-active { background: var(--bone); }
#dnh .dnh-suggest mark { background: none; color: var(--gold-ink); }
#dnh .dnh-suggest .dnh-none { padding: 11px 12px; color: var(--grey); font-size: 14px; font-weight: 600; }
#dnh .dnh-ai-hint { color: var(--grey); font-size: 14px; font-weight: 600; line-height: 1.5; min-height: 0; }
#dnh .dnh-ai-hint:empty { display: none; }
#dnh .dnh-ai-hint b { color: var(--gold-ink); font-weight: 800; }
#dnh .dnh-chip { color: var(--ink) !important; font-size: 14px !important; font-weight: 700 !important; background: var(--bone); border: 1px solid var(--line-gold);
  border-radius: 999px; padding: 0 14px; min-height: 36px; display: inline-flex; align-items: center; }
#dnh .dnh-chip:hover { border-color: var(--gold); background: var(--paper); }

/* ---------- Trust strip ---------- */
#dnh .dnh-trust { background: var(--paper); border-bottom: 1px solid #d3e3f4; }
#dnh .dnh-trust .dnh-wrap { padding-block: 36px; flex-direction: row; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
#dnh .dnh-stat { display: flex; flex-direction: column; gap: 4px; }
#dnh .dnh-stat b { direction: ltr; unicode-bidi: isolate; align-self: flex-start; font-size: 28px; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }
#dnh .dnh-stat span { font-size: 14px; font-weight: 700; color: var(--grey); }
#dnh .dnh-sep { width: 1px; height: 44px; background: #b1c9e3; }

/* ---------- Listings ---------- */
#dnh .dnh-tabs { margin-inline-start: auto; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
#dnh .dnh-tab { font: inherit; display: inline-flex; align-items: center; justify-content: center; line-height: 1 !important; font-size: 14px; font-weight: 800; padding: 0 22px; min-height: 44px; border-radius: 999px; cursor: pointer;
  background: var(--bone); color: var(--ink); border: 1px solid var(--line-gold); }
#dnh .dnh-tab[aria-selected="true"] { background: var(--ink); color: var(--bone); border-color: var(--ink); }
#dnh .dnh-tabs .dnh-more { margin-inline-start: 10px; }
#dnh .dnh-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
#dnh .dnh-card { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column;
  color: var(--ink) !important; transition: border-color .15s, box-shadow .15s; }
#dnh .dnh-card:hover { border-color: var(--line-gold); box-shadow: 0 18px 40px -24px rgba(19,19,19,.35); }
#dnh .dnh-ph { position: relative; height: 230px; background: var(--bone); }
#dnh .dnh-ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
#dnh .dnh-ph img.is-ph { object-fit: cover; }
#dnh .dnh-badge { position: absolute; top: 14px; inset-inline-start: 14px; background: var(--paper); color: var(--gold-ink); font-size: 12px; font-weight: 800;
  letter-spacing: .08em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; }
html[dir="rtl"] #dnh .dnh-badge { letter-spacing: 0; font-size: 14px; }
#dnh .dnh-in { padding: 20px; display: flex; flex-direction: column; gap: 10px; flex: 1 1 auto; }
#dnh .dnh-price { font-size: 20px; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }
#dnh .dnh-price small { font-size: 14px; font-weight: 700; color: var(--grey); }
#dnh .dnh-price.is-poa { color: var(--gold-ink); }
#dnh .dnh-card h3 { font-size: 16px !important; font-weight: 700 !important; line-height: 1.4 !important;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; unicode-bidi: plaintext; }
#dnh .dnh-loc { display: flex; align-items: center; gap: 6px; color: var(--grey); font-size: 14px; font-weight: 500; }
#dnh .dnh-loc span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#dnh .dnh-foot { margin-top: auto; padding-top: 12px; border-top: 1px solid #d3e3f4; display: flex; align-items: center; gap: 8px; }
#dnh .dnh-meta { color: var(--grey); font-size: 14px; font-weight: 700; }
#dnh .dnh-det { margin-inline-start: auto; font-size: 14px; font-weight: 800; color: var(--gold-ink); white-space: nowrap; }
#dnh .dnh-card:hover .dnh-det { color: var(--ink); }
#dnh .dnh-skel { background: linear-gradient(90deg, #ddeaf7 0%, #FBF7EF 50%, #ddeaf7 100%); background-size: 200% 100%; animation: dnh-sk 1.4s ease-in-out infinite; border-radius: 8px; }
@keyframes dnh-sk { from { background-position: 200% 0; } to { background-position: -200% 0; } }
#dnh .dnh-empty { grid-column: 1 / -1; padding: 40px; text-align: center; color: var(--grey); font-weight: 600; background: var(--bone); border-radius: 16px; }
#dnh .dnh-btn.dnh-all-m { display: none; }

/* ---------- Communities ---------- */
#dnh .dnh-areas { background: var(--bone); }
#dnh .dnh-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
#dnh .dnh-tile { position: relative; display: block; border-radius: 16px; overflow: hidden; height: 300px; background: #aac4e0; }
#dnh .dnh-tile img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
#dnh .dnh-tile:hover img { transform: scale(1.04); }
#dnh .dnh-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(19,19,19,0) 45%, rgba(19,19,19,.72) 100%); }
#dnh .dnh-tile > span { position: absolute; inset-inline: 18px; bottom: 16px; z-index: 1; display: flex; flex-direction: column; gap: 2px; }
#dnh .dnh-tile b { color: var(--paper); font-size: 20px; font-weight: 800; }
#dnh .dnh-tile small { color: #cadaec; font-size: 14px; font-weight: 700; }

/* ---------- Steps / why cards ---------- */
#dnh .dnh-grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
#dnh .dnh-box { background: var(--bone); border-radius: 16px; padding: 28px; display: flex; flex-direction: column; gap: 12px; }
#dnh .dnh-box .dnh-n { color: var(--gold-ink); font-size: 14px; font-weight: 800; font-variant-numeric: tabular-nums; }
#dnh .dnh-box h3 { font-size: 20px !important; font-weight: 800 !important; line-height: 1.35 !important; }
#dnh .dnh-box p { color: var(--grey); font-size: 14px; line-height: 1.6; font-weight: 500; }

/* ---------- About the founders ---------- */
#dnh .dnh-about { background: var(--bone); overflow: hidden; }
#dnh .dnh-motif { position: absolute; top: -40px; inset-inline-end: -40px; width: 260px; height: 260px; opacity: .35; pointer-events: none; }
html[dir="rtl"] #dnh .dnh-motif { transform: scaleX(-1); }
#dnh .dnh-about .dnh-wrap, #dnh .dnh-contact .dnh-wrap { flex-direction: row; gap: 64px; align-items: center; flex-wrap: wrap; }
#dnh .dnh-about-copy { flex: 1 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
#dnh .dnh-about-copy p { color: var(--ink); font-size: 16px; line-height: 1.7; font-weight: 500; max-width: 68ch; }
#dnh .dnh-acts { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 10px; }
#dnh .dnh-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 28px; border-radius: 12px; font-size: 16px !important;
  font-weight: 800 !important; background: var(--ink); color: var(--bone) !important; border: 1px solid var(--ink); }
#dnh .dnh-btn:hover { background: #2A2926; }
#dnh .dnh-btn.is-ghost { background: var(--paper); color: var(--ink) !important; border-color: var(--gold); }
#dnh .dnh-btn.is-ghost:hover { background: var(--ink); color: var(--bone) !important; border-color: var(--ink); }
#dnh .dnh-btn.is-wa { background: var(--wa); color: var(--ink) !important; border-color: var(--wa); }
#dnh .dnh-btn.is-wa:hover { background: #1FBE5B; }
#dnh .dnh-founders { flex: 0 0 auto; display: flex; flex-direction: column; gap: 12px; align-items: center; }
/* the only file is 315 x 520: shown at 300 px wide, never larger */
#dnh .dnh-founders img { width: 300px; max-width: 100%; height: auto; border-radius: 16px; display: block; box-shadow: 0 20px 48px rgba(19,19,19,.18); }
#dnh .dnh-founders figcaption { color: var(--grey); font-size: 14px; font-weight: 700; text-align: center; }

/* ---------- Contact ---------- */
#dnh .dnh-contact { background: var(--bone); }
#dnh .dnh-contact-copy { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
#dnh .dnh-contact-copy > p { color: var(--grey); font-size: 16px; line-height: 1.7; font-weight: 500; }
#dnh .dnh-contact .dnh-acts { margin-top: 0; }
#dnh .dnh-contact .dnh-btn { padding: 0 26px; }
#dnh .dnh-addr { display: flex; align-items: center; gap: 8px; color: var(--grey); font-size: 14px; font-weight: 700; margin-top: 6px; flex-wrap: wrap; }
#dnh .dnh-office { flex: 1 1 420px; min-width: 0; max-width: 520px; height: 360px; object-fit: cover; border-radius: 16px; display: block; box-shadow: none !important; }

/* ---------- Tablet ---------- */
@media (max-width: 1100px) {
  #dnh .dnh-tiles, #dnh .dnh-grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #dnh .dnh-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #dnh .dnh-h1 { font-size: 56px !important; }
}
/* the home sections run edge to edge past the 8px public gutter */
@media (max-width: 900px) {
  #dnh { width: 100vw; margin-inline: calc(50% - 50vw); }
}

/* ---------- Phone (Home-Phone.dc.html) ---------- */
@media (max-width: 760px) {
  #dnh .dnh-wrap { padding: 56px 16px; gap: 24px; }
  #dnh h2 { font-size: 28px !important; }
  #dnh .dnh-hero { min-height: 0; }
  #dnh .dnh-hero .dnh-wrap { padding-block: 40px 28px; gap: 16px; }
  #dnh .dnh-hero::before { background: linear-gradient(180deg, rgba(19,19,19,.62) 0%, rgba(19,19,19,.5) 60%, rgba(19,19,19,.35) 100%) !important; }
  #dnh .dnh-eyebrow { font-size: 12px !important; letter-spacing: .14em; }
  html[dir="rtl"] #dnh .dnh-eyebrow { font-size: 16px !important; }
  #dnh .dnh-h1 { font-size: 40px !important; line-height: 1.1 !important; }
  html[dir="rtl"] #dnh .dnh-h1 { font-size: 28px !important; line-height: 1.3 !important; }
  #dnh .dnh-hero-lead { font-size: 16px !important; line-height: 1.55 !important; }
  #dnh .dnh-search { padding: 14px; border-radius: 16px; gap: 12px; }
  #dnh .dnh-seg span { padding: 0 14px; white-space: nowrap; } /* HOME-05: "Off-plan" wrapped to two lines at 390 */
  #dnh .dnh-row2 { flex-direction: column; }
  #dnh .dnh-go { width: 100%; min-height: 50px; }
  #dnh .dnh-suggest { position: absolute; }
  #dnh .dnh-trust .dnh-wrap { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 16px; padding-block: 28px; }
  #dnh .dnh-sep { display: none; }
  #dnh .dnh-stat b { font-size: 28px; }
  #dnh .dnh-tabs { margin-inline-start: 0; width: 100%; }
  #dnh .dnh-tabs .dnh-more { display: none; }
  /* The full-width .dnh-all-m button under the cards is the phone's "see all" (owner's final QA 2026-10-28, P4): the
     header link of the same sections pointed to the same page with the same words, so both showed at 390 px. */
  #dnh .dnh-proj .dnh-head .dnh-more, #dnh .dnh-team .dnh-head .dnh-more { display: none; }
  #dnh .dnh-cards { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  #dnh .dnh-cards > .dnh-card:nth-child(n+4) { display: none; }
  #dnh .dnh-btn.dnh-all-m { display: flex; align-self: stretch; }
  #dnh .dnh-ph { height: 210px; }
  #dnh .dnh-head .dnh-more { margin-inline-start: 0; }
  #dnh .dnh-tiles { gap: 12px; }
  #dnh .dnh-tile { height: 180px; border-radius: 16px; }
  #dnh .dnh-tile > span { inset-inline: 12px; bottom: 10px; }
  #dnh .dnh-tile b { font-size: 16px; }
  #dnh .dnh-grid4 { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  #dnh .dnh-steps .dnh-box { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; padding: 20px; }
  #dnh .dnh-steps .dnh-box p { flex: 1 1 100%; padding-inline-start: 34px; }
  #dnh .dnh-why .dnh-box { padding: 20px; }
  #dnh .dnh-about .dnh-wrap, #dnh .dnh-contact .dnh-wrap { gap: 28px; }
  #dnh .dnh-about-copy { display: contents; }
  #dnh .dnh-about-copy > * { order: 2; }
  #dnh .dnh-about-copy > .dnh-k, #dnh .dnh-about-copy > h2 { order: 0; }
  #dnh .dnh-founders { order: 1 !important; width: 100%; }
  #dnh .dnh-founders img { width: min(300px, 100%); }
  #dnh .dnh-acts { flex-direction: column; width: 100%; }
  #dnh .dnh-acts .dnh-btn { width: 100%; }
  #dnh .dnh-motif { width: 160px; height: 160px; }
  #dnh .dnh-office { flex-basis: auto; width: 100%; height: 220px; max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  #dnh *, #dnh *::before, #dnh *::after { transition: none !important; animation: none !important; }
}

/* ---------- Owner review 2026-10-29 (home session) ----------
   Spacing: two white sections in a row stacked 56 + 56 px, and the developers row carried its own 56 px on top of that (168 px of
   white above it). The theme rules load after this file, so these use #dnh#dnh. */
html[data-theme] #dnh#dnh .dnh-wrap { padding-block: 44px; }
html[data-theme] #dnh#dnh .dnh-hero .dnh-wrap { padding-block: 72px; }
html[data-theme] #dnh#dnh .dnh-trust .dnh-wrap { padding-block: 28px; }
html[data-theme] #dnh#dnh .dnh-cta .dnh-wrap { padding-block: 48px; }
html[data-theme] #dnh#dnh .dnh-devs { padding-block: 0; }
html[data-theme] #dnh#dnh .dnh-cta { margin-block: 44px; }
/* Hero photo: a portrait crop on phones (picture/source), positioned like the plain img */
#dnh .dnh-hero > picture { position: absolute; inset: 0; }
#dnh .dnh-hero > picture > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* Numbers strip: the figures link to their pages */
#dnh a.dnh-stat { color: inherit; text-decoration: none; border-radius: 12px; }
#dnh a.dnh-stat:hover b, #dnh a.dnh-stat:focus-visible b { color: var(--gold-ink, #007bff); }
@media (max-width: 760px) {
  html[data-theme] #dnh#dnh .dnh-wrap { padding-block: 32px; }
  html[data-theme] #dnh#dnh .dnh-hero .dnh-wrap { padding-block: 36px 24px; }
  html[data-theme] #dnh#dnh .dnh-trust .dnh-wrap { padding-block: 24px; }
  html[data-theme] #dnh#dnh .dnh-cta .dnh-wrap { padding: 28px 20px 120px; }
  html[data-theme] #dnh#dnh .dnh-cta { margin-block: 32px; }
}
/* Hero fills the first screen (owner 2026-10-30 «aks ro boland tar kon ... ta onjai ke ina bechasban be pain safhe»): photo down to
   where the numbers strip meets the bottom of the window; js/dn-home-2026.js sets --dnh-fold (window - header - strip). The photo
   keeps its top (the Burj Khalifa's spire) and gives up the grass at the bottom instead. */
@media (min-width: 761px) {
  html[data-theme] #dnh#dnh .dnh-hero { min-height: max(640px, var(--dnh-fold, calc(100svh - 210px))); }
}
#dnh .dnh-hero > picture > img, #dnh .dnh-hero > img { object-position: 50% 22%; }
/* Tools block (hub tools SEO task 2026-10-30): the three calculators, one card each, the panel look of "How we work" */
html[data-theme] #dnh .dnh-tools .dnh-wrap { padding-block: 24px 72px; gap: 24px; }
/* four tiles since 2026-11-23 (valuation, rental yield, mortgage, golden visa): four across, two on a tablet, one on a phone */
html[data-theme] #dnh .dnh-tool-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (min-width: 901px) and (max-width: 1199px) { html[data-theme] #dnh .dnh-tool-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
html[data-theme] #dnh .dnh-tool { display: flex; align-items: center; gap: 14px; padding: 20px 22px; border-radius: var(--radius-card); background: var(--color-surface);
  border: 1px solid var(--color-border); color: var(--color-text-primary); text-decoration: none; transition: border-color .15s ease, background .15s ease; }
html[data-theme] #dnh .dnh-tool:hover { border-color: var(--color-border-strong); background: var(--color-surface-hover); }
html[data-theme] #dnh .dnh-tool:focus-visible { outline: 2px solid var(--color-focus-ring); outline-offset: 2px; }
html[data-theme] #dnh .dnh-tool-ic { flex: 0 0 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--color-surface-tertiary); color: var(--color-text-primary); }
html[data-theme] #dnh .dnh-tool b { flex: 1 1 auto; font-size: 16px; font-weight: 600; line-height: 1.4; }
html[data-theme] #dnh .dnh-tool-go { flex: 0 0 auto; color: var(--color-text-muted); font-size: 20px; }
@media (max-width: 900px) { html[data-theme] #dnh .dnh-tool-row { grid-template-columns: 1fr; } html[data-theme] #dnh .dnh-tools .dnh-wrap { padding-block: 8px 48px; } }
/* the keyword line is the page's H1 now (owner 2026-10-30): it keeps the eyebrow's own line height, not the heading default */
#dnh .dnh-hero h1.dnh-eyebrow { line-height: 1.5 !important; }
html[dir="rtl"] #dnh .dnh-hero h1.dnh-eyebrow { line-height: 1.95 !important; }
/* Hero cleanup (owner 2026-11-01 «to safhe asli to serch popular palases ro bardar ke khamosh bashe, smar ro ham bokon ye dokme
   ya ikoni ke khalvat beshe»): Smart is an icon, gold when on and grey when off; one short licence line under the slogan; on a
   phone the three figures share one row, without icons. The theme rules load after this file, so these use #dnh#dnh. */
html[data-theme] #dnh#dnh .dnh-ai { flex: 0 0 44px; width: 44px; min-width: 44px; height: 44px; min-height: 44px; padding: 0; border-radius: 50%; justify-content: center; color: #007bff; }
html[data-theme] #dnh#dnh .dnh-ai[aria-pressed="false"] { color: var(--color-text-secondary); }
html[data-theme] #dnh#dnh .dnh-ai svg { width: 18px; height: 18px; }
#dnh#dnh .dnh-hero-lead { font-size: 14px !important; margin-top: 6px; opacity: .92; }
@media (max-width: 760px) {
  html[data-theme] #dnh#dnh .dnh-trust .dnh-wrap { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: start; gap: 6px; padding-block: 18px; }
  html[data-theme] #dnh#dnh .dnh-stat { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; }
  html[data-theme] #dnh#dnh .dnh-stat span.dnh-stat-ic { display: none; }
  html[data-theme] #dnh#dnh .dnh-stat b { align-self: center; font-size: 20px; }
  html[data-theme] #dnh#dnh .dnh-stat span:not(.dnh-stat-ic) { font-size: 12px; line-height: 1.3; }
}
/* The floating "Contact us" shows from the first screen (owner 2026-11-02 «az hamon aval ke load mishe in yeki pain safhe bashe»);
   the numbers strip sits at the bottom of that screen, so on wider screens its last figure keeps clear of the button's corner */
@media (min-width: 761px) {
  html[data-theme] #dnh#dnh .dnh-trust .dnh-wrap { padding-inline-end: max(32px, min(175px, calc(815px - 50vw))); }
}
/* home search: the "Buildings and projects" group under the areas */
#dnh .dnh-suggest .dnh-sg-h { padding: 10px 12px 4px; font-size: 12px; font-weight: 600; color: var(--color-text-secondary, var(--grey)); border-top: 1px solid var(--color-border-subtle, var(--line)); margin-top: 4px; }
#dnh .dnh-suggest .dnh-sg-h:first-child { border-top: 0; margin-top: 0; }
#dnh .dnh-suggest button[data-place] { align-items: center; gap: 10px; }
#dnh .dnh-suggest .dnh-sg-k { margin-inline-start: auto; font-size: 12px; font-weight: 500; color: var(--color-text-secondary, var(--grey)); white-space: nowrap; }
/* the suggestion list may run below the hero (it was cut at the hero's edge): the photo keeps its own clip, the hero sits above the strip */
#dnh .dnh-hero { overflow: visible; z-index: 3; }
#dnh .dnh-hero > picture { overflow: hidden; }

/* owner 2026-11-24 (mock-up approved): on phones the hero is about a quarter shorter, so the search and the first listings come up
   sooner; New properties now come before Featured off-plan (index.html en/fa/ar) */
@media (max-width: 760px) {
  html[data-theme] #dnh#dnh .dnh-hero .dnh-wrap, #dnh#dnh .dnh-hero .dnh-wrap { padding-block: 18px 16px; gap: 10px; }
  html body #dnh#dnh .dnh-hero .dnh-h1 { font-size: 28px !important; line-height: 1.1 !important; margin: 0 !important; }
  html[dir="rtl"] body #dnh#dnh .dnh-hero .dnh-h1 { font-size: 28px !important; line-height: 1.25 !important; }
  html body #dnh#dnh .dnh-hero .dnh-hero-lead { font-size: 16px !important; line-height: 1.35 !important; margin: 0 !important; }
  html body #dnh#dnh .dnh-hero .dnh-search { padding: 12px; gap: 10px; }
  html[data-theme] body #dnh#dnh .dnh-hero .dnh-h1-brand { font-size: 28px !important; }
  html[data-theme] body #dnh#dnh .dnh-hero .dnh-h1-tag { font-size: 20px !important; line-height: 1.3 !important; }
  html body #dnh#dnh .dnh-hero .dnh-go { min-height: 46px; }
}

/* Home hero background video (owner 2026-11-25): the picture stays underneath as the first paint; the clip (21:9 desktop,
   portrait phone) fades in once it plays, below the ::before shade. Skipped for reduced motion / Save-Data (inline script). */
#dnh .dnh-hero > .dnh-hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%;
  opacity: 0; transition: opacity .9s ease; pointer-events: none; }
#dnh .dnh-hero > .dnh-hero-video.is-on { opacity: 1; }
/* phones keep the hero picture only (2026-11-25: the portrait clip became the LCP element at 6.3 s on 4G) */
@media (max-width: 760px) { #dnh .dnh-hero > .dnh-hero-video { display: none; } }
