/* ================================================
   DateViser Guides (article pages)
   ================================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(180deg, #1a0b33 0%, #2a1a4d 100%);
    background-attachment: fixed;
    color: white;
    min-height: 100vh;
    padding: 0 20px 60px 20px;
}

/* === TOP BAR === */
.topbar {
    max-width: 900px;
    margin: 0 auto;
    padding: 24px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: white;
    text-decoration: none;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.brand img {
    width: 40px;
    height: 40px;
}

.topbar-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.topbar-links a {
    color: white;
    opacity: 0.85;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
}

.topbar-links a:hover {
    opacity: 1;
}

.topbar-links .topbar-cta {
    opacity: 1;
    padding: 9px 18px;
    border-radius: 12px;
    background: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
    font-weight: 700;
}

/* === ARTICLE CARD === */
.container {
    max-width: 900px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.96);
    border-radius: 24px;
    padding: 56px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
    color: #333;
}

.breadcrumb {
    font-size: 13px;
    color: #777;
    margin-bottom: 18px;
}

.breadcrumb a {
    color: #5842e6;
    text-decoration: none;
}

h1 {
    color: #1a1a1a;
    font-size: 38px;
    line-height: 1.2;
    letter-spacing: -0.5px;
    font-weight: 800;
    margin-bottom: 14px;
}

.meta {
    font-size: 14px;
    color: #777;
    margin-bottom: 28px;
}

.summary {
    background: #f3f0ff;
    border-left: 4px solid #5842e6;
    border-radius: 0 14px 14px 0;
    padding: 20px 24px;
    margin-bottom: 32px;
}

.summary p {
    margin-bottom: 0;
    color: #2a2a2a;
    font-size: 17px;
}

h2 {
    color: #1a1a1a;
    font-size: 27px;
    line-height: 1.3;
    font-weight: 700;
    margin-top: 44px;
    margin-bottom: 14px;
}

h3 {
    color: #2a2a2a;
    font-size: 20px;
    line-height: 1.35;
    font-weight: 600;
    margin-top: 28px;
    margin-bottom: 10px;
}

p {
    color: #444;
    line-height: 1.8;
    margin-bottom: 16px;
    font-size: 16px;
}

ul,
ol {
    margin-bottom: 18px;
    padding-left: 24px;
}

li {
    color: #444;
    line-height: 1.8;
    margin-bottom: 8px;
    font-size: 16px;
}

strong {
    color: #222;
    font-weight: 600;
}

a {
    color: #5842e6;
}

a:hover {
    color: #4532b8;
}

/* example messages */
.example {
    background: #f6f6f9;
    border: 1px solid #e6e4f0;
    border-radius: 16px;
    padding: 18px 22px;
    margin: 18px 0 22px 0;
}

.example-label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: #777;
    margin-bottom: 8px;
}

.example p {
    margin-bottom: 8px;
    color: #222;
}

.example p:last-child {
    margin-bottom: 0;
}

.example.bad {
    background: #fdf3f3;
    border-color: #f3dcdc;
}

.example.good {
    background: #f1faf4;
    border-color: #d5eedd;
}

/* tables */
.table-wrap {
    overflow-x: auto;
    margin: 20px 0 26px 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
}

th,
td {
    text-align: left;
    padding: 12px 14px;
    border-bottom: 1px solid #e8e6f0;
    color: #444;
    line-height: 1.6;
    vertical-align: top;
}

th {
    color: #1a1a1a;
    font-weight: 700;
    background: #f6f4ff;
}

/* sources */
.sources {
    font-size: 14px;
}

.sources li {
    font-size: 14px;
    line-height: 1.7;
    color: #555;
    word-break: break-word;
}

sup a {
    text-decoration: none;
    font-weight: 600;
}

/* CTA */
.cta {
    margin-top: 44px;
    border-radius: 20px;
    padding: 32px;
    background: linear-gradient(135deg, #2a1a4d 0%, #4a2a6d 100%);
    color: white;
}

.cta h2 {
    color: white;
    margin-top: 0;
    font-size: 24px;
}

.cta p {
    color: rgba(255, 255, 255, 0.88);
}

.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 8px;
}

.cta-buttons a {
    display: inline-block;
    padding: 12px 22px;
    border-radius: 12px;
    background: white;
    color: #2a1a4d;
    font-weight: 700;
    text-decoration: none;
    font-size: 15px;
}

.cta-buttons a:hover {
    background: #f0eaff;
    color: #2a1a4d;
}

/* guides index */
.guide-list {
    list-style: none;
    padding-left: 0;
    margin-top: 28px;
}

.guide-item {
    padding: 22px 0;
    border-bottom: 1px solid #e8e6f0;
    margin-bottom: 0;
}

.guide-item:last-child {
    border-bottom: none;
}

.guide-item a {
    font-size: 21px;
    font-weight: 700;
    line-height: 1.35;
    text-decoration: none;
}

.guide-item a:hover {
    text-decoration: underline;
}

.guide-item p {
    margin-top: 8px;
    margin-bottom: 0;
}

/* footer */
.page-footer {
    max-width: 900px;
    margin: 32px auto 0 auto;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    flex-wrap: wrap;
    gap: 8px 22px;
}

.page-footer a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
}

.page-footer a:hover {
    color: white;
    text-decoration: underline;
}

@media (max-width: 768px) {
    body {
        padding: 0 14px 40px 14px;
    }

    .topbar {
        padding: 18px 0;
    }

    .topbar-links a:not(.topbar-cta) {
        display: none;
    }

    .container {
        padding: 30px 22px;
        border-radius: 20px;
    }

    h1 {
        font-size: 29px;
    }

    h2 {
        font-size: 23px;
    }

    h3 {
        font-size: 18px;
    }

    .cta {
        padding: 24px 20px;
    }
}
