/* Hummingwell's Archivo type and color palette, served entirely from this origin. */
@font-face {
  font-family: Archivo;
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("/portal/assets/archivo-latin-ext.woff2") format("woff2");
  unicode-range: U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: Archivo;
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("/portal/assets/archivo-latin.woff2") format("woff2");
  unicode-range: U+0-FF,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
:root {
  color-scheme: light;
  font-family: Archivo, "Arial Narrow", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  --ink: #0e2238;
  --ink-2: #44566a;
  --ink-3: #5e6f81;
  --paper: #fff;
  --paper-2: #eef3f8;
  --rule: #cdd8e3;
  --blue: #1849a9;
  --blue-deep: #123a88;
  --danger: #a02b35;
  --radius: 6px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--paper-2); color: var(--ink); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--blue-deep); }
button, input, textarea { font: inherit; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: absolute; z-index: 2; top: 12px; left: 20px; padding: 12px 20px; background: var(--paper); transform: translateY(-160%); }
.skip-link:focus { transform: none; }
.site-header { background: var(--paper); border-bottom: 1px solid var(--rule); }
.header-inner { max-width: 1236px; min-height: 88px; padding: 14px 28px; margin: auto; display: flex; align-items: center; gap: 26px; }
.brand { display: flex; flex-shrink: 0; }
.brand img { width: 210px; height: auto; }
.portal-label { padding-left: 26px; border-left: 1px solid var(--rule); color: var(--ink-2); font-size: 14px; font-weight: 600; }
.website-link { margin-left: auto; color: var(--ink); font-size: 14px; font-weight: 600; text-decoration: none; }
.website-link span { margin-left: 7px; color: var(--blue); }
.website-link:hover { text-decoration: underline; }
main { max-width: 696px; margin: auto; padding: 38px 28px; }
main:focus, #wizard-title:focus { outline: none; }
.steps { display: flex; justify-content: center; gap: 34px; padding: 0; margin: 0 0 26px; list-style: none; font-size: 13px; color: var(--ink-3); }
.steps li { display: flex; align-items: center; gap: 8px; }
.steps span { display: inline-flex; align-items: center; justify-content: center; width: 25px; height: 25px; border: 1px solid var(--rule); border-radius: 50%; font-size: 12px; }
.steps [aria-current] { color: var(--blue); font-weight: 650; }
.steps [aria-current] span { color: #fff; background: var(--blue); border-color: var(--blue); }
.panel { min-width: 0; background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); padding: 34px; }
.eyebrow { margin: 0 0 14px; color: var(--blue); font-size: 11px; font-weight: 700; letter-spacing: .12em; line-height: 1.4; text-transform: uppercase; }
h1 { font-stretch: 74%; font-weight: 780; letter-spacing: -.012em; line-height: 1.08; font-size: 38px; margin: 0 0 14px; }
p { margin: 0 0 16px; }
#wizard-subtitle { color: var(--ink-2); font-size: 15px; }
.wizard-heading { margin-bottom: 26px; }
.wizard-heading p:empty { display: none; }
.choices { display: grid; gap: 12px; }
.choices button { justify-content: space-between; width: 100%; padding: 16px 20px; font-size: 16px; }
label, legend { display: block; font-size: 14px; font-weight: 650; margin: 18px 0 8px; }
.wizard-step > label:first-child, #request-fields > label:first-child { margin-top: 0; }
input, textarea { width: 100%; min-height: 46px; padding: 11px 12px; color: var(--ink); background: var(--paper); border: 1px solid #8a9db1; border-radius: var(--radius); font-size: 16px; line-height: 1.5; }
input::placeholder, textarea::placeholder { color: var(--ink-3); opacity: 1; }
input:disabled, textarea:disabled { color: var(--ink-2); background: var(--paper-2); cursor: not-allowed; }
textarea { resize: vertical; min-height: 96px; margin-top: 12px; }
#identity { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 14px; }
small { display: block; color: var(--ink-2); font-size: 12px; line-height: 1.6; }
#identity-help { margin-top: 8px; }
button { display: inline-flex; justify-content: center; align-items: center; gap: 10px; min-height: 44px; padding: 10px 15px; color: var(--ink); background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); font-size: 14px; font-weight: 600; line-height: 1.35; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s; }
button:hover:not(:disabled) { background: var(--paper-2); border-color: var(--ink-3); }
button:disabled { color: var(--ink-3); background: #f4f6f9; border-color: var(--rule); cursor: not-allowed; }
button.primary { color: #fff; background: var(--blue); border-color: var(--blue); padding: 13px 22px; font-size: 15px; }
button.primary:hover:not(:disabled) { color: #fff; background: var(--blue-deep); border-color: var(--blue-deep); }
button.primary:disabled { color: var(--ink-3); background: var(--paper-2); border-color: var(--rule); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 12px; }
button.text-button { border-color: transparent; background: transparent; color: var(--blue); padding: 10px 0; }
button.text-button:hover:not(:disabled) { text-decoration: underline; background: transparent; border-color: transparent; }
button.text-button:disabled { color: var(--ink-3); }
#identity-summary { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 24px; padding: 10px 14px; background: var(--paper-2); border-radius: var(--radius); }
#identity-status { color: var(--ink); font-weight: 600; font-size: 13px; }
#identity-node { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 11px; }
.summary-actions { display: flex; gap: 16px; }
.summary-actions button { font-size: 12px; }
#validate-identity { margin-top: 24px; width: 100%; }
#load-identity-file { margin-top: 8px; }
#connect-button { width: 100%; margin: 18px 0 10px; }
.brief-note { font-size: 15px; color: var(--ink-2); }
.optional { font-weight: 400; color: var(--ink-3); }
details { font-size: 13px; color: var(--ink-2); }
summary { cursor: pointer; padding: 12px 0; }
.optional-fields { border-bottom: 1px solid var(--rule); }
.optional-fields > p { font-size: 12px; }
#request-status, #status { border-left: 3px solid var(--blue); padding: 12px 14px; background: var(--paper-2); font-size: 14px; font-weight: 600; }
table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 13px; text-align: left; }
th, td { border-bottom: 1px solid var(--rule); padding: 12px 5px; vertical-align: top; overflow-wrap: anywhere; }
th { font-size: 11px; font-weight: 650; color: var(--ink-2); }
th:first-child { width: 36%; padding-left: 0; }
th:nth-child(2) { width: 22%; }
th:last-child { width: 42%; padding-right: 0; }
td:first-child { padding-left: 0; }
td:first-child small { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 11px; }
td:last-child { padding-right: 0; }
#memberships td a { display: block; font-weight: 600; }
#memberships button { font-size: 12px; padding: 8px; max-width: 100%; }
.reset-area { margin: 18px 0 0; text-align: center; }
button.quiet-danger { padding: 10px 0; border-color: transparent; background: transparent; color: var(--ink-2); font-size: 12px; font-weight: 400; }
button.quiet-danger:hover:not(:disabled) { color: var(--danger); background: transparent; border-color: transparent; text-decoration: underline; }
#error, #membership-errors span { color: var(--danger); }
#error:not(:empty) { margin: 0 0 20px; padding: 12px 14px; background: #fff4f4; border-left: 3px solid var(--danger); font-size: 14px; }
#membership-errors span { display: block; margin-bottom: 8px; }
#membership-errors button { margin: 0 8px 8px 0; }
[role="status"], [role="alert"], #request-outcomes, #membership-errors { overflow-wrap: anywhere; }
[role="status"]:empty, #error:empty, #identity-node:empty, ul:empty { display: none; }
#identity-operation-status, #import-status, #reset-status, #client-update-status { margin: 12px 0; font-size: 13px; }
#client-update-status { border-left: 3px solid #ad6d12; padding: 12px; background: #fff8ec; }
#back { margin-top: 20px; }
ul { list-style: none; margin: 12px 0; padding: 0; font-size: 13px; }
ul li { padding: 8px 0; border-bottom: 1px solid var(--rule); }
footer { margin: 18px 0 0; padding: 18px 0; border-top: 1px solid var(--rule); font-size: 12px; }
footer details { font-size: 12px; }
footer details p { margin: 0 0 10px; }
.legal-links { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 8px 0; }
.legal-links a { padding: 5px 0; }
@media (max-width: 600px) {
  .header-inner { min-height: 76px; padding: 12px 20px; gap: 12px; }
  .brand img { width: 180px; }
  .portal-label { margin-left: auto; border: 0; padding: 0; font-size: 12px; }
  .website-link { display: none; }
  main { padding: 26px 16px; }
  .steps { gap: 22px; font-size: 12px; margin-bottom: 20px; }
  .panel { padding: 24px 20px; }
  h1 { font-size: 34px; }
  table { font-size: 12px; }
  thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  #memberships tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--rule); }
  #memberships td { padding: 0; border: 0; }
  #memberships td:nth-child(2) { text-align: right; }
  #memberships td:nth-child(3) { align-self: center; }
  #memberships button { padding: 7px 5px; font-size: 11px; }
  .actions > button { flex-grow: 1; }
}
@media (prefers-reduced-motion: reduce) { button { transition: none; } }
