:root {
  --ink: #101316;
  --ink-soft: #1a1e22;
  --charcoal: #090b0d;
  --ivory: #f2efe7;
  --paper: #fbfaf6;
  --gold: #c6a15b;
  --gold-deep: #96723a;
  --teal: #1d6a67;
  --muted: #737772;
  --line-dark: rgba(255, 255, 255, .13);
  --line-light: rgba(16, 19, 22, .15);
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --container: min(92vw, 1480px);
  --shadow: 0 30px 80px rgba(7, 10, 12, .16);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--charcoal); color: var(--ivory); font-family: var(--sans); font-size: 17px; line-height: 1.65; text-rendering: optimizeLegibility; }
img { max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select { font: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #72d6d0; outline-offset: 4px; }
::selection { background: var(--gold); color: var(--charcoal); }
.container-xxl { width: var(--container); max-width: none; margin-inline: auto; padding-inline: 0; }
.skip-link { position: fixed; z-index: 9999; left: 1rem; top: 1rem; transform: translateY(-180%); background: var(--paper); color: var(--ink); padding: .75rem 1rem; border-radius: 2px; }
.skip-link:focus { transform: none; }
.eyebrow { margin: 0 0 1rem; color: var(--gold); font-size: .72rem; font-weight: 800; letter-spacing: .18em; line-height: 1.2; text-transform: uppercase; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.04; letter-spacing: -.025em; }
h1 { font-size: clamp(3rem, 7vw, 7.2rem); }
h2 { font-size: clamp(2.3rem, 4.3vw, 4.9rem); }
h3 { font-size: clamp(1.4rem, 2vw, 2rem); }

.site-header { position: absolute; z-index: 50; inset: 0 0 auto; border-bottom: 1px solid var(--line-dark); transition: background .25s ease, border-color .25s ease; }
.site-header.is-scrolled { position: fixed; background: rgba(9, 11, 13, .94); border-color: rgba(198,161,91,.25); backdrop-filter: blur(18px); }
.navbar { min-height: 92px; padding: .7rem 0; }
.site-brand { display: inline-flex; align-items: center; gap: .8rem; color: var(--ivory); text-decoration: none; }
.site-brand img { width: 52px; height: 52px; border-radius: 50%; }
.site-brand span { display: grid; line-height: 1.1; }
.site-brand strong { font-family: var(--serif); font-size: 1.35rem; font-weight: 400; letter-spacing: .01em; }
.site-brand small { margin-top: .3rem; color: #aaa9a2; font-size: .59rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.navbar-nav { gap: clamp(.3rem, 1.5vw, 1.5rem); }
.navbar .nav-link { color: #e7e2d8; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.navbar .nav-link:hover { color: var(--gold); }
.nav-search { display: inline-flex; gap: .5rem; align-items: center; border: 1px solid rgba(198,161,91,.55); border-radius: 999px; padding: .55rem .95rem; color: var(--ivory); font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-decoration: none; text-transform: uppercase; }
.navbar-toggler { border-color: rgba(255,255,255,.3); filter: invert(1); }

.home-hero { position: relative; display: flex; min-height: max(720px, 100svh); overflow: hidden; align-items: center; isolation: isolate; }
.hero-media, .gem-hero-media { position: absolute; z-index: -3; inset: 0; display: block; width: 100%; height: 100%; overflow: hidden; }
.hero-media img, .gem-hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-scrim { position: absolute; z-index: -2; inset: 0; background: linear-gradient(90deg, rgba(7,9,11,.98) 0%, rgba(7,9,11,.9) 36%, rgba(7,9,11,.26) 72%, rgba(7,9,11,.12) 100%); }
.hero-inner { padding-top: 8.5rem; padding-bottom: 5rem; }
.hero-inner > * { max-width: min(780px, 64vw); }
.hero-inner h1 { margin: 0; max-width: 860px; }
.hero-inner h1 em { color: var(--gold); font-weight: 400; }
.hero-copy { margin: 2rem 0 2.4rem; color: #c9c8c2; font-size: clamp(1.05rem, 1.5vw, 1.35rem); max-width: 650px; }
.hero-search { position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; width: min(760px, 100%); max-width: none !important; padding: .45rem; border: 1px solid rgba(255,255,255,.24); background: rgba(12,15,17,.74); box-shadow: 0 20px 70px rgba(0,0,0,.4); backdrop-filter: blur(18px); }
.hero-search > span { padding: 0 .75rem; color: var(--gold); font-size: 1.5rem; }
.hero-search input { min-width: 0; border: 0; outline: 0; background: transparent; color: white; padding: .9rem .25rem; font-size: clamp(.92rem, 1.2vw, 1.05rem); }
.hero-search input::placeholder { color: #aaa9a2; }
.hero-search button, .page-search button, .filter-actions button, .compare-picker button, .login-card button { border: 0; background: var(--gold); color: var(--charcoal); padding: .95rem 1.35rem; font-size: .76rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.autocomplete-panel { position: absolute; z-index: 70; top: calc(100% + .55rem); right: 0; left: 0; max-height: 420px; overflow: auto; border: 1px solid rgba(198,161,91,.35); background: #101417; box-shadow: var(--shadow); }
.autocomplete-panel a { display: grid; grid-template-columns: 94px 1fr; gap: .15rem 1rem; padding: .9rem 1rem; border-bottom: 1px solid var(--line-dark); text-decoration: none; }
.autocomplete-panel a:hover, .autocomplete-panel a[aria-selected="true"] { background: #1a2024; }
.autocomplete-panel span { grid-row: 1 / 3; color: var(--gold); font-size: .65rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.autocomplete-panel strong { font-family: var(--serif); font-size: 1.1rem; font-weight: 400; }
.autocomplete-panel small { color: #a9aca9; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero-examples { display: flex; flex-wrap: wrap; gap: .55rem 1rem; margin-top: 1.1rem; color: #a5a7a4; font-size: .78rem; }
.hero-examples span { text-transform: uppercase; letter-spacing: .12em; }
.hero-examples a { color: #dfd9ce; text-underline-offset: 3px; }
.visual-disclosure { position: absolute; right: 1.5rem; bottom: 1rem; margin: 0; color: rgba(255,255,255,.58); font-size: .63rem; letter-spacing: .06em; }

.trust-strip { background: #111518; border-block: 1px solid var(--line-dark); }
.stat-grid { display: grid; grid-template-columns: repeat(5, 1fr); }
.stat-grid > div { min-height: 120px; display: grid; align-content: center; padding: 1.6rem; border-right: 1px solid var(--line-dark); }
.stat-grid > div:first-child { border-left: 1px solid var(--line-dark); }
.stat-grid strong { font-family: var(--serif); color: var(--gold); font-size: 2rem; font-weight: 400; }
.stat-grid span { color: #9ea09e; font-size: .68rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }

.section { padding: clamp(5rem, 9vw, 10rem) 0; }
.section-ivory { background: var(--ivory); color: var(--ink); }
.section-heading { max-width: 760px; margin-bottom: 3.3rem; }
.section-heading h2, .split-heading h2 { margin: 0; }
.section-heading > p:last-child { margin: 1.4rem 0 0; color: #6c716d; }
.split-heading { max-width: none; display: grid; grid-template-columns: 1.25fr .75fr; gap: 7vw; align-items: end; }
.split-heading > p { margin: 0 0 .6rem !important; }

.gem-card-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.2rem; }
.gem-card { position: relative; overflow: hidden; border: 1px solid rgba(16,19,22,.16); background: var(--paper); transition: transform .28s ease, box-shadow .28s ease; }
.gem-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.gem-card::after { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--gem-accent, var(--gold)); }
.gem-card-media { position: relative; display: block; overflow: hidden; aspect-ratio: 1.28; background: var(--ink); }
.gem-card-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 65%, rgba(0,0,0,.55)); }
.gem-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.gem-card:hover .gem-card-media img { transform: scale(1.035); }
.gem-status { position: absolute; z-index: 1; left: 1rem; bottom: .8rem; color: white; font-size: .62rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.gem-card-body { padding: 1.4rem; }
.gem-card-body > p:first-child { margin: 0 0 .5rem; color: var(--gem-accent, var(--gold-deep)); font-size: .65rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.gem-card-body h2, .gem-card-body h3 { margin: 0; font-size: 1.7rem; }
.gem-card-body h2 a, .gem-card-body h3 a { text-decoration: none; }
.gem-card-body > p:not(:first-child) { min-height: 4.8em; color: #666b67; font-size: .86rem; }
.gem-card-facts { display: flex; justify-content: space-between; gap: 1rem; margin-top: 1.3rem; padding-top: 1rem; border-top: 1px solid var(--line-light); color: #626663; font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; }
.gem-card-facts strong { color: var(--ink); }
.section-action { margin-top: 3rem; text-align: right; }
.text-link { display: inline-flex; gap: .8rem; align-items: center; color: var(--gold); font-weight: 800; letter-spacing: .03em; text-decoration: none; }
.text-link span { transition: transform .2s ease; }
.text-link:hover span { transform: translateX(5px); }
.text-link.dark { color: var(--gold-deep); }

.color-atlas { background: #101417; }
.color-ribbon { display: grid; grid-template-columns: repeat(8, 1fr); min-height: 330px; border: 1px solid var(--line-dark); }
.color-ribbon a { position: relative; display: flex; align-items: end; padding: 1rem; overflow: hidden; border-right: 1px solid rgba(255,255,255,.18); background: var(--swatch); text-decoration: none; transition: flex .25s ease, filter .25s ease; }
.color-ribbon a::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255,255,255,.1), transparent 40%, rgba(0,0,0,.35)); }
.color-ribbon span { position: relative; color: white; font-size: .72rem; font-weight: 850; letter-spacing: .09em; writing-mode: vertical-rl; transform: rotate(180deg); text-transform: uppercase; }
.color-ribbon a:hover { filter: brightness(1.15); }
.color-ribbon.light { min-height: 240px; margin-bottom: 4rem; }

.two-column-feature { display: grid; grid-template-columns: .75fr 1.25fr; gap: 8vw; align-items: center; }
.two-column-feature h2 { margin: 0 0 1.5rem; }
.two-column-feature p:not(.eyebrow) { color: #676c68; max-width: 620px; }
.mohs-scale { display: grid; grid-template-columns: repeat(10, 1fr); align-items: end; min-height: 420px; margin: 0; padding: 0; list-style: none; }
.mohs-scale li { height: calc(11% + var(--step, 0%)); }
.mohs-scale li:nth-child(1){height:19%}.mohs-scale li:nth-child(2){height:26%}.mohs-scale li:nth-child(3){height:33%}.mohs-scale li:nth-child(4){height:40%}.mohs-scale li:nth-child(5){height:48%}.mohs-scale li:nth-child(6){height:56%}.mohs-scale li:nth-child(7){height:65%}.mohs-scale li:nth-child(8){height:75%}.mohs-scale li:nth-child(9){height:87%}.mohs-scale li:nth-child(10){height:100%}
.mohs-scale a { display: flex; height: 100%; min-width: 0; flex-direction: column; justify-content: space-between; padding: .55rem; border: 1px solid rgba(16,19,22,.22); border-right: 0; background: linear-gradient(180deg, rgba(198,161,91,.8), rgba(198,161,91,.16)); color: var(--ink); font-size: .55rem; font-weight: 800; letter-spacing: .05em; text-decoration: none; text-transform: uppercase; }
.mohs-scale li:last-child a { border-right: 1px solid rgba(16,19,22,.22); }
.mohs-scale span { font-family: var(--serif); font-size: clamp(1rem, 2vw, 2rem); font-weight: 400; }

.evidence-section { background: #0d1012; }
.evidence-grid { display: grid; grid-template-columns: 1.25fr repeat(3, 1fr); gap: 1px; background: var(--line-dark); border: 1px solid var(--line-dark); }
.evidence-grid > * { background: #0d1012; padding: 2.2rem; }
.evidence-grid h2 { margin: 0; font-size: clamp(2rem, 3.5vw, 3.7rem); }
.evidence-card > span { color: var(--gold); font-family: var(--serif); font-size: 1.6rem; }
.evidence-card h3 { margin: 3rem 0 1rem; font-size: 1.45rem; }
.evidence-card p { color: #a9aaa6; font-size: .9rem; }

.page-hero { background: #101417; }
.compact-page-hero { padding: 12rem 0 5rem; border-bottom: 1px solid var(--line-dark); }
.compact-page-hero h1 { margin: 0; font-size: clamp(3.2rem, 6vw, 6rem); }
.compact-page-hero p:last-child { max-width: 760px; margin: 1.5rem 0 0; color: #b6b6b1; font-size: 1.15rem; }
.filter-panel { position: sticky; z-index: 15; top: 90px; display: grid; grid-template-columns: repeat(3, 1fr) auto; gap: 1rem; align-items: end; margin: -2rem 0 3rem; padding: 1.35rem; border: 1px solid var(--line-light); background: rgba(251,250,246,.96); box-shadow: 0 15px 50px rgba(20,20,18,.12); backdrop-filter: blur(15px); }
.filter-panel label, .compare-picker label, .login-card label { display: block; margin-bottom: .45rem; color: #626763; font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.filter-panel select, .page-search input, .compare-picker input, .login-card input { width: 100%; min-height: 50px; border: 1px solid #bbb9b0; border-radius: 0; background: white; color: var(--ink); padding: .7rem .85rem; }
.filter-actions { display: flex; align-items: center; gap: .9rem; }
.filter-actions a { color: #666; font-size: .8rem; }
.directory-toolbar { display: flex; justify-content: space-between; gap: 2rem; margin-bottom: 1.4rem; color: #6b6e6b; font-size: .82rem; }
.directory-toolbar p { margin: 0; }
.directory-toolbar strong { color: var(--ink); font-family: var(--serif); font-size: 1.4rem; font-weight: 400; }
.filter-note { max-width: 560px; text-align: right; }
.noscript-note, .source-caveat { margin-top: 2rem; padding: 1rem; border-left: 3px solid var(--gold); background: rgba(198,161,91,.1); }

.gem-hero { position: relative; display: flex; min-height: 760px; overflow: hidden; align-items: end; isolation: isolate; }
.gem-hero-media { z-index: -2; }
.gem-hero-media img { object-position: center; }
.gem-hero-overlay { position: absolute; z-index: -1; inset: 0; background: linear-gradient(180deg, rgba(8,10,12,.15), rgba(8,10,12,.92) 78%), linear-gradient(90deg, rgba(8,10,12,.9), transparent 70%); }
.gem-hero-content { padding-bottom: 4rem; }
.breadcrumbs { display: flex; gap: .6rem; margin-bottom: 4.5rem; color: #a8aaa6; font-size: .72rem; letter-spacing: .05em; }
.breadcrumbs a { text-underline-offset: 3px; }
.gem-hero h1 { margin: 0; font-size: clamp(4.5rem, 9vw, 9rem); color: var(--gem-accent, var(--gold)); }
.gem-subtitle { margin: 1rem 0 2.2rem; max-width: 760px; color: #e7e3da; font-family: var(--serif); font-size: clamp(1.3rem, 2vw, 2rem); }
.hero-facts { display: grid; grid-template-columns: repeat(4, minmax(130px, 1fr)); max-width: 920px; margin: 0; border-block: 1px solid var(--line-dark); }
.hero-facts div { padding: 1rem; border-right: 1px solid var(--line-dark); }
.hero-facts div:first-child { padding-left: 0; }
.hero-facts dt { color: #8f938f; font-size: .62rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.hero-facts dd { margin: .2rem 0 0; font-family: var(--serif); font-size: 1.12rem; }
.article-shell { display: grid; grid-template-columns: 230px minmax(0, 950px); gap: clamp(3rem, 8vw, 10rem); padding-top: 6rem; padding-bottom: 8rem; }
.article-nav { position: sticky; top: 120px; align-self: start; display: grid; border-top: 1px solid var(--line-dark); }
.article-nav p { margin: 0; padding: 1rem 0; color: var(--gold); font-size: .65rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.article-nav a { padding: .65rem 0; border-top: 1px solid var(--line-dark); color: #aaaca8; font-size: .8rem; text-decoration: none; }
.article-section { padding: 0 0 5rem; scroll-margin-top: 120px; }
.article-section + .article-section { padding-top: 5rem; border-top: 1px solid var(--line-dark); }
.article-section h2 { margin: 0 0 2rem; font-size: clamp(2.5rem, 5vw, 5rem); }
.lead { color: #d5d3cc; font-family: var(--serif); font-size: clamp(1.4rem, 2.3vw, 2.1rem); line-height: 1.45; }
.section-intro p:last-child, .article-section > p:not(.eyebrow) { color: #aaaca8; }
.review-notice, .pending-panel { margin-bottom: 4rem; padding: 1.5rem; border: 1px solid rgba(198,161,91,.45); background: rgba(198,161,91,.08); }
.review-notice strong { color: var(--gold); font-family: var(--serif); font-size: 1.4rem; }
.review-notice p { margin-bottom: 0; color: #bebeb9; }
.properties-table-wrap, .comparison-table-wrap { overflow-x: auto; border: 1px solid var(--line-dark); }
.properties-table, .comparison-table { width: 100%; border-collapse: collapse; }
.properties-table caption, .comparison-table caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.properties-table th, .properties-table td, .comparison-table th, .comparison-table td { padding: 1rem; border-bottom: 1px solid var(--line-dark); text-align: left; vertical-align: top; }
.properties-table th { width: 19%; color: #8f928f; font-size: .67rem; letter-spacing: .08em; text-transform: uppercase; }
.properties-table td { width: 31%; font-family: var(--serif); }
.content-subsection { margin-top: 3rem; }
.content-subsection h3 { color: var(--gem-accent, var(--gold)); }
.content-subsection p { color: #c5c4be; }
.references ol { list-style: none; padding: 0; }
.references li { display: grid; grid-template-columns: 45px 1fr; padding: 1.2rem 0; border-top: 1px solid var(--line-dark); }
.references li > span { color: var(--gold); }
.references strong { font-family: var(--serif); font-size: 1.1rem; font-weight: 400; }
.references p { margin: .3rem 0; color: #9fa19d; font-size: .82rem; }
.references a { color: var(--gold); font-size: .8rem; }
.editorial-byline { display: grid; grid-template-columns: repeat(3, 1fr) auto; gap: 1rem; margin-bottom: 5rem; padding: 1.5rem; border: 1px solid var(--line-dark); }
.editorial-byline div { display: grid; }
.editorial-byline span { color: #898d89; font-size: .62rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.editorial-byline strong { font-family: var(--serif); font-weight: 400; }
.editorial-byline a { color: var(--gold); align-self: center; font-size: .8rem; }
.related-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line-dark); border: 1px solid var(--line-dark); }
.related-grid a { display: block; background: #101417; padding: 1.5rem; text-decoration: none; }
.related-grid span { color: var(--gold); font-size: .62rem; font-weight: 800; text-transform: uppercase; }
.related-grid strong { display: block; margin: .7rem 0; font-family: var(--serif); font-size: 1.6rem; font-weight: 400; }
.related-grid p { color: #9ea19d; font-size: .82rem; }

.page-search { display: flex; max-width: 760px; margin-top: 2rem; }
.page-search input { background: #171b1e; color: white; border-color: rgba(255,255,255,.25); }
.search-results { min-height: 45vh; }
.result-list, .reference-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.result-list a, .reference-list article { display: block; border: 1px solid var(--line-light); background: var(--paper); padding: 1.5rem; color: var(--ink); text-decoration: none; }
.result-list span, .reference-list article > p { color: var(--gold-deep); font-size: .65rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.result-list strong, .reference-list h2 { display: block; margin: .5rem 0; font-family: var(--serif); font-size: 1.7rem; font-weight: 400; }
.result-list p, .reference-list article div { color: #6b706c; font-size: .88rem; }
.compare-picker { margin-bottom: 3rem; padding: 1.5rem; border: 1px solid var(--line-light); background: var(--paper); }
.compare-picker > div { display: flex; }
.compare-picker p { margin-bottom: 0; font-size: .8rem; }
.comparison-table { background: var(--paper); color: var(--ink); min-width: 750px; }
.comparison-table thead th { background: var(--ink); color: var(--ivory); font-family: var(--serif); font-size: 1.25rem; font-weight: 400; }
.comparison-table tbody th { color: var(--gold-deep); font-size: .7rem; text-transform: uppercase; }
.login-card { max-width: 560px; margin: 3rem auto; padding: 3rem; border: 1px solid var(--line-light); background: var(--paper); box-shadow: var(--shadow); }
.login-card h1 { color: var(--ink); font-size: 3.5rem; }
.login-card label { margin-top: 1rem; }
.login-card button { width: 100%; margin-top: 1.4rem; }
.form-error { padding: .8rem; border-left: 3px solid #a51c30; background: rgba(165,28,48,.08); }
.admin-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.admin-grid article { border: 1px solid var(--line-light); padding: 2rem; background: var(--paper); }
.admin-grid span { color: var(--gold-deep); font-family: var(--serif); font-size: 2rem; }
.admin-grid h2 { margin: 2rem 0 1rem; font-size: 2rem; }

.prose-page { max-width: min(850px, var(--container)); }
.prose-page h2 { margin: 3.5rem 0 1rem; font-size: clamp(2rem, 4vw, 3.5rem); }
.prose-page > h2:first-child { margin-top: 0; }
.prose-page p { color: #5e635f; font-size: 1.05rem; }
.month-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.month-grid a { display: grid; min-height: 140px; padding: 1.4rem; border: 1px solid var(--line-light); background: var(--paper); text-decoration: none; }
.month-grid span { color: var(--gold-deep); font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.month-grid strong { align-self: end; font-family: var(--serif); font-size: 1.7rem; font-weight: 400; }
.family-tree { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 4rem; }
.family-tree div { display: grid; min-height: 180px; padding: 1.5rem; background: var(--ink); color: var(--ivory); }
.family-tree strong { color: var(--gold); font-family: var(--serif); font-size: 2rem; font-weight: 400; }
.family-tree span { align-self: end; color: #aaa; }
.error-page { display: grid; min-height: 100vh; place-items: center; }
.error-card { max-width: 620px; margin: 2rem auto; text-align: center; }
.error-card h1 { font-size: 3.5rem; }
.error-card a { display: inline-block; margin-top: 1rem; color: var(--gold); }
.error-card small { display: block; margin-top: 2rem; color: #777; }

.site-footer { padding: 6rem 0 2rem; background: #080a0c; border-top: 1px solid var(--line-dark); }
.footer-lead { display: grid; grid-template-columns: 1fr .8fr; gap: 5vw; align-items: end; padding-bottom: 4rem; border-bottom: 1px solid var(--line-dark); }
.footer-lead h2 { max-width: 720px; margin: 0; font-size: clamp(2.3rem, 4vw, 4.2rem); }
.footer-search { display: flex; border-bottom: 1px solid rgba(198,161,91,.65); }
.footer-search input { flex: 1; min-width: 0; border: 0; background: transparent; color: white; padding: 1rem 0; outline: 0; }
.footer-search button { border: 0; background: transparent; color: var(--gold); font-size: .72rem; font-weight: 900; text-transform: uppercase; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 5vw; padding: 4rem 0; }
.footer-brand p { max-width: 340px; color: #8f928e; font-size: .85rem; }
.footer-grid h3 { margin: 0 0 1rem; color: var(--gold); font-family: var(--sans); font-size: .65rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.footer-grid > div:not(.footer-brand) { display: flex; flex-direction: column; }
.footer-grid a { padding: .24rem 0; color: #b4b5b0; font-size: .84rem; text-decoration: none; }
.footer-grid a:hover { color: white; }
.footer-meta { display: flex; justify-content: space-between; gap: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--line-dark); color: #737672; font-size: .7rem; }

@media (max-width: 1199px) {
  .gem-card-grid { grid-template-columns: repeat(3, 1fr); }
  .evidence-grid { grid-template-columns: 1fr 1fr; }
  .color-ribbon { grid-template-columns: repeat(4, 1fr); min-height: 520px; }
  .filter-panel { grid-template-columns: repeat(3, 1fr); }
  .filter-actions { grid-column: 1 / -1; }
}

@media (max-width: 991px) {
  .site-header { position: absolute; background: rgba(9,11,13,.92); }
  .navbar-collapse { margin-top: .8rem; padding: 1rem; background: #101417; border: 1px solid var(--line-dark); }
  .navbar-nav { align-items: stretch !important; }
  .hero-inner > * { max-width: 84vw; }
  .stat-grid { grid-template-columns: repeat(3, 1fr); }
  .split-heading, .two-column-feature, .footer-lead { grid-template-columns: 1fr; }
  .gem-card-grid { grid-template-columns: repeat(2, 1fr); }
  .mohs-scale { min-height: 320px; }
  .article-shell { grid-template-columns: 1fr; }
  .article-nav { position: static; grid-template-columns: repeat(4, 1fr); }
  .article-nav p { grid-column: 1 / -1; }
  .article-nav a { border-right: 1px solid var(--line-dark); }
  .footer-grid { grid-template-columns: 1.5fr repeat(3, 1fr); gap: 2rem; }
}

@media (max-width: 767px) {
  body { font-size: 16px; }
  .container-xxl { width: min(90vw, 680px); }
  .site-brand small { display: none; }
  .home-hero { min-height: 760px; align-items: end; }
  .hero-inner { padding-top: 9rem; padding-bottom: 6rem; }
  .hero-inner > * { max-width: none; }
  .hero-scrim { background: linear-gradient(180deg, rgba(7,9,11,.35), rgba(7,9,11,.97) 62%); }
  .hero-search { grid-template-columns: auto 1fr; }
  .hero-search button { grid-column: 1 / -1; width: 100%; }
  .visual-disclosure { right: 5vw; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-grid > div { min-height: 100px; padding: 1rem; }
  .gem-card-grid, .result-list, .reference-list, .related-grid, .admin-grid, .month-grid, .family-tree { grid-template-columns: 1fr; }
  .evidence-grid { grid-template-columns: 1fr; }
  .color-ribbon { grid-template-columns: repeat(2, 1fr); min-height: 700px; }
  .mohs-scale { grid-template-columns: repeat(5, 1fr); min-height: 500px; align-items: stretch; }
  .mohs-scale li, .mohs-scale li:nth-child(n) { height: auto; }
  .filter-panel { position: static; grid-template-columns: 1fr; margin-top: 0; }
  .filter-actions { grid-column: auto; }
  .directory-toolbar { display: block; }
  .filter-note { margin-top: .7rem !important; text-align: left; }
  .gem-hero { min-height: 820px; }
  .hero-facts { grid-template-columns: repeat(2, 1fr); }
  .hero-facts div:first-child { padding-left: 1rem; }
  .article-nav { grid-template-columns: repeat(2, 1fr); }
  .properties-table th, .properties-table td { display: block; width: 100%; }
  .properties-table th { padding-bottom: .3rem; border-bottom: 0; }
  .properties-table td { padding-top: 0; }
  .editorial-byline { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-meta { display: grid; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
