/* Owner guides: long-form reading pages in the owners-op palette and type. */
:root {
  --palm: #0d1c17;
  --ink: #10201b;
  --ink-muted: #4d5f57;
  --sand: #f3eee3;
  --sand-2: #e7ddc8;
  --paper: #fffdf8;
  --gold: #d8a05c;
  --gold-2: #efc889;
  --gold-ink: #9a6a2c;
  --link-ink: #7f5522; /* links and citations: 5.6:1 on sand, 6.4:1 on paper (WCAG AA) */
  --muted: rgba(255, 253, 248, .74);
  --line: rgba(255, 253, 248, .2);
  --line-ink: rgba(16, 32, 27, .14);
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Avenir Next", Avenir, "Helvetica Neue", Arial, sans-serif;
  --pad: clamp(20px, 5vw, 64px);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--sand); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
a:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(1280px, 100%); margin: 0 auto; padding: 0 var(--pad); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 10; padding: 10px 14px; border-radius: 8px; background: var(--paper); color: var(--ink); }
.skip:focus { left: 8px; }

.top { background: var(--palm); color: var(--paper); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 20px; padding-bottom: 20px; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-decoration: none; }
.brand img { width: 30px; height: 30px; }
.nav-link { color: var(--muted); font-size: 14px; font-weight: 600; text-decoration: none; padding: 9px 16px; border: 1px solid var(--line); border-radius: 999px; }
.nav-link:hover { color: var(--paper); border-color: var(--gold-2); }

.guide { max-width: 820px; padding-top: clamp(32px, 5vw, 64px); padding-bottom: clamp(56px, 8vw, 96px); }
.crumbs { font-size: 13px; color: var(--ink-muted); margin-bottom: 28px; }
.crumbs a { color: var(--ink-muted); }
.eyebrow { margin: 0 0 14px; color: var(--gold-ink); font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
h1 { margin: 0; font-family: var(--serif); font-weight: 400; letter-spacing: -.02em; font-size: clamp(34px, 4.6vw, 54px); line-height: 1.06; text-wrap: balance; }
.dates { margin: 18px 0 0; font-size: 13px; color: var(--ink-muted); }

.toc { margin: 32px 0 8px; padding: 20px 24px; background: var(--paper); border: 1px solid var(--line-ink); border-radius: 14px; }
.toc p { margin: 0 0 8px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-ink); }
.toc ol { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: 15px; line-height: 1.4; }
.toc a { color: var(--ink); text-decoration-color: var(--line-ink); text-underline-offset: 3px; }

.body { font-size: 17px; line-height: 1.68; }
.body h2 { margin: 52px 0 14px; font-family: var(--serif); font-weight: 400; font-size: clamp(26px, 2.8vw, 34px); line-height: 1.15; letter-spacing: -.01em; scroll-margin-top: 16px; }
.body h3 { margin: 32px 0 8px; font-size: 18px; line-height: 1.35; }
.body p { margin: 0 0 16px; text-wrap: pretty; }
.body ul, .body ol { margin: 0 0 18px; padding-left: 24px; }
.body li { margin: 6px 0; }
.body a { color: var(--link-ink); text-underline-offset: 3px; }
.body strong { font-weight: 700; }
.body blockquote { margin: 24px 0; padding: 18px 22px; background: var(--paper); border-left: 4px solid var(--gold); border-radius: 0 12px 12px 0; }
.body blockquote p:last-child { margin-bottom: 0; }
.body table { width: 100%; border-collapse: collapse; margin: 12px 0 24px; font-size: 15px; line-height: 1.45; background: var(--paper); display: block; overflow-x: auto; }
.body th, .body td { padding: 10px 12px; border-bottom: 1px solid var(--line-ink); text-align: left; vertical-align: top; }
.body th { background: var(--sand-2); font-weight: 700; }
.body code { font-size: .92em; }
.example { margin: 20px 0 28px; padding: 6px 22px 10px; background: var(--paper); border: 1px solid var(--line-ink); border-left: 4px solid var(--gold); border-radius: 0 14px 14px 0; }
.example h3 { margin-top: 18px; color: var(--gold-ink); }
.cite { font-size: .68em; line-height: 0; white-space: nowrap; }
.cite a { text-decoration: none; }
.sources { font-size: 14px; line-height: 1.55; padding-left: 0 !important; list-style: none; }
.sources li { display: grid; grid-template-columns: 32px 1fr; gap: 4px; margin: 10px 0; scroll-margin-top: 16px; word-break: break-word; }
.sources li:target { background: var(--paper); border-radius: 8px; }
.sid { font-weight: 700; color: var(--link-ink); }

.related { margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line-ink); }
.related h2 { margin: 0 0 12px; font-family: var(--serif); font-weight: 400; font-size: 26px; }
.related ul { margin: 0; padding-left: 20px; display: grid; gap: 8px; font-size: 16px; }
.related a { color: var(--ink); text-underline-offset: 3px; }

footer.site { background: var(--palm); color: var(--muted); font-size: 13px; line-height: 1.6; }
footer.site .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; padding-top: 26px; padding-bottom: 26px; }
footer.site a { color: var(--paper); }
@media print { .top, .toc, footer.site, .related { display: none; } body { background: #fff; } }
