/* doc.css - the text pages of mymentorai.com (privacy, terms, cookies, accessibility, the funded
   project, the innovative-startup disclosure, 404). One reading column on the kit's tokens
   (assets/kit/system.css): no colour, size or font is named here, so the pages follow whatever
   deal the site carries. Markup contract: section.doc > .wrap > header.doc__head + div.doc__body. */

.doc { padding-block: calc(var(--nav-h, 72px) + var(--s-8, 64px)) var(--s-10, 128px); background: var(--bg); color: var(--ink); }
.doc > .wrap { display: grid; grid-template-columns: minmax(0, 1fr); row-gap: var(--s-8, 64px); }

.doc__head { max-width: 880px; }
.doc__kicker { font: 500 var(--t-label, 13px)/1.2 var(--font-mono); letter-spacing: 0.02em; color: var(--muted); margin-bottom: var(--s-4, 16px); }
.doc__head h1 { font-size: clamp(36px, 3.2vw + 20px, 64px); line-height: 1.04; max-width: 20ch; text-wrap: balance; }
.doc__lead { font-size: var(--t-lead, 20px); line-height: 1.5; color: var(--muted); max-width: 62ch; margin-top: var(--s-5, 24px); }
.doc__meta { font: 400 var(--t-small, 14px)/1.4 var(--font-mono); color: var(--muted); margin-top: var(--s-4, 16px); }

.doc__body { max-width: 720px; font-size: var(--t-body, 17px); line-height: 1.65; }
.doc__body > * + * { margin-top: var(--s-4, 16px); }
.doc__body h2 { font-size: clamp(24px, 1vw + 18px, 32px); line-height: 1.15; margin-top: var(--s-8, 64px); padding-top: var(--s-5, 24px); border-top: 1px solid var(--line); text-wrap: balance; }
.doc__body h2:first-child { margin-top: 0; }
.doc__body h3 { font-size: clamp(19px, 0.4vw + 17px, 22px); line-height: 1.25; margin-top: var(--s-6, 32px); }
.doc__body h4 { font-size: var(--t-body, 17px); line-height: 1.35; margin-top: var(--s-5, 24px); }
.doc__body ul, .doc__body ol { padding-left: 1.3em; }
.doc__body li + li { margin-top: var(--s-2, 8px); }
.doc__body a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; text-decoration-color: color-mix(in oklab, var(--ink) 45%, transparent); overflow-wrap: anywhere; }
.doc__body a:hover { text-decoration-color: currentColor; }
.doc__body a:focus-visible, .doc__btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.doc__body address { font-style: normal; }
.doc__body img { display: block; max-width: 100%; height: auto; }
/* the official grant logo strip keeps a light ground behind it on every palette (the artwork is the positive version) */
.doc__body p > img:only-child { background: #fff; padding: var(--s-4, 16px); border: 1px solid var(--line); border-radius: var(--r-md, 8px); }

.doc__note { padding: var(--s-4, 16px) var(--s-5, 24px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md, 8px); }

.doc__table { width: 100%; border-collapse: collapse; font-size: var(--t-small, 15px); line-height: 1.5; }
.doc__table caption { text-align: left; font-weight: 600; padding-bottom: var(--s-3, 12px); }
.doc__table th, .doc__table td { text-align: left; vertical-align: top; padding: var(--s-3, 12px) var(--s-4, 16px) var(--s-3, 12px) 0; border-top: 1px solid var(--line); }
.doc__table thead th { border-top: 0; color: var(--muted); font-weight: 500; }
.doc__table tbody th { font-weight: 600; width: 34%; }

.doc__btn { display: inline-flex; align-items: center; min-height: var(--btn-h, 44px); padding: 0 var(--s-5, 24px); border: 1px solid var(--line-strong); border-radius: var(--r-btn, 8px); background: var(--bg); color: var(--ink); font: 500 var(--t-small, 15px)/1 var(--font-text); text-decoration: none; cursor: pointer; }
.doc__btn:hover { background: color-mix(in oklab, var(--bg) 92%, var(--ink)); }

@media (max-width: 639px) {
  .doc { padding-block: calc(var(--nav-h, 64px) + var(--s-6, 32px)) var(--s-9, 96px); }
  .doc > .wrap { row-gap: var(--s-6, 32px); }
  .doc__table, .doc__table tbody, .doc__table tr, .doc__table th, .doc__table td { display: block; width: auto; }
  .doc__table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .doc__table tbody th { border-top: 1px solid var(--line); padding-bottom: 0; }
  .doc__table tbody td { border-top: 0; padding-top: var(--s-1, 4px); }
}
