/*
 * DMJF 2026 design package
 * Package assets live next to this file in assets/. The header uses
 * header1_desktop.* at every viewport size.
 */

html[data-design-package="dmjf-2026"] body:not(.admin-page) {
  background: #f3f5f8;
}

html[data-design-package="dmjf-2026"] body:not(.admin-page) .shell {
  padding-top: 16px;
}

html[data-design-package="dmjf-2026"] body:not(.admin-page) .intro {
  align-items: stretch;
  background-color: #07204e;
  background-image:
    linear-gradient(90deg, rgba(7, 32, 78, 0.82) 0%, rgba(7, 32, 78, 0.55) 28%, rgba(7, 32, 78, 0) 50%),
    url("/design-assets/header1_desktop");
  background-position: center 40%;
  background-repeat: no-repeat;
  background-size: cover;
  border: 0;
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(7, 32, 78, 0.2);
  min-height: 290px;
  overflow: visible;
  padding: 28px 32px;
  position: relative;
}

html[data-design-package="dmjf-2026"] body:not(.admin-page) .intro .brand-head {
  align-items: stretch;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  width: 100%;
}

html[data-design-package="dmjf-2026"] body:not(.admin-page) .intro .brand-topline {
  align-items: flex-start;
  display: flex;
  justify-content: space-between;
  width: 100%;
  min-width: 0;
}

html[data-design-package="dmjf-2026"] body:not(.admin-page) .intro .brand-logo {
  border-radius: 0;
  height: auto;
  max-height: 127px;
  max-width: min(403px, 75%);
  object-fit: contain;
  object-position: left top;
  width: auto;
}

html[data-design-package="dmjf-2026"] body:not(.admin-page) .intro .brand-copy {
  color: #fff;
  max-width: 430px;
  order: 2;
  text-shadow: 0 2px 12px rgba(7, 32, 78, 0.55);
  transform: translateY(-48px);
  overflow-wrap: anywhere;
  width: min(100%, 430px);
}

html[data-design-package="dmjf-2026"] body:not(.admin-page) .intro .eyebrow,
html[data-design-package="dmjf-2026"] body:not(.admin-page) .intro h1 {
  display: none;
}

html[data-design-package="dmjf-2026"] body:not(.admin-page) .intro #brandSubtitle {
  color: #fff;
  font-size: clamp(1.15rem, 2.2vw, 1.55rem);
  font-weight: 750;
  line-height: 1.25;
  margin: 0;
  white-space: normal;
}

html[data-design-package="dmjf-2026"] body:not(.admin-page) .intro .header-actions {
  margin-left: auto;
}

html[data-design-package="dmjf-2026"] body:not(.admin-page) .intro .header-actions .icon-button {
  backdrop-filter: blur(8px);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 999px;
  box-shadow: 0 4px 16px rgba(7, 32, 78, 0.24);
  color: #07204e;
}

html[data-design-package="dmjf-2026"] body:not(.admin-page) .intro .header-actions .icon-button:hover {
  background: #fff;
  color: #e23b31;
}

html[data-design-package="dmjf-2026"] body:not(.admin-page) #feedPanel.has-pinned-news {
  margin-top: 0;
  overflow: visible;
}

html[data-design-package="dmjf-2026"] body:not(.admin-page) .pinned-news-slot:not(.hidden) {
  margin-top: -76px;
  margin-bottom: 18px;
}

html[data-design-package="dmjf-2026"] body:not(.admin-page) .pinned-news-slot .news-item {
  box-shadow: 0 12px 28px rgba(7, 32, 78, 0.22);
  margin: 0 auto;
  width: min(94%, 760px);
}

@media (min-width: 701px) {
  html.accessible-mode[data-design-package="dmjf-2026"] body:not(.admin-page) .intro .brand-copy {
    max-width: min(650px, calc(100% - 64px));
    transform: translateY(-18px);
    width: 100%;
  }

  html.accessible-mode[data-design-package="dmjf-2026"] body:not(.admin-page) .intro #brandSubtitle {
    font-size: 1.35rem;
  }
}

@media (max-width: 700px) {
  html[data-design-package="dmjf-2026"] body:not(.admin-page) .shell {
    padding-top: 12px;
    width: min(920px, calc(100% - 24px));
  }

  html[data-design-package="dmjf-2026"] body:not(.admin-page) .intro {
    background-image:
      linear-gradient(90deg, rgba(7, 32, 78, 0.78) 0%, rgba(7, 32, 78, 0.48) 28%, rgba(7, 32, 78, 0) 50%),
      url("/design-assets/header1_desktop");
    background-position: center center;
    min-height: 140px;
    padding: 12px 16px;
  }

  html[data-design-package="dmjf-2026"] body:not(.admin-page) .intro .brand-head {
    flex-direction: column;
  }

  html[data-design-package="dmjf-2026"] body:not(.admin-page) .intro .brand-logo {
    max-height: 81px;
    max-width: calc(100% - 104px);
  }

  html[data-design-package="dmjf-2026"] body:not(.admin-page) .intro .brand-copy {
    bottom: 10px;
    font-size: 1rem;
    left: 16px;
    max-width: calc(100% - 32px);
    position: absolute;
    transform: none;
  }

  html[data-design-package="dmjf-2026"] body:not(.admin-page) .intro #brandSubtitle {
    font-size: 1rem;
    line-height: 1.2;
  }

  html[data-design-package="dmjf-2026"] body:not(.admin-page) .pinned-news-slot:not(.hidden) {
    margin-top: -20px;
  }

  html[data-design-package="dmjf-2026"] body:not(.admin-page) .pinned-news-slot .news-item {
    max-width: 100%;
    width: 100%;
  }

  html[data-design-package="dmjf-2026"] body:not(.admin-page) .intro .header-actions .icon-button {
    width: 44px;
  }
}
