/* Low Premise — shared stylesheet
   Visual identity: hinge-torque sheet. Bench paper, torque ink, one torque red.
   No web fonts, no images, no gradients, no shadows, no rounded corners. */

:root {
  --bg: #f5f4f0;
  --text: #232221;
  --accent: #a83a32;
  --accent-2: #7d7972;
  --card: #fbfaf7;
  --display: "Arial Narrow", "Roboto Condensed", "Helvetica Neue", sans-serif;
  --body: -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: "Courier New", "SF Mono", Menlo, Consolas, monospace;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-wrap: break-word;
}

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

a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

a:hover {
  text-decoration-thickness: 2px;
}

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

h1,
h2,
h3 {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  line-height: 1.25;
  font-weight: 700;
}

h1 {
  font-size: 1.75rem;
  margin: 0.5rem 0 1rem;
}

h2 {
  font-size: 1.25rem;
  margin: 2rem 0 0.75rem;
}

h3 {
  font-size: 1.05rem;
  margin: 1.5rem 0 0.5rem;
}

p,
ul,
ol,
dl,
table {
  margin: 0 0 1rem;
}

code,
.mono {
  font-family: var(--mono);
}

/* Skip link */
.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--text);
  color: var(--card);
  padding: 0.5rem 1rem;
  z-index: 100;
}

.skip:focus {
  left: 0.5rem;
  top: 0.5rem;
}

/* Header */
.site-head {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--text);
}

.head-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.6rem;
  padding-bottom: 0.6rem;
}

.brand {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  font-size: 1.05rem;
}

.brand span {
  color: var(--accent);
}

.menu-toggle {
  display: none;
  font-family: var(--mono);
  font-size: 0.9rem;
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--text);
  padding: 0.35rem 0.75rem;
  cursor: pointer;
}

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

.site-nav a {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.9rem;
  color: var(--text);
  text-decoration: none;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  border-bottom-color: var(--accent);
}

@media (max-width: 560px) {
  .js .menu-toggle {
    display: inline-block;
  }
  .js .site-nav {
    display: none;
    width: 100%;
  }
  .js .site-nav.is-open {
    display: block;
  }
  .site-nav ul {
    flex-direction: column;
    gap: 0;
    padding-top: 0.5rem;
  }
  .site-nav li {
    border-top: 1px solid var(--text);
  }
  .site-nav a {
    display: block;
    padding: 0.6rem 0;
  }
}

/* Main */
main {
  padding: 1.5rem 0 3rem;
}

/* Hinge rows: every homepage section */
.hinge {
  position: relative;
  background: var(--card);
  border: 1px solid var(--text);
  border-top: 2px solid var(--text);
  padding: 0.75rem 1.25rem 1rem;
  margin: 0 0 1.5rem;
}

.hinge > h2:first-of-type,
.hinge > h1:first-of-type {
  margin-top: 0.5rem;
}

.hinge-edge {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--accent-2);
  padding-bottom: 0.35rem;
  margin-bottom: 0.25rem;
}

.hinge-edge .hno {
  color: var(--accent);
  font-weight: 700;
}

.hinge-edge .tq {
  color: var(--accent-2);
}

/* The single torque tick (used on exactly one section) */
.hinge.tick::before {
  content: "";
  position: absolute;
  left: -0.75rem;
  top: 1.25rem;
  width: 3px;
  height: 2.5rem;
  background: var(--accent);
}

/* Disclosure box */
.disclosure {
  border: 1px solid var(--text);
  border-left: 4px solid var(--accent);
  background: var(--bg);
  padding: 0.85rem 1rem;
  margin: 1rem 0 1.25rem;
  font-size: 1rem;
}

.disclosure p:last-child {
  margin-bottom: 0;
}

.disclosure strong {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

/* Affiliate link line */
.aff {
  border-top: 1px solid var(--accent-2);
  border-bottom: 1px solid var(--accent-2);
  padding: 0.6rem 0;
  margin: 1.25rem 0;
}

.aff a.out {
  font-weight: 700;
}

.aff .aff-note {
  display: block;
  font-size: 0.95rem;
  margin-top: 0.25rem;
}

/* Lists with the hinge glyph bullet */
ul.hinge-list {
  list-style: none;
  padding-left: 0;
}

ul.hinge-list > li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: 0.45rem;
}

ul.hinge-list > li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.4em;
  width: 14px;
  height: 14px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M2 3 A5 5 0 0 0 7 8' fill='none' stroke='%23a83a32' stroke-width='1'/%3E%3Cpath d='M12 3 A5 5 0 0 1 7 8' fill='none' stroke='%23a83a32' stroke-width='1'/%3E%3Ccircle cx='7' cy='8' r='1.5' fill='none' stroke='%23a83a32' stroke-width='1'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 14px 14px;
}

/* Step list on homepage */
ol.steps {
  padding-left: 0;
  list-style: none;
  counter-reset: step;
}

ol.steps > li {
  counter-increment: step;
  border-top: 1px solid var(--text);
  padding: 0.6rem 0 0.6rem 3rem;
  position: relative;
}

ol.steps > li:last-child {
  border-bottom: 1px solid var(--text);
}

ol.steps > li::before {
  content: "S-" counter(step);
  position: absolute;
  left: 0;
  top: 0.65rem;
  font-family: var(--mono);
  color: var(--accent);
  font-weight: 700;
}

/* Step pages */
.load-strip {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--text);
  border-top: 1px solid var(--text);
  border-bottom: 1px solid var(--text);
  padding: 0.3rem 0;
  letter-spacing: 0.05em;
}

.step-indicator {
  font-family: var(--mono);
  font-size: 0.9rem;
  margin: 0.75rem 0 0;
}

.step-indicator b {
  color: var(--accent);
}

.toc {
  background: var(--card);
  border: 1px solid var(--text);
  padding: 0.75rem 1rem;
  margin: 1rem 0 1.5rem;
}

.toc h2 {
  font-size: 0.95rem;
  margin: 0 0 0.5rem;
}

.toc ol {
  margin: 0;
  padding-left: 1.5rem;
}

.step-pager {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  border-top: 2px solid var(--text);
  padding-top: 0.75rem;
  margin-top: 2rem;
  font-family: var(--mono);
  font-size: 0.95rem;
}

/* Body units */
.callout {
  border: 1px solid var(--text);
  background: var(--card);
  padding: 0.75rem 1rem;
  margin: 1.25rem 0;
}

.callout .label,
.summary .label,
.example .label,
.glossary .label {
  display: block;
  font-family: var(--mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.35rem;
  letter-spacing: 0.05em;
}

.callout p:last-child,
.summary ul:last-child,
.example p:last-child {
  margin-bottom: 0;
}

.example {
  border-top: 2px solid var(--text);
  border-bottom: 1px solid var(--text);
  padding: 0.75rem 0;
  margin: 1.5rem 0;
}

.summary {
  border: 1px solid var(--text);
  border-top: 2px solid var(--accent);
  background: var(--card);
  padding: 0.75rem 1rem;
  margin: 1.5rem 0;
}

.glossary {
  border-top: 1px solid var(--text);
  border-bottom: 1px solid var(--text);
  padding: 0.75rem 0;
  margin: 1.25rem 0;
}

.glossary dl {
  margin: 0;
}

.glossary dt {
  font-family: var(--mono);
  font-weight: 700;
}

.glossary dd {
  margin: 0 0 0.6rem 1.25rem;
}

ol.procedure {
  padding-left: 1.75rem;
}

ol.procedure > li {
  margin-bottom: 0.5rem;
  padding-left: 0.25rem;
}

ol.procedure > li::marker {
  font-family: var(--mono);
  color: var(--accent);
  font-weight: 700;
}

/* The single YIELD box */
.yield {
  border: 2px solid var(--accent);
  background: var(--card);
  padding: 0.75rem 1rem;
  margin: 1.5rem 0;
}

.yield .yield-head {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.4rem;
}

.yield p:last-child {
  margin-bottom: 0;
}

/* Checklists: printed boxes, no stored state */
.checklist-block {
  background: var(--card);
  border: 1px solid var(--text);
  border-top: 2px solid var(--text);
  padding: 0.75rem 1rem 1rem;
  margin: 1.5rem 0;
}

.checklist-block h2,
.checklist-block h3 {
  margin-top: 0.5rem;
}

ol.checklist {
  list-style: none;
  padding-left: 0;
  counter-reset: item;
}

ol.checklist > li {
  counter-increment: item;
  position: relative;
  padding: 0.45rem 0 0.45rem 2.4rem;
  border-bottom: 1px solid var(--accent-2);
}

ol.checklist > li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6rem;
  width: 1.05rem;
  height: 1.05rem;
  border: 1px solid var(--text);
  background: var(--bg);
}

ol.checklist > li::after {
  content: counter(item);
  position: absolute;
  left: 1.4rem;
  top: 0.55rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--accent);
}

.print-btn {
  font-family: var(--mono);
  font-size: 0.9rem;
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--text);
  padding: 0.4rem 0.85rem;
  cursor: pointer;
}

.print-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

th,
td {
  text-align: left;
  vertical-align: top;
  border: 1px solid var(--text);
  padding: 0.4rem 0.55rem;
}

th {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--card);
}

.table-wrap {
  overflow-x: auto;
}

/* Legal pages */
.effective {
  font-family: var(--mono);
  font-size: 0.95rem;
  border-top: 1px solid var(--text);
  border-bottom: 1px solid var(--text);
  padding: 0.3rem 0;
}

dl.checked dt {
  font-weight: 700;
  margin-top: 0.75rem;
}

dl.checked dd {
  margin: 0.15rem 0 0 1.25rem;
}

address {
  font-style: normal;
}

.company-block {
  background: var(--card);
  border: 1px solid var(--text);
  padding: 0.75rem 1rem;
  margin: 1rem 0;
}

/* Footer */
.site-foot {
  border-top: 1px solid var(--text);
  background: var(--card);
  padding: 1.5rem 0 2rem;
  font-size: 0.92rem;
  line-height: 1.55;
}

.site-foot address {
  margin-bottom: 0.85rem;
}

.site-foot .foot-name {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
}

.site-foot p {
  margin: 0 0 0.6rem;
}

.site-foot .reviewed {
  font-family: var(--mono);
  font-size: 0.85rem;
}

/* Print: checklists print cleanly on white */
@media print {
  body {
    background: #fff;
    color: #000;
    font-size: 11pt;
  }
  .site-head,
  .skip,
  .print-btn,
  .step-pager,
  .menu-toggle,
  .toc,
  .aff {
    display: none !important;
  }
  .hinge,
  .checklist-block,
  .callout,
  .summary,
  .yield,
  .site-foot {
    background: #fff;
    border-color: #000;
  }
  a {
    color: #000;
  }
  .checklist-block {
    page-break-inside: avoid;
    break-inside: avoid;
  }
  ol.checklist > li::before {
    background: #fff;
    border-color: #000;
  }
  .wrap {
    max-width: none;
  }
}
