/* Faculty "about" pages (office 99, body.about-page): shared head (views/office/about_head.php), vision 99/1,
   annual reports 99/3, codes of conduct 99/4, structure 99/6; executives 99/2 add office-executives.css.
   Navy, gold, focus orange and link blue from public.css; green from news-detail.css; greys from apps.css. */

.about-page {
	--ab-navy: var(--sci-navy);
	--ab-navy-rgb: var(--sci-navy-rgb);
	--ab-gold: var(--sci-gold);
	--ab-accent: var(--sci-focus);
	--ab-blue: rgb(var(--bs-link-hover-color-rgb));
	--ab-green: #276749;
	--ab-surface: #eef2f7;
	--ab-muted-bg: #f3f5f8;
	--ab-line: #e3e8ef;
	--ab-line-strong: #b5c0cc;
	--ab-muted: #5c6b7a;
	--ab-text-soft: #4a5868;
	--ab-radius-sm: .25rem;
	--ab-radius: .375rem;
	--ab-radius-lg: 10px;
	--ab-shadow: 0 8px 24px rgba(0, 0, 0, .1);
	--ab-gap: 12px;
	--ab-section-gap: 48px;
	--ab-max: 1160px;
}

@media (min-width: 992px) {
	.about-page {
		--ab-section-gap: 56px;
	}
}

.about-head,
.about-body {
	max-width: calc(var(--ab-max) + 1.5rem);
}

/* Head: breadcrumb, hero, tabs */

.about-head {
	padding-top: 1rem;
}

.ab-breadcrumb .breadcrumb {
	--bs-breadcrumb-margin-bottom: .5rem;
	--bs-breadcrumb-divider-color: var(--ab-muted);
	--bs-breadcrumb-item-active-color: var(--ab-muted);
	flex-wrap: nowrap;
	font-size: .875rem;
}

.ab-breadcrumb .breadcrumb-item {
	display: flex;
	flex: none;
	align-items: center;
	white-space: nowrap;
}

.ab-breadcrumb .breadcrumb-item.active {
	flex: 0 1 auto;
	min-width: 0;
}

.ab-breadcrumb-title {
	overflow: hidden;
	text-overflow: ellipsis;
}

.ab-breadcrumb a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
}

.ab-hero {
	padding: 1.5rem 1.25rem;
	border-radius: var(--ab-radius-lg);
	background: linear-gradient(120deg, var(--ab-navy) 0%, var(--ab-navy) 35%, var(--ab-blue) 100%);
	color: #fff;
}

.ab-hero-title {
	margin: 0;
	color: #fff;
	font-size: 1.5rem;
	font-weight: 500;
	line-height: 1.3;
}

@media (min-width: 768px) {
	.ab-hero {
		padding: 2rem 2.5rem;
	}
}

@media (min-width: 992px) {
	.ab-hero-title {
		font-size: 2rem;
	}
}

/* Hero of the vision page: page name, badge, the vision as a quote */

.ab-hero-lg .ab-hero-title {
	font-size: 1.125rem;
}

.ab-badge {
	display: inline-block;
	margin: 1.25rem 0 .875rem;
	padding: .25rem .875rem;
	border-radius: 999px;
	background: var(--ab-gold);
	color: var(--ab-navy);
	font-size: .9375rem;
	font-weight: 500;
	line-height: 1.5;
}

.ab-quote {
	margin: 0;
}

.ab-quote p {
	max-width: 54rem;
	margin: 0;
	color: #fff;
	font-size: 1.375rem;
	font-weight: 500;
	line-height: 1.5;
}

.ab-quote-target {
	margin: .875rem 0 0;
	color: #fff;
	font-size: 1rem;
}

@media (min-width: 768px) {
	.ab-hero-lg {
		padding: 2.75rem 2.5rem;
	}

	.ab-hero-lg .ab-hero-title {
		font-size: 1.25rem;
	}

	.ab-quote p {
		font-size: 1.75rem;
	}

	.ab-quote-target {
		font-size: 1.125rem;
	}
}

@media (min-width: 992px) {
	.ab-hero-lg {
		padding: 3.25rem 3.5rem;
	}

	.ab-quote p {
		font-size: 2.125rem;
	}
}

/* Tabs: orange line under the current page, sideways scroll when they do not fit */

.ab-tabs {
	margin-top: .75rem;
	border-bottom: 1px solid var(--ab-line);
}

.ab-tabs ul {
	position: relative;
	display: flex;
	gap: .25rem;
	margin: 0;
	padding: 0;
	overflow-x: auto;
	list-style: none;
	scrollbar-width: thin;
}

.ab-tabs li {
	flex: none;
}

.ab-tabs a {
	display: flex;
	align-items: center;
	min-height: 44px;
	padding: .5rem .875rem;
	border-bottom: 3px solid transparent;
	border-radius: var(--ab-radius-sm) var(--ab-radius-sm) 0 0;
	color: var(--ab-navy);
	font-size: .875rem;
	white-space: nowrap;
}

.ab-tabs a:hover {
	background: var(--ab-surface);
	color: var(--ab-navy);
	text-decoration: none;
}

.ab-tabs a.active {
	border-bottom-color: var(--ab-accent);
	font-weight: 500;
}

.ab-tabs a:focus-visible {
	outline-offset: -3px;
}

@media (min-width: 768px) {
	.ab-tabs a {
		padding: .5rem 1rem;
		font-size: .9375rem;
	}
}

/* Body and section headings */

.about-body.page {
	padding-top: 2rem;
	padding-bottom: var(--ab-section-gap);
}

.ab-section + .ab-section {
	margin-top: var(--ab-section-gap);
}

.ab-section + .ab-section-tight {
	margin-top: 1.5rem;
}

.ab-block + .ab-block {
	margin-top: 2.5rem;
}

.ab-heading {
	position: relative;
	margin: 0 0 1.5rem;
	padding-bottom: .75rem;
	color: var(--ab-navy);
	font-size: 1.375rem;
	font-weight: 500;
	line-height: 1.3;
}

.ab-heading::after {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 48px;
	height: 3px;
	content: "";
	border-radius: 2px;
	background: var(--ab-gold);
}

.ab-subheading {
	margin: 0 0 1rem;
	font-size: 1.125rem;
	font-weight: 500;
}

@media (min-width: 992px) {
	.ab-heading {
		font-size: 1.625rem;
	}
}

/* Cards: vision terms, indicators, missions, core competencies */

.ab-cards {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--ab-gap);
	margin: 0;
	padding: 0;
	list-style: none;
}

.ab-card {
	padding: 1.25rem;
	border: 1px solid var(--ab-line);
	border-radius: var(--ab-radius-lg);
	background: #fff;
}

.ab-card-desc {
	border-top: 3px solid var(--ab-navy);
}

.ab-card-title {
	margin: 0 0 .5rem;
	font-size: 1.0625rem;
	font-weight: 500;
	line-height: 1.4;
}

.ab-card-text {
	margin: 0;
	line-height: 1.65;
}

.ab-card-desc .ab-card-text {
	color: var(--ab-text-soft);
}

.ab-numbered {
	counter-reset: ab-item;
}

.ab-numbered > .ab-card {
	display: flex;
	gap: 1rem;
	align-items: flex-start;
	counter-increment: ab-item;
}

.ab-numbered > .ab-card::before {
	display: flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	content: counter(ab-item, decimal-leading-zero);
	border-radius: 50%;
	background: var(--ab-navy);
	color: var(--ab-gold);
	font-weight: 500;
	line-height: 1;
}

.ab-numbered-green > .ab-card::before {
	background: var(--ab-green);
	color: #fff;
}

.ab-numbered-blue > .ab-card::before {
	background: var(--ab-blue);
	color: #fff;
}

.ab-numbered .ab-card-text {
	padding-top: .45rem;
}

@media (min-width: 576px) {
	.ab-cards-2,
	.ab-cards-kpi {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.ab-cards-kpi > li:last-child:nth-child(odd) {
		grid-column: 1 / -1;
	}
}

@media (min-width: 768px) {
	.ab-cards-3 {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

/* Indicators: three per row, a short last row shares the full width */
@media (min-width: 992px) {
	.ab-cards-kpi {
		grid-template-columns: repeat(6, minmax(0, 1fr));
	}

	.ab-cards-kpi > li,
	.ab-cards-kpi > li:last-child:nth-child(odd) {
		grid-column: span 2;
	}

	.ab-cards-kpi > li:nth-last-child(2):nth-child(3n + 1),
	.ab-cards-kpi > li:last-child:nth-child(3n + 2) {
		grid-column: span 3;
	}

	.ab-cards-kpi > li:last-child:nth-child(3n + 1) {
		grid-column: 1 / -1;
	}
}

/* Values: ATOMIC */

.ab-values {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--ab-gap);
	margin: 0;
	padding: 0;
	list-style: none;
}

.ab-value {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 1.25rem .75rem;
	border: 1px solid var(--ab-line);
	border-top: 3px solid var(--ab-blue);
	border-radius: var(--ab-radius-lg);
	background: #fff;
	text-align: center;
}

.ab-value-tile {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 3rem;
	height: 3rem;
	margin-bottom: .75rem;
	border-radius: 12px;
	background: var(--ab-navy);
	color: var(--ab-gold);
	font-size: 1.5rem;
	font-weight: 500;
	line-height: 1;
}

.ab-value-word {
	display: block;
	font-weight: 500;
	line-height: 1.35;
}

.ab-value-word::first-letter {
	text-decoration: underline;
	text-decoration-color: var(--ab-gold);
	text-decoration-thickness: 3px;
	text-underline-offset: 4px;
}

.ab-value-th {
	margin-top: .25rem;
	color: var(--ab-text-soft);
	font-size: .875rem;
	line-height: 1.5;
}

@media (min-width: 768px) {
	.ab-values {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (min-width: 992px) {
	.ab-values {
		grid-template-columns: repeat(6, minmax(0, 1fr));
	}
}

/* Organisational culture */

.ab-culture {
	padding: 2rem 1.25rem;
	border-radius: var(--ab-radius-lg);
	background: var(--ab-surface);
	text-align: center;
}

.ab-culture .ab-heading {
	display: inline-block;
	margin-bottom: 1rem;
}

.ab-culture .ab-heading::after {
	left: 50%;
	transform: translateX(-50%);
}

.ab-culture-text {
	margin: 0;
	font-size: 1.25rem;
	font-weight: 500;
	line-height: 1.5;
}

@media (min-width: 768px) {
	.ab-culture {
		padding: 2.5rem 2rem;
	}

	.ab-culture-text {
		font-size: 1.5rem;
	}
}

/* Objectives */

.ab-list {
	margin: 0;
	padding: 0;
	border-top: 1px solid var(--ab-line);
	list-style: none;
}

.ab-list li {
	display: flex;
	gap: .875rem;
	padding: 1rem 0;
	border-bottom: 1px solid var(--ab-line);
	line-height: 1.7;
}

.ab-list i {
	flex: none;
	margin-top: .35rem;
	color: var(--ab-navy);
}

/* Document links: rows (strategy) and card grids (reports, codes of conduct) */

.ab-docs,
.ab-doc-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ab-doc-grid {
	gap: var(--ab-gap);
}

.ab-doc-grid > li {
	display: flex;
}

.ab-doc {
	display: flex;
	flex: 1 1 auto;
	align-items: center;
	gap: .875rem;
	min-width: 0;
	min-height: 56px;
	padding: .75rem 1rem;
	border: 1px solid var(--ab-line);
	border-radius: var(--ab-radius-lg);
	background: #fff;
	color: var(--ab-navy);
	transition: border-color .2s ease, box-shadow .2s ease;
}

a.ab-doc:hover {
	border-color: rgba(var(--ab-navy-rgb), .35);
	box-shadow: var(--ab-shadow);
	text-decoration: none;
}

a.ab-doc:hover .ab-doc-name {
	text-decoration: underline;
}

.ab-doc-grid .ab-doc-ext {
	display: none;
}

@media (min-width: 576px) {
	.ab-doc-grid .ab-doc {
		min-height: 72px;
		padding: 1rem 1.125rem;
	}
}

.ab-doc-icon {
	flex: none;
	width: 1.5rem;
	font-size: 1.5rem;
	text-align: center;
}

.ab-doc-name {
	flex: 1 1 auto;
	min-width: 0;
	line-height: 1.5;
	overflow-wrap: anywhere;
}

.ab-doc-type {
	flex: none;
	padding: .125rem .5rem;
	border: 1px solid var(--ab-navy);
	border-radius: 999px;
	font-size: .75rem;
	font-weight: 500;
	letter-spacing: .03em;
	line-height: 1.5;
}

.ab-doc-type-pdf {
	background: var(--ab-navy);
	color: #fff;
}

.ab-doc-type-other {
	color: var(--ab-navy);
}

.ab-doc-ext {
	flex: none;
	color: var(--ab-muted);
	font-size: .8125rem;
}

/* Year listed without a file: not a link */
.ab-doc-none {
	border: 1px dashed var(--ab-line-strong);
	background: var(--ab-muted-bg);
	color: var(--ab-muted);
}

.ab-doc-type-none {
	border-color: var(--ab-line-strong);
	background: #fff;
	color: var(--ab-muted);
	letter-spacing: 0;
}

@media (max-width: 575.98px) {
	.ab-doc-ext {
		display: none;
	}
}

@media (min-width: 576px) {
	.ab-doc-grid-3 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.ab-doc-grid-fill {
		grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
	}
}

@media (min-width: 992px) {
	.ab-doc-grid-3 {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

/* Latest annual report */

.ab-feature {
	display: flex;
	flex-direction: column;
	gap: .75rem;
	padding: 1.5rem 1.25rem;
	border-radius: var(--ab-radius-lg);
	background: linear-gradient(120deg, var(--ab-navy) 0%, var(--ab-navy) 35%, var(--ab-blue) 100%);
	color: #fff;
}

.ab-feature-year {
	margin: 0;
	color: var(--ab-gold);
	font-size: 3.5rem;
	font-weight: 500;
	line-height: 1;
}

.ab-feature-title {
	margin: 0 0 1rem;
	color: #fff;
	font-size: 1.375rem;
	font-weight: 500;
	line-height: 1.4;
}

@media (min-width: 768px) {
	.ab-feature {
		flex-direction: row;
		gap: 2.5rem;
		align-items: center;
		padding: 2rem 2.5rem;
	}

	.ab-feature-year {
		font-size: 5rem;
	}

	.ab-feature-title {
		font-size: 1.625rem;
	}
}

/* Buttons of these pages (Bootstrap .btn base) */

.ab-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .5rem;
	min-height: 44px;
	padding: .5rem 1.125rem;
	border: 1px solid var(--ab-navy);
	border-radius: var(--ab-radius);
	background: var(--ab-navy);
	color: #fff;
}

.ab-btn:hover,
.ab-btn:focus-visible {
	border-color: var(--ab-blue);
	background: var(--ab-blue);
	color: #fff;
}

.ab-btn-outline {
	background: #fff;
	color: var(--ab-navy);
}

.ab-btn-outline:hover,
.ab-btn-outline:focus-visible {
	border-color: var(--ab-navy);
	background: var(--ab-surface);
	color: var(--ab-navy);
}

.ab-btn-light {
	border-color: #fff;
	background: #fff;
	color: var(--ab-navy);
}

.ab-btn-light:hover,
.ab-btn-light:focus-visible {
	border-color: var(--ab-surface);
	background: var(--ab-surface);
	color: var(--ab-navy);
}

/* Structure chart: full size and scrolled sideways on narrow screens */

.ab-chart {
	padding: 16px;
	border: 1px solid var(--ab-line);
	border-radius: 14px;
	background: #fff;
}

.ab-chart-scroll {
	overflow-x: auto;
}

.ab-chart-scroll:focus-visible {
	outline: 3px solid var(--ab-accent);
	outline-offset: 2px;
}

.ab-chart img {
	display: block;
	max-width: 100%;
	height: auto;
	margin: 0 auto;
}

@media (max-width: 768px) {
	.ab-chart img {
		max-width: none;
	}
}

.ab-actions {
	display: flex;
	flex-wrap: wrap;
	gap: .75rem;
	margin-top: 1rem;
}

@media (prefers-reduced-motion: reduce) {
	.ab-doc {
		transition: none;
	}
}
