/* Desktop refinements (owner's desktop review, Nov 30 2026).
   Loaded after app.css. Everything here is inside desktop media queries (900px and wider, or 1000px for the map card),
   so the approved phone presentation is untouched. Sizes that should grow with the screen use vh, so a tall monitor
   fills its height and a short laptop keeps the one-screen layout. */

/* "Tap" on touch screens, "Click" with a mouse (map instructions, survey galleries) */
.w-click{display:none!important}
.mh-tips span span{display:inline}
@media(min-width:900px) and (hover:hover) and (pointer:fine){.w-tap{display:none!important}.w-click{display:inline!important}}

.hp-d{display:none}
/* close × on Why Greenwood Park? and Build Assist: desktop only */
.page-x{display:none!important}

@media(min-width:900px){
  /* ---------- 1. Cover ---------- */
  .home .brand{font-size:29px}
  .site-header .nav a{font-size:19.5px;padding:8px 14px;min-height:48px}
  .nav{gap:6px}
  .hero-why .h2h-link{font-size:22px;padding:13px 29px;min-height:60px;gap:10px}
  .hp-m{display:none}
  .hp-d{display:block}
  .hero-text>.hero-para{max-width:none;padding:0 24px!important;font-size:clamp(22px,2.7vh,32px);line-height:1.72;text-shadow:0 1px 3px rgba(0,0,0,.35)}
  .hp-d>span{display:block;white-space:nowrap}

  /* ---------- 2. Why Greenwood Park? ---------- */
  /* one unit (--u, the size of a line) grows with the screen height so the page fills about 88% of it */
  .why-page:not(.bah-page){--u:clamp(17px,2.09vh,30px);font-size:var(--u);max-width:none;min-height:100vh;min-height:100svh;box-sizing:border-box;
    display:flex;flex-direction:column;justify-content:center;padding-top:3vh;padding-bottom:3vh}
  .why-page:not(.bah-page) .why-title{font-size:max(34px,calc(var(--u) * 1.85));margin:0 0 .3em;white-space:nowrap}
  .why-page:not(.bah-page) .why-logo{width:max(62px,calc(var(--u) * 3.35));margin:0 auto .62em}
  .why-page:not(.bah-page) .why-sec{margin:0 0 .9em}
  .why-page:not(.bah-page) .why-sec h2{font-size:1.06em;margin:0 0 .36em}
  .why-page:not(.bah-page) .why-sec p,.why-page:not(.bah-page) .why-sec .why-lead{font-size:1em;line-height:1.4}
  .why-green .why-page:not(.bah-page) .why-sec h2::after{width:2.2em;margin-left:-1.1em;height:max(1px,.07em);bottom:-.18em}
  .why-page:not(.bah-page) .why-rule{width:2.2em;height:max(1px,.07em);margin:.36em auto .3em}
  .why-page:not(.bah-page) .why-links{font-size:1.2em;gap:.9em;margin-top:.55em}
  .why-page:not(.bah-page) .why-links a{padding:.3em .1em}

  /* close ×: same size and place as the story close ×; ivory on the green page, forest green on white Build Assist */
  .page-x{display:grid!important}
  body .cine-x.page-x{position:fixed;z-index:30;top:14px;right:18px}
  .page-x svg{width:30px;height:30px;stroke-width:1.4;opacity:.9}
  .page-x:hover svg,.page-x:focus-visible svg{opacity:1;stroke-width:1.8}
  body .bah-page .cine-x.page-x{top:28px;right:30px}
  .bah-white .bah-page .page-x svg{stroke:#f7f3ea;filter:none}

  /* ---------- 3. Build Assist ---------- */
  /* --bu (a service line) grows with the screen height; everything else is a multiple of it */
  .bah-page:not(.bah-view){--bu:clamp(20px,2.2vh,27px);max-width:min(980px,92vw)}
  .bah-page .bah-band .bah-title{font-size:clamp(46px,4.5vh,60px)}
  .bah-page .bah-band-sub{font-size:calc(var(--bu) * .86)!important}
  .bah-page .bah-sec h2{font-size:calc(var(--bu) * .87);margin-bottom:.5em}
  .bah-page .bah-sec p,.bah-page .bah-links a{font-size:var(--bu);line-height:1.42}
  .bah-white .bah-page .bah-emph{font-size:calc(var(--bu) * 1.45)!important;margin-top:.35em!important}
  .bah-page .bah-cred{font-size:calc(var(--bu) * .68)!important;margin-top:.7em!important}
  .bah-page .bah-trip{max-width:clamp(560px,64vh,860px);gap:clamp(8px,1vh,14px)}
  .bah-page .bah-trip span{font-size:calc(var(--bu) * .8);margin-top:.4em}
  .bah-page .bah-btns .h2h-link{font-size:calc(var(--bu) * .92);min-width:calc(var(--bu) * 14);min-height:calc(var(--bu) * 2.6);padding:0 1.4em}
  .bah-page .bah-home{font-size:calc(var(--bu) * .9)}
  .bah-page .bah-home a{padding:.35em .2em}
  .bah-banded .bah-gap{max-height:calc(var(--g) * var(--bu) * .05)}
}

/* ---------- 4. Homesite map ---------- */
/* the whole map presentation (heading, instructions, map, its three links and the disclaimer) fits the screen height,
   down to a 520px map on short laptop screens. The artwork and hotspots scale together, so nothing moves out of place. */
@media(min-width:900px){
  .home .map-box{max-width:clamp(520px,calc((100vh - 272px) * .7564),900px)}
  .map-head{padding:18px 16px 6px}
  .mh-title{font-size:clamp(46px,5.2vh,60px)}
  .mh-sub{font-size:clamp(24px,2.6vh,30px)}
  .mh-label{font-size:clamp(15px,1.6vh,17px)}
  .mh-tips{font-size:clamp(18px,2.05vh,23px);margin-top:10px;padding-bottom:6px}
}
@media(min-width:1000px){
  /* homesite card right alongside the map (placed by placePlatCard), larger type */
  .sheet.pc-sheet.pc-beside{position:absolute;right:auto;bottom:auto;box-shadow:0 10px 30px rgba(0,40,30,.22);animation:pcFade .2s ease-out}
  .card-tall .sheet.pc-sheet.pc-beside .pc-plat,.sheet.pc-beside .pc-plat{height:clamp(220px,34vh,380px)}
  .sheet.pc-beside .pc-head{font-size:21px;margin:6px 30px 10px}
  .sheet.pc-beside .pc .pc-links{font-size:21px;margin-top:11px;gap:0 1em}
  .sheet.pc-beside .pc .pc-links a{padding:2px 4px 3px}
  .sheet.pc-beside .pc-x{font-size:28px;width:40px;height:40px}
}
@keyframes pcFade{from{opacity:0}}
@media(prefers-reduced-motion:reduce){.sheet.pc-sheet.pc-beside{animation:none}}

/* ---------- 5. Photo stories: five neighborhoods, Community Life, Explore Weaverville ---------- */
/* One frame for all seven: the title band, then the photograph a short step below it, sized so the photograph, its
   caption and the dots fill the screen. --cap is the room kept for the caption (neighborhood narratives are longer). */
@media(min-width:900px){
  .cine{--band:70px;--gapT:10px;--cap:250px;--dotsH:44px;--bot:22px;--ar:1.5}
  .cl-story{--cap:132px;--ar:1.3333}
  .title-band .cine-band{height:var(--band)}
  .title-band .cine-band h1{font-size:clamp(38px,4.6vh,52px)}
  .cine .show{margin-top:var(--gapT)}
  .cine .slide-ph,.cl-story .slide-ph{width:min(100%,calc(min(100vh - var(--band) - var(--gapT) - var(--cap) - var(--dotsH) - var(--bot),(min(100vw,1600px) - 64px) / var(--ar)) * var(--ar)))}
  .cine{max-width:1600px}
  .wv-story .slide-ph .ph-empty{width:100%;height:100%;aspect-ratio:auto}
  .cl-story .show{margin-top:var(--gapT);margin-bottom:0}
  .cl-story::after{flex:1 0 var(--bot)}
  .cine{padding-bottom:var(--bot)}
  /* captions */
  .cine .slide figcaption{font-size:clamp(21px,2.4vh,25px);line-height:1.55;max-width:900px;margin-top:18px}
  .heading-rule .cine-h{font-size:clamp(24px,2.75vh,30px);margin-bottom:10px}
  .heading-rule .cine-h::after{width:52px;margin-top:10px}
  .cl-story .cine-sub{font-size:clamp(19px,2.2vh,23px);margin-top:12px}
  .cl-story .slide figcaption{margin-top:18px}
  /* dots: a little larger */
  .cine-dots{gap:4px;margin-top:12px}
  .cine-dots button{width:28px;height:28px}
  .cine-dots button::before{width:10px;height:10px}
  /* arrows: white chevrons on a soft translucent dark disc, legible over bright photographs (the yellow crossing sign) */
  .cine-arrow{width:56px;height:56px;border-radius:50%;background:rgba(10,22,18,.38);-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);transition:background .2s}
  .cine-arrow.prev{left:calc(var(--ph-l,0px) + 16px)}.cine-arrow.next{right:calc(var(--ph-r,0px) + 16px)}
  .cine-arrow svg{width:26px;height:26px;stroke-width:2.2;filter:none}
  .cine-arrow.prev svg{margin-left:-3px}.cine-arrow.next svg{margin-right:-3px}
  .cine-arrow:hover{background:rgba(10,22,18,.58)}
  .cine-arrow:focus-visible{outline:2px solid var(--gold);outline-offset:2px}
  /* close ×: the same size and place on all seven, centred on the title band */
  .title-band .cine-x{top:calc((var(--band) - 64px) / 2);right:8px}
}

/* ---------- 6. Survey galleries ---------- */
@media(min-width:900px){
  .sv-hint{font-size:19px;margin-top:6px}
  /* the Map link stays in the same top-right place while the drawings scroll */
  .survey-page .sv-map{position:fixed;z-index:19;top:84px;right:max(24px,calc((100vw - 1240px) / 2 + 24px));font-size:20px;color:var(--green);
    padding:8px 18px;border:1px solid rgba(0,61,46,.28);border-radius:999px;background:rgba(251,251,250,.92);box-shadow:0 2px 10px rgba(0,40,30,.08)}
  .survey-page .sv-map:hover,.survey-page .sv-map:focus-visible{border-color:var(--green);text-decoration:none;background:#fff}
}

/* email address at the foot of From Homesite to Home: reads as a link (it opens the mail program; on a computer the
   address is also copied and a short note confirms it) */
@media(min-width:900px){.hs-email{text-decoration:underline;text-decoration-color:rgba(201,168,90,.8);text-decoration-thickness:1px;text-underline-offset:5px}
  .hs-email:hover,.hs-email:focus-visible{text-decoration-color:#f7f3ea}}
a[href^="mailto:"]{position:relative}
a[href^="mailto:"][data-copied]::after{content:attr(data-copied);position:absolute;left:50%;top:calc(100% + 8px);transform:translateX(-50%);white-space:nowrap;
  padding:5px 12px;border-radius:4px;background:rgba(10,30,24,.88);color:#f3eedf;font:600 13px/1.3 "Source Sans 3",system-ui,sans-serif;font-style:normal;letter-spacing:.04em;text-shadow:none;pointer-events:none;z-index:5}
