/* Enuclea Secure Intake: guides (/docs/). Builds on base.css. */

.docs {
  --overlap: 96px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ---------- banner: shorter than the intake page, grows if the bar wraps ---------- */

.banner--docs {
  --banner-h: 228px;
  height: auto;
  min-height: var(--banner-h);
  padding-bottom: calc(var(--overlap) + 34px);
}

.lockup--link {
  color: inherit;
  text-decoration: none;
  border-radius: 3px;
}

.lockup--link:focus-visible {
  outline-offset: 6px;
}

/* ---------- page frame ---------- */

.doc {
  position: relative;
  z-index: 1;
  flex: 1;
  width: 100%;
  max-width: 1160px;
  margin-top: calc(-1 * var(--overlap));
  padding-bottom: 72px;
}

.doc:focus {
  outline: none;
}

/* ---------- the "document" card: crumbs, title, lede, meta ---------- */

.doc-card {
  margin-bottom: 44px;
  animation: rise 0.6s var(--ease-out) both;
}

.doc-card .panel__meta {
  padding-right: 14px;
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
}

.crumbs a {
  color: var(--ink-3);
  text-decoration: none;
}

.crumbs a:hover {
  color: var(--blue-press);
  text-decoration: underline;
}

.crumbs [aria-current] {
  color: var(--ink);
}

.crumbs__sep {
  color: var(--silver-500);
}

.doc-card__body {
  padding: 32px 40px 36px;
}

.doc-card .title {
  max-width: 22ch;
  margin-bottom: 14px;
  font-size: clamp(32px, 2.6vw + 18px, 46px);
  line-height: 1.06;
}

.doc-card .lead {
  max-width: 56ch;
  font-size: 19px;
  line-height: 1.5;
  color: var(--ink-2);
}

.doc-meta {
  display: inline-flex;
  margin-top: 22px;
  padding: 7px 12px;
  border: 1px solid #cfe4f2;
  border-radius: 3px;
  background: var(--blue-50);
  color: var(--blue-press);
}

.print-btn {
  min-height: 38px;
  padding: 0 14px;
  font-size: 13.5px;
}

/* ---------- reading layout: contents rail + prose column ---------- */

.doc__layout {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 56px;
  align-items: start;
  padding-inline: 8px;
}

.toc-rail {
  position: sticky;
  top: 28px;
  max-height: calc(100vh - 56px);
  overflow-y: auto;
  padding-bottom: 8px;
}

.toc-rail > .readout {
  margin-bottom: 12px;
}

.toc-rail:not(:has(li)) {
  display: none;
}

.toc {
  margin: 0;
  padding: 0;
  list-style: none;
  border-left: 1px solid var(--silver-200);
}

.toc a {
  display: flex;
  gap: 8px;
  margin-left: -1px;
  padding: 6px 0 6px 14px;
  border-left: 2px solid transparent;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: 0.01em;
  color: var(--ink-3);
  text-decoration: none;
  transition: color 0.15s, border-color 0.15s;
}

.toc a:hover {
  color: var(--ink);
}

.toc a[aria-current="true"] {
  border-left-color: var(--blue);
  color: var(--blue-press);
  font-weight: 500;
}

.toc__no {
  flex: none;
  color: #6b7584; /* 4.7:1 */
}

.toc a[aria-current="true"] .toc__no {
  color: var(--blue);
}

.toc a:focus-visible {
  outline-offset: 0;
}

/* on narrower screens the contents fold into the card */
.toc-mobile {
  display: none;
  margin-top: 26px;
  border: 1px solid var(--silver-200);
  border-radius: var(--radius);
}

.toc-mobile summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 46px;
  padding: 0 14px;
  list-style: none;
  cursor: pointer;
}

.toc-mobile summary::-webkit-details-marker {
  display: none;
}

.toc-mobile summary svg {
  color: var(--ink-3);
  transition: transform 0.2s var(--ease-out);
}

.toc-mobile[open] summary svg {
  transform: rotate(180deg);
}

.toc-mobile .toc {
  margin: 0 14px 12px;
}

.toc-mobile .toc a {
  min-height: 44px;
  align-items: center;
  font-size: 13px;
}

/* ---------- prose ---------- */

.prose {
  max-width: 70ch;
  font-size: 17px;
  line-height: 1.65;
  color: #222222;
}

.prose > * + * {
  margin-top: 0;
}

.prose section {
  scroll-margin-top: 20px;
}

.prose section + section {
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid var(--silver-200);
}

.prose h2 {
  margin: 0 0 14px;
  font-size: 28px;
  font-weight: 600;
  font-stretch: 85%;
  line-height: 1.18;
  letter-spacing: -0.005em;
  color: var(--ink);
  scroll-margin-top: 20px;
}

.prose h3 {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
}

.prose p {
  margin: 0 0 14px;
}

.prose p:last-child,
.prose ul:last-child {
  margin-bottom: 0;
}

.prose strong {
  font-weight: 600;
  color: var(--ink);
}

.prose a {
  color: var(--blue-press);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.prose a:hover {
  color: var(--blue-deep);
  text-decoration-thickness: 2px;
}

.prose ul {
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
}

.prose li {
  position: relative;
  margin: 9px 0;
  padding-left: 22px;
}

.prose li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 0.66em;
  width: 6px;
  height: 6px;
  border-radius: 1px;
  background: var(--blue);
}

.intro {
  margin-bottom: 48px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink);
}

.intro p {
  margin: 0;
}

/* menu items and buttons, as mono pills; long paths wrap cleanly */
.ui {
  padding: 1px 7px;
  border: 1px solid var(--silver-300);
  border-radius: 3px;
  background: var(--silver-50);
  font-family: var(--font-mono);
  font-size: 0.82em;
  font-weight: 500;
  color: var(--ink);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* Menu paths wrap only after an arrow: each segment ("Users →") stays whole, and an arrow in running
   text stays with the word before it, so no line starts with "→". The text itself is untouched. */
.ui .seg,
.nw {
  white-space: nowrap;
}

.example {
  font-family: var(--font-mono);
  font-size: 0.88em;
  color: var(--ink);
}

/* where to click, per platform */
.paths {
  display: grid;
  margin: 16px 0 0;
  border: 1px solid var(--silver-200);
  border-radius: var(--radius);
  background: #ffffff;
}

.paths > div {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  gap: 16px;
  padding: 12px 16px;
  border-top: 1px solid var(--silver-200);
}

.paths > div:first-child {
  border-top: 0;
}

.paths dt {
  padding-top: 4px;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.paths dd {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
}

.paths + p {
  margin-top: 14px;
}

/* ---------- the three switches (How to fire us) ---------- */

.switches {
  display: grid;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.prose .switch {
  position: relative;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 0 24px;
  margin: 0;
  padding: 0 0 40px;
}

.prose .switch::before {
  display: none;
}

.prose .switch:last-child {
  padding-bottom: 0;
}

/* the trace between switches */
.switch:not(:last-child) .switch__marker::after {
  content: "";
  position: absolute;
  left: 35.5px;
  top: 104px;
  bottom: 8px;
  width: 1px;
  background: var(--silver-200);
}

.switch__marker {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 10px;
}

.switch__no {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 40px;
  line-height: 1;
  color: var(--ink);
}

/* an appliance rocker: ON (blue) until you scroll past the step, then OFF */
.toggle {
  position: relative;
  width: 46px;
  height: 24px;
  border-radius: 4px;
  background: var(--blue);
  box-shadow: inset 0 0 0 1px rgba(1, 74, 132, 0.5);
  transition: background-color 0.45s var(--ease-out), box-shadow 0.45s;
}

.toggle__knob {
  position: absolute;
  top: 3px;
  left: 25px;
  width: 18px;
  height: 18px;
  border-radius: 3px;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(6, 10, 19, 0.35);
  transition: left 0.45s var(--ease-out);
}

.toggle__state {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-press);
}

.toggle__state .off {
  display: none;
  color: var(--ink-3);
}

.switch.is-off .toggle {
  background: var(--silver-200);
  box-shadow: inset 0 0 0 1px var(--silver-300);
}

.switch.is-off .toggle__knob {
  left: 3px;
}

.switch.is-off .toggle__state .on {
  display: none;
}

.switch.is-off .toggle__state .off {
  display: inline;
}

.switch__body {
  min-width: 0;
  padding-top: 4px;
}

.switch__lead {
  color: var(--ink-2);
}

/* ---------- numbered steps (1Password) ---------- */

.prose .doc-step {
  position: relative;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 0 22px;
}

.prose .doc-step + .doc-step {
  margin-top: 40px;
  padding-top: 0;
  border-top: 0;
}

.doc-step:has(+ .doc-step)::before {
  content: "";
  position: absolute;
  left: 25.5px;
  top: 60px;
  bottom: -32px;
  width: 1px;
  background: var(--silver-200);
}

.doc-step__mark {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid var(--silver-300);
  border-radius: var(--radius);
  background: #ffffff;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 18px;
  color: var(--blue-press);
}

.doc-step__body {
  min-width: 0;
}

.doc-step__body h2 {
  margin-top: 10px;
}

/* ---------- callouts ---------- */

.callout {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin: 24px 0;
  padding: 16px 18px;
  border: 1px solid var(--silver-200);
  border-left-width: 3px;
  border-radius: var(--radius);
  background: var(--silver-50);
}

.callout:last-child {
  margin-bottom: 0;
}

.callout svg {
  flex: none;
  margin-top: 3px;
}

.callout p {
  margin: 0;
}

.callout--success {
  border-color: var(--ok-line);
  border-left-color: var(--ok-dot);
  background: var(--ok-bg);
  color: var(--ok);
  font-size: 18px;
}

.callout--success strong {
  color: var(--ok);
}

.callout--info {
  border-color: #cfe4f2;
  border-left-color: var(--blue);
  background: var(--blue-50);
  color: #0b4f7c;
}

.callout--info svg {
  color: var(--blue);
}

.callout--caution {
  border-color: var(--warn-line);
  border-left-color: var(--warn-dot);
  background: var(--warn-bg);
  color: #5c3800;
}

.callout--caution strong {
  color: #4a2e00;
}

.callout--caution svg {
  color: var(--warn-dot);
}

/* ---------- tables ---------- */

.table-doc {
  width: 100%;
  margin: 20px 0 0;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.5;
}

.table-doc th {
  padding: 11px 14px;
  border-bottom: 1px solid var(--silver-300);
  background: var(--silver-50);
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-align: left;
  text-transform: uppercase;
  color: var(--ink-3);
}

.table-doc td {
  padding: 14px;
  border-bottom: 1px solid var(--silver-200);
  vertical-align: top;
}

.table-doc td:first-child {
  width: 26%;
}

.table-doc--access td:nth-child(2) {
  width: 24%;
  color: var(--ink-2);
}

/* rows where the order of things matters: emphasised, not shouted */
.table-doc tr.is-caution td {
  background: var(--warn-bg);
}

.table-doc tr.is-caution td:first-child {
  box-shadow: inset 3px 0 0 var(--warn-dot);
}

.table-doc tr.is-caution td:last-child strong {
  color: #5c3800;
}

.caution-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--warn);
}

.caution-tag::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--warn-dot);
}

/* ---------- closing line ---------- */

.closing {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 52px;
  padding: 22px 24px;
  border: 1px solid var(--silver-200);
  border-radius: var(--radius-lg);
  background: var(--silver-50);
  font-size: 18px;
  line-height: 1.5;
  color: var(--ink);
}

.closing svg {
  flex: none;
  color: var(--blue);
}

.closing p {
  margin: 0;
}

.closing a {
  font-weight: 600;
  white-space: nowrap;
}

.print-only {
  display: none;
}

/* ---------- guides index ---------- */

.doc-card--index .doc-card__body {
  padding-bottom: 34px;
}

.guides {
  display: grid;
  /* auto-fit: two guides share the width; a third slots in as a third column */
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 20px;
  margin: 0;
  padding: 0 8px;
  list-style: none;
}

.guide {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--silver-200);
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(6, 10, 19, 0.04);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s var(--ease-out);
}

.guide:hover {
  border-color: #9cc7e3;
  box-shadow: 0 14px 30px -18px rgba(2, 87, 155, 0.45);
  transform: translateY(-2px);
}

.guide:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(2, 119, 189, 0.18);
}

.guide__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 46px;
  padding: 10px 18px;
  border-bottom: 1px solid var(--silver-200);
  background: var(--silver-50);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.guide__no {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--ink);
}

.guide__body {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 6px 18px;
  flex: 1;
  padding: 22px 22px 24px 18px;
}

.guide__glyph {
  grid-row: span 3;
  color: var(--blue);
}

.guide__title {
  font-size: 22px;
  font-weight: 600;
  font-stretch: 88%;
  line-height: 1.2;
}

.guide__link {
  color: var(--ink);
  text-decoration: none;
}

.guide__link::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
}

.guide__link:focus-visible {
  outline: none;
}

.guide__desc {
  font-size: 15.5px;
  line-height: 1.5;
  color: var(--ink-2);
}

.guide__go {
  margin-top: 10px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--blue-press);
}

.guide:hover .guide__go .arrow {
  transform: translateX(3px);
}

.guide__go .arrow {
  display: inline-block;
  transition: transform 0.2s var(--ease-out);
}

/* ---------- responsive (screen only, so print keeps the full layout) ---------- */

@media screen and (max-width: 1023px) {
  .doc__layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .toc-rail {
    display: none;
  }

  .toc-mobile {
    display: block;
  }
}

@media screen and (max-width: 720px) {
  /* tables become stacked cards, with the column label repeated on each value */
  .table-doc thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }

  .table-doc,
  .table-doc tbody,
  .table-doc tr,
  .table-doc td {
    display: block;
    width: 100%;
  }

  .table-doc tr {
    margin-bottom: 12px;
    border: 1px solid var(--silver-200);
    border-radius: var(--radius);
    overflow: hidden;
  }

  .table-doc td,
  .table-doc td:first-child,
  .table-doc--access td:nth-child(2) {
    width: 100%;
    padding: 10px 14px;
    border-bottom: 1px solid var(--silver-200);
  }

  .table-doc td:last-child {
    border-bottom: 0;
  }

  .table-doc td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 3px;
    font-family: var(--font-mono);
    font-weight: 500;
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-3);
  }

  .table-doc td:first-child {
    background: var(--silver-50);
  }

  .table-doc tr.is-caution td:first-child {
    background: var(--warn-bg);
  }

  .paths > div {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }
}

@media screen and (max-width: 560px) {
  .docs {
    --overlap: 84px;
  }

  .banner--docs {
    --banner-h: 200px;
  }

  .doc {
    padding-bottom: 48px;
  }

  .doc-card {
    margin-bottom: 32px;
  }

  .doc-card .panel__meta {
    padding-right: 10px;
  }

  .doc-card__body {
    padding: 24px 18px 26px;
  }

  .doc-card .lead {
    font-size: 17.5px;
  }

  .print-btn .print-btn__more {
    display: none;
  }

  .doc__layout,
  .guides {
    padding-inline: 0;
  }

  .prose {
    font-size: 16.5px;
  }

  .prose h2 {
    font-size: 24px;
  }

  .intro {
    font-size: 17px;
    margin-bottom: 40px;
  }

  .prose section + section {
    margin-top: 40px;
    padding-top: 32px;
  }

  .prose .switch {
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 0 16px;
  }

  .switch__no {
    font-size: 30px;
  }

  .toggle {
    width: 40px;
    height: 22px;
  }

  .toggle__knob {
    width: 16px;
    height: 16px;
    left: 21px;
  }

  .switch:not(:last-child) .switch__marker::after {
    left: 25.5px;
    top: 92px;
  }

  .prose .doc-step {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 0 14px;
  }

  .doc-step__mark {
    width: 40px;
    height: 40px;
    font-size: 15px;
  }

  .doc-step:has(+ .doc-step)::before {
    left: 19.5px;
    top: 48px;
  }

  .doc-step__body h2 {
    margin-top: 5px;
  }

  .closing {
    align-items: flex-start;
    padding: 18px;
    font-size: 17px;
  }

  .guide__body {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 6px 14px;
    padding: 18px 16px 20px 14px;
  }

  .guide__glyph {
    width: 40px;
    height: 40px;
  }
}

/* ---------- print: black on white, one clean document ----------
   Works with the browser's default settings (no background graphics): every marker, rule and
   emphasis below is drawn with text, borders or list markers, never with backgrounds. */

@media print {
  @page {
    margin: 14mm 15mm 16mm;

    @bottom-left {
      content: "secure.enuclea.com · (703) 239-4620";
      font-family: "Plex Mono", ui-monospace, monospace;
      font-size: 7.5pt;
      letter-spacing: 0.04em;
      color: #000000;
    }

    @bottom-right {
      content: "Page " counter(page) " of " counter(pages);
      font-family: "Plex Mono", ui-monospace, monospace;
      font-size: 7.5pt;
      letter-spacing: 0.04em;
      color: #000000;
    }
  }

  html,
  body {
    background: #ffffff !important;
    color: #000000;
  }

  body {
    font-size: 10.5pt;
  }

  .banner::before,
  .banner__field,
  .site-nav,
  .skip-link,
  .print-btn,
  .toc-rail,
  .toc-mobile,
  .foot,
  .toggle,
  .toggle__state,
  .guide__go {
    display: none !important;
  }

  /* header: the logo (white artwork, inverted for paper) and the section label */
  .banner--docs {
    min-height: 0;
    height: auto;
    margin-bottom: 5mm;
    padding: 0 0 3mm;
    border-bottom: 1px solid #000000;
    background: none;
    color: #000000;
    overflow: visible;
  }

  .banner__bar,
  .doc,
  .wrap {
    max-width: none;
    margin: 0;
    padding: 0;
  }

  .lockup__logo {
    width: 110px;
    filter: invert(1);
  }

  .lockup__rule {
    width: 0;
    border-left: 1px solid #000000;
    background: none;
  }

  .lockup__product {
    color: #000000;
  }

  /* black on white: no tinted text on paper */
  .prose,
  .prose *,
  .doc-card,
  .doc-card * {
    color: #000000 !important;
  }

  .panel,
  .doc-card,
  .guide {
    border: 0;
    box-shadow: none;
    animation: none;
  }

  .doc-card {
    margin-bottom: 5mm;
  }

  .doc-card .panel__meta {
    min-height: 0;
    padding: 0 0 1.5mm;
    border: 0;
  }

  .crumbs {
    font-size: 8pt;
  }

  .doc-card__body {
    padding: 0;
  }

  .doc-card .title {
    max-width: none;
    margin-bottom: 2mm;
    font-size: 22pt;
  }

  .doc-card .lead {
    max-width: none;
    font-size: 12pt;
    line-height: 1.4;
  }

  .doc-meta {
    margin-top: 2.5mm;
    padding: 0;
    border: 0;
    background: none;
    font-size: 8.5pt;
  }

  .doc__layout {
    display: block;
    padding: 0;
  }

  /* one body size for everything you read: paragraphs, list items, definitions, table cells */
  .prose,
  .prose p,
  .prose li,
  .paths dd,
  .table-doc,
  .table-doc td,
  .callout,
  .callout--success,
  .closing,
  .intro {
    font-size: 10.5pt;
    line-height: 1.45;
  }

  .prose {
    max-width: none;
  }

  .prose h2 {
    margin-bottom: 2mm;
    font-size: 14pt;
    break-after: avoid;
  }

  .prose h3 {
    margin-bottom: 1mm;
    font-size: 11.5pt;
    break-after: avoid;
  }

  .prose p {
    margin-bottom: 2.2mm;
    orphans: 3;
    widows: 3;
  }

  .intro {
    margin-bottom: 5mm;
  }

  .prose section + section {
    margin-top: 4mm;
    padding-top: 3.5mm;
    border-top: 1px solid #999999;
  }

  .prose a {
    text-decoration: underline;
  }

  /* show where in-house links go */
  .prose a[href^="/"]::after {
    content: " (secure.enuclea.com" attr(href) ")";
    font-size: 8.5pt;
  }

  /* real list markers: they print without background graphics */
  .prose ul {
    margin-bottom: 2.2mm;
    padding-left: 5mm;
    list-style: square outside;
  }

  .prose ul li {
    margin: 1.2mm 0;
    padding-left: 1mm;
  }

  .prose ul li::before {
    display: none;
  }

  .prose ul li::marker {
    color: #000000;
    font-size: 0.85em;
  }

  /* mono labels: one smaller size */
  .paths dt,
  .table-doc th,
  .ui,
  .example,
  .toc__no {
    font-size: 8.5pt;
  }

  .ui {
    padding: 0 1.2mm;
    border-color: #555555;
    background: none;
  }

  .paths {
    margin-top: 2.5mm;
    border-color: #999999;
  }

  .paths > div {
    grid-template-columns: 38mm minmax(0, 1fr);
    gap: 3mm;
    padding: 1.5mm 3mm;
    border-top-color: #cccccc;
    break-inside: avoid;
  }

  .paths dt {
    padding-top: 0.6mm;
  }

  /* the three switches: steps may break between (and inside) them; headings stay with their first lines */
  .switches {
    margin-top: 3mm;
  }

  .prose .switch {
    grid-template-columns: 12mm minmax(0, 1fr);
    gap: 0 4mm;
    padding-bottom: 5mm;
  }

  .switch__no {
    font-size: 20pt;
  }

  .switch:not(:last-child) .switch__marker::after {
    display: none;
  }

  .switch__body {
    padding-top: 1mm;
  }

  .switch__lead {
    break-inside: avoid;
    break-after: avoid;
  }


  /* keep "The three switches" with step 1, and the "Done." line with step 3 */
  [aria-labelledby="three-switches"] > p {
    break-after: avoid;
  }

  .switches + .callout--success {
    break-before: avoid;
  }

  /* 1Password steps */
  .prose .doc-step {
    grid-template-columns: 10mm minmax(0, 1fr);
    gap: 0 4mm;
  }

  .prose .doc-step + .doc-step {
    margin-top: 3.5mm;
  }

  .doc-step:has(+ .doc-step)::before {
    display: none;
  }

  .doc-step__mark {
    width: 9mm;
    height: 9mm;
    border-color: #000000;
    font-size: 10pt;
  }

  .doc-step__body h2 {
    margin-top: 1.2mm;
  }

  /* callouts: a heavy left rule instead of a tint */
  .callout {
    margin: 3mm 0;
    padding: 2.5mm 3.5mm;
    border: 1px solid #999999;
    border-left: 2.5pt solid #000000;
    background: none;
    break-inside: avoid;
  }

  .closing {
    margin-top: 5mm;
    padding: 3mm 4mm;
    border-color: #999999;
    background: none;
    break-inside: avoid;
  }

  .table-doc {
    margin-top: 3mm;
  }

  .table-doc th {
    padding: 1.6mm 2mm;
    border-bottom: 1px solid #000000;
    background: none;
  }

  .table-doc td {
    padding: 2mm;
    border-bottom: 1px solid #bbbbbb;
  }

  .table-doc tr {
    break-inside: avoid;
  }

  .table-doc tr.is-caution td {
    background: none;
  }

  .table-doc tr.is-caution td:first-child {
    box-shadow: none;
    border-left: 2.5pt solid #000000;
  }

  .caution-tag {
    margin-top: 1mm;
    font-size: 8pt;
  }

  .caution-tag::before {
    width: 0;
    height: 0;
    border: 2.5pt solid #000000;
    border-radius: 0;
    background: none;
  }

  .print-only {
    display: block;
  }

  .print-foot {
    margin-top: 5mm;
    padding-top: 2mm;
    border-top: 1px solid #000000;
    font-family: var(--font-mono);
    font-size: 7.5pt;
    letter-spacing: 0;
  }

  /* guides index */
  .guides {
    display: block;
    padding: 0;
  }

  .guide {
    margin-bottom: 5mm;
    break-inside: avoid;
  }

  .guide__head {
    background: none;
    border-bottom: 1px solid #999999;
  }

  .guide__head,
  .guide__head * {
    color: #000000;
  }

  .guide__link::after {
    content: " (secure.enuclea.com" attr(href) ")";
    position: static;
    font-size: 9pt;
    font-weight: 400;
  }
}
