/* Shared layout for /party-tips-style content pages (tassel-garland-instruction-manual
   and future guides). Root class .tips-page scopes everything so it can sit
   alongside page-specific CSS without clashing. */

.tips-page { padding: 24px 0 0; }

.tips-page .content { width: min(92vw, 900px); margin: 0 auto; }

/* --- Breadcrumb: same recipe as .product__first_fold / .catalog__first_fold --- */
.tips-page .crumbs > ol {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
  font-size: .875rem;
  color: var(--colour-1);
}
.tips-page .crumbs > ol > li + li::before {
  content: '>';
  margin-right: .5rem;
  color: var(--colour-1);
}
.tips-page .crumbs > ol > li[aria-current] { color: var(--colour-2); }

/* --- Header --- */
.tips-head { margin-bottom: 2rem; }
.tips-head > h1 {
  margin: 0 0 .75rem;
  color: var(--colour-7);
  font-size: 1.75rem;
  line-height: 1.2;
}
.tips-head > .tips-intro {
  margin: 0;
  max-width: 60ch;
  color: var(--colour-1);
  font-size: 1.0625rem;
}

/* --- Body: figure + steps, side by side on wider screens --- */
.tips-body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}

.tips-figure {
  margin: 0;
  border: 1px solid var(--colour-6);
  border-radius: 20px;
  overflow: hidden;
  background: white;
}
.tips-figure > img { width: 100%; height: auto; }
.tips-figure > figcaption {
  padding: .875rem 1.125rem;
  border-top: 1px solid var(--colour-6);
  color: var(--colour-1);
  font-size: .875rem;
}

.tips-steps {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: tips-step;
}
.tips-steps > li {
  display: grid;
  grid-template-columns: 2.25rem 1fr;
  gap: .875rem;
  align-items: start;
}
.tips-steps > li::before {
  counter-increment: tips-step;
  content: counter(tips-step);
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--colour-2);
  color: white;
  font-weight: 700;
  font-size: .9375rem;
}
.tips-steps > li > p {
  margin: .3rem 0 0;
  color: var(--colour-10);
}

/* --- Prose fallback, for pages that are mostly text --- */
.tips-prose { color: var(--colour-10); }
.tips-prose p { margin: 0 0 1rem; }
.tips-prose img {
  border: 1px solid var(--colour-6);
  border-radius: 20px;
  margin: 1.5rem 0;
}

/* --- CTA footer, same recipe as .faq__second_fold --- */
.tips__cta {
  margin-top: 3rem;
  padding: 2.5rem 0;
  background: var(--background-colour);
  text-align: center;
}
.tips__cta h2 {
  margin: 0 0 .5rem;
  color: var(--colour-7);
}
.tips__cta p {
  margin: 0 auto 1.5rem;
  max-width: 45ch;
  color: var(--colour-1);
}
.tips__cta .cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}
.tips__cta .cta-button {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  border-radius: 999px;
  background: var(--colour-2);
  padding: .75rem 1.5rem;
  color: white;
  font-size: .9375rem;
  font-weight: 600;
}
.tips__cta .cta-outline {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--colour-2);
  border-radius: 999px;
  padding: .75rem 1.5rem;
  color: var(--colour-2);
  font-size: .9375rem;
  font-weight: 600;
}

.tips-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.5rem;
  font-size: .875rem;
}
.tips-table th,
.tips-table td {
  border: 1px solid var(--colour-6);
  padding: .625rem .75rem;
  text-align: left;
  vertical-align: top;
}
.tips-table th {
  background: var(--background-colour);
  color: var(--colour-7);
  font-weight: 600;
}

.tips-video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 1rem 0 1.5rem;
  border-radius: 20px;
  overflow: hidden;
}
.tips-video > iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.tips-note {
  border: 1px solid var(--colour-6);
  border-left: 4px solid var(--colour-2);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  background: var(--background-colour);
}
.tips-note ul { margin: 0; padding-left: 1.25rem; }
.tips-note li { margin-bottom: .5rem; color: var(--colour-10); }
.tips-note li:last-child { margin-bottom: 0; }


/* --- Photo gallery grid (balloon-arch, latex-balloon-printing, balloon-inspiration) --- */
.tips-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 0;
}
.tips-gallery > figure {
  margin: 0;
  padding: 0;
  line-height: 0;
  border: 1px solid var(--colour-6);
  border-radius: 20px;
  overflow: hidden;
  background: white;
}
.tips-gallery > figure > img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  margin: 0;
}
.tips-gallery > figure > figcaption {
  padding: .625rem .875rem;
  border-top: 1px solid var(--colour-6);
  color: var(--colour-1);
  font-size: .8125rem;
  text-align: center;
}
/* dense: plain logo-wall grid, no visible captions (still has alt text) */
.tips-gallery--dense { gap: .625rem; }
.tips-gallery--dense > img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid var(--colour-6);
  border-radius: 12px;
}

.img-lightbox {
  border: none;
  border-radius: 12px;
  padding: 0;
  max-width: 90vw;
  max-height: 90vh;
  background: transparent;
}
.img-lightbox::backdrop { background: rgba(0, 0, 0, .75); }
.img-lightbox > img { display: block; max-width: 90vw; max-height: 85vh; border-radius: 12px; }
.img-lightbox-close {
  position: absolute;
  top: -2.5rem;
  right: 0;
  border: none;
  background: none;
  color: white;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

@media screen and (min-width: 600px) {
  .tips-gallery { grid-template-columns: repeat(3, 1fr); }
}


@media screen and (min-width: 768px) {
  .tips-body { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 3rem; }
  .tips-head > h1 { font-size: 2.25rem; }
}

@media screen and (min-width: 1024px) {
  .tips-gallery { grid-template-columns: repeat(4, 1fr); }
  .tips-gallery--dense { grid-template-columns: repeat(6, 1fr); }
}
