/* Framework courses shared stylesheet. Coursera-style learning pages for the
   AI Boss school and family AI frameworks. Public, indexed, on-brand. */

:root {
  --fw-navy:   #0e2a3f;
  --fw-navy-2: #123a55;
  --fw-ink:    #1a2330;
  --fw-dim:    #5a6472;
  --fw-line:   #e4e2da;
  --fw-paper:  #ffffff;
  --fw-soft:   #f5f7f6;
  --fw-good:   #1f9d6b;
  --fw-warn:   #d4a23a;
  --fw-bad:    #c0392b;
  --fw-font-display: 'Oswald', 'Arial Narrow', sans-serif;
  --fw-font-body: 'Inter', system-ui, sans-serif;
  /* per-track accent, overridden on <body data-track> */
  --fw-accent:      #1f9d6b;
  --fw-accent-dark: #0e2a3f;
  --fw-accent-soft: #eef6f1;
}
body[data-track="schools"] { --fw-accent: #1f9d6b; --fw-accent-dark: #0e2a3f; --fw-accent-soft: #eef6f1; }
body[data-track="parents"] { --fw-accent: #b25fb0; --fw-accent-dark: #3a2140; --fw-accent-soft: #f7eef6; }

.fw-body { font-family: var(--fw-font-body); color: var(--fw-ink); background: var(--fw-soft); line-height: 1.65; margin: 0; }
.fw-body * { box-sizing: border-box; }
.fw-wrap { max-width: 820px; margin: 0 auto; padding: 0 1.25rem; }
.fw-wrap--wide { max-width: 1100px; }

/* course rail: sticky sub-header for a course */
.fw-rail { position: sticky; top: 0; z-index: 40; background: var(--fw-accent-dark); color: #fff; }
.fw-rail__inner { max-width: 1100px; margin: 0 auto; padding: 0.55rem 1.25rem; display: flex; align-items: center; gap: 1rem; justify-content: space-between; }
.fw-rail__home { color: #fff; text-decoration: none; font-family: var(--fw-font-display); letter-spacing: 0.03em; font-size: 0.95rem; display: inline-flex; align-items: center; gap: 0.5rem; }
.fw-rail__home b { color: var(--fw-accent); }
.fw-rail__prog { display: flex; align-items: center; gap: 0.6rem; font-size: 0.78rem; color: #cdd9e2; }
.fw-rail__bar { width: 120px; height: 7px; background: rgba(255,255,255,0.18); border-radius: 4px; overflow: hidden; }
.fw-rail__bar i { display: block; height: 100%; width: 0; background: var(--fw-accent); transition: width 0.5s cubic-bezier(0.16,1,0.3,1); }

/* hero */
.fw-hero { background: var(--fw-accent-dark); color: #fff; padding: 2.5rem 0 2.75rem; }
.fw-hero__eyebrow { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.78rem; color: var(--fw-accent); font-family: var(--fw-font-body); font-weight: 600; margin: 0 0 0.6rem; }
.fw-hero__title { font-family: var(--fw-font-display); font-weight: 600; font-size: clamp(1.7rem, 4vw, 2.7rem); line-height: 1.1; margin: 0 0 0.8rem; }
.fw-hero__sub { color: #d5e0e8; font-size: 1.05rem; max-width: 640px; margin: 0 0 1.4rem; }
.fw-hero__meta { display: flex; flex-wrap: wrap; gap: 1.6rem; margin-top: 1.4rem; }
.fw-hero__meta div { display: flex; flex-direction: column; }
.fw-hero__meta .n { font-family: var(--fw-font-display); font-size: 1.7rem; color: var(--fw-accent); line-height: 1; }
.fw-hero__meta .l { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: #9fb3c2; margin-top: 0.25rem; }

.fw-brandstrip { background: var(--fw-accent); color: #08202f; font-size: 0.85rem; font-weight: 600; text-align: center; padding: 0.55rem 1rem; }
body[data-track="parents"] .fw-brandstrip { color: #2a1730; }

/* buttons */
.fw-btn { display: inline-block; font-family: var(--fw-font-display); letter-spacing: 0.03em; text-decoration: none; padding: 0.75rem 1.5rem; border-radius: 8px; font-size: 1rem; cursor: pointer; border: 2px solid transparent; transition: all 0.15s; }
.fw-btn--solid { background: var(--fw-accent); color: #08202f; }
body[data-track="parents"] .fw-btn--solid { color: #2a1730; }
.fw-btn--solid:hover { filter: brightness(1.08); }
.fw-btn--ghost { border-color: #fff; color: #fff; }
.fw-btn--ghost:hover { background: #fff; color: var(--fw-accent-dark); }
.fw-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* content */
.fw-main { padding: 2.25rem 0 3rem; }
.fw-card-page { background: var(--fw-paper); border: 1px solid var(--fw-line); border-radius: 14px; padding: 2rem clamp(1.1rem, 3vw, 2.5rem); margin: -1.75rem auto 0; box-shadow: 0 8px 30px rgba(0,0,0,0.05); }
.fw-main h2 { font-family: var(--fw-font-display); font-weight: 600; font-size: 1.5rem; margin: 2.2rem 0 0.8rem; color: var(--fw-accent-dark); }
.fw-main h3 { font-family: var(--fw-font-display); font-weight: 500; font-size: 1.2rem; margin: 1.6rem 0 0.5rem; }
.fw-main p { margin: 0 0 1rem; }
.fw-main ul, .fw-main ol { margin: 0 0 1.1rem; padding-left: 1.3rem; }
.fw-main li { margin-bottom: 0.5rem; }
.fw-lede { font-size: 1.12rem; color: var(--fw-ink); border-left: 4px solid var(--fw-accent); padding-left: 1rem; margin: 0 0 1.5rem; }

/* objectives box */
.fw-obj { background: var(--fw-accent-soft); border: 1px solid var(--fw-line); border-radius: 10px; padding: 1.1rem 1.3rem; margin: 1.5rem 0; }
.fw-obj h4 { margin: 0 0 0.5rem; font-family: var(--fw-font-display); letter-spacing: 0.02em; color: var(--fw-accent-dark); font-size: 1.05rem; }
.fw-obj ul { margin: 0; padding-left: 1.2rem; }

/* evidence / sources box */
.fw-evidence { background: var(--fw-navy); color: #eaf1f5; border-radius: 12px; padding: 1.3rem 1.4rem; margin: 1.75rem 0; }
.fw-evidence h4 { margin: 0 0 0.7rem; font-family: var(--fw-font-display); color: #fff; letter-spacing: 0.02em; font-size: 1.1rem; }
.fw-evidence p { color: #cdd9e2; margin: 0 0 0.8rem; }
.fw-evidence a { color: #7fd4a8; }
.fw-evidence ul { margin: 0.4rem 0 0; padding-left: 1.2rem; }
.fw-evidence li { color: #cdd9e2; margin-bottom: 0.4rem; }

/* callout / try-this */
.fw-callout { background: #fff8ec; border-left: 4px solid var(--fw-warn); padding: 1rem 1.2rem; margin: 1.5rem 0; border-radius: 0 8px 8px 0; }
.fw-try { background: var(--fw-accent-soft); border: 1px dashed var(--fw-accent); border-radius: 10px; padding: 1.1rem 1.3rem; margin: 1.5rem 0; }
.fw-try h4 { margin: 0 0 0.5rem; font-family: var(--fw-font-display); color: var(--fw-accent-dark); }

/* checklist */
.fw-check { list-style: none; padding: 0; margin: 1.25rem 0; display: grid; gap: 0.55rem; }
.fw-check li { background: var(--fw-soft); border: 1px solid var(--fw-line); border-radius: 8px; padding: 0.75rem 0.9rem 0.75rem 2.4rem; position: relative; }
.fw-check li::before { content: "\2713"; position: absolute; left: 0.85rem; top: 0.72rem; color: var(--fw-accent); font-weight: 700; }

/* steps */
.fw-steps { counter-reset: fwstep; list-style: none; padding: 0; margin: 1.4rem 0; }
.fw-steps > li { counter-increment: fwstep; position: relative; padding: 0.3rem 0 1rem 3rem; }
.fw-steps > li::before { content: counter(fwstep); position: absolute; left: 0; top: 0; width: 2.1rem; height: 2.1rem; background: var(--fw-accent-dark); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--fw-font-display); }
.fw-steps > li strong { display: block; margin-bottom: 0.15rem; }

/* figures */
.fw-figure { margin: 1.75rem 0; padding: 1rem 1rem 0.6rem; background: var(--fw-soft); border: 1px solid var(--fw-line); border-radius: 10px; }
.fw-figure svg { width: 100%; height: auto; display: block; }
.fw-figcap { font-size: 0.88rem; color: var(--fw-dim); margin-top: 0.5rem; text-align: center; font-style: italic; }

/* table */
.fw-table { width: 100%; border-collapse: collapse; margin: 1.4rem 0; font-size: 0.94rem; }
.fw-table th, .fw-table td { text-align: left; padding: 0.65rem 0.8rem; border-bottom: 1px solid var(--fw-line); vertical-align: top; }
.fw-table th { background: var(--fw-accent-soft); font-family: var(--fw-font-display); font-weight: 500; color: var(--fw-accent-dark); }
.fw-table-scroll { overflow-x: auto; }

/* curriculum map */
.fw-map { display: grid; gap: 0.75rem; margin: 1.25rem 0 2rem; }
.fw-map__mod { display: grid; grid-template-columns: 3rem 1fr auto; gap: 1rem; align-items: center; background: var(--fw-paper); border: 1px solid var(--fw-line); border-radius: 12px; padding: 1rem 1.2rem; text-decoration: none; color: var(--fw-ink); transition: border-color 0.15s, transform 0.15s; }
.fw-map__mod:hover { border-color: var(--fw-accent); transform: translateX(3px); }
.fw-map__no { font-family: var(--fw-font-display); font-size: 1.5rem; color: var(--fw-accent); }
.fw-map__t { display: block; font-family: var(--fw-font-display); font-size: 1.12rem; color: var(--fw-accent-dark); }
.fw-map__d { display: block; font-size: 0.9rem; color: var(--fw-dim); margin-top: 0.15rem; }
.fw-map__tick { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--fw-line); display: flex; align-items: center; justify-content: center; color: transparent; font-size: 0.8rem; }
.fw-map__mod.is-done .fw-map__tick { background: var(--fw-accent); border-color: var(--fw-accent); color: #fff; }

/* cards grid (hub) */
.fw-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.25rem; margin: 1.5rem 0; }
.fw-tile { background: var(--fw-paper); border: 1px solid var(--fw-line); border-radius: 14px; padding: 1.5rem; text-decoration: none; color: var(--fw-ink); display: flex; flex-direction: column; transition: border-color 0.15s, transform 0.15s; }
.fw-tile:hover { border-color: var(--fw-accent); transform: translateY(-3px); }
.fw-tile__tag { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--fw-accent); font-weight: 600; }
.fw-tile__t { font-family: var(--fw-font-display); font-size: 1.3rem; color: var(--fw-accent-dark); margin: 0.4rem 0 0.5rem; }
.fw-tile__d { font-size: 0.92rem; color: var(--fw-dim); flex: 1; }
.fw-tile__go { margin-top: 0.9rem; font-family: var(--fw-font-display); color: var(--fw-accent); }

/* source library */
.fw-sources { display: grid; gap: 0.85rem; margin: 1.25rem 0; }
.fw-source { background: var(--fw-paper); border: 1px solid var(--fw-line); border-left: 4px solid var(--fw-accent); border-radius: 8px; padding: 0.9rem 1.1rem; }
.fw-source b { display: block; font-family: var(--fw-font-display); font-weight: 500; color: var(--fw-accent-dark); font-size: 1.02rem; }
.fw-source span { font-size: 0.9rem; color: var(--fw-dim); }
.fw-source a { font-size: 0.85rem; word-break: break-word; }

/* pager */
.fw-pager { display: flex; justify-content: space-between; gap: 1rem; margin: 2.5rem 0 0; flex-wrap: wrap; }
.fw-pager a { flex: 1; min-width: 200px; background: var(--fw-paper); border: 1px solid var(--fw-line); border-radius: 10px; padding: 0.9rem 1.1rem; text-decoration: none; color: var(--fw-ink); transition: border-color 0.15s; }
.fw-pager a:hover { border-color: var(--fw-accent); }
.fw-pager .fw-pager__k { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--fw-dim); }
.fw-pager .fw-pager__t { display: block; font-family: var(--fw-font-display); color: var(--fw-accent-dark); margin-top: 0.15rem; }
.fw-pager a.fw-next { text-align: right; }
.fw-mark { display: block; text-align: center; margin: 2rem 0 0; }

/* signup + cta reused from articles, scoped */
.fw-cta { text-align: center; background: var(--fw-accent-soft); border: 1px solid var(--fw-line); border-radius: 12px; padding: 1.75rem; margin: 2.25rem 0; }
.fw-cta h3 { font-family: var(--fw-font-display); margin: 0 0 0.4rem; color: var(--fw-accent-dark); }
.fw-cta a.fw-btn { margin-top: 0.75rem; background: var(--fw-accent-dark); color: #fff; border: none; }

.fw-breadcrumb { font-size: 0.82rem; color: #9fb3c2; margin: 0 0 0.4rem; }
.fw-breadcrumb a { color: #cdd9e2; text-decoration: none; }
.fw-breadcrumb a:hover { color: #fff; }

.fw-footer { background: var(--fw-navy); color: #9fb3c2; text-align: center; padding: 2rem 1rem; font-size: 0.85rem; }
.fw-footer a { color: #cdd9e2; text-decoration: none; margin: 0 0.6rem; }
.fw-footer a:hover { color: #fff; }

@media (max-width: 560px) {
  .fw-map__mod { grid-template-columns: 2.2rem 1fr auto; padding: 0.85rem 0.9rem; }
  .fw-hero__meta { gap: 1.1rem; }
}
