/* Restoration story gallery (Shared/RestorationStory.razor) and the featured project on /restore (Shared/RestorationFeatured.razor).
   Arcade Lore purple: #7c3aed / #6d28d9 / #4c1d95 / #ede9fe / #f5f3ff. Phone first: 2 columns, more as space allows. */

.rs-story { margin-top: 2rem; scroll-margin-top: 1rem; }
.rs-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: .5rem 1rem; margin-bottom: .5rem; }
.rs-title { font-size: 1.35rem; font-weight: 800; margin: 0; }
.rs-sub { color: #6b7280; font-size: .9rem; margin: .15rem 0 0; }

.rs-phase { margin-top: 1rem; }
.rs-phase-title { font-size: 1rem; font-weight: 700; margin: 0 0 .5rem; display: flex; align-items: center; gap: .5rem; }
.rs-phase-count { color: #6b7280; font-weight: 500; font-size: .85rem; }
.rs-pill { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; border-radius: 999px; padding: .2rem .65rem; background: #ede9fe; color: #4c1d95; }
.rs-phase-during .rs-pill { background: #f5f3ff; color: #6d28d9; border: 1px solid #ddd6fe; }
.rs-phase-after .rs-pill { background: #7c3aed; color: #fff; }

.rs-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
@media (min-width: 576px) { .rs-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 992px) { .rs-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.rs-more { margin-top: .6rem; min-height: 44px; width: 100%; justify-content: center; }
@media (min-width: 576px) { .rs-more { width: auto; } }
.rs-item { margin: 0; display: flex; flex-direction: column; gap: .3rem; }
.rs-thumb { display: block; width: 100%; border: 0; padding: 0; background: #1f1147; border-radius: .55rem; overflow: hidden; aspect-ratio: 4 / 3; box-shadow: 0 1px 3px rgba(17, 24, 39, .1); transition: transform .12s ease, box-shadow .12s ease; }
.rs-thumb:hover, .rs-thumb:focus-visible { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(76, 29, 149, .25); outline: none; }
.rs-thumb:focus-visible { box-shadow: 0 0 0 3px #a78bfa; }
.rs-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rs-item figcaption { display: flex; flex-direction: column; line-height: 1.25; }
.rs-cap { font-size: .85rem; font-weight: 600; color: #1f2937; }
.rs-date { font-size: .75rem; color: #6d28d9; }

.rs-lightbox { position: fixed; inset: 0; z-index: 1080; background: rgba(10, 6, 25, .92); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 1rem; outline: none; }
.rs-lightbox img { max-width: 100%; max-height: 74vh; border-radius: .5rem; box-shadow: 0 10px 40px rgba(0, 0, 0, .5); }
.rs-lightbox-top { display: flex; align-items: center; gap: .6rem; margin-bottom: .6rem; color: #e5e7eb; font-size: .85rem; }
.rs-lightbox-caption { color: #e5e7eb; margin-top: .6rem; text-align: center; display: flex; flex-direction: column; gap: .1rem; }
.rs-lightbox-date { color: #c4b5fd; font-size: .85rem; }
.rs-lightbox .btn { min-height: 44px; min-width: 88px; }

.rs-btn { background: #7c3aed; border-color: #7c3aed; color: #fff; font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; }
.rs-btn:hover, .rs-btn:focus-visible { background: #6d28d9; border-color: #6d28d9; color: #fff; }
.rs-btn-outline { border: 1px solid #7c3aed; color: #6d28d9; background: #fff; font-weight: 600; display: inline-flex; align-items: center; }
.rs-btn-outline:hover, .rs-btn-outline:focus-visible { background: #f5f3ff; color: #4c1d95; border-color: #6d28d9; }
.rs-featured-actions .rs-btn-outline { min-height: 44px; }

/* Featured project (/restore) */
.rs-featured { margin: 1.5rem 0; border-radius: 1rem; padding: 1.1rem; color: #fff; background: linear-gradient(135deg, #0b1c3d 0%, #2b0b45 55%, #7c3aed 100%); box-shadow: 0 8px 28px rgba(43, 11, 69, .25); }
@media (min-width: 768px) { .rs-featured { padding: 1.5rem; } }
.rs-kicker { display: inline-block; font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #ddd6fe; background: rgba(255, 255, 255, .12); border-radius: 999px; padding: .2rem .65rem; }
.rs-featured-title { font-size: 1.4rem; font-weight: 800; margin: .45rem 0 .1rem; color: #fff; }
.rs-featured-sub { color: #ddd6fe; font-size: .9rem; margin: 0 0 .9rem; }
.rs-ba { display: grid; grid-template-columns: 1fr; gap: .75rem; }
@media (min-width: 576px) { .rs-ba { grid-template-columns: 1fr 1fr; } }
.rs-ba-card { position: relative; display: block; border-radius: .75rem; overflow: hidden; aspect-ratio: 4 / 3; background: #1f1147; color: #fff; text-decoration: none; }
.rs-ba-card img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .2s ease; }
.rs-ba-card:hover img, .rs-ba-card:focus-visible img { transform: scale(1.02); }
.rs-ba-label { position: absolute; top: .6rem; left: .6rem; font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; border-radius: 999px; padding: .25rem .7rem; }
.rs-ba-before { background: rgba(17, 24, 39, .8); color: #fff; }
.rs-ba-after { background: #7c3aed; color: #fff; }
.rs-ba-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.4rem .75rem .55rem; font-size: .82rem; background: linear-gradient(transparent, rgba(10, 6, 25, .78)); padding-right: 3.2rem; }
.rs-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .4rem; margin-top: .75rem; }
@media (min-width: 576px) { .rs-strip { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.rs-strip-item { display: block; aspect-ratio: 1 / 1; border-radius: .45rem; overflow: hidden; background: #1f1147; opacity: .92; transition: opacity .12s ease; }
.rs-strip-item:hover, .rs-strip-item:focus-visible { opacity: 1; }
.rs-strip-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rs-featured-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.rs-featured .rs-btn { background: #fff; border-color: #fff; color: #4c1d95; }
.rs-featured .rs-btn:hover, .rs-featured .rs-btn:focus-visible { background: #ede9fe; border-color: #ede9fe; color: #4c1d95; }
.rs-featured .rs-btn-outline { background: transparent; border-color: rgba(255, 255, 255, .7); color: #fff; }
.rs-featured .rs-btn-outline:hover, .rs-featured .rs-btn-outline:focus-visible { background: rgba(255, 255, 255, .12); color: #fff; }

/* Small note on sold listing cards (/for-sale "Previously sold") */
.rs-card-note { display: inline-block; font-size: .72rem; font-weight: 700; border-radius: 999px; padding: .12rem .55rem; background: #ede9fe; color: #4c1d95; }
