/* DRC Guild Profiles v82 — visuals aligned with existing DRC Guild website */
/* Navigation: Profile is an ordinary menu link; Light is a discreet in-menu switch.
   The existing DRC Buildings Mint CTA remains the last navigation item. */
.site-header .site-nav > a.drc-profiles-nav{white-space:nowrap}
.site-header .site-nav > a.drc-profiles-nav:hover,.site-header .site-nav > a.drc-profiles-nav.is-current{color:var(--gold,#e7c07d)}
.site-header .site-nav .drc-theme-control{
 display:inline-flex;align-items:center;justify-content:center;gap:5px;
 padding:3px 0;margin:0;color:#b8c1ce;border:none;background:transparent;
 font:700 10px/1.2 var(--font,Inter,system-ui,sans-serif);letter-spacing:0;
 white-space:nowrap;flex:0 0 auto;min-height:0;cursor:pointer;
}
.site-header .site-nav .drc-theme-control > span{font-size:10px;line-height:1.2}
.site-header .site-nav .drc-theme-control > input{
 position:relative;appearance:none;width:29px;height:16px;flex:0 0 29px;
 margin:0;border:1px solid #806c4c;border-radius:15px;background:#313b49;
 cursor:pointer;vertical-align:middle;
}
.site-header .site-nav .drc-theme-control > input::before{
 content:"";position:absolute;top:2px;left:2px;width:10px;height:10px;
 border-radius:50%;background:#e7c07d;transition:transform .18s ease;
}
.site-header .site-nav .drc-theme-control > input:checked{background:#a47738}
.site-header .site-nav .drc-theme-control > input:checked::before{transform:translateX(13px);background:#fff8ed}
.site-header .site-nav .drc-theme-control > input:focus-visible{outline:2px solid var(--gold,#e7c07d);outline-offset:3px}
html[data-theme="light"] .site-header .site-nav .drc-theme-control{color:#36465d}
html[data-theme="light"] .site-header .site-nav > a.drc-profiles-nav.is-current{color:#976522!important}
@media (max-width:1070px){
 .site-header .site-nav .drc-theme-control{
   display:flex;justify-content:space-between;align-items:center;
   width:100%;min-height:43px;margin:0;padding:11px 12px;
   border-bottom:1px solid #293341;color:#b8c1ce;font-size:13px;
 }
 .site-header .site-nav .drc-theme-control > span{font-size:13px}
 .site-header .site-nav .drc-theme-control > input{width:33px;height:19px;flex-basis:33px}
 .site-header .site-nav .drc-theme-control > input::before{width:13px;height:13px}
 .site-header .site-nav .drc-theme-control > input:checked::before{transform:translateX(14px)}
 html[data-theme="light"] .site-header .site-nav .drc-theme-control{border-color:#d6deea}
}

/* Profile uses the same underlying palette, spacing, serif headings, cards and buttons as the site. */
.profile-page{min-height:calc(100vh - 170px);padding:72px 24px 88px;background:linear-gradient(180deg,#0c1420 0%,var(--bg,#080d16) 100%);color:#e8ecf1}
.profile-wrap{max-width:890px;margin:0 auto}
.profile-wrap>h1{font-family:Georgia,"Times New Roman",serif;font-size:clamp(40px,5vw,58px);font-weight:500;letter-spacing:-.025em;line-height:1.14;color:#fff8ed;margin:0 0 31px}
.profile-wrap>h1 em{color:var(--gold,#e7c07d);font-style:normal}
.profile-card{margin:0 0 22px;padding:clamp(22px,3vw,32px);background:#121b29;border:1px solid #2e3948;border-radius:8px;color:#e8ecf1;box-shadow:0 5px 20px #00000017}
.profile-card h2,.profile-card h3{font-family:Georgia,"Times New Roman",serif;font-weight:500;line-height:1.25;color:#f1ede5}
.profile-card h2{font-size:clamp(23px,3vw,29px);margin:0 0 17px}
.profile-card h3{font-size:20px;margin:0 0 12px}
.profile-card p{color:#aeb9ca;font-size:14px;line-height:1.7;margin:0 0 20px}
.profile-card strong{color:#f4ead7}
.profile-form{display:grid;gap:18px;max-width:470px}
.profile-form label{display:grid;gap:7px;font-size:13px;font-weight:700;color:#d8dee8}
.profile-form input{min-width:0;width:100%;box-sizing:border-box;background:#0b1322;border:1px solid #49566b;color:#f4f0e8;border-radius:5px;padding:12px 14px;font:inherit;font-weight:400}
.profile-form input:focus-visible{outline:2px solid var(--gold,#e7c07d);outline-offset:1px}
.profile-row,.profile-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:20px 0 0}
.profile-btn{display:inline-flex;align-items:center;justify-content:center;padding:11px 16px;font:800 12px/1.3 var(--font,Inter,system-ui,sans-serif);color:#e9d1a9;background:#0b1325;border:1px solid #806b44;border-radius:4px;text-decoration:none;cursor:pointer;letter-spacing:.01em}
.profile-btn.primary{color:#18171b;border-color:#c79d5b;background:linear-gradient(120deg,#f1d99e,#cc9b54)}
.profile-btn.secondary{color:#e9d1a9;border-color:#806b44;background:#0b1325}
.profile-btn.danger{color:#f0b7b2;border-color:#90514d;background:#261a22}
.profile-btn:disabled{opacity:.5;cursor:wait}
.profile-btn:hover:not(:disabled){filter:brightness(1.12)}
.profile-status{padding:12px 16px;margin:0 0 20px;border:1px solid #695739;border-radius:6px;color:#f0d6aa;line-height:1.5;font-size:13px}
.profile-status:empty,.profile-page [hidden],.profile-card [hidden]{display:none!important}
.profile-status[data-kind="error"]{border-color:#ae5c5c;color:#ffc8c0}
.profile-status[data-kind="success"]{border-color:#53876d;color:#b3e8c4}
.profile-status[data-kind="warning"]{border-color:#ba9560;color:#ffe0a4}
.profile-conflict{border-top:1px solid #4b5264;padding:16px 0}
.profile-conflict>div{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0}
.profile-conflict .profile-btn{padding:8px 11px;font-size:11px}
.profile-note{border-left:3px solid #99794b;padding:0 0 0 14px;margin:20px 0 0!important}

/* Respect the site's existing light theme rather than introducing a new cyan scheme. */
html[data-theme="light"] .profile-page{background:#f7f8fb!important;color:#233044}
html[data-theme="light"] .profile-wrap>h1{color:#25344b!important}
html[data-theme="light"] .profile-wrap>h1 em{color:#91601f}
html[data-theme="light"] .profile-card{background:#fff;color:#26364f;border-color:#cbd5e1;box-shadow:0 8px 24px #24334b12}
html[data-theme="light"] .profile-card h2,html[data-theme="light"] .profile-card h3{color:#25344b}
html[data-theme="light"] .profile-card p{color:#45566d}
html[data-theme="light"] .profile-card strong{color:#25344b}
html[data-theme="light"] .profile-form label{color:#2e4059}
html[data-theme="light"] .profile-form input{background:#fff!important;color:#1e293b!important;border-color:#b6c4d6!important}
html[data-theme="light"] .profile-btn.primary{background:linear-gradient(120deg,#f9e4b6,#d6a65a)!important;color:#1e293b!important;border-color:#af813a!important}
html[data-theme="light"] .profile-btn.secondary{background:#edf2f8!important;color:#24364e!important;border-color:#9faec1!important}
html[data-theme="light"] .profile-btn.danger{background:#fff1f0;border-color:#b67474;color:#99343b}
html[data-theme="light"] .profile-status{color:#6b5125;border-color:#cbb48d}
html[data-theme="light"] .profile-status[data-kind="error"]{color:#a22e27}
html[data-theme="light"] .profile-status[data-kind="success"]{color:#187b52}
html[data-theme="light"] .profile-status[data-kind="warning"]{color:#88601e}
@media(max-width:720px){.profile-page{padding:40px 18px 60px}.profile-card{padding:20px}.profile-wrap>h1{margin-bottom:24px}}

/* v85: clean status and compare-before-replace conflicts */
.profile-identity{margin-top:0!important}
.profile-sync-line{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;margin:0 0 9px;color:#b9c7d9;font-size:12px}
.profile-sync-line [data-kind="success"]{color:#b6dcbd}
.profile-sync-line [data-kind="warning"]{color:#efd29b}
.profile-sync-line [data-kind="error"]{color:#f5b4b1}
#drc-profile-conflicts{margin:24px 0 18px}
.compare-banner{margin-bottom:12px}
.compare-banner h3{margin:0 0 8px;font-size:19px}
.compare-banner p{margin:0 0 14px}
.profile-conflict{border:1px solid #3c495b;border-radius:6px;padding:15px 16px;margin:10px 0;background:#0c1522}
.compare-head{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}
.compare-head strong{color:#e4c18d}
.compare-head span{font-size:12px;color:#bbc8d9}
.compare-toggle{margin-top:12px}
.compare-toggle>summary{font-size:13px;font-weight:750;display:inline-flex;align-items:center;gap:8px;color:#e8c58f;cursor:pointer;min-height:34px}
.compare-toggle>summary:focus-visible{outline:2px solid #dfba7d;outline-offset:3px}
.compare-content{margin:12px 0 3px}
.compare-explain{margin:0 0 12px!important;font-size:13px!important}
.compare-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:12px 0 18px}
.compare-columns>section{min-width:0;border:1px solid #3b4a5c;background:#141f2e;border-radius:5px;padding:14px}
.compare-columns h5{font-size:12px;color:#e4c18d;margin:0 0 10px}
.compare-columns b{font-size:14px}
.compare-columns p{margin:8px 0 0;font-size:12px!important}
.compare-row{display:flex;gap:10px;justify-content:space-between;align-items:flex-start;border-bottom:1px solid #2d3948;padding:6px 0;font-size:12px}
.compare-row span{color:#a9b9ca;min-width:85px}
.compare-row strong{color:#e5ecf2;text-align:right;overflow-wrap:anywhere;font-weight:600}
.compare-subhead{margin:18px 0 8px;font-size:13px;font-weight:700;color:#e3c08a}
.compare-dragon{border:1px solid #344257;border-radius:5px;margin:8px 0;padding:10px}
.compare-dragon>summary{cursor:pointer;color:#dce7f5;font-size:13px;font-weight:650}
.compare-dragon>.compare-columns{margin:15px 0 0}
.compare-safety,.compare-settings-note{font-size:12px!important;color:#b2c1d2!important}
.compare-buttons{display:flex;gap:8px;flex-wrap:wrap;margin:14px 0 0}
.compare-buttons .profile-btn{font-size:11px;padding:9px 13px}
html[data-theme="light"] .profile-sync-line{color:#4e6078}
html[data-theme="light"] .profile-sync-line [data-kind="success"]{color:#146b48}
html[data-theme="light"] .profile-sync-line [data-kind="warning"]{color:#8c6017}
html[data-theme="light"] .profile-sync-line [data-kind="error"]{color:#a22e27}
html[data-theme="light"] .profile-conflict,html[data-theme="light"] .compare-columns>section{background:#f5f7fb;border-color:#cad2df}
html[data-theme="light"] .compare-head strong,html[data-theme="light"] .compare-toggle>summary,html[data-theme="light"] .compare-columns h5,html[data-theme="light"] .compare-subhead{color:#83591d}
html[data-theme="light"] .compare-head span,html[data-theme="light"] .compare-row span{color:#52617a}
html[data-theme="light"] .compare-row{border-color:#d5dce6}
html[data-theme="light"] .compare-row strong,html[data-theme="light"] .compare-dragon>summary{color:#1f3149}
html[data-theme="light"] .compare-dragon{border-color:#c3ccda}
html[data-theme="light"] .compare-safety,html[data-theme="light"] .compare-settings-note{color:#52617a!important}
@media(max-width:650px){.compare-columns{grid-template-columns:1fr}.compare-head{align-items:flex-start;flex-direction:column}.profile-conflict{padding:12px}.compare-buttons .profile-btn{width:100%}}

.compare-changed-fields{display:block;font-weight:400;font-size:11px;color:#b8c9d8;padding:5px 0 2px}
.compare-settings{margin-top:14px;border:1px solid #344257;border-radius:5px;padding:10px}
.compare-settings>summary{cursor:pointer;color:#e3c08a;font-size:13px}
html[data-theme="light"] .compare-changed-fields{color:#53647c}
html[data-theme="light"] .compare-settings{border-color:#c3ccda}
html[data-theme="light"] .compare-settings>summary{color:#83591d}

/* v86: unmistakable manual Sync now progress and outcome feedback */
#profile-sync-now[aria-busy="true"]{position:relative;padding-left:32px}
#profile-sync-now[aria-busy="true"]::before{content:"";position:absolute;left:12px;width:12px;height:12px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:drc-profile-spin .75s linear infinite}
@keyframes drc-profile-spin{to{transform:rotate(360deg)}}
.profile-manual-feedback{margin:15px 0 0;padding:12px 15px;border-radius:6px;border:1px solid #527765;background:#132b25;color:#c7ebd8;font-size:13px;font-weight:650;line-height:1.55}
.profile-manual-feedback[data-kind="info"]{border-color:#5f6f84;background:#172231;color:#d9e4f5}
.profile-manual-feedback[data-kind="warning"]{border-color:#b78f4e;background:#2b261a;color:#ffe2ad}
.profile-manual-feedback[data-kind="error"]{border-color:#ad6562;background:#341e24;color:#ffd0c9}
.profile-sync-toast{position:fixed;bottom:26px;right:26px;z-index:20000;max-width:min(440px,calc(100vw - 28px));padding:15px 20px;border-radius:7px;border:1px solid #53876d;background:#10231e;color:#d9f4e7;box-shadow:0 14px 38px rgba(0,0,0,.42);font-size:14px;font-weight:700;line-height:1.5}
.profile-sync-toast[data-kind="info"]{background:#152438;border-color:#6b839c;color:#e4ebfa}
.profile-sync-toast[data-kind="warning"]{background:#332a19;border-color:#b99655;color:#ffe4b9}
.profile-sync-toast[data-kind="error"]{background:#3b2226;border-color:#b46e71;color:#ffdcda}
.profile-sync-toast[hidden],.profile-manual-feedback[hidden]{display:none!important}
html[data-theme="light"] .profile-manual-feedback{background:#ecfaf3;border-color:#8ccaae;color:#175a3d}
html[data-theme="light"] .profile-manual-feedback[data-kind="info"]{background:#edf3fd;border-color:#8ba6c9;color:#304968}
html[data-theme="light"] .profile-manual-feedback[data-kind="warning"]{background:#fff4db;border-color:#cfaa6b;color:#7c5516}
html[data-theme="light"] .profile-manual-feedback[data-kind="error"]{background:#fff0ed;border-color:#c38e88;color:#8d3030}
@media(max-width:650px){.profile-sync-toast{bottom:14px;left:14px;right:14px;max-width:none}}
@media(prefers-reduced-motion:reduce){#profile-sync-now[aria-busy="true"]::before{animation:none}}

/* v87: concise confirmation and no duplicate legacy conflict cards */
.profile-status:empty{display:none!important;}
#drc-profile-conflicts{display:none!important;}
.profile-sync-toast{display:none!important;}
