/* masterstudent.ca: header menu descriptions + section pages (ms-nav mu-plugin, 2026-11-05). Uses the theme's colour tokens. */
.main-nav .menu-desc,.main-nav .menu-badge{display:none}
@media (min-width:1061px){
  .main-nav .sub-menu{min-width:340px}
  .main-nav .sub-menu a.has-desc{flex-direction:column;align-items:flex-start;justify-content:center;gap:2px;padding:10px 12px;min-height:0;line-height:1.3}
  .main-nav .sub-menu a.has-desc .menu-title{font-weight:600;font-size:15px}
  .main-nav .sub-menu a.has-badge{flex-direction:row;align-items:center;justify-content:flex-start;gap:12px}
  .main-nav .menu-text{display:flex;flex-direction:column;gap:2px}
  .main-nav .menu-badge{flex:none;width:40px;height:40px;border-radius:10px;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:12px}
  .main-nav .menu-badge.b-dat{background:#EEF2FD;color:#1F4FD1}
  .main-nav .menu-badge.b-mcat{background:#FFF3E6;color:#8A4B00;font-size:11px}
  .main-nav .menu-badge.b-oat{background:#F1ECFB;color:#5A3FC0}
  .main-nav .menu-badge.b-casper{background:#E7F3EC;color:#1D6B3F}
  .main-nav .menu-badge.b-med{background:#FDECEC;color:#B42318}
  .main-nav .menu-badge.b-dent{background:#EEF2FD;color:#1F4FD1;font-size:11px}
  .main-nav .menu-badge.b-opt{background:#F1ECFB;color:#5A3FC0}
  .main-nav .menu-badge.b-law{background:#FFF3E6;color:#8A4B00}
  .main-nav .menu-badge.b-ug{background:#E7F3EC;color:#1D6B3F;font-size:11px}
  .main-nav .menu-desc{display:block;font-size:13px;font-weight:400;color:var(--muted);line-height:1.4;white-space:normal;max-width:300px}
}

/* section pages and blocks */
.ms-sec{font-family:var(--sans);color:var(--ink);font-size:16px;line-height:1.5}
.ms-sec p{margin:0}
.ms-sec .ms-sec-lead{font-family:var(--serif);font-size:19px;line-height:1.6;color:var(--body);max-width:760px;margin:0 0 28px}
.ms-sec h2{font-family:var(--sans);font-size:24px;line-height:1.25;margin:40px 0 14px}
.ms-sec h3{font-family:var(--sans);font-size:19px;line-height:1.3;margin:0 0 10px}
.ms-sec a{color:var(--ink);text-decoration:none}
.ms-sec a:hover{color:var(--blue)}
.ms-sec-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.ms-sec-grid.two{grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}
.ms-sec-card{display:flex;flex-direction:column;gap:8px;padding:22px 24px;background:#fff;border:1px solid var(--line);border-radius:var(--r);transition:border-color .15s,box-shadow .15s}
a.ms-sec-card:hover{border-color:var(--line2);box-shadow:0 10px 28px -18px rgba(23,32,46,.45)}
.ms-sec-card .kicker{font-size:13px;font-weight:700;color:var(--blue)}
.ms-sec-card b{font-size:20px;line-height:1.25}
.ms-sec-card span.d{font-size:15px;color:var(--muted)}
.ms-sec-card .go{margin-top:auto;font-size:15px;font-weight:600;color:var(--blue)}
.ms-sec-soft{background:var(--blue-soft);border:0}
.ms-sec-soft a{font-weight:600;color:var(--blue)}
.ms-sec-start{display:flex;gap:24px;align-items:center;flex-wrap:wrap;padding:26px 28px;background:var(--ink);border-radius:16px;color:#fff;margin:0 0 8px}
.ms-sec a.ms-sec-start,.ms-sec a.ms-sec-start:hover{color:#fff}
.ms-sec-start .t{flex:1 1 420px;display:flex;flex-direction:column;gap:8px}
.ms-sec-start .k{font-size:13px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:#A9C1FF}
.ms-sec-start b{font-size:24px;line-height:1.25}
.ms-sec-start .d{font-size:15px;color:#C9D2E0}
.ms-sec-start .btn{flex:none;padding:12px 18px;border-radius:10px;background:#fff;color:var(--ink);font-weight:600;font-size:15px}
.ms-sec-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px}
.ms-sec-list li{margin:0}
.ms-sec .ms-sec-count{font-size:14px;color:var(--muted);margin:-4px 0 12px}
.ms-sec-steps{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.ms-sec-steps .ms-sec-card b{font-size:16px}
.ms-sec .ms-sec-note{margin-top:28px;padding:18px 22px;border-radius:12px;background:var(--blue-soft);font-size:15px}
.ms-sec-note a{color:var(--blue);font-weight:600}
.ms-sec-jump{display:flex;flex-wrap:wrap;gap:10px;margin:0 0 8px}
.ms-sec-jump a{display:inline-flex;align-items:center;min-height:40px;padding:0 16px;border-radius:99px;border:1px solid var(--line2);background:#fff;font-weight:600;font-size:15px}
.ms-sec-jump a:hover{border-color:var(--ink)}
.ms-sec-block{margin:0 0 32px;padding:24px;border:1px solid var(--line);border-radius:var(--r);background:var(--soft)}
.ms-sec-block > h2:first-child{margin-top:0}
.ms-sec-tests{display:flex;flex-wrap:wrap;gap:8px;margin-top:6px}
.ms-sec .ms-sec-tests a{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;border-radius:10px;border:1px solid var(--line2);background:#fff;font-weight:600;font-size:15px}
.ms-sec .ms-sec-tests a:hover{border-color:var(--blue);color:var(--blue)}
body.single-post .ms-sec-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
/* DAT and OAT test pages: no sidebar, full width (owner 2026-11-05) */
body.postid-1013 .rail,body.postid-1301 .rail,body.postid-3406 .rail{display:none}
body.postid-1013 .article-layout,body.postid-1301 .article-layout,body.postid-3406 .article-layout{grid-template-columns:minmax(0,1fr)}
body.postid-1013 .ms-sec-grid,body.postid-1301 .ms-sec-grid,body.postid-3406 .ms-sec-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
body.postid-1013 .ms-sec-grid.two,body.postid-1301 .ms-sec-grid.two,body.postid-3406 .ms-sec-grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}
@media (max-width:960px){
  .ms-sec-grid,.ms-sec-grid.two,body.single-post .ms-sec-grid,body.postid-1013 .ms-sec-grid,body.postid-1301 .ms-sec-grid,body.postid-1013 .ms-sec-grid.two,body.postid-1301 .ms-sec-grid.two,body.postid-3406 .ms-sec-grid,body.postid-3406 .ms-sec-grid.two{grid-template-columns:minmax(0,1fr)}
  .ms-sec-steps{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:420px){.ms-sec-steps{grid-template-columns:minmax(0,1fr)}}

/* Option A program pages (Medical, Dental, Optometry, Law), owner 2026-11-05 */
.ms-hero{background:var(--ink);color:#fff;border-radius:18px;padding:28px 30px;margin:0 0 34px}
.ms-sec .ms-hero-lead{font-family:var(--serif);font-size:19px;line-height:1.55;color:#DDE3EE;max-width:760px;margin:0 0 22px}
.ms-hero-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.ms-hero-stat{display:flex;flex-direction:column;gap:4px;padding:16px 18px;border-radius:12px;background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.12)}
.ms-hero-stat b{font-size:28px;line-height:1.1;color:#fff}
.ms-hero-stat span{font-size:14px;line-height:1.35;color:#C9D2E0}
.ms-sec .ms-tier{margin:40px 0 12px;font-size:13px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--blue)}
.ms-sec .ms-hero + .ms-tier{margin-top:0}
.ms-feature{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);gap:28px;align-items:center;padding:26px 28px;background:#fff;border:2px solid var(--blue);border-radius:16px;transition:box-shadow .15s}
.ms-sec a.ms-feature:hover{color:var(--ink);box-shadow:0 14px 34px -20px rgba(31,79,209,.55)}
.ms-feature-text{display:flex;flex-direction:column;gap:10px;align-items:flex-start}
.ms-badge-pill{display:inline-block;padding:4px 10px;border-radius:99px;background:var(--blue-soft);color:var(--blue);font-size:12px;font-weight:700;letter-spacing:.04em;text-transform:uppercase}
.ms-feature-text b{font-size:26px;line-height:1.2}
.ms-feature-text .d{font-size:16px;color:var(--muted)}
.ms-feature .ms-btn{margin-top:6px;display:inline-flex;align-items:center;min-height:44px;padding:0 18px;border-radius:10px;background:var(--blue);color:#fff;font-weight:600;font-size:15px}
.ms-feature-table{display:flex;flex-direction:column;border:1px solid var(--line);border-radius:12px;overflow:hidden;font-size:15px}
.ms-feature-table .h,.ms-feature-table .r{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:10px;padding:11px 16px}
.ms-feature-table .h{background:var(--soft);font-size:13px;font-weight:700;color:var(--muted)}
.ms-feature-table .r{border-top:1px solid var(--line)}
.ms-feature-table .r span:first-child{font-weight:600}
.ms-feature-table .r.more{color:var(--blue);font-weight:600;font-size:14px}
.ms-num{font-size:34px;font-weight:700;line-height:1.05;letter-spacing:-.01em}
.ms-num-blue{color:var(--blue)}.ms-num-green{color:#1D6B3F}.ms-num-amber{color:#8A4B00}
.ms-numcard b{font-size:19px}
.ms-sec .ms-sec-hint{font-size:15px;color:var(--muted);margin:-6px 0 12px}
.ms-region-tabs{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 14px}
.ms-sec .ms-region-tabs button{min-height:40px;padding:0 16px;border-radius:99px;border:1px solid var(--line2);background:#fff;color:var(--ink);font:600 15px/1 var(--sans);cursor:pointer}
.ms-sec .ms-region-tabs button:hover{border-color:var(--ink)}
.ms-sec .ms-region-tabs button[aria-pressed="true"]{background:var(--ink);border-color:var(--ink);color:#fff}
.ms-school-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.ms-school{display:flex;flex-direction:column;gap:4px;padding:14px 16px;background:#fff;border:1px solid var(--line);border-radius:12px}
.ms-sec a.ms-school:hover{border-color:var(--blue)}
.ms-school b{font-size:16px;line-height:1.3}
.ms-school span{font-size:13px;color:var(--muted)}
.ms-school[hidden]{display:none}
.ms-new{display:inline-block;margin-left:4px;padding:1px 6px;border-radius:6px;background:#E7F3EC;color:#1D6B3F;font-size:11px;font-weight:700;vertical-align:2px}
@media (max-width:960px){
  .ms-feature{grid-template-columns:minmax(0,1fr)}
  .ms-hero-stats,.ms-school-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:420px){
  .ms-hero{padding:22px 18px}
  .ms-hero-stat b{font-size:24px}
  .ms-feature{padding:20px 18px}
  .ms-feature-text b{font-size:22px}
  .ms-feature-table .h,.ms-feature-table .r{padding:10px 12px;font-size:14px}
}

/* Option B free test pages (DAT, OAT, CASPer), owner 2026-11-05 */
.ms-tt-top{display:flex;justify-content:space-between;align-items:center;gap:16px 24px;flex-wrap:wrap;margin:0 0 20px}
.ms-sec .ms-tt-lead{flex:1 1 420px;font-size:17px;color:var(--body);margin:0}
.ms-tt-tabs{display:flex;gap:8px}
.ms-sec .ms-tt-tabs a{display:inline-flex;align-items:center;min-height:40px;padding:0 16px;border-radius:99px;border:1px solid var(--line2);background:#fff;font-weight:600;font-size:14px}
.ms-sec .ms-tt-tabs a.on{background:var(--ink);border-color:var(--ink);color:#fff}
.ms-tt{background:#fff;border:1px solid var(--line);border-radius:16px;overflow:hidden}
.ms-tt-head,.ms-tt-row{display:grid;grid-template-columns:250px minmax(0,1fr) 140px;gap:18px;align-items:center;padding:14px 20px}
.ms-tt-head{background:var(--soft);font-size:13px;font-weight:700;color:var(--muted);padding-top:11px;padding-bottom:11px}
.ms-tt-head span:last-child,.ms-tt-go{text-align:right}
.ms-tt-row{border-top:1px solid var(--line)}
.ms-tt-sec{display:flex;gap:12px;align-items:center}
.ms-tt-sec b{display:block;font-size:16px;line-height:1.3}
.ms-tt-sec span span{font-size:13px;color:var(--muted)}
.ms-tt-badge{flex:none;width:40px;height:40px;border-radius:10px;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:12px}
.t-green{background:#E7F3EC;color:#1D6B3F}.t-blue{background:#EEF2FD;color:#1F4FD1}.t-violet{background:#F1ECFB;color:#5A3FC0}.t-amber{background:#FFF3E6;color:#8A4B00}.t-ink{background:var(--ink);color:#fff}
.ms-tt-chips{display:flex;flex-wrap:wrap;gap:6px}
.ms-sec .ms-tt-chips a{display:inline-flex;align-items:center;justify-content:center;min-width:40px;height:40px;padding:0 8px;border-radius:8px;border:1px solid var(--line2);background:#fff;font-weight:600;font-size:14px}
.ms-sec .ms-tt-chips.wide a{padding:0 14px}
.ms-sec .ms-tt-chips a:hover{border-color:var(--blue);color:var(--blue)}
.ms-sec a.ms-tt-go{color:var(--blue);font-weight:600;font-size:15px}
.ms-tt-below{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr);gap:16px;margin-top:28px}
.ms-tt-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 24px;margin-top:4px;font-size:15px}
.ms-tt-schools{margin-top:28px}
body.single-post .ms-tt-page .ms-sec-grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}
@media (max-width:960px){
  .ms-tt-head{display:none}
  .ms-tt-row{grid-template-columns:minmax(0,1fr);gap:12px}
  .ms-tt-go{text-align:left}
  .ms-tt-below,body.single-post .ms-tt-page .ms-sec-grid.two{grid-template-columns:minmax(0,1fr)}
}
@media (max-width:420px){.ms-tt-links{grid-template-columns:minmax(0,1fr)}}

/* DentPrep CTA in the test-page sidebar (owner 2026-11-05; made smaller) */
.ms-dp-cta{background:var(--ink);border-color:var(--ink);color:#fff;padding:16px 18px}
.rail .ms-dp-cta h2,.ms-dp-cta h2{color:#fff;margin:0 0 8px;font-size:16px;line-height:1.3;text-transform:none;letter-spacing:0;font-weight:700}
.ms-dp-cta ul{list-style:none;margin:0 0 12px;padding:0;display:flex;flex-direction:column;gap:4px}
.ms-dp-cta li{position:relative;padding-left:20px;font-size:13px;line-height:1.4;color:#DDE3EE}
.ms-dp-cta li::before{content:"";position:absolute;left:2px;top:4px;width:9px;height:5px;border-left:2px solid #7FD3A1;border-bottom:2px solid #7FD3A1;transform:rotate(-45deg)}
.ms-dp-cta a.ms-dp-btn{display:flex;align-items:center;justify-content:center;min-height:40px;border-radius:9px;background:#fff;color:var(--ink);font-weight:700;font-size:14px;text-decoration:none}
.ms-dp-cta a.ms-dp-btn:hover{background:#EEF2FD;color:var(--ink)}
/* PAT row on the free DAT page: six subtest links in one row (owner 2026-11-05) */
.ms-tt-row.ms-tt-pat .ms-tt-chips{grid-column:2 / span 2;flex-wrap:nowrap;gap:6px}
.ms-sec .ms-tt-row.ms-tt-pat .ms-tt-chips a{padding:0 11px;font-size:13.5px;white-space:nowrap;flex:1 1 auto}
@media (max-width:1100px){.ms-tt-row.ms-tt-pat .ms-tt-chips{flex-wrap:wrap}}
@media (max-width:960px){.ms-tt-row.ms-tt-pat .ms-tt-chips{grid-column:auto}}
