/* AA Gems Tools — shared styles for Comparator, comparison pages, Photo Color Check, Natural vs Synthetic */
[hidden] { display: none !important; }
.gt-card { max-width: 860px; margin: 0 auto 26px; background: rgba(12,12,19,.9); border: 1px solid rgba(201,168,106,.28); border-radius: 16px; padding: 24px; color: #ece6d6; font-family: 'Jost', sans-serif; }
.gt-card h2.gt-h2 { font-family: 'Playfair Display', serif; font-size: 1.25rem; margin: 22px 0 10px; color: #f3e6bd; }
.gt-card h3 { font-family: 'Playfair Display', serif; font-size: 1rem; margin: 14px 0 8px; color: #f3e6bd; }
.gt-note { font-size: .85rem; opacity: .7; margin: 16px 0 0; line-height: 1.55; }

/* Buttons & fields */
.gt-btn { display: inline-block; padding: 11px 22px; border: 0; border-radius: 10px; background: linear-gradient(150deg,#e9cb70 0%,#c9a84c 55%,#9a7a2d 100%); color: #14121a; font: 500 .95rem 'Jost', sans-serif; letter-spacing: .02em; cursor: pointer; text-decoration: none; text-align: center; }
.gt-btn:hover { filter: brightness(1.08); }
.gt-btn-ghost { background: transparent; color: #e9cb70; border: 1px solid rgba(201,168,106,.55); }
.gt-btn-ghost:hover { background: rgba(201,168,106,.12); filter: none; }
.gt-btn[aria-pressed="true"] { background: linear-gradient(150deg,#e9cb70 0%,#c9a84c 55%,#9a7a2d 100%); color: #14121a; border-color: transparent; }
.gt-btn:focus-visible, .gt-select:focus-visible, input:focus-visible, .gt-check input:focus-visible { outline: 2px solid #e9cb70; outline-offset: 2px; }
.gt-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.gt-select-row { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.gt-field { flex: 1 1 200px; display: flex; flex-direction: column; gap: 6px; font-size: .88rem; color: #d8c48f; }
.gt-select { padding: 11px 12px; border-radius: 10px; border: 1px solid rgba(255,255,255,.28); background: rgba(255,255,255,.05); color: #ece6d6; font: 1rem 'Jost', sans-serif; width: 100%; }
.gt-select option { color: #14121a; }
.gt-swap { padding: 11px 16px; font-size: 1.1rem; }

/* Verdict */
.gt-verdict { padding: 12px 16px; border-radius: 10px; margin-bottom: 16px; font-size: 1rem; line-height: 1.5; border-left: 4px solid; }
.gt-verdict-good { background: rgba(47,170,95,.14); border-color: #2faa5f; }
.gt-verdict-mid { background: rgba(233,203,112,.14); border-color: #e9cb70; }
.gt-verdict-hard { background: rgba(226,85,85,.14); border-color: #e25555; }

/* Comparison table */
.chart-scroll { overflow-x: auto; }
.gt-table { width: 100%; border-collapse: collapse; font-size: .95rem; margin: 6px 0 4px; }
.gt-table th, .gt-table td { padding: 9px 12px; text-align: left; border-bottom: 1px solid rgba(255,255,255,.12); vertical-align: top; }
.gt-table thead th { font-family: 'Jost', sans-serif; font-weight: 500; color: #f3e6bd; border-bottom: 1px solid rgba(201,168,106,.5); }
.gt-table tbody th { font-weight: 500; color: #d8c48f; white-space: nowrap; }
.gt-table tr.gt-diff td { background: rgba(201,168,106,.08); }

/* Range bars */
.gt-bars { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin-top: 20px; }
.gt-bar-row { display: grid; grid-template-columns: 120px 1fr 100px; align-items: center; gap: 10px; margin: 6px 0; font-size: .85rem; }
.gt-bar-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gt-bar-track { position: relative; height: 12px; background: rgba(255,255,255,.08); border-radius: 6px; }
.gt-bar { position: absolute; top: 0; bottom: 0; border-radius: 6px; min-width: 4px; }
.gt-bar-a { background: #e9cb70; }
.gt-bar-b { background: #5fb0e8; }
.gt-bar-val { font-size: .8rem; opacity: .85; text-align: right; }
.gt-bar-axis { display: flex; justify-content: space-between; margin: 2px 130px 0 130px; font-size: .72rem; opacity: .55; }

/* Steps */
.gt-steps { list-style: none; margin: 0; padding: 0; }
.gt-step { margin: 0 0 10px; padding: 12px 14px; border: 1px solid rgba(255,255,255,.1); border-radius: 10px; background: rgba(255,255,255,.03); font-size: .96rem; line-height: 1.6; }
.gt-badge { display: inline-block; margin-right: 8px; padding: 2px 9px; border-radius: 20px; font-size: .72rem; letter-spacing: .05em; text-transform: uppercase; font-weight: 500; }
.gt-badge-decisive { background: rgba(47,170,95,.25); color: #6fe0a0; }
.gt-badge-helpful { background: rgba(233,203,112,.22); color: #e9cb70; }
.gt-badge-weak { background: rgba(226,85,85,.2); color: #ff9b8a; }
.gt-badge-info { background: rgba(255,255,255,.12); color: #ccc; }
.gt-badge-natural { background: rgba(47,170,95,.25); color: #6fe0a0; }
.gt-badge-synthetic { background: rgba(226,85,85,.2); color: #ff9b8a; }
.gt-badge-treated { background: rgba(95,176,232,.22); color: #8fcdf5; }

/* Content block shared with other tool pages */
.tool-content { max-width: 860px; margin: 40px auto 0; font-size: 1.02rem; line-height: 1.75; color: var(--text, #e8e4dc); }
.tool-content h2 { font-family: 'Playfair Display', serif; font-size: 1.5rem; margin: 32px 0 12px; }
.tool-content h3 { font-family: 'Playfair Display', serif; font-size: 1.15rem; margin: 22px 0 6px; }
.tool-content p { margin: 0 0 14px; }
.tool-content ul, .tool-content ol:not(.gt-steps) { margin: 0 0 14px 22px; }
.tool-content li { margin-bottom: 6px; }
.tool-content a { color: var(--accent, #c9a86a); }
.tool-content .gt-steps { margin: 0 0 14px; }
.tool-content .gt-table { margin: 14px 0 20px; }
.gt-pop { columns: 2; list-style: none; margin-left: 0 !important; padding: 0; }
.gt-shop a { display: inline-block; margin-right: 18px; }
.related-tools { max-width: 860px; margin: 36px auto 0; padding: 20px 24px; border: 1px solid rgba(255,255,255,.14); border-radius: 12px; }
.related-tools h2 { font-family: 'Playfair Display', serif; font-size: 1.2rem; margin: 0 0 12px; }
.related-tools a { display: inline-block; margin: 0 18px 6px 0; color: var(--accent, #c9a86a); text-decoration: none; border-bottom: 1px dotted; }

/* Photo Color Check */
.pc-drop { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 34px 16px; border: 2px dashed rgba(201,168,106,.5); border-radius: 14px; text-align: center; }
.pc-file { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.pc-modes { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.pc-stage { position: relative; width: 100%; background: #0b0b12; border-radius: 12px; overflow: hidden; cursor: crosshair; touch-action: manipulation; line-height: 0; }
.pc-stage canvas { display: block; width: 100%; height: auto; }
.pc-after { position: absolute; left: 0; top: 0; }
.pc-mark { position: absolute; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 2px #14121a, 0 0 8px rgba(0,0,0,.6); pointer-events: none; }
.pc-mark-ref { border-color: #6fe0a0; }
.pc-mark-stone { border-color: #e9cb70; }
.pc-split { width: 100%; margin: 12px 0 2px; accent-color: #c9a84c; }
.pc-split-labels { display: flex; justify-content: space-between; font-size: .8rem; opacity: .7; margin-bottom: 14px; }
.pc-readouts { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin-top: 14px; }
.pc-panel { padding: 14px; border: 1px solid rgba(255,255,255,.12); border-radius: 12px; background: rgba(255,255,255,.03); font-size: .93rem; line-height: 1.6; }
.pc-panel h3 { margin-top: 0; }
.pc-swatches { display: flex; gap: 10px; margin: 8px 0; }
.pc-sw { flex: 1; height: 44px; border-radius: 8px; border: 1px solid rgba(255,255,255,.25); }
.pc-sw-label { font-size: .75rem; opacity: .7; text-align: center; }
.pc-status { margin: 10px 0 0; font-size: .92rem; color: #e9cb70; min-height: 1.4em; }

/* Natural vs Synthetic checklist */
.gt-check-list { list-style: none; margin: 0 0 16px; padding: 0; }
.gt-check { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; margin-bottom: 8px; border: 1px solid rgba(255,255,255,.1); border-radius: 10px; font-size: .95rem; line-height: 1.5; cursor: pointer; }
.gt-check input { margin-top: 4px; accent-color: #c9a84c; flex: none; width: 18px; height: 18px; }
.gt-check:hover { background: rgba(201,168,106,.07); }

@media (max-width: 600px) {
  .gt-card { padding: 16px 14px; }
  .gt-bar-row { grid-template-columns: 90px 1fr 80px; }
  .gt-bar-axis { margin: 2px 90px 0 100px; }
  .gt-pop { columns: 1; }
  .gt-swap { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
