/* The docs site (cmapp/docsite.py) in arkrooms.com's look (#917, #1005): site/site.css's colors, fonts, header,
   hero and footer, with the guide's side list and search. */
@font-face { font-family: "Nunito"; src: url("fonts/nunito-latin-wght-normal.woff2") format("woff2"); font-weight: 200 1000; font-display: swap; }
@font-face { font-family: "Quicksand"; src: url("fonts/quicksand-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
:root {
  --ink: #17304f; --teal: #1f7a86; --teal-dark: #155e68; --teal-soft: #e3f1f1; --gold: #ffc845;
  --cream: #fbf7f0; --paper: #ffffff; --muted: #55657c; --line: #e4e0d6;
  --radius: 22px; --shadow: 0 18px 50px -20px rgba(23, 48, 79, 0.35);
  --teal-text: #1f7a86; --lede: #2f4565; --glow: #dff0ee; --top-bg: rgba(255, 255, 255, 0.92);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #e8eef5; --muted: #a9b7c7; --line: #2b3c52; --cream: #0f1b2b; --paper: #15243a; --teal-soft: #173f47;
    --teal-text: #6ccad4; --lede: #c6d2df; --glow: #133a42; --top-bg: rgba(15, 27, 43, 0.92);
    --shadow: 0 18px 50px -20px rgba(0, 0, 0, 0.7);
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: "Nunito", system-ui, sans-serif; color: var(--ink); background: var(--cream); line-height: 1.55; font-size: 18px; }
a { color: var(--teal-text); }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 0.5em; }
h1 { font-family: "Quicksand", "Nunito", sans-serif; font-size: clamp(2.2rem, 5vw, 3.4rem); letter-spacing: -0.02em; }
p { margin: 0 0 1em; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.8rem; font-weight: 800; color: var(--teal-text); margin-bottom: 0.8em; }
.lede { font-size: 1.2rem; color: var(--lede); max-width: 34em; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px; border-radius: 999px;
  background: var(--teal); color: #fff; font-weight: 800; text-decoration: none; border: 2px solid var(--teal);
  transition: transform 0.15s ease, background 0.15s ease; }
.btn:hover { background: var(--teal-dark); border-color: var(--teal-dark); transform: translateY(-1px); }
.btn.small { min-height: 42px; padding: 0 18px; font-size: 0.95rem; }

/* Header: the site's */
.top { position: sticky; top: 0; z-index: 10; background: var(--top-bg); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand img { height: 40px; width: auto; display: block; }
.bar nav { display: flex; gap: 22px; margin-left: auto; }
.bar nav a { color: var(--ink); text-decoration: none; font-weight: 700; font-size: 0.98rem; }
.bar nav a:hover, .bar nav a[aria-current] { color: var(--teal-text); }

/* Hero: the page's title and the search, as the site's guides open */
.docs-hero { padding: 48px 0 32px; background: radial-gradient(900px 400px at 50% 0%, var(--glow) 0%, transparent 65%), var(--cream); }
.find { position: relative; max-width: 560px; margin-top: 20px; }
#search { width: 100%; min-height: 52px; padding: 0 22px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--paper); color: var(--ink); font: inherit; box-shadow: var(--shadow); }
#search:focus { outline: 2px solid var(--teal); outline-offset: 1px; }
#results { position: absolute; z-index: 5; top: 100%; left: 0; right: 0; margin: 6px 0 0; padding: 6px; list-style: none;
  background: var(--paper); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }
#results li { padding: 8px 10px; border-radius: 10px; }
#results li:hover { background: var(--teal-soft); }
#results a { font-weight: 800; display: block; }
#results span { color: var(--muted); font-size: 0.9rem; }

/* The guide: its sections on the side, the page in the site's reading width */
.layout { display: grid; grid-template-columns: 240px minmax(0, 760px); gap: 48px; padding-top: 8px; padding-bottom: 72px; }
.sections { position: sticky; top: 88px; align-self: start; max-height: calc(100vh - 100px); overflow-y: auto; }
.sections h2, .tasks h2 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.12em; font-weight: 800;
  color: var(--teal-text); margin: 20px 0 6px; }
.sections ul, .tasks ul { list-style: none; margin: 0; padding: 0; }
.sections li a { display: block; padding: 5px 12px; border-radius: 999px; text-decoration: none; color: var(--ink);
  font-weight: 600; font-size: 0.95rem; }
.sections li a:hover { background: var(--teal-soft); }
.sections a[aria-current] { background: var(--teal); color: #fff; font-weight: 800; }
main { min-width: 0; }
main h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 900; letter-spacing: -0.01em; margin-top: 1.6em; }
main h3 { font-size: 1.25rem; font-weight: 800; margin-top: 1.6em; }
main h4 { font-size: 1.05rem; font-weight: 800; margin-top: 1.2em; }
main li { margin-bottom: 0.5em; }
main img { max-width: 100%; height: auto; display: block; margin: 18px 0; background: var(--paper);
  border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }
main pre { overflow-x: auto; background: var(--paper); padding: 12px; border-radius: 12px; }
main dl { display: grid; grid-template-columns: max-content 1fr; gap: 4px 16px; }
main dt { font-weight: 800; color: var(--muted); }
main dd { margin: 0; }
.where { color: var(--muted); }
.tasks { background: var(--paper); border-left: 5px solid var(--gold); border-radius: 0 var(--radius) var(--radius) 0;
  padding: 4px 20px 12px; margin: 0 0 28px; }
.tasks li { padding: 2px 0; margin: 0; }

/* Footer: the site's */
footer { padding: 40px 0; background: var(--paper); border-top: 1px solid var(--line); font-size: 0.92rem; color: var(--muted); }
.foot img { height: 34px; width: auto; margin-bottom: 12px; display: block; }
.foot p { margin: 4px 0; }
.foot .tm { font-size: 0.82rem; }

@media (max-width: 860px) {
  .layout { grid-template-columns: 1fr; gap: 16px; }
  .sections { position: static; max-height: none; order: 2; border-top: 1px solid var(--line); } /* the page first */
}
@media (max-width: 640px) {
  body { font-size: 17px; }
  .wrap { padding: 0 16px; }
  .bar nav { display: none; }
  .bar .btn { margin-left: auto; }
  .docs-hero { padding: 32px 0 24px; }
  main dl { grid-template-columns: 1fr; }
}
