/* EBSS Unlimited, 2027 site, DRAFT B.
   Same type, color and rules as the resumes and letterhead: Segoe UI, black type,
   navy 002060 headings, link blue 051DD1. No shading. */

:root {
  --ink: #000000;
  --navy: #002060;
  --link: #051DD1;
  --paper: #FFFFFF;
  --measure: 1040px;
  --gutter: 16px;
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font); font-size: 17px; line-height: 1.55; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }

.wrap { max-width: var(--measure); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: var(--gutter); top: 8px; background: var(--paper); padding: 4px 8px; }
.draft-bar { background: #FFF200; font-size: 13px; padding: 6px var(--gutter); text-align: center; }

/* Masthead */
.masthead { padding-top: 28px; }
.masthead .bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.masthead .logo img { width: 190px; }
.masthead .identity { text-align: right; font-size: 13px; line-height: 1.5; }
.masthead .identity .name { color: var(--navy); font-weight: 700; font-size: 20px; line-height: 1.2; margin-bottom: 4px; }
.masthead .identity span + span::before { content: "|"; padding: 0 8px; }
.rule-heavy { border: 0; border-top: 5px solid var(--ink); margin: 18px 0 0; }
nav.primary { border-bottom: 1px solid var(--ink); }
nav.primary ul { list-style: none; margin: 0; padding: 10px 0; display: flex; flex-wrap: wrap; gap: 4px 28px; }
nav.primary a { color: var(--ink); text-decoration: none; font-size: 13px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
nav.primary a:hover, nav.primary a[aria-current="page"] { color: var(--navy); text-decoration: underline; text-underline-offset: 6px; }

/* Page grid: sidebar left, main right */
.page { display: grid; grid-template-columns: 250px 1fr; gap: 0 40px; padding-top: 32px; padding-bottom: 48px; }
.page > aside { grid-column: 1; grid-row: 1; border-right: 1px solid var(--ink); padding-right: 28px; }
.page > main { grid-column: 2; grid-row: 1; min-width: 0; }
.page.single { grid-template-columns: 1fr; }
.page.single > main { grid-column: 1; }

.label { color: var(--navy); font-size: 13px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  border-bottom: 1px solid var(--ink); padding-bottom: 4px; margin: 36px 0 14px; }
aside .label:first-child { margin-top: 0; }
h1 { color: var(--navy); font-size: 40px; line-height: 1.12; margin: 0 0 6px; letter-spacing: -.01em; }
.lede { font-size: 20px; line-height: 1.5; margin: 16px 0 0; border-top: 1px solid var(--ink); padding-top: 14px; }
h2 { color: var(--navy); font-size: 20px; line-height: 1.25; margin: 24px 0 8px; }
h3 { font-size: 17px; margin: 0; }
p { margin: 0 0 12px; }

/* Sidebar */
.glance { margin: 0; }
.glance dt { font-weight: 700; font-size: 20px; color: var(--navy); line-height: 1.2; }
.glance dd { margin: 0 0 14px; font-size: 14px; }
.facts { margin: 0; font-size: 14px; }
.facts dt { font-weight: 700; }
.facts dd { margin: 0 0 8px; }
.contact-lines { font-size: 14px; }
.contact-lines p { margin: 0 0 10px; }
button.copy { font: inherit; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--link);
  background: none; border: 1px solid var(--link); padding: 4px 10px; cursor: pointer; margin-top: 4px; }
button.copy:hover { color: var(--paper); background: var(--link); }

/* Principals */
.principals { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 8px; }
.principal { display: grid; grid-template-columns: 120px 1fr; gap: 16px; align-items: start; }
.principal img { width: 120px; }
.principal .name { color: var(--navy); font-size: 22px; font-weight: 700; line-height: 1.15; }
.principal .title { font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; margin: 4px 0 8px; }
.principal p { font-size: 15px; }
.pledge { font-weight: 700; margin-top: 16px; }
.principal .reach { font-size: 17px; line-height: 1.7; }
main > section { margin-top: 28px; }
main > section + section { border-top: 1px solid var(--ink); padding-top: 24px; margin-top: 32px; }

/* Entries */
.entry { padding: 12px 0; border-bottom: 1px solid var(--ink); }
.entry:last-of-type { border-bottom: 0; }
.entry .head { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; }
.entry .head h3 { margin-right: auto; }
.entry .meta { font-size: 14px; }
.entry .meta span + span::before { content: "|"; padding: 0 8px; }
.entry p { margin: 4px 0 0; }
.entry .std { font-size: 14px; }
.figure { font-weight: 700; color: var(--navy); white-space: nowrap; }
.note { font-size: 14px; margin-top: 10px; }
.cap { margin: 0 0 6px; }
.download { margin: 12px 0 0; font-weight: 700; }
img.map { width: 75%; margin: 4px 0 6px; }
.note.credit { font-size: 12px; margin-top: 2px; }
.print-only { display: none; }

.cols-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
.cols-2 > .entry { border-bottom: 1px solid var(--ink); }
.cols-2.tight h2 { margin-top: 20px; }
h2.group { font-size: 15px; letter-spacing: .08em; text-transform: uppercase; margin: 18px 0 2px; }
ul.plain { margin: 0; padding-left: 18px; }
ul.plain li { margin-bottom: 4px; }

table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 8px 12px 8px 0; border-bottom: 1px solid var(--ink); }
th { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--navy); }
td.num, th.num { text-align: right; white-space: nowrap; padding-right: 0; }
.table-scroll { overflow-x: auto; }

/* Footer */
footer.site { padding: 0 0 40px; }
footer.site .foot { border-top: 5px solid var(--ink); padding-top: 24px; }
footer.site .label { margin-top: 0; }
footer.site .contact-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px 32px; font-size: 15px; line-height: 1.5; }
footer.site .fine { font-size: 12px; margin: 20px 0 0; padding-top: 8px; border-top: 1px solid var(--ink); }

/* Phone width */
@media screen and (max-width: 820px) {
  body { font-size: 16px; }
  .page { grid-template-columns: 1fr; padding-top: 24px; }
  .page > main { grid-column: 1; grid-row: 1; }
  .page > aside { grid-column: 1; grid-row: 2; border-right: 0; padding-right: 0; border-top: 5px solid var(--ink); padding-top: 20px; margin-top: 32px; }
  .principals, .cols-2 { grid-template-columns: 1fr; }
  h1 { font-size: 30px; }
  .lede { font-size: 18px; }
  .masthead .bar { flex-direction: column; align-items: flex-start; gap: 12px; }
  .masthead .identity { text-align: left; }
  .masthead .identity span { display: block; }
  .masthead .identity span + span::before { content: none; }
  footer.site .contact-row { grid-template-columns: 1fr; }
}
@media screen and (max-width: 420px) {
  .principal { grid-template-columns: 88px 1fr; }
  .principal img { width: 88px; }
}

/* Print: the Contracting page is the capability statement. */
@media print {
  @page { size: letter; margin: 0.4in 0.5in; }
  body { font-size: 9pt; line-height: 1.35; }
  .print-only { display: block; }
  .draft-bar, nav.primary, .skip, button.copy, .no-print, footer.site { display: none !important; }
  .masthead { padding-top: 0; }
  .masthead .logo img { width: 1.75in; }
  .masthead .identity { font-size: 8.5pt; }
  .masthead .identity .name { font-size: 13pt; }
  .rule-heavy { margin-top: 8pt; }
  .page { grid-template-columns: 2.1in 1fr; gap: 0 18pt; padding: 12pt 0 0; }
  .page > aside { padding-right: 12pt; }
  h1 { font-size: 16pt; margin-bottom: 2pt; }
  .lede { font-size: 9.5pt; margin-top: 6pt; padding-top: 6pt; }
  .label { font-size: 7.5pt; margin: 8pt 0 4pt; }
  p, .cap { margin-bottom: 4pt; }
  .pledge { margin-top: 4pt; }
  table { font-size: 8.5pt; }
  th, td { padding: 2.5pt 8pt 2.5pt 0; }
  th { font-size: 7pt; }
  table.pp td:nth-child(1) { width: 1.35in; }
  table.pp td:nth-child(2) { width: 1.0in; }
  table.pp td:nth-child(4) { width: 0.6in; }
  table.buy td:first-child { width: 2.0in; }
  .facts, .contact-lines, .note { font-size: 8.5pt; }
  aside .facts, aside .contact-lines, aside .note { font-size: 8pt; line-height: 1.3; }
  aside .label { margin-top: 7pt; }
  .facts dd { margin-bottom: 3pt; }
  aside img.map, aside .note.credit { display: none !important; }
  .contact-lines p { margin-bottom: 5pt; }
  a { color: var(--ink); text-decoration: none; }
}
