/*
 * AIEI Accounts – front-end styles.
 *
 * Loaded only on plugin pages (registration, login, lost password, my account).
 * Every rule is scoped to .aa (the plugin wrapper), so nothing leaks into the theme.
 *
 * Inherits the aiei theme: Open Sans (loaded by the theme), ink #0A2535,
 * blue #3366FF, mist #EAF0F5, line #C6D5E2, steel #4C6B86, teal #009688,
 * orange #CD5C2B, and the navy panel used by the Regulation Monitor.
 *
 * Shape rule: controls 8px, notices 12px, surfaces (sheet, identity panel) 16px,
 * chips and dots fully round. Nothing else.
 */

/* ------------------------------------------------------------------ tokens */

.aa {
	--aa-ink: #0a2535;
	--aa-ink-2: #4c6b86;          /* secondary text, 5.6:1 on white */
	--aa-slate: #6584a1;          /* non-text only (icons, borders) */
	--aa-mist: #eaf0f5;
	--aa-mist-2: #f4f7fa;
	--aa-line: #c6d5e2;
	--aa-line-soft: #dde6ee;
	--aa-white: #fff;

	--aa-blue: #3366ff;
	--aa-blue-hover: #2650d9;
	--aa-blue-tint: #ebf0ff;
	--aa-blue-ink: #1f43c4;

	--aa-teal: #009688;
	--aa-teal-tint: #e0f0ee;
	--aa-teal-ink: #006d63;

	--aa-amber: #d9951a;
	--aa-amber-tint: #fbeed5;
	--aa-amber-ink: #7a5007;

	--aa-orange: #cd5c2b;
	--aa-orange-tint: #fae9e1;
	--aa-orange-ink: #8a3312;

	/* navy panel (same material as the Regulation Monitor preview) */
	--aa-navy: #0a2535;
	--aa-navy-edge: #1c3d52;
	--aa-on-dark: #c3cfdc;
	--aa-on-dark-muted: #9fb3c6;
	--aa-line-dark: rgba(255, 255, 255, .1);

	--aa-r-control: 8px;
	--aa-r-notice: 12px;
	--aa-r-surface: 16px;

	--aa-shadow-sheet: 0 1px 2px rgba(10, 37, 53, .05), 0 18px 40px -24px rgba(10, 37, 53, .22);
	--aa-shadow-panel: 0 30px 60px -30px rgba(10, 37, 53, .55), 0 2px 6px rgba(10, 37, 53, .08);
	--aa-ring: 0 0 0 3px rgba(51, 102, 255, .22);
	--aa-ease: cubic-bezier(.16, 1, .3, 1);

	color: var(--aa-ink);
	font-family: "Open Sans", system-ui, sans-serif;
	font-size: 15px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

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

.aa ::selection {
	background: #d5deff;
	color: var(--aa-ink);
}

/* Resets use :where() so every component class below wins without extra weight.
 * The theme's own p / h / list margins are neutralised inside .aa only. */
.aa :where(p, h1, h2, h3, ul, ol, dl, dt, dd, fieldset, legend, figure) {
	margin: 0;
	padding: 0;
}

.aa :where(ul, ol) {
	list-style: none;
}

.aa :where(fieldset) {
	border: 0;
	min-width: 0;
}

.aa a {
	color: var(--aa-blue-ink);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
	transition: color .2s var(--aa-ease);
}

.aa a:hover {
	color: var(--aa-ink);
}

.aa :focus-visible {
	outline: 2px solid var(--aa-blue);
	outline-offset: 2px;
}

.aa-sprite {
	position: absolute;
	width: 0;
	height: 0;
	overflow: hidden;
}

.aa-icon {
	width: 20px;
	height: 20px;
	flex: none;
	fill: currentColor;
}

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

.aa-tnum {
	font-variant-numeric: tabular-nums;
}

/* The account surface continues the mist header band used on inner pages. */
body:has(.aa-page) .header {
	background: var(--aa-mist, #eaf0f5);
}

/*
 * Theme integration. The aiei theme wraps page content in .inner (80px top padding) and .post-box
 * (770px, meant for blog text). Plugin pages take the full container and run the mist band edge to
 * edge under the header. The theme also puts bullets on every list item, so they are removed here.
 */
body:has(.aa-page) .inner {
	padding: 0;
	background: #eaf0f5;
}

body:has(.aa-page) .post-box {
	max-width: none;
}

div.aa ul > li,
div.aa ol > li {
	list-style: none;
}

div.aa li::marker {
	content: none;
}

/*
 * The theme styles every p / h1-h3 / ul / ol inside .post-box (24px bottom margin, 32px headings, list
 * padding, images at 100% width). Those selectors outweigh the component classes, so the plugin's own
 * values are restated here with a heavier selector. Only what the theme touches is listed.
 */
body:has(.aa-page) .post-box .aa :where(p, h1, h2, h3, ul, ol) {
	margin-bottom: 0;
}

body:has(.aa-page) .post-box .aa :where(ul, ol) {
	padding-left: 0;
}

body:has(.aa-page) .post-box .aa .aa-title {
	font-size: 30px;
	line-height: 1.25;
}

@media (max-width: 767px) {
	body:has(.aa-page) .post-box .aa .aa-title {
		font-size: 24px;
	}
}

body:has(.aa-page) .post-box .aa .aa-h2 {
	font-size: 19px;
	line-height: 1.35;
}

body:has(.aa-page) .post-box .aa .aa-type__name {
	font-size: 19px;
	line-height: 1.3;
}

body:has(.aa-page) .post-box .aa .aa-fieldset__intro {
	margin-bottom: 18px;
}

body:has(.aa-page) .post-box .aa .aa-steps {
	margin-bottom: 4px;
}

body:has(.aa-page) .post-box .aa .aa-id__figure {
	width: 32px;
	height: 32px;
	max-width: none;
	margin: 0;
	border-radius: 0;
}

/* ------------------------------------------------------------ page shells */

.aa-page {
	background: var(--aa-mist);
	padding: 40px 0 112px;
}

/* Account: section rail | working sheet | identity panel */
.aa-shell {
	display: grid;
	grid-template-columns: 224px minmax(0, 1fr) 288px;
	grid-template-areas: "nav main id";
	gap: 32px;
	align-items: start;
}

.aa-shell__nav {
	grid-area: nav;
	position: sticky;
	top: 24px;
}

.aa-shell__main {
	grid-area: main;
	min-width: 0;
}

.aa-shell__id {
	grid-area: id;
	position: sticky;
	top: 24px;
}

/* Auth: form sheet | brand panel */
.aa-auth {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 400px;
	gap: 32px;
	align-items: start;
	max-width: 1040px;
	margin: 0 auto;
}

.aa-auth--narrow {
	grid-template-columns: minmax(0, 560px) 400px;
	justify-content: center;
}

.aa-auth__main {
	min-width: 0;
}

.aa-auth__aside {
	position: sticky;
	top: 24px;
}

/* ------------------------------------------------------------- the sheet */

.aa-sheet {
	background: var(--aa-white);
	border-radius: var(--aa-r-surface);
	box-shadow: var(--aa-shadow-sheet);
	padding: 40px 48px 48px;
}

.aa-sheet__head {
	margin-bottom: 32px;
}

.aa-sheet__back {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-bottom: 20px;
	font-size: 14px;
	font-weight: 600;
	color: var(--aa-ink-2);
	text-decoration: none;
}

.aa .aa-sheet__back {
	color: var(--aa-ink-2);
	text-decoration: none;
}

.aa .aa-sheet__back:hover {
	color: var(--aa-blue-ink);
}

.aa-sheet__back .aa-icon {
	width: 16px;
	height: 16px;
}

.aa-title {
	font-size: 30px;
	line-height: 1.25;
	font-weight: 700;
	letter-spacing: -.01em;
	color: var(--aa-ink);
	text-wrap: balance;
}

.aa-lead {
	margin-top: 10px;
	max-width: 62ch;
	font-size: 16px;
	line-height: 1.65;
	color: var(--aa-ink-2);
	text-wrap: pretty;
}

.aa-title-meta {
	margin-top: 12px;
}

.aa-title-meta + .aa-lead {
	margin-top: 14px;
}

.aa-title-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 14px;
}

.aa-section {
	padding-top: 32px;
	margin-top: 32px;
	border-top: 1px solid var(--aa-line-soft);
}

.aa-section:first-child {
	padding-top: 0;
	margin-top: 0;
	border-top: 0;
}

.aa-h2 {
	font-size: 19px;
	line-height: 1.35;
	font-weight: 700;
	color: var(--aa-ink);
	text-wrap: balance;
}

.aa-h2 + .aa-text,
.aa-h2 + .aa-dl,
.aa-h2 + .aa-form,
.aa-h2 + .aa-rows {
	margin-top: 14px;
}

.aa-text {
	max-width: 65ch;
	color: var(--aa-ink);
	text-wrap: pretty;
}

.aa-text + .aa-text {
	margin-top: 10px;
}

.aa-muted {
	color: var(--aa-ink-2);
}

.aa-small {
	font-size: 13.5px;
	line-height: 1.55;
}

@keyframes aa-rise {
	from {
		opacity: 0;
		transform: translateY(8px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

/* ------------------------------------------------------------- section rail */

.aa-nav__list {
	display: grid;
	gap: 4px;
}

.aa .aa-nav__link {
	position: relative;
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 48px;
	padding: 10px 14px;
	border-radius: var(--aa-r-control);
	color: var(--aa-ink-2);
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
	touch-action: manipulation;
	transition: background-color .25s var(--aa-ease), color .25s var(--aa-ease), box-shadow .25s var(--aa-ease);
}

.aa .aa-nav__link:hover {
	background: rgba(255, 255, 255, .65);
	color: var(--aa-ink);
}

.aa .aa-nav__link[aria-current="page"] {
	background: var(--aa-white);
	color: var(--aa-ink);
	box-shadow: 0 1px 2px rgba(10, 37, 53, .06), 0 6px 16px -10px rgba(10, 37, 53, .3);
}

.aa-nav__link .aa-icon {
	color: var(--aa-slate);
	transition: color .25s var(--aa-ease);
}

.aa-nav__link:hover .aa-icon,
.aa-nav__link[aria-current="page"] .aa-icon {
	color: var(--aa-blue);
}

.aa-nav__label {
	flex: 1;
	min-width: 0;
}

.aa .aa-nav__foot a {
	white-space: nowrap;
}

.aa-nav__foot {
	margin-top: 20px;
	padding: 16px 14px 0;
	border-top: 1px solid var(--aa-line);
	font-size: 13.5px;
	color: var(--aa-ink-2);
}

/* The attention dot: a section needs the member's action. Always paired with
 * visually hidden text, never colour alone. */
.aa-dot {
	position: relative;
	flex: none;
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: var(--aa-orange);
	box-shadow: 0 0 0 3px rgba(205, 92, 43, .18), 0 0 12px 2px rgba(205, 92, 43, .45);
}

.aa-dot::after {
	content: "";
	position: absolute;
	inset: -3px;
	border-radius: 50%;
	border: 2px solid rgba(205, 92, 43, .55);
	opacity: 0;
}

@media (prefers-reduced-motion: no-preference) {
	.aa-dot::after {
		animation: aa-ping 2.4s var(--aa-ease) infinite;
	}
}

@keyframes aa-ping {
	0% {
		opacity: .9;
		transform: scale(1);
	}
	70%,
	100% {
		opacity: 0;
		transform: scale(2.4);
	}
}

/* ---------------------------------------------------------- identity panel */

.aa-id {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	padding: 24px;
	border: 1px solid var(--aa-navy-edge);
	border-radius: var(--aa-r-surface);
	background:
		radial-gradient(360px 240px at 100% 0, rgba(101, 132, 161, .28), transparent 70%),
		var(--aa-navy);
	box-shadow: var(--aa-shadow-panel);
	color: var(--aa-on-dark);
	font-size: 14px;
}

/* AIEI figure, bottom right of the navy card. Decorative. */
.aa-id__figure {
	position: absolute;
	right: 24px;
	bottom: 24px;
	width: 32px;
	height: 32px;
	opacity: .9;
	pointer-events: none;
}

.aa-brand .aa-id__type {
	padding-right: 52px;
}

.aa-brand .aa-id__figure {
	top: 24px;
	bottom: auto;
}

.aa-id__who {
	display: flex;
	align-items: center;
	gap: 14px;
	min-width: 0;
}

.aa-id__mono {
	display: grid;
	place-items: center;
	flex: none;
	width: 48px;
	height: 48px;
	border-radius: 14px 14px 14px 4px;
	background: rgba(255, 255, 255, .08);
	border: 1px solid rgba(255, 255, 255, .14);
	color: #fff;
	font-size: 16px;
	font-weight: 700;
	letter-spacing: .02em;
}

.aa-id__name {
	color: #fff;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.3;
	overflow-wrap: break-word;
}

.aa-id .aa-chip {
	white-space: normal;
}

.aa-id__email {
	margin-top: 2px;
	color: var(--aa-on-dark-muted);
	font-size: 13px;
	overflow-wrap: anywhere;
}

.aa-id__body {
	margin-top: 20px;
	padding-top: 20px;
	border-top: 1px solid var(--aa-line-dark);
}

.aa-id__type {
	color: #fff;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.3;
}

.aa-id__status {
	margin-top: 12px;
}

.aa-id__facts {
	display: grid;
	gap: 10px;
	margin-top: 18px;
}

.aa-id__fact {
	display: flex;
	justify-content: space-between;
	gap: 12px;
}

.aa-id__fact dt {
	color: var(--aa-on-dark-muted);
}

.aa-id__fact dd {
	color: #fff;
	font-weight: 600;
	text-align: right;
	font-variant-numeric: tabular-nums;
}

.aa-id__empty {
	color: var(--aa-on-dark);
	line-height: 1.55;
}

.aa-id__action {
	margin-top: 22px;
}

.aa-id__foot {
	margin-top: 22px;
	padding-top: 16px;
	border-top: 1px solid var(--aa-line-dark);
}

.aa .aa-id__logout {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 32px;
	color: var(--aa-on-dark);
	font-size: 13.5px;
	text-decoration: none;
}

.aa .aa-id__logout:hover {
	color: #fff;
}

.aa-id__logout .aa-icon {
	width: 18px;
	height: 18px;
}

/* Auth brand panel reuses the identity material */
.aa-brand .aa-id__type {
	font-size: 21px;
	line-height: 1.3;
	text-wrap: balance;
}

.aa-brand__list {
	display: grid;
	gap: 14px;
	margin-top: 22px;
}

.aa-brand__list li {
	display: flex;
	gap: 12px;
	line-height: 1.5;
}

.aa-brand__list .aa-icon {
	width: 20px;
	height: 20px;
	margin-top: 1px;
	color: #7fd6cc;
}

.aa-brand__note {
	margin-top: 22px;
	padding-top: 16px;
	border-top: 1px solid var(--aa-line-dark);
	color: var(--aa-on-dark-muted);
	font-size: 13.5px;
}

.aa .aa-brand__note a {
	color: #fff;
}

/* --------------------------------------------------------------- chips */

.aa-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 11px 4px 9px;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.35;
	white-space: nowrap;
}

.aa-chip .aa-icon {
	width: 15px;
	height: 15px;
}

.aa-chip--review    { background: var(--aa-blue-tint);   color: var(--aa-blue-ink); }
.aa-chip--attention { background: var(--aa-amber-tint);  color: var(--aa-amber-ink); }
.aa-chip--active    { background: var(--aa-teal-tint);   color: var(--aa-teal-ink); }
.aa-chip--danger    { background: var(--aa-orange-tint); color: var(--aa-orange-ink); }
.aa-chip--muted     { background: var(--aa-mist);        color: var(--aa-ink-2); }

.aa-id .aa-chip--review    { background: rgba(51, 102, 255, .22); color: #c4d2ff; }
.aa-id .aa-chip--attention { background: rgba(217, 149, 26, .2);  color: #f5d38f; }
.aa-id .aa-chip--active    { background: rgba(0, 150, 136, .22);  color: #8fe0d6; }
.aa-id .aa-chip--danger    { background: rgba(205, 92, 43, .24);  color: #f6b998; }
.aa-id .aa-chip--muted     { background: rgba(255, 255, 255, .08); color: var(--aa-on-dark); }

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

.aa .aa-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 48px;
	padding: 0 24px;
	border: 1px solid transparent;
	border-radius: var(--aa-r-control);
	font-family: inherit;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	touch-action: manipulation;
	transition: background-color .25s var(--aa-ease), border-color .25s var(--aa-ease), color .25s var(--aa-ease), box-shadow .25s var(--aa-ease), transform .15s var(--aa-ease);
}

.aa .aa-btn:active {
	transform: translateY(1px);
}

.aa .aa-btn .aa-icon {
	width: 18px;
	height: 18px;
}

.aa .aa-btn--primary {
	background: var(--aa-blue);
	color: #fff;
	box-shadow: 0 8px 18px -10px rgba(51, 102, 255, .8);
}

.aa .aa-btn--primary:hover {
	background: var(--aa-blue-hover);
	color: #fff;
}

.aa .aa-btn--secondary {
	background: var(--aa-white);
	border-color: var(--aa-line);
	color: var(--aa-ink);
}

.aa .aa-btn--secondary:hover {
	border-color: var(--aa-ink);
	color: var(--aa-ink);
}

.aa .aa-btn--quiet {
	min-height: 44px;
	padding: 0 4px;
	background: none;
	color: var(--aa-blue-ink);
}

.aa .aa-btn--quiet:hover {
	color: var(--aa-ink);
}

.aa .aa-btn--danger {
	background: var(--aa-white);
	border-color: #e7b7a2;
	color: var(--aa-orange-ink);
}

.aa .aa-btn--danger:hover {
	border-color: var(--aa-orange);
}

.aa .aa-btn--block {
	width: 100%;
}

.aa .aa-btn[disabled],
.aa .aa-btn[aria-disabled="true"] {
	opacity: .55;
	cursor: not-allowed;
	box-shadow: none;
	transform: none;
}

/* Loading: keep the label, add a spinner before it. */
.aa .aa-btn[aria-busy="true"] {
	cursor: progress;
}

.aa .aa-btn[aria-busy="true"]::before {
	content: "";
	width: 16px;
	height: 16px;
	border-radius: 50%;
	border: 2px solid currentColor;
	border-right-color: transparent;
	animation: aa-spin .7s linear infinite;
}

@keyframes aa-spin {
	to {
		transform: rotate(360deg);
	}
}

.aa-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 16px;
	margin-top: 28px;
}

/* ---------------------------------------------------------------- notices */

.aa-notice {
	display: flex;
	gap: 14px;
	padding: 16px 18px;
	border-radius: var(--aa-r-notice);
	background: var(--aa-mist-2);
	color: var(--aa-ink);
	font-size: 14.5px;
	line-height: 1.6;
}

.aa-notice > .aa-icon {
	width: 22px;
	height: 22px;
	margin-top: 1px;
}

.aa-notice__body {
	min-width: 0;
}

.aa-notice__title {
	font-weight: 700;
}

.aa-notice__title + p,
.aa-notice__title + .aa-notice__message {
	margin-top: 4px;
}

.aa-notice__message {
	white-space: pre-line;
}

.aa-notice__meta {
	margin-top: 8px;
	font-size: 13px;
	opacity: .85;
}

.aa-notice .aa-actions {
	margin-top: 14px;
}

.aa-notice--info      { background: var(--aa-blue-tint); }
.aa-notice--info > .aa-icon { color: var(--aa-blue); }
.aa-notice--attention { background: var(--aa-amber-tint); color: #4f3505; }
.aa-notice--attention > .aa-icon { color: var(--aa-amber-ink); }
.aa-notice--danger    { background: var(--aa-orange-tint); color: #5c220b; }
.aa-notice--danger > .aa-icon { color: var(--aa-orange-ink); }
.aa-notice--success   { background: var(--aa-teal-tint); color: #04403a; }
.aa-notice--success > .aa-icon { color: var(--aa-teal-ink); }

.aa-flash {
	margin-bottom: 24px;
}

/* Programmatic focus target only; the notice itself is announced. */
.aa [data-aa-error-summary]:focus,
.aa #aa-main:focus {
	outline: none;
}

/* ------------------------------------------------------------------ forms */

.aa-form {
	max-width: 600px;
}

.aa-form--wide {
	max-width: none;
}

.aa-fieldset + .aa-fieldset {
	margin-top: 36px;
}

.aa-fieldset__legend {
	display: block;
	width: 100%;
	margin-bottom: 18px;
	font-size: 17px;
	font-weight: 700;
	color: var(--aa-ink);
}

.aa-fieldset__intro {
	margin: -10px 0 18px;
	color: var(--aa-ink-2);
	font-size: 14px;
}

.aa-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	align-items: end; /* a label that wraps must not push its input below its neighbour's */
	gap: 20px 20px;
}

.aa-field {
	grid-column: 1 / -1;
	display: grid;
	gap: 8px;
	min-width: 0;
}

.aa-field--half {
	grid-column: span 1;
}

.aa-label {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	font-size: 14px;
	font-weight: 600;
	color: var(--aa-ink);
}

.aa-req {
	margin-left: 3px;
	color: var(--aa-orange-ink);
	font-weight: 600;
}

.aa-label__opt {
	font-weight: 400;
	color: var(--aa-ink-2);
	font-size: 13px;
}

.aa-hint {
	margin-top: -2px;
	font-size: 13.5px;
	line-height: 1.5;
	color: var(--aa-ink-2);
}

.aa .aa-input,
.aa .aa-select,
.aa .aa-textarea {
	display: block;
	width: 100%;
	min-height: 48px;
	margin: 0;
	padding: 11px 14px;
	border: 1px solid var(--aa-line);
	border-radius: var(--aa-r-control);
	background: var(--aa-white);
	color: var(--aa-ink);
	font-family: inherit;
	font-size: 16px;
	line-height: 1.5;
	caret-color: var(--aa-blue);
	box-shadow: none;
	transition: border-color .2s var(--aa-ease), box-shadow .2s var(--aa-ease), background-color .2s var(--aa-ease);
	-webkit-appearance: none;
	appearance: none;
}

/* A date field gets extra height from the browser's date picker: keep it level with the fields beside it. */
.aa .aa-input[type="date"] {
	height: 48px;
	padding-top: 0;
	padding-bottom: 0;
}

.aa .aa-input::placeholder,
.aa .aa-textarea::placeholder {
	color: #6e87a0;
	opacity: 1;
}

.aa .aa-input:hover,
.aa .aa-select:hover,
.aa .aa-textarea:hover {
	border-color: #9fb5c9;
}

.aa .aa-input:focus,
.aa .aa-select:focus,
.aa .aa-textarea:focus {
	outline: none;
	border-color: var(--aa-blue);
	box-shadow: var(--aa-ring);
}

.aa .aa-input[readonly] {
	background: var(--aa-mist-2);
	color: var(--aa-ink-2);
	cursor: default;
}

.aa .aa-textarea {
	min-height: 148px;
	resize: vertical;
}

.aa .aa-select {
	padding-right: 44px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256' fill='%234c6b86'%3E%3Cpath d='M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,53.66,90.34L128,164.69l74.34-74.35a8,8,0,0,1,11.32,11.32Z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	background-size: 18px;
	cursor: pointer;
}

.aa-field--error .aa-input,
.aa-field--error .aa-select,
.aa-field--error .aa-textarea {
	border-color: var(--aa-orange);
}

.aa-field--error .aa-input:focus,
.aa-field--error .aa-select:focus,
.aa-field--error .aa-textarea:focus {
	box-shadow: 0 0 0 3px rgba(205, 92, 43, .2);
}

.aa-error {
	display: flex;
	align-items: flex-start;
	gap: 6px;
	font-size: 13.5px;
	font-weight: 600;
	line-height: 1.45;
	color: var(--aa-orange-ink);
}

.aa-error .aa-icon {
	width: 16px;
	height: 16px;
	margin-top: 1px;
}

.aa-error[hidden] {
	display: none;
}

.aa-counter {
	justify-self: end;
	margin-top: -2px;
	font-size: 12.5px;
	color: var(--aa-ink-2);
	font-variant-numeric: tabular-nums;
}

.aa-counter.is-over {
	color: var(--aa-orange-ink);
	font-weight: 600;
}

/* Password with show / hide */
.aa-pass {
	position: relative;
}

.aa .aa-pass .aa-input {
	padding-right: 56px;
}

.aa .aa-pass__toggle {
	position: absolute;
	top: 2px;
	right: 2px;
	bottom: 2px;
	display: grid;
	place-items: center;
	width: 48px;
	padding: 0;
	border: 0;
	border-radius: 0 6px 6px 0;
	background: none;
	color: var(--aa-ink-2);
	cursor: pointer;
}

.aa .aa-pass__toggle:hover {
	color: var(--aa-ink);
}

.aa-pass__toggle .aa-icon {
	width: 20px;
	height: 20px;
}

.aa-pass__toggle [data-show="hide"],
.aa-pass.is-visible .aa-pass__toggle [data-show="show"] {
	display: none;
}

.aa-pass.is-visible .aa-pass__toggle [data-show="hide"] {
	display: block;
}

.aa-strength {
	display: grid;
	grid-template-columns: repeat(4, 1fr) auto;
	align-items: center;
	gap: 6px;
	margin-top: 2px;
}

.aa-strength span {
	height: 4px;
	border-radius: 2px;
	background: var(--aa-line-soft);
	transition: background-color .3s var(--aa-ease);
}

.aa-strength output {
	min-width: 72px;
	margin-left: 6px;
	font-size: 12.5px;
	font-weight: 600;
	color: var(--aa-ink-2);
	text-align: right;
}

.aa-strength[data-score="1"] span:nth-child(-n+1) { background: var(--aa-orange); }
.aa-strength[data-score="2"] span:nth-child(-n+2) { background: var(--aa-amber); }
.aa-strength[data-score="3"] span:nth-child(-n+3) { background: var(--aa-teal); }
.aa-strength[data-score="4"] span:nth-child(-n+4) { background: var(--aa-teal); }

/* Checkbox */
.aa-check {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	min-height: 44px;
	padding: 2px 0;
	cursor: pointer;
	font-size: 14.5px;
	line-height: 1.55;
	color: var(--aa-ink);
}

.aa .aa-check input {
	flex: none;
	width: 22px;
	height: 22px;
	margin: 1px 0 0;
	border: 1.5px solid #8ea6bc;
	border-radius: 6px;
	background: var(--aa-white);
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
	display: grid;
	place-content: center;
	transition: background-color .2s var(--aa-ease), border-color .2s var(--aa-ease);
}

.aa .aa-check input::before {
	content: "";
	width: 14px;
	height: 14px;
	background: #fff;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M229.66,77.66l-128,128a8,8,0,0,1-11.32,0l-56-56a8,8,0,0,1,11.32-11.32L96,188.69,218.34,66.34a8,8,0,0,1,11.32,11.32Z'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M229.66,77.66l-128,128a8,8,0,0,1-11.32,0l-56-56a8,8,0,0,1,11.32-11.32L96,188.69,218.34,66.34a8,8,0,0,1,11.32,11.32Z'/%3E%3C/svg%3E") center / contain no-repeat;
	transform: scale(0);
	transition: transform .2s var(--aa-ease);
}

.aa .aa-check input:checked {
	background: var(--aa-blue);
	border-color: var(--aa-blue);
}

.aa .aa-check input:checked::before {
	transform: scale(1);
}

.aa .aa-check input:focus-visible {
	outline: 2px solid var(--aa-blue);
	outline-offset: 2px;
}

.aa-field--error .aa-check input {
	border-color: var(--aa-orange);
}

.aa-checks {
	display: grid;
	gap: 6px;
}

.aa-checks--cols {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 2px 20px;
}

/* Switch (newsletter) */
.aa-switch {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 18px 20px;
	border: 1px solid var(--aa-line);
	border-radius: var(--aa-r-notice);
	cursor: pointer;
}

.aa-switch__text strong {
	display: block;
	font-size: 15.5px;
}

.aa-switch__text span {
	display: block;
	margin-top: 2px;
	font-size: 14px;
	color: var(--aa-ink-2);
}

.aa .aa-switch input {
	position: relative;
	flex: none;
	width: 48px;
	height: 28px;
	margin: 0;
	border-radius: 999px;
	background: #b8c8d7;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
	transition: background-color .25s var(--aa-ease);
}

.aa .aa-switch input::before {
	content: "";
	position: absolute;
	top: 3px;
	left: 3px;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 1px 3px rgba(10, 37, 53, .3);
	transition: transform .3s var(--aa-ease);
}

.aa .aa-switch input:checked {
	background: var(--aa-teal);
}

.aa .aa-switch input:checked::before {
	transform: translateX(20px);
}

/* Selectable choice (payment method) */
.aa-choices {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
}

.aa-choice {
	position: relative;
	display: grid;
	grid-template-columns: auto 1fr;
	align-content: start;
	align-items: start;
	gap: 4px 14px;
	padding: 18px 20px;
	border: 1px solid var(--aa-line);
	border-radius: var(--aa-r-notice);
	background: var(--aa-white);
	cursor: pointer;
	transition: border-color .2s var(--aa-ease), box-shadow .2s var(--aa-ease), background-color .2s var(--aa-ease);
}

.aa-choice:hover {
	border-color: #9fb5c9;
}

.aa .aa-choice input {
	grid-row: 1 / span 2;
	width: 22px;
	height: 22px;
	margin: 1px 0 0;
	border: 1.5px solid #8ea6bc;
	border-radius: 50%;
	background: #fff;
	-webkit-appearance: none;
	appearance: none;
	cursor: pointer;
	transition: box-shadow .2s var(--aa-ease), border-color .2s var(--aa-ease);
}

.aa .aa-choice input:checked {
	border-color: var(--aa-blue);
	box-shadow: inset 0 0 0 5px var(--aa-blue);
}

.aa-choice:has(input:checked) {
	border-color: var(--aa-blue);
	background: #f7f9ff;
	box-shadow: 0 0 0 1px var(--aa-blue);
}

.aa-choice:has(input:focus-visible) {
	outline: 2px solid var(--aa-blue);
	outline-offset: 2px;
}

.aa-choice__title {
	display: flex;
	align-items: center;
	gap: 8px;
	font-weight: 700;
	font-size: 15.5px;
}

.aa-choice__title .aa-icon {
	color: var(--aa-slate);
}

.aa-choice__desc {
	font-size: 14px;
	line-height: 1.55;
	color: var(--aa-ink-2);
}

/* Callout used for instructions above forms */
.aa-callout {
	display: flex;
	gap: 14px;
	margin-bottom: 32px;
	padding: 18px 20px;
	border-radius: var(--aa-r-notice);
	background: var(--aa-mist-2);
	font-size: 14.5px;
	line-height: 1.6;
}

.aa-callout .aa-icon {
	width: 22px;
	height: 22px;
	color: var(--aa-blue);
}

/* Turnstile slot */
.aa-captcha {
	min-height: 65px;
}

.aa-form__foot {
	margin-top: 28px;
}

.aa-form__alt {
	margin-top: 22px;
	font-size: 14.5px;
	color: var(--aa-ink-2);
}

.aa-inline {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px 16px;
}

/* ------------------------------------------------------ membership types */

.aa-types {
	display: grid;
	border-top: 1px solid var(--aa-line-soft);
}

.aa-type {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	grid-template-areas:
		"name price"
		"desc price"
		"acts acts";
	gap: 6px 32px;
	padding: 26px 0;
	border-bottom: 1px solid var(--aa-line-soft);
}

.aa-type__name {
	grid-area: name;
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 19px;
	font-weight: 700;
	line-height: 1.3;
}

.aa-type__shape {
	flex: none;
	width: 22px;
	height: 22px;
	background: var(--aa-blue);
	border-radius: 22px 0 22px 22px;
}

.aa-type--organizational .aa-type__shape {
	background: var(--aa-ink);
	border-radius: 22px 22px 0 22px;
}

.aa-type--volunteer .aa-type__shape {
	background: var(--aa-teal);
	border-radius: 22px 22px 22px 0;
}

.aa-type__desc {
	grid-area: desc;
	max-width: 56ch;
	color: var(--aa-ink-2);
	font-size: 14.5px;
	padding-left: 34px;
}

.aa-type__price {
	grid-area: price;
	align-self: start;
	text-align: right;
	white-space: nowrap;
}

.aa-type__amount {
	display: block;
	font-size: 22px;
	font-weight: 700;
	line-height: 1.2;
	font-variant-numeric: tabular-nums;
}

.aa-type__per {
	font-size: 13px;
	color: var(--aa-ink-2);
}

.aa-type__acts {
	grid-area: acts;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 20px;
	margin-top: 12px;
	padding-left: 34px;
}

/* ------------------------------------------------------------ progress */

.aa-steps {
	display: grid;
	grid-template-columns: repeat(var(--aa-steps, 4), minmax(0, 1fr));
	margin: 28px 0 4px;
	counter-reset: aa-step;
}

.aa-step {
	position: relative;
	display: grid;
	gap: 4px;
	padding-top: 26px;
	padding-right: 12px;
	font-size: 13.5px;
	line-height: 1.4;
	color: var(--aa-ink-2);
}

.aa-step::before {
	content: "";
	position: absolute;
	top: 6px;
	left: 0;
	right: 0;
	height: 2px;
	background: var(--aa-line-soft);
}

.aa-step::after {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 14px;
	height: 14px;
	border-radius: 50%;
	border: 2px solid var(--aa-line);
	background: var(--aa-white);
}

.aa-step:last-child::before {
	right: auto;
	width: 14px;
}

.aa-step__label {
	font-weight: 600;
	color: var(--aa-ink-2);
}

.aa-step--done::before {
	background: var(--aa-teal);
}

.aa-step--done::after {
	border-color: var(--aa-teal);
	background: var(--aa-teal);
}

.aa-step--done .aa-step__label {
	color: var(--aa-ink);
}

.aa-step--current::after {
	border-color: var(--aa-blue);
	box-shadow: 0 0 0 4px rgba(51, 102, 255, .18);
}

.aa-step--current .aa-step__label {
	color: var(--aa-blue-ink);
}

/* ------------------------------------------------------ definition lists */

.aa-dl {
	display: grid;
	grid-template-columns: minmax(140px, 220px) minmax(0, 1fr);
	gap: 14px 24px;
}

.aa-dl dt {
	color: var(--aa-ink-2);
	font-size: 14px;
}

.aa-dl dd {
	min-width: 0;
	overflow-wrap: anywhere;
	white-space: pre-line;
}

.aa-dl--plain dd {
	white-space: normal;
}

/* Summary rows (overview, billing) */
.aa-rows {
	display: grid;
}

.aa-row {
	display: grid;
	grid-template-columns: 40px minmax(0, 1fr) auto;
	align-items: center;
	gap: 16px;
	padding: 16px 0;
	border-bottom: 1px solid var(--aa-line-soft);
}

.aa-row:first-child {
	border-top: 1px solid var(--aa-line-soft);
}

.aa-row__icon {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border-radius: 10px;
	background: var(--aa-mist);
	color: var(--aa-ink-2);
}

.aa-row__title {
	font-weight: 600;
}

.aa-row__meta {
	font-size: 14px;
	color: var(--aa-ink-2);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.aa .aa-row__link {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	min-height: 44px;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
}

.aa-row__link .aa-icon {
	width: 16px;
	height: 16px;
}

/* Profile photo */
.aa-photo {
	display: grid;
	grid-template-columns: 96px minmax(0, 1fr);
	gap: 22px;
	align-items: start;
	margin-bottom: 32px;
	padding-bottom: 28px;
	border-bottom: 1px solid var(--aa-line-soft);
}

.aa-photo__pic {
	display: grid;
	place-items: center;
	width: 96px;
	height: 96px;
	border-radius: 24px 24px 24px 6px;
	background: var(--aa-mist);
	color: var(--aa-ink-2);
	font-size: 28px;
	font-weight: 700;
	overflow: hidden;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}

.aa .aa-photo .aa-h2 {
	margin: 0 0 4px;
}

.aa-photo__form {
	margin-top: 14px;
}

.aa .aa-photo__file {
	display: block;
	max-width: 100%;
	font-size: 14px;
	color: var(--aa-ink-2);
}

.aa .aa-photo__file::file-selector-button {
	margin-right: 12px;
	padding: 8px 14px;
	border: 1px solid var(--aa-line);
	border-radius: var(--aa-r-control);
	background: var(--aa-white);
	color: var(--aa-ink);
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}

.aa-photo__acts {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 12px;
}

.aa-photo__acts .aa-icon {
	width: 18px;
	height: 18px;
}

.aa-id__photo {
	padding: 0;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}

/* Certificates and badges */
.aa-creds {
	display: grid;
	gap: 14px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.aa-cred {
	display: grid;
	grid-template-columns: 72px minmax(0, 1fr) auto;
	align-items: start;
	gap: 18px;
	padding: 20px;
	border: 1px solid var(--aa-line-soft);
	border-radius: var(--aa-r-surface);
	background: var(--aa-white);
}

.aa-cred__art {
	display: grid;
	place-items: center;
	width: 72px;
	height: 72px;
	border-radius: 14px;
	background: var(--aa-mist-2);
	color: var(--aa-ink-2);
	overflow: hidden;
	background-size: contain;
	background-position: center;
	background-repeat: no-repeat;
}

.aa-cred__art .aa-icon {
	width: 32px;
	height: 32px;
}

.aa-cred--expired .aa-cred__art,
.aa-cred--revoked .aa-cred__art {
	filter: grayscale(1);
	opacity: .55;
}

.aa-cred__type {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--aa-ink-2);
}

.aa .aa-cred__name {
	margin: 2px 0 0;
	font-size: 17px;
	font-weight: 700;
	line-height: 1.35;
	color: var(--aa-ink);
}

.aa-cred__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 14px;
	margin-top: 6px;
	font-size: 14px;
	color: var(--aa-ink-2);
}

.aa-cred__acts {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 18px;
	margin-top: 10px;
}

.aa .aa-cred__acts a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 36px;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
}

.aa-cred__acts .aa-icon {
	width: 16px;
	height: 16px;
}

/* Next step on the overview: part of the sheet's flow, no box. */
.aa-sheet__head + .aa-next {
	padding-top: 0;
	margin-top: 0;
	border-top: 0;
}

.aa-next .aa-text {
	margin-top: 6px;
}

.aa-next .aa-btn {
	margin-top: 20px;
}

/* Processing state */
.aa-pending {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 22px 24px;
	border-radius: var(--aa-r-notice);
	background: var(--aa-blue-tint);
}

.aa-pending__spin {
	flex: none;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	border: 3px solid rgba(51, 102, 255, .25);
	border-top-color: var(--aa-blue);
	animation: aa-spin .9s linear infinite;
}

/* Big status mark for terminal states (verified, sent) */
.aa-mark {
	display: grid;
	place-items: center;
	width: 56px;
	height: 56px;
	margin-bottom: 22px;
	border-radius: 18px 18px 18px 6px;
	background: var(--aa-blue-tint);
	color: var(--aa-blue);
}

.aa-mark .aa-icon {
	width: 28px;
	height: 28px;
}

.aa-mark--success {
	background: var(--aa-teal-tint);
	color: var(--aa-teal-ink);
}

.aa-mark--danger {
	background: var(--aa-orange-tint);
	color: var(--aa-orange-ink);
}

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

/* Small laptop (1024–1199): keep rail | sheet | card, narrower side columns. */
@media (max-width: 1199px) {
	.aa-shell {
		grid-template-columns: 184px minmax(0, 1fr) 248px;
		gap: 24px;
	}

	.aa-id {
		padding: 20px;
	}

	.aa .aa-nav__link {
		gap: 10px;
		padding: 10px 12px;
	}

	.aa-sheet {
		padding: 36px 36px 40px;
	}

	.aa-auth,
	.aa-auth--narrow {
		grid-template-columns: minmax(0, 1fr) 340px;
	}
}

/* Tablet (768–1023): rail and the full identity card share the left column. */
@media (max-width: 1023px) {
	.aa-shell {
		grid-template-columns: 220px minmax(0, 1fr);
		grid-template-areas:
			"nav main"
			"id main";
		grid-template-rows: auto 1fr;
		gap: 24px;
	}

	.aa-shell__nav,
	.aa-shell__id {
		position: static;
	}

	.aa-nav__foot {
		display: none;
	}

}

/* Phones: menu first, then the section, then the identity panel. */
@media (max-width: 767px) {
	.aa {
		font-size: 15px;
	}

	.aa-page {
		padding: 20px 0 72px;
	}

	.aa-shell {
		grid-template-columns: minmax(0, 1fr);
		grid-template-areas:
			"nav"
			"main"
			"id";
		gap: 20px;
	}

	.aa-shell__nav {
		position: static;
	}

	.aa-nav__list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 8px;
	}

	.aa .aa-nav__link {
		min-height: 52px;
		padding: 10px 12px;
		background: rgba(255, 255, 255, .7);
		border: 1px solid var(--aa-line-soft);
		font-size: 14.5px;
	}

	.aa .aa-nav__link[aria-current="page"] {
		background: var(--aa-ink);
		border-color: var(--aa-ink);
		color: #fff;
		box-shadow: none;
	}

	.aa .aa-nav__link[aria-current="page"] .aa-icon {
		color: #fff;
	}

	.aa-nav__foot {
		display: none;
	}

	.aa-sheet {
		padding: 24px 20px 28px;
		scroll-margin-top: 16px;
	}

	.aa-sheet__head {
		margin-bottom: 24px;
	}

	.aa-title {
		font-size: 24px;
	}

	.aa-lead {
		font-size: 15px;
	}

	.aa-section {
		padding-top: 26px;
		margin-top: 26px;
	}

	.aa-id {
		padding: 22px;
	}

	.aa-auth,
	.aa-auth--narrow {
		grid-template-columns: minmax(0, 1fr);
		gap: 20px;
	}

	.aa-auth__aside {
		position: static;
	}

	.aa-grid,
	.aa-choices,
	.aa-checks--cols {
		grid-template-columns: minmax(0, 1fr);
	}

	.aa-field--half {
		grid-column: 1 / -1;
	}

	.aa-actions .aa-btn {
		width: 100%;
	}

	.aa-type {
		grid-template-columns: minmax(0, 1fr);
		grid-template-areas:
			"name"
			"price"
			"desc"
			"acts";
		gap: 8px;
		padding: 22px 0;
	}

	.aa-type__price {
		text-align: left;
		padding-left: 34px;
	}

	.aa-type__amount {
		display: inline;
		font-size: 18px;
		margin-right: 4px;
	}

	.aa-type__acts .aa-btn {
		flex: 1;
	}

	.aa-steps {
		grid-template-columns: minmax(0, 1fr);
		gap: 0;
	}

	.aa-step {
		padding: 0 0 18px 30px;
	}

	.aa-step::before {
		top: 14px;
		bottom: 0;
		left: 6px;
		right: auto;
		width: 2px;
		height: auto;
	}

	.aa-step:last-child::before {
		display: none;
	}

	.aa-dl {
		grid-template-columns: minmax(0, 1fr);
		gap: 4px;
	}

	.aa-dl dd + dt {
		margin-top: 12px;
	}

	.aa-next .aa-btn {
		width: 100%;
	}

	.aa-row {
		grid-template-columns: 40px minmax(0, 1fr);
	}

	.aa-photo {
		grid-template-columns: 72px minmax(0, 1fr);
		gap: 16px;
	}

	.aa-photo__pic {
		width: 72px;
		height: 72px;
	}

	.aa-cred {
		grid-template-columns: 56px minmax(0, 1fr);
		gap: 14px;
		padding: 16px;
	}

	.aa-cred__art {
		width: 56px;
		height: 56px;
	}

	.aa-cred__status {
		grid-column: 2;
		grid-row: 1;
		justify-self: start;
	}

	.aa-cred__body {
		grid-column: 1 / -1;
	}

	.aa-row__link {
		grid-column: 2;
		margin-top: -8px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.aa *,
	.aa *::before,
	.aa *::after {
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .01ms !important;
	}

	.aa .aa-btn[aria-busy="true"]::before,
	.aa-pending__spin {
		animation: aa-spin 1.6s linear infinite !important;
	}
}

/* Email change disclosure */
.aa-disclosure > summary {
	list-style: none;
}

.aa-disclosure > summary::-webkit-details-marker {
	display: none;
}

.aa-disclosure[open] > summary {
	border-color: var(--aa-ink);
}

/* Principles declaration */
.aa-check__sub {
	display: block;
	margin-top: 2px;
	color: var(--aa-ink-2);
	font-size: 13.5px;
	line-height: 1.5;
}

.aa-check strong {
	font-weight: 600;
}

.aa-fieldset--principles .aa-checks {
	gap: 0;
	border-top: 1px solid var(--aa-line-soft);
}

.aa-fieldset--principles .aa-field {
	padding: 10px 0;
	border-bottom: 1px solid var(--aa-line-soft);
}

.aa-fieldset--sign .aa-checks {
	gap: 10px;
}

.aa-fieldset--sign .aa-field:last-child {
	margin-top: 10px;
	max-width: 420px;
}

/* Agreements: a list of ticks with the same rhythm as the signature block. */
.aa-fieldset--agreements .aa-checks {
	gap: 10px;
}

/* A section that ends with a textarea: its character counter is a caption, not content, so it does not
   add to the space before the next section. */
.aa-fieldset > .aa-grid > [data-aa-field]:last-child:has(> .aa-counter) {
	margin-bottom: -14px;
}

.aa-points {
	display: grid;
	gap: 12px;
	margin: 18px 0 0;
	padding: 0;
	list-style: none;
}

.aa-points li {
	display: flex;
	gap: 12px;
	line-height: 1.55;
}

.aa-points .aa-icon {
	flex: none;
	width: 20px;
	height: 20px;
	margin-top: 2px;
	color: var(--aa-teal);
}

.aa-section--attention,
.aa-section--attention:first-child {
	margin-top: 0;
	margin-bottom: 32px;
	padding: 20px 22px;
	border: 1px solid #f0d9a8;
	border-radius: var(--aa-r-notice);
	background: var(--aa-amber-tint);
}

.aa-section--attention + .aa-section {
	border-top: 0;
	padding-top: 0;
	margin-top: 0;
}

/* Every principle is required (said in the intro); the per-row asterisk would sit under the summary. */
.aa-fieldset--principles .aa-req {
	display: none;
}
