/* PSX Companies & Sectors - front-end styles */

.psx-companies-wrap {
    max-width: 1100px;
    margin: 0 auto;
}

.psx-company-search {
    width: 100%;
    padding: 12px 16px;
    font-size: 16px;
    border: 1px solid #d5d8dc;
    border-radius: 8px;
    margin-bottom: 28px;
    box-sizing: border-box;
}

.psx-sector-group {
    margin-bottom: 32px;
}

.psx-sector-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    padding-bottom: 6px;
    border-bottom: 2px solid #eee;
}

.psx-company-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 14px;
}

.psx-company-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    background: #fff;
    transition: box-shadow .15s ease, transform .15s ease;
}

.psx-company-card:hover {
    box-shadow: 0 4px 14px rgba(0,0,0,.08);
    transform: translateY(-2px);
}

.psx-company-logo img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 6px;
}

.psx-company-logo-placeholder,
.psx-archive-logo-placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 6px;
    background: #eef1f5;
    color: #4b5563;
    font-weight: 700;
    font-size: 13px;
}

.psx-company-info {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.psx-company-name {
    font-weight: 600;
    font-size: 14px;
}

.psx-company-ticker {
    font-size: 12px;
    color: #6b7280;
    letter-spacing: .03em;
}

.psx-no-results {
    color: #6b7280;
    font-style: italic;
}

/* Archive pages */

.psx-taxonomy-archive {
    max-width: 800px;
    margin: 0 auto;
}

.psx-archive-header {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    padding-bottom: 20px;
    margin-bottom: 24px;
    border-bottom: 1px solid #eee;
}

.psx-archive-logo img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    border-radius: 8px;
}

.psx-archive-logo-placeholder {
    width: 64px;
    height: 64px;
    font-size: 20px;
    border-radius: 8px;
}

.psx-archive-heading h1 {
    margin: 0 0 6px;
    font-size: 26px;
}

.psx-archive-ticker {
    display: inline-block;
    margin-left: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #2563eb;
    background: #eaf1fe;
    padding: 3px 9px;
    border-radius: 6px;
    vertical-align: middle;
}

.psx-archive-sector {
    margin: 0 0 8px;
    font-size: 14px;
    color: #4b5563;
}

.psx-archive-description {
    margin: 0;
    color: #374151;
}

.psx-sector-companies {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 28px;
}

.psx-sector-company-chip {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    background: #f3f4f6;
    color: #111827;
    text-decoration: none;
    font-size: 13px;
}

.psx-sector-company-chip span {
    color: #6b7280;
}

.psx-sector-company-chip:hover {
    background: #e5e7eb;
}

.psx-archive-post {
    display: flex;
    gap: 16px;
    padding: 18px 0;
    border-bottom: 1px solid #f0f0f0;
}

.psx-post-thumb img {
    width: 100px;
    height: 70px;
    object-fit: cover;
    border-radius: 6px;
}

.psx-post-body h2 {
    margin: 0 0 4px;
    font-size: 18px;
}

.psx-post-meta {
    margin: 0 0 6px;
    font-size: 12px;
    color: #9ca3af;
}

.psx-post-excerpt {
    margin: 0;
    color: #374151;
    font-size: 14px;
}

.psx-archive-pagination {
    margin-top: 20px;
}

/* Taxonomy chips under the post title */

.psx-post-taxonomies {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 4px 0 20px;
    justify-content: flex-end;
    padding-right: 10px;
}

.psx-post-tax-group {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.psx-post-tax-chip {
    display: inline-block;
    padding: 4px 11px;
    border-radius: 5px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: .02em;
}

.psx-post-tax-chip.psx-post-tax-company {
    background: #119310;
    color: #ffffff;
}

.psx-post-tax-chip.psx-post-tax-company:hover {
    background: #084407;
}

.psx-post-tax-chip.psx-post-tax-sector {
    background: #119310;
    color: #ffffff;
}

.psx-post-tax-chip.psx-post-tax-sector:hover {
    background: #084407;
}
