/* BlkCare - warm, trustworthy, mobile-first */
:root {
  --green: #1b5e43;
  --green-dark: #12402d;
  --green-soft: #e3efe7;
  --bg: #faf6ef;
  --card: #ffffff;
  --ink: #26312a;
  --muted: #6b7568;
  --line: #e6ddcb;
  --heart: #e0245e;
  --heart-soft: #fdeef3;
  --radius: 14px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
}
h1, h2, h3 { font-family: "Fraunces", Georgia, serif; line-height: 1.15; margin: 0 0 .5rem; }
a { color: var(--green); }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 1rem; }
.wrap.narrow { max-width: 680px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--green); color: #fff; padding: .5rem 1rem; z-index: 50; }
.skip:focus { left: 0; }
.small { font-size: .85rem; color: var(--muted); }

/* header */
.site-head { background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.head-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: .7rem; padding-bottom: .7rem; flex-wrap: wrap; }
.logo { font-family: "Fraunces", Georgia, serif; font-size: 1.5rem; font-weight: 700; color: var(--green-dark); text-decoration: none; }
.logo-heart { color: var(--heart); margin-right: .15rem; }
.main-nav { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.main-nav a { text-decoration: none; font-weight: 600; font-size: .95rem; }
.main-nav a:hover { text-decoration: underline; }
#nav-account { display: inline-flex; align-items: center; gap: .6rem; position: relative; }
.nav-avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; display: block; }
.nav-avatar-letter { display: inline-flex; align-items: center; justify-content: center; background: var(--green); color: #fff; font-weight: 700; }
.avatar-btn { border: none; background: none; padding: 0; cursor: pointer; border-radius: 50%; line-height: 0; }
.avatar-btn:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.account-menu { position: absolute; right: 0; top: calc(100% + 10px); background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 14px 34px rgba(24, 34, 27, .18); min-width: 230px; padding: .4rem; z-index: 70; }
.account-menu .menu-head { padding: .55rem .7rem .45rem; border-bottom: 1px solid var(--line); margin-bottom: .3rem; }
.account-menu .menu-head strong { display: block; color: var(--green-dark); font-size: .95rem; }
.account-menu .menu-head span { display: block; color: var(--muted); font-size: .8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 210px; }
.account-menu a, .account-menu .menu-item { display: block; width: 100%; box-sizing: border-box; text-align: left; padding: .55rem .7rem; border-radius: 9px; font-weight: 600; font-size: .95rem; color: inherit; background: none; border: none; font-family: inherit; cursor: pointer; text-decoration: none; }
.account-menu a:hover, .account-menu .menu-item:hover { background: var(--bg); text-decoration: none; }
@media (max-width: 719px) {
  .head-row { flex-wrap: nowrap; padding-top: .55rem; padding-bottom: .55rem; }
  .logo { font-size: 1.3rem; }
  .main-nav { gap: .5rem; flex-wrap: nowrap; }
  .main-nav > a { display: none; }
}

/* buttons */
.btn {
  display: inline-block; background: var(--green); color: #fff; border: 1px solid var(--green);
  padding: .65rem 1.2rem; border-radius: 999px; font-weight: 700; font-size: .95rem;
  cursor: pointer; text-decoration: none; text-align: center;
}
.btn:hover { background: var(--green-dark); }
.btn-small { padding: .4rem .9rem; font-size: .88rem; }
.btn-ghost { background: transparent; color: var(--green); }
.btn-ghost:hover { background: var(--green-soft); }
.btn[disabled] { opacity: .55; cursor: wait; }

/* hero + search */
.hero { background: linear-gradient(180deg, var(--green-soft), var(--bg)); padding: 2.2rem 0 1.4rem; }
.hero h1 { font-size: clamp(1.9rem, 5vw, 2.9rem); color: var(--green-dark); }
.lede { font-size: 1.08rem; max-width: 44rem; color: #3d4a40; }
.search-bar { display: flex; gap: .6rem; margin: 1.2rem 0 .9rem; flex-wrap: wrap; }
.sb-field { flex: 1 1 200px; }
.sb-radius { flex: 0 1 180px; }
.sb-field select { width: 100%; padding: .8rem 2.6rem .8rem 1rem; border: 1px solid var(--line); border-radius: 999px; font: inherit; background-color: #fff; color: inherit; box-sizing: border-box; appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1.05rem center; background-size: 12px 8px; }
.sb-field select:focus { outline: 2px solid var(--green); outline-offset: 1px; }
.dist { color: var(--green-dark); font-weight: 700; }

/* blog */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.1rem; margin: 1.4rem 0 2.5rem; }
.post-card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 1.2rem 1.25rem; display: flex; flex-direction: column; gap: .55rem; }
.post-card h3 { font-size: 1.3rem; margin: 0; }
.post-card h3 a { color: var(--green-dark); text-decoration: none; }
.post-card h3 a:hover { text-decoration: underline; }
.post-card p { margin: 0; }
.cat-tag { align-self: flex-start; background: var(--green); color: #fff; font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: .28rem .6rem; border-radius: 999px; }
.cat-tag.deep { background: var(--heart); }
.post-meta { color: var(--muted); font-size: .85rem; font-weight: 600; }
.back-link { font-weight: 700; }
.article h1 { color: var(--green-dark); font-size: 2.1rem; margin: .6rem 0 .4rem; }
.article .dek { font-size: 1.12rem; margin: .6rem 0 0; }
.article-body { font-size: 1.05rem; line-height: 1.65; margin-top: .8rem; }
.article-body h2 { color: var(--green-dark); margin: 1.6rem 0 .5rem; font-size: 1.45rem; }
.article-body p { margin: .7rem 0; }
.article-body ul { margin: .5rem 0 .9rem; padding-left: 1.3rem; }
.article-body li { margin: .3rem 0; }
.spotlight-head { color: var(--green-dark); margin: 2rem 0 .8rem; }
.sb-field input {
  width: 100%; padding: .75rem 1rem; border: 1px solid var(--line); border-radius: 999px;
  font-size: 1rem; background: #fff;
}
.sb-field input:focus { outline: 2px solid var(--green); outline-offset: 1px; }
.chips { display: flex; gap: .5rem; flex-wrap: wrap; margin: .4rem 0 .8rem; }
.chip {
  border: 1px solid var(--green); color: var(--green); background: #fff; border-radius: 999px;
  padding: .35rem .9rem; font-size: .88rem; font-weight: 600; cursor: pointer;
}
.chip:hover { background: var(--green-soft); }
.chip.on { background: var(--green); color: #fff; }
.accepting-toggle { font-size: .92rem; font-weight: 500; display: inline-flex; gap: .45rem; align-items: center; cursor: pointer; }

/* trust strip */
.trust-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; margin: 1.4rem 0 .4rem; }
.trust-strip > div { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; }
.trust-strip strong { display: block; color: var(--green-dark); margin-bottom: .2rem; }
.trust-strip span { font-size: .92rem; color: #46524a; }
.result-count { color: var(--muted); font-size: .92rem; margin: 1rem 0 .2rem; }

/* provider cards */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1rem; padding-bottom: 2rem; }
.pcard { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem; display: flex; flex-direction: column; gap: .45rem; }
.pcard-top { display: flex; gap: .85rem; align-items: center; }
.avatar { width: 56px; height: 56px; border-radius: 50%; background: var(--green); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.15rem; flex: none; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.big { width: 88px; height: 88px; font-size: 1.7rem; }
.pcard h3 { margin: 0; font-size: 1.12rem; }
.pcard h3 a { color: var(--ink); text-decoration: none; }
.pcard h3 a:hover { color: var(--green); text-decoration: underline; }
.cred { color: var(--muted); font-weight: 600; font-size: .9rem; }
.spec { color: var(--green); font-weight: 700; font-size: .92rem; }
.meta { font-size: .92rem; color: #46524a; margin: 0; }
.badge { display: inline-block; background: var(--green-soft); color: var(--green-dark); border-radius: 999px; padding: .12rem .6rem; font-size: .78rem; font-weight: 700; }
.badge.no { background: #f1ead9; color: #6d6242; }
.pcard-foot { margin-top: auto; padding-top: .6rem; display: flex; align-items: center; justify-content: space-between; gap: .6rem; }

/* hearts */
.heart-btn {
  display: inline-flex; align-items: center; gap: .4rem; border: 1px solid var(--line);
  background: #fff; border-radius: 999px; padding: .42rem .85rem; cursor: pointer;
  font-weight: 700; font-size: .92rem; color: var(--ink);
}
.heart-btn .hicon { color: #c9c2b2; font-size: 1.05rem; line-height: 1; }
.heart-btn:hover { border-color: var(--heart); }
.heart-btn.on { background: var(--heart-soft); border-color: var(--heart); }
.heart-btn.on .hicon { color: var(--heart); }
.heart-btn.big { font-size: 1.05rem; padding: .7rem 1.4rem; }
.heart-btn.big .hicon { font-size: 1.3rem; }

/* profile */
.profile-head { display: flex; gap: 1.2rem; align-items: center; flex-wrap: wrap; margin: 1rem 0; }
.profile-head h1 { font-size: clamp(1.6rem, 4vw, 2.3rem); margin-bottom: .15rem; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem; margin: 1rem 0; }
.panel h2 { font-size: 1.25rem; color: var(--green-dark); }
.tag-list { display: flex; flex-wrap: wrap; gap: .45rem; padding: 0; list-style: none; margin: .4rem 0 0; }
.tag-list li { background: var(--green-soft); color: var(--green-dark); border-radius: 999px; padding: .2rem .7rem; font-size: .85rem; font-weight: 600; }
.contact-row { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: .8rem; }
.back-link { font-weight: 600; text-decoration: none; }
.back-link:hover { text-decoration: underline; }
.source-note { font-size: .82rem; color: var(--muted); }

/* pages */
.page-title { font-size: clamp(1.7rem, 4vw, 2.4rem); color: var(--green-dark); margin-top: 1.6rem; }
.lede-small { font-size: 1rem; color: #3d4a40; max-width: 42rem; }
.empty { background: var(--card); border: 1px dashed var(--line); border-radius: var(--radius); padding: 1.4rem; text-align: center; margin-bottom: 2rem; }

/* form */
.form-grid { display: grid; gap: .9rem; margin: 1.2rem 0 2rem; }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: .3rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: .65rem .8rem; border: 1px solid var(--line); border-radius: 10px;
  font-size: 1rem; background: #fff; font-family: inherit;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--green); outline-offset: 1px; }
.field .hint { font-size: .82rem; color: var(--muted); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
@media (max-width: 560px) { .two-col { grid-template-columns: 1fr; } }
.radio-row { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.radio-row label { font-weight: 500; display: inline-flex; gap: .4rem; align-items: center; }
.form-ok { background: var(--green-soft); border: 1px solid var(--green); border-radius: var(--radius); padding: 1.2rem; margin: 1.2rem 0 2rem; }

/* modal + toast */
[hidden] { display: none !important; }
.modal-backdrop { position: fixed; inset: 0; background: rgba(24, 34, 27, .55); display: flex; align-items: center; justify-content: center; padding: 1rem; z-index: 60; }
.modal { background: #fff; border-radius: var(--radius); max-width: 420px; width: 100%; padding: 1.6rem; }
.modal h2 { color: var(--green-dark); }
.modal .btn { width: 100%; margin-top: .6rem; }
.toast {
  position: fixed; left: 50%; bottom: 1.2rem; transform: translateX(-50%);
  background: var(--green-dark); color: #fff; padding: .7rem 1.1rem; border-radius: 999px;
  font-size: .92rem; font-weight: 600; display: none; z-index: 70; max-width: 92vw; text-align: center;
}

/* footer */
.site-foot { border-top: 1px solid var(--line); margin-top: 1rem; padding: 1.6rem 0 2.2rem; background: var(--card); }
.site-foot p { margin: .3rem 0; }
