/**
 * Price Page Styles
 *
 * Dedicated styles for commodity price pages.
 * Only loaded on pages using template-price.php.
 *
 * Colorblind-safe palette: blue (#2563eb) positive, orange (#ea580c) negative.
 * Never red/green per CLAUDE.md accessibility rules.
 */

/* ==============================
   Skeleton Loading
   ============================== */
.skeleton-text {
    background: linear-gradient(90deg, #e5e7eb 25%, #f3f4f6 50%, #e5e7eb 75%);
    background-size: 200% 100%;
    animation: skeleton-pulse 1.5s ease-in-out infinite;
    border-radius: 4px;
    color: transparent !important;
    display: inline-block;
    min-width: 60px;
    user-select: none;
}

@keyframes skeleton-pulse {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-text.hydrated {
    background: none;
    animation: none;
    color: inherit !important;
    min-width: auto;
}

/* ==============================
   Breadcrumbs
   ============================== */
.price-breadcrumbs {
    background: #f9fafb;
    padding: 8px 0;
    border-bottom: 1px solid #e5e7eb;
}

.price-breadcrumbs__list {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 13px;
    color: #9ca3af;
    flex-wrap: wrap;
    gap: 0;
}

.price-breadcrumbs__item {
    display: inline-flex;
    align-items: center;
}

.price-breadcrumbs__item:not(:last-child)::after {
    content: '\203A'; /* single right-pointing angle */
    margin: 0 8px;
    color: #d1d5db;
    font-size: 14px;
}

.price-breadcrumbs__item a {
    color: #6b7280;
    text-decoration: none;
}

.price-breadcrumbs__item a:hover {
    color: #2563eb;
    text-decoration: underline;
}

.price-breadcrumbs__item:last-child {
    color: #374151;
    font-weight: 500;
}

/* ==============================
   Market Status Badge
   ============================== */
.price-hero__market-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 500;
}

.price-hero__market-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #9ca3af;
    flex-shrink: 0;
}

.price-hero__market-status.open .price-hero__market-dot {
    background: #059669;
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.2);
}

.price-hero__market-status.closed .price-hero__market-dot {
    background: #ea580c;
}

.price-hero__market-status.open .price-hero__market-text {
    color: #059669;
}

.price-hero__market-status.closed .price-hero__market-text {
    color: #ea580c;
}

.price-hero__report-error {
    color: #9ca3af !important;
    font-size: 11px;
}

.price-hero__report-error:hover {
    color: #ea580c !important;
}

/* ==============================
   LIVE Badge + Freshness Indicator
   ============================== */
.price-hero__freshness {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #6b7280;
}

.price-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 700;
    color: #fff;
    background: #2563eb;
    padding: 2px 8px 2px 6px;
    border-radius: 99px;
    letter-spacing: 0.04em;
    line-height: 1.4;
    white-space: nowrap;
}

.price-pulse-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #fff;
    animation: price-pulse-dot 2s infinite;
}

@keyframes price-pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.3; transform: scale(0.8); }
}

@media (prefers-reduced-motion: reduce) {
    .price-pulse-dot { animation: none; }
}

.price-hero__timestamp-text {
    font-size: 13px;
    color: #6b7280;
}

.price-rate-age {
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
    gap: 4px;
    font-size: 13px;
    color: #9ca3af;
}

.price-rate-age-ring {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    position: relative;
    display: inline-block;
}

.price-rate-age-ring svg {
    width: 18px;
    height: 18px;
    transform: rotate(-90deg);
}

.price-rate-age-ring circle {
    fill: none;
    stroke-width: 2.5;
}

.price-rate-age-ring .ring-bg {
    stroke: #e5e7eb;
}

.price-rate-age-ring .ring-fill {
    stroke: #2563eb;
    stroke-linecap: round;
    transition: stroke-dashoffset 1s linear;
}

.price-hero__source-line {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #9ca3af;
    flex-wrap: wrap;
}

.price-hero__source-line a {
    color: #6b7280;
    text-decoration: underline;
    text-decoration-color: #d1d5db;
}

.price-hero__source-line a:hover {
    color: #374151;
}

.price-hero__source-sep {
    color: #d1d5db;
}

/* ==============================
   Hero Price Card
   ============================== */
.price-hero {
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    padding: 24px 0;
}

.price-hero__card {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    flex-wrap: wrap;
}

.price-hero__label {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #6b7280;
    font-weight: 600;
    display: block;
    margin-bottom: 4px;
}

.price-hero__value {
    display: flex;
    align-items: center;
    gap: 12px;
}

.price-hero__price {
    font-size: 36px;
    font-weight: 700;
    color: #111827;
    line-height: 1.1;
}

.price-hero__currency-symbol {
    font-size: 24px;
    vertical-align: super;
    color: #6b7280;
    font-weight: 400;
}

.price-hero__copy {
    background: none;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 6px 8px;
    cursor: pointer;
    color: #6b7280;
    transition: all 0.15s ease;
    position: relative;
    min-width: 32px;
    min-height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.price-hero__copy:hover {
    border-color: #9ca3af;
    color: #374151;
    background: #f9fafb;
}

.price-hero__copy-feedback {
    position: absolute;
    top: -28px;
    left: 50%;
    transform: translateX(-50%);
    background: #111827;
    color: #fff;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 4px;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

.price-hero__copy-feedback.visible {
    opacity: 1;
}

.price-hero__change {
    margin-top: 6px;
    font-size: 15px;
    font-weight: 500;
}

.price-hero__change.up {
    color: #2563eb; /* blue for positive - colorblind safe */
}

.price-hero__change.down {
    color: #ea580c; /* orange for negative - colorblind safe */
}

.price-hero__unit {
    color: #9ca3af;
    font-weight: 400;
    font-size: 13px;
    margin-left: 4px;
}

.price-hero__meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    font-size: 12px;
    color: #9ca3af;
}

.price-hero__timestamp-label {
    margin-right: 4px;
}

.price-hero__source a {
    color: #6b7280;
    text-decoration: underline;
    text-decoration-color: #d1d5db;
}

.price-hero__source a:hover {
    color: #374151;
}

@media (max-width: 640px) {
    .price-hero__card {
        flex-direction: column;
        gap: 12px;
    }

    .price-hero__price {
        font-size: 28px;
    }

    .price-hero__meta {
        align-items: flex-start;
        flex-direction: row;
        gap: 16px;
    }
}

/* ==============================
   Jump Links Navigation
   ============================== */
.price-jump-links {
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 90;
}

.price-jump-links__pills {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 10px 0;
}

.price-jump-links__pills::-webkit-scrollbar {
    display: none;
}

.price-jump-links__pill {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    color: #6b7280;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.15s ease;
    min-height: 36px;
    border: 1px solid transparent;
}

.price-jump-links__pill:hover {
    background: #f3f4f6;
    color: #374151;
}

.price-jump-links__pill--active,
.price-jump-links__pill.active {
    background: #eff6ff;
    color: #2563eb;
    border-color: #bfdbfe;
}

/* ==============================
   Sticky Price Header
   ============================== */
.price-sticky-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: #111827;
    color: #fff;
    transform: translateY(-100%);
    transition: transform 0.25s ease;
    padding: 8px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.price-sticky-header.visible {
    transform: translateY(0);
}

.price-sticky-header__inner {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 14px;
}

.price-sticky-header__name {
    font-weight: 600;
    color: #d1d5db;
}

.price-sticky-header__price {
    font-weight: 700;
    font-size: 16px;
}

.price-sticky-header__change {
    font-size: 13px;
    font-weight: 500;
}

.price-sticky-header__change.up {
    color: #60a5fa; /* lighter blue for dark background */
}

.price-sticky-header__change.down {
    color: #fb923c; /* lighter orange for dark background */
}

/* ==============================
   Price Stats Bar
   ============================== */
.price-stats {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 0;
}

.price-stats__grid {
    display: flex;
    gap: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.price-stats__item {
    flex: 1;
    min-width: 120px;
    text-align: center;
    padding: 8px 12px;
    border-right: 1px solid #e5e7eb;
}

.price-stats__item:last-child {
    border-right: none;
}

.price-stats__label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #9ca3af;
    font-weight: 600;
    margin-bottom: 4px;
}

.price-stats__value {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: #111827;
}

@media (max-width: 640px) {
    .price-stats__grid {
        gap: 0;
    }

    .price-stats__item {
        min-width: 100px;
        padding: 6px 8px;
    }

    .price-stats__value {
        font-size: 14px;
    }
}

/* ==============================
   Related Price Pages
   ============================== */
.price-related {
    background: #f3f4f6;
    padding: 40px 0;
    border-top: 1px solid #e5e7eb;
}

.price-related__title {
    font-size: 20px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 20px;
}

.price-related__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.price-related__card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    text-decoration: none;
    color: #111827;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.15s ease;
}

.price-related__card:hover {
    border-color: #2563eb;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.1);
    color: #2563eb;
}

.price-related__card-arrow {
    color: #9ca3af;
    transition: transform 0.15s ease;
}

.price-related__card:hover .price-related__card-arrow {
    transform: translateX(4px);
    color: #2563eb;
}

/* ==============================
   Noscript Fallback
   ============================== */
.price-noscript-notice {
    background: #fffbeb;
    border: 1px solid #fbbf24;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    color: #92400e;
}

.price-noscript-notice p {
    margin: 0 0 8px;
}

.price-noscript-notice p:last-child {
    margin-bottom: 0;
}

/* ==============================
   Chart Improvements
   ============================== */

/* Minimum height to prevent CLS during chart load */
.price-page .highcharts-container,
.price-page .wp-block-create-block-commodity-price-graph .highcharts-container {
    min-height: 400px;
    will-change: transform; /* GPU acceleration hint */
}

@media (max-width: 640px) {
    .price-page .highcharts-container,
    .price-page .wp-block-create-block-commodity-price-graph .highcharts-container {
        min-height: 300px;
    }
}

/* Colorblind-safe chart series colors */
.price-page .highcharts-series .highcharts-point-up {
    fill: #2563eb;   /* blue for up */
    stroke: #2563eb;
}

.price-page .highcharts-series .highcharts-point-down {
    fill: #ea580c;   /* orange for down */
    stroke: #ea580c;
}

/* Mobile touch targets - range selector buttons */
.price-page .highcharts-range-selector-buttons .highcharts-button {
    cursor: pointer;
}

.price-page .highcharts-range-selector-buttons .highcharts-button rect {
    min-height: 36px;
}

@media (max-width: 640px) {
    .price-page .highcharts-range-selector-buttons .highcharts-button {
        padding: 4px;
    }

    .price-page .highcharts-range-selector-buttons .highcharts-button rect {
        min-height: 44px;
        min-width: 44px;
    }

    /* Increase spacing between range buttons on mobile */
    .price-page .highcharts-range-selector-buttons .highcharts-button + .highcharts-button {
        margin-left: 4px;
    }
}

/* Chart interaction buttons - price page specific */
.price-page .wp-block-create-block-commodity-price-graph .interactions {
    padding: 8px 0;
}

.price-page .wp-block-create-block-commodity-price-graph .interactions button,
.price-page .wp-block-create-block-commodity-price-graph .interactions select {
    min-height: 36px;
    font-size: 13px;
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid #d1d5db;
    background: #fff;
    cursor: pointer;
    color: #374151;
}

@media (max-width: 640px) {
    .price-page .wp-block-create-block-commodity-price-graph .interactions button,
    .price-page .wp-block-create-block-commodity-price-graph .interactions select {
        min-height: 44px; /* Touch target compliance */
        font-size: 14px;
    }
}

/* ==============================
   Fullscreen Chart Overlay
   ============================== */
.price-chart-fullscreen-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    background: #fff;
    display: flex;
    flex-direction: column;
    padding: 16px;
}

.price-chart-fullscreen-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    width: 40px;
    height: 40px;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #374151;
    z-index: 10001;
}

.price-chart-fullscreen-close:hover {
    background: #e5e7eb;
}

/* ==============================
   Screen Reader Only
   ============================== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ==============================
   Print Styles
   ============================== */
@media print {
    /* Hide non-essential elements */
    .site-header,
    .site-footer,
    .price-jump-links,
    .price-sticky-header,
    .price-related,
    .footer-back-to-top,
    .price-hero__copy,
    .press-strip,
    .ctamanager-cta,
    .sidebar-sticky,
    .entry-author__social,
    aside,
    .interactions,
    .trust-strip,
    nav,
    .hellobar,
    .menu-toggle,
    #site-navigation {
        display: none !important;
    }

    /* Clean up the hero card for print */
    .price-hero {
        border: 2px solid #111;
        padding: 16px;
        margin-bottom: 24px;
    }

    .price-hero__price {
        font-size: 28px;
    }

    .price-stats {
        border: 1px solid #ccc;
        margin-bottom: 24px;
    }

    /* Ensure chart prints */
    .highcharts-container {
        max-width: 100% !important;
    }

    body {
        font-size: 12pt;
        color: #000;
    }

    a[href]::after {
        content: " (" attr(href) ")";
        font-size: 9pt;
        color: #666;
    }

    .price-related__card a[href]::after {
        content: none; /* Don't show URLs in related cards */
    }
}

/* ==============================
   Sprint 2: Content Cleanup
   Price-page-only rules to hide
   junk from WordPress post content.
   ============================== */

/* Price pages use content-price.php which has no entry-header (hero card is the page identifier). */
/* .price-page .entry-header removed - not needed, template never generates it */

/* h1 inside hero card - clean, not a banner */
.price-hero__h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 12px;
    line-height: 1.3;
}

@media (max-width: 640px) {
    .price-hero__h1 {
        font-size: 1.75rem;
    }
}

/* Chart section */
.price-chart-section {
    padding: 24px 0;
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
}

/* Chart widget inside content - make it full width */
.price-content-editor .wp-block-create-block-commodity-price-graph {
    max-width: 100% !important;
    width: 100% !important;
}

.price-content-editor .wp-block-create-block-commodity-price-graph .highcharts-container {
    width: 100% !important;
}

/* Hide ctamanager CTA boxes (belt + suspenders with URL exclusion) */
.price-page .ctamanager-cta-wrapper,
.price-page .ctamanager-cta {
    display: none !important;
}

/* Hide the sidebar CTA on price pages */
.price-page .sidebar-sticky .ctamanager-cta-wrapper {
    display: none !important;
}

/* "Learn More About X" sections should be removed from WP content,
   not hidden via CSS. Remove from editor for each price page. */

/* Chart: make it the centrepiece */
.price-page .wp-block-create-block-commodity-price-graph {
    max-width: 100%;
    margin-left: -20px;
    margin-right: -20px;
    padding: 0 20px;
}

.price-page .highcharts-container {
    min-height: 500px !important;
}

@media (max-width: 640px) {
    .price-page .highcharts-container {
        min-height: 350px !important;
    }
    .price-page .wp-block-create-block-commodity-price-graph {
        margin-left: -15px;
        margin-right: -15px;
        padding: 0 15px;
    }
}

/* ==============================
   Sprint 5: Trust Strip
   ============================== */
.price-trust-strip {
    background: #fffbeb;
    border-bottom: 1px solid #fde68a;
    padding: 8px 0;
}

.price-trust-strip__inner {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #92400e;
    flex-wrap: wrap;
}

.price-trust-strip__item {
    flex: 1;
    min-width: 200px;
}

.price-trust-strip__sep {
    color: #fbbf24;
}

.price-trust-strip__link {
    color: #92400e;
    text-decoration: underline;
    text-decoration-color: #fde68a;
    white-space: nowrap;
}

.price-trust-strip__link:hover {
    color: #78350f;
}

@media (max-width: 640px) {
    .price-trust-strip__inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    .price-trust-strip__sep { display: none; }
}

/* ==============================
   Sprint 4: Data Tables
   ============================== */

/* Comparison Cards */
.price-comparison-cards {
    padding: 20px 0;
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
}

.price-comparison__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.price-comparison__card {
    background: #f0f7ff;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    padding: 16px;
    text-align: center;
}

.price-comparison__label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #6b7280;
    font-weight: 600;
    margin-bottom: 4px;
}

.price-comparison__value {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: #111827;
}

.price-comparison__delta {
    display: block;
    font-size: 13px;
    font-weight: 500;
    margin-top: 4px;
}

.price-comparison__delta.up { color: #2563eb; }
.price-comparison__delta.down { color: #ea580c; }

@media (max-width: 640px) {
    .price-comparison__grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    .price-comparison__card {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 12px 16px;
    }
    .price-comparison__label { margin-bottom: 0; }
    .price-comparison__value { font-size: 16px; }
}

/* Key Stats Table */
.price-key-stats {
    padding: 24px 0;
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
}

.price-key-stats__title {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 12px;
}

.price-key-stats__table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.price-key-stats__table th {
    text-align: left;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #fff;
    font-weight: 600;
    padding: 8px 12px;
    border-bottom: 2px solid #e5e7eb;
    background: #1f2937;
}

.price-key-stats__table td {
    padding: 8px 12px;
    border-bottom: 1px solid #f3f4f6;
    color: #374151;
}

.price-key-stats__table td:first-child {
    color: #6b7280;
    font-weight: 500;
}

.price-key-stats__table td:nth-child(2) {
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.price-key-stats__table .up { color: #2563eb; }
.price-key-stats__table .down { color: #ea580c; }

/* Zebra stripes on all price page tables */
.price-key-stats__table tbody tr:nth-child(even),
.price-history-table__data tbody tr:nth-child(even) {
    background-color: #f9fafb;
}

/* Historical Price Table */
.price-history-table {
    padding: 24px 0;
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
}

.price-history-table__title {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 12px;
}

.price-history-table__controls {
    display: flex;
    gap: 4px;
    margin-bottom: 12px;
}

.price-history-pill {
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid #d1d5db;
    background: #fff;
    font-size: 13px;
    font-weight: 500;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.15s ease;
    min-height: 36px;
}

.price-history-pill:hover {
    border-color: #2563eb;
    color: #2563eb;
}

.price-history-pill.active {
    background: #2563eb;
    border-color: #2563eb;
    color: #fff;
}

.price-history-table__scroll {
    max-height: 400px;
    overflow-y: auto;
}

.price-history-table__data {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.price-history-table__data th {
    text-align: left;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #fff;
    font-weight: 600;
    padding: 8px 12px;
    border-bottom: 2px solid #e5e7eb;
    position: sticky;
    top: 0;
    background: #1f2937;
}

.price-history-table__data td {
    padding: 8px 12px;
    border-bottom: 1px solid #f3f4f6;
    color: #374151;
    font-variant-numeric: tabular-nums;
}

.price-history-table__data td:first-child {
    color: #6b7280;
}

.price-history-table__data .up { color: #2563eb; }
.price-history-table__data .down { color: #ea580c; }

/* Hide the Highcharts navigator (mini overview chart) - redundant with time presets */
.price-page .highcharts-navigator-group,
.price-page .highcharts-navigator-xaxis,
.price-page .highcharts-navigator-yaxis,
.price-page .highcharts-navigator-series,
.price-page .highcharts-scrollbar {
    display: none !important;
}

/* Reclaim the navigator space */
.price-page .highcharts-navigator {
    height: 0 !important;
    visibility: hidden;
}

/* ==============================
   Chart Cleanup
   ============================== */

/* Chart interactions: .interactions > .main contains Reset, Embed, Advanced buttons */

/* Move buttons below chart, left-aligned.
   Plugin CSS sets position: absolute; bottom: 0 which clips buttons
   inside the chart container. Override to static flow so they sit
   visibly below the chart. */
.price-page .interactions {
    display: flex !important;
    justify-content: flex-start;
    position: relative !important;
    bottom: auto !important;
    margin-bottom: 0 !important;
    margin-left: 0 !important;
    padding: 8px 0 0;
}

/* Ensure chart block doesn't clip the interactions buttons */
.price-page .wp-block-create-block-commodity-price-graph {
    overflow: visible !important;
}

.price-page .interactions .main {
    display: flex;
    gap: 8px;
}

.price-page .interactions .main button {
    font-size: 12px;
    padding: 4px 12px;
    border-radius: 4px;
    border: 1px solid #d1d5db;
    background: #fff;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.15s;
}

.price-page .interactions .main button:hover {
    border-color: #2563eb;
    color: #2563eb;
}

/* No text hiding for SEO - Google penalizes display:none on content.
   Chart titles, Zoom labels, etc. stay visible.
   Use plugin toggles or content removal instead. */

/* Source line delay note */
.price-hero__delay-note {
    color: #9ca3af;
    font-size: 12px;
}

/* ==============================
   Breadcrumbs
   ============================== */
.price-breadcrumbs {
    padding: 8px 0;
    background: #fff;
}

.price-breadcrumbs__list {
    display: flex;
    align-items: center;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 13px;
    color: #9ca3af;
}

.price-breadcrumbs__item {
    display: flex;
    align-items: center;
}

.price-breadcrumbs__item:not(:last-child)::after {
    content: '\203A';
    margin: 0 6px;
    color: #d1d5db;
}

.price-breadcrumbs__item a {
    color: #6b7280;
    text-decoration: none;
}

.price-breadcrumbs__item a:hover {
    color: #2563eb;
    text-decoration: underline;
}

.price-breadcrumbs__item:last-child span {
    color: #374151;
    font-weight: 500;
}

/* ==============================
   Newsletter Widget Repositioning
   Push the newsletter signup (injected by
   commodity-newsletter plugin via the_content
   filter) to the bottom of the content area,
   after all editorial content and data tables
   but before the Related Price Pages section.
   ============================== */
.price-content-editor {
    display: flex;
    flex-direction: column;
}

.price-content-editor > .cmm-nl {
    order: 999;
    margin-top: 32px;
}

/* ==============================
   Bullet List Formatting
   Proper indentation and styles for
   nested lists inside price page content.
   ============================== */
.price-content-editor ul {
    list-style-type: disc;
    padding-left: 1.5em;
    margin-bottom: 1em;
}

.price-content-editor ul ul {
    list-style-type: circle;
    margin-top: 0.5em;
}

.price-content-editor li {
    margin-bottom: 0.5em;
    line-height: 1.6;
}
