/* TEDY BLACK & GOLD DASHBOARD V13 - visual patch only.
 * Source: existing website ZIP. No API, auth, ERP, orders or database changes.
 * Keeps ethClock element & all previous JS event hook identifiers.
 */
:root{--tedy-header-height:80px}
/* The mobile and desktop header now contain only Menu, Branch, and Live Date/Time. */
.topbar{
 display:grid!important;grid-template-columns:72px minmax(190px,1fr) minmax(235px,380px)!important;
 align-items:center!important;gap:clamp(9px,1.4vw,16px)!important;
 height:var(--tedy-header-height)!important;min-height:var(--tedy-header-height)!important;
 padding:9px clamp(11px,2vw,28px)!important;
}
.topbar .menu-btn{grid-column:1!important;grid-row:1!important;align-self:center!important;
 display:flex!important;justify-content:center!important;align-items:center!important;
 width:66px!important;height:58px!important;min-height:0!important;
 border-radius:20px!important}
.topbar .header-branch{grid-column:2!important;grid-row:1!important;min-width:0!important;
 width:100%!important;max-width:none!important;margin:0!important}
.topbar .header-branch select{width:100%!important;min-width:0!important;
 height:58px!important;min-height:58px!important;padding-inline:16px 30px!important;
 font-weight:800!important;border-radius:19px!important}
.topbar .header-clock{grid-column:3!important;grid-row:1!important;display:flex!important;
 flex-direction:row!important;align-items:center!important;justify-content:center!important;
 flex-wrap:wrap!important;column-gap:9px!important;row-gap:0!important;
 margin:0!important;width:100%!important;min-width:0!important;max-width:none!important;
 height:58px!important;min-height:58px!important;padding:5px 12px!important;
 border:1px solid #d59e3d!important;border-radius:999px!important;
 background:linear-gradient(145deg,#1b130b 0%,#040404 87%)!important;
 box-shadow:inset 0 1px #ffe6a239,0 0 0 1px #36230b,0 5px 20px #0008!important;
 color:#ffe6ac!important;font-size:clamp(12px,1.25vw,16px)!important;
 line-height:1.25!important;text-align:center!important;white-space:normal!important;
}
.topbar .header-clock span{font:inherit!important;color:inherit!important}
.topbar .header-clock strong{font:inherit!important;color:#fff2c6!important;font-weight:900!important;white-space:nowrap!important}
/* Tighter brand block, no secondary slogan; gold crest is the same official image. */
#page-home.home-page{padding:0 clamp(10px,2.6vw,22px) 35px!important;overflow:visible!important}
#page-home .home-masthead{padding:13px 0 0!important;margin:0 auto!important;
 border:0!important;border-image:none!important;max-width:900px!important}
#page-home .home-crest{width:clamp(146px,22vw,226px)!important;
 height:clamp(124px,19vw,194px)!important;
 margin:0 auto 1px!important;background-size:contain!important}
#page-home .home-company-name{margin:0 auto!important;
 font-size:clamp(25px,3.4vw,43px)!important;line-height:1.26!important;
 font-weight:950!important;letter-spacing:0!important}
#page-home .home-company-name span{font-size:1.15em!important;line-height:1.19!important}
#page-home .home-est{display:none!important}
/* A portrait image (1024x1536) needs 'contain' and an automatic aspect ratio.
 * The original site's 'cover' and forced aspect-ratio:1.02 cropped the child and bed.
 */
#page-home .home-hero{display:table!important;width:auto!important;max-width:100%!important;
 height:auto!important;min-height:0!important;max-height:none!important;
 margin:12px auto 0!important;padding:6px!important;
 overflow:hidden!important;line-height:0!important;border-radius:28px!important}
#page-home .home-hero img{width:auto!important;height:auto!important;
 max-width:100%!important;max-height:min(940px,calc(100dvh - 294px))!important;
 aspect-ratio:auto!important;object-fit:contain!important;object-position:center center!important;
 border-radius:20px!important;display:block!important;filter:none!important}
#page-home .home-quick-links{margin-top:22px!important}
@media(max-width:720px){
 :root{--tedy-header-height:64px}
 .topbar{grid-template-columns:44px minmax(0,1fr) minmax(125px,1.15fr)!important;
  grid-template-rows:1fr!important;gap:7px!important;padding:7px 9px!important}
 .topbar .menu-btn{width:43px!important;height:49px!important;
  border-radius:15px!important}
 .topbar .header-branch select{height:49px!important;min-height:49px!important;
  font-size:clamp(10px,2.9vw,13px)!important;padding:4px 22px 4px 8px!important;
  border-radius:15px!important}
 .topbar .header-clock{height:49px!important;min-height:49px!important;
  padding:2px 5px!important;border-radius:17px!important;
  font-size:clamp(9px,2.35vw,12px)!important;line-height:1.14!important;
  column-gap:4px!important;align-content:center!important;}
 #page-home.home-page{padding:0 8px 20px!important}
 #page-home .home-masthead{padding:7px 0 0!important}
 #page-home .home-crest{width:clamp(96px,36vw,148px)!important;
  height:clamp(88px,31vw,128px)!important;margin:0 auto 1px!important}
 #page-home .home-company-name{font-size:clamp(18px,5vw,26px)!important;
  line-height:1.15!important;max-width:calc(100vw - 22px)!important}
 #page-home .home-company-name span{font-size:1.17em!important;line-height:1.17!important}
 #page-home .home-hero{padding:5px!important;margin:7px auto 0!important;
  border-radius:22px!important;max-width:calc(100vw - 24px)!important}
 #page-home .home-hero img{height:auto!important;width:auto!important;
  max-width:calc(100vw - 40px)!important;max-height:max(250px,calc(100dvh - 260px))!important;
  aspect-ratio:auto!important;object-fit:contain!important;border-radius:16px!important}
 #page-home .home-quick-links{margin-top:16px!important}
}
@media(max-width:380px){
 .topbar{grid-template-columns:41px minmax(0,1fr) minmax(120px,1.05fr)!important;
  gap:5px!important;padding-inline:6px!important}
 .topbar .menu-btn{width:40px!important}
 #page-home .home-crest{width:clamp(88px,34vw,130px)!important;height:clamp(78px,29vw,112px)!important}
 #page-home .home-company-name{font-size:clamp(17px,5.1vw,20px)!important}
}
@media(max-height:680px) and (max-width:720px){
 #page-home .home-crest{height:clamp(78px,24dvh,103px)!important;
  width:clamp(85px,29dvh,120px)!important}
 #page-home .home-hero img{max-height:max(220px,calc(100dvh - 232px))!important}
}
