/* Pigskin Timeline - Newspaper Timeline System */

/* =========================
   MAIN TIMELINE CONTAINER
========================= */

.page-class .content-right,
.search-class .content-right {
    max-width: calc(100% - 5%) !important;
}

/* =========================
   FIXED CENTERED TIMELINE NAV
========================= */

.timeline-controls-sticky {
    position: fixed;
    top: 92px; /* adjust if it sits too high/low */
    left: 50%;
    transform: translateX(-50%);
    z-index: 900;
    width: fit-content;
    max-width: calc(100vw - 110px); /* leaves room for left social buttons */

    background: rgba(244, 239, 226, 0.96);
    backdrop-filter: blur(3px);
    border: 1px solid rgba(198, 40, 40, 0.25);
    border-radius: 4px;
    padding: 10px 18px 12px;
    margin: 0;
    box-shadow: 0 4px 14px rgba(0,0,0,0.12);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

    /* Center toggle */
    .timeline-controls-sticky .timeline-toggle {
        display: flex;
        justify-content: center;
        align-items: center;
        margin: 0 auto 10px;
    }

    /* Center jump nav */
    .timeline-controls-sticky .timeline-jump-nav {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
    }

    /* Center panel contents */
    .timeline-controls-sticky .timeline-jump-panel {
        display: flex;
        justify-content: center;
        align-items: center;
        flex-wrap: wrap;
        gap: 8px;
    }

/* Prevent page content from hiding under fixed nav */
#dateTimeline,
#yearTimeline {
    padding-top: 95px;
}

/* WordPress admin bar offset */
.admin-bar .timeline-controls-sticky {
    top: 124px;
}

/* Mobile */
@media (max-width: 768px) {
    .timeline-controls-sticky {
        top: 58px;
        width: calc(100vw - 24px);
        max-width: calc(100vw - 24px);
        padding: 8px 10px 10px;
        z-index: 900;
    }

    .admin-bar .timeline-controls-sticky {
        top: 104px;
    }

    .timeline-controls-sticky .timeline-jump-panel {
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
        width: 100%;
        padding-bottom: 6px;
    }

    #dateTimeline,
    #yearTimeline {
        padding-top: 115px;
    }
}

/* =========================
   TITLE
========================= */

.pigskin-timeline-title {
    text-align: center;
    font-size: 1.85rem;
    color: #2c2c2c;
    margin-bottom: 50px;
    letter-spacing: 1.5px;
    font-weight: normal;
    text-transform: uppercase;
}

/* =========================
   TOGGLE BUTTONS
========================= */

.timeline-toggle {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    margin: 30px auto 40px;
}

    .timeline-toggle button {
        padding: 10px 18px;
        border: 2px solid #c62828;
        background: #fff;
        color: #c62828;
        font-weight: bold;
        cursor: pointer;
        transition: all 0.2s ease;
    }

        .timeline-toggle button:first-child {
            border-radius: 6px 0 0 6px;
            border-right: none;
        }

        .timeline-toggle button:last-child {
            border-radius: 0 6px 6px 0;
        }

        .timeline-toggle button.active {
            background: #c62828;
            color: #fff;
        }

        .timeline-toggle button:hover {
            background: #b71c1c;
            color: #fff;
        }
/* =========================
   TIMELINE JUMP NAVIGATION
========================= */

.timeline-jump-nav {
    display: flex;
    justify-content: center;
    margin: -20px auto 30px;
    padding: 0 15px;
}

.timeline-jump-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    max-width: 100%;
}

.timeline-jump-label {
    font-weight: bold;
    color: #3b2a1a;
    margin-right: 6px;
    font-family: Georgia, 'Times New Roman', serif;
}

.timeline-jump-panel button,
.timeline-jump-panel select {
    border: 1px solid #c62828;
    background: #fff;
    color: #b71c1c;
    padding: 7px 10px;
    font-size: 0.85rem;
    font-weight: bold;
    cursor: pointer;
    border-radius: 4px;
    font-family: Georgia, 'Times New Roman', serif;
}

    .timeline-jump-panel button:hover,
    .timeline-jump-panel select:hover {
        background: #c62828;
        color: #fff;
    }

.timeline-jump-panel select {
    min-width: 150px;
}

/* Mobile jump nav */
@media (max-width: 768px) {
    .timeline-jump-nav {
        margin: -10px auto 20px;
    }

    .timeline-jump-panel {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 8px;
        width: 100%;
    }

    .timeline-jump-label {
        flex: 0 0 auto;
    }

    .timeline-jump-panel button {
        flex: 0 0 auto;
    }

    .timeline-jump-panel select {
        flex: 1 0 180px;
    }
}
/* =========================
   SHARED SCROLL AREA
========================= */

.pigskin-timeline-wrapper,
#yearTimeline {
    width: 100vw;
    max-width: 100vw;
    overflow-x: auto;
    overflow-y: visible;
    padding: 0 40px 28px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: auto;
    scrollbar-color: #c62828 #ddd;
}

    /* Scrollbar: Date + Year */

    .pigskin-timeline-wrapper::-webkit-scrollbar,
    #yearTimeline::-webkit-scrollbar {
        height: 16px;
    }

    .pigskin-timeline-wrapper::-webkit-scrollbar-track,
    #yearTimeline::-webkit-scrollbar-track {
        background: #ddd;
        border-radius: 10px;
    }

    .pigskin-timeline-wrapper::-webkit-scrollbar-thumb,
    #yearTimeline::-webkit-scrollbar-thumb {
        background: #c62828;
        border-radius: 10px;
        border: 3px solid #ddd;
    }

        .pigskin-timeline-wrapper::-webkit-scrollbar-thumb:hover,
        #yearTimeline::-webkit-scrollbar-thumb:hover {
            background: #9f1f1f;
        }

/* Optional top scrollbar support */

.pigskin-scroll-top {
    overflow-x: auto;
    overflow-y: hidden;
    height: 16px;
    margin-bottom: 10px;
    scrollbar-width: auto;
    scrollbar-color: #c62828 #ddd;
}

    .pigskin-scroll-top::-webkit-scrollbar {
        height: 16px;
    }

    .pigskin-scroll-top::-webkit-scrollbar-track {
        background: #ddd;
        border-radius: 10px;
    }

    .pigskin-scroll-top::-webkit-scrollbar-thumb {
        background: #c62828;
        border-radius: 10px;
        border: 3px solid #ddd;
    }
/* =========================
   STICKY TIMELINE CONTROLS
========================= */

.timeline-controls-sticky {
    position: sticky;
    top: 0;
    z-index: 999;
    background: rgba(244, 239, 226, 0.94);
    backdrop-filter: blur(3px);
    border-bottom: 1px solid rgba(198, 40, 40, 0.25);
    padding: 10px 10px 12px;
    margin-bottom: 20px;
}

.admin-bar .timeline-controls-sticky {
    top: 32px;
}

.timeline-controls-sticky .timeline-toggle {
    margin: 0 auto 10px;
}

.timeline-controls-sticky .timeline-jump-nav {
    margin: 0 auto;
}

/* keeps month buttons scrollable if crowded */
.timeline-controls-sticky .timeline-jump-panel {
    max-width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
}

/* mobile: account for WP/admin or theme header */
@media (max-width: 768px) {
    .timeline-controls-sticky {
        top: 0;
        padding: 8px 8px 10px;
    }

    .admin-bar .timeline-controls-sticky {
        top: 46px;
    }

    .timeline-controls-sticky .timeline-toggle {
        margin-bottom: 8px;
    }
}
/* =========================
   FLOATING TIMELINE ACTIONS
========================= */

.timeline-floating-actions {
    position: fixed;
    right: 18px;
    bottom: 22px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

    .timeline-floating-actions button {
        border: 2px solid #c62828;
        background: #c62828;
        color: #fff;
        font-family: Georgia, 'Times New Roman', serif;
        font-weight: bold;
        padding: 9px 12px;
        border-radius: 6px;
        cursor: pointer;
        box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    }

        .timeline-floating-actions button:hover {
            background: #fff;
            color: #c62828;
        }

@media (max-width: 768px) {
    .timeline-floating-actions {
        right: 12px;
        bottom: 14px;
    }

        .timeline-floating-actions button {
            padding: 8px 10px;
            font-size: 0.8rem;
        }
}
/* =========================
   DATE TIMELINE LAYOUT
========================= */

.pigskin-timeline {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-start;
    position: relative;
    justify-content: flex-start;
    gap: 40px;
    padding: 60px 30px 90px;
    width: max-content;
    min-width: max-content;
    scroll-snap-type: x mandatory;
}

    /* Date timeline red line */

    .pigskin-timeline::before {
        content: '';
        position: absolute;
        top: 110px;
        left: 40px;
        right: 40px;
        height: 5px;
        background: #c62828;
        z-index: 1;
    }

/* =========================
   YEAR TIMELINE LAYOUT
========================= */

#yearTimeline .year-timeline {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: flex-start !important;
    position: relative !important;
    justify-content: flex-start !important;
    gap: 40px !important;
    padding: 60px 30px 90px !important;
    width: max-content !important;
    min-width: max-content !important;
    overflow: visible !important;
    scroll-snap-type: x mandatory !important;
}

    /* Year timeline red line */

    #yearTimeline .year-timeline::before {
        content: '';
        position: absolute;
        top: 110px;
        left: 40px;
        right: 40px;
        height: 5px;
        background: #c62828;
        z-index: 1;
    }

/* =========================
   DATE / YEAR COLUMNS
========================= */

.pigskin-timeline-item,
#yearTimeline .year-block {
    position: relative;
    text-decoration: none;
    color: inherit;
    z-index: 2;
    text-align: center;
    width: 260px !important;
    min-width: 260px !important;
    max-width: 260px !important;
    flex: 0 0 260px !important;
    scroll-snap-align: center;
    transition: transform 0.25s ease;
}

    .pigskin-timeline-item:hover,
    #yearTimeline .year-block:hover {
        transform: translateY(-5px);
        z-index: 3;
    }

/* =========================
   DATE / YEAR LABELS
========================= */

.pigskin-date {
    margin-bottom: 8px;
    color: #b71c1c;
    font-weight: bold;
}

.pigskin-day {
    font-size: 1.45rem;
    display: block;
}

#yearTimeline .year-title {
    margin: 0 0 8px !important;
    color: #b71c1c !important;
    font-weight: bold !important;
    font-size: 1.45rem !important;
    display: block !important;
    text-align: center !important;
}

/* =========================
   TIMELINE MARKERS
========================= */

.pigskin-marker {
    width: 22px;
    height: 22px;
    background: #fff;
    border: 4px solid #c62828;
    border-radius: 50%;
    margin: 8px auto 14px;
    z-index: 3;
    box-shadow: 0 3px 8px rgba(198, 40, 40, 0.3);
}

.pigskin-marker-today {
    width: 26px;
    height: 26px;
    border: 5px solid #c62828;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 0 0 4px rgba(198, 40, 40, 0.35);
    animation: pulse 2s infinite;
}

/* Year marker */

#yearTimeline .year-title::after {
    content: '';
    display: block;
    width: 22px;
    height: 22px;
    background: #fff;
    border: 4px solid #c62828;
    border-radius: 50%;
    margin: 8px auto 14px;
    box-shadow: 0 3px 8px rgba(198, 40, 40, 0.3);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(198, 40, 40, 0.5);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(198, 40, 40, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(198, 40, 40, 0);
    }
}

/* =========================
   CONTENT STACK
========================= */

.pigskin-content,
#yearTimeline .year-block {
    gap: 14px;
}

.pigskin-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
}

/* =========================
   NEWSPAPER CLIPPING CARDS
   Shared by Date + Year Views
========================= */


.pigskin-infocard {
    position: relative !important;
    background: linear-gradient(135deg, rgba(255,255,255,0.35), rgba(0,0,0,0.035)), #f3ead8 !important;
    border: 1px solid #ad9a78 !important;
    border-radius: 1px !important;
    padding: 17px 18px 16px !important;
    margin-bottom: 12px !important;
    font-family: Georgia, 'Times New Roman', serif !important;
    font-size: 0.9rem !important;
    line-height: 1.58 !important;
    color: #171717 !important;
    text-align: left !important;
    box-shadow: 2px 2px 0 #2d2116, 7px 7px 14px rgba(0,0,0,0.22) !important;
    max-height: 92px !important;
    overflow: hidden !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 4 !important;
    -webkit-box-orient: vertical !important;
    transition: max-height 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease !important;
}

    /* Paper texture overlay */

    
    .pigskin-infocard::before {
        content: '' !important;
        position: absolute !important;
        inset: 0 !important;
        background-image: url('https://www.transparenttextures.com/patterns/paper-fibers.png') !important;
        opacity: 0.38 !important;
        mix-blend-mode: multiply !important;
        pointer-events: none !important;
        z-index: 1 !important;
    }

    /* Fade edge while clipped */

    
    .pigskin-infocard::after {
        content: '' !important;
        position: absolute !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        height: 34px !important;
        background: linear-gradient( to bottom, rgba(243,234,216,0), rgba(243,234,216,0.96) ) !important;
        pointer-events: none !important;
        z-index: 2 !important;
    }

    /* Keep links readable */

    
    .pigskin-infocard a {
        color: #171717 !important;
        text-decoration: underline !important;
        text-decoration-thickness: 1px !important;
        text-underline-offset: 2px !important;
    }

    /* Mini headline if item begins with bold */

  
    .pigskin-infocard strong:first-child,
    .pigskin-infocard b:first-child {
        display: block;
        font-size: 1rem;
        font-weight: bold;
        margin-bottom: 6px;
        letter-spacing: 0.3px;
    }

    /* Hover expansion */

    
    .pigskin-infocard:hover {
        max-height: 320px !important;
        -webkit-line-clamp: unset !important;
        overflow-y: auto !important;
        border-color: #7c6748 !important;
        background: linear-gradient(135deg, rgba(255,255,255,0.42), rgba(0,0,0,0.045)), #f6eedf !important;
        box-shadow: 3px 3px 0 #2d2116, 12px 12px 22px rgba(0,0,0,0.3) !important;
    }

       
        .pigskin-infocard:hover::after {
            display: none !important;
        }

/* =========================
   FULL WIDTH - PAGE 17035
========================= */

.page-id-17035 .container,
.page-id-17035 .container-fluid {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin: 0 !important;
}

.page-id-17035 .row {
    display: block !important;
    margin: 0 !important;
}

.page-id-17035 .col-md-8,
.page-id-17035 .col-lg-8,
.page-id-17035 .content-area,
.page-id-17035 .primary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
}

.page-id-17035 .col-md-4,
.page-id-17035 .col-lg-4,
.page-id-17035 .sidebar,
.page-id-17035 aside,
.page-id-17035 .widget-area {
    display: none !important;
}

.page-id-17035 .bs-section,
.page-id-17035 .bs-blog-post {
    padding: 0 !important;
    margin: 0 !important;
}

/* =========================
   MOBILE OPTIMIZATION
   Phone becomes a vertical readable archive feed.
========================= */

@media (max-width: 768px) {

    .pigskin-timeline-box {
        width: 100%;
        max-width: 100%;
        padding: 22px 12px 30px;
        margin: 20px 0;
        border-left: none;
        border-right: none;
        border-radius: 0;
    }

    .pigskin-timeline-title {
        font-size: 1.25rem;
        line-height: 1.35;
        margin-bottom: 25px;
        letter-spacing: 1px;
    }

    .timeline-toggle {
        margin: 18px auto 22px;
        position: sticky;
        top: 0;
        z-index: 50;
        padding: 8px 0;
        background: rgba(244, 239, 226, 0.9);
        backdrop-filter: blur(2px);
    }

        .timeline-toggle button {
            padding: 10px 13px;
            font-size: 0.9rem;
        }

    .pigskin-scroll-top {
        display: none !important;
    }

    .pigskin-timeline-wrapper,
    #yearTimeline {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden !important;
        overflow-y: visible !important;
        padding: 0;
        scrollbar-width: none;
    }

        .pigskin-timeline-wrapper::-webkit-scrollbar,
        #yearTimeline::-webkit-scrollbar {
            display: none;
        }

        .pigskin-timeline,
        #yearTimeline .year-timeline {
            display: flex !important;
            flex-direction: column !important;
            flex-wrap: nowrap !important;
            align-items: stretch !important;
            justify-content: flex-start !important;
            gap: 28px !important;
            width: 100% !important;
            min-width: 100% !important;
            padding: 20px 0 30px !important;
            overflow: visible !important;
            scroll-snap-type: none !important;
        }

            .pigskin-timeline::before,
            #yearTimeline .year-timeline::before {
                display: none !important;
            }

        .pigskin-timeline-item,
        #yearTimeline .year-block {
            width: 100% !important;
            min-width: 100% !important;
            max-width: 100% !important;
            flex: none !important;
            transform: none !important;
            scroll-snap-align: none !important;
            border-bottom: 2px solid rgba(198, 40, 40, 0.5);
            padding-bottom: 22px;
        }

            .pigskin-timeline-item:hover,
            #yearTimeline .year-block:hover {
                transform: none !important;
            }

        .pigskin-date,
        #yearTimeline .year-title {
            text-align: left !important;
            margin: 0 0 8px !important;
            padding-left: 4px;
        }

        .pigskin-day,
        #yearTimeline .year-title {
            font-size: 1.35rem !important;
            line-height: 1.2 !important;
        }

            .pigskin-marker,
            .pigskin-marker-today,
            #yearTimeline .year-title::after {
                display: none !important;
            }

        .pigskin-content,
        #yearTimeline .year-block {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

     
    .pigskin-infocard {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        max-height: none !important;
        -webkit-line-clamp: unset !important;
        overflow: visible !important;
        display: block !important;
        font-size: 0.98rem !important;
        line-height: 1.58 !important;
        padding: 16px 17px !important;
        margin-bottom: 0 !important;
    }

        
        .pigskin-infocard::after {
            display: none !important;
        }

        
        .pigskin-infocard:hover {
            max-height: none !important;
            overflow: visible !important;
            box-shadow: 2px 2px 0 #2d2116, 7px 7px 14px rgba(0,0,0,0.22) !important;
        }
}

/* =========================
   SMALL PHONES
========================= */

@media (max-width: 480px) {

    .pigskin-timeline-box {
        padding: 20px 10px 28px;
    }

    .pigskin-timeline-title {
        font-size: 1.1rem;
    }

    .timeline-toggle button {
        padding: 9px 10px;
        font-size: 0.82rem;
    }

  
    .pigskin-infocard {
        font-size: 0.94rem !important;
        padding: 15px !important;
    }
}

/* =========================
   ARTICLE EVENT HIGHLIGHT
   Safe runtime highlight from ?pigskin_event=
========================= */

.pigskin-history-target-li {
    scroll-margin-top: 185px;
    border-radius: 4px;
    transition: background-color 0.35s ease, box-shadow 0.35s ease, outline 0.35s ease;
}

.pigskin-history-highlight {
    background: rgba(255, 232, 130, 0.85) !important;
    outline: 3px solid #c62828 !important;
    box-shadow: 0 0 0 6px rgba(198, 40, 40, 0.15), 0 8px 24px rgba(0,0,0,0.18) !important;
}

@media (max-width: 768px) {
    .pigskin-history-target-li {
        scroll-margin-top: 125px;
    }
}
/* =========================================================
   MOBILE CLEANUP FIX
   Put at VERY BOTTOM of pigskin-timeline.css
========================================================= */

@media (max-width: 768px) {

    /* Stop the fixed desktop toolbar from breaking mobile */
    .timeline-controls-sticky {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        transform: none !important;
        width: calc(100% - 24px) !important;
        max-width: calc(100% - 24px) !important;
        margin: 12px auto 22px !important;
        padding: 10px 10px 12px !important;
        z-index: 20 !important;
        box-sizing: border-box !important;
    }

    /* The page no longer needs top padding if mobile nav is not fixed */
    #dateTimeline,
    #yearTimeline {
        padding-top: 0 !important;
    }

    /* Keep toggle centered and visible */
    .timeline-controls-sticky .timeline-toggle {
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
        margin: 0 0 10px !important;
        padding: 0 !important;
        background: transparent !important;
        position: relative !important;
        top: auto !important;
    }

        .timeline-controls-sticky .timeline-toggle button {
            font-size: 0.82rem !important;
            padding: 8px 11px !important;
            white-space: nowrap !important;
        }

    /* Only show the active jump panel cleanly */
    .timeline-controls-sticky .timeline-jump-nav {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .timeline-controls-sticky .timeline-jump-panel {
        width: 100% !important;
        justify-content: flex-start !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        gap: 7px !important;
        padding-bottom: 4px !important;
    }

    .timeline-jump-label {
        flex: 0 0 auto !important;
        font-size: 0.85rem !important;
        white-space: nowrap !important;
    }

    .timeline-jump-panel button,
    .timeline-jump-panel select {
        flex: 0 0 auto !important;
        font-size: 0.8rem !important;
        padding: 7px 9px !important;
    }

    .timeline-jump-panel select {
        min-width: 180px !important;
        max-width: 100% !important;
    }

    /* Hide the vertical social share buttons on this timeline page for mobile */
    .page-id-17035 .heateor_sss_sharing_container,
    .page-id-17035 .heateor_sss_vertical_sharing,
    .page-id-17035 .heateorSssSharing,
    .page-id-17035 .addtoany_share_save_container,
    .page-id-17035 .a2a_floating_style,
    .page-id-17035 .wp-socializer,
    .page-id-17035 .shareaholic-canvas {
        display: none !important;
    }

    /* Give the timeline more breathing room */
    .pigskin-timeline-box {
        padding-top: 12px !important;
        margin-top: 0 !important;
    }

    .pigskin-timeline-title {
        font-size: 1.25rem !important;
        margin-bottom: 18px !important;
    }

    /* Make the cards feel less cramped */
    .pigskin-infocard,
    .pigskin-card {
        font-size: 0.95rem !important;
        line-height: 1.55 !important;
        padding: 15px 16px !important;
    }

    /* Floating buttons should not cover cards */
    .timeline-floating-actions {
        right: 10px !important;
        bottom: 10px !important;
        gap: 6px !important;
        z-index: 9999 !important;
    }

        .timeline-floating-actions button {
            font-size: 0.75rem !important;
            padding: 7px 9px !important;
            border-radius: 5px !important;
        }
}