/* First Unicorn Interiors — community page skin v3, compact-template layer
   Loaded after /css/community-v3.css on community pages built with the short class names
   (.ch hero, .qc quote card, .cb-wrap, .pt-track, .roi-g, .why-g, .pool-tbl, .cmp-tbl).
   Same design as the hub pages: this file maps that design onto those names and onto the
   inline-styled blocks these pages carry. Presentation only; nothing here depends on,
   adds or removes page content. */

/* ── hero ── */
:root .ch{order:-2;position:relative;display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:clamp(32px,5vw,80px);align-items:end;width:100%;max-width:var(--maxw);min-height:0;margin:0 auto;padding:clamp(18px,2.4vw,36px) var(--pad) 0 !important;overflow:visible;background:none}
:root .ch-overlay{display:none}
:root .ch-content{display:contents}
:root .ch-content>nav{grid-column:1/-1;margin:0 0 clamp(10px,1.6vw,22px) !important;font-size:13px !important;font-weight:500;color:var(--ink) !important}
:root .ch-content>nav a{margin:0 .35em;font-weight:400;color:var(--muted) !important;text-decoration:none}
:root .ch-content>nav a:first-child{margin-left:0}
:root .ch-content>nav a:hover{color:var(--ink) !important}
:root .ch h1{grid-column:1/-1;margin:0;font-family:var(--serif);font-size:clamp(23px,2.5vw,38px);font-weight:500;line-height:1.15;letter-spacing:-.005em;color:var(--ink);text-wrap:wrap}
:root .ch h1 br{display:none}
:root .ch h1 em{display:block;margin-top:.02em;font-style:italic;font-weight:400;font-size:var(--name-size,clamp(58px,13.4vw,240px));line-height:.92;letter-spacing:-.035em;color:var(--ink);text-wrap:balance}
:root .ch-btn-p{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:54px;padding:0 26px;border:0;border-radius:2px;background:var(--ink);color:var(--cream);font-family:var(--sans);font-size:12.5px;font-weight:600;letter-spacing:.14em;text-transform:uppercase;text-decoration:none;white-space:nowrap;cursor:pointer;transition:transform .35s var(--ease),box-shadow .35s var(--ease),background-color .35s var(--ease),color .35s var(--ease)}
:root .ch-btn-p:hover{transform:translateY(-2px);background:#2A2822;color:var(--cream);box-shadow:0 14px 34px rgba(14,13,11,.3)}
:root .ch-btn-p svg{width:18px;height:18px;flex:0 0 auto;color:var(--wa)}
:root .ch-btn-o{display:inline-flex;align-items:center;min-height:44px;padding:0 0 3px;border:0;border-radius:0;background:linear-gradient(currentColor,currentColor) 0 78%/100% 1px no-repeat;color:var(--ink);font-size:15px;font-weight:600;letter-spacing:0;text-transform:none;text-decoration:none;white-space:nowrap;transition:background-size .45s var(--ease)}
:root .ch-btn-o:hover{background-size:0 1px;border:0;color:var(--ink)}
:root .ch-actions .ch-btn-p{min-height:58px;padding:0 28px}
:root .ch-img{order:5;grid-column:1/-1;position:static;inset:auto;display:block;width:100%;height:clamp(240px,36vw,640px);margin-top:clamp(28px,3.2vw,48px);border-radius:2px;object-fit:cover;object-position:50% 50%}
/* heroes drawn for this layout are 16:9 with the subject in the middle band; the stats card covers the foot of the picture,
   so the ones whose pool or terrace sits low in the frame are shown from further down */
:root .ch-img[src*="-hub-hero"]{object-position:50% 60%}
:root .ch-img[src*="/the-valley-hub-hero"]{object-position:50% 92%}
:root .ch-img[src*="/dubai-creek-harbour-hub-hero"]{object-position:50% 95%}
:root .ch-img[src*="/tilal-al-furjan-hub-hero"],:root .ch-img[src*="/jebel-ali-village-hub-hero"],:root .ch-img[src*="/sobha-elwood-hub-hero"]{object-position:50% 82%}
@media (max-width:860px){:root .ch{grid-template-columns:minmax(0,1fr)}}
/* long community names: keep the name on one line from tablet width up (see rule 6 in the runbook) */
:root:has(link[rel="canonical"][href$="/areas/dubai-creek-harbour/"]){--name-size:clamp(58px,12.4vw,206px)}

/* ── main grid ── */
:root .cb-wrap{max-width:var(--maxw);margin:0 auto;padding:0 var(--pad)}
:root .cb-sidebar>.qc{order:2;margin-bottom:350px !important}
@media (min-width:1041px) and (min-height:780px){:root .cb-sidebar>.qc{position:sticky;top:96px}}
:root .svc-tags{display:flex;flex-wrap:wrap;gap:8px;margin-top:24px}
:root .svc-tag[style]{border-color:var(--bronze) !important;color:var(--bronze-text) !important}
:root .svc-tag:has(>svg){min-width:44px;min-height:44px;justify-content:center;padding:0 12px;color:var(--bronze-text)}
:root .svc-tag svg{width:20px;height:20px;stroke-width:1.5}
:root .svc-tag:has(>svg):hover{color:var(--ink)}

/* tables */
:root .pool-tbl,:root .cmp-tbl{border:0;border-radius:0;font-size:15.5px}
:root .pool-tbl thead{background:none}
:root .pool-tbl th,:root .cmp-tbl th{padding:12px 16px 12px 0;background:none;border-bottom:1px solid var(--ink);font-size:12px;font-weight:600;letter-spacing:.14em;text-align:left;text-transform:uppercase;color:var(--muted)}
:root .pool-tbl tr{border-bottom:0 !important}
:root .pool-tbl td,:root .cmp-tbl td{padding:14px 16px 14px 0 !important;border-bottom:1px solid var(--hair);vertical-align:top;color:var(--body)}
:root .pool-tbl td:first-child,:root .cmp-tbl td:first-child{color:var(--ink)}
:root .cmp-tbl th+th,:root .cmp-tbl td+td{padding-left:18px !important}
:root .cmp-tbl th.fui,:root .cmp-tbl td.fui{background:rgba(184,146,75,.1);font-weight:600;color:var(--ink)}
:root .cmp-tbl tr:last-child td{border-bottom:1px solid var(--hair)}
:root .ck{margin-right:.45em;font-weight:600;color:#0E5B2B}
:root .cx{margin-right:.45em;color:#8F2A2A}
@media (min-width:1200px){:root .pool-tbl td:nth-child(3){white-space:nowrap}}

/* sections that use the full width */
:root .cb-grid>div:first-child>section:has(.pt-track),:root .cb-grid>div:first-child>section:has(.roi-g),:root .cb-grid>div:first-child>section:has(.why-g),:root .cb-grid>div:first-child>section:has(.cmp-tbl),:root .cb-grid>div:first-child>section:has(>div>details){grid-column:1/-1}
:root .cb-grid>div:first-child>section:has(.roi-g)>.v3m-fig img,:root .cb-grid>div:first-child>section:has(.cmp-tbl)>.v3m-fig img{aspect-ratio:21/9}
:root .cb-grid>div:first-child>section:has(.pt-track)+section,:root .cb-grid>div:first-child>section:has(>div>details)+section{border-top:0 !important}

/* approval process: dark band, copy left, steps right */
:root .cb-grid>div:first-child>section:has(.pt-track){grid-template-columns:minmax(0,1fr) minmax(0,1.3fr);column-gap:clamp(40px,6vw,110px);background:var(--ink);box-shadow:0 0 0 100vmax var(--ink);clip-path:inset(0 -100vmax);border-top:0 !important}
:root .cb-grid>div:first-child>section:has(.pt-track)>*{grid-column:1}
:root .cb-grid>div:first-child>section:has(.pt-track)>.v3m-cta{grid-column:1/-1;background:none;border:1px solid var(--hair-dark)}
:root section:has(.pt-track) .label{color:var(--gold-light)}
:root section:has(.pt-track) h2{color:var(--cream)}
:root section:has(.pt-track)>p{color:var(--on-dark)}
:root .cb-grid>div:first-child>section>.pt-track{grid-column:2;grid-row:1/span 16;position:relative;margin:0;padding:0;border-bottom:1px solid var(--hair-dark)}
:root .pt-track::before{display:none}

/* numbers */
:root .roi-g{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;margin-top:8px;border-top:1px solid var(--ink)}
:root .roi-c{padding:clamp(22px,2.4vw,36px) clamp(18px,2.4vw,40px) clamp(22px,2.4vw,36px) 0;background:none;border:0;border-radius:0;text-align:left}
:root .roi-c+.roi-c{padding-left:clamp(18px,2.4vw,40px);border-left:1px solid var(--hair)}
:root .roi-c>div:first-child:has(>svg){display:none}
:root .roi-n{margin:0 0 10px;font-family:var(--serif);font-size:clamp(44px,5vw,84px);font-weight:400;line-height:.95;letter-spacing:-.03em;color:var(--ink)}
:root .roi-n+div{margin:0 0 4px !important;font-size:15.5px !important;font-weight:600 !important;color:var(--ink) !important}
:root .roi-n+div+div{font-size:14.5px !important;color:var(--muted) !important}

/* reasons: photo left when the section carries one, three across when it does not */
:root .cb-grid>div:first-child>section:has(.why-g):has(>.v3m-fig){grid-template-columns:minmax(0,.8fr) minmax(0,1.6fr);column-gap:clamp(40px,6vw,110px)}
:root .cb-grid>div:first-child>section:has(.why-g):has(>.v3m-fig)>*{grid-column:2}
:root .cb-grid>div:first-child>section:has(.why-g):has(>.v3m-fig)>.v3m-cta{grid-column:1/-1}
:root .cb-grid>div:first-child>section:has(.why-g)>.v3m-fig{grid-column:1;grid-row:1/span 16;align-self:stretch;height:100%;min-height:340px;margin:0}
:root .cb-grid>div:first-child>section:has(.why-g)>.v3m-fig img{height:100%;aspect-ratio:auto}
:root .why-g{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(250px,100%),1fr));gap:0 clamp(28px,3.4vw,56px)}
:root .why-c{padding:24px 0;background:none;border:0;border-top:1px solid var(--hair);border-radius:0}
:root .why-c:hover{border-color:var(--hair)}
:root .why-c>div:first-child{margin:0 0 12px !important;font-size:0 !important;line-height:0;color:var(--bronze-text)}
:root .why-c>div:first-child svg{width:26px;height:26px;stroke-width:1.3}
:root .why-c>div:nth-child(2){margin:0 0 4px !important;font-family:var(--serif);font-size:26px !important;font-weight:600 !important;line-height:1.2;color:var(--ink) !important}
:root .why-c>div:nth-child(3){font-size:15.5px !important;line-height:1.6 !important;color:var(--body) !important}
@media (min-width:1041px){:root .cb-grid>div:first-child>section:has(.why-g):not(:has(>.v3m-fig)) .why-g{grid-template-columns:repeat(3,minmax(0,1fr))}}

/* questions: tinted band, heading left, list right */
:root .cb-grid>div:first-child>section:has(>div>details){grid-template-columns:minmax(0,1fr) minmax(0,1.6fr);column-gap:clamp(40px,6vw,110px);background:var(--cream2);box-shadow:0 0 0 100vmax var(--cream2);clip-path:inset(0 -100vmax);border-top:0 !important}
:root .cb-grid>div:first-child>section:has(>div>details)>*{grid-column:1}
:root .cb-grid>div:first-child>section:has(>div>details)>.v3m-cta{grid-column:1/-1}
:root .cb-grid>div:first-child>section>div:has(>details){grid-column:2;grid-row:1/span 16;border-bottom:1px solid rgba(14,13,11,.2)}
:root .cb-grid details{padding:0 !important;border-bottom:0 !important;border-top:1px solid rgba(14,13,11,.2)}
:root .cb-grid details>summary{min-height:72px;padding:14px 0;align-items:center !important;gap:24px;font-family:var(--serif);font-size:clamp(22px,1.9vw,28px) !important;font-weight:600 !important;line-height:1.2;color:var(--ink) !important}
:root .cb-grid details>summary::-webkit-details-marker{display:none}
:root .cb-grid details>summary>span{flex:0 0 42px !important;display:inline-flex;align-items:center;justify-content:center;width:42px;height:42px;margin-left:0 !important;border:1px solid rgba(14,13,11,.3);border-radius:50%;font-family:var(--sans);font-size:20px !important;font-weight:400;color:var(--ink) !important;transition:transform .4s var(--ease)}
:root .cb-grid details[open]>summary>span{transform:rotate(45deg)}
:root .cb-grid details>p{max-width:760px;margin:0 !important;padding:0 66px 26px 0 !important;line-height:1.65 !important;color:var(--body) !important}

/* side column: quote card */
:root .qc{padding:clamp(22px,2vw,30px);background:var(--ink);border-radius:2px;color:var(--cream);box-shadow:0 30px 70px rgba(14,13,11,.18)}
:root .qc h4{margin:0 0 10px;font-family:var(--serif);font-size:27px;font-weight:500;color:var(--cream)}
:root .qr{display:flex;align-items:baseline;justify-content:space-between;gap:16px;padding:9px 0;border-bottom:1px solid var(--hair-dark);font-size:14.5px;line-height:1.5}
:root .qr-l{color:var(--on-dark)}
:root .qr-v{font-weight:600;text-align:right;color:var(--gold-light)}
:root .qr-v[style]{color:#86E3A6 !important}
:root .qc>p{margin:12px 0 0 !important;font-size:13px;line-height:1.4;color:var(--on-dark) !important}

/* closing call to action */
:root main>section[style*="linear-gradient"] .ch-btn-p{background:var(--wa);color:var(--ink)}
:root main>section[style*="linear-gradient"] .ch-btn-p:hover{background:#3BE07A;color:var(--ink);box-shadow:0 14px 34px rgba(37,211,102,.32)}
:root main>section[style*="linear-gradient"] .ch-btn-p svg{color:var(--ink)}
:root main>section[style*="linear-gradient"] .ch-btn-o{min-height:54px;padding:0 26px;background:none;border:1px solid rgba(244,241,233,.4);border-radius:2px;font-size:12.5px;letter-spacing:.14em;text-transform:uppercase;color:var(--cream)}
:root main>section[style*="linear-gradient"] .ch-btn-o:hover{border:1px solid var(--cream);color:var(--cream)}

/* community guide link (sits after the footer in the markup; shown after the main column) */
:root body>div[style*="max-width:900px"]:has(>a[href^="/guides/"]){width:min(100% - 2 * var(--pad),var(--inner));max-width:none !important;margin:clamp(20px,2.4vw,36px) auto 0 !important;padding:0 !important}
:root body>div[style*="max-width:900px"]>a[href^="/guides/"]{display:flex !important;flex-wrap:wrap;align-items:baseline;gap:6px 28px;padding:clamp(18px,2vw,26px) clamp(20px,3vw,48px) !important;background:var(--paper) !important;border:1px solid var(--hair) !important;border-radius:2px !important;color:var(--ink) !important;transition:border-color .3s var(--ease) !important}
:root body>div[style*="max-width:900px"]>a[href^="/guides/"]:hover{border-color:var(--ink) !important}
:root body>div[style*="max-width:900px"]>a[href^="/guides/"]>br{display:none}
:root body>div[style*="max-width:900px"]>a[href^="/guides/"]>span:first-child{font-size:12.5px !important;font-weight:600;letter-spacing:.2em !important;color:var(--bronze-text) !important}
:root body>div[style*="max-width:900px"]>a[href^="/guides/"]>span:last-child{font-family:var(--serif);font-size:clamp(22px,1.9vw,28px) !important;font-weight:500 !important;line-height:1.2}

/* ── one column ── */
@media (max-width:1040px){
  :root .cb-grid>div:first-child>section:has(>div>details){order:8}
  :root .cb-sidebar>.qc{grid-column:1;position:static;order:4;margin:0 0 var(--sec) !important}
  :root .cb-grid>div:first-child>section:has(.pt-track),:root .cb-grid>div:first-child>section:has(>div>details),:root .cb-grid>div:first-child>section:has(.why-g):has(>.v3m-fig){grid-template-columns:minmax(0,1fr)}
  :root .cb-grid>div:first-child>section>.pt-track,:root .cb-grid>div:first-child>section>div:has(>details){grid-column:1;grid-row:auto;margin-top:12px}
  :root .cb-grid>div:first-child>section:has(.why-g):has(>.v3m-fig)>*{grid-column:1}
  :root .cb-grid>div:first-child>section:has(.why-g)>.v3m-fig{grid-row:auto;height:auto;min-height:0;margin:4px 0 28px}
  :root .cb-grid>div:first-child>section:has(.why-g)>.v3m-fig img{height:auto;aspect-ratio:16/9}
}
@media (max-width:760px){
  :root .roi-g{grid-template-columns:minmax(0,1fr)}
  :root .roi-c+.roi-c{padding-left:0;border-left:0;border-top:1px solid var(--hair)}
  :root .cb-grid details>p{padding-right:0 !important}
  /* the price table reads as stacked rows on a phone; every cell stays on screen */
  :root .pool-tbl,:root .pool-tbl thead,:root .pool-tbl tbody{display:block;min-width:0 !important}
  :root .pool-tbl thead tr{display:flex;flex-wrap:wrap;gap:2px 16px;padding:0 0 10px;border-bottom:1px solid var(--ink) !important}
  :root .pool-tbl th{padding:0 !important;border:0 !important;font-size:11px !important}
  :root .pool-tbl tbody tr{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:3px 16px;padding:16px 0;border-bottom:1px solid var(--hair) !important}
  :root .pool-tbl td{display:block;padding:0 !important;border:0 !important}
  :root .pool-tbl td:nth-child(1){font-size:17px}
  :root .pool-tbl td:nth-child(2){text-align:right}
  :root .pool-tbl td:nth-child(3),:root .pool-tbl td:nth-child(4){grid-column:1/-1}
  :root .pool-tbl td:nth-child(4){font-size:14.5px !important}
}
/* the comparison reads as one block per topic on a phone: topic, our answer on a tinted line, the usual answer under it */
@media (max-width:560px){
  :root .cmp-tbl,:root .cmp-tbl thead,:root .cmp-tbl tbody{display:block;min-width:0 !important}
  :root .cmp-tbl thead tr{display:flex;flex-wrap:wrap;gap:2px 16px;padding:0 0 10px;border-bottom:1px solid var(--ink)}
  :root .cmp-tbl th,:root .cmp-tbl th+th{padding:0 !important;background:none;border:0;font-size:11px}
  :root .cmp-tbl tbody tr{display:grid;grid-template-columns:minmax(0,1fr);gap:8px;padding:16px 0;border-bottom:1px solid var(--hair)}
  :root .cmp-tbl td,:root .cmp-tbl td+td{display:block;padding:0 !important;border:0 !important}
  :root .cmp-tbl td:first-child{font-size:12px;font-weight:600;letter-spacing:.14em;text-transform:uppercase;color:var(--muted)}
  :root .cmp-tbl td.fui{padding:9px 12px !important;border-radius:2px}
  :root .cmp-tbl td.fui+td{padding:0 12px !important}
}
