html { background: #f5f6f1; color: #203b31; }
body { margin: 0; }
body > header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .8rem max(1rem, calc((100% - 54rem) / 2)); border-bottom: 1px solid #d9dfd8; background: #fffefa; }
.wordmark { color: #214b3e; font: 600 1.55rem/1.1 Georgia, serif; text-decoration: none; }
body > header nav { display: flex; gap: 1rem; flex-wrap: wrap; }
.literally-answer details { margin: .4rem 0; white-space: pre-wrap; }
.literally-answer summary { cursor: pointer; }
#published-document { max-width: 54rem; margin: 2rem auto; padding: clamp(1.1rem, 4.5vw, 3.5rem); background: #fffefa; border: 1px solid #d9dfd8; }
#published-document pre { padding: .85em 1em; background: #f2f4ef; border-inline-start: 3px solid #9bad9c; white-space: pre-wrap; overflow-wrap: anywhere; }
@media screen {
  #published-document:has(table.literally-sized-table) { overflow-x: auto; }
  #published-document:has(.reader-table-scroll, .document-table-field th:nth-child(6)) {
    max-width: 68rem;
    padding-inline: clamp(1.1rem, 3vw, 2.5rem);
  }
  #published-document:has(.reader-table-scroll, .document-table-field th:nth-child(6))
    article > p:not([class], [style], :has(.document-field, .document-include)) { max-width: 80ch; }
  .reader-table-scroll {
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-x: contain;
  }
  .reader-table-scroll > table { min-width: var(--reader-grid-width); }
}
#fare_calculated_document ~ .document-include { margin-top: 1.25rem; padding: clamp(.75rem, 3vw, 1.75rem); border: 1px solid #cbd4ca; border-radius: .3rem; }
.publication-status { margin: .5em 0; color: #664a21; white-space: pre-line; }
.publication-status:empty, .document-fields:empty { display: none; }
.document-fields { margin: 1em 0; display: flex; flex-wrap: wrap; gap: .75em 1.5em; }
.document-fields label, .document-field { max-width: 20rem; display: inline-grid; vertical-align: middle; gap: .25rem; font: 600 .9rem/1.45 "Segoe UI", sans-serif; }
.document-field input, .document-field select, .document-fields input { padding: .4em .55em; }
.document-field select { min-width: 0; max-width: 100%; }
.document-field input[type="checkbox"] { justify-self: start; }
.document-frame { border: 1px solid #cbd4ca; border-radius: .3rem; padding: 1rem; max-height: 32rem; overflow: auto; }
.frame-detail > button { margin: .25em 0; padding: .15em .35em; background: transparent; border-color: transparent; text-decoration: underline; }
.document-include { display: block; }
.document-include iframe { border: 0; width: 100%; min-height: 12rem; }
.document-include > a:first-child { font-size: .9rem; }
button { font: inherit; cursor: pointer; padding: .4em .8em; color: #174733; background: #f1f5ec; border: 1px solid #9bad9c; border-radius: .25em; }
button:disabled { cursor: default; }
button:focus-visible, select:focus-visible, [tabindex="-1"]:focus-visible { outline: 2px solid #2c674b; outline-offset: 3px; }
@media (max-width: 600px) { #published-document { margin: 0; border: 0; } }
@media screen and (max-width: 600px) {
  body > header { flex-wrap: wrap; gap: .1rem .65rem; padding: .25rem .75rem; }
  body > header .wordmark { font-size: clamp(1.2rem, 6vw, 1.55rem); }
  body > header nav { gap: .1rem .75rem; font-size: .9375rem; }
  #published-document td.numeric-amount:nth-child(2):last-child { white-space: nowrap; }
}
@media screen and (pointer: coarse) {
  body > header a { display: inline-flex; align-items: center; min-height: 44px; }
  #published-document :is(input:not([type="checkbox"], [type="radio"]), select, textarea) {
    min-height: 44px;
    font-size: max(1rem, 16px);
  }
  #published-document :is(button, .document-checkbox, .document-radios label, summary) { min-height: 44px; }
  #published-document :is(.document-checkbox, .document-radios label) { align-items: center; }
  #published-document input:is([type="checkbox"], [type="radio"]) { width: 1.1rem; height: 1.1rem; }
}
