/* Seat picker on /moderntex/ (labs and departments). Colours follow the page's tokens so both themes work. */
.seat-picker { margin: 1.5rem 0 2rem; }
.seat-picker fieldset { border: 0; padding: 0; margin: 0; }
.seat-picker legend { font-weight: 600; margin-bottom: 0.75rem; }
.seat-options { display: grid; gap: 0.5rem; }
.seat-option {
  display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 0.5rem 1rem;
  padding: 0.75rem 1rem; border: 1px solid var(--line); border-radius: var(--radius-md, 0.75rem);
  background: var(--panel);
}
.seat-option:has(input:checked) { border-color: var(--purple); background: color-mix(in oklch, var(--purple) 8%, var(--panel)); }
.seat-option:has(input:focus-visible) { outline: 2px solid var(--purple); outline-offset: 2px; }
.seat-option { position: relative; cursor: pointer; }
.seat-option input[type="radio"] { width: 1.25rem; height: 1.25rem; margin: 0; }
.seat-count { font-weight: 600; cursor: pointer; }
/* The label's box is stretched over the whole row, so the price, the gaps and the edges all select the option. */
.seat-count::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
/* The seat-count field of the "25 or more" row has to stay clickable above that cover. */
.seat-qty { position: relative; z-index: 1; cursor: auto; }
.seat-unit, .seat-total { color: var(--muted); font-variant-numeric: tabular-nums; }
.seat-total { color: var(--ink); font-weight: 600; min-width: 5.5rem; text-align: right; }
.seat-qty { grid-column: 2 / -1; display: flex; align-items: center; gap: 0.5rem; color: var(--muted); }
.seat-qty input { width: 6rem; padding: 0.4rem 0.6rem; border: 1px solid var(--field-line); border-radius: 0.5rem; background: var(--bg); color: var(--ink); font: inherit; }
.seat-summary { margin: 1rem 0 0.75rem; }
.seat-error { color: var(--danger, #b42318); }
@media (max-width: 560px) {
  .seat-option { grid-template-columns: auto 1fr auto; }
  .seat-unit { grid-column: 2; }
  .seat-total { grid-column: 3; }
}

/* Comparison table on the product page: even columns inside a scroll container. */
.compare-table.u-table-wide tbody th { min-width: 7.5rem; }
.compare-table.u-table-wide td { min-width: 10rem; }

/* Co-author workflow under the Overleaf comparison. */
.specs-coauthor { margin-top: 28px; max-width: 760px; }
.specs-coauthor h3 { margin-bottom: 8px; }
.specs-coauthor p { color: var(--muted); line-height: 1.65; margin-bottom: 12px; }
.specs-coauthor a { color: var(--purple); font-weight: 600; padding-block: 4px; }

/* Press quote: one customer quote, set large. Reusable; several .press-quote figures
   inside .press-quotes sit in a row and wrap. Colours use page tokens, so both themes work. */
.press-quotes {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: stretch;
  gap: 3rem 4rem; max-width: 1100px; margin: 0 auto; padding: 4.5rem 24px;
}
.press-quote {
  position: relative; flex: 1 1 22rem; max-width: 46rem; margin: 0; text-align: center;
}
.press-quote-ornament {
  display: block; width: 15rem; max-width: 70%; height: auto; margin: 0 auto 1.5rem;
  color: color-mix(in oklch, var(--purple) 65%, var(--bg));
}
.press-quote-text { position: relative; margin: 0; padding: 0; border: 0; background: none; }
.press-quote-text::before, .press-quote-text::after {
  font-family: var(--font-display, 'Fraunces', Georgia, serif); font-weight: 300;
  font-size: clamp(4.5rem, 10vw, 7rem); line-height: 1; color: var(--purple); opacity: 0.55;
}
.press-quote-text::before { content: "\201C" / ""; display: block; height: 0.45em; margin-bottom: 0.1em; }
.press-quote-text::after { content: "\201D" / ""; display: block; height: 0.4em; margin-top: 0.2em; }
.press-quote-text p {
  margin: 0; font-family: var(--font-display, 'Fraunces', Georgia, serif); font-style: italic;
  font-weight: 400; font-size: clamp(1.75rem, 4.2vw, 2.9rem); line-height: 1.2;
  letter-spacing: -0.01em; color: var(--ink); text-wrap: balance;
}
.press-quote-by { display: flex; flex-direction: column; align-items: center; gap: 0.35rem; margin-top: 1.75rem; }
.press-quote-name {
  font-weight: 700; font-size: 0.95rem; letter-spacing: 0.14em; color: var(--ink);
  font-variant-caps: all-small-caps;
}
.press-quote-role { font-size: 0.95rem; line-height: 1.45; color: var(--muted); max-width: 32rem; }
.press-quote-context { font-size: 0.85rem; line-height: 1.5; color: var(--muted); max-width: 32rem; margin-top: 0.4rem; }
.press-quote-context code { font-size: 0.95em; }

/* Customer quotes as a sideways scroller (.press-quotes--scroll): one row of quote panels that snap into place,
   scrolled by the reader (trackpad, swipe, arrow keys on the focused row, or the previous/next buttons that
   quotes.js reveals). Nothing moves on its own. Without scripting it is still a scrollable, snapping row. */
.press-quotes--scroll { display: block; max-width: 1180px; padding: 4.5rem 24px 4rem; }
.press-quotes-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.75rem; }
.press-quotes-head h2 { margin: 0; text-wrap: balance; }
.press-quotes-nav { display: flex; align-items: center; gap: 0.75rem; }
.press-quotes-nav[hidden] { display: none; }
.press-quotes-count { min-width: 6em; text-align: center; font-size: 0.9rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.press-quotes-btn {
  width: 44px; height: 44px; border-radius: 999px; border: 1.5px solid var(--line); background: transparent;
  color: var(--ink); font-size: 1.1rem; line-height: 1; cursor: pointer;
  transition: border-color 160ms cubic-bezier(0.22, 1, 0.36, 1), background-color 160ms cubic-bezier(0.22, 1, 0.36, 1);
}
.press-quotes-btn:hover:not(:disabled) { border-color: var(--purple); }
.press-quotes-btn:focus-visible { outline: 2px solid var(--purple); outline-offset: 2px; }
.press-quotes-btn:disabled { opacity: 0.4; cursor: default; }
.press-quotes-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: 86%; gap: 1.25rem;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: 2px;
  padding: 2px 2px 1rem; scrollbar-width: thin; scrollbar-color: color-mix(in oklch, var(--purple) 45%, transparent) transparent;
}
.press-quotes-track:focus-visible { outline: 2px solid var(--purple); outline-offset: 4px; border-radius: 18px; }
@media (min-width: 760px) { .press-quotes-track { grid-auto-columns: calc((100% - 1.25rem) / 2); } }
/* Wide screens show three panels and a sliver of the fourth, so the row reads as one that continues. */
@media (min-width: 1100px) { .press-quotes-track { grid-auto-columns: calc((100% - 3.75rem) / 3.15); } }
/* Narrow screens: each panel keeps its own height instead of matching the longest quote. */
@media (max-width: 759px) { .press-quotes-track { align-items: start; } }
.press-quotes--scroll .press-quote {
  max-width: none; scroll-snap-align: start; display: flex; flex-direction: column; justify-content: space-between;
  padding: 1.75rem 1.5rem 1.5rem; border: 1px solid var(--line); border-radius: 18px;
  background: color-mix(in oklch, var(--purple) 4%, transparent);
}
.press-quotes--scroll .press-quote-text::before { font-size: 4rem; }
.press-quotes--scroll .press-quote-text::after { content: none; }
.press-quotes--scroll .press-quote-text p { font-size: clamp(1.35rem, 2.4vw, 1.75rem); line-height: 1.28; }
.press-quotes--scroll .press-quote-by { margin-top: 1.5rem; }
@media (prefers-reduced-motion: reduce) { .press-quotes-track { scroll-behavior: auto; } .press-quotes-btn { transition: none; } }
