/* /brand-assets and /logos. Colours come from shows-ui.css (--ev-*), which switches with html.night-mode.
   Hero, buttons and chips reuse the fx-* components from features.css.
   Selectors are scoped to .brand-page so night-mode.css's global p and heading colours don't apply. */

.brand-page {
  flex: 1 0 auto;
  /* Clears the fixed site header, like .features-page. */
  margin-top: var(--ev-header-h);
  background: var(--ev-bg);
  color: var(--ev-text);
  --ev-radius: 12px;
  --ev-radius-sm: 8px;
}

.brand-page .fx-hero {
  padding: 32px 0;
}

.brand-page .fx-hero h1 {
  margin: 0;
  color: var(--ev-text);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.25;
}

.brand-page .fx-hero .fx-hero__actions {
  margin-top: 16px;
}

.brand-page .fx-btn,
.brand-modal .fx-btn {
  font-size: 16px;
}

.brand-page .fx-btn--sm,
.brand-modal .fx-btn--sm {
  min-height: 40px;
  padding: 8px 16px;
}

.brand-page .fx-btn--sm i,
.brand-modal .fx-btn--sm i {
  font-size: 18px;
}

.brand-page .fx-btn--ghost,
.brand-modal .fx-btn--ghost {
  border-color: var(--ev-border);
  background: var(--ev-surface);
  color: var(--ev-text);
}

.brand-page .fx-btn--ghost:hover,
.brand-modal .fx-btn--ghost:hover {
  border-color: var(--ev-brand);
  color: var(--ev-brand);
}

.brand-page .fx-empty-line {
  margin: 0;
  color: var(--ev-muted);
  text-align: center;
}

/* ---------- Dropdown menu ---------- */

.brand-page .aw-bar .dropdown-menu {
  min-width: 0;
  padding: 6px;
  border: 1px solid var(--ev-border) !important;
  border-radius: var(--ev-radius-sm);
  background-color: var(--ev-surface) !important;
  box-shadow: var(--ev-shadow-strong);
}

/* style.css forces .dropdown-item to 14px black with !important, so these need it too. */
.brand-page .aw-bar .dropdown-item {
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--ev-text) !important;
  font-size: 16px !important;
  white-space: nowrap;
}

.brand-page .aw-bar .dropdown-item:hover,
.brand-page .aw-bar .dropdown-item:focus {
  background-color: var(--ev-brand-soft) !important;
  color: var(--ev-brand) !important;
}

/* ---------- Artwork grid ---------- */

.aw-page .aw-hero {
  padding: 0;
}

.aw-hero__panel {
  overflow: hidden;
  position: relative;
  border: 1px solid #343b43;
  border-radius: 12px;
  background: linear-gradient(115deg, #171e25 40%, #253441);
  box-shadow: 0 18px 46px rgb(16 30 48 / 8%);
}

.aw-hero__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.85fr);
  align-items: center;
  gap: 32px;
  min-height: 270px;
  padding: 36px 40px 28px;
}

.aw-hero__content {
  min-width: 0;
  position: relative;
  z-index: 1;
}

.aw-hero__layout--plain {
  grid-template-columns: minmax(0, 1fr);
  min-height: 0;
}

.brand-page .aw-hero h1 {
  margin: 0 0 24px;
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 36px;
  line-height: 1.15;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.aw-hero .aw-search input {
  color-scheme: light;
  min-height: 52px;
  border: 1px solid #617184;
  background: #f7f9fc;
  color: #172638;
  border-radius: 6px;
  font-size: 16px;
}

.aw-hero .aw-search input::placeholder,
.aw-hero .aw-search > i {
  color: #596879;
}

.aw-hero .aw-search input:focus-visible {
  border-color: #fc5d20;
  box-shadow: 0 0 0 3px rgb(252 93 32 / 28%);
}

.aw-hero__art {
  position: relative;
  height: 198px;
  width: 100%;
  max-width: 430px;
  justify-self: end;
  pointer-events: none;
}

.aw-hero__art::before {
  content: '';
  position: absolute;
  inset: -100px -50px;
  background: repeating-linear-gradient(90deg, transparent 0 68px, #ffffff0a 68px 69px);
  transform: rotate(-12deg);
}

.aw-hero__print {
  position: absolute;
  height: auto;
  border: 1px solid rgb(255 255 255 / 30%);
  border-radius: 5px;
  box-shadow: 0 18px 35px rgb(0 0 0 / 30%);
}

.aw-hero__print--0 {
  width: 44%;
  left: 0;
  top: 64px;
  transform: rotate(-7deg);
}

.aw-hero__print--1 {
  width: 35%;
  left: 29%;
  top: 0;
  transform: rotate(3deg);
}

.aw-hero__print--2 {
  width: 37%;
  right: 0;
  top: 40px;
  transform: rotate(7deg);
}

.aw-hero .aw-hero__controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 36px;
  padding: 18px 0;
  border-top: 1px solid rgb(255 255 255 / 14%);
}

.aw-hero .fx-chip {
  border-color: #496078;
  background: transparent;
  color: #e7eef7;
}

.aw-hero .fx-chip:hover,
.aw-hero .fx-chip:focus-visible {
  border-color: #ff9167;
  color: #fff;
  outline: 2px solid #ff9167;
  outline-offset: 2px;
}

.aw-hero .fx-chip.is-active {
  border-color: #fc5d20;
  background: #fc5d20;
  color: #171e25;
}

.aw-page .aw-gallery {
  padding-top: 28px;
}

.brand-page .aw-empty {
  padding: 32px 0;
  text-align: center;
}

.brand-page .aw-empty p {
  margin: 0 0 16px;
  color: var(--ev-muted);
  font-size: 16px;
}

.aw-empty[hidden] {
  display: none;
}

@media (max-width: 767px) {
  .aw-hero__layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    padding: 24px 20px 16px;
  }
  .brand-page .aw-hero h1 {
    font-size: 28px;
    margin-bottom: 18px;
  }
  .aw-hero__art {
    max-width: 285px;
    height: 144px;
    justify-self: center;
  }
  .aw-hero__print--0 { top: 44px; }
  .aw-hero__print--2 { top: 28px; }
  .aw-hero .aw-hero__controls {
    flex-wrap: wrap;
    gap: 12px;
    margin: 0 20px;
    padding: 16px 0;
  }
  .aw-hero .fx-chip {
    padding-right: 12px;
    padding-left: 12px;
  }
}

.aw-filter {
  margin-bottom: 24px;
}

.aw-filter .fx-categories {
  flex-wrap: wrap;
  overflow: visible;
}

.brand-page .aw-collection {
  margin-bottom: 32px;
}

.brand-page .aw-collection h2 {
  margin: 0 0 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--ev-border);
  color: var(--ev-text);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
}

.aw-collection[hidden] {
  display: none;
}

.aw-grid {
  column-count: 1;
  column-gap: 24px;
}

@media (min-width: 480px) {
  .aw-grid { column-count: 2; }
}

@media (min-width: 992px) {
  .aw-grid { column-count: 3; }
}

.aw-card {
  break-inside: avoid;
  margin-bottom: 24px;
  border: 1px solid var(--ev-border);
  border-radius: var(--ev-radius);
  background: var(--ev-surface);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.aw-card:hover {
  border-color: color-mix(in srgb, var(--ev-brand) 45%, var(--ev-border));
  box-shadow: var(--ev-shadow);
}

.aw-card[hidden] {
  display: none;
}

.aw-media {
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: var(--ev-radius) var(--ev-radius) 0 0;
  background: var(--ev-surface-muted);
  cursor: zoom-in;
}

.aw-media:focus-visible,
.aw-card .btn:focus-visible {
  outline: 2px solid var(--ev-brand);
  outline-offset: -2px;
}

.aw-media img,
.aw-media video {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.aw-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
}

.brand-page .aw-title {
  min-width: 0;
  margin: 0;
  color: var(--ev-text);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.aw-bar .fx-btn {
  flex: none;
}

/* ---------- Viewer modal ---------- */

.brand-modal .modal-content {
  border: 1px solid var(--ev-border);
  border-radius: var(--ev-radius);
  background: var(--ev-surface);
  color: var(--ev-text);
}

.brand-modal .modal-header {
  border-bottom: 1px solid var(--ev-border);
}

.brand-modal .modal-title {
  margin: 0;
  color: var(--ev-text);
  font-size: 16px;
  font-weight: 600;
}

html.night-mode .brand-modal .modal-content {
  background-color: var(--ev-surface);
  border-color: var(--ev-border);
}

html.night-mode .brand-modal .modal-title {
  color: var(--ev-text);
}

.brand-modal .modal-body {
  text-align: center;
}

.brand-modal .aw-view img,
.brand-modal .aw-view video {
  max-width: 100%;
  max-height: 70vh;
  border-radius: var(--ev-radius-sm);
  object-fit: contain;
}

.brand-modal .aw-caption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
}

.brand-modal .aw-caption[hidden] {
  display: none;
}

.brand-modal .aw-caption span {
  color: var(--ev-text);
  font-size: 16px;
}

/* ---------- Logo tiles ---------- */

.logo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

@media (max-width: 991px) {
  .logo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 575px) {
  .logo-grid { grid-template-columns: minmax(0, 1fr); }
}

.logo-tile {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
  padding: 0;
  border: 1px solid var(--ev-border);
  border-radius: var(--ev-radius);
  background: var(--ev-surface);
}

/* Preview surfaces keep their own colour in both modes so each logo stays legible. */
.logo-tile__surface {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 240px;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-bottom: 1px solid var(--ev-border);
  border-radius: var(--ev-radius) var(--ev-radius) 0 0;
  background: #fff;
  cursor: zoom-in;
}

.logo-tile__surface--dark {
  background: #181b20;
}

.logo-tile__surface:focus-visible {
  outline: 2px solid var(--ev-brand);
  outline-offset: 2px;
}

.logo-tile__surface img {
  max-width: 72%;
  max-height: 58%;
  object-fit: contain;
}

.logo-tile__bar {
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand-page .logo-tile__name {
  min-width: 0;
  margin: 0;
  color: var(--ev-text);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.brand-modal .logo-view {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 260px;
  border: 1px solid var(--ev-border);
  border-radius: var(--ev-radius-sm);
  background: #fff;
}

.brand-modal .logo-view--dark {
  background: #181b20;
}

.brand-modal .logo-view img {
  max-width: 90%;
  max-height: 60vh;
  object-fit: contain;
}
.aw-promotion video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  background: #102638;
}

.brand-page .aw-promotion h2 {
  margin: 0 0 18px;
  font-size: 18px;
  font-weight: 600;
}

.aw-promotion__downloads {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.aw-card[id], .aw-promotion[id] {
  scroll-margin-top: 110px;
}

.aw-title a {
  color: inherit;
  text-decoration: none;
}

.aw-title a:hover, .aw-title a:focus-visible {
  text-decoration: underline;
}


/* Shared editorial navigation and logo specimen. */
.brand-navigation {
  display: flex;
  gap: 28px;
  align-items: center;
  min-height: 76px;
  border-bottom: 1px solid var(--ev-border);
  margin-bottom: 24px;
}
.brand-navigation a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ev-muted);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}
.brand-navigation a[aria-current="page"] {
  border-bottom-color: #fc5d20;
  color: var(--ev-text);
}
.brand-navigation a:hover { color: var(--ev-text); }
.brand-navigation a:focus-visible { outline: 2px solid var(--ev-brand); outline-offset: 4px; }
.brand-page .fx-section { padding-top: 36px; padding-bottom: 36px; }
.brand-page .logo-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  min-height: 270px;
}
.logo-hero__content { padding: 40px; }
.logo-hero__specimen { display: grid; grid-template-columns: 1.7fr 1fr; align-self: stretch; }
.logo-hero__wordmark, .logo-hero__symbol { display: grid; place-items: center; padding: 28px; }
.logo-hero__wordmark { border-left: 1px solid #ffffff1c; background: #101820; }
.logo-hero__symbol { background: #eaf0f4; border-bottom: 5px solid #fc6733; }
.logo-hero__wordmark img { width: 100%; height: auto; max-width: 280px; }
.logo-hero__symbol img { width: 100%; height: auto; max-width: 115px; }
.logo-tile { transition: box-shadow .2s ease, border-color .2s ease; }
.logo-tile:hover { border-color: var(--ev-brand); box-shadow: var(--ev-shadow); }
.brand-page .aw-promotion { border-top: 1px solid var(--ev-border); }
.brand-page .aw-promotion h2 { padding-bottom: 16px; }
@media (max-width: 767px) {
  .brand-navigation { min-height: 66px; margin-bottom: 18px; }
  .brand-page .logo-hero { grid-template-columns: 1fr; }
  .logo-hero__content { padding: 28px 24px; }
  .brand-page .logo-hero h1 { margin: 0; }
  .logo-hero__specimen { min-height: 160px; }
  .logo-hero__wordmark { border-left: 0; }
  .logo-tile__bar { padding: 14px; }
  .logo-tile__surface { height: 210px; }
  .aw-grid { column-gap: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .aw-card, .logo-tile { transition: none; }
}
