.sample-index,
.sample-article {
  --sample-ink: #243b3b;
  --sample-muted: #617676;
  --sample-paper: #fbf8f0;
  --sample-border: #d9e2da;
  --sample-teal: #155e59;
  --sample-gold: #c58435;
}

.sample-index {
  margin: 1.75rem 0 2rem;
  padding: clamp(1rem, 2.4vw, 1.8rem);
  border: 1px solid var(--sample-border);
  border-radius: 1.15rem;
  background: linear-gradient(135deg, #f6f6ed, #edf4ef);
}

.sample-index-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.sample-index-head h2 {
  margin: .25rem 0 0;
  color: var(--sample-ink);
}

.sample-index-head p {
  max-width: 27rem;
  margin: 0;
  color: var(--sample-muted);
}

.sample-index-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .65rem;
}

.sample-index-links a {
  display: flex;
  min-height: 3.25rem;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .8rem 1rem;
  border: 1px solid #d8e2da;
  border-radius: .8rem;
  background: #fffdf7;
  color: var(--sample-ink);
  font-weight: 650;
  text-decoration: none;
  transition: transform .18s ease, border-color .18s ease;
}

.sample-index-links a:hover,
.sample-index-links a:focus-visible {
  transform: translateY(-2px);
  border-color: var(--sample-teal);
}

.sample-index-links a span {
  flex: 0 0 auto;
  color: var(--sample-teal);
}

.sample-index-search {
  display: flex;
  align-items: end;
  gap: .8rem;
  margin: 1rem 0 .75rem;
  padding: .95rem 1rem;
  border: 1px solid #d8e2da;
  border-radius: .85rem;
  background: rgb(255 253 247 / 78%);
}

.sample-index-search label {
  display: grid;
  flex: 1 1 auto;
  gap: .28rem;
  color: var(--sample-ink);
  font-size: .9rem;
  font-weight: 700;
}

.sample-index-search label span {
  color: var(--sample-muted);
  font-size: .78rem;
  font-weight: 450;
}

.sample-index-search input {
  width: 100%;
  min-height: 2.75rem;
  margin-top: .2rem;
  padding: .65rem .8rem;
  border: 1px solid #b9cbc0;
  border-radius: .6rem;
  background: #fffdf7;
  color: var(--sample-ink);
  font: inherit;
}

.sample-index-search input:focus-visible {
  outline: 3px solid rgb(21 94 89 / 26%);
  outline-offset: 2px;
  border-color: var(--sample-teal);
}

.sample-index-search-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: .8rem;
}

.sample-index-search-actions button {
  min-height: 2.75rem;
  padding: .65rem 1rem;
  border: 0;
  border-radius: .6rem;
  background: var(--sample-teal);
  color: #fffaf0;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

.sample-index-search-actions button:focus-visible,
.sample-index-search-actions a:focus-visible {
  outline: 3px solid rgb(21 94 89 / 30%);
  outline-offset: 3px;
}

.sample-index-search-actions a {
  color: var(--sample-teal);
  font-size: .9rem;
  text-underline-offset: .18em;
}

.sample-index-status {
  margin: .5rem 0 .8rem;
  color: var(--sample-muted);
  font-size: .85rem;
}

.sample-index-empty {
  margin: .75rem 0 0;
  padding: .9rem 1rem;
  border-left: 3px solid var(--sample-gold);
  background: #fffdf7;
  color: var(--sample-ink);
}

.sample-article {
  padding-bottom: clamp(2.5rem, 6vw, 5rem);
  color: var(--sample-ink);
}

.sample-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .55rem;
  margin: .4rem 0 1.5rem;
  color: var(--sample-muted);
}

.sample-breadcrumb a {
  color: var(--sample-teal);
  text-underline-offset: .18em;
}

.sample-reading {
  max-width: 53rem;
  margin-inline: auto;
}

.sample-intro {
  padding: clamp(1.25rem, 4vw, 2.6rem);
  border: 1px solid var(--sample-border);
  border-radius: 1.25rem;
  background: var(--sample-paper);
  box-shadow: 0 12px 35px rgb(43 68 58 / 6%);
}

.sample-kicker {
  display: inline-block;
  color: var(--sample-teal);
  font-size: .74rem;
  font-weight: 750;
  letter-spacing: .11em;
  line-height: 1.4;
  text-transform: uppercase;
}

.sample-intro h1 {
  max-width: 18ch;
  margin: .55rem 0 1rem;
  color: #213b3b;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 5vw, 3.7rem);
  letter-spacing: -.035em;
  line-height: 1.08;
}

.sample-answer {
  padding: 1.05rem 1.2rem;
  border-left: 4px solid var(--sample-gold);
  border-radius: 0 .7rem .7rem 0;
  background: #f0eee2;
  color: #294444;
  font-size: clamp(1.02rem, 1.8vw, 1.16rem);
  line-height: 1.75;
}

.sample-answer p {
  margin: 0;
}

.sample-byline {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem 1rem;
  margin: 1.1rem 0 0;
  color: var(--sample-muted);
  font-size: .88rem;
  line-height: 1.6;
}

.sample-byline strong {
  color: var(--sample-ink);
}

.sample-byline a {
  color: var(--sample-teal);
  text-underline-offset: .18em;
}

.sample-toc {
  margin: 1.25rem 0 2.4rem;
  padding: 1.15rem 1.35rem;
  border: 1px solid var(--sample-border);
  border-radius: .95rem;
  background: #f4f7f1;
}

.sample-toc > strong {
  color: var(--sample-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
}

.sample-toc ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .5rem 1.25rem;
  margin: .8rem 0 0;
  padding: 0;
  list-style: none;
}

.sample-toc li {
  min-width: 0;
}

.sample-toc li.sample-toc-sub {
  padding-left: .85rem;
  border-left: 2px solid #d6e2d7;
}

.sample-toc a {
  color: var(--sample-teal);
  font-size: .94rem;
  line-height: 1.5;
  text-decoration-thickness: 1px;
  text-underline-offset: .17em;
}

.sample-prose {
  max-width: 44rem;
  margin-inline: auto;
  color: #354b4b;
  font-size: clamp(1rem, 1.35vw, 1.08rem);
  line-height: 1.82;
}

.sample-prose h2,
.sample-related h2,
.sample-contact h2 {
  color: #213b3b;
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: -.02em;
  line-height: 1.2;
}

.sample-prose h2 {
  margin: 2.65rem 0 .75rem;
  font-size: clamp(1.55rem, 3vw, 2.1rem);
  scroll-margin-top: 7rem;
}

.sample-prose h3 {
  margin: 1.8rem 0 .55rem;
  color: #315452;
  font-size: 1.2rem;
  line-height: 1.35;
  scroll-margin-top: 7rem;
}

.sample-prose p,
.sample-prose ul,
.sample-prose ol {
  margin: 0 0 1.1rem;
}

.sample-prose ul,
.sample-prose ol {
  padding-left: 1.4rem;
}

.sample-prose li {
  padding-left: .2rem;
  margin: .35rem 0;
}

.sample-prose a {
  color: var(--sample-teal);
  text-decoration-thickness: 1px;
  text-underline-offset: .18em;
}

.sample-prose strong {
  color: #243d3d;
}

.sample-prose table {
  width: 100%;
  margin: 1.5rem 0;
  border-collapse: collapse;
  table-layout: fixed;
  overflow-wrap: anywhere;
  font-size: .94rem;
}

.sample-prose caption {
  text-align: left;
  font-weight: 700;
  margin-bottom: .6rem;
}

.sample-prose th,
.sample-prose td {
  border: 1px solid var(--sample-border);
  padding: .75rem;
  vertical-align: top;
  text-align: left;
}

.sample-prose th {
  background: #edf6f6;
  color: #153e49;
}

.sample-prose figure {
  margin: 1.6rem 0;
}

.sample-prose img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: .9rem;
}

.sample-prose figcaption {
  margin-top: .45rem;
  color: var(--sample-muted);
  font-size: .83rem;
  line-height: 1.5;
}

.sample-related {
  margin: 3rem 0 1.5rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--sample-border);
}

.sample-editorial-footer {
  max-width: 44rem;
  margin: 2.2rem auto 0;
  padding: 1rem 0;
  border-top: 1px solid var(--sample-border);
  color: var(--sample-ink);
  font-size: .9rem;
}

.sample-editorial-footer a {
  color: var(--sample-teal);
  text-underline-offset: .18em;
}

.sample-related h2 {
  margin: .4rem 0 1rem;
  font-size: clamp(1.55rem, 3vw, 2rem);
}

.sample-related ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sample-related li a {
  display: flex;
  height: 100%;
  min-height: 3.2rem;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .8rem 1rem;
  border: 1px solid var(--sample-border);
  border-radius: .75rem;
  color: var(--sample-teal);
  text-decoration: none;
  line-height: 1.4;
}

.sample-related li a:hover,
.sample-related li a:focus-visible {
  border-color: var(--sample-teal);
  background: #f3f7f1;
}

.sample-contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-top: 2rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  border-radius: 1rem;
  background: #244847;
  color: #f8f4e9;
}

.sample-contact .sample-kicker {
  color: #dfbd7b;
}

.sample-contact h2 {
  margin: .4rem 0;
  color: #fffaf0;
  font-size: clamp(1.45rem, 3vw, 1.9rem);
}

.sample-contact p {
  max-width: 34rem;
  margin: 0;
  color: #dbe7de;
  line-height: 1.6;
}

.sample-contact-actions {
  display: grid;
  flex: 0 0 auto;
  gap: .55rem;
}

.sample-contact-actions a {
  display: inline-flex;
  min-height: 2.8rem;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .65rem .95rem;
  border-radius: .65rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

.sample-call {
  background: #e1bd76;
  color: #243b3b;
}

.sample-report {
  border: 1px solid #9ab6aa;
  color: #fffaf0;
}

@media (max-width: 700px) {
  .sample-index-head,
  .sample-contact {
    align-items: stretch;
    flex-direction: column;
  }

  .sample-index-search {
    align-items: stretch;
    flex-direction: column;
  }

  .sample-index-search-actions {
    flex-wrap: wrap;
  }

  .sample-index-links,
  .sample-toc ul,
  .sample-related ul {
    grid-template-columns: 1fr;
  }

  .sample-index-links a {
    min-height: 3rem;
  }

  .sample-toc {
    margin-bottom: 1.8rem;
  }

  .sample-prose h2 {
    margin-top: 2.1rem;
  }

  .sample-contact-actions {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sample-index-links a {
    transition: none;
  }
}
