/* Faithsasha Health Academy (health.faithsashaacademy.com).
   Scoped to .hl so nothing leaks into the main Academy. */
.hl {
  --hl-ink: #10221f;
  --hl-muted: #52635f;
  --hl-line: #d9e6e2;
  --hl-bg: #f4faf8;
  --hl-card: #ffffff;
  --hl-teal: #0e6157;
  --hl-teal-deep: #083d37;
  --hl-mint: #e2f3ee;
  --hl-sun: #f2a541;
  --hl-red: #b3261e;
  --hl-radius: 14px;
  margin: 0;
  min-height: 100vh;
  background: var(--hl-bg);
  color: var(--hl-ink);
  font: 400 16px/1.6 Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  display: flex;
  flex-direction: column;
}
.hl :where(h1, h2, h3, h4, p, ul, ol, dl, figure) { margin: 0; }
.hl :where(h1, h2, h3) { font-family: Fraunces, Georgia, serif; font-weight: 600; line-height: 1.2; color: var(--hl-teal-deep); }
.hl :where(a) { color: var(--hl-teal); }
.hl *, .hl *::before, .hl *::after { box-sizing: border-box; }
.hl img { max-width: 100%; }

.hl-wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding-left: 16px; padding-right: 16px; }
.hl-main { flex: 1; padding: 32px 0 64px; }
.hl-main:has(> .hl-hero) { padding-top: 0; }
.hl-stack > * + * { margin-top: 16px; }
.hl-muted { color: var(--hl-muted); }
.hl-small { font-size: .875rem; }
.hl-eyebrow { font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--hl-teal); }

/* Header */
.hl-header { background: var(--hl-teal-deep); color: #fff; position: sticky; top: 0; z-index: 50; }
.hl-header .hl-wrap { display: flex; align-items: center; gap: 24px; min-height: 64px; flex-wrap: wrap; }
.hl-brand { display: flex; align-items: center; gap: 10px; color: #fff !important; text-decoration: none; font-weight: 700; }
.hl-brand-mark { width: 34px; height: 34px; border-radius: 10px; background: var(--hl-sun); color: var(--hl-teal-deep);
  display: grid; place-items: center; font-weight: 800; font-size: 1.1rem; }
.hl-brand small { display: block; font-weight: 500; font-size: .72rem; opacity: .75; letter-spacing: .04em; }
.hl-nav { display: flex; gap: 4px; flex-wrap: wrap; margin-left: auto; align-items: center; }
.hl-nav a { color: #d8ece7; text-decoration: none; padding: 8px 12px; border-radius: 8px; font-size: .92rem; font-weight: 500; }
.hl-nav a:hover, .hl-nav a[aria-current="page"] { background: rgba(255,255,255,.1); color: #fff; }
.hl-nav .hl-btn { margin-left: 6px; }
@media (max-width: 760px) {
  .hl-header .hl-wrap { gap: 8px; padding-top: 8px; padding-bottom: 8px; }
  .hl-nav { margin-left: 0; width: 100%; overflow-x: auto; flex-wrap: nowrap; }
  .hl-nav a { white-space: nowrap; }
}

/* Buttons */
.hl-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border-radius: 10px;
  font: 600 .95rem/1.2 Inter, system-ui, sans-serif; border: 1px solid transparent; cursor: pointer; text-decoration: none !important; white-space: nowrap; }
.hl-btn-primary { background: var(--hl-teal); color: #fff !important; }
.hl-btn-primary:hover { background: var(--hl-teal-deep); }
.hl-btn-sun { background: var(--hl-sun); color: var(--hl-teal-deep) !important; }
.hl-btn-ghost { background: transparent; border-color: var(--hl-line); color: var(--hl-teal-deep) !important; }
.hl-btn-ghost:hover { background: var(--hl-mint); }
.hl-btn-danger { background: #fff; border-color: #f0c9c6; color: var(--hl-red) !important; }
.hl-btn-sm { padding: 6px 12px; font-size: .85rem; }
.hl-btn[disabled] { opacity: .5; cursor: not-allowed; }
.hl form.button_to { display: inline; }

/* Hero */
.hl-hero { background: linear-gradient(160deg, var(--hl-teal-deep), var(--hl-teal)); color: #fff; padding: 64px 0 72px; }
.hl-hero h1 { color: #fff; font-size: clamp(2rem, 4.5vw, 3.2rem); max-width: 760px; }
.hl-hero p { color: #d8ece7; font-size: 1.12rem; max-width: 640px; margin-top: 16px; }
.hl-hero .hl-actions { margin-top: 28px; }
.hl-free { display: inline-block; background: var(--hl-sun); color: var(--hl-teal-deep); font-weight: 700; font-size: .8rem;
  padding: 4px 10px; border-radius: 999px; margin-bottom: 16px; letter-spacing: .04em; }
.hl-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.hl-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; }
.hl-stat { background: var(--hl-card); border: 1px solid var(--hl-line); border-radius: var(--hl-radius); padding: 18px 20px; }
.hl-stat strong { display: block; font: 600 1.9rem/1.1 Fraunces, Georgia, serif; color: var(--hl-teal-deep); }
.hl-stat span { color: var(--hl-muted); font-size: .9rem; }
.hl-hero + .hl-wrap .hl-stats { margin-top: -36px; }

/* Sections and cards */
.hl-section { padding: 48px 0 0; }
.hl-section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.hl-section-head h2 { font-size: 1.7rem; }
.hl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.hl-card { background: var(--hl-card); border: 1px solid var(--hl-line); border-radius: var(--hl-radius); padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.hl-card h3 { font-size: 1.2rem; }
.hl-card h3 a { color: inherit; text-decoration: none; }
.hl-card h3 a:hover { text-decoration: underline; }
.hl-card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 8px; }
.hl-panel { background: var(--hl-card); border: 1px solid var(--hl-line); border-radius: var(--hl-radius); padding: 24px; }
.hl-empty { text-align: center; padding: 40px 20px; color: var(--hl-muted); }

.hl-badge { display: inline-flex; align-items: center; gap: 6px; font-size: .75rem; font-weight: 700; padding: 3px 10px; border-radius: 999px;
  background: var(--hl-mint); color: var(--hl-teal-deep); white-space: nowrap; }
.hl-badge-warn { background: #fdf0d9; color: #7a4a00; }
.hl-badge-bad { background: #fbe4e2; color: var(--hl-red); }
.hl-badge-muted { background: #eef1f0; color: var(--hl-muted); }
.hl-reviewed { color: var(--hl-teal); font-size: .82rem; font-weight: 600; }

.hl-progress { height: 8px; background: var(--hl-mint); border-radius: 999px; overflow: hidden; }
.hl-progress span { display: block; height: 100%; background: var(--hl-teal); }

/* Flash */
.hl-flash { margin-bottom: 20px; padding: 12px 16px; border-radius: 10px; background: var(--hl-mint); color: var(--hl-teal-deep); font-weight: 500; }
.hl-flash-alert { background: #fbe4e2; color: var(--hl-red); }

/* Lesson */
.hl-lesson { display: grid; grid-template-columns: 280px 1fr; gap: 24px; align-items: start; }
.hl-lesson-list { list-style: none; padding: 0; }
.hl-lesson-list li a { display: flex; gap: 10px; padding: 10px 12px; border-radius: 10px; text-decoration: none; color: var(--hl-ink); font-size: .92rem; }
.hl-lesson-list li a[aria-current="page"] { background: var(--hl-mint); font-weight: 600; }
.hl-lesson-list .hl-done { color: var(--hl-teal); }
.hl-content { font-size: 1.04rem; overflow-wrap: anywhere; }
.hl-content :where(p, ul, ol) { margin-bottom: 1em; }
.hl-video { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--hl-radius); background: #000; }
@media (max-width: 860px) { .hl-lesson { grid-template-columns: 1fr; } }

/* Assistant */
.hl-answer { border-left: 4px solid var(--hl-teal); background: var(--hl-card); padding: 18px 20px; border-radius: 0 var(--hl-radius) var(--hl-radius) 0; white-space: pre-line; }
.hl-urgent { background: #fbe4e2; color: var(--hl-red); border-radius: 10px; padding: 12px 16px; font-weight: 600; }
.hl-notice { background: #fdf6e9; border: 1px solid #f3dfb8; border-radius: 10px; padding: 12px 16px; font-size: .9rem; color: #5e4708; }

/* Forms */
.hl-form { display: grid; gap: 16px; max-width: 720px; }
.hl-form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.hl label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.hl :where(input[type=text], input[type=number], input[type=date], input[type=datetime-local], input[type=search], select, textarea) {
  width: 100%; padding: 10px 12px; border: 1px solid var(--hl-line); border-radius: 10px; font: inherit; background: #fff; color: var(--hl-ink); }
.hl textarea { min-height: 110px; }
.hl :where(input, select, textarea):focus { outline: 2px solid var(--hl-teal); outline-offset: 1px; }
.hl-check { display: flex; gap: 8px; align-items: center; font-weight: 500; }
.hl-check input { width: auto; }
.hl-errors { background: #fbe4e2; color: var(--hl-red); border-radius: 10px; padding: 12px 16px; }

/* Tables */
.hl-table-wrap { overflow-x: auto; background: var(--hl-card); border: 1px solid var(--hl-line); border-radius: var(--hl-radius); }
.hl-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.hl-table th { text-align: left; font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--hl-muted); background: #f7fbfa; }
.hl-table th, .hl-table td { padding: 12px 14px; border-bottom: 1px solid var(--hl-line); vertical-align: top; }
.hl-table tr:last-child td { border-bottom: 0; }
.hl-table td.hl-num, .hl-table th.hl-num { text-align: right; font-variant-numeric: tabular-nums; }

/* Footer */
.hl-footer { background: #fff; border-top: 1px solid var(--hl-line); padding: 28px 0; font-size: .88rem; color: var(--hl-muted); }
.hl-footer .hl-wrap { display: flex; gap: 16px 32px; flex-wrap: wrap; justify-content: space-between; }
.hl-footer a { color: var(--hl-muted); }

/* Admin */
.hl-admin { display: grid; grid-template-columns: 230px 1fr; min-height: 100vh; }
.hl-side { background: var(--hl-teal-deep); color: #fff; padding: 20px 14px; display: flex; flex-direction: column; gap: 4px; }
.hl-side .hl-brand { margin-bottom: 20px; padding: 0 6px; }
.hl-side a.hl-side-link { color: #cfe6e0; text-decoration: none; padding: 9px 12px; border-radius: 8px; font-size: .92rem; display: flex; justify-content: space-between; }
.hl-side a.hl-side-link:hover, .hl-side a.hl-side-link[aria-current="page"] { background: rgba(255,255,255,.1); color: #fff; }
.hl-side-foot { margin-top: auto; font-size: .8rem; color: #9fc4bb; padding: 12px 6px 0; }
.hl-side-foot a { color: #cfe6e0; }
.hl-admin-main { padding: 28px 32px 48px; min-width: 0; }
.hl-admin-main h1 { font-size: 1.8rem; margin-bottom: 4px; }
.hl-page-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
@media (max-width: 860px) {
  .hl-admin { grid-template-columns: 1fr; }
  .hl-side { flex-direction: row; flex-wrap: wrap; align-items: center; }
  .hl-side .hl-brand { margin: 0 auto 0 0; }
  .hl-side-foot { display: none; }
  .hl-admin-main { padding: 20px 16px 40px; }
}
