/* =========================================================
   Publications – Reports, Publications & Presentations
   ========================================================= */

.yn-publications-wrap {
    font-family: inherit;
    margin: 1em 0 2em;
}

/* ── Filters ─────────────────────────────────────────────── */
.yn-pub-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: flex-end;
    margin-bottom: 1.2em;
}

.yn-pub-filters label {
    display: flex;
    flex-direction: column;
    font-size: 0.85em;
    font-weight: 600;
    gap: 4px;
    color: #333;
}

.yn-pub-filters select,
.yn-pub-filters input[type="search"],
.yn-pub-filters input[type="text"] {
    padding: 6px 10px;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-size: 0.9em;
    min-width: 160px;
}

.yn-pub-filters .yn-pub-search-label {
    flex: 1 1 200px;
}

.yn-pub-filters input[type="submit"],
.yn-pub-filters button {
    padding: 7px 18px;
    background: #4a4a4a;
    color: #fff;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 0.9em;
    align-self: flex-end;
}

.yn-pub-filters input[type="submit"]:hover,
.yn-pub-filters button:hover {
    background: #333;
}

.yn-pub-filter-reset {
    font-size: 0.82em;
    color: #888;
    text-decoration: none;
    align-self: flex-end;
    padding-bottom: 8px;
}

.yn-pub-filter-reset:hover {
    color: #333;
}

/* ── Table ───────────────────────────────────────────────── */
.yn-pub-table-wrap {
    overflow-x: auto;
}

.yn-pub-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9em;
}

.yn-pub-table thead tr {
    background: #3d3d3d;
    color: #fff;
}

.yn-pub-table thead th {
    padding: 10px 12px;
    text-align: left;
    font-weight: 600;
    white-space: nowrap;
}

.yn-pub-table thead th a {
    color: #fff;
    text-decoration: none;
}

.yn-pub-table thead th a:hover {
    text-decoration: underline;
}

/* sort arrows */
.yn-pub-table .yn-sort-asc::after  { content: " ▲"; font-size: 0.7em; }
.yn-pub-table .yn-sort-desc::after { content: " ▼"; font-size: 0.7em; }

.yn-pub-table tbody tr:nth-child(odd) {
    background: #f9f9f9;
}

.yn-pub-table tbody tr:nth-child(even) {
    background: #fff;
}

.yn-pub-table tbody tr:hover {
    background: #f0f4f8;
}

.yn-pub-table td {
    padding: 9px 12px;
    vertical-align: top;
    border-bottom: 1px solid #eee;
}

/* Title column – link in orange */
.yn-pub-table .yn-pub-col-title a {
    color: #c47c26;
    font-weight: 600;
    text-decoration: none;
}

.yn-pub-table .yn-pub-col-title a:hover {
    text-decoration: underline;
}

.yn-pub-table .yn-pub-col-title .yn-pub-summary {
    display: block;
    font-size: 0.82em;
    color: #555;
    margin-top: 3px;
    line-height: 1.4;
}

/* Narrow columns */
.yn-pub-table .yn-pub-col-date    { white-space: nowrap; width: 80px; }
.yn-pub-table .yn-pub-col-project { width: 180px; }
.yn-pub-table .yn-pub-col-types   { width: 180px; }
.yn-pub-table .yn-pub-col-sub     { width: 140px; }

/* ── Footer / Pagination ─────────────────────────────────── */
.yn-pub-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    margin-top: 1em;
    gap: 8px;
    font-size: 0.85em;
    color: #555;
}

.yn-pub-pagination {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.yn-pub-pagination a,
.yn-pub-pagination span {
    display: inline-block;
    padding: 4px 10px;
    border: 1px solid #ccc;
    border-radius: 3px;
    text-decoration: none;
    color: #333;
    font-size: 0.88em;
}

.yn-pub-pagination a:hover {
    background: #f0f0f0;
}

.yn-pub-pagination .yn-pub-page-current {
    background: #3d3d3d;
    color: #fff;
    border-color: #3d3d3d;
}

/* ── No results ──────────────────────────────────────────── */
.yn-pub-no-results {
    padding: 2em;
    text-align: center;
    color: #777;
    font-style: italic;
    border: 1px solid #eee;
    border-radius: 3px;
}
