/* huttc.org redesign (November 2026)
   Header, menus, side navigation, breadcrumb and footer.
   Loads after huttc.css, which still styles the page content itself.
   Layout: sticky white header with a red/orange rule; under it a two-column
   page (project menu on the left, content on the right). */

:root {
	--red: #b92835;
	--red-dark: #8c1d28;
	--orange: #db5537;
	--ink: #2b2326;
	--muted: #6b6164;
	--line: #e9e3e3;
	--tint: #faf5f4;
	--rose: #fbeaea;
	--ui: "Libre Franklin", Arial, Helvetica, sans-serif;
	--edge: clamp(16px, 3.5vw, 56px);
	--header-h: 104px;
	--header-h-small: 64px;
}

html { scroll-padding-top: calc(var(--header-h-small) + 20px); }
body { background: #fff; }

.skip-link { position: absolute; left: -9999px; top: 0; z-index: 2000; background: var(--ink); color: #fff; padding: .75rem 1rem; font-family: var(--ui); }
.skip-link:focus { left: 1rem; top: 1rem; color: #fff; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* ---------- Header ---------- */
.site-header {
	position: sticky; top: 0; z-index: 1000;
	background: #fff;
	border-bottom: 4px solid var(--red);
	border-image: linear-gradient(90deg, var(--red) 0%, var(--red) 60%, var(--orange) 100%) 1;
	transition: box-shadow .25s ease;
	font-family: var(--ui);
}
.site-header.is-small { box-shadow: 0 6px 20px rgba(43, 35, 38, .12); }
.site-header__inner {
	max-width: none; margin: 0; padding: 0 var(--edge);
	display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
	min-height: var(--header-h);
	transition: min-height .25s ease;
}
.site-header.is-small .site-header__inner { min-height: var(--header-h-small); }
.site-header img { padding: 0; max-height: none; max-width: none; }   /* undo the old header img rule */
.brand { display: block; line-height: 0; flex: none; }
.brand__logo { height: 80px; width: auto; transition: height .25s ease; }
.site-header.is-small .brand__logo { height: 46px; }
body.project-hbcu-emc .brand__logo { height: 88px; }
body.project-hbcu-emc .site-header.is-small .brand__logo { height: 50px; }

/* Main menu */
.site-nav__list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: .15rem; }
.site-nav__item { position: relative; margin: 0; padding: 0; }
.site-nav__link {
	display: inline-flex; align-items: center; gap: .4rem;
	min-height: 44px; padding: 0 .75rem;
	font: 600 .95rem/1 var(--ui); color: var(--ink);
	text-decoration: none; white-space: nowrap;
	background: none; border: 0; border-radius: 6px; cursor: pointer;
	position: relative;
}
.site-nav__link:hover { background: var(--tint); color: var(--red); text-decoration: none; }
.site-nav__link:focus-visible, .side-nav a:focus-visible, .side-nav__toggle:focus-visible, .menu-toggle:focus-visible,
.site-search button:focus-visible, .site-search input:focus-visible, .projects-menu a:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.site-nav__item.is-active > .site-nav__link { color: var(--red); }
.site-nav__item.is-active > .site-nav__link::after {
	content: ""; position: absolute; left: .75rem; right: .75rem; bottom: 4px; height: 3px; border-radius: 2px; background: var(--red);
}
.site-nav__sub-toggle svg { transition: transform .2s ease; }
.site-nav__item.is-open > .site-nav__sub-toggle svg { transform: rotate(180deg); }
.site-nav__item--search .site-nav__link { border: 1px solid var(--line); margin-left: .35rem; }
.search-toggle[aria-expanded="true"] { background: var(--rose); color: var(--red-dark); border-color: transparent; }

.menu-toggle {
	display: none; align-items: center; gap: .45rem; min-height: 44px; padding: 0 .9rem;
	font: 600 .95rem var(--ui); color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 6px; cursor: pointer;
}

/* Projects dropdown */
.projects-menu {
	display: none;
	position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%);
	width: min(780px, 92vw);
	grid-template-columns: 1fr 1fr; gap: 1.5rem;
	padding: 1.25rem 1.4rem 1.1rem;
	background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--red); border-radius: 0 0 10px 10px;
	box-shadow: 0 18px 40px rgba(43, 35, 38, .16);
}
.site-nav__item.is-open .projects-menu { display: grid; }
.projects-menu__heading { margin: 0 0 .4rem; font: 700 .72rem/1.2 var(--ui); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.projects-menu ul { list-style: none; margin: 0; padding: 0; }
.projects-menu li { margin: 0; padding: 0; }
.projects-menu li a {
	display: block; padding: .5rem .6rem; border-radius: 6px;
	font: 500 .92rem/1.35 var(--ui); color: var(--ink); text-decoration: none;
}
.projects-menu li a:hover { background: var(--tint); color: var(--red); }
.projects-menu li a[aria-current] { background: var(--rose); }
.projects-menu__short { display: block; font-weight: 700; color: var(--red); font-size: .8rem; letter-spacing: .02em; }
.projects-menu__all { display: inline-block; margin: .5rem .6rem 0; font: 600 .85rem var(--ui); color: var(--red); }

/* Search panel */
.site-search { background: var(--tint); border-top: 1px solid var(--line); }
.site-search[hidden] { display: none; }
.site-search__form {
	max-width: none; margin: 0; padding: .9rem var(--edge);
	display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem;
}
.site-search input[type="search"] {
	flex: 1 1 320px; min-height: 46px; padding: 0 1rem;
	font: 400 1rem var(--ui); color: var(--ink);
	border: 1px solid #cfc6c6; border-radius: 6px; background: #fff;
}
.site-search__scope { display: inline-flex; align-items: center; gap: .4rem; font: 500 .9rem var(--ui); color: var(--muted); }
.site-search button[type="submit"] {
	min-height: 46px; padding: 0 1.4rem; font: 600 .95rem var(--ui); color: #fff;
	background: var(--red); border: 0; border-radius: 6px; cursor: pointer;
}
.site-search button[type="submit"]:hover { background: var(--red-dark); }

/* ---------- Page layout ---------- */
main.site-main {
	display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: clamp(1.5rem, 3vw, 3rem);
	max-width: none; margin: 0; padding: 1.75rem var(--edge) 3.5rem;
	align-items: start;
}
main.site-main #rightcontent { padding: 0; min-width: 0; outline: none; }

/* ---------- Project (side) menu ---------- */
#leftnav.side-nav {
	width: auto; border: 0;
	font: 400 .95rem/1.4 var(--ui);
	position: sticky; top: calc(var(--header-h-small) + 20px);
	max-height: calc(100vh - var(--header-h-small) - 40px); overflow-y: auto;
	padding-right: .25rem;
}
.side-nav__toggle { display: none; }
.side-nav__project { border-left: 4px solid var(--red); padding: .15rem 0 .2rem 1rem; margin-bottom: .9rem; }
.side-nav__status { margin: 0 0 .3rem; font: 700 .7rem/1.2 var(--ui); letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
#leftnav .side-nav__name:link, #leftnav .side-nav__name:visited {
	display: block; font: 700 1.05rem/1.3 var(--ui); color: var(--ink); text-decoration: none;
}
#leftnav .side-nav__name:hover { color: var(--red); }
.side-nav__name span { font-weight: 600; color: var(--red); white-space: nowrap; }

#leftnav .side-nav__list, #leftnav .side-nav__curriculum ul { list-style: none; margin: 0 0 .5rem; padding: 0; }
#leftnav .side-nav__list li, #leftnav .side-nav__curriculum li { margin: 0; padding: 0; font-size: inherit; }
#leftnav .side-nav__list a:link, #leftnav .side-nav__list a:visited,
#leftnav .side-nav__curriculum a:link, #leftnav .side-nav__curriculum a:visited {
	display: block; padding: .45rem .75rem; border-radius: 6px;
	color: var(--ink); text-decoration: none; font-weight: 500;
}
#leftnav .side-nav__list a:hover, #leftnav .side-nav__curriculum a:hover { background: var(--tint); color: var(--red); }
#leftnav a[aria-current="page"]:link, #leftnav a[aria-current="page"]:visited {
	background: var(--rose); color: var(--red-dark); font-weight: 700;
	box-shadow: inset 3px 0 0 var(--red);
}
#leftnav .side-nav__project a[aria-current="page"] { background: none; box-shadow: none; color: var(--red-dark); }
.side-nav__list--projects a span { color: var(--muted); font-weight: 400; }
#leftnav .side-nav__group {
	margin: 1.1rem 0 .3rem .75rem; padding: 0;
	font: 700 .7rem/1.2 var(--ui); letter-spacing: .09em; text-transform: uppercase; color: var(--muted);
}
#leftnav .side-nav__list .side-nav__group:first-child { margin-top: 0; }

/* AETC curriculum module menus (from /aetcnmc/_nav/) */
.side-nav__curriculum { border-top: 1px solid var(--line); margin-top: .75rem; padding-top: .75rem; }
#leftnav .side-nav__curriculum ul ul { margin: .1rem 0 .4rem .75rem; border-left: 1px solid var(--line); }
#leftnav .side-nav__curriculum ul ul a:link, #leftnav .side-nav__curriculum ul ul a:visited { font-size: .86rem; font-style: normal; padding: .3rem .7rem; color: var(--muted); }
#leftnav .side-nav__curriculum .pretext { font-variant: normal; text-decoration: none; font-style: normal; color: var(--red); font-weight: 700; }

#leftnav .side-nav__back:link, #leftnav .side-nav__back:visited {
	display: inline-block; margin: .9rem 0 0 .75rem; font: 600 .88rem var(--ui); color: var(--muted); text-decoration: none;
}
#leftnav .side-nav__back:hover { color: var(--red); }

/* ---------- Breadcrumb ---------- */
.breadcrumb ol { list-style: none; margin: 0 0 1.25rem; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem; font: 500 .85rem/1.4 var(--ui); color: var(--muted); }
.breadcrumb li { margin: 0; padding: 0; }
.breadcrumb li + li::before { content: "\203A"; margin: 0 .45rem 0 .2rem; color: #b9adad; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--red); text-decoration: underline; }
.breadcrumb [aria-current] { color: var(--ink); font-weight: 600; }

/* ---------- Footer ---------- */
footer.site-footer {
	border-top: 6px solid var(--red); background: var(--ink); color: #ece6e6;
	font-family: var(--ui); padding: 2.5rem 0 1.25rem; margin-top: 0;
}
.site-footer__inner {
	max-width: none; margin: 0; padding: 0 var(--edge);
	display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem;
}
footer.site-footer p { color: #d9d0d0; font-size: .92rem; margin: 0 0 .35rem; width: auto; line-height: 1.5; }
footer.site-footer .site-footer__name { color: #fff; font-weight: 700; font-size: 1.05rem; margin-bottom: .5rem; }
.site-footer__nav { display: flex; gap: 3rem; }
.site-footer__nav ul { list-style: none; margin: 0; padding: 0; }
.site-footer__nav li { margin: 0 0 .5rem; padding: 0; }
.site-footer a:link, .site-footer a:visited { color: #fff; text-decoration: none; font-weight: 500; font-size: .95rem; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.site-footer a:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
footer.site-footer .site-footer__legal {
	max-width: none; margin: 2rem 0 0; padding: 1rem var(--edge) 0; border-top: 1px solid rgba(255, 255, 255, .15);
	font-size: .82rem; color: #b8adad;
}

/* ---------- Tablets and phones ---------- */
@media (max-width: 1100px) {
	.site-nav__link { padding: 0 .55rem; font-size: .9rem; }
	.brand__logo { height: 64px; }
}
@media (max-width: 960px) {
	:root { --header-h: 76px; --header-h-small: 60px; }
	.brand__logo, body.project-hbcu-emc .brand__logo { height: 52px; }
	.site-header.is-small .brand__logo, body.project-hbcu-emc .site-header.is-small .brand__logo { height: 42px; }
	.menu-toggle { display: inline-flex; }
	.site-header__inner { flex-wrap: wrap; gap: .75rem; }
	.site-nav { display: none; width: 100%; padding: 0 0 1rem; }
	.site-header.nav-open .site-nav { display: block; }
	.site-header.nav-open { max-height: 100vh; overflow-y: auto; }
	.site-nav__list { flex-direction: column; align-items: stretch; gap: 0; }
	.site-nav__item { border-top: 1px solid var(--line); }
	.site-nav__link { width: 100%; min-height: 52px; font-size: 1.02rem; justify-content: space-between; border-radius: 0; padding: 0 .5rem; }
	.site-nav__item.is-active > .site-nav__link::after { left: 0; right: auto; top: 12px; bottom: 12px; width: 3px; height: auto; }
	.projects-menu { position: static; transform: none; width: auto; grid-template-columns: 1fr; gap: .75rem; box-shadow: none; border: 0; border-radius: 0; padding: .25rem 0 .75rem .75rem; }
	.site-nav__item--search .site-nav__link { margin: .75rem 0 0; border: 1px solid var(--line); border-radius: 6px; justify-content: center; }

	main.site-main { display: block; padding-top: 1rem; }
	#leftnav.side-nav { position: static; max-height: none; overflow: visible; margin-bottom: 1.25rem; padding: 0; }
	.side-nav__toggle {
		display: flex; align-items: center; gap: .5rem; width: 100%; min-height: 50px; padding: 0 1rem;
		font: 600 .95rem var(--ui); color: var(--ink); text-align: left;
		background: var(--tint); border: 1px solid var(--line); border-left: 4px solid var(--red); border-radius: 6px; cursor: pointer;
	}
	.side-nav__toggle-label { font-weight: 500; color: var(--muted); }
	.side-nav__toggle svg { margin-left: auto; transition: transform .2s ease; }
	#leftnav.is-open .side-nav__toggle svg { transform: rotate(180deg); }
	.side-nav__body { display: none; padding: 1rem .25rem .5rem; border-bottom: 1px solid var(--line); }
	#leftnav.is-open .side-nav__body { display: block; }
	.site-footer__nav { gap: 2rem; }
}
@media (max-width: 520px) {
	.site-footer__nav { flex-direction: column; gap: .5rem; }
}

@media (prefers-reduced-motion: reduce) {
	.site-header, .site-header__inner, .brand__logo, .site-nav__sub-toggle svg, .side-nav__toggle svg { transition: none; }
}

@media print {
	.site-header { position: static; border: 0; box-shadow: none; }
	.site-nav, .menu-toggle, .site-search, #leftnav, .breadcrumb, .site-footer__nav { display: none !important; }
	main.site-main { display: block; padding: 0; }
	footer.site-footer { background: none; color: #000; border: 0; }
}

/* ---------- Search page ---------- */
.search-page { max-width: 820px; font-family: var(--ui); }
.search-page h1 { margin: 0 0 1rem; color: var(--ink); font-family: var(--ui); font-size: 2rem; }
.search-page__form { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 1.25rem; }
.search-page__form input[type="search"] { flex: 1 1 320px; min-height: 50px; padding: 0 1rem; font: 400 1.05rem var(--ui); border: 1px solid #cfc6c6; border-radius: 6px; }
.search-page__form input[type="search"]:focus-visible { outline: 3px solid var(--orange); outline-offset: 1px; }
.search-page__form button { min-height: 50px; padding: 0 1.6rem; font: 600 1rem var(--ui); color: #fff; background: var(--red); border: 0; border-radius: 6px; cursor: pointer; }
.search-page__form button:hover { background: var(--red-dark); }
.search-page__summary { color: var(--muted); margin: 0 0 .9rem; }
.search-page__filters { list-style: none; margin: 0 0 1.5rem; padding: 0; display: flex; flex-wrap: wrap; gap: .45rem; }
.search-page__filters li { margin: 0; padding: 0; }
.search-page__filters a { display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .8rem; border: 1px solid var(--line); border-radius: 999px; font: 600 .85rem var(--ui); color: var(--ink); text-decoration: none; }
.search-page__filters a:hover { border-color: var(--red); color: var(--red); }
.search-page__filters a[aria-current] { background: var(--red); border-color: var(--red); color: #fff; }
.search-page__filters span { font-weight: 500; opacity: .75; }
.search-page__results { list-style: none; margin: 0; padding: 0; }
.search-page__results li { margin: 0; padding: 1rem 0; border-top: 1px solid var(--line); }
.search-page__where { margin: 0 0 .2rem; font: 700 .72rem/1.3 var(--ui); letter-spacing: .07em; text-transform: uppercase; color: var(--red); }
.search-page__where span { font-weight: 500; text-transform: none; letter-spacing: 0; color: var(--muted); margin-left: .35rem; }
.search-page__title { font: 600 1.1rem/1.35 var(--ui); color: #1d4f7a; }
.search-page__results p { margin: .3rem 0 0; color: #3d3437; font-size: .95rem; line-height: 1.5; }
.search-page mark { background: #fde7b5; color: inherit; padding: 0 .1em; border-radius: 2px; }

/* ---------- Overrides for older site-wide rules (huttc.css / skeleton) ---------- */
.site-header button, .side-nav__toggle, .site-search button, .search-page button {
	text-transform: none; letter-spacing: normal; height: auto; line-height: 1.2; white-space: nowrap;
}
.site-header .site-nav__link:link, .site-header .site-nav__link:visited { color: var(--ink); text-decoration: none; }
.site-header .site-nav__link:hover { color: var(--red); }
.site-header .site-nav__item.is-active > .site-nav__link:link,
.site-header .site-nav__item.is-active > .site-nav__link:visited,
.site-header .site-nav__item.is-active > .site-nav__link { color: var(--red); }
.site-header .projects-menu li a:link, .site-header .projects-menu li a:visited { color: var(--ink); text-decoration: none; }
.site-header .projects-menu li a:hover { color: var(--red); }
.site-header .projects-menu .projects-menu__all:link, .site-header .projects-menu .projects-menu__all:visited { color: var(--red); text-decoration: none; }
.site-header .projects-menu .projects-menu__all:hover { text-decoration: underline; }
.search-page .search-page__title:link, .search-page .search-page__title:visited { color: #1d4f7a; text-decoration: none; }
.search-page .search-page__title:hover { text-decoration: underline; }
.search-page .search-page__filters a:link, .search-page .search-page__filters a:visited { color: var(--ink); text-decoration: none; }
.search-page .search-page__filters a[aria-current]:link, .search-page .search-page__filters a[aria-current]:visited { color: #fff; }
#leftnav .side-nav__list li.side-nav__group, #leftnav p.side-nav__group {
	font: 700 .7rem/1.2 var(--ui); letter-spacing: .09em; text-transform: uppercase; color: var(--muted);
	margin: 1.1rem 0 .3rem .75rem; padding: 0;
}
#leftnav .side-nav__list li.side-nav__group:first-child { margin-top: 0; }
#leftnav .side-nav__curriculum .pretext { font-variant: normal; }

/* =====================================================================
   Content styling (applies to every page's content area)
   ===================================================================== */
:root { --link: #1d5a8c; --navy: #13355c; }

/* Links: darker blue that passes WCAG AA contrast (old teal #639491 did not) */
a:link, a:visited, a:active { color: var(--link); }
a:hover { color: var(--red); }
#rightcontent a { text-underline-offset: 2px; text-decoration-thickness: 1px; }
#rightcontent a:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; border-radius: 2px; }

/* Headings: same typeface as the menus */
#rightcontent h1, #rightcontent h2, #rightcontent h3, #rightcontent h4 { font-family: var(--ui); text-wrap: balance; }
#rightcontent h2 { color: var(--navy); font-weight: 700; font-size: 1.55rem; line-height: 1.25; margin: 2rem 0 .75rem; }
#rightcontent h3 { color: var(--navy); font-weight: 700; font-size: 1.2rem; line-height: 1.3; margin: 1.6rem 0 .5rem; }
#rightcontent h4 { color: var(--ink); font-weight: 700; font-size: 1.05rem; margin: 1.4rem 0 .4rem; }
#rightcontent > h2:first-child, .breadcrumb + h2, .breadcrumb + h1 { margin-top: 0; }
#rightcontent p, #rightcontent li { line-height: 1.6; }
#rightcontent li { margin-bottom: .35rem; }
#rightcontent hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }

/* Images placed in the text */
#rightcontent img { max-width: 100%; height: auto; }
#rightcontent img[align="right"], #rightcontent img.alignright { margin: .25rem 0 1rem 1.5rem; border-radius: 6px; }
#rightcontent img[align="left"], #rightcontent img.alignleft { margin: .25rem 1.5rem 1rem 0; border-radius: 6px; }

/* Banners at the top of pages (.splash): consistent shape and a readability overlay */
#rightcontent .splash {
	position: relative; isolation: isolate; overflow: hidden;
	border-radius: 10px; min-height: 280px; padding: 3.5rem 2.5rem;
	display: flex; align-items: flex-end; margin: 0 0 2rem;
}
#rightcontent .splash::before {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background: linear-gradient(90deg, rgba(20, 16, 18, .62) 0%, rgba(20, 16, 18, .30) 55%, rgba(20, 16, 18, .08) 100%);
}
#rightcontent .splash .container { width: 100%; max-width: none; padding: 0; margin: 0; }
#rightcontent .splash h1, #rightcontent .splash h2 { color: #fff; text-shadow: 0 2px 10px rgba(0, 0, 0, .45); margin: 0; letter-spacing: 0; }
#rightcontent .splash h2 { font-size: 1.15rem; font-weight: 600; margin-bottom: .5rem; opacity: .95; }
#rightcontent .splash h1 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); font-weight: 700; line-height: 1.15; max-width: 22ch; }

/* On-Demand and CoE expandable sections (.accordion buttons from accordion.js) */
#rightcontent .accordion {
	display: flex; align-items: center; justify-content: space-between; gap: 1rem; width: 100%;
	margin: .75rem 0 0; padding: .9rem 1.2rem; border: 1px solid var(--line); border-radius: 8px;
	background: #fff; color: var(--ink); font: 600 1rem/1.35 var(--ui); text-align: left; text-transform: none; letter-spacing: normal; height: auto; white-space: normal;
}
#rightcontent .accordion:hover, #rightcontent .accordion:focus-visible { background: var(--tint); border-color: #d9cdcd; color: var(--red-dark); }
#rightcontent .accordion.selected { background: var(--rose); border-color: #efcaca; border-radius: 8px 8px 0 0; color: var(--red-dark); }
#rightcontent .accordion:after { color: var(--red); float: none; }
#rightcontent div.panel { border: 1px solid #efcaca; border-top: 0; border-radius: 0 0 8px 8px; padding: .5rem 1.25rem 1rem; margin-bottom: 1rem; }

/* Biography photos */
#rightcontent img.biopic { border-radius: 10px; border: 0; box-shadow: 0 4px 14px rgba(43, 35, 38, .15); }

/* Tables of data */
#rightcontent table { border-collapse: collapse; }

/* =====================================================================
   Wide pages (home, Current and Past Projects): no side menu
   ===================================================================== */
main.site-main--wide { grid-template-columns: minmax(0, 1fr); padding-top: 1.5rem; }

.btn { display: inline-flex; align-items: center; min-height: 48px; padding: 0 1.35rem; border-radius: 6px; font: 600 1rem var(--ui); text-decoration: none; }
#rightcontent .btn--primary:link, #rightcontent .btn--primary:visited { background: var(--red); color: #fff; text-decoration: none; }
#rightcontent .btn--primary:hover { background: var(--red-dark); color: #fff; }
#rightcontent .btn--ghost:link, #rightcontent .btn--ghost:visited { background: rgba(255, 255, 255, .12); color: #fff; border: 1px solid rgba(255, 255, 255, .7); text-decoration: none; }
#rightcontent .btn--ghost:hover { background: #fff; color: var(--ink); }
#rightcontent .text-link:link, #rightcontent .text-link:visited { font: 600 .95rem var(--ui); color: var(--red); text-decoration: none; }
#rightcontent .text-link:hover { text-decoration: underline; }

/* Section headings with a "see all" link */
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 1.5rem; margin-bottom: 1.25rem; }
#rightcontent .section-head h2 { margin: 0; font-size: 1.7rem; }
#rightcontent .section-head__link:link, #rightcontent .section-head__link:visited { font: 600 .95rem var(--ui); color: var(--red); text-decoration: none; }
#rightcontent .section-head__link:hover { text-decoration: underline; }
#rightcontent .section-intro { color: var(--muted); margin: -.5rem 0 1.25rem; max-width: 60rem; }
#rightcontent .section-intro--lead { color: var(--ink); font-size: 1.1rem; margin: 0 0 1.75rem; }
#rightcontent .project-cards + .section-intro { margin-top: 2rem; }

/* Project cards */
.project-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.25rem; }
#rightcontent .project-cards li { margin: 0; }
.project-card { display: flex; }
#rightcontent .project-card__link:link, #rightcontent .project-card__link:visited {
	display: flex; flex-direction: column; width: 100%;
	background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden;
	color: var(--ink); text-decoration: none;
	transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
#rightcontent .project-card__link:hover { border-color: #e2c9c9; box-shadow: 0 12px 28px rgba(43, 35, 38, .12); transform: translateY(-2px); color: var(--ink); }
#rightcontent .project-card__link:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.project-card__media { display: flex; align-items: center; justify-content: center; height: 150px; padding: .9rem; background: #fff; border-bottom: 1px solid var(--line); }
#rightcontent .project-card__media img { max-height: 100%; width: auto; max-width: 100%; object-fit: contain; margin: 0; border-radius: 4px; }
.project-card__media--photo { padding: 0; }
#rightcontent .project-card__media--photo img { width: 100%; height: 100%; max-height: none; object-fit: cover; border-radius: 0; }
.project-card__body { display: flex; flex-direction: column; gap: .4rem; padding: 1rem 1.15rem 1.15rem; flex: 1; }
.project-card__short { font: 700 .75rem/1.2 var(--ui); letter-spacing: .07em; text-transform: uppercase; color: var(--red); }
.project-card__name { font: 700 1.05rem/1.3 var(--ui); color: var(--ink); }
.project-card__summary { font-size: .95rem; line-height: 1.5; color: #4a4044; }
.project-card__cta { margin-top: auto; padding-top: .5rem; font: 600 .9rem var(--ui); color: var(--red); }
#rightcontent .project-card__link:hover .project-card__cta { text-decoration: underline; }
.project-cards--compact { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1rem; }
.project-cards--compact .project-card__media { height: 110px; padding: .7rem; }
.project-cards--compact .project-card__name { font-size: .95rem; }

.info-card { background: var(--tint); border: 1px solid var(--line); border-top: 4px solid var(--red); border-radius: 10px; padding: 1.25rem 1.35rem; }
.info-card--quiet { background: #fff; border-top-color: var(--orange); }
#rightcontent .info-card__title { margin: 0 0 .9rem; font-size: 1.2rem; color: var(--ink); }
.event-list, .plain-list { list-style: none; margin: 0 0 1rem; padding: 0; }
#rightcontent .event-list li { padding: 0 0 .85rem; margin: 0 0 .85rem; border-bottom: 1px solid var(--line); }
#rightcontent .event-list li:last-child { border-bottom: 0; margin-bottom: .25rem; }
#rightcontent .event-list p { margin: 0; line-height: 1.45; }
#rightcontent .event-list__date { font: 700 .78rem/1.3 var(--ui); letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin-bottom: .2rem !important; }
#rightcontent .event-list__name { font-weight: 600; }
#rightcontent .event-list__where { font-size: .9rem; color: var(--muted); }
#rightcontent .plain-list li { margin-bottom: .6rem; }

@media (max-width: 960px) {
	#rightcontent .splash { padding: 2.5rem 1.5rem; min-height: 220px; }
}
@media (max-width: 560px) {
	#rightcontent img[align="right"], #rightcontent img[align="left"] { float: none; display: block; margin: 0 0 1rem; }
}


/* =====================================================================
   Home page: full-width bands (layout = 'full')
   ===================================================================== */
main.site-main--full { padding: 0; }
main.site-main--full #rightcontent { padding: 0; }
.home { overflow-x: clip; }
.band { position: relative; }
.band__inner { padding: clamp(3.25rem, 6vw, 5.75rem) var(--edge); }
#rightcontent .band__eyebrow { margin: 0 0 .5rem; font: 700 .78rem/1.2 var(--ui); letter-spacing: .1em; text-transform: uppercase; color: var(--red); }
#rightcontent .band h2 { margin: 0 0 1rem; font-size: clamp(1.7rem, 2.6vw, 2.25rem); line-height: 1.15; color: var(--ink); }

.band--white { background: #fff; }
.band--tint  { background: #f6efed; }
.band--light { background: #fff; border-top: 1px solid var(--line); }
.band--brand { background: linear-gradient(120deg, #6e1720 0%, var(--red) 55%, #c9463a 100%); color: #fff; }
#rightcontent .band--brand h2 { color: #fff; }
#rightcontent .band--brand .band__eyebrow { color: #ffd3c4; }
#rightcontent .band--brand .section-head__link:link, #rightcontent .band--brand .section-head__link:visited { color: #fff; }
#rightcontent .band--brand .project-card__link:link, #rightcontent .band--brand .project-card__link:visited { border-color: transparent; box-shadow: 0 10px 26px rgba(40, 6, 12, .28); }
#rightcontent .band--brand .project-card__link:hover { box-shadow: 0 16px 34px rgba(40, 6, 12, .38); }

/* Hero: edge to edge, with a slow parallax background (site.js moves .home-hero__bg) */
.home-hero { overflow: hidden; isolation: isolate; color: #fff; min-height: clamp(460px, 72vh, 760px); display: flex; align-items: center; background: #2b1418; }
.home-hero__bg {
	position: absolute; left: 0; right: 0; top: -12%; bottom: -12%; z-index: -2;
	background: url(/images/HUTTC-banner-2.jpg) 70% 40% / cover no-repeat;
	will-change: transform;
}
.home-hero::before {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background: linear-gradient(90deg, rgba(43, 18, 24, .92) 0%, rgba(43, 18, 24, .78) 38%, rgba(43, 18, 24, .25) 75%, rgba(43, 18, 24, .1) 100%);
}
.home-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: linear-gradient(90deg, var(--red), var(--orange)); }
.home-hero__inner { width: 100%; }
.home-hero__inner > * { max-width: 46rem; }
#rightcontent .home-hero__eyebrow { margin: 0 0 1rem; font: 700 .8rem/1.2 var(--ui); letter-spacing: .12em; text-transform: uppercase; color: #ffb59f; }
#rightcontent .home-hero h1 { margin: 0 0 1.25rem; color: #fff; font-family: var(--ui); font-weight: 700; font-size: clamp(2.1rem, 4.2vw, 3.4rem); line-height: 1.08; text-wrap: balance; }
#rightcontent .home-hero__lead { margin: 0 0 2rem; color: #f3ecec; font-size: clamp(1.05rem, 1.4vw, 1.2rem); line-height: 1.6; max-width: 40rem; }
.home-hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 0; }

/* About band */
.home-about { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
#rightcontent .home-about__lead { font-size: 1.15rem; line-height: 1.65; color: var(--ink); max-width: 44rem; }
.home-about__media { position: relative; }
.home-about__media::before { content: ""; position: absolute; inset: 18px -18px -18px 18px; border-radius: 14px; background: linear-gradient(135deg, var(--red), var(--orange)); z-index: 0; }
#rightcontent .home-about__media img { position: relative; z-index: 1; display: block; width: 100%; height: auto; border-radius: 14px; margin: 0; box-shadow: 0 14px 36px rgba(43, 35, 38, .18); }

/* Events + Stay Informed band */
.home-news { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(1.25rem, 3vw, 2.5rem); align-items: stretch; }
.home-news .info-card { background: #fff; padding: 1.6rem 1.75rem; box-shadow: 0 8px 24px rgba(43, 35, 38, .06); }
#rightcontent .home-news .info-card__title { font-size: 1.4rem; margin-bottom: 1.1rem; }

/* Gentle fade-in as each band scrolls into view (only when JavaScript runs; skipped for reduced motion) */
.js-reveal .reveal .band__inner { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js-reveal .reveal.is-visible .band__inner { opacity: 1; transform: none; }

@media (max-width: 960px) {
	.home-about, .home-news { grid-template-columns: 1fr; }
	.home-about__media { max-width: 560px; }
	.home-hero { min-height: 520px; }
	.home-hero::before { background: linear-gradient(180deg, rgba(43, 18, 24, .78) 0%, rgba(43, 18, 24, .88) 100%); }
}
@media (prefers-reduced-motion: reduce) {
	.js-reveal .reveal .band__inner { opacity: 1; transform: none; transition: none; }
	.home-hero__bg { transform: none !important; }
}
#rightcontent .band .section-head h2 { margin: 0; }
.band .section-head { align-items: flex-end; margin-bottom: 1.75rem; }
@media (max-width: 560px) {
	.home-about__media::before { inset: 10px -8px -10px 10px; }
}
