/* Resources module — list page, featured article, article reading layout */

.big-search {
    display: flex;
    align-items: center;
    gap: .75rem;
    max-width: 720px;
    margin-top: 2rem;
    padding: .5rem .5rem .5rem 1.25rem;
    background: #fff;
    border: 1px solid var(--po-line);
    border-radius: 999px;
    box-shadow: var(--po-shadow);
}

.big-search .icon { color: var(--po-muted); flex: 0 0 auto; }

.big-search input {
    flex: 1;
    border: 0;
    outline: 0;
    font-size: 1.05rem;
    background: transparent;
    min-width: 0;
}

.big-search .btn { border-radius: 999px; }

.result-note { color: var(--po-muted); margin-bottom: 1.5rem; }

/* ---------- featured article ---------- */
.resource-feature {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    margin-bottom: 2rem;
    background: #fff;
    border: 1px solid var(--po-line);
    border-radius: var(--po-radius-lg);
    overflow: hidden;
    transition: box-shadow .25s, transform .25s;
}

.resource-feature:hover { box-shadow: var(--po-shadow-lg); transform: translateY(-3px); }

.resource-feature-cover {
    position: relative;
    min-height: 240px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1.75rem;
}

.resource-feature-label {
    font-weight: 800;
    font-size: 1.1rem;
    color: #fff;
    text-transform: capitalize;
}

.resource-feature-body { padding: 2rem 2.25rem; }
.resource-feature-body h2 { font-size: 1.75rem; font-weight: 800; margin: .75rem 0; line-height: 1.25; }
.resource-feature-body h2 a { color: var(--po-ink); text-decoration: none; }
.resource-feature-body p { color: var(--po-muted); font-size: 1.05rem; }

/* ---------- article ---------- */
.read-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    z-index: 1100;
    background: transparent;
}

.read-progress i {
    display: block;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--po-blue), var(--po-gold));
}

.article-title { max-width: 900px; }

.article-meta {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-top: 1.5rem;
}

.article-meta small { display: block; color: var(--po-muted); }

.article-body { font-size: 1.075rem; }

.article-end {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 3rem;
    padding: 1.25rem 1.5rem;
    border-radius: var(--po-radius);
    background: var(--po-sky);
}

.article-end p { margin: 0; font-weight: 700; }

.article-aside { top: 110px; display: grid; gap: 1.25rem; }

.aside-title {
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--po-muted);
    margin-bottom: .75rem;
}

.toc ol {
    list-style: none;
    margin: 0;
    padding: 0;
    border-left: 2px solid var(--po-line);
}

.toc a {
    display: block;
    padding: .35rem 0 .35rem 1rem;
    margin-left: -2px;
    border-left: 2px solid transparent;
    color: var(--po-muted);
    text-decoration: none;
    font-weight: 600;
    font-size: .925rem;
}

.toc a:hover, .toc a.is-active { color: var(--po-blue); border-left-color: var(--po-blue); }

.share-box, .toc, .aside-cta {
    padding: 1.25rem;
    border: 1px solid var(--po-line);
    border-radius: var(--po-radius);
    background: #fff;
}

.aside-cta { background: var(--po-navy); color: rgba(255, 255, 255, .8); border-color: var(--po-navy); }
.aside-cta-title { color: #fff; font-weight: 800; font-size: 1.1rem; margin-bottom: .25rem; }

@media (max-width: 767.98px) {
    .resource-feature { grid-template-columns: 1fr; }
    .resource-feature-cover { min-height: 140px; }
}

@media print {
    .site-header, .site-footer, .article-aside, .article-end, .read-progress, .section-tint { display: none !important; }
}
