/* Keep ’Em Coming Back — Media Readiness 17 */
:root{--media-safe-bottom:max(.8rem,env(safe-area-inset-bottom))}

/* The Kitchen hero secondary actions must remain readable over photography. */
.k2-hero .button.secondary,
.k2-home-hero .button.secondary{
  color:#fff!important;
  border-color:rgba(255,255,255,.66)!important;
  background:rgba(25,12,8,.42)!important;
  text-shadow:0 1px 2px rgba(0,0,0,.38);
  box-shadow:inset 0 0 0 1px rgba(0,0,0,.08);
}
.k2-hero .button.secondary:hover,.k2-hero .button.secondary:focus-visible,
.k2-home-hero .button.secondary:hover,.k2-home-hero .button.secondary:focus-visible{
  color:#2c1710!important;
  border-color:#fff!important;
  background:#fff!important;
  text-shadow:none;
}

/* Account-page panel rules must never restyle the global More menu. */
.member-account-page .site-header-v3 details.nav-more{
  width:auto!important;min-height:0!important;margin:0!important;padding:0!important;
  border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;
}
.member-account-page .site-header-v3 details.nav-more>summary{
  display:flex!important;align-items:center!important;justify-content:center!important;
  width:auto!important;min-width:0!important;min-height:0!important;margin:0!important;
  padding:.58rem .68rem!important;border:0!important;border-radius:9px!important;
  background:transparent!important;color:#fff!important;font:700 .82rem/1 system-ui,sans-serif!important;
}
.member-account-page .site-header-v3 details.nav-more[open]>summary,
.member-account-page .site-header-v3 details.nav-more>summary:hover,
.member-account-page .site-header-v3 details.nav-more>summary:focus-visible{
  background:rgba(255,255,255,.1)!important;color:#ffe1a8!important;
}
.member-account-page .site-header-v3 .nav-more-menu{background:#2b1712!important}

/* Keep page help available without covering cards, portraits, forms, or controls. */
.ask-riley-launcher{
  width:48px!important;height:48px!important;min-width:48px!important;min-height:48px!important;
  max-width:48px!important;padding:0!important;gap:0!important;overflow:hidden!important;
  border-radius:50%!important;right:.75rem!important;bottom:var(--media-safe-bottom)!important;
}
.ask-riley-launcher-icon{width:46px!important;height:46px!important;flex:0 0 46px!important;background:#fff4df!important}
.ask-riley-launcher-copy{
  position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;
  overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important;
}
.ask-riley-launcher::after{display:none!important}
@media(max-width:760px){
  .ask-riley-launcher{right:.55rem!important;bottom:calc(max(62px,calc(56px + env(safe-area-inset-bottom))) + .45rem)!important}
  body.has-recipe-mobile-actions .ask-riley-launcher{bottom:calc(max(124px,calc(116px + env(safe-area-inset-bottom))) + .45rem)!important}
}

/* Hash links to book volumes now filter the browser and land predictably. */
.system-hash-targets{position:relative;height:0;overflow:visible}
.system-hash-targets span{position:absolute;top:-6.5rem;scroll-margin-top:6.5rem}

/* Category anchors on the teacher-tools page should not hide below the header. */
#business,#partnership,#stewardship,#instruction,#all-tools{scroll-margin-top:7rem}

/* Intentional, transparent teacher-directory launch state. */
.dt-empty-directory{max-width:860px;margin-inline:auto}
.dt-empty-directory strong{font-size:clamp(1.15rem,2.2vw,1.5rem)}

@media print{.ask-riley-launcher{display:none!important}}
