/**
 * @file
 * URBANMUSICS: reproduces the look of the former Gavias Tico theme
 * (orange skin + the site's custom CSS) on top of Olivero.
 */

:root {
  --um-accent: #eb866a;      /* Gavias "orange" skin. */
  --um-link: #ff8c00;        /* Site custom CSS: a { color: #ff8c00 }. */
  --um-ink: #282828;
  --um-heading: #3b3e43;
  --um-text: #333;
  --um-muted: #999;
  --um-font-body: "Open Sans", Arial, sans-serif;
  --um-font-head: "Raleway", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --um-container: 1170px;
  --um-header-offset: var(--drupal-displace-offset-top, 0px);
}

/* ------------------------------------------------------------------ Base */
html { font-size: 100%; }
body {
  margin: 0;
  color: var(--um-text);
  background-color: #efefef;          /* body.boxed: plain, no texture. */
  background-image: none;             /* Remove Olivero's drop-pattern SVG. */
  font-family: var(--um-font-body);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.8;
}
.um-page {
  max-width: 1440px;                  /* body.boxed */
  margin: 0 auto;
  background: #fff;
  box-shadow: 0 5px 5px rgba(0, 0, 0, 0.15);
}
a { color: var(--um-link); text-decoration: none; transition: color 0.35s; }
a:hover, a:focus { color: var(--um-accent); }
a:focus-visible { outline: 2px solid var(--um-accent); outline-offset: 2px; }

h1, h2, h3, h4, h5, h6 {
  margin: 12.5px 0;
  color: var(--um-heading);
  font-family: var(--um-font-head);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 1px;
  text-transform: capitalize;
}
h1 { font-size: 32px; }
h2 { font-size: 28px; font-weight: 200; }   /* Site custom CSS. */
h3 { font-size: 24px; }
h4 { font-size: 20px; }
p { margin: 0 0 10px; }
.node--view-mode-full p { margin-bottom: 10px; }
.field__label { font-weight: 800; }
.views-field-title { font-weight: 600; }
.field--name-field-date { font-weight: 800; }

.um-container {
  box-sizing: border-box;
  width: 100%;
  max-width: var(--um-container);
  margin: 0 auto;
  padding: 0 15px;
}

/* Neutralise Olivero's own page grid/offsets inside our layout. */
.um-page .layout-main-wrapper,
.um-page .layout-main { max-width: none; margin: 0; padding: 0; }
/* Olivero makes .layout-main a reversed flex row at >=75rem, which squeezes
 * the hero, title band and content into side-by-side columns. Stack them. */
.um-page .layout-main {
  display: block;
  flex-direction: column;
}
.um-page .layout-main > * { width: 100%; }
.um-titleband { width: 100%; }
.um-page .region { display: block; }

/* --------------------------------------------------------------- Header */
.um-header {
  position: sticky;                   /* gv-sticky-menu / .stuck */
  z-index: 100;
  top: var(--um-header-offset);
  background: #fff;
  box-shadow: 0 0 5px 5px rgba(0, 0, 0, 0.1);
}
.um-header__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 60px;                   /* Reduced header (was 80px, then 72px). */
}
.um-header__branding {
  display: flex;
  flex: 0 0 auto;
  align-items: center;                /* Same height as the menu items. */
  align-self: stretch;
}
.um-header__branding .region { display: flex; align-items: center; height: 100%; }
/* Undo Olivero's branding box: bottom alignment, min sizes, negative margins
 * and gradient background. */
.um-header .site-branding,
.um-header .site-branding__inner,
.um-header .site-branding__text {
  display: flex;
  align-items: center;
  width: auto;
  min-width: 0;
  height: auto;
  min-height: 0;
  margin: 0;
  padding: 0;
  color: var(--um-link);
  background: none !important;
}
.um-header .site-branding__logo { display: none; }
.um-header .site-branding__name {
  margin: 0;
  font-family: var(--um-font-head);
  font-size: 28px;                    /* Site custom CSS. */
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
}
/* Orange, as on the former site (a { color: #ff8c00 }). */
.um-header .site-branding__name a,
.um-header .site-branding__inner a,
.um-header .site-branding__text a {
  color: var(--um-link);
  text-decoration: none;
}
.um-header .site-branding__name a:hover,
.um-header .site-branding__name a:focus { color: var(--um-accent); }
.um-header .site-branding__slogan { display: none; }

@media (min-width: 75rem) {
  .um-header__nav.header-nav {
    position: static;
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    justify-content: flex-end;
    width: auto;
    max-width: none;
    height: auto;
    padding: 0;
    visibility: visible;
    border: 0;
    background: none;
    box-shadow: none;
    transform: none;
  }
  /* Menu always on a single line. */
  .um-header__nav.header-nav { min-width: 0; }
  .um-header .primary-nav { flex: 0 1 auto; min-width: 0; }
  .um-header .primary-nav__menu--level-1 {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0;
    margin: 0;
    padding: 0;
  }
  .um-header .primary-nav__menu-item--level-1 {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    margin: 0;
    white-space: nowrap;
  }
  .um-header .primary-nav__menu-link--level-1 {
    display: block;
    padding: 20px 6px;                /* Reduced header (was 30px, then 26px). */
    white-space: nowrap;
    color: var(--um-heading);
    font-family: var(--um-font-head);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
  }
  .um-header .primary-nav__menu-link--level-1:hover,
  .um-header .primary-nav__menu-link--level-1.is-active,
  .um-header .primary-nav__menu-link--active-trail { color: var(--um-accent); }
  /* Dropdown toggle ("Database"): small chevron right after the label. */
  .um-header .primary-nav__button-toggle {
    width: auto;
    min-width: 0;
    height: auto;
    margin: 0 4px 0 -2px;
    padding: 20px 2px;
    color: var(--um-heading);
  }
  .um-header .primary-nav__button-toggle:hover { color: var(--um-accent); }
  .um-header .primary-nav__menu-link-inner { padding: 0; }

  /* Beat Olivero's wide-nav rules (body:not(.is-always-mobile-nav) …), which
   * add 36px between items and push the menu onto a second line. */
  body:not(.is-always-mobile-nav) .um-header .primary-nav__menu--level-1 {
    flex-wrap: nowrap;
    align-items: center;
    margin-inline-end: 0;
  }
  body:not(.is-always-mobile-nav) .um-header .primary-nav__menu-item--level-1,
  body:not(.is-always-mobile-nav) .um-header .primary-nav__menu-item--level-1:not(:last-child) {
    width: auto;
    max-width: none;
    margin: 0;
  }
  body:not(.is-always-mobile-nav) .um-header .primary-nav__button-toggle {
    width: 1.25rem;
    margin-inline: -4px 6px;
  }
  body:not(.is-always-mobile-nav) .um-header .primary-nav__menu-link-inner {
    padding: 0;
  }
  /* Olivero fixes the nav container at ~108px tall and the links' line-height
   * at 27px with equally specific selectors: that is what kept the header
   * tall. Let the header height come from the link padding instead. */
  body:not(.is-always-mobile-nav) .um-header .header-nav {
    height: auto;
    margin-block-start: 0;
  }
  body:not(.is-always-mobile-nav) .um-header .primary-nav__menu-link {
    line-height: 1.8;                 /* 13px x 1.8 = ~23px, as in Gavias. */
  }
  /* No box/outline around the menu text when an item is clicked/selected
   * (Olivero draws a 2px bordered box on :focus). Keyboard users still get a
   * visible indicator, as an orange underline instead of a box. */
  body:not(.is-always-mobile-nav) .um-header .primary-nav__menu-link:focus,
  body:not(.is-always-mobile-nav) .um-header .primary-nav__button-toggle:focus {
    outline: 0;
  }
  body:not(.is-always-mobile-nav) .um-header .primary-nav__menu-link:focus::before,
  body:not(.is-always-mobile-nav) .um-header .primary-nav__menu-link--button.primary-nav__menu-link--has-children:focus::before,
  body:not(.is-always-mobile-nav) .um-header .primary-nav__button-toggle:focus::before {
    content: none;
    border: 0;
  }
  body:not(.is-always-mobile-nav) .um-header .primary-nav__menu-link:focus-visible .primary-nav__menu-link-inner {
    text-decoration: underline;
    text-decoration-color: var(--um-accent);
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
  }
  .um-header .primary-nav__menu-link-inner::after { display: none; }   /* Olivero underline. */
  .um-header .mobile-buttons { display: none; }
}
/* Narrow desktops (1200-1320px): tighten spacing so the menu stays on one line. */
@media (min-width: 75rem) and (max-width: 82.5rem) {
  .um-header .primary-nav__menu-link--level-1 { padding-inline: 4px; letter-spacing: 0.5px; }
  .um-header .site-branding__name { font-size: 24px; }
}
@media (max-width: 74.99rem) {
  .um-header__row { min-height: 52px; }
  .um-header .site-branding__name { font-size: 22px; }
}

/* ------------------------------------------------- Title band (inner pages) */
.um-titleband {
  margin-bottom: 30px;
  text-align: center;
  background-color: #fff;
  background-image: url("/sites/default/files/breadcrumb-line.jpg");
  background-repeat: no-repeat;
  background-position: center bottom;
}
.um-titleband__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60px;                   /* Half of the former 120px band. */
  padding-block: 10px;
}
.um-titleband .page-title,
.um-titleband h1 {
  margin: 0;
  color: var(--um-heading);
  font-family: var(--um-font-head);
  font-size: 26px;                    /* Site custom CSS. */
  font-weight: 600;
  line-height: 1.2 !important;
  text-align: center;
}
.um-titleband .breadcrumb,
.um-titleband .breadcrumb__item,
.um-titleband .breadcrumb__link { line-height: 1.4; }
.um-titleband .block { margin: 0; }
.um-titleband--front { margin: 0; background: none; }
.um-titleband--front .um-titleband__inner { min-height: 0; padding: 0; }

/* Breadcrumb: "Home - Page", centred, small bold. */
.breadcrumb { margin: 0; padding: 0; background: none; }
.breadcrumb__list, .breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin: 0;
  padding: 0;
  list-style: none;
}
.breadcrumb__item, .breadcrumb li {
  color: var(--um-ink);
  font-size: 12px;
  font-weight: 700;
  text-transform: capitalize;
}
.breadcrumb__item + .breadcrumb__item::before { padding: 0 4px; content: "-"; }
.breadcrumb__item::after, .breadcrumb__link::after { display: none !important; }
.breadcrumb__link, .breadcrumb li a { color: #000; font-size: 13px; font-weight: 800; }
.breadcrumb__link:hover { color: var(--um-accent); }

.um-highlighted { margin-bottom: 20px; }

/* ----------------------------------------------- Content + right sidebar */
.um-main { display: block; margin-bottom: 40px; }
@media (min-width: 62rem) {
  .um-main--with-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 1fr);   /* col-md-9 / col-md-3 */
    gap: 30px;
  }
}
.um-main__sidebar .block {
  margin-bottom: 30px;
  background: #fff;
}
.um-main__sidebar .block__title,
.um-main__sidebar h2 {
  margin: 0 0 20px;
  padding: 10px 0;
  color: var(--um-ink);
  border-bottom: 1px solid var(--um-accent);
  font-family: var(--um-font-head);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.um-main__sidebar .menu,
.um-main__sidebar ul { margin: 0; padding: 0; list-style: none; }
.um-main__sidebar .menu a {
  display: block;
  padding: 10px 0;
  color: var(--um-text);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}
.um-main__sidebar .menu a:hover { color: var(--um-accent); }

/* -------------------------------------------------------- Forms/buttons */
input[type*="submit"], .button, .btn-theme {
  display: inline-block;
  margin: 8px;
  padding: 8px 15px;
  cursor: pointer;
  color: #fff;
  border: 1px solid transparent;
  border-radius: 5px;
  background: var(--um-accent);
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
  font-family: var(--um-font-head);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: all 0.35s;
}
input[type*="submit"]:hover, .button:hover, .btn-theme:hover {
  color: var(--um-ink);
  border-color: var(--um-accent);
  background: #fff;
}
.block-simplenews input.form-email { border: 2px inset #000; }

/* --------------------------------------------------------------- Footer */
.um-footer {
  color: #ccc;
  background: #2b2b2b url("../images/bg-footer.jpg") repeat center center;
  line-height: 28px;
}
.um-footer__columns { padding-block: 45px 15px; }
/* Olivero wraps the blocks in .region--footer_top__inner (flex) and gives the
 * region its own grid placement classes, which pushed everything to the right.
 * Put the 4-column grid on the inner wrapper and neutralise Olivero's rules. */
.um-footer .region--footer-top {
  display: block;
  width: 100%;
}
.um-footer .region--footer-top > *,
.um-footer .region--footer_top__inner {
  grid-column: auto;
  width: 100%;
  margin: 0;
}
.um-footer .region--footer_top__inner {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));   /* 4 x col-md-3 */
  gap: 30px;
}
.um-footer .region--footer_top__inner > *,
.um-footer .region--footer_top__inner > *:not(:last-child) {
  flex: none;
  min-width: 0;
  margin: 0;
}
@media (max-width: 61.99rem) { .um-footer .region--footer_top__inner { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 35.99rem) { .um-footer .region--footer_top__inner { grid-template-columns: 1fr; } }
/* The cookies block is only a mount point for the floating consent banner:
 * keep it out of the grid so it doesn't create an empty column. */
.um-footer .block-cookies-ui-block {
  position: absolute;
  width: 0;
  height: 0;
  margin: 0;
  overflow: visible;
}
.um-footer a { color: #ccc; }
.um-footer a:hover, .um-footer a:focus { color: var(--um-accent); }
.um-footer .menu a, .um-footer nav a { color: #fff; }
.um-footer .block__title,
.um-footer h2 {
  margin: 0 0 15px;
  padding: 10px 0;
  color: #fff;
  font-family: var(--um-font-head);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: none;
}
.um-footer ul { margin: 0; padding: 0; list-style: none; }
.um-footer .social-media-links--platforms { display: flex; gap: 10px; }
.um-footer__bottom {
  padding-block: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

/* -------------------------------------------- Home slider (500px, Gavias) */
.um-carousel {
  position: relative;
  overflow: hidden;
  background: var(--um-ink);
  color: #fff;
}
.um-carousel__track { display: flex; transition: transform 0.6s ease; }
@media (prefers-reduced-motion: reduce) { .um-carousel__track { transition: none; } }
.um-carousel:not(.is-enhanced) .um-carousel__track { flex-direction: column; }
.um-carousel__slide { position: relative; flex: 0 0 100%; min-width: 100%; }
.um-slide { position: relative; display: block; color: inherit; }
.um-slide__media img {
  display: block;
  width: 100%;
  height: clamp(234px, 36vw, 450px);  /* 10% lower than the former 500px. */
  object-fit: cover;
}
.um-slide__caption {
  position: absolute;
  top: 50%;
  left: clamp(1rem, 14%, 200px);
  right: 1rem;
  transform: translateY(-20%);
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.75);
}
.um-slide__title {
  margin: 0 0 10px;
  color: #fff;
  font-family: var(--um-font-head);
  font-size: clamp(1.8rem, 4vw, 48px);
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.um-slide__tagline {
  max-width: 46rem;
  margin: 0;
  color: #fff;
  font-family: var(--um-font-head);
  font-size: clamp(1rem, 1.8vw, 22px);
  font-weight: 600;
  line-height: 1.4;
}
/* Hover/focus: main slide text turns black (light halo keeps it legible on the photo). */
.um-slide:hover .um-slide__title,
.um-slide:focus .um-slide__title {
  color: #000;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.9), 0 0 2px rgba(255, 255, 255, 0.9);
}
.um-slide:focus-visible { outline: 3px solid var(--um-accent); outline-offset: -6px; }

/* Controls like the former slider (gavias sliderlayer.css): 20x5px bars,
 * white 40%, selected solid white, centred 20px from the bottom, 10px apart.
 * The transparent padding enlarges the click/touch area without changing the
 * visible bar (background-clip: content-box). */
.um-carousel__controls {
  position: absolute;
  right: 0;
  bottom: 15px;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.um-carousel__dots { display: flex; gap: 10px; }
.um-carousel__btn {
  display: block;
  box-sizing: content-box;
  width: 20px;
  min-width: 0;
  height: 5px;
  min-height: 0;
  margin: 0;
  padding: 5px 0;
  cursor: pointer;
  border: 0;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.4);
  background-clip: content-box;
  box-shadow: none;
}
.um-carousel__dot:hover,
.um-carousel__dot[aria-current="true"] { background-color: #fff; }
.um-carousel__btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* ------------------------------------------- Home: 4 project columns (Gavias) */
.um-projects {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));   /* col-md-3 x 4 */
  gap: 30px;
  margin-block: 30px;
}
@media (max-width: 61.99rem) { .um-projects { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 35.99rem) { .um-projects { grid-template-columns: 1fr; } }
.um-card { display: flex; flex-direction: column; text-align: left; }
.um-card__media { display: block; text-align: center; }
.um-card__media img { display: block; width: 100%; height: auto; }
.um-card__body { display: flex; flex: 1; flex-direction: column; padding-top: 15px; }
.um-card__title {                      /* Old ".subtitle": 12px / 600. */
  margin: 0 0 6px;
  color: var(--um-heading);
  font-family: var(--um-font-head);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.um-card__text { flex: 1; color: var(--um-text); font-size: 14px; line-height: 1.8; }
.um-card__text p { margin: 0; }
.um-card__action { margin-top: 15px; text-align: center; }  /* button-bottom-center */
.um-card__action .btn-theme {              /* Gavias .btn-theme: pill button. */
  margin: 0;
  padding: 8px 25px;
  border-radius: 30px;
  color: #fff;
}
.um-card__action .btn-theme:hover { color: var(--um-ink); }

/* ------------------------------------------------- Funders' logos (sidebar) */
.um-logos .field--name-field-um-logos,
.um-logos .field__items { display: flex; flex-direction: column; align-items: center; gap: 15px; }
.um-logos img { display: block; max-width: 100%; max-height: 90px; width: auto; height: auto; }

/* Home: hide the empty "Home" node meta. */
.path-frontpage .node--type-page-full .node__meta { display: none; }

/* Menu (all widths): no outline around the text after a mouse/touch selection;
 * keep it only for keyboard focus (:focus-visible). */
.um-header .primary-nav__menu-link:focus:not(:focus-visible),
.um-header .primary-nav__button-toggle:focus:not(:focus-visible),
.um-header .site-branding__name a:focus:not(:focus-visible) {
  outline: 0;
}
