/* BNCC Air Wing Portal: front-end styles. Everything is scoped to .bncc-aw. */

.bncc-aw {
	--navy-950: #061330;
	--navy-900: #0a1c42;
	--navy-800: #10295c;
	--navy-700: #1a3a7a;
	--gold: #c9a24b;
	--gold-soft: #e4cd8f;
	--gold-ink: #7d5f17;
	--paper: #f1f4fa;
	--ink: #12203d;
	--muted: #4d5c78;
	--line: #d6dce9;
	--ok: #11603a;
	--bad: #a3262a;
	--radius: 10px;
	--serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
	--sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;

	position: relative;
	left: 50%;
	width: 100vw;
	max-width: 100vw;
	margin-left: -50vw;
	overflow-x: clip;
	font-family: var(--sans);
	font-size: 17px;
	line-height: 1.6;
	color: var(--ink);
	background: #fff;
	text-align: left;
}

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

.bncc-aw h1,
.bncc-aw h2,
.bncc-aw h3 {
	font-family: var(--serif);
	color: inherit;
	margin: 0;
	line-height: 1.15;
	letter-spacing: 0;
	text-transform: none;
}

.bncc-aw p { margin: 0 0 1em; }
.bncc-aw img { max-width: 100%; height: auto; }

.bncc-aw :focus-visible {
	outline: 3px solid var(--gold);
	outline-offset: 2px;
}

.bncc-aw [hidden] { display: none !important; }

.bncc-aw .bncc-wrap {
	width: 100%;
	max-width: 1120px;
	margin: 0 auto;
	padding: 0 22px;
}

/* ---------- Buttons ---------- */

.bncc-aw .bncc-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 12px 26px;
	border: 2px solid transparent;
	border-radius: 6px;
	font: 600 1rem/1.2 var(--sans);
	text-decoration: none;
	cursor: pointer;
	transition: background-color .15s, color .15s, border-color .15s;
}

.bncc-aw .bncc-btn--gold { background: var(--gold); color: var(--navy-950); }
.bncc-aw .bncc-btn--gold:hover { background: var(--gold-soft); color: var(--navy-950); }
.bncc-aw .bncc-btn--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .7); }
.bncc-aw .bncc-btn--ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; border-color: #fff; }
.bncc-aw .bncc-btn--navy { background: var(--navy-800); color: #fff; }
.bncc-aw .bncc-btn--navy:hover { background: var(--navy-700); color: #fff; }
.bncc-aw .bncc-btn--navy[disabled] { opacity: .65; cursor: wait; }
.bncc-aw .bncc-btn--ghost-dark { background: transparent; color: var(--navy-800); border-color: var(--navy-800); }
.bncc-aw .bncc-btn--ghost-dark:hover { background: var(--navy-800); color: #fff; }

/* ---------- Hero ---------- */

.bncc-aw .bncc-hero {
	position: relative;
	isolation: isolate;
	display: flex;
	align-items: center;
	min-height: min(88vh, 680px);
	padding: 96px 0 104px;
	color: #fff;
	background-color: var(--navy-950);
	background-image:
		radial-gradient(900px 420px at 85% 105%, rgba(201, 162, 75, .22), transparent 70%),
		linear-gradient(160deg, var(--navy-950) 0%, var(--navy-900) 52%, var(--navy-800) 100%);
	background-size: cover;
	background-position: center;
}

.bncc-aw .bncc-hero.has-image::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(
		100deg,
		rgba(6, 19, 48, calc(var(--bncc-overlay, .5) * 1.44)) 0%,
		rgba(6, 19, 48, var(--bncc-overlay, .5)) 55%,
		rgba(6, 19, 48, calc(var(--bncc-overlay, .5) * .6)) 100%
	);
}

.bncc-aw .bncc-hero.has-image .bncc-hero__inner { text-shadow: 0 2px 14px rgba(6, 19, 48, .6); }

@media (max-width: 719px) {
	.bncc-aw .bncc-hero.has-image::before { background: rgba(6, 19, 48, calc(var(--bncc-overlay, .5) * 1.16)); }
}

.bncc-aw .bncc-hero__slides {
	position: absolute;
	inset: 0;
	z-index: -2;
	overflow: hidden;
}

.bncc-aw .bncc-hero__slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	transition: opacity 1.2s ease;
}

.bncc-aw .bncc-hero__slide.is-active { opacity: 1; }

.bncc-aw .bncc-hero__img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
}

.bncc-aw .bncc-hero__controls {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 18px;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
}

.bncc-aw .bncc-hero__arrow {
	display: inline-grid;
	place-items: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1.5px solid rgba(255, 255, 255, .7);
	border-radius: 50%;
	background: rgba(6, 19, 48, .5);
	color: #fff;
	cursor: pointer;
	transition: background-color .15s, border-color .15s;
}

.bncc-aw .bncc-hero__arrow:hover { background: rgba(6, 19, 48, .85); border-color: #fff; }

.bncc-aw .bncc-hero__pause .bncc-ico-play { display: none; }
.bncc-aw .bncc-hero__pause[aria-pressed="true"] .bncc-ico-play { display: block; }
.bncc-aw .bncc-hero__pause[aria-pressed="true"] .bncc-ico-pause { display: none; }

.bncc-aw .bncc-hero__dots { display: flex; align-items: center; }

.bncc-aw .bncc-hero__dot {
	position: relative;
	width: 28px;
	height: 44px;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
}

.bncc-aw .bncc-hero__dot::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 10px;
	height: 10px;
	margin: -5px 0 0 -5px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .45);
	box-shadow: 0 0 0 1px rgba(6, 19, 48, .5);
	transition: background-color .2s, transform .2s;
}

.bncc-aw .bncc-hero__dot.is-active::before { background: var(--gold); transform: scale(1.35); }

@media (prefers-reduced-motion: reduce) {
	.bncc-aw .bncc-hero__slide { transition: none; }
}

.bncc-aw .bncc-hero__sound {
	position: absolute;
	top: 16px;
	right: 16px;
	z-index: 3;
	display: inline-grid;
	place-items: center;
	width: 46px;
	height: 46px;
	padding: 0;
	border: 1.5px solid rgba(255, 255, 255, .7);
	border-radius: 50%;
	background: rgba(6, 19, 48, .55);
	color: #fff;
	cursor: pointer;
	transition: background-color .15s, border-color .15s;
}

.bncc-aw .bncc-hero__sound:hover { background: rgba(6, 19, 48, .88); border-color: #fff; }
.bncc-aw .bncc-hero__sound[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: var(--navy-950); }
.bncc-aw .bncc-hero__sound .bncc-ico-on { display: none; }
.bncc-aw .bncc-hero__sound[aria-pressed="true"] .bncc-ico-on { display: inline; }
.bncc-aw .bncc-hero__sound[aria-pressed="true"] .bncc-ico-off { display: none; }

.bncc-aw .bncc-hero__defs {
	position: absolute;
	width: 0;
	height: 0;
	overflow: hidden;
}

/* Two flight paths: wide screens and phones. Both keep running; only one is shown. */
.bncc-aw .bncc-hero__path--tall { visibility: hidden; }

.bncc-aw .bncc-hero__path {
	position: absolute;
	inset: 0;
	z-index: -1;
	width: 100%;
	height: 100%;
	color: var(--gold);
	pointer-events: none;
}

.bncc-aw .bncc-hero__inner { position: relative; }

.bncc-aw .bncc-hero__logo { display: inline-flex; }

.bncc-aw .bncc-logo-link { display: inline-flex; line-height: 0; border-radius: 14px; text-decoration: none; }
.bncc-aw .bncc-logo-link:hover { opacity: .92; }

.bncc-aw .bncc-hero__logo img {
	display: block;
	width: auto;
	height: var(--bncc-logo-h, 96px);
	max-width: 100%;
	object-fit: contain;
}

/* Beside the heading */
.bncc-aw .bncc-hero--logo-beside .bncc-hero__head { display: flex; align-items: center; gap: 26px; }
.bncc-aw .bncc-hero--logo-beside .bncc-hero__logo { flex: none; }

/* Above the heading */
.bncc-aw .bncc-hero--logo-above .bncc-hero__logo { margin: 0 0 22px; }

/* Top-left corner, in line with the page content */
.bncc-aw .bncc-hero__brand { position: absolute; top: 26px; left: 0; right: 0; z-index: 2; }
.bncc-aw .bncc-hero--logo-top-left { padding-top: calc(var(--bncc-logo-h, 96px) + 72px); }

.bncc-aw .bncc-hero__logo.is-badge img,
.bncc-aw .bncc-footer__logo.is-badge img {
	padding: 8px;
	background: #fff;
	border-radius: 14px;
	box-sizing: border-box;
}

.bncc-aw .bncc-footer__logo { margin-bottom: 16px; }
.bncc-aw .bncc-footer__logo img { display: block; width: auto; height: 64px; max-width: 100%; object-fit: contain; }

.bncc-aw .bncc-hero__title {
	font-size: clamp(1.7rem, 9.4vw, 5.4rem);
	font-weight: 700;
	letter-spacing: -.01em;
	white-space: nowrap;
}

.bncc-aw .bncc-hero__inst {
	margin: 14px 0 0;
	font-size: clamp(1.15rem, 2.8vw, 1.7rem);
	font-weight: 600;
	color: #fff;
}

.bncc-aw .bncc-hero__motto {
	margin: 10px 0 0;
	font-family: var(--serif);
	font-style: italic;
	font-size: clamp(1rem, 2vw, 1.2rem);
	color: var(--gold-soft);
}

.bncc-aw .bncc-hero__support {
	max-width: 56ch;
	margin: 22px 0 0;
	color: rgba(255, 255, 255, .86);
}

.bncc-aw .bncc-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin-top: 36px;
}

/* ---------- Sections ---------- */

.bncc-aw .bncc-section {
	padding: clamp(56px, 8vw, 96px) 0;
	background: #fff;
	scroll-margin-top: 16px;
}

.bncc-aw .bncc-section--paper { background: var(--paper); }
.bncc-aw .bncc-section--navy { background: var(--navy-900); color: #fff; }

.bncc-aw .bncc-section__head { margin-bottom: 36px; max-width: 70ch; }

.bncc-aw .bncc-section__head h2 {
	font-size: clamp(1.8rem, 4vw, 2.6rem);
	font-weight: 700;
}

/* Runway-marking rule under each heading */
.bncc-aw .bncc-section__head h2::after {
	content: "";
	display: block;
	width: 74px;
	height: 3px;
	margin-top: 16px;
	background: repeating-linear-gradient(90deg, var(--gold) 0 14px, transparent 14px 22px);
}

.bncc-aw .bncc-section__intro {
	margin: 16px 0 0;
	color: var(--muted);
}

.bncc-aw .bncc-section--navy .bncc-section__intro { color: rgba(255, 255, 255, .78); }

.bncc-aw .bncc-prose { max-width: 72ch; }
.bncc-aw .bncc-prose > :last-child { margin-bottom: 0; }

.bncc-aw .bncc-empty {
	padding: 22px 24px;
	border: 1px dashed var(--line);
	border-radius: var(--radius);
	background: #fff;
	color: var(--muted);
}

/* ---------- Registration ---------- */

.bncc-aw .bncc-choose {
	display: grid;
	grid-template-columns: 1fr;
	gap: 14px;
	max-width: 720px;
	margin-bottom: 28px;
}

@media (min-width: 640px) {
	.bncc-aw .bncc-choose { grid-template-columns: 1fr 1fr; }
}

.bncc-aw .bncc-choice {
	min-height: 64px;
	padding: 16px 20px;
	border: 2px solid var(--navy-800);
	border-radius: var(--radius);
	background: #fff;
	color: var(--navy-800);
	font: 700 1.05rem/1.2 var(--sans);
	text-align: left;
	cursor: pointer;
	transition: background-color .15s, color .15s, box-shadow .15s;
}

.bncc-aw .bncc-choice:hover { background: #e8edf8; }

.bncc-aw .bncc-choice[aria-selected="true"] {
	background: var(--navy-800);
	color: #fff;
	box-shadow: inset 0 -4px 0 var(--gold);
}

.bncc-aw .bncc-form {
	max-width: 880px;
	padding: clamp(22px, 4vw, 40px);
	border: 1px solid var(--line);
	border-top: 4px solid var(--gold);
	border-radius: var(--radius);
	background: #fff;
}

.bncc-aw .bncc-form { position: relative; }
.bncc-aw .bncc-form__title { font-size: clamp(1.4rem, 3vw, 1.8rem); padding-right: 52px; }

.bncc-aw .bncc-form__close {
	position: absolute;
	top: 12px;
	right: 12px;
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 1.5px solid var(--navy-800);
	border-radius: 50%;
	background: #fff;
	color: var(--navy-800);
	cursor: pointer;
	transition: background-color .15s, color .15s;
}

.bncc-aw .bncc-form__close:hover { background: var(--navy-800); color: #fff; }
.bncc-aw .bncc-form__lead { margin: 10px 0 26px; color: var(--muted); }

.bncc-aw .bncc-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 20px 24px;
}

@media (min-width: 720px) {
	.bncc-aw .bncc-grid { grid-template-columns: 1fr 1fr; }
}

.bncc-aw .bncc-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.bncc-aw .bncc-field label { font-weight: 600; font-size: .95rem; }
.bncc-aw .bncc-field small { color: var(--muted); font-size: .85rem; line-height: 1.4; }

.bncc-aw .bncc-field input,
.bncc-aw .bncc-field select,
.bncc-aw .bncc-search input {
	width: 100%;
	min-height: 48px;
	padding: 10px 14px;
	border: 1.5px solid #9aa6bf;
	border-radius: 6px;
	background: #fff;
	color: var(--ink);
	font: 400 1rem/1.4 var(--sans);
	box-shadow: none;
}

.bncc-aw .bncc-field input[type="file"] { padding: 9px 10px; min-height: 0; }

.bncc-aw .bncc-field input:focus,
.bncc-aw .bncc-field select:focus,
.bncc-aw .bncc-search input:focus {
	border-color: var(--navy-700);
	outline: 3px solid rgba(201, 162, 75, .55);
	outline-offset: 0;
}

.bncc-aw .bncc-field input.is-invalid,
.bncc-aw .bncc-field select.is-invalid { border-color: var(--bad); }

.bncc-aw .bncc-field input.is-locked {
	background: var(--paper);
	color: var(--muted);
	border-style: dashed;
	cursor: not-allowed;
}

.bncc-aw .bncc-preview {
	display: block;
	width: 120px;
	height: 150px;
	margin-top: 8px;
	object-fit: cover;
	border-radius: 6px;
	border: 2px solid var(--gold-soft);
	background: var(--paper);
}

.bncc-aw .bncc-hp {
	position: absolute !important;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.bncc-aw .bncc-msg {
	margin: 24px 0 0;
	padding: 14px 18px;
	border-radius: 6px;
	border-left: 5px solid;
	font-weight: 500;
}

.bncc-aw .bncc-msg ul { margin: 0; padding-left: 1.1em; }
.bncc-aw .bncc-msg.is-error { background: #fdeeee; border-color: var(--bad); color: #6d1519; }
.bncc-aw .bncc-msg.is-success { background: #e8f5ee; border-color: var(--ok); color: #0b4026; }
.bncc-aw .bncc-msg .bncc-msg__status { display: block; margin-top: 6px; font-weight: 700; }

.bncc-aw .bncc-form .bncc-btn { margin-top: 26px; }

/* ---------- Find a cadet ---------- */

.bncc-aw .bncc-search { max-width: 640px; }
.bncc-aw .bncc-search label { display: block; margin-bottom: 8px; font-weight: 600; }
.bncc-aw .bncc-search__row { display: flex; flex-direction: column; gap: 12px; }

@media (min-width: 560px) {
	.bncc-aw .bncc-search__row { flex-direction: row; }
	.bncc-aw .bncc-search__row .bncc-btn { flex: none; }
}

.bncc-aw .bncc-result { margin-top: 30px; max-width: 820px; }
.bncc-aw .bncc-result:empty { margin-top: 0; }
.bncc-aw .bncc-result__actions { margin-top: 18px; }
.bncc-aw .bncc-result__item + .bncc-result__item { margin-top: 34px; }

.bncc-aw .bncc-note {
	padding: 16px 20px;
	border: 1px solid var(--line);
	border-left: 5px solid var(--navy-700);
	border-radius: 6px;
	background: var(--paper);
}

.bncc-aw .bncc-note.is-error { border-left-color: var(--bad); }

/* Profile card: laid out like a pass, photo panel then details */
.bncc-aw .bncc-card {
	display: grid;
	grid-template-columns: 1fr;
	border: 1px solid var(--line);
	border-radius: 14px;
	background: #fff;
	overflow: hidden;
	box-shadow: 0 10px 30px rgba(10, 28, 66, .1);
}

@media (min-width: 640px) {
	.bncc-aw .bncc-card { grid-template-columns: 220px 1fr; }
}

.bncc-aw .bncc-card__side {
	padding: 24px 20px;
	background: var(--navy-900);
	color: #fff;
	text-align: center;
	border-bottom: 4px solid var(--gold);
}

@media (min-width: 640px) {
	.bncc-aw .bncc-card__side { border-bottom: 0; border-right: 4px solid var(--gold); }
}

.bncc-aw .bncc-card__photo {
	width: 150px;
	height: 190px;
	margin: 0 auto 16px;
	object-fit: cover;
	border-radius: 8px;
	border: 3px solid var(--gold-soft);
	background: var(--navy-800);
}

.bncc-aw .bncc-card__name { font-family: var(--serif); font-size: 1.25rem; font-weight: 700; }
.bncc-aw .bncc-card__rank { margin: 4px 0 0; color: var(--gold-soft); font-weight: 600; }

.bncc-aw .bncc-card__list { margin: 0; padding: 22px 24px; display: grid; grid-template-columns: 1fr; gap: 14px 24px; }

@media (min-width: 520px) {
	.bncc-aw .bncc-card__list { grid-template-columns: 1fr 1fr; }
}

.bncc-aw .bncc-card__list dt { font-size: .85rem; color: var(--muted); }
.bncc-aw .bncc-card__list dd { margin: 2px 0 0; font-weight: 600; overflow-wrap: anywhere; }

/* ---------- Statistics ---------- */

.bncc-aw .bncc-stats {
	display: grid;
	grid-template-columns: 1fr;
	gap: 18px;
	margin: 0;
}

@media (min-width: 720px) {
	.bncc-aw .bncc-stats { grid-template-columns: repeat(3, 1fr); gap: 28px; }
}

.bncc-aw .bncc-stats > div {
	padding: 22px 0 0;
	border-top: 3px solid var(--gold);
}

.bncc-aw .bncc-stats dt { font-size: 1.05rem; color: rgba(255, 255, 255, .85); }

.bncc-aw .bncc-stats dd {
	margin: 6px 0 0;
	font-family: var(--serif);
	font-size: clamp(3rem, 8vw, 4.6rem);
	font-weight: 700;
	line-height: 1;
	color: #fff;
}

/* ---------- Gallery ---------- */

.bncc-aw .bncc-gallery {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 14px;
}

.bncc-aw .bncc-gallery__cell { min-width: 0; }
.bncc-aw a.bncc-gallery__item { text-decoration: none; color: inherit; }
.bncc-aw .bncc-gallery__cap strong { display: block; margin-bottom: 2px; font-size: .98rem; }
.bncc-aw .bncc-gallery__cap span { display: block; }

.bncc-aw .bncc-gallery__item {
	position: relative;
	display: block;
	width: 100%;
	padding: 0;
	border: 0;
	border-radius: 8px;
	overflow: hidden;
	background: var(--navy-900);
	cursor: zoom-in;
	aspect-ratio: 4 / 3;
}

.bncc-aw .bncc-gallery__item img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .35s;
}

.bncc-aw .bncc-gallery__item:hover img { transform: scale(1.04); }

.bncc-aw .bncc-gallery__cap {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 28px 12px 10px;
	background: linear-gradient(transparent, rgba(6, 19, 48, .88));
	color: #fff;
	font-size: .88rem;
	line-height: 1.35;
	text-align: left;
}

/* ---------- Achievements ---------- */

.bncc-aw .bncc-achievements { display: grid; gap: 22px; }

.bncc-aw .bncc-ach {
	display: grid;
	grid-template-columns: 1fr;
	border: 1px solid var(--line);
	border-left: 5px solid var(--gold);
	border-radius: var(--radius);
	background: #fff;
	overflow: hidden;
}

@media (min-width: 720px) {
	.bncc-aw .bncc-ach.has-img { grid-template-columns: 300px 1fr; }
}

.bncc-aw .bncc-ach__titlelink { color: inherit; text-decoration: none; }
.bncc-aw .bncc-ach__titlelink:hover { text-decoration: underline; }
.bncc-aw a.bncc-btn { text-decoration: none; }
.bncc-aw .bncc-ach__imgbtn { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: var(--navy-900); cursor: zoom-in; }
.bncc-aw .bncc-ach__img img { display: block; width: 100%; height: 100%; min-height: 200px; object-fit: cover; }
.bncc-aw .bncc-ach__excerpt { color: var(--muted); }
.bncc-aw .bncc-ach .bncc-btn { margin-top: 4px; }
.bncc-aw .bncc-ach__body { padding: 22px 24px; }
.bncc-aw .bncc-ach h3 { font-size: 1.4rem; margin-bottom: 10px; }

.bncc-aw time {
	display: block;
	margin-bottom: 6px;
	font-size: .9rem;
	font-weight: 600;
	color: var(--gold-ink);
}

/* ---------- Notices ---------- */

.bncc-aw .bncc-notices { display: grid; gap: 14px; max-width: 860px; }

.bncc-aw .bncc-notice {
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: #fff;
}

.bncc-aw .bncc-notice__head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 18px 22px;
}

.bncc-aw .bncc-notice h3 { font-size: 1.25rem; }

.bncc-aw .bncc-notice__toggle {
	min-height: 44px;
	padding: 8px 18px;
	border: 1.5px solid var(--navy-800);
	border-radius: 6px;
	background: transparent;
	color: var(--navy-800);
	font: 600 .95rem/1.2 var(--sans);
	cursor: pointer;
}

.bncc-aw .bncc-notice__toggle:hover,
.bncc-aw .bncc-notice__toggle[aria-expanded="true"] { background: var(--navy-800); color: #fff; }

.bncc-aw .bncc-notice__body { padding: 4px 22px 22px; border-top: 1px solid var(--line); padding-top: 18px; }
.bncc-aw .bncc-notice__body p:last-child { margin-bottom: 0; }

/* ---------- PUOs ---------- */

.bncc-aw .bncc-puo-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }

.bncc-aw .bncc-puo-tab {
	min-height: 40px;
	padding: 8px 20px;
	border: 1.5px solid var(--navy-800);
	border-radius: 999px;
	background: #fff;
	color: var(--navy-800);
	font: 600 .95rem/1.2 var(--sans);
	cursor: pointer;
	transition: background-color .15s, color .15s;
}

.bncc-aw .bncc-puo-tab:hover { background: #e8edf8; }
.bncc-aw .bncc-puo-tab[aria-selected="true"] { background: var(--navy-800); color: #fff; }

.bncc-aw .bncc-puo-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
	gap: 22px;
}

.bncc-aw .bncc-puo-card {
	display: flex;
	flex-direction: column;
	border: 1px solid var(--line);
	border-top: 4px solid var(--gold);
	border-radius: var(--radius);
	background: #fff;
	overflow: hidden;
}

.bncc-aw .bncc-puo-card__photo {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 4 / 4.4;
	background: var(--navy-900);
}

.bncc-aw .bncc-puo-card__photo img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; }

.bncc-aw .bncc-puo-card__avatar {
	display: grid;
	place-items: center;
	width: 96px;
	height: 96px;
	border-radius: 50%;
	border: 3px solid var(--gold-soft);
	color: var(--gold-soft);
	font: 700 2rem/1 var(--serif);
}

.bncc-aw .bncc-puo-card__body { padding: 18px 20px 22px; }
.bncc-aw .bncc-puo-card__body h3 { font-size: 1.25rem; margin-bottom: 12px; }
.bncc-aw .bncc-puo-card dl { margin: 0; display: grid; gap: 10px; }
.bncc-aw .bncc-puo-card dt { font-size: .82rem; color: var(--muted); }
.bncc-aw .bncc-puo-card dd { margin: 2px 0 0; font-weight: 600; }

/* ---------- Footer ---------- */

.bncc-aw .bncc-footer { background: var(--navy-950); color: rgba(255, 255, 255, .86); }

.bncc-aw .bncc-footer__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 28px;
	padding-top: 52px;
	padding-bottom: 40px;
}

@media (min-width: 720px) {
	.bncc-aw .bncc-footer__grid { grid-template-columns: 1.2fr 1fr; align-items: start; }
}

.bncc-aw .bncc-footer p { margin: 0 0 6px; }
.bncc-aw .bncc-footer__title { font-family: var(--serif); font-size: 1.6rem; font-weight: 700; color: #fff; }
.bncc-aw .bncc-footer__extra { margin-top: 14px; font-size: .95rem; }

.bncc-aw .bncc-footer__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }

.bncc-aw .bncc-footer__links a {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: 44px;
	color: #fff;
	text-decoration: none;
	border-bottom: 1px solid rgba(201, 162, 75, .55);
	overflow-wrap: anywhere;
}

.bncc-aw .bncc-footer__links a:hover { color: var(--gold-soft); border-bottom-color: var(--gold-soft); }

.bncc-aw .bncc-footer__copy {
	padding: 18px 0;
	border-top: 1px solid rgba(255, 255, 255, .14);
	text-align: center;
	font-size: .92rem;
	color: rgba(255, 255, 255, .78);
}

.bncc-aw .bncc-footer__copy .bncc-wrap { text-align: center; }

/* ---------- Motion preferences ---------- */

@media (prefers-reduced-motion: reduce) {
	.bncc-aw .bncc-hero__plane { display: none; }
	.bncc-aw * {
		transition: none !important;
		animation: none !important;
	}
}

/* ---------- Count-up numbers ---------- */

.bncc-aw .bncc-count { font-variant-numeric: tabular-nums; }

.bncc-aw .bncc-sr {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* ---------- Statistics: numbers count in place ---------- */

.bncc-aw .bncc-stats .bncc-count {
	display: inline-block;
	text-align: inherit;
	font-variant-numeric: lining-nums tabular-nums;
}

/* ---------- Mobile: centre the text ---------- */

@media (max-width: 719px) {
	.bncc-aw .bncc-hero__inner,
	.bncc-aw .bncc-section__head,
	.bncc-aw .bncc-stats,
	.bncc-aw .bncc-footer,
	.bncc-aw .bncc-empty,
	.bncc-aw .bncc-form__title,
	.bncc-aw .bncc-form__lead { text-align: center; }

	.bncc-aw .bncc-hero__support,
	.bncc-aw .bncc-section__head { margin-left: auto; margin-right: auto; }

	.bncc-aw .bncc-hero__actions { justify-content: center; }
	.bncc-aw .bncc-hero__logo { display: flex; justify-content: center; }
	.bncc-aw .bncc-hero__logo img { height: calc(var(--bncc-logo-h, 96px) * .8); }
	.bncc-aw .bncc-hero--logo-above .bncc-hero__logo { margin-bottom: 18px; }
	.bncc-aw .bncc-hero--logo-beside .bncc-hero__head { flex-direction: column; gap: 16px; }
	.bncc-aw .bncc-hero__brand { top: 20px; }
	.bncc-aw .bncc-hero--logo-top-left { padding-top: calc(var(--bncc-logo-h, 96px) * .8 + 60px); }

	/* Hero slider on phones: compact arrows, no dots */
	.bncc-aw .bncc-hero__dots { display: none; }
	.bncc-aw .bncc-hero__controls { bottom: 14px; gap: 18px; }
	.bncc-aw .bncc-hero__arrow { width: 32px; height: 32px; }
	.bncc-aw .bncc-hero__arrow svg { width: 15px; height: 15px; }
	.bncc-aw .bncc-hero__sound { top: 12px; right: 12px; width: 38px; height: 38px; }
	.bncc-aw .bncc-hero__sound svg { width: 18px; height: 18px; }
	.bncc-aw .bncc-hero { padding-bottom: 80px; }

	/* Runway-marking rule sits under the centred heading */
	.bncc-aw .bncc-section__head h2::after { margin-left: auto; margin-right: auto; }

	.bncc-aw .bncc-choice { text-align: center; }
	.bncc-aw .bncc-form__title { padding-left: 52px; }

	.bncc-aw .bncc-search label { text-align: center; }

	.bncc-aw #bncc-about .bncc-prose { margin-left: auto; margin-right: auto; text-align: center; }

	.bncc-aw .bncc-note { text-align: center; }
	.bncc-aw .bncc-result__actions { text-align: center; }
	.bncc-aw .bncc-card__list { text-align: center; }

	.bncc-aw .bncc-ach__body { text-align: center; }
	.bncc-aw .bncc-puo-tabs { justify-content: center; }
	.bncc-aw .bncc-puo-card__body { text-align: center; }

	/* PUO cards on phones: two side by side, compact. A single card stays centred. */
	.bncc-aw .bncc-puo-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
	.bncc-aw .bncc-puo-card { flex: 0 1 calc(50% - 6px); min-width: 0; }
	.bncc-aw .bncc-puo-card__photo { aspect-ratio: 1 / 1.1; }
	.bncc-aw .bncc-puo-card__avatar { width: 60px; height: 60px; border-width: 2px; font-size: 1.3rem; }
	.bncc-aw .bncc-puo-card__body { padding: 12px 10px 14px; }
	.bncc-aw .bncc-puo-card__body h3 { font-size: 1rem; margin-bottom: 8px; overflow-wrap: anywhere; }
	.bncc-aw .bncc-puo-card dl { gap: 6px; }
	.bncc-aw .bncc-puo-card dt { font-size: .7rem; }
	.bncc-aw .bncc-puo-card dd { font-size: .82rem; line-height: 1.35; overflow-wrap: anywhere; }
	.bncc-aw .bncc-ach__body .bncc-prose { text-align: left; }

	.bncc-aw .bncc-notice__head { flex-direction: column; text-align: center; }

	.bncc-aw .bncc-footer__grid { justify-items: center; text-align: center; }
	.bncc-aw .bncc-footer__links { justify-items: center; }
}

/* ---------- Photo viewer with full details (Gallery and Achievements) ----------
   The viewer is attached to <body>, so its styles are not nested under .bncc-aw. */

.bncc-viewer {
	--navy-950: #061330;
	--navy-800: #10295c;
	--gold: #c9a24b;
	--gold-ink: #7d5f17;
	--paper: #f1f4fa;
	--ink: #12203d;
	--muted: #4d5c78;
	--line: #d6dce9;
	--serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
	--sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;

	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 14px;
	background: rgba(4, 12, 30, .92);
	font-family: var(--sans);
	font-size: 17px;
	line-height: 1.6;
	color: var(--ink);
}

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

.bncc-viewer[hidden],
.bncc-viewer [hidden] { display: none !important; }

.bncc-viewer :focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.bncc-viewer__panel {
	position: relative;
	display: flex;
	flex-direction: column;
	width: 100%;
	max-width: 1120px;
	max-height: calc(100vh - 28px);
	overflow: hidden;
	border-top: 4px solid var(--gold);
	border-radius: 12px;
	background: #fff;
}

.bncc-viewer.no-media .bncc-viewer__panel { max-width: 760px; }

.bncc-viewer__media {
	flex: none;
	display: flex;
	align-items: center;
	justify-content: center;
	max-height: 42vh;
	background: var(--navy-950);
}

.bncc-viewer__imglink { display: flex; align-items: center; justify-content: center; max-width: 100%; max-height: 100%; }
.bncc-viewer__media img {
	display: block;
	max-width: 100%;
	max-height: 42vh;
	height: auto;
	object-fit: contain;
}

.bncc-viewer__side {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	min-height: 0;
}

.bncc-viewer__text {
	flex: 1 1 auto;
	padding: 56px 26px 24px;
	overflow-y: auto;
	overscroll-behavior: contain;
}

.bncc-viewer__text h3 {
	margin: 0 0 8px;
	font: 700 clamp(1.4rem, 3vw, 2rem)/1.15 var(--serif);
	color: var(--ink);
}

.bncc-viewer__text time {
	display: block;
	margin-bottom: 8px;
	font-size: .9rem;
	font-weight: 600;
	color: var(--gold-ink);
}

.bncc-viewer__text p { margin: 0 0 1em; }
.bncc-viewer__text .bncc-detail-caption { color: var(--muted); font-style: italic; }
.bncc-viewer__text .bncc-prose > :last-child { margin-bottom: 0; }

.bncc-viewer__nav {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	flex: none;
	padding: 12px 26px;
	border-top: 1px solid var(--line);
	background: var(--paper);
}

.bncc-viewer__btn,
.bncc-viewer__close {
	min-height: 44px;
	padding: 8px 18px;
	border: 1.5px solid var(--navy-800);
	border-radius: 6px;
	background: #fff;
	color: var(--navy-800);
	font: 600 .95rem/1.2 var(--sans);
	cursor: pointer;
}

.bncc-viewer__btn:hover,
.bncc-viewer__close:hover { background: var(--navy-800); color: #fff; }

.bncc-viewer__close {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 2;
	box-shadow: 0 2px 10px rgba(0, 0, 0, .35);
}

@media (min-width: 900px) {
	.bncc-viewer__panel { flex-direction: row; height: min(84vh, 720px); }
	.bncc-viewer__media { flex: 1 1 58%; max-height: none; }
	.bncc-viewer__media img { max-height: min(84vh, 720px); }
	.bncc-viewer__side { flex: 1 1 42%; min-width: 340px; }
	.bncc-viewer.no-media .bncc-viewer__side { min-width: 0; }
}

@media (prefers-reduced-motion: reduce) {
	.bncc-viewer * { transition: none !important; animation: none !important; }
}

@media (max-width: 719px) {
	.bncc-aw .bncc-hero__path--wide { visibility: hidden; }
	.bncc-aw .bncc-hero__path--tall { visibility: visible; }
}

/* ---------- Page of one gallery photo or achievement ---------- */

.bncc-aw.bncc-single .bncc-single__wrap { max-width: 860px; }
.bncc-aw .bncc-single__back { margin: 0 0 22px; font-size: .95rem; }
.bncc-aw .bncc-single__back a { color: var(--navy-800); text-decoration: none; font-weight: 600; }
.bncc-aw .bncc-single__back a:hover { text-decoration: underline; }
.bncc-aw .bncc-single__head h1 { font-size: clamp(1.7rem, 5vw, 2.6rem); margin-bottom: 8px; }
.bncc-aw .bncc-single__caption { color: var(--muted); font-style: italic; margin: 0 0 18px; }
.bncc-aw .bncc-single__figure { margin: 18px 0 26px; }
.bncc-aw .bncc-single__figure img { display: block; width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--line); }
.bncc-aw .bncc-single__more { margin-top: 36px; }

@media (max-width: 719px) {
	.bncc-aw .bncc-single__head { text-align: center; }
	.bncc-aw .bncc-single__more { text-align: center; }
}
