/* =============================================================
   Generated pages — stones, stores, delivery, guides
   (tools/build_site.py). Loaded after site.css, and after
   catalog.css + product.css where a page shows stone cards.
   ============================================================= */

/* ===================== HERO + BREADCRUMB ===================== */
.page-hero-tight { padding: 40px 0 56px; }
.page-hero-tight .h-display { font-size: clamp(36px, 5vw, 60px); }
.page-hero-tight .lead { max-width: 760px; }
.h-guide { max-width: 920px; }

.crumbs { margin-bottom: 36px; }
.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 0;
  list-style: none;
  font-size: 13px;
  color: var(--muted);
}
.crumbs li { display: inline-flex; align-items: center; }
.crumbs li + li::before {
  content: '';
  width: 6px;
  height: 6px;
  margin: 0 12px 0 10px;
  border-right: 1.5px solid var(--em-200);
  border-top: 1.5px solid var(--em-200);
  transform: rotate(45deg);
}
.crumbs a { color: var(--em-800); font-weight: 600; }
.crumbs a:hover { color: var(--em-950); text-decoration: underline; text-underline-offset: 3px; }
.crumbs [aria-current] { color: var(--muted); }

/* Local-language line under the h1 (Telugu, Tamil, Malayalam, Kannada) */
.local-name {
  margin-top: 14px;
  font-family: var(--font-display), 'Noto Sans', system-ui, sans-serif;
  font-size: clamp(16px, 1.6vw, 19px);
  font-weight: 600;
  color: var(--em-700);
}

.byline { margin-top: 20px; font-size: 14px; color: var(--muted); }

/* ===================== SECTIONS ===================== */
.section-md { padding: 80px 0; }
.narrow { max-width: 860px; }
.section-title-sm { font-size: clamp(24px, 3vw, 32px); margin-bottom: 28px; }

/* ===================== STONE DETAIL ===================== */
.stone-detail { padding: 0 0 80px; }

.stone-layout,
.store-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

.stone-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.stone-shot {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--em-50);
}
.stone-shot-main { grid-column: 1 / -1; aspect-ratio: 16 / 9; background: var(--em-950); }
.stone-shot picture { display: block; width: 100%; height: 100%; }
.stone-shot img { width: 100%; height: 100%; object-fit: cover; }
.stone-shot figcaption {
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(1, 30, 18, 0.72);
  color: var(--white);
  font-size: 11px;
  font-weight: 600;
}
/* under the main shot: flooring, close-up and the real swatch, three across */
.stone-gallery .stone-shot:not(.stone-shot-main) { aspect-ratio: 1 / 1; }

.stone-info {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow);
}
.stone-info .product-code { margin-top: 0; }
.stone-info .product-price { margin-top: 14px; }
.stone-info .product-cta + .product-cta { margin-top: 10px; }
.stone-info .product-specs dd a { color: var(--em-900); border-bottom: 1px solid var(--em-200); }
.stone-info address { font-style: normal; }

/* ===================== STORE PAGE ===================== */
.store-hero-photo {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--em-950);
  box-shadow: var(--shadow);
}
.store-hero-photo img { width: 100%; height: auto; }

.map-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--em-100);
  min-height: 360px;
  box-shadow: var(--shadow-sm);
}
.map-card iframe { display: block; width: 100%; height: 100%; min-height: 360px; border: 0; }

.showroom-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* ===================== PROSE ===================== */
.prose-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}

.prose { max-width: 720px; color: var(--ink-soft); font-size: 17px; line-height: 1.8; }
.prose > * + * { margin-top: 18px; }
.prose h2 {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--ink);
  margin-top: 44px;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-top: 30px;
}
.prose h2 + *, .prose h3 + * { margin-top: 10px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li + li { margin-top: 6px; }
.prose li::marker { color: var(--em-700); }
.prose a { color: var(--em-900); font-weight: 600; border-bottom: 1.5px solid var(--em-200); }
.prose a:hover { border-color: var(--em-900); }
.prose strong { color: var(--ink); }
.prose-more { font-size: 15px; padding-top: 6px; }

.answer-box {
  padding: 22px 24px;
  border-left: 4px solid var(--em-900);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--em-50);
  color: var(--ink);
}
.answer-box p + p { margin-top: 6px; }
.answer-label {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--em-700);
}

/* ===================== TABLES ===================== */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  -webkit-overflow-scrolling: touch;
}
.prose table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 15px; line-height: 1.55; }
.prose caption {
  caption-side: top;
  text-align: left;
  padding: 14px 16px;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.prose th, .prose td { padding: 12px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line-soft); }
.prose thead th {
  background: var(--em-900);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.prose tbody th { color: var(--ink); font-weight: 600; }
.prose tbody tr:nth-child(even) { background: var(--em-50); }
.prose tbody tr:last-child > * { border-bottom: 0; }
.prose td a, .prose th a { font-weight: 600; }

/* ===================== SIDE CARD + CHIPS ===================== */
.side-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-soft);
}
.section-tint .side-card { box-shadow: var(--shadow-sm); }
.side-card-sticky { position: sticky; top: calc(var(--nav-h) + 24px); }
.side-card > * + * { margin-top: 12px; }
.side-card .side-card-title + * { margin-top: 8px; }
.side-card > .side-card-title:not(:first-child) { margin-top: 28px; }
.side-card-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.stone-info .side-card-title { margin-bottom: 6px; }
.side-card .product-specs { margin: 14px 0 18px; }

.side-links { list-style: none; }
.side-links li + li { margin-top: 10px; }
.side-links a { color: var(--em-900); font-weight: 600; border-bottom: 1px solid var(--em-200); }
.side-links a:hover { border-color: var(--em-900); }

.chip-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0 !important; }
.chip-list li { margin: 0 !important; }
.chip-list a,
.chip-list-plain li {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--em-900);
  line-height: 1.2;
}
.chip-list a { border-bottom: 1px solid var(--line) !important; transition: border-color .2s var(--ease), background .2s var(--ease); }
.chip-list a:hover { border-color: var(--em-900) !important; background: var(--em-50); }
.chip-list-plain li { color: var(--ink-soft); font-weight: 500; }
.chip-list-lg a { padding: 12px 18px; font-size: 15px; }

/* ===================== FAQ ===================== */
.faq-list { margin-top: 32px; border-top: 1px solid var(--line); }
.faq { border-bottom: 1px solid var(--line); }
.faq summary {
  position: relative;
  padding: 20px 44px 20px 0;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '';
  position: absolute;
  right: 6px;
  top: 50%;
  width: 10px;
  height: 10px;
  margin-top: -8px;
  border-right: 2px solid var(--em-900);
  border-bottom: 2px solid var(--em-900);
  transform: rotate(45deg);
  transition: transform .2s var(--ease);
}
.faq[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq summary:hover { color: var(--em-800); }
.faq p { padding: 0 0 22px; max-width: 720px; color: var(--ink-soft); line-height: 1.75; }

/* ===================== CARD GRIDS ===================== */
.catalog-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 860px) {
  .catalog-grid-3 { grid-template-columns: 1fr 1fr; }
}

/* ===================== STEPS ===================== */
.pillars-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pillars-4 .pillar { padding: 28px 24px 30px; }
.pillars-4 .pillar-num { font-size: 44px; }
.pillars-4 .pillar-title { font-size: 19px; margin-top: 20px; }
.pillars-4 .pillar p { font-size: 15px; }

/* ===================== CITY + GUIDE CARDS ===================== */
.city-grid,
.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.guide-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.city-card,
.guide-card {
  display: flex;
  flex-direction: column;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease);
}
@media (hover: hover) {
  .city-card:hover, .guide-card:hover { border-color: var(--em-900); box-shadow: var(--shadow); transform: translateY(-2px); }
}
.city-card-state {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.city-card-name,
.guide-card-title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--ink);
  margin: 8px 0 8px;
}
.guide-card-title { font-size: 22px; }
.city-card-km, .guide-card-text { color: var(--ink-soft); font-size: 15px; line-height: 1.6; margin-bottom: 24px; }
.city-card-go {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  align-self: flex-start;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  color: var(--em-900);
  border-bottom: 1.5px solid var(--em-200);
  padding-bottom: 3px;
}
.city-card-any {
  background-color: var(--em-900);
  background-image: var(--marble-deep);
  background-size: cover;
  border-color: var(--em-900);
}
.city-card-any .city-card-state { color: var(--em-300); }
.city-card-any .city-card-name { color: var(--white); }
.city-card-any .city-card-km { color: rgba(255, 255, 255, 0.78); }
.city-card-any .city-card-go { color: var(--white); border-color: rgba(255, 255, 255, 0.35); }

/* ===================== BREAKPOINTS ===================== */
@media (max-width: 1024px) {
  .stone-layout, .store-layout { grid-template-columns: minmax(0, 1fr); }
  .stone-info, .side-card-sticky { position: static; }
  .prose-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .pillars-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .city-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .page-hero-tight { padding: 24px 0 40px; }
  .crumbs { margin-bottom: 24px; }
  .section-md { padding: 56px 0; }
  .stone-detail { padding-bottom: 56px; }
  .stone-gallery { gap: 6px; }
  .stone-shot figcaption { font-size: 10px; left: 6px; bottom: 6px; padding: 3px 7px; }
  .stone-info, .side-card { padding: 22px; }
  .prose { font-size: 16px; }
  .pillars-4, .city-grid, .guide-grid, .showroom-grid-2 { grid-template-columns: minmax(0, 1fr); }
  .faq summary { font-size: 16px; padding: 18px 36px 18px 0; }
  .map-card, .map-card iframe { min-height: 300px; }
}
