.document-hub-page {
  --hub-gold: #b18735;
  --hub-gold-soft: #fff8e7;
  --hub-error: #a52a1b;
}

.document-hub-page .subhero {
  min-height: 360px;
}

.document-hub-shell {
  width: min(1180px, 88vw);
  margin-inline: auto;
}

.document-audience-nav {
  border-bottom: 1px solid var(--line);
  background: white;
}

.document-audience-nav .document-hub-shell {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.document-audience-nav a {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-left: 1px solid var(--line);
  color: var(--ink);
  font-weight: 700;
  text-align: center;
}

.document-audience-nav a:last-child {
  border-right: 1px solid var(--line);
}

.document-audience-nav a:hover,
.document-audience-nav a:focus-visible {
  background: var(--accent-warm-soft);
  color: var(--accent-warm-text);
}

.document-audience-nav svg {
  width: 21px;
  height: 21px;
}

.document-hub-section,
.sponsor-document-section {
  scroll-margin-top: 108px;
  padding-block: 78px;
}

.document-section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .72fr);
  gap: 64px;
  align-items: end;
  margin-bottom: 36px;
}

.document-section-heading h2 {
  max-width: 760px;
  margin: 8px 0 0;
  color: var(--ink);
  font: 400 clamp(36px, 4.7vw, 58px)/1.05 var(--display);
}

.document-section-heading > p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.72;
}

.document-section-heading .section-kicker {
  margin: 0;
  color: var(--accent-warm-text);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.participant-document-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.participant-document-card {
  min-height: 306px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: 1fr auto;
  gap: 0 20px;
  padding: 30px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: white;
}

.document-card-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  color: var(--accent-warm-text);
  background: var(--accent-warm-soft);
}

.document-card-icon svg {
  width: 26px;
  height: 26px;
}

.document-card-copy {
  min-width: 0;
}

.document-card-copy h3 {
  margin: 16px 0 10px;
  color: var(--ink);
  font: 400 clamp(27px, 2.8vw, 36px)/1.1 var(--display);
}

.document-card-copy > p {
  margin: 0;
  color: var(--muted);
  line-height: 1.68;
}

.document-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 22px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.document-status > span:first-child {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: 0 0 auto;
  background: var(--muted);
}

.document-status.is-ready {
  color: var(--accent-warm-text);
}

.document-status.is-ready > span:first-child {
  background: var(--brand-mid);
}

.document-status.is-scheduled {
  color: #7b622a;
}

.document-status.is-scheduled > span:first-child {
  background: var(--hub-gold);
}

.document-card-action {
  grid-column: 2;
  width: fit-content;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  align-self: end;
  margin-top: 24px;
  padding: 0 18px;
  border: 1px solid var(--brand-mid);
  border-radius: 3px;
  color: white;
  background: var(--brand-mid);
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}

.document-card-action:hover,
.document-card-action:focus-visible {
  border-color: var(--brand-deep);
  background: var(--brand-deep);
  color: white;
}

.document-card-action.is-secondary {
  color: var(--ink);
  background: white;
}

.document-card-action.is-disabled {
  cursor: not-allowed;
  border-color: #d9c58f;
  color: #735d26;
  background: var(--hub-gold-soft);
}

.document-card-action svg {
  width: 18px;
  height: 18px;
}

.my-documents-result {
  display: block;
}

.my-documents-result[hidden],
.my-documents-pending[hidden] {
  display: none;
}

.my-documents-result > .my-documents-list,
.my-documents-result > .my-documents-pending {
  display: grid;
  width: 100%;
  align-items: stretch;
  gap: 12px;
  margin-top: 22px;
}

.my-document-item {
  min-width: 0;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  background: #fff;
}

.my-document-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 1px solid #9bd4e2;
  background: #eef9fb;
  color: var(--brand-deep);
}

.my-document-icon svg {
  width: 25px;
  height: 25px;
}

.my-document-copy {
  min-width: 0;
}

.my-document-type {
  display: block;
  margin-bottom: 5px;
  color: #087f92;
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.my-document-copy h4 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.my-document-copy p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: .92rem;
  overflow-wrap: anywhere;
}

.my-document-actions {
  grid-column: 1 / -1;
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.my-document-preview {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  border: 1px solid #0c8799;
  color: #075b6a;
  background: #fff;
  font-weight: 800;
  text-decoration: none;
}

.my-document-preview:hover,
.my-document-preview:focus-visible {
  color: #fff;
  background: var(--brand-deep);
  border-color: var(--brand-deep);
}

.my-document-preview svg {
  width: 18px;
  height: 18px;
}

.my-document-download {
  margin: 0;
  white-space: nowrap;
}

.my-document-pending-item {
  padding: 18px 20px;
  border-left: 4px solid #b6842c;
  background: #fff9eb;
}

.my-document-pending-item h4 {
  margin: 0 0 6px;
  color: #654600;
  font-size: 1rem;
}

.my-document-pending-item p {
  margin: 0;
  color: #5f5131;
}

[data-shared-email-name] small {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  line-height: 1.45;
}

.program-file-panel {
  margin-top: 24px;
  border: 1px solid var(--line);
  background: var(--accent-warm-soft);
}

.program-panel-heading {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 18px 14px 24px;
  border-bottom: 1px solid var(--line);
  background: white;
}

.program-panel-heading > div {
  display: flex;
  align-items: center;
  gap: 12px;
}

.program-panel-heading h3 {
  margin: 0;
  color: var(--ink);
  font-size: 19px;
}

.program-panel-heading button,
.preview-dialog-topbar button {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 0;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
}

.program-file-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.program-file-list > a,
.program-file-list > span {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 24px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  background: white;
}

.program-file-list > a:hover {
  color: var(--accent-warm-text);
  background: var(--accent-warm-soft);
}

.program-file-list > :nth-child(even) {
  border-right: 0;
}

.program-file-list > :nth-last-child(-n + 2) {
  border-bottom: 0;
}

.program-file-list span span,
.program-file-list a span {
  display: grid;
  gap: 5px;
}

.program-file-list small {
  color: var(--muted);
}

.program-file-list .is-pending {
  color: #735d26;
  background: var(--hub-gold-soft);
}

.sponsor-document-section {
  border-top: 1px solid var(--line);
  background: var(--accent-warm-soft);
}

.sponsor-heading .section-kicker {
  color: #765a1f;
}

.sponsor-login-layout {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(420px, 1.1fr);
  border: 1px solid var(--line);
  background: white;
}

.sponsor-login-intro {
  min-height: 480px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 52px;
  border-right: 1px solid var(--line);
  background: var(--brand-deep);
  color: white;
}

.sponsor-lock-mark {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  margin-bottom: 26px;
  border: 1px solid rgba(255,255,255,.32);
  color: #fff0c7;
}

.sponsor-login-intro h3 {
  margin: 0 0 14px;
  color: white;
  font: 400 clamp(30px, 3.4vw, 44px)/1.08 var(--display);
}

.sponsor-login-intro > p {
  margin: 0;
  color: rgba(255,255,255,.78);
  line-height: 1.7;
}

.sponsor-login-intro ul {
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.sponsor-login-intro li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: white;
}

.sponsor-login-intro li svg {
  width: 18px;
  color: #fff0c7;
}

.sponsor-login-form {
  display: grid;
  align-content: center;
  gap: 20px;
  padding: 52px;
}

.sponsor-form-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 19px;
  font-weight: 750;
}

.sponsor-login-form label {
  display: grid;
  gap: 9px;
  color: var(--ink);
  font-weight: 700;
}

.sponsor-login-form input {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border: 1px solid #9acfd9;
  border-radius: 3px;
  color: var(--ink);
  background: white;
  font: inherit;
}

.sponsor-login-form input:focus {
  outline: 3px solid rgba(21,151,170,.2);
  border-color: var(--brand-mid);
}

.password-field {
  position: relative;
  display: block;
}

.password-field input {
  padding-right: 54px;
}

.password-field button {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 0;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
}

.sponsor-submit {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  border: 1px solid var(--brand-mid);
  border-radius: 3px;
  color: white;
  background: var(--brand-mid);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.sponsor-submit:hover,
.sponsor-submit:focus-visible {
  border-color: var(--brand-deep);
  background: var(--brand-deep);
}

.sponsor-submit:disabled {
  cursor: wait;
  opacity: .68;
}

.sponsor-form-status {
  min-height: 22px;
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.sponsor-form-status.is-error {
  padding: 12px 14px;
  border-left: 4px solid var(--hub-error);
  color: var(--hub-error);
  background: #fff4f1;
}

.sponsor-help-link {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-warm-text);
  font-weight: 700;
}

.sponsor-dashboard {
  scroll-margin-top: 104px;
  border: 1px solid var(--line);
  background: white;
}

.sponsor-dashboard-header {
  min-height: 128px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 24px 30px;
  border-bottom: 1px solid var(--line);
  background: var(--brand-deep);
  color: white;
}

.sponsor-company {
  display: flex;
  align-items: center;
  gap: 18px;
}

.sponsor-company-mark {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border: 1px solid #d9bd77;
  color: #fff0c7;
  font: 400 32px/1 var(--display);
}

.sponsor-company small,
.sponsor-company p {
  color: rgba(255,255,255,.72);
}

.sponsor-company h3 {
  margin: 4px 0;
  color: white;
  font-size: 23px;
}

.sponsor-company p {
  margin: 0;
}

.sponsor-logout {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 0 15px;
  border: 1px solid rgba(255,255,255,.44);
  border-radius: 3px;
  color: white;
  background: transparent;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.sponsor-document-list article {
  min-height: 142px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  padding: 24px 30px;
  border-bottom: 1px solid var(--line);
}

.sponsor-document-list article:last-child {
  border-bottom: 0;
}

.sponsor-document-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  color: var(--accent-warm-text);
  background: var(--accent-warm-soft);
}

.sponsor-document-list h4 {
  margin: 6px 0;
  color: var(--ink);
  font-size: 20px;
}

.sponsor-document-list p,
.sponsor-document-list small {
  margin: 0;
  color: var(--muted);
}

.sponsor-document-list small {
  display: block;
  margin-top: 6px;
  font-size: 12px;
}

.sponsor-document-list article > button,
.sponsor-document-download,
.sponsor-document-wait {
  min-width: 126px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  border: 1px solid var(--brand-mid);
  border-radius: 3px;
  color: var(--ink);
  background: white;
  font: inherit;
  font-weight: 750;
  text-decoration: none;
}

.sponsor-document-list article > button {
  cursor: pointer;
}

.sponsor-document-list article > button:hover {
  color: white;
  background: var(--brand-mid);
}

.sponsor-document-download:hover,
.sponsor-document-download:focus-visible {
  color: white;
  background: var(--brand-mid);
}

.sponsor-document-list article.is-locked {
  background: var(--hub-gold-soft);
}

.sponsor-document-wait {
  border-color: #d9c58f;
  color: #735d26;
  background: transparent;
}

.document-preview-dialog {
  width: min(760px, 92vw);
  max-height: 92vh;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--ink);
  background: white;
  box-shadow: 0 22px 70px rgba(5,38,48,.28);
}

.document-preview-dialog::backdrop {
  background: rgba(5,38,48,.72);
}

.preview-dialog-topbar {
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px 10px 22px;
  border-bottom: 1px solid var(--line);
  font-weight: 800;
}

.preview-document-sheet {
  min-height: 430px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px;
  text-align: center;
  background: var(--accent-warm-soft);
}

.preview-document-sheet img {
  width: 92px;
  height: auto;
  object-fit: contain;
}

.preview-document-sheet > p:first-of-type {
  margin: 22px 0 0;
  color: var(--accent-warm-text);
  font-size: 12px;
  font-weight: 800;
}

.preview-document-sheet h2 {
  margin: 22px 0 12px;
  font: 400 clamp(32px, 5vw, 48px)/1.08 var(--display);
}

.preview-document-line {
  width: min(340px, 80%);
  height: 2px;
  margin-block: 8px 22px;
  background: var(--hub-gold);
}

.preview-document-sheet > p:last-of-type {
  max-width: 520px;
  color: var(--muted);
  line-height: 1.7;
}

.preview-document-sheet small {
  margin-top: 24px;
  color: #765a1f;
  font-weight: 700;
}

.preview-dialog-actions {
  display: flex;
  justify-content: flex-end;
  padding: 16px 20px;
  border-top: 1px solid var(--line);
}

.preview-dialog-actions button {
  min-width: 100px;
  min-height: 42px;
  border: 1px solid var(--brand-mid);
  border-radius: 3px;
  color: white;
  background: var(--brand-mid);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

@media (max-width: 900px) {
  .document-section-heading,
  .sponsor-login-layout {
    grid-template-columns: 1fr;
  }

  .document-section-heading {
    gap: 18px;
  }

  .sponsor-login-intro {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .sponsor-login-form {
    padding-block: 40px;
  }
}

@media (max-width: 720px) {
  .document-hub-shell {
    width: min(100% - 32px, 1180px);
  }

  .document-hub-page .subhero {
    min-height: 330px;
  }

  .document-audience-nav .document-hub-shell,
  .participant-document-grid,
  .program-file-list {
    grid-template-columns: 1fr;
  }

  .document-audience-nav a {
    min-height: 60px;
    justify-content: flex-start;
    padding-inline: 16px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    text-align: left;
  }

  .document-audience-nav a:last-child {
    border-bottom: 0;
  }

  .document-hub-section,
  .sponsor-document-section {
    padding-block: 54px;
  }

  .participant-document-card {
    min-height: 0;
    grid-template-columns: auto minmax(0, 1fr);
    padding: 24px 20px;
  }

  .document-card-action {
    grid-column: 1 / -1;
    width: 100%;
  }

  .my-document-item {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .my-document-icon {
    width: 44px;
    height: 44px;
  }

  .my-document-actions {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr;
  }

  .my-document-download,
  .my-document-preview {
    width: 100%;
    white-space: normal;
  }

  .program-file-list > a,
  .program-file-list > span {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .program-file-list > :nth-last-child(2) {
    border-bottom: 1px solid var(--line);
  }

  .sponsor-login-intro,
  .sponsor-login-form {
    padding: 30px 22px;
  }

  .sponsor-dashboard-header,
  .sponsor-document-list article {
    align-items: flex-start;
  }

  .sponsor-dashboard-header {
    flex-direction: column;
    padding: 22px;
  }

  .sponsor-company {
    align-items: flex-start;
  }

  .sponsor-company-mark {
    width: 50px;
    height: 50px;
  }

  .sponsor-document-list article {
    grid-template-columns: auto minmax(0, 1fr);
    padding: 22px;
  }

  .sponsor-document-list article > button,
  .sponsor-document-download,
  .sponsor-document-wait {
    grid-column: 1 / -1;
    width: 100%;
  }

  .preview-document-sheet {
    min-height: 390px;
    padding: 34px 22px;
  }
}

@media (max-width: 430px) {
  .participant-document-card {
    grid-template-columns: 1fr;
  }

  .document-card-copy {
    margin-top: 16px;
  }

  .document-status {
    line-height: 1.35;
  }

  .sponsor-company-mark {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .document-hub-page *,
  .document-hub-page *::before,
  .document-hub-page *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
