/* Rendered markdown for /sop */
.sop-document {
  max-width: 52rem;
  font-size: 0.95rem;
  line-height: 1.65;
  color: #1a1a1a;
}

/* —— Document cover —— */
.sop-cover {
  margin: 0 0 2.5rem;
  overflow: hidden;
  border: 1px solid #e2e6ea;
  border-radius: 0.5rem;
  background: linear-gradient(165deg, #0b1f33 0%, #14324f 48%, #1a4568 100%);
  color: #f4f7fa;
  box-shadow: 0 12px 40px rgba(11, 31, 51, 0.18);
}

.sop-cover-hero {
  position: relative;
  margin: 0;
  line-height: 0;
  max-height: 18rem;
  overflow: hidden;
}

.sop-cover-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(11, 31, 51, 0.15) 0%,
    rgba(11, 31, 51, 0.55) 70%,
    #0b1f33 100%
  );
  pointer-events: none;
}

.sop-cover-hero img {
  display: block;
  width: 100%;
  height: 18rem;
  object-fit: cover;
  object-position: center 35%;
}

.sop-cover-body {
  position: relative;
  padding: 1.5rem 1.75rem 1.85rem;
}

.sop-cover-brand {
  margin: 0 0 0.4rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8ec8ef;
}

.sop-document .sop-cover-body h1 {
  margin: 0 0 0.75rem;
  padding: 0;
  border: 0;
  border-bottom: none;
  font-size: 1.85rem;
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
  scroll-margin-top: 6rem;
}

.sop-cover-subtitle {
  margin: 0 0 1.35rem;
  max-width: 40rem;
  font-size: 1rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.88);
}

.sop-document .sop-cover-subtitle code {
  padding: 0.1em 0.35em;
  border-radius: 0.25rem;
  background: rgba(255, 255, 255, 0.12);
  color: #d6ecfa;
}

.sop-cover-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: 0.85rem 1.25rem;
  margin: 0;
  padding: 1.1rem 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.sop-cover-meta > div {
  margin: 0;
}

.sop-cover-meta dt {
  margin: 0 0 0.15rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8ec8ef;
}

.sop-cover-meta dd {
  margin: 0;
  font-size: 0.9rem;
  color: #fff;
}

.sop-cover-meta a {
  color: #b8dff7;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.sop-cover-meta a:hover {
  color: #fff;
}

@media (min-width: 768px) {
  .sop-cover-hero,
  .sop-cover-hero img {
    max-height: 22rem;
    height: 22rem;
  }

  .sop-cover-body {
    padding: 1.75rem 2.25rem 2rem;
  }

  .sop-document .sop-cover-body h1 {
    font-size: 2.15rem;
  }
}

@media print {
  .sop-cover {
    break-after: page;
    box-shadow: none;
    border-radius: 0;
  }

  .sop-cover-hero,
  .sop-cover-hero img {
    max-height: 10rem;
    height: 10rem;
  }
}

.sop-document h1,
.sop-document h2,
.sop-document h3,
.sop-document h4 {
  scroll-margin-top: 6rem;
  font-weight: 700;
  line-height: 1.25;
  margin-top: 2.25rem;
  margin-bottom: 0.75rem;
}

.sop-document h1 {
  font-size: 1.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #dee2e6;
}

.sop-document h2 {
  font-size: 1.35rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid #e9ecef;
}

.sop-document h3 {
  font-size: 1.1rem;
}

.sop-document h4 {
  font-size: 1rem;
}

.sop-document p,
.sop-document ul,
.sop-document ol,
.sop-document dl {
  margin-bottom: 1rem;
}

.sop-document ul,
.sop-document ol {
  padding-left: 1.5rem;
}

.sop-document li {
  margin-bottom: 0.35rem;
}

.sop-document a {
  color: #0d6efd;
  text-decoration: none;
}

.sop-document a:hover {
  text-decoration: underline;
}

.sop-document hr {
  margin: 2rem 0;
  border: 0;
  border-top: 1px solid #dee2e6;
}

.sop-document table {
  width: 100%;
  margin-bottom: 1.25rem;
  font-size: 0.875rem;
  border-collapse: collapse;
}

.sop-document th,
.sop-document td {
  padding: 0.5rem 0.75rem;
  border: 1px solid #dee2e6;
  vertical-align: top;
}

.sop-document th {
  background-color: #f8f9fa;
  font-weight: 600;
}

.sop-document tr:nth-child(even) td {
  background-color: #fafbfc;
}

.sop-document code {
  font-size: 0.85em;
  padding: 0.15em 0.35em;
  background-color: #f1f3f5;
  border-radius: 0.25rem;
  color: #c7254e;
}

.sop-document pre {
  margin-bottom: 1.25rem;
  padding: 1rem;
  background-color: #212529;
  color: #f8f9fa;
  border-radius: 0.375rem;
  overflow-x: auto;
  font-size: 0.85rem;
}

.sop-document pre code {
  padding: 0;
  background: none;
  color: inherit;
}

.sop-document blockquote {
  margin: 0 0 1rem;
  padding: 0.75rem 1rem;
  border-left: 4px solid #0d6efd;
  background-color: #f8f9fa;
  color: #495057;
}

.sop-document strong {
  font-weight: 600;
}

@media (min-width: 992px) {
  .sop-document {
    font-size: 1rem;
  }
}
