/* Shared sizing for standalone church pages and forms. */
*,*::before,*::after{box-sizing:border-box}
header img{height:auto;flex:none}
header>div,fieldset{min-inline-size:0}
main,footer{overflow-wrap:anywhere}
main img,main canvas{max-width:100%}
input,select,textarea{max-width:100%;font-size:16px}
input[type="range"]{min-height:44px;cursor:pointer}
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{outline:3px solid #168968;outline-offset:3px}
@media(max-width:600px){
  header,main,footer{padding:16px}
  header{gap:12px}
  header img{width:58px}
  h1{font-size:clamp(27px,7vw,36px);line-height:1.16}
  h2{font-size:24px}
  fieldset{padding:12px;margin:20px 0}
  legend{max-width:100%;white-space:normal}
  button,.button{min-height:44px;max-width:100%}
  footer a{display:inline-flex;align-items:center;min-height:44px}
  input[type="file"]{padding:8px}
  input[type="checkbox"]{min-width:20px;min-height:20px;vertical-align:middle}
}

label.edge-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  margin: 15px 0 18px;
  cursor: text;
}

.edge-field .edge-label {
  z-index: 1;
  justify-self: start;
  max-width: calc(100% - 24px);
  margin: 0 12px -.65em;
  padding: 0 5px;
  background: white;
  color: #68278a;
  font-size: .875rem;
  font-weight: 600;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.edge-field > :is(input, select, textarea) {
  min-width: 0;
  min-height: 50px;
  padding: 15px 12px 9px;
  background: white;
  color: inherit;
}

.edge-field > small { margin: 4px 12px 0; }
