html{font-size:100%}
html[data-font="1"]{font-size:100%}
html[data-font="1.1"]{font-size:110%}
html[data-font="1.2"]{font-size:120%}

:root{
  --ink:#173b2a;
  --muted:#4a5f52;
  --brand:#165c34;
  --brand-2:#0f4826;
  --soft:#fff;
  --line:#e7eee9;
  --white:#fff;
  --hdr-h:133px;
  --hdr-top-breath:20px;
  --hdr-h-m:88px;
  --eph-shell:1180px;
}

html,body{overflow-anchor:none}
body{padding-top:var(--hdr-h)}

#eph-header{
  position:fixed;
  inset:0 0 auto 0;
  z-index:10000;
  display:flex;
  flex-direction:column;
  overflow:visible;
  padding-top:var(--hdr-top-breath);
  padding-bottom:8px;
  background:var(--soft);
  color:var(--ink);
  border-bottom:0;
  -webkit-backdrop-filter:saturate(160%) blur(6px);
  backdrop-filter:saturate(160%) blur(6px);
}

body.admin-bar #eph-header{top:32px}

#eph-nav-toggle,
#eph-search-toggle,
#lang-toggle{
  display:none;
  appearance:none;
  -webkit-appearance:none;
  border:0;
  outline:0;
}

/* Tooltips */
.tooltip-wrap{
  position:relative;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:48px;
  min-height:48px;
  overflow:visible;
}
.tooltip-bubble{
  position:absolute;
  top:120%;
  left:50%;
  z-index:12000;
  padding:4px 10px;
  border-radius:999px;
  background:#3b3f46;
  color:#fff;
  font-size:11px;
  font-weight:600;
  white-space:nowrap;
  box-shadow:0 8px 20px rgba(0,0,0,.25);
  opacity:0;
  pointer-events:none;
  transform:translateX(-50%) translateY(4px);
  transition:opacity .15s ease,transform .15s ease;
}
.tooltip-bubble::after{
  content:"";
  position:absolute;
  top:-4px;
  left:50%;
  border-width:4px 5px;
  border-style:solid;
  border-color:#3b3f46 transparent transparent transparent;
  transform:translateX(-50%);
}
.tooltip-wrap:hover .tooltip-bubble{
  opacity:1;
  transform:translateX(-50%) translateY(0);
}
#lang-toggle:checked ~ .tooltip-bubble,
.eph-account-wrap.is-open .tooltip-bubble{
  opacity:0;
  pointer-events:none;
}

/* Top row: restore original vertical geometry; controls keep 48px hit targets. */
.eph-topbar{
  position:relative;
  height:30px;
  overflow:visible;
  background:var(--soft);
  font-size:12px;
}
.eph-topbar .inner{
  max-width:1140px;
  height:100%;
  margin:0 auto;
  padding:0 20px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  overflow:visible;
}
.eph-topbar-left{
  flex:1;
  display:flex;
  align-items:center;
  gap:8px;
}
.eph-topbar-left .pill-ai{display:none}
.pill-ai{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:3px 10px;
  border:1px solid var(--line);
  border-radius:999px;
  background:#fff;
  color:var(--ink);
  font-size:11px;
  font-weight:600;
}
.pill-ai .icon{
  width:20px;
  height:20px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:1px solid var(--line);
  border-radius:50%;
  background:#fff;
}
.pill-ai .icon img{display:block;width:18px;height:18px;filter:grayscale(1) contrast(1.05)}

.eph-topbar-center{
  flex:1;
  display:flex;
  justify-content:flex-end;
  padding-right:269px;
  color:var(--muted);
  opacity:.95;
  overflow:visible;
}
.top-tools{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:6px;
  margin-top:4px;
  overflow:visible;
}
.top-pill{
  min-width:48px;
  height:48px;
  min-height:48px;
  padding:0 10px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  border:0;
  border-radius:50%;
  background:transparent;
  color:var(--muted);
  font-size:15px;
  font-weight:600;
  line-height:1;
  cursor:pointer;
  text-decoration:none;
  box-shadow:none;
  outline:none;
}
.top-pill.js-font{width:auto;border-radius:0}
.top-pill svg{display:block;width:22px;height:22px;stroke:currentColor;fill:none;pointer-events:none}

.eph-topbar-right{
  display:flex;
  align-items:center;
  gap:10px;
  margin-right:17px;
  overflow:visible;
}
.topbar-profile{
  position:relative;
  width:48px;
  height:48px;
  padding:0;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:0;
  border-radius:50%;
  background:transparent;
  color:var(--muted);
  text-decoration:none;
  box-shadow:none;
  outline:none;
}
.topbar-profile svg{display:block;width:20px;height:20px;stroke:currentColor;fill:none;stroke-width:1.8;pointer-events:none}

/* Main row */
.eph-main{
  position:relative;
  height:72px;
  display:flex;
  align-items:center;
  overflow:visible;
}
#eph-header .wrap{
  position:relative;
  width:100%;
  max-width:1160px;
  margin:0 auto;
  padding:0 20px;
  display:grid;
  grid-template-columns:210px 1fr auto;
  gap:16px;
  align-items:center;
  overflow:visible;
}
#eph-header .eph-main .wrap::after{
  content:"";
  position:absolute;
  left:32px;
  right:26px;
  bottom:-5px;
  height:.5px;
  border-radius:999px;
  background:rgba(23,59,42,.16);
}

/* Logo: single owner, original desktop proportions. */
.eph-logo{
  display:flex;
  flex-direction:column;
  align-items:center;
  min-width:180px;
  min-height:60px;
  margin-top:-36px;
  padding:0 0 2px;
  gap:2px;
  overflow:visible;
}
.eph-logo a{
  display:flex;
  align-items:center;
  color:var(--ink);
  text-decoration:none;
}
.eph-logo img{
  display:block;
  width:auto;
  height:90px;
  max-width:none;
  object-fit:contain;
}
.eph-logo .txt{display:none}
.logo-tagline{
  max-width:190px;
  margin-top:-8px;
  color:var(--muted);
  font-size:10px;
  line-height:1.15;
  text-align:center;
}

/* Desktop navigation: hidden until burger opens it. */
nav.eph-nav{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:16px;
  margin:0;
  max-height:0;
  overflow:hidden;
  opacity:0;
  pointer-events:none;
  transform:translateX(18px);
  transition:opacity .18s ease,max-height .22s ease,transform .22s ease;
}
#eph-nav-toggle:checked ~ .eph-main nav.eph-nav{
  max-height:80px;
  overflow:visible;
  opacity:1;
  pointer-events:auto;
  transform:translateX(0);
}
nav.eph-nav .nav-item > a{
  position:relative;
  display:inline-block;
  padding:7px 0;
  color:var(--ink);
  font-size:13px;
  font-weight:700;
  line-height:1.35;
  text-decoration:none;
  white-space:nowrap;
}
nav.eph-nav .nav-item > a::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  height:2px;
  background:var(--brand);
  transform:scaleX(0);
  transform-origin:left center;
  transition:transform .18s ease;
}
nav.eph-nav .nav-item > a:hover,
nav.eph-nav .nav-item > a.is-active,
nav.eph-nav .nav-item.current-menu-item > a{color:var(--brand)}
nav.eph-nav .nav-item > a:hover::after,
nav.eph-nav .nav-item > a.is-active::after,
nav.eph-nav .nav-item.current-menu-item > a::after{transform:scaleX(1)}

/* Mega menu */
.mega-menu{
  position:absolute;
  top:100%;
  left:50%;
  z-index:9999;
  width:min(960px,90vw);
  padding:18px 22px 20px;
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
  border:1px solid var(--line);
  border-radius:18px;
  background:var(--white);
  box-shadow:0 22px 60px rgba(7,38,19,.15);
  opacity:0;
  pointer-events:none;
  transform:translate(-40%,10px);
  transition:opacity .18s ease,transform .18s ease;
}
.nav-item.has-mega:hover .mega-menu,
body.eph-hero-mega-open #eph-header .nav-item.has-mega .mega-menu{
  opacity:1;
  pointer-events:auto;
  transform:translate(-43%,0);
}
.mega-title{
  grid-column:1/-1;
  margin-bottom:4px;
  color:var(--muted);
  font-size:13px;
  letter-spacing:.12em;
  text-transform:uppercase;
}
.mega-item{
  display:flex;
  align-items:flex-start;
  gap:10px;
  padding:10px 9px;
  border-radius:12px;
  color:var(--ink);
  text-decoration:none;
  transition:background-color .15s ease,transform .15s ease,box-shadow .15s ease;
}
.mega-item:hover{
  background:#eef6ef;
  transform:translateY(-1px);
  box-shadow:0 10px 25px rgba(0,0,0,.06);
}
.mega-item .emoji img{
  display:block;
  width:26px;
  height:26px;
  filter:invert(31%) sepia(11%) saturate(900%) hue-rotate(84deg) brightness(90%) contrast(95%);
}
.mega-item .txt{display:flex;flex-direction:column;gap:2px}
.mega-item .name{font-size:14px;font-weight:700}
.mega-item .desc{color:var(--muted);font-size:13px}

/* Right-side actions */
.eph-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:10px;
  overflow:visible;
}
.icon-btn{
  width:48px;
  height:48px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:0;
  border:0;
  border-radius:50%;
  background:transparent;
  color:var(--muted);
  cursor:pointer;
  text-decoration:none;
  box-shadow:none;
  outline:none;
}
.icon-btn svg{display:block;width:22px;height:22px;stroke:currentColor;fill:none;stroke-width:2;pointer-events:none}
.icon-btn img{display:block;width:24px;height:24px;pointer-events:none}

/* Burger deliberately keeps its own rounded-square visual language. */
.tooltip-burger{min-width:52px;min-height:52px}
.eph-actions .burger{
  position:relative;
  z-index:3;
  width:52px;
  height:52px;
  margin:0 8px 0 0;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:0;
  border-radius:14px;
  background:transparent;
  cursor:pointer;
  box-shadow:none;
  transition:background-color .2s ease,box-shadow .2s ease,transform .2s ease;
}
.eph-actions .burger span,
.eph-actions .burger::before,
.eph-actions .burger::after{
  content:"";
  position:absolute;
  left:50%;
  width:22px;
  height:2px;
  border-radius:999px;
  background:var(--ink);
  transform:translateX(-50%);
  transition:background-color .2s ease,transform .2s ease;
}
.eph-actions .burger span{top:50%;transform:translate(-50%,-50%)}
.eph-actions .burger::before{top:calc(50% - 6px)}
.eph-actions .burger::after{top:calc(50% + 6px)}
.eph-actions .burger:hover{transform:translateY(-1px);box-shadow:0 6px 14px rgba(0,0,0,.12)}
#eph-nav-toggle:checked ~ .eph-main .burger{
  background:#103155;
  box-shadow:0 10px 22px rgba(0,0,0,.22);
}
#eph-nav-toggle:checked ~ .eph-main .burger span,
#eph-nav-toggle:checked ~ .eph-main .burger::before,
#eph-nav-toggle:checked ~ .eph-main .burger::after{background:#fff}

/* Language */
.lang-dropdown{position:relative;font-size:13px}
.lang-current{
  min-width:64px;
  padding:8px 16px;
  display:inline-flex;
  align-items:center;
  justify-content:space-between;
  gap:6px;
  border:1px solid var(--line);
  border-radius:12px;
  background:#fff;
  color:var(--ink);
  font-size:14px;
  cursor:pointer;
}
.lang-current .chevron svg{display:block;width:14px;height:9px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.lang-menu{
  position:absolute;
  right:0;
  z-index:9999;
  min-width:70px;
  margin-top:4px;
  padding:4px 0;
  border:1px solid var(--line);
  border-radius:12px;
  background:#fff;
  box-shadow:0 14px 40px rgba(0,0,0,.14);
  opacity:0;
  pointer-events:none;
  transform:translateY(6px);
  transition:opacity .16s ease,transform .16s ease;
}
.lang-menu a{display:block;padding:7px 12px;color:var(--ink);font-size:13px;text-decoration:none;white-space:nowrap}
.lang-menu a:hover{background:#eef6ef}
.lang-menu a.active{color:var(--brand);font-weight:700}
#lang-toggle:checked + .lang-dropdown .lang-menu{opacity:1;pointer-events:auto;transform:translateY(0)}
#lang-toggle:checked + .lang-dropdown .lang-current{color:var(--brand);border-color:#cde5d6;box-shadow:0 10px 24px rgba(0,0,0,.06);transform:translateY(-1px)}

/* Account trigger */
#eph-header .eph-account-wrap{
  position:relative;
  z-index:13100;
  width:48px;
  height:48px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  overflow:visible;
}
#eph-header .eph-account-trigger{
  position:relative;
  width:48px;
  height:48px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:0;
  border:0;
  border-radius:50%;
  background:transparent;
  color:var(--muted);
  text-decoration:none;
  cursor:pointer;
  overflow:visible;
}
#eph-header .eph-account-avatar{
  width:24px;
  height:24px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  border-radius:50%;
  background:transparent;
  color:var(--muted);
  line-height:1;
}
#eph-header .eph-account-avatar [hidden]{display:none}
#eph-header .eph-account-avatar img:not([hidden]){display:block;width:100%;height:100%;object-fit:cover;border-radius:50%}
#eph-header .eph-account-avatar span:not([hidden]){width:100%;height:100%;display:inline-flex;align-items:center;justify-content:center;color:var(--brand);font-size:12px;font-weight:800;text-transform:uppercase}
#eph-header .eph-account-avatar svg:not([hidden]){display:block;width:21px;height:21px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
#eph-header .eph-account-wrap.is-logged-in .eph-account-avatar{background:#e7f5eb;color:var(--brand)}
#eph-header .eph-account-wrap.is-logged-in::after{
  content:"";
  position:absolute;
  right:0;
  bottom:0;
  z-index:2;
  width:10px;
  height:10px;
  box-sizing:border-box;
  border:2px solid #fff;
  border-radius:50%;
  background:#20a857;
  pointer-events:none;
}
#eph-header .eph-account-status-dot{display:none}

/* Mobile burger panel. Desktop uses the horizontal nav row. */
.mnav{
  position:fixed;
  top:var(--hdr-h);
  left:50%;
  z-index:9990;
  width:min(1180px,100vw);
  max-height:calc(100vh - var(--hdr-h) - 24px);
  padding:20px 22px 24px;
  overflow-y:auto;
  border:1px solid var(--line);
  border-radius:18px;
  background:rgba(246,251,247,.98);
  box-shadow:0 24px 60px rgba(7,38,19,.14);
  opacity:0;
  pointer-events:none;
  transform:translate3d(-50%,-10px,0);
  transition:opacity .2s ease,transform .24s cubic-bezier(.19,1,.22,1);
}
.mnav-inner{display:grid;grid-template-columns:2fr 1fr;gap:24px}
.mnav-section-title{margin:4px 0 6px;color:var(--muted);font-size:12px;letter-spacing:.14em;text-transform:uppercase}
.mnav-top-links,.mnav-main-links,.mnav-extra-links{display:flex;flex-direction:column;gap:6px}
.mnav-main-links{margin-top:4px}
.mnav-extra-links{margin-top:10px}
.mnav-top-links a,.mnav-main-links a,.mnav-extra-links a{padding:7px 0;color:var(--ink);font-size:15px;font-weight:700;text-decoration:none}
.mnav .lang-row{display:flex;align-items:center;flex-wrap:wrap;gap:6px;margin-top:10px;color:var(--muted);font-size:13px}
.mnav .lang-row a{color:var(--ink);text-decoration:none}
.mnav .lang-row a.active-lang{color:var(--brand);font-weight:700}

/* Search */
.eph-search-overlay{
  position:fixed;
  inset:0;
  z-index:12000;
  display:flex;
  align-items:flex-start;
  justify-content:center;
  padding-top:96px;
  background:rgba(10,23,15,.28);
  opacity:0;
  pointer-events:none;
}
#eph-search-toggle:checked + #eph-header .eph-search-overlay{opacity:1;pointer-events:auto}
.search-panel{
  width:min(720px,90vw);
  padding:20px 22px 16px;
  border:1px solid #d7eadf;
  border-radius:22px;
  background:rgba(246,251,247,.98);
}
.search-panel-header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}
.search-panel-header h2{margin:0;display:flex;align-items:center;gap:8px;color:var(--ink);font-size:16px}
.search-close span,
.eph-news-close span,
.eph-help-close span,
.xenyra-chat-close span{position:relative;display:block;width:15px;height:15px}
.search-close span::before,.search-close span::after,
.eph-news-close span::before,.eph-news-close span::after,
.eph-help-close span::before,.eph-help-close span::after,
.xenyra-chat-close span::before,.xenyra-chat-close span::after{
  content:"";
  position:absolute;
  top:50%;
  left:0;
  width:15px;
  height:2px;
  border-radius:2px;
  background:var(--ink);
  transform-origin:center;
}
.search-close span::before,.eph-news-close span::before,.eph-help-close span::before,.xenyra-chat-close span::before{transform:translateY(-50%) rotate(45deg)}
.search-close span::after,.eph-news-close span::after,.eph-help-close span::after,.xenyra-chat-close span::after{transform:translateY(-50%) rotate(-45deg)}

#eph-header .search-input-wrap{
  display:flex;
  align-items:center;
  gap:10px;
  margin-bottom:10px;
  padding:10px 14px;
  border:1px solid #d7eadf;
  border-radius:18px;
  background:#fff;
}
#eph-header .search-input-wrap:focus-within{border-color:#cde5d6;box-shadow:0 0 0 1px #cde5d6}
#eph-header .search-input-wrap > svg{width:18px;height:18px;flex:0 0 18px;stroke:var(--muted);fill:none;pointer-events:none}
#eph-header .search-input-wrap input[type="search"]{
  flex:1;
  min-width:0;
  padding:0;
  border:0;
  outline:0;
  background:transparent;
  color:var(--ink);
  font-size:15px;
  font-weight:600;
  box-shadow:none;
}
#eph-header .search-input-wrap input[type="search"]::-webkit-search-cancel-button{
  display:none;
  width:0;
  height:0;
  margin:0;
  opacity:0;
  pointer-events:none;
  appearance:none;
  -webkit-appearance:none;
}
#eph-header .search-clear{
  width:34px;
  height:34px;
  display:none;
  align-items:center;
  justify-content:center;
  padding:0;
  border:0;
  border-radius:50%;
  background:transparent;
  color:var(--muted);
  cursor:pointer;
}
#eph-header .search-input-wrap.has-value .search-clear{display:flex}
#eph-header .search-clear span{position:relative;display:block;width:11px;height:11px}
#eph-header .search-clear span::before,#eph-header .search-clear span::after{
  content:"";
  position:absolute;
  top:50%;
  left:50%;
  width:11px;
  height:2px;
  border-radius:2px;
  background:currentColor;
  transform-origin:center;
}
#eph-header .search-clear span::before{transform:translate(-50%,-50%) rotate(45deg)}
#eph-header .search-clear span::after{transform:translate(-50%,-50%) rotate(-45deg)}
.search-actions{display:flex;align-items:center;gap:8px;margin:0;padding:0;background:transparent}
.search-voice,.search-send{
  position:relative;
  width:34px;
  height:34px;
  flex:0 0 34px;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:0;
  border:0;
  border-radius:50%;
  background:transparent;
  color:var(--ink);
  cursor:pointer;
}
.search-voice svg,.search-send svg{display:block;width:18px;height:18px;stroke:currentColor;fill:none;stroke-width:1.6}
.search-voice.is-recording{background:#fff;box-shadow:0 10px 22px rgba(0,0,0,.14);animation:search-breathe 1.4s ease-in-out infinite alternate}
.search-send .send-loader{display:none;width:14px;height:14px;border:2px solid rgba(22,92,52,.18);border-top-color:var(--brand);border-radius:50%;animation:search-spin .7s linear infinite}
.search-send.is-loading .send-icon{display:none}
.search-send.is-loading .send-loader{display:block}
.search-hints{display:flex;align-items:center;flex-wrap:wrap;gap:6px;color:var(--muted);font-size:12px}
.search-hints > span{font-weight:700}
.search-hints .chip{padding:3px 9px;border:1px solid var(--line);border-radius:999px;background:#eef6ef;color:var(--muted);text-decoration:none}

@keyframes search-spin{to{transform:rotate(360deg)}}
@keyframes search-breathe{from{transform:scale(1)}to{transform:scale(1.03)}}

/* Xenyra brand control */
.xenyra-combo{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:0;
  border:0;
  background:transparent;
  color:inherit;
  cursor:pointer;
}
.xenyra-orb{
  width:34px;
  height:34px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:50%;
  background:#eef8f1;
  box-shadow:0 8px 18px rgba(7,38,19,.14);
}
.xenyra-logo{display:block;width:22px;height:22px}
.xenyra-tag{
  display:inline-flex;
  align-items:center;
  min-height:22px;
  padding:3px 10px;
  border-radius:999px;
  background:var(--brand-2);
  color:#fff;
  font-size:11px;
  font-weight:700;
  letter-spacing:.12em;
}

/* News / Help overlays. Motion is owned only by interaction-states.css. */
.eph-news-overlay,.eph-help-overlay{
  position:fixed;
  inset:0;
  display:flex;
  justify-content:flex-end;
  align-items:stretch;
  background:rgba(10,23,15,.28);
  opacity:0;
  pointer-events:none;
}
.eph-news-overlay{z-index:11900}
.eph-help-overlay{z-index:11890}
.eph-news-open .eph-news-overlay,.eph-help-open .eph-help-overlay{opacity:1;pointer-events:auto}
.eph-news-panel,.eph-help-panel{
  height:100vh;
  max-height:100vh;
  margin:0;
  display:flex;
  flex-direction:column;
  border-radius:24px 0 0 24px;
  background:#fff;
  overflow:hidden;
}
.eph-news-panel{width:min(380px,90vw);padding:20px 22px 18px;gap:14px}
.eph-help-panel{width:min(420px,92vw);padding:22px 22px 20px;gap:16px}
.eph-news-header,.eph-help-header{display:flex;align-items:center;justify-content:space-between;gap:10px}
.eph-news-title,.eph-help-title{
  display:flex;
  align-items:center;
  gap:9px;
  color:var(--muted);
  font-size:15px;
  font-weight:700;
  letter-spacing:.16em;
  text-transform:uppercase;
}
.eph-news-logo,.eph-help-logo{display:block;width:22px;height:22px;flex:0 0 22px;color:var(--brand);stroke:currentColor}
.eph-news-body,.eph-help-body{overflow-y:auto;padding-right:4px;color:var(--ink);font-size:14px;line-height:1.45}
.eph-news-body{max-height:calc(100vh - 90px)}
.eph-help-body{max-height:calc(100vh - 110px)}
.eph-news-item{padding:8px 0 10px;border-bottom:1px solid var(--line)}
.eph-news-item:last-child{border-bottom:0}
.eph-news-item .label,.eph-help-label{margin-bottom:3px;color:var(--muted);font-size:11px;letter-spacing:.14em;text-transform:uppercase}
.eph-news-item .title,.eph-help-heading{font-weight:700}
.eph-news-item .meta{margin-top:2px;color:var(--muted);font-size:12px}
.eph-help-block{margin-bottom:10px;padding:12px 13px;border:1px solid var(--line);border-radius:16px;background:#f6fbf7}
.eph-help-block:last-child{margin-bottom:0}
.eph-help-heading{margin-bottom:4px}
.eph-help-text{margin-bottom:6px;color:var(--muted);font-size:13px}
.eph-help-link{color:var(--brand);font-size:13px;font-weight:600;text-decoration:none}
.eph-help-links-row{display:flex;flex-wrap:wrap;gap:6px;margin-top:4px}
.eph-help-chip{padding:4px 9px;border:1px solid var(--line);border-radius:999px;background:#fff;color:var(--muted);font-size:12px;text-decoration:none}
.eph-help-xenyra-cta{display:flex;align-items:center;gap:12px;margin-top:12px}

/* Xenyra chat shell: mechanics unchanged. */
.xenyra-chat{
  position:fixed;
  inset:0;
  z-index:12100;
  display:flex;
  align-items:flex-end;
  justify-content:flex-end;
  padding:20px;
  background:rgba(10,23,15,.28);
  opacity:0;
  pointer-events:none;
  transition:opacity .2s ease;
}
.xenyra-chat.is-open{opacity:1;pointer-events:auto}
.xenyra-chat-inner{
  width:min(430px,94vw);
  max-height:min(720px,calc(100vh - 40px));
  display:flex;
  flex-direction:column;
  overflow:hidden;
  border:1px solid var(--line);
  border-radius:22px;
  background:#fff;
  box-shadow:0 26px 80px rgba(7,38,19,.24);
}
.xenyra-chat-header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 16px;border-bottom:1px solid var(--line)}
.xenyra-chat-title{display:flex;align-items:center;gap:10px}
.xenyra-chat-text{display:flex;flex-direction:column;gap:2px}
.xenyra-chat-text strong{color:var(--ink)}
.xenyra-chat-text span{color:var(--muted);font-size:12px}
.xenyra-chat-body{flex:1;min-height:220px;overflow:auto;padding:14px 16px}
.xenyra-chat-form{padding:12px 14px 14px;border-top:1px solid var(--line)}
.xenyra-input-wrap{display:flex;align-items:flex-end;gap:8px;padding:8px 10px;border:1px solid #d7eadf;border-radius:16px;background:#fff}
.xenyra-input-wrap textarea{flex:1;min-height:34px;max-height:130px;padding:7px 0;border:0;outline:0;resize:none;background:transparent;color:var(--ink);font:inherit}
.xenyra-clear,.xenyra-voice,.xenyra-send{width:34px;height:34px;flex:0 0 34px;display:inline-flex;align-items:center;justify-content:center;padding:0;border:0;border-radius:50%;background:transparent;color:var(--ink);cursor:pointer}
.xenyra-voice svg,.xenyra-send svg{width:18px;height:18px;stroke:currentColor;fill:none}
.xenyra-clear{display:none}
.xenyra-input-wrap.has-value .xenyra-clear{display:inline-flex}
.xenyra-clear span{position:relative;width:11px;height:11px}
.xenyra-clear span::before,.xenyra-clear span::after{content:"";position:absolute;top:50%;left:50%;width:11px;height:2px;background:currentColor}
.xenyra-clear span::before{transform:translate(-50%,-50%) rotate(45deg)}
.xenyra-clear span::after{transform:translate(-50%,-50%) rotate(-45deg)}

/* Canonical header interaction states. Layout and motion stay in their own owners. */
@media(hover:hover) and (pointer:fine){
  .top-pill:not(.js-font):hover,
  .topbar-profile:hover,
  .icon-btn:hover,
  .search-close:hover,
  .eph-news-close:hover,
  .eph-help-close:hover,
  .xenyra-chat-close:hover{
    color:var(--brand);
    background:transparent;
    box-shadow:0 0 0 11px rgba(22,92,52,.035),0 7px 18px rgba(15,57,36,.075);
    transform:translateY(-1px) scale(1.022);
  }

  .top-pill.js-font:hover{
    color:var(--brand);
    transform:translateY(-1px) scale(1.035);
  }

  .search-clear:hover,
  .search-voice:hover,
  .search-send:hover,
  .xenyra-clear:hover,
  .xenyra-voice:hover,
  .xenyra-send:hover{
    color:var(--brand);
    background:transparent;
    box-shadow:0 0 0 9px rgba(22,92,52,.035),0 6px 15px rgba(15,57,36,.07);
    transform:translateY(-1px) scale(1.02);
  }

  .lang-current:hover{
    color:var(--brand);
    border-color:#cde5d6;
    box-shadow:0 10px 24px rgba(0,0,0,.06);
    transform:translateY(-1px);
  }
}

.top-pill:active,
.topbar-profile:active,
.icon-btn:active,
.search-close:active,
.eph-news-close:active,
.eph-help-close:active,
.xenyra-chat-close:active{
  transform:translateY(0) scale(.985);
}

.top-pill:focus,
.topbar-profile:focus,
.icon-btn:focus,
.search-close:focus,
.eph-news-close:focus,
.eph-help-close:focus,
.xenyra-chat-close:focus,
.search-clear:focus,
.search-voice:focus,
.search-send:focus{
  outline:none;
}

.top-pill:not(.js-font):focus-visible,
.topbar-profile:focus-visible,
.icon-btn:focus-visible,
.search-close:focus-visible,
.eph-news-close:focus-visible,
.eph-help-close:focus-visible,
.xenyra-chat-close:focus-visible{
  box-shadow:0 0 0 8px rgba(23,107,61,.105);
}

.top-pill.js-font:focus-visible{
  text-decoration:underline;
  text-decoration-thickness:2px;
  text-underline-offset:5px;
}

html[data-font="1"] .top-pill.js-font[data-font="1"],
html[data-font="1.1"] .top-pill.js-font[data-font="1.1"],
html[data-font="1.2"] .top-pill.js-font[data-font="1.2"]{
  color:var(--brand);
  font-weight:760;
}

.search-close,
.eph-news-close,
.eph-help-close,
.xenyra-chat-close{
  position:relative;
  width:48px;
  height:48px;
  min-width:48px;
  min-height:48px;
  padding:0;
  display:flex;
  align-items:center;
  justify-content:center;
  border:0;
  border-radius:50%;
  background:transparent;
  color:var(--ink);
  cursor:pointer;
  box-shadow:none;
}

.top-pill > *,
.topbar-profile > *,
.icon-btn > *,
.search-close > *,
.eph-news-close > *,
.eph-help-close > *,
.xenyra-chat-close > *{
  pointer-events:none;
}

/* Responsive */
@media(max-width:1080px){
  #eph-header .wrap{grid-template-columns:minmax(0,1fr) auto}
  nav.eph-nav{display:none}
  #eph-nav-toggle:checked + .eph-topbar + .eph-main + .mnav{
    opacity:1;
    pointer-events:auto;
    transform:translate3d(-50%,0,0);
  }
}

@media(min-width:1081px){
  .mnav{display:none}
}

@media(max-width:880px){
  .mnav-inner{grid-template-columns:1fr}
}

@media(max-width:782px){
  body.admin-bar #eph-header{top:54px}
}

@media(max-width:640px){
  :root{--hdr-h-m:72px;--hdr-top-breath:0px}
  body{padding-top:var(--hdr-h-m)}
  #eph-header{padding-top:0;padding-bottom:0}
 .eph-topbar{height:auto}
  .eph-topbar .inner{height:auto;flex-wrap:wrap;row-gap:4px;padding:0 12px}
  .eph-topbar-center{justify-content:flex-start;padding-right:0}
  .eph-topbar-right{margin-right:0}
  .top-pill-print,.top-tools .top-pill-news{display:none}
  .eph-main{height:72px}
  #eph-header .wrap{grid-template-columns:minmax(0,1fr) auto;padding:0 12px;gap:8px}
  .eph-logo{min-width:0;min-height:0;margin-top:0;padding:0;flex-direction:row;align-items:center;justify-content:flex-start;gap:8px}
  .eph-logo img{height:42px}
  .logo-tagline{max-width:170px;margin-top:0;font-size:10px;line-height:1.3;text-align:left}
  .eph-actions{gap:6px}
  .eph-actions .burger,.icon-btn{width:40px;height:40px}
  .eph-actions .burger{margin-right:0}
  .icon-btn svg{width:20px;height:20px}
  .tooltip-bubble{display:none}
  .mnav{top:var(--hdr-h-m)}
  .mega-menu{display:none}
  .eph-search-overlay{padding-top:72px}
  .search-panel{width:100%;max-width:none;border-radius:0 0 22px 22px}
  .eph-news-panel,.eph-help-panel{width:100%;border-radius:0}
  .xenyra-chat{padding:0}
  .xenyra-chat-inner{width:100%;max-height:100vh;border-radius:22px 22px 0 0}
}

@media(max-width:480px){
  .logo-tagline{display:none}
}

@media(prefers-reduced-motion:reduce){
  #eph-header *,#eph-header *::before,#eph-header *::after{scroll-behavior:auto}
}
