:root {
  --navy: #011F42;
  --navy-dark: #011F42;
  --navy-mid: #013161;
  --red: #0066cc;
  --white: #ffffff;
  --off-white: #f4f6f9;
  --grey-light: #e8ecf2;
  --grey-mid: #b0bccf;
  --grey-text: #6b7a94;
  --grey-dark: #3a4a63;
  --border: #d0d8e8;
  --font-main: 'Barlow', sans-serif;
  --font-cond: 'Barlow Condensed', sans-serif;
  --header-h: 72px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
[id] { scroll-margin-top: calc(var(--header-h) + 20px); }

body {
  background: var(--off-white);
  color: var(--navy-dark);
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1.65;
}

/* HEADER */
header {
  height: var(--header-h);
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.header-left { display: flex; align-items: center; gap: 1.5rem; }

.logo-slot {
  width: 190px;
  height: 46px;
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.logo-slot span {
  font-size: 9px;
  color: rgba(255,255,255,0.3);
  font-family: var(--font-cond);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hdivider { width: 1px; height: 30px; background: rgba(255,255,255,0.18); }

.header-title h1 {
  font-family: var(--font-cond);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.header-title p {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.45);
  font-weight: 300;
}

.header-badge {
  background: var(--red);
  color: var(--white);
  font-family: var(--font-cond);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  padding: 0.38rem 1rem;
  text-transform: uppercase;
  flex-shrink: 0;
  text-decoration: none;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.55);
  font-family: var(--font-cond);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.15s;
}

.back-link:hover { color: var(--white); }
.back-link svg { width: 14px; height: 14px; }

/* HERO */
.hero {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy-mid) 100%);
  padding: 2.5rem 0;
  border-bottom: 4px solid var(--red);
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2.5rem;
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.hero-icon {
  width: 58px;
  height: 58px;
  background: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hero-icon svg { width: 28px; height: 28px; color: white; }

.hero-text h2 {
  font-family: var(--font-cond);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-text p {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.55);
  margin-top: 0.25rem;
  font-weight: 300;
}

/* MAIN */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2.5rem 7rem;
}

/* TOC */
.toc {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 4px solid var(--navy);
  margin-bottom: 3rem;
  padding: 1.75rem 2rem;
}

.toc-title {
  font-family: var(--font-cond);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--grey-text);
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.toc-grid {
  display: grid;
  gap: 0.75rem;
}

.toc-item {
  display: block;
  text-decoration: none;
  background: var(--off-white);
  border: 1px solid var(--border);
  border-bottom: 3px solid var(--grey-light);
  padding: 1rem 1.1rem;
  transition: all 0.15s ease;
}

.toc-item:hover {
  border-bottom-color: var(--red);
  background: var(--white);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.toc-num {
  font-family: var(--font-cond);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--grey-light);
  line-height: 1;
  margin-bottom: 0.4rem;
  transition: color 0.15s;
}

.toc-item:hover .toc-num { color: var(--red); }

.toc-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.35;
}

.toc-sub {
  font-size: 0.73rem;
  color: var(--grey-text);
  margin-top: 0.2rem;
  font-weight: 300;
}

/* EXERCISE */
.exercise {
  background: var(--white);
  border: 1px solid var(--border);
  margin-bottom: 2rem;
  overflow: hidden;
}

.exercise-header {
  background: var(--navy);
  padding: 1.35rem 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.ex-left { display: flex; align-items: center; gap: 1.1rem; }

.ex-num {
  background: var(--red);
  color: var(--white);
  font-family: var(--font-cond);
  font-size: 1.15rem;
  font-weight: 700;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ex-title {
  font-family: var(--font-cond);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.ex-subtitle {
  font-size: 0.83rem;
  color: rgba(255,255,255,0.45);
  margin-top: 0.15rem;
  font-weight: 300;
}

.tool-badge {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.65);
  font-family: var(--font-cond);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  padding: 0.3rem 0.85rem;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}

.exercise-body { padding: 1.75rem; }

/* PART HEADER */
.part-header {
  background: var(--grey-light);
  border-bottom: 1px solid var(--border);
  padding: 0.85rem 1.75rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.part-tag {
  font-family: var(--font-cond);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--navy);
  text-transform: uppercase;
  background: var(--navy);
  color: white;
  padding: 0.2rem 0.6rem;
}

.part-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy);
}

/* DOCS */
.docs-section { margin-bottom: 1.75rem; }

.docs-label {
  font-family: var(--font-cond);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--grey-text);
  text-transform: uppercase;
  margin-bottom: 0.65rem;
}

.docs-grid { display: flex; flex-wrap: wrap; gap: 0.6rem; }

.doc-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: var(--off-white);
  border: 1px solid var(--border);
  border-left: 3px solid var(--navy);
  padding: 0.65rem 1.1rem;
  text-decoration: none;
  color: var(--navy);
  font-size: 0.84rem;
  font-weight: 500;
  transition: all 0.15s ease;
}

.doc-link:hover { background: var(--navy); color: var(--white); border-left-color: var(--red); }
.doc-link svg { width: 14px; height: 14px; flex-shrink: 0; }
.doc-link.pdf { border-left-color: var(--red); }
.doc-link.xlsx { border-left-color: #1d6f42; }
.doc-link.pptx { border-left-color: #c55a11; }

/* PROMPT GROUP */
.prompt-group-label {
  font-family: var(--font-cond);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--grey-text);
  text-transform: uppercase;
  margin-bottom: 0.6rem;
  margin-top: 1.6rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.prompt-group-label.first { margin-top: 0; padding-top: 0; border-top: none; }

.pg-num {
  background: var(--navy);
  color: white;
  font-family: var(--font-cond);
  font-size: 0.62rem;
  font-weight: 700;
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* PROMPT BOX */
.prompt-item { margin-bottom: 0.65rem; }
.prompt-item:last-child { margin-bottom: 0; }

.prompt-box { border: 1px solid var(--border); background: var(--off-white); overflow: hidden; }

.prompt-text {
  padding: 1.1rem 1.3rem;
  font-size: 0.9rem;
  color: var(--navy-dark);
  white-space: pre-wrap;
  line-height: 1.65;
  font-weight: 400;
}

.prompt-footer {
  border-top: 1px solid var(--border);
  padding: 0.55rem 1.1rem;
  display: flex;
  justify-content: flex-end;
  background: var(--white);
}

/* COPY BTN */
.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: none;
  border: 1px solid var(--border);
  color: var(--grey-text);
  font-family: var(--font-cond);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  padding: 0.32rem 0.8rem;
  cursor: pointer;
  transition: all 0.15s ease;
  text-transform: uppercase;
}

.copy-btn:hover { background: var(--navy); border-color: var(--navy); color: var(--white); }
.copy-btn.copied { background: var(--red); border-color: var(--red); color: var(--white); }
.copy-btn svg { width: 11px; height: 11px; }

/* INFO NOTE */
.info-note {
  background: #eef2f8;
  border: 1px solid var(--border);
  border-left: 3px solid var(--navy);
  padding: 0.9rem 1.2rem;
  font-size: 0.86rem;
  color: var(--grey-dark);
  margin-bottom: 1.5rem;
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  line-height: 1.55;
}

.info-note svg { width: 14px; height: 14px; color: var(--navy); flex-shrink: 0; margin-top: 2px; }

.warn-note {
  background: #fff8e1;
  border: 1px solid #ffe082;
  border-left: 3px solid #f9a825;
  padding: 0.9rem 1.2rem;
  font-size: 0.86rem;
  color: #5d4037;
  margin-bottom: 1.5rem;
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  line-height: 1.55;
}

.warn-note svg { width: 14px; height: 14px; color: #f9a825; flex-shrink: 0; margin-top: 2px; }

/* MANUAL TASK */
.manual-task {
  background: var(--off-white);
  border: 1px solid var(--border);
  border-left: 3px solid var(--red);
  padding: 1.25rem 1.5rem;
  margin-bottom: 0;
}

.manual-task-title {
  font-family: var(--font-cond);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--red);
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.manual-task-steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.manual-task-steps li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.88rem;
  color: var(--grey-dark);
}

.step-num {
  background: var(--navy);
  color: white;
  font-family: var(--font-cond);
  font-size: 0.62rem;
  font-weight: 700;
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

/* FOOTER */
footer {
  background: var(--navy-dark);
  border-top: 4px solid var(--red);
  padding: 2rem 2.5rem;
  text-align: center;
}

footer p {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.3);
  font-family: var(--font-cond);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* SCRIPT shared */
