/* Browser layout. Dompdf renders invoices using the rules at the end. */
@media not dompdf {
:root {
  color-scheme: light;
  --ink: #102a40;
  --text: #253e50;
  --muted: #536675;
  --paper: #f5f3ee;
  --white: #fff;
  --rule: #d8dfe1;
  --brass: #805725;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: 'Open Sans', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); font: 1rem/1.65 var(--sans); }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; text-underline-offset: .18em; }
a:hover, a:focus-visible { text-decoration: underline; }
a:focus-visible, summary:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
h1, h2, h3, p { margin: 0; }
h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -.045em; }
h1 { font-size: clamp(2.65rem, 5.1vw, 5.1rem); line-height: 1.02; }
h2 { font-size: clamp(2.15rem, 3.8vw, 3.45rem); line-height: 1.08; }
h3 { font-size: 1.12rem; line-height: 1.3; }
.wrap { width: min(100% - 4rem, 76rem); margin-inline: auto; }
.section { padding-block: clamp(3.6rem, 7vw, 6.25rem); }
.eyebrow {
  margin-bottom: 1rem;
  color: var(--brass);
  font-size: .875rem;
  font-weight: 750;
  letter-spacing: .085em;
  line-height: 1.35;
  text-transform: uppercase;
}
.skip-link {
  position: absolute;
  z-index: 2;
  inset: .75rem auto auto .75rem;
  translate: 0 -180%;
  background: var(--white);
  padding: .65rem 1rem;
}
.skip-link:focus { translate: 0; }

.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--rule);
}
.header-inner {
  min-height: 5.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand { display: block; width: 7.35rem; flex: none; }
.brand img { width: 100%; height: auto; mix-blend-mode: multiply; }
.site-header nav { display: flex; align-items: center; gap: clamp(.9rem, 3vw, 2.4rem); }
.site-header nav a { font-size: .925rem; font-weight: 650; }

.hero { background: var(--paper); }
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  gap: clamp(2rem, 5vw, 5rem);
  padding-block: clamp(2.5rem, 5vw, 4.25rem);
}
.hero-copy { align-self: center; padding-block: 1rem; }
.hero h1 em { display: block; color: #30556c; font-weight: inherit; }
.hero-copy > p:not(.eyebrow) { max-width: 31rem; margin-top: 1.45rem; color: var(--text); font-size: 1.06rem; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  margin-top: 1.6rem;
  padding: .62rem 1.2rem;
  background: var(--ink);
  border-radius: .2rem;
  color: var(--white);
  font-size: .94rem;
  font-weight: 700;
}
.button:hover { background: #24506b; }
.button:focus-visible { outline-color: var(--ink); }
.hero-image { align-self: center; min-width: 0; }
.hero-image img { width: 100%; height: auto; }

.publishing-grid, .questions-grid {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: clamp(2rem, 8vw, 7.5rem);
}
.publishing h2 { max-width: 13ch; }
.publishing-details article { padding-block: 1.3rem; border-top: 1px solid var(--rule); }
.publishing-details article:last-child { padding-bottom: 0; }
.publishing-details p { margin-top: .5rem; color: var(--muted); }

.numbers { background: var(--ink); color: #fff; }
.numbers .eyebrow { color: #ebc691; }
.section-intro { max-width: 42rem; margin-top: 1rem; color: #d9e4ec; }
.quantity-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 2rem;
  background: #52677a;
  border: 1px solid #52677a;
}
.quantity { padding: clamp(1.2rem, 3vw, 2rem); background: #19354d; }
.quantity h3 {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: .35rem .7rem;
  font-family: var(--serif);
  font-size: clamp(2.25rem, 4vw, 3.75rem);
  font-weight: 400;
  line-height: 1;
  font-variant-numeric: lining-nums tabular-nums;
}
.quantity h3 span { color: #ebc691; font: 700 .9rem/1.2 var(--sans); }
.quantity p { margin-top: .9rem; color: #e0e9ef; }
.quantity-note { margin-top: 1rem; color: #d9e4ec; }

.questions { background: var(--paper); }
.faq details { border-top: 1px solid #c8d0d4; }
.faq details:last-child { border-bottom: 1px solid #c8d0d4; }
.faq summary {
  min-height: 3.25rem;
  padding: .94rem 2rem .94rem 0;
  position: relative;
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  line-height: 1.4;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: .25rem; top: .72rem; font-size: 1.25rem; }
.faq details[open] summary::after { content: '−'; }
.faq p { padding: 0 1.5rem 1.15rem 0; color: var(--text); }

.site-footer { padding-block: 2.6rem 1.5rem; background: #0c2335; color: #d9e4ec; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.footer-grid strong { color: #fff; font-size: 1.25rem; }
.footer-grid p { margin-bottom: .3rem; }
.footer-grid a { color: #fff; }
.social-links { display: flex; gap: .6rem; margin-top: .75rem; }
.social-links a {
  display: grid;
  width: 2.65rem;
  height: 2.65rem;
  place-items: center;
  border: 1px solid #8094a3;
  border-radius: 50%;
}
.social-links a:hover, .social-links a:focus-visible { background: #254259; }
.social-links a[aria-disabled="true"] { cursor: default; }
.social-links svg { width: 1rem; height: 1rem; fill: currentColor; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: .5rem 1.25rem;
  flex-wrap: wrap;
  margin-top: 1.75rem;
  padding-top: 1.15rem;
  border-top: 1px solid #52677a;
  font-size: .9rem;
}
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: .5rem 1.25rem; }
.footer-links a { white-space: nowrap; }

@media (max-width: 57rem) {
  .hero-grid { gap: 1.75rem; }
  .publishing-grid, .questions-grid { gap: 2.25rem; }
}

@media (max-width: 42rem) {
  .wrap { width: calc(100% - 2.25rem); }
  .header-inner { min-height: 4.4rem; }
  .brand { width: 5.2rem; }
  .site-header nav { gap: .8rem; }
  .site-header nav a { font-size: .875rem; }
  .hero-grid, .publishing-grid, .questions-grid, .footer-grid { grid-template-columns: 1fr; }
  .hero-grid { padding-block: 2.4rem 1.25rem; }
  .hero-copy { padding-block: 0; }
  .publishing h2 { max-width: 17ch; }
  .quantity-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: .75rem; }
  .footer-bottom.footer-links { flex-direction: row; }
}

@media (max-width: 23rem) {
  .header-inner { flex-wrap: wrap; row-gap: .35rem; padding-block: .6rem; }
  .brand { width: 4.75rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Registry and account pages */
.nav-button {
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  font: 650 .925rem/1.65 var(--sans);
  cursor: pointer;
}
.nav-button:hover { text-decoration: underline; }
button:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.button { border: 0; cursor: pointer; }
.numbers .button-light { background: #fff; color: var(--ink); }
.numbers .button-light:hover { background: #e0e9ef; }
.numbers .button-light:focus-visible { outline-color: #fff; }
.portal { min-height: 65vh; background: var(--paper); overflow-wrap: anywhere; }
.portal h1 { font-size: clamp(2.6rem, 6vw, 4.5rem); }
.portal h2 { font-size: clamp(1.8rem, 4vw, 2.75rem); }
.portal-intro { max-width: 60ch; margin-top: 1rem; }
.portal-section { margin-top: 2.75rem; padding-top: 1.6rem; border-top: 1px solid var(--rule); }
.portal-section > p { max-width: 72ch; margin-top: .6rem; }
.policy .portal-intro, .policy .portal-section > p { max-width: none; overflow-wrap: anywhere; }
.retail-check-digit { margin-top: 1.5rem; }
.retail-check-digit summary { cursor: pointer; font-weight: 700; }
.retail-check-digit p { margin-top: .6rem; }
.retail-code-example {
  margin: .9rem 0;
  padding: .8rem 1rem;
  overflow-x: auto;
  background: var(--white);
  border: 1px solid var(--rule);
}
.portal-form { max-width: 38rem; margin-top: 1.25rem; display: grid; grid-template-columns: minmax(0, 1fr); gap: .85rem; }
.portal-form label, .registry-search label { display: block; font-weight: 700; }
.portal-form input, .portal-form select, .portal-form textarea, .registry-search input {
  display: block;
  width: 100%;
  min-height: 2.9rem;
  margin-top: .3rem;
  padding: .5rem .7rem;
  border: 1px solid #8396a3;
  border-radius: .2rem;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 400;
}
.portal-form :is(input, select, textarea):focus, .registry-search input:focus { outline: 2px solid #30556c; outline-offset: 1px; }
.portal-form textarea { resize: vertical; }
.portal-form .button { justify-self: start; margin-top: .15rem; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem; }
.help { color: var(--muted); font-size: .925rem; }
.notice { max-width: 70ch; margin-top: 1rem; padding: .8rem 1rem; color: var(--ink); background: #dce9ef; }
.notice.error { color: #711c16; background: #f8e3df; }
.setup-key { margin-top: .65rem; overflow-wrap: anywhere; }
.setup-key code, .recovery-list code { padding: .3rem .45rem; background: #fff; }
.recovery-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: .55rem; max-width: 33rem; padding: 0; list-style: none; }
.table-scroll { margin: .9rem 0; overflow: auto; }
.table-scroll table { width: 100%; border-collapse: collapse; background: #fff; }
.table-scroll th, .table-scroll td { text-align: start; vertical-align: top; padding: .7rem .85rem; border-bottom: 1px solid var(--rule); }
.table-scroll th { background: #e6edf0; }
.table-field-label { display: none; }
.numeric { white-space: nowrap; font-variant-numeric: tabular-nums; }
.pdf-link { display: inline-flex; align-items: center; gap: .28rem; padding: .25rem .15rem; font-size: .9rem; font-weight: 700; }
.pdf-link svg { flex: none; }
.book-list { list-style: none; padding: 0; margin: .9rem 0 0; }
.book-list li { padding: .85rem 0; border-top: 1px solid var(--rule); overflow-wrap: anywhere; }
.order-totals { max-width: 31rem; }
.order-totals div { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-bottom: 1px solid var(--rule); }
.order-totals dd { margin: 0; }
.public-book dd { text-align: end; }
.public-book dd, .public-book .book-description { overflow-wrap: anywhere; }
.public-book .book-description { white-space: pre-line; }
.book-heading span { display: block; overflow-wrap: anywhere; }
.book-heading .book-subtitle {
  margin-top: .28em;
  font-size: .65em;
  line-height: 1.14;
  letter-spacing: -.025em;
}
.book-columns {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
  margin-top: clamp(1.75rem, 4vw, 3rem);
}
.book-columns .portal-section { margin-top: 0; }
.book-columns .order-totals { max-width: none; }
.book-columns .book-description { max-width: 76ch; }
.book-description-body { display: flow-root; margin-top: .75rem; }
.book-cover {
  float: inline-end;
  width: clamp(7rem, 27%, 10rem);
  height: auto;
  margin: .2rem 0 .8rem 1.25rem;
}
.book-cover-preview { width: 6rem; height: auto; }
.portal-form .book-cover-remove { display: flex; align-items: center; gap: .5rem; }
.portal-form .book-cover-remove input { width: auto; min-height: 0; margin: 0; }
.book-purchase { margin-top: 1.25rem; }
.book-guide {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding: clamp(1.25rem, 4vw, 2.5rem);
  background: #e6edf0;
  border: 1px solid var(--rule);
  border-radius: .35rem;
}
.book-guide h2 { font-size: clamp(1.85rem, 3.2vw, 2.8rem); }
.book-guide-tools {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem clamp(1.25rem, 3.5vw, 2.75rem);
  margin-block: 1.5rem;
}
.book-guide-tools p { margin-block: .5rem .75rem; color: var(--text); }
.book-guide a { font-weight: 700; }
.book-guide-more { padding-top: 1rem; border-top: 1px solid #c5d1d7; }
@media (max-width: 48rem) {
  .book-guide-tools { grid-template-columns: minmax(0, 1fr); }
  .book-columns { grid-template-columns: minmax(0, 1fr); gap: 1.75rem; }
}
@media (max-width: 34rem) {
  .book-cover { width: min(7rem, 30%); margin: .15rem 0 .65rem .85rem; }
}
.registry-section { background: #fff; }
.registry-search { max-width: 46rem; margin-top: 1.15rem; }
.registry-search input { margin-bottom: .55rem; }
.registry-search .book-list h3 { margin-bottom: .3rem; }
.registry-search .registry-subtitle {
  display: block;
  margin-top: .18rem;
  color: var(--text);
  font-size: .86em;
  font-weight: 400;
  overflow-wrap: anywhere;
}
.registry-search .book-list p { color: var(--muted); }
@media (max-width: 54rem) {
  .header-inner { flex-wrap: wrap; padding-block: .45rem; row-gap: .35rem; }
  .site-header nav { flex-wrap: wrap; }
}
@media (max-width: 34rem) {
  .site-header nav { column-gap: .9rem; row-gap: .3rem; }
  .form-grid { grid-template-columns: 1fr; }
}

.header-inscription {
  display: flex;
  justify-content: flex-end;
  padding-block: .35rem .05rem;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.25;
}
.price-band-set {
  min-inline-size: 0;
  margin: .4rem 0;
  padding: .75rem .9rem 1rem;
  border: 1px solid var(--rule);
}
.price-band-set legend { padding: 0 .3rem; font-weight: 700; }
.price-band-list, .price-band { margin-block: .55rem; }
.band-add {
  border: 1px solid var(--ink);
  padding: .45rem .7rem;
  background: transparent;
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}
.band-add:hover { background: #e6edf0; }

.book-form, .book-intro { max-width: 55rem; }
.book-fields {
  display: grid;
  gap: .75rem;
  min-inline-size: 0;
  margin: .2rem 0;
  padding: .8rem 1rem 1rem;
  border: 1px solid var(--rule);
}
.book-fields legend { padding-inline: .35rem; font-weight: 750; }
.form-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .7rem 1.15rem; }
.form-actions .button { margin-top: 0; }
.pricing-panel {
  max-width: 42rem;
  margin-top: .9rem;
  padding: .8rem 1rem;
  border: 1px solid var(--rule);
}
.pricing-panel summary { cursor: pointer; font-weight: 750; }
.pricing-panel[open] summary { margin-bottom: .8rem; }
.pricing-panel .button { margin-block: .15rem .3rem; }
.registry-search .book-list .book-description {
  margin-top: .35rem;
  white-space: pre-line;
}

@media (max-width: 56rem) {
  .table-scroll { overflow: visible; }
  .table-scroll table,
  .table-scroll tbody { display: block; background: transparent; }
  .table-scroll thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .table-scroll tbody tr {
    display: block;
    padding: .35rem .85rem;
    border: 1px solid var(--rule);
    background: var(--white);
  }
  .table-scroll tbody tr + tr { margin-top: .75rem; }
  .table-scroll td {
    display: grid;
    grid-template-columns: minmax(5.5rem, 1fr) minmax(0, 2fr);
    gap: .65rem;
    padding: .45rem 0;
  }
  .table-scroll td:last-child { border-bottom: 0; }
  .table-field-label { display: block; font-weight: 700; }
  .table-scroll .numeric { white-space: normal; }
}
}

@media dompdf {
@page { margin: 45pt; }
body { font: 10pt 'DejaVu Sans', sans-serif; color: #102a40; }
table { width: 100%; border-collapse: collapse; }
td, th { vertical-align: top; text-align: left; padding: 7pt 0; }
.right { text-align: right; }
.logo { width: 112pt; height: auto; }
.banner { border-bottom: 2pt solid #102a40; margin-bottom: 22pt; }
.banner td { padding-bottom: 14pt; }
h1 { font-size: 25pt; margin: 0 0 3pt; }
h2 { font-size: 10pt; letter-spacing: 1pt; margin: 0 0 6pt; }
.address { table-layout: fixed; }
.address td { width: 50%; padding-right: 12pt; overflow-wrap: break-word; word-wrap: break-word; }
.lines { margin: 24pt 0 12pt; }
.lines th { border-bottom: 1pt solid #aab8c1; }
.total { width: 50%; margin-left: auto; }
.total .grand td, .total .grand th { border-top: 1pt solid #102a40; }
.notes { margin-top: 28pt; padding-top: 10pt; border-top: 1pt solid #ccd7de; }
}
