/* ============================================================
   Editorial shell: the sitewide header and footer.
   ------------------------------------------------------------
   Loaded on EVERY page, so every rule is namespaced .ed-* and
   nothing here sets a bare element selector outside .ed-head /
   .ed-foot. The other pages keep site.css, their own classes and
   their own fonts until each one is redesigned. Tokens come from
   tokens.css, which loads first.
   ============================================================ */

.ed-head,.ed-foot,.ed-skip{font-family:var(--vm-sans);-webkit-font-smoothing:antialiased}
.ed-head *,.ed-foot *,.ed-skip{box-sizing:border-box}
.ed-head a,.ed-foot a{color:inherit;text-decoration:none}
.ed-head img,.ed-foot img{display:block;max-width:100%;height:auto}
/* Not the `font` shorthand: it outranks .ed-toggle on specificity and was
   forcing the Menu label to the inherited 17px, which clipped the button. */
.ed-head button{font-family:var(--vm-sans);font-weight:400;cursor:pointer;-webkit-tap-highlight-color:transparent}
.ed-head p,.ed-foot p,.ed-foot h3{margin:0}
.ed-head a:focus-visible,.ed-head button:focus-visible,.ed-head summary:focus-visible,
.ed-foot a:focus-visible{outline:3px solid #986600;outline-offset:5px}

.ed-wrap{width:min(1256px,calc(100% - 96px));margin-inline:auto}

.ed-skip{position:fixed;top:-100px;left:20px;z-index:100;background:var(--vm-amber);color:var(--vm-ink);padding:12px;font-size:14px;font-weight:700;border-radius:3px}
.ed-skip:focus{top:10px}

/* ---------- header ---------- */
.ed-head{position:sticky;top:0;z-index:20;background:var(--vm-paper);color:var(--vm-ink);border-bottom:1px solid var(--vm-line)}
.ed-headin{display:flex;align-items:center;justify-content:space-between;gap:24px;min-height:92px}
.ed-brand{display:flex;align-items:center;min-height:44px;max-width:290px;min-width:150px;flex-shrink:1}
/* Height-capped, never width-forced. A 452x60 wordmark squeezed by a flex
   sibling used to collapse to 48x6 on a phone. Cap the height, let the
   width follow, and give the brand a floor it cannot go below. */
.ed-brand img{width:auto;height:auto;max-height:38px;max-width:100%}
.ed-nav{display:flex;gap:20px;align-items:center;margin-left:auto;font-size:14px}
.ed-nav>a,.ed-group>summary,.ed-signin{display:inline-flex;align-items:center;min-height:44px}
.ed-nav>a:hover{color:var(--vm-gold)}
.ed-group{position:relative}
.ed-group summary{cursor:pointer;list-style:none;gap:6px}
.ed-group summary::-webkit-details-marker{display:none}
.ed-group summary:after{content:'\2304';font-size:14px;margin-left:6px}
.ed-group[open]>summary{color:var(--vm-gold)}
.ed-panel{position:absolute;top:calc(100% + 12px);left:-22px;width:300px;padding:16px;background:var(--vm-paper);border:1px solid var(--vm-line);box-shadow:0 16px 36px #19233318;border-radius:4px;z-index:1}
.ed-panel a{display:flex;flex-direction:column;justify-content:center;min-height:52px;padding:10px 12px;border-radius:3px;white-space:normal;font-size:14px;line-height:1.4}
.ed-panel a:hover{background:var(--vm-sage);color:var(--vm-ink)}
.ed-panel small{font-size:12px;color:var(--vm-muted);margin-top:4px}
.ed-panel .ed-all{border-top:1px solid var(--vm-line);margin-top:8px;font-weight:700}
.ed-actions{display:flex;align-items:center;gap:16px}
.ed-signin{font-size:14px}
.ed-btn{display:inline-flex;align-items:center;justify-content:space-between;gap:25px;background:var(--vm-amber);color:var(--vm-ink);padding:17px 23px;min-height:54px;font-size:14px;font-weight:700;border:1px solid transparent;border-radius:3px;transition:background .18s,transform .18s}
.ed-btn:hover{background:#ffc956;transform:translateY(-2px)}
.ed-head .ed-btn{min-height:44px;padding:12px 17px;font-size:13px;gap:10px;white-space:nowrap}
.ed-arrow{font-family:var(--vm-sans);font-size:22px;font-weight:400;line-height:1}
.ed-head .ed-btn .ed-arrow{font-size:17px}
.ed-toggle{display:none;flex-shrink:0;background:none;border:1px solid var(--vm-line);width:48px;min-width:48px;height:44px;min-height:44px;border-radius:3px;color:var(--vm-ink);font-size:0;line-height:0;padding:0}
.ed-toggle:before{content:'';display:block;width:20px;height:14px;margin:0 auto;
  background:linear-gradient(currentColor,currentColor) top/100% 2px no-repeat,
             linear-gradient(currentColor,currentColor) center/100% 2px no-repeat,
             linear-gradient(currentColor,currentColor) bottom/100% 2px no-repeat}
.ed-toggle[aria-expanded="true"]:before{height:16px;
  background:linear-gradient(currentColor,currentColor) center/100% 2px no-repeat,
             linear-gradient(currentColor,currentColor) center/100% 2px no-repeat;
  transform:rotate(45deg)}
.ed-toggle[aria-expanded="true"]:after{content:'';position:absolute;width:20px;height:2px;background:currentColor;transform:rotate(-45deg)}
.ed-toggle{position:relative;display:none;align-items:center;justify-content:center}
.ed-mobile{padding:12px 24px 24px;border-top:1px solid var(--vm-line);max-height:calc(100dvh - 80px);overflow-y:auto;overscroll-behavior:contain}
.ed-mobile a{display:block;padding:12px;border-bottom:1px solid var(--vm-line);min-height:48px;font-size:16px}
.ed-mobile details{border-bottom:1px solid var(--vm-line)}
.ed-mobile summary{padding:12px;min-height:48px;cursor:pointer;font-weight:700;list-style:none}
.ed-mobile summary::-webkit-details-marker{display:none}
.ed-mobile details a{padding-left:26px;border-bottom:0;font-size:15px}
/* The first item is the booking door. It reads as part of the menu, not as
   a slab dropped into it: same rhythm, gold, with the standing time under it. */
.ed-mobile .ed-mstart{color:var(--vm-gold);font-weight:700}
.ed-mobile .ed-mstart small{color:var(--vm-muted);font-weight:400}
.ed-macct{padding-top:4px}
.ed-macct p{font:700 11px/1.5 var(--vm-sans);letter-spacing:.15em;text-transform:uppercase;color:var(--vm-gold);padding:12px 12px 0}
.ed-macct .ed-mname{font-weight:700;border-bottom:0;padding-bottom:0}
.ed-mobile small{display:block;font-size:12px;color:var(--vm-muted);margin-top:4px}
.ed-head [hidden]{display:none!important}

/* ---------- footer ---------- */
.ed-foot{background:var(--vm-navy);color:var(--vm-paper);padding:64px 0 24px;font-size:16px;line-height:1.6}
.ed-foottop{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.5fr);gap:64px}
.ed-footbrand .ed-brand{max-width:330px;min-width:0}
.ed-footbrand .ed-brand img{max-height:44px}
.ed-footcopy{font-size:16px;color:#ccd3d7;max-width:320px;margin-top:22px}
.ed-doctrine{font:italic 20px/1.6 var(--vm-serif);margin-top:22px;max-width:330px}
.ed-footlink{display:inline-flex;align-items:center;gap:16px;min-height:44px;font-size:14px;font-weight:700;border-bottom:1px solid currentColor;margin-top:20px}
.ed-footlinks{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:30px}
.ed-footlinks h3{font:700 12px/1.5 var(--vm-sans);text-transform:uppercase;letter-spacing:.1em;color:#e3c782;margin-bottom:14px}
.ed-footlinks a{display:flex;align-items:center;min-height:44px;font-size:14px;line-height:1.45;padding-block:9px}
.ed-foot a:hover{color:#f5b731}
/* The Be More Gurukul mark sits centred with its line directly below it. */
.ed-gurukul{display:flex;flex-direction:column;align-items:center;text-align:center;gap:12px;margin-top:30px;border-top:1px solid #51616b;padding-top:28px;color:#ccd3d7;font-size:13px;line-height:1.6}
.ed-gurukul img{width:auto;height:auto;max-height:52px;max-width:100%}
.ed-footbottom{display:flex;justify-content:space-between;gap:20px;align-items:center;border-top:1px solid #51616b;color:#ccd3d7;font-size:13px;margin-top:45px;padding-top:24px}
.ed-footbottom div{display:flex;gap:18px;flex-wrap:wrap}
.ed-footbottom a{min-height:44px;display:inline-flex;align-items:center}

@media(max-width:1250px){.ed-nav{gap:14px}.ed-headin{gap:18px}.ed-brand{max-width:235px}.ed-actions{gap:12px}}
/* Below 1100 everything except the booking button lives in the menu.
   #acct-in must be hidden with !important because the account script
   sets an inline display when a member signs in. */
@media(max-width:1100px){.ed-nav,.ed-actions>.ed-signin,.ed-actions>#acct-in,.ed-actions>#acct-out{display:none!important}.ed-toggle{display:flex}.ed-actions{margin-left:auto;flex-shrink:0}.ed-brand{max-width:290px}.ed-headin{min-height:80px}}
@media(max-width:800px){.ed-wrap{width:calc(100% - 40px)}.ed-headin{min-height:76px;gap:12px}.ed-foottop{grid-template-columns:1fr;gap:36px}}
/* On a phone the header carries the wordmark and the menu, nothing else.
   The booking action moves to the top of the menu as a full-width button,
   so it is still one tap away and the wordmark stays readable. */
@media(max-width:560px){.ed-headin{gap:10px}.ed-actions{gap:10px}
.ed-head .ed-btn{display:none}
.ed-brand{max-width:290px;min-width:0}.ed-brand img{max-height:34px}}
/* Under 440 the Menu button becomes an icon. The wordmark is the thing a
   visitor must still be able to read, so it keeps the space. */
@media(max-width:440px){.ed-headin{gap:8px}.ed-actions{gap:8px}.ed-brand{max-width:264px}.ed-brand img{max-height:32px}}
@media(max-width:400px){.ed-wrap{width:calc(100% - 32px)}.ed-brand{max-width:244px}}
@media(max-width:480px){.ed-footlinks{grid-template-columns:repeat(2,minmax(0,1fr))}.ed-footbottom{flex-direction:column;align-items:flex-start;gap:12px}}
@media(prefers-reduced-motion:reduce){.ed-head *,.ed-foot *{animation-duration:.001ms!important;transition-duration:.001ms!important;animation-iteration-count:1!important}.ed-btn:hover{transform:none}}
