/* Shared close control, keeping each card's existing positioning and behavior. */
html body:is(.prototype-landing,.group-quiz-page) :is(
 #brandPopoverClose, #heroExplainerClose, #contactClose, #supportClose, #closeQuickRules,
 #closeGroupRules, #soloQuizClose, [data-info-close], [data-scam-close],
 .desktop-hero-tools-close, .desktop-reference-close,
 #supporterDialog form[method="dialog"] > button, .mobile-ranking-dialog-head > button
) {
 display: inline-grid;
 place-items: center;
 box-sizing: border-box;
 width: 44px!important;
 min-width: 44px!important;
 height: 44px!important;
 min-height: 44px!important;
 flex: 0 0 44px;
 padding: 0!important;
 border: 1px solid #cbdacf!important;
 border-radius: 50%!important;
 background: #edf3eb!important;
 box-shadow: none!important;
 color: #164b34!important;
 font: 600 24px/1 system-ui,sans-serif!important;
 text-align: center;
 cursor: pointer;
}
html body:is(.prototype-landing,.group-quiz-page) :is(
 #brandPopoverClose, #heroExplainerClose, #contactClose, #supportClose, #closeQuickRules,
 #closeGroupRules, #soloQuizClose, [data-info-close], [data-scam-close],
 .desktop-hero-tools-close, .desktop-reference-close,
 #supporterDialog form[method="dialog"] > button, .mobile-ranking-dialog-head > button
):focus-visible {
 outline: 3px solid #17603e;
 outline-offset: 2px;
}

/* Give the explainer title and close button the same grid row. Its height
   follows the taller item so the introduction always starts below both. */
body.prototype-landing .hero #heroExplainerPanel > #heroExplainerClose {
 position: static;
 z-index: 1;
 grid-area: 1 / 1 / 2 / -1;
 justify-self: end;
 align-self: start;
}
body.prototype-landing .hero #heroExplainerPanel .hero-explainer-title {
 grid-area: 1 / 1 / 2 / -1;
 align-self: center;
 padding-inline-end: 52px;
}

/* The brand popover uses inline body copy below its block title. */
body.prototype-landing > header #brandPopover > b {
 min-height: 44px;
 padding-inline-end: 44px;
 overflow-wrap: anywhere;
}
