 :root{--navy:#172b4d;--navy2:#243f66;--green:#f28c28;--green2:#ffad5c;--ink:#17263c;--muted:#64748b;--line:#dce5ed;--pale:#f5f7fa;--shadow:0 12px 35px #172b4d12}*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:100px}body{margin:0;font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif;color:var(--ink);line-height:1.6}a{text-decoration:none;color:inherit}button,input,textarea{font:inherit}.header{position:sticky;top:0;z-index:20;display:flex;align-items:center;gap:14px;padding:10px clamp(12px,3vw,38px);background:#ffffffed;border-bottom:1px solid var(--line);backdrop-filter:blur(10px)}.brand{display:flex;align-items:center;gap:9px;flex-shrink:0}.logo{width:43px;height:43px}.brand span{display:flex;flex-direction:column;line-height:1.15}.brand b{font-size:1.2rem;color:var(--navy)}.brand small{font-size:.57rem;letter-spacing:.08em;color:var(--green);font-weight:850;white-space:nowrap}.nav-wrap{display:flex;align-items:center;flex:1;min-width:0}nav{display:flex;align-items:center;gap:3px;overflow-x:auto;white-space:nowrap;scrollbar-width:none;flex:1}nav::-webkit-scrollbar{display:none}nav a{padding:9px 8px;border-radius:9px;font-size:.82rem;font-weight:700;color:#34465c}nav a:hover,nav a.active{background:#e8f8ef;color:var(--navy)}.nav-arrow{border:0;border-radius:7px;background:#edf3f7;color:var(--navy);font-size:1.3rem;cursor:pointer}.auth{border:0;background:var(--green);color:#fff;padding:11px 13px;border-radius:10px;font-weight:800;white-space:nowrap;cursor:pointer}.menu-toggle{display:none}.section{padding:70px clamp(18px,6vw,86px)}.tinted{background:var(--pale)}.hero{display:grid;grid-template-columns:1.2fr .8fr;gap:45px;align-items:center;min-height:450px;background:radial-gradient(ellipse at 90% 15%,#e4f8ee,transparent 35%),linear-gradient(120deg,#fff 55%,#f5fbf8)}.eyebrow{font-size:.72rem;letter-spacing:.13em;color:var(--green);font-weight:850;margin:0 0 12px}.hero h1{font-size:clamp(2.5rem,5vw,4.5rem);line-height:1.05;letter-spacing:-.05em;color:var(--navy);margin:0 0 20px}.hero h1 span{color:var(--green)}.lead{font-size:1.08rem;color:var(--muted);max-width:570px}.actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:25px}.btn{display:inline-flex;align-items:center;justify-content:center;border:0;border-radius:10px;padding:12px 17px;font-weight:800;cursor:pointer}.primary{background:var(--green);color:white}.primary:hover,.auth:hover{background:#128754}.secondary{background:#eaf0f6;color:var(--navy)}.hero-card{background:var(--navy);color:#fff;border-radius:24px;padding:32px;text-align:center;box-shadow:var(--shadow)}.plus{width:90px;height:90px;margin:auto;border:2px solid var(--green2);border-radius:25px;display:grid;place-items:center;font-size:3.5rem;color:var(--green2)}.hero-card h2{font-size:1rem;letter-spacing:.08em}.hero-card p{color:#d3e2f1}.stats{display:flex;justify-content:space-between;gap:8px;margin-top:22px;padding-top:18px;border-top:1px solid #365173}.stats span{display:flex;flex-direction:column}.stats b{font-size:1.4rem;color:var(--green2)}.stats small{font-size:.7rem;color:#d3e2f1}.heading{max-width:760px;text-align:center;margin:0 auto 32px}.heading h2{font-size:clamp(2rem,3.5vw,3rem);line-height:1.15;letter-spacing:-.04em;color:var(--navy);margin:0 0 12px}.heading>p:last-child{color:var(--muted)}.search{max-width:560px;margin:0 auto 24px}.search input{width:100%;padding:13px;border:1px solid var(--line);border-radius:11px}.grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px}.specialty-card,.panel{background:#fff;border:1px solid var(--line);border-radius:16px;padding:21px;box-shadow:var(--shadow)}.specialty-card{cursor:pointer;transition:.2s}.specialty-card:hover{transform:translateY(-3px);border-color:var(--green)}.icon{width:47px;height:47px;border-radius:14px;background:#e7f8ef;display:grid;place-items:center;font-size:1.6rem;margin-bottom:13px}.specialty-card h3,.panel h3{color:var(--navy);margin-top:0}.specialty-card h3{font-size:1rem;line-height:1.3;margin-bottom:7px}.specialty-card p{font-size:.86rem;color:var(--muted);margin:0}.two,.three{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:17px}.three{grid-template-columns:repeat(3,minmax(0,1fr))}.dashboard{background:#edf8f2}.quiz,.case{max-width:900px;margin:auto}.question{padding:17px 0;border:0;border-bottom:1px solid var(--line)}.question legend{font-weight:800;color:var(--navy);margin-bottom:10px}.options{display:grid;gap:8px}.options label{display:flex;gap:9px;padding:10px;border:1px solid var(--line);border-radius:9px;cursor:pointer}.options label:has(input:checked){border-color:var(--green);background:#f0fbf5}.prefs{margin:24px 0}.prefs label{display:grid;grid-template-columns:1fr minmax(120px,1fr) 20px;gap:12px;align-items:center;margin:12px 0}.prefs input{width:100%;accent-color:var(--green)}output{color:var(--green);font-weight:800}.result{margin-top:18px;padding:18px;border-radius:12px;background:#edf9f2;border:1px solid #b9ebd0}.result li{margin:7px 0}.case-meta{display:flex;justify-content:space-between;color:var(--muted);font-size:.85rem}.pill{background:#e7f8ef;color:#087c4a;padding:5px 10px;border-radius:99px;font-weight:800}.case>h3{margin:20px 0 7px;font-size:1.45rem}.case-start{margin-top:12px}.empty{max-width:600px;margin:auto;text-align:center;border:2px dashed var(--line);border-radius:20px;padding:40px;color:var(--muted)}.empty div{font-size:2.3rem;color:var(--green)}.empty h3{color:var(--navy)}.contact{max-width:650px;margin:auto;display:grid;gap:15px}.contact label{display:grid;gap:7px;color:var(--navy);font-weight:750}.contact input,.contact textarea{width:100%;padding:12px;border:1px solid var(--line);border-radius:9px}.footer{display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap;padding:25px clamp(18px,4vw,55px);background:var(--navy);color:#dce9f5}.footer .brand b{color:white}.footer .brand small{color:var(--green2)}.footer p{font-size:.83rem}.hidden{display:none!important}.linkbtn{border:0;background:none;color:var(--green);font-weight:850;cursor:pointer;padding:8px 0}.detail-hero{display:grid;grid-template-columns:1fr 1.2fr;gap:22px}.detail-icon{min-height:220px;border-radius:18px;background:linear-gradient(135deg,#e7f8ef,#eaf0f8);display:grid;place-items:center;font-size:6rem}.dialog{border:0;border-radius:20px;width:min(92vw,510px);padding:26px;box-shadow:0 25px 90px #071b3280}.dialog::backdrop{background:#071b327a;backdrop-filter:blur(3px)}.close{display:flex;justify-content:flex-end}.close button{border:0;border-radius:50%;width:34px;height:34px;font-size:1.4rem;cursor:pointer}.dialog .heading{margin-bottom:18px}.note{font-size:.78rem;color:var(--muted)}.no-results{text-align:center;grid-column:1/-1;color:var(--muted)}@media(max-width:1100px){.header{gap:8px}.logo{width:36px;height:36px}.brand b{font-size:1.05rem}.brand small{font-size:.48rem}nav a{font-size:.76rem;padding:8px 6px}.grid{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:760px){.header{flex-wrap:wrap}.menu-toggle{display:block;margin-left:auto;border:0;border-radius:8px;padding:8px 11px;background:#edf3f7;color:var(--navy)}.auth{order:3;margin-left:auto}.nav-wrap{display:none;order:4;flex-basis:100%}.nav-wrap.open{display:flex}.hero{grid-template-columns:1fr;padding-top:50px;gap:25px}.section{padding:50px 17px}.grid{grid-template-columns:repeat(2,minmax(0,1fr))}.three,.two{grid-template-columns:1fr}.detail-hero{grid-template-columns:1fr}.footer p{flex-basis:100%;order:3}}@media(max-width:420px){.grid{grid-template-columns:1fr}.actions .btn{width:100%}.prefs label{grid-template-columns:1fr 1fr 20px}}
.page-hero{padding:54px clamp(18px,6vw,86px);background:linear-gradient(120deg,#f3f8fb,#e4f8ee)}.page-hero h1{font-size:clamp(2rem,4vw,3.3rem);line-height:1.1;color:var(--navy);margin:.2em 0}.content{padding:42px clamp(18px,6vw,86px)}.specialty-card{overflow:hidden}.specialty-card img{width:100%;height:170px;object-fit:cover;background:#e7eff5}.specialty-card .card-body{padding:18px}.pathway{background:#f3f8fb;border-left:4px solid var(--green);padding:16px;border-radius:8px}.site-nav{display:flex;gap:3px;overflow-x:auto;white-space:nowrap;flex:1}.site-nav a{padding:9px 8px;border-radius:9px;font-size:.82rem;font-weight:700;color:#34465c}.site-nav a:hover,.site-nav a.active{background:#e8f8ef;color:var(--navy)}.header .auth{flex-shrink:0}.empty-articles{min-height:240px;display:grid;place-items:center;text-align:center;color:var(--muted)}.footer{display:flex;gap:20px;align-items:center;justify-content:space-between;flex-wrap:wrap}.hidden{display:none!important}@media(max-width:850px){.header{flex-wrap:wrap}.nav-wrap{order:3;flex-basis:100%}.hero{grid-template-columns:1fr}.footer{align-items:flex-start;flex-direction:column}}

.detailed-guide{margin-top:1rem;border-left:3px solid var(--green,#37c98a);font-size:.96rem;line-height:1.65}.detailed-guide p{margin:.55rem 0}.case .question{margin:1rem 0}.case .options label{display:block;padding:.55rem .7rem;margin:.35rem 0;border:1px solid var(--line,#d8e1ea);border-radius:.65rem;cursor:pointer}.case .options label:hover{border-color:#37c98a}

.brand .logo{width:54px;height:54px;object-fit:contain;border-radius:8px;background:#fff}.brand{gap:10px}

/* Specialty quiz and results: clean medical-education styling */
.page-hero{background:linear-gradient(135deg,#172b4d,#243f66);color:#fff}.page-hero p{max-width:760px}.quiz-step{padding:1.25rem;border:1px solid var(--line);border-radius:16px;background:#fff;box-shadow:var(--shadow)}.choice-button:hover,.choice-button.selected{border-color:var(--green);background:#fff6ed;box-shadow:inset 4px 0 var(--green)}.quiz output,.match-score{color:#d66b09}.match-card{border:1px solid var(--line);border-radius:14px;padding:1rem;margin:1rem 0;background:#fff}.match-top{display:flex;justify-content:space-between;gap:1rem;align-items:center;flex-wrap:wrap}.match-meter{height:8px;border-radius:99px;background:#e9edf2;overflow:hidden;margin:.65rem 0}.match-meter span{display:block;height:100%;background:var(--green);border-radius:99px}.match-link{color:#b75a00;font-weight:700;text-decoration:underline}.dashboard-result a{color:#b75a00;font-weight:700;text-decoration:underline}

/* MedStart always-vertical, touch-friendly navigation */
.header{align-items:flex-start;flex-wrap:wrap}.brand{align-self:center}.header .auth{margin-left:auto;align-self:center}.nav-wrap{display:flex!important;order:3;flex:0 0 100%;width:100%;min-width:0}.site-nav,nav{display:flex!important;flex-direction:column;align-items:stretch;gap:4px;overflow:visible;white-space:normal;width:100%;flex:1}.site-nav a,nav a{display:block;width:100%;padding:11px 14px;font-size:.95rem;border-radius:9px}.header .menu-toggle{display:none!important}.site-nav a:focus-visible,nav a:focus-visible,.auth:focus-visible{outline:3px solid #f28c28;outline-offset:2px}.article-card a{display:block;height:100%}.article-card img{width:100%;height:190px;object-fit:cover}.article-placeholder{height:190px;display:grid;place-items:center;background:#e8f8ef;color:var(--navy);font-size:3rem}.article-byline{margin-top:14px!important;font-weight:700;color:var(--navy)!important}.article-byline span{color:var(--green)}@media(max-width:760px){.header{gap:8px;padding:10px 12px}.nav-wrap{display:flex!important}.header .auth{margin-left:auto}.site-nav a,nav a{padding:12px 14px;font-size:1rem}.article-grid{grid-template-columns:1fr}}

/* Final responsive navigation and compact article thumbnails */
.header{position:sticky;top:0;z-index:100;display:flex;align-items:center;flex-wrap:wrap;gap:10px;padding:10px clamp(12px,2vw,28px);background:#ffffffed}
.header .brand{order:0;align-self:center}
.header .auth{order:2;margin-left:auto;align-self:center}
.header .nav-wrap{order:3;display:flex!important;flex:1 0 100%;width:100%;min-width:0}
.header .site-nav{display:flex!important;flex-direction:row;align-items:center;justify-content:flex-start;flex-wrap:wrap;gap:4px;width:100%;overflow:visible;white-space:normal}
.header .site-nav a{display:inline-flex;width:auto;align-items:center;padding:8px 11px;font-size:.86rem;white-space:nowrap}
.header .menu-toggle{display:none!important}
.article-card img{display:block;width:100%;height:105px;max-height:105px;object-fit:cover;border-radius:10px 10px 0 0}
.article-placeholder{height:105px;max-height:105px;border-radius:10px 10px 0 0}
.article-card .card-body{padding:12px 14px}
.article-card h3{font-size:1rem;margin-bottom:6px}
.article-card .card-body>p:not(.eyebrow):not(.article-byline){font-size:.86rem;line-height:1.45}
@media(max-width:760px){
 .header{gap:8px;padding:9px 10px}
 .header .nav-wrap{display:flex!important;flex:0 0 100%;width:100%}
 .header .site-nav{display:flex!important;flex-direction:column;align-items:stretch;gap:3px}
 .header .site-nav a{display:block;width:100%;padding:9px 12px;font-size:.95rem;white-space:normal}
 .header .auth{font-size:.82rem;padding:9px 10px}
 .article-grid{grid-template-columns:1fr}
 .article-card img{height:95px;max-height:95px}
 .article-placeholder{height:95px;max-height:95px}
}


/* Final override: keep the navigation vertical on laptops and phones */
.header .nav-wrap{display:flex!important;order:3;flex:0 0 100%;width:100%;min-width:0}
.header .site-nav{display:flex!important;flex-direction:column!important;align-items:stretch!important;justify-content:flex-start;width:100%;gap:4px;overflow:visible;white-space:normal;flex:1}
.header .site-nav a{display:block!important;width:100%!important;box-sizing:border-box;padding:11px 14px;font-size:.95rem;white-space:normal;text-align:left}
@media(max-width:760px){.header .nav-wrap{display:flex!important;flex:0 0 100%;width:100%}.header .site-nav{flex-direction:column!important;align-items:stretch!important}.header .site-nav a{width:100%!important;padding:12px 14px;font-size:1rem}}


/* Corrected navigation: keep all menu links in one horizontal line on laptop and phone */
.header .nav-wrap{display:flex!important;order:3;flex:0 0 100%;width:100%;min-width:0;overflow-x:auto;overflow-y:hidden}
.header .site-nav{display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;align-items:center!important;justify-content:flex-start;width:max-content;min-width:100%;gap:4px;overflow-x:visible;overflow-y:hidden;white-space:nowrap;flex:0 0 auto}
.header .site-nav a{display:inline-flex!important;flex:0 0 auto;width:auto!important;align-items:center;padding:8px 10px;font-size:.86rem;white-space:nowrap;text-align:center}
.header .menu-toggle{display:none!important}
@media(max-width:760px){.header .nav-wrap{display:flex!important;flex:0 0 100%;width:100%;overflow-x:auto}.header .site-nav{flex-direction:row!important;flex-wrap:nowrap!important;align-items:center!important;width:max-content;min-width:100%;gap:3px}.header .site-nav a{display:inline-flex!important;width:auto!important;flex:0 0 auto;padding:9px 10px;font-size:.88rem;white-space:nowrap}.article-grid{grid-template-columns:1fr}}
