/* Ehna logo: mark + name rendered as text, so the name follows the visitor's language */
/* Latin name: Montserrat (strong geometric display) — SIL Open Font License, self-hosted */
@font-face { font-family: "Ehna Display"; font-style: normal; font-weight: 700 900; font-display: swap; src: url("../fonts/montserrat-latin.woff2?v=1") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD; }
.ehna-brand.is-latin .ehna-brand-w1, .ehna-brand.is-latin .ehna-brand-w2 { font-family: "Ehna Display", "Montserrat", system-ui, sans-serif; }
.ehna-brand.is-latin .ehna-brand-w1 { font-weight: 900; letter-spacing: .06em; }
.ehna-brand.is-latin .ehna-brand-w2 { font-weight: 800; letter-spacing: .42em; }
.ehna-brand { display: inline-flex; align-items: center; gap: .5em; line-height: 1; white-space: nowrap; font-size: 16px; color: inherit; }
.ehna-brand--sm { font-size: 15.5px; }
.ehna-brand--lg { font-size: 22px; }
.ehna-brand-icon { width: 2.5em; height: 2.5em; flex: none; object-fit: contain; }
.ehna-brand-text { display: inline-flex; flex-direction: column; align-items: center; gap: .22em; }
.ehna-brand-w1 {
  font-weight: 900; font-size: 1.6em; letter-spacing: .02em; padding-block: .06em;
  background: linear-gradient(90deg, #f7931e 0%, #ffb02e 18%, #1da1e6 46%, #1585d8 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
/* Latin "EHNA": orange E, blue HNA, like the original artwork */
.ehna-brand.is-latin .ehna-brand-w1 { background: linear-gradient(90deg, #f7931e 0 24%, #1d9fe6 24% 100%); -webkit-background-clip: text; background-clip: text; }
[dir=rtl] .ehna-brand-w1, [dir=RTL] .ehna-brand-w1 { background-image: linear-gradient(270deg, #f7931e 0%, #ffb02e 18%, #1da1e6 46%, #1585d8 100%); }
.ehna-brand-w2 { font-weight: 800; font-size: .58em; letter-spacing: .34em; margin-inline-start: .34em; color: #22313f; }
.ehna-brand.is-joined .ehna-brand-w2 { letter-spacing: 0; margin-inline-start: 0; font-size: .7em; }
/* dark backgrounds */
html[data-theme$="-dark"] .ehna-brand-w2, body.night-mode .ehna-brand-w2, .ehna-brand--light .ehna-brand-w2 { color: #eef2f7; }
@media (max-width: 380px) { .ehna-brand-text[data-hide-xs] { display: none; } }
.ehna-brand .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ehna-brand--lg { margin-bottom: 1.25rem; }

/* ---------- Latin name: engraved (carved into the surface) ----------
   - the letters keep their orange/blue fill, darkened at the top edge = the inner wall of the cut
   - a copy behind them (::after, from data-text) draws a dark lip above and a light bevel below */
.ehna-brand.is-latin .ehna-brand-text { isolation: isolate; }
.ehna-brand.is-latin .ehna-brand-w1, .ehna-brand.is-latin .ehna-brand-w2 { position: relative; }
.ehna-brand.is-latin .ehna-brand-w1 {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, .45) 0%, rgba(0, 0, 0, .14) 32%, rgba(0, 0, 0, 0) 55%, rgba(255, 255, 255, .14) 100%),
    linear-gradient(90deg, #f7931e 0 24%, #1d9fe6 24% 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.ehna-brand.is-latin .ehna-brand-w1::after, .ehna-brand.is-latin .ehna-brand-w2::after {
  content: attr(data-text); position: absolute; inset: 0; z-index: -1; pointer-events: none;
  padding: inherit; letter-spacing: inherit; font: inherit; color: transparent;
  -webkit-background-clip: border-box; background: none;
  text-shadow: 0 -1px 0 rgba(0, 0, 0, .5), 0 1px 0 rgba(255, 255, 255, 1), 0 2px 1px rgba(255, 255, 255, .55), 0 0 1px rgba(0, 0, 0, .25);
}
.ehna-brand.is-latin .ehna-brand-w2 {
  color: #2b3a48;
  background: linear-gradient(180deg, #16212b 0%, #33475a 60%, #4a6075 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
/* dark surfaces: the lip is a deep shadow, the bevel a faint light edge */
html[data-theme$="-dark"] .ehna-brand.is-latin .ehna-brand-w1::after, html[data-theme$="-dark"] .ehna-brand.is-latin .ehna-brand-w2::after,
body.night-mode .ehna-brand.is-latin .ehna-brand-w1::after, body.night-mode .ehna-brand.is-latin .ehna-brand-w2::after,
.ehna-brand--light.is-latin .ehna-brand-w1::after, .ehna-brand--light.is-latin .ehna-brand-w2::after {
  text-shadow: 0 -1px 0 rgba(0, 0, 0, .85), 0 1px 0 rgba(255, 255, 255, .22), 0 2px 2px rgba(0, 0, 0, .35);
}
html[data-theme$="-dark"] .ehna-brand.is-latin .ehna-brand-w2, body.night-mode .ehna-brand.is-latin .ehna-brand-w2, .ehna-brand--light.is-latin .ehna-brand-w2 {
  background: linear-gradient(180deg, #9fb0c0 0%, #e6edf4 55%, #ffffff 100%);
  -webkit-background-clip: text; background-clip: text;
}
