/*
  KARNUX lite version (src/layouts/LiteLayout.astro).

  The lite pages are laid out with HTML tables and attributes, so they read
  the same without this file. It only refines type and spacing, and stacks
  the two columns on small screens. It is linked with media="all", which
  Netscape 4 ignores, so that browser keeps the plain HTML rendering.
*/

body {
  margin: 0;
  padding: 8px 12px 16px;
  background: #ffffff;
  color: #000000;
  font-family: Verdana, Tahoma, Arial, Helvetica, sans-serif;
  font-size: 14px;
  line-height: 1.5;
}

a:link { color: #0000cc; }
a:visited { color: #551a8b; }
a:hover { color: #cc0000; }

/* Masthead: the full site's logo, then the language and full-site links. */
.masthead { border-bottom: 2px solid #1d4edb; margin-bottom: 10px; }
.brand img { display: block; }
.toplinks { color: #444444; font-size: 12px; }

/* Left column: navigation boxes, in the manner of LWN.net. */
.side { background: #eeeeee; font-size: 13px; }
.side-head { background: #d5dbe6; font-weight: bold; }
.side ul { margin: 0; padding: 0; list-style: none; }
.side li { margin: 2px 0; }
.side .current { font-weight: bold; }

/* Content column: plain documentation pages, in the manner of TLDP. */
main { display: block; max-width: 50em; }
h1 { margin: 0 0 10px; font-size: 22px; line-height: 1.3; }
h2 { clear: both; margin: 26px 0 8px; padding: 3px 6px; background: #e4e4e4; font-size: 16px; line-height: 1.35; }
h3 { clear: both; margin: 18px 0 4px; font-size: 14px; }
p, ul, ol, dl { margin-top: 6px; margin-bottom: 8px; }
li { margin: 2px 0; }
dt { font-weight: bold; margin-top: 8px; }
dd { margin-left: 1.5em; }

.lead { font-size: 15px; }
.slogan { color: #1d4edb; font-size: 17px; font-weight: bold; }
.note { color: #444444; font-size: 13px; }
.actions { margin: 10px 0; }

table.data { border-collapse: collapse; margin: 6px 0 10px; }
table.data th, table.data td { padding: 4px 6px; border: 1px solid #999999; text-align: left; vertical-align: top; }
table.data thead th { background: #e4e4e4; }
table.data tbody th { background: #f4f4f4; }
table.data .num { text-align: center; }
table.data td.num { white-space: nowrap; }
table.data p { margin: 0 0 4px; }

/* Diagrams (LiteDeploymentDiagram, LiteDataFlowDiagram): bordered boxes and
   arrows (LiteArrow, small GIFs), laid out with HTML tables. */
table.diagram { margin: 8px 0 12px; }
table.diagram td { vertical-align: middle; }
table.diagram td.flow { padding: 4px 6px; font-size: 13px; line-height: 1.3; }
table.box { border-collapse: collapse; }
table.box td { border: 1px solid #555555; font-size: 13px; line-height: 1.35; }
table.box--core td { border-color: #1d4edb; }
.diagram-key { margin-top: 0; }
.flow img, .diagram-key img { vertical-align: middle; }
table.box--compact td { font-size: 12px; line-height: 1.25; }
table.box--compact td b { font-weight: normal; }
table.diagram--edition { margin-top: 4px; }

/* Steps (LiteSteps): numbered boxes joined by a blue arrow; the box carries the number. */
ol.steps { margin: 8px 0 10px; padding: 0; list-style: none; }
ol.steps li { margin: 0; }
ol.steps .flow { margin: 2px 0; }

/* Screenshots (LiteShot): a one-cell table, floated by its align attribute. */
table.shot { margin: 4px 0 10px; }
table.shot[align="right"] { margin-left: 14px; }
table.shot[align="left"] { margin-right: 14px; }
table.shot img { display: block; border: 1px solid #999999; }
table.shot .note { font-size: 12px; }
.gallery td { padding-right: 12px; vertical-align: top; }

.foot { color: #444444; font-size: 12px; }
.mono { font-family: "Courier New", Courier, monospace; font-size: 12px; word-break: break-all; }

/* Small screens: the navigation stacks above the content, its links inline. */
@media (max-width: 640px) {
  body { padding: 6px 8px 14px; }
  /* The browser adds a <tbody> to the frame table; it must stack too, or the
     column grows to its widest table. */
  table.frame, table.frame > tbody, tr.frame-row, td.side, td.main { display: block; width: auto; }
  td.gap { display: none; }
  td.side { margin-bottom: 12px; }
  .side li { display: inline; margin-right: 10px; }
  .masthead td { display: block; text-align: left; }
  table.data { width: 100%; }
  /* A table too wide for the screen scrolls on its own, not the page. */
  .wide { overflow-x: auto; }
  .wide table.data { width: auto; }
  table.shot { float: none; margin-left: 0; margin-right: 0; }
  .gallery, .gallery tr, .gallery td { display: block; }
}
