:root {
  --vafm-navy: #062e5b;
  --vafm-deep: #031f3f;
  --vafm-blue: #075cab;
  --vafm-bright: #1678cf;
  --vafm-red: #f34743;
  --vafm-red-dark: #d93235;
  --vafm-gold: #d6a536;
  --vafm-ink: #173653;
  --vafm-body: #506a82;
  --vafm-muted: #7b8ea1;
  --vafm-line: #d7e1ea;
  --vafm-soft: #f2f6f9;
  --vafm-white: #fff;
  --vafm-success: #16815c;
  --vafm-shadow: 0 22px 60px rgba(1, 30, 61, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--vafm-soft);
  color: var(--vafm-ink);
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background: var(--vafm-soft);
  color: var(--vafm-ink);
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

svg {
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.query-shell {
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
}

.query-header {
  position: relative;
  z-index: 10;
  min-height: 94px;
  background: var(--vafm-white);
  border-bottom: 1px solid rgba(215, 225, 234, 0.9);
}

.query-header__inner {
  min-height: 94px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.query-brand {
  min-width: 0;
  display: flex;
  align-items: center;
}

.query-brand img {
  width: 190px;
  height: 54px;
  flex: 0 0 190px;
  object-fit: contain;
}

.query-brand__divider {
  width: 1px;
  height: 43px;
  margin: 0 20px;
  background: var(--vafm-line);
}

.query-brand__copy strong,
.query-brand__copy span {
  display: block;
}

.query-brand__copy strong {
  color: var(--vafm-navy);
  font-size: 17px;
  line-height: 1.3;
  font-weight: 750;
}

.query-brand__copy span {
  margin-top: 4px;
  color: var(--vafm-muted);
  font-size: 12px;
  line-height: 1.35;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.query-header__assurance,
.query-header__back {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #49647d;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 650;
}

.query-header__assurance svg,
.query-header__back svg {
  width: 21px;
  height: 21px;
  color: var(--vafm-blue);
}

.query-header__back {
  padding: 10px 14px;
  border: 1px solid var(--vafm-line);
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.query-header__back:hover {
  border-color: #aebfce;
  background: var(--vafm-soft);
  color: var(--vafm-blue);
}

.lookup-hero {
  position: relative;
  min-height: 640px;
  overflow: hidden;
  background: var(--vafm-deep);
}

.lookup-hero__image,
.lookup-hero__overlay {
  position: absolute;
  inset: 0;
}

.lookup-hero__image {
  background: url("../images/vafm-query-hero.png") center center / cover no-repeat;
}

.lookup-hero__overlay {
  background:
    linear-gradient(90deg, rgba(3, 26, 53, 0.97) 0%, rgba(3, 31, 63, 0.9) 38%, rgba(3, 31, 63, 0.54) 68%, rgba(3, 31, 63, 0.34) 100%),
    linear-gradient(180deg, rgba(3, 31, 63, 0.08), rgba(3, 31, 63, 0.3));
}

.lookup-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 5px;
  background: linear-gradient(90deg, var(--vafm-red) 0 27%, var(--vafm-gold) 27% 33%, var(--vafm-blue) 33% 100%);
}

.lookup-hero__inner {
  position: relative;
  z-index: 1;
  min-height: 640px;
  padding: 72px 0;
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(480px, 0.82fr);
  gap: 76px;
  align-items: center;
}

.lookup-intro {
  max-width: 610px;
  color: var(--vafm-white);
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #ffcf5f;
  font-size: 13px;
  line-height: 1.4;
  font-weight: 750;
  letter-spacing: 0.14em;
}

.section-eyebrow::before {
  content: "";
  width: 34px;
  height: 2px;
  background: currentColor;
}

.section-eyebrow--dark {
  color: var(--vafm-red);
}

.lookup-intro h1 {
  margin: 22px 0 20px;
  color: var(--vafm-white);
  font-size: clamp(43px, 4.5vw, 64px);
  line-height: 1.08;
  font-weight: 760;
  letter-spacing: -0.025em;
}

.lookup-intro > p {
  max-width: 565px;
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 18px;
  line-height: 1.75;
}

.lookup-intro__trust {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
}

.lookup-intro__trust span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 14px;
  font-weight: 650;
}

.lookup-intro__trust svg {
  width: 19px;
  height: 19px;
  color: #68b8ff;
}

.lookup-panel {
  position: relative;
  background: rgba(255, 255, 255, 0.98);
  border-top: 5px solid var(--vafm-red);
  box-shadow: 0 28px 74px rgba(0, 19, 42, 0.34);
}

.lookup-panel::after {
  content: "";
  position: absolute;
  top: -5px;
  right: 0;
  width: 92px;
  height: 5px;
  background: var(--vafm-gold);
}

.lookup-panel__heading {
  padding: 30px 34px 26px;
  display: flex;
  align-items: flex-start;
  gap: 18px;
  border-bottom: 1px solid var(--vafm-line);
}

.lookup-panel__icon {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  display: grid;
  place-items: center;
  background: #edf5fc;
  color: var(--vafm-blue);
}

.lookup-panel__icon svg {
  width: 27px;
  height: 27px;
}

.lookup-panel__label {
  display: block;
  margin: 1px 0 6px;
  color: var(--vafm-red);
  font-size: 12px;
  line-height: 1.4;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.lookup-panel__heading h2 {
  margin: 0;
  color: var(--vafm-navy);
  font-size: 26px;
  line-height: 1.25;
  font-weight: 760;
}

.lookup-panel__heading p {
  margin: 7px 0 0;
  color: var(--vafm-body);
  font-size: 14px;
  line-height: 1.55;
}

.lookup-form {
  padding: 28px 34px 25px;
}

.lookup-field {
  display: block;
}

.lookup-field + .lookup-field {
  margin-top: 20px;
}

.lookup-field__label {
  display: block;
  margin-bottom: 9px;
  color: #294963;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 700;
}

.lookup-control {
  position: relative;
  display: block;
}

.lookup-control svg {
  position: absolute;
  top: 50%;
  left: 17px;
  width: 21px;
  height: 21px;
  color: #7790a7;
  transform: translateY(-50%);
  pointer-events: none;
}

.lookup-control input {
  width: 100%;
  height: 56px;
  padding: 0 16px 0 51px;
  border: 1px solid #c8d5e0;
  border-radius: 0;
  outline: 0;
  background: #fbfdff;
  color: var(--vafm-ink);
  font-size: 16px;
  line-height: 1;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.lookup-control input::placeholder {
  color: #96a5b3;
}

.lookup-control input:hover {
  border-color: #9fb2c4;
}

.lookup-control input:focus {
  border-color: var(--vafm-blue);
  background: var(--vafm-white);
  box-shadow: 0 0 0 3px rgba(7, 92, 171, 0.12);
}

.lookup-submit {
  width: 100%;
  min-height: 56px;
  margin-top: 24px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  background: var(--vafm-blue);
  color: var(--vafm-white);
  font-size: 16px;
  line-height: 1.3;
  font-weight: 750;
  cursor: pointer;
  transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.lookup-submit svg {
  width: 20px;
  height: 20px;
}

.lookup-submit:hover {
  background: var(--vafm-navy);
  box-shadow: 0 10px 24px rgba(7, 92, 171, 0.24);
  transform: translateY(-1px);
}

.lookup-panel__note {
  padding: 17px 34px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #eef3f7;
  border-top: 1px solid var(--vafm-line);
}

.lookup-panel__note svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  margin-top: 2px;
  color: var(--vafm-blue);
}

.lookup-panel__note p {
  margin: 0;
  color: #657d92;
  font-size: 13px;
  line-height: 1.6;
}

.query-guidance {
  padding: 84px 0 90px;
  background: var(--vafm-white);
}

.query-guidance__heading {
  max-width: 690px;
}

.query-guidance__heading h2 {
  margin: 16px 0 12px;
  color: var(--vafm-ink);
  font-size: 36px;
  line-height: 1.2;
  font-weight: 750;
  letter-spacing: -0.018em;
}

.query-guidance__heading p {
  margin: 0;
  color: var(--vafm-body);
  font-size: 16px;
  line-height: 1.7;
}

.query-guidance__grid {
  margin-top: 38px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--vafm-line);
  border-bottom: 1px solid var(--vafm-line);
}

.query-guidance__grid article {
  min-height: 235px;
  padding: 34px 34px 32px;
}

.query-guidance__grid article + article {
  border-left: 1px solid var(--vafm-line);
}

.guidance-icon {
  width: 45px;
  height: 45px;
  display: grid;
  place-items: center;
  background: #edf5fc;
  color: var(--vafm-blue);
}

.guidance-icon svg {
  width: 24px;
  height: 24px;
}

.query-guidance__grid h3 {
  margin: 23px 0 10px;
  color: var(--vafm-ink);
  font-size: 18px;
  line-height: 1.35;
}

.query-guidance__grid p {
  margin: 0;
  color: var(--vafm-body);
  font-size: 14px;
  line-height: 1.7;
}

.query-footer {
  background: var(--vafm-deep);
  color: rgba(255, 255, 255, 0.68);
}

.query-footer__inner {
  min-height: 114px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.query-footer__brand {
  display: flex;
  align-items: center;
  gap: 19px;
}

.query-footer__brand img {
  width: 142px;
  height: 40px;
  padding: 7px 11px;
  background: var(--vafm-white);
  object-fit: contain;
}

.query-footer__brand span {
  font-size: 13px;
  line-height: 1.5;
}

.query-footer p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
}

/* Result page */
.result-banner {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(3, 31, 63, 0.98), rgba(6, 46, 91, 0.86)),
    url("../images/vafm-query-hero.png") center 48% / cover no-repeat;
  color: var(--vafm-white);
}

.result-banner::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 4px;
  background: linear-gradient(90deg, var(--vafm-red) 0 24%, var(--vafm-gold) 24% 30%, var(--vafm-blue) 30% 100%);
}

.result-banner__inner {
  min-height: 238px;
  padding: 45px 0 49px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.result-banner h1 {
  margin: 14px 0 8px;
  color: var(--vafm-white);
  font-size: 43px;
  line-height: 1.15;
  font-weight: 760;
  letter-spacing: -0.02em;
}

.result-banner p {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 16px;
  line-height: 1.6;
}

.result-banner__mark {
  width: 84px;
  height: 84px;
  flex: 0 0 84px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: rgba(255, 255, 255, 0.7);
}

.result-banner__mark svg {
  width: 40px;
  height: 40px;
}

.result-main {
  min-height: calc(100vh - 446px);
  padding: 58px 0 76px;
  background:
    linear-gradient(rgba(242, 246, 249, 0.94), rgba(242, 246, 249, 0.94)),
    url("../images/query-texture.png") center / cover no-repeat;
}

.certificate-record,
.no-result-card {
  background: var(--vafm-white);
  box-shadow: var(--vafm-shadow);
}

.record-status {
  min-height: 128px;
  padding: 28px 36px;
  display: flex;
  align-items: center;
  gap: 20px;
  border-top: 4px solid var(--vafm-success);
  border-bottom: 1px solid var(--vafm-line);
}

.record-status__icon {
  width: 56px;
  height: 56px;
  flex: 0 0 56px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e8f6f0;
  color: var(--vafm-success);
}

.record-status__icon svg {
  width: 30px;
  height: 30px;
}

.record-status__copy {
  min-width: 0;
}

.record-overline {
  display: block;
  color: var(--vafm-red);
  font-size: 12px;
  line-height: 1.4;
  font-weight: 800;
  letter-spacing: 0.11em;
}

.record-status__copy h2 {
  margin: 4px 0 4px;
  color: var(--vafm-navy);
  font-size: 24px;
  line-height: 1.25;
}

.record-status__copy p {
  margin: 0;
  color: var(--vafm-body);
  font-size: 14px;
  line-height: 1.55;
}

.record-status__badge {
  margin-left: auto;
  padding: 11px 16px;
  border: 1px solid #bfe2d3;
  background: #edf8f3;
  color: var(--vafm-success);
  font-size: 13px;
  line-height: 1.3;
  font-weight: 750;
  white-space: nowrap;
}

.record-identity {
  position: relative;
  min-height: 208px;
  padding: 34px 42px;
  display: flex;
  align-items: center;
  gap: 30px;
  overflow: hidden;
  background: linear-gradient(120deg, #052f5d, #075ba7);
  color: var(--vafm-white);
}

.record-identity::after {
  content: "";
  position: absolute;
  right: -110px;
  bottom: -170px;
  width: 390px;
  height: 390px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  box-shadow: 0 0 0 50px rgba(255, 255, 255, 0.035), 0 0 0 100px rgba(255, 255, 255, 0.025);
}

.record-person__visual,
.record-identity__copy,
.record-identity__symbol,
.record-identity__seal,
.organization-code {
  position: relative;
  z-index: 1;
}

.record-photo {
  width: 132px;
  height: 148px;
  margin: 0;
  overflow: hidden;
  border: 5px solid rgba(255, 255, 255, 0.94);
  background: #e8f0f6;
  box-shadow: 0 9px 24px rgba(0, 17, 37, 0.25);
}

.record-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.record-photo--placeholder {
  display: grid;
  place-items: center;
  color: var(--vafm-blue);
}

.record-photo--placeholder svg {
  width: 56px;
  height: 56px;
}

.record-identity__copy {
  min-width: 0;
  max-width: 710px;
}

.record-identity__type {
  display: block;
  color: #8bc9ff;
  font-size: 12px;
  line-height: 1.4;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.record-identity h1 {
  margin: 9px 0 13px;
  color: var(--vafm-white);
  font-size: clamp(30px, 4vw, 45px);
  line-height: 1.18;
  font-weight: 750;
  letter-spacing: -0.018em;
  overflow-wrap: anywhere;
}

.record-identity__copy p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  line-height: 1.6;
}

.record-identity__copy p strong {
  margin-left: 8px;
  color: var(--vafm-white);
  font-size: 16px;
  font-weight: 750;
  letter-spacing: 0.03em;
}

.record-identity__seal {
  width: 70px;
  height: 70px;
  margin-left: auto;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: rgba(255, 255, 255, 0.7);
}

.record-identity__seal svg {
  width: 34px;
  height: 34px;
}

.record-identity--organization {
  min-height: 226px;
}

.record-identity__symbol {
  width: 94px;
  height: 94px;
  flex: 0 0 94px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: var(--vafm-white);
}

.record-identity__symbol svg {
  width: 48px;
  height: 48px;
}

.organization-code {
  margin-left: auto;
  padding: 16px 20px;
  min-width: 230px;
  border-left: 3px solid var(--vafm-gold);
  background: rgba(3, 31, 63, 0.35);
}

.organization-code span,
.organization-code strong {
  display: block;
}

.organization-code span {
  color: rgba(255, 255, 255, 0.66);
  font-size: 12px;
  line-height: 1.5;
}

.organization-code strong {
  margin-top: 5px;
  color: var(--vafm-white);
  font-size: 16px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.record-sections {
  padding: 38px 42px 16px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  align-items: start;
}

.record-sections .record-section:only-child {
  grid-column: 1 / -1;
}

.record-section {
  border: 1px solid var(--vafm-line);
  background: var(--vafm-white);
}

.record-section__heading {
  min-height: 82px;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  gap: 14px;
  border-top: 3px solid var(--vafm-blue);
  border-bottom: 1px solid var(--vafm-line);
  background: #f6f9fb;
}

.record-section__icon {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  background: #e7f1f9;
  color: var(--vafm-blue);
}

.record-section__icon svg {
  width: 23px;
  height: 23px;
}

.record-section__heading span:not(.record-section__icon) {
  display: block;
  color: var(--vafm-red);
  font-size: 12px;
  line-height: 1.35;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.record-section__heading h3 {
  margin: 4px 0 0;
  color: var(--vafm-ink);
  font-size: 19px;
  line-height: 1.3;
}

.record-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.record-row {
  min-width: 0;
  min-height: 84px;
  padding: 17px 20px 18px;
  border-bottom: 1px solid var(--vafm-line);
}

.record-row:nth-child(odd) {
  border-right: 1px solid var(--vafm-line);
}

.record-row--wide {
  grid-column: 1 / -1;
  border-right: 0 !important;
}

.record-row:last-child,
.record-row:nth-last-child(2):nth-child(odd) {
  border-bottom: 0;
}

.record-label,
.record-value {
  display: block;
}

.record-label {
  color: var(--vafm-muted);
  font-size: 12px;
  line-height: 1.45;
  font-weight: 650;
}

.record-value {
  margin-top: 6px;
  color: var(--vafm-ink);
  font-size: 15px;
  line-height: 1.5;
  font-weight: 650;
  overflow-wrap: anywhere;
}

.record-value--code {
  color: var(--vafm-blue);
  letter-spacing: 0.025em;
}

.record-footer {
  padding: 22px 42px 32px;
}

.record-footer__notice {
  padding: 16px 18px;
  display: flex;
  align-items: flex-start;
  gap: 11px;
  background: #eef4f8;
  border-left: 3px solid var(--vafm-blue);
}

.record-footer__notice svg {
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  margin-top: 2px;
  color: var(--vafm-blue);
}

.record-footer__notice p {
  margin: 0;
  color: var(--vafm-body);
  font-size: 13px;
  line-height: 1.65;
}

.record-actions {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

.record-action {
  min-height: 46px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid #bdcad6;
  background: var(--vafm-white);
  color: var(--vafm-ink);
  font-size: 14px;
  line-height: 1.3;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.record-action svg {
  width: 18px;
  height: 18px;
}

.record-action:hover {
  border-color: var(--vafm-blue);
  color: var(--vafm-blue);
}

.record-action--primary {
  border-color: var(--vafm-blue);
  background: var(--vafm-blue);
  color: var(--vafm-white);
}

.record-action--primary:hover {
  border-color: var(--vafm-navy);
  background: var(--vafm-navy);
  color: var(--vafm-white);
}

.no-result-card {
  max-width: 820px;
  margin: 0 auto;
  padding: 50px 54px;
  border-top: 5px solid var(--vafm-red);
  text-align: center;
}

.no-result-card__icon {
  width: 76px;
  height: 76px;
  margin: 0 auto 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff1f0;
  color: var(--vafm-red);
}

.no-result-card__icon svg {
  width: 39px;
  height: 39px;
}

.no-result-card h2 {
  margin: 9px 0 12px;
  color: var(--vafm-navy);
  font-size: 30px;
  line-height: 1.25;
}

.no-result-card > p {
  max-width: 640px;
  margin: 0 auto;
  color: var(--vafm-body);
  font-size: 15px;
  line-height: 1.7;
}

.no-result-query {
  margin: 30px 0 22px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  text-align: left;
  border: 1px solid var(--vafm-line);
}

.no-result-query > div {
  min-width: 0;
  padding: 18px 20px;
}

.no-result-query > div + div {
  border-left: 1px solid var(--vafm-line);
}

.no-result-query span,
.no-result-query strong {
  display: block;
}

.no-result-query span {
  color: var(--vafm-muted);
  font-size: 12px;
  font-weight: 650;
}

.no-result-query strong {
  margin-top: 6px;
  color: var(--vafm-ink);
  font-size: 15px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.no-result-card__advice {
  margin-bottom: 28px;
  padding: 15px 18px;
  background: #f3f6f9;
  color: var(--vafm-body);
  font-size: 13px;
  line-height: 1.6;
}

.no-result-card__advice strong {
  margin-right: 4px;
  color: var(--vafm-ink);
}

.no-result-card .record-action {
  margin: 0 auto;
}

.lookup-submit:focus-visible,
.record-action:focus-visible,
.query-brand:focus-visible,
.query-header__back:focus-visible {
  outline: 3px solid rgba(22, 120, 207, 0.28);
  outline-offset: 3px;
}

@media (max-width: 1020px) {
  .lookup-hero__inner {
    grid-template-columns: minmax(0, 0.8fr) minmax(430px, 1fr);
    gap: 38px;
  }

  .lookup-intro h1 {
    font-size: 46px;
  }

  .record-sections {
    grid-template-columns: 1fr;
  }

  .record-sections .record-section {
    grid-column: auto;
  }

  .record-identity--organization {
    flex-wrap: wrap;
  }

  .organization-code {
    width: 100%;
    margin: 0 0 0 124px;
  }
}

@media (max-width: 820px) {
  .query-shell {
    width: min(100% - 36px, 1200px);
  }

  .query-header,
  .query-header__inner {
    min-height: 78px;
  }

  .query-brand img {
    width: 145px;
    height: 42px;
    flex-basis: 145px;
  }

  .query-brand__divider {
    height: 34px;
    margin: 0 14px;
  }

  .query-brand__copy strong {
    font-size: 15px;
  }

  .query-brand__copy span {
    font-size: 12px;
  }

  .query-header__assurance span {
    display: none;
  }

  .lookup-hero__inner {
    min-height: auto;
    padding: 58px 0 64px;
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .lookup-intro {
    max-width: 650px;
  }

  .lookup-intro h1 {
    font-size: 46px;
  }

  .query-guidance__grid {
    grid-template-columns: 1fr;
  }

  .query-guidance__grid article {
    min-height: 0;
    display: grid;
    grid-template-columns: 45px minmax(0, 1fr);
    column-gap: 20px;
  }

  .query-guidance__grid article + article {
    border-top: 1px solid var(--vafm-line);
    border-left: 0;
  }

  .query-guidance__grid h3,
  .query-guidance__grid p {
    grid-column: 2;
  }

  .query-guidance__grid h3 {
    margin: 0 0 8px;
  }

  .result-banner__inner {
    min-height: 210px;
  }

  .record-status {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .record-status__copy {
    flex: 1 1 calc(100% - 80px);
  }

  .record-status__badge {
    margin-left: 76px;
  }

  .record-identity {
    padding: 30px;
  }

  .record-identity__seal {
    display: none;
  }

  .record-sections {
    padding: 30px 30px 12px;
  }

  .record-footer {
    padding: 20px 30px 30px;
  }

  .query-footer__inner {
    padding: 27px 0;
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 620px) {
  .query-shell {
    width: min(100% - 28px, 1200px);
  }

  .query-header__inner {
    gap: 12px;
  }

  .query-brand img {
    width: 128px;
    height: 38px;
    flex-basis: 128px;
  }

  .query-brand__divider {
    height: 31px;
    margin: 0 10px;
  }

  .query-brand__copy strong {
    font-size: 13px;
  }

  .query-brand__copy span {
    margin-top: 2px;
    font-size: 12px;
  }

  .query-header__back {
    width: 42px;
    height: 42px;
    padding: 0;
    justify-content: center;
    font-size: 0;
  }

  .query-result .query-brand__divider,
  .query-result .query-brand__copy {
    display: none;
  }

  .lookup-hero__inner {
    padding: 45px 0 50px;
  }

  .section-eyebrow {
    font-size: 12px;
    letter-spacing: 0.1em;
  }

  .lookup-intro h1 {
    margin-top: 17px;
    font-size: 38px;
  }

  .lookup-intro > p {
    font-size: 16px;
  }

  .lookup-intro__trust {
    margin-top: 24px;
    gap: 12px 20px;
  }

  .lookup-panel__heading,
  .lookup-form,
  .lookup-panel__note {
    padding-left: 22px;
    padding-right: 22px;
  }

  .lookup-panel__heading {
    gap: 13px;
  }

  .lookup-panel__icon {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
  }

  .lookup-panel__heading h2 {
    font-size: 21px;
  }

  .lookup-control input {
    font-size: 16px;
  }

  .query-guidance {
    padding: 62px 0 66px;
  }

  .query-guidance__heading h2 {
    font-size: 29px;
  }

  .query-guidance__grid article {
    padding: 28px 20px;
  }

  .query-footer__brand {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .result-banner__inner {
    min-height: 192px;
    padding: 38px 0 42px;
  }

  .result-banner h1 {
    font-size: 34px;
  }

  .result-banner__mark {
    display: none;
  }

  .result-main {
    padding: 36px 0 52px;
  }

  .record-status {
    padding: 24px 22px;
    gap: 14px;
  }

  .record-status__icon {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
  }

  .record-status__copy {
    flex-basis: calc(100% - 62px);
  }

  .record-status__copy h2 {
    font-size: 20px;
  }

  .record-status__badge {
    margin-left: 62px;
  }

  .record-identity {
    min-height: 0;
    padding: 28px 22px;
    align-items: flex-start;
    gap: 19px;
  }

  .record-photo {
    width: 94px;
    height: 112px;
    border-width: 4px;
  }

  .record-identity h1 {
    font-size: 28px;
  }

  .record-identity__copy p strong {
    display: block;
    margin: 4px 0 0;
    font-size: 14px;
  }

  .record-identity--organization {
    display: grid;
    grid-template-columns: 66px minmax(0, 1fr);
  }

  .record-identity__symbol {
    width: 66px;
    height: 66px;
  }

  .record-identity__symbol svg {
    width: 34px;
    height: 34px;
  }

  .organization-code {
    grid-column: 1 / -1;
    width: 100%;
    margin: 2px 0 0;
  }

  .record-sections {
    padding: 22px 18px 8px;
    gap: 20px;
  }

  .record-grid {
    grid-template-columns: 1fr;
  }

  .record-row,
  .record-row:nth-child(odd) {
    border-right: 0;
    border-bottom: 1px solid var(--vafm-line);
  }

  .record-row:last-child {
    border-bottom: 0;
  }

  .record-footer {
    padding: 16px 18px 24px;
  }

  .record-actions {
    justify-content: stretch;
  }

  .record-action {
    flex: 1 1 160px;
  }

  .no-result-card {
    padding: 38px 22px;
  }

  .no-result-card h2 {
    font-size: 25px;
  }

  .no-result-query {
    grid-template-columns: 1fr;
  }

  .no-result-query > div + div {
    border-top: 1px solid var(--vafm-line);
    border-left: 0;
  }
}

@media print {
  @page {
    margin: 14mm;
  }

  body {
    background: var(--vafm-white);
  }

  .query-header__back,
  .result-banner,
  .record-actions,
  .query-footer {
    display: none !important;
  }

  .query-header {
    min-height: 72px;
    box-shadow: none;
  }

  .query-header__inner {
    min-height: 72px;
  }

  .result-main {
    min-height: 0;
    padding: 20px 0 0;
    background: var(--vafm-white);
  }

  .certificate-record {
    box-shadow: none;
    border: 1px solid var(--vafm-line);
  }

  .record-status,
  .record-identity,
  .record-section,
  .record-row {
    break-inside: avoid;
  }
}
