/*
 * AY-01–AY-22 component layer.
 * Every rule is opt-in: no legacy class is styled until semantic component
 * markup explicitly carries a canonical data-ay-component identity.
 */

:where([data-ay-component]) {
  box-sizing: border-box;
  color: var(--ay-v2-color-ink);
  font-family: var(--ay-v2-font-content);
}

:where([data-ay-component]) *,
:where([data-ay-component]) *::before,
:where([data-ay-component]) *::after {
  box-sizing: border-box;
}

:where([data-ay-component]) :where(a, button, input, select, textarea, summary):focus-visible {
  outline: 3px solid var(--ay-v2-color-focus);
  outline-offset: 3px;
  box-shadow: 0 0 0 2px var(--ay-v2-color-canvas);
}

:where([data-ay-component]) :where(h1, h2, h3, p) {
  margin-block-start: 0;
}

:where([data-ay-component]) :where(h1, h2, h3) {
  color: var(--ay-v2-color-ink);
  font-family: var(--ay-v2-font-content);
  font-weight: var(--ay-v2-weight-title);
  letter-spacing: var(--ay-v2-tracking-title);
  line-height: var(--ay-v2-leading-heading);
  text-wrap: balance;
}

:where([data-ay-component]) :where(p, li, dd) {
  line-height: var(--ay-v2-leading-body);
}

:where([data-ay-component]) [data-ay-slot="eyebrow"] {
  color: var(--ay-v2-color-muted);
  font-family: var(--ay-v2-font-ui);
  font-size: var(--ay-v2-size-label);
  font-weight: var(--ay-v2-weight-strong);
  letter-spacing: var(--ay-v2-tracking-label);
  text-transform: uppercase;
}

:where([data-ay-component]) [data-ay-slot="actions"] {
  display: flex;
  flex-wrap: wrap;
  gap: var(--ay-v2-space-3);
  align-items: center;
}

:where([data-ay-component]) :where([data-ay-action], button[type="submit"]),
.ay-v2-page [data-ay-action] {
  box-sizing: border-box;
  display: inline-flex;
  min-height: 2.875rem;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.25rem;
  border: 1px solid var(--ay-v2-color-ink);
  border-radius: var(--ay-v2-radius-pill);
  background: var(--ay-v2-color-ink);
  color: var(--ay-v2-color-surface);
  font-family: var(--ay-v2-font-ui);
  font-size: var(--ay-v2-size-label);
  font-weight: var(--ay-v2-weight-strong);
  letter-spacing: var(--ay-v2-tracking-label);
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  transition: opacity var(--ay-v2-motion-fast), transform var(--ay-v2-motion-standard);
}

:where([data-ay-component]) :where([data-ay-action], button[type="submit"]):hover,
.ay-v2-page [data-ay-action]:hover {
  background: var(--ay-v2-color-ink);
  border-color: var(--ay-v2-color-ink);
  color: var(--ay-v2-color-surface);
  opacity: 0.9;
  transform: translateY(-1px);
}

:where([data-ay-component]) [data-ay-action="secondary"],
.ay-v2-page [data-ay-action="secondary"] {
  background: transparent;
  color: var(--ay-v2-color-ink);
}

:where([data-ay-component]) [data-ay-action="light"],
.ay-v2-page [data-ay-action="light"] {
  border-color: var(--ay-v2-color-surface);
  background: var(--ay-v2-color-surface);
  color: var(--ay-v2-color-ink);
}

:where([data-ay-component]) [data-ay-action="ghost-light"],
.ay-v2-page [data-ay-action="ghost-light"] {
  border-color: rgb(255 255 255 / 58%);
  background: transparent;
  color: var(--ay-v2-color-surface);
}

:where([data-ay-component]) :where([data-ay-action="secondary"], [data-ay-action="light"], [data-ay-action="ghost-light"]):hover,
.ay-v2-page :where([data-ay-action="secondary"], [data-ay-action="light"], [data-ay-action="ghost-light"]):hover {
  opacity: 0.82;
}

/* Opt-in page composition used by the v2 research renderers only. */
.ay-v2-page {
  width: 100%;
  color: var(--ay-v2-color-ink);
  font-family: var(--ay-v2-font-content);
}

.ay-v2-editorial-section {
  width: min(calc(100% - (2 * var(--ay-v2-gutter))), var(--ay-v2-container));
  margin-inline: auto;
  padding-block: clamp(4.5rem, 7vw, 5.5rem);
}

.ay-v2-editorial-heading {
  max-width: var(--ay-v2-reading);
  margin-block-end: clamp(1.75rem, 4vw, 2.75rem);
}

.ay-v2-editorial-heading h2 {
  margin-block-end: var(--ay-v2-space-4);
  font-size: var(--ay-v2-size-h2);
}

.ay-v2-editorial-heading p:last-child {
  margin-block-end: 0;
  color: var(--ay-v2-color-muted);
  font-size: var(--ay-v2-size-lede);
}

.ay-v2-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--ay-v2-space-5);
}

.ay-v2-check-list {
  display: grid;
  gap: var(--ay-v2-space-3);
  max-width: var(--ay-v2-reading);
  margin: 0;
  padding: 0;
  list-style: none;
}

.ay-v2-check-list li {
  position: relative;
  min-width: 0;
  padding-inline-start: 1.75rem;
  line-height: var(--ay-v2-leading-body);
}

.ay-v2-check-list li::before {
  position: absolute;
  inset-block-start: 0.08em;
  inset-inline-start: 0;
  content: "✓";
  font-weight: var(--ay-v2-weight-strong);
}

/* AY-01 Hero / Split */
[data-ay-component="AY-01"] {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(19rem, 0.72fr);
  gap: clamp(2rem, 6vw, 5rem);
  width: min(calc(100% - (2 * var(--ay-v2-gutter))), var(--ay-v2-container));
  margin-inline: auto;
  padding-block: var(--ay-v2-section-block);
  align-items: center;
}

[data-ay-component="AY-01"] [data-ay-slot="copy"] h1 {
  max-width: 13ch;
  margin-block-end: var(--ay-v2-space-6);
  font-size: var(--ay-v2-size-h1);
}

[data-ay-component="AY-01"] [data-ay-slot="lede"] {
  max-width: 42rem;
  color: var(--ay-v2-color-muted);
  font-size: var(--ay-v2-size-lede);
}

[data-ay-component="AY-01"] [data-ay-slot="media"] {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--ay-v2-color-line);
  border-radius: var(--ay-v2-radius-panel);
  background: var(--ay-v2-color-surface);
  box-shadow: var(--ay-v2-shadow-card);
}

/* AY-02 Hero / Editorial */
[data-ay-component="AY-02"] {
  width: min(calc(100% - (2 * var(--ay-v2-gutter))), var(--ay-v2-container));
  margin-inline: auto;
  padding-block: var(--ay-v2-section-block);
}

[data-ay-component="AY-02"] h1 {
  max-width: 17ch;
  margin-block-end: var(--ay-v2-space-6);
  font-size: var(--ay-v2-size-h1);
}

[data-ay-component="AY-02"] [data-ay-slot="lede"] {
  max-width: var(--ay-v2-reading);
  color: var(--ay-v2-color-muted);
  font-size: var(--ay-v2-size-lede);
}

[data-ay-component="AY-02"] [data-ay-slot="evidence-line"] {
  max-width: var(--ay-v2-reading);
  margin-block-start: var(--ay-v2-space-8);
  padding-block-start: var(--ay-v2-space-4);
  border-top: 1px solid var(--ay-v2-color-line);
  color: var(--ay-v2-color-neutral);
  font-size: 0.875rem;
}

/* AY-03 Credibility Strip and AY-04 Metric Strip */
[data-ay-component="AY-03"],
[data-ay-component="AY-04"] {
  display: grid;
  grid-template-columns: repeat(var(--ay-item-count, 3), minmax(0, 1fr));
  width: min(calc(100% - (2 * var(--ay-v2-gutter))), var(--ay-v2-container));
  margin-inline: auto;
  border-block: 1px solid var(--ay-v2-color-line);
}

[data-ay-component="AY-03"] > *,
[data-ay-component="AY-04"] > * {
  min-width: 0;
  padding: var(--ay-v2-space-6);
  border-inline-end: 1px solid var(--ay-v2-color-line-faint);
}

[data-ay-component="AY-03"] > *:last-child,
[data-ay-component="AY-04"] > *:last-child {
  border-inline-end: 0;
}

[data-ay-component="AY-04"] [data-ay-slot="value"] {
  display: block;
  margin-block-end: var(--ay-v2-space-2);
  font-size: var(--ay-v2-size-h3);
  font-weight: var(--ay-v2-weight-title);
}

/* AY-05 Four-State Visibility Cards */
[data-ay-component="AY-05"] {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: min(calc(100% - (2 * var(--ay-v2-gutter))), var(--ay-v2-container));
  margin-inline: auto;
  border-block: 1px solid var(--ay-v2-color-line);
}

[data-ay-component="AY-05"] [data-ay-state] {
  min-width: 0;
  padding: var(--ay-v2-space-8);
  border-inline-end: 1px solid var(--ay-v2-color-line-faint);
}

[data-ay-component="AY-05"] [data-ay-state]:last-child {
  border-inline-end: 0;
}

[data-ay-component="AY-05"] [data-ay-state] h3 {
  font-size: var(--ay-v2-size-h3);
}

/* AY-06 Service Card, AY-07 Package Card and AY-21 Related Content */
[data-ay-component="AY-06"],
[data-ay-component="AY-07"],
[data-ay-component="AY-21"] [data-ay-slot="item"] {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 15rem;
  flex-direction: column;
  padding: var(--ay-v2-space-8);
  border: 1px solid var(--ay-v2-color-line);
  border-radius: var(--ay-v2-radius-card);
  background: rgb(255 255 255 / 72%);
}

[data-ay-component="AY-06"] h3,
[data-ay-component="AY-07"] h3,
[data-ay-component="AY-21"] h3 {
  margin-block-end: var(--ay-v2-space-3);
  font-size: var(--ay-v2-size-h3);
}

[data-ay-component="AY-06"] [data-ay-slot="actions"],
[data-ay-component="AY-07"] [data-ay-slot="actions"],
[data-ay-component="AY-21"] [data-ay-slot="actions"] {
  margin-block-start: auto;
  padding-block-start: var(--ay-v2-space-6);
}

[data-ay-component="AY-07"][data-ay-variant="recommended"] {
  border-color: var(--ay-v2-color-ink);
  box-shadow: var(--ay-v2-shadow-raised);
}

[data-ay-component="AY-07"] [data-ay-slot="price"] {
  margin-block: var(--ay-v2-space-4);
  font-size: var(--ay-v2-size-h2);
  font-weight: var(--ay-v2-weight-title);
}

[data-ay-component="AY-21"] {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--ay-v2-space-5);
}

/* AY-08 Process Timeline */
[data-ay-component="AY-08"] {
  display: grid;
  grid-template-columns: repeat(var(--ay-step-count, 4), minmax(0, 1fr));
  width: min(calc(100% - (2 * var(--ay-v2-gutter))), var(--ay-v2-container));
  margin-inline: auto;
  counter-reset: ay-process;
}

[data-ay-component="AY-08"] [data-ay-slot="step"] {
  position: relative;
  padding: var(--ay-v2-space-6);
  border-block: 1px solid var(--ay-v2-color-line);
  counter-increment: ay-process;
}

[data-ay-component="AY-08"] [data-ay-slot="step"]::before {
  display: block;
  margin-block-end: var(--ay-v2-space-8);
  color: var(--ay-v2-color-neutral);
  content: counter(ay-process, decimal-leading-zero);
  font-family: var(--ay-v2-font-ui);
  font-size: var(--ay-v2-size-label);
  font-weight: var(--ay-v2-weight-strong);
  letter-spacing: var(--ay-v2-tracking-label);
}

/* AY-09 Evidence Callout and AY-10 Pull Quote */
[data-ay-component="AY-09"],
[data-ay-component="AY-10"] {
  max-width: var(--ay-v2-reading);
  margin-inline: auto;
  padding: var(--ay-v2-space-6) var(--ay-v2-space-8);
  border-inline-start: 3px solid var(--ay-v2-color-ink);
  background: rgb(255 255 255 / 58%);
}

[data-ay-component="AY-09"] [data-ay-slot="meta"],
[data-ay-component="AY-10"] [data-ay-slot="attribution"] {
  color: var(--ay-v2-color-neutral);
  font-family: var(--ay-v2-font-ui);
  font-size: 0.8125rem;
}

[data-ay-component="AY-09"] {
  border-inline-start-color: var(--ay-v2-color-evidence-accent);
}

[data-ay-component="AY-09"][data-ay-risk="high"] {
  border-inline-start-color: var(--ay-v2-color-error);
}

[data-ay-component="AY-10"] blockquote {
  margin: 0;
  font-size: clamp(1.25rem, 2.2vw, 1.75rem);
  font-weight: var(--ay-v2-weight-strong);
  line-height: 1.35;
}

/* AY-11 Benchmark Summary */
[data-ay-component="AY-11"] {
  display: grid;
  grid-template-columns: repeat(var(--ay-result-count, 3), minmax(0, 1fr));
  gap: var(--ay-v2-space-4);
}

[data-ay-component="AY-11"] [data-ay-slot="result"] {
  padding: var(--ay-v2-space-6);
  border: 1px solid var(--ay-v2-color-line);
  border-radius: var(--ay-v2-radius-row);
  background: var(--ay-v2-color-surface);
}

[data-ay-component="AY-11"][data-ay-variant="empty"] {
  display: block;
  padding: var(--ay-v2-space-8);
  border: 1px dashed var(--ay-v2-color-line);
}

/* AY-12 Benchmark Results Table */
[data-ay-component="AY-12"] {
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--ay-v2-color-line);
  border-radius: var(--ay-v2-radius-row);
  background: var(--ay-v2-color-surface);
}

[data-ay-component="AY-12"] table {
  width: 100%;
  min-width: 42rem;
  border-collapse: collapse;
}

[data-ay-component="AY-12"] :where(th, td) {
  padding: var(--ay-v2-space-4);
  border-block-end: 1px solid var(--ay-v2-color-line);
  text-align: start;
  vertical-align: top;
}

[data-ay-component="AY-12"] th {
  background: var(--ay-v2-color-canvas);
  font-family: var(--ay-v2-font-ui);
  font-size: var(--ay-v2-size-label);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* AY-13 Article Header and AY-14 Article Body + Sticky TOC */
[data-ay-component="AY-13"] {
  max-width: var(--ay-v2-reading);
  margin-inline: auto;
  padding-block: var(--ay-v2-section-block) var(--ay-v2-space-12);
}

[data-ay-component="AY-13"] h1 {
  margin-block-end: var(--ay-v2-space-6);
  font-size: var(--ay-v2-size-h1);
}

[data-ay-component="AY-13"] [data-ay-slot="meta"] {
  display: flex;
  flex-wrap: wrap;
  gap: var(--ay-v2-space-3);
  color: var(--ay-v2-color-neutral);
  font-family: var(--ay-v2-font-ui);
  font-size: 0.8125rem;
}

[data-ay-component="AY-14"] {
  display: grid;
  grid-template-columns: minmax(12rem, 0.32fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  width: min(calc(100% - (2 * var(--ay-v2-gutter))), var(--ay-v2-container));
  margin-inline: auto;
}

[data-ay-component="AY-14"] [data-ay-slot="toc"] {
  position: sticky;
  top: 7rem;
  align-self: start;
  max-height: calc(100vh - 9rem);
  overflow: auto;
}

[data-ay-component="AY-14"] [data-ay-slot="body"] {
  max-width: var(--ay-v2-reading);
}

[data-ay-component="AY-14"] [data-ay-slot="body"] h2 {
  margin-block: var(--ay-v2-space-12) var(--ay-v2-space-4);
  font-size: var(--ay-v2-size-h2);
}

/* AY-15 Methodology Box and AY-16 Source / Citation Row */
[data-ay-component="AY-15"] {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--ay-v2-space-4);
  padding: var(--ay-v2-space-8);
  border: 1px solid var(--ay-v2-color-line);
  border-radius: var(--ay-v2-radius-card);
  background: var(--ay-v2-color-canvas);
}

[data-ay-component="AY-15"] dt {
  color: var(--ay-v2-color-neutral);
  font-family: var(--ay-v2-font-ui);
  font-size: var(--ay-v2-size-label);
  font-weight: var(--ay-v2-weight-strong);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

[data-ay-component="AY-15"] dd {
  margin: var(--ay-v2-space-2) 0 0;
}

[data-ay-component="AY-16"] {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--ay-v2-space-5);
  padding-block: var(--ay-v2-space-5);
  border-block-end: 1px solid var(--ay-v2-color-line);
  align-items: start;
}

[data-ay-component="AY-16"] [data-ay-slot="status"] {
  padding: 0.375rem 0.625rem;
  border: 1px solid currentColor;
  border-radius: var(--ay-v2-radius-pill);
  color: var(--ay-v2-color-neutral);
  font-family: var(--ay-v2-font-ui);
  font-size: 0.6875rem;
  font-weight: var(--ay-v2-weight-strong);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* AY-17 Fit Check Grid */
[data-ay-component="AY-17"] {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--ay-v2-space-5);
}

[data-ay-component="AY-17"] [data-ay-fit] {
  padding: var(--ay-v2-space-8);
  border: 1px solid var(--ay-v2-color-line);
  border-radius: var(--ay-v2-radius-card);
  background: rgb(255 255 255 / 64%);
}

[data-ay-component="AY-17"] [data-ay-fit="not-fit"] {
  background: transparent;
}

/* AY-18 FAQ Accordion */
[data-ay-component="AY-18"] {
  display: grid;
  gap: var(--ay-v2-space-3);
}

[data-ay-component="AY-18"] details {
  border: 1px solid var(--ay-v2-color-line);
  border-radius: var(--ay-v2-radius-row);
  background: rgb(255 255 255 / 60%);
}

[data-ay-component="AY-18"] details[open] {
  background: var(--ay-v2-color-surface);
}

[data-ay-component="AY-18"] summary {
  position: relative;
  padding: var(--ay-v2-space-5) 3.5rem var(--ay-v2-space-5) var(--ay-v2-space-6);
  cursor: pointer;
  font-weight: var(--ay-v2-weight-strong);
  list-style: none;
}

[data-ay-component="AY-18"] summary::-webkit-details-marker {
  display: none;
}

[data-ay-component="AY-18"] summary::after {
  position: absolute;
  inset-block-start: 50%;
  inset-inline-end: var(--ay-v2-space-6);
  content: "+";
  transform: translateY(-50%);
}

[data-ay-component="AY-18"] details[open] summary::after {
  content: "−";
}

[data-ay-component="AY-18"] [data-ay-slot="answer"] {
  padding: 0 var(--ay-v2-space-6) var(--ay-v2-space-6);
  color: var(--ay-v2-color-muted);
}

/* AY-19 Lead Form Card */
[data-ay-component="AY-19"] {
  padding: clamp(1.5rem, 4vw, 2.75rem);
  border: 1px solid var(--ay-v2-color-line);
  border-radius: var(--ay-v2-radius-panel);
  background: var(--ay-v2-color-surface);
  box-shadow: var(--ay-v2-shadow-card);
}

[data-ay-component="AY-19"] form {
  display: grid;
  gap: var(--ay-v2-space-4);
}

[data-ay-component="AY-19"] label {
  display: grid;
  gap: var(--ay-v2-space-2);
  color: var(--ay-v2-color-muted);
  font-family: var(--ay-v2-font-ui);
  font-size: var(--ay-v2-size-label);
  font-weight: var(--ay-v2-weight-strong);
  letter-spacing: 0.05em;
}

[data-ay-component="AY-19"] :where(input, select, textarea) {
  width: 100%;
  min-height: 3rem;
  padding: 0.75rem 0 0.625rem;
  border: 0;
  border-bottom: 1px solid var(--ay-v2-color-line);
  border-radius: 0;
  background: transparent;
  color: var(--ay-v2-color-ink);
  font-family: var(--ay-v2-font-content);
  font-size: 1rem;
}

[data-ay-component="AY-19"] :where(input, select, textarea):focus {
  border-bottom-color: var(--ay-v2-color-ink);
}

[data-ay-component="AY-19"] textarea {
  min-height: 8rem;
  resize: vertical;
}

/* AY-20 Final CTA */
[data-ay-component="AY-20"] {
  width: min(calc(100% - (2 * var(--ay-v2-gutter))), var(--ay-v2-container));
  margin-inline: auto;
  padding: clamp(3rem, 8vw, 5.75rem) clamp(1.5rem, 6vw, 6rem);
  border-radius: var(--ay-v2-radius-panel);
  background: var(--ay-v2-color-ink);
  color: var(--ay-v2-color-surface);
  text-align: center;
}

[data-ay-component="AY-20"] :where(h2, p) {
  max-width: 48rem;
  margin-inline: auto;
  color: inherit;
}

[data-ay-component="AY-20"] h2 {
  margin-block-end: var(--ay-v2-space-5);
  font-size: clamp(2rem, 5vw, 4rem);
}

[data-ay-component="AY-20"][data-ay-variant="quiet"] {
  border: 1px solid var(--ay-v2-color-line);
  background: var(--ay-v2-color-surface);
  color: var(--ay-v2-color-ink);
}

[data-ay-component="AY-20"][data-ay-variant="research-bridge"] {
  padding-block: clamp(2.75rem, 6vw, 4.5rem);
}

[data-ay-component="AY-20"]:not([data-ay-variant="quiet"]) :where([data-ay-action="primary"], [data-ay-action="light"]) {
  border-color: var(--ay-v2-color-surface);
  background: var(--ay-v2-color-surface);
  color: var(--ay-v2-color-ink);
}

[data-ay-component="AY-20"]:not([data-ay-variant="quiet"]) :where([data-ay-action="secondary"], [data-ay-action="ghost-light"]) {
  border-color: rgb(255 255 255 / 58%);
  background: transparent;
  color: var(--ay-v2-color-surface);
}

[data-ay-component="AY-20"]:not([data-ay-variant="quiet"]) :where([data-ay-action="primary"], [data-ay-action="secondary"], [data-ay-action="light"], [data-ay-action="ghost-light"]):hover {
  border-color: var(--ay-v2-color-surface);
  background: var(--ay-v2-color-surface);
  color: var(--ay-v2-color-ink);
}

[data-ay-component="AY-20"][data-ay-variant="quiet"] [data-ay-action="light"] {
  border-color: var(--ay-v2-color-ink);
  background: var(--ay-v2-color-ink);
  color: var(--ay-v2-color-surface);
}

[data-ay-component="AY-20"][data-ay-variant="quiet"] [data-ay-action="ghost-light"] {
  border-color: var(--ay-v2-color-ink);
  color: var(--ay-v2-color-ink);
}

[data-ay-component="AY-20"] [data-ay-slot="actions"] {
  justify-content: center;
  margin-block-start: var(--ay-v2-space-8);
}

/* AY-22 Author / Operator Block */
[data-ay-component="AY-22"] {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--ay-v2-space-5);
  max-width: var(--ay-v2-reading);
  padding-block: var(--ay-v2-space-6);
  border-block: 1px solid var(--ay-v2-color-line);
  align-items: center;
}

[data-ay-component="AY-22"] img {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 50%;
  object-fit: cover;
}

[data-ay-component="AY-22"] h2,
[data-ay-component="AY-22"] h3 {
  margin-block-end: var(--ay-v2-space-1);
  font-size: var(--ay-v2-size-h3);
}

@media (max-width: 900px) {
  .ay-v2-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  [data-ay-component="AY-01"],
  [data-ay-component="AY-14"] {
    grid-template-columns: minmax(0, 1fr);
  }

  [data-ay-component="AY-14"] [data-ay-slot="toc"] {
    position: static;
    max-height: none;
  }

  [data-ay-component="AY-03"],
  [data-ay-component="AY-04"],
  [data-ay-component="AY-05"],
  [data-ay-component="AY-08"],
  [data-ay-component="AY-11"],
  [data-ay-component="AY-21"] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .ay-v2-editorial-section {
    padding-block: clamp(3rem, 14vw, 3.5rem);
  }

  .ay-v2-card-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  [data-ay-component="AY-01"],
  [data-ay-component="AY-02"] {
    padding-block: var(--ay-v2-space-16);
  }

  .ay-v2-page [data-ay-component="AY-02"] h1 {
    font-size: clamp(2rem, 9vw, 2.25rem);
    overflow-wrap: anywhere;
  }

  .ay-v2-page :where([data-ay-component]) [data-ay-slot="actions"] {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--ay-v2-space-2);
  }

  .ay-v2-page :where([data-ay-action], button[type="submit"], summary) {
    width: 100%;
    min-height: 2.75rem;
  }

  [data-ay-component="AY-03"],
  [data-ay-component="AY-04"],
  [data-ay-component="AY-05"],
  [data-ay-component="AY-08"],
  [data-ay-component="AY-11"],
  [data-ay-component="AY-15"],
  [data-ay-component="AY-17"],
  [data-ay-component="AY-21"] {
    grid-template-columns: minmax(0, 1fr);
  }

  [data-ay-component="AY-03"] > *,
  [data-ay-component="AY-04"] > *,
  [data-ay-component="AY-05"] [data-ay-state] {
    border-inline-end: 0;
    border-block-end: 1px solid var(--ay-v2-color-line-faint);
  }

  [data-ay-component="AY-19"] :where(input, select, textarea),
  [data-ay-component="AY-19"] button[type="submit"] {
    min-height: 3.25rem;
  }

  .ay-v2-page [data-ay-component="AY-18"] summary {
    padding: 0.75rem 3rem 0.75rem 1rem;
    font-size: 0.9375rem;
    line-height: 1.35;
  }

  .ay-v2-page [data-ay-component="AY-18"] summary::after {
    inset-inline-end: 1rem;
    display: inline-flex;
    width: 1.5rem;
    height: 1.5rem;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    line-height: 1;
  }

  [data-ay-component="AY-20"] {
    border-radius: var(--ay-v2-radius-panel-mobile);
  }

  [data-ay-component="AY-22"] {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  :where([data-ay-component]) *,
  :where([data-ay-component]) *::before,
  :where([data-ay-component]) *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
