/* STEM Portal palette. */
.scx-app{--scx-ink:#123b60;--scx-teal:#006bb6;--scx-line:#d8e5f0;--scx-soft:#f2f7fc}
.scx-app [hidden]{display:none!important}
.wp-block-post-content>.scx-app{width:100%;max-width:1200px!important;margin-left:auto!important;margin-right:auto!important}
.scx-hero{background:#00599d;border-bottom:5px solid #39a6c8}.scx-eyebrow{color:#d7efff}.scx-hero p{color:#f0f7ff}
.scx-app label{display:block}.scx-app label input,.scx-app label select,.scx-app label textarea{display:block;margin-top:7px}
.scx-app .scx-button:hover{background:#004a85}.scx-app .scx-button.secondary{background:#edf5fc;color:#00599d}
.scx-section-top{display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap}.scx-section-top h3{margin:0}
.scx-project{background:#f8fbff;border:1px solid #cbddeb;border-left:6px solid #39a6c8;border-radius:12px;padding:22px;margin:24px 0}
.scx-project-heading{display:flex;flex-direction:column;gap:8px;margin:-22px -22px 22px;padding:18px 22px;background:#e8f2fc;border-radius:8px 8px 0 0}
.scx-project-heading>span{font-size:21px;font-weight:800;color:#004f8f}.scx-project-heading strong{font-size:18px;overflow-wrap:anywhere}
.scx-required{color:#bd2424;font-weight:800}.scx-app label.scx-invalid{color:#ac2424}
.scx-app label.scx-invalid input,.scx-app label.scx-invalid textarea,.scx-app label.scx-invalid select{border:2px solid #cd4242;background:#fff8f8}
.scx-theme-picker{border:1px solid #a8bfd4;border-radius:8px;padding:14px;margin:20px 0}.scx-theme-picker summary{color:#123b60}
.scx-theme-picker.scx-invalid{border:2px solid #cd4242;background:#fff8f8}.scx-theme-picker>div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding-top:18px}
.scx-app label.scx-check{display:flex;align-items:flex-start;gap:10px;font-weight:500;margin:0}.scx-app label.scx-check input{width:18px;min-height:18px;height:18px;margin:4px 0 0;flex-shrink:0;accent-color:#006bb6}
.scx-badge{background:#e6f2fc;color:#00599d}.scx-stats{grid-template-columns:repeat(5,minmax(0,1fr))}
.scx-turkey path.has-courses{fill:#79b4e0}.scx-turkey path.selected,.scx-turkey path:hover,.scx-turkey path:focus{fill:#367ab7;stroke:#164d7e}
.scx-login{border:1px solid #c7dced;border-top:6px solid #39a6c8;border-radius:14px;background:#f8fbff;color:#123b60}.scx-login h2{color:#00599d}.scx-login input[type=submit]{background:#006bb6;color:#fff;border:0;border-radius:7px;padding:12px 22px;cursor:pointer}
@media(max-width:850px){.scx-stats{grid-template-columns:repeat(3,minmax(0,1fr))}.scx-theme-picker>div{grid-template-columns:1fr}}
@media(max-width:520px){.scx-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.scx-project{padding:16px}.scx-project-heading{margin:-16px -16px 18px;padding:16px}.scx-project-heading>span{font-size:20px}}
.scx-app .scx-map-scroll{width:100%;overflow:hidden;background:#f5f9ff;max-height:65vh}
.scx-app .scx-turkey{display:block;width:100%;min-width:0;height:clamp(160px,42vw,500px);max-height:65vh;touch-action:pan-y;user-select:none}
.scx-app .scx-turkey.is-zoomed{touch-action:none;cursor:grab}.scx-app .scx-turkey.is-zoomed:active{cursor:grabbing}
.scx-app .scx-turkey path{fill:#e1edfa;stroke:#fff}.scx-app .scx-turkey path.has-courses{fill:#67a5d8}
.scx-app .scx-turkey path.selected,.scx-app .scx-turkey path:hover,.scx-app .scx-turkey path:focus{fill:#367ab7;stroke:#164d7e}
.scx-map-controls{margin:12px 0}.scx-map-controls output{font-size:13px;min-width:55px;text-align:center;color:#184f7e}.scx-map-controls small{color:#5a7189}
.scx-app small.scx-map-credit{display:block;font-size:8px;line-height:1.2;font-weight:400;color:#66788d;margin-top:6px;text-align:right}
.scx-app .scx-stats{grid-template-columns:repeat(auto-fit,minmax(120px,1fr))}
.scx-thumbnail-editor{margin:20px 0;padding:18px;border:1px solid #bed4ea;background:#f3f8ff;border-radius:12px}
.scx-app .scx-cover{display:block;width:180px;max-width:100%;height:120px;object-fit:cover;border-radius:8px;margin:10px 0}
.scx-app .scx-stats .scx-stat-card{position:relative;overflow:hidden;display:flex;align-items:center;gap:14px;min-height:132px;padding:22px 18px;border:1px solid #c8dff3;border-radius:17px;background:linear-gradient(135deg,#f8fcff,#e7f2ff);box-shadow:0 7px 18px #215c9610}
.scx-app .scx-stats .scx-stat-card::after{content:"";position:absolute;right:-30px;top:-35px;width:110px;height:110px;border-radius:50%;background:#8ebeea1c;pointer-events:none}
.scx-app .scx-stats .scx-stat-card>div{border:0;background:none;border-radius:0;padding:0;z-index:1}
.scx-app .scx-stats .scx-stat-icon{display:grid;place-items:center;flex:0 0 48px;width:48px;height:48px;background:#d2e7fa;border-radius:14px;color:#1664a4;z-index:1}
.scx-stat-icon svg{width:29px;height:29px}.scx-app .scx-stats .scx-stat-caption{font-size:13px;line-height:1.3;color:#28557e}.scx-app .scx-stats strong{font-size:34px;color:#075c9e}
.scx-app .scx-stats strong [data-stat-value]{font-size:inherit;line-height:1.1;color:inherit}
.scx-stats-enter .scx-stat-card{animation:scx-stat-enter .7s cubic-bezier(.16,1,.3,1) both;animation-delay:calc(var(--stat-index)*90ms)}
@keyframes scx-stat-enter{from{opacity:0;transform:translateY(22px) scale(.96)}to{opacity:1;transform:translateY(0) scale(1)}}
@media(max-width:650px){.scx-app .scx-stats .scx-stat-card{gap:10px;padding:17px 12px;min-height:118px}.scx-app .scx-stats .scx-stat-icon{flex-basis:36px;width:36px;height:36px;border-radius:11px}.scx-stat-icon svg{width:24px;height:24px}.scx-app .scx-stats strong{font-size:28px}}
@media(prefers-reduced-motion:reduce){.scx-stats-enter .scx-stat-card{animation:none!important;opacity:1;transform:none}}

.scx-app .scx-button[data-tab="training"]{background:#1266a5;color:#fff;border:2px solid #1266a5}
.scx-app .scx-button[data-tab][aria-pressed="true"]{box-shadow:0 0 0 3px #c3d9ec;text-decoration:underline;text-underline-offset:4px}
.scx-app .scx-review-tab {position:relative}
.scx-app .scx-pending-count {
  position:absolute;
  inset-block-start:-9px;
  inset-inline-end:-4px;
  display:grid;
  place-items:center;
  min-width:23px;
  height:23px;
  padding:0 5px;
  border:2px solid #fff;
  border-radius:99px;
  background:#fdbc22;
  color:#0a293e;
  font-size:12px;
  font-weight:750;
  line-height:1;
  text-decoration:none;
}
.scx-gallery-incomplete{border:2px solid #cd4242;background:#fff8f8}.scx-app .scx-thumbnail-editor .scx-photos>div{max-width:170px}

.scx-privacy-note{padding:14px 16px;border-left:4px solid #147a70;background:#e4f4ef;color:#124f47;border-radius:8px}

/* Colours sampled from the Powered by Scientix badge. */
.scx-app {
  --scx-marathon-blue:#5194cf;
  --scx-marathon-navy:#0a293e;
  --scx-marathon-yellow:#fdbc22;
  --scx-marathon-action:#235780;
}
.scx-app .scx-button[data-tab="marathon"] {
  background:var(--scx-marathon-action);
  border:2px solid var(--scx-marathon-action);
}
.scx-app .scx-button[data-tab="marathon"]:hover {background:var(--scx-marathon-navy)}
.scx-app .scx-button[data-tab="marathon"][aria-pressed="true"] {
  box-shadow:0 0 0 3px var(--scx-marathon-yellow);
}
.scx-app[data-kind="marathon"] {
  --scx-ink:var(--scx-marathon-navy);
  --scx-teal:var(--scx-marathon-action);
  --scx-line:#cbdff0;
  --scx-soft:#eef6fc;
}
.scx-app[data-kind="marathon"] .scx-hero {
  background:linear-gradient(115deg,var(--scx-marathon-navy),var(--scx-teal));
  border-bottom-color:var(--scx-marathon-yellow);
}
.scx-app[data-kind="marathon"] .scx-eyebrow {color:var(--scx-marathon-yellow)}
.scx-app[data-kind="marathon"] :is(.scx-project,.scx-map-scroll,.scx-record-date) {
  background:#f6faff;
}
.scx-app[data-kind="marathon"] .scx-project {border-color:var(--scx-line);border-left-color:var(--scx-marathon-blue)}
.scx-app[data-kind="marathon"] :is(.scx-project-heading,.scx-button.secondary,.scx-badge,th) {
  background:var(--scx-soft);
  color:var(--scx-ink);
}
.scx-app[data-kind="marathon"] .scx-project-heading>span {color:var(--scx-teal)}
.scx-app[data-kind="marathon"] .scx-privacy-note {
  background:#fff8e4;
  color:var(--scx-ink);
  border-left-color:var(--scx-marathon-yellow);
}
.scx-app[data-kind="marathon"] .scx-button:not(.secondary,.danger,[data-tab]):hover {
  background:var(--scx-marathon-navy);
}
.scx-app[data-kind="marathon"] .scx-button.secondary:hover {background:#dcecf8}
.scx-app[data-kind="marathon"] .scx-stats .scx-stat-card {
  background:linear-gradient(135deg,#fff,var(--scx-soft));
  border-color:var(--scx-line);
}
.scx-app[data-kind="marathon"] .scx-stats .scx-stat-icon {
  background:var(--scx-marathon-yellow);
  color:var(--scx-ink);
}
.scx-app[data-kind="marathon"] .scx-stats :is(strong,.scx-stat-caption) {color:var(--scx-ink)}
.scx-app .scx-turkey[data-map-kind="marathon"] path {fill:#dcecf8}
.scx-app .scx-turkey[data-map-kind="marathon"] path.has-courses {fill:var(--scx-marathon-blue)}
.scx-app .scx-turkey[data-map-kind="marathon"] path:is(.selected,:hover,:focus) {
  fill:var(--scx-marathon-action);
  stroke:var(--scx-marathon-navy);
}
.scx-hero:has(.scx-viewer) {
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:16px 24px;
}
.scx-hero-copy {min-width:0;flex:1 1 360px}
.scx-viewer {
  display:flex;
  align-items:center;
  gap:10px;
  max-width:100%;
  margin-inline-start:auto;
  padding:10px 16px;
  border:1px solid #ffffff66;
  border-radius:10px;
  background:#0002;
  color:#fff;
  text-align:end;
  overflow-wrap:anywhere;
}
.scx-viewer>div {display:grid;gap:3px;min-width:0}
.scx-viewer span {font-size:.85em}
.scx-app .scx-profile-avatar {
  display:block;
  width:48px;
  height:48px;
  flex:0 0 48px;
  object-fit:cover;
  border-radius:50%;
  border:2px solid #ffffffb3;
}
.scx-profile-names {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(min(100%,180px),1fr));
  gap:0 16px;
}
.scx-app label.scx-photo-publication {
  padding:12px;
  border:1px solid var(--scx-line);
  border-radius:8px;
  background:var(--scx-soft);
}
.scx-lightbox-bar,.scx-lightbox-navigation {
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:8px;
}
.scx-lightbox-bar {justify-content:space-between}
.scx-lightbox-navigation output {min-width:3em;text-align:center;color:var(--scx-ink)}
.scx-app .scx-lightbox img {max-height:65vh;margin-inline:auto}
.scx-app [data-credential-message] {min-height:6.5em}
.scx-zip-progress {margin-top:16px}
.scx-zip-progress progress {display:block;width:min(100%,420px);height:12px;accent-color:var(--scx-teal)}
.scx-zip-progress p {margin:8px 0 0}

.scx-directory-page .scx-directory-map {margin:0 0 18px}
.scx-directory-map-heading {
  display:flex;
  flex-wrap:wrap;
  align-items:end;
  justify-content:space-between;
  gap:12px 20px;
  margin-bottom:14px;
}
.scx-directory-map-heading h2 {margin:0;font-size:clamp(21px,3vw,28px)}
.scx-directory-map-heading p {margin:.35em 0 0}
.scx-directory-page .scx-directory-map-heading label {min-width:175px;margin:0}
.scx-directory-page .scx-turkey {height:clamp(190px,43vw,460px)}
.scx-directory-page .scx-turkey path {fill:#dcecf8}
.scx-directory-page .scx-turkey path.has-courses {fill:#5194cf}
.scx-directory-page .scx-turkey path:is(:hover,:focus-visible,.selected) {
  fill:#235780;
  stroke:#0a293e;
}
.scx-directory-marker {cursor:pointer}
.scx-directory-marker-frame {fill:#fff;stroke:#235780;stroke-width:1.6px}
.scx-directory-marker:hover .scx-directory-marker-frame,
.scx-directory-marker.selected .scx-directory-marker-frame {stroke:#0a293e;stroke-width:3px}
.scx-directory-page .scx-turkey .scx-directory-marker text {font-size:10px;font-weight:750;stroke:none}
.scx-directory-marker-count {fill:#0a293e;stroke:#fff;stroke-width:1px}
.scx-directory-page .scx-turkey .scx-directory-marker .scx-directory-marker-count-label {fill:#fff;font-size:8px}
.scx-directory-page .scx-turkey .scx-directory-marker .scx-directory-marker-province {
  fill:#0a293e;
  stroke:#fff;
  stroke-width:3px;
  font-size:11px;
  paint-order:stroke;
  pointer-events:visiblePainted;
}
.scx-directory-page .scx-directory-status {margin:0 0 12px;font-weight:700;color:#235780}
.scx-directory-page [data-directory-map] {position:relative}
.scx-directory-overlay {
  position:absolute;
  z-index:1;
  top:8px;
  left:8px;
  width:min(280px,calc(100% - 16px));
  max-height:calc(100% - 16px);
  overflow:auto;
  overscroll-behavior:contain;
  padding:12px;
  background:#fff;
  border:1px solid #b9d6ec;
  border-top:4px solid #5194cf;
  border-radius:13px;
  box-shadow:0 8px 24px #0a293e38;
}
.scx-directory-overlay-heading {display:flex;align-items:center;justify-content:space-between;gap:8px}
.scx-directory-page .scx-directory-overlay-heading h3 {margin:0;font-size:18px}
.scx-directory-page .scx-directory-overlay-heading .scx-button {min-height:34px;padding:2px 10px;font-size:21px}
.scx-directory-overlay [data-directory-overlay-empty] {margin:10px 0 2px}
.scx-directory-page .scx-directory-screen-reader {
  position:absolute;
  width:1px;
  height:1px;
  overflow:hidden;
  clip-path:inset(50%);
  white-space:nowrap;
}
.scx-directory-page .scx-directory[role="list"] {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));
  gap:18px;
  max-width:1200px;
  margin:0;
  padding:0;
  list-style:none;
}
.scx-directory .scx-directory-card {
  display:grid;
  grid-template-columns:auto minmax(0,1fr);
  align-items:center;
  gap:16px;
  min-height:126px;
  margin:0;
  padding:20px;
  background:linear-gradient(140deg,#fff,#edf6fd);
  border:1px solid #cbdff0;
  border-top:4px solid #5194cf;
  border-radius:16px;
  box-shadow:0 6px 18px #0a293e0d;
  transition:transform .2s ease,box-shadow .2s ease;
}
.scx-directory .scx-directory-card:hover {
  transform:translateY(-4px);
  box-shadow:0 10px 22px #0a293e1d;
}
.scx-directory .scx-directory-photo,.scx-directory .scx-directory-initials {
  display:grid;
  place-items:center;
  width:72px;
  height:72px;
  aspect-ratio:1;
  border:3px solid #fff;
  border-radius:50%;
  background:#d7eafb;
  color:#0a293e;
  box-shadow:0 0 0 1px #b9d6ec;
  object-fit:cover;
  font-size:21px;
  font-weight:750;
}
.scx-directory-province {display:block;font-size:13px;font-weight:700;color:#235780}
.scx-directory-name {display:block;font-size:18px;line-height:1.25;color:#0a293e;overflow-wrap:anywhere}
.scx-directory-demo {display:block;margin-top:3px;font-size:11px;color:#47627a}
.scx-directory-overlay .scx-directory[role="list"] {gap:8px;margin-top:8px}
.scx-directory-overlay .scx-directory-card {min-height:64px;padding:8px;gap:10px;border:1px solid #cbdff0}
.scx-directory-overlay .scx-directory-name {font-size:15px}
.scx-directory-overlay .scx-directory-photo,.scx-directory-overlay .scx-directory-initials {width:44px;height:44px;font-size:15px}
@media(max-width:520px){
  .scx-directory-overlay {
    width:min(224px,calc(100% - 16px));
    padding:8px;
  }
}
@media (prefers-reduced-motion:no-preference) {
  .scx-directory .scx-directory-card {
    animation:scx-directory-enter .48s cubic-bezier(.2,.8,.3,1) backwards;
    animation-delay:calc(var(--scx-directory-order)*65ms);
  }
}
@keyframes scx-directory-enter {
  from {opacity:0;transform:translateY(12px)}
  to {opacity:1;transform:translateY(0)}
}
@media (prefers-reduced-motion:reduce) {
  .scx-directory .scx-directory-card {transition:none}
  .scx-directory .scx-directory-card:hover {transform:none}
}
.scx-app .scx-activity-details {
  display:flex;
  flex-wrap:wrap;
  gap:2px 12px;
  margin:6px 0 0;
  font-size:13px;
  line-height:1.45;
}
.scx-activity-details div {min-width:0}
.scx-activity-details :is(dt,dd) {display:inline;margin:0}
.scx-activity-details dt {font-weight:700}
.scx-results td:has(.scx-activity-details) .scx-photos {margin:6px 0}
.scx-app .scx-record-date {
  display:inline-flex;
  flex-wrap:wrap;
  align-items:center;
  gap:3px 8px;
  margin:0 0 4px;
  padding:4px 9px;
  border:1px solid var(--scx-line);
  border-inline-start:3px solid var(--scx-teal);
  border-radius:7px;
  background:#f7f9fd;
  color:var(--scx-ink);
  font-size:13px;
  line-height:1.4;
}
.scx-record-date strong {color:var(--scx-teal)}
.scx-record-date-values {display:inline-flex;flex-wrap:wrap;gap:0 5px}
.scx-record-date time {white-space:nowrap}
.scx-date-connector {position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.scx-storage-usage {display:grid;grid-template-columns:repeat(auto-fit,minmax(145px,1fr));gap:12px}
.scx-storage-usage div {padding:12px 14px;border:1px solid var(--scx-line);border-radius:10px;background:var(--scx-soft)}
.scx-storage-usage dt {font-size:13px}
.scx-storage-usage dd {margin:3px 0 0;font-weight:750;font-size:1.3em}
.scx-period-actions .scx-button {margin:0 4px 4px 0}
