/*---------------------------------------------------
  Indy Shared Components
----------------------------------------------------*/
.btn-book {
  background-color: var(--color-blue);
  color: #fff;
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.2;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-pill);
  text-decoration: none;
  box-shadow: var(--shadow-action);
  transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.btn-book:hover,
.btn-book:focus-visible {
  background-color: var(--color-blue-hover);
  color: #fff;
  box-shadow: var(--shadow-action-hover), var(--focus-ring-action);
  transform: translateY(-2px);
}

.nav-right .btn-book {
  background-color: var(--color-blue);
  color: #fff;
  border-radius: var(--radius-pill);
  padding: 0.75rem 1.25rem;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: box-shadow 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
}

.nav-right .btn-book:hover,
.nav-right .btn-book:focus-visible,
.nav-right .btn-book:active {
  background-color: var(--color-blue-hover);
  color: #fff;
  box-shadow: var(--shadow-action-hover), var(--focus-ring-action);
  transform: translateY(-1px);
}

.btn-utility-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 46px;
  padding: 0.75rem 1.35rem;
  border-radius: var(--radius-pill);
  border: 1px solid #bfccdd;
  background: rgba(246, 249, 253, 0.96);
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  box-shadow: var(--shadow-surface-soft);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.btn-utility-secondary:hover,
.btn-utility-secondary:focus-visible {
  background: rgba(231, 241, 255, 0.98);
  border-color: #9bc2f1;
  color: var(--text-primary);
  transform: translateY(-1px);
  box-shadow: var(--shadow-surface);
}

html.theme-dark .btn-utility-secondary {
  background: rgba(12, 21, 34, 0.84);
  border-color: rgba(148, 163, 184, 0.42);
  color: #eaf3ff;
  box-shadow: 0 12px 26px rgba(2, 8, 20, 0.3);
}

html.theme-dark .btn-utility-secondary:hover,
html.theme-dark .btn-utility-secondary:focus-visible {
  background: rgba(18, 31, 49, 0.9);
  border-color: rgba(96, 165, 250, 0.58);
  color: #ffffff;
}

.card-link-hint {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 44px;
  margin-top: 1rem;
  padding: 0.72rem 1.25rem;
  border-radius: var(--radius-pill);
  border: 1px solid #bfccdd;
  background: rgba(246, 249, 253, 0.96);
  color: var(--text-primary);
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  box-shadow: var(--shadow-surface-soft);
}

html.theme-dark .card-link-hint {
  background: rgba(12, 21, 34, 0.84);
  border-color: rgba(148, 163, 184, 0.42);
  color: #eaf3ff;
  box-shadow: 0 12px 26px rgba(2, 8, 20, 0.3);
}

.contact-breadcrumb-shell,
.page-breadcrumb-shell {
  margin-top: 0.9rem;
  margin-bottom: 0.4rem;
}

.contact-breadcrumb-bar,
.page-breadcrumb-bar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: var(--shell-breadcrumb-gap);
  min-height: var(--shell-breadcrumb-min-height);
  padding: 0.45rem 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition: none;
}

.contact-breadcrumbs,
.page-breadcrumbs {
  color: var(--text-muted);
  margin: 0;
  line-height: 1.2;
  font-size: 0.95rem;
  text-wrap: pretty;
}

.contact-breadcrumbs a,
.page-breadcrumbs a {
  color: var(--text-primary);
}

.page-breadcrumb-bar .profile-back-link,
.page-breadcrumb-bar .profile-next-link {
  flex: 0 0 auto;
}

.page-breadcrumb-bar .profile-next-link {
  margin-left: auto;
}

html.theme-dark .contact-breadcrumb-bar,
html.theme-dark .page-breadcrumb-bar {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

.glass-card {
  background: var(--surface-glass);
  border: 1px solid var(--surface-glass-border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

html.theme-dark .glass-card {
  background: var(--surface-glass);
  border-color: var(--surface-glass-border);
  box-shadow: var(--shadow-card);
}

.contact-book-card {
  background: var(--surface-card);
  border: var(--surface-card-border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-surface);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: var(--surface-card-padding);
  text-align: center;
}

.contact-book-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  align-items: stretch;
}

.contact-book-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--text-primary);
  width: 100%;
}

.contact-book-label {
  font-weight: 700;
  color: var(--text-primary);
}

.contact-book-icon {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.contact-book-icon-file::before {
  content: "";
  width: 22px;
  height: 22px;
  display: block;
  background-color: var(--color-blue);
  -webkit-mask-image: var(--icon-url);
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
  mask-image: var(--icon-url);
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
}

.contact-book-value {
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 0.85rem;
  overflow-wrap: anywhere;
  word-break: break-word;
  max-width: 100%;
}

.contact-book-qr {
  width: min(200px, 100%);
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--border-soft);
  background: #fff;
}

.contact-book-download {
  margin-top: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 44px;
  padding: 0.45rem 0.2rem;
}

.contact-book-note {
  margin-top: 0.8rem;
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.35;
}

.contact-book-download:hover,
.contact-book-download:focus-visible {
  color: var(--color-blue);
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.contact-book-download-icon {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.contact-book-download-icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 991.98px) {
  .contact-breadcrumb-shell,
  .page-breadcrumb-shell {
    margin-top: 0.75rem;
    margin-bottom: 0.25rem;
  }

  .contact-breadcrumb-bar,
  .page-breadcrumb-bar {
    min-height: var(--shell-breadcrumb-min-height);
    padding: 0.42rem 0.15rem;
  }

  .contact-book-card {
    padding: 1rem 1rem 0.9rem;
  }

  .contact-book-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
  }

  .contact-book-qr {
    width: min(200px, 100%);
  }

  .contact-book-download {
    min-height: 48px;
    padding: 0.55rem 0.3rem;
  }
}

@media (max-width: 575.98px) {
  .contact-book-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
    padding-inline: 1rem;
  }

  .contact-book-card {
    width: min(100%, 20.75rem) !important;
    max-width: 20.75rem;
    margin-inline: auto;
  }
}
