/* Shared navigation layer. Fixed return control: 5; mobile order bar: 10;
   sticky header: 30; keyboard skip link: 100. */
:root{--site-header-height:112px}
html{scroll-padding-top:calc(var(--site-header-height) + 16px)}
.header{position:sticky;top:0;z-index:30;background:var(--paper,#fff);box-shadow:0 2px 12px #00000008}
.header .nav-recipes{display:inline-flex;align-items:center;min-height:44px;border-bottom:2px solid transparent;padding:8px 0}
.header .nav-recipes[aria-current="page"]{font-weight:900;border-bottom-color:var(--red)}
.concept{scroll-margin-top:0}
.skip{position:fixed}
.back-to-top-sentinel{position:absolute;top:0;left:0;width:1px;height:1px;pointer-events:none}
@media(max-width:1000px) and (min-width:801px){.header{padding-inline:24px;gap:20px}.header nav{gap:20px}.header .brand{font-size:30px}}
@media(max-width:800px){
  :root{--site-header-height:120px}
  .header,.inspiration-page .header{display:flex;flex-wrap:wrap;padding:12px 16px;gap:8px}
  .header .brand{font-size:24px}
  .header nav,.inspiration-page .header nav{display:contents}
  .header nav>a.nav-recipes{display:inline-flex;margin-left:auto;min-height:44px;font-size:13px;padding:8px 0;order:1}
  .header nav>.nav-order{order:2;width:100%;font-size:16px;min-height:44px;padding:10px 14px}
}
@media print{.header{position:static;box-shadow:none}}

/* Identical navigation geometry on the landing and inspiration pages. */
.header,.inspiration-page .header{gap:normal}
.back-to-top{position:fixed;right:24px;bottom:calc(24px + var(--site-order-bar-height,0px) + env(safe-area-inset-bottom));z-index:5;display:grid;place-items:center;width:52px;height:52px;padding:0;border:2px solid var(--red);border-radius:var(--corner-radius);background:var(--red);color:#fff;font:900 30px/1 Inter,Arial,sans-serif;cursor:pointer;box-shadow:0 3px 12px #00000018;transition:background .15s,border-color .15s}
.back-to-top[hidden]{display:none}
.back-to-top:hover{background:#a91b11;border-color:#a91b11}
@media(max-width:800px){.header,.inspiration-page .header{gap:8px}}
@media(max-width:767px){.back-to-top{width:48px;height:48px;right:16px;bottom:calc(16px + var(--site-order-bar-height,0px) + env(safe-area-inset-bottom));font-size:28px}}
@media(prefers-reduced-motion:reduce){.back-to-top{transition:none}}
@media print{.back-to-top{display:none}}

/* Show the skip target on its heading, rather than framing the whole page. */
#main:focus-visible{outline:none}
#main:focus-visible #page-title{outline:3px solid #1857c7;outline-offset:5px}
