/*
 * Sitewide design system for every public page EXCEPT the homepage (the
 * homepage has its own self-sufficient dist-front/css/home-redesign.css).
 * This file is intentionally self-sufficient — it redefines the same .hp
 * design tokens rather than depending on home-redesign.css loading first,
 * so each page that includes it works correctly on its own and homepage
 * CSS can keep evolving independently without risk to the rest of the
 * site. Everything is scoped under .hp so it can never affect the admin
 * panel or leak onto a page that doesn't opt in.
 */

.hp {
    --hp-ink: #10182b;
    --hp-muted: #5b6472;
    --hp-bg: #f6f8fb;
    --hp-surface: #ffffff;
    --hp-border: #e7eaf0;
    --hp-radius-lg: 24px;
    --hp-radius-md: 16px;
    --hp-radius-sm: 10px;
    --hp-shadow-sm: 0 2px 10px rgba(16, 24, 43, 0.06);
    --hp-shadow-md: 0 12px 30px rgba(16, 24, 43, 0.10);
    --hp-shadow-lg: 0 24px 60px rgba(16, 24, 43, 0.16);
    --hp-gradient: linear-gradient(135deg, var(--hp-primary, #5374d3) 0%, var(--hp-secondary, #1dc175) 100%);
    background: var(--hp-bg);
    color: var(--hp-ink);
    font-family: 'Maven Pro', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    overflow-x: hidden;
}
.hp * { box-sizing: border-box; }
.hp h1, .hp h2, .hp h3, .hp h4 {
    font-family: 'Maven Pro', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-weight: 700;
    color: var(--hp-ink);
    letter-spacing: -0.01em;
}
.hp a { color: var(--hp-primary, #5374d3); }
.hp img { max-width: 100%; }

.hp .hp-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--hp-primary, #5374d3);
    background: #eef1fb;
    background: color-mix(in srgb, var(--hp-primary, #5374d3) 10%, white);
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 14px;
}

.hp .hp-section { padding: 56px 0; }
.hp .hp-section-tight { padding: 32px 0; }
.hp .hp-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.hp .hp-section-head h2 { font-size: 1.6rem; margin: 0 0 8px; }
.hp .hp-section-head p { color: var(--hp-muted); margin: 0; max-width: 560px; }

/* ---------- Buttons ---------- */
.hp .hp-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    font-weight: 600; font-size: 0.95rem; padding: 13px 26px; border-radius: 999px;
    border: none; cursor: pointer; text-decoration: none; white-space: nowrap;
    transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
}
.hp .hp-btn-primary {
    background: var(--hp-gradient); color: #fff;
    box-shadow: 0 10px 24px rgba(83, 116, 211, 0.35);
    box-shadow: 0 10px 24px color-mix(in srgb, var(--hp-primary, #5374d3) 45%, transparent);
}
.hp .hp-btn-primary:hover { transform: translateY(-2px); color: #fff; }
.hp .hp-btn-outline { background: transparent; color: var(--hp-primary, #5374d3); border: 1.5px solid var(--hp-border); }
.hp .hp-btn-outline:hover { border-color: var(--hp-primary, #5374d3); background: #f2f4fc; background: color-mix(in srgb, var(--hp-primary, #5374d3) 8%, white); color: var(--hp-primary, #5374d3); transform: translateY(-2px); }
.hp .hp-btn-ghost { background: rgba(255,255,255,0.14); color: #fff; border: 1.5px solid rgba(255,255,255,0.55); backdrop-filter: blur(6px); }
.hp .hp-btn-ghost:hover { background: rgba(255,255,255,0.26); color: #fff; transform: translateY(-2px); }
.hp .hp-btn-sm { padding: 9px 18px; font-size: 0.85rem; }
.hp .hp-btn-block { width: 100%; }

/* ---------- Page header (listing/category/archive/search/info pages) ---------- */
.hp-page-header {
    position: relative;
    padding: 46px 0 34px;
    background: linear-gradient(180deg, #eef1fb 0%, var(--hp-bg) 100%);
    border-bottom: 1px solid var(--hp-border);
    overflow: hidden;
}
.hp-page-header::before {
    content: "";
    position: absolute;
    top: -60px; right: -60px;
    width: 260px; height: 260px;
    border-radius: 50%;
    background: var(--hp-gradient);
    opacity: 0.10;
}
.hp-page-header h1 {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    margin: 6px 0 0;
    position: relative;
}
.hp-page-header p.hp-page-desc {
    color: var(--hp-muted);
    max-width: 680px;
    margin: 10px 0 0;
    position: relative;
}

/* ---------- Breadcrumb ---------- */
.hp-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.85rem;
    position: relative;
}
.hp-breadcrumb li { display: flex; align-items: center; gap: 6px; color: var(--hp-muted); }
.hp-breadcrumb li a { color: var(--hp-muted); text-decoration: none; font-weight: 500; }
.hp-breadcrumb li a:hover { color: var(--hp-primary, #5374d3); }
.hp-breadcrumb li:not(:last-child)::after { content: "/"; color: #b7bec9; margin-left: 6px; }
.hp-breadcrumb li[aria-current="page"] { color: var(--hp-ink); font-weight: 600; }

/* ---------- Cards (article / post cards used everywhere) ---------- */
.hp-card {
    position: relative;
    display: block;
    border-radius: var(--hp-radius-md);
    overflow: hidden;
    background: var(--hp-surface);
    box-shadow: var(--hp-shadow-sm);
    text-decoration: none;
    color: inherit;
    height: 100%;
    transition: transform .3s ease, box-shadow .3s ease;
}
.hp-card:hover { transform: translateY(-6px); box-shadow: var(--hp-shadow-lg); color: inherit; }
.hp-card-media { position: relative; overflow: hidden; aspect-ratio: 16 / 10; background: var(--hp-border); }
.hp-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.hp-card:hover .hp-card-media img { transform: scale(1.06); }
.hp-card-badge {
    position: absolute; top: 14px; left: 14px;
    background: rgba(255,255,255,0.92); color: var(--hp-primary, #5374d3);
    font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em;
    padding: 5px 12px; border-radius: 999px; z-index: 2;
}
.hp-card-body { padding: 18px 20px 20px; }
.hp-card-body h2, .hp-card-body h3 { font-size: 1.05rem; line-height: 1.4; margin: 0 0 10px; }
.hp-card-meta { color: var(--hp-muted); font-size: 0.82rem; display: flex; align-items: center; flex-wrap: wrap; gap: 4px 14px; }
.hp-card-meta span { display: inline-flex; align-items: center; gap: 5px; }

.hp-card-grid { --hp-grid-gap: 22px; display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--hp-grid-gap); }
@media (max-width: 767px) { .hp-card-grid { grid-template-columns: 1fr; } }

/* ---------- Sidebar-style list items (used in sidebar + related-content rails) ---------- */
.hp-side-list { display: flex; flex-direction: column; gap: 14px; }
.hp-side-item {
    display: flex; gap: 14px; text-decoration: none; color: inherit;
    background: var(--hp-surface); border: 1px solid var(--hp-border); border-radius: var(--hp-radius-sm);
    padding: 10px; transition: transform .2s ease, box-shadow .2s ease;
}
.hp-side-item:hover { transform: translateX(4px); box-shadow: var(--hp-shadow-sm); color: inherit; }
.hp-side-item .hp-side-thumb { flex: none; width: 84px; height: 64px; border-radius: 8px; overflow: hidden; background: var(--hp-border); }
.hp-side-item .hp-side-thumb img { width: 100%; height: 100%; object-fit: cover; }
.hp-side-item .hp-side-body { min-width: 0; }
.hp-side-item .hp-side-body h3, .hp-side-item .hp-side-body h4 { font-size: 0.92rem; margin: 0 0 4px; line-height: 1.35; }

/* ---------- Chips ---------- */
.hp-chip-row { display: flex; flex-wrap: wrap; gap: 10px; }
.hp-chip {
    display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px;
    background: var(--hp-surface); border: 1.5px solid var(--hp-border); color: var(--hp-ink);
    font-size: 0.85rem; font-weight: 600; text-decoration: none; transition: all .2s ease;
}
.hp-chip:hover { border-color: transparent; background: var(--hp-gradient); color: #fff; transform: translateY(-2px); }

/* ---------- Ad slots ---------- */
.hp-ad-slot { text-align: center; }
.hp-ad-slot .hp-ad-tag { display: block; font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--hp-muted); margin-bottom: 8px; }
.hp-ad-slot img { max-width: 100%; height: auto; border-radius: var(--hp-radius-sm); }

/* ---------- Sidebar widgets ---------- */
.hp-sidebar-wrap { background: var(--hp-bg); border-radius: var(--hp-radius-md); padding: 4px; }
.hp .sidebar .widget {
    background: var(--hp-surface);
    border: 1px solid var(--hp-border);
    border-radius: var(--hp-radius-md);
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--hp-shadow-sm);
}
.hp .sidebar .widget h2 { font-size: 1.05rem; margin: 0 0 16px; display: flex; align-items: center; gap: 8px; }
.hp .sidebar .widget h2::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--hp-gradient); flex: none; }
.hp .sidebar .tag .tag-item { display: inline-block; margin: 0 6px 8px 0; }
.hp .sidebar .tag .badge { background: var(--hp-bg) !important; color: var(--hp-ink); font-weight: 600; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--hp-border); }
.hp .sidebar .tag .badge:hover { background: var(--hp-gradient) !important; color: #fff; }

/* ---------- Pagination ---------- */
.hp .pagination { gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.hp .page-link {
    border-radius: 10px !important;
    border: 1px solid var(--hp-border);
    color: var(--hp-ink);
    font-weight: 600;
    min-width: 40px;
    text-align: center;
}
.hp .page-item.active .page-link { background: var(--hp-gradient) !important; border-color: transparent !important; }
.hp .page-item.disabled .page-link { opacity: 0.5; }

/* ---------- Empty state ---------- */
.hp-empty-state {
    text-align: center;
    padding: 56px 24px;
    background: var(--hp-surface);
    border: 1px dashed var(--hp-border);
    border-radius: var(--hp-radius-md);
    color: var(--hp-muted);
}
.hp-empty-state .hp-empty-icon {
    width: 64px; height: 64px; margin: 0 auto 18px;
    border-radius: 50%; background: var(--hp-bg);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem; color: var(--hp-primary, #5374d3);
}
.hp-empty-state h3 { color: var(--hp-ink); margin-bottom: 6px; }

/* ---------- Article header (post detail) ---------- */
.hp-article-header { padding: 40px 0 20px; }
.hp-article-header h1 {
    font-size: clamp(1.5rem, 3.4vw, 2.4rem);
    line-height: 1.25;
    margin: 10px 0 18px;
}
.hp-article-meta {
    display: flex; flex-wrap: wrap; gap: 8px 20px;
    color: var(--hp-muted); font-size: 0.88rem;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--hp-border);
}
.hp-article-meta span { display: inline-flex; align-items: center; gap: 6px; }
.hp-article-meta i { color: var(--hp-primary, #5374d3); }

.hp-article-media { border-radius: var(--hp-radius-md); overflow: hidden; box-shadow: var(--hp-shadow-md); margin: 26px 0; }
.hp-article-media img { width: 100%; height: auto; display: block; }

/* ---------- Prose / Gutenberg-style rendered content ---------- */
.hp-prose {
    font-size: 1.06rem;
    line-height: 1.85;
    color: #232b3d;
    max-width: 100%;
}
.hp-prose > *:first-child { margin-top: 0; }
.hp-prose h1 { font-size: 1.9rem; margin: 2em 0 0.6em; }
.hp-prose h2 { font-size: 1.55rem; margin: 1.8em 0 0.6em; padding-top: 0.2em; border-top: 1px solid var(--hp-border); }
.hp-prose h2:first-child { border-top: none; padding-top: 0; }
.hp-prose h3 { font-size: 1.28rem; margin: 1.6em 0 0.5em; }
.hp-prose h4 { font-size: 1.1rem; margin: 1.4em 0 0.5em; }
.hp-prose p { margin: 0 0 1.3em; }
.hp-prose ul, .hp-prose ol { margin: 0 0 1.3em; padding-left: 1.4em; }
.hp-prose li { margin-bottom: 0.5em; }
.hp-prose li > ul, .hp-prose li > ol { margin-top: 0.5em; margin-bottom: 0; }
.hp-prose a { color: var(--hp-primary, #5374d3); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--hp-primary, #5374d3) 40%, transparent); text-underline-offset: 2px; }
.hp-prose a:hover { text-decoration-color: var(--hp-primary, #5374d3); }
.hp-prose strong, .hp-prose b { color: var(--hp-ink); font-weight: 700; }

.hp-prose blockquote {
    margin: 1.8em 0;
    padding: 18px 24px;
    background: #f4f6fb;
    background: color-mix(in srgb, var(--hp-primary, #5374d3) 5%, var(--hp-bg));
    border-left: 4px solid var(--hp-primary, #5374d3);
    border-radius: 0 var(--hp-radius-sm) var(--hp-radius-sm) 0;
    font-style: italic;
    color: #3a4356;
}
.hp-prose blockquote p:last-child { margin-bottom: 0; }

.hp-prose table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.8em 0;
    font-size: 0.95rem;
    display: block;
    overflow-x: auto;
    white-space: nowrap;
}
.hp-prose table thead { background: var(--hp-bg); }
.hp-prose table th, .hp-prose table td {
    border: 1px solid var(--hp-border);
    padding: 10px 14px;
    text-align: left;
    white-space: normal;
}
.hp-prose table th { font-weight: 700; color: var(--hp-ink); }
.hp-prose table tbody tr:nth-child(even) { background: #fafbfd; }

.hp-prose img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: var(--hp-radius-sm);
    margin: 1.6em auto;
    box-shadow: var(--hp-shadow-sm);
}
.hp-prose figure { margin: 1.8em 0; }
.hp-prose figure img { margin: 0 auto; }
.hp-prose figcaption { text-align: center; color: var(--hp-muted); font-size: 0.85rem; margin-top: 10px; }

.hp-prose iframe, .hp-prose video {
    max-width: 100%;
    border-radius: var(--hp-radius-sm);
    margin: 1.6em 0;
}
.hp-prose iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: none; }

.hp-prose pre {
    background: #12182b;
    color: #e6e9f2;
    padding: 18px 20px;
    border-radius: var(--hp-radius-sm);
    overflow-x: auto;
    margin: 1.6em 0;
    font-size: 0.9rem;
}
.hp-prose code {
    background: color-mix(in srgb, var(--hp-primary, #5374d3) 8%, var(--hp-bg));
    padding: 0.15em 0.4em;
    border-radius: 5px;
    font-size: 0.9em;
}
.hp-prose pre code { background: none; padding: 0; }

.hp-prose hr { border: none; border-top: 1px solid var(--hp-border); margin: 2.4em 0; }

/* Case-law breakdown blocks (Facts / Legal Issue / Decision / Principle /
   Importance) that the SEO content pass structures directly into the
   article body. Kept inside .hp-prose scope since this markup lives in the
   stored post_detail HTML, not a separate template. Distinct visual/DOM
   structure here (definition list, not plain paragraphs) is deliberate:
   it helps both human scanning and AI/answer-engine extraction. */
.hp-prose .hp-case-law {
    margin: 1.8em 0;
    padding: 22px 24px;
    background: var(--hp-surface, #fff);
    border: 1px solid var(--hp-border);
    border-left: 4px solid var(--hp-secondary, #5374d3);
    border-radius: var(--hp-radius-sm);
}
.hp-prose .hp-case-law-name {
    margin: 0 0 0.9em;
    font-size: 1.15rem;
}
.hp-prose dl.hp-case-law-grid {
    margin: 0;
    display: grid;
    gap: 14px;
}
.hp-prose .hp-case-law-item { margin: 0; }
.hp-prose .hp-case-law-item dt {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--hp-muted);
    margin-bottom: 0.3em;
}
.hp-prose .hp-case-law-item dd {
    margin: 0;
    color: #232b3d;
}

.hp-prose .btn, .hp-prose a.button {
    display: inline-flex; padding: 10px 22px; border-radius: 999px;
    background: var(--hp-gradient); color: #fff !important; text-decoration: none; font-weight: 600;
}

@media (max-width: 575px) {
    .hp-prose { font-size: 1rem; }
    .hp-prose h2 { font-size: 1.32rem; }
    .hp-prose h3 { font-size: 1.14rem; }
}

/* ---------- Related content ---------- */
.hp-related { margin-top: 44px; padding-top: 36px; border-top: 1px solid var(--hp-border); }
.hp-related .hp-section-head { margin-bottom: 22px; }
.hp-related-track { display: grid; grid-auto-flow: column; grid-auto-columns: 260px; gap: 18px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x proximity; }
.hp-related-track .hp-card { scroll-snap-align: start; }
.hp-related-track::-webkit-scrollbar { height: 6px; }
.hp-related-track::-webkit-scrollbar-thumb { background: var(--hp-border); border-radius: 6px; }

/* ---------- Share / comment blocks ---------- */
.hp-share-block, .hp-comment-block { margin-top: 34px; padding-top: 28px; border-top: 1px solid var(--hp-border); }
.hp-share-block h2, .hp-comment-block h2 { font-size: 1.2rem; margin-bottom: 14px; }

/* ---------- Gallery grids ---------- */
.hp-gallery-item { position: relative; border-radius: var(--hp-radius-md); overflow: hidden; box-shadow: var(--hp-shadow-sm); background: var(--hp-surface); }
.hp-gallery-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--hp-border); }
.hp-gallery-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.hp-gallery-item:hover .hp-gallery-media img { transform: scale(1.08); }
.hp-gallery-zoom {
    position: absolute; top: 12px; right: 12px; width: 38px; height: 38px; border-radius: 50%;
    background: rgba(255,255,255,0.92); color: var(--hp-primary, #5374d3);
    display: flex; align-items: center; justify-content: center; text-decoration: none;
    opacity: 0; transform: translateY(-6px); transition: all .25s ease;
}
.hp-gallery-item:hover .hp-gallery-zoom { opacity: 1; transform: translateY(0); }
.hp-gallery-play {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
}
.hp-gallery-play .hp-play-btn {
    width: 52px; height: 52px; border-radius: 50%; background: rgba(255,255,255,0.92);
    color: var(--hp-primary, #5374d3); display: flex; align-items: center; justify-content: center;
    font-size: 1rem; transition: transform .25s ease;
}
.hp-gallery-item:hover .hp-play-btn { transform: scale(1.12); }
.hp-gallery-body { padding: 14px 16px; }
.hp-gallery-body a.hp-gallery-title { color: var(--hp-ink); text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.hp-gallery-date { color: var(--hp-muted); font-size: 0.8rem; margin-top: 6px; display: flex; align-items: center; gap: 6px; }

/* ---------- Info pages (about / contact / faq / terms / privacy / disclaimer) ---------- */
.hp-info-page { padding: 48px 0 64px; }
.hp-info-card { background: var(--hp-surface); border: 1px solid var(--hp-border); border-radius: var(--hp-radius-md); padding: clamp(20px, 4vw, 44px); box-shadow: var(--hp-shadow-sm); }

/* FAQ accordion */
.hp .accordion-item { border: 1px solid var(--hp-border) !important; border-radius: var(--hp-radius-sm) !important; overflow: hidden; margin-bottom: 12px; }
.hp .accordion-button { font-weight: 600; background: var(--hp-surface); }
.hp .accordion-button:not(.collapsed) { background: #f2f4fc; background: color-mix(in srgb, var(--hp-primary, #5374d3) 6%, white); box-shadow: none; }
.hp .accordion-button:focus { box-shadow: 0 0 0 3px color-mix(in srgb, var(--hp-primary, #5374d3) 20%, transparent); }

/* ---------- Forms (contact / login / forget / reset password) ---------- */
.hp-form-card {
    background: var(--hp-surface);
    border: 1px solid var(--hp-border);
    border-radius: var(--hp-radius-md);
    padding: clamp(22px, 4vw, 36px);
    box-shadow: var(--hp-shadow-sm);
}
.hp .login-form .form-label,
.hp .contact-form .form-label,
.hp-form-card .form-label { font-weight: 600; font-size: 0.9rem; margin-bottom: 6px; }
.hp .login-form .form-control,
.hp .contact-form .form-control,
.hp .contact-form textarea,
.hp-form-card .form-control {
    border-radius: var(--hp-radius-sm);
    border: 1.5px solid var(--hp-border);
    padding: 11px 14px;
}
.hp .login-form .form-control:focus,
.hp .contact-form .form-control:focus,
.hp-form-card .form-control:focus {
    border-color: var(--hp-primary, #5374d3);
    box-shadow: 0 0 0 4px rgba(83, 116, 211, 0.14);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--hp-primary, #5374d3) 14%, transparent);
}
.hp .login-form .btn,
.hp .contact-form .btn,
.hp-form-card .btn {
    border-radius: 999px !important;
    background: var(--hp-gradient) !important;
    border: none !important;
    padding: 11px 28px;
    font-weight: 600;
}
.hp .login-form a { font-size: 0.9rem; margin-left: 12px; }

/* ---------- Motion & responsive ---------- */
@media (prefers-reduced-motion: reduce) {
    .hp .wow, .hp *[class*="wow"] { animation: none !important; opacity: 1 !important; transform: none !important; visibility: visible !important; }
    .hp .hp-card:hover, .hp .hp-side-item:hover, .hp .hp-btn:hover, .hp .hp-gallery-item:hover .hp-card-media img { transform: none !important; }
}

@media (max-width: 991px) {
    .hp .hp-section { padding: 40px 0; }
    .hp .hp-section-head { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 575px) {
    .hp-page-header { padding: 30px 0 24px; }
    .hp-related-track { grid-auto-columns: 220px; }
}

/* ----------------------------------------------------------------------
   Sidebar internals (front.layout.sidebar). That partial's markup and
   Blade logic (tag cloud, archive dropdown, live-channel embed, recent/
   popular tabs, poll widget, ad slot) is left completely untouched —
   these rules just re-skin the existing class names it already outputs,
   which is the lower-risk way to bring it in line with the rest of the
   redesign without touching a fairly complex, stateful template.
   ---------------------------------------------------------------------- */
.hp .sidebar .news-item {
    display: flex;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--hp-border);
}
.hp .sidebar .news-item:last-child { border-bottom: none; }
.hp .sidebar .news-item .left {
    flex: none;
    width: 76px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
}
.hp .sidebar .news-item .left img { width: 100%; height: 100%; object-fit: cover; }
.hp .sidebar .news-item .right { min-width: 0; }
.hp .sidebar .news-item .right h2 { font-size: 0.9rem; line-height: 1.35; margin: 0 0 4px; font-weight: 600; }
.hp .sidebar .news-item .right h2 a { color: var(--hp-ink); text-decoration: none; }
.hp .sidebar .news-item .right h2 a:hover { color: var(--hp-primary, #5374d3); }
.hp .sidebar .news-item .date a { color: var(--hp-muted); font-size: 0.78rem; text-decoration: none; }

.hp .sidebar .nav-pills { gap: 8px; }
.hp .sidebar .nav-pills .nav-link {
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 7px 16px;
    background: var(--hp-bg);
    color: var(--hp-ink);
}
.hp .sidebar .nav-pills .nav-link.active { background: var(--hp-gradient) !important; color: #fff; }

.hp .sidebar select.form-select,
.hp .sidebar .form-control {
    border-radius: var(--hp-radius-sm);
    border: 1.5px solid var(--hp-border);
}

.hp .sidebar .live-channel-item iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    border-radius: var(--hp-radius-sm);
}

.hp .sidebar .poll .question { font-weight: 600; margin-bottom: 12px; }
.hp .sidebar .poll .progress { border-radius: 999px; height: 10px; margin-bottom: 10px; }
.hp .sidebar .poll .btn,
.hp .sidebar .poll button[type="submit"] {
    border-radius: 999px !important;
    background: var(--hp-gradient) !important;
    border: none !important;
    font-weight: 600;
    padding: 8px 20px;
}
.hp .sidebar .poll .btn.old { background: transparent !important; color: var(--hp-primary, #5374d3) !important; border: 1.5px solid var(--hp-border) !important; }

.hp .sidebar .ad-sidebar { text-align: center; }
.hp .sidebar .ad-sidebar img { max-width: 100%; border-radius: var(--hp-radius-sm); }

/* Focus visibility (accessibility) */
.hp a:focus-visible,
.hp button:focus-visible,
.hp .hp-btn:focus-visible,
.hp .hp-chip:focus-visible {
    outline: 3px solid var(--hp-primary, #5374d3);
    outline-offset: 2px;
}
