@font-face {
  font-family: "DM Sans";
  src: url("/assets/fonts/dm-sans-v17-latin_latin-ext-regular.woff2") format("woff2");
  font-display: swap;
}

@font-face {
  font-family: "DM Sans";
  src: url("/assets/fonts/dm-sans-v17-latin_latin-ext-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #eaf0f6;
  color: #17283e;
  font: 1rem/1.55 "DM Sans", system-ui, sans-serif;
}

.sample-header,
main {
  max-width: 62rem;
  margin-inline: auto;
  padding-inline: clamp(0.75rem, 3vw, 2rem);
}

.sample-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  column-gap: 1rem;
  padding-block: 0.6rem;
}

.sample-header a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #23487a;
  text-underline-offset: 0.2em;
}

main {
  padding-bottom: 2rem;
}

article {
  border-top: 6px solid #264a7c;
  border-radius: 0.6rem;
  background: #fff;
  padding: clamp(1rem, 5vw, 3rem);
  box-shadow: 0 0.4rem 1.6rem rgba(19, 43, 74, 0.08);
}

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

h1 {
  margin-bottom: 0.6rem;
  font-size: clamp(1.9rem, 5vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
}

h2 {
  margin-bottom: 0.5rem;
  font-size: clamp(1.2rem, 3vw, 1.45rem);
  line-height: 1.2;
}

.sample-label {
  margin-bottom: 0.7rem;
  color: #285184;
  font-weight: 700;
}

.sample-summary {
  max-width: 62ch;
  color: #4a5b70;
}

.sample-amounts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(5.1rem, 1fr));
  gap: clamp(0.4rem, 2vw, 0.9rem);
  margin: 1.5rem 0 2rem;
}

.sample-amounts div {
  padding: 0.65rem clamp(0.5rem, 2vw, 0.9rem);
  border-radius: 0.45rem;
  background: #edf3fa;
}

.sample-amounts dt {
  font-size: 0.83rem;
  overflow-wrap: anywhere;
}

.sample-amounts dd {
  margin: 0.15rem 0 0;
  font-size: clamp(1.05rem, 3vw, 1.75rem);
  font-weight: 700;
  white-space: nowrap;
}

section {
  margin: 1.6rem 0 0;
}

table {
  border-collapse: collapse;
  width: 100%;
  font-size: clamp(0.8rem, 1.6vw, 0.96rem);
}

caption {
  text-align: left;
  padding-bottom: 0.4rem;
  color: #4a5b70;
}

th,
td {
  border-bottom: 1px solid #d5dfeb;
  padding: 0.65rem clamp(0.22rem, 1vw, 0.65rem);
  text-align: left;
  vertical-align: top;
}

thead th {
  background: #edf3fa;
  overflow-wrap: anywhere;
}

td:nth-child(2) {
  white-space: nowrap;
}

.sample-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  gap: 0 1.6rem;
}

ul {
  margin: 0;
  padding-left: 1.1rem;
}

.sample-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}

.sample-actions a,
.sample-actions button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.5rem 0.9rem;
  border: 1px solid #244772;
  border-radius: 0.4rem;
  background: #244772;
  color: #fff;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.sample-actions button {
  color: #244772;
  background: #fff;
}

.sample-actions button[hidden] {
  display: none;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid #315b91;
  outline-offset: 3px;
}

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

  body {
    background: #fff;
    font-size: 10.5pt;
  }

  main,
  .sample-header,
  article {
    padding: 0;
  }

  article {
    border: 0;
    box-shadow: none;
  }

  section,
  .sample-amounts {
    break-inside: avoid;
  }

  .sample-header a,
  .sample-actions {
    display: none;
  }
}
