* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

:root {
  --bs-primary: #212529;
  --bs-primary-rgb: 33, 37, 41;
  --bs-link-color: #212529;
  --bs-link-hover-color: #000000;
  --bs-focus-ring-color: rgba(33, 37, 41, 0.25);
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: #f8f9fa;
  color: #212529;
}

main {
  flex: 1 0 auto;
}

body > footer {
  margin-top: auto !important;
}

a {
  color: #212529;
}

a:hover {
  color: #000000;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 1050;
  padding: 0.5rem 0.75rem;
  background: #111;
  color: #fff;
  text-decoration: none;
  border-radius: 0.5rem;
}

.skip-link:focus {
  top: 12px;
}

.placeholder-photo {
  position: relative;
  width: 100%;
  min-height: 190px;
  border: 1px dashed #adb5bd;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.placeholder-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.preview-guide-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
}

.placeholder-photo.has-image .preview-initials {
  display: none;
}

.placeholder-photo.has-image .preview-guide-image {
  display: none;
}

.placeholder-photo.has-image .preview-guidance {
  display: none;
}

.preview-initials {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 56px;
  height: 56px;
  border-radius: 999px;
  font-weight: 700;
  background: #212529;
  color: #fff;
}

.preview-guidance {
  position: absolute;
  bottom: 0.4rem;
  left: 0.5rem;
  right: 0.5rem;
  font-size: 0.75rem;
  color: #6c757d;
  text-align: center;
}

.preview-guidance-list {
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
  padding-left: 0;
  list-style-position: inside;
  color: #495057;
  font-size: 0.95rem;
  line-height: 1.35;
  text-align: center;
}

.preview-guidance-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  padding: 0.55rem 0.8rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.preview-guidance-title {
  position: relative;
  z-index: 1;
  text-align: center;
  font-weight: 700;
  font-size: 1.25rem;
  color: #212529;
}

.preview-guidance-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: clamp(9rem, 30vw, 16rem);
  line-height: 1;
  color: #6c757d;
  opacity: 0.06;
  pointer-events: none;
}

.preview-guidance-list {
  position: relative;
  z-index: 1;
}

.preview-photo-grid {
  display: grid;
  grid-template-columns: 1fr !important;
  gap: 0.5rem;
  width: 100%;
}

.preview-photo-grid .placeholder-photo {
  width: 100%;
  min-width: 100%;
  max-width: 100%;
  flex: 0 0 100%;
}

pre {
  white-space: pre-wrap;
  word-break: break-word;
}

#exportPreview {
  min-height: 300px;
}

.progress-bar {
  background-color: #212529;
}

#completenessBarTrack {
  height: 1.05rem;
  border: 1px solid #dee2e6;
  background-color: #f1f3f5;
}

.navbar .nav-link.active,
.navbar .nav-link.show,
.navbar .nav-link[aria-current="page"] {
  color: #000000 !important;
}

.navbar .dropdown-item.active,
.navbar .dropdown-item:active {
  color: #000000;
  background-color: #e9ecef;
}

.navbar .navbar-brand {
  font-size: 1.35rem;
}

.navbar .menu-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2rem;
  font-size: 0;
  line-height: 1;
  color: transparent;
  border: 1px solid #dee2e6;
  border-radius: 0.5rem;
  padding: 0;
  margin-left: 0.25rem;
  text-decoration: none;
}

.navbar .menu-toggle::before {
  content: "";
  display: block;
  width: 1.2rem;
  height: 0.7rem;
  border-top: 2px solid #212529;
  border-bottom: 2px solid #212529;
  background: linear-gradient(#212529, #212529) center / 100% 2px no-repeat;
}

.navbar .menu-toggle:hover,
.navbar .menu-toggle:focus {
  background-color: #f1f3f5;
  border-color: #ced4da;
}

.navbar .menu-toggle::after {
  display: none;
}

footer .badge.text-bg-dark {
  font-size: 0.9rem;
  padding: 0.45rem 0.75rem;
}

footer li[aria-label="Social media icons (not linked)"] {
  font-size: 1.35rem !important;
  margin-top: 0.35rem;
}
