:root {
  --ink: #102033;
  --muted: #526276;
  --subtle: #718096;
  --surface: #ffffff;
  --surface-soft: #f5f7fa;
  --surface-blue: #eef4f8;
  --line: #d8e0e8;
  --line-strong: #a9b7c5;
  --navy: #17375e;
  --navy-deep: #0e243f;
  --blue: #2f6fa5;
  --blue-soft: #dbeaf4;
  --red: #8f2f2f;
  --gold: #b3842f;
  --green: #2f6f55;
  --paper: #fbfaf5;
  --shadow: 0 16px 40px rgba(16, 32, 51, 0.14);
  --shadow-soft: 0 8px 24px rgba(16, 32, 51, 0.08);
  --radius: 8px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 20;
  background: var(--surface);
  border: 2px solid var(--navy);
  padding: 0.65rem 0.9rem;
}

.skip-link:focus {
  top: 1rem;
}

.gov-banner {
  background: #edf2f7;
  border-bottom: 1px solid var(--line);
  color: #2e3c4d;
  font-size: 0.83rem;
}

.gov-banner-inner,
.site-header-inner,
.page-frame,
.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.gov-banner-inner {
  min-height: 36px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.flag-mark {
  width: 24px;
  height: 15px;
  border: 1px solid rgba(16, 32, 51, 0.2);
  background:
    linear-gradient(#b22234 0 14%, #fff 14% 28%, #b22234 28% 42%, #fff 42% 56%, #b22234 56% 70%, #fff 70% 84%, #b22234 84%),
    linear-gradient(90deg, #3c3b6e 0 42%, transparent 42%);
  background-blend-mode: normal;
  flex: 0 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 12;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.site-header-inner {
  min-height: 76px;
  display: grid;
  grid-template-columns: minmax(210px, 1fr) auto auto;
  align-items: center;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.brand-seal,
.certificate-seal {
  display: inline-grid;
  place-items: center;
  color: var(--navy);
  border: 2px solid var(--gold);
  background: radial-gradient(circle at center, #fff 0 38%, #edf4f8 39% 68%, #fff 69%);
  box-shadow: inset 0 0 0 4px rgba(179, 132, 47, 0.15);
  border-radius: 999px;
  flex: 0 0 auto;
  font-weight: 800;
}

.brand-seal {
  width: 42px;
  height: 42px;
  font-size: 0.72rem;
}

.brand-text {
  display: grid;
  gap: 0.05rem;
  min-width: 0;
}

.brand-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--navy-deep);
  white-space: nowrap;
}

.brand-subtitle {
  font-size: 0.75rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.nav-link {
  padding: 0.55rem 0.7rem;
  border-radius: 6px;
  color: var(--navy);
  font-weight: 700;
  font-size: 0.9rem;
}

.nav-link[aria-current="page"],
.nav-link:hover {
  background: var(--blue-soft);
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem;
}

.icon-btn,
.view-btn,
.small-icon-btn {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--navy);
}

.small-icon-btn {
  width: 32px;
  height: 32px;
}

.icon-btn:hover,
.view-btn:hover,
.small-icon-btn:hover,
.view-btn.active {
  border-color: var(--blue);
  background: var(--blue-soft);
}

.icon {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.page-frame {
  padding: 2rem 0 3rem;
}

.hero {
  position: relative;
  min-height: clamp(560px, 78vh, 740px);
  display: grid;
  align-items: center;
  margin-top: -1px;
  color: #fff;
  overflow: hidden;
  background: var(--navy-deep);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(14, 36, 63, 0.92) 0%, rgba(14, 36, 63, 0.78) 38%, rgba(14, 36, 63, 0.26) 72%, rgba(14, 36, 63, 0.42) 100%),
    url("/assets/memorial-hero.png") center / cover no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 110px;
  background: linear-gradient(180deg, transparent, rgba(245, 247, 250, 0.96));
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 4rem 0 7rem;
}

.hero-copy {
  width: min(760px, 100%);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.9rem;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero h1,
.page-heading h1 {
  margin: 0;
  font-size: clamp(2.4rem, 6vw, 5.7rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 720px;
}

.hero p {
  width: min(640px, 100%);
  margin: 1.1rem 0 1.5rem;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.1rem;
}

.search-panel {
  width: min(850px, 100%);
  display: grid;
  gap: 0.9rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  color: var(--ink);
}

.search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 0.75rem;
  align-items: center;
}

.search-input,
.field-input,
.field-select,
.field-textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
  padding: 0.7rem 0.85rem;
}

.field-textarea {
  min-height: 90px;
  resize: vertical;
}

.search-input:focus,
.field-input:focus,
.field-select:focus,
.field-textarea:focus {
  outline: 3px solid rgba(47, 111, 165, 0.2);
  border-color: var(--blue);
}

.segmented,
.view-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem;
  background: #e9eef3;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.segment {
  min-height: 34px;
  border: 0;
  border-radius: 6px;
  padding: 0.35rem 0.65rem;
  background: transparent;
  color: var(--navy);
  font-size: 0.86rem;
  font-weight: 800;
}

.segment.active {
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.btn,
.btn-secondary,
.btn-quiet,
.btn-danger {
  min-height: 42px;
  border-radius: 6px;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.65rem 0.95rem;
  font-weight: 800;
  white-space: nowrap;
}

.btn {
  background: var(--red);
  color: #fff;
}

.btn:hover {
  background: #772525;
}

.btn-secondary {
  background: var(--navy);
  color: #fff;
}

.btn-secondary:hover {
  background: var(--navy-deep);
}

.btn-quiet {
  background: var(--surface);
  color: var(--navy);
  border-color: var(--line-strong);
}

.btn-quiet:hover {
  border-color: var(--blue);
  background: var(--blue-soft);
}

.btn-danger {
  color: var(--red);
  background: #fff5f5;
  border-color: #f0c6c6;
}

.disclaimer {
  color: var(--muted);
  font-size: 0.84rem;
}

.hero .disclaimer {
  color: rgba(255, 255, 255, 0.78);
}

.tile-band {
  margin-top: -4.5rem;
  position: relative;
  z-index: 2;
}

.tile-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.9rem;
}

.tile {
  min-height: 144px;
  display: grid;
  align-content: end;
  gap: 0.45rem;
  position: relative;
  overflow: hidden;
  padding: 1rem;
  color: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  background: var(--navy);
}

.tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(16, 32, 51, 0.05), rgba(16, 32, 51, 0.84));
}

.tile.conflict {
  background: linear-gradient(135deg, #17375e, #8f2f2f);
}

.tile.country {
  background: linear-gradient(135deg, #2f6f55, #17375e);
}

.tile.state {
  background: linear-gradient(135deg, #b3842f, #17375e);
}

.tile.service {
  background: linear-gradient(135deg, #2f6fa5, #102033);
}

.tile.archives {
  background: linear-gradient(135deg, #5e4b33, #2f6fa5);
}

.tile.vlm {
  background: linear-gradient(135deg, #30485f, #2f6f55);
}

.tile .icon,
.tile-title,
.tile-meta {
  position: relative;
  z-index: 1;
}

.tile .icon {
  width: 26px;
  height: 26px;
}

.tile-title {
  font-size: 1rem;
  font-weight: 850;
}

.tile-meta {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.84);
}

.page-heading {
  display: grid;
  gap: 0.65rem;
  margin-bottom: 1.25rem;
}

.page-heading h1 {
  color: var(--navy-deep);
  font-size: clamp(2rem, 4vw, 3.8rem);
}

.page-heading p {
  max-width: 780px;
  margin: 0;
  color: var(--muted);
}

.workspace {
  display: grid;
  gap: 1rem;
}

.toolbar,
.panel,
.profile-hero,
.certificate-actions,
.downloads-toolbar {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.toolbar {
  display: grid;
  gap: 0.9rem;
  padding: 1rem;
}

.toolbar-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 0.75rem;
  align-items: center;
}

.tabs {
  display: flex;
  gap: 0.35rem;
  overflow-x: auto;
  padding-bottom: 0.1rem;
}

.tab {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--navy);
  min-height: 38px;
  padding: 0.5rem 0.75rem;
  font-weight: 800;
}

.tab.active,
.tab:hover {
  background: var(--navy);
  color: #fff;
}

.content-grid {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.panel {
  padding: 1rem;
}

.panel h2,
.panel h3 {
  margin: 0 0 0.75rem;
  color: var(--navy-deep);
}

.filter-list,
.facet-list,
.chip-row,
.record-actions,
.profile-nav,
.award-row,
.download-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.filter-list {
  display: grid;
}

.filter-item,
.facet-item,
.chip {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--navy);
  border-radius: 999px;
  padding: 0.38rem 0.62rem;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  min-height: 32px;
  font-size: 0.84rem;
  font-weight: 750;
}

.filter-item.active,
.chip.active {
  border-color: var(--blue);
  background: var(--blue-soft);
}

.count-pill {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: #e2e8f0;
  color: var(--ink);
  font-size: 0.74rem;
}

.results-shell {
  display: grid;
  gap: 0.75rem;
}

.results-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  align-items: center;
  gap: 0.7rem;
}

.result-count {
  font-size: 1.4rem;
  font-weight: 850;
  color: var(--navy-deep);
  transition: color 180ms ease, transform 180ms ease;
}

.result-count.bump {
  color: var(--red);
  transform: translateY(-1px);
}

.batch-menu,
.popover {
  position: relative;
}

.popover-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 8;
  min-width: 220px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 0.45rem;
}

.menu-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  border: 0;
  background: transparent;
  color: var(--ink);
  border-radius: 6px;
  min-height: 38px;
  padding: 0.45rem 0.55rem;
  text-align: left;
}

.menu-item:hover {
  background: var(--surface-blue);
}

.results-list,
.results-grid,
.results-thumbs {
  display: grid;
  gap: 0.75rem;
}

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

.results-thumbs {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.result-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--blue);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 0.95rem;
  display: grid;
  gap: 0.65rem;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.result-card:hover {
  transform: translateY(-2px);
  border-color: var(--blue);
  box-shadow: var(--shadow);
}

.results-thumbs .result-card {
  min-height: 250px;
  align-content: end;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(16, 32, 51, 0.12), rgba(16, 32, 51, 0.88)),
    url("/assets/memorial-hero.png") center / cover no-repeat;
  border-left-color: var(--gold);
}

.result-top {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.65rem;
  align-items: start;
}

.select-box {
  width: 20px;
  height: 20px;
  margin-top: 0.2rem;
}

.result-name {
  margin: 0;
  color: var(--navy-deep);
  font-size: 1.08rem;
}

.results-thumbs .result-name,
.results-thumbs .muted,
.results-thumbs .meta-grid,
.results-thumbs .tag {
  color: #fff;
}

.muted {
  color: var(--muted);
  font-size: 0.9rem;
}

.meta-grid,
.details-grid,
.advanced-grid,
.staff-grid {
  display: grid;
  gap: 0.75rem;
}

.meta-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  font-size: 0.88rem;
}

.meta-grid span,
.details-grid span {
  color: var(--muted);
  display: block;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.tag {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.25rem 0.48rem;
  font-size: 0.77rem;
  font-weight: 800;
  color: var(--navy);
  background: var(--surface-blue);
}

.tag.gold {
  background: #fff3cd;
  border-color: #e5c87b;
  color: #6b4a0d;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
}

.profile-hero {
  overflow: hidden;
}

.profile-image {
  min-height: 280px;
  background:
    linear-gradient(90deg, rgba(14, 36, 63, 0.9), rgba(14, 36, 63, 0.44)),
    url("/assets/memorial-hero.png") center / cover no-repeat;
  color: #fff;
  padding: 1.5rem;
  display: grid;
  align-content: end;
}

.profile-image h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1;
}

.profile-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 1rem;
  padding: 1rem;
}

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

.details-grid > div,
.stat-card {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.75rem;
}

.notes {
  overflow: hidden;
  max-height: 92px;
  transition: max-height 240ms ease;
}

.notes.expanded {
  max-height: 420px;
}

.ribbon {
  min-width: 86px;
  min-height: 30px;
  border: 1px solid rgba(16, 32, 51, 0.15);
  background:
    linear-gradient(90deg, #5d1d1d 0 22%, #f7d774 22% 36%, #17375e 36% 64%, #f7d774 64% 78%, #5d1d1d 78%);
  color: #fff;
  border-radius: 3px;
  box-shadow: inset 0 -6px 0 rgba(0, 0, 0, 0.12);
}

.ribbon.silver {
  background:
    linear-gradient(90deg, #f7f7f7 0 20%, #1f4d7a 20% 36%, #d72638 36% 64%, #1f4d7a 64% 80%, #f7f7f7 80%);
}

.ribbon.air {
  background:
    linear-gradient(90deg, #f6d365 0 28%, #fdf5df 28% 42%, #2f6fa5 42% 58%, #fdf5df 58% 72%, #f6d365 72%);
}

.side-panel {
  display: grid;
  gap: 0.75rem;
}

.certificate-wrap {
  display: grid;
  gap: 1rem;
}

.certificate-actions {
  padding: 0.75rem;
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.certificate {
  width: min(920px, 100%);
  margin: 0 auto;
  background: var(--paper);
  border: 12px double var(--gold);
  padding: clamp(1.5rem, 4vw, 3rem);
  min-height: 680px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 1rem;
  text-align: center;
  color: #1f2937;
  box-shadow: var(--shadow);
}

.certificate-seal {
  width: 112px;
  height: 112px;
  font-size: 1.2rem;
}

.certificate h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.4rem, 6vw, 5.2rem);
  line-height: 1;
  color: var(--navy);
}

.certificate .in-memory {
  color: var(--red);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.certificate-detail {
  font-size: 1.05rem;
}

.quote {
  max-width: 620px;
  margin: 0;
  color: #4a5568;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
  font-style: italic;
}

.browse-grid,
.downloads-grid,
.faq-grid,
.card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.browse-card,
.info-card,
.download-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 1rem;
}

.browse-card h2,
.info-card h2 {
  margin-top: 0;
  color: var(--navy);
}

.download-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: center;
  border-top: 1px solid var(--line);
  padding: 0.8rem 0;
}

.download-row:first-child {
  border-top: 0;
}

.status {
  display: inline-flex;
  border-radius: 999px;
  padding: 0.28rem 0.55rem;
  font-weight: 850;
  font-size: 0.78rem;
}

.status.completed {
  color: #15533d;
  background: #dcefe7;
}

.status.expired,
.status.failed,
.status.timeout {
  color: #782121;
  background: #f4dddd;
}

.status.in-progress {
  color: #17375e;
  background: #dbeaf4;
}

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

.field {
  display: grid;
  gap: 0.35rem;
}

.field label {
  font-weight: 800;
  color: var(--navy);
  font-size: 0.86rem;
}

.empty-state {
  background: var(--surface);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  color: var(--muted);
}

.mt-sm {
  margin-top: 0.65rem;
}

.mt-1 {
  margin-top: 1rem;
}

.fade-in {
  animation: fadeIn 180ms ease both;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #102033;
  color: #dbe4ed;
  margin-top: 2rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 0;
  flex-wrap: wrap;
}

.footer-inner a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-bar {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 15;
  width: min(760px, calc(100% - 2rem));
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  padding: 0.85rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 0.75rem;
  align-items: center;
}

.hidden {
  display: none !important;
}

@media (max-width: 980px) {
  .site-header-inner {
    grid-template-columns: 1fr;
    padding: 0.75rem 0;
  }

  .nav-links,
  .header-actions {
    justify-content: flex-start;
  }

  .tile-grid,
  .results-thumbs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .content-grid,
  .profile-body {
    grid-template-columns: 1fr;
  }

  .toolbar-main,
  .results-head {
    grid-template-columns: 1fr;
  }

  .browse-grid,
  .downloads-grid,
  .faq-grid,
  .advanced-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .gov-banner-inner,
  .site-header-inner,
  .page-frame,
  .footer-inner,
  .hero-inner {
    width: min(100% - 24px, 1180px);
  }

  .hero {
    min-height: 650px;
  }

  .search-row,
  .toolbar-main {
    grid-template-columns: 1fr;
  }

  .segmented {
    width: 100%;
    overflow-x: auto;
  }

  .segment {
    flex: 1 0 auto;
  }

  .tile-grid,
  .results-grid,
  .results-thumbs,
  .details-grid,
  .meta-grid {
    grid-template-columns: 1fr;
  }

  .result-top {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .result-top .btn-quiet {
    grid-column: 2;
    justify-self: start;
  }

  .cookie-bar {
    grid-template-columns: 1fr;
  }
}

@media print {
  body {
    background: #fff;
  }

  .gov-banner,
  .site-header,
  .site-footer,
  .certificate-actions,
  .cookie-bar {
    display: none !important;
  }

  .page-frame {
    width: 100%;
    padding: 0;
  }

  .certificate {
    width: 100%;
    min-height: 96vh;
    box-shadow: none;
    border-color: #8a6b2c;
    page-break-inside: avoid;
  }
}
