.path-opening {
  margin-top: 1rem;
  display: grid;
  gap: 1.25rem;
  background: #203f34;
  color: #fffaee;
  padding: clamp(1.5rem, 5vw, 4rem);
}
.path-opening-photo { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: center; }
.path-opening h1 { color: inherit; margin: .5rem 0 1rem; font-size: clamp(2.8rem, 7.8vw, 6.25rem); line-height: .94; }
.path-opening h1 em, .path-opening .eyebrow { color: #d2dda4; }
.path-opening p { margin: 0; max-width: 38rem; color: #eef1e5; }
.path-opening figure { margin: 0; }
.path-opening img { width: 100%; display: block; object-fit: cover; aspect-ratio: 5 / 4; }
.path-opening figcaption { padding-top: .45rem; font-size: .85rem; }
.path-content { padding-block: 1.25rem 3rem; }
.path-content > * + * { margin-top: 1rem; }
.path-nav, .path-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem 1rem; }
.path-link, .path-return { color: #23483b; text-underline-offset: .2em; text-decoration: underline; font-weight: 700; }
.path-link { display: inline-flex; min-height: 44px; align-items: center; }
.path-grid, .path-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.path-mentors { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.path-card, .path-filters, .path-callout, .path-certificate { min-width: 0; padding: clamp(1rem, 3vw, 2rem); border: 1px solid #a9b9ac; background: #fffcf4; }
.path-card h2, .path-callout h2, .path-certificate h2 { font-size: clamp(1.8rem, 3.6vw, 3rem); line-height: 1.03; margin: 0 0 .65rem; color: #203f34; }
.path-meta, .path-callout { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .65rem; }
.path-meta { margin-bottom: .6rem; }
.path-tag { display: inline-block; background: #e8eee2; color: #23483b; border: 1px solid #a9bcab; padding: .25rem .55rem; font-size: .86rem; font-weight: 700; }
.path-filters, .path-callout { background: #edf0e5; }
.path-button {
  background: #23483b;
  border: 1px solid #23483b;
  color: #fffaf1;
  border-radius: .25rem;
  padding: .55rem .85rem;
  min-height: 44px;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  text-align: left;
}
.path-button:hover { background: #355e4f; }
.path-options { min-width: 0; border: 0; padding: 0; margin: .9rem 0; }
.path-options legend { font-weight: 750; }
.path-options > div { display: flex; flex-wrap: wrap; gap: .45rem; }
.path-options label {
  min-height: 44px;
  max-width: 100%;
  display: flex;
  align-items: center;
  gap: .45rem;
  padding: .45rem .7rem;
  background: #fffcf4;
  border: 1px solid #a9b9ac;
  border-radius: .3rem;
  cursor: pointer;
}
.path-options label:has(:checked) { background: #dfeadb; border-color: #476d58; }
.path-options input { accent-color: #23483b; }
.path-fields { margin: .8rem 0; }
.path-fields label { display: grid; gap: .25rem; font-weight: 700; }
.path-fields input { width: 100%; min-height: 44px; padding: .5rem; border: 1px solid #a9b9ac; font: inherit; }
.path-facts { display: flex; flex-wrap: wrap; gap: .6rem; }
.path-facts div { background: #e8eee2; padding: .55rem .8rem; flex: 1 1 9rem; }
.path-facts dt { font-weight: 700; }
.path-facts dd { margin: 0; }
.path-status { background: #eef1e6; border-inline-start: 3px solid #476d58; margin: .85rem 0; padding: .75rem 1rem; }
.path-status p { margin: .35rem 0; }
.path-history { margin: .5rem 0 0; padding-left: 1.2rem; }
.path-listing details, .path-review-item { border-top: 1px solid #c5d0c5; padding: .7rem 0; }
.path-listing summary { cursor: pointer; font-weight: 700; min-height: 44px; }
.path-certificate { text-align: center; padding-block: 2.5rem; border: 4px double #476d58; }
.path-certificate > strong { font: 2.15rem var(--serif, Georgia); color: #23483b; }
.path-note { font-size: .9rem; color: #4d5d54; }
:is(.path-content, .path-opening) :focus-visible { outline: 3px solid #946036; outline-offset: 3px; }
@media (max-width: 760px) {
  .path-grid, .path-opening-photo { grid-template-columns: minmax(0, 1fr); }
  .path-opening img { aspect-ratio: 16 / 9; }
}
@media (max-width: 420px) {
  .path-fields { grid-template-columns: minmax(0, 1fr); }
}

.circle-steps li { margin-block: .45rem; }
.circle-language { margin-top: 1rem; padding-top: .75rem; border-top: 1px solid #a9b9ac; }
.circle-language summary { cursor: pointer; font-weight: 700; min-height: 44px; }
.circle-language button:disabled { opacity: .65; cursor: default; }
.circle-sheet table { width: 100%; border-collapse: collapse; }
.circle-sheet th, .circle-sheet td { padding: .42rem .5rem; text-align: left; vertical-align: top; border-bottom: 1px solid #a9b9ac; }
.circle-sheet th:first-child, .circle-sheet td:first-child { white-space: nowrap; }
@media print {
  body[data-route="bo-facilitator-sheet"] > :not(main),
  body[data-route="bo-facilitator-sheet"] main > :not(.path-content),
  body[data-route="bo-facilitator-sheet"] .path-content > :not(.circle-sheet) { display: none !important; }
  body[data-route="bo-facilitator-sheet"] { background: white; color: black; font-size: 11pt; }
  body[data-route="bo-facilitator-sheet"] .path-content { width: 100%; max-width: none; margin: 0; padding: 0; }
  body[data-route="bo-facilitator-sheet"] .circle-sheet { padding: 0; border: 0; background: white; }
  body[data-route="bo-facilitator-sheet"] h2 { font-size: 21pt; }
  body[data-route="bo-facilitator-sheet"] h3 { font-size: 14pt; }
  body[data-route="bo-facilitator-sheet"] tr { break-inside: avoid; }
}

/* Learning pathways use the Hub's warm paper, plum and rose. */
.path-opening {
  background: var(--hub-plum);
  color: #fff4e3;
  border-radius: 7px 28px 7px 7px;
}
.path-opening h1 em, .path-opening .eyebrow { color: #f0c8a9; }
.path-opening p { color: #fff4e3; }
.path-card, .path-filters, .path-callout, .path-certificate {
  border-color: #d9c5bb;
  background: var(--paper);
  border-radius: 7px 18px 7px 7px;
}
.path-card h2, .path-callout h2, .path-certificate h2, .path-certificate > strong { color: #513447; }
.path-link, .path-return { color: #653f54; }
.path-tag, .path-status, .path-facts div, .path-filters, .path-callout {
  background: var(--hub-plum-tint);
  color: #4c3342;
  border-color: #b99aa5;
}
.path-button { background: var(--hub-plum); border-color: var(--hub-plum); border-radius: 5px 10px 5px 5px; }
.path-button:hover { background: #71495f; }
.path-options label { border-color: #c8aeb5; background: var(--paper); }
.path-options label:has(:checked) { background: #f0dfe4; border-color: #89586b; }
.path-options input { accent-color: #713e58; }
.path-listing details, .path-review-item, .circle-language { border-color: #d9c5bb; }
.path-workspace-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding-block: 1.25rem 0;
}
.path-workspace-heading h1 { font-size: clamp(2.45rem, 5.2vw, 4.35rem); line-height: .98; margin: .3rem 0 .6rem; }
.path-workspace-heading h1 em { color: #9b5868; }
.path-workspace-heading .eyebrow { margin: 0; }
.path-workspace-heading p:not(.eyebrow) { max-width: 60ch; margin: .35rem 0 0; }
.path-workspace-heading .learner-demo { max-width: 16rem; align-self: end; }
.path-workspace-intro {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: .35rem 1.1rem;
  margin: 0 0 1rem;
  padding: .65rem 0;
  border-block: 1px solid var(--hub-rule);
  color: var(--hub-plum);
}
.path-workspace-intro h2 { font: 700 1.05rem var(--hub-reading); margin: 0; }
.path-workspace-intro p { margin: 0; max-width: 56ch; color: var(--ink); }
.path-workspace { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 1rem; align-items: start; }
.path-workspace aside > * + * { margin-top: .85rem; }
.path-role-tabs [aria-pressed="false"] { color: #56354b; background: #fff8ef; border-color: #ad8897; }
.path-role-tabs [aria-pressed="false"]:hover { background: #f1e3e6; }
.path-reference { font-size: .9rem; color: #6d475b; }
.path-workspace .path-facts div { flex-basis: 8rem; }
.portfolio-preview { margin: .8rem 0; border: 1px solid #d9c5bb; border-radius: 7px 12px 7px 7px; overflow: hidden; }
.portfolio-preview figcaption { padding: .55rem .8rem; background: var(--hub-plum-tint); color: #56354b; font-weight: 700; }
.portfolio-preview iframe { display: block; border: 0; width: 100%; height: 18.5rem; }
@media (max-width: 760px) {
  .path-workspace-heading { display: block; }
  .path-workspace-heading .learner-demo { margin-top: .65rem; }
  .path-workspace { grid-template-columns: 1fr; }
}
.path-button:disabled { opacity: .62; cursor: default; }
.path-workspace .path-options > label { margin-bottom: .45rem; }
@media (max-width: 760px) {
  .path-workspace-heading h1 { font-size: clamp(2.4rem, 10vw, 3.4rem); }
}

.ops-records { list-style: none; margin: 0; padding: 0; }
.ops-records li { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,.7fr) minmax(0,1.1fr); gap: .85rem; border-top: 1px solid #d9c5bb; padding-block: 1rem; }
.ops-records h3, .ops-metrics h3 { color: #513447; font-size: 1.45rem; line-height: 1.1; margin: .35rem 0 .5rem; }
.ops-records .eyebrow, .ops-next p, .ops-records dl { margin: 0 0 .5rem; }
.ops-records dt { font-weight: 700; }
.ops-records dd { margin: 0 0 .35rem; }
.ops-next strong { display: block; color: #513447; }
.ops-metrics { grid-template-columns: repeat(3,minmax(0,1fr)); }
.ops-metrics article { background: var(--hub-plum-tint); border-radius: 6px 12px 6px 6px; padding: .8rem; }
.ops-metrics article > strong { font: 400 1.65rem Georgia, serif; color: #513447; }
@media (max-width: 760px) {
  .ops-records li, .ops-metrics { grid-template-columns: 1fr; }
  .ops-records dl { display: flex; flex-wrap: wrap; gap: 1rem; }
}

.tech-brief { margin: .8rem 0 0; padding-inline-start: 1.25rem; }
.tech-brief li { padding-block: .4rem; }
.tech-brief li span { display: block; }

.tech-opening {
  padding-block: clamp(1.1rem, 3vw, 2.6rem) 1rem;
}
.tech-opening .eyebrow { margin: 0 0 .6rem; }
.tech-opening h1 { font: 400 clamp(3rem, 6vw, 5.75rem)/.91 Instrument, Georgia, serif; letter-spacing: -.025em; margin: 0 0 1rem; }
.tech-opening h1 em { color: var(--hub-berry); }
.tech-opening h1 + p { max-width: 39ch; margin: 0 0 .65rem; font-size: 1.13rem; }
.path-content .path-role-tabs { border-bottom: 1px solid #cab7bd; gap: .4rem; padding-bottom: .6rem; }
.path-role-tabs .path-button { line-height: 1.2; }
.path-role-tabs [aria-pressed="true"] { box-shadow: inset 0 -3px #d4ae95; }
.path-options label:has(:focus-visible) { outline: 2px solid #825466; outline-offset: 2px; }
.path-button:disabled { cursor: default; opacity: .66; }
.path-content .path-status > strong { color: #4d3043; font-size: 1.14rem; }
[data-route="operations"] .ops-records li { padding-inline: clamp(.65rem, 2vw, 1.2rem); }
[data-route="operations"] .ops-records li:nth-child(odd) { background: var(--sage); }
[data-route="operations"] .ops-records h3 { font-family: Instrument, Georgia, serif; font-size: 1.72rem; }
[data-foundation-handoff][hidden] { display: none; }
[data-foundation-handoff] .path-button { display: inline-flex; align-items: center; gap: .4rem; }

.path-workspace-heading h1, .tech-opening h1 { font: 400 var(--hub-heading)/.97 var(--hub-display); letter-spacing: -.035em; }

.path-content .path-workspace .path-card h2,
.path-content .ops-queue h2, .ops-records h3 {
  font: 650 var(--hub-task)/1.14 var(--hub-reading);
  letter-spacing: -.025em;
}
.path-workspace > section.path-card { border-top: 3px solid #785068; }
.path-workspace aside .path-card { background: #f5ebe6; border-color: #dcc9c5; }
.path-content .path-role-tabs [aria-pressed="true"] { box-shadow: inset 0 -3px #d4ae95; }
.path-content .path-status > strong { font-size: 1.12rem; font-weight: 750; }
.path-content :is(.path-tag, .ops-records time) { font-variant-numeric: tabular-nums; }
.path-content .path-options label, .path-content .path-button { font-weight: 650; line-height: 1.25; }
.path-role-tabs > summary { cursor: pointer; min-height: 44px; padding-block: .6rem; color: #56354b; font-weight: 700; }
.path-role-tabs[open] > .path-nav { margin-block: .2rem .45rem; }
.project-changes { margin-block: .85rem; padding: .85rem 1rem; border-inline-start: 3px solid #785068; background: #f1e8ee; }
.project-changes h3 { font: 700 1.08rem/1.25 var(--hub-reading); margin: 0 0 .4rem; }
.project-changes dl, .project-changes dd { margin: 0; }
.project-changes dl > div + div { margin-top: .6rem; padding-top: .55rem; border-top: 1px solid #cbb9c3; }
.project-changes dt { font-weight: 700; }
.project-changes dd { overflow-wrap: anywhere; }
.project-changes dd span { font-weight: 650; color: #68455b; }
.path-content [tabindex="-1"] { scroll-margin-top: 1rem; }

[data-route="operations"] :is(.path-opening, .path-button) { background: var(--hub-forest); border-color: var(--hub-forest); }
[data-route="operations"] .path-button:hover { background: #254e3c; }
.path-tag[data-tone="ready"] { color: #18533d; background: #e2f2ea; border-color: #8ba896; }
.path-tag[data-tone="pending"] { color: #68460b; background: #fff1cf; border-color: #a88a52; }
.path-tag[data-tone="unavailable"] { color: #8a2c32; background: #fbe9eb; border-color: #c38587; }

[data-route="operations"] .path-workspace-heading { padding-block: clamp(1.1rem, 3vw, 2.25rem) .7rem; }
[data-route="operations"] .path-workspace-heading h1 { font-size: clamp(2.55rem, 5vw, 4.45rem); color: var(--hub-forest); }
[data-route="operations"] .ops-queue { padding-inline: 0; border: 0; border-top: 2px solid var(--hub-forest); border-radius: 0; }
.ops-queue-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
[data-route="operations"] .ops-followup { margin-block: .65rem 1.3rem; }

/* Programme records and learning work use rows, ruled sections and quiet status panels. */
.path-opening { border-radius: 0; box-shadow: none; background: var(--hub-plum); }
.path-opening img { object-fit: contain; height: auto; aspect-ratio: auto; }
.path-content :is(.path-card, .path-filters, .path-callout) {
  background: var(--paper);
  border: 0;
  border-radius: 0;
  border-block-start: 1px solid var(--hub-rule);
  box-shadow: none;
  padding: clamp(.75rem, 2.25vw, 1.4rem) 0;
}
.path-content .path-filters { border-block: 1px solid var(--hub-rule); }
.path-content .path-workspace { gap: var(--hub-gap); }
.path-content .path-workspace > section.path-card { border-block-start: 2px solid var(--hub-plum); }
.path-content .path-grid { column-gap: var(--hub-gap); }
.path-content .path-listing { border-color: var(--hub-rule); }
.path-content :is(.path-link, .path-return) { min-height: var(--hub-control); }
.path-content .path-button { min-height: var(--hub-control); border-radius: .15rem; }
.path-content .path-options label { border-radius: .15rem; }
.path-content .path-options label:has(:checked) { background: var(--hub-plum-tint); box-shadow: inset 2px 0 var(--hub-plum); }
.path-content .path-fields input { border-color: var(--hub-control-border); border-radius: .15rem; }
.path-content .path-status { background: var(--hub-plum-tint); border-inline-start-color: var(--hub-plum); border-radius: 0; }
.path-content .path-status > .path-history { padding-left: 0; }
.path-history summary { width: fit-content; min-height: var(--hub-control); padding-block: .55rem; cursor: pointer; }
.path-history ol { margin: .2rem 0 .45rem; padding-inline-start: 1.2rem; }
.path-content .path-role-tabs { margin-block: .55rem .75rem; }

@media print {
  body[data-route="bo-facilitator-sheet"] .path-content .circle-sheet { padding: 0; border: 0; background: white; }
}

[data-route^="girls-in-tech"] .tech-opening {
  padding-block: clamp(1rem, 3vw, 2.15rem);
  background: var(--hub-plum-tint);
  border-bottom: 1px solid var(--hub-rule);
}
[data-route^="girls-in-tech"] .tech-opening h1 {
  font-size: clamp(2.65rem, 5.5vw, 4.75rem);
}
[data-route^="girls-in-tech"] .portfolio-preview {
  border: 1px solid var(--hub-rule);
  border-top: 3px solid var(--hub-plum);
  background: var(--paper);
}
[data-route^="girls-in-tech"] .portfolio-preview figcaption {
  color: var(--hub-plum);
  font-weight: 750;
}
[data-route^="girls-in-tech"] .tech-opening [data-foundation-handoff] { margin: .3rem 0 0; }
[data-route="operations"] .ops-records :is(dd,dt) { font-variant-numeric: tabular-nums; }
.tech-approved-action {
  margin: 0;
  padding: .75rem .8rem;
  border-bottom: 1px solid var(--hub-rule);
}
.tech-approved-action strong, .tech-approved-action span { display: block; }
.tech-approved-action span { color: var(--hub-plum); font-size: 1.1rem; }

/* Prioritize learner work and queue decisions over introductory panels. */
[data-route="girls-in-tech"] .tech-opening { padding-block: clamp(.95rem, 2.25vw, 1.65rem); }
[data-route="girls-in-tech"] .tech-opening h1 { font-size: clamp(2.55rem, 4.5vw, 4.2rem); margin-block-end: .55rem; }
[data-route="girls-in-tech"] .tech-opening h1 + p { max-width: 58ch; margin-block-end: .4rem; }
[data-route="girls-in-tech"] .path-role-tabs { padding-block: 0; margin-block: .35rem; }
[data-route="girls-in-tech"] .path-role-tabs summary { min-height: 44px; padding-block: .6rem; }
[data-route="girls-in-tech"] .path-workspace aside .path-card { padding-inline: clamp(.7rem, 1.6vw, 1.3rem); }
[data-route="girls-in-tech"] .tech-submit-row { margin-block: .6rem .85rem; }
[data-route="operations"] .ops-records li {
  background: transparent;
  border: 1px solid var(--hub-rule);
  border-inline-start: 3px solid #8a9a87;
  margin-block: .55rem;
}
[data-route="operations"] .ops-records li:nth-child(odd) { background: transparent; }
[data-route="operations"] .ops-records h3 {
  color: var(--hub-forest);
  font: 690 var(--hub-task)/1.15 var(--hub-reading);
}
[data-route="operations"] .ops-next p { line-height: 1.4; }
.path-content :is(.path-tag,.learner-demo) { font-size: var(--experience-meta-text, .78rem); }
.path-content .path-button:disabled { opacity: 1; color: #58554e; background: #e8e3d9; border-color: #a89d90; cursor: not-allowed; }
.path-content :is(.path-options,.path-fields) { min-inline-size: 0; }
.path-content .path-options label { overflow-wrap: anywhere; }

/* Keep the context switch close to the record, visible without a disclosure. */
.path-content .path-role-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .4rem;
  max-width: 37rem;
  margin-block: .5rem .7rem;
  padding-block: 0;
  border: 0;
}
.path-content .path-role-switch .path-button {
  min-height: 44px;
  padding: .52rem .58rem;
  justify-content: center;
  text-align: center;
  white-space: normal;
}
.path-content .path-role-switch [aria-pressed="true"] {
  color: var(--hub-plum);
  background: var(--hub-plum-tint);
  border-color: var(--hub-plum);
  box-shadow: inset 0 -2px var(--hub-plum);
}
@media (max-width: 720px) {
  .path-workspace-heading { padding-block: 1.05rem .7rem; }
  .path-content .path-workspace { row-gap: .8rem; }
}

.pathway-group { margin-block: 1rem 1.5rem; }
.pathway-group > h2 { color: var(--hub-plum); font: 400 var(--hub-section)/1.05 var(--hub-display); margin: 0 0 .45rem; }
.pathway-group .path-card h3 { color: var(--hub-plum); font: 680 var(--hub-task)/1.15 var(--hub-reading); margin: 0; }
.listing-filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem 1rem; max-width: 42rem; }
.listing-filters label { display: grid; gap: .2rem; font-weight: 650; min-width: 0; }
.listing-filters select { color: var(--ink); background: var(--paper); border: 1px solid var(--hub-control-border); min-height: 44px; padding-inline: .55rem; width: 100%; }
@media (max-width: 360px) { .listing-filters { grid-template-columns: minmax(0, 1fr); } }

.portfolio-submission {
  margin-block: .8rem;
  border-block: 1px solid var(--line);
}
.portfolio-submission summary {
  min-height: 44px;
  padding-block: .65rem;
  font-weight: 650;
  color: var(--hub-plum);
  cursor: pointer;
}
.portfolio-submission .portfolio-preview { margin-block: 0 .8rem; }

.enterprise-desk { display: grid; grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr); gap: clamp(1rem,3vw,2rem); align-items: start; }
.enterprise-desk > .path-card { margin: 0; }
.enterprise-brief .path-facts { grid-template-columns: minmax(0,1fr); }
.enterprise-work form + .enterprise-result { margin-block: 1rem; }
.enterprise-result { background: var(--sage); border-inline-start: 3px solid var(--hub-forest); padding: .8rem 1rem; }
.enterprise-result h3 { margin: 0; font-size: 1.25rem; }
.path-task-index { display: flex; flex-wrap: wrap; align-items: stretch; gap: .35rem; margin-block: 0 1.2rem; }
.path-task-index button { min-height: 44px; color: var(--hub-plum); background: var(--rose); border: 1px solid var(--line); padding: .4rem .75rem; font: inherit; font-weight: 650; text-align: start; }
.path-task-index button:hover { background: var(--sage); }
[data-route="mentorship"] :is(#mentor-check legend, #mentor-selection h2, #mentorship-session h2) { scroll-margin-top: 1rem; }
[data-route="mentorship"] #mentor-selection { margin-block: clamp(1.3rem,4vw,2.1rem); }
@media(max-width: 730px) {
  .enterprise-desk { grid-template-columns: minmax(0,1fr); }
  .path-task-index button { flex: 1 1 100%; }
}
