/* Press Page Styles */

/* Sticky Search Container */
.sticky-search-container {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 15px 20px;
    margin: 20px -20px 30px -20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.sticky-controls-wrapper {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 900px;
    margin: 0 auto;
}

.filter-row {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Sort Buttons Row */
.sort-buttons-wrapper {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding: 8px 0 4px;
    border-top: 1px solid #eee;
}

.sort-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-right: 4px;
}

.sort-btn,
button.sort-btn {
    padding: 9px 22px !important;
    font-size: 0.82rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.03em !important;
    border: 2px solid #2c5530 !important;
    border-radius: 30px !important;
    background: #fff !important;
    background-color: #fff !important;
    color: #2c5530 !important;
    cursor: pointer !important;
    transition: background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease !important;
    white-space: nowrap !important;
    text-transform: none !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06) !important;
    display: inline-block !important;
    line-height: normal !important;
}

.sort-btn:hover,
button.sort-btn:hover {
    background: #f0f7f1 !important;
    background-color: #f0f7f1 !important;
    box-shadow: 0 2px 6px rgba(44,85,48,0.15) !important;
}

.sort-btn--active,
button.sort-btn--active {
    background: #2c5530 !important;
    background-color: #2c5530 !important;
    color: #fff !important;
    box-shadow: 0 2px 8px rgba(44,85,48,0.3) !important;
}

.sort-btn--active:hover,
button.sort-btn--active:hover {
    background: #1e3d22 !important;
    background-color: #1e3d22 !important;
}

.year-filter-wrapper {
    flex-shrink: 0;
}

/* Year Filter - Remove all default arrows and borders */
.sticky-search-container .year-filter,
.sticky-search-container select.year-filter,
#yearFilter.year-filter,
select#yearFilter.year-filter {
    min-width: 140px !important;
    max-width: 100% !important;
    padding: 12px 35px 12px 14px !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    border: none !important;
    border-radius: 8px !important;
    background: #fff !important;
    background-color: #fff !important;
    color: #2c5530 !important;
    cursor: pointer !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    -ms-appearance: none !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%232c5530' d='M6 9L1 4h10z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
    background-size: 12px !important;
    transition: background-color 0.2s !important;
    box-shadow: none !important;
    outline: none !important;
}

/* Remove default browser arrows */
.sticky-search-container .year-filter::-ms-expand,
select#yearFilter::-ms-expand {
    display: none !important;
}

.sticky-search-container .year-filter::-webkit-inner-spin-button,
.sticky-search-container .year-filter::-webkit-outer-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
}

/* Remove jQuery Mobile select wrapper styling */
.sticky-search-container .ui-select,
.sticky-search-container .ui-btn,
.sticky-search-container .ui-select .ui-btn,
.year-filter-wrapper .ui-select,
.year-filter-wrapper .ui-btn,
.year-filter-wrapper .ui-selectmenu-button,
.year-filter-wrapper .ui-selectmenu-button .ui-btn,
.year-filter-wrapper .ui-selectmenu-button .ui-icon {
    border: none !important;
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
}

/* Hide jQuery Mobile select arrow icons */
.year-filter-wrapper .ui-icon,
.year-filter-wrapper .ui-icon-carat-d,
.year-filter-wrapper .ui-icon-carat-u,
.year-filter-wrapper .ui-selectmenu-button .ui-icon,
.year-filter-wrapper .ui-selectmenu-button .ui-icon-carat-d,
.year-filter-wrapper .ui-selectmenu-button .ui-icon-carat-u {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
}

.sticky-search-container .year-filter option {
    padding: 10px !important;
    font-weight: normal !important;
}

.sticky-search-container .year-filter:hover,
select#yearFilter:hover {
    background-color: #f0f7f1 !important;
    border: none !important;
}

.sticky-search-container .year-filter:focus,
select#yearFilter:focus {
    outline: none !important;
    background-color: #fff !important;
    border: none !important;
    box-shadow: none !important;
}

.search-filter-wrapper {
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
}

.sticky-search-container .search-filter,
.sticky-search-container input.search-filter,
#searchFilter.search-filter,
input#searchFilter.search-filter {
    width: 100% !important;
    padding: 12px 16px !important;
    font-size: 1rem !important;
    border: 1px solid #ddd !important;
    border-radius: 8px !important;
    background: #fff !important;
    background-color: #fff !important;
    outline: none !important;
    box-shadow: none !important;
    transition: border-color 0.2s, box-shadow 0.2s !important;
}

.sticky-search-container .search-filter:focus,
input#searchFilter:focus {
    border: 1px solid #2c5530 !important;
    box-shadow: 0 0 0 3px rgba(44, 85, 48, 0.1) !important;
    outline: none !important;
}

/* Remove jQuery Mobile input wrapper styling */
.sticky-search-container .ui-input-text,
.sticky-search-container .ui-input-text input,
.search-filter-wrapper .ui-input-text,
.search-filter-wrapper .ui-input-text input {
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    background-color: transparent !important;
}

.sticky-search-container .search-filter::placeholder {
    color: #999;
}

.press-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

.press-container h1.leoxTitle {
    text-align: center;
    margin-bottom: 10px;
}

.press-container .intro-text {
    text-align: center;
    margin-bottom: 30px;
}

.press-container .intro-text h2 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #2c5530;
    margin-bottom: 10px;
}

.press-container .intro-text p {
    color: #666;
    font-size: 0.95rem;
}


/* Press List */
.press-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 20px;
}

.press-item {
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.7); /* Fallback */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1), background 0.3s ease;
    text-decoration: none;
}

/* Random Pastel Colors for Cards */
.press-item:nth-child(15n + 1) { background: hsla(200, 90%, 92%, 0.7); }
.press-item:nth-child(15n + 1):hover { background: hsla(200, 90%, 92%, 0.9); }

.press-item:nth-child(15n + 2) { background: hsla(330, 90%, 92%, 0.7); }
.press-item:nth-child(15n + 2):hover { background: hsla(330, 90%, 92%, 0.9); }

.press-item:nth-child(15n + 3) { background: hsla(70, 70%, 90%, 0.7); }
.press-item:nth-child(15n + 3):hover { background: hsla(70, 70%, 90%, 0.9); }

.press-item:nth-child(15n + 4) { background: hsla(24, 100%, 90%, 0.7); }
.press-item:nth-child(15n + 4):hover { background: hsla(24, 100%, 90%, 0.9); }

.press-item:nth-child(15n + 5) { background: hsla(250, 80%, 93%, 0.7); }
.press-item:nth-child(15n + 5):hover { background: hsla(250, 80%, 93%, 0.9); }

.press-item:nth-child(15n + 6) { background: hsla(100, 70%, 90%, 0.7); }
.press-item:nth-child(15n + 6):hover { background: hsla(100, 70%, 90%, 0.9); }

.press-item:nth-child(15n + 7) { background: hsla(15, 100%, 91%, 0.7); }
.press-item:nth-child(15n + 7):hover { background: hsla(15, 100%, 91%, 0.9); }

.press-item:nth-child(15n + 8) { background: hsla(190, 80%, 91%, 0.7); }
.press-item:nth-child(15n + 8):hover { background: hsla(190, 80%, 91%, 0.9); }

.press-item:nth-child(15n + 9) { background: hsla(45, 100%, 88%, 0.7); }
.press-item:nth-child(15n + 9):hover { background: hsla(45, 100%, 88%, 0.9); }

.press-item:nth-child(15n + 10) { background: hsla(275, 80%, 92%, 0.7); }
.press-item:nth-child(15n + 10):hover { background: hsla(275, 80%, 92%, 0.9); }

.press-item:nth-child(15n + 11) { background: hsla(150, 60%, 92%, 0.7); }
.press-item:nth-child(15n + 11):hover { background: hsla(150, 60%, 92%, 0.9); }

.press-item:nth-child(15n + 12) { background: hsla(0, 100%, 92%, 0.7); }
.press-item:nth-child(15n + 12):hover { background: hsla(0, 100%, 92%, 0.9); }

.press-item:nth-child(15n + 13) { background: hsla(220, 100%, 93%, 0.7); }
.press-item:nth-child(15n + 13):hover { background: hsla(220, 100%, 93%, 0.9); }

.press-item:nth-child(15n + 14) { background: hsla(300, 80%, 92%, 0.7); }
.press-item:nth-child(15n + 14):hover { background: hsla(300, 80%, 92%, 0.9); }

.press-item:nth-child(15n + 15) { background: hsla(180, 70%, 90%, 0.7); }
.press-item:nth-child(15n + 15):hover { background: hsla(180, 70%, 90%, 0.9); }

.press-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.press-date {
    font-weight: 700;
    color: #2c5530;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.press-separator {
    display: none;
}

.press-source {
    color: #666;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 12px;
}

.press-title {
    display: block;
    color: #1a1a1a;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.4;
    transition: color 0.2s;
    margin-top: auto;
}

a.press-title {
    color: #008080;
}

a.press-title:visited {
    color: #008080;
}

a.press-title:hover {
    color: #006666;
    text-decoration: underline;
}

a.press-title:visited:hover {
    color: #006666;
}

span.press-title {
    cursor: default;
}

.sticky-search-container .filter-tip {
    margin-top: 0;
    margin-bottom: 15px;
    padding: 0 0 15px 0;
    background: transparent;
    border-radius: 0;
    font-size: 0.85rem;
    color: #666;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .sticky-search-container {
        margin: 15px 0 20px 0;
        padding: 12px 0;
    }
    
    .sticky-controls-wrapper {
        gap: 12px;
    }

    .filter-row {
        gap: 8px;
        flex-wrap: nowrap;
        width: 100%;
    }
    
    .year-filter-wrapper {
        flex-shrink: 0;
    }
    
    .sticky-search-container .year-filter {
        min-width: 110px !important;
        padding: 10px 30px 10px 10px !important;
        font-size: 0.95rem !important;
    }

    .sort-buttons-wrapper {
        gap: 8px;
        flex-wrap: wrap;
        width: 100%;
    }

    .sort-btn,
    button.sort-btn {
        padding: 8px 18px !important;
        font-size: 0.8rem !important;
    }
    
    .press-container {
        padding: 15px;
    }
    
    .press-list {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .press-item {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .press-container .intro-text h2 {
        font-size: 1.2rem;
    }

    .sticky-controls-wrapper {
        gap: 8px;
    }

    .sticky-search-container .year-filter {
        min-width: 120px;
        padding: 10px 30px 10px 10px;
        font-size: 0.9rem;
    }

    .sticky-search-container .search-filter {
        padding: 10px 12px;
        font-size: 0.9rem;
    }

    .press-date {
        font-size: 0.85rem;
    }

    .press-source {
        font-size: 0.8rem;
    }

    .press-title {
        font-size: 0.95rem;
    }
}

/* ─── Typography Measure ─── */
/* .press-container .intro-text p is centered (text-align:center) — exempt.
   .press-title/.press-date/.press-source are UI list elements — exempt.
   Targeting any prose paragraph blocks within the press container. */
.press-container p:not(.intro-text p) {
  max-width: 68ch !important;
  line-height: 1.9 !important;
  font-size: clamp(0.9375rem, 1.5vw, 1.0625rem) !important;
}

.press-container .intro-text p {
  max-width: 100% !important;
}

.press-container li {
  max-width: 72ch !important;
  line-height: 1.85 !important;
}

/* Desktop layout for search controls (1 row) */
@media (min-width: 992px) {
    .sticky-controls-wrapper {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        max-width: 1000px;
    }
    
    .filter-row {
        flex: 1;
    }
    
    .search-filter-wrapper {
        flex: 0 1 350px;
    }
    
    .sort-buttons-wrapper {
        border-top: none;
        padding: 0;
        margin-left: 15px;
    }
}
