:root {
  --ink: #07100d;
  --ink-2: #0d1814;
  --panel: rgba(5, 17, 14, 0.93);
  --line: #5e5931;
  --line-bright: #978b37;
  --text: #efe7d2;
  --muted: #b8ad8e;
  --olive: #85862d;
  --gold: #c99b11;
  --khaki: #d6c29b;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--ink);
  color: var(--text);
  font-family: "Arial Narrow", "Roboto Condensed", "Helvetica Neue", Arial, sans-serif;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(90deg, rgba(7, 16, 13, 0.98), rgba(7, 16, 13, 0.84) 58%, rgba(7, 16, 13, 0.96)),
    radial-gradient(circle at 70% 18%, rgba(141, 133, 57, 0.18), transparent 34%),
    var(--ink);
  color: var(--text);
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 18px clamp(20px, 4vw, 42px);
  background: rgba(4, 10, 8, 0.94);
  border-bottom: 1px solid rgba(151, 139, 55, 0.35);
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  text-transform: uppercase;
}

.brand-mark {
  display: grid;
  width: 58px;
  height: 70px;
  place-items: center;
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand strong {
  display: block;
  color: var(--text);
  font-size: 28px;
  line-height: 0.92;
  letter-spacing: 0;
}

.brand small {
  display: block;
  margin-top: 8px;
  color: var(--olive);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  align-items: center;
  justify-content: flex-end;
  color: var(--text);
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
}

.site-nav a {
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--gold);
}

main {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  min-height: 430px;
  display: grid;
  align-items: center;
  padding: 54px 0 34px;
  background:
    linear-gradient(90deg, rgba(7, 16, 13, 0.88) 0%, rgba(7, 16, 13, 0.58) 58%, rgba(7, 16, 13, 0.12)),
    url("../images/background.jpg");
  background-size: cover;
  background-position: left top;
  border-bottom: 1px solid rgba(151, 139, 55, 0.32);
}

.hero-copy {
  max-width: 760px;
  padding: 16px 0;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--olive);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 8px;
  color: var(--text);
  font-size: clamp(42px, 7vw, 76px);
  line-height: 0.95;
  text-transform: uppercase;
}

.hero h2 {
  margin-bottom: 26px;
  color: var(--olive);
  font-size: clamp(24px, 3.5vw, 38px);
  line-height: 1;
  text-transform: uppercase;
}

.lead {
  color: var(--khaki);
  font-size: 24px;
  font-weight: 900;
  text-transform: uppercase;
}

.english-note {
  max-width: 620px;
  color: var(--muted);
  font-size: 14px;
}

.action-grid,
.dashboard-grid,
.vet-grid {
  display: grid;
  gap: 18px;
  margin: 18px 0;
}

.action-grid {
  grid-template-columns: repeat(3, 1fr);
}

.dashboard-grid {
  grid-template-columns: 1.2fr 1fr;
}

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

.panel {
  background: var(--panel);
  border: 1px solid rgba(151, 139, 55, 0.68);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.45);
}

.feature-panel,
.compact-card,
.result-block,
.patch-card,
.prose {
  padding: 24px;
}

.feature-panel {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 18px;
  min-height: 175px;
}

.panel-icon {
  display: block;
  width: 46px;
  height: 52px;
  object-fit: contain;
}

.panel h2 {
  margin-bottom: 12px;
  color: var(--khaki);
  font-size: 25px;
  line-height: 1;
  text-transform: uppercase;
}

.panel p,
.prose li {
  color: var(--text);
  line-height: 1.45;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  margin-top: 12px;
  padding: 0 22px;
  background: linear-gradient(180deg, #88852d, #67651f);
  border: 1px solid rgba(214, 194, 155, 0.28);
  color: #fff8db;
  font-weight: 900;
  text-decoration: none;
  text-transform: uppercase;
}

.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 18px 0;
}

.section-heading a,
.section-heading span {
  color: var(--olive);
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
  text-transform: uppercase;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

th,
td {
  padding: 8px 14px;
  border-bottom: 1px solid rgba(151, 139, 55, 0.22);
  text-align: left;
}

th {
  color: var(--khaki);
  font-size: 12px;
  text-transform: uppercase;
}

td:last-child,
th:last-child {
  text-align: right;
}

.is-dq td {
  color: #9d9072;
}

.empty-row td {
  padding: 18px 14px;
  color: #cfc1a4;
  font-weight: 800;
  text-align: left;
}

.empty-state {
  color: var(--text);
}

.missing-sra td:first-child {
  box-shadow: inset 3px 0 0 var(--gold);
}

.data-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  margin-left: 8px;
  padding: 0 7px;
  border: 1px solid rgba(201, 155, 17, 0.72);
  color: var(--gold);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: help;
}

.data-badge:focus {
  outline: 2px solid rgba(201, 155, 17, 0.72);
  outline-offset: 2px;
}

.data-tooltip {
  position: absolute;
  left: 0;
  bottom: calc(100% + 8px);
  z-index: 4;
  width: min(320px, 70vw);
  padding: 10px 12px;
  background: #060d0a;
  border: 1px solid rgba(201, 155, 17, 0.82);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.42);
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  text-transform: none;
  white-space: normal;
  opacity: 0;
  pointer-events: none;
  transform: translateY(4px);
  transition: opacity 140ms ease, transform 140ms ease;
}

.data-badge:hover .data-tooltip,
.data-badge:focus .data-tooltip,
.data-badge:focus-within .data-tooltip {
  opacity: 1;
  transform: translateY(0);
}

.news-panel {
  padding-bottom: 14px;
}

.news-item {
  display: grid;
  grid-template-columns: 116px 1fr;
  gap: 16px;
  padding: 12px 18px;
  text-decoration: none;
}

.news-thumb {
  min-height: 74px;
  background:
    linear-gradient(rgba(7, 16, 13, 0.2), rgba(7, 16, 13, 0.55)),
    url("../images/background.jpg");
  background-size: 210px auto;
  background-position: 42% 48%;
  border: 1px solid rgba(151, 139, 55, 0.48);
}

.news-item strong,
.news-item small,
.news-item em {
  display: block;
}

.news-item small {
  margin-top: 5px;
  color: var(--text);
}

.news-item em,
.date-line {
  color: var(--gold);
  font-style: normal;
}

.page-title {
  padding: 58px 0 24px;
}

.page-title h1 {
  margin-bottom: 0;
}

.card-list {
  display: grid;
  gap: 18px;
  margin-bottom: 28px;
}

.compact-card h2 {
  margin-bottom: 8px;
}

.prose {
  max-width: 860px;
}

.prose h2 {
  margin-top: 18px;
}

.patch-card {
  display: grid;
  grid-template-columns: minmax(170px, 240px) 1fr;
  gap: 28px;
  align-items: center;
}

.patch-image {
  display: block;
  width: min(100%, 250px);
  height: auto;
  justify-self: center;
  filter: drop-shadow(0 16px 18px rgba(0, 0, 0, 0.48));
}

.site-footer {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  margin-top: 34px;
  padding: 24px clamp(20px, 4vw, 42px);
  background: #d8ccb1;
  color: #10130f;
}

.site-footer div {
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 12px;
  align-items: start;
  padding: 0 18px;
  border-left: 1px solid rgba(16, 19, 15, 0.25);
}

.site-footer img {
  display: block;
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.site-footer strong,
.site-footer span {
  display: block;
}

.site-footer strong {
  text-transform: uppercase;
}

.site-footer span {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.35;
}

@media (max-width: 900px) {
  .site-header,
  .site-nav {
    justify-content: flex-start;
  }

  .site-header {
    position: static;
    flex-direction: column;
    align-items: flex-start;
  }

  .action-grid,
  .dashboard-grid,
  .vet-grid,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 360px;
    background-position: 24% top;
  }

  .patch-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  main {
    width: min(100% - 24px, 1160px);
  }

  .brand strong {
    font-size: 22px;
  }

  .site-nav {
    gap: 14px;
    font-size: 12px;
  }

  h1 {
    font-size: 38px;
  }

  .feature-panel,
  .news-item {
    grid-template-columns: 1fr;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  table {
    font-size: 13px;
  }

  th,
  td {
    padding: 7px 8px;
  }
}
