/* treysonwelch.com utility pages (privacy, accessibility): long-form "Read" layout, v17 system. */
.doc-wrap { width: 100%; max-width: 1104px; margin: 0 auto; padding: 0 32px; }

/* document head: paper band with the title and the last-updated stamp */
.doc-head { background: var(--paper); border-bottom: 1px solid #E4DECF; padding: 80px 0 60px; }
.doc-head h1 {
  font-size: clamp(2.6rem, 5.2vw, 4.25rem); line-height: 1.02; font-weight: 600;
  letter-spacing: -0.038em; max-width: 16ch;
}
.doc-lede { margin-top: 18px; font-size: 19px; line-height: 1.55; color: var(--ink-2); max-width: 52ch; }
.updated {
  margin-top: 32px; display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap;
  min-height: 38px; padding: 6px 14px 6px 12px; border-radius: 10px; background: #fff;
  box-shadow: 0 0 0 1px rgba(22,38,74,0.10), 0 4px 12px -8px rgba(15,27,54,0.30);
  font-size: 15px; font-weight: 600; color: var(--ink);
}
.updated svg { width: 16px; height: 16px; flex: none; color: var(--ink-3); }
.updated time { font-family: var(--mono); font-weight: 400; font-size: 14px; font-variant-numeric: tabular-nums; }

/* body: sticky contents rail plus a 64ch reading column */
.doc-grid {
  display: grid; grid-template-columns: 224px minmax(0, 64ch); gap: 80px;
  padding-top: 72px; padding-bottom: 128px; align-items: start;
}
.toc { position: sticky; top: 100px; max-height: calc(100vh - 124px); overflow-y: auto; padding-bottom: 8px; }
.toc-h { font-size: 13px; font-weight: 600; color: var(--ink-3); letter-spacing: 0.01em; margin-bottom: 12px; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.toc a {
  display: block; margin-left: -1px; padding: 6px 0 6px 16px; border-left: 1px solid transparent;
  font-size: 14.5px; line-height: 1.4; color: var(--ink-3); text-decoration: none;
  transition: color .2s, border-color .2s;
}
.toc a:hover { color: var(--ink); border-left-color: #A3A9B7; }
.toc a[aria-current="location"] { color: var(--ink); font-weight: 600; border-left-color: var(--navy); }
.toc a:focus-visible { outline-offset: 1px; border-radius: 4px; }

.prose { font-size: 18px; line-height: 1.7; color: var(--ink-2); }
.prose section + section { margin-top: 56px; padding-top: 48px; border-top: 1px solid var(--line-2); }
.prose h2 {
  font-size: clamp(1.45rem, 2.2vw, 1.75rem); line-height: 1.2; font-weight: 600;
  letter-spacing: -0.022em; color: var(--ink); margin-bottom: 16px;
}
.prose p + p, .prose ul + p, .prose p + ul { margin-top: 18px; }
.prose ul { margin: 0; padding-left: 1.25em; }
.prose li { padding-left: 6px; }
.prose li + li { margin-top: 12px; }
.prose li::marker { color: #9097A8; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a {
  color: var(--ink); font-weight: 500; text-decoration: underline; text-decoration-thickness: 1px;
  text-underline-offset: 4px; text-decoration-color: rgba(22,38,74,0.35); overflow-wrap: anywhere;
  transition: text-decoration-color .2s;
}
.prose a:hover { text-decoration-color: var(--cherry); }

.foot-nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--on-navy-2); }

@media (max-width: 900px) {
  .doc-grid { grid-template-columns: minmax(0, 1fr); gap: 48px; padding-top: 48px; }
  .toc { position: static; max-height: none; overflow: visible; padding: 18px 20px 14px; border-radius: var(--r); background: var(--wash); }
  .toc ol { border-left: 0; }
  .toc a { margin-left: 0; padding: 7px 0; border-left: 0; font-size: 15.5px; }
  .toc a:hover { border-left-color: transparent; }
  .toc a[aria-current="location"] { font-weight: 500; color: var(--ink-3); }
}
@media (max-width: 720px) {
  .doc-wrap { padding-left: 20px; padding-right: 20px; }
  .doc-head { padding: 56px 0 44px; }
  .doc-head h1 { font-size: clamp(2.4rem, 11vw, 3.2rem); letter-spacing: -0.035em; }
  .doc-lede { font-size: 17.5px; }
  .doc-grid { padding-bottom: 88px; }
  .prose { font-size: 17px; }
  .prose section + section { margin-top: 44px; padding-top: 40px; }
}
