/* Responsive and visual refinement against the live portal, 15 Nov 2026. */
.catalog-toolbar.subcard-glass{border:0}

/* Three balanced statistics, with the same rhythm in both overview tabs. */
.stats-card .stat-boxes>.stat-item,
.stat-boxes.subcard-glass>.stat-item{
 display:flex;flex-direction:column;align-items:center;justify-content:space-between;
 text-align:center;gap:5px;padding:12px 8px;
}
.stat-boxes .stat-item>.circle{position:static;align-self:center;display:grid;place-items:center;margin:0}
.stat-boxes .stat-item>strong{margin:4px 0 0}
.stat-boxes .stat-item>.subcard-kicker,.stat-boxes .stat-item>.stat-caption{width:100%;text-align:center}

.calendar-day.is-today{
 background:var(--m3e-sys-color-secondary-container);
 color:var(--m3e-sys-color-on-secondary-container);
 border:1px solid var(--m3e-sys-color-outline-variant);box-shadow:none;
}
.calendar-day.is-today .calendar-day-heading>time{
 display:inline;place-items:normal;width:auto;height:auto;border-radius:0;
 background:transparent;color:inherit;font-weight:650;
}
.calendar-day.is-today .calendar-today-label{font-weight:550}

/* Typographic course artwork follows the production covers, using flat M3 roles. */
.catalog-cover.m3-course-cover[data-year]{
 --cover-bg:var(--m3e-sys-color-secondary-container);--cover-ink:var(--m3e-sys-color-on-secondary-container);
 display:flex;align-items:flex-start;justify-content:center;flex-direction:column;
 position:relative;isolation:isolate;overflow:hidden;padding:16px 18px;
 background:var(--cover-bg);color:var(--cover-ink);
}
.catalog-cover.m3-course-cover[data-year="2"]{--cover-bg:var(--m3e-sys-color-tertiary-container);--cover-ink:var(--m3e-sys-color-on-tertiary-container)}
.catalog-cover.m3-course-cover[data-year="3"]{--cover-bg:var(--m3e-sys-color-primary-container);--cover-ink:var(--m3e-sys-color-on-primary-container)}
.catalog-cover.m3-course-cover[data-year="other"]{--cover-bg:var(--m3e-sys-color-surface-container-highest);--cover-ink:var(--m3e-sys-color-on-surface)}
.m3-course-cover::before{
 content:'';position:absolute;z-index:0;width:150px;height:150px;
 inset:auto -45px -65px auto;border-radius:50% 50% 20% 50%;
 background:currentColor;opacity:.07;transform:rotate(-18deg);
}
.m3-course-cover .cover-series{
 position:absolute;z-index:1;top:12px;left:18px;right:18px;bottom:auto;
 font-size:8px;font-weight:600;letter-spacing:.12em;text-transform:uppercase;
}
.m3-course-cover .cover-title{
 position:relative;z-index:1;inset:auto;max-width:100%;
 font-family:var(--m3e-ref-typeface-brand);font-size:30px;font-weight:600;line-height:1.05;
 overflow-wrap:normal;text-wrap:balance;
}
.m3-course-cover[data-title-length="medium"] .cover-title{font-size:25px}
.m3-course-cover[data-title-length="long"] .cover-title{font-size:22px}
.m3-course-cover .cover-year{
 position:absolute;z-index:1;left:18px;bottom:10px;right:auto;top:auto;
 font-size:9px;line-height:12px;font-weight:500;
}
.catalog-cover.m3-course-cover .cover-initials{
 display:block;position:absolute;z-index:0;inset:auto -1px -24px auto;
 font-family:var(--m3e-ref-typeface-brand);font-size:144px;line-height:1;font-weight:650;
 opacity:.06;pointer-events:none;
}
.course-detail-cover.m3-course-cover .cover-title{font-size:42px;max-width:90%}
.course-detail-cover.m3-course-cover[data-title-length="long"] .cover-title{font-size:32px}
.course-detail-cover.m3-course-cover .cover-series{top:18px}
.course-detail-cover.m3-course-cover .cover-year{bottom:16px}
.course-detail-cover.m3-course-cover .cover-initials{font-size:220px;bottom:-36px}
.content-course-cover.m3-course-cover{align-items:center;justify-content:center;padding:0}
.content-course-cover.m3-course-cover :is(.cover-title,.cover-series,.cover-year){display:none}
.content-course-cover.m3-course-cover .cover-initials{
 position:relative;inset:auto;font-size:40px;opacity:1;line-height:1;
}

/* Services use the production's text-first layout without duplicate illustrations. */
.service-overview-art,.service-card-art{display:none!important}
.service-overview-card.ui-card{display:block;min-height:0}
.service-card.ui-card,.public-services-grid .service-card{
 grid-template-columns:minmax(0,1fr);grid-template-rows:1fr auto;min-height:220px;gap:20px;
}
.service-card .service-card-copy{grid-column:1;grid-row:1;max-width:none;width:100%}
.service-card .service-card-copy>span:last-child{max-width:none}
.service-card .service-card-meta{grid-column:1;grid-row:2}

/* A compact, aligned footer and a clearly visible M3 container for social links. */
.page-shell>.site-footer{
 width:100%;max-width:var(--dashboard-max);min-height:0;margin:28px auto 0;padding:28px;
 border:0;border-radius:var(--m3e-sys-shape-corner-extra-large);
 background:var(--m3e-sys-color-surface-container-low);color:var(--m3e-sys-color-on-surface-variant);
}
.site-footer .footer-content{
 display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr) minmax(0,1fr);
 gap:24px;min-height:0;align-items:start;
}
.footer-identity,.footer-details,.footer-support{display:flex;flex-direction:column;gap:12px;min-width:0}
.footer-brand{display:flex;align-items:center;gap:12px;color:var(--m3e-sys-color-on-surface)}
.site-footer .footer-mark{margin:0;flex:none}
.site-footer .footer-mark img{width:27px;height:36px;object-fit:contain}
.footer-brand strong{display:block;font-size:16px;font-weight:550}
.footer-brand small{font-size:11px;line-height:16px;color:var(--text-secondary)}
.site-footer address{font-style:normal;margin:0;font-size:12px;line-height:1.7}
.site-footer .copyright{font-size:10px;line-height:1.6;max-width:40ch}
.footer-heading{font-size:14px;font-weight:550;color:var(--m3e-sys-color-on-surface);margin:0}
.site-footer .footer-contact{display:grid;gap:2px;margin:0;padding:0;list-style:none}
.site-footer .footer-contact li{display:flex;align-items:center;gap:8px;min-width:0}
.site-footer .footer-contact .m3e-icon{font-size:18px;width:18px;flex:none;color:var(--m3e-sys-color-primary)}
.site-footer .footer-contact a{display:flex;align-items:center;min-height:36px;font-size:12px;overflow-wrap:anywhere}
.site-footer .footer-links{display:flex;flex-wrap:wrap;gap:8px 16px;margin:0;font-size:12px}
.site-footer .footer-links a{display:flex;align-items:center;min-height:36px;color:var(--m3e-sys-color-primary)}
.site-footer .footer-redesign-help{position:static;margin:0;display:flex;flex-wrap:wrap;gap:8px}
.site-footer .footer-redesign-help p{flex-basis:100%;font-size:12px;line-height:1.5}
.site-footer .footer-redesign-help .m3e-button{font-size:12px;min-height:36px;padding:8px 12px;width:auto}
.site-footer .social-links{
 position:relative;inset:auto;display:flex;align-items:center;justify-content:center;
 align-self:flex-start;gap:4px;width:max-content;max-width:100%;min-height:0;
 margin:4px 0 0;padding:6px;border:0;border-radius:var(--m3e-sys-shape-corner-extra-large);
 background:var(--m3e-sys-color-primary);color:var(--m3e-sys-color-on-primary);
}
.site-footer .social-links::before,.site-footer .social-links::after{display:none}
.site-footer .social-links a,.site-footer .social-links .social-brand-link{
 position:relative;isolation:isolate;overflow:hidden;display:grid;place-items:center;
 width:40px;height:40px;flex:0 0 40px;margin:0;padding:0;border:0;border-radius:50%;
 background:transparent;color:inherit;
}
.site-footer .social-links a:hover{background:color-mix(in srgb,currentColor 12%,transparent)}
.footer-social-icon{display:block;width:20px;height:20px;background:currentColor;mask:var(--social-icon) center/contain no-repeat}
.social-links .m3e-icon{font-size:22px}

/* Appearance belongs to profile settings. */
.settings-appearance-card{display:grid;grid-template-columns:44px minmax(0,1fr) auto;align-items:center;gap:16px;margin-bottom:16px}
.settings-appearance-card h2{font-size:20px;line-height:1.25}
.settings-appearance-card p{font-size:12px;line-height:1.6;color:var(--text-secondary);margin-top:6px}
.recordings-total>span{font-size:11px;line-height:15px;max-width:12ch}

@media(max-width:1199px){
 .catalog-toolbar:has(.mobile-year-filter){display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:center}
 .catalog-toolbar:has(.mobile-year-filter):not(:has(.catalog-sort-control:not([hidden]))){grid-template-columns:minmax(0,1fr)}
 .catalog-toolbar .catalog-year-filters{display:none!important}
 .catalog-toolbar .mobile-year-filter:not([hidden]){display:block!important;min-width:0;width:100%}
 .app-page .mobile-year-filter .ui-select-toggle.m3e-button{font-size:14px;padding-inline:10px;gap:6px}
 .mobile-year-filter .ui-select-toggle .m3e-icon{font-size:18px}
 .catalog-toolbar .catalog-sort-control{width:100%;min-width:0;margin:0}
 .catalog-toolbar .catalog-sort-control .m3e-button{width:100%;min-height:44px;min-block-size:44px;font-size:14px}
 .catalog-toolbar:has(.mobile-year-filter.is-open){position:relative;z-index:40}
 .shared-hero-row,.shared-hero-row.has-guest-login{flex-wrap:nowrap;gap:8px}
 .shared-hero-row>.shared-hero,.shared-hero-row.has-guest-login>.shared-hero{flex:1 1 0;min-width:0;padding-inline:20px}
 .shared-hero-row .shared-hero-back.m3e-button{
  order:0;align-self:stretch;flex:0 0 88px;width:88px;max-width:88px;
  display:flex;flex-direction:column;justify-content:center;gap:6px;
  min-height:80px;min-block-size:80px;height:auto;padding:10px 7px;
  font-size:12px;line-height:16px;text-align:center;border-radius:var(--m3e-sys-shape-corner-extra-large);
 }
 .shared-hero-back span{white-space:normal}
 .site-footer .footer-content{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
 .site-footer .footer-support{grid-column:1/-1;display:grid;grid-template-columns:1fr auto;align-items:center;gap:16px}
 .site-footer .footer-support>.footer-heading{grid-column:1/-1}
}
@media(max-width:700px){
 .brand-header .brand{max-width:100%}
 .sidebar .side-nav{flex:5 1 0;min-width:0}
 .sidebar .profile-dock{flex:1 1 0;min-width:0;width:auto;height:60px;margin:0;display:flex;align-items:center;justify-content:center}
 .sidebar button.profile{width:100%;height:60px;display:grid;grid-template-rows:32px 14px;align-content:center;justify-items:center;align-items:center;gap:0;padding:0 0 4px}
 .sidebar .profile .profile-icon{width:44px;height:30px;padding:0;background:transparent;border-radius:var(--m3e-sys-shape-corner-full);color:var(--text-secondary)}
 .sidebar .profile-icon .m3e-icon{font-size:24px}
 .sidebar .profile b{display:block;margin:0;font-size:8px;line-height:16px;font-weight:500;color:var(--text-secondary)}
 .sidebar .profile[aria-expanded=true] .profile-icon{background:var(--m3e-sys-color-secondary-container);color:var(--m3e-sys-color-on-secondary-container)}
 .dashboard .activity-content{display:flex;flex-direction:column;gap:16px;height:auto}
 .dashboard .booking-shortcuts{margin-top:0}
 .dashboard .schedule-card .events{display:grid;grid-template-columns:minmax(0,1fr);grid-auto-rows:auto;height:auto;min-height:0;flex:none;overflow:visible;scroll-snap-type:none;gap:12px;padding:0}
 .dashboard .schedule-card .event{flex:none;width:100%;min-width:0;min-height:0;height:auto;margin:0;padding:14px;gap:8px;scroll-snap-align:none}
 .dashboard .recordings-card{height:auto;min-height:0;gap:12px}
 .dashboard .recordings-heading{display:flex;flex-direction:column;gap:8px}
 .dashboard .recordings-total{min-height:24px;padding:0;border:0;gap:6px}
 .dashboard .recordings-total>span{max-width:none}
 .dashboard .recording-list{grid-template-columns:repeat(2,minmax(0,1fr));flex:none;min-height:0;height:auto;margin:0;gap:10px}
 .dashboard .recording-item{height:auto;min-height:0;padding:12px;gap:6px}
 .dashboard .recording-item h3{font-size:18px;line-height:22px;margin:0}
 .dashboard .recording-item .subcard-kicker{font-size:10px;line-height:14px}
 .dashboard .recording-item .recording-meta{font-size:11px;line-height:16px;margin:4px 0 0}
 .service-overview-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:1fr;gap:10px}
 .service-overview-facts>span{display:flex;flex-direction:column;justify-content:center;min-width:0;min-height:70px;padding:12px;gap:4px}
 .service-overview-facts small{line-height:15px}
 .service-overview-facts strong{line-height:20px;overflow-wrap:anywhere}
 .settings-appearance-card{grid-template-columns:40px minmax(0,1fr);gap:12px}
 .settings-appearance-card>[data-open-appearance]{grid-column:1/-1;justify-self:start}
 .shared-hero-row .shared-hero-back.m3e-button{flex-basis:82px;width:82px;max-width:82px;font-size:11px}
 .shared-hero-row .shared-hero h1{font-size:22px;line-height:1.2}
 .shared-hero-row.has-guest-login{flex-wrap:wrap}
 .shared-hero-row.has-guest-login .shared-hero-login-slot{flex:0 0 100%;order:3;display:flex;justify-content:flex-end}
 .course-detail-cover.m3-course-cover .cover-title{font-size:32px}
 .course-detail-cover.m3-course-cover[data-title-length="long"] .cover-title{font-size:25px}
 .course-detail-cover.m3-course-cover .cover-initials{font-size:160px;bottom:-26px}
 .content-course-cover.m3-course-cover .cover-initials{font-size:34px}
 .service-card.ui-card,.public-services-grid .service-card{min-height:0}
 .page-shell>.site-footer{padding:20px;margin-top:20px}
 .site-footer .footer-content{grid-template-columns:minmax(0,1fr);gap:24px}
 .site-footer .footer-support{display:flex;grid-column:auto;gap:12px;align-items:stretch}
 .site-footer .social-links{align-self:flex-start}
 .site-footer .footer-contact a,.site-footer .footer-links a{min-height:44px}
 .site-footer .social-links a,.site-footer .social-links .social-brand-link{width:44px;height:44px;flex-basis:44px}
}
