/* ==================================================
   EOS BASE STYLES â€” GLOBAL LAYOUT + NORMALISATION
   ================================================== */

/* ============================
   1) GLOBAL FOUNDATION
   ============================ */
*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background-color: var(--color-bg-page);
  color: var(--color-text-primary);
  font-family: var(--font-family-base);
  font-size: var(--font-size-md);
  line-height: 1.4;
}

/* ============================
   2) GLOBAL WRAPPERS
   ============================ */
/* Offset fixed top navigation/menu */
.page-wrapper {
  padding-top: var(--page-offset-top);
  padding-bottom: var(--page-offset-bottom);
  margin: 0;
}

/* Header logo image (desktop hidden, mobile shown) */
.title-bar img {
  max-width: 100%;
  height: auto;
  margin: var(--space-5) auto;
  display: none;
}

/* ============================
   3) GLOBAL CONTROL STANDARD
   ============================ */
:where(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
  select,
  textarea,
  button) {
  font-family: var(--font-family-base) !important;
  font-size: var(--font-size-md) !important;
  border-radius: var(--radius-md) !important;
}

:where(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
  select,
  textarea,
  button) {
  min-height: var(--control-height);
  padding: var(--control-padding-y) var(--control-padding-x);
  margin: var(--control-margin-y) 0;
}

:where(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
  select,
  textarea) {
  border: 1px solid var(--color-border);
  background-color: var(--color-bg-surface);
  color: var(--color-text-primary);
}

:where(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
  select,
  textarea,
  button):focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 1px;
}

/* Date/time control polish */
input[type="date"],
input[type="datetime-local"],
input[type="time"] {
  min-width: 170px;
  appearance: none;
  -webkit-appearance: none;
  background-color: var(--color-bg-surface);
  color: var(--color-text-primary);
  border: 1px solid var(--color-border);
  padding-top: calc(var(--control-padding-y) * 0.5) !important;
  padding-bottom: calc(var(--control-padding-y) * 0.5) !important;
  margin-top: calc(var(--control-margin-y) * 0.5) !important;
  margin-bottom: calc(var(--control-margin-y) * 0.5) !important;
}

input[type="date"]::-webkit-calendar-picker-indicator,
input[type="datetime-local"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator {
  cursor: pointer;
  opacity: 0.85;
  filter: saturate(0.9) contrast(1.05);
}

input[type="date"]::-webkit-calendar-picker-indicator:hover,
input[type="datetime-local"]::-webkit-calendar-picker-indicator:hover,
input[type="time"]::-webkit-calendar-picker-indicator:hover {
  opacity: 1;
}

select {
  appearance: none;
  -webkit-appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--color-text-secondary) 50%),
    linear-gradient(135deg, var(--color-text-secondary) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) calc(50% + 1px),
    calc(100% - 12px) calc(50% + 1px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 32px;
}

/* ============================
   4) GLOBAL SCROLLBARS
   ============================ */
html,
body,
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(42, 144, 184, 0.9) rgba(11, 43, 58, 0.14);
}

*::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

*::-webkit-scrollbar-track {
  background: linear-gradient(180deg, rgba(11, 43, 58, 0.14), rgba(42, 144, 184, 0.08));
  border-radius: 999px;
}

*::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #2a90b8, #1d6f8d);
  border: 2px solid rgba(255, 255, 255, 0.75);
  border-radius: 999px;
  box-shadow: 0 0 0 1px rgba(42, 144, 184, 0.35), 0 6px 16px rgba(11, 43, 58, 0.25);
}

*::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #34a7d6, #1f7c9f);
}

/* ============================
   5) MOBILE OVERRIDES
   ============================ */
@media (max-width: 795px) {
  .page-wrapper {
    padding-top: var(--page-offset-top-mobile);
  }

  .title-bar {
    flex-direction: column;
    margin-top: -20px !important;
    align-items: center;
    text-align: center;
  }

  .title-bar img {
    display: block;
    margin-bottom: var(--space-2) !important;
  }
}

.eos-nav-icon-wrap{position:relative;display:inline-flex}
.eos-nav-badge{
  position:absolute;
  top:5px;
  right:0px;
  min-width:18px;
  height:18px;
  padding:0 5px;
  border-radius:999px;
  background:#d90429;
  color:#fff;
  font-size:0.72rem;
  font-weight:800;
  line-height:18px;
  text-align:center;
  border:2px solid #fff;
  box-shadow:0 2px 6px rgba(0,0,0,.28);
  z-index:5;
}

/* Instruction cards: no underlines + black text */
.instructions a,
.instructions a:visited,
.instructions a:hover,
.instructions a:focus,
.instructions a:active{
  text-decoration:none !important;
  color:#000 !important;
}

.instructions,
.instructions h1,
.instructions h2,
.instructions h3,
.instructions h4,
.instructions p,
.instructions .instruction-item,
.instructions .instruction-item p{
  color:#000 !important;
}

