/* Final homepage masthead controls. Kept separate so older theme layers cannot override them. */
.home-masthead {
  min-height: 630px;
}

.reference-hero-inner {
  padding-top: 34px;
  padding-bottom: 54px;
}

.hero-shortcuts {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 11px;
  width: 100%;
  max-width: none;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.hero-shortcuts .hero-shortcut {
  position: relative;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 11px;
  min-width: 0;
  min-height: 72px;
  padding: 10px 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 13px;
  color: #fff;
  background: linear-gradient(145deg, rgba(3, 58, 41, .9), rgba(2, 42, 31, .78));
  box-shadow: 0 14px 30px rgba(0, 31, 21, .18), inset 0 1px rgba(255, 255, 255, .1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  isolation: isolate;
  animation: hero-shortcut-enter .52s cubic-bezier(.2, .75, .25, 1) both;
}

.hero-shortcuts .hero-shortcut:nth-child(2) { animation-delay: 70ms; }
.hero-shortcuts .hero-shortcut:nth-child(3) { animation-delay: 140ms; }
.hero-shortcuts .hero-shortcut:nth-child(4) { animation-delay: 210ms; }
.hero-shortcuts .hero-shortcut:nth-child(5) { animation-delay: 280ms; }

@keyframes hero-shortcut-enter {
  from {
    opacity: 0;
    transform: translateY(-10px) scale(.975);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.hero-shortcuts .hero-shortcut:first-child,
.hero-shortcuts .hero-shortcut:last-child {
  border-radius: 13px;
}

.hero-shortcuts .hero-shortcut::before {
  content: "";
  position: absolute;
  z-index: -1;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  background: #f47b20;
  transform: scaleX(.22);
  transform-origin: left;
  transition: transform 220ms ease;
}

.hero-shortcuts .hero-shortcut::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: -70%;
  left: -55%;
  width: 38%;
  height: 240%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .13), transparent);
  transform: rotate(18deg);
  transition: left 480ms ease;
}

.hero-shortcuts .hero-shortcut:hover,
.hero-shortcuts .hero-shortcut:focus-visible {
  border-color: rgba(255, 255, 255, .56);
  color: #073e2f;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 18px 38px rgba(0, 31, 21, .27);
  transform: translateY(-4px);
}

.hero-shortcuts .hero-shortcut:hover::before,
.hero-shortcuts .hero-shortcut:focus-visible::before {
  transform: scaleX(1);
}

.hero-shortcuts .hero-shortcut:hover::after,
.hero-shortcuts .hero-shortcut:focus-visible::after {
  left: 125%;
}

.hero-shortcut-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 11px;
  color: #fff;
  background: #f47b20;
  box-shadow: 0 7px 16px rgba(143, 55, 0, .28);
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.hero-shortcut-icon svg {
  width: 20px;
  height: 20px;
}

.hero-shortcut-copy {
  min-width: 0;
}

.hero-shortcut-copy small,
.hero-shortcut-copy strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-shortcut-copy small {
  margin-bottom: 2px;
  color: #bcd9cd;
  font-size: .59rem;
  font-weight: 700;
  letter-spacing: .09em;
  line-height: 1.1;
  text-transform: uppercase;
}

.hero-shortcut-copy strong {
  font-size: .78rem;
  line-height: 1.25;
}

.hero-shortcut-arrow {
  width: 16px;
  height: 16px;
  color: #f7a469;
  opacity: .82;
  transition: color 180ms ease, transform 180ms ease;
}

.hero-shortcut:hover .hero-shortcut-icon,
.hero-shortcut:focus-visible .hero-shortcut-icon {
  transform: rotate(-3deg) scale(1.05);
}

.hero-shortcut:hover .hero-shortcut-copy small,
.hero-shortcut:focus-visible .hero-shortcut-copy small {
  color: #c85b0d;
}

.hero-shortcut:hover .hero-shortcut-arrow,
.hero-shortcut:focus-visible .hero-shortcut-arrow {
  color: #f47b20;
  opacity: 1;
  transform: translateX(3px);
}

.hero-shortcut.is-featured {
  border-color: rgba(255, 166, 101, .72);
  background: linear-gradient(145deg, rgba(8, 116, 70, .94), rgba(3, 67, 46, .9));
}

.hero-shortcut.is-featured .hero-shortcut-icon {
  color: #07513b;
  background: #fff;
  box-shadow: 0 7px 16px rgba(0, 37, 24, .2);
}

.hero-dashboard {
  grid-template-columns: minmax(0, 1.15fr) minmax(390px, .85fr);
  gap: 54px;
  margin-top: 0;
}

.hero-featured-advisory {
  position: relative;
  align-self: start;
  width: 100%;
  min-height: 0;
  margin-bottom: 14px;
  padding: 21px 22px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .28);
  border-left: 5px solid #f47b20;
  border-radius: 4px 18px 18px 4px;
  color: #fff;
  background: linear-gradient(135deg, rgba(2, 48, 34, .9), rgba(5, 100, 60, .67));
  box-shadow: 0 22px 48px rgba(0, 31, 21, .26), inset 0 1px rgba(255, 255, 255, .1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  animation: featured-advisory-enter .62s .08s cubic-bezier(.2, .75, .25, 1) both;
}

.hero-featured-advisory::after {
  content: "";
  position: absolute;
  top: -75px;
  right: -75px;
  width: 185px;
  height: 185px;
  border: 28px solid rgba(255, 255, 255, .055);
  border-radius: 50%;
  pointer-events: none;
}

.hero-featured-advisory p {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.hero-featured-advisory p span {
  color: #ffc296;
}

.hero-featured-advisory p b {
  padding: 4px 8px;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 999px;
  color: #d7e9e1;
  font-size: .56rem;
  letter-spacing: .06em;
}

.hero-featured-advisory h1 {
  position: relative;
  z-index: 1;
  max-width: 520px;
  margin: 14px 0 12px;
  font-family: "Libre Baskerville", serif;
  font-size: clamp(1.05rem, 1.55vw, 1.35rem);
  line-height: 1.3;
  text-wrap: balance;
}

.hero-featured-advisory time {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #c9ded5;
  font-size: .71rem;
}

.hero-featured-advisory time svg {
  width: 15px;
  height: 15px;
  color: #ff9a52;
}

.hero-featured-advisory > a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 16px;
  padding: 8px 12px;
  border: 1px solid #f47b20;
  border-radius: 7px;
  color: #fff;
  background: #f47b20;
  font-size: .74rem;
  font-weight: 800;
}

.hero-featured-advisory > a svg {
  width: 15px;
  height: 15px;
}

.hero-featured-advisory > a:hover,
.hero-featured-advisory > a:focus-visible {
  color: #07513b;
  background: #fff;
  transform: translateY(-2px);
}

@keyframes featured-advisory-enter {
  from { opacity: 0; transform: translateX(-18px); }
  to { opacity: 1; transform: translateX(0); }
}

.hero-dashboard > .hero-sidebar {
  align-self: start;
  width: 100%;
  max-width: 510px;
  justify-self: end;
}

.hero-sidebar .hero-events {
  position: relative;
  margin: 0;
  padding: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 17px;
  background: linear-gradient(145deg, rgba(2, 48, 34, .72), rgba(4, 82, 50, .5));
  box-shadow: 0 20px 46px rgba(0, 31, 21, .25), inset 0 1px rgba(255, 255, 255, .1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  animation: hero-events-enter .62s .3s cubic-bezier(.2, .75, .25, 1) both;
}

@keyframes hero-events-enter {
  from {
    opacity: 0;
    transform: translateX(18px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.hero-sidebar .hero-events::before {
  content: "";
  position: absolute;
  top: 0;
  right: 28px;
  left: 28px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #f47b20, transparent);
}

.hero-events-title {
  margin: 0 0 13px;
  color: #fff;
  font-size: .68rem;
}

.hero-events-title > span {
  gap: 9px;
}

.hero-events-title > span i {
  display: grid;
  width: 29px;
  height: 29px;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: #f47b20;
  box-shadow: 0 6px 14px rgba(143, 55, 0, .25);
}

.hero-events-title > span i svg {
  width: 15px;
  height: 15px;
}

.hero-events-title > a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 9px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
}

.hero-events-title > a svg {
  width: 13px;
  height: 13px;
}

.hero-events-title > a:hover {
  border-color: #f47b20;
  background: #f47b20;
  transform: translateX(2px);
}

.hero-event-list {
  gap: 8px;
}

.hero-event-list > a {
  min-height: 66px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-left: 3px solid rgba(244, 123, 32, .78);
  border-radius: 11px;
  background: rgba(255, 255, 255, .1);
}

.hero-event-list > a:hover {
  border-color: rgba(255, 255, 255, .38);
  border-left-color: #f47b20;
  background: rgba(255, 255, 255, .18);
  transform: translateX(4px);
}

.hero-event-list time {
  border-radius: 9px;
  color: #073e2f;
  background: #fff;
}

.hero-event-list b {
  color: #ffbd8d;
}

.hero-events-empty {
  display: grid;
  grid-template-columns: 48px 1fr;
  align-items: center;
  gap: 13px;
  min-height: 98px;
  padding: 15px;
  border: 1px dashed rgba(255, 255, 255, .3);
  border-radius: 12px;
  color: #fff;
  background: rgba(255, 255, 255, .07);
}

.hero-events-empty > span {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 12px;
  color: #f47b20;
  background: rgba(255, 255, 255, .94);
}

.hero-events-empty > span svg {
  width: 21px;
  height: 21px;
}

.hero-events-empty strong {
  display: block;
  font-size: .84rem;
}

.hero-events-empty p {
  margin: 4px 0 0;
  padding: 0;
  border: 0;
  color: #cce0d7;
  background: transparent;
  font-size: .68rem;
  line-height: 1.45;
}

@media (max-width: 1080px) {
  .hero-shortcuts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero-dashboard {
    grid-template-columns: 1fr 410px;
  }
}

@media (max-width: 820px) {
  .home-masthead {
    min-height: auto;
  }

  .hero-shortcuts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-width: 0;
    margin-right: 0;
  }

  .hero-shortcut:last-child {
    grid-column: 1 / -1;
  }

  .hero-dashboard {
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
    min-width: 0;
    margin-top: 0;
  }

  .hero-dashboard > .hero-sidebar {
    grid-column: 1;
    width: min(100%, 520px);
    min-width: 0;
    max-width: 100%;
  }

  .hero-featured-advisory {
    width: 100%;
  }

  .hero-sidebar .hero-events,
  .hero-events-title,
  .hero-event-list,
  .hero-events-empty,
  .hero-events-empty > div {
    min-width: 0;
    max-width: 100%;
  }
}

@media (max-width: 560px) {
  .reference-hero-inner {
    padding-top: 19px;
    padding-bottom: 34px;
  }

  .hero-shortcuts {
    gap: 8px;
  }

  .hero-shortcuts .hero-shortcut {
    grid-template-columns: 36px minmax(0, 1fr);
    min-height: 61px;
    padding: 8px 9px;
    border-radius: 10px;
  }

  .hero-shortcuts .hero-shortcut:first-child,
  .hero-shortcuts .hero-shortcut:last-child {
    border-radius: 10px;
  }

  .hero-shortcut-icon {
    width: 36px;
    height: 36px;
    border-radius: 9px;
  }

  .hero-shortcut-icon svg {
    width: 18px;
    height: 18px;
  }

  .hero-shortcut-copy small {
    display: none;
  }

  .hero-shortcut-copy strong {
    font-size: .69rem;
    white-space: normal;
  }

  .hero-shortcut-arrow {
    display: none;
  }

  .hero-dashboard {
    margin-top: 0;
  }

  .hero-featured-advisory {
    min-height: 0;
    padding: 21px 19px;
    border-radius: 4px 13px 13px 4px;
  }

  .hero-featured-advisory h1 {
    margin-block: 14px 12px;
    font-size: 1.18rem;
  }

  .hero-featured-advisory > a {
    margin-top: 18px;
  }

  .hero-sidebar .hero-events {
    padding: 13px;
    border-radius: 13px;
  }

  .hero-events-empty {
    grid-template-columns: 42px minmax(0, 1fr);
    min-height: 88px;
    padding: 12px;
  }

  .hero-events-empty > span {
    width: 42px;
    height: 42px;
  }

  .hero-events-empty p {
    overflow-wrap: anywhere;
  }
}

@media (max-width: 430px) {
  .hero-events-title > a {
    width: 31px;
    height: 31px;
    justify-content: center;
    padding: 0;
    overflow: hidden;
    color: transparent;
    font-size: 0;
  }

  .hero-events-title > a svg {
    width: 14px;
    height: 14px;
    color: #fff;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-shortcuts .hero-shortcut,
  .hero-shortcuts .hero-shortcut::before,
  .hero-shortcuts .hero-shortcut::after,
  .hero-shortcut-icon,
  .hero-shortcut-arrow {
    transition: none;
    animation: none;
  }

  .hero-sidebar .hero-events { animation: none; }
  .hero-featured-advisory { animation: none; }
}

/* Keep the actual SDO office and the Sulu map visible behind the compact
   mobile dashboard instead of flattening the masthead to a solid green. */
@media (max-width: 700px) {
  .home-masthead {
    min-height: 500px;
    background: #064833;
  }

  .masthead-office {
    object-position: 65% center;
    opacity: .94;
  }

  .masthead-lines {
    background:
      linear-gradient(90deg, rgba(2, 47, 34, .9) 0%, rgba(4, 77, 49, .7) 48%, rgba(3, 57, 39, .22) 100%),
      linear-gradient(0deg, rgba(1, 31, 23, .38), transparent 54%);
  }

  .masthead-map {
    inset: 11% auto auto -7%;
    width: 90%;
    height: 70%;
    opacity: .24;
  }
}
