/* K-11: distinguish location, sequence, updated lists and rules. */
.memory-attention-page {
  --ma-ink: #183255;
  --ma-muted: #465d74;
  --ma-line: #d7e3eb;
  --ma-teal: #126f73;
  --ma-violet: #6250aa;
  --ma-paper: #f5f7fc;
}
.memory-attention-page main { color: var(--ma-ink); background: #fff; text-align: center; }
.memory-attention-page main :where(h1, h2, h3, p, li, a) { overflow-wrap: break-word; }
.memory-attention-page main :where(h1, h2, h3) { font-family: var(--font-display); text-wrap: balance; }
.memory-attention-page main :where(p, li) { font-size: 1rem; line-height: 1.75; }
.memory-attention-page :where(.breadcrumbs ol, .zv-actions) { justify-content: center; }
.memory-attention-page .ma-hero { padding-block: clamp(1.75rem, 3vw, 3rem); background: var(--zv-learning-grid), linear-gradient(140deg, #fff, #f5f8fd 55%, #f4f1fc); }
.memory-attention-page :where(.ma-hero, .ma-section, .ma-final-cta)::before,
.memory-attention-page :where(.ma-hero, .ma-section, .ma-final-cta)::after { content: none; }
.memory-attention-page .ma-hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); align-items: center; gap: clamp(1.5rem, 2.5vw, 2.5rem); }
.memory-attention-page .ma-hero-copy h1 { max-width: 23ch; margin: 0 auto 1rem; color: var(--ma-ink); font-size: clamp(2rem, 3vw, 3rem); line-height: 1.16; letter-spacing: -0.02em; overflow-wrap: normal; word-break: normal; }
.memory-attention-page .ma-hero-copy .section-kicker { margin: 0 0 .9rem; color: var(--ma-violet); font-size: .95rem; line-height: 1.5; }
.memory-attention-page .ma-hero-copy .direct-answer { max-width: 46rem; margin-inline: auto; color: var(--ma-muted); font-size: clamp(1rem, 1.2vw, 1.1rem); line-height: 1.65; font-weight: 500; }
.memory-attention-page .ma-image-slot { display: block; width: 100%; max-width: 100%; height: auto; margin: 0; padding: 0; overflow: visible; border: 0; border-radius: 0; outline: 0; background: transparent; box-shadow: none; }
.memory-attention-page .ma-image-slot :where(picture, img) { display: block; width: 100%; max-width: 100%; height: auto; object-fit: contain; border: 0; border-radius: 0; outline: 0; background: transparent; box-shadow: none; }
.memory-attention-page .ma-image-slot figcaption { margin: .7rem auto 0; color: var(--ma-muted); font-size: .95rem; line-height: 1.6; text-align: center; }
.memory-attention-page :where(.ma-section, .ma-faq) { padding-block: clamp(3.4rem, 6vw, 5.2rem); }
.memory-attention-page :where(.ma-choice, .ma-rules, .ma-faq) { background: var(--ma-paper); }
.memory-attention-page .ma-heading { max-width: 60rem; margin: 0 auto 2rem; text-align: center; }
.memory-attention-page .ma-heading h2 { margin: 0 0 .8rem; color: var(--ma-ink); font-size: clamp(1.9rem, 3.5vw, 2.8rem); line-height: 1.2; }
.memory-attention-page .ma-heading p { margin: 0; color: var(--ma-muted); font-weight: 650; }
.memory-attention-page .ma-grid { display: grid; grid-auto-rows: 1fr; align-items: stretch; gap: 1.15rem; }
.memory-attention-page .ma-grid-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.memory-attention-page .ma-grid-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.memory-attention-page .ma-card { display: flex; min-width: 0; height: 100%; flex-direction: column; align-items: center; padding: clamp(1.3rem, 2.5vw, 1.9rem); border: 1px solid var(--ma-line); border-radius: 1.3rem; background: #fff; box-shadow: 0 .35rem 1rem rgb(24 50 85 / 4%); text-align: center; }
.memory-attention-page .ma-card .zv-skill-icon { display: grid; place-items: center; width: 3.5rem; height: 3.5rem; margin: 0 auto 1rem; padding: 0; background: transparent; }
.memory-attention-page .ma-card .zv-skill-icon img { width: 3rem; height: 3rem; object-fit: contain; }
.memory-attention-page :where(.ma-card, .ma-example) h3 { margin: 0 0 .8rem; color: var(--ma-ink); font-size: 1.3rem; line-height: 1.35; }
.memory-attention-page .ma-card p { width: 100%; margin: 0 0 1rem; color: var(--ma-muted); }
.memory-attention-page .ma-card p:last-child { margin-bottom: 0; }
.memory-attention-page .ma-card .ma-card-button { width: 100%; max-width: 26rem; min-height: 3.25rem; margin-top: auto; margin-inline: auto; }
.memory-attention-page .ma-note { max-width: 70rem; margin: 1.6rem auto 0; padding: 1.2rem 1.4rem; border: 1px solid var(--ma-line); border-radius: 1rem; background: #fff; color: var(--ma-muted); text-align: center; }
.memory-attention-page .ma-example { min-width: 0; padding: clamp(1.3rem, 2.5vw, 1.9rem); border: 1px solid var(--ma-line); border-radius: 1.2rem; background: #f9fbfd; text-align: center; }
.memory-attention-page .ma-example p { color: var(--ma-muted); margin: .9rem 0 0; }
.memory-attention-page .ma-example-label { color: var(--ma-teal); font-weight: 850; }
.memory-attention-page .ma-order { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin: 1.2rem 0; padding: 0; list-style: none; }
.memory-attention-page .ma-order li { display: grid; justify-items: center; min-width: 5.5rem; gap: .3rem; padding: .65rem .8rem; border: 1px solid var(--ma-line); border-radius: .65rem; background: #fff; }
.memory-attention-page .ma-order strong { color: var(--ma-violet); font-family: var(--font-display); font-size: 1.5rem; line-height: 1.2; }
.memory-attention-page .ma-list-change { margin: 1.2rem 0 0; display: grid; gap: .5rem; }
.memory-attention-page .ma-list-change > div { padding: .7rem .8rem; border: 1px solid var(--ma-line); border-radius: .65rem; background: #fff; }
.memory-attention-page .ma-list-change dt { margin-bottom: .2rem; color: var(--ma-teal); font-weight: 850; }
.memory-attention-page .ma-list-change dd { margin: 0; color: var(--ma-ink); }
.memory-attention-page .ma-related { display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem; margin-top: 1.6rem; }
.memory-attention-page #main-content .btn.zv-trace-action { border-color: transparent; }
.memory-attention-page .ma-divider { position: relative; z-index: 1; width: min(100% - 2rem, 34rem); height: 0; display: flex; align-items: center; justify-content: space-between; margin-inline: auto; }
.memory-attention-page .ma-divider::before { content: ""; position: absolute; inset-inline: 2rem; top: 50%; height: .18rem; background: linear-gradient(90deg, #6250aa, #377fc5, #269d8e, #d27968); }
.memory-attention-page .ma-divider::after { content: none; }
.memory-attention-page .ma-divider span { position: relative; width: 4.2rem; height: 4.2rem; display: grid; place-items: center; border: 1px solid var(--ma-line); border-radius: 1rem; background: #fff; box-shadow: 0 .3rem .85rem rgb(24 50 85 / 6%); }
.memory-attention-page .ma-divider img { width: 2.5rem; height: 2.5rem; object-fit: contain; }
.memory-attention-page .ma-faq .faq-grid { display: block; max-width: 76rem; }
.memory-attention-page .ma-faq .ma-heading::before { content: none; display: none; }
.memory-attention-page .ma-faq .faq-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: .85rem; }
.memory-attention-page .ma-faq details { margin: 0; overflow: hidden; border: 1px solid var(--ma-line); border-radius: 1rem; background: #fff; box-shadow: none; }
.memory-attention-page .ma-faq summary { position: relative; display: block; min-height: 4.9rem; padding: 1.2rem 3.75rem; color: var(--ma-ink); font-size: 1rem; line-height: 1.55; text-align: center; cursor: pointer; list-style: none; }
.memory-attention-page .ma-faq summary::-webkit-details-marker { display: none; }
html[lang] .memory-attention-page #main-content .ma-faq summary::after { content: "+"; position: absolute; inset-inline-end: 1rem; top: 0; bottom: 0; display: grid; place-items: center; width: 2rem; height: 2rem; margin-block: auto; padding: 0; border: 1px solid #d9d3ec; border-radius: .45rem; background: #f5f2fc; background-image: none; color: var(--ma-violet); font-family: var(--font-body); font-size: 1.45rem; font-weight: 800; line-height: 1; transform: none; transition: none; }
html[lang] .memory-attention-page #main-content .ma-faq details[open] summary::after { content: "−"; background-image: none; transform: none; }
.memory-attention-page .ma-faq details > p { margin: 0; padding: .2rem 1.2rem 1.25rem; color: var(--ma-muted); font-size: 1rem; line-height: 1.75; text-align: center; }
.memory-attention-page .ma-final-cta h2 { max-width: 25ch; }
.memory-attention-page .ma-final-cta p { max-width: 48rem; }
.memory-attention-page main :where(a, summary):focus-visible { outline: 3px solid var(--ma-violet); outline-offset: 4px; }
.memory-attention-page .ma-final-cta a:focus-visible { outline-color: #fff; }
@media (max-width: 64rem) {
  .memory-attention-page .ma-grid-three { grid-template-columns: 1fr; }
}
@media (max-width: 52rem) {
  .memory-attention-page .ma-hero-grid,
  .memory-attention-page .ma-grid-two,
  .memory-attention-page .ma-faq .faq-list { grid-template-columns: 1fr; }
  .memory-attention-page .ma-hero-copy h1 { font-size: clamp(2.3rem, 9vw, 3.5rem); }
  .memory-attention-page .ma-hero .zv-actions { flex-direction: column; align-items: stretch; }
  .memory-attention-page .ma-card { padding: 1.5rem 1.2rem; }
  .memory-attention-page .ma-card h3 { max-width: 29ch; margin-inline: auto; }
  .memory-attention-page .ma-heading h2 { font-size: clamp(1.8rem, 7.5vw, 2.4rem); }
  .memory-attention-page .ma-related { flex-direction: column; align-items: stretch; }
}
@media (prefers-reduced-motion: reduce) {
  .memory-attention-page #main-content .zv-trace-action::before { animation: none !important; }
  .memory-attention-page main *,
  .memory-attention-page main *::before,
  .memory-attention-page main *::after { animation: none !important; transition: none !important; }
}

/* Hero rhythm: natural words, a readable lead and uncropped artwork. */
.memory-attention-page .ma-hero .breadcrumbs { margin-block-end: 1.5rem; }
.memory-attention-page .ma-hero .zv-actions { gap: .75rem; margin-block-start: 1.25rem; }
.memory-attention-page .ma-hero .zv-actions .btn { min-height: 3rem; padding: .75rem 1rem; font-size: .95rem; line-height: 1.45; }
.memory-attention-page .ma-hero-copy { min-width: 0; }
@media (min-width: 52.01rem) and (max-width: 68rem) {
  .memory-attention-page .ma-hero-grid { grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: 1.5rem; }
  .memory-attention-page .ma-hero-copy h1 { font-size: clamp(1.85rem, 3.1vw, 2.35rem); }
}
@media (max-width: 52rem) {
  .memory-attention-page .ma-hero { padding-block: 1.75rem 2.5rem; }
  .memory-attention-page .ma-hero-grid { grid-template-columns: minmax(0, 1fr); }
  .memory-attention-page .ma-hero-copy h1 { max-width: 25ch; font-size: clamp(1.9rem, 7.7vw, 2.6rem); line-height: 1.2; }
  .memory-attention-page .ma-hero .direct-answer { font-size: 1rem; line-height: 1.7; }
  .memory-attention-page .ma-hero .breadcrumbs { margin-block-end: 1.25rem; }
}

/* Compact desktop keeps the hero actions above the fold without hiding content. */
@media (min-width: 52.01rem) and (max-height: 820px) {
  .memory-attention-page .ma-hero { padding-block: 1.75rem; }
  .memory-attention-page .ma-hero-copy h1 { font-size: clamp(2rem, 2.8vw, 2.75rem); }
  .memory-attention-page .ma-hero .breadcrumbs { margin-block-end: 1.125rem; }
  .memory-attention-page .ma-hero .zv-actions { margin-block-start: 1rem; }
  .memory-attention-page .ma-hero .ma-icon { width: 3rem; height: 3rem; margin: 0 auto .6rem; }
  .memory-attention-page .ma-hero .ma-icon img { width: 2.5rem; height: 2.5rem; }
}
