/* Three tertiary HERO links in one shared row; other CTA rows stay unchanged. */
body.prototype-landing .hero .actions > .hero-tertiary-links{grid-column:1/-1;grid-row:3;display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:8px;align-items:center;width:100%;min-width:0}
body.prototype-landing:is(:not(.quiz-in-progress),.mobile-landing-preserved) .hero .hero-tertiary-links > :is(#heroKnowledgeJourney,#heroQuickRules,#heroBrowseTopics) {
  grid-row:1!important;grid-column:1!important;justify-self:start!important;
  display:inline-flex;align-items:center;justify-content:flex-start;
  min-width:0;width:auto!important;max-width:100%;min-height:44px!important;
  padding:8px 0!important;margin:0;border:0!important;border-radius:6px;
  background:transparent!important;color:#3c634b!important;box-shadow:none!important;
  font:500 13px/1.4 Roboto,Arial,sans-serif!important;text-align:left;
  white-space:normal!important;overflow-wrap:break-word;
  text-decoration-line:underline;text-decoration-color:#6c9277;
  text-decoration-thickness:1px;text-underline-offset:5px;text-decoration-skip-ink:auto;
}
body.prototype-landing:is(:not(.quiz-in-progress),.mobile-landing-preserved) .hero .hero-tertiary-links > #heroBrowseTopics {
  grid-column:3!important;justify-self:end!important;text-align:right;justify-content:flex-end;
}
body.prototype-landing:is(:not(.quiz-in-progress),.mobile-landing-preserved) .hero .actions > #heroKnowledgeJourney:focus-visible {
  outline:2px solid #39734b;outline-offset:3px;
}

body.prototype-landing:is(:not(.quiz-in-progress),.mobile-landing-preserved) .hero .hero-tertiary-links > #heroQuickRules{grid-column:2!important;justify-self:center!important;text-align:center;justify-content:center;cursor:pointer}
#heroQuickRules:focus-visible{outline:2px solid #39734b;outline-offset:3px}
#quickRulesDialog{width:min(560px,calc(100% - 32px));max-height:calc(100dvh - 32px);overflow:auto;margin:auto;padding:24px;border:1px solid #dce6dd;border-radius:22px;background:#f8fbf6;color:#102421;box-shadow:0 24px 80px #10242133;font:400 15px/1.55 Roboto,Arial,sans-serif}
#quickRulesDialog::backdrop{background:rgb(12 35 25 / .35)}
#quickRulesDialog .quick-rules-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px}
#quickRulesDialog h2{font:700 24px/1.2 Roboto,Arial,sans-serif;margin:0;color:#102421;letter-spacing:-.4px}
#closeQuickRules{flex:0 0 36px;width:36px;height:36px;padding:0;border:1px solid #dce6dd;border-radius:50%;background:#edf4e9;color:#294d38;font:400 24px/1 Roboto,Arial,sans-serif;cursor:pointer}
#quickRulesDialog .quick-rules-list{list-style:none;padding:0;margin:0;display:grid;gap:12px}
#quickRulesDialog li{display:flex;gap:12px;align-items:flex-start;padding:16px;background:#fff;border:1px solid #e0e8df;border-radius:14px}
#quickRulesDialog .quick-rules-number{display:grid;place-items:center;flex:0 0 28px;height:28px;border-radius:50%;background:#e5f1df;color:#245637;font-weight:700}
#quickRulesDialog h3{font:700 16px/1.4 Roboto,Arial,sans-serif;margin:2px 0 6px;color:#174d33}
#quickRulesDialog p{font:400 14px/1.55 Roboto,Arial,sans-serif;margin:0;color:#52645e}
@media(max-width:420px){#quickRulesDialog{padding:18px}#quickRulesDialog li{padding:12px;gap:10px}#quickRulesDialog h2{font-size:22px}}

/* Text links must not inherit the pill-button clipping on wrapped labels. */
body.prototype-landing .hero .hero-tertiary-links > :is(#heroKnowledgeJourney,#heroQuickRules,#heroBrowseTopics){border-radius:0!important;overflow:visible!important}

/* Keep the icon beside the two text lines on phones. */
@media(max-width:700px){
  .hero-tertiary-links .hero-two-word-label{inline-size:min-content;text-align:center}
  #heroKnowledgeJourney .hero-journey-label{white-space:pre-line;text-align:center}
}
