/* Arrangements page (arrangements.html only): theme cards with a swipeable photo gallery */
.page--arrangements { max-width: var(--max); }
.page--arrangements h1 { font-family: var(--font-serif, Georgia, serif); font-weight: 600; }
.arr-jump { margin: 0 0 1.5rem; }
.arr-grid { display: grid; grid-template-columns: 1fr; gap: 1.75rem; }
@media (min-width: 640px) { .arr-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; } }
@media (min-width: 1000px) { .arr-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.arr-card { display: flex; flex-direction: column; min-width: 0; background: var(--white); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; box-shadow: var(--shadow-soft); scroll-margin-top: calc(var(--header-h) + 16px); }
.arr-body { display: flex; flex-direction: column; gap: 0.55rem; padding: 1rem 1.1rem 1.2rem; flex: 1 1 auto; }
.arr-body > .arr-request { margin-top: auto; }
.arr-body > :nth-last-child(2) { margin-bottom: 0.5rem; }
.arr-body h2 { margin: 0; font-family: var(--font-serif, Georgia, serif); font-weight: 600; font-size: 1.35rem; line-height: 1.2; color: var(--purple-deep); }
.arr-colors { margin: 0; font-size: 0.9rem; line-height: 1.5; color: var(--ink); }
.arr-label { font-weight: 700; color: var(--purple-deep); }
.arr-desc { margin: 0; font-size: 0.92rem; line-height: 1.6; color: var(--ink-muted); text-wrap: pretty; }
.arr-request { align-self: stretch; text-align: center; }

/* gallery: native scroll-snap (swipe on touch), arrows + dots for mouse */
.arr-gallery { position: relative; background: var(--mist); }
.arr-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; overscroll-behavior-x: contain; scrollbar-width: none; -webkit-overflow-scrolling: touch; aspect-ratio: 4 / 5; }
.arr-track::-webkit-scrollbar { display: none; }
.arr-track:focus-visible { outline: 3px solid var(--purple-light); outline-offset: -3px; }
.arr-slide { flex: 0 0 100%; margin: 0; scroll-snap-align: start; scroll-snap-stop: always; aspect-ratio: 4 / 5; }
.arr-slide img { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (prefers-reduced-motion: reduce) { .arr-track { scroll-behavior: auto; } }

.arr-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, 0.88); color: var(--purple-deep); font-size: 1.7rem; line-height: 1; display: flex; align-items: center; justify-content: center; padding: 0 0 4px; cursor: pointer; box-shadow: 0 2px 8px rgba(46, 36, 48, 0.18); }
.arr-nav:hover { background: var(--white); color: var(--purple); }
.arr-nav:focus-visible { outline: 3px solid var(--purple-light); outline-offset: 2px; }
.arr-nav[disabled] { opacity: 0; pointer-events: none; }
.arr-prev { left: 10px; }
.arr-next { right: 10px; }
.arr-dots { position: absolute; left: 0; right: 0; bottom: 8px; display: flex; justify-content: center; gap: 2px; }
.arr-dot { width: 24px; height: 24px; padding: 0; border: 0; background: transparent; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.arr-dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, 0.75); box-shadow: 0 0 0 1px rgba(75, 26, 99, 0.35); transition: transform .15s; }
.arr-dot.is-active::before { background: var(--purple); box-shadow: 0 0 0 2px #fff; transform: scale(1.15); }
.arr-dot:focus-visible { outline: 2px solid var(--purple-light); border-radius: 50%; }

/* ===== v2: theme index tiles + one page per theme (build_arrangements.py v2) ===== */
.page--arrangements h1, .page--arrangements h2, .page--arrangements h3 { font-family: var(--font-serif, Georgia, serif); font-weight: 600; color: var(--purple-deep); }
.ai-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.9rem; margin-top: 1.25rem; }
@media (min-width: 760px) { .ai-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; } }
.ai-tile { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-soft); color: var(--ink); text-decoration: none; transition: box-shadow .2s, transform .2s; }
.ai-tile:hover { box-shadow: 0 8px 22px rgba(75, 26, 99,.16); transform: translateY(-2px); }
.ai-tile img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
.ai-body { display: flex; flex-direction: column; gap: 0.5rem; padding: 0.75rem 0.8rem 0.9rem; flex: 1 1 auto; }
.ai-name { font-family: var(--font-serif, Georgia, serif); font-weight: 600; font-size: 1.05rem; line-height: 1.2; color: var(--purple-deep); }
.ai-dots { display: flex; flex-wrap: wrap; padding-left: 2px; }
.ai-link { margin-top: auto; font-size: 0.82rem; font-weight: 700; color: var(--purple); }
@media (min-width: 760px) { .ai-name { font-size: 1.2rem; } }

.tp { padding-bottom: 2rem; }
.tp-hero { position: relative; margin: 0.5rem 0 0; border-radius: 12px; overflow: hidden; background: #2a1420; }
.tp-hero img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
.tp-hero-text { position: absolute; left: 0; right: 0; bottom: 0; padding: 5rem 1.25rem 1.5rem; text-align: center; color: #fff;
  background: linear-gradient(to top, rgba(31,10,25,.85) 0%, rgba(31,10,25,.55) 55%, rgba(31,10,25,0) 100%); }
.tp-hero h1 { color: #fff; margin: 0.15rem 0 0.6rem; font-size: clamp(2rem, 7vw, 3rem); line-height: 1.1; }
.tp-kicker { margin: 0; font-size: 0.75rem; letter-spacing: 0.18em; text-transform: uppercase; opacity: .9; }
.tp-hero-dots { list-style: none; display: flex; justify-content: center; gap: 6px; margin: 0 0 1.1rem; padding: 0; }
.tp-hero-dots li { width: 20px; height: 20px; border-radius: 50%; box-shadow: 0 0 0 2px rgba(255,255,255,.85); }
.tp-hero .btn { min-width: 240px; }
@media (min-width: 900px) {
  .tp-hero { display: grid; grid-template-columns: 540px 1fr; align-items: center; background: var(--lav, #F3EBDD); }
  .tp-hero-text { position: static; background: none; color: var(--ink); padding: 2rem 2.5rem; }
  .tp-hero h1 { color: var(--purple-deep); font-size: 3rem; }
  .tp-kicker { color: var(--purple); }
  .tp-hero-dots li { width: 28px; height: 28px; box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--line); }
}

.tp-sec { margin-top: 2.75rem; text-align: center; }
.tp-sec h2 { margin: 0 0 1rem; font-size: 1.6rem; }
.tp-sub { margin: -0.6rem 0 1.25rem; color: var(--ink-muted); font-size: 0.95rem; }
.tp-swatches { list-style: none; margin: 0 auto; padding: 1.25rem 0 0; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: center; gap: 1.1rem 1.1rem; max-width: 640px; }
.tp-sw { display: flex; flex-direction: column; align-items: center; gap: 0.45rem; width: 84px; font-size: 0.82rem; font-weight: 700; color: var(--ink); text-align: center; line-height: 1.25; }
.tp-dot { display: block; width: 76px; height: 76px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08), var(--shadow-soft); }
@media (max-width: 480px) {
  .tp-swatches { max-width: 310px; gap: 1rem 1.2rem; }
  .tp-sw { width: 76px; font-size: 0.78rem; }
  .tp-dot { width: 64px; height: 64px; }
}
.tp-mdot { display: inline-block; width: 26px; height: 26px; border-radius: 50%; border: 2px solid #fff; margin-right: -5px; box-shadow: 0 0 0 1px var(--line); }

.tp-mixes { display: grid; grid-template-columns: 1fr; gap: 1.25rem; text-align: left; }
@media (min-width: 700px) { .tp-mixes { grid-template-columns: 1fr 1fr; } }
.tp-mix { display: grid; grid-template-columns: 42% 1fr; background: var(--white); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-soft); }
.tp-mix-photo { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 5; }
.tp-mix-body { padding: 1rem; display: flex; flex-direction: column; gap: 0.6rem; }
.tp-mix-body h3 { margin: 0; font-size: 1.25rem; }
.tp-mix-body p { margin: 0; font-size: 0.88rem; line-height: 1.5; color: var(--ink-muted); }
.tp-mix-dots { display: flex; }
.tp-mix-body .btn { margin-top: auto; font-size: 0.8rem; padding-left: 0.6rem; padding-right: 0.6rem; }

.tp-gallery { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem; }
.tp-gallery a { flex: 0 0 calc((100% - 1.2rem) / 3); }
@media (max-width: 480px) { .tp-gallery a { flex-basis: calc((100% - 0.6rem) / 2); } }
.tp-gallery img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 10px; }

.tp-about { max-width: 720px; margin-left: auto; margin-right: auto; }
.tp-about p { color: var(--ink-muted); line-height: 1.7; text-align: left; }
.tp-cta { justify-content: center; margin-top: 1rem; }

.tp-pn { display: grid; grid-template-columns: 1fr auto 1fr; gap: 0.75rem; align-items: center; margin-top: 2.75rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.tp-pn a { display: flex; flex-direction: column; gap: 0.15rem; font-family: var(--font-serif, Georgia, serif); font-weight: 600; color: var(--purple-deep); text-decoration: none; font-size: 0.95rem; line-height: 1.2; }
.tp-pn a span { font-family: var(--font-ui); font-weight: 700; font-size: 0.72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); }
.tp-pn .tp-next { text-align: right; align-items: flex-end; }
.tp-pn .tp-all { font-family: var(--font-ui); font-size: 0.82rem; font-weight: 700; color: var(--purple); border: 1px solid var(--line); border-radius: 999px; padding: 0.55rem 0.9rem; }
@media (min-width: 700px) { .tp-swatches { max-width: 820px; gap: 1.1rem 0.9rem; } }
