/* Burger menu + drawer: shared by phones and tablets (loaded at <=1020px, where the desktop nav is replaced by the burger) */
.menu-btn { border: 0; width: 56px; height: 56px; }
.menu-btn span { left: 11px; right: 11px; height: 2.5px; border-radius: 2px; }
.menu-btn span:nth-child(1) { top: 19px; } .menu-btn span:nth-child(2) { top: 27px; } .menu-btn span:nth-child(3) { top: 35px; }
.menu-open .menu-btn span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-open .menu-btn span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
.menu-open .menu-btn span { background: var(--brown); }
.menu-open .brand { color: var(--brown); }
/* a light drawer, so the logo and the X stay brown */
.drawer { background: var(--cream); color: var(--brown); }
.drawer details { border-bottom: 0; }
.drawer a.big:hover { color: var(--clay); }
.drawer details a { color: var(--clay); font-size: 18.5px; font-family: var(--serif); }
/* top-level drawer entries: About / Membership Plan / Fees etc. use .big and already fade+lift in;
   Dentistry and Aesthetics are <details><summary> instead, so give the summary the same treatment */
.drawer > nav > ul > li > details > summary { opacity: 0; transform: translateY(18px); transition: opacity .5s, transform .7s var(--ease), color .2s; }
.menu-open .drawer > nav > ul > li > details > summary { opacity: 1; transform: none; transition-delay: calc(.12s + var(--i, 0) * .05s); }
.d-flat { display: none; }
.drawer .d-nested { display: block; }
.d-nested ul { display: block; }
.d-nested ul ul { padding: 0 0 10px 2px; }
.d-nested > ul > li > details > summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; font: 600 1.6rem/1.2 var(--serif); padding: 10px 0; }
.d-nested > ul > li > details > summary::-webkit-details-marker { display: none; }
.d-nested summary svg { width: 15px; height: 15px; flex: none; opacity: .75; transition: transform .3s var(--ease); }
.d-nested details[open] > summary svg { transform: rotate(180deg); }
.d-nested .d-all { margin-top: 6px; font: 600 1.6rem/1.2 var(--serif); }
/* the serif face is a single static weight, so font-weight alone renders no heavier — fake it with a hairline stroke */
.d-nested .d-all strong { font-weight: 600; color: var(--brown); -webkit-text-stroke: .6px currentColor; }
/* Aesthetics has only one treatment group, so its items sit at the top level — style them like the
   Dentistry category headings (General & preventative, Restorative, …) rather than as leaf links */
.d-nested > ul > li > a.d-top { display: block; font: 600 1.6rem/1.2 var(--serif); color: var(--brown); padding: 10px 0; }
.drawer .d-nested details > summary svg { transform: none; }
.drawer .d-nested details[open] > summary svg { transform: rotate(180deg); }

/* tablet: same layout, scaled up */
@media (min-width: 451px) {
  .d-nested > ul > li > details > summary { font-size: 2.1rem; padding: 12px 0; }
  .drawer details a { font-size: 22px; }
  .d-nested > ul > li > a.d-top { font-size: 2.1rem; }
  .d-nested .d-all { font-size: 2.1rem; }
}

/* the burger grows in step with the logo (175px -> 220px at 600px, see .brand in main.css): 56 -> 70px, ratio kept */
@media (min-width: 600px) {
  .menu-btn { width: 70px; height: 70px; }
  .menu-btn span { left: 14px; right: 14px; height: 3px; }
  .menu-btn span:nth-child(1) { top: 24px; } .menu-btn span:nth-child(2) { top: 34px; } .menu-btn span:nth-child(3) { top: 44px; }
  .menu-open .menu-btn span:nth-child(1) { transform: translateY(10px) rotate(45deg); }
  .menu-open .menu-btn span:nth-child(3) { transform: translateY(-10px) rotate(-45deg); }
}
