/* ============================================================
   LAGATOI CYBERSPACE CONSULTANCY — article.css
   Styles for individual Policy & Implementation Notes pages.
   This file supplements ../style.css (base variables + shared).
   Keep both files linked in every article page.
============================================================ */

/* =========================
   HEADER (Article Pages Override)
========================= */
.article-header {
    background: var(--accent);
    color: var(--white);
    padding: 1.3rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 3px 16px rgba(0, 0, 0, 0.22);
}

header h1 {
    font-size: 1.95rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    color: var(--white);
}

/* =========================
   ARTICLE PAGE LAYOUT
   No founder panel on article pages — full width.
========================= */
.article-main {
    padding: 4rem 0 6rem;
}

.article-container {
    width: 100%;
    max-width: none;
    margin: 0 auto;
    padding: 0 clamp(1rem, 2vw, 2rem);
}

/* =========================
   BACK LINK
========================= */
.article-back {
    display: inline-block;
    font-size: 0.78rem;
    font-family: 'Source Sans 3', sans-serif;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--accent);
    text-decoration: none;
    margin-bottom: 2.5rem;
    transition: color 0.2s ease;
}

.article-back:hover {
    color: var(--dark);
}

.article-back--bottom {
    display: block;
    margin-top: 3.5rem;
    margin-bottom: 0;
    padding-top: 2rem;
    border-top: 1px solid var(--light);
}

/* =========================
   ARTICLE HEADER BLOCK
========================= */
.article-header {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--light);
    display: flex;
    flex-direction: column;
}

.article-category {
    display: inline-block;
    font-size: 0.68rem;
    font-family: 'Source Sans 3', sans-serif;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1rem;
}

.article-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 2.9rem;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.12;
    margin-bottom: 2rem;
    text-align: left;
}

/* Optional: remove .article-meta from HTML if not using author/date */
.article-meta {
    font-size: 0.85rem;
    color: var(--muted);
    font-family: 'Source Sans 3', sans-serif;
    font-weight: 400;
    letter-spacing: 0.3px;
    margin: 0;
    align-self: flex-end;
    margin-top: 1rem;
}

.article-caption {
    display: flex;
    gap: 1.5rem;
    margin: 2rem 0;
    justify-content: center;
    flex-wrap: wrap;
}

.caption-card {
    flex: 1;
    min-width: 300px;
    max-width: 360px;
    padding: 1.25rem 1.35rem;
    background: rgba(63, 185, 235, 0.08);
    border-left: 3px solid var(--accent);
    border-radius: 4px;
    font-size: 0.95rem;
    color: var(--muted);
    font-family: 'Source Sans 3', sans-serif;
    font-style: italic;
    line-height: 1.75;
}

.caption-card p {
    margin: 0;
}

/* =========================
   ARTICLE BODY
========================= */
.article-body {
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--dark);
    text-align: left;
    max-width: 95%;
    margin: 0 auto;
}

.article-body p {
    margin-bottom: 1.6rem;
    color: #3a4455;
}

/* Section headings inside article body */
.article-body h2 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.75rem;
    color: var(--dark);
    font-weight: 600;
    text-align: left;
    margin-top: 3rem;
    margin-bottom: 1rem;
    padding-top: 1rem;
    border-top: 2px solid var(--light);
    line-height: 1.2;
}

/* Sub-headings inside article body */
.article-body h3 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.3rem;
    color: var(--dark);
    font-weight: 600;
    text-align: left;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    line-height: 1.25;
}

/* Lists inside article body */
.article-body ul,
.article-body ol {
    padding-left: 1.9rem;
    margin-bottom: 1.8rem;
    list-style-position: outside;
}

.article-body li {
    margin-bottom: 0.75rem;
    color: #3a4455;
    line-height: 1.85;
}

/* Links inside article body */
.article-body a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s ease;
}

.article-body a:hover {
    color: var(--dark);
}

/* =========================
   CALLOUT / BLOCKQUOTE
   Use for key statements or important quotes.
========================= */
.article-callout {
    margin: 2.5rem 0;
    padding: 1.6rem 2rem;
    border-left: 4px solid var(--accent);
    background: var(--light);
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.3rem;
    font-style: italic;
    color: var(--dark);
    line-height: 1.55;
    border-radius: 0 2px 2px 0;
    quotes: none;
}

/* =========================
   REFERENCES / RESOURCES BOX
   Optional. Remove from HTML if not needed.
========================= */
.article-references {
    margin-top: 3.5rem;
    padding: 1.8rem 2rem;
    background: var(--light);
    border-top: 3px solid var(--accent);
    border-radius: 2px;
}

.article-references h3 {
    font-size: 0.72rem;
    font-family: 'Source Sans 3', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent);
    text-align: left;
    margin-top: 0;
    margin-bottom: 1rem;
}

.article-references ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.article-references li {
    font-size: 0.9rem;
    color: var(--muted);
    line-height: 1.65;
    padding: 0.55rem 0;
    border-bottom: 1px solid rgba(44, 54, 66, 0.1);
}

.article-references li:last-child {
    border-bottom: none;
}

.article-references a {
    color: var(--accent);
    text-decoration: none;
}

.article-references a:hover {
    color: var(--dark);
}

.article-source-card {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: stretch;
    padding: 1rem;
    border: 1px solid rgba(44, 54, 66, 0.12);
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(44, 54, 66, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.article-source-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(44, 54, 66, 0.12);
}

.article-source-card img {
    width: 220px;
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
}

.source-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.6rem;
    min-width: 0;
}

.source-title {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.4;
}

.source-description {
    margin: 0;
    font-size: 0.95rem;
    color: #4f596a;
    line-height: 1.6;
}

.source-link {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--accent);
}

.article-source-list {
    display: grid;
    gap: 1rem;
}

.source-thumbnail-placeholder {
    width: 220px;
    max-width: 100%;
    min-height: 132px;
    border-radius: 10px;
    flex-shrink: 0;
    background:
        linear-gradient(135deg, rgba(63, 185, 235, 0.22), rgba(44, 54, 66, 0.08)),
        linear-gradient(45deg, transparent 45%, rgba(255, 255, 255, 0.5) 45% 55%, transparent 55%),
        #eef5f8;
    border: 1px solid rgba(44, 54, 66, 0.1);
    display: flex;
    align-items: flex-end;
    padding: 1rem;
    color: var(--dark);
    font-family: 'Source Sans 3', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 768px) {
    .article-title {
        font-size: 2.1rem;
    }

    .article-main {
        padding: 3rem 0 4rem;
    }

    .article-body h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 520px) {
    .article-title {
        font-size: 1.75rem;
    }

    .article-callout {
        padding: 1.2rem 1.4rem;
        font-size: 1.1rem;
    }

    .article-references {
        padding: 1.4rem 1.2rem;
    }
}
