/* Repository heading sizes are the shared public standard; Home is excluded. */
body:not(.home) :is(.la-portal-hero,.la-contact-hero,.la-about-hero,.la-subject-hero,.la-hero,.la-detail-heading-band,.la-act-detail-band,.la-repo-hero) {
 box-sizing:border-box; min-height:200px; height:auto; padding-block:clamp(1.25rem,3vw,2rem);
}
body:not(.home) :is(.la-portal-hero,.la-contact-hero,.la-about-hero,.la-subject-hero,.la-hero,.la-detail-heading-band,.la-act-detail-band,.la-repo-hero) h1,
body:not(.home) .la-detail-heading-inner h1 {
 font-family:Georgia,'Times New Roman',serif !important; font-size:clamp(1.6rem,3vw,2.3rem) !important; font-weight:700; line-height:1.25 !important; letter-spacing:normal; margin-top:0; margin-bottom:.75rem;
}
body:not(.home) :is(.la-forum-heading,.la-update-heading,.la-section-head,.la-judgment-heading,.la-act-filters,.la-forum-filters,.la-repo-register) h2 {
 font-family:Georgia,'Times New Roman',serif !important; font-size:clamp(1.35rem,2.2vw,1.8rem) !important; line-height:1.3 !important; font-weight:700;
}
body:not(.home) :is(.la-repo-filters,.la-act-filters,.la-forum-filters) label { font-size:.9rem; line-height:1.5; }
body:not(.home) .la-repository .la-repo-hero { padding:0; }
body:not(.home) .la-repository .la-repo-list-band { height:auto; min-height:200px; }

/* SVG presentation attributes must follow the selected palette too. */
.la-knowledge-map #laNodeGlow stop:first-child { stop-color:var(--la-blue-700); }
.la-knowledge-map #laNodeGlow stop:last-child { stop-color:var(--la-navy-950); }
:is(.la-knowledge-map #laBookGlow,.la-semester-visual #laSemesterGlow) stop:first-child { stop-color:var(--la-blue-100); }
:is(.la-knowledge-map #laBookGlow,.la-semester-visual #laSemesterGlow) stop:nth-child(2) { stop-color:var(--la-blue-600); }
:is(.la-knowledge-map #laBookGlow,.la-semester-visual #laSemesterGlow) stop:last-child { stop-color:var(--la-blue-700); }
:is(.single-la_study_note,.single-la_yearly_paper,.la-quick-reference-detail) .entry-content :is(h1,h2,h3):not(.la-detail-heading-band *),
.la-quick-reference-detail :is(h1,h2,h3):not(.la-detail-heading-band *) { color:var(--la-theme-text-accent,var(--la-theme-accent)) !important; }
:is(.single-la_study_note,.single-la_yearly_paper,.la-quick-reference-detail) :is(table,th,td) { border-color:var(--la-blue-700) !important; }
:is(.single-la_study_note,.single-la_yearly_paper,.la-quick-reference-detail) table :is(thead th,thead td,tr:first-child th),
:is(.single-la_study_note,.single-la_yearly_paper,.la-quick-reference-detail) table:not(:has(thead)) tr:first-child > td {
 background:var(--la-theme-dark) !important; color:#fff !important; border-color:var(--la-blue-700) !important;
}

/* Fit Semester content without a tall graphic or a large breadcrumb row gap. */
body:not(.home) .la-hero.la-semester-hero { min-height:0; height:auto; padding-block:1.25rem; row-gap:.75rem; }
.la-semester-hero .la-semester-visual svg { width:min(100%,440px); max-height:300px; }
.la-semester-hero > .la-breadcrumb-bar { margin-top:0; padding-top:.5rem; }
@media(max-width:900px) { .la-semester-hero .la-semester-visual svg { width:min(100%,340px); max-height:260px; } }

/* Bright theme accents use a dark foreground for legibility. */
.la-access-button,.la-welcome-new{color:var(--la-theme-on-accent,#fff)!important}
.la-access-secondary{color:var(--la-theme-text-accent,var(--la-theme-accent))!important}

.la-free-badge{color:var(--la-theme-text-accent,var(--la-theme-accent))}.la-access-close{color:var(--la-theme-on-accent,#fff)}

/* Compact only desktop top-level navigation; preserve dropdown/mobile spacing. */
@media(min-width:1000px){
#header [data-device="desktop"] [data-id*="menu"],.main-navigation,.header-navigation{--menu-items-spacing:8px}
#header [data-device="desktop"] .menu,.main-navigation .primary-menu-container>ul,.header-navigation .menu{gap:1px!important;flex-wrap:nowrap!important}
#header [data-device="desktop"] .menu>li>a,.main-navigation .primary-menu-container>ul>li>a,.header-navigation .menu>li>a{padding-left:.38rem!important;padding-right:.38rem!important;white-space:nowrap}
}
