/* ============================================================
   UNLYRA — HOUSE UI  (v37)
   Shared across every page. Loaded after the page's own styles.
     1. The house's own menus: select, date, time — no native sheets.
     2. Display type: the lines that wanted a better face.
     3. Layout repairs: footer strip, overlaps, wrapping.
   ============================================================ */

/* ---------- 0. page behaviour ---------- */
html,body{overscroll-behavior-y:none}           /* a swipe at the top no longer reloads the page */
html{scroll-padding-top:96px}
[id]{scroll-margin-top:96px}                     /* anchors land below the fixed header */
a[href^="tel:"],.nowrap{white-space:nowrap}
.field textarea{resize:none}                     /* the native grip is gone; the box grows with the text */

/* ---------- 1. the house's own controls ---------- */
.ufield{position:relative}
.ubtn{width:100%;display:flex;align-items:center;justify-content:space-between;gap:12px;
  background:transparent;border:none;border-bottom:1px solid var(--line);color:var(--ivory);
  font-family:'Lora',serif;font-size:16px;padding:10px 0;cursor:pointer;text-align:left;line-height:1.4;
  border-radius:0;-webkit-appearance:none;appearance:none;min-height:44px}
.ubtn:focus{outline:none;border-color:var(--gold-lt)}
.ubtn:focus-visible{outline:none;border-color:var(--gold-lt)}
.ubtn.empty{color:var(--muted)}
.ubtn .uchev{flex:0 0 auto;width:12px;height:12px;color:var(--gold);transition:transform .25s}
.ubtn[aria-expanded="true"] .uchev{transform:rotate(180deg)}
.uhidden{position:absolute!important;width:1px!important;height:1px!important;opacity:0!important;
  pointer-events:none!important;left:0;bottom:0;margin:0;padding:0;border:0;overflow:hidden;clip:rect(0 0 0 0)}
/* inside .field the native control is hidden; the button carries its look */
.field .ubtn{margin:0}

/* the panel: a popover on wide screens, a sheet on phones */
.upanel{position:absolute;left:0;right:0;top:calc(100% + 6px);z-index:120;
  background:#100F0E;border:1px solid var(--line);box-shadow:0 24px 60px rgba(0,0,0,.55);
  border-radius:2px;max-height:min(360px,60vh);overflow:auto;
  opacity:0;transform:translateY(-6px);pointer-events:none;transition:opacity .18s ease,transform .18s ease}
.upanel.open{opacity:1;transform:none;pointer-events:auto}
.upanel::before{content:"";position:absolute;top:-1px;left:50%;transform:translateX(-50%);width:80px;height:1px;background:var(--gold)}
.upanel.up{top:auto;bottom:calc(100% + 6px);transform:translateY(6px)}
.upanel.up.open{transform:none}
.uhead{display:none}
.uopt{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;
  padding:13px 18px;background:transparent;border:none;border-bottom:1px solid var(--line-soft);
  color:var(--ivory);font-family:'Lora',serif;font-size:15px;text-align:left;cursor:pointer;line-height:1.45;min-height:46px}
.uopt:last-child{border-bottom:none}
.uopt:hover,.uopt.focus{background:rgba(199,154,75,.08);color:var(--gold-hi)}
.uopt.on{color:var(--gold-lt)}
.uopt .utick{flex:0 0 auto;width:14px;height:14px;color:var(--gold-lt);opacity:0}
.uopt.on .utick{opacity:1}
.uopt[disabled]{opacity:.38;cursor:default}
.uopt:focus,.ucal-g .dd:focus,.ucol button:focus,.ucal-q button:focus,.utime-q button:focus,.uhead button:focus,.ucal-h button:focus{outline:none}
.uopt:focus-visible,.ucal-q button:focus-visible,.utime-q button:focus-visible{box-shadow:inset 0 0 0 1px var(--gold)}
.ucal-g .dd:focus-visible,.ucol button:focus-visible{box-shadow:inset 0 0 0 1px var(--gold-lt)}
.ubackdrop{display:none}

/* calendar */
.ucal{padding:14px 14px 10px;user-select:none}
.ucal-h{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}
.ucal-h b{font-family:'Lora',serif;font-weight:400;font-size:15px;color:var(--ivory);letter-spacing:.02em}
.ucal-h button{background:transparent;border:1px solid var(--line);color:var(--gold-lt);width:34px;height:34px;border-radius:50%;cursor:pointer;font-size:16px;line-height:1}
.ucal-h button:disabled{opacity:.3;cursor:default}
.ucal-g{display:grid;grid-template-columns:repeat(7,1fr);gap:2px}
.ucal-g .dw{font-size:9.5px;letter-spacing:.18em;text-transform:uppercase;color:var(--muted);text-align:center;padding:6px 0 8px}
.ucal-g .dd{aspect-ratio:1/1;min-height:36px;display:flex;align-items:center;justify-content:center;
  border:1px solid transparent;border-radius:50%;background:transparent;color:var(--ivory);
  font-family:'Lora',serif;font-size:14px;cursor:pointer}
.ucal-g .dd:hover{border-color:var(--line);color:var(--gold-hi)}
.ucal-g .dd.today{color:var(--gold-lt)}
.ucal-g .dd.sel{background:var(--gold);color:#0A0A0C;border-color:var(--gold)}
.ucal-g .dd:disabled{opacity:.22;cursor:default;border-color:transparent}
.ucal-g .dd.pad{visibility:hidden}
.ucal-q{display:flex;gap:8px;flex-wrap:wrap;padding:12px 2px 2px;border-top:1px solid var(--line-soft);margin-top:8px}
.ucal-q button,.utime-q button{font-size:11px;letter-spacing:.14em;text-transform:uppercase;border:1px solid var(--line);
  padding:8px 12px;border-radius:2px;cursor:pointer;color:var(--muted);background:transparent;font-family:'Poppins',sans-serif}
.ucal-q button:hover,.utime-q button:hover{border-color:var(--gold);color:var(--gold-lt)}

/* time */
.utime{padding:14px 14px 12px}
.utime-cols{display:grid;grid-template-columns:1fr 1fr 78px;gap:8px}
.ucol{border:1px solid var(--line-soft);border-radius:2px;max-height:200px;overflow:auto;scroll-snap-type:y proximity;
  scrollbar-width:thin;scrollbar-color:rgba(199,154,75,.35) transparent}
.ucol button{display:block;width:100%;padding:10px 0;background:transparent;border:none;border-bottom:1px solid var(--line-soft);
  color:var(--ivory);font-family:'Lora',serif;font-size:15px;cursor:pointer;scroll-snap-align:center;min-height:40px}
.ucol button:last-child{border-bottom:none}
.ucol button:hover{color:var(--gold-hi);background:rgba(199,154,75,.06)}
.ucol button.on{color:#0A0A0C;background:var(--gold)}
.ucol-l{font-size:9.5px;letter-spacing:.18em;text-transform:uppercase;color:var(--muted);text-align:center;padding:0 0 8px}
.utime-q{display:flex;gap:8px;flex-wrap:wrap;padding:12px 2px 2px;border-top:1px solid var(--line-soft);margin-top:12px}
.utime-done{margin-top:12px;width:100%;background:linear-gradient(100deg,var(--gold-dk),var(--gold) 40%,var(--gold-lt));
  color:#0A0A0C;border:none;font-weight:500;font-size:12px;letter-spacing:.22em;text-transform:uppercase;padding:13px;border-radius:2px;cursor:pointer;font-family:'Poppins',sans-serif}

/* phones: the panel becomes a sheet from the foot of the screen */
@media (max-width:640px){
  .ubackdrop{display:block;position:fixed;inset:0;z-index:118;background:rgba(5,4,3,.62);opacity:0;pointer-events:none;transition:opacity .22s}
  .ubackdrop.open{opacity:1;pointer-events:auto}
  .upanel,.upanel.up{position:fixed;left:0;right:0;top:auto;bottom:0;max-height:78vh;border-radius:6px 6px 0 0;
    border-left:none;border-right:none;border-bottom:none;transform:translateY(100%);transition:transform .26s cubic-bezier(.2,.8,.2,1),opacity .2s;
    padding-bottom:env(safe-area-inset-bottom)}
  .upanel.open,.upanel.up.open{transform:none}
  .upanel::before{width:44px;height:3px;top:8px;border-radius:2px;background:rgba(239,207,135,.35)}
  .uhead{display:flex;align-items:center;justify-content:space-between;padding:22px 18px 10px;
    font-size:10.5px;letter-spacing:.28em;text-transform:uppercase;color:var(--gold)}
  .uhead button{background:transparent;border:1px solid var(--line);color:var(--gold-lt);width:32px;height:32px;border-radius:50%;cursor:pointer;font-size:14px;line-height:1}
  .uopt{padding:15px 20px;font-size:16px}
  .ucal-g .dd{min-height:40px;font-size:15px}
  .ucol{max-height:220px}
  .ucol button{padding:12px 0;font-size:16px}
}

/* ---------- 2. display type ---------- */
/* Great Vibes: the ceremonial script — two lines on the whole site: "celebrated." and the yearly gift. */
.u-script{font-family:'Great Vibes','Lora',serif;font-weight:400;font-style:normal;font-synthesis:none;letter-spacing:.01em;line-height:1.15}
/* Cormorant Garamond: the quiet voice — the story, the manifesto, the vow, the charter. */
.u-quiet{font-family:'Cormorant Garamond','Lora',serif;font-style:italic;font-weight:500;font-synthesis:none;letter-spacing:.005em}
.u-roman{font-family:'Cormorant Garamond','Lora',serif;font-style:normal;font-weight:600;font-synthesis:none;letter-spacing:.005em}
/* the hero's word */
header h1 em.u-script,h1 em.hw.u-script{font-family:'Great Vibes','Lora',serif;font-style:normal;font-synthesis:none;font-size:1.28em;color:var(--gold-lt);padding-right:.08em;vertical-align:-.02em;letter-spacing:.01em}
/* the "why" statement: "Every" in the script, the line in Cormorant, the answer in its italic */
.why h2.u-why{font-family:'Cormorant Garamond','Lora',serif;font-weight:600;font-style:normal;font-synthesis:none;font-size:clamp(34px,5.6vw,60px);line-height:1.12;letter-spacing:.005em;color:var(--ivory)}
.why h2.u-why .u-every{font-family:'Great Vibes','Lora',serif;font-weight:400;font-size:1.32em;color:var(--gold-lt);padding-right:.12em;vertical-align:-.04em}
.why h2.u-why em{display:block;font-family:'Cormorant Garamond','Lora',serif;font-style:italic;font-weight:500;font-size:.8em;color:var(--gold-lt);margin-top:10px;letter-spacing:.005em}
/* the story: one paragraph in the quiet voice, the rest in Lora as before */
.scene p.u-quiet{font-family:'Cormorant Garamond','Lora',serif;font-style:italic;font-weight:500;font-size:clamp(20px,2.6vw,25px);line-height:1.7;color:var(--gold-lt);text-align:center;margin:26px 0}
/* the manifesto */
.manifesto .script.u-quiet{font-family:'Cormorant Garamond','Lora',serif;font-style:italic;font-weight:500;font-synthesis:none;font-size:clamp(40px,6.4vw,66px);color:var(--gold-lt);margin-bottom:22px;line-height:1.1}
.manifesto p.u-quiet{font-family:'Cormorant Garamond','Lora',serif;font-style:italic;font-weight:500;font-size:clamp(19px,2.4vw,24px);line-height:1.75}
/* the yearly gift */
.gift h2.u-script{font-family:'Great Vibes','Lora',serif;font-style:normal;font-synthesis:none;font-size:clamp(38px,6vw,64px);line-height:1.12;color:var(--gold-lt);margin-bottom:18px}
/* the charter line */
.u-charter{font-family:'Cormorant Garamond','Lora',serif;font-style:italic;font-weight:500;font-size:clamp(36px,5.6vw,58px);line-height:1.15;color:var(--gold-lt);margin:6px 0 22px}
/* the vow — its own line, centred under the sentence that carries it, with air on both sides */
.u-vow{display:block;margin:22px auto 8px;max-width:22ch;text-align:center;font-family:'Cormorant Garamond','Lora',serif;font-style:italic;font-weight:500;font-size:clamp(24px,3.4vw,34px);line-height:1.35;color:var(--gold-lt)}
.about-note p.u-quiet{font-family:'Cormorant Garamond','Lora',serif;font-style:italic;font-weight:500;font-size:clamp(19px,2.2vw,22px);line-height:1.8}
/* the story's close */
.scene .close.u-quiet{font-family:'Cormorant Garamond','Lora',serif;font-style:italic;font-weight:500;font-size:clamp(34px,5vw,50px)}

/* ---------- 3. layout repairs ---------- */
/* the footer strip: one quiet line, centred, and nothing orphaned at the right */
.fbot{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;text-align:center;line-height:1.8;padding-top:22px}
.fbot>span{display:block}.fbot span span{display:inline}
.fbot a{color:var(--muted);border-bottom:1px solid transparent;transition:color .25s,border-color .25s}
.fbot a:hover{color:var(--gold-lt);border-bottom-color:var(--line)}
.fbot .fbot-legal{font-size:11px;color:color-mix(in srgb,var(--muted) 78%,transparent);max-width:640px}
/* the floating pieces step out of the way of any form or button they would cover */
body.u-formview .ctaFloat{transform:translate(-50%,140%)!important;opacity:0!important;pointer-events:none!important}
body.u-formview .fab{transform:translateY(120px);opacity:0;pointer-events:none}
.fab{transition:transform .3s ease,opacity .3s ease}
/* the floating reserve pill is a car, not a ride */
/* toggles: a small line-drawn glyph before every label, the same weight as the type */
.togglerow .tglyph{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;margin-right:10px;color:var(--gold);vertical-align:middle;flex:0 0 auto}
.togglerow .tglyph svg{width:17px;height:17px;stroke:currentColor;fill:none;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.togglerow>span{display:flex;align-items:center;font-size:13px;padding-right:12px}
/* chips in one honest grid on phones */
@media (max-width:640px){
  .improve .chips,.chips.u-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}
  .improve .chips .chip,.chips.u-grid .chip{text-align:center;justify-content:center}
  #fleetChips{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
  #fleetChips .chip{text-align:center}
}
/* the fleet chip that is quoted, not priced: no stray dot */
.chip.byrequest{border-style:dashed}
/* the reading cards: no empty air at the foot */
.cell{display:flex;flex-direction:column}
.cell>p:last-child,.cell>.rates:last-child{margin-bottom:0}
.cell .cta{margin-top:auto;padding-top:14px}
/* the safety list */
.u-never p{padding-left:22px;text-indent:-22px}
/* the drop cap in business was a costume */
.slede::first-letter{font-size:inherit;float:none;line-height:inherit;margin:0;padding:0;font-family:inherit;color:inherit}
/* eyebrows on the reading pages, one face */
p.u-eyebrow{font-family:'Poppins',sans-serif;font-size:11px;letter-spacing:.32em;text-transform:uppercase;color:var(--gold);margin:0 0 16px}
/* a quiet, finished textarea */
.field textarea{field-sizing:content;min-height:96px}
/* the house notice sits above the sheet */
.unotice{z-index:130}
/* the slider in the fare card */
input[type="range"]{accent-color:var(--gold);height:28px}
/* the essay pages: no drop cap, one rule under the eyebrow (the h2 draws its own) */
body.essay .slede:first-of-type::first-letter{float:none;font-size:inherit;line-height:inherit;padding:0;background:none;-webkit-text-fill-color:inherit;color:inherit}
/* the ground under the ground: never a white flash at the edge of a scroll */
html{background:#0C0B0A}
[data-theme="ivory"]{background:#F7F3EA}
/* the reading pages: a heading is ivory, the paragraph under it is not — one step quieter, so the eye knows which is which */
section.wrap>p:not(.slede):not(.mini):not(.u-eyebrow):not(.u-quiet){color:var(--muted)}
section.wrap>p b,section.wrap>p strong{color:var(--ivory);font-weight:400}
/* the phone menu: the list breathes, it does not gape */
@media (max-width:900px){
  .nav-links.open,#subLinks.open{gap:4px;padding-top:6px}
  .nav-links.open a,#subLinks.open a{padding:11px 0;line-height:20px}
  .nav-links.open .btn-book,#subLinks.open .btn-book{margin-top:18px}
  .navgrp{padding:14px 0 4px!important}
}
.fstack{display:contents}
/* the footer on phones: two honest columns, nothing stranded */
@media (max-width:640px){
  .foot{display:grid;grid-template-columns:1fr 1fr;gap:22px 20px;align-items:start}
  .foot>div:first-child{grid-column:1/-1}
  .foot .fcol h4{margin-bottom:12px}
  .foot .fcol a{margin-bottom:9px}
  .fstack{display:flex;flex-direction:column;gap:22px}
}
/* ---------- 4. My Unlyra ---------- */
.dpwrap{display:flex;gap:18px;align-items:center;margin:4px 0 22px}
.dp{flex:0 0 auto;width:84px;height:84px;border-radius:50%;border:1px solid var(--line);background:radial-gradient(circle at 40% 35%,#1C1913,#0C0B0A);color:var(--gold-lt);font-family:'Lora',serif;font-size:32px;cursor:pointer;overflow:hidden;display:flex;align-items:center;justify-content:center;padding:0}
.dp img{width:100%;height:100%;object-fit:cover;display:block}
.dp:hover{border-color:var(--gold)}
/* the wheel: one gold button; a quarter-circle of doors fans out under the thumb */
.uwheel{position:fixed;right:18px;bottom:22px;z-index:70;width:56px;height:56px}
.uw-main{position:absolute;right:0;bottom:0;width:56px;height:56px;border-radius:50%;border:1px solid var(--gold);background:linear-gradient(135deg,var(--gold-dk),var(--gold) 45%,var(--gold-lt));color:#0C0B0A;cursor:pointer;display:flex;align-items:center;justify-content:center;box-shadow:0 10px 30px rgba(0,0,0,.5);transition:transform .3s}
.uwheel.open .uw-main{transform:rotate(90deg)}
.uw-item{position:absolute;right:18px;bottom:18px;width:20px;height:20px;transform:translate(0,0) scale(.2);opacity:0;pointer-events:none;transition:transform .34s cubic-bezier(.2,.8,.2,1),opacity .25s;transition-delay:calc(var(--i)*22ms);display:flex;align-items:center;justify-content:flex-end}
.uw-item span{white-space:nowrap;background:#100F0E;border:1px solid var(--line);color:var(--ivory);font-family:'Lora',serif;font-size:14px;padding:9px 14px;border-radius:2px;box-shadow:0 8px 24px rgba(0,0,0,.5)}
.uw-item:hover span{border-color:var(--gold);color:var(--gold-lt)}
/* eight doors on an arc of 96°–186°, radius growing so labels never overlap */
.uwheel.open .uw-item{opacity:1;pointer-events:auto;transform:translate(calc(-1 * var(--x)),calc(-1 * var(--y))) scale(1)}
.uw-item[style*="--i:0"]{--x:150px;--y:0px}
.uw-item[style*="--i:1"]{--x:150px;--y:52px}
.uw-item[style*="--i:2"]{--x:138px;--y:104px}
.uw-item[style*="--i:3"]{--x:118px;--y:156px}
.uw-item[style*="--i:4"]{--x:92px;--y:206px}
.uw-item[style*="--i:5"]{--x:62px;--y:254px}
.uw-item[style*="--i:6"]{--x:30px;--y:300px}
.uw-item[style*="--i:7"]{--x:0px;--y:344px}
@media (max-width:640px){.uwheel{right:14px;bottom:18px}}
.uwheel::before{content:"";position:fixed;inset:0;background:rgba(5,4,3,.6);opacity:0;pointer-events:none;transition:opacity .25s;z-index:-1}
.uwheel.open::before{opacity:1;pointer-events:auto}
.uw-item:focus{outline:none}.uw-item:focus-visible span{border-color:var(--gold-lt)}
