/* ═══════════════════════════════════════════════════════════════
   Lexara Advisory — euaiactus.com Shared Styles
   Palette: --navy:#0B1628  --gold:#C5A44B  --cream:#FAF8F3
   ═══════════════════════════════════════════════════════════════ */

/* CLS fallbacks */
@font-face { font-family:'CG Fallback'; src:local('Georgia'),local('Times New Roman'); size-adjust:98%; ascent-override:90%; descent-override:22%; line-gap-override:normal; }
@font-face { font-family:'DMS Fallback'; src:local('Arial'),local('Helvetica Neue'); size-adjust:104%; ascent-override:92%; descent-override:23%; line-gap-override:normal; }

*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{font-family:'DM Sans','DMS Fallback',Arial,sans-serif;background:#0B1628;color:#fff;overflow-x:hidden;-webkit-font-smoothing:antialiased}

/* ── Skip link ─────────────────────────────────────── */
.skip-link{position:absolute;top:-60px;left:0;background:#C5A44B;color:#0B1628;padding:.6rem 1.2rem;z-index:9999;font-size:.8rem;font-weight:600;text-decoration:none;transition:top .2s}
.skip-link:focus{top:0}

/* ── NAV ───────────────────────────────────────────── */
.s-nav{position:sticky;top:0;z-index:99;background:rgba(11,22,40,.97);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);border-bottom:1px solid rgba(197,164,75,.25);padding:14px 40px;display:flex;align-items:center;justify-content:space-between;gap:12px}
.s-nav-logo{font-family:'Cormorant Garamond','CG Fallback',Georgia,serif;font-size:20px;font-weight:600;color:#C5A44B;text-decoration:none;line-height:1.15}
.s-nav-logo span{color:#8A99AA;font-size:10.5px;font-family:'DM Sans','DMS Fallback',Arial,sans-serif;font-weight:400;display:block;letter-spacing:.12em;text-transform:uppercase;margin-top:-1px}
.s-nav-links{display:flex;align-items:center;gap:20px;flex-wrap:wrap}
.s-nav-link{font-size:12.5px;color:rgba(255,255,255,.65);text-decoration:none;letter-spacing:.03em;transition:color .2s}
.s-nav-link:hover{color:#E2CC8A}
.s-nav-link.active{color:#E2CC8A;font-weight:500}
.s-nav-cta{background:#C5A44B;color:#0B1628;padding:9px 20px;border-radius:4px;font-size:12.5px;font-weight:600;text-decoration:none;letter-spacing:.04em;transition:background .2s;white-space:nowrap}
.s-nav-cta:hover{background:#E2CC8A}
.s-nav-menu{display:none;background:none;border:none;cursor:pointer;padding:6px;color:#E2CC8A}
.s-nav-menu svg{width:22px;height:22px}

/* ── BREADCRUMB ────────────────────────────────────── */
.breadcrumb{max-width:1100px;margin:0 auto;padding:14px 40px 0;font-size:12px;color:rgba(255,255,255,.45)}
.breadcrumb a{color:#C5A44B;text-decoration:none;transition:color .2s}
.breadcrumb a:hover{color:#E2CC8A}
.breadcrumb span{margin:0 6px;color:rgba(255,255,255,.25)}

/* ── ARTICLE HERO ──────────────────────────────────── */
.art-hero{padding:56px 40px 48px;position:relative}
.art-hero::after{content:'';position:absolute;bottom:0;left:0;right:0;height:2px;background:linear-gradient(90deg,transparent,#C5A44B 30%,#C5A44B 70%,transparent)}
.art-hero-inner{max-width:820px;margin:0 auto}
.art-hero-tag{display:inline-flex;align-items:center;gap:8px;background:rgba(197,164,75,.1);border:1px solid rgba(197,164,75,.3);color:#E2CC8A;font-size:10.5px;font-weight:600;letter-spacing:.12em;text-transform:uppercase;padding:5px 14px;border-radius:2px;margin-bottom:24px}
.art-hero h1{font-family:'Cormorant Garamond','CG Fallback',Georgia,serif;font-size:clamp(34px,5.5vw,62px);font-weight:700;line-height:1.08;color:#fff;margin-bottom:20px}
.art-hero h1 em{font-style:italic;color:#C5A44B}
.art-hero-lead{font-size:17px;line-height:1.7;color:rgba(255,255,255,.82);max-width:660px;margin-bottom:28px}
.art-hero-meta{font-size:12px;color:rgba(255,255,255,.45);display:flex;gap:16px;flex-wrap:wrap;align-items:center}
.art-hero-meta time{color:#E2CC8A}

/* ── CONTENT BODY ──────────────────────────────────── */
.art-body{max-width:780px;margin:0 auto;padding:56px 40px 72px}
.art-body h2{font-family:'Cormorant Garamond','CG Fallback',Georgia,serif;font-size:clamp(26px,3.5vw,38px);font-weight:700;color:#fff;margin:48px 0 16px;line-height:1.12}
.art-body h2:first-child{margin-top:0}
.art-body h2 em{font-style:italic;color:#C5A44B}
.art-body h3{font-family:'Cormorant Garamond','CG Fallback',Georgia,serif;font-size:22px;font-weight:700;color:#fff;margin:36px 0 12px;line-height:1.2}
.art-body p{font-size:15.5px;line-height:1.75;color:rgba(255,255,255,.84);margin-bottom:20px}
.art-body p strong{color:#E2CC8A}
.art-body a{color:#C5A44B;text-decoration:underline;text-decoration-color:rgba(197,164,75,.4);text-underline-offset:3px;transition:color .2s}
.art-body a:hover{color:#E2CC8A}
.art-body ul,.art-body ol{margin:0 0 24px 0;padding:0;list-style:none}
.art-body li{display:flex;gap:10px;align-items:baseline;font-size:15px;line-height:1.7;color:rgba(255,255,255,.82);padding:6px 0}
.art-body li::before{content:'→';color:#C5A44B;font-weight:700;flex-shrink:0}
.art-body ol{counter-reset:ol-counter}
.art-body ol li{counter-increment:ol-counter}
.art-body ol li::before{content:counter(ol-counter) '.';color:#C5A44B;font-weight:700;min-width:1.6rem;flex-shrink:0}

/* Callout boxes */
.callout{background:#162040;border:1px solid rgba(197,164,75,.25);border-left:4px solid #C5A44B;border-radius:6px;padding:24px 28px;margin:28px 0}
.callout p{margin-bottom:0;font-size:14.5px}
.callout-title{font-size:11px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:#C5A44B;margin-bottom:10px;display:block}

.callout-danger{border-left-color:#C0392B;background:rgba(192,57,43,.08)}
.callout-danger .callout-title{color:#FF6B6B}

.callout-success{border-left-color:#27ae60;background:rgba(39,174,96,.08)}
.callout-success .callout-title{color:#58d68d}

/* Quote blocks */
.art-quote{border-left:3px solid #C5A44B;padding:16px 0 16px 20px;margin:28px 0;font-style:italic;color:rgba(255,255,255,.78);font-size:15px;line-height:1.7}
.art-quote cite{display:block;font-style:normal;font-size:12px;font-weight:600;color:#C5A44B;margin-top:10px;letter-spacing:.06em}

/* Table */
.art-table{width:100%;border-collapse:collapse;margin:28px 0;font-size:14px}
.art-table th{background:#162040;color:#E2CC8A;font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;padding:14px 16px;text-align:left;border-bottom:2px solid rgba(197,164,75,.3)}
.art-table td{padding:14px 16px;border-bottom:1px solid rgba(197,164,75,.1);color:rgba(255,255,255,.82);vertical-align:top}
.art-table tr:hover td{background:rgba(197,164,75,.04)}

/* ── TOPIC CLUSTER NAV (internal linking) ──────────── */
.cluster-nav{background:#162040;border-top:1px solid rgba(197,164,75,.15);border-bottom:1px solid rgba(197,164,75,.15);padding:28px 40px}
.cluster-nav-inner{max-width:1100px;margin:0 auto}
.cluster-nav-title{font-size:10.5px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:#C5A44B;margin-bottom:14px}
.cluster-nav-grid{display:flex;flex-wrap:wrap;gap:8px}
.cluster-nav-pill{font-size:12px;color:rgba(255,255,255,.72);background:rgba(197,164,75,.08);border:1px solid rgba(197,164,75,.2);padding:7px 16px;border-radius:3px;text-decoration:none;transition:all .2s;white-space:nowrap}
.cluster-nav-pill:hover{background:rgba(197,164,75,.15);color:#E2CC8A}
.cluster-nav-pill.current{background:rgba(197,164,75,.18);color:#E2CC8A;font-weight:600;border-color:rgba(197,164,75,.4)}

/* ── CTA SECTION ───────────────────────────────────── */
.s-cta{background:#162040;border-top:1px solid rgba(197,164,75,.25);padding:72px 40px;text-align:center}
.s-cta-inner{max-width:640px;margin:0 auto}
.s-cta h2{font-family:'Cormorant Garamond','CG Fallback',Georgia,serif;font-size:clamp(30px,4.5vw,48px);font-weight:700;color:#fff;line-height:1.1;margin-bottom:18px}
.s-cta h2 em{font-style:italic;color:#C5A44B}
.s-cta p{font-size:16px;line-height:1.65;color:rgba(255,255,255,.82);margin-bottom:32px}
.s-cta-btn{display:inline-block;background:#C5A44B;color:#0B1628;padding:16px 36px;border-radius:4px;font-size:15px;font-weight:700;text-decoration:none;letter-spacing:.03em;transition:all .2s}
.s-cta-btn:hover{background:#E2CC8A;transform:translateY(-1px);box-shadow:0 8px 28px rgba(197,164,75,.35)}
.s-cta-disclaimer{font-size:12px;color:#6B7A8D;margin-top:18px;line-height:1.5}

/* ── FAQ SECTION ───────────────────────────────────── */
.faq-section{padding:60px 40px;max-width:780px;margin:0 auto}
.faq-section h2{font-family:'Cormorant Garamond','CG Fallback',Georgia,serif;font-size:32px;font-weight:700;color:#fff;margin-bottom:32px}
.faq-item{border-bottom:1px solid rgba(197,164,75,.12);padding:0}
.faq-q{width:100%;background:none;border:none;color:#fff;font-family:'DM Sans','DMS Fallback',Arial,sans-serif;font-size:15px;font-weight:500;text-align:left;padding:20px 40px 20px 0;cursor:pointer;position:relative;line-height:1.5;transition:color .2s}
.faq-q:hover{color:#E2CC8A}
.faq-q::after{content:'+';position:absolute;right:0;top:50%;transform:translateY(-50%);font-size:22px;font-weight:300;color:#C5A44B;transition:transform .25s}
.faq-q[aria-expanded="true"]::after{transform:translateY(-50%) rotate(45deg)}
.faq-a{max-height:0;overflow:hidden;transition:max-height .35s ease,padding .35s ease}
.faq-a-inner{padding:0 0 20px;font-size:14.5px;line-height:1.7;color:rgba(255,255,255,.75)}
.faq-a-inner a{color:#C5A44B}

/* ── FOOTER ────────────────────────────────────────── */
.s-footer{background:#080f1c;border-top:1px solid rgba(197,164,75,.2);padding:32px 40px;text-align:center}
.s-footer-logo{font-family:'Cormorant Garamond','CG Fallback',Georgia,serif;font-size:18px;font-weight:600;color:#C5A44B;text-decoration:none;display:inline-block;margin-bottom:12px}
.s-footer-links{display:flex;justify-content:center;gap:20px;margin-bottom:14px;flex-wrap:wrap}
.s-footer-links a{font-size:12px;color:#E2CC8A;text-decoration:none;transition:color .2s}
.s-footer-links a:hover{color:#fff}
.s-footer-text{font-size:12px;color:#8A99AA;line-height:1.6;max-width:600px;margin:0 auto}
.s-footer-contact{font-size:12px;color:#8A99AA;margin-top:12px;letter-spacing:.03em}
.s-footer-contact a{color:#E2CC8A;text-decoration:none}

/* ── CHATBOT (identical to index.html) ─────────────── */
#chat-bubble{position:fixed;bottom:28px;right:28px;width:56px;height:56px;background:#C5A44B;border-radius:50%;display:flex;align-items:center;justify-content:center;cursor:pointer;z-index:999;box-shadow:0 4px 20px rgba(197,164,75,.4);transition:transform .2s,box-shadow .2s}
#chat-bubble:hover{transform:scale(1.08);box-shadow:0 8px 32px rgba(197,164,75,.5)}
#chat-window{position:fixed;bottom:96px;right:28px;width:360px;max-height:540px;background:#162040;border:1px solid rgba(197,164,75,.25);border-radius:12px;display:none;flex-direction:column;z-index:998;box-shadow:0 20px 60px rgba(0,0,0,.5);overflow:hidden}
#chat-window.open{display:flex}
.chat-header{padding:16px 20px;background:#0B1628;border-bottom:1px solid rgba(197,164,75,.2);display:flex;align-items:center;gap:12px}
.chat-dot{width:8px;height:8px;background:#2ECC71;border-radius:50%;animation:pulse 2s infinite;flex-shrink:0}
@keyframes pulse{0%,100%{opacity:1;transform:scale(1)}50%{opacity:.5;transform:scale(1.3)}}
.chat-header-info h4{font-family:'Cormorant Garamond','CG Fallback',Georgia,serif;font-size:16px;font-weight:700;color:#fff}
.chat-header-info p{font-size:11px;color:#6B7A8D}
.chat-close{margin-left:auto;background:none;border:none;color:#6B7A8D;cursor:pointer;font-size:18px;padding:4px}
.chat-close:hover{color:#fff}
#chat-messages{flex:1;overflow-y:auto;padding:16px;display:flex;flex-direction:column;gap:12px;max-height:360px}
.msg{max-width:88%;padding:10px 14px;border-radius:10px;font-size:13.5px;line-height:1.55}
.msg.bot{background:#1E2D4A;border:1px solid rgba(197,164,75,.2);color:rgba(255,255,255,.88);align-self:flex-start;border-radius:10px 10px 10px 2px}
.msg.user{background:#C5A44B;color:#0B1628;align-self:flex-end;font-weight:500;border-radius:10px 10px 2px 10px}
.msg.typing{background:#1E2D4A;border:1px solid rgba(197,164,75,.2);align-self:flex-start;color:#6B7A8D;font-style:italic}
.chat-input-row{padding:12px 16px;border-top:1px solid rgba(197,164,75,.2);display:flex;gap:8px}
#chat-input{flex:1;background:#0B1628;border:1px solid rgba(197,164,75,.25);border-radius:6px;padding:10px 14px;font-size:13px;color:#fff;font-family:'DM Sans','DMS Fallback',Arial,sans-serif;outline:none}
#chat-input::placeholder{color:#6B7A8D}
#chat-input:focus{border-color:#C5A44B}
#chat-send{background:#C5A44B;border:none;border-radius:6px;width:38px;height:38px;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:background .2s;flex-shrink:0}
#chat-send:hover{background:#E2CC8A}
.chat-branding{padding:8px 16px;text-align:center;font-size:11px;color:#6B7A8D;border-top:1px solid rgba(197,164,75,.08)}
.chat-branding a{color:#E2CC8A;text-decoration:none}

/* ── COOKIE BANNER ─────────────────────────────────── */
#cookie-banner{position:fixed;bottom:0;left:0;right:0;z-index:9000;background:#0B1628;border-top:1px solid rgba(197,164,75,.25);padding:1.5rem 2rem;display:none;align-items:center;justify-content:space-between;gap:2rem;flex-wrap:wrap;box-shadow:0 -8px 40px rgba(11,22,40,.4)}
#cookie-banner.hidden{display:none!important}
.cookie-text{flex:1;min-width:260px;font-size:.79rem;font-weight:300;color:rgba(255,255,255,.6);line-height:1.7}
.cookie-text strong{color:#E2CC8A;font-weight:500}
.cookie-text a{color:#E2CC8A;text-decoration:underline}
.cookie-actions{display:flex;gap:.6rem;align-items:center;flex-shrink:0}
.btn-cookie{font-size:.7rem;font-weight:600;letter-spacing:.08em;text-transform:uppercase;padding:.55rem 1.2rem;border:none;border-radius:3px;cursor:pointer;transition:all .2s}
.btn-cookie-accept{background:#C5A44B;color:#0B1628}
.btn-cookie-accept:hover{background:#E2CC8A}
.btn-cookie-reject{background:transparent;color:rgba(255,255,255,.5);border:1px solid rgba(255,255,255,.15)}
.btn-cookie-reject:hover{color:rgba(255,255,255,.8)}
.btn-cookie-prefs{background:none;border:none;color:rgba(255,255,255,.4);font-size:.68rem;letter-spacing:.06em;text-transform:uppercase;cursor:pointer;padding:.4rem .8rem;text-decoration:underline}

/* Cookie preferences panel */
#cookie-panel{position:fixed;bottom:0;left:0;right:0;z-index:9001;background:#0B1628;border-top:1px solid rgba(197,164,75,.25);padding:2rem;transform:translateY(100%);transition:transform .3s ease;box-shadow:0 -12px 48px rgba(0,0,0,.5)}
#cookie-panel.open{transform:translateY(0)}
.cp-title{font-family:'Cormorant Garamond','CG Fallback',Georgia,serif;font-size:20px;font-weight:700;color:#fff;margin-bottom:16px}
.cp-row{display:flex;justify-content:space-between;align-items:center;padding:14px 0;border-bottom:1px solid rgba(197,164,75,.1)}
.cp-label{font-size:13px;color:rgba(255,255,255,.82)}
.cp-label small{display:block;font-size:11px;color:rgba(255,255,255,.45);margin-top:2px}
.toggle-sw{position:relative;display:inline-block;width:40px;height:22px}
.toggle-sw input{opacity:0;width:0;height:0}
.toggle-sl{position:absolute;cursor:pointer;top:0;left:0;right:0;bottom:0;background:rgba(255,255,255,.15);border-radius:22px;transition:.3s}
.toggle-sl::before{content:'';position:absolute;height:16px;width:16px;left:3px;bottom:3px;background:#fff;border-radius:50%;transition:.3s}
.toggle-sw input:checked+.toggle-sl{background:#C5A44B}
.toggle-sw input:checked+.toggle-sl::before{transform:translateX(18px)}
.cp-actions{display:flex;gap:10px;margin-top:20px}

/* ── ANIMATIONS ────────────────────────────────────── */
@keyframes fadeUp{from{opacity:0;transform:translateY(16px)}to{opacity:1;transform:translateY(0)}}
.art-hero-tag{animation:fadeUp .4s ease both}
.art-hero h1{animation:fadeUp .4s .08s ease both}
.art-hero-lead{animation:fadeUp .4s .16s ease both}

/* ── RESPONSIVE ────────────────────────────────────── */
@media(max-width:900px){
  .s-nav{padding:12px 20px}
  .s-nav-links .s-nav-link{display:none}
  .s-nav-menu{display:block}
  .s-nav-links.open .s-nav-link{display:block}
  .art-hero{padding:40px 20px 36px}
  .art-body{padding:40px 20px 56px}
  .breadcrumb{padding:12px 20px 0}
  .cluster-nav{padding:20px 20px}
  .s-cta{padding:56px 20px}
  .faq-section{padding:48px 20px}
  .s-footer{padding:24px 20px}
  #chat-window{width:calc(100vw - 32px);right:16px;bottom:84px}
  .art-table{font-size:12.5px}
  .art-table th,.art-table td{padding:10px 12px}
}
