/* Union Street Jewelers — Lab-Grown Diamonds page. Builds on css/style.css: same colours, type,
   shape tiles, range sliders, pager and dialog as the Diamonds page. Only the new parts are here. */

.lab .crumbs { margin-left: 0; }
.lab-head { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: end; padding: 6px 0 34px; border-bottom: 1px solid var(--line); margin-bottom: 34px; }
.lab-head .eyebrow { color: var(--champagne-deep); display: block; }
.lab-head h1.display { font-size: clamp(34px, 4.2vw, 52px); margin: 0; }
.lab-lede { margin-top: 16px; max-width: 62ch; font-size: 16.5px; line-height: 1.7; color: var(--slate); }
.lab-facts { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); background: var(--ivory); }
.lab-facts li { padding: 18px 14px; text-align: center; border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; justify-content: center; }
.lab-facts li:first-child { border-left: 0; }
.lab-facts[hidden] { display: none; }
.lab-facts strong { font-family: var(--serif); font-weight: 400; font-size: 21px; line-height: 1.2; white-space: nowrap; }
.lab-facts span { font-size: 12.5px; color: var(--slate); line-height: 1.35; }
.lab-facts strong span { font: inherit; color: inherit; }

/* filters: open on a desk, folded behind one button on a phone */
.lab-filterbox > summary { display: none; }
.lab-filterbox[hidden] { display: none; }
.lab-chips { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 0; }
.lab-chips button { border: 1px solid var(--line); background: #fff; color: var(--ink); font: 400 14px var(--sans); padding: 7px 16px; border-radius: 20px; cursor: pointer; transition: border-color .2s, background .2s, color .2s; }
.lab-chips button:disabled { opacity: .38; cursor: default; }
.lab-chips button:hover:not(:disabled) { border-color: var(--champagne-deep); }
.lab-chips button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.lab-chips button:focus-visible, .lab-card:focus-visible, .lab-tabs button:focus-visible, .lab-sort select:focus-visible { outline: 2px solid var(--champagne-deep); outline-offset: 2px; }
.lab .dclear[hidden] { display: none; }
.lab .dr-ticks span { white-space: nowrap; }

.lab-bar { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; padding-top: 28px; border-top: 1px solid var(--line); }
.lab-bar[hidden] { display: none; }
.lab-bar .dtitle { font-family: var(--serif); font-weight: 400; font-size: 26px; }
.lab-sort { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: var(--slate); }
.lab-sort select { font: 400 14.5px var(--sans); color: var(--ink); padding: 9px 34px 9px 14px; border: 1px solid var(--line); background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%2316161A' stroke-width='1.2'/%3E%3C/svg%3E") no-repeat right 12px center / 10px 6px; -webkit-appearance: none; appearance: none; border-radius: 0; cursor: pointer; }

/* the stones */
.lab-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 1.8vw, 24px); }
.lab-grid[hidden] { display: none; }
.lab-card { display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); color: inherit; text-decoration: none; text-align: center; transition: box-shadow .35s, border-color .35s; }
.lab-card:hover { border-color: #d8cbb4; box-shadow: 0 14px 32px -18px rgba(22,22,26,.28); }
.lab-ph { position: relative; aspect-ratio: 1; overflow: hidden; display: grid; place-items: center; background: radial-gradient(70% 70% at 50% 42%, #fff 0%, #fbf8f2 55%, #f3ede2 100%); }
.lab-ph svg *, .lab-art svg * { vector-effect: non-scaling-stroke; }
.lab-ph svg { width: 44%; height: 44%; fill: none; stroke: var(--champagne); stroke-width: 1.1; vector-effect: non-scaling-stroke; stroke-linejoin: round; opacity: .9; }
.lab-ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 9%; background: #fff; opacity: 0; transition: opacity .35s, transform .8s cubic-bezier(.16,1,.3,1); }
.lab-ph img.in { opacity: 1; }
.lab-card:hover .lab-ph img { transform: scale(1.04); }
.lab-body { padding: 16px 14px 20px; display: flex; flex-direction: column; gap: 5px; border-top: 1px solid var(--line); flex: 1; }
.lab-tag { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--champagne-deep); }
.lab-card h3 { font-family: var(--serif); font-weight: 400; font-size: 19px; line-height: 1.25; }
.lab-specs { font-size: 14px; color: var(--slate); }
.lab-specs i { font-style: normal; color: var(--champagne); margin: 0 2px; }
.lab-price { margin-top: auto; padding-top: 8px; font-size: 14.5px; color: var(--ink); }
.lab-card:hover .lab-price { color: var(--champagne-deep); }
.lab-skel { pointer-events: none; }
.lab-skel .lab-ph, .lab-skel .lab-body i { background: linear-gradient(100deg, #f6f1e8 30%, #fbf8f2 50%, #f6f1e8 70%); background-size: 200% 100%; animation: lab-sheen 1.4s linear infinite; }
.lab-skel .lab-body i { display: block; height: 12px; margin: 4px auto; width: 60%; }
.lab-skel .lab-body i:nth-child(2) { width: 78%; height: 16px; }
.lab-skel .lab-body i:nth-child(3) { width: 44%; }
@keyframes lab-sheen { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .lab-skel .lab-ph, .lab-skel .lab-body i { animation: none; } .lab-ph img { transition: none; } }

.lab-state { border: 1px solid var(--line); background: var(--ivory); text-align: center; padding: clamp(36px, 6vw, 72px) 24px; }
.lab-state[hidden] { display: none; }
.lab-state h3 { font-family: var(--serif); font-weight: 400; font-size: 26px; }
.lab-state p { color: var(--slate); max-width: 52ch; margin: 10px auto 22px; font-size: 15.5px; }
.lab-state-act { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.lab-state-act .btn { font-size: 14px; padding: 11px 20px; cursor: pointer; font-family: var(--sans); }
.lab-note { margin: 22px auto 0; font-size: 13.5px; color: var(--slate); text-align: center; max-width: 80ch; }
.lab-note[hidden] { display: none; }
.pager .pg-gap { color: var(--slate); padding: 0 2px; }

/* one stone */
.lab-dialog { border: 0; padding: 0; max-width: min(1020px, 94vw); width: 100%; max-height: 92vh; background: #fff; color: var(--ink); margin: auto; overflow: auto; }
.lab-dialog::backdrop { background: rgba(22,22,26,.55); }
.lab-dialog .dlg-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: start; }
.lab-dialog .dlg-x { position: sticky; float: right; top: 8px; margin: 8px 12px -44px 0; width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.92); }
.lab-media { position: sticky; top: 0; padding: 26px 0 26px 26px; }
.lab-stage { position: relative; aspect-ratio: 1; background: radial-gradient(70% 70% at 50% 42%, #fff 0%, #fbf8f2 55%, #f3ede2 100%); border: 1px solid var(--line); overflow: hidden; }
.lab-art { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; }
.lab-art svg { width: 40%; height: 40%; fill: none; stroke: var(--champagne); stroke-width: 1.2; stroke-linejoin: round; }
.lab-art span { font-family: var(--serif); font-size: 17px; letter-spacing: .08em; color: var(--champagne-deep); }
.lab-shot { position: absolute; inset: 0; width: 100%; height: 100%; background: #fff; display: none; }
img.lab-shot { object-fit: contain; padding: 7%; }
.lab-rep img { width: 100%; height: 100%; object-fit: contain; padding: 3%; }
.lab-stage[data-view="photo"] img.lab-shot, .lab-stage[data-view="report"] .lab-rep { display: block; }
.lab-stage[data-view="report"] { aspect-ratio: 5 / 3.2; }
.lab-tabs { display: flex; gap: 8px; margin-top: 12px; }
.lab-tabs button { flex: 1; border: 1px solid var(--line); background: #fff; font: 400 14px var(--sans); padding: 9px 10px; cursor: pointer; color: var(--slate); }
.lab-tabs button[aria-pressed="true"] { border-color: var(--ink); color: var(--ink); }
.lab-dialog .dlg-body { padding: 34px 34px 32px; }
.lab-dialog .dlg-body h2 { font-size: 30px; margin-top: 8px; }
.lab-sub { color: var(--slate); font-size: 15.5px; margin-top: 6px; }
.lab-dialog .dlg-price { font-family: var(--serif); font-size: 23px; color: var(--ink); margin: 20px 0 6px; padding-top: 18px; border-top: 1px solid var(--line); }
.lab-quote { font-size: 14.5px; color: var(--slate); margin-bottom: 16px; }
.lab-call { font-size: 14px; color: var(--slate); margin-top: 12px; }
.lab-call a { color: var(--ink); border-bottom: 1px solid var(--champagne); }
.lab-dialog .dlg-body dl { grid-template-columns: 130px 1fr; gap: 0; margin: 24px 0 0; font-size: 14.5px; border-top: 1px solid var(--line); }
.lab-dialog .dlg-body dt, .lab-dialog .dlg-body dd { padding: 9px 0; border-bottom: 1px solid var(--line); }
.lab-dialog .dlg-body dd .text-link { font-size: 13.5px; margin-left: 8px; white-space: nowrap; }

@media (max-width: 1100px) { .lab-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 960px) {
  .lab-head { grid-template-columns: minmax(0, 1fr); align-items: start; gap: 22px; }
}
@media (max-width: 700px) {
  .lab-head { padding-bottom: 22px; margin-bottom: 18px; }
  .lab-lede { font-size: 15.5px; }
  .lab-facts strong { font-size: 17px; }
  .lab-facts li { padding: 12px 6px; }
  .lab-facts span { font-size: 11.5px; }
  .lab-filterbox > summary { display: flex; align-items: center; justify-content: center; gap: 10px; list-style: none; cursor: pointer; border: 1px solid var(--ink); padding: 12px 16px; font-size: 15px; }
  .lab-filterbox > summary::-webkit-details-marker { display: none; }
  .lab-filterbox > summary span::before { content: ""; display: inline-block; width: 16px; height: 10px; margin-right: 10px; border-top: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); box-shadow: inset 0 -1.5px 0 #fff, inset 0 4px 0 #fff, inset 0 5.5px 0 var(--ink); }
  .lab-filterbox > summary b { background: var(--ink); color: #fff; font-weight: 400; font-size: 12px; min-width: 20px; height: 20px; border-radius: 10px; display: inline-grid; place-items: center; padding: 0 6px; }
  .lab-filterbox > summary b[hidden] { display: none; }
  .lab-filterbox[open] > summary { border-color: var(--line); margin-bottom: 22px; }
  .lab-filterbox[open] > summary span::after { content: " — tap to hide"; color: var(--slate); font-size: 13px; }
  .lab .dfilters { gap: 24px; }
  .lab .shape-tiles { gap: 4px 2px; justify-content: space-between; }
  .lab .dr-ticks { font-size: 12.5px; }
  .lab-bar { padding-top: 20px; margin-bottom: 16px; }
  .lab-bar .dtitle { font-size: 22px; }
  .lab-bar .dtitle small { display: block; margin: 4px 0 0; }
  .lab-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .lab-body { padding: 12px 8px 14px; gap: 4px; }
  .lab-card h3 { font-size: 16.5px; }
  .lab-tag { font-size: 10px; letter-spacing: .12em; }
  .lab-specs { font-size: 13px; }
  .lab-price { font-size: 13.5px; }
  .lab-dialog { max-width: 100vw; width: 100vw; max-height: 100dvh; height: 100dvh; margin: 0; }
  .lab-dialog .dlg-grid { grid-template-columns: minmax(0, 1fr); }
  .lab-media { position: static; padding: 14px 14px 0; }
  .lab-dialog .dlg-body { padding: 22px 18px 28px; }
  .lab-dialog .dlg-body h2 { font-size: 25px; }
  .lab-dialog .dlg-act .btn { flex: 1 1 100%; text-align: center; }
  .lab-dialog .dlg-body dl { grid-template-columns: 118px 1fr; }
}
