:root { color-scheme: light; font-family: Tahoma, Arial, sans-serif; color: #252525; background: #fff; font-size: 16px; }
* { box-sizing: border-box; }
body { margin: 0; line-height: 1.85; }
a { color: #725614; text-underline-offset: 3px; }
a:hover { color: #382802; }
a:focus-visible, input:focus-visible, select:focus-visible, button:focus-visible { outline: 3px solid #8b681c; outline-offset: 3px; }
.wrap { width: min(100% - 32px, 1000px); margin-inline: auto; }
header { border-top: 4px solid #9a7828; border-bottom: 1px solid #ccc; background: #fafafa; }
.header-line { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-block: 13px 9px; }
.site-name { font-size: 1.35rem; font-weight: bold; color: #262626; text-decoration: none; }
.demo-label { font-size: .875rem; color: #555; }
nav { display: flex; flex-wrap: wrap; column-gap: 22px; row-gap: 2px; padding-block: 6px 12px; }
nav a { font-size: .9375rem; padding-block: 3px; }
main { padding-block: 20px 40px; }
h1 { font-size: 1.75rem; line-height: 1.5; margin: 0 0 8px; }
h2 { font-size: 1.3rem; line-height: 1.6; margin: 0 0 12px; }
p { margin: 7px 0 12px; }
.meta { display: flex; flex-wrap: wrap; gap: 8px 30px; padding-block: 8px; border-block: 1px solid #ddd; margin-block: 13px; }
.notice { border-inline-start: 3px solid #9a7828; background: #faf8f1; padding: 8px 12px; font-size: .9375rem; }
section { margin-top: 28px; scroll-margin-top: 16px; }
main > section + section { margin-top: 48px; }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
caption { text-align: right; font-size: .875rem; color: #555; padding-bottom: 7px; }
th, td { border: 1px solid #ccc; padding: 9px 13px; text-align: right; }
thead th { background: #f0f0ee; font-weight: bold; }
tbody th { font-weight: normal; }
tbody tr:nth-child(even) { background: #fafafa; }
.main-prices .featured-row { background: #faf4df; font-weight: bold; }
.featured-row th { font-weight: bold; }
.number { direction: ltr; unicode-bidi: isolate; white-space: nowrap; }
.small { font-size: .875rem; color: #535353; }
.karat-section { padding-top: 20px; border-top: 2px solid #bbb; }
.karat-section#gold-karat-21 { border-color: #9a7828; }
.karat-section table { font-size: .9375rem; }
.karat-section th, .karat-section td { padding: 7px 10px; }
.lead-price { font-size: 1.0625rem; }
.calculator { border: 1px solid #b9b19c; background: #fcfbf7; padding: 18px; }
.form-row { display: flex; flex-wrap: wrap; align-items: end; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 4px; }
input, select, button { font: inherit; border: 1px solid #888; border-radius: 0; background: white; min-height: 44px; padding: 5px 10px; }
input { width: 190px; max-width: 100%; }
select { min-width: 140px; }
button { background: #efefec; color: #252525; cursor: pointer; padding-inline: 24px; }
output { display: block; margin-top: 16px; font-weight: bold; font-size: 1.125rem; }
.error { color: #9b2020; margin-block: 4px 0; }
.error:empty { display: none; }
.formula { padding: 8px 12px; background: #f5f5f3; border: 1px solid #ddd; }
footer { border-top: 1px solid #ccc; background: #fafafa; padding-block: 16px; font-size: .875rem; }
.footer-line { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.skip-link { position: absolute; top: -100px; right: 16px; background: white; padding: 8px 12px; }
.skip-link:focus { top: 5px; }
@media (max-width: 650px) {
  .wrap { width: calc(100% - 24px); }
  .header-line { flex-wrap: wrap; gap: 0 12px; }
  .site-name { font-size: 1.2rem; }
  nav { column-gap: 18px; }
  h1 { font-size: 1.5rem; }
  th, td { padding: 8px; }
  .calculator { padding: 14px; }
  .field { flex: 1 1 130px; min-width: 0; }
  input, select { width: 100%; min-width: 0; }
  .meta { gap: 4px 18px; }
}
