﻿:root {
    --page-background: #ffffff;
    --brand-maroon: #631218;
    --buy-red: #d32027;
    --sell-green: #006837;
    --note-grey: #707070;
    --line-grey: #e3e3e3;
    --btn-gold: #baa06c;
}

@font-face {
    font-family: "Cordia New";
    src: local("Cordia New"),
         url("../fonts/CordiaNew-Regular.woff") format("woff"),
         url("../fonts/CordiaNew-Regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Cordia New";
    src: local("Cordia New Bold"),
         local("Cordia New"),
         url("../fonts/CordiaNew-Bold.woff") format("woff"),
         url("../fonts/CordiaNew-Bold.ttf") format("truetype");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Myriad Variable Concept";
    src: local("Myriad Variable Concept"),
         local("MyriadVariableConcept-Semibold"),
         local("Myriad Variable Concept Semibold"),
         local("Myriad Pro Semibold"),
         local("Myriad Pro Bold"),
         local("MyriadPro-Semibold"),
         local("MyriadPro-Bold"),
         url("../fonts/MyriadPro-Bold.woff") format("woff"),
         url("../fonts/MyriadPro-Bold.otf") format("opentype");
    font-weight: 600 700;
    font-style: normal;
    font-display: swap;
}

* {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    min-height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background: var(--page-background);
}

body {
    color: var(--brand-maroon);
    font-family: "Cordia New", "CordiaUPC", sans-serif;
    -webkit-font-smoothing: antialiased;
    text-rendering: geometricPrecision;
}

.gold-wallet {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 480px;
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0 auto;
    overflow: hidden;
    background: var(--page-background);
}

.gold-wallet__canvas {
    flex: 0 0 auto;
    position: relative;
    width: 100%;
    aspect-ratio: 1179 / 1580;
    overflow: hidden;
}

.gold-wallet__stage {
    position: relative;
    width: 100%;
    aspect-ratio: 1179 / 2556;
    container-type: inline-size;
}

.gold-wallet__artwork {
    display: block;
    width: 100%;
    height: 100%;
    pointer-events: none;
    user-select: none;
}

/* Page Title */
.gold-title {
    position: absolute;
    top: 16.6%;
    left: 0;
    right: 0;
    margin: 0;
    text-align: center;
    font-family: "Cordia New", "CordiaUPC", sans-serif;
    font-size: min(94px, 8.0cqw);
    font-weight: 700;
    color: var(--brand-maroon);
    line-height: 1.15;
    letter-spacing: 0.01em;
}

/* Sections */
.gold-section {
    position: absolute;
    left: 6.2%;
    right: 6.2%;
}

.gold-section--bar {
    top: 23.6%;
}

.gold-section--ornament {
    top: 38.6%;
}

.gold-grid {
    display: grid;
    grid-template-columns: 1.12fr 1fr 1fr;
    column-gap: min(10px, 0.85cqw);
    align-items: baseline;
    width: 100%;
}

.gold-grid--header {
    margin-bottom: min(10px, 0.85cqw);
}

.gold-grid--item {
    margin-bottom: min(14px, 1.2cqw);
}

.gold-label {
    font-family: "Cordia New", "CordiaUPC", sans-serif;
    font-size: min(56px, 4.75cqw);
    font-weight: 400;
    color: var(--brand-maroon);
    line-height: 1.25;
    white-space: nowrap;
    text-align: left;
}

.gold-col-head {
    text-align: center;
    font-family: "Cordia New", "CordiaUPC", sans-serif;
    font-size: min(56px, 4.75cqw);
    font-weight: 700;
    line-height: 1.25;
}

.gold-col-head--buy {
    color: var(--buy-red);
}

.gold-col-head--sell {
    color: var(--sell-green);
}

.price-slot {
    display: flex;
    justify-content: center;
    align-items: baseline;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    text-align: center;
}

.price-slot--buy {
    color: var(--buy-red);
}

.price-slot--sell {
    color: var(--sell-green);
}

.live-price {
    font-family: "Myriad Variable Concept", "Myriad Pro", sans-serif;
    font-size: min(56px, 4.75cqw);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.01em;
}

.gold-divider {
    position: absolute;
    top: 36.8%;
    left: 6.2%;
    right: 6.2%;
    height: 1px;
    background: var(--line-grey);
}

/* Trade Button */
.trade-button-wrap {
    position: absolute;
    top: 49.3%;
    left: 6.2%;
    right: 6.2%;
}

.trade-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: min(134px, 11.4cqw);
    background: var(--btn-gold);
    border-radius: min(24px, 2.0cqw);
    box-shadow: 0 min(4px, 0.34cqw) min(12px, 1.0cqw) rgba(100, 70, 20, 0.18);
    text-decoration: none;
    font-family: "Cordia New", "CordiaUPC", sans-serif;
    font-size: min(25px, 6.6cqw);
    font-weight: 400;
    color: var(--brand-maroon);
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: transform 0.1s ease, filter 0.1s ease;
}

.trade-button:active {
    transform: scale(0.99);
    filter: brightness(0.96);
}

.trade-button:focus-visible {
    outline: min(4px, 0.34cqw) solid rgba(99, 18, 24, 0.5);
    outline-offset: min(4px, 0.34cqw);
}

/* Disclaimer & Last Updated */
.gold-disclaimer {
    position: absolute;
    top: 56.4%;
    left: 6.2%;
    right: 6.2%;
    text-align: center;
    font-family: "Cordia New", "CordiaUPC", sans-serif;
    color: var(--note-grey);
    line-height: 1.35;
}

.last-updated {
    font-size: min(38px, 3.2cqw);
    font-weight: 400;
    margin-bottom: min(3px, 0.25cqw);
}

.disclaimer-note {
    font-size: min(32px, 2.7cqw);
    font-weight: 400;
}

.last-updated a,
a[x-apple-data-detectors] {
    color: inherit !important;
    font: inherit !important;
    text-decoration: none !important;
}

.gold-wallet__footer {
    flex: 0 0 auto;
    width: 100%;
    aspect-ratio: 1179 / 293;
    margin-top: auto;
    background-color: #681216;
    background-image: url("../images/linetoday/gold-wallet-page.jpg?v=4.0");
    background-repeat: no-repeat;
    background-position: center bottom;
    background-size: 100% auto;
}

@media (orientation: landscape) {
    .gold-wallet {
        width: 100%;
        max-width: 100%;
        min-height: 100vh;
        min-height: 100dvh;
    }
}

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}
