/* Keep labels, form values and browser validation on the actual fields. */
:is(#sf-host,#guide-root) :where(button,textarea,select,input:not([type=file],[type=range],[type=color],[type=hidden])) {
  -webkit-appearance:none;
  appearance:none;
}
#sf-host .sf-mast .sf-lang-control {
  position:relative;
  gap:.4rem;
  cursor:pointer;
}
#sf-host .sf-lang-control select {
  -webkit-appearance:none;
  appearance:none;
  background:transparent;
  background-image:none;
  box-shadow:none;
  border:0;
  border-radius:0;
  padding-inline:0 1rem;
  text-overflow:ellipsis;
}
.sf-language-chevron {
  position:absolute;
  inset-inline-end:.75rem;
  top:50%;
  width:.38rem;
  height:.38rem;
  border:solid currentColor;
  border-width:0 1.5px 1.5px 0;
  transform:translateY(-70%) rotate(45deg);
  pointer-events:none;
}
#sf-host .sf-lang-control:focus-within:has(select:focus-visible) {
  box-shadow:inset 0 -3px var(--sf-text-focus);
}
#sf-host .sf-lang-control select:focus-visible {outline:0;box-shadow:none}
/* The enhanced header has its own accessible button. An opacity-only native
   select can still summon the system picker in iOS Safari. Without JS the
   enhancement class is absent and the ordinary select remains available. */
#sf-host .sf-language-enhanced > select {display:none !important}
#sf-host :is(.sf-contact-form,.sf-service-form) :is(input:not([type=radio],[type=checkbox],[type=hidden]),textarea,select) {
  background-color:#fff;
  color:#30272c;
  font:400 1rem/1.45 Sul,Arial,sans-serif;
}
#sf-host :is(.sf-contact-form,.sf-service-form) :is(input,textarea,select):focus {
  outline:0;
  border-color:var(--sf-text-focus);
  box-shadow:inset 0 -2px var(--sf-text-focus);
}
#sf-host :is(input[type=checkbox],input[type=radio]) {
  appearance:none;
  -webkit-appearance:none;
  box-sizing:border-box;
  inline-size:1.25rem;
  block-size:1.25rem;
  min-width:1.25rem;
  min-height:1.25rem;
  padding:0;
  margin:0 .15rem 0 0;
  flex:none;
  vertical-align:middle;
  border:1.5px solid #887774;
  border-radius:.25rem;
  background:#fff;
  cursor:pointer;
}
#sf-host input[type=radio]{border-radius:50%}
#sf-host input[type=radio]:checked{border-color:#912d43;background:radial-gradient(circle,#912d43 0 41%,white 45%)}
#sf-host input[type=checkbox]:checked{
  background:#912d43 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m4 10 4 4 8-9' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 1rem no-repeat;
  border-color:#912d43;
}
.sf-choice-list {
  position:fixed;
  box-sizing:border-box;
  inset:auto;
  margin:0;
  padding:.3rem;
  overflow:auto;
  overscroll-behavior:contain;
  scrollbar-width:thin;
  border:0;
  border-radius:.65rem;
  background:#fffaf3;
  color:#30272c;
  box-shadow:0 .75rem 2rem #30252a30;
  font:400 1rem/1.3 Sul,Arial,sans-serif;
  text-align:start;
  z-index:2147483646;
}
.sf-choice-list[hidden]{display:none}
.sf-choice-list:focus{outline:none}
.sf-choice-list [role=option] {
  display:flex;
  align-items:center;
  gap:.65rem;
  box-sizing:border-box;
  min-height:44px;
  padding:.5rem .65rem;
  border-radius:.32rem;
  cursor:pointer;
  overflow-wrap:anywhere;
}
.sf-choice-list [role=option][aria-selected=true]{color:#762439;font-weight:700}
.sf-choice-list [aria-selected=true]::after{content:"✓";margin-inline-start:auto;color:inherit}
.sf-choice-list [data-active]{background:#f3e5d9;box-shadow:inset 3px 0 #92374b}
.sf-choice-list:dir(rtl) [data-active]{box-shadow:inset -3px 0 #92374b}
.sf-choice-list [aria-disabled=true]{opacity:.55;cursor:default}
.sf-choice-list img{width:20px;height:14px;object-fit:contain;flex:none}
.sf-choice-group{padding:.6rem .65rem .2rem;font-size:.82rem;font-weight:700;color:#6e534f}
@media (hover:hover){.sf-choice-list [role=option]:not([aria-disabled=true]):hover{background:#f5ece2}}
@media(forced-colors:active){
  .sf-choice-list [data-active],#sf-host :is(input,textarea,select):focus-visible{outline:2px solid Highlight}
  #sf-host :is(input[type=checkbox],input[type=radio]){appearance:auto}
}
.sf-lang-control:has(select[aria-expanded=true]) .sf-language-chevron{
  transform:translateY(-20%) rotate(225deg)
}
#sf-host :is(.sf-repository,.summary details)>summary {
  list-style:none;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:.65rem;
  min-height:44px;
}
#sf-host details>summary::-webkit-details-marker{display:none}
#sf-host :is(.sf-repository,.summary details)>summary::after {
  content:"";
  flex:none;
  width:.44rem;
  height:.44rem;
  margin-inline-end:.35rem;
  border:solid currentColor;
  border-width:0 1.5px 1.5px 0;
  transform:translateY(-2px) rotate(45deg);
}
#sf-host :is(.sf-repository,.summary details)[open]>summary::after{transform:translateY(2px) rotate(225deg)}

/* A tinted surface identifies each picker. Keyboard focus uses the lower edge. */
#sf-host select, #guide-root select, #guide-root select.guide-focus-select {
  border:0 !important;
}
#sf-host select:not(:focus-visible), #guide-root select:not(:focus-visible), #guide-root select.guide-focus-select:not(:focus-visible) {
  outline:0 !important;
  box-shadow:none !important;
}
#sf-host select:focus-visible, #guide-root select:focus-visible, #guide-root select.guide-focus-select:focus-visible {
  outline:0 !important;
  box-shadow:inset 0 -3px var(--sf-text-focus) !important;
}
#sf-host #registration .field select,
#sf-host :is(.sf-service-form,.sf-contact-form) select {
  background-color:#f3ece3;
}
#sf-host .sf-lang-control select:focus-visible {box-shadow:none !important}
@media(forced-colors:active){
  #sf-host select:focus-visible, #guide-root select:focus-visible, #guide-root select.guide-focus-select:focus-visible {outline:2px solid Highlight !important}
}
.sf-renew-picker{position:relative;min-inline-size:0;margin-block:.9rem 1.25rem}
.sf-renew-picker label{display:grid;gap:.4rem;font-weight:700}
#sf-host .sf-renew-picker input{min-width:0;width:100%;min-height:48px;border:0;padding:.75rem 1rem;background:#f3ece3;color:#30272c;font:400 1rem/1.4 Sul,Arial,sans-serif;border-radius:.4rem}
#sf-host .sf-renew-picker input:focus-visible{outline:0;box-shadow:inset 0 -3px var(--sf-text-focus)}
#sf-host input[type=search]::-webkit-search-cancel-button {
  display:none;
  -webkit-appearance:none;
}
.sf-renew-picker ul,.sf-renew-empty{position:absolute;z-index:8;inset-inline:0;top:100%;padding:.35rem;margin:.25rem 0 0;max-height:min(36dvh,20rem);overflow:auto;overscroll-behavior:contain;list-style:none;background:#fffaf3;color:#30272c;border-radius:.5rem;box-shadow:0 .6rem 1.8rem #30252a30}
.sf-renew-picker li{margin:0;padding:.7rem;min-height:44px;cursor:pointer;font-size:1rem;line-height:1.4;overflow-wrap:break-word}
.sf-renew-picker li[aria-selected=true]{font-weight:700}
.sf-renew-picker li:hover,.sf-renew-picker li[data-active]{background:#f3e5d9}
.sf-renew-empty{padding:.7rem}
.sf-renew-picker [hidden]{display:none}

#sf-host .sf-exam-entry .field input {
  border:1px solid #b9b3ac; border-radius:5px; padding:.7rem .8rem;
  background:#fff; color:#30272c; font:inherit;
}
#sf-host .sf-exam-entry .field input:focus {
  border-color:var(--sf-text-focus); outline:0; box-shadow:inset 0 -2px var(--sf-text-focus);
}
/* Text entry has one slate lower edge. The enclosing Compass field owns its focus. */
#sf-host :is(input:not([type=checkbox],[type=radio],[type=range],[type=hidden]),textarea):focus {
  outline:0;
  border-color:var(--sf-text-focus);
  box-shadow:inset 0 -2px var(--sf-text-focus);
}
#sf-host .sf-search input:focus { outline:0; box-shadow:none; }
#sf-host :is(input,textarea):user-invalid { border-color:var(--sf-text-focus); }
body #guide-root .guide-composer:focus-within {
  border-color:var(--sf-text-focus);
  box-shadow:inset 0 -2px var(--sf-text-focus);
}
body #guide-root .guide-proposal :is(input,textarea):is(:focus,:user-invalid),
body #guide-root .guide-proposal input:invalid:not(:placeholder-shown) {
  outline:0 !important;
  border-color:var(--sf-text-focus) !important;
  box-shadow:inset 0 -2px var(--sf-text-focus) !important;
}
@media(forced-colors:active){
  #sf-host :is(input,textarea):focus-visible,body #guide-root .guide-composer:focus-within {
    outline:2px solid Highlight !important;
    outline-offset:1px;
  }
  #sf-host .sf-search input:focus { outline:none !important; }
}

/* Keep all form pickers identifiable at rest, with the site’s own open list. */
#sf-host form select:not([multiple]) {
  appearance:none;
  border:1px solid #897765 !important;
  background:#fffaf4;
  color:#30272c;
  border-radius:.375rem;
  min-block-size:2.8rem;
  padding:.55rem .75rem;
  inline-size:100%;
  max-inline-size:100%;
  overflow:hidden;
  text-overflow:ellipsis;
  cursor:pointer;
}
/* WebKit must clip the native value after a resize. The shared open list
   retains the complete option text; reserve a separate visible chevron. */
#sf-host form:is(#registration,.sf-service-form,.sf-contact-form) .field select:not([multiple]) {
  padding-inline-end:2.25rem;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%236c5750' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat:no-repeat;
  background-size:.65rem .45rem;
  background-position:right .8rem center;
}
#sf-host:dir(rtl) form:is(#registration,.sf-service-form,.sf-contact-form) .field select:not([multiple]) {
  background-position:left .8rem center;
}
@media(forced-colors:active){
  #sf-host form select:not([multiple]) { appearance:auto; border-color:ButtonText !important; }
  #sf-host form:is(#registration,.sf-service-form,.sf-contact-form) .field select:not([multiple]) { background-image:none; }
}

#sf-host .sf-field-validation {
  display:block;
  margin-block-start:6px;
  color:#823d28;
  font:400 14px/1.45 Sul,Arial,sans-serif;
  overflow-wrap:anywhere;
}
#sf-host form [aria-invalid=true]:not([type=hidden]) { border-color:#a75059 !important; }
#sf-host .sf-validation-warning,
#sf-host .sf-form-response-status[data-error] {
  margin:12px 0 0;
  padding:12px 14px;
  border:1px solid #cdab8e;
  border-inline-start:3px solid #a44529;
  border-radius:6px;
  background:#fff3eb;
  color:#823d28;
  font:400 14px/1.5 Sul,Arial,sans-serif;
}
