/* ==========================================================================
   Canvas Theme CSS Â· v10.5d
   Date: 25 Aug 2025 Â· Maintainer: Naomi W.
   Policy:
     - Sections marked LEGACY are used by old courses. Do not change selectors,
       values, or order without a migration plan. Bugfixes only (braces, typos).
     - New builds go in "COMPONENTS â€“ CURRENT".
     - Use "OVERRIDES" only when absolutely necessary.
   ========================================================================== */

/* 0) === Imports === */
@import url('https://fonts.googleapis.com/css2?family=Barlow:wght@400;600;700;900&display=swap');

/* 0.1) === Theme tokens (global) === */
:root {
    --c-brand: #1A3896;
    /* primary header bg */
    --c-accent: #26CAD3;
    /* chevrons, focus ring */
    --c-neutral: #b3b5b7;
    /* borders/dividers */
    --c-surface: #ffffff;
    /* panel background */
    --c-onbrand: #ffffff;
    /* text on brand */
}

/* 1) Base / Typography / Lists  â€” Safe to evolve
   -------------------------------------------------------------------------- */
html, body { font-family: 'Barlow', Arial, sans-serif; }
body { color:#000000; font-size:12pt; }
.show-content.user_content.clearfix.enhanced {
  margin-left: 5%;
  margin-right: 5%;
}

h1.page-title { font-family:'Barlow', Arial, sans-serif; } /* colour intentionally unset (Canvas controlled) */

h2 {
  color:#001f6f;
  font-family:'Barlow', Arial, sans-serif;
  font-size:22pt;
  font-weight:900;          /* 'Black' weight */
  margin:15px 0 -5px 0;
  padding:5px;
}

h2.assignmentDetails__Title {
  color:#e9fafb;
  font-family:'Barlow', Arial, sans-serif;
  font-size:12pt;
  font-weight:800;
  margin:0;
  padding:5px;
}

h3 {
  color:#001f6f;
  font-family:'Barlow', Arial, sans-serif;
  font-size:18pt;
  font-weight:700;
  margin:15px 0 -5px 0;
  padding:5px;
}

.context_module_sub_header {
  color:#91a3ce;
  font-family:'Barlow', Arial, sans-serif;
  font-size:16pt;
}

h4 {
  color:#001f6f;
  font-family:'Barlow', Arial, sans-serif;
  font-size:16pt;
  font-weight:600;
  margin:15px 0 -5px 0;
  padding:5px;
}

h5 {
  color:#001f6f;
  font-family:'Barlow', Arial, sans-serif;
  font-size:14pt;
  font-weight:500;
  margin:15px 0 -5px 0;
  padding:5px;
}

h6 {
  color:#001f6f;
  font-family:'Barlow', Arial, sans-serif;
  font-size:12pt;
  font-weight:500;
  margin:15px 0 -5px 0;
  padding:5px;
}

p {
  font-family:'Barlow', Arial, sans-serif;
  font-size:12pt;
  font-weight:400;
  margin:0 0 5px 0;
  line-height:140%;
  padding:5px;
  border:0 solid #000000;
}

ul {
  color:#000000;
  font-family:'Barlow', Arial, sans-serif;
  font-size:16px;
  margin:0 0 0 20px;
  padding:5px;
  line-height:120%;
  list-style-position:outside;
}

li {
  color:#000000;
  font-family:'Barlow', Arial, sans-serif;
  font-size:16px;
  margin: 0px 0px 5px 20px;
  padding: 0px;
  line-height:120%;
  list-style-position:outside;
}

.shaded-box {
  color:#000000;
  font-family:'Barlow', Arial, sans-serif;
  font-size:12pt;
  font-style:normal;
  background-color:#e9fafb;
  border:0 solid #000000;
  margin:20px;
  padding:20px;
}

.parallax {
  background-attachment:fixed;
  background-position:center;
  background-repeat:no-repeat;
  background-size:cover;
}

#welcome-message {
  font-size:1.5rem;
  font-weight:bold;
  color:#001f6f;
}

.btnwrapper { text-align:center; }
.crsbtn {
  border:2px solid #ffffff !important;
  border-radius:25px;
  color:#ffffff;
  padding:16px 32px;
  text-align:center;
  text-decoration:none;
  display:inline-block;
  font-size:20px;
  margin:4px 2px;
  transition-duration:0.4s;
  cursor:pointer;
}
.button1 { background-color:#26cbd4; border-radius:25px; }
.button1:hover { background-color:#1fa2a9; border-radius:25px; }

/* 2) COMPONENTS â€“ CURRENT (safe to edit and extend)
   -------------------------------------------------------------------------- */

/* 2a. Accordion (used in new builds) */
/* Outer box */
.acc {
    width: 100%;
    margin: 0 0 1rem;
    /* optional spacing around the box */
    border: 1px solid var(--c-neutral);
    /* or your teal: #26CAD3 */
    border-radius: 8px;
    background: var(--c-surface);
    /* or a very light grey if you prefer */
    overflow: hidden;
    /* key: rounds the whole stack cleanly */
    padding: 0;
    /* keep edges tight to the border */
}

/* Items sit flush inside the box */
.acc details {
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
}

/* Row header */
.acc summary {
    list-style: none;
    cursor: pointer;
    margin: 0;
    padding: 12px 16px;
    background: var(--c-brand);
    color: var(--c-onbrand);
    border-top: 1px solid var(--c-neutral);
    /* separators between rows */
    border-radius: 0;
    font-weight: 700;
}

.acc>details:first-child>summary {
    border-radius: 8px 8px 0 0;
    border-top: 0;
}

.acc>details:last-child:not([open])>summary {
    border-radius: 0 0 8px 8px;
}

.acc>details:last-child>article {
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

/* no line at the very top */
.acc details[open]>summary {
    background: var(--c-brand);
    color: var(--c-onbrand);
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

/* Body */
.acc article {
    margin: 0;
    padding: 12px 16px;
    background: var(--c-surface);
    border-top: 1px solid var(--c-neutral);
    /* divider between header and body */
    border-radius: 0;
}

/* chevrons (optional) */
.acc summary::-webkit-details-marker {
    display: none;
}

.acc summary::before {
    content: "\25BC\00A0\00A0\00A0\00A0\00A0\00A0\00A0\00A0\00A0";
    display: inline-block;
    color: var(--c-accent);
}

.acc details[open]>summary::before {
    content: "\25B2\00A0\00A0\00A0\00A0\00A0\00A0\00A0\00A0\00A0";
    color: var(--c-accent);
}

/* focus state for keyboard users */
.acc summary:focus,
.acc summary:focus-visible {
    outline: none;
    box-shadow: inset 0 0 0 2px var(--c-accent);
    /* stays inside & respects radius */
    border-radius: inherit;
    /* makes the ring curved */
}

/* 2b. Tabs */
/* TABS Â· Canvas-safe, no JS */
.nu-tabs{
  --accent: #26CAD3;        /* tab highlight */
  --border: #d9e1e6;        /* light border */
  --muted:  #eef3f6;        /* inactive tab bg */
  --text:   #2b2f33;        /* body text */
  --radius: 12px;
  font: 400 16px/1.5 'Barlow', Arial, sans-serif;
  color: var(--text);
  max-width: 100%;
  margin: 1rem 0 2rem;
  position: relative;
}

/* hide radios but keep them accessible to labels */
.nu-tabs > input[type="radio"]{
  position: absolute;
  left: -9999px;
}

/* tab strip */
.nu-tab{
  display: inline-block;
  margin: 0 .5rem 0 0;
  padding: .8rem 1.2rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 700;
  font-size: .85rem;
  background: var(--muted);
  color: #6b7a88;
  border: 2px solid var(--border);
  border-bottom: none;
  border-top-left-radius: var(--radius);
  border-top-right-radius: var(--radius);
  position: relative;
  top: 2px;                 /* sit slightly over the panel border */
  cursor: pointer;
  user-select: none;
}

/* hover and focus */
.nu-tab:hover{ filter: brightness(0.98); }
.nu-tab:focus{ outline: 2px solid var(--accent); outline-offset: 2px; }

/* active tab styles */
#nu-tab-1:checked + .nu-tab,
#nu-tab-2:checked + .nu-tab + input + .nu-tab,
#nu-tab-3:checked + .nu-tab + input + .nu-tab + input + .nu-tab,
#nu-tab-4:checked + .nu-tab + input + .nu-tab + input + .nu-tab + input + .nu-tab{
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  z-index: 2;
}

/* panel container */
.nu-panels{
  border: 2px solid var(--border);
  border-radius: 0 0 var(--radius) var(--radius);
  padding: 1.25rem 1.25rem 1.5rem;
  background: #fff;
}

/* individual panels */
.nu-panel{ display: none; gap: 1rem; align-items: flex-start; }
.nu-panel .nu-media{
  width: 88px; height: 64px; flex: 0 0 88px;
  background: #f3f6f8 url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width=\"88\" height=\"64\" viewBox=\"0 0 88 64\"><rect fill=\"%23e7edf2\" width=\"88\" height=\"64\"/><path d=\"M10 44l16-18 14 12 10-10 18 16\" fill=\"none\" stroke=\"%23c1ccd6\" stroke-width=\"3\"/><circle cx=\"23\" cy=\"22\" r=\"5\" fill=\"%23c1ccd6\"/></svg>') center/48px no-repeat;
  border: 1px solid var(--border);
  border-radius: 8px;
}
.nu-panel h4{
  margin: .25rem 0 .5rem;
  font-size: 1rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}

/* show the correct panel */
#nu-tab-1:checked ~ .nu-panels #nu-panel-1{ display: flex; }
#nu-tab-2:checked ~ .nu-panels #nu-panel-2{ display: flex; }
#nu-tab-3:checked ~ .nu-panels #nu-panel-3{ display: flex; }
#nu-tab-4:checked ~ .nu-panels #nu-panel-4{ display: flex; }

/* responsive â€“ tabs wrap nicely on small screens */
@media (max-width: 640px){
  .nu-tab{ padding: .7rem .9rem; margin-right: .35rem; }
  .nu-panel{ flex-direction: column; }
  .nu-panel .nu-media{ width: 100%; height: 120px; }
}
/* --- ACTIVE STATE: force the selected tab to use the accent --- */
.enhanceable_content.tabs.nu-tabs-skin .ui-tabs-nav li.ui-tabs-active a,
.enhanceable_content.tabs.nu-tabs-skin .ui-tabs-nav li.ui-state-active a,
.enhanceable_content.tabs.nu-tabs-skin .ui-tabs-nav a[aria-selected="true"]{
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* Optional: win against stubborn theme rules */
.enhanceable_content.tabs.nu-tabs-skin .ui-tabs-nav li.ui-tabs-active a:link,
.enhanceable_content.tabs.nu-tabs-skin .ui-tabs-nav li.ui-tabs-active a:visited{
  color:#fff; /* stop purple visited links */
}

/* --- PANEL BORDER: match the highlight to the selected item --- */
.enhanceable_content.tabs.nu-tabs-skin .ui-tabs-panel{
  border: 2px solid var(--border);
  border-top-color: var(--accent); /* teal line across the top */
}

/* (Nice-to-have) focus/hover without changing the colour */
.enhanceable_content.tabs.nu-tabs-skin .ui-tabs-nav a:hover,
.enhanceable_content.tabs.nu-tabs-skin .ui-tabs-nav a:focus{
  outline: none;
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 35%, transparent);
}


/* 2c. Progress Bar */
/* Course Progress â€“ linear bar */
.course-progress {
  --cp-height: 14px;
  --cp-radius: 999px;
  --cp-track: #e7edf3;
  --cp-fill: #26CAD3;
  --cp-text: #001f6f;

  max-width: 960px;
  margin: 1rem auto 1.25rem;
  font: 700 16px/1.4 'Barlow', Arial, sans-serif;
  color: var(--cp-text);
}

.course-progress__header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: .75rem;
  margin-bottom: .35rem;
}

.course-progress__label { font-weight: 600; }

.course-progress__percent {
  font-variant-numeric: tabular-nums;
}

.course-progress__track {
  position: relative;
  background: var(--cp-track);
  border-radius: var(--cp-radius);
  height: var(--cp-height);
  overflow: hidden;
}

.course-progress__bar {
  height: 100%;
  width: 0%;
  background: var(--cp-fill);
  border-radius: var(--cp-radius);
  transition: width .6s ease;
}

.course-progress__status {
  margin-top: .4rem;
  font-size: 13px;
  opacity: .85;
}

.course-progress__note {
  margin-top: .25rem;
  font-size: 12px;
  color: #5c6b7a;
}

.course-progress__actions { margin-top: .6rem; }
.course-progress__cta {
  display: inline-block;
  padding: .55rem .9rem;
  border-radius: .625rem;
  background: #001f6f; color: #fff; text-decoration: none;
  font-weight: 600; font-size: 14px;
}
.course-progress__cta:focus { outline: 2px solid #26CAD3; outline-offset: 2px; }

.course-progress__greeting{
  display:block;
  margin:0 0 .5rem;
  font-weight:600;
  line-height:1.3;
  opacity:.9;
}

/* Reusable card for progress widget */
.cp-card{
  display:flex;
  flex-direction:column;
  gap:12px;
  background:#fff;
  width:100%;
  padding:20px;
  border:2px solid #26CAD3;   /* matches your footer accent */
  border-radius:8px;
}

/* Ensure the bar is visible even without other theme CSS */
#cp-progress .course-progress__track{
  height:10px;
  background:#e9eff5;
  border-radius:8px;
  position:relative;
}
#cp-progress .course-progress__bar{
  height:10px;
  background:#001f6f;          /* your brand blue */
  border-radius:8px;
  transition:width .25s ease;
}

/* Optional: tidy header */
#cp-progress .course-progress__header{
  display:flex;
  align-items:center;
  justify-content:space-between;
}

/* ==== Fix: make the progress widget full-width inside the card ==== */
.user_content .cp-card{ 
  display:block; 
  width:100%;
}

.user_content .cp-card #cp-progress{
  width:100% !important;
  max-width:none !important;   /* override the 960px cap */
  margin:0 !important;         /* stop centering via auto margins */
  text-align:left;
}

/* Keep a clean layout inside the card */
.user_content .cp-card #cp-progress .course-progress__header{
  display:flex;
  justify-content:space-between;
  align-items:baseline;
}

.user_content .cp-card #cp-progress .course-progress__track{ width:100%; }
.user_content .cp-card #cp-progress .course-progress__actions{ margin-top:.5rem; }

/* Optional: if any upstream wrapper uses flex centering, defeat it */
.user_content .cp-card{ align-items:stretch !important; justify-content:flex-start !important; }

/* ---- Course Progress card: constrain to page width ---- */
:root{
  /* Tweak this until the card edges line up with your body text */
  --cp-card-max: 100%;
}

.user_content .cp-card{
  width: 100%;
  max-width: var(--cp-card-max);
  margin: 0 auto 1rem;          /* center inside the content column */
  box-sizing: border-box;
  padding: 20px;                 /* keep your current padding */
  border: 2px solid #26CAD3;
  border-radius: 8px;
  background: #fff;
}

/* Keep the widget itself stretching inside the card (from earlier patch) */
.user_content .cp-card #cp-progress{
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  text-align: left;
}

/* If the card sits   a full-bleed Canvas "content-box", re-center it */
.user_content .content-box .cp-card{
  margin-left: auto;
  margin-right: auto;
}

/* 2d. Click-to-zoom + fullscreen modal */
.zoomable {
  cursor: zoom-in;
  transition: transform .18s ease;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

/* Optional small zoom on single click before modal */
.zoomable.is-zoomed {
  transform: scale(1.25);
  cursor: zoom-out;
}

/* Fullscreen overlay */
.zoom-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.86);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 4vmin;
}

.zoom-modal[aria-hidden="false"] {
  display: flex;
}

/* The enlarged image */
.zoom-modal__img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 10px;
  box-shadow: 0 8px 40px rgba(0,0,0,.45);
}

/* Controls */
.zoom-modal__controls {
  position: fixed;
  right: 2vmin;
  top: 2vmin;
  display: flex;
  gap: .5rem;
}

.zoom-btn {
  appearance: none;
  border: 0;
  border-radius: 10px;
  background: #001f6f;
  color: #fff;
  font: 600 14px/1 'Barlow', Arial, sans-serif;
  padding: .6rem .75rem;
  cursor: pointer;
}
.zoom-btn:focus { outline: 2px solid #26CAD3; outline-offset: 2px; }


/* 3) UTILITIES (safe to edit)
   -------------------------------------------------------------------------- */
/* add generic helpers here (e.g., .text-center, spacing utils, etc.) */

/* 4) LEGACY â€“ DO NOT EDIT (used by old courses)
   --------------------------------------------------------------------------
   These selectors are depended on by existing content. Avoid changes.
   Allowed: bugfixes like missing braces; whitespace tidy; comments.
   -------------------------------------------------------------------------- */

/* 4a) LEGACY: Footer (do not edit) */
.footer-container {
  display:flex;
  flex-direction:row;
  margin-bottom:1rem;
  margin-top:2rem;
}
@media (max-width: 768px) {
  .cbt-footer-container { flex-direction:column; }
}

.footer-content {
  background-color:#001f6f;
  display:flex;
  padding:0;
  flex-direction:column;
  flex:1 0 60%;
  border-radius:10px;
  color:#ffffff;
}
.footer-content > h2:first-child,
.footer-content > h3:first-child,
.footer-content > h4:first-child,
.footer-content > h5:first-child,
.footer-content > p:first-child {
  margin-bottom:0;
  margin-left:.875rem !important;
  color:#ffffff;
}

.footer-info {
  background-color:#4fbac9;
  color:#001f6f;
  padding:1rem 2.875rem 1.313rem 2.875rem;
  height:auto;
  flex:1 0 auto;
  border-radius:10px 0 10px 10px;
  padding-left:2.875rem;
}
.footer-info p { margin:18px 0; font-weight:bold; }

.footer-logo {
  flex:1 0 30%;
  background-color:#4fbac9;
  border-radius:10px;
  padding:.5rem 1rem;
  margin-left:-30px;
  display:flex;
  align-items:center;
  justify-content:center;
}
@media (max-width: 768px) {
  .footer-logo {
    margin-left:0;
    margin-top:-30px;
    justify-content:flex-start;
    padding-left:2.875rem;
    padding-bottom:2rem;
  }
}
.footer-logo img { height:100px; width:auto; float:right; }

/* 4b) LEGACY: Interactive Cards (do not edit) */
.cardpage {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.cardbody {
  min-height: 300px;
  display: flex;
}

.cardcontainer {
  position: relative;
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  max-width: 900px;
}

.cardcontainer-extra {
  position: relative;
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  max-width: 450px;
}

.cardcontainer-extra2 {
  position: relative;
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  max-width: 675px;
}

.cardcontainer-extra3 {
  max-width: 225px;
}

.card {
  width: 200px;
  background-color: #001f6f;
  padding: 0px 0px;
  margin: 0px 0px;
  border-radius: 0% 0% 10% 10%;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);
}

.card h4 {
  text-align: left;
  color: #ffffff;
  font-family: 'Barlow', Arial, sans-serif;
  font-size: 12pt;
  font-weight: 700;
  padding: 0;
  margin: 0;
  margin-left: 10px;
  box-sizing: border-box;
}

.card h5 {
  text-align: left;
  color: #ffffff;
  font-family: 'Barlow', Arial, sans-serif;
  font-size: 10pt;
  font-weight: 600;
  padding: 0;
  margin: 0;
  margin-left: 10px;
  box-sizing: border-box;
}

.card p {
  color: #696969;
  font-size: 1rem;
  font-weight: bold;
  padding: 10px 0;
  line-height: 1.5rem;
}

.card {
  position: relative;
}

.card a {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  padding: 1.2rem;
  text-align: center;
  text-decoration: none;
  background-color: transparent;
  border-style: hidden;
  color: transparent;
  font-size: 1rem;
  font-weight: bold;
  width: 100%;
  height: 100%;
}

.cardpage ul li {
  color: white;
  margin-left: 0px 5px 0px 5px;
}

/* 5) OVERRIDES (use sparingly)
   -------------------------------------------------------------------------- */
/* Put high-specificity / last-write-wins fixes here, with dated comments */
/* Example:
.assignmentDetails__Title { font-weight:800; }
*/