@font-face {
  font-family: 'General Sans';
  src: url('/portal/offers/fonts/general-sans-400.woff2') format('woff2');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'General Sans';
  src: url('/portal/offers/fonts/general-sans-500.woff2') format('woff2');
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: 'General Sans';
  src: url('/portal/offers/fonts/general-sans-700.woff2') format('woff2');
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: 'Cabinet Grotesk';
  src: url('/portal/offers/fonts/cabinet-grotesk-700.woff2') format('woff2');
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #fff;
  --soft: #edf5fa;
  --sky: #e4f4fc;
  --ink: #062343;
  --hover: #12436b;
  --muted: #43586b;
  --gold: #ffcf45;
  --rule: #dbe4ec;
  --control: #7a8d9d;
  --display: 'Cabinet Grotesk', 'General Sans', Arial, sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
  --anchor-offset: 100px;
  --radius: 4px;
  color: var(--ink);
  background: var(--soft);
  font: 16px/1.55 'General Sans', Arial, sans-serif;
}

* { box-sizing: border-box; }
body { display: flex; flex-direction: column; min-height: 100vh; margin: 0; }
[hidden] { display: none !important; }
a { color: inherit; text-underline-offset: 3px; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-family: var(--display); line-height: 1.1; letter-spacing: -.025em; }
h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
::selection { background: var(--gold); color: var(--ink); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
:where(main, section)[id] { scroll-margin-top: var(--anchor-offset); }

.skip-link { position: fixed; top: -100px; left: var(--gutter); z-index: 30; padding: 12px 20px; background: var(--gold); }
.skip-link:focus { top: 10px; }
.site-header { background: var(--paper); border-bottom: 1px solid var(--rule); }
.site-header:has(nav:not([hidden])) { position: sticky; top: 0; z-index: 10; }
.nav, .workspace, .footer { width: min(1240px, calc(100% - 2 * var(--gutter))); margin-inline: auto; }
.nav { display: flex; align-items: center; justify-content: space-between; min-height: 78px; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-logo { display: block; position: relative; width: 57px; height: 57px; overflow: hidden; border-radius: 50%; }
.brand-logo img { position: absolute; top: -14px; left: -34px; width: 126px; height: auto; max-width: none; }
.brand-type { font-size: 1.0625rem; font-weight: 700; line-height: 1.1; }
.brand-type span { display: block; margin-top: 5px; font-size: .8125rem; font-weight: 400; letter-spacing: .01em; }
.nav nav { display: flex; flex-wrap: wrap; gap: 2px 22px; }
.nav nav a { display: inline-flex; align-items: center; min-height: 44px; border-bottom: 2px solid transparent; font-size: .9375rem; font-weight: 700; text-decoration: none; }
.nav nav a:hover { text-decoration: underline; }
body:not(:has(:target)) a[href="#workspace"],
body:has(#workspace:target) a[href="#workspace"],
body:has(#history:target) a[href="#history"],
body:has(#registration-review:target) a[href="#registration-review"],
body:has(#letter-design:target) a[href="#letter-design"] { border-bottom-color: var(--ink); }

.workspace { padding-block: clamp(24px, 4.6vw, 64px) 32px; }
.footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 24px; margin-top: auto; padding-block: 16px 24px; color: var(--muted); border-top: 1px solid var(--rule); font-size: .875rem; }

.work-grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); max-width: 1120px; margin-inline: auto; }
.entry-cover { min-width: 0; display: grid; justify-items: start; align-content: start; gap: 32px; overflow: hidden; border-radius: var(--radius) 0 0 var(--radius); padding: clamp(28px, 4.2vw, 62px); padding-bottom: 0; background: var(--ink); color: var(--paper); }
.entry-cover h1 { max-width: 10ch; font-size: clamp(2.65rem, 4.8vw, 4.375rem); line-height: .98; letter-spacing: -.04em; }
.entry-cover h1 span { display: block; white-space: nowrap; }
.entry-cover figure { justify-self: center; display: grid; align-items: start; width: min(100%, 266px); height: 310px; overflow: hidden; border-radius: 3px 3px 0 0; background: var(--paper); }
.entry-cover img { display: block; width: 100%; height: auto; }
#access { min-width: 0; padding: clamp(28px, 5vw, 72px); background: var(--paper); border: 1px solid var(--rule); border-left: 0; border-radius: 0 var(--radius) var(--radius) 0; }
#access:not(.signed) { display: flex; flex-direction: column; justify-content: center; }
#access h2 { font-size: 2rem; }
#accessNote { margin-top: 9px; margin-bottom: 23px; color: var(--muted); overflow-wrap: anywhere; }
#access:not(.signed) .signed-title, #access.signed .signin-title { display: none; }
#access form label + label, #setupForm label { margin-top: 14px; }
#recoveryForm p { margin: 8px 0 14px; color: var(--muted); }
#login { flex: 0 0 100%; margin-bottom: 5px; background: var(--gold); color: var(--ink); }
#login:hover { background: var(--ink); color: var(--paper); }

.workspace:has(#access.signed) { padding-top: 24px; }
.work-grid:has(#access.signed) { max-width: none; grid-template-columns: minmax(0, 1fr) minmax(0, auto); align-items: center; gap: 20px; }
.work-grid:has(#access.signed) .entry-cover { display: block; padding: 0; background: transparent; color: var(--ink); }
.work-grid:has(#access.signed) .entry-cover h1 { max-width: none; font-size: 2rem; }
.work-grid:has(#access.signed) .entry-cover h1 span { display: inline; }
.work-grid:has(#access.signed) figure { display: none; }
#access.signed { border: 1px solid var(--rule); border-radius: var(--radius); padding: 16px 20px; }
#access.signed:not(:has(form:not([hidden]))) { display: flex; align-items: center; gap: 8px 14px; background: transparent; border: 0; padding: 0; }
#access.signed:not(:has(form:not([hidden]))) .heading { display: contents; }
#access.signed:not(:has(form:not([hidden]))) h2 { display: none; }
#access.signed .heading h2 { font-size: 1.25rem; }
#access.signed:not(:has(form:not([hidden]))) #accessNote { order: -1; margin: 0; font-size: .875rem; }

.panel { min-width: 0; padding: clamp(16px, 2.35vw, 29px); background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); }
.status-note { margin: 8px 0 0; max-width: 65ch; color: var(--muted); }
.heading, .actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; }
.heading { justify-content: space-between; }
.actions { margin-top: 16px; }
button, input, select { font: inherit; }
button { min-height: 44px; padding: 9px 15px; border: 1px solid transparent; border-radius: var(--radius); background: var(--ink); color: var(--paper); font-size: .9375rem; font-weight: 700; cursor: pointer; }
button:hover { background: var(--hover); }
button:disabled { opacity: .62; cursor: wait; }
.light, .text-button { background: transparent; color: var(--ink); }
.light { border-color: var(--control); }
.light:hover { background: var(--sky); border-color: var(--ink); }
.text-button { padding-inline: 0; text-decoration: underline; text-underline-offset: 3px; }
.text-button:hover { color: var(--hover); background: transparent; }
label { display: grid; gap: 5px; font-size: .9375rem; font-weight: 500; }
input, select { width: 100%; min-width: 0; min-height: 46px; border: 1px solid var(--control); border-radius: var(--radius); padding: 8px 11px; background: var(--paper); color: var(--ink); }
input:read-only { background: var(--soft); }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 20px; margin-top: 15px; }
#editor { margin-top: 20px; }
#registrationDetails dt { color: var(--muted); }
#registrationDetails dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }

.office-queues { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 20px; margin-top: 20px; }
.sheet-link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }
.sheet-link:hover, .letter-design a:hover, .verification-note a:hover { text-decoration-thickness: 2px; }
.queue-list { margin-top: 12px; color: var(--muted); }
.record { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; padding-block: 12px; border-top: 1px solid var(--rule); }
.record:last-child { padding-bottom: 0; }
.record > div:first-child { flex: 1 1 11rem; color: var(--ink); overflow-wrap: anywhere; }
.record small { display: block; margin-top: 3px; color: var(--muted); }
.record .actions { margin-top: 0; }
.record > div + div { display: flex; align-items: center; flex-wrap: wrap; gap: 0 12px; }
.record a { display: inline-flex; align-items: center; min-height: 44px; font-size: .875rem; font-weight: 700; }

.history-tools { display: grid; justify-items: start; gap: 12px; margin-top: 14px; }
.history-tools label { width: 100%; }
#downloadAll:disabled { cursor: default; }
#zipStatus { margin: 0; overflow-wrap: anywhere; }
#zipStatus:empty { display: none; }

.letter-design {
  width: min(100% - 8px, 330px);
  margin: 28px 4px 4px;
  overflow: hidden;
  border: 1px solid var(--ink);
  border-radius: 8px;
  outline: 4px solid var(--ink);
  outline-offset: 4px;
  background: var(--paper);
}
.template-preview { position: relative; display: grid; place-items: center; min-height: 248px; background: var(--sky); }
.template-preview img { display: block; width: 147px; height: 209px; object-fit: contain; }
.template-marker {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 30px;
  aspect-ratio: 1;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--ink);
  box-shadow: inset 0 0 0 4px var(--paper);
}
.template-caption { padding: 22px 18px 14px; }
.template-caption h2 { font-family: 'General Sans', Arial, sans-serif; font-weight: 700; }
.template-caption p { margin-top: 10px; font-size: 1.25rem; }
.letter-design a { display: inline-flex; align-items: center; min-height: 44px; margin-top: 12px; font-size: 1.25rem; font-weight: 700; }

dialog { width: min(830px, 94vw); max-height: 90dvh; padding: 20px; border: 1px solid var(--rule); border-radius: var(--radius); color: var(--ink); }
dialog::backdrop { background: #062343a6; }
#summary { margin: 10px 0; overflow-wrap: anywhere; }
iframe { width: 100%; height: 52dvh; border: 1px solid var(--rule); }
#status:not(:empty) { position: sticky; bottom: 10px; z-index: 1; margin-top: 12px; padding: 10px 12px; border-radius: var(--radius); color: var(--paper); background: var(--ink); }

.verification-page { background: var(--paper); }
.verification-header { background: var(--ink); color: var(--paper); border: 0; }
.verification-header .brand:focus-visible { outline-color: var(--gold); }
.verification-header .nav, .verification-page .footer, .verify { max-width: 880px; }
.verification-page .footer { border: 0; }
.verify { padding-block: clamp(24px, 4vw, 54px) 40px; }
.verify-cover {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(12px, 4vw, 45px);
  padding: clamp(20px, 4vw, 44px);
  background: var(--ink);
  color: var(--paper);
}
.verify-cover h1 { max-width: 16ch; font-size: clamp(2rem, 5.5vw, 4.25rem); }
.verify-cover p { margin-top: 12px; color: #ffe28b; font-size: .9375rem; }
.verify-cover img { width: clamp(68px, 17vw, 150px); height: auto; }

.verify-status { padding: 20px clamp(20px, 4vw, 44px); background: var(--soft); }
.verify-status[data-result="issued"] { background: #e8f4eb; color: #145734; }
.verify-status[data-result="revoked"] { background: #f8eded; color: #85262d; }
.verify-status p:not(:empty) { margin-top: 6px; }
.verification-identity {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem clamp(1.5rem, 5vw, 4rem);
  margin: 1rem 0 0;
}
.verification-identity dt { font-size: .9rem; }
.verification-identity dd { margin: .15rem 0 0; font-weight: 700; overflow-wrap: anywhere; }
#verifiedName { font-size: clamp(1.15rem, 3vw, 1.6rem); line-height: 1.2; }
#verificationReference { font-variant-numeric: tabular-nums; }
@media (max-width: 540px) {
  .verification-identity { display: grid; gap: .55rem; }
}

.verification-record { padding-top: clamp(28px, 5vw, 45px); }
.verification-record dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px;
  margin: 14px 0 0;
  overflow-wrap: anywhere;
}
.verification-record dl > div { padding: 14px 18px; background: var(--soft); }
.verification-record dt { color: var(--muted); font-size: .9375rem; }
.verification-record dd { margin: 2px 0 0; font-weight: 700; }
.verification-record dd::first-letter { text-transform: uppercase; }

.verification-terms {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 4vw, 48px);
  padding-top: clamp(28px, 5vw, 45px);
}
.verification-terms p { margin-top: 8px; }
.verification-note { margin-top: 25px; color: var(--muted); overflow-wrap: anywhere; }
.verification-note a { font-weight: 700; }

@media (max-width: 900px) {
  .verify-cover { padding-inline-end: 12px; }
}
@media (max-width: 720px) {
  :root { --anchor-offset: 128px; }
  .nav { min-height: 64px; }
  .nav:has(nav:not([hidden])) { flex-direction: column; align-items: flex-start; gap: 0; padding-top: 8px; }
  .nav nav { gap: 0 16px; }
  .nav nav a { font-size: .875rem; }
  .brand-logo { width: 44px; height: 44px; }
  .brand-logo img { top: -11px; left: -28px; width: 100px; }
  .brand-type { font-size: .9375rem; }
  .work-grid, .work-grid:has(#access.signed), .office-queues { grid-template-columns: 1fr; }
  .entry-cover { position: relative; min-height: 160px; justify-content: start; align-content: center; border-radius: var(--radius) var(--radius) 0 0; padding: 24px; }
  .entry-cover h1 { position: relative; z-index: 1; max-width: 62%; font-size: clamp(1.35rem, 6.8vw, 2.125rem); }
  .entry-cover figure { position: absolute; right: 16px; top: 20px; width: min(33%, 160px); height: auto; }
  #access { padding: 24px; border-left: 1px solid var(--rule); border-top: 0; border-radius: 0 0 var(--radius) var(--radius); }
  #access h2 { font-size: 1.65rem; }
  #access.signed:not(:has(form:not([hidden]))) { justify-content: space-between; }
  .work-grid:has(#access.signed) .entry-cover { min-height: auto; }
  .office-queues, .work-grid:has(#access.signed) { gap: 12px; }
  .office-queues, #editor { margin-top: 12px; }
}
@media (max-width: 520px) {
  .grid, .verification-terms { grid-template-columns: 1fr; }
  .footer { flex-direction: column; }
}

@media (max-width: 350px) {
  .nav nav { column-gap: 12px; }
  .nav nav a { font-size: .8125rem; }
  .entry-cover { padding: 20px; }
  .verify-cover { grid-template-columns: minmax(0, 1fr); }
  .verify-cover img { display: none; }
  .entry-cover figure { right: 12px; width: 29%; }
  #access { padding: 20px; }
}
