.mae{max-width:860px;margin:32px auto;border:1px solid #e7e7e7;border-radius:18px;background:#fff;overflow:hidden;box-shadow:0 10px 35px rgba(0,0,0,.05);color:#333}
.mae__header{padding:28px 30px;background:#fbfaf7}.mae__header h2{margin:.2em 0 .4em;font-size:clamp(24px,4vw,34px)}
.mae__eyebrow{font-size:13px;font-weight:700;letter-spacing:.06em;color:#45778a;margin:0 0 8px}.mae__body{padding:28px 30px}
.mae__body h3{font-size:22px;margin:0 0 8px}.mae__hint{color:#777;margin:0 0 20px}.mae__choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.mae__choice,.mae__scene{appearance:none;text-align:left;border:1px solid #ddd;background:#fff;border-radius:12px;padding:16px;cursor:pointer;transition:.15s}
.mae__choice:hover,.mae__scene:hover{border-color:#f18f53;transform:translateY(-1px)}.mae__choice strong{display:block;font-size:16px}.mae__choice span{display:block;font-size:12px;color:#777;margin-top:4px}
.mae__scenes{display:grid;gap:9px}.mae__scene{width:100%;font-size:15px}.mae__back{border:0;background:none;padding:0;margin:0 0 18px;color:#45778a;cursor:pointer}
.mae__need{display:inline-block;margin:10px 0 18px;padding:7px 10px;border-radius:8px;background:#f4f7f8;font-size:13px}.mae__resources{display:grid;gap:10px}
.mae__resource{display:block;text-decoration:none!important;color:inherit!important;border:1px solid #e2e2e2;border-radius:12px;padding:15px 16px;background:#fff}
.mae__resource:hover{border-color:#f18f53}.mae__resource-kicker{display:block;font-size:11px;color:#777}.mae__resource strong{display:block;margin:3px 0}.mae__resource>span:last-child{font-size:12px;color:#45778a}
.mae__result--safety{border-left:5px solid #fc4b42;padding-left:18px}.mae__empty{padding:16px;border-radius:10px;background:#f7f7f7;color:#666}
@media(max-width:640px){.mae{margin:18px 0;border-radius:12px}.mae__header,.mae__body{padding:22px 18px}.mae__choices{grid-template-columns:1fr}}
.mae__emergency{margin:14px 0;padding:14px 16px;border:2px solid currentColor;border-radius:10px}.mae__emergency strong,.mae__emergency span{display:block}.mae__emergency strong{font-size:1.1em;margin-bottom:4px}

.mae__resource--planned{background:#f7f7f7;color:#888!important;cursor:default;border-style:dashed}.mae__resource--planned span{color:#888!important}

/* v0.4.8: interactive states and footer navigation */
.mae__nav{display:flex;justify-content:center;margin:25px 0 0;text-align:center}
.mae__back{margin:0;padding:9px 14px;min-height:40px}
.mae__choice:hover,.mae__scene:hover,.mae__resource:not(.mae__resource--planned):hover{border-color:#f18f53;border-width:1px;background:rgba(241,143,83,.10)}
.mae__choice,.mae__scene,.mae__resource{box-sizing:border-box}
.mae__destination{overflow-wrap:anywhere;word-break:break-word}
.mae__resource--planned:hover{background:#f7f7f7;border-color:#e2e2e2}
@media (hover:none){.mae__choice:hover,.mae__scene:hover,.mae__resource:not(.mae__resource--planned):hover{background:#fff;border-width:1px;border-color:#ddd}}

/* v0.6.1: selected-path trail and differentiated answer hierarchy */
.mae .mae__trail{display:flex;flex-wrap:wrap;align-items:center;gap:7px;margin:0 0 19px;font-size:13px;line-height:1.6}
.mae .mae__trail-item{display:inline-block;padding:5px 10px;border:1px solid #dedede;border-radius:9px;background:#fafafa;color:#555;font-weight:600}
.mae .mae__trail-separator{color:#888}
.mae .mae__resource:not(.mae__resource--planned),.mae .mae__resource:not(.mae__resource--planned) strong,.mae .mae__resource:not(.mae__resource--planned) .mae__destination{color:#555!important}
.mae .mae__related{margin-top:22px}
.mae .mae__related h4{margin:0 0 9px;font-size:15px;color:#555}
.mae .mae__related-links{display:flex;flex-direction:column;gap:9px}
.mae .mae__related-link{display:block;padding:0;border:0;background:none;color:#555!important;text-decoration:underline!important;text-underline-offset:3px;overflow-wrap:anywhere}
.mae .mae__related-link:hover{color:#333!important;text-decoration-thickness:2px!important}
@media(max-width:640px){.mae .mae__trail{gap:5px}.mae .mae__trail-item{padding:4px 8px;font-size:12px}}

/* v0.6.4: editorial two-column layout and step transitions */
.mae{width:100%;max-width:1320px;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:stretch;margin:32px auto}
.mae__header{padding:clamp(32px,4.2vw,72px) clamp(26px,3.5vw,62px);display:flex;flex-direction:column;justify-content:center;background:#fbfaf7;min-width:0}
.mae__header .mae__catchcopy{font-size:clamp(38px,3.7vw,64px);font-weight:800;line-height:1.38;letter-spacing:-.045em;margin:0 0 32px;color:#252525;overflow-wrap:normal}
.mae__catchcopy span{color:#ff9452}
.mae__header .mae__intro{font-size:16px;line-height:1.9;color:#555;margin:0;max-width:34em}
.mae__body{padding:clamp(28px,3.2vw,54px) clamp(22px,3vw,48px);min-width:0;align-self:center;opacity:1;transition:opacity .19s ease}
.mae__body.mae__fading{opacity:0;pointer-events:none}
.mae__body h2.mae__start-heading{font-size:clamp(21px,2vw,27px);line-height:1.45;text-align:center;margin:0 0 28px;color:#333}
.mae__choices{grid-template-columns:repeat(2,minmax(0,1fr))}
.mae__choice{min-width:0}
@media(max-width:850px){
 .mae{display:flex;flex-direction:column;max-width:100%;margin:18px auto}
 .mae__header{padding:32px 24px 18px}
 .mae__header .mae__catchcopy{font-size:clamp(30px,7vw,44px);margin-bottom:18px;line-height:1.4}
 .mae__header .mae__intro{font-size:13px;line-height:1.8}
 .mae__body{padding:22px 24px 30px;width:100%;box-sizing:border-box}
}
@media(max-width:640px){.mae__choices{grid-template-columns:1fr}.mae__header{padding:28px 18px 12px}.mae__body{padding:20px 18px 26px}}
@media(prefers-reduced-motion:reduce){.mae__body{transition:none!important}}

/* v0.6.5: borderless layout, large editorial headline, full-width steps */
.mae{
  border:0!important;
  box-shadow:none!important;
  border-radius:0;
  background:#fff;
  overflow:visible;
}
.mae__header{background:#fff}
.mae .mae__header h2.mae__catchcopy{
  font-size:clamp(76px,7.4vw,128px);
  line-height:1.2;
  border:0!important;
  border-bottom:0!important;
  border-top:0!important;
  box-shadow:none!important;
  background-image:none!important;
  padding-bottom:0;
  text-decoration:none!important;
}
.mae .mae__header h2.mae__catchcopy::before,
.mae .mae__header h2.mae__catchcopy::after{
  content:none!important;
  display:none!important;
  border:0!important;
  box-shadow:none!important;
  background:none!important;
}
.mae.mae--active{
  display:block;
  max-width:1320px;
}
.mae.mae--active .mae__header{display:none!important}
.mae.mae--active .mae__body{
  width:100%;
  max-width:none;
  box-sizing:border-box;
}
@media(max-width:850px){
  .mae .mae__header h2.mae__catchcopy{
    font-size:clamp(45px,10.5vw,66px);
  }
}

/* v0.6.6: prioritize two single-line headline rows and unwrapped button titles */
@media (min-width:851px){
 .mae.mae--start{grid-template-columns:minmax(0, 40fr) minmax(0, 60fr)}
 .mae.mae--start .mae__header{padding:32px clamp(18px,2.2vw,34px)}
 .mae.mae--start .mae__body{padding:30px clamp(16px,2vw,32px)}
 .mae.mae--start .mae__choices{grid-template-columns:repeat(2,minmax(0,1fr))}
 .mae.mae--start .mae__choice{padding:14px 10px}
 .mae.mae--start .mae__choice strong{white-space:nowrap;font-size:clamp(13px,1.12vw,16px);letter-spacing:-.035em}
}
.mae.mae--start .mae__header h2.mae__catchcopy{
 font-size:clamp(26px,2.55vw,38px);
 letter-spacing:-.06em;
 line-height:1.42;
 white-space:nowrap;
}
@media(max-width:850px){
 .mae.mae--start .mae__header h2.mae__catchcopy{font-size:clamp(19px,5.3vw,34px);white-space:nowrap}
}
@media(min-width:641px) and (max-width:850px){
 .mae.mae--start .mae__choice strong{white-space:nowrap}
}
@media(max-width:640px){
 .mae.mae--start .mae__choices{grid-template-columns:1fr}
}

/* v0.6.7: two-column C-series resource grid on the decided path only */
.mae .mae__resources--execution{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
}
.mae .mae__resources--execution .mae__resource{
  min-width:0;
  height:100%;
  box-sizing:border-box;
}
@media(max-width:640px){
  .mae .mae__resources--execution{grid-template-columns:1fr}
}

/* v0.6.8: allow anchored question/result visibility below sticky headers */
.mae__trail,.mae__body>h2,.mae__body>h3{scroll-margin-top:96px}

/* v0.6.9: mobile headline sized for two intact rows. Desktop unchanged. */
@media(max-width:850px){
 .mae.mae--start .mae__header h2.mae__catchcopy{
   font-size:clamp(21px,6.6vw,34px);
   line-height:1.38;
   letter-spacing:-.06em;
   white-space:nowrap;
 }
}
@media(max-width:360px){
 .mae.mae--start .mae__header{padding-left:14px;padding-right:14px}
 .mae.mae--start .mae__header h2.mae__catchcopy{font-size:6.35vw}
}
