/* Licenses page: references/licenses/01.png–03.png; placeholder state is explicit. */
.licenses-hero {
  position: relative;
  overflow: hidden;
  background: var(--surface-soft);
}
.licenses-hero-image {
  position: absolute;
  inset: 0 0 0 auto;
  width: var(--about-hero-image-width);
  height: var(--media-height-compact);
  object-fit: contain;
  object-position: center top;
}
.licenses-hero-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  min-height: var(--about-hero-height);
  padding-block: var(--space-8);
}
.licenses-hero .breadcrumbs { margin-bottom: var(--space-10); }
.licenses-hero h1 {
  max-width: calc(100% - var(--about-hero-image-width));
  margin: 0;
  font-size: var(--font-size-48);
  line-height: var(--line-height-48-48);
}
.licenses-notice {
  margin-top: var(--space-8);
  color: var(--text-secondary);
  font-size: var(--font-size-16);
  line-height: var(--line-height-16-22);
}
.licenses-notice p { margin-bottom: var(--space-2); }
.licenses-notice a {
  color: var(--link-color);
  text-decoration: underline;
  text-underline-offset: var(--space-1);
  overflow-wrap: anywhere;
}
.license-group { margin-top: var(--space-10); }
.license-group + .license-group { margin-top: var(--space-16); }
.licenses-page .appointment { margin-top: var(--section-spacing); }
.licenses-group-title {
  margin-bottom: var(--space-6);
  color: var(--color-primary);
  font-size: var(--font-size-28);
  line-height: var(--line-height-28-38);
  font-weight: var(--font-weight-semibold);
}
.licenses-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-6);
}
.license-card { min-width: 0; margin: 0; }
.license-preview,
.license-placeholder {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: var(--license-document-ratio);
  border: var(--border-width) solid var(--border-color);
  border-radius: var(--radius-card-image);
  background: var(--surface-page);
}
.license-preview { padding: var(--space-4); }
.license-preview img { width: 100%; height: 100%; object-fit: contain; }
.license-card figcaption {
  margin-top: var(--space-4);
  color: var(--document-caption-color);
  font-size: var(--caption-size);
  line-height: var(--caption-line-height);
}
.license-card figcaption a { color: inherit; }
.license-card:focus-within figcaption a,
.license-card:hover figcaption a { color: var(--document-caption-hover-color); }
.license-preview:hover .document-zoom,
.license-preview:focus-visible .document-zoom { opacity: 1; }
.license-placeholder {
  flex-direction: column;
  gap: var(--space-4);
  padding: var(--space-8);
  color: var(--text-secondary);
  text-align: center;
}
.license-placeholder > .icon { width: var(--space-12); height: var(--space-12); color: var(--color-primary); }
.license-placeholder strong { color: var(--color-primary); font-size: var(--font-size-20); line-height: var(--line-height-20-28); }
.license-placeholder > span { font-size: var(--font-size-14); line-height: var(--line-height-14-18); }
.license-placeholder-lines { display: grid; gap: var(--space-3); width: 100%; margin-top: var(--space-4); }
.license-placeholder-lines span { height: var(--focus-width); background: var(--border-color); }
.license-placeholder-lines span:last-child { margin-inline: var(--space-6); }
@media (max-width: 64rem) {
  .licenses-hero h1 { font-size: var(--font-size-32); line-height: var(--line-height-32-40); }
  .licenses-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 48rem) {
  .licenses-hero { display: flex; flex-direction: column; }
  .licenses-hero-inner { order: -1; min-height: 0; padding-block: var(--space-6) var(--space-8); }
  .licenses-hero-image { position: relative; width: 100%; height: var(--service-photo-height-compact); }
  .licenses-hero h1 { max-width: 100%; }
  .licenses-hero .breadcrumbs { margin-bottom: var(--space-8); }
  .licenses-group-title { font-size: var(--font-size-22); line-height: var(--line-height-22-22); }
  .license-group + .license-group { margin-top: var(--space-12); }
  .licenses-grid { grid-template-columns: 1fr; }
}
@media (hover: none) {
  .license-preview .document-zoom { opacity: 1; }
}
