@font-face {
  font-family: "Roboto Condensed";
  src: url("/assets/roboto-condensed-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Roboto Condensed";
  src: url("/assets/roboto-condensed-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  --navy: #061f30;
  --ink: #123449;
  --muted: #566b78;
  --paper: #f7f8f5;
  --line: #dce4e7;
  --blue: #0078cf;
  --ice: #edf5fa;
  --blue-deep: #005b9e;
  --field-border: #788e9d;
  color: var(--ink);
  background: var(--navy);
  font: 1.125rem/1.5 "Roboto Condensed", "Arial Narrow", Arial, sans-serif;
}

html[data-whml-theme="dark"] {
  --field-border: #708da1;
}

*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, p, dl, dd { margin: 0; }
body {
  --hero-shade: linear-gradient(90deg, #031827f5 0%, #031827d9 22%, #03182780 46%, #03182718 73%);
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
}
[dir="rtl"] body {
  --hero-shade: linear-gradient(270deg, #031827f5, #031827d9 45%, #03182760 100%);
}
body::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 0 auto;
  height: clamp(23rem, 43vw, 30rem);
  background:
    linear-gradient(180deg, #03182726 45%, transparent 66%, var(--paper) 100%),
    var(--hero-shade),
    url("/assets/verify-hero.webp") center 42% / cover,
    var(--navy);
}
html:is([data-whml-images="true"], [data-whml-contrast="high"]) body::before {
  background: linear-gradient(var(--navy) 68%, var(--paper));
}
button, input, summary { font: inherit; }
a { color: inherit; }
:focus-visible { outline: 3px solid #e59424; outline-offset: 4px; }
.shell { width: min(100% - clamp(2rem, 8vw, 6rem), 54rem); margin-inline: auto; }

header.masthead {
  background: linear-gradient(#041a2adb, #041a2a18);
  color: white;
  border-block-end: 1px solid #ffffff30;
}
.masthead-inner {
  width: min(100% - clamp(2rem, 8vw, 6rem), 76rem);
  min-height: 108px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px 30px;
  padding-block: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  gap: 13px;
  color: #fff;
  text-decoration: none;
}
.brand img { flex-shrink: 0; object-fit: contain; filter: grayscale(1) brightness(0) invert(1); }
.brand-type { display: inline-grid; grid-template-columns: min-content; min-width: 0; }
.brand-type strong { color: #fff; line-height: 1.04; letter-spacing: -.04em; white-space: nowrap; }
.brand-type .brand-name { color: #d2e1e9; line-height: 1.3; overflow-wrap: break-word; }
html[data-whml-contrast="high"] .brand-type strong { color: #fff !important; }
.module-name { color: #d2e1e9; font-size: .875rem; padding-inline-start: 13px; border-inline-start: 1px solid #ffffff35; }
.masthead-controls { display: flex; align-items: stretch; min-width: 0; }
.masthead .language-picker .language-options { backdrop-filter: blur(18px); }
.verify-header-language { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.verify-utility-link, .verify-module-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #fff;
  text-underline-offset: .2em;
}

main { flex: 1; padding-block-end: clamp(2.5rem, 6vw, 4.5rem); }
.page-hero .introduction { user-select: text; }
.introduction { padding-block: clamp(2.9rem, 7vw, 5.25rem) clamp(1.7rem, 4vw, 2.7rem); }
.introduction h1 {
  color: white;
  font-size: clamp(2.4rem, 6.2vw, 4.5rem);
  line-height: 1.06;
  letter-spacing: -.04em;
  overflow-wrap: anywhere;
}
.introduction p {
  margin-block-start: .8rem;
  max-width: 34rem;
  color: #e2edf3;
  font-size: clamp(1.08rem, 2.3vw, 1.3rem);
}
.card {
  border: 1px solid var(--line);
  border-block-start: 3px solid var(--whml-accent);
  border-radius: .4rem;
  background: var(--whml-overlay);
  backdrop-filter: blur(12px);
  padding: clamp(1.25rem, 4vw, 2rem);
  box-shadow: var(--whml-shadow);
}
label { display: inline-block; font-weight: 700; font-size: 1.22rem; }
#code-hint { color: var(--muted); font-size: 1rem; margin-block-start: .25rem; }
.form-controls { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .7rem; margin-block-start: .9rem; }
input, .form-controls button { min-height: 52px; padding: .6rem .95rem; border-radius: .25rem; }
input {
  min-width: 0;
  width: 100%;
  border: 1px solid var(--field-border);
  background: var(--whml-surface);
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.form-controls button { min-width: 8rem; padding-inline: 1.55rem; border: 1px solid #005b9e; background: #005b9e; color: white; font-weight: 700; cursor: pointer; }
.form-controls button:hover { background: var(--navy); }
.result {
  --status: var(--blue-deep);
  --status-surface: var(--ice);
  border: 1px solid var(--line);
  border-radius: .4rem;
  background: var(--whml-surface);
  margin-block-start: 1rem;
  box-shadow: 0 .45rem 1.4rem #061f300b;
}
.result[data-status="valid"] { --status: #176143; --status-surface: #eef8f2; }
.result[data-status="expired"] { --status: #785300; --status-surface: #fff7e1; }
.result:is([data-status="revoked"], [data-status="invalid"], [data-status="empty"]) {
  --status: #9b2935;
  --status-surface: #fff1f2;
}
[data-whml-theme="dark"] .result { --status: #a5d9ff; --status-surface: #13344d; }
[data-whml-theme="dark"] .result[data-status="valid"] { --status: #98e5bc; --status-surface: #123a30; }
[data-whml-theme="dark"] .result[data-status="expired"] { --status: #ffd989; --status-surface: #3d301c; }
[data-whml-theme="dark"] .result:is([data-status="revoked"], [data-status="invalid"], [data-status="empty"]) {
  --status: #ffb5bb;
  --status-surface: #442932;
}
.result-heading {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .9rem clamp(1.15rem, 4vw, 2rem);
  border-inline-start: 4px solid var(--status);
  border-radius: .35rem .35rem 0 0;
  background: var(--status-surface);
}
.status-icon {
  display: grid;
  place-items: center;
  flex: 0 0 1.85rem;
  height: 1.85rem;
  border: 1px solid currentColor;
  border-radius: 50%;
  color: var(--status);
  font-weight: 700;
  line-height: 1;
}
.status-icon::before { content: "i"; }
[data-status="valid"] .status-icon::before { content: "✓"; }
[data-status="expired"] .status-icon::before { content: "!"; }
[data-status="revoked"] .status-icon::before { content: "×"; }
.status-label { font-size: .875rem; color: var(--status); }
.result h2 { font-size: clamp(1.3rem, 3.5vw, 1.65rem); color: var(--status); line-height: 1.25; }
.result-body { padding: .2rem clamp(1.25rem, 4vw, 2rem) .35rem; }
.result dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 1.5rem;
  margin-block-start: .45rem;
  border-block-end: 1px solid var(--line);
}
.result dl > div { padding-block: .65rem; }
.result dt { font-size: .95rem; color: var(--muted); }
.result dd { font-weight: 700; overflow-wrap: anywhere; }
.retry { display: inline-flex; align-items: center; min-height: 44px; color: var(--blue-deep); font-size: 1rem; text-underline-offset: .2em; }
.retry:hover { text-decoration-thickness: 2px; }

.site-footer {
  background: #102d40;
  color: white;
}
.footer-inner {
  width: min(100% - 10.5rem, 76rem);
  min-height: 6.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .8rem 2rem;
  padding-block: 1.15rem 1.35rem;
  border-block-start: 1px solid #2e495b;
}
.footer-brand strong { font-size: 1.5rem; }
.footer-brand .brand-name { font-size: .75rem; }
.preview { color: #a9c1d0; font-size: .95rem; }

@media (max-width: 35rem) {
  body { --hero-shade: linear-gradient(90deg, #031827e6, #031827b5); }
  [dir="rtl"] body { --hero-shade: linear-gradient(270deg, #031827e6, #031827b5); }
  .masthead-inner { gap: 12px 16px; }
  .masthead-controls { flex: 1 1 100%; }
  .masthead .language-picker-flags { flex: 1; }
  .masthead .language-picker-flags .language-options { max-height: min(570px, calc(100dvh - 15rem)); }
  .verify-visitor-header .language-picker-flags { min-width: min(10rem, 50vw); }
  .introduction { padding-block-start: 2.5rem; }
  .form-controls, .result dl { grid-template-columns: minmax(0, 1fr); }
  .masthead .brand img { width: 56px; height: 56px; }
  .result dl > div + div { border-block-start: 1px solid var(--line); }
  .footer-inner { width: calc(100% - 7.5rem); align-items: start; flex-direction: column; padding-block-end: 4rem; }
  .footer-brand { gap: 8px; }
  .footer-brand .module-name { padding-inline-start: 8px; }
}
