@import url("/next/styles.css");

/* Town pages keep their original markup. This sheet only replaces the old wood-grain frame. */
body {
  margin: 0;
  padding: 0 !important;
  min-height: 100vh;
  color: var(--ink);
  font-family: "Segoe UI", Candara, system-ui, sans-serif;
  line-height: 1.5;
  background:
    radial-gradient(1200px 500px at 100% -10%, #fde7d4 0%, transparent 55%),
    linear-gradient(180deg, #fbf8f2 0%, var(--paper) 40%, #efe8dc 100%) !important;
}
td,
#mtable td,
td#outeralignment,
td#content {
  background-image: none !important;
  background-color: transparent !important;
  width: auto !important;
  height: auto !important;
}
div {
  position: static;
  top: auto;
}
#lead,
div#lead,
div#content {
  position: static !important;
  top: auto !important;
  color: var(--muted) !important;
  text-align: center;
}
#lead1,
div#heading {
  font-family: Georgia, "Iowan Old Style", Palatino, serif !important;
  font-size: 1.7rem !important;
  font-weight: 600 !important;
  color: var(--ink) !important;
  line-height: 1.15 !important;
}
#lead2, #lead3, #lead4, div#notice {
  color: var(--muted);
  font-size: 1rem !important;
}
header.site .wrap {
  width: min(1080px, calc(100vw - 2rem));
  max-width: calc(100vw - 2rem);
}
header.site .bar { flex-wrap: wrap; }
body > table[align="center"],
body > form > table[align="center"],
table#mtable {
  width: min(760px, calc(100vw - 2rem));
  max-width: calc(100vw - 2rem);
  margin: 1.25rem auto 2rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  overflow-wrap: break-word;
}
body > table[align="center"] > tbody > tr > td,
body > form > table[align="center"] > tbody > tr > td,
#mtable td,
td#outeralignment,
td#content {
  padding: 1rem 1.15rem 1.3rem;
}
td#outeralignment table {
  height: auto !important;
  width: 100%;
  background: transparent;
  border: 0;
  box-shadow: none;
}
h2, h3, h5 {
  font-family: Georgia, "Iowan Old Style", Palatino, serif;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}
h5 { font-size: 1.15rem; margin: 1.1rem 0 0.35rem; }
td#outeralignment ol,
td#outeralignment li,
td#outeralignment p {
  font-size: 1.02rem !important;
  line-height: 1.5 !important;
}
label {
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 650;
}
font { font-size: 0.95rem; color: var(--muted); }
hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 1rem 0;
}
input.data,
input[type="text"],
input[type="password"],
select,
textarea {
  border: 1px solid #d6d3d1 !important;
  background: white !important;
  border-radius: 12px;
  padding: 0.6rem 0.75rem;
  font: inherit !important;
  color: var(--ink);
  margin: 0.15rem 0 0.45rem;
}
input:disabled {
  background: #f5f5f4 !important;
  color: var(--muted);
}
input[type="submit"],
input[type="button"],
button {
  background: var(--pine);
  color: white;
  border: 0;
  border-radius: 999px;
  padding: 0.7rem 1rem;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
  white-space: normal;
  text-align: center;
  line-height: 1.35;
  max-width: 100%;
}
input[type="submit"]:hover,
input[type="button"]:hover,
button:hover { background: var(--pine-dark); }
.errmsg, #informational { color: var(--danger) !important; font-weight: 650; }
a { color: var(--pine); }
#section {
  background: #fff7ed;
  border: 1px solid #fdba74;
  border-radius: 14px;
  padding: 0.85rem 1rem;
  margin: 0.4rem 0 1rem;
}
form { font-size: 1rem; }

/* The application stylesheet is printed in the body, after this file. These rules win with !important. */
div#formlayout {
  width: auto !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0.2rem 0.1rem 0.4rem !important;
  background: transparent !important;
  border: 0 !important;
  color: var(--ink) !important;
  font-family: inherit !important;
  font-size: 1rem !important;
  font-weight: 400 !important;
  line-height: 1.45 !important;
  text-align: left !important;
}
div#formlayout div,
div#formlayout label,
div#cfAlignmentLayer,
div#cfAlignmentLayer div,
div#cfAlignmentLayer div label,
div#cfAlignmentLayer div input {
  position: static !important;
  left: auto !important;
  top: auto !important;
  width: auto !important;
  max-width: 100% !important;
}
div#formlayout input[type="text"],
div#formlayout select,
div#formlayout textarea {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box;
}
div#formlayout input[type="radio"],
div#formlayout input[type="checkbox"] {
  position: static !important;
  display: inline-block;
  width: 1.05rem !important;
  height: 1.05rem !important;
  padding: 0 !important;
  margin: 0 0.4rem 0 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  accent-color: var(--pine);
  vertical-align: middle;
}
div#burnType,
div#safety {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.85rem;
  width: auto !important;
  margin: 0.35rem 0 0.6rem !important;
}
div#burnType > div,
div#safety > div {
  display: inline-flex !important;
  align-items: center;
  width: auto !important;
  margin: 0 !important;
  font-size: 1rem !important;
}
div#burnType label,
div#safety label {
  display: inline;
  margin: 0 0.35rem 0 0;
}
div#burnsite > div[align="center"] {
  display: block !important;
  width: 100% !important;
  clear: both;
  float: none;
  text-align: center !important;
  margin: 1rem 0 0.65rem !important;
  line-height: 1.3 !important;
}
div#safety > div#SiteAdults,
#SiteStreetNo,
#SiteAddress {
  display: block !important;
  width: 100% !important;
  clear: both;
}
#SiteAdults input[type="text"] {
  display: inline-block;
  width: 8rem !important;
}
@media (max-width: 720px) {
  header.site .bar { flex-wrap: wrap; row-gap: 0.15rem; }
  header.site nav { min-width: 0; }
  body > table[align="center"],
  body > form > table[align="center"],
  table#mtable {
    display: block;
    width: calc(100vw - 1.25rem) !important;
    max-width: calc(100vw - 1.25rem) !important;
  }
  body > table[align="center"] > tbody,
  body > form > table[align="center"] > tbody,
  table#mtable > tbody,
  body > table[align="center"] > tbody > tr,
  body > form > table[align="center"] > tbody > tr,
  table#mtable > tbody > tr {
    display: block;
    width: 100%;
  }
  body > table[align="center"] > tbody > tr > td,
  body > form > table[align="center"] > tbody > tr > td,
  #mtable td,
  td#outeralignment,
  td#content {
    display: block;
    width: auto !important;
    max-width: 100%;
    box-sizing: border-box;
  }
}
#SiteAdults,
#safetyPre {
  flex-basis: 100%;
}
div#formlayout div.missing {
  background: #fff7ed !important;
  border-radius: 12px;
  box-shadow: inset 0 0 0 2px var(--ember);
  padding: 0.25rem 0.45rem;
}
div#formctls { text-align: center; margin-top: 0.8rem; }
div#heading { text-align: center; margin: 0 0 0.75rem; }

div#streets {
  position: absolute;
  top: 5rem;
  left: 1rem;
  right: 1rem;
  width: auto;
  height: min(70vh, 36rem);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  text-align: left;
  z-index: 20;
  overflow: auto;
  padding: 1rem 1.1rem;
}

/* FAQ, regulations, and contact pages are plain HTML opened in a new tab. */
body > center > div,
body > div[align="center"] > div[align="center"] {
  width: min(760px, calc(100% - 2rem)) !important;
  margin: 1.25rem auto 2rem !important;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 1.2rem 1.3rem 1.4rem !important;
  text-align: left;
}
