/* ============================================================
   SMILE & DIAL — Past Pieces (sold-watch archive)
   Layered on site.css; uses the same navy / cream / brass tokens.
   ============================================================ */

.pp-wrap { max-width: 80rem; margin: 0 auto; padding: 0 1.25rem; }
.pp-section { background: var(--cream); padding: 3.5rem 0 5rem; }
.pp-section-tight { padding-top: 0; padding-bottom: 4rem; }
.pp-section-title { font-family: var(--app-font-serif); color: var(--navy); font-weight: 500; font-size: clamp(1.5rem, 3vw, 2rem); margin: 0 0 1.5rem; }

/* ---------- "Sold" marks ---------- */
.pp-sold { position: absolute; top: .75rem; left: .75rem; z-index: 2; font-size: .62rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #fff; background: var(--brass); padding: .38rem .7rem; border-radius: 9999px; box-shadow: 0 2px 8px rgba(18,37,72,.18); }
.pp-sold-lg { top: 1rem; left: 1rem; font-size: .7rem; padding: .45rem .9rem; }
.pp-sold-pill { display: inline-block; font-size: .68rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #fff; background: var(--brass); padding: .4rem .85rem; border-radius: 9999px; }

/* ---------- Gallery grid + cards ---------- */
.pp-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 560px) { .pp-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .pp-grid { grid-template-columns: repeat(3, 1fr); gap: 1.75rem; } }
.pp-card { background: #fff; border: 1px solid rgba(28,53,101,.12); border-radius: 1rem; box-shadow: 0 2px 8px rgba(28,53,101,.06); overflow: hidden; transition: transform .3s, box-shadow .3s; }
.pp-card:hover, .pp-card:focus-within { transform: translateY(-6px); box-shadow: 0 14px 40px rgba(18,37,72,.14); }
.pp-card-link { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.pp-card-link:focus-visible { outline: 3px solid var(--brass); outline-offset: -3px; border-radius: 1rem; }
.pp-card-img { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--mist); }
.pp-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease; }
.pp-card:hover .pp-card-img img { transform: scale(1.05); }
.pp-card-body { display: flex; flex-direction: column; gap: .35rem; padding: 1.25rem 1.4rem 1.5rem; }
.pp-card-brand { font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 600; color: var(--brass); }
.pp-card-title { font-family: var(--app-font-serif); font-size: 1.3rem; font-weight: 500; line-height: 1.25; color: var(--navy); margin: 0; }
.pp-card-meta { font-size: .78rem; letter-spacing: .04em; color: #6b7a96; line-height: 1.5; }

/* ---------- Gallery page extras ---------- */
.pp-intro { max-width: 52rem; margin: 0 auto 2.75rem; text-align: center; color: #46536f; line-height: 1.75; }
.pp-intro a { color: var(--navy); text-decoration: underline; text-decoration-color: var(--brass); text-underline-offset: 3px; }
.pp-brandnav { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .55rem; margin-top: 1.5rem; }
.pp-brandnav span { width: 100%; font-size: .7rem; letter-spacing: .22em; text-transform: uppercase; font-weight: 600; color: var(--brass); margin-bottom: .15rem; }
.pp-brandnav a { display: inline-flex; align-items: center; gap: .5rem; padding: .5rem 1rem; border-radius: 9999px; border: 1px solid rgba(28,53,101,.2); background: #fff; color: var(--ink); font-size: .75rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; transition: all .2s; }
.pp-brandnav a:hover { background: var(--navy); border-color: var(--navy); color: #fff; }
.pp-brandnav em { font-style: normal; font-weight: 500; opacity: .6; }
.pp-empty { max-width: 40rem; margin: 2rem auto; text-align: center; background: #fff; border: 1px solid rgba(28,53,101,.12); border-radius: 1rem; padding: 3rem 2rem; box-shadow: 0 2px 8px rgba(28,53,101,.06); }
.pp-empty h2 { font-family: var(--app-font-serif); color: var(--navy); font-weight: 500; font-size: 1.75rem; margin-bottom: .75rem; }
.pp-empty p { color: #46536f; line-height: 1.7; margin-bottom: 1.25rem; }
.pp-pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .5rem; margin-top: 3rem; }
.pp-pager .sd-btn { padding: .6rem 1.2rem; font-size: .75rem; }
.pp-pagenum { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 9999px; border: 1px solid rgba(28,53,101,.2); color: var(--ink); font-weight: 600; font-size: .85rem; text-decoration: none; background: #fff; }
.pp-pagenum:hover { border-color: var(--navy); }
.pp-pagenum.is-current { background: var(--navy); border-color: var(--navy); color: #fff; }
.pp-more { text-align: center; margin-top: 2.25rem; display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; }
.pp-more .sd-btn { font-size: .75rem; padding: .7rem 1.4rem; }

/* ---------- Piece page: gallery + summary ---------- */
.pp-piece { background: var(--cream); padding: 3rem 0 0; }
.pp-piece-grid { max-width: 80rem; margin: 0 auto; padding: 0 1.25rem; display: grid; grid-template-columns: 1fr; gap: 2rem; align-items: start; }
@media (min-width: 960px) { .pp-piece-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 3rem; } .pp-summary { position: sticky; top: calc(var(--sd-header-h, 76px) + 1.25rem); } }
.pp-hero-link { position: relative; display: block; aspect-ratio: 1 / 1; background: #fff; border: 1px solid rgba(28,53,101,.12); border-radius: 1.1rem; overflow: hidden; cursor: zoom-in; box-shadow: 0 2px 8px rgba(28,53,101,.06); }
.pp-hero-img { width: 100%; height: 100%; object-fit: contain; display: block; }
.pp-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: .6rem; margin: .9rem 0 0; padding: 0; list-style: none; }
.pp-thumbs li { margin: 0; }
.pp-thumbs a { display: block; aspect-ratio: 1 / 1; border-radius: .6rem; overflow: hidden; border: 2px solid transparent; background: #fff; box-shadow: 0 1px 4px rgba(28,53,101,.12); transition: border-color .2s, transform .2s; }
.pp-thumbs a:hover { transform: translateY(-2px); }
.pp-thumbs a.is-active { border-color: var(--brass); }
.pp-thumbs a:focus-visible { outline: 3px solid var(--brass); outline-offset: 2px; }
.pp-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }

.pp-summary { background: #fff; border: 1px solid rgba(28,53,101,.12); border-radius: 1.1rem; padding: 1.75rem; box-shadow: 0 2px 8px rgba(28,53,101,.06); }
.pp-status { display: flex; align-items: center; gap: .75rem; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: #6b7a96; margin: 0 0 1rem; }
.pp-price { font-family: var(--app-font-serif); font-size: 2rem; color: var(--navy); line-height: 1.1; margin: 0 0 1.1rem; }
.pp-price span { display: block; font-family: var(--app-font-sans); font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--brass); font-weight: 600; margin-bottom: .3rem; }
.pp-quick { margin: 0 0 1.25rem; padding: 0; border-top: 1px solid rgba(28,53,101,.1); }
.pp-quick div { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid rgba(28,53,101,.08); font-size: .9rem; }
.pp-quick dt { color: #6b7a96; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; padding-top: .15rem; }
.pp-quick dd { margin: 0; color: var(--ink); text-align: right; }
.pp-summary-note { font-size: .9rem; line-height: 1.65; color: #46536f; margin: 0 0 1.25rem; }
.pp-wide { display: flex; width: 100%; margin-bottom: .75rem; text-align: center; }
.pp-summary-contact { margin: 1rem 0 0; font-size: .85rem; line-height: 1.8; color: #6b7a96; text-align: center; }
.pp-summary-contact a { color: var(--navy); text-decoration: underline; text-decoration-color: var(--brass); text-underline-offset: 3px; }

/* ---------- Piece page: article extras ---------- */
.pp-photo-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin: 1rem 0 2rem; }
@media (min-width: 640px) { .pp-photo-list { grid-template-columns: repeat(3, 1fr); } }
.pp-photo-list figure { margin: 0 !important; }
.pp-photo-list img { aspect-ratio: 1 / 1; object-fit: cover; }
.sd-article .pp-photo-list a { text-decoration: none; }
.pp-cta { background: linear-gradient(165deg, var(--navy) 0%, var(--navy-deep) 100%); color: #fff; border-radius: 1rem; padding: 2.25rem 1.75rem; margin: 3rem auto 1rem; text-align: center; max-width: 56rem; }
.pp-cta h2 { font-family: var(--app-font-serif); color: #fff; font-weight: 500; font-size: clamp(1.5rem, 3vw, 2rem); margin: 0 0 .75rem !important; line-height: 1.2; }
.pp-cta p { color: rgba(250,246,237,.86); margin: 0 auto 1.25rem !important; max-width: 36rem; line-height: 1.7; font-size: 1rem; }
.pp-cta-btns { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; margin-bottom: 1.25rem; }
.pp-cta .sd-btn { text-decoration: none; font-size: .78rem; padding: .8rem 1.4rem; }
.pp-cta .sd-btn-cream { color: var(--navy); }
.pp-cta .sd-btn-ghost-light { color: var(--cream); }
.pp-cta p.pp-cta-contact { font-size: .85rem; margin: 0 auto !important; color: rgba(250,246,237,.75); }
.pp-cta-contact a { color: #D8C9A0 !important; text-decoration: underline; text-decoration-color: rgba(216,201,160,.5); text-underline-offset: 3px; }
.pp-reading { margin: 2rem 0 0; }
.pp-reading h2 { font-size: 1.4rem !important; margin: 0 0 .75rem !important; }
.pp-reading ul { margin-bottom: 0 !important; }
.pp-reading-wide { max-width: 56rem; margin: 3rem auto 0; }
.pp-reading-wide h2 { font-family: var(--app-font-serif); color: var(--navy); font-weight: 500; font-size: 1.4rem; margin-bottom: .75rem; }
.pp-reading-wide ul { list-style: disc; margin-left: 1.25rem; color: #2b3a55; line-height: 1.8; }
.pp-reading-wide a { color: var(--navy); text-decoration: underline; text-decoration-color: var(--brass); text-underline-offset: 3px; }
.pp-related { margin-top: 4rem; padding-top: 3rem; border-top: 1px solid rgba(28,53,101,.12); }

/* ---------- Lightbox ---------- */
.pp-lightbox { position: fixed; inset: 0; z-index: 120; background: rgba(12,24,48,.92); display: none; align-items: center; justify-content: center; padding: 1.5rem; }
.pp-lightbox.is-open { display: flex; }
.pp-lightbox img { max-width: min(96vw, 1200px); max-height: 88vh; width: auto; height: auto; border-radius: .5rem; background: #fff; }
.pp-lb-btn { position: absolute; width: 46px; height: 46px; border-radius: 9999px; border: 1px solid rgba(250,246,237,.35); background: rgba(250,246,237,.12); color: #fff; font-size: 1.3rem; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.pp-lb-btn:hover { background: rgba(250,246,237,.25); }
.pp-lb-close { top: 1rem; right: 1rem; }
.pp-lb-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.pp-lb-next { right: 1rem; top: 50%; transform: translateY(-50%); }
body.pp-lb-open { overflow: hidden; }

@media (prefers-reduced-motion: reduce) { .pp-card, .pp-card-img img, .pp-thumbs a { transition: none; } }

/* Keep the footer newsletter row inside the screen on phones (input otherwise refuses to shrink) */
#newsletter-form { max-width: 100%; }
#newsletter-email { min-width: 0; }
