/* ========================================================================== 
   TABOR MOODLE COURSE SKINS
   Temporary host: https://nathanholmes.com/moodle-assets/
   Release: 2026.08.24.1

   Loaded from Moodle Additional HTML > Within HEAD.

   Contents
   1. Student Digital Help / course 2757 — populated
   2. Cogniti / course 6182 — paste current BODY <style> contents into marker
   3. H5P / course 6188 — paste current BODY <style> contents into marker

   IMPORTANT
   - Keep course first-paint/critical HEAD blocks in Moodle.
   - Keep course JavaScript in Additional HTML > Before BODY is closed for now.
   - Do not paste this file into Moodle Additional SCSS.
   ========================================================================== */

/* ========================================================================== 
   1. STUDENT DIGITAL HELP — COURSE 2757
   External visual layer matched to the approved v34 class structure.
   The current v34 application JavaScript remains in Moodle.
   ========================================================================== */

/* STUDENT DIGITAL HELP CSS START — course 2757 */

/* Fallback assets. The existing v34 HEAD block may set these variables inline
   on <html>; an inline value takes precedence and therefore preserves the
   currently approved image data during the first migration. */
html {
  --sdhc-topography-home:
    url("../assets/digital-help/topography-home@2x.png");
  --sdhc-topography-article:
    url("../assets/digital-help/topography-article@2x.png");
}

body.sdhc-active,
body.sdhc-reader-active {
  --sdhc-page: #f6f4f8;
  --sdhc-panel: #ffffff;
  --sdhc-panel-soft: #faf9fb;
  --sdhc-text: #20232b;
  --sdhc-muted: #6b7381;
  --sdhc-faint: #9299a5;
  --sdhc-line: #dedbe4;
  --sdhc-line-strong: #cbc5d3;
  --sdhc-plum: #652580;
  --sdhc-plum-strong: #512166;
  --sdhc-plum-soft: #f3edf6;
  --sdhc-navy: #263760;
  --sdhc-blue: #456f98;
  --sdhc-teal: #3f786f;
  --sdhc-rose: #91596d;
  --sdhc-gold: #9a6a28;
  --sdhc-focus: rgba(112, 55, 139, 0.24);
  --sdhc-shadow-1:
    0 7px 18px rgba(34, 27, 42, 0.055),
    0 1px 2px rgba(34, 27, 42, 0.045);
  --sdhc-shadow-2:
    0 14px 30px rgba(34, 27, 42, 0.09),
    0 3px 7px rgba(34, 27, 42, 0.05);
  --sdhc-shadow-panel: 0 12px 34px rgba(34, 27, 42, 0.055);
  --sdhc-radius-lg: 22px;
  --sdhc-radius-md: 16px;
  --sdhc-radius-sm: 12px;
  --sdhc-brand-start: #722a8b;
  --sdhc-brand-account: #2f568b;
  --sdhc-brand-study: #38776f;
  --sdhc-brand-communication: #8c5267;
  --sdhc-brand-apps: #3f729c;
  --sdhc-brand-forms: #786f82;
  color: var(--sdhc-text);
  background: var(--sdhc-page);
  overflow-y: auto !important;
  scrollbar-gutter: stable;
}

/* Theatre intentionally uses the ordinary light Digital Help treatment. */
html[data-site-mode-dark="true"] body.sdhc-active,
html[data-site-mode-dark="true"] body.sdhc-reader-active,
html[data-bs-theme="dark"] body.sdhc-active,
html[data-bs-theme="dark"] body.sdhc-reader-active {
  --sdhc-page: #10151c;
  --sdhc-panel: #171d26;
  --sdhc-panel-soft: #1b222d;
  --sdhc-text: #f2f3f6;
  --sdhc-muted: #aeb6c2;
  --sdhc-faint: #8792a0;
  --sdhc-line: #303846;
  --sdhc-line-strong: #414b5b;
  --sdhc-plum: #c29bd4;
  --sdhc-plum-strong: #d3b7df;
  --sdhc-plum-soft: #282031;
  --sdhc-navy: #91a7cf;
  --sdhc-blue: #83a6c8;
  --sdhc-teal: #82b6ad;
  --sdhc-rose: #c08ca0;
  --sdhc-gold: #d0ab70;
  --sdhc-focus: rgba(194, 155, 212, 0.28);
  --sdhc-shadow-1: 0 10px 24px rgba(0, 0, 0, 0.18);
  --sdhc-shadow-2: 0 18px 38px rgba(0, 0, 0, 0.26);
  --sdhc-shadow-panel: 0 16px 40px rgba(0, 0, 0, 0.2);
}

/* Keep Moodle readable if the custom runtime does not activate. These rules
   apply only after the v34 application adds an active class to <body>. */
body.sdhc-active,
body.sdhc-reader-active,
body.sdhc-active #page-wrapper,
body.sdhc-reader-active #page-wrapper,
body.sdhc-active #page,
body.sdhc-reader-active #page {
  background: var(--sdhc-page) !important;
}

body.sdhc-active #page-header,
body.sdhc-reader-active #page-header,
body.sdhc-active #page-content,
body.sdhc-reader-active #page-content,
body.sdhc-active .secondary-navigation,
body.sdhc-reader-active .secondary-navigation,
body.sdhc-active #theme_boost-drawers-courseindex,
body.sdhc-reader-active #theme_boost-drawers-courseindex,
body.sdhc-active #theme_boost-drawers-blocks,
body.sdhc-reader-active #theme_boost-drawers-blocks,
body.sdhc-active .drawer-toggles,
body.sdhc-reader-active .drawer-toggles {
  display: none !important;
}

body.sdhc-active #page,
body.sdhc-reader-active #page,
body.sdhc-active #page.drawers,
body.sdhc-reader-active #page.drawers,
body.sdhc-active #page.show-drawer-left,
body.sdhc-reader-active #page.show-drawer-left,
body.sdhc-active #page.show-drawer-right,
body.sdhc-reader-active #page.show-drawer-right {
  width: 100% !important;
  max-width: none !important;
  min-height: calc(100vh - 70px) !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
  background: var(--sdhc-page) !important;
  transition: none !important;
}

body.sdhc-active .main-inner-wrapper,
body.sdhc-reader-active .main-inner-wrapper,
body.sdhc-active .main-inner,
body.sdhc-reader-active .main-inner,
body.sdhc-active #topofscroll,
body.sdhc-reader-active #topofscroll {
  position: relative;
  z-index: 1;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
  background: transparent !important;
}

body.sdhc-active .navbar.fixed-top,
body.sdhc-reader-active .navbar.fixed-top {
  visibility: visible !important;
  opacity: 1 !important;
  box-shadow: none !important;
}

body.sdhc-active #page-footer,
body.sdhc-reader-active #page-footer {
  background: var(--sdhc-page) !important;
}

body.sdhc-active #footnote,
body.sdhc-reader-active #footnote {
  max-width: 1660px;
  margin-inline: auto;
  padding-inline: 1.4rem;
  border-color: var(--sdhc-line) !important;
  background: transparent !important;
  color: var(--sdhc-muted) !important;
}

body.sdhc-active .btn-footer-popover,
body.sdhc-reader-active .btn-footer-popover {
  border: 1px solid var(--sdhc-line-strong) !important;
  background: var(--sdhc-panel) !important;
  color: var(--sdhc-text) !important;
  box-shadow: var(--sdhc-shadow-1) !important;
}

html[data-site-mode-dark="true"] body.sdhc-active .btn-footer-popover,
html[data-site-mode-dark="true"] body.sdhc-reader-active .btn-footer-popover,
html[data-bs-theme="dark"] body.sdhc-active .btn-footer-popover,
html[data-bs-theme="dark"] body.sdhc-reader-active .btn-footer-popover {
  border-color: var(--sdhc-line-strong) !important;
  background: #171d26 !important;
  color: #f2f3f6 !important;
}

/* Shared application shell. */
#sdhc-portal,
#sdhc-article-shell {
  box-sizing: border-box;
  width: min(calc(100% - 2.25rem), 1660px);
  margin: 0 auto;
  padding: clamp(1.25rem, 2.2vw, 1.9rem) 0 4rem;
  color: var(--sdhc-text);
  font-family: Jost, "Helvetica Neue", Arial, sans-serif;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

#sdhc-portal *,
#sdhc-portal *::before,
#sdhc-portal *::after,
#sdhc-article-shell *,
#sdhc-article-shell *::before,
#sdhc-article-shell *::after {
  box-sizing: border-box;
}

html.sdhc-v34-no-motion #sdhc-portal,
html.sdhc-v34-no-motion #sdhc-portal *,
html.sdhc-v34-no-motion #sdhc-portal *::before,
html.sdhc-v34-no-motion #sdhc-portal *::after,
html.sdhc-v34-no-motion #sdhc-article-shell,
html.sdhc-v34-no-motion #sdhc-article-shell *,
html.sdhc-v34-no-motion #sdhc-article-shell *::before,
html.sdhc-v34-no-motion #sdhc-article-shell *::after {
  transition: none !important;
  animation: none !important;
  scroll-behavior: auto !important;
}

[data-sdhc-v34-pending-shell="true"] {
  visibility: hidden !important;
}

#sdhc-portal a,
#sdhc-article-shell a {
  color: inherit;
  text-decoration: none;
}

#sdhc-portal :is(a, button, input):focus-visible,
#sdhc-article-shell :is(a, button, input):focus-visible {
  outline: 3px solid var(--sdhc-focus);
  outline-offset: 3px;
}

.sdhc-section {
  position: relative;
  margin-top: clamp(1.9rem, 3vw, 2.6rem);
}

.sdhc-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 0 0.9rem;
}

.sdhc-section-head h2,
.sdhc-support-panel h2 {
  margin: 0;
  color: var(--sdhc-text);
  font-size: clamp(1.45rem, 1.65vw, 1.72rem);
  font-weight: 560;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

/* --------------------------------------------------------------------------
   Digital Help homepage hero
   -------------------------------------------------------------------------- */

.sdhc-hero {
  position: relative;
  z-index: 4;
  min-height: clamp(278px, 24vw, 336px);
  display: flex;
  align-items: center;
  overflow: visible;
  padding: clamp(2.45rem, 4vw, 4.35rem);
  border-radius: var(--sdhc-radius-lg);
  isolation: isolate;
}

.sdhc-hero-surface {
  position: absolute;
  z-index: -2;
  inset: 0;
  overflow: hidden;
  border: 1px solid var(--sdhc-line-strong);
  border-radius: inherit;
  background: var(--sdhc-panel);
  box-shadow: var(--sdhc-shadow-panel);
}

.sdhc-hero-surface::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--sdhc-plum) 1.8%, transparent),
    transparent 48%
  );
}

.sdhc-hero-art,
.sdhc-reader-art {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  image-rendering: auto;
}

.sdhc-hero-art {
  width: clamp(760px, 58vw, 1060px);
  background-image: var(--sdhc-topography-home);
  opacity: 0.92;
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0%,
    rgba(0, 0, 0, 0.05) 7%,
    rgba(0, 0, 0, 0.38) 24%,
    #000 48%,
    #000 100%
  );
  mask-image: linear-gradient(
    90deg,
    transparent 0%,
    rgba(0, 0, 0, 0.05) 7%,
    rgba(0, 0, 0, 0.38) 24%,
    #000 48%,
    #000 100%
  );
}

html[data-site-mode-dark="true"] .sdhc-hero-art,
html[data-site-mode-dark="true"] .sdhc-reader-art,
html[data-bs-theme="dark"] .sdhc-hero-art,
html[data-bs-theme="dark"] .sdhc-reader-art {
  opacity: 0.66;
  filter: brightness(1.36) saturate(0.78);
  mix-blend-mode: screen;
}

.sdhc-hero-content,
.sdhc-hero-copy-wrap {
  position: relative;
  z-index: 2;
  width: min(68%, 1080px);
  min-width: 0;
}

.sdhc-hero h1 {
  max-width: 850px;
  margin: 0;
  color: var(--sdhc-text);
  font-size: clamp(3.45rem, 5.25vw, 5.65rem);
  font-weight: 430;
  line-height: 0.94;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

.sdhc-hero-copy {
  max-width: 680px;
  margin: 0.8rem 0 0;
  color: var(--sdhc-muted);
  font-size: 1rem;
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   Search
   -------------------------------------------------------------------------- */

.sdhc-search-wrap {
  position: relative;
  z-index: 20;
  width: min(100%, 1020px);
  margin-top: clamp(1.65rem, 2.6vw, 2.35rem);
}

.sdhc-search-box {
  position: relative;
  z-index: 2;
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  padding: 0 1rem 0 1.25rem;
  border: 1px solid var(--sdhc-line-strong);
  border-radius: 15px;
  background: var(--sdhc-panel);
  color: var(--sdhc-muted);
  box-shadow: 0 8px 22px rgba(37, 29, 45, 0.045);
  transition:
    border-color 150ms ease,
    box-shadow 150ms ease,
    background-color 150ms ease;
}

.sdhc-search-box:focus-within {
  border-color: color-mix(in srgb, var(--sdhc-plum) 58%, var(--sdhc-line));
  box-shadow:
    0 0 0 4px color-mix(in srgb, var(--sdhc-plum) 11%, transparent),
    0 10px 26px rgba(37, 29, 45, 0.07);
}

.sdhc-search-icon {
  width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
  flex: 0 0 23px;
  color: var(--sdhc-plum);
}

.sdhc-search-icon svg,
.sdhc-search-box > svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sdhc-search-input {
  min-width: 0;
  width: 100%;
  height: 68px;
  padding: 0;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--sdhc-text) !important;
  font: inherit;
  font-size: 1.04rem;
  line-height: 1;
  outline: 0 !important;
}

.sdhc-search-input::placeholder {
  color: var(--sdhc-faint);
  opacity: 1;
}

.sdhc-search-input::-webkit-search-cancel-button,
.sdhc-search-input::-webkit-search-decoration,
.sdhc-search-input::-webkit-search-results-button,
.sdhc-search-input::-webkit-search-results-decoration {
  display: none;
  -webkit-appearance: none;
  appearance: none;
}

.sdhc-search-shortcut {
  min-width: 38px;
  height: 40px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  padding: 0 0.55rem;
  border: 1px solid var(--sdhc-line);
  border-radius: 10px;
  background: var(--sdhc-panel-soft);
  color: var(--sdhc-muted);
  box-shadow: 0 1px 2px rgba(34, 27, 42, 0.035);
  font: inherit;
  font-size: 0.92rem;
}

.sdhc-search-clear {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  flex: 0 0 40px;
  margin-left: auto;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--sdhc-muted);
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 130ms ease,
    color 130ms ease,
    background-color 130ms ease;
}

.sdhc-search-clear.is-visible,
.sdhc-search-wrap.has-query .sdhc-search-clear {
  opacity: 1;
  pointer-events: auto;
}

.sdhc-search-clear:hover {
  background: var(--sdhc-panel-soft);
  color: var(--sdhc-text);
}

.sdhc-search-clear svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.sdhc-search-results {
  position: absolute;
  z-index: 300;
  top: calc(100% + 0.45rem);
  left: 0;
  right: 0;
  max-height: min(470px, 58vh);
  overflow: hidden auto;
  padding: 0.42rem;
  border: 1px solid var(--sdhc-line-strong);
  border-radius: 15px;
  background: var(--sdhc-panel);
  box-shadow: 0 22px 48px rgba(26, 21, 32, 0.15);
  color: var(--sdhc-text);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-5px);
  transition:
    opacity 145ms ease,
    transform 145ms ease,
    visibility 0s linear 145ms;
}

.sdhc-search-results.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition-delay: 0s;
}

.sdhc-search-result {
  min-height: 72px;
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) 24px;
  align-items: center;
  gap: 0.95rem;
  padding: 0.78rem 0.9rem;
  border-radius: 11px;
  color: var(--sdhc-text) !important;
  transition:
    background-color 125ms ease,
    color 125ms ease;
}

.sdhc-search-result:hover,
.sdhc-search-result.is-active,
.sdhc-search-result[aria-selected="true"] {
  background: var(--sdhc-panel-soft);
}

.sdhc-result-marker {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--result-accent, var(--sdhc-plum));
}

.sdhc-result-copy {
  min-width: 0;
  display: grid;
  gap: 0.18rem;
}

.sdhc-result-title {
  overflow: hidden;
  color: var(--sdhc-text);
  font-size: 0.99rem;
  font-weight: 590;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sdhc-result-topic {
  overflow: hidden;
  color: var(--sdhc-muted);
  font-size: 0.84rem;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sdhc-result-arrow,
.sdhc-link-arrow,
.sdhc-article-arrow,
.sdhc-topic-open,
.sdhc-topic-top-arrow {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  justify-self: end;
  color: var(--sdhc-muted);
  transition:
    transform 145ms ease,
    color 145ms ease,
    opacity 145ms ease;
}

.sdhc-result-arrow svg,
.sdhc-link-arrow svg,
.sdhc-article-arrow svg,
.sdhc-topic-open svg,
.sdhc-topic-top-arrow svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sdhc-search-result:hover .sdhc-result-arrow,
.sdhc-search-result.is-active .sdhc-result-arrow {
  color: var(--sdhc-text);
  transform: translateX(1px);
}

.sdhc-search-empty {
  padding: 1rem;
  color: var(--sdhc-muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

/* --------------------------------------------------------------------------
   Popular help
   -------------------------------------------------------------------------- */

.sdhc-popular-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px 16px;
}

.sdhc-popular-link {
  position: relative;
  min-width: 0;
  min-height: 94px;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 1.05rem;
  overflow: hidden;
  padding: 1rem 1.25rem 1rem 1.15rem;
  border: 1px solid var(--sdhc-line);
  border-radius: 15px;
  background: var(--sdhc-panel);
  color: var(--sdhc-text) !important;
  box-shadow: var(--sdhc-shadow-1);
  transition:
    transform 145ms ease,
    border-color 145ms ease,
    box-shadow 145ms ease,
    background-color 145ms ease;
}

.sdhc-popular-link::before {
  content: "";
  position: absolute;
  inset: 20% auto 20% 0;
  width: 3px;
  border-radius: 0 999px 999px 0;
  background: var(--item-accent, var(--sdhc-plum));
  opacity: 0.9;
}

.sdhc-popular-link:hover {
  transform: translateY(-1px);
  border-color: var(--sdhc-line-strong);
  background: color-mix(in srgb, var(--sdhc-panel) 96%, var(--item-accent, var(--sdhc-plum)) 4%);
  box-shadow: var(--sdhc-shadow-2);
}

.sdhc-popular-link:active {
  transform: translateY(0);
}

.sdhc-popular-icon,
.sdhc-topic-icon,
.sdhc-article-icon,
.sdhc-reader-icon {
  display: grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, currentColor 22%, var(--sdhc-line));
  background: color-mix(in srgb, currentColor 6%, var(--sdhc-panel));
  color: var(--item-accent, var(--topic-accent, var(--sdhc-plum)));
}

.sdhc-popular-icon {
  width: 50px;
  height: 50px;
  border-radius: 13px;
}

.sdhc-popular-icon svg,
.sdhc-topic-icon svg,
.sdhc-article-icon svg,
.sdhc-reader-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sdhc-popular-title {
  min-width: 0;
  color: var(--sdhc-text);
  font-size: 1rem;
  font-weight: 590;
  line-height: 1.28;
}

.sdhc-popular-link:hover .sdhc-link-arrow {
  color: var(--sdhc-text);
  transform: translateX(1px);
}

/* --------------------------------------------------------------------------
   Homepage topic cards
   -------------------------------------------------------------------------- */

.sdhc-topic-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.sdhc-topic-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--sdhc-line);
  border-radius: 16px;
  background: var(--sdhc-panel);
  box-shadow: var(--sdhc-shadow-1);
  transition:
    transform 145ms ease,
    border-color 145ms ease,
    box-shadow 145ms ease;
}

.sdhc-topic-card:hover {
  transform: translateY(-1px);
  border-color: var(--sdhc-line-strong);
  box-shadow: var(--sdhc-shadow-2);
}

.sdhc-topic-top {
  position: relative;
  min-height: 112px;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) 22px;
  align-items: center;
  gap: 1.05rem;
  padding: 1.25rem 1.3rem;
  color: var(--sdhc-text) !important;
}

.sdhc-topic-top::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: var(--topic-accent, var(--sdhc-plum));
  opacity: 0.88;
}

.sdhc-topic-icon {
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  border-radius: 14px;
  color: var(--topic-accent, var(--sdhc-plum));
}

.sdhc-topic-title {
  min-width: 0;
  margin: 0;
  color: var(--sdhc-text);
  font-size: clamp(1.18rem, 1.55vw, 1.45rem);
  font-weight: 590;
  line-height: 1.18;
  letter-spacing: -0.025em;
}

.sdhc-topic-top:hover .sdhc-topic-open,
.sdhc-topic-top:hover .sdhc-topic-top-arrow {
  color: var(--sdhc-text);
  transform: translateX(1px);
}

.sdhc-topic-links {
  margin: 0;
  padding: 0 1.15rem 1.05rem;
  list-style: none;
}

.sdhc-topic-links li + li {
  border-top: 1px solid var(--sdhc-line);
}

.sdhc-topic-links a {
  min-height: 50px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 18px;
  align-items: center;
  gap: 0.8rem;
  padding: 0.72rem 0.45rem;
  border-radius: 9px;
  color: var(--sdhc-muted) !important;
  font-size: 0.93rem;
  line-height: 1.3;
  transition:
    background-color 125ms ease,
    color 125ms ease;
}

.sdhc-topic-links a:hover {
  background: var(--sdhc-panel-soft);
  color: var(--sdhc-text) !important;
}

.sdhc-topic-links a svg {
  width: 16px;
  height: 16px;
  justify-self: end;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.72;
  transition: transform 125ms ease;
}

.sdhc-topic-links a:hover svg {
  transform: translateX(1px);
}

.sdhc-topic-all {
  font-weight: 540;
}

/* --------------------------------------------------------------------------
   Support actions — four equal actions at desktop
   -------------------------------------------------------------------------- */

.sdhc-support-panel {
  position: relative;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--sdhc-line);
  border-radius: 16px;
  background: var(--sdhc-panel);
  box-shadow: var(--sdhc-shadow-1);
}

.sdhc-support-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 12px;
}

.sdhc-support-actions > a,
.sdhc-support-primary,
.sdhc-support-secondary-link,
.sdhc-support-link {
  min-width: 0;
  min-height: 78px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 0.75rem;
  padding: 0.95rem 1rem;
  border: 1px solid var(--sdhc-line);
  border-radius: 13px;
  background: var(--sdhc-panel);
  color: var(--sdhc-text) !important;
  font-size: 0.94rem;
  font-weight: 570;
  line-height: 1.28;
  transition:
    transform 145ms ease,
    border-color 145ms ease,
    background-color 145ms ease,
    box-shadow 145ms ease;
}

.sdhc-support-actions > a:first-child,
.sdhc-support-primary,
.sdhc-support-link.is-primary {
  border-color: var(--sdhc-plum-strong);
  background: var(--sdhc-plum-strong);
  color: #ffffff !important;
  box-shadow: 0 8px 18px rgba(81, 33, 102, 0.14);
}

.sdhc-support-actions > a:hover,
.sdhc-support-primary:hover,
.sdhc-support-secondary-link:hover,
.sdhc-support-link:hover {
  transform: translateY(-1px);
  border-color: var(--sdhc-line-strong);
  box-shadow: var(--sdhc-shadow-1);
}

.sdhc-support-actions > a:first-child:hover,
.sdhc-support-primary:hover,
.sdhc-support-link.is-primary:hover {
  border-color: var(--sdhc-plum);
  background: var(--sdhc-plum);
  box-shadow: 0 12px 24px rgba(81, 33, 102, 0.2);
}

.sdhc-support-actions :is(svg),
.sdhc-support-primary :is(svg),
.sdhc-support-secondary-link :is(svg),
.sdhc-support-link :is(svg) {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Compatibility with the compact support component used under articles. */
.sdhc-reader-support {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.8rem;
  margin-top: 1.35rem;
  padding: 1rem 1.15rem;
  border: 1px solid var(--sdhc-line);
  border-radius: 14px;
  background: var(--sdhc-panel);
  box-shadow: var(--sdhc-shadow-1);
  color: var(--sdhc-text);
}

.sdhc-reader-support > svg,
.sdhc-reader-support > span:first-child {
  color: var(--sdhc-plum);
}

.sdhc-reader-support a {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0 1rem;
  border: 1px solid var(--sdhc-line-strong);
  border-radius: 11px;
  background: var(--sdhc-panel);
  color: var(--sdhc-plum-strong) !important;
  font-weight: 580;
}

.sdhc-reader-support a:hover {
  border-color: var(--sdhc-plum);
  background: var(--sdhc-plum-soft);
}

/* --------------------------------------------------------------------------
   Topic directory page
   -------------------------------------------------------------------------- */

.sdhc-topic-toolbar,
.sdhc-reader-toolbar {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 0.15rem 1rem;
  color: var(--sdhc-muted);
  font-size: 0.91rem;
}

.sdhc-reader-toolbar-left,
.sdhc-reader-toolbar-right,
.sdhc-reader-back,
.sdhc-reader-topic,
.sdhc-reader-search-link,
.sdhc-topic-back {
  display: flex;
  align-items: center;
}

.sdhc-reader-toolbar-left {
  min-width: 0;
  gap: 0.65rem;
}

.sdhc-reader-toolbar-right,
.sdhc-reader-back,
.sdhc-reader-topic,
.sdhc-reader-search-link,
.sdhc-topic-back {
  gap: 0.4rem;
}

.sdhc-reader-back,
.sdhc-reader-topic,
.sdhc-reader-search-link,
.sdhc-topic-back {
  padding: 0.35rem 0.45rem;
  border-radius: 8px;
  color: var(--sdhc-muted) !important;
}

.sdhc-reader-toolbar a:hover,
.sdhc-topic-toolbar a:hover {
  background: var(--sdhc-panel-soft);
  color: var(--sdhc-text) !important;
}

.sdhc-reader-divider {
  width: 1px;
  height: 20px;
  background: var(--sdhc-line-strong);
}

.sdhc-reader-topic {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sdhc-reader-toolbar svg,
.sdhc-topic-toolbar svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sdhc-topic-header {
  min-height: 142px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.72fr);
  align-items: center;
  gap: clamp(1.5rem, 3vw, 3.25rem);
  padding: clamp(1.4rem, 2.3vw, 2rem);
  border: 1px solid var(--sdhc-line-strong);
  border-radius: 16px;
  background: var(--sdhc-panel);
  box-shadow: var(--sdhc-shadow-1);
}

.sdhc-topic-heading {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 1.05rem;
}

.sdhc-topic-heading .sdhc-topic-icon {
  width: 56px;
  height: 56px;
  flex: 0 0 56px;
  border-radius: 13px;
}

.sdhc-topic-heading h1,
.sdhc-topic-heading .sdhc-topic-title {
  margin: 0;
  color: var(--sdhc-text);
  font-size: clamp(2.05rem, 3.15vw, 3.25rem);
  font-weight: 445;
  line-height: 1.02;
  letter-spacing: -0.048em;
  text-wrap: balance;
}

.sdhc-topic-header .sdhc-search-wrap {
  width: 100%;
  margin: 0;
}

.sdhc-topic-header .sdhc-search-box {
  min-height: 64px;
}

.sdhc-topic-header .sdhc-search-input {
  height: 60px;
}

.sdhc-topic-directory,
.sdhc-article-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 14px;
  margin-top: 1.05rem;
}

.sdhc-article-link {
  min-width: 0;
  min-height: 82px;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 0.9rem;
  padding: 0.95rem 1.05rem;
  border: 1px solid var(--sdhc-line);
  border-radius: 13px;
  background: var(--sdhc-panel);
  color: var(--sdhc-text) !important;
  box-shadow: var(--sdhc-shadow-1);
  transition:
    transform 145ms ease,
    border-color 145ms ease,
    background-color 145ms ease,
    box-shadow 145ms ease;
}

.sdhc-article-link:hover {
  transform: translateY(-1px);
  border-color: var(--sdhc-line-strong);
  background: var(--sdhc-panel-soft);
  box-shadow: var(--sdhc-shadow-2);
}

.sdhc-article-icon {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 11px;
  background: color-mix(in srgb, var(--topic-accent, var(--sdhc-plum)) 7%, var(--sdhc-panel));
  color: var(--topic-accent, var(--sdhc-plum));
}

.sdhc-article-icon svg {
  width: 19px;
  height: 19px;
}

.sdhc-article-title {
  min-width: 0;
  color: var(--sdhc-text);
  font-size: 0.98rem;
  font-weight: 570;
  line-height: 1.3;
}

.sdhc-article-link:hover .sdhc-article-arrow {
  color: var(--sdhc-text);
  transform: translateX(1px);
}

.sdhc-article-link.is-unavailable {
  opacity: 0.58;
  box-shadow: none;
  cursor: default;
}

.sdhc-article-link.is-unavailable:hover {
  transform: none;
  border-color: var(--sdhc-line);
  background: var(--sdhc-panel);
  box-shadow: none;
}

.sdhc-topic-empty {
  grid-column: 1 / -1;
  padding: 2.2rem;
  border: 1px solid var(--sdhc-line);
  border-radius: 14px;
  background: var(--sdhc-panel);
  color: var(--sdhc-muted);
  text-align: center;
}

.sdhc-topic-support {
  margin-top: 1.7rem;
}

/* --------------------------------------------------------------------------
   Article reader
   -------------------------------------------------------------------------- */

#sdhc-article-shell {
  padding-top: 1.35rem;
}

.sdhc-reader-header {
  position: relative;
  min-height: clamp(168px, 17vw, 224px);
  display: flex;
  align-items: center;
  gap: clamp(1.15rem, 2.2vw, 2rem);
  overflow: hidden;
  padding: clamp(1.75rem, 3.4vw, 3.3rem);
  border: 1px solid var(--sdhc-line-strong);
  border-radius: var(--sdhc-radius-lg);
  background: var(--sdhc-panel);
  box-shadow: var(--sdhc-shadow-panel);
  isolation: isolate;
}

.sdhc-reader-art {
  z-index: -1;
  width: clamp(480px, 42vw, 760px);
  background-image: var(--sdhc-topography-article);
  opacity: 0.88;
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0%,
    rgba(0, 0, 0, 0.12) 15%,
    #000 43%,
    #000 100%
  );
  mask-image: linear-gradient(
    90deg,
    transparent 0%,
    rgba(0, 0, 0, 0.12) 15%,
    #000 43%,
    #000 100%
  );
}

.sdhc-reader-icon {
  position: relative;
  z-index: 2;
  width: 70px;
  height: 70px;
  flex: 0 0 70px;
  border-radius: 17px;
  color: var(--sdhc-reader-accent, var(--topic-accent, var(--sdhc-plum)));
}

.sdhc-reader-icon svg {
  width: 31px;
  height: 31px;
}

.sdhc-reader-heading {
  position: relative;
  z-index: 2;
  min-width: 0;
  max-width: min(73%, 1120px);
}

.sdhc-reader-heading h1 {
  margin: 0;
  color: var(--sdhc-text);
  font-size: clamp(2.45rem, 4.45vw, 5.15rem);
  font-weight: 430;
  line-height: 0.99;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

.sdhc-reader-header.is-long .sdhc-reader-heading h1 {
  font-size: clamp(2.28rem, 3.72vw, 4.35rem);
  line-height: 1;
}

.sdhc-reader-header.is-very-long .sdhc-reader-heading {
  max-width: min(70%, 1040px);
}

.sdhc-reader-header.is-very-long .sdhc-reader-heading h1 {
  font-size: clamp(2.08rem, 3.18vw, 3.72rem);
  line-height: 1.02;
  letter-spacing: -0.048em;
}

.sdhc-reader-card {
  width: min(100%, 1220px);
  margin: 1.2rem auto 0;
  padding: clamp(2rem, 3.7vw, 3.35rem);
  border: 1px solid var(--sdhc-line);
  border-radius: 16px;
  background: var(--sdhc-panel);
  box-shadow: var(--sdhc-shadow-1);
  color: var(--sdhc-text);
}

#sdhc-reader-content {
  color: var(--sdhc-text);
  font-size: 1rem;
  line-height: 1.65;
}

#sdhc-reader-content > :first-child {
  margin-top: 0 !important;
}

#sdhc-reader-content > :last-child {
  margin-bottom: 0 !important;
}

#sdhc-reader-content > .box,
#sdhc-reader-content > .generalbox,
#sdhc-reader-content > .no-overflow {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible !important;
}

#sdhc-reader-content h1,
#sdhc-reader-content h2,
#sdhc-reader-content h3,
#sdhc-reader-content h4,
#sdhc-reader-content h5,
#sdhc-reader-content h6 {
  margin: 2.15rem 0 0.8rem;
  color: var(--sdhc-text) !important;
  font-family: inherit !important;
  font-weight: 620;
  line-height: 1.22;
  letter-spacing: -0.02em;
  text-transform: none;
}

#sdhc-reader-content h2 {
  font-size: 1.55rem;
}

#sdhc-reader-content h3 {
  font-size: 1.25rem;
}

#sdhc-reader-content h4,
#sdhc-reader-content h5,
#sdhc-reader-content h6 {
  font-size: 1.08rem;
}

#sdhc-reader-content p,
#sdhc-reader-content li,
#sdhc-reader-content div,
#sdhc-reader-content span {
  font-family: inherit !important;
}

#sdhc-reader-content p {
  margin: 0 0 1.05rem;
}

#sdhc-reader-content ul,
#sdhc-reader-content ol {
  margin: 0.7rem 0 1.25rem;
  padding-left: 1.45rem;
}

#sdhc-reader-content li + li {
  margin-top: 0.42rem;
}

#sdhc-reader-content :where(
  p,
  ul,
  ol,
  blockquote,
  h1,
  h2,
  h3,
  h4,
  h5,
  h6,
  .sdhc-notice
) {
  max-width: 82ch;
}

#sdhc-reader-content .sdhc-media-row,
#sdhc-reader-content .sdhc-table-scroll {
  max-width: none;
}

#sdhc-reader-content a {
  color: var(--sdhc-plum-strong) !important;
  font-weight: 590;
  text-decoration: underline;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.16em;
}

#sdhc-reader-content a:hover {
  color: var(--sdhc-plum) !important;
}

#sdhc-reader-content strong,
#sdhc-reader-content b {
  color: var(--sdhc-text);
  font-weight: 650;
}

#sdhc-reader-content em,
#sdhc-reader-content i {
  color: color-mix(in srgb, var(--sdhc-text) 88%, var(--sdhc-muted));
}

#sdhc-reader-content img {
  max-width: 100% !important;
  height: auto !important;
  display: block;
  margin: 1.25rem auto 1.7rem !important;
  border: 1px solid var(--sdhc-line);
  border-radius: 12px;
  background: #ffffff;
}

#sdhc-reader-content iframe,
#sdhc-reader-content video {
  max-width: 100% !important;
  border-radius: 12px;
}

#sdhc-reader-content table {
  width: 100% !important;
  border-collapse: collapse;
}

#sdhc-reader-content th,
#sdhc-reader-content td {
  padding: 0.7rem;
  border: 1px solid var(--sdhc-line);
  vertical-align: top;
}

#sdhc-reader-content th {
  background: var(--sdhc-panel-soft);
  color: var(--sdhc-text);
  font-weight: 620;
}

#sdhc-reader-content blockquote,
#sdhc-reader-content .sdhc-notice,
#sdhc-reader-content .alert,
#sdhc-reader-content .box.generalbox {
  margin: 1.35rem 0;
  padding: 1rem 1.15rem;
  border: 0;
  border-left: 3px solid var(--sdhc-plum);
  border-radius: 0 12px 12px 0;
  background: var(--sdhc-plum-soft);
  color: var(--sdhc-text);
}

#sdhc-reader-content hr {
  margin: 2rem 0;
  border: 0;
  border-top: 1px solid var(--sdhc-line);
}

.sdhc-related {
  width: min(100%, 1220px);
  margin: 1.2rem auto 0;
  padding: 1.2rem;
  border: 1px solid var(--sdhc-line);
  border-radius: 16px;
  background: var(--sdhc-panel);
  box-shadow: var(--sdhc-shadow-1);
}

.sdhc-related h2 {
  margin: 0 0 0.85rem;
  color: var(--sdhc-text);
  font-size: 1.3rem;
  font-weight: 590;
}

.sdhc-related-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.sdhc-related-link {
  min-height: 62px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 18px;
  align-items: center;
  gap: 0.7rem;
  padding: 0.85rem 0.95rem;
  border: 1px solid var(--sdhc-line);
  border-radius: 11px;
  background: var(--sdhc-panel-soft);
  color: var(--sdhc-text) !important;
  font-size: 0.94rem;
  font-weight: 560;
  transition:
    border-color 135ms ease,
    background-color 135ms ease,
    transform 135ms ease;
}

.sdhc-related-link:hover {
  transform: translateY(-1px);
  border-color: var(--sdhc-line-strong);
  background: var(--sdhc-panel);
}

/* --------------------------------------------------------------------------
   Responsive geometry
   -------------------------------------------------------------------------- */

@media (max-width: 1280px) {
  .sdhc-hero-content,
  .sdhc-hero-copy-wrap {
    width: 74%;
  }

  .sdhc-hero-art {
    width: 58%;
    opacity: 0.82;
  }

  .sdhc-topic-header {
    grid-template-columns: 1fr;
  }

  .sdhc-topic-header .sdhc-search-wrap {
    max-width: 760px;
  }

  .sdhc-reader-heading {
    max-width: 76%;
  }
}

@media (max-width: 1080px) {
  .sdhc-popular-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sdhc-support-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  #sdhc-portal,
  #sdhc-article-shell {
    width: min(calc(100% - 1.2rem), 1660px);
    padding-top: 0.85rem;
  }

  .sdhc-hero {
    min-height: 260px;
    padding: 2rem;
  }

  .sdhc-hero-content,
  .sdhc-hero-copy-wrap {
    width: 84%;
  }

  .sdhc-hero-art {
    width: 64%;
    opacity: 0.5;
  }

  .sdhc-hero h1 {
    font-size: clamp(3rem, 10vw, 4.45rem);
  }

  .sdhc-topic-grid,
  .sdhc-topic-directory,
  .sdhc-article-grid,
  .sdhc-related-grid {
    grid-template-columns: 1fr;
  }

  .sdhc-reader-heading,
  .sdhc-reader-header.is-very-long .sdhc-reader-heading {
    max-width: 82%;
  }

  .sdhc-reader-art {
    width: 58%;
    opacity: 0.48;
  }
}

@media (max-width: 700px) {
  .sdhc-popular-grid,
  .sdhc-support-actions {
    grid-template-columns: 1fr;
  }

  .sdhc-reader-toolbar {
    align-items: flex-start;
  }

  .sdhc-reader-toolbar-right {
    display: none;
  }

  .sdhc-reader-divider,
  .sdhc-reader-topic {
    display: none;
  }
}

@media (max-width: 620px) {
  #sdhc-portal,
  #sdhc-article-shell {
    width: calc(100% - 0.85rem);
    padding-top: 0.75rem;
  }

  .sdhc-hero {
    min-height: 246px;
    padding: 1.45rem;
    border-radius: 18px;
  }

  .sdhc-hero-content,
  .sdhc-hero-copy-wrap {
    width: 100%;
  }

  .sdhc-hero-art {
    width: 74%;
    opacity: 0.3;
  }

  .sdhc-hero h1 {
    font-size: clamp(2.9rem, 15vw, 4.25rem);
  }

  .sdhc-search-wrap {
    margin-top: 1.35rem;
  }

  .sdhc-search-box {
    min-height: 62px;
    padding-left: 1rem;
  }

  .sdhc-search-input {
    height: 58px;
    font-size: 1rem;
  }

  .sdhc-search-shortcut {
    display: none;
  }

  .sdhc-search-results {
    top: calc(100% + 0.35rem);
    max-height: min(390px, 54vh);
  }

  .sdhc-popular-link {
    min-height: 72px;
    grid-template-columns: 46px minmax(0, 1fr) 18px;
    padding: 0.85rem 0.95rem;
  }

  .sdhc-popular-icon {
    width: 42px;
    height: 42px;
  }

  .sdhc-topic-top {
    min-height: 92px;
    padding: 1rem;
  }

  .sdhc-topic-links {
    padding-inline: 1rem;
  }

  .sdhc-topic-header {
    min-height: 0;
    padding: 1.15rem;
    border-radius: 15px;
  }

  .sdhc-topic-heading {
    align-items: flex-start;
  }

  .sdhc-topic-heading .sdhc-topic-icon {
    flex-basis: 48px;
    width: 48px;
    height: 48px;
  }

  .sdhc-topic-heading h1,
  .sdhc-topic-heading .sdhc-topic-title {
    font-size: clamp(2rem, 10vw, 2.75rem);
  }

  .sdhc-reader-header {
    min-height: 160px;
    gap: 0.85rem;
    padding: 1.25rem;
    border-radius: 18px;
  }

  .sdhc-reader-icon {
    flex-basis: 50px;
    width: 50px;
    height: 50px;
    border-radius: 13px;
  }

  .sdhc-reader-heading,
  .sdhc-reader-header.is-very-long .sdhc-reader-heading {
    max-width: 100%;
  }

  .sdhc-reader-heading h1,
  .sdhc-reader-header.is-long .sdhc-reader-heading h1,
  .sdhc-reader-header.is-very-long .sdhc-reader-heading h1 {
    font-size: clamp(2.05rem, 11vw, 3.3rem);
  }

  .sdhc-reader-art {
    width: 70%;
    opacity: 0.34;
  }

  .sdhc-reader-card {
    padding: 1.35rem;
  }

  .sdhc-reader-support {
    grid-template-columns: 28px minmax(0, 1fr);
  }

  .sdhc-reader-support a {
    grid-column: 1 / -1;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  #sdhc-portal *,
  #sdhc-portal *::before,
  #sdhc-portal *::after,
  #sdhc-article-shell *,
  #sdhc-article-shell *::before,
  #sdhc-article-shell *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* STUDENT DIGITAL HELP CSS END — course 2757 */

/* ========================================================================== 
   2. COGNITI — COURSE 6182

   PASTE ONLY THE CSS FROM THE CURRENT COGNITI BODY BLOCK BELOW.
   Delete its surrounding <style ...> and </style> tags first.
   Keep the Cogniti HEAD preload/critical block and BODY JavaScript in Moodle.
   ========================================================================== */

/* COGNITI CSS START — course 6182 */

/* Paste current Cogniti CSS here. */

/* COGNITI CSS END — course 6182 */

/* ========================================================================== 
   3. H5P — COURSE 6188

   PASTE ONLY THE CSS FROM THE CURRENT H5P BODY BLOCK BELOW.
   Delete its surrounding <style ...> and </style> tags first.
   Keep the H5P HEAD preload/critical block and BODY JavaScript in Moodle.
   ========================================================================== */

/* H5P CSS START — course 6188 */

/* Paste current H5P CSS here. */

/* H5P CSS END — course 6188 */
