/* LUMEN A — THE MATERIALS INDEX
   Rhode / Nécessaire lineage. One column, full measure, flush left.
   The atomic unit is the ruled register row. There are no cards.

   Contrast (WCAG 2.2, computed): ink 12.02:1 · muted 4.92:1 · accent 7.62:1
   · on-accent 8.61:1 · control border 3.09:1.
   --a-line is a DECORATIVE hairline (1.24:1, exempt under 1.4.11).
   --a-line-strong bounds interactive controls. Never swap them.

   SELECTOR OWNERSHIP. Every section emits `stylesheet_tag` for this file, so a
   duplicate <link> to lumen.css lands after every page-scoped sheet the footer
   follows. Two files defining one selector therefore resolve by DOM position,
   not by intent. The `.a-pdp__*` layout rules used to live here AND in
   lumen-a-pdp.css; the footer's copy of this file silently won, and the product
   gallery rendered 544px wide instead of 770px. Page-scoped selectors now have
   exactly one owner: lumen-a-pdp.css. Do not re-add them here. */

:root {
  --a-ink: #2E2E2E;
  --a-ground: #F2F1EE;
  --a-surface: #FFFFFF;
  --a-muted: #6B6862;
  --a-accent: #2536C8;
  --a-on-accent: #FFFFFF;
  --a-line: #DCDAD5;
  --a-line-strong: #8C8983;
  --a-radius: 2px;
  --a-pad: clamp(3rem, 7vw, 6rem);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip-path: inset(50%);
  overflow: hidden; white-space: nowrap;
}

.a-wrap {
  max-width: 68rem;
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
}

.a-masthead, .a-index, .a-actives, .a-faq {
  background: var(--a-ground);
  color: var(--a-ink);
  padding-block: var(--a-pad);
}

.a-masthead :is(a, button, summary, input, label):focus-visible,
.a-index :is(a, button, summary, input, label):focus-visible,
.a-actives :is(a, button, summary, input, label):focus-visible,
.a-faq :is(a, button, summary, input, label):focus-visible,
.a-pdp :is(a, button, summary, input, label):focus-visible {
  outline: 2px solid var(--a-accent);
  outline-offset: 3px;
}

/* Masthead */
.a-thesis {
  font-size: clamp(1.25rem, 2.4vw, 1.875rem);
  line-height: 1.35;
  letter-spacing: -0.01em;
  max-width: 34ch;
  margin: 0;
}
.a-rule { border: 0; border-top: 1px solid var(--a-ink); margin: 2.5rem 0; }
.a-plate { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.a-caption {
  font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--a-muted); margin: 0.75rem 0 0;
}

/* Headings */
.a-h2 { font-size: clamp(1.375rem, 2.2vw, 1.75rem); letter-spacing: -0.01em; margin: 0; }
.a-h3 { font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--a-muted); margin: 2.5rem 0 0.75rem; }
.a-lede { max-width: 52ch; color: var(--a-muted); margin: 1rem 0 2rem; }
.a-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.a-note { color: var(--a-muted); border: 1px dashed var(--a-line-strong); padding: 1.25rem; max-width: 60ch; }

/* The signature control: a two-state segmented toggle that REORDERS. */
.a-toggle { display: flex; border: 1px solid var(--a-line-strong); border-radius: var(--a-radius); padding: 0; margin: 0; }
.a-seg { position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 1rem; cursor: pointer; font-size: 0.8125rem; }
.a-seg + .a-seg { border-left: 1px solid var(--a-line-strong); }
.a-seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.a-seg:has(input:checked) { background: var(--a-accent); color: var(--a-on-accent); }
.a-seg:has(input:focus-visible) { outline: 2px solid var(--a-accent); outline-offset: 2px; }

/* Both orderings exist in the DOM. display:none removes one from the
   accessibility tree and the tab ring. CSS `order` would not. */
.a-list[data-view="step"] { display: none; }
.a-index:has(#a-by-step:checked) .a-list[data-view="type"] { display: none; }
.a-index:has(#a-by-step:checked) .a-list[data-view="step"] { display: block; }

/* The register */
.a-list { list-style: none; margin: 0; padding: 0; }
.a-legend, .a-row {
  display: grid;
  grid-template-columns: 2.5rem minmax(10rem, 1fr) minmax(8rem, 13rem) 5rem 5rem 7.5rem 6rem;
  gap: 1rem;
  align-items: baseline;
}
.a-legend {
  font-size: 0.6875rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--a-muted); padding-bottom: 0.75rem; border-bottom: 1px solid var(--a-ink);
}
.a-legend--3 { grid-template-columns: minmax(10rem, 1fr) minmax(8rem, 14rem) 8rem 2rem; }
.a-legend--cart { grid-template-columns: minmax(10rem, 1fr) 5rem 7.5rem 5rem 6rem; }

.a-row { padding: 1.125rem 0; border-bottom: 1px solid var(--a-line); }
.a-row__idx { font-variant-numeric: tabular-nums; color: var(--a-muted); font-size: 0.8125rem; }
.a-row__name a { color: inherit; text-underline-offset: 3px; font-weight: 600; }
.a-row__type { display: block; font-size: 0.75rem; color: var(--a-muted); }
.a-row__active { color: var(--a-accent); font-size: 0.875rem; font-variant-numeric: tabular-nums; }
.a-row__size, .a-row__price, .a-row__unit { font-variant-numeric: tabular-nums; font-size: 0.875rem; }
.a-row__unit { color: var(--a-muted); }
.a-row__per { font-size: 0.6875rem; }
.a-row__act { justify-self: end; }

.a-add {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; min-width: 8.5rem; padding: 0 0.875rem;
  border: 1px solid var(--a-line-strong); border-radius: var(--a-radius);
  background: var(--a-surface); color: inherit; font: inherit; font-size: 0.8125rem;
  cursor: pointer; text-decoration: none; white-space: nowrap;
}
.a-add:hover { border-color: var(--a-ink); }
.a-add--out { color: var(--a-muted); border-style: dashed; cursor: default; }

@media (max-width: 60rem) {
  .a-legend { display: none; }
  .a-row { grid-template-columns: 2.5rem 1fr auto; row-gap: 0.35rem; }
  .a-row__active, .a-row__size, .a-row__price, .a-row__unit { grid-column: 2; font-size: 0.8125rem; }
  .a-row__act { grid-column: 3; grid-row: 1 / span 2; align-self: center; }
}

/* Ingredient index */
.a-list--actives .a-active { border-bottom: 1px solid var(--a-line); }
.a-active summary {
  display: grid;
  grid-template-columns: minmax(10rem, 1fr) minmax(8rem, 14rem) 8rem 2rem;
  gap: 1rem; align-items: baseline;
  min-height: 44px; padding: 1rem 0; cursor: pointer; list-style: none;
}
.a-active summary::-webkit-details-marker { display: none; }
.a-active summary::after { content: "+"; justify-self: end; color: var(--a-accent); }
.a-active details[open] summary::after { content: "\2212"; }
.a-active__name { font-weight: 600; }
.a-active__fn { color: var(--a-muted); font-size: 0.875rem; }
.a-active__conc { color: var(--a-accent); font-variant-numeric: tabular-nums; font-size: 0.875rem; }
.a-active__body { padding: 0 0 1.25rem; max-width: 60ch; }
.a-active__body p { margin: 0 0 0.5rem; }
.a-inci { font-size: 0.8125rem; color: var(--a-muted); }
@media (max-width: 48rem) {
  .a-active summary { grid-template-columns: 1fr 2rem; row-gap: 0.25rem; }
  .a-active__fn, .a-active__conc { grid-column: 1; }
}

/* FAQ */
.a-list--faq li { border-bottom: 1px solid var(--a-line); }
.a-list--faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  min-height: 44px; padding: 1rem 0; cursor: pointer; list-style: none; font-size: 1.0625rem;
}
.a-list--faq summary::-webkit-details-marker { display: none; }
.a-list--faq summary::after { content: "+"; color: var(--a-accent); }
.a-list--faq details[open] summary::after { content: "\2212"; }
.a-faq__a { margin: 0; padding: 0 0 1.25rem; max-width: 62ch; color: var(--a-muted); }

/* Buy controls — shared by the PDP, the register and the cart. */
.a-spec { margin: 0 0 1.75rem; border-top: 1px solid var(--a-ink); }
.a-spec div { display: grid; grid-template-columns: 10rem 1fr; gap: 1rem; padding: 0.75rem 0; border-bottom: 1px solid var(--a-line); }
.a-spec dt { font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--a-muted); }
.a-spec dd { margin: 0; font-variant-numeric: tabular-nums; }

.a-sizes { margin-bottom: 1.5rem; }
.a-sizes__label { font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--a-muted); margin: 0 0 0.5rem; }
.a-sizes__list { display: flex; gap: 0.5rem; list-style: none; margin: 0; padding: 0; }
.a-size {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 1rem;
  border: 1px solid var(--a-line-strong); border-radius: var(--a-radius);
  color: inherit; text-decoration: none; font-variant-numeric: tabular-nums; font-size: 0.875rem;
}
.a-size.is-current { background: var(--a-ink); color: var(--a-ground); border-color: var(--a-ink); }

.a-cta {
  display: block; width: 100%; min-height: 48px;
  background: var(--a-accent); color: var(--a-on-accent);
  border: 0; border-radius: var(--a-radius);
  font: inherit; font-size: 0.9375rem; cursor: pointer;
}
.a-cta--out { background: none; color: var(--a-muted); border: 1px dashed var(--a-line-strong); text-align: center; padding: 0.75rem; }

.a-place__row { display: grid; grid-template-columns: 2rem 1fr auto auto; gap: 1rem; align-items: center; padding: 0.75rem 0; border-bottom: 1px solid var(--a-line); }
.a-place__n { font-variant-numeric: tabular-nums; color: var(--a-accent); }
.a-place__row a { color: inherit; }
.a-place__meta { font-size: 0.6875rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--a-muted); }

.a-stat b { color: var(--a-accent); font-variant-numeric: tabular-nums; }

/* Cart — a spec register, not an upsell surface. */
.a-cart__row { display: grid; grid-template-columns: minmax(10rem, 1fr) 5rem 7.5rem 5rem 6rem; gap: 1rem; align-items: center; padding: 1rem 0; border-bottom: 1px solid var(--a-line); font-variant-numeric: tabular-nums; }
.a-cart__name a { color: inherit; font-weight: 600; }
.a-cart__unit { color: var(--a-muted); }
.a-cart__total { text-align: right; }
.a-qty { width: 4rem; min-height: 44px; border: 1px solid var(--a-line-strong); border-radius: var(--a-radius); background: var(--a-surface); padding: 0 0.5rem; font: inherit; }
.a-cart__foot { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; margin-top: 2rem; }
.a-cart__sub { margin: 0 auto 0 0; font-variant-numeric: tabular-nums; }
.a-cart__foot .a-cta { width: auto; padding: 0 2rem; }
@media (max-width: 48rem) {
  .a-cart__row { grid-template-columns: 1fr auto; row-gap: 0.35rem; }
  .a-cart__total { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
