/* Venice Avenue Creamery — Job Application Page Styles
   Built on top of site.css design tokens (--paper, --ink, --pink, --blush, --line, --serif, --sans) */

:root {
  --warm: #f7f0df;
  --sage-soft: #e4ead6;
  --sage-tint: #eef3e5;
  --blush-soft: #f6e4e7;
  --muted: #48574a;
  --muted-soft: #637164;
  --border-soft: #dcd7c4;
  --error: #a6264a;
  --error-bg: #fdf1f4;
  --success: #245742;
  --success-bg: #ebf4ee;
  --radius-card: 20px;
  --radius-input: 12px;
  --shadow-card: 0 2px 10px rgba(33, 63, 50, 0.045);
}

[hidden] {
  display: none !important;
}

html {
  scroll-padding-top: 96px;
}

/* Header active state for Careers CTA */
.nav .btn[aria-current="page"] {
  box-shadow: 0 0 0 3px var(--paper), 0 0 0 5px var(--pink);
}

/* Intro banner matching menu.html & story.html */
.apply-intro {
  background: var(--warm);
  border-bottom: 1px solid var(--line);
  padding: clamp(36px, 4.5vw, 56px) 0;
}

.apply-intro-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}

.apply-intro .eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #6a704e;
}

.apply-intro .eyebrow::before {
  content: '';
  display: block;
  width: 27px;
  height: 1px;
  background: currentColor;
}

.apply-intro h1 {
  font-size: clamp(44px, 5.8vw, 82px);
  line-height: 0.96;
  letter-spacing: -0.05em;
  margin: 14px 0 18px;
}

.apply-intro h1 i {
  font-style: italic;
  color: var(--pink);
}

.apply-intro-copy > p:not(.eyebrow) {
  font-size: clamp(16px, 1.3vw, 18px);
  color: var(--muted);
  max-width: 58ch;
}

.intro-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.intro-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--border-soft);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

.intro-pill svg {
  width: 15px;
  height: 15px;
  color: var(--pink);
  flex-shrink: 0;
}

.apply-intro-art {
  position: relative;
  margin: 0;
}

.apply-intro-art > img {
  width: 100%;
  height: clamp(210px, 22vw, 290px);
  object-fit: cover;
  border-radius: 140px 140px 16px 16px;
  border: 1.5px solid #294333;
  box-shadow: 0 10px 24px rgba(33, 63, 50, 0.1);
}

.intro-logo-badge {
  position: absolute;
  left: -18px;
  bottom: -14px;
  background: #ffffff;
  border: 2px solid #6b9c5c;
  outline: 4px solid var(--warm);
  border-radius: 50%;
  width: 96px;
  height: 96px;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 16px rgba(33, 63, 50, 0.16);
  transform: rotate(-7deg);
}

.intro-logo-badge img {
  height: 76px;
  width: auto;
  object-fit: contain;
}

.confirm-brand-logo {
  height: 82px;
  width: auto;
  margin: 0 auto 14px;
  object-fit: contain;
}

/* Mobile sticky progress bar */
.mobile-progress {
  display: none;
  position: sticky;
  top: 0;
  z-index: 3;
  background: rgba(255, 250, 241, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
}

.mobile-progress-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  font-weight: 600;
}

.mobile-progress-bar {
  height: 5px;
  border-radius: 999px;
  background: #e7e1cf;
  overflow: hidden;
  margin-top: 8px;
}

.mobile-progress-fill {
  height: 100%;
  width: 0;
  background: var(--pink);
  border-radius: 999px;
  transition: width 0.25s ease;
}

/* Main workspace grid: sidebar + form */
.apply-workspace {
  padding-block: clamp(32px, 4.5vw, 56px) clamp(56px, 7vw, 88px);
}

.apply-layout {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}

/* Sidebar */
.apply-sidebar {
  position: sticky;
  top: 24px;
  display: grid;
  gap: 18px;
}

.sidebar-card {
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-card);
  padding: 20px;
  box-shadow: var(--shadow-card);
}

.sidebar-progress-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.sidebar-progress-head strong {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
}

.sidebar-progress-head span {
  font-size: 13px;
  font-weight: 600;
  color: var(--pink);
}

.progress-track {
  height: 7px;
  background: #ece6d5;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 16px;
}

.progress-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--leaf), var(--pink));
  border-radius: 999px;
  transition: width 0.3s ease;
}

.section-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
}

.section-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 11px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  transition: background 0.15s, color 0.15s;
}

.section-nav a:hover {
  background: var(--warm);
  color: var(--ink);
}

.section-nav a.is-active {
  background: var(--sage-tint);
  color: var(--ink);
  font-weight: 700;
}

.nav-step-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
  background: var(--warm);
  color: var(--ink);
  border: 1px solid var(--border-soft);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.section-nav a.is-active .nav-step-dot {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.section-nav a.is-complete .nav-step-dot {
  background: var(--success);
  color: #fff;
  border-color: var(--success);
}

.draft-status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #eae4d4;
  font-size: 12.5px;
  color: var(--muted-soft);
}

.draft-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #8aa37c;
  flex-shrink: 0;
}

.sidebar-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}

.sidebar-info {
  background: var(--sage-soft);
  border-color: #cbd5bc;
}

.sidebar-info h2 {
  font-size: 22px;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.next-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
  font-size: 13.5px;
  color: var(--muted);
}

.next-steps li {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 8px;
  align-items: start;
}

.next-steps strong {
  color: var(--ink);
}

.next-steps-num {
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.2;
  color: var(--pink);
}

.sidebar-contact {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #c5d0b5;
  font-size: 13px;
  color: var(--muted);
}

.sidebar-contact a {
  font-weight: 600;
  text-underline-offset: 3px;
}

/* Main Form Column */
.form-stack {
  display: grid;
  gap: 24px;
  min-width: 0;
}

.form-card {
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-card);
  padding: clamp(22px, 3.2vw, 36px);
  box-shadow: var(--shadow-card);
  min-width: 0;
  max-width: 100%;
}

.card-head {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding-bottom: 20px;
  margin-bottom: 24px;
  border-bottom: 1px solid #eae4d4;
}

.step-badge {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font: 400 21px/1 var(--serif);
  flex-shrink: 0;
  background: var(--blush-soft);
  color: #822b4d;
  border: 1px solid #e8c3cc;
}

.form-card:nth-of-type(even) .step-badge {
  background: var(--sage-soft);
  color: var(--ink);
  border-color: #c7d4b8;
}

.card-head h2 {
  font-size: clamp(26px, 2.5vw, 32px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin-bottom: 5px;
}

.card-head p {
  font-size: 14.5px;
  color: var(--muted);
}

/* Grid & Fields */
.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 20px;
}

.field-grid-3 {
  display: grid;
  grid-template-columns: 1.5fr 0.7fr 0.9fr;
  gap: 18px 16px;
}

.field-span-2 {
  grid-column: 1 / -1;
}

.field-block {
  margin-top: 24px;
}

.field-block + fieldset,
fieldset + fieldset {
  margin-top: 24px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}

.field-label,
.group-legend {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.35;
}

.field-hint {
  display: block;
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted-soft);
  margin: -2px 0 3px;
}

.clean-group > .field-hint {
  margin: -4px 0 12px;
}

.req-mark {
  color: var(--pink);
  font-weight: 700;
  margin-left: 2px;
}

fieldset.clean-group {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}

fieldset.clean-group > legend {
  padding: 0;
  margin-bottom: 10px;
  width: 100%;
}

/* Inputs, Selects, Textareas */
input[type="text"],
input[type="tel"],
input[type="email"],
input[type="date"],
select,
textarea {
  font: 400 15.5px/1.45 var(--sans);
  color: var(--ink);
  background: #ffffff;
  border: 1.5px solid #d5ceba;
  border-radius: var(--radius-input);
  padding: 11px 14px;
  width: 100%;
  min-height: 46px;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

select {
  background-color: #ffffff;
  cursor: pointer;
}

textarea {
  resize: vertical;
  min-height: 100px;
}

input::placeholder,
textarea::placeholder {
  color: #889085;
}

input:hover:not(:disabled),
select:hover:not(:disabled),
textarea:hover:not(:disabled) {
  border-color: #9ba892;
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(33, 63, 50, 0.14);
}

.field.has-error input,
.field.has-error select,
.field.has-error textarea,
.clean-group.has-error .role-card,
.clean-group.has-error .pill-choice {
  border-color: var(--error);
  background: var(--error-bg);
}

.field-error {
  font-size: 13px;
  font-weight: 600;
  color: var(--error);
  display: none;
  align-items: center;
  gap: 5px;
  margin-top: 2px;
}

.has-error > .field-error,
.field-error.is-visible {
  display: flex;
}

/* Role Cards */
.role-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.role-card {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 13px 15px;
  border: 1.5px solid #d5ceba;
  border-radius: 14px;
  background: #ffffff;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}

.role-card:hover {
  border-color: #8ea184;
  background: #fcfaf4;
}

.role-card:has(input:checked) {
  border-color: var(--ink);
  background: var(--sage-tint);
  box-shadow: 0 0 0 1px var(--ink);
}

.role-card input {
  width: 19px;
  height: 19px;
  margin: 2px 0 0;
  accent-color: var(--ink);
  flex-shrink: 0;
  cursor: pointer;
}

.role-card strong {
  display: block;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.25;
}

.role-card small {
  display: block;
  font-size: 12.5px;
  color: var(--muted-soft);
  margin-top: 2px;
  line-height: 1.35;
}

/* Pill Radio Choices */
.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill-choice {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 16px;
  border: 1.5px solid #d5ceba;
  border-radius: 999px;
  background: #ffffff;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.pill-choice:hover {
  border-color: #8ea184;
}

.pill-choice:has(input:checked) {
  border-color: var(--ink);
  background: var(--sage-tint);
  box-shadow: 0 0 0 1px var(--ink);
}

.pill-choice input {
  width: 17px;
  height: 17px;
  margin: 0;
  accent-color: var(--ink);
  cursor: pointer;
}

/* Weekly Shift Matrix */
.week-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.quick-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip-btn {
  font: 600 13px/1 var(--sans);
  padding: 8px 13px;
  border-radius: 999px;
  border: 1px solid #c7c4ae;
  background: var(--warm);
  color: var(--ink);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.chip-btn:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.chip-btn.is-subtle {
  background: transparent;
  color: var(--muted);
}

.chip-btn.is-subtle:hover {
  background: var(--blush-soft);
  border-color: #dfb2be;
  color: var(--error);
}

.week-table-wrap {
  border: 1px solid #dfd8c6;
  border-radius: 16px;
  overflow-x: auto;
  background: #ffffff;
}

.week-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.week-table thead th {
  background: var(--warm);
  padding: 12px 6px;
  font-weight: 700;
  color: var(--ink);
  text-align: center;
  border-bottom: 1px solid #dfd8c6;
}

.week-table thead th:first-child {
  text-align: left;
  padding-left: 16px;
}

.week-table thead small {
  display: block;
  font-weight: 500;
  font-size: 11.5px;
  color: var(--muted-soft);
  margin-top: 2px;
}

.week-table tbody tr {
  border-bottom: 1px solid #eee9dc;
}

.week-table tbody tr:last-child {
  border-bottom: 0;
}

.week-table tbody th {
  text-align: left;
  padding: 8px 10px 8px 16px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}

.week-table tbody td {
  padding: 6px 5px;
  text-align: center;
}

.shift-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border-radius: 10px;
  border: 1.5px solid #e4decb;
  background: #fdfcf9;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.shift-toggle:hover {
  border-color: #9ba892;
  background: var(--warm);
}

.shift-toggle:has(input:checked) {
  background: var(--sage-tint);
  border-color: var(--ink);
}

.shift-toggle.is-open:has(input:checked) {
  background: var(--blush-soft);
  border-color: var(--pink);
}

.shift-toggle input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--ink);
  cursor: pointer;
}

.shift-toggle.is-open input {
  accent-color: var(--pink);
}

.availability-summary {
  margin-top: 16px;
  padding: 13px 16px;
  border-radius: 12px;
  background: var(--warm);
  border: 1px solid #e4ddc9;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--muted);
}

.availability-summary strong {
  color: var(--ink);
}

/* Friendly Reassurance Callout */
.warm-callout {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--blush-soft);
  border: 1px solid #e8c7d0;
  color: #5d213a;
  font-size: 14px;
  margin-bottom: 20px;
}

.warm-callout svg {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--pink);
}

/* Repeatable Sub-cards (Experience & References) */
.sub-stack {
  display: grid;
  gap: 18px;
  margin-top: 22px;
}

.sub-card {
  background: #fcfaf5;
  border: 1px solid #dfd8c6;
  border-radius: 16px;
  padding: 20px;
}

.sub-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.sub-card-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--leaf);
}

.remove-btn {
  font: 600 13px/1 var(--sans);
  background: transparent;
  border: 0;
  color: var(--error);
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 8px;
}

.remove-btn:hover {
  background: var(--error-bg);
}

.add-entry-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1.5px dashed #9da892;
  background: transparent;
  color: var(--ink);
  font: 600 14px/1 var(--sans);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.add-entry-btn:hover {
  background: var(--sage-tint);
  border-style: solid;
  border-color: var(--ink);
}

/* Signature & Certification */
.legal-notice {
  padding: 15px 18px;
  border-radius: 14px;
  background: #f8f6ee;
  border: 1px solid #e3decb;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
  margin-bottom: 20px;
  display: grid;
  gap: 8px;
}

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

.legal-notice a {
  color: var(--ink);
  font-weight: 600;
  text-underline-offset: 3px;
}

.attestation-box {
  padding: 16px 18px;
  border-radius: 14px;
  background: var(--warm);
  border: 1px solid #e1dac6;
  margin-bottom: 20px;
}

.attestation-check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  font-size: 14.5px;
  color: var(--ink);
  line-height: 1.45;
}

.attestation-check input {
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  accent-color: var(--ink);
  flex-shrink: 0;
  cursor: pointer;
}

.signature-input {
  font-family: var(--serif) !important;
  font-style: italic;
  font-size: 20px !important;
  letter-spacing: 0.01em;
}

/* Submit Footer inside Final Card */
.submit-bar {
  margin-top: 26px;
  padding-top: 24px;
  border-top: 1px solid #eae4d4;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.submit-note {
  font-size: 13.5px;
  color: var(--muted);
  max-width: 44ch;
}

.submit-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.btn-outline {
  font: 700 14.5px/1.2 var(--sans);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 20px;
  border-radius: 50px;
  border: 1.5px solid #b8c2ae;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
}

.btn-outline:hover {
  background: var(--warm);
  border-color: var(--ink);
}

.btn-sm {
  padding: 9px 12px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 10px;
}

.btn-danger-outline {
  border-color: #e2bec8;
  color: var(--error);
}

.btn-danger-outline:hover {
  background: var(--error-bg);
  border-color: var(--error);
}

.btn[disabled] {
  opacity: 0.7;
  cursor: progress;
}

/* Spinner */
.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 253, 243, 0.35);
  border-top-color: #fffdf3;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Form-level Alert Banner */
.form-alert {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.45;
  display: none;
}

.form-alert.is-visible {
  display: block;
}

.form-alert.is-error {
  background: var(--error-bg);
  border: 1px solid #e6b4c2;
  color: #7d1b37;
}

.form-alert.is-info {
  background: var(--warm);
  border: 1px solid #dcd3bb;
  color: var(--ink);
}

.form-alert strong {
  display: block;
  margin-bottom: 4px;
}

/* Honeypot */
.hp-field {
  position: fixed;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
}

/* Confirmation Screen */
.confirmation-card {
  background: var(--white);
  border: 1px solid #c5d6c9;
  border-radius: var(--radius-card);
  padding: clamp(26px, 4vw, 44px);
  box-shadow: var(--shadow-card);
}

.confirm-header {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 28px;
}

.confirm-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--success-bg);
  border: 1.5px solid #a9cfba;
  color: var(--success);
  display: grid;
  place-items: center;
  margin: 0 auto 16px;
}

.confirm-header h2 {
  font-size: clamp(32px, 4vw, 46px);
  margin-bottom: 10px;
}

.confirm-header p {
  color: var(--muted);
  font-size: 16px;
}

.ref-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--warm);
  border: 1px solid var(--border-soft);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
}

.preview-notice {
  margin: 0 auto 24px;
  padding: 14px 18px;
  border-radius: 14px;
  background: #fdf6e4;
  border: 1px solid #e4cf9b;
  color: #5b4312;
  font-size: 13.5px;
  line-height: 1.5;
}

.preview-notice code {
  background: rgba(91, 67, 18, 0.08);
  padding: 2px 6px;
  border-radius: 5px;
  font-size: 12.5px;
}

.summary-grid {
  display: grid;
  gap: 16px;
  margin: 24px 0;
  padding-top: 24px;
  border-top: 1px solid #eae4d4;
}

.summary-section {
  background: #fcfaf5;
  border: 1px solid #e6e0cf;
  border-radius: 14px;
  padding: 16px 18px;
}

.summary-section h3 {
  font-size: 19px;
  letter-spacing: -0.015em;
  margin-bottom: 10px;
  color: var(--ink);
}

.summary-dl {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 20px;
}

.summary-dl > div {
  min-width: 0;
}

.summary-dl > div.is-full {
  grid-column: 1 / -1;
}

.summary-dl dt {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted-soft);
  margin-bottom: 2px;
}

.summary-dl dd {
  margin: 0;
  font-size: 14.5px;
  color: var(--ink);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.confirm-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 26px;
}

/* Modal Dialog */
dialog.creamery-dialog {
  border: 1px solid var(--border-soft);
  border-radius: 20px;
  background: var(--white);
  color: var(--ink);
  max-width: min(92vw, 430px);
  padding: 28px;
  box-shadow: 0 20px 50px rgba(33, 63, 50, 0.22);
}

dialog.creamery-dialog::backdrop {
  background: rgba(33, 63, 50, 0.45);
  backdrop-filter: blur(2px);
}

dialog.creamery-dialog h2 {
  font-size: 28px;
  margin-bottom: 8px;
}

dialog.creamery-dialog p {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 22px;
}

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

/* Printout Container (hidden on screen) */
#printout {
  display: none;
}

/* Responsive */
@media (max-width: 980px) {
  .apply-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .apply-sidebar {
    display: none;
  }
  .mobile-progress {
    display: block;
  }
  .apply-intro-grid {
    grid-template-columns: 1fr;
  }
  .apply-intro-art > img {
    height: 200px;
    border-radius: 18px;
  }
  .intro-logo-badge {
    width: 76px;
    height: 76px;
    left: 10px;
    bottom: -12px;
  }
  .intro-logo-badge img {
    height: 60px;
  }
}

@media (max-width: 680px) {
  .field-grid,
  .field-grid-3,
  .role-grid,
  .summary-dl {
    grid-template-columns: 1fr;
  }
  .field-span-2 {
    grid-column: auto;
  }
  .form-card {
    padding: 20px 16px;
  }
  .card-head {
    gap: 12px;
  }
  .step-badge {
    width: 34px;
    height: 34px;
    font-size: 18px;
  }
  .week-table {
    font-size: 12px;
  }
  .week-table thead th {
    padding: 9px 3px;
  }
  .week-table thead th:first-child,
  .week-table tbody th {
    padding-left: 8px;
    padding-right: 6px;
  }
  .week-table tbody td {
    padding: 5px 3px;
  }
  .week-table thead small {
    font-size: 9.5px;
  }
  .submit-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .submit-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .submit-actions > * {
    width: 100%;
    justify-content: center;
  }
}

/* Crisp Print Stylesheet */
@media print {
  @page {
    margin: 14mm;
  }
  body {
    background: #ffffff !important;
    color: #111111 !important;
    font: 10.5pt/1.42 Georgia, serif;
  }
  header,
  main,
  footer,
  dialog,
  [data-feedback-ui],
  .mobile-progress,
  .skip {
    display: none !important;
  }
  #printout {
    display: block !important;
  }
  #printout .print-banner {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    border-bottom: 2px solid #213f32;
    padding-bottom: 8pt;
    margin-bottom: 14pt;
  }
  #printout h1 {
    font: 400 18pt/1.1 Georgia, serif;
    margin: 0;
    color: #213f32;
  }
  #printout .print-meta {
    font: 9pt/1.3 Arial, sans-serif;
    color: #444;
    text-align: right;
  }
  #printout .print-section {
    margin-bottom: 12pt;
    break-inside: avoid;
  }
  #printout h2 {
    font: 700 11pt/1.2 Arial, sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #213f32;
    border-bottom: 1px solid #ccc;
    padding-bottom: 3pt;
    margin: 0 0 6pt;
  }
  #printout .print-row {
    font: 10pt/1.4 Arial, sans-serif;
    margin: 3pt 0;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
  }
  #printout .print-row b {
    font-weight: 700;
  }
}

.intake-notice, .draft-controls {
  color: var(--ink, #213f32);
}
.intake-notice {
  border-left: 3px solid #728761;
  padding: 8px 14px;
  margin: 18px 0;
  background: #fffaf1;
}
.intake-notice p, .draft-controls p {
  font-size: 0.95rem;
  line-height: 1.45;
  margin: 0 0 8px;
}
.intake-actions, #draft-resume {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 16px;
}
.intake-actions a, .text-action {
  font: inherit;
  font-weight: 650;
  color: #28523d;
  text-decoration: underline;
  text-underline-offset: 0.16em;
}
.text-action {
  background: none;
  cursor: pointer;
  padding: 5px 0;
  border: 0;
}
.draft-controls label {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 650;
  margin-bottom: 5px;
}
.draft-controls input {
  width: 1.1rem;
  height: 1.1rem;
}
.draft-controls .btn-outline {
  margin-top: 4px;
}
.draft-controls p:empty {
  display: none;
}

.paper-page {
  margin: 0;
  color: #172d22;
  background: #fff;
  font: 1rem/1.4 Arial, sans-serif;
}
.paper-page .paper-tools, .paper-page main {
  box-sizing: border-box;
  max-width: 760px;
  margin: 0 auto;
  padding: 1rem;
}
.paper-tools { background: #eef3e5; }
.paper-tools a { color: #21452e; }
.paper-tools button { margin-left: 1rem; font: inherit; }
.paper-sheet h1, .paper-title, .paper-sheet h2 { font-family: Georgia, serif; }
.paper-sheet h1 { margin: 0; }
.paper-title { font-size: 1.3rem; margin: 0; }
.paper-sheet h2 { font-size: 1.15rem; border-bottom: 1px solid; }
.paper-sheet .write-line {
  display: flex;
  align-items: baseline;
  gap: 0.45em;
}
.paper-sheet .write-line::after {
  content: "";
  flex: 1 1 2em;
  border-bottom: 1px solid #777;
}
.paper-sheet .answer-space {
  height: 3em;
  border-top: 1px solid #888;
  border-bottom: 1px solid #888;
}
.paper-sheet table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.87em;
}
.paper-sheet th, .paper-sheet td {
  border: 1px solid #777;
  padding: 0.25em;
}
.paper-sheet th[scope=row] { text-align: left; }
@media print {
  .paper-page { font: 10pt/1.25 Arial, sans-serif; }
  .paper-page .paper-tools { display: none; }
  .paper-page main { display: block !important; max-width: none; padding: 0; }
  .paper-sheet + .paper-sheet { break-before: page; }
  .paper-sheet h2 { font-size: 13pt; margin: 10pt 0 4pt; }
  .paper-title { font-size: 13pt; }
  .paper-sheet p { margin: 5pt 0; }
  .paper-sheet p.write-line { margin: 7pt 0; }
  .paper-sheet .answer-space { height: 32pt; }
}
