/* Lightflow v0.6.2 — annotated UX refinement. Desktop heroes remain untouched. */

.section-deep-links {
  display: flex;
  margin: -26px auto 38px;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.section-deep-links .section-deep-link { margin: 0; }

/* Held deliberately for review; the image remains in source and can be restored. */
.feature-photo--held { display: none !important; }
.feature-block--business-photo-held,
.feature-block--photo-held { grid-template-rows: 1fr; }

/* The quote stays a complete, readable card on smaller screens. */
.mosaic-quote { min-width: 0; }

.license-category-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  background: #edf8ff;
  border: 1px solid #d8eaf6;
  border-radius: 12px;
}

.license-category-icon img { width: 21px; height: 21px; }

.license-document-actions {
  display: flex;
  margin: 7px 0 5px;
  flex-wrap: wrap;
  gap: 6px;
}

.license-document-actions button {
  display: inline-flex;
  padding: 5px 7px;
  align-items: center;
  gap: 5px;
  color: var(--blue);
  background: #f4faff;
  border: 1px solid #d8eaf6;
  border-radius: 8px;
  font: inherit;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
}

.license-document-actions button:hover,
.license-document-actions button:focus-visible {
  color: var(--navy);
  background: #fff5bf;
  border-color: #f0d16a;
  outline: none;
}

.license-document-actions i { font-style: normal; font-size: 11px; }

.license-preview-dialog {
  width: min(760px, calc(100% - 28px));
  max-height: min(860px, calc(100dvh - 28px));
  margin: auto;
  padding: 0;
  color: var(--navy);
  background: #f5faff;
  border: 0;
  border-radius: 28px;
  box-shadow: 0 28px 85px rgba(5, 27, 62, .38);
}

.license-preview-dialog::backdrop { background: rgba(7, 25, 55, .72); backdrop-filter: blur(5px); }
.license-preview-shell { max-height: inherit; overflow: auto; }

.license-preview-header {
  display: flex;
  padding: 24px 26px 18px;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  background: #fff;
  border-bottom: 1px solid #dce9f3;
}

.license-preview-header .eyebrow { margin-bottom: 8px; }
.license-preview-header h2 { margin: 0 0 5px; font-size: clamp(22px, 3vw, 30px); }
.license-preview-header p:not(.eyebrow) { margin: 0; color: var(--muted); font-size: 12px; }

.license-preview-document {
  position: relative;
  margin: 0;
  padding: 24px 26px 20px;
  user-select: none;
  -webkit-user-select: none;
}

.license-preview-document img {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
  border: 1px solid #d5e2ec;
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(16, 46, 99, .12);
}

.license-preview-document figcaption { margin-top: 13px; color: var(--muted); font-size: 11px; line-height: 1.5; }

.license-preview-watermark {
  position: absolute;
  top: 48%;
  left: 50%;
  padding: 8px 12px;
  color: rgba(13, 63, 130, .32);
  border: 2px solid rgba(13, 63, 130, .22);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .14em;
  pointer-events: none;
  transform: translate(-50%, -50%) rotate(-22deg);
}

@media (max-width: 900px) {
  .feature-block--business-photo-held { min-height: 0; }

  .company-mosaic {
    min-height: 900px;
    grid-template-rows: 1.2fr .65fr .65fr;
  }

  .mosaic-quote {
    display: flex;
    min-height: 0;
    padding: 30px;
    flex-direction: column;
    justify-content: center;
  }

  .operations-photo > .operations-photo-mobile {
    object-fit: cover;
    object-position: 64% center;
  }
}

@media (max-width: 620px) {
  .section-deep-links { margin: -18px 0 30px; justify-content: flex-start; }
  .section-deep-links .section-deep-link { width: 100%; justify-content: space-between; }

  .company-mosaic {
    min-height: 0;
    grid-template-columns: 1fr;
    grid-template-rows: minmax(330px, 1.2fr) minmax(205px, .7fr) minmax(246px, auto);
    gap: 12px;
  }

  .mosaic-main { grid-column: 1; grid-row: 1; }
  .mosaic-office { grid-row: 2; }
  .mosaic-quote { grid-row: 3; min-height: 246px; padding: 26px; border-radius: 28px; }
  .mosaic-quote .quote-mark { height: 27px; font-size: 48px; }
  .mosaic-quote p {
    display: flex;
    margin-top: 10px;
    flex-direction: column;
    font-size: clamp(20px, 6.1vw, 25px);
    line-height: 1.22;
  }
  .mosaic-quote p span {
    height: auto;
    color: rgba(255, 255, 255, .78);
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
  }
  .mosaic-quote p strong { color: #fff; }

  .operations-photo {
    min-height: 0;
    aspect-ratio: 4 / 5;
  }

  .operations-photo > .operations-photo-mobile { object-position: 63% center; }
  .operations-photo-tag { right: 20px; bottom: 22px; left: 20px; max-width: 285px; }
  .operations-photo-tag strong { font-size: clamp(20px, 6vw, 25px); line-height: 1.14; text-wrap: balance; }

  .legal-list article { padding: 14px; grid-template-columns: 38px 1fr; gap: 11px; }
  .license-preview-header { padding: 20px 19px 15px; }
  .license-preview-document { padding: 18px 19px; }
}
