/**
 * AFT Calculator — front-end styles.
 *
 * Black-and-gold dark card that sits on the light page. Every colour is a CSS
 * variable on `.aftc` below, so the whole tool can be re-skinned from one block.
 *
 * Gold is the only accent: it marks anything active, focused or good. Red is
 * kept for failure only, because a failed event has to be unmistakable.
 */

.aftc {
	/* surfaces */
	--aftc-black: #0e1013;
	--aftc-card: #16191d;
	--aftc-raised: #1d2126;
	--aftc-sunken: #101317;
	--aftc-line: #2a2f36;
	--aftc-line-soft: #22262c;

	/* text */
	--aftc-text: #e9ecef;
	--aftc-heading: #ffffff;
	--aftc-muted: #9aa3ae;
	--aftc-soft: #6d7681;

	/* gold */
	--aftc-gold: #f0b429;
	--aftc-gold-bright: #ffc94a;
	--aftc-gold-deep: #c89b3c;
	--aftc-gold-tint: rgba(240, 180, 41, .12);
	--aftc-gold-line: rgba(240, 180, 41, .38);
	--aftc-on-gold: #14171a;

	/* state */
	--aftc-fail: #e5534b;
	--aftc-fail-tint: rgba(229, 83, 75, .14);

	/* form fields stay light, like the reference design */
	--aftc-field: #ffffff;
	--aftc-field-text: #14171a;
	--aftc-field-line: #d7dbe0;

	--aftc-radius: 9px;
	--aftc-radius-sm: 6px;
	--aftc-shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 10px 30px rgba(0, 0, 0, .22);

	box-sizing: border-box;
	color: var(--aftc-text);
	font-size: 15px;
	line-height: 1.5;
	max-width: 100%;
}

.aftc *,
.aftc *::before,
.aftc *::after {
	box-sizing: inherit;
}

.aftc ::selection {
	background: var(--aftc-gold);
	color: var(--aftc-on-gold);
}

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

.aftc__noscript {
	background: var(--aftc-fail-tint);
	border: 1px solid var(--aftc-fail);
	border-radius: var(--aftc-radius);
	color: var(--aftc-fail);
	margin: 0 0 14px;
	padding: 10px 14px;
}

/* ---------------------------------------------------------------- hero -- */

.aftc__hero {
	align-items: center;
	background: linear-gradient(135deg, #1b1f24 0%, var(--aftc-black) 100%);
	border: 1px solid var(--aftc-line);
	border-bottom: 0;
	border-radius: var(--aftc-radius) var(--aftc-radius) 0 0;
	display: flex;
	gap: 14px;
	justify-content: space-between;
	padding: 16px 18px;
	position: relative;
}

.aftc__hero::after {
	background: linear-gradient(90deg, var(--aftc-gold) 0%, var(--aftc-gold-deep) 100%);
	bottom: -1px;
	content: "";
	height: 2px;
	left: 0;
	position: absolute;
	right: 0;
}

.aftc__title {
	color: var(--aftc-heading);
	font-size: 1.2rem;
	line-height: 1.25;
	margin: 0;
}

.aftc__subtitle {
	color: var(--aftc-muted);
	font-size: .82rem;
	margin: 4px 0 0;
}

.aftc__stamp {
	background: var(--aftc-gold-tint);
	border: 1px solid var(--aftc-gold-line);
	border-radius: 999px;
	color: var(--aftc-gold);
	flex: none;
	font-size: .66rem;
	font-weight: 700;
	letter-spacing: .05em;
	padding: 4px 10px;
	text-transform: uppercase;
	white-space: nowrap;
}

/* ---------------------------------------------------------------- body -- */

.aftc__body {
	background: var(--aftc-black);
	border: 1px solid var(--aftc-line);
	border-radius: var(--aftc-radius);
	display: grid;
	gap: 14px;
	grid-template-columns: minmax(0, 1fr) 282px;
	padding: 14px;
}

.aftc .aftc__hero + .aftc__body {
	border-radius: 0 0 var(--aftc-radius) var(--aftc-radius);
	border-top: 0;
}

.aftc__panel {
	background: var(--aftc-card);
	border: 1px solid var(--aftc-line);
	border-radius: var(--aftc-radius);
}

/* --------------------------------------------------------------- setup -- */

.aftc__setup {
	display: grid;
	gap: 12px;
	grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
	margin-bottom: 12px;
	padding: 14px;
}

.aftc__field {
	min-width: 0;
}

.aftc__label {
	color: var(--aftc-muted);
	display: block;
	font-size: .68rem;
	font-weight: 700;
	letter-spacing: .07em;
	margin-bottom: 6px;
	text-transform: uppercase;
}

.aftc__note {
	color: var(--aftc-soft);
	display: block;
	font-size: .72rem;
	margin-top: 6px;
}

.aftc__segment {
	background: var(--aftc-sunken);
	border: 1px solid var(--aftc-line);
	border-radius: var(--aftc-radius-sm);
	display: flex;
	gap: 2px;
	padding: 2px;
}

.aftc__seg {
	-webkit-appearance: none;
	appearance: none;
	background: transparent;
	border: 0;
	border-radius: 4px;
	color: var(--aftc-muted);
	cursor: pointer;
	flex: 1 1 0;
	font: inherit;
	font-size: .78rem;
	font-weight: 600;
	line-height: 1.25;
	padding: 7px 4px;
	text-align: center;
	transition: background-color .15s ease, color .15s ease;
	white-space: nowrap;
}

.aftc__seg:hover {
	background: var(--aftc-gold-tint);
	color: var(--aftc-gold);
}

.aftc__seg:active {
	transform: translateY(1px);
}

.aftc__seg.is-active {
	background: var(--aftc-gold);
	box-shadow: 0 1px 6px rgba(240, 180, 41, .3);
	color: var(--aftc-on-gold);
}

.aftc__seg.is-active:hover {
	background: var(--aftc-gold-bright);
	color: var(--aftc-on-gold);
}

.aftc__seg:focus-visible {
	outline: 2px solid var(--aftc-gold);
	outline-offset: 1px;
}

/* --------------------------------------------------------------- fields -- */

.aftc__input {
	-webkit-appearance: none;
	appearance: none;
	background: var(--aftc-field);
	border: 1px solid var(--aftc-field-line);
	border-radius: var(--aftc-radius-sm);
	color: var(--aftc-field-text);
	font: inherit;
	font-size: .92rem;
	font-weight: 600;
	max-width: 100%;
	padding: 8px 10px;
	transition: border-color .15s ease, box-shadow .15s ease;
	width: 100%;
}

.aftc__input::placeholder {
	color: #a8afb7;
	font-weight: 500;
}

.aftc__input:hover {
	border-color: var(--aftc-gold-deep);
}

.aftc__input:focus {
	border-color: var(--aftc-gold);
	box-shadow: 0 0 0 3px var(--aftc-gold-tint);
	outline: 0;
}

.aftc__input:disabled {
	background: #3a3f45;
	border-color: var(--aftc-line);
	color: var(--aftc-soft);
	cursor: not-allowed;
}

.aftc__input::-webkit-outer-spin-button,
.aftc__input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.aftc__input[type="number"] {
	-moz-appearance: textfield;
}

.aftc__input--age {
	max-width: 100px;
}

.aftc__select {
	background-image: linear-gradient(45deg, transparent 50%, var(--aftc-field-text) 50%), linear-gradient(135deg, var(--aftc-field-text) 50%, transparent 50%);
	background-position: calc(100% - 16px) 52%, calc(100% - 11px) 52%;
	background-repeat: no-repeat;
	background-size: 5px 5px, 5px 5px;
	cursor: pointer;
	padding-right: 30px;
}

/* -------------------------------------------------------------- events -- */

.aftc__events {
	display: grid;
	gap: 9px;
}

.aftc__event {
	background: var(--aftc-card);
	border: 1px solid var(--aftc-line);
	border-left: 3px solid var(--aftc-line);
	border-radius: var(--aftc-radius);
	padding: 12px 14px;
	transition: border-color .2s ease, background-color .2s ease;
}

.aftc__event:hover {
	border-color: #363c44;
}

.aftc__event.is-pass {
	border-left-color: var(--aftc-gold-deep);
}

.aftc__event.is-fail {
	border-left-color: var(--aftc-fail);
}

.aftc__event.is-max {
	background: linear-gradient(90deg, var(--aftc-gold-tint) 0%, var(--aftc-card) 42%);
	border-left-color: var(--aftc-gold);
}

.aftc__event.is-skipped {
	opacity: .5;
}

.aftc__event-head {
	align-items: center;
	display: flex;
	gap: 10px;
}

.aftc__code {
	background: var(--aftc-sunken);
	border: 1px solid var(--aftc-line);
	border-radius: var(--aftc-radius-sm);
	color: var(--aftc-gold);
	flex: none;
	font-size: .64rem;
	font-weight: 700;
	letter-spacing: .05em;
	min-width: 42px;
	padding: 6px 5px;
	text-align: center;
}

.aftc__event.is-max .aftc__code {
	background: var(--aftc-gold);
	border-color: var(--aftc-gold);
	color: var(--aftc-on-gold);
}

.aftc__event-name {
	flex: 1 1 auto;
	min-width: 0;
}

.aftc__event-name h3 {
	color: var(--aftc-heading);
	font-size: .92rem;
	line-height: 1.3;
	margin: 0;
}

.aftc__event-name p {
	color: var(--aftc-soft);
	font-size: .74rem;
	margin: 2px 0 0;
}

.aftc__points {
	color: var(--aftc-soft);
	flex: none;
	font-size: 1.25rem;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	line-height: 1;
	min-width: 46px;
	text-align: right;
	transition: color .2s ease;
}

.aftc__event.is-pass .aftc__points {
	color: var(--aftc-gold-deep);
}

.aftc__event.is-fail .aftc__points {
	color: var(--aftc-fail);
}

.aftc__event.is-max .aftc__points {
	color: var(--aftc-gold-bright);
	text-shadow: 0 0 14px rgba(240, 180, 41, .45);
}

.aftc__event-body {
	margin-top: 11px;
}

.aftc__time,
.aftc__single {
	align-items: center;
	display: flex;
	gap: 6px;
}

.aftc__input--time {
	text-align: center;
	width: 64px;
}

.aftc__single .aftc__input {
	width: 106px;
}

.aftc__colon {
	color: var(--aftc-soft);
	font-size: 1rem;
	font-weight: 700;
}

.aftc__unit {
	color: var(--aftc-soft);
	font-size: .76rem;
}

.aftc__meter {
	background: var(--aftc-sunken);
	border-radius: 999px;
	height: 5px;
	margin-top: 11px;
	overflow: hidden;
}

.aftc__meter > span {
	background: var(--aftc-gold-deep);
	border-radius: 999px;
	display: block;
	height: 100%;
	transition: width .25s ease, background-color .25s ease;
	width: 0;
}

.aftc__event.is-fail .aftc__meter > span {
	background: var(--aftc-fail);
}

.aftc__event.is-max .aftc__meter > span {
	background: linear-gradient(90deg, var(--aftc-gold-deep), var(--aftc-gold-bright));
}

.aftc__feedback {
	color: var(--aftc-muted);
	font-size: .76rem;
	margin: 8px 0 0;
	min-height: 1.2em;
}

.aftc__feedback strong {
	color: var(--aftc-gold);
	font-weight: 700;
}

/* ----------------------------------------------------- alternate event -- */

.aftc__alt {
	background: var(--aftc-card);
	border: 1px dashed var(--aftc-line);
	border-radius: var(--aftc-radius);
	padding: 12px 14px;
	transition: border-color .2s ease;
}

.aftc__alt:hover {
	border-color: var(--aftc-gold-deep);
}

.aftc__alt.is-open {
	border-color: var(--aftc-gold-line);
	border-style: solid;
}

.aftc__check {
	align-items: center;
	color: var(--aftc-muted);
	cursor: pointer;
	display: flex;
	font-size: .8rem;
	gap: 9px;
}

.aftc__check:hover {
	color: var(--aftc-text);
}

.aftc__check input {
	accent-color: var(--aftc-gold);
	flex: none;
	height: 15px;
	margin: 0;
	width: 15px;
}

.aftc__alt-body {
	margin-top: 12px;
}

.aftc__alt-row {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.aftc__alt-row .aftc__select {
	max-width: 200px;
}

/* ------------------------------------------------- legacy / SPT notice -- */

.aftc__legacy {
	background: var(--aftc-sunken);
	border: 1px solid var(--aftc-line);
	border-left: 3px solid var(--aftc-soft);
	border-radius: var(--aftc-radius);
	padding: 13px 15px;
}

.aftc__legacy-title {
	align-items: center;
	color: var(--aftc-heading);
	display: flex;
	flex-wrap: wrap;
	font-size: .92rem;
	gap: 9px;
	margin: 0 0 8px;
}

.aftc__legacy-badge {
	background: var(--aftc-fail-tint);
	border: 1px solid rgba(229, 83, 75, .35);
	border-radius: 999px;
	color: var(--aftc-fail);
	font-size: .62rem;
	font-weight: 700;
	letter-spacing: .07em;
	padding: 3px 9px;
	text-transform: uppercase;
}

.aftc__legacy p {
	color: var(--aftc-muted);
	font-size: .8rem;
	margin: 0 0 8px;
}

.aftc__legacy p:last-child {
	margin-bottom: 0;
}

.aftc__legacy-note {
	border-top: 1px solid var(--aftc-line);
	color: var(--aftc-soft) !important;
	font-size: .74rem !important;
	padding-top: 8px;
}

/* ---------------------------------------------------- combat field test -- */

.aftc__facts {
	display: grid;
	gap: 8px;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	list-style: none;
	margin: 0 0 12px;
	padding: 0;
}

.aftc__facts li {
	background: var(--aftc-card);
	border: 1px solid var(--aftc-line);
	border-radius: var(--aftc-radius);
	margin: 0;
	padding: 10px 11px;
	text-align: center;
}

.aftc__facts strong {
	color: var(--aftc-gold);
	display: block;
	font-size: 1.02rem;
	line-height: 1.2;
}

.aftc__facts span {
	color: var(--aftc-soft);
	display: block;
	font-size: .66rem;
	margin-top: 3px;
}

.aftc__cft-list {
	display: grid;
	gap: 8px;
}

.aftc__cft-event {
	align-items: center;
	background: var(--aftc-card);
	border: 1px solid var(--aftc-line);
	border-left: 3px solid var(--aftc-line);
	border-radius: var(--aftc-radius);
	display: flex;
	gap: 10px;
	padding: 10px 14px;
	transition: border-color .2s ease;
}

.aftc__cft-event:hover {
	border-color: #363c44;
	border-left-color: var(--aftc-gold-deep);
}

.aftc__cft-event.is-over,
.aftc__cft-event.is-over:hover {
	border-left-color: var(--aftc-fail);
}

.aftc__cft-num {
	background: var(--aftc-sunken);
	border: 1px solid var(--aftc-line);
	border-radius: 50%;
	color: var(--aftc-gold);
	flex: none;
	font-size: .74rem;
	font-weight: 700;
	height: 25px;
	line-height: 23px;
	text-align: center;
	width: 25px;
}

.aftc__cft-name {
	flex: 1 1 auto;
	min-width: 0;
}

.aftc__cft-name h3 {
	color: var(--aftc-heading);
	font-size: .88rem;
	line-height: 1.3;
	margin: 0;
}

.aftc__cft-name p {
	color: var(--aftc-soft);
	font-size: .73rem;
	margin: 2px 0 0;
}

.aftc__time--cft {
	flex: none;
}

.aftc__cft-cume {
	color: var(--aftc-gold-deep);
	flex: none;
	font-size: .82rem;
	font-variant-numeric: tabular-nums;
	font-weight: 700;
	min-width: 48px;
	text-align: right;
}

.aftc__cft-event.is-over .aftc__cft-cume {
	color: var(--aftc-fail);
}

/* -------------------------------------------------------------- result -- */

.aftc__side {
	min-width: 0;
}

.aftc__result {
	padding: 16px 14px;
	position: sticky;
	text-align: center;
	top: 16px;
}

.aftc__result-label {
	color: var(--aftc-muted);
	font-size: .68rem;
	font-weight: 700;
	letter-spacing: .07em;
	margin: 0;
	text-transform: uppercase;
}

.aftc__dial {
	margin: 10px auto 2px;
	position: relative;
	width: 122px;
}

.aftc__dial svg {
	display: block;
	height: auto;
	transform: rotate(-90deg);
	width: 100%;
}

.aftc__dial circle {
	fill: none;
	stroke-width: 8;
}

.aftc__dial-track {
	stroke: var(--aftc-sunken);
}

.aftc__dial-fill {
	stroke: var(--aftc-soft);
	stroke-dasharray: 326.7;
	stroke-dashoffset: 326.7;
	stroke-linecap: round;
	transition: stroke-dashoffset .35s ease, stroke .25s ease;
}

.aftc__result.is-pass .aftc__dial-fill {
	stroke: var(--aftc-gold);
}

.aftc__result.is-fail .aftc__dial-fill {
	stroke: var(--aftc-fail);
}

.aftc__dial-value {
	left: 0;
	position: absolute;
	right: 0;
	top: 50%;
	transform: translateY(-50%);
}

.aftc__dial-value strong {
	color: var(--aftc-heading);
	display: block;
	font-size: 1.95rem;
	font-variant-numeric: tabular-nums;
	font-weight: 700;
	line-height: 1;
}

.aftc__result.is-pass .aftc__dial-value strong {
	color: var(--aftc-gold);
}

.aftc__dial-value span {
	color: var(--aftc-soft);
	font-size: .72rem;
}

.aftc__result--cft .aftc__dial-value strong {
	font-size: 1.6rem;
}

.aftc__verdict {
	background: var(--aftc-sunken);
	border: 1px solid var(--aftc-line);
	border-radius: 999px;
	color: var(--aftc-muted);
	display: inline-block;
	font-size: .72rem;
	font-weight: 700;
	letter-spacing: .06em;
	margin: 6px 0 0;
	padding: 5px 14px;
	text-transform: uppercase;
}

.aftc__result.is-pass .aftc__verdict {
	background: var(--aftc-gold-tint);
	border-color: var(--aftc-gold-line);
	color: var(--aftc-gold);
}

.aftc__result.is-fail .aftc__verdict {
	background: var(--aftc-fail-tint);
	border-color: rgba(229, 83, 75, .35);
	color: var(--aftc-fail);
}

.aftc__requirement {
	color: var(--aftc-soft);
	font-size: .74rem;
	margin: 9px 0 0;
}

.aftc__breakdown {
	border-top: 1px solid var(--aftc-line);
	list-style: none;
	margin: 13px 0 0;
	padding: 2px 0 0;
	text-align: left;
}

.aftc__breakdown li {
	align-items: baseline;
	border-bottom: 1px solid var(--aftc-line-soft);
	display: flex;
	font-size: .79rem;
	gap: 7px;
	margin: 0;
	padding: 7px 1px;
}

.aftc__bd-name {
	color: var(--aftc-muted);
	flex: 1 1 auto;
	min-width: 0;
}

.aftc__bd-raw {
	color: var(--aftc-soft);
	flex: none;
	font-size: .75rem;
	font-variant-numeric: tabular-nums;
}

.aftc__bd-pts {
	color: var(--aftc-text);
	flex: none;
	font-variant-numeric: tabular-nums;
	font-weight: 700;
	min-width: 28px;
	text-align: right;
}

.aftc__breakdown li.is-fail .aftc__bd-pts {
	color: var(--aftc-fail);
}

.aftc__breakdown li.is-max .aftc__bd-pts {
	color: var(--aftc-gold-bright);
}

/* ------------------------------------------------------------ calories -- */

.aftc__calories {
	background: var(--aftc-sunken);
	border: 1px solid var(--aftc-line);
	border-radius: var(--aftc-radius-sm);
	margin-top: 12px;
	padding: 9px 11px;
}

.aftc__cal-value {
	color: var(--aftc-gold);
	display: block;
	font-size: 1.1rem;
	font-variant-numeric: tabular-nums;
	font-weight: 700;
	line-height: 1.2;
}

.aftc__cal-label {
	color: var(--aftc-soft);
	display: block;
	font-size: .67rem;
	margin-top: 2px;
}

/* ------------------------------------------------------------- buttons -- */

.aftc__actions {
	display: grid;
	gap: 7px;
	margin-top: 13px;
}

.aftc__btn {
	-webkit-appearance: none;
	appearance: none;
	background: transparent;
	border: 1px solid var(--aftc-line);
	border-radius: var(--aftc-radius-sm);
	color: var(--aftc-text);
	cursor: pointer;
	font: inherit;
	font-size: .82rem;
	font-weight: 600;
	padding: 9px 12px;
	transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .1s ease;
	width: 100%;
}

.aftc__btn:hover {
	background: var(--aftc-gold-tint);
	border-color: var(--aftc-gold-line);
	color: var(--aftc-gold);
}

.aftc__btn:active {
	transform: translateY(1px);
}

.aftc__btn:focus-visible {
	outline: 2px solid var(--aftc-gold);
	outline-offset: 2px;
}

.aftc__btn--primary {
	background: var(--aftc-gold);
	border-color: var(--aftc-gold);
	color: var(--aftc-on-gold);
}

.aftc__btn--primary:hover {
	background: var(--aftc-gold-bright);
	border-color: var(--aftc-gold-bright);
	box-shadow: 0 3px 14px rgba(240, 180, 41, .28);
	color: var(--aftc-on-gold);
}

.aftc__btn--ghost {
	border-color: transparent;
	color: var(--aftc-soft);
	font-size: .77rem;
	padding: 6px;
}

.aftc__btn--ghost:hover {
	background: transparent;
	border-color: transparent;
	color: var(--aftc-fail);
}

.aftc__copied {
	color: var(--aftc-gold);
	font-size: .74rem;
	font-weight: 600;
	margin: 9px 0 0;
}

.aftc__source {
	color: var(--aftc-soft);
	font-size: .69rem;
	line-height: 1.55;
	margin: 12px 2px 0;
}

.aftc__source--inline {
	margin: 12px 2px 0;
}

.aftc a {
	color: var(--aftc-gold);
	text-decoration: none;
	transition: color .15s ease;
}

.aftc a:hover {
	color: var(--aftc-gold-bright);
	text-decoration: underline;
}

/* --------------------------------------------------------------- chart -- */

.aftc--chart {
	display: block;
}

.aftc__chart-block {
	background: var(--aftc-black);
	border: 1px solid var(--aftc-line);
	border-radius: var(--aftc-radius);
	margin: 0 0 20px;
	padding: 14px;
}

.aftc__chart-title {
	color: var(--aftc-heading);
	font-size: 1rem;
	margin: 0 0 10px;
}

.aftc__table-wrap {
	-webkit-overflow-scrolling: touch;
	border: 1px solid var(--aftc-line);
	border-radius: var(--aftc-radius-sm);
	overflow-x: auto;
}

.aftc table {
	background: var(--aftc-card);
	border-collapse: collapse;
	font-size: .8rem;
	margin: 0;
	min-width: 620px;
	width: 100%;
}

.aftc thead th {
	background: var(--aftc-sunken);
	border-bottom: 1px solid var(--aftc-gold-line);
	color: var(--aftc-text);
	font-size: .7rem;
	font-weight: 600;
	letter-spacing: .02em;
	padding: 9px 7px;
	text-align: center;
	white-space: nowrap;
}

.aftc thead th:first-child {
	color: var(--aftc-gold);
	text-align: left;
}

.aftc__th-unit {
	color: var(--aftc-soft);
	font-weight: 400;
}

.aftc tbody td {
	border-top: 1px solid var(--aftc-line-soft);
	color: var(--aftc-muted);
	font-variant-numeric: tabular-nums;
	padding: 8px 7px;
	text-align: center;
	white-space: nowrap;
}

.aftc tbody td:first-child {
	color: var(--aftc-text);
	font-weight: 700;
	text-align: left;
}

.aftc tbody tr:nth-child(even) td {
	background: rgba(255, 255, 255, .022);
}

.aftc tbody tr:hover td {
	background: rgba(240, 180, 41, .07);
	color: var(--aftc-text);
}

.aftc tbody tr.is-minimum td {
	background: var(--aftc-gold-tint);
	color: var(--aftc-gold);
	font-weight: 600;
}

.aftc__chart-note {
	color: var(--aftc-soft);
	font-size: .71rem;
	margin: 8px 2px 0;
}

/* ------------------------------------------------------------ responsive */

@media (max-width: 980px) {
	.aftc__body {
		grid-template-columns: minmax(0, 1fr);
	}

	.aftc__result {
		position: static;
	}
}

@media (max-width: 640px) {
	.aftc {
		font-size: 14px;
	}

	.aftc__hero {
		align-items: flex-start;
		flex-direction: column;
		gap: 10px;
		padding: 14px;
	}

	.aftc__body {
		padding: 10px;
	}

	.aftc__setup {
		grid-template-columns: minmax(0, 1fr);
		padding: 13px;
	}

	.aftc__event {
		padding: 11px 12px;
	}

	.aftc__event-name p {
		display: none;
	}

	.aftc__points {
		font-size: 1.1rem;
		min-width: 40px;
	}

	.aftc__input--age {
		max-width: 100%;
	}

	.aftc__facts {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.aftc__cft-event {
		flex-wrap: wrap;
		padding: 12px;
	}

	.aftc__cft-name {
		flex: 1 1 60%;
	}

	.aftc__cft-name p {
		display: none;
	}

	.aftc__time--cft {
		margin-left: 35px;
	}
}

/* ----------------------------------------------------------------- print */

/* The dark card would eat a printer cartridge, so print renders light. */
@media print {
	.aftc {
		--aftc-black: #ffffff;
		--aftc-card: #ffffff;
		--aftc-raised: #ffffff;
		--aftc-sunken: #f4f5f7;
		--aftc-line: #cbd2d9;
		--aftc-line-soft: #e4e7eb;
		--aftc-text: #14171a;
		--aftc-heading: #000000;
		--aftc-muted: #3e444b;
		--aftc-soft: #6d7681;
		--aftc-gold: #9a7412;
		--aftc-gold-bright: #9a7412;
		--aftc-gold-deep: #9a7412;

		color: #14171a;
	}

	.aftc__actions,
	.aftc__btn,
	.aftc__alt,
	.aftc__meter {
		display: none !important;
	}

	.aftc__body {
		display: block;
		padding: 0;
	}

	.aftc__panel,
	.aftc__event,
	.aftc__cft-event {
		box-shadow: none;
		break-inside: avoid;
		page-break-inside: avoid;
	}

	.aftc__result {
		position: static;
	}

	.aftc__hero {
		background: #fff;
		border-bottom: 2px solid #9a7412;
	}

	.aftc__hero::after {
		display: none;
	}

	.aftc__title,
	.aftc__subtitle {
		color: #000;
	}
}
