/* NCCHMC theme – main stylesheet (mobile first) */
:root {
	--navy: #353755;
	--navy-900: #22243b;
	--blue: #005b88;
	--blue-050: #e8f2f8;
	--accent: #fb9f0e;
	--accent-600: #b86e00;
	--yellow: #ffcc02;
	--ink: #1f2230;
	--muted: #5a5f73;
	--line: #e0e4ee;
	--bg: #ffffff;
	--bg-soft: #f4f6fa;
	--radius: 14px;
	--shadow: 0 10px 30px rgba(34, 36, 59, .08);
	--shadow-lg: 0 18px 45px rgba(34, 36, 59, .16);
	--font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--font-head: "Raleway", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--container: 1200px;
	--header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; font-family: var(--font); font-size: 1.0625rem; line-height: 1.7; color: var(--ink); background: var(--bg); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-head); color: var(--navy); line-height: 1.25; margin: 1.6em 0 .6em; font-weight: 700; }
h1 { font-size: clamp(1.9rem, 4.5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1.1em; }
ul, ol { padding-left: 1.25em; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 20px; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 1000; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px; transition: top .2s; }
.skip-link:focus { top: 12px; color: #fff; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: .5em; padding: .8em 1.5em; border-radius: 999px; background: var(--navy); color: #fff; font-weight: 700; font-family: var(--font-head); text-decoration: none; border: 2px solid var(--navy); transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease; }
.btn:hover { color: #fff; background: var(--blue); border-color: var(--blue); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn--accent { background: var(--accent); border-color: var(--accent); color: var(--navy-900); }
.btn--accent:hover { background: var(--yellow); border-color: var(--yellow); color: var(--navy-900); }
.btn--light { background: transparent; border-color: #fff; color: #fff; }
.btn--light:hover { background: #fff; color: var(--navy); border-color: #fff; }
.btn--ghost { background: transparent; color: var(--navy); }
.btn--ghost:hover { background: var(--navy); color: #fff; border-color: var(--navy); }

/* Top bar */
.topbar { background: var(--navy-900); color: #d9dcea; font-size: .875rem; }
.topbar__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 20px; padding-block: 6px; }
.topbar__tag { margin: 0; display: none; }
.topbar__contact { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 20px; }
.topbar a { color: #fff; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.topbar a:hover { color: var(--yellow); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, .97); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); transition: box-shadow .25s ease; }
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(34, 36, 59, .1); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: var(--header-h); }
.brand img { width: 220px; height: auto; transition: width .25s ease; }
.is-scrolled .brand img { width: 190px; }
.brand__portraits { display: none; height: 60px; width: auto; }
.nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line); background: #fff; cursor: pointer; }
.nav-toggle__bar, .nav-toggle__bar::before, .nav-toggle__bar::after { display: block; width: 22px; height: 2px; background: var(--navy); border-radius: 2px; position: relative; transition: transform .25s ease, background-color .25s ease; }
.nav-toggle__bar::before, .nav-toggle__bar::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bar::before { top: -7px; }
.nav-toggle__bar::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar::after { transform: translateY(-7px) rotate(-45deg); }

.primary-nav { display: none; background: var(--navy); }
.primary-nav.is-open { display: block; max-height: calc(100vh - 110px); overflow-y: auto; }
.primary-nav .menu { list-style: none; margin: 0; padding: 8px 0 14px; }
.primary-nav .menu a { display: block; padding: 10px 4px; color: #fff; text-decoration: none; font-family: var(--font-head); font-weight: 600; font-size: .95rem; letter-spacing: .02em; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.primary-nav .menu a:hover, .primary-nav .current-menu-item > a, .primary-nav .current_page_item > a { color: var(--yellow); }

/* Page hero */
.page-hero { background: linear-gradient(120deg, var(--navy) 0%, var(--blue) 100%); color: #fff; padding: 44px 0 40px; position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px; border-radius: 50%; background: rgba(255, 204, 2, .14); }
.page-hero__title { color: #fff; margin: .2em 0 0; }
.crumbs { font-size: .9rem; display: flex; gap: 8px; flex-wrap: wrap; color: #cfd5e6; }
.crumbs a { color: #fff; }

.page-body { padding-block: 40px 64px; }
.page-body--with-aside { display: grid; gap: 40px; }
.entry-meta { color: var(--muted); font-size: .95rem; margin-bottom: 1em; }
.entry-content > :first-child { margin-top: 0; }
.entry-content h2 { position: relative; padding-bottom: .4em; }
.entry-content h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 56px; height: 3px; border-radius: 3px; background: var(--accent); }
.entry-content img { border-radius: 10px; }
.entry-content figure { margin: 1.5em 0; }
.entry-content figcaption { color: var(--muted); font-size: .9rem; margin-top: .5em; }
.lead { font-size: 1.15rem; color: var(--muted); }

/* Info cards / lists used inside page content */
.info-list { list-style: none; padding: 0; display: grid; gap: 14px; }
.info-list li { background: var(--bg-soft); border-left: 4px solid var(--accent); padding: 14px 18px; border-radius: 0 10px 10px 0; }
.info-list strong { color: var(--navy); }

.doc-list { list-style: none; padding: 0; margin: 1em 0 2em; display: grid; gap: 10px; }
.doc-list li { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.doc-list li::before { content: ""; flex: 0 0 34px; height: 34px; border-radius: 8px; background: var(--blue-050) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23005b88' d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8zm-1 7V3.5L18.5 9z'/%3E%3C/svg%3E") center / 18px no-repeat; }
.doc-list li:hover { border-color: var(--blue); box-shadow: var(--shadow); transform: translateY(-1px); }
.doc-list a { font-weight: 600; text-decoration: none; color: var(--navy); }
.doc-list a:hover { color: var(--blue); text-decoration: underline; }
.doc-list .doc-missing { color: var(--muted); font-size: .85rem; margin-left: auto; font-style: italic; }

.ward-list { list-style: none; padding: 0; display: grid; gap: 10px; grid-template-columns: 1fr; }
.ward-list li { background: var(--bg-soft); border-radius: 10px; padding: 12px 16px; font-weight: 600; color: var(--navy); border: 1px solid var(--line); }

.year-grid { display: grid; gap: 18px; grid-template-columns: 1fr; margin: 1.5em 0; }
.year-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.year-card h3 { margin-top: 0; }
.year-card ol { margin: 0; }

.people-grid { display: grid; gap: 22px; grid-template-columns: 1fr; margin: 1.5em 0; }
.person { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); text-align: center; }
.person img { width: 120px; height: 120px; object-fit: cover; border-radius: 50%; margin: 0 auto 12px; border: 4px solid var(--blue-050); }
.person h3 { margin: .2em 0; }
.person p { margin: .2em 0; }
.person .role { color: var(--blue); font-weight: 600; }

.profile { display: grid; gap: 24px; align-items: start; background: var(--bg-soft); border-radius: var(--radius); padding: 24px; margin: 2em 0; }
.profile img { width: 200px; border-radius: 12px; }
.profile h2, .profile h3 { margin-top: 0; }
.profile dl { display: grid; grid-template-columns: 1fr; gap: 4px 16px; margin: 0; }
.profile dt { font-weight: 700; color: var(--navy); }
.profile dd { margin: 0 0 8px; }

blockquote { margin: 1.5em 0; padding: 20px 24px; border-left: 5px solid var(--accent); background: var(--bg-soft); border-radius: 0 12px 12px 0; font-size: 1.1rem; color: var(--navy); }
blockquote cite { display: block; margin-top: .6em; font-style: normal; font-weight: 700; color: var(--blue); }

/* Tables */
.table-wrap { overflow-x: auto; margin: 1em 0 2.5em; border: 1px solid var(--line); border-radius: 12px; -webkit-overflow-scrolling: touch; }
.table-wrap:focus-visible { outline-offset: 2px; }
.data-table { border-collapse: collapse; width: 100%; min-width: 880px; font-size: .9rem; line-height: 1.5; }
.data-table th, .data-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.data-table thead th { background: var(--navy); color: #fff; font-family: var(--font-head); font-weight: 600; position: sticky; top: 0; }
.data-table tbody tr:nth-child(even) { background: var(--bg-soft); }
.data-table img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; }
.data-table .name { font-weight: 700; color: var(--navy); }

/* Gallery */
.photo-grid { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
.photo-grid li { margin: 0; }
.photo-grid a { display: block; overflow: hidden; border-radius: 12px; aspect-ratio: 4 / 3; background: var(--bg-soft); }
.photo-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; border-radius: 0; }
.photo-grid a:hover img, .photo-grid a:focus-visible img { transform: scale(1.06); }

.lightbox { position: fixed; inset: 0; z-index: 500; background: rgba(15, 16, 28, .92); display: flex; align-items: center; justify-content: center; padding: 24px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-height: 88vh; max-width: 100%; width: auto; border-radius: 8px; box-shadow: var(--shadow-lg); }
.lightbox button { position: absolute; top: 16px; right: 16px; width: 46px; height: 46px; border-radius: 50%; border: 0; background: #fff; color: var(--navy); font-size: 1.5rem; cursor: pointer; }

/* Sections (home) */
.section { padding-block: 56px; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 32px; }
.section-head p { color: var(--muted); }
.section-title { margin-top: 0; position: relative; }
.section-head .section-title::after { content: ""; display: block; width: 60px; height: 4px; margin: 14px auto 0; border-radius: 4px; background: linear-gradient(90deg, var(--accent), var(--yellow)); }
.section-title--sm { font-size: 1.4rem; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; font-weight: 700; color: var(--accent-600); margin-bottom: .3em; }

.hero { position: relative; min-height: 560px; display: flex; align-items: flex-end; color: #fff; overflow: hidden; background: var(--navy-900); }
.hero__slides, .hero__slide, .hero__overlay { position: absolute; inset: 0; }
.hero__slide { opacity: 0; transition: opacity 1.2s ease; }
.hero__slide.is-active { opacity: 1; }
.hero__slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); }
.hero__slide.is-active img { animation: kenburns 9s ease-out forwards; }
@keyframes kenburns { from { transform: scale(1.12); } to { transform: scale(1.02); } }
.hero__overlay { background: linear-gradient(180deg, rgba(34, 36, 59, .25) 0%, rgba(34, 36, 59, .72) 55%, rgba(22, 24, 40, .94) 100%); }
.hero__content { position: relative; z-index: 2; padding-block: 120px 72px; }
.hero__eyebrow { color: var(--yellow); text-transform: uppercase; letter-spacing: .18em; font-weight: 700; font-size: .85rem; margin: 0 0 .5em; }
.hero__title { color: #fff; margin: 0 0 .4em; max-width: 18ch; text-shadow: 0 2px 18px rgba(0, 0, 0, .3); }
.hero__lead { font-size: 1.15rem; color: #e7e9f3; max-width: 46ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 28px; }
.hero__facts { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.hero__facts li { background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .22); padding: 8px 14px; border-radius: 12px; font-size: .9rem; backdrop-filter: blur(4px); }
.hero__facts strong { color: var(--yellow); margin-right: 4px; font-family: var(--font-head); }
.hero__controls { position: absolute; z-index: 3; right: 20px; bottom: 20px; display: flex; gap: 8px; }
.hero__btn { width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .5); background: rgba(0, 0, 0, .25); color: #fff; cursor: pointer; font-size: 1rem; transition: background-color .2s ease; }
.hero__btn:hover { background: var(--accent); color: var(--navy-900); }

.features { padding-top: 0; margin-top: -36px; position: relative; z-index: 4; }
.feature-grid { display: grid; gap: 18px; }
.feature { background: #fff; border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-lg); border-top: 4px solid var(--accent); transition: transform .25s ease; }
.feature:hover { transform: translateY(-4px); }
.feature h2 { font-size: 1.3rem; margin: .5em 0 .3em; }
.feature p { color: var(--muted); margin: 0; font-size: 1rem; }
.feature__icon { display: inline-flex; width: 52px; height: 52px; border-radius: 14px; align-items: center; justify-content: center; background: var(--blue-050); color: var(--blue); }

.split { display: grid; gap: 36px; align-items: center; }
.split--top { align-items: start; }
.split__media { margin: 0; }
.split__media img { border-radius: 20px; box-shadow: var(--shadow-lg); width: 100%; }

.notices { background: var(--bg-soft); }
.notices__grid { display: grid; gap: 24px; }
.notify { background: var(--navy); color: #e4e6f1; border-radius: var(--radius); padding: 28px; }
.notify .section-title { color: #fff; }
.notify a { color: var(--yellow); }
.notify__item { padding-left: 22px; position: relative; }
.notify__item::before { content: ""; position: absolute; left: 0; top: .6em; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.notify__item--strong { color: #fff; font-weight: 600; }
.notify__note { font-size: .95rem; color: #c5c9dc; border-top: 1px solid rgba(255, 255, 255, .15); padding-top: 1em; margin: 0; }
.news { background: #fff; border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.news__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.link-more { font-weight: 700; text-decoration: none; }

.news-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.news-item a { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "date more" "title more"; gap: 2px 12px; align-items: center; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: border-color .2s ease, background-color .2s ease, transform .2s ease; }
.news-item a:hover { border-color: var(--blue); background: var(--blue-050); transform: translateX(3px); }
.news-item time { grid-area: date; font-size: .8rem; color: var(--accent-600); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.news-item__title { grid-area: title; font-weight: 600; color: var(--navy); line-height: 1.4; }
.news-item__more { grid-area: more; color: var(--blue); font-size: 1.2rem; }

.subject-grid { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 16px; grid-template-columns: repeat(2, 1fr); }
.subject { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 1 / 1; background: var(--navy); }
.subject img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease, opacity .3s ease; opacity: .9; }
.subject h3 { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; padding: 40px 14px 14px; color: #fff; font-size: 1rem; background: linear-gradient(180deg, transparent, rgba(22, 24, 40, .9)); }
.subject:hover img { transform: scale(1.07); opacity: 1; }

.contact-cta { background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%); color: #e8ebf5; }
.contact-cta .section-title { color: #fff; }
.contact-cta a { color: var(--yellow); }
.contact-mini { list-style: none; padding: 0; display: grid; gap: 10px; }
.contact-mini span { display: inline-block; min-width: 80px; font-weight: 700; color: #fff; }
.form-card { background: #fff; color: var(--ink); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-lg); }
.form-card a { color: var(--blue); }

/* Contact Form 7 */
.wpcf7 label { display: block; font-weight: 600; color: var(--navy); margin-bottom: 14px; font-size: .95rem; }
.wpcf7 input[type="text"], .wpcf7 input[type="email"], .wpcf7 input[type="tel"], .wpcf7 textarea { width: 100%; margin-top: 6px; padding: 12px 14px; border: 1px solid #c9cfdd; border-radius: 10px; font: inherit; font-weight: 400; color: var(--ink); background: #fff; transition: border-color .2s ease, box-shadow .2s ease; }
.wpcf7 textarea { min-height: 130px; resize: vertical; }
.wpcf7 input:focus, .wpcf7 textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0, 91, 136, .2); }
.wpcf7 input[type="submit"] { background: var(--accent); color: var(--navy-900); border: 0; border-radius: 999px; padding: 12px 28px; font-weight: 700; font-family: var(--font-head); cursor: pointer; transition: background-color .2s ease, transform .2s ease; }
.wpcf7 input[type="submit"]:hover { background: var(--yellow); transform: translateY(-2px); }
.wpcf7 form .wpcf7-response-output { margin: 14px 0 0; border-radius: 8px; }
.wpcf7-not-valid-tip { font-size: .85rem; }

/* Contact page */
.contact-grid { display: grid; gap: 20px; margin: 1.5em 0 2.5em; }
.contact-card { background: var(--bg-soft); border-radius: var(--radius); padding: 22px; border: 1px solid var(--line); }
.contact-card h3 { margin-top: 0; }
.contact-card p { margin: .2em 0; }

/* Cards for archive */
.card-grid { list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; }
.post-card a { display: flex; flex-direction: column; height: 100%; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--ink); transition: transform .25s ease, box-shadow .25s ease; }
.post-card a:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.post-card__media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-soft); }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.post-card__body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 6px; }
.post-card time { font-size: .8rem; font-weight: 700; color: var(--accent-600); text-transform: uppercase; letter-spacing: .05em; }
.post-card__title { font-family: var(--font-head); font-weight: 700; color: var(--navy); font-size: 1.1rem; line-height: 1.35; }
.post-card__more { color: var(--blue); font-weight: 600; margin-top: auto; }
.nav-links { display: flex; gap: 8px; justify-content: center; margin-top: 32px; flex-wrap: wrap; }
.nav-links .page-numbers { padding: 8px 14px; border-radius: 8px; border: 1px solid var(--line); text-decoration: none; }
.nav-links .current { background: var(--navy); color: #fff; border-color: var(--navy); }

.post-nav { display: grid; gap: 12px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }
.post-nav a { display: block; text-decoration: none; font-weight: 600; color: var(--navy); }
.post-nav span { display: block; font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.aside { background: var(--bg-soft); border-radius: var(--radius); padding: 24px; align-self: start; }
.aside__title { margin-top: 0; font-size: 1.2rem; }
.aside .btn { margin-top: 16px; }
.news-list--compact .news-item a { background: #fff; }

/* Footer */
.site-footer { background: var(--navy-900); color: #c7cadb; font-size: .95rem; }
.site-footer__grid { display: grid; gap: 32px; padding-block: 56px 40px; }
.site-footer__about img { width: 220px; margin-bottom: 14px; }
.site-footer__title { color: #fff; font-size: 1.05rem; margin: 0 0 14px; text-transform: uppercase; letter-spacing: .08em; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--yellow); text-decoration: underline; }
.site-footer__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer__list .label { display: block; font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: var(--accent); font-weight: 700; }
.footer-menu { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; }
.site-footer__map iframe { width: 100%; height: 190px; border: 0; border-radius: 12px; filter: grayscale(.2); }
.map-link { display: inline-block; margin-top: 8px; font-size: .9rem; }
.site-footer__bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding-block: 18px; font-size: .85rem; }
.site-footer__bottom p { margin: 0; }
.to-top { position: fixed; right: 18px; bottom: 18px; z-index: 90; width: 46px; height: 46px; border-radius: 50%; background: var(--accent); color: var(--navy-900); display: flex; align-items: center; justify-content: center; text-decoration: none; font-weight: 700; box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .25s ease, transform .25s ease, visibility .25s; }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { color: var(--navy-900); background: var(--yellow); }

/* Scroll reveal (only when JS is on) */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }

/* Breakpoints */
@media (min-width: 600px) {
	.topbar__tag { display: block; }
	.photo-grid { grid-template-columns: repeat(3, 1fr); }
	.subject-grid { grid-template-columns: repeat(3, 1fr); }
	.card-grid { grid-template-columns: repeat(2, 1fr); }
	.year-grid, .people-grid, .contact-grid { grid-template-columns: repeat(2, 1fr); }
	.ward-list { grid-template-columns: repeat(2, 1fr); }
	.post-nav { grid-template-columns: 1fr 1fr; }
	.post-nav > div:last-child { text-align: right; }
	.profile { grid-template-columns: 200px 1fr; }
	.profile dl { grid-template-columns: max-content 1fr; }
	.profile dd { margin: 0; }
}
@media (min-width: 900px) {
	.feature-grid { grid-template-columns: repeat(3, 1fr); }
	.split { grid-template-columns: 1.1fr .9fr; gap: 56px; }
	.notices__grid { grid-template-columns: 1fr 1.4fr; }
	.subject-grid { grid-template-columns: repeat(4, 1fr); }
	.photo-grid { grid-template-columns: repeat(4, 1fr); }
	.card-grid { grid-template-columns: repeat(3, 1fr); }
	.people-grid, .contact-grid { grid-template-columns: repeat(3, 1fr); }
	.ward-list { grid-template-columns: repeat(3, 1fr); }
	.site-footer__grid { grid-template-columns: 1.3fr 1.1fr .9fr 1.2fr; }
	.page-body--with-aside { grid-template-columns: minmax(0, 1fr) 320px; }
	.hero { min-height: 640px; }
	.section { padding-block: 80px; }
}
@media (min-width: 1100px) {
	.brand__portraits { display: block; }
	.nav-toggle { display: none; }
	.primary-nav { display: block; }
	.primary-nav .menu { display: flex; flex-wrap: wrap; justify-content: center; padding: 0; }
	.primary-nav .menu a { border: 0; padding: 13px 11px; font-size: .82rem; text-transform: uppercase; position: relative; }
	.primary-nav .menu a::after { content: ""; position: absolute; left: 11px; right: 11px; bottom: 8px; height: 2px; background: var(--yellow); transform: scaleX(0); transform-origin: left; transition: transform .25s ease; }
	.primary-nav .menu a:hover::after, .primary-nav .current-menu-item > a::after, .primary-nav .current_page_item > a::after { transform: scaleX(1); }
	.site-header__inner { justify-content: space-between; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
	.js .reveal { opacity: 1; transform: none; }
	.hero__slide img { transform: none; }
}

@media print {
	.topbar, .site-header, .site-footer, .to-top, .hero__controls { display: none !important; }
}

@media (min-width: 600px) { .profile.profile--noimg { grid-template-columns: 1fr; } }
