/* montage.css - site skin for 萬芊 MONTAGE
   Loaded only when project.skin = "montage".
   Every rule is scoped with html[data-skin="montage"] so other sites/configs are untouched. */

/* ---- Homepage only: 4 feature cards as a 2 x 2 grid of wide horizontal cards ----
   The homepage is the only page whose hero is NOT the short "sub" hero,
   so body:has(header.hero:not(.sub)) targets index.html alone. */
html[data-skin="montage"] body:has(header.hero:not(.sub)) .features-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

html[data-skin="montage"] body:has(header.hero:not(.sub)) .feature-card {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  grid-template-areas: "icon title" "icon text" "icon link";
  column-gap: 18px;
  row-gap: 4px;
  align-items: start;
  padding: 22px 24px;
  min-height: 132px;
}

html[data-skin="montage"] body:has(header.hero:not(.sub)) .feature-card .feature-icon {
  grid-area: icon;
  margin: 0;
}

html[data-skin="montage"] body:has(header.hero:not(.sub)) .feature-card .card-title {
  grid-area: title;
  margin: 0 0 2px;
}

html[data-skin="montage"] body:has(header.hero:not(.sub)) .feature-card .card-text {
  grid-area: text;
  margin: 0;
}

html[data-skin="montage"] body:has(header.hero:not(.sub)) .feature-card .card-link {
  grid-area: link;
  margin-top: 8px;
  justify-self: start;
}

/* ---- Small screens: back to one card per row ---- */
@media (max-width: 768px) {
  html[data-skin="montage"] body:has(header.hero:not(.sub)) .features-grid {
    grid-template-columns: 1fr;
  }
  html[data-skin="montage"] body:has(header.hero:not(.sub)) .feature-card {
    min-height: 0;
  }
}

/* ---- Hide empty fixed-text elements (e.g. cleared booking hero subtitle) ---- */
html[data-skin="montage"] .hero .hero-sub:empty,
html[data-skin="montage"] .section-sub:empty {
  display: none;
}
