/* reefhub manuals – the splash look carried into long text: anthracite, white, pink accent,
   Inter for reading, monospace for the "terminal" details (prompt, numbers, labels). Loaded after site.css. */
:root {
  --line: rgba(255,255,255,.10);
  --line-strong: rgba(255,255,255,.18);
  --text: rgba(255,255,255,.82);
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

html { color-scheme: dark; }
html, body.manual { height: auto; }
body.manual { display: block; }

/* top bar: mark + path, like a shell prompt */
.bar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 14px;
  height: 56px; padding: 0 20px;
  background: rgba(18,19,22,.9); border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.bar .home { display: block; line-height: 0; }
.bar .home img { width: 26px; height: auto; }
.bar .crumbs { font: 400 13px/1 var(--mono); color: var(--fg); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar .crumbs .pr { color: var(--muted); }
.bar .crumbs a { color: inherit; text-decoration: none; }
.bar .crumbs a:hover, .bar .crumbs a:focus-visible { color: var(--pink); }

/* layout */
.layout { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.content { display: block; flex: none; min-width: 0; max-width: 700px; padding: 48px 0 72px; color: var(--text); counter-reset: sec; }
@media (min-width: 960px) {
  .layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 64px; }
  .manual-index .layout { display: block; }
  .manual-index .content { max-width: none; }
}

/* head: prompt line + title with the pink block cursor from the splash */
.content .prompt { margin: 0 0 14px; font: 400 14px/1.4 var(--mono); color: var(--fg); }
.content .prompt .pr { color: var(--muted); }
.content h1 { margin: 0 0 36px; font-size: clamp(30px, 5vw, 42px); line-height: 1.1; font-weight: 700; letter-spacing: -.03em; color: var(--fg); }
.content h1 .cur { height: .82em; width: .42em; margin-left: .12em; vertical-align: -.04em; }

/* sections: numbered like terminal output */
.content h2 { counter-increment: sec; margin: 56px 0 6px; padding-top: 28px; border-top: 1px solid var(--line); font-size: 22px; line-height: 1.25; font-weight: 700; letter-spacing: -.015em; color: var(--fg); }
.content h2::before { content: counter(sec, decimal-leading-zero); display: block; margin-bottom: 8px; font: 400 13px/1 var(--mono); color: var(--pink); letter-spacing: 0; }
.content h1 + h2 { margin-top: 0; padding-top: 0; border-top: 0; }
.content hr { display: none; }   /* sections already carry a rule */
.content h3 { margin: 34px 0 10px; font-size: 17px; line-height: 1.35; font-weight: 600; color: var(--fg); }
.content p { margin: 0 0 14px; line-height: 1.7; }
.content p.lead { font-size: 17px; color: var(--muted); max-width: 40em; }
.content strong { font-weight: 600; color: var(--fg); }
.content a { color: var(--fg); text-decoration: none; border-bottom: 1px solid rgba(230,0,126,.6); }
.content a:hover, .content a:focus-visible { border-color: var(--pink); color: #fff; }
.content [id], .anchor { scroll-margin-top: 80px; }
.anchor { display: block; }

/* lists: bullets as pink dashes, steps with mono numbers */
.content ul { list-style: none; margin: 0 0 18px; padding: 0; line-height: 1.65; }
.content ul li { position: relative; margin: 0 0 8px; padding-left: 22px; }
.content ul:not(.steps):not(.cards) > li::before { content: "–"; position: absolute; left: 2px; color: var(--pink); }
.content ul.steps > li { padding-left: 38px; }
.content ul.steps .n { position: absolute; left: 0; top: .2em; font: 400 13px/1.5 var(--mono); color: var(--pink); }

/* notes: a framed line like a log entry */
.note { margin: 20px 0; padding: 14px 18px; border: 1px solid var(--line-strong); border-left: 2px solid var(--pink); border-radius: 4px 10px 10px 4px; }
.note p { margin: 0; }
.note strong:first-child { font: 600 12px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--pink); margin-right: 4px; }

/* pictures: drawings become white lines on anthracite (like the white logo); photos and screenshots get a quiet frame */
.content img { display: block; max-width: 100%; height: auto; }
img.line { filter: invert(1) grayscale(1); mix-blend-mode: screen; opacity: .92; }
img.photo, img.shot { border-radius: 12px; border: 1px solid var(--line); }
img.shot { width: 100%; max-width: 280px; margin: 14px 0; }
.content figure { margin: 24px 0; }
.content figure img.line { max-height: 460px; width: auto; margin: 0 auto; }
.content figure img.photo { width: 100%; max-height: 520px; object-fit: cover; }
.split { margin: 28px 0; }
.split figure { max-width: 300px; margin: 0 auto 12px; }
.split-text > :first-child { margin-top: 0; }
@media (min-width: 720px) {
  .split { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 32px; align-items: start; }
  .split figure { max-width: none; margin: 0; }
}

/* compatible pumps */
.table-wrap { margin: 14px 0 26px; overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; }
table.compat { width: 100%; border-collapse: collapse; font-size: 14px; }
.compat th, .compat td { padding: 9px 14px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.compat th { font: 400 12px/1.2 var(--mono); color: var(--muted); }
.compat td:nth-child(2) { font-family: var(--mono); font-size: 13px; color: var(--fg); }
.compat tbody tr:last-child td { border-bottom: 0; }
.compat tbody tr:hover td { background: rgba(255,255,255,.03); }
.compat th:nth-child(n+3), .compat td.ok { text-align: center; }
.compat td.ok { font-family: var(--mono); color: var(--pink); }

/* LED signals */
.content ul li:has(> .led-row) { padding-left: 0; }
.content ul li:has(> .led-row)::before { content: none; }
.led-row { display: flex; align-items: center; gap: 14px; }
.leds { display: inline-flex; gap: 4px; flex: none; }
.led { width: 10px; height: 10px; border-radius: 50%; }
.led-green { background: #22c55e; box-shadow: 0 0 8px rgba(34,197,94,.55); }
.led-pink { background: #e6007e; box-shadow: 0 0 8px rgba(230,0,126,.55); }
.led-blue { background: #3b82f6; box-shadow: 0 0 8px rgba(59,130,246,.55); }
.led-orange { background: #f59e0b; box-shadow: 0 0 8px rgba(245,158,11,.55); }
.led-red { background: #ef4444; box-shadow: 0 0 8px rgba(239,68,68,.55); }
.led-white { background: #ffffff; box-shadow: 0 0 8px rgba(255,255,255,.4); }
.led.dim { opacity: .3; box-shadow: none; }

/* table of contents: collapsible on phones, sticky sidebar on desktop */
.toc nav p { margin: 22px 0 6px; font: 400 12px/1.2 var(--mono); color: var(--pink); text-transform: lowercase; }
.toc nav p::before { content: "# "; color: var(--muted); }
.toc nav p:first-child { margin-top: 0; }
.toc nav ul { list-style: none; margin: 0; padding: 0; }
.toc nav a { display: block; padding: 4px 0 4px 12px; border-left: 1px solid var(--line); font-size: 14px; line-height: 1.4; color: var(--muted); text-decoration: none; }
.toc nav a:hover, .toc nav a:focus-visible { color: var(--fg); border-left-color: var(--pink); }

.toc-mobile { margin: 20px 0 0; border: 1px solid var(--line); border-radius: 10px; }
.toc-mobile summary { cursor: pointer; padding: 12px 16px; font: 400 14px/1.4 var(--mono); list-style: none; display: flex; justify-content: space-between; }
.toc-mobile summary::-webkit-details-marker { display: none; }
.toc-mobile summary::before { content: "~ $ "; color: var(--muted); white-space: pre; }
.toc-mobile summary::after { content: "+"; margin-left: auto; color: var(--pink); }
.toc-mobile[open] summary::after { content: "–"; }
.toc-mobile nav { padding: 2px 16px 16px; }
.toc-side { display: none; }
@media (min-width: 960px) {
  .toc-mobile { display: none; }
  .toc-side { display: block; position: sticky; top: 56px; align-self: start; max-height: calc(100vh - 56px); overflow: auto; padding: 52px 8px 40px 0; scrollbar-width: thin; }
}

/* overview */
.cards { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: 14px; }
.content .cards li { margin: 0; padding: 0; }
.cards a { display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 16px 16px 18px; border: 1px solid var(--line); border-radius: 14px; text-decoration: none; transition: border-color .15s, background-color .15s; }
.cards a:hover, .cards a:focus-visible { border-color: rgba(230,0,126,.7); background: rgba(255,255,255,.02); color: var(--fg); }
.cards img { width: 100%; aspect-ratio: 1; object-fit: contain; margin-bottom: 12px; }
.cards .name { color: var(--fg); font-weight: 600; font-size: 16px; }
.cards .more { font: 400 12px/1.4 var(--mono); color: var(--muted); }
.cards .more::before { content: "man "; }
.cards a:hover .more, .cards a:focus-visible .more { color: var(--pink); }

.manual footer { border-top: 1px solid var(--line); }
