:root {
  --navy: #061f43;
  --navy-2: #073462;
  --ink: #0e1e33;
  --muted: #617086;
  --line: #d8e0ea;
  --soft: #f6f8fb;
  --gold: #b98222;
  --gold-2: #d9ad5d;
  --green: #15823a;
  --green-soft: #eaf7ee;
  --danger: #aa1e2e;
  --white: #ffffff;
  --shadow: 0 18px 48px rgba(8, 42, 77, 0.12);
  --serif: "Trajan Pro", "Cinzel", "Cormorant SC", Georgia, "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 450;
  line-height: 1.5;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  min-height: 88px;
  padding: 12px clamp(20px, 4vw, 56px);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--gold);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 15px;
}

.brand-stamp {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.wordmark {
  display: grid;
  gap: 5px;
  color: var(--navy);
}

.wordmark-title {
  display: block;
  font-family: var(--serif);
  font-size: clamp(1.4rem, 1.9vw, 1.95rem);
  font-variant: small-caps;
  letter-spacing: 0.02em;
  line-height: 0.92;
  white-space: nowrap;
}

.wordmark-subline {
  display: grid;
  grid-template-columns: minmax(36px, 1fr) auto minmax(36px, 1fr);
  align-items: center;
  gap: 11px;
  color: var(--navy);
}

.wordmark-subline span {
  height: 1.5px;
  background: var(--gold);
}

.wordmark-subline b {
  font-size: 0.66rem;
  font-weight: 850;
  letter-spacing: 0.34em;
  text-indent: 0.34em;
  text-transform: uppercase;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  justify-content: flex-end;
  gap: clamp(16px, 1.9vw, 30px);
  color: var(--navy);
  font-size: 0.95rem;
  font-weight: 650;
}

.site-nav a {
  position: relative;
  padding: 10px 0;
  white-space: nowrap;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 160ms ease;
  content: "";
}

.site-nav a:hover::after,
.site-nav a.is-active::after {
  transform: scaleX(1);
}

.sign-in {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 96px;
  min-height: 40px;
  padding: 8px 16px;
  color: #744706;
  font-weight: 750;
  border: 1px solid var(--gold);
  border-radius: 6px;
}

.sign-in img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.sign-in:hover,
.sign-in.is-active {
  background: #fff8eb;
}

.menu-toggle {
  display: none;
  min-height: 42px;
  padding: 8px 14px;
  color: var(--navy);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
}

main {
  width: min(100%, 1280px);
  margin: 0 auto;
  padding: 0 clamp(18px, 4vw, 40px) 48px;
}

.hero-section {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(380px, 0.76fr);
  gap: clamp(30px, 5vw, 92px);
  align-items: start;
  min-height: auto;
  padding: clamp(38px, 6vw, 78px) 0 36px;
}

.hero-copy {
  max-width: 980px;
}

.hero-rule {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 128px;
  margin-bottom: 18px;
  color: var(--gold);
}

.hero-rule span {
  height: 2px;
  flex: 1;
  background: var(--gold);
}

.hero-rule b {
  font-size: 1rem;
  line-height: 1;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--navy);
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: 0;
}

h1 {
  max-width: 900px;
  font-size: clamp(2.65rem, 4.1vw, 4.1rem);
  line-height: 1.04;
}

.home-hero h1 {
  max-width: 1040px;
  font-size: clamp(2.75rem, 3.25vw, 4.05rem);
  line-height: 1.08;
}

h2 {
  font-size: clamp(1.85rem, 3vw, 2.7rem);
  line-height: 1.08;
}

h3 {
  font-size: 1.35rem;
}

.hero-lede {
  max-width: 720px;
  margin: 16px 0 0;
  color: #27364d;
  font-size: clamp(1rem, 1.25vw, 1.16rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.home-actions {
  align-items: center;
  gap: clamp(18px, 4vw, 54px);
  margin-top: 18px;
}

.secure-line {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #27364d;
  font-weight: 650;
}

.secure-line img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 16px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.1;
  white-space: nowrap;
  cursor: pointer;
}

.button.primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
  box-shadow: 0 10px 22px rgba(8, 42, 77, 0.18);
}

.button-img {
  width: 22px;
  height: 22px;
  margin-right: 9px;
  object-fit: contain;
}

.button.secondary {
  color: var(--navy);
  background: var(--white);
  border-color: var(--gold);
}

.button.compact {
  min-width: 132px;
  min-height: 46px;
  padding: 11px 18px;
}

.compliance-note {
  max-width: 720px;
  margin: 22px 0 0;
  padding: 14px 16px;
  color: #35445c;
  background: #f9fbfd;
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  border-radius: 6px;
  font-size: 0.95rem;
}

.lookup-card,
.lookup-panel,
.registration-form,
.registration-aside,
.verification-card,
.policy-grid article,
.faq-list details,
.support-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.lookup-card {
  padding: 0;
  overflow: hidden;
}

.home-lookup-card {
  max-width: 780px;
  margin-top: 22px;
  box-shadow: none;
}

.lookup-inner {
  display: grid;
  gap: 14px;
  padding: 22px 24px;
}

.quick-actions {
  display: grid;
  gap: 18px;
  padding-top: 10px;
}

.quick-card {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  min-height: 136px;
  padding: 24px 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(8, 42, 77, 0.06);
}

.quick-img {
  width: 78px;
  height: 78px;
  object-fit: contain;
}

.quick-card strong {
  display: block;
  color: var(--navy);
  font-family: var(--serif);
  font-size: 1.38rem;
  line-height: 1.1;
}

.quick-card small {
  display: block;
  margin-top: 8px;
  color: #34445b;
  font-size: 0.98rem;
  line-height: 1.4;
}

.quick-card b {
  color: var(--navy);
  font-size: 2.2rem;
  font-weight: 400;
}

.quick-icon {
  position: relative;
  display: block;
  width: 72px;
  height: 72px;
  color: var(--gold);
  background: linear-gradient(135deg, #082a4d, #0f3b68);
  border-radius: 18px;
}

.shield-icon::before {
  position: absolute;
  inset: 14px 18px 18px;
  border: 4px solid #f9fbff;
  border-top-width: 6px;
  border-radius: 18px 18px 24px 24px;
  content: "";
}

.shield-icon::after {
  position: absolute;
  top: 28px;
  left: 25px;
  width: 20px;
  height: 10px;
  border-bottom: 4px solid var(--gold);
  border-left: 4px solid var(--gold);
  transform: rotate(-45deg);
  content: "";
}

.support-icon {
  border-radius: 50%;
}

.support-icon::before {
  position: absolute;
  inset: 14px 14px 22px;
  border: 5px solid #f9fbff;
  border-bottom: 0;
  border-radius: 30px 30px 0 0;
  content: "";
}

.support-icon::after {
  position: absolute;
  right: 12px;
  bottom: 16px;
  width: 22px;
  height: 15px;
  border-right: 5px solid #f9fbff;
  border-bottom: 5px solid #f9fbff;
  border-radius: 0 0 12px 0;
  content: "";
}

.publication-icon::before {
  position: absolute;
  inset: 13px 18px;
  border: 4px solid #f9fbff;
  border-radius: 4px;
  content: "";
}

.publication-icon::after {
  position: absolute;
  top: 26px;
  left: 29px;
  width: 22px;
  height: 22px;
  border-top: 4px solid var(--gold);
  border-bottom: 4px solid var(--gold);
  content: "";
}

.card-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  color: var(--navy);
  font-weight: 850;
}

.status-dot {
  width: 12px;
  height: 12px;
  background: var(--green);
  border-radius: 999px;
  box-shadow: 0 0 0 6px var(--green-soft);
}

.lookup-form {
  display: grid;
  gap: 14px;
}

.segmented-control {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 48px;
  padding: 0;
  background: var(--white);
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
}

.segmented-control button {
  color: var(--navy);
  background: transparent;
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
  font-weight: 800;
  cursor: pointer;
}

.segmented-control button.is-selected {
  color: var(--white);
  background: var(--navy);
}

.segmented-control button:last-child {
  border-right: 0;
}

label {
  display: grid;
  gap: 7px;
  color: var(--navy);
  font-weight: 800;
}

.input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
}

input,
select {
  min-height: 46px;
  width: 100%;
  padding: 11px 14px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid #bfccd9;
  border-radius: 6px;
  outline: none;
}

input:focus,
select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(185, 130, 34, 0.16);
}

.form-help,
.form-error {
  margin: 0;
  font-size: 0.92rem;
}

.form-help {
  color: var(--muted);
}

.form-error,
.system-alert {
  color: var(--danger);
  font-weight: 800;
}

.trust-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0 0 34px;
  background: #fbf8f1;
  border: 1px solid #eadcc0;
  border-radius: 8px;
}

.trust-band div {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  column-gap: 18px;
  align-items: center;
  min-height: 118px;
  padding: 24px;
  border-right: 1px solid #eadcc0;
}

.trust-icon {
  grid-row: span 2;
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.trust-band div:last-child {
  border-right: 0;
}

.trust-band strong {
  display: block;
  color: var(--navy);
  font-family: var(--serif);
  font-size: 1.15rem;
}

.trust-band span {
  display: block;
  margin-top: 8px;
  color: #39485f;
  font-size: 0.95rem;
}

.registration-aside p,
.verification-card p,
.page-intro p,
.support-panel p,
.policy-grid p,
.faq-list p {
  color: #34445b;
}

.check-list {
  display: grid;
  gap: 10px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 28px;
  color: #26354b;
}

.check-list li::before {
  position: absolute;
  top: 3px;
  left: 0;
  width: 18px;
  height: 18px;
  color: var(--white);
  background: var(--green);
  border-radius: 50%;
  font-size: 0.8rem;
  line-height: 18px;
  text-align: center;
  content: "✓";
}

.text-link {
  display: inline-flex;
  margin-top: 14px;
  color: var(--navy);
  font-weight: 850;
  border-bottom: 2px solid var(--gold);
}

.page-intro {
  max-width: 880px;
  padding: clamp(44px, 7vw, 74px) 0 28px;
}

.page-intro h1 {
  font-size: clamp(3rem, 6vw, 5.6rem);
}

.page-intro p {
  margin: 20px 0 0;
  font-size: 1.12rem;
}

.lookup-panel {
  max-width: 980px;
  padding: 24px;
  margin-bottom: 28px;
}

.verification-result {
  margin-top: 36px;
}

body.has-record .page-intro,
body.has-record .lookup-panel {
  display: none;
}

body.has-record .verification-result {
  margin-top: clamp(34px, 6vw, 72px);
}

.verified-banner {
  display: grid;
  grid-template-columns: auto minmax(0, 0.85fr) minmax(0, 1.55fr);
  gap: 24px;
  align-items: center;
  padding: 22px 26px;
  background: linear-gradient(135deg, #f5fff8, #ffffff);
  border: 1px solid #8ad19b;
  border-radius: 10px;
}

.shield-mark {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  color: var(--white);
  background: var(--green);
  border-radius: 16px;
  font-size: 1.85rem;
  font-weight: 900;
}

.verified-banner h2 {
  color: var(--green);
  font-size: clamp(1.5rem, 2vw, 1.95rem);
  line-height: 1.05;
}

.verified-banner p {
  margin: 6px 0 0;
  font-size: 0.96rem;
}

.verified-banner dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 0;
}

.metric-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 2px 22px;
}

.metric-item + .metric-item::before {
  position: absolute;
  top: 50%;
  left: 0;
  width: 1px;
  height: 64%;
  background: #cfe3d2;
  transform: translateY(-50%);
  content: "";
}

.metric-item img {
  width: 26px;
  height: 26px;
  object-fit: contain;
  flex-shrink: 0;
}

.metric-item .metric-flag {
  width: 30px;
  height: 22px;
  border-radius: 3px;
  object-fit: cover;
}

.verified-banner dt {
  color: #5b6c84;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
}

.verified-banner dd {
  margin-top: 3px;
  font-size: 1rem;
  white-space: nowrap;
}

dt {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

dd {
  margin: 4px 0 0;
  color: var(--navy);
  font-weight: 700;
}

.record-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(400px, 0.74fr);
  gap: 28px;
  margin-top: 24px;
  align-items: start;
}

.animal-card {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.animal-media {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.animal-photo {
  width: 100%;
  overflow: hidden;
  aspect-ratio: 5 / 6;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.animal-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.animal-details {
  padding: 6px 0;
}

.animal-details .eyebrow,
.verification-card .eyebrow {
  position: relative;
  display: inline-block;
  margin-bottom: 14px;
  color: var(--navy);
  font-family: var(--serif);
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

.animal-details .eyebrow::after,
.verification-card .eyebrow::after {
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 78px;
  height: 2px;
  background: var(--gold);
  content: "";
}

.animal-details h2 {
  font-size: clamp(2.1rem, 2.8vw, 2.75rem);
  line-height: 1.02;
}

.detail-list {
  display: grid;
  gap: 0;
  margin: 16px 0 0;
}

.detail-list .detail-row {
  display: grid;
  grid-template-columns: 24px minmax(0, 0.82fr) minmax(0, 1.05fr);
  align-items: center;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}

.detail-subhead {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 18px 0 2px;
  padding-top: 16px;
  border-top: 1px solid #dbe2ec;
  color: #8a6a1e;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.detail-subhead img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.detail-list dt {
  color: #5b6c84;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

.detail-list dt::after {
  content: ":";
}

.detail-list dd {
  margin: 0;
  color: var(--navy);
  font-size: 0.98rem;
  font-weight: 700;
}

.dd-flag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.dd-flag .flag {
  width: 28px;
  height: 20px;
  border-radius: 3px;
  object-fit: cover;
}

.flag-strip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.flag-strip img {
  width: 28px;
  height: 20px;
  border-radius: 3px;
  object-fit: cover;
}

.detail-row img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 3px 10px;
  color: #0b692d;
  background: var(--green-soft);
  border-radius: 999px;
}

.verification-card {
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.qr-img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 10px 26px rgba(8, 42, 77, 0.1);
}

.verification-card h2 {
  font-size: 1.06rem;
  line-height: 1.15;
}

.verification-card p {
  margin: 6px 0 0;
  font-size: 0.92rem;
  line-height: 1.45;
}

.verification-card small {
  display: block;
  margin-top: 8px;
  color: #526174;
  font-size: 0.86rem;
  font-weight: 600;
}

.verification-line {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 14px;
  padding: 0 0 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.verification-line > img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.verification-list .verification-line:last-child {
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: 0;
}

.verification-line .flag-strip {
  margin-top: 10px;
}

.compact-list div {
  grid-template-columns: 140px 1fr;
}

.card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 24px;
}

.privacy-callout {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 22px;
  padding: 16px 20px;
  background: #f8fbff;
  border: 1px solid #b9cce1;
  border-radius: 8px;
}

.privacy-callout img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  flex-shrink: 0;
}

.privacy-callout strong {
  color: var(--navy);
}

.privacy-callout span {
  color: #33445c;
}

.empty-state {
  padding: 34px;
  margin-top: 28px;
  background: var(--soft);
  border: 1px dashed #bac7d4;
  border-radius: 8px;
}

.empty-state h2 {
  font-size: 2rem;
}

.registration-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.42fr);
  gap: 28px;
  align-items: start;
}

.registration-form {
  display: grid;
  gap: 24px;
  padding: clamp(24px, 4vw, 38px);
}

fieldset {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin: 0;
  padding: 0;
  border: 0;
}

legend {
  grid-column: 1 / -1;
  margin-bottom: 2px;
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.5rem;
  font-weight: 700;
}

.checkbox-row {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 12px;
  color: #34445b;
  font-weight: 650;
}

.checkbox-row input {
  min-height: auto;
  width: 18px;
  height: 18px;
  margin-top: 3px;
}

.system-alert {
  margin: 0;
  padding: 16px 18px;
  background: #fff5f6;
  border: 1px solid #e2a5ae;
  border-radius: 6px;
}

.registration-aside {
  padding: 28px;
  background: #fbf8f1;
}

.registration-aside h2 {
  font-size: 2rem;
}

.faq-list {
  display: grid;
  gap: 14px;
  max-width: 1040px;
}

.faq-list details {
  padding: 0;
  overflow: hidden;
}

.faq-list summary {
  min-height: 70px;
  padding: 22px 24px;
  color: var(--navy);
  font-size: 1.08rem;
  font-weight: 850;
  cursor: pointer;
}

.faq-list p {
  margin: 0;
  padding: 0 24px 24px;
}

.support-panel,
.policy-grid {
  margin-top: 42px;
}

.policy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.policy-grid article {
  min-height: 190px;
  padding: 24px;
}

.policy-grid h2 {
  margin-top: 8px;
}

.support-panel {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  padding: 28px;
}

.legal-page {
  max-width: 980px;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: center;
  min-height: 96px;
  margin-top: 48px;
  padding: 22px clamp(20px, 5vw, 56px);
  color: var(--white);
  background: linear-gradient(135deg, #082a4d, #031a32);
  border-top: 4px solid var(--gold);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-brand img {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.footer-brand strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.12rem;
  font-variant: small-caps;
  letter-spacing: 0.02em;
}

.footer-brand span {
  display: block;
  margin-top: 3px;
  color: #cfd8e4;
  font-size: 0.9rem;
}

.footer-copy {
  text-align: center;
  color: #cfd8e4;
  font-size: 0.9rem;
}

.footer-copy span {
  display: block;
}

.footer-social {
  justify-self: end;
  text-align: right;
}

.footer-social > span {
  display: block;
  margin-bottom: 10px;
  color: #cfd8e4;
  font-size: 0.9rem;
}

.social-row {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.social-row a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  background: var(--white);
  border-radius: 50%;
}

.social-row img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

@media (max-width: 1080px) {
  .site-header {
    grid-template-columns: auto auto;
  }

  .menu-toggle {
    display: inline-flex;
    justify-self: end;
  }

  .site-nav,
  .sign-in {
    display: none;
  }

  .site-nav.is-open {
    grid-column: 1 / -1;
    display: grid;
    justify-content: stretch;
    gap: 2px;
  }

  .site-nav.is-open a {
    padding: 14px 0;
  }

  .hero-section,
  .record-layout,
  .registration-layout {
    grid-template-columns: 1fr;
  }

  .hero-section {
    min-height: auto;
  }

  .lookup-card {
    min-height: auto;
  }

  .brand {
    min-width: 0;
  }

  .brand-stamp {
    width: 60px;
    height: 60px;
  }

  .wordmark-title {
    font-size: clamp(1.35rem, 3.2vw, 1.9rem);
  }

  .trust-band,
  .policy-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .verified-banner {
    grid-template-columns: auto 1fr;
  }

  .verified-banner dl {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .site-header {
    min-height: 72px;
    gap: 12px;
    padding: 10px 16px;
  }

  .brand {
    min-width: 0;
    gap: 10px;
  }

  .brand-stamp {
    width: 50px;
    height: 50px;
  }

  .wordmark {
    gap: 4px;
    min-width: 0;
  }

  .wordmark-title {
    font-size: clamp(0.92rem, 4vw, 1.25rem);
  }

  .wordmark-subline {
    grid-template-columns: minmax(30px, 1fr) auto minmax(30px, 1fr);
    gap: 8px;
  }

  .wordmark-subline b {
    font-size: 0.58rem;
    letter-spacing: 0.28em;
    text-indent: 0.28em;
  }

  main {
    padding-right: 16px;
    padding-left: 16px;
  }

  h1,
  .page-intro h1 {
    font-size: clamp(2.35rem, 11vw, 3.4rem);
  }

  .home-hero h1 {
    font-size: clamp(2.05rem, 8.8vw, 2.75rem);
    line-height: 1.05;
  }

  .hero-section {
    padding-top: 36px;
  }

  .input-row,
  .trust-band,
  .verified-banner dl,
  .animal-card,
  .card-actions,
  fieldset,
  .policy-grid {
    grid-template-columns: 1fr;
  }

  .trust-band div {
    border-right: 0;
    border-bottom: 1px solid #eadcc0;
  }

  .trust-band div:last-child {
    border-bottom: 0;
  }

  .verified-banner {
    grid-template-columns: 1fr;
  }

  .verified-banner dl {
    gap: 16px;
  }

  .metric-item + .metric-item::before {
    display: none;
  }

  .shield-mark {
    width: 70px;
    height: 70px;
  }

  .animal-photo {
    min-height: 260px;
  }

  .animal-media {
    max-width: 360px;
    margin: 0 auto;
  }

  .compact-list div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .detail-list .detail-row {
    grid-template-columns: 24px minmax(0, 1fr);
    align-items: start;
    gap: 2px 12px;
  }

  .detail-list .detail-row img {
    grid-row: span 2;
  }

  .detail-list .detail-row dt,
  .detail-list .detail-row dd {
    grid-column: 2;
  }

  .privacy-callout,
  .support-panel {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-footer {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 18px;
    text-align: center;
  }

  .footer-social,
  .social-row {
    justify-self: center;
    justify-content: center;
  }

  .footer-social {
    text-align: center;
  }
}

@media print {
  .site-header,
  .lookup-panel,
  .site-footer,
  .card-actions,
  .empty-state {
    display: none !important;
  }

  main {
    max-width: none;
    padding: 0;
  }

  .verification-result {
    display: block !important;
  }

  .verified-banner,
  .verification-card,
  .animal-photo {
    box-shadow: none;
  }
}

/* ---- Digital certificate ---- */
.cert-toolbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 14px 16px;
  background: rgba(245, 247, 250, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(6px);
}

.cert-stage {
  display: flex;
  justify-content: center;
  padding: 28px 16px 56px;
  background: #eef1f5;
  min-height: 100vh;
}

.certificate {
  width: 100%;
  max-width: 820px;
  aspect-ratio: 1 / 1.414;
  padding: 16px;
  background: var(--white);
  box-shadow: 0 24px 60px rgba(8, 42, 77, 0.18);
}

.cert-frame {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: clamp(18px, 2.8vw, 30px);
  border: 2px solid var(--navy);
  outline: 1px solid var(--gold);
  outline-offset: 5px;
}

.cert-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.cert-emblem {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.cert-org {
  margin: 0;
  color: var(--navy);
  font-family: var(--serif);
  font-size: 1.35rem;
  font-variant: small-caps;
  letter-spacing: 0.03em;
  line-height: 1;
}

.cert-sub {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.cert-no {
  text-align: right;
  line-height: 1.3;
}

.cert-no span {
  display: block;
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.cert-no strong {
  color: var(--navy);
  font-size: 0.96rem;
  letter-spacing: 0.02em;
}

.cert-title {
  margin-top: 12px;
  text-align: center;
}

.cert-kicker {
  display: inline-block;
  color: #8a6a1e;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

.cert-title h1 {
  margin: 6px 0 0;
  color: var(--navy);
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  line-height: 1.05;
}

.cert-lead {
  max-width: 540px;
  margin: 7px auto 0;
  color: #45556b;
  font-size: 0.85rem;
  line-height: 1.45;
}

.cert-body {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: clamp(18px, 2.6vw, 30px);
  align-items: start;
  margin-top: 16px;
}

.cert-media {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.cert-photo {
  width: 100%;
  overflow: hidden;
  aspect-ratio: 5 / 6;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 10px;
}

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

.cert-name {
  margin: 10px 0 0;
  color: var(--navy);
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  line-height: 1;
}

.cert-status-pill {
  display: inline-flex;
  align-items: center;
  margin-top: 8px;
  padding: 4px 14px;
  color: var(--green);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  background: #e8f6ec;
  border: 1px solid #b9e2c4;
  border-radius: 999px;
}

.cert-qr {
  width: 112px;
  height: 112px;
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.cert-qr-note {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 26px;
  margin: 0;
}

.cert-grid > div {
  padding: 6px 0;
  border-bottom: 1px solid var(--line);
}

.cert-grid-wide {
  grid-column: 1 / -1;
}

.cert-grid dt {
  color: #5b6c84;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.cert-grid dd {
  margin: 3px 0 0;
  color: var(--navy);
  font-size: 0.96rem;
  font-weight: 700;
}

.cert-subhead {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 11px 0 2px;
  padding-top: 10px;
  border-top: 1px solid #dbe2ec;
  color: #8a6a1e;
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.cert-subhead img {
  width: 17px;
  height: 17px;
  object-fit: contain;
}

.cert-foot {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: flex-end;
  gap: 24px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.cert-seal {
  display: flex;
  align-items: center;
  gap: 14px;
}

.cert-seal img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.cert-seal strong {
  display: block;
  color: var(--navy);
  font-size: 1rem;
}

.cert-seal span {
  display: block;
  margin-top: 2px;
  color: #45556b;
  font-size: 0.82rem;
}

.cert-verified {
  font-weight: 700;
}

.cert-sign {
  min-width: 200px;
  text-align: center;
}

.cert-sign-mark {
  display: block;
  color: var(--navy);
  font-family: var(--serif);
  font-size: 1.05rem;
  font-style: italic;
}

.cert-sign-line {
  display: block;
  height: 1px;
  margin: 6px 0 6px;
  background: var(--navy);
}

.cert-sign-role {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

@media (max-width: 720px) {
  .certificate {
    aspect-ratio: auto;
  }

  .cert-head {
    grid-template-columns: auto 1fr;
  }

  .cert-no {
    grid-column: 1 / -1;
    text-align: left;
  }

  .cert-body {
    grid-template-columns: 1fr;
  }

  .cert-media {
    max-width: 280px;
    margin: 0 auto;
  }

  .cert-foot {
    grid-template-columns: 1fr;
    align-items: flex-start;
  }

  .cert-sign {
    text-align: left;
  }
}

@media print {
  @page {
    size: A4;
    margin: 8mm;
  }

  body[data-page="certificate"] {
    background: #fff;
  }

  .cert-toolbar {
    display: none !important;
  }

  .cert-stage {
    display: block;
    min-height: 0;
    padding: 0;
    background: #fff;
  }

  .certificate {
    width: 100%;
    max-width: none;
    aspect-ratio: auto;
    padding: 0;
    box-shadow: none;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .cert-frame {
    height: auto;
    min-height: 0;
  }
}
