/* -- Header--*/
espd-header {
  z-index: 2;
  position: relative;
  background-color: black;
}
/* -- Footer--*/
espd-footer {
  background-color: black;
  color: white;
  background: #111;
  color: #cccccc;
  padding: 1.5rem;
}
espd-footer a,
espd-footer a:visited {
  color: #cccccc;
  text-decoration: underline;
}
espd-footer a:hover {
  color: #f1b82d;
  text-decoration: none;
}
espd-footer .logo {
  float: left;
  align-self: center;
  border-right-width: 1px;
  border-right-color: #666666;
  border-right-style: solid;
  margin-right: 1.5rem;
  padding: 1rem 1.5rem 1rem 0;
}
espd-footer .address {
  font-size: 1rem;
  align-self: center;
  padding-top: 1em;
}
espd-footer .fine-print {
  padding: 1.5rem 0;
  clear: both;
  line-height: 1;
  width: 100%;
  border-top-width: 1px;
  border-top-style: solid;
  border-top-color: #666666;
}
espd-footer .row {
  padding: 1rem 0;
}
@media all and (max-width: 480px) {
  espd-footer .logo {
    float: none;
    border-right: none;
    padding-bottom: 0;
  }
  espd-footer .address {
    padding-top: 0.25em;
  }
}
@media (min-width: 992px) {
  /* header */
  /* sidebar */
  /* search box */
  /* tile styles */
  /* category buttons */
  /* tile icon collage styles */
  /* tile container styles */
  /* button styles */
  /* carousel styles */
  /* footer styles */
  espd-footer {
    background: #111;
    color: #cccccc;
    padding: 1.5rem;
  }
  espd-footer a,
  espd-footer a:visited {
    color: #cccccc;
    text-decoration: underline;
  }
  espd-footer a:hover {
    color: #f1b82d;
    text-decoration: none;
  }
  espd-footer .logo {
    float: left;
    align-self: center;
    border-right-width: 1px;
    border-right-color: #666666;
    border-right-style: solid;
    margin-right: 1.5rem;
    padding: 1rem 1.5rem 1rem 0;
  }
  espd-footer .address {
    font-size: 1rem;
    align-self: center;
    padding-top: 1em;
  }
  espd-footer .fine-print {
    padding: 1.5rem 0;
    clear: both;
    line-height: 1;
    width: 100%;
    border-top-width: 1px;
    border-top-style: solid;
    border-top-color: #666666;
  }
  espd-footer .row {
    padding: 1rem 0;
  }
  :root {
    --tile-shadow-offset-y: 1px;
    --tile-shadow-spread: 1px;
    --tile-shadow-blur: 3px;
    --tile-shadow-color: rgba(36, 49, 66, 0.1);
  }
  espd-header {
    padding-left: 20px;
  }
  sd-sidebar-link i {
    color: #f1b82d !important;
  }
  input#main_search:focus ~ *:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 2px solid #003b49;
    border-radius: 30px;
    pointer-events: none;
  }
  input#main_search {
    cursor: auto;
  }
  input#main_search:focus {
    outline: none;
  }
  sd-tile.card sd-tile-image img {
    background: none !important;
  }
  sd-tile.card {
    background: none !important;
    box-shadow: 0 var(--tile-shadow-offset-y) var(--tile-shadow-blur) var(--tile-shadow-spread) var(--tile-shadow-color);
  }
  sd-tile sd-tile-image {
    width: 92px !important;
    height: 92px !important;
    margin-top: 4px;
    margin-left: 4px;
    border-radius: 0 !important;
  }
  sd-tile sd-tile-image img {
    border-radius: 0 !important;
  }
  sd-tile .header {
    padding-left: 96px !important;
  }
  sd-tile a .brand {
    width: 92px !important;
    height: 92px !important;
  }
  .category i {
    color: #000 !important;
  }
  .icon-collage {
    position: absolute;
    top: 4px;
    left: 4px;
    width: 92px !important;
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(24px, 1fr));
    gap: 2px;
    margin-bottom: 3rem;
    height: auto !important;
  }
  .icon-collage {
    width: 100% !important;
    height: auto !important;
  }
  .icon-collage img {
    width: 100% !important;
    height: auto !important;
    object-fit: cover;
    position: relative !important;
    left: auto !important;
    top: auto !important;
    border: none !important;
    border-radius: 0 !important;
    background: none !important;
  }
  .icon-collage img:nth-child(n+9) {
    display: none;
  }
  .icon-collage span {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    width: 100% !important;
    height: 100% !important;
    border-width: 1px !important;
    border-radius: 4px !important;
  }
  .header-text {
    grid-column: -1;
  }
  .btn:not(:disabled) {
    border-radius: 0;
    letter-spacing: 0;
    padding: 0.8rem 1rem;
    color: #111111;
    background-color: #F1B82D;
    border: 0;
    box-shadow: 0 0.125rem #111111 !important;
  }
  .btn:not(:disabled):hover {
    color: #111111;
    background-color: #f7d88d;
  }
  .btn:not(:disabled):active {
    color: #111111 !important;
    background-color: #f7d88d !important;
  }
  .btn.btn-sm {
    border-radius: 0;
    padding: 0.8rem 1rem;
    color: #111111;
    background-color: #F1B82D;
    font-weight: 700 !important;
    border: 0;
    box-shadow: 0 0.125rem #111111 !important;
  }
  .btn * {
    font-weight: 700 !important;
  }
  sd-global-announcements-carousel {
    text-align: right;
  }
  .btn {
    float: none !important;
  }
  espd-footer a:link,
  espd-footer a:visited {
    color: #cccccc;
  }
  espd-footer a:link:hover {
    color: #f1b82d;
    text-decoration: none;
  }
  .non-espd-icon {
    color: #F1B82D !important;
  }
}
#detailpage_description {
  border-radius: 0.25rem;
  padding: 1rem;
}
sd-section .section-border {
  border: 2px solid #eaeaea;
  padding: 1rem;
}
/* Sidebar focus (white outline only, no color changes inside) */
sd-sidebar a:focus,
sd-sidebar button:focus {
  outline: 2px solid white !important;
  outline-offset: 3px;
  box-shadow: none !important;
}
/* Main content focus (black outline only) */
main a:focus,
main button:focus {
  outline: 2px solid black !important;
  outline-offset: 3px;
}
/* Top black header strip — logo focus */
espd-header > a:focus {
  outline: 2px solid white !important;
  outline-offset: 3px;
}
/* Header bottom gold strip focus */
espd-header .header a:focus,
espd-header .header button:focus {
  outline: 2px solid black !important;
  outline-offset: 3px;
}
/* Footer focus (black background) */
espd-footer a:focus,
espd-footer button:focus {
  outline: 2px solid white !important;
  outline-offset: 3px;
}
/* Description page links - always underlined, with hover color */
#detailpage_description a {
  text-decoration: underline !important;
  /* always underlined */
  color: #006195;
  /* default link color */
  transition: color 0.2s ease;
  /* smooth color change on hover */
}
#detailpage_description a:hover {
  color: #0f324a;
  /* lighter shade when hovering */
}
/* All contact links - always underlined, with hover color */
sd-contact-method-link a {
  text-decoration: underline !important;
  /* always underlined */
  color: #006195;
  /* default link color */
  transition: color 0.2s ease;
  /* smooth color change on hover */
}
sd-contact-method-link a:hover {
  color: #0f324a;
  /* lighter shade on hover */
}
