/* EVENTS layout adapters for the shared corporate styles. */
.events-site whml-visitor-header { display: block; position: relative; --whml-header-max-width: var(--max, 1440px); }
.events-site .masthead .language-picker { margin-block-end: 0; }
.events-site .masthead .brand { margin: 0; }
.events-site .masthead [slot="actions"] { display: flex; flex-wrap: wrap; gap: 8px; }
.visitor-control {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: .5rem .75rem;
  border: 1px solid #ffffff55;
  border-radius: 6px;
  background: #ffffff12;
  color: #fff;
  text-decoration: none;
  font: inherit;
}
.visitor-control:is(:hover, :focus-visible) { background: #ffffff26; }
.visitor-control:focus-visible { outline: 3px solid #ffcc82; outline-offset: 2px; }

.events-site .masthead .primary-nav {
  display: flex;
  position: static;
  inset: auto;
  flex: 1 1 100%;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  padding: 0;
  background: transparent;
  box-shadow: none;
}
.events-site .masthead .primary-nav > a { display: flex; align-items: center; min-height: 44px; }
.events-site .brand-type strong,
.events-site .footer-wordmark,
html[data-whml-contrast="high"] .events-site .brand-type strong,
html[data-whml-contrast="high"] .events-site .footer-wordmark { color: #fff !important; }
.events-site .masthead .brand-caption {
  min-width: 0;
  max-width: 100%;
  text-transform: none;
}
.events-site .footer-main { grid-template-columns: 1.5fr 1fr; }
.events-site .footer-main nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: start; }
.events-site .footer-main .footer-link { min-height: 44px; display: inline-flex; align-items: center; }

.events-site .page-hero {
  --page-masthead-height: 0px;
  min-height: 0;
}
.events-site .page-hero-layout { min-height: clamp(16rem, 35vw, 25rem); }
.events-site .events-hero-compact .page-hero-layout { min-height: clamp(10rem, 24vw, 16rem); }
.events-site .page-hero-story { padding-left: 0; padding-inline-start: var(--page-story-inset); }
.events-site .page-hero-actions .text-link { min-height: 44px; display: inline-flex; align-items: center; }

.events-site .content .events-module, .events-module .event-card, .editorial-card { background: var(--whml-surface); }
.events-module a:not(.button), .event-type, .topic, .editorial-card a, .editorial-link { color: var(--blue-deep); }
.events-module :is(a, button, input, select, h2):focus-visible,
.proposal-form textarea:focus-visible, .editorial-link:focus-visible, .editorial-card a:focus-visible {
  outline-color: var(--whml-focus);
}
.events-group-past .event-schedule { background: var(--whml-surface-hover); border-color: var(--muted); }
html[data-whml-theme="dark"] .events-module .events-sample {
  color: var(--whml-focus);
  background: var(--whml-surface-soft);
}

@media (max-width: 800px) {
  .events-site .masthead .primary-nav { gap: 4px 18px; }
  .events-site .masthead .primary-nav > a { padding-block: 10px; }
}
@media (max-width: 640px) {
  .events-site .footer-main { grid-template-columns: 1fr; }
  /* Leave room for the fixed return control, including at the RTL edge. */
  .events-site whml-legal-footer { padding-block-end: 2.25rem; background: #091b27; }
}
