/* ── Content page wrapper ── */
.ctt-page {
    padding-top: 80px;   /* fixed navbar(64px) + extra breathing room */
    padding-bottom: 80px;
    min-height: 100vh;
}

.ctt-wrap {
    max-width: 860px;
    margin: 0 auto;
    padding: 40px 24px;
    background: linear-gradient(145deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 24px;
    position: relative;
}

/* ── Admin edit button ── */
.ctt_admin {
    float: right;
    margin-bottom: 12px;
}

.ctt-edit-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 10px;
    background: rgba(6,182,212,0.12);
    border: 1px solid rgba(6,182,212,0.25);
    color: #67e8f9;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s;
}

.ctt-edit-btn:hover {
    background: rgba(6,182,212,0.2);
    border-color: rgba(6,182,212,0.4);
    color: #a5f3fc;
    text-decoration: none;
}

/* ── Article header ── */
#ctt header {
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    margin-bottom: 8px;
    overflow: hidden;
}

#ctt h1 {
    font-size: 22px;
    font-weight: 700;
    color: #f1f5f9;
    margin: 0;
    padding: 0;
    line-height: 1.4;
}

/* ── Content body ── */
#ctt_con {
    margin: 28px 0 0;
    color: #94a3b8;
    font-size: 15px;
    line-height: 1.8;
}

#ctt_con h1,
#ctt_con h2,
#ctt_con h3,
#ctt_con h4 {
    color: #e2e8f0;
    margin-top: 1.6em;
    margin-bottom: 0.6em;
}

#ctt_con a {
    color: #22d3f0;
    text-decoration: underline;
}

#ctt_con a:hover {
    color: #67e8f9;
}

#ctt_con p {
    margin-bottom: 1em;
}

#ctt_con table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    font-size: 14px;
}

#ctt_con table th,
#ctt_con table td {
    padding: 10px 14px;
    border: 1px solid rgba(255,255,255,0.08);
    color: #94a3b8;
}

#ctt_con table th {
    background: rgba(255,255,255,0.05);
    color: #e2e8f0;
    font-weight: 600;
}

/* ── Images ── */
.ctt_img {
    text-align: center;
    margin: 20px 0;
}

.ctt_img img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}

/* ── Responsive ── */
@media (max-width: 640px) {
    .ctt-page {
        padding-top: 72px;
        padding-bottom: 48px;
    }
    .ctt-wrap {
        padding: 24px 16px;
        border-radius: 16px;
        margin: 0 12px;
    }
    #ctt h1 {
        font-size: 18px;
    }
}
