/* Inert Value — armour-plate service manual
   One stylesheet for the whole site. No web fonts, no external requests. */

:root {
  --bg: #f4f3ef;
  --text: #23282b;
  --accent: #5c6b3c;
  --accent-2: #a8632a;
  --card: #ffffff;
  --rule: #b9b4a6;
  --rule-dark: #23282b;
  --display: "Arial Narrow", "Roboto Condensed", sans-serif;
  --body: -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.65;
}

.wrap { max-width: 720px; margin: 0 auto; padding: 0 20px; }

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

a:focus-visible,
button:focus-visible { outline: 3px solid var(--accent-2); outline-offset: 2px; }

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--card);
  border: 2px solid var(--rule-dark);
  padding: 8px 12px;
  z-index: 50;
}
.skip:focus { left: 8px; top: 8px; }

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

.site {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--bg);
  border-bottom: 2px solid var(--rule-dark);
}

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  min-height: 54px;
  gap: 8px;
}

.brand {
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 20px;
  text-decoration: none;
  color: var(--text);
}
.brand span { color: var(--accent); }

.site nav ul {
  list-style: none;
  display: flex;
  gap: 18px;
  margin: 0;
  padding: 0;
}

.site nav a {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}
.site nav a:hover { text-decoration: underline; }

.menu-btn {
  display: none;
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--card);
  color: var(--text);
  border: 2px solid var(--rule-dark);
  border-radius: 0;
  padding: 6px 10px;
  cursor: pointer;
}

/* ---- type ---- */

main { padding: 28px 0 56px; }

h1 {
  font-family: var(--display);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.03em;
  font-size: 30px;
  line-height: 1.2;
  margin: 0 0 14px;
}

h2 {
  font-family: var(--display);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 21px;
  line-height: 1.25;
  margin: 0;
  display: inline;
}

h3 {
  font-family: var(--display);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 17px;
  margin: 26px 0 8px;
}

p { margin: 0 0 15px; }

.lead { font-size: 17px; }

.kicker {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  margin: 0 0 8px;
}

/* ---- plate headers ---- */

.plate { margin: 38px 0 0; }

.plate-head {
  position: relative;
  background: var(--card);
  border-top: 3px solid var(--rule-dark);
  border-left: 2px solid var(--rule);
  border-right: 2px solid var(--rule);
  border-bottom: 2px solid var(--rule);
  padding: 12px 14px 10px;
  margin-bottom: 16px;
}
.plate-head::after {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 4px;
  height: 1px;
  background: var(--rule-dark);
}
.plate-head::before {
  content: "";
  position: absolute;
  inset: 8px 4px 4px;
  border: 1px dotted var(--rule);
  pointer-events: none;
}

.sec {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  border: 1px solid var(--rule-dark);
  padding: 2px 5px;
  margin-right: 10px;
  white-space: nowrap;
}

/* ---- boxes ---- */

.box {
  background: var(--card);
  border: 2px solid var(--rule);
  padding: 16px 18px;
  margin: 20px 0;
}

.box > :last-child { margin-bottom: 0; }

.box h3:first-child { margin-top: 0; }

.disclosure {
  background: var(--card);
  border: 2px solid var(--accent-2);
  padding: 16px 18px;
  margin: 22px 0;
}
.disclosure p:last-child { margin-bottom: 0; }

.aff-note {
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.5;
  border-left: 3px solid var(--accent-2);
  padding-left: 10px;
  margin: 8px 0 18px;
}

.moveon {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--card);
  border: 2px solid var(--rule);
  border-top: 3px solid var(--accent);
  padding: 16px 18px;
  margin: 26px 0;
}
.moveon .gauge { flex: 0 0 84px; }
.moveon > div > :last-child { margin-bottom: 0; }

/* ---- lists ---- */

ul.cross { list-style: none; padding-left: 0; margin: 0 0 16px; }
ul.cross li {
  position: relative;
  padding-left: 24px;
  margin: 0 0 9px;
}
ul.cross li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 13px;
  height: 13px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 13 13'><circle cx='6.5' cy='6.5' r='4' fill='none' stroke='%235c6b3c' stroke-width='1'/><path d='M6.5 0v3.2M6.5 9.8v3.2M0 6.5h3.2M9.8 6.5H13' stroke='%235c6b3c' stroke-width='1'/></svg>") no-repeat center / 13px 13px;
}

ol.steps { padding-left: 22px; }
ol.steps li { margin-bottom: 10px; }

ul.check {
  list-style: none;
  padding-left: 0;
  margin: 0 0 18px;
}
ul.check li {
  position: relative;
  padding-left: 28px;
  margin: 0 0 11px;
}
ul.check li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.3em;
  width: 14px;
  height: 14px;
  border: 1px solid var(--rule-dark);
  background: #fff;
}

.checklist {
  background: var(--card);
  border: 2px solid var(--rule);
  border-top: 3px solid var(--rule-dark);
  padding: 18px 20px;
  margin: 22px 0;
}
.checklist h3 { margin-top: 0; }

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

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  margin: 0 0 20px;
  font-size: 15px;
}
th, td {
  border: 1px solid var(--rule);
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
}
th {
  background: #eceae3;
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 700;
}
caption {
  caption-side: top;
  text-align: left;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding-bottom: 6px;
}

/* ---- glossary strip ---- */

.glossary { margin: 0 0 18px; }
.glossary dt {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  border-top: 1px solid var(--rule);
  padding-top: 8px;
  margin-top: 8px;
}
.glossary dd { margin: 4px 0 0; }

/* ---- step furniture ---- */

.indicator {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  border: 1px solid var(--rule-dark);
  padding: 3px 7px;
  display: inline-block;
  margin-bottom: 14px;
}

.toc {
  background: var(--card);
  border: 2px solid var(--rule);
  padding: 14px 18px;
  margin: 20px 0 26px;
}
.toc h2 {
  display: block;
  font-size: 15px;
  margin-bottom: 8px;
}
.toc ol { margin: 0; padding-left: 20px; }

.pager {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  border-top: 3px solid var(--rule-dark);
  padding-top: 14px;
  margin-top: 36px;
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 700;
}

.printbtn {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  font-size: 15px;
  background: var(--card);
  color: var(--text);
  border: 2px solid var(--rule-dark);
  border-radius: 0;
  padding: 9px 16px;
  cursor: pointer;
}

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

.foot {
  border-top: 3px solid var(--rule-dark);
  background: var(--card);
  padding: 24px 0 36px;
  font-size: 14.5px;
}
.foot .name {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  font-size: 17px;
  margin-bottom: 4px;
}
.foot address { font-style: normal; margin-bottom: 12px; }
.foot .links { margin-bottom: 12px; }
.foot .notice { margin-bottom: 12px; }
.foot .reviewed { font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.04em; }

/* ---- small screens ---- */

@media (max-width: 640px) {
  .menu-btn { display: inline-block; }
  .site nav { display: none; width: 100%; }
  .site nav.open { display: block; }
  .site nav ul { flex-direction: column; gap: 0; padding: 6px 0 10px; }
  .site nav li { border-top: 1px solid var(--rule); padding: 8px 0; }
  h1 { font-size: 25px; }
  .moveon { flex-direction: column; }
}

/* ---- print ---- */

@media print {
  body { background: #fff; color: #000; font-size: 12pt; }
  .site, .pager, .printbtn, .skip, .noprint { display: none !important; }
  main { padding: 0; }
  .wrap { max-width: none; padding: 0; }
  a { color: #000; text-decoration: none; }
  .checklist, .box, .plate-head, table, th, .disclosure {
    background: #fff;
    border-color: #000;
    break-inside: avoid;
  }
  ul.check li::before { border-color: #000; }
  .foot { border-top: 1px solid #000; background: #fff; }
}
