/* Public editorial palette; loaded after legacy theme CSS. No consent/state overrides. */
:root {
  --endos-red: #9d1e11;
  --endos-red-hover: #7d180e;
  --endos-yellow: #f2b425;
  --endos-black: #080808;
  --endos-surface: #171717;
  --endos-text: #e8e8e8;
  --endos-muted: #cccccc;
  --endos-line: #545454;
}

body .why-join-btn,
body .read-more-button a,
body .slide__link a,
body .field--name-field-join-us-text .join-now-button,
body .node-9 .join-now-button,
body .navbar-btn.join-now,
body .webform-submission-form .webform-button--submit,
body.path-user-login .user-login-form .form-submit,
body .nexus-calendar__button--primary,
body .gifted-minecraft__button,
body .endos-create-guide a.endos-create-guide__button,
body .endos-server-choices__grid article a.endos-server-choices__button,
body .endos-server-choices__grid article:nth-child(2) a.endos-server-choices__button {
  background: var(--endos-red);
  border-color: var(--endos-red);
  color: #ffffff;
  border-radius: 4px;
  white-space: normal;
  overflow-wrap: anywhere;
}

body .why-join-btn:hover,
body .read-more-button a:hover,
body .slide__link a:hover,
body .field--name-field-join-us-text .join-now-button:hover,
body .node-9 .join-now-button:hover,
body .navbar-btn.join-now:hover,
body .webform-submission-form .webform-button--submit:hover,
body.path-user-login .user-login-form .form-submit:hover,
body.path-user-login .user-login-form .form-submit:focus,
body .nexus-calendar__button--primary:hover,
body .gifted-minecraft__button:hover,
body .gifted-minecraft__button:focus,
body .endos-create-guide a.endos-create-guide__button:hover,
body .endos-server-choices__grid article a.endos-server-choices__button:hover,
body .endos-server-choices__grid article:nth-child(2) a.endos-server-choices__button:hover {
  background: var(--endos-red-hover);
  border-color: var(--endos-yellow);
  color: #ffffff;
}

body .navbar-btn.join-now a,
body .field--name-field-join-us-text .join-now-button a,
body .node-9 .join-now-button a { color: #ffffff; }
body .slide__link a:active { background: var(--endos-yellow); color: var(--endos-black); }

.region-content a:focus-visible,
.navbar a:focus-visible,
.navbar button:focus-visible,
.webform-submission-form .webform-button--submit:focus-visible {
  outline: 3px solid var(--endos-yellow);
  outline-offset: 3px;
}

/* The last navigation item is a section, not a special blue call to action. */
body nav#block-endossmp-theme-main-menu ul.menu li a {
  /* Legacy last-item selectors otherwise paint nested links blue. */
  background: transparent !important;
  color: #ffffff !important;
}
body nav#block-endossmp-theme-main-menu ul.menu li a:hover,
body nav#block-endossmp-theme-main-menu ul.menu li a:focus {
  background: var(--endos-yellow) !important;
  color: var(--endos-black) !important;
}
body nav#block-endossmp-theme-main-menu .dropdown-menu {
  background: var(--endos-black);
  max-height: min(70vh, 620px);
  overflow-y: auto;
  max-width: calc(100vw - 32px);
}
body nav#block-endossmp-theme-main-menu .dropdown-menu a {
  white-space: normal;
  overflow-wrap: anywhere;
}

body .nexus-calendar,
body .nexus-recaps,
body .gifted-minecraft { color: var(--endos-text); }
body .nexus-calendar__hero,
body .nexus-calendar__notice,
body .nexus-calendar__time-table,
body .nexus-calendar__daily,
body .nexus-calendar__recaps,
body .nexus-calendar__themes div,
body .nexus-recaps__intro,
body .nexus-recaps__template,
body .nexus-recaps__checklist,
body .nexus-recaps__empty,
body .gifted-minecraft__intro,
body .gifted-minecraft__parents,
body .gifted-minecraft__grid article,
body .homepage-growth-links a {
  background: var(--endos-surface);
  border-color: var(--endos-line);
  color: var(--endos-text);
}
body .nexus-calendar__notice,
body .nexus-recaps__template { border-left-color: var(--endos-red); }
body .nexus-recaps__checklist { border-left-color: var(--endos-yellow); }
body .nexus-calendar__event { background: var(--endos-black); border-color: var(--endos-line); }
body .nexus-calendar__event::before { background: var(--endos-red); }
body .nexus-calendar__event:nth-child(even)::before { background: var(--endos-yellow); }
body .nexus-calendar__badge {
  background: var(--endos-black);
  border-color: var(--endos-yellow);
  color: var(--endos-yellow);
}
body .nexus-calendar__eyebrow,
body .nexus-recaps__eyebrow,
body .gifted-minecraft__eyebrow { color: var(--endos-yellow); }
body .nexus-calendar__event p,
body .nexus-calendar__section-heading p,
body .nexus-calendar__time-table p,
body .nexus-calendar__themes p,
body .nexus-calendar__date,
body .nexus-calendar__time,
body .gifted-minecraft__grid p,
body .homepage-growth-links span { color: var(--endos-muted); }
body .nexus-calendar__button--secondary {
  background: var(--endos-black);
  border-color: var(--endos-yellow);
  color: var(--endos-yellow);
}
body .nexus-calendar__button--secondary:hover {
  background: var(--endos-yellow);
  border-color: var(--endos-yellow);
  color: var(--endos-black);
}
body .nexus-calendar__time-table table,
body .nexus-calendar__time-table th,
body .nexus-calendar__time-table td {
  background: var(--endos-black);
  border-color: var(--endos-line);
  color: var(--endos-text);
}
body .nexus-calendar code,
body .nexus-recaps code,
body .gifted-minecraft code { border-color: var(--endos-line); color: #ffffff; background: var(--endos-black); }
body .homepage-growth-links a:hover,
body .homepage-growth-links a:focus { border-color: var(--endos-yellow); }
body .endos-server-choices__grid article { border-top-color: var(--endos-red); }
body .endos-server-choices__grid article:nth-child(2) { border-top-color: var(--endos-yellow); }
body .endos-create-guide a:not(.endos-create-guide__button),
body .endos-server-choices a:not(.endos-server-choices__button) { color: var(--endos-yellow); }
body .region-content .field--name-body a:not([class]):not(.join-now-button a) { color: var(--endos-yellow); }
body .region-content .field--name-body a:not([class]):not(.join-now-button a):hover { text-decoration: underline; }
body .table-comparison th,
body .table-comparison.flipped th { color: var(--endos-yellow); }
.endos-server-context { border-left: 4px solid var(--endos-yellow); padding: 12px 16px; margin-bottom: 24px; }
