:root {
  color-scheme: light;
  --ink: #111111;
  --navy: #08264e;
  --pale: #f0f5f9;
  --line: #d7dfe7;
  --orange: #e85f18;
  --paper: #ffffff;
  font-family: Arial, Helvetica, sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { background: var(--paper); }
body { margin: 0; color: var(--ink); background: var(--paper); }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
[hidden] { display: none !important; }

#verification-app {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 40px;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 136px;
  padding: 28px 0;
  border-bottom: 1px solid var(--navy);
}

.brand { display: flex; align-items: center; gap: 15px; flex-shrink: 0; }
.brand-symbol { display: block; width: 56px; height: 58px; object-fit: contain; }
.brand-name {
  padding-left: 15px;
  border-left: 1px solid var(--navy);
  font-size: 22px;
  line-height: 1.03;
  font-weight: 750;
  letter-spacing: -.6px;
}

.header-context { margin: 0; text-align: right; font-size: 14px; font-weight: 600; line-height: 1.5; }
.intro { padding: 48px 0 28px; max-width: 760px; }
.eyebrow { margin: 0 0 12px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.3px; }
h1 { margin: 0; font-size: clamp(29px, 4vw, 42px); line-height: 1.12; letter-spacing: -1.2px; font-weight: 700; }
.intro-copy { margin: 18px 0 0; font-size: 16px; line-height: 1.65; }

.state-panel {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 23px 26px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--navy);
  border-radius: 4px;
  background: var(--pale);
}

.state-panel[data-state="revoked"] { background: #fff6ef; border-left-color: var(--orange); }
.state-panel[data-state="error"] { background: #fafafa; border-left-color: var(--ink); }
.state-panel[data-state="closed"] { background: #fafafa; border-left-color: var(--line); }
.state-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  margin-top: 1px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
}
.state-copy h2 { margin: 1px 0 8px; font-size: 19px; line-height: 1.3; letter-spacing: -.2px; }
.state-copy p { margin: 0; font-size: 16px; line-height: 1.65; }
.landing-card { margin-top: 24px; padding: 28px 32px; border: 1px solid var(--line); border-radius: 4px; background: var(--paper); }
.landing-card h2 { margin: 0 0 16px; font-size: 20px; line-height: 1.3; }
.landing-card p { margin: 7px 0 0; font-size: 16px; line-height: 1.6; overflow-wrap: anywhere; }

.certificate-card {
  margin-top: 24px;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  background: var(--paper);
}
.record-heading { padding: 32px 32px 29px; }
.record-heading .eyebrow { margin-bottom: 7px; }
.protocol-label { margin: 0; font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; }
.protocol-value { font-weight: 700; }
.holder-name { margin: 25px 0 13px; font-size: clamp(25px, 3.5vw, 35px); letter-spacing: -.7px; line-height: 1.18; overflow-wrap: anywhere; }
.course-title { max-width: 730px; margin: 0; font-size: 18px; line-height: 1.5; font-weight: 600; overflow-wrap: anywhere; }
.details-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin: 0; padding: 0 32px; }
.detail-item { padding: 22px 0; border-top: 1px solid var(--line); min-width: 0; }
.detail-item:nth-child(odd):not(.detail-wide) { padding-right: 22px; }
.detail-wide { grid-column: 1 / -1; }
dt { margin: 0 0 9px; font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .55px; line-height: 1.5; }
dd { margin: 0; font-size: 17px; line-height: 1.5; overflow-wrap: anywhere; }
.contact-block { margin-top: 7px; padding: 27px 32px 30px; border-top: 1px solid var(--line); background: #fafcfd; }
.contact-block h3 { margin: 0 0 15px; font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .55px; }
.contact-block p { margin: 5px 0 0; font-size: 16px; line-height: 1.6; overflow-wrap: anywhere; }
.contact-name { font-weight: 700; }
.contact-link { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }

.page-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.button {
  min-height: 46px;
  padding: 11px 18px;
  border: 1px solid var(--navy);
  border-radius: 4px;
  cursor: pointer;
  color: var(--ink);
  background: var(--paper);
  font-size: 14px;
  line-height: 1.4;
  font-weight: 600;
}
.button-primary { background: var(--pale); }
.button-secondary { border-color: var(--line); }
.button:hover { background: #e8eff5; border-color: var(--navy); }
.button:disabled { cursor: wait; opacity: .65; }
button:focus-visible, a:focus-visible { outline: 3px solid var(--navy); outline-offset: 4px; }
.site-footer { margin-top: 46px; padding: 24px 0 36px; border-top: 1px solid var(--line); }
.site-footer p { margin: 0; font-size: 14px; line-height: 1.75; }
.site-footer p + p { margin-top: 3px; }
.noscript-message { margin-top: 20px; padding: 22px; border: 1px solid var(--line); }
.noscript-message h2 { margin: 0 0 10px; font-size: 19px; }
.noscript-message p { margin: 0; font-size: 16px; line-height: 1.6; }

@media (max-width: 600px) {
  #verification-app { padding: 0 20px; }
  .site-header { min-height: 108px; padding: 24px 0; gap: 15px; }
  .brand { gap: 10px; }
  .brand-symbol { width: 43px; height: 47px; }
  .brand-name { padding-left: 10px; font-size: 19px; }
  .header-context { font-size: 11px; line-height: 1.45; }
  .intro { padding: 34px 0 24px; }
  h1 { letter-spacing: -.85px; }
  .intro-copy { font-size: 16px; margin-top: 15px; }
  .state-panel { padding: 20px 17px; gap: 12px; }
  .state-copy h2 { font-size: 17px; }
  .state-copy p { font-size: 16px; }
  .state-icon { width: 25px; height: 25px; flex-basis: 25px; font-size: 14px; }
  .certificate-card { margin-top: 18px; }
  .landing-card { margin-top: 18px; padding: 25px 21px; }
  .record-heading { padding: 25px 21px; }
  .holder-name { margin-top: 22px; }
  .course-title { font-size: 16px; }
  .details-grid { padding: 0 21px; }
  .detail-item { padding: 19px 0; }
  dt { font-size: 14px; }
  dd { font-size: 16px; }
  .contact-block { padding: 23px 21px 25px; }
  .page-actions { gap: 10px; }
  .button { flex: 1 1 160px; font-size: 16px; }
  .site-footer { margin-top: 34px; padding-bottom: 28px; }
  .site-footer p { font-size: 16px; }
}

@media (max-width: 370px) {
  #verification-app { padding: 0 16px; }
  .header-context { max-width: 105px; font-size: 10px; }
  .brand-name { font-size: 17px; }
  .details-grid { grid-template-columns: 1fr; }
  .detail-item:nth-child(odd):not(.detail-wide) { padding-right: 0; }
}

@media print {
  #verification-app { max-width: none; padding: 0; }
  .site-header { min-height: 80px; padding: 10px 0 20px; }
  .intro { padding: 22px 0 18px; }
  .page-actions { display: none !important; }
  .certificate-card { break-inside: avoid; }
  .site-footer { margin-top: 24px; }
}
