/* The public look: every resident-facing application page, for every
   municipality (docs/csdatum-permits/APPLICANT_LOOK_PLAN.md; the design rules
   are its section 4, the contract municipal_permits/DESIGN.md "Public pages").
   The product's typeface, colours and control shapes, laid out for a member of
   the public: a masthead, the steps in a row, one centred column, controls
   sized for touch. Loaded after static/look/ and before the municipality's
   palette, which supplies only --green, --green-dark and, where the seal needs
   one, --seal-background. Nothing here names a municipality. */

/* A municipality with no palette of its own keeps the product's civic colours. */
:root { --green: #336633; --green-dark: #224f22; }

body.applicant-shell {
  --town: var(--green);
  --town-deep: var(--green-dark);
  --town-tint: color-mix(in srgb, var(--town) 11%, #fff);
  --column: 860px;
  --gutter: 32px;
  --control: 44px;
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font: 16px/24px var(--look-font);
  font-variant-numeric: tabular-nums;
  color: var(--look-ink);
  background: #fff;
  -webkit-text-size-adjust: 100%;
}
.applicant-shell *, .applicant-shell *::before, .applicant-shell *::after { box-sizing: border-box; }
.applicant-shell h1, .applicant-shell h2, .applicant-shell h3, .applicant-shell p, .applicant-shell ul, .applicant-shell ol, .applicant-shell dl, .applicant-shell dd, .applicant-shell fieldset, .applicant-shell legend { margin: 0; padding: 0; }
.applicant-shell fieldset { border: 0; min-width: 0; }
.applicant-shell img, .applicant-shell svg { max-width: 100%; }
.applicant-shell a { color: var(--town-deep); text-underline-offset: .2em; }
.applicant-shell a:hover { color: var(--look-ink); }
.applicant-shell button, .applicant-shell input, .applicant-shell select, .applicant-shell textarea { font: inherit; color: inherit; }
.applicant-shell :focus-visible { outline: 2px solid var(--town); outline-offset: 2px; }
.applicant-shell main:focus, .applicant-shell .error-summary:focus { outline: none; }
.applicant-shell [hidden] { display: none !important; }

.applicant-shell .skip-link { position: fixed; left: 16px; top: -100px; z-index: 100; padding: 10px 14px; background: #fff; border: 2px solid var(--town); border-radius: var(--look-field-radius); }
.applicant-shell .skip-link:focus { top: 16px; }
.applicant-shell .visually-hidden, .applicant-shell .sr-only, .applicant-shell .occupant-status { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

/* Masthead: the portal's identity at the left, the seal at the right; a state's
   utility links between them, and on a row of their own at phone width. */
.applicant-shell .site-header { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; min-height: 96px; padding: 12px max(var(--gutter), calc((100% - var(--column)) / 2)); border-bottom: 1px solid var(--look-line-strong); background: #fff; }
.applicant-shell .site-header .brand, .applicant-shell .site-header .identity-text { order: 1; flex: 1 1 0; min-width: 0; margin: 0; font-size: 17px; font-weight: 650; letter-spacing: -.01em; line-height: 1.2; color: var(--look-ink); text-decoration: none; overflow-wrap: anywhere; }
.applicant-shell .site-header .identity-text { display: grid; gap: 2px; }
.applicant-shell .site-header .identity-text span { font-size: 14px; font-weight: 400; letter-spacing: 0; color: var(--look-muted); }
.applicant-shell .site-header nav { order: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 0 20px; font-size: 14px; line-height: 20px; }
.applicant-shell .site-header nav > a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; }
.applicant-shell .site-header nav form { display: inline-flex; margin: 0; }
.applicant-shell .municipality-seal { order: 3; flex: none; display: block; width: auto; height: auto; max-width: 260px; max-height: 72px; object-fit: contain; background: var(--seal-background, transparent); }

.applicant-shell main { flex: 1; width: 100%; max-width: calc(var(--column) + 2 * var(--gutter)); min-height: 0; margin: 0 auto; padding: 24px var(--gutter) 40px; }
.applicant-shell main > :first-child { margin-top: 0; }

.applicant-shell .site-footer { width: 100%; max-width: calc(var(--column) + 2 * var(--gutter)); margin: 0 auto; padding: 16px var(--gutter) 28px; border: 0; text-align: left; font-size: 14px; line-height: 20px; color: var(--look-muted); }
.applicant-shell .site-footer p + p { margin-top: 4px; }
.applicant-shell .site-footer a { color: inherit; }

/* Type */
.applicant-shell h1 { font-size: 23px; font-weight: 650; letter-spacing: -.012em; line-height: 28px; overflow-wrap: anywhere; }
.applicant-shell h2, .applicant-shell .application-section > legend, .applicant-shell .application-preview > summary { font-size: 18px; font-weight: 650; letter-spacing: -.005em; line-height: 24px; }
.applicant-shell h3, .applicant-shell .occupant-row > legend { font-size: 16px; font-weight: 650; line-height: 24px; }
.applicant-shell .page-heading { margin: 0 0 24px; }
.applicant-shell .page-heading p, .applicant-shell .lede { margin-top: 8px; color: var(--look-muted); }
.applicant-shell .eyebrow { display: block; margin-bottom: 4px; font-size: 14px; font-weight: 600; line-height: 20px; color: var(--look-muted); }
.applicant-shell .helptext, .applicant-shell .small-note { font-size: 14px; line-height: 20px; color: var(--look-muted); }

/* Buttons and links that are buttons */
.applicant-shell button, .applicant-shell .button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 6px 18px; border: 1px solid var(--town); border-radius: var(--look-button-radius); background: var(--town); color: #fff; font-size: 15px; font-weight: 550; line-height: 20px; text-align: center; text-decoration: none; cursor: pointer; }
.applicant-shell button:hover, .applicant-shell .button:hover { background: var(--town-deep); border-color: var(--town-deep); color: #fff; }
.applicant-shell button.secondary, .applicant-shell .button.secondary, .applicant-shell .secondary { border-color: var(--look-field-line); background: #fff; color: var(--look-ink); }
.applicant-shell button.secondary:hover, .applicant-shell .button.secondary:hover { background: var(--town-tint); border-color: var(--look-field-line); color: var(--look-ink); }
.applicant-shell button:disabled { background: var(--look-disabled-ground); border-color: var(--look-field-line); color: var(--look-muted); cursor: not-allowed; }
.applicant-shell .application-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 24px 0; padding-top: 24px; border-top: 1px solid var(--look-line); }
.applicant-shell .application-actions > a:not(.button) { display: inline-flex; align-items: center; min-height: 44px; margin-right: 8px; }
.applicant-shell form + .application-actions { border-top: 0; padding-top: 0; margin-top: 8px; }

/* Steps */
.applicant-shell .application-steps { display: flex; gap: 4px; margin: 0 0 24px; }
.applicant-shell .application-steps a { display: flex; align-items: center; min-height: 44px; padding: 6px 14px; border-radius: 6px; font-size: 14px; font-weight: 500; line-height: 20px; color: var(--look-muted); text-decoration: none; }
.applicant-shell .application-steps a[aria-current] { background: var(--town-tint); color: var(--town-deep); font-weight: 600; }
.applicant-shell .application-reference { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; margin: 0 0 16px; font-size: 14px; line-height: 20px; color: var(--look-muted); }
.applicant-shell .application-reference strong { color: var(--look-ink); overflow-wrap: anywhere; }

/* Messages and states */
.applicant-shell .notice { margin: 0 0 24px; padding: 16px; border: 1px solid var(--look-line-strong); border-radius: var(--look-field-radius); background: #fff; }
.applicant-shell .notice h2 { margin-bottom: 4px; }
.applicant-shell .notice .button { margin-top: 12px; }
.applicant-shell .access-slip { margin: 0 0 24px; padding: 16px; border-radius: var(--look-field-radius); background: var(--town-tint); }
.applicant-shell .access-slip h2 { margin-bottom: 4px; }
.applicant-shell .access-slip code { display: block; margin-top: 8px; font-size: 16px; overflow-wrap: anywhere; user-select: all; }
.applicant-shell .error-summary { margin: 0 0 24px; padding: 16px; border: 2px solid var(--look-error); border-radius: var(--look-field-radius); background: var(--look-error-ground); }
.applicant-shell .error-summary h2 { margin-bottom: 4px; color: var(--look-error); }
.applicant-shell .error-summary ul { padding-left: 20px; }
.applicant-shell .error-summary .errorlist { margin: 0 0 4px; padding: 0; font-size: 16px; line-height: 24px; color: var(--look-ink); }
.applicant-shell .error-summary .errorlist li { margin: 0; }
.applicant-shell .error-summary .actions { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-top: 8px; }
.applicant-shell .error-summary .actions a { display: inline-flex; align-items: center; min-height: 44px; }
.applicant-shell .errorlist { margin: 6px 0 0; padding: 0; list-style: none; font-size: 14px; line-height: 20px; color: var(--look-error); }
.applicant-shell p.errorlist { margin: 12px 0; }

/* Sections: a fine rule between them */
.applicant-shell .panel, .applicant-shell .application-section, .applicant-shell .application-summary, .applicant-shell .application-signing, .applicant-shell .application-preview { margin: 0; padding: 20px 0 24px; border: 0; border-top: 1px solid var(--look-line); border-radius: 0; background: none; box-shadow: none; }
.applicant-shell .application-signing .application-section:first-of-type { margin-top: 20px; }
.applicant-shell .panel > h2, .applicant-shell .application-summary > h2, .applicant-shell .application-signing > h2 { margin-bottom: 16px; }
.applicant-shell .application-section > legend { float: left; width: 100%; margin-bottom: 16px; }
.applicant-shell .application-section > legend + * { clear: both; }
.applicant-shell .application-section > p, .applicant-shell .panel > p, .applicant-shell #adult-occupants > p, .applicant-shell .application-signing p { margin: 0 0 16px; }
.applicant-shell .application-section > button { margin: 0 0 16px; }
.applicant-shell .application-section > legend + p, .applicant-shell .application-section > .formset-management + p { margin-top: -8px; font-size: 14px; line-height: 20px; color: var(--look-muted); }
.applicant-shell .panel ul, .applicant-shell .application-guidance ul, .applicant-shell .application-summary > ul { padding-left: 20px; }
.applicant-shell .panel li, .applicant-shell .application-guidance li, .applicant-shell .application-checklist li, .applicant-shell .application-summary > ul li { margin: 8px 0; }
.applicant-shell .panel form { margin: 16px 0 0; }
.applicant-shell .panel form > button, .applicant-shell .panel form > .application-fields + button { margin-top: 16px; }
.applicant-shell .panel form + p { margin-top: 16px; }
/* The review page's disclosure reads like the confirmation page's rows: its heading at the left, a drawn chevron at the right. */
.applicant-shell .application-preview > summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 44px; list-style: none; cursor: pointer; }
.applicant-shell .application-preview > summary::-webkit-details-marker { display: none; }
.applicant-shell .application-preview > summary::after { content: ""; flex: none; width: 9px; height: 9px; margin-right: 5px; border-right: 1.7px solid var(--town-deep); border-bottom: 1.7px solid var(--town-deep); transform: rotate(45deg) translateY(-3px); }
.applicant-shell .application-preview[open] > summary::after { transform: rotate(225deg) translateY(-3px); }
.applicant-shell .application-preview > .application-summary:first-of-type { margin-top: 12px; }

/* Landing and index: one column in the existing order */
.applicant-shell .applicant-intro { margin: 0 0 24px; }
.applicant-shell .applicant-intro p:not(.lede) { margin-top: 12px; }
.applicant-shell .applicant-start-grid { display: block; }
.applicant-shell .application-guidance { margin: 0; padding: 20px 0 24px; border-top: 1px solid var(--look-line); }
.applicant-shell .application-guidance h2 { margin: 0 0 16px; }
.applicant-shell .application-guidance h2:not(:first-child) { margin-top: 24px; }
.applicant-shell .application-guidance p { margin: 0 0 12px; }
.applicant-shell .resume-panel { border-top: 0; padding-top: 0; }
.applicant-shell .resume-panel h1 + p { margin: 8px 0 20px; color: var(--look-muted); }
.applicant-shell .resume-panel form > button { margin-top: 16px; }
.applicant-shell .resume-panel form + p { margin-top: 20px; }
.applicant-shell main > .panel:first-child { border-top: 0; padding-top: 0; }
.applicant-shell main > .panel:first-child h1 + p { margin: 8px 0 16px; }
.applicant-shell .application-index { margin: 0; padding: 0; list-style: none; }
.applicant-shell .application-index li { margin: 0; border-bottom: 1px solid var(--look-line); }
.applicant-shell .application-index a { display: flex; align-items: center; min-height: 48px; padding: 12px 0; font-weight: 600; overflow-wrap: anywhere; }

/* Fields: label, control, then the hint and any error under the control */
.applicant-shell .application-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 24px; }
.applicant-shell .application-field { display: grid; grid-template-rows: subgrid; grid-row: span 2; row-gap: 6px; min-width: 0; margin: 0; }
.applicant-shell .application-field > .field-heading { align-self: end; line-height: 20px; }
.applicant-shell .application-field label, .applicant-shell .question-label { display: inline; margin: 0; font-size: 15px; font-weight: 600; line-height: 20px; }
.applicant-shell .required-label { margin-left: 8px; font-size: 13px; font-weight: 400; color: var(--look-muted); }
.applicant-shell .application-field .helptext { margin: 6px 0 0; }
.applicant-shell .application-field input:not([type="checkbox"]):not([type="radio"]), .applicant-shell .application-field select, .applicant-shell .application-field textarea {
  display: block; width: 100%; max-width: 100%; min-height: 0; height: var(--control); margin: 0; padding: 0 12px; border: 1px solid var(--look-field-line); border-radius: var(--look-field-radius); background-color: #fff;
}
.applicant-shell .application-field textarea { height: auto; min-height: 96px; padding: 9px 12px; resize: vertical; line-height: 24px; }
.applicant-shell .application-field input[type="file"] { height: auto; min-height: var(--control); padding: 5px 12px 5px 5px; line-height: 32px; }
.applicant-shell input[type="file"]::file-selector-button { height: 32px; margin: 0 12px 0 0; padding: 0 12px; border: 1px solid var(--look-field-line); border-radius: var(--look-field-radius); background: #fff; color: var(--look-ink); font: inherit; font-size: 14px; font-weight: 550; cursor: pointer; }
.applicant-shell .application-field select { appearance: none; padding-right: 34px; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(-45deg, transparent 50%, currentColor 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.applicant-shell .application-field input:focus-visible, .applicant-shell .application-field select:focus-visible, .applicant-shell .application-field textarea:focus-visible { outline: 2px solid var(--town); outline-offset: 0; border-color: var(--town); }
.applicant-shell .application-field input:disabled, .applicant-shell .application-field select:disabled, .applicant-shell .application-field textarea:disabled { background-color: var(--look-disabled-ground); color: var(--look-muted); opacity: 1; }
.applicant-shell .application-field.has-error input:not([type="checkbox"]):not([type="radio"]), .applicant-shell .application-field.has-error textarea, .applicant-shell .application-field.has-error select, .applicant-shell .application-field.has-error .money { border-color: var(--look-error); }
/* A field a completion message is about (is-marked) looks like a field with
   an error. A marked question or tick box has no outline of its own to
   colour, so its words carry the mark. A field with an error of its own is
   left as it was. */
.applicant-shell .application-question.is-marked .question-label, .applicant-shell .application-checkbox.is-marked > .field-heading label { color: var(--look-error); }
.applicant-shell input[type="checkbox"], .applicant-shell input[type="radio"] { width: 20px; height: 20px; min-height: 0; margin: 0; flex: none; accent-color: var(--town); }
.applicant-shell .money { display: flex; align-items: center; height: var(--control); border: 1px solid var(--look-field-line); border-radius: var(--look-field-radius); background: #fff; }
.applicant-shell .money-sign { padding-left: 12px; color: var(--look-muted); }
.applicant-shell .application-field .money input:not([type="checkbox"]):not([type="radio"]) { height: 100%; border: 0; background: none; appearance: textfield; }
.applicant-shell .money input::-webkit-inner-spin-button, .applicant-shell .money input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.applicant-shell .money input:focus-visible { outline: 0; }
.applicant-shell .money:focus-within { outline: 2px solid var(--town); border-color: var(--town); }

/* A single tick box: the box, then its label, on a row of its own */
.applicant-shell .application-checkbox { grid-column: 1 / -1; grid-row: span 1; grid-template-rows: none; grid-template-columns: 20px minmax(0, 1fr); column-gap: 12px; row-gap: 0; align-items: center; min-height: 44px; }
.applicant-shell .application-checkbox + .application-checkbox { margin-top: -16px; }
.applicant-shell .application-checkbox > .field-heading { grid-column: 2; grid-row: 1; align-self: center; }
/* The label is the tick box's target: as tall as a control. */
.applicant-shell .application-checkbox > .field-heading label { display: inline-flex; align-items: center; min-height: var(--control); font-weight: 500; font-size: 16px; line-height: 24px; cursor: pointer; }
.applicant-shell .application-checkbox > .field-control { display: contents; }
.applicant-shell .application-checkbox input[type="checkbox"] { grid-column: 1; grid-row: 1; }
.applicant-shell .application-checkbox .helptext, .applicant-shell .application-checkbox .errorlist { grid-column: 2; margin: 0 0 6px; }

/* A question with its answers: the question at the left, the answers at the
   right; a list of tick-box choices runs four across under its heading. */
.applicant-shell .application-question { grid-column: 1 / -1; grid-row: span 1; display: flex; flex-wrap: wrap; align-items: center; gap: 0 24px; padding: 4px 0; border-bottom: 1px solid var(--look-line); }
.applicant-shell .application-fields > .application-question:last-child { border-bottom: 0; }
/* A question's answers sit under it, at the column's edge (DS, 2026-11-14). */
.applicant-shell .application-question > .field-heading { flex: 1 1 100%; min-width: 0; align-self: center; }
.applicant-shell .application-question > .field-control { display: contents; }
.applicant-shell .application-question > .field-control > div { flex: 0 1 auto; max-width: 100%; display: flex; flex-wrap: wrap; gap: 0 24px; }
.applicant-shell .application-question > .field-control > .helptext, .applicant-shell .application-question > .field-control > .errorlist { flex: 1 1 100%; margin: 0 0 8px; }
.applicant-shell .application-question label { display: inline-flex; align-items: flex-start; gap: 10px; min-height: 44px; padding: 10px 0; font-size: 16px; font-weight: 500; line-height: 24px; cursor: pointer; }
.applicant-shell .application-question label input { margin-top: 2px; }
.applicant-shell .application-question:has(input[type="checkbox"]) { display: block; padding: 0; border-bottom: 0; }
.applicant-shell .application-question:has(input[type="checkbox"]) > .field-control > div { max-width: none; }
.applicant-shell .application-question:has(input[type="checkbox"]) > .field-heading { display: block; margin-bottom: 0; }
.applicant-shell .application-question:has(input[type="checkbox"]) > .field-control > div { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 24px; }
.applicant-shell .application-question-stacked { display: block; padding: 4px 0 12px; }
.applicant-shell .application-question-stacked > legend { float: none; width: auto; padding: 0; }
.applicant-shell .application-question-stacked > .helptext { margin: 4px 0 8px; }
.applicant-shell .occupancy-options { display: grid; gap: 4px; }
.applicant-shell .occupancy-option { display: grid; grid-template-columns: 20px minmax(0, 1fr); column-gap: 12px; align-items: center; min-height: 44px; }
.applicant-shell .occupancy-option input[type="radio"] { grid-column: 1; }
.applicant-shell .occupancy-option label { grid-column: 2; display: flex; align-items: center; min-height: var(--control); padding: 0; font-weight: 600; cursor: pointer; }
.applicant-shell .occupancy-option .helptext { grid-column: 2; margin: 0 0 6px; display: none; font-style: italic; font-synthesis: style; }
.applicant-shell .occupancy-option:has(input:checked) .helptext { display: block; }
.applicant-shell .occupancy-clear { margin-top: 8px; }
.applicant-shell .pet-details { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 24px; }
.applicant-shell .pet-details > .question-label { grid-column: 1 / -1; margin-bottom: -8px; }

/* A person's lines in a box of their own, the address in Create Permit's
   contact fields (DS 2026-11-16) */
.applicant-shell .party-box { grid-column: 1 / -1; padding: 16px 16px 20px; border: 1px solid var(--look-line-strong); border-radius: var(--look-field-radius); }
.applicant-shell .party-box > legend { float: left; width: 100%; margin-bottom: 12px; font-size: 16px; font-weight: 650; line-height: 24px; }
.applicant-shell .party-fields { clear: both; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px 24px; }
.applicant-shell .party-fields > .application-field { grid-column: span 2; }
.applicant-shell .party-fields > .application-checkbox { grid-column: 1 / -1; }
.applicant-shell .party-fields > .party-name, .applicant-shell .party-fields > .party-address_line1 { grid-column: 1 / span 2; }
.applicant-shell .party-fields > .party-state, .applicant-shell .party-fields > .party-zip_code { grid-column: span 1; }
.applicant-shell .application-summary > .summary-box, .confirmation-page .record-section > .summary-box { margin: 16px 0 8px; }

/* Address search */
.applicant-shell .address-search { position: relative; }
.applicant-shell .address-options { position: absolute; top: var(--control); left: 0; right: 0; z-index: 10; max-height: min(24rem, 45vh); overflow-y: auto; margin: 0; padding: 0; list-style: none; border: 1px solid var(--look-field-line); border-radius: var(--look-field-radius); background: #fff; box-shadow: 0 8px 24px rgb(0 0 0 / .14); }
.applicant-shell .address-options [role="option"] { min-height: 44px; margin: 0; padding: 10px 12px; cursor: pointer; border-bottom: 1px solid var(--look-line); overflow-wrap: anywhere; }
.applicant-shell .address-options [role="option"]:last-child { border-bottom: 0; }
.applicant-shell .address-options [role="option"]:hover, .applicant-shell .address-options [aria-selected="true"] { background: var(--town-tint); outline: 2px solid var(--town); outline-offset: -2px; }
.applicant-shell .address-option-pin { display: block; font-size: 14px; line-height: 20px; color: var(--look-muted); }
.applicant-shell .address-search-status:empty { display: none; }

/* Repeating rows */
.applicant-shell .application-fields:not(:has(*)) { display: none; }
.applicant-shell .application-fields:has(*) + #adult-occupants { margin-top: 20px; }
.applicant-shell #adult-occupants > p:first-child { font-size: 14px; line-height: 20px; color: var(--look-muted); }
.applicant-shell .occupant-row { min-width: 0; margin: 16px 0; padding: 16px 0 0; border: 0; border-top: 1px solid var(--look-line); }
.applicant-shell .occupant-card { position: relative; margin: 20px 0; padding: 20px 16px 16px; border: 1px solid var(--look-line-strong); border-radius: var(--look-field-radius); }
.applicant-shell .occupant-card > legend { float: none; width: auto; max-width: calc(100% - 7.5rem); padding: 0 8px; }
/* A repeating row's heading sits inside its card, on a line with its Remove button, so a long heading can wrap without crossing the card's border. */
.applicant-shell fieldset.occupant-card > legend { float: left; display: flex; align-items: center; width: calc(100% - 7rem); max-width: none; min-height: 44px; margin: -52px 0 8px; padding: 0; }
.applicant-shell fieldset.occupant-card > legend ~ .application-fields { clear: both; }
.applicant-shell .occupant-card > h3 { margin-bottom: 12px; }
.applicant-shell fieldset.occupant-card { padding-top: 60px; }
.applicant-shell .occupant-remove { position: absolute; right: 12px; top: 8px; min-height: 44px; padding: 6px 12px; font-size: 14px; background: #fff; }
.applicant-shell .occupant-removal { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px 16px; margin: 20px 0; padding: 12px 16px; border: 1px dashed var(--look-line-strong); border-radius: var(--look-field-radius); color: var(--look-muted); }
.applicant-shell [data-occupant-controls] .helptext { margin-top: 8px; }

/* Documents */
.applicant-shell .section-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 24px; margin-bottom: 8px; }
.applicant-shell .section-heading h2 { margin: 0; }
.applicant-shell .section-heading a { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; }
.applicant-shell .panel .document-list { margin: 0; padding: 0; list-style: none; }
.applicant-shell .document-list li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; margin: 0; padding: 16px 0; border-top: 1px solid var(--look-line); }
.applicant-shell .document-list li > div:first-child { flex: 1 1 16rem; min-width: 0; overflow-wrap: anywhere; }
.applicant-shell .document-list strong { display: block; }
.applicant-shell .document-list span, .applicant-shell .document-list p { display: block; margin: 0; font-size: 14px; line-height: 20px; color: var(--look-muted); }
.applicant-shell .document-list span { font-size: 16px; line-height: 24px; color: var(--look-ink); }
.applicant-shell .document-list .actions { display: flex; flex-wrap: wrap; gap: 8px; }
.applicant-shell .document-list form { margin: 0; }

/* Payment */
.applicant-shell #application-payment, .applicant-shell #application-information { max-width: none; margin: 0; padding: 0; border: 0; border-radius: 0; background: none; }
.applicant-shell .payment-choice > legend { float: none; width: auto; margin-bottom: 4px; }
.applicant-shell .payment-options { display: grid; gap: 0; }
.applicant-shell .payment-option { display: grid; grid-template-columns: 20px minmax(0, 1fr); column-gap: 12px; align-items: center; min-height: 44px; }
.applicant-shell .payment-option label { display: flex; align-items: center; min-height: var(--control); font-weight: 500; cursor: pointer; }
.applicant-shell #payment-fee-note { margin: 12px 0 0; }
.applicant-shell .payment-instructions h2 { margin-bottom: 12px; }
.applicant-shell .payment-instructions p, .applicant-shell .payment-instructions ul { margin-bottom: 12px; }

/* Review: each answer's label above its value */
.applicant-shell .application-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 24px; margin: 0; }
.applicant-shell .application-facts > div { min-width: 0; }
.applicant-shell .application-facts dt { font-size: 14px; font-weight: 600; line-height: 20px; color: var(--look-muted); }
.applicant-shell .application-facts dd { margin: 2px 0 0; min-height: 24px; overflow-wrap: anywhere; }
.applicant-shell .application-summary > p { color: var(--look-muted); }
.applicant-shell .signing-verification { margin: 20px 0 0; }
.applicant-shell .application-signing form > p { margin: 20px 0 16px; }

/* Special arrangements a form's own content has: a wide line, a table of
   initials beside declarations, a signature beside its date. */
.applicant-shell .field-owner_company_contact, .applicant-shell .field-local_contact, .applicant-shell .field-occupancy, .applicant-shell .field-payment_reference, .applicant-shell .field-owner_printed_name, .applicant-shell .field-manager_printed_name { grid-column: 1 / -1; }
.applicant-shell .field-license_displayed .helptext, .applicant-shell .field-evacuation_posted .helptext { font-style: italic; font-synthesis: style; }
.applicant-shell .section-property-owner-information .application-facts > div:last-child,
.applicant-shell .section-property-manager-information .application-facts > div:first-child,
.applicant-shell .section-property-manager-information .application-facts > div:last-child,
.applicant-shell .section-tenant-information > .application-facts > div,
.applicant-shell .section-fee-payment .application-facts > div:nth-child(2),
.applicant-shell .section-property-owner-signature .application-facts > div:first-child,
.applicant-shell .section-property-manager-signature .application-facts > div:first-child { grid-column: 1 / -1; }
.applicant-shell .section-additional-information .application-facts > div:nth-child(-n+5) { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(4rem, auto); gap: 16px; align-items: start; }
.applicant-shell .section-documents-and-fees-required .application-fields, .applicant-shell .section-please-initial .application-fields,
.applicant-shell .section-documents-and-fees-required .application-facts, .applicant-shell .section-please-initial .application-facts,
.applicant-shell .section-electronic-consent .application-facts { grid-template-columns: minmax(0, 1fr); }
.applicant-shell .section-documents-and-fees-required .application-field, .applicant-shell .section-please-initial .application-field { grid-row: span 1; grid-template-rows: none; grid-template-columns: 5rem minmax(0, 1fr); column-gap: 16px; row-gap: 0; align-items: start; }
.applicant-shell .section-documents-and-fees-required .field-heading, .applicant-shell .section-please-initial .field-heading { grid-column: 2; grid-row: 1; align-self: start; padding-top: 12px; }
.applicant-shell .section-documents-and-fees-required .field-heading label, .applicant-shell .section-please-initial .field-heading label { font-weight: 400; font-size: 16px; line-height: 24px; }
.applicant-shell .section-documents-and-fees-required .field-control, .applicant-shell .section-please-initial .field-control { display: contents; }
.applicant-shell .section-documents-and-fees-required .field-control > input, .applicant-shell .section-please-initial .field-control > input { grid-column: 1; grid-row: 1; }
.applicant-shell .section-documents-and-fees-required .field-control > .helptext, .applicant-shell .section-please-initial .field-control > .helptext, .applicant-shell .section-documents-and-fees-required .field-control > .errorlist, .applicant-shell .section-please-initial .field-control > .errorlist { grid-column: 2; margin: 0 0 8px; }
.applicant-shell .section-documents-and-fees-required .application-facts > div, .applicant-shell .section-please-initial .application-facts > div { display: grid; grid-template-columns: 5rem minmax(0, 1fr); gap: 16px; align-items: start; }
.applicant-shell .section-documents-and-fees-required dt, .applicant-shell .section-please-initial dt { grid-column: 2; grid-row: 1; color: var(--look-ink); font-size: 16px; font-weight: 400; line-height: 24px; }
.applicant-shell .section-documents-and-fees-required dd, .applicant-shell .section-please-initial dd { grid-column: 1; grid-row: 1; margin: 0; }
.applicant-shell .section-property-owner-signature .application-fields, .applicant-shell .section-property-manager-signature .application-fields,
.applicant-shell .section-property-owner-signature .application-facts, .applicant-shell .section-property-manager-signature .application-facts { grid-template-columns: minmax(0, 3fr) minmax(0, 1fr); }

/* The confirmation page: one column of white sections divided by fine rules;
   the application number is the one tinted block. It keeps every section,
   its tracker, each disclosure's default and what print hides. */
.applicant-shell .site-footer .privacy-line { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.applicant-shell .site-footer strong { color: var(--look-ink); font-weight: 600; }

.confirmation-page [hidden] { display: none !important; }
.confirmation-page .print-only { display: none; }
.confirmation-page .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.confirmation-page .application-receipt { min-width: 0; overflow-wrap: anywhere; }
.confirmation-page .application-receipt svg { flex: none; vertical-align: middle; }
/* Headings and paragraphs start without margins. A rule below that gives a
   paragraph its own spacing names .application-receipt too, to outrank this. */
.confirmation-page .application-receipt h1,
.confirmation-page .application-receipt h2,
.confirmation-page .application-receipt h3,
.confirmation-page .application-receipt p { margin: 0; }
.confirmation-page .application-receipt h1 { font-size: 23px; line-height: 30px; font-weight: 650; }
.confirmation-page .application-receipt h2 { font-size: 18px; line-height: 24px; font-weight: 650; }
.confirmation-page .application-receipt h3 { font-size: 16px; line-height: 24px; font-weight: 650; }

/* Progress steps */
.confirmation-page .steps { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; font-size: 14px; line-height: 20px; color: var(--look-muted); }
.confirmation-page .steps li { display: inline-flex; align-items: center; gap: 6px; min-width: 0; min-height: 44px; padding: 8px 12px; border-radius: var(--look-field-radius); }
.confirmation-page .steps [aria-current] { background: var(--town-tint); color: var(--town-deep); font-weight: 600; }
.confirmation-page .step-dot { display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; flex: none; }
.confirmation-page .step-dot svg { width: 16px; height: 16px; }

/* Top of the receipt */
.confirmation-page .hero { display: block; padding: 24px 0 0; }
.confirmation-page .hero > div:first-child { margin-bottom: 20px; }
.confirmation-page .success-label { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 14px; line-height: 20px; font-weight: 600; color: var(--town-deep); }
.confirmation-page .icon-circle { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border: 1px solid currentColor; border-radius: 50%; flex: none; }
.confirmation-page .icon-circle svg { width: 14px; height: 14px; }
.confirmation-page .hero .intro { margin-top: 8px; font-size: 16px; line-height: 24px; }

.confirmation-page .reference-card { padding: 16px; background: var(--town-tint); border-radius: 6px; }
.confirmation-page .eyebrow { font-size: 14px; line-height: 20px; font-weight: 600; color: var(--look-muted); }
.confirmation-page .reference-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 4px 0 8px; }
.confirmation-page .reference-number { min-width: 0; font-size: 22px; line-height: 28px; font-weight: 650; overflow-wrap: anywhere; }
.confirmation-page .icon-button { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 44px; height: 44px; min-width: 44px; min-height: 44px; padding: 0; border: 0; background: transparent; color: var(--town-deep); border-radius: var(--look-button-radius); }
.confirmation-page .icon-button:hover { background: #fff; }
.confirmation-page .ref-meta { font-size: 14px; line-height: 20px; color: var(--look-muted); }
.confirmation-page .ref-meta strong { font-weight: 600; color: var(--look-ink); }

.confirmation-page .property-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-top: 24px; padding: 20px 0 0; border-top: 1px solid var(--look-line); }
.confirmation-page .property-strip .address { font-size: 16px; line-height: 24px; font-weight: 600; overflow-wrap: anywhere; }
.confirmation-page .property-strip .location { margin-left: 8px; font-size: 14px; line-height: 20px; color: var(--look-muted); }
.confirmation-page .pill { display: inline-flex; align-items: center; padding: 2px 8px; border: 1px solid currentColor; border-radius: 4px; background: #fff; color: var(--look-muted); font-size: 13px; line-height: 20px; font-weight: 600; }
.confirmation-page .pill.reported { color: var(--town-deep); }

.confirmation-page .application-receipt > .notice { margin-top: 24px; }

/* Stack the three layout wrappers in DOM order */
.confirmation-page .layout { display: block; }
.confirmation-page .left-column,
.confirmation-page .sidebar { display: block; min-width: 0; }

/* Plain sections */
.confirmation-page .payment-card,
.confirmation-page .save-card,
.confirmation-page .record,
.confirmation-page .sidebar > section,
.confirmation-page .faq { margin: 24px 0 0; padding: 20px 0 0; border: 0; border-top: 1px solid var(--look-line); border-radius: 0; background: transparent; box-shadow: none; }
.confirmation-page .application-receipt p + p { margin-top: 8px; }

/* Payment step (every town's payment-card) */
.confirmation-page .payment-card { display: grid; grid-template-columns: 24px minmax(0, 1fr); column-gap: 12px; }
.confirmation-page .payment-card > * { grid-column: 1 / -1; min-width: 0; }
.confirmation-page .payment-card > .payment-icon { grid-column: 1; grid-row: 1; color: var(--town-deep); }
.confirmation-page .payment-card > .eyebrow { grid-column: 2; grid-row: 1; }
.confirmation-page .payment-icon svg { width: 24px; height: 24px; }
.confirmation-page .payment-card h2 { margin: 4px 0 8px; }
.confirmation-page .payment-card p { max-width: 640px; }
.confirmation-page .application-receipt .payment-reference { margin-top: 8px; overflow-wrap: anywhere; }
.confirmation-page .payment-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 16px; }
.confirmation-page .payment-actions .button,
.confirmation-page .save-actions .button { height: auto; min-height: 44px; padding-block: 10px; gap: 8px; text-align: center; }
.confirmation-page .external-caption { font-size: 14px; line-height: 20px; color: var(--look-muted); }
.confirmation-page .application-receipt .payment-note { display: flex; align-items: flex-start; gap: 8px; margin: 12px 0 0; font-size: 14px; line-height: 20px; color: var(--look-muted); }
.confirmation-page .payment-note svg { margin-top: 1px; }
.confirmation-page .payment-note a { padding-block: 12px; font-weight: 600; }

/* Quiet button, shared by the toggle, print and download links */
.confirmation-page .text-button { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0; border: 0; background: transparent; color: var(--town-deep); font-size: 16px; line-height: 24px; font-weight: 600; text-decoration: none; cursor: pointer; }
.confirmation-page .text-button:hover { text-decoration: underline; background: transparent; }

/* Copy for the records */
.confirmation-page .save-heading { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; color: var(--town-deep); }
.confirmation-page .save-heading h2 { color: var(--look-ink); }
.confirmation-page .save-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; }
.confirmation-page .file-format { margin-left: -4px; font-weight: 600; }
.confirmation-page .application-receipt .small-note { margin-top: 12px; font-size: 14px; line-height: 20px; color: var(--look-muted); }

/* Completed application */
.confirmation-page .section-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.confirmation-page .application-receipt .record-intro { margin: 4px 0 20px; font-size: 14px; line-height: 20px; color: var(--look-muted); }
.confirmation-page .record-section,
.confirmation-page .faq details { border-top: 1px solid var(--look-line); }
.confirmation-page .record-section:last-of-type,
.confirmation-page .faq details:last-of-type { border-bottom: 1px solid var(--look-line); }
.confirmation-page .record-section > summary,
.confirmation-page .faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 44px; padding: 10px 0; list-style: none; cursor: pointer; }
.confirmation-page .record-section > summary::-webkit-details-marker,
.confirmation-page .faq summary::-webkit-details-marker { display: none; }
.confirmation-page .record-section > summary strong { display: block; font-size: 16px; line-height: 24px; font-weight: 650; }
.confirmation-page .faq summary { font-weight: 600; }
.confirmation-page .record-section > summary svg,
.confirmation-page .faq summary svg { color: var(--town-deep); transition: transform .15s; }
.confirmation-page details[open] > summary svg { transform: rotate(180deg); }

.confirmation-page .application-receipt .application-facts { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px 24px; margin: 0; padding: 4px 0 20px; }
.confirmation-page .application-receipt .application-facts > div { display: block; grid-row: auto; grid-column: auto; min-width: 0; }
.confirmation-page .application-receipt .application-facts dt { margin: 0; padding: 0; font-size: 14px; line-height: 20px; font-weight: 600; color: var(--look-muted); }
.confirmation-page .application-receipt .application-facts dd { min-height: 0; margin: 0; padding: 0; border: 0; background: transparent; font-size: 16px; line-height: 24px; color: var(--look-ink); overflow-wrap: anywhere; }
.confirmation-page .application-receipt .section-electronic-consent .application-facts,
.confirmation-page .application-receipt .section-please-initial .application-facts { grid-template-columns: minmax(0, 1fr); }
.confirmation-page .application-receipt .section-please-initial .application-facts > div { display: grid; grid-template-columns: minmax(0, 1fr) 40px; gap: 12px; }
.confirmation-page .application-receipt .section-please-initial dt { grid-column: 1; }
.confirmation-page .application-receipt .section-please-initial dd { grid-column: 2; }
.confirmation-page .application-summary { margin: 0; padding: 0 0 12px; border: 0; background: transparent; }
.confirmation-page .application-summary h3 { margin: 16px 0 8px; }
.confirmation-page .application-receipt .signing-verification { margin: 8px 0; font-size: 14px; line-height: 20px; color: var(--look-muted); }
.confirmation-page .record-section.application-signing { margin-top: 0; padding: 0; }
.confirmation-page .application-receipt .occupant-card { margin: 0 0 16px; padding: 16px 0 0; border: 0; border-top: 1px solid var(--look-line); border-radius: 0; background: transparent; box-shadow: none; }
.confirmation-page .application-receipt .occupant-card > h3 { margin-bottom: 8px; }

/* Submitted documents */
.confirmation-page .documents { margin-top: 20px; }
.confirmation-page .documents h3 { margin-bottom: 8px; }
.confirmation-page .document-item { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding: 8px 0; border-top: 1px solid var(--look-line); background: transparent; }
.confirmation-page .document-item > svg { color: var(--town-deep); }
.confirmation-page .document-item .document-copy { flex: 1 1 200px; min-width: 0; }
.confirmation-page .document-copy strong { display: block; font-size: 16px; line-height: 24px; font-weight: 600; overflow-wrap: anywhere; }
.confirmation-page .document-copy span { display: block; font-size: 14px; line-height: 20px; color: var(--look-muted); }

/* What happens next */
.confirmation-page .timeline { display: block; margin: 16px 0; padding: 0; list-style: none; }
.confirmation-page .timeline li { display: grid; grid-template-columns: 28px minmax(0, 1fr); column-gap: 12px; padding: 0 0 16px; }
.confirmation-page .timeline li:last-child { padding-bottom: 0; }
.confirmation-page .timeline .number { grid-row: 1 / span 2; position: static; display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; border: 1px solid var(--look-line-strong); border-radius: 50%; background: #fff; font-size: 14px; line-height: 20px; color: var(--look-ink); }
.confirmation-page .timeline h3,
.confirmation-page .timeline p { grid-column: 2; }
.confirmation-page .timeline p { margin-top: 4px; color: var(--look-muted); font-size: 14px; line-height: 20px; }
.confirmation-page .application-receipt .license-note { margin-top: 16px; font-size: 14px; line-height: 20px; color: var(--look-muted); }
.confirmation-page .license-note strong { color: var(--look-ink); font-weight: 600; }

/* Help */
.confirmation-page .help-card h2 { margin-bottom: 8px; }
.confirmation-page .help-card .department { margin-top: 8px; font-weight: 600; color: var(--look-ink); }
.confirmation-page .contact { display: flex; align-items: flex-start; gap: 12px; min-height: 44px; margin-top: 8px; padding: 10px 0; color: var(--town-deep); font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.confirmation-page .contact:hover { text-decoration: underline; }
.confirmation-page .contact svg { margin-top: 3px; }
.confirmation-page .contact small { display: block; font-size: 14px; line-height: 20px; font-weight: 400; color: var(--look-muted); }
.confirmation-page .application-receipt .contact-note { margin-top: 8px; font-size: 14px; line-height: 20px; color: var(--look-muted); }

/* Forms and guidance, FAQs */
.confirmation-page .faq h2 { margin-bottom: 8px; }
.confirmation-page .application-receipt .faq-intro { margin-bottom: 20px; font-size: 14px; line-height: 20px; color: var(--look-muted); }
.confirmation-page .faq details p { padding: 0 0 16px; color: var(--look-ink); }
.confirmation-page .faq-links { display: flex; flex-wrap: wrap; gap: 0 24px; margin-top: 12px; }
.confirmation-page .faq-links a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 600; }

/* Confirmation message */
.confirmation-page .toast { position: fixed; left: 50%; bottom: 24px; z-index: 20; transform: translateX(-50%); max-width: calc(100vw - 32px); padding: 12px 16px; border-radius: 6px; background: var(--look-ink); color: #fff; font-size: 14px; line-height: 20px; text-align: center; box-shadow: none; }
.confirmation-page .toast:empty { display: none; }

@media (min-width: 700px) {
  .confirmation-page .application-receipt .application-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .confirmation-page .application-receipt .section-electronic-consent .application-facts,
  .confirmation-page .application-receipt .section-please-initial .application-facts { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .confirmation-page .steps li { min-height: 56px; }
}
@media (prefers-reduced-motion: reduce) {
  .confirmation-page * { transition: none !important; }
}

@media print {
  .confirmation-page .steps,
  .confirmation-page .success-label,
  .confirmation-page .hero .intro,
  .confirmation-page .property-strip .pill,
  .confirmation-page .payment-card,
  .confirmation-page .payment-note,
  .confirmation-page .save-card,
  .confirmation-page .sidebar,
  .confirmation-page .faq,
  .confirmation-page .icon-button,
  .confirmation-page .text-button,
  .confirmation-page .toast,
  .confirmation-page .site-footer { display: none !important; }
  .confirmation-page .layout { display: block; }
  .confirmation-page .reference-card { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .confirmation-page .reference-number { white-space: normal; }
  .confirmation-page .application-receipt .application-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 20px; }
  .confirmation-page .application-receipt .section-electronic-consent .application-facts,
  .confirmation-page .application-receipt .section-please-initial .application-facts { grid-template-columns: minmax(0, 1fr); }
  .confirmation-page .record-section > summary { break-after: avoid; }
  .confirmation-page .record-section > summary svg { display: none; }
  .confirmation-page .record-section { break-inside: auto; }
  .confirmation-page .document-item,
  .confirmation-page .documents { break-inside: avoid; }
  .confirmation-page .record-section::details-content { display: block !important; content-visibility: visible !important; }
  .confirmation-page .print-only { display: block; margin-top: 20px; font-size: 14px; line-height: 20px; }
}

@media (max-width: 799px) {
  body.applicant-shell { --gutter: 16px; }
  .applicant-shell .application-fields, .applicant-shell .application-facts, .applicant-shell .pet-details,
  .applicant-shell .section-property-owner-signature .application-fields, .applicant-shell .section-property-manager-signature .application-fields,
  .applicant-shell .section-property-owner-signature .application-facts, .applicant-shell .section-property-manager-signature .application-facts { grid-template-columns: minmax(0, 1fr); }
  .applicant-shell .section-additional-information .application-facts > div:nth-child(-n+5) { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  /* Three or more answers under their question run one to a line. */
  .applicant-shell .application-question:not(:has(input[type="checkbox"])) > .field-control > div:has(> div:nth-child(3)) { flex-direction: column; gap: 0; }
  .applicant-shell .application-question:has(input[type="checkbox"]) > .field-control > div { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .applicant-shell .section-documents-and-fees-required .application-field, .applicant-shell .section-please-initial .application-field,
  .applicant-shell .section-documents-and-fees-required .application-facts > div, .applicant-shell .section-please-initial .application-facts > div { grid-template-columns: 3.5rem minmax(0, 1fr); column-gap: 12px; }
}
@media (max-width: 600px) {
  .applicant-shell .site-header { min-height: 80px; }
  .applicant-shell .site-header .brand, .applicant-shell .site-header .identity-text { font-size: 16px; }
  .applicant-shell .site-header nav { order: 4; flex-basis: 100%; }
  .applicant-shell .municipality-seal { max-width: 180px; max-height: 56px; }
  .applicant-shell .application-steps { gap: 2px; }
  .applicant-shell .application-steps a { flex: 0 1 auto; min-width: 0; min-height: 56px; padding: 6px 8px; }
  /* Four or more steps stay on one row: the current step keeps its name, the
     others show their number (or their tick) alone. The names stay in the
     page for assistive technology (DS, 2026-11-14). */
  .applicant-shell .application-steps:has(a:nth-child(4)) a { position: relative; flex: 0 0 auto; min-width: 44px; justify-content: center; padding: 6px 12px; }
  .applicant-shell .application-steps:has(a:nth-child(4)) a[aria-current] { flex: 0 1 auto; text-wrap: balance; }
  .applicant-shell .application-steps:has(a:nth-child(4)) a:not([aria-current]) .step-label { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
  .confirmation-page .steps:has(li:nth-child(3)) { flex-wrap: nowrap; gap: 2px; }
  .confirmation-page .steps:has(li:nth-child(3)) li { position: relative; flex: 0 0 auto; padding: 8px 6px; }
  .confirmation-page .steps:has(li:nth-child(3)) li[aria-current] { flex: 0 1 auto; padding: 8px 12px; }
  .confirmation-page .steps:has(li:nth-child(3)) li:not([aria-current]) .step-label { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
  .applicant-shell .application-question:has(input[type="checkbox"]) > .field-control > div { gap: 0 12px; }
  .applicant-shell .application-question:has(input[type="checkbox"]) label { gap: 10px; font-size: 15px; }
  .applicant-shell .application-actions > button, .applicant-shell .application-actions > .button, .applicant-shell .application-actions > a { flex: 1 1 100%; margin-right: 0; }
  .applicant-shell .panel form > button { width: 100%; }
  .applicant-shell .occupant-card { padding: 20px 12px 12px; }
  .applicant-shell .party-box { padding: 12px 12px 16px; }
  .applicant-shell .party-fields { grid-template-columns: minmax(0, 1fr); }
  .applicant-shell .party-fields > .application-field, .applicant-shell .party-fields > .party-name, .applicant-shell .party-fields > .party-address_line1, .applicant-shell .party-fields > .party-state, .applicant-shell .party-fields > .party-zip_code { grid-column: auto; }
}
@media (max-width: 360px) {
  /* A wide seal leaves the title room for its longest word. */
  .applicant-shell .municipality-seal { max-width: 132px; }
  /* The longest step label gives way first, so the others stay on one line. */
  .applicant-shell .application-steps:not(:has(a:nth-child(4))) a { flex: 0 0 auto; padding: 6px; font-size: 13.5px; }
  .applicant-shell .application-steps:not(:has(a:nth-child(4))) a:last-child { flex: 0 1 auto; text-wrap: balance; }
  .confirmation-page .reference-number { font-size: 19px; }
}
@media print {
  .applicant-shell .site-header nav, .applicant-shell .application-actions, .applicant-shell .application-steps, .applicant-shell .skip-link, .applicant-shell .access-slip { display: none !important; }
  .applicant-shell main { max-width: none; padding: 0; }
  .applicant-shell .site-header { padding: 0 0 12px; }
  .applicant-shell .application-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .applicant-shell .application-summary { break-inside: auto; }
  .applicant-shell .application-summary h2, .applicant-shell .application-summary h3 { break-after: avoid; }
  .applicant-shell .application-facts > div, .applicant-shell .occupant-row { break-inside: avoid; }
}
