/* GNULTE website stylesheet
   GNULTE — GNU LAN Network Testing Environment
   Copyright (C) 2026 Neptune Productions.
   Licensed under the GNU GPL v3 or later.
*/

/* ------------------------------------------------------------ webfonts
   PT Sans / PT Serif, served from this site (fonts/), not a third party.
   Latin subset only. Both families are licensed under the SIL Open Font
   License 1.1 — see fonts/OFL.txt. */

@font-face {
  font-family: 'PT Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/pt-sans-latin-400.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'PT Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/pt-sans-latin-700.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'PT Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/pt-serif-latin-400.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'PT Serif';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/pt-serif-latin-700.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------------------------------------------------------------- base */

html { background: #e4eaf0; }

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 0 0 24px 0;
  background: #e4eaf0;
  color: #21292f;
  font: 13px/1.65 "PT Sans", "DejaVu Sans", Verdana, Geneva, sans-serif;
}

a { color: #17468c; text-decoration: underline; }
a:hover { color: #c04a1e; }
a:focus { outline: 1px dotted #17468c; }

p { margin: 0 0 11px 0; }
ul, ol { margin: 0 0 11px 0; padding-left: 22px; }
li { margin-bottom: 4px; }

/* Serif headings against a sans body give the two a distinct voice. */
h1, h2, h3, h4 { font-family: "PT Serif", "DejaVu Serif", Georgia, serif; }

h1 {
  margin: 0 0 6px 0;
  font-size: 27px;
  font-weight: 700;
  line-height: 1.2;
  color: #14293f;
}

h2 {
  margin: 28px 0 10px 0;
  padding-bottom: 6px;
  font-size: 19px;
  font-weight: 700;
  color: #1d3a5c;
  border-bottom: 2px solid #c6d2de;
}

h3 {
  margin: 18px 0 6px 0;
  font-size: 15px;
  font-weight: 700;
  color: #1d3a5c;
}

h4 { margin: 12px 0 4px 0; font-size: 13px; font-weight: 700; color: #33414d; }

code, kbd, samp, pre {
  font-family: "DejaVu Sans Mono", Consolas, "Liberation Mono", "Courier New", monospace;
}

code { font-size: 12px; background: #f0f3f6; padding: 0 2px; }

pre {
  margin: 0 0 12px 0;
  padding: 10px 12px;
  font-size: 12px;
  line-height: 1.5;
  background: #f4f6f8;
  border: 1px solid #d5dde5;
  border-left: 3px solid #3a6ea5;
  overflow-x: auto;
}

pre code { background: none; padding: 0; }

hr { margin: 16px 0; border: 0; border-top: 1px solid #d5dde5; }

/* ------------------------------------------------------------- layout
   Fills the browser window up to a comfortable maximum; the middle column
   grows while the sidebars hold their width. */

.wrap {
  max-width: 1280px;
  margin: 0 auto;
  background: #ffffff;
  border-left: 1px solid #b9c5d1;
  border-right: 1px solid #b9c5d1;
}

/* three-column body: fixed sidebars, fluid main */

.cols { display: flex; align-items: flex-start; }

.col-left  { flex: 0 0 210px; padding: 16px 12px 18px 16px; }
.col-main  { flex: 1 1 auto; min-width: 0; padding: 16px 22px 18px 22px; }
.col-right { flex: 0 0 236px; padding: 16px 16px 18px 8px; }

/* two-column body: fluid main + fixed sidebar */

.cols2 { display: flex; align-items: flex-start; }
.cols2 .col-main  { flex: 1 1 auto; min-width: 0; padding: 16px 26px 18px 22px; }
.cols2 .col-right { flex: 0 0 236px; padding: 16px 16px 18px 8px; }

/* ------------------------------------------------------------- header */

.head {
  background: #1d3a5c;
  background: linear-gradient(#2a4f78, #16304a);
  border-bottom: 1px solid #0c1c2c;
  padding: 14px 20px 12px 20px;
  overflow: hidden;
}

.brand {
  float: left;
  color: #ffffff;
  text-decoration: none;
}

.brand img { float: left; margin-right: 12px; border: 1px solid #0c1c2c; }

.brand b {
  display: block;
  font-family: "PT Sans", "DejaVu Sans", Verdana, sans-serif;
  font-size: 30px;
  letter-spacing: 1px;
  color: #ffffff;
  line-height: 1.05;
}

.brand .tag {
  display: block;
  margin-top: 2px;
  font-size: 14px;
  color: #c9dcf0;
}

.head-search {
  float: right;
  margin-top: 12px;
  font-size: 12px;
  color: #c9dcf0;
}

.head-search input[type="text"] {
  width: 140px;
  min-height: 26px;      /* keep the control at least 24px high (WCAG 2.5.8) */
  font-size: 12px;
  padding: 3px 4px;
  border: 1px solid #0c1c2c;
}

.head-search input[type="submit"] {
  min-height: 26px;      /* ditto: a comfortable, accessible target */
  font-size: 12px;
  padding: 3px 9px;
}

/* --------------------------------------------------------------- nav */

.nav {
  margin: 0;
  padding: 0;
  list-style: none;
  background: #3a6ea5;
  background: linear-gradient(#4a80b6, #2d5a8c);
  border-bottom: 1px solid #1d3a5c;
  font-size: 13px;
  font-weight: bold;
  text-align: center;
}

.nav li { display: inline; }

.nav a {
  display: inline-block;
  padding: 8px 18px;
  color: #ffffff;
  text-decoration: none;
  border-right: 1px solid #27517f;
  border-left: 1px solid #5b8fc4;
}

.nav a:hover { background: #27517f; color: #ffffff; }

.nav a.active {
  background: #1d3a5c;
  color: #ffffff;
  box-shadow: inset 0 2px 3px rgba(0, 0, 0, 0.35);
}

/* ---------------------------------------------------------- sidebars */

.box {
  margin: 0 0 14px 0;
  border: 1px solid #c6d2de;
  background: #fbfcfd;
}

.box h3 {
  margin: 0;
  padding: 5px 9px;
  font-family: "PT Sans", "DejaVu Sans", Verdana, sans-serif;
  font-size: 12px;
  color: #1d3a5c;
  background: #e6edf4;
  background: linear-gradient(#eef3f8, #dde6ef);
  border-bottom: 1px solid #c6d2de;
}

.box .b { padding: 9px; font-size: 12px; line-height: 1.6; }
.box .b p:last-child { margin-bottom: 0; }
.box ul { padding-left: 16px; margin-bottom: 0; }

.box dl { margin: 0; }
.box dt { font-weight: bold; color: #33414d; margin-top: 5px; }
.box dd { margin: 0 0 0 0; }

/* left navigation column */

.navlist { margin: 0; padding: 0; list-style: none; font-size: 12px; }
.navlist li { margin: 0; border-bottom: 1px solid #e2e8ee; }
.navlist li:last-child { border-bottom: 0; }

.navlist a {
  display: block;
  padding: 5px 9px;
  text-decoration: none;
  color: #17468c;
}

.navlist a:hover { background: #eef3f8; color: #c04a1e; }

.navlist a.active {
  background: #dde6ef;
  color: #14293f;
  font-weight: bold;
  border-left: 3px solid #3a6ea5;
  padding-left: 6px;
}

.navlist .grp {
  padding: 6px 9px 2px 9px;
  font-size: 10px;
  font-weight: bold;
  color: #5a6570;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* -------------------------------------------------------------- tables */

table.data {
  width: 100%;
  margin: 0 0 14px 0;
  border-collapse: collapse;
  font-size: 12px;
}

table.data th {
  padding: 5px 8px;
  text-align: left;
  color: #1d3a5c;
  background: #e6edf4;
  border: 1px solid #c6d2de;
}

table.data td {
  padding: 5px 8px;
  border: 1px solid #d5dde5;
  vertical-align: top;
}

table.data tr:nth-child(even) td { background: #f6f8fa; }

table.data td.c { text-align: center; }

/* ------------------------------------------------------------- notices */

.note, .warn {
  margin: 0 0 14px 0;
  padding: 9px 12px;
  font-size: 12px;
  border: 1px solid #c6d2de;
  border-left: 4px solid #3a6ea5;
  background: #eef3f8;
}

.warn {
  background: #fdf6e3;
  border-color: #d9c58a;
  border-left-color: #d9a900;
}

.note b, .warn b { color: #14293f; }

/* ------------------------------------------------------------ elements */

.crumbs {
  margin: 0 0 12px 0;
  padding: 4px 0;
  font-size: 12px;
  color: #5a6570;
  border-bottom: 1px solid #e2e8ee;
}

.meta {
  margin: -2px 0 14px 0;
  font-size: 12px;
  color: #5a6570;
}

.lede { font-size: 14px; color: #33414d; }

/* the spelled-out project name, shown under the wordmark */
.fullname {
  margin: -2px 0 12px 0;
  font-size: 15px;
  letter-spacing: 0.3px;
  color: #1d3a5c;
}

.status  { color: #1d7a1d; font-weight: bold; }
.status-dev { color: #8f5600; font-weight: bold; }

.badge {
  display: inline-block;
  padding: 1px 6px;
  font-size: 11px;
  font-weight: bold;
  color: #ffffff;
  background: #3a6ea5;
  border: 1px solid #1d3a5c;
}

.badge.root { background: #a03a2a; border-color: #6e2519; }
.badge.opt  { background: #5a6570; border-color: #414b55; }
.badge.no   { background: #1d7a1d; border-color: #145614; }

dl.defs dt { font-weight: bold; color: #1d3a5c; margin-top: 9px; }
dl.defs dd { margin: 1px 0 0 0; }

.btn {
  display: inline-block;
  padding: 7px 16px;
  font-size: 13px;
  font-weight: bold;
  color: #ffffff;
  background: #3a6ea5;
  background: linear-gradient(#4a80b6, #2d5a8c);
  border: 1px solid #1d3a5c;
  text-decoration: none;
}

.btn:hover { background: #27517f; color: #ffffff; }
.btn.alt { background: linear-gradient(#6c7a86, #4c5860); border-color: #333c42; }
.btn.alt:hover { background: #414b55; }

.cta { margin: 4px 0 16px 0; }
.cta .btn { margin: 0 8px 6px 0; }

/* ordered "install in N steps" list */
ol.steps { padding-left: 24px; }
ol.steps > li { margin-bottom: 10px; }
ol.steps > li > b { color: #1d3a5c; }

/* -------------------------------------------------------------- footer */

.foot {
  clear: both;
  padding: 14px 20px;
  font-size: 12px;
  color: #5a6570;
  background: #eef2f6;
  border-top: 1px solid #c6d2de;
}

.foot p { margin: 0 0 6px 0; }
.foot .foot-nav { border-bottom: 1px solid #d5dde5; padding-bottom: 7px; margin-bottom: 7px; }
.foot .foot-nav a { margin: 0 5px; }

/* -------------------------------------------------------- touch targets
   Standalone links (sidebar lists, footer nav, table links, breadcrumbs)
   get a ≥24px hit area at every width, per WCAG 2.5.8. Links that sit
   inside a sentence are left as plain inline text. */

.box .b ul li a,
.box .b p a,
.col-main table.data a,
.foot .foot-nav a,
.crumbs a { display: inline-block; padding: 4px 0; }

.navlist a { min-height: 24px; }

/* ------------------------------------------------------------ responsive
   The layout fills the window down to tablet width; below that the columns
   stack in document order rather than overflowing sideways. */

@media (max-width: 820px) {
  html { background: #ffffff; }
  .wrap { max-width: none; border: 0; }
  .cols, .cols2 { display: block; }
  .col-left, .col-main, .col-right,
  .cols2 .col-main, .cols2 .col-right {
    width: auto;
    padding: 0 14px 14px 14px;
  }
  .col-left  { padding-top: 12px; }
  .col-main, .cols2 .col-main { padding-top: 16px; }
  .head { padding: 12px 14px; }
  .brand, .head-search { float: none; display: block; text-align: left; }
  .head-search { margin-top: 10px; }
  .nav a { padding: 8px 11px; }

  /* comfortable touch targets once the layout has stacked */
  .foot p { line-height: 2; }
  .foot-nav a { display: inline-block; padding: 6px 2px; }
  .box .b a { display: inline-block; padding: 6px 0; }
  .navlist a { padding: 7px 9px; }
  .col-main table.data a { display: inline-block; padding: 6px 0; }
}
