/* v9.2.2: isolated profile palettes and wrapping logo text. */
:root{--tc-surface:#101b17;--tc-panel:#16251f;--tc-text:#f3f1e9;--tc-muted:#c5cfc7;--tc-accent:#e4c991;--tc-line:#637568;--tc-button:#ddc797;--tc-button-text:#14201d}
html[data-theme="light"]{--tc-surface:#f7f5ef;--tc-panel:#ffffff;--tc-text:#18352c;--tc-muted:#445a50;--tc-accent:#735520;--tc-line:#acb9af;--tc-button:#735520;--tc-button-text:#ffffff}
html body :is(.tc-profile,.tc-details,.tc-digital-stage){background:var(--tc-surface)!important;color:var(--tc-text)!important}
html body :is(.tc-card,.tc-digital,.tc-digital-top){background:var(--tc-panel)!important;color:var(--tc-text)!important;border-color:var(--tc-line)!important}
html body :is(.tc-profile,.tc-details,.tc-card,.tc-digital) :is(h1,h2,h3){color:var(--tc-text)!important;-webkit-text-fill-color:currentColor}
html body :is(.tc-profile,.tc-details,.tc-card,.tc-digital) :is(p,.tc-tags span,.tc-email,.tc-email a){color:var(--tc-muted)!important;-webkit-text-fill-color:currentColor}
html body :is(.tc-profile,.tc-details,.tc-card,.tc-digital) :is(.tc-kicker,.tc-title,.tc-profile-link,.tc-qr a){color:var(--tc-accent)!important;-webkit-text-fill-color:currentColor}
html body .tc-back,html body .tc-digital-top span{color:var(--tc-muted)!important}
html body :is(.tc-section,.tc-qr,.tc-tags span){border-color:var(--tc-line)!important}
html body .tc-btn{background:var(--tc-button)!important;color:var(--tc-button-text)!important;-webkit-text-fill-color:currentColor!important;border-color:var(--tc-button)!important;font-family:inherit}
html body .tc-btn.tc-secondary{background:transparent!important;color:var(--tc-text)!important;border-color:var(--tc-line)!important}
html body .tc-btn:hover{filter:brightness(1.08)}
html body .tc-btn.tc-secondary:hover{background:var(--tc-panel)!important;filter:none}
html body .tc-btn:focus-visible{outline:3px solid var(--tc-accent);outline-offset:4px}
html body .tc-photo-label{background:#101b17ed!important;color:#f5dfb6!important}
html body .tc-digital input{background:var(--tc-panel)!important;color:var(--tc-text)!important;border-color:var(--tc-line)!important}
html body .tc-qr img{background:#fff;padding:0;flex:none}
.tc-card-body,.tc-profile-intro,.tc-detail-grid>*,.tc-digital-content{min-width:0}
.tc-card-body h3,.tc-profile-intro h1,.tc-digital h1,.tc-strap,.tc-email,.tc-section p{overflow-wrap:anywhere}
.tc-actions .tc-btn{white-space:normal;text-align:center;max-width:100%}
/* Remove generic footer span margins from nested brand text. */
html body .sp-brand-lockup{display:flex!important;align-items:center!important;gap:12px;min-width:0;max-width:100%;height:auto;line-height:normal;margin:0!important}
html body .sp-brand-lockup .sp-brand-lines{display:flex!important;flex-direction:column!important;flex:1 1 auto;gap:4px;min-width:0;max-width:100%;height:auto;padding:0;margin:0!important;position:static;transform:none}
html body .sp-brand-lines>strong,html body .sp-brand-lines>span,html body .sp-brand-lines>small{display:block;position:static;transform:none;margin:0!important;padding:0;height:auto;max-width:100%;white-space:normal!important;overflow-wrap:anywhere;word-break:normal;text-indent:0;line-height:1.35}
html body .sp-brand-lines>strong{color:var(--ink,#f4f0e7);font-size:clamp(20px,2vw,28px)}
html body .sp-brand-lines>span{color:var(--gold,#c3ae83);letter-spacing:.14em}
html body .sp-brand-lines>small{color:var(--muted,#a6a99c);font-size:10px;line-height:1.55;letter-spacing:0;text-transform:none}
html body .footer-grid>div{min-width:0}
html body .footer-logo{width:100%;max-width:100%;height:auto;margin-bottom:16px!important}
html body .footer-logo .sp-brand-lockup{align-items:flex-start!important;flex-wrap:wrap}
html body .footer-logo .sp-brand-lines{flex-basis:150px}
html body .footer-tag,html body .footer-intro{position:static;transform:none;margin:12px 0 0;padding:0;line-height:1.7;overflow-wrap:anywhere;clear:both}
html body .site-header .brand{min-width:0;flex:0 1 290px;max-width:100%;height:auto}
html body .site-header{min-height:100px;height:auto}
@media(max-width:600px){
 html body .site-header .brand{flex-basis:auto;max-width:calc(100% - 58px)}
 html body .brand .sp-brand-lockup{max-width:100%;gap:8px}
 html body .brand .sp-brand-lines>strong{font-size:20px}
 html body .brand .sp-brand-lines>span{font-size:12px;letter-spacing:.12em}
 html body .brand .sp-brand-lines>small{font-size:9px}
 html body .footer-logo .sp-brand-lines>strong{font-size:24px}
 html body .tc-qr{flex-wrap:wrap;align-items:flex-start}
 html body .tc-qr>div{flex:1 1 140px;min-width:0}
}
@media print{html body :is(.tc-profile,.tc-details,.tc-card,.tc-digital,.tc-digital-top,.tc-digital-stage){--tc-surface:#fff;--tc-panel:#fff;--tc-text:#18352c;--tc-muted:#35443e;--tc-accent:#735520;--tc-line:#acb9af;box-shadow:none!important}}

/* These pages do not use the older hero spacer. Keep the header in flow,
   including when site.js applies its scrolled state. */
html body.sp-profile-page .site-header,
html body.sp-profile-page .site-header.scrolled{position:sticky!important;top:0;height:auto!important;min-height:100px;background:var(--tc-surface)!important}
html body.sp-profile-page .tc-profile{padding-top:32px}
html body.sp-profile-page .tc-back{position:relative;display:inline-block;margin:0 0 30px;line-height:1.6}
