/* FREG Members — sign in, account, avatar menu. Brand: purple #69226a, green #4fb249. */
.fam-av { width: var(--fam-av, 40px); height: var(--fam-av, 40px); border-radius: 50%; object-fit: cover; display: inline-block; flex: 0 0 auto; background: #f5eef5; }
img.fam-av { width: auto; }
.fam-av-initials { display: inline-flex; align-items: center; justify-content: center; font: 700 calc(var(--fam-av, 40px) * 0.38)/1 Montserrat, system-ui, sans-serif; letter-spacing: 0.02em; color: #fff; background: linear-gradient(135deg, #8a3a8b, #69226a); }

/* ---------- header account menu ---------- */
.fam-acct { position: relative; display: flex; align-items: center; margin-left: 10px; }
.fam-acct-btn { all: unset; box-sizing: border-box; display: inline-flex; align-items: center; gap: 10px; padding: 4px 12px 4px 4px; border-radius: 999px; border: 1px solid #e6e6ea; background: #fff; cursor: pointer; font: 600 14px/1 Montserrat, system-ui, sans-serif; color: #212934; transition: border-color .15s, box-shadow .15s; }
.fam-acct-btn:hover, .fam-acct-btn[aria-expanded="true"] { border-color: #69226a; box-shadow: 0 0 0 3px rgba(105, 34, 106, 0.1); }
.fam-acct-btn:focus-visible { outline: 2px solid #69226a; outline-offset: 2px; }
.fam-acct-btn img.fam-av, .fam-acct-btn .fam-av { width: 36px; height: 36px; --fam-av: 36px; }
.fam-acct-caret { width: 12px; height: 8px; color: #7a7f88; transition: transform .15s; }
.fam-acct-btn[aria-expanded="true"] .fam-acct-caret { transform: rotate(180deg); }
.fam-acct-menu { position: absolute; right: 0; top: calc(100% + 10px); z-index: 1000; width: 290px; padding: 8px; background: #fff; border: 1px solid #e6e6ea; border-radius: 16px; box-shadow: 0 24px 60px rgba(33, 41, 52, 0.18), 0 2px 6px rgba(33, 41, 52, 0.06);
	opacity: 0; transform: translateY(-6px) scale(.98); transform-origin: top right; transition: opacity .14s ease, transform .14s ease; }
.fam-acct-menu[hidden] { display: block; visibility: hidden; pointer-events: none; }
.fam-acct-menu.is-open { opacity: 1; transform: none; visibility: visible; pointer-events: auto; }
.fam-acct-head { display: flex; align-items: center; gap: 12px; padding: 10px 10px 14px; margin-bottom: 6px; border-bottom: 1px solid #efeff2; }
.fam-acct-head img.fam-av, .fam-acct-head .fam-av { width: 44px; height: 44px; --fam-av: 44px; }
.fam-acct-head div { min-width: 0; display: flex; flex-direction: column; gap: 2px; font-family: Montserrat, system-ui, sans-serif; }
.fam-acct-head strong { font-size: 15px; color: #212934; line-height: 1.3; }
.fam-acct-head span { font-size: 12.5px; color: #7a7f88; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fam-acct-head em { align-self: flex-start; margin-top: 4px; font-style: normal; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #69226a; background: #f5eef5; padding: 3px 8px; border-radius: 999px; }
.fam-acct-menu a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; font: 600 14px/1.2 Montserrat, system-ui, sans-serif; color: #212934 !important; text-decoration: none !important; }
.fam-acct-menu a svg { width: 18px; height: 18px; color: #7a7f88; flex: 0 0 auto; }
.fam-acct-menu a:hover, .fam-acct-menu a:focus-visible { background: #f6f4f8; outline: none; }
.fam-acct-menu a:hover svg, .fam-acct-menu a:focus-visible svg { color: #69226a; }
.fam-acct-menu hr { border: 0; border-top: 1px solid #efeff2; margin: 6px 4px; }
.fam-acct-menu a.fam-acct-out { color: #b23a3a !important; }
.fam-acct-menu a.fam-acct-out svg { color: #b23a3a; }
/* inside Astra's phone menu: no floating panel, just the list */
.ast-header-break-point .fam-acct { display: block; margin: 8px 0 0; padding: 0 20px 12px; }
.ast-header-break-point .fam-acct-btn { display: none; }
.ast-header-break-point .fam-acct-menu, .ast-header-break-point .fam-acct-menu[hidden] { position: static; width: auto; opacity: 1; transform: none; visibility: visible; pointer-events: auto; box-shadow: none; border-radius: 14px; }
@media (min-width: 922px) { .fam-acct-name { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } }

/* ---------- sign in / reset / register ---------- */
.fam-auth { min-height: 62vh; display: flex; align-items: center; justify-content: center; padding: 48px 16px; background: radial-gradient(80% 60% at 50% 0%, #f5eef5 0%, rgba(245, 238, 245, 0) 70%); }
.fam-auth-card { width: 100%; max-width: 440px; background: #fff; border: 1px solid #ececf0; border-radius: 22px; padding: 36px 32px; box-shadow: 0 24px 60px rgba(33, 41, 52, 0.08); font-family: Montserrat, system-ui, sans-serif; }
.fam-auth-brand { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #4fb249; margin-bottom: 18px; }
.fam-auth-mark { color: #69226a; }
.fam-auth-card h1 { font-family: 'Zilla Slab', Georgia, serif; font-size: 34px; line-height: 1.1; color: #69226a; margin: 0 0 6px; }
.fam-auth-sub { color: #6b7079; margin: 0 0 24px; font-size: 15px; line-height: 1.55; }
.fam-auth-form { display: flex; flex-direction: column; gap: 16px; }
.fam-f { display: flex; flex-direction: column; gap: 7px; margin: 0; }
.fam-f > span { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 13px; font-weight: 600; color: #4a4e57; }
.fam-f > span em { font-style: normal; font-weight: 400; color: #8a8f98; }
.fam-f > span a { font-weight: 600; color: #69226a; text-decoration: none; }
.fam-f input, .fam-f textarea { width: 100%; box-sizing: border-box; border: 1px solid #d5d7dd; border-radius: 12px; padding: 12px 14px; font: 16px/1.3 Montserrat, system-ui, sans-serif; color: #212934; background: #fff; transition: border-color .15s, box-shadow .15s; }
.fam-f input:focus, .fam-f textarea:focus { outline: none; border-color: #69226a; box-shadow: 0 0 0 3px rgba(105, 34, 106, 0.14); }
.fam-pw { position: relative; display: block; }
.fam-pw input { padding-right: 70px; }
.fam-pw-toggle { all: unset; position: absolute; right: 8px; top: 50%; transform: translateY(-50%); padding: 6px 10px; border-radius: 8px; font-size: 13px; font-weight: 600; color: #69226a; cursor: pointer; }
.fam-pw-toggle:hover { background: #f5eef5; }
.fam-check { display: flex; align-items: center; gap: 10px; font-size: 14px; color: #4a4e57; margin: 0; }
.fam-check input { width: 18px; height: 18px; accent-color: #69226a; }
.fam-auth-btn, a.fam-auth-btn { all: unset; box-sizing: border-box; display: block; width: 100%; text-align: center; padding: 15px 20px; border-radius: 14px; background: #69226a; color: #fff !important; font: 700 16px/1.2 Montserrat, system-ui, sans-serif; cursor: pointer; text-decoration: none !important; transition: background .15s, transform .15s, box-shadow .15s; }
.fam-auth-btn:hover { background: #521a53; box-shadow: 0 10px 24px rgba(105, 34, 106, 0.25); }
.fam-auth-btn:focus-visible { outline: 2px solid #69226a; outline-offset: 3px; }
.fam-auth-foot { margin: 22px 0 0; text-align: center; font-size: 14px; color: #6b7079; }
.fam-auth-foot a { color: #69226a; font-weight: 600; }
.fam-auth-alert, .fam-auth-ok { border-radius: 12px; padding: 12px 14px; margin-bottom: 18px; font: 600 14px/1.45 Montserrat, system-ui, sans-serif; }
.fam-auth-alert { background: #fbeaea; color: #9b2c2c; }
.fam-auth-ok { background: #e7f4ec; color: #1f5f37; }

/* ---------- my account ---------- */
.fam-acc-wrap { max-width: 860px; margin: 0 auto; padding: 48px 20px 72px; font-family: Montserrat, system-ui, sans-serif; }
.fam-acc-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.fam-acc-head h1 { font-family: 'Zilla Slab', Georgia, serif; font-size: 40px; color: #69226a; margin: 0; }
.fam-acc-head a { color: #69226a; font-weight: 600; text-decoration: none; }
.fam-acc-sec { background: #fff; border: 1px solid #ececf0; border-radius: 18px; padding: 24px; margin-bottom: 16px; }
.fam-acc-sec h2 { font: 700 13px/1.2 Montserrat, system-ui, sans-serif !important; letter-spacing: .1em; text-transform: uppercase; color: #7a7f88 !important; margin: 0 0 16px !important; }
.fam-acc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.fam-f-wide { grid-column: 1 / -1; }
.fam-acc-photo { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.fam-acc-photo img.fam-av, .fam-acc-photo .fam-av { width: 88px; height: 88px; --fam-av: 88px; }
.fam-acc-upload { position: relative; overflow: hidden; display: inline-flex; padding: 10px 18px; border-radius: 999px; border: 1px solid #69226a; color: #69226a; font-weight: 600; font-size: 14px; cursor: pointer; }
.fam-acc-upload:hover { background: #f5eef5; }
.fam-acc-upload input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.fam-acc-hint { font-size: 13px; color: #8a8f98; margin: 0 0 12px; }
.fam-acc-photo .fam-acc-hint { margin: 0; flex-basis: 100%; }
.fam-acc-save { max-width: 260px; }

/* ---------- profile card on the dashboard ---------- */
.fam-prof { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.fam-prof-cell { background: #f6f6f8; border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; min-width: 0; font-family: Montserrat, system-ui, sans-serif; }
.fam-prof-cell span { font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #7a7f88; }
.fam-prof-cell strong { font-size: 16px; color: #212934; overflow-wrap: anywhere; }
.fam-prof-cell a { color: #3c9437; text-decoration: none !important; }
.fam-prof-bio { margin: 14px 0 0; color: #4a4e57; }
.fam-prof-edit { margin: 14px 0 0; }
.fam-prof-edit a { font-weight: 700; color: #69226a; text-decoration: none !important; }

@media (max-width: 640px) {
	.fam-auth-card { padding: 28px 20px; border-radius: 18px; }
	.fam-acc-grid { grid-template-columns: minmax(0, 1fr); }
	.fam-acc-head h1 { font-size: 32px; }
}

/* Astra styles every span/em inside the header menu; keep the account panel's own layout */
.fam-acct .fam-acct-menu, .fam-acct .fam-acct-menu * { line-height: 1.3 !important; box-sizing: border-box; }
.fam-acct .fam-acct-head { display: flex !important; align-items: center !important; gap: 12px !important; height: auto !important; }
.fam-acct .fam-acct-head > div { display: flex !important; flex-direction: column !important; align-items: flex-start !important; gap: 2px !important; min-width: 0; padding: 0 !important; margin: 0 !important; }
.fam-acct .fam-acct-head strong, .fam-acct .fam-acct-head span, .fam-acct .fam-acct-head em { display: block !important; float: none !important; position: static !important; width: auto !important; height: auto !important; min-height: 0 !important; padding: 0 !important; margin: 0 !important; border: 0 !important; background: none !important; }
.fam-acct .fam-acct-head em { display: inline-block !important; margin-top: 6px !important; padding: 3px 9px !important; border-radius: 999px !important; background: #f5eef5 !important; font-size: 10.5px !important; }
.fam-acct .fam-av-initials { color: #fff !important; display: inline-flex !important; align-items: center !important; justify-content: center !important; padding: 0 !important; line-height: 1 !important; }
.fam-acct .fam-acct-menu a { height: auto !important; line-height: 1.2 !important; }
.fam-acct .fam-acct-menu a svg { display: block !important; }

/* My account: a readable column even when the page layout is full width */
.entry-content .fam-acc-wrap, .fam-acc-wrap { max-width: 860px !important; margin-left: auto !important; margin-right: auto !important; padding-left: 20px; padding-right: 20px; width: 100%; }
.fam-acc-head a, .fam-prof-edit a, .fam-auth-foot a, .fam-f > span a { text-decoration: none !important; }
.fam-acc-head a:hover, .fam-prof-edit a:hover, .fam-auth-foot a:hover, .fam-f > span a:hover { text-decoration: underline !important; }
/* Astra paints focused/hovered buttons blue */
.fam-acct .fam-acct-btn, .fam-acct .fam-acct-btn:hover, .fam-acct .fam-acct-btn:focus, .fam-acct .fam-acct-btn:active {
	background: #fff !important; color: #212934 !important; border: 1px solid #e6e6ea !important; border-radius: 999px !important; padding: 4px 12px 4px 4px !important; box-shadow: none; text-transform: none !important; letter-spacing: 0 !important; font: 600 14px/1 Montserrat, system-ui, sans-serif !important; min-height: 0 !important; height: auto !important;
}
.fam-acct .fam-acct-btn:hover, .fam-acct .fam-acct-btn[aria-expanded="true"] { border-color: #69226a !important; box-shadow: 0 0 0 3px rgba(105, 34, 106, 0.1) !important; }
.fam-acc-photo-side { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.fam-acc-photo-side .fam-acc-hint { margin: 0; flex-basis: auto; }
.fam-acc-av-wrap img.fam-av, .fam-acc-av-wrap .fam-av { width: 88px; height: 88px; --fam-av: 88px; }
.fam-acc-photo-form.is-uploading .fam-acc-upload { opacity: .7; pointer-events: none; }
.fam-acc-photo-form.is-uploading .fam-acc-av-wrap { animation: fam-pulse 1s ease-in-out infinite; }
@keyframes fam-pulse { 50% { opacity: .55; } }
.fam-acct.is-open .fam-acct-caret { transform: rotate(180deg); }
.fam-acct.is-open .fam-acct-btn { border-color: #69226a !important; box-shadow: 0 0 0 3px rgba(105, 34, 106, 0.1) !important; }

/* Login, lost password, register: a full-screen sign-in with the card centred.
   Astra's full-width layout sets max-width:none on content blocks with a stronger selector, so pin the card. */
.entry-content .fam-auth, .fam-auth { min-height: calc(100vh - 140px); max-width: none !important; width: 100%; margin: 0 !important; box-sizing: border-box; padding: 56px 16px 72px; background: radial-gradient(70% 55% at 50% 0%, #f3e9f3 0%, rgba(243, 233, 243, 0) 70%), radial-gradient(50% 45% at 100% 100%, #eaf6e9 0%, rgba(234, 246, 233, 0) 70%), #fafafc; }
.admin-bar .fam-auth { min-height: calc(100vh - 172px); }
.entry-content .fam-auth-card, .fam-auth .fam-auth-card { width: 100% !important; max-width: 440px !important; margin-left: auto !important; margin-right: auto !important; }
/* Astra prints an empty, padded title block even with the title off — it sat as a white band above the sign-in. */
article:has(.fam-auth) > .entry-header.ast-no-title { display: none; }
.fam-acc-crm { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; }
.fam-acc-crm > div { flex: 1 1 360px; }
.fam-acc-crm p { margin: 4px 0 0; color: #6b7079; font-size: 14.5px; line-height: 1.55; }
.fam-acc-crm .is-on { color: #1f9254; }
.fam-acc-crm .is-off { color: #b86a00; }
.fam-acc-crm .fam-auth-btn, a.fam-acc-crm-btn { width: auto; padding: 12px 22px; font-size: 15px; }
