/* Mylah's Corner wordmark: live text, so it is crisp at every size.
   Variant A (default): MYLAH'S over a small spaced CORNER with hairline flourishes.
   Variant B (.wm-b): single line, MYLAH'S | CORNER. Preview B with ?logo=b. */
.wm{display:inline-flex;flex-direction:column;align-items:center;justify-content:center;color:#fff;text-decoration:none;line-height:1;flex-shrink:0;white-space:nowrap;-webkit-font-smoothing:antialiased}
.wm:focus-visible{outline:2px solid #fff;outline-offset:4px;border-radius:2px}
.wm-name{font-family:"Cormorant Garamond","Times New Roman",serif;font-weight:600;font-size:1.8rem;letter-spacing:.14em;margin-right:-.14em;text-transform:uppercase;color:#fff;text-shadow:0 1px 2px rgba(58,36,70,.28)}
.wm-sub{display:flex;align-items:center;gap:7px;margin-top:4px;font-family:"Jost","Helvetica Neue",Arial,sans-serif;font-weight:500;font-size:.6rem;letter-spacing:.5em;margin-right:-.5em;text-transform:uppercase;color:#fff;text-shadow:0 1px 2px rgba(58,36,70,.22)}
.wm-sub::before,.wm-sub::after{content:"";width:16px;height:1px;background:rgba(255,255,255,.75)}
.wm-sub::after{margin-left:-.5em} /* offset the trailing letter-spacing so the hairlines stay symmetric */
/* B: one line */
.wm.wm-b{flex-direction:row;align-items:center}
.wm-b .wm-name{font-size:1.6rem}
.wm-b .wm-sub{margin:0 0 0 14px;padding-left:14px;border-left:1px solid rgba(255,255,255,.65);font-size:.64rem;letter-spacing:.4em;margin-right:-.4em;height:1.15rem}
.wm-b .wm-sub::before,.wm-b .wm-sub::after{display:none}
@media (max-width:900px){
  .wm-name{font-size:1.55rem}
  .wm-sub{font-size:.52rem;margin-top:3px}
  .wm-b .wm-name{font-size:1.35rem;letter-spacing:.12em;margin-right:-.12em}
  .wm-b .wm-sub{font-size:.56rem;letter-spacing:.32em;margin-left:10px;padding-left:10px}
}

/* ===== D · Heritage (default): a symmetrical filigree bar built from the original logo's scrollwork
   (img/wm-filigree.svg) spanning the full width of the Cinzel Decorative MYLAH'S, over a spaced CORNER.
   Centered on phones. Fonts: the "wordmark fonts" <link> (Cinzel Decorative 700 + Cinzel 600, subset
   to the letters of MYLAH'S CORNER). A/B above stay available via ?logo=a / ?logo=b on the home page. ===== */
.wm-d{position:relative}
.hdr-in:has(.wm-d){height:108px}
header:has(> .wm-d){height:108px}
.wm-d::before{content:"";display:block;align-self:stretch;aspect-ratio:2844/365;margin:0 -2px 2px;background:url(/img/wm-filigree.svg) center/100% 100% no-repeat;filter:drop-shadow(0 1px 1px rgba(58,36,70,.22))}
.wm-d .wm-name{font-family:"Cinzel Decorative","Cinzel","Trajan Pro",serif;font-weight:700;font-size:2.05rem;letter-spacing:.08em;margin-right:-.08em;text-transform:none;line-height:1;text-shadow:0 1px 3px rgba(58,36,70,.32);position:relative;left:.07em} /* optical: the S side-bearing leaves the ink .07em left of the box center */
.wm-d .wm-sub{font-family:"Cinzel","Trajan Pro",serif;font-weight:600;font-size:.64rem;letter-spacing:.55em;margin:3px 0 0;gap:8px}
.wm-d .wm-sub::before,.wm-d .wm-sub::after{width:22px}
.wm-d .wm-sub::after{margin-left:-.55em} /* cancel the trailing letter-space after the final R */
@media (max-width:900px){
  .hdr-in:has(.wm-d){position:relative;height:104px}
  .hdr-in .wm-d{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%)}
  .wm-d .wm-name{font-size:1.9rem}
  .wm-d .wm-sub{font-size:.58rem;margin-top:2px}
}
@media (max-width:700px){header:has(> .wm-d){justify-content:center;height:104px}}
@media (max-width:380px){.wm-d .wm-name{font-size:1.75rem}}
@media (max-width:340px){.wm-d .wm-name{font-size:1.5rem}}
/* narrow desktops (901-1020px): tighten the header row so logo + tabs + links (+ the Install icon) fit without overflow */
@media (min-width:901px) and (max-width:1020px){.hdr-in{gap:16px;padding:0 20px}.hdr-right{gap:10px}.hdr .tab{padding:0 12px}.hdr .tab.on::after{left:12px;right:12px}}
.hdr .tab,.hdr-right .hlink,.hdr-right .signin,.hdr-right .hcta{white-space:nowrap}
/* 901-1100px: the text links give way to the ? icon (same info panel as on phones) so nothing wraps or overflows */
@media (min-width:901px) and (max-width:1100px){.hdr-right .hlink{display:none}.hdr-right .only-m{display:flex}}
@media (max-width:360px){.mtabs .tab{white-space:nowrap;letter-spacing:.08em;font-size:.62rem;padding:0 4px}}
/* ===== Heritage mark tile (confirmation screens, 404, offline, admin sign-in): same build as the header wordmark and
   the share image — filigree bar (wm-filigree.svg) spanning MYLAH'S, spaced CORNER between hairlines, white on lavender.
   Scale with --hm (1 = MYLAH'S at 26px). ===== */
.hmark{--hm:1;display:inline-flex;align-items:center;justify-content:center;max-width:100%;box-sizing:border-box;padding:calc(var(--hm)*20px) calc(var(--hm)*26px) calc(var(--hm)*18px);
  background:radial-gradient(ellipse at 50% 40%,#AD90B8 0%,#A283AD 60%,#977AA2 100%);color:#fff;border-radius:6px;box-shadow:0 12px 26px -16px rgba(78,58,87,.65)}
.hmark .hm-in{display:inline-flex;flex-direction:column;align-items:center}
.hmark .hm-in::before{content:"";align-self:stretch;aspect-ratio:2844/365;margin:0 -2px calc(var(--hm)*5px);background:url(/img/wm-filigree.svg) center/100% 100% no-repeat}
.hmark .hm-name{font:700 calc(var(--hm)*26px)/1 "Cinzel Decorative","Cormorant Garamond",serif;letter-spacing:.08em;margin-right:-.08em;position:relative;left:.07em;white-space:nowrap;text-shadow:0 2px 6px rgba(58,36,70,.25)}
.hmark .hm-sub{display:flex;align-items:center;gap:calc(var(--hm)*7px);margin-top:calc(var(--hm)*5px);font:600 calc(var(--hm)*8.3px)/1 Cinzel,"Cormorant Garamond",serif;letter-spacing:.55em;text-transform:uppercase;white-space:nowrap}
.hmark .hm-sub::before,.hmark .hm-sub::after{content:"";width:calc(var(--hm)*19px);height:1px;background:rgba(255,255,255,.8)}
.hmark .hm-sub::after{margin-left:-.55em}
