/* =========================================================
   KOULSPACE — CSS riêng của theme WordPress (viết tay, không sinh tự động).
   Nạp sau tokens.css + base.css (+ branch.css / home.css …). Chỉ chứa phần nối WordPress / Elementor
   với hệ thiết kế của bản xem thử; giao diện chính vẫn ở assets/css/ (chép từ prototype).
   ========================================================= */

/* Trang thường (chưa có mẫu riêng): chừa chỗ cho header cố định, giống .page của branch.css */
main.ks-wp { padding-bottom: clamp(48px, 8vw, 96px); }

/* Nội dung soạn bằng trình soạn thảo WordPress (bài viết, trang chữ) */
.ks-prose { max-width: 760px; }
.ks-prose__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 4.4vw, 3rem);
  line-height: 1.15;
  margin: clamp(16px, 4vw, 40px) 0 24px;
}
.ks-prose > * + * { margin-top: 1em; }
.ks-prose h2, .ks-prose h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.25; margin-top: 1.6em; }
.ks-prose a { color: var(--accent); text-underline-offset: 3px; }
.ks-prose img { height: auto; border-radius: 12px; }
.ks-prose ul:not(.ks-list) { padding-left: 1.3em; list-style: disc; }
.ks-list li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.ks-list time { color: var(--ink-soft); white-space: nowrap; font-size: .9em; }
.ks-prose .nav-links { display: flex; gap: 12px; margin-top: 24px; }

/* Elementor: trang dựng bằng Elementor nằm trên nền giấy, không tự thêm nền / màu chữ riêng */
.elementor-page main .elementor { background: transparent; color: inherit; }

/* Thanh quản trị của WordPress (khi bật lại) không đè lên header cố định */
body.admin-bar .site-header { top: calc(var(--header-top) + 32px); }
@media (max-width: 782px) { body.admin-bar .site-header { top: calc(var(--header-top) + 46px); } }
