/* ── MEGR 3171 WEEKLY COURSE GUIDES — SHARED STYLESHEET ── */
:root {
  --navy:      #0D2B55;
  --navy-mid:  #163a6e;
  --navy-light:#E8EFF8;
  --blue:      #2E75B6;
  --blue-light:#EDF3FB;
  --blue-border:#C8DDF2;
  --steel:     #4A90C4;
  --gold:      #F2A93B;
  --gold-light:#FEF3DC;
  --gold-border:#F0C87A;
  --terra:     #C04B2B;
  --terra-light:#F9EDE9;
  --terra-border:#EBC3B8;
  --green:     #2D7A4F;
  --green-light:#EBF5EF;
  --green-border:#A8D9BA;
  --white:     #FFFFFF;
  --off-white: #F7F6F3;
  --light-gray:#EDECEA;
  --border:    #DEDCDA;
  --mid-gray:  #9A9896;
  --text-dark: #1A1A1A;
  --text-body: #2E2E2E;
  --text-muted:#6B6B6B;
}

*{box-sizing:border-box;margin:0;padding:0;}
html{scroll-behavior:smooth;}
body{font-family:'DM Sans',sans-serif;background:var(--off-white);color:var(--text-body);line-height:1.65;font-size:15px;}

/* ── HEADER ── */
.site-header{background:var(--navy);color:white;border-bottom:3px solid var(--gold);}
.site-header-inner{max-width:1060px;margin:0 auto;padding:18px 40px;display:flex;align-items:center;justify-content:space-between;gap:20px;}
.site-brand{display:flex;flex-direction:column;gap:2px;}
.brand-top{font-family:'DM Mono',monospace;font-size:11px;color:rgba(255,255,255,0.45);letter-spacing:0.12em;text-transform:uppercase;}
.brand-name{font-family:'Source Serif 4',serif;font-size:20px;font-weight:600;color:white;text-decoration:none;}
.header-right{text-align:right;font-size:12px;color:rgba(255,255,255,0.45);font-family:'DM Mono',monospace;line-height:1.6;}

/* ── HERO ── */
.hero{background:var(--navy);color:white;padding:0;position:relative;overflow:hidden;}
.hero::after{content:'';position:absolute;right:-60px;top:-60px;width:400px;height:400px;border-radius:50%;border:1px solid rgba(242,169,59,0.07);pointer-events:none;}
.hero-inner{max-width:1060px;margin:0 auto;padding:52px 40px 44px;position:relative;z-index:2;}
.hero-eyebrow{display:flex;align-items:center;gap:12px;margin-bottom:20px;flex-wrap:wrap;}
.hero-tag{background:rgba(242,169,59,0.18);border:1px solid rgba(242,169,59,0.4);color:var(--gold);font-family:'DM Mono',monospace;font-size:11px;font-weight:500;letter-spacing:0.12em;text-transform:uppercase;padding:4px 12px;border-radius:3px;}
.hero-breadcrumb{font-size:13px;color:rgba(255,255,255,0.4);font-family:'DM Mono',monospace;}
.hero h1{font-family:'Source Serif 4',serif;font-size:36px;font-weight:600;line-height:1.15;color:white;margin-bottom:10px;}
.hero-subtitle{font-size:16px;color:rgba(255,255,255,0.62);margin-bottom:28px;max-width:640px;line-height:1.6;}
.hero-meta{display:flex;gap:28px;flex-wrap:wrap;}
.hero-meta-item{font-size:13px;color:rgba(255,255,255,0.5);}
.hero-meta-item .v{color:rgba(255,255,255,0.85);font-weight:500;}

/* ── WEEK PROGRESS ── */
.week-progress{background:var(--navy-mid);border-top:1px solid rgba(255,255,255,0.07);}
.progress-inner{max-width:1060px;margin:0 auto;padding:12px 40px;display:flex;align-items:center;gap:16px;}
.progress-label{font-size:11px;color:rgba(255,255,255,0.38);letter-spacing:0.08em;text-transform:uppercase;white-space:nowrap;font-family:'DM Mono',monospace;}
.progress-track{flex:1;height:3px;background:rgba(255,255,255,0.1);border-radius:2px;overflow:hidden;}
.progress-fill{height:100%;background:var(--gold);border-radius:2px;transition:width 1.2s ease;}
.progress-count{font-size:11px;color:rgba(255,255,255,0.38);font-family:'DM Mono',monospace;white-space:nowrap;}

/* ── PAGE BODY ── */
.page-body{max-width:1060px;margin:0 auto;padding:40px 40px 80px;display:grid;grid-template-columns:1fr 268px;gap:32px;align-items:start;}
.main-col{min-width:0;}
.side-col{position:sticky;top:24px;}

/* ── SECTION CARDS ── */
.section-card{background:white;border:1px solid var(--border);border-radius:10px;padding:28px 32px;margin-bottom:24px;}
.section-card:last-child{margin-bottom:0;}
.section-label{font-family:'DM Mono',monospace;font-size:10px;font-weight:500;letter-spacing:0.14em;text-transform:uppercase;color:var(--mid-gray);margin-bottom:5px;}
.section-title{font-family:'Source Serif 4',serif;font-size:22px;font-weight:600;color:var(--navy);margin-bottom:14px;line-height:1.25;}
.section-intro{color:var(--text-muted);font-size:14.5px;line-height:1.7;margin-bottom:20px;}
.divider{height:1px;background:var(--border);margin:20px 0;}

/* ── OVERVIEW BANNER ── */
.overview-banner{background:var(--blue-light);border:1px solid var(--blue-border);border-left:4px solid var(--blue);border-radius:8px;padding:20px 22px;margin-bottom:20px;}
.overview-banner p{font-size:15px;line-height:1.72;color:var(--text-body);}
.overview-banner p+p{margin-top:10px;}
.overview-banner strong{color:var(--navy);font-weight:600;}

/* ── TOPIC CHIPS ── */
.topic-chips{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:4px;}
.chip{background:var(--blue-light);border:1px solid var(--blue-border);color:var(--navy);font-size:12px;font-weight:500;padding:5px 12px;border-radius:20px;display:inline-flex;align-items:center;gap:5px;}
.chip-dot{width:6px;height:6px;border-radius:50%;background:var(--blue);flex-shrink:0;}

/* ── CALLOUTS ── */
.callout{border-radius:8px;padding:14px 18px;margin:14px 0;font-size:13.5px;line-height:1.6;display:flex;gap:12px;align-items:flex-start;}
.callout-icon{font-size:15px;flex-shrink:0;margin-top:2px;}
.callout-blue{background:var(--blue-light);border:1px solid var(--blue-border);color:var(--text-body);}
.callout-gold{background:var(--gold-light);border:1px solid var(--gold-border);color:#4A2E06;}
.callout-green{background:var(--green-light);border:1px solid var(--green-border);color:#1A4D33;}
.callout-terra{background:var(--terra-light);border:1px solid var(--terra-border);color:#5A1E0E;}

/* ── OBJECTIVES ── */
.obj-subsection-label{font-size:11px;font-family:'DM Mono',monospace;color:var(--mid-gray);letter-spacing:0.1em;text-transform:uppercase;margin-bottom:10px;}
.obj-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:14px;}
.obj-item{background:var(--off-white);border:1px solid var(--border);border-radius:8px;padding:14px 15px 14px 38px;font-size:13.5px;line-height:1.55;color:var(--text-body);position:relative;}
.obj-item::before{content:attr(data-code);position:absolute;left:12px;top:14px;font-family:'DM Mono',monospace;font-size:10px;font-weight:500;color:var(--blue);letter-spacing:0.04em;}
.obj-item.co{background:#F0F4FA;border-color:#C8D8EF;}
.obj-item.co::before{color:var(--navy);}
.obj-align{display:inline-block;margin-top:6px;font-family:'DM Mono',monospace;font-size:10px;color:var(--mid-gray);background:white;border:1px solid var(--border);border-radius:3px;padding:2px 6px;}

/* ── LEARNING PATH ── */
.learning-path{display:flex;flex-direction:column;}
.path-step{display:flex;gap:16px;align-items:flex-start;padding-bottom:22px;position:relative;}
.path-step:last-child{padding-bottom:0;}
.path-step::before{content:'';position:absolute;left:17px;top:38px;bottom:0;width:2px;background:var(--border);}
.path-step:last-child::before{display:none;}
.path-num{width:36px;height:36px;border-radius:50%;background:var(--navy);color:white;display:flex;align-items:center;justify-content:center;font-family:'DM Mono',monospace;font-size:13px;flex-shrink:0;z-index:1;}
.path-step.gold .path-num{background:var(--gold);color:var(--navy);}
.path-step.terra .path-num{background:var(--terra);color:white;}
.path-step.green .path-num{background:var(--green);color:white;}
.path-content{flex:1;padding-top:6px;}
.path-title{font-weight:600;font-size:14px;color:var(--navy);margin-bottom:3px;}
.path-desc{font-size:13.5px;color:var(--text-muted);line-height:1.6;}

/* ── TABLES ── */
.data-table{width:100%;border-collapse:collapse;font-size:13.5px;}
.data-table thead tr th{padding:11px 14px;text-align:left;font-weight:500;font-size:11.5px;letter-spacing:0.04em;font-family:'DM Mono',monospace;}
.data-table thead tr th:first-child{border-radius:7px 0 0 0;}
.data-table thead tr th:last-child{border-radius:0 7px 0 0;}
.data-table tbody tr{border-bottom:1px solid var(--border);}
.data-table tbody tr:last-child{border-bottom:none;}
.data-table tbody tr:hover{background:var(--off-white);}
.data-table tbody td{padding:14px;vertical-align:top;line-height:1.55;}
.table-navy thead tr{background:var(--navy);color:white;}
.table-navy tbody td:first-child{font-weight:500;color:var(--navy);}
.table-terra thead tr{background:var(--terra);color:white;}
.table-terra tbody td:first-child{font-weight:600;color:var(--navy);}

/* ── BADGES ── */
.badge{display:inline-block;font-size:10px;font-weight:500;font-family:'DM Mono',monospace;padding:2px 8px;border-radius:3px;margin-bottom:5px;letter-spacing:0.06em;text-transform:uppercase;}
.badge-read{background:var(--blue-light);color:var(--navy);border:1px solid var(--blue-border);}
.badge-watch{background:var(--gold-light);color:#7A4F0A;border:1px solid var(--gold-border);}
.badge-lab{background:var(--terra-light);color:var(--terra);border:1px solid var(--terra-border);}
.badge-explore{background:var(--green-light);color:var(--green);border:1px solid var(--green-border);}
.badge-due{display:inline-flex;align-items:center;gap:4px;font-size:11px;font-family:'DM Mono',monospace;padding:2px 8px;border-radius:3px;background:var(--terra-light);color:var(--terra);border:1px solid var(--terra-border);margin-top:4px;}
.badge-due.later{background:var(--gold-light);color:#7A4F0A;border-color:var(--gold-border);}
.badge-pts{display:inline-block;font-size:11px;font-family:'DM Mono',monospace;padding:2px 8px;border-radius:3px;background:var(--green-light);color:var(--green);border:1px solid var(--green-border);}
.mono-sm{font-family:'DM Mono',monospace;font-size:12px;color:var(--navy);}
.muted-mono{font-family:'DM Mono',monospace;font-size:12px;color:var(--mid-gray);}

/* ── SIDEBAR ── */
.sidebar-card{background:white;border:1px solid var(--border);border-radius:10px;overflow:hidden;margin-bottom:16px;}
.sidebar-card:last-child{margin-bottom:0;}
.sidebar-header{background:var(--navy);color:white;padding:11px 16px;font-size:11px;font-family:'DM Mono',monospace;letter-spacing:0.1em;text-transform:uppercase;}
.sidebar-body{padding:16px;}

/* ── CHECKLIST ── */
.check-item{display:flex;gap:10px;align-items:flex-start;padding:8px 0;border-bottom:1px solid var(--border);font-size:13px;line-height:1.5;cursor:pointer;user-select:none;transition:opacity 0.15s;}
.check-item:last-child{border-bottom:none;}
.check-item.done{opacity:0.42;text-decoration:line-through;}
.check-box{width:16px;height:16px;border:1.5px solid var(--border);border-radius:4px;flex-shrink:0;margin-top:1px;background:white;display:flex;align-items:center;justify-content:center;transition:all 0.15s;}
.check-item.done .check-box{background:var(--green);border-color:var(--green);}
.check-mark{color:white;font-size:10px;display:none;}
.check-item.done .check-mark{display:block;}

/* ── KEY DATES ── */
.date-row{display:flex;justify-content:space-between;align-items:center;padding:8px 0;border-bottom:1px solid var(--border);font-size:13px;}
.date-row:last-child{border-bottom:none;}
.date-label{color:var(--text-body);}
.date-when{font-family:'DM Mono',monospace;font-size:11px;color:var(--mid-gray);background:var(--off-white);padding:2px 7px;border-radius:3px;border:1px solid var(--border);}
.date-when.urgent{background:var(--terra-light);color:var(--terra);border-color:var(--terra-border);}
.date-when.soon{background:var(--gold-light);color:#7A4F0A;border-color:var(--gold-border);}

/* ── MODULE MAP ── */
.map-week{display:flex;align-items:center;gap:10px;padding:7px 10px;border-radius:6px;font-size:12.5px;color:var(--text-muted);border:1px solid transparent;}
.map-week.current{background:var(--blue-light);border-color:var(--blue-border);color:var(--navy);font-weight:600;}
.map-dot{width:7px;height:7px;border-radius:50%;background:var(--border);flex-shrink:0;}
.map-week.current .map-dot{background:var(--blue);}
.map-note{padding:6px 10px;font-size:11.5px;color:var(--mid-gray);font-style:italic;}

/* ── QUICK LINKS ── */
.quick-link{display:flex;align-items:center;gap:10px;padding:9px 0;border-bottom:1px solid var(--border);font-size:13px;color:var(--blue);text-decoration:none;transition:color 0.12s;}
.quick-link:last-child{border-bottom:none;}
.quick-link:hover{color:var(--navy);}
.quick-link-icon{width:28px;height:28px;border-radius:6px;display:flex;align-items:center;justify-content:center;flex-shrink:0;font-size:13px;}
.qli-pdf{background:var(--terra-light);color:var(--terra);}
.qli-video{background:var(--gold-light);color:#7A4F0A;}
.qli-quiz{background:var(--blue-light);color:var(--blue);}
.qli-hw{background:var(--green-light);color:var(--green);}
.qli-ext{background:var(--light-gray);color:var(--mid-gray);}

/* ── NAV BETWEEN WEEKS ── */
.week-nav{display:flex;justify-content:space-between;align-items:center;margin-top:8px;padding:20px 32px;background:white;border:1px solid var(--border);border-radius:10px;gap:16px;}
.week-nav-btn{display:inline-flex;align-items:center;gap:8px;font-size:14px;font-weight:500;color:var(--navy);text-decoration:none;padding:10px 18px;border:1px solid var(--border);border-radius:7px;transition:all 0.15s;}
.week-nav-btn:hover{background:var(--navy);color:white;border-color:var(--navy);}
.week-nav-btn.disabled{opacity:0.3;pointer-events:none;}
.week-nav-center{text-align:center;}
.week-nav-center a{font-size:13px;color:var(--mid-gray);text-decoration:none;font-family:'DM Mono',monospace;}
.week-nav-center a:hover{color:var(--navy);}

/* ── INDEX SPECIFIC ── */
.index-hero .hero h1{font-size:40px;}
.module-section{margin-bottom:48px;}
.module-header{display:flex;align-items:baseline;gap:16px;margin-bottom:20px;padding-bottom:14px;border-bottom:2px solid var(--border);}
.module-num{font-family:'DM Mono',monospace;font-size:11px;letter-spacing:0.14em;text-transform:uppercase;color:var(--mid-gray);}
.module-title{font-family:'Source Serif 4',serif;font-size:22px;font-weight:600;color:var(--navy);}
.module-weeks{font-size:13px;color:var(--text-muted);margin-left:auto;font-family:'DM Mono',monospace;}
.week-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:14px;}
.week-card{background:white;border:1px solid var(--border);border-radius:10px;padding:20px 22px;text-decoration:none;color:inherit;display:block;transition:all 0.15s;position:relative;overflow:hidden;}
.week-card::before{content:'';position:absolute;left:0;top:0;bottom:0;width:4px;background:var(--blue);}
.week-card:hover{border-color:var(--blue);transform:translateY(-2px);box-shadow:0 6px 20px rgba(13,43,85,0.08);}
.week-card-num{font-family:'DM Mono',monospace;font-size:10px;color:var(--mid-gray);letter-spacing:0.1em;text-transform:uppercase;margin-bottom:6px;}
.week-card-title{font-family:'Source Serif 4',serif;font-size:17px;font-weight:600;color:var(--navy);margin-bottom:6px;line-height:1.25;}
.week-card-desc{font-size:13px;color:var(--text-muted);line-height:1.55;margin-bottom:14px;}
.week-card-cta{font-size:12px;font-weight:600;color:var(--blue);font-family:'DM Mono',monospace;letter-spacing:0.04em;}
.week-card:hover .week-card-cta{color:var(--navy);}
.module-m1::before{background:var(--blue);}
.module-m2::before{background:var(--terra);}
.module-m3::before{background:var(--green);}
.module-m4::before{background:var(--gold);}
.module-m5::before{background:var(--navy);}

/* ── FOOTER ── */
footer{background:var(--navy);color:rgba(255,255,255,0.38);text-align:center;padding:28px 40px;font-size:12px;font-family:'DM Mono',monospace;}
footer strong{color:rgba(255,255,255,0.65);}

@media(max-width:760px){
  .page-body{grid-template-columns:1fr;padding:24px 20px 60px;}
  .hero-inner{padding:36px 20px 28px;}
  .hero h1{font-size:28px;}
  .obj-grid{grid-template-columns:1fr;}
  .side-col{position:static;}
  .site-header-inner{padding:14px 20px;}
  .week-cards{grid-template-columns:1fr;}
  .week-nav{flex-direction:column;padding:16px 20px;}
}
