/* Caregiver search. Builds on site.css (same tokens, type, buttons, chips, form styles). */

.skip { position: absolute; left: -9999px; top: 0; background: var(--navy); color: #fff; padding: 10px 14px; z-index: 100; border-radius: 0 0 10px 0; }
.skip:focus { left: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Preview bar (remove before launch) */
.preview-bar { background: var(--accent-soft); border-bottom: 1px solid #ecd6b6; font-size: 14px; color: #6b4a1a; }
.preview-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; flex-wrap: wrap; }
.preview-toggle { font: inherit; font-weight: 700; font-size: 13.5px; background: #fff; border: 1.5px solid #e2c59a; color: #6b4a1a; border-radius: 999px; padding: 5px 12px; cursor: pointer; }
.preview-toggle[aria-pressed="true"] { background: #6b4a1a; color: #fff; border-color: #6b4a1a; }
.review { display: none; margin-top: 14px; background: #fffaf2; border: 1.5px dashed #e2c59a; border-radius: 12px; padding: 12px 14px; font-size: 13.5px; color: #6b4a1a; }
.review strong { display: block; margin-bottom: 4px; }
.review ul { margin: 0; padding-left: 18px; }
body.show-notes .review { display: block; }

.nav a[aria-current="page"] { color: var(--navy); }

/* Hero */
.find-hero { background: linear-gradient(180deg, #eef6f5 0%, #f8faf9 70%, #ffffff 100%); padding: 48px 0 36px; }
.find-hero h1 { max-width: 720px; }
.find-search { grid-template-columns: 1fr auto; }

/* Layout */
.results-sec { padding: 28px 0 76px; }
.results-grid { display: grid; grid-template-columns: 300px 1fr; gap: 32px; align-items: start; }

/* Filters */
.filters-wrap { position: sticky; top: 86px; }
.filters-panel { background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: 22px 20px; }
.filters-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.filters-head h2 { font-size: 19px; margin: 0; letter-spacing: -.2px; }
.link-btn { background: none; border: none; font: inherit; font-size: 14px; font-weight: 700; color: var(--teal); cursor: pointer; padding: 4px; }
.fgroup { border: none; padding: 16px 0 4px; box-shadow: inset 0 1px 0 var(--line); margin-top: 12px; min-width: 0; }
.fgroup:first-of-type { box-shadow: none; margin-top: 0; }
.fgroup legend { float: left; width: 100%; }
.fgroup legend + * { clear: both; }
.fgroup legend { font-size: 12.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .8px; color: var(--muted); margin-bottom: 10px; padding: 0; }
.fgroup .chips { gap: 8px; }
.fgroup .chip { padding: 8px 13px; font-size: 14px; }
.fhint { font-size: 12.5px; color: var(--muted); margin-top: 8px; }

/* Day keys: the week as a row of pressable keys */
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.day-key { font: inherit; font-weight: 800; font-size: 13px; color: var(--navy); background: #fff; border: 1.5px solid var(--line); border-bottom-width: 4px; border-radius: 10px; padding: 10px 0 8px; cursor: pointer; transition: transform .08s, border-color .15s, background .15s; }
.day-key:hover { border-color: var(--teal); }
.day-key[aria-pressed="true"] { background: var(--teal); color: #fff; border-color: var(--teal-dk); transform: translateY(2px); border-bottom-width: 2px; margin-bottom: 2px; }

/* Results */
.results-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
#result-count { font-weight: 700; color: var(--navy); font-size: 15.5px; }
#result-count span { color: var(--muted); font-weight: 600; }
.cg-results { list-style: none; display: grid; gap: 16px; }

.cg-card { display: grid; grid-template-columns: 76px 1fr auto; gap: 20px; align-items: center; background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: 22px 24px; box-shadow: 0 6px 18px rgba(11,44,61,.05); transition: box-shadow .15s, border-color .15s; }
.cg-card:hover { border-color: #b9d6d4; box-shadow: var(--shadow); }
.avatar { width: 76px; height: 76px; border-radius: 50%; background: var(--teal-soft); color: var(--teal-dk); display: grid; place-items: center; font-weight: 800; font-size: 24px; letter-spacing: .5px; border: 3px solid #fff; box-shadow: 0 0 0 1.5px var(--line); }
.avatar.lg { width: 128px; height: 128px; font-size: 40px; }
.cg-main h3 { font-size: 20px; margin-bottom: 2px; }
.cg-main h3 a { color: var(--navy); text-decoration: none; }
.cg-main h3 a:hover { color: var(--teal); }
.where { font-size: 14.5px; color: var(--muted); font-weight: 600; line-height: 1.7; }
.where svg { width: 15px; height: 15px; color: var(--teal); display: inline-block; vertical-align: -2px; margin-right: 5px; }
.where .match-tag { display: inline-block; margin-left: 6px; line-height: 1.5; }
.match-tag { font-size: 12px; font-weight: 800; color: var(--teal-dk); background: var(--teal-soft); border-radius: 999px; padding: 2px 9px; }
.match-tag.near { color: #94601f; background: var(--accent-soft); }
.snippet { color: var(--ink); font-size: 15px; margin: 8px 0 10px; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.facts { display: flex; flex-wrap: wrap; gap: 6px 8px; }
.fact { font-size: 13px; font-weight: 700; color: var(--navy); background: #f3f7f7; border-radius: 8px; padding: 4px 9px; }

.cg-side { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.sched { display: flex; gap: 3px; }
.sched span { width: 26px; height: 30px; border-radius: 6px; display: grid; place-items: center; font-size: 11px; font-weight: 800; color: #9fb2b5; background: #f1f4f4; }
.sched span.on { background: var(--teal); color: #fff; }
.sched-hours { font-size: 13px; color: var(--muted); font-weight: 600; text-align: right; }

.empty { background: var(--sand); border-radius: 20px; padding: 30px; text-align: center; }
.empty h3 { margin-bottom: 6px; }
.empty p { color: var(--muted); margin-bottom: 16px; }

/* Profile */
.profile-sec { padding: 34px 0 76px; background: linear-gradient(180deg, #eef6f5 0%, #ffffff 340px); }
.back { display: inline-block; font-weight: 700; text-decoration: none; margin-bottom: 18px; font-size: 15px; }
.profile { display: grid; grid-template-columns: 1fr 340px; gap: 32px; align-items: start; }
.p-head { display: flex; gap: 24px; align-items: center; margin-bottom: 26px; }
.p-head h1 { margin-bottom: 6px; font-size: clamp(30px, 4vw, 44px); }
.p-block { background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: 26px; margin-bottom: 18px; }
.p-block h2 { font-size: 18px; letter-spacing: -.2px; margin-bottom: 10px; }
.p-bio { font-size: 17px; color: var(--ink); }
.p-love { font-size: 17px; color: var(--navy); font-style: italic; border-top: 1px dashed var(--line); margin-top: 16px; padding-top: 16px; }
.p-love b { display: block; font-style: normal; font-size: 12.5px; text-transform: uppercase; letter-spacing: .8px; color: var(--accent); margin-bottom: 4px; }
.dl { display: grid; grid-template-columns: 1fr; gap: 0; }
.dl > div { display: grid; grid-template-columns: 150px 1fr; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); font-size: 15.5px; }
.dl > div:first-child { border-top: none; }
.dl dt { color: var(--muted); font-weight: 700; font-size: 14px; }
.dl dd { color: var(--ink); font-weight: 600; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; }
.badge-c { display: inline-block; font-weight: 800; font-size: 14px; color: var(--teal-dk); background: var(--teal-soft); border-radius: 10px; padding: 6px 12px; }
.badge-c.none { color: var(--muted); background: #f3f7f7; font-weight: 700; }

.p-side { position: sticky; top: 86px; }
.p-side .form-card { padding: 24px; }
.p-side h3 { font-size: 19px; margin-bottom: 8px; }
.sched.big { margin: 6px 0 6px; }
.sched.big span { width: auto; flex: 1; height: 44px; font-size: 12.5px; border-radius: 9px; }
.p-side .sched-hours { text-align: left; margin-bottom: 18px; }
.p-side .btn { width: 100%; }
.p-side .fine { font-size: 12.5px; color: var(--muted); margin-top: 10px; }

/* Request dialog */
.req-dialog { border: none; padding: 0; background: transparent; width: min(560px, calc(100% - 24px)); max-height: calc(100vh - 24px); margin: auto; }
.req-dialog::backdrop { background: rgba(11,44,61,.55); }
.req-dialog .form-card { box-shadow: 0 24px 60px rgba(11,44,61,.3); }
.req-head { display: flex; justify-content: space-between; align-items: start; gap: 12px; }
.x { background: none; border: none; font-size: 30px; line-height: 1; color: var(--muted); cursor: pointer; padding: 0 4px; }
.preview-notice { background: var(--accent-soft); color: #6b4a1a; border-radius: 12px; padding: 10px 14px; font-size: 14px; margin-bottom: 16px; }
.sent { margin-top: 14px; background: var(--teal-soft); color: var(--teal-dk); border-radius: 12px; padding: 12px 14px; font-weight: 600; font-size: 14.5px; }

@media (max-width: 960px) {
  .results-grid { grid-template-columns: 1fr; }
  .filters-wrap { position: static; }
  .profile { grid-template-columns: 1fr; }
  .p-side { position: static; }
}
@media (max-width: 600px) {
  .find-hero { padding: 32px 0 24px; }
  .find-search { grid-template-columns: 1fr; }
  .cg-card { grid-template-columns: 60px 1fr; padding: 18px; gap: 14px; align-items: start; }
  .avatar { width: 60px; height: 60px; font-size: 19px; }
  .cg-side { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; flex-wrap: wrap; }
  .sched span { width: 24px; height: 26px; }
  .sched-hours { text-align: left; }
  .p-head { flex-direction: column; align-items: flex-start; gap: 14px; }
  .avatar.lg { width: 96px; height: 96px; font-size: 30px; }
  .dl > div { grid-template-columns: 1fr; gap: 2px; }
  .p-block { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Filters collapse on small screens */
.filters-toggle { display: none; }
@media (max-width: 960px) {
  .filters-toggle { display: flex; width: 100%; justify-content: space-between; align-items: center; background: #fff; border: 1.5px solid var(--line); border-radius: 14px; padding: 14px 16px; font: inherit; font-weight: 800; color: var(--navy); font-size: 15.5px; cursor: pointer; }
  .filters-toggle .count { font-size: 13px; color: var(--teal-dk); background: var(--teal-soft); border-radius: 999px; padding: 2px 10px; }
  .filters-panel { display: none; margin-top: 10px; }
  .filters-panel.open { display: block; }
}

/* Polish 2026-10-26: even spacing between stacked fields in the request form */
.req-dialog .row { row-gap: 0; }

/* Founding Caregiver badge (subtle, uses accent palette) */
.founding-badge { display: inline-flex; align-items: center; gap: 4px; vertical-align: 3px; margin-left: 8px; font-size: 11.5px; font-weight: 800; letter-spacing: .2px; color: #94601f; background: var(--accent-soft); border-radius: 999px; padding: 2px 9px 2px 7px; white-space: nowrap; }
.founding-badge svg { width: 12px; height: 12px; }
.p-founding { margin: 0 0 6px; }
.p-founding .founding-badge { margin-left: 0; font-size: 12.5px; padding: 3px 11px 3px 9px; }
