/* Owner (2026-10-30): the card a feature with nothing set up shows (feature-guide.js): what it does, why it helps,
   how to set it up, and the button that starts it. Self-contained, so it reads the same on the Care plan (Tailwind's
   reset), Overview and Calendar & contacts. Phone first; buttons and links are 44px tall. */
.fg-card {
  --fg-green: var(--ref-green, #006da6);
  --fg-green-dark: var(--pa-primary-hover, #005482);
  --fg-green-soft: var(--ref-green-soft, #e7f2fa);
  --fg-ink: var(--ref-ink, #21313e);
  --fg-muted: var(--ref-muted, #526573);
  --fg-line: var(--ref-line, #dce5ea);
  background: #fff;
  border: 1px solid var(--fg-line);
  border-radius: 14px;
  padding: 20px;
  color: var(--fg-ink);
  text-align: left;
  font-size: 15px;
  line-height: 1.5;
}
/* A full card is the page's main content: it fills its column, and its width (not the window's) decides whether why
   and how sit side by side. Older browsers without container queries keep one column. */
.fg-card:not(.fg-compact) { width: 100%; container-type: inline-size; }
@container (min-width: 700px) {
  .fg-cols { display: grid; grid-template-columns: 1fr 1fr; column-gap: 36px; }
}
@container (max-width: 520px) {
  .fg-card .fg-action { width: 100%; }
}
.fg-card * { box-sizing: border-box; }
.fg-head { display: flex; align-items: center; gap: 12px; margin: 0 0 12px; }
.fg-icon {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 12px; background: var(--fg-green-soft); color: var(--fg-green);
}
.fg-icon svg, .fg-icon i { width: 22px; height: 22px; }
.fg-title { margin: 0; font-size: 18px; line-height: 1.3; font-weight: 650; color: var(--fg-ink); }
.fg-chip {
  display: inline-block; margin-top: 3px; padding: 1px 9px; border-radius: 999px;
  background: #eef2f5; color: #405765; font-size: 12px; font-weight: 600; line-height: 20px;
}
.fg-what { margin: 0 0 14px; font-size: 16px; color: var(--fg-ink); }
.fg-block { margin: 0 0 14px; }
.fg-block h4 { margin: 0 0 6px; font-size: 14px; font-weight: 650; color: var(--fg-ink); }
.fg-why, .fg-steps { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.fg-why li, .fg-steps li { position: relative; padding-left: 30px; color: var(--fg-ink); }
.fg-why li::before {
  content: ""; position: absolute; left: 4px; top: 4px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--fg-green-soft);
  box-shadow: inset 0 0 0 1px rgba(0, 109, 166, 0.25);
}
.fg-why li::after {
  content: ""; position: absolute; left: 9px; top: 8px; width: 6px; height: 4px;
  border-left: 2px solid var(--fg-green); border-bottom: 2px solid var(--fg-green); transform: rotate(-45deg);
}
.fg-steps { counter-reset: fg-step; }
.fg-steps li { counter-increment: fg-step; }
.fg-steps li::before {
  content: counter(fg-step); position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%;
  background: var(--fg-green); color: #fff; font-size: 12px; font-weight: 700; line-height: 22px; text-align: center;
}
.fg-step-one { margin: 0; color: var(--fg-ink); }
.fg-note { margin: 0 0 14px; padding-top: 12px; border-top: 1px solid var(--fg-line); font-size: 13px; color: var(--fg-muted); }
.fg-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; }
.fg-card .fg-action {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 20px;
  border: 0; border-radius: 10px; background: var(--fg-green); color: #fff; font: inherit; font-weight: 600;
  text-decoration: none; cursor: pointer;
}
.fg-card .fg-action:hover { background: var(--fg-green-dark); color: #fff; }
.fg-card .fg-action:focus-visible, .fg-card .fg-help:focus-visible { outline: 3px solid #99c9b8; outline-offset: 2px; }
.fg-card .fg-help {
  display: inline-flex; align-items: center; min-height: 44px; color: var(--fg-green); font-weight: 600;
  text-decoration: underline; text-underline-offset: 3px;
}
.fg-viewer { margin: 0; font-size: 14px; color: var(--fg-muted); }
/* What a card's own button did (Overview's Turn on alerts here), next to it. */
.fg-status { margin: 10px 0 0; font-size: 14px; color: var(--fg-ink); }
.fg-status:empty { display: none; }

/* Overview panels: the card sits inside a panel, so it's a tinted block rather than a second bordered card. */
.fg-card.fg-compact { border: 0; background: #f4f9f6; padding: 14px; max-width: none; }
.fg-compact .fg-head { margin-bottom: 8px; }
.fg-compact .fg-icon { width: 36px; height: 36px; border-radius: 10px; }
.fg-compact .fg-icon svg, .fg-compact .fg-icon i { width: 18px; height: 18px; }
.fg-compact .fg-title { font-size: 16px; }
.fg-compact .fg-what { font-size: 14px; margin-bottom: 10px; }
.fg-compact .fg-block { margin-bottom: 12px; }
.fg-compact .fg-block h4 { font-size: 13px; }
.fg-compact .fg-why li { font-size: 14px; }
.fg-compact .fg-action { width: 100%; }
/* Overview: Next appointment's body has no padding of its own (its row brings it), and Family lays out in a wrapping row.
   The alerts card sits under Recent notifications' heading; the daily call card under the check-in row's place. */
#next-appointment > .fg-card { margin: 2px 18px 18px; width: auto; }
#alerts-guide > .fg-card { margin: 0 18px 14px; }
#checkin-guide { margin: 0 0 14px; }
#checkin-guide > .fg-card { border: 1px solid var(--fg-line); background: #fff; }
/* Settings: the daily call's card sits under its switch. */
.sf-feature > .fg-card { margin: 10px 0 4px; }
.family-members > .fg-card { flex: 1 1 100%; }
@media (max-width: 760px) {
  #next-appointment > .fg-card { margin: 2px 13px 13px; }
  #alerts-guide > .fg-card { margin: 0 13px 13px; }
}

@media (min-width: 640px) {
  .fg-card { padding: 24px; }
  .fg-card.fg-compact { padding: 16px; }
}
