/* Inner-page styles for the multi-page site. Loads after styles.css. */

/* ---------- Page heading ---------- */
.pagehead {
  padding: clamp(36px, 5vw, 60px) 0 clamp(20px, 3vw, 32px);
  background: var(--canvas);
  border-bottom: 1px solid var(--border-soft);
}
.pagehead__title {
  margin: 0 0 12px;
  font-size: clamp(30px, 4.4vw, 46px);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -.035em;
  text-wrap: pretty;
}
.pagehead__lede {
  max-width: 620px;
  margin: 0;
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--ink-soft);
  text-wrap: pretty;
}

/* ---------- Directory listings ---------- */
.listing {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.listing__item {
  display: flex;
  gap: 18px;
  padding: 18px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}
.listing__photo {
  width: 116px;
  height: 116px;
  flex: none;
  object-fit: cover;
  border-radius: 18px;
  background: var(--media-bg);
}
.listing__photo--round { border-radius: 50%; }
.listing__body { flex: 1; min-width: 0; }
.listing__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.listing__name {
  margin: 0;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -.025em;
}
.listing__price {
  font-size: 16px;
  font-weight: 800;
  color: var(--primary-strong);
  white-space: nowrap;
}
.listing__meta {
  margin: 6px 0 0;
  font-size: 14.5px;
  color: var(--ink-muted);
}
.listing__facts {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin: 10px 0 0;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink-strong);
}
.listing__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.badge {
  display: inline-block;
  padding: 5px 11px;
  border-radius: 9px;
  font-size: 11.5px;
  font-weight: 800;
}
.badge--green { background: var(--secondary-wash); color: var(--secondary-deep); }
.badge--grey  { background: var(--canvas-deep);   color: var(--ink-strong); }

.empty-note {
  padding: 40px 24px;
  border: 1px dashed var(--border-dashed);
  border-radius: var(--radius-card);
  text-align: center;
  color: var(--ink-muted);
}

/* ---------- Emergency callout ---------- */
.callout-emergency {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  padding: 20px;
  margin-bottom: 24px;
  border: 1px solid #FFCDD2;
  border-radius: var(--radius-card);
  background: var(--emergency-wash);
}
.callout-emergency__icon { font-size: 30px; }
.callout-emergency__title {
  margin: 0 0 4px;
  font-size: 16.5px;
  font-weight: 800;
  color: var(--emergency-deep);
}
.callout-emergency__text {
  margin: 0;
  font-size: 14px;
  color: var(--emergency);
}
.callout-emergency > div { flex: 1; min-width: 220px; }

/* ---------- Dog / article profile ---------- */
.profile {
  display: flex;
  gap: 44px;
  align-items: flex-start;
  flex-wrap: wrap;
}
.profile__media {
  flex: 1 1 360px;
  min-width: min(300px, 100%);
}
.profile__media img {
  width: 100%;
  border-radius: var(--radius-sheet);
  background: var(--media-bg);
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.profile__body { flex: 1 1 380px; min-width: min(300px, 100%); }
.profile__name {
  margin: 0 0 6px;
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -.035em;
}
.profile__meta {
  margin: 0 0 18px;
  font-size: 15.5px;
  color: var(--ink-muted);
}
.profile__text {
  margin: 22px 0 0;
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--ink-soft);
}
.profile__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}
.taglist {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  list-style: none;
}

.article { max-width: 760px; }
.article__title {
  margin: 0 0 14px;
  font-size: clamp(30px, 4.2vw, 44px);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -.035em;
}
.article__lede {
  margin: 0 0 26px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink-soft);
}
.article__photo {
  width: 100%;
  border-radius: var(--radius-card);
  margin-bottom: 26px;
  background: var(--media-bg);
}
.article__body p {
  margin: 0 0 18px;
  font-size: 16.5px;
  line-height: 1.75;
  color: var(--ink-soft);
}

/* ---------- Prose pages (about, legal) ---------- */
.prose { max-width: 720px; }
.prose h2 {
  margin: 34px 0 12px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.025em;
}
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li {
  font-size: 16.5px;
  line-height: 1.75;
  color: var(--ink-soft);
}
.prose p { margin: 0 0 16px; }
.prose ul { margin: 0 0 16px; padding-left: 22px; }
.prose li { margin-bottom: 8px; }

/* ---------- Forms ---------- */
.formwrap {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  flex-wrap: wrap;
}
.formcard {
  flex: 1 1 460px;
  min-width: min(300px, 100%);
  padding: 28px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}
.formcard__group { border: 0; margin: 0 0 20px; padding: 0; }
.formcard__legend {
  padding: 0;
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 800;
  color: var(--ink-strong);
}
.formcard__note {
  margin: 16px 0 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-muted);
}

.formfield { display: block; margin-bottom: 18px; }
.formfield__label {
  display: block;
  margin-bottom: 7px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-strong);
}
.formfield__input {
  width: 100%;
  padding: 13px 15px;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  background: var(--canvas);
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  outline: 0;
}
.formfield__input:focus {
  border-color: var(--primary);
  background: var(--surface);
}
textarea.formfield__input { line-height: 1.6; resize: vertical; }
.req { color: var(--emergency); }

.formrow {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0 16px;
}

.radioset {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 10px;
}
.radiocard {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 8px;
  border: 1.5px solid var(--border);
  border-radius: 16px;
  background: var(--canvas);
  cursor: pointer;
}
.radiocard input { position: absolute; opacity: 0; pointer-events: none; }
.radiocard__glyph { font-size: 22px; }
.radiocard__label { font-size: 13px; font-weight: 700; color: var(--ink-muted); }
.radiocard:has(input:checked) {
  border-color: var(--emergency);
  background: var(--emergency-wash);
}
.radiocard:has(input:checked) .radiocard__label {
  color: var(--emergency);
  font-weight: 800;
}
.radiocard:has(input:focus-visible) { outline: 3px solid var(--primary); outline-offset: 2px; }

.checkline {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 22px;
  font-size: 14.5px;
  color: var(--ink-soft);
  cursor: pointer;
}
.checkline input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--primary);
}

.btn--block { width: 100%; }

.flash {
  padding: 14px 18px;
  margin-bottom: 20px;
  border-radius: 14px;
  font-size: 14.5px;
  font-weight: 700;
  flex-basis: 100%;
}
.flash--ok  { background: var(--secondary-wash); color: var(--secondary-deep); border: 1px solid var(--secondary-tint); }
.flash--err { background: var(--emergency-wash); color: var(--emergency-deep); border: 1px solid #FFCDD2; }

.sidenote {
  flex: 1 1 260px;
  min-width: min(260px, 100%);
  padding: 24px;
  border-radius: var(--radius-card);
  background: var(--canvas);
}
.sidenote__title {
  margin: 0 0 14px;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -.02em;
}
.sidenote__steps { margin: 0; padding-left: 20px; }
.sidenote__steps li {
  margin-bottom: 10px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-soft);
}
.sidenote__text {
  margin: 0 0 12px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-soft);
}

/* ---------- Donate page ---------- */
.donate-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}
.donate-panel {
  padding: 28px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}
.donate-panel__title {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.025em;
}
.donate-panel__text { margin: 0 0 20px; font-size: 14.5px; color: var(--ink-muted); }
.donate-panel__note { margin: 18px 0 0; font-size: 13.5px; line-height: 1.6; color: var(--ink-muted); }

.amountgrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 9px;
  margin-bottom: 18px;
}
.amount-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 54px;
  border: 1.5px solid var(--border);
  border-radius: 16px;
  background: var(--canvas);
  font-size: 16px;
  font-weight: 800;
  color: var(--ink-strong);
}
.amount-chip.is-active {
  border-color: var(--primary);
  background: #FFF1E9;
  color: var(--primary-strong);
}

.upi-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1.5px solid var(--primary);
  border-radius: 14px;
  background: var(--primary-wash);
}
.upi-row__label { font-size: 12.5px; font-weight: 800; color: var(--ink-muted); }
.upi-row__value {
  flex: 1;
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  text-align: right;
}

.support__card {
  flex: 1 1 300px;
  min-width: min(280px, 100%);
  padding: 26px;
  border-radius: var(--radius-card);
  background: var(--surface);
  text-align: center;
}
.support__card-label {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.support__card-value {
  display: block;
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
}
.support__card-note { margin: 12px 0 0; font-size: 13px; color: var(--ink-muted); }

/* ---------- FAQ accordion ---------- */
.faqlist { display: flex; flex-direction: column; gap: 12px; }
.faqitem {
  padding: 18px 22px;
  border: 1px solid var(--border-soft);
  border-radius: 18px;
  background: var(--surface);
}
.faqitem__q {
  font-size: 16.5px;
  font-weight: 800;
  letter-spacing: -.02em;
  cursor: pointer;
}
.faqitem__a {
  margin: 12px 0 0;
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-muted);
}

/* ---------- CTA band ---------- */
.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 32px;
  padding: 26px 28px;
  border-radius: var(--radius-card);
  background: var(--canvas);
}
.cta-band__title { margin: 0 0 4px; font-size: 19px; font-weight: 800; letter-spacing: -.025em; }
.cta-band__text  { margin: 0; font-size: 14.5px; color: var(--ink-muted); }

.card__link {
  display: inline-block;
  margin-top: 12px;
  font-size: 14px;
  font-weight: 700;
  color: var(--primary-strong);
}

@media (max-width: 560px) {
  .listing__item { flex-direction: column; }
  .listing__photo { width: 100%; height: 180px; border-radius: 18px; }
  .listing__photo--round { border-radius: 18px; }
  .amountgrid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- App-style bottom tab bar (small screens only) ---------- */
.tabbar { display: none; }

@media (max-width: 780px) {
  .tabbar {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 60;
    display: flex;
    padding: 8px 4px calc(6px + env(safe-area-inset-bottom, 0px));
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(16px);
    border-top: 1px solid var(--border);
  }
  .tabbar__item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 6px 2px;
    border-radius: 12px;
    text-decoration: none;
    color: var(--ink-muted);
  }
  .tabbar__glyph { font-size: 19px; opacity: .5; line-height: 1; }
  .tabbar__label { font-size: 10.5px; font-weight: 700; }
  .tabbar__item.is-active { color: var(--primary-strong); background: var(--primary-wash); }
  .tabbar__item.is-active .tabbar__glyph { opacity: 1; }

  /* keep the tab bar from covering page content */
  body { padding-bottom: 74px; }
  .site-footer { margin-bottom: 4px; }
}

/* ---------- Segmented control (lost / found) ---------- */
.segbar {
  display: flex;
  gap: 4px;
  padding: 4px;
  margin-bottom: 22px;
  border-radius: 15px;
  background: var(--canvas-deep);
}
.segbar__item {
  flex: 1;
  padding: 11px 10px;
  border-radius: 11px;
  text-align: center;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-muted);
}
.segbar__item.is-active {
  background: var(--surface);
  color: var(--ink);
  font-weight: 800;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .08);
}
.badge--red { background: var(--emergency-wash); color: var(--emergency-deep); }

/* ---------- Explore: map placeholder + quick tiles ---------- */
.mapcard {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 230px;
  margin-bottom: 22px;
  border-radius: var(--radius-card);
  background: var(--secondary-wash);
  text-align: center;
}
.mapcard__glyph { margin: 0 0 8px; font-size: 40px; }
.mapcard__title { margin: 0 0 6px; font-size: 20px; font-weight: 800; letter-spacing: -.025em; }
.mapcard__text  { max-width: 420px; margin: 0 auto; font-size: 14.5px; line-height: 1.6; color: var(--ink-soft); }

.quickgrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}
.quicktile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px 12px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-card);
  background: var(--surface);
  text-decoration: none;
  box-shadow: var(--shadow-card);
}
.quicktile__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 17px;
  font-size: 24px;
}
.quicktile__icon--orange { background: var(--primary-tint); }
.quicktile__icon--green  { background: var(--secondary-tint); }
.quicktile__icon--yellow { background: var(--accent-tint); }
.quicktile__icon--indigo { background: var(--indigo-tint); }
.quicktile__icon--red    { background: var(--emergency-wash); }
.quicktile__label { font-size: 13.5px; font-weight: 700; color: var(--ink); text-align: center; }
.quicktile__count { font-size: 12px; font-weight: 700; color: var(--ink-faint); }

/* ---------- Search ---------- */
.searchbar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.searchbar__input {
  flex: 1;
  min-width: 200px;
  height: 54px;
  padding: 0 18px;
  border: 1.5px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  font-family: inherit;
  font-size: 16px;
  color: var(--ink);
  outline: 0;
}
.searchbar__input:focus { border-color: var(--primary); }
.searchhint {
  margin: 0 0 12px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink-muted);
}
.chipwrap { display: flex; gap: 8px; flex-wrap: wrap; }
.chiplink {
  padding: 9px 15px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink-strong);
  text-decoration: none;
}
.chiplink:hover { border-color: var(--primary); color: var(--primary-strong); }

.resultlist, .menulist {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.resultitem__link, .menurow {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 18px;
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  background: var(--surface);
  text-decoration: none;
  color: inherit;
}
.resultitem__link:hover, .menurow:hover { border-color: var(--primary); }
.resultitem__title { flex: 1; font-size: 15px; font-weight: 700; }
.resultitem__meta  { font-size: 13px; color: var(--ink-muted); }
.resultitem__go, .menurow__go { color: var(--ink-faint); font-size: 16px; }

.menurow__glyph { font-size: 21px; }
.menurow__body  { flex: 1; }
.menurow__title { display: block; font-size: 15px; font-weight: 700; }
.menurow__desc  { display: block; margin-top: 2px; font-size: 13px; color: var(--ink-muted); }
.menulist { margin-bottom: 26px; }

/* ============================================================
   App-style mobile home. Desktop keeps the marketing hero;
   phones get the app's Home screen layout instead.
   ============================================================ */
.apphome { display: none; }
.appbar-mobile { display: none; }

@media (max-width: 780px) {
  /* --- location + alerts row, like the app's top bar --- */
  .appbar-mobile {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 var(--gutter) 12px;
  }
  .appbar-mobile__loc {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13.5px;
    font-weight: 800;
    letter-spacing: -.01em;
    color: var(--ink);
  }
  .appbar-mobile__loc svg { color: var(--primary); flex: none; }
  .appbar-mobile__bell {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    flex: none;
    border-radius: 13px;
    background: var(--canvas);
    color: var(--ink);
  }
  .appbar-mobile__dot {
    position: absolute;
    top: 8px;
    right: 9px;
    width: 8px;
    height: 8px;
    border: 2px solid var(--surface);
    border-radius: 50%;
    background: var(--primary);
  }

  /* --- the app home block replaces the desktop hero --- */
  .hero { display: none; }
  .apphome {
    display: block;
    padding: 4px var(--gutter) 8px;
  }

  .apphome__search {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 52px;
    padding: 0 16px;
    margin-bottom: 18px;
    border-radius: 17px;
    background: var(--surface);
    box-shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 8px 20px rgba(16, 24, 40, .05);
    font-size: 14.5px;
    color: var(--ink-muted);
    text-decoration: none;
  }
  .apphome__search svg { color: var(--ink-muted); flex: none; }

  .apphome__banner {
    position: relative;
    padding: 22px 20px;
    margin-bottom: 20px;
    border-radius: 22px;
    background: linear-gradient(100deg, #16281A, var(--secondary));
    overflow: hidden;
  }
  .apphome__banner-kicker {
    margin: 0;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--accent);
  }
  .apphome__banner-title {
    max-width: 220px;
    margin: 6px 0 0;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -.025em;
    line-height: 1.2;
    color: #fff;
  }
  .apphome__banner-meta {
    margin: 6px 0 0;
    font-size: 12.5px;
    color: rgba(255, 255, 255, .78);
  }

  .apphome__cats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px 6px;
    margin-bottom: 22px;
  }
  .appcat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    text-decoration: none;
  }
  .appcat__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 19px;
    font-size: 24px;
  }
  .appcat__icon--orange { background: var(--primary-tint); }
  .appcat__icon--green  { background: var(--secondary-tint); }
  .appcat__icon--yellow { background: var(--accent-tint); }
  .appcat__icon--indigo { background: var(--indigo-tint); }
  .appcat__icon--teal   { background: #D9EEF3; }
  .appcat__label {
    font-size: 11px;
    font-weight: 700;
    line-height: 1.25;
    color: var(--ink-strong);
    text-align: center;
  }

  .apphome__alert {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    margin-bottom: 8px;
    border-radius: 20px;
    background: linear-gradient(100deg, var(--emergency), var(--primary));
    box-shadow: 0 14px 30px -12px rgba(198, 40, 40, .55);
    text-decoration: none;
  }
  .apphome__alert-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    flex: none;
    border-radius: 15px;
    background: rgba(255, 255, 255, .2);
    font-size: 21px;
  }
  .apphome__alert-body { flex: 1; }
  .apphome__alert-title {
    display: block;
    font-size: 15.5px;
    font-weight: 800;
    letter-spacing: -.02em;
    color: #fff;
  }
  .apphome__alert-meta {
    display: block;
    margin-top: 2px;
    font-size: 12.5px;
    color: rgba(255, 255, 255, .82);
  }
  .apphome__alert-go { font-size: 22px; color: #fff; }

  /* Tighter section rhythm so the page scrolls like the app feed. */
  .section { padding-block: 26px; }
  .section__head { margin-bottom: 18px; }
  .section__title { font-size: 20px; }
  .pagehead { padding: 20px 0 14px; }
  .pagehead__title { font-size: 26px; }
}

/* ---------- Member accounts ---------- */
.authwrap {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  flex-wrap: wrap;
}
.authcard {
  flex: 1 1 420px;
  min-width: min(300px, 100%);
  padding: 30px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}
.authcard__title {
  margin: 0 0 6px;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -.03em;
}
.authcard__lede {
  margin: 0 0 24px;
  font-size: 14.5px;
  color: var(--ink-muted);
}
.authcard__alt {
  margin: 22px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--border-soft);
  font-size: 14px;
  text-align: center;
  color: var(--ink-muted);
}

.profilehead {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 22px;
  margin-bottom: 18px;
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}
.profilehead__avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  flex: none;
  border-radius: 22px;
  background: var(--primary-tint);
  font-size: 21px;
  font-weight: 800;
  color: var(--primary-strong);
}
.profilehead__avatar--sm {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  font-size: 18px;
}
.profilehead__body { flex: 1; min-width: 160px; }
.profilehead__name {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.03em;
}
.profilehead__meta {
  margin: 4px 0 0;
  font-size: 14px;
  color: var(--ink-muted);
}

.statrow {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
}
.statrow .statbox {
  padding: 18px 12px;
  border-radius: 18px;
  background: var(--surface);
  text-align: center;
  box-shadow: var(--shadow-card);
}
.statrow .statbox__value {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.02em;
}
.statrow .statbox__label {
  margin: 4px 0 0;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink-faint);
}
