/* =========================================================================
   WGU Academy Shared Stylesheet
   File: styles/global.css
   ========================================================================= */

/* -------------------------------------------------------------------------
   Design Tokens
   ------------------------------------------------------------------------- */

:root {
  --wgu-blue: #003b71;
  --wgu-blue-dark: #002b52;
  --wgu-blue-light: #e8f0fa;

  --wgu-hyperlink: #0070f0;
  --wgu-border: #d1d9e6;

  --text-main: #222222;
  --text-muted: #555555;
  --text-template-notes: #ff0000;

  /* 
  --bg-page: #f5f7fb; 
  --shadow-soft: 0 6px 18px rgba(0, 0, 0, 0.08); 
  */
  --radius-card: 8px;

  /* Shared aliases used by older/alternate components */
  --ink: var(--text-main);
  --line: var(--wgu-border);

  /* Checklist-specific tokens (safe to keep global) */
  --pill: #dbeaf3;
  --green: #7bbf9e;

  /* Sticky menu not covering anchor link areas */
  --sticky-offset: 0px;

  /* Hero backgrounds (swap per theme if needed) */
  --hero-syllabus-bg: url("https://academyproduct.s3.us-east-2.amazonaws.com/StudentWebDocs/_global_links/assets/Banners/syllabus-banner.jpg");

  /* Checklist header image */
  --hero-checklist-bg: url("https://academyproduct.s3.us-east-2.amazonaws.com/StudentWebDocs/_global_links/assets/Banners/ffc-banner.jpg");

  /* Student Guide header image */
  --hero-studentGuide-bg: url("https://academyproduct.s3.us-east-2.amazonaws.com/StudentWebDocs/_global_links/assets/Banners/student-guide-banner.jpg");

  /* Leader Guide (Checklist) header image */
  --hero-leaderGuide-bg: url("https://academyproduct.s3.us-east-2.amazonaws.com/StudentWebDocs/_global_links/assets/Banners/leader-guide-banner.jpg");
}



/* Sticky menu not covering anchor link areas */
[id] {
  scroll-margin-top: var(--sticky-offset);
}

/* -------------------------------------------------------------------------
   Base / Resets
   ------------------------------------------------------------------------- */
* {
  box-sizing: border-box;
}

body {
  padding-top: var(--sticky-offset);
  font-family: "Lato", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Helvetica, Arial, sans-serif;
  color: var(--text-main);
  background: var(--bg-page);
  line-height: 1.6;
}


img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--wgu-hyperlink);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

p {
  margin: 0 0 0.9rem;
}

ul {
  margin: 0.25rem 0 0.9rem 1.25rem;
  padding: 0;
}

li+li {
  margin-top: 0.25rem;
}

.muted,
.small-muted {
  color: var(--text-muted);
}

.small-muted {
  font-size: 0.85rem;
}

.container {
  width: min(100% - 2.5rem, 960px);
  margin: 0 auto;
}

/* -------------------------------------------------------------------------
   Sticky Stack (Toolbar + Jump Nav)
   ------------------------------------------------------------------------- */
.sticky-stack {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: #ffffff;
  border-bottom: 1px solid var(--wgu-border);
}

/* -------------------------------------------------------------------------
   Editor Toolbar (Staff)
   ------------------------------------------------------------------------- */
.editor-toolbar {
  position: static;
  /* now part of sticky stack */
  background: #ffffff;
  border-bottom: 1px solid var(--wgu-border);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  padding: 0.7rem 0;
}

.editor-toolbar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
}

.editor-toolbar-btn {
  border-radius: 999px;
  border: 1px solid var(--wgu-blue-dark);
  background: #ffffff;
  color: var(--wgu-blue-dark);
  padding: 0.35rem 0.9rem;
  font-size: 0.85rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.editor-toolbar-btn.primary {
  background: var(--wgu-blue-dark);
  color: #ffffff;
}

.editor-toolbar-btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

.editor-toolbar-btn:focus-visible {
  outline: 3px solid #ffbf47;
  outline-offset: 1px;
}

.editor-course {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-right: 1rem;
}

.editor-course-input {
  padding: 0.25rem 0.4rem;
  font-size: 0.85rem;
  width: 100px;
}

.editor-help {
  margin: 0.5rem 0 0 0.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  flex: 1 1 100%;
  transition: all 0.25s ease;
}

.editor-help-content {
  overflow: hidden;
  transition: max-height 0.25s ease, opacity 0.2s ease;
}

/* Top Nav: table styles */
.editor-help-content table>tbody>tr>td>strong,
.editor-help-content table>tbody>tr>td>ul>li,
.editor-help-content table>tbody>tr>td>ol>li,
.editor-help-content table>tbody>tr>td>em {
  font-size: 0.8rem;
}

.editor-help-content table>tbody>tr>td:first-child {
  width: 24%;
  vertical-align: top;
  padding-right: 10px;
  border-right: 1px solid #ccc;
}

.editor-help-content table>tbody>tr>td:last-child {
  width: 77%;
  padding-left: 10px;
  vertical-align: top;
}

.editor-help-content table>tbody>tr>td>ul,
.editor-help-content table>tbody>tr>td>ol {
  padding-left: 20px;
  margin-top: 5px;
}

/* Top Nav: accordion styles */
.editor-help.is-collapsed .editor-help-content {
  max-height: 0;
  opacity: 0;
  pointer-events: none;
}

.editor-help-toggle {
  margin-top: 0.75rem;
  background: none;
  border: none;
  font-weight: 600;
  cursor: pointer;
  color: var(--wgu-hyperlink);
}

.editor-help-toggle:hover {
  text-decoration: underline;
}


/* -------------------------------------------------------------------------
   Editor Toolbar STUDENT GUIDE (Staff)
   ------------------------------------------------------------------------- */

/* Shared: edit bullet lists as ONE block but still LOOK like bullets */
.ul-editor {
  display: block;

}

.ul-editor-line {
  position: relative;
  padding: 0.25rem 1rem;
}

.ul-editor-line::before {
  content: "Ã¢â‚¬Â¢";
  position: relative;

}

.ul-editor-line:empty::after {
  content: "\00a0";
}



/* -------------------------------------------------------------------------
   NAVIGATION MENU (Jump Nav)
   ------------------------------------------------------------------------- */
.jump-nav {
  position: static;
  /* stays in sticky stack */
  background: #f5f8fa;
  border-top: 1px solid #e7edf3;
}

.jump-nav .container {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 2rem;
  padding: .2rem 0;
}

.jump-nav a {
  text-decoration: none;
}

.jump-nav a:hover {
  text-decoration: underline;
}

/* Mobile-first behavior (menu) */
.jump-menu {
  display: block;
}

.jump-summary {
  list-style: none;
  cursor: pointer;
  user-select: none;
  padding: .55rem .9rem;
  font-weight: 600;
}

.jump-links {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  padding: .75rem .9rem;
}

/* Desktop layout (horizontal nav bar) */
@media (min-width: 761px) {
  .jump-summary {
    display: none;
  }

  .jump-links {
    flex-direction: row;
    flex-wrap: wrap;
    gap: .5rem 2rem;
    padding: .75rem 0;
    width: fit-content;
    max-width: 100%;
  }

  /* Optional: prevent toggling */
  .jump-menu {
    pointer-events: none;
  }

  .jump-links {
    pointer-events: auto;
  }
}

/* Mobile-only menu */
@media (max-width: 760px) {
  .jump-menu {
    display: block;
    width: 100%;
    padding: 0;
  }
}


/* -------------------------------------------------------------------------
   Hero / Cover
   ------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 300px;
  color: #ffffff;
  background-size: cover;
  background-position: bottom;
  display: flex;
  align-items: flex-end;
  padding: 2.5rem 0 3.5rem;
}


/* Theme-based styles */

/* Syllabus theme */
body.theme-syllabus .hero {
  background-image: var(--hero-syllabus-bg);
}


/* Checklist theme */
body.theme-checklist .hero {
  background-image: var(--hero-checklist-bg);
  background-color: var(--wgu-blue-dark);

}

/*   
body.theme-checklist .hero-band {
   border-bottom: 3px solid #6699CF;
}
*/

/* Leader Guide theme */
body.theme-leaderGuide .hero {
  background-image: var(--hero-leaderGuide-bg);
  background-color: var(--wgu-blue);
}

body.theme-leaderGuide .hero-subtitle {
  border-bottom: 3px solid #78C0A7;
}

body.theme-studentGuide .hero {
  background-image: var(--hero-studentGuide-bg);
}

body.theme-studentGuide .hero-subtitle {
  border-bottom: 3px solid #78C0A7;
}



/* Hero Styles */

.hero-band {
  padding: 1.75rem 2rem;
}

.hero-title {
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 0.75rem;
}

.hero-subtitle {
  width: 60%;
  font-size: 1.5rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-style: italic;
  color: white;
  border-bottom: 3px solid #6699CF;
  margin-bottom: 5px;
  padding-bottom: 5px;

}

.hero-caption {
  margin-top: 0.5rem;
  font-size: 1rem;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}


/* Hero Responsive for Mobile */

@media (max-width: 600px) {
  .hero-title {
    font-size: 1.7rem;
  }

  .hero-subtitle {
    font-size: 1.2rem;
  }

}


/* -------------------------------------------------------------------------
   Sections / Cards / Headings
   ------------------------------------------------------------------------- */
/* Remove vertical scrolling */
html,
body {
  overflow-x: hidden;
}

main {
  padding: 2.5rem 0 0;
}

section {
  margin-bottom: 2rem;
}

.card {
  background: #ffffff;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
  padding: 1.75rem 2rem;
  border: 1px solid var(--wgu-border);
}

.section-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid var(--wgu-border);
  padding-bottom: 0.45rem;
}

.section-title {
  font: normal 28px / 1.2em "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  letter-spacing: 1px;
  margin-bottom: 15px;
  margin-top: 0;
  border-bottom: 1px solid var(--wgu-border);
  -webkit-font-smoothing: antialiased;
  text-transform: initial;
  color: var(--wgu-blue-dark);
}

.section-subtitle {
  font-family: 'Lato', sans-serif !important;
  font-weight: 600 !important;
  letter-spacing: normal;
  margin-block-end: 1em;
  margin-inline-start: 0px;
  margin-inline-end: 0px;
  margin-bottom: 0.4rem;
  color: var(--wgu-blue-dark);
}

.section-title-row {
  display: flex;
  align-items: flex-end;
  gap: .75rem;
  margin: 2rem 0 .75rem;
}

.section-icon {
  width: 3rem;
  height: auto;
  flex: 0 0 auto;
  margin-bottom: .4rem;
}

.section-graphic {
  width: 12rem;
  height: auto;
  flex: 0 0 auto;
}

.section-template-content {
  color: var(--text-template-notes)
}


/* -------------------------------------------------------------------------
   TABLES (Syllabus / Course Outline)
   ------------------------------------------------------------------------- */
.outline-table-wrapper {
  margin-top: 1rem;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
  border: 1px solid var(--wgu-border);
  /* Ã¢Å“â€¦ ensures outer border shows */
}

caption {
  caption-side: top;
  text-align: left;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--wgu-blue-dark);
}

thead {
  background: var(--wgu-blue);
  color: #ffffff;
}

th,
td {
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--wgu-border);
  /* Ã¢Å“â€¦ restores cell borders */
  vertical-align: top;
}

th {
  font-weight: 600;
  text-align: left;
}

tbody tr:nth-child(even) {
  background: #f7f9fc;
}

.module-title {
  font-weight: 600;
  color: var(--wgu-blue-dark);
  white-space: nowrap;
}

.module-title p,
.module-title ul > li {
  font-weight: normal;
}


/* -------------------------------------------------------------------------
   Checklist components
   ------------------------------------------------------------------------- */
.two-col {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr 1.15fr;
  position: relative;
  column-gap: 4rem;
  align-items: start;
}

.two-col::after {
  content: "";
  position: absolute;
  left: calc(44.5% + 1.25rem);
  top: 0;
  bottom: 0;
  width: 1px;
  background: #cfd9df;
}

.pill-list {
  display: grid;
  gap: 0.9rem;
  margin-top: 1.2rem;
}

.pill {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.5rem 1.05rem;
  background: var(--pill);
  border-radius: 999px;
  font-weight: 700;
  color: var(--ink);
}

.counts {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 1rem;
}

.count-item {
  display: inline-flex;
  align-items: center;

}

.count-item::before {
  content: "\25CF";
  color: #008aff;
  margin-right: 0.4rem;
}

.count-controls {
  flex-basis: 100%;
  margin-top: 1.2rem;
  gap: 0.5rem;
}

/* Make assessment counts mobile friendly  */
@media (max-width: 425px) {
  .counts {
    flex-direction: column;
  }
}

.count {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink);
  padding: 0.5rem;

}

.count .badge {
  padding: 0.5rem 1.05rem;
  border-radius: 999px;
  background: var(--wgu-blue-dark);
  color: #fff;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.support {
  margin-top: 1.1rem;

}

.support-item {
  padding: 1.05rem 0 1rem;
  border-bottom: 1px solid var(--line);
}

.support-item:last-child {
  border-bottom: none;
}

.support-head {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 0.25rem;
  color: var(--ink);
}

.support-icon {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  display: block;
}

.support-item .emph {
  color: #002b52;
  font-weight: 600;
}

/* Courses banded list */
.courses {
  padding: 0;
}

.course-band {
  padding: 1.25rem 0 1.5rem;
}

.course-band:nth-of-type(even) {
  background: #f5f8fa;
}

.course-row {
  display: inherit;
  padding: 0.5rem 0 1rem 1.5rem;
}

.course-content {
  flex: 1;
}

.course-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.course-meta {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.course-img {
  width: 220px;
  height: auto;
  display: block;
}

.course-title {
  margin: 0;
  font-size: 1.7rem;
  line-height: 1.1;
  font-weight: 600;
  color: var(--ink);
}

.course-title a {
  color: inherit;
  text-decoration: none;
}

.course-title a:hover {
  text-decoration: underline;
}

/* CTA button */
.course-cta {
  border: none;
  background-image: none;
  box-shadow: none;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-shadow: none;
  padding: 0.5rem 2rem;
  color: white !important;
  border-radius: 300px;
  font-weight: 700;
  margin: 0 1em 1.2em;
  min-width: 125px;
  background-color: #008aff;
}

.course-cta:hover:not(:disabled),
.course-cta:active:not(:disabled),
.course-cta:focus:not(:disabled) {
  border: none;
  box-shadow: none;
  background-image: linear-gradient(#0e1934, #183d64);
  color: white !important;
  text-decoration: none;
  cursor: pointer;
}

/* Wraps View Syllabus <a> and edit link <button> */
.course-cta-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.units {
  margin: 0.2rem 0 1.05rem;
  font-weight: 600;
  color: var(--ink);
  font-size: 1.05rem;
}

.two-lists {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.2rem;
}

.label {
  margin: 0 0 0.45rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
}

.skills {
  margin: 0;
  padding-left: 1.25rem;
  color: #16325f;
}

.skills li {
  margin: 0.25rem 0;
}

.skills li::marker {
  color: #0f2a57;
}

/*
.activities{
  list-style: none;
  margin: 0;
  padding: 0;
  color: var(--ink);
}
.activities li{
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0;
 
}

.diamond{
  width: 8px;
  height: 8px;
  background: var(--green);
  transform: rotate(45deg);
  border-radius: 1px;
  flex: 0 0 auto;
}
*/
/* -------------------------------------------------------------------------
   Prompt Code Style
   ------------------------------------------------------------------------- */
/* Prompt block (keep dark, but align typography) */
.prompt {
  background: var(--wgu-blue-light);
  border-radius: 8px;
  padding: 1rem 1.1rem;
  margin: .8rem 0 0;
  overflow: auto;
}

.prompt p {
  font-size: 0.98rem;
  white-space: pre-wrap;
}

/* -------------------------------------------------------------------------
   LEADER GUIDE STYLES
   ------------------------------------------------------------------------- */

/* Use SECTION GRAPHIC (big) + vertically centered title */
/*
body.theme-leaderGuide .section-title-row {
  align-items: center;
  center title vertically with graphic
}
*/

body.theme-leaderGuide .section-graphic {
  width: 12rem;
  height: auto;
  flex: 0 0 auto;
  margin-top: 0;
}

/* Two-column blocks inside cards */
body.theme-leaderGuide .two-col-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
  margin: 0.5rem 0 1.25rem;
}

body.theme-leaderGuide .two-col-block .col> :first-child {
  margin-top: 0;
}

@media (max-width: 920px) {
  body.theme-leaderGuide .two-col-block {
    grid-template-columns: 1fr;
  }
}

/* JS to add spacer (where image would go) when adding new prompt */
.media-spacer {
  /* Keeps column width but shows nothing */
  min-height: 1px;
}


/* -------------------------------------------------------------------------
   STUDENT GUIDE STYLES
   ------------------------------------------------------------------------- */

body.theme-studentGuide p,
body.theme-studentGuide .bullet-list {
  margin-bottom: 1.5rem;
}

body.theme-studentGuide .section-title-row {
  margin-bottom: 1rem;
}



/* -------------------------------------------------------------------------
   Utilities
   ------------------------------------------------------------------------- */
.small {
  font-size: 0.85rem;
}

.mt-0 {
  margin-top: 0;
}

.mt-1 {
  margin-top: 0.5rem;
}

.mt-2 {
  margin-top: 1rem;
}

.mt-3 {
  margin-top: 1.5rem;
}

/* -------------------------------------------------------------------------
   Staff-only editing styles
   ------------------------------------------------------------------------- */

/* === STAFF-ONLY CSS START === */
body.is-editing main {
  cursor: text;
}

body.is-editing [contenteditable="true"],
body.is-editing .outline-mobile-label::before {
  outline: 1px dashed #666666;
  outline-offset: 2px;
  min-height: 0.8em;
}

body.is-editing [contenteditable="true"]:focus-visible,
body.is-editing .outline-mobile-label::before:focus-visible {
  outline: 2px solid #ffbf47;
}

/* While editing, prevent accidental navigation */
body.is-editing a {
  pointer-events: none;
  cursor: text;
  text-decoration: underline;
}

/* Allow course title links to be clickable (for JS href editing) */
body.is-editing .course-title a {
  pointer-events: auto;
  cursor: pointer;
}

/* Controls to edit Course Document links (for JS href editing), add docs, and remove docs */
.course-cta-controls {
  display: inline-flex;
  margin-bottom: 1.2rem;
  gap: 0.5rem;
}

/* Add or remove courses (FFC) */
.course-controls {
  display: flex;
  margin-top: 1rem;
  gap: 1rem;
}

/* Add or remove module / course item rows */
.itemControls {
  display: inline-flex;
  margin-top: 1.2rem;
  gap: 0.5rem;
}

#addRow,
#deleteRow {
  display: none;
}

body.is-editing #addRow,
body.is-editing #deleteRow {
  display: inline-flex;
}

.prompt__btn,
.section__btn--delete,
.section__btn--add,
.course-cta-edit,
.course-cta-add,
.course-cta-del,
.cta-styles {
  display: none;
  border-radius: 3px;
  background-color: #183d64;
  border: none;
  color: #ffffff;
  text-align: center;
  padding: 0.5rem 0.8rem;
  width: auto;
  max-width: 260px;
  align-content: center;
  transition: all 0.5s;
  cursor: pointer;
  text-transform: none;
}

body.is-editing .prompt__btn,
body.is-editing .section__btn--add,
body.is-editing .section__btn--delete,
body.is-editing .course-cta-edit,
body.is-editing .course-cta-add,
body.is-editing .course-cta-del,
body.is-editing .cta-styles {
  display: inline-flex;
  cursor: pointer;
  transition: 0.5s;
}

body.is-editing .count-add-btn,
body.is-editing .section__btn--add,
body.is-editing .checklist__btn--add,
body.is-editing .block__btn--add,
body.is-editing .section__btn--add {
  margin-right: 0.5rem;
}

/* === STAFF-ONLY CSS END === */


/* -------------------------------------------------------------------------
   Responsive
   ------------------------------------------------------------------------- */
@media (max-width: 920px) {
  .two-col {
    grid-template-columns: 1fr;
  }

  .two-col::after {
    display: none;
  }

  .support {
    border-top: 1px solid var(--line);
  }

}

@media (max-width: 768px) {
  .hero {
    padding: 1.75rem 0 2.5rem;
    align-items: center;
  }

  .hero-band {
    padding: 1.25rem 1.5rem;
  }

  .card {
    padding: 1.25rem 1.5rem;
  }
}

@media (max-width: 760px) {
  .container {
    width: 100%;
    margin: 0;
  }


  .course-row {
    grid-template-columns: 1fr;
  }

  .course-img {
    width: 100%;
    max-width: 520px;
  }

  .two-lists {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .course-title {
    font-size: 1.5rem;
  }

}

@media (max-width: 480px) {
  .hero-band {
    padding: 1rem 1.25rem;
  }

  .section-meta {
    font-size: 0.7rem;
  }
}

/* =========================================
   Responsive Table (Stack under 425px)
   Scoped to outline-table-wrapper ONLY
========================================= */

@media (min-width: 426px) {
  .outline-table-wrapper .module-title {
    width: 160px;
    white-space: normal;
  }
}

@media (min-width: 600px) {
  .outline-table-wrapper .module-title {
    max-width: 425px;
    width: 30%;
  }
}

@media (max-width: 425px) {

  .outline-table-wrapper {
    overflow-x: visible;
    /* remove horizontal scroll on mobile */
  }

  .outline-table-wrapper table {
    border: none;
    /* remove outer border for card layout */
  }

  .outline-table-wrapper thead {
    display: none;
  }

  .outline-table-wrapper table,
  .outline-table-wrapper tbody,
  .outline-table-wrapper tr,
  .outline-table-wrapper th,
  .outline-table-wrapper td {
    display: block;
    width: 100%;
  }

  .outline-table-wrapper tr {
    margin-bottom: 1rem;
    border: 1px solid var(--wgu-border);
    border-radius: 6px;
    background: #ffffff;
    /* keep clean white cards */
  }

  /* Module title bg & font colors */
  .outline-table-wrapper th {
    background: var(--wgu-blue);
    color: #ffffff;
  }

  /* Remove inner borders from stacked cells */
  .outline-table-wrapper th,
  .outline-table-wrapper td {
    padding: 0.65rem 0.7rem;
    border: none;
  }

  /* Improve spacing for bullet list */
  .outline-table-wrapper .bullet-list ul {
    margin-top: 0.25rem;
  }

  /* Remove zebra striping in stacked mode */
  .outline-table-wrapper tbody tr:nth-child(even) {
    background: #ffffff;
  }

  /*** Text Controls ***/
  /* Allow text-wrap in module's title */
  .outline-table-wrapper .module-title {
    white-space: normal;
    overflow-wrap: break-word;
  }

  /* Add labels using data-label */
  .outline-mobile-label::before {
    content: attr(data-label);
    font-size: 1rem;
    color: var(--wgu-blue-dark);
    font-weight: 600;
  }

  .outline-mobile-label {
    display: block;
    cursor: pointer;
    margin-bottom: 0.5rem;
  }

  /*
  .outline-table-wrapper td::before {
    content: attr(data-label);
    display: block;
    font-weight: 600;
    font-size: 1rem;
    color: var(--wgu-blue-dark);
    padding-bottom: 0.5rem;
  }

  .outline-table-wrapper th.module-title::before {
    content: attr(data-label);
  }
*/
}

/* -------------------------------------------------------------------------
   Print / PDF
   ------------------------------------------------------------------------- */

.page-header {
  /* font-size: 0.8rem; */
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.6rem;
  border-bottom: 1px solid var(--wgu-border);
  padding-bottom: 0.3rem;
}

.page-footer {
  margin-top: 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: right;
}


.print-only {
  display: none;
}

/* -------------------------------------------------------------------------
   Bottom Print Button (screen only)
   ------------------------------------------------------------------------- */
.bottom-print-container {
  display: flex;
  justify-content: flex-start;
  margin: 2rem auto;
  width: min(100% - 2.5rem, 960px);
}

@media print {
  @page {
    size: letter portrait;
    margin: 0.5in;
  }

  .print-only {
    display: block;
  }

  /* Hide Edit-Only UI */
  .no-print,
  .editor-ui {
    display: none !important;
  }

  html,
  body {
    background: #ffffff !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  body {
    padding-top: 0 !important;
  }

  a {
    text-decoration: none;
  }

  .hero {
    position: relative;
    min-height: 300px;
    display: flex;

  }

  .course-img {
    width: auto !important;
    max-width: none !important;
    height: auto !important;
  }

  /* Make the white band smaller so more image shows */
  .hero-band {
    padding: 1rem;

  }

  /* =====================================================
   SYLLABUS + STUDENT GUIDE PRINT
   (Same exact behavior for both)
   ===================================================== */

  body.theme-syllabus .jump-nav,
  body.theme-studentGuide .jump-nav {
    display: none !important;
  }

  body.theme-syllabus .editor-toolbar,
  body.theme-studentGuide .editor-toolbar {
    display: none !important;
  }

  body.theme-syllabus .sticky-stack,
  body.theme-studentGuide .sticky-stack {
    display: none !important;
  }

  body.theme-syllabus .container,
  body.theme-studentGuide .container {
    width: 100%;
    margin: 0 auto;
  }

  body.theme-syllabus .card,
  body.theme-studentGuide .card {
    break-inside: avoid-page;
    page-break-inside: avoid;
  }

  body.theme-syllabus header.hero,
  body.theme-studentGuide header.hero {
    break-inside: avoid-page;
    page-break-inside: avoid;
    break-after: avoid-page;
    page-break-after: avoid;

  }

  body.theme-syllabus .card,
  body.theme-studentGuide .card {
    box-shadow: none;
    border: none;
  }


  /* Keep checklist-style grids from collapsing in syllabus print */
  body.theme-syllabus .two-col {
    grid-template-columns: 1fr 1.25fr !important;
    column-gap: 6rem !important;
  }

  body.theme-syllabus .two-col::after {
    display: block !important;
  }

  body.theme-syllabus .two-lists {
    grid-template-columns: 1fr 1fr !important;
  }


  /* =====================================================
     STUDENT GUIDE PRINT 
     ===================================================== */

  /* Shrink the cover/hero so the Overview has room */
  body.theme-studentGuide header.hero {
    min-height: 0 !important;
    padding: 0.5in 0 !important;
  }

  body.theme-studentGuide .hero-band {
    padding: 1rem 2rem !important;
  }

  /* 2) Tighten overall typography a bit (print-only) */
  body.theme-studentGuide {
    font-size: 0.9rem !important;
    line-height: 1.35 !important;
  }

  /* 3) Tighten spacing in the overview card specifically */
  body.theme-studentGuide section[aria-label="Student Guide overview"] {
    margin-bottom: 0.20in !important;
  }



  body.theme-studentGuide section[aria-label="Student Guide overview"] p {
    margin: 0 0 0.45rem !important;
  }

  body.theme-studentGuide section[aria-label="Student Guide overview"] ul {
    margin: 0.15rem 0 0.45rem 1.05rem !important;
  }

  body.theme-studentGuide section[aria-label="Student Guide overview"] li+li {
    margin-top: 0.12rem !important;
  }

  body.theme-studentGuide section[aria-label="Student Guide overview"] .section-title-row {
    margin: 0 0 0.35rem !important;
    gap: 0.5rem !important;
  }


  /* =====================================================
     LEADER GUIDE PRINT 
     ===================================================== */

  /* hide sticky UI */
  body.theme-leaderGuide .jump-nav,
  body.theme-leaderGuide .editor-toolbar,
  body.theme-leaderGuide .sticky-stack {
    display: none !important;
  }

  /* hide section-meta */
  body.theme-leaderGuide .section-meta {
    display: none !important;
  }

  /* shrink overall typography */
  body.theme-leaderGuide {
    font-size: 0.9rem !important;
    line-height: 1.18 !important;
  }

  /* pragmatic: scale down slightly (Chromium browsers) */
  html {
    zoom: 0.88;
  }

  /* shrink hero so content fits */
  body.theme-leaderGuide header.hero {
    min-height: 0 !important;
    padding: 0.25in 0.20in !important;
  }

  body.theme-leaderGuide .hero-band {
    padding: 0.55rem 0.75rem !important;
    box-shadow: none !important;

  }

  /* tighten vertical spacing everywhere */
  body.theme-leaderGuide main {
    padding: 0.25rem 0 0 !important;
  }

  body.theme-leaderGuide section {
    margin-bottom: 0.35rem !important;
  }

  body.theme-leaderGuide .card {
    padding: 0.55rem 0.7rem !important;
    box-shadow: none !important;
    border: 1px solid var(--wgu-border) !important;
  }

  body.theme-leaderGuide .section-meta {
    margin-bottom: 0.35rem !important;
    padding-bottom: 0.2rem !important;
  }


  body.theme-leaderGuide .leader-two-col {
    grid-template-columns: 9rem 1fr;
    gap: 0rem;
  }

  body.theme-leaderGuide .leader-two-col .section-graphic {
    width: 6rem;
    max-width: 6rem;
    height: auto;
  }


  body.theme-leaderGuide .section-title {
    margin: 0 !important;
    font-size: 0.8rem !important;
    line-height: 1.1 !important;
  }

  body.theme-leaderGuide .section-subtitle {
    margin: 0.2rem 0 !important;
    font-size: 0.8rem !important;
  }

  body.theme-leaderGuide p {
    margin: 0 0 0.35rem !important;
  }

  body.theme-leaderGuide ul {
    margin: 0.15rem 0 0.35rem 1.05rem !important;
  }

  body.theme-leaderGuide li+li {
    margin-top: 0.12rem !important;
  }

  body.theme-leaderGuide #ai-tips .prompt p {
    font-size: 0.85em !important;
    line-height: 1.12 !important;
  }

  body.theme-leaderGuide .leader-two-col__content .checklist {
    margin-left: 0 !important;
  }

  /* IMPORTANT: allow content to flow (no avoid-page rules) */
  body.theme-leaderGuide section,
  body.theme-leaderGuide article,
  body.theme-leaderGuide .card {
    break-inside: auto !important;
    page-break-inside: auto !important;
  }



  /* =====================================================
     FFC: CHECKLIST PRINT (ONLY applies when body.theme-checklist)
     ===================================================== */


  body.theme-checklist .sticky-stack {
    display: none !important;
  }

  /* Avoid aggressive break rules that cause blank pages */
  body.theme-checklist section,
  body.theme-checklist article,
  body.theme-checklist .card {
    break-inside: auto;
    page-break-inside: auto;
  }

  /* Checklist hero background image in print */
  body.theme-checklist .hero {
    background-image: var(--hero-checklist-bg) !important;
    background-size: cover !important;
    background-position: bottom !important;

  }

  body.theme-checklist .hero-band {
    box-shadow: none !important;
    border: none !important;
  }

  body.theme-checklist .support {
    border-top: none !important;
    margin-top: 0 !important;
  }


  body.theme-checklist .card {
    box-shadow: none !important;
    border: none !important;
    padding: 0.9rem 0.9rem !important;
  }

  body.theme-checklist main {
    padding: 0 !important;
  }

  /* Force 2 pages: page1 then page2 */
  body.theme-checklist #page1 {
    break-after: page !important;
    page-break-after: always !important;
  }

  /* Tighten spacing on page 2 */
  body.theme-checklist .course-band {
    padding: 0.75rem 0 !important;
  }

  body.theme-checklist .course-row {
    padding: 0.5rem 0 0.75rem !important;
    gap: 0.9rem !important;
    break-inside: avoid !important;
    page-break-inside: avoid !important;
  }

  body.theme-checklist .units {
    margin: 0.15rem 0 0.5rem !important;
    font-size: 0.95rem !important;
  }

  body.theme-checklist .course-title {
    font-size: 1.35rem !important;
  }

  /* Keep 2 columns where needed */
  body.theme-checklist .two-col {
    grid-template-columns: 1fr 1.25fr !important;
    column-gap: 5rem !important;
  }

  body.theme-checklist .two-col::after {
    display: block !important;
  }

  body.theme-checklist .two-lists {
    grid-template-columns: 1fr 1fr !important;
    gap: 1.25rem !important;
  }

  /*  CHECKLIST PRINT: slightly smaller text overall */
  body.theme-checklist {
    font-size: 0.7rem !important;
    line-height: 1.35 !important;
  }

  /* Optional: keep headings readable */
  body.theme-checklist .section-title {
    font-size: 1rem !important;
  }

  body.theme-checklist .course-title {
    font-size: 1.15rem !important;
  }

  /* overrides your 1.35rem print if you want smaller */
  body.theme-checklist .label {
    font-size: 0.7rem !important;
  }

  /* Override mobile for print only*/
  body.theme-checklist img.course-img {
    width: 220px !important;
    height: auto !important;
  }

  /* Print in grid */
  body.theme-checklist .course-row {
    display: grid !important;
    grid-template-columns: 220px 1fr !important;
  }


}

/* -------------------------------------------------------------------------
   LEADER GUIDE ONLY: Two-column section layout (image column + text column)
   File: leader-guide-liquid-editable.html
   ------------------------------------------------------------------------- */
.leader-two-col {
  display: grid;
  grid-template-columns: 12rem 1fr;
  gap: 1.25rem;
  align-items: start;
}

/* Space under AI Prompt top section */
.leader-two-col.deletable-prompt {
  margin-bottom: 1.2rem;
}

.leader-two-col__content {
  min-width: 0;
  /* prevents overflow issues in grid */
}

/* Stack on small screens */
@media (max-width: 640px) {
  .leader-two-col {
    grid-template-columns: 1fr;
  }
}

/* -------------------------------------------------------------------------
   GLOBAL (optional feature): Checklist UI (clickable on web, prints as boxes)
   Activate by using <ul class="checklist"> with <input class="checklist__box">
   and <label class="checklist__label"> in any document.
   ------------------------------------------------------------------------- */
.checklist {
  list-style: none;
  /* replaces bullets */
  margin: 0;
  padding: 0;
}

.checklist__item {
  display: grid;
  grid-template-columns: 1fr;
  /* label manages its own left padding */
  gap: 0;
  align-items: start;
  margin: .45rem 0;
  position: relative;
}

/* Hide the native checkbox but keep it accessible */
.checklist__box {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Custom checkbox */
.checklist__label {
  cursor: pointer;
  display: block;
  position: relative;
  padding-left: 1.75rem;
  /* space for the custom box */
}

/* Box */
.checklist__label::before {
  content: "";
  position: absolute;
  left: 0;
  top: .15rem;
  width: 1.1rem;
  height: 1.1rem;
  border: 2px solid currentColor;
  border-radius: .2rem;
  background: transparent;
}

/* Checkmark (hidden until checked) */
.checklist__label::after {
  content: "";
  position: absolute;
  left: .33rem;
  top: .42rem;
  width: .4rem;
  height: .7rem;
  border-right: 3px solid transparent;
  border-bottom: 3px solid transparent;
  transform: rotate(45deg);
}

/* Checked state: green box + black checkmark */
.checklist__box:checked+.checklist__label::before {
  background: #78C0A7;
  border-color: #78C0A7;
}

.checklist__box:checked+.checklist__label::after {
  border-right-color: #000;
  border-bottom-color: #000;
}

/* Optional: text feedback when checked */
.checklist__box:checked+.checklist__label {
  text-decoration: line-through;
  opacity: .9;
}

/* Edit-mode helpers (used by Leader Guide script; safe globally) */
body.edit-mode .checklist__label {
  cursor: text;
  text-decoration: none;
  /* easier editing */
  opacity: 1;
}

.checklist__controls {
  display: none;
  margin-top: .35rem;
  gap: .35rem;
}

body.edit-mode .checklist__controls {
  display: inline-flex;
}

/* Delete section: button styles */
header.section-header {
  display: flex;
  flex-flow: row;
  padding-left: 2rem;
}

/** AI Tips Section: Hiding the DELETE button 
    until EDIT Mode is ON **/
/* Hidden by default */
.section__btn--delete {
  display: none;
}

/* PRINT: cursor is not interactive, but the visual checkbox still prints */
@media print {
  .checklist {
    padding-bottom: 0.2rem;
  }

  .checklist__label {
    cursor: default;
    font-size: 0.7rem;
  }

  .checklist__controls {
    display: none !important;
  }
}