/* ============================
   FONTS
   ============================ */
body {
  font-family: "Rubik", sans-serif;
  line-height: 1.5;
}

/* ============================
   TOP NAV BAR
   ============================ */
.top-bar, .top-bar ul {
  background-color: black;
}

.top-bar a {
  color: white;
  font-family: "Rubik", sans-serif;
  font-size: 1rem;
  letter-spacing: 0.02em;
  padding: 10px 16px;
}

.top-bar-left, .top-bar-right {
  gap: 4px;
}

/* ============================
   ACTIVE NAV TAB
   ============================ */
.menu .active > a,
.toc-block > ul .active > a,
.toc-block ul ul .active > a {
  background-color: #FE5C00 !important;
  color: #000000 !important;
  font-weight: 700;
}

.menu .active > a:hover,
.toc-block > ul .active > a:hover,
.menu .active > a:focus-visible {
  background-color: #e05300 !important;
  outline: 2px solid #FFFFFF;
  outline-offset: -2px;
}

/* ============================
   SEARCH BUTTON
   ============================ */
input[type="submit"], button.search-submit, .search-form button {
  background-color: #FE5C00;
  color: #000000;
  font-weight: 700;
  border: none;
}
input[type="submit"]:hover, button.search-submit:hover {
  background-color: #e05300;
}

/* ============================
   TIMELINE LABEL CROWDING FIX
   ============================ */
.tl-timemarker-content-container {
  max-width: 55px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  background: #000000 !important;
  border: 1px solid #FE5C00 !important;
  transition: max-width 0.15s ease, z-index 0s;
  font-size: 0.7rem;
}

.tl-timemarker-content-container:hover {
  max-width: 320px;
  white-space: normal;
  z-index: 50;
  position: relative;
}

.tl-timemarker-text {
  font-family: "Rubik", sans-serif;
  color: #FFFFFF !important;
}

.tl-timenav {
  height: 190px !important;
}

/* ============================
   GENERAL BUTTONS (Foundation theme defaults)
   ============================ */
.button {
  background-color: #FE5C00;
  color: #000000;
  font-weight: 600;
}

.button:hover, .button:focus-visible {
  background-color: #e05300;
  color: #000000;
  outline: 2px solid #000000;
  outline-offset: -2px;
}

/* Sort button (theme's default .browse-controls button) */
.browse-controls button,
form.sorting button[type="submit"] {
  background-color: #FE5C00 !important;
  color: #000000 !important;
  font-weight: 600;
  border: none;
}

.browse-controls button:hover,
form.sorting button[type="submit"]:hover {
  background-color: #e05300 !important;
}

/* Pagination prev/next arrows */
.omeka-pagination .button {
  background-color: #FE5C00 !important;
  color: #000000 !important;
  border: none;
}

.omeka-pagination .button:hover,
.omeka-pagination .button:focus-visible {
  background-color: #e05300 !important;
}

.omeka-pagination .button.disabled {
  background-color: #DDDDDD !important;
  color: #757575 !important;
  cursor: not-allowed;
}

/* ============ iao-hero ============ */
.iao-hero {
  position: relative;
  padding: 3.5rem 3rem;
  background-color: #000000;
  background-image: 
    repeating-linear-gradient(
      135deg,
      rgba(254, 92, 0, 0.06) 0px,
      rgba(254, 92, 0, 0.06) 1px,
      transparent 1px,
      transparent 40px
    ),
    url('https://oms.library.okstate.edu/files/asset/8ebf842a11b4cfeb4d0f8cdd5a40aca701a7aa4e.png');
  background-repeat: no-repeat, no-repeat;
  background-position: left top, right center;
  background-size: auto, 100% auto;
  border-left: 6px solid #FE5C00;
  overflow: hidden;
  color: #FFFFFF;
}
.iao-hero p:first-child {
  font-family: 'Fjalla One', sans-serif;
  font-size: 2.75rem;
  line-height: 1.15;
  color: #ffffff;
  max-width: 700px;
  margin: 0 0 2rem;
}
.iao-hero a {
  display: inline-block;
  font-family: 'Rubik', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  color: #1a1a1a;
  background: #FE5C00;
  text-decoration: none;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  margin: 0 0.75rem 0.5rem 0;
}
.iao-hero a:hover {
  background: #ffffff;
  color: #FE5C00;
}

/* ============ iao-stats ============ */
.iao-stats {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)) !important;
  gap: 1.25rem;
  padding: 2.5rem 1.5rem 1.75rem;
  background: #FAFAFA;
}
.iao-stats p {
  margin: 0;
  background: #ffffff;
  border: 1px solid #E0E0E0;
  border-top: 4px solid #FE5C00;
  border-radius: 8px;
  padding: 1.5rem 1rem;
  text-align: center;
  font-family: 'Rubik', sans-serif;
  color: #333333;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 140px;
}
.iao-stats strong {
  display: block;
  font-family: 'Fjalla One', sans-serif;
  font-size: 2.25rem;
  line-height: 1.1;
  color: #FE5C00;
  margin-bottom: 0.35rem;
}

/* ============ iao-pathways ============ */
.iao-pathways {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  grid-auto-flow: column;
  grid-template-rows: auto auto;
  gap: 0;
  padding: 2.5rem 1.5rem;
}
.iao-pathways p:has(a) {
  margin: 0;
  background: #ffffff;
  border: 1px solid #E0E0E0;
  border-bottom: none;
  border-radius: 8px 8px 0 0;
  padding: 1.25rem 1.25rem 0.5rem;
}
.iao-pathways p:not(:has(a)) {
  margin: 0 0 1.25rem;
  background: #ffffff;
  border: 1px solid #E0E0E0;
  border-top: none;
  border-radius: 0 0 8px 8px;
  padding: 0 1.25rem 1.25rem;
  color: #555555;
  font-size: 0.9rem;
  font-family: 'Rubik', sans-serif;
}
.iao-pathways a {
  font-family: 'Fjalla One', sans-serif;
  font-size: 1.1rem;
  color: #1a1a1a;
  text-decoration: none;
  border-bottom: 2px solid #FE5C00;
  padding-bottom: 2px;
}
.iao-pathways a:hover {
  color: #FE5C00;
}

/* ============ iao-mission ============ */
.iao-mission {
  max-width: 760px;
  margin: 3rem auto 2rem;
  background: #ffffff;
  border: 1px solid #E0E0E0;
  border-left: 4px solid #FE5C00;
  border-radius: 8px;
  padding: 2rem 2.25rem;
}
.iao-mission strong {
  display: block;
  font-family: 'Fjalla One', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 1.1rem;
  color: #1a1a1a;
  margin-bottom: 1rem;
}
.iao-mission p {
  font-family: 'Rubik', sans-serif;
  color: #333333;
  line-height: 1.6;
  margin-bottom: 1rem;
}

/* ============ iao-records (Browse preview) ============ */
.browse-preview a,
.resource-list a {
  color: #1a1a1a;
  text-decoration: none;
  border-bottom: 1px solid #FE5C00;
}
.browse-preview a:hover,
.resource-list a:hover {
  color: #FE5C00;
}
.iao-records .preview-block > a {
  color: #1a1a1a;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid #FE5C00;
}
.iao-records .preview-block > a:hover {
  color: #FE5C00;
}