/* MEDUCAS additions (cookie consent, footer cookie settings, catalogue photos, maps and campus pages).
   Kept apart from bundle.min.css so these features can be changed without rebuilding the bundle. */

/* ---------- Footer legal links ---------- */
#footer .copyright ul.footer-legal{flex-wrap:wrap;gap:8px 24px;margin:0;padding:0}
#footer .copyright .footer-cookie-settings{background:none;border:0;padding:0;color:#fff;text-decoration:underline;font:inherit;font-weight:300;cursor:pointer}
#footer .copyright :is(a,button):focus-visible{outline:2px solid #5ae4a7;outline-offset:3px}

/* ---------- Cookie consent ---------- */
.cookie-consent{position:fixed;left:16px;right:16px;bottom:16px;z-index:2000;display:flex;justify-content:center;pointer-events:none}
.cookie-consent[hidden]{display:none}
.cookie-consent-inner{pointer-events:auto;max-width:960px;width:100%;background:#fff;color:#20232c;border-radius:10px;box-shadow:0 10px 40px rgba(3,3,31,.28);padding:22px 24px;display:flex;gap:24px;align-items:flex-end;font-size:14px;line-height:1.55}
.cookie-consent-copy{flex:1 1 auto}
.cookie-consent h2{font-size:17px;font-weight:600;margin:0 0 6px;color:#03031f}
.cookie-consent p{margin:0}
.cookie-consent a{color:#1515aa;text-decoration:underline}
.cookie-consent-status{margin-top:8px!important;font-weight:500}
.cookie-consent-actions{display:flex;gap:12px;flex:0 0 auto}
/* Accept and Reject deliberately share the same size, colour and position weight. */
.cookie-consent-button{min-width:130px;padding:11px 18px;border-radius:4px;border:1px solid #1515aa;background:#1515aa;color:#fff;font:inherit;font-weight:600;cursor:pointer}
.cookie-consent-button:hover{background:#08086f;border-color:#08086f}
.cookie-consent-button:focus-visible,.cookie-consent a:focus-visible{outline:3px solid #5b93ff;outline-offset:3px}
@media (max-width:47.95em){
    .cookie-consent{left:8px;right:8px;bottom:8px}
    .cookie-consent-inner{flex-direction:column;align-items:stretch;gap:16px;padding:18px;max-height:calc(100vh - 16px);overflow-y:auto}
    .cookie-consent-actions{width:100%}
    .cookie-consent-button{flex:1 1 0;min-width:0}
}
@media print{.cookie-consent{display:none!important}}

/* ---------- Programme Finder page ---------- */
.programme-finder-page{padding:130px 0 48px;background:#fff}
@media (max-width:47.95em){.programme-finder-page{padding:110px 0 32px}.programme-finder-page .container{padding-left:8px;padding-right:8px}}

/* ---------- Catalogue photos: 4:3 photo or MEDUCAS placeholder box ---------- */
.school-search .catalogue-cover{height:auto;aspect-ratio:4/3}
.meducas-photo-placeholder{position:relative;display:flex;flex-direction:column;justify-content:flex-end;aspect-ratio:4/3;width:100%;background:#14284B;padding:16px;border-radius:4px;overflow:hidden;color:#fff;font-family:inherit}
.meducas-photo-placeholder .mpp-brand{position:absolute;top:13px;left:16px;font-size:11px;letter-spacing:.12em;color:#D4A437;font-weight:600}
.meducas-photo-placeholder .mpp-rule{display:block;width:28px;height:3px;background:#D4A437;margin-bottom:9px}
.meducas-photo-placeholder{container-type:inline-size}
.meducas-photo-placeholder .mpp-city{color:#fff;font-size:18px;font-size:clamp(13px,9.5cqi,40px);font-weight:600;line-height:1.1;text-transform:uppercase;letter-spacing:.02em;overflow-wrap:break-word;hyphens:auto}
.meducas-photo-placeholder .mpp-country{color:#C9D3DF;font-size:13px;margin-top:4px}
.programme-hero-photo .meducas-photo-placeholder{border-radius:5px;padding:24px}
.programme-hero-photo .meducas-photo-placeholder .mpp-brand{top:20px;left:24px;font-size:13px}
.programme-hero-photo .meducas-photo-placeholder .mpp-rule{width:40px;height:4px;margin-bottom:14px}
.programme-hero-photo .meducas-photo-placeholder .mpp-country{font-size:16px}

/* ---------- Map links and campus page ---------- */
.school-search .catalogue-map-link{color:#1515aa;font-weight:500;white-space:nowrap}
.school-search .programme-campus-links{display:flex;flex-wrap:wrap;gap:6px 18px;margin:6px 0 0}
.school-search .programme-campus-links a{color:#1515aa;font-weight:500;font-size:14px}
.campus-page .campus-address{font-style:normal;font-size:15px;line-height:1.5;margin:0 0 6px;color:#3b3f4a}
.campus-page .campus-actions{display:flex;flex-wrap:wrap;align-items:center;gap:12px 18px}
.school-search .campus-secondary-button{background:#fff;color:#1515aa!important}
.school-search .campus-secondary-button:hover{background:#eef0fb}
.campus-page .campus-map-frame{position:relative;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:10px;min-height:120px;padding:22px;border:1px dashed #c8cdd8;border-radius:5px;background:#f6f7fa;max-width:720px}
.campus-page .campus-map-frame.is-loaded{padding:0;border:0;background:none;display:block}
.campus-page .campus-map-frame iframe{display:block;width:100%;height:320px;border:0;border-radius:5px}
.campus-page .campus-gallery-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:12px}
.campus-page .campus-gallery-grid img{display:block;width:100%;height:auto;aspect-ratio:4/3;object-fit:cover;border-radius:4px}
.campus-page .campus-programme-list{list-style:none;margin:0;padding:0;border-top:1px solid #dfe2e7}
.campus-page .campus-programme-list li{display:flex;flex-wrap:wrap;justify-content:space-between;gap:6px 20px;padding:14px 0;border-bottom:1px solid #dfe2e7}
.campus-page .campus-programme-title{color:#20232c;font-weight:600;text-decoration:none}
.campus-page .campus-programme-title:hover{color:#1515aa;text-decoration:underline}
.campus-page .campus-programme-meta{display:flex;flex-wrap:wrap;gap:4px 14px;color:#5b6070;font-size:14px}
@media (max-width:650px){.campus-page .campus-map-frame iframe{height:260px}}

/* ---------- Tables in CMS legal pages (Privacy, Terms, Cookie Policy): <div class="legal-table"><table>… ---------- */
.legal-table{overflow-x:auto;margin:8px 0 22px;-webkit-overflow-scrolling:touch}
.legal-table table{width:100%;border-collapse:collapse;font-size:15px;line-height:1.5}
.legal-table th,.legal-table td{border:1px solid #dfe2e7;padding:10px 12px;text-align:left;vertical-align:top}
.legal-table thead th{background:#f3f4f8;font-weight:600}
.legal-table tbody th{font-weight:600;min-width:150px}
@media (max-width:47.95em){.legal-table table{min-width:540px;font-size:14px}}

/* Summer schools: Programme Finder strip/embed, early-bird badge, card brochure link, programme video and gallery */
.catalogue-finder-strip{margin:-8px 0 24px}
.catalogue-finder-strip a{font-weight:600;color:#1515aa;text-decoration:none;border-bottom:1px solid currentColor}
.catalogue-finder{margin-top:48px;scroll-margin-top:90px}
.early-bird-badge{display:inline-block;margin:0 0 6px 8px;padding:2px 9px;border-radius:999px;background:#e3f6ee;color:#0b6b46;border:1px solid #9ad8bd;font-size:12px;font-weight:600;line-height:1.5;vertical-align:middle}
.early-bird-box{margin:10px 0 14px}
.early-bird-box .early-bird-badge{margin-left:0}
.early-bird-box p{margin:6px 0 0;font-size:14px}
.early-bird-filter{display:flex;align-items:center;gap:8px;margin:12px 0}
.catalogue-card-links{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.catalogue-brochure-link{display:inline-flex;align-items:center;font-size:12px;font-weight:600;color:#1515aa;padding:10px 13px;border:1px solid #c8c8e5;border-radius:4px;white-space:nowrap;text-decoration:none}
.catalogue-brochure-link:hover{background:#1515aa;color:#fff;border-color:#1515aa}
.programme-video-box{position:relative;aspect-ratio:16/9;max-width:720px;background:#10124a;border-radius:6px;overflow:hidden}
.programme-video-box iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.programme-video-play{position:absolute;inset:0;width:100%;border:0;background:transparent;color:#fff;font:inherit;font-size:18px;font-weight:600;cursor:pointer}
.programme-video-play:hover,.programme-video-play:focus-visible{background:rgba(255,255,255,.08)}
.programme-page .campus-gallery-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:12px}
.programme-page .campus-gallery-grid img{display:block;width:100%;height:auto;aspect-ratio:4/3;object-fit:cover;border-radius:4px}
