/* Global page title contrast and search behavior, loaded after page-specific styles. */
html[data-theme="dark"] #app .br-learn-directory-hero h1,
html[data-theme="dark"] #app .br-learn-directory-hero .eyebrow,
html[data-theme="dark"] #app .br-learn-directory-hero .br-directory-blurb,
html[data-theme="dark"] #app .br-learn-directory-hero .br-directory-summary,
html[data-theme="dark"] #app .br-directory-hero h1,
html[data-theme="dark"] #app .br-directory-hero .eyebrow,
html[data-theme="dark"] #app .br-directory-hero .br-directory-blurb,
html[data-theme="dark"] #app .br-directory-hero .br-directory-summary,
html[data-theme="dark"] #app .br-search-page h1,
html[data-theme="dark"] #app .br-search-page .eyebrow { color:#f3eddf!important; }

/* Keep the shared search destination available in desktop, compact, and mobile headers. */
.br-reference-header .br-utilities [data-br-search] {
 display:inline-flex!important;align-items:center;justify-content:center;
 width:44px;height:44px;flex:0 0 44px;
}
.br-reference-header .br-utilities [data-br-search] svg {display:block;width:24px;height:24px}

/* Search page */
.br-search-page{max-width:1120px;margin-inline:auto}
.br-search-hero{padding:clamp(24px,5vw,64px);border-radius:22px;background:var(--surface,#f4f0e6)}
.br-search-hero h1{margin:.2em 0;font-size:clamp(38px,6vw,64px)}
.br-search-hero>p{font-size:1.1rem}
.br-global-search{display:flex;align-items:center;gap:12px;max-width:720px;margin-top:24px;padding:10px 12px 10px 18px;border:1px solid currentColor;border-radius:999px;background:var(--background,#fff)}
.br-global-search svg{flex:0 0 auto}
.br-global-search input{min-width:0;flex:1;border:0;outline:0;background:transparent;color:inherit;font:inherit;font-size:1rem}
.br-global-search button{border:0;border-radius:999px;padding:11px 20px;background:#344a36;color:#fff;font:inherit;cursor:pointer}
.br-search-results{padding:24px 0}
.br-search-count{font-weight:700}
.br-search-prompt{opacity:.8}
html[data-theme="dark"] .br-search-hero{background:#26332b}
html[data-theme="dark"] .br-global-search{background:#1b241e;border-color:#a9b59f}
html[data-theme="dark"] .br-global-search button{background:#d8e2ce;color:#1d2a20}
@media(max-width:680px){
 .br-search-hero{padding:24px 20px;border-radius:16px}
 .br-global-search{gap:8px;padding-left:12px}
 .br-global-search button{padding:10px 14px}
}

/* Keep every mobile dropdown section label aligned with Home and About. */
.br-reference-header #br-mobile-menu .br-menu-section,
.br-reference-header #br-mobile-menu .br-menu-row{width:100%;box-sizing:border-box}
.br-reference-header #br-mobile-menu .br-menu-row{
 display:grid!important;grid-template-columns:minmax(0,1fr) 44px;align-items:center;gap:0;width:100%
}
.br-reference-header #br-mobile-menu .br-menu-row>a{
 display:block!important;width:100%!important;min-width:0;box-sizing:border-box;
 padding:8px 0 8px 24px!important;text-align:left!important
}
.br-reference-header #br-mobile-menu .br-submenu-toggle{
 grid-column:2;justify-self:end;margin:0!important
}
.br-reference-header #br-mobile-menu>a{text-align:left!important}

/* Dark mode: keep all shared page title-card copy light, including the Kinder Tomorrow lede. */
html[data-theme="dark"] #app .br-learn-directory-hero h1,
html[data-theme="dark"] #app .br-learn-directory-hero .eyebrow,
html[data-theme="dark"] #app .br-learn-directory-hero p,
html[data-theme="dark"] #app .br-directory-hero h1,
html[data-theme="dark"] #app .br-directory-hero .eyebrow,
html[data-theme="dark"] #app .br-directory-hero p{color:#f3eddf!important}


/* Build 723: keep About title copy legible over the pale artwork in dark mode. */
html[data-theme="dark"] #app .br-directory-hero[aria-label="about introduction"] h1,
html[data-theme="dark"] #app .br-directory-hero[aria-label="about introduction"] .br-directory-blurb,
html[data-theme="dark"] #app .br-directory-hero[aria-label="about introduction"] .br-directory-summary{color:#20291f!important}
html[data-theme="dark"] #app .br-directory-hero[aria-label="about introduction"] .eyebrow{color:#526746!important}


/* Build 811: keep the Path to Pizza artwork rounded in portrait, landscape, and desktop layouts. */
html body #app .designer-path-image-map .designer-path-picture{border-radius:14px!important;overflow:hidden!important;clip-path:inset(0 round 14px)!important}
html body #app .designer-path-image-map .designer-path-picture>img{border-radius:14px!important;clip-path:inset(0 round 14px)!important}


/* Build 812: override the stale Browse-only 24px margin; both views share one filter-to-meta gap. */
html body #app .br-recipe-filter-row:not(.br-recipe-filter-row-category-hidden)+.br-recipe-meta-row,html body #app .br-recipe-filter-row.br-recipe-filter-row-category-hidden+.br-recipe-meta-row{margin-top:14px!important}
@media(max-width:760px){html body #app .br-recipe-filter-row:not(.br-recipe-filter-row-category-hidden)+.br-recipe-meta-row,html body #app .br-recipe-filter-row.br-recipe-filter-row-category-hidden+.br-recipe-meta-row{margin-top:12px!important}}

/* Build 813: clip the full Path to Pizza section as well as its image for iOS landscape and desktop layouts. */
html body #app .designer-heading .designer-path-image-map{border-radius:18px!important;overflow:hidden!important;clip-path:inset(0 round 18px)!important;-webkit-clip-path:inset(0 round 18px)!important}
html body #app .designer-heading .designer-path-image-map .designer-path-picture{border-radius:18px!important;overflow:hidden!important;clip-path:inset(0 round 18px)!important;-webkit-clip-path:inset(0 round 18px)!important}
html body #app .designer-heading .designer-path-image-map .designer-path-picture>img{border-radius:18px!important;clip-path:inset(0 round 18px)!important;-webkit-clip-path:inset(0 round 18px)!important}

/* Build 814: make Path to Pizza clipping independent of the heading wrapper and restate it after every landscape rule. */
html body #app .designer-path-image-map,
html body #app .designer-path-image-map .designer-path-picture,
html body #app .designer-path-image-map .designer-path-picture>img{border-radius:24px!important;-webkit-border-radius:24px!important;overflow:hidden!important;clip-path:inset(0 round 24px)!important;-webkit-clip-path:inset(0 round 24px)!important}
@media(orientation:landscape){
 html body #app .designer-path-image-map,
 html body #app .designer-path-image-map .designer-path-picture,
 html body #app .designer-path-image-map .designer-path-picture>img{border-radius:24px!important;-webkit-border-radius:24px!important;overflow:hidden!important;clip-path:inset(0 round 24px)!important;-webkit-clip-path:inset(0 round 24px)!important}
}

/* Build 815: match the older heading-scoped selector specificity so the landscape radius actually wins. */
html body #app .designer-heading .designer-path-image-map,html body #app .designer-path-image-map,
html body #app .designer-heading .designer-path-image-map .designer-path-picture,html body #app .designer-path-image-map .designer-path-picture,
html body #app .designer-heading .designer-path-image-map .designer-path-picture>img,html body #app .designer-path-image-map .designer-path-picture>img{border-radius:24px!important;-webkit-border-radius:24px!important;overflow:hidden!important;clip-path:inset(0 round 24px)!important;-webkit-clip-path:inset(0 round 24px)!important}
@media(orientation:landscape){
 html body #app .designer-heading .designer-path-image-map,html body #app .designer-path-image-map,
html body #app .designer-heading .designer-path-image-map .designer-path-picture,html body #app .designer-path-image-map .designer-path-picture,
html body #app .designer-heading .designer-path-image-map .designer-path-picture>img,html body #app .designer-path-image-map .designer-path-picture>img{border-radius:24px!important;-webkit-border-radius:24px!important;overflow:hidden!important;clip-path:inset(0 round 24px)!important;-webkit-clip-path:inset(0 round 24px)!important}
}


/* Build 818: let one stylesheet rule own Path to Pizza corner clipping in every viewport. */
html body #app section.designer-path-image-map,
html body #app section.designer-path-image-map .designer-path-picture,
html body #app section.designer-path-image-map .designer-path-picture>img{border-radius:24px!important;-webkit-border-radius:24px!important;overflow:hidden!important;clip-path:inset(0 round 24px)!important;-webkit-clip-path:inset(0 round 24px)!important}


/* Build 819: give the light-mode dough designer clear card, field, and selected-state contrast. */
html:not([data-theme="dark"]) #app .pizza-designer .panel{
  background:#fffdfa!important;
  border-color:#dedbd3!important
}
html:not([data-theme="dark"]) #app .designer-level-bar.panel{
  background:#fffdfa!important;
  border-color:#dedbd3!important
}
html:not([data-theme="dark"]) #app .designer-level-switch .designer-mode-button{
  background:#fffdfa!important;
  color:#252522!important;
  border-color:#a6b7ae!important
}
html:not([data-theme="dark"]) #app .designer-level-switch .designer-mode-button.active,
html:not([data-theme="dark"]) #app .designer-level-switch .designer-mode-button[aria-pressed="true"]{
  background:#365444!important;
  color:#fff!important;
  border-color:#365444!important
}
html:not([data-theme="dark"]) #app .designer-level-switch .designer-mode-button.active small,
html:not([data-theme="dark"]) #app .designer-level-switch .designer-mode-button[aria-pressed="true"] small{
  color:#fff!important;
  opacity:1!important
}
html:not([data-theme="dark"]) #app .pizza-designer input:not([type="checkbox"]):not([type="radio"]),
html:not([data-theme="dark"]) #app .pizza-designer select,
html:not([data-theme="dark"]) #app .pizza-designer textarea{
  background:#eef3ed!important;
  color:#252522!important;
  border-color:#8da594!important
}
html:not([data-theme="dark"]) #app .pizza-designer input::placeholder,
html:not([data-theme="dark"]) #app .pizza-designer textarea::placeholder{
  color:#5c655e!important;
  opacity:1!important
}
html:not([data-theme="dark"]) #app .pizza-designer input:focus,
html:not([data-theme="dark"]) #app .pizza-designer select:focus,
html:not([data-theme="dark"]) #app .pizza-designer textarea:focus{
  outline:3px solid #a7bca8!important;
  outline-offset:2px!important
}


/* Build 821: keep the amber badge's white numeral at accessible contrast. */
.pizza-designer .panel[data-designer-stage="4"]{--stage-accent:#925900}


/* Build 822: remove the corner-mask overlay and restore natural image clipping.
   Give every designer stage its own light-mode tint after the shared white-panel override. */
html:not([data-theme="dark"]) body #app .pizza-designer .panel[data-designer-stage="1"]{--stage-bg:#f8ebe6!important;background:var(--stage-bg)!important}
html:not([data-theme="dark"]) body #app .pizza-designer .panel[data-designer-stage="2"]{--stage-bg:#e9eee5!important;background:var(--stage-bg)!important}
html:not([data-theme="dark"]) body #app .pizza-designer .panel[data-designer-stage="3"]{--stage-bg:#e6edf4!important;background:var(--stage-bg)!important}
html:not([data-theme="dark"]) body #app .pizza-designer .panel[data-designer-stage="4"]{--stage-bg:#f8efe2!important;background:var(--stage-bg)!important}
html:not([data-theme="dark"]) body #app .pizza-designer .panel[data-designer-stage="5"]{--stage-bg:#f0eaf1!important;background:var(--stage-bg)!important}
html:not([data-theme="dark"]) body #app .pizza-designer .panel[data-designer-stage="6"]{--stage-bg:#e8f1ef!important;background:var(--stage-bg)!important}
html:not([data-theme="dark"]) body #app .pizza-designer .panel[data-designer-stage="7"]{--stage-bg:#f4efdf!important;background:var(--stage-bg)!important}
html:not([data-theme="dark"]) body #app .pizza-designer .panel[data-designer-stage="8"]{--stage-bg:#e3eddf!important;background:var(--stage-bg)!important}


/* Build 824: restore high-contrast stage badges and use warm neutral designer fields in light mode. */
html:not([data-theme="dark"]) body #app .pizza-designer .panel[data-designer-stage] .designer-panel-number{
  background:var(--stage-accent)!important;background-color:var(--stage-accent)!important;color:#fff!important;opacity:1!important
}
html[data-theme="dark"] body #app .pizza-designer .panel[data-designer-stage="4"]{--stage-accent:#dca552!important}
html[data-theme="dark"] body #app .pizza-designer .panel[data-designer-stage] .designer-panel-number{
  background:var(--stage-accent)!important;background-color:var(--stage-accent)!important;color:#18231c!important;opacity:1!important
}
html:not([data-theme="dark"]) body #app .pizza-designer input:not([type="checkbox"]):not([type="radio"]),
html:not([data-theme="dark"]) body #app .pizza-designer select,
html:not([data-theme="dark"]) body #app .pizza-designer textarea{
  background:#fffdf8!important;color:#252522!important;border-color:#c8c0b3!important
}
html:not([data-theme="dark"]) body #app .pizza-designer input:focus,
html:not([data-theme="dark"]) body #app .pizza-designer select:focus,
html:not([data-theme="dark"]) body #app .pizza-designer textarea:focus{
  outline:3px solid #b5a889!important;outline-offset:2px!important
}
