/* GLOG additions: wordmark, Gemstones panel, phone gem groups, gem tiles, photo cards */
@font-face { font-family: Cylburn; src: url("/fonts/Cylburn.otf") format("opentype"); font-display: block; }
.glog-wm { font-family: Cylburn, cursive; font-weight: 400; font-size: 2.125rem; line-height: 1; white-space: nowrap; letter-spacing: 0; color: #000; display: inline-block; transform: translateY(0.12em); }
footer .glog-wm { font-size: 2.375rem; }
.glog-wm-ctx .glog-wm { font-size: 1.875rem; animation: glog-fade 0.6s ease-out both; }
@keyframes glog-fade { from { opacity: 0; transform: translateY(0.12em) scaleY(0.9); } to { opacity: 1; } }

/* Gemstones panel: all 9 groups in stacks; The Gemmy 20 runs over two columns */
.glog-gems-right { width: min(62rem, calc(100vw - 25rem)) !important; }
.glog-gems-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr)); padding: 0 1.125rem 1.125rem; }
.glog-stack { min-width: 0; }
.glog-stack-2 { grid-column: span 2; }
.glog-grp { width: auto !important; padding-left: 0 !important; padding-right: 0 !important; }
.glog-cols-2 { columns: 2; column-gap: 0; }
.glog-gems-pos nav > div { max-height: calc(100vh - 7rem); overflow-y: auto; }
.glog-feat-img { background: #fff; outline: 0.5px solid rgb(0 0 0 / 0.08); outline-offset: -0.5px; }

/* phone menu: gem groups that open to their gems */
.glog-mgrp-row { display: flex; align-items: center; width: calc(100% + 1.5rem); margin: 0 -0.75rem; border-radius: 0.75rem; }
.glog-mgrp-row:hover { background: rgb(243 244 246); }
.glog-mgrp-name { flex: auto; padding: 0.875rem 0.75rem; font-size: 0.875rem; line-height: 1.25rem; font-weight: 500; color: #000; }
.glog-mgrp-btn { flex: none; display: flex; align-items: center; justify-content: center; width: 3rem; align-self: stretch; border-radius: 0.75rem; }
.glog-mgrp-btn .glog-chev { transition: transform 0.2s; }
.glog-mgrp-btn[aria-expanded="true"] .glog-chev { transform: rotate(180deg); }
.glog-mgrp-list { padding-left: 0.875rem; margin-bottom: 0.25rem; border-left: 1px solid rgb(0 0 0 / 0.06); margin-left: 0.125rem; }

/* gem tiles in the logo wall: the cutouts in colour (the base drew grey logos that coloured on hover) */
.glog-cut a > div:nth-child(2) { display: none; }
.glog-cut a > div:nth-child(3) { opacity: 1 !important; transition: transform 0.3s ease-out; }
.glog-cut a:hover > div:nth-child(3) { transform: scale(1.08); }

/* hero orbs: gem photos stay crisp (no grain over them) */
[aria-label^="View "] ~ div .tw-mix-blend-overlay { display: none; }

/* code cards that became photos */
.glog-photo-card { position: relative; overflow: hidden; padding: 0 !important; min-height: 22rem; }
.glog-photo-fill { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* product photos (gems on white) */
.glog-prod { object-fit: contain !important; background: #fff; }

/* About: species names in the wordmark's script, in the logo cells */
.glog-cyl-cell { font-family: Cylburn, cursive; font-size: 2.25rem; line-height: 1; white-space: nowrap; color: #000; display: flex; align-items: center; justify-content: center; height: 100%; }
@media (max-width: 1023px) { .glog-cyl-cell { font-size: 1.5rem; } }
@media (max-width: 639px) { .glog-cyl-cell { font-size: 1.125rem; white-space: normal; text-align: center; } }

/* Ways to buy: a struck-through old price would read as a discount */
.glog-no-strike { text-decoration: none !important; }
.glog-hide { display: none !important; }
.glog-fill-contain { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.glog-prod { transform: scale(1.45); }

/* hero orbs: no play button over a gem (the base played voice previews) */
[aria-label^="View "] ~ div.tw-pointer-events-none { display: none; }

/* phones: the wordmark shares the bar with the client button */
@media (max-width: 639px) { .glog-wm { font-size: 1.5rem; } footer .glog-wm { font-size: 2rem; } }

/* phones: three gem-line tabs fit the row (labels are longer than the base's) */
@media (max-width: 420px) { [role=tab][data-key=creative], [role=tab][data-key=agents], [role=tab][data-key=api] { padding-left: 0.75rem !important; padding-right: 0.75rem !important; } }

/* the carousel arrows' hit areas poke 11px past the right edge on phones (as in the base); clip them */
html { overflow-x: clip; }

/* rotator tiles: the gem sits inside the tile (the base's logos had their own margin) */
.glog-rot-img { padding: 24%; box-sizing: border-box; object-fit: contain; }

/* Gemstones panel: group headings link to their group in the gem browser */
.glog-grp-link { color: inherit; border-radius: 0.25rem; transition: color 0.15s; }
.glog-grp-link:hover { color: #000; }
.glog-grp-link:focus-visible { outline: 2px solid #000; outline-offset: 2px; }
/* About: species names link to their gem pages */
/* About: each species with a small stone from the collection */
.glog-wall-box { display: flex; align-items: center; justify-content: center; min-height: 2.5rem; }
.glog-cyl-cell.glog-wall-cell { gap: 0.875rem; height: auto; }
.glog-wall-stone { flex: none; width: 2.5rem; height: 2.5rem; overflow: hidden; }
.glog-wall-stone img { width: 100%; height: 100%; object-fit: cover; transform: translate(var(--x), var(--y)) scale(var(--z)); mix-blend-mode: multiply; }
@media (max-width: 1023px) { .glog-wall-stone { width: 2rem; height: 2rem; } .glog-cyl-cell.glog-wall-cell { gap: 0.625rem; } }
@media (max-width: 639px) { .glog-cyl-cell.glog-wall-cell { flex-direction: column; gap: 0.375rem; } }
a.glog-cyl-cell { transition: color 0.2s; }
a.glog-cyl-cell:hover { color: rgb(107 114 128); }
/* footer: monthly inventory updates, one row on desktop, stacked on phones */
.glog-news { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; min-height: 2.5rem; margin-bottom: 4rem; }
.glog-news-text span { margin-left: 0.375rem; }
.glog-news-row { display: flex; gap: 0.5rem; }
.glog-news-input { width: 18rem; height: 2.5rem; padding: 0 1.125rem; border: 0; border-radius: 9999px; background: #fff; color: #000; font: inherit; font-size: 0.9375rem; 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; }
.glog-news-input:focus { box-shadow: 0 0 0 1.5px #000, 0 2px 4px rgb(0 0 0 / 0.04); }
.glog-news-input::placeholder { color: rgb(165 159 151); opacity: 1; }
.glog-news-btn { height: 2.5rem; font-size: 0.9375rem; }
.glog-news.is-done .glog-news-row { display: none; }
.glog-news-done:focus { outline: none; }
.glog-news-error { flex-basis: 100%; margin-top: -0.5rem; text-align: right; color: rgb(166 45 45); }
@media (max-width: 639px) { .glog-news { flex-direction: column; align-items: stretch; margin-bottom: 3rem; } .glog-news-input { flex: 1; width: auto; min-width: 0; font-size: 1rem; } .glog-news-text span { display: block; margin: 0.25rem 0 0; } .glog-news-error { text-align: left; } }
/* phones: "Email our gemologists" steps aside while a form field is in use, so it never covers one */
@media (max-width: 767px) { body:has(:is(input, select, textarea):focus) [data-floating-agent] { display: none; } }
