/* MDI Navigation Layer v1 — deterministic orientation, not a chatbot */
.mdi-entry-routes{padding-top:42px;padding-bottom:28px}
.mdi-entry-head{display:flex;justify-content:space-between;gap:28px;align-items:flex-end;margin-bottom:18px}
.mdi-entry-head h2{margin:3px 0 0;color:#0b2c55;font-family:Georgia,'Times New Roman',serif;font-size:32px;font-weight:500;letter-spacing:-.025em}
.mdi-entry-head p{max-width:610px;margin:0;color:#647b92;font-size:11px;line-height:1.6}
.mdi-entry-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}
.mdi-entry-card{display:flex;min-width:0;min-height:190px;flex-direction:column;align-items:flex-start;padding:16px;border:1px solid #d8e4ef;border-top:3px solid #2a73d9;border-radius:12px;background:#fff;color:#183c63;text-align:left;cursor:pointer;box-shadow:0 5px 18px rgba(20,54,91,.035);transition:transform .15s ease,border-color .15s ease,box-shadow .15s ease}
.mdi-entry-card:nth-child(2){border-top-color:#6d5ce7}.mdi-entry-card:nth-child(3){border-top-color:#0f9fa7}.mdi-entry-card:nth-child(4){border-top-color:#d18422}.mdi-entry-card:nth-child(5){border-top-color:#16835f}
.mdi-entry-card:hover,.mdi-entry-card:focus-visible{transform:translateY(-2px);border-color:#a9c4df;box-shadow:0 12px 28px rgba(20,54,91,.08);outline:none}
.mdi-entry-icon{display:grid;place-items:center;width:34px;height:34px;margin-bottom:14px;border-radius:9px;background:#edf5ff;color:#2169c7}
.mdi-entry-card:nth-child(2) .mdi-entry-icon{background:#f1efff;color:#6451d1}.mdi-entry-card:nth-child(3) .mdi-entry-icon{background:#edfafa;color:#0d858d}.mdi-entry-card:nth-child(4) .mdi-entry-icon{background:#fff6e9;color:#a86718}.mdi-entry-card:nth-child(5) .mdi-entry-icon{background:#eef9f4;color:#16704f}
.mdi-entry-card strong{color:#153a62;font-size:13px}.mdi-entry-card p{margin:6px 0 13px;color:#647a90;font-size:9.5px;line-height:1.5}.mdi-entry-card b{margin-top:auto;color:#1767c8;font-size:9px}
.mdi-entry-purpose{margin-top:12px;padding:10px 12px;border:1px solid #dfe8f1;border-radius:10px;background:#fbfdff}.mdi-entry-purpose summary{cursor:pointer;color:#315a7c;font-size:9.5px;font-weight:800}.mdi-entry-purpose>div{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin-top:9px}.mdi-entry-purpose a{display:flex;justify-content:space-between;gap:8px;align-items:center;min-height:36px;padding:8px 9px;border:1px solid #d7e3ee;border-radius:7px;background:#fff;color:#45627e;font-size:8.5px;font-weight:700}.mdi-entry-purpose a:hover,.mdi-entry-purpose a:focus-visible{border-color:#9fc1e3;background:#f3f8ff;color:#155fae;outline:none}.mdi-entry-purpose a span{color:#5e91c7}
.mdi-entry-secondary{display:flex;justify-content:space-between;gap:18px;align-items:flex-start;margin-top:12px;padding-top:12px;border-top:1px solid #e6edf4}
.mdi-entry-unsure{max-width:720px}.mdi-entry-unsure summary{cursor:pointer;color:#28577f;font-size:10px;font-weight:800}.mdi-entry-unsure-grid{display:flex;flex-wrap:wrap;gap:6px;margin-top:9px}.mdi-entry-unsure-grid button,.mdi-entry-explore{min-height:38px;padding:8px 10px;border:1px solid #d6e2ed;border-radius:8px;background:#f9fbfd;color:#3d5f7d;font:inherit;font-size:8.8px;font-weight:700;cursor:pointer}.mdi-entry-unsure-grid button:hover,.mdi-entry-unsure-grid button:focus-visible,.mdi-entry-explore:hover,.mdi-entry-explore:focus-visible{border-color:#9ebfe1;background:#f2f8ff;color:#155eaa;outline:none}.mdi-entry-explore{flex:0 0 auto;background:#fff}

.mdi-next-steps{position:fixed;right:max(18px,env(safe-area-inset-right));bottom:max(18px,env(safe-area-inset-bottom));z-index:82;display:flex;flex-direction:column;align-items:flex-end;gap:8px;max-width:min(380px,calc(100vw - 32px))}
.mdi-next-steps.is-suppressed{display:none}
.mdi-next-steps-toggle{min-height:42px;padding:9px 13px;border:1px solid #b9cee4;border-radius:999px;background:#0d3158;color:#fff;font:inherit;font-size:10px;font-weight:800;cursor:pointer;box-shadow:0 10px 30px rgba(7,31,61,.18)}
.mdi-next-steps-toggle span{display:inline-block;margin-left:5px;color:#9fd4ff}.mdi-next-steps-toggle:hover,.mdi-next-steps-toggle:focus-visible{background:#123e70;outline:2px solid rgba(43,121,208,.22);outline-offset:2px}
.mdi-next-steps-panel{width:min(370px,calc(100vw - 32px));overflow:hidden;border:1px solid #cbdbea;border-radius:15px;background:#fff;box-shadow:0 20px 58px rgba(7,31,61,.22)}
.mdi-next-steps-panel[hidden]{display:none}
.mdi-next-steps-panel header{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;padding:13px 14px;border-bottom:1px solid #e5edf4;background:linear-gradient(135deg,#f7fbff,#f8f6ff)}
.mdi-next-steps-panel header small{display:block;max-width:285px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#71849a;font-size:7.8px;text-transform:uppercase;letter-spacing:.05em;font-weight:800}.mdi-next-steps-panel header strong{display:block;margin-top:2px;color:#173b62;font-size:12px}
.mdi-next-steps-panel header>button{display:grid;place-items:center;flex:0 0 auto;width:34px;height:34px;border:0;border-radius:50%;background:#eef3f8;color:#355a7b;font-size:20px;cursor:pointer}
.mdi-next-steps-actions{display:grid;padding:6px}.mdi-next-steps-actions>button{display:flex;justify-content:space-between;gap:12px;align-items:center;min-height:42px;padding:9px 10px;border:0;border-radius:8px;background:#fff;color:#345873;text-align:left;font:inherit;font-size:9.5px;font-weight:750;cursor:pointer}.mdi-next-steps-actions>button:hover,.mdi-next-steps-actions>button:focus-visible{background:#f1f7fd;color:#155fae;outline:none}.mdi-next-steps-actions>button span{color:#4382c6}
.mdi-next-steps-panel footer{padding:10px 12px 12px;border-top:1px solid #e8eef4;background:#fbfdff}.mdi-next-steps-panel footer button{width:100%;min-height:40px;padding:9px 10px;border:1px solid #c8daeb;border-radius:8px;background:#edf6ff;color:#155fae;font:inherit;font-size:9px;font-weight:800;cursor:pointer}.mdi-next-steps-panel footer button:hover,.mdi-next-steps-panel footer button:focus-visible{border-color:#8db5df;background:#e5f1ff;outline:none}.mdi-next-steps-panel footer small{display:block;margin-top:6px;color:#8293a4;font-size:7.5px;text-align:center}

@media(max-width:1050px){.mdi-entry-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.mdi-entry-card{min-height:165px}}
@media(max-width:760px){
  .mdi-entry-routes{padding-top:30px;padding-bottom:20px}.mdi-entry-head{display:block;margin-bottom:14px}.mdi-entry-head h2{font-size:28px}.mdi-entry-head p{margin-top:7px;font-size:10px}.mdi-entry-grid{grid-template-columns:1fr 1fr;gap:8px}.mdi-entry-card{min-height:145px;padding:13px}.mdi-entry-card strong{font-size:11px}.mdi-entry-card p{font-size:8.8px}.mdi-entry-icon{width:30px;height:30px;margin-bottom:10px}.mdi-entry-purpose>div{grid-template-columns:1fr 1fr}.mdi-entry-purpose a{min-height:42px}.mdi-entry-secondary{display:block}.mdi-entry-explore{width:100%;margin-top:9px}.mdi-entry-unsure-grid{display:grid;grid-template-columns:1fr}.mdi-entry-unsure-grid button{min-height:42px;text-align:left}
  .mdi-next-steps{position:static;left:auto;right:auto;bottom:auto;width:min(1180px,calc(100% - 24px));max-width:none;margin:14px auto 0;align-items:stretch}.mdi-next-steps-toggle{align-self:flex-end;min-height:44px;box-shadow:none}.mdi-next-steps-panel{width:100%;max-height:none;overflow:visible;border-radius:16px;padding-bottom:env(safe-area-inset-bottom)}.mdi-next-steps-panel header{position:static}.mdi-next-steps-actions>button{min-height:46px}.mdi-next-steps-panel footer button{min-height:44px}
}
@media(max-width:430px){.mdi-entry-grid{grid-template-columns:1fr}.mdi-entry-card{min-height:0}.mdi-entry-card p{margin-bottom:9px}.mdi-entry-purpose>div{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){.mdi-entry-card,.mdi-next-steps-toggle{transition:none}}
