/* Industry landing pages (generated by landing/build.mjs). Builds on styles.css + aec.css. */

/* ---------- Language switcher ---------- */
.lang-switch { position: relative; }
.lang-switch summary {
  display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, .28); border-radius: var(--radius);
  font: 500 14.5px/1 var(--font-mono); letter-spacing: .25px; color: var(--text-inverse);
  cursor: pointer; list-style: none; transition: border-color var(--dur) var(--ease);
}
.lang-switch summary::-webkit-details-marker { display: none; }
.lang-switch summary::after {
  content: ""; width: 8px; height: 8px; margin-top: -4px;
  border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg);
}
.lang-switch summary:hover, .lang-switch[open] summary { border-color: var(--brand-accent); }
.lang-switch summary:focus-visible { outline: 2px solid var(--brand-accent); outline-offset: 2px; }
.lang-switch ul {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 20; min-width: 180px; padding: 8px;
  background: var(--bg-page); border: 1px solid var(--border-standard); border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(24, 21, 31, .12);
}
.lang-switch li a {
  display: block; padding: 10px 12px; border-radius: var(--radius);
  font-size: 15px; line-height: 1.3; color: var(--text-primary);
}
.lang-switch li a:hover { background: var(--bg-surface); }
.lang-switch li a[aria-current="page"] { color: var(--brand-accent-text); font-weight: 600; }

/* ---------- White CTAs on the dark nav and hero (all landing pages and /3d) ---------- */
.site-nav--dark .btn--light, .aec-hero .btn--light { background: var(--n-00); color: var(--brand-primary); gap: 16px; }
.site-nav--dark .btn--light:hover, .aec-hero .btn--light:hover { background: var(--brand-primary-subtle); }

/* ---------- Card title legibility on light topic imagery ---------- */
.file-card__media--scrim::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(42, 22, 52, .82) 0%, rgba(42, 22, 52, .5) 45%, rgba(42, 22, 52, 0) 75%);
}

/* ---------- Longer translations ---------- */
.page-landing .aec-hero__title, .page-landing .h1, .page-landing .file-card__title { overflow-wrap: break-word; hyphens: auto; }
.page-landing .file-card__title { max-width: 260px; }

@media (max-width: 767px) {
  /* The AEC nav hides its links on mobile; keep the language switcher visible (also on /3d, via .has-lang-switch). */
  .page-landing .site-nav__links, .has-lang-switch .site-nav__links {
    display: flex; position: static; flex-direction: row; align-items: center; gap: 0;
    margin-left: auto; padding: 0; background: none; border: 0;
  }
  .page-landing .site-nav__links > .btn, .has-lang-switch .site-nav__links > .btn { display: none; }
  .lang-switch summary { height: 40px; }
  .aec-hero__actions .btn--light { height: 52px; }
}
