/* The course catalog on the home page and the header of every course page.
 *
 * Handed off by Moe on 2026-09-02 (fellowship-redesign-handoff.zip). Two
 * things changed and nothing else: the home tiles became one bordered list,
 * two columns of rows with the instructor as the largest thing in each cell;
 * and the course page moved its instructor from a footnote under the syllabus
 * to a card at the top of the right column, above the pricing card.
 *
 * His stylesheet declared its own :root tokens (--bg, --gold, .pf-chip, .pfc-row…).
 * Those names collide with the rest of the site, so every rule here is scoped
 * under .pf-catalog (home) or .pf-pdp (course page) and reads the site's
 * --pf-* tokens from pf-theme.css. Icons are the site's masked SVG set
 * (.pf-i) rather than his inline <svg>s, per the icon rule.
 */

/* ============================== shared ============================== */
:is(.pf-catalog, .pf-pdp) { font-family: var(--pf-font); }
:is(.pf-catalog, .pf-pdp), :is(.pf-catalog, .pf-pdp) *,
:is(.pf-catalog, .pf-pdp) *::before, :is(.pf-catalog, .pf-pdp) *::after { box-sizing: border-box; }
:is(.pf-catalog, .pf-pdp) :where(h1, h2, h3, h4, p, ul, ol) { margin: 0; padding: 0; }
:is(.pf-catalog, .pf-pdp) a { color: inherit; text-decoration: none; }
:is(.pf-catalog, .pf-pdp) img { display: block; }
:is(.pf-catalog, .pf-pdp) p { color: var(--pf-sub); }
:is(.pf-catalog, .pf-pdp) :focus-visible { outline: 2px solid var(--pf-gold); outline-offset: 3px; border-radius: 6px; }

:is(.pf-catalog, .pf-pdp) .pf-chip {
  display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px; border-radius: 999px;
  font-size: 11px; font-weight: 800; letter-spacing: 1.4px; text-transform: uppercase;
  border: 1px solid var(--pf-line-strong); color: var(--pf-fainter); white-space: nowrap;
}
:is(.pf-catalog, .pf-pdp) .pf-chip--live { background: var(--pf-gold-fill); border-color: var(--pf-gold-edge); color: var(--pf-gold); }
:is(.pf-catalog, .pf-pdp) .pf-chip--new { background: rgba(16, 185, 129, .10); border-color: rgba(16, 185, 129, .35); color: var(--pf-green-lit); }
:is(.pf-catalog, .pf-pdp) .pf-chip .pf-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--pf-green); animation: pfPulse 1.8s ease-in-out infinite; }
:is(.pf-catalog, .pf-pdp) .pf-eyebrow { font-size: 11px; font-weight: 800; letter-spacing: 1.8px; text-transform: uppercase; color: var(--pf-fainter); }

/* ============================== HOME: course list ============================== */
.pf-catalog .pfc-catalog { max-width: 1200px; margin: 0 auto; padding: clamp(24px, 3vw, 40px) clamp(20px, 4vw, 40px) clamp(64px, 8vw, 100px); scroll-margin-top: 80px; }
.pf-catalog .pfc-head { max-width: 720px; margin: 0 auto clamp(28px, 4vw, 48px); text-align: center; }
.pf-catalog .pfc-head h2 { font-size: clamp(30px, 4.2vw, 44px); font-weight: 900; letter-spacing: -.025em; line-height: 1.08; text-wrap: balance; }
.pf-catalog .pfc-head h2 .pfc-k { color: var(--pf-gold); }
.pf-catalog .pfc-head p { margin: 14px auto 0; font-size: 17px; max-width: 60ch; }

/* Two columns of rows inside one bordered container. Hairlines separate
   cells; nothing is boxed individually. The cell is the link. */
.pf-catalog .pfc-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--pf-line); border-radius: var(--pf-r-card); background: var(--pf-surface-0); overflow: hidden; }
.pf-catalog .pfc-row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "title when" "sub sub" "who go";
  column-gap: 24px; padding: 30px 34px 32px; align-items: start; align-content: start; min-width: 0;
  transition: background .2s;
}
.pf-catalog .pfc-row:nth-child(even) { border-left: 1px solid var(--pf-line); }
.pf-catalog .pfc-row:nth-child(n+3) { border-top: 1px solid var(--pf-line); }
.pf-catalog .pfc-row:hover { background: var(--pf-surface-2); }
.pf-catalog .pfc-row .pfc-title { grid-area: title; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; min-width: 0; }
.pf-catalog .pfc-row h3 { font-size: clamp(21px, 1.9vw, 24px); font-weight: 700; letter-spacing: -.02em; line-height: 1.15; }
.pf-catalog .pfc-row .pfc-when { grid-area: when; display: flex; flex-direction: column; align-items: flex-end; white-space: nowrap; padding-top: 4px; }
.pf-catalog .pfc-row .pfc-when .pfc-d { font-size: 15px; font-weight: 500; color: var(--pf-ink); font-variant-numeric: tabular-nums; }
.pf-catalog .pfc-row .pfc-when .pfc-l { margin-top: 2px; font-size: 13.5px; color: var(--pf-faint); }
.pf-catalog .pfc-row .pfc-sub { grid-area: sub; margin-top: 8px; font-size: 15.5px; line-height: 1.5; color: var(--pf-sub); text-wrap: pretty; }
.pf-catalog .pfc-row .pfc-who { grid-area: who; margin-top: 22px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.pf-catalog .pfc-person { display: flex; align-items: center; gap: 16px; min-width: 0; }
.pf-catalog .pfc-person img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; object-position: center top; flex: none; background: var(--pf-surface-2); }
.pf-catalog .pfc-person .pfc-name { font-size: 22px; font-weight: 500; letter-spacing: -.015em; line-height: 1.15; color: var(--pf-ink); }
.pf-catalog .pfc-person .pfc-role { margin-top: 3px; font-size: 15px; line-height: 1.4; color: var(--pf-sub); text-wrap: pretty; }
.pf-catalog .pfc-person .pfc-role b { font-weight: 500; color: var(--pf-ink); }
.pf-catalog .pfc-row .pfc-go { grid-area: go; align-self: center; justify-self: end; margin-top: 22px; color: var(--pf-faint); font-size: 26px; line-height: 1; transition: color .2s, transform .2s; }
.pf-catalog .pfc-row:hover .pfc-go { color: var(--pf-gold); transform: translateX(5px); }

.pf-catalog .pfc-foot { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px; padding-top: 36px; }
.pf-catalog .pfc-foot p { font-size: 16px; max-width: 62ch; text-wrap: pretty; }
.pf-catalog .pfc-foot p b { color: var(--pf-gold); font-weight: 700; }
.pf-catalog .pfc-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 22px;
  border-radius: var(--pf-r-btn); font-weight: 800; font-size: 14px; letter-spacing: .2px;
  border: 1px solid transparent; transition: background .2s, transform .2s, border-color .2s;
}
.pf-catalog .pfc-btn .pf-i { font-size: 16px; }
.pf-catalog .pfc-btn--primary { background: var(--pf-gold); color: var(--pf-gold-ink); }
.pf-catalog .pfc-btn--primary:hover { background: var(--pf-gold-dim); transform: translateY(-2px); }

@media (max-width: 900px) {
  .pf-catalog .pfc-list { grid-template-columns: 1fr; }
  .pf-catalog .pfc-row:nth-child(even) { border-left: 0; }
  .pf-catalog .pfc-row:nth-child(n+2) { border-top: 1px solid var(--pf-line); }
}
@media (max-width: 640px) {
  .pf-catalog .pfc-row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "title title" "when when" "sub sub" "who go"; padding: 24px 22px 26px; }
  .pf-catalog .pfc-row .pfc-when { flex-direction: row; align-items: baseline; gap: 10px; padding-top: 8px; white-space: normal; }
  .pf-catalog .pfc-row .pfc-when .pfc-l { margin-top: 0; }
  .pf-catalog .pfc-row .pfc-when .pfc-l::before { content: "\00b7\00a0"; color: var(--pf-ghost); }
  .pf-catalog .pfc-row .pfc-who { margin-top: 18px; }
  .pf-catalog .pfc-person img { width: 58px; height: 58px; }
  .pf-catalog .pfc-person .pfc-name { font-size: 20px; }
}

/* ============================== PDP ============================== */
.pf-pdp { background: var(--pf-bg); min-height: 100vh; }
.pf-pdp .pfp { max-width: 1140px; margin: 0 auto; padding: clamp(18px, 3vw, 36px) clamp(20px, 4vw, 40px) 90px; }
.pf-pdp .pfp-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: clamp(20px, 3vw, 36px); }
.pf-pdp .pfp-back { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--pf-sub); min-height: 40px; }
.pf-pdp .pfp-back:hover { color: var(--pf-ink); }
.pf-pdp .pfp-close { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--pf-surface-2); border: 1px solid var(--pf-line-strong); color: var(--pf-ink); font-size: 16px; transition: border-color .15s; }
.pf-pdp .pfp-close:hover { border-color: rgba(245, 197, 24, .6); }

.pf-pdp .pfp-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; column-gap: clamp(28px, 4vw, 56px); align-items: start; }
.pf-pdp .pfp-col-l { display: flex; flex-direction: column; min-width: 0; }
.pf-pdp .pfp-col-r { display: flex; flex-direction: column; gap: 24px; align-self: stretch; min-width: 0; }
.pf-pdp .pfp-head { display: flex; flex-direction: column; }
.pf-pdp .pfp-head .pfp-chips { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pf-pdp .pfp-head h1 { margin-top: 18px; font-size: clamp(34px, 4.8vw, 54px); font-weight: 900; letter-spacing: -.028em; line-height: 1.04; text-wrap: balance; }
.pf-pdp .pfp-head .pfp-sub { margin-top: 16px; font-size: 18px; line-height: 1.55; max-width: 56ch; text-wrap: pretty; }

.pf-pdp .pfp-facts { margin-top: 28px; }
.pf-pdp .pfp-facts-grid { display: grid; grid-template-columns: minmax(200px, 1.3fr) repeat(3, minmax(0, 1fr)); border: 1px solid rgba(255, 255, 255, .09); border-radius: 14px; overflow: hidden; background: var(--pf-surface-0); }
.pf-pdp .pfp-fact { padding: 13px 16px; border-left: 1px solid var(--pf-line-soft); margin-left: -1px; }
.pf-pdp .pfp-fact .pfp-lbl { font-size: 11px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--pf-ghost); }
.pf-pdp .pfp-fact .pfp-val { margin-top: 3px; font-size: 15px; font-weight: 700; color: var(--pf-ink); display: flex; flex-wrap: wrap; align-items: center; gap: 0 5px; font-variant-numeric: tabular-nums; line-height: 1.35; min-width: 0; }
.pf-pdp .pfp-fact .pfp-val.pfp-gold { color: var(--pf-gold); }
.pf-pdp .pfp-fact .pfp-val .pf-i { color: var(--pf-gold); }
.pf-pdp .pfp-fact .pfp-val > .sc-interp { display: contents; }
@media (max-width: 640px) { .pf-pdp .pfp-facts-grid { grid-template-columns: 1fr 1fr; } }

/* The instructor — the biggest thing on the page after the course name. */
.pf-pdp .pfp-instructor { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 32px 28px 30px; background: var(--pf-surface); border: 1px solid var(--pf-line); border-radius: 22px; overflow: hidden; }
.pf-pdp .pfp-instructor::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 45% at 50% 0%, rgba(245, 197, 24, .10), transparent 70%); pointer-events: none; }
.pf-pdp .pfp-instructor > * { position: relative; }
.pf-pdp .pfp-instructor .pf-eyebrow { color: var(--pf-gold); }
.pf-pdp .pfp-instructor .pfp-person { display: flex; flex-direction: column; align-items: center; width: 100%; }
.pf-pdp .pfp-instructor img { width: min(232px, 60vw); height: min(232px, 60vw); border-radius: 50%; object-fit: cover; object-position: center top; margin-top: 18px; background: var(--pf-surface-2); box-shadow: 0 24px 60px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .08), 0 0 0 6px rgba(245, 197, 24, .10); }
.pf-pdp .pfp-instructor .pfp-name { margin-top: 22px; font-size: clamp(28px, 3vw, 34px); font-weight: 900; letter-spacing: -.025em; line-height: 1.05; color: var(--pf-ink); }
.pf-pdp .pfp-instructor .pfp-role { margin-top: 8px; font-size: 17px; font-weight: 500; line-height: 1.35; color: var(--pf-sub); text-wrap: balance; }
.pf-pdp .pfp-instructor .pfp-role b { color: var(--pf-gold); font-weight: 700; }
.pf-pdp .pfp-instructor .pfp-cred { margin-top: 14px; font-size: 13px; color: var(--pf-faint); padding-top: 14px; border-top: 1px solid var(--pf-line-soft); width: 100%; }
.pf-pdp .pfp-instructor .pfp-cred b { color: var(--pf-ink); font-weight: 600; }
/* Two teachers share the card: smaller portraits, a hairline between them. */
.pf-pdp .pfp-instructor--two img { width: min(168px, 50vw); height: min(168px, 50vw); }
.pf-pdp .pfp-instructor--two .pfp-name { font-size: clamp(24px, 2.4vw, 28px); }
.pf-pdp .pfp-instructor--two .pfp-role { font-size: 15.5px; }
.pf-pdp .pfp-instructor--two .pfp-person + .pfp-person { margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--pf-line-soft); }
.pf-pdp .pfp-instructor--two .pfp-person + .pfp-person img { margin-top: 0; }

.pf-pdp .pfp-main { display: flex; flex-direction: column; gap: clamp(28px, 3.5vw, 40px); min-width: 0; padding-top: clamp(32px, 4vw, 44px); }
.pf-pdp .pfp-main h3 { margin-bottom: 14px; font-size: 12.5px; font-weight: 800; letter-spacing: 1.8px; text-transform: uppercase; color: var(--pf-fainter); }
.pf-pdp .pfp-outcomes { display: flex; flex-direction: column; gap: 10px; }
.pf-pdp .pfp-outcomes li { display: flex; gap: 12px; font-size: 15px; line-height: 1.55; list-style: none; }
.pf-pdp .pfp-outcomes li .pf-i { flex: none; color: var(--pf-gold); margin-top: .25em; }
.pf-pdp .pfp-who-for { font-size: 15px; line-height: 1.65; max-width: 66ch; text-wrap: pretty; }
.pf-pdp .pfp-syllabus { border: 1px solid var(--pf-line); border-radius: 14px; overflow: hidden; }
.pf-pdp .pfp-week { display: flex; gap: 16px; padding: 13px 18px; border-top: 1px solid rgba(255, 255, 255, .06); margin-top: -1px; font-size: 15px; background: var(--pf-surface-0); }
.pf-pdp .pfp-week .pfp-n { color: var(--pf-gold); font-weight: 800; flex: none; width: 84px; font-size: 12px; letter-spacing: .6px; text-transform: uppercase; padding-top: 3px; }
.pf-pdp .pfp-week .pfp-w { line-height: 1.5; color: var(--pf-ink); }
.pf-pdp .pfp-week .pfp-w b { display: block; font-weight: 700; }
.pf-pdp .pfp-capstone { background: rgba(245, 197, 24, .04); border: 1px solid rgba(245, 197, 24, .2); border-radius: 16px; padding: 20px 22px; }
.pf-pdp .pfp-capstone .pfp-lbl { font-size: 12px; font-weight: 800; letter-spacing: 1.8px; color: var(--pf-gold); text-transform: uppercase; }
.pf-pdp .pfp-capstone p { margin-top: 8px; font-size: 15px; line-height: 1.6; color: var(--pf-ink); }
.pf-pdp .pfp-note { font-size: 14px; line-height: 1.6; color: var(--pf-sub); }
.pf-pdp .pfp-maven { align-self: flex-start; font-size: 14px; color: var(--pf-sub); text-decoration: underline; text-underline-offset: 3px; }
.pf-pdp .pfp-maven:hover { color: var(--pf-ink); }

/* The pricing card keeps the live markup (inline styles, pf-course.js ids).
   It only needs to stop growing to the column's height and to keep sticking. */
.pf-pdp .pfp-col-r > aside.pfp-price { flex: 0 0 auto !important; min-width: 0 !important; position: sticky; top: 20px; }

/* Below 900px the two columns dissolve and the four blocks stack in reading
   order: title, instructor, course content, pricing. */
@media (max-width: 900px) {
  .pf-pdp .pfp-layout { display: flex; flex-direction: column; gap: 28px; }
  .pf-pdp .pfp-col-l, .pf-pdp .pfp-col-r { display: contents; }
  .pf-pdp .pfp-head { order: 1; }
  .pf-pdp .pfp-instructor { order: 2; }
  .pf-pdp .pfp-main { order: 3; padding-top: 0 !important; }
  .pf-pdp .pfp-col-r > aside.pfp-price { order: 4; position: static !important; }
}

@media (prefers-reduced-motion: reduce) {
  .pf-catalog .pfc-btn:hover, .pf-catalog .pfc-row:hover .pfc-go { transform: none; }
  :is(.pf-catalog, .pf-pdp) .pf-chip .pf-dot { animation: none; }
}
