/* ============================================================================
   New Limits - plain document stylesheet.

   For reference documents rather than pitch decks: knowledge bases, answer
   libraries, implementation specs. Deliberately undecorated. No colour blocks,
   no hero type, no accent panels. It should read like a professional internal
   document that happens to be well set.

   Pairs with build.js (same `.page` section structure as proposal.css).
   ============================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@400;500;600;700&display=swap');

:root {
  --ink: #1A1A1A;
  --ink-soft: #3D3D3D;
  --ink-faint: #767676;
  --rule: #D8D8D8;
  --rule-soft: #ECECEC;
  --shade: #F7F7F7;
  --accent: #FF6600;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Archivo', system-ui, sans-serif;
  background: #EFEFEF;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
  padding: 32px 16px;
}

.page {
  width: 880px;
  min-height: 1140px;
  background: #FFFFFF;
  margin: 0 auto 28px;
  padding: 62px 78px 54px;
  box-shadow: 0 2px 10px rgba(0,0,0,.07);
  position: relative;
  display: flex;
  flex-direction: column;
}

/* running head / foot */
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 34px;
  font-size: 10px;
  letter-spacing: 0.6px;
  color: var(--ink-faint);
  text-transform: uppercase;
}
.page-header .client { font-weight: 700; color: var(--ink); letter-spacing: 1.2px; }
.page-footer {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--rule-soft);
  display: flex;
  justify-content: space-between;
  font-size: 9.5px;
  color: var(--ink-faint);
  letter-spacing: 0.3px;
}

/* cover */
.cover { justify-content: center; }
.cover .kicker {
  font-size: 11px; font-weight: 700; letter-spacing: 2.5px;
  text-transform: uppercase; color: var(--ink-faint); margin-bottom: 26px;
}
.cover h1 {
  font-size: 40px; font-weight: 700; line-height: 1.15;
  letter-spacing: -0.5px; margin-bottom: 14px;
}
.cover .sub { font-size: 15px; color: var(--ink-soft); margin-bottom: 34px; }
.cover .rule { width: 54px; height: 3px; background: var(--accent); margin-bottom: 34px; }
.cover dl { display: grid; grid-template-columns: 150px 1fr; gap: 7px 20px; font-size: 12.5px; }
.cover dt { color: var(--ink-faint); }
.cover dd { color: var(--ink); }

/* headings */
h2.doc-title {
  font-size: 21px; font-weight: 700; letter-spacing: -0.2px;
  margin-bottom: 6px; padding-bottom: 8px; border-bottom: 2px solid var(--ink);
}
h3.sec {
  font-size: 13.5px; font-weight: 700; margin: 22px 0 8px;
  letter-spacing: 0.2px;
}
h4.sub {
  font-size: 11.5px; font-weight: 700; margin: 15px 0 5px;
  color: var(--ink-soft); text-transform: uppercase; letter-spacing: 1px;
}
p { font-size: 12px; line-height: 1.6; color: var(--ink-soft); margin-bottom: 9px; }
p.intro { font-size: 12.5px; color: var(--ink-soft); margin-bottom: 18px; }
strong { color: var(--ink); font-weight: 600; }

/* definition-style fact rows */
.facts { width: 100%; border-collapse: collapse; font-size: 12px; margin: 8px 0 4px; }
.facts th {
  text-align: left; font-weight: 700; font-size: 9.5px; letter-spacing: 1px;
  text-transform: uppercase; color: var(--ink-faint);
  border-bottom: 1px solid var(--rule); padding: 6px 10px 6px 0;
}
.facts td {
  border-bottom: 1px solid var(--rule-soft); padding: 8px 10px 8px 0;
  vertical-align: top; color: var(--ink-soft); line-height: 1.5;
}
.facts td:first-child { width: 30%; color: var(--ink); font-weight: 600; }
.facts tr:last-child td { border-bottom: none; }

/* Q&A blocks - the core of an answer library */
.qa { margin-bottom: 13px; padding-left: 14px; border-left: 2px solid var(--rule); }
.qa .q { font-size: 12px; font-weight: 700; color: var(--ink); margin-bottom: 3px; }
.qa .a { font-size: 11.5px; color: var(--ink-soft); line-height: 1.55; }
.qa .src { font-size: 9.5px; color: var(--ink-faint); margin-top: 3px; }
/* the page the agent should link the customer to alongside the answer */
.lnk {
  font-size: 10px;
  color: var(--accent);
  margin-top: 4px;
  font-family: ui-monospace, Consolas, monospace;
  letter-spacing: -0.1px;
}

/* plain lists */
ul.plain, ol.plain { margin: 6px 0 10px 18px; }
ul.plain li, ol.plain li { font-size: 11.5px; color: var(--ink-soft); line-height: 1.55; margin-bottom: 4px; }

/* inline list of terms */
.terms { font-size: 11.5px; color: var(--ink-soft); line-height: 1.9; }

/* guardrail / note box - the only shaded element in the whole sheet */
.note {
  background: var(--shade);
  border-left: 3px solid var(--ink);
  padding: 12px 15px;
  margin: 12px 0;
}
.note .nt { font-size: 11.5px; font-weight: 700; margin-bottom: 4px; }
.note p { font-size: 11.5px; margin-bottom: 0; }

.toc { font-size: 12.5px; }
.toc div { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px solid var(--rule-soft); }
.toc div span:first-child { color: var(--ink); }
.toc div span:last-child { color: var(--ink-faint); }

code { font-family: ui-monospace, Consolas, monospace; font-size: 11px; background: var(--shade); padding: 1px 4px; }

@media (max-width: 940px) {
  .page { width: 100%; padding: 40px 30px; }
  .cover dl { grid-template-columns: 1fr; gap: 2px 0; }
}
