/* Size guide — approved design "Size guide D". Mobile first. */

.size-page { --sg-dark: #33231c; --sg-dark-2: #241a18; --sg-cream: #f2e0d2; --sg-gold: #e8c98f; --sg-sand: #f1e4db; }
.size-page h2 { font-size: clamp(2.2rem, 6vw, 3.8rem); line-height: 1; letter-spacing: -0.02em; }
.size-page h2 em, .size-page h1 em, .size-page h3 em { color: var(--gold-ink); }
.size-page .eyebrow { color: var(--gold-ink); }
.sg-muted { color: var(--ink-muted); }
.sg-num { font-family: var(--display); font-size: 20px; color: var(--gold-ink); }
.sg-head { display: flex; flex-direction: column; gap: 12px; margin-bottom: 32px; }
.sg-head--center { align-items: center; text-align: center; }
.sg-head--split p { margin: 0; font-size: 13px; }

.btn--gold { background: var(--sg-gold); color: var(--sg-dark-2); }
.btn--gold:hover { background: #f0d7a6; color: var(--sg-dark-2); }
.size-page .btn { display: inline-flex; align-items: center; min-height: 46px; }

/* 1 — Hero */
.sg-hero { display: grid; gap: 32px; padding-block: 56px 48px; background: linear-gradient(180deg, var(--pearl) 0%, var(--peony) 100%); }
.sg-hero__copy { display: flex; flex-direction: column; gap: 18px; }
.sg-hero h1 { font-size: clamp(3.4rem, 11vw, 6.5rem); line-height: 0.92; letter-spacing: -0.035em; }
.sg-hero__intro { margin: 0; max-width: 46ch; font-size: 16px; line-height: 1.75; color: var(--ink-muted); }
.sg-jump { display: flex; flex-wrap: wrap; gap: 8px; }
.sg-jump a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border: 1px solid var(--ink); border-radius: 999px; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; }
.sg-jump a:hover { background: var(--ink); color: var(--pearl); }
.sg-ways { display: grid; gap: 14px; }
.sg-way { display: flex; flex-direction: column; gap: 12px; padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: 4px; }
.sg-way__title { margin: 0; font-family: var(--display); font-size: 28px; line-height: 1.05; }
.sg-way__text { font-size: 13px; line-height: 1.6; color: var(--ink-muted); }
.sg-way .btn { align-self: flex-start; margin-top: 4px; }
.sg-way--dark { background: var(--sg-dark); color: var(--sg-cream); border-color: var(--sg-dark); }
.sg-way--dark .eyebrow { color: #d9bc8c; }
.sg-way--dark .sg-way__title { color: #fff; }
.sg-way--dark .sg-way__title em { color: var(--sg-gold); }

/* Fit Finder */
.sg-finder__q { display: block; margin: 0 0 10px; font-size: 14px; color: var(--sg-cream); }
.sg-finder__opts { display: flex; flex-wrap: wrap; gap: 8px; }
.sg-finder__opts button, .sg-finder__row button { min-height: 44px; padding: 0 16px; border: 1px solid rgba(232, 201, 143, 0.55); border-radius: 999px; background: transparent; color: var(--sg-cream); font: inherit; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; cursor: pointer; }
.sg-finder__opts button:hover, .sg-finder__row button:hover { background: var(--sg-gold); color: var(--sg-dark-2); border-color: var(--sg-gold); }
.sg-finder__row { display: flex; gap: 8px; }
.sg-finder__row input { width: 110px; min-height: 44px; padding: 0 14px; border: 1px solid rgba(232, 201, 143, 0.55); border-radius: 2px; background: rgba(255, 255, 255, 0.06); color: #fff; font: inherit; font-size: 16px; }
.sg-finder__help { display: inline-block; margin-top: 10px; font-size: 12px; color: #d9bc8c; border-bottom: 1px solid currentColor; }
.sg-finder__result { display: flex; gap: 16px; align-items: center; padding: 16px; background: rgba(255, 255, 255, 0.06); border-radius: 4px; font-size: 14px; line-height: 1.6; }
.sg-finder__result a { color: var(--sg-gold); border-bottom: 1px solid currentColor; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
.sg-finder__size { font-family: var(--display); font-size: 52px; line-height: 1; color: var(--sg-gold); }
.sg-finder__restart { align-self: flex-start; padding: 6px 0; border: 0; background: none; color: #d9bc8c; font: inherit; font-size: 12px; text-decoration: underline; cursor: pointer; }

/* 2 — Necklace showcase */
.sg-neck { display: grid; background: var(--sg-dark); color: var(--sg-cream); }
.sg-neck__visual { position: relative; min-height: 420px; overflow: hidden; }
.sg-neck__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.5; }
.sg-neck__visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(51, 35, 28, 0.2), rgba(51, 35, 28, 0.75)); }
.sg-neck__lines { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
.sg-neck__body { stroke: var(--sg-cream); stroke-opacity: 0.55; stroke-width: 2; }
.sg-neck__len { stroke: var(--sg-gold); stroke-width: 3; opacity: 0.45; transition: opacity 0.3s, stroke-width 0.3s; }
.sg-neck__len.is-on { opacity: 1; stroke-width: 4.5; }
.sg-neck__ext { stroke: var(--sg-gold); stroke-width: 1.6; stroke-dasharray: 6 7; }
.sg-neck__labels circle { fill: var(--sg-gold); opacity: 0.5; }
.sg-neck__labels circle.is-on { opacity: 1; }
.sg-neck__tick { stroke: var(--sg-gold); stroke-opacity: 0.6; }
.sg-neck__labels text { font-family: var(--ui); font-size: 13px; letter-spacing: 2px; fill: var(--pearl); }
.sg-neck__labels .sg-neck__exttext { fill: var(--sg-gold); }
.sg-neck__caption { position: absolute; z-index: 2; left: 20px; bottom: 18px; font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: #d9bc8c; }
.sg-neck__copy { display: flex; flex-direction: column; gap: 18px; padding: 48px var(--gutter); }
.sg-neck__copy .eyebrow { color: #b08d57; }
.sg-neck__copy h2 { color: #fff; font-size: clamp(2.6rem, 7vw, 4.5rem); line-height: 0.95; }
.sg-neck__copy h2 em { color: var(--sg-gold); }
.sg-neck__copy > p { margin: 0; max-width: 40ch; font-size: 15px; line-height: 1.75; color: rgba(242, 224, 210, 0.85); }
.sg-neck__pick { display: flex; flex-wrap: wrap; gap: 8px; }
.sg-neck__pick button { min-height: 42px; padding: 0 18px; border: 1px solid rgba(232, 201, 143, 0.5); border-radius: 999px; background: transparent; color: var(--sg-cream); font: inherit; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; cursor: pointer; }
.sg-neck__pick button[aria-pressed="true"] { background: var(--sg-gold); color: var(--sg-dark-2); border-color: var(--sg-gold); font-weight: 600; }
.sg-neck__list { margin: 0; border-top: 1px solid rgba(217, 188, 140, 0.35); }
.sg-neck__list div { display: grid; grid-template-columns: 88px 1fr; gap: 12px; padding: 16px 0; border-bottom: 1px solid rgba(217, 188, 140, 0.2); opacity: 0.6; transition: opacity 0.3s; }
.sg-neck__list div.is-on { opacity: 1; }
.sg-neck__list dt { font-family: var(--display); font-size: 24px; color: #fff; }
.sg-neck__list dd { margin: 0; display: flex; flex-direction: column; gap: 4px; font-size: 13px; line-height: 1.6; color: rgba(242, 224, 210, 0.8); }
.sg-neck__range { font-size: 14px; color: var(--sg-gold); }
.sg-neck__tip { font-size: 12px; color: rgba(242, 224, 210, 0.7) !important; }

/* 3 — Charts */
.sg-charts { padding-block: var(--sec) 64px; }
.sg-charts__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 24px; }
.sg-tabs { display: flex; flex-wrap: wrap; gap: 4px 24px; margin-top: 14px; }
.sg-tabs button { min-height: 44px; padding: 0; border: 0; border-bottom: 1px solid transparent; background: none; color: var(--ink-subtle); font: inherit; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; cursor: pointer; }
.sg-tabs button[aria-selected="true"] { color: var(--ink); border-color: var(--ink); font-weight: 600; }
.sg-units { display: flex; border: 1px solid var(--ink); border-radius: 999px; overflow: hidden; }
.sg-units button { min-height: 40px; padding: 0 18px; border: 0; background: none; color: var(--ink); font: inherit; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600; cursor: pointer; }
.sg-units button[aria-pressed="true"] { background: var(--ink); color: var(--pearl); }
.sg-charts__body { display: grid; gap: 32px; }
.sg-table-wrap, .sg-panel { overflow-x: auto; }
.sg-table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 14px; }
.sg-table thead th { padding: 12px 14px; border-bottom: 1px solid var(--ink); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-subtle); font-weight: 600; text-align: left; }
.sg-table td, .sg-table tbody th { padding: 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; line-height: 1.5; font-weight: 400; }
.sg-table tbody th { font-family: var(--display); font-size: 21px; white-space: nowrap; }
.sg-panel__note { margin: 14px 0 0; font-size: 13px; color: var(--ink-muted); }
.sg-know { display: flex; flex-direction: column; gap: 12px; padding: 26px; background: var(--oat); border-radius: 4px; align-self: start; }
.sg-know p { margin: 0; font-size: 14px; line-height: 1.7; }

/* 4 — Measure + ruler */
.sg-measure { padding-block: var(--sec); background: var(--sg-sand); }
.sg-steps { display: grid; gap: 20px; margin: 0; padding: 0; list-style: none; }
.sg-steps li { display: flex; flex-direction: column; gap: 12px; padding: 24px; background: var(--pearl); border-radius: 4px; }
.sg-steps__art { display: grid; place-items: center; height: 150px; border-radius: 999px 999px 4px 4px; background: #fff; }
.sg-steps__art svg { width: 180px; height: 135px; }
.sg-steps h3 { font-size: 26px; }
.sg-steps p { margin: 0; font-size: 14px; line-height: 1.7; color: var(--ink-muted); }
.sg-ruler { display: grid; gap: 28px; margin-top: 36px; padding: 28px; background: var(--pearl); border-radius: 4px; }
.sg-ruler__copy { display: flex; flex-direction: column; gap: 10px; }
.sg-ruler__copy h3 { font-size: 34px; line-height: 1; }
.sg-ruler__copy p { margin: 0; font-size: 14px; line-height: 1.7; color: var(--ink-muted); }
.sg-ruler__copy .btn { align-self: flex-start; }
.sg-ruler__strip { position: relative; height: 92px; padding: 0; background: #fff; border: 1px dashed #b08d57; border-radius: 4px; padding-inline: 16px; }
.sg-ruler__bar { position: absolute; left: 16px; right: 16px; top: 14px; height: 50px; border: 1px solid var(--ink); }
.sg-ruler__tick { position: absolute; top: 0; width: 1px; height: 14px; background: var(--ink); font-size: 10px; }
.sg-ruler__tick.is-cm { height: 26px; }
.sg-ruler__tick.is-cm { text-indent: -3px; line-height: 64px; }
.sg-ruler__mark { position: absolute; bottom: 6px; transform: translateX(-50%); padding: 2px 6px; background: var(--oat); font-size: 10px; letter-spacing: 0.1em; color: var(--gold-ink); }

/* 5 — Fit by style */
.sg-style { padding-block: var(--sec) 48px; }
.sg-style .sg-table tbody th { font-size: 19px; white-space: normal; }

/* 6 — Read + custom */
.sg-read { display: grid; gap: 40px; padding-block: 24px var(--sec); }
.sg-read__text { display: flex; flex-direction: column; gap: 16px; }
.sg-read__text h2 { font-size: clamp(2rem, 5vw, 2.9rem); line-height: 1.05; }
.sg-read__text .prose { font-size: 15px; line-height: 1.85; color: var(--ink-muted); }
.sg-read__text .prose h3 { margin: 24px 0 8px; font-size: 24px; color: var(--ink); }
.sg-custom { display: flex; flex-direction: column; gap: 14px; padding: 30px; background: var(--sg-dark); color: var(--sg-cream); border-radius: 4px; align-self: start; }
.sg-custom .eyebrow { color: #b08d57; }
.sg-custom h3 { font-size: 34px; line-height: 1.05; color: #fff; }
.sg-custom h3 em { color: var(--sg-gold); }
.sg-custom p { margin: 0; font-size: 14px; line-height: 1.7; color: rgba(242, 224, 210, 0.85); }
.sg-custom .btn { align-self: flex-start; margin-top: 4px; }

/* 7 — Shop by size */
.sg-shop { padding-block: 64px; background: var(--sg-dark); color: var(--sg-cream); }
.sg-shop .eyebrow { color: #b08d57; }
.sg-shop h2 { color: #fff; }
.sg-shop h2 em { color: var(--sg-gold); }
.sg-shop .sg-head--split p { color: rgba(242, 224, 210, 0.75); }
.sg-shop__chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.sg-shop__chips a { display: inline-flex; align-items: center; min-height: 46px; padding: 0 20px; border: 1px solid rgba(217, 188, 140, 0.45); border-radius: 999px; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; }
.sg-shop__chips a:hover { background: var(--sg-gold); color: var(--sg-dark-2); }

/* 8 — FAQ */
.sg-faq { display: grid; gap: 28px; padding-block: var(--sec); }
.sg-faq h2 { margin-top: 12px; }
.sg-faq .sg-muted { margin: 14px 0 0; font-size: 14px; line-height: 1.7; }
.sg-faq__list { border-top: 1px solid var(--ink); }
.sg-faq details { border-bottom: 1px solid var(--line); }
.sg-faq summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 44px; padding: 18px 0; cursor: pointer; list-style: none; font-family: var(--display); font-size: 22px; }
.sg-faq summary::-webkit-details-marker { display: none; }
.sg-faq summary::after { content: "+"; font-family: var(--ui); font-size: 22px; color: var(--gold-ink); transition: transform 0.25s; }
.sg-faq details[open] summary::after { transform: rotate(45deg); }
.sg-faq details p { margin: 0 0 20px; font-size: 14px; line-height: 1.7; color: var(--ink-muted); }

@media (min-width: 700px) {
	.sg-ways { grid-template-columns: 1fr 1fr; }
	.sg-steps { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1000px) {
	.sg-hero { grid-template-columns: 1fr 1fr; gap: 72px; align-items: end; padding-block: 110px 64px; }
	.sg-neck { grid-template-columns: 1.15fr 0.85fr; }
	.sg-neck__visual { min-height: 760px; }
	.sg-neck__caption { left: 44px; bottom: 40px; }
	.sg-neck__copy { justify-content: center; padding: 72px 88px 72px 64px; }
	.sg-charts__body { grid-template-columns: 1.4fr 1fr; gap: 56px; }
	.sg-ruler { grid-template-columns: 0.7fr 1.3fr; align-items: center; gap: 48px; padding: 32px; }
	.sg-read { grid-template-columns: 1.2fr 0.8fr; gap: 72px; }
	.sg-shop { padding-block: 80px; }
	.sg-head--split { flex-direction: row; justify-content: space-between; align-items: flex-end; }
	.sg-faq { grid-template-columns: 0.8fr 1.2fr; gap: 72px; }
}
.sg-units { align-items: center; }
.sg-units__label { padding: 0 6px 0 16px; font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-subtle); }
/* Grid children may shrink below their content (tables scroll inside instead of widening the page). */
.sg-hero > *, .sg-neck > *, .sg-charts__body > *, .sg-ruler > *, .sg-read > *, .sg-faq > * { min-width: 0; }
@media (max-width: 699px) {
	.sg-panel .sg-table { min-width: 0; font-size: 13px; }
	.sg-panel .sg-table td, .sg-panel .sg-table tbody th { padding: 12px 8px; }
	.sg-panel .sg-table tbody th { font-size: 18px; }
	.sg-neck__labels text { font-size: 18px; }
}

/* Necklace length chart (all lengths; ours highlighted) */
.sg-neck__ref { stroke: var(--sg-cream); stroke-opacity: 0.35; stroke-width: 1.6; }
.sg-neck__lab { font-family: var(--ui); font-size: 13px; font-weight: 600; letter-spacing: 1px; fill: var(--sg-cream); fill-opacity: 0.55; }
.sg-neck__lab.is-ours { fill: var(--sg-gold); fill-opacity: 0.8; font-size: 15px; }
.sg-neck__lab.is-on { fill-opacity: 1; font-size: 17px; }
@media (max-width: 699px) { .sg-neck__lab { font-size: 18px; } .sg-neck__lab.is-ours, .sg-neck__lab.is-on { font-size: 21px; } }

/* Ruler: S / M / L wrist bands */
.sg-ruler__band { position: absolute; bottom: 6px; height: 20px; display: grid; place-items: center; background: var(--oat); border-left: 1px solid #b08d57; border-right: 1px solid #b08d57; font-size: 10px; font-weight: 600; letter-spacing: 0.1em; color: var(--gold-ink); }
