/* iContent Article Styling - Integrated with Site Design */

/* Container - inherits site's default text color and font */
.icontent-article {
    line-height: 1.7;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

/* Headings - use site's default styling but add some enhancements */
.icontent-article h1 {
    font-size: 1.8em;
    font-weight: 700;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.icontent-article h2 {
    font-size: 1.5em;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 0.8rem;
    padding-bottom: 0.4rem;
    border-bottom: 2px solid rgba(0, 0, 0, 0.1);
}

.icontent-article h3 {
    font-size: 1.3em;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.6rem;
    color: #2563eb;
}

/* Paragraphs and lists - inherit site's default */
.icontent-article p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

.icontent-article ul,
.icontent-article ol {
    margin-bottom: 1rem;
    padding-left: 2rem;
}

.icontent-article li {
    margin-bottom: 0.4rem;
    line-height: 1.6;
}

/* Blockquote */
.icontent-article blockquote {
    border-left: 4px solid #3b82f6;
    background: rgba(59, 130, 246, 0.05);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 8px 8px 0;
    font-style: italic;
}

/* Expert Callout Box */
.icontent-article .expert-callout {
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.2);
    padding: 1.5rem;
    border-radius: 8px;
    margin: 2rem 0;
}

.icontent-article .expert-callout h3 {
    margin-top: 0;
    color: #1e40af;
}

/* Pro Tip Box */
.icontent-article .pro-tip {
    background: rgba(34, 197, 94, 0.08);
    border: 1px dashed rgba(34, 197, 94, 0.3);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.icontent-article .pro-tip h3 {
    margin-top: 0;
    color: #15803d;
}

/* Tables */
.icontent-article table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.icontent-article th {
    background: #1e293b;
    color: #ffffff;
    padding: 0.8rem 1rem;
    text-align: left;
    font-size: 0.9em;
    text-transform: uppercase;
    font-weight: 600;
}

.icontent-article td {
    padding: 0.8rem 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.icontent-article tbody tr:nth-child(even) td {
    background: rgba(0, 0, 0, 0.02);
}

/* Lead Hook */
.icontent-article .lead-hook {
    font-size: 1.15em;
    font-weight: 500;
    border-left: 3px solid rgba(0, 0, 0, 0.15);
    padding-left: 1.2rem;
    margin: 1.5rem 0;
    opacity: 0.85;
}

/* Links */
.icontent-article a {
    color: #2563eb;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}

.icontent-article a:hover {
    border-bottom-color: #2563eb;
}

/* Strong and Em */
.icontent-article strong {
    font-weight: 600;
}

/* Dark Mode - using body.dark-mode selector */
body.dark-mode .icontent-article h2 {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .icontent-article h3 {
    color: #60a5fa;
}

body.dark-mode .icontent-article blockquote {
    background: rgba(59, 130, 246, 0.1);
    border-left-color: #3b82f6;
}

body.dark-mode .icontent-article .expert-callout {
    background: rgba(59, 130, 246, 0.12);
    border-color: rgba(59, 130, 246, 0.3);
}

body.dark-mode .icontent-article .expert-callout h3 {
    color: #93c5fd;
}

body.dark-mode .icontent-article .pro-tip {
    background: rgba(34, 197, 94, 0.12);
    border-color: rgba(34, 197, 94, 0.4);
}

body.dark-mode .icontent-article .pro-tip h3 {
    color: #4ade80;
}

body.dark-mode .icontent-article th {
    background: #0f172a;
}

body.dark-mode .icontent-article td {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .icontent-article tbody tr:nth-child(even) td {
    background: rgba(255, 255, 255, 0.03);
}

body.dark-mode .icontent-article .lead-hook {
    border-left-color: rgba(255, 255, 255, 0.2);
}

body.dark-mode .icontent-article a {
    color: #60a5fa;
}

body.dark-mode .icontent-article a:hover {
    border-bottom-color: #60a5fa;
}

/* Responsive Design */
@media (max-width: 768px) {
    .icontent-article h1 {
        font-size: 1.5em;
    }

    .icontent-article h2 {
        font-size: 1.3em;
    }

    .icontent-article h3 {
        font-size: 1.15em;
    }

    .icontent-article .lead-hook {
        font-size: 1.05em;
    }

    .icontent-article table {
        font-size: 0.9em;
    }

    .icontent-article th,
    .icontent-article td {
        padding: 0.6rem 0.8rem;
    }

    .icontent-article .expert-callout,
    .icontent-article .pro-tip {
        padding: 1rem;
    }
}