.fg-guide {
  padding-bottom: clamp(3rem, 7vw, 6rem);
}
.fg-guide .page-head {
  max-width: 65rem;
}
.fg-guide .page-head h1 {
  max-width: 24ch;
}
.fg-guide h2 {
  font-size: clamp(1.65rem, 3vw, 2.45rem);
}
.fg-guide .fg-inspect {
  border-top: 1px solid var(--line);
  padding-top: 2rem;
}
.fg-intro {
  margin: 0.65rem 0 1.4rem;
  color: var(--muted);
}
.fg-reader {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(16rem, 1fr);
  align-items: start;
  gap: clamp(1.15rem, 3.5vw, 3rem);
}
.fg-figure {
  margin: 0;
  min-width: 0;
}
.fg-plate {
  padding: clamp(0.75rem, 2vw, 1.55rem);
  background-color: #dfe6e4;
  border: 1px solid #b2c2be;
}
.fg-image-frame {
  position: relative;
}
.fg-image-frame img {
  display: block;
  width: 100%;
  height: auto;
  box-shadow: 0 1px 6px #263d3829;
}
.fg-mark {
  display: none;
  position: absolute;
  left: var(--fg-left);
  top: var(--fg-top);
  width: var(--fg-width);
  height: var(--fg-height);
  border: 2px solid #006e69;
  outline: 1px solid #fff;
  pointer-events: none;
}
.fg-reader:has(.fg-field-office-date[open]) .fg-mark-office-date,
.fg-reader:has(.fg-field-file-numbers[open]) .fg-mark-file-numbers,
.fg-reader:has(.fg-field-survey-acreage[open]) .fg-mark-survey-acreage,
.fg-reader:has(.fg-field-certificate-clause[open]) .fg-mark-certificate-clause {
  display: block;
}
.fg-figure figcaption {
  padding: 0.7rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}
.fg-figure figcaption a,
.fg-citation a {
  text-decoration-thickness: 1px;
}
.fg-field,
.fg-checks details {
  border-top: 1px solid var(--line);
}
.fg-field:last-child,
.fg-checks details:last-child {
  border-bottom: 1px solid var(--line);
}
.fg-field summary,
.fg-checks summary {
  padding: 0.95rem 0.18rem;
  font-weight: 650;
  line-height: 1.4;
}
.fg-field summary::marker,
.fg-checks summary::marker {
  color: var(--teal);
}
.fg-field[open] > summary,
.fg-checks details[open] > summary {
  color: var(--teal);
}
.fg-field-body,
.fg-checks details > p {
  padding: 0 0.2rem 1.1rem;
}
.fg-pan {
  overflow-x: auto;
  border: 1px solid var(--line);
}
.fg-crop {
  position: relative;
  overflow: hidden;
  min-width: var(--fg-crop-min);
  aspect-ratio: var(--fg-crop-ratio);
}
.fg-crop img {
  position: absolute;
  max-width: none;
  width: var(--fg-crop-width);
  height: auto;
  left: var(--fg-crop-x);
  top: var(--fg-crop-y);
}
.fg-reading {
  margin-top: 0.85rem;
  font-weight: 650;
}
.fg-field-body .fg-reading + p {
  margin-top: 0.5rem;
}
.fg-section {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.7fr);
  gap: clamp(2rem, 6vw, 6rem);
  padding: clamp(2rem, 5vw, 4.5rem) 0;
  border-bottom: 1px solid var(--line);
}
.fg-section-heading p {
  max-width: 36ch;
  margin-top: 0.9rem;
  color: var(--muted);
}
.fg-timeline {
  margin: 0;
  padding: 0;
  list-style: none;
}
.fg-timeline li {
  display: grid;
  grid-template-columns: minmax(7rem, 1fr) minmax(0, 2.5fr);
  gap: clamp(0.8rem, 2vw, 2rem);
  padding: 1.2rem 0;
  border-top: 1px solid var(--line);
}
.fg-timeline time {
  color: var(--teal);
  font-size: 0.92rem;
  font-weight: 650;
}
.fg-timeline h3 {
  font-size: 1.22rem;
  line-height: 1.25;
}
.fg-timeline p {
  margin: 0.55rem 0;
}
.fg-timeline a,
.fg-citation p {
  font-size: 0.9rem;
}
.fg-citation {
  max-width: 54rem;
  margin-top: 2.4rem;
}
.fg-citation h2 {
  margin-bottom: 0.6rem;
  font-size: 1.25rem;
}
.fg-home {
  overflow: hidden;
  border: 1px solid #adbfba;
  border-radius: 4px;
  color: var(--ink);
  background: white;
}
.fg-home-image {
  display: block;
  height: clamp(9rem, 16vw, 13rem);
  overflow: hidden;
  background-color: #e2e7e5;
  border-bottom: 1px solid #c4d1cd;
}
.fg-home-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  display: block;
}
.fg-home-copy {
  padding: clamp(1.1rem, 2vw, 1.65rem);
}
.fg-home .fg-home-copy h2 {
  color: var(--ink);
  font-size: clamp(1.45rem, 2.2vw, 1.95rem);
}
.fg-home-copy p {
  color: var(--muted);
  margin: 0.7rem 0;
}
.fg-home-copy a {
  color: var(--teal);
  font-weight: 650;
}
@media (max-width: 780px) {
  .fg-reader,
  .fg-section {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.25rem;
  }
  .fg-section-heading p {
    max-width: 60ch;
  }
}
@media (max-width: 520px) {
  .fg-timeline li {
    grid-template-columns: 1fr;
    gap: 0.4rem;
  }
}
@media print {
  .fg-figure,
  .fg-field,
  .fg-timeline li {
    break-inside: avoid;
  }
  .fg-reader,
  .fg-section {
    display: block;
  }
}
.fg-receipt { margin: 1.25rem 0; padding: 1rem; border: 1px solid var(--line); }
.fg-receipt summary { font-weight: 650; cursor: pointer; }
.fg-receipt p, .fg-receipt dl { margin-block: .85rem; }
.fg-receipt code { overflow-wrap: anywhere; }
#certificate-check label { display: block; margin-block: .75rem .4rem; font-weight: 650; }
#certificate-check input { max-width: 100%; }

#build-run-sheet {grid-template-columns: minmax(14rem,.85fr) minmax(0,2fr); align-items: start; gap: 1.5rem clamp(1.5rem,4vw,3.5rem);}
#build-run-sheet > h2 {margin: 0;}
#build-run-sheet > p {align-self: center; margin: 0;}
.run-settings {background: #eaf0e9; border-top: 3px solid var(--teal); padding: clamp(1rem,1.8vw,1.6rem); border-radius: 2px;}
.run-settings:has(#run-controls[hidden]) {display: none;}
.public-site .run-settings #run-controls {display: grid; align-items: start; gap: 1rem; border: 0; margin: 0; padding: 0; background: transparent;}
#run-controls :is(input,select) {width: 100%; min-width: 0; font-weight: 450;}
#run-actions {display: grid; gap: .5rem; margin-top: 1.4rem;}
#run-actions button {font-weight: 550; border-radius: 3px; min-height: 44px;}
#run-summary {border-bottom: 2px solid var(--teal); padding-bottom: .75rem; font-weight: 620;}
.public-site .run-rows {margin: 0;}
.public-site .run-rows li {grid-template-columns: 6.5rem minmax(0,1fr);}
.public-site .run-rows li:first-child {border-top: 0;}
.run-rows small {font-variant-numeric: tabular-nums;}
.run-rows strong {line-height: 1.3;}
.run-rows a {font-size: .92rem;}
#run-limit {border-top: 1px solid var(--line); padding-block: .75rem; color: var(--muted); font-size: .92rem;}
@media (max-width: 700px) {
  #build-run-sheet {display: grid; grid-template-columns: 1fr;}
  .public-site .run-rows li {display: grid; grid-template-columns: 1fr; gap: .3rem;}
  .run-rows li > a {grid-column: 1;}
  .run-settings {padding: 1rem;}
}
@media print {
  .print-run-sheet .run-settings {display: none;}
  .print-run-sheet #build-run-sheet {display: block;}
  #run-result {margin-top: 1rem;}
}
@media print {
  body.print-run-sheet {font-family: Arial, sans-serif; color: #101b1f; background: white;}
  .print-run-sheet .run-rows li {break-inside: avoid;}
}
