/* The docs (web/docs/): the site's bar (the way back to the stream left, the links right), its background, and one
   readable column in the middle. */
.doc-page { position: relative; z-index: 1; display: grid; grid-template-rows: auto 1fr; grid-template-columns: minmax(0, 1fr); min-height: 100vh; min-height: 100svh; }
.watch { justify-self: start; padding: 8px 0; color: var(--muted); text-decoration: none; white-space: nowrap; }
.watch:focus-visible { outline: 2px solid var(--subq-blue); outline-offset: 2px; }

.doc { display: grid; grid-template-columns: minmax(0, 680px); justify-content: center; padding: 64px 24px 112px; }

.doc-main { min-width: 0; font-size: 15px; line-height: 1.7; color: var(--soft); }
.doc-main section { padding-top: 56px; scroll-margin-top: 24px; }
.doc-main section:first-of-type { padding-top: 0; }
.doc-main h2 { margin: 0 0 14px; font-size: 22px; font-weight: 600; letter-spacing: -0.01em; color: var(--text); text-wrap: balance; }
.doc-main p + p { margin-top: 14px; }
.doc-main strong { font-weight: 500; color: var(--text); }


/* $Snap's contract address: whole, in mono, breaking anywhere on a narrow screen, with a copy button. */
.ca { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 14px 16px; border: 1px solid var(--line-strong); border-radius: 10px; }
.ca-label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.ca code { min-width: 0; font-family: var(--mono); font-size: 14px; color: var(--text); overflow-wrap: anywhere; }
.copy { margin-left: auto; padding: 6px 12px; border: 1px solid var(--line-strong); border-radius: 8px; background: none; color: var(--soft); font: inherit; font-size: 13px; cursor: pointer; }
.copy:hover { color: var(--text); border-color: var(--muted); }
.copy:focus-visible { outline: 2px solid var(--subq-blue); outline-offset: 2px; }
.doc-main a { color: var(--text); }
.doc-main a:hover { color: var(--subq-blue-text); }

/* Docs among the links: the page you're on. */
.links a[aria-current="page"] { color: var(--text); }

@media (max-width: 960px) {
  .doc { padding: 40px 16px 80px; }
}
