@charset "UTF-8";
/*
Theme Name: Major Awards 2026
Theme URI: https://research.unl.edu/majorawards/2026/
Author: Joel Brehm
Author URI: https://bolerois.com/
Description: 2026 Research and Creative Activity Report. Impact-first landing page and long-form award-list sections, built on the UNL brand palette with Work Sans and Source Serif 4.
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Version: 1.0
Text Domain: ma2026
Tags: one-column, accessibility-ready, custom-colors, custom-menu, editor-style, featured-images, translation-ready
*/

/* =========================================================================
   1. Tokens -- UNL brand guide
   ====================================================================== */

:root {
	/* Primary */
	--ar-scarlet: #d00000;
	--ar-cream: #f5f1e7;
	--ar-cream-light: #fefdfa;
	--ar-gray: #c7c8ca;

	/* Secondary */
	--ar-navy: #001226;
	--ar-cerulean: #249ab5;

	/* Tertiary -- charts and graphs only, per the brand guide */
	--ar-green: #bccb3a;
	--ar-orange: #f58a1f;
	--ar-lapis: #005d84;
	--ar-yellow: #ffd74f;
	--ar-purple: #a5228d;

	/* Derived neutrals.
	   --ar-ink-mute was #757571, which cleared WCAG AA on the light card
	   (4.55) but failed on the slightly darker page background (4.10). At
	   #6b6b67 it passes on all three surfaces it is used against:
	   cream 4.74, cream-light 5.26, proofing panel 5.08. */
	--ar-ink: #1c1c1a;
	--ar-ink-soft: #4a4a46;
	--ar-ink-mute: #6b6b67;
	--ar-rule: #ddd8cb;
	--ar-rule-soft: #eae5d9;
	--ar-near-black: #1a1a18;
	/* Form-control boundaries need 3:1 under WCAG 1.4.11; --ar-rule only
	   manages 1.40. Decorative hairlines keep --ar-rule. */
	--ar-border-field: #8a8172;

	/* Type */
	--ar-sans: "Work Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--ar-serif: "Source Serif 4", "Source Serif Pro", Georgia, "Times New Roman", serif;

	/* Rhythm */
	--ar-measure: 62rem;
	--ar-wide: 78rem;
	--ar-gutter: clamp(1.25rem, 4vw, 3rem);
	--ar-rail: 3.25rem;
}

/* =========================================================================
   2. Reset and base
   ====================================================================== */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: 5.5rem;
}

body {
	margin: 0;
	background: var(--ar-cream);
	color: var(--ar-ink);
	font-family: var(--ar-sans);
	font-size: 16px;
	font-weight: 400;
	line-height: 1.55;
	font-feature-settings: "kern" 1;
	-webkit-font-smoothing: antialiased;
	background-image: url(/majorawards/wp-content/themes/ma2026/assets/ar_circuit.jpg);
	background-size: 125% auto;
	background-repeat: repeat;
}

img,
svg {
	max-width: 100%;
	height: auto;
}

a {
	color: inherit;
}

h1, h2, h3, h4, h5, h6, p, ul, ol, blockquote, figure {
	margin: 0;
}

ul, ol {
	padding: 0;
	list-style: none;
}

button {
	font: inherit;
	color: inherit;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
	border: 0;
}

:where(a, button, input, select, textarea, summary):focus-visible {
	outline: 2px solid var(--ar-scarlet);
	outline-offset: 2px;
}

.ar-skip {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 100;
	padding: 0.75rem 1.25rem;
	background: #fff;
	font-weight: 600;
}

.ar-skip:focus {
	left: 0;
}

/* =========================================================================
   3. Shared type primitives
   ====================================================================== */

.ar-display {
	margin: 0;
	font-family: var(--ar-serif);
	font-size: clamp(2.75rem, 6.5vw, 4.6rem);
	font-weight: 400;
	line-height: 1.03;
	letter-spacing: -0.015em;
}

.ar-h1 {
	margin: 0;
	font-family: var(--ar-serif);
	font-size: clamp(2rem, 4.6vw, 3.15rem);
	font-weight: 400;
	line-height: 1.06;
	letter-spacing: -0.012em;
}

.ar-h2 {
	margin: 0;
	font-family: var(--ar-serif);
	font-size: clamp(1.6rem, 3vw, 2.4rem);
	font-weight: 400;
	line-height: 1.1;
}

.ar-eyebrow {
	margin: 0;
	font-family: var(--ar-sans);
	font-size: 0.6875rem;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: 0.13em;
	text-transform: uppercase;
	color: var(--ar-ink-mute);
}

.ar-eyebrow--accent {
	color: var(--ar-scarlet);
}

.ar-lead {
	max-width: 34em;
	font-size: 1.0625rem;
	line-height: 1.6;
	color: var(--ar-ink-soft);
}

.ar-dot {
	color: var(--ar-ink-mute);
	padding: 0 0.15em;
}

.ar-new {
	color: var(--ar-scarlet);
	font-weight: 600;
}

.ar-textlink {
	color: var(--ar-scarlet);
	font-weight: 500;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.ar-btn {
	display: inline-block;
	padding: 0.8rem 1.4rem;
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
	border: 1px solid transparent;
	transition: background-color 0.15s ease, color 0.15s ease;
	cursor: pointer;
}

.ar-btn--primary {
	background: var(--ar-scarlet);
	color: #fff;
}

.ar-btn--primary:hover {
	background: #a80000;
}

.ar-btn--ghost {
	background: transparent;
	border-color: var(--ar-ink);
	color: var(--ar-ink);
}

.ar-btn--ghost:hover {
	background: var(--ar-ink);
	color: var(--ar-cream-light);
}

/* =========================================================================
   4. Top bar and section nav
   ====================================================================== */

.ar-topbar {
	position: sticky;
	top: 0;
	z-index: 40;
	background: var(--ar-scarlet);
	color: #fff;
}

.ar-topbar__inner {
	display: flex;
	align-items: center;
	gap: 1rem;
	max-width: var(--ar-wide);
	margin: 0 auto;
	padding: 0.7rem var(--ar-gutter);
}

.ar-topbar__brand {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	text-decoration: none;
	color: inherit;
}

/* Sized by height so the 776x55 viewBox cannot distort. */
.ar-topbar__wordmark {
	display: block;
	width: auto;
	height: 0.95rem;
}

.ar-topbar__report {
	margin-left: auto;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.11em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.92);
}

.ar-topbar__menu {
	display: grid;
	place-items: center;
	width: 2.25rem;
	height: 2.25rem;
	background: transparent;
	border: 1px solid rgba(255, 255, 255, 0.45);
	cursor: pointer;
}

.ar-topbar__menu-bars,
.ar-topbar__menu-bars::before,
.ar-topbar__menu-bars::after {
	display: block;
	width: 14px;
	height: 1.5px;
	background: #fff;
}

.ar-topbar__menu-bars {
	position: relative;
}

.ar-topbar__menu-bars::before,
.ar-topbar__menu-bars::after {
	content: "";
	position: absolute;
	left: 0;
}

.ar-topbar__menu-bars::before {
	top: -4.5px;
}

.ar-topbar__menu-bars::after {
	top: 4.5px;
}

.ar-nav {
	background: #a80000;
}

.ar-nav__list {
	border-top: 1px solid rgba(255, 255, 255, 0.2);
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(19rem, 1fr));
	gap: 0 2rem;
	max-width: var(--ar-wide);
	margin: 0 auto;
	padding: 1rem var(--ar-gutter) 1.5rem;
}

.ar-nav__list a {
	display: flex;
	gap: 0.75rem;
	padding: 0.45rem 0;
	font-size: 0.9375rem;
	color: rgba(255, 255, 255, 0.9);
	text-decoration: none;
	border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.ar-nav__list a:hover {
	color: #fff;
}

.ar-nav__num {
	font-size: 0.75rem;
	font-variant-numeric: tabular-nums;
	color: rgba(255, 255, 255, 0.8);
	padding-top: 0.15em;
}

/* =========================================================================
   5. Comparison-mode banner
   ====================================================================== */

.ar-previewbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem 1rem;
	padding: 0.6rem var(--ar-gutter);
	background: var(--ar-navy);
	color: #fff;
	font-size: 0.8125rem;
	line-height: 1.4;
}

.ar-previewbar__tag {
	padding: 0.2rem 0.5rem;
	background: var(--ar-yellow);
	color: var(--ar-navy);
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.09em;
	text-transform: uppercase;
}

.ar-previewbar__msg {
	flex: 1 1 22rem;
}

.ar-previewbar__exit {
	font-weight: 600;
	color: var(--ar-yellow);
	text-decoration: none;
	white-space: nowrap;
}

/* =========================================================================
   6. Landing page
   ====================================================================== */

.ar-main {
	display: block;
}

.ar-page {
	max-width: var(--ar-measure);
	margin: 0 auto;
	padding: clamp(2.5rem, 6vw, 4.5rem) var(--ar-gutter) 4rem;
}

.ar-is-landing .ar-page {
	max-width: var(--ar-wide);
}

.ar-page__title {
	margin-bottom: 1.75rem;
}

.ar-prose p,
.ar-prose ul,
.ar-prose ol {
	margin-bottom: 1.1rem;
}

.ar-prose ul {
	list-style: disc;
	padding-left: 1.35rem;
}

.ar-prose ol {
	list-style: decimal;
	padding-left: 1.35rem;
}

.ar-prose a {
	color: var(--ar-scarlet);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.ar-prose h2 {
	margin: 2.25rem 0 0.75rem;
	font-family: var(--ar-serif);
	font-size: 1.5rem;
	font-weight: 600;
}

.ar-prose h3 {
	margin: 1.75rem 0 0.5rem;
	font-size: 1.0625rem;
	font-weight: 600;
}

/* Hero: intro left, stat grid right */
.ar-hero {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
	gap: clamp(1.75rem, 5vw, 4rem);
	align-items: start;
	padding-bottom: clamp(2rem, 5vw, 3.25rem);
}

.ar-hero__intro {
	display: block;
}

.ar-hero__aside {
	min-width: 0;
}

@media (max-width: 60rem) {
	.ar-hero {
		grid-template-columns: minmax(0, 1fr);
	}
}

.ar-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-top: 2rem;
}

.ar-display + .ar-lead {
	margin-top: 1.25rem;
}

.ar-eyebrow + .ar-display {
	margin-top: 1.1rem;
}

.ar-stats {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	border-top: 1px solid var(--ar-rule);
	border-left: 1px solid var(--ar-rule);
}

.ar-stat {
	padding: 1.5rem 1.5rem 1.75rem;
	border-right: 1px solid var(--ar-rule);
	border-bottom: 1px solid var(--ar-rule);
}

.ar-stat__value {
	font-family: var(--ar-serif);
	font-size: clamp(2rem, 3.6vw, 2.9rem);
	font-weight: 400;
	line-height: 1;
	letter-spacing: -0.01em;
}

.ar-stat--accent .ar-stat__value {
	color: var(--ar-scarlet);
}

.ar-stat__label {
	margin-top: 0.7rem;
	font-size: 0.6875rem;
	font-weight: 500;
	line-height: 1.45;
	letter-spacing: 0.075em;
	text-transform: uppercase;
	color: var(--ar-ink-mute);
}

/* Funding share bars */
.ar-funding {
	display: grid;
	grid-template-columns: minmax(12rem, 15rem) 1fr;
	gap: 1.5rem 3rem;
	margin: 3rem 0;
	padding: 2rem 0;
	border-top: 1px solid var(--ar-rule);
	border-bottom: 1px solid var(--ar-rule);
}

.ar-funding__note {
	margin-top: 0.6rem;
	font-size: 0.8125rem;
	line-height: 1.45;
	color: var(--ar-ink-mute);
}

.ar-funding__bars {
	display: grid;
	gap: 0.6rem;
	align-content: start;
}

.ar-bar {
	display: grid;
	grid-template-columns: minmax(9rem, 14rem) 1fr auto;
	align-items: center;
	gap: 0 1.25rem;
}

.ar-bar__label {
	font-size: 0.875rem;
	color: var(--ar-ink-soft);
}

.ar-bar__track {
	position: relative;
	height: 0.6875rem;
	background: var(--ar-rule-soft);
}

.ar-bar__fill {
	display: block;
	height: 100%;
	background: var(--ar-scarlet);
}

.ar-bar__fill--2 { background: #d4562a; }
.ar-bar__fill--3 { background: #8c7a63; }
.ar-bar__fill--4 { background: #5c5548; }
.ar-bar__fill--5 { background: var(--ar-lapis); }

.ar-bar__value {
	min-width: 3ch;
	text-align: right;
	font-size: 0.8125rem;
	font-variant-numeric: tabular-nums;
	color: var(--ar-ink-soft);
}

/* Vice chancellor letter */
.ar-letter {
	display: grid;
	grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
	gap: clamp(1.5rem, 4vw, 3.5rem);
	margin: 0 calc(var(--ar-gutter) * -1);
	padding: clamp(2.5rem, 5vw, 4rem) var(--ar-gutter);
	background: var(--ar-cream-light);
}

.ar-letter__portrait {
	margin: 0;
}

.ar-letter__portrait img {
	display: block;
	width: 100%;
}

.ar-letter__placeholder {
	display: grid;
	place-items: center;
	aspect-ratio: 4 / 5;
	background: repeating-linear-gradient(
		-45deg,
		var(--ar-rule-soft) 0 6px,
		#f7f4ec 6px 12px
	);
	font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
	font-size: 0.75rem;
	color: var(--ar-ink-mute);
}

.ar-letter__portrait figcaption {
	margin-top: 0.85rem;
	font-size: 0.8125rem;
	line-height: 1.45;
}

.ar-letter__name {
	display: block;
	font-weight: 600;
}

.ar-letter__role {
	display: block;
	color: var(--ar-ink-mute);
}

.ar-letter__quote {
	margin: 1rem 0 1.5rem;
}

.ar-letter__quote p {
	font-family: var(--ar-serif);
	font-size: clamp(1.35rem, 2.5vw, 1.85rem);
	font-weight: 400;
	line-height: 1.28;
	letter-spacing: -0.008em;
}

.ar-letter__body .ar-prose {
	font-size: 0.9375rem;
	color: var(--ar-ink-soft);
}

/* Contents table */
.ar-contents {
	margin-top: clamp(2.5rem, 6vw, 4.5rem);
}

.ar-contents__head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.5rem 1.5rem;
	padding-bottom: 1.1rem;
}

.ar-contents__meta {
	font-size: 0.6875rem;
	font-weight: 500;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--ar-ink-mute);
}

.ar-contents__list {
	border-top: 1px solid var(--ar-rule);
}

.ar-contents__link {
	display: grid;
	grid-template-columns: 2.5rem minmax(0, 1fr) 9.5rem 4.5rem;
	align-items: center;
	gap: 0 1rem;
	padding: 0.95rem 0.5rem;
	text-decoration: none;
	border-bottom: 1px solid var(--ar-rule-soft);
	transition: background-color 0.12s ease;
}

.ar-contents__link:hover {
	background: var(--ar-cream-light);
}

.ar-contents__num {
	font-size: 0.75rem;
	font-variant-numeric: tabular-nums;
	color: var(--ar-ink-mute);
}

.ar-contents__title {
	font-size: 1.0625rem;
	line-height: 1.3;
}

.ar-contents__kind {
	font-size: 0.625rem;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--ar-ink-mute);
}

.ar-contents__count {
	text-align: right;
	font-size: 0.9375rem;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	color: var(--ar-scarlet);
}

/* =========================================================================
   7. Section head and controls
   ====================================================================== */

.ar-sectionhead {
}

.ar-sectionhead__inner {
	max-width: var(--ar-wide);
	margin: 0 auto;
	padding: clamp(2.25rem, 5vw, 3.75rem) var(--ar-gutter) 1.75rem;
}

.ar-sectionhead__row {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1.5rem 2rem;
	margin-top: 1rem;
}

.ar-sectionhead__titles {
	flex: 1 1 24rem;
}

.ar-sectionhead__meta {
	margin-top: 0.6rem;
	font-size: 0.875rem;
	color: var(--ar-ink-mute);
}

.ar-controls {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.ar-search__input,
.ar-filter__select {
	height: 2.75rem;
	padding: 0 0.9rem;
	background: var(--ar-cream-light);
	border: 1px solid var(--ar-border-field);
	border-radius: 0;
	font-family: inherit;
	font-size: 0.875rem;
	color: var(--ar-ink);
	appearance: none;
}

.ar-search__input {
	width: min(22rem, 60vw);
}

.ar-search__input::placeholder {
	color: var(--ar-ink-mute);
}

.ar-filter__select {
	padding-right: 2.25rem;
	background-image: linear-gradient(45deg, transparent 50%, var(--ar-ink-soft) 50%),
		linear-gradient(135deg, var(--ar-ink-soft) 50%, transparent 50%);
	background-position: calc(100% - 1.15rem) 1.2rem, calc(100% - 0.85rem) 1.2rem;
	background-size: 5px 5px, 5px 5px;
	background-repeat: no-repeat;
	cursor: pointer;
}

/* =========================================================================
   8. Section body -- A-Z rail plus record list
   ====================================================================== */

.ar-section {
	display: grid;
	grid-template-columns: var(--ar-rail) minmax(0, 1fr);
	max-width: var(--ar-wide);
	margin: 0 auto;
	padding: 0 var(--ar-gutter);
}

.ar-rail {
	position: sticky;
	top: 4rem;
	align-self: start;
	padding-top: 3.25rem;
	/* No overflow:hidden here -- it clipped the focus outline on a rail
	   letter, so keyboard users could not see where they were. 26 short
	   letters fit without needing a scroll container. */
}

.ar-rail__label {
	display: block;
	margin-bottom: 0.5rem;
	font-size: 0.625rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	color: var(--ar-ink-mute);
}

.ar-rail__letter {
	display: block;
	padding: 0.09rem 0;
	font-size: 0.6875rem;
	font-weight: 600;
	line-height: 1.35;
	letter-spacing: 0.04em;
	text-decoration: none;
	color: var(--ar-gray);
	pointer-events: none;
}

.ar-rail__letter.is-present {
	color: var(--ar-ink-soft);
	pointer-events: auto;
}

.ar-rail__letter.is-present:hover,
.ar-rail__letter.is-current {
	color: var(--ar-scarlet);
}

.ar-section__body {
	min-width: 0;
	background: var(--ar-cream-light);
	border: 1px solid var(--ar-rule);
}

.ar-noteline {
	position: sticky;
	top: 3.25rem;
	z-index: 5;
	padding: 0.7rem 1.5rem;
	background: var(--ar-cream);
	border-bottom: 1px solid var(--ar-rule);
	font-size: 0.8125rem;
	color: var(--ar-ink-soft);
}

.ar-section__note > p:not(.ar-noteline) {
	padding: 1rem 1.5rem 0;
	font-size: 0.9375rem;
	color: var(--ar-ink-soft);
}

.ar-section__note > p:not(.ar-noteline) + p {
	padding-top: 0.5rem;
}

.ar-section__note h2:not(.ar-letterhead) {
	padding: 1.5rem 1.5rem 0;
	font-family: var(--ar-serif);
	font-size: 1.35rem;
	font-weight: 600;
}

/* Letter dividers */
.ar-letterhead {
	padding: 2.25rem 1.5rem 0.35rem;
	font-family: var(--ar-serif);
	font-size: 1.6rem;
	font-weight: 400;
	line-height: 1;
	color: var(--ar-scarlet);
	scroll-margin-top: 7rem;
}

.ar-list > .ar-letterhead:first-child {
	padding-top: 1.75rem;
}

/* Investigator record */
.ar-inv {
	padding: 0 1.5rem 1.75rem;
	border-bottom: 1px solid var(--ar-rule-soft);
}

.ar-inv:last-child {
	border-bottom: 0;
}

/* Flex, not grid: ma2026_avatar() returns nothing when a record has no
   featured image, and the name should then start at the left edge instead of
   sitting in an empty first column. */
.ar-inv__head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.35rem 1.25rem;
	padding: 1.5rem 0 1rem;
}

.ar-inv__name {
	flex: 1 1 auto;
}

.ar-avatar {
	flex: 0 0 auto;
	display: block;
	width: 12.5rem;
	height: 9.5rem;
	background-color: var(--ar-rule-soft);
	background-position: 50% 25%;
	background-size: cover;
	background-repeat: no-repeat;
}

.ar-inv__name {
	font-family: var(--ar-serif);
	font-size: clamp(1.25rem, 2.2vw, 1.6rem);
	font-weight: 400;
	line-height: 1.15;
	letter-spacing: -0.005em;
}

.ar-inv__dept {
	flex: 0 1 auto;
	margin-left: auto;
	text-align: right;
	font-size: 0.8125rem;
	color: var(--ar-ink-mute);
}

/* Award: main column beside the co-investigator column, split evenly.
   .ar-award--solo is set in PHP when a record has no co-investigators, and
   .ar-entry (publications, presentations) never has them at all -- both take
   the full width instead of leaving an empty half. */
.ar-award,
.ar-entry {
	display: block;
	padding: 0.85rem 0;
	border-top: 1px solid var(--ar-rule-soft);
}

.ar-award--paired {
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.ar-inv__awards > .ar-award:first-child,
.ar-inv__awards > .ar-entry:first-child {
	border-top: 0;
	padding-top: 0;
}

.ar-award__title {
	font-size: 0.9375rem;
	line-height: 1.45;
}

.ar-award__facts {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.35rem 1.15rem;
	margin-top: 0.4rem;
}

.ar-amount {
	font-size: 0.9375rem;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
}

.ar-sponsor,
.ar-dates {
	font-size: 0.8125rem;
	color: var(--ar-ink-mute);
}

.ar-dates {
	font-variant-numeric: tabular-nums;
}

.ar-award__body,
.ar-entry__body {
	margin-top: 0.5rem;
	font-size: 0.9375rem;
	line-height: 1.5;
	color: var(--ar-ink-soft);
}

.ar-award__body p,
.ar-entry__body p {
	margin-bottom: 0.6rem;
}

.ar-entry__body em {
	font-style: italic;
}

.ar-entry__body a {
	color: var(--ar-scarlet);
	text-decoration: underline;
	text-underline-offset: 2px;
}

/* Co-investigators */
.ar-copis {
	border-top: 1px solid var(--ar-rule-soft);
	padding-top: 1.5rem;
}

.ar-copis .ar-eyebrow {
	font-size: 0.625rem;
	letter-spacing: 0.11em;
	color: var(--ar-ink-mute);
}

.ar-copis ul {
	margin-top: 0.35rem;
}

.ar-copis li {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.75rem;
	padding: 0.3rem 0;
	border-bottom: 1px solid var(--ar-rule-soft);
	font-size: 0.75rem;
}

.ar-copis li:last-child {
	border-bottom: 0;
}

.ar-copis__name {
	font-weight: 500;
}

.ar-copis__dept {
	text-align: right;
	color: var(--ar-ink-mute);
}

/* Empty state and filtered-out rows */
.ar-empty {
	padding: 3rem 1.5rem;
	text-align: center;
	color: var(--ar-ink-soft);
}

.ar-empty__hint {
	margin-top: 0.5rem;
	font-size: 0.875rem;
}

.ar-empty code {
	padding: 0.1rem 0.35rem;
	background: var(--ar-cream);
	font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
	font-size: 0.8125rem;
}

[data-ar-record].is-hidden,
.ar-letterhead.is-hidden {
	display: none;
}

/* =========================================================================
   9. Section footer
   ====================================================================== */

.ar-sectionfoot {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.75rem 1.5rem;
	max-width: var(--ar-wide);
	margin: 0 auto;
	padding: 1.25rem var(--ar-gutter) 4rem;
	padding-left: calc(var(--ar-gutter) + var(--ar-rail));
}

.ar-sectionfoot__tally {
	font-size: 0.8125rem;
	color: var(--ar-ink-mute);
}

.ar-sectionfoot__next {
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--ar-scarlet);
	text-decoration: none;
}

.ar-sectionfoot__next:hover {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.ar-section__note {
	padding: 1.5em;
}

/* =========================================================================
   10. Proofing panel -- editors only
   ------------------------------------------------------------------------
   Always visible. It used to be a <details> that had to be opened on every
   record, and one page-wide form with a single save button at the bottom.
   Each record is now its own form and saves itself.
   ====================================================================== */

.ar-proof {
	margin-top: 0.75rem;
	padding: 0.7rem 0.85rem;
	border-left: 3px solid var(--ar-yellow);
	background: #fbf9f3;
	font-size: 0.8125rem;
}

.ar-proof__head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.5rem 1rem;
	margin-bottom: 0.5rem;
}

.ar-proof__edit {
	color: var(--ar-scarlet);
	font-size: 0.75rem;
}

.ar-proof__checks {
	display: flex;
	flex-wrap: wrap;
	gap: 0.3rem 1.25rem;
}

.ar-proof__check {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
}

.ar-proof__check.is-flagged label {
	font-weight: 600;
	color: var(--ar-scarlet);
}

.ar-proof__notes {
	margin: 0.6rem 0 0;
	padding-left: 0.75rem;
	border-left: 2px solid var(--ar-rule);
}

.ar-proof__notes li {
	padding: 0.2rem 0;
}

.ar-proof__by,
.ar-proof__when {
	margin-left: 0.4em;
	color: var(--ar-ink-mute);
	font-size: 0.75rem;
}

.ar-proof__add {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 0.5rem;
	margin-top: 0.6rem;
}

.ar-proof__add textarea {
	flex: 1 1 18rem;
	min-height: 2.6rem;
	padding: 0.4rem 0.5rem;
	font-family: inherit;
	font-size: 0.8125rem;
	background: #fff;
	border: 1px solid var(--ar-border-field);
}

.ar-proof__save {
	flex: 0 0 auto;
	padding: 0.5rem 1rem;
	background: var(--ar-ink);
	color: var(--ar-cream-light);
	border: 1px solid var(--ar-ink);
	font-size: 0.8125rem;
	font-weight: 600;
	cursor: pointer;
}

.ar-proof__save:hover {
	background: var(--ar-scarlet);
	border-color: var(--ar-scarlet);
}

.ar-proof__save[disabled] {
	opacity: 0.6;
	cursor: default;
}

.ar-proof__status {
	flex: 0 0 auto;
	align-self: center;
	font-size: 0.75rem;
	color: var(--ar-ink-mute);
}

.ar-proof__status.is-ok {
	color: #2e7d32;
	font-weight: 600;
}

.ar-proof__status.is-error {
	color: var(--ar-scarlet);
	font-weight: 600;
}
/* =========================================================================
   11. Footer
   ====================================================================== */

.ar-footer {
	background: rgba(0, 0, 0, 0.02);
	color: #000000;
}

.ar-footer__inner {
	display: grid;
	grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
	gap: 2rem 3rem;
	max-width: var(--ar-wide);
	margin: 0 auto;
	padding: clamp(2.25rem, 5vw, 3.5rem) var(--ar-gutter);
}

/* Sized by height so the 105x126 portrait viewBox cannot distort. */
.ar-footer__mark {
	display: block;
	width: auto;
	height: 3.75rem;
	margin-bottom: 1.25rem;
}

.ar-footer__report {
	font-size: 0.875rem;
	font-weight: 600;
}

.ar-footer__legal {
	margin-top: 0.4rem;
	font-size: 0.8125rem;
}

.ar-footer__related .ar-eyebrow {
}

.ar-footer__related ul {
	margin-top: 0.75rem;
}

.ar-footer__related li {
	padding: 0.22rem 0;
}

.ar-footer__related a {
	font-size: 0.875rem;
	text-decoration: none;
}

.ar-footer__related a:hover {
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* =========================================================================
   12. Responsive
   ====================================================================== */

@media (max-width: 60rem) {
	.ar-letter,
	.ar-funding,
	.ar-footer__inner {
		grid-template-columns: minmax(0, 1fr);
	}

	.ar-award,
	.ar-entry {
		grid-template-columns: minmax(0, 1fr);
		gap: 0.5rem;
	}

	.ar-copis {
		margin-top: 0.25rem;
	}

	.ar-contents__link {
		grid-template-columns: 2rem minmax(0, 1fr) 4rem;
	}

	.ar-contents__kind {
		display: none;
	}
}

@media (max-width: 48rem) {
	.ar-section {
		grid-template-columns: minmax(0, 1fr);
	}

	.ar-rail {
		display: none;
	}

	.ar-sectionfoot,

	.ar-stats {
		grid-template-columns: minmax(0, 1fr);
	}

	.ar-avatar {
		width: 8rem;
		height: 6.1rem;
	}

	/* Department drops under the name rather than being squeezed beside it. */
	.ar-inv__name {
		flex: 1 1 100%;
	}

	.ar-inv__dept {
		flex: 1 1 100%;
		margin-left: 0;
		text-align: left;
	}

	.ar-bar {
		grid-template-columns: minmax(0, 1fr) auto;
	}

	.ar-bar__track {
		grid-column: 1 / -1;
		order: 3;
	}

	.ar-topbar__report {
		display: none;
	}
}

@media print {
	.ar-topbar,
	.ar-nav,
	.ar-rail,
	.ar-controls,
	.ar-previewbar,
	.ar-proof,
	.ar-footer {
		display: none !important;
	}

	body {
		background: #fff;
		font-size: 10pt;
	}

	.ar-section__body {
		border: 0;
	}

	.ar-inv {
		break-inside: avoid;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	/* transition-delay too, or the nav's visibility delay still lags. */
	*,
	*::before,
	*::after {
		transition-duration: 0.01ms !important;
		transition-delay: 0s !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
	}
}

/* =========================================================================
   13. Coming-soon page
   ====================================================================== */

.ar-soon {
	max-width: var(--ar-measure);
	margin: 0 auto;
	padding: clamp(4rem, 14vh, 9rem) var(--ar-gutter) clamp(4rem, 12vh, 7rem);
	text-align: center;
}

.ar-soon .ar-display {
	margin-top: 1.1rem;
}

.ar-soon__body {
	max-width: 34em;
	margin: 1.5rem auto 0;
	font-size: 1.0625rem;
	line-height: 1.6;
	color: var(--ar-ink-soft);
}

.ar-soon__body p {
	margin-bottom: 0.9rem;
}

.ar-soon__links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.75rem;
	margin-top: 2.5rem;
}

/* Fallback-template pagination */
.ar-pagination {
	margin-top: 2.5rem;
	padding-top: 1.25rem;
	border-top: 1px solid var(--ar-rule);
	font-size: 0.875rem;
}

.ar-pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.ar-pagination .page-numbers {
	padding: 0.35rem 0.7rem;
	border: 1px solid var(--ar-rule);
	background: var(--ar-cream-light);
	text-decoration: none;
}

.ar-pagination .page-numbers.current {
	background: var(--ar-scarlet);
	border-color: var(--ar-scarlet);
	color: #fff;
}

/* =========================================================================
   14. Single record and search form (fallback views)
   ====================================================================== */

/* Flex for the same reason as .ar-inv__head: the avatar may not be there. */
.ar-single__head {
	display: flex;
	align-items: center;
	gap: 1.5rem;
	margin: 1rem 0 1.5rem;
}

.ar-single__head .ar-avatar {
	width: 12.5rem;
	height: 9.5rem;
}

.ar-single__dept {
	margin-top: 0.35rem;
	font-size: 0.875rem;
	color: var(--ar-ink-mute);
}

.ar-single__title {
	font-size: 1.0625rem;
	line-height: 1.45;
}

.ar-single .ar-award__facts {
	margin: 0.6rem 0 1.5rem;
	padding-bottom: 1.25rem;
	border-bottom: 1px solid var(--ar-rule);
}

.ar-single__copis {
	max-width: 28rem;
	margin-top: 2rem;
	padding-top: 1rem;
	border-top: 1px solid var(--ar-rule);
}

.ar-single__back {
	margin-top: 2.5rem;
	padding-top: 1.25rem;
	border-top: 1px solid var(--ar-rule);
}

.ar-searchform {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-top: 1.25rem;
}

/* =========================================================================
   15. Keyboard and focus
   ====================================================================== */

/* Raised out of :where() so a later colour rule cannot flatten the ring. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
	outline: 2px solid var(--ar-scarlet);
	outline-offset: 2px;
}

/* main and the letter headings take focus only programmatically, from the
   skip link and the A-Z rail. They should not show a ring for that. */
.ar-main:focus,
.ar-letterhead:focus {
	outline: none;
}

.ar-main:focus-visible,
.ar-letterhead:focus-visible {
	outline: 2px solid var(--ar-scarlet);
	outline-offset: 4px;
}

/* Letters with no records are marked inert by JS. Belt and braces so they
   cannot take focus even if the script fails midway. */
.ar-rail__letter[tabindex="-1"] {
	pointer-events: none;
}

@media (prefers-contrast: more) {
	:root {
		--ar-ink-mute: #55554f;
		--ar-border-field: #6d6555;
		--ar-rule: #b5ae9c;
	}
}

/* =========================================================================
   16. WordPress admin bar offset
   ------------------------------------------------------------------------
   The admin bar is position:fixed at the top of the viewport, so every
   sticky element at top:0 slides underneath it and gets clipped -- visible
   as a cut-off wordmark in the topbar. Only logged-in users see this, which
   is everyone doing proofing, so it is worth correcting.

   scroll-margin-top is set on the jump target itself rather than using
   scroll-padding-top on <html>, because body.admin-bar cannot reach <html>
   without :has().
   ====================================================================== */

body.admin-bar .ar-topbar {
	top: 32px;
}

body.admin-bar .ar-noteline {
	top: calc(3.25rem + 32px);
}

body.admin-bar .ar-rail {
	top: calc(4rem + 32px);
}

body.admin-bar .ar-letterhead {
	scroll-margin-top: calc(7rem + 32px);
}

/* The admin bar is 46px tall below this width. */
@media screen and (max-width: 782px) {
	body.admin-bar .ar-topbar {
		top: 46px;
	}

	body.admin-bar .ar-noteline {
		top: calc(3.25rem + 46px);
	}

	body.admin-bar .ar-rail {
		top: calc(4rem + 46px);
	}

	body.admin-bar .ar-letterhead {
		scroll-margin-top: calc(7rem + 46px);
	}
}

/* The admin bar stops being fixed and scrolls away under 600px. */
@media screen and (max-width: 600px) {
	body.admin-bar .ar-topbar {
		top: 0;
	}

	body.admin-bar .ar-noteline {
		top: 3.25rem;
	}

	body.admin-bar .ar-rail {
		top: 4rem;
	}
}

/* =========================================================================
   17. Landing page (template-landing.php)
   ====================================================================== */

.ar-landing > * + * {
	margin-top: clamp(2.5rem, 6vw, 4.5rem);
}

/* .ar-funding and .ar-letter carry their own vertical rhythm already. */
.ar-landing > .ar-funding {
	margin-top: clamp(2rem, 5vw, 3.25rem);
	margin-bottom: 0;
}

.ar-landing > .ar-contents {
	margin-top: clamp(2.5rem, 6vw, 4.5rem);
}

/* =========================================================================
   18. Section nav: expand animation + hamburger/X morph
   ====================================================================== */

/*
 * display:none cannot be transitioned, so the closed state is a collapsed
 * grid row instead: 0fr -> 1fr animates to the panel's natural height with
 * no magic max-height number to keep in sync with the section count.
 *
 * Only applied under .has-js. With scripting off the button cannot work, so
 * the nav simply stays open rather than being shut behind a dead control.
 */
.has-js .ar-nav {
	display: grid;
	grid-template-rows: 0fr;
	visibility: hidden;
	transition:
		grid-template-rows 280ms cubic-bezier(0.22, 0.61, 0.36, 1),
		visibility 0s linear 280ms;
}

.has-js .ar-nav.is-open {
	grid-template-rows: 1fr;
	visibility: visible;
	transition:
		grid-template-rows 280ms cubic-bezier(0.22, 0.61, 0.36, 1),
		visibility 0s;
}

/* The element the row actually collapses. min-height:0 is required or the
   grid item refuses to shrink below its content. Padding lives on the list
   inside, since padding on a zero-height row would still show a sliver. */
.ar-nav__inner {
	min-height: 0;
	overflow: hidden;
}

/* Hamburger -> X.
   Driven off aria-expanded rather than a separate class, so the visual state
   and the state announced to assistive tech can never disagree. */
.ar-topbar__menu-bars,
.ar-topbar__menu-bars::before,
.ar-topbar__menu-bars::after {
	transition:
		transform 280ms cubic-bezier(0.22, 0.61, 0.36, 1),
		top 280ms cubic-bezier(0.22, 0.61, 0.36, 1),
		background-color 140ms linear;
}

/* The middle bar is the span itself, and ::before/::after are its children --
   so it has to fade via background-color, not opacity, or the two arms of
   the X would fade with it. */
.ar-topbar__menu[aria-expanded="true"] .ar-topbar__menu-bars {
	background-color: transparent;
}

.ar-topbar__menu[aria-expanded="true"] .ar-topbar__menu-bars::before {
	top: 0;
	transform: rotate(45deg);
}

.ar-topbar__menu[aria-expanded="true"] .ar-topbar__menu-bars::after {
	top: 0;
	transform: rotate(-45deg);
}

/* =========================================================================
   19. Proofing filter bar -- editors only
   ====================================================================== */

.ar-adminbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem 1rem;
	margin-top: 1rem;
	padding: 0.6rem 0.9rem;
	background: #fbf9f3;
	border-left: 3px solid var(--ar-yellow);
}

.ar-adminbar .ar-eyebrow {
	flex: 0 0 auto;
}

.ar-adminbar__field {
	flex: 0 1 auto;
}

.ar-adminbar .ar-filter__select {
	height: 2.25rem;
	font-size: 0.8125rem;
}

.ar-adminbar__counts {
	flex: 1 1 auto;
	font-size: 0.75rem;
	color: var(--ar-ink-mute);
	font-variant-numeric: tabular-nums;
}

@media (max-width: 48rem) {
	.ar-adminbar__counts {
		flex: 1 1 100%;
	}
}

/* -- Bulk save ---------------------------------------------------------- */

.ar-adminbar__save {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	flex: 0 0 auto;
	margin-left: auto;
}

.ar-adminbar__dirty {
	font-size: 0.75rem;
	color: var(--ar-ink-mute);
	font-variant-numeric: tabular-nums;
}

.ar-adminbar__saveall {
	font: inherit;
	font-size: 0.8125rem;
	font-weight: 600;
	line-height: 1;
	padding: 0.6rem 1rem;
	color: #fff;
	background: var(--ar-scarlet);
	border: 1px solid var(--ar-scarlet);
	border-radius: 2px;
	cursor: pointer;
}

.ar-adminbar__saveall:hover:not(:disabled) {
	background: #ab0000;
	border-color: #ab0000;
}

/*
 * Disabled is the resting state -- it only lights up once something is
 * actually unsaved. Inactive controls are exempt from the 1.4.11 contrast
 * minimum, so this may go lighter than the live button.
 */
.ar-adminbar__saveall:disabled {
	color: var(--ar-ink-mute);
	background: transparent;
	border-color: var(--ar-border-field);
	cursor: default;
}

/* -- Unsaved records ---------------------------------------------------- */

/*
 * A record with changes that have not been committed. The panel already
 * carries a yellow left rule at rest, so unsaved widens it and turns it
 * scarlet. Colour alone would not carry this (1.4.1): the panel also says
 * "Unsaved" in its own status line, and the bar above keeps a running count.
 */
.ar-proof.is-dirty {
	border-left-width: 6px;
	border-left-color: var(--ar-scarlet);
	padding-left: calc(0.85rem - 3px);
	background: #fdf6f4;
}

.ar-proof__status.is-dirty {
	color: var(--ar-scarlet);
	font-weight: 600;
}

.ar-proof.is-saving {
	opacity: 0.6;
}

@media (max-width: 48rem) {
	.ar-adminbar__save {
		flex: 1 1 100%;
		margin-left: 0;
		justify-content: space-between;
	}
}
