/* Course discovery, using the portal's MOH colours and shared components. */
.skip-link{position:absolute;top:-70px;left:16px;z-index:20;background:#fff;padding:12px 18px;border:2px solid var(--green);border-radius:5px}.skip-link:focus{top:12px}
.discovery-page .header nav{display:flex;gap:30px;align-self:stretch;align-items:center}
.header nav a{position:relative;padding:12px 0}.header nav a[aria-current=page]{color:var(--green);font-weight:700}.header nav a[aria-current=page]:after{content:"";position:absolute;bottom:0;left:0;right:0;height:3px;background:var(--green);border-radius:4px}
.discovery-hero{text-align:left;padding:55px 6vw 35px;background:linear-gradient(180deg,#edf6fc,#f7fbfe);border-bottom:1px solid #e2edf5}
.discovery-hero .eyebrow{margin-bottom:16px}.discovery-hero h1{font-size:clamp(32px,3.3vw,49px);font-weight:600;line-height:1.22;letter-spacing:-1.7px;margin:0 0 16px}.discovery-hero h1 em{color:var(--green);font-style:normal}.discovery-intro{font-size:17px;color:var(--muted);margin:0 0 26px}
.search-box{max-width:790px;margin:0;text-align:left}.search-modes{display:flex;gap:5px;margin-bottom:10px}.search-modes button{padding:10px 23px;border:1px solid transparent;border-radius:6px;font-size:15px;font-weight:600;background:transparent;color:var(--muted)}.search-modes button[aria-pressed=true]{color:var(--green);border-color:#bfd9ec;background:#fff;box-shadow:0 2px 7px #153c4508}
.discovery-search{padding:8px;background:#fff;border:1px solid #c6dae9;border-radius:8px;box-shadow:0 5px 22px #123e5f08;display:flex;align-items:center;gap:12px}.discovery-search>span{font-size:29px;color:var(--green);padding-left:13px}.discovery-search input{flex:1;min-width:0;padding:12px 0;border:0;background:transparent;font-size:16px;color:var(--navy)}.discovery-search .button{gap:22px;border-radius:5px;min-height:48px}
.discovery-note{font-size:13px;color:var(--muted);margin:15px 0 24px}.catalogue-totals{font-size:13px;color:#4d718d;letter-spacing:.2px;margin:0}
.discovery-page .section{max-width:1600px;margin:0 auto;padding:48px 6vw}.discovery-page .section-heading h2{font-size:28px}.discovery-page .section-heading .eyebrow{font-size:11px;margin-bottom:9px}.inline-link{font-size:14px;display:inline-flex;gap:14px;align-items:center;color:var(--green);font-weight:600}.inline-link:hover{text-decoration:underline}.section-heading .inline-link{white-space:nowrap}
.category-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.category-card{display:flex;align-items:center;gap:14px;padding:20px 18px;border:1px solid var(--line);border-radius:7px;background:#fff;transition:border-color .15s,background .15s;min-width:0}.category-card:hover{border-color:#8cbbdc;background:#f8fbfe}.category-icon{display:grid;place-items:center;width:43px;height:45px;flex:0 0 43px;font-size:24px;color:var(--green);background:#edf5fb;border-radius:7px}.category-card strong{display:block;font-size:15px;font-weight:600;line-height:1.5;overflow-wrap:anywhere}.category-card small{display:block;font-size:12px;color:var(--muted);margin-top:5px}.category-arrow{margin-left:auto;color:#7095af}.category-card>span:nth-child(2){min-width:0}
.discovery-page .browse-section{padding-top:0;display:grid;grid-template-columns:1fr 1fr;gap:20px}.browse-card{display:flex;align-items:center;gap:20px;padding:24px;border:1px solid var(--line);border-radius:8px;background:#f8fbfe}.browse-card:hover{border-color:#8cbbdc}.browse-symbol{font-size:30px;color:var(--green)}.browse-card h2{font-size:21px;letter-spacing:-.5px;margin:0 0 7px}.browse-card p{font-size:14px;color:var(--muted);margin:0}.browse-card>span:last-child{margin-left:auto;color:var(--green)}
.discovery-page .home-secondary{max-width:none}.discovery-page .how h2{font-size:28px}.discovery-page .connect h2{font-size:27px}
.discovery-catalogue{min-height:65vh}.discovery-catalogue .section-heading{align-items:center;margin-bottom:32px}.discovery-catalogue h1{font-size:36px;letter-spacing:-1px;font-weight:600;line-height:1.3;margin:0 0 10px}.catalogue-layout{display:grid;grid-template-columns:235px minmax(0,1fr);gap:32px;align-items:start}.listing-content{min-width:0}
.filter-panel{border:1px solid var(--line);border-radius:8px;background:#fff}.filter-panel summary{font-weight:600;font-size:16px;list-style:none;padding:20px;border-bottom:1px solid var(--line);pointer-events:none}.filter-panel summary::-webkit-details-marker{display:none}.filter-panel summary>span{display:none}.filter-fields{padding:20px;display:flex;flex-direction:column;gap:22px}.filter-fields label{font-size:13px;font-weight:600;display:flex;flex-direction:column;gap:9px;color:#34536a}.filter-fields select{min-width:0;width:100%;font-size:14px;font-weight:400;border:1px solid #cfdee9;border-radius:5px;padding:12px 9px;color:var(--navy);background:#fff;text-overflow:ellipsis}.filter-fields .text-button{text-align:left;padding:0;align-self:flex-start;font-size:13px;text-decoration:underline}.filter-hint{font-size:12px;line-height:1.7;color:var(--muted);padding:0 20px 18px;margin:0}
.listing-search{display:flex;gap:10px}.listing-search input{flex:1;min-width:0;font-size:15px;border:1px solid #c9dce9;border-radius:6px;padding:14px 17px;color:var(--navy);background:#fff}.listing-search .button{min-height:50px;border-radius:6px;min-width:105px}.results-toolbar{display:flex;gap:16px;align-items:center;justify-content:space-between;margin:22px 0}.results-toolbar p{font-size:14px;color:var(--muted);margin:0}.results-toolbar label{display:flex;align-items:center;gap:10px;font-size:13px;white-space:nowrap}.results-toolbar select,.pagination select{font-size:14px;border:1px solid var(--line);background:#fff;color:var(--navy);padding:9px;border-radius:5px}.active-filters{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:18px}.active-filters:empty{display:none}.active-filters button{display:flex;align-items:center;gap:12px;max-width:100%;text-align:left;overflow-wrap:anywhere;color:#215c86;background:#edf6fc;border:1px solid #cce1f0;border-radius:5px;padding:7px 10px;font-size:12px}.active-filters button span{font-size:18px;line-height:1}
.discovery-catalogue .course-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.discovery-catalogue .course-image{height:150px}.discovery-catalogue .course-body{padding:18px}.discovery-catalogue .course-body h2{font-size:18px;letter-spacing:-.2px;font-weight:600;line-height:1.5;margin:12px 0 10px;overflow-wrap:anywhere}.discovery-catalogue .course-summary{font-size:14px;line-height:1.75}.discovery-catalogue .site-label{overflow-wrap:anywhere;font-size:12px}.discovery-catalogue .course-bottom{align-items:center;font-size:12px;gap:10px}.discovery-catalogue .course-bottom button{font-size:13px;gap:10px;min-height:36px}.discovery-catalogue .category-tag{font-size:11px}.discovery-catalogue .empty h2{font-size:24px;line-height:1.4}.empty .button{margin-top:15px}.empty p{margin:10px 0}
.platform-card{display:flex;flex-direction:column;min-width:0;padding:23px;border:1px solid var(--line);border-radius:8px;background:#fff}.platform-card-top{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:20px}.platform-monogram{width:50px;height:50px;flex:0 0 50px;display:grid;place-items:center;background:#eaf4fb;border-radius:10px;color:var(--green);font-size:19px;font-weight:600;letter-spacing:1px}.platform-course-count{font-size:12px;background:#f2f7fb;color:#456b85;padding:5px 10px;border-radius:20px}.platform-card h2{font-size:20px;line-height:1.5;margin:0 0 16px;letter-spacing:-.3px;overflow-wrap:anywhere}.platform-topics{display:flex;flex-wrap:wrap;gap:6px}.platform-topics span{font-size:11px;line-height:1.6;color:#45657c;border:1px solid #dce8f1;border-radius:4px;padding:3px 7px;overflow-wrap:anywhere}.platform-card .muted{font-size:12px;overflow-wrap:anywhere}.platform-sync{margin:auto 0 19px;padding-top:18px;font-size:12px;line-height:1.7;color:var(--muted)}.platform-sync>span{color:#896022}.platform-card .button{width:100%;font-size:13px;gap:14px}
.pagination{display:flex;justify-content:space-between;align-items:center;gap:20px;padding-top:30px;margin-top:28px;border-top:1px solid var(--line);flex-wrap:wrap}.pagination label{display:flex;gap:10px;align-items:center;font-size:13px}.pagination nav{display:flex;align-items:center;gap:15px}.pagination .button{font-size:13px;min-height:40px;padding:8px 12px;gap:6px}.pagination button:disabled{opacity:.4;cursor:default}.pagination nav>span{font-size:13px;color:var(--muted);white-space:nowrap}.discovery-page .detail-body{overflow-wrap:anywhere}
@media(min-width:1500px){.discovery-page .section{padding-left:70px;padding-right:70px}}
@media(max-width:1200px){.catalogue-layout{grid-template-columns:215px minmax(0,1fr);gap:24px}.discovery-catalogue .course-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.discovery-page .account-name{display:none}}
@media(max-width:960px){.discovery-page .header{gap:20px;flex-wrap:wrap}.discovery-page .header nav{gap:24px}.category-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.browse-card{padding:20px;gap:15px}.browse-card h2{font-size:19px}.browse-card p{font-size:13px}.catalogue-layout{grid-template-columns:200px minmax(0,1fr);gap:20px}.filter-fields{padding:17px}.discovery-catalogue .course-grid{gap:15px}.platform-card{padding:18px}}
@media(max-width:760px){.discovery-page .header{padding:15px 6vw;gap:12px;min-height:0}.discovery-page .header .brand{margin-right:auto}.discovery-page .header nav{order:3;width:100%;justify-content:center;gap:40px;border-top:1px solid #edf2f6;padding-top:6px;font-size:14px}.discovery-page .header nav a{padding:10px 0}.discovery-page .account{gap:10px;font-size:12px;flex-wrap:wrap}.discovery-page .account .text-button{font-size:12px}.discovery-page .login{font-size:13px}.discovery-page .brand>span{font-size:22px}.discovery-page .brand small{font-size:10px}.discovery-hero{padding:36px 6vw 27px}.discovery-hero h1{font-size:34px;letter-spacing:-1.2px}.discovery-hero .eyebrow{font-size:10px}.discovery-intro{font-size:15px;line-height:1.7;max-width:310px;margin:0 0 22px}.search-modes button{font-size:14px;padding:9px 20px}.discovery-search{gap:8px;padding:7px;flex-wrap:wrap}.discovery-search>span{display:none}.discovery-search input{padding:12px 8px;flex-basis:100%;font-size:16px}.discovery-search .button{width:100%;font-size:14px;min-height:45px;padding:10px 15px}.discovery-note{font-size:12px;line-height:1.7;margin:14px 0 18px}.catalogue-totals{font-size:12px}.discovery-page .section{padding:34px 6vw}.discovery-page .section-heading h2{font-size:26px}.discovery-page .section-heading p:not(.eyebrow){font-size:14px}.discovery-page .section-heading{gap:16px}.category-grid{gap:12px}.category-card{padding:16px 13px;gap:10px}.category-icon{width:34px;flex-basis:34px;height:38px;font-size:21px}.category-card strong{font-size:13px}.category-card small{font-size:11px}.category-arrow{display:none}.discovery-page .browse-section{grid-template-columns:1fr;padding-top:0;gap:14px}.browse-card p{font-size:14px}.discovery-page .how h2{font-size:26px}.discovery-page .how{gap:30px}.discovery-catalogue .section-heading{align-items:flex-start;margin-bottom:26px}.discovery-catalogue h1{font-size:30px}.catalogue-layout{grid-template-columns:1fr;gap:20px}.filter-panel summary{pointer-events:auto;padding:13px 17px;display:flex;justify-content:space-between;font-size:14px;border:0;cursor:pointer}.filter-panel summary>span{display:block}.filter-panel details[open] summary{border-bottom:1px solid var(--line)}.filter-fields{padding:20px;gap:18px}.filter-fields select{font-size:16px}.filter-hint{display:none}.listing-search input{font-size:16px;padding:13px 12px}.listing-search .button{min-width:80px;padding:11px 14px;min-height:48px;font-size:14px}.results-toolbar{flex-wrap:wrap;gap:14px;margin:18px 0}.results-toolbar p{font-size:13px}.results-toolbar label{font-size:12px;margin-left:auto}.results-toolbar select{font-size:13px;max-width:170px}.discovery-catalogue .course-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.discovery-catalogue .course-image{height:145px}.discovery-catalogue .course-body h2{font-size:18px}.pagination{margin-top:22px;padding-top:22px;gap:18px}.pagination nav{width:100%;justify-content:space-between;gap:10px}.pagination .button{font-size:12px}.discovery-page .admin-plugin-shortcut{padding:20px 6vw}}
@media(max-width:540px){.discovery-catalogue .course-grid{grid-template-columns:1fr}.discovery-catalogue .course-image{height:185px}.discovery-catalogue .course-body{padding:20px}.discovery-catalogue .course-body h2{font-size:20px}.discovery-catalogue .course-summary{font-size:15px}.category-grid{grid-template-columns:1fr}.category-card strong{font-size:15px}.category-card small{font-size:12px}.category-arrow{display:block}.category-card{padding:17px;gap:14px}.discovery-page .account{max-width:145px}.discovery-page .account .text-button{padding:0}.discovery-page .header nav{gap:36px}.discovery-catalogue .empty{padding:35px 18px}.discovery-catalogue .empty h2{font-size:22px}.platform-card{padding:23px}}
@media(prefers-reduced-motion:reduce){.course-card,.category-card{transition:none}.course-card:hover{transform:none}}

/* Keep the logo, introduction and all page sections on one shared edge. */
.discovery-page{--page-gutter:max(5vw,calc((100vw - 1320px)/2))}
.discovery-page :is(.header,.government,.discovery-hero,.section,.admin-plugin-shortcut,footer){padding-inline:var(--page-gutter)}
.discovery-page .section{max-width:none}
@media(max-width:760px){.discovery-page{--page-gutter:6vw}}

/* A quiet, welcoming learning space. */
.discovery-page {
  --card-shadow: 0 6px 22px #173b5607;
  background: #fff;
}
.ui-icon {
  display: inline-block;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  vertical-align: middle;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.discovery-page .header { border-bottom-color: #e4edf4; }
.discovery-page .header nav { gap: 7px; }
.discovery-page .header nav a { padding: 10px 18px; border-radius: 10px; transition: color .18s, background .18s; }
.discovery-page .header nav a:hover { background: #f1f7fc; }
.discovery-page .header nav a[aria-current=page] { background: #eaf4fc; }
.discovery-page .header nav a[aria-current=page]:after { display: none; }
.discovery-page .login { background: #f1f8fd; border-color: #d0e4f3; border-radius: 10px; }
.discovery-page .login:hover { background: #eaf4fc; border-color: var(--green); }
.discovery-page .button { border-radius: 10px; transition: background .18s, box-shadow .18s; }
.discovery-page .button:not(.secondary):hover { box-shadow: 0 4px 12px #0e74b824; }
.discovery-page .secondary:hover { background: #edf6fc; border-color: #8dbbdb; }
.discovery-page input::placeholder { color: #637c90; opacity: 1; }
.discovery-page input:focus-visible,
.discovery-page select:focus-visible { outline: 3px solid #0e74b84d; outline-offset: 2px; }
.discovery-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 336px;
  align-items: center;
  gap: 55px;
  padding-top: 48px;
  padding-bottom: 40px;
  background: radial-gradient(ellipse at 89% 45%, #e6f2fc 0, transparent 48%), linear-gradient(180deg, #f3f9fe, #fbfdff);
}
.discovery-hero-copy { min-width: 0; }
.discovery-hero h1 { font-size: clamp(34px, 3.15vw, 46px); line-height: 1.24; letter-spacing: -1.6px; }
.discovery-hero .eyebrow { color: #3c759c; font-size: 11px; letter-spacing: 1.5px; }
.discovery-intro { line-height: 1.75; }
.search-modes { display: inline-flex; gap: 4px; padding: 5px; margin-bottom: 15px; border-radius: 14px; background: #e6f0f8; box-shadow: inset 0 1px 3px #173b5605; }
.search-modes button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; border: 0; border-radius: 10px; padding: 10px 20px; font-size: 14px; color: #43647d; transition: background .18s, color .18s, box-shadow .18s; }
.search-modes button .ui-icon { width: 18px; height: 18px; flex-basis: 18px; }
.search-modes button:hover { color: #165d90; background: #ffffffa6; }
.search-modes button[aria-pressed=true] { color: #fff; background: linear-gradient(135deg, #0e74b8, #09669f); box-shadow: 0 4px 10px #0e74b826; }
.discovery-search { border-color: #cfdfed; border-radius: 16px; box-shadow: 0 8px 26px #173b5609; gap: 10px; }
.discovery-search:focus-within { border-color: #569dcf; box-shadow: 0 0 0 3px #0e74b814; }
.discovery-search > .ui-icon { margin-left: 12px; color: var(--green); width: 20px; height: 20px; flex-basis: 20px; }
.discovery-search input { font-size: 15px; padding-left: 4px; }
.discovery-search .button { font-size: 14px; padding-inline: 17px; gap: 14px; }
.discovery-note { color: #526e83; margin-bottom: 21px; }
.catalogue-totals { font-size: 12px; font-weight: 500; color: #526e83; }
.learning-illustration { width: 336px; max-width: 100%; justify-self: end; }
.learning-scene {
  position: relative;
  width: 100%;
  transform: perspective(700px) rotateX(var(--scene-tilt-x, 0deg)) rotateY(var(--scene-tilt-y, 0deg));
  transition: transform .45s ease-out;
}
.learning-illustration.is-looking-left { --scene-tilt-y: -5deg; }
.learning-illustration.is-looking-right { --scene-tilt-y: 5deg; }
.learning-illustration.is-looking-up { --scene-tilt-x: 4deg; }
.learning-illustration.is-looking-down { --scene-tilt-x: -4deg; }
.learning-art { display: block; width: 100%; height: auto; overflow: visible; animation: learning-sway 5s ease-in-out infinite; transform-origin: center; }
.art-book { animation: learning-float 4s ease-in-out infinite; }
.art-medical { animation: learning-float 5s ease-in-out infinite; animation-delay: -2.5s; }
.art-achievement { animation: learning-float 4.5s ease-in-out infinite; animation-delay: -1.5s; }
.art-achievement path { stroke-dasharray: 32; animation: learning-check 5s ease-in-out infinite; }
.art-progress { transform-origin: 101px 204px; animation: learning-progress 5s ease-in-out infinite; }
.art-spark { animation: learning-glow 5s ease-in-out infinite; }
.learning-float-note {
  position: absolute;
  left: -6px;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 15px;
  background: #ffffffed;
  border: 1px solid #d4e5f1;
  border-radius: 14px;
  box-shadow: 0 6px 20px #173b5609;
  color: #47677f;
  font-size: 12px;
  line-height: 1.6;
  animation: learning-note 5.5s ease-in-out infinite;
}
.learning-float-note > .ui-icon { width: 30px; height: 30px; flex-basis: 30px; padding: 4px; color: var(--green); }
.learning-float-note strong { font-weight: 600; color: var(--navy); }
.learning-caption { font-size: 14px; font-weight: 500; color: #345a76; margin: 25px 0 10px; }
.learning-illustration-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.learning-illustration-actions > .inline-link { font-size: 12px; gap: 9px; }
.learning-illustration-actions > .inline-link .ui-icon { width: 16px; height: 16px; flex-basis: 16px; }
.animation-toggle { border: 1px solid #c7ddea; border-radius: 14px; padding: 5px 10px; background: #ffffffa6; display: flex; align-items: center; gap: 5px; color: #4c6f89; font-size: 10px; }
.animation-toggle:hover { border-color: #74acd2; background: #fff; }
.animation-toggle .ui-icon { width: 12px; height: 12px; flex-basis: 12px; }
.learning-illustration.is-paused * { animation-play-state: paused !important; }
@keyframes learning-sway { 0%, 100% { transform: translateY(3px) rotate(-.6deg); } 50% { transform: translateY(-8px) rotate(.6deg); } }
@keyframes learning-float { 0%, 100% { transform: translateY(2px); } 50% { transform: translateY(-10px); } }
@keyframes learning-note { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(4px, -7px); } }
@keyframes learning-check { 0%, 12% { stroke-dashoffset: 32; } 35%, 85% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 32; } }
@keyframes learning-progress { 0%, 100% { transform: scaleX(.45); } 55%, 75% { transform: scaleX(1); } }
@keyframes learning-glow { 0%, 100% { opacity: .5; } 50% { opacity: 1; } }
.category-card { border-radius: 14px; border-color: #e0eaf2; box-shadow: var(--card-shadow); transition: border-color .18s, box-shadow .18s, transform .18s; }
.category-card:hover { border-color: #9cc4e0; background: #fbfdff; box-shadow: 0 8px 20px #173b560b; transform: translateY(-2px); }
.category-icon { width: 45px; height: 45px; flex-basis: 45px; border-radius: 12px; background: #edf6fc; }
.category-icon .ui-icon { width: 23px; height: 23px; }
.category-card:nth-child(3n+2) .category-icon { background: #ecf6f2; color: #398471; }
.category-card:nth-child(3n) .category-icon { background: #f1f0fa; color: #756caa; }
.category-arrow { display: flex; align-items: center; }
.category-arrow .ui-icon { width: 18px; height: 18px; flex-basis: 18px; }
.browse-card { background: linear-gradient(125deg, #f4f9fe, #fcfdff); border-radius: 16px; border-color: #e0eaf2; }
.browse-symbol { display: grid; place-items: center; width: 46px; height: 46px; flex: 0 0 46px; border-radius: 12px; background: #eaf3fb; }
.browse-symbol .ui-icon { width: 25px; height: 25px; }
.browse-card:nth-child(2) .browse-symbol { background: #edf5f2; color: #398471; }
.discovery-page .how { background: #f6fafe; border-block: 1px solid #e7eff6; }
.discovery-page .how li > span { background: #fff; width: 38px; height: 38px; font-weight: 600; border-color: #c7deef; }
.discovery-page .how li { border-bottom-color: #dfebf4; }
.discovery-page .connect { padding-top: 45px; padding-bottom: 45px; }
.discovery-page footer { background: #fcfdff; border-top-color: #e1ebf3; }
.discovery-page footer a:hover { color: var(--green); }
.discovery-catalogue { background: #fbfdff; }
.discovery-catalogue .filter-panel { border-radius: 14px; box-shadow: var(--card-shadow); }
.discovery-catalogue .listing-search input { border-radius: 10px; padding-inline: 20px; border-color: #d5e3ee; }
.discovery-catalogue .course-card { border-radius: 14px; border-color: #e0eaf2; box-shadow: var(--card-shadow); }
.discovery-catalogue .course-card:hover { border-color: #abcce3; box-shadow: 0 10px 26px #173b5610; }
.discovery-catalogue .category-tag { border-radius: 10px; padding: 6px 10px; }
.discovery-catalogue .course-pattern .ui-icon { width: 57px; height: 57px; stroke-width: 1.15; }
.course-title { border: 0; padding: 0; background: transparent; color: inherit; text-align: left; font: inherit; line-height: inherit; letter-spacing: inherit; }
.course-title:hover { color: var(--green); }
.discovery-catalogue .site-label:hover { text-decoration: underline; }
.platform-card { border-radius: 14px; box-shadow: var(--card-shadow); transition: border-color .18s, box-shadow .18s; }
.platform-card:hover { border-color: #abcce3; box-shadow: 0 10px 26px #173b5610; }
.platform-monogram { border-radius: 12px; background: linear-gradient(145deg,#e5f3fc,#f4f9fe); }
.discovery-page dialog { border: 1px solid #d7e5ef; border-radius: 18px; }
@media (max-width: 1150px) {
  .discovery-hero { grid-template-columns: minmax(0, 1fr) 290px; gap: 30px; }
  .learning-illustration { width: 290px; }
  .discovery-search .button { padding-inline: 12px; gap: 9px; font-size: 13px; }
}
@media (max-width: 960px) {
  .discovery-hero { grid-template-columns: minmax(0, 1fr); }
  .learning-illustration { display: none; }
  .search-box { max-width: 790px; }
}
@media (max-width: 760px) {
  .discovery-hero { padding-top: 35px; padding-bottom: 30px; gap: 0; }
  .discovery-hero h1 { font-size: 34px; letter-spacing: -1.2px; }
  .discovery-hero .eyebrow { font-size: 10px; line-height: 1.8; letter-spacing: 1.1px; }
  .discovery-search { gap: 5px; border-radius: 16px; }
  .discovery-search > .ui-icon { display: none; }
  .discovery-search input { padding: 12px 8px; font-size: 16px; }
  .discovery-search .button { min-height: 46px; font-size: 14px; }
  .category-card { padding: 17px; }
  .category-icon { width: 40px; height: 40px; flex-basis: 40px; border-radius: 12px; }
  .category-card strong { font-size: 14px; }
  .category-arrow { display: none; }
  .discovery-page .connect { padding-top: 34px; padding-bottom: 34px; }
  .discovery-catalogue .course-card:hover { transform: none; }
}
@media (max-width: 540px) {
  .category-card strong { font-size: 15px; }
  .category-arrow { display: flex; }
}
@media (prefers-reduced-motion: reduce) {
  .learning-illustration * { animation: none !important; }
  .learning-scene { transform: none; transition: none; }
  .animation-toggle { display: none; }
  .discovery-page .category-card,
  .discovery-page .course-card,
  .discovery-page .platform-card,
  .discovery-page .button { transition: none; }
  .discovery-page .category-card:hover,
  .discovery-page .course-card:hover { transform: none; }
}

/* Soft form fields and compact, rounded labels across the catalogue. */
.discovery-page .filter-fields select,
.discovery-page .results-toolbar select,
.discovery-page .pagination select,
.discovery-page .site-form input {
  border-radius: 10px;
  border-color: #dce7f0;
  background-color: #f8fbfe;
}
.discovery-page .active-filters button,
.discovery-page .platform-topics span,
.discovery-page .plugin-tags > span { border-radius: 10px; }
.discovery-page .platform-topics span { padding: 4px 10px; background: #f6fafe; border-color: #e2ecf4; }
.discovery-page .notice,
.discovery-page .detail-note,
.discovery-page .empty,
.discovery-page .loading,
.discovery-page .site-form,
.discovery-page .site-row,
.discovery-page .key-box,
.discovery-page .dashboard-plugin { border-radius: 14px; }
.discovery-page .course-bottom > button { border-radius: 10px; background: #eff7fd; padding: 7px 12px; }
.discovery-page .course-bottom > button:hover { background: #e1f0fb; }
@media (max-width: 760px) {
  .discovery-page .header nav { gap: 6px; }
  .discovery-page .header nav a { padding: 10px 20px; min-height: 44px; }
  .search-modes button { padding: 10px 17px; }
}
@media (prefers-reduced-motion: reduce) {
  .search-modes button,
  .discovery-page .header nav a { transition: none; }
}

/* Stronger colour and hierarchy, with the same restrained corner shapes. */
.discovery-hero {
  background: radial-gradient(ellipse at 96% 25%, #dceff8 0, transparent 47%),
    radial-gradient(ellipse at 65% 100%, #eaf6f1 0, transparent 45%),
    linear-gradient(115deg, #f6fbff, #edf6fd);
  border-bottom-color: #dceaf3;
}
.discovery-hero .eyebrow { display: flex; align-items: center; gap: 9px; }
.discovery-hero .eyebrow:before { content: ""; width: 7px; height: 7px; flex: 0 0 7px; border-radius: 3px; background: #319181; }
.discovery-hero h1 { font-weight: 650; }
.discovery-hero h1 em {
  color: var(--green);
  background: linear-gradient(100deg, #0b70b5 20%, #167f9b 95%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.discovery-search { border-color: #c4dce9; box-shadow: 0 10px 30px #194d7210; }
.discovery-page .button:not(.secondary) {
  background: linear-gradient(120deg, #0d78ba, #0969a5);
  border-color: #0b6eac;
  box-shadow: 0 4px 10px #0e74b815;
}
.discovery-page .button:not(.secondary):hover { background: linear-gradient(120deg, #096cae, #075b94); box-shadow: 0 6px 16px #0e74b827; }
.catalogue-totals { display: flex; align-items: center; gap: 22px; margin-top: 23px; line-height: 1.3; }
.catalogue-totals a { display: inline-flex; align-items: baseline; gap: 7px; padding-right: 22px; border-right: 1px solid #cedfe9; color: #4e6e84; font-size: 12px; }
.catalogue-totals a:last-child { border: 0; padding-right: 0; }
.catalogue-totals strong { font-size: 23px; letter-spacing: -.7px; font-weight: 650; color: #1e577a; }
.catalogue-totals a:hover { color: #0873b7; }
.catalogue-totals a:hover strong { color: #0873b7; }
.learning-caption { font-size: 15px; color: #204c6a; }
.learning-illustration-actions > .inline-link { color: #0b6caa; }
.learning-art { filter: drop-shadow(0 12px 14px #1d567710); }
.learning-float-note { background: #fff; border-color: #d4e5ef; box-shadow: 0 8px 24px #173b5610; }
.discovery-page .categories-section .section-heading .eyebrow { color: #378373; }
.discovery-page .section-heading h2 { color: #173e59; }
.category-card { position: relative; background: linear-gradient(115deg, #fff 65%, #f4f9fe); border-color: #dce8f0; }
.category-card:nth-child(3n+2) { background: linear-gradient(115deg, #fff 65%, #f1f8f5); }
.category-card:nth-child(3n) { background: linear-gradient(115deg, #fff 65%, #f6f4fb); }
.category-card:hover { border-color: #9bc1da; box-shadow: 0 9px 24px #173b5610; }
.category-card small { color: #52758d; font-weight: 500; }
.category-card strong { color: #25475f; }
.category-arrow { padding: 6px; color: #326f96; background: #edf5fb; border-radius: 8px; }
.category-card:nth-child(3n+2) .category-arrow { color: #3e8475; background: #eaf5ef; }
.category-card:nth-child(3n) .category-arrow { color: #746c9b; background: #f0edf8; }
.category-card:hover .category-arrow { background: #0e74b8; color: #fff; }
.browse-card { padding: 28px; }
.browse-card:first-child { color: #fff; background: linear-gradient(115deg, #0e70ac, #155480); border-color: #166596; box-shadow: 0 8px 20px #165b8114; }
.browse-card:first-child h2 { color: #fff; }
.browse-card:first-child p { color: #e0effa; }
.browse-card:first-child .browse-symbol { background: #ffffff1f; color: #fff; }
.browse-card:first-child > span:last-child { color: #fff; }
.browse-card:first-child:hover { background: linear-gradient(115deg, #0a66a1, #104971); }
.browse-card:nth-child(2) { background: linear-gradient(115deg, #f0f8f5, #f8fcfa); border-color: #d8e9e1; }
.browse-card:nth-child(2) .browse-symbol { color: #2d7b69; background: #e0f0e9; }
.browse-card h2 { font-size: 22px; }
.discovery-page .how { background: linear-gradient(100deg, #f7fbff, #f2f8fc); }
.discovery-page .how li > span { color: #186c9e; background: #e8f3fb; border-color: transparent; border-radius: 10px; }
.discovery-page .how h3 { color: #204e6d; }
.discovery-catalogue .course-card { box-shadow: 0 5px 16px #173b5606; }
.discovery-catalogue .course-image img { transition: transform .35s ease; }
.discovery-catalogue .course-card:hover .course-image img { transform: scale(1.035); }
.discovery-catalogue .course-body { padding: 20px; }
.discovery-page .course-bottom > button { color: #fff; background: #0e74b8; min-height: 40px; padding: 8px 13px; }
.discovery-page .course-bottom > button:hover { background: #095f99; }
.platform-card-top { padding-bottom: 18px; border-bottom: 1px solid #e7eff5; }
.platform-monogram { color: #0b6da9; background: #e4f1fa; }
.platform-course-count { color: #2c7262; background: #eaf5ef; border-radius: 8px; }
@media(max-width: 760px) {
  .discovery-hero .eyebrow { font-size: 9px; gap: 7px; letter-spacing: .85px; }
  .catalogue-totals { gap: 12px; margin-top: 20px; }
  .catalogue-totals a { font-size: 11px; gap: 5px; padding-right: 12px; }
  .catalogue-totals strong { font-size: 20px; }
  .browse-card { padding: 23px; }
  .browse-card h2 { font-size: 20px; }
  .discovery-catalogue .course-body { padding: 20px; }
}
@media(max-width: 360px) {
  .catalogue-totals { gap: 9px; }
  .catalogue-totals a { gap: 4px; padding-right: 9px; font-size: 10px; }
  .catalogue-totals strong { font-size: 18px; }
}
@media(prefers-reduced-motion: reduce) {
  .discovery-catalogue .course-image img { transition: none; }
  .discovery-catalogue .course-card:hover .course-image img { transform: none; }
}
@media(forced-colors: active) {
  .discovery-hero h1 em { background: none; -webkit-text-fill-color: currentColor; }
}

/* Each learning platform keeps its own identity. */
.platform-logo{display:flex;align-items:center;justify-content:center;width:92px;height:82px;flex:0 0 92px;background:#fff;border:1px solid #e3edf4;border-radius:9px;padding:5px}
.platform-logo img{display:block;width:100%;height:100%;object-fit:contain}
.site-label.with-logo:before{display:none}
.site-label.with-logo{gap:8px}
.provider-logo{display:block;width:30px;height:30px;object-fit:contain;flex:0 0 30px}
.detail-body .provider-logo{width:42px;height:42px;flex-basis:42px}
