/* The web copy of HelioMaker Help (docs.heliomaker.com/help/), loaded after style.css: the eclipse guides' frame
   (ticket 053-2). tools/help_publish/publish_guides.py wraps each page in the column, adds the top bar and the
   previous and next links, and frames the screenshots, all at publish time. The CHM never loads this file, so
   style.css keeps the program's look there. Mirrors Help/solar-eclipse/guide.css. */

:root{
  --bg:#f6f8fb; --panel:#ffffff; --panel2:#eef2f7; --ink:#1b2430; --muted:#5a6673;
  --line:#dde3ea; --accent:#0b6fb8; --accent-ink:#075186;
  --danger:#c02626; --good:#2e7d32; --icon-bg:transparent;
  color-scheme:light;
}
@media (prefers-color-scheme: dark){
  :root{
    --bg:#0f1216; --panel:#171c22; --panel2:#1d242c; --ink:#e6ebf0; --muted:#9aa7b4;
    --line:#2a333d; --accent:#7cc4ff; --accent-ink:#a9d7ff;
    --danger:#ff8a8a; --good:#7ed492; --icon-bg:#f0f0f0;
    color-scheme:dark;
  }
}

/* ---- Base */
*{box-sizing:border-box}
body{margin:0;background:var(--bg);color:var(--ink);font:16px/1.65 -apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif}
.wrap{max-width:820px;margin:0 auto;padding:22px 22px 72px}
a{color:var(--accent);text-decoration:none}
a:hover{text-decoration:underline}
nav.top{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:4px 16px;font-size:13.5px;color:var(--muted);margin:0 0 22px;padding-bottom:12px;border-bottom:1px solid var(--line)}
nav.top a{color:var(--muted)}
h1{font-size:27px;line-height:1.2;margin:0 0 8px;font-weight:650;color:var(--ink)}
h2{font-size:14px;line-height:1.4;text-transform:uppercase;letter-spacing:.11em;color:var(--accent-ink);margin:34px 0 10px;padding-bottom:7px;border-bottom:1px solid var(--line)}
h3{font-size:17px;margin:22px 0 6px;color:var(--ink)}
h4{font-size:15px;margin:18px 0 6px;color:var(--ink)}
p{margin:0 0 12px}
ul,ol{margin:0 0 14px;padding-left:22px}
li{margin:0 0 6px}
hr{border:0;border-top:1px solid var(--line);margin:28px 0}
code{background:var(--panel2);border:1px solid var(--line);border-radius:5px;padding:1px 5px;font:13.5px/1.4 SFMono-Regular,Consolas,monospace}
nav.foot{display:flex;justify-content:space-between;gap:16px;margin-top:40px;padding-top:16px;border-top:1px solid var(--line);font-size:14px}
nav.foot a{max-width:46%}
nav.foot > :last-child:not(:first-child){text-align:right}

/* ---- Figures: a screenshot that stands alone in its block, with its caption below it, or above it where the page
   has it there. Inside a frame a screenshot keeps its actual size up to the column's width (img.fig-75 included). */
figure.shot{margin:18px 0;border:1px solid var(--line);border-radius:10px;background:var(--panel2);overflow:hidden}
figure.shot img{display:block;max-width:100%;height:auto;margin:0 auto;padding:0;border:0;border-radius:0}
figure.shot figcaption{border-top:1px solid var(--line);padding:7px 12px;font-size:12.5px;color:var(--muted)}
figure.shot figcaption:first-child{border-top:0;border-bottom:1px solid var(--line)}
/* Screenshots side by side: each in a frame of its own, one per line on a phone; the caption below the row */
.image-row{display:flex;flex-wrap:wrap;gap:12px;margin:18px 0 0;font-size:16px;overflow:visible}
.image-cell{flex:1 1 300px;min-width:0;border:1px solid var(--line);border-radius:10px;background:var(--panel2);overflow:hidden}
.image-cell img{display:block;width:100%;height:auto;margin:0;padding:0;border:0;border-radius:0}
.figure-caption{font-size:12.5px;color:var(--muted);margin:6px 0 18px}
/* A picture beside its text, and a boxed section, inside the column */
.w-800{width:auto}
.framed{margin:18px 0;border-radius:10px}

/* ---- Narrower screens and print */
@media (max-width:619px){
  .wrap{padding:20px 16px 48px}
  h1{font-size:25px}
}
@media print{
  body{background:#fff;color:#000;font-size:12pt}
  a{color:#000;text-decoration:underline}
  nav.top,nav.foot{display:none}
  figure.shot,.image-cell{break-inside:avoid}
}
