/* A development's own page (site/pages/new-development.html, filled by the Worker from the live feed: src/developments.js).
   The project leads: its name in the header and over its picture, never its developer (Hampus, 2026-10-28). Our
   brochure's card sits beside the page and stays in reach as it scrolls; on a phone it follows the picture, and a bar at
   the foot leads back to it. */

/* the header: the development's name in the brand pill, the brochure on the right (no pages in the middle) */
.dv-hdr .hdr-in{display:flex}
.dv-mark{flex-direction:column;align-items:flex-start;justify-content:center;gap:4px;min-width:0;max-width:min(62vw,420px);padding:0 26px}
.dv-mark-name{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font:500 21px/1 var(--f-sans);letter-spacing:-.03em}
.dv-mark-place{font:600 10px/1.2 var(--f-sans);letter-spacing:.22em;text-transform:uppercase;color:var(--brown)}
.dv-mark-place:empty{display:none}
.dv-go{gap:10px;padding:0 22px}
.dv-go .ic{width:18px;height:18px}

/* the picture, sharp: the name over a darkened foot, never a blur (Hampus, 2026-10-28: it was "blurring the whole image") */
.dv-hero{position:relative;height:clamp(560px,90svh,980px);overflow:hidden;background:var(--greige);color:#fff}
.dv-hero-pic img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.dv-hero-shade{position:absolute;inset:auto 0 0;height:70%;background:linear-gradient(180deg,rgba(52,36,28,0) 0%,rgba(52,36,28,.34) 32%,rgba(46,32,25,.74) 100%)}
.dv-hero-in{position:absolute;inset:auto 0 0;padding-bottom:clamp(40px,5.4vw,84px)}
.dv-hero-words{max-width:min(820px,calc(100% - var(--dv-side) - var(--dv-gap)));text-shadow:0 1px 2px rgba(30,20,14,.3),0 1px 18px rgba(40,28,20,.42)}
.dv-chips{text-shadow:none}
.dv-hero .lbl{color:#fff;text-shadow:0 1px 3px rgba(30,20,14,.55),0 0 14px rgba(30,20,14,.45)}
.dv-hero h1{margin:12px 0 16px;font:500 clamp(56px,8.6vw,148px)/.88 var(--f-sans);letter-spacing:-.06em;color:#fff;text-wrap:balance}
.dv-tag{margin:0;max-width:46ch;font-size:clamp(17px,1.35vw,20px);line-height:1.5;color:rgba(255,255,255,.94)}
.dv-chips{display:flex;flex-wrap:wrap;gap:8px;margin:24px 0 0;padding:0;list-style:none}
.dv-chips li{display:inline-flex;align-items:center;min-height:40px;padding:0 16px;border-radius:999px;font:600 11px/1 var(--f-sans);letter-spacing:.14em;text-transform:uppercase;color:var(--ink)}

/* the page beside the card */
.dv{--dv-side:clamp(350px,29vw,410px);--dv-gap:clamp(32px,4.5vw,80px)}
.dv-body{display:grid;grid-template-columns:minmax(0,1fr) var(--dv-side);gap:var(--dv-gap);align-items:start}
.dv-main{grid-column:1;grid-row:1;min-width:0}
.dv-side{grid-column:2;grid-row:1;position:sticky;top:92px;z-index:3;margin-top:calc(-1 * clamp(340px,36vw,470px))}

/* the brochure's card */
.dv-card{display:grid;gap:18px;padding:clamp(22px,2vw,28px);border-radius:28px;background:var(--mist);box-shadow:0 44px 90px -42px rgba(58,40,31,.55),0 2px 12px rgba(58,40,31,.06);scroll-margin-top:100px}
.dv-bro{display:grid;grid-template-columns:128px minmax(0,1fr);gap:20px;align-items:center}
.dv-covers{position:relative;aspect-ratio:1.414/1;margin:10px 6px 4px}
.dv-bro:has(.dv-covers:empty){grid-template-columns:minmax(0,1fr)}
.dv-covers:empty{display:none}
.dv-covers img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;border-radius:5px;background:#fff;box-shadow:0 12px 26px -12px rgba(58,40,31,.6)}
.dv-covers img:nth-child(1){z-index:3}
.dv-covers img:nth-child(2){z-index:2;transform:translate(14px,-9px) rotate(6deg)}
.dv-covers img:nth-child(3){z-index:1;transform:translate(-10px,-11px) rotate(-7deg)}
.dv-bro h2{margin:6px 0 0;font:500 clamp(32px,2.6vw,40px)/.94 var(--f-sans);letter-spacing:-.045em}
.dv-bro-lead{margin:0;font-size:15.5px;line-height:1.55;color:var(--brown)}
.dv-form{grid-template-columns:1fr;gap:12px}
.dv-form .inp{min-height:52px;background-color:rgba(255,255,255,.74)}
.dv-form .tick{font-size:13px}
/* the one line the law asks for, in place of a box to tick (Hampus, 2026-10-28: "minimal text as legally possible") */
.dv-fine{margin:0;font-size:12px;line-height:1.5;color:var(--brown)}
.dv-fine a{color:var(--ink);text-decoration:underline;text-underline-offset:3px}
.dv-form .enq-go{flex-direction:column;align-items:stretch;gap:10px}
.dv-form .ts{margin-top:-12px}
.dv-form .ts.on{margin-top:0}
.dv-card .send{justify-content:space-between;width:100%}
.dv-done{display:grid;gap:14px;outline:0}
.dv-done-p{margin:0;font-size:15.5px;line-height:1.55;color:var(--brown)}
.dv-wa{gap:10px;justify-self:start}
.dv-wa .ic{width:18px;height:18px}
.dv-agent{padding-top:16px;border-top:1px solid rgba(62,44,34,.12)}

/* the sections */
.dv-sec{padding-top:clamp(56px,6vw,96px)}
.dv-facts-sec{padding-top:clamp(28px,3vw,44px)}
.dv-sec>h2{margin:10px 0 clamp(20px,2.4vw,30px);font:500 clamp(38px,4.4vw,68px)/.95 var(--f-sans);letter-spacing:-.048em;text-wrap:balance}
.dv-main .facts{grid-template-columns:repeat(3,minmax(0,1fr))}
/* the last fact takes the room its row leaves, so the grid never ends in a gap */
.dv-main .fact:last-child:nth-child(3n+1){grid-column:1/-1}
.dv-main .fact:last-child:nth-child(3n+2){grid-column:span 2}
.dv-main .fact b{font-size:20px;line-height:1.2;overflow-wrap:anywhere}
.dv-text p{margin:0 0 1em;max-width:64ch;font-size:clamp(16px,1.2vw,18px);line-height:1.7;color:var(--brown)}
.dv-text a{color:var(--ink);text-decoration:underline;text-underline-offset:3px}   /* the area's new developments, in Location (as .dv-fine a) */
.dv-homes{margin:0;padding:0;list-style:none;border-top:1px solid var(--greige)}
.dv-homes li{display:grid;grid-template-columns:1.2fr .8fr 1fr 1.1fr;gap:6px 14px;align-items:baseline;padding:20px 4px;border-bottom:1px solid var(--greige);font-size:16px;color:var(--brown)}
.dv-homes .h0{font:500 22px/1.2 var(--f-sans);letter-spacing:-.02em;color:var(--ink)}
.dv-homes .h3{text-align:right;font-weight:600;color:var(--ink);font-variant-numeric:tabular-nums}
.dv-note{margin:14px 0 0;font-size:13px;line-height:1.55;color:var(--brown)}
.dv-ask{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:16px 28px;margin-top:28px;padding:22px 22px 22px 30px;border-radius:24px;background:var(--mist)}
.dv-ask p{margin:0;max-width:30ch;font:italic 400 clamp(21px,1.8vw,26px)/1.3 var(--f-serif);color:var(--ink)}
.dv-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 40px;margin:0}
.dv-list div{display:flex;justify-content:space-between;align-items:baseline;gap:18px;padding:15px 2px;border-bottom:1px solid var(--greige)}
.dv-list dt{font-weight:500}
.dv-list dd{margin:0;text-align:right;color:var(--brown)}
.dv-text+.dv-list{margin-top:8px}
.dv-map{margin-top:30px}

/* the end: the brochure once more, edge to edge */
.dv-end{margin-top:clamp(80px,9vw,140px);padding-block:clamp(60px,7vw,110px);border-radius:28px;background:var(--mist)}
.dv-end-words{max-width:760px}
.dv-end h2{margin:12px 0 18px;font:500 clamp(46px,6.4vw,104px)/.92 var(--f-sans);letter-spacing:-.056em;text-wrap:balance}
.dv-end p{margin:0 0 28px;max-width:46ch;font-size:clamp(17px,1.35vw,20px);line-height:1.55;color:var(--brown)}

/* the footer: our mark and the legal pages, nothing more (Hampus, 2026-10-28) */
.dv-ftr{display:grid;gap:22px;padding-block:clamp(48px,6vw,80px) calc(40px + env(safe-area-inset-bottom,0px));font-size:13.5px;line-height:1.6;color:var(--brown)}
.dv-ftr-logo{justify-self:start;color:var(--ink)}
.dv-ftr-logo .lk{height:34px}
.ftr-legal-nav{display:flex;flex-wrap:wrap;gap:6px 22px;font:600 11px/1.6 var(--f-sans);letter-spacing:.16em;text-transform:uppercase}
.ftr-legal-nav a:hover{color:var(--wine)}

/* a phone: the brochure's button at the foot of the screen while the card is out of sight */
.dv-bar{position:fixed;inset:auto 0 0;z-index:40;display:none;padding:12px var(--gut) calc(12px + env(safe-area-inset-bottom,0px));background:rgba(255,255,255,.74);-webkit-backdrop-filter:blur(18px) saturate(150%);backdrop-filter:blur(18px) saturate(150%);border-top:1px solid rgba(62,44,34,.08);transform:translateY(110%);transition:transform .5s var(--ease)}
.dv-bar .send{width:100%;justify-content:space-between}
.dv-bar.on{transform:none}

@media (max-width:1000px){
  .dv-hero{height:clamp(560px,84svh,780px)}
  .dv-hero-shade{height:92%}
  .dv-hero-in{padding-bottom:84px}
  .dv-hero-words{max-width:none}
  .dv-body{grid-template-columns:minmax(0,1fr);gap:0}
  .dv-side{grid-column:1;grid-row:1;position:static;margin-top:-48px}
  .dv-main{grid-row:2;display:flex;flex-direction:column}
  /* the photos straight after the form, so a phone shows pictures there (Hampus, 2026-10-28) */
  .dv-photos{order:-1;padding-top:24px}
  .dv-bar{display:block}
  .dv-ftr{padding-bottom:calc(110px + env(safe-area-inset-bottom,0px))}
}
@media (max-width:760px){
  .dv-mark{padding:0 18px;min-height:52px}
  .dv-mark-name{font-size:17px}
  .dv-mark-place{font-size:9px}
  .dv-go{padding:0 16px;letter-spacing:.12em}
  .dv-go .ic{display:none}
  .dv-hero h1{font-size:clamp(48px,14vw,72px)}
  .dv-chips li{min-height:36px;padding:0 13px;font-size:10px}
  .dv-card{border-radius:24px}
  .dv-bro{grid-template-columns:104px minmax(0,1fr);gap:16px}
  .dv-main .facts{grid-template-columns:repeat(2,minmax(0,1fr))}
  .dv-main .fact:last-child:nth-child(3n+1),.dv-main .fact:last-child:nth-child(3n+2){grid-column:auto}
  .dv-main .fact:last-child:nth-child(2n+1){grid-column:1/-1}
  .dv-main .fact{padding:16px 18px}
  .dv-main .fact b{font-size:18px}
  .dv-homes li{grid-template-columns:1fr auto;padding:16px 2px}
  .dv-homes .h1,.dv-homes .h2{grid-column:1;font-size:14px}
  .dv-homes .h1{grid-row:2}
  .dv-homes .h2:empty{display:none}
  .dv-homes .h3{grid-column:2;grid-row:1}
  .dv-ask{padding:22px}
  .dv-ask .send{width:100%;justify-content:space-between}
  .dv-list{grid-template-columns:1fr}
  .dv-end{border-radius:24px}
}
