/* ---------------------------------------------------------------------------
   The two templates of the pages the server renders (server/lib/frame.js):
   Doc (/sobre, /privacidade, /termos) and Gate (the denied page, /mudou).
   Copied from the UI kit's kit.css (.doc, .gate). Loaded after style.css, which
   holds the shell, header, footer and the tokens' consumers; the app itself does
   not import this file.
   --------------------------------------------------------------------------- */

/* the width each page takes from the shell: Doc is the text column, with the
   contents beside it from desktop; Gate stays a text column */
.shell--doc,
.shell--gate { --shell-w: var(--w-text); }
@media (min-width: 60rem) { .shell--doc { --shell-w: var(--w-desktop); } }
@media (min-width: 120.0625rem) { .shell--doc { --shell-w: var(--w-ultra); } }

/* the theme button of the server pages (ThemeToggle.vue's scoped style) */
.btn.toggle { font-size: 1rem; color: var(--ink-2); }
.hdr__nav a { white-space: nowrap; }
.hdr__lang { font-size: 0.8rem; font-weight: 600; }

/* ===== Doc ============================================================== */
.doc { display: grid; gap: var(--s-5); align-items: start; }
.doc__text { max-width: var(--w-text); }
.doc__text h1 { font-size: var(--t-6); margin: var(--s-6) 0 var(--s-2); }
.doc__text .lead { color: var(--ink-2); font-size: var(--t-4); margin-bottom: var(--s-5); }
.doc__text h2 { font-size: var(--t-4); margin: var(--s-6) 0 var(--s-2); scroll-margin-top: var(--s-5); }
.doc__text p, .doc__text li { color: var(--ink); }
.doc__text p + p { margin-top: 0.75em; }
.doc__text ul { padding-left: 1.25rem; }
.doc__text code { font-size: 0.9em; }
.doc__note { margin-top: var(--s-5); }
.doc__toc { display: none; }
.doc__toc ol { list-style: none; margin: 0; padding: 0; border-left: var(--bw-hair) solid var(--line); }
.doc__toc a { display: block; padding: 0.3rem 0.75rem; font-size: var(--t-2); color: var(--ink-2); text-decoration: none; border-left: 3px solid transparent; margin-left: -1px; }
.doc__toc a:hover { color: var(--ink); }
.doc__toc a[aria-current] { color: var(--ink); border-left-color: var(--shu); font-weight: 600; }
.doc__toc .h { font-size: var(--t-1); color: var(--ink-2); margin: 0 0 0.5rem 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; }
@media (min-width: 60rem) {
  .doc { grid-template-columns: 14rem minmax(0, var(--w-text)); }
  .doc__toc { display: block; position: sticky; top: var(--s-5); padding-top: calc(var(--s-6) + 0.5rem); }
}
/* ultra: the three columns (contents, text, a mirror of the contents) sit centred, so the
   page is a reading spread and not a column pushed against the left edge */
@media (min-width: 120.0625rem) {
  .doc { grid-template-columns: 16rem minmax(0, var(--w-text)) 16rem; justify-content: center; gap: var(--s-7); }
}

/* ===== Gate ============================================================= */
.gate { display: grid; gap: var(--s-5); align-content: start; padding-top: var(--s-5); }
.gate__ident { display: grid; gap: var(--s-3); justify-items: start; }
.gate__ident h1 { font-family: var(--font-pen); font-size: var(--t-7); letter-spacing: var(--track-name); font-weight: 600; }
.gate__ident .tag { color: var(--ink-2); max-width: 24rem; }
.gate__links { display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-3); justify-content: center; font-size: var(--t-2); }
.gate--centre { min-height: 60dvh; align-content: center; justify-items: center; text-align: center; }
.gate--centre .gate__ident { justify-items: center; }
