/* NoiseWorks user manuals: web version (index.html written by manual_builder.py --web).
   Loaded after base.css and the product's style.css; turns the A4 print layout into one
   readable page. Only screen-specific overrides live here. */

html {
  font-size: 16px;
  background: #fff;
}

body {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 16px 64px 16px;
}

img { max-width: 100%; height: auto; }

/* Bar above the cover with the PDF download. */
.web-bar {
  display: flex;
  justify-content: flex-end;
  padding: 12px 0;
}

.web-bar a {
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 6px;
  background: var(--dark);
  color: #fff;
}

/* Cover: a header instead of a full A4 page. */
.cover { height: auto; border-radius: 8px; overflow: hidden; }
.cover-panel { height: 160px; border-radius: 8px 8px 0 0; }
.cover-logo { width: 200px; }
.cover-text { padding: 32px 0 0 0; }
.cover-title { font-size: 44px; }
.cover-sub { font-size: 18px; margin-bottom: 24px; }
.cover-shot { width: 100%; }
.cover-meta {
  position: static;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-top: 24px;
  font-size: 13px;
}

/* Contents: links, no print page numbers. */
.toc-page { margin-top: 48px; }
ol.toc li a::after { content: none; }
ol.toc li a:hover { text-decoration: underline; }
ol.toc li.toc-h2 { font-size: 16px; }
ol.toc li.toc-h3 { font-size: 15px; }

/* Chapters follow each other instead of starting new pages. */
.content h2 { margin-top: 64px; font-size: 30px; scroll-margin-top: 16px; }
.content h3 { scroll-margin-top: 16px; }
p, li { font-size: 16px; }
table { display: block; overflow-x: auto; }
figcaption, .small { font-size: 13px; }

@media (max-width: 600px) {
  .cover-title { font-size: 34px; }
  .modes { flex-direction: column; }
}
