/* Layout: teal brand band on top, a browsable grid of sitter cards, then one page per sitter (hash routes).
     Colors and type follow the Dependable Sitters Co. Facebook page: deep teal, coral, pale blue-white, round bold sans. */
  :root {
    --bg: #F3F8FA;
    --surface: #FFFFFF;
    --ink: #12333F;
    --muted: #4B6A77;
    --head: #0F4A5F;
    --band: #1F5C73;
    --band-ink: #FFFFFF;
    --coral: #F2705F;
    --coral-btn: #D9493A;
    --blush: #FCE9E6;
    --line: #D3E3EA;
    --chip: #E3EFF4;
    --chip-on: #0F4A5F;
    --chip-on-ink: #FFFFFF;
    --soft: #EAF3F7;
    --font-display: "Poppins", "Segoe UI", system-ui, sans-serif;
    --font-body: "Quicksand", "Segoe UI", system-ui, sans-serif;
  }
  @media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
      --bg: #0C2A36; --surface: #133848; --ink: #EAF4F7; --muted: #A9C4CE; --head: #A6DAEB;
      --band: #0A222C; --blush: #3B2A30; --line: #25505F; --chip: #1B4455; --chip-on: #A6DAEB;
      --chip-on-ink: #0C2A36; --soft: #17404F; color-scheme: dark;
    }
  }
  :root[data-theme="dark"] {
    --bg: #0C2A36; --surface: #133848; --ink: #EAF4F7; --muted: #A9C4CE; --head: #A6DAEB;
    --band: #0A222C; --blush: #3B2A30; --line: #25505F; --chip: #1B4455; --chip-on: #A6DAEB;
    --chip-on-ink: #0C2A36; --soft: #17404F; color-scheme: dark;
  }

  * { box-sizing: border-box; }
  body {
    background: var(--bg); color: var(--ink);
    font-family: var(--font-body); font-size: 17px; line-height: 1.55; font-weight: 500;
    padding-left: max(16px, env(safe-area-inset-left, 0px));
    padding-right: max(16px, env(safe-area-inset-right, 0px));
    padding-block: 0;
  }
  h1, h2, h3 { font-family: var(--font-display); color: var(--head); line-height: 1.15; margin: 0; text-wrap: balance; }
  a { color: inherit; }
  :focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; border-radius: 8px; }
  .wrap { max-width: 1040px; margin: 0 auto; }

  /* Brand band */
  .band { margin-inline: calc(-1 * max(16px, env(safe-area-inset-left, 0px))); padding-inline: max(16px, env(safe-area-inset-left, 0px)); background: var(--band); color: var(--band-ink); }
  .band .wrap { display: flex; align-items: center; gap: 14px; padding-block: 14px; }
  .band a.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; }
  .brand svg { width: 46px; height: 46px; flex: none; }
  .brand span { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; line-height: 1.1; }
  .brand small { display: block; font-family: var(--font-body); font-weight: 600; font-size: .85rem; opacity: .85; margin-top: 3px; }

  main { padding-block: 28px 56px; outline: none; }

  /* Directory */
  .eyebrow { display: inline-block; background: var(--coral); color: #fff; font-family: var(--font-display); font-weight: 700; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; }
  .intro h1 { font-size: clamp(1.9rem, 6vw, 2.8rem); margin-top: 14px; }
  .intro .rule { width: 72px; height: 4px; background: var(--coral); border-radius: 4px; margin: 14px 0; }
  .intro p { margin: 0; max-width: 56ch; color: var(--muted); }

  .filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 10px; }
  .filters button { font: inherit; font-weight: 700; font-size: .92rem; background: var(--chip); color: var(--head); border: 2px solid transparent; border-radius: 999px; padding: 8px 14px; cursor: pointer; min-height: 40px; }
  .filters button[aria-pressed="true"] { background: var(--chip-on); color: var(--chip-on-ink); }
  .count { font-size: .92rem; color: var(--muted); margin: 0 0 16px; min-height: 1.5em; }

  .grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 16px; }
  .card { display: flex; flex-direction: column; gap: 12px; min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 20px; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease; }
  .card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(15, 74, 95, .12); }
  .card-top { display: flex; align-items: center; gap: 14px; }
  .avatar { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; flex: none; font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; color: #fff; }
  .avatar.teal { background: #1F5C73; } .avatar.coral { background: #D9493A; }
  .card h2 { font-size: 1.3rem; }
  .tag { display: inline-block; font-family: var(--font-display); font-size: .72rem; font-weight: 600; letter-spacing: .02em; padding: 3px 10px; border-radius: 999px; background: var(--blush); color: var(--head); margin-top: 4px; }
  .card .headline { margin: 0; font-weight: 600; }
  .facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: .94rem; color: var(--muted); }
  .facts b { color: var(--ink); font-weight: 700; }
  .more { margin-top: auto; font-family: var(--font-display); font-weight: 600; font-size: .95rem; color: var(--coral-btn); }
  .empty { background: var(--surface); border: 2px dashed var(--line); border-radius: 20px; padding: 28px; text-align: center; color: var(--muted); }

  .panel { margin-top: 40px; border-radius: 24px; padding: 28px 22px; }
  .panel.dark { background: var(--band); color: var(--band-ink); }
  .panel.dark h2 { color: #fff; }
  .panel.light { background: var(--surface); border: 1px solid var(--line); }
  .panel h2 { font-size: 1.5rem; }
  .panel .rule { width: 60px; height: 4px; background: var(--coral); border-radius: 4px; margin: 12px 0 18px; }
  .steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
  .steps li { display: flex; gap: 14px; align-items: center; font-weight: 600; }
  .steps .n { flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--coral); color: #fff; font-family: var(--font-display); font-weight: 700; display: grid; place-items: center; }
  .asks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-weight: 600; }
  .asks li { display: flex; gap: 12px; align-items: baseline; }
  .asks li::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--coral); flex: none; transform: translateY(1px); }

  .btn { display: inline-block; margin-top: 20px; background: var(--coral-btn); color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; text-decoration: none; padding: 14px 26px; border-radius: 999px; min-height: 48px; }
  .btn:hover { filter: brightness(1.06); }
  .btn.white { background: #fff; color: #0F4A5F; }
  .hint { font-size: .88rem; opacity: .8; margin: 8px 0 0; }

  /* Profile page */
  .back { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 600; color: var(--head); text-decoration: none; margin-bottom: 18px; min-height: 40px; }
  .profile-head { display: flex; gap: 18px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 22px; }
  .profile-head .avatar { width: 84px; height: 84px; font-size: 2.3rem; }
  .profile-head h1 { font-size: clamp(1.7rem, 5vw, 2.3rem); }
  .profile-head p { margin: 6px 0 0; font-weight: 600; color: var(--muted); }
  .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
  .tags .tag { margin: 0; }
  .tags .tag.plain { background: var(--chip); }

  .sections { display: grid; gap: 16px; margin-top: 16px; grid-template-columns: 1fr; }
  @media (min-width: 760px) { .sections { grid-template-columns: 1fr 1fr; } .sections .wide { grid-column: 1 / -1; } }
  .box { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 20px 22px; min-width: 0; }
  .box h2 { font-size: 1.1rem; margin-bottom: 10px; }
  .box p { margin: 0; }
  .chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
  .chips li { background: var(--soft); color: var(--head); font-weight: 700; font-size: .9rem; padding: 6px 12px; border-radius: 999px; }
  dl.kv { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; }
  dl.kv dt { color: var(--muted); font-weight: 600; }
  dl.kv dd { margin: 0; font-weight: 700; }
  .scroll { overflow-x: auto; }
  table.avail { border-collapse: collapse; width: 100%; min-width: 340px; text-align: center; font-size: .9rem; }
  table.avail th { font-family: var(--font-display); font-weight: 600; color: var(--muted); padding: 4px 2px 8px; }
  table.avail th:first-child, table.avail td:first-child { text-align: left; font-weight: 700; padding-right: 8px; white-space: nowrap; }
  table.avail td { padding: 6px 2px; border-top: 1px solid var(--line); }
  .dot { display: inline-block; width: 18px; height: 18px; border-radius: 50%; background: var(--coral); vertical-align: middle; }
  .dot.off { background: transparent; border: 2px solid var(--line); }
  .note { margin-top: 10px; font-size: .92rem; color: var(--muted); }
  blockquote { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; line-height: 1.4; color: var(--head); border-left: 4px solid var(--coral); padding-left: 16px; }
  .checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-weight: 700; }
  .checks li { display: flex; gap: 10px; align-items: baseline; }
  .checks li::before { content: "\2713"; color: #fff; background: var(--coral-btn); width: 22px; height: 22px; border-radius: 50%; display: inline-grid; place-items: center; font-size: .8rem; flex: none; transform: translateY(2px); }
  .checks li.todo::before { content: ""; background: transparent; border: 2px solid var(--line); }
  .checks small { display: block; color: var(--muted); font-weight: 600; }

  .mock { margin-inline: calc(-1 * max(16px, env(safe-area-inset-left, 0px))); padding: 8px max(16px, env(safe-area-inset-left, 0px)); background: var(--blush); color: var(--head); font-family: var(--font-display); font-weight: 600; font-size: .82rem; text-align: center; }
  footer { margin-top: 48px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
  @media (prefers-reduced-motion: reduce) { .card { transition: none; } .card:hover { transform: none; } }

.rates { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 12px; }
.rates > div { background: var(--soft); border-radius: 16px; padding: 14px 16px; display: grid; gap: 2px; min-width: 0; }
.rates dt { font-family: var(--font-display); font-weight: 600; color: var(--head); }
.rates dd { margin: 0; }
.rates dd b { font-family: var(--font-display); font-size: 1.7rem; color: var(--coral-btn); font-variant-numeric: tabular-nums; }
.rates dd.who { font-size: .9rem; color: var(--muted); font-weight: 600; }
