/* University, country and subject pages (Stage 2). Built on course.css + course2026.css, same colours and fonts. */
.up .main{max-width:1100px}
.up h2.card-title{margin-top:0}
.up .up-hero .course-top{border-bottom:0;margin-bottom:.25rem;padding-bottom:.25rem}
.up .up-sub{margin:4px 0 8px;font:500 14px/1.4 Inter,sans-serif;color:#475569}
.up .up-hero .action-links{margin-top:.75rem}
.up .action-btn.up-primary{background:linear-gradient(135deg,#2563EB,#1E40AF);color:#fff;border-color:transparent}

/* At a glance: label, figure, short note. Four across on wide screens, two on phones. */
.up .up-facts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:0}
.up .up-fact{background:#F8FAFC;border:1px solid #E2E8F0;border-radius:12px;padding:14px 16px;min-width:0;display:flex;flex-direction:column;gap:6px}
.up .up-fact dt{font:600 11px/1.3 Inter,sans-serif;text-transform:uppercase;letter-spacing:.04em;color:#64748B}
.up .up-fact dd{margin:0;font:800 20px/1.2 Inter,sans-serif;color:#1E3A8A;overflow-wrap:anywhere}
.up .up-fact .up-to{font-weight:500;font-size:14px;color:#64748B}
.up .up-note{font:500 12px/1.4 Inter,sans-serif;color:#64748B}
.up .up-lock{display:inline-flex;align-items:center;gap:6px;font:700 14px Inter,sans-serif;color:#1D4ED8;text-decoration:none}
.up .up-summary{margin:16px 0 0;padding:14px 16px;border-left:3px solid #2563EB;background:#EFF6FF;border-radius:0 10px 10px 0;font:400 14px/1.65 Inter,sans-serif;color:#1E293B}
.up .up-summary strong{color:#1E3A8A}

/* Courses by level */
.up .up-level+.up-level{margin-top:22px}
.up .up-level-h{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin:0 0 8px;font:700 15px/1.3 Inter,sans-serif;color:#0F172A}
.up .up-level-h a{font:600 13px Inter,sans-serif;color:#2563EB;text-decoration:none;white-space:nowrap}
.up .up-list{list-style:none;margin:0;padding:0;border:1px solid #E2E8F0;border-radius:12px;overflow:hidden}
.up .up-course{padding:12px 16px;background:#fff}
.up .up-course+.up-course{border-top:1px solid #EEF2F7}
.up .up-cname{display:block;font:600 14px/1.4 Inter,sans-serif;color:#1E3A8A!important;text-decoration:none}
.up .up-cname:hover{text-decoration:underline}
.up .up-cmeta{display:flex;flex-wrap:wrap;gap:6px 16px;margin-top:6px;font:500 12.5px/1.4 Inter,sans-serif;color:#475569}
.up .up-cmeta i{color:#94A3B8;margin-right:3px;font-size:11px}
.up .up-cfee{color:#0F172A;font-weight:700}
.up .up-cfee small{font-weight:500;color:#64748B}
.up .up-tag{font:700 11px/1 Inter,sans-serif;color:#0B7A4B;background:#E8F6EF;border:1px solid #A7DFC4;border-radius:999px;padding:4px 8px}
.up .up-more{margin-top:8px}
.up .up-more summary{cursor:pointer;display:inline-flex;align-items:center;gap:6px;font:600 13px Inter,sans-serif;color:#2563EB;padding:6px 0;list-style:none}
.up .up-more summary::-webkit-details-marker{display:none}
.up .up-more summary::before{content:"+";display:inline-flex;align-items:center;justify-content:center;width:18px;height:18px;border-radius:50%;border:1.5px solid #2563EB;font:700 12px/1 Inter,sans-serif}
.up .up-more[open] summary::before{content:"–"}
.up .up-more .up-list,.up .up-more .up-rows{margin-top:8px}

/* Subjects and intakes: name on the left, count on the right */
.up .up-rows{list-style:none;margin:0;padding:0}
.up .up-rows li{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:9px 2px;border-bottom:1px solid #EEF2F7;font:500 13.5px/1.4 Inter,sans-serif;color:#334155}
.up .up-rows li:last-child{border-bottom:0}
.up .up-rows a{color:#1E3A8A;text-decoration:none;font-weight:600}
.up .up-rows a:hover{text-decoration:underline}
.up .up-rows li>span:last-child{font-weight:700;color:#0F172A;white-space:nowrap}
.up .up-month{font-weight:600;color:#1E3A8A}

/* Campuses */
.up .up-campuses{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:10px}
.up .up-campuses li{border:1px solid #E2E8F0;border-radius:12px;padding:12px 14px;display:flex;flex-direction:column;gap:3px;font:500 12.5px/1.4 Inter,sans-serif;color:#64748B}
.up .up-campuses strong{font:700 14px/1.3 Inter,sans-serif;color:#0F172A}
.up .up-campuses li>span:last-child{margin-top:4px;color:#1E3A8A;font-weight:600}

/* Link to the coursefind.app guide */
.up .up-guide{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:14px 24px;background:linear-gradient(135deg,#EFF6FF,#F8FAFC);border-color:#DBEAFE}
.up .up-guide h2{margin:0 0 4px;font:700 16px/1.3 Inter,sans-serif;color:#0F172A}
.up .up-guide p{margin:0;font:400 13.5px/1.5 Inter,sans-serif;color:#475569;max-width:560px}
.up .up-guide-btns{display:flex;flex-wrap:wrap;gap:8px}
.up .up-guide-btns .g-btn{height:40px}

/* Questions */
.up .up-faq{display:grid;gap:0}
.up .up-q{padding:14px 0;border-bottom:1px solid #EEF2F7}
.up .up-q:first-child{padding-top:2px}
.up .up-q:last-child{border-bottom:0;padding-bottom:2px}
.up .up-q h3{margin:0 0 6px;font:700 14.5px/1.4 Inter,sans-serif;color:#0F172A}
.up .up-q p{margin:0;font:400 14px/1.65 Inter,sans-serif;color:#334155}
.up .up-source{grid-column:1/-1;margin:2px 4px 8px;font:400 12px/1.6 Inter,sans-serif;color:#64748B}

@media (max-width:900px){
  .up .up-facts{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
}
@media (max-width:768px){
  .up .course-top{padding-top:0!important}
  .up .up-fact{padding:12px}
  .up .up-fact dd{font-size:17px}
  .up .up-course{padding:11px 12px}
  .up .up-level-h{font-size:14px}
  .up .up-guide-btns,.up .up-guide-btns .g-btn{width:100%;justify-content:center}
  .up .up-campuses{grid-template-columns:1fr}
  .up .up-summary{font-size:13.5px;padding:12px 14px}
}
.up .nw{white-space:nowrap}
@media (max-width:420px){.up .up-fact dd{font-size:16px}}

/* Country pages */
.cp .cp-hero{padding:4px 0 2px}
.cp .cp-hero .course-title{margin:0}
.cp .cp-unis{list-style:none;margin:0;padding:0;border:1px solid #E2E8F0;border-radius:12px;overflow:hidden}
.cp .cp-uni+.cp-uni{border-top:1px solid #EEF2F7}
.cp .cp-uni-link{display:grid;grid-template-columns:44px minmax(0,1fr) auto 14px;align-items:center;gap:14px;padding:12px 16px;text-decoration:none;color:inherit;background:#fff}
.cp .cp-uni-link:hover{background:#F8FAFC}
.cp .cp-logo{width:44px;height:44px;border-radius:10px;border:1px solid #E2E8F0;background:#fff;display:flex;align-items:center;justify-content:center;overflow:hidden;color:#94A3B8}
.cp .cp-logo img{width:100%;height:100%;object-fit:contain;padding:4px}
.cp .cp-uni-main{display:flex;flex-direction:column;min-width:0}
.cp .cp-uni-name{font:600 14px/1.35 Inter,sans-serif;color:#1E3A8A}
.cp .cp-uni-meta{font:500 12px/1.4 Inter,sans-serif;color:#64748B;margin-top:2px}
.cp .cp-uni-num{font:500 12.5px Inter,sans-serif;color:#475569;white-space:nowrap}
.cp .cp-uni-num strong{color:#0F172A;font-weight:700}
.cp .cp-uni-fee{font:500 12.5px Inter,sans-serif;color:#475569;white-space:nowrap;min-width:130px;text-align:right}
.cp .cp-uni-fee strong{color:#0F172A;font-weight:700}
.cp .cp-chev{color:#CBD5E1;font-size:12px}
.cp .cp-uni-sub{display:none}
.cp .cp-table-wrap{border:1px solid #E2E8F0;border-radius:12px;overflow:hidden}
.cp .cp-fees{width:100%;border-collapse:collapse;font:500 13.5px/1.4 Inter,sans-serif;color:#334155}
.cp .cp-fees th,.cp .cp-fees td{padding:11px 16px;text-align:right;border-bottom:1px solid #EEF2F7;white-space:nowrap}
.cp .cp-fees thead th{background:#F8FAFC;font:600 11px/1.3 Inter,sans-serif;text-transform:uppercase;letter-spacing:.04em;color:#64748B}
.cp .cp-fees th:first-child,.cp .cp-fees td:first-child{text-align:left}
.cp .cp-fees tbody th{font-weight:600;background:#fff!important;color:#1E3A8A!important;text-transform:none!important;letter-spacing:0!important;font-size:13.5px!important}
.cp .cp-fees thead th{background:#F8FAFC!important;color:#64748B!important}
.cp .cp-fees tbody th a{color:#1E3A8A;text-decoration:none}
.cp .cp-fees tbody tr:last-child th,.cp .cp-fees tbody tr:last-child td{border-bottom:0}
.cp .cp-fees .cp-typ{font-weight:700;color:#0F172A}
@media (max-width:768px){
  .cp .cp-uni-link{grid-template-columns:40px minmax(0,1fr) 12px;gap:12px;padding:11px 12px}
  .cp .cp-logo{width:40px;height:40px}
  .cp .cp-uni-num,.cp .cp-uni-fee{display:none}
  .cp .cp-uni-sub{display:block!important;font:600 12px/1.4 Inter,sans-serif;color:#0F172A;margin-top:3px}
  .cp .cp-fees thead{display:none}
  .cp .cp-fees,.cp .cp-fees tbody,.cp .cp-fees tr{display:block!important;width:100%!important;min-width:0!important}
  .cp .cp-table-wrap{overflow:hidden!important}
  .cp .cp-fees tbody tr{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px 10px;padding:12px 14px;border-bottom:1px solid #EEF2F7}
  .cp .cp-fees tbody tr:last-child{border-bottom:0}
  .cp .cp-fees th,.cp .cp-fees td{display:block!important;padding:0!important;border:0!important;text-align:left!important;white-space:normal!important;min-width:0!important;width:auto!important}
  .cp .cp-fees tbody th{grid-column:1/-1;display:flex!important;justify-content:space-between;font-size:14px}
  .cp .cp-fees td[data-label="Courses"]{display:none!important}
  .cp .cp-fees td::before{content:attr(data-label);display:block;font:600 10.5px/1.4 Inter,sans-serif;text-transform:uppercase;letter-spacing:.04em;color:#64748B}
}

/* Country page, revised 29 Nov: QS badge on each university, intake months without counts */
.cp .cp-facts{grid-template-columns:repeat(3,minmax(0,1fr))}
.cp .cp-facts .cp-wide{grid-column:1/-1}
.cp .cp-ranks{display:flex;align-items:center;gap:8px}
.cp .cp-qs{display:inline-flex;align-items:center;gap:7px;height:34px;padding:0 12px;border:1px solid #F3D9A4;border-radius:10px;background:linear-gradient(135deg,#FFFDF5,#FFF6DC);font:500 12px Inter,sans-serif;color:#475569;white-space:nowrap}
.cp .cp-qs img{height:15px;width:auto;display:block}
.cp .cp-qs strong{font:800 14px Inter,sans-serif;color:#0F172A}
.cp .cp-norank{font:500 12px Inter,sans-serif;color:#94A3B8;white-space:nowrap}
.cp .cp-months{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:8px}
.cp .cp-months li{display:inline-flex;align-items:center;gap:6px;height:36px;padding:0 14px;border:1px solid #E2E8F0;border-radius:999px;background:#fff;font:600 13px Inter,sans-serif;color:#334155}
.cp .cp-months li.top{background:#EFF6FF;border-color:#BFDBFE;color:#1E3A8A}
.cp .cp-months li small{font:600 10.5px Inter,sans-serif;text-transform:uppercase;letter-spacing:.04em;color:#2563EB}
@media (max-width:900px){.cp .cp-facts{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:768px){
  .cp .cp-uni-link{grid-template-columns:40px minmax(0,1fr) auto 12px!important}
  .cp .cp-qs{height:30px;padding:0 9px;gap:5px}
  .cp .cp-qs img{height:12px}
  .cp .cp-qs strong{font-size:13px}
  .cp .cp-norank{display:none}
  .cp .cp-months li{height:34px;padding:0 12px}
}

/* Country facts and locked lists */
.cp .cp-fact-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.cp .cp-fact{border:1px solid #E2E8F0;border-radius:12px;padding:14px 16px;background:#fff}
.cp .cp-fact h3{margin:0 0 6px;font:700 14.5px/1.4 Inter,sans-serif;color:#1E3A8A}
.cp .cp-fact p{margin:0 0 10px;font:400 14px/1.6 Inter,sans-serif;color:#334155}
.cp .cp-fact-src{font:500 11.5px/1.5 Inter,sans-serif;color:#64748B}
.cp .cp-fact-heads{list-style:none;margin:0 0 12px;padding:0;display:flex;flex-wrap:wrap;gap:8px}
.cp .cp-fact-heads li{display:inline-flex;align-items:center;gap:6px;height:32px;padding:0 12px;border:1px solid #E2E8F0;border-radius:999px;background:#F8FAFC;font:600 12.5px Inter,sans-serif;color:#334155}
.cp .cp-fact-heads i{color:#94A3B8;font-size:10px}
.cp .cp-uni-name .type-tag{margin-left:4px;font-size:10.5px;padding:2px 8px}
@media (max-width:768px){.cp .cp-fact-list{grid-template-columns:1fr}}
