/* ==========================================================================
   Lucavra Solutions LLC — capability statement.

   The base rules ARE the printed page: US Letter, 816 x 1056 CSS px
   (8.5 x 11 in at 96 px/in), with the reference design's exact values. The
   phone reflow lives under `@media screen` only, so print — from any device —
   and the PDF that make_capability.py renders always get the true layout.

   Linked only on /capability-statement/, which is also why @page is safe here.
   Colours come from the site's tokens in site.css.
   ========================================================================== */

@page { size: Letter; margin: 0; }

/* ------------------------------------------------------------ the page -- */

.cs-wrap {
  background: var(--surface);
  border-top: 1px solid var(--line-soft);
  padding-top: 48px;
  padding-bottom: 96px;
}

.cs {
  width: 816px;
  min-height: 1056px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.45;
  box-shadow: 0 0 0 1px var(--line), 0 30px 60px -36px rgba(14, 35, 64, 0.45);
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}
.cs p, .cs ul, .cs dl, .cs dd, .cs h2, .cs h3, .cs h4 { margin: 0; max-width: none; }
.cs ul { padding: 0; list-style: none; }
.cs li { margin: 0; }
.cs a { text-decoration: none; }

/* Vertical stacks use block flow and margins, not column flexbox: WeasyPrint
   distributes free space through column flex containers where a browser
   would not, which opened a 42px hole under the headline in the first PDF.
   Flex is kept only for horizontal rows. Margins are `.cs`-prefixed so they
   outrank the reset above. */

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

.cs-head {
  height: 116px;
  flex-shrink: 0;
  padding: 0 48px;
  background: var(--navy-800);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cs-lockup { display: flex; align-items: center; flex: none; }
.cs-mark { width: 56px; height: 56px; flex: none; margin-right: 10px; }
.cs-lockup__name {
  white-space: nowrap;
  font-size: 34px;
  line-height: 1;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--white);
}
.cs-doc { flex: none; margin-left: 28px; }
.cs .cs-doc__title { margin-bottom: 4px; white-space: nowrap; font-size: 22px; line-height: 1.2; font-weight: 700; letter-spacing: -0.01em; color: var(--white); }
.cs-doc__sub { white-space: nowrap; font-size: 14px; line-height: 1.4; font-weight: 600; color: var(--steel-light); }

.cs-strip {
  height: 34px;
  flex-shrink: 0;
  padding: 0 48px;
  background: var(--navy-900);
  display: flex;
  align-items: center;
  font-size: 13px;
  line-height: 1.4;
}
.cs-strip a { color: var(--on-navy-soft); margin-right: 28px; }

/* ---------------------------------------------------------------- body -- */

.cs-main { flex-grow: 1; padding: 28px 48px 0 48px; }
.cs-intro { margin-bottom: 24px; }
.cs .cs-headline { margin-bottom: 8px; font-size: 26px; line-height: 1.2; font-weight: 700; letter-spacing: -0.018em; color: var(--navy-800); }
.cs-lede { font-size: 15.5px; line-height: 1.5; color: var(--ink-soft); }

.cs-cols { display: flex; align-items: flex-start; }
.cs-primary { width: 420px; flex-shrink: 0; }
.cs-primary .cs-section + .cs-section { margin-top: 26px; }

/* section label: the brand's 34 x 3 copper rule over sentence-case 600 */
.cs .cs-label { margin-bottom: 14px; font-size: 14px; line-height: 1.4; font-weight: 600; letter-spacing: 0; color: var(--navy-800); }
.cs-label::before {
  content: "";
  display: block;
  width: 34px;
  height: 3px;
  margin-bottom: 8px;
  background: var(--copper);
}

.cs-comp { display: flex; align-items: flex-start; }
.cs .cs-comp + .cs-comp { margin-top: 14px; }
.cs-icon { width: 40px; height: 40px; flex: none; margin-right: 14px; }
.cs .cs-comp h4 { margin-bottom: 3px; font-size: 16.5px; line-height: 1.3; font-weight: 600; letter-spacing: -0.008em; color: var(--navy-800); }
.cs-comp p { font-size: 14px; line-height: 1.45; color: var(--ink-soft); }

.cs .cs-diffs li + li { margin-top: 8px; }
.cs-diffs li {
  position: relative;
  padding-left: 18px;
  font-size: 15px;
  line-height: 1.45;
  color: var(--ink);
}
.cs-diffs li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  background: var(--steel);
}

/* -------------------------------------------------------------- aside -- */

.cs-aside {
  width: 272px;
  flex-shrink: 0;
  margin-left: 28px;
  padding: 20px;
  background: var(--surface);
  border-radius: 6px;
}
.cs-aside .cs-section + .cs-section { margin-top: 22px; }
.cs .cs-aside .cs-label { margin-bottom: 12px; }

.cs .cs-data > div + div { margin-top: 10px; }
.cs .cs-data dt { margin-bottom: 1px; font-size: 12px; line-height: 1.35; font-weight: 600; color: var(--ink-soft); }
.cs-data dd { font-size: 14px; line-height: 1.4; font-weight: 500; color: var(--ink); }
.cs-data .cs-id { letter-spacing: 0.02em; }
/* Identifiers (UEI, CAGE, SAM.gov, D-U-N-S): label beside value, tight rows. */
.cs .cs-data > .cs-idrow { display: flex; align-items: baseline; }
.cs .cs-data > .cs-idrow + .cs-idrow { margin-top: 5px; }
.cs .cs-data .cs-idrow dt { width: 70px; flex: none; margin-bottom: 0; }
.cs-naics { display: flex; align-items: center; }
.cs-pill {
  margin-left: 8px;
  font-size: 12px;
  line-height: 1;
  font-weight: 600;
  color: var(--steel-dark);
  border: 1px solid var(--steel);
  border-radius: 999px;
  padding: 3px 8px;
}
.cs .cs-naics-desc { display: block; margin-top: 3px; font-size: 13px; line-height: 1.4; font-weight: 400; color: var(--ink-soft); }

.cs-text { font-size: 14px; line-height: 1.5; color: var(--ink); }
.cs-contact { font-size: 14px; line-height: 1.45; }
.cs-contact > * { display: block; }
.cs .cs-contact > * + * { margin-top: 2px; }
.cs-contact__name { font-weight: 500; color: var(--ink); }
.cs-contact a { color: var(--steel-dark); }

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

.cs-foot {
  flex-shrink: 0;
  margin: 0 48px;
  padding: 14px 0 40px 0;
  border-top: 1px solid var(--line);
}
.cs-foot p { font-size: 13px; line-height: 1.45; color: var(--ink-soft); }
.cs .cs-foot p + p { margin-top: 6px; }
.cs .cs-foot .cs-foot__fine { font-size: 12px; color: var(--ink-faint); }

/* ------------------------------------------------- phones and tablets --
   Screen only. Below 900px the 816px sheet no longer fits beside the page
   gutters, so it reflows into one column. Print never matches this. */

@media screen and (max-width: 899px) {
  .cs-wrap { padding-top: 24px; padding-bottom: 56px; }
  .cs { width: auto; min-height: 0; }
  .cs-head { height: auto; padding: 22px 20px; flex-wrap: wrap; }
  .cs-mark { width: 40px; height: 40px; }
  .cs-lockup__name { font-size: 22px; }
  /* At 320px the one-line lockup needs ~280px where ~240px exists. Allow the
     break — the lockup halves stay whole, so it falls as Lucavra / Solutions LLC. */
  .cs-lockup__name, .cs .cs-doc__title, .cs-doc__sub { white-space: normal; }
  .cs-doc { margin-left: 0; margin-top: 14px; width: 100%; }
  .cs-strip { height: auto; padding: 10px 20px 6px; flex-wrap: wrap; }
  .cs-strip a { margin: 0 18px 4px 0; }
  .cs-main { padding: 22px 20px 0 20px; }
  .cs .cs-headline { font-size: 23px; }
  .cs-cols { display: block; }
  .cs-primary, .cs-aside { width: auto; }
  .cs-aside { margin-left: 0; margin-top: 24px; }
  .cs-foot { margin: 24px 20px 0; padding-bottom: 24px; }
}

/* ---------------------------------------------------------------- print --
   Printing the web page prints the sheet alone, at its exact size. */

@media print {
  .page-capability .utility,
  .page-capability .site-header,
  .page-capability .site-footer,
  .page-capability .page-head,
  .page-capability .skip-link { display: none !important; }
  .page-capability main,
  .page-capability .cs-wrap,
  .page-capability .cs-wrap .container {
    margin: 0 !important;
    padding: 0 !important;
    max-width: none !important;
    background: none !important;
    border: 0 !important;
  }
  .cs {
    width: 8.5in;
    height: 11in;
    min-height: 0;
    margin: 0;
    overflow: hidden;
    box-shadow: none;
    break-inside: avoid;
  }
}
