/* ================================================================
   Engineering Hub dashboard v2
   Quiet course selector for Year 9 and Year 12 Engineering.
   ================================================================ */

body.engineering-dashboard-v2 {
  --hub-cream: #f5efe5;
  --hub-paper: #fffdf9;
  --hub-purple: #633a8b;
  --hub-purple-deep: #4a2b67;
  --hub-purple-soft: #eee6f4;
  --hub-ink: #29313b;
  --hub-muted: #6c737c;
  --hub-line: #ddd6de;
  min-height: 100vh;
  margin: 0;
  background: var(--hub-cream);
  background-image: none;
  color: var(--hub-ink);
}

.engineering-dashboard-v2 .eng-hub-header {
  width: min(1180px, calc(100% - 30px));
  margin: 16px auto 0;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid rgba(99,58,139,.12);
  border-radius: 14px;
  background: rgba(255,253,249,.96);
  box-shadow: 0 5px 18px rgba(59,43,66,.05);
}

.eng-hub-brand {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
}

.eng-hub-brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  flex: 0 0 38px;
  border-radius: 10px;
  background: var(--hub-purple);
  color: #fff;
  font: 800 1rem/1 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.eng-hub-brand strong,
.eng-hub-brand small {
  display: block;
}

.eng-hub-brand strong {
  color: var(--hub-ink);
  font-size: .9rem;
}

.eng-hub-brand small {
  margin-top: 1px;
  color: var(--hub-muted);
  font-size: .68rem;
}

.eng-hub-return {
  color: #5d5262;
  font-size: .76rem;
  font-weight: 800;
  text-decoration: none;
}

.eng-hub-return:hover,
.eng-hub-return:focus-visible {
  color: var(--hub-purple-deep);
}

.eng-hub-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(34px, 6vw, 72px) 0 50px;
}

.eng-hub-intro {
  max-width: 760px;
  margin-bottom: clamp(28px, 5vw, 46px);
}

.eng-hub-kicker {
  margin: 0 0 7px;
  color: var(--hub-purple);
  font-size: .69rem;
  font-weight: 900;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.eng-hub-intro h1 {
  margin: 0;
  color: var(--hub-purple-deep);
  font: 700 clamp(2.5rem, 5.6vw, 4.8rem)/.95 Georgia, "Times New Roman", serif;
  letter-spacing: -.045em;
}

.eng-hub-intro > p:last-child {
  max-width: 710px;
  margin: 14px 0 0;
  color: var(--hub-muted);
  font-size: clamp(.96rem, 1.5vw, 1.05rem);
  line-height: 1.62;
}

.eng-hub-pathways {
  display: grid;
  gap: 14px;
}

.eng-hub-pathway {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(230px, 32%) minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--hub-line);
  border-radius: 16px;
  background: var(--hub-paper);
  color: inherit;
  text-decoration: none;
  box-shadow: 0 7px 24px rgba(55,43,60,.045);
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.eng-hub-pathway:hover,
.eng-hub-pathway:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(99,58,139,.34);
  box-shadow: 0 12px 30px rgba(55,43,60,.075);
}

.eng-hub-pathway-media {
  min-height: 250px;
  overflow: hidden;
  background: #eee8f1;
  position: relative;
}

.eng-hub-pathway-media::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset -1px 0 rgba(56,42,61,.08);
  pointer-events: none;
}

.eng-hub-pathway-media img {
  width: 100%;
  height: 100%;
  min-height: 250px;
  display: block;
  object-fit: cover;
  object-position: center;
  filter: saturate(.82) contrast(.97);
  transition: transform .2s ease, filter .2s ease;
}

.eng-hub-pathway:hover .eng-hub-pathway-media img {
  transform: scale(1.015);
  filter: saturate(.92) contrast(1);
}

.eng-hub-pathway-copy {
  min-width: 0;
  padding: clamp(22px, 3.3vw, 34px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.eng-hub-pathway-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: center;
  margin-bottom: 10px;
}

.eng-hub-pathway-meta span:first-child {
  color: var(--hub-purple);
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.eng-hub-pathway-meta span:last-child {
  padding-left: 10px;
  border-left: 1px solid #d8d0da;
  color: #827887;
  font-size: .7rem;
  font-weight: 750;
}

.eng-hub-pathway h2 {
  max-width: 660px;
  margin: 0;
  color: var(--hub-ink);
  font: 700 clamp(1.55rem, 2.8vw, 2.25rem)/1.08 Georgia, "Times New Roman", serif;
  letter-spacing: -.02em;
}

.eng-hub-pathway-copy > p:not(.eng-hub-pathway-tools) {
  max-width: 700px;
  margin: 12px 0 0;
  color: var(--hub-muted);
  font-size: .9rem;
  line-height: 1.56;
}

.eng-hub-pathway-tools {
  margin: 15px 0 0;
  color: #7b6d80;
  font-size: .74rem;
  font-weight: 750;
  line-height: 1.5;
}

.eng-hub-open {
  margin-top: 20px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--hub-purple-deep);
  font-size: .82rem;
  font-weight: 900;
}

.eng-hub-open span {
  transition: transform .16s ease;
}

.eng-hub-pathway:hover .eng-hub-open span {
  transform: translateX(4px);
}

.eng-hub-help {
  margin-top: 20px;
  padding: 15px 17px;
  display: flex;
  gap: 10px 14px;
  align-items: baseline;
  border-top: 1px solid var(--hub-line);
  color: var(--hub-muted);
}

.eng-hub-help strong {
  flex: 0 0 auto;
  color: var(--hub-ink);
  font-size: .78rem;
}

.eng-hub-help p {
  margin: 0;
  font-size: .76rem;
  line-height: 1.5;
}

.eng-hub-help b {
  color: #514658;
}

.eng-hub-footer {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 28px;
  color: #8a818c;
  font-size: .7rem;
}

.eng-hub-footer p {
  margin: 0;
}

@media (max-width: 780px) {
  .engineering-dashboard-v2 .eng-hub-header {
    width: calc(100% - 18px);
    margin-top: 9px;
    padding: 8px 10px;
  }

  .eng-hub-brand small {
    display: none;
  }

  .eng-hub-shell {
    width: calc(100% - 20px);
    padding-top: 30px;
  }

  .eng-hub-intro h1 {
    font-size: clamp(2.35rem, 13vw, 3.4rem);
  }

  .eng-hub-pathway {
    grid-template-columns: 1fr;
  }

  .eng-hub-pathway-media,
  .eng-hub-pathway-media img {
    min-height: 0;
    height: 190px;
  }

  .eng-hub-pathway-copy {
    padding: 20px 18px 22px;
  }

  .eng-hub-pathway-meta {
    display: block;
  }

  .eng-hub-pathway-meta span {
    display: block;
  }

  .eng-hub-pathway-meta span:last-child {
    margin-top: 3px;
    padding-left: 0;
    border-left: 0;
  }

  .eng-hub-pathway h2 {
    font-size: 1.55rem;
  }

  .eng-hub-help {
    display: block;
    padding-inline: 2px;
  }

  .eng-hub-help p {
    margin-top: 5px;
  }
}


/* Round 2 dashboard polish */
.eng-hub-pathway-media--year12 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 1px;
  padding: 1px;
  background: #ded8df;
}

.eng-hub-pathway-media--year12::after {
  display: none;
}

.eng-hub-pathway-media--year12 img {
  width: 100%;
  height: 100%;
  min-height: 0;
  display: block;
  object-fit: contain;
  object-position: center;
  padding: 10px;
  background: #fff;
  filter: none;
  transition: none;
}

.eng-hub-pathway:hover .eng-hub-pathway-media--year12 img {
  transform: none;
  filter: none;
}

.eng-hub-pathway h2 {
  max-width: 720px;
}

/* Bespoke Year 12 Engineering visual */
.eng-hub-pathway-media--year12.eng-hub-year12-hero {
  display: block;
  padding: 0;
  background-image:
    linear-gradient(90deg, rgba(246,240,229,.06), rgba(99,58,139,.08)),
    url("dashboard-year12-workbench.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.eng-hub-pathway-media--year12.eng-hub-year12-hero::after {
  display: block;
  background: linear-gradient(90deg, rgba(255,253,249,.03), rgba(76,40,111,.08));
  box-shadow: inset -1px 0 rgba(56,42,61,.08);
}


/* Year 12 bridge card visual */
.eng-hub-pathway-media--year12-bridge {
  display: grid;
  place-items: center;
  padding: 18px;
  background: #eee6f4;
}

.eng-hub-pathway-media--year12-bridge img {
  width: 100%;
  height: 100%;
  min-height: 0;
  display: block;
  object-fit: contain;
  object-position: center;
  filter: none;
}

.eng-hub-pathway:hover .eng-hub-pathway-media--year12-bridge img {
  transform: none;
  filter: none;
}
