/* Post-quantum SSH procedure (/research/ssh/).
   Builds on the .bio reading column in ../../css/index.css: a wider measure
   for tables, numbered lists, and code inside tables and lists. */

.sop {
  max-width: 720px;
}

.sop h3 {
  margin-top: 3rem;
  scroll-margin-top: 1rem;
}

.sop ol {
  margin: 1rem 0;
  padding-left: 1.5rem;
}

.sop ol > li {
  margin-bottom: 0.6rem;
  line-height: 1.6;
}

.sop ol > li::marker {
  font-variant-numeric: tabular-nums;
  color: #555;
}

/* Long algorithm names in running text wrap instead of widening the page. */
.sop :not(pre) > code {
  white-space: normal;
  overflow-wrap: anywhere;
}

.sop li .code-block {
  margin: 0.5rem 0 0.75rem;
}

.sop .code-block pre {
  padding-right: 16px;
}

.sop .code-block pre code {
  white-space: pre;
}

.sop ::selection {
  background: #cfe2f6;
}

.sop :focus-visible {
  outline: 2px solid #0b5cad;
  outline-offset: 2px;
}

/* Contents */
.sop-toc {
  margin: 1.5rem 0 0;
  padding: 0.75rem 1rem;
  border: 1px solid #e5e5e5;
  border-radius: 2px;
}

.sop-toc ol {
  margin: 0;
  columns: 2;
  column-gap: 2rem;
}

.sop-toc li {
  margin-bottom: 0.25rem;
  break-inside: avoid;
}

/* Tables */
.table-scroll {
  margin: 0.75rem 0 1.25rem;
  overflow-x: auto;
}

.sop-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  line-height: 1.45;
}

.sop-table th,
.sop-table td {
  padding: 0.5rem 0.75rem 0.5rem 0;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid #e5e5e5;
}

.sop-table th {
  font-weight: 600;
  border-bottom-color: #1a1a1a;
}

.sop-table code {
  white-space: normal;
  overflow-wrap: break-word;
}

@media screen and (width <= 520px) {
  .sop-toc ol {
    columns: 1;
  }
}
