/* ============================================================
   Trustible Resource Center Styles
   Brand: Literata/Inter, Magenta #D00070, Navy #0D0F1C
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Literata:wght@400;700&family=Inter:wght@400;500;600;700&display=swap');

/* ── Reset & Base ── */
.trc-wrap {
    font-family: 'Inter', -apple-system, sans-serif;
    color: #737373;
    line-height: 1.7;
    font-size: 16px;
    padding-top: 100px; /* header overlap fix */
}

.trc-wrap *, .trc-wrap *::before, .trc-wrap *::after {
    box-sizing: border-box;
}

.trc-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ── Typography ── */
.trc-wrap h1, .trc-wrap h2, .trc-wrap h3 {
    font-family: 'Literata', Georgia, serif;
    color: #000005;
    line-height: 1.3;
}

.trc-wrap h1 { font-size: 2.25rem; font-weight: 700; margin-bottom: 0.5rem; }
.trc-wrap h2 { font-size: 1.5rem; font-weight: 700; margin-top: 2.5rem; margin-bottom: 0.75rem; }
.trc-wrap h3 { font-size: 1.125rem; font-weight: 700; margin-top: 1.5rem; margin-bottom: 0.5rem; }

.trc-wrap a {
    color: #D00070;
    text-decoration: none;
    transition: color 0.15s;
}
.trc-wrap a:hover { color: #a00058; text-decoration: underline; }

/* ── Breadcrumb ── */
.trc-breadcrumb {
    font-size: 0.8125rem;
    color: #9CA3AF;
    margin-bottom: 1.5rem;
    font-weight: 500;
}
.trc-breadcrumb a { color: #9CA3AF; }
.trc-breadcrumb a:hover { color: #D00070; }
.trc-breadcrumb .trc-sep { margin: 0 0.4rem; }

/* ── Page Hero (Single) ── */
.trc-hero {
    background: #0D0F1C;
    padding: 3rem 0 2.5rem;
    margin-bottom: 2.5rem;
}
.trc-hero .trc-breadcrumb { color: rgba(255,255,255,0.5); }
.trc-hero .trc-breadcrumb a { color: rgba(255,255,255,0.5); }
.trc-hero .trc-breadcrumb a:hover { color: #D00070; }
.trc-hero h1 { color: #FFFFFF; margin-bottom: 0.75rem; }
.trc-hero .trc-eyebrow {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #D00070;
    margin-bottom: 0.5rem;
}
.trc-hero .trc-short-desc {
    color: rgba(255,255,255,0.75);
    font-size: 1.125rem;
    max-width: 720px;
    line-height: 1.6;
}

/* ── Category Badge ── */
.trc-badge {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.2rem 0.625rem;
    border-radius: 3px;
    background: #FCE8F3;
    color: #D00070;
    margin-bottom: 0.25rem;
}

/* ── Content Body ── */
.trc-body {
    padding: 0 0 3rem;
}

.trc-body p {
    margin-bottom: 1.25rem;
}

.trc-body ul, .trc-body ol {
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
}

.trc-body li {
    margin-bottom: 0.5rem;
}

/* ── Content Sections (card-style) ── */
.trc-section {
    background: #FFFFFF;
    border: 1px solid #E2E4E9;
    border-radius: 8px;
    padding: 1.75rem 2rem;
    margin-bottom: 1.5rem;
}

.trc-section h2 {
    margin-top: 0;
    font-size: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #D00070;
    margin-bottom: 1rem;
}

.trc-section h2 .trc-section-icon {
    margin-right: 0.5rem;
    font-size: 1.1rem;
}

/* ── Related Items (pills) ── */
.trc-related-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.trc-related-list li a {
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: 500;
    padding: 0.35rem 0.85rem;
    background: #F1F2F6;
    border: 1px solid #E2E4E9;
    border-radius: 4px;
    color: #000005;
    transition: all 0.15s;
}

.trc-related-list li a:hover {
    background: #FCE8F3;
    border-color: #D00070;
    color: #D00070;
    text-decoration: none;
}

/* ── Citation Block ── */
.trc-citation {
    background: #F1F2F6;
    border-left: 3px solid #D00070;
    border-radius: 0 6px 6px 0;
    padding: 1rem 1.25rem;
    margin-top: 2rem;
    font-size: 0.8125rem;
    color: #737373;
    position: relative;
}

.trc-citation-label {
    font-weight: 700;
    color: #000005;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.35rem;
}

.trc-citation-text {
    font-family: 'Inter', monospace;
    font-size: 0.8125rem;
    line-height: 1.5;
    word-break: break-all;
}

.trc-copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.5rem;
    padding: 0.3rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #D00070;
    background: #FFFFFF;
    border: 1px solid #D00070;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s;
}
.trc-copy-btn:hover { background: #D00070; color: #FFFFFF; }
.trc-copy-btn.copied { background: #22863A; border-color: #22863A; color: #FFFFFF; }

/* ── References ── */
.trc-references ul {
    list-style: none;
    padding: 0;
}
.trc-references li {
    padding: 0.4rem 0;
    border-bottom: 1px solid #F1F2F6;
    font-size: 0.875rem;
}
.trc-references li:last-child { border-bottom: none; }

/* ── Back / Nav Links ── */
.trc-nav-links {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem 0;
    margin-top: 2rem;
    border-top: 1px solid #E2E4E9;
    font-size: 0.875rem;
    font-weight: 600;
}

.trc-nav-links a {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

/* ── Archive / List Page ── */
.trc-archive-hero {
    background: #0D0F1C;
    padding: 3rem 0 2.5rem;
    margin-bottom: 2.5rem;
}
.trc-archive-hero h1 { color: #FFFFFF; margin-bottom: 0.5rem; }
.trc-archive-hero .trc-archive-desc {
    color: rgba(255,255,255,0.7);
    font-size: 1.0625rem;
    max-width: 640px;
}

.trc-archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.25rem;
    margin-bottom: 3rem;
}

.trc-card {
    background: #FFFFFF;
    border: 1px solid #E2E4E9;
    border-radius: 8px;
    padding: 1.5rem;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.trc-card:hover {
    border-color: #D00070;
    box-shadow: 0 2px 12px rgba(208,0,112,0.08);
}

.trc-card h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
}
.trc-card h3 a { color: #000005; }
.trc-card h3 a:hover { color: #D00070; }

.trc-card .trc-card-excerpt {
    font-size: 0.875rem;
    color: #737373;
    margin-bottom: 0.75rem;
}

.trc-card .trc-card-meta {
    font-size: 0.75rem;
    color: #9CA3AF;
}

/* ── Resource Center Landing ── */
.trc-landing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0 3rem;
}

.trc-landing-card {
    background: #FFFFFF;
    border: 1px solid #E2E4E9;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.trc-landing-card:hover {
    border-color: #D00070;
    box-shadow: 0 2px 12px rgba(208,0,112,0.08);
}

.trc-landing-card .trc-landing-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.trc-landing-card h2 {
    margin-top: 0;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}
.trc-landing-card h2 a { color: #000005; }
.trc-landing-card h2 a:hover { color: #D00070; text-decoration: none; }

.trc-landing-card .trc-landing-count {
    font-size: 2rem;
    font-family: 'Literata', serif;
    font-weight: 700;
    color: #D00070;
    margin-bottom: 0.25rem;
}

.trc-landing-card .trc-landing-desc {
    font-size: 0.875rem;
    color: #737373;
}

/* ── Category Filter (archive) ── */
.trc-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.trc-filter-btn {
    font-size: 0.8125rem;
    font-weight: 500;
    padding: 0.4rem 1rem;
    background: #FFFFFF;
    border: 1px solid #E2E4E9;
    border-radius: 4px;
    color: #737373;
    cursor: pointer;
    transition: all 0.15s;
}
.trc-filter-btn:hover, .trc-filter-btn.active {
    background: #D00070;
    border-color: #D00070;
    color: #FFFFFF;
}

/* ── Footer CTA ── */
.trc-cta {
    background: #0D0F1C;
    padding: 3rem 0;
    text-align: center;
    margin-top: 3rem;
}
.trc-cta h2 {
    color: #FFFFFF;
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}
.trc-cta p {
    color: rgba(255,255,255,0.7);
    margin-bottom: 1.5rem;
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
}
.trc-cta-btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: #D00070;
    color: #FFFFFF;
    font-weight: 600;
    font-size: 0.9375rem;
    border-radius: 4px;
    transition: background 0.15s;
}
.trc-cta-btn:hover { background: #a00058; color: #FFFFFF; text-decoration: none; }

/* ── Responsive ── */
@media (max-width: 768px) {
    .trc-wrap { padding-top: 80px; }
    .trc-wrap h1 { font-size: 1.75rem; }
    .trc-hero, .trc-archive-hero { padding: 2rem 0 1.75rem; }
    .trc-section { padding: 1.25rem 1.5rem; }
    .trc-archive-grid { grid-template-columns: 1fr; }
    .trc-landing-grid { grid-template-columns: 1fr; }
}
