/* CoastLens documentation pages. Same type and palette as the landing, laid out as a document. */
@font-face { font-family: "Inter"; src: url(fonts/inter-latin-wght-normal.woff2) format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url(fonts/jetbrains-mono-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --navy: #0a1829;
  --teal: #165d73;
  --teal-soft: #e8f2f5;
  --sand: #f2b45a;
  --text: #13222b;
  --soft: #4c5d66;
  --muted: #74838c;
  --line: #e3e8ec;
  --bg: #ffffff;
  --bg-2: #f6f8fa;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.7 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: var(--teal); text-underline-offset: 3px; }
img { display: block; max-width: 100%; height: auto; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: #fff; padding: 8px 14px; border-radius: 8px; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; border-radius: 4px; }

/* top bar */
.doc-top { position: sticky; top: 0; z-index: 10; background: rgb(255 255 255 / .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.doc-top-in { max-width: 1200px; margin: 0 auto; height: 60px; padding: 0 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.doc-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 650; }
.doc-brand em { font-style: normal; font-weight: 500; font-size: 13px; color: var(--muted); padding-left: 10px; border-left: 1px solid var(--line); }
.doc-top-nav { display: flex; align-items: center; gap: 20px; font-size: 14px; }
.doc-top-nav a { color: var(--soft); text-decoration: none; }
.doc-top-nav a:hover, .doc-top-nav a[aria-current="page"] { color: var(--text); }
.doc-top-nav .doc-signin { padding: 6px 14px; border-radius: 8px; background: var(--teal); color: #fff; }
.doc-top-nav .doc-signin:hover { background: #114b5d; color: #fff; }

/* layout */
.doc-shell { max-width: 1200px; margin: 0 auto; padding: 0 20px; display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 56px; }
.doc-side { position: sticky; top: 60px; align-self: start; max-height: calc(100vh - 60px); overflow: auto; padding: 36px 0; }
.doc-side-h { margin: 0 0 10px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.doc-toc { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.doc-toc a { display: block; padding: 5px 0 5px 14px; margin-left: -1px; border-left: 2px solid transparent; font-size: 14px; color: var(--soft); text-decoration: none; }
.doc-toc a:hover { color: var(--text); }
.doc-toc a.is-active { color: var(--teal); border-left-color: var(--teal); font-weight: 550; }

/* content */
.doc { max-width: 760px; padding: 36px 0 64px; }
.doc-crumb { margin: 0 0 6px; font-size: 13px; color: var(--muted); }
.doc-crumb a { color: var(--muted); text-decoration: none; }
.doc h1 { margin: 0 0 10px; font-size: clamp(30px, 4vw, 40px); line-height: 1.15; letter-spacing: -.02em; }
.doc-lede { margin: 0 0 8px; font-size: 18px; color: var(--soft); }
.doc h2 { margin: 52px 0 12px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 24px; line-height: 1.3; letter-spacing: -.01em; }
.doc h3 { margin: 28px 0 8px; font-size: 17px; }
.doc p { margin: 0 0 14px; }
.doc ul, .doc ol { margin: 0 0 16px; padding-left: 22px; }
.doc li { margin: 4px 0; }
.doc code { font-family: var(--mono); font-size: .86em; padding: 1px 6px; border-radius: 5px; background: var(--bg-2); border: 1px solid var(--line); }
.doc-code { margin: 6px 0 18px; padding: 14px 18px; border-radius: 10px; background: var(--navy); color: #e9f3f6; overflow-x: auto; font-size: 14px; }
.doc-code code { background: none; border: 0; padding: 0; color: inherit; font-size: inherit; }

.doc table { width: 100%; margin: 8px 0 20px; display: block; overflow-x: auto; border-collapse: collapse; font-size: 14.5px; line-height: 1.5; }
.doc th, .doc td { padding: 10px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.doc th { font-size: 13px; font-weight: 600; color: var(--soft); background: var(--bg-2); }
.doc td:first-child { font-weight: 550; white-space: nowrap; }

.doc-note { margin: 4px 0 20px; padding: 12px 16px; border-radius: 10px; background: var(--teal-soft); border-left: 3px solid var(--teal); font-size: 15px; }

.doc figure { margin: 10px 0 24px; }
.doc figure img { border: 1px solid var(--line); border-radius: 10px; }
.doc figcaption { margin-top: 8px; font-size: 13px; color: var(--muted); }

.doc-next { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 56px; }
.doc-next a { display: grid; gap: 2px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; color: var(--text); text-decoration: none; font-weight: 550; }
.doc-next a:hover { border-color: var(--teal); }
.doc-next span { font-size: 12px; font-weight: 500; color: var(--muted); }
.doc-foot { margin-top: 40px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.doc-foot a { color: var(--muted); }

@media (max-width: 900px) {
  .doc-shell { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .doc-side { position: static; max-height: none; padding: 20px 0 0; }
  .doc-toc { display: flex; flex-wrap: wrap; gap: 4px 12px; border: 0; }
  .doc-toc a { padding: 2px 0; border: 0; font-size: 13.5px; }
  .doc { padding-top: 20px; }
  .doc td:first-child { white-space: normal; }
}
@media (max-width: 560px) {
  .doc-brand em { display: none; }
  .doc-top-nav { gap: 14px; }
  .doc-next { grid-template-columns: 1fr; }
  .doc table { font-size: 13.5px; }
  .doc th, .doc td { padding: 8px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
