.trading-hours-guide {
    --hours-navy: #061424;
    --hours-navy-soft: #0c2239;
    --hours-gold: #d5a84b;
    --hours-gold-light: #f3d894;
    --hours-cyan: #5ed6d2;
}

.trading-hours-hero .article-header-image img {
    object-position: center;
}

.trading-hours-now {
    border: 1px solid rgba(213, 168, 75, .28);
    background:
        radial-gradient(circle at 15% 0%, rgba(94, 214, 210, .13), transparent 42%),
        linear-gradient(145deg, #071625, #0b2035);
    color: #fff;
}

.trading-hours-now strong {
    display: block;
    margin: .25rem 0;
    color: #fff;
    font-family: "IBM Plex Mono", monospace;
    font-size: clamp(2rem, 4vw, 3rem);
    direction: ltr;
}

.trading-hours-now > span:not(.forecast-panel-label) {
    color: rgba(255, 255, 255, .68);
    font-size: .85rem;
}

.gulf-zone-switch {
    display: grid;
    gap: .45rem;
    margin-top: 1.1rem;
}

.gulf-zone-switch button {
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 999px;
    padding: .62rem .8rem;
    background: rgba(255, 255, 255, .05);
    color: rgba(255, 255, 255, .72);
    font: inherit;
    font-size: .78rem;
    cursor: pointer;
    transition: border-color .2s ease, background .2s ease, color .2s ease;
}

.gulf-zone-switch button:hover,
.gulf-zone-switch button:focus-visible,
.gulf-zone-switch button.is-active {
    border-color: rgba(213, 168, 75, .8);
    background: rgba(213, 168, 75, .14);
    color: #fff;
}

.trading-hours-section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: .75rem;
}

.trading-hours-section-head h2 {
    margin-bottom: 0;
}

.trading-hours-eyebrow {
    display: block;
    margin-bottom: .35rem;
    color: #9b6a12;
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.market-clock-sync {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    color: #53705d;
    font-size: .78rem;
    white-space: nowrap;
}

.market-clock-sync i {
    width: .55rem;
    height: .55rem;
    border-radius: 50%;
    background: #2fa46f;
    box-shadow: 0 0 0 .28rem rgba(47, 164, 111, .12);
    animation: market-pulse 2s ease-out infinite;
}

@keyframes market-pulse {
    50% { box-shadow: 0 0 0 .5rem rgba(47, 164, 111, 0); }
}

.market-clock-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin: 1.35rem 0;
}

.market-clock-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(213, 168, 75, .2);
    border-radius: 1.35rem;
    padding: 1.15rem;
    background:
        radial-gradient(circle at 15% 0%, rgba(72, 147, 180, .14), transparent 38%),
        linear-gradient(145deg, #071625, #0b2035);
    color: #fff;
    box-shadow: 0 20px 45px rgba(4, 18, 32, .13);
}

.market-clock-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: var(--hours-gold);
    opacity: .8;
}

.market-clock-card--shanghai::before { background: #e0b755; }
.market-clock-card--london::before { background: #67c8cf; }
.market-clock-card--new-york::before { background: #7a9cf4; }

.market-clock-card > header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: .6rem;
}

.market-clock-card h3 {
    margin: .15rem 0 0;
    color: #fff;
    font-size: .98rem;
    line-height: 1.5;
}

.market-city {
    color: rgba(255, 255, 255, .52);
    font-size: .72rem;
}

.market-status {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .38rem;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 999px;
    min-width: 6.8rem;
    padding: .42rem .7rem;
    background: rgba(255, 255, 255, .06);
    color: rgba(255, 255, 255, .72);
    font-size: .7rem;
    font-weight: 800;
    direction: rtl;
    white-space: nowrap;
}

.market-status::before {
    content: "";
    width: .5rem;
    height: .5rem;
    border-radius: 50%;
    background: #8994a3;
    box-shadow: 0 0 0 .2rem rgba(137, 148, 163, .12);
}

.market-status[data-state="open"] {
    border-color: rgba(73, 209, 139, .35);
    background: rgba(52, 180, 116, .13);
    color: #8ceab8;
}

.market-status[data-state="open"]::before {
    background: #49d18b;
    box-shadow: 0 0 0 .22rem rgba(73, 209, 139, .14);
}

.market-status[data-state="break"] {
    border-color: rgba(240, 185, 80, .35);
    background: rgba(240, 185, 80, .12);
    color: #f3d187;
}

.market-status[data-state="break"]::before {
    background: #f0b950;
    box-shadow: 0 0 0 .22rem rgba(240, 185, 80, .14);
}

.market-status[data-state="closed"] {
    border-color: rgba(244, 108, 108, .34);
    background: rgba(221, 76, 76, .12);
    color: #ffaaaa;
}

.market-status[data-state="closed"]::before {
    background: #f46c6c;
    box-shadow: 0 0 0 .22rem rgba(244, 108, 108, .14);
}

.market-clock-face {
    --hour-rotation: 0deg;
    --minute-rotation: 0deg;
    --second-rotation: 0deg;
    position: relative;
    width: min(10.5rem, 70%);
    aspect-ratio: 1;
    margin: 1.35rem auto .9rem;
    border: 5px solid #b98c38;
    border-radius: 50%;
    background:
        radial-gradient(circle at center, transparent 61%, rgba(255, 255, 255, .035) 62%),
        radial-gradient(circle at 36% 28%, #18334e, #07111d 68%);
    box-shadow: inset 0 0 0 3px #07111d, 0 12px 28px rgba(0, 0, 0, .32);
}

.clock-center {
    position: absolute;
    z-index: 5;
    inset: 50% auto auto 50%;
    width: .72rem;
    height: .72rem;
    border: 3px solid #7b581c;
    border-radius: 50%;
    background: var(--hours-gold-light);
    transform: translate(-50%, -50%);
}

.clock-hand {
    position: absolute;
    z-index: 3;
    left: 50%;
    bottom: 50%;
    width: 3px;
    border-radius: 999px;
    background: var(--hours-gold-light);
    transform-origin: 50% 100%;
}

.clock-hand--hour { height: 28%; transform: translateX(-50%) rotate(var(--hour-rotation)); }
.clock-hand--minute { height: 38%; transform: translateX(-50%) rotate(var(--minute-rotation)); }
.clock-hand--second { width: 1px; height: 41%; background: #62d4d6; transform: translateX(-50%) rotate(var(--second-rotation)); }

.market-digital-time {
    display: block;
    text-align: center;
    color: #fff;
    font-family: "IBM Plex Mono", monospace;
    font-size: clamp(1.55rem, 3vw, 2rem);
    font-weight: 700;
    direction: ltr;
}

.market-date {
    display: block;
    min-height: 1.4rem;
    text-align: center;
    color: rgba(255, 255, 255, .52);
    font-size: .72rem;
}

.market-session {
    min-height: 3.4rem;
    margin: 1rem 0 .8rem;
    color: rgba(255, 255, 255, .72);
    font-size: .76rem;
    line-height: 1.7;
}

.market-gulf-time {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .6rem;
    border-top: 1px solid rgba(255, 255, 255, .09);
    padding-top: .75rem;
    color: rgba(255, 255, 255, .5);
    font-size: .7rem;
}

.market-gulf-time strong {
    color: var(--hours-gold-light);
    font-family: "IBM Plex Mono", monospace;
    font-size: .92rem;
    direction: ltr;
}

.trading-hours-accuracy {
    margin-top: .5rem;
}

.trading-hours-table-wrap {
    overflow-x: auto;
    margin: 1.25rem 0;
    border: 1px solid #eadfc9;
    border-radius: 1rem;
}

.trading-hours-table {
    width: 100%;
    min-width: 780px;
    border-collapse: collapse;
    background: #fff;
    font-size: .83rem;
}

.trading-hours-table th,
.trading-hours-table td {
    border-bottom: 1px solid #eee5d5;
    padding: .85rem 1rem;
    text-align: right;
    vertical-align: middle;
}

.trading-hours-table thead th {
    background: var(--hours-navy);
    color: #fff;
    font-size: .76rem;
}

.trading-hours-table tbody th {
    color: #4b3514;
    font-weight: 800;
}

.trading-hours-table tbody tr:nth-child(even) {
    background: #fffcf7;
}

.trading-hours-table td:not(:first-child) {
    font-family: "IBM Plex Mono", monospace;
    direction: ltr;
    text-align: center;
}

.trading-hours-explainers .city-insight-card > span {
    display: block;
    margin-bottom: .5rem;
    color: #c08b2d;
    font-family: "IBM Plex Mono", monospace;
    font-size: .75rem;
}

.trading-overlap-section {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(300px, .92fr);
    align-items: center;
    gap: 1.5rem;
}

.trading-overlap-copy h2 {
    margin-top: 0;
}

.trading-overlap-copy > p {
    color: #334155;
    line-height: 1.95;
}

.trading-overlap-image {
    overflow: hidden;
    margin: 0;
    border-radius: 1.25rem;
    background: var(--hours-navy);
    box-shadow: 0 20px 45px rgba(5, 21, 37, .17);
}

.trading-overlap-image img {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
}

.trading-overlap-image figcaption {
    padding: .8rem 1rem;
    color: rgba(255, 255, 255, .7);
    font-size: .72rem;
    line-height: 1.7;
}

@media (max-width: 900px) {
    .market-clock-grid { grid-template-columns: 1fr; }
    .market-clock-card { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); align-items: center; column-gap: 1rem; }
    .market-clock-card > header, .market-session, .market-gulf-time { grid-column: 1 / -1; }
    .market-clock-face { grid-row: 2 / span 2; width: min(9rem, 85%); }
    .market-digital-time, .market-date { grid-column: 2; }
    .market-digital-time { align-self: end; }
    .market-date { align-self: start; }
    .market-session { min-height: 0; }
    .trading-overlap-section { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
    .trading-hours-section-head { align-items: flex-start; flex-direction: column; }
    .market-clock-card { display: block; }
    .market-clock-face { width: 9.2rem; }
    .trading-hours-table-wrap { margin-inline: -.75rem; border-radius: .7rem; }
}

@media (prefers-reduced-motion: reduce) {
    .market-clock-sync i { animation: none; }
}
