/* LUX ITALY SEO pages (gemstones, birthstones, gifts, Gemstone Guide): one small stylesheet, no JavaScript.
   Brand book v1: carta background, espresso text, oro lines; Bodoni Moda for headings, Jost for text. */
/* UX council 2.12 (R2-5): the same self-hosted display face as the store pages (public/store/v3/v3.css), so a heading
   here never falls back to Times when Google Fonts is slow or blocked. */
@font-face{font-family:"Bodoni Moda";src:url(v3/fonts/playfair-display-latin-wght-normal.woff2) format("woff2");font-weight:400 900;font-display:swap;unicode-range:U+0000-00FF,U+2000-206F,U+20AC,U+2122,U+0E3F}
:root{--carta:#FBF7F0;--crema:#F3EADC;--avorio:#E6D8C2;--espresso:#2E2119;--grigio:#6D5F51;--oro:#7A5A22;--velluto:#241A15}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--carta);color:var(--espresso);font:400 17px/1.65 Jost,system-ui,-apple-system,"Segoe UI",sans-serif}
a{color:inherit;text-underline-offset:4px}
a:focus-visible,button:focus-visible,input:focus-visible{outline:2px solid var(--oro);outline-offset:3px}
.skip{position:absolute;left:-999px}
.skip:focus{left:12px;top:12px;background:#fff;padding:8px 12px;z-index:9}
.top{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 24px;max-width:1080px;margin:0 auto;padding:16px 20px;border-bottom:1px solid var(--avorio)}
.brand{font:500 24px/1 "Bodoni Moda",Georgia,serif;letter-spacing:.12em;text-decoration:none}
.brand span{font-size:.6em;letter-spacing:.32em;color:var(--oro)}
.top nav{display:flex;flex-wrap:wrap;gap:0 20px}
.top nav a,footer nav a{display:inline-flex;align-items:center;min-height:44px;text-decoration:none;font-size:15px}
.top nav a:hover,footer nav a:hover{text-decoration:underline}
main{max-width:1080px;margin:0 auto;padding:0 20px 56px}
article{max-width:760px}
.crumbs ol{display:flex;flex-wrap:wrap;gap:0 8px;list-style:none;margin:0;padding:14px 0 0;font-size:14px;color:var(--grigio)}
.crumbs li+li::before{content:"/";margin-right:8px;color:var(--avorio)}
h1,h2,h3{font-family:"Bodoni Moda",Georgia,serif;font-weight:500;line-height:1.2;margin:0}
h1{font-size:clamp(2rem,5vw,3rem);margin:22px 0 18px}
h2{font-size:1.6rem;margin:44px 0 12px}
h3{font-size:1.2rem;margin:26px 0 6px}
p,ul,dl{margin:0 0 16px}
.answer{background:var(--crema);border-left:3px solid var(--oro);padding:16px 18px;border-radius:4px}
.facts{display:grid;gap:0;border-top:1px solid var(--avorio)}
.facts div{display:grid;grid-template-columns:minmax(120px,30%) 1fr;gap:16px;padding:10px 0;border-bottom:1px solid var(--avorio)}
.facts dt{color:var(--grigio)}
.facts dd{margin:0}
.scroll{overflow-x:auto;margin:0 0 16px}
table{border-collapse:collapse;width:100%;font-size:15.5px}
th,td{text-align:left;vertical-align:top;padding:10px 12px 10px 0;border-bottom:1px solid var(--avorio)}
thead th{font-weight:500;color:var(--grigio);font-size:14px}
tbody th{font-weight:500}
.grid{list-style:none;padding:0;margin:8px 0 24px;display:grid;gap:22px 16px;grid-template-columns:repeat(2,minmax(0,1fr));max-width:none}
@media(min-width:720px){.grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
article:has(.grid){max-width:none}
article:has(.grid)>p,article:has(.grid)>.facts,article:has(.grid)>.faq,article:has(.grid)>.links,article:has(.grid)>ul:not(.grid){max-width:760px}
.grid a{display:block;text-decoration:none}
.grid img{display:block;width:100%;height:auto;aspect-ratio:1/1;object-fit:cover;background:var(--crema);border-radius:4px}
.grid span{display:block}
.grid .name{font:500 1.05rem/1.25 "Bodoni Moda",Georgia,serif;margin-top:10px}
.grid .line{font-size:14px;color:var(--grigio);line-height:1.4;margin-top:2px}
.grid .price{font-variant-numeric:tabular-nums;margin-top:4px}
.links{list-style:none;padding:0}
.links li{padding:10px 0;border-bottom:1px solid var(--avorio)}
.links span{display:block;font-size:15px;color:var(--grigio)}
.search label{display:block;margin-bottom:6px}
.search div{display:flex;gap:8px;margin-bottom:24px}
.search input{flex:1;min-height:48px;padding:0 14px;border:1px solid var(--avorio);border-radius:4px;background:#fff;font:inherit;color:inherit}
.btn,.search button{display:inline-flex;align-items:center;min-height:48px;padding:0 24px;border-radius:999px;border:1px solid var(--espresso);background:var(--espresso);color:var(--carta);font:500 14px/1 Jost,system-ui,sans-serif;letter-spacing:.14em;text-transform:uppercase;text-decoration:none;cursor:pointer;margin:6px 8px 0 0}
.btn.quiet{background:transparent;color:var(--espresso);letter-spacing:.04em;text-transform:none;font-size:15px}
.promise{margin-top:48px;padding:24px;background:var(--crema);border-radius:4px}
.promise p{margin:0 0 6px}
footer{background:var(--velluto);color:#F3EADC;padding:28px 20px 36px}
footer nav,footer p{max-width:1080px;margin:0 auto}
footer nav{display:flex;flex-wrap:wrap;gap:0 22px;margin-bottom:12px}
footer p{font-size:14px;color:#B9AB98}
[lang=th]{letter-spacing:0}
/* The store's EN / ไทย switch, as links (same look as .lang-sw in lang.css: the language in use is the strong one). */
.lang-sw{display:inline-flex;align-items:center;font-size:13px;letter-spacing:.06em}
.lang-sw a{display:inline-flex;align-items:center;justify-content:center;min-height:44px;min-width:30px;padding:0 4px;font-weight:500;text-decoration:none;opacity:.55}
.lang-sw a[aria-current]{opacity:1;font-weight:700;text-decoration:underline;text-underline-offset:5px;text-decoration-thickness:1px}
.lang-sw a:hover{opacity:1}
.lang-sw a[lang=th]{font-size:14px;letter-spacing:0}
.lang-sw i{font-style:normal;opacity:.4;padding:0 1px}
/* Polish 29.11: the Thai pages (/th/gifts…, /th/stones…) read in the store's Thai face. */
html[lang="th"] body,html[lang="th"] h1,html[lang="th"] h2,html[lang="th"] h3{font-family:"Anuphan","Noto Sans Thai",system-ui,sans-serif}
html[lang="th"] [lang="en"]{font-family:"Jost",system-ui,sans-serif}

/* Visual review 29.11 (LUX 2.0 + store.calm only, class top-compact): one header row on a phone, links behind a menu. */
.top-burger{display:none}
.top-tg{position:absolute;width:1px;height:1px;opacity:0;margin:0;pointer-events:none}
@media (min-width:760px){.top-tg{display:none}}
@media (max-width:759px){
  .top-compact{flex-wrap:nowrap;gap:10px;position:relative;padding:12px 16px}
  .top-compact .brand{order:0;font-size:21px;white-space:nowrap}
  .top-compact .pp-pill{order:1;margin-left:auto;margin-right:0}
  .top-compact .lang-sw{order:2}
  .top-compact .top-burger{order:3;display:inline-grid;align-content:center;gap:5px;width:44px;height:44px;padding:0 11px;cursor:pointer}
  .top-compact .top-burger i{display:block;height:1.5px;background:currentColor;transition:transform .3s,opacity .3s}
  .top-compact>nav{display:none;position:absolute;left:0;right:0;top:100%;z-index:20;flex-direction:column;gap:0;padding:6px 20px 14px;background:var(--carta,#FBF7F0);border-bottom:1px solid var(--avorio);box-shadow:0 14px 24px rgba(46,33,25,.1)}
  .top-compact>nav a{min-height:48px;border-bottom:1px solid var(--avorio);font-size:17px}
  .top-compact .top-tg:checked~nav{display:flex}
  .top-compact .top-tg:checked+.top-burger i:nth-child(1){transform:translateY(6.5px) rotate(45deg)}
  .top-compact .top-tg:checked+.top-burger i:nth-child(2){opacity:0}
  .top-compact .top-tg:checked+.top-burger i:nth-child(3){transform:translateY(-6.5px) rotate(-45deg)}
  .top-compact .top-tg:focus-visible+.top-burger{outline:2px solid var(--oro);outline-offset:2px}
}

/* QA 1.12: same, on the plain-link switch */
.lang-sw a[lang=th]{position:relative;top:1px}

/* ---- UX council 2.12 (Apple/Samsung review, owner-approved) ---- */
/* R2-1: the search row never runs off a 390px phone. */
.search div{min-width:0;max-width:100%}
.search input{min-width:0;width:100%}
.search button{flex:none;margin:0;padding:0 18px}
@media(max-width:480px){.search button{padding:0 14px;letter-spacing:.08em}}
.count{color:var(--grigio);font-size:15px;margin:0 0 8px}
/* R2-12: a photo that fails shows a quiet name, never 20px alt text. */
.grid img{font-size:12px;line-height:1.3;color:var(--grigio);background:linear-gradient(135deg,#f6efe4,#ece2d2)}
/* R2-2: the one Thai line on a page that exists only in English. */
.th-only-en{background:var(--crema);border-radius:12px;padding:10px 14px;font-family:"Anuphan","Noto Sans Thai",system-ui,sans-serif;font-size:16px}
/* R2-8: below 600px a table row is a card (name first, every column with its own label); nothing clips at the edge. */
@media(max-width:600px){
  table.cards-sm,table.cards-sm tbody,table.cards-sm tr,table.cards-sm th,table.cards-sm td{display:block;width:100%}
  table.cards-sm thead{position:absolute;left:-9999px}
  table.cards-sm tr{background:#fff;border:1px solid var(--avorio);border-radius:12px;padding:12px 14px;margin:0 0 12px}
  table.cards-sm th[scope=row]{font:500 1.1rem/1.3 "Bodoni Moda",Georgia,serif;border:0;padding:0 0 6px}
  table.cards-sm td{border:0;padding:4px 0;white-space:normal}
  table.cards-sm td::before{content:attr(data-label);display:block;font-size:13px;letter-spacing:.06em;text-transform:uppercase;color:var(--grigio)}
  .scroll:has(table.cards-sm){overflow:visible}
}
/* Store redesign 2.12 (audit #56): contact as the brands' own logos (resources/views/store/partials/maison-contact). */
.mx-logos{list-style:none;margin:14px 0 0;padding:0;display:flex;flex-wrap:wrap;gap:12px 10px}
.mx-logos li{margin:0;padding:0}
.mx-logos li::before{content:none}
.mx-logos a{display:flex;flex-direction:column;align-items:center;gap:6px;min-width:54px;text-decoration:none;color:#6E625A;font-size:11.5px}
.mx-logos svg{width:26px;height:26px;padding:12px;box-sizing:content-box;border-radius:50%;background:#fff;border:1px solid rgba(43,36,32,.12)}
.mx-wa svg{fill:#25D366}.mx-line svg{fill:#06C755}.mx-ig svg{fill:url(#mx-ig-g)}.mx-fb svg{fill:#0866FF}.mx-mail svg{fill:#2B2420}
.mx-wa{order:1}.mx-line{order:2}.mx-ig{order:3}.mx-fb{order:4}.mx-mail{order:5}
html[lang="th"] .mx-line{order:0}
