/* ============================================================
   AI at Work — McMillanAI
   Stylesheet for /foundations/aiatwork/
   Design language matches main site: navy/gold, DM Serif/DM Sans
   ============================================================ */

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --navy: #0F1B2D;
  --navy-light: #1A2A42;
  --navy-mid: #162236;
  --navy-deep: #0A1325;
  --panel: #182740;
  --panel-light: #1F2F4D;
  --gold: #C9A84C;
  --gold-light: #D4B96A;
  --gold-dim: rgba(201, 168, 76, 0.15);
  --gold-border: rgba(201, 168, 76, 0.25);
  --white: #FFFFFF;
  --off-white: #F5F6F8;
  --gray: #8A95A5;
  --gray-light: #C0C8D4;
  --gray-mid: #6B7280;
  --text: #2A3142;
  --text-soft: rgba(255,255,255,0.85);
  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --shadow: 0 8px 32px rgba(10, 22, 40, 0.28);
  --shadow-sm: 0 2px 12px rgba(10, 22, 40, 0.18);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--navy);
  color: var(--text-soft);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

a { color: var(--gold); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold-light); }

/* ============================================================
   Top Navigation — with toggle between programs
   ============================================================ */
.aw-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 27, 45, 0.96);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--gold-border);
}
.aw-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.aw-logo {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--white);
  text-decoration: none;
}
.aw-logo span { color: var(--gold); }

/* Toggle */
.aw-toggle {
  display: inline-flex;
  background: var(--panel);
  border: 1px solid var(--gold-border);
  border-radius: 6px;
  overflow: hidden;
}
.aw-toggle a {
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--gray-light);
  text-decoration: none;
  transition: all var(--transition);
  border-right: 1px solid var(--gold-border);
}
.aw-toggle a:last-child { border-right: none; }
.aw-toggle a:hover { color: var(--gold); }
.aw-toggle a.active {
  background: var(--gold);
  color: var(--navy);
}

.aw-user {
  font-size: 13px;
  color: var(--gray-light);
  display: flex;
  gap: 16px;
  align-items: center;
}

/* ============================================================
   Page wrappers
   ============================================================ */
.aw-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 32px 100px;
}

.aw-container-narrow {
  max-width: 760px;
  margin: 0 auto;
  padding: 60px 32px 100px;
}

/* ============================================================
   Hero / Page Header
   ============================================================ */
.aw-hero {
  padding: 80px 32px 60px;
  background: radial-gradient(ellipse 80% 60% at 30% 20%, rgba(201, 168, 76, 0.08) 0%, transparent 60%), var(--navy);
  border-bottom: 1px solid rgba(201, 168, 76, 0.1);
}
.aw-hero-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.aw-hero-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gold);
  padding: 6px 14px;
  border: 1px solid var(--gold-border);
  margin-bottom: 24px;
}
.aw-hero h1 {
  font-family: var(--font-display);
  font-size: 48px;
  line-height: 1.15;
  color: var(--white);
  margin-bottom: 16px;
  max-width: 800px;
}
.aw-hero h1 em { color: var(--gold); font-style: italic; }
.aw-hero-sub {
  font-size: 18px;
  line-height: 1.7;
  color: var(--gray-light);
  max-width: 720px;
}

/* ============================================================
   Episode list (landing page)
   ============================================================ */
.aw-episode-list {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.aw-episode-card {
  background: var(--panel);
  border: 1px solid var(--gold-border);
  padding: 28px 32px;
  display: grid;
  grid-template-columns: 60px 1fr auto;
  gap: 24px;
  align-items: center;
  text-decoration: none;
  color: inherit;
  transition: all var(--transition);
}
.aw-episode-card:hover {
  border-color: var(--gold);
  background: var(--panel-light);
  transform: translateY(-2px);
}
.aw-episode-card.locked {
  opacity: 0.45;
  pointer-events: none;
}
.aw-episode-card.featured {
  background: linear-gradient(135deg, var(--panel) 0%, var(--navy-light) 100%);
  border: 2px solid var(--gold);
  padding: 36px 32px;
  grid-template-columns: 150px 1fr auto;
}
.aw-episode-num {
  font-family: var(--font-display);
  font-size: 36px;
  color: var(--gold);
  text-align: center;
  line-height: 1;
}
.aw-episode-num.kickoff {
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 2px;
  line-height: 1.4;
  text-align: left;
  padding-right: 16px;
  border-right: 1px solid rgba(201, 168, 76, 0.25);
}
.aw-episode-meta-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}
.aw-episode-title {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--white);
  margin-bottom: 6px;
  line-height: 1.3;
}
.aw-episode-card.featured .aw-episode-title { font-size: 26px; }
.aw-episode-summary {
  font-size: 14px;
  color: var(--gray-light);
  line-height: 1.6;
  max-width: 600px;
}
.aw-episode-status {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold);
  text-align: right;
  white-space: nowrap;
}
.aw-episode-status.locked-status {
  color: var(--gray);
}
.aw-episode-cta {
  font-size: 13px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.5px;
  white-space: nowrap;
}
.aw-episode-cta::after { content: ' →'; }

/* ============================================================
   Episode page — audio player zone
   ============================================================ */
.aw-audio-zone {
  background: var(--panel);
  border: 1px solid var(--gold-border);
  padding: 32px;
  margin-bottom: 32px;
}
.aw-audio-meta {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}
.aw-audio-title {
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--white);
  margin-bottom: 20px;
  line-height: 1.25;
}
.aw-audio-player {
  background: var(--navy-deep);
  border: 1px solid rgba(201, 168, 76, 0.1);
  margin-bottom: 16px;
  padding: 0;
  position: relative;
  overflow: hidden;
}
.aw-audio-player iframe,
.aw-audio-player video {
  display: block;
  width: 100%;
  border: none;
}
.aw-audio-placeholder {
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray);
  font-size: 14px;
  font-style: italic;
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy-mid) 100%);
}
.aw-audio-runtime {
  font-size: 13px;
  color: var(--gray);
}

/* ============================================================
   Content zones — key topics, challenge, manager
   ============================================================ */
.aw-zone {
  background: var(--panel);
  border: 1px solid rgba(201, 168, 76, 0.18);
  padding: 32px;
  margin-bottom: 24px;
}
.aw-zone-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(201, 168, 76, 0.15);
}
.aw-zone-icon {
  width: 36px;
  height: 36px;
  background: var(--gold-dim);
  border: 1px solid var(--gold-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--gold);
  flex-shrink: 0;
}
.aw-zone-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 2px;
}
.aw-zone-title {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--white);
  line-height: 1.2;
}

/* Key topics */
.aw-topics {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.aw-topics li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(201, 168, 76, 0.08);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-soft);
}
.aw-topics li:last-child { border-bottom: none; }
.aw-topics li::before {
  content: '→';
  color: var(--gold);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.6;
}

/* Challenge */
.aw-challenge-body {
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-soft);
}
.aw-challenge-body p { margin-bottom: 14px; }
.aw-challenge-body p:last-child { margin-bottom: 0; }
.aw-challenge-emphasis {
  background: rgba(201, 168, 76, 0.08);
  border-left: 3px solid var(--gold);
  padding: 14px 18px;
  margin: 16px 0;
  font-size: 15px;
  color: var(--gold-light);
  font-style: italic;
}

/* Manager section — collapsed by default */
.aw-manager {
  border-color: rgba(201, 168, 76, 0.3);
}
.aw-manager-toggle {
  cursor: pointer;
  user-select: none;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  text-align: left;
  font-family: inherit;
  color: inherit;
}
.aw-manager-toggle::after {
  content: '+';
  margin-left: auto;
  font-size: 24px;
  color: var(--gold);
  font-weight: 300;
  transition: transform var(--transition);
}
.aw-manager.open .aw-manager-toggle::after {
  content: '−';
}
.aw-manager-content {
  display: none;
  padding-top: 20px;
  margin-top: 20px;
  border-top: 1px solid rgba(201, 168, 76, 0.15);
}
.aw-manager.open .aw-manager-content { display: block; }

.aw-mgr-section {
  margin-bottom: 24px;
}
.aw-mgr-section:last-child { margin-bottom: 0; }
.aw-mgr-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}
.aw-mgr-section h4 {
  font-family: var(--font-display);
  font-size: 17px;
  color: var(--white);
  margin-bottom: 8px;
  line-height: 1.4;
}
.aw-mgr-section p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-soft);
  margin-bottom: 12px;
}
.aw-mgr-section p:last-child { margin-bottom: 0; }
.aw-mgr-discussion {
  background: rgba(201, 168, 76, 0.06);
  border-left: 3px solid var(--gold);
  padding: 16px 20px;
  font-size: 16px;
  font-style: italic;
  color: var(--gold-light);
  line-height: 1.7;
}
.aw-faq dt {
  font-weight: 600;
  color: var(--white);
  font-size: 15px;
  margin-bottom: 6px;
  margin-top: 14px;
}
.aw-faq dt:first-child { margin-top: 0; }
.aw-faq dd {
  font-size: 15px;
  line-height: 1.65;
  color: var(--gray-light);
  margin-left: 0;
  padding-left: 14px;
  border-left: 2px solid rgba(201, 168, 76, 0.2);
}

/* ============================================================
   Episode footer nav
   ============================================================ */
.aw-ep-nav {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid rgba(201, 168, 76, 0.15);
}
.aw-ep-nav a {
  flex: 1;
  padding: 16px 24px;
  border: 1px solid var(--gold-border);
  background: var(--panel);
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition);
  max-width: 280px;
}
.aw-ep-nav a:hover {
  border-color: var(--gold);
  background: var(--panel-light);
}
.aw-ep-nav a.prev { text-align: left; }
.aw-ep-nav a.next { text-align: right; margin-left: auto; }
.aw-ep-nav a small {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 4px;
}

/* ============================================================
   Preview / marketing page
   ============================================================ */
.aw-preview-hero {
  padding: 100px 32px 80px;
  text-align: center;
  background: var(--navy);
}
.aw-preview-hero h1 {
  font-family: var(--font-display);
  font-size: 56px;
  line-height: 1.1;
  color: var(--white);
  margin: 16px auto;
  max-width: 800px;
}
.aw-preview-hero h1 em { color: var(--gold); font-style: italic; }
.aw-preview-hero p {
  font-size: 19px;
  line-height: 1.6;
  color: var(--gray-light);
  max-width: 640px;
  margin: 0 auto;
}
.aw-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin: 60px auto;
  max-width: 1000px;
}
.aw-feature {
  padding: 32px;
  background: var(--panel);
  border: 1px solid var(--gold-border);
}
.aw-feature h3 {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--white);
  margin-bottom: 12px;
}
.aw-feature p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--gray-light);
}
.aw-tier-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin: 40px auto;
  max-width: 1000px;
}
.aw-tier {
  background: var(--panel);
  border: 1px solid var(--gold-border);
  padding: 40px 32px;
  text-align: left;
}
.aw-tier.featured { border-color: var(--gold); border-width: 2px; }
.aw-tier-name {
  font-family: var(--font-display);
  font-size: 26px;
  color: var(--white);
  margin-bottom: 8px;
}
.aw-tier-tagline {
  font-size: 13px;
  color: var(--gold);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 24px;
  font-weight: 600;
}
.aw-tier-includes {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 32px;
}
.aw-tier-includes li {
  font-size: 14px;
  color: var(--gray-light);
  padding-left: 22px;
  position: relative;
  line-height: 1.6;
}
.aw-tier-includes li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 700;
}
.aw-tier-cta {
  display: inline-block;
  padding: 14px 28px;
  background: var(--gold);
  color: var(--navy);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-decoration: none;
  transition: all var(--transition);
}
.aw-tier-cta:hover { background: var(--gold-light); transform: translateY(-1px); }
.aw-tier-cta.outline {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold);
}
.aw-tier-cta.outline:hover { background: var(--gold); color: var(--navy); }

/* Section title centered */
.aw-section-title {
  font-family: var(--font-display);
  font-size: 38px;
  color: var(--white);
  text-align: center;
  margin: 60px auto 12px;
  max-width: 800px;
  padding: 0 32px;
}
.aw-section-sub {
  font-size: 17px;
  color: var(--gray-light);
  text-align: center;
  max-width: 640px;
  margin: 0 auto 40px;
  padding: 0 32px;
  line-height: 1.6;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 720px) {
  .aw-hero { padding: 60px 24px 40px; }
  .aw-hero h1 { font-size: 32px; }
  .aw-hero-sub { font-size: 16px; }
  .aw-container, .aw-container-narrow { padding: 40px 20px 60px; }
  .aw-zone { padding: 24px 20px; }
  .aw-audio-zone { padding: 24px 20px; }
  .aw-audio-title { font-size: 22px; }
  .aw-episode-card { grid-template-columns: 50px 1fr; padding: 20px; gap: 16px; }
  .aw-episode-card.featured {
    grid-template-columns: 1fr;
    padding: 24px 20px;
    gap: 12px;
  }
  .aw-episode-num.kickoff {
    text-align: left;
    border-right: none;
    border-bottom: 1px solid rgba(201, 168, 76, 0.25);
    padding-right: 0;
    padding-bottom: 12px;
    font-size: 14px;
    line-height: 1.5;
  }
  .aw-episode-card.featured .aw-episode-title { font-size: 22px; }
  .aw-episode-status, .aw-episode-cta { grid-column: 1 / -1; padding-top: 8px; text-align: left; }
  .aw-feature-grid, .aw-tier-grid { grid-template-columns: 1fr; }
  .aw-preview-hero h1 { font-size: 36px; }
  .aw-section-title { font-size: 28px; }
  .aw-nav-inner {
    flex-wrap: wrap;
    gap: 8px 12px;
    padding: 12px 16px;
  }
  .aw-logo { font-size: 18px; }
  .aw-toggle {
    order: 3;
    flex-basis: 100%;
    justify-content: center;
  }
  .aw-toggle a { padding: 6px 14px; font-size: 12px; }
  .aw-user { font-size: 12px; }
  .aw-ep-nav { flex-direction: column; }
  .aw-ep-nav a.next { margin-left: 0; }
}
