/*
Theme Name: Meridian Learn
Description: The Meridian Group of Education learning portal, built as an Astra child theme.
Template: astra
 Version: 1.5.0
Requires PHP: 7.4
Text Domain: meridian-learn
*/

:root {
    --mge-ink: #102b2a;
    --mge-muted: #46605d;
    --mge-accent: #0e675b;
    --mge-deep: #07473f;
    --mge-paper: #f7f8f2;
    --mge-mint: #dff4e8;
    --mge-line: #dce6de;
    --mge-white: #fff;
    --mge-font: "Aptos", "Segoe UI", system-ui, sans-serif;
}
body.wp-child-theme-meridian-learn { background: var(--mge-paper); color: var(--mge-ink); }
body.wp-child-theme-meridian-learn #masthead,
body.wp-child-theme-meridian-learn #colophon,
body.wp-child-theme-meridian-learn .hfe-before-footer-wrap { display: none !important; }
body.wp-child-theme-meridian-learn .tutor-card { border-radius: 16px; overflow: hidden; }
body.wp-child-theme-meridian-learn .tutor-btn-primary { background-color: var(--mge-accent); border-color: var(--mge-accent); }
body.wp-child-theme-meridian-learn .tutor-btn-primary:hover { background-color: var(--mge-deep); border-color: var(--mge-deep); }
body.wp-child-theme-meridian-learn .site-content > .ast-container:has(> .mge-main) { display: block; padding: 0; max-width: none; }

.mge-header, .mge-footer, .mge-main { font: 400 16px/1.6 var(--mge-font); }
.mge-header :focus-visible, .mge-footer :focus-visible, .mge-main :focus-visible { outline: 3px solid #398a79; outline-offset: 4px; }
.mge-wrap { width: min(1180px, calc(100% - 64px)); margin-inline: auto; }
.mge-header { position: relative; z-index: 5; background: #fff; border-bottom: 1px solid var(--mge-line); }
.mge-header-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; min-height: 76px; }
.mge-brand { display: inline-flex; align-items: center; gap: 10px; width: fit-content; color: var(--mge-ink); text-decoration: none; font-size: 21px; font-weight: 750; line-height: 1; letter-spacing: -.045em; }
.mge-brand:hover { color: var(--mge-accent); }
.mge-brand img { border-radius: 50%; object-fit: contain; background: white; padding: 2px; width: 45px; height: 45px; }
.mge-brand strong { display: block; letter-spacing: .04em; font-size: 9px; margin-top: 5px; font-weight: 700; text-transform: uppercase; }
.mge-nav { display: flex; flex-wrap: wrap; gap: clamp(15px, 2.5vw, 34px); align-items: center; justify-content: center; }
.mge-nav a { color: var(--mge-ink); font-weight: 600; text-decoration: none; white-space: nowrap; font-size: 14px; }
.mge-nav a:hover, .mge-nav a[aria-current] { color: var(--mge-accent); text-decoration: underline; text-underline-offset: 5px; }
.mge-header-actions { justify-self: end; }
.mge-button, .mge-main button.mge-button { display: inline-flex; justify-content: center; gap: .75em; align-items: center; min-height: 50px; padding: 11px 21px; border: 1px solid transparent; border-radius: 10px; background: var(--mge-accent); color: #fff; font: 700 14px/1.35 var(--mge-font); text-align: center; text-decoration: none; cursor: pointer; transition: background .2s ease, transform .2s ease, box-shadow .2s ease; }
.mge-button:is(:hover,:focus), .mge-main button.mge-button:hover { color: #fff; background: var(--mge-deep); box-shadow: 0 8px 22px #0d504425; transform: translateY(-2px); }
.mge-button.mge-header-button { min-height: 41px; padding: 9px 17px; }
.mge-button.mge-button-light { background: transparent; color: var(--mge-ink); border-color: #a9c7ba; }
.mge-button.mge-button-light:hover { background: white; color: var(--mge-deep); }
.mge-main :is(h1,h2,h3) { font-family: var(--mge-font); color: var(--mge-ink); font-weight: 750; margin: 0; line-height: 1.08; letter-spacing: -.045em; }
.mge-main p { margin: 0; }
.mge-main .mge-kicker { display: flex; align-items: center; gap: 9px; font-size: 11px; font-weight: 750; letter-spacing: .15em; color: var(--mge-accent); margin-bottom: 15px; }
.mge-kicker > span { width: 8px; height: 8px; border-radius: 50%; background: #23a786; box-shadow: 0 0 0 4px #23a78623; }
.mge-hero { position: relative; isolation: isolate; overflow: hidden; background: radial-gradient(ellipse at 100% -5%,#c9eee0 1%,transparent 55%), linear-gradient(125deg,#f9faf1,#e9f7ed 75%); padding: clamp(45px,7.5vw,113px) 0 clamp(72px,8vw,119px); }
.mge-hero::before { content: ""; position: absolute; z-index: -1; inset: 0; opacity: .44; background: radial-gradient(#5eac962e 1px,transparent 1px) 0 0 / 22px 22px; mask-image: linear-gradient(90deg,transparent 5%,#000 80%); }
.mge-hero-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); align-items: center; gap: clamp(30px,6vw,96px); }
.mge-hero-copy { animation: mge-fade-up .65s both ease-out; }
.mge-hero h1 { font-size: clamp(43px,6.45vw,91px); letter-spacing: -.072em; }
.mge-hero h1 em { color: var(--mge-accent); font-style: normal; }
.mge-hero .mge-intro { font-size: clamp(16px,1.7vw,20px); color: var(--mge-muted); line-height: 1.6; margin-top: 23px; max-width: 39ch; }
.mge-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.mge-hero-visual { position: relative; animation: mge-fade-up .8s .1s both ease-out; }
.mge-hero-frame { padding: 8px; border: 1px solid #fff; background: #ffffff6b; border-radius: 24px; box-shadow: 0 26px 54px #133d3824; }
.mge-hero-frame img { display: block; width: 100%; aspect-ratio: 1.31; height: auto; object-fit: cover; border-radius: 17px; }
.mge-hero-note { position: absolute; bottom: 21px; left: -22px; display: flex; gap: 12px; align-items: center; max-width: calc(100% - 16px); background: #fff; color: var(--mge-ink); padding: 10px 15px 10px 10px; border-radius: 13px; box-shadow: 0 12px 31px #122b2a32; text-decoration: none; animation: mge-float .95s .42s both ease-out; }
.mge-hero-note strong, .mge-quicklinks strong { display: block; font-size: 14px; line-height: 1.2; }
.mge-hero-note small, .mge-quicklinks small { display: block; font-size: 12px; color: var(--mge-muted); margin-top: 3px; }
.mge-icon, .mge-quick-dot { display: grid; place-items: center; width: 40px; height: 40px; flex: 0 0 40px; border-radius: 10px; color: var(--mge-accent); background: var(--mge-mint); }
.mge-quicklinks { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3,1fr); padding: 5px; margin-top: -29px; border: 1px solid var(--mge-line); border-radius: 15px; box-shadow: 0 10px 30px #163b3310; background: white; }
.mge-quicklinks a { display: flex; gap: 13px; align-items: center; min-width: 0; padding: 16px clamp(10px,2.6vw,28px); color: var(--mge-ink); text-decoration: none; border-radius: 11px; transition: background .2s ease; }
.mge-quicklinks a:hover { background: #f1f9f3; }
.mge-quicklinks .mge-quick-dot { background: #eef5ee; font-size: 21px; }
.mge-section { padding-block: clamp(62px,7.5vw,102px); }
.mge-section-head { display: flex; flex-wrap: wrap; gap: 17px; justify-content: space-between; align-items: end; margin-bottom: 24px; }
.mge-main h2 { font-size: clamp(29px,4.5vw,52px); }
.mge-text-link { color: var(--mge-accent); text-decoration: none; font-weight: 700; font-size: 14px; }
.mge-text-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.mge-card-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; }
.mge-card, .mge-panel { background: #fff; border: 1px solid var(--mge-line); border-radius: 16px; overflow: hidden; }
.mge-card { transition: box-shadow .24s ease, transform .24s ease; }
.mge-card:hover { transform: translateY(-5px); box-shadow: 0 17px 36px #12362d14; }
.mge-card > a { display: block; height: 100%; color: inherit; text-decoration: none; }
.mge-thumbnail { aspect-ratio: 1.85; background: linear-gradient(130deg,#e0f2e1,#a9d7c6); overflow: hidden; }
.mge-thumbnail img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mge-card-body, .mge-panel { padding: clamp(20px,3vw,32px); }
.mge-card-body h3 { font-size: clamp(21px,2.5vw,29px); margin-bottom: 17px; }
.mge-card-body .mge-kicker { margin-bottom: 8px; }
.mge-learning-band { background: #e4f1e6; border-top: 1px solid var(--mge-line); padding: clamp(44px,6vw,77px) 0; }
.mge-band-grid { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 22px; }
.mge-band-grid p:not(.mge-kicker) { color: var(--mge-muted); margin-top: 12px; }
.mge-footer { background: #103632; color: #eefbf1; padding: 48px 0 19px; }
.mge-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 24px; align-items: start; }
.mge-footer .mge-brand, .mge-footer a:hover { color: #fff; }
.mge-footer h2 { color: #fff; font: 700 14px/1.4 var(--mge-font); margin: 0 0 9px; }
.mge-footer nav a { display: block; color: #c0dacf; text-decoration: none; font-size: 14px; margin: 5px 0; }
.mge-footer nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.mge-footer-bottom { color: #c0dacf; font-size: 12px; border-top: 1px solid #a7d9c13d; margin-top: 30px; padding-top: 17px; }
.mge-inner-hero { background: linear-gradient(115deg,#eef7ed,#dff5e8); border-bottom: 1px solid var(--mge-line); padding: clamp(36px,7vw,96px) 0; }
.mge-inner-hero h1 { font-size: clamp(38px,6vw,72px); }
.mge-inner-hero p:not(.mge-kicker) { color: var(--mge-muted); font-size: clamp(16px,2vw,19px); margin-top: 14px; max-width: 62ch; }
.mge-content { padding-block: clamp(34px,5vw,68px); min-height: 290px; }
.mge-content h2 { font-size: clamp(25px,3.3vw,39px); }
.mge-content p + p, .mge-content h2 + p { margin-top: 12px; }
.mge-panel + .mge-panel { margin-top: 14px; }
.mge-session { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 18px; }
.mge-session h3 { font-size: 25px; margin-bottom: 6px; }
.mge-session time { color: var(--mge-accent); font-weight: 700; }
.mge-account-layout { width: min(500px,calc(100% - 36px)); margin-inline: auto; padding: clamp(35px,6vw,80px) 0; }
.mge-account-layout h1 { font-size: clamp(32px,5vw,47px); }
.mge-account-layout .mge-panel > p { margin-top: 14px; color: var(--mge-muted); }
.mge-form { display: grid; gap: 8px; margin-top: 24px; }
.mge-form label { font-weight: 700; font-size: 14px; }
.mge-form input:not([type=hidden]) { width: 100%; border: 1px solid #a9c7ba; color: var(--mge-ink); background: #fff; min-height: 48px; border-radius: 9px; padding: 9px 12px; font: inherit; margin-bottom: 9px; }
.mge-form button { width: 100%; margin-top: 5px; }
.mge-form .mge-inline { display: flex; align-items: center; gap: 9px; }
.mge-form .mge-inline input { width: auto; min-height: unset; margin: 0; }
.mge-notice { border-radius: 9px; padding: 10px 12px; background: #fff0e8; color: #7c3219 !important; }
.mge-muted { color: var(--mge-muted); }
.mge-revealed { animation: mge-fade-up .62s both ease-out; }
@keyframes mge-fade-up { from { opacity: .65; translate: 0 14px; } to { opacity: 1; translate: 0 0; } }
@keyframes mge-float { from { opacity: .65; translate: 0 12px; } to { opacity: 1; translate: 0 0; } }
@media (max-width: 820px) {
    .mge-wrap { width: min(1180px,calc(100% - 36px)); }
    .mge-header-inner { grid-template-columns: 1fr auto; gap: 0 14px; padding-top: 10px; }
    .mge-nav { grid-row: 2; grid-column: 1 / -1; gap: 13px 22px; padding: 9px 0 11px; }
    .mge-hero-grid { gap: 28px; }
    .mge-hero-note { left: 3px; bottom: 12px; }
    .mge-card-grid { gap: 12px; }
    .mge-footer-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 600px) {
    .mge-hero-grid, .mge-card-grid { grid-template-columns: 1fr; }
    .mge-hero { padding-bottom: 55px; }
    .mge-hero-frame img { aspect-ratio: 1.48; }
    .mge-quicklinks { grid-template-columns: 1fr; margin-top: -20px; }
    .mge-quicklinks a { padding-block: 10px; }
}
@media (prefers-reduced-motion: reduce) {
    .mge-main *, .mge-header *, .mge-footer * { animation: none !important; transition: none !important; }
}

/* Portal visual system */
:root {
    --mge-ink: #152c33;
    --mge-muted: #4a6469;
    --mge-accent: #126b5c;
    --mge-deep: #093f39;
    --mge-paper: #f6f8f5;
    --mge-mint: #e3f4e8;
    --mge-line: #dce6e1;
}
.mge-wrap { width: min(1180px, calc(100% - clamp(36px, 8vw, 104px))); }
.mge-header-inner { min-height: 72px; }
.mge-brand { gap: 11px; font-size: 21px; }
.mge-nav a { position: relative; padding-block: 10px; }
.mge-nav a:is(:hover, [aria-current]) { text-decoration: none; }
.mge-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 2px; background: var(--mge-accent); border-radius: 2px; transform: scaleX(0); transition: transform .22s ease; }
.mge-nav a:is(:hover,[aria-current])::after { transform: scaleX(1); }
.mge-header .mge-button { border-radius: 8px; }
.mge-button { letter-spacing: .005em; }
.mge-header-actions { display: flex; align-items: center; justify-content: end; gap: 14px; }
.mge-header-actions .mge-text-link { white-space: nowrap; }

.mge-hero { background: var(--mge-paper); padding: clamp(22px,3.5vw,52px) 0 0; overflow: visible; }
.mge-hero::before { display: none; }
.mge-hero-grid {
    position: relative;
    isolation: isolate;
    grid-template-columns: minmax(0,1fr) minmax(0,.95fr);
    gap: clamp(24px,4.1vw,63px);
    padding: clamp(31px,4.8vw,67px);
    border-radius: 25px;
    background: radial-gradient(ellipse at 100% 0%, #285f54 0%, transparent 47%), linear-gradient(130deg,#112d34 0%,#153e3d 100%);
    box-shadow: 0 18px 45px #152c331a;
}
.mge-hero-grid::before {
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; border-radius: inherit;
    background: repeating-radial-gradient(ellipse at 104% -28%,transparent 0 30px,#b2dfbe21 31px 32px,transparent 33px 49px);
    mask-image: linear-gradient(100deg,transparent 37%,black);
}
.mge-hero .mge-kicker { color: #a7e9c9; margin-bottom: 18px; }
.mge-kicker > span { background: #70e2ae; box-shadow: 0 0 0 4px #70e2ae22; }
.mge-hero h1 { color: #f7fff9; font-size: clamp(37px,5.1vw,73px); letter-spacing: -.063em; line-height: 1.04; }
.mge-hero h1 em { color: #a8efc1; }
.mge-hero .mge-intro { color: #d2e3dd; font-size: clamp(15px,1.4vw,18px); line-height: 1.65; margin-top: 20px; max-width: 42ch; }
.mge-hero .mge-button:not(.mge-button-light) { color: #123831; background: #b2efca; }
.mge-hero .mge-button:not(.mge-button-light):hover { color: #123831; background: #d8fae5; }
.mge-hero .mge-button-light { color: #f7fff9; border-color: #c4e6d083; }
.mge-hero .mge-button-light:hover { background: #ffffff14; }
.mge-hero-frame { padding: 0; border-radius: 18px; border: 1px solid #daf5df65; background: #305c56; overflow: hidden; box-shadow: 0 19px 42px #0b20265c; }
.mge-hero-frame img { aspect-ratio: 1.24; border-radius: 0; object-position: center 43%; transform: scale(1.015); transition: transform .65s ease; }
.mge-hero-visual:hover img { transform: scale(1.055); }
.mge-hero-note { left: 13px; bottom: 13px; padding: 9px 12px 9px 9px; border: 1px solid #ffffff80; }
.mge-quicklinks { margin-top: 18px; border-radius: 15px; padding: 6px; }
.mge-quicklinks a { padding: 14px clamp(13px,1.6vw,24px); position: relative; }
.mge-quicklinks a + a::before { position: absolute; inset: 14px auto 14px 0; content: ""; width: 1px; background: var(--mge-line); }
.mge-quicklinks small { font-size: 13px; }
.mge-quicklinks .mge-quick-dot { width: 42px; height: 42px; flex-basis: 42px; }
.mge-icon svg, .mge-quick-dot svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.mge-section { padding-block: clamp(46px,6vw,83px); }
.mge-section-head { margin-bottom: 22px; }
.mge-section-head .mge-kicker { margin-bottom: 8px; }
.mge-main h2 { font-size: clamp(29px,4.1vw,50px); }
.mge-card { box-shadow: 0 6px 20px #182f3110; }
.mge-card > a { display: flex; flex-direction: column; }
.mge-thumbnail { aspect-ratio: 1.75; }
.mge-thumbnail img { transition: transform .48s ease; }
.mge-card:hover img { transform: scale(1.045); }
.mge-card-body { display: flex; flex-direction: column; align-items: flex-start; flex: 1; gap: 11px; padding: clamp(16px,2.05vw,24px); }
.mge-card-body .mge-kicker { margin: 0; border-radius: 6px; background: #eaf5ee; padding: 4px 8px; letter-spacing: .07em; font-size: 10px; }
.mge-card-body h3 { margin: 0; font-size: clamp(20px,2.1vw,29px); }
.mge-card-body .mge-text-link { margin-top: auto; padding-top: 9px; }
.mge-learning-band { background: #e7f2ea; padding-block: clamp(32px,5.4vw,65px); }
.mge-band-grid { gap: 26px; }

.mge-footer { background: #142e35; padding: 49px 0 20px; margin-top: auto; }
.mge-footer-grid { grid-template-columns: 1.25fr 1fr 1fr 1fr; column-gap: clamp(16px,3vw,42px); }
.mge-footer nav h2 { font-size: 14px; color: #fff; }
.mge-footer nav a { color: #c0d4d3; margin: 8px 0; }
.mge-footer-bottom { color: #c0d4d3; }

.mge-inner-hero { background: linear-gradient(110deg,#152f36,#235747); border-color: #183f39; padding: clamp(38px,5.9vw,78px) 0; }
.mge-inner-hero h1 { color: #f5fff8; font-size: clamp(38px,5.8vw,66px); }
.mge-inner-hero p:not(.mge-kicker) { color: #d2e5df; }
.mge-inner-hero .mge-wrap { animation: mge-fade-up .55s both ease-out; }
.mge-content .mge-panel { box-shadow: 0 6px 21px #142e3510; }

.mge-account-layout { width: min(990px,calc(100% - 38px)); padding-block: clamp(27px,4.6vw,63px); }
.mge-account-shell { display: grid; grid-template-columns: minmax(0,.92fr) minmax(0,1fr); border-radius: 23px; overflow: hidden; border: 1px solid var(--mge-line); box-shadow: 0 20px 55px #152c3315; background: white; animation: mge-fade-up .55s both ease-out; }
.mge-account-aside { display: flex; flex-direction: column; justify-content: space-between; gap: 26px; padding: clamp(25px,3.8vw,48px); background: radial-gradient(ellipse at 100% 0%,#285f54,transparent 57%),#16333b; color: #d2e5df; }
.mge-account-aside h2 { color: #f6fff8; font-size: clamp(28px,3.4vw,43px); letter-spacing: -.053em; }
.mge-account-aside .mge-kicker { color: #a8efc1; }
.mge-account-aside p:not(.mge-kicker) { margin-top: 13px; }
.mge-account-aside img { display: block; width: 100%; border-radius: 13px; aspect-ratio: 1.52; object-fit: cover; }
.mge-account-shell > .mge-panel { border: 0; border-radius: 0; padding: clamp(23px,4.15vw,55px); overflow: visible; }
.mge-account-layout h1 { font-size: clamp(30px,3.8vw,46px); }
.mge-account-steps { display: flex; list-style: none; margin: 0 0 21px; padding: 0; gap: 9px; font-size: 12px; color: var(--mge-muted); flex-wrap: wrap; }
.mge-account-steps li { border-radius: 7px; border: 1px solid var(--mge-line); padding: 4px 8px; }
.mge-account-steps [aria-current] { background: var(--mge-mint); color: var(--mge-deep); font-weight: 700; border-color: #b7ddc6; }
.mge-account-layout .mge-panel .mge-account-switch { margin-top: 20px; padding-top: 17px; border-top: 1px solid var(--mge-line); }
.mge-form { gap: 6px; margin-top: 20px; }
.mge-form input:not([type=hidden])::placeholder { color: #617879; }
.mge-form input:not([type=hidden]) { margin-bottom: 10px; border-color: #bbcfc8; }
.mge-form input:not([type=hidden]):focus { outline: 2px solid var(--mge-accent); outline-offset: 1px; }
.mge-form .mge-inline input { margin: 0; }
.mge-form .mge-inline { font-weight: 500; }
.mge-password-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }

body.wp-child-theme-meridian-learn .course-archive-page { max-width: 1180px; margin-inline: auto; }
body.wp-child-theme-meridian-learn .tutor-course-card { border: 1px solid var(--mge-line); box-shadow: 0 7px 23px #152c3310; transition: box-shadow .23s ease, transform .23s ease; }
body.wp-child-theme-meridian-learn .tutor-course-card:hover { transform: translateY(-4px); box-shadow: 0 16px 36px #152c331e; }
.mge-catalog-intro { max-width: 1180px; margin: clamp(18px,3vw,32px) auto clamp(16px,2.3vw,28px); border-radius: 18px; padding: clamp(22px,4vw,45px); background: linear-gradient(110deg,#152f36,#235747); color: #d2e5df; }
body.post-type-archive-courses #content > .ast-container:has(> .mge-catalog-intro) { display: block; }
.mge-catalog-intro h1 { color: #f5fff8; font: 750 clamp(32px,4.5vw,57px)/1.07 var(--mge-font); letter-spacing: -.045em; margin: 0 0 9px; }
.mge-catalog-intro p { margin: 0; }
body.wp-child-theme-meridian-learn .tutor-dashboard-body { background: #f4f8f5; }
body.wp-child-theme-meridian-learn .tutor-dashboard-sidebar { border-color: var(--mge-line); }
body.wp-child-theme-meridian-learn .tutor-dashboard-home-card { border-color: var(--mge-line); border-radius: 15px; }
.mge-revealed { animation: mge-fade-up .55s both cubic-bezier(.18,.74,.37,1); }
.mge-card:nth-child(2).mge-revealed { animation-delay: .07s; }
.mge-card:nth-child(3).mge-revealed { animation-delay: .12s; }
@media (max-width: 820px) {
    .mge-header-inner { gap: 0 10px; }
    .mge-footer-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .mge-hero-grid { gap: 24px; padding: 27px; }
    .mge-hero-frame img { aspect-ratio: 1.05; }
}
@media (max-width: 630px) {
    .mge-header-inner { padding-top: 8px; }
    .mge-header-actions .mge-text-link { display: none; }
    .mge-nav { gap: 12px 23px; justify-content: space-between; padding: 3px 0 8px; }
    .mge-nav a { padding-block: 5px; font-size: 13px; }
    .mge-nav a::after { bottom: 0; }
    .mge-hero-grid { grid-template-columns: 1fr; border-radius: 18px; padding: 23px; }
    .mge-hero h1 { font-size: clamp(36px,10vw,58px); }
    .mge-hero .mge-actions { margin-top: 20px; }
    .mge-hero-frame img { aspect-ratio: 1.48; }
    .mge-quicklinks { grid-template-columns: 1fr; }
    .mge-quicklinks a + a::before { inset: 0 12px auto; height: 1px; width: auto; }
    .mge-card-grid, .mge-account-shell { grid-template-columns: 1fr; }
    .mge-account-aside { padding: 22px 24px; }
    .mge-account-aside img { display: none; }
    .mge-account-aside .mge-kicker { margin-bottom: 7px; }
    .mge-account-aside h2 { font-size: 27px; }
    .mge-account-aside p:not(.mge-kicker) { margin-top: 7px; }
}
@media (prefers-reduced-motion: reduce) {
    .mge-header *, .mge-footer *, .mge-main *, body.wp-child-theme-meridian-learn .tutor-course-card { animation: none !important; transition: none !important; }
    body.wp-child-theme-meridian-learn .tutor-course-card:hover { transform: none; }
}

/* Workshop launch and motion */
.mge-hero-grid { background: radial-gradient(ellipse at 84% -30%,#3b4e91 0%,transparent 53%),radial-gradient(ellipse at 100% 120%,#154947,transparent 65%),#111d35; min-height: 490px; }
.mge-hero .mge-kicker { color: #9ef6e1; }
.mge-hero h1 em { color: #9af3d3; }
.mge-hero-frame { border-color: #a8d5ed9c; box-shadow: 0 0 0 8px #8cc9ec13,0 22px 56px #070d29b3; }
.mge-hero-frame img { transform: scale(1.025); }
.mge-scene { position:absolute; z-index:-1; inset:0; overflow:hidden; border-radius:inherit; pointer-events:none; }
.mge-scene::before {
    content:""; position:absolute; width:92%; height:118%; top:-57%; left:24%;
    background: conic-gradient(from 46deg,transparent,#53c9ba40,transparent 35%,#7d9aff44,transparent 74%);
    filter:blur(40px); animation: mge-nebula 12s ease-in-out infinite alternate;
}
.mge-scene i { position:absolute; display:block; right:8%; top:7%; width:42%; height:72%; border:1px solid #b7e3ff50; border-radius:50%; transform:rotate(-18deg); animation:mge-orbit 9s ease-in-out infinite alternate; }
.mge-scene i:nth-child(2) { right:3%; top:14%; width:46%; height:78%; transform:rotate(9deg); animation-delay:-3s; border-color:#7ecdee59; }
.mge-scene i:nth-child(3) { right:1.5%; top:18%; width:51%; height:57%; transform:rotate(-35deg); animation-delay:-6s; border-color:#c0b5ff3a; }
.mge-scene i::after { content:""; position:absolute; inset:8% 13% auto auto; width:8px; height:8px; border-radius:50%; background:#a7ffe4; box-shadow:0 0 17px 7px #77fbda58; }
.mge-hero-note { animation:mge-fade-up .7s .4s both ease-out,mge-float-loop 4s 1.15s ease-in-out infinite; }
.mge-motion-toggle { position:absolute; z-index:2; right:15px; top:13px; color:#dbf3f6; background:#14283eaa; border:1px solid #b4dced55; font:600 11px/1.2 var(--mge-font); border-radius:7px; padding:6px 9px; }
.mge-motion-toggle:hover { color:white;background:#243b59; }
.mge-motion-toggle[hidden], .mge-assistant [hidden] { display:none !important; }
.mge-motion-paused *, .mge-motion-paused *::before, .mge-motion-paused *::after { animation-play-state:paused !important; }
@keyframes mge-nebula { from{transform: translate3d(0,0,0) rotate(-22deg)}to{transform:translate3d(-20%,13%,0) rotate(84deg)} }
@keyframes mge-orbit { to { transform: rotate(22deg) translateY(12px) scale(1.09); } }
@keyframes mge-float-loop { 0%,100%{transform:translateY(0)}50%{transform:translateY(-7px)} }
.mge-workshop-band {
    display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:20px;
    padding:clamp(25px,4.5vw,52px); margin-bottom:clamp(40px,5vw,66px); border-radius:20px;
    background:radial-gradient(ellipse at 100% 3%,#e0dbff,transparent 70%),#f0f3fa; border:1px solid #dfe2f0;
}
.mge-workshop-band .mge-kicker { color:#4e4386; }
.mge-workshop-band h2 { font-size:clamp(27px,4vw,44px); }
.mge-workshop-band p:not(.mge-kicker) { margin-top:12px; max-width:58ch;color:var(--mge-muted); }
.mge-schedule-nav { display:flex; gap:10px; flex-wrap:wrap; margin:0 0 20px; }
.mge-schedule-nav a { padding:8px 13px;font-weight:650;color:var(--mge-deep);border:1px solid var(--mge-line);border-radius:7px;background:#fff;text-decoration:none; }
.mge-schedule-nav a:hover { background:var(--mge-mint); }
.mge-workshop-history { margin-top:47px; }
.mge-workshop-history > p { margin:8px 0 17px; color:var(--mge-muted); }
.mge-registration-status { flex-basis:100%;font-weight:600; color:var(--mge-deep); }
.mge-certificate-callout { margin-top:18px; }

.mge-assistant { position:fixed; z-index:900; right:clamp(13px,2vw,27px); bottom:clamp(13px,2vw,27px); font:400 14px/1.5 var(--mge-font); color:#152c33; }
.mge-assistant :focus-visible { outline:2px solid #55ad97; outline-offset:3px; }
.mge-assistant button { cursor:pointer; }
.mge-assistant-trigger { display:flex; align-items:center; gap:9px; margin-left:auto; min-height:46px; padding:8px 16px 8px 12px; border-radius:30px; background:#132c43;color:#f4fffc;border:1px solid #789db5;box-shadow:0 10px 32px #16313b43;font-weight:700; }
.mge-assistant-trigger:hover { background:#174761;color:white; }
.mge-assistant-trigger > span:first-child { display:grid; place-items:center;width:25px;height:25px;border-radius:50%;background:#a6f2d4;color:#143d3f;font-size:17px; }
.mge-assistant section { position:absolute; right:0; bottom:56px; width:min(372px,calc(100vw - 26px)); max-height:calc(100dvh - 95px); display:flex;flex-direction:column; background:#fff; border:1px solid #cbdcd8;border-radius:16px;box-shadow:0 20px 65px #101e4266;overflow:hidden;animation:mge-fade-up .3s ease both; }
.mge-assistant-head { display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 16px;background:#132c43;color:#d7eced; }
.mge-assistant-head h2 { color:#fff; font:700 17px/1.2 var(--mge-font);margin:0; }
.mge-assistant-head p { font-size:12px;margin:4px 0 0; }
.mge-assistant-close { border:0;background:#ffffff17;color:#fff;border-radius:7px;padding:2px 8px;font-size:23px;line-height:1.25; }
.mge-assistant-log { padding:12px;overflow-y:auto;height:230px;min-height:105px; }
.mge-assistant-log p { padding:9px 11px;border-radius:10px;max-width:95%;margin:0 0 8px;background:#edf4f0;white-space:pre-line; }
.mge-assistant-log .mge-chat-question { margin-left:auto;background:#e4ebfc; }
.mge-chat-link { display:block;color:#075c50;font-weight:700;font-size:13px;margin:4px 0 7px; }
.mge-chat-workshop { display:grid;gap:4px;padding:9px;margin-bottom:7px;border:1px solid var(--mge-line);border-radius:9px; }
.mge-chat-workshop button { justify-self:start;background:#126b5c;color:#fff;padding:6px 12px;border:0;border-radius:6px;font-size:12px; }
.mge-chat-workshop button:disabled { opacity:.66; }
.mge-assistant-prompts { display:flex;gap:5px;flex-wrap:wrap;padding:4px 12px 8px; }
.mge-assistant-prompts button { color:#104d49;background:#f0f8f4;border:1px solid #d4eadf;border-radius:15px;padding:5px 8px;font:600 11px/1.3 var(--mge-font); }
.mge-assistant-prompts button:hover { background:#d9efe7; }
.mge-assistant-form { padding:10px 12px;border-top:1px solid var(--mge-line);margin:0; }
.mge-assistant-form > div { display:flex;gap:6px; }
.mge-assistant-form input[name=question] { flex:1; min-width:0;padding:7px 9px;border-radius:7px;background:white;border:1px solid #a9c5c2;color:#152c33;font:inherit; }
.mge-assistant-form button { background:#126b5c;color:white;border:0;border-radius:7px;padding:5px 11px;font-size:19px; }
.mge-ai-consent { display:block;font-size:11px;margin-top:8px;color:#46605d; }
@media (max-width:630px) {
    .mge-hero-grid { min-height:0; }
    .mge-scene i { width:75%; height:47%; top:49%; }
    .mge-scene i:nth-child(2),.mge-scene i:nth-child(3) { width:79%;height:45%;top:49%; }
    .mge-motion-toggle { top:5px;right:6px;padding:3px 5px;font-size:10px; }
    .mge-footer { padding-bottom:68px; }
}
@media (prefers-reduced-motion: reduce) {
    .mge-scene::before,.mge-scene i,.mge-assistant section { animation:none !important; }
    .mge-hero-motion,.mge-motion-toggle { display:none !important; }
}

/* Meridian public introduction and member directories */
.mge-public-hero { background:#f8f7ef; border-bottom:1px solid #e1e7dd; overflow:hidden; }
.mge-public-hero-inner { display:grid; grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr); gap:clamp(24px,5vw,75px); align-items:center; min-height:clamp(420px,50vw,635px); padding-block:clamp(46px,7vw,105px); }
.mge-public-hero-copy { animation:mge-intro-arrive .85s both cubic-bezier(.16,.74,.3,1); }
.mge-public-hero h1 { font-family:Georgia,"Times New Roman",serif; font-size:clamp(46px,7.1vw,105px); letter-spacing:-.081em; font-weight:500; color:#142d34; line-height:.99; }
.mge-public-hero h1 em { color:#136758; font-weight:400; }
.mge-public-intro { font-size:clamp(16px,1.55vw,21px); max-width:38ch; color:#425b60; margin-top:24px !important; }
.mge-public-secondary { display:inline-flex; gap:8px; align-items:center; padding:0 12px; color:#285955; font-weight:700; font-size:14px; text-decoration:none; }
.mge-public-secondary:hover { color:#0a5347; text-decoration:underline; }
.mge-public-brandmark { position:relative; min-width:0; width:100%; aspect-ratio:1.1; display:grid; place-items:center; border-radius:50%; background:radial-gradient(circle,#dcece2 0%,#edf1e3 50%,transparent 69%); isolation:isolate; animation:mge-intro-arrive 1s .12s both cubic-bezier(.16,.74,.3,1); }
.mge-public-ring { position:absolute; width:86%; height:70%; border:1px solid #819c9288; border-radius:50%; transform:rotate(-22deg); animation:mge-ring-enter 2.2s both cubic-bezier(.16,.74,.3,1); }
.mge-public-ring:nth-child(2) { width:94%; height:65%; transform:rotate(25deg); border-color:#b5a26aaa; animation-delay:.12s; }
.mge-public-ring:nth-child(3) { width:77%; height:90%; transform:rotate(65deg); border-color:#819c9270; animation-delay:.24s; }
.mge-public-ring::after { content:""; position:absolute; width:9px; height:9px; background:#c4a85f; border-radius:50%; right:12%; top:14%; box-shadow:0 0 18px #a68b46; }
.mge-public-seal { z-index:1; display:grid; place-items:center; width:49%; aspect-ratio:1; padding:14%; border:1px solid #f9fff4; border-radius:50%; background:#fff; box-shadow:0 26px 70px #1e3b3733; padding:7%; }
.mge-public-seal img { width:100%; height:auto; object-fit:contain; }
@keyframes mge-intro-arrive { from { opacity:.4; translate:0 25px; } to { opacity:1; translate:0 0; } }
@keyframes mge-ring-enter { from { opacity:0; scale:.66; } to { opacity:1; scale:1; } }
.mge-public-about { display:grid; grid-template-columns:1fr 1fr; gap:clamp(22px,5vw,65px); padding-block:clamp(43px,7vw,98px); }
.mge-public :is(h2,h3) { color:#152f36; }
.mge-public h2 { font-family:Georgia,"Times New Roman",serif; font-weight:500; letter-spacing:-.048em; font-size:clamp(32px,4.9vw,61px); }
.mge-public-about-copy { color:#435b60; align-self:end; }
.mge-public-about-copy p + p { margin-top:12px; }
.mge-public-values { grid-column:1/-1; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:15px; }
.mge-public-values article { background:#fff; border:1px solid #dce5db; border-radius:15px; padding:clamp(17px,2.5vw,32px); transition:translate .24s,box-shadow .24s; }
.mge-public-values article:hover { translate:0 -4px; box-shadow:0 15px 25px #1a332a15; }
.mge-public-values h3 { font-size:23px; margin-bottom:8px; }
.mge-public-values p,.mge-public-testimonials > p:not(.mge-kicker) { color:#435b60; }
.mge-books-feature { background:#142c37; color:#e6f0e7; }
.mge-books-feature-inner { display:grid; grid-template-columns:.85fr 1fr; align-items:center; gap:clamp(25px,6vw,85px); padding-block:clamp(40px,6.5vw,89px); }
.mge-books-feature h2 { color:#f6f8ec; }
.mge-books-feature .mge-kicker { color:#a9e0bb; }
.mge-books-feature p:not(.mge-kicker) { margin-top:15px; color:#d6e6df; max-width:43ch; }
.mge-books-feature .mge-button { background:#e0efbd; color:#24402b; }
.mge-books-feature .mge-button:hover { background:#f2f8e3; color:#24402b; }
.mge-book-art { position:relative; min-height:260px; display:grid; place-items:center; isolation:isolate; }
.mge-book-art > div { position:absolute; width:150px; height:202px; border-radius:5px 12px 12px 5px; transform:translateX(-60px) rotate(-16deg); z-index:-1; background:#8f8059; border:1px solid #fbf5b677; box-shadow:0 20px 36px #080d165e; }
.mge-book-art > div:nth-child(2) { background:#487268; transform:translateX(58px) rotate(17deg); }
.mge-book-art > div:nth-child(3) { position:relative; z-index:1; background:#edf0d8; transform:rotate(-4deg); border:4px double #af985a; color:#173632; display:flex; gap:6px; justify-content:center;align-items:center;flex-direction:column; font:26px/1 Georgia,serif; transition:transform .35s ease; }
.mge-book-art:hover > div:nth-child(3) { transform:translateY(-6px) rotate(1deg); }
.mge-public-testimonials { padding-block:clamp(48px,7.2vw,98px); }
.mge-public-testimonials > p:not(.mge-kicker) { margin-top:12px; }
.mge-public-quotes { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:15px; margin-top:23px; }
.mge-public-quotes figure { margin:0; border:1px solid #dce5db; border-radius:15px; padding:clamp(19px,2.5vw,30px); background:white; }
.mge-public-quotes blockquote { margin:0; border:0; padding:0; font:500 23px/1.39 Georgia,serif; color:#173338; }
.mge-public-quotes figcaption { margin-top:17px; color:#44625c; font-size:13px; }
.mge-reading-content { max-width:860px; margin:18px auto 0; }
.mge-reading-content p + p { margin-top:15px; }
.mge-book-card h2,.mge-profile-card h2 { font-size:clamp(22px,2.5vw,33px); margin:12px 0 9px; }
.mge-book-card img,.mge-profile-card img { display:block; width:100%; aspect-ratio:1.5; object-fit:cover; border-radius:10px; }
.mge-book-card a { display:inline-block; margin-top:14px; }
.mge-profile-role { font-weight:700; color:var(--mge-deep); }
.mge-profile-bio { margin-top:12px; color:var(--mge-muted); }
@media (max-width:650px) {
    .mge-public-hero-inner,.mge-public-about,.mge-books-feature-inner,.mge-public-values,.mge-public-quotes { grid-template-columns:1fr; }
    .mge-public-brandmark { width:min(100%,310px); margin-inline:auto; }
    .mge-public-hero h1 { font-size:clamp(41px,12vw,64px); }
    .mge-public-secondary { padding-left:0; min-height:41px; }
    .mge-public-about { gap:22px; }
    .mge-book-art { min-height:220px; transform:scale(.84); }
}

/* Shared premium layout */
:root { --mge-ink:#15273b; --mge-muted:#496071; --mge-deep:#0d4546; --mge-accent:#126b5c; --mge-paper:#f4f7f9; --mge-line:#dce6ea; --mge-mint:#e5f2ec; }
.mge-wrap { width:min(1160px,calc(100% - clamp(34px,8vw,108px))); }
.mge-header { box-shadow:0 2px 16px #12284009; }
.mge-header-inner { min-height:74px; gap:clamp(12px,2vw,28px); }
.mge-header .mge-brand { letter-spacing:-.03em; }
.mge-nav { gap:clamp(13px,2.15vw,32px); }
.mge-nav a,.mge-community summary { color:#263c4e; font-size:14px; font-weight:650; }
.mge-community { position:relative; }
.mge-community summary { cursor:pointer; padding:10px 0; white-space:nowrap; }
.mge-community summary:hover,.mge-community[open] summary { color:var(--mge-accent); }
.mge-community > div { position:absolute; top:100%; right:0; min-width:164px; padding:8px; background:#fff; border:1px solid var(--mge-line); border-radius:11px; box-shadow:0 20px 40px #14273923; }
.mge-community a { display:block; padding:6px 10px; border-radius:6px; }
.mge-community a:hover { background:var(--mge-mint); }
.mge-community a::after { display:none; }
.mge-button,.mge-main button.mge-button { border-radius:9px; letter-spacing:.005em; }
.mge-breadcrumb { display:flex; align-items:center; gap:9px; color:#b9d4d7; font:650 13px/1.4 var(--mge-font); margin:0 0 16px; }
.mge-breadcrumb a { color:#e0eeef; text-decoration:none; }
.mge-breadcrumb a:hover { text-decoration:underline; }

.mge-public-hero { background:radial-gradient(ellipse at 83% -25%,#27526b 0,transparent 63%),linear-gradient(130deg,#101b33,#132f41); border:0; position:relative; isolation:isolate; }
.mge-public-hero::before { content:"";position:absolute;inset:0;z-index:-1;background-image:linear-gradient(#93cfdb16 1px,transparent 1px),linear-gradient(90deg,#93cfdb16 1px,transparent 1px);background-size:44px 44px;mask-image:linear-gradient(100deg,transparent 24%,#000 94%); }
.mge-public-hero-inner { grid-template-columns:minmax(0,1.12fr) minmax(0,.88fr); min-height:clamp(422px,47vw,600px); gap:clamp(33px,6.3vw,88px); }
.mge-public-hero .mge-kicker { color:#9be7cd; margin-bottom:19px; }
.mge-public-hero h1 { font:770 clamp(45px,6.05vw,87px)/.995 var(--mge-font); letter-spacing:-.072em; color:#f5fcff; }
.mge-public-hero h1 em { color:#a7f3d7; font-style:normal;font-weight:770; }
.mge-public-intro { color:#d0e0ea; font-size:clamp(16px,1.5vw,19px); line-height:1.65; max-width:42ch; }
.mge-public-hero .mge-button { background:#a7f3d7; color:#103b3d; }
.mge-public-hero .mge-button:hover { background:#c3ffe8;color:#103b3d; }
.mge-public-secondary { color:#f1fcff; border:1px solid #c5dde46a; border-radius:9px; min-height:50px; padding:0 17px; }
.mge-public-secondary:hover { background:#ffffff16; color:white; text-decoration:none; }
.mge-public-brandmark { border:1px solid #a9cfd760; border-radius:22px; display:block; place-items:normal; aspect-ratio:auto; overflow:hidden; min-width:0; background:linear-gradient(145deg,#254558,#173548); box-shadow:0 22px 72px #09152866; }
.mge-platform-art { width:100%; background:radial-gradient(ellipse at 50% 65%,#598b936b,transparent 72%); position:relative; isolation:isolate; display:grid; place-items:center; min-height:clamp(220px,25vw,315px); overflow:hidden; }
.mge-platform-art::before { content:"";position:absolute;inset:0;background:radial-gradient(#a5e8db3d 1px,transparent 1px) 0 0/20px 20px;mask-image:radial-gradient(ellipse,#000,transparent 78%); }
.mge-platform-art .mge-public-ring { width:72%;height:58%;border-color:#9bebe78b; }
.mge-platform-art .mge-public-ring:nth-child(2) { width:85%;height:52%;border-color:#a2f1c4a0; }
.mge-platform-art .mge-public-ring:nth-child(3) { width:49%;height:76%;border-color:#aac8f07a; }
.mge-platform-art .mge-public-ring::after { background:#9ef5d8;box-shadow:0 0 16px 3px #a5fff47d; }
.mge-platform-art .mge-public-seal { width:clamp(100px,33%,160px); padding:5%; border-color:#f4fffb; box-shadow:0 0 0 12px #acebda24,0 20px 35px #080d1e77; }
.mge-platform-tools { width:100%; margin:0; padding:16px 22px; list-style:none; display:grid; gap:7px; background:#142d40a5; border-top:1px solid #b2e9e631; color:#e6f7f5; }
.mge-platform-tools li { display:flex; gap:9px; align-items:center;font-weight:650;font-size:14px; }
.mge-platform-symbol { width:25px;height:25px;display:grid;place-items:center;background:#95edcf2a;color:#bcffe4;border-radius:7px; }
.mge-platform-tools li:nth-child(2) .mge-platform-symbol { background:#a9c5f537;color:#dbecff; }
.mge-platform-tools li:nth-child(3) .mge-platform-symbol { background:#e7bf6c35;color:#ffebc2; }
.mge-public h2 { font:760 clamp(32px,4.55vw,55px)/1.08 var(--mge-font);letter-spacing:-.065em; }
.mge-public-about { grid-template-columns:1.08fr .92fr; }
.mge-public-values article { border-color:var(--mge-line); box-shadow:0 8px 18px #15273b09; }
.mge-public-values article h3 { color:#183248; font-size:22px; }
.mge-books-feature { background:linear-gradient(114deg,#11343d,#164d4d); }
.mge-books-feature h2 { color:#effdfb; }
.mge-books-feature .mge-button { background:#b3efd8;color:#103d3a; }
.mge-public-quotes figure { box-shadow:0 7px 18px #15273b09; }
.mge-public-quotes blockquote { font:550 clamp(17px,1.7vw,22px)/1.51 var(--mge-font); }
.mge-footer { background:#102236; }
.mge-footer-grid { align-items:start; }
.mge-footer-grid:has(> nav:nth-child(3):last-child) { grid-template-columns:1.3fr 1fr 1fr; }
.mge-footer nav a { color:#c0d8e2; }
.mge-footer-bottom { border-color:#bbd6ed39; }

.mge-inner-hero { background:radial-gradient(ellipse at 95% -12%,#26686f,transparent 60%),linear-gradient(115deg,#122942,#193d50); padding:clamp(32px,5.15vw,68px) 0; }
.mge-inner-hero h1 { font-size:clamp(38px,5.3vw,66px); color:#f4fbff; }
.mge-inner-hero p:not(.mge-kicker) { color:#d3e9ee; }
.mge-content { min-height:320px; }
.mge-content .mge-panel { border:1px solid var(--mge-line); border-radius:15px; box-shadow:0 8px 24px #15273b0a; }
.mge-content .mge-panel h2,.mge-workshop-history > h2 { font-size:clamp(23px,2.8vw,34px); }
.mge-portal-grid { display:grid; grid-template-columns:minmax(0,1.7fr) minmax(240px,1fr); gap:18px; }
.mge-portal-grid .mge-panel + .mge-panel { margin:0; }
.mge-portal-grid .mge-panel .mge-muted { font-size:14px; margin-top:15px; }
.mge-portal-related h2 { font-size:20px !important; margin-bottom:10px; }
.mge-portal-related a { display:flex; justify-content:space-between; color:#12675a; border-top:1px solid var(--mge-line); padding:10px 0; text-decoration:none;font-weight:650; }
.mge-portal-related a:hover { color:#0c443c; text-decoration:underline; }
.mge-profile-role { color:var(--mge-accent); }
.mge-workshop-history { margin-top:38px; }

.mge-account-layout { width:min(900px,calc(100% - 38px)); }
.mge-account-shell { border-radius:18px; box-shadow:0 24px 54px #16233a13; }
.mge-account-aside { background:radial-gradient(ellipse at 94% 100%,#1d6a65,transparent 72%),#172841; justify-content:center; }
.mge-account-aside .mge-kicker { color:#a2e7d0; }
.mge-account-aside h2 { font-size:clamp(30px,4vw,47px); }
.mge-account-brand { display:grid; place-items:center; width:clamp(76px,13vw,118px); aspect-ratio:1; border-radius:50%; padding:13px; background:#fff; box-shadow:0 0 0 8px #c1eee92f; margin:14px 0 2px; }
.mge-account-brand img { aspect-ratio:1; width:100%; height:auto; object-fit:contain; }
body.login { background:#f0f5f7; }
body.login #login { width:min(382px,calc(100% - 38px)); padding-top:6vh; }
body.login #login h1 a { background-image:url("../../uploads/2026/11/meridian-logo.jpg"); background-size:76px; width:76px; height:76px; border-radius:50%; }
body.login #login form { border:1px solid #dce6ea; border-radius:14px; box-shadow:0 18px 45px #13314615; }
body.login .button-primary { background:#126b5c; border-color:#126b5c; border-radius:7px; }

body.post-type-archive-courses .course-archive-page { padding-inline:0; }
.mge-catalog-intro { margin-top:23px; margin-bottom:19px; background:radial-gradient(ellipse at 100% 0%,#2a6970,transparent 62%),#172c46; }
body.wp-child-theme-meridian-learn .tutor-course-card { border-color:var(--mge-line); box-shadow:0 10px 25px #15273b12; }
body.wp-child-theme-meridian-learn .tutor-course-card h3 { font-weight:750; }
body.wp-child-theme-meridian-learn .tutor-dashboard-sidebar,body.wp-child-theme-meridian-learn .tutor-dashboard-header { background:#fafdff; border-color:var(--mge-line); }
body.wp-child-theme-meridian-learn .tutor-dashboard-body { background:#eff4f6; }
body.wp-child-theme-meridian-learn .tutor-dashboard-home-card { box-shadow:0 8px 18px #15273b0b; }
@media (max-width:820px) {
    .mge-header-inner { gap:0 12px; }
    .mge-nav { justify-content:center; }
    .mge-nav :is(a,summary) { font-size:13px; }
    .mge-public-hero-inner { gap:30px; }
}
@media (max-width:660px) {
    .mge-public-hero-inner,.mge-public-about,.mge-portal-grid { grid-template-columns:1fr; }
    .mge-public-brandmark { width:100%; }
    .mge-public-hero h1 { font-size:clamp(39px,10.8vw,66px); }
    .mge-platform-art { min-height:210px; }
    .mge-account-brand { display:none; }
    .mge-nav { justify-content:center; gap:4px 15px; }
    .mge-community summary { padding:5px 0; }
    .mge-community > div { z-index:3; }
    .mge-footer-grid:has(> nav:nth-child(3):last-child) { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .mge-footer-grid:has(> nav:nth-child(3):last-child) .mge-brand { grid-column:1/-1; }
}

/* Editorial homepage and coordinated member surfaces */
:root { --mge-ink:#23382f; --mge-accent:#25574a; --mge-deep:#174438; --mge-muted:#4d6258; --mge-line:#d9e0d9; --mge-paper:#f9f8f3; --mge-mint:#e7efe8; }
.mge-header { border-color:#dfe3dc; }
.mge-header .mge-brand { color:#1c342a; }
.mge-header .mge-button { background:#25574a; }
.mge-header .mge-button:hover { background:#174438; }
.mge-footer { background:#1b322c; }
.mge-footer nav a { color:#d0dfd4; }
.mge-footer-bottom { color:#cbd9ce; border-color:#b1c1b343; }
.mge-inner-hero,.mge-catalog-intro { background:radial-gradient(ellipse at 95% 0%,#346a56,transparent 65%),#203f35; }
.mge-inner-hero p:not(.mge-kicker),.mge-catalog-intro p { color:#dce9df; }
.mge-account-aside { background:radial-gradient(ellipse at 90% 80%,#386b58,transparent 76%),#233e35; }
body.wp-child-theme-meridian-learn .tutor-dashboard-body { background:#f3f6f2; }

.mer-campus { background:#f9f8f3; color:#23382f; }
.mer-campus-wrap { width:min(1160px,calc(100% - clamp(34px,8vw,112px))); margin-inline:auto; }
.mer-campus h1,.mer-campus h2 { font-family:Georgia,"Times New Roman",serif; font-weight:500; letter-spacing:-.05em; color:#223a31; }
.mer-campus h2 { font-size:clamp(35px,5vw,63px); line-height:1.03; }
.mer-campus h3 { color:#233e34; font:700 clamp(19px,2.15vw,28px)/1.15 var(--mge-font); }
.mer-campus-label { color:#306050; text-transform:uppercase; font-size:11px; font-weight:750; letter-spacing:.155em; margin-bottom:16px !important; }
.mer-campus-hero { background:linear-gradient(135deg,#f9f5e9 0%,#fbf8ef 45%,#f0f1e8); border-bottom:1px solid #e8e6d9; }
.mer-campus-hero-grid { display:grid; grid-template-columns:minmax(0,.86fr) minmax(0,1.14fr); align-items:center; gap:clamp(30px,5vw,77px); padding-block:clamp(36px,5.7vw,78px); }
.mer-campus-intro { animation:mer-campus-arrive .8s cubic-bezier(.17,.73,.32,1) both; }
.mer-campus-hero h1 { font-size:clamp(59px,7.4vw,104px); line-height:.97; margin:0; }
.mer-campus-hero h1 em { color:#2e6354; font-weight:400; font-style:italic; }
.mer-campus .mer-campus-lead { color:#435b50; font-size:clamp(16px,1.65vw,20px); max-width:37ch; margin-top:20px; line-height:1.57; }
.mer-campus-photo { position:relative; margin:0; border-radius:4px 28px 4px 4px; overflow:hidden; isolation:isolate; background:#365047; box-shadow:0 20px 60px #182a2327; animation:mer-campus-arrive .9s .08s cubic-bezier(.17,.73,.32,1) both; }
.mer-campus-photo::after { content:""; position:absolute; inset:12px; border:1px solid #fff8; border-radius:2px 17px 2px 2px; pointer-events:none; }
.mer-campus-photo img { display:block; width:100%; aspect-ratio:1.34; height:auto; object-fit:cover; object-position:center; transition:transform .65s ease; }
.mer-campus-photo:hover img { transform:scale(1.03); }
@keyframes mer-campus-arrive { from { opacity:.4; translate:0 19px; } to { opacity:1; translate:0 0; } }
.mer-campus-actions { display:flex; align-items:center; flex-wrap:wrap; gap:12px 19px; margin-top:25px; }
.mer-campus-button { display:inline-flex; align-items:center; justify-content:center; gap:13px; border-radius:6px; min-height:49px; padding:9px 16px; background:#25574a; color:#fff; font-weight:700; font-size:14px; text-decoration:none; transition:background .22s,translate .22s; }
.mer-campus-button:hover { color:#fff; background:#184538; translate:0 -2px; }
.mer-campus-secondary { display:inline-flex; align-items:center; gap:9px; color:#275949; font-weight:700; font-size:14px; text-decoration:none; min-height:42px; }
.mer-campus-secondary:hover { color:#184538; text-decoration:underline; text-underline-offset:4px; }
.mer-campus-paths { padding-block:clamp(42px,7vw,84px); }
.mer-campus-section-heading { display:flex; justify-content:space-between; align-items:end; gap:18px; margin-bottom:24px; }
.mer-campus-section-heading > p { color:#4d6258; max-width:34ch; }
.mer-campus-card-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; }
.mer-campus-path { display:flex; flex-direction:column; padding:clamp(18px,2.8vw,31px); border:1px solid #dbe1d8; color:#243e34; border-radius:10px; background:#fffdfa; text-decoration:none; transition:translate .23s,box-shadow .23s,border-color .23s; }
.mer-campus-path:hover { translate:0 -4px; color:#243e34; box-shadow:0 18px 30px #1728200c; border-color:#9ab7a8; }
.mer-campus-path-icon { display:grid; place-items:center; width:44px; height:44px; margin-bottom:17px; border-radius:9px; background:#e9f0e8; color:#28604d; font-size:23px; font-weight:650; }
.mer-campus-path:nth-child(2) .mer-campus-path-icon { background:#eee7d7; color:#704e27; }
.mer-campus-path:nth-child(3) .mer-campus-path-icon { background:#e6edf0; color:#355965; }
.mer-campus-path p { color:#4d6258; margin:11px 0 15px; }
.mer-campus-card-link { font-weight:700; color:#2b5c4b; margin-top:auto; font-size:14px; }
.mer-campus-about { background:#e9eee5; border-block:1px solid #dfe6dd; }
.mer-campus-about-grid,.mer-campus-library { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,.82fr); gap:clamp(24px,6vw,72px); align-items:center; padding-block:clamp(37px,6vw,80px); }
.mer-campus-about-grid > div:nth-child(2) p { color:#38574a; margin:0 0 12px; }
.mer-campus-library { grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr); }
.mer-campus-library h2 { margin:0 0 13px; }
.mer-campus-library p:not(.mer-campus-label) { color:#435b50; margin-bottom:19px; }
.mer-campus-library-visual { position:relative; display:flex; min-height:220px; gap:8px; padding:27px; align-items:center; justify-content:center; background:#e8ebdf; border:1px solid #d9e0d2; border-radius:4px 22px 4px 4px; overflow:hidden; }
.mer-campus-library-visual span { height:145px; width:30px; border-radius:4px; background:#638876; border:1px solid #ffffff61; box-shadow:4px 8px 12px #24372c29; transform:rotate(-8deg); border-block:6px double #ffffff4d; transition:transform .35s; }
.mer-campus-library-visual span:nth-child(2) { background:#9f7952; height:164px; transform:rotate(-3deg); }
.mer-campus-library-visual span:nth-child(3) { background:#254b3e; height:150px; transform:rotate(1deg); }
.mer-campus-library-visual span:nth-child(4) { background:#6b8290; height:128px; transform:rotate(12deg); }
.mer-campus-library-visual:hover span { transform:rotate(0) translateY(-4px); }
.mer-campus-testimonials { border-top:1px solid #dde3da; padding-block:clamp(36px,6vw,75px); background:#f2f2e9; }
.mer-campus-testimonials h2 { margin-bottom:14px; }
.mer-campus-testimonials p:not(.mer-campus-label) { color:#4d6258; }
.mer-campus-testimonials .mer-campus-card-grid { margin-top:19px; }
.mer-campus-samples { margin-top:13px; }
.mer-campus-samples summary { font-size:14px; font-weight:700; color:#2d584a; cursor:pointer; }
.mer-campus-samples p { margin-top:10px; }
.mer-campus-quote { margin:0; padding:20px; background:#fff; border:1px solid #dce3d9; border-radius:10px; }
.mer-campus-quote blockquote { margin:0; padding:0; border:0; color:#253f34; font:500 21px/1.38 Georgia,serif; }
.mer-campus-quote figcaption { margin-top:12px; color:#4d6258; font-size:13px; }
@media (max-width:700px) {
    .mer-campus-hero-grid,.mer-campus-about-grid,.mer-campus-library,.mer-campus-card-grid { grid-template-columns:1fr; }
    .mer-campus-hero h1 { font-size:clamp(48px,13vw,75px); }
    .mer-campus-section-heading { display:grid; gap:9px; }
    .mer-campus-library-visual { min-height:180px; }
    .mer-campus-photo img { aspect-ratio:1.44; }
}

/* The dashboard directory shares Meridian's crest and member-page palette. */
body.wp-child-theme-meridian-learn .tutor-dashboard-sidebar-logo img {
    width: auto;
    height: 54px;
    max-width: 100%;
    object-fit: contain;
}
.mge-dashboard-team {
    --mge-team-border: #d9e5df;
    margin: 0 0 24px;
    padding: clamp(14px, 2.4vw, 25px);
    border: 1px solid var(--mge-team-border);
    border-radius: 15px;
    background: radial-gradient(ellipse at 100% 0%, #e8f1e7, transparent 63%), #f9fbf7;
    color: var(--mge-ink);
    scroll-margin-top: 84px;
}
.mge-dashboard-team-head { display: flex; gap: 13px; align-items: center; margin-bottom: 17px; }
.mge-dashboard-team-head img { flex: 0 0 52px; width: 52px; height: 52px; padding: 4px; object-fit: contain; border: 1px solid var(--mge-team-border); border-radius: 12px; background: white; }
.mge-dashboard-team h2 { color: var(--mge-ink); font: 750 clamp(21px, 2.3vw, 28px)/1.15 var(--mge-font); letter-spacing: -.035em; margin: 0 0 3px; }
.mge-dashboard-team h3 { color: var(--mge-ink); font: 750 17px/1.25 var(--mge-font); letter-spacing: -.02em; margin: 0; }
.mge-dashboard-team p { margin: 0; color: var(--mge-muted); font: 400 14px/1.45 var(--mge-font); }
.mge-dashboard-team-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.mge-dashboard-team-card { display: flex; flex-direction: column; gap: 11px; min-width: 0; padding: 15px; border: 1px solid var(--mge-team-border); border-radius: 11px; background: white; transition: box-shadow .2s ease; }
.mge-dashboard-team-card:hover { box-shadow: 0 8px 21px #23504411; }
.mge-dashboard-profiles { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; }
.mge-dashboard-profiles li { display: flex; gap: 9px; align-items: center; }
.mge-dashboard-profiles li img, .mge-dashboard-profiles .mge-profile-initials { flex: 0 0 37px; width: 37px; height: 37px; border-radius: 9px; object-fit: cover; }
.mge-dashboard-profiles strong, .mge-dashboard-profiles small { display: block; font: 650 14px/1.3 var(--mge-font); overflow-wrap: anywhere; }
.mge-dashboard-profiles small { margin-top: 2px; color: var(--mge-muted); font-size: 12px; font-weight: 500; }
.mge-profile-initials { display: grid; width: 58px; height: 58px; place-items: center; border-radius: 12px; background: #e7efe8; color: #23574a; font: 750 18px/1 var(--mge-font); }
.mge-dashboard-profiles .mge-profile-initials { font-size: 13px; }
.mge-dashboard-team-actions { display: flex; flex-wrap: wrap; gap: 8px 14px; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--mge-team-border); }
.mge-dashboard-team-actions a { color: #245c4e; font: 700 13px/1.4 var(--mge-font); text-decoration: none; }
.mge-dashboard-team-actions a:hover { text-decoration: underline; text-underline-offset: 3px; }
.mge-dashboard-team-actions a:focus-visible { outline: 2px solid #265f50; outline-offset: 3px; }
.mge-directory-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px 20px; flex-wrap: wrap; margin-bottom: 16px; }
@media (max-width: 580px) {
    .mge-dashboard-team-grid { grid-template-columns: minmax(0,1fr); }
}
@media (prefers-reduced-motion: reduce) {
    .mge-dashboard-team-card { transition: none; }
}

/* Meridian Learn — crest-led layout and motion */
:root {
    --mge-ink: #142740;
    --mge-muted: #4f6073;
    --mge-deep: #102441;
    --mge-accent: #234d78;
    --mge-paper: #f8f6f0;
    --mge-line: #dce2e9;
    --mge-mint: #eaf0f8;
    --meridian-gold: #ebc980;
    --meridian-serif: Georgia, "Times New Roman", serif;
    --meridian-ease: cubic-bezier(.16, 1, .3, 1);
}

.mge-header {
    background: #fffefb;
    border-color: #dbd9d2;
    box-shadow: none;
}
.mge-header-inner { min-height: 78px; }
.mge-header .mge-brand, .mge-nav a, .mge-community summary {
    color: var(--mge-ink);
}
.mge-header .mge-brand img {
    padding: 2px;
    background: #fff;
    border: 1px solid #ece5d5;
    border-radius: 8px;
}
.mge-nav a[aria-current="page"], .mge-nav a:hover,
.mge-community summary:hover { color: var(--mge-accent); }
.mge-nav a::after { background: #aa7832; }
.mge-header .mge-button, .mge-main .mge-button, .mge-main button.mge-button {
    background: #1a395e;
    color: #fff;
    border-color: transparent;
}
.mge-header .mge-button:hover, .mge-main .mge-button:hover, .mge-main button.mge-button:hover {
    background: #284d77;
    color: #fff;
}
.mge-main .mge-button-light {
    background: #edf2f9;
    color: #1c426e;
    border-color: #dce6f0;
}
.mge-main .mge-button-light:hover { background: #dfe9f7; color: #183858; }
.mge-header :focus-visible, .mge-main :focus-visible,
.mge-dashboard-team :focus-visible { outline: 3px solid #b37b32; outline-offset: 4px; }

.mer-campus { background: #fcfbf7; color: var(--mge-ink); }
.mer-campus-wrap { width: min(1160px, calc(100% - clamp(36px, 8vw, 112px))); }
.mer-campus h1, .mer-campus h2 { color: var(--mge-ink); text-wrap: balance; }
.mer-campus h2 { font-size: clamp(34px, 5vw, 60px); }
.mer-campus h3 { color: var(--mge-ink); }
.mer-campus-label {
    display: flex;
    align-items: center;
    gap: 11px;
    color: #6e512a;
    line-height: 1.35;
}
.mer-campus-label::before {
    content: "";
    flex: 0 0 23px;
    height: 1px;
    background: currentColor;
}
.mer-campus-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    border-bottom: 3px solid #b68a4c;
    background: radial-gradient(ellipse at 100% 4%, #2d4e72 0, transparent 59%),
        linear-gradient(125deg, #101e34, #142b49 78%);
}
.mer-campus-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: repeating-radial-gradient(ellipse at 98% 10%, transparent 0 37px, #eac5871b 38px 39px);
    mask-image: linear-gradient(105deg, transparent 26%, #000 75%);
    pointer-events: none;
}
.mer-campus-hero-grid {
    grid-template-columns: minmax(0, .97fr) minmax(0, 1.03fr);
    gap: clamp(28px, 6vw, 84px);
    padding-block: clamp(43px, 5.8vw, 83px);
}
.mer-campus-hero h1 {
    color: #fffaf0;
    font-size: clamp(56px, 7.3vw, 104px);
    line-height: .94;
    text-wrap: initial;
}
.mer-campus-hero h1 em { color: var(--meridian-gold); }
.mer-campus-hero .mer-campus-label { color: var(--meridian-gold); }
.mer-campus .mer-campus-lead { color: #dce6f3; max-width: 38ch; margin-top: 23px; }
.mer-campus-actions { gap: 12px 15px; margin-top: 29px; }
.mer-campus-button {
    min-height: 49px;
    padding-inline: 19px;
    background: #17395e;
    color: #fff;
    border-radius: 8px;
}
.mer-campus-button:hover { background: #264f7c; }
.mer-campus-hero .mer-campus-button {
    background: var(--meridian-gold);
    color: #15263c;
}
.mer-campus-hero .mer-campus-button:hover { background: #f8db9a; color: #15263c; }
.mer-campus-secondary { color: #234d78; }
.mer-campus-secondary:hover { color: #122f53; }
.mer-campus-hero .mer-campus-secondary { color: #f3f6fa; padding-inline: 8px; }
.mer-campus-hero .mer-campus-secondary:hover { color: #ffe1a3; }
.mer-campus-photo {
    border-radius: 46% 46% 13px 13px / 38% 38% 13px 13px;
    border: 1px solid #e8c388a3;
    background: #243348;
    box-shadow: 0 0 0 8px #eac68e16, 0 29px 55px #070d1880;
}
.mer-campus-photo::after {
    inset: 8px;
    border-color: #fce2b484;
    border-radius: 46% 46% 7px 7px / 38% 38% 7px 7px;
}
.mer-campus-photo img { aspect-ratio: 1.27; object-position: 48% center; }
.mer-campus-paths { padding-block: clamp(48px, 7vw, 92px); }
.mer-campus-section-heading { margin-bottom: clamp(23px, 3.5vw, 39px); }
.mer-campus-section-heading > p, .mer-campus-path p,
.mer-campus-library p:not(.mer-campus-label), .mer-campus-testimonials p:not(.mer-campus-label) {
    color: var(--mge-muted);
}
.mer-campus-card-grid { gap: clamp(12px, 2vw, 22px); }
.mer-campus-path {
    position: relative;
    padding: clamp(20px, 3vw, 34px);
    border: 1px solid var(--mge-line);
    border-top: 3px solid #b48745;
    border-radius: 6px 6px 15px 15px;
    background: #fff;
    color: var(--mge-ink);
    box-shadow: 0 6px 22px #182a4410;
}
.mer-campus-path:hover, .mer-campus-path:focus-visible {
    color: var(--mge-ink);
    box-shadow: 0 16px 36px #182a4420;
    border-color: #b48745;
}
.mer-campus-path-icon, .mer-campus-path:nth-child(2) .mer-campus-path-icon,
.mer-campus-path:nth-child(3) .mer-campus-path-icon {
    margin-bottom: 21px;
    background: #eaf0f8;
    color: #25466b;
}
.mer-campus-path:nth-child(2) .mer-campus-path-icon { background: #f6eedf; color: #785027; }
.mer-campus-path:nth-child(3) .mer-campus-path-icon { background: #e6efeb; color: #285d51; }
.mer-campus-card-link { color: #234d78; }
.mer-campus-card-link > span, .mer-campus-button > span {
    display: inline-block;
    transition: transform .32s var(--meridian-ease);
}
.mer-campus-path:hover .mer-campus-card-link > span,
.mer-campus-button:hover > span { transform: translateX(4px); }
.mer-campus-about { background: #edeff4; border-color: #dce2ea; }
.mer-campus-about-grid > div:nth-child(2) p { color: #41556e; }
.mer-campus-library { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.mer-campus-library-visual {
    min-height: clamp(190px, 26vw, 295px);
    border: 1px solid #ae884d;
    border-radius: 12px 60px 12px 12px;
    background: radial-gradient(ellipse at 50% 20%, #446389, #172c49 78%);
    box-shadow: 0 14px 34px #172b481e;
}
.mer-campus-library-visual span {
    height: 145px;
    width: clamp(22px, 4vw, 45px);
    background: #416887;
    border-color: #e6cb954f;
    box-shadow: 5px 13px 17px #0915258c;
}
.mer-campus-library-visual span:nth-child(2) { background: #b58d53; }
.mer-campus-library-visual span:nth-child(3) { background: #315f56; }
.mer-campus-library-visual span:nth-child(4) { background: #77719a; }
.mer-campus-testimonials { background: #f3efea; border-color: #e7dfd4; }
.mer-campus-quote { border-color: #e5d9c8; border-left: 3px solid #b48745; }
.mer-campus-quote blockquote { color: var(--mge-ink); }
.mer-campus-samples summary { color: #204871; }

.mge-footer { background: #10213a; border-top: 3px solid #b68a4c; }
.mge-footer nav a, .mge-footer-bottom { color: #d5e0ec; }
.mge-footer nav h2 { color: #f7d79a; }
.mge-footer nav a:hover { color: #f7d79a; text-underline-offset: 4px; }
.mge-inner-hero, .mge-catalog-intro, .mge-account-aside {
    background: radial-gradient(ellipse at 92% 0, #385b80, transparent 68%), #162d4b;
    border-bottom-color: #b68a4c;
}
.mge-inner-hero h1, .mge-catalog-intro h1, .mge-account-aside h2 {
    font-family: var(--meridian-serif);
    font-weight: 500;
    color: #fffaf0;
    letter-spacing: -.04em;
}
.mge-inner-hero p:not(.mge-kicker), .mge-catalog-intro p, .mge-account-aside p:not(.mge-kicker) {
    color: #dde8f4;
}
.mge-account-aside .mge-kicker, .mge-inner-hero .mge-kicker { color: var(--meridian-gold); }
.mge-account-layout {
    width: min(980px, calc(100% - 36px));
    padding-block: clamp(28px, 5.6vw, 78px);
}
.mge-account-shell {
    border-color: #e0dfda;
    border-radius: 19px;
    box-shadow: 0 23px 60px #1727401b;
}
.mge-account-layout h1 { color: var(--mge-ink); }
.mge-account-brand { box-shadow: 0 0 0 7px #e5c58735; }
.mge-account-steps [aria-current] {
    background: #edf2fa;
    border-color: #bdd0e6;
    color: #183d69;
}
.mge-account-layout .mge-form input:not([type="checkbox"]):focus {
    border-color: #325f8e;
    box-shadow: 0 0 0 3px #325f8e20;
}
.mge-content .mge-panel { border-color: var(--mge-line); box-shadow: 0 9px 26px #1727400c; }
.mge-content .mge-profile-card img { object-position: center 33%; }
.mge-profile-role, .mge-text-link, .mge-portal-related a, .mge-dashboard-team-actions a {
    color: #244d77;
}
.mge-profile-initials { background: #eaf0f8; color: #244d77; }
.mge-schedule-nav a { color: #234d78; }
.mge-assistant-trigger { background: #18395d; }
.mge-assistant-head { background: #172f4e; }

body.wp-child-theme-meridian-learn .tutor-dashboard-body { background: #f0f3f8; }
body.wp-child-theme-meridian-learn .tutor-dashboard-header,
body.wp-child-theme-meridian-learn .tutor-dashboard-sidebar { background: #fff; }
body.wp-child-theme-meridian-learn .tutor-course-card,
body.wp-child-theme-meridian-learn .tutor-dashboard-home-card {
    border-color: #dce3ec;
    box-shadow: 0 8px 25px #1024410d;
}
.mge-dashboard-team {
    --mge-team-border: #d9e2ee;
    border-top: 3px solid #b68a4c;
    background: radial-gradient(ellipse at top right, #e8eef8, transparent 70%), #fdfdfb;
}
.mge-dashboard-team-card { transition: box-shadow .28s, border-color .28s; }
.mge-dashboard-team-card:hover { border-color: #a8bad1; box-shadow: 0 9px 22px #17325015; }

@media (min-width: 821px) and (max-width: 1050px) {
    .logged-in .mge-header-inner {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 0 14px;
        padding-top: 8px;
    }
    .logged-in .mge-nav {
        grid-column: 1 / -1;
        grid-row: 2;
        justify-content: center;
        min-height: 40px;
    }
}
@media (max-width: 820px) {
    .mge-header-inner { min-height: 72px; gap: 3px 12px; }
    .mge-nav { justify-content: center; }
    .mge-nav a, .mge-community summary { min-height: 40px; align-content: center; }
}
@media (max-width: 700px) {
    .mer-campus-hero-grid, .mer-campus-library { grid-template-columns: minmax(0, 1fr); }
    .mer-campus-hero-grid { gap: 31px; }
    .mer-campus-hero h1 { font-size: clamp(50px, 12.3vw, 78px); }
    .mer-campus-photo { width: min(100%, 460px); justify-self: center; }
    .mer-campus-photo img { aspect-ratio: 1.5; }
    .mer-campus-library-visual { min-height: 200px; }
}
@media (max-width: 420px) {
    .mge-nav { column-gap: 11px; }
    .mge-nav a, .mge-community summary { font-size: 12px; }
    .mer-campus-hero h1 { font-size: clamp(45px, 12.4vw, 52px); }
    .mer-campus-hero .mer-campus-secondary { padding-inline: 1px; }
}

@media (prefers-reduced-motion: no-preference) {
    .mer-campus-intro { animation: none; }
    .mer-campus-hero::before { animation: meridian-lines 1.55s var(--meridian-ease) both; }
    .mer-campus-intro .mer-campus-label { animation: meridian-rise .66s .04s var(--meridian-ease) both; }
    .mer-campus-intro h1 { animation: meridian-rise .96s .12s var(--meridian-ease) both; }
    .mer-campus-intro .mer-campus-lead { animation: meridian-rise .8s .25s var(--meridian-ease) both; }
    .mer-campus-intro .mer-campus-actions { animation: meridian-rise .75s .34s var(--meridian-ease) both; }
    .mer-campus-photo { animation: meridian-frame 1.22s .05s var(--meridian-ease) both; }
    .mer-campus-photo img { animation: meridian-photo 1.65s .06s var(--meridian-ease) both; }
    .mer-campus .mge-revealed, .mge-profile-card.mge-revealed {
        animation: meridian-rise .82s var(--meridian-ease) both;
    }
    .mer-campus-path:nth-child(2).mge-revealed { animation-delay: .08s; }
    .mer-campus-path:nth-child(3).mge-revealed { animation-delay: .16s; }
    .mer-campus-library:has(.mge-revealed) .mer-campus-library-visual span {
        animation: meridian-book .76s var(--meridian-ease) backwards;
    }
    .mer-campus-library:has(.mge-revealed) .mer-campus-library-visual span:nth-child(2) { animation-delay: .10s; }
    .mer-campus-library:has(.mge-revealed) .mer-campus-library-visual span:nth-child(3) { animation-delay: .18s; }
    .mer-campus-library:has(.mge-revealed) .mer-campus-library-visual span:nth-child(4) { animation-delay: .26s; }
    .mge-inner-hero .mge-wrap, .mge-catalog-intro,
    .mge-account-shell, .mge-dashboard-team {
        animation: meridian-rise .72s var(--meridian-ease) both;
    }
    .mge-account-shell .mge-form { animation: meridian-rise .69s .13s var(--meridian-ease) both; }
    .mge-assistant section:not([hidden]) { animation: meridian-rise .35s var(--meridian-ease) both; }
}
@keyframes meridian-rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: translateY(0); } }
@keyframes meridian-lines { from { opacity: 0; transform: scale(1.09); } to { opacity: 1; transform: scale(1); } }
@keyframes meridian-frame { from { opacity: 0; transform: translate(15px, 18px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes meridian-photo { from { scale: 1.1; } to { scale: 1; } }
@keyframes meridian-book { from { opacity: .1; translate: 0 30px; } to { opacity: 1; translate: 0 0; } }
@media (prefers-reduced-motion: reduce) {
    .mer-campus-path:hover, .mer-campus-button:hover,
    .mer-campus-photo:hover img, .mer-campus-library-visual:hover span,
    .mer-campus-path:hover .mer-campus-card-link > span, .mer-campus-button:hover > span {
        transform: none;
        translate: none;
    }
    .mge-dashboard-team-card { transition: none; }
}

/* Meridian homepage polish */
.mer-campus .mer-campus-hero-grid > *,
.mer-campus .mer-campus-card-grid > * {
    min-width: 0;
}
.mer-campus .mer-campus-intro h1,
.mer-campus .mer-campus-section-heading h2 {
    text-wrap: balance;
}
.mer-campus .mer-campus-path {
    border-top: 3px solid #b47830;
}
.mer-campus .mer-campus-path:nth-child(2) {
    border-top-color: #0e675b;
}
.mer-campus .mer-campus-path:nth-child(3) {
    border-top-color: #54718b;
}
.mer-campus a:focus-visible {
    outline: 3px solid currentColor;
    outline-offset: 5px;
}
@media (max-width: 600px) {
    .mer-campus .mer-campus-actions {
        display: grid;
        gap: .75rem;
    }
    .mer-campus .mer-campus-actions a {
        justify-content: center;
        min-height: 44px;
        white-space: normal;
    }
}
@media (prefers-reduced-motion: no-preference) {
    .mer-campus .mer-campus-intro h1,
    .mer-campus .mer-campus-intro .mer-campus-lead,
    .mer-campus .mer-campus-intro .mer-campus-actions {
        animation-duration: .4s;
        animation-delay: 0s;
    }
    .mer-campus .mer-campus-photo,
    .mer-campus .mer-campus-photo img {
        animation-duration: .55s;
    }
}
