@font-face{font-family:'MUGR DB Helvethaica X';src:url('../fonts/DB-Helvethaica-X-Med-v3.2.ttf') format('truetype');font-style:normal;font-weight:100 900;font-display:swap;}

:root{--mugr-blue:#0b67cf;--mugr-blue-dark:#174a9c;--mugr-blue-deep:#0c326f;--mugr-ink:#162033;--mugr-muted:#6e7b8d;--mugr-line:#e4e9f0;--mugr-bg:#f6f8fb;--mugr-soft:#eef5ff;--mugr-gold:#f5b82e;--mugr-white:#fff;--mugr-shadow:0 12px 36px rgba(24,53,91,.10)}
*{box-sizing:border-box}html{scroll-behavior:smooth}body.mugr-market-site{margin:0;background:var(--mugr-bg);color:var(--mugr-ink);font-family:'MUGR DB Helvethaica X',sans-serif!important;font-size:16px;line-height:1.45}.mugr-market-site a{text-decoration:none!important}.mugr-shell{width:min(1560px,calc(100% - 48px));margin:0 auto}
.mugr-utility-bar{background:#075bbb;color:#dfeeff;font-size:14px}.mugr-utility-inner{min-height:36px;display:flex;align-items:center;justify-content:space-between;gap:24px}.mugr-utility-inner a{color:#eaf3ff}.mugr-utility-left,.mugr-utility-right{display:flex;align-items:center;gap:22px}.mugr-utility-left span{width:1px;height:15px;background:rgba(255,255,255,.28)}.mugr-utility-right i{margin-right:6px}
.mugr-main-header{background:#0b67cf;color:#fff}.mugr-main-header-inner{min-height:104px;display:grid;grid-template-columns:290px minmax(260px,1fr) auto;align-items:center;gap:34px}.mugr-brand img{display:block;max-width:252px;max-height:74px;object-fit:contain}.mugr-header-title{border-left:1px solid rgba(255,255,255,.25);padding-left:32px}.mugr-header-title small{display:block;letter-spacing:2px;font-size:12px;color:#dcecff;margin-bottom:3px}.mugr-header-title strong{font-size:28px;line-height:1.1;font-weight:700}.mugr-header-actions{display:flex;align-items:center;gap:12px}.mugr-main-site-btn,.mugr-lang-btn{display:inline-flex;align-items:center;justify-content:center;height:48px;border-radius:8px;font-weight:700}.mugr-main-site-btn{padding:0 20px;background:rgba(255,255,255,.13);color:#fff;border:1px solid rgba(255,255,255,.18)}.mugr-main-site-btn:hover{background:#fff;color:var(--mugr-blue)}.mugr-main-site-btn i{margin-right:8px}.mugr-lang-btn{min-width:50px;background:#fff;color:var(--mugr-blue)}
.mugr-category-nav{background:#fff;border-bottom:1px solid var(--mugr-line);box-shadow:0 3px 10px rgba(10,39,80,.04)}.mugr-category-nav-inner{display:flex;align-items:stretch;overflow-x:auto;scrollbar-width:none}.mugr-category-nav-inner::-webkit-scrollbar{display:none}.mugr-category-nav a{position:relative;display:flex;align-items:center;white-space:nowrap;min-height:54px;padding:0 21px;color:#27364b;font-weight:600;border-right:1px solid #edf0f4}.mugr-category-nav a:first-child{padding-left:0}.mugr-category-nav a:hover,.mugr-category-nav a.active{color:var(--mugr-blue)}.mugr-category-nav a.active:after{content:'';position:absolute;left:18px;right:18px;bottom:0;height:3px;background:var(--mugr-gold)}.mugr-category-nav i{margin-right:7px}
.mugr-market-main{padding:22px 0 64px}.mugr-breadcrumb{display:flex;align-items:center;gap:10px;min-height:42px;color:#8a94a3;font-size:14px}.mugr-breadcrumb a{color:#6b778a}.mugr-breadcrumb span{color:#26364b}.mugr-market-layout{display:grid;grid-template-columns:250px minmax(0,1fr);gap:18px;align-items:start}
.mugr-department-panel{background:#fff;border:1px solid #dbe3ed;border-radius:8px;overflow:hidden;position:sticky;top:16px}.mugr-department-title{height:58px;display:flex;align-items:center;gap:12px;padding:0 18px;background:var(--mugr-blue);color:#fff;font-size:18px;font-weight:700}.mugr-department-panel>a{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:53px;padding:10px 16px;color:#2b3748;border-bottom:1px solid #edf0f4;font-weight:600}.mugr-department-panel>a:hover,.mugr-department-panel>a.active{color:var(--mugr-blue);background:#f8fbff}.mugr-department-panel>a.active{box-shadow:inset 4px 0 0 var(--mugr-gold)}.mugr-department-panel>a i{color:#9eabba}.mugr-side-card{margin:15px;background:linear-gradient(145deg,#163d82,#0b67cf);color:#fff;border-radius:8px;padding:20px;min-height:132px;display:flex;flex-direction:column;justify-content:center}.mugr-side-card small{font-size:11px;letter-spacing:1.5px;color:#d5e7ff}.mugr-side-card strong{font-size:34px;line-height:1.05;margin:3px 0}.mugr-side-card span{font-size:13px;color:#dceaff}
.mugr-program-workspace{min-width:0}.mugr-program-hero{min-height:320px;display:grid;grid-template-columns:minmax(0,1.25fr) minmax(360px,.75fr);background:linear-gradient(115deg,#f4f9ff 0%,#edf7fb 56%,#fff 56%);border:1px solid #e1e8ef;border-radius:8px;overflow:hidden;margin-bottom:18px}.mugr-program-hero-copy{padding:42px 42px 36px}.mugr-eyebrow{display:inline-block;font-size:12px;letter-spacing:1.7px;font-weight:800;color:var(--mugr-blue);margin-bottom:13px}.mugr-program-hero h1{font-size:43px;line-height:1.12;margin:0 0 14px;max-width:760px;color:#142033;font-weight:800}.mugr-program-hero p{font-size:18px;line-height:1.55;color:#5f6d80;max-width:730px;margin:0}.mugr-hero-badges{display:flex;flex-wrap:wrap;gap:10px;margin-top:24px}.mugr-hero-badges span{display:inline-flex;align-items:center;gap:8px;padding:8px 12px;border-radius:999px;background:#fff;color:#38475c;border:1px solid #dce6ef;font-size:14px;font-weight:600}.mugr-hero-badges i{color:#20a56b}.mugr-program-hero-cards{padding:18px;display:grid;grid-template-columns:1fr 1fr;gap:14px;align-content:center}.mugr-program-hero-cards a{min-height:116px;background:#fff;border:1px solid #e0e6ed;border-radius:7px;padding:18px;color:#203047;display:flex;flex-direction:column;justify-content:center;transition:.18s ease;box-shadow:0 4px 12px rgba(30,57,90,.03)}.mugr-program-hero-cards a:hover{transform:translateY(-3px);border-color:#b9d5f6;box-shadow:0 10px 24px rgba(25,72,130,.11)}.mugr-program-hero-cards i{font-size:24px;color:var(--mugr-blue);margin-bottom:10px}.mugr-program-hero-cards strong{font-size:18px}.mugr-program-hero-cards small{font-size:12px;color:#8792a1;margin-top:2px}
.mugr-finder-card,.mugr-result-section{background:#fff;border:1px solid #e1e6ed;border-radius:8px}.mugr-finder-card{padding:28px;margin-bottom:18px}.mugr-finder-header,.mugr-result-heading{display:flex;justify-content:space-between;align-items:center;gap:20px}.mugr-finder-header small,.mugr-result-heading small{display:block;font-size:11px;letter-spacing:1.5px;color:#8b96a5;font-weight:800}.mugr-finder-header h2,.mugr-result-heading h2{margin:2px 0 0;color:#18263a;font-size:25px;font-weight:800}.mugr-year-pill{background:#edf5ff;color:#155eae;border-radius:999px;padding:8px 13px;font-size:14px;font-weight:700}.mugr-degree-tabs{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin:20px 0 23px}.mugr-degree-tabs a{min-height:60px;border:1px solid #dde4ec;border-radius:7px;color:#253449;padding:10px 14px;display:flex;align-items:center;justify-content:space-between;gap:12px;font-weight:700;background:#fff}.mugr-degree-tabs a:hover{border-color:#97c5f6;color:var(--mugr-blue)}.mugr-degree-tabs a.active{background:var(--mugr-blue);border-color:var(--mugr-blue);color:#fff;box-shadow:0 8px 18px rgba(11,103,207,.20)}.mugr-degree-tabs i{opacity:.7}.mugr-search-block label{font-size:15px;font-weight:700;color:#36455a;margin-bottom:8px}.mugr-search-box{position:relative;display:grid;grid-template-columns:44px 1fr auto;border:1px solid #cfd9e4;border-radius:7px;overflow:hidden;background:#fff}.mugr-search-box>i{display:flex;align-items:center;justify-content:center;color:#9ba7b5}.mugr-search-box input{width:100%;height:54px;border:0!important;outline:0!important;box-shadow:none!important;padding:0 8px!important;font-size:16px;background:transparent}.mugr-search-box button{border:0;background:var(--mugr-blue);color:#fff;min-width:140px;padding:0 24px;font-weight:700;cursor:pointer}.mugr-search-box button:hover{background:#0758b3}
.mugr-result-section{overflow:hidden}.mugr-result-heading{padding:24px 28px;border-bottom:1px solid #e7ebf0}.mugr-result-heading h2{font-size:23px}.mugr-result-hint{display:flex;align-items:center;gap:8px;color:#6a7686;font-size:14px;white-space:nowrap}.mugr-result-hint i{color:var(--mugr-blue)}.mugr-faculty-list{padding:0 28px 28px}.mugr-faculty-item{border-bottom:1px solid #e7ebef}.mugr-faculty-button{width:100%;border:0;background:#fff;padding:15px 4px;display:grid;grid-template-columns:48px 1fr 34px;align-items:center;text-align:left;cursor:pointer;color:#1e2e43}.mugr-faculty-button:hover{background:#fafcff}.mugr-faculty-button.active{background:#f5f9ff}.mugr-faculty-icon{width:38px;height:38px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:#edf5ff;color:var(--mugr-blue)}.mugr-faculty-name{display:block;padding-right:14px}.mugr-faculty-name strong,.mugr-faculty-name small{display:block}.mugr-faculty-name strong{font-size:18px;font-weight:700;line-height:1.25}.mugr-faculty-name small{font-size:13px;color:#7e8998;margin-top:4px}.mugr-faculty-arrow{width:30px;height:30px;border-radius:50%;display:flex;align-items:center;justify-content:center;color:#7c899a;background:#f4f6f8;transition:.2s}.mugr-faculty-button.active .mugr-faculty-arrow{transform:rotate(180deg);background:var(--mugr-blue);color:#fff}.mugr-program-table-wrap{overflow-x:auto}.mugr-program-table-wrap table{border-collapse:collapse!important;margin:0 0 18px!important;background:#fff!important}.mugr-program-table-wrap table th{background:#eaf4ff!important;color:#173a64!important;font-weight:800!important;padding:12px 13px!important;border:1px solid #d4e3f3!important}.mugr-program-table-wrap table td{padding:13px!important;border:1px solid #e1e7ee!important;vertical-align:middle!important;color:#344255!important;background:#fff!important}.mugr-program-table-wrap table tr:nth-child(even) td{background:#fbfcfe!important}.mugr-program-table-wrap table a{color:#0968c7!important;font-weight:600}.mugr-program-table-wrap table a:hover{text-decoration:underline!important}.mugr-empty-state{text-align:center;padding:60px 20px;color:#7a8798}.mugr-empty-state i{font-size:38px;color:#c5cfda}.mugr-empty-state h3{margin:12px 0 5px;color:#334156}.mugr-empty-state p{margin:0}
/* Legacy detail page: modernize without touching its database/query logic. */
body.mugr-market-site>.content-form{width:min(1560px,calc(100% - 48px))!important;margin:22px auto 50px!important;padding:0!important;background:transparent!important}.content-form .title,.content-form .box-text-left,.content-form .bottom{width:100%!important}.content-form .bottom>h3:first-child{display:none!important}.content-form .container-fluid{padding:0!important}.content-form .card-header{background:#fff!important;color:#17304f!important;border:1px solid #e2e7ed!important;border-left:5px solid var(--mugr-blue)!important;border-radius:8px 8px 0 0!important;padding:18px 22px!important;font-size:22px!important;font-weight:800!important;margin:0!important}.content-form table.responsive-table{width:100%!important;background:#fff!important;border-collapse:separate!important;border-spacing:0!important;border:1px solid #e1e6ed!important;border-radius:8px!important;overflow:hidden!important;margin:0 0 18px!important;box-shadow:0 4px 15px rgba(26,52,83,.04)}.content-form table.responsive-table th{background:#edf5fd!important;color:#21354d!important;border:0!important;border-bottom:1px solid #dce5ef!important;padding:14px 16px!important;font-size:17px!important;font-weight:800!important}.content-form table.responsive-table td{padding:14px 16px!important;border:0!important;border-bottom:1px solid #e7ebf0!important;background:#fff!important;color:#354255!important;vertical-align:top!important}.content-form table.responsive-table tr:last-child td{border-bottom:0!important}.content-form table.responsive-table a{color:var(--mugr-blue)!important}.content-form table.responsive-table .h5{font-size:18px!important}.content-form hr{border-color:#e3e8ee!important}.content-form ul{padding-left:21px}.content-form font[color="#FF0000"],.content-form font[color="red"]{color:#d92b45!important}
.mugr-market-footer{background:#fff;border-top:1px solid #e2e6eb}.mugr-footer-cta{background:#f8fafc;border-bottom:1px solid #e2e7ed}.mugr-footer-cta-inner{min-height:132px;display:grid;grid-template-columns:58px 1fr auto;align-items:center;gap:20px}.mugr-footer-cta-icon{font-size:34px;color:var(--mugr-blue)}.mugr-footer-cta-copy strong,.mugr-footer-cta-copy span{display:block}.mugr-footer-cta-copy strong{font-size:23px}.mugr-footer-cta-copy span{color:#6b7788;margin-top:3px}.mugr-footer-cta-actions{display:flex;gap:10px}.mugr-footer-cta-actions a{height:46px;display:inline-flex;align-items:center;padding:0 18px;background:var(--mugr-blue);color:#fff;border-radius:6px;font-weight:700}.mugr-footer-cta-actions a.outline{background:#fff;color:var(--mugr-blue);border:1px solid #bfd3eb}.mugr-footer-main{padding:48px 0}.mugr-footer-grid{display:grid;grid-template-columns:1.25fr .8fr .8fr 1fr;gap:48px}.mugr-footer-brand img{max-width:250px;max-height:78px;object-fit:contain;filter:brightness(.45)}.mugr-footer-brand p{color:#6a7788;line-height:1.6;margin:18px 0 12px}.mugr-footer-brand>a{color:var(--mugr-blue);font-weight:700}.mugr-footer-column h4{font-size:16px;margin:2px 0 17px;color:#172438;font-weight:800}.mugr-footer-column>a{display:block;color:#516073;margin:10px 0}.mugr-footer-column>a:hover{color:var(--mugr-blue)}.mugr-footer-contact{border-left:1px solid #e1e6ec;padding-left:34px}.mugr-footer-contact p{color:#6d7988;line-height:1.6}.mugr-footer-highlight{font-weight:700!important;color:var(--mugr-blue)!important}.mugr-footer-bottom{background:#172033;color:#c9d1dc}.mugr-footer-bottom .mugr-shell{min-height:52px;display:flex;align-items:center;justify-content:space-between;font-size:13px}.mugr-back-top{position:fixed;right:24px;bottom:24px;width:44px;height:44px;border:0;border-radius:50%;background:var(--mugr-blue);color:#fff;box-shadow:0 8px 20px rgba(11,103,207,.3);opacity:0;pointer-events:none;transform:translateY(8px);transition:.2s;z-index:30}.mugr-back-top.show{opacity:1;pointer-events:auto;transform:none}
@media(max-width:1180px){.mugr-main-header-inner{grid-template-columns:235px 1fr auto;gap:20px}.mugr-header-title{padding-left:20px}.mugr-header-title strong{font-size:24px}.mugr-market-layout{grid-template-columns:220px minmax(0,1fr)}.mugr-program-hero{grid-template-columns:1fr}.mugr-program-hero-cards{grid-template-columns:repeat(4,1fr);background:#fff}.mugr-program-hero-cards a{min-height:100px}.mugr-footer-grid{grid-template-columns:1.1fr 1fr 1fr}.mugr-footer-contact{grid-column:1/-1;border-left:0;border-top:1px solid #e5e9ee;padding:24px 0 0}}
@media(max-width:900px){.mugr-shell{width:min(100% - 28px,1560px)}.mugr-utility-bar{display:none}.mugr-main-header-inner{min-height:88px;grid-template-columns:1fr auto}.mugr-brand img{max-width:220px}.mugr-header-title{display:none}.mugr-main-site-btn span{display:none}.mugr-main-site-btn{width:48px;padding:0}.mugr-market-layout{display:block}.mugr-department-panel{position:relative;top:auto;margin-bottom:15px}.mugr-department-panel>a,.mugr-side-card{display:none}.mugr-department-title{cursor:pointer}.mugr-department-panel.mobile-open>a{display:flex}.mugr-department-panel.mobile-open .mugr-side-card{display:flex}.mugr-program-hero h1{font-size:34px}.mugr-program-hero-copy{padding:32px}.mugr-degree-tabs{grid-template-columns:1fr 1fr}.mugr-footer-cta-inner{grid-template-columns:48px 1fr;padding:24px 0}.mugr-footer-cta-actions{grid-column:1/-1;padding-left:68px}.mugr-footer-grid{grid-template-columns:1fr 1fr}.mugr-footer-brand{grid-column:1/-1}}
@media(max-width:640px){body.mugr-market-site{font-size:15px}.mugr-shell{width:min(100% - 20px,1560px)}.mugr-main-header-inner{min-height:76px}.mugr-brand img{max-width:190px}.mugr-category-nav a{min-height:48px;padding:0 15px}.mugr-program-hero{min-height:0}.mugr-program-hero-copy{padding:4px 20px}.mugr-program-hero h1{font-size:29px}.mugr-program-hero p{font-size:16px}.mugr-program-hero-cards{grid-template-columns:1fr 1fr;padding:10px;gap:10px}.mugr-program-hero-cards a{min-height:94px;padding:14px}.mugr-finder-card{padding:20px 15px}.mugr-finder-header,.mugr-result-heading{align-items:flex-start;flex-direction:column}.mugr-year-pill{align-self:flex-start}.mugr-degree-tabs{grid-template-columns:1fr}.mugr-degree-tabs a{min-height:52px}.mugr-search-box{grid-template-columns:38px 1fr}.mugr-search-box button{grid-column:1/-1;height:48px}.mugr-result-heading{padding:20px 16px}.mugr-result-hint{white-space:normal}.mugr-faculty-list{padding:0 14px 18px}.mugr-faculty-button{grid-template-columns:42px 1fr 30px}.mugr-faculty-name strong{font-size:16px}.mugr-footer-cta-inner{grid-template-columns:1fr}.mugr-footer-cta-icon{display:none}.mugr-footer-cta-actions{grid-column:auto;padding-left:0;flex-direction:column}.mugr-footer-cta-actions a{justify-content:center}.mugr-footer-grid{grid-template-columns:1fr;gap:28px}.mugr-footer-brand{grid-column:auto}.mugr-footer-contact{grid-column:auto}.mugr-footer-bottom .mugr-shell{padding:12px 0;display:block}.mugr-footer-bottom span{display:block;margin:3px 0}body.mugr-market-site>.content-form{width:calc(100% - 20px)!important;margin-top:15px!important}.content-form .card-header{font-size:18px!important;padding:15px!important}.content-form table.responsive-table{display:block!important;overflow-x:auto!important}}


/* =========================================================
   MUGR DB HELVETHAICA TYPOGRAPHY TUNING — 2026-08-15
   Keep all new typography inside assets-mugr.
   ========================================================= */
:root{
  --mugr-font-db:'MUGR DB Helvethaica X',sans-serif;
}

html,
body.mugr-market-site,
body.mugr-market-site button,
body.mugr-market-site input,
body.mugr-market-site select,
body.mugr-market-site textarea,
body.mugr-market-site table,
body.mugr-market-site th,
body.mugr-market-site td{
  font-family:var(--mugr-font-db)!important;
}

body.mugr-market-site{
  font-size:20px;
  line-height:1.34;
  letter-spacing:.01em;
}

/* Utility / header */
.mugr-utility-bar{font-size:17px}
.mugr-header-title small{font-size:15px;letter-spacing:1.6px}
.mugr-header-title strong{font-size:34px;line-height:1.06;font-weight:700}
.mugr-main-site-btn,.mugr-lang-btn{font-size:20px;font-weight:700}
.mugr-category-nav a{font-size:19px;font-weight:600}

/* Breadcrumb + sidebar */
.mugr-breadcrumb{font-size:17px}
.mugr-department-title{font-size:24px}
.mugr-department-panel>a{font-size:19px;line-height:1.22}
.mugr-side-card small{font-size:15px}
.mugr-side-card strong{font-size:42px}
.mugr-side-card span{font-size:17px}

/* Hero */
.mugr-eyebrow{font-size:16px;letter-spacing:1.3px}
.mugr-program-hero h1{font-size:50px;line-height:1.03;letter-spacing:-.012em}
.mugr-program-hero p{font-size:23px;line-height:1.34}
.mugr-hero-badges span{font-size:18px}
.mugr-program-hero-cards strong{font-size:23px;line-height:1.1}
.mugr-program-hero-cards small{font-size:16px}

/* Finder */
.mugr-finder-header small,.mugr-result-heading small{font-size:15px;letter-spacing:1.2px}
.mugr-finder-header h2,.mugr-result-heading h2{font-size:32px;line-height:1.08}
.mugr-year-pill{font-size:18px}
.mugr-degree-tabs a{font-size:20px;line-height:1.14}
.mugr-search-block label{font-size:20px}
.mugr-search-box input{font-family:var(--mugr-font-db)!important;font-size:20px}
.mugr-search-box button{font-family:var(--mugr-font-db)!important;font-size:21px}
.mugr-result-hint{font-size:18px}

/* Faculty / programs */
.mugr-faculty-name strong{font-size:24px;line-height:1.14}
.mugr-faculty-name small{font-size:17px;line-height:1.18}
.mugr-program-table-wrap table{font-size:18px}
.mugr-program-table-wrap table th{font-size:19px;line-height:1.12}
.mugr-program-table-wrap table td{font-size:18px;line-height:1.22}

/* Footer */
.mugr-footer-cta-copy small{font-size:16px}
.mugr-footer-cta-copy strong{font-size:27px;line-height:1.08}
.mugr-footer-cta-actions a{font-size:19px}
.mugr-footer-brand p,.mugr-footer-column>a,.mugr-footer-contact p{font-size:18px}
.mugr-footer-column h4{font-size:22px}
.mugr-footer-bottom .mugr-shell{font-size:16px}

/* Better DB-font rhythm: less vertical padding where the font's ascenders/descenders allow it */
.mugr-category-nav a{min-height:52px}
.mugr-department-panel>a{min-height:50px}
.mugr-degree-tabs a{min-height:58px}
.mugr-search-box input{height:52px}

@media(max-width:1180px){
  .mugr-header-title strong{font-size:30px}
  .mugr-program-hero h1{font-size:44px}
  .mugr-program-hero p{font-size:21px}
}

@media(max-width:900px){
  body.mugr-market-site{font-size:19px}
  .mugr-program-hero h1{font-size:40px}
  .mugr-finder-header h2,.mugr-result-heading h2{font-size:29px}
}

@media(max-width:640px){
  body.mugr-market-site{font-size:18px;line-height:1.32}
  .mugr-category-nav a{font-size:18px}
  .mugr-department-title{font-size:22px}
  .mugr-program-hero h1{font-size:35px;line-height:1.02}
  .mugr-program-hero p{font-size:20px}
  .mugr-program-hero-cards strong{font-size:20px}
  .mugr-program-hero-cards small{font-size:15px}
  .mugr-finder-header h2,.mugr-result-heading h2{font-size:27px}
  .mugr-degree-tabs a{font-size:19px}
  .mugr-search-block label,.mugr-search-box input{font-size:19px}
  .mugr-search-box button{font-size:20px}
  .mugr-faculty-name strong{font-size:21px}
  .mugr-faculty-name small{font-size:16px}
  .mugr-program-table-wrap table,.mugr-program-table-wrap table td{font-size:17px}
  .mugr-program-table-wrap table th{font-size:18px}
  .mugr-footer-column h4{font-size:21px}
  .mugr-footer-brand p,.mugr-footer-column>a,.mugr-footer-contact p{font-size:17px}
}

/* ================================
   LANGUAGE SWITCHER — TH / EN
   ================================ */
.mugr-lang-switch{display:flex;align-items:center;gap:8px;flex:0 0 auto}
.mugr-header-actions .mugr-lang-btn{
  min-width:78px;height:46px;padding:0 14px;border-radius:24px;
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  background:#fff;color:#18355f;border:1px solid rgba(255,255,255,.72);
  box-shadow:0 4px 12px rgba(0,32,82,.10);font-size:19px;font-weight:700;
  line-height:1;text-decoration:none;transition:all .18s ease;
}
.mugr-header-actions .mugr-lang-btn:hover{transform:translateY(-1px);background:#fff;color:#0b67cf;box-shadow:0 7px 18px rgba(0,32,82,.16)}
.mugr-header-actions .mugr-lang-btn.active{background:#173b68;color:#fff;border-color:rgba(255,255,255,.34);box-shadow:none}
.mugr-header-actions .mugr-lang-btn.active:hover{background:#214b7f;color:#fff}
.mugr-lang-flag{display:inline-flex;align-items:center;justify-content:center;width:24px;height:16px;flex:0 0 24px;overflow:hidden;border-radius:1px;box-shadow:0 0 0 1px rgba(0,0,0,.08)}
.mugr-flag-th{position:relative;background:linear-gradient(to bottom,#d91e36 0 20%,#fff 20% 33%,#24378b 33% 67%,#fff 67% 80%,#d91e36 80% 100%)}
.mugr-flag-en{font-size:22px;line-height:16px;box-shadow:none;overflow:visible}
@media (max-width:991px){.mugr-lang-switch{gap:6px}.mugr-header-actions .mugr-lang-btn{min-width:68px;height:42px;padding:0 11px;font-size:18px}.mugr-lang-flag{width:22px;height:15px;flex-basis:22px}.mugr-flag-en{font-size:20px}}
@media (max-width:575px){.mugr-main-site-btn{display:none}.mugr-header-actions .mugr-lang-btn{min-width:64px;height:40px;padding:0 10px;font-size:17px}.mugr-lang-switch{gap:5px}}

/* =========================================================
   TYPOGRAPHY TUNING V2 — larger + stronger DB Helvethaica
   ========================================================= */
body.mugr-market-site{font-size:21px;font-weight:500}
.mugr-utility-bar{font-size:18px;font-weight:600}
.mugr-header-title small{font-size:16px;font-weight:700}
.mugr-header-title strong{font-size:37px;font-weight:800}
.mugr-main-site-btn,.mugr-header-actions .mugr-lang-btn{font-size:21px;font-weight:800}
.mugr-category-nav a{font-size:21px;font-weight:700}
.mugr-breadcrumb{font-size:18px;font-weight:600}
.mugr-department-title{font-size:26px;font-weight:800}
.mugr-department-panel>a{font-size:21px;font-weight:700}
.mugr-side-card small{font-size:16px;font-weight:700}
.mugr-side-card strong{font-size:44px;font-weight:800}
.mugr-side-card span{font-size:18px;font-weight:600}
.mugr-eyebrow{font-size:17px;font-weight:800}
.mugr-program-hero h1{font-size:54px;font-weight:800}
.mugr-program-hero p{font-size:25px;font-weight:500;color:#536278}
.mugr-hero-badges span{font-size:19px;font-weight:700}
.mugr-program-hero-cards strong{font-size:25px;font-weight:800}
.mugr-program-hero-cards small{font-size:17px;font-weight:600}
.mugr-finder-header small,.mugr-result-heading small{font-size:16px;font-weight:800}
.mugr-finder-header h2,.mugr-result-heading h2{font-size:35px;font-weight:800}
.mugr-year-pill{font-size:19px;font-weight:800}
.mugr-degree-tabs a{font-size:22px;font-weight:800}
.mugr-search-block label{font-size:21px;font-weight:700}
.mugr-search-box input{font-size:21px;font-weight:500}
.mugr-search-box button{font-size:22px;font-weight:800}
.mugr-result-hint{font-size:19px;font-weight:600}
.mugr-faculty-name strong{font-size:26px;font-weight:800}
.mugr-faculty-name small{font-size:18px;font-weight:600}
.mugr-program-table-wrap table{font-size:19px;font-weight:500}
.mugr-program-table-wrap table th{font-size:21px;font-weight:800!important}
.mugr-program-table-wrap table td{font-size:19px;font-weight:500}
.mugr-program-table-wrap table a{font-weight:700!important}
.mugr-footer-cta-copy strong{font-size:30px;font-weight:800}
.mugr-footer-cta-copy span{font-size:19px;font-weight:500}
.mugr-footer-cta-actions a{font-size:20px;font-weight:800}
.mugr-footer-column h4{font-size:24px;font-weight:800}
.mugr-footer-brand p,.mugr-footer-column>a,.mugr-footer-contact p{font-size:19px;font-weight:500}
.mugr-footer-bottom .mugr-shell{font-size:17px;font-weight:500}
@media(max-width:1180px){.mugr-header-title strong{font-size:33px}.mugr-program-hero h1{font-size:48px}.mugr-program-hero p{font-size:23px}}
@media(max-width:900px){body.mugr-market-site{font-size:20px}.mugr-program-hero h1{font-size:42px}.mugr-finder-header h2,.mugr-result-heading h2{font-size:31px}}
@media(max-width:640px){body.mugr-market-site{font-size:19px}.mugr-category-nav a{font-size:19px}.mugr-department-title{font-size:24px}.mugr-program-hero h1{font-size:37px}.mugr-program-hero p{font-size:21px}.mugr-finder-header h2,.mugr-result-heading h2{font-size:29px}.mugr-degree-tabs a{font-size:20px}.mugr-search-block label,.mugr-search-box input{font-size:20px}.mugr-faculty-name strong{font-size:23px}}

/* MUGR language flags — local SVG assets */
.mugr-flag-th,.mugr-flag-en{
  position:relative;
  background-color:transparent;
  background-position:center;
  background-repeat:no-repeat;
  background-size:100% 100%;
  font-size:0!important;
  line-height:0!important;
  box-shadow:0 0 0 1px rgba(0,0,0,.10);
  overflow:hidden;
}
.mugr-flag-th{background-image:url('../images/flag-th.svg');}
.mugr-flag-en{background-image:url('../images/flag-gb.svg');}

/* =========================================================
   TYPOGRAPHY SCALE V3 — larger across the entire interface
   ========================================================= */
body.mugr-market-site{font-size:23px;font-weight:500;line-height:1.38}
.mugr-utility-bar{font-size:20px;font-weight:700}
.mugr-header-title small{font-size:18px;font-weight:800;letter-spacing:.08em}
.mugr-header-title strong{font-size:41px;font-weight:800;line-height:1.05}
.mugr-main-site-btn,.mugr-header-actions .mugr-lang-btn{font-size:23px;font-weight:800}
.mugr-header-actions .mugr-lang-btn{min-width:84px;height:50px;padding:0 16px}
.mugr-lang-flag{width:27px;height:18px;flex-basis:27px}
.mugr-category-nav a{font-size:23px;font-weight:700;min-height:58px}
.mugr-breadcrumb{font-size:20px;font-weight:700}
.mugr-department-title{font-size:29px;font-weight:800}
.mugr-department-panel>a{font-size:23px;font-weight:700;min-height:56px}
.mugr-side-card small{font-size:18px;font-weight:800}
.mugr-side-card strong{font-size:49px;font-weight:800;line-height:1}
.mugr-side-card span{font-size:20px;font-weight:700}
.mugr-eyebrow{font-size:19px;font-weight:800}
.mugr-program-hero h1{font-size:56px;font-weight:800;line-height:1.03}
.mugr-program-hero p{font-size:28px;font-weight:500;line-height:1.35}
.mugr-hero-badges span{font-size:21px;font-weight:700}
.mugr-program-hero-cards strong{font-size:28px;font-weight:800}
.mugr-program-hero-cards small{font-size:19px;font-weight:700}
.mugr-finder-header small,.mugr-result-heading small{font-size:18px;font-weight:800}
.mugr-finder-header h2,.mugr-result-heading h2{font-size:39px;font-weight:800;line-height:1.05}
.mugr-year-pill{font-size:21px;font-weight:800}
.mugr-degree-tabs a{font-size:24px;font-weight:800;min-height:64px}
.mugr-search-block label{font-size:23px;font-weight:700}
.mugr-search-box input{font-size:23px;font-weight:500;height:58px}
.mugr-search-box button{font-size:24px;font-weight:800;min-height:58px}
.mugr-result-hint{font-size:21px;font-weight:600}
.mugr-faculty-name strong{font-size:29px;font-weight:800;line-height:1.12}
.mugr-faculty-name small{font-size:20px;font-weight:600}
.mugr-program-table-wrap table{font-size:21px;font-weight:500}
.mugr-program-table-wrap table th{font-size:23px;font-weight:800!important}
.mugr-program-table-wrap table td{font-size:21px;font-weight:500;line-height:1.35}
.mugr-program-table-wrap table a{font-size:21px;font-weight:700!important}
.mugr-footer-cta-copy strong{font-size:34px;font-weight:800}
.mugr-footer-cta-copy span{font-size:21px;font-weight:500}
.mugr-footer-cta-actions a{font-size:22px;font-weight:800}
.mugr-footer-column h4{font-size:27px;font-weight:800}
.mugr-footer-brand p,.mugr-footer-column>a,.mugr-footer-contact p{font-size:21px;font-weight:500}
.mugr-footer-bottom .mugr-shell{font-size:19px;font-weight:500}

@media(max-width:1180px){
  body.mugr-market-site{font-size:22px}
  .mugr-header-title strong{font-size:37px}
  .mugr-program-hero h1{font-size:53px}
  .mugr-program-hero p{font-size:26px}
  .mugr-category-nav a,.mugr-department-panel>a{font-size:22px}
  .mugr-degree-tabs a{font-size:23px}
}
@media(max-width:900px){
  body.mugr-market-site{font-size:21px}
  .mugr-program-hero h1{font-size:46px}
  .mugr-program-hero p{font-size:24px}
  .mugr-finder-header h2,.mugr-result-heading h2{font-size:34px}
  .mugr-faculty-name strong{font-size:26px}
}
@media(max-width:640px){
  body.mugr-market-site{font-size:20px;line-height:1.34}
  .mugr-utility-bar{font-size:17px}
  .mugr-header-title strong{font-size:31px}
  .mugr-main-site-btn,.mugr-header-actions .mugr-lang-btn{font-size:18px}
  .mugr-header-actions .mugr-lang-btn{min-width:68px;height:42px;padding:0 10px}
  .mugr-lang-flag{width:23px;height:15px;flex-basis:23px}
  .mugr-category-nav a{font-size:20px;min-height:52px}
  .mugr-breadcrumb{font-size:18px}
  .mugr-department-title{font-size:26px}
  .mugr-department-panel>a{font-size:20px;min-height:52px}
  .mugr-program-hero h1{font-size:40px;line-height:1.02}
  .mugr-program-hero p{font-size:23px}
  .mugr-program-hero-cards strong{font-size:23px}
  .mugr-program-hero-cards small{font-size:17px}
  .mugr-finder-header h2,.mugr-result-heading h2{font-size:31px}
  .mugr-degree-tabs a{font-size:21px;min-height:58px}
  .mugr-search-block label,.mugr-search-box input{font-size:21px}
  .mugr-search-box button{font-size:22px}
  .mugr-faculty-name strong{font-size:25px}
  .mugr-faculty-name small{font-size:18px}
  .mugr-program-table-wrap table,.mugr-program-table-wrap table td{font-size:18px}
  .mugr-program-table-wrap table th{font-size:20px}
  .mugr-footer-column h4{font-size:24px}
  .mugr-footer-brand p,.mugr-footer-column>a,.mugr-footer-contact p{font-size:18px}
}

/* MUGR Faculty list tuning v4 — larger, bolder, darker */
.mugr-faculty-button{
  padding:19px 8px;
  grid-template-columns:56px 1fr 38px;
}
.mugr-faculty-icon{
  width:44px;
  height:44px;
}
.mugr-faculty-name strong{
  font-size:33px;
  font-weight:900;
  line-height:1.08;
  color:#172b45;
  letter-spacing:.005em;
}
.mugr-faculty-name small{
  font-size:22px;
  font-weight:800;
  line-height:1.15;
  color:#3f536c;
}
@media(max-width:900px){
  .mugr-faculty-name strong{font-size:29px}
  .mugr-faculty-name small{font-size:20px}
}
@media(max-width:640px){
  .mugr-faculty-button{padding:16px 4px;grid-template-columns:48px 1fr 32px}
  .mugr-faculty-icon{width:40px;height:40px}
  .mugr-faculty-name strong{font-size:27px}
  .mugr-faculty-name small{font-size:19px}
}


/* =========================================================
   FACULTY BILINGUAL LABELS V5
   TH interface: Thai primary + English secondary.
   EN interface: English only.
   ========================================================= */
.mugr-faculty-name-th,
.mugr-faculty-name-en{
  display:block;
}
.mugr-faculty-name-th{
  font-size:33px;
  font-weight:900;
  line-height:1.02;
  color:#172b45;
  letter-spacing:.002em;
}
.mugr-faculty-name-en{
  margin-top:5px;
  font-size:25px;
  font-weight:800;
  line-height:1.08;
  color:#304a68;
  letter-spacing:.01em;
}
.mugr-faculty-name-en-only{
  margin-top:0;
  font-size:30px;
  color:#172b45;
  font-weight:900;
}
@media(max-width:900px){
  .mugr-faculty-name-th{font-size:29px}
  .mugr-faculty-name-en{font-size:22px}
  .mugr-faculty-name-en-only{font-size:27px}
}
@media(max-width:640px){
  .mugr-faculty-name-th{font-size:27px}
  .mugr-faculty-name-en{font-size:20px;margin-top:3px}
  .mugr-faculty-name-en-only{font-size:25px}
}

/* V6: clearer program table column titles */
.mugr-program-table-wrap .mugr-program-table-head th {
    background: #d9ecf9 !important;
    color: #172b45 !important;
    vertical-align: middle !important;
    padding: 14px 16px !important;
    border-bottom: 1px solid #9dc4df !important;
    font-size: 24px !important;
    font-weight: 900 !important;
    line-height: 1.15 !important;
}
.mugr-program-table-wrap .mugr-col-code { width: 11%; text-align: center !important; }
.mugr-program-table-wrap .mugr-col-program { width: 59%; text-align: left !important; }
.mugr-program-table-wrap .mugr-col-intake { width: 15%; text-align: center !important; }
.mugr-program-table-wrap .mugr-col-apply { width: 15%; text-align: center !important; }

/* Thai page: faculty name must remain bilingual and readable. */
.mugr-faculty-name-th,
.mugr-faculty-name-en {
    display: block !important;
}
.mugr-faculty-name-th {
    color: #172b45 !important;
    font-size: 31px !important;
    font-weight: 900 !important;
    line-height: 1.05 !important;
}
.mugr-faculty-name-en {
    margin-top: 3px !important;
    color: #334b68 !important;
    font-size: 25px !important;
    font-weight: 800 !important;
    line-height: 1.05 !important;
}
.mugr-faculty-name-en-only {
    margin-top: 0 !important;
    font-size: 30px !important;
    color: #172b45 !important;
    font-weight: 900 !important;
}
@media (max-width: 767px) {
    .mugr-program-table-wrap .mugr-program-table-head th { font-size: 20px !important; padding: 10px 8px !important; }
    .mugr-faculty-name-th { font-size: 26px !important; }
    .mugr-faculty-name-en { font-size: 21px !important; }
}

/* V7 — Sidebar becomes Program Filters (menu links removed to avoid duplicate navigation) */
.mugr-filter-panel{
  border:1px solid #d9e4f0;
  border-radius:10px;
  overflow:hidden;
  background:#fff;
  box-shadow:0 8px 24px rgba(26,55,91,.06);
}
.mugr-filter-mobile-toggle{display:none}
.mugr-filter-body{display:block}
.mugr-filter-panel .mugr-department-title{
  min-height:62px;
  padding:0 20px;
  display:flex;
  align-items:center;
  gap:12px;
  background:#126fd1;
  color:#fff;
  font-size:27px;
  font-weight:900;
  border:0;
}
.mugr-filter-panel .mugr-department-title i{font-size:22px}
.mugr-side-filter-form{padding:20px 18px 18px;background:#fff}
.mugr-filter-group{margin:0 0 18px}
.mugr-filter-group label{
  display:block;
  margin:0 0 7px;
  color:#243954;
  font-size:22px;
  font-weight:900;
  line-height:1.1;
}
.mugr-filter-control{position:relative}
.mugr-filter-control>i{
  position:absolute;
  left:14px;
  top:50%;
  transform:translateY(-50%);
  z-index:2;
  color:#0b6fcf;
  font-size:17px;
  pointer-events:none;
}
.mugr-filter-control select,
.mugr-filter-control input{
  width:100%;
  min-height:52px;
  border:1px solid #cddbea;
  border-radius:7px;
  background:#fff;
  color:#1e334d;
  padding:7px 36px 7px 42px;
  font-family:var(--mugr-font-db)!important;
  font-size:21px;
  font-weight:700;
  outline:none;
  transition:border-color .18s,box-shadow .18s;
}
.mugr-filter-control select:focus,
.mugr-filter-control input:focus{border-color:#1674d4;box-shadow:0 0 0 3px rgba(22,116,212,.11)}
.mugr-filter-apply,
.mugr-filter-reset{
  width:100%;
  min-height:50px;
  border-radius:7px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:9px;
  font-family:var(--mugr-font-db)!important;
  font-size:21px;
  font-weight:900;
  text-decoration:none!important;
}
.mugr-filter-apply{border:0;background:#126fd1;color:#fff;cursor:pointer;box-shadow:0 6px 14px rgba(18,111,209,.16)}
.mugr-filter-apply:hover{background:#0b61bb}
.mugr-filter-reset{margin-top:10px;border:1px solid #cfdbe7;background:#f8fbfe;color:#425a75}
.mugr-filter-reset:hover{background:#eef5fc;color:#0b67c6}
.mugr-filter-panel .mugr-side-card{margin:0 18px 18px;border-radius:8px}

/* Tablet: filter is a collapsible bar above the finder */
@media(max-width:900px){
  .mugr-filter-panel{position:relative!important;top:auto!important;margin:0 0 16px!important;border-radius:9px}
  .mugr-filter-mobile-toggle{
    width:100%;min-height:58px;padding:0 18px;border:0;background:#126fd1;color:#fff;
    display:flex;align-items:center;justify-content:space-between;
    font-family:var(--mugr-font-db)!important;font-size:24px;font-weight:900;cursor:pointer
  }
  .mugr-filter-mobile-toggle>span{display:flex;align-items:center;gap:10px}
  .mugr-filter-mobile-toggle>i{transition:transform .2s}
  .mugr-filter-panel.mobile-open .mugr-filter-mobile-toggle>i{transform:rotate(180deg)}
  .mugr-filter-body{display:none}
  .mugr-filter-panel.mobile-open .mugr-filter-body{display:block}
  .mugr-filter-panel .mugr-department-title{display:none}
  .mugr-side-filter-form{display:grid;grid-template-columns:1fr 1fr;gap:14px 16px;padding:18px}
  .mugr-filter-group{margin:0}
  .mugr-filter-apply,.mugr-filter-reset{margin:0;align-self:end}
  .mugr-filter-panel .mugr-side-card{display:none!important}
}

/* Mobile: one column, comfortable tap targets */
@media(max-width:640px){
  .mugr-filter-mobile-toggle{min-height:56px;font-size:23px;padding:0 15px}
  .mugr-side-filter-form{grid-template-columns:1fr;gap:14px;padding:16px 14px}
  .mugr-filter-group label{font-size:21px}
  .mugr-filter-control select,.mugr-filter-control input{min-height:54px;font-size:20px;padding-left:40px}
  .mugr-filter-apply,.mugr-filter-reset{min-height:52px;font-size:21px}
}

/* =========================================================
   V8: Sidebar layout + controlled faculty dropdown
   ========================================================= */
.mugr-market-layout{
  display:grid !important;
  grid-template-columns:250px minmax(0,1fr) !important;
  gap:18px !important;
  align-items:start !important;
}
.mugr-market-layout > .mugr-filter-panel{grid-column:1;min-width:0;width:100%}
.mugr-market-layout > .mugr-program-workspace{grid-column:2;min-width:0;width:100%}

.mugr-custom-select-wrap{position:relative;z-index:20}
.mugr-native-select-hidden{
  position:absolute!important;
  width:1px!important;height:1px!important;
  opacity:0!important;pointer-events:none!important;
  overflow:hidden!important;clip:rect(0,0,0,0)!important;
}
.mugr-custom-select-button{
  width:100%;min-width:0;min-height:52px;
  border:1px solid #cddbea;border-radius:7px;background:#fff;color:#1e334d;
  padding:7px 34px 7px 42px;
  display:flex;align-items:center;justify-content:space-between;gap:8px;
  font-family:var(--mugr-font-db)!important;font-size:21px;font-weight:700;
  text-align:left;cursor:pointer;outline:none;
}
.mugr-custom-select-button:focus,
.mugr-custom-select-button[aria-expanded="true"]{
  border-color:#1674d4;box-shadow:0 0 0 3px rgba(22,116,212,.11)
}
.mugr-custom-select-text{
  display:block;min-width:0;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
}
.mugr-custom-select-button > i{
  flex:0 0 auto;color:#52677e;font-size:16px;transition:transform .18s ease
}
.mugr-custom-select-button[aria-expanded="true"] > i{transform:rotate(180deg)}
.mugr-custom-select-menu{
  display:none;position:absolute;top:calc(100% + 6px);left:0;right:0;
  width:100%;max-width:100%;max-height:340px;overflow-y:auto;overflow-x:hidden;
  background:#fff;border:1px solid #cbd8e6;border-radius:7px;
  box-shadow:0 14px 30px rgba(20,49,82,.18);z-index:9999;padding:5px;
  overscroll-behavior:contain;
}
.mugr-custom-select-menu.open{display:block}
.mugr-custom-select-option{
  width:100%;max-width:100%;min-width:0;border:0;background:#fff;color:#20354d;
  padding:9px 10px;border-radius:5px;text-align:left;cursor:pointer;
  font-family:var(--mugr-font-db)!important;font-size:20px;font-weight:650;line-height:1.2;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:block;
}
.mugr-custom-select-option:hover{background:#eef6ff;color:#0b67c6}
.mugr-custom-select-option.selected{background:#126fd1;color:#fff}

@media(max-width:900px){
  .mugr-market-layout{display:block!important}
  .mugr-market-layout > .mugr-filter-panel,
  .mugr-market-layout > .mugr-program-workspace{width:100%!important}
  .mugr-custom-select-menu{max-height:300px}
}
@media(max-width:640px){
  .mugr-custom-select-button{min-height:54px;font-size:20px;padding-left:40px}
  .mugr-custom-select-option{font-size:19px;padding:10px}
  .mugr-custom-select-menu{max-height:280px}
}

/* =========================================================
   V10 — Sidebar card separation + strong chevron accordion
   ========================================================= */
.mugr-sidebar-stack{
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:18px;
  align-self:start;
  position:sticky;
  top:16px;
}
.mugr-sidebar-stack .mugr-department-panel{
  position:relative;
  top:auto;
}
.mugr-year-card-wrap{
  background:#fff;
  border:1px solid #dbe3ed;
  border-radius:10px;
  padding:14px;
  overflow:hidden;
}
.mugr-year-card-wrap .mugr-side-card{
  margin:0;
  min-height:150px;
  border-radius:9px;
  padding:22px 20px;
  box-shadow:0 8px 22px rgba(19,73,143,.10);
}

/* V11 — softer chevron: clear but secondary to faculty name, no circle. */
.mugr-faculty-arrow{
  width:38px;
  height:44px;
  border-radius:0;
  display:flex;
  align-items:center;
  justify-content:flex-end;
  color:#6f8094;
  background:transparent!important;
  transition:transform .22s ease,color .18s ease;
}
.mugr-faculty-arrow i{
  font-size:23px;
  font-weight:600;
  line-height:1;
  color:inherit;
  -webkit-text-stroke:0 transparent;
}
.mugr-faculty-button:hover .mugr-faculty-arrow{
  color:#126fd1;
}
.mugr-faculty-button.active .mugr-faculty-arrow{
  transform:rotate(180deg);
  background:transparent!important;
  color:#315b86;
}

@media(max-width:900px){
  .mugr-sidebar-stack{
    position:relative;
    top:auto;
    width:100%;
    gap:14px;
  }
  .mugr-year-card-wrap{
    padding:12px;
  }
  .mugr-year-card-wrap .mugr-side-card{
    min-height:126px;
  }
  .mugr-faculty-arrow{width:36px;height:42px}
  .mugr-faculty-arrow i{font-size:22px}
}
@media(max-width:640px){
  .mugr-sidebar-stack{gap:12px}
  .mugr-year-card-wrap{padding:10px;border-radius:9px}
  .mugr-year-card-wrap .mugr-side-card{min-height:116px;padding:18px}
  .mugr-faculty-arrow{width:34px;height:42px}
  .mugr-faculty-arrow i{font-size:24px}
}

/* =========================================================
   V12 — Full-width finder / no sidebar / sticky quick filters
   2026-08-15
   ========================================================= */
.mugr-market-main > .mugr-shell{
  width:min(1560px,calc(100% - 48px));
}
.mugr-market-layout.mugr-market-layout-fullwidth{
  display:block!important;
  width:100%!important;
  grid-template-columns:none!important;
  gap:0!important;
}
.mugr-program-workspace-fullwidth{
  width:100%!important;
  min-width:0;
}

/* Academic year now belongs to the hero, not a sidebar card. */
.mugr-hero-year-card{
  display:inline-flex;
  align-items:center;
  gap:10px;
  margin:0 0 14px 18px;
  padding:7px 13px;
  border:1px solid #cfe0f3;
  border-radius:8px;
  background:rgba(255,255,255,.82);
  box-shadow:0 5px 14px rgba(26,71,126,.06);
  vertical-align:middle;
  color:#174a78;
}
.mugr-hero-year-card span{
  font-size:18px;
  font-weight:800;
  letter-spacing:.9px;
  color:#4d6f93;
}
.mugr-hero-year-card strong{
  font-size:27px;
  line-height:1;
  color:#0b67cf;
  font-weight:900;
}
.mugr-hero-year-card small{
  font-size:18px;
  font-weight:700;
  color:#536a82;
}
.mugr-program-hero-copy > .mugr-eyebrow{
  vertical-align:middle;
}

/* Search + Faculty are one quick-access sticky row. */
.mugr-search-sticky{
  position:sticky;
  top:0;
  z-index:95;
  margin:0 -10px -10px;
  padding:10px;
  border-radius:10px;
  background:rgba(255,255,255,.96);
  box-shadow:0 8px 22px rgba(24,57,96,.08);
  backdrop-filter:blur(8px);
  -webkit-backdrop-filter:blur(8px);
  border-top-left-radius:0;
  border-top-right-radius:0;
  border-top:1px solid rgba(207,217,228,.75);
}

.mugr-search-sticky > label{
  display:block;
  margin:0 0 7px;
}
.mugr-quick-filter-row{
  display:grid;
  grid-template-columns:minmax(300px,1.55fr) minmax(280px,.85fr) 132px auto;
  gap:10px;
  align-items:stretch;
  min-width:0;
}
.mugr-search-sticky .mugr-search-box{
  grid-template-columns:48px minmax(0,1fr)!important;
  min-width:0;
  overflow:hidden;
}
.mugr-search-sticky .mugr-search-box input{
  min-width:0;
  height:58px;
}
.mugr-quick-faculty,
.mugr-quick-faculty .mugr-filter-control,
.mugr-quick-faculty .mugr-custom-select-wrap{
  min-width:0;
  width:100%;
}
.mugr-quick-custom-select > i{
  position:absolute;
  left:15px;
  top:50%;
  transform:translateY(-50%);
  z-index:2;
  color:#0b67cf;
  pointer-events:none;
  font-size:19px;
}
.mugr-quick-custom-select .mugr-custom-select-button{
  min-height:58px;
  height:58px;
  padding-left:43px;
  font-size:22px;
  border-color:#cfd9e4;
}
.mugr-quick-custom-select .mugr-custom-select-menu{
  top:calc(100% + 7px);
  left:0;
  right:0;
  width:100%;
  max-width:100%;
  max-height:330px;
}
.mugr-quick-custom-select .mugr-custom-select-option{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.mugr-quick-search-button{
  min-height:58px;
  border:0;
  border-radius:7px;
  background:var(--mugr-blue);
  color:#fff;
  padding:0 22px;
  font-family:var(--mugr-font-db)!important;
  font-size:23px;
  font-weight:800;
  cursor:pointer;
}
.mugr-quick-search-button:hover{background:#0758b3}
.mugr-quick-clear{
  min-width:58px;
  height:58px;
  display:flex;
  align-items:center;
  justify-content:center;
  border:1px solid #d3dfeb;
  border-radius:7px;
  background:#f7fafc;
  color:#61758c;
  font-size:20px;
}
.mugr-quick-clear:hover{background:#eef5fc;color:#0b67cf}
.sr-only{
  position:absolute!important;
  width:1px!important;
  height:1px!important;
  padding:0!important;
  margin:-1px!important;
  overflow:hidden!important;
  clip:rect(0,0,0,0)!important;
  white-space:nowrap!important;
  border:0!important;
}

/* Full-width layout gives the finder and result list more breathing room. */
.mugr-finder-card{padding:28px 30px 30px}
.mugr-result-heading{padding-left:30px;padding-right:30px}
.mugr-faculty-list{padding-left:30px;padding-right:30px}

@media(max-width:1180px){
  .mugr-market-main > .mugr-shell{width:min(100% - 28px,1560px)}
  .mugr-quick-filter-row{grid-template-columns:minmax(260px,1.3fr) minmax(250px,1fr) 120px auto}
  .mugr-hero-year-card{margin-left:12px}
}
@media(max-width:900px){
  .mugr-market-main > .mugr-shell{width:min(100% - 24px,1560px)}
  .mugr-search-sticky{top:0;margin-left:-6px;margin-right:-6px;padding:8px}
  .mugr-quick-filter-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
  .mugr-quick-search-button{min-height:54px}
  .mugr-quick-clear{height:54px;min-width:54px}
  .mugr-quick-custom-select .mugr-custom-select-button{height:54px;min-height:54px}
  .mugr-search-sticky .mugr-search-box input{height:54px}
  .mugr-hero-year-card{margin:0 0 14px 10px}
}
@media(max-width:640px){
  .mugr-market-main > .mugr-shell{width:calc(100% - 16px)}
  .mugr-program-hero-copy{padding-left:17px;padding-right:17px}
  .mugr-hero-year-card{
    display:flex;
    width:max-content;
    max-width:100%;
    margin:8px 0 14px;
    padding:6px 10px;
    gap:8px;
  }
  .mugr-hero-year-card span{font-size:18px}
  .mugr-hero-year-card strong{font-size:23px}
  .mugr-hero-year-card small{font-size:18px}
  .mugr-finder-card{padding:18px 12px 20px}
  .mugr-search-sticky{
    top:0;
    margin:0 -4px -8px;
    padding:8px 4px;
    box-shadow:0 6px 18px rgba(24,57,96,.10);
  }
  .mugr-quick-filter-row{grid-template-columns:1fr;gap:8px}
  .mugr-search-sticky .mugr-search-box,
  .mugr-quick-custom-select .mugr-custom-select-button,
  .mugr-quick-search-button{width:100%}
  .mugr-quick-search-button{min-height:52px;font-size:21px}
  .mugr-quick-clear{width:100%;height:48px;min-height:48px}
  .mugr-quick-custom-select .mugr-custom-select-menu{max-height:270px}
  .mugr-result-heading{padding-left:16px;padding-right:16px}
  .mugr-faculty-list{padding-left:12px;padding-right:12px}
}

/* =========================================================
   V15 — Sticky quick finder structural fix
   The quick finder is now a sibling of the degree card so its
   sticky range extends across the program results section.
   ========================================================= */
.mugr-program-workspace-fullwidth,
.mugr-market-layout-fullwidth,
.mugr-market-main,
.mugr-market-main > .mugr-shell{
  overflow:visible!important;
}
.mugr-search-sticky{
  position:-webkit-sticky!important;
  position:sticky!important;
  top:0!important;
  z-index:999!important;
  margin:0 0 18px!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  backdrop-filter:none!important;
  -webkit-backdrop-filter:none!important;
}
.mugr-search-sticky-inner{
  width:100%;
  padding:10px 18px 12px;
  background:rgba(255,255,255,.98);
  border:1px solid #dce5ef;
  border-radius:9px;
  box-shadow:0 8px 22px rgba(24,57,96,.10);
  backdrop-filter:blur(9px);
  -webkit-backdrop-filter:blur(9px);
}
.mugr-search-sticky.is-stuck .mugr-search-sticky-inner{
  border-top-left-radius:0;
  border-top-right-radius:0;
  box-shadow:0 10px 26px rgba(17,48,84,.16);
}
@media(max-width:900px){
  .mugr-search-sticky{top:0!important;margin-bottom:14px!important}
  .mugr-search-sticky-inner{padding:8px 10px 10px}
}
@media(max-width:640px){
  .mugr-search-sticky{top:0!important;margin-bottom:12px!important}
  .mugr-search-sticky-inner{padding:8px;border-radius:8px}
}

/* =========================================================
   V17 — Persistent selected degree context
   Keeps the active degree level visible in results and in the
   sticky quick finder so users never lose their search context.
   ========================================================= */
.mugr-sticky-context{
  display:flex;
  align-items:center;
  gap:9px;
  margin:0 0 7px;
  min-width:0;
}
.mugr-context-label{
  color:#5f7186;
  font-size:18px;
  font-weight:800;
  white-space:nowrap;
}
.mugr-degree-context-pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  min-width:0;
  max-width:100%;
  padding:5px 13px 6px;
  border:1px solid #f1c55b;
  border-left:5px solid #f2b91f;
  border-radius:999px;
  background:linear-gradient(90deg,#fff8dd 0%,#eef6ff 100%);
  color:#0b4f9f;
  font-size:20px;
  font-weight:900;
  line-height:1.05;
  box-shadow:0 4px 10px rgba(27,79,137,.07);
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.mugr-degree-context-pill i{color:#d99a00;font-size:16px;flex:0 0 auto}
.mugr-result-title-wrap{min-width:0}
.mugr-result-context{
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
  margin:0 0 5px;
}
.mugr-result-context > small{margin:0!important}
.mugr-result-level-badge{
  display:inline-flex;
  align-items:stretch;
  overflow:hidden;
  border-radius:999px;
  border:1px solid #d9a900;
  background:#fff;
  box-shadow:0 4px 12px rgba(20,66,116,.08);
  line-height:1;
}
.mugr-result-level-badge span{
  display:flex;
  align-items:center;
  padding:6px 11px 7px;
  background:#fff3c4;
  color:#755500;
  font-size:17px;
  font-weight:800;
}
.mugr-result-level-badge strong{
  display:flex;
  align-items:center;
  padding:6px 14px 7px;
  background:#0b67cf;
  color:#fff;
  font-size:20px;
  font-weight:900;
  white-space:nowrap;
}
@media(max-width:900px){
  .mugr-context-label{font-size:17px}
  .mugr-degree-context-pill{font-size:19px}
  .mugr-result-level-badge span{font-size:16px}
  .mugr-result-level-badge strong{font-size:19px}
}
@media(max-width:640px){
  .mugr-sticky-context{gap:7px;overflow:hidden}
  .mugr-context-label{font-size:16px}
  .mugr-degree-context-pill{font-size:18px;padding:5px 10px 6px}
  .mugr-result-context{gap:8px}
  .mugr-result-level-badge span{font-size:15px;padding:5px 8px 6px}
  .mugr-result-level-badge strong{font-size:18px;padding:5px 10px 6px}
}

/* =========================================================
   V18 — Softer degree context palette
   Keeps context visible without competing with page titles.
   ========================================================= */
.mugr-degree-context-pill{
  border:1px solid #cfdceb;
  border-left:4px solid #d5ad45;
  background:#f2f6fb;
  color:#315b86;
  box-shadow:none;
  font-weight:800;
}
.mugr-degree-context-pill i{
  color:#bf982f;
}
.mugr-result-level-badge{
  border:1px solid #d7e1ec;
  background:#f4f7fa;
  box-shadow:none;
}
.mugr-result-level-badge span{
  background:#f7f3e8;
  color:#75643a;
  font-weight:700;
}
.mugr-result-level-badge strong{
  background:#eaf2fb;
  color:#2d5e91;
  font-weight:800;
}

/* =========================================================
   V19 — Degree context aligned with the original Home V6 UI
   Uses the theme's clean outlined-pill language instead of
   a custom split-color badge.
   ========================================================= */
.mugr-degree-context-pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:6px 15px 7px;
  border:2px solid #0b67cf;
  border-radius:999px;
  background:#fff;
  color:#0b67cf;
  box-shadow:none;
  font-weight:800;
  line-height:1;
}
.mugr-degree-context-pill i{
  color:#0b67cf;
  font-size:.9em;
}
.mugr-degree-context-pill:hover{
  background:#f5f9ff;
  color:#0758b3;
  border-color:#0758b3;
}

.mugr-result-level-badge{
  display:inline-flex;
  align-items:center;
  overflow:hidden;
  border:2px solid #0b67cf;
  border-radius:999px;
  background:#fff;
  box-shadow:none;
}
.mugr-result-level-badge span,
.mugr-result-level-badge strong{
  background:transparent;
  padding:6px 0;
  line-height:1;
}
.mugr-result-level-badge span{
  padding-left:14px;
  color:#6f7f91;
  font-weight:700;
}
.mugr-result-level-badge span::after{
  content:'•';
  display:inline-block;
  margin:0 8px;
  color:#a9b5c2;
}
.mugr-result-level-badge strong{
  padding-right:14px;
  color:#0b67cf;
  font-weight:800;
}

@media(max-width:640px){
  .mugr-degree-context-pill{padding:6px 12px 7px;border-width:1.5px}
  .mugr-result-level-badge{border-width:1.5px}
  .mugr-result-level-badge span{padding-left:11px}
  .mugr-result-level-badge strong{padding-right:11px}
}

/* =========================================================
   V20 — Program table readability + status cards
   Larger code, stronger Thai title, prominent intake count,
   and compact colored status cards.
   ========================================================= */
.mugr-program-table-wrap table tbody td[rowspan="2"]:first-child{
  font-size:26px!important;
  font-weight:900!important;
  line-height:1.05!important;
  color:#173a64!important;
  letter-spacing:.2px;
  text-align:center!important;
  vertical-align:middle!important;
  white-space:nowrap;
}

/* First row of each program pair = Thai program title */
.mugr-program-table-wrap table tbody tr > td[rowspan="2"]:first-child + td a{
  display:inline-block;
  font-size:25px!important;
  font-weight:900!important;
  line-height:1.18!important;
  color:#0b5fb7!important;
}

/* Second row of each program pair = English program title */
.mugr-program-table-wrap table tbody tr > td:only-child a{
  display:inline-block;
  font-size:21px!important;
  font-weight:700!important;
  line-height:1.22!important;
  color:#315b86!important;
}

/* Intake / admitted-student count */
.mugr-program-table-wrap table tbody td[rowspan="2"]:nth-child(3){
  font-size:30px!important;
  font-weight:900!important;
  line-height:1!important;
  color:#123d6b!important;
  text-align:center!important;
  vertical-align:middle!important;
}

/* Status cell: quiet base so the status chip is the focus */
.mugr-program-table-wrap table tbody td[rowspan="2"]:nth-child(4){
  background:#fbfcfe!important;
  color:#6e7d8f!important;
  font-size:19px!important;
  font-weight:700!important;
  line-height:1.25!important;
  text-align:center!important;
  vertical-align:middle!important;
}

/* Closed */
.mugr-program-table-wrap table tbody td:nth-child(4) > font,
.mugr-program-table-wrap table tbody td:nth-child(4) font[color="red"],
.mugr-program-table-wrap table tbody td:nth-child(4) font[color="#FF0000"]{
  display:inline-flex!important;
  align-items:center;
  justify-content:center;
  min-height:38px;
  padding:7px 17px 8px;
  border:1px solid #f3c4ca;
  border-radius:7px;
  background:#fff1f3!important;
  color:#c92c43!important;
  font-size:20px!important;
  font-weight:900!important;
  line-height:1!important;
  white-space:nowrap;
}

/* Generic action/contact */
.mugr-program-table-wrap table tbody td:nth-child(4) > a{
  display:inline-flex!important;
  align-items:center;
  justify-content:center;
  min-height:38px;
  padding:7px 17px 8px;
  border:1px solid #bcd5f2;
  border-radius:7px;
  background:#eef6ff!important;
  color:#0b67cf!important;
  font-size:20px!important;
  font-weight:900!important;
  line-height:1.05!important;
  text-decoration:none!important;
}

/* Active online application gets a positive green status card */
.mugr-program-table-wrap table tbody td:nth-child(4) > a[href*="admission-apply"]{
  border-color:#b9dfc8;
  background:#edf9f1!important;
  color:#17834c!important;
}

.mugr-program-table-wrap table tbody td:nth-child(4) > a:hover{
  filter:brightness(.98);
  text-decoration:none!important;
}

@media(max-width:900px){
  .mugr-program-table-wrap table tbody td[rowspan="2"]:first-child{font-size:23px!important}
  .mugr-program-table-wrap table tbody tr > td[rowspan="2"]:first-child + td a{font-size:23px!important}
  .mugr-program-table-wrap table tbody tr > td:only-child a{font-size:19px!important}
  .mugr-program-table-wrap table tbody td[rowspan="2"]:nth-child(3){font-size:27px!important}
  .mugr-program-table-wrap table tbody td:nth-child(4) > font,
  .mugr-program-table-wrap table tbody td:nth-child(4) > a{font-size:18px!important;padding:7px 13px 8px}
}

@media(max-width:640px){
  .mugr-program-table-wrap table{min-width:760px}
}

/* V21 — Apply button aligned with MUGR main-site yellow CTA */
.mugr-program-table-wrap table tbody td:nth-child(4) > a[href*="admission-apply"]{
  border-color:#e1ad00!important;
  background:#ffd83d!important;
  color:#173a64!important;
  box-shadow:0 2px 5px rgba(173,126,0,.16);
}
.mugr-program-table-wrap table tbody td:nth-child(4) > a[href*="admission-apply"]:hover{
  border-color:#d39f00!important;
  background:#ffcf19!important;
  color:#102f52!important;
  filter:none;
}

/* V22 — Admission Status Dashboard in Hero (replaces duplicate navigation cards) */
.mugr-admission-dashboard{gap:14px!important}
.mugr-admission-dashboard .mugr-status-card{
  min-height:118px; padding:20px 22px; border:1px solid #dce5ef; border-radius:8px;
  background:#fff; display:flex; align-items:center; gap:16px; box-shadow:none;
}
.mugr-admission-dashboard .mugr-status-icon{
  width:44px;height:44px;flex:0 0 44px;border-radius:50%;display:flex;align-items:center;justify-content:center;
  font-size:20px;background:#f2f7fd;color:#176dcb;
}
.mugr-admission-dashboard .mugr-status-card>span:last-child{display:grid;grid-template-columns:auto auto;align-items:baseline;column-gap:8px;row-gap:0}
.mugr-admission-dashboard .mugr-status-card small{grid-column:1/-1;font-size:15px;font-weight:800;letter-spacing:.04em;color:#66788c;line-height:1.15}
.mugr-admission-dashboard .mugr-status-card strong{font-size:38px;font-weight:900;line-height:1;color:#142b46}
.mugr-admission-dashboard .mugr-status-card em{font-style:normal;font-size:17px;font-weight:700;color:#68798c}
.mugr-admission-dashboard .is-open{border-top:3px solid #f0b400}
.mugr-admission-dashboard .is-open .mugr-status-icon{background:#fff7d7;color:#c89100}
.mugr-admission-dashboard .is-closed{border-top:3px solid #e6a4a4}
.mugr-admission-dashboard .is-closed .mugr-status-icon{background:#fff2f2;color:#bd5555}
.mugr-admission-dashboard .is-faculty{border-top:3px solid #8fb8e8}
.mugr-admission-dashboard .is-total{border-top:3px solid #6f94c2}
@media(max-width:900px){
 .mugr-admission-dashboard .mugr-status-card{min-height:96px;padding:15px 16px}
 .mugr-admission-dashboard .mugr-status-card strong{font-size:32px}
 .mugr-admission-dashboard .mugr-status-card small{font-size:14px}
 .mugr-admission-dashboard .mugr-status-card em{font-size:15px}
}
@media(max-width:640px){
 .mugr-admission-dashboard{grid-template-columns:1fr 1fr!important}
 .mugr-admission-dashboard .mugr-status-card{min-height:88px;padding:12px;gap:10px}
 .mugr-admission-dashboard .mugr-status-icon{width:36px;height:36px;flex-basis:36px;font-size:16px}
 .mugr-admission-dashboard .mugr-status-card strong{font-size:28px}
}


/* V23 — clickable admission status dashboard */
.mugr-admission-dashboard .mugr-status-action{
    position:relative;text-decoration:none!important;color:inherit!important;cursor:pointer;
    transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease,background-color .16s ease;
}
.mugr-admission-dashboard .mugr-status-action:hover{
    transform:translateY(-2px);box-shadow:0 10px 24px rgba(26,64,108,.10);background:#fff;
}
.mugr-admission-dashboard .mugr-status-action:focus-visible{outline:3px solid rgba(0,112,230,.22);outline-offset:2px}
.mugr-admission-dashboard .mugr-status-action.is-active{box-shadow:0 0 0 2px rgba(22,104,194,.12),0 8px 22px rgba(26,64,108,.08)}
.mugr-admission-dashboard .mugr-status-action.is-open.is-active{background:#fffdf5;border-color:#e7c76e}
.mugr-admission-dashboard .mugr-status-action.is-closed.is-active{background:#fff8f8;border-color:#e7b6b6}
.mugr-admission-dashboard .mugr-status-arrow{margin-left:auto;font-size:20px;color:#8b9caf;transition:transform .16s ease,color .16s ease}
.mugr-admission-dashboard .mugr-status-action:hover .mugr-status-arrow{color:#126fd1;transform:translateX(2px)}
.mugr-active-status-filter{display:inline-flex;align-items:center;gap:9px;margin:4px 0 8px;padding:5px 10px;border:1px solid #d8e3ef;border-radius:999px;background:#fff;font-size:15px;font-weight:700;color:#405a74}
.mugr-active-status-filter.is-open i{color:#c99000}.mugr-active-status-filter.is-closed i{color:#c45757}
.mugr-active-status-filter a{margin-left:3px;padding-left:10px;border-left:1px solid #d9e2ec;color:#fff!important;font-weight:800;text-decoration:none!important}
.mugr-active-status-filter a:hover{text-decoration:underline!important}
.mugr-status-empty-row td{padding:22px!important;text-align:center!important;color:#6d7f92!important;font-size:18px!important;font-weight:700!important;background:#fafcff!important}
@media(max-width:767px){
 .mugr-active-status-filter{font-size:14px;flex-wrap:wrap;border-radius:14px}
 .mugr-admission-dashboard .mugr-status-arrow{font-size:18px}
}

/* V24 — compact Home-V6 style admission dashboard cards */
.mugr-admission-dashboard{
  gap:14px!important;
  align-content:center!important;
}
.mugr-admission-dashboard .mugr-status-card,
.mugr-admission-dashboard .mugr-status-action{
  min-height:102px!important;
  padding:15px 18px 14px!important;
  border:1px solid #d9e2ec!important;
  border-top-width:1px!important;
  border-radius:7px!important;
  background:#fff!important;
  display:block!important;
  position:relative!important;
  box-shadow:none!important;
  transform:none!important;
  overflow:hidden;
}
.mugr-admission-dashboard .mugr-status-action:hover{
  transform:none!important;
  border-color:#b9d1eb!important;
  box-shadow:0 6px 16px rgba(25,72,130,.07)!important;
  background:#fff!important;
}
.mugr-admission-dashboard .mugr-status-icon{
  width:auto!important;
  height:auto!important;
  min-width:0!important;
  flex:0 0 auto!important;
  border-radius:0!important;
  background:transparent!important;
  display:block!important;
  margin:0 0 7px!important;
  font-size:23px!important;
  line-height:1!important;
  color:#0872df!important;
}
.mugr-admission-dashboard .is-open .mugr-status-icon,
.mugr-admission-dashboard .is-closed .mugr-status-icon,
.mugr-admission-dashboard .is-faculty .mugr-status-icon,
.mugr-admission-dashboard .is-total .mugr-status-icon{
  background:transparent!important;
  color:#0872df!important;
}
.mugr-admission-dashboard .mugr-status-card>span:nth-child(2){
  display:block!important;
  padding-right:70px;
}
.mugr-admission-dashboard .mugr-status-card small{
  display:block!important;
  grid-column:auto!important;
  margin:0!important;
  font-size:22px!important;
  font-weight:800!important;
  letter-spacing:0!important;
  line-height:1.05!important;
  color:#142033!important;
  text-transform:none!important;
}
.mugr-admission-dashboard .mugr-status-card strong{
  position:absolute!important;
  top:17px!important;
  right:18px!important;
  font-size:30px!important;
  font-weight:800!important;
  line-height:1!important;
  color:#0872df!important;
}
.mugr-admission-dashboard .mugr-status-card em{
  display:block!important;
  margin-top:3px!important;
  font-style:normal!important;
  font-size:16px!important;
  font-weight:600!important;
  line-height:1.1!important;
  color:#7e8ca0!important;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.mugr-admission-dashboard .is-open strong{color:#bb8900!important}
.mugr-admission-dashboard .is-closed strong{color:#c55454!important}
.mugr-admission-dashboard .mugr-status-arrow{
  position:absolute!important;
  right:18px!important;
  bottom:14px!important;
  margin:0!important;
  font-size:16px!important;
  color:#9ba9b8!important;
}
.mugr-admission-dashboard .mugr-status-action.is-active{
  box-shadow:inset 0 -3px 0 #0872df!important;
  border-color:#c7d9ec!important;
}
.mugr-admission-dashboard .mugr-status-action.is-open.is-active{
  background:#fff!important;
  box-shadow:inset 0 -3px 0 #e3ae00!important;
}
.mugr-admission-dashboard .mugr-status-action.is-closed.is-active{
  background:#fff!important;
  box-shadow:inset 0 -3px 0 #d97878!important;
}

@media(max-width:1180px){
  .mugr-admission-dashboard .mugr-status-card,
  .mugr-admission-dashboard .mugr-status-action{min-height:94px!important;padding:13px 15px!important}
  .mugr-admission-dashboard .mugr-status-icon{font-size:21px!important;margin-bottom:6px!important}
  .mugr-admission-dashboard .mugr-status-card small{font-size:20px!important}
  .mugr-admission-dashboard .mugr-status-card strong{top:15px!important;right:15px!important;font-size:27px!important}
  .mugr-admission-dashboard .mugr-status-card em{font-size:15px!important}
  .mugr-admission-dashboard .mugr-status-arrow{right:15px!important;bottom:12px!important}
}
@media(max-width:640px){
  .mugr-admission-dashboard{grid-template-columns:1fr 1fr!important;gap:9px!important}
  .mugr-admission-dashboard .mugr-status-card,
  .mugr-admission-dashboard .mugr-status-action{min-height:88px!important;padding:11px 12px!important}
  .mugr-admission-dashboard .mugr-status-icon{font-size:19px!important;margin-bottom:5px!important}
  .mugr-admission-dashboard .mugr-status-card>span:nth-child(2){padding-right:48px}
  .mugr-admission-dashboard .mugr-status-card small{font-size:18px!important}
  .mugr-admission-dashboard .mugr-status-card strong{top:12px!important;right:12px!important;font-size:24px!important}
  .mugr-admission-dashboard .mugr-status-card em{font-size:13px!important}
  .mugr-admission-dashboard .mugr-status-arrow{right:12px!important;bottom:10px!important;font-size:14px!important}
}

/* V26 — empty-state emphasis, safely layered on top of V24 dashboard */
.mugr-status-empty-row td{
  padding:22px 20px !important;
  text-align:center !important;
  color:#7a5200 !important;
  font-size:22px !important;
  font-weight:800 !important;
  line-height:1.4 !important;
  background:#fff9ea !important;
  border-top:1px solid #efd79b !important;
  border-bottom:1px solid #efd79b !important;
}
@media (max-width:900px){
  .mugr-status-empty-row td{font-size:20px !important;padding:20px 16px !important;}
}
@media (max-width:576px){
  .mugr-status-empty-row td{font-size:18px !important;padding:18px 12px !important;}
}

/* V27 — Mobile typography tuning only (keeps desktop/tablet layout unchanged) */
@media (max-width:640px){
  /* Admission dashboard cards */
  .mugr-admission-dashboard .mugr-status-card small{
    font-size:20px!important;
    font-weight:900!important;
    line-height:1.08!important;
    color:#10233d!important;
  }
  .mugr-admission-dashboard .mugr-status-card strong{
    font-size:28px!important;
    font-weight:900!important;
    line-height:1!important;
  }
  .mugr-admission-dashboard .mugr-status-card em{
    font-size:15px!important;
    font-weight:700!important;
    line-height:1.15!important;
    color:#61748a!important;
  }
  .mugr-admission-dashboard .mugr-status-icon{
    font-size:21px!important;
  }

  /* Degree section */
  .mugr-finder-header small,
  .mugr-result-heading small{
    font-size:15px!important;
    font-weight:800!important;
    letter-spacing:1.1px!important;
  }
  .mugr-finder-header h2,
  .mugr-result-heading h2{
    font-size:31px!important;
    font-weight:900!important;
    line-height:1.08!important;
  }
  .mugr-degree-tabs a{
    font-size:24px!important;
    font-weight:900!important;
    line-height:1.15!important;
    min-height:60px!important;
    padding:13px 15px!important;
  }
  .mugr-degree-tabs a i{
    font-size:18px!important;
  }

  /* Sticky filter / selected context */
  .mugr-degree-context-pill{
    font-size:20px!important;
    font-weight:900!important;
  }
  .mugr-result-level-badge span{
    font-size:17px!important;
    font-weight:800!important;
  }
  .mugr-result-level-badge strong{
    font-size:20px!important;
    font-weight:900!important;
  }
}

/* =========================================================
   V28 — Mobile footer accordion
   Desktop/tablet keep the original multi-column footer.
   Mobile collapses menu groups to reduce page length.
   ========================================================= */
.mugr-footer-accordion{
  min-width:0;
}
.mugr-footer-accordion summary{
  list-style:none;
}
.mugr-footer-accordion summary::-webkit-details-marker{
  display:none;
}
.mugr-footer-accordion-toggle{
  display:none;
}
.mugr-footer-accordion-panel{
  min-width:0;
}

@media(max-width:640px){
  .mugr-footer-main{
    padding:26px 0 20px;
  }
  .mugr-footer-grid{
    gap:14px;
  }
  .mugr-footer-brand{
    padding-bottom:14px;
    border-bottom:1px solid #e5e9ef;
  }
  .mugr-footer-brand img{
    max-width:220px;
    max-height:68px;
  }
  .mugr-footer-brand p{
    margin:12px 0 8px;
    font-size:18px!important;
    line-height:1.42;
  }
  .mugr-footer-brand>a{
    font-size:18px!important;
  }

  .mugr-footer-accordion,
  .mugr-footer-contact.mugr-footer-accordion{
    padding:0;
    margin:0;
    border:0;
    border-bottom:1px solid #e5e9ef;
  }
  .mugr-footer-accordion summary{
    min-height:58px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:16px;
    cursor:pointer;
    -webkit-tap-highlight-color:transparent;
    touch-action:manipulation;
  }
  .mugr-footer-accordion summary h4{
    margin:0!important;
    font-size:23px!important;
    line-height:1.12;
    font-weight:800!important;
    color:#172438;
  }
  .mugr-footer-accordion-toggle{
    width:28px;
    height:28px;
    flex:0 0 28px;
    display:flex;
    align-items:center;
    justify-content:center;
    color:#66788e;
    font-size:21px;
    transition:transform .2s ease,color .2s ease;
  }
  .mugr-footer-accordion[open] .mugr-footer-accordion-toggle{
    transform:rotate(180deg);
    color:var(--mugr-blue);
  }
  .mugr-footer-accordion-panel{
    padding:0 0 17px;
  }
  .mugr-footer-accordion-panel>a{
    display:flex;
    align-items:center;
    min-height:42px;
    margin:0!important;
    padding:6px 0;
    font-size:19px!important;
    font-weight:600!important;
    line-height:1.25;
    color:#4f6074;
  }
  .mugr-footer-accordion-panel p{
    margin:0 0 8px;
    font-size:18px!important;
    line-height:1.42;
  }
  .mugr-footer-contact .mugr-footer-accordion-panel>a{
    min-height:38px;
  }
  .mugr-footer-bottom .mugr-shell{
    font-size:16px!important;
    line-height:1.35;
  }
}

/* =========================================================
   V29 — Desktop footer restore after mobile accordion
   Keep accordion behavior only on mobile. Desktop/tablet
   visually matches the original multi-column footer.
   ========================================================= */
@media (min-width:641px){
  .mugr-footer-accordion{
    display:block!important;
    min-width:0!important;
  }
  .mugr-footer-accordion > summary{
    display:block!important;
    cursor:default!important;
    pointer-events:none!important;
  }
  .mugr-footer-accordion > summary h4{
    display:block!important;
    margin:2px 0 17px!important;
  }
  .mugr-footer-accordion-toggle{
    display:none!important;
  }
  .mugr-footer-accordion-panel{
    display:block!important;
    padding:0!important;
    margin:0!important;
  }
  .mugr-footer-accordion-panel > a{
    display:block!important;
    color:#516073!important;
    margin:10px 0!important;
    font-size:21px!important;
    font-weight:500!important;
    line-height:1.35!important;
    text-decoration:none!important;
  }
  .mugr-footer-accordion-panel > a:hover{
    color:var(--mugr-blue)!important;
  }
  .mugr-footer-contact .mugr-footer-accordion-panel > p{
    color:#6d7988!important;
    font-size:21px!important;
    font-weight:500!important;
    line-height:1.6!important;
    margin:0 0 14px!important;
  }
  .mugr-footer-contact .mugr-footer-highlight{
    display:inline-flex!important;
    align-items:center!important;
    gap:6px!important;
    color:var(--mugr-blue)!important;
    font-weight:700!important;
  }
}
@media (min-width:641px) and (max-width:1180px){
  .mugr-footer-accordion-panel > a,
  .mugr-footer-contact .mugr-footer-accordion-panel > p{
    font-size:18px!important;
  }
  .mugr-footer-accordion > summary h4{
    font-size:24px!important;
  }
}


/* V32: footer dual-brand lockup — force one row */
.mugr-footer-brand-logos{
  display:flex!important;
  flex-direction:row!important;
  flex-wrap:nowrap!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:16px!important;
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
  margin:0 0 18px!important;
  white-space:nowrap!important;
}
.mugr-footer-brand-logos > img{
  display:block!important;
  flex:0 0 auto!important;
  width:auto!important;
  object-fit:contain!important;
  filter:none!important;
  margin:0!important;
}
.mugr-footer-brand-logos .mugr-footer-logo-mugr{
  height:48px!important;
  max-width:132px!important;
  max-height:48px!important;
}
.mugr-footer-brand-logos .mugr-footer-logo-mahidol{
  height:48px!important;
  max-width:226px!important;
  max-height:48px!important;
}
.mugr-footer-logo-divider{
  display:block!important;
  flex:0 0 1px!important;
  width:1px!important;
  height:46px!important;
  background:#d8dde5!important;
  margin:0 2px!important;
}

@media (max-width:1180px){
  .mugr-footer-brand-logos{gap:12px!important}
  .mugr-footer-brand-logos .mugr-footer-logo-mugr{height:42px!important;max-width:116px!important}
  .mugr-footer-brand-logos .mugr-footer-logo-mahidol{height:42px!important;max-width:198px!important}
  .mugr-footer-logo-divider{height:40px!important}
}

@media (max-width:640px){
  .mugr-footer-brand-logos{
    gap:10px!important;
    margin-bottom:14px!important;
    overflow:hidden!important;
  }
  .mugr-footer-brand-logos .mugr-footer-logo-mugr{height:36px!important;max-width:99px!important}
  .mugr-footer-brand-logos .mugr-footer-logo-mahidol{height:36px!important;max-width:170px!important}
  .mugr-footer-logo-divider{height:34px!important}
}

@media (max-width:360px){
  .mugr-footer-brand-logos{gap:8px!important}
  .mugr-footer-brand-logos .mugr-footer-logo-mugr{height:32px!important;max-width:88px!important}
  .mugr-footer-brand-logos .mugr-footer-logo-mahidol{height:32px!important;max-width:151px!important}
  .mugr-footer-logo-divider{height:30px!important}
}


/* =========================================================
   V42 — Program finder breadcrumb scale
   Matches the larger breadcrumb language used on main MUGR pages.
   ========================================================= */
.mugr-market-site .mugr-breadcrumb{
  min-height:50px!important;
  gap:11px!important;
  font-size:23px!important;
  line-height:1.35!important;
  font-weight:700!important;
}
.mugr-market-site .mugr-breadcrumb a,
.mugr-market-site .mugr-breadcrumb span{
  font-size:23px!important;
  font-weight:700!important;
}
.mugr-market-site .mugr-breadcrumb i{
  font-size:17px!important;
}
@media (max-width:991.98px){
  .mugr-market-site .mugr-breadcrumb,
  .mugr-market-site .mugr-breadcrumb a,
  .mugr-market-site .mugr-breadcrumb span{
    font-size:21px!important;
  }
}
@media (max-width:640px){
  .mugr-market-site .mugr-breadcrumb{
    min-height:44px!important;
    gap:8px!important;
  }
  .mugr-market-site .mugr-breadcrumb,
  .mugr-market-site .mugr-breadcrumb a,
  .mugr-market-site .mugr-breadcrumb span{
    font-size:20px!important;
  }
}


/* =========================================================
   V56 — Modern Program Contact Modal
   ========================================================= */
html.mugr-modal-open,
body.mugr-modal-open{overflow:hidden!important;}

.mugr-contact-modal{
  position:fixed;
  inset:0;
  z-index:99999;
  display:grid;
  place-items:center;
  padding:24px;
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transition:opacity .18s ease,visibility .18s ease;
}
.mugr-contact-modal.is-open{
  opacity:1;
  visibility:visible;
  pointer-events:auto;
}
.mugr-contact-modal__backdrop{
  position:absolute;
  inset:0;
  background:rgba(10,29,53,.58);
  backdrop-filter:blur(5px);
  -webkit-backdrop-filter:blur(5px);
}
.mugr-contact-modal__dialog{
  position:relative;
  z-index:1;
  width:min(680px,calc(100vw - 48px));
  max-height:calc(100vh - 48px);
  overflow:hidden;
  border:1px solid #d7e4f1;
  border-radius:18px;
  background:#fff;
  box-shadow:0 26px 75px rgba(10,29,53,.25);
  transform:translateY(14px) scale(.985);
  transition:transform .2s ease;
}
.mugr-contact-modal.is-open .mugr-contact-modal__dialog{
  transform:translateY(0) scale(1);
}
.mugr-contact-modal__header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:18px 20px;
  background:#f4f8fc;
  border-bottom:1px solid #dce7f1;
}
.mugr-contact-modal__title-wrap{
  display:flex;
  align-items:center;
  gap:14px;
  min-width:0;
}
.mugr-contact-modal__icon{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:52px;
  height:52px;
  flex:0 0 52px;
  border:1px solid #d4e1ee;
  border-radius:13px;
  background:#fff;
  color:#066bdc;
}
.mugr-contact-modal__icon svg{
  width:29px;
  height:29px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.6;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.mugr-contact-modal__eyebrow{
  margin-bottom:2px;
  color:#71869f;
  font-size:13px;
  line-height:1;
  font-weight:800;
  letter-spacing:.09em;
}
.mugr-contact-modal__header h2{
  margin:0;
  color:#102b4c;
  font-size:27px;
  line-height:1.2;
  font-weight:850;
}
.mugr-contact-modal__close{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:42px;
  height:42px;
  flex:0 0 42px;
  border:1px solid #d5e1ed;
  border-radius:50%;
  background:#fff;
  color:#345a82;
  font-size:30px;
  line-height:1;
  cursor:pointer;
  transition:background .16s ease,color .16s ease,transform .16s ease;
}
.mugr-contact-modal__close:hover{
  background:#edf5fc;
  color:#075fbf;
  transform:rotate(3deg);
}
.mugr-contact-modal__body{
  position:relative;
  max-height:calc(100vh - 150px);
  overflow:auto;
  background:#fff;
}
.mugr-contact-modal__body iframe{
  display:block;
  width:100%;
  height:220px;
  border:0;
  opacity:0;
  background:#fff;
  transition:height .18s ease,opacity .18s ease;
}
.mugr-contact-modal__body iframe.is-ready{opacity:1;}
.mugr-contact-modal__loading{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  min-height:150px;
  padding:28px;
  color:#607995;
  font-size:19px;
  font-weight:700;
}
.mugr-contact-modal__loading[hidden]{display:none!important;}
.mugr-contact-modal__spinner{
  width:22px;
  height:22px;
  border:2px solid #cfe0f1;
  border-top-color:#0b6fdc;
  border-radius:50%;
  animation:mugrContactSpin .7s linear infinite;
}
@keyframes mugrContactSpin{to{transform:rotate(360deg);}}

@media (max-width:767.98px){
  .mugr-contact-modal{
    padding:12px;
    align-items:end;
  }
  .mugr-contact-modal__dialog{
    width:100%;
    max-height:calc(100vh - 24px);
    border-radius:18px 18px 12px 12px;
  }
  .mugr-contact-modal__header{padding:14px 15px;}
  .mugr-contact-modal__icon{
    width:46px;
    height:46px;
    flex-basis:46px;
  }
  .mugr-contact-modal__header h2{font-size:24px;}
  .mugr-contact-modal__body{max-height:calc(100vh - 112px);}
}


/* =========================================================
   V57 — Fully redesigned contact content
   Legacy contact.php is used only as a same-origin data source.
   ========================================================= */
.mugr-contact-modal__dialog{
  width:min(720px,calc(100vw - 48px));
}

.mugr-contact-modal__body{
  padding:22px;
  background:#fff;
}

.mugr-contact-modern[hidden]{
  display:none!important;
}

.mugr-contact-modern{
  display:block;
}

.mugr-contact-modern__intro{
  display:flex;
  align-items:flex-start;
  gap:14px;
  margin-bottom:18px;
  padding:16px 18px;
  border:1px solid #dbe7f2;
  border-radius:14px;
  background:#f6f9fc;
}

.mugr-contact-modern__intro-icon{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:46px;
  height:46px;
  flex:0 0 46px;
  border-radius:12px;
  background:#fff;
  border:1px solid #d4e1ed;
  color:#086bdc;
}

.mugr-contact-modern__intro-icon svg{
  width:26px;
  height:26px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.6;
  stroke-linecap:round;
  stroke-linejoin:round;
}

.mugr-contact-modern__intro-title{
  margin-bottom:3px;
  color:#122b49;
  font-size:23px;
  line-height:1.2;
  font-weight:850;
}

.mugr-contact-modern__intro-text{
  color:#657a92;
  font-size:18px;
  line-height:1.45;
  font-weight:600;
}

.mugr-contact-modern__grid{
  display:grid;
  grid-template-columns:1fr;
  gap:12px;
}

.mugr-contact-person{
  display:flex;
  align-items:flex-start;
  gap:16px;
  padding:18px;
  border:1px solid #dbe5ef;
  border-radius:15px;
  background:#fff;
  box-shadow:0 5px 18px rgba(31,64,99,.045);
}

.mugr-contact-person__avatar{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:54px;
  height:54px;
  flex:0 0 54px;
  border-radius:50%;
  background:#eef6ff;
  color:#086bdc;
}

.mugr-contact-person__avatar svg{
  width:29px;
  height:29px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.65;
  stroke-linecap:round;
  stroke-linejoin:round;
}

.mugr-contact-person__content{
  min-width:0;
  flex:1;
}

.mugr-contact-person__role{
  display:inline-flex;
  align-items:center;
  min-height:28px;
  margin-bottom:7px;
  padding:3px 10px;
  border-radius:999px;
  background:#eef5fc;
  color:#42658b;
  font-size:16px;
  line-height:1.2;
  font-weight:800;
}

.mugr-contact-person__name{
  margin-bottom:9px;
  color:#102944;
  font-size:24px;
  line-height:1.3;
  font-weight:850;
}

.mugr-contact-person__email{
  display:inline-flex;
  align-items:center;
  gap:8px;
  max-width:100%;
  color:#076bd8!important;
  font-size:19px;
  line-height:1.35;
  font-weight:750;
  text-decoration:none!important;
  overflow-wrap:anywhere;
}

.mugr-contact-person__email:hover{
  text-decoration:underline!important;
}

.mugr-contact-person__mail-icon{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:28px;
  height:28px;
  flex:0 0 28px;
  border-radius:8px;
  background:#eef6ff;
  color:#076bd8;
}

.mugr-contact-person__mail-icon svg{
  width:17px;
  height:17px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.7;
  stroke-linecap:round;
  stroke-linejoin:round;
}

/* Source iframe is hidden after extraction; keep it available for fallback only. */
.mugr-contact-modal__body iframe{
  margin:0;
}

@media (max-width:767.98px){
  .mugr-contact-modal__body{
    padding:14px;
  }
  .mugr-contact-modern__intro{
    padding:14px;
  }
  .mugr-contact-modern__intro-title{
    font-size:21px;
  }
  .mugr-contact-modern__intro-text{
    font-size:17px;
  }
  .mugr-contact-person{
    gap:13px;
    padding:15px;
  }
  .mugr-contact-person__avatar{
    width:48px;
    height:48px;
    flex-basis:48px;
  }
  .mugr-contact-person__name{
    font-size:22px;
  }
  .mugr-contact-person__email{
    font-size:18px;
  }
}


/* =========================================================
   V58 — Center contact modal vertically on mobile
   ========================================================= */
@media (max-width:767.98px){
  .mugr-contact-modal{
    display:grid!important;
    place-items:center!important;
    align-items:center!important;
    justify-items:center!important;
    padding:16px!important;
  }

  .mugr-contact-modal__dialog{
    width:min(100%, 520px)!important;
    max-height:calc(100vh - 32px)!important;
    margin:auto!important;
    align-self:center!important;
    justify-self:center!important;
    border-radius:18px!important;
  }
}


/* =========================================================
   V59 — Techcore-inspired Back to Top
   Vertical capsule + animated arrow
   ========================================================= */
.btn-scroll-top{
  position:fixed!important;
  right:24px!important;
  bottom:24px!important;
  z-index:9999!important;

  display:flex!important;
  align-items:center!important;
  justify-content:center!important;

  width:32px!important;
  height:60px!important;
  min-width:32px!important;
  min-height:60px!important;

  padding:0!important;
  margin:0!important;

  border:2px solid #0b6ff2!important;
  border-radius:999px!important;
  background:#fff!important;
  color:#0b6ff2!important;

  box-shadow:none!important;
  cursor:pointer!important;
  overflow:hidden!important;

  transition:
    background-color .22s ease,
    color .22s ease,
    border-color .22s ease,
    transform .22s ease,
    box-shadow .22s ease!important;
}

/* Arrow: use the existing legacy icon but make it behave like Techcore */
.btn-scroll-top .icon-arrow-up{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;

  width:100%!important;
  height:100%!important;
  margin:0!important;
  padding:0!important;

  color:inherit!important;
  font-size:0!important;
  line-height:1!important;
  cursor:pointer!important;
}

/* Draw our own clean arrow so icon-font size/shape can no longer interfere */
.btn-scroll-top .icon-arrow-up::before{
  content:"↑"!important;
  display:block!important;

  color:inherit!important;
  font-family:Arial,Helvetica,sans-serif!important;
  font-size:27px!important;
  font-weight:500!important;
  line-height:1!important;

  transform:translateY(0)!important;
  transition:transform .22s ease!important;
}

/* Premium hover: blue capsule + white arrow moving upward */
.btn-scroll-top:hover,
.btn-scroll-top:focus-visible{
  background:#0b6ff2!important;
  border-color:#0b6ff2!important;
  color:#fff!important;
  box-shadow:0 8px 20px rgba(11,111,242,.20)!important;
  transform:translateY(-2px)!important;
  outline:none!important;
}

.btn-scroll-top:hover .icon-arrow-up::before,
.btn-scroll-top:focus-visible .icon-arrow-up::before{
  transform:translateY(-4px)!important;
}

.btn-scroll-top:active{
  transform:translateY(0)!important;
}

/* Never allow descendants to show the text cursor */
.btn-scroll-top,
.btn-scroll-top *{
  cursor:pointer!important;
}

@media (max-width:767.98px){
  .btn-scroll-top{
    right:16px!important;
    bottom:18px!important;
    width:30px!important;
    height:58px!important;
    min-width:30px!important;
    min-height:58px!important;
  }

  .btn-scroll-top .icon-arrow-up::before{
    font-size:25px!important;
  }
}

@media (prefers-reduced-motion:reduce){
  .btn-scroll-top,
  .btn-scroll-top .icon-arrow-up::before{
    transition:none!important;
  }
}


/* =========================================================
   V60 — Exact Techcore-style Back to Top
   Correct selector from current footer: .mugr-back-top
   ========================================================= */
html body button.mugr-back-top{
  position:fixed!important;
  right:24px!important;
  bottom:24px!important;
  z-index:99999!important;

  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;

  width:34px!important;
  height:62px!important;
  min-width:34px!important;
  min-height:62px!important;
  max-width:34px!important;
  max-height:62px!important;

  padding:0!important;
  margin:0!important;

  border:2px solid #0b6ff2!important;
  border-radius:999px!important;
  background:#fff!important;
  color:#0b6ff2!important;

  box-shadow:none!important;
  cursor:pointer!important;
  overflow:hidden!important;

  transition:
    background-color .2s ease,
    color .2s ease,
    border-color .2s ease,
    transform .2s ease,
    box-shadow .2s ease!important;
}

html body button.mugr-back-top > i{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:100%!important;
  height:100%!important;
  margin:0!important;
  padding:0!important;
  font-size:0!important;
  line-height:1!important;
  color:inherit!important;
  cursor:pointer!important;
}

/* Replace the old Font Awesome chevron with a clean vertical arrow */
html body button.mugr-back-top > i::before{
  content:"↑"!important;
  display:block!important;
  font-family:Arial,Helvetica,sans-serif!important;
  font-size:28px!important;
  font-weight:400!important;
  line-height:1!important;
  color:inherit!important;
  transform:translateY(-1px)!important;
  transition:transform .2s ease!important;
}

html body button.mugr-back-top:hover,
html body button.mugr-back-top:focus-visible{
  background:#0b6ff2!important;
  border-color:#0b6ff2!important;
  color:#fff!important;
  box-shadow:0 8px 22px rgba(11,111,242,.22)!important;
  transform:translateY(-2px)!important;
  outline:none!important;
}

html body button.mugr-back-top:hover > i::before,
html body button.mugr-back-top:focus-visible > i::before{
  transform:translateY(-5px)!important;
}

html body button.mugr-back-top,
html body button.mugr-back-top *{
  cursor:pointer!important;
}

@media (max-width:767.98px){
  html body button.mugr-back-top{
    right:16px!important;
    bottom:18px!important;
    width:32px!important;
    height:60px!important;
    min-width:32px!important;
    min-height:60px!important;
    max-width:32px!important;
    max-height:60px!important;
  }

  html body button.mugr-back-top > i::before{
    font-size:26px!important;
  }
}


/* =========================================================
   V68 — Dark Mode + Accessibility
   ========================================================= */
.mugr-a11y-tools{
  position:fixed;right:76px;bottom:24px;z-index:100001;
  display:flex;gap:9px;align-items:center;
}
.mugr-tool-button{
  height:44px;border:1px solid #cbd9e8;border-radius:999px;background:#fff;color:#174a86;
  padding:0 14px;display:inline-flex;align-items:center;gap:8px;font-weight:700;
  box-shadow:0 8px 24px rgba(23,55,95,.13);cursor:pointer;transition:.2s ease;
}
.mugr-tool-button:hover,.mugr-tool-button:focus-visible,.mugr-tool-button.active{
  background:#0b67cf;color:#fff;border-color:#0b67cf;transform:translateY(-1px);outline:none;
}
.mugr-tool-button i{font-size:18px}.mugr-tool-button span{white-space:nowrap}

.mugr-accessibility-panel{
  position:fixed;right:24px;bottom:94px;z-index:100002;width:min(430px,calc(100vw - 28px));max-height:min(700px,calc(100vh - 120px));
  display:flex;flex-direction:column;background:#f3f5fb;border-radius:22px;box-shadow:0 24px 70px rgba(5,27,60,.32);
  overflow:hidden;opacity:0;visibility:hidden;transform:translateY(18px) scale(.98);transition:.2s ease;
}
.mugr-accessibility-panel.open{opacity:1;visibility:visible;transform:none}
.mugr-a11y-panel-head{
  min-height:72px;background:#2d438f;color:#fff;padding:0 20px;display:flex;align-items:center;justify-content:space-between;
}
.mugr-a11y-panel-head>div{display:flex;align-items:center;gap:11px}.mugr-a11y-panel-head i{font-size:23px}.mugr-a11y-panel-head strong{font-size:23px}
.mugr-a11y-close{width:40px;height:40px;border:0;border-radius:50%;background:transparent;color:#fff;cursor:pointer;font-size:20px}
.mugr-a11y-close:hover,.mugr-a11y-close:focus-visible{background:rgba(255,255,255,.15);outline:none}
.mugr-a11y-panel-body{overflow:auto;padding:14px}
.mugr-a11y-section{background:#fff;border-radius:16px;padding:18px;margin-bottom:14px}
.mugr-a11y-section h3{margin:0 0 14px;color:#626c7e;font-size:16px;font-family:Arial,sans-serif!important}
.mugr-a11y-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.mugr-a11y-grid button{
  min-height:80px;border:0;border-radius:16px;background:#f0f1f4;color:#273244;padding:12px;
  display:flex;align-items:center;gap:12px;text-align:left;cursor:pointer;font-weight:700;transition:.18s ease;
}
.mugr-a11y-grid button:hover,.mugr-a11y-grid button:focus-visible{background:#e5ebf6;outline:2px solid #8bb8f1;outline-offset:1px}
.mugr-a11y-grid button.active{background:#dceafe;color:#0b5fc1;box-shadow:inset 0 0 0 2px #6aa5ec}
.mugr-a11y-icon{flex:0 0 42px;width:42px;height:42px;border-radius:50%;background:#fff;display:grid;place-items:center;font:700 18px Arial,sans-serif}
.mugr-a11y-panel-foot{min-height:66px;background:#2d438f;color:#fff;display:flex;align-items:center;justify-content:space-between;padding:0 18px;font:600 13px Arial,sans-serif}
.mugr-a11y-reset{border:0;border-radius:999px;background:#fff;color:#314384;padding:9px 14px;cursor:pointer;font-weight:700}

/* Dark theme - preserve brand blue while converting content surfaces. */
html[data-mugr-theme="dark"]{color-scheme:dark}
html[data-mugr-theme="dark"] body.mugr-market-site{--mugr-ink:#e9eef6;--mugr-muted:#a9b4c4;--mugr-line:#304058;--mugr-bg:#0b1220;--mugr-soft:#162338;--mugr-white:#111c2d;background:#0b1220!important;color:#e9eef6!important}
html[data-mugr-theme="dark"] body.mugr-market-site .mugr-category-nav,
html[data-mugr-theme="dark"] body.mugr-market-site .mugr-program-hero,
html[data-mugr-theme="dark"] body.mugr-market-site .mugr-finder-card,
html[data-mugr-theme="dark"] body.mugr-market-site .mugr-result-section,
html[data-mugr-theme="dark"] body.mugr-market-site .mugr-search-sticky-inner,
html[data-mugr-theme="dark"] body.mugr-market-site .mugr-search-box,
html[data-mugr-theme="dark"] body.mugr-market-site .mugr-filter-control,
html[data-mugr-theme="dark"] body.mugr-market-site .mugr-custom-select-menu,
html[data-mugr-theme="dark"] body.mugr-market-site .mugr-faculty-button,
html[data-mugr-theme="dark"] body.mugr-market-site .mugr-program-table-wrap table,
html[data-mugr-theme="dark"] body.mugr-market-site .mugr-program-table-wrap table td,
html[data-mugr-theme="dark"] body.mugr-market-site .content-form table.responsive-table,
html[data-mugr-theme="dark"] body.mugr-market-site .content-form table.responsive-table td,
html[data-mugr-theme="dark"] body.mugr-market-site .content-form .card-header{
  background:#111c2d!important;color:#e8eef7!important;border-color:#2b3a50!important;
}
html[data-mugr-theme="dark"] body.mugr-market-site .mugr-program-hero-copy{background:linear-gradient(90deg,#112238 0%,#112238 68%,rgba(17,34,56,.75) 86%,rgba(17,34,56,0) 100%)!important}
html[data-mugr-theme="dark"] body.mugr-market-site .mugr-program-hero::after{background:linear-gradient(90deg,rgba(17,34,56,.58),rgba(17,34,56,0))!important}
html[data-mugr-theme="dark"] body.mugr-market-site .mugr-program-hero h1,
html[data-mugr-theme="dark"] body.mugr-market-site .mugr-finder-header h2,
html[data-mugr-theme="dark"] body.mugr-market-site .mugr-result-heading h2,
html[data-mugr-theme="dark"] body.mugr-market-site .mugr-faculty-button,
html[data-mugr-theme="dark"] body.mugr-market-site .content-form,
html[data-mugr-theme="dark"] body.mugr-market-site .content-form h1,
html[data-mugr-theme="dark"] body.mugr-market-site .content-form h2,
html[data-mugr-theme="dark"] body.mugr-market-site .content-form h3{color:#eef4fc!important}
html[data-mugr-theme="dark"] body.mugr-market-site .mugr-program-hero p,
html[data-mugr-theme="dark"] body.mugr-market-site .mugr-faculty-name small,
html[data-mugr-theme="dark"] body.mugr-market-site .mugr-result-hint,
html[data-mugr-theme="dark"] body.mugr-market-site .mugr-breadcrumb{color:#aeb9c8!important}
html[data-mugr-theme="dark"] body.mugr-market-site .mugr-program-hero-cards a,
html[data-mugr-theme="dark"] body.mugr-market-site .mugr-hero-badges span,
html[data-mugr-theme="dark"] body.mugr-market-site .mugr-degree-tabs a{background:#142136!important;color:#e7eef8!important;border-color:#304159!important}
html[data-mugr-theme="dark"] body.mugr-market-site .mugr-search-box input,
html[data-mugr-theme="dark"] body.mugr-market-site select,
html[data-mugr-theme="dark"] body.mugr-market-site input,
html[data-mugr-theme="dark"] body.mugr-market-site textarea{background:#0d1727!important;color:#f1f5fb!important;border-color:#34465f!important}
html[data-mugr-theme="dark"] body.mugr-market-site .mugr-program-table-wrap table th,
html[data-mugr-theme="dark"] body.mugr-market-site .content-form table.responsive-table th{background:#182a43!important;color:#dfeafa!important;border-color:#30445f!important}
html[data-mugr-theme="dark"] body.mugr-market-site .mugr-program-table-wrap table tr:nth-child(even) td{background:#101b2c!important}
html[data-mugr-theme="dark"] body.mugr-market-site .mugr-empty-state h3{color:#e7eef7!important}
html[data-mugr-theme="dark"] .mugr-tool-button{background:#152238;color:#dfeaff;border-color:#3c4e66}
html[data-mugr-theme="dark"] .mugr-accessibility-panel{background:#101a2a}
html[data-mugr-theme="dark"] .mugr-a11y-section{background:#172338}
html[data-mugr-theme="dark"] .mugr-a11y-section h3{color:#c2cddd}
html[data-mugr-theme="dark"] .mugr-a11y-grid button{background:#233149;color:#e9eff8}
html[data-mugr-theme="dark"] .mugr-a11y-icon{background:#101b2c;color:#fff}

/* Accessibility preferences */
html.mugr-a11y-bigger-text body.mugr-market-site{font-size:18px!important}
html.mugr-a11y-bigger-text body.mugr-market-site h1{font-size:1.12em!important}
html.mugr-a11y-bigger-text body.mugr-market-site h2{font-size:2.0em!important}
html.mugr-a11y-bigger-text body.mugr-market-site h3,
html.mugr-a11y-bigger-text body.mugr-market-site h4,
html.mugr-a11y-bigger-text body.mugr-market-site p,
html.mugr-a11y-bigger-text body.mugr-market-site a,
html.mugr-a11y-bigger-text body.mugr-market-site button,
html.mugr-a11y-bigger-text body.mugr-market-site input,
html.mugr-a11y-bigger-text body.mugr-market-site select,
html.mugr-a11y-bigger-text body.mugr-market-site td,
html.mugr-a11y-bigger-text body.mugr-market-site th,
html.mugr-a11y-bigger-text body.mugr-market-site label{font-size:22px!important}
html.mugr-a11y-line-height body.mugr-market-site,
html.mugr-a11y-line-height body.mugr-market-site p,
html.mugr-a11y-line-height body.mugr-market-site td,
html.mugr-a11y-line-height body.mugr-market-site li{line-height:1.9!important}
html.mugr-a11y-text-align body.mugr-market-site p,
html.mugr-a11y-text-align body.mugr-market-site td,
html.mugr-a11y-text-align body.mugr-market-site li,
html.mugr-a11y-text-align body.mugr-market-site .mugr-faculty-name{text-align:left!important}
html.mugr-a11y-readable-font body.mugr-market-site,
html.mugr-a11y-readable-font body.mugr-market-site *{font-family:Arial,Tahoma,sans-serif!important}
html.mugr-a11y-contrast body.mugr-market-site{background:#000!important;color:#fff!important}
html.mugr-a11y-contrast body.mugr-market-site main,
html.mugr-a11y-contrast body.mugr-market-site section,
html.mugr-a11y-contrast body.mugr-market-site .mugr-program-hero,
html.mugr-a11y-contrast body.mugr-market-site .mugr-finder-card,
html.mugr-a11y-contrast body.mugr-market-site .mugr-result-section,
html.mugr-a11y-contrast body.mugr-market-site .content-form{background:#000!important;color:#fff!important}
html.mugr-a11y-contrast body.mugr-market-site a{color:#ffea00!important;text-decoration:underline!important}
html.mugr-a11y-contrast body.mugr-market-site button{outline:2px solid #fff!important}
html.mugr-a11y-grayscale body.mugr-market-site{filter:grayscale(1)!important}
html.mugr-a11y-hide-images body.mugr-market-site img{visibility:hidden!important}
html.mugr-a11y-pause-animations *,
html.mugr-a11y-pause-animations *::before,
html.mugr-a11y-pause-animations *::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}

@media(max-width:767.98px){
  .mugr-a11y-tools{right:58px;bottom:18px;gap:6px}
  .mugr-tool-button{width:42px;height:42px;padding:0;justify-content:center}
  .mugr-tool-button span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
  .mugr-accessibility-panel{right:10px;bottom:84px;width:calc(100vw - 20px);max-height:calc(100vh - 105px)}
  .mugr-a11y-grid{grid-template-columns:1fr 1fr}
}


/* =========================================================
   V69 — Dark Mode polish: header placement, footer, contrast
   ========================================================= */
.mugr-header-dark-toggle{
  appearance:none;
  font-family:inherit;
  cursor:pointer;
}
.mugr-header-dark-toggle i{font-size:17px}
.mugr-header-dark-toggle.active{
  background:rgba(255,255,255,.22)!important;
  color:#fff!important;
  border-color:rgba(255,255,255,.5)!important;
}
.mugr-a11y-tools{right:76px}

/* Increase foreground contrast throughout Dark Mode. */
html[data-mugr-theme="dark"] body.mugr-market-site{
  --mugr-ink:#f4f7fb;
  --mugr-muted:#c6d0dc;
  color:#f4f7fb!important;
}
html[data-mugr-theme="dark"] body.mugr-market-site .mugr-program-hero p,
html[data-mugr-theme="dark"] body.mugr-market-site .mugr-faculty-name small,
html[data-mugr-theme="dark"] body.mugr-market-site .mugr-result-hint,
html[data-mugr-theme="dark"] body.mugr-market-site .mugr-breadcrumb,
html[data-mugr-theme="dark"] body.mugr-market-site .mugr-section-eyebrow,
html[data-mugr-theme="dark"] body.mugr-market-site .mugr-hero-label,
html[data-mugr-theme="dark"] body.mugr-market-site .mugr-filter-label,
html[data-mugr-theme="dark"] body.mugr-market-site small{
  color:#cbd6e4!important;
}
html[data-mugr-theme="dark"] body.mugr-market-site .mugr-faculty-name,
html[data-mugr-theme="dark"] body.mugr-market-site .mugr-faculty-name strong,
html[data-mugr-theme="dark"] body.mugr-market-site .mugr-result-heading,
html[data-mugr-theme="dark"] body.mugr-market-site label,
html[data-mugr-theme="dark"] body.mugr-market-site td,
html[data-mugr-theme="dark"] body.mugr-market-site p{
  color:#edf3fa!important;
}
html[data-mugr-theme="dark"] body.mugr-market-site input::placeholder{
  color:#9eacbd!important;
  opacity:1;
}

/* Full footer conversion for Dark Mode. */
html[data-mugr-theme="dark"] body.mugr-market-site .mugr-market-footer{
  background:#0a1322!important;
  color:#eaf1f9!important;
  border-color:#27384e!important;
}
html[data-mugr-theme="dark"] body.mugr-market-site .mugr-footer-cta{
  background:#111d2f!important;
  border-top:1px solid #293b52!important;
  border-bottom:1px solid #293b52!important;
}
html[data-mugr-theme="dark"] body.mugr-market-site .mugr-footer-cta-copy h3,
html[data-mugr-theme="dark"] body.mugr-market-site .mugr-footer-main h4,
html[data-mugr-theme="dark"] body.mugr-market-site .mugr-footer-main summary h4{
  color:#f5f8fc!important;
}
html[data-mugr-theme="dark"] body.mugr-market-site .mugr-footer-cta-copy p,
html[data-mugr-theme="dark"] body.mugr-market-site .mugr-footer-main p,
html[data-mugr-theme="dark"] body.mugr-market-site .mugr-footer-brand p,
html[data-mugr-theme="dark"] body.mugr-market-site .mugr-footer-main a{
  color:#cbd6e4!important;
}
html[data-mugr-theme="dark"] body.mugr-market-site .mugr-footer-main{
  background:#0d1727!important;
  color:#edf3fa!important;
}
html[data-mugr-theme="dark"] body.mugr-market-site .mugr-footer-column{
  border-color:#2a3a50!important;
}
html[data-mugr-theme="dark"] body.mugr-market-site .mugr-footer-main a:hover,
html[data-mugr-theme="dark"] body.mugr-market-site .mugr-footer-highlight{
  color:#68a9ff!important;
}
html[data-mugr-theme="dark"] body.mugr-market-site .mugr-footer-bottom{
  background:#07101d!important;
  color:#d6e0ec!important;
  border-top:1px solid #26364b!important;
}
html[data-mugr-theme="dark"] body.mugr-market-site .mugr-footer-logo-divider{
  background:#33465f!important;
}
html[data-mugr-theme="dark"] body.mugr-market-site .mugr-footer-cta-actions a{
  border-color:#4b6685!important;
}
html[data-mugr-theme="dark"] body.mugr-market-site .mugr-footer-cta-actions a:not(.primary){
  color:#e9f1fb!important;
  background:#16253a!important;
}

/* Keep footer logos visible on a dark surface. */
html[data-mugr-theme="dark"] body.mugr-market-site .mugr-footer-brand-logos{
  background:#fff;
  border-radius:10px;
  padding:7px 10px;
  width:max-content;
  max-width:100%;
}

@media(max-width:767.98px){
  .mugr-header-dark-toggle span{display:none}
  .mugr-header-dark-toggle{width:46px!important;min-width:46px!important;padding:0!important;justify-content:center!important}
  .mugr-a11y-tools{right:58px}
}


/* =========================================================
   V70 — Night/Day switch + full header dark mode + a11y scale
   ========================================================= */

/* Switch-inspired mode control */
.mugr-header-dark-toggle{
  min-width:164px!important;
  height:48px!important;
  border-radius:999px!important;
  padding:4px 14px 4px 5px!important;
  gap:11px!important;
  background:#08111e!important;
  border:1px solid rgba(255,255,255,.42)!important;
  color:#fff!important;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.05),0 5px 14px rgba(0,0,0,.13)!important;
}
.mugr-header-dark-toggle .mugr-mode-knob{
  width:38px;height:38px;flex:0 0 38px;border-radius:50%;
  display:grid;place-items:center;background:#fff;color:#111827;
  box-shadow:0 2px 7px rgba(0,0,0,.18);
  transition:transform .22s ease,background .22s ease,color .22s ease;
}
.mugr-header-dark-toggle .mugr-mode-knob i{font-size:20px!important}
.mugr-header-dark-toggle .mugr-mode-label{
  font:800 13px/1 Arial,Tahoma,sans-serif!important;
  letter-spacing:.035em;white-space:nowrap;color:inherit!important;
}
.mugr-header-dark-toggle:hover,.mugr-header-dark-toggle:focus-visible{
  transform:translateY(-1px);outline:2px solid rgba(255,255,255,.42)!important;outline-offset:2px;
}
html[data-mugr-theme="dark"] .mugr-header-dark-toggle{
  background:#e5e7eb!important;color:#111!important;border-color:#c7ccd3!important;
  padding:4px 5px 4px 14px!important;flex-direction:row-reverse;
}
html[data-mugr-theme="dark"] .mugr-header-dark-toggle .mugr-mode-knob{
  background:#fff;color:#111;
}

/* Header / nav / breadcrumb must participate in Dark Mode */
html[data-mugr-theme="dark"] body.mugr-market-site .mugr-topbar{
  background:#07101d!important;color:#eef5fc!important;border-color:#24354b!important;
}
html[data-mugr-theme="dark"] body.mugr-market-site .mugr-topbar a,
html[data-mugr-theme="dark"] body.mugr-market-site .mugr-topbar span{
  color:#f0f5fb!important;
}
html[data-mugr-theme="dark"] body.mugr-market-site .mugr-main-header{
  background:linear-gradient(135deg,#0b1a2d 0%,#10243d 100%)!important;
  border-color:#263a54!important;
}
html[data-mugr-theme="dark"] body.mugr-market-site .mugr-header-title small{
  color:#a9c7ef!important;
}
html[data-mugr-theme="dark"] body.mugr-market-site .mugr-header-title strong{
  color:#fff!important;
}
html[data-mugr-theme="dark"] body.mugr-market-site .mugr-category-nav{
  background:#0b1524!important;
  border-top:1px solid #24364d!important;
  border-bottom:1px solid #2d4058!important;
}
html[data-mugr-theme="dark"] body.mugr-market-site .mugr-category-nav a{
  color:#e7eef7!important;
  border-color:#2c4059!important;
}
html[data-mugr-theme="dark"] body.mugr-market-site .mugr-category-nav a:hover{
  background:#14243a!important;color:#fff!important;
}
html[data-mugr-theme="dark"] body.mugr-market-site .mugr-category-nav a.active{
  background:#122238!important;color:#fff!important;
}
html[data-mugr-theme="dark"] body.mugr-market-site .mugr-category-nav a.active::after{
  background:#ffc928!important;
}
html[data-mugr-theme="dark"] body.mugr-market-site .mugr-breadcrumb-wrap,
html[data-mugr-theme="dark"] body.mugr-market-site .mugr-breadcrumb-area{
  background:#0b1220!important;
  border-color:#26384e!important;
}
html[data-mugr-theme="dark"] body.mugr-market-site .mugr-breadcrumb,
html[data-mugr-theme="dark"] body.mugr-market-site .mugr-breadcrumb a,
html[data-mugr-theme="dark"] body.mugr-market-site .mugr-breadcrumb span{
  color:#dbe5f0!important;
}
html[data-mugr-theme="dark"] body.mugr-market-site .mugr-breadcrumb a:hover{
  color:#78b5ff!important;
}

/* Prevent dark-on-dark labels in header/nav zones */
html[data-mugr-theme="dark"] body.mugr-market-site header *,
html[data-mugr-theme="dark"] body.mugr-market-site .mugr-category-nav *,
html[data-mugr-theme="dark"] body.mugr-market-site .mugr-breadcrumb-wrap *{
  text-shadow:none;
}
html[data-mugr-theme="dark"] body.mugr-market-site .mugr-category-nav .fa,
html[data-mugr-theme="dark"] body.mugr-market-site .mugr-breadcrumb .fa{
  color:#dce7f5!important;
}

/* Accessibility panel readability */
.mugr-accessibility-panel{
  width:min(470px,calc(100vw - 28px));
}
.mugr-a11y-panel-head strong{
  font-size:26px!important;
}
.mugr-a11y-section h3{
  font-size:19px!important;
  font-weight:700!important;
}
.mugr-a11y-grid button{
  min-height:90px!important;
  font-size:17px!important;
  line-height:1.35!important;
  padding:14px 15px!important;
}
.mugr-a11y-icon{
  flex-basis:46px;width:46px;height:46px;
  font-size:20px!important;
}
.mugr-a11y-panel-foot{
  font-size:15px!important;
}
.mugr-a11y-reset{
  font-size:15px!important;
  padding:10px 16px!important;
}

/* In dark mode keep accessibility controls bright enough to read */
html[data-mugr-theme="dark"] .mugr-a11y-grid button{
  color:#f4f7fb!important;
  background:#223149!important;
}
html[data-mugr-theme="dark"] .mugr-a11y-grid button.active{
  background:#294f7e!important;
  color:#fff!important;
}
html[data-mugr-theme="dark"] .mugr-a11y-icon{
  color:#fff!important;
  background:#0e1b2d!important;
}

@media(max-width:767.98px){
  .mugr-header-dark-toggle{
    min-width:48px!important;width:48px!important;height:44px!important;padding:3px!important;
  }
  .mugr-header-dark-toggle .mugr-mode-label{display:none!important}
  .mugr-header-dark-toggle .mugr-mode-knob{width:36px;height:36px;flex-basis:36px}
  .mugr-a11y-panel-head strong{font-size:22px!important}
  .mugr-a11y-grid button{font-size:15px!important;min-height:84px!important}
}


/* =========================================================
   V71 — Complete dark surfaces + result/select contrast
   ========================================================= */
html[data-mugr-theme="dark"] body.mugr-market-site .mugr-custom-select-menu{
  background:#101c2d!important;
  border-color:#344861!important;
  box-shadow:0 16px 34px rgba(0,0,0,.36)!important;
}
html[data-mugr-theme="dark"] body.mugr-market-site .mugr-custom-select-option{
  background:#101c2d!important;
  color:#edf4fb!important;
  border-color:#293c54!important;
}
html[data-mugr-theme="dark"] body.mugr-market-site .mugr-custom-select-option:hover,
html[data-mugr-theme="dark"] body.mugr-market-site .mugr-custom-select-option:focus{
  background:#1b3352!important;
  color:#fff!important;
}
html[data-mugr-theme="dark"] body.mugr-market-site .mugr-custom-select-option.selected{
  background:#126fd1!important;
  color:#fff!important;
}
html[data-mugr-theme="dark"] body.mugr-market-site .mugr-custom-select-button{
  background:#111d2f!important;
  color:#f2f6fb!important;
  border-color:#3a4e67!important;
}
html[data-mugr-theme="dark"] body.mugr-market-site .mugr-custom-select-text,
html[data-mugr-theme="dark"] body.mugr-market-site .mugr-faculty-name,
html[data-mugr-theme="dark"] body.mugr-market-site .mugr-faculty-name-th,
html[data-mugr-theme="dark"] body.mugr-market-site .mugr-faculty-name-en,
html[data-mugr-theme="dark"] body.mugr-market-site .mugr-faculty-name strong{
  color:#f0f5fb!important;
}
html[data-mugr-theme="dark"] body.mugr-market-site .mugr-faculty-name-en,
html[data-mugr-theme="dark"] body.mugr-market-site .mugr-faculty-name small{
  color:#b9c7d7!important;
}
html[data-mugr-theme="dark"] body.mugr-market-site .mugr-faculty-button{
  background:#101c2d!important;
  color:#f1f5fb!important;
  border-color:#31455f!important;
}
html[data-mugr-theme="dark"] body.mugr-market-site .mugr-faculty-button:hover{
  background:#172a43!important;
}


/* =========================================================
   V72 — Typography Restore + Safe Bigger Text
   ========================================================= */

/* Restore the Program Finder typography baseline. */
body.mugr-market-site .mugr-program-hero h1{
  font-size:clamp(42px,3.2vw,58px)!important;
  line-height:1.08!important;
  font-weight:850!important;
}
body.mugr-market-site .mugr-program-hero p{
  font-size:25px!important;
  line-height:1.5!important;
}
body.mugr-market-site .mugr-finder-header h2,
body.mugr-market-site .mugr-result-heading h2{
  font-size:32px!important;
  line-height:1.2!important;
}
body.mugr-market-site .mugr-degree-tabs a{
  font-size:28px!important;
}
body.mugr-market-site .mugr-category-nav a{
  font-size:18px!important;
}
body.mugr-market-site .mugr-breadcrumb{
  font-size:18px!important;
}
body.mugr-market-site .mugr-search-box input,
body.mugr-market-site .mugr-custom-select-button{
  font-size:20px!important;
}

/*
 * Accessibility Bigger Text must INCREASE the established size.
 * This overrides the old generic 1.12em/1.10em rule that could
 * accidentally make large headings smaller.
 */
html.mugr-a11y-bigger-text body.mugr-market-site .mugr-program-hero h1{
  font-size:clamp(47px,3.65vw,32px)!important;
}
html.mugr-a11y-bigger-text body.mugr-market-site .mugr-program-hero p{
  font-size:28px!important;
}
html.mugr-a11y-bigger-text body.mugr-market-site .mugr-finder-header h2,
html.mugr-a11y-bigger-text body.mugr-market-site .mugr-result-heading h2{
  font-size:36px!important;
}
html.mugr-a11y-bigger-text body.mugr-market-site .mugr-category-nav a,
html.mugr-a11y-bigger-text body.mugr-market-site .mugr-breadcrumb{
  font-size:25px!important;
}
html.mugr-a11y-bigger-text body.mugr-market-site .mugr-degree-tabs a,
html.mugr-a11y-bigger-text body.mugr-market-site .mugr-faculty-button,
html.mugr-a11y-bigger-text body.mugr-market-site .mugr-search-box input,
html.mugr-a11y-bigger-text body.mugr-market-site .mugr-custom-select-button,
html.mugr-a11y-bigger-text body.mugr-market-site .mugr-quick-search-button{
  font-size:28px!important;
}

@media(max-width:1199.98px){
  body.mugr-market-site .mugr-program-hero h1{font-size:44px!important}
  body.mugr-market-site .mugr-program-hero p{font-size:23px!important}
}
@media(max-width:767.98px){
  body.mugr-market-site .mugr-program-hero h1{font-size:34px!important}
  body.mugr-market-site .mugr-program-hero p{font-size:20px!important}
  body.mugr-market-site .mugr-finder-header h2,
  body.mugr-market-site .mugr-result-heading h2{font-size:27px!important}
}


/* =========================================================
   V73 — Mobile Night/Day switch + complete top header dark
   ========================================================= */

/* Mobile-only compact switch, modeled after the supplied example. */
.mugr-mobile-theme-toggle{
  display:none;
  appearance:none;
  border:0;
  background:transparent;
  padding:0;
  margin:0;
  cursor:pointer;
  align-items:center;
  justify-content:center;
}
.mugr-mobile-theme-track{
  width:46px;
  height:24px;
  border-radius:999px;
  background:#6e84a4;
  display:flex;
  align-items:center;
  padding:2px;
  transition:background .2s ease;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.16);
}
.mugr-mobile-theme-knob{
  width:20px;
  height:20px;
  border-radius:50%;
  background:#fff;
  color:#17243a;
  display:grid;
  place-items:center;
  transform:translateX(0);
  transition:transform .2s ease,background .2s ease,color .2s ease;
  box-shadow:0 1px 5px rgba(0,0,0,.22);
}
.mugr-mobile-theme-knob i{
  font-size:12px!important;
  line-height:1!important;
}
html[data-mugr-theme="dark"] .mugr-mobile-theme-track{
  background:#284c7a;
}
html[data-mugr-theme="dark"] .mugr-mobile-theme-knob{
  transform:translateX(22px);
  background:#cf3d5f;
  color:#fff;
}

/* Complete the very top bar in dark mode. */
html[data-mugr-theme="dark"] body.mugr-market-site .mugr-topbar{
  background:#050b14!important;
  border-bottom:1px solid #203047!important;
  color:#f4f7fb!important;
}
html[data-mugr-theme="dark"] body.mugr-market-site .mugr-topbar .mugr-shell,
html[data-mugr-theme="dark"] body.mugr-market-site .mugr-topbar a,
html[data-mugr-theme="dark"] body.mugr-market-site .mugr-topbar span,
html[data-mugr-theme="dark"] body.mugr-market-site .mugr-topbar i,
html[data-mugr-theme="dark"] body.mugr-market-site .mugr-topbar strong{
  color:#eef4fb!important;
}
html[data-mugr-theme="dark"] body.mugr-market-site .mugr-topbar a:hover{
  color:#8dc3ff!important;
}

/* The main blue header also becomes a deep dark surface. */
html[data-mugr-theme="dark"] body.mugr-market-site .mugr-main-header{
  background:#0b1727!important;
  color:#f4f7fb!important;
  border-bottom:1px solid #283b54!important;
}
html[data-mugr-theme="dark"] body.mugr-market-site .mugr-main-header .mugr-header-title small{
  color:#afc6df!important;
}
html[data-mugr-theme="dark"] body.mugr-market-site .mugr-main-header .mugr-header-title strong{
  color:#fff!important;
}
html[data-mugr-theme="dark"] body.mugr-market-site .mugr-lang-btn{
  background:#122238!important;
  color:#f5f8fc!important;
  border-color:#405572!important;
}
html[data-mugr-theme="dark"] body.mugr-market-site .mugr-lang-btn.active{
  background:#1c3555!important;
  color:#fff!important;
  border-color:#698bb4!important;
}

/* Mobile layout: show compact switch and hide the large desktop switch. */
@media(max-width:767.98px){
  .mugr-header-dark-toggle{display:none!important}
  .mugr-mobile-theme-toggle{display:inline-flex!important}
  .mugr-header-actions{
    gap:8px!important;
  }
  .mugr-lang-switch{
    gap:5px!important;
  }
  .mugr-mobile-theme-toggle:focus-visible{
    outline:2px solid #fff!important;
    outline-offset:3px;
    border-radius:999px;
  }
}


/* =========================================================
   V74 — Desktop header full dark-mode enforcement
   ========================================================= */

/* Force every desktop header strip to dark surfaces. */
html[data-mugr-theme="dark"] body.mugr-market-site > header,
html[data-mugr-theme="dark"] body.mugr-market-site header.mugr-site-header,
html[data-mugr-theme="dark"] body.mugr-market-site .mugr-site-header,
html[data-mugr-theme="dark"] body.mugr-market-site .mugr-topbar,
html[data-mugr-theme="dark"] body.mugr-market-site .mugr-main-header,
html[data-mugr-theme="dark"] body.mugr-market-site .mugr-main-header-inner{
  background:#07111f!important;
  background-image:none!important;
  color:#f4f7fb!important;
  border-color:#263a52!important;
}

/* Very top strip specifically: remove inherited Mahidol blue. */
html[data-mugr-theme="dark"] body.mugr-market-site .mugr-topbar{
  background:#030912!important;
  box-shadow:none!important;
}
html[data-mugr-theme="dark"] body.mugr-market-site .mugr-topbar::before,
html[data-mugr-theme="dark"] body.mugr-market-site .mugr-topbar::after,
html[data-mugr-theme="dark"] body.mugr-market-site .mugr-main-header::before,
html[data-mugr-theme="dark"] body.mugr-market-site .mugr-main-header::after{
  background:none!important;
}

/* Text/icon contrast in all header areas. */
html[data-mugr-theme="dark"] body.mugr-market-site .mugr-topbar *,
html[data-mugr-theme="dark"] body.mugr-market-site .mugr-main-header *,
html[data-mugr-theme="dark"] body.mugr-market-site .mugr-main-header-inner *{
  color:#eef4fb!important;
}
html[data-mugr-theme="dark"] body.mugr-market-site .mugr-header-title small{
  color:#b5c8df!important;
}
html[data-mugr-theme="dark"] body.mugr-market-site .mugr-header-title strong{
  color:#fff!important;
}

/* Keep language pills and Day/Night control legible. */
html[data-mugr-theme="dark"] body.mugr-market-site .mugr-lang-btn{
  background:#14243a!important;
  color:#f5f8fc!important;
  border-color:#415b7a!important;
}
html[data-mugr-theme="dark"] body.mugr-market-site .mugr-lang-btn.active{
  background:#203a5c!important;
  border-color:#6f91bc!important;
}
html[data-mugr-theme="dark"] body.mugr-market-site .mugr-header-dark-toggle{
  background:#e8ebef!important;
  color:#101722!important;
  border-color:#cbd1d8!important;
}
html[data-mugr-theme="dark"] body.mugr-market-site .mugr-header-dark-toggle .mugr-mode-label,
html[data-mugr-theme="dark"] body.mugr-market-site .mugr-header-dark-toggle .mugr-mode-knob,
html[data-mugr-theme="dark"] body.mugr-market-site .mugr-header-dark-toggle .mugr-mode-knob i{
  color:#101722!important;
}

/* Desktop nav also stays dark and visually connected with the header. */
html[data-mugr-theme="dark"] body.mugr-market-site .mugr-category-nav{
  background:#0a1422!important;
  border-top:1px solid #24364d!important;
  border-bottom:1px solid #2b3e57!important;
}
html[data-mugr-theme="dark"] body.mugr-market-site .mugr-category-nav a{
  background:#0a1422!important;
  color:#e8eef7!important;
  border-color:#2c4059!important;
}
html[data-mugr-theme="dark"] body.mugr-market-site .mugr-category-nav a.active{
  background:#13243a!important;
  color:#fff!important;
}

/* Fallback for any nested blue header rows from legacy rules. */
@media(min-width:768px){
  html[data-mugr-theme="dark"] body.mugr-market-site header [style*="background"],
  html[data-mugr-theme="dark"] body.mugr-market-site .mugr-topbar [style*="background"],
  html[data-mugr-theme="dark"] body.mugr-market-site .mugr-main-header [style*="background"]{
    background-color:transparent!important;
  }
}


/* =========================================================
   V75 — FIX: actual top strip class is .mugr-utility-bar
   Previous dark rule targeted .mugr-topbar, which does not
   exist in this header markup.
   ========================================================= */
html[data-mugr-theme="dark"] body.mugr-market-site .mugr-market-header .mugr-utility-bar,
html[data-mugr-theme="dark"] body.mugr-market-site .mugr-utility-bar{
  background:#030912!important;
  background-color:#030912!important;
  background-image:none!important;
  color:#eef4fb!important;
  border-bottom:1px solid #22344a!important;
  box-shadow:none!important;
}

html[data-mugr-theme="dark"] body.mugr-market-site .mugr-utility-inner,
html[data-mugr-theme="dark"] body.mugr-market-site .mugr-utility-left,
html[data-mugr-theme="dark"] body.mugr-market-site .mugr-utility-right{
  background:transparent!important;
  color:#eef4fb!important;
}

html[data-mugr-theme="dark"] body.mugr-market-site .mugr-utility-bar a,
html[data-mugr-theme="dark"] body.mugr-market-site .mugr-utility-bar span,
html[data-mugr-theme="dark"] body.mugr-market-site .mugr-utility-bar i,
html[data-mugr-theme="dark"] body.mugr-market-site .mugr-utility-bar strong{
  color:#f2f6fb!important;
}

html[data-mugr-theme="dark"] body.mugr-market-site .mugr-utility-bar a:hover{
  color:#8fc4ff!important;
}

/* Make the complete desktop header one continuous dark family. */
html[data-mugr-theme="dark"] body.mugr-market-site .mugr-market-header{
  background:#07111f!important;
  background-image:none!important;
}
html[data-mugr-theme="dark"] body.mugr-market-site .mugr-main-header{
  background:#0b1727!important;
  background-color:#0b1727!important;
  background-image:none!important;
}
html[data-mugr-theme="dark"] body.mugr-market-site .mugr-main-header-inner{
  background:transparent!important;
}

/* Defensive override for the original blue utility rule. */
@media(min-width:901px){
  html[data-mugr-theme="dark"] body.mugr-market-site .mugr-utility-bar{
    background:#030912!important;
  }
}


/* =========================================================
   V76 — Fine-tuning: header typography + dashboard dark colors
   ========================================================= */

/* 1) Header/nav: larger and heavier in both Day/Night modes. */
body.mugr-market-site .mugr-category-nav a{
  font-size:25px!important;
  font-weight:800!important;
  line-height:1.2!important;
}
body.mugr-market-site .mugr-utility-bar,
body.mugr-market-site .mugr-utility-bar a,
body.mugr-market-site .mugr-utility-bar span{
  font-size:17px!important;
  font-weight:750!important;
}
body.mugr-market-site .mugr-header-title small{
  font-size:15px!important;
  font-weight:800!important;
}
body.mugr-market-site .mugr-header-title strong{
  font-weight:900!important;
}

/* 2) Dashboard cards: dark-mode colors must be bright and readable. */
html[data-mugr-theme="dark"] body.mugr-market-site .mugr-admission-dashboard .mugr-status-card,
html[data-mugr-theme="dark"] body.mugr-market-site .mugr-admission-dashboard .mugr-status-action{
  background:#12233a!important;
  border-color:#37516f!important;
  color:#eef5fc!important;
}
html[data-mugr-theme="dark"] body.mugr-market-site .mugr-admission-dashboard .mugr-status-card:hover,
html[data-mugr-theme="dark"] body.mugr-market-site .mugr-admission-dashboard .mugr-status-action:hover{
  background:#18304f!important;
  border-color:#5a7ba4!important;
}
html[data-mugr-theme="dark"] body.mugr-market-site .mugr-admission-dashboard .mugr-status-icon,
html[data-mugr-theme="dark"] body.mugr-market-site .mugr-admission-dashboard .mugr-status-card strong{
  color:#6fb6ff!important;
}
html[data-mugr-theme="dark"] body.mugr-market-site .mugr-admission-dashboard .is-open .mugr-status-icon,
html[data-mugr-theme="dark"] body.mugr-market-site .mugr-admission-dashboard .is-open strong{
  color:#55d39a!important;
}
html[data-mugr-theme="dark"] body.mugr-market-site .mugr-admission-dashboard .is-closed .mugr-status-icon,
html[data-mugr-theme="dark"] body.mugr-market-site .mugr-admission-dashboard .is-closed strong{
  color:#ff858f!important;
}
html[data-mugr-theme="dark"] body.mugr-market-site .mugr-admission-dashboard .mugr-status-arrow{
  color:#c4d5e8!important;
}

/* 3) Increase main dashboard labels and supporting copy. */
body.mugr-market-site .mugr-admission-dashboard .mugr-status-card small{
  font-size:24px!important;
  font-weight:900!important;
  line-height:1.08!important;
}
body.mugr-market-site .mugr-admission-dashboard .mugr-status-card strong{
  font-size:50px!important;
  font-weight:900!important;
}
body.mugr-market-site .mugr-admission-dashboard .mugr-status-card em{
  font-size:15px!important;
  font-weight:750!important;
}
body.mugr-market-site .mugr-program-hero .mugr-eyebrow,
body.mugr-market-site .mugr-program-hero .mugr-hero-year-card{
  font-weight:800!important;
}
html[data-mugr-theme="dark"] body.mugr-market-site .mugr-program-hero .mugr-eyebrow{
  color:#75b8ff!important;
}
html[data-mugr-theme="dark"] body.mugr-market-site .mugr-hero-year-card{
  background:#182b46!important;
  border-color:#3b5677!important;
  color:#dce8f5!important;
}
html[data-mugr-theme="dark"] body.mugr-market-site .mugr-hero-year-card strong{
  color:#79b8ff!important;
}
html[data-mugr-theme="dark"] body.mugr-market-site .mugr-hero-year-card small{
  color:#b8c7d8!important;
}

/* Keep light mode status colors readable after font increase. */
body.mugr-market-site:not([data-mugr-theme="dark"]) .mugr-admission-dashboard .mugr-status-card small{
  color:#142033!important;
}
body.mugr-market-site:not([data-mugr-theme="dark"]) .mugr-admission-dashboard .mugr-status-card em{
  color:#61748a!important;
}

@media(max-width:1180px){
  body.mugr-market-site .mugr-category-nav a{font-size:18px!important}
  body.mugr-market-site .mugr-admission-dashboard .mugr-status-card small{font-size:21px!important}
  body.mugr-market-site .mugr-admission-dashboard .mugr-status-card strong{font-size:28px!important}
}
@media(max-width:640px){
  body.mugr-market-site .mugr-category-nav a{font-size:18px!important}
  body.mugr-market-site .mugr-admission-dashboard .mugr-status-card small{font-size:20px!important}
  body.mugr-market-site .mugr-admission-dashboard .mugr-status-card strong{font-size:28px!important}
}


/* =========================================================
   V77 — Dark dashboard primary labels = white
   ========================================================= */
html[data-mugr-theme="dark"] body.mugr-market-site
.mugr-admission-dashboard .mugr-status-card small{
  color:#ffffff!important;
}

html[data-mugr-theme="dark"] body.mugr-market-site
.mugr-admission-dashboard .mugr-status-card em{
  color:#c7d3e2!important;
}

/* Keep status numbers/icons as semantic accents. */
html[data-mugr-theme="dark"] body.mugr-market-site
.mugr-admission-dashboard .is-open strong,
html[data-mugr-theme="dark"] body.mugr-market-site
.mugr-admission-dashboard .is-open .mugr-status-icon{
  color:#55d39a!important;
}

html[data-mugr-theme="dark"] body.mugr-market-site
.mugr-admission-dashboard .is-closed strong,
html[data-mugr-theme="dark"] body.mugr-market-site
.mugr-admission-dashboard .is-closed .mugr-status-icon{
  color:#ff858f!important;
}

html[data-mugr-theme="dark"] body.mugr-market-site
.mugr-admission-dashboard .is-faculty strong,
html[data-mugr-theme="dark"] body.mugr-market-site
.mugr-admission-dashboard .is-total strong,
html[data-mugr-theme="dark"] body.mugr-market-site
.mugr-admission-dashboard .is-faculty .mugr-status-icon,
html[data-mugr-theme="dark"] body.mugr-market-site
.mugr-admission-dashboard .is-total .mugr-status-icon{
  color:#6fb6ff!important;
}


/* =========================================================
   V78 — Dark Mode: Program list text contrast
   ========================================================= */

/* Main Thai program name = white. */
html[data-mugr-theme="dark"] body.mugr-market-site
.mugr-program-table-wrap table td,
html[data-mugr-theme="dark"] body.mugr-market-site
.mugr-program-table-wrap table td a,
html[data-mugr-theme="dark"] body.mugr-market-site
.responsive-table td,
html[data-mugr-theme="dark"] body.mugr-market-site
.responsive-table td a{
  color:#f3f7fc!important;
}

/* Secondary / English program name = soft light gray, not dark blue. */
html[data-mugr-theme="dark"] body.mugr-market-site
.mugr-program-table-wrap table td small,
html[data-mugr-theme="dark"] body.mugr-market-site
.mugr-program-table-wrap table td .text-muted,
html[data-mugr-theme="dark"] body.mugr-market-site
.mugr-program-table-wrap table td [class*="en"],
html[data-mugr-theme="dark"] body.mugr-market-site
.responsive-table td small,
html[data-mugr-theme="dark"] body.mugr-market-site
.responsive-table td .text-muted{
  color:#c2cedc!important;
}

/* Program rows stay dark with subtle separators. */
html[data-mugr-theme="dark"] body.mugr-market-site
.mugr-program-table-wrap table tr,
html[data-mugr-theme="dark"] body.mugr-market-site
.mugr-program-table-wrap table td,
html[data-mugr-theme="dark"] body.mugr-market-site
.responsive-table tr,
html[data-mugr-theme="dark"] body.mugr-market-site
.responsive-table td{
  background:#101c2d!important;
  border-color:#30445c!important;
}

/* Links can still be recognized on hover without reverting to dark blue. */
html[data-mugr-theme="dark"] body.mugr-market-site
.mugr-program-table-wrap table td a:hover,
html[data-mugr-theme="dark"] body.mugr-market-site
.responsive-table td a:hover{
  color:#9ac9ff!important;
}


/* =========================================================
   V79 — Dark Mode: force Thai program-name rows to white
   The AJAX program table renders TH as the first row of each
   two-row program pair and EN as the following row.
   ========================================================= */

/* Thai program name (first row of each pair) */
html[data-mugr-theme="dark"] body.mugr-market-site
.mugr-program-table-wrap table.responsive-table tr:nth-child(odd) td:nth-child(2) > a,
html[data-mugr-theme="dark"] body.mugr-market-site
.mugr-program-table-wrap table.responsive-table tr:nth-child(odd) td:nth-child(2) a.mugr-program-detail-link{
  color:#ffffff!important;
  font-weight:800!important;
}

/* English program name (second row) */
html[data-mugr-theme="dark"] body.mugr-market-site
.mugr-program-table-wrap table.responsive-table tr:nth-child(even) td:first-child > a,
html[data-mugr-theme="dark"] body.mugr-market-site
.mugr-program-table-wrap table.responsive-table tr:nth-child(even) td:nth-child(2) > a{
  color:#d3dce7!important;
  font-weight:700!important;
}

/* Fallback: any program-detail link in dark mode must never use dark blue. */
html[data-mugr-theme="dark"] body.mugr-market-site
.mugr-program-table-wrap a.mugr-program-detail-link{
  color:#ffffff!important;
}


/* =========================================================
   V80 — Dark Mode: icons on white icon tiles need dark ink
   ========================================================= */
html[data-mugr-theme="dark"] body.mugr-market-site
.mugr-detail-card .mugr-section-icon,
html[data-mugr-theme="dark"] body.mugr-market-site
.mugr-detail-card .mugr-section-icon i,
html[data-mugr-theme="dark"] body.mugr-market-site
.mugr-detail-card .mugr-section-icon svg,
html[data-mugr-theme="dark"] body.mugr-market-site
.mugr-study-plan-card .mugr-section-icon,
html[data-mugr-theme="dark"] body.mugr-market-site
.mugr-study-plan-card .mugr-section-icon i,
html[data-mugr-theme="dark"] body.mugr-market-site
.mugr-study-plan-card .mugr-section-icon svg,
html[data-mugr-theme="dark"] body.mugr-market-site
[class*="section-icon"] i,
html[data-mugr-theme="dark"] body.mugr-market-site
[class*="section-icon"] svg{
  color:#26384d!important;
  stroke:#26384d!important;
  fill:none;
  opacity:1!important;
}

/* Font Awesome / icon-font glyphs inside white square tiles */
html[data-mugr-theme="dark"] body.mugr-market-site
[class*="icon-box"] i,
html[data-mugr-theme="dark"] body.mugr-market-site
[class*="icon-wrap"] i{
  color:#26384d!important;
  opacity:1!important;
}


/* =========================================================
   V81 — Dark Mode: dedicated white MUGR/FGS logos
   ========================================================= */
html[data-mugr-theme="dark"] body.mugr-market-site
img[src*="mugr01.png"]{
  content:url("../images/mugr01-white.png")!important;
  background:transparent!important;
}

html[data-mugr-theme="dark"] body.mugr-market-site
img[src*="fgs01.png"]{
  content:url("../images/fgs01-white.png")!important;
  background:transparent!important;
}

/* Remove any light logo plate when using the dedicated dark assets. */
html[data-mugr-theme="dark"] body.mugr-market-site
img[src*="mugr01.png"],
html[data-mugr-theme="dark"] body.mugr-market-site
img[src*="fgs01.png"]{
  box-shadow:none!important;
  border-color:transparent!important;
}

/* =========================================================
   V82 / R15 — Dark Mode: remove white footer logo plate
   ========================================================= */
html[data-mugr-theme="dark"] body.mugr-market-site .mugr-footer-brand-logos{
  background:transparent!important;
  border:none!important;
  border-radius:0!important;
  box-shadow:none!important;
  padding:0!important;
}
html[data-mugr-theme="dark"] body.mugr-market-site .mugr-footer-logo-divider{
  background:rgba(255,255,255,.55)!important;
}


/* R17 — Dark mode: yellow Apply CTA uses dark text for WCAG-friendly contrast */
html[data-mugr-theme="dark"] body.mugr-market-site
.mugr-program-table-wrap table tbody td:nth-child(4) > a[href*="admission-apply"]{
  color:#111827!important;
}
html[data-mugr-theme="dark"] body.mugr-market-site
.mugr-program-table-wrap table tbody td:nth-child(4) > a[href*="admission-apply"]:hover{
  color:#0b0f17!important;
}


/* =========================================================
   R19 — Dark mode: Program Contact button text contrast
   Actual markup is td:nth-child(4) > a[href="#"] with
   onclick="mugrOpenContactModal(...)".
   ========================================================= */
html[data-mugr-theme="dark"] body.mugr-market-site
.mugr-program-table-wrap table tbody td:nth-child(4) > a[href="#"]{
  color:#111827!important;
}

html[data-mugr-theme="dark"] body.mugr-market-site
.mugr-program-table-wrap table tbody td:nth-child(4) > a[href="#"]:hover,
html[data-mugr-theme="dark"] body.mugr-market-site
.mugr-program-table-wrap table tbody td:nth-child(4) > a[href="#"]:focus{
  color:#0b0f17!important;
}


/* R20 — Contact modal: merge duplicate Program Contact intro into first person card */
.mugr-contact-person__content{min-width:0;flex:1;}
.mugr-contact-person__intro{
  margin:0 0 12px;
  padding:0 0 12px;
  border-bottom:1px solid #e2eaf2;
}
.mugr-contact-person__intro-title{
  margin:0 0 3px;
  color:#122b49;
  font-size:20px;
  line-height:1.25;
  font-weight:850;
}
.mugr-contact-person__intro-text{
  color:#657a92;
  font-size:16px;
  line-height:1.45;
  font-weight:600;
}
html[data-mugr-theme="dark"] .mugr-contact-person__intro{
  border-bottom-color:#33465c;
}
html[data-mugr-theme="dark"] .mugr-contact-person__intro-title{
  color:#f4f7fb;
}
html[data-mugr-theme="dark"] .mugr-contact-person__intro-text{
  color:#c7d2df;
}
@media(max-width:640px){
  .mugr-contact-person__intro-title{font-size:18px;}
  .mugr-contact-person__intro-text{font-size:15px;}
}


/* R21 — Contact modal is a light surface even while site is in Dark Mode.
   Use dark foreground colors inside this light card for readable contrast. */
html[data-mugr-theme="dark"] .mugr-contact-person__intro-title{
  color:#172438!important;
}
html[data-mugr-theme="dark"] .mugr-contact-person__intro-text{
  color:#52657a!important;
}
html[data-mugr-theme="dark"] .mugr-contact-person__intro{
  border-bottom-color:#8090a3!important;
}


/* =========================================================
   R25 — Mobile header: use full logo at ~140px (no crop)
   ========================================================= */
@media (max-width:767.98px){
  body.mugr-market-site .mugr-main-header-inner{
    grid-template-columns:140px minmax(0,1fr)!important;
    gap:6px!important;
  }

  body.mugr-market-site .mugr-brand{
    width:140px!important;
    min-width:140px!important;
    max-width:140px!important;
    height:auto!important;
    overflow:visible!important;
    display:flex!important;
    align-items:center!important;
    justify-content:flex-start!important;
  }

  body.mugr-market-site .mugr-brand img{
    width:140px!important;
    max-width:140px!important;
    height:auto!important;
    max-height:none!important;
    object-fit:contain!important;
    object-position:left center!important;
    display:block!important;
  }

  body.mugr-market-site .mugr-header-actions{
    gap:4px!important;
  }

  body.mugr-market-site .mugr-header-actions .mugr-lang-btn{
    min-width:54px!important;
    height:38px!important;
    padding:0 6px!important;
    gap:4px!important;
    font-size:15px!important;
  }

  body.mugr-market-site .mugr-lang-flag{
    width:20px!important;
    min-width:20px!important;
    flex-basis:20px!important;
  }

  body.mugr-market-site .mugr-mobile-theme-track{
    width:40px!important;
    height:22px!important;
  }

  body.mugr-market-site .mugr-mobile-theme-knob{
    width:18px!important;
    height:18px!important;
  }

  html[data-mugr-theme="dark"] body.mugr-market-site .mugr-mobile-theme-knob{
    transform:translateX(18px)!important;
  }
}

@media (max-width:374.98px){
  body.mugr-market-site .mugr-main-header-inner{
    grid-template-columns:126px minmax(0,1fr)!important;
  }
  body.mugr-market-site .mugr-brand,
  body.mugr-market-site .mugr-brand img{
    width:126px!important;
    min-width:126px!important;
    max-width:126px!important;
  }
  body.mugr-market-site .mugr-header-actions .mugr-lang-btn{
    min-width:50px!important;
    padding:0 5px!important;
    font-size:14px!important;
  }
}


/* =========================================================
   R26 — Mobile header actions: pin Dark / TH / EN to right
   ========================================================= */
@media (max-width:767.98px){
  body.mugr-market-site .mugr-main-header-inner{
    grid-template-columns:140px minmax(0,1fr)!important;
    width:100%!important;
  }

  body.mugr-market-site .mugr-header-actions{
    width:100%!important;
    min-width:0!important;
    margin-left:auto!important;
    justify-self:stretch!important;
    justify-content:flex-end!important;
    padding-right:8px!important;
  }
}

@media (max-width:374.98px){
  body.mugr-market-site .mugr-main-header-inner{
    grid-template-columns:126px minmax(0,1fr)!important;
  }
  body.mugr-market-site .mugr-header-actions{
    padding-right:5px!important;
  }
}


/* =========================================================
   R28 — Mobile language buttons: slimmer, align with Dark Mode
   ========================================================= */
@media (max-width:767.98px){
  body.mugr-market-site .mugr-header-actions .mugr-lang-btn{
    height:32px!important;
    min-height:32px!important;
    padding-top:2px!important;
    padding-bottom:2px!important;
    padding-left:7px!important;
    padding-right:7px!important;
    line-height:1!important;
    align-items:center!important;
  }

  body.mugr-market-site .mugr-lang-flag{
    width:19px!important;
    min-width:19px!important;
    height:auto!important;
  }
}

@media (max-width:374.98px){
  body.mugr-market-site .mugr-header-actions .mugr-lang-btn{
    height:30px!important;
    min-height:30px!important;
    padding-top:1px!important;
    padding-bottom:1px!important;
    padding-left:6px!important;
    padding-right:6px!important;
  }
}


/* =========================================================
   R29 — Mobile header polish
   1) Move logo slightly away from left edge
   2) TH / EN use text-only compact pills on mobile
   ========================================================= */
@media (max-width:767.98px){
  body.mugr-market-site .mugr-main-header-inner{
    padding-left:12px!important;
    padding-right:6px!important;
    box-sizing:border-box!important;
  }

  body.mugr-market-site .mugr-brand{
    margin-left:0!important;
  }

  /* Mobile language switch: text only, compact height */
  body.mugr-market-site .mugr-header-actions .mugr-lang-btn{
    min-width:48px!important;
    width:auto!important;
    height:30px!important;
    min-height:30px!important;
    padding:0 9px!important;
    line-height:30px!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    gap:0!important;
    font-size:14px!important;
    font-weight:700!important;
    white-space:nowrap!important;
  }

  /* Hide flag only on mobile; TH / EN text remains */
  body.mugr-market-site .mugr-header-actions .mugr-lang-flag,
  body.mugr-market-site .mugr-header-actions .mugr-lang-btn img{
    display:none!important;
  }

  body.mugr-market-site .mugr-header-actions{
    justify-content:flex-end!important;
    padding-right:2px!important;
    gap:5px!important;
  }
}

@media (max-width:374.98px){
  body.mugr-market-site .mugr-main-header-inner{
    padding-left:10px!important;
    padding-right:4px!important;
  }

  body.mugr-market-site .mugr-header-actions .mugr-lang-btn{
    min-width:44px!important;
    height:28px!important;
    min-height:28px!important;
    padding:0 7px!important;
    line-height:28px!important;
    font-size:13px!important;
  }

  body.mugr-market-site .mugr-header-actions{
    gap:4px!important;
  }
}


/* =========================================================
   R30 — Mobile language buttons: restore flags, keep slim
   ========================================================= */
@media (max-width:767.98px){
  /* Restore flags that R29 hid */
  body.mugr-market-site .mugr-header-actions .mugr-lang-flag,
  body.mugr-market-site .mugr-header-actions .mugr-lang-btn img{
    display:inline-block!important;
  }

  body.mugr-market-site .mugr-header-actions .mugr-lang-btn{
    min-width:58px!important;
    width:auto!important;
    height:30px!important;
    min-height:30px!important;
    padding:1px 7px!important;
    line-height:1!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    gap:5px!important;
    font-size:14px!important;
    font-weight:700!important;
    white-space:nowrap!important;
  }

  body.mugr-market-site .mugr-lang-flag,
  body.mugr-market-site .mugr-header-actions .mugr-lang-btn img{
    width:19px!important;
    min-width:19px!important;
    height:auto!important;
    max-height:14px!important;
    object-fit:contain!important;
    flex:0 0 19px!important;
  }

  body.mugr-market-site .mugr-header-actions{
    gap:5px!important;
  }
}

@media (max-width:374.98px){
  body.mugr-market-site .mugr-header-actions .mugr-lang-btn{
    min-width:54px!important;
    height:28px!important;
    min-height:28px!important;
    padding:1px 6px!important;
    gap:4px!important;
    font-size:13px!important;
  }

  body.mugr-market-site .mugr-lang-flag,
  body.mugr-market-site .mugr-header-actions .mugr-lang-btn img{
    width:18px!important;
    min-width:18px!important;
    max-height:13px!important;
    flex-basis:18px!important;
  }
}


/* =========================================================
   R31 — Mobile flag aspect-ratio fix
   Keep slim TH/EN pills but restore the original flag proportions.
   ========================================================= */
@media (max-width:767.98px){
  body.mugr-market-site .mugr-header-actions .mugr-lang-btn{
    height:30px!important;
    min-height:30px!important;
    padding:1px 7px!important;
    gap:5px!important;
    line-height:1!important;
  }

  /* Restore flag image rendering; do not force flex-basis / max-height. */
  body.mugr-market-site .mugr-header-actions .mugr-lang-flag,
  body.mugr-market-site .mugr-header-actions .mugr-lang-btn img{
    display:block!important;
    width:24px!important;
    min-width:24px!important;
    height:auto!important;
    max-height:none!important;
    object-fit:contain!important;
    flex:none!important;
    aspect-ratio:auto!important;
  }
}

@media (max-width:374.98px){
  body.mugr-market-site .mugr-header-actions .mugr-lang-btn{
    height:28px!important;
    min-height:28px!important;
    padding:1px 6px!important;
    gap:4px!important;
  }

  body.mugr-market-site .mugr-header-actions .mugr-lang-flag,
  body.mugr-market-site .mugr-header-actions .mugr-lang-btn img{
    width:22px!important;
    min-width:22px!important;
    height:auto!important;
    max-height:none!important;
    flex:none!important;
  }
}


/* =========================================================
   R32 — FIX REAL FLAG MARKUP
   Flags are SPAN elements, not IMG files.
   Thai flag = CSS gradient (.mugr-flag-th)
   English flag = emoji/text (.mugr-flag-en)
   R30/R31 height:auto collapsed the span into a horizontal line.
   ========================================================= */
@media (max-width:767.98px){
  body.mugr-market-site .mugr-header-actions .mugr-lang-flag{
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    width:24px!important;
    min-width:24px!important;
    height:16px!important;
    min-height:16px!important;
    max-height:16px!important;
    flex:0 0 24px!important;
    overflow:hidden!important;
    border-radius:1px!important;
    object-fit:initial!important;
    aspect-ratio:auto!important;
  }

  /* Thai flag is generated entirely by CSS. */
  body.mugr-market-site .mugr-header-actions .mugr-flag-th{
    position:relative!important;
    background:
      linear-gradient(
        to bottom,
        #d91e36 0 20%,
        #ffffff 20% 33%,
        #24378b 33% 67%,
        #ffffff 67% 80%,
        #d91e36 80% 100%
      )!important;
    box-shadow:0 0 0 1px rgba(0,0,0,.08)!important;
  }

  /* English flag is the existing emoji/text glyph. */
  body.mugr-market-site .mugr-header-actions .mugr-flag-en{
    width:24px!important;
    min-width:24px!important;
    height:16px!important;
    min-height:16px!important;
    max-height:16px!important;
    flex:0 0 24px!important;
    overflow:visible!important;
    background:transparent!important;
    box-shadow:none!important;
    font-size:21px!important;
    line-height:16px!important;
    white-space:nowrap!important;
  }

  /* Do not globally resize arbitrary images inside language buttons. */
  body.mugr-market-site .mugr-header-actions .mugr-lang-btn img{
    width:auto!important;
    min-width:0!important;
    height:auto!important;
    max-height:none!important;
    flex:none!important;
  }
}

@media (max-width:374.98px){
  body.mugr-market-site .mugr-header-actions .mugr-lang-flag{
    width:22px!important;
    min-width:22px!important;
    height:15px!important;
    min-height:15px!important;
    max-height:15px!important;
    flex-basis:22px!important;
  }

  body.mugr-market-site .mugr-header-actions .mugr-flag-en{
    width:22px!important;
    min-width:22px!important;
    height:15px!important;
    min-height:15px!important;
    max-height:15px!important;
    flex-basis:22px!important;
    font-size:19px!important;
    line-height:15px!important;
  }
}

/* =========================================================
   R33 — MOBILE LANGUAGE FLAG FINAL FIX
   Restore English flag from local SVG and reduce both flags' height.
   ========================================================= */
@media (max-width:767.98px){
  body.mugr-market-site .mugr-header-actions .mugr-lang-flag{
    width:21px!important;
    min-width:21px!important;
    height:14px!important;
    min-height:14px!important;
    max-height:14px!important;
    flex:0 0 21px!important;
    background-position:center!important;
    background-repeat:no-repeat!important;
    background-size:100% 100%!important;
  }

  body.mugr-market-site .mugr-header-actions .mugr-flag-th{
    background-image:url('../images/flag-th.svg')!important;
  }

  body.mugr-market-site .mugr-header-actions .mugr-flag-en{
    width:21px!important;
    min-width:21px!important;
    height:14px!important;
    min-height:14px!important;
    max-height:14px!important;
    flex:0 0 21px!important;
    overflow:hidden!important;
    background-color:transparent!important;
    background-image:url('../images/flag-gb.svg')!important;
    background-position:center!important;
    background-repeat:no-repeat!important;
    background-size:100% 100%!important;
    box-shadow:0 0 0 1px rgba(0,0,0,.08)!important;
    font-size:0!important;
    line-height:0!important;
  }
}

@media (max-width:374.98px){
  body.mugr-market-site .mugr-header-actions .mugr-lang-flag,
  body.mugr-market-site .mugr-header-actions .mugr-flag-en{
    width:20px!important;
    min-width:20px!important;
    height:13px!important;
    min-height:13px!important;
    max-height:13px!important;
    flex:0 0 20px!important;
  }
}


/* =========================================================
   R38 — Admission Smart Bar
   Replaces duplicate organization text in the top utility strip.
   ========================================================= */
.mugr-admission-smartbar{
  display:flex!important;
  align-items:center;
  gap:9px;
  min-width:0;
  white-space:nowrap;
}
.mugr-smartbar-greeting{
  display:inline-flex;
  align-items:center;
  gap:7px;
  font-weight:800;
}
.mugr-smartbar-greeting i{
  color:#ffd34f;
  font-size:15px;
}
.mugr-smartbar-separator{
  width:1px;
  height:16px;
  background:rgba(255,255,255,.28);
  flex:0 0 1px;
}
.mugr-smartbar-date{
  color:rgba(255,255,255,.86);
  font-weight:650;
}
.mugr-smartbar-admission{
  display:inline-flex;
  align-items:center;
  gap:6px;
  color:#dce9f7!important;
  text-decoration:none!important;
  font-weight:750!important;
  overflow:hidden;
  text-overflow:ellipsis;
  max-width:430px;
}
.mugr-smartbar-admission i{
  color:#a9bfd7!important;
  font-size:12px;
}
.mugr-smartbar-admission.is-live i{
  color:#55d39a!important;
}
.mugr-smartbar-admission.is-live{
  color:#eef8f3!important;
}
.mugr-smartbar-admission:hover{
  color:#fff!important;
  text-decoration:underline!important;
}
html[data-mugr-theme="dark"] body.mugr-market-site .mugr-smartbar-date{
  color:#cdd9e7!important;
}
html[data-mugr-theme="dark"] body.mugr-market-site .mugr-smartbar-separator{
  background:rgba(255,255,255,.2)!important;
}
@media(max-width:1180px){
  .mugr-smartbar-date{display:none}
  .mugr-smartbar-admission{max-width:320px}
}
@media(max-width:900px){
  .mugr-admission-smartbar{display:none!important}
}


/* =========================================================
   R44 — Smart Bar compact single-line layout
   greeting | date | bell
   ========================================================= */
body.mugr-market-site .mugr-utility-left.mugr-admission-smartbar{
  display:flex!important;
  align-items:center!important;
  flex-wrap:nowrap!important;
  gap:8px!important;
  min-width:0!important;
  white-space:nowrap!important;
  line-height:1!important;
  height:100%!important;
}

body.mugr-market-site .mugr-utility-left.mugr-admission-smartbar > *{
  flex:0 0 auto!important;
  line-height:1!important;
  white-space:nowrap!important;
}

body.mugr-market-site .mugr-smartbar-greeting{
  display:inline-flex!important;
  align-items:center!important;
  gap:5px!important;
  width:auto!important;
  height:auto!important;
  min-width:0!important;
  background:transparent!important;
}

body.mugr-market-site .mugr-smartbar-greeting strong,
body.mugr-market-site .mugr-smartbar-date{
  display:inline!important;
  width:auto!important;
  height:auto!important;
  min-width:0!important;
  margin:0!important;
  padding:0!important;
  line-height:1!important;
  white-space:nowrap!important;
}

body.mugr-market-site .mugr-smartbar-separator,
body.mugr-market-site .mugr-smartbar-notify-separator{
  display:block!important;
  width:1px!important;
  min-width:1px!important;
  height:15px!important;
  flex:0 0 1px!important;
  margin:0 2px!important;
  background:rgba(255,255,255,.28)!important;
}

body.mugr-market-site .mugr-smartbar-notify{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:28px!important;
  min-width:28px!important;
  height:28px!important;
  min-height:28px!important;
  padding:0!important;
  margin:0!important;
  border:0!important;
  border-radius:50%!important;
  background:transparent!important;
  color:#fff!important;
  position:relative!important;
  line-height:1!important;
}

body.mugr-market-site .mugr-smartbar-notify > span{
  display:none!important;
}

body.mugr-market-site .mugr-smartbar-notify i{
  font-size:14px!important;
  line-height:1!important;
}

body.mugr-market-site .mugr-smartbar-notify b{
  position:absolute!important;
  top:-4px!important;
  right:-5px!important;
  min-width:16px!important;
  height:16px!important;
  padding:0 3px!important;
  border-radius:999px!important;
  display:grid!important;
  place-items:center!important;
  background:#ffd83d!important;
  color:#111827!important;
  font-size:9px!important;
  line-height:1!important;
  box-shadow:0 0 0 2px rgba(10,25,45,.6)!important;
}

html[data-mugr-theme="dark"] body.mugr-market-site .mugr-smartbar-separator,
html[data-mugr-theme="dark"] body.mugr-market-site .mugr-smartbar-notify-separator{
  background:rgba(255,255,255,.20)!important;
}

@media(max-width:1100px){
  body.mugr-market-site .mugr-smartbar-date{
    display:inline!important;
  }
}

@media(max-width:900px){
  body.mugr-market-site .mugr-admission-smartbar{
    display:none!important;
  }
}


/* =========================================================
   R45 — Smart Bar cleanup + global Notification demo
   ========================================================= */

/* 1) Date must be plain text; no legacy span highlight/background. */
body.mugr-market-site .mugr-utility-left.mugr-admission-smartbar .mugr-smartbar-date{
  background:transparent!important;
  box-shadow:none!important;
  border:0!important;
  outline:0!important;
  text-decoration:none!important;
}

/* 2) The old green admission-status circle/link must not return. */
body.mugr-market-site .mugr-smartbar-admission{
  display:none!important;
}

/* Hide empty notification badge. R44's !important display otherwise beats [hidden]. */
body.mugr-market-site .mugr-smartbar-notify b[hidden]{
  display:none!important;
}

/* Bell is a clear circular control, without the unrelated green status circle. */
body.mugr-market-site .mugr-smartbar-notify{
  background:rgba(255,255,255,.10)!important;
  border:1px solid rgba(255,255,255,.24)!important;
}
body.mugr-market-site .mugr-smartbar-notify:hover{
  background:rgba(255,255,255,.18)!important;
  border-color:rgba(255,255,255,.40)!important;
}

/* DEMO information card */
.mugrNotify__demo{
  margin:0 0 12px!important;
  padding:11px 13px!important;
  border:1px solid #efd36f!important;
  border-radius:11px!important;
  background:#fff8dc!important;
  color:#6a5200!important;
}
.mugrNotify__demo strong{
  display:block!important;
  margin-bottom:3px!important;
  color:#6a4f00!important;
}
.mugrNotify__demo span{
  display:block!important;
  font-size:13px!important;
  line-height:1.45!important;
}

/* Test-now button */
.mugrNotify__test{
  background:#eef5ff!important;
  border:1px solid #a9c7e8!important;
  color:#24548a!important;
}

/* Footer can hold three actions comfortably. */
.mugrNotify__footer{
  flex-wrap:wrap!important;
}

html[data-mugr-theme="dark"] .mugrNotify__demo{
  background:#493b12!important;
  border-color:#816c25!important;
  color:#ffeaa4!important;
}
html[data-mugr-theme="dark"] .mugrNotify__demo strong{
  color:#fff0ad!important;
}
html[data-mugr-theme="dark"] .mugrNotify__test{
  background:#1b3049!important;
  border-color:#466b94!important;
  color:#e7f2ff!important;
}

@media(max-width:640px){
  .mugrNotify__footer{
    grid-template-columns:1fr!important;
  }
}


/* =========================================================
   R47 — Real notification data + larger typography + due state
   ========================================================= */

/* Modal typography: larger and easier to scan */
.mugrNotify__header h2{
  font-size:30px!important;
}
.mugrNotify__intro{
  font-size:20px!important;
  line-height:1.55!important;
}
.mugrNotify__toolbar label{
  font-size:18px!important;
}
.mugrNotify__toolbar select,
.mugrNotify__toolbar button{
  font-size:17px!important;
}
.mugrNotify__event strong{
  font-size:20px!important;
  line-height:1.35!important;
}
.mugrNotify__event span{
  font-size:16px!important;
}
.mugrNotify__event time{
  font-size:20px!important;
}
.mugrNotify__footer button{
  font-size:17px!important;
}
.mugrNotify__message{
  font-size:16px!important;
}

/* When one or more reminders become due, bell turns yellow and shows unread count. */
body.mugr-market-site .mugr-smartbar-notify.is-due{
  background:#ffd83d!important;
  border-color:#e3ad00!important;
  color:#111827!important;
  box-shadow:0 0 0 2px rgba(255,216,61,.18)!important;
}
body.mugr-market-site .mugr-smartbar-notify.is-due i{
  color:#111827!important;
}
body.mugr-market-site .mugr-smartbar-notify.is-due b{
  background:#d83b36!important;
  color:#fff!important;
  box-shadow:0 0 0 2px #ffd83d!important;
}

/* Empty state for pages without a real program schedule. */
.mugrNotify__empty{
  padding:22px 18px!important;
  border:1px dashed #c9d6e4!important;
  border-radius:12px!important;
  background:#fff!important;
  color:#5c7086!important;
  font-size:19px!important;
  line-height:1.55!important;
  text-align:center!important;
}
html[data-mugr-theme="dark"] .mugrNotify__empty{
  background:#152238!important;
  color:#c6d2df!important;
  border-color:#41566f!important;
}

@media(max-width:640px){
  .mugrNotify__header h2{font-size:26px!important}
  .mugrNotify__intro{font-size:18px!important}
  .mugrNotify__event strong{font-size:18px!important}
  .mugrNotify__event time{font-size:18px!important}
  .mugrNotify__toolbar label{font-size:17px!important}
}


/* =========================================================
   R48 — Notification typography tuning from approved screenshot
   ========================================================= */

/* Modal title: 2rem */
.mugrNotify__header h2{
  font-size:2rem!important;
  line-height:1.15!important;
}

/* Schedule item title: 25px */
.mugrNotify__event strong{
  font-size:25px!important;
  line-height:1.25!important;
}

/* Round label: 20px */
.mugrNotify__event span{
  font-size:20px!important;
  line-height:1.25!important;
}

/* Date at right: 25px */
.mugrNotify__event time{
  font-size:25px!important;
  line-height:1.2!important;
}

/* Bottom action buttons: compact typography, approx. 1.28rem */
.mugrNotify__footer button{
  font-size:1.28rem!important;
  line-height:1.1!important;
}

/* Keep checkbox aligned with the larger text block */
.mugrNotify__event{
  grid-template-columns:28px minmax(0,1fr) auto!important;
  align-items:center!important;
  padding:14px 16px!important;
  column-gap:12px!important;
}

/* Mobile: retain requested hierarchy but prevent overflow */
@media(max-width:640px){
  .mugrNotify__header h2{
    font-size:1.75rem!important;
  }
  .mugrNotify__event strong{
    font-size:21px!important;
  }
  .mugrNotify__event span{
    font-size:18px!important;
  }
  .mugrNotify__event time{
    font-size:21px!important;
  }
  .mugrNotify__footer button{
    font-size:1.05rem!important;
  }
}


/* =========================================================
   R68 — Thai labels + refined Dark Mode emphasis
   ========================================================= */

/* Thai labels should not look like tiny English eyebrow text. */
html[lang="th"] body.mugr-market-site .mugr-hero-year-card span,
html[lang="th"] body.mugr-market-site .mugr-finder-header small,
html[lang="th"] body.mugr-market-site .mugr-result-context > small{
  letter-spacing:0!important;
}

/* Day mode */
html:not([data-mugr-theme="dark"]) body.mugr-market-site .mugr-hero-year-card{
  background:#f7fbff!important;
  border-color:#c9dbee!important;
  color:#244a70!important;
  box-shadow:none!important;
}
html:not([data-mugr-theme="dark"]) body.mugr-market-site .mugr-hero-year-card span{
  color:#55708d!important;
}
html:not([data-mugr-theme="dark"]) body.mugr-market-site .mugr-hero-year-card strong{
  color:#1168c7!important;
}
html:not([data-mugr-theme="dark"]) body.mugr-market-site .mugr-hero-year-card small{
  color:#445f7c!important;
}
html:not([data-mugr-theme="dark"]) body.mugr-market-site .mugr-finder-header small,
html:not([data-mugr-theme="dark"]) body.mugr-market-site .mugr-result-context > small{
  color:#657b92!important;
}

/* Dark mode: use a clearer blue/slate palette rather than pale gray on navy. */
html[data-mugr-theme="dark"] body.mugr-market-site .mugr-hero-year-card{
  background:#0f2540!important;
  border-color:#2f5f8f!important;
  color:#e8f3ff!important;
  box-shadow:inset 0 0 0 1px rgba(94,165,230,.06)!important;
}
html[data-mugr-theme="dark"] body.mugr-market-site .mugr-hero-year-card span{
  color:#8dc7ff!important;
}
html[data-mugr-theme="dark"] body.mugr-market-site .mugr-hero-year-card strong{
  color:#65b4ff!important;
}
html[data-mugr-theme="dark"] body.mugr-market-site .mugr-hero-year-card small{
  color:#d0deed!important;
}

html[data-mugr-theme="dark"] body.mugr-market-site .mugr-finder-header small,
html[data-mugr-theme="dark"] body.mugr-market-site .mugr-result-context > small{
  color:#8fc7ff!important;
}

html[data-mugr-theme="dark"] body.mugr-market-site .mugr-finder-card{
  background:#101d2f!important;
  border-color:#30465f!important;
}

html[data-mugr-theme="dark"] body.mugr-market-site .mugr-result-section{
  background:#0f1b2b!important;
  border-color:#30465f!important;
}

html[data-mugr-theme="dark"] body.mugr-market-site .mugr-degree-context-pill{
  background:#14263b!important;
  border-color:#3b5874!important;
  border-left-color:#d8b04a!important;
  color:#d8e7f6!important;
}

html[data-mugr-theme="dark"] body.mugr-market-site .mugr-degree-context-pill i{
  color:#f0c95c!important;
}

html[data-mugr-theme="dark"] body.mugr-market-site .mugr-result-level-badge{
  background:#14263b!important;
  border-color:#3a526b!important;
  box-shadow:none!important;
}

html[data-mugr-theme="dark"] body.mugr-market-site .mugr-result-level-badge span{
  background:#25324a!important;
  color:#d4deea!important;
}

html[data-mugr-theme="dark"] body.mugr-market-site .mugr-result-level-badge strong{
  background:#173d67!important;
  color:#9ed0ff!important;
}


/* =========================================================
   R70 — Faculty list icon: Dark Mode Slate
   Exact component selector; Day Mode unchanged.
   ========================================================= */
html[data-mugr-theme="dark"] body.mugr-market-site .mugr-faculty-icon{
  background:#18314d!important;
  border:1px solid #355575!important;
  color:#79bfff!important;
  box-shadow:inset 0 0 0 1px rgba(121,191,255,.05)!important;
}

html[data-mugr-theme="dark"] body.mugr-market-site .mugr-faculty-icon i,
html[data-mugr-theme="dark"] body.mugr-market-site .mugr-faculty-icon .fa{
  color:#79bfff!important;
}

/* Hover/expanded row stays in the same slate family. */
html[data-mugr-theme="dark"] body.mugr-market-site .mugr-faculty-button:hover .mugr-faculty-icon,
html[data-mugr-theme="dark"] body.mugr-market-site .mugr-faculty-button.active .mugr-faculty-icon{
  background:#1d3b5d!important;
  border-color:#47729a!important;
  color:#9bd0ff!important;
}

/* =========================================================
   R81 — Sticky Quick Finder visual state
   Change surface only while the finder is actually stuck.
   Day: soft blue/slate. Dark: deep navy/black slate.
   ========================================================= */
body.mugr-market-site .mugr-search-sticky.is-stuck .mugr-search-sticky-inner{
  background:#f2f6fa!important;
  border-color:#d5e1ec!important;
  border-top-color:#c7d6e5!important;
  box-shadow:0 10px 24px rgba(31,55,82,.16),0 2px 0 rgba(80,112,145,.08)!important;
  backdrop-filter:blur(12px)!important;
  -webkit-backdrop-filter:blur(12px)!important;
}
html[data-mugr-theme="dark"] body.mugr-market-site .mugr-search-sticky.is-stuck .mugr-search-sticky-inner{
  background:#07111f!important;
  border-color:#263b52!important;
  border-top-color:#314b67!important;
  box-shadow:0 12px 28px rgba(0,0,0,.42),0 2px 0 rgba(79,125,170,.18)!important;
}
@media(max-width:640px){
  body.mugr-market-site .mugr-search-sticky.is-stuck .mugr-search-sticky-inner{
    box-shadow:0 8px 20px rgba(31,55,82,.17)!important;
  }
  html[data-mugr-theme="dark"] body.mugr-market-site .mugr-search-sticky.is-stuck .mugr-search-sticky-inner{
    box-shadow:0 9px 22px rgba(0,0,0,.44)!important;
  }
}

/* =========================================================
   R91 — Quick Finder: first filter = degree level
   + emphasized blue search container
   ========================================================= */
body.mugr-market-site #mugrQuickFinder .mugr-search-sticky-inner{
  background:#fff;
  border:2px solid #168BDB;
  border-radius:14px;
  box-shadow:0 10px 28px rgba(22,139,219,.12),0 3px 10px rgba(22,139,219,.07);
}
body.mugr-market-site #mugrQuickFinder .mugr-quick-filter-row{
  grid-template-columns:minmax(210px,.72fr) minmax(300px,1.35fr) minmax(250px,.92fr) 132px auto;
}
body.mugr-market-site #mugrQuickFinder .mugr-quick-level,
body.mugr-market-site #mugrQuickFinder .mugr-quick-level .mugr-filter-control,
body.mugr-market-site #mugrQuickFinder .mugr-quick-level .mugr-custom-select-wrap{
  width:100%;
  min-width:0;
}
body.mugr-market-site #mugrQuickFinder .mugr-search-box,
body.mugr-market-site #mugrQuickFinder .mugr-filter-control,
body.mugr-market-site #mugrQuickFinder .mugr-custom-select-button{
  border-color:#d7e0e9;
}
body.mugr-market-site #mugrQuickFinder .mugr-search-box:focus-within,
body.mugr-market-site #mugrQuickFinder .mugr-filter-control:focus-within{
  border-color:#76aee0;
  box-shadow:0 0 0 3px rgba(22,139,219,.09);
}
@media(max-width:1180px){
  body.mugr-market-site #mugrQuickFinder .mugr-quick-filter-row{
    grid-template-columns:minmax(190px,.72fr) minmax(250px,1.25fr) minmax(220px,.9fr) 120px auto;
  }
}
@media(max-width:900px){
  body.mugr-market-site #mugrQuickFinder .mugr-quick-filter-row{
    grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  }
}
@media(max-width:640px){
  body.mugr-market-site #mugrQuickFinder .mugr-search-sticky-inner{
    border-radius:12px;
  }
  body.mugr-market-site #mugrQuickFinder .mugr-quick-filter-row{
    grid-template-columns:1fr;
  }
}

html[data-mugr-theme="dark"] body.mugr-market-site #mugrQuickFinder .mugr-search-sticky-inner{
  background:#102033;
  border-color:#2f91d3;
  box-shadow:0 8px 24px rgba(0,0,0,.22);
}
