/* Charge-care card: a settings-panel style signature component */
.ccard {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 1rem;
}
.ccard__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-bottom: 1rem;
}
.ccard__tabs button {
  min-width: 64px;
  font: inherit;
  font-size: .9rem;
  padding: .45rem .85rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.ccard__tabs button[aria-selected="true"] {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--surface);
}
.ccard__tabs button:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}
.ccard__path {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .35rem;
  margin: 0 0 .75rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .85rem;
  color: var(--ink);
}
.ccard__path span:not(.ccard__switch) {
  padding: .2rem .5rem;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) / 2);
}
.ccard__path span:not(.ccard__switch) + span:not(.ccard__switch)::before {
  content: "\203A";
  margin-right: .5rem;
  margin-left: -.15rem;
  color: var(--muted);
}
.ccard__switch {
  display: inline-block;
  width: 2.2rem;
  height: 1.2rem;
  border-radius: 999px;
  background: var(--border);
  position: relative;
}
.ccard__switch.is-on { background: var(--brand); }
.ccard__switch::after {
  content: "";
  position: absolute;
  top: .15rem;
  left: .15rem;
  width: .9rem;
  height: .9rem;
  border-radius: 50%;
  background: var(--surface);
}
.ccard__switch.is-on::after { left: 1.15rem; }
.ccard__rows {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--border);
}
.ccard__rows li {
  display: grid;
  grid-template-columns: minmax(8rem, 12rem) 1fr;
  gap: .75rem;
  padding: .6rem 0;
  border-bottom: 1px solid var(--border);
}
.ccard__k {
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--muted);
}
.ccard__v { color: var(--ink); }
.ccard__src {
  margin: .75rem 0 0;
  font-size: .85rem;
  color: var(--muted);
}
.ccard .note { margin-top: .75rem; }
@media (max-width: 560px) {
  .ccard__rows li { grid-template-columns: 1fr; gap: .2rem; }
}

/* Long button labels wrap instead of overflowing on narrow screens */
.btn {
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  overflow-wrap: anywhere;
  text-align: center;
  height: auto;
  min-width: 0;
}

/* Hero images stay short so real content appears sooner */
.hero img,
.hero picture img,
.hero__media img,
.hero__image img,
img.hero__img {
  width: 100%;
  max-height: 280px;
  height: auto;
  object-fit: cover;
}
.hero__media,
.hero__image,
.hero picture {
  max-height: 280px;
  overflow: hidden;
}