/* OTSI site-specific styles, loaded after the 6.6.0 template and theme.
   Keep this file small: prefer template classes over custom CSS. */

/* Header logo: keep the OTSI logo a sensible height */
.header-organization-banner .logo-img {
  max-height: 70px;
  width: auto;
}

/* Home page: executive profile cards stack in the right column */
.executive-profile + .executive-profile {
  margin-top: 1rem;
}
/* Round photos: the template's generic "figure > img { width: 100% }" rule
   stretches these into ovals, so lock them to a 100x100 square and crop. */
.executive-profile > img {
  width: 100px;
  height: 100px;
  max-width: none;
  flex-shrink: 0;
  object-fit: cover;
  object-position: center top;
}

/* Keyboard shortcut table on the Accessibility page */
.table kbd {
  white-space: nowrap;
}

/* Home page feature box (strategic plan).
   Uses the theme's secondary color so it follows light/dark mode:
   Santa Cruz = pale blue (#EFF4FA), Ukiah Dark = deep blue (#014A72). */
.otsi-feature {
  background-color: var(--color-s1, #eff4fa);
  color: var(--text-color, inherit);
}

/* Keyboard shortcut labels (Accessibility page): readable in both modes */
kbd {
  color: #fff;
  background-color: #212529;
  border: 1px solid #6c757d;
}

/* Page banner (CMIPS home page): sits inside the page column, so its edges
   line up with the content ("Overview" on the left, the sidebar on the right)
   and it scales down on smaller screens. */
.otsi-banner {
  margin-bottom: 1.5rem;
}
.otsi-banner img {
  display: block;
  width: 100%;
  height: auto;
}

/* Photo banner with text (EBT home page): the photo sits behind a dark tint
   so the white text meets contrast requirements in light and dark mode. */
.otsi-hero {
  position: relative;
  background-size: cover;
  background-position: center;
  border-radius: 0.5rem;
  overflow: hidden;
  min-height: 260px;
  display: flex;
  align-items: flex-end;
}
.otsi-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.35));
}
.otsi-hero-text {
  position: relative;
  color: #fff;
  padding: 1.5rem 2rem;
  width: 100%;
  text-align: center;
}
.otsi-hero-text p {
  color: #fff;
  margin-bottom: 0.75rem;
}
.otsi-hero-title {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
}

/* Long web addresses used as link text wrap instead of widening the page on phones */
.main-primary a {
  overflow-wrap: anywhere;
}

/* Wide content (e.g. an image with a clickable map) scrolls sideways on its own
   on small screens instead of making the whole page scroll */
.otsi-scroll-x {
  overflow-x: auto;
}

/* Very long words in headings (e.g. "INFORMATION/COOKIES") wrap on phones */
.main-primary h1,
.main-primary h2,
.main-primary h3,
.main-primary h4 {
  overflow-wrap: break-word;
}
