/* ProAgriMedia 2026 Preference List — screen stylesheet.

   The sheet reads as one branded document: a white letterhead with the primary logo, a navy
   toolbar carrying the reversed logo, then a single paper column where every question is a
   row — question on the left, options on the right. The left-label form means a one-item
   section is simply a short row, so nothing has to be paired up to hide empty space.

   Colour never carries a selection on its own: a ticked option also gets a drawn tick and a
   heavier label, which is also what survives a black-and-white print. */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--toolbar-h) + var(--sp-4));
}

body {
  margin: 0;
  background: var(--page-bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-md);
  line-height: 1.5;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

button,
input,
textarea {
  font: inherit;
  color: inherit;
}

a {
  color: var(--heading);
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: var(--sp-4);
  top: -100px;
  z-index: 100;
  padding: var(--sp-2) var(--sp-4);
  background: var(--paper);
  color: var(--heading);
  font-weight: var(--fw-bold);
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  top: var(--sp-4);
}

/* Print only. */
.running-head,
.region-summary {
  display: none;
}

/* ---------------------------------------------------------------- buttons */

#print,
#print-2,
#clear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 var(--sp-5);
  border: 0;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-family: var(--font-heading);
  transition: background-color var(--ease), color var(--ease);
}

/* White on brand red is 4.0:1, which clears AA only as large text — keep this label bold at
   18.66px or more, or the button fails. */
#print,
#print-2 {
  background: var(--accent);
  color: var(--white);
  font-size: 1.1667rem;
  font-weight: var(--fw-bold);
}

#print:hover,
#print-2:hover {
  background: var(--accent-text);
}

#print {
  min-height: 40px;
  padding: 0 var(--sp-4);
  white-space: nowrap;
}

#clear {
  background: transparent;
  color: var(--heading);
  font-size: var(--fs-md);
  font-weight: var(--fw-semibold);
  border: 1px solid var(--rule-strong);
}

#clear:hover {
  border-color: var(--heading);
}

/* --------------------------------------------------------------- masthead */

.masthead {
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}

.masthead-inner {
  max-width: var(--sheet-width);
  margin: 0 auto;
  padding: var(--sp-6) var(--sp-6) var(--sp-7);
}

.masthead-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-5);
  padding-bottom: var(--sp-5);
  border-bottom: 1px solid var(--rule);
}

.logo-tag img {
  width: 264px;
}

.masthead-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2) var(--sp-6);
  margin: 0;
}

.masthead-meta dt {
  font-size: var(--fs-xs);
  color: var(--ink-muted);
}

.masthead-meta dd {
  margin: 0;
  font-family: var(--font-heading);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--heading);
}

.masthead h1 {
  margin: var(--sp-7) 0 0;
  font-family: var(--font-heading);
  font-size: var(--fs-2xl);
  font-weight: var(--fw-bold);
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--heading);
}

.masthead h1 span {
  display: block;
}

/* The one place the CI's red-to-navy gradient appears on screen: a short rule under the
   title. Used large it turned into wallpaper. */
.masthead h1::after {
  content: "";
  display: block;
  width: 72px;
  height: 4px;
  margin-top: var(--sp-5);
  background: var(--band-gradient);
  border-radius: 2px;
}

.masthead-lede {
  max-width: 60ch;
  margin: var(--sp-5) 0 0;
  font-size: 1.0625rem;
  color: var(--ink-muted);
}

.prepared-for {
  margin-top: var(--sp-6);
  padding: var(--sp-5);
  background: var(--surface-quiet);
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
}

.prepared-for-label {
  margin: 0 0 var(--sp-4);
  font-family: var(--font-heading);
  font-size: var(--fs-md);
  font-weight: var(--fw-semibold);
  color: var(--heading);
}

.prepared-fields {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--sp-4);
}

.pf label,
.field label {
  display: block;
  margin-bottom: var(--sp-1);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--ink);
}

.pf input,
.field input,
.field textarea,
.region-filter-input {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: var(--sp-2) var(--sp-3);
  background: var(--paper);
  border: 1px solid var(--control-border);
  border-radius: var(--radius-sm);
  font-size: var(--fs-md);
  transition: border-color var(--ease);
}

.pf input::placeholder,
.field textarea::placeholder,
.region-filter-input::placeholder {
  color: var(--ink-muted);
}

.pf input:hover,
.field input:hover,
.field textarea:hover,
.region-filter-input:hover {
  border-color: var(--heading);
}

.pf input:focus-visible,
.field input:focus-visible,
.field textarea:focus-visible,
.region-filter-input:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 0;
  border-color: var(--focus-ring);
}

.pf input[aria-invalid="true"] {
  border: 2px solid var(--accent);
  background: var(--accent-tint);
}

/* -------------------------------------------------------------- statusbar */

.statusbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--band-bg);
  color: var(--band-fg);
  box-shadow: 0 2px 12px rgba(30, 54, 91, 0.18);
}

.statusbar-inner {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  max-width: var(--sheet-width);
  min-height: var(--toolbar-h);
  margin: 0 auto;
  padding: 0 var(--sp-6);
}

.statusbar-logo {
  width: 100px;
  flex: none;
}

.statusbar-where {
  display: none;
  margin: 0;
  font-family: var(--font-heading);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
}

.statusbar-nav {
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.statusbar-nav::-webkit-scrollbar {
  display: none;
}

.statusbar-nav ul {
  display: flex;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.chapter-link {
  display: block;
  padding: var(--sp-2);
  border-radius: var(--radius-sm);
  color: var(--band-fg-muted);
  font-family: var(--font-heading);
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: inset 0 -2px 0 transparent;
  transition: color var(--ease), background-color var(--ease);
}

.chapter-link:hover {
  color: var(--band-fg);
  background: var(--band-bg-raised);
}

.chapter-link.is-active {
  color: var(--band-fg);
  box-shadow: inset 0 -2px 0 var(--accent);
  border-radius: 0;
}

.chapter-link:focus-visible,
.statusbar #print:focus-visible {
  outline-color: var(--band-fg);
}

.statusbar-count {
  flex: none;
  margin: 0;
  font-size: var(--fs-sm);
  color: var(--band-fg-muted);
  white-space: nowrap;
}

.statusbar-count strong {
  font-family: var(--font-heading);
  font-size: var(--fs-lg);
  font-weight: var(--fw-bold);
  color: var(--band-fg);
}

/* ------------------------------------------------------------------ sheet */

.sheet {
  display: block;
  max-width: var(--sheet-width);
  margin: var(--sp-7) auto 0;
  background: var(--paper);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  box-shadow: var(--shadow-sheet);
  overflow: hidden;
}

/* ---------------------------------------------------------- chapter bands */

.chapter {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas:
    "num name count"
    "num promise count";
  column-gap: var(--sp-5);
  align-items: center;
  padding: var(--sp-6) var(--sp-6) calc(var(--sp-6) + 4px);
  background: var(--band-bg);
  color: var(--band-fg);
  overflow: hidden;
  scroll-margin-top: var(--toolbar-h);
}

/* The matrix mark bleeding off the right edge. Decoration only — nothing is written on it. */
.chapter::after {
  content: "";
  position: absolute;
  right: -48px;
  top: 50%;
  width: 200px;
  height: 200px;
  transform: translateY(-50%);
  background: url("../assets/proagrimedia-matrix-transparent.png") center / contain no-repeat;
  opacity: 0.1;
  pointer-events: none;
}

/* The accent strip alternates — gradient, red, gradient, red, gradient — so the gradient
   stays the rare thing. `--band-strip` is local to this rule set. */
.chapter::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: var(--band-strip, var(--band-gradient));
}

.chapter[data-band="navy"] {
  --band-strip: var(--accent);
}

.chapter-number {
  grid-area: num;
  align-self: start;
  margin: 0;
  font-family: var(--font-heading);
  font-size: var(--fs-2xl);
  font-weight: var(--fw-bold);
  line-height: 1;
  color: var(--accent);
}

.chapter-name {
  grid-area: name;
  margin: 0;
  font-family: var(--font-heading);
  font-size: var(--fs-xl);
  font-weight: var(--fw-bold);
  line-height: 1.15;
  letter-spacing: 0.01em;
}

.chapter-name em {
  font-style: normal;
}

.chapter-promise {
  grid-area: promise;
  max-width: 58ch;
  margin: var(--sp-1) 0 0;
  color: var(--band-fg-muted);
  font-size: var(--fs-md);
}

.chapter-count {
  grid-area: count;
  position: relative;
  z-index: 1;
  margin: 0;
  padding: var(--sp-1) var(--sp-3);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius-pill);
  font-size: var(--fs-sm);
  color: var(--band-fg-muted);
  white-space: nowrap;
}

.chapter-count span {
  font-weight: var(--fw-bold);
  color: var(--band-fg);
}

.chapter-toggle {
  display: none;
}

.chapter-body {
  padding: 0 var(--sp-6) var(--sp-4);
}

.chapter-body.is-collapsed {
  display: none;
}

/* --------------------------------------------------------------- sections */

.section {
  display: grid;
  grid-template-columns: var(--label-col) minmax(0, 1fr);
  column-gap: var(--sp-6);
  padding: var(--sp-6) 0;
  border-top: 1px solid var(--rule);
}

.section:first-child {
  border-top: 0;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  align-content: start;
  gap: var(--sp-1) var(--sp-2);
}

.section-index {
  font-family: var(--font-heading);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--accent-text);
}

.section-title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: var(--fs-md);
  font-weight: var(--fw-semibold);
  line-height: 1.3;
  letter-spacing: 0.03em;
  color: var(--heading);
}

.section-count {
  min-width: 24px;
  padding: 0 var(--sp-2);
  border-radius: var(--radius-pill);
  background: var(--heading);
  color: var(--white);
  font-family: var(--font-heading);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  line-height: 20px;
  text-align: center;
}

.section-count.is-empty {
  display: none;
}

.section-note {
  flex-basis: 100%;
  margin: var(--sp-1) 0 0;
  font-size: var(--fs-sm);
  color: var(--ink-muted);
}

/* `min-inline-size: 0` or a fieldset refuses to shrink inside a grid track. */
.items,
.compare-col {
  align-self: start;
  align-content: start;
  min-inline-size: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

/* ----------------------------------------------------------- choice items */

.items[data-density="row"],
.items[data-density="card"] {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--sp-2);
}

.items[data-density="card"] {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

.items[data-density="solo"] {
  display: grid;
  grid-template-columns: minmax(0, 360px);
}

.item {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: var(--sp-3) var(--sp-4);
  background: var(--paper);
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: border-color var(--ease), background-color var(--ease);
}

.item:hover {
  border-color: var(--heading);
}

.item input,
.chip input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.item-label {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  column-gap: var(--sp-3);
  align-items: start;
  font-size: var(--fs-md);
  line-height: 1.35;
}

/* The drawn box, in flow as the label's first grid cell. */
.item-label::before {
  content: "";
  grid-row: 1;
  grid-column: 1;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  background: var(--paper) center / 70% no-repeat;
  border: 1.5px solid var(--control-border);
  border-radius: var(--radius-sm);
  transition: background-color var(--ease), border-color var(--ease);
}

.item-sub {
  grid-column: 2;
  display: block;
  margin-top: 2px;
  font-size: var(--fs-sm);
  color: var(--ink-muted);
}

.item.is-on,
.item:has(input:checked) {
  background: var(--accent-tint);
  border-color: var(--accent);
}

.item.is-on .item-label,
.item:has(input:checked) .item-label {
  font-weight: var(--fw-medium);
}

.item.is-on .item-label::before,
.item:has(input:checked) .item-label::before {
  background-color: var(--control-on);
  background-image: var(--check-white);
  border-color: var(--control-on);
}

/* A radio draws a dot, never a tick — a selected radio showing a checkmark reads as
   "one of several", which is the wrong promise for a duration. */
.item:has(input[type="radio"]) .item-label::before {
  border-radius: 50%;
}

.item.is-on:has(input[type="radio"]) .item-label::before,
.item:has(input[type="radio"]:checked) .item-label::before {
  background-image: radial-gradient(circle, var(--white) 0 4px, transparent 4.5px);
}

.item:has(input:focus-visible) {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

/* ------------------------------------------------------------------ chips */

.items[data-density="chip"] {
  display: flex;
  flex-wrap: wrap;
  align-content: start;
  gap: var(--sp-2);
}

.chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 var(--sp-4);
  background: var(--paper);
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-pill);
  cursor: pointer;
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  transition: border-color var(--ease), background-color var(--ease), opacity var(--ease);
}

.chip:hover {
  border-color: var(--heading);
}

.chip-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.chip-label::before {
  content: "";
  width: 0;
  height: 14px;
  background: var(--check-accent) center / contain no-repeat;
  transition: width var(--ease);
}

.chip.is-on,
.chip:has(input:checked) {
  background: var(--accent-tint);
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
  font-weight: var(--fw-bold);
}

.chip.is-on .chip-label::before,
.chip:has(input:checked) .chip-label::before {
  width: 14px;
}

.chip:has(input:focus-visible) {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

/* Dim, never hide: the printed page must still list every country. */
.chip[data-dimmed="true"] {
  opacity: 0.3;
}

/* ---------------------------------------------------------------- regions */

.items[data-density="chip"]:has(.regions) {
  display: block;
}

.region-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-2) var(--sp-4);
  margin-bottom: var(--sp-5);
}

.region-filter-input {
  flex: 0 1 280px;
  padding-left: 36px;
  background: var(--paper) var(--icon-search) 12px center / 16px no-repeat;
}

.region-selected {
  flex: 1 1 240px;
  margin: 0;
  font-size: var(--fs-sm);
  color: var(--ink-muted);
}

.regions {
  display: grid;
  gap: var(--sp-5);
}

.region-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sp-3);
  margin-bottom: var(--sp-2);
  padding-bottom: var(--sp-2);
  border-bottom: 1px solid var(--rule);
}

.region-name {
  margin: 0;
  font-family: var(--font-heading);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--heading);
}

.region-count {
  font-family: var(--font-body);
  font-weight: var(--fw-regular);
  color: var(--ink-muted);
}

.region-all {
  flex: none;
  min-height: 32px;
  padding: 0 var(--sp-2);
  background: none;
  border: 0;
  border-radius: var(--radius-sm);
  color: var(--accent-text);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  cursor: pointer;
}

.region-all:hover {
  text-decoration: underline;
}

.region-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.region-chips .chip {
  min-height: 36px;
  padding: 0 var(--sp-3);
}

/* ------------------------------------------------------ magazine compare */

.items.compare {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-4);
}

.compare-col {
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-md);
  overflow: hidden;
}

/* Floating the legend is what lets it behave as an ordinary block inside a fieldset. */
.compare-col-head {
  float: left;
  width: 100%;
  /* Two lines tall on every column, so the three titles' rows stay level with each other. */
  min-height: calc(2 * 1.35em + 2 * var(--sp-3) + 3px);
  line-height: 1.35;
  padding: var(--sp-3) var(--sp-4);
  background: var(--surface-quiet);
  border-top: 3px solid var(--accent);
  font-family: var(--font-heading);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.03em;
  color: var(--heading);
}

.compare-col-head + * {
  clear: both;
}

.compare-col .item {
  border: 0;
  border-top: 1px solid var(--rule);
  border-radius: 0;
}

.compare-col .item:hover {
  background: var(--surface-quiet);
}

.compare-col .item.is-on,
.compare-col .item:has(input:checked) {
  background: var(--accent-tint);
  box-shadow: inset 3px 0 0 var(--accent);
}

/* ----------------------------------------------------------------- fields */

.items[data-density="field"] {
  display: grid;
  gap: var(--sp-4);
}

.field input[type="month"] {
  max-width: 280px;
}

.field textarea {
  min-height: 120px;
  resize: vertical;
}

.section[data-kind="field"] .field label {
  /* The section heading and note already say what the field is for. */
  color: var(--ink-muted);
}

/* ---------------------------------------------------------------- closing */

.closing {
  max-width: var(--sheet-width);
  margin: 0 auto;
  background: var(--paper);
  border-top: 1px solid var(--rule);
  box-shadow: var(--shadow-sheet);
  clip-path: inset(0 -40px -40px -40px);
}

.closing-inner {
  display: grid;
  grid-template-columns: var(--label-col) minmax(0, 1fr);
  column-gap: var(--sp-6);
  padding: var(--sp-7) var(--sp-6);
}

.closing-count {
  grid-row: span 3;
  margin: 0;
  font-size: var(--fs-sm);
  color: var(--ink-muted);
}

.closing-count strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: var(--fw-bold);
  line-height: 1;
  color: var(--heading);
}

.closing-note {
  max-width: 52ch;
  margin: 0;
  font-family: var(--font-heading);
  font-size: var(--fs-lg);
  font-weight: var(--fw-medium);
  line-height: 1.35;
  color: var(--heading);
}

.closing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin-top: var(--sp-5);
}

.closing-saved {
  margin: var(--sp-3) 0 0;
  font-size: var(--fs-sm);
  color: var(--ink-muted);
}

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

.contact {
  margin-top: var(--sp-7);
  padding: var(--sp-6) max(var(--sp-6), calc((100% - var(--sheet-width)) / 2 + var(--sp-6)));
  background: var(--band-bg);
  color: var(--band-fg-muted);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4) var(--sp-6);
  font-size: var(--fs-sm);
}

.contact-logo {
  width: 150px;
}

.contact-lines {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2) var(--sp-5);
  margin: 0;
}

.contact a {
  color: var(--band-fg);
}

/* ---------------------------------------------------------------- tablet */

@media screen and (max-width: 900px) {
  :root {
    --toolbar-h: 56px;
  }

  .masthead-inner {
    padding: var(--sp-5) var(--sp-4) var(--sp-6);
  }

  .masthead h1 {
    margin-top: var(--sp-6);
    font-size: 2rem;
  }

  .prepared-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .statusbar-inner {
    gap: var(--sp-3);
    padding: 0 var(--sp-4);
  }

  .statusbar-logo {
    width: 84px;
  }

  .statusbar-nav {
    display: none;
  }

  .statusbar-where {
    display: block;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  #print {
    padding: 0 var(--sp-3);
  }

  .sheet {
    margin-top: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .chapter {
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas:
      "num name"
      "num promise"
      "num count";
    padding: var(--sp-5) var(--sp-4) calc(var(--sp-5) + 4px);
    column-gap: var(--sp-4);
    row-gap: 0;
  }

  .chapter-number {
    font-size: var(--fs-xl);
  }

  .chapter-name {
    font-size: var(--fs-lg);
  }

  .chapter-promise {
    font-size: var(--fs-sm);
  }

  .chapter-count {
    justify-self: start;
    margin-top: var(--sp-3);
  }

  .chapter::after {
    width: 140px;
    height: 140px;
  }

  /* The accordion is a phone affordance, so its button exists only here. */
  .chapter-toggle {
    display: inline-flex;
    align-items: center;
    grid-column: 2;
    justify-self: start;
    position: relative;
    z-index: 1;
    min-height: 40px;
    margin-top: var(--sp-3);
    padding: 0 var(--sp-4);
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--radius-sm);
    color: var(--band-fg);
    font-family: var(--font-heading);
    font-size: var(--fs-sm);
    font-weight: var(--fw-semibold);
    cursor: pointer;
  }

  .chapter-toggle:focus-visible {
    outline-color: var(--band-fg);
  }

  .chapter-body {
    padding: 0 var(--sp-4) var(--sp-2);
  }

  .section {
    grid-template-columns: minmax(0, 1fr);
    row-gap: var(--sp-4);
    padding: var(--sp-5) 0;
  }

  .items.compare {
    grid-template-columns: minmax(0, 1fr);
  }

  .closing {
    box-shadow: none;
  }

  .closing-inner {
    grid-template-columns: minmax(0, 1fr);
    row-gap: var(--sp-4);
    padding: var(--sp-6) var(--sp-4);
  }

  .closing-count {
    grid-row: auto;
  }

  .contact {
    margin-top: 0;
    padding: var(--sp-5) var(--sp-4);
  }
}

/* ------------------------------------------------------------------ phone */

@media screen and (max-width: 560px) {
  .logo-tag img {
    width: 200px;
  }

  .masthead-meta {
    gap: var(--sp-2) var(--sp-5);
  }

  .masthead h1 {
    font-size: 1.75rem;
  }

  .prepared-for {
    padding: var(--sp-4);
  }

  .prepared-fields {
    grid-template-columns: minmax(0, 1fr);
  }

  .statusbar-logo {
    display: none;
  }

  /* On a phone the chapter band already says where you are; the bar keeps the count and
     the button. */
  .statusbar-where {
    display: none;
  }

  .statusbar-count {
    flex: 1;
  }

  .statusbar-count {
    font-size: var(--fs-xs);
  }

  .items[data-density="row"],
  .items[data-density="card"],
  .items[data-density="solo"] {
    grid-template-columns: minmax(0, 1fr);
  }

  .closing-actions > button {
    flex: 1 1 100%;
  }
}

/* ------------------------------------------------------ system settings */

@media (forced-colors: active) {
  .item input,
  .chip input {
    position: static;
    width: auto;
    height: auto;
    opacity: 1;
    margin-right: var(--sp-2);
  }

  .item-label::before,
  .chip-label::before {
    display: none;
  }

  .item-label {
    display: inline;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
  }

  html {
    scroll-behavior: auto;
  }
}
