/* Public gold calculator. Kept separate from the older Gold Hub styles. */
.gold-tool {
    padding: 32px 0 88px !important;
    background: var(--site-ivory, #f7f6f2);
    color: var(--site-text, #25384c);
}

.gold-tool__breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
    margin-bottom: 24px;
    color: var(--site-muted, #536276);
    font-size: 13px;
}

.gold-tool__breadcrumb a {
    color: var(--site-blue, #244a80);
    text-decoration: none;
}
.gold-tool__breadcrumb a:hover {
    text-decoration: underline;
}

.gold-tool__intro {
    margin-bottom: 28px;
}
.gold-tool__intro p {
    margin: 0 0 6px;
    color: var(--site-gold-text, #8b6828);
    font-size: 14px;
    font-weight: 800;
}
.gold-tool__intro h1 {
    margin: 0 0 8px;
    color: var(--site-ink, #12243a);
    font-size: clamp(30px, 3vw, 42px);
    font-weight: 800;
    line-height: 1.2;
}
.gold-tool__intro > span {
    color: var(--site-muted, #536276);
    font-size: 16px;
    line-height: 1.65;
}

.gold-tool__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    align-items: start;
    gap: 24px;
}
.gold-tool__main {
    min-width: 0;
}
.gold-tool__calculator,
.gold-tool__conversion,
.gold-tool__guide-card,
.gold-tool__links {
    border: 1px solid var(--site-line, #dce2e8);
    border-radius: var(--site-radius-lg, 12px);
    background: #fff;
}

.gold-tool__panel-heading,
.gold-tool__section-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 20px;
}
.gold-tool__panel-heading {
    padding: 20px 24px;
    border-bottom: 1px solid var(--site-line, #dce2e8);
}
.gold-tool__panel-heading h2,
.gold-tool__section-heading h2 {
    margin: 0;
    color: var(--site-ink, #12243a);
    font-size: 21px;
    font-weight: 800;
}
.gold-tool__price-status,
.gold-tool__section-heading > span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--site-muted, #536276);
    font-size: 12px;
    font-weight: 700;
}
.gold-tool__status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--site-gold, #b58a3b);
}
.gold-tool__price-status[data-state="updated"] .gold-tool__status-dot {
    background: var(--site-success, #276749);
}
.gold-tool__form-area {
    padding: 24px;
}
.gold-tool__weight-block label,
.gold-tool__karat-block legend,
.gold-tool__conversion > label {
    display: block;
    width: 100%;
    margin-bottom: 10px;
    color: var(--site-ink, #12243a);
    font-size: 15px;
    font-weight: 800;
}
.gold-tool__weight-block label span {
    color: var(--site-muted, #536276);
    font-weight: 500;
}
.gold-tool__weight-input {
    display: flex;
    align-items: center;
    width: min(100%, 420px);
    min-height: 54px;
    border: 1px solid var(--site-line-strong, #b9c5d1);
    border-radius: var(--site-radius, 10px);
    background: #fff;
    overflow: hidden;
}
.gold-tool__weight-input:focus-within {
    border-color: var(--site-blue, #244a80);
    box-shadow: 0 0 0 3px var(--site-blue-soft, #edf2f8);
}
.gold-tool__weight-input input {
    flex: 1;
    min-width: 0;
    height: 52px;
    padding: 0 16px;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--site-ink, #12243a);
    font-size: 24px;
    font-weight: 800;
    text-align: start;
}
.gold-tool__weight-input > span {
    align-self: stretch;
    display: inline-flex;
    align-items: center;
    padding: 0 17px;
    border-inline-start: 1px solid var(--site-line, #dce2e8);
    background: var(--site-blue-soft, #edf2f8);
    color: var(--site-muted, #536276);
    font-size: 14px;
}
.gold-tool__quick-weights,
.gold-tool__quick-currencies {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}
.gold-tool__weight-choice,
.gold-tool__currency-choice {
    min-height: 36px;
    padding: 6px 12px;
    border: 1px solid var(--site-line-strong, #b9c5d1);
    border-radius: var(--site-radius-sm, 8px);
    background: #fff;
    color: var(--site-text, #25384c);
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    transition:
        border-color 160ms ease,
        background-color 160ms ease;
}
.gold-tool__weight-choice {
    min-width: 42px;
}
.gold-tool__weight-choice:hover,
.gold-tool__currency-choice:hover {
    border-color: var(--site-blue, #244a80);
}
.gold-tool__weight-choice[aria-pressed="true"],
.gold-tool__currency-choice[aria-pressed="true"] {
    border-color: var(--site-blue, #244a80);
    background: var(--site-blue-soft, #edf2f8);
    color: var(--site-blue, #244a80);
}
.gold-tool__weight-choice span {
    font-weight: 500;
}

.gold-tool__karat-block {
    min-width: 0;
    margin: 25px 0 0;
    padding: 0;
    border: 0;
}
.gold-tool__karats {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 9px;
}
.gold-tool__karat-choice {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-width: 0;
    min-height: 96px;
    padding: 10px 5px;
    border: 1px solid var(--site-line-strong, #b9c5d1);
    border-radius: var(--site-radius, 10px);
    background: #fff;
    color: var(--site-text, #25384c);
    cursor: pointer;
    text-align: center;
    transition:
        border-color 160ms ease,
        background-color 160ms ease;
}
.gold-tool__karat-choice:hover {
    border-color: var(--site-gold, #b58a3b);
}
.gold-tool__karat-choice[aria-pressed="true"] {
    border: 2px solid var(--site-gold, #b58a3b);
    background: #fbf7ed;
}
.gold-tool__karat-choice strong {
    color: var(--site-ink, #12243a);
    font-size: 15px;
    line-height: 1.2;
}
.gold-tool__karat-choice strong span {
    font-size: 11px;
    font-weight: 600;
}
.gold-tool__karat-choice small {
    color: var(--site-muted, #536276);
    font-size: 11px;
}
.gold-tool__karat-price {
    color: var(--site-text, #25384c);
    font-size: 10px;
    font-weight: 700;
    white-space: nowrap;
}

.gold-tool__result {
    margin-top: 24px;
    padding: 20px 22px;
    border-radius: var(--site-radius, 10px);
    background: var(--site-blue, #244a80);
    color: #fff;
}
.gold-tool__result-label {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 14px;
    font-weight: 700;
}
.gold-tool__result-label span:last-child {
    color: #e6d4ac;
}
.gold-tool__result-number {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin: 8px 0 2px;
}
.gold-tool__result-number output {
    color: #fff;
    font-size: clamp(30px, 3vw, 42px);
    font-weight: 800;
    line-height: 1.2;
}
.gold-tool__result-number > span {
    color: #e6d4ac;
    font-size: 18px;
    font-weight: 700;
}
.gold-tool__result p {
    margin: 0;
    color: #e0e9f3;
    font-size: 12px;
}

.gold-tool__conversion {
    margin-top: 20px;
    padding: 24px !important;
}
.gold-tool__section-heading {
    margin-bottom: 22px;
}
.gold-tool__conversion > label {
    margin-bottom: 8px;
}
.gold-tool__conversion select {
    width: min(100%, 440px);
    min-height: 46px;
    padding: 8px 12px;
    border: 1px solid var(--site-line-strong, #b9c5d1);
    border-radius: var(--site-radius-sm, 8px);
    background: #fff;
    color: var(--site-ink, #12243a);
    font-size: 15px;
}
.gold-tool__conversion h3 {
    margin: 24px 0 14px;
    color: var(--site-ink, #12243a);
    font-size: 16px;
    font-weight: 800;
}
.gold-tool__currencies-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
}
.gold-tool__currency-result {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
    padding: 12px;
    border: 1px solid var(--site-line, #dce2e8);
    border-radius: var(--site-radius-sm, 8px);
    background: #fff;
    color: var(--site-text, #25384c);
    cursor: pointer;
    text-align: start;
}
.gold-tool__currency-result[aria-pressed="true"] {
    border-color: var(--site-gold, #b58a3b);
    background: #fbf7ed;
}
.gold-tool__currency-result span {
    color: var(--site-muted, #536276);
    font-size: 12px;
}
.gold-tool__currency-result strong {
    color: var(--site-ink, #12243a);
    font-size: 16px;
}

.gold-tool__guide-card {
    padding: 22px;
}
.gold-tool__guide-card h2 {
    margin: 0 0 14px;
    color: var(--site-ink, #12243a);
    font-size: 18px;
    font-weight: 800;
}
.gold-tool__guide-card ol {
    margin: 0;
    padding-inline-start: 20px;
    color: var(--site-text, #25384c);
    font-size: 14px;
    line-height: 1.7;
}
.gold-tool__guide-card li + li {
    margin-top: 8px;
}
.gold-tool__guide-card p {
    margin: 18px 0;
    padding-top: 16px;
    border-top: 1px solid var(--site-line, #dce2e8);
    color: var(--site-muted, #536276);
    font-size: 13px;
    line-height: 1.65;
}
.gold-tool__update {
    color: var(--site-muted, #536276);
    font-size: 12px;
}
.gold-tool__links {
    display: grid;
    margin-top: 14px;
    overflow: hidden;
}
.gold-tool__links a {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 18px;
    color: var(--site-blue, #244a80);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}
.gold-tool__links a + a {
    border-top: 1px solid var(--site-line, #dce2e8);
}
.gold-tool__links a:hover {
    background: var(--site-blue-soft, #edf2f8);
}
[dir="ltr"] .gold-tool__links i {
    transform: rotate(180deg);
}

@media (max-width: 1050px) {
    .gold-tool__layout {
        grid-template-columns: minmax(0, 1fr);
    }
    .gold-tool__guide {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(220px, 0.6fr);
        gap: 14px;
    }
    .gold-tool__links {
        align-self: start;
        margin: 0;
    }
}
@media (max-width: 700px) {
    .gold-tool {
        padding: 24px 0 64px !important;
    }
    .gold-tool__breadcrumb {
        margin-bottom: 14px;
    }
    .gold-tool__intro {
        margin-bottom: 16px;
    }
    .gold-tool__intro h1 {
        font-size: 30px;
    }
    .gold-tool__intro > span {
        font-size: 14px;
    }
    .gold-tool__panel-heading {
        padding: 16px;
    }
    .gold-tool__form-area {
        padding: 16px;
    }
    .gold-tool__karats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .gold-tool__karat-block {
        margin-top: 17px;
    }
    .gold-tool__karat-choice {
        min-height: 72px;
    }
    .gold-tool__karat-price {
        font-size: 9px;
    }
    .gold-tool__result {
        margin-top: 14px;
        padding: 16px;
    }
    .gold-tool__conversion {
        padding: 18px !important;
    }
    .gold-tool__currencies-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .gold-tool__guide {
        grid-template-columns: minmax(0, 1fr);
    }
}
@media (max-width: 390px) {
    .gold-tool__weight-choice {
        padding-inline: 8px;
    }
}
@media (prefers-reduced-motion: reduce) {
    .gold-tool__weight-choice,
    .gold-tool__currency-choice,
    .gold-tool__karat-choice {
        transition: none;
    }
}
