/* styles.md: 1240 px, 190 px sidebar, violet Ajanhallinta palette; no extra fonts. */
body.cbtime-page { background: #f5f7fb; }
.cbtime-page #main-content.cb-editable-page { padding:36px 0 64px; }
body.cbtime-page #main-content .cb-page-inner { width:calc(100% - 48px); max-width:1240px; margin-inline:auto; }
.cbtime-page .cb-page-heading { display:none; }
.cbtime-page #main-content.content-area { width:100%; max-width:none; padding:36px 0 64px; }
.cbtime-page #main-content > .page-article { width:calc(100% - 48px); max-width:1240px; margin-inline:auto; }
.cbtime-page .page-article > .page-header { display:none; }
.cbtime-page .page-article > .entry-content { width:100%; max-width:none; margin:0; }
.ct.wp-block-campusbuddy-time { color:#172b46; background:#f8fafd; border:1px solid #dfe7f1; border-radius:24px; box-shadow:0 16px 56px rgba(30,54,86,.07); width:100%; max-width:1240px; margin-inline:auto; display:grid; grid-template-columns:190px minmax(0,1fr); font:15px/1.6 Inter,Arial,sans-serif; overflow-wrap:anywhere; container-type:inline-size; }
.ct *, .ct *::before, .ct *::after { box-sizing:border-box; min-width:0; }
.ct :where(h1,h2,h3) { font-family:Manrope,Inter,Arial,sans-serif; color:#172b46; line-height:1.25; letter-spacing:-.025em; }
.ct.wp-block-campusbuddy-time h1 { font-size:clamp(28px,3vw,36px); font-weight:800; margin:0 0 8px; }
.ct.wp-block-campusbuddy-time h2 { font-size:18px; font-weight:750; margin:0 0 16px; }
.ct.wp-block-campusbuddy-time h3 { font-size:16px; margin:0 0 12px; }
.ct p { margin:8px 0; }
.ct a { color:#405f89; text-decoration:underline; text-underline-offset:3px; }
.ct .ct-hint, .ct .ct-meta { color:#60738b; font-size:14px; }
.ct .ct-sidebar { padding:30px 14px; background:#eae7f1; border-right:1px solid #e1e8f1; border-radius:24px 0 0 24px; }
.ct .ct-eyebrow { font-size:12px; font-weight:700; letter-spacing:.08em; color:#514466; }
.ct .ct-sidebar nav { display:grid; gap:4px; margin:16px 0 24px; }
.ct .ct-sidebar nav a { min-height:46px; padding:10px 12px; border-radius:10px; text-decoration:none; color:#514466; }
.ct [aria-current=page] { background:#fff; font-weight:750; text-decoration:underline !important; }
.ct .ct-main { padding:30px; display:grid; gap:20px; align-content:start; }
.ct .ct-heading { display:flex; flex-wrap:wrap; gap:16px; justify-content:space-between; }
.ct .ct-card { background:#fff; border:1px solid #e1e8f1; border-radius:16px; padding:22px 24px; box-shadow:0 4px 18px rgba(35,57,86,.025); }
.ct .ct-create { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; align-items:start; }
.ct summary { cursor:pointer; padding:8px 0; min-height:44px; font-weight:700; }
.ct details[open] > summary { margin-bottom:12px; }
.ct .ct-fields { display:grid; gap:12px; grid-template-columns:repeat(2,minmax(0,1fr)); }
.ct label { display:grid; gap:6px; margin:12px 0; font-size:14px; color:#425674; }
.ct input:not([type=hidden]):not([type=checkbox]), .ct textarea, .ct select { width:100%; min-height:46px; border:1px solid #9aacc4; border-radius:10px; padding:10px; background:#fff; color:#172b46; font:inherit; font-size:16px; }
.ct .ct-check { display:flex; align-items:center; gap:8px; min-height:44px; }
.ct input[type=checkbox] { width:20px; height:20px; accent-color:#766b96; flex-shrink:0; }
.ct button, .ct .ct-button { display:inline-flex; align-items:center; justify-content:center; gap:8px; border:1px solid #9aacc4; border-radius:10px; min-height:44px; padding:8px 12px; font:inherit; font-size:14px; font-weight:650; color:#172b46; background:white; text-decoration:none; cursor:pointer; white-space:normal; }
.ct button:hover, .ct .ct-button:hover { background:#eae7f1; }
.ct .ct-primary { background:#514466; color:white; border-color:#514466; }
.ct .ct-primary:hover { background:#40334f; }
.ct .ct-danger { color:#a1262f; }
.ct .ct-actions { display:flex; gap:8px; flex-wrap:wrap; align-items:center; }
.ct .ct-actions form { margin:0; }
.ct :is(a,button,input,textarea,select,summary):focus-visible { outline:3px solid #5895bf; outline-offset:3px; }
.ct .ct-toolbar { display:flex; gap:16px; flex-wrap:wrap; align-items:center; justify-content:space-between; margin-bottom:12px; }
.ct .ct-toolbar h2 { margin:0; }
.ct .ct-empty { color:#425674; background:#f8fafd; border:1px solid #e1e8f1; border-radius:12px; padding:14px; }
.ct .ct-notice { padding:12px; border-radius:10px; background:#eae7f1; color:#514466; }
.ct .ct-tasks { list-style:none; margin:0; padding:0; display:grid; gap:12px; }
.ct .ct-task { display:flex; gap:16px; flex-wrap:wrap; justify-content:space-between; padding:16px; border:1px solid #e1e8f1; border-radius:12px; }
.ct .ct-row-main { flex:1 1 260px; }
.ct .ct-title { display:block; font-weight:700; }
.ct .ct-meta { display:flex; flex-wrap:wrap; gap:6px 12px; }
.ct .ct-tag { background:#eae7f1; color:#514466; border-radius:6px; padding:0 6px; }
.ct .ct-late { color:#a1262f; font-weight:700; }
.ct .ct-done .ct-title { text-decoration:line-through; }
.ct .ct-notes { white-space:normal; }
.ct .ct-list-nav { margin:4px 0; display:flex; flex-wrap:wrap; gap:4px; }
.ct .ct-list-nav a { min-height:44px; display:inline-flex; align-items:center; padding:4px; }
.ct .ct-calendar { display:grid; gap:12px; margin-top:16px; }
.ct .ct-day { border:1px solid #e1e8f1; border-radius:12px; padding:12px; background:white; }
.ct .ct-is-today { background:#f3f0f8; border-color:#766b96; }
.ct .ct-day h3 a { min-height:44px; display:inline-flex; align-items:center; }
.ct .ct-entry { padding:10px; border:1px solid #e1e8f1; border-radius:10px; margin:8px 0; }
.ct .ct-event { background:#eae7f1; }
.ct .ct-calendar-task { background:#f8fafd; }
.ct .ct-bill { background:#eaf2ff; }
.ct .ct-entry .ct-meta { color:#425674; }
.ct .ct-pad { display:none; }
.ct > .ct-card { grid-column:1/-1; margin:24px; }
@container(min-width:1050px) {
    .ct .ct-calendar--week { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .ct .ct-calendar--month { grid-template-columns:repeat(7,minmax(0,1fr)); gap:6px; }
    .ct .ct-calendar--month .ct-day { padding:6px; }
    .ct .ct-calendar--month .ct-entry { padding:6px; }
    .ct .ct-pad { display:block; }
}
@media(max-width:1000px) {
    .ct.wp-block-campusbuddy-time { grid-template-columns:minmax(0,1fr); }
    .ct .ct-sidebar { border-right:0; border-bottom:1px solid #e1e8f1; border-radius:24px 24px 0 0; padding:16px; }
    .ct .ct-sidebar nav { display:flex; flex-wrap:wrap; margin:8px 0; }
    .ct .ct-sidebar nav a { padding:8px; }
    .ct .ct-main { padding:20px; }
}
@media(max-width:600px) {
    .cbtime-page #main-content.cb-editable-page { padding:18px 0 40px; }
    body.cbtime-page #main-content .cb-page-inner { width:calc(100% - 24px); }
    .cbtime-page #main-content.content-area { padding:18px 0 40px; }
    .cbtime-page #main-content > .page-article { width:calc(100% - 24px); }
    .ct.wp-block-campusbuddy-time { border-radius:18px; }
    .ct .ct-main { padding:12px; gap:16px; }
    .ct .ct-card { padding:18px; }
    .ct .ct-create,.ct .ct-fields { grid-template-columns:minmax(0,1fr); }
    .ct .ct-sidebar { border-radius:18px 18px 0 0; }
}
