/* QME Communications - single stylesheet, no external fonts, no CDN, no trackers. */
:root {
  --ink: #12181f;
  --muted: #55606d;
  --line: #d8dee6;
  --accent: #0b5a8a;
  --accent-dark: #083f61;
  --surface: #f5f7fa;
  --code-bg: #101922;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

a { color: var(--accent); }
a:hover { color: var(--accent-dark); }

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 0;
  top: 0;
  padding: .5rem 1rem;
  background: #fff;
  z-index: 10;
}

header.masthead {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.wrap {
  max-width: 62rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: 1.1rem 0 .7rem;
}
.brand img { width: 34px; height: 34px; }
.brand .name {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: .01em;
  color: var(--ink);
  text-decoration: none;
}
.brand .sub {
  display: block;
  font-size: .78rem;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: .02em;
  text-transform: uppercase;
}

nav.primary ul {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
  margin: 0;
  padding: 0 0 .85rem;
  list-style: none;
  font-size: .95rem;
}
nav.primary a {
  text-decoration: none;
  color: var(--muted);
  padding-bottom: .2rem;
  border-bottom: 2px solid transparent;
}
nav.primary a:hover { color: var(--accent); }
nav.primary a[aria-current="page"] {
  color: var(--ink);
  font-weight: 600;
  border-bottom-color: var(--accent);
}

main { padding: 2.2rem 0 3rem; }

h1 {
  font-size: 1.95rem;
  line-height: 1.22;
  margin: 0 0 .6rem;
}
h2 {
  font-size: 1.28rem;
  margin: 2.1rem 0 .6rem;
  padding-bottom: .3rem;
  border-bottom: 1px solid var(--line);
}
h3 { font-size: 1.05rem; margin: 1.5rem 0 .4rem; }

.lede {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 48rem;
}

.meta {
  font-size: .85rem;
  color: var(--muted);
  margin: 0 0 1.4rem;
}

ul.plain { padding-left: 1.2rem; }
ul.plain li { margin: .35rem 0; }

.cards {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  margin: 1.4rem 0;
  padding: 0;
  list-style: none;
}
.cards li {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1rem 1.1rem;
  background: #fff;
}
.cards h3 { margin-top: 0; }
.cards p { margin: .3rem 0 0; font-size: .93rem; color: var(--muted); }

pre {
  margin: 1rem 0;
  padding: 1rem 1.1rem;
  overflow-x: auto;
  background: var(--code-bg);
  color: #e6edf3;
  border-radius: 6px;
  font-size: .86rem;
  line-height: 1.5;
}
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
p code, li code, td code {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: .05rem .3rem;
  font-size: .89em;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.1rem 0;
  font-size: .93rem;
}
caption {
  text-align: left;
  color: var(--muted);
  font-size: .87rem;
  padding-bottom: .4rem;
}
th, td {
  text-align: left;
  padding: .5rem .6rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
th { background: var(--surface); }

.note {
  border-left: 3px solid var(--accent);
  background: var(--surface);
  padding: .8rem 1rem;
  margin: 1.2rem 0;
  font-size: .94rem;
}

dl.kv { margin: 1rem 0; }
dl.kv dt { font-weight: 600; margin-top: .7rem; }
dl.kv dd { margin: 0 0 0 0; color: var(--muted); }

footer.sitefoot {
  border-top: 1px solid var(--line);
  background: var(--surface);
  padding: 1.6rem 0 2.2rem;
  font-size: .88rem;
  color: var(--muted);
}
footer.sitefoot ul {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  list-style: none;
  margin: 0 0 .8rem;
  padding: 0;
}
footer.sitefoot address { font-style: normal; margin: .5rem 0; }
