:root {
  --apma-red: #ab2d26;
  --apma-red-dark: #8f211c;
  --apma-blue: #152342;
  --apma-blue-soft: #23385f;
  --apma-ink: #343a40;
  --apma-muted: #626a74;
  --apma-light: #f6f6f3;
  --apma-line: #d9d9d2;
  --apma-white: #fff;
  --apma-success: #2f6a4f;
  --apma-warning: #8a5a17;
  --apma-danger: #9b2c2c;
  --shadow: 0 18px 46px rgba(21, 35, 66, .11);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--apma-ink); background: var(--apma-white); font-family: Arial, Helvetica, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 16px; line-height: 1.62; text-rendering: optimizeLegibility; }
a { color: var(--apma-blue); }
button, input, select, textarea { font: inherit; }
img { max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { color: var(--apma-blue); line-height: 1.18; }
h1 { font-size: clamp(2.2rem, 4.6vw, 4.2rem); letter-spacing: -.025em; }
h2 { font-size: clamp(1.5rem, 2.4vw, 2.25rem); }
h3 { font-size: 1.08rem; }
.container { width: min(1240px, calc(100% - 40px)); margin: 0 auto; }
.skip-link { position: fixed; left: 18px; top: -100px; z-index: 100; padding: 10px 14px; background: #fff; color: #000; }
.skip-link:focus { top: 18px; }

.site-header { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid rgba(21,35,66,.12); background: rgba(255,255,255,.97); backdrop-filter: blur(12px); }
.site-header__inner { width: min(1320px, calc(100% - 40px)); min-height: 82px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 14px; color: var(--apma-blue); text-decoration: none; font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.brand img { display: block; width: 150px; height: 52px; object-fit: contain; object-position: left center; }
.site-header nav { display: flex; align-items: center; gap: 22px; }
.site-header nav a, .nav-button { color: var(--apma-blue); background: transparent; border: 0; text-decoration: none; font-size: .82rem; font-weight: 700; text-transform: uppercase; white-space: nowrap; cursor: pointer; }
.site-header nav a:hover, .nav-button:hover { color: var(--apma-red); }
.nav-cta { padding: 11px 16px; border: 1px solid var(--apma-red); color: var(--apma-red) !important; }
.inline-form { display: inline; margin: 0; }

.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 13px; color: var(--apma-red); font-size: .73rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 38px; height: 2px; background: currentColor; }
.eyebrow--light { color: rgba(255,255,255,.9); }
.hero { color: #fff; background: var(--apma-blue); }
.hero--membership { position: relative; overflow: hidden; }
.hero--membership::after { content: ""; position: absolute; inset: 0 0 0 58%; opacity: .28; background: url('/assets/APMA/apma-keynote-stage.png') center/cover; mask-image: linear-gradient(90deg, transparent, #000 36%); }
.hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(330px, .6fr); gap: 70px; align-items: center; min-height: 690px; padding: 96px 0; }
.hero h1, .hero h2, .section--navy h2, .page-hero h1, .application-hero h1, .portal-hero h1 { color: #fff; }
.hero__lead { max-width: 760px; font-size: 1.1rem; line-height: 1.75; color: rgba(255,255,255,.88); }
.hero-card { padding: 34px; border: 1px solid rgba(255,255,255,.24); background: rgba(255,255,255,.08); box-shadow: 0 22px 54px rgba(0,0,0,.18); }
.hero-card span { display: block; margin-bottom: 12px; color: #d8dce6; font-size: .75rem; font-weight: 800; text-transform: uppercase; }
.hero-card strong { display: block; font-size: 1.25rem; line-height: 1.45; }
.hero-card ol { margin: 25px 0 0; padding-left: 22px; }
.hero-card li { margin: 9px 0; }

.button-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 12px 20px; border: 1px solid transparent; border-radius: 0; font-size: .78rem; font-weight: 800; letter-spacing: .02em; text-align: center; text-decoration: none; text-transform: uppercase; cursor: pointer; transition: .18s ease; }
.button:hover { transform: translateY(-1px); }
.button--primary { border-color: var(--apma-red); color: #fff; background: var(--apma-red); }
.button--primary:hover { border-color: var(--apma-red-dark); background: var(--apma-red-dark); }
.button--secondary { border-color: var(--apma-blue); color: var(--apma-blue); background: #fff; }
.button--ghost { border-color: rgba(255,255,255,.55); color: #fff; background: transparent; }
.button--large { width: 100%; min-height: 56px; }

.section { padding: 92px 0; }
.section--light { background: var(--apma-light); }
.section--navy { color: rgba(255,255,255,.86); background: var(--apma-blue); }
.section-heading { max-width: 820px; margin-bottom: 40px; }
.section-heading > p:last-child { color: var(--apma-muted); font-size: 1.06rem; }
.split { display: flex; align-items: center; justify-content: space-between; gap: 60px; }
.split > div { max-width: 850px; }
.pricing-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.pricing-card { position: relative; min-height: 440px; display: flex; flex-direction: column; padding: 30px 24px; border: 1px solid var(--apma-line); background: #fff; }
.pricing-card--featured { border-top: 5px solid var(--apma-red); box-shadow: var(--shadow); }
.pricing-card__flag { position: absolute; right: 15px; top: 15px; color: var(--apma-red); font-size: .64rem; font-weight: 800; text-transform: uppercase; }
.pricing-card h2 { margin-bottom: 0; font-size: 2rem; }
.price-term { color: var(--apma-muted); font-size: .8rem; font-weight: 700; text-transform: uppercase; }
.pricing-card .designation { padding: 10px; background: #f3e8e6; color: var(--apma-red-dark); font-size: .82rem; }
.pricing-card .button { margin-top: auto; }
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--apma-line); }
.process-grid article { min-height: 240px; padding: 28px; border-right: 1px solid var(--apma-line); background: #fff; }
.process-grid article:last-child { border-right: 0; }
.process-grid span { color: var(--apma-red); font-size: 1.55rem; font-weight: 800; }

.site-footer { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; padding: 45px max(20px, calc((100% - 1240px)/2)); border-top: 1px solid rgba(255,255,255,.1); color: rgba(255,255,255,.72); background: #101a31; font-size: .86rem; }
.site-footer strong { color: #fff; }

.account-utility { position: fixed; right: 18px; bottom: 18px; z-index: 30; display: flex; align-items: center; gap: 12px; padding: 10px 14px; border: 1px solid var(--apma-line); background: #fff; box-shadow: var(--shadow); font-size: .76rem; font-weight: 800; text-transform: uppercase; }
.account-utility form { margin: 0; }
.account-utility button { border: 0; padding: 0; color: var(--apma-red); background: transparent; cursor: pointer; font-size: inherit; font-weight: inherit; text-transform: inherit; }

.notice { margin: 0 0 22px; padding: 14px 16px; border-left: 4px solid var(--apma-blue-soft); color: var(--apma-blue); background: #edf1f7; }
.notice--error { border-color: var(--apma-danger); color: #6f1d1d; background: #f9eded; }
.auth-shell { min-height: calc(100vh - 82px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, .62fr); background: var(--apma-light); }
.auth-shell--single { display: block; padding: 80px 20px; }
.auth-panel { width: min(680px, calc(100% - 40px)); margin: auto; padding: 58px; background: #fff; box-shadow: var(--shadow); }
.auth-panel h1 { font-size: clamp(2rem, 4vw, 3.15rem); }
.auth-intro { color: var(--apma-muted); }
.auth-aside { display: flex; flex-direction: column; justify-content: center; padding: 70px; color: rgba(255,255,255,.82); background: var(--apma-blue); }
.auth-aside h2 { color: #fff; }
.auth-aside li { margin: 14px 0; }
.auth-aside__kicker { margin: 0 0 15px; color: #f08a82; font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.auth-foot { margin-top: 22px; }
.verification-advisory { margin: 24px 0; padding: 17px 19px; border-left: 4px solid var(--apma-red); background: #f5f7fa; }
.verification-advisory strong { color: var(--apma-blue); }
.verification-advisory p { margin: 5px 0 0; color: var(--apma-muted); font-size: .9rem; }
.form-stack { display: grid; gap: 18px; }
label { min-width: 0; max-width: 100%; display: grid; gap: 7px; color: var(--apma-blue); font-size: .82rem; font-weight: 800; overflow-wrap: anywhere; }
label > span, label small { color: var(--apma-muted); font-weight: 400; }
input, select, textarea { width: 100%; min-width: 0; max-width: 100%; border: 1px solid #bfc4ca; border-radius: 0; padding: 12px 13px; color: var(--apma-ink); background: #fff; }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(171,45,38,.15); border-color: var(--apma-red); }
textarea { resize: vertical; }
.check { display: grid; grid-template-columns: 20px 1fr; align-items: start; gap: 10px; font-weight: 400; line-height: 1.55; }
.check input { width: 18px; height: 18px; margin: 3px 0 0; }
.check .field-requirement, .check .field-error { grid-column: 2; }
.check a { overflow-wrap: anywhere; }
.legal-consent a { font-weight: 700; }
.legal-links { display: flex; flex-wrap: wrap; gap: 5px 16px; margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--apma-line); }
.legal-links a { color: var(--apma-muted); font-size: .72rem; font-weight: 700; }
.password-field { display: grid; gap: 9px; }
.password-strength { padding: 14px 15px; border: 1px solid var(--apma-line); background: #f8f9fb; }
.password-strength__heading { display: flex; justify-content: space-between; gap: 20px; color: var(--apma-muted); font-size: .72rem; }
.password-strength__heading strong { color: var(--apma-blue); }
.password-strength__track { height: 5px; margin: 9px 0 12px; overflow: hidden; background: #dce1e8; }
.password-strength__track span { display: block; width: 0; height: 100%; background: var(--apma-danger); transition: width .2s ease, background .2s ease; }
.password-strength[data-level="moderate"] .password-strength__track span { background: #b27824; }
.password-strength[data-level="strong"] .password-strength__track span { background: var(--apma-success); }
.password-requirements { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 18px; margin: 0; padding: 0; list-style: none; color: #757d88; font-size: .72rem; }
.password-requirements li::before { content: "○"; display: inline-block; width: 17px; color: #8e96a2; font-weight: 800; }
.password-requirements li.is-met { color: var(--apma-success); }
.password-requirements li.is-met::before { content: "✓"; color: var(--apma-success); }
.password-match { min-height: 20px; margin: -12px 0 0; font-size: .75rem; font-weight: 700; }
.password-match[data-state="match"] { color: var(--apma-success); }
.password-match[data-state="mismatch"] { color: var(--apma-danger); }
.turnstile-field { padding: 15px; border: 1px solid var(--apma-line); background: #f8f9fb; }
.turnstile-field p { margin: 9px 0 0; color: var(--apma-muted); font-size: .68rem; line-height: 1.5; }
.age-output, .form-display { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 48px; padding: 12px 14px; border: 1px solid var(--apma-line); color: var(--apma-blue); background: #f8f9fb; font-size: .82rem; font-weight: 800; }
.form-display { display: grid; align-content: center; }
.form-display span { color: var(--apma-muted); font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.field-requirement { width: fit-content; margin: 1px 0 2px; padding: 2px 7px; color: #fff; background: var(--apma-red); font-size: .61rem; font-weight: 800; letter-spacing: .05em; line-height: 1.5; text-transform: uppercase; }
.field-error { display: block; padding: 7px 9px; border-left: 3px solid var(--apma-danger); color: #7a1f1f; background: #fbeded; font-size: .75rem; font-weight: 700; line-height: 1.45; }
[aria-invalid="true"] { border-color: var(--apma-danger); box-shadow: 0 0 0 2px rgba(155,44,44,.1); }
.form-error-summary { margin: 0 0 24px; padding: 20px 22px; border: 2px solid var(--apma-danger); color: #6f1d1d; background: #fff4f3; }
.form-error-summary strong { color: #6f1d1d; }
.form-error-summary ul { margin: 10px 0 0; padding-left: 20px; }
.form-error-summary a { color: #6f1d1d; }
.character-count { display: block; margin-top: -2px; color: var(--apma-muted); font-size: .68rem; font-weight: 600; }
.character-count.is-short { color: var(--apma-danger); }
.verification-dialog { width: min(590px, calc(100% - 30px)); max-height: calc(100vh - 30px); padding: 0; border: 0; color: var(--apma-ink); background: #fff; box-shadow: 0 30px 90px rgba(0,0,0,.32); }
.verification-dialog::backdrop { background: rgba(4,14,34,.78); backdrop-filter: blur(4px); }
.verification-dialog__brand { padding: 24px 30px; border-top: 5px solid var(--apma-red); background: #071633; }
.verification-dialog__brand img { display: block; width: 260px; max-height: 74px; object-fit: contain; object-position: left center; }
.verification-dialog__body { padding: 34px 36px 38px; }
.verification-dialog__body h2 { margin-bottom: 14px; font-family: Georgia, "Times New Roman", serif; font-size: 2rem; font-weight: 600; }
.verification-dialog__body ol { margin: 22px 0; padding: 18px 18px 18px 40px; background: var(--apma-light); }
.verification-dialog__body li { margin: 7px 0; }
.verification-dialog__icon { width: 48px; height: 48px; display: grid; place-items: center; margin-bottom: 20px; border-radius: 50%; color: #fff; background: var(--apma-red); font-size: 1.3rem; }
.verification-dialog__note { color: var(--apma-muted); font-size: .82rem; }

.application-hero, .portal-hero, .page-hero { padding: 76px 0; color: rgba(255,255,255,.85); background: var(--apma-blue); }
.application-hero p, .portal-hero p { max-width: 800px; }
.application-progress { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.application-progress span { padding: 9px 13px; border: 1px solid rgba(255,255,255,.25); font-size: .72rem; font-weight: 700; }
.application-progress .is-current { border-color: var(--apma-red); background: var(--apma-red); }
.form-container { max-width: 1120px; }
.application-form { display: grid; gap: 24px; }
.application-form fieldset { min-width: 0; max-width: 100%; margin: 0; padding: 0 36px 36px; border: 1px solid var(--apma-line); background: #fff; box-shadow: 0 10px 30px rgba(21,35,66,.06); overflow: hidden; overflow-wrap: anywhere; }
.application-form legend { float: left; width: calc(100% + 72px); margin: 0 -36px 32px; padding: 24px 36px 22px; border-bottom: 4px solid var(--apma-red); color: #fff; background: var(--apma-blue); font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.2rem, 2vw, 1.55rem); font-weight: 600; line-height: 1.25; }
.application-form legend + * { clear: both; }
.application-form legend span { display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; margin-right: 14px; border: 1px solid rgba(255,255,255,.38); color: #fff; font-family: Arial, sans-serif; font-size: .9rem; font-weight: 800; vertical-align: middle; }
.fieldset-intro { max-width: 820px; color: var(--apma-muted); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.form-grid > * { min-width: 0; max-width: 100%; }
.form-grid__wide { grid-column: 1 / -1; }
.application-form label { margin-top: 18px; }
.form-note { margin: 16px 0 0; padding: 12px 14px; border-left: 3px solid var(--apma-red); color: var(--apma-muted); background: var(--apma-light); font-size: .88rem; }
.category-summary { min-width: 0; margin-top: 18px; padding: 20px; color: #fff; background: var(--apma-blue); overflow-wrap: anywhere; }
.category-summary strong, .category-summary span { display: block; }
.category-summary:empty { display: none; }
.conditional-fields { display: none; margin-top: 24px; padding: 22px; border: 1px solid var(--apma-line); background: #fafaf8; }
.conditional-fields.is-visible { display: block; }
.declaration-box { display: grid; gap: 16px; min-width: 0; margin-top: 20px; padding: 22px; border: 1px solid var(--apma-line); background: var(--apma-light); }
.submission-summary { margin: 26px 0; padding: 22px; border-left: 5px solid var(--apma-success); background: #edf5f1; }
.submission-summary strong { color: var(--apma-success); font-size: 1.15rem; }

.result-shell { max-width: 760px; min-height: 620px; margin: 0 auto; padding: 110px 30px; text-align: center; }
.result-icon { width: 76px; height: 76px; display: grid; place-items: center; margin: 0 auto 25px; border-radius: 50%; color: #fff; background: var(--apma-red); font-size: 1.7rem; font-weight: 800; }
.result-icon--success { background: var(--apma-success); box-shadow: 0 0 0 10px rgba(47,106,79,.1); }
.result-icon--error { background: var(--apma-danger); }
.verification-success, .verification-failure { display: grid; gap: 4px; max-width: 560px; margin: 28px auto; padding: 18px 20px; border-left: 4px solid var(--apma-success); color: var(--apma-success); background: #edf5f1; text-align: left; }
.verification-failure { border-color: var(--apma-danger); color: var(--apma-danger); background: #fff2f1; }
.verification-success span, .verification-failure span { color: var(--apma-muted); }
.portal-card { padding: 30px; border: 1px solid var(--apma-line); background: #fff; }
.portal-card--primary { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; border-top: 5px solid var(--apma-red); }
.portal-card--empty { text-align: center; padding: 70px 30px; }
.portal-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 18px; }
.timeline { margin: 0; padding: 0 0 0 18px; list-style: none; border-left: 2px solid var(--apma-line); }
.timeline li { position: relative; margin: 0 0 26px; padding-left: 20px; }
.timeline li::before { content: ""; position: absolute; left: -25px; top: 5px; width: 12px; height: 12px; border: 3px solid #fff; border-radius: 50%; background: var(--apma-red); box-shadow: 0 0 0 1px var(--apma-red); }
.timeline span { display: block; color: var(--apma-muted); font-size: .75rem; }
.timeline p { margin: 5px 0 0; }
.timeline--compact li { margin-bottom: 18px; }
.price-callout { color: var(--apma-red); font-size: 1.7rem; font-weight: 800; }
.member-record { display: grid; grid-template-columns: .85fr 1.15fr; gap: 32px; margin-bottom: 22px; padding: 34px; color: #fff; background: var(--apma-blue); }
.member-record h2 { color: #fff; }
.member-record dl { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0; }
.member-record dl div { padding: 13px; border: 1px solid rgba(255,255,255,.2); }
.member-record dt { color: rgba(255,255,255,.65); font-size: .72rem; text-transform: uppercase; }
.member-record dd { margin: 4px 0 0; font-weight: 800; }
.member-designation { display: inline-block; padding: 8px 13px; border: 1px solid #fff; font-size: 1.35rem; font-weight: 800; }
.membership-record-empty { display: flex; align-items: center; justify-content: space-between; gap: 28px; margin-bottom: 24px; padding: 28px 30px; border: 1px solid var(--apma-line); border-left: 5px solid var(--apma-red); background: #fff; }
.membership-record-empty h2 { margin-bottom: 5px; font-family: Georgia, "Times New Roman", serif; font-size: 1.55rem; font-weight: 600; }
.membership-record-empty p { margin-bottom: 0; color: var(--apma-muted); }
.status { display: inline-flex; width: fit-content; padding: 6px 9px; color: var(--apma-blue); background: #e9edf4; font-size: .68rem; font-weight: 800; text-transform: uppercase; }
.status--active { color: #fff; background: var(--apma-success); }
.status--approved_pending_payment { color: #fff; background: var(--apma-warning); }
.status--declined, .status--withdrawn { color: #fff; background: var(--apma-danger); }

.dashboard-shell { min-height: 100vh; display: grid; grid-template-columns: 248px minmax(0, 1fr); background: #f2f4f7; }
.dashboard-nav { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 34px 22px 26px; color: #fff; background: #071633; }
.dashboard-brand { display: grid; gap: 2px; padding: 0 12px 28px; border-bottom: 1px solid rgba(255,255,255,.13); color: #fff; text-decoration: none; }
.dashboard-brand strong { font-size: 1.8rem; letter-spacing: .08em; }
.dashboard-brand span { color: rgba(255,255,255,.6); font-size: .67rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.dashboard-nav nav { display: grid; gap: 5px; margin-top: 30px; }
.dashboard-nav nav a { padding: 13px 14px; border-left: 3px solid transparent; color: rgba(255,255,255,.7); font-size: .82rem; font-weight: 700; text-decoration: none; }
.dashboard-nav nav a:hover, .dashboard-nav nav a.is-active { border-left-color: var(--apma-red); color: #fff; background: rgba(255,255,255,.07); }
.dashboard-nav__legal { display: flex; gap: 14px; margin-top: auto; padding: 18px 12px; border-top: 1px solid rgba(255,255,255,.13); }
.dashboard-nav__legal a { color: rgba(255,255,255,.55); font-size: .68rem; }
.dashboard-nav > form { padding: 0 12px; }
.dashboard-nav > form button { width: 100%; padding: 11px 12px; border: 1px solid rgba(255,255,255,.28); color: #fff; background: transparent; font-weight: 800; cursor: pointer; }
.dashboard-main { min-width: 0; }
.dashboard-top { min-height: 112px; display: flex; align-items: center; justify-content: space-between; gap: 25px; padding: 22px clamp(24px, 4vw, 58px); border-bottom: 1px solid #dfe3e8; background: #fff; }
.dashboard-top h1 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 600; }
.dashboard-top .eyebrow { margin-bottom: 5px; }
.dashboard-account { display: flex; align-items: center; gap: 12px; text-align: right; }
.dashboard-account strong, .dashboard-account span { display: block; }
.dashboard-account span { color: var(--apma-muted); font-size: .72rem; }
.profile-avatar { width: 52px; height: 52px; flex: 0 0 auto; display: grid; place-items: center; overflow: hidden; border: 2px solid #fff; border-radius: 50%; color: #fff; background: var(--apma-red); box-shadow: 0 0 0 1px var(--apma-line); font-weight: 800; }
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-avatar--large { width: 112px; height: 112px; font-size: 1.45rem; }
.dashboard-return { padding: 10px 14px; border: 1px solid var(--apma-line); color: var(--apma-blue); font-size: .76rem; font-weight: 800; text-decoration: none; }
.dashboard-content, .profile-page { width: min(1240px, calc(100% - clamp(32px, 7vw, 96px))); margin: 0 auto; padding: 42px 0 70px; }
.dashboard-welcome { min-height: 265px; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(250px, .5fr); align-items: center; gap: 40px; padding: clamp(34px, 5vw, 62px); color: rgba(255,255,255,.78); background: linear-gradient(115deg, #071633, #102a57); box-shadow: 0 18px 44px rgba(7,22,51,.17); }
.dashboard-welcome h2 { max-width: 760px; margin-bottom: 14px; color: #fff; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.1rem, 4vw, 3.5rem); font-weight: 600; }
.dashboard-welcome p { max-width: 720px; }
.dashboard-welcome__status { display: grid; gap: 8px; padding: 24px; border: 1px solid rgba(255,255,255,.2); }
.dashboard-welcome__status > span, .dashboard-welcome__status small { color: rgba(255,255,255,.58); font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.dashboard-welcome__status strong { color: #fff; font-size: 1.03rem; }
.dashboard-welcome__status i { display: inline-grid; place-items: center; width: 22px; height: 22px; margin-right: 7px; border-radius: 50%; background: var(--apma-success); font-style: normal; }
.dashboard-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 24px 0; border: 1px solid var(--apma-line); background: #fff; }
.dashboard-metrics article { min-width: 0; padding: 24px 26px; border-right: 1px solid var(--apma-line); }
.dashboard-metrics article:last-child { border-right: 0; }
.dashboard-metrics span, .dashboard-metrics small, .dashboard-metrics strong { display: block; }
.dashboard-metrics span { color: var(--apma-muted); font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.dashboard-metrics strong { min-height: 52px; margin: 8px 0 4px; color: var(--apma-blue); font-family: Georgia, "Times New Roman", serif; font-size: 1.45rem; line-height: 1.15; }
.dashboard-metrics small { min-height: 34px; color: var(--apma-muted); }
.dashboard-metrics a { display: inline-block; margin-top: 13px; color: var(--apma-red); font-size: .76rem; font-weight: 800; }
.completion-track { height: 4px; margin: 10px 0 2px; background: #dfe4eb; }
.completion-track i { display: block; height: 100%; background: var(--apma-red); }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr); gap: 22px; }
.dashboard-panel { padding: 30px; border: 1px solid var(--apma-line); background: #fff; box-shadow: 0 6px 18px rgba(21,35,66,.035); }
.dashboard-panel > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 22px; margin-bottom: 25px; padding-bottom: 18px; border-bottom: 1px solid var(--apma-line); }
.dashboard-panel h2 { margin-bottom: 12px; font-family: Georgia, "Times New Roman", serif; font-size: 1.65rem; font-weight: 600; }
.dashboard-panel--timeline { grid-row: span 2; }
.dashboard-panel--renewal { border-top: 4px solid var(--apma-red); }
.dashboard-panel--renewal strong { display: block; color: var(--apma-blue); font-size: 1.05rem; }
.dashboard-panel--renewal a { color: var(--apma-red); font-weight: 800; }
.profile-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: 0 0 24px; background: var(--apma-line); }
.profile-summary div { padding: 12px; background: #fff; }
.profile-summary dt { color: var(--apma-muted); font-size: .65rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.profile-summary dd { margin: 4px 0 0; color: var(--apma-blue); font-weight: 700; overflow-wrap: anywhere; }
.profile-intro { min-height: 220px; display: flex; align-items: center; gap: 28px; margin-bottom: 24px; padding: 38px; color: rgba(255,255,255,.72); background: linear-gradient(115deg, #071633, #102a57); }
.profile-intro h2 { margin: 4px 0; color: #fff; font-family: Georgia, "Times New Roman", serif; font-size: 2.3rem; font-weight: 600; }
.profile-intro p { margin: 0 0 5px; }
.profile-intro span { font-size: .75rem; }
.profile-form { display: grid; gap: 24px; }
.profile-form__section { overflow: hidden; border: 1px solid var(--apma-line); background: #fff; box-shadow: 0 8px 24px rgba(21,35,66,.04); }
.profile-form__section > header { display: flex; align-items: center; gap: 20px; padding: 25px 32px; border-bottom: 4px solid var(--apma-red); color: #fff; background: var(--apma-blue); }
.profile-form__section > header > span { width: 44px; height: 44px; flex: 0 0 auto; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.38); font-size: .83rem; font-weight: 800; }
.profile-form__section > header h2 { margin: 0 0 4px; color: #fff; font-family: Georgia, "Times New Roman", serif; font-size: 1.45rem; font-weight: 600; }
.profile-form__section > header p { margin: 0; color: rgba(255,255,255,.68); font-size: .82rem; }
.profile-form__section > .form-grid { padding: 14px 32px 34px; }
.profile-form__submit { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 25px 30px; border-top: 4px solid var(--apma-red); background: #fff; box-shadow: 0 8px 24px rgba(21,35,66,.07); }
.profile-form__submit p { margin: 4px 0 0; color: var(--apma-muted); font-size: .8rem; }
.admin-user-identity { display: flex; align-items: center; gap: 22px; margin-bottom: 26px; padding-bottom: 24px; border-bottom: 1px solid var(--apma-line); }
.admin-profile-avatar { width: 96px; height: 96px; flex: 0 0 auto; object-fit: cover; border-radius: 50%; }
.admin-profile-avatar--empty { display: grid; place-items: center; color: var(--apma-muted); background: var(--apma-light); font-size: .7rem; }

.content-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.content-card { min-height: 260px; padding: 28px; border: 1px solid var(--apma-line); background: #fff; }
.content-card h2 { font-size: 1.35rem; }
.content-card h2 a { text-decoration: none; }
.article { width: min(880px, calc(100% - 40px)); margin: 0 auto; padding: 90px 0; }
.article header { padding-bottom: 30px; border-bottom: 1px solid var(--apma-line); }
.article__lead { color: var(--apma-muted); font-size: 1.18rem; }
.article-meta { display: flex; gap: 30px; }
.article-meta dt { color: var(--apma-muted); font-size: .72rem; text-transform: uppercase; }
.article-meta dd { margin: 3px 0 0; font-weight: 700; }
.article__body { padding: 30px 0; font-size: 1.06rem; line-height: 1.8; }

.admin-body { min-height: 100vh; display: grid; grid-template-columns: 270px 1fr; background: #f2f3f5; }
.admin-sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 28px 20px; color: #fff; background: #101a31; }
.admin-brand strong { display: block; color: #fff; font-size: 1.8rem; letter-spacing: .06em; }
.admin-brand span { color: rgba(255,255,255,.58); font-size: .7rem; text-transform: uppercase; }
.admin-sidebar nav { display: grid; gap: 4px; margin-top: 40px; }
.admin-sidebar nav a { padding: 11px 13px; color: rgba(255,255,255,.72); text-decoration: none; font-size: .83rem; font-weight: 700; }
.admin-sidebar nav a:hover, .admin-sidebar nav a.is-active { color: #fff; background: var(--apma-red); }
.admin-user { margin-top: auto; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.15); font-size: .75rem; }
.admin-user button { margin-top: 8px; padding: 0; border: 0; color: #fff; background: transparent; text-decoration: underline; cursor: pointer; }
.admin-main { min-width: 0; padding: 0 34px 50px; }
.admin-top { margin: 0 -34px 28px; padding: 24px 34px; border-bottom: 1px solid #ddd; background: #fff; }
.admin-top h1 { margin: 0; font-size: 1.8rem; }
.admin-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 22px; }
.admin-stats article { padding: 22px; border-left: 4px solid var(--apma-red); background: #fff; box-shadow: 0 5px 15px rgba(21,35,66,.05); }
.admin-stats span { display: block; color: var(--apma-muted); font-size: .78rem; }
.admin-stats strong { display: block; margin-top: 8px; color: var(--apma-blue); font-size: 2rem; }
.admin-panel { margin-bottom: 20px; padding: 25px; border: 1px solid #e0e1e3; background: #fff; box-shadow: 0 4px 15px rgba(21,35,66,.04); }
.admin-panel--narrow { max-width: 850px; }
.site-shell-editor fieldset { margin: 0; padding: 24px; border: 1px solid var(--apma-line); background: #fafaf8; }
.site-shell-editor legend { padding: 0 10px 0 0; color: var(--apma-blue); font-size: 1.08rem; font-weight: 800; }
.site-shell-editor fieldset > label + label { margin-top: 16px; }
.site-shell-editor .form-grid { margin-top: 16px; }
.site-shell-editor textarea { min-height: 96px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .82rem; }
.site-shell-editor__publish { position: sticky; bottom: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 18px 22px; border-top: 4px solid var(--apma-red); background: #fff; box-shadow: 0 -8px 24px rgba(21,35,66,.1); }
.site-shell-editor__publish p { max-width: 760px; margin: 0; }
.site-shell-editor__publish .button { flex: 0 0 auto; }
.admin-panel__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 18px; }
.admin-panel__head h2 { margin-bottom: 0; }
.admin-detail-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(330px, .6fr); gap: 20px; }
.admin-content-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .83rem; }
th, td { padding: 12px 10px; border-bottom: 1px solid #e3e4e6; text-align: left; vertical-align: top; }
th { color: var(--apma-muted); font-size: .69rem; text-transform: uppercase; }
td small { display: block; color: var(--apma-muted); }
.table-action { border: 0; padding: 0; color: var(--apma-red); background: transparent; font-weight: 700; text-decoration: none; cursor: pointer; }
.filters { display: flex; align-items: end; gap: 12px; margin-bottom: 22px; }
.filters label { min-width: 220px; }
.detail-list { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: 0 0 25px; background: var(--apma-line); }
.detail-list div { padding: 12px; background: #fff; }
.detail-list dt { color: var(--apma-muted); font-size: .68rem; text-transform: uppercase; }
.detail-list dd { margin: 4px 0 0; font-weight: 700; }
.review-statements { margin-top: 30px; }
.review-statements h3 { margin: 25px 0 7px; padding-bottom: 7px; border-bottom: 1px solid var(--apma-line); }
.admin-login { min-height: 100vh; display: grid; place-items: center; background: var(--apma-blue); }
.admin-login main { width: min(620px, calc(100% - 30px)); }
code { white-space: pre-wrap; font-size: .72rem; }
.email-preview { max-height: 520px; overflow: auto; margin: 18px 0 0; padding: 20px; border: 1px solid var(--apma-line); color: var(--apma-ink); background: var(--apma-light); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .78rem; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; }

@media (max-width: 1120px) {
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid article:nth-child(2) { border-right: 0; }
  .admin-detail-grid, .admin-content-grid { grid-template-columns: 1fr; }
  .dashboard-shell { grid-template-columns: 210px minmax(0, 1fr); }
  .dashboard-grid { grid-template-columns: 1fr; }
  .dashboard-panel--timeline { grid-row: auto; }
}

@media (max-width: 820px) {
  .site-header__inner { min-height: 72px; }
  .brand img { width: 118px; }
  .brand span { display: none; }
  .site-header nav { gap: 12px; }
  .site-header nav a:not(.nav-cta):nth-child(3), .site-header nav a:not(.nav-cta):nth-child(4) { display: none; }
  .hero__grid, .auth-shell, .portal-grid, .member-record { grid-template-columns: 1fr; }
  .hero__grid { gap: 30px; min-height: auto; padding: 80px 0; }
  .hero--membership::after { inset: 0; opacity: .15; mask-image: none; }
  .auth-aside { padding: 45px; }
  .form-grid, .content-grid { grid-template-columns: 1fr; }
  .split { align-items: flex-start; flex-direction: column; }
  .admin-body { display: block; }
  .admin-sidebar { position: relative; height: auto; }
  .admin-sidebar nav { grid-template-columns: repeat(3, 1fr); margin-top: 20px; }
  .admin-user { margin-top: 20px; }
  .admin-stats { grid-template-columns: repeat(2, 1fr); }
  .dashboard-shell { display: block; }
  .dashboard-nav { position: relative; height: auto; padding: 20px; }
  .dashboard-brand { padding-bottom: 17px; }
  .dashboard-nav nav { grid-template-columns: 1fr 1fr; margin-top: 16px; }
  .dashboard-nav__legal { display: none; }
  .dashboard-nav > form { margin-top: 14px; }
  .dashboard-top { min-height: 96px; }
  .dashboard-welcome { grid-template-columns: 1fr; }
  .dashboard-metrics { grid-template-columns: 1fr; }
  .dashboard-metrics article { border-right: 0; border-bottom: 1px solid var(--apma-line); }
  .dashboard-metrics article:last-child { border-bottom: 0; }
}

@media (max-width: 580px) {
  h1 { font-size: 2.2rem; }
  .container { width: min(100% - 28px, 1240px); }
  .site-header__inner { width: calc(100% - 24px); gap: 10px; }
  .site-header nav > a:first-child, .site-header nav > a:nth-child(3), .site-header nav > a:nth-child(4) { display: none; }
  .site-header nav { gap: 8px; }
  .site-header nav a, .nav-button { font-size: .68rem; }
  .section { padding: 65px 0; }
  .pricing-grid, .process-grid, .admin-stats { grid-template-columns: 1fr; }
  .process-grid article { border-right: 0; border-bottom: 1px solid var(--apma-line); }
  .application-progress { display: none; }
  .application-form fieldset { padding: 0 20px 25px; }
  .application-form legend { width: calc(100% + 40px); margin: 0 -20px 25px; padding: 19px 20px 17px; }
  .application-form legend span { min-width: 36px; min-height: 36px; margin-right: 9px; }
  .auth-panel { padding: 25px 20px; }
  .auth-panel { width: calc(100% - 24px); }
  .auth-aside { display: none; }
  .password-requirements { grid-template-columns: 1fr; }
  .verification-dialog__body { padding: 28px 22px 30px; }
  .account-utility { position: static; width: calc(100% - 28px); justify-content: space-between; margin: 28px auto; }
  .portal-card--primary, .admin-panel__head, .filters { align-items: flex-start; flex-direction: column; }
  .member-record dl, .detail-list { grid-template-columns: 1fr; }
  .site-footer { grid-template-columns: 1fr; gap: 20px; }
  .admin-sidebar nav { grid-template-columns: 1fr 1fr; }
  .admin-main { padding: 0 14px 30px; }
  .admin-top { margin: 0 -14px 20px; padding: 20px 14px; }
  .dashboard-nav nav { grid-template-columns: 1fr; }
  .dashboard-top { align-items: flex-start; flex-direction: column; }
  .dashboard-account { text-align: left; }
  .dashboard-content, .profile-page { width: calc(100% - 28px); padding-top: 25px; }
  .dashboard-welcome { padding: 30px 24px; }
  .profile-intro { align-items: flex-start; flex-direction: column; padding: 28px 24px; }
  .profile-form__section > header { align-items: flex-start; padding: 22px 20px; }
  .profile-form__section > .form-grid { padding: 8px 20px 26px; }
  .profile-form__submit { align-items: stretch; flex-direction: column; }
  .profile-summary { grid-template-columns: 1fr; }
  .membership-record-empty { align-items: flex-start; flex-direction: column; }
}
