/*
 * Home health and home care: the hand-off.
 * Every class is prefixed hc-. Kitchen-table warm paper for reading, spruce
 * green for "answered", marigold for the lamp left on in the window, clay red
 * for the calls an agency loses, and the dark of a night shift for the one
 * chapter about the call that is not scheduling.
 */
.hc-page {
  --hc-paper: #f6f1e6;
  --hc-sheet: #fffdf7;
  --hc-ink: #1d2823;
  --hc-soft: #3b4943;
  --hc-muted: #5d6a63;
  --hc-rule: #dbd2bd;
  --hc-spruce: #1f5a4c;
  --hc-spruce-deep: #134035;
  --hc-spruce-wash: #dbe9e1;
  --hc-lamp: #d8982a;
  --hc-lamp-deep: #7d5410;
  --hc-lamp-wash: #f7e6bd;
  --hc-clay: #a8452c;
  --hc-clay-deep: #86331f;
  --hc-clay-wash: #f3dcd2;
  --hc-linen: #ece5d3;
  --hc-night: #121f1b;
  --hc-night-2: #1a2b26;
  --hc-on-night: #eaf0ec;
  --hc-on-night-soft: #aebdb5;
  --hc-glow: #f3cf7c;
  --hc-mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, "Courier New", monospace;
  --hc-hand: "Bradley Hand", "Segoe Print", "Marker Felt", "Comic Sans MS", cursive;
  background: var(--hc-paper);
  color: var(--hc-ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: clip;
}
.hc-page *, .hc-page *::before, .hc-page *::after { box-sizing: border-box; }
.hc-page ::selection { background: var(--hc-glow); color: var(--hc-ink); }
.hc-page a:focus-visible,
.hc-page summary:focus-visible,
.hc-page [tabindex]:focus-visible { outline: 2px solid var(--hc-spruce); outline-offset: 4px; }
.hc-close a:focus-visible { outline-color: var(--hc-glow); }
.hc-page section[id] { scroll-margin-top: 130px; }
.hc-wrap { width: min(100% - 80px, 1280px); margin-inline: auto; }

.hc-page h1, .hc-page h2 {
  font-family: var(--font-serif);
  font-weight: 500;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.hc-page h2 { font-size: clamp(2.05rem, 3.3vw, 3.4rem); line-height: 1.08; }
.hc-page h1 em, .hc-page h2 em { font-style: italic; }
.hc-page h3 { font-size: 1.06rem; font-weight: 700; line-height: 1.3; }
.hc-section { padding: clamp(64px, 8vw, 108px) 0; }
.hc-section p { max-width: 68ch; }
.hc-section h2 + p { margin-top: 18px; }
.hc-page p a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.hc-page p a:hover { color: var(--hc-spruce); }
.hc-tie { margin-top: 24px; font-weight: 500; }
.hc-table-scroll { overflow-x: auto; margin-top: 30px; }

/* Buttons and quiet links */
.hc-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-top: 24px; }
.hc-button {
  display: inline-flex; align-items: center; gap: 12px; min-height: 54px; padding: 0 26px; border-radius: 999px;
  background: var(--hc-spruce-deep); color: #fff; font-weight: 700; font-size: 15.5px; text-decoration: none;
  box-shadow: 0 10px 22px -12px rgba(19, 64, 53, 0.85); transition: background-color 160ms ease-out, transform 160ms ease-out;
}
.hc-button:hover { background: var(--hc-spruce); transform: translateY(-1px); }
.hc-quiet-link {
  display: inline-flex; align-items: center; gap: 9px; min-height: 44px; color: inherit; font-weight: 600; font-size: 15px;
  text-decoration: underline; text-decoration-color: rgba(29, 40, 35, 0.4); text-underline-offset: 5px;
}
.hc-quiet-link:hover { text-decoration-color: currentColor; }
.hc-close .hc-button { background: var(--hc-glow); color: var(--hc-ink); box-shadow: 0 10px 22px -12px rgba(0, 0, 0, 0.7); }
.hc-close .hc-button:hover { background: #fbe3a4; }
.hc-close .hc-quiet-link { text-decoration-color: rgba(234, 240, 236, 0.45); }

/* Hero */
.hc-hero-shell {
  padding-top: 101px;
  background-color: var(--hc-paper);
  background-image: radial-gradient(ellipse 55% 60% at 80% 44%, #fff7e0 0, rgba(255, 247, 224, 0) 72%);
  border-bottom: 4px solid var(--hc-lamp);
}
.hc-hero {
  display: grid; grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr); gap: clamp(32px, 4vw, 60px);
  align-items: start; padding: clamp(36px, 4vw, 56px) 0 clamp(56px, 6vw, 84px);
}
.hc-hero-copy { padding: 6px 0; }
.hc-hero h1 { font-size: clamp(2.5rem, 4.3vw, 4.1rem); line-height: 1.03; color: var(--hc-ink); }
.hc-hero h1 .h1-kicker {
  display: block; margin-bottom: 20px; font-family: var(--font-sans); font-size: 12.5px; font-weight: 800;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--hc-spruce-deep);
}
.hc-h1-line { display: inline; }
.hc-lede { margin-top: 22px; font-size: clamp(1.05rem, 1.3vw, 1.2rem); color: var(--hc-soft); max-width: 52ch; }
.hc-price { display: grid; gap: 6px; margin-top: 22px; font-size: 15.5px; color: var(--hc-soft); }
.hc-price strong { color: var(--hc-ink); font-weight: 800; margin-right: 6px; }

/* The signature: the same 72 hours at three agencies */
.hc-hours { margin: 0; }
.hc-hours-top {
  padding: 13px 18px; border-radius: 12px 12px 0 0; background: var(--hc-ink); color: #fff;
  font-size: 13.5px; font-weight: 700;
}
.hc-lanes {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); background: var(--hc-sheet);
  border: 1px solid var(--hc-rule); border-top: 0; border-radius: 0 0 14px 14px; overflow: hidden;
  box-shadow: 0 24px 50px -30px rgba(29, 40, 35, 0.5);
}
.hc-lane { display: flex; flex-direction: column; padding: 18px 16px 16px; border-right: 1px solid var(--hc-rule); }
.hc-lane:last-child { border-right: 0; }
.hc-lane-name { margin: 0 0 14px; font-size: 13px; font-weight: 800; line-height: 1.3; letter-spacing: 0.02em; }
.hc-lane-lost .hc-lane-name { color: var(--hc-clay-deep); }
.hc-lane-won { background: var(--hc-spruce-wash); }
.hc-lane-won .hc-lane-name { color: var(--hc-spruce-deep); }
.hc-lane ol { list-style: none; margin: 0; padding: 0 0 0 14px; border-left: 2px solid var(--hc-rule); display: grid; gap: 14px; align-content: start; flex: 1; }
.hc-lane-won ol { border-left-color: var(--hc-spruce); }
.hc-lane li { position: relative; display: grid; gap: 2px; font-size: 13.5px; line-height: 1.45; }
.hc-lane li::before {
  content: ""; position: absolute; left: -20px; top: 5px; width: 10px; height: 10px; border-radius: 50%;
  background: var(--hc-sheet); border: 2px solid var(--hc-muted);
}
.hc-lane-lost li::before { border-color: var(--hc-clay); }
.hc-lane-won li::before { border-color: var(--hc-spruce); background: var(--hc-spruce); }
.hc-step-time { font-family: var(--hc-mono); font-size: 11.5px; color: var(--hc-muted); }
.hc-step-text { color: var(--hc-ink); }
.hc-lane-result {
  margin: 16px 0 0; padding-top: 12px; border-top: 1px solid var(--hc-rule); font-size: 13.5px; font-weight: 800;
}
.hc-lane-lost .hc-lane-result { color: var(--hc-clay-deep); }
.hc-lane-won .hc-lane-result { color: var(--hc-spruce-deep); border-top-color: rgba(31, 90, 76, 0.3); }
.hc-hours figcaption { margin-top: 12px; font-size: 13px; color: var(--hc-muted); max-width: 60ch; }
.hc-models { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-top: 12px; font-size: 13px; color: var(--hc-muted); }
.hc-model { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; color: var(--hc-ink); }
.hc-model-maker { font-weight: 500; color: var(--hc-muted); }

/* Jump nav */
.hc-jump { position: sticky; top: 70px; z-index: 5; background: rgba(246, 241, 230, 0.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--hc-rule); }
.hc-jump .hc-wrap { display: flex; gap: 6px 22px; overflow-x: auto; scrollbar-width: none; }
.hc-jump a { flex: none; display: inline-flex; align-items: center; min-height: 48px; font-size: 13.5px; font-weight: 700; color: var(--hc-soft); text-decoration: none; white-space: nowrap; }
.hc-jump a:hover { color: var(--hc-spruce); }

/* Intro */
.hc-two { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.hc-two p + p { margin-top: 16px; }
.hc-aside { padding: 26px; background: var(--hc-sheet); border: 1px solid var(--hc-rule); border-top: 4px solid var(--hc-lamp); border-radius: 8px; }
.hc-aside ul { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 12px; font-size: 14.5px; color: var(--hc-soft); }

/* Tables */
.hc-phones-table, .hc-ref-table {
  width: 100%; border-collapse: collapse; background: var(--hc-sheet); border: 1px solid var(--hc-rule); font-size: 14.5px;
}
.hc-phones-table { min-width: 900px; }
.hc-ref-table { min-width: 760px; }
.hc-phones-table th, .hc-phones-table td, .hc-ref-table th, .hc-ref-table td {
  padding: 14px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--hc-rule);
}
.hc-phones-table thead th, .hc-ref-table thead th {
  background: var(--hc-spruce-deep); color: #fff; font-size: 12.5px; letter-spacing: 0.06em; text-transform: uppercase;
}
.hc-phones-table tbody th, .hc-ref-table tbody th { font-weight: 700; width: 24%; }
.hc-phones-table { margin-top: 44px; }
.hc-tag { display: inline-block; padding: 3px 12px; border-radius: 999px; background: var(--hc-lamp-wash); color: var(--hc-lamp-deep); font-size: 12.5px; font-weight: 800; }

/* Chapters */
.hc-chapter { border-top: 1px solid var(--hc-rule); }
.hc-chapter-head { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 28px; align-items: start; }
.hc-chapter-head p + p { margin-top: 16px; }
.hc-stamp {
  margin: 0; display: inline-block; justify-self: start; padding: 12px 16px; border: 2px solid var(--hc-spruce); border-radius: 6px;
  font-family: var(--hc-mono); font-size: 1.15rem; font-weight: 700; line-height: 1.25; color: var(--hc-spruce-deep);
  background: var(--hc-sheet); transform: rotate(-2deg); box-shadow: 4px 4px 0 var(--hc-lamp-wash);
}

/* Chapter 1: the intake card and rules */
.hc-intake-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(28px, 4vw, 56px); margin-top: 40px; align-items: start; }
.hc-card { background: var(--hc-sheet); border: 1px solid var(--hc-rule); border-top: 5px solid var(--hc-lamp); border-radius: 6px; box-shadow: 0 18px 40px -28px rgba(29, 40, 35, 0.5); padding: 22px 24px; }
.hc-card-title { margin: 0 0 8px; font-size: 12.5px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--hc-lamp-deep); }
.hc-card dl { margin: 0; }
.hc-card dl > div { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--hc-rule); font-size: 14.5px; }
.hc-card dt { font-weight: 800; color: var(--hc-spruce-deep); font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.04em; }
.hc-card dd { margin: 0; }
.hc-rules { padding: 24px 26px; background: var(--hc-sheet); border: 1px dashed var(--hc-spruce); border-radius: 8px; }
.hc-rules ul { margin: 12px 0 0; padding-left: 20px; display: grid; gap: 6px; color: var(--hc-soft); }
.hc-rules > p { margin-top: 16px; font-size: 14.5px; }
.hc-referral-decisions { max-width: 820px; margin-top: 40px; padding-top: 28px; border-top: 2px solid var(--hc-spruce); scroll-margin-top: 150px; }
.hc-referral-decisions h3 { font-family: var(--font-serif); font-size: clamp(1.4rem, 3vw, 1.8rem); line-height: 1.3; }
.hc-referral-decisions p { margin-top: 16px; }
.hc-referral-decisions ol { list-style: decimal; display: grid; gap: 18px; margin: 24px 0; padding-left: 24px; }
.hc-referral-decisions li { padding-left: 6px; }

/* Chapter 3: an applicant's first hour */

/* Chapter 4: the board */

/* Urgent: the dark chapter */

/* Search */
.hc-search p + p { margin-top: 16px; }
.hc-pins { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 14px; }
.hc-pins li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 8px; align-items: start; padding: 18px; background: var(--hc-sheet); border: 1px solid var(--hc-rule); border-radius: 8px; }
.hc-pin-n { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--hc-lamp); color: var(--hc-ink); font-weight: 800; font-size: 13px; }
.hc-pins div { display: grid; gap: 2px; font-size: 14.5px; color: var(--hc-soft); }
.hc-pins strong { color: var(--hc-ink); }
.hc-pins p { margin: 0; }

/* Kinds of agency */

/* How */
.hc-steps { list-style: none; counter-reset: step; margin: 26px 0 0; padding: 0; display: grid; gap: 18px; }
.hc-steps li { counter-increment: step; position: relative; padding: 0 0 0 54px; }
.hc-steps li::before { content: counter(step); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--hc-spruce); color: #fff; font-weight: 800; }
.hc-steps p { margin-top: 4px; color: var(--hc-soft); }

/* FAQ */
.hc-faq { border-top: 1px solid var(--hc-rule); }
.hc-faq-grid { display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.hc-faq-list { display: grid; gap: 0; border-top: 1px solid var(--hc-rule); }
.hc-faq-list details { border-bottom: 1px solid var(--hc-rule); }
.hc-faq-list summary { display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 20px 0; cursor: pointer; font-weight: 700; list-style: none; }
.hc-faq-list summary::-webkit-details-marker { display: none; }
.hc-faq-list summary span { flex: none; font-size: 22px; color: var(--hc-spruce); transition: transform 160ms; }
.hc-faq-list details[open] summary span { transform: rotate(45deg); }
.hc-faq-list details p { padding: 0 0 22px; color: var(--hc-soft); max-width: 70ch; }

/* Breadcrumb, close */
.hc-breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; padding: 22px 0 8px; font-size: 12.5px; color: var(--hc-muted); }
.hc-breadcrumb a { color: inherit; text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.hc-breadcrumb a:hover { color: var(--hc-ink); text-decoration: underline; }
.hc-close { background: var(--hc-night); color: var(--hc-on-night); padding: clamp(64px, 8vw, 100px) 0; }
.hc-close-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.6fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.hc-close h2 { color: #fff; font-size: clamp(2.1rem, 3.6vw, 3.6rem); }
.hc-close p { margin-top: 18px; max-width: 58ch; color: var(--hc-on-night-soft); }
.hc-close aside { display: grid; gap: 4px; align-content: start; }
.hc-close aside strong { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--hc-on-night-soft); margin-bottom: 8px; }
.hc-close aside a { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 52px; border-bottom: 1px solid rgba(255, 255, 255, 0.14); color: #fff; text-decoration: none; font-weight: 600; }
.hc-close aside a:hover { color: var(--hc-glow); }

/* Responsive */
/* Six systems: the care log */

@media (max-width: 1000px) {
  .hc-hero, .hc-two, .hc-intake-grid, .hc-faq-grid, .hc-close-grid { grid-template-columns: 1fr; }
  .hc-chapter-head { grid-template-columns: 1fr; gap: 14px; }
  .hc-stamp br { display: none; }
}
@media (max-width: 760px) {
  .hc-lanes { grid-template-columns: 1fr; }
  .hc-lane { border-right: 0; border-bottom: 1px solid var(--hc-rule); }
  .hc-lane:last-child { border-bottom: 0; }
}
@media (max-width: 640px) {
  .hc-wrap { width: min(100% - 32px, 1280px); }
  .hc-hero-shell { padding-top: 88px; }
  .hc-card dl > div { grid-template-columns: 1fr; gap: 2px; }
}
@media (prefers-reduced-motion: reduce) {
  .hc-button, .hc-faq-list summary span { transition: none; }
}
