/* ALFT public site: quiet typography, direct tasks, consistent surfaces. */
:root {
  --primary-dark: #122b43;
  --primary: #1b496a;
  --primary-light: #356b91;
  --primary-bg: #edf3f7;
  --color-text-primary: #182f43;
  --color-text-secondary: #5d6e7d;
  --color-text-tertiary: #637382;
  --color-border-tertiary: #dce3e8;
  --color-border-secondary: #c5d0d8;
  --border-radius-md: 6px;
  --border-radius-lg: 10px;
  --gold: #c3a675;
}
html { scroll-padding-top: 100px; }
body { background: #fff; font-size: 15px; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
a { color: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button, .primary-btn, .secondary-btn, .btn-white { min-height: 44px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 3px solid #397eb0; outline-offset: 4px; }
main:focus { outline: none; }
.alft-site { max-width: none; box-shadow: none; }
.skip-link { position: fixed; top: 8px; left: 16px; transform: translateY(-160%); padding: 12px 20px; background: white; z-index: 200; border: 2px solid var(--primary); border-radius: 6px; }
.skip-link:focus { transform: translateY(0); }
.topbar { padding: 9px max(5%, calc((100vw - 1160px) / 2)); background: #10263b; font-size: 11px; color: #d5dee7; letter-spacing: .02em; }
.topbar a { padding: 2px 0; }
.header { padding: 20px max(5%, calc((100vw - 1160px) / 2)); gap: 24px; flex-wrap: nowrap; border-bottom: 1px solid #e2e8ed; box-shadow: none; }
.brand { text-decoration: none; gap: 20px; flex-shrink: 0; }
.brand-mark { font-family: Arial, sans-serif; font-size: 38px; line-height: 1; font-weight: 800; letter-spacing: -2px; color: #17354e; position: relative; padding: 0 3px 7px 0; }
.brand-mark span { position: absolute; bottom: 0; left: 0; width: 30px; height: 3px; background: var(--gold); }
.brand-caption { display: flex; flex-direction: column; border-left: 1px solid #d4dde4; padding-left: 18px; }
.brand-name { font-size: 15px; color: #17354e; font-weight: 700; }
.brand-sub { font-size: 10px; margin-top: 4px; }
.nav-menu { gap: 7px; flex-wrap: nowrap; }
.nav-link { text-decoration: none; white-space: nowrap; font-size: 13px; padding: 10px 12px; }
.nav-link.active { color: var(--primary-dark); font-weight: 700; }
.nav-link.active::after { bottom: 0; left: 12px; right: 12px; background: var(--gold); }
.nav-cta { display: inline-flex; align-items: center; gap: 18px; min-height: 44px; text-decoration: none; font-size: 13px; background: var(--primary-dark); margin-left: 12px; }
.menu-toggle { display: none; }
.institution-hero { color: white; background: #152f47; padding: 68px max(5%, calc((100vw - 1160px) / 2)) 0; overflow: hidden; position: relative; }
.institution-hero::before { content: ''; position: absolute; width: 650px; height: 650px; right: -240px; top: -340px; border: 1px solid #30485c; border-radius: 50%; pointer-events: none; }
.hero-layout { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(36px, 6vw, 90px); align-items: center; padding-bottom: 58px; position: relative; }
.hero-kicker { font: 10px/1.7 Arial, sans-serif; letter-spacing: .14em; color: #cdd7df; padding-left: 36px; position: relative; margin-bottom: 26px; }
.hero-kicker::before { content: ''; width: 23px; height: 1px; background: var(--gold); position: absolute; left: 0; top: 8px; }
.institution-copy h1 { font-size: clamp(34px, 3.55vw, 48px); line-height: 1.5; font-weight: 600; letter-spacing: -.04em; margin: 0 0 18px; }
.institution-copy h1 span { color: #d9c19d; }
.institution-desc { color: #cbd5de; font-size: 15px; line-height: 1.95; margin-bottom: 28px; }
.institution-actions { display: flex; gap: 26px; align-items: center; }
.btn-white { text-decoration: none; border-radius: 5px; font-size: 13px; gap: 28px; padding: 13px 20px; font-weight: 600; }
.btn-white:hover { transform: none; background: #f4f2ed; box-shadow: none; }
.hero-text-link { text-decoration: none; font-size: 13px; color: #eef3f7; display: flex; gap: 16px; padding: 12px 0; }
.hero-text-link:hover { color: #d9c19d; }
.hero-principles { display: flex; gap: 0; margin-top: 35px; color: #bbcbd7; font-size: 12px; }
.hero-principles span + span { border-left: 1px solid #42576a; padding-left: 20px; margin-left: 20px; }
.hero-search-panel { background: #f7f7f3; color: var(--primary-dark); padding: 29px 32px 22px; border-radius: 9px; border-top: 3px solid #c3a675; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.panel-overline { font: 10px Arial, sans-serif; letter-spacing: .15em; color: #596a78; }
.panel-symbol { font-size: 27px; color: #8a7350; }
.hero-search-panel h2 { font-size: 27px; font-weight: 600; line-height: 1.5; margin-bottom: 10px; letter-spacing: -.02em; }
.hero-search-panel > p { font-size: 13px; line-height: 1.8; color: #667480; }
#home-search { margin-top: 23px; }
#home-search label { display: block; font-size: 11px; color: #566879; margin-bottom: 8px; }
.home-search-input { display: flex; align-items: center; gap: 10px; border: 1px solid #d5dde3; background: white; border-radius: 5px; padding: 0 13px; }
.home-search-input svg { flex-shrink: 0; color: #5e7586; }
.home-search-input input { min-width: 0; width: 100%; background: transparent; border: 0; padding: 13px 0; font-size: 13px; color: var(--primary-dark); }
.home-search-input:focus-within { outline: 2px solid #397eb0; outline-offset: 2px; }
.home-search-input input:focus { outline: none; }
#home-search .primary-btn { width: 100%; display: flex; justify-content: space-between; align-items: center; background: #1b496a; margin-top: 10px; padding: 12px 16px; }
.panel-secondary { display: flex; justify-content: space-between; gap: 10px; text-decoration: none; border-top: 1px solid #dce2e6; padding-top: 16px; margin-top: 20px; font-size: 12px; }
.panel-secondary:hover { text-decoration: underline; }
.hero-search-panel .panel-note { font-size: 10px; color: #637382; margin-top: 14px; }
.hero-caption { border-top: 1px solid #3b5062; display: flex; justify-content: space-between; color: #abbfce; font-size: 10px; padding: 16px 0; }
.hero-caption span:first-child { font-family: Arial, sans-serif; letter-spacing: .12em; }
.service-section, .journey-section { padding: 65px max(5%, calc((100vw - 1160px) / 2)); }
.section-heading-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.section-eyebrow { font-size: 11px; font-weight: 600; color: #6a7e8f; margin-bottom: 10px; letter-spacing: .04em; }
.section-heading-row h2, .standards-intro h2, .membership-banner h2 { font-size: 28px; font-weight: 600; line-height: 1.5; letter-spacing: -.02em; }
.section-heading-row > p { color: var(--color-text-secondary); font-size: 13px; padding-bottom: 5px; }
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.service-card { border: 1px solid #dce3e8; text-decoration: none; border-radius: 6px; padding: 22px; display: flex; flex-direction: column; background: #fff; transition: border-color .15s, background .15s; }
.service-card:hover { border-color: #8ba8bc; background: #f8fafb; }
.service-top { display: flex; justify-content: space-between; font: 9px Arial, sans-serif; letter-spacing: .06em; color: #687e8e; margin-bottom: 24px; }
.service-top span:last-child { font-size: 17px; line-height: .7; }
.service-icon { width: 32px; height: 32px; color: #3d627c; margin-bottom: 18px; }
.service-card h3 { font-size: 18px; font-weight: 600; margin-bottom: 9px; }
.service-card p { font-size: 12px; line-height: 1.9; color: #617180; flex: 1; }
.service-link { font-size: 11px; font-weight: 600; border-top: 1px solid #e6ebef; margin-top: 22px; padding-top: 15px; display: flex; justify-content: space-between; gap: 8px; }
.standards-section { background: #f2f5f7; padding: 54px max(5%, calc((100vw - 1160px) / 2)); display: grid; grid-template-columns: 1fr 1.3fr; gap: 65px; }
.standards-intro h2 { margin-bottom: 16px; font-size: 30px; }
.standards-intro > p:not(.section-eyebrow) { color: #617180; font-size: 13px; line-height: 1.9; margin-bottom: 22px; }
.text-link { text-decoration: none; color: #1b496a; font-size: 12px; font-weight: 600; display: inline-flex; gap: 26px; align-items: center; min-height: 44px; }
.text-link:hover { text-decoration: underline; }
.standards-list > div { display: flex; align-items: flex-start; gap: 22px; padding: 22px 0; border-bottom: 1px solid #dce3e8; }
.standards-list > div:first-child { padding-top: 6px; }
.standards-list > div:last-child { border-bottom: none; padding-bottom: 0; }
.standards-list > div > span { font: 13px Arial, sans-serif; color: #937950; margin-top: 4px; }
.standards-list h3 { font-size: 17px; font-weight: 600; margin-bottom: 6px; }
.standards-list p { font-size: 12px; color: #627281; line-height: 1.85; }
.journey-grid { display: grid; grid-template-columns: repeat(3, 1fr); list-style: none; margin-top: 34px; gap: 40px; }
.journey-grid li { border-top: 1px solid #d7e0e7; padding-top: 19px; }
.journey-number { font: 12px Arial, sans-serif; color: #856a42; }
.journey-grid h3 { font-size: 17px; font-weight: 600; margin: 12px 0 9px; }
.journey-grid p { font-size: 12px; line-height: 1.9; color: #647684; }
.membership-banner { background: #1b354d; color: #fff; padding: 38px max(5%, calc((100vw - 1160px) / 2)); display: flex; align-items: center; justify-content: space-between; gap: 26px; }
.membership-banner .section-eyebrow { color: #d4bd97; }
.membership-banner h2 { font-size: 25px; }
.membership-banner p:last-child { font-size: 12px; color: #c2cfd9; margin-top: 8px; }
.membership-banner .btn-white { flex-shrink: 0; }
.footer { background: #10263b; padding: 46px max(5%, calc((100vw - 1160px) / 2)) 22px; }
.footer-grid, .footer-bottom { max-width: none; }
.footer-bottom a { text-decoration: none; color: #b2c2ce; }
.footer-bottom a:hover { color: white; text-decoration: underline; }
.footer-link { min-height: 36px; }
.page-hero { padding: 42px max(5%, calc((100vw - 1100px) / 2)); background: #18354d; }
.page-hero h1 { font-size: clamp(26px, 3vw, 34px); line-height: 1.5; }
.page-hero p { color: #d3dde5; opacity: 1; line-height: 1.9; }
.content-section { padding: 42px max(5%, calc((100vw - 1100px) / 2)); }
.primary-btn:hover, .nav-cta:hover { transform: none; }
.secondary-btn { text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
.demo-notice { max-width: 1100px; margin: 0 auto 26px; background: #f5f7f9; border: 1px solid #dce3e8; border-left: 3px solid #a78d66; padding: 13px 17px; border-radius: 4px; color: #536777; font-size: 12px; line-height: 1.9; }
.sample-notice { background: #f5f7f9; border: 1px solid #dce3e8; border-left: 3px solid #a78d66; padding: 13px 17px; border-radius: 4px; color: #536777; font-size: 12px; line-height: 1.9; margin-bottom: 24px; }
.page-hero .section-eyebrow { color: #c5d4df; }
.directory-filters { display: grid; grid-template-columns: 2fr 1fr 1fr auto; gap: 14px; align-items: end; margin-bottom: 26px; }
.directory-filters label { display: block; font-size: 12px; font-weight: 600; margin-bottom: 7px; }
.results-count { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: 12px; color: #667888; margin-bottom: 14px; }
.member-list { display: grid; gap: 12px; }
.member-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 22px; border: 1px solid #dce3e8; border-radius: 8px; padding: 22px; }
.member-heading { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.member-heading h2 { font-size: 16px; font-weight: 600; }
.member-fields { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; font-size: 13px; }
.member-fields dt { font-size: 11px; color: #667888; margin-bottom: 4px; }
.member-fields dd { overflow-wrap: anywhere; }
.member-side { border-left: 1px solid #e1e7ec; padding-left: 24px; text-align: center; min-width: 136px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
.member-score { font-size: 27px; font-weight: 600; color: #2e6254; }
.member-score small { font-size: 11px; font-weight: 400; color: #667888; }
.sample-score-label { font-size: 10px; color: #667888; }
.empty-state { text-align: center; padding: 50px 20px; background: #f5f7f9; border: 1px solid #dce3e8; border-radius: 8px; }
.empty-state h2 { font-size: 20px; margin-bottom: 8px; }
.empty-state p { color: #667888; font-size: 13px; margin-bottom: 20px; }
dialog.modal-card { border: 1px solid #dce3e8; margin: auto; animation: none; color: var(--primary-dark); padding: 28px; }
dialog::backdrop { background: rgba(10,28,43,.6); }
.member-dialog-header { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; margin-bottom: 20px; }
.member-dialog-header h2 { font-size: 19px; line-height: 1.6; margin: 10px 0 5px; }
.member-dialog-id { font: 12px var(--font-mono); color: #667888; }
.member-dialog-qr { display: flex; align-items: center; gap: 26px; background: #f2f5f7; border-radius: 6px; padding: 20px; margin-bottom: 20px; }
.member-dialog-fields > div { display: flex; justify-content: space-between; gap: 20px; border-bottom: 1px solid #e1e7ec; padding: 10px 0; font-size: 13px; }
.member-dialog-fields dt { color: #667888; }
.member-dialog-fields dd { text-align: right; overflow-wrap: anywhere; }
.qr-fallback { font-size: 12px; line-height: 1.6; max-width: 160px; color: #536777; }
.info-page { max-width: 900px; margin: 0 auto; }
.info-page h2 { font-size: 22px; margin: 30px 0 12px; }
.info-page p { color: #5d6e7d; margin-bottom: 16px; line-height: 1.9; }
.info-page ul { padding-left: 24px; color: #5d6e7d; line-height: 2; margin: 12px 0 24px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.verify-form { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 12px; margin-bottom: 26px; }
.verify-form label { display: block; font-size: 12px; font-weight: 600; margin-bottom: 8px; }
.verification-details { display: grid; grid-template-columns: 180px 1fr; gap: 26px; align-items: start; }
.admin-mode .alft-site > .topbar, .admin-mode .alft-site > .header, .admin-mode .alft-site > .footer { display: none; }
@media (min-width: 1500px) { .institution-hero { padding-top: 82px; } .hero-layout { padding-bottom: 76px; } }
@media (max-width: 1200px) { .brand-caption { display: none; } .hero-layout { gap: 38px; } .institution-copy h1 { font-size: 37px; } .service-grid { gap: 12px; } .service-card { padding: 20px 17px; } }
@media (max-width: 1000px) {
  .header { flex-wrap: wrap; padding-top: 16px; padding-bottom: 16px; gap: 14px; }
  .brand-caption { display: flex; }
  .menu-toggle { display: inline-flex; align-items: center; gap: 12px; padding: 8px 12px; border: 1px solid #dce3e8; background: white; border-radius: 5px; font-size: 13px; margin-left: auto; }
  .nav-menu { display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 4px; padding-top: 12px; border-top: 1px solid #e1e7ec; overflow: visible; }
  .nav-menu.is-open { display: flex; }
  .nav-link { padding: 13px 12px; }
  .nav-link.active::after { display: none; }
  .nav-link.active { background: #edf3f7; }
  .nav-cta { margin: 8px 0 0; justify-content: space-between; padding: 13px 16px; }
  .institution-hero { padding-top: 46px; }
  .hero-layout { grid-template-columns: 1fr 1fr; gap: 28px; }
  .institution-copy h1 { font-size: 30px; }
  .desktop-break { display: none; }
  .institution-desc { font-size: 13px; }
  .hero-kicker { font-size: 8px; letter-spacing: .1em; }
  .hero-search-panel { padding: 24px; }
  .hero-search-panel h2 { font-size: 24px; }
  .institution-actions { gap: 18px; flex-wrap: wrap; }
  .service-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .standards-section { gap: 35px; }
  .directory-filters { grid-template-columns: 1fr 1fr; }
  .directory-filters > :first-child { grid-column: 1 / -1; }
  .directory-filters > button { grid-column: 1 / -1; }
  .member-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 2fr 1fr; gap: 26px; }
}
@media (max-width: 600px) {
  .topbar { font-size: 9px; justify-content: center; text-align: center; }
  .topbar > a { display: none; }
  .brand-mark { font-size: 32px; }
  .brand-caption { padding-left: 12px; }
  .brand { gap: 12px; }
  .brand-name { font-size: 13px; }
  .brand-sub { font-size: 9px; }
  .menu-toggle { font-size: 12px; gap: 8px; }
  .hero-layout { grid-template-columns: 1fr; gap: 32px; padding-bottom: 32px; }
  .institution-copy h1 { font-size: clamp(29px, 7.6vw, 37px); }
  .hero-kicker { font-size: 8px; margin-bottom: 20px; }
  .institution-desc { font-size: 14px; }
  .institution-actions { gap: 24px; }
  .hero-principles { margin-top: 26px; }
  .hero-search-panel { padding: 25px; }
  .hero-search-panel h2 br { display: none; }
  .hero-search-panel h2 { font-size: 25px; }
  .hero-caption { gap: 10px; font-size: 9px; }
  .service-section, .journey-section { padding-top: 40px; padding-bottom: 40px; }
  .section-heading-row { align-items: flex-start; flex-direction: column; gap: 12px; margin-bottom: 22px; }
  .section-heading-row h2, .standards-intro h2 { font-size: 25px; }
  .service-grid { gap: 12px; }
  .service-card { padding: 18px 15px; }
  .service-top { font-size: 8px; letter-spacing: 0; }
  .service-card h3 { font-size: 17px; }
  .service-card p { font-size: 11px; }
  .service-card br { display: none; }
  .service-link { font-size: 10px; }
  .standards-section { grid-template-columns: 1fr; gap: 28px; padding-top: 38px; padding-bottom: 38px; }
  .standards-intro h2 br { display: none; }
  .journey-grid { grid-template-columns: 1fr; gap: 24px; margin-top: 12px; }
  .membership-banner { flex-direction: column; align-items: flex-start; padding-top: 30px; padding-bottom: 30px; }
  .membership-banner h2 { font-size: 23px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .page-hero { padding-top: 30px; padding-bottom: 30px; }
  .page-hero p { font-size: 13px; }
  .content-section { padding-top: 28px; padding-bottom: 28px; }
  .member-row { grid-template-columns: 1fr; padding: 18px; gap: 18px; }
  .member-side { border-left: 0; border-top: 1px solid #e1e7ec; padding: 14px 0 0; flex-direction: row; justify-content: space-between; flex-wrap: wrap; }
  .member-side .primary-btn { margin-left: auto; }
  .member-heading h2 { font-size: 15px; }
  .form-row { grid-template-columns: 1fr; }
  #apply-form { padding: 22px !important; }
  .verify-form { grid-template-columns: 1fr; }
  .verification-details { grid-template-columns: 1fr; }
  dialog.modal-card { max-width: calc(100% - 28px); padding: 22px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
/* Account and membership workflow */
.auth-card { max-width:480px; margin:0 auto; padding:32px; background:white; border:1px solid var(--color-border-tertiary); border-radius:12px; display:grid; gap:12px; }
.auth-card label, .review-form label, .member-update-form label { font-weight:600; display:grid; gap:6px; }
.auth-card p { margin:0; font-size:13px; line-height:1.8; }
.account-actions { display:flex; flex-wrap:wrap; gap:12px; align-items:center; margin:14px 0; }
.account-actions a { text-decoration:none; }
.consent-row { display:flex; align-items:flex-start; gap:10px; line-height:1.7; font-size:14px; }
.consent-row input { flex:none; margin-top:6px; }
.form-feedback { min-height:24px; color:#854F0B; }
.application-code { overflow-wrap:anywhere; font-size:12px; }
.connection-notice { padding:20px; background:#fff5dc; color:#664719; text-align:center; }
.review-form, .member-update-form { display:grid; gap:14px; margin-top:20px; }
.auth-card button:disabled, .review-form button:disabled, .member-update-form button:disabled { opacity:.6; cursor:wait; }
@media (max-width:540px) { .auth-card { padding:22px 18px; } .account-actions .primary-btn { width:100%; text-align:center; } }
