/*
 * Discipline icon glyphs for Prep course tiles.
 *
 * These used to be inlined as <svg> inside every course card — 3,629 copies on
 * the Study Library page, ~7 MB of HTML. They now live here once and are painted
 * through a CSS mask, so the tile still inherits the .is-* colour rules
 * (including the .dark-theme overrides) via currentColor.
 *
 * Masks are alpha-only, so the glyphs are declared in a single flat colour.
 */

.course-type-icon::before {
  content: "";
  display: block;
  width: 55%;
  height: 55%;
  background-color: currentColor;
  -webkit-mask-image: var(--prep-icon);
  mask-image: var(--prep-icon);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}

/* Mathematics — geometry compass and arc */
.course-type-icon.is-mathematics {
  --prep-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='5.2' r='1.8'/%3E%3Cpath d='M12 3.2V2'/%3E%3Cpath d='M10.8 6.8L6 19.5'/%3E%3Cpath d='M13.2 6.8L18 19.5'/%3E%3Cpath d='M6.8 14.2C8.4 15.6 10.1 16.2 12 16.2C13.9 16.2 15.6 15.6 17.2 14.2'/%3E%3Cpath d='M8.5 12H15.5'/%3E%3C/svg%3E");
}

/* Statistics — normal distribution curve */
.course-type-icon.is-statistics {
  --prep-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 18.5H21'/%3E%3Cpath d='M3.5 18.5C6.5 18.5 7.8 15.5 9.2 10.5C10.1 7.2 10.9 5.5 12 5.5C13.1 5.5 13.9 7.2 14.8 10.5C16.2 15.5 17.5 18.5 20.5 18.5'/%3E%3Cpath d='M12 5.5V18.5' stroke-dasharray='2 2'/%3E%3C/svg%3E");
}

/* Computing — code window with angle brackets */
.course-type-icon.is-computing {
  --prep-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='15' rx='2.5'/%3E%3Cpath d='M3 8H21'/%3E%3Cpath d='M9.5 11.5L7 13.5L9.5 15.5'/%3E%3Cpath d='M14.5 11.5L17 13.5L14.5 15.5'/%3E%3Cpath d='M12.8 10.8L11.2 16.2'/%3E%3C/svg%3E");
}

/* Business & Economics — intersecting supply/demand curves */
.course-type-icon.is-economics {
  --prep-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 4V19C4 19.5523 4.44772 20 5 20H20'/%3E%3Cpath d='M6.5 16.5C9.5 15.2 13.5 11.5 18.5 6'/%3E%3Cpath d='M6.5 6.5C10 11.5 14 15 18.5 16.5'/%3E%3Ccircle cx='12.2' cy='12.1' r='2'/%3E%3C/svg%3E");
}

/* Social Sciences — connected people nodes */
.course-type-icon.is-social {
  --prep-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 7.5L6.8 15.5'/%3E%3Cpath d='M12 7.5L17.2 15.5'/%3E%3Cpath d='M7.5 16.5H16.5'/%3E%3Ccircle cx='12' cy='5.5' r='2.3' fill='black'/%3E%3Ccircle cx='6' cy='16.5' r='2.2' fill='black'/%3E%3Ccircle cx='18' cy='16.5' r='2.2' fill='black'/%3E%3C/svg%3E");
}

/* Chemistry — Erlenmeyer flask */
.course-type-icon.is-chemistry {
  --prep-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 3H15M10 3V8.5L5.2 16.8C4.4 18.1 5.3 19.8 6.9 19.8H17.1C18.7 19.8 19.6 18.1 18.8 16.8L14 8.5V3'/%3E%3Cpath d='M7.3 14.5H16.7'/%3E%3Ccircle cx='10.5' cy='17' r='1' fill='black'/%3E%3Ccircle cx='13.8' cy='16.5' r='1.2' fill='black'/%3E%3C/svg%3E");
}

/* Physics — atomic orbitals */
.course-type-icon.is-physics {
  --prep-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6'%3E%3Cellipse cx='12' cy='12' rx='9' ry='3.8' transform='rotate(30 12 12)'/%3E%3Cellipse cx='12' cy='12' rx='9' ry='3.8' transform='rotate(-30 12 12)'/%3E%3Ccircle cx='12' cy='12' r='2' fill='black'/%3E%3C/svg%3E");
}

/* Engineering — gear */
.course-type-icon.is-engineering {
  --prep-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='3.2'/%3E%3Ccircle cx='12' cy='12' r='6.5'/%3E%3Cpath d='M12 3.5V5.5M12 18.5V20.5M3.5 12H5.5M18.5 12H20.5M6 6L7.5 7.5M16.5 16.5L18 18M18 6L16.5 7.5M7.5 16.5L6 18'/%3E%3C/svg%3E");
}

/* Health / life sciences — pulse waveform */
.course-type-icon.is-health {
  --prep-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 12H7L9.5 6.5L13.5 17.5L16.2 12H21'/%3E%3C/svg%3E");
}

/* General sciences — flask with spark */
.course-type-icon.is-general-science {
  --prep-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 3H16M10 3V8.5L5.2 17.2C4.4 18.6 5.4 20.3 7 20.3H17C18.6 20.3 19.6 18.6 18.8 17.2L14 8.5V3'/%3E%3Cpath d='M7.2 15.2H16.8'/%3E%3Ccircle cx='10' cy='17.5' r='0.9' fill='black'/%3E%3Ccircle cx='13.2' cy='17.3' r='1.1' fill='black'/%3E%3C/svg%3E");
}

/* Humanities — open book */
.course-type-icon.is-humanities {
  --prep-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 6.253v13m0-13C10.832 5.477 9.246 5 7.5 5S4.168 5.477 3 6.253v13C4.168 18.477 5.754 18 7.5 18s3.332.477 4.5 1.253m0-13C13.168 5.477 14.754 5 16.5 5c1.747 0 3.332.477 4.5 1.253v13C19.832 18.477 18.247 18 16.5 18c-1.746 0-3.332.477-4.5 1.253'/%3E%3C/svg%3E");
}

/* Fallback — document tile */
.course-type-icon.is-other {
  --prep-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 5.5C4 4.7 4.7 4 5.5 4H18.5C19.3 4 20 4.7 20 5.5V17.5C20 18.3 19.3 19 18.5 19H5.5C4.7 19 4 18.3 4 17.5V5.5Z'/%3E%3Cpath d='M8 8H16M8 11.5H16M8 15H12'/%3E%3C/svg%3E");
}
