:root {
  --paper: #faf9f5;
  --card: #ffffff;
  --ink: #20252b;
  --muted: #4a5058;
  --rule: #d6d1c2;
  --rule-strong: #20252b;
  --link: #174b78;
  --accent: #8f3518;
  --accent-ink: #ffffff;
  --note-bg: #f3efe2;
  --serif: Georgia, "Times New Roman", Times, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 1rem;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.125rem;
  line-height: 1.5;
  overflow-wrap: break-word;
}

.wrap {
  max-width: 42rem;
  margin: 0 auto;
  padding: 0 1.125rem;
}

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

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

:focus-visible {
  outline: 3px solid var(--link);
  outline-offset: 2px;
}

.skip {
  position: absolute;
  left: -999rem;
  top: 0;
  background: var(--card);
  padding: 0.75rem 1rem;
  z-index: 10;
}

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

/* Status banner */
.status {
  background: var(--note-bg);
  border-bottom: 1px solid var(--rule);
  font-size: 1rem;
  padding: 0.75rem 0;
}

.status strong {
  font-weight: 700;
}

/* Masthead */
.masthead {
  padding: 1.5rem 0 0.75rem;
  border-bottom: 3px double var(--rule-strong);
}

.masthead .name {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0;
}

.masthead .descriptor {
  margin: 0.125rem 0 0.75rem;
  color: var(--muted);
  font-size: 1rem;
}

.masthead nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0 0.25rem;
  font-size: 1rem;
}

.masthead nav li + li::before {
  content: "\00B7";
  margin-right: 0.25rem;
  color: var(--muted);
}

.masthead nav a {
  display: inline-block;
  padding: 0.625rem 0.25rem;
}

/* Headings */
h1,
h2,
h3 {
  font-family: var(--serif);
  line-height: 1.15;
  text-wrap: balance;
  margin: 0;
}

h1 {
  font-size: 2.125rem;
  margin-top: 1.5rem;
}

h2 {
  font-size: 1.625rem;
  margin-bottom: 0.75rem;
}

h3 {
  font-size: 1.1875rem;
  line-height: 1.3;
  margin: 1.5rem 0 0.375rem;
}

.eyebrow {
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.5rem;
}

section {
  padding: 2.25rem 0;
  border-bottom: 1px solid var(--rule);
}

p {
  margin: 0 0 1rem;
}

ul,
ol {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

li {
  margin-bottom: 0.375rem;
}

.small {
  font-size: 1rem;
  color: var(--muted);
}

.num {
  font-variant-numeric: tabular-nums;
}

/* Hero */
.hero {
  padding-top: 0;
}

.hero .lede {
  font-size: 1.1875rem;
  margin-top: 1rem;
}

.priceline {
  font-weight: 700;
  margin: 1.25rem 0 0.75rem;
  font-variant-numeric: tabular-nums;
}

.btn {
  display: block;
  width: 100%;
  min-height: 3rem;
  padding: 0.8125rem 1.25rem;
  background: var(--accent);
  color: var(--accent-ink);
  border: 2px solid var(--accent);
  border-radius: 3px;
  font: inherit;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

.btn:hover {
  background: #74290f;
  border-color: #74290f;
}

.btn.secondary {
  background: transparent;
  color: var(--link);
  border-color: var(--link);
}

.btn.secondary:hover {
  background: #eaf0f5;
}

.notice {
  border: 2px solid var(--rule-strong);
  border-radius: 3px;
  background: var(--card);
  padding: 0.875rem 1rem;
  margin: 0 0 0.75rem;
}

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

.actions {
  display: grid;
  gap: 0.625rem;
  margin: 0 0 1rem;
}

/* Cards and tables */
.card {
  background: var(--card);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--rule-strong);
  border-radius: 2px;
  padding: 1rem;
  margin: 0 0 1rem;
}

.card h3 {
  margin-top: 0;
}

.card .line-id {
  font-family: var(--sans);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--muted);
  display: block;
  margin-bottom: 0.25rem;
}

dl.facts {
  margin: 0 0 1rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

dl.facts div {
  padding: 0.5rem 0;
  border-top: 1px solid var(--rule);
}

dl.facts dt {
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

dl.facts dd {
  margin: 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
}

caption {
  text-align: left;
  font-size: 0.9375rem;
  color: var(--muted);
  padding-bottom: 0.375rem;
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 0.4375rem 0.5rem 0.4375rem 0;
  border-top: 1px solid var(--rule);
}

thead th {
  border-top: 0;
  border-bottom: 2px solid var(--rule-strong);
  font-size: 0.875rem;
  letter-spacing: 0.02em;
}

td.amt,
th.amt {
  text-align: right;
  padding-right: 0;
}

td.amt {
  white-space: nowrap;
}

tr.prior td,
tr.prior th {
  color: var(--muted);
  font-style: italic;
}

tbody th {
  font-weight: 400;
}

.caveat {
  background: var(--note-bg);
  border-left: 3px solid var(--rule-strong);
  padding: 0.75rem 0.875rem;
  font-size: 1rem;
  margin: 0 0 1rem;
}

.caveat p:last-child,
.caveat ul:last-child {
  margin-bottom: 0;
}

.tags {
  list-style: none;
  padding: 0;
  margin: 0 0 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}

.tags li {
  margin: 0;
  font-size: 0.9375rem;
  border: 1px solid var(--rule);
  background: var(--card);
  padding: 0.125rem 0.5rem;
  border-radius: 2px;
}

/* Deliverables */
ol.numbered {
  list-style: none;
  padding: 0;
  counter-reset: n;
}

ol.numbered li {
  counter-increment: n;
  position: relative;
  padding: 0.75rem 0 0.75rem 2.5rem;
  border-top: 1px solid var(--rule);
  margin: 0;
}

ol.numbered li::before {
  content: counter(n);
  position: absolute;
  left: 0;
  top: 0.6875rem;
  font-family: var(--serif);
  font-size: 1.375rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* Comparison tables */
.compare {
  padding: 0.875rem 1rem 0.5rem;
}

.compare caption {
  color: var(--ink);
  font-size: 1rem;
  padding-bottom: 0.5rem;
}

.compare thead th {
  vertical-align: bottom;
}

.compare td.amt,
.compare th.amt {
  padding-left: 0.75rem;
}

.compare p {
  margin: 0.625rem 0 0;
}

.compare p:last-child {
  margin-bottom: 0.5rem;
}

/* Workbook excerpt */
.sheet {
  background: var(--card);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--rule-strong);
  padding: 0.75rem 0.875rem 0.25rem;
  margin: 0 0 0.5rem;
}

.sheet table {
  font-size: 0.9375rem;
  table-layout: fixed;
}

.sheet th:nth-child(1) {
  width: 31%;
}

.sheet th:nth-child(2) {
  width: 25%;
}

.sheet th:nth-child(3) {
  width: 17%;
}

.sheet caption {
  color: var(--ink);
}

.sheet td.amt,
.sheet th.amt {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

/* Comparable-schedules sample */
[hidden] {
  display: none !important;
}

select {
  width: 100%;
  min-height: 3rem;
  font: inherit;
  color: var(--ink);
  background: var(--card);
  border: 2px solid var(--rule-strong);
  border-radius: 3px;
  padding: 0.5rem 0.75rem;
  margin-bottom: 0.875rem;
}

.count {
  margin-bottom: 0.375rem;
}

ul.schedules {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  border-bottom: 1px solid var(--rule);
}

ul.schedules li {
  margin: 0;
  border-top: 1px solid var(--rule);
}

a.sched {
  display: block;
  padding: 0.5rem 0.75rem 0.5rem 0.875rem;
  border-left: 4px solid transparent;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.9375rem;
  line-height: 1.4;
}

a.sched span {
  display: block;
}

a.sched .sched-title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

a.sched .sched-meta {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

a.sched .sched-diff {
  font-weight: 700;
}

.demo:not(.js) .sched-desc::before {
  content: attr(data-label) ": ";
}

a.sched[aria-current="true"] {
  border-left-color: var(--accent);
  background: var(--card);
}

a.sched[aria-current="true"] .sched-title {
  color: var(--ink);
  text-decoration: none;
}

.panel h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1.0625rem;
}

.panel h3 .line-id,
.program h3 .line-id {
  font-family: var(--sans);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--muted);
  display: block;
  margin-bottom: 0.25rem;
}

.demo.js .panel h3 .ttl {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.demo.js .panel h3 .line-id {
  margin-bottom: 0;
}

.compare details {
  margin-top: 0.625rem;
}

.compare details:last-of-type {
  border-bottom: 0;
}

.compare details summary {
  font-size: 1rem;
  font-weight: 400;
  padding: 0.625rem 0;
  min-height: 2.75rem;
}

.compare details table {
  margin-bottom: 0.25rem;
}

details > .compare {
  padding: 0 0 0.75rem;
}

dl.diffs ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

dl.diffs li {
  margin: 0 0 0.25rem;
  padding-left: 4.25rem;
  text-indent: -4.25rem;
  font-size: 1rem;
}

dl.diffs .pid {
  display: inline-block;
  width: 4.25rem;
  text-indent: 0;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}

dl.diffs {
  border-bottom: 1px solid var(--rule);
  margin-bottom: 1.5rem;
}

ul.plain {
  list-style: none;
  padding: 0;
  margin-top: 1rem;
}

ul.plain li {
  padding: 0.5rem 0;
  border-top: 1px solid var(--rule);
  margin: 0;
}

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

details .facts {
  margin-bottom: 0.5rem;
}

/* Contents filter */
label.field {
  display: block;
  font-weight: 700;
  margin-bottom: 0.375rem;
}

input[type="search"] {
  width: 100%;
  min-height: 3rem;
  font: inherit;
  color: var(--ink);
  background: var(--card);
  border: 2px solid var(--rule-strong);
  border-radius: 3px;
  padding: 0.5rem 0.75rem;
  margin-bottom: 0.5rem;
}

.filter[hidden] {
  display: none;
}

.program[hidden] {
  display: none;
}

/* FAQ */
details {
  border-top: 1px solid var(--rule);
}

details:last-of-type {
  border-bottom: 1px solid var(--rule);
}

summary {
  cursor: pointer;
  font-weight: 700;
  padding: 0.875rem 0;
  min-height: 3rem;
}

details > :not(summary) {
  margin-top: 0;
}

/* Footer */
footer {
  padding: 2rem 0 3rem;
  font-size: 1rem;
}

footer h2 {
  font-size: 1.25rem;
}

footer h3 {
  font-size: 1.0625rem;
}

/* Order bar (released editions only) */
.orderbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--card);
  border-top: 2px solid var(--rule-strong);
  padding: 0.5rem 1.125rem calc(0.5rem + env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-weight: 700;
}

.orderbar[hidden] {
  display: none;
}

.orderbar .btn {
  width: auto;
  flex: 0 0 auto;
}

body.has-orderbar {
  padding-bottom: 5rem;
}

@media (min-width: 40em) {
  h1 {
    font-size: 2.875rem;
  }

  h2 {
    font-size: 1.875rem;
  }

  .actions {
    grid-template-columns: repeat(2, minmax(0, max-content));
  }

  .actions .btn {
    width: auto;
    padding-left: 1.75rem;
    padding-right: 1.75rem;
  }

  dl.facts div {
    display: grid;
    grid-template-columns: 11rem 1fr;
    gap: 1rem;
  }

  .card {
    padding: 1.25rem;
  }
}

@media (max-width: 22.5em) {
  .compare {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .compare table {
    font-size: 0.875rem;
  }

  .compare thead th {
    font-size: 0.8125rem;
  }

  .compare td.amt,
  .compare th.amt {
    padding-left: 0.375rem;
  }

  .sheet {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }

  .sheet table {
    font-size: 0.78125rem;
  }

  .sheet th:nth-child(1) {
    width: 27%;
  }

  .sheet th:nth-child(2) {
    width: 26%;
  }

  .sheet th:nth-child(3) {
    width: 19%;
  }

  .sheet thead th {
    font-size: 0.75rem;
    letter-spacing: 0;
  }

  .sheet th,
  .sheet td {
    padding-right: 0.25rem;
  }

  .sheet td.amt,
  .sheet th.amt {
    padding-left: 0.25rem;
    padding-right: 0.375rem;
  }

  a.sched {
    padding-left: 0.625rem;
    padding-right: 0.25rem;
  }

  dl.diffs li {
    padding-left: 3.75rem;
    text-indent: -3.75rem;
  }

  dl.diffs .pid {
    width: 3.75rem;
  }
}

@media print {
  .orderbar,
  .skip,
  .filter {
    display: none;
  }
}
