.application-page {
  min-height: 100vh;
  background:
    linear-gradient(rgba(82, 39, 32, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(82, 39, 32, 0.035) 1px, transparent 1px),
    var(--surface-soft);
  background-size: 2rem 2rem;
}

.subpage-header {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 248, 233, 0.97);
}

.subpage-header__inner {
  display: flex;
  min-height: 5.5rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.back-link {
  color: var(--brick);
  font-weight: 800;
  text-decoration: none;
}

.application-hero {
  padding-block: clamp(3rem, 8vw, 6rem) 2.5rem;
}

.application-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(16rem, 0.65fr);
  gap: 2rem;
  align-items: end;
}

.application-hero h1 {
  max-width: 14ch;
  margin-bottom: 1rem;
  color: var(--brick-dark);
  font-size: clamp(2.8rem, 7vw, 5.5rem);
}

.application-summary {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  background: var(--white);
}

.application-summary strong {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--brick-dark);
}

.application-layout {
  display: grid;
  grid-template-columns: minmax(13rem, 0.28fr) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
  padding-bottom: 5rem;
}

.application-sidebar {
  position: sticky;
  top: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1rem;
  background: var(--white);
}

.application-sidebar strong {
  display: block;
  margin-bottom: 0.75rem;
}

.application-sidebar ol {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding-left: 1.25rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.form-shell {
  display: grid;
  gap: 1rem;
}

.form-notice {
  border-left: 0.35rem solid var(--butter);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1rem 1.1rem;
  background: #fff4cd;
  color: var(--brick-dark);
}

.form-section {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: clamp(1.2rem, 4vw, 2rem);
  background: var(--white);
  box-shadow: 0 0.5rem 1.5rem rgba(45, 41, 38, 0.04);
}

.form-section__header {
  display: flex;
  flex-wrap: wrap;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.4rem;
}

.form-section__header > * {
  min-width: 0;
}

.form-section__header span {
  display: inline-flex;
  flex: none;
  min-width: 2.35rem;
  height: 2.35rem;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--cream-deep);
  color: var(--brick);
  font-weight: 900;
}

.form-section h2 {
  margin-bottom: 0.3rem;
  font-size: clamp(1.65rem, 4vw, 2.4rem);
}

.form-section p {
  margin-bottom: 0;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.field {
  display: grid;
  gap: 0.35rem;
}

.field--full {
  grid-column: 1 / -1;
}

.field label,
.field > span {
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 800;
}

.field input:not([type="checkbox"]):not([type="radio"]),
.field select,
.field textarea {
  width: 100%;
  border: 1px solid #cfc2b2;
  border-radius: var(--radius-sm);
  padding: 0.78rem 0.85rem;
  background: #fffefb;
  color: var(--ink);
}

.field textarea {
  min-height: 7rem;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--blue);
  outline: 3px solid rgba(45, 111, 141, 0.14);
}


.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1rem;
  background: var(--white);
}

.form-actions p {
  margin: 0;
  font-size: 0.85rem;
}

.form-actions button[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
}

.dashboard-shell {
  min-height: 100vh;
  background: #eef2f4;
}

.dashboard-header {
  background: var(--blue-dark);
  color: var(--white);
}

.dashboard-header__inner {
  display: flex;
  min-height: 5rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.dashboard-header a {
  color: var(--cream);
  text-decoration: none;
}

.dashboard-main {
  padding-block: 3rem 5rem;
}

.dashboard-intro {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
  margin-bottom: 2rem;
}

.dashboard-intro h1 {
  margin-bottom: 0.5rem;
  color: var(--brick-dark);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.dashboard-card {
  min-height: 10rem;
  border: 1px solid #d8e0e4;
  border-radius: var(--radius-md);
  padding: 1.2rem;
  background: var(--white);
}

.dashboard-card h2 {
  margin-bottom: 0.5rem;
  font-family: var(--font-body);
  font-size: 1.1rem;
  letter-spacing: 0;
}

.dashboard-card--wide {
  grid-column: span 2;
}

@media (max-width: 850px) {
  .application-hero__grid,
  .application-layout,
  .dashboard-intro,
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .application-sidebar {
    position: static;
  }

  .dashboard-card--wide {
    grid-column: auto;
  }
}

@media (max-width: 620px) {
  .field-grid {
    grid-template-columns: 1fr;
  }

  .field--full {
    grid-column: auto;
  }

  .subpage-header__inner {
    align-items: flex-start;
    flex-direction: column;
    padding-block: 1rem;
  }
}


.subpage-actions,
.toolbar-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem;
}

.application-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem 2rem;
  align-items: center;
  margin-bottom: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.2rem;
  background: var(--white);
  box-shadow: 0 0.5rem 1.5rem rgba(45, 41, 38, 0.05);
}

.application-toolbar p {
  margin: 0;
}

.toolbar-message {
  grid-column: 1 / -1;
  min-height: 1.3rem;
  margin: 0;
  font-weight: 700;
}

.toolbar-message[data-message-type="success"] {
  color: #315e36;
}

.toolbar-message[data-message-type="error"] {
  color: #9b2929;
}

.parent-packet {
  display: grid;
  gap: 1.5rem;
  padding-bottom: 5rem;
}

.print-page {
  position: relative;
}

.packet-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
  /* The title has to be allowed to shrink, or the round page number beside it
     is pushed off a narrow screen. */
  flex-wrap: wrap;
  margin-bottom: 1.4rem;
  border-bottom: 3px solid var(--brick);
  padding-bottom: 0.8rem;
}

.packet-heading > * {
  min-width: 0;
}

.packet-heading h2 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
}

.packet-kicker {
  margin-bottom: 0.2rem;
  color: var(--brick);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.packet-page-number {
  display: grid;
  flex: none;
  min-width: 2.5rem;
  height: 2.5rem;
  place-items: center;
  border-radius: 50%;
  background: var(--brick);
  color: var(--white);
  font-weight: 900;
}

.field-grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.field--two-columns {
  grid-column: span 2;
}

.choice-field {
  display: flex;
  flex-wrap: wrap;
  align-content: start;
  gap: 0.6rem 1.2rem;
  min-width: 0;
  margin: 0;
  border: 1px solid #cfc2b2;
  border-radius: var(--radius-sm);
  padding: 0.8rem;
}

.choice-field legend {
  width: auto;
  padding-inline: 0.2rem;
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 800;
}

.choice-field label,
.document-checklist label,
.transport-options label,
.acknowledgement-line,
.final-checklist label,
.check-card {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
}

/* Each of these labels is a flex row, so an input left at its default width
   stretches the whole row. Text inputs need the `auto`; check boxes and radios
   must not get it, because it drops them back to the browser's 13px default
   and undoes the tap size set globally. */
.choice-field input:not([type="checkbox"]):not([type="radio"]),
.document-checklist input:not([type="checkbox"]):not([type="radio"]),
.transport-options input:not([type="checkbox"]):not([type="radio"]),
.acknowledgement-line input:not([type="checkbox"]):not([type="radio"]),
.final-checklist input:not([type="checkbox"]):not([type="radio"]),
.check-card input:not([type="checkbox"]):not([type="radio"]) {
  width: auto;
  margin-top: 0.2rem;
}

.person-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.person-card {
  min-width: 0;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1rem;
}

.person-card legend {
  padding-inline: 0.4rem;
  color: var(--brick-dark);
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
}

.subsection-title {
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--brick-dark);
  font-family: var(--font-display);
  font-size: 1.45rem;
}

.repeat-heading {
  display: grid;
  grid-template-columns: 1fr 0.4fr;
  gap: 1rem;
  margin-bottom: 1.3rem;
}

.repeat-heading div {
  display: grid;
  gap: 0.25rem;
}

.repeat-heading label {
  font-size: 0.78rem;
  font-weight: 800;
}

.repeat-heading input {
  width: 100%;
  border: 0;
  border-bottom: 1px solid #555;
  border-radius: 0;
  padding: 0.35rem 0.2rem;
  background: transparent;
}

.table-scroll {
  overflow-x: auto;
}

.table-scroll:focus-visible {
  outline: 3px solid var(--butter);
  outline-offset: 4px;
}

/* The wide tables keep a min-width so their columns stay usable, which means
   they scroll sideways on a phone. Say so, or the right-hand columns look
   simply missing. Sticky so the hint stays put while the table scrolls. */
.table-scroll[data-scrollable]::before {
  content: "Scroll sideways to see every column.";
  position: sticky;
  left: 0;
  display: block;
  padding-bottom: 0.35rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.form-table {
  width: 100%;
  min-width: 640px;
  table-layout: fixed;
  border-collapse: collapse;
  background: var(--white);
}

.form-table th,
.form-table td {
  border: 1px solid #81766e;
  padding: 0.35rem;
  text-align: left;
  vertical-align: middle;
}

.form-table th {
  background: #f2e7d8;
  color: var(--ink);
  font-size: 0.78rem;
}

.form-table input,
.form-table select {
  width: 100%;
  min-width: 0;
  border: 0;
  border-radius: 0;
  padding: 0.4rem;
  background: transparent;
}

.form-table input[type="checkbox"],
.form-table input[type="radio"] {
  /* 24px is the WCAG 2.2 floor and a thumb wants every pixel of it. These
     were 1rem, which reads fine on a desktop and is a miserable target on
     the phone most parents actually fill this in on. */
  width: 1.5rem;
  height: 1.5rem;
  margin-inline: auto;
}

.parent-packet .form-table:not(.schedule-table):not(.permission-table) {
  min-width: 780px;
}

.schedule-table th:first-child {
  /* Wide enough for "Wednesday" at the narrowest the table ever gets. */
  width: 17%;
}

.schedule-table td:nth-child(2) {
  width: 10%;
  text-align: center;
}

.section-instruction,
.legal-note {
  border-left: 0.35rem solid var(--butter);
  padding-left: 0.8rem;
}

.legal-note {
  margin-top: 1rem;
  color: var(--ink);
  font-size: 0.82rem;
}

.document-checklist,
.transport-options,
.final-checklist {
  display: grid;
  gap: 0.65rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1rem;
  background: #fcf8f1;
}

.selected-file-name {
  min-height: 1.2rem;
  color: var(--blue-dark);
  font-size: 0.78rem;
  font-weight: 700;
}

.permission-block,
.source-reference,
.official-pdf-callout {
  margin-bottom: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1rem;
  background: #fcf8f1;
}

.permission-block h3,
.source-reference h3,
.official-pdf-callout h3 {
  margin-bottom: 0.5rem;
}

.permission-block p {
  color: var(--ink);
  font-size: 0.9rem;
}

.acknowledgement-line {
  border-top: 1px solid var(--line);
  padding-top: 0.75rem;
  color: var(--brick-dark);
  font-weight: 800;
}

.parent-rights {
  color: var(--ink);
  font-size: 0.9rem;
}

.permission-table th:first-child {
  width: 62%;
}

.permission-table th:not(:first-child) {
  width: 12.66%;
  text-align: center;
}

.permission-table td:not(:first-child) {
  text-align: center;
}

.legal-copy {
  color: var(--ink);
}

.inline-input {
  display: inline-block;
  width: 14rem;
  border: 0;
  border-bottom: 1px solid #555;
  border-radius: 0;
  padding: 0.15rem;
  background: transparent;
}

.signature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}


.final-checklist {
  margin-top: 1.5rem;
}

.form-actions {
  margin-bottom: 2rem;
}

.lunch-packet .print-page {
  overflow: visible;
}

/* Eight columns under `table-layout: fixed; width: 100%` means every column
   is an eighth of the viewport, so on a phone the name fields collapse to
   roughly 45px and the row becomes unusable. A min-width lets the wrapping
   .table-scroll do its job instead, matching .income-table below. */
.lunch-children-table {
  min-width: 780px;
}

.lunch-children-table th:nth-child(1),
.lunch-children-table th:nth-child(3) {
  width: 18%;
}

.lunch-children-table th:nth-child(2),
.lunch-children-table th:nth-child(4) {
  width: 7%;
}

.lunch-children-table th:nth-child(n + 5) {
  width: 12%;
  text-align: center;
}

.income-table {
  min-width: 1100px;
}

.income-table th:first-child {
  width: 16%;
}

.income-table th:nth-child(2),
.income-table th:nth-child(4),
.income-table th:nth-child(6) {
  width: 14%;
}

.income-table th:nth-child(3),
.income-table th:nth-child(5),
.income-table th:nth-child(7) {
  width: 10%;
}

.check-card {
  align-self: end;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.8rem;
  background: #fcf8f1;
}

.source-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.source-columns h4 {
  margin-bottom: 0.4rem;
}

.source-columns ul {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.82rem;
}

.official-pdf-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: #e5f0f4;
}

.application-card--lunch {
  border-top: 0.45rem solid var(--green);
}

.application-card--lunch .application-card__icon {
  background: #e0eadf;
  color: var(--green);
}

@media (max-width: 1050px) {
  .person-grid {
    grid-template-columns: 1fr;
  }

  .field-grid--three,
  .signature-grid,
  .source-columns {
    grid-template-columns: 1fr 1fr;
  }

  .field--two-columns {
    grid-column: auto;
  }
}

@media (max-width: 760px) {
  .application-toolbar,
  .field-grid--three,
  .signature-grid,
  .source-columns,
  .repeat-heading {
    grid-template-columns: 1fr;
  }

  .subpage-actions,
  .toolbar-buttons {
    align-items: stretch;
    flex-direction: column;
  }

  .toolbar-buttons .button {
    width: 100%;
  }
}

@media print {
  @page {
    size: letter portrait;
    margin: 0.42in;
  }

  * {
    box-shadow: none !important;
    text-shadow: none !important;
  }

  html,
  body {
    background: #fff !important;
    color: #000 !important;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 9pt;
    line-height: 1.3;
  }

  body {
    min-width: 0;
  }

  .no-print,
  .site-footer,
  .subpage-header,
  .application-hero,
  .application-toolbar,
  .form-actions {
    display: none !important;
  }

  .container,
  .parent-packet {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .parent-packet {
    display: block;
  }

  .print-page {
    width: 100%;
    min-height: 9.7in;
    margin: 0;
    border: 0;
    border-radius: 0;
    padding: 0;
    background: #fff !important;
    break-after: page;
    page-break-after: always;
  }

  .print-page:last-of-type {
    break-after: auto;
    page-break-after: auto;
  }

  .packet-heading {
    margin-bottom: 0.14in;
    border-bottom-width: 2px;
    padding-bottom: 0.06in;
  }

  .packet-heading h2 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 16pt;
  }

  .packet-kicker {
    font-size: 6.5pt;
  }

  .packet-page-number {
    min-width: 0.28in;
    height: 0.28in;
    background: #fff;
    color: #000;
    border: 1px solid #000;
    font-size: 8pt;
  }

  h3,
  .subsection-title {
    color: #000 !important;
    font-size: 11pt;
  }

  p,
  li,
  label,
  legend {
    color: #000 !important;
  }

  .field-grid,
  .field-grid--three,
  .person-grid,
  .signature-grid,
  .source-columns {
    gap: 0.08in;
  }

  .field {
    gap: 0.02in;
  }

  .field label,
  .field > span,
  .repeat-heading label {
    font-size: 7pt;
  }

  input,
  select,
  textarea {
    color: #000 !important;
    background: #fff !important;
    border-color: #000 !important;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  input[type="file"] {
    display: none;
  }

  input,
  select {
    min-height: 0.23in;
    padding: 0.03in 0.04in !important;
  }

  textarea {
    min-height: 0.36in;
    padding: 0.04in !important;
    resize: none;
  }

  .person-card,
  .permission-block,
  .source-reference,
  .choice-field,
  .document-checklist,
  .transport-options,
  .final-checklist {
    break-inside: avoid;
    border-color: #000;
    background: #fff !important;
    padding: 0.07in;
  }

  .person-card legend {
    color: #000;
    font-size: 9pt;
  }

  .subsection-title {
    margin-top: 0.12in;
    margin-bottom: 0.06in;
  }

  .repeat-heading {
    margin-bottom: 0.08in;
  }

  .form-table {
    font-size: 7pt;
  }

  .form-table th,
  .form-table td {
    border-color: #000;
    padding: 0.02in;
  }

  .form-table th {
    background: #eee !important;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  .form-table input,
  .form-table select {
    min-height: 0.2in;
    padding: 0.01in !important;
  }

  .table-scroll {
    overflow: visible;
  }

  /* No sideways scrolling on paper, so the phone floor has to come off or the
     right-hand columns run off the sheet. */
  .form-table,
  .parent-packet .form-table:not(.schedule-table):not(.permission-table) {
    min-width: 0;
  }

  /* Both wide tables drop their scroll min-width for print, or the right-hand
     columns fall off the page. */
  .income-table,
  .lunch-children-table {
    min-width: 0;
    table-layout: fixed;
    font-size: 5.8pt;
  }

  .income-table th,
  .income-table td {
    padding: 0.01in;
  }

  .income-table input,
  .income-table select {
    font-size: 5.8pt;
  }

  .legal-note,
  .section-instruction {
    border-left-width: 2px;
    font-size: 7pt;
  }

  .permission-block p,
  .parent-rights,
  .legal-copy {
    font-size: 7.5pt;
  }

  .inline-input {
    width: 1.8in;
  }

  .selected-file-name:empty::after {
    content: "No electronic file selected";
    color: #444;
  }

  .selected-file-name {
    font-size: 6.5pt;
  }

  .lunch-packet {
    page: lunch-form;
  }

  @page lunch-form {
    size: letter landscape;
    margin: 0.35in;
  }

  .lunch-packet .print-page {
    min-height: 7.55in;
  }
}


.employment-packet {
  display: grid;
  gap: 1rem;
  padding-bottom: 5rem;
}

.employment-application-page .application-hero {
  padding-bottom: 1.5rem;
}

@media print {
  .employment-packet {
    display: block;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
  }

  .employment-packet .print-page {
    min-height: 9.7in;
    padding: 0;
  }

  .employment-packet .form-section__header {
    margin-bottom: 0.1in;
    border-bottom: 2px solid #000;
    padding-bottom: 0.05in;
  }

  .employment-packet .form-section__header h2 {
    font-size: 15pt;
  }
}


.signature-capture {
  margin-top: 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: clamp(1rem, 3vw, 1.35rem);
  background: #fffdf8;
  break-inside: avoid;
}

.signature-capture__heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
}

.signature-capture__heading h3 {
  margin-bottom: 0.3rem;
  color: var(--brick-dark);
  font-family: var(--font-display);
}

.signature-capture__heading p {
  margin-bottom: 0;
  font-size: 0.88rem;
}

.signature-clear {
  flex: 0 0 auto;
  border: 1px solid #cbbdac;
  border-radius: 999px;
  padding: 0.45rem 0.7rem;
  background: var(--white);
  color: var(--brick);
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 850;
}

.signature-clear:hover {
  border-color: var(--brick);
}

.signature-canvas-wrap {
  position: relative;
  overflow: hidden;
  border: 1px solid #8c8178;
  border-radius: var(--radius-sm);
  background: var(--white);
}

.signature-canvas {
  display: block;
  width: 100%;
  height: 10rem;
  touch-action: none;
  cursor: crosshair;
}

.signature-line-label {
  position: absolute;
  right: 0.8rem;
  bottom: 0.35rem;
  left: 0.8rem;
  border-top: 1px solid #71675f;
  padding-top: 0.2rem;
  color: var(--muted);
  font-size: 0.66rem;
  text-align: right;
  pointer-events: none;
}

.signature-meta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(10rem, 0.35fr);
  gap: 1rem;
  margin-top: 0.8rem;
}

.signature-status {
  margin: 0.55rem 0 0;
  color: #8a332b;
  font-size: 0.76rem;
  font-weight: 750;
}

.signature-capture.is-signed .signature-status {
  color: #315e36;
}

.enrollment-dates {
  margin-top: 1rem;
}

@media (max-width: 680px) {
  .signature-capture__heading,
  .signature-meta {
    grid-template-columns: 1fr;
  }

  .signature-capture__heading {
    align-items: stretch;
    flex-direction: column;
  }

  .signature-clear {
    width: fit-content;
  }
}

@media print {
  .signature-capture {
    margin-top: 0.1in;
    border-color: #000;
    padding: 0.08in;
    background: #fff !important;
  }

  .signature-capture__heading {
    margin-bottom: 0.05in;
  }

  .signature-capture__heading h3 {
    color: #000;
    font-size: 10pt;
  }

  .signature-capture__heading p,
  .signature-status {
    display: none !important;
  }

  .signature-canvas-wrap {
    border-color: #000;
  }

  .signature-canvas {
    height: 0.9in;
  }

  .signature-meta {
    grid-template-columns: 1fr 0.35fr;
    gap: 0.08in;
    margin-top: 0.05in;
  }

  .signature-line-label {
    color: #000;
    font-size: 6pt;
  }
}

/* ---- Meal benefits: the in-person page ----------------------------------
   The online government form is gone; this page is a checklist for the visit.
   Generous measure and spacing - the old tools bar crushed everything left. */

.lunch-application-page .section-shell .container {
  max-width: 46rem;
}

.meal-checklist {
  margin: 1.2rem 0 2rem;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.9rem;
}

.meal-checklist li {
  position: relative;
  padding: 1rem 1.2rem 1rem 3.1rem;
  border: 1px solid var(--line, #ddd5cf);
  border-radius: 0.9rem;
  background: var(--white, #fff);
  line-height: 1.55;
}

.meal-checklist li::before {
  content: "✓";
  position: absolute;
  left: 1.05rem;
  top: 0.95rem;
  width: 1.45rem;
  height: 1.45rem;
  border-radius: 50%;
  background: #2e6b46;
  color: #fff;
  font-weight: 700;
  display: grid;
  place-items: center;
  font-size: 0.85rem;
}

.meal-checklist strong {
  display: block;
  margin-bottom: 0.15rem;
}

.meal-fyi {
  margin: 0 0 2rem;
  padding: 1.2rem 1.4rem;
  border-left: 4px solid var(--brick, #8f3f32);
  border-radius: 0.6rem;
  background: rgba(143, 63, 50, 0.06);
}

.meal-fyi h2 {
  margin-top: 0;
  font-size: 1.05rem;
}

.meal-fyi ul {
  margin: 0.4rem 0 0;
  padding-left: 1.1rem;
  line-height: 1.6;
}

.meal-fyi li + li {
  margin-top: 0.45rem;
}

.meal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1.4rem;
}

.meal-footnote {
  color: var(--muted, #6d655f);
}

.meal-form-preview {
  margin-top: 2.4rem;
}

.meal-sign-notice {
  padding: 1rem 1.2rem;
  border: 2px solid var(--brick, #8f3f32);
  border-radius: 0.8rem;
  background: #fff;
  line-height: 1.55;
}

.meal-form-embed {
  width: 100%;
  /* The form is landscape; keep the viewer usable without dwarfing the page. */
  height: min(75vh, 40rem);
  margin-top: 1rem;
  border: 1px solid var(--line, #ddd5cf);
  border-radius: 0.6rem;
}

/* ---- Employment credentials ---------------------------------------------- */

.credential-item {
  border: 1px solid var(--line, #ddd5cf);
  border-radius: 0.8rem;
  padding: 1rem 1.1rem;
  background: #fff;
}

.credential-item > label:first-child {
  font-weight: 700;
}

.credential-attach {
  display: block;
  margin-top: 0.6rem;
  font-size: 0.85rem;
  color: var(--muted, #6d655f);
}

.credential-attach input[type="file"] {
  display: block;
  margin-top: 0.3rem;
}
