/* Portal styles: the same brand as the public site (teal, red, ink outlines, hard shadows,
   slab headings, large readable type), simplified for screens people work in all day. */

@font-face { font-family: "Figtree"; src: url("fonts/figtree.woff2") format("woff2"); font-weight: 300 900; font-display: swap; }
@font-face { font-family: "Aleo"; src: url("fonts/aleo.woff2") format("woff2"); font-weight: 600 800; font-display: swap; }

:root {
  --teal: #189d95; --badge: #127a73; --teal-pale: #e3f2f0;
  --red: #ed3831; --button: #d02f27; --red-deep: #b3241e;
  --ink: #231f1e; --text: #2e2827; --soft: #574e4d; --paper: #fff; --page: #f6f4f2;
  --line: 3px solid var(--ink); --shadow: 5px 5px 0 var(--ink);
  --slab: "Aleo", Georgia, serif; --sans: "Figtree", "Segoe UI", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font: 400 1.125rem/1.55 var(--sans); color: var(--text); background: var(--page); min-height: 100vh; display: flex; flex-direction: column; }
h1, h2, h3 { font-family: var(--slab); color: var(--ink); line-height: 1.15; margin: 0 0 0.6rem; }
h1 { font-size: clamp(1.8rem, 1.4rem + 1.5vw, 2.4rem); }
h2 { font-size: 1.45rem; }
a { color: var(--badge); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }

.p-wrap { max-width: 68rem; margin: 0 auto; padding: 0 clamp(1rem, 4vw, 2rem); }
.p-header { background: #fff; border-bottom: var(--line); }
.p-header-row { display: flex; align-items: center; gap: 1rem 1.5rem; flex-wrap: wrap; min-height: 76px; }
.p-brand { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; color: var(--ink); font-family: var(--slab); font-weight: 700; font-size: 1.15rem; margin-right: auto; }
.p-brand img { height: 52px; width: auto; display: block; }
.p-brand span { border-left: 3px solid var(--teal); padding-left: 0.75rem; }
.p-nav { display: flex; gap: 0.25rem 1rem; flex-wrap: wrap; }
.p-nav a { color: var(--ink); font-weight: 700; text-decoration: none; padding: 0.3rem 0.2rem; border-bottom: 3px solid transparent; }
.p-nav a:hover, .p-nav a[aria-current] { border-bottom-color: var(--teal); }
.p-signout { display: flex; align-items: center; gap: 0.75rem; margin: 0; }
.p-who { color: var(--soft); font-size: 1rem; }

.p-main { flex: 1; padding: 2.5rem 0 3.5rem; }
.p-footer { border-top: 2px solid #ddd6d3; padding: 1.25rem 0; font-size: 0.95rem; color: var(--soft); background: #fff; }

.p-card { background: #fff; border: var(--line); border-radius: 16px; box-shadow: var(--shadow); padding: 1.6rem 1.75rem; margin-bottom: 1.75rem; }
.p-card--narrow { max-width: 30rem; margin-left: auto; margin-right: auto; }
.p-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); gap: 1.25rem; }
.p-tile { background: var(--badge); color: #fff; border: var(--line); border-radius: 16px; box-shadow: var(--shadow); padding: 1.3rem 1.4rem; display: flex; flex-direction: column; gap: 0.4rem; }
.p-tile h2, .p-tile h3 { color: #fff; margin: 0; }
.p-tile p { margin: 0 0 0.6rem; flex: 1; }
.p-tile--soon { background: #fff; color: var(--text); }
.p-tile--soon h2, .p-tile--soon h3 { color: var(--ink); }
.p-tile .p-btn { align-self: flex-start; }
.p-tag { display: inline-block; font-size: 0.85rem; font-weight: 700; background: var(--teal-pale); color: var(--ink); border: 2px solid var(--ink); border-radius: 8px; padding: 0.05rem 0.5rem; align-self: flex-start; }

.p-form { display: grid; gap: 0.35rem; }
.p-form label { font-weight: 700; margin-top: 0.6rem; }
.p-form input, .p-form select { font: inherit; padding: 0.6rem 0.75rem; border: 2px solid var(--ink); border-radius: 10px; background: #fff; width: 100%; }
.p-form input:focus { outline: 3px solid var(--teal); outline-offset: 1px; }
.p-form .p-btn { margin-top: 1rem; justify-self: start; }
.p-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
@media (max-width: 560px) { .p-row { grid-template-columns: 1fr; } }

.p-btn { font: 700 1.05rem var(--sans); color: #fff; background: var(--button); border: 3px solid var(--ink); border-radius: 10px; box-shadow: 3px 3px 0 var(--ink); padding: 0.55rem 1.1rem; cursor: pointer; text-decoration: none; display: inline-block; }
.p-btn:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); color: #fff; }
.p-btn--ghost { background: #fff; color: var(--ink); }
.p-btn--ghost:hover { color: var(--ink); }
.p-btn--small { font-size: 0.95rem; padding: 0.3rem 0.7rem; }
.p-inline { display: inline; margin: 0; }

.p-flash { border: 2px solid var(--ink); border-radius: 10px; padding: 0.7rem 1rem; margin: 0 0 1.25rem; background: var(--teal-pale); }
.p-flash--err { background: #fde7e5; border-color: var(--red-deep); }
/* Two-step sign-in: the code to scan, the key to type, and the recovery codes. */
.p-two-step h2 { font-size: 1.2rem; margin-top: 1.75rem; }
.p-two-step-qr { margin: 0.75rem 0; }
.p-two-step-qr .qr { display: block; width: 13rem; max-width: 100%; height: auto; border: 2px solid var(--ink); border-radius: 10px; }
.p-steps { padding-left: 1.3rem; display: grid; gap: 1rem; }
.p-codes { list-style: none; margin: 1rem 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); gap: 0.4rem 0.75rem; }
.p-secret--small { font-size: 1.15rem; overflow-wrap: anywhere; }
.p-secret { font: 700 1.5rem ui-monospace, Menlo, Consolas, monospace; letter-spacing: 0.05em; background: #fff; border: 2px dashed var(--ink); border-radius: 10px; padding: 0.5rem 0.9rem; display: inline-block; margin: 0.3rem 0; }

.p-table { width: 100%; border-collapse: collapse; font-size: 1rem; }
.p-table th, .p-table td { text-align: left; padding: 0.6rem 0.5rem; border-bottom: 2px solid #e4dedb; vertical-align: middle; }
.p-table th { font-family: var(--slab); color: var(--ink); border-bottom: var(--line); }
.p-table td.p-actions { white-space: nowrap; text-align: right; }
.p-table-wrap { overflow-x: auto; }
.p-status { font-weight: 700; }
.p-status--disabled { color: var(--red-deep); }

.p-muted { color: var(--soft); }
.p-small { font-size: 0.95rem; }
.p-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.p-head h1 { margin: 0; }
.p-space { margin-top: 1.75rem; }
.p-section { margin-top: 2.75rem; }

/* ---------- Office dashboards, leads and access (employee portal) ---------- */
.p-tile--office p { font-size: 1.05rem; }
.p-filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 1rem; }
.p-status--new { color: var(--red-deep); }
.p-status--contacted { color: var(--badge); }
.p-status--closed { color: var(--soft); }
.p-two { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 1.5rem; align-items: start; }
.p-two > * { min-width: 0; }
@media (max-width: 800px) { .p-two { grid-template-columns: 1fr; } }
.p-two .p-card { margin-bottom: 0; }
.p-details { margin: 0 0 1rem; }
.p-details > div { display: grid; grid-template-columns: minmax(8rem, 13rem) 1fr; gap: 0.2rem 1rem; padding: 0.55rem 0; border-bottom: 2px solid #e4dedb; }
.p-details dt { font-weight: 700; }
.p-details dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 560px) { .p-details > div { grid-template-columns: 1fr; } }
.p-fieldset { border: 2px solid #e4dedb; border-radius: 12px; padding: 0.8rem 1rem 0.9rem; margin: 0.75rem 0; }
.p-fieldset legend { font-family: var(--slab); font-weight: 700; padding: 0 0.3rem; }
.p-check { display: flex; gap: 0.6rem; align-items: flex-start; font-weight: 400; margin: 0.35rem 0; cursor: pointer; }
.p-check input { width: 1.25rem; height: 1.25rem; margin-top: 0.2rem; flex: none; accent-color: var(--badge); }
.p-checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr)); gap: 0 1rem; margin-top: 0.4rem; }
.p-note { border-left: 4px solid var(--badge); padding: 0.3rem 0 0.3rem 0.8rem; margin: 0 0 0.9rem; }
.p-note p { margin: 0; }
.p-review { margin: 0 0 1rem; padding: 0.9rem 1.1rem; background: #fff; border: 2px solid #e4dedb; border-radius: 12px; }
.p-review p { margin: 0 0 0.5rem; }
.p-review footer { font-size: 0.95rem; color: var(--soft); }
.p-form textarea { font: inherit; padding: 0.6rem 0.75rem; border: 2px solid var(--ink); border-radius: 10px; background: #fff; width: 100%; resize: vertical; }
.p-form .p-check input { width: 1.25rem; height: 1.25rem; padding: 0; }

/* Leads from the Spanish and Marshallese pages */
.p-tag--lang { background: #fff3c4; margin-left: 0.35rem; }
.p-flash--lang { background: #fff3c4; }

/* Caregiving opportunities (both portals) */
.p-flash--warn { background: #fff3c4; }
.p-tag--quiet { background: #fff; color: var(--soft); }
.p-checks--short { grid-template-columns: repeat(auto-fill, minmax(8rem, 1fr)); }
.p-checks--wide { grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); }
.p-people { list-style: none; padding: 0; margin: 0; }
.p-people li { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.9rem; padding: 0.7rem 0; border-bottom: 2px solid #e4dedb; }
.p-people li:last-child { border-bottom: 0; }
.p-opportunity h2 { margin-top: 0; }
.p-opp-when { font-family: var(--slab); font-weight: 700; color: var(--ink); font-size: 1.1rem; }
.p-opp-said { background: var(--teal-pale); border: 2px solid var(--ink); border-radius: 10px; padding: 0.6rem 0.9rem; }

/* Language help (employee portal) */
.p-phrase { border-top: 2px solid #e4dedb; padding: 0.9rem 0; }
.p-phrase:first-of-type { border-top: 0; }
.p-phrase-when { margin: 0 0 0.2rem; font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--soft); }
.p-phrase-text { margin: 0; font-size: 1.35rem; line-height: 1.35; font-weight: 700; color: var(--ink); }
.p-phrase-en { margin: 0.2rem 0 0.5rem; color: var(--soft); }
.p-phrase-actions { margin: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.p-copies { display: grid; gap: 1rem; }
.p-copy label { display: block; font-weight: 700; margin-bottom: 0.25rem; }
.p-copy textarea { width: 100%; font: inherit; font-size: 1rem; padding: 0.5rem; border: 2px solid var(--ink); border-radius: 8px; background: #fff; resize: vertical; }
.p-copy .p-btn { margin-top: 0.35rem; }
.p-steps { padding-left: 1.3rem; }
.p-steps li { margin-bottom: 0.4rem; }
.p-row-form { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; margin: 0 0 1.25rem; }
.p-row-form label { font-weight: 700; }
.p-show { text-align: center; padding: 2rem 0; }
.p-show-text { font-size: clamp(2.2rem, 7vw, 4.5rem); line-height: 1.2; font-weight: 700; color: var(--ink); margin: 0 0 1rem; }
.p-show-en { font-size: 1.25rem; color: var(--soft); margin: 0 0 2rem; }
.p-row-form select { font: inherit; padding: 0.35rem 0.5rem; border: 2px solid var(--ink); border-radius: 8px; background: #fff; }

/* Caregiver paperwork (both portals) */
.p-flash--ok { background: var(--teal-pale); }
.p-row-form input { font: inherit; padding: 0.35rem 0.5rem; border: 2px solid var(--ink); border-radius: 8px; background: #fff; width: 8rem; }
.p-tag--todo { background: #fff3c4; }
.p-doc-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.p-doc-list .p-card { margin: 0; padding: 1.1rem 1.4rem; }
.p-doc-list h2 { margin: 0 0 0.4rem; font-size: 1.2rem; }
.p-doc-list p { margin: 0; }
.p-doc { line-height: 1.6; }
.p-doc p, .p-doc li { max-width: 46rem; }
.p-doc-h { font-size: 1.15rem; margin: 1.5rem 0 0.5rem; }
.p-doc-h3 { font-size: 1.02rem; margin: 1.1rem 0 0.35rem; }
.p-doc-text { white-space: pre-wrap; font: inherit; line-height: 1.55; margin: 0; overflow-wrap: anywhere; }
.p-sign-statement { border-left: 4px solid var(--badge); padding: 0.2rem 0 0.2rem 0.9rem; margin: 0 0 1.1rem; }
.p-sign-statement p { margin: 0 0 0.5rem; }
.p-signed { border-color: var(--badge); }

/* Hopping between the employee portal and Command Center (header) */
.p-account { display: flex; align-items: center; gap: 0.75rem; margin-left: auto; } /* hop button + Sign out, kept together on the right even when the header wraps */
.p-switch { margin: 0; }
.p-switch .p-btn { white-space: nowrap; }

/* Employee portal: directory and profiles. No photos: initials in a brand-color circle. */
.p-avatar { flex: none; display: inline-grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%; border: 3px solid var(--ink); font: 700 1.1rem var(--slab); color: #fff; background: var(--badge); letter-spacing: 0.02em; }
.p-avatar--1 { background: var(--button); }
.p-avatar--2 { background: var(--teal-pale); color: var(--ink); }
.p-avatar--big { width: 5.5rem; height: 5.5rem; font-size: 2rem; box-shadow: 3px 3px 0 var(--ink); }
.p-search { gap: 0.5rem 0.75rem; }
.p-search input[type="search"] { width: min(100%, 18rem); }
.p-directory { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); gap: 1rem; }
.p-directory--list { grid-template-columns: 1fr; gap: 0.25rem; }
.p-person { display: flex; gap: 0.9rem; align-items: flex-start; background: #fff; border: 2px solid var(--ink); border-radius: 14px; padding: 0.9rem 1rem; min-width: 0; }
.p-person--mini { border: 0; border-bottom: 2px solid #e4dedb; border-radius: 0; padding: 0.6rem 0; align-items: center; }
.p-person--mini:last-child { border-bottom: 0; }
.p-person-text { display: flex; flex-direction: column; gap: 0.1rem; min-width: 0; }
.p-person-name { font-family: var(--slab); font-weight: 700; font-size: 1.15rem; color: var(--ink); text-decoration: none; }
.p-person-name:hover { color: var(--badge); text-decoration: underline; }
.p-person-reach { display: flex; flex-wrap: wrap; gap: 0 0.9rem; overflow-wrap: anywhere; }
.p-profile-head { display: flex; flex-wrap: wrap; gap: 1rem 1.4rem; align-items: center; margin-bottom: 1rem; }
.p-profile-head h1 { margin: 0; }
.p-profile-head p { margin: 0.1rem 0 0; }
.p-profile-title { font-size: 1.2rem; color: var(--ink); }
.p-profile-actions { margin-left: auto !important; display: flex; gap: 0.5rem; flex-wrap: wrap; }
.p-command-center-card { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between; background: var(--teal-pale); }
.p-command-center-card h2 { margin-bottom: 0.3rem; }
.p-command-center-card p { margin: 0; max-width: 40rem; }
.p-command-center-card form { margin: 0; }
.p-card--form { max-width: 40rem; }

/* Work queue and cases (Command Center) */
.p-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.p-badge { display: inline-block; font-size: 0.85rem; font-weight: 700; border: 2px solid var(--ink); border-radius: 8px; padding: 0.05rem 0.5rem; margin: 0.1rem 0; background: #fff; color: var(--ink); white-space: nowrap; }
.p-badge--stage { background: var(--teal-pale); }
.p-badge--wait-family, .p-badge--wait-partner, .p-badge--wait-applicant { background: #fff3c4; }
.p-badge--escalated { background: var(--red-deep); border-color: var(--red-deep); color: #fff; }
.p-badge--unowned { background: #fde7e5; border-color: var(--red-deep); color: var(--red-deep); }
.p-due--late { color: var(--red-deep); font-weight: 700; }
.p-badge.p-due--late { background: #fde7e5; border-color: var(--red-deep); }
.p-due--soon { font-weight: 700; }
.p-due--closed { color: var(--soft); }
.p-queue td { vertical-align: top; }
.p-queue td:first-child { white-space: nowrap; }
.p-move { margin: 0 0 0.6rem; }
.p-move .p-btn { margin-top: 0.3rem; }
.p-item--missing { color: var(--red-deep); font-weight: 700; }
.p-item--requested { color: var(--soft); font-weight: 700; }
.p-item--received { color: var(--badge); font-weight: 700; }
.p-item--waived { color: var(--soft); }
.p-actions input[name="note"] { font: inherit; font-size: 0.95rem; padding: 0.25rem 0.45rem; border: 2px solid var(--ink); border-radius: 8px; width: 11rem; max-width: 100%; }
.p-table td.p-actions { white-space: normal; }
.p-events { list-style: none; padding: 0; margin: 1.25rem 0 0; border-top: 2px solid #e4dedb; }
.p-event { padding: 0.55rem 0; border-bottom: 2px solid #e4dedb; font-size: 1rem; overflow-wrap: anywhere; }
.p-event-when { color: var(--soft); font-size: 0.9rem; margin-right: 0.3rem; }
.p-event--escalated { color: var(--red-deep); }
.p-check-h { font-size: 1.05rem; margin: 1.1rem 0 0.35rem; }
.p-checklist { list-style: none; padding: 0; margin: 0; }
.p-checklist li { padding: 0.25rem 0; }
.p-mark { display: inline-block; width: 1.3rem; font-weight: 700; color: var(--badge); }
.p-todo .p-mark { color: var(--soft); }
.p-getting-ready { border-color: var(--badge); }
/* On phones, each case in the queue is a short block instead of a wide row. */
@media (max-width: 700px) {
  .p-queue thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .p-queue, .p-queue tbody, .p-queue tr, .p-queue td { display: block; width: 100%; }
  .p-queue tr { padding: 0.6rem 0; border-bottom: 2px solid #e4dedb; }
  .p-queue td { border: 0; padding: 0.15rem 0; }
  .p-queue td[data-label]::before { content: attr(data-label) ": "; font-weight: 700; color: var(--ink); }
  .p-queue td:first-child { white-space: normal; }
}

/* Employee portal: announcement preview (drafts only; nothing is published) */
.p-announcement { border: 2px dashed var(--ink); border-radius: 12px; padding: 0.9rem 1rem; background: #fff; overflow-wrap: anywhere; }
.p-announcement h3 { margin: 0.5rem 0; }
.p-announcement p { max-width: 40rem; }
.p-btn:disabled, .p-btn:disabled:hover { background: #e4dedb; color: var(--soft); border-color: var(--soft); box-shadow: none; transform: none; cursor: not-allowed; }

/* New-hire checklist (newhires.js): each step's button and owner line, with room to breathe. */
.p-step-form { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.8rem; margin: 0.35rem 0 0.2rem; }

/* ---------- Marketing: printable flyers (employee/marketing.js) ----------
   A flyer keeps its own colors whatever the portal's appearance (light or dark), because it's
   paper. On screen it's a preview; printed, it's the whole page and nothing else. */
.mk-offices { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr)); gap: 0.35rem 1.25rem; }
.mk-offices a { display: block; padding: 0.3rem 0; font-weight: 700; }
.mk-piece { margin-bottom: 0; }
.mk-tools h1 { margin-bottom: 0.5rem; }

.mk-flyer { max-width: 8.5in; margin: 1.25rem auto 2rem; background: #fff; color: #2e2827; border: 3px solid #231f1e; box-shadow: 6px 6px 0 #231f1e; font-family: var(--sans); line-height: 1.4; }
.mk-sheet { padding: clamp(1rem, 4vw, 2.25rem); }
.mk-sample { margin: 0; padding: 0.5rem 1rem; background: #ffd84d; color: #231f1e; border-bottom: 3px solid #231f1e; font-weight: 700; text-align: center; }
.mk-logo { display: block; width: auto; height: clamp(4.5rem, 14vw, 6.5rem); margin: 0 0 1rem; }
.mk-flyer .mk-kicker { margin: 0 0 0.3rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #127a73; font-size: 1rem; }
.mk-flyer .mk-title { margin: 0 0 0.6rem; font-family: var(--slab); font-weight: 800; color: #231f1e; font-size: clamp(2rem, 7vw, 3.25rem); line-height: 1.05; letter-spacing: 0; }
.mk-flyer .mk-lede { margin: 0 0 1.25rem; font-size: clamp(1.15rem, 3vw, 1.4rem); color: #2e2827; max-width: 34em; }
.mk-two { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem 2rem; margin-bottom: 1.5rem; }
.mk-flyer .mk-sheet h2 { margin: 0 0 0.5rem; padding-bottom: 0.3rem; border-bottom: 3px solid #231f1e; font-family: var(--slab); font-weight: 700; color: #231f1e; font-size: 1.3rem; letter-spacing: 0; }
.mk-two p { margin: 0 0 0.6rem; }
.mk-checks { list-style: none; margin: 0; padding: 0; }
.mk-checks li { position: relative; margin: 0 0 0.3rem; padding-left: 1.5rem; }
.mk-checks li::before { content: ""; position: absolute; left: 0; top: 0.35em; width: 0.8rem; height: 0.8rem; background: #189d95; border: 2px solid #231f1e; border-radius: 50%; }
.mk-flyer .mk-note { margin-top: 0.75rem; color: #574e4d; font-size: 1rem; }
/* The office block is the company's teal badge: thick outline, hard shadow, big phone number. */
.mk-office { display: grid; grid-template-columns: 1fr auto; gap: 1.25rem; align-items: center; background: #127a73; color: #fff; border: 3px solid #231f1e; border-radius: 28px; box-shadow: 6px 6px 0 #231f1e; padding: 1.25rem 1.5rem; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.mk-office p { margin: 0 0 0.15rem; }
.mk-flyer .mk-office-name { font-family: var(--slab); font-weight: 700; font-size: 1.25rem; }
.mk-flyer .mk-phone { font-family: var(--slab); font-weight: 800; font-size: clamp(2.1rem, 8vw, 3.1rem); line-height: 1.05; margin-bottom: 0.3rem; }
.mk-flyer .mk-phone a { color: #fff; text-decoration: none; }
.mk-scan { text-align: center; color: #231f1e; background: #fff; border: 3px solid #231f1e; border-radius: 14px; padding: 0.4rem 0.4rem 0.5rem; width: 9.5rem; }
.mk-scan .qr { display: block; width: 100%; height: auto; }
.mk-flyer .mk-scan p { margin: 0; font-weight: 700; font-size: 0.9rem; line-height: 1.2; color: #231f1e; }
.mk-sample, .mk-checks li::before, .mk-scan { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
/* Tear-off tabs: eight across, text running up the page, dashed lines to cut along. */
.mk-tabs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(8, 1fr); border-top: 3px dashed #231f1e; }
.mk-tabs li { display: flex; flex-direction: column; justify-content: center; gap: 0.1rem; writing-mode: vertical-rl; transform: rotate(180deg); height: 2.1in; padding: 0.4rem 0.15rem; border-left: 2px dashed #231f1e; font-size: 0.8rem; line-height: 1.15; color: #231f1e; }
.mk-tabs li:last-child { border-left: 0; }
.mk-tabs strong { font-family: var(--slab); font-size: 1.05rem; }
@media (max-width: 600px) {
  .mk-two { grid-template-columns: 1fr; }
  .mk-office { grid-template-columns: 1fr; justify-items: start; border-radius: 20px; }
}
@media print {
  @page { size: letter; margin: 0.4in; }
  html, body, body.p-employee { background: #fff !important; }
  body { display: block; min-height: 0; }
  .p-header, .p-footer, .p-flash, .p-skip, .p-demo-bar, .mk-tools { display: none !important; }
  .p-main, .p-wrap { padding: 0 !important; margin: 0 !important; max-width: none !important; }
  .mk-flyer { max-width: none; margin: 0; border: 0; box-shadow: none; font-size: 11.5pt; line-height: 1.35; }
  .mk-sheet { padding: 0.15in 0.2in 0.15in; }
  .mk-sample { padding: 0.06in 0.2in; font-size: 10pt; }
  .mk-two { grid-template-columns: 1fr 1fr; margin-bottom: 0.2in; }
  .mk-office { grid-template-columns: 1fr auto; padding: 0.16in 0.25in; }
  .mk-logo { height: 1in; margin-bottom: 0.1in; }
  .mk-flyer .mk-kicker { font-size: 10.5pt; }
  .mk-flyer .mk-title { font-size: 34pt; }
  .mk-flyer .mk-lede { font-size: 14pt; margin-bottom: 0.18in; }
  .mk-flyer .mk-sheet h2 { font-size: 14pt; }
  .mk-flyer .mk-note { font-size: 10.5pt; }
  .mk-flyer .mk-office-name { font-size: 13pt; }
  .mk-flyer .mk-phone { font-size: 32pt; }
  .mk-scan { width: 1.5in; }
  .mk-flyer .mk-scan p { font-size: 8.5pt; }
  /* With tabs, the flyer fills the page so the tabs sit along the bottom edge. */
  .mk-flyer--tabs { display: flex; flex-direction: column; height: 10in; }
  .mk-flyer--tabs .mk-sheet { flex: 1; }
  .mk-flyer--tabs .mk-title { font-size: 28pt; }
  .mk-flyer--tabs .mk-lede { font-size: 12.5pt; margin-bottom: 0.12in; }
  .mk-flyer--tabs .mk-logo { height: 0.8in; }
  .mk-flyer--tabs .mk-checks li { margin-bottom: 0.02in; }
  .mk-flyer--tabs .mk-phone { font-size: 26pt; }
  .mk-flyer--tabs .mk-scan { width: 1.2in; }
  .mk-tabs li { height: 1.7in; font-size: 8pt; }
  .mk-tabs strong { font-size: 10.5pt; }
}
/* The employee portal's dark appearance recolors headings and links; a flyer is paper, so it doesn't follow. */
.mk-flyer .mk-title, .mk-flyer .mk-sheet h2 { color: #231f1e !important; }
.mk-flyer .mk-phone a, .mk-flyer .mk-office p { color: #fff !important; }
.mk-flyer .mk-scan p { color: #231f1e !important; }

.p-form-heading { font-size: 1.15rem; margin: 1.6rem 0 0.2rem; padding-top: 1rem; border-top: var(--line); }

/* Results page: the four totals across the top */
.p-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr)); gap: 1rem; margin: 0 0 1.5rem; }
.p-stat { background: #fff; border: var(--line); border-radius: 14px; padding: 0.9rem 1.1rem; }
.p-stat strong { display: block; font-size: 2rem; line-height: 1.1; }
.p-stat span { color: var(--muted, #4a5553); }
