.nav-chevron {
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.nav-item details[open] .nav-chevron {
  transform: rotate(180deg);
}

.hero .eyebrow::before {
  display: none;
}

.ui-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

/* Mobile hero and quick-access improvements */

@media (max-width: 720px) {
  .hero-grid {
    padding-block: 2.5rem;
    gap: 1.5rem;
  }

  .hero h1 {
    font-size: clamp(2rem, 7vw, 2.7rem);
  }

  .hero-visual {
    min-height: 0;
    padding: 0;
  }

  .hero-art {
    min-height: 0;
    padding: 2rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
  }

  .hero-art .crest {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    width: 120px;
    height: auto;
    z-index: 1;
  }

  .hero-art .banner-line {
    position: relative;
    bottom: auto;
    left: auto;
    right: auto;
    width: 100%;
    font-size: 0.65rem;
    letter-spacing: 0.08em;
    z-index: 1;
  }

  /* Stop the floating card from overlapping the crest */
  .hero-floating {
    position: static;
    margin-top: 12px;
    max-width: none;
    width: 100%;
    padding: 12px;
  }

  /* Keep shortcut icons visible */
  .quick-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .quick {
    align-items: center;
    padding: 12px;
    gap: 8px;
  }

  .quick-icon {
    display: grid;
    width: 32px;
    height: 32px;
  }

  .quick-icon .ui-icon {
    width: 20px;
    height: 20px;
  }

  .quick > div:last-child {
    min-width: 0;
    overflow-wrap: anywhere;
  }
}

/* Extra-small mobile screens */
@media (max-width: 380px) {
  .hero .actions .button {
    width: 100%;
  }

  .quick-grid {
    grid-template-columns: 1fr;
  }
}

.hero-floating {
  display: none;
}

/* Remove decorative heading lines globally */
.eyebrow::before,
.eyebrow::after {
  content: none;
  display: none;
}

.eyebrow {
  gap: 0;
}

/* Improved inner-page typography */

.rich-block {
  padding: 2rem 0;
}

.rich-block h2 {
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  font-weight: 750;
  line-height: 1.3;
  margin: 0 0 1rem;
  color: var(--brand-indigo-deep);
}

.rich-block p {
  font-size: 1rem;
  line-height: 1.85;
  margin: 0 0 1.1rem;
  max-width: 100%;
}

.rich-block p:last-child {
  margin-bottom: 0;
}

.rich-block ul,
.rich-block ol {
  padding-left: 1.5rem;
  margin: 1rem 0;
}

.rich-block li {
  padding-left: 0.3rem;
  margin-bottom: 0.65rem;
  line-height: 1.75;
}

@media (max-width: 720px) {
  .rich-block {
    padding: 1.5rem 0;
  }

  .rich-block p {
    font-size: 0.95rem;
    line-height: 1.8;
  }
}

/* Fit SVG illustrations inside cards */
.card-media {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.card-media img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  padding: 15px;
  box-sizing: border-box;
}
