/* Explicit outcomes extend the accepted card artwork; no JavaScript required. */
.mamer-choice { min-width: 0; align-self: start; }
.age-hub__topic-grid > .mamer-choice[open], .topic-hub__quick-grid > .mamer-choice[open], .home-topics__grid > .mamer-choice[open] { grid-column: 1 / -1; }
.mamer-choice[open] .mamer-material-links { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 4px 20px; }
.mamer-choice > summary { cursor: pointer; list-style: none; }
.mamer-choice > summary::-webkit-details-marker,
.mamer-faq-answer > summary::-webkit-details-marker { display: none; }
.mamer-choice[open] > summary { border-color: #6e907e; border-radius: 15px 15px 0 0; }
.mamer-choice__content { padding: 8px 12px 12px; border: 1px solid #dedfd8; border-top: 0; border-radius: 0 0 15px 15px; background: #fffefa; }
.mamer-choice__content p { color: #485961; font-size: 14px; line-height: 1.6; }
.mamer-material-links { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.mamer-material-links li { min-width: 0; margin: 0; }
.mamer-material-links a { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 2px 8px; align-items: start; padding: 12px 6px; min-height: 44px; color: #315e52; text-decoration: none; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; border-bottom: 1px solid #e7e8e0; }
.mamer-material-links a small { grid-column: 1 / -1; color: #53646b; font-size: 12px; font-weight: 400; }
.mamer-material-links a b { font-weight: 400; }
.mamer-material-links a:hover { text-decoration: underline; }
.mamer-navigation-action { display: block; margin-top: auto; padding-top: 8px; color: #406c60; font-size: 12px; font-weight: 600; line-height: 1.5; }
.mamer-choice__when-open { display: none; }
.mamer-choice[open] > summary .mamer-choice__when-open { display: inline; }
.mamer-choice[open] > summary .mamer-choice__when-closed { display: none; }
.mamer-choice__content > .mamer-choice__title { margin: 6px 6px 10px; color: #263d45; font-size: 15px; font-weight: 600; }
.mamer-page-toc { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; margin-top: 16px; margin-bottom: 24px; font-size: 13px; line-height: 1.5; }
.mamer-page-toc > span { font-weight: 600; }
.mamer-page-toc a { display: inline-flex; align-items: center; min-height: 44px; color: #406c60; text-underline-offset: 3px; }
.mamer-toc-label { margin-bottom: 8px; font-size: 13px; font-weight: 600; color: #53646b; }
.mamer-choice--catalog { grid-column: 1 / -1; }
.topic-hub__quick-grid--illustrated .mamer-choice--catalog > summary { grid-template-columns: 28px minmax(0,1fr) minmax(130px,auto); }
.mamer-choice--catalog .mamer-navigation-action { grid-column: 3; grid-row: 1 / 3; align-self: center; padding-top: 0; }
.mamer-choice--catalog .mamer-material-links { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 4px 20px; }
.age-hub__topic-grid { align-items: start; }
/* Empty health directions keep their legacy fragment IDs without displaying fake cards. */
.topic-directory__legacy-anchors { position: relative; height: 0; }
.topic-directory__legacy-anchors > span { position: absolute; left: 0; top: 0; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); scroll-margin-top: 100px; }
@media (min-width: 1024px) {
	.topic-hub[data-topic-hub="health"] .topic-hub__quick-grid--illustrated { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.age-hub__section-photo > .age-hub__photo-destination { display: block; left: 12px; right: 56px; bottom: 12px; width: auto; height: auto; padding: 6px 9px; border-radius: 8px; color: #315e52; font-size: 12px; line-height: 1.4; font-weight: 600; }
.age-hub__topic-card[data-nav-kind] { justify-content: flex-start; }
.age-hub__topic-card[data-nav-kind] > small { color: #53646b; font-size: 12px; line-height: 1.5; }
.age-hub__topic-card[data-nav-kind] .mamer-navigation-action { font-size: 12px; }
.age-hub__faq-list .mamer-material-links a { display: grid; padding: 12px 6px; border: 0; border-radius: 0; background: none; box-shadow: none; font-size: 14px; }
.age-hub__faq-list .mamer-material-links a span { color: inherit; font-size: inherit; line-height: inherit; font-weight: 600; }
.mamer-faq-answer, .mamer-faq-route { border: 1px solid #dedfd8; border-radius: 12px; background: #fffefa; padding: 0 16px; }
.mamer-faq-answer > summary { display: flex; justify-content: space-between; gap: 16px; cursor: pointer; padding: 16px 0; min-height: 56px; font-size: 14px; font-weight: 600; list-style: none; }
.mamer-faq-answer > div { padding-bottom: 14px; }
.mamer-faq-answer p { margin: 0 0 12px; color: #485961; font-size: 14px; line-height: 1.65; }
.mamer-faq-route > strong { display: block; padding: 16px 0 4px; font-size: 14px; }
.mamer-navigation-note { min-width: 0; }
.topic-hub__quick-grid .mamer-navigation-note:first-child { grid-column: 1 / -1; }
.topic-hub__quick-grid .mamer-navigation-note .topic-hub__quick-card { min-height: 0; padding-bottom: 20px; cursor: default; transform: none; box-shadow: none; }
.mamer-navigation-note:first-child .topic-hub__quick-card { display: grid; grid-template-columns: 88px minmax(0,1fr); gap: 4px 20px; background: #fcf6e9; }
.mamer-navigation-note:first-child .topic-hub__icon-well { grid-column: 1; grid-row: 1 / 5; }
.mamer-navigation-note:first-child :is(strong,small,p,.mamer-navigation-action) { grid-column: 2; }
.mamer-navigation-note p { margin: 4px 0 0; font-size: 14px; line-height: 1.65; color: #485961; }
.home-month-stage { padding: 18px; border: 1px solid #dedfd8; border-radius: 14px; background: #fffefa; min-width: 0; }
.home-month-stage > strong { display: block; margin-bottom: 12px; }
.home-month-stage nav { display: flex; flex-wrap: wrap; gap: 6px; }
.mamer-home .home-month-groups__grid .home-month-stage nav a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 10px; border: 1px solid #d5dfd4; border-radius: 8px; background: #f3f5ef; font-size: 14px; }
.mamer-home .home-topic > small { color: #53646b; font-size: 13px; line-height: 1.5; }
.mamer-home .home-topic .mamer-navigation-action { width: auto; color: #406c60; font-size: 12px; }
.mamer-choice > summary:focus-visible, .mamer-faq-answer > summary:focus-visible, .mamer-material-links a:focus-visible, .home-month-stage a:focus-visible, .mamer-page-toc a:focus-visible { outline: 3px solid #406c60; outline-offset: 3px; }
@media (max-width: 767px) {
	.topic-hub__quick-grid--illustrated .mamer-choice--catalog > summary { grid-template-columns: 28px minmax(0,1fr); }
	.mamer-choice[open] .mamer-material-links { grid-template-columns: 1fr; }
	.mamer-choice--catalog .mamer-material-links { grid-template-columns: 1fr; }
	.mamer-choice--catalog .mamer-navigation-action { grid-column: 2; grid-row: auto; }
	.mamer-navigation-note:first-child .topic-hub__quick-card { grid-template-columns: 76px minmax(0,1fr); gap: 4px 12px; }
	.mamer-navigation-note:first-child p { grid-column: 1 / -1; }
	.age-hub__topic-card[data-nav-kind] { padding: 16px 10px; }
}
@media (prefers-reduced-motion: reduce) { [data-nav-kind] { transition: none !important; transform: none !important; } }

/* Keep every card in its column; insert the native answer after its complete row.
 * Older engines retain the working inline disclosure above. No JS layout state. */
@supports selector(details::details-content) {
	:is(.age-hub__topic-grid,.topic-hub__quick-grid--illustrated,.home-topics__grid) { row-gap: 0; align-items: start; }
	:is(.age-hub__topic-grid,.topic-hub__quick-grid--illustrated,.home-topics__grid) > * { --choice-row: var(--choice-row-6); grid-row: var(--choice-row); margin-bottom: 12px; }
	:is(.age-hub__topic-grid,.topic-hub__quick-grid--illustrated,.home-topics__grid) > details { display: contents; }
	.mamer-choice::details-content { display: contents; }
	.mamer-choice:not([open]) > .mamer-choice__content { display: none; }
	.mamer-choice > summary { grid-row: var(--choice-row); margin-bottom: 12px; }
	.mamer-choice[open] > summary { border-radius: 15px; }
	.mamer-choice > .mamer-choice__content { grid-column: 1 / -1; grid-row: calc(var(--choice-row) + 1); margin-bottom: 12px; padding: 12px 16px; border: 1px solid #d5dfd4; border-radius: 15px; }
	.age-hub__topic-grid > a, .age-hub__topic-grid > details > summary { align-self: stretch; }
	@media (min-width: 1280px) {
		.topic-hub[data-topic-hub="development"] .topic-hub__quick-grid > * { --choice-row: var(--choice-row-5); }
		.topic-hub[data-topic-hub="sleep"] .topic-hub__quick-grid > * { --choice-row: var(--choice-row-4); }
	}
	@media (min-width: 1024px) and (max-width: 1279px) { .topic-hub__quick-grid--illustrated > * { --choice-row: var(--choice-row-4); } }
	@media (max-width: 1023px) { :is(.age-hub__topic-grid,.topic-hub__quick-grid--illustrated,.home-topics__grid) > * { --choice-row: var(--choice-row-3); } }
	@media (max-width: 767px) { :is(.age-hub__topic-grid,.topic-hub__quick-grid--illustrated,.home-topics__grid) > * { --choice-row: var(--choice-row-2); } }
	@media (min-width: 1024px) { .topic-hub[data-topic-hub="health"] .topic-hub__quick-grid--illustrated > * { --choice-row: var(--choice-row-3); } }
}
