/* Shared compact desktop header, extracted from the actual homepage styling.
   Desktop only (>=1025px): mobile stays governed by the existing site styles. */
@media (min-width: 1450px) {
  body.td-compact-header .main-header {
    background: rgba(252,250,244,.97);
    border: 0;
    box-shadow: none;
    min-height: 73px;
  }
  body.td-compact-header .main-header .header-top {
    display: flex;
    justify-content: space-between;
    width: 100%;
    min-height: 73px;
    padding: 0 clamp(38px,5.8vw,90px);
  }
  body.td-compact-header .main-header .header-top .center {
    position: absolute;
    left: calc(50% - 337px);
    top: 24px;
    gap: 20px;
  }
  body.td-compact-header .main-header .header-top .right {
    margin-left: auto;
    flex: 0 0 auto;
  }
  body.td-compact-header .main-header .header-top .center a {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0;
  }
  body.td-compact-header .main-header .header-sub {
    position: absolute;
    top: 25px;
    left: calc(50% - 39px);
    width: auto;
    padding: 0;
    min-height: 0;
    border: 0;
  }
  body.td-compact-header .main-header .sub-links-scroll {
    width: auto;
    padding: 0;
    gap: clamp(9px,1vw,15px);
  }
  body.td-compact-header .main-header .header-sub a {
    font-size: 12.5px;
    white-space: nowrap;
  }
  body.td-compact-header .main-header .home-text {
    font-family: 'Source Sans 3', sans-serif;
    font-weight: 800;
    font-size: 27px;
    letter-spacing: .15em;
    color: #14291d;
  }
}

@media (min-width: 1360px) {
  body.td-compact-header .main-header {
    display: grid;
    grid-template-columns: clamp(134px, 10vw, 158px) max-content minmax(0, 1fr) max-content;
    align-items: center;
    column-gap: clamp(12px, 1.2vw, 22px);
    min-height: 73px;
    height: 73px;
    padding: 0 clamp(28px, 4vw, 64px);
    box-sizing: border-box;
    background: transparent;
    border: 0;
    box-shadow: none;
  }
  body.td-compact-header .main-header .header-top {
    display: contents;
  }
  body.td-compact-header .main-header .header-top .left {
    grid-row: 1;
    grid-column: 1;
    min-width: 0;
    justify-content: flex-start;
  }
  body.td-compact-header .main-header .header-top .center {
    grid-row: 1;
    grid-column: 2;
    position: static;
    top: auto;
    left: auto;
    width: auto;
    min-width: 0;
    margin: 0;
    gap: clamp(13px, 1.1vw, 20px);
    justify-content: flex-start;
    white-space: nowrap;
  }
  body.td-compact-header .main-header .header-top .center .divider { display: none; }
  body.td-compact-header .main-header .header-top .center a {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0;
  }
  body.td-compact-header .main-header .header-top .center a:nth-of-type(-n+2) {
    font-size: 21px;
    font-weight: 800;
  }
  body.td-compact-header .main-header .header-top .right {
    grid-row: 1;
    grid-column: 4;
    justify-self: end;
    margin: 0;
    gap: 7px;
    min-width: 0;
  }
  body.td-compact-header .main-header .header-sub {
    grid-row: 1;
    grid-column: 3;
    display: flex;
    position: static;
    top: auto;
    left: auto;
    width: auto;
    min-height: 0;
    padding: 0;
    border: 0;
    justify-content: center;
    overflow: visible;
  }
  body.td-compact-header .main-header .sub-links-scroll {
    display: flex;
    width: auto;
    min-width: 0;
    gap: clamp(7px, .65vw, 11px);
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    padding: 0;
  }
  body.td-compact-header .main-header .header-sub a {
    white-space: nowrap;
    font-size: 13px;
    font-weight: 600;
  }
  body.td-compact-header .main-header .home-text {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 25px;
    font-weight: 800;
    letter-spacing: .13em;
    color: #14291d;
  }
}

@media (min-width: 1025px) and (max-width: 1359px) {
  body.td-compact-header .main-header {
    background: transparent;
    border: 0;
    box-shadow: none;
  }
  body.td-compact-header .main-header .header-top .center a:nth-of-type(-n+2) {
    font-size: 20px;
    font-weight: 800;
  }
}

@media (min-width: 1360px) {
  body.td-compact-header .main-header .header-sub a img[src*="play-travel-videos.svg"] { width: 19px; height: 19px; max-width: none; }
}

/* On other pages the header must keep the same warm editorial color even
   though their page backgrounds are white or map-specific gradients.
   The homepage retains its original transparent treatment. */
@media (min-width: 1025px) {
  body.td-compact-header:not(:has(.td-home--editorial)) .main-header {
    background: #fcfaf4;
  }
}
