/* ========================================================================== */
/*  GoldPrice.is — site styles                                                */
/*  Fonts → tokens/base → shared layout → components → home → responsive     */
/* ========================================================================== */

/* 1. Local fonts ----------------------------------------------------------- */
@font-face {
    font-family: 'Audiowide';
    src: url('/fonts/Audiowide/Audiowide-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Balthazar';
    src: url('/fonts/Balthazar/Balthazar-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Cinzel';
    src: url('/fonts/Cinzel/Cinzel-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Orbitron';
    src: url('/fonts/Orbitron/Orbitron-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Rokkitt';
    src: url('/fonts/Rokkitt/Rokkitt-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Rokkitt';
    src: url('/fonts/Rokkitt/Rokkitt-Italic-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Stint Ultra Expanded';
    src: url('/fonts/Stint_Ultra_Expanded/StintUltraExpanded-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}


/* 2. Design tokens and base ----------------------------------------------- */
:root {
    color-scheme: light;

    --gp-bg: #f7f7f5;
    --gp-surface: #fff;
    --gp-surface-soft: #f1f2ef;
    --gp-ink: #1d252b;
    --gp-muted: #737d82;
    --gp-line: #e5e7e2;
    --gp-gold: #b68b36;
    --gp-gold-dark: #89651d;
    --gp-gold-soft: #f6efde;
    --gp-green: #187c58;
    --gp-red: #bb5145;

    --gp-radius-sm: 9px;
    --gp-radius-md: 14px;
    --gp-radius-lg: 18px;
    --gp-shadow: 0 12px 35px rgba(27, 35, 36, .045);
    --gp-content-width: 1160px;
    --gp-transition: 180ms ease;

    --gp-font: 'Rokkitt', Georgia, serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body.gp-site {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    background:
        radial-gradient(ellipse at 84% 0%, rgba(213, 190, 132, .10), transparent 34rem),
        var(--gp-bg);
    color: var(--gp-ink);
    font-family: var(--gp-font);
    font-size: 18px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body.gp-site a {
    color: inherit;
}

body.gp-site button,
body.gp-site input,
body.gp-site select,
body.gp-site textarea {
    font: inherit;
}

body.gp-site button,
body.gp-site select {
    cursor: pointer;
}

body.gp-site img,
body.gp-site svg {
    max-width: 100%;
}

.gp-container,
.gp-main-inner {
    width: min(var(--gp-content-width), calc(100% - 40px));
    margin-inline: auto;
}


/* 3. Header, logo and navigation ------------------------------------------ */
.gp-header {
    position: relative;
    z-index: 50;
    border-bottom: 1px solid rgba(218, 220, 214, .85);
    background: rgba(255, 255, 255, .88);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
}

.gp-header-inner {
    position: relative;
    display: flex;
    min-height: 76px;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.gp-logo {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: baseline;
    gap: 0;
    color: var(--gp-ink);
    font-family: var(--gp-font);
    font-size: 36px;
    font-weight: 700;
    letter-spacing: -.55px;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
}

.gp-logo:hover {
    text-decoration: none;
}

.gp-logo-g,
.gp-logo-domain {
    color: var(--gp-gold-dark);
}

.gp-logo-word {
    color: #263238;
}

.gp-logo-domain {
    margin-left: 3px;
    font-size: .86em;
    font-weight: 600;
    letter-spacing: -.35px;
}

.gp-nav-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 25px;
}

.gp-nav-link {
    color: #586368;
    font-size: 17px;
    font-weight: 650;
    text-decoration: none;
    transition: color var(--gp-transition);
}

.gp-nav-link:hover,
.gp-nav-link.active {
    color: var(--gp-gold-dark);
    text-decoration: none;
}

.gp-locale-switcher {
    position: relative;
    z-index: 60;
}

.gp-locale-button {
    display: inline-flex;
    min-height: 39px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 0 12px;
    border: 1px solid #e0e2dc;
    border-radius: 10px;
    background: #fff;
    color: var(--gp-ink);
    font-size: 14px;
    font-weight: 700;
    transition: border-color var(--gp-transition), background var(--gp-transition);
}

.gp-locale-button:hover,
.gp-locale-button[aria-expanded="true"] {
    border-color: #d8c28f;
    background: #fffdf8;
}

.gp-locale-arrow {
    width: 7px;
    height: 7px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
    transition: transform var(--gp-transition);
}

.gp-locale-button[aria-expanded="true"] .gp-locale-arrow {
    transform: translateY(2px) rotate(225deg);
}

.gp-locale-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    display: none;
    min-width: 170px;
    max-height: min(65vh, 360px);
    overflow-y: auto;
    margin: 0;
    padding: 5px;
    border: 1px solid var(--gp-line);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 14px 38px rgba(28, 34, 35, .12);
    list-style: none;
}

.gp-locale-menu.is-open {
    display: block;
}

.gp-locale-menu li {
    margin: 0;
    padding: 0;
}

.gp-locale-menu a {
    display: block;
    padding: 9px 11px;
    border-radius: 7px;
    color: #515d62;
    font-size: 15px;
    text-decoration: none;
}

.gp-locale-menu a:hover,
.gp-locale-menu a:focus-visible {
    outline: none;
    background: #f7f3e8;
    color: var(--gp-gold-dark);
    text-decoration: none;
}

.gp-burger {
    display: none;
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    border: 1px solid var(--gp-line);
    border-radius: 11px;
    background: #fff;
    color: var(--gp-ink);
}

.gp-burger span {
    display: block;
    width: 17px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition: transform var(--gp-transition), opacity var(--gp-transition);
}

.gp-burger.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.gp-burger.is-open span:nth-child(2) {
    opacity: 0;
}

.gp-burger.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}


/* 4. Shared page layout and reusable components --------------------------- */
.gp-main {
    display: block;
    width: 100%;
    flex: 1 0 auto;
}

.gp-main-inner {
    padding: 25px 0 62px;
}

.gp-page-heading {
    margin: 0 0 24px;
}

.gp-page-eyebrow {
    margin-bottom: 7px;
    color: var(--gp-gold-dark);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1.25px;
    text-transform: uppercase;
}

.gp-page-title {
    margin: 0;
    color: var(--gp-ink);
    font-size: clamp(32px, 4vw, 46px);
    font-weight: 760;
    line-height: 1.15;
    letter-spacing: -1.4px;
}

.gp-page-description {
    max-width: 760px;
    margin: 12px 0 0;
    color: var(--gp-muted);
    font-size: 17px;
    line-height: 1.8;
}

.gp-card {
    border: 1px solid var(--gp-line);
    border-radius: var(--gp-radius-lg);
    background: var(--gp-surface);
    box-shadow: var(--gp-shadow);
}

.gp-button {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 16px;
    border: 1px solid transparent;
    border-radius: 10px;
    background: var(--gp-gold-dark);
    color: #fff !important;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    transition: background var(--gp-transition), transform var(--gp-transition);
}

.gp-button:hover {
    transform: translateY(-1px);
    background: #765416;
    text-decoration: none;
}

.gp-button-secondary {
    border-color: var(--gp-line);
    background: #fff;
    color: var(--gp-ink) !important;
}

.gp-button-secondary:hover {
    background: var(--gp-surface-soft);
}

.gp-form-control {
    width: 100%;
    min-height: 42px;
    padding: 9px 12px;
    border: 1px solid #dfe2dc;
    border-radius: 10px;
    outline: none;
    background: #fff;
    color: var(--gp-ink);
    font-size: 16px;
}

.gp-form-control:focus {
    border-color: #c4a45e;
    box-shadow: 0 0 0 3px rgba(182, 139, 54, .11);
}

.gp-table-wrap {
    width: 100%;
    overflow-x: auto;
    border: 1px solid var(--gp-line);
    border-radius: var(--gp-radius-md);
    background: var(--gp-surface);
}

.gp-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
    text-align: left;
}

.gp-table th,
.gp-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #edf0ea;
    white-space: nowrap;
}

.gp-table th {
    background: #fafaf7;
    color: #687378;
    font-size: 13px;
    font-weight: 750;
    letter-spacing: .4px;
    text-transform: uppercase;
}

.gp-table tbody tr:last-child td {
    border-bottom: 0;
}

.gp-table tbody tr:hover {
    background: #fdfbf5;
}

.gp-alert {
    padding: 13px 15px;
    border: 1px solid var(--gp-line);
    border-radius: 11px;
    background: #fff;
    color: #5e696d;
    font-size: 15px;
}

.gp-alert-warning {
    border-color: #ead9b1;
    background: #fffaf0;
    color: #765b25;
}

.gp-prose {
    color: #566268;
    font-size: 17px;
    line-height: 1.8;
}

.gp-prose h2,
.gp-prose h3,
.gp-prose h4 {
    margin: 1.8em 0 .55em;
    color: var(--gp-ink);
    line-height: 1.3;
    letter-spacing: -.45px;
}

.gp-prose p,
.gp-prose ul,
.gp-prose ol {
    margin: 0 0 1em;
}

.gp-prose a {
    color: var(--gp-gold-dark);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.gp-prose a:hover {
    color: #6f5018;
}

.gp-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    color: var(--gp-muted);
    font-size: 14px;
}

.gp-breadcrumbs a {
    text-decoration: none;
}

.gp-breadcrumbs a:hover {
    color: var(--gp-gold-dark);
}


/* 5. Footer --------------------------------------------------------------- */
.gp-footer {
    border-top: 1px solid var(--gp-line);
    background: rgba(255, 255, 255, .76);
}

.gp-footer-inner {
    display: flex;
    min-height: 86px;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-top: 15px;
    padding-bottom: 15px;
}

.gp-footer-brand {
    color: var(--gp-ink);
    font-size: 16px;
    font-weight: 780;
    letter-spacing: -.25px;
}

.gp-footer-note {
    margin-top: 3px;
    color: var(--gp-muted);
    font-size: 13px;
}

.gp-footer-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px;
    color: #687378;
    font-size: 14px;
}

.gp-footer-links a {
    text-decoration: none;
    transition: color var(--gp-transition);
}

.gp-footer-links a:hover {
    color: var(--gp-gold-dark);
    text-decoration: underline;
    text-underline-offset: 3px;
}


/* 6. Home page ------------------------------------------------------------ */
.gp-home {
    color: var(--gp-ink);
}

.gp-home a {
    color: inherit;
    text-decoration: none;
}

.gp-home .gp-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(275px, .6fr);
    align-items: center;
    gap: 38px;
    padding: 22px 0 38px;
}

.gp-home .gp-eyebrow,
.gp-home .gp-kicker {
    color: var(--gp-gold-dark);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1.25px;
    text-transform: uppercase;
}

.gp-home .gp-eyebrow {
    display: flex;
    align-items: center;
    gap: 9px;
}

.gp-home .gp-eyebrow::before {
    width: 22px;
    height: 2px;
    background: var(--gp-gold);
    content: "";
}

.gp-home h1 {
    max-width: 650px;
    margin: 14px 0 15px;
    font-size: clamp(38px, 4.5vw, 54px);
    line-height: 1.1;
    font-weight: 760;
    letter-spacing: -1.4px;
}

.gp-home .gp-hero-copy {
    max-width: 630px;
    margin: 0;
    color: #687378;
    font-size: 17px;
    line-height: 1.8;
}

.gp-home .gp-hero-points {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    margin-top: 22px;
    color: #59646a;
    font-size: 15px;
    font-weight: 600;
}

.gp-home .gp-hero-point {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.gp-home .gp-check {
    display: inline-grid;
    width: 18px;
    height: 18px;
    place-items: center;
    border-radius: 50%;
    background: #e4eee6;
    color: #34734c;
    font-size: 12px;
}

.gp-home .gp-hero-aside {
    position: relative;
    overflow: hidden;
    padding: 25px;
    border: 1px solid #eadfc4;
    border-radius: 22px;
    background: linear-gradient(145deg, #fffefa, #f7f0df);
    box-shadow: var(--gp-shadow);
}

.gp-home .gp-aside-title {
    max-width: 270px;
    margin: 9px 0 7px;
    font-size: 25px;
    line-height: 1.3;
    letter-spacing: -.4px;
}

.gp-home .gp-aside-copy {
    margin: 0;
    color: #777567;
    font-size: 16px;
    line-height: 1.7;
}

.gp-home .gp-aside-stats {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 21px;
}

.gp-home .gp-aside-stat {
    padding: 12px;
    border: 1px solid rgba(226, 214, 185, .9);
    border-radius: 12px;
    background: rgba(255, 255, 255, .64);
}

.gp-home .gp-aside-stat strong {
    display: block;
    font-size: 24px;
    line-height: 1.3;
    letter-spacing: -.4px;
}

.gp-home .gp-aside-stat span {
    color: #7c7b70;
    font-size: 13px;
}

.gp-home .gp-section {
    margin-top: 24px;
}

.gp-home .gp-section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 17px;
}

.gp-home .gp-section-heading h2 {
    margin: 4px 0 0;
    font-size: 27px;
    line-height: 1.3;
    letter-spacing: -.5px;
}

.gp-home .gp-section-heading p {
    max-width: 600px;
    margin: 6px 0 0;
    color: var(--gp-muted);
    font-size: 16px;
}

.gp-home .gp-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 15px;
    padding: 13px 15px;
    border: 1px solid var(--gp-line);
    border-radius: 14px;
    background: rgba(255, 255, 255, .78);
}

.gp-home .gp-status {
    min-width: 0;
    color: #657075;
    font-size: 14px;
}

.gp-home .gp-status-line {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 2px;
    color: var(--gp-ink);
    font-size: 14px;
    font-weight: 700;
}

.gp-home .gp-status-dot {
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    border-radius: 50%;
    background: var(--gp-green);
}

.gp-home .gp-status-dot.warning {
    background: #c68b28;
}

.gp-home .gp-status-dot.error {
    background: var(--gp-red);
}

.gp-home .gp-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.gp-home .gp-field {
    display: flex;
    align-items: center;
    gap: 8px;
}

.gp-home .gp-field label {
    color: #737d82;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
}

.gp-home .gp-select,
.gp-home .gp-input {
    min-height: 39px;
    max-width: 190px;
    padding: 0 11px;
    border: 1px solid #dfe2dc;
    border-radius: 9px;
    outline: none;
    background: #fff;
    color: var(--gp-ink);
    font-size: 15px;
    font-weight: 600;
}

.gp-home .gp-select:focus,
.gp-home .gp-input:focus {
    border-color: #c4a45e;
    box-shadow: 0 0 0 3px rgba(182, 139, 54, .11);
}

.gp-home .gp-metal-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 13px;
}

.gp-home .gp-metal-card {
    min-width: 0;
    padding: 19px 16px 16px;
    border: 1px solid var(--gp-line);
    border-radius: 16px;
    background: var(--gp-surface);
    box-shadow: 0 12px 35px rgba(27, 35, 36, .035);
    transition: transform var(--gp-transition), box-shadow var(--gp-transition);
}

.gp-home .gp-metal-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(27, 35, 36, .07);
}

.gp-home .gp-metal-card.gold {
    border-color: #e9d9b3;
    background: linear-gradient(150deg, #fffefa, #fff);
}

.gp-home .gp-metal-card-head {
    display: flex;
    align-items: center;
    gap: 9px;
}

.gp-home .gp-symbol {
    display: grid;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    place-items: center;
    border-radius: 11px;
    background: #f0f1ee;
    color: #667075;
    font-size: 15px;
    font-weight: 800;
}

.gp-home .gold .gp-symbol {
    background: var(--gp-gold-soft);
    color: var(--gp-gold-dark);
}

.gp-home .gp-metal-name {
    min-width: 0;
}

.gp-home .gp-metal-name h3 {
    margin: 0;
    font-size: 17px;
    font-weight: 750;
    letter-spacing: -.2px;
}

.gp-home .gp-metal-name p {
    margin: 1px 0 0;
    color: var(--gp-muted);
    font-size: 13px;
}

.gp-home .gp-code {
    margin-left: auto;
    align-self: flex-start;
    padding: 3px 6px;
    border-radius: 5px;
    background: #f3f4f1;
    color: #70797c;
    font-size: 12px;
    font-weight: 750;
}

.gp-home .gp-price-block {
    margin-top: 24px;
}

.gp-home .gp-price-caption {
    color: #81898b;
    font-size: 13px;
}

.gp-home .gp-price-value {
    margin-top: 2px;
    overflow-wrap: anywhere;
    font-size: clamp(24px, 2.2vw, 32px);
    font-weight: 760;
    line-height: 1.4;
    letter-spacing: -.8px;
    font-variant-numeric: tabular-nums;
}

.gp-home .gold .gp-price-value {
    color: #987126;
}

.gp-home .gp-price-unit {
    margin-top: 2px;
    color: #828b8e;
    font-size: 13px;
}

.gp-home .gp-card-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 7px;
    margin-top: 17px;
    padding-top: 12px;
    border-top: 1px solid #eff0ed;
    color: #6f7a7d;
    font-size: 13px;
}

.gp-home .gp-badge {
    padding: 3px 6px;
    border-radius: 5px;
    background: #f0f5f1;
    color: #347650;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .3px;
    text-transform: uppercase;
    white-space: nowrap;
}

.gp-home .gp-converter {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, .8fr);
    align-items: center;
    gap: 25px;
    padding: 23px;
    border: 1px solid var(--gp-line);
    border-radius: 17px;
    background: var(--gp-surface);
    box-shadow: 0 12px 35px rgba(27, 35, 36, .035);
}

.gp-home .gp-converter-copy h3 {
    margin: 0;
    font-size: 21px;
    letter-spacing: -.3px;
}

.gp-home .gp-converter-copy p {
    max-width: 500px;
    margin: 7px 0 0;
    color: var(--gp-muted);
    font-size: 15px;
    line-height: 1.75;
}

.gp-home .gp-converter-fields {
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: 9px;
}

.gp-home .gp-converter-fields .gp-input {
    width: 100%;
    max-width: none;
    min-width: 0;
    min-height: 42px;
    font-size: 16px;
}

.gp-home .gp-result {
    grid-column: 1 / -1;
    padding: 14px;
    border-radius: 11px;
    background: #f7f2e5;
}

.gp-home .gp-result-label {
    color: #817455;
    font-size: 13px;
}

.gp-home .gp-result-value {
    margin-top: 2px;
    color: #88641e;
    font-size: 30px;
    font-weight: 760;
    line-height: 1.4;
    letter-spacing: -.4px;
    overflow-wrap: anywhere;
    font-variant-numeric: tabular-nums;
}

.gp-home .gp-result-detail {
    color: #857d69;
    font-size: 13px;
}

.gp-home .gp-info-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 13px;
}

.gp-home .gp-info-card {
    padding: 20px;
    border: 1px solid var(--gp-line);
    border-radius: 15px;
    background: rgba(255, 255, 255, .74);
}

.gp-home .gp-info-number {
    display: inline-grid;
    width: 31px;
    height: 31px;
    place-items: center;
    margin-bottom: 11px;
    border-radius: 9px;
    background: #f4eddc;
    color: #946d24;
    font-size: 13px;
    font-weight: 800;
}

.gp-home .gp-info-card h3 {
    margin: 0;
    font-size: 17px;
}

.gp-home .gp-info-card p {
    margin: 6px 0 0;
    color: var(--gp-muted);
    font-size: 15px;
    line-height: 1.8;
}

.gp-home .gp-methodology {
    padding: 24px;
    border: 1px solid var(--gp-line);
    border-radius: 17px;
    background: var(--gp-surface);
}

.gp-home .gp-methodology h2 {
    margin: 0 0 9px;
    font-size: 23px;
    letter-spacing: -.3px;
}

.gp-home .gp-methodology p {
    max-width: 930px;
    margin: 0;
    color: #6c777b;
    font-size: 16px;
    line-height: 1.75;
}

.gp-home .gp-methodology p + p {
    margin-top: 9px;
}

.gp-home .gp-empty {
    grid-column: 1 / -1;
    padding: 30px;
    border: 1px solid #eadfc4;
    border-radius: 15px;
    background: #fffdf7;
    color: #715c30;
    text-align: center;
}


/* 7. Responsive layout ---------------------------------------------------- */
@media (max-width: 980px) {
    .gp-home .gp-hero {
        grid-template-columns: minmax(0, 1fr) minmax(245px, .75fr);
        gap: 24px;
    }

    .gp-home .gp-metal-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .gp-home .gp-converter {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .gp-container,
    .gp-main-inner {
        width: calc(100% - 28px);
    }

    .gp-header-inner {
        min-height: 68px;
        gap: 12px;
    }

    .gp-logo {
        font-size: 23px;
    }

    .gp-burger {
        display: inline-flex;
        margin-left: auto;
    }

    .gp-nav-links {
        position: absolute;
        top: calc(100% + 1px);
        right: -14px;
        left: -14px;
        display: none;
        align-items: stretch;
        flex-direction: column;
        gap: 0;
        padding: 9px 14px 14px;
        border-bottom: 1px solid var(--gp-line);
        background: #fff;
        box-shadow: 0 15px 25px rgba(27, 35, 36, .08);
    }

    .gp-nav-links.is-open {
        display: flex;
    }

    .gp-nav-link {
        display: block;
        padding: 11px 6px;
        border-bottom: 1px solid #f0f1ed;
        font-size: 14px;
    }

    .gp-locale-switcher {
        padding-top: 11px;
    }

    .gp-locale-button {
        width: 100%;
        justify-content: space-between;
    }

    .gp-locale-menu {
        position: static;
        width: 100%;
        max-height: 220px;
        margin-top: 7px;
        box-shadow: none;
    }

    .gp-main-inner {
        padding-top: 17px;
        padding-bottom: 43px;
    }

    .gp-footer-inner {
        align-items: flex-start;
        flex-direction: column;
        justify-content: center;
        gap: 10px;
        padding-top: 19px;
        padding-bottom: 19px;
    }

    .gp-footer-links {
        gap: 12px;
    }

    .gp-home .gp-hero {
        grid-template-columns: 1fr;
        gap: 23px;
        padding: 8px 0 29px;
    }

    .gp-home h1 {
        font-size: clamp(34px, 7.2vw, 40px);
        letter-spacing: -.9px;
    }

    .gp-home .gp-hero-copy {
        font-size: 16px;
    }

    .gp-home .gp-hero-aside {
        padding: 20px;
    }

    .gp-home .gp-section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
    }

    .gp-home .gp-section-heading h2 {
        font-size: 24px;
    }

    .gp-home .gp-toolbar {
        align-items: stretch;
        flex-direction: column;
        gap: 13px;
    }

    .gp-home .gp-controls {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 9px;
    }

    .gp-home .gp-field {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
    }

    .gp-home .gp-select {
        width: 100%;
        max-width: none;
    }

    .gp-home .gp-metal-grid {
        gap: 9px;
    }

    .gp-home .gp-metal-card {
        padding: 14px 11px 12px;
        border-radius: 14px;
    }

    .gp-home .gp-metal-card-head {
        flex-wrap: wrap;
        gap: 7px;
    }

    .gp-home .gp-symbol {
        width: 33px;
        height: 33px;
        flex-basis: 33px;
        border-radius: 9px;
        font-size: 12px;
    }

    .gp-home .gp-metal-name h3 {
        font-size: 14px;
    }

    .gp-home .gp-metal-name p {
        font-size: 12px;
    }

    .gp-home .gp-code {
        margin-left: 0;
        font-size: 12px;
    }

    .gp-home .gp-price-block {
        margin-top: 19px;
    }

    .gp-home .gp-price-value {
        font-size: clamp(20px, 5.2vw, 27px);
        letter-spacing: -.6px;
    }

    .gp-home .gp-card-bottom {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
    }

    .gp-home .gp-converter {
        padding: 17px;
        gap: 17px;
    }

    .gp-home .gp-result-value {
        font-size: 24px;
    }

    .gp-home .gp-info-grid {
        grid-template-columns: 1fr;
        gap: 9px;
    }

    .gp-home .gp-info-card {
        padding: 17px;
    }

    .gp-home .gp-methodology {
        padding: 19px;
    }
}

@media (max-width: 420px) {
    .gp-logo {
        font-size: 21px;
    }

    .gp-home .gp-metal-card {
        padding-inline: 9px;
    }

    .gp-home .gp-price-value {
        font-size: clamp(19px, 5.2vw, 25px);
    }
}


/* 8. Accessibility -------------------------------------------------------- */
:focus-visible {
    outline: 2px solid rgba(182, 139, 54, .85);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}
