@charset "utf-8";
/* CSS Document */


/* =========================
   Base Design Tokens (Fallbacks)
========================= */

:root {
  --bg-page: #f7f8f9;
  --bg-surface: #ffffff;

  --text-main: #1f2933;
  --text-muted: #6b7280;

  --brand-primary: #2563eb;
  --brand-primary-muted: #E9EEF1;
  --brand-secondary: #9bb36f;

  --border-subtle: #e5e7eb;
  --focus-ring: #2563eb;
	
	
/* Base nav defaults */
  --nav-bg: #5b7a8c;
  --nav-text: #ffffff;

  --nav-link: #e3f2fb;
  --nav-link-muted: #cfe9f6;
  --nav-link-active: #ffffff;

  --nav-hover-bg: rgba(255,255,255,0.12);

  --nav-unit-bg: var(--nav-bg);
  --nav-unit-text: var(--nav-text);

  --nav-page-bg: color-mix(in srgb, var(--brand-primary) 15%, transparent);
  --nav-page-text: var(--nav-text);

  --nav-indicator-bg: rgba(255,255,255,0.3);
  --nav-indicator-fg: var(--brand-secondary);

  --nav-indicator-empty-bg: rgba(255,255,255,0.25);
  --nav-indicator-empty-fg: rgba(255,255,255,0.4);

  --nav-tooltip-bg: var(--brand-secondary);
  --nav-tooltip-text: #fff;

}


/* =========================
   Theme: SHORE-C
========================= */

:root[data-theme="shore-c"] {
  --bg-page: #f7f8f9;
  --bg-surface: #ffffff;
  --banner-bg: #EEF3E6;

  --text-main: #1f2a33;
  --text-muted: #5f6b73;

  --brand-primary: #5b7a8c;
  --brand-secondary: #9bb36f;
  --brand-accent: #48606f;

  --brand-primary-muted: #E9EEF1;
  --brand-secondary-muted: #EEF3E6;

  --border-subtle: #e2e6e9;
  --focus-ring: #9bb36f;

  /* NAV */
  --nav-bg: color-mix(in srgb, var(--brand-primary) 92%, #0a2540);
  --nav-text: #ffffff;

  --nav-link: #e3f2fb;
  --nav-link-muted: #d1e3ef;
  --nav-link-active: #ffffff;

  --nav-hover-bg: rgba(255,255,255,0.14);

  --nav-page-bg: color-mix(in srgb, var(--brand-accent) 25%, transparent);
  --nav-page-text: color-mix(in srgb, var(--brand-secondary) 75%, #ffffff);

  --nav-indicator-bg: rgba(255,255,255,0.3);
  --nav-indicator-fg: var(--brand-secondary);

  --nav-indicator-empty-bg: rgba(255,255,255,0.25);
  --nav-indicator-empty-fg: rgba(255,255,255,0.4);

  --nav-tooltip-bg: var(--brand-secondary);
  --nav-tooltip-text: #ffffff;
}



/* =========================
   Theme: HearSay
========================= */


:root[data-theme="hearsay"] {
  --bg-page: #f6f7f8;
  --bg-surface: #ffffff;
  --banner-bg: #FDEAF2;

  --text-main: #22323a;
  --text-muted: #66757d;

  --brand-primary: #1aa0d8;   /* blue */
  --brand-secondary: #f06aa8; /* pink */
  --brand-accent: #137aa6;

  --brand-primary-muted: #D6EDF8;
  --brand-secondary-muted: #FDEAF2;

  --border-subtle: #e3e8ec;
  --focus-ring: #f06aa8;

  /* NAV */
  --nav-bg: #016FA2;     /* strong blue */
  --nav-text: #ffffff;

  --nav-link: #e3f2fb;
  --nav-link-muted: #cfe9f6;
  --nav-link-active: #ffffff;

  --nav-hover-bg: color-mix(in srgb, #ffffff 12%, transparent);

  --nav-page-bg: color-mix(in srgb, var(--brand-accent) 95%, white);
  --nav-page-text: color-mix(in srgb, var(--brand-secondary) 75%, #ffffff);

  --nav-indicator-bg: rgba(255,255,255,0.35);
  --nav-indicator-fg: var(--brand-secondary);

  --nav-indicator-empty-bg: rgba(255,255,255,0.25);
  --nav-indicator-empty-fg: rgba(255,255,255,0.4);

  --nav-tooltip-bg: var(--brand-secondary);
  --nav-tooltip-text: #ffffff;
}



/* =========================
   Theme: HearSay Light Nav
========================= */

:root[data-theme="hearsay-light"] {
  --bg-page: #f6f7f8;
  --bg-surface: #ffffff;
  --banner-bg: #FDEAF2;

  --text-main: #22323a;
  --text-muted: #66757d;

  --brand-primary: #1aa0d8;
  --brand-secondary: #f06aa8;
  --brand-accent: #137aa6;

  --brand-primary-muted: #D6EDF8;
  --brand-secondary-muted: #FDEAF2;

  --border-subtle: #e3e8ec;
  --focus-ring: #f06aa8;

  /* NAV (light version) */
  --nav-bg: #D6EDF8;
  --nav-text: #22323a;

  --nav-link: #137aa6;
  --nav-link-muted: #66757d;
  --nav-link-active: color-mix(in srgb, var(--nav-link) 60%, var(--nav-text));

  --nav-hover-bg: color-mix(in srgb, var(--brand-primary) 10%, transparent);

  --nav-page-bg: color-mix(in srgb, var(--brand-primary) 25%, white);
  --nav-page-text: color-mix(in srgb, var(--brand-secondary) 80%, #000);

  --nav-indicator-bg: rgba(0,0,0,0.15);
  --nav-indicator-fg: var(--brand-secondary);

  --nav-indicator-empty-bg: rgba(0,0,0,0.15);
  --nav-indicator-empty-fg: rgba(0,0,0,0.1);

  --nav-tooltip-bg: var(--brand-primary);
  --nav-tooltip-text: #ffffff;
}


/* =========================================
   Reset / Base (mobile-first)
   - Keep it light; preserve useful browser defaults
========================================= */

/* 1. Border-box sizing everywhere */
*, *::before, *::after { box-sizing: border-box; }

/* 2. Remove default margins; we’ll add spacing explicitly */
body, h1, h2, h3, h4, h5, h6, p, figure { margin: 0; }

/* 3. Body baseline */
html { scroll-behavior: smooth;  /* can be disabled for reduced-motion */
		height: 100%}
body {
  background: var(--bg-page);
  color: var(--text-main);
  height: 100%;
  display: flex;
	flex-direction: column;
	min-height:100vh;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;               /* mobile base */
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 4. Improve text rendering and word-wrapping */
p { overflow-wrap: anywhere; }

/* 5. Images scale down on small screens */
img, video, canvas, iframe { max-width: 100%; height: auto; }

/* 6. Forms inherit font */
input, select, textarea, button { font: inherit; }

/* 7. Respect user’s reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}


/* Enforce HTML hidden attribute consistently across browsers */
[hidden] {
  display: none !important;
}
.centered {
	text-align: center;
	display: block;
}
.radio-item {
	display: block;
	font-size: 1rem;
    margin-bottom: 0.5rem;
}

fieldset {
	margin: 1rem;
	border: none;
	
}

.frmlabel{
	font-size: 1.1rem;
	font-weight: bold;
}


.help-text {
    display: block;        /* moves it under the label */
    font-size: 0.9em;
    color: #666;
    margin-top: 4px;
}

.content ul {
    padding-left: 0;
    list-style: none;
}

.content ul li {
    position: relative;
    margin-bottom: 12px;
    padding-left: 28px;
}


.content ul li::before {
    content: "●";
    position: absolute;
    left: 1px;
    top: 20%;
    transform: translateY(-20%); /* perfect vertical centering */
    font-size: 18px;            /* bigger bullet */
    color: #2ea3d0;
    line-height: 1;             /* prevents weird vertical offset */
}


.dashboard-modules {
    display: grid;
    gap: 1rem;

    grid-template-columns:
        repeat(auto-fit, minmax(216px, 1fr));
}


.module-card {
	
 text-decoration: none;
    color: inherit;

    border-radius: 12px;
    padding: 1.5rem;
    min-height: 160px;
	position: relative;
    border: 1px solid #dcdcdc;
	overflow: hidden;
    display: flex;
    flex-direction: column;
    text-align: center;
  
    align-items: center;
	font-weight: 700;
	
  text-shadow:
        0 1px 2px rgba(0,0,0,0.6);

}

.module-card:hover {
    text-decoration: none;
}

.mod-num {
    font-size: 1rem;
    font-weight: 700;
}

.mod-title {
    font-size: 1.4rem;
    font-weight: 800;
}
.module-complete {
    
    color: white;
}




.module-complete a {
    color: white;
}

.module-available a {
    color: white;
}

.module-complete::after {
    content: "✓";

    position: absolute;

inset: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 10rem;
    font-weight: bold;

    color: var(--brand-secondary);

    opacity: 0.80;

    pointer-events: none;
    line-height: 1;
}

.module-available {
    background: #e7f7ff;
}


.module-available,
.module-complete {
    cursor: pointer;
    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease;
}

.module-available:hover,
.module-complete:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.module-locked {
    background: #f4f4f4;
    opacity: 0.8;
}


.module-duration {
    font-size: 0.9rem;
    margin-top: 1rem;
    opacity: 0.9;
	font-weight: 700;
}

.card-image {
 
    background-size: cover;
    background-position: center;
    color: white;
	position: relative;
}

.card-image-1 {
    background-image:url("../images/med5.png");
	 background-size: cover;
    background-position: center;
    color: white;
	position: relative;
}

.card-image-2 {
    background-image:url("../images/med9.png");
	 background-size: cover;
    background-position: center;
    color: white;
	position: relative;
}

.card-image-3 {
    background-image:url("../images/med3.png"); /* or med4 */
	 background-size: cover;
    background-position: center;
    color: white;
	position: relative;
}
.module-card-content {
    position: relative;
    z-index: 2;
	
	
display: flex;
    flex-direction: column;

    flex: 1;
    width: 100%;

}



.module-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;

    margin-top: auto;
}



.card-image-1::before,
.card-image-2::before,
.card-image-3::before
 {
    content: "";

    
position: absolute;
    inset: 0;

    background: rgba(0,0,0,0.4);

    border-radius: inherit;

    z-index: 1;

}


.card-blue-1 {
    background-color: var(--brand-primary);
	color: #ffffff;
}

.card-blue-2 {
    background-color: color-mix(
        in srgb,
        var(--brand-primary) 80%,
        #ffffff
    );
	color: #ffffff;
}

.card-blue-3 {
    background-color: color-mix(
        in srgb,
        var(--brand-primary) 60%,
        #ffffff
    );
	color: #ffffff;
}



.poll-chart-wrapper {
    max-width: 100%;
	margin-top: 1rem;
}

@media (min-width: 768px) {
    .poll-chart-wrapper {
        max-width: 500px; /* adjust to taste */
        margin: 1rem auto;   /* centre it nicely */
    }
}



.results-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}



.results-dashboard-card {
	box-sizing: border-box;
    border: 1px solid #ccc;
    padding: 15px;
    border-radius: 8px;
    background: #fafafa;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);

	display: flex;
	flex-direction: column;
}

@media (min-width: 768px) {
.results-dashboard-card--wide {
    grid-column: span 2;
}
}





.card-link {
    margin-top: auto; 
}


tr.prog-always td {
    background: var(--brand-primary-muted);
}

tr.prog-never td {
    background: var(--brand-secondary-muted);
}

.free-text-response {
    margin: 25px 0;
    padding: 18px 20px;

    background: #fafafa;            
    border-left: 4px solid var(--nav-bg); 
    border-radius: 8px;

    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.results-chart-container {
    max-width: 500px;
    margin: 20px auto;
}

.result-card {
    background: var(--brand-primary-muted);
    border: 1px solid #e3e6eb;
    border-radius: 8px;

    padding: 20px 3vw;

    margin: 20px;

    width: fit-content;        
    max-width: 600px;         

    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}
``

.result-card h2 {
    margin-top: 0;
}

.result-score {
    font-size: 2.2em;
    font-weight: bold;
    margin-top: 5px;
}

.result-category {
    font-size: 1.2em;
    margin-top: 8px;
    color: #444;
}

.back-link {
    margin-top: 30px;
}

.back-link a {
    display: inline-block;
    padding: 10px 16px;
    background: var(--brand-primary);
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.95em;
}

.back-link a:hover {
    opacity: 0.9;
}



/* Agree but don't do → softer, reflective */
.agree_not_do {
    background: var(--brand-primary-muted); /* soft blue */
}

/* Disagree but do → slightly more attention */
.disagree_do {
    background: var(--brand-secondary-muted); /* soft amber */
}



/* =========================================
   Typography
========================================= */

:root {
  --font-size-base: 1rem;       /* 16px on most devices */
  --font-size-sm: 0.9375rem;    /* 15px */
  --font-size-xs: 0.875rem;     /* 14px */
  --font-size-h1: 1.5rem;       /* 24px mobile */
  --font-size-h2: 1.25rem;      /* 20px mobile */
  --font-size-h3: 1.125rem;     /* 18px mobile */

  --leading-tight: 1.25;
  --leading-normal: 1.6;

  --space-1: 0.25rem;   /* 4px  */
  --space-2: 0.5rem;    /* 8px  */
  --space-3: 0.75rem;   /* 12px */
  --space-4: 1rem;      /* 16px */
  --space-5: 1.5rem;    /* 24px */
  --space-6: 2rem;      /* 32px */
}

body { font-size: var(--font-size-base); }

h1, h2, h3 { line-height: var(--leading-tight); font-weight: 650; color: var(--text-main); }
h1 { font-size: var(--font-size-h1); margin-bottom: var(--space-3); }
h2 { font-size: var(--font-size-h2); margin: var(--space-4) 0 var(--space-2); }
h3 { font-size: var(--font-size-h3); margin: var(--space-3) 0 var(--space-2); }

p + p { margin-top: var(--space-3); }
ul, ol { margin: var(--space-3) 0 var(--space-3) var(--space-5); }
small { font-size: var(--font-size-xs); color: var(--text-muted); }


@media (min-width: 768px) {
  :root {
    --font-size-h1: 1.875rem;  /* 30px */
    --font-size-h2: 1.5rem;    /* 24px */
    --font-size-h3: 1.25rem;   /* 20px */ 
  }
}

.intro{
	
	font-size: 1.1em;
	
}
/* dashboard */
.turquoise-dark {
     background-color: color-mix(in srgb, var(--brand-primary) 80%, #ffffff);
     background-image:url("../images/med9.png");
     opacity: 1.5;
}

.transparent {
      background-color: rgba(0,18,18,0.20);
      border-radius: 10px;
      padding: 5px;
}

.turquoise {
    background-color: var(--brand-primary);
    background-image:url("../images/med5.png");
}

/*.turquoise-tick {
    background-image:url("../images/med5tick.png");
}

.tick2 {
    background-image:url("../images/med2tick.png");    
}*/

.turquoise-light {
    /*background-color: var(--brand-secondary);*/
    background-color: color-mix(in srgb, var(--brand-primary) 80%, #ffffff);
}

.turquoise-very-light {
    /*background-color: var(--brand-secondary);*/
    background-color: color-mix(in srgb, var(--brand-primary) 50%, #ffffff);
}

.pink-dark {
    /*background-color: var(--brand-secondary);*/
    background-color: color-mix(in srgb, var(--brand-secondary) 90%, #000000);
    background-image:url("../images/med4.png");
}

.pink {
    background-color: var(--brand-secondary);
    background-image:url("../images/med3.png");
}

.pink-light {
    /*background-color: var(--brand-secondary);*/
    background-color: color-mix(in srgb, var(--brand-secondary) 80%, #ffffff);
    background-image:none;
}

.pink-very-light {
    /*background-color: var(--brand-secondary);*/
    background-color: color-mix(in srgb, var(--brand-secondary) 50%, #ffffff);
}

.grey-muted {
    background-color: var(--text-muted);    
}

/* =========================================
   Layout containers
========================================= */

/* Main page padding for mobile */
.main-wrap {
  padding: var(--space-5) var(--space-4);
  flex: 1;
}

@media (max-width: 768px) {

  .main-wrap {
    padding: var(--space-2);
  }

}
/* Constrain line length for readability */
.container {
  max-width: 72rem; /* ~1152px */
  margin: 0 auto;
}

.course-title {
	color: var(--nav-text);
	text-align: center;
	margin-bottom: 0.5rem;
}

.container.course-layout {
  max-width: 1400px;
  width: min(96vw, 1600px);

}

/* Course layout: nav then content on mobile (stacked) */
.course-layout {
  display: grid;
  grid-template-columns: 1fr;    /* mobile: single column */
  gap: var(--space-5);
}


.video-wrap {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 responsive ratio */
  height: 0;
  overflow: hidden;
  border-radius: 8px;
  background: #000;
  margin-bottom: var(--space-5);
}

.video-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.modal-overlay[hidden] {
    display: none;
}

.modal-box {
    background: #fff;
    max-width: 500px;
    padding: 24px;
    border-radius: 8px;
}

.modal-actions {
    margin-top: 20px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 30px;
	
}

.resource-tile {
    background-color: #e6f4f8; /* lighter than module tiles */
    padding: 25px;
    border-radius: 12px;
    text-decoration: none;
    color: #333;
    transition: all 0.2s ease;
}

.resource-tile:hover {
    background-color: #d0ebf2;
    transform: translateY(-2px);
}

.resource-tile h2 {
    margin-bottom: 10px;
    font-size: 22px;
}


.resource-unit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 20px;
}


.resource-unit-tile {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 140px;
    background-color: #1aa0d8;
    color: #fff;
    border-radius: 12px;
    text-decoration: none;
    padding: 15px;
    text-align: center;
    font-weight: 600;
    position: relative;
    transition: all 0.2s ease;
}

.resource-unit-tile:hover {
    transform: translateY(-3px);
    background-color: #168bbd;
}

.resource-unit-title {
    font-size: 18px;
}

.resource-unit-wrapper {
    position: relative;
}



/* LOCKED STATE */
.resource-unit-tile.is-locked {
    background-color: #ccc;
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

/* PADLOCK */
.lock-icon {
    position: absolute;
    top: 10px;
    right: 10px;
}

/* TOOLTIP */
.lock-tooltip {
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--brand-secondary);
    color: #fff;
    padding: 5px 8px;
    border-radius: 5px;
    font-size: 12px;
    white-space: nowrap;
    display: none;
}

.resource-unit-wrapper:hover .lock-tooltip {
    display: block;
}
.reference-page-header{
	
position: relative;
  margin-bottom: 1.5rem;
}

.reference-page-header h1 {
  text-align: center;
  margin: 0;
}

.reference-pdf-button {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}

@media (max-width: 700px) {

  .reference-page-header {
    text-align: center;   
  }

  .reference-pdf-button {
    position: static;
    transform: none;
    margin-top: 1rem;
   
  }
	
	.resources-grid {
    
    grid-template-columns: repeat(1, 1fr);
    
}

}


.references-container {
  max-width: 800px;
  margin: 0 auto;
}

.reference-card {
  border-bottom: 1px solid #ddd;
  padding: 20px 0;
}

.ref-title {
  font-size: 1.2rem;
  margin-bottom: 5px;
}

.ref-authors {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.ref-abstract {
  font-size: 0.95rem;
  line-height: 1.5;
}

/* collapsed */
.ref-abstract.short {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* expanded */
.ref-abstract.expanded {
  -webkit-line-clamp: unset;
}

.toggle-btn {
  background: none;
  border: none;
  color: #1aa0d8;
  cursor: pointer;
  padding: 5px 0;
  font-size: 0.9rem;
}

.toggle-btn:hover {
  text-decoration: underline;
}

.ref-doi {
  margin-top: 10px;
  font-size: 0.85rem;
}
/* Visually hidden but accessible to screen readers */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important; /* keep on a single line */
  border: 0 !important;
}


/* Desktop and large tablets: 260px nav + fluid content */
@media (min-width: 900px) {
  .course-layout {
    grid-template-columns: 260px 1fr;
    align-items: start;
	width: 80%;
  }
}


/* Tablet: keep stacked but constrain nav width */
@media (min-width: 600px) and (max-width: 899px) {
  .course-nav {
    max-width: 500px;           /* adjust to taste, e.g., 480–640px */
    margin-inline: auto;        /* center the nav */
    width: 95%;
  }
}
/*Questionnaire page styling*/


.page--questionnaire .card {
  border-radius: 12px;
  border: 1px solid #e3e6ea;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}

.page--questionnaire .card-body {
  padding: 2rem;
  background: #fafbfc;
}


.question-text {
  font-size: 1.15rem;
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.page--questionnaire b {
  display: block;
  font-size: 0.95rem;
  color: #4a5568;
  margin-bottom: 0.5rem;
}



.form-check {
  display: block;
  border: 1px solid #d8dee5;
  border-radius: 8px;
  padding: 0.6rem 0.8rem;
  background: #fff;
  transition: all 0.2s ease;
  cursor: pointer;
}

.form-check:hover {
  border-color: #2b8dbd;
  background: #f3f9fc;
}

/* Align nicely */
.form-check-input {
  margin-right: 0.5rem;
  vertical-align: middle;
}


.form-check-label {
  cursor: pointer;
  margin-left: 0.4rem;
}


.form-check-input:checked + .form-check-label {
  font-weight: 600;
  color: #1a5f7a;
}

.form-check-input:checked {
  accent-color: #2b8dbd;
}


.form-check:has(.form-check-input:checked) {
  border-color: #2b8dbd;
  background: #eaf6fb;
}

.form-control {
  border-radius: 8px;
  padding: 0.75rem;
  border: 1px solid #d8dee5;
}

.form-control:focus {
  border-color: #2b8dbd;
  box-shadow: 0 0 0 2px rgba(43,141,189,0.15);
}


.alert-danger {
  border-radius: 8px;
  padding: 1rem;
}




/* =========================
   SIDEBAR CONTAINER
========================= */

.course-nav {
  background: var(--nav-bg, #5b7a8c);
  color: var(--nav-text, #ffffff);
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.08);
  text-align: left;
  padding: 0.5rem;
  width: 95%;
  margin-left: 0;
}


.nav-modules {
  display: block;
  }



.course-nav ul,
.course-nav ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

.course-nav li {
  margin: 0;
  padding: 0;
}



.module {
  margin-bottom: 1rem;
}

.module-title {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--nav-text);
}


/* =========================
   Module toggle button
========================= */

.course-nav .module-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;

  padding: 0.4rem 0.6rem;
  margin-bottom: 0.25rem;

  font-size: 1rem;
  font-weight: 600;

  background: none;
  border: none;
  border-radius: 6px;

  color: var(--nav-text);
  cursor: pointer;
  text-align: left;
} 

.course-nav .module-title:hover,
.course-nav .module-title:focus-visible {
  background: var(--nav-hover-bg);
}




/* Highlight current module */

.module.is-current > .module-title {
  background: rgba(255,255,255,0.18);
  font-weight: 700;
}

.module-pages {
  margin-left: 0;
}

.module-pages li + li {
  margin-top: 0.15rem;
}

.module-pages a {
  display: block;
  padding: 0.4rem 0.6rem;
  border-radius: 6px;
  font-size: 0.9rem;
  color: var(--nav-link);
}

.module-pages a:hover,
.module-pages a:focus {
  background: var(--nav-hover-bg);
  color: var(--nav-link-active);
}

.module-pages a.active {
  background: rgba(255,255,255,0.22);
  color: var(--nav-link-active);
  font-weight: 500;
}

.page-list {
  margin-top: 0.25rem;
  background: var(--nav-page-bg);
  padding: 0.2rem 0.4rem;
  border-radius: 6px;
}

.page-list a {
  color: var(--nav-page-text);
  font-size: 0.9rem;
  padding: 0.2rem 0.4rem;
}

.page-list a:hover {
  background: var(--nav-hover-bg);
  color: var(--nav-link-active);
}
/* Collapsible module pages */

.module-pages[hidden] {
  display: none !important;
  
}

.extra-links{
	
	border-radius: 10px;
	border-top: 1px solid var(--nav-link-muted);
	border-bottom: 1px solid var(--nav-link-muted);
	
}
/* =========================
   Page completion indicator
========================= */

.module-pages a {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Small status dot */
.page-status {
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.45);
  flex: 0 0 auto;
}

/* Completed page */
.is-complete .page-status {
  background: var(--brand-secondary);
  border-color: var(--brand-secondary);
}


/* Active + complete page */

.module-pages a.active .page-status {
  background: #ffffff;
  border-color: #ffffff;
}


.nav-modules .module-pages li {
  position: relative;
  padding-left: 1.6rem;
}


.nav-modules .module-pages li.is-complete::before {
  content: none;
 }

/* Module progress tooltip */
.module-progress-wrapper {
  position: relative;
  display: inline-block;
}

.module-progress-wrapper .module-tooltip-text {
  position: absolute;
  left: 50%;
  bottom: 100%;
  transform: translateX(-50%);
  background: #222;
  color: #fff;
  padding: 4px 8px;
  font-size: 0.75rem;
  white-space: nowrap;
  border-radius: 4px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s ease;
  margin-bottom: 6px;
  z-index: 10;
}

.module-progress-wrapper:hover .module-tooltip-text {
  opacity: 1;
}



.module-progress-circle .bg {
  stroke: #e6e6e6;
  fill: none;
  stroke-width: 2.5; /* slightly thicker for hierarchy */
}

.module-progress-circle .fg {
  stroke: var(--brand-primary);  
  fill: none;
  stroke-width: 2.5;
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
}

/* Tick uses same colour */
.module-tick {
  fill: var(--brand-primary);
}

.module-tick .tick-bg {
  fill: #ffffff;                 /* ✅ white circle */
  stroke: var(--brand-primary); /* optional outline */
  stroke-width: 1.5;
}

.module-tick .tick-mark {
  fill: var(--brand-primary);   /* ✅ brand colour tick */
}


.module-progress-indicator svg {
  width: 18px;
  height: 18px;
}

/* unit progress */

.unit-indicator {
  position: absolute;
  left: 0;
  top: 0.8rem;
  width: 1rem;
  height: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Tick */
.unit-tick {
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: var(--brand-secondary);
  fill: #fff;
  padding: 2px;
}

/* Circular progress */
.unit-progress-circle {
  width: 1rem;
  height: 1rem;
}

.unit-progress-circle circle {
  fill: none;
  stroke-width: 3.5;
}

.unit-progress-circle .bg {
  stroke: var(--nav-indicator-bg);
}

.unit-progress-circle .fg {
  stroke:  var(--nav-indicator-fg);
  stroke-linecap: round;
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
}


.unit-progress-circle.empty .bg {
  stroke: var(--nav-indicator-empty-bg);
}

.unit-progress-circle.empty .fg {
  stroke: var(--nav-indicator-empty-fg);
}

/* Tooltip container */
.unit-tooltip {
  position: relative;
  display: inline-block;
  cursor: default;
}

/* The tooltip text (hidden by default) */

.unit-tooltip .tooltip-text {
  visibility: hidden;
  opacity: 0;
  position: absolute;

  left: 22px;
  top: 50%;
  transform: translateY(-50%);

  background: var(--nav-tooltip-bg);
  color:var(--nav-tooltip-text);
  padding: 4px 8px;
  border-radius: 4px;
  white-space: nowrap;
  font-size: 12px;
  line-height: 1.2;

  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
  transition: opacity 0.2s ease;
  pointer-events: none;
  z-index: 100;
}


/* Show tooltip on hover */
.unit-tooltip:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
}

/* Optional: slightly lighter empty circle */
.unit-progress-circle.empty .bg {
  stroke: rgba(255,255,255,0.25);
}
.unit-progress-circle.empty .fg {
  stroke: rgba(255,255,255,0.3);
}

/*============================
locked units
============================*/
.unit.is-locked .unit-title--locked {
    color: var(--nav-link-muted);
    cursor: not-allowed;
    opacity: 0.7;
}

.unit.is-locked a {
    pointer-events: none;   /* safety: blocks any leftover click */
}

.unit-padlock {
    fill: var(--nav-indicator-fg);
	transform: translateY(-4px);  /* move up 2px */
}

.module-padlock {
    fill: var(--brand-primary-muted);
	transform: translateY(-4px);  /* move up 2px */
}
/* =========================
   Module progress summary
========================= */

.module-progress {
  margin-left: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--nav-link-muted);
}


/* Fully completed module */

.module.is-complete > .module-title {
  background: rgba(155,179,111,0.25);
}

.module.is-complete .module-progress {
  color: var(--brand-secondary);
}

.module-completion-box {
    margin: 1rem 0 3.5rem;
    padding: 1.5rem;
    background: var(--brand-secondary-muted);
    border: 1px solid var(--brand-secondary);
    border-radius: 8px;
	
   
}
}

.module-completion-box h4 {
    margin: 0 0 0.75rem;
}

.module-completion-box p {
    margin-bottom: 2rem;
}

.completion-unit {
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
    background: rgba(255,255,255,0.6);
    border-radius: 6px;
}

.completion-unit:last-child {
    margin-bottom: 0;
}

.completion-unit strong {
    display: block;
    margin-bottom: 0.5rem;
    color: #003366;
    font-size: 1rem;
}

.completion-unit ul {
    margin: 0;
    padding-left: 1.5rem;
}

.completion-unit li {
    margin: 0.25rem 0;
}

.continue-incomplete {
    margin-top: 1.5rem;
    text-align: center;
}

/* Content card */
.course-content {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: var(--space-5);
  margin-right: 1rem;
}

@media (max-width: 768px) {
	.course-content {
		padding: var(--space-2);	
		 margin-right: .25rem;
	}
}

.content {
  padding-left: 1rem;
  padding-right: 1rem;
}


#termInput {
  width: 100%;
  max-width: 420px;  /* preserves desktop layout */
  box-sizing: border-box;
}

#addBtn {
	margin: 0.5em 0;
}
/* =========================
   Mobile nav toggle
========================= */

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5ch;
  padding: 0.3rem 0.75rem;
  margin: 0.75rem;
  border-radius: 6px;
  border: 1px solid var(--brand-accent);
  background: color-mix(in srgb, var(--brand-primary) 12%, #ffffff);
  color: var(--brand-accent);
  font-weight: 600;
}


/* ==========================================================
   BASE: Mobile hides the course nav until hamburger opens it
   ========================================================== */

/* Mobile default: sidebar hidden */
.course-nav {
  display: none;
}

/* When hamburger toggles the class */
body.nav-open .course-nav {
  display: block;
  margin-bottom: 1rem;
}

/* ==========================================================
   NO-NAV PAGES LOGIC
   (Dashboard, Account, etc.)
   Hidden normally, but can open on mobile when nav-open added
   ========================================================== */

/* Default: hide sidebar for no-nav pages (both desktop & mobile) */
body.no-nav .course-nav {
  display: none; /* IMPORTANT: no "!important" here */
}


/* Desktop: nav always visible */
@media (min-width: 900px) {
  .course-nav {
    display: block;
  }
}

/* On mobile, allow nav-open to override the no-nav hide */
@media (max-width: 899px) {
  body.no-nav.nav-open .course-nav {
    display: block;
    margin-bottom: 1rem;
  }
}

/* On desktop, hide the hamburger on no-nav pages (no dead button) */
@media (min-width: 900px) {
  body.no-nav .nav-toggle {
    display: none;
  }
}


/* Mobile-only sidebar items — hide on desktop */
@media (min-width: 900px) {
  .mobile-only {
    display: none !important;
  }
}


/* FINAL FIX: force the nav to appear on mobile whenever nav-open is present */
@media (max-width: 899px) {
    body.nav-open .course-nav {
        display: block !important;
    }
}


/* aligning next/prev buttons  */
.page-nav {
  display: flex;
  justify-content: flex-start;
  align-items: flex-end;
  gap: var(--space-3);
  margin-top: var(--space-5);
}

.page-nav a.button {
  flex-shrink: 0;
}


.page-nav--top {
  display: flex;
  justify-content: flex-start;
  align-items: flex-end;
  margin-bottom: var(--space-5);
}


.button-row {
  display: flex;
  gap: var(--space-3);
  align-items: center;
  flex-wrap: wrap; /* so they don't overflow on small screens */
}


.page-nav .finish {
  margin-left: auto;      /* pushes Finish to the far right */
}


.next-inline {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-top: 0;           /* prevent vertical offset */
}

.next-inline .nav-note {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.3;
  color: var(--text-muted, #666);
}


/* Mobile tweaks */
@media (max-width: 600px) {
  .page-nav { 
    flex-wrap: wrap;              /* allow the note to move to a new line */
  }
  .page-nav .nav-note {
    flex-basis: 100%;             /* take the whole row */
    order: 3;                     /* ensure it comes after the buttons */
    margin-left: 0;
    text-align: right;            /* optional: align the note right under Finish */
  }
	
.next-inline {
    flex-direction: column;
    align-items: flex-start; /* so the note aligns naturally */
    gap: var(--space-2);
    width: 100%;
  }

  .next-inline .nav-note {
    max-width: 100%;
    text-align: left;
  }

}



/* ==========================================
   Global WebKit/iOS fixes
========================================== */
html, body, .banner {
  -webkit-text-size-adjust: 100%; /* prevent Safari auto-enlarging text */
}

/* ==========================================
   Banner + Top Row
========================================== */

.banner {
  background: linear-gradient(var(--banner-bg, #f7fbff), 90%, var(--brand-secondary));
  border-bottom: 1px solid rgba(0,0,0,.06);
  width: 100%; /*min(96vw, 1400px);*/
  margin: auto;
  /*border-radius: 10px;*/
}
.site-footer {
    margin-top: 40px;
    padding: 30px 0 20px;
    text-align: center;
     width: 100%; 
	background:var(--banner-bg); /*no dark*/
	/*background: linear-gradient(var(--banner-bg, #f7fbff), 90%, var(--brand-secondary)); dark at bottom*/
	border-top: 1px solid #e5d3dc;
   /* background: linear-gradient( var(--brand-secondary), 10%, var(--banner-bg, #f7fbff)); dark at top*/

  
}

.footer-links {
    margin-bottom: 12px;
}

.footer-links a {
    color: #2196d3;
    text-decoration: none;
    font-weight: 500;
}

.footer-links a:hover {
    text-decoration: underline;
}

.footer-links span {
    margin: 0 10px;
    color: #666;
}

.footer-meta {
    font-size: 0.85rem;
    color: #666;
}

.topmenu {
  margin: auto;
  width: min(96vw, 1400px);
  padding: 1rem 1rem 1.5rem;
  padding-inline: max(12px, 2.5vw);
}

/* Desktop: one single row until true collision */
@media (min-width: 900px) {
  .topmenu {
    display: flex;
    align-items: center;
    justify-content: space-between; /* left logos, right buttons */
    gap: 1rem;
    flex-wrap: nowrap;              /* <— keep it one line */
  }
}
.current-cohort {
 margin: auto;
  width: min(96vw, 1400px);
  padding: 0 1rem 1.5rem;
  padding-inline: max(12px, 2.5vw);
}

.cohort-pill {
    display: inline-block;
    padding: 0.35rem 1rem;
    border-radius: 999px;
    background: var(--brand-primary-muted);
    border: 1px solid var(--brand-accent);
    font-size: 0.9rem;
    font-weight: 600;
	
}

/* ==========================================
   Logo Block — fixed, non-shrinking
========================================== */

.logo-block {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: nowrap;
  flex: 1 1 auto;          /* allow the block to size within the row */
  overflow: visible;       /* do not clip the last logo */

}

.logo {
  height: clamp(32px, 6vw, 60px);
  width: auto;
  flex: 0 0 auto;      /* do not shrink logos */
  object-fit: contain;
}

/* Headroom just before breakpoint if needed */
@media (max-width: 950px) and (min-width: 900px) {
  .logo { height: 42px; }
}


/* When label is hidden (narrow iPhones), give the logos a touch more headroom */
@media (max-width: 420px) {
  .logo {
    height: clamp(26px, 6.2vw, 48px);  /* slightly smaller cap on tiny screens */
  }
}

/* ==========================================
   Hamburger Button (mobile-only)
========================================== */

.nav-toggle {
  background-color: var(--brand-primary);
  color: #fff;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;

  box-sizing: border-box;
  padding: .4rem .7rem;
  font-size: 1rem;
  font-weight: 600;

  flex: 0 1 auto;
  min-width: 0;
  max-width: fit-content;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;

  white-space: nowrap;
  overflow: hidden;

  appearance: none;
  -webkit-appearance: none;
}

/* Icon always stable */
.nav-toggle .icon {
  flex: 0 0 auto;
  width: 1.2em;              /* stabilises width so label can't distort it */
  text-align: center;
  display: inline-block;
}

/* Text label collapsible */
.nav-toggle .label {
  flex: 0 0 auto;
  display: inline-block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
}


/* Slight extra shrink for slightly-larger phones (iPhone Pro Max etc) */
@media (max-width: 480px) and (min-width: 421px) {
  .nav-toggle {
    font-size: clamp(0.78rem, 3vw, 0.95rem);
    padding: .36rem .60rem;     /* slightly tighter */
    max-width: 48vw;            /* prevent it dominating the row */
  }
}

/* Hide label completely on narrow screens */
@media (max-width: 420px) {
	
	
.nav-toggle {
    /* keep it from looking too narrow when label is hidden */
    min-inline-size: 3.1em;     /* tweak between 2.8em and 3.4em to taste */
    padding: .38rem .55rem;     /* your compact padding for small screens */
    justify-content: center;    /* ensure icon is centered in the pill */
	flex-shrink: 1;         /* allow a *little* give to protect logos */
  }

  .nav-toggle .label {
    display: none !important;
  }
}

/* Show/hide hamburger based on desktop/mobile */
@media (min-width: 900px) {
  .nav-toggle { display: none; }
}
@media (max-width: 899px) {
  .nav-toggle { display: inline-flex; }
}




/* ==========================================
   Right Button Row — inline until collision,
   shrink text reliably by inheriting from parent
========================================== */

/* 1) Put the responsive font-size on the container */
.el2 {
  display: flex;
  justify-content: flex-end;
  align-items: center;

  /* Inline until collide */
  flex: 1 1 auto;
  min-width: 0;
  flex-wrap: nowrap;
  gap: .5rem;

  /* Text scale HERE, and keep above common minimums (≈12px) */
  font-size: clamp(0.85rem, 0.95vw, 1rem);  /* ~13.6px ↔ 16px on typical desktops */
  line-height: 1.2;                          /* slightly tighter to save width */
}

/* 2) Forms are shrinkable flex items */
.el2 form {
  margin: 0;
  padding: 0;
  flex: 1 1 0;
  min-width: 0;
}

/* 3) Inputs inherit the font-size (1em) and can actually shrink */

/* Submit buttons: normalize + exact centering */
.topbtn {
  /* Inherit typography from .el2 so text actually scales */
  font: inherit;
  font-weight: 600;

  /* Visuals */
  background-color: var(--brand-primary);
  color: #fff;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);

  /* Box model + flex shrinking */
  box-sizing: border-box;
  width: 100%;
  flex: 1 1 0;
  min-width: 0;

  /* SYMMETRIC padding using logical props */
  padding-block: 0.50em;
  padding-inline: 0.90em;

  /* Force true optical centering even on replaced inputs */
  display: inline-flex;            /* works on inputs in modern browsers */
  align-items: center;
  justify-content: center;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;

  /* Remove UA quirks that create hidden inner padding */
  appearance: none;
  -webkit-appearance: none;
}

/* Firefox-specific inner padding removal */
.topbtn::-moz-focus-inner {
  border: 0;
  padding: 0;
}

/* Optional: micro‑tune if the font still sits a hair high/low */
@supports (transform: translateY(0.01em)) {
  .topbtn { transform: translateY(0.01em); }  /* try 0.00–0.03em if you like */
}

/* Hide the right button row on mobile */
@media (max-width: 899px) {
  .el2 { display: none; }
}
/* =========================================
   Links & interactive elements
========================================= */

a {
  color: var(--brand-primary);
  text-decoration: none;
}
a:hover { text-decoration: underline; }

:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
}

.contact-email{
	color: var(--brand-secondary);
}

/* Buttons */
.button,
button,
input[type="submit"] {
  display: inline-flex;
  align-items: center;
  gap: 0.5ch;
  padding: 0.5rem 0.9rem;
  border-radius: 6px;
  border: 1px solid transparent;
  background: var(--brand-primary);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  /*box-shadow: 0 0 10px rgba(0,0,0,0.1);*/
}
.button--secondary {
  background: #fff;
  color: var(--brand-primary);
  border-color: var(--brand-primary);
	box-shadow: 0 0 10px rgba(0,0,0,0.1);
}
.button:disabled { opacity: 0.6; cursor: not-allowed; }



.finish-wrap {
  display: flex;
  align-items: center;   /* vertical alignment */
  flex-wrap: wrap;       /* allows wrapping when needed */
  gap: 0.5rem 1rem;      /* row gap + column gap */
  margin-top: 1rem;
  margin-left: auto;
}

.finish-wrap .nav-note {
  margin: 0;
  max-width: 500px;      /* optional: keeps text readable */
}

/* Forms */
label { display: inline-block; margin-bottom: 0.25rem; font-weight: 600; }
input[type="text"],
input[type="email"],
input[type="password"],
textarea,
select {
  width: 100%;
  padding: 0.5rem 0.6rem;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #fff;
  color: var(--text-main);
}
textarea { min-height: 5rem; resize: vertical; }
input:focus, textarea:focus, select:focus {
  border-color: var(--brand-primary);
  outline: 3px solid rgba(0,0,0,0); /* rely on :focus-visible outline above */
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus-ring) 30%, transparent);
}

  .notice-card {
    position: relative;
  }
  .notice-close {
    position: absolute;
    top: .5rem;
    right: .5rem;
    border: none;
    background: transparent;
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
    color: #666;
  }
  .notice-close:hover {
    color: #000;
  }
  .notice-card[hidden] {
    display: none !important;
  }


.info-icon {
    display: inline-block;
    margin-left: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    position: relative;
    color: #555;
	/* transform: translateY(2px);  /* move down 2px */
}


.info-icon svg {
    width: 0.8rem;
    height: 0.8rem;
}


.info-icon .tooltip {
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.2s ease;
    position: absolute;
    background: var(--brand-secondary);
 	color: #ffffff;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 0.9rem;
    width: 220px;
    top: 20px;
    left: 0;
    z-index: 100;
}

.info-icon:hover .tooltip {
    visibility: visible;
    opacity: 1;
}


.dictation-container {
  position: relative;
}

.dictation-container textarea {
  width: 100%;
  padding-bottom: 2.5rem; /* room for mic */
}



.dictation-mic {
  position: absolute;
  bottom: 0.5rem;
  right: 0.5rem;

  width: 2.25rem;
  height: 2.25rem;

  display: flex;
  align-items: center;
  justify-content: center;

  border: none;
  border-radius: 50%;
  cursor: pointer;

  background: color-mix(in srgb, var(--brand-secondary) 10%, white);
  color: var(--brand-secondary);

  font-size: 1.2rem;
  line-height: 1;

  padding: 0;
  margin: 0;

  opacity: 0.85;
}

.dictation-mic:hover {
  opacity: 1;
}

/* Recording state */
.dictation-mic.is-recording {
  background: var(--brand-primary);        
  color: #fff;
  opacity: 1;
  
  box-shadow:
    inset 0 0 0 1.5px rgba(255, 255, 255, 0.65);

}

/* Optional subtle pulse while recording */
.dictation-mic.is-recording {
  animation: dictation-pulse 1.5s ease-in-out infinite;
}

@keyframes dictation-pulse {
  0%   { box-shadow: 0 0 0 0 color-mix(in srgb, var(--brand-primary) 60%, transparent); }
  70%  { box-shadow: 0 0 0 6px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }

}


.dictation-mic[aria-pressed="true"] {
  color: var(--brand-primary); /* same red you use for alerts */
  opacity: 1;
}


.dictation-status {
  position: absolute;
  bottom: 3.25rem;         /* just above the mic */
  right: 0.5rem;

  font-size: 0.75rem;
  color: var(--brand-primary);

  background: rgba(255, 255, 255, 0.9);
  padding: 0.2rem 0.4rem;
  border-radius: 0.25rem;

  pointer-events: none;
}


.mic-icon {
  width: 1rem;
  height: 1rem;
  fill: currentColor;
  display: block;
}



/* =========================================
   Media & data
========================================= */

/* H5P wrapper */
.h5p-container, #h5p-container {
  margin: 0 auto var(--space-6);
  border-radius: 8px;
  overflow: hidden; /* rounds the iframe corners visually */
}
.h5p-container iframe, #h5p-container iframe { width: 100%; border: 0; }

/* Tables: scroll on small screens */
.table-wrap {
  width: 100%;
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--font-size-sm);
}
th, td {
  border-bottom: 1px solid var(--border-subtle);
  text-align: left;
  padding: 0.5rem 0.75rem;
}
th { background: color-mix(in srgb, var(--bg-page) 60%, white); }


/* =========================================
   Utilities
========================================= */

.hidden { display: none !important; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.m-0 { margin: 0 !important; }
.mt-2 { margin-top: var(--space-2) !important; }
.mt-3 { margin-top: var(--space-3) !important; }
.mt-4 { margin-top: var(--space-4) !important; }
.mb-3 { margin-bottom: var(--space-3) !important; }
.mb-4 { margin-bottom: var(--space-4) !important; }

.card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: var(--space-4);
}

@media (max-width: 768px) {
	.card {
		padding: var(--space-3);
    }
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 20px;
	margin-bottom: 20px;
}

.stat-card {
    width: auto;
    min-width: 0;
    margin-top: 0;
    text-align: center;
}

.stats-grid .admin-card {
    width: auto;
    min-width: 0;
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
}


.admin-card{
	width: 50%;
	min-width: 400px;
	background: var(--brand-primary-muted);
	border: 1px solid var(--brand-accent);
	border-radius: 10px;
	padding: 0 1rem;
	margin-top: 1rem;
}


.admin-card p {
    margin-bottom: 6px;
}

.admin-dashboard-grid{
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
	margin-bottom: 20px;
}

.admin-dashboard-grid .admin-card {
    width: auto;
    min-width: 0;
    margin-top: 0;
}

.admin-summary-grid {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    align-items: stretch;
}

.admin-summary-grid .admin-card {
    flex: 1;
}

.admin-actions {
    display: flex;
    justify-content: center;
    align-items: center;
}

.attention-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
	
}
@media (min-width: 768px) {
	.attention-list {
		padding: 0 2rem 0.5rem 1.5rem;
	}
}
.attention-item {
    display: flex;
    justify-content: space-between;
}

.attention-count {
	font-weight: bold;
	font-size: 1.2rem;
}
.role-badge{
	background-color: var(--brand-secondary);
	color: #ffffff;
	padding:0.5rem;
	margin:0, 1rem;
	border-radius: 10px;
	
}

.successmsg{
	color: var(--brand-secondary);
	font-weight: 700;
	font-size: 1.2rem;
}
.cohort-tabs {
    margin: 1rem 0;
}

.cohort-tabs a {
    display: inline-block;
    padding: 8px 14px;
    margin-right: 6px;
    border-radius: 6px;
    text-decoration: none;
    border: 1px solid #ccc;
    background: var(--brand-secondary-muted);
}

.cohort-tabs a.active {
    background: var(--brand-primary);
    color: #fff;
    border-color: var(--brand-primary);
}

.status {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.9em;
}

.status-completed {
    background: #d4edda;
    color: #155724;
}

.status-progress {
    background: #fff3cd;
    color: #856404;
}

.status-not-started {
    background: #f8d7da;
    color: #721c24;
}


/* Completed and still has access */
.status-complete {
    background: #d4edda;
    color: #155724;
}
/* Added but not completed registration */
.status-unregistered {
    background: #e2e3e5;
    color: #495057;
}

/* In Progress */
.status-in-progress {
    background: #d1ecf1;
    color: #0c5460;
}

/* Less than 7 days remaining */
.status-warning {
    background: #fff3cd;
    color: #856404;
}

/* Overdue */
.status-overdue {
    background: #f8d7da;
    color: #721c24;
}

/* Completed but access expired */
.status-expired {
    background: #e2e3e5;
    color: #383d41;
}

/* started but withdrew*/
.status-withdrawn {
    background: #f8d7da;
    color: #721c24;
}

/* registered interest but never started */
.status-declined {
    background: #e2e3e5;
    color: #383d41;
}
.summary-row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 8px;
}

.summary-label {
    font-weight: bold;
}

.summary-value {
    text-align: right;
}
/* Ensure adequate contrast for disabled/secondary text */
.muted { color: var(--text-muted); }


.big-symbol {
    font-size: 1.5em;        /* makes arrow bigger */
    line-height: 1;          /* prevents button height from growing */
    display: inline-block;   /* allows sizing without layout weirdness */
    margin-left: 0.25em;     /* optional spacing from text */
   /* vertical-align: middle;   keeps it aligned with text */
}

.errormsg {
	color: color-mix(in srgb, var(--brand-secondary) 80%, #1E1E1E);
	font-weight: bold;
	font-size: 1.2rem;
}


.video-rating__prompt {
  margin-bottom: 8px;
}

.video-rating__scale {
  display: flex;
  align-items: center;
  gap: 10px;
}

.video-rating__scale input[type="range"] {
  flex: 1;
}

.scale-label {
  font-size: 0.85em;
  color: var(--brand-primary);
  white-space: nowrap;
}


/* =========================================
   Discussion
========================================= */


.discussion {
  margin-top: var(--space-6);
  padding-top: var(--space-4);
  border-top: 2px solid var(--border-subtle);
}

.discussion__title { margin-bottom: var(--space-3); font-size: 1.1rem; color: var(--brand-primary); }
.discussion__posts { list-style: none; padding: 0; margin: 0; }

.discussion__role {
  font-size: 0.85em;
  color: #666;
  margin-left: 0.25rem;
  white-space: nowrap;
}

.discussion__post {
  list-style: none;
  background: #fff;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 0.5rem 0.5rem;
  margin: 0.25rem;
  font-size: 0.95rem;
}

.discussion__meta { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 0.2rem; }
.discussion__body { margin: 0.25rem 0 0.35rem; line-height: 1.45; }

.discussion__actions { margin-top: 0.25rem; font-size: 0.85rem; }
.discussion__actions a { margin-right: 0.75rem; color: var(--brand-primary); }

.discussion__posts .discussion__posts {
  margin-left: 0.75rem;
  padding-left: 0.75rem;
  border-left: 2px solid var(--border-subtle);
}


/* Deleted post – neutral, informational */
.discussion__post--deleted {
  background: var(--bg-page);
  border-left: 4px solid var(--border-subtle);
  opacity: 0.75;
}

.discussion__post--deleted .discussion__body {
  font-style: italic;
  color: var(--text-muted);
}

.discussion__deleted-content.is-collapsed {
    display: none;
}

.discussion__deleted-content {
    opacity: 0.7;
    font-style: italic;
    margin-top: 0.5rem;
}

#discussion_reply_notice {
	display: none;
}

/* Subtle flash to draw the eye to the textarea after clicking Reply */
.discussion__focus-flash {
    outline: 2px solid var(--brand-secondary, #3b82f6);
    animation: discussionFocusFade .9s ease-out 1;
}
@keyframes discussionFocusFade {
    0%   { box-shadow: 0 0 0 6px rgba(59,130,246,.35); }
    100% { box-shadow: 0 0 0 0 rgba(59,130,246,0); }
}

@media (prefers-reduced-motion: reduce) {
    .discussion__focus-flash {
        animation: none;
        box-shadow: none;
    }
}

/* Collapsible replies wrapper */

/* Replies container: stacked, not indented */
.discussion__children {
  margin-top: .5rem;
}


.discussion__children.is-collapsed {
  display: none;
}


/* Replies get a soft card background */
.discussion__children .discussion__post {
  background: var(--brand-primary-muted);
  border-radius: 8px;
  padding: .75rem;
  margin-top: .5rem;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}


/* =========================
   Discussion: Toggle replies button
========================= */

button.discussion-toggle-replies {
  /* Layout & shape */
  display: inline-block;
  padding: 0.35rem 0.65rem;
  margin: .25rem 0 .5rem;
  border-radius: 15px;

  /* Visual design */
  background: var(--brand-primary-muted);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);

  /* Typography & interaction */
  font: inherit;
  cursor: pointer;

  /* Normalise browser styles */
  appearance: none;
  -webkit-appearance: none;
}

/* Hover = muted secondary */
button.discussion-toggle-replies:hover {
  background: var(--brand-secondary-muted);
}

/* Expanded state = same as hover (clear affordance) */
button.discussion-toggle-replies[aria-expanded="true"] {
  background: var(--brand-secondary-muted);
}

/* Keyboard focus */
button.discussion-toggle-replies:focus {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}


/* =========================================
   Moderator actions (lighter & smaller)
========================================= */

.discussion__actions {
  display: flex;
  gap: 0.6rem;
  align-items: center;
}

/* General action links */

/* 1) Introduce a utility class for link-like actions */
.discussion__actions .action-link 
 {
  font-size: 0.85rem;
  padding: 0;
  background: none;
  border: none;
  color: var(--brand-primary);
  cursor: pointer;
}

/* Moderator-only controls */
.discussion__actions .moderator-action,
.discussion__actions input[type="submit"] {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Hover / focus still clear */
.discussion__actions a:hover,
.discussion__actions button:hover,
.discussion__actions a:focus-visible,
.discussion__actions button:focus-visible {
  text-decoration: underline;
  color: var(--brand-primary);
}


.discussion__form textarea {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.reflection-discussion-layout {
  display: flex;
  flex-direction: row;
  gap: var(--space-5);
}

/* 50/50 columns */
.reflection-column,
.discussion-column {
  flex: 1 1 0;
  min-width: 0; /* prevents overflow */
}


.discussion-column {
  background: color-mix(in srgb, var(--brand-primary) 12%, #ffffff);
  padding: var(--space-4);
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
}


.discussion-side-title {
  margin-top: 0;
  margin-bottom: var(--space-1);
  color: var(--brand-accent);
  font-size: 1.5rem;
}


/* Mobile: stack vertically */
@media (max-width: 900px) {
  .reflection-discussion-layout {
    flex-direction: column;
  }
}


/* Modal backdrop */
.discussion-modal {
    position: fixed;
    inset: 0; /* top/right/bottom/left: 0 */
    background: rgba(0, 0, 0, 0.55);
    display: none;              /* hidden by default */
    align-items: center;        /* vertical centring */
    justify-content: center;    /* horizontal centring */
    z-index: 9999;
}

/* Modal panel */
.discussion-modal__content {
    background: #fff;
    max-width: 420px;
    width: calc(100% - 2rem);
    padding: 1.25rem;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,.3);
}

/* Buttons */
.discussion-modal__actions {
    display: flex;
    justify-content: flex-end;
    gap: .5rem;
    margin-top: 1rem;
}

.discussion-modal .danger {
    background: #c0392b;
    color: #fff;
}


.discussion-more-posts.is-collapsed {
  display: none;
}

.discussion-show-more {
  margin: 1rem 0;
  background: none;
  border: none;
  color: #0073aa;
  cursor: pointer;
  text-decoration: underline;
}


/* =========================
   Nav toggle: desktop hard stop
========================= */

@media (min-width: 900px) {
  .nav-toggle {
    display: none !important;
  }
}


/*==================================
Reflections Library — Mobile-first bookshelf spines
===================================*/
/* Bookshelf container (mobile-first) */
.bookshelf {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;        /* all book bottoms align per row */
  gap: 24px 6px;                /* row-gap column-gap */
  padding: 18px 10px 26px;
  position: relative;

  /* expose gap values as vars so the plank can extend under the gaps */
  --row-gap-y: 24px;            /* must equal the first value in gap */
  --col-gap-x: 6px;             /* must equal the second value in gap */

  /* shelf look */
  --shelf-thickness: 14px;
  --shelf-color: color-mix(in srgb, #b8a48c 24%, white);
}

/* Remove the old repeating background shelves */
.bookshelf::before { content: none !important; }

/* Each book paints a shelf plank just below itself.
   Because all books in a row share the same baseline, the planks
   line up to form one continuous shelf per row. */
.bookshelf .book {
  position: relative;
  z-index: 2; /* keep books above planks */
}

/* The plank: stretches a bit left/right beyond each book to fill the gap */
.bookshelf .book::after {
  content: "";
  position: absolute;
  left: calc(-1 * var(--col-gap-x) / 2);
  right: calc(-1 * var(--col-gap-x) / 2);

  /* place plank a few pixels below the bottom edge so books "sit" on it */
  bottom: calc(-1 * (var(--row-gap-y) / 2) - 6px);

  height: var(--shelf-thickness);
  background: var(--shelf-color);
  border-radius: 2px;
  z-index: -1;
}

.bookshelf--discussion {
  --shelf-color: color-mix(in srgb, var(--brand-secondary-muted, #EEF3E6) 40%, white);
}

.bookshelf--discussion .book {
  box-shadow:
    1px 2px 3px rgba(0,0,0,0.18),
    inset 0 0 4px rgba(0,0,0,0.08);
}

.bookshelf--discussion .book:hover {
  transform: translateY(-3px) rotate(-0.5deg);
}
/* -------------------------------
   Progressive enhancement
-------------------------------- */

/* Tablet */
@media (min-width: 520px) {
  .bookshelf {
    gap: 20px 6px;
    padding: 20px 16px 30px;
    --row-gap-y: 20px;
    --col-gap-x: 8px;
    --shelf-thickness: 14px; /* keep same, tweak if you want beefier shelf */
  }
}

/* Desktop */
@media (min-width: 900px) {
  .bookshelf {
    gap: 20px 6px;
    padding: 24px 24px 40px;
    --row-gap-y: 20px;
    --col-gap-x: 10px;
    --shelf-thickness: 16px; /* a touch thicker looks good on desktop */
  }
}

/* ============================================
   Book spines — simple rounded gradient
   (mobile-first)
=============================================== */

.book {
  /* Mobile defaults */
  --spine-w: 70px;
  --spine-h: 160px;

  /* Base colour — overridden by the rotation below */
  --spine-base: var(--brand-primary-muted);

  width: var(--spine-w);
  height: var(--spine-h);
  border-radius: 6px;

  /* Rounded spine: darker → lighter → darker across the width */
  background:
    linear-gradient(
      to right,
      color-mix(in srgb, var(--spine-base) 85%, black) 0%,
      color-mix(in srgb, var(--spine-base) 100%, white) 18%,
      var(--spine-base) 50%,
      color-mix(in srgb, var(--spine-base) 100%, white) 82%,
      color-mix(in srgb, var(--spine-base) 85%, black) 100%
    );

  /* Subtle depth */
  box-shadow:
    1px 2px 4px rgba(0,0,0,0.22),
    inset 0 0 6px rgba(0,0,0,0.10);

  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  cursor: pointer;

  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}



/* Title set vertically (classic spine) */



/* Title plate inside each book spine */
.book .spine-title {
  writing-mode: vertical-rl;
  transform: rotate(180deg);

  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;

  /* Title plate block */
  background: rgba(255,255,255,0.85);   /* soft, readable white */
  color: var(--text-main);
  padding: 6px 4px;
  border-radius: 2px;
  box-shadow: 0 0 4px rgba(0,0,0,0.25);

  /* Typography */
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  line-height: 1.2;

  /* Limit the height of the title area */
  max-height: calc(var(--spine-h) - 20px);
  overflow: hidden;
}


/* Interaction */
.book:hover {
  transform: translateY(-2px);
  box-shadow: 2px 6px 12px rgba(0,0,0,0.25);
  filter: saturate(1.04);
}
.book:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 3px;
}

/* Keep widths tidy on small screens (optional) */
.bookshelf .book:nth-child(4n+1),
.bookshelf .book:nth-child(4n+2),
.bookshelf .book:nth-child(4n+3),
.bookshelf .book:nth-child(4n+4) {
  --spine-w: 70px;
}


/* ============================================
   Natural height variation (looks random)
   Mobile-first
=============================================== */

.bookshelf .book:nth-child(6n+1) { height: calc(var(--spine-h) * 0.95); } /* slightly shorter */
.bookshelf .book:nth-child(6n+2) { height: calc(var(--spine-h) * 1.05); } /* slightly taller */
.bookshelf .book:nth-child(6n+3) { height: calc(var(--spine-h) * 1.00); } /* normal */
.bookshelf .book:nth-child(6n+4) { height: calc(var(--spine-h) * 0.90); } /* short */
.bookshelf .book:nth-child(6n+5) { height: calc(var(--spine-h) * 1.12); } /* tall */
.bookshelf .book:nth-child(6n+6) { height: calc(var(--spine-h) * 1.02); } /* tiny variation */


/* Brand colour rotation — sets only --spine-base */
.bookshelf .book:nth-child(7n+1)  { --spine-base: var(--brand-primary); }
.bookshelf .book:nth-child(7n+2)  { --spine-base: var(--brand-secondary); }
/*.bookshelf .book:nth-child(8n+3)  { --spine-base: var(--brand-primary-muted); }*/
.bookshelf .book:nth-child(7n+3)  { --spine-base: var(--brand-accent, var(--brand-primary)) ; }
.bookshelf .book:nth-child(7n+4)  { --spine-base: var(--brand-secondary-muted, #EEF3E6); }

.bookshelf .book:nth-child(7n+5)  { --spine-base: color-mix(in srgb, var(--brand-primary) 65%, white); }
.bookshelf .book:nth-child(7n+6)  { --spine-base: color-mix(in srgb, var(--brand-secondary) 65%, white); }
.bookshelf .book:nth-child(7n+7)  { --spine-base: color-mix(in srgb, var(--brand-accent, var(--brand-primary)) 65%, white); }
/*.bookshelf .book:nth-child(12n+9)  { --spine-base: color-mix(in srgb, var(--brand-primary-muted) 80%, white); }
.bookshelf .book:nth-child(12n+10) { --spine-base: color-mix(in srgb, var(--brand-secondary-muted, #EEF3E6) 80%, white); }
.bookshelf .book:nth-child(12n+11) { --spine-base: color-mix(in srgb, var(--brand-primary-muted) 55%, white); }
.bookshelf .book:nth-child(12n+12) { --spine-base: color-mix(in srgb, var(--brand-secondary-muted, #EEF3E6) 55%, white); }*/

.bookshelf--discussion .book:nth-child(7n+1)  { --spine-base: color-mix(in srgb, var(--brand-secondary) 80%, white); }
.bookshelf--discussion .book:nth-child(7n+2)  { --spine-base: var(--brand-accent, var(--brand-primary)); }
.bookshelf--discussion .book:nth-child(7n+3)  { --spine-base: color-mix(in srgb, var(--brand-primary) 50%, white); }
.bookshelf--discussion .book:nth-child(7n+4)  { --spine-base: color-mix(in srgb, var(--brand-secondary) 60%, white); }
.bookshelf--discussion .book:nth-child(7n+5)  { --spine-base: color-mix(in srgb, var(--brand-accent, var(--brand-primary)) 65%, white); }
``

/* Progressive enhancement — size up at wider viewports */
@media (min-width: 520px) {
  .book { --spine-w: 90px; --spine-h: 180px; padding: 8px; }
  .book .spine-title { font-size: 0.85rem; }
  /* Reintroduce variety if you want a more natural shelf */
  .bookshelf { --spine-h: 180px; }
  .bookshelf .book:nth-child(4n+1) { --spine-w: 80px; }
  .bookshelf .book:nth-child(4n+2) { --spine-w: 95px; }
  .bookshelf .book:nth-child(4n+3) { --spine-w: 110px; }
  .bookshelf .book:nth-child(4n+4) { --spine-w: 125px; }
	
	
  .bookshelf .book:nth-child(6n+1) { height: calc(var(--spine-h) * 0.94); }
  .bookshelf .book:nth-child(6n+2) { height: calc(var(--spine-h) * 1.08); }
  .bookshelf .book:nth-child(6n+3) { height: calc(var(--spine-h) * 1.00); }
  .bookshelf .book:nth-child(6n+4) { height: calc(var(--spine-h) * 0.88); }
  .bookshelf .book:nth-child(6n+5) { height: calc(var(--spine-h) * 1.15); }
  .bookshelf .book:nth-child(6n+6) { height: calc(var(--spine-h) * 1.02); }

}

@media (min-width: 900px) {
  .book { --spine-w: 110px; --spine-h: 200px; padding: 10px; }
  .book .spine-title { font-size: 0.9rem; }
  .bookshelf { --spine-h: 200px; }
  .bookshelf .book:nth-child(4n+1) { --spine-w: 90px; }
  .bookshelf .book:nth-child(4n+2) { --spine-w: 110px; }
  .bookshelf .book:nth-child(4n+3) { --spine-w: 130px; }
  .bookshelf .book:nth-child(4n+4) { --spine-w: 100px; }
	

  .bookshelf .book:nth-child(6n+1) { height: calc(var(--spine-h) * 0.92); }
  .bookshelf .book:nth-child(6n+2) { height: calc(var(--spine-h) * 1.10); }
  .bookshelf .book:nth-child(6n+3) { height: calc(var(--spine-h) * 1.00); }
  .bookshelf .book:nth-child(6n+4) { height: calc(var(--spine-h) * 0.87); }
  .bookshelf .book:nth-child(6n+5) { height: calc(var(--spine-h) * 1.18); }
  .bookshelf .book:nth-child(6n+6) { height: calc(var(--spine-h) * 1.03); }

}

/* ---- Modal (robust across mobile & desktop) ---- */

#reflectionModal {
  display: none;          /* hidden by default */
  margin-top: 20px;
}

#modalContent {
  background: #fff;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 18px;
  max-width: 800px;
  margin: 0 auto 40px auto;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.modal-close {
  float: right;
  cursor: pointer;
  font-size: 24px;
  color: var(--text-muted);
}
.modal-close:hover {
  color: var(--text-main);
}

/* Optional: keep text tidy inside */
#modalBody {
  margin-top: 10px;
  max-width: 100%;
}
