/* GLOG kit (_work/kit.mjs): what the base CSS doesn't have. Colours, radii and type sizes are the base's own. */
body { overflow-x: clip !important; }
main [id] { scroll-margin-top: 8.5rem; }
.kit-pad { padding: var(--kit-pt) var(--kit-px) var(--kit-pb); --page-section-px: var(--kit-px); --full-bleed-section: var(--kit-px); --full-bleed: var(--kit-px); }

/* breadcrumb */
.kit-crumbs { margin-bottom: 2rem; }
.kit-crumbs ol { display: flex; flex-wrap: wrap; align-items: center; row-gap: 0.25rem; font-size: 0.875rem; line-height: 1.25rem; color: rgb(119 113 105); }
.kit-crumbs li { display: flex; align-items: center; }
.kit-crumbs svg { width: 1rem; height: 1rem; margin: 0 0.25rem; color: rgb(165 159 151); }
.kit-crumbs a { border-radius: 0.25rem; transition: color 0.15s; }
.kit-crumbs a:hover { color: #000; }
.kit-crumbs [aria-current] { color: #000; }

/* hero */
.kit-hero { display: grid; gap: 2.5rem; }
.kit-hero-sub { margin-top: 1.75rem; max-width: 40rem; }
.kit-orb { width: min(20rem, 64vw); aspect-ratio: 1; border-radius: 9999px; overflow: hidden; background: rgb(245 243 241); box-shadow: inset 0 0 0 0.5px rgb(0 0 0 / 0.075); }
.kit-orb img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 64rem) { .kit-hero-orb { grid-template-columns: minmax(0, 1fr) 20rem; align-items: end; gap: 4rem; } .kit-orb { width: 20rem; } }

/* section heading */
.kit-heading-sub { margin-top: 1.25rem; max-width: 40rem; }

/* product cards and grid */
.kit-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem 0.75rem; }
.kit-grid > li[hidden] { display: none; }
@media (min-width: 48rem) { .kit-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3.5rem 1rem; } }
@media (min-width: 80rem) { .kit-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
/* the stone fills the tile: --z, --x, --y come from the photo manifest (zoom and shift) */
.kit-card-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #fff; transform: translate(var(--x, 0%), var(--y, 0%)) scale(var(--z, 1)); transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1); }
.kit-card:hover .kit-card-img { transform: translate(var(--x, 0%), var(--y, 0%)) scale(calc(var(--z, 1) * 1.04)); }
.kit-card-name { transition: color 0.15s; }
.kit-card:hover .kit-card-name { color: rgb(89 84 79); }
.kit-dims { flex-basis: 100%; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-bottom: 0.1875rem; margin-bottom: -0.1875rem; }
.kit-sold .kit-card-img { opacity: 0.5; filter: grayscale(0.35); }
.kit-add[data-in-bag] { background: rgb(245 243 241); box-shadow: none; }
@media (max-width: 639px) {
  .kit-card > h3, .kit-card > dl, .kit-card > div:last-child { padding-left: 0.25rem; padding-right: 0.25rem; }
  .kit-card-name { margin-top: 0.875rem; font-size: 1.0625rem; line-height: 1.375rem; }
}

/* filter chips and sort (the base's segmented pills: cream track, white thumb) */
.kit-chips { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 1.5rem; margin-bottom: 2.5rem; }
.kit-chip-track { display: flex; gap: 0.125rem; padding: 0.1875rem; max-width: 100%; overflow-x: auto; scrollbar-width: none; border-radius: 9999px; background: rgb(245 243 241); box-shadow: inset 0 0 0 0.5px rgb(0 0 0 / 0.075); }
.kit-chip-track::-webkit-scrollbar { display: none; }
.kit-chip { flex: none; display: inline-flex; align-items: center; height: 2.375rem; padding: 0 1.0625rem; border-radius: 9999px; font-size: 0.9375rem; line-height: 1.25rem; color: rgb(68 64 59); white-space: nowrap; transition: background-color 0.15s, color 0.15s, box-shadow 0.15s; }
.kit-chip:hover { color: #000; background: rgb(235 232 228); }
.kit-chip:focus-visible { outline: 1.5px solid #000; outline-offset: 2px; }
.kit-chip[aria-pressed="true"], .kit-chip[aria-current] { color: #000; background: #fff; box-shadow: 0 0 1px rgb(0 0 0 / 0.4), 0 1px 1px rgb(0 0 0 / 0.04), 0 2px 4px rgb(0 0 0 / 0.04); }
.kit-chips-end { display: flex; align-items: center; gap: 1rem; margin-left: auto; }
.kit-sort { position: relative; display: inline-flex; align-items: center; }
.kit-sort select { appearance: none; height: 2.375rem; padding: 0 2.5rem 0 1.0625rem; border: 0; border-radius: 9999px; background: #fff; color: #000; font: inherit; font-size: 0.9375rem; box-shadow: 0 0 1px rgb(0 0 0 / 0.4), 0 1px 1px rgb(0 0 0 / 0.04), 0 2px 4px rgb(0 0 0 / 0.04); cursor: pointer; }
.kit-sort select:focus-visible { outline: 1.5px solid #000; outline-offset: 2px; }
.kit-sort svg, .kit-select svg { position: absolute; right: 0.875rem; top: 50%; width: 1.125rem; height: 1.125rem; transform: translateY(-50%); pointer-events: none; color: rgb(119 113 105); }

/* prose (policy text) */
.kit-prose a { text-decoration: underline; text-decoration-color: rgb(0 0 0 / 0.2); text-underline-offset: 0.2em; transition: text-decoration-color 0.15s; }
.kit-prose a:hover { text-decoration-color: currentColor; }

/* FAQ: the chevron turns over while open */
.kit-faq button[slot=trigger] .tw-size-5.tw-relative { transition: transform 0.3s cubic-bezier(0.25, 0.1, 0.35, 1), color 0.15s; }
.kit-faq button[slot=trigger][aria-expanded="true"] .tw-size-5.tw-relative { transform: rotate(180deg) translateY(-0.125rem); }

/* forms */
.kit-form { max-width: 44rem; }
.kit-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 1rem; }
.kit-field.kit-wide { grid-column: 1 / -1; }
@media (max-width: 639px) { .kit-fields { grid-template-columns: minmax(0, 1fr); } }
.kit-label { display: block; margin-bottom: 0.5rem; font-size: 0.875rem; line-height: 1.25rem; font-weight: 500; color: #000; }
.kit-optional { margin-left: 0.375rem; font-weight: 400; color: rgb(119 113 105); }
.kit-input { display: block; width: 100%; height: 3rem; padding: 0 1rem; border: 0; border-radius: 0.875rem; background: #fff; color: #000; font: inherit; font-size: 1rem; outline: none; box-shadow: 0 0 1px rgb(0 0 0 / 0.4), 0 1px 1px rgb(0 0 0 / 0.04), 0 2px 4px rgb(0 0 0 / 0.04); transition: box-shadow 0.15s; }
.kit-input:focus { box-shadow: 0 0 0 1.5px #000, 0 2px 4px rgb(0 0 0 / 0.04); }
.kit-input::placeholder { color: rgb(165 159 151); opacity: 1; }
.kit-input:user-invalid { box-shadow: 0 0 0 1.5px rgb(166 45 45); }
.kit-textarea { height: auto; min-height: 8rem; padding: 0.875rem 1rem; line-height: 1.5; resize: vertical; }
.kit-select { position: relative; }
.kit-select select { appearance: none; padding-right: 2.75rem; cursor: pointer; }
.kit-select select:invalid { color: rgb(165 159 151); }
.kit-file { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1rem; padding: 1rem; border-radius: 0.875rem; border: 1px dashed rgb(0 0 0 / 0.18); background: rgb(253 252 252); cursor: pointer; transition: border-color 0.15s; }
.kit-file:hover { border-color: rgb(0 0 0 / 0.4); }
.kit-file:focus-within { outline: 1.5px solid #000; outline-offset: 2px; }
.kit-file input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.kit-file-btn { display: inline-flex; align-items: center; height: 2.25rem; padding: 0 0.875rem; border-radius: 9999px; background: #fff; color: #000; font-size: 0.875rem; box-shadow: 0 0 1px rgb(0 0 0 / 0.4), 0 1px 1px rgb(0 0 0 / 0.04), 0 2px 4px rgb(0 0 0 / 0.04); }
.kit-note { margin-top: 0.5rem; }
.kit-submit { margin-top: 2rem; }
.kit-error { margin-top: 1rem; color: rgb(166 45 45); }
.kit-done { display: grid; gap: 0.75rem; padding: 2rem; border-radius: 1.25rem; background: rgb(245 243 241); box-shadow: inset 0 0 0 0.5px rgb(0 0 0 / 0.075); }
.kit-form.is-done .kit-fields, .kit-form.is-done .kit-submit { display: none; }
.kit-done[hidden] { display: none; }

/* anchor sub-nav: sticks under the contextual bar */
.kit-subnav { position: sticky; top: 0; z-index: 40; background: rgb(253 252 252 / 0.92); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid rgb(0 0 0 / 0.05); transition: top 0.3s cubic-bezier(0.25, 0.1, 0.35, 1); }
.kit-subnav-track { position: relative; display: flex; gap: 0.25rem; padding: 0.625rem 0; overflow-x: auto; scrollbar-width: none; }
.kit-subnav-track::-webkit-scrollbar { display: none; }
