/* Adroit Universities. Colours follow Adroit Theme Mode, so light and dark both hold. */
.au {
	--au-bg: var(--adroit-tm-bg, #ffffff);
	--au-surface: var(--adroit-tm-surface, #ffffff);
	--au-soft: #f7f4f4;
	--au-text: var(--adroit-tm-text, #141414);
	--au-muted: var(--adroit-tm-muted, #5f6470);
	--au-border: var(--adroit-tm-border, #ece7e7);
	--au-brand: #830606;
	--au-red: #d40c0c;
	--au-brand-ink: #ffffff;
	--au-brand-soft: #fbefef;
	--au-radius: 18px;
	--au-shadow: 0 1px 2px rgba(20, 20, 20, .04), 0 10px 30px rgba(20, 20, 20, .06);
	--au-shadow-hi: 0 2px 4px rgba(131, 6, 6, .06), 0 22px 44px rgba(131, 6, 6, .14);
	color: var(--au-text);
	max-width: 1140px;
	margin: 0 auto;
	padding: 24px 18px 64px;
	font-family: inherit;
	box-sizing: border-box;
}
html[data-theme="dark"] .au {
	--au-bg: var(--adroit-tm-bg, #0f1217);
	--au-surface: var(--adroit-tm-surface, #171b22);
	--au-text: var(--adroit-tm-text, #e7e9ee);
	--au-muted: var(--adroit-tm-muted, #a4abb8);
	--au-border: var(--adroit-tm-border, #2b313b);
	--au-soft: #1d222a;
	--au-brand: #ef7b7b;
	--au-red: #c62828;
	--au-brand-ink: #1a0b0b;
	--au-brand-soft: #2a1a1c;
	--au-shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px rgba(0, 0, 0, .35);
	--au-shadow-hi: 0 2px 4px rgba(0, 0, 0, .3), 0 22px 44px rgba(0, 0, 0, .45);
}
.au *, .au *::before, .au *::after { box-sizing: border-box; }
.au a { color: inherit; }
.au a, .au a * { text-decoration: none !important; }
.au [hidden] { display: none !important; }
.au-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* The theme's page padding is dropped here, so the page starts close under the header. */
body.au-page .site-main { padding-top: 0 !important; margin-top: 0 !important; }

/* type */
.au-head { margin: 0 0 24px; }
.au-title { font-size: clamp(1.6rem, 3.4vw, 2.3rem); line-height: 1.15; margin: 0 0 8px; font-weight: 700; color: var(--au-text); letter-spacing: -.015em; }
.au-lede { margin: 0; color: var(--au-muted); font-size: 1.05rem; max-width: 640px; line-height: 1.6; }
.au-eyebrow { display: inline-block; margin-bottom: 8px; padding: 5px 12px; border-radius: 999px; background: var(--au-brand-soft); color: var(--au-brand); font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.au-h2 { font-size: 1.3rem; margin: 0; font-weight: 700; color: var(--au-text); letter-spacing: -.01em; }
.au-hub > .au-h2, .au-list .au-h2 { margin: 36px 0 16px; }

/* hero */
.au-hero { position: relative; overflow: hidden; text-align: center; padding: 26px 24px 24px; margin-bottom: 22px; border-radius: 24px; background: radial-gradient(120% 140% at 0% 0%, #fbe9e9 0%, rgba(251, 233, 233, 0) 55%), radial-gradient(120% 140% at 100% 100%, #f6eded 0%, rgba(246, 237, 237, 0) 60%), var(--au-surface); border: 1px solid var(--au-border); }
.au-hero::before, .au-hero::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; }
.au-hero::before { width: 260px; height: 260px; right: -90px; top: -110px; background: rgba(131, 6, 6, .06); }
.au-hero::after { width: 180px; height: 180px; left: -70px; bottom: -90px; background: rgba(212, 12, 12, .05); }
html[data-theme="dark"] .au-hero { background: radial-gradient(120% 140% at 0% 0%, #2a1a1c 0%, rgba(42, 26, 28, 0) 55%), var(--au-surface); }
.au-hero > * { position: relative; z-index: 1; }
.au-hero .au-lede { margin: 0 auto; }

.au-search { display: flex; align-items: center; gap: 10px; max-width: 440px; margin: 16px auto 0; padding: 0 16px; height: 46px; border-radius: 999px; background: var(--au-surface); border: 1px solid var(--au-border); box-shadow: var(--au-shadow); color: var(--au-muted); cursor: text; }
.au-search:focus-within { border-color: var(--au-brand); box-shadow: 0 0 0 4px rgba(131, 6, 6, .1); }
.au-search input { flex: 1; min-width: 0; height: 100%; border: 0 !important; outline: 0; background: transparent !important; color: var(--au-text); font: inherit; font-size: 1rem; padding: 0 !important; box-shadow: none !important; }

/* school hero */
.au-hero--school { display: flex; align-items: center; gap: 30px; text-align: left; padding: 26px 32px; }
.au-hero--school .au-lede { margin: 0; }
.au-hero__plate { flex: 0 0 auto; }
.au-hero__text { min-width: 0; }
.au-hero__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 18px; }
.au-stat { display: inline-flex; align-items: baseline; gap: 6px; padding: 8px 14px; border-radius: 12px; background: var(--au-soft); color: var(--au-muted); font-size: .9rem; }
.au-stat strong { color: var(--au-text); font-size: 1.1rem; }

/* sections */
.au-sec { margin-top: 34px; }
.au-sec__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; margin-bottom: 16px; }
.au-sec__sub { margin: 0; color: var(--au-muted); font-size: .95rem; }
.au-nomatch { text-align: center; color: var(--au-muted); padding: 28px 12px; }

/* buttons */
.au-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--au-border); background: var(--au-surface); color: var(--au-text) !important; font-weight: 600; font-size: .92rem; cursor: pointer; line-height: 1.2; transition: border-color .15s, background .15s, transform .15s; font-family: inherit; }
.au-btn:hover { border-color: var(--au-brand); }
.au-btn--primary { background: var(--au-brand); border-color: var(--au-brand); color: var(--au-brand-ink) !important; }
.au-btn--primary:hover { filter: brightness(1.08); }
.au-btn:disabled { opacity: .6; cursor: default; }
html[data-theme="dark"] .au .au-btn--primary { background-image: linear-gradient(#c62828, #c62828) !important; border-color: #c62828 !important; color: #ffffff !important; }
.au-linkbtn { background: none; border: 0; padding: 0; color: var(--au-brand); font-weight: 700; cursor: pointer; font: inherit; text-decoration: underline; }

/* logos */
.au-logo { display: inline-flex; align-items: center; justify-content: center; width: 76px; height: 76px; border-radius: 14px; background: #ffffff; flex: 0 0 auto; overflow: hidden; }
.au-logo img { max-width: 84%; max-height: 84%; width: auto; height: auto; object-fit: contain; display: block; }
.au-logo--sm { width: 44px; height: 44px; border-radius: 10px; }
.au-logo--md { width: 84px; height: 84px; border-radius: 14px; }
.au-logo--plate { width: 100%; height: 100%; border-radius: 50%; background: transparent; }
.au-logo--plate img { max-width: 80%; max-height: 80%; }
.au-logo--text { background: var(--au-brand-soft); color: var(--au-brand); font-weight: 800; font-size: 1.05rem; letter-spacing: .02em; }
.au-logo--sm.au-logo--text { font-size: .8rem; }
.au-logo--plate.au-logo--text { font-size: 1.6rem; }
/* Dark mode: university crests keep their real colours and sit on a white plate. */
html[data-theme="dark"] .au .au-logo img { filter: none !important; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10'%3E%3Crect width='10' height='10' fill='%23ffffff'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat !important; padding: 8px; border-radius: 14px; box-sizing: border-box; }
html[data-theme="dark"] .au .au-logo:not(.au-logo--text) { background: transparent; }

/* the round plate behind each logo */
.au-card__plate, .au-hero__plate { display: inline-flex; align-items: center; justify-content: center; width: 230px; height: 230px; border-radius: 50%; background: radial-gradient(circle at 50% 40%, #ffffff 0%, #f6f1f1 70%); box-shadow: inset 0 0 0 1px rgba(131, 6, 6, .06); transition: transform .3s; }
.au-card--sm .au-card__plate { width: 160px; height: 160px; }
.au-hero__plate { width: 170px; height: 170px; background: #ffffff; box-shadow: 0 10px 30px rgba(131, 6, 6, .1); }
html[data-theme="dark"] .au-card__plate, html[data-theme="dark"] .au-hero__plate { background: #232831; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); }

/* grids */
.au-grid { display: grid; gap: 16px; }
.au-grid--schools { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; }
.au-grid--more { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.au-grid--levels { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.au-grid--courses { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }

/* university cards */
.au-card { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 30px 22px 26px; border-radius: 24px; border: 1px solid var(--au-border); background: var(--au-surface); box-shadow: var(--au-shadow); transition: transform .25s, border-color .25s, box-shadow .25s; overflow: hidden; }
.au-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(90deg, var(--au-brand), var(--au-red)); transform: scaleX(0); transform-origin: left; transition: transform .3s; }
.au-card:hover, .au-card:focus-visible { transform: translateY(-6px); border-color: rgba(131, 6, 6, .25); box-shadow: var(--au-shadow-hi); outline: none; }
.au-card:hover::before, .au-card:focus-visible::before, .au-card.is-mine::before { transform: scaleX(1); }
.au-card:hover .au-card__plate { transform: scale(1.04); }
.au-card .au-card__plate { margin-bottom: 14px; }
.au-card__short { font-weight: 800; font-size: 1.35rem; letter-spacing: .01em; color: var(--au-text); }
.au-card--sm .au-card__short { font-size: 1.15rem; }
.au-card__full { font-size: .95rem; color: var(--au-muted); line-height: 1.4; }
.au-card__city { display: inline-flex; align-items: center; gap: 4px; font-size: .82rem; color: var(--au-muted); opacity: .9; margin-bottom: 16px; }
.au-pin { color: var(--au-brand); }
.au-card__btn { margin-top: auto; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 999px; background: var(--au-red); color: #ffffff !important; font-weight: 600; font-size: .93rem; transition: background .2s, gap .2s; }
.au-card:hover .au-card__btn { background: #830606; gap: 12px; }
html[data-theme="dark"] .au-card__btn { background: #c62828; }
html[data-theme="dark"] .au-card--sm .au-card__btn { background: transparent; color: var(--au-brand) !important; }
html[data-theme="dark"] .au-card--sm:hover .au-card__btn { background: var(--au-brand-soft); }
.au-card--sm .au-card__btn { background: transparent; color: var(--au-brand) !important; padding: 8px 16px; border: 1px solid var(--au-border); }
.au-card--sm:hover .au-card__btn { background: var(--au-brand-soft); border-color: transparent; }
.au-card__mine { position: absolute; top: 14px; right: 14px; background: var(--au-brand); color: var(--au-brand-ink); font-size: .68rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; letter-spacing: .03em; }
.au-card.is-mine { border-color: rgba(131, 6, 6, .35); }
.au-card.is-busy, .au-other.is-busy { opacity: .6; pointer-events: none; }

.au-continue { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; margin: 0 0 8px; border-radius: var(--au-radius); background: var(--au-brand-soft); border: 1px solid rgba(131, 6, 6, .12); }

.au-other { display: flex; align-items: center; gap: 18px; margin-top: 30px; padding: 22px 24px; border-radius: 22px; border: 1px dashed rgba(131, 6, 6, .3); background: var(--au-soft); transition: border-color .2s, background .2s, transform .2s; }
.au-other:hover { border-color: var(--au-brand); background: var(--au-brand-soft); transform: translateY(-2px); }
.au-other__icon { flex: 0 0 auto; width: 48px; height: 48px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--au-surface); color: var(--au-brand); font-size: 1.6rem; font-weight: 700; box-shadow: var(--au-shadow); }
.au-other__text { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.au-other__t { font-weight: 700; color: var(--au-text); }
.au-other__d { color: var(--au-muted); font-size: .9rem; }
.au-other__go { font-size: 1.4rem; color: var(--au-brand); transition: transform .2s; }
.au-other:hover .au-other__go { transform: translateX(4px); }

/* breadcrumb and top bar */
.au-crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; padding: 0; font-size: .85rem; color: var(--au-muted); }
.au-crumbs li + li::before { content: "\203A"; margin-right: 6px; opacity: .7; }
.au-crumbs a:hover { color: var(--au-brand); }
.au-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 16px 20px; border-radius: 22px; border: 1px solid var(--au-border); background: var(--au-surface); box-shadow: var(--au-shadow); margin-bottom: 22px; }
.au-bar__who { display: flex; align-items: center; gap: 16px; min-width: 0; }
.au-bar__short { font-weight: 700; font-size: 1.3rem; color: var(--au-text); }
.au-bar__full { font-size: .95rem; color: var(--au-muted); }
.au-pill { display: inline-flex; align-items: center; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--au-border); font-weight: 600; font-size: .86rem; color: var(--au-text); background: var(--au-surface); transition: border-color .2s, color .2s; }
.au-pill:hover { border-color: var(--au-brand); color: var(--au-brand); }

/* levels */
.au-level { position: relative; display: grid; grid-template-columns: auto 1fr auto; grid-template-rows: auto auto; column-gap: 16px; align-items: center; padding: 22px 22px; border-radius: 22px; border: 1px solid var(--au-border); background: var(--au-surface); box-shadow: var(--au-shadow); transition: transform .25s, border-color .25s, box-shadow .25s; }
.au-level:hover { transform: translateY(-4px); border-color: rgba(131, 6, 6, .25); box-shadow: var(--au-shadow-hi); }
.au-level__num { grid-row: 1 / span 2; width: 52px; height: 52px; border-radius: 16px; display: inline-flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--au-brand), var(--au-red)); color: #ffffff; font-size: 1.35rem; font-weight: 800; }
.au-level.is-soon .au-level__num { background: var(--au-soft); color: var(--au-muted); }
.au-level__label { font-weight: 700; font-size: 1.2rem; color: var(--au-text); }
.au-level__count { grid-column: 2; font-size: .86rem; color: var(--au-brand); font-weight: 600; }
.au-level.is-soon .au-level__count { color: var(--au-muted); font-weight: 500; }
.au-level__go { grid-column: 3; grid-row: 1 / span 2; font-size: 1.3rem; color: var(--au-brand); transition: transform .2s; }
.au-level:hover .au-level__go { transform: translateX(4px); }

/* level tabs and programme chips */
.au-tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin: 0 0 18px; scrollbar-width: thin; }
.au-tab { flex: 0 0 auto; padding: 9px 18px; border-radius: 999px; border: 1px solid var(--au-border); font-weight: 600; font-size: .9rem; color: var(--au-text); background: var(--au-surface); }
.au-tab:hover { border-color: var(--au-brand); }
.au-tab.is-on { background: var(--au-brand); border-color: var(--au-brand); color: #ffffff; }
html[data-theme="dark"] .au .au-tab.is-on { background-image: linear-gradient(#c62828, #c62828) !important; border-color: #c62828; color: #ffffff; }
.au-filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 6px; }
.au-chip { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--au-border); background: var(--au-soft); color: var(--au-text); font: inherit; font-size: .84rem; cursor: pointer; }
.au-chip.is-on { border-color: var(--au-brand); color: var(--au-brand); font-weight: 700; }

/* course cards */
.au-course { display: flex; flex-direction: column; border-radius: 22px; border: 1px solid var(--au-border); background: var(--au-surface); overflow: hidden; box-shadow: var(--au-shadow); transition: transform .25s, border-color .25s, box-shadow .25s; }
.au-course:hover { transform: translateY(-4px); border-color: rgba(131, 6, 6, .25); box-shadow: var(--au-shadow-hi); }
.au-course__img { aspect-ratio: 16 / 9; background: var(--au-soft); display: block; }
.au-course__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.au-course__body { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px 18px; flex: 1; }
.au-code { align-self: flex-start; font-size: .78rem; font-weight: 800; letter-spacing: .04em; color: var(--au-brand); background: var(--au-brand-soft); padding: 3px 9px; border-radius: 6px; }
.au-course__title { font-weight: 700; color: var(--au-text); line-height: 1.35; }
.au-course__go { margin-top: auto; font-size: .86rem; font-weight: 600; color: var(--au-brand); }

/* empty state */
.au-empty { text-align: center; padding: 48px 20px; border-radius: 22px; border: 1px dashed var(--au-border); background: var(--au-soft); }
.au-empty strong { display: block; font-size: 1.2rem; margin-bottom: 6px; color: var(--au-text); }
.au-empty p { color: var(--au-muted); margin: 0 auto 16px; max-width: 460px; line-height: 1.55; }
.au-empty a:not(.au-btn) { color: var(--au-brand); text-decoration: underline; }

/* toast */
.au-toast { position: fixed; left: 50%; bottom: 22px; transform: translate(-50%, 20px); opacity: 0; z-index: 9999; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; max-width: calc(100% - 32px); padding: 12px 16px; border-radius: 14px; background: #141414; color: #ffffff; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); font-size: .92rem; transition: opacity .25s, transform .25s; }
html[data-theme="dark"] .au-toast { background: #f1f2f5; color: #111111; }
.au-toast.is-in { opacity: 1; transform: translate(-50%, 0); }
.au-toast a, .au-toast .au-linkbtn { color: inherit; font-weight: 700; text-decoration: underline; }
.au-toast__x { background: none; border: 0; color: inherit; font-size: 1.3rem; line-height: 1; cursor: pointer; padding: 0 2px; opacity: .7; }

/* header switcher */
.au-switch { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; border: 1px solid currentColor; font-size: .82rem; font-weight: 700; text-decoration: none !important; line-height: 1.2; }
.au-switch__caret { font-size: .7em; opacity: .8; }

/* My Adroit strip */
.au.au-mine { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; margin: 0 auto 16px; border-radius: var(--au-radius); border: 1px solid var(--au-border); background: var(--au-surface); max-width: none; }
.au-mine__who { display: flex; align-items: center; gap: 12px; }
.au-mine__k { font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; color: var(--au-muted); font-weight: 700; }
.au-mine__v { font-weight: 800; font-size: 1.05rem; color: var(--au-text); }
.au-mine__act { display: flex; gap: 8px; flex-wrap: wrap; }
.au-mine__form { display: flex; flex-wrap: wrap; gap: 8px; width: 100%; }
.au-mine__form select { flex: 1 1 260px; min-height: 42px; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--au-border); background: var(--au-surface); color: var(--au-text); font: inherit; }

@media (max-width: 700px) {
	.au { padding: 16px 14px 48px; }
	.au-hero { padding: 22px 16px 18px; border-radius: 20px; margin-bottom: 18px; }
	.au-hero .au-lede { font-size: .95rem; }
	.au-hero--school { flex-direction: column; text-align: center; gap: 16px; padding: 28px 18px; }
	.au-hero--school .au-lede { margin: 0 auto; }
	.au-hero__meta { justify-content: center; }
	.au-hero__plate { width: 150px; height: 150px; }
	.au-grid--schools { grid-template-columns: 1fr; gap: 16px; }
	.au-grid--more { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	.au-card--sm { padding: 20px 12px 18px; }
	.au-card--sm .au-card__plate { width: 120px; height: 120px; }
	.au-card--sm .au-card__full { font-size: .82rem; }
	.au-card--sm .au-card__btn { padding: 7px 10px; font-size: .78rem; white-space: nowrap; gap: 4px; }
	.au-card__plate { width: 210px; height: 210px; }
	.au-grid--levels { grid-template-columns: 1fr; gap: 12px; }
	.au-other { padding: 18px; gap: 14px; }
	.au-continue .au-btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
	.au * { transition: none !important; }
}
html[data-theme="dark"] .au-course, html[data-theme="dark"] .au-card, html[data-theme="dark"] .au-level { border-color: var(--au-border); }
