/* CODER'S DOCS (the owner, 2026-11-08): the app's look (its off-white, navy and Inter), a list of sections on the
   left, the text on the right; on a phone, the list sits above the text. Reached from the landing page's top bar. */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #faf9f7; color: #0d1b2a; font: 15px/1.65 Inter, -apple-system, system-ui, sans-serif; }
body { padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px); }
a { color: #0f766e; }
code { font: 13px/1.5 "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace; background: #f1eee8; border: 1px solid #e6e1d8; border-radius: 6px; padding: 1px 5px; word-break: break-word; }

.dc-top { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 20px; border-bottom: 1px solid #ece8e1; background: #fff; }
.dc-brand { display: inline-flex; align-items: center; gap: 9px; color: inherit; text-decoration: none; }
.dc-brand b { font-size: 16px; letter-spacing: -.01em; }
.dc-logo { width: 28px; height: 28px; border-radius: 8px; background: #0d1b2a; color: #fff; display: grid; place-items: center; font: 700 11px Inter, system-ui, sans-serif; }
.dc-tag { font-size: 12px; font-weight: 600; color: #0f766e; background: #effaf7; border: 1px solid #b7e0d9; border-radius: 999px; padding: 1px 9px; }
.dc-open { border: 1px solid #e0dbd2; background: #fff; border-radius: 999px; padding: 6px 14px; font: 500 13px Inter, system-ui, sans-serif; color: #0d1b2a; text-decoration: none; }
.dc-open:hover { background: #f4f2ee; }

.dc-wrap { display: flex; max-width: 1080px; margin: 0 auto; padding: 0 20px; gap: 40px; }
.dc-nav { position: sticky; top: 57px; align-self: flex-start; width: 210px; flex: none; padding: 28px 0; max-height: calc(100vh - 57px); overflow: auto; }
.dc-navhead { margin: 18px 0 6px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: #6b7280; }
.dc-navhead:first-child { margin-top: 0; }
.dc-nav a { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 10px; border-radius: 8px; color: #0d1b2a; text-decoration: none; font-size: 14px; }
.dc-nav a:hover { background: #ece9e3; }
.dc-nav a.dc-sub { padding: 4px 10px 4px 22px; font-size: 13px; color: #4b5563; }

.dc-main { flex: 1; min-width: 0; max-width: 760px; padding: 28px 0 60px; }
.dc-main section { padding-top: 8px; margin-bottom: 36px; scroll-margin-top: 70px; }
.dc-main h1 { margin: 0 0 10px; font-size: 30px; letter-spacing: -.02em; }
.dc-main h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; padding-top: 18px; border-top: 1px solid #ece8e1; font-size: 22px; letter-spacing: -.01em; }
.dc-main h3 { margin: 22px 0 6px; font-size: 16px; scroll-margin-top: 70px; }
.dc-main ul { margin: 6px 0 0; padding-left: 20px; }
.dc-main li { margin: 5px 0; }
.dc-lead { font-size: 16px; color: #374151; }

/* PHONES: the list of sections above the text, in a row that scrolls sideways. */
@media (max-width: 760px) {
  .dc-top { padding: 10px 16px; }
  .dc-wrap { display: block; padding: 0 16px; }
  .dc-nav { position: static; width: auto; max-height: none; display: flex; gap: 6px; overflow-x: auto; padding: 12px 0 4px; border-bottom: 1px solid #ece8e1; }
  .dc-navhead { display: none; }
  .dc-nav a.dc-sub { padding: 5px 12px; font-size: 13px; color: #0d1b2a; }
  .dc-nav a { flex: none; background: #fff; border: 1px solid #ece8e1; border-radius: 999px; padding: 5px 12px; font-size: 13px; }
  .dc-main { padding-top: 16px; }
  .dc-main h1 { font-size: 26px; }
}
