/* Shared HAGS web focus pattern. Preserve the resting border geometry.
   Pointer focus: caret / quiet field tint. Keyboard focus: contrast on one
   low edge, never a perimeter ring, and a highlight in forced-color mode. */
html body :is(a[href],button,summary,input,select,textarea,canvas,[tabindex],[role="button"],[role="tab"],[contenteditable]:not([contenteditable="false"])):focus{
 outline:none!important;box-shadow:none!important;
}
html body :is(a[href],button,summary,input,select,textarea,canvas,[tabindex],[role="button"],[role="tab"],[contenteditable]:not([contenteditable="false"])):focus-visible{
 box-shadow:inset 0 -1px currentColor!important;
}
html body :is(textarea,select,input:not([type="button"],[type="submit"],[type="reset"],[type="checkbox"],[type="radio"],[type="range"],[type="color"],[type="file"],[type="image"],[type="hidden"])):focus{
 background-color:var(--hags-field-focus-fill,color-mix(in srgb,var(--hags-paper,#faf8fc) 66%,var(--hags-indigo-soft,#e9e3ef)))!important;
 caret-color:var(--hags-field-focus-ink,#4d385b);
}
html:not([data-hags-input="pointer"]) body :is(textarea,select,input:not([type="button"],[type="submit"],[type="reset"],[type="checkbox"],[type="radio"],[type="range"],[type="color"],[type="file"],[type="image"],[type="hidden"])):focus-visible{
 border-block-end-color:var(--hags-field-focus-ink,#4d385b)!important;
 box-shadow:inset 0 -1px var(--hags-field-focus-ink,#4d385b)!important;
}
html[data-hags-input="pointer"] body :is(textarea,select,input:not([type="button"],[type="submit"],[type="reset"],[type="checkbox"],[type="radio"],[type="range"],[type="color"],[type="file"],[type="image"],[type="hidden"])):focus{
 box-shadow:none!important;
}
html body :is(.opening-task,.cafe-book-checks label,.file,.elm-setup-file):focus-within,
html body :is(.opening-task,.cafe-book-checks label,.file,.elm-setup-file):has(:focus-visible),
html body .photo-input:focus-visible+.photo-picker,
html body .location-option input:focus-visible+span{
 outline:none!important;
 box-shadow:none!important;
}
html body :is(.opening-task,.cafe-book-checks label,.file,.elm-setup-file):has(:focus-visible),
html body .photo-input:focus-visible+.photo-picker,
html body .location-option input:focus-visible+span{
 box-shadow:inset 0 -1px currentColor!important;
}
html body .equipment-point:focus-visible circle{
 stroke-width:1.5;fill:var(--yellow,var(--hags-gold-soft,#f2ecce));
}
html body :is([data-editorial-choice="1"]:focus-visible~[data-editorial-segments]>label:nth-of-type(1),
 [data-editorial-choice="2"]:focus-visible~[data-editorial-segments]>label:nth-of-type(2),
 [data-editorial-choice="3"]:focus-visible~[data-editorial-segments]>label:nth-of-type(3),
 [data-editorial-choice="4"]:focus-visible~[data-editorial-segments]>label:nth-of-type(4),
 [data-editorial-choice="5"]:focus-visible~[data-editorial-segments]>label:nth-of-type(5),
 [data-editorial-choice="6"]:focus-visible~[data-editorial-segments]>label:nth-of-type(6)),
html body #cafe-choice-map:checked~.cafe-context :is(
 #cafe-station-espresso:focus-visible~.cafe-book-stations [for="cafe-station-espresso"],
 #cafe-station-tap:focus-visible~.cafe-book-stations [for="cafe-station-tap"],
 #cafe-station-grinder-single:focus-visible~.cafe-book-stations [for="cafe-station-grinder-single"],
 #cafe-station-pos:focus-visible~.cafe-book-stations [for="cafe-station-pos"],
 #cafe-station-prep-faucet:focus-visible~.cafe-book-stations [for="cafe-station-prep-faucet"]){
 outline:none!important;box-shadow:inset 0 -1px currentColor!important;
}
/* Some browsers restore a previously clicked link as focus-visible. Keep
   that link’s normal underline, without stacking a second pointer cue. */
html[data-hags-input="pointer"] body a[href]:focus-visible{
 box-shadow:none!important;
}
@media(forced-colors:active){
 html body :is(a[href],button,summary,input,select,textarea,canvas,[tabindex],[role="button"],[role="tab"],[contenteditable]:not([contenteditable="false"])):focus-visible,
 html body :is(.opening-task,.cafe-book-checks label,.file,.elm-setup-file):has(:focus-visible),
 html body .photo-input:focus-visible+.photo-picker,
 html body .location-option input:focus-visible+span{
  outline:1px solid Highlight!important;outline-offset:-1px;
 }
}
