/* FX-Jithin - shared styles for every instrument page.
   Per-page accent colour is set via the --accent custom property in the page. */
:root { --accent: #fbbf24; }
.gap-line { stroke: var(--accent); stroke-width: 1; stroke-dasharray: 6,3; opacity: 0.6; }
html { scroll-behavior: auto; }
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    min-height: 100vh;
    padding: 32px 20px;
    color: white;
}
.container { max-width: 1400px; margin: 0 auto; }
.header { margin-bottom: 32px; text-align: center; }
.author-heading {
    font-size: 48px;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 2px;
}
.enhancement-badge {
    display: inline-block;
    background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
    color: white;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
h1 { font-size: 36px; font-weight: 700; color: white; margin-bottom: 8px; }
.subtitle { color: #94a3b8; font-size: 16px; margin-bottom: 8px; }
.info-box {
    background: rgba(59, 130, 246, 0.1);
    border: 2px solid var(--accent);
    border-radius: 12px;
    padding: 20px;
    margin: 20px auto;
    max-width: 900px;
}
.info-box h3 { color: var(--accent); font-size: 18px; margin-bottom: 12px; }
.info-box p { color: #cbd5e1; line-height: 1.6; margin-bottom: 8px; }
.pattern-pair { margin-bottom: 60px; overflow: hidden; scroll-margin-top: 40px; }
.pair-header {
    background: rgba(59, 130, 246, 0.1);
    border: 2px solid var(--accent);
    border-radius: 8px;
    padding: 16px 24px;
    margin-bottom: 20px;
}
.pair-title { font-size: 22px; font-weight: 700; color: var(--accent); margin-bottom: 4px; }
.pair-desc { color: #cbd5e1; font-size: 14px; }
.scenarios-container { display: grid; grid-template-columns: 1fr; gap: 20px; }
.scenario-card {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 12px;
    overflow: hidden;
}
.scenario-card.bullish { border-color: #22c55e; }
.scenario-card.bearish { border-color: #ef4444; }
.scenario-header { padding: 20px; }
.scenario-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.scenario-title { display: flex; align-items: center; gap: 10px; }
.direction-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
}
.direction-badge.bullish { background: #22c55e; color: white; }
.direction-badge.bearish { background: #ef4444; color: white; }
.scenario-name { font-size: 16px; font-weight: 600; color: white; }
.probability {
    background: var(--accent);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 12px;
}
.session-flow {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.session-box {
    flex: 1;
    min-width: 140px;
    background: #334155;
    padding: 12px;
    border-radius: 8px;
}
.session-box.prev-day {
    background: rgba(168, 85, 247, 0.15);
    border: 1px solid #a855f7;
}
.session-label {
    color: #94a3b8;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}
.session-label.prev-day { color: #c084fc; }
.session-content { display: flex; align-items: center; gap: 8px; }
.session-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: bold;
}
.icon-green { background: #22c55e; color: white; }
.icon-red { background: #ef4444; color: white; }
.icon-gray { background: #64748b; color: white; }
.icon-blue { background: var(--accent); color: white; }
.icon-purple { background: #a855f7; color: white; }
.icon-orange { background: #f97316; color: white; }
.icon-yellow { background: #eab308; color: white; }
.session-text { color: white; font-weight: 500; font-size: 13px; }
.arrow { color: #64748b; font-size: 20px; }
.details {
    border-top: 1px solid #334155;
    padding: 16px 20px;
    background: rgba(15, 23, 42, 0.5);
}
.detail-item { margin-bottom: 12px; }
.detail-item:last-child { margin-bottom: 0; }
.detail-label { color: var(--accent); font-weight: 600; margin-bottom: 4px; font-size: 12px; }
.detail-text { color: white; font-weight: 500; font-size: 14px; margin-bottom: 2px; }
.detail-subtext { color: #94a3b8; font-size: 13px; }
.details-chart-wrapper{display:flex;flex-direction:row;gap:20px;border-top:1px solid #334155;background:rgba(15,23,42,0.5)}.details-chart-wrapper .details{flex:1;min-width:300px;border-top:none;padding:16px 20px}.details-chart-wrapper .pattern-chart-side{flex:1.2;min-width:400px;padding:15px 20px;background:rgba(5,10,20,0.9);border-left:1px solid #334155}.pattern-chart-side .chart-svg-full{height:160px}@media(max-width:900px){.details-chart-wrapper{flex-direction:column}.details-chart-wrapper .pattern-chart-side{border-left:none;border-top:1px solid #334155}}
.pattern-chart-full{width:100%;padding:15px 20px;background:rgba(5,10,20,0.9);border-top:1px solid #334155}.chart-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px}.chart-title-full{font-size:11px;color:var(--accent);text-transform:uppercase;letter-spacing:1px;font-weight:600}.chart-legend{display:flex;gap:15px;font-size:10px}.legend-item{display:flex;align-items:center;gap:5px;color:#94a3b8}.legend-dot{width:10px;height:10px;border-radius:2px}.legend-dot.green{background:#22c55e}.legend-dot.red{background:#ef4444}.legend-dot.gray{background:#64748b}.chart-svg-full{width:100%;height:180px}.chart-svg-full svg{width:100%;height:100%}.zone-prev-ny{fill:rgba(168,85,247,0.12)}.zone-asian{fill:rgba(59,130,246,0.12)}.zone-london{fill:rgba(249,115,22,0.12)}.zone-ny{fill:rgba(251,191,36,0.12)}.zone-border{stroke:rgba(255,255,255,0.08);stroke-width:1;fill:none}.candle-green{fill:#22c55e}.candle-red{fill:#ef4444}.candle-gray{fill:#64748b}.wick-green{stroke:#22c55e;stroke-width:1.5}.wick-red{stroke:#ef4444;stroke-width:1.5}.wick-gray{stroke:#64748b;stroke-width:1.5}.session-label-full{font-size:11px;font-weight:700;text-anchor:middle}.label-prev-ny{fill:#c084fc}.label-asian{fill:#60a5fa}.label-london{fill:#fb923c}.label-ny{fill:#fbbf24}.price-level{stroke:#1e293b;stroke-width:1;stroke-dasharray:4,4}@media(max-width:768px){.chart-svg-full{height:150px}.chart-legend{display:none}}
.home-button {
    position: fixed;
    top: 20px;
    left: 20px;
    background: var(--accent);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    z-index: 1000;
    transition: all 0.3s ease;
}
.home-button:hover { background: #2563eb; transform: translateY(-2px); }
.common-button {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #8b5cf6;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    z-index: 1000;
    transition: all 0.3s ease;
}
.common-button:hover { background: #7c3aed; transform: translateY(-2px); }
.nav-sidebar {
    position: fixed;
    right: 20px;
    top: 100px;
    width: 200px;
    background: rgba(30, 41, 59, 0.95);
    border: 1px solid #334155;
    border-radius: 12px;
    padding: 16px;
    max-height: 70vh;
    overflow-y: auto;
    z-index: 999;
    transition: transform 0.3s ease, opacity 0.25s ease;
}
.nav-sidebar.collapsed {
    transform: translateX(calc(100% + 40px));
    opacity: 0;
    pointer-events: none;
}
.nav-close {
    float: right;
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    padding: 0 2px;
    transition: color 0.2s;
}
.nav-close:hover { color: var(--accent); }
.nav-toggle {
    position: fixed;
    right: 0;
    top: 100px;
    background: rgba(30, 41, 59, 0.95);
    border: 1px solid #334155;
    border-right: none;
    border-radius: 10px 0 0 10px;
    color: var(--accent);
    font-size: 16px;
    padding: 10px 12px;
    cursor: pointer;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transform: translateX(100%);
    transition: transform 0.3s ease, opacity 0.25s ease;
}
.nav-toggle.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
}
.nav-toggle:hover { background: #334155; }
.nav-sidebar h4 {
    color: var(--accent);
    font-size: 14px;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.nav-link {
    display: block;
    color: #cbd5e1;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    margin-bottom: 4px;
    transition: all 0.2s;
}
.nav-link:hover {
    background: #334155;
    color: var(--accent);
}
@media (max-width: 1200px) {
    .nav-sidebar { display: none; }
}
@media (max-width: 768px) {
    .session-flow { flex-direction: column; }
    .session-box { width: 100%; }
    .arrow { transform: rotate(90deg); }
}
.nav-link.active {
    color: white;
    font-weight: 600;
    transform: translateX(3px);
}
@media (max-width: 768px) {
}

/* page footer (was inline styles on each page) */
.page-footer { margin-top: 60px; padding: 30px; background: rgba(59, 130, 246, 0.1); border-radius: 12px; text-align: center; }
.page-footer h3 { color: var(--accent); margin-bottom: 16px; }
.page-footer p { color: #cbd5e1; margin-bottom: 8px; }
.page-footer p.muted { color: #94a3b8; font-size: 14px; }
.page-footer a { color: #00c7b7; text-decoration: none; font-size: 13px; }

/* --- accessibility ------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
:focus-visible {
    outline: 3px solid #60a5fa;
    outline-offset: 2px;
    border-radius: 4px;
}
/* Direction is carried by a shape as well as colour, so the badges still read
   correctly for colourblind users and in greyscale print. */
.direction-badge.bullish::before { content: "\25B2 "; }
.direction-badge.bearish::before { content: "\25BC "; }
.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}


