/* The workshop handbook: ink cover, oat index, paper pages. */
.docs-band { background: var(--ink); color: var(--paper); margin-top: 24px; }
.docs-band .wrap { min-height: 210px; display: flex; align-items: center; justify-content: space-between; gap: 32px; padding-block: 38px; }
.docs-band h1 { font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 720; }
.docs-band p { max-width: 48ch; margin-top: 14px; color: #d1cbbc; font-size: 18px; }
.docs-band img { flex: 0 0 auto; width: 176px; max-height: 160px; object-fit: contain; }
.docs-layout { display: grid; grid-template-columns: 200px minmax(0, 740px); gap: clamp(32px, 6vw, 80px); padding-block: 48px 112px; align-items: start; }
.docs-rail { position: sticky; top: 24px; padding: 18px 16px; background: var(--oat); }
.docs-rail summary { cursor: pointer; font-weight: 680; }
.docs-rail nav { display: flex; flex-direction: column; margin-top: 12px; gap: 2px; }
.docs-rail a { display: block; padding: 8px 10px; color: var(--ink-soft); text-decoration: none; line-height: 1.35; font-size: 15px; }
.docs-rail a:hover { color: var(--ink); text-decoration: underline; }
.docs-rail a[aria-current="page"] { background: var(--ink); color: var(--paper); font-weight: 650; }
.docs-article { min-width: 0; max-width: 740px; }
.docs-article h2 { font-size: 1.55rem; padding-top: 24px; margin-top: 38px; background: var(--rule) left top / 100% 6px no-repeat; }
.docs-article h2:first-child { margin-top: 0; }
.docs-article h3 { font-size: 1.1rem; margin-top: 26px; }
.docs-article p, .docs-article ul, .docs-article ol { margin-top: 14px; color: var(--ink-soft); }
.docs-article ul, .docs-article ol { padding-left: 24px; }
.docs-article li + li { margin-top: 9px; }
.docs-article strong { color: var(--ink); font-weight: 650; }
.docs-article code { overflow-wrap: anywhere; white-space: normal; }
.docs-article pre { margin: 20px 0 0; padding: 20px; border-left: 4px solid var(--ochre); background: var(--ink); color: var(--paper); font: 14px/1.65 var(--mono); overflow-x: auto; tab-size: 2; }
.docs-article pre code { white-space: pre; overflow-wrap: normal; }
.docs-note { padding: 2px 0 2px 18px; border-left: 3px solid var(--ochre); margin-block: 24px; }
.docs-note p:first-child { margin-top: 0; }
.docs-topics { list-style: none; padding: 0 !important; margin-top: 0 !important; }
.docs-topics li { margin: 0 !important; background: var(--rule) left bottom / 100% 6px no-repeat; }
.docs-topics a { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; padding: 24px 0; text-decoration: none; }
.docs-topics .docs-topic-arrow { margin: 0; flex: 0 0 auto; color: var(--rust); font-size: 22px; }
.docs-topics a:hover strong { text-decoration: underline; }
.docs-topics strong { display: block; font-size: 1.3rem; color: var(--ink); font-variation-settings: "FLAR" 80, "VOLM" 10; }
.docs-topics span { display: block; margin-top: 6px; color: var(--ink-soft); font-size: 16px; }
.docs-table-wrap { margin-top: 22px; overflow-x: auto; border: 3px solid var(--ink); border-top-width: 8px; }
.docs-table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.45; }
.docs-table th { background: var(--ink); color: var(--paper); font-weight: 600; }
.docs-table th, .docs-table td { text-align: left; vertical-align: top; padding: 12px 14px; }
.docs-table tbody tr + tr { border-top: 1px solid #c6bdab; }
.docs-table tbody tr:nth-child(even) { background: #e9e1d1; }
.docs-table td:first-child { font-weight: 600; color: var(--ink); }
.docs-steps { counter-reset: setup; list-style: none; padding: 0 !important; }
.docs-steps li { counter-increment: setup; position: relative; padding-left: 48px; margin-top: 24px !important; }
.docs-steps li::before { content: counter(setup); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 30px; height: 30px; background: url("../assets/marks/stamp.svg") center / contain no-repeat; color: var(--rust); font-weight: 700; }
.docs-steps p { margin-top: 6px; }
.docs-next { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 28px; margin-top: 42px; padding-top: 24px; background: var(--rule) left top / 100% 6px no-repeat; }
.docs-next a { font-weight: 600; }
.docs-help { margin-top: 36px !important; font-size: 15px; }
.docs-article .compact { font-size: 14px; }
.site-nav a[aria-current="page"] { color: var(--ink); background-size: 100% 5px; }

@media (max-width: 819px) {
  .docs-layout { grid-template-columns: minmax(0, 1fr); gap: 32px; padding-top: 24px; }
  .docs-rail { position: static; }
  .docs-rail nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .docs-band .wrap { min-height: 180px; }
  .docs-band img { width: 140px; max-height: 130px; }
  .docs-band p { font-size: 16px; }
}
@media (max-width: 479px) {
  .docs-band .wrap { align-items: end; gap: 12px; padding-block: 28px; }
  .docs-band img { width: 82px; max-height: 110px; }
  .docs-band h1 { font-size: 2.2rem; overflow-wrap: anywhere; }
  .docs-band p { margin-top: 12px; }
  .docs-table th, .docs-table td { padding: 10px; }
  .docs-article pre { padding: 14px; font-size: 12px; }
}
@media print {
  .docs-rail, .docs-band img, .site-header, .site-footer { display: none; }
  .docs-band { color: #000; background: none; margin: 0; }
  .docs-band p { color: #333; }
  .docs-layout { display: block; padding-block: 24px; }
}
