/*
  The public application's styles: the Downtown Lakeland website's palette and type (ldda-website global.css), so
  applicants arriving from downtownlkld.com land on a page that looks like it belongs. Phone first. Every text and
  background pair meets WCAG 2.1 AA; the page still works with this file missing.
*/

:root {
  --ink: #18212f;
  --text: #3b4454;
  --muted: #5a6577;
  --edge: #d3d9e1;
  --lift: 0 1px 3px rgba(24, 33, 47, 0.08), 0 4px 14px rgba(24, 33, 47, 0.06);
  --bg: #fbfaf7;
  --paper: #ffffff;
  --accent: #0f6b5c;
  --accent-dark: #0b5347;
  --accent-soft: #e4f1ee;
  --danger: #b42318; /* 6.4:1 on white */
  --danger-soft: #fdf0ee; /* --danger on it: 5.9:1 */
  --notice-soft: #fdf6e7; /* --ink on it: 14.6:1 */
  --notice-edge: #e2c27a;
  --focus: #0f6b5c;
  --photo: #f2b84b; /* the photo buttons: --ink on it 9.0:1 */
  --photo-dark: #e0a22e; /* hover: --ink on it 7.2:1 */
  --photo-edge: #a26b00; /* its outline on the page: 4.3:1 (3:1 needed for a control) */
  /* The logo's four colors, as on the website: decoration only, never behind text (D53). */
  --logo-blue: #065e90;
  --logo-orange: #e45e16;
  --logo-green: #62b92c;
  --logo-yellow: #fab215;
  --logo-stripe: linear-gradient(90deg, var(--logo-blue) 0 25%, var(--logo-orange) 25% 50%, var(--logo-green) 50% 75%, var(--logo-yellow) 75% 100%);
  --shopfront: #f4efe4; /* --text on it 8.6:1, --muted 5.1:1 */
  --serif: Georgia, 'Times New Roman', serif;
  --sans: 'Avenir Next', 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
  --radius: 14px;
  --wrap: 44rem;
  --gutter: clamp(1rem, 4vw, 2rem);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  /* The footer stays at the bottom of a short page (the thank-you page) instead of floating mid-screen. */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.2; margin: 0 0 0.5em; }
h1 { font-size: clamp(1.9rem, 6vw, 2.6rem); margin-top: 1.5rem; }
h2 { font-size: 1.5rem; margin-top: 2rem; }
h3 { font-size: 1.2rem; }

a { color: var(--accent); }
a:hover { color: var(--accent-dark); }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

.skip { position: absolute; left: -999px; top: 0; background: var(--paper); padding: 0.5rem 1rem; z-index: 10; }
.skip:focus { left: 1rem; }

.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

header.site { background: var(--accent); color: #fff; padding: 0.9rem 0; }
header.site p { margin: 0; }
header.site .org { font-size: 0.85rem; opacity: 0.95; }
header.site .program { font-family: var(--serif); font-size: 1.25rem; }

.lede { font-size: 1.15rem; color: var(--text); }
.step { display: block; font-family: var(--sans); font-size: 0.78rem; font-weight: 700; color: var(--muted); letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 0.2rem; }

/* ---- The applicant's pages wear the website's clothes (ldda-website global.css, Dan, Oct 20): the white logo
   header, the teal title band under the logo's four-color stripe, At a Glance, the awning tiles and the dark footer.
   Copied, not linked: the form must not break when the website changes. ---- */
.site-header { background: var(--paper); border-bottom: 1px solid var(--edge); }
.site-header .wrap { display: flex; align-items: center; min-height: 4.25rem; }
.brand { display: block; height: 2.6rem; width: auto; }

.head-band { position: relative; background: var(--accent); color: #fff; padding-block: clamp(1.6rem, 4vw, 2.4rem); }
.head-band::before { content: ''; position: absolute; inset: 0 0 auto; height: 6px; background: var(--logo-stripe); }
.head-band:has(+ .glance-band) { padding-bottom: 0; }
.head-band h1 { color: #fff; margin: 0; font-size: clamp(2rem, 6vw, 3rem); letter-spacing: -0.01em; line-height: 1.1; }
/* A short piece of the logo stripe under the title, as on the website: decoration, never a pill (which means "click"). */
.head-band h1::after { content: ''; display: block; width: 4.5rem; height: 5px; margin-top: 0.6rem; border-radius: 3px; background: var(--logo-stripe); }
.head-band .lede { color: #e8efe9; margin: 0.8rem 0 0; font-size: 1.05rem; } /* 5.5:1 on --accent */
.head-band a { color: #fff; }
.head-band :focus-visible, .glance-band :focus-visible { outline-color: #fff; }
.page { padding-top: 1.5rem; }
body > main { flex: 1 0 auto; }

/* At a Glance: the facts, big and serif, on the same teal. Laptop: side by side. Phones: label left, answer right. */
.glance-band { background: var(--accent); color: #fff; }
/* Two by two on wide screens: the form's column is narrow for easy typing, and four across squeezed "November 3"
   onto two lines. */
.glance { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; padding-block: 0.4rem 1.6rem; }
.glance > div { padding: 1rem 1.25rem; border-left: 1px solid rgba(255, 255, 255, 0.35); } /* a divider, not an accent */
.glance > div:nth-child(odd) { padding-left: 0; border-left: 0; }
.glance > div:nth-child(n + 3) { border-top: 1px solid rgba(255, 255, 255, 0.35); }
.glance dt { display: flex; align-items: center; gap: 0.5rem; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.glance dt .icon { width: 1.15rem; height: 1.15rem; }
.glance dd { margin: 0.5rem 0 0; }
.glance dd > strong { display: block; font-family: var(--serif); font-size: clamp(1.4rem, 2.4vw, 1.75rem); font-weight: 400; line-height: 1.15; }
.glance dd > span { display: block; margin-top: 0.45rem; font-size: 0.93rem; line-height: 1.5; }
.glance a { color: #fff; text-decoration-color: var(--logo-yellow); text-decoration-thickness: 2px; text-underline-offset: 0.2em; }
.glance a:hover { text-decoration-color: #fff; }
@media (max-width: 54rem) {
  .glance { grid-template-columns: fit-content(40%) minmax(0, 1fr); column-gap: 0.9rem; padding-block: 0.4rem 0.6rem; }
  .glance > div { display: grid; grid-column: 1 / -1; grid-template-columns: subgrid; padding: 0.9rem 0; border-left: 0; }
  .glance > div:nth-child(n + 2) { border-top: 1px solid rgba(255, 255, 255, 0.35); }
  .glance dt { align-self: start; padding-top: 0.35rem; font-size: 0.72rem; }
  .glance dd { margin: 0; }
  .glance dd > strong { font-size: 1.4rem; }
  .glance dd > span { margin-top: 0.25rem; }
}

.icon { flex: none; width: 1.25rem; height: 1.25rem; vertical-align: -0.2em; }

/* Tiles: each thing to have ready is a little shopfront under a striped, scalloped awning. The awning's color rotates
   through the logo's four in a fixed order, so no color reads as a meaning; text sits only on the pale shopfront. */
.ready h2 { margin-top: 0.5rem; }
.tiles { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 9rem), 1fr)); }
.tiles li, form > section {
  --awning: var(--logo-orange);
  --awning-h: 2.4rem;
  --awning-pad: 1.1rem;
}
.tiles li { overflow: hidden; padding: 0 var(--awning-pad) 1.1rem; background: var(--shopfront); border: 1px solid var(--edge); border-top: 0; border-radius: 4px 4px 10px 10px; }
.tiles li::before, form > section::before {
  content: '';
  display: block;
  height: var(--awning-h);
  margin: 0 calc(-1 * var(--awning-pad)) 0.9rem;
  background: repeating-linear-gradient(90deg, var(--awning) 0 22px, var(--awning-light, #fff) 22px 44px);
  /* The scalloped edge: one half circle under each stripe. */
  -webkit-mask: linear-gradient(#000 0 0) top / 100% calc(100% - 11px) no-repeat, radial-gradient(circle at 11px 0, #000 10.5px, transparent 11px) left bottom / 22px 11px repeat-x;
  mask: linear-gradient(#000 0 0) top / 100% calc(100% - 11px) no-repeat, radial-gradient(circle at 11px 0, #000 10.5px, transparent 11px) left bottom / 22px 11px repeat-x;
}
.tiles li:nth-child(4n + 2), form > section:nth-of-type(4n + 2) { --awning: var(--logo-green); }
.tiles li:nth-child(4n + 3), form > section:nth-of-type(4n + 3) { --awning: var(--logo-yellow); }
.tiles li:nth-child(4n + 4), form > section:nth-of-type(4n + 4) { --awning: var(--logo-blue); }
.tiles .icon { display: block; width: 1.75rem; height: 1.75rem; margin-bottom: 0.5rem; stroke-width: 1.75; }
.tiles h3 { margin: 0 0 0.2rem; font-size: 1.1rem; font-weight: 700; line-height: 1.25; }
.tiles p { margin: 0; color: var(--text); font-size: 0.93rem; line-height: 1.45; }
@media (max-width: 40rem) {
  .tiles { gap: 0.7rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tiles li { --awning-h: 1.9rem; --awning-pad: 0.85rem; padding-bottom: 0.9rem; }
  .tiles h3 { font-size: 1rem; }
  .tiles p { font-size: 0.88rem; }
}

.site-footer { margin-top: 3rem; background: var(--ink); color: #e6e9ee; padding-block: 2rem 2.5rem; font-size: 0.95rem; } /* 13.6:1 */
.site-footer p { margin: 0 0 0.5rem; }
.site-footer a { color: #fff; }
.site-footer :focus-visible { outline-color: #fff; }
details.more { margin: -0.8rem 0 1.4rem; }
details.more summary { cursor: pointer; color: var(--accent-dark); font-weight: 600; padding: 0.3rem 0; }
details.more ul { padding-left: 1.2rem; }
.statement + details.more { margin: 0 0 0.6rem 2rem; }

section { margin-bottom: 1rem; }

/* The form's questions sit on raised white panels, as on the website. */
form > section, .answers, .products li {
  background: var(--paper);
  border: 1px solid var(--edge);
  box-shadow: var(--lift);
  border-radius: var(--radius);
  padding: 1rem 1.1rem 0.4rem;
}
/* Each step's heading is a green banner, like the page's title band (Dan, Oct 20), and its awning hangs over it: the
   awning's scallops overlap the banner's top edge. */
form > section > h2 {
  position: relative;
  margin: -11px calc(-1 * var(--awning-pad)) 1.1rem;
  padding: calc(11px + 0.7rem) var(--awning-pad) 0.8rem;
  background: var(--accent);
  color: #fff;
}
form > section > h2 .step { color: #e8efe9; } /* 5.5:1 on --accent */
form > section::before { position: relative; z-index: 1; margin-bottom: 0; }
/* Each step is a shop on the street: its awning (above, with the tiles) runs across the card's top edge. Its light
   stripes are cream, not white: white stripes vanish into the white card and the awning reads as a row of teeth. */
form > section { --awning-light: var(--shopfront); overflow: hidden; padding-top: 0; padding-inline: var(--awning-pad); border-top: 0; border-radius: 4px 4px var(--radius) var(--radius); margin-bottom: 1.5rem; }
@media (max-width: 40rem) { form > section { --awning-h: 1.9rem; --awning-pad: 0.95rem; } }

/* The three photo groups: small shopfronts inside the Photos step, each with the icon its tile uses above. */
.field.photo-group { background: var(--shopfront); border: 1px solid var(--edge); border-radius: 10px; padding: 0.8rem 0.9rem 0.6rem; margin-bottom: 1rem; }
.photo-group > label { display: flex; align-items: center; gap: 0.5rem; font-family: var(--serif); font-size: 1.15rem; font-weight: 400; }
.photo-group > label .icon { width: 1.5rem; height: 1.5rem; stroke-width: 1.75; }
.photo-group .help { color: var(--text); } /* --muted on the shopfront is 5.1:1; --text reads easier at 8.6:1 */

.field { margin: 0 0 1.4rem; padding: 0; border: 0; min-width: 0; }
.field > label, .field > legend { display: block; font-weight: 600; margin-bottom: 0.3rem; padding: 0; }
.optional { font-weight: 400; color: var(--muted); }
.help { color: var(--muted); margin: 0 0 0.5rem; font-size: 0.97rem; }

input[type="text"], input[type="email"], input[type="tel"], input[type="url"], input[type="date"], textarea, select {
  display: block;
  width: 100%;
  font: inherit;
  font-size: 1rem; /* 16px or more: iPhone does not zoom into the field */
  color: var(--ink);
  background: var(--paper);
  border: 2px solid var(--muted);
  border-radius: 8px;
  padding: 0.6rem 0.7rem;
}
textarea { resize: vertical; }
.short input, .short select { max-width: 14rem; }

.pair { display: grid; gap: 0 1rem; }
/* Side by side, the boxes line up at the bottom: City has a help line and ZIP doesn't (Dan, Oct 20). */
@media (min-width: 34rem) { .pair { grid-template-columns: 2fr 1fr; align-items: end; } }

.follow-up { margin: 0 0 0.6rem 2rem; } /* a license's number, under its box */
.follow-up .field { margin-bottom: 0.8rem; }
.choice { display: flex; align-items: flex-start; gap: 0.6rem; margin: 0 0 0.55rem; }
.choice input { width: 1.4rem; height: 1.4rem; margin: 0.15rem 0 0; flex: none; accent-color: var(--accent); }
.choice label { font-weight: 400; }
.statement { padding: 0.6rem 0; border-bottom: 1px solid var(--edge); }

.product { border: 1px solid var(--edge); border-radius: 10px; padding: 0.8rem 0.9rem 0.2rem; margin: 0 0 1rem; min-width: 0; }
.product > legend { font-family: var(--serif); font-size: 1.15rem; padding: 0 0.3rem; }
.choice.main { margin-bottom: 1rem; }

.has-error input, .has-error textarea, .has-error select { border-color: var(--danger); }
.error { color: var(--danger); font-weight: 600; margin: 0 0 0.5rem; }

.error-summary { border: 3px solid var(--danger); background: var(--danger-soft); border-radius: var(--radius); padding: 1rem 1.2rem; margin: 1rem 0 1.5rem; }
.error-summary h2 { margin-top: 0; color: var(--danger); }
.error-summary a { color: var(--danger); font-weight: 600; }

/* The limited-category warning: big, red, impossible to miss, and never a block (Dan, Oct 19, 2026). */
.warning { border: 3px solid var(--danger); background: var(--danger-soft); color: var(--ink); border-radius: 10px; padding: 0.8rem 1rem; margin: 0.6rem 0 0.8rem; }
.warning h2, .warning strong:first-child { color: var(--danger); }
.warning h2 { margin-top: 0; font-size: 1.3rem; }
.notice { border: 2px solid var(--notice-edge); background: var(--notice-soft); border-radius: 10px; padding: 0.7rem 1rem; margin: 0.6rem 0 1rem; }
.notice h3 { margin-top: 0.2rem; }
.category-notes .warning p, .category-notes .notice p { margin: 0.2rem 0; }

.tag { display: inline-block; font-size: 0.8rem; font-weight: 600; padding: 0.05rem 0.5rem; border-radius: 999px; background: var(--accent-soft); color: var(--accent-dark); }
.tag.limited { background: var(--danger-soft); color: var(--danger); }
.note { color: var(--muted); }

.answers { padding-bottom: 0.8rem; }
.answers dt { font-weight: 600; margin-top: 0.6rem; }
.answers dd { margin: 0; white-space: pre-line; overflow-wrap: anywhere; }
.products { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.8rem; }
.products p { margin: 0 0 0.4rem; overflow-wrap: anywhere; }

.actions { margin: 2rem 0; }
.review-actions { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
button {
  font: inherit;
  font-weight: 600;
  font-size: 1.1rem;
  color: #fff;
  background: var(--accent);
  border: 2px solid var(--accent);
  border-radius: 999px;
  padding: 0.75rem 1.6rem;
  cursor: pointer;
}
button:hover { background: var(--accent-dark); }
button.secondary { color: var(--accent-dark); background: var(--paper); }
button.add { font-size: 1rem; padding: 0.55rem 1.2rem; color: var(--accent-dark); background: var(--paper); margin-bottom: 1rem; }

/* Bots fill every field; people never see this one. */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Shown and hidden by apply.js. A class, not the hidden attribute: a display rule above would beat the attribute. */
.is-hidden { display: none !important; }

/* ---- The staff preview (feedback.html, _preview_banner.html; never shown on production) ---- */
.preview-banner { background: var(--notice-soft); border-bottom: 2px solid var(--notice-edge); color: var(--ink); padding: 0.6rem 0; }
.preview-banner p { margin: 0; }
.preview-banner a { color: var(--accent-dark); font-weight: 600; } /* may wrap: at 320px it is wider than the screen */
header.site a { color: #fff; text-decoration: none; }
.flash { background: var(--accent-soft); color: var(--ink); border-radius: 10px; padding: 0.7rem 1rem; font-weight: 600; }
select { font: inherit; }

.feedback-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.feedback-item { background: var(--paper); border: 1px solid var(--edge); border-radius: var(--radius); box-shadow: var(--lift); padding: 0.9rem 1.1rem 0.4rem; }
.feedback-item p { margin: 0 0 0.5rem; overflow-wrap: anywhere; }
.feedback-message { white-space: pre-line; color: var(--ink); }
.feedback-by, .feedback-status { color: var(--muted); font-size: 0.95rem; }
.replies { list-style: none; margin: 0.4rem 0 0.8rem; padding: 0.5rem 0.9rem; background: var(--bg); border-radius: 10px; }
.replies li + li { border-top: 1px solid var(--edge); padding-top: 0.5rem; }
.feedback-item details.more { margin: 0 0 0.6rem; }
/* Status chips in the website's feedback colors (Dan, Oct 20): New blue, Planned yellow, Done green, Not Doing red.
   Each chip carries its word, so color is never the only cue (WCAG 1.4.1). */
.tag.status-new { background: #dceafa; color: #1e4a7a; } /* 7.4:1 */
.tag.status-planned { background: #ffe58a; color: #5c4400; } /* 7.4:1 */
.tag.status-done { background: #d3f0dc; color: #14532d; } /* 7.5:1 */
.tag.status-not_doing { background: #fbd9d6; color: #9b1c1c; } /* 6.2:1 */

/* Photos (uploads.py): the browser's own file picker (it works without the script and says how many files are
   chosen), with its button made a large gold pill so it stands apart from the green Review button (Dan, Oct 20). */
input[type="file"] { display: block; width: 100%; max-width: 100%; padding: 0.5rem 0; font: inherit; color: var(--text); }
input[type="file"]::file-selector-button {
  font: inherit;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--ink);
  background: var(--photo);
  border: 2px solid var(--photo-edge);
  border-radius: 999px;
  padding: 0.8rem 1.6rem;
  min-height: 3rem;
  margin: 0 1rem 0.4rem 0;
  cursor: pointer;
}
input[type="file"]::file-selector-button:hover { background: var(--photo-dark); }
.photo-count { font-weight: 600; margin: 0 0 1rem; }
.photo-list { list-style: none; margin: 0.6rem 0 0; padding: 0; display: grid; gap: 0.5rem; }
.photo-list:empty { display: none; }
.photo-item {
  display: grid;
  grid-template-columns: 3.5rem 1fr auto;
  grid-template-areas: "thumb name remove" "thumb status remove" "bar bar bar";
  align-items: center;
  column-gap: 0.75rem;
  padding: 0.5rem;
  border: 1px solid var(--edge);
  border-radius: 10px;
  background: var(--paper);
}
.photo-thumb {
  grid-area: thumb;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 6px;
  overflow: hidden;
  background: var(--accent-soft);
  /* The photo icon shows when there is no preview (a photo the server already has, or a HEIC Chrome can't draw). */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b5347' stroke-width='1.8'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Ccircle cx='9' cy='10' r='2'/%3E%3Cpath d='m21 16-5-5-9 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 1.6rem;
}
.photo-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-name { grid-area: name; font-weight: 600; overflow-wrap: anywhere; }
.photo-status { grid-area: status; color: var(--muted); font-size: 0.95rem; }
.photo-status.error { color: var(--danger); font-weight: 600; }
.photo-item[data-state="received"] .photo-status { color: var(--accent-dark); font-weight: 600; }
.photo-item progress { grid-area: bar; width: 100%; height: 0.5rem; margin-top: 0.4rem; accent-color: var(--accent); }
.photo-item .remove-box, .photo-item button.remove { grid-area: remove; }
.photo-item .remove-box { display: flex; align-items: center; gap: 0.4rem; }
button.remove { font-size: 0.95rem; padding: 0.45rem 0.9rem; color: var(--accent-dark); background: var(--paper); }
/* White buttons stay readable on hover (the plain button's dark hover hid their dark text). */
button.secondary:hover, button.add:hover, button.remove:hover { background: var(--accent-soft); }

/* ---- Market iPads (staff_devices.html, market_*.html) ---- */
.device-list { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: 0.8rem; }
.device-item { background: var(--paper); border: 1px solid var(--edge); border-radius: var(--radius); box-shadow: var(--lift); padding: 0.8rem 1.1rem; }
.device-item p { margin: 0 0 0.4rem; overflow-wrap: anywhere; }
.device-meta { color: var(--muted); font-size: 0.95rem; }
.device-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.pairing-code { background: var(--accent-soft); border-radius: var(--radius); padding: 1rem 1.2rem; margin: 1rem 0 1.5rem; overflow-wrap: anywhere; }
.pairing-code h2 { margin-top: 0; }
.pairing-code .code { font-size: 2rem; font-weight: 700; letter-spacing: 0.12em; font-variant-numeric: tabular-nums; margin: 0.2rem 0 0.6rem; color: var(--ink); }

/* ---- The applications list (staff_applications.html): a table on a laptop, stacked rows on a phone ---- */
body.wide { --wrap: 72rem; } /* the banner, header and list share one width */
.window-line { background: var(--paper); border: 1px solid var(--edge); border-radius: var(--radius); box-shadow: var(--lift); padding: 0.7rem 1rem; }
.chips { list-style: none; padding: 0; margin: 1rem 0 0.4rem; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chips a { display: inline-block; border: 1px solid var(--edge); border-radius: 999px; background: var(--paper); color: var(--ink); padding: 0.45rem 0.9rem; text-decoration: none; }
.chips a:hover { background: var(--accent-soft); }
.chips a[aria-current="page"] { background: var(--accent); border-color: var(--accent); color: #fff; }
/* The pills reuse the feedback chips' measured colors; each carries its word, so color is never the only cue. */
.pill { display: inline-block; border-radius: 999px; padding: 0.1rem 0.6rem; font-size: 0.88rem; font-weight: 600; margin: 0 0.25rem 0.25rem 0; }
.pill-ok { background: #d3f0dc; color: #14532d; } /* 7.5:1 */
.pill-bad { background: #fbd9d6; color: #9b1c1c; } /* 6.2:1 */
.pill-flag { background: #ffe58a; color: #5c4400; } /* 7.4:1 */
.pill-wait { background: #e9edf2; color: var(--text); } /* 8.6:1 */
.sub { display: block; color: var(--muted); font-size: 0.92rem; }
.empty { background: var(--paper); border: 1px solid var(--edge); border-radius: var(--radius); padding: 1rem; }
table.applications { width: 100%; border-collapse: collapse; background: var(--paper); border: 1px solid var(--edge); box-shadow: var(--lift); margin: 0.6rem 0 2rem; }
table.applications caption { text-align: left; color: var(--muted); padding: 0 0 0.4rem; }
table.applications th, table.applications td { text-align: left; vertical-align: top; padding: 0.6rem 0.7rem; border-bottom: 1px solid var(--edge); overflow-wrap: anywhere; }
table.applications th { color: var(--ink); font-size: 0.92rem; background: var(--bg); }
@media (max-width: 48rem) {
  table.applications thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  table.applications, table.applications caption, table.applications tbody, table.applications tr, table.applications td { display: block; }
  table.applications { border: 0; background: none; box-shadow: none; }
  table.applications tr { background: var(--paper); border: 1px solid var(--edge); border-radius: var(--radius); box-shadow: var(--lift); padding: 0.5rem 0; margin-bottom: 0.8rem; }
  table.applications td { border: 0; padding: 0.2rem 1rem; }
  table.applications td[data-label]:not([data-label="Applicant"])::before { content: attr(data-label) ": "; color: var(--muted); font-size: 0.92rem; }
  table.applications td:empty { display: none; }
}

/* ---- One application (staff_application.html): the answers, and beside them on a laptop the copy and history ---- */
.crumb { margin: 1rem 0 0; }
.application-columns { display: grid; gap: 1rem; align-items: start; }
@media (min-width: 60rem) { .application-columns { grid-template-columns: 2fr 1fr; } }
.panel { background: var(--paper); border: 1px solid var(--edge); border-radius: var(--radius); box-shadow: var(--lift); padding: 0.4rem 1.1rem 0.9rem; margin-bottom: 1rem; overflow-wrap: anywhere; }
.panel h2 { margin: 0.6rem 0; }
.panel h3 { font-size: 1rem; margin: 0.9rem 0 0.4rem; }
.facts { display: grid; grid-template-columns: minmax(8rem, 13rem) 1fr; gap: 0.4rem 1rem; margin: 0; }
.facts dt { color: var(--muted); font-size: 0.95rem; }
.facts dd { margin: 0; color: var(--ink); }
@media (max-width: 40rem) { .facts { grid-template-columns: 1fr; } .facts dd { margin-bottom: 0.5rem; } }
.answer-text { display: block; white-space: pre-line; }
.reasons, .product-list, .history { margin: 0; padding-left: 1.2rem; display: grid; gap: 0.6rem; }
.reasons { list-style: none; padding: 0; }
.photo-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr)); gap: 0.6rem; }
.photo-grid img { display: block; width: 100%; height: 9rem; object-fit: cover; border-radius: 10px; border: 1px solid var(--edge); }
.matches { margin: 0.4rem 0 0; padding-left: 1.2rem; display: grid; gap: 0.3rem; }
details.more summary { cursor: pointer; color: var(--accent-dark); font-weight: 600; margin-top: 0.3rem; }
/* A link that looks like the white secondary button (Download CSV): a download is a link, not a form. */
a.button-link { display: inline-block; font-weight: 600; color: var(--accent-dark); background: var(--paper); border: 2px solid var(--accent); border-radius: 999px; padding: 0.55rem 1.3rem; text-decoration: none; margin-right: 0.6rem; }
a.button-link:hover { background: var(--accent-soft); }

/* ---- Settings (staff_settings.html) ---- */
.window-summary { font-weight: 600; color: var(--ink); }
.settings-history { margin-top: 2rem; }
/* iOS draws a date field as its own control with a built-in minimum width, which beats width: 100% (cygNET, Jul 2026). */
input[type="date"] { min-width: 0; max-width: 100%; -webkit-appearance: none; appearance: none; }
.settings-sections .panel { margin-bottom: 1rem; }

/* ---- Blinky's home for staff (staff_dashboard.html): its own class names, so no applicant page is restyled ---- */
.dash-heading { font-size: 1.15rem; margin: 1.6rem 0 0.6rem; }
.dash-counts, .dash-flags { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.75rem; }
.dash-counts { grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); }
.dash-flags { grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); margin-top: 0.6rem; }
.dash-counts li, .dash-flags li { background: var(--paper); border: 1px solid var(--edge); border-radius: var(--radius); box-shadow: var(--lift); }
.dash-counts li { padding: 0.9rem 1rem; color: var(--muted); }
.dash-counts li:has(a) { padding: 0; }
.dash-counts a, .dash-flags a { display: block; padding: 0.9rem 1rem; color: var(--text); text-decoration: none; border-radius: var(--radius); }
.dash-counts a:hover, .dash-flags a:hover { background: var(--accent-soft); }
.dash-counts b, .dash-flags b { display: block; font-family: var(--serif); font-size: 2rem; line-height: 1.1; color: var(--ink); }
.dash-flags li.dash-due { background: var(--danger-soft); border-color: var(--danger); }
.dash-flags li.dash-due b { color: var(--danger); }
.dash-columns { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); }
.dash-table { width: 100%; border-collapse: collapse; background: var(--paper); border: 1px solid var(--edge); border-radius: var(--radius); }
.dash-table caption { text-align: left; caption-side: top; padding-bottom: 0.4rem; }
.dash-table th, .dash-table td { text-align: left; padding: 0.5rem 0.8rem; border-bottom: 1px solid var(--edge); }
.dash-table td:last-child, .dash-table th:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.dash-recent { padding-left: 1.3rem; margin: 0; }
.dash-recent li { margin-bottom: 0.6rem; }
.dash-recent .sub { display: block; color: var(--muted); font-size: 0.92rem; }
.dash-links { margin-top: 2rem; }

/* ---- Blinky's shell for every staff page (staff_base.html), from the approved wireframe (D76) ---- */
body.staff-shell { --off: #b3bac5; /* grayed, not-yet-built menu items: inactive, outside WCAG 1.4.3 */ }
.shell { display: grid; grid-template-columns: 15rem 1fr; min-height: 100vh; border-top: 6px solid transparent; border-image: var(--logo-stripe) 1; }
.shell-nav { background: var(--paper); border-right: 1px solid var(--edge); padding: 1.25rem 0.9rem; display: flex; flex-direction: column; gap: 0.15rem; }
.shell-brand { display: flex; align-items: center; gap: 0.75rem; padding: 0 0.5rem 1.4rem; color: var(--ink); text-decoration: none; }
.shell-brand img { height: 58px; width: auto; flex: none; }
.shell-brand b { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.7rem; line-height: 1.1; }
.shell-brand small { display: block; font-size: 0.7rem; line-height: 1.3; color: var(--muted); margin-top: 2px; }
.shell-nav ul { list-style: none; margin: 0; padding: 0; }
.shell-nav li a, .shell-nav li .off { display: flex; justify-content: space-between; align-items: center; padding: 0.6rem 0.75rem; border-radius: 9px; color: var(--muted); text-decoration: none; }
.shell-nav li a:hover { background: var(--accent-soft); color: var(--ink); }
.shell-nav li a.on { background: var(--accent-soft); color: var(--accent); font-weight: 700; }
.shell-nav li .off { color: var(--off); cursor: not-allowed; }
.shell-nav li .off small { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.04em; border: 1px solid #d5dae1; border-radius: 6px; padding: 0 6px; }
.shell-settings { border-top: 1px solid var(--edge); margin-top: 0.6rem !important; padding-top: 0.6rem !important; }
.shell-who { margin-top: auto; padding: 0.75rem 0.5rem 0; border-top: 1px solid var(--edge); font-size: 0.82rem; color: var(--muted); }
.shell-main { padding: 1.5rem 1.8rem 3rem; min-width: 0; }
.shell-main h1 { margin-top: 0; }
@media (max-width: 50rem) {
  .shell { grid-template-columns: 1fr; }
  .shell-nav { border-right: 0; border-bottom: 1px solid var(--edge); }
  .shell-nav ul { display: flex; flex-wrap: wrap; gap: 0.25rem; }
  .shell-nav li .off { display: none; } /* a phone shows only what works */
  .shell-who { margin-top: 0.5rem; }
}
