/* ================================================
   GENESIS ROLEPLAY — ARTICLE / REGULATION DETAIL
   Used by: reg_ogulny, reg_crime, reg_lspd,
   reg_bcso, reg_ems, reg_doj, reg_postaci,
   kodes_prawa
   ================================================ */

/* ---------- Article Container ---------- */
.container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 40px 20px 60px;
    min-height: calc(100vh - var(--navbar-height));
}

.box {
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    border-radius: var(--radius-xl);
    padding: 48px 56px;
    width: 100%;
    max-width: 1000px;
    display: flex;
    flex-direction: column;
    text-align: left;
    position: relative;
    overflow: hidden;
}

.box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent-gradient);
}

/* ---------- Title ---------- */
.title {
    font-family: var(--font-display);
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-subtle);
    text-align: center;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h2.title {
    font-family: var(--font-display);
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-subtle);
    text-align: center;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ---------- Content ---------- */
.content {
    font-weight: 400;
    font-size: 15px;
    margin-top: 8px;
    line-height: 1.8;
}

.ostead {
    line-height: 1.9;
}

/* ---------- Headings ---------- */
h1 {
    font-family: var(--font-display);
    color: var(--text-primary);
    font-size: 22px;
    font-weight: 700;
    margin-top: 36px;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-subtle);
    position: relative;
}

h1::before {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--accent-gradient);
    border-radius: 2px;
}

h2 {
    font-family: var(--font-display);
    color: var(--text-primary);
    font-size: 18px;
    font-weight: 600;
    margin-top: 24px;
    margin-bottom: 12px;
}

h3 {
    font-family: var(--font-display);
    color: var(--text-secondary);
    font-size: 16px;
    font-weight: 600;
    margin-top: 20px;
    margin-bottom: 10px;
}

/* ---------- Body Text ---------- */
p, li {
    color: var(--text-secondary);
    margin-bottom: 16px;
    font-size: 15px;
    line-height: 1.9;
}

/* ---------- Background for article pages ---------- */
.article-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
}

.article-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(10, 10, 15, 0.7) 0%,
        rgba(10, 10, 15, 0.85) 100%
    );
}

/* ---------- Responsive ---------- */
@media screen and (max-width: 768px) {
    .box {
        padding: 28px 24px;
        border-radius: var(--radius-lg);
    }

    .title {
        font-size: 28px;
    }

    h1 {
        font-size: 19px;
    }

    h2 {
        font-size: 17px;
    }

    .content {
        font-size: 14px;
    }

    .container {
        padding: 20px 12px 40px;
    }
}

@media (max-width: 480px) {
    .box {
        padding: 20px 16px;
    }

    .title {
        font-size: 24px;
    }

    h1 {
        font-size: 17px;
    }

    p, li {
        font-size: 14px;
    }
}