/* The Edge-Man global account. Only the existing header search is replaced. */
header.wp-block-template-part .emga-header-slot{position:relative;display:flex;justify-content:flex-end;align-items:center;min-height:42px;width:100%;font-family:Georgia,"Times New Roman",serif;isolation:isolate;z-index:10020}
header.wp-block-template-part .emga-trigger{display:flex;align-items:center;justify-content:center;gap:9px;min-height:40px;max-width:100%;padding:9px 15px;border:1px solid rgba(218,194,146,.62);border-radius:2px;background:rgba(15,21,27,.78);color:#f1ede6;font:700 13px/1.3 Georgia,"Times New Roman",serif;letter-spacing:.035em;cursor:pointer;box-shadow:0 3px 10px rgba(0,0,0,.22);transition:background .18s,border-color .18s}
header.wp-block-template-part .emga-trigger:hover,header.wp-block-template-part .emga-open .emga-trigger{background:rgba(40,57,67,.94);border-color:#e5c78d}
header.wp-block-template-part .emga-trigger:focus-visible{outline:2px solid #e5c78d;outline-offset:3px}
header.wp-block-template-part .emga-trigger-icon{flex:0 0 19px;display:grid;place-items:center;height:19px;color:#e7d5b2}
header.wp-block-template-part .emga-trigger-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:172px}
header.wp-block-template-part .emga-trigger-arrow{font-size:16px;line-height:12px;color:#d7c4a4}
header.wp-block-template-part .emga-dropdown[hidden],.emga-modal[hidden],.emga-modal [hidden],#emga-settings-page [hidden]{display:none!important}
header.wp-block-template-part .emga-dropdown{position:absolute;top:calc(100% + 9px);right:0;width:min(292px,calc(100vw - 24px));padding:8px;background:#182833;color:#e9e5df;border:1px solid rgba(205,178,130,.7);box-shadow:0 15px 36px rgba(0,0,0,.46);z-index:10030;text-align:left;border-radius:3px;box-sizing:border-box}
header.wp-block-template-part .emga-menu-user{padding:10px 12px 13px;border-bottom:1px solid rgba(212,199,171,.22);margin-bottom:6px}
header.wp-block-template-part .emga-menu-user small{display:block;color:#b9a17b;font:700 10px/1.5 system-ui,sans-serif;letter-spacing:.13em}
header.wp-block-template-part .emga-menu-user strong{display:block;margin-top:2px;font-size:17px;line-height:1.24;color:#fff6e8;overflow-wrap:anywhere}
header.wp-block-template-part .emga-menu-note{font:12px/1.55 system-ui,sans-serif;color:#cbd1d2;margin:7px 9px 12px}
header.wp-block-template-part .emga-menu-error{padding:10px;color:#fac4b9;font:12px/1.5 system-ui,sans-serif}
header.wp-block-template-part .emga-menu-item{display:block;width:100%;box-sizing:border-box;text-align:left;padding:12px 13px;margin:0;background:none;border:none;border-radius:2px;color:#f0e7d8;text-decoration:none!important;font:700 13px/1.25 Georgia,"Times New Roman",serif;cursor:pointer}
header.wp-block-template-part .emga-menu-item:hover,header.wp-block-template-part .emga-menu-item:focus-visible{background:#405d72;color:#fff!important;outline:none}
header.wp-block-template-part .emga-menu-separator{height:1px;margin:6px 8px;background:rgba(212,199,171,.22)}
@media(max-width:780px){header.wp-block-template-part .emga-trigger{min-width:42px;padding:9px 10px}header.wp-block-template-part .emga-trigger-text{max-width:138px;font-size:12px}header.wp-block-template-part .emga-header-slot{padding-right:6px}}
@media(max-width:440px){header.wp-block-template-part .emga-trigger{width:42px;height:42px}header.wp-block-template-part .emga-trigger-text,header.wp-block-template-part .emga-trigger-arrow{display:none}header.wp-block-template-part .emga-dropdown{position:fixed;top:68px;right:12px;width:min(285px,calc(100vw - 24px))}}
body.emga-modal-active{overflow:hidden!important}
.emga-modal{position:fixed;z-index:1000002;inset:0;display:flex;justify-content:center;align-items:center;background:rgba(7,12,17,.86);padding:18px;overflow-y:auto;box-sizing:border-box}
.emga-modal *,.emga-settings-page *{box-sizing:border-box}
.emga-modal-card{position:relative;width:min(540px,100%);max-height:calc(100dvh - 36px);overflow-y:auto;background:linear-gradient(145deg,#c7cfd6,#abb7c0);border:1px solid rgba(48,68,83,.68);color:#25323d;box-shadow:0 20px 65px rgba(0,0,0,.56);padding:29px 25px 25px;font:14px/1.4 system-ui,-apple-system,Segoe UI,sans-serif}
.emga-modal-close{position:absolute;right:10px;top:10px;width:37px;height:37px;border:0;background:#405d72;color:#e7edf0;font-size:27px;cursor:pointer;line-height:1;border-radius:2px}
.emga-modal-tabs{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:0 43px 21px 0}
.emga-modal-tabs button{padding:9px 13px;background:rgba(237,243,246,.6);border:1px solid rgba(48,68,83,.45);color:#25323d;font:700 12px/1.2 system-ui,sans-serif;cursor:pointer}
.emga-modal-tabs button[aria-selected="true"]{background:#405d72;border-color:#405d72;color:#fff}
.emga-modal h2,.emga-settings-page h2{margin:0 0 12px;font:700 27px/1.2 Georgia,"Times New Roman",serif;color:#25323d}
.emga-modal p{margin:0 0 15px;color:#44545c;font-size:13px;line-height:1.6}
.emga-modal form{display:grid;gap:13px}
.emga-modal label,.emga-settings-page label{display:grid;gap:6px;color:#2b3944;font:700 12px/1.3 system-ui,sans-serif;letter-spacing:.02em}
.emga-modal input,.emga-settings-page input{height:44px;min-height:44px;width:100%;border:1px solid rgba(48,68,83,.58);background:#e7edf0;color:#25323d;padding:10px 12px;border-radius:2px;font:15px system-ui,sans-serif;outline:none}
.emga-modal input:focus,.emga-settings-page input:focus{border-color:#405d72;box-shadow:0 0 0 2px rgba(64,93,114,.16)}
.emga-password-field{display:block;position:relative}
.emga-password-field input{padding-right:52px}
.emga-eye{position:absolute;right:1px;top:1px;bottom:1px;width:44px;border:0;border-left:1px solid rgba(48,68,83,.25);background:#d1dbe1;color:#405d72;display:grid;place-items:center;cursor:pointer}
.emga-forgot{color:#82332d;font-weight:700;font-size:12px;justify-self:start;text-decoration:underline}
.emga-error{min-height:16px;font:12px/1.4 system-ui,sans-serif;color:#8e2f2b}
.emga-primary-button{border:1px solid #385164;background:#405d72;color:#e7edf0;border-radius:2px;padding:11px 20px;font:700 13px Georgia,"Times New Roman",serif;cursor:pointer;justify-self:start}
.emga-primary-button:hover{background:#536f83}
.emga-primary-button:disabled{opacity:.5;cursor:wait}
.emga-settings-page{width:100vw;max-width:none;margin:0 calc(50% - 50vw);background:#8999a5;min-height:70vh;color:#25323d;font-family:Georgia,"Times New Roman",serif}
.emga-settings-hero{min-height:clamp(195px,21vw,270px);padding:45px 15px;display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;background:radial-gradient(circle at 50% 0%,rgba(198,209,217,.35),transparent 50%),linear-gradient(180deg,rgba(126,146,161,.97),rgba(91,112,128,.98));border-block:1px solid rgba(57,79,95,.38)}
.emga-settings-hero h1{font:700 clamp(38px,5.6vw,68px)/1 Georgia,"Times New Roman",serif;color:#e7edf0;margin:0;text-shadow:0 2px 1px rgba(31,43,53,.4)}
.emga-settings-hero p{font-size:10px;letter-spacing:.13em;color:#f4f5f5;margin:8px 0 0}
.emga-settings-inner{max-width:1000px;margin:0 auto;padding:32px 18px 65px}
.emga-settings-card{background:linear-gradient(145deg,#c7cfd6,#abb7c0);border:1px solid rgba(48,68,83,.38);box-shadow:0 8px 25px rgba(30,43,53,.21);padding:clamp(18px,3vw,32px)}
.emga-panel-kicker{font:700 10px/1.4 system-ui,sans-serif;letter-spacing:.15em;color:#405d72;margin-bottom:7px}
.emga-settings-page .emga-profile-intro{font:14px/1.5 Georgia,"Times New Roman",serif;color:#40515e;margin:0 0 22px}
.emga-settings-page form{display:grid;gap:17px;max-width:570px}
.emga-settings-page form h3{font:700 21px/1.2 Georgia,"Times New Roman",serif;margin:6px 0 0}
.emga-settings-page form p{margin:0;color:#40515e;font-size:13px}
.emga-settings-page .emga-form-divider{height:1px;background:rgba(48,68,83,.32);margin:10px 0 0}
.emga-settings-page small{font-size:11px;font-weight:400}
.emga-settings-page .emga-form-result{min-height:16px;color:#26583b;font-weight:700}
.emga-settings-page .emga-form-result.emga-error-text{color:#8e2f2b}
@media(max-width:560px){.emga-modal{padding:9px}.emga-modal-card{padding:25px 14px 19px;max-height:calc(100dvh - 18px)}.emga-settings-hero{min-height:180px}.emga-settings-inner{padding:18px 12px 38px}}

/* The settings page provides its own site-styled hero; avoid a duplicate WP title. */
body:has(#emga-settings-page) .entry-header,
body:has(#emga-settings-page) .wp-block-post-title,
body:has(#emga-settings-page) .page-header {display:none!important;}
body:has(#emga-settings-page) .wp-block-post-content,
body:has(#emga-settings-page) .entry-content {max-width:none!important;}
