/* finesse · component: section-landscape · register=product
 * Desktop-only approved panoramas; the original mobile pages stay unchanged. */
.tools-page-header { display: none; }

@media (min-width: 768px) {
  .tools-theme .tools-page-header { display: block; }
  .tools-theme { --section-landscape: url('./section-assets/tools-panorama.png'); }
  .education-theme { --section-landscape: url('./section-assets/education-panorama.png'); }
  .profile-theme { --section-landscape: url('./section-assets/profile-panorama.png'); }

  .paper-theme :is(.tools-page-header, .education-platform__header, .profile-header) {
    position: relative;
    isolation: isolate;
    min-height: 196px;
    padding: 0 3px;
    align-content: start;
  }

  .paper-theme :is(.tools-page-header, .education-platform__header, .profile-header)::before {
    content: '';
    position: absolute;
    z-index: -1;
    top: calc(-1 * var(--paper-title-top));
    left: 50%;
    width: 100vw;
    height: calc(100% + var(--paper-title-top) + 12px);
    transform: translateX(-50%);
    background: var(--section-landscape) center 53% / cover no-repeat;
    mix-blend-mode: multiply;
    opacity: .82;
    mask-image: linear-gradient(to bottom, #000 76%, transparent 100%);
    pointer-events: none;
  }

  .education-theme .education-platform__description { max-width: 38em; }
  .education-theme .education-tabs { flex-wrap: wrap; }
  .profile-theme .profile-header { margin-bottom: 0; }

  .tools-theme .page-content--tools:has(> .tools-page-header) {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 12px;
    padding: var(--paper-title-top) 28px 0;
    overflow: visible;
  }
  .tools-theme .page-content--tools:has(> .tools-page-header) > .tool-player { min-height: 0; }
  .tools-theme .page-content--tools:has(> .tools-page-header) > .tool-player__status {
    min-height: 0;
    height: 100%;
    grid-template-rows: minmax(0, 1fr);
    padding: 12px 0;
  }


  .tools-theme .tool-player__status > .tool-player__page-title { display: none; }

  /* Keep the complete tree and blend its distant slopes across the viewport. */
  .profile-theme .profile-header::before {
    left: calc(50% + clamp(100px, 13vw, 190px));
    width: min(714px, calc(100vw - 2 * clamp(100px, 13vw, 190px)));
    background-size: contain;
    background-position: center;
    mask-image: linear-gradient(to bottom, #000 76%, transparent), linear-gradient(90deg, transparent, #000 16%, #000 87%, transparent);
    mask-composite: intersect;
  }
  .profile-theme .profile-header::after {
    content: '';
    position: absolute;
    z-index: -2;
    top: calc(-1 * var(--paper-title-top));
    left: 50%;
    width: 100vw;
    height: calc(100% + var(--paper-title-top) + 12px);
    transform: translateX(-50%);
    background: var(--section-landscape) center 53% / cover no-repeat;
    mix-blend-mode: multiply;
    opacity: .5;
    mask-image: linear-gradient(to bottom, #000 65%, transparent), linear-gradient(90deg, #000 25%, transparent 55%, transparent 91%, #000);
    mask-composite: intersect;
    pointer-events: none;
  }
}
