.header-section {
  padding: 10px 28px 10px;
  background: var(--lv-paper);
  border-bottom: 1px solid var(--lv-stone);
}

.header-section header {
  max-width: none;
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.header-section .brand-mark {
  margin: 0;
  font-size: 34px;
  line-height: 0.92;
  font-family: var(--lv-font-display);
  letter-spacing: 0.01em;
  font-weight: 600;
  color: var(--lv-ink);
  text-align: center;
  text-decoration: none;
  margin-right: auto;
}

.header-section .brand-mark:hover {
  text-decoration: none;
}

.header-section .brand-mark small {
  display: block;
  font-size: 14px;
  letter-spacing: 0.22em;
  font-family: var(--lv-font-body);
  opacity: 0.86;
  margin-top: 4px;
}

.header-section .header-title {
  margin: 0;
  font-size: clamp(1.85rem, 2.4vw, 2.45rem);
  line-height: 1.1;
  text-align: center;
  color: var(--lv-ink);
  font-family: var(--lv-font-display);
  font-weight: 600;
  flex: 1;
}

.header-section .back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--lv-honey) !important;
  color: var(--lv-ink) !important;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: var(--lv-radius-control);
  margin-left: auto;
  border: none;
  font-size: 15px;
  line-height: 1;
  text-decoration: none;
}

.header-section .back-btn-icon {
  font-size: 20px;
  line-height: 1;
  display: inline-block;
}

.header-section .back-btn:hover {
  background: #f2e8d4 !important;
  text-decoration: none;
}

.header-section .nav-actions {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.lv-theme .header-section .back-btn {
  background: #e6d8bd !important;
  color: #2f2b22 !important;
  border: none !important;
}

.lv-theme .header-section .back-btn:hover {
  background: #f2e8d4 !important;
}

@media (max-width: 768px) {
  .header-section {
    padding: 10px 14px;
  }

  .header-section header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 10px;
    row-gap: 8px;
    justify-content: initial;
  }

  .header-section .brand-mark {
    font-size: clamp(1.8rem, 9vw, 2.55rem);
    margin: 0;
    margin-right: 0;
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
    text-align: left;
  }

  .header-section .brand-mark small {
    font-size: clamp(0.68rem, 3vw, 0.92rem);
  }

  .header-section .back-btn {
    display: inline-grid;
    place-items: center;
    margin: 0;
    margin-left: 0;
    align-self: center;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    text-align: center;
    white-space: nowrap;
    line-height: 1;
    overflow: hidden;
    font-size: 0;
  }

  .header-section .back-btn-mobile-extra {
    display: none;
  }

  .header-section .back-btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: currentColor;
    color: inherit;
    font-size: 0;
    line-height: 0;
    margin: 0;
    transform: translateY(5px);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 10.5 12 3l9 7.5'/%3E%3Cpath d='M5 9.5V21h14V9.5'/%3E%3Cpath d='M9 21v-6h6v6'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 10.5 12 3l9 7.5'/%3E%3Cpath d='M5 9.5V21h14V9.5'/%3E%3Cpath d='M9 21v-6h6v6'/%3E%3C/svg%3E") center / contain no-repeat;
  }

  .header-section .nav-actions {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    margin-left: 0;
    min-width: 0;
    gap: 8px;
  }

  .header-section .header-title {
    font-size: clamp(1.45rem, 6.6vw, 2rem);
    order: initial;
    flex-basis: auto;
    grid-column: 1 / -1;
    grid-row: 2;
    margin-top: 8px;
    min-width: 0;
    text-align: center;
  }
}
