/* Component-level deviations only; source visual design is preserved in copied UI reference CSS. */
/* Header is rendered by the same shared site header function used by History Engine. */
.tarak-current-affairs .tarak-ca-page-title{text-align:center;color:#e6c376;font-family:var(--tee-formal-title-font,var(--tee-formal-content-font,"Noto Sans","Nirmala UI","Segoe UI",Roboto,Arial,sans-serif))!important;font-size:calc(28px + var(--tarak-text-size-offset,0px))!important;font-weight:400!important;letter-spacing:1px!important;line-height:calc(34.16px + var(--tarak-text-size-offset,0px))!important;margin:22px auto 28px;text-transform:capitalize}
.tarak-current-affairs .tarak-ca-image-empty{display:flex;align-items:center;justify-content:center;aspect-ratio:17/9;background:linear-gradient(135deg,#222,#454545);color:#d8c5a3;font-size:20px}
.tarak-current-affairs .tarak-ca-timeline{display:flex!important;align-items:center!important;justify-content:space-between!important;flex-wrap:wrap;gap:6px;padding:8px 12px!important;min-height:32px}
.tarak-current-affairs .tarak-ca-timeline .mec-start-date-label,.tarak-current-affairs .tarak-ca-timeline .tarak-ca-category{font-family:var(--tee-formal-content-font,"Noto Sans","Nirmala UI","Segoe UI",Roboto,Arial,sans-serif)!important;font-size:13px!important;font-weight:600!important;line-height:1.4!important;letter-spacing:0;text-transform:none;color:#fff;overflow-wrap:anywhere}
.tarak-current-affairs .tarak-ca-card .tee-grid-more-preview{color:#cfcfcf!important;font-family:var(--tee-formal-content-font,"Noto Sans","Nirmala UI","Segoe UI",Roboto,Arial,sans-serif)!important;font-size:15px!important;font-weight:400!important;line-height:1.55!important;letter-spacing:0;text-align:left!important;margin:12px!important}
.tarak-current-affairs .tarak-ca-card .mec-event-title a{line-height:1.4!important}
.tarak-current-affairs .tarak-ca-admin-actions{display:flex;align-items:center;justify-content:center;min-height:42px}
.tarak-current-affairs .tarak-ca-admin-actions a{color:#e6c376;text-decoration:none}
.tarak-current-affairs .tarak-ca-more-wrap{text-align:center;margin:18px auto 28px}
.tarak-current-affairs .tarak-ca-more{border:1px solid #c4a461!important;background:#242424!important;color:#e6c376!important;border-radius:5px!important;padding:12px 35px!important;font-family:var(--tee-formal-title-font,var(--tee-formal-content-font,"Noto Sans","Nirmala UI","Segoe UI",Roboto,Arial,sans-serif))!important;font-size:16px!important;font-weight:600!important;line-height:1.3!important;cursor:pointer}
.tarak-current-affairs .tarak-ca-more:hover{background:#37332c!important}
.tarak-current-affairs [hidden]{display:none!important}
.tarak-current-affairs .tarak-ca-empty{text-align:center;font-family:var(--tee-formal-content-font,"Noto Sans","Nirmala UI","Segoe UI",Roboto,Arial,sans-serif)!important;font-size:17px;font-weight:400;line-height:1.5;margin:36px auto}
/* Admin matches the History Engine four-column card grid. The extra scoped
   specificity intentionally wins over the copied History reference flex rule. */
body.tarak-current-affairs.tarak-ca-admin-grid .tee-mec-grid-container .mec-event-grid-classic.tarak-ca-collection{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:12px!important}
body.tarak-current-affairs.tarak-ca-admin-grid .tee-mec-grid-container .tarak-ca-collection>.tarak-ca-item{width:100%!important;max-width:100%!important;min-width:0!important;float:none!important;padding:0!important;margin:0!important}
/* Public follows the one-by-one History Engine presentation rather than the admin grid. */
body.tarak-ca-public-list .tarak-ca-collection{display:flex!important;flex-direction:column!important;align-items:center!important;gap:14px!important}
body.tarak-ca-public-list .tarak-ca-collection>.tarak-ca-item{width:100%!important;max-width:760px!important;flex:0 0 auto!important;float:none!important;padding:0!important}
body.tarak-ca-public-list .tarak-ca-card .mec-event-image img{aspect-ratio:17/9!important;object-fit:cover!important}
.tarak-current-affairs .tarak-ca-single-main{max-width:1220px;margin:auto}
.tarak-current-affairs .tarak-ca-single-metadata{display:flex;justify-content:space-between;gap:10px;align-items:center;flex-wrap:wrap}
.tarak-current-affairs .tarak-ca-single-metadata>div{flex:1 1 210px;min-width:0}
.tarak-current-affairs .tarak-ca-single-metadata dd{overflow-wrap:anywhere}
.tarak-current-affairs .tarak-ca-single-title{align-items:center!important;color:#d59964!important;display:flex!important;flex-wrap:wrap!important;font-family:var(--tee-formal-title-font,var(--tee-formal-content-font,"Noto Sans","Nirmala UI","Segoe UI",Roboto,Arial,sans-serif))!important;font-size:calc(28px + var(--tarak-text-size-offset,0px))!important;font-weight:400!important;justify-content:center!important;letter-spacing:1px!important;line-height:calc(34.16px + var(--tarak-text-size-offset,0px))!important;margin:20px auto!important;overflow-wrap:anywhere!important;text-align:center!important;text-transform:capitalize!important}
.tarak-current-affairs .tarak-ca-post-body{max-width:100%;overflow-wrap:anywhere;font-family:var(--tee-formal-content-font,"Noto Sans","Nirmala UI","Segoe UI",Roboto,Arial,sans-serif)!important;font-size:calc(22px + var(--tarak-text-size-offset,0px))!important;font-weight:400!important;letter-spacing:normal!important;line-height:calc(34.76px + var(--tarak-text-size-offset,0px))!important;text-align:left!important}
.tarak-current-affairs .tarak-ca-post-body p{font-size:inherit!important;line-height:inherit!important;margin:0 0 18px!important;text-align:left!important;color:inherit!important}
.tarak-current-affairs .tarak-ca-post-body img{max-width:100%;height:auto}
.tarak-current-affairs .tarak-ca-single-footer{margin:24px 0 30px;font-size:15px}
.tarak-current-affairs .tarak-ca-single-footer a{color:#d8c5a3}
@media(max-width:1050px){body.tarak-current-affairs.tarak-ca-admin-grid .tee-mec-grid-container .mec-event-grid-classic.tarak-ca-collection{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(min-width:768px){.tarak-current-affairs .tarak-ca-page-title,.tarak-current-affairs .tarak-ca-single-title{font-size:calc(21px + var(--tarak-text-size-offset,0px))!important;line-height:calc(24.36px + var(--tarak-text-size-offset,0px))!important}.tarak-current-affairs .tarak-ca-post-body{font-size:calc(16px + var(--tarak-text-size-offset,0px))!important;line-height:calc(27.2px + var(--tarak-text-size-offset,0px))!important}}
@media(max-width:767px){body.tarak-current-affairs.tarak-ca-admin-grid .tee-mec-grid-container .mec-event-grid-classic.tarak-ca-collection{grid-template-columns:1fr!important}.tarak-current-affairs .tarak-ca-main{padding:14px 10px!important}.tarak-current-affairs .tarak-ca-single-metadata{flex-direction:column;align-items:stretch}}
/* Native post content contrast on the History Engine charcoal single-page surface. */
body.tarak-ca-single .tarak-ca-post-body{color:#eeece8!important;padding:18px 24px 25px!important}
body.tarak-ca-single .tarak-ca-post-body h2,body.tarak-ca-single .tarak-ca-post-body h3,body.tarak-ca-single .tarak-ca-post-body h4{color:#e6c376!important;line-height:1.35;margin:20px 0 12px}
body.tarak-ca-single .tarak-ca-post-body a{color:#f3cb87;text-decoration:underline}
body.tarak-ca-single .tarak-ca-post-body ul,body.tarak-ca-single .tarak-ca-post-body ol{margin:12px 0 20px;padding-left:28px}
body.tarak-ca-single .tarak-ca-post-body li{margin-bottom:7px}
body.tarak-ca-single .tarak-ca-single-footer{padding:0 24px 24px}
@media(max-width:767px){body.tarak-ca-single .tarak-ca-post-body{padding:16px 14px 20px!important}body.tarak-ca-single .tarak-ca-single-footer{padding:0 14px 18px}}

/* Site-header guard: do not let a Current Affairs-specific rule reshape the shared header. */
body.tarak-current-affairs .tee-desktop-header__inner { box-sizing: border-box; }
body.tarak-current-affairs .tee-desktop-header__logo img { object-fit: contain; }
body.tarak-current-affairs .tarak-header-play-badge img { object-fit: fill; }


/* v0.1.2: Sticky-to-bottom shared footer on short/empty Current Affairs pages.
   The site-wide footer is injected after <main> by the existing WordPress
   wp_footer() hook. Keep it in normal flow: do not fix/absolute-position it.
   The flex layout distributes the unused viewport height to the main region.
   This is scoped to Current Affairs archive/single pages only. */
html body.tarak-current-affairs {
    display: flex !important;
    flex-direction: column !important;
    min-height: 100vh !important; /* fallback for older Android WebViews */
    min-height: 100dvh !important;
    margin: 0 !important;
}
html body.tarak-current-affairs > main.tarak-ca-main {
    display: block;
    flex: 1 0 auto !important;
    width: 100%;
    box-sizing: border-box;
    min-width: 0;
}
