/* =========================================================
   3-2-1-reset — Tip of the day
   One rotating practice per calendar day.
   Depends on reset-3-2-1.css for tokens, header, footer,
   buttons and the safety note.
   ========================================================= */

/* ---------- Hero ---------- */

.tip-hero {
  padding-top: 48px;
}

.tip-hero__kicker {
  color: var(--primary);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.tip-hero h1 {
  margin-top: 12px;
  font-size: 44px;
  line-height: 1.05;
}

.tip-hero__intro {
  max-width: 640px;
  margin-top: 16px;
  color: rgba(12, 43, 25, 0.8);
  line-height: 1.6;
}

/* ---------- Card ---------- */

.tip-panel {
  margin-top: 32px;
}

.tip-card {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-panel);
  background-color: var(--card);
  box-shadow: var(--shadow-card);
}

.tip-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.tip-card__tag {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 12px;
  border-radius: 999px;
  background-color: var(--accent);
  color: var(--accent-foreground);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tip-card__date {
  color: var(--muted-foreground);
  font-size: 14px;
}

.tip-card__title {
  margin-top: 16px;
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.tip-card__title:focus {
  outline: none;
}

.tip-card__body {
  max-width: 62ch;
  margin-top: 12px;
  color: rgba(12, 43, 25, 0.85);
  font-size: 18px;
  line-height: 1.6;
}

.tip-card__action {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  color: var(--foreground);
  line-height: 1.55;
}

.tip-card__action svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 3px;
  color: var(--primary);
}

.tip-card__action strong {
  font-weight: 600;
}

/* ---------- Controls ---------- */

.tip-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
}

.tip-controls .button--primary {
  height: 44px;
  padding: 0 22px;
  font-family: inherit;
  font-size: 16px;
  cursor: pointer;
}

.tip-controls .button--primary:focus-visible {
  outline: none;
  box-shadow: var(--ring-shadow);
}

.tip-ghost {
  height: 44px;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background-color: var(--card);
  color: var(--foreground);
  font-family: inherit;
  font-size: 15px;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.tip-ghost:hover {
  border-color: rgba(67, 148, 88, 0.45);
  background-color: var(--secondary);
}

.tip-ghost:focus-visible {
  outline: none;
  box-shadow: var(--ring-shadow);
}

.tip-ghost[hidden] {
  display: none;
}

.tip-controls__status {
  color: var(--muted-foreground);
  font-size: 14px;
}

/* ---------- Footnotes ---------- */

.tip-footnote {
  max-width: 62ch;
  margin-top: 20px;
  color: var(--muted-foreground);
  font-size: 14px;
  line-height: 1.6;
}

.tip-safety {
  margin-top: 40px;
}

/* ---------- Responsive ---------- */

@media (min-width: 640px) {
  .tip-card {
    padding: 36px 40px;
  }

  .tip-card__title {
    font-size: 38px;
  }
}

@media (max-width: 479px) {
  .tip-hero h1 {
    font-size: 32px;
  }

  .tip-card {
    padding: 22px;
  }

  .tip-card__title {
    font-size: 26px;
  }

  .tip-card__body {
    font-size: 16px;
  }

  .tip-controls .button--primary,
  .tip-ghost {
    width: 100%;
  }
}
