a:hover{
    text-decoration:none !important;
}

/* ── Articles list page ─────────────────────────────────── */
.al-page {
    background: var(--bg-main);
    min-height: calc(100vh - 132px);
}

/* ── Hero ────────────────────────────────────────────────── */
.al-hero {
    max-width:1200px;
    margin:auto;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    padding: 28px 0 0;
}
.al-hero-inner {
    max-width: 1150px;
    margin: 0 auto;
    padding: 0 20px;
}
.al-eyebrow {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.al-eyebrow::before {
    content: '';
    width: 16px;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
}
.al-hero-title {
    font-size: clamp(20px, 3.5vw, 28px);
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: -.01em;
    margin-bottom: 4px;
}
.al-hero-sub {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

/* ── Category tabs ───────────────────────────────────────── */
.al-cats {
    display: flex;
    align-items: center;
    gap: 4px;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 1px;
}
.al-cats::-webkit-scrollbar { display: none; }

.al-cat-btn {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    padding: 8px 14px;
    border-radius: 0;
    border-bottom: 2px solid transparent;
    transition: color 140ms, border-color 140ms;
    flex-shrink: 0;
    margin-bottom: -1px;
}
.al-cat-btn:hover  { color: var(--text-main); }
.al-cat-btn.active { color: var(--accent); border-bottom-color: var(--accent); font-weight: 600; }

/* ── Top ad ──────────────────────────────────────────────── */
.al-ad-top {
    max-width: 1100px;
    margin: 20px auto 0;
    padding: 0 20px;
    display: none;
}
.al-ad-top.has-ad { display: block; }
.al-ad-top-inner {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    padding: 6px 0;
}

/* ── Main layout ─────────────────────────────────────────── */
.al-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 24px 20px 60px;
}

/* ── Toolbar ─────────────────────────────────────────────── */
.al-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.al-count {
    font-size: 13px;
    color: var(--text-muted);
    flex-shrink: 0;
}
.al-count strong { color: var(--text-main); }

.al-search {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 7px 12px;
    transition: border-color 140ms;
    width: 240px;
}
.al-search:focus-within { border-color: var(--accent); }
.al-search svg   { color: var(--text-muted); flex-shrink: 0; }
.al-search input { flex: 1; background: none; border: none; font-size: 13px; color: var(--text-main); font-family: inherit; min-width: 0; }
.al-search input::placeholder { color: var(--text-muted); opacity: .6; }
.al-search input:focus { outline: none; }

.al-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-soft);
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: 99px;
    padding: 4px 12px;
}
.al-filter-chip a { color: var(--text-muted); text-decoration: none; font-size: 11px; }
.al-filter-chip a:hover { color: #f87171; }

/* ── Grid ────────────────────────────────────────────────── */
.al-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 20px;
}

/* ── Card ────────────────────────────────────────────────── */
.al-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    color: var(--text-main);
    display: flex;
    flex-direction: column;
    transition: border-color 180ms, box-shadow 180ms, transform 160ms;
}
.al-card:hover {
    border-color: var(--accent);
    box-shadow: 0 6px 20px rgba(0,0,0,.18);
    transform: translateY(-2px);
}

.al-card-img {
    aspect-ratio: 16/9;
    overflow: hidden;
    position: relative;
    background: var(--bg-soft);
    flex-shrink: 0;
}
.al-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 300ms ease;
}
.al-card:hover .al-card-img img { transform: scale(1.04); }

.al-card-cat {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: #fff;
    background: rgba(0,0,0,.52);
    backdrop-filter: blur(4px);
    border-radius: 4px;
    padding: 3px 8px;
}

.al-card-body {
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    /*gap: 6px;*/
    flex: 1;
}

.al-card-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-main);
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom:0px;
}

.al-card-sub {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.al-card-read {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    margin-top: auto;
    padding-top: 6px;
}

/* ── In-feed ad card ─────────────────────────────────────── */
.al-ad-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    padding: 10px;
    display: none; /* hidden until ad fills */
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 220px;
}
.al-ad-card.has-ad { display: flex; }

.al-ad-label {
    font-size: 9px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--text-muted);
    opacity: .45;
    text-align: center;
    display: block;
    margin-bottom: 6px;
    width: 100%;
}

/* ── Empty state ─────────────────────────────────────────── */
.al-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 80px 20px;
    text-align: center;
    color: var(--text-muted);
}
.al-empty svg { opacity: .3; }
.al-empty p   { font-size: 14px; }
.al-clear { font-size: 13px; color: var(--accent); text-decoration: none; font-weight: 500; }
.al-clear:hover { text-decoration: underline; }

/* ── Bottom ad ───────────────────────────────────────────── */
.al-ad-bottom {
    margin-top: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    padding: 6px 0;
    display: none;
}
.al-ad-bottom.has-ad { display: block; }

/* ── Pagination ──────────────────────────────────────────── */
.al-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 32px;
}
.al-page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    border-radius: 7px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: background 140ms, color 140ms, border-color 140ms;
}
.al-page-btn:hover  { background: var(--bg-hover); color: var(--text-main); }
.al-page-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.al-page-btn.disabled { opacity: .35; pointer-events: none; }
.al-page-dots { color: var(--text-muted); font-size: 13px; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 700px) {
    .al-grid { grid-template-columns: 1fr; }
    .al-toolbar { flex-direction: column; align-items: flex-start; }
    .al-search { width: 100%; }
}
@media (max-width: 480px) {
    .al-hero-inner { padding: 0 14px; }
    .al-content     { padding: 16px 14px 40px; }
}
