/* ════════════════════════════════════════════
   PROJECT DETAIL PAGE STYLES
   Requires styles.css (design tokens + nav + footer)
════════════════════════════════════════════ */

/* ── Project Title Banner ── */
@keyframes banner-pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.75; }
}

.project-banner {
  position: relative;
  background: var(--navy);
  min-height: 300px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 52px), 0 100%);
  margin-bottom: -26px;
}

/* Primary category color bloom — driven by --cat-r/g/b set inline by PHP */
.project-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 85% at 80% 20%,
      rgba(var(--cat-r),var(--cat-g),var(--cat-b),0.65) 0%, transparent 65%),
    radial-gradient(ellipse 35% 50% at 15% 85%,
      rgba(var(--cat-r),var(--cat-g),var(--cat-b),0.25) 0%, transparent 55%);
  animation: banner-pulse 6s ease-in-out infinite;
}

/* Diagonal hairline stripe texture */
.project-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    -52deg,
    transparent,
    transparent 22px,
    rgba(255,255,255,0.028) 22px,
    rgba(255,255,255,0.028) 23px
  );
  pointer-events: none;
}

/* Oversized emoji watermark */
.banner-watermark {
  position: absolute;
  right: 2%;
  top: 50%;
  transform: translateY(-55%) rotate(12deg);
  font-size: 15rem;
  line-height: 1;
  opacity: 0.08;
  pointer-events: none;
  user-select: none;
  filter: blur(1.5px);
  z-index: 1;
}

/* Content */
.banner-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 40px 72px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.banner-cat-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 100px;
  color: #fff;
  width: fit-content;
  box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}
/* background set inline by PHP via color_hex — no hardcoded classes needed */

.banner-title {
  font-family: var(--font-head);
  font-size: clamp(1.9rem, 4.5vw, 3.2rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  margin: 0;
  text-shadow: 0 2px 24px rgba(0,0,0,0.45);
  max-width: 720px;
}

.banner-byline {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  margin: 0;
}
.banner-byline a { color: var(--teal-light); text-decoration: none; }
.banner-byline a:hover { text-decoration: underline; }
.banner-byline-sep { margin: 0 8px; opacity: 0.4; }

/* ── Project Media Gallery ── */
.project-gallery {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 185px 185px auto;
  gap: 10px;
  margin: 0 0 40px;
}

.gallery-slot {
  position: relative;
  background: #eef2f7;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 2px dashed #c8d6e0;
  min-height: 160px;
  transition: border-color 0.2s, background 0.2s;
  cursor: default;
}
.gallery-slot:hover {
  border-color: var(--teal);
  background: #e4f5fb;
}
.gallery-slot.featured {
  grid-row: 1 / 3;
  min-height: 280px;
}
/* Solo hero — no gallery images uploaded — expand full width */
.gallery-slot.featured:only-child {
  grid-row: auto;
  grid-column: 1 / -1;
  max-height: 480px;
}
.gallery-slot.video-slot {
  grid-column: 1 / -1;
  min-height: 120px;
  flex-direction: row;
  gap: 14px;
}
.gallery-slot img,
.gallery-slot video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.slot-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  pointer-events: none;
}
.slot-icon { font-size: 2rem; opacity: 0.35; }
.slot-label {
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 700;
  color: #8fa3b1;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}
.slot-sublabel { font-size: 0.7rem; color: #b0c0ca; }

/* ── Sticky quick-stats bar ── */
.project-stats-bar {
  position: sticky;
  top: 64px;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
}

.stats-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  height: 54px;
  display: flex;
  align-items: center;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.stats-bar-inner::-webkit-scrollbar { display: none; }

.stat-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 20px;
  white-space: nowrap;
  flex-shrink: 0;
}

.chip-icon { font-size: 1rem; }

.chip-label {
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-mid);
}

.stats-sep {
  display: block;
  width: 1px;
  height: 22px;
  background: rgba(0,0,0,0.1);
  flex-shrink: 0;
}

.stats-bar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  padding-left: 20px;
  flex-shrink: 0;
}

.bar-action-btn {
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-mid);
  background: var(--off-white);
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: var(--radius-sm);
  padding: 6px 14px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}

.bar-action-btn:hover {
  background: var(--teal);
  color: var(--navy);
  border-color: var(--teal);
}

.bar-action-btn.is-saved {
  background: var(--teal);
  color: var(--navy);
  border-color: var(--teal);
}

/* ── Breadcrumb ── */
.breadcrumb-wrap {
  background: var(--off-white);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.breadcrumb-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 44px;
  font-size: 0.82rem;
}

.breadcrumb a {
  color: var(--teal);
  font-weight: 600;
  transition: color 0.2s;
}

.breadcrumb a:hover { color: var(--blue-dark); }

.crumb-sep { color: var(--text-muted); }

.breadcrumb span[aria-current="page"] {
  color: var(--text-muted);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Two-column project layout ── */
.project-layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 40px 72px;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  align-items: start;
}

/* ── Content sections (left column) ── */
.project-content {
  min-width: 0;
}

.content-section {
  margin-bottom: 52px;
  padding-bottom: 52px;
  border-bottom: 1px solid rgba(0,0,0,0.07);
}

.content-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.content-section h2 {
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 3px solid var(--teal);
  display: inline-block;
}

.content-section p {
  font-size: 1rem;
  color: var(--text-mid);
  line-height: 1.85;
  margin-bottom: 16px;
}

.content-section p:last-child { margin-bottom: 0; }

/* ── What You'll Learn list ── */
.learn-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.learn-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.97rem;
  color: var(--text-mid);
  line-height: 1.65;
}

.learn-list li::before {
  content: '✓';
  font-weight: 800;
  color: var(--teal);
  font-size: 0.9rem;
  flex-shrink: 0;
  margin-top: 2px;
  width: 18px;
}

/* ── Background callout ── */
.background-callout,
.results-callout {
  display: flex;
  gap: 16px;
  background: rgba(0,180,216,0.07);
  border-left: 4px solid var(--teal);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 16px 20px;
  margin-top: 20px;
}

.callout-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
  line-height: 1.6;
}

.background-callout p,
.results-callout p {
  font-size: 0.92rem;
  margin: 0;
  color: var(--text-mid);
}

/* ── Materials list ── */
.materials-note {
  font-size: 0.9rem !important;
  color: var(--text-muted) !important;
  font-style: italic;
  margin-bottom: 20px !important;
}

.materials-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.material-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.15s;
  user-select: none;
}

.material-item:hover { background: var(--off-white); }

.material-check { display: none; }

.checkmark {
  width: 20px;
  height: 20px;
  border: 2px solid #ced4da;
  border-radius: 5px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, border-color 0.15s;
  position: relative;
}

.material-check:checked + .checkmark {
  background: var(--teal);
  border-color: var(--teal);
}

.material-check:checked + .checkmark::after {
  content: '✓';
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 800;
  position: absolute;
}

.material-name {
  flex: 1;
  font-size: 0.95rem;
  color: var(--text-dark);
  transition: color 0.15s;
}

.material-check:checked ~ .material-name {
  color: var(--text-muted);
  text-decoration: line-through;
}

.material-cost {
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  white-space: nowrap;
}

/* ── Procedure steps ── */
.procedure-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.procedure-step {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.step-header {
  display: flex;
  align-items: center;
  gap: 16px;
}

.step-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--white);
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

/* step-num background set inline via color_hex */

.step-header h3 {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
}

.step-body p {
  font-size: 0.97rem;
  color: var(--text-mid);
  line-height: 1.85;
  margin-bottom: 14px;
}

.step-body p:last-child { margin-bottom: 0; }

.step-list {
  list-style: none;
  margin: 12px 0 14px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.step-list li {
  font-size: 0.95rem;
  color: var(--text-mid);
  padding-left: 20px;
  position: relative;
  line-height: 1.65;
}

.step-list li::before {
  content: '–';
  position: absolute;
  left: 4px;
  color: var(--teal);
  font-weight: 700;
}

/* Step tip callout */
.step-tip {
  display: flex;
  gap: 12px;
  background: rgba(247,127,0,0.07);
  border-left: 4px solid var(--orange);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 14px 18px;
  margin-top: 14px;
  font-size: 0.9rem;
  align-items: flex-start;
}

.step-tip span { font-size: 1.1rem; flex-shrink: 0; }

.step-tip p {
  margin: 0;
  font-size: 0.9rem !important;
  color: var(--text-mid);
}

/* Step photo */
.step-photo {
  margin-top: 16px;
  text-align: center;
}
.step-photo img {
  display: block;
  width: 100%;
  max-width: 560px;
  min-height: 180px;
  max-height: 380px;
  object-fit: cover;
  object-position: center;
  border-radius: var(--radius-md);
  box-shadow: 0 2px 12px rgba(0,0,0,0.10);
  margin: 0 auto;
}

.photo-placeholder {
  border: 2px dashed #ced4da;
  border-radius: var(--radius-md);
  padding: 32px 24px;
  text-align: center;
  background: var(--off-white);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.photo-icon { font-size: 2rem; }

.photo-placeholder p {
  font-size: 0.88rem !important;
  color: var(--text-mid) !important;
  margin: 0 !important;
  font-weight: 500;
}

.photo-note {
  font-size: 0.78rem !important;
  color: var(--text-muted) !important;
  font-style: italic;
}

/* ── Data table (step 2) ── */
.data-table-wrap {
  overflow-x: auto;
  margin: 16px 0;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(0,0,0,0.09);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.data-table th {
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 700;
  text-align: left;
  padding: 10px 14px;
  white-space: nowrap;
}

.data-table td {
  padding: 10px 14px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  color: var(--text-muted);
  font-style: italic;
}

.table-example { text-align: center; }

/* ── Going Further cards ── */
.further-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.further-card {
  background: var(--off-white);
  border-radius: var(--radius-md);
  padding: 22px 20px;
  border: 1px solid rgba(0,0,0,0.07);
  transition: box-shadow 0.2s, transform 0.2s;
}

.further-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-6px);
}

.further-icon {
  font-size: 1.8rem;
  display: block;
  margin-bottom: 12px;
}

.further-card h3 {
  font-family: var(--font-head);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}

.further-card p {
  font-size: 0.85rem !important;
  color: var(--text-mid) !important;
  line-height: 1.65 !important;
  margin: 0 !important;
}

/* ── Video placeholder ── */
/* Responsive 16:9 video embed */
.video-embed-wrap {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 */
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #000;
}
.video-embed-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-placeholder {
  background: var(--navy);
  border-radius: var(--radius-lg);
  height: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  text-align: center;
  padding: 40px;
}

.video-play-btn {
  width: 64px;
  height: 64px;
  background: var(--teal);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--white);
  padding-left: 4px;
  opacity: 0.7;
}

.video-placeholder-title {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  margin: 0;
}

.video-placeholder-sub {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.7;
  margin: 0;
}

.video-placeholder-sub a {
  color: var(--teal-light);
}

/* ════════════════════════════════════════════
   SIDEBAR
════════════════════════════════════════════ */
.project-sidebar {
  position: sticky;
  top: calc(64px + 54px + 20px);
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-self: start;
}

.sidebar-card {
  background: var(--white);
  border: 1px solid rgba(0,0,0,0.09);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}

.sidebar-heading {
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 16px;
}

/* Sidebar quick stats list */
.sidebar-stats {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.sidebar-stats li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  font-size: 0.88rem;
}

.sidebar-stats li:last-child { border-bottom: none; }

.sidebar-stat-icon { font-size: 1rem; width: 22px; text-align: center; }

.sidebar-stat-label {
  color: var(--text-muted);
  flex: 1;
}

.sidebar-stat-val {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--navy);
  font-size: 0.85rem;
}

/* Sidebar materials */
.sidebar-materials {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 16px;
}

.sidebar-materials li label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--text-mid);
  cursor: pointer;
  padding: 5px 0;
}

.sidebar-materials input[type="checkbox"] {
  accent-color: var(--teal);
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.sidebar-print-btn {
  width: 100%;
  background: var(--off-white);
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: var(--radius-sm);
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-mid);
  padding: 9px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.sidebar-print-btn:hover {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

/* Sidebar action buttons */
.sidebar-actions-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-save-project,
.btn-share-project {
  width: 100%;
  border-radius: var(--radius-sm);
  font-family: var(--font-head);
  font-size: 0.88rem;
  font-weight: 700;
  padding: 11px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.15s;
  border: 2px solid transparent;
}

.btn-save-project {
  background: var(--teal);
  color: var(--navy);
  border-color: var(--teal);
}

.btn-save-project:hover {
  background: var(--teal-light);
}

.btn-save-project.is-saved {
  background: var(--science-color);
  border-color: var(--science-color);
  color: var(--white);
}

.btn-share-project {
  background: transparent;
  color: var(--navy);
  border-color: rgba(0,0,0,0.15);
}

.btn-share-project:hover {
  border-color: var(--navy);
  background: var(--off-white);
}

/* Related project mini-cards */
.related-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.related-card {
  display: flex;
  gap: 12px;
  align-items: center;
  text-decoration: none;
  color: inherit;
  padding: 8px;
  border-radius: var(--radius-sm);
  transition: background 0.15s;
  margin: 0 -8px;
}

/* ── Skill Tags ── */
.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.skill-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--navy);
  background: var(--off-white);
  border: 1px solid rgba(13,27,42,0.12);
  border-radius: 100px;
  padding: 4px 10px;
  white-space: nowrap;
}

.skill-tag-domain {
  font-family: var(--font-head);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin: 10px 0 4px;
}

/* Project type chip */
.project-type-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--navy);
  background: #fff;
  border: 1.5px solid rgba(13,27,42,0.15);
  border-radius: 100px;
  padding: 5px 12px;
}

.related-card:hover { background: var(--off-white); }

.related-card img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.related-img-placeholder {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  opacity: 0.88;
}

.related-info {
  flex: 1;
  min-width: 0;
}

.related-badge {
  font-family: var(--font-head);
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 2px 8px;
  border-radius: 100px;
  color: var(--white);
  display: inline-block;
  margin-bottom: 4px;
}

/* related-badge background set inline via color_hex */

.related-title {
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.related-meta {
  font-size: 0.76rem;
  color: var(--text-muted);
}

/* ════════════════════════════════════════════
   COMMUNITY SECTION
════════════════════════════════════════════ */
.community-section {
  background: var(--off-white);
  border-top: 1px solid rgba(0,0,0,0.07);
  padding: 64px 40px;
}

.community-inner {
  max-width: 820px;
  margin: 0 auto;
}

.community-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.community-header h2 {
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 6px;
}

.community-header > div > p {
  font-size: 0.92rem;
  color: var(--text-muted);
}

.btn-did-it {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-size: 0.88rem;
  font-weight: 700;
  background: var(--teal);
  color: var(--navy);
  border: none;
  border-radius: var(--radius-sm);
  padding: 12px 22px;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-did-it:hover { background: var(--teal-light); transform: translateY(-1px); }

.btn-did-it.is-done {
  background: var(--science-color);
  color: var(--white);
}

.did-it-icon { font-size: 1rem; }

.did-it-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.community-notes {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 28px;
}

.community-card {
  background: var(--white);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  box-shadow: var(--shadow-sm);
}

.community-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.community-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 800;
  color: var(--white);
  flex-shrink: 0;
}

/* community-avatar background set inline via color_hex */

.community-author {
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 2px;
}

.community-date {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.community-text {
  font-size: 0.95rem;
  color: var(--text-mid);
  line-height: 1.75;
}

.btn-share-tip {
  font-family: var(--font-head);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--teal);
  background: transparent;
  border: 2px solid var(--teal);
  border-radius: var(--radius-sm);
  padding: 11px 24px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.btn-share-tip:hover {
  background: var(--teal);
  color: var(--navy);
}

/* ════════════════════════════════════════════
   MOBILE BOTTOM ACTION BAR
════════════════════════════════════════════ */
.mobile-action-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--white);
  border-top: 1px solid rgba(0,0,0,0.10);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.10);
  z-index: 150;
  padding: 0;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.mobile-action-bar.is-visible {
  transform: translateY(0);
}

.mobile-action {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 12px 8px;
  font-family: var(--font-head);
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-mid);
  background: none;
  border: none;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s;
}

.mobile-action:hover { color: var(--teal); }

.mobile-action:first-child { font-size: 1.2rem; }

/* ════════════════════════════════════════════
   PRINT STYLES
════════════════════════════════════════════ */
@media print {
  .site-nav,
  .project-stats-bar,
  .stats-bar-actions,
  .project-sidebar,
  .community-section,
  .site-footer,
  .mobile-action-bar,
  .video-placeholder,
  .further-grid { display: none !important; }

  .project-layout {
    grid-template-columns: 1fr;
    padding: 24px;
  }

  .project-banner { clip-path: none; margin-bottom: 0; }
  .banner-watermark { display: none; }

  .content-section { break-inside: avoid; }

  .procedure-step { break-inside: avoid; }

  .photo-placeholder { display: none; }
}

/* ════════════════════════════════════════════
   RESPONSIVE — TABLET  (≤ 1024px)
════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .banner-content { padding: 40px 28px 64px; }

  .project-layout {
    padding: 40px 28px 60px;
    grid-template-columns: 1fr 280px;
    gap: 36px;
  }

  .stats-bar-inner { padding: 0 28px; }

  .breadcrumb-inner { padding: 0 28px; }

  .further-grid { grid-template-columns: 1fr 1fr; }

  .community-section { padding: 56px 28px; }
}

/* ════════════════════════════════════════════
   RESPONSIVE — MOBILE  (≤ 768px)
════════════════════════════════════════════ */
@media (max-width: 768px) {
  /* Banner */
  .project-banner { min-height: 240px; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 32px), 0 100%); margin-bottom: -16px; }
  .banner-content { padding: 32px 20px 56px; gap: 10px; }
  .banner-title { font-size: 1.5rem; }
  .banner-watermark { font-size: 9rem; opacity: 0.06; }

  /* Gallery — single column on mobile */
  .project-gallery { grid-template-columns: 1fr; grid-template-rows: auto; }
  .gallery-slot.featured { grid-row: auto; min-height: 220px; }
  .gallery-slot.video-slot { grid-column: auto; flex-direction: column; }

  /* Stats bar — hide separators, horizontal scroll */
  .stats-sep { display: none; }
  .stats-bar-actions { display: none; }
  .stat-chip { padding: 0 14px; }

  /* Breadcrumb — show only one level back */
  .breadcrumb a:first-child,
  .breadcrumb .crumb-sep:first-of-type { display: none; }

  /* Layout — single column */
  .project-layout {
    grid-template-columns: 1fr;
    padding: 32px 20px 100px;
    gap: 0;
  }

  /* Sidebar — hidden (replaced by mobile action bar) */
  .project-sidebar { display: none; }

  /* Show mobile action bar */
  .mobile-action-bar { display: flex; }

  /* Section headings */
  .content-section h2 { font-size: 1.2rem; }

  /* Further cards — single column */
  .further-grid { grid-template-columns: 1fr; }

  /* Stats bar inner */
  .stats-bar-inner { padding: 0 20px; }

  /* Breadcrumb */
  .breadcrumb-inner { padding: 0 20px; }

  /* Community */
  .community-section { padding: 48px 20px 80px; }

  .community-header { flex-direction: column; align-items: flex-start; }

  .btn-did-it { width: 100%; justify-content: center; }
}
