/* Vector Stones — minimalist light theme.
   The previous dark theme is kept in css/styles-dark.css (swap the <link> in index.html to switch back). */
:root {
  --bg: #ffffff;
  --bg-soft: #fafaf8;
  --bg-photo: #f2f2f0;
  --text: #111111;
  --muted: #6b6b68;
  --faint: #9a9a96;
  --line: #e7e7e4;
  --line-strong: #d4d4d0;
  --accent: #111111;
  --geo: "Jost", "Futura", "Century Gothic", system-ui, sans-serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --header-h: 72px;
  --container: 1240px;
  --radius: 2px;
}
* { box-sizing: border-box; }
/* scroll-padding equals the sticky header height, so anchored sections start exactly under it */
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); font-weight: 400; font-size: 15px; line-height: 1.7; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--geo); font-weight: 300; line-height: 1.15; margin: 0 0 0.5em; letter-spacing: 0.005em; }
h1 { font-size: clamp(2.3rem, 5vw, 3.9rem); }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); }
h3 { font-size: 1.3rem; font-weight: 400; }
em { font-style: normal; }
p { margin: 0 0 1em; }
[hidden] { display: none !important; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 clamp(20px, 4vw, 48px); }
.eyebrow { font-family: var(--geo); font-size: 0.72rem; font-weight: 500; letter-spacing: 0.28em; text-transform: uppercase; color: var(--muted); margin-bottom: 1.1em; }
.muted { color: var(--muted); }
.small { font-size: 0.84rem; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--bg); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark { width: 26px; height: auto; }
.wordmark { font-family: var(--geo); font-weight: 400; font-size: 1.08rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text); line-height: 1; padding-top: 2px; }
.site-nav { display: flex; gap: 36px; align-items: center; }
.site-nav a, .footer-nav a { font-family: var(--geo); font-size: 0.78rem; font-weight: 400; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); transition: color .15s; }
.site-nav a:hover, .footer-nav a:hover { color: var(--text); }
.nav-ig { display: inline-flex; align-items: center; gap: 8px; }
.nav-ig svg { width: 17px; height: 17px; }
.nav-ig-label { display: none; }
.nav-toggle { display: none; background: none; border: 0; width: 40px; height: 40px; cursor: pointer; padding: 0; }
.nav-toggle span { display: block; height: 1.5px; background: var(--text); margin: 7px 9px; }

/* Buttons: one accent (near-black), thin outline secondary */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 28px; border-radius: var(--radius);
  font: 500 0.74rem/1 var(--geo); letter-spacing: 0.2em; text-transform: uppercase; cursor: pointer; border: 1px solid transparent; transition: background .15s, color .15s, border-color .15s; }
.btn-gold { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-gold:hover { background: #333; border-color: #333; }
.btn-gold:disabled { opacity: .6; cursor: default; }
.btn-ghost, .btn-messenger { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn-ghost:hover, .btn-messenger:hover { border-color: var(--text); }
.btn-messenger { padding: 12px 18px; }
.btn-messenger svg { width: 17px; height: 17px; }
.btn-text { background: none; border: 0; color: var(--text); cursor: pointer; font: inherit; font-size: 0.8rem; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line-strong); padding: 0; }
.btn-text:hover { text-decoration-color: var(--text); }
.badge-sample { display: inline-block; font: 500 0.6rem/1 var(--geo); letter-spacing: 0.18em; text-transform: uppercase; color: #fff; background: var(--text); padding: 5px 8px; }

/* Hero */
.hero { border-bottom: 1px solid var(--line); }
.hero-inner { display: flex; justify-content: center; text-align: center; padding-top: clamp(56px, 7vw, 96px); padding-bottom: clamp(64px, 8vw, 110px); }
.hero-copy { max-width: 760px; display: flex; flex-direction: column; align-items: center; }
.hero-mark { width: clamp(84px, 9vw, 116px); height: auto; margin-bottom: 32px; }
.hero h1 { margin-bottom: 0.4em; }
.hero .lead { font-size: 1.05rem; color: var(--muted); max-width: 36em; margin: 0.6em 0 2.4em; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.hero-points { list-style: none; padding: 0; margin: 3.4em 0 0; display: flex; gap: 40px; flex-wrap: wrap; justify-content: center; font-size: 0.8rem; color: var(--muted); letter-spacing: 0.04em; }
.hero-points span { font-family: var(--geo); color: var(--text); font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.74rem; margin-right: 4px; }

/* Sections */
section { padding: clamp(72px, 9vw, 120px) 0; }
section.container { padding: clamp(72px, 9vw, 120px) clamp(20px, 4vw, 48px); }
/* Shop by gemstone (tiles built from data/stones.json) */
.shop-types.container { padding-top: clamp(22px, 3vw, 40px); padding-bottom: clamp(48px, 6vw, 80px); }
.shop-types-head { margin-bottom: clamp(20px, 2.6vw, 32px); }
.shop-types-head .eyebrow { margin-bottom: 0.5em; }
.shop-types-head h2 { font-size: clamp(1.45rem, 2.4vw, 2rem); margin: 0; }
.type-grid:empty { min-height: 70vh; } /* space reserved while data/stones.json loads (no jump of the content below) */
/* Hero as a compact brand band below the gemstone tiles */
.hero-band { padding: 0; border-top: 1px solid var(--line); background: var(--bg-soft); }
.hero-band .hero-inner { padding-top: clamp(44px, 5vw, 72px); padding-bottom: clamp(44px, 5vw, 72px); }
.hero-band .hero-mark { width: clamp(56px, 6vw, 76px); margin-bottom: 22px; }
.hero-band h1 { font-size: clamp(2rem, 4vw, 3rem); }
.hero-band .lead { margin-bottom: 1.8em; }
.hero-band .hero-points { margin-top: 2.4em; }
.type-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px 24px; }
.type-tile { display: block; min-width: 0; }
.type-media { aspect-ratio: 1; overflow: hidden; background: var(--bg-photo); }
.type-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.type-tile:hover .type-media img { transform: scale(1.03); }
.type-body { display: flex; justify-content: space-between; align-items: baseline; gap: 4px 12px; flex-wrap: wrap; padding: 14px 2px 0; }
.type-name { font-family: var(--geo); font-weight: 400; font-size: 1.15rem; line-height: 1.25; margin: 0; }
.type-tile:hover .type-name, .type-tile:focus-visible .type-name { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.type-count { font-family: var(--geo); font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--faint); white-space: nowrap; }
@media (max-width: 980px) { .type-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .type-grid { grid-template-columns: 1fr 1fr; gap: 26px 14px; } .type-name { font-size: 1rem; } .type-body { padding-top: 10px; } }
section.catalogue-page { padding-top: 40px; padding-bottom: 110px; min-height: 60vh; } /* catalogue as its own view (#/catalogue) */
.section-head { text-align: center; margin-bottom: 52px; }
.section-head p.muted { max-width: 34em; margin-left: auto; margin-right: auto; }

/* Cards: photo-first, no borders */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr)); gap: 48px 28px; }
.grid-featured { grid-template-columns: repeat(3, 1fr); }
.card { position: relative; display: block; min-width: 0; }
.card-media { position: relative; aspect-ratio: 1; overflow: hidden; background: var(--bg-photo); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease, opacity .3s; }
.card:hover .card-media img { transform: scale(1.03); }
.card .badge-sample { position: absolute; top: 12px; left: 12px; }
.card-body { padding: 16px 2px 0; }
.card-type { font-family: var(--geo); font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-title { font-family: var(--geo); font-weight: 400; font-size: 1.2rem; margin: 4px 0 6px; line-height: 1.25; }
.card:hover .card-title { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.card-meta { display: flex; flex-wrap: wrap; gap: 2px 14px; font-size: 0.82rem; color: var(--muted); }
.card-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; font-family: var(--geo); font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; }
.card-foot .price { font-family: var(--geo); font-size: 0.98rem; letter-spacing: 0.02em; text-transform: none; color: var(--text); }
.card-foot .card-cert { color: var(--faint); }
.card-foot .view { color: var(--text); opacity: 0; transform: translateX(-4px); transition: opacity .2s, transform .2s; }
.card:hover .card-foot .view, .card:focus-visible .card-foot .view { opacity: 1; transform: none; }

/* Filters: a simple row of underlined fields */
.filters { display: grid; grid-template-columns: repeat(5, 1fr) auto; gap: 28px; align-items: end; padding: 0 0 28px; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-family: var(--geo); font-size: 0.68rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
input, select, textarea { width: 100%; background: var(--bg); border: 1px solid var(--line-strong); color: var(--text); border-radius: var(--radius); padding: 11px 13px; font: 400 0.92rem var(--sans); transition: border-color .15s; }
.filters input, .filters select, .sort select { border-width: 0 0 1px; border-radius: 0; padding-left: 0; background-color: transparent; }
select { appearance: none; cursor: pointer; padding-right: 30px; background-image: linear-gradient(45deg, transparent 50%, var(--text) 50%), linear-gradient(135deg, var(--text) 50%, transparent 50%);
  background-position: calc(100% - 14px) 55%, calc(100% - 9px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--text); }
::placeholder { color: var(--faint); }
.carat-range { display: flex; align-items: center; gap: 10px; }
.carat-range .dash { color: var(--faint); }
.result-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin: 0 0 32px; flex-wrap: wrap; }
.result-count { font-size: 0.82rem; color: var(--muted); margin: 0; }
.sort { display: inline-flex; align-items: center; gap: 12px; }
.sort span { font-family: var(--geo); font-size: 0.68rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.sort select { width: auto; padding-top: 6px; padding-bottom: 6px; font-size: 0.86rem; }
.more-wrap { display: flex; justify-content: center; margin-top: 56px; }
.empty { text-align: center; color: var(--muted); padding: 60px 0; }

/* Reviews */
.reviews { border-top: 1px solid var(--line); background: var(--bg-soft); overflow: hidden; }
.review-summary { color: var(--muted); font-size: 0.92rem; }
.review-summary strong { color: var(--text); font-weight: 500; }
.review-carousel { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 48px) / 3); gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 2px; }
.review-carousel::-webkit-scrollbar { display: none; }
.review-carousel .review { scroll-snap-align: start; }
.review { margin: 0; min-width: 0; background: var(--bg); padding: 30px 28px 24px; display: flex; flex-direction: column; gap: 16px; }
.review-rating { display: inline-flex; align-items: center; gap: 8px; font-family: var(--geo); font-size: 0.66rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.review-rating .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--text); }
.review blockquote { margin: 0; font-family: var(--geo); font-weight: 300; font-size: 1.14rem; line-height: 1.55; color: var(--text); flex: 1; }
.review figcaption { display: flex; flex-wrap: wrap; gap: 2px 12px; font-size: 0.8rem; color: var(--muted); padding-top: 14px; border-top: 1px solid var(--line); }
.review-name { color: var(--text); font-weight: 500; }
.review-item { flex-basis: 100%; font-size: 0.74rem; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.review-controls { display: flex; justify-content: center; align-items: center; gap: 16px; margin-top: 40px; }
.review-source { text-align: center; margin-top: 22px; }
.review-source a, .ig-handle, .about-stats a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-strong); }
.review-source a:hover, .ig-handle:hover, .about-stats a:hover { text-decoration-color: var(--text); }
.reviews-page { padding-top: 48px; padding-bottom: 110px; }
.review-grid { columns: 3 300px; column-gap: 24px; margin-top: 40px; }
.review-grid .review { break-inside: avoid; margin-bottom: 24px; background: var(--bg-soft); }
.review-grid .review blockquote { font-size: 1.05rem; }

/* Round icon buttons (gallery + carousel) */
.gallery-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-strong);
  background: rgba(255,255,255,.9); color: var(--text); cursor: pointer; font-size: 1.1rem; line-height: 1; transition: border-color .15s; }
.gallery-nav:hover { border-color: var(--text); }
.gallery-nav.prev { left: 14px; } .gallery-nav.next { right: 14px; }
.gallery-nav.static { position: static; transform: none; background: var(--bg); }

/* News */
.latest-news { border-top: 1px solid var(--line); }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px 28px; }
.news-card { min-width: 0; display: flex; flex-direction: column; }
.news-media { display: block; position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-photo); }
.news-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
a.news-media:hover img { transform: scale(1.03); }
.news-credit { margin: 6px 0 0; font-size: 0.7rem; color: var(--faint); letter-spacing: .02em; min-height: 1.2em; }
.news-credit a { color: var(--muted); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 2px; }
.news-kicker { margin: 14px 0 6px; font-family: var(--geo); font-size: 0.66rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.news-card.featured .news-kicker::before { content: "Featured · "; color: var(--text); }
.news-title { font-family: var(--geo); font-weight: 400; font-size: 1.14rem; line-height: 1.35; margin: 0 0 8px; }
.news-title a:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.news-facts { display: flex; flex-wrap: wrap; gap: 2px 14px; margin: 0 0 8px; font-size: 0.86rem; color: var(--text); }
.news-price { margin: -4px 0 8px; font-family: var(--geo); font-size: 1rem; color: var(--text); }
.news-facts span + span::before { content: "·"; margin-right: 14px; color: var(--faint); }
.news-summary { font-size: 0.86rem; color: var(--muted); line-height: 1.6; margin: 0 0 10px; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.news-foot { margin: auto 0 0; padding-top: 10px; display: flex; justify-content: space-between; gap: 12px; font-size: 0.76rem; color: var(--faint); border-top: 1px solid var(--line); }
.news-foot a { color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.news-foot a:hover { text-decoration: underline; text-underline-offset: 3px; }
.news-page { padding-top: 48px; padding-bottom: 110px; }
.news-intro { max-width: 40em; }
.news-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; margin: 36px 0 40px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.news-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.news-tab { background: none; border: 1px solid transparent; border-radius: var(--radius); padding: 9px 16px; cursor: pointer;
  font: 500 0.7rem/1 var(--geo); letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.news-tab:hover { color: var(--text); }
.news-tab.active { color: var(--text); border-color: var(--text); }
.news-meta { margin-top: 48px; padding-top: 18px; border-top: 1px solid var(--line); }

/* About */
.about { border-top: 1px solid var(--line); }
.about-inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 7vw, 100px); align-items: center; }
.about-inner > * { min-width: 0; }
.about-img { aspect-ratio: 4/5; overflow: hidden; background: var(--bg-photo); }
.about-img img { width: 100%; height: 100%; object-fit: cover; }
.about-copy p { color: var(--muted); font-size: 1rem; }
.about-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin: 36px 0 0; padding-top: 28px; border-top: 1px solid var(--line); }
.about-stats dt { font-family: var(--geo); font-size: 0.66rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.about-stats dd { margin: 0; font-family: var(--geo); font-size: 1.02rem; line-height: 1.35; }

/* Contact */
.contact { border-top: 1px solid var(--line); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(40px, 7vw, 100px); align-items: start; }
.contact-grid > * { min-width: 0; }
.contact-intro p { color: var(--muted); }
section.enquire-page { padding-top: 40px; padding-bottom: 110px; min-height: 60vh; } /* enquiry form as its own view (#/enquire) */
.messengers { display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0 12px; }
.enquiry-form { display: flex; flex-direction: column; gap: 20px; }
.enquiry-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.enquiry-form .btn { align-self: flex-start; }
.stone-ref { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 16px; background: var(--bg-soft); border-left: 2px solid var(--text); }
.stone-ref strong { font-family: var(--geo); font-size: 1.05rem; font-weight: 400; }
.stone-ref .btn-text { margin-left: auto; }
.form-error { color: #b3261e; font-size: 0.85rem; margin: 0; }
.input-invalid { border-color: #b3261e !important; }
.form-success { background: var(--bg-soft); padding: clamp(24px, 4vw, 44px); display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.form-success svg { width: 36px; height: 36px; color: var(--text); }
.form-success p { color: var(--muted); margin: 0; }

/* Detail */
.detail { padding-top: 40px; padding-bottom: 110px; }
.back-link { display: inline-block; font-family: var(--geo); font-size: 0.74rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin-bottom: 28px; }
.back-link:hover { color: var(--text); }
.detail-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(36px, 6vw, 80px); align-items: start; }
.detail-grid > *, .gallery { min-width: 0; }
.gallery-main { position: relative; aspect-ratio: 1; background: var(--bg-photo); overflow: hidden; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-main video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.gallery-main .badge-sample { position: absolute; top: 14px; left: 14px; }
.gallery-count { position: absolute; right: 12px; bottom: 12px; font-size: 0.72rem; letter-spacing: 0.1em; color: var(--text); background: rgba(255,255,255,.9); padding: 3px 9px; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(68px, 1fr)); gap: 8px; margin-top: 10px; }
.thumbs button { padding: 0; border: 1px solid transparent; background: var(--bg-photo); cursor: pointer; aspect-ratio: 1; overflow: hidden; opacity: .7; transition: opacity .15s, border-color .15s; }
.thumbs button.active, .thumbs button:hover { opacity: 1; border-color: var(--text); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
/* Video thumbnail (2nd in the gallery): the stone's main photo with a play badge + "Video" label */
.thumbs .thumb-video { position: relative; opacity: 1; }
.thumb-play { position: absolute; left: 50%; top: 50%; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%; background: rgba(17,17,17,.72); box-shadow: 0 0 0 2px rgba(255,255,255,.9); }
.thumb-play::after { content: ""; position: absolute; left: 12px; top: 9px; border-style: solid; border-width: 6px 0 6px 10px; border-color: transparent transparent transparent #fff; }
.thumb-video-label { position: absolute; left: 0; right: 0; bottom: 0; padding: 2px 0; background: rgba(17,17,17,.72); color: #fff; font: 500 0.56rem/1.5 var(--geo); letter-spacing: 0.16em; text-transform: uppercase; text-align: center; }
.detail-info h1 { font-size: clamp(2rem, 3.6vw, 2.9rem); margin-top: 6px; }
.h1-ct { font-size: 0.5em; color: var(--muted); white-space: nowrap; font-weight: 400; }
.detail-id { font-size: 0.78rem; color: var(--muted); letter-spacing: 0.02em; line-height: 1.6; }
.detail-headline { font-family: var(--geo); font-weight: 400; font-size: 1.15rem; color: var(--text); margin: 22px 0 0; }
.detail-desc { color: var(--muted); font-size: 0.97rem; margin: 12px 0 30px; }
.detail-desc p { margin: 0 0 0.9em; }
.specs { display: grid; grid-template-columns: 1fr 1fr; column-gap: 28px; margin: 0 0 34px; border-top: 1px solid var(--line); }
.specs div { padding: 13px 0; border-bottom: 1px solid var(--line); }
.specs dt { font-family: var(--geo); font-size: 0.64rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.specs dd { margin: 3px 0 0; font-size: 0.94rem; }
.detail-price { font-family: var(--geo); font-weight: 400; font-size: 1.6rem; letter-spacing: 0.01em; margin: 4px 0 14px; }
.detail-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.buy-box { padding: 24px; background: var(--bg-soft); }
.buy-title, .pay-note-title { font-family: var(--geo); font-size: 0.68rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; }
.buy-actions { display: grid; grid-template-columns: 1fr; gap: 10px; }
.buy-actions form { margin: 0; display: flex; }
.buy-actions .btn { width: 100%; padding-top: 17px; padding-bottom: 17px; white-space: nowrap; }
.buy-actions .btn-ghost { background: var(--bg); }
.ship-select { border: 0; padding: 0; margin: 0 0 16px; display: grid; gap: 8px; }
.ship-select legend { padding: 0; margin-bottom: 10px; font-family: var(--geo); font-size: 0.64rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--faint); }
.ship-opt { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 12px 14px; background: var(--bg); border: 1px solid var(--line); cursor: pointer; transition: border-color .2s; }
.ship-opt:hover, .ship-opt:has(input:checked) { border-color: var(--text); }
.ship-opt input { margin: 0; accent-color: var(--text); }
.ship-name { font-size: 0.9rem; color: var(--text); display: grid; gap: 2px; }
.ship-name small { font-size: 0.76rem; color: var(--muted); }
.ship-cost { font-family: var(--geo); font-size: 0.92rem; color: var(--text); white-space: nowrap; }
.buy-total { display: flex; justify-content: space-between; align-items: baseline; margin: 4px 0 2px; font-family: var(--geo); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.buy-total strong { font-size: 1.2rem; font-weight: 400; letter-spacing: 0.02em; text-transform: none; color: var(--text); }
.buy-total-note { margin: 0 0 14px; font-size: 0.78rem; color: var(--muted); }
.buy-total-note + .buy-total-note { margin-top: -10px; }
.or-line { margin: 22px 0 10px; font-size: 0.82rem; color: var(--muted); }
.detail-actions.secondary .btn { padding: 12px 20px; }
.pay-note { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); }
.pay-note ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.pay-note li { position: relative; padding-left: 16px; font-size: 0.84rem; color: var(--muted); line-height: 1.55; }
.pay-note li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 5px; height: 1px; background: var(--text); }
.thankyou { text-align: center; max-width: 620px; min-height: 60vh; display: flex; flex-direction: column; align-items: center; }
.thankyou-mark { width: 56px; height: auto; margin-bottom: 28px; }
.thankyou .btn { margin-top: 18px; }
.thankyou-stone { font-family: var(--geo); font-size: 1.05rem; margin: 0 0 8px; }
.detail-note { margin-top: 22px; font-size: 0.82rem; color: var(--muted); }
.sample-note { margin-top: 18px; padding: 12px 14px; border-left: 2px solid var(--text); background: var(--bg-soft); font-size: 0.85rem; }

/* Cart */
.header-inner .site-nav { margin-left: auto; }
.header-cart { position: relative; display: inline-flex; align-items: center; margin-left: 30px; color: var(--muted); }
.header-cart:hover { color: var(--text); }
.header-cart svg { width: 20px; height: 20px; }
.cart-count { position: absolute; top: -7px; right: -10px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--text); color: var(--bg); font-family: var(--geo); font-size: 0.62rem; line-height: 17px; text-align: center; }
.cart-count[hidden] { display: none; }
.card-wrap { position: relative; min-width: 0; display: flex; flex-direction: column; }
.card-add { align-self: flex-start; margin: 10px 0 0 2px; padding: 4px 0; background: none; border: 0; border-bottom: 1px solid var(--line); font-family: var(--geo); font-size: 0.66rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); cursor: pointer; transition: color .15s, border-color .15s; }
.card-add:hover, .card-add.in-cart { color: var(--text); border-color: var(--text); }
.btn-cart.in-cart { border-color: var(--text); }
.cart-page { padding-top: 40px; padding-bottom: 96px; min-height: 60vh; }
.cart-page h1 { margin-bottom: 28px; }
.cart-notices { margin: 0 0 24px; padding: 14px 18px; border: 1px solid var(--line); background: var(--bg-soft); font-size: 0.86rem; }
.cart-notices p { margin: 0; }
.cart-notices p + p { margin-top: 6px; }
.cart-empty { padding: 40px 0; display: grid; gap: 18px; justify-items: start; }
.cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 48px; align-items: start; }
.cart-lines { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.cart-line { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto auto; gap: 20px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); }
.cart-thumb { display: block; aspect-ratio: 1; background: var(--bg-photo); overflow: hidden; }
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-name { font-family: var(--geo); font-size: 1.1rem; color: var(--text); }
.cart-name:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.cart-sub { margin: 4px 0 0; font-size: 0.8rem; color: var(--muted); }
.cart-price { font-family: var(--geo); font-size: 1rem; white-space: nowrap; }
.cart-remove { background: none; border: 0; padding: 4px 0; font-family: var(--geo); font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); cursor: pointer; }
.cart-remove:hover { color: var(--text); }
.cart-summary { position: sticky; top: calc(var(--header-h) + 24px); }
.cart-totals { margin: 8px 0 18px; }
.cart-totals div { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; font-size: 0.88rem; color: var(--muted); }
.cart-totals dd { margin: 0; color: var(--text); font-family: var(--geo); }
.cart-totals .cart-total { margin-top: 6px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--text); }
.cart-totals .cart-total dt { font-family: var(--geo); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; align-self: center; }
.cart-totals .cart-total dd { font-size: 1.25rem; }
.cart-alt { display: grid; grid-template-columns: 1fr auto; gap: 10px; margin-top: 14px; }
.cart-alt .btn-ghost { background: var(--bg); }
.cart-foot-note { margin-top: 28px; }
@media (max-width: 900px) {
  .cart-layout { grid-template-columns: 1fr; gap: 32px; }
  .cart-summary { position: static; }
  .header-cart { margin-left: auto; margin-right: 14px; order: 1; }
  .nav-toggle { order: 2; }
  .cart-line { grid-template-columns: 72px minmax(0, 1fr) auto; }
  .cart-remove { grid-column: 2 / -1; justify-self: start; padding: 0; }
}

.cert-lab { display: flex; align-items: center; gap: 10px; margin-top: 10px; width: fit-content; }
.cert-lab img { height: 26px; width: auto; max-width: 110px; object-fit: contain; }
.cert-lab span { white-space: nowrap; font-family: var(--geo); font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line); padding-bottom: 2px; }
.cert-lab:hover span { color: var(--text); border-color: var(--text); }
/* Payment badges, WhatsApp float, social links */
.pay-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.pay-badges-label { font-family: var(--geo); font-size: 0.62rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--faint); }
.pay-badges ul { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.pay-badges li { display: flex; align-items: center; justify-content: center; width: 46px; height: 30px; padding: 4px 6px; background: #fff; border: 1px solid var(--line); border-radius: 4px; }
.pay-badges img { width: 100%; height: 100%; object-fit: contain; }
.pay-badges-detail { margin: -6px 0 18px; }
.pay-badges-cart { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.footer-pay { grid-column: 1 / -1; padding: 18px 0 4px; }
.footer-pay:empty { display: none; }
.about-social { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.about-social .btn { gap: 8px; }
.nav-wa svg { width: 18px; height: 18px; }
.wa-float { position: fixed; right: 24px; bottom: 24px; z-index: 60; width: 56px; height: 56px; border-radius: 50%; background: #fff; box-shadow: 0 6px 20px -8px rgba(0,0,0,.35); transition: transform .2s, box-shadow .2s; }
.wa-float img { width: 56px; height: 56px; display: block; }
.wa-float:hover, .wa-float:focus-visible { transform: translateY(-2px); box-shadow: 0 10px 24px -8px rgba(0,0,0,.4); }
@media (max-width: 900px) {
  .wa-float { right: 16px; bottom: 16px; width: 52px; height: 52px; }
  .wa-float img { width: 52px; height: 52px; }
  /* never over the checkout: stone and cart pages already have their own WhatsApp buttons */
  body[data-view="detail"] .wa-float, body[data-view="cart"] .wa-float { display: none; }
  .site-footer { padding-bottom: 84px; }
}
@media print { .wa-float { display: none; } }

/* Labs & carriers strip */
.partners { padding: 56px 0 48px; border-top: 1px solid var(--line); overflow: hidden; }
.partners-title { text-align: center; margin-bottom: 30px; }
.partners-viewport { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.partners-track { display: flex; width: max-content; animation: partners-scroll 70s linear infinite; }
.partners-viewport:hover .partners-track, .partners-track:focus-within { animation-play-state: paused; }
.partners-set, .partner-group { display: flex; align-items: center; }
.partner-group { gap: 0; }
.partner-label { font-family: var(--geo); font-size: 0.64rem; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: var(--faint); white-space: nowrap; padding: 0 28px 0 56px; }
.partner { display: inline-flex; align-items: center; gap: 10px; padding: 0 28px; height: 48px; } /* official full-colour logos */
.partner img { height: 30px; width: auto; max-width: 150px; object-fit: contain; }
.partner span { font-family: var(--geo); font-size: 0.86rem; letter-spacing: 0.08em; color: var(--text); white-space: nowrap; }
@keyframes partners-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .partners-track { animation: none; width: auto; justify-content: center; }
  .partners-viewport { -webkit-mask-image: none; mask-image: none; }
  .partners-set { flex-wrap: wrap; justify-content: center; row-gap: 14px; }
  .partners-set > .partner-group ~ .partner-group ~ .partner-group, .partners-set[aria-hidden="true"] { display: none; }
}

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-soft); padding: 56px 0 40px; }
.footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 28px 40px; align-items: center; }
.footer-inner p { margin: 6px 0 0; }
.footer-nav { display: flex; gap: 28px; flex-wrap: wrap; }
.footer-ig { display: inline-flex; align-items: center; gap: 8px; text-transform: none !important; letter-spacing: 0.04em !important; }
.footer-ig svg { width: 15px; height: 15px; }
.footer-bottom { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding-top: 24px; border-top: 1px solid var(--line); }
.footer-bottom p { margin: 0; }
.photo-credit { display: inline-flex; align-items: center; gap: 12px; font-family: var(--geo); font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
/* the credit logo is white-on-transparent: invert to black for the light footer */
.photo-credit img { width: 118px; height: auto; filter: invert(1); opacity: .85; }

/* Responsive */
@media (max-width: 980px) {
  .filters { grid-template-columns: 1fr 1fr 1fr; }
  .filters .btn-text { justify-self: start; }
  .grid-featured { grid-template-columns: repeat(2, 1fr); }
  .grid-featured .card:last-child:nth-child(odd) { display: none; } /* 2 columns: never leave a lone card in the last row */
  .review-carousel { grid-auto-columns: calc((100% - 24px) / 2); }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  :root { --header-h: 64px; }
  .nav-toggle { display: block; }
  .site-nav { position: absolute; top: var(--header-h); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); display: none; box-shadow: 0 12px 24px -18px rgba(0,0,0,.25); }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 16px clamp(20px, 4vw, 48px); border-top: 1px solid var(--line); color: var(--text); }
  .nav-ig-label { display: inline; }
  .about-inner, .contact-grid, .detail-grid { grid-template-columns: 1fr; }
  .about-img { aspect-ratio: 16/11; }
  .about-stats { grid-template-columns: 1fr; gap: 16px; }
  .footer-inner { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 15px; }
  .filters { grid-template-columns: 1fr 1fr; gap: 20px 16px; }
  .filters .field:nth-child(3) { grid-column: 1 / -1; }
  .grid { gap: 36px 14px; grid-template-columns: 1fr 1fr; }
  .card-title { font-size: 1.02rem; }
  .card-meta { font-size: 0.76rem; gap: 0 10px; }
  .card-meta span:nth-child(3) { display: none; }
  .card-foot .view { display: none; }
  .grid-featured { grid-template-columns: 1fr 1fr; }
  .grid-featured .card:last-child:nth-child(odd) { display: none; }
  .review-carousel { grid-auto-columns: 86%; }
  .news-grid { grid-template-columns: 1fr; gap: 40px; }
  .result-bar { align-items: flex-start; flex-direction: column; gap: 8px; }
  .enquiry-form .row { grid-template-columns: 1fr; }
  .specs { grid-template-columns: 1fr; }
  .hero-points { gap: 14px 24px; }
  .thumbs { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .thumbs button { flex: 0 0 60px; scroll-snap-align: start; }
  .wordmark { font-size: 0.98rem; letter-spacing: 0.16em; }
  .brand-mark { width: 24px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* Enquiry-form honeypot: off-screen, not display:none (some bots skip display:none fields) */
.hp { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* Members (#/login, #/register, #/account, #/forgot, #/reset, #/verify): mobile first, same fields/buttons as the enquiry form */
section.member-page { padding-top: 40px; padding-bottom: 110px; min-height: 60vh; }
.member-panel { max-width: 560px; }
.member-panel[data-panel="account"] { max-width: none; }
.member-panel h1 { font-size: clamp(2rem, 4.4vw, 3rem); }
.member-intro { margin-bottom: 28px; }
.member-form { display: flex; flex-direction: column; gap: 18px; margin-bottom: 20px; }
.member-form .row { display: grid; grid-template-columns: 1fr; gap: 18px; }
.member-form .btn { align-self: stretch; }
/* 16px inputs: iPhone Safari zooms into smaller text fields on focus */
.member-form input, .member-form select { font-size: 16px; padding: 12px 13px; }
.field > span small, .member-fieldset legend small { font-size: inherit; letter-spacing: 0.08em; text-transform: none; color: var(--faint); font-weight: 400; }
.member-fieldset { border: 0; padding: 0; margin: 0 0 6px; display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.member-fieldset legend { font-family: var(--geo); font-size: 1.05rem; font-weight: 400; padding: 0; margin-bottom: 14px; }
.member-fieldset + .member-fieldset, .member-form [data-ship-slot] { margin-top: 10px; }
.ship-note { margin: -4px 0 0; }
.member-note { background: var(--bg-soft); border-left: 2px solid var(--text); padding: 12px 16px; font-size: 0.9rem; margin: 0 0 18px; }
.member-links { font-size: 0.88rem; color: var(--muted); }
.member-alt { border-top: 1px solid var(--line); margin-top: 32px; padding-top: 28px; }
.member-off { margin-bottom: 24px; }
.account-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.account-head h1 { margin: 0; }
.account-head .btn { padding: 11px 18px; }
.account-who { margin: 10px 0 32px; overflow-wrap: anywhere; }
.account-grid { display: grid; grid-template-columns: 1fr; gap: 48px; }
.account-col { min-width: 0; }
.account-h { font-size: 1.5rem; margin-bottom: 6px; }
.account-more { border-top: 1px solid var(--line); padding: 14px 0; }
.account-more:last-child { border-bottom: 1px solid var(--line); }
.account-more summary { cursor: pointer; font-family: var(--geo); font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase; padding: 4px 0; }
.account-more[open] summary { margin-bottom: 16px; }
.orders { list-style: none; margin: 18px 0 20px; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.order { background: var(--bg-soft); padding: 18px; }
.order-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.order-ref { font-family: var(--geo); font-size: 1.05rem; }
.order-status { font-family: var(--geo); font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase; border: 1px solid var(--line-strong); padding: 4px 8px; }
.order-status.paid { border-color: var(--text); }
.order-items { list-style: none; margin: 0 0 8px; padding: 0; font-size: 0.9rem; }
.order-items li { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; }
.order-items a { text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.order-foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 0.84rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 8px; }
.order-foot strong { color: var(--text); font-family: var(--geo); font-weight: 400; font-size: 1rem; }
.ship-to { font-size: 0.84rem; color: var(--muted); margin: 0 0 14px; }
.ship-to strong { color: var(--text); font-weight: 500; }
@media (min-width: 640px) {
  .member-form .row { grid-template-columns: 1fr 1fr; }
  .member-form .btn { align-self: flex-start; }
}
@media (min-width: 980px) {
  .account-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(48px, 6vw, 96px); }
}
/* Member profile: username + avatar picker (10 sample gems + own photo), avatar in the menu */
.avatar-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; max-width: 420px; }
.avatar-opt { position: relative; display: block; cursor: pointer; border-radius: 50%; }
.avatar-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.avatar-opt img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 50%; border: 2px solid transparent; box-shadow: 0 0 0 1px var(--line); transition: border-color .15s, transform .15s; }
.avatar-opt:hover img { transform: scale(1.04); }
.avatar-opt input:checked + img { border-color: var(--text); box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--text); }
.avatar-opt input:focus-visible + img { outline: 2px solid var(--text); outline-offset: 3px; }
.avatar-upload { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 12px; }
.avatar-upload-btn { position: relative; overflow: hidden; padding: 11px 18px; }
.avatar-file { position: absolute; inset: 0; opacity: 0; cursor: pointer; font-size: 0; }
.avatar-upload-btn:focus-within { outline: 2px solid var(--text); outline-offset: 2px; }
.account-id { display: flex; align-items: center; gap: 16px; min-width: 0; }
.account-avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1px var(--line); flex: none; }
.account-username { margin: 4px 0 0; font-family: var(--geo); color: var(--muted); letter-spacing: 0.04em; overflow-wrap: anywhere; }
#profile-form { margin-bottom: 44px; }
.nav-member { display: inline-flex; align-items: center; gap: 8px; }
.nav-avatar { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1px var(--line); }
.site-nav a.nav-member { text-transform: none; letter-spacing: 0.06em; }
@media (max-width: 380px) { .avatar-grid { gap: 8px; } }
.order-items li > span:first-child { flex: 1; min-width: 0; }
.order-items li > span:last-child { white-space: nowrap; }
[data-panel="account"] .member-fieldset legend { display: none; }   /* the section headings already say it */

/* Cookie consent bar (js/consent.js): slim, fixed at the bottom, near-black on the light theme.
   While it is open, <html> has .cookie-bar-open and --cookie-bar-h, so the page gets matching bottom padding and the
   WhatsApp float is lifted above it: nothing (WhatsApp, PayPal checkout, footer) is ever stuck behind the bar. */
.cookie-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; background: #111; color: #f4f4f2;
  border-top: 1px solid #2a2a28; box-shadow: 0 -10px 30px -18px rgba(0,0,0,.45); padding-bottom: env(safe-area-inset-bottom, 0px); }
.cookie-bar-inner { max-width: var(--container); margin: 0 auto; padding: 12px clamp(20px, 4vw, 48px); display: flex; align-items: center; justify-content: space-between; gap: 12px 28px; }
.cookie-bar-text { margin: 0; font-size: 0.84rem; line-height: 1.5; color: #d9d9d5; }
.cookie-bar-text a { color: #fff; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.cookie-bar-text a:hover { text-decoration-thickness: 2px; }
.cookie-bar-actions { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-btn { min-height: 40px; padding: 0 22px; border-radius: var(--radius); font: 500 0.7rem/1 var(--geo); letter-spacing: 0.2em; text-transform: uppercase; cursor: pointer; border: 1px solid transparent; transition: background .15s, color .15s, border-color .15s; }
.cookie-btn-solid { background: #fff; color: #111; border-color: #fff; }
.cookie-btn-solid:hover { background: #e9e9e6; border-color: #e9e9e6; }
.cookie-btn-ghost { background: transparent; color: #f4f4f2; border-color: #55554f; }
.cookie-btn-ghost:hover { border-color: #fff; }
.cookie-bar :focus-visible { outline-color: #fff; }
.cookie-bar-open body { padding-bottom: var(--cookie-bar-h, 0px); }
.cookie-bar-open .wa-float { bottom: calc(24px + var(--cookie-bar-h, 0px)); }
@media (max-width: 900px) { .cookie-bar-open .wa-float { bottom: calc(16px + var(--cookie-bar-h, 0px)); } }
@media (max-width: 640px) {
  .cookie-bar-inner { flex-direction: column; align-items: stretch; gap: 8px; padding: 10px 16px; }
  .cookie-bar-text { font-size: 0.78rem; line-height: 1.45; }
  .cookie-bar-actions { gap: 8px; }
  .cookie-btn { flex: 1; min-height: 38px; padding: 0 12px; }
}
@media print { .cookie-bar { display: none; } .cookie-bar-open body { padding-bottom: 0; } }
/* footer "Cookie settings" is a button (it must not change the hash route) styled like the footer links */
.footer-link-btn { background: none; border: 0; padding: 0; cursor: pointer; font-family: var(--geo); font-size: 0.78rem; font-weight: 400; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); line-height: inherit; transition: color .15s; }
.footer-link-btn:hover { color: var(--text); }
.footer-legal { display: flex; gap: 22px; flex-wrap: wrap; align-items: center; }
.footer-legal a, .footer-legal .footer-link-btn { font-size: 0.7rem; }
.footer-legal a { font-family: var(--geo); font-weight: 400; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); transition: color .15s; }
.footer-legal a:hover { color: var(--text); }

/* Privacy Policy (#/privacy) */
.privacy { max-width: 760px; padding-top: clamp(48px, 7vw, 88px); padding-bottom: clamp(56px, 8vw, 104px); }
.privacy h1 { font-size: clamp(2.1rem, 4.4vw, 3.2rem); margin-bottom: 0.3em; }
.privacy-updated { font-size: 0.84rem; color: var(--muted); margin-bottom: 2.4em; }
.privacy h2 { font-size: clamp(1.25rem, 2.2vw, 1.55rem); font-weight: 400; margin: 2.1em 0 0.6em; padding-top: 1.4em; border-top: 1px solid var(--line); }
.privacy p, .privacy li { color: #2b2b29; }
.privacy ul { margin: 0 0 1em; padding: 0; list-style: none; display: grid; gap: 6px; }
.privacy li { position: relative; padding-left: 18px; }
.privacy li::before { content: ""; position: absolute; left: 0; top: 0.85em; width: 6px; height: 1px; background: var(--text); }
.privacy a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.privacy .btn { margin-top: 10px; text-decoration: none; }
/* 404 page footer links */
.notfound-legal { justify-content: center; margin-top: 36px; }

/* Members-only buying (2026-10-04): note in the buy box / cart, and the sign-in box (js/app.js showMembersOnly) */
.members-note { margin: 4px 0 14px; font-size: 0.84rem; color: var(--muted); }
.btn-members { width: 100%; }
.member-intent { border-left: 2px solid var(--text); background: var(--bg-soft); padding: 10px 14px; color: var(--text); }
.mo-open { overflow: hidden; }
.mo-overlay { position: fixed; inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center; padding: 20px;
  background: rgba(17,17,17,.42); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
.mo-box { position: relative; width: 100%; max-width: 440px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.45); padding: 40px 36px 30px; text-align: center; }
.mo-mark { width: 30px; height: auto; margin: 0 auto 16px; }
.mo-box .eyebrow { margin-bottom: 0.6em; }
.mo-box h2 { font-size: clamp(1.7rem, 4vw, 2.1rem); margin-bottom: 0.4em; }
.mo-text { color: var(--text); margin-bottom: 0.6em; }
.mo-stone { font-family: var(--geo); font-size: 0.86rem; letter-spacing: 0.04em; color: var(--muted); margin-bottom: 0.4em; }
.mo-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 22px 0 16px; }
.mo-actions .btn { padding: 14px 12px; }
.mo-small { margin: 0; line-height: 1.5; }
.mo-close { position: absolute; top: 8px; right: 10px; width: 40px; height: 40px; border: 0; background: none; font-size: 1.6rem; line-height: 1; color: var(--muted); cursor: pointer; }
.mo-close:hover { color: var(--text); }
@media (max-width: 560px) {
  .mo-overlay { align-items: flex-end; padding: 0; }
  .mo-box { max-width: none; border-radius: 10px 10px 0 0; border-bottom: 0; padding: 34px 22px calc(22px + env(safe-area-inset-bottom, 0px)); }
}

/* ===== Buttons v2 (approved 2026-10-10): gemstone gradient pills ===== */
:root {
  --g-amethyst: linear-gradient(90deg, #6d28d9 0%, #a21caf 55%, #be185d 100%); /* white text >= 5.9:1 */
  --g-sapphire: linear-gradient(90deg, #1e40af 0%, #1d4ed8 45%, #0e7490 100%); /* white text >= 5.3:1 */
  --g-emerald:  linear-gradient(90deg, #0f766e 0%, #047857 100%);              /* white text >= 5.4:1 */
  --glow-amethyst: 0 10px 26px -8px rgba(162,28,175,.55);
  --glow-sapphire: 0 10px 26px -8px rgba(29,78,216,.55);
  --btn-fill: var(--bg, #fff);           /* outline buttons: inner fill = page background */
  --pill-ease: cubic-bezier(.2,.7,.2,1);
}
.btn, .cookie-btn, .filters .btn-text {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 60px 0 28px; border-radius: 999px; border: 2px solid transparent;
  font: 500 0.74rem/1 var(--geo); letter-spacing: 0.18em; text-transform: uppercase; text-decoration: none;
  cursor: pointer; white-space: nowrap;
  transition: box-shadow .25s var(--pill-ease), transform .25s var(--pill-ease), filter .25s var(--pill-ease);
}
/* Arrow circle (pseudo-element, no markup) */
.btn::after, .cookie-btn::after, .filters .btn-text::after {
  content: "\203A"; position: absolute; right: 5px; top: 50%; width: 36px; height: 36px; margin-top: -18px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font: 400 1.35rem/1 var(--sans); letter-spacing: 0; color: #fff; padding-bottom: 3px; box-sizing: border-box;
  background: rgba(255,255,255,.18); transition: transform .25s var(--pill-ease);
}
.btn:hover::after, .cookie-btn:hover::after, .filters .btn-text:hover::after { transform: translateX(3px); }
.btn:focus-visible, .cookie-btn:focus-visible, .filters .btn-text:focus-visible { outline: 2px solid var(--text, #111); outline-offset: 3px; }
.btn:active, .cookie-btn:active { transform: translateY(1px); }

/* SOLID — primary: Add to cart, PayPal/Buy, Join, Enquire, submits */
.btn-gold { background: var(--g-amethyst); color: #fff; box-shadow: 0 6px 16px -10px rgba(109,40,217,.6); }
.btn-gold:hover { background: var(--g-amethyst); border-color: transparent; box-shadow: var(--glow-amethyst); transform: translateY(-1px); }
.btn-pay { background: var(--g-sapphire); box-shadow: 0 6px 16px -10px rgba(29,78,216,.6); }
.btn-pay:hover { background: var(--g-sapphire); box-shadow: var(--glow-sapphire); }
.btn-gold:disabled { opacity: .55; box-shadow: none; transform: none; cursor: not-allowed; }

/* OUTLINE — secondary: ghost (incl. Sign in where it is a ghost), Clear filters, Decline */
.btn-ghost, .btn-messenger, .filters .btn-text, .cookie-btn-ghost {
  color: var(--text, #111);
  background: linear-gradient(var(--btn-fill), var(--btn-fill)) padding-box, var(--g-sapphire) border-box;
}
.btn-ghost::after, .btn-messenger::after, .filters .btn-text::after, .cookie-btn-ghost::after { background: var(--g-sapphire); }
.btn-ghost:hover, .btn-messenger:hover, .filters .btn-text:hover, .cookie-btn-ghost:hover { box-shadow: var(--glow-sapphire); border-color: transparent; }
.buy-actions .btn-ghost, .cart-alt .btn-ghost { background: linear-gradient(var(--btn-fill), var(--btn-fill)) padding-box, var(--g-sapphire) border-box; }
.btn-messenger svg { margin-right: 2px; }

/* Cookie bar (dark) */
.cookie-bar { --btn-fill: #111; --text: #fff; }
.cookie-btn { min-height: 44px; }
.cookie-btn-solid { background: var(--g-amethyst); color: #fff; border-color: transparent; }
.cookie-btn-solid:hover { background: var(--g-amethyst); box-shadow: var(--glow-amethyst); }
.cookie-btn-ghost { color: #fff; }
.cookie-bar :focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

/* Layout safety: full-width buttons keep text centred around the arrow */
.buy-actions .btn, .member-form .btn { padding-left: 60px; }
@media (max-width: 420px) { .btn, .cookie-btn { padding: 0 54px 0 22px; letter-spacing: 0.14em; } }

@media (prefers-reduced-motion: reduce) {
  .btn, .cookie-btn, .filters .btn-text, .btn::after, .cookie-btn::after, .filters .btn-text::after { transition: none; }
  .btn:hover, .btn:active, .cookie-btn:active { transform: none; }
  .btn:hover::after, .cookie-btn:hover::after, .filters .btn-text:hover::after { transform: none; }
}
/* v2 role mapping without markup changes: Sign in = outline, Join = amethyst solid */
#mo-signin, .btn-members { color: var(--text, #111); background: linear-gradient(var(--btn-fill), var(--btn-fill)) padding-box, var(--g-sapphire) border-box; box-shadow: none; border-color: transparent; }
#mo-signin::after, .btn-members::after { background: var(--g-sapphire); }
#mo-signin:hover, .btn-members:hover { background: linear-gradient(var(--btn-fill), var(--btn-fill)) padding-box, var(--g-sapphire) border-box; box-shadow: var(--glow-sapphire); }
#mo-join { color: #fff; background: var(--g-amethyst); box-shadow: 0 6px 16px -10px rgba(109,40,217,.6); }
#mo-join::after { background: rgba(255,255,255,.18); }
#mo-join:hover { box-shadow: var(--glow-amethyst); }
/* v2 role mapping, part 2 (CSS only) */
.btn.btn-cart, a.btn[href^="#/enquire"] { color: #fff; background: var(--g-amethyst); border-color: transparent; box-shadow: 0 6px 16px -10px rgba(109,40,217,.6); }
.btn.btn-cart::after, a.btn[href^="#/enquire"]::after { background: rgba(255,255,255,.18); }
.btn.btn-cart:hover, a.btn[href^="#/enquire"]:hover { background: var(--g-amethyst); box-shadow: var(--glow-amethyst); }
.btn.btn-cart.in-cart { border-color: transparent; }
.btn.btn-pay:not(.btn-members) { color: #fff; background: var(--g-sapphire); border-color: transparent; box-shadow: 0 6px 16px -10px rgba(29,78,216,.6); }
.btn.btn-pay:not(.btn-members)::after { background: rgba(255,255,255,.18); }
.btn.btn-pay:not(.btn-members):hover { background: var(--g-sapphire); box-shadow: var(--glow-sapphire); }
/* keep room for the arrow where older rules set tighter padding */
.detail-actions.secondary .btn, .account-head .btn, .btn.avatar-upload-btn, .btn.btn-messenger, .about-social .btn { padding: 0 56px 0 22px; }
.buy-actions .btn { padding: 0 60px; }

/* ===== Minimal pastel palette v1 (approved 2026-10-10) ===== */
:root {
  --bg: #ffffff;
  --bg-soft: #faf8fc;      /* off-white with a hint of lilac: section bands */
  --bg-photo: #f4f2f8;     /* tile / photo wells */
  --pastel-lilac: #f1ecfb; /* amethyst tint */
  --pastel-sky: #eaf2fb;   /* sapphire tint */
  --pastel-mint: #e9f6f1;  /* emerald tint */
  --pastel-blush: #fbeef3; /* rose tint */
  --text: #1c1a24;         /* 16.9:1 on white */
  --muted: #5f5b6b;        /* 6.5:1 on white, 6.1:1 on lilac */
  --faint: #757082;        /* 4.8:1 on white, 4.5:1 on #faf8fc */
  --line: #eeebf3;
  --line-strong: #dcd6e6;
  --link: #5b21b6;         /* amethyst-800, 8.9:1 on white */
}
.site-header { background: rgba(255,255,255,.96); }
.hero { background: linear-gradient(180deg, #fff 0%, var(--bg-soft) 100%); border-bottom-color: var(--line); }
.hero-band, .reviews { background: var(--bg-soft); }
.review { background: #fff; }
.type-media { background: var(--pastel-lilac); }
.card-media { background: var(--pastel-sky); }
.badge-sample { background: var(--pastel-lilac); color: var(--link); }
.buy-box, .buy-panel { background: var(--bg-soft); }
.site-footer { background: var(--bg-soft); border-top-color: var(--line); }
main a:not(.btn):not(.card):not(.type-tile) { color: var(--link); }
.cookie-bar { background: #1c1a24; }

/* ===== K PLUS look v2 (approved 2026-10-10) ===== */
/* Vector Stones — "K PLUS" look v1 (PREVIEW ONLY). Sits after styles.css (v2 buttons + pastel layer). */
:root {
  --kp-pink: #f3e6f2; --kp-lilac: #e6e3f6; --kp-ink: #2b2440; --kp-ink-muted: #5a4f72;
  --kp-blue-1: #276a98; --kp-blue-2: #1d4f86; --kp-blue-3: #183b6b;
  --kp-cyan: #b3f3fb;               /* 4.8:1 on the lightest blue, 9:1 on the darkest */
  --kp-card: rgba(12, 32, 72, .42); --kp-card-line: rgba(255, 255, 255, .16);
  --kp-well: #eceef2;               /* neutral photo well: stone colours stay true */
  --bg: var(--kp-blue-2); --bg-soft: var(--kp-card); --bg-photo: var(--kp-well);
  --text: #ffffff; --muted: #dbe8f5; --faint: #dbe8f5;   /* >= 4.7:1 on every blue stop */
  --line: rgba(255,255,255,.16); --line-strong: rgba(255,255,255,.34); --link: var(--kp-cyan);
  --btn-fill: var(--kp-blue-2);
}
body { background: linear-gradient(180deg, var(--kp-blue-1) 0, var(--kp-blue-2) 900px, var(--kp-blue-3) 100%) var(--kp-blue-3); color: var(--text); }

/* Pastel band: header + hero (dark ink on pastel) */
.site-header, .hero, .hero-band {
  --text: var(--kp-ink); --muted: var(--kp-ink-muted); --faint: var(--kp-ink-muted); --line: rgba(43,36,64,.12); --line-strong: rgba(43,36,64,.3);
  --btn-fill: #f5eef7; --link: #5b21b6;
  background: linear-gradient(100deg, var(--kp-pink) 0%, var(--kp-lilac) 100%); color: var(--kp-ink);
}
.site-header { border-bottom: 0; }
.site-header .site-nav a { color: var(--kp-ink-muted); }
.hero, .hero-band { border: 0; }
@media (max-width: 900px) { .site-nav { background: linear-gradient(100deg, var(--kp-pink), var(--kp-lilac)); } }

/* Gemstone tiles: colourful rounded squares, white labels, neutral photo well */
.type-tile { padding: 10px; border-radius: 20px; background: var(--tile, #1d4ed8); }
.type-media { border-radius: 14px; background: var(--kp-well); }
.type-tile .type-name, .type-tile .type-count { color: #fff; }
.type-body { padding: 10px 4px 2px; }

/* Stone cards: translucent dark-blue, subtle light border */
.card { background: var(--kp-card); border: 1px solid var(--kp-card-line); border-radius: 18px; padding: 10px 10px 14px; }
.card-media { border-radius: 12px; background: var(--kp-well); }
.card-body { padding: 14px 4px 0; }
.card-foot .view, .card .btn-text { color: var(--kp-cyan); }
.news-media, .about-img, .gallery, .main-photo { background: var(--kp-well); }

/* Panels */
.buy-box, .review, .news-card { background: var(--kp-card); border: 1px solid var(--kp-card-line); border-radius: 18px; }
.reviews { background: transparent; border-top-color: var(--line); }
.badge-sample { background: var(--kp-cyan); color: #0b2546; }

/* Form fields on blue */
input, select, textarea { background-color: rgba(255,255,255,.06); color: #fff; border-color: var(--line-strong); }
.filters input, .filters select, .sort select { background-color: transparent; }
input::placeholder, textarea::placeholder { color: #c6d8ec; }
option { color: #111; background: #fff; }

/* Links + "View all" accents */
main a:not(.btn):not(.card):not(.type-tile) { color: var(--kp-cyan); }
.back-link { color: var(--kp-cyan); }

/* Footer + partner logos (logos are dark art: keep them on a light well) */
.site-footer { background: rgba(10, 26, 58, .55); border-top-color: var(--line); }
.partners { background: var(--kp-well); --text: var(--kp-ink); --muted: var(--kp-ink-muted); color: var(--kp-ink); }
.footer-pay img, .pay-logos img { background: #fff; border-radius: 4px; }
/* Round gallery/carousel arrows stay white on photos, dark ink */
.gallery-nav { background: rgba(255,255,255,.92); color: var(--kp-ink); border-color: rgba(255,255,255,.6); }
.gallery-nav.static { background: var(--kp-card); color: #fff; border-color: var(--kp-card-line); }

/* ---- v2: stone-coloured tiles and card label areas (white text >= 4.9:1 on every colour) ---- */
.type-tile[href$="type=garnet"], .type-tile[href$="/gemstones/garnet/"] { --tile: #0f7a5a; }
.type-tile[href$="type=tourmaline"], .type-tile[href$="/gemstones/tourmaline/"] { --tile: #047857; }
.type-tile[href$="type=spinel"], .type-tile[href$="/gemstones/spinel/"] { --tile: #c2412d; }
.type-tile[href$="type=sphene"], .type-tile[href$="/gemstones/sphene/"] { --tile: #5f7a0c; }
.type-tile[href$="type=peridot"], .type-tile[href$="/gemstones/peridot/"] { --tile: #4d7c0f; }
.type-tile[href$="type=moonstone"], .type-tile[href$="/gemstones/moonstone/"] { --tile: #625c88; }
.type-tile[href$="type=sphalerite"], .type-tile[href$="/gemstones/sphalerite/"] { --tile: #b45309; }
.type-tile[href$="type=tanzanite"], .type-tile[href$="/gemstones/tanzanite/"] { --tile: #5b3fc4; }
.type-tile[href$="type=zircon"], .type-tile[href$="/gemstones/zircon/"] { --tile: #946200; }
.type-tile[href$="type=sapphire"], .type-tile[href$="/gemstones/sapphire/"] { --tile: #1d4ed8; }
.type-tile[href$="type=scheelite"], .type-tile[href$="/gemstones/scheelite/"] { --tile: #a15c07; }
.type-tile[href$="type=hackmanite"], .type-tile[href$="/gemstones/hackmanite/"] { --tile: #6d28d9; }
.type-tile[href$="type=vayrynenite"], .type-tile[href$="/gemstones/vayrynenite/"] { --tile: #be123c; }
.type-tile[href$="type=ruby"], .type-tile[href$="/gemstones/ruby/"] { --tile: #b91c1c; }
.type-tile[href$="type=emerald"], .type-tile[href$="/gemstones/emerald/"] { --tile: #047857; }
.type-tile[href$="type=tsavorite"], .type-tile[href$="/gemstones/tsavorite/"] { --tile: #0f7a5a; }
.type-tile[href$="type=aquamarine"], .type-tile[href$="/gemstones/aquamarine/"] { --tile: #0e7490; }
.type-tile[href$="type=topaz"], .type-tile[href$="/gemstones/topaz/"] { --tile: #b45309; }
.type-tile[href$="type=amethyst"], .type-tile[href$="/gemstones/amethyst/"] { --tile: #7e22ce; }
/* Cards: label area takes the stone's colour (needs data-type / data-colour on .card, see app.js patch) */
.card { --tile: transparent; }
.card-body { margin: 12px -10px -14px; padding: 12px 14px 14px; background: var(--tile); border-radius: 0 0 17px 17px; }
.card[data-colour="green"] { --tile: #15803d; }
.card[data-colour="red"] { --tile: #b91c1c; }
.card[data-colour="pink"] { --tile: #be185d; }
.card[data-colour="orange"] { --tile: #c2410c; }
.card[data-colour="yellow"] { --tile: #946200; }
.card[data-colour="purple"] { --tile: #7e22ce; }
.card[data-colour="blue"] { --tile: #1d4ed8; }
.card[data-colour="teal"] { --tile: #0f766e; }
.card[data-colour="grey"] { --tile: #4b5563; }
.card[data-colour="multicolour"] { --tile: #625c88; }
.card[data-colour="colour-change"] { --tile: #6d28d9; }
.card[data-colour="other"] { --tile: #475569; }
.card[data-colour="white"] { --tile: #625c88; }
.card[data-colour="black"] { --tile: #475569; }
.card[data-colour="brown"] { --tile: #9a3412; }
.card[data-type="garnet"][data-colour="pink"] { --tile: #b8452e; }
.card[data-type="garnet"][data-colour="green"] { --tile: #0f7a5a; }
.card[data-type="sphene"][data-colour="yellow"] { --tile: #5f7a0c; }
.card[data-type="sphene"][data-colour="green"] { --tile: #5f7a0c; }
.card[data-type="sphalerite"][data-colour="multicolour"] { --tile: #b45309; }
.card[data-type="moonstone"][data-colour="multicolour"] { --tile: #625c88; }
.card[data-type="tanzanite"][data-colour="purple"] { --tile: #5b3fc4; }
.card[data-type="scheelite"][data-colour="yellow"] { --tile: #a15c07; }
.card[data-type="hackmanite"][data-colour="purple"] { --tile: #6d28d9; }
.card[data-type="vayrynenite"][data-colour="pink"] { --tile: #be123c; }
.card[data-type="peridot"][data-colour="green"] { --tile: #4d7c0f; }
.card[data-colour] .card-type, .card[data-colour] .card-meta, .card[data-colour] .card-cert { color: #fff; }
/* Error text on the blue body (the default #b3261e red is unreadable on blue) */
.form-error { color: #ffe2de; }
.input-invalid { border-color: #ffe2de !important; }

/* ===== Merlin, stone-page gemologist pop-up (2026-10-10) ===== */
.merlin { position: fixed; left: 16px; bottom: calc(16px + var(--cookie-bar-h, 0px)); z-index: 55; display: flex; align-items: flex-end; gap: 4px;
  pointer-events: none; transform: translateY(140%); opacity: 0; visibility: hidden;
  transition: transform .6s cubic-bezier(.2,.8,.2,1.1), opacity .4s, visibility 0s linear .6s; }
.cookie-bar-open .merlin { bottom: calc(12px + var(--cookie-bar-h, 0px)); }
.merlin.merlin-in { transform: none; opacity: 1; visibility: visible; transition: transform .6s cubic-bezier(.2,.8,.2,1.1), opacity .4s, visibility 0s; }
.merlin > * { pointer-events: auto; }
.merlin-char { order: 0; width: 104px; height: 130px; padding: 0; margin: 0; border: 0; background: none; cursor: pointer; border-radius: 16px; flex-shrink: 0; }
.merlin-char img { width: 100%; height: 100%; display: block; animation: merlin-bob 3.2s ease-in-out infinite; transform-origin: 50% 100%; }
.merlin-char:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.merlin.merlin-poke .merlin-char img { animation: merlin-hop .5s ease-out, merlin-bob 3.2s ease-in-out .5s infinite; }
/* cloud-shaped bubble */
.merlin-bubble { order: 1; position: relative; max-width: 270px; margin-bottom: 64px; padding: 16px 34px 12px 18px; background: #fff; color: #1c1a24;
  border-radius: 28px 30px 26px 32px / 26px 28px 30px 24px; box-shadow: 0 10px 28px -12px rgba(0,0,0,.45); }
.merlin-bubble::before, .merlin-bubble::after { content: ""; position: absolute; background: #fff; border-radius: 50%; }
.merlin-bubble::before { width: 46px; height: 34px; top: -12px; left: 26px; }
.merlin-bubble::after { width: 14px; height: 14px; left: -16px; bottom: 6px; box-shadow: -10px 12px 0 -3px #fff; }
.merlin-kicker { position: relative; margin: 0 0 4px; font: 500 .62rem/1.2 var(--geo); letter-spacing: .18em; text-transform: uppercase; color: #5b21b6; }
.merlin-ph { margin-left: 6px; padding: 2px 6px; border-radius: 999px; background: #fde68a; color: #713f12; letter-spacing: .08em; }
.merlin-text { position: relative; margin: 0; font: 400 .86rem/1.45 var(--sans); color: #1c1a24; }
.merlin-meta { margin: 8px 0 0; font-size: .7rem; color: #5f5b6b; }
.merlin-meta a { color: #5b21b6 !important; text-decoration: underline; text-underline-offset: 2px; }
.merlin-close { position: absolute; top: 4px; right: 4px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: none; color: #5f5b6b;
  font: 400 1.3rem/1 var(--sans); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.merlin-close:hover { color: #1c1a24; background: #f1ecfb; }
.merlin-close:focus-visible { outline: 2px solid #5b21b6; outline-offset: -4px; }
@keyframes merlin-bob { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-6px) rotate(-1.5deg); } }
@keyframes merlin-hop { 0% { transform: translateY(0); } 40% { transform: translateY(-16px) rotate(3deg); } 100% { transform: translateY(0); } }
/* small screens: compact, never over the buy box or the cookie bar */
@media (max-width: 700px) {
  .merlin { left: 8px; right: 84px; bottom: calc(10px + var(--cookie-bar-h, 0px)); }
  .merlin-char { width: 70px; height: 88px; }
  .merlin-bubble { max-width: none; flex: 1; margin-bottom: 40px; padding: 12px 34px 10px 14px; }
  .merlin-text { font-size: .8rem; }
  .merlin.merlin-buy-visible { transform: translateY(140%); opacity: 0; visibility: hidden; }
}
@media (prefers-reduced-motion: reduce) {
  .merlin, .merlin.merlin-in { transition: none; }
  .merlin-char img, .merlin.merlin-poke .merlin-char img { animation: none; }
}
@media print { .merlin { display: none; } }
.merlin-bubble { opacity: 0; transform: translateY(8px) scale(.85); transform-origin: 0 100%; transition: opacity .3s, transform .35s cubic-bezier(.2,.8,.2,1.2); }
.merlin.merlin-in .merlin-bubble { opacity: 1; transform: none; transition-delay: .55s; }
@media (prefers-reduced-motion: reduce) { .merlin-bubble, .merlin.merlin-in .merlin-bubble { transition: none; transform: none; } }

/* ===== White page background (owner-approved 2026-10-10): only the page background changes =====
   Page text goes dark again; cards, panels and the footer keep their K PLUS look (made opaque in the colour they
   showed on the blue page) with their white text, so they read exactly as before. Tiles, buttons, header band, Merlin unchanged. */
:root {
  --bg: #ffffff; --bg-soft: #faf8fc;
  --text: #1c1a24; --muted: #5f5b6b; --faint: #757082;        /* 17.2 / 6.5 / 4.8 : 1 on white */
  --line: #eeebf3; --line-strong: #dcd6e6; --link: #5b21b6;  /* link 8.9 : 1 on white */
  --btn-fill: #ffffff;
}
body { background: #ffffff; color: var(--text); }
/* dark K PLUS surfaces keep their own light text */
.card, .buy-box, .review, .news-card, .site-footer, .gallery-nav.static {
  --text: #ffffff; --muted: #dbe8f5; --faint: #dbe8f5; --line: rgba(255,255,255,.16); --line-strong: rgba(255,255,255,.34);
  --link: #b3f3fb; --bg: #1d4f86; --btn-fill: #1d4f86; color: #ffffff;
}
.card, .buy-box, .review, .news-card { background: #163b6c; }   /* = the translucent card over the blue page */
.site-footer { background: #102950; }
.gallery-nav.static { background: #163b6c; }
main a:not(.btn):not(.card):not(.type-tile), .back-link { color: var(--link); }
/* form fields on the white page */
input, select, textarea { background-color: #ffffff; color: var(--text); border-color: var(--line-strong); }
.filters input, .filters select, .sort select { background-color: transparent; }
input::placeholder, textarea::placeholder { color: #757082; }
.form-error { color: #b3261e; }
.input-invalid { border-color: #b3261e !important; }
.partners { --faint: var(--kp-ink-muted); }  /* partner labels: 6.0 : 1 on the light well */
