/* IntimeBooks — Knowledge Centre article styles
   Complements Bootstrap 5 with the custom classes used by /resources/articles/*.html. */

:root {
    --ib-primary: #0d6efd;
    --ib-primary-soft: #e7f1ff;
    --ib-accent: #ffc107;
    --ib-ink: #212529;
    --ib-muted: #6c757d;
    --ib-border: #e5e7eb;
    --ib-bg-soft: #f8fafc;
}

body {
    color: var(--ib-ink);
    background-color: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.65;
}

/* Sticky top navbar tweaks */
.navbar .navbar-brand {
    font-weight: 700;
    letter-spacing: -0.01em;
}

/* Hero band above article title */
.hero {
    background: linear-gradient(180deg, var(--ib-primary-soft) 0%, #ffffff 100%);
    border-bottom: 1px solid var(--ib-border);
}

.article-header .breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.article-header h1 {
    color: #0b3d91;
    letter-spacing: -0.02em;
}

.article-header .lead {
    color: #334155;
    max-width: 780px;
}

/* Category / topic badge above the title */
.badge-topic {
    background: var(--ib-primary);
    color: #ffffff;
    font-weight: 600;
    letter-spacing: 0.02em;
    padding: 0.5em 0.9em;
    border-radius: 999px;
    text-transform: uppercase;
    font-size: 0.75rem;
}

/* Article body typography */
.article-body {
    max-width: 860px;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.05rem;
}

.article-body h2 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    color: #0b3d91;
    letter-spacing: -0.01em;
}

.article-body h3 {
    margin-top: 1.75rem;
    margin-bottom: 0.6rem;
    font-weight: 600;
    color: #1e293b;
}

.article-body p {
    margin-bottom: 1.1rem;
}

.article-body ul,
.article-body ol {
    margin-bottom: 1.1rem;
    padding-left: 1.3rem;
}

.article-body li {
    margin-bottom: 0.35rem;
}

.article-body a {
    color: var(--ib-primary);
    text-decoration: none;
    border-bottom: 1px dotted rgba(13, 110, 253, 0.4);
}

.article-body a:hover {
    color: #0949a8;
    border-bottom-color: currentColor;
}

/* Table of contents block */
.toc {
    background: var(--ib-bg-soft);
    border: 1px solid var(--ib-border);
    border-left: 4px solid var(--ib-primary);
    border-radius: 0.5rem;
    padding: 1rem 1.25rem;
}

.toc strong {
    display: block;
    color: #0b3d91;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
}

.toc ul {
    list-style: disc;
    padding-left: 1.25rem;
}

.toc a {
    border-bottom: none;
}

/* Highlighted callout box */
.callout {
    background: #fff8e1;
    border-left: 4px solid var(--ib-accent);
    padding: 1rem 1.15rem;
    border-radius: 0.5rem;
    margin: 1.25rem 0;
    color: #614a00;
}

.callout strong {
    color: #7a5a00;
}

/* Practical example box */
.example {
    background: #ecfdf5;
    border-left: 4px solid #10b981;
    padding: 1rem 1.15rem;
    border-radius: 0.5rem;
    color: #065f46;
}

.example p {
    margin-bottom: 0;
}

/* Accordion tweaks for FAQ */
.article-body .accordion-button {
    font-weight: 600;
}

/* Print helpers */
@media print {
    .no-print,
    .navbar,
    footer {
        display: none !important;
    }
    .hero {
        background: none;
    }
    a {
        border-bottom: none !important;
    }
}

/* Responsive footer */
footer {
    background: var(--ib-bg-soft);
    border-top: 1px solid var(--ib-border);
    color: var(--ib-muted);
}

footer a {
    color: var(--ib-primary);
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}
