.portal-page {
  padding-top: 44px;
  padding-bottom: 76px;
}
.portal-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
  margin-bottom: 34px;
}
.portal-account-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: -12px 0 20px;
}
.portal-account-row p {
  margin: 0;
  font-size: 16px;
}
.portal-account-row button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 0 8px 12px;
  border: 0;
  background: transparent;
  color: var(--heath);
  font: 16px/1.3 var(--sans);
  cursor: pointer;
}
.portal-account-row button:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}
.portal-account-row svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}
.portal-heading .eyebrow {
  margin: 0 0 15px;
}
.portal-heading h1 {
  margin: 0;
  font-size: clamp(34px, 4vw, 58px);
  line-height: 1.05;
  font-weight: 500;
}
.portal-project-type {
  margin: 12px 0 0;
  font-size: 17px;
}
.portal-attention {
  display: flex;
  align-items: center;
  gap: 11px;
  background: var(--wood);
  color: var(--ink);
  border-left: 3px solid var(--tapa);
  padding: 14px 18px;
  font-size: 17px;
}
.portal-status-square {
  width: 11px;
  height: 11px;
  border: 1px solid var(--heath);
  background: var(--paper);
  flex: 0 0 auto;
}
.portal-journey {
  padding: 22px 22px 16px;
  border: 1px solid var(--wood);
  margin-bottom: 30px;
  background: var(--paper);
}
.portal-journey-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}
.portal-journey-heading h2 {
  font-size: 25px;
  font-weight: 500;
  line-height: 1.15;
  margin: 0;
}
.portal-journey-heading p {
  margin: 0;
  font-family: var(--mono);
  font-size: 12px;
  white-space: nowrap;
}
.portal-journey-heading strong {
  color: var(--heath);
  font-weight: 600;
}
.portal-journey-map {
  position: relative;
  margin-top: 22px;
  padding: 0 15px;
}
.portal-connector {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}
.portal-connector path {
  fill: none;
  vector-effect: non-scaling-stroke;
  stroke-linecap: square;
  stroke-linejoin: miter;
}
.portal-connector-track {
  stroke: var(--wood);
  stroke-width: 1.5px;
}
.portal-connector-fill {
  stroke: var(--heath);
  stroke-width: 2px;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}
.portal-stages {
  position: relative;
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  gap: 0;
  list-style: none;
  padding: 0;
  margin: 0;
}
.portal-stages li {
  min-width: 0;
}
.portal-stages button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-width: 0;
  min-height: 90px;
  padding: 5px 2px 12px;
  border: 0;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  font-family: var(--sans);
}
.portal-stage-number {
  position: relative;
  display: grid;
  place-items: center;
  height: 32px;
  width: 32px;
  flex: 0 0 32px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--tapa);
  font-family: var(--mono);
  font-size: 13px;
}
.portal-stage-number svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}
.portal-stage-label {
  font-size: 14px;
  line-height: 1.2;
  font-weight: 500;
  text-align: center;
}
.portal-stage-state {
  font-size: 12px;
  line-height: 1.2;
  text-align: center;
}
.portal-stages .is-complete .portal-stage-number {
  background: var(--heath);
  color: var(--paper);
  border-color: var(--heath);
}
.portal-stages .is-current .portal-stage-number {
  background: var(--wood);
  color: var(--heath);
  border: 2px solid var(--heath);
}
.portal-stages .is-current .portal-stage-state {
  color: var(--heath);
  font-weight: 600;
}
.portal-stages .is-selected .portal-stage-label {
  color: var(--heath);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
.portal-stages button:hover .portal-stage-number {
  border-color: var(--heath);
}
.portal-stages button:focus-visible {
  outline: 2px solid var(--heath);
  outline-offset: 2px;
}
.portal-journey-hint {
  margin: 3px 0 0;
  font-size: 13px;
  line-height: 1.35;
}
/* One workspace, one visible panel. */
.portal-workspace {
  border: 1px solid var(--wood);
}
.portal-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  background: var(--wood);
  border-bottom: 1px solid var(--heath);
}
.portal-tabs button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 68px;
  padding: 16px 32px;
  border: 0;
  border-right: 1px solid var(--paper);
  color: var(--heath);
  background: transparent;
  font-size: 18px;
  font-weight: 500;
  cursor: pointer;
  transition:
    background 180ms ease,
    color 180ms ease;
}
.portal-tabs button:last-child {
  border-right: 0;
}
.portal-tabs button[aria-selected="true"] {
  background: var(--heath);
  color: var(--paper);
}
.portal-tabs button:hover:not([aria-selected="true"]) {
  background: var(--paper);
}
.portal-tabs button:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: -5px;
}
.portal-tabs button[aria-selected="true"]:focus-visible {
  outline-color: var(--paper);
}
.portal-tabs svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.25;
  flex-shrink: 0;
}
.portal-tab-count {
  display: grid;
  place-items: center;
  min-width: 23px;
  height: 23px;
  border: 1px solid currentColor;
  font: 12px/1 var(--mono);
}
.portal-panel {
  padding: 36px;
  min-height: 340px;
}
.portal-panel:focus-visible {
  outline-offset: -5px;
}
.portal-overview {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.25fr);
  gap: 46px;
  align-items: stretch;
}
.portal-project-image {
  position: relative;
  min-height: 310px;
  overflow: hidden;
  background: var(--wood);
}
.portal-project-image img {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  object-fit: cover;
}
.portal-project-image figcaption {
  position: absolute;
  inset: auto 0 0;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  color: var(--paper);
  background: var(--heath);
  font-size: 15px;
}
.portal-project-image figcaption span:last-child {
  font-family: var(--mono);
  font-size: 12px;
  align-self: center;
}
.portal-stage-focus {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}
.portal-focus-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-bottom: 22px;
}
.portal-focus-heading .eyebrow {
  margin: 0;
  color: var(--heath);
}
.portal-state-label {
  background: var(--wood);
  padding: 5px 9px;
  font-size: 14px;
  line-height: 1.4;
}
.portal-stage-focus h2 {
  font-size: clamp(30px, 3vw, 43px);
  margin: 0 0 18px;
  line-height: 1.05;
  font-weight: 500;
}
.portal-focus-note {
  margin: 0;
  max-width: 43ch;
  font-size: 18px;
  line-height: 1.5;
}
.portal-focus-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  align-items: center;
  margin-top: 25px;
}
.portal-primary-action {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 50px;
  padding: 12px 18px;
  background: var(--heath);
  color: var(--paper);
  border: 1px solid var(--heath);
  font-size: 16px;
  cursor: pointer;
}
.portal-primary-action:hover {
  background: var(--ink);
}
.portal-primary-action span {
  font-size: 22px;
}
.portal-link-button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 44px;
  padding: 10px 0;
  border: 0;
  border-bottom: 1px solid var(--heath);
  color: var(--heath);
  background: transparent;
  font-size: 16px;
  cursor: pointer;
}
.portal-link-button span,
.portal-primary-action span {
  transition: transform 220ms ease;
}
.portal-link-button:hover span,
.portal-primary-action:hover span {
  transform: translateX(3px);
}
.portal-link-button:focus-visible,
.portal-primary-action:focus-visible,
.portal-message summary:focus-visible,
.portal-documents button:focus-visible {
  outline: 2px solid var(--heath);
  outline-offset: 4px;
}
.portal-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: 20px 0 0;
  margin: 26px 0 0;
  border-top: 1px solid var(--wood);
}
.portal-facts div {
  min-width: 0;
}
.portal-facts dt {
  margin-bottom: 5px;
  font-size: 14px;
  color: var(--heath);
}
.portal-facts dd {
  margin: 0;
  font-size: 17px;
  line-height: 1.4;
}
.portal-panel-heading {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 28px;
}
.portal-panel-heading h2 {
  margin: 0;
  font-size: 32px;
}
.portal-panel-heading p {
  color: var(--heath);
  font-size: 17px;
}
.portal-documents ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.portal-documents li {
  border-top: 1px solid var(--wood);
}
.portal-documents li:last-child {
  border-bottom: 1px solid var(--wood);
}
.portal-documents button {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  width: 100%;
  padding: 21px 16px;
  border: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
  font-family: var(--sans);
  cursor: pointer;
  transition: background 180ms ease;
}
.portal-documents button:hover {
  background: var(--wood);
}
.portal-document-mark {
  display: grid;
  place-items: center;
  width: 52px;
  height: 64px;
  background: var(--wood);
}
.portal-document-mark svg {
  width: 28px;
  height: 32px;
  fill: none;
  stroke: var(--heath);
  stroke-width: 1;
}
.portal-documents button strong {
  display: block;
  font-size: 21px;
  font-weight: 500;
  line-height: 1.2;
}
.portal-documents button strong + span {
  display: block;
  margin-top: 7px;
  font-size: 15px;
}
.portal-document-open {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--heath);
  font-size: 16px;
}
.portal-document-open span {
  font-size: 24px;
}
.portal-message {
  border-top: 1px solid var(--wood);
}
.portal-message:last-child {
  border-bottom: 1px solid var(--wood);
}
.portal-message summary {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 24px;
  align-items: center;
  gap: 22px;
  padding: 22px 12px;
  cursor: pointer;
  list-style: none;
}
.portal-message summary::-webkit-details-marker {
  display: none;
}
.portal-message-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  background: var(--wood);
}
.portal-message-mark svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: var(--heath);
  stroke-width: 1.25;
}
.portal-message-title {
  font-size: 21px;
  font-weight: 500;
  line-height: 1.25;
}
.portal-message-title time {
  display: block;
  font-size: 15px;
  margin-top: 6px;
  font-weight: 400;
}
.portal-message-toggle {
  color: var(--heath);
  font-size: 26px;
  transition: transform 180ms ease;
}
.portal-message[open] .portal-message-toggle {
  transform: rotate(45deg);
}
.portal-message > p {
  padding: 0 58px 24px 82px;
  margin: 0;
  max-width: 80ch;
  font-size: 18px;
  line-height: 1.5;
}
.portal-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.portal-dialog {
  width: min(620px, calc(100vw - 32px));
  max-width: calc(100vw - 32px);
  max-height: calc(100dvh - 32px);
  padding: 0;
  border: 1px solid var(--wood);
  color: var(--ink);
  background: var(--paper);
  overflow: auto;
}
.portal-dialog::backdrop {
  background: rgb(17 18 18 / 55%);
}
.portal-dialog-inner {
  padding: 54px 34px 34px;
  position: relative;
}
.portal-dialog-close {
  position: absolute;
  right: 8px;
  top: 8px;
  width: 44px;
  height: 44px;
  padding: 0;
  background: var(--paper);
  color: var(--heath);
  border: 1px solid var(--wood);
  font: 28px/1 var(--sans);
  cursor: pointer;
}
.portal-dialog-close:focus-visible {
  outline: 2px solid var(--heath);
  outline-offset: 2px;
}
.portal-dialog h2 {
  font-size: 32px;
  font-weight: 500;
  line-height: 1.1;
  margin: 16px 0 22px;
}
.portal-dialog p {
  line-height: 1.55;
}
.portal-dialog-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: space-between;
  font-size: 13px;
  padding: 14px 0;
  border-block: 1px solid var(--wood);
  margin-bottom: 22px;
}
.portal-package-items {
  padding-left: 23px;
  margin: 24px 0;
}
.portal-package-items li {
  padding-left: 5px;
  margin: 16px 0;
  line-height: 1.5;
}
.portal-package-items li::marker {
  color: var(--heath);
}
.portal-dialog-next {
  display: grid;
  gap: 7px;
  border-top: 1px solid var(--wood);
  padding-top: 20px;
  font-size: 16px;
}
.portal-dialog-next strong {
  font-weight: 500;
  color: var(--heath);
}
@media (max-width: 1099px) {
  .portal-stages {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: repeat(3, auto);
    gap: 12px 0;
  }
  .portal-stages li:nth-child(4) {
    grid-column: 3;
    grid-row: 2;
  }
  .portal-stages li:nth-child(5) {
    grid-column: 2;
    grid-row: 2;
  }
  .portal-stages li:nth-child(6) {
    grid-column: 1;
    grid-row: 2;
  }
  .portal-stages li:nth-child(7) {
    grid-column: 1;
    grid-row: 3;
  }
  .portal-stages li:nth-child(8) {
    grid-column: 2;
    grid-row: 3;
  }
  .portal-stages li:nth-child(9) {
    grid-column: 3;
    grid-row: 3;
  }
  .portal-stages button {
    min-height: 83px;
    padding-bottom: 3px;
    gap: 5px;
  }
  .portal-journey-map {
    max-width: 680px;
    margin-inline: auto;
  }
}
@media (max-width: 700px) {
  .portal-page {
    padding-top: 28px;
    padding-bottom: 48px;
  }
  .portal-heading {
    display: block;
    margin-bottom: 22px;
  }
  .portal-heading h1 {
    font-size: 36px;
  }
  .portal-heading .eyebrow {
    margin-bottom: 12px;
  }
  .portal-project-type {
    font-size: 16px;
    margin-top: 10px;
  }
  .portal-attention {
    display: inline-flex;
    margin-top: 18px;
    padding: 10px 12px;
    font-size: 16px;
  }
  .portal-journey {
    padding: 16px 10px 12px;
    margin-bottom: 20px;
  }
  .portal-journey-heading {
    display: block;
  }
  .portal-journey-heading h2 {
    font-size: 23px;
  }
  .portal-journey-heading p {
    margin-top: 6px;
    font-size: 11px;
  }
  .portal-journey-map {
    margin-top: 14px;
    padding-inline: 12px;
  }
  .portal-stages {
    gap: 11px 0;
  }
  .portal-stages button {
    min-height: 82px;
    gap: 5px;
    padding: 4px 0 1px;
  }
  .portal-stage-number {
    width: 27px;
    height: 27px;
    flex-basis: 27px;
    font-size: 11px;
  }
  .portal-stage-label {
    font-size: 13px;
    line-height: 1.15;
    font-stretch: 87.5%;
  }
  .portal-stage-state {
    font-size: 11px;
    line-height: 1.15;
  }
  .portal-journey-hint {
    margin-top: 10px;
    font-size: 12px;
  }
  .portal-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .portal-tabs button {
    flex-direction: column;
    gap: 7px;
    padding: 13px 3px;
    min-height: 76px;
    min-width: 0;
    font-size: 16px;
    font-stretch: 90%;
  }
  .portal-tabs button:last-child {
    border-right: 0;
  }
  .portal-tabs svg {
    width: 20px;
    height: 20px;
  }
  .portal-tab-count {
    display: none;
  }
  .portal-panel {
    padding: 20px;
    min-height: 0;
  }
  .portal-overview {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
  .portal-stage-focus {
    order: -1;
  }
  .portal-project-image {
    min-height: 200px;
  }
  .portal-project-image figcaption {
    padding: 12px 14px;
  }
  .portal-focus-heading {
    margin-bottom: 18px;
  }
  .portal-focus-heading .eyebrow {
    font-size: 11px;
  }
  .portal-state-label {
    font-size: 13px;
  }
  .portal-stage-focus h2 {
    font-size: 32px;
  }
  .portal-focus-note {
    font-size: 17px;
  }
  .portal-focus-actions {
    gap: 14px;
  }
  .portal-primary-action {
    width: 100%;
  }
  .portal-facts {
    gap: 12px;
  }
  .portal-facts dd {
    font-size: 16px;
  }
  .portal-panel-heading {
    margin-bottom: 20px;
  }
  .portal-panel-heading h2 {
    font-size: 28px;
  }
  .portal-documents button {
    grid-template-columns: 36px minmax(0, 1fr) 20px;
    gap: 12px;
    padding: 18px 0;
  }
  .portal-document-mark {
    width: 36px;
    height: 48px;
  }
  .portal-document-mark svg {
    width: 23px;
    height: 28px;
  }
  .portal-documents button strong {
    font-size: 18px;
  }
  .portal-documents button strong + span {
    font-size: 14px;
  }
  .portal-document-open {
    font-size: 0;
    gap: 0;
  }
  .portal-document-open span {
    font-size: 22px;
  }
  .portal-message summary {
    grid-template-columns: 32px minmax(0, 1fr) 18px;
    gap: 12px;
    padding: 20px 0;
  }
  .portal-message-mark {
    width: 32px;
    height: 40px;
  }
  .portal-message-mark svg {
    width: 22px;
    height: 22px;
  }
  .portal-message-title {
    font-size: 18px;
  }
  .portal-message-title time {
    font-size: 14px;
  }
  .portal-message > p {
    padding: 0 0 20px 44px;
    font-size: 16px;
  }
  .portal-dialog-inner {
    padding: 54px 20px 24px;
  }
  .portal-dialog h2 {
    font-size: 28px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .portal-connector-fill {
    stroke-dashoffset: 0;
  }
  .portal-link-button span,
  .portal-message-toggle,
  .portal-tabs button,
  .portal-documents button,
  .portal-primary-action span {
    transition: none;
  }
}
