/* Boutiq Books stylesheet. Light theme. Palette from the Boutiq brand guide.
   Purple is an accent only, never text on white (WCAG AA). */
:root {
  --accent: #DD35DE;
  --accent-text: #000000;
  --accent-dark: #9B00A0;
  --dark: #222222;
  --text: #222222;
  --text-grey: #666666;
  --line: #CCCCCC;
  --panel: #F2F2F2;
  --danger: #B00020;
  --ok: #1B6E2D;
  --space: 1rem;
}
* { box-sizing: border-box; }
html { font-size: 100%; }
body { margin: 0; font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; color: var(--text); background: #fff; line-height: 1.5; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--dark); color: #fff; padding: .5rem 1rem; z-index: 10; }
.skip-link:focus { left: 0; }
.site-header { background: var(--dark); border-left: 5px solid var(--accent); }
.site-header-inner { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; padding: .75rem 1.25rem; max-width: 72rem; margin: 0 auto; }
.brand { color: #fff; text-decoration: none; font-weight: 700; font-size: 1.25rem; }
.brand-books { color: #fff; font-weight: 400; }
.site-header nav { display: flex; flex-wrap: wrap; gap: .25rem 1rem; flex: 1; }
.site-header nav a { color: #CCCCCC; text-decoration: none; padding: .25rem .1rem; border-bottom: 2px solid transparent; }
.site-header nav a:hover, .site-header nav a:focus { color: #fff; }
.site-header nav a[aria-current="page"] { color: #fff; border-bottom-color: var(--accent); }
.who { color: #CCCCCC; font-size: .9rem; }
.content { max-width: 72rem; margin: 0 auto; padding: 1.5rem 1.25rem 3rem; }
.site-footer { border-top: 1px solid var(--line); color: var(--text-grey); padding: 1rem 1.25rem; text-align: center; font-size: .875rem; }
h1 { font-size: 1.75rem; margin: 0 0 1rem; }
h2 { font-size: 1.25rem; margin: 1.5rem 0 .75rem; }
a { color: #0B5CAD; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--dark); outline-offset: 2px; }
.card { background: var(--panel); border-top: 3px solid var(--accent); padding: 1.25rem; margin: 0 0 1.25rem; }
.card.narrow { max-width: 32rem; margin-left: auto; margin-right: auto; }
.muted { color: var(--text-grey); }
.button, button { display: inline-block; background: var(--accent); color: var(--accent-text); border: 2px solid var(--accent); font: inherit; font-weight: 700; padding: .5rem 1rem; cursor: pointer; text-decoration: none; }
.button.secondary, button.secondary { background: #fff; color: var(--dark); border-color: var(--accent); }
.button:hover, button:hover { filter: brightness(.95); }
label { display: block; font-weight: 600; margin: .75rem 0 .25rem; }
input, select, textarea { font: inherit; padding: .5rem; border: 1px solid #767676; width: 100%; max-width: 28rem; background: #fff; color: var(--text); }
.error { color: var(--danger); font-weight: 600; }
.notice { border-left: 4px solid var(--ok); padding: .5rem 1rem; background: #fff; }
.notice.error { border-left-color: var(--danger); }
table { border-collapse: collapse; width: 100%; }
th, td { text-align: left; padding: .5rem .6rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: #fff; border-bottom: 2px solid var(--dark); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.table-wrap { overflow-x: auto; }
@media (max-width: 480px) {
  .content { padding: 1rem .75rem 2rem; }
  h1 { font-size: 1.5rem; }
  /* Touch targets of at least 44px, and fact lists that stack instead of squeezing. */
  .button, button, input, select { min-height: 2.75rem; }
  button.small, .button.small { min-height: 2.75rem; padding: .4rem .8rem; }
  .site-header nav a { padding: .6rem .25rem; display: inline-block; }
  input, select, textarea { max-width: 100%; }
  dl.facts { grid-template-columns: 1fr; }
  dl.facts dd { margin-bottom: .5rem; }
  th, td { padding: .5rem .4rem; }
  .site-header-inner { padding: .5rem .75rem; gap: .5rem 1rem; }
}
td, th { overflow-wrap: anywhere; }
/* Light focus ring where the background is dark. */
.site-header a:focus-visible, .site-header button:focus-visible, .skip-link:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.site-header nav a:focus-visible { background: #3a3a3a; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
.badge { display: inline-block; background: var(--dark); color: #fff; font-size: .8rem; font-weight: 700; padding: .1rem .5rem; vertical-align: middle; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1.25rem; }
tfoot th { background: transparent; border-bottom: 1px solid var(--line); }
form.inline { display: inline; margin: 0; }
button.small { padding: .2rem .6rem; font-size: .875rem; }

dl.facts { display: grid; grid-template-columns: max-content 1fr; gap: .25rem 1.5rem; margin: 0; }
dl.facts dt { font-weight: 600; }
dl.facts dd { margin: 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
ul.alerts, ul.checklist { list-style: none; padding: 0; margin: 0 0 1rem; }
ul.alerts li { padding: 0.5rem 0.75rem; margin-bottom: 0.4rem; border-left: 4px solid #6b7280; background: #f3f4f6; }
ul.alerts li.error { border-left-color: #b91c1c; background: #fef2f2; }
ul.alerts li.warn { border-left-color: #b45309; background: #fffbeb; }
ul.checklist li { padding: 0.25rem 0; }
/* Grouped menus in the header. A menu is a details element: it opens with click, Enter or Space, and Escape closes it. */
.site-header nav { align-items: center; }
.nav-menu { position: relative; }
.nav-menu summary { list-style: none; cursor: pointer; color: #CCCCCC; padding: .25rem .1rem; border-bottom: 2px solid transparent; }
.nav-menu summary::-webkit-details-marker { display: none; }
.nav-menu summary::after { content: ""; display: inline-block; margin-left: .4rem; border: .3rem solid transparent; border-top-color: currentColor; border-bottom: 0; vertical-align: .15rem; }
.nav-menu summary:hover, .nav-menu[open] summary { color: #fff; }
.nav-menu[data-current="true"] summary { color: #fff; border-bottom-color: var(--accent); }
.nav-menu summary:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.nav-menu-items { position: absolute; z-index: 20; top: 100%; left: 0; min-width: 12rem; margin-top: .35rem; background: #fff; border: 1px solid #999; border-top: 3px solid var(--accent); box-shadow: 0 4px 12px rgba(0, 0, 0, .25); display: flex; flex-direction: column; }
.site-header .nav-menu-items a { color: #111; padding: .6rem 1rem; border-bottom: 0; white-space: nowrap; }
.site-header .nav-menu-items a:hover, .site-header .nav-menu-items a:focus { background: #eee; color: #000; }
.site-header .nav-menu-items a[aria-current="page"] { font-weight: 700; box-shadow: inset 4px 0 0 var(--accent); }
.site-header .nav-menu-items a:focus-visible { outline: 3px solid #111; outline-offset: -3px; background: #eee; }
@media (max-width: 600px) {
  .nav-menu { flex: 1 1 100%; }
  .nav-menu summary { padding: .6rem .25rem; display: block; }
  .nav-menu-items { position: static; box-shadow: none; margin: 0 0 .25rem; }
}
.inline-form { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin: .35rem 0; }
.inline-form label { min-width: 12rem; margin: 0; }
