| 1 | /* ------------------------------------------------------------------ */ |
| 2 | /* Docs overrides (owned with the docs pages; kept last in cascade) */ |
| 3 | /* ------------------------------------------------------------------ */ |
| 4 | |
| 5 | /* ---------- docs: the reading sheet ---------- */ |
| 6 | /* Read mode: comprehension first. The article gets a book measure, the |
| 7 | Shannon Sans heading voice, generous leading, and a contents rail that |
| 8 | stays put while the sheet scrolls. */ |
| 9 | .docs-content { |
| 10 | max-width: 46rem; |
| 11 | } |
| 12 | |
| 13 | .docs-content h1 { |
| 14 | font-size: clamp(2.2rem, 3.6vw, 3rem); |
| 15 | line-height: 1.05; |
| 16 | margin-bottom: 0.35rem; |
| 17 | } |
| 18 | |
| 19 | .docs-content h2 { |
| 20 | font-family: var(--font-display); |
| 21 | font-weight: 600; |
| 22 | font-size: clamp(1.5rem, 2.2vw, 1.9rem); |
| 23 | line-height: 1.15; |
| 24 | letter-spacing: -0.015em; |
| 25 | margin-bottom: 0.25rem; |
| 26 | } |
| 27 | |
| 28 | .docs-content h3 { |
| 29 | font-size: 1.05rem; |
| 30 | } |
| 31 | |
| 32 | .docs-content p, |
| 33 | .docs-content li { |
| 34 | max-width: 66ch; |
| 35 | font-size: var(--text-prose); |
| 36 | line-height: var(--leading-prose); |
| 37 | } |
| 38 | |
| 39 | /* A step card is a panel, not a line of prose: its rows span the card so |
| 40 | the dividers meet both edges. */ |
| 41 | .docs-content .gs-steps li { max-width: none; } |
| 42 | |
| 43 | .docs-content > section + section { |
| 44 | padding-top: 0.5rem; |
| 45 | } |
| 46 | |
| 47 | .docs-content code.inline { |
| 48 | background: var(--paper-card); |
| 49 | border-color: var(--hairline); |
| 50 | } |
| 51 | |
| 52 | .docs-content pre.code-block { |
| 53 | margin-block: 1rem; |
| 54 | } |
| 55 | |
| 56 | /* The contents rail: a running index in the margin, sticky on tall screens. */ |
| 57 | @media (min-width: 901px) { |
| 58 | .docs-sidebar { |
| 59 | position: sticky; |
| 60 | top: 5.25rem; |
| 61 | max-height: calc(100vh - 6rem); |
| 62 | overflow-y: auto; |
| 63 | padding-right: 0.5rem; |
| 64 | } |
| 65 | } |
| 66 | |
| 67 | .docs-sidebar-heading { |
| 68 | font-family: var(--font-display); |
| 69 | font-size: 1.05rem; |
| 70 | font-weight: 600; |
| 71 | } |
| 72 | |
| 73 | .docs-sidebar-category { |
| 74 | font-family: var(--font-body); |
| 75 | font-size: 0.75rem; |
| 76 | } |
| 77 | |
| 78 | .docs-sidebar-link { |
| 79 | font-size: 0.86rem; |
| 80 | padding-block: 0.36rem; |
| 81 | } |
| 82 | |
| 83 | .docs-sidebar-link-current { |
| 84 | color: var(--ink); |
| 85 | font-weight: 600; |
| 86 | } |
| 87 | |
| 88 | /* The link is a flex row (label, then an optional external arrow); the |
| 89 | current-page tick is its first item, and the label grows so the tick stays |
| 90 | beside it instead of being pushed to the far edge. */ |
| 91 | .docs-sidebar-link-current::before { |
| 92 | content: ""; |
| 93 | flex: none; |
| 94 | width: 0.4rem; |
| 95 | height: 1px; |
| 96 | margin-inline-end: -0.35rem; |
| 97 | background: var(--indigo); |
| 98 | } |
| 99 | .docs-sidebar-link > span:first-child { flex: 1 1 auto; min-width: 0; } |
| 100 | |
| 101 | /* Topic rows on the hub: a title with room to breathe. */ |
| 102 | .docs-topic-title { |
| 103 | font-size: 0.98rem; |
| 104 | } |
| 105 | |
| 106 | .docs-topic-main p { |
| 107 | font-size: 0.86rem; |
| 108 | line-height: 1.6; |
| 109 | } |
| 110 | |
| 111 | .docs-result-heading h2 { |
| 112 | font-family: var(--font-display); |
| 113 | font-weight: 600; |
| 114 | font-size: 1.6rem; |
| 115 | } |
| 116 | |
| 117 | /* The docs hero band: the mark and the release line as one running head. */ |
| 118 | .docs-portal .hero { |
| 119 | padding-block: 1rem; |
| 120 | background: var(--paper-deep); |
| 121 | } |
| 122 | |
| 123 | .docs-portal .portal-mark { |
| 124 | color: var(--ink); |
| 125 | font-family: var(--font-display); |
| 126 | font-size: 1.05rem; |
| 127 | font-weight: 600; |
| 128 | } |
| 129 | |
| 130 | .release-truth { |
| 131 | margin-top: 0; |
| 132 | } |
| 133 | |
| 134 | /* Contextual help plate at the foot of every page, on the sheet's own card. */ |
| 135 | .docs-help { |
| 136 | background: var(--paper-card); |
| 137 | border-color: var(--hairline); |
| 138 | } |
| 139 | |
| 140 | .docs-help-copy h2 { |
| 141 | font-family: var(--font-display); |
| 142 | font-weight: 600; |
| 143 | font-size: 1.4rem; |
| 144 | } |
| 145 |