:root {
  --dark: #111820;
  --gold: #b98927;
  --line: #e6e2da;
  --muted: #666b73;
  --panel: #fff;
  --cream: #f5efe2;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: Inter, Arial, sans-serif;
  color: #161a22;
  background: #fafafa;
}

main {
  flex: 1 0 auto;
}

.site-footer {
  flex-shrink: 0;
  margin-top: auto;
}

h1,
h2 {
  font-family: Georgia, serif;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Top navigation */
.topbar {
  height: 80px;
  background: linear-gradient(135deg, #111820, #0e1218);
  color: white;
  display: flex;
  align-items: center;
  gap: 36px;
  padding: 0 28px;
}

.brand {
  font-family: Georgia, serif;
  font-size: 26px;
  white-space: nowrap;
}

.logo {
  color: var(--gold);
  margin-right: 10px;
}

.topbar nav {
  display: flex;
  gap: 34px;
  flex: 1;
}

.topbar nav a {
  font-size: 16px;
}

.topbar nav .active {
  color: #d8a43a;
}

/* Search */
.search {
  display: flex;
  border: 1px solid #3d4652;
  border-radius: 7px;
  overflow: hidden;
}

.search input {
  background: transparent;
  color: white;
  border: 0;
  padding: 13px 16px;
  width: 250px;
}

.search button {
  background: transparent;
  color: white;
  border: 0;
  font-size: 24px;
  padding: 0 12px;
}

/* Layout */
.breadcrumbs {
  padding: 28px 28px 0;
  color: #68707a;
}

.heading-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 22px 30px;
}

.heading-row h1 {
  font-size: 34px;
  margin: 0 0 8px;
}

.muted {
  color: var(--muted);
  margin: 0;
}

.actions button {
  border: 1px solid #bca370;
  background: #fff;
  border-radius: 4px;
  padding: 14px 28px;
  margin-left: 14px;
  font-weight: 700;
  font-size: 16px;
}

.actions .gold {
  background: var(--gold);
  color: #fff;
  border-color: var(--gold);
}

.page-grid {
  display: grid;
  grid-template-columns: 320px minmax(420px, 1fr) 380px;
  gap: 24px;
  padding: 0 28px 50px;
}

/* Left menu */
.left-menu > a {
  display: block;
  background: #fff;
  border: 1px solid var(--line);
  padding: 18px 20px;
  font-size: 17px;
}

.left-menu > a:first-child {
  border-radius: 4px 4px 0 0;
}

.left-menu > a.selected {
  background: var(--cream);
  color: #815f18;
}

/* Collection box */
.collection-box {
  margin-top: 40px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 24px;
  position: relative;
  min-height: 130px;
}

.collection-box img {
  position: absolute;
  right: 20px;
  top: 22px;
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 4px;
}

.collection-box a {
  color: #815f18;
}

/* Image viewer */
.viewer {
  background: #171a1d;
  border-radius: 4px;
  min-height: 560px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.viewer > img {
  max-width: 100%;
  max-height: 560px;
  object-fit: contain;
}

.thumbs {
  position: absolute;
  bottom: 15px;
  display: flex;
  gap: 12px;
}

.thumb {
  width: 106px;
  height: 80px;
  border: 2px solid white;
  border-radius: 5px;
  background: #333;
  padding: 0;
  overflow: hidden;
}

.thumb.on {
  border-color: #d6a22d;
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.arrow {
  position: absolute;
  top: 43%;
  border: 0;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  border-radius: 50%;
  font-size: 48px;
  width: 50px;
  height: 50px;
}

.left {
  left: 14px;
}

.right {
  right: 14px;
}

.fullscreen {
  position: absolute;
  right: 15px;
  top: 15px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  border: 0;
  border-radius: 4px;
  font-size: 24px;
  padding: 7px;
}

/* Main object */
.main-object h2 {
  font-family: Inter, Arial, sans-serif;
  margin-top: 38px;
}

.main-object p {
  font-size: 17px;
  line-height: 1.65;
}

/* Facts */
.facts {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.facts dl,
.exhibitions {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 22px;
}

.facts dt {
  font-weight: 700;
  margin-top: 18px;
}

.facts dt:first-child {
  margin-top: 0;
}

.facts dd {
  margin: 7px 0 0;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  font-size: 16px;
}

.facts dd:last-child {
  border-bottom: 0;
}

/* Exhibitions */
.exhibition {
  display: flex;
  gap: 16px;
}

.exhibition img {
  width: 76px;
  height: 76px;
  object-fit: cover;
  border-radius: 4px;
}

.exhibition a {
  color: #815f18;
}

/* Listing */
.listing {
  padding: 40px 30px;
}

.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 24px;
}

.object-card {
  background: #fff;
  border: 1px solid var(--line);
  padding: 14px;
  border-radius: 6px;
}

.object-card img {
  width: 100%;
  height: 190px;
  object-fit: cover;
}

.object-card h2 {
  font-size: 22px;
}

/* Related objects */
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.related-card {
  border: 1px solid var(--line);
  padding: 12px;
  border-radius: 10px;
  background: #fff;
}

.related-card img {
  width: 100%;
  max-width: 220px;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  display: block;
  margin: 0 auto;
}
.related-card a {
  text-decoration: none;
  color: inherit;
}

.related-card h3 {
  font-size: 16px;
  margin: 10px 0 4px;
}

/* Responsive */
@media (max-width: 100px) {
  .page-grid {
    grid-template-columns: 1fr;
  }

  .topbar {
    height: auto;
    flex-wrap: wrap;
    padding: 18px;
  }

  .topbar nav {
    order: 3;
    flex-basis: 100%;
  }

  .search input {
    width: 180px;
  }
}
/* CHRONOS responsive/professional refinements */
.topbar a { transition: color .2s ease, background .2s ease; }
.topbar > a:last-child {
  padding: 9px 13px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px;
}
.listing-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 28px;
}
.listing-header h1, .listing-header h2 { margin: 0 0 8px; }
.listing-header p { color: var(--muted); margin: 0; max-width: 760px; line-height: 1.6; }
.eyebrow {
  display: inline-block;
  color: #8a681d;
  background: #f1e7cf;
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 10px;
}
.card-placeholder {
  height: 190px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f1eee8;
  color: #8b8b8b;
  border-radius: 4px;
}
.object-card {
  display: block;
  transition: transform .22s ease, box-shadow .22s ease;
  box-shadow: 0 8px 22px rgba(20, 24, 32, .05);
}
.object-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(20, 24, 32, .1);
}
.card-summary { color: var(--muted); line-height: 1.55; }
.collection-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 360px);
  gap: 36px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 34px;
  margin-bottom: 34px;
  box-shadow: 0 12px 34px rgba(20, 24, 32, .06);
}
.collection-hero h1 { margin: 0 0 12px; }
.collection-hero p { line-height: 1.7; color: var(--muted); }
.collection-hero img {
  width: 100%;
  max-height: 260px;
  object-fit: cover;
  border-radius: 14px;
}

/* Professional analysis and file cards */
.chemical-analysis-list,
.three-d-models { display: grid; gap: 12px; }
.chemical-analysis-item,
.three-d-card {
  border: 1px solid #e4dccd;
  border-radius: 18px;
  padding: 14px;
  margin-bottom: 12px;
  background: linear-gradient(180deg, #fff 0%, #fffaf0 100%);
  box-shadow: 0 8px 22px rgba(20, 24, 32, .05);
}
.chemical-analysis-item strong { font-size: 15px; }
.chemical-meta { margin-top: 6px; color: #6b7280; font-size: 13px; line-height: 1.5; }
.chemical-analysis-item p { margin: 10px 0; color: #374151; line-height: 1.55; }
.chemical-files { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.chemical-files a,
.three-d-open {
  display: inline-flex;
  align-items: center;
  padding: 7px 11px;
  border-radius: 999px;
  background: #efe3c6;
  color: #755514;
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
}
.three-d-card-head { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 12px; }
.three-d-card-head p { margin: 4px 0 0; color: var(--muted); line-height: 1.5; }
.three-d-cube { font-size: 24px; }
.three-d-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16/10;
  min-height: 220px;
  overflow: hidden;
  border-radius: 14px;
  background: #111820;
  border: 1px solid #e6e2da;
  margin-bottom: 10px;
}
.three-d-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 1180px) {
  .page-grid { grid-template-columns: 260px minmax(0, 1fr); }
  .facts { grid-column: 1 / -1; display: block; }
  .facts dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 22px; }
  .facts dt, .facts dd { margin-top: 0; }
  .facts dd { border-bottom: 0; }
}

@media (max-width: 900px) {
  .topbar { height: auto; flex-wrap: wrap; gap: 14px; padding: 16px; }
  .brand { flex: 1 0 100%; font-size: 22px; }
  .topbar nav { order: 3; flex: 1 0 100%; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
  .topbar nav a { white-space: nowrap; padding: 8px 10px; background: rgba(255,255,255,.08); border-radius: 999px; }
  .search { flex: 1 1 240px; }
  .search input { width: 100%; }
  .heading-row { flex-direction: column; gap: 16px; padding: 22px 18px; }
  .actions { display: flex; flex-wrap: wrap; gap: 10px; }
  .actions button { margin-left: 0; padding: 11px 16px; }
  .page-grid { grid-template-columns: 1fr; padding: 0 18px 38px; }
  .left-menu { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .left-menu > a { border-radius: 10px; padding: 13px 14px; font-size: 14px; }
  .collection-box { grid-column: 1 / -1; margin-top: 8px; }
  .viewer { min-height: 380px; }
  .viewer > img { max-height: 420px; }
  .thumbs { position: static; width: 100%; overflow-x: auto; padding: 10px; background: rgba(0,0,0,.28); justify-content: flex-start; }
  .thumb { min-width: 82px; height: 62px; }
  .facts dl { grid-template-columns: 1fr; }
  .collection-hero { grid-template-columns: 1fr; padding: 22px; }
}

@media (max-width: 560px) {
  .object-page-wrapper { padding: 0; }
  .breadcrumbs { padding: 20px 18px 0; font-size: 13px; }
  .heading-row h1 { font-size: 28px; }
  .left-menu { grid-template-columns: 1fr; }
  .listing { padding: 28px 18px; }
  .grid-cards { grid-template-columns: 1fr; }
  .viewer { min-height: 300px; border-radius: 12px; }
  .arrow { width: 42px; height: 42px; font-size: 34px; }
  .three-d-embed { min-height: 200px; }
}

/* Professional object-page resource layouts */
.record-grid,.resource-grid,.media-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:14px;margin:.35rem 0 .7rem}.record-card,.resource-card,.media-card{min-width:0;border:1px solid #e3e7eb;border-radius:14px;background:#fff;padding:15px;box-shadow:0 4px 16px rgba(17,24,39,.05)}.record-card p,.resource-card p,.media-card p{margin:.55rem 0 0;color:#4b5563;line-height:1.55}.resource-card{display:flex;gap:12px}.resource-icon,.media-icon{flex:0 0 38px;width:38px;height:38px;display:grid;place-items:center;border-radius:10px;background:#f3f4f6;font-size:1.15rem}.resource-body{min-width:0}.resource-links{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}.resource-links:empty{display:none}.resource-links a{display:inline-flex;align-items:center;padding:7px 10px;border:1px solid #d7dde3;border-radius:9px;background:#f8fafc;color:#26323d;text-decoration:none;font-size:.84rem;font-weight:650}.resource-links a:hover{background:#eef2f6;border-color:#aeb8c2}.media-card{padding:0;overflow:hidden}.media-card-head{display:flex;gap:12px;padding:15px}.media-embed{aspect-ratio:16/10;background:#111827}.media-embed iframe{width:100%;height:100%;border:0;display:block}.media-card>.resource-links{padding:0 15px 15px;margin-top:0}@media(max-width:720px){.record-grid,.resource-grid,.media-grid{grid-template-columns:1fr}.resource-card{padding:13px}}
