/* Amiro Network: forms and member portal. Colours and fonts come from the theme (theme.json presets). */
.an-app { padding-block: clamp(2rem, 5vw, 4rem); }
.an-section { max-width: 760px; }
.an-narrow { max-width: 460px; }
/* Member area and registration use the theme's wide width; forms stay at a readable width. */
.an-app > .an-section.an-member, .an-app > .an-section.an-register { max-width: var(--wp--style--global--wide-size, 1240px); width: 100%; }
.an-app > .an-section.an-narrow { max-width: 460px; }
.an-member .an-form, .an-register .an-form { max-width: 880px; }
.an-member .an-lead, .an-register .an-lead { max-width: 72ch; }
.an-eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; font-weight: 600; opacity: .75; margin-bottom: .25rem; }
.an-lead { font-size: 1.05rem; }
.an-small { font-size: .9rem; }

.an-steps { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; list-style: none; padding: 0; margin: 1.5rem 0 2rem; counter-reset: an-step; font-size: .9rem; }
.an-steps li { counter-increment: an-step; opacity: .55; }
.an-steps li::before { content: counter(an-step); display: inline-grid; place-items: center; width: 1.6rem; height: 1.6rem; margin-right: .45rem; border-radius: 50%; border: 1px solid currentColor; font-weight: 600; }
.an-steps .is-current, .an-steps .is-done { opacity: 1; }
.an-steps .is-current { font-weight: 600; }
.an-steps .is-done::before { content: "✓"; }

.an-form { display: grid; gap: 1.1rem; margin-top: 1.25rem; }
.an-form--inline { margin-top: .5rem; }
.an-grid { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.an-field { display: grid; gap: .35rem; }
.an-field label { font-weight: 600; font-size: .95rem; }
.an-field input:not([type="checkbox"]):not([type="radio"]):not([type="file"]), .an-field select, .an-field textarea {
	width: 100%; box-sizing: border-box; padding: .7rem .8rem; font: inherit; color: inherit;
	background: #fff; border: 1px solid #c5ccd6; border-radius: 6px;
}
.an-field input:focus-visible, .an-field select:focus-visible, .an-field textarea:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.an-field--check { grid-template-columns: auto 1fr; align-items: start; column-gap: .6rem; }
.an-field--check input { margin-top: .25rem; width: 1.1rem; height: 1.1rem; }
.an-field--check label { font-weight: 400; }
.an-field--check .an-error { grid-column: 1 / -1; }
.an-req { color: #b32d2e; }
.an-help { margin: 0; font-size: .85rem; opacity: .75; }
.an-error { margin: 0; font-size: .875rem; color: #b32d2e; font-weight: 600; }
.has-error input, .has-error select, .has-error textarea { border-color: #b32d2e; }
.an-actions { margin: .5rem 0 0; }
.an-button { cursor: pointer; }
.an-button--secondary { background: transparent; color: inherit; border: 1px solid currentColor; }

.an-notice { padding: .85rem 1rem; border-radius: 6px; border-left: 4px solid; margin: 1rem 0; }
.an-notice--error { background: #fcf0f1; border-color: #b32d2e; color: #5e1112; }
.an-notice--success { background: #edf7ee; border-color: #2e7d32; color: #183d1a; }

.an-card { border: 1px solid #dde2e8; border-radius: 10px; padding: clamp(1.25rem, 3vw, 2rem); background: #fff; }
.an-card h2 { margin-top: 0; }

/* Member portal: user bar and tabs */
.an-member { --an-primary: var(--wp--preset--color--primary, #0077bb); --an-soft: var(--wp--preset--color--primary-soft, #e8f3fa); --an-border: var(--wp--preset--color--border, #dde5ee); --an-muted: var(--wp--preset--color--muted, #5e6e80); --an-ink: var(--wp--preset--color--ink, #0b2540); }
.an-portal-bar { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .85rem 1rem; margin-bottom: 1rem; background: var(--wp--preset--color--surface, #f4f7fa); border: 1px solid var(--an-border); border-radius: 12px; }
.an-portal-user { display: flex; align-items: center; gap: .8rem; min-width: 0; }
.an-avatar { flex: none; display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%; background: var(--an-primary); color: #fff; font-weight: 700; font-size: .95rem; letter-spacing: .02em; }
.an-portal-user__text { display: grid; line-height: 1.3; min-width: 0; }
.an-portal-user__name { font-weight: 700; color: var(--an-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.an-portal-user__meta { font-size: .875rem; color: var(--an-muted); }
.an-pill { display: inline-block; margin-left: .35rem; padding: .05rem .55rem; border-radius: 999px; font-size: .75rem; font-weight: 600; vertical-align: 1px; }
.an-pill--ok { background: #e3f4e5; color: #1f6a28; }

.an-member a.an-logout { padding: .45rem .95rem; border: 1px solid var(--an-border); border-radius: 8px; background: #fff; color: var(--an-ink); font-size: .9rem; font-weight: 600; text-decoration: none; white-space: nowrap; flex: none; }
.an-member a.an-logout:hover, .an-member a.an-logout:focus-visible { border-color: var(--an-primary); color: var(--an-primary); }
.an-tabs { margin: 0 0 2rem; border-bottom: 1px solid var(--an-border); overflow-x: auto; scrollbar-width: none; }
.an-tabs ul { display: flex; gap: .1rem; list-style: none; padding: 0; margin: 0; min-width: max-content; }
.an-member .an-tabs a { display: flex; align-items: center; gap: .35rem; padding: .7rem .65rem; margin-bottom: -1px; border-bottom: 3px solid transparent; color: var(--an-muted); font-weight: 600; font-size: .925rem; text-decoration: none; border-radius: 8px 8px 0 0; white-space: nowrap; }
.an-member .an-tabs a:hover { color: var(--an-ink); background: var(--an-soft); }
.an-tabs a:focus-visible { outline: 2px solid var(--an-primary); outline-offset: -2px; }
.an-member .an-tabs a[aria-current="page"] { color: var(--an-primary); border-bottom-color: var(--an-primary); }
.an-count { display: inline-grid; place-items: center; min-width: 1.3rem; height: 1.3rem; padding: 0 .35rem; border-radius: 999px; background: var(--an-primary); color: #fff; font-size: .75rem; font-weight: 700; }
@media (max-width: 600px) {
	.an-portal-bar { padding: .7rem .75rem; }
	.an-avatar { width: 2.2rem; height: 2.2rem; font-size: .85rem; }
	.an-member a.an-logout { padding: .4rem .7rem; font-size: .85rem; }
	.an-tabs { border-bottom: 0; overflow: visible; }
	.an-tabs ul { flex-wrap: wrap; min-width: 0; gap: .4rem; }
	.an-member .an-tabs a { padding: .45rem .75rem; margin: 0; border: 1px solid var(--an-border); border-radius: 999px; font-size: .875rem; }
	.an-member .an-tabs a[aria-current="page"] { background: var(--an-primary); border-color: var(--an-primary); color: #fff; }
	.an-member .an-tabs a[aria-current="page"] .an-count { background: #fff; color: var(--an-primary); }
}

.an-hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Interest forms */
.an-subhead { margin: 1.5rem 0 0; padding-top: 1rem; border-top: 1px solid #dde2e8; font-size: 1.25rem; }
.an-choices { border: 0; padding: 0; margin: 0; }
.an-choices legend { font-weight: 600; font-size: .95rem; margin-bottom: .35rem; padding: 0; }
.an-choices__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .35rem 1rem; }
.an-choices__list label, .an-picker__shortcuts label, .an-picker__all { font-weight: 400; display: flex; gap: .45rem; align-items: flex-start; }
.an-choices__list input, .an-picker__shortcuts input, .an-picker__all input { margin-top: .2rem; }
.an-picker__group { border: 1px solid #dde2e8; border-radius: 6px; padding: .55rem .8rem; margin-top: .45rem; }
.an-picker__group summary { cursor: pointer; font-weight: 600; }
.an-picker__group[open] summary { margin-bottom: .5rem; }
.an-picker__all { margin-bottom: .5rem; font-style: italic; }
.an-picker__shortcuts { display: flex; flex-wrap: wrap; gap: .35rem 1rem; align-items: center; margin: .25rem 0 .5rem; font-size: .9rem; }
.an-picker__shortcuts > span { font-weight: 600; }
.an-picker__count { font-weight: 600; }
.an-badge { display: inline-block; min-width: 1.4rem; padding: 0 .4rem; border-radius: 1rem; background: #0b1f3a; color: #fff; font-size: .75rem; text-align: center; }
.an-files { margin: .25rem 0 0; padding-left: 1.1rem; }
.an-actions--split { display: flex; flex-wrap: wrap; gap: .75rem; }
.has-error.an-choices legend, .has-error.an-picker legend { color: #b32d2e; }

/* Opportunities */
.an-lead { max-width: 60ch; }
.an-opportunity { margin-block: 1.25rem; }
.an-opportunity--muted { opacity: .75; }
.an-opportunity--success { border-color: #2e7d32; }
.an-facts { display: grid; grid-template-columns: minmax(8rem, max-content) 1fr; gap: .35rem 1rem; margin: 1rem 0; }
.an-facts dt { font-weight: 600; }
.an-facts dd { margin: 0; }
.an-decline summary { cursor: pointer; margin-block: .5rem; text-decoration: underline; }
.an-decline select, .an-decline textarea { width: 100%; max-width: 32rem; }
.an-status { font-weight: 600; }
.an-status--success { color: #2e7d32; }

/* Introductions */
.an-intro h3 { margin-top: 1.5rem; }
.an-team-message { border-left: 3px solid currentColor; padding: .25rem 1rem; margin: 1rem 0; }
.an-contacts, .an-files { padding-left: 1.1rem; }
.an-contacts li, .an-files li { margin-block: .4rem; }
.an-check { display: flex; gap: .5rem; align-items: flex-start; }

/* Portal sections (F3) */
.an-subhead--plain { border-top: 0; padding-top: 0; margin-top: 0; }
.an-steps-list { list-style: none; padding: 0; margin: 0 0 2rem; display: grid; gap: .6rem; }
.an-step-item { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: .85rem 1rem; border: 1px solid var(--an-border, #dde5ee); border-left: 4px solid var(--an-primary, #0077bb); border-radius: 8px; background: #fff; }
.an-member .wp-element-button.an-button--small { padding: .4rem .9rem; font-size: .875rem; line-height: 1.4; border-radius: 6px; }
.an-member .wp-element-button.an-button--secondary, .an-app .wp-element-button.an-button--secondary { background: #fff; color: var(--an-primary, #0077bb); border: 1px solid currentColor; }
.an-member .wp-element-button.an-button--secondary:hover, .an-app .wp-element-button.an-button--secondary:hover { background: var(--an-soft, #e8f3fa); }
.an-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: .75rem; margin: 1.5rem 0 1rem; }
.an-member a.an-stat { display: grid; gap: .2rem; padding: 1rem 1.1rem; border: 1px solid var(--an-border, #dde5ee); border-radius: 10px; background: #fff; color: var(--an-ink, #0b2540); text-decoration: none; }
.an-member a.an-stat:hover { border-color: var(--an-primary, #0077bb); }
.an-stat strong { font-size: 1.75rem; line-height: 1.1; }
.an-stat span { font-size: .875rem; color: var(--an-muted, #5e6e80); }
.an-interest { margin-block: 1rem; }
.an-interest__head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.an-interest__head h2 { margin: 0; font-size: 1.35rem; }
.an-interest--closed { opacity: .7; }
.an-facts--compact { margin: .75rem 0; font-size: .925rem; }
.an-interest__actions { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; margin-top: 1rem; }
.an-inline { display: inline-flex; align-items: center; gap: .6rem; margin: 0; }
.an-link-button { background: none; border: 0; padding: 0; color: #b32d2e; font: inherit; font-size: .9rem; text-decoration: underline; cursor: pointer; }
.an-files--actions li { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.an-cancel { margin-left: .75rem; font-size: .9rem; }
.an-pill--submitted, .an-pill--draft, .an-pill--needs_info { background: #fff4d6; color: #7a5a00; }
.an-pill--active { background: #e3f4e5; color: #1f6a28; }
.an-pill--paused, .an-pill--closed { background: #eceff3; color: #5e6e80; }
.an-member h2.an-subhead { font-size: 1.35rem; margin-top: 2.5rem; }
.an-member h2.an-subhead--plain { margin-top: 0; }
.an-choices__list input[type="radio"] { width: 1.05rem; height: 1.05rem; flex: none; margin: .2rem 0 0; }
.an-field input[type="file"] { width: 100%; padding: .55rem; border: 1px dashed #c5ccd6; border-radius: 6px; background: #fff; font: inherit; font-size: .9rem; box-sizing: border-box; }
.an-picker { border: 1px solid #dde2e8; border-radius: 10px; padding: .75rem 1rem 1rem; margin: 0; min-width: 0; }
.an-picker legend { padding: 0 .4rem; font-weight: 600; font-size: .95rem; }
.has-error.an-picker { border-color: #b32d2e; }
/* Account */
.an-account { margin-block: 1rem; }
.an-member .an-account h2 { margin: 0 0 .75rem; font-size: 1.25rem; }
.an-member .an-account h3 { margin: 1.5rem 0 .5rem; font-size: 1.05rem; }
.an-more summary { cursor: pointer; font-weight: 600; color: var(--an-primary, #0077bb); margin-block: .25rem; }
.an-more[open] summary { margin-bottom: .5rem; }
.an-notice--info { background: var(--an-soft, #e8f3fa); border-color: var(--an-primary, #0077bb); color: var(--an-ink, #0b2540); display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; }
.an-member .wp-element-button.an-button--danger { background: #b32d2e; color: #fff; border-color: #b32d2e; }

/* Wide layout: cards side by side where there is room */
.an-card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 520px), 1fr)); gap: 1rem 1.25rem; align-items: start; }
.an-card-grid > .an-card { margin: 0; }
.an-member .an-account { max-width: 880px; }
.an-member .an-steps-list { max-width: 980px; }
.an-member .an-intro { max-width: 980px; }
.an-member .an-card-grid { margin-top: 1.25rem; }
