/* eInvit shared UI — v254.4 · Tony Augustine Labs
   One stylesheet for: /tools/*, the redesigned Guides hub, and re-skinning every legacy /guides/*.html page.
   "Scenes" (Rosewood · Midnight · Marigold) are set with <html data-scene="…"> and remembered in localStorage. */
:root{color-scheme:light}
html[data-scene="rosewood"],html:not([data-scene]){--bg:#FBF7F2;--surface:#fff;--surface2:#F6EEE6;--ink:#2A1B24;--muted:#6F5E5B;--line:#EADFD4;--accent:#7A2048;--accent-ink:#fff;--head:#4A1230;--gold:#B8862F;--gold-soft:#F7ECD3;--hero:linear-gradient(135deg,#4A1230 0%,#7A2048 100%);--hero-ink:#fff;--shadow:0 10px 30px rgba(74,18,48,.10);--chip:#F6E4EC}
html[data-scene="midnight"]{color-scheme:dark;--bg:#120D16;--surface:#1B1421;--surface2:#241A2C;--ink:#F3EAF0;--muted:#B9A8B5;--line:#33263D;--accent:#E88DB5;--accent-ink:#2A0F1D;--head:#F6D9E6;--gold:#E3B35A;--gold-soft:#2C2314;--hero:linear-gradient(135deg,#1F0F2B 0%,#4A1B4F 100%);--hero-ink:#fff;--shadow:0 10px 30px rgba(0,0,0,.45);--chip:#2E1B38}
html[data-scene="marigold"]{--bg:#FFF8EC;--surface:#fff;--surface2:#FDEFD2;--ink:#2B1D10;--muted:#7A6448;--line:#F0DFC0;--accent:#B8410C;--accent-ink:#fff;--head:#6B2108;--gold:#D98E04;--gold-soft:#FDEBC0;--hero:linear-gradient(135deg,#6B2108 0%,#C2410C 100%);--hero-ink:#fff;--shadow:0 10px 30px rgba(107,33,8,.12);--chip:#FCE3C6}
/* ── legacy guide tokens → scene tokens ── */
html[data-scene]{--maroon:var(--accent);--maroon-dark:var(--head);--cream:var(--bg);--card:var(--surface);--border:var(--line)}
html[data-scene] body{background:var(--bg);color:var(--ink)}
html[data-scene] .site-header{background:color-mix(in srgb,var(--surface) 88%,transparent);backdrop-filter:saturate(1.4) blur(10px);border-bottom:1px solid var(--line)}
html[data-scene="midnight"] .brand img,html[data-scene="midnight"] .eb-brand img{background:#fff;padding:4px 10px;border-radius:10px;box-sizing:content-box}
html[data-scene] .site-nav a{color:var(--ink);border-radius:999px;padding:6px 12px;margin-left:4px}
html[data-scene] .site-nav a:hover{background:var(--chip);text-decoration:none}
html[data-scene] .hero{background:var(--hero);color:var(--hero-ink);position:relative;overflow:hidden}
html[data-scene] .hero::after{content:"";position:absolute;inset:auto -10% -60% -10%;height:70%;background:radial-gradient(closest-side,rgba(255,255,255,.14),transparent);pointer-events:none}
html[data-scene] .hero h1,html[data-scene] .hero p,html[data-scene] .hero .meta{color:var(--hero-ink)}
html[data-scene] .hero .breadcrumb a{color:#FFE2A6}
html[data-scene] .toc,html[data-scene] .checklist li,html[data-scene] .faq details,html[data-scene] .sidebar .links,html[data-scene] .rank-card,html[data-scene] .step-card,html[data-scene] .guide-card{background:var(--surface);border-color:var(--line);color:var(--ink)}
html[data-scene] .rank-card,html[data-scene] .step-card,html[data-scene] .toc,html[data-scene] .faq details{border-radius:16px;box-shadow:0 1px 0 var(--line)}
html[data-scene] .rank-card.first{border-color:var(--gold);box-shadow:var(--shadow)}
html[data-scene] article.content h2{border-bottom:1px solid var(--line);position:relative}
html[data-scene] article.content h2::after{content:"";position:absolute;left:0;bottom:-1px;width:64px;height:3px;background:var(--gold);border-radius:3px}
html[data-scene] table.guide-table{border-radius:12px;overflow:hidden;border-collapse:separate;border-spacing:0}
html[data-scene] table.guide-table th{background:var(--head);color:var(--bg)}
html[data-scene] table.guide-table th,html[data-scene] table.guide-table td{border-color:var(--line)}
html[data-scene] table.guide-table tr:nth-child(even){background:var(--surface2)}
html[data-scene] .callout,html[data-scene] .disclosure{background:var(--gold-soft);border-left-color:var(--gold);color:var(--ink)}
html[data-scene] .sidebar .card,html[data-scene] .cta-band{background:var(--hero);color:#fff;border-radius:18px}
html[data-scene] .sidebar .card h3,html[data-scene] .sidebar .card p,html[data-scene] .cta-band h3,html[data-scene] .cta-band p{color:#fff}
html[data-scene] .btn{background:var(--gold);color:#1d1208;border-radius:999px;box-shadow:0 6px 16px rgba(0,0,0,.15)}
html[data-scene] footer.site-footer{background:var(--surface2);color:var(--muted);border-top:1px solid var(--line)}
html[data-scene] footer.site-footer a{color:var(--accent)}
html[data-scene="midnight"] .callout strong,html[data-scene="midnight"] .rank-card h3 a{color:var(--head)}
/* ── scene switcher ── */
.scene{position:fixed;right:14px;bottom:14px;z-index:90;display:flex;align-items:center;gap:6px;padding:6px 8px;border-radius:999px;background:var(--surface);border:1px solid var(--line);box-shadow:var(--shadow);font:600 .72rem/1 Inter,system-ui,sans-serif;color:var(--muted)}
.scene span{padding:0 4px 0 6px}
.scene button{width:22px;height:22px;border-radius:50%;border:2px solid var(--surface);cursor:pointer;outline:1px solid var(--line);padding:0}
.scene button[aria-pressed="true"]{outline:2px solid var(--accent)}
.scene [data-s="rosewood"]{background:linear-gradient(135deg,#7A2048 50%,#FBF7F2 50%)}
.scene [data-s="midnight"]{background:linear-gradient(135deg,#4A1B4F 50%,#120D16 50%)}
.scene [data-s="marigold"]{background:linear-gradient(135deg,#C2410C 50%,#FFF8EC 50%)}
/* ── base for tool + hub pages (.eb = eInvit base) ── */
body.eb{margin:0;font-family:Inter,system-ui,-apple-system,Segoe UI,sans-serif;line-height:1.6;background:var(--bg);color:var(--ink)}
.eb *{box-sizing:border-box}.eb h1,.eb h2,.eb h3{font-family:'Playfair Display',Georgia,serif;line-height:1.2;margin:0}.eb h2,.eb h3,.eb h4{color:var(--head)}.eb a{color:var(--accent)}
.eb a{text-decoration:none}.eb .eb-btn{color:var(--accent-ink)}.eb .eb-btn.ghost{color:var(--accent)}.eb .eb-btn.wa{color:#fff}.eb .eb-btn.gold{color:#1d1208}.eb .eb-crumb a{color:#FFE2A6}.eb .eb-nav a{color:var(--ink)}.eb .eb-nav a[aria-current],.eb .eb-nav a:hover{color:var(--accent)}.eb .eb-tile{color:var(--ink)}.eb .eb-tile .go,.eb .eb-tile .tag{color:inherit}.eb .eb-tile .go{color:var(--accent)}.eb .eb-tile .tag{color:var(--gold)}.eb .eb-tile.feat .go,.eb .eb-tile.feat .tag{color:#fff}.eb .eb-hero h1{color:#fff}.eb .eb-cta h2{color:#fff}.eb .eb-foot a{color:var(--accent)}.eb a:hover{text-decoration:underline}
.eb-top{position:sticky;top:0;z-index:60;display:flex;align-items:center;gap:14px;flex-wrap:wrap;justify-content:space-between;padding:12px clamp(14px,4vw,32px);background:color-mix(in srgb,var(--surface) 88%,transparent);backdrop-filter:saturate(1.4) blur(10px);border-bottom:1px solid var(--line)}
.eb-brand img{display:block;height:34px;width:auto}
.eb-nav{display:flex;gap:2px;flex-wrap:wrap}.eb-nav a{color:var(--ink);font-weight:500;font-size:.92rem;padding:6px 12px;border-radius:999px}.eb-nav a:hover,.eb-nav a[aria-current]{background:var(--chip);text-decoration:none;color:var(--accent)}
.eb-hero{background:var(--hero);color:var(--hero-ink);padding:clamp(40px,7vw,76px) clamp(16px,4vw,32px) clamp(64px,8vw,96px);text-align:center;position:relative;overflow:hidden}
.eb-hero::before,.eb-hero::after{content:"";position:absolute;border-radius:50%;background:rgba(255,255,255,.07)}
.eb-hero::before{width:420px;height:420px;left:-120px;top:-180px}.eb-hero::after{width:520px;height:520px;right:-180px;bottom:-300px}
.eb-hero>*{position:relative;z-index:1}
.eb-crumb{font-size:.82rem;opacity:.85;margin-bottom:12px}.eb-crumb a{color:#FFE2A6}
.eb-kicker{display:inline-block;font-size:.72rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;padding:5px 12px;border-radius:999px;background:rgba(255,255,255,.14);margin-bottom:14px}
.eb-hero h1{color:#fff;font-size:clamp(1.9rem,5vw,3rem);max-width:820px;margin:0 auto 14px}
.eb-hero p{max-width:680px;margin:0 auto;font-size:clamp(1rem,2.4vw,1.15rem);opacity:.92}
.eb-stats{display:flex;justify-content:center;gap:clamp(18px,5vw,56px);flex-wrap:wrap;margin-top:30px}
.eb-stats b{display:block;font:700 clamp(1.5rem,4vw,2.2rem)/1 'Playfair Display',serif;color:#FFE2A6}.eb-stats small{font-size:.78rem;opacity:.85}
.eb-wrap{max-width:1120px;margin:0 auto;padding:0 clamp(14px,4vw,28px)}
.eb-pull{margin-top:-44px;position:relative;z-index:2}
.eb-card{background:var(--surface);border:1px solid var(--line);border-radius:18px;padding:clamp(16px,3vw,26px);box-shadow:var(--shadow)}
.eb-sec{padding:44px 0 8px}.eb-sec>h2{font-size:clamp(1.3rem,3vw,1.75rem);color:var(--head);margin-bottom:6px}.eb-sec>p.sub{color:var(--muted);margin:0 0 22px;max-width:680px}
.eb-grid{display:grid;gap:16px;grid-template-columns:repeat(auto-fill,minmax(250px,1fr))}
.eb-tile{display:flex;flex-direction:column;gap:8px;background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:20px;color:var(--ink);transition:transform .16s,box-shadow .16s,border-color .16s}
.eb-tile:hover{transform:translateY(-3px);box-shadow:var(--shadow);border-color:var(--accent);text-decoration:none}
.eb-tile .ic{width:44px;height:44px;border-radius:12px;display:grid;place-items:center;font-size:1.4rem;background:var(--chip)}
.eb-tile h3{font-size:1.08rem;color:var(--head)}.eb-tile p{margin:0;color:var(--muted);font-size:.88rem;flex:1}.eb-tile .go{font-weight:600;font-size:.84rem;color:var(--accent)}
.eb-tile .tag{font-size:.68rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--gold)}
.eb-tile.feat{background:var(--hero);border:0;color:#fff}.eb-tile.feat h3,.eb-tile.feat p,.eb-tile.feat .go,.eb-tile.feat .tag{color:#fff}.eb-tile.feat .ic{background:rgba(255,255,255,.16)}
.eb-btn{display:inline-flex;align-items:center;gap:8px;border:0;cursor:pointer;font:600 .92rem/1 Inter,sans-serif;padding:12px 20px;border-radius:999px;background:var(--accent);color:var(--accent-ink)}
.eb-btn:hover{filter:brightness(1.08);text-decoration:none}.eb-btn.ghost{background:transparent;color:var(--accent);border:1px solid var(--accent)}.eb-btn.wa{background:#1FA855;color:#fff}.eb-btn.gold{background:var(--gold);color:#1d1208}
.eb-btn:focus-visible,.eb input:focus-visible,.eb select:focus-visible,.eb textarea:focus-visible,.eb summary:focus-visible{outline:3px solid color-mix(in srgb,var(--accent) 55%,transparent);outline-offset:2px}
.eb label{display:block;font-size:.78rem;font-weight:600;color:var(--muted);margin:0 0 4px}
.eb input,.eb select,.eb textarea{width:100%;font:inherit;font-size:.92rem;padding:10px 12px;border:1px solid var(--line);border-radius:10px;background:var(--bg);color:var(--ink)}
.eb textarea{min-height:76px;resize:vertical}
.eb-row{display:grid;gap:12px;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));margin-bottom:12px}
.eb-chips{display:flex;gap:8px;flex-wrap:wrap}.eb-chip{border:1px solid var(--line);background:var(--surface);color:var(--ink);padding:7px 14px;border-radius:999px;font:600 .82rem Inter,sans-serif;cursor:pointer}
.eb-chip[aria-pressed="true"]{background:var(--accent);color:var(--accent-ink);border-color:var(--accent)}
.eb-faq details{background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:14px 18px;margin-bottom:10px}.eb-faq summary{cursor:pointer;font-weight:600;color:var(--head)}.eb-faq p{margin:10px 0 0;color:var(--muted);font-size:.92rem}
.eb-note{background:var(--gold-soft);border-left:4px solid var(--gold);border-radius:10px;padding:12px 16px;font-size:.86rem;margin:14px 0}
.eb-cta{margin:44px 0 20px;background:var(--hero);color:#fff;border-radius:22px;padding:clamp(24px,5vw,44px);text-align:center}.eb-cta h2,.eb-cta p{color:#fff}.eb-cta p{opacity:.92;margin:8px auto 18px;max-width:560px}
.eb-foot{padding:28px 16px 90px;text-align:center;color:var(--muted);font-size:.82rem}.eb-foot a{color:var(--accent)}
.eb-toast{position:fixed;left:50%;bottom:70px;transform:translateX(-50%) translateY(20px);background:var(--ink);color:var(--bg);padding:10px 18px;border-radius:999px;font-size:.86rem;opacity:0;pointer-events:none;transition:.25s;z-index:120}.eb-toast.on{opacity:1;transform:translateX(-50%)}
.eb-dock{position:fixed;left:0;right:0;bottom:0;z-index:80;display:none;gap:10px;align-items:center;justify-content:center;padding:10px 14px;background:var(--surface);border-top:1px solid var(--line);box-shadow:0 -8px 24px rgba(0,0,0,.08)}
.eb-dock.on{display:flex}.eb-dock span{font-size:.84rem;color:var(--muted)}
@media(max-width:560px){.scene span{display:none}.scene{bottom:62px}.eb-dock span{display:none}}
@media print{.eb-top,.scene,.eb-dock,.eb-toast,.no-print{display:none!important}body.eb{background:#fff;color:#000}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}
html[data-scene] .toc h2::after{display:none}html[data-scene] .toc h2{font-size:1rem;border:0}
