/* CHP Parti Okulu – Dinamik içerik. All rules deliberately scoped. */
body.chp-content-page #page-header,
body.chp-content-page #page-navbar,
body.chp-content-page #page-second-header,
body.chp-content-page .drawer-toggles,
body.chp-content-page .drawer-left-toggle,
body.chp-content-page .drawer-right-toggle { display:none !important; }
body.chp-content-page #page-content,
body.chp-content-page #region-main-box,
body.chp-content-page #region-main { padding-top:0 !important; margin-top:0 !important; }
body.chp-content-page #region-main { background:transparent !important; border:0 !important; box-shadow:none !important; }
body.chp-content-page { background:#f6f7f9; }
body.chp-content-page .chp-news-shell { max-width:1370px; margin:0 auto; padding:22px 16px 70px; box-sizing:border-box; color:#222831; font-family:inherit; }
body.chp-content-page .chp-news-shell * { box-sizing:border-box; }
body.chp-content-page .chp-news-hero { position:relative; overflow:hidden; padding:38px 44px; border-radius:22px; background:linear-gradient(108deg,#202630 5%,#303846 63%,#3a2b32 100%); color:#fff; }
body.chp-content-page .chp-news-hero:after { content:""; position:absolute; width:350px; height:350px; right:-115px; top:-160px; border-radius:50%; border:1px solid rgba(255,255,255,.17); box-shadow:0 0 0 60px rgba(255,255,255,.025), 0 0 0 125px rgba(227,6,19,.08); pointer-events:none; }
body.chp-content-page .chp-news-eyebrow { color:#f7abb2; letter-spacing:2px; font-weight:700; font-size:11px; }
body.chp-content-page .chp-news-hero-row { display:flex; align-items:end; justify-content:space-between; gap:18px; position:relative; z-index:1; }
body.chp-content-page .chp-news-hero h1 { margin:11px 0 9px; font-size:clamp(32px,3.6vw,52px); font-weight:800; line-height:1.1; color:#fff; }
body.chp-content-page .chp-news-hero p { margin:0; color:#d8dce2; font-size:15px; max-width:670px; line-height:1.65; }
body.chp-content-page .chp-news-hero .chp-btn { flex-shrink:0; }
body.chp-content-page .chp-category-nav { display:flex; flex-wrap:wrap; align-items:center; gap:10px; padding:23px 0 16px; }
body.chp-content-page a.chp-category-tab { padding:10px 20px; border-radius:100px; border:1px solid #e5e8ed; background:#fff; color:#556071; font-size:14px; font-weight:650; text-decoration:none !important; }
body.chp-content-page a.chp-category-tab:hover { color:#c70015; border-color:#ffc9ce; }
body.chp-content-page a.chp-category-tab.is-active { background:#e30613; color:#fff; border-color:#e30613; }
body.chp-content-page .chp-filter-box { border:1px solid #eceef1; background:#fff; border-radius:16px; box-shadow:0 6px 24px rgba(30,35,48,.035); padding:19px; }
body.chp-content-page .chp-news-filters { display:flex; align-items:end; flex-wrap:wrap; gap:13px; margin:0; }
body.chp-content-page .chp-news-filters label { display:flex; flex-direction:column; gap:7px; margin:0; min-width:148px; color:#646d7b; font-size:12px; font-weight:700; }
body.chp-content-page .chp-news-filters label.chp-filter-search { flex:1 1 260px; }
body.chp-content-page .chp-news-filters input { outline:0; border:1px solid #e3e6ec; background:#f8f9fb; width:100%; border-radius:10px; padding:12px 13px; font-size:14px; min-height:44px; color:#232b38; }
body.chp-content-page .chp-news-filters input:focus { border-color:#e30613; box-shadow:0 0 0 3px rgba(227,6,19,.09); }
body.chp-content-page .chp-btn { display:inline-flex; align-items:center; justify-content:center; min-height:44px; border-radius:10px; padding:10px 16px; font-size:13px; font-weight:700; text-decoration:none !important; cursor:pointer; white-space:nowrap; border:1px solid transparent; }
body.chp-content-page .chp-btn-primary { background:#e30613; color:#fff !important; border-color:#e30613; }
body.chp-content-page .chp-btn-primary:hover { background:#bb0410; color:#fff !important; }
body.chp-content-page .chp-btn-quiet { background:#f1f3f6; color:#667080 !important; }
body.chp-content-page .chp-results-meta { display:flex; justify-content:space-between; gap:12px; align-items:center; margin:25px 2px 14px; color:#697281; font-size:13px; }
body.chp-content-page .chp-results-meta strong { color:#232b35; }
body.chp-content-page .chp-news-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:20px; }
body.chp-content-page .chp-news-card { min-width:0; overflow:hidden; background:#fff; border:1px solid #eff0f3; border-radius:18px; box-shadow:0 8px 30px rgba(31,41,55,.045); transition:transform .18s ease,box-shadow .18s ease; }
body.chp-content-page .chp-news-card:hover { transform:translateY(-4px); box-shadow:0 12px 36px rgba(31,41,55,.11); }
body.chp-content-page a.chp-news-card-link { display:flex; flex-direction:column; height:100%; text-decoration:none !important; color:inherit !important; }
body.chp-content-page .chp-news-image { height:auto; position:relative; overflow:visible; background:#e9ebef; }
body.chp-content-page .chp-news-image img { display:block; width:100%; height:auto; max-height:none; object-fit:contain; transition:none; }
body.chp-content-page .chp-news-card:hover .chp-news-image img { transform:none; }
body.chp-content-page .chp-images-count { position:absolute; right:12px; bottom:12px; background:rgba(13,20,30,.8); color:#fff; padding:6px 9px; font-size:11px; border-radius:20px; }
body.chp-content-page .chp-image-placeholder { display:flex; align-items:center; justify-content:center; flex-direction:column; gap:8px; aspect-ratio:16/9 !important; min-height:180px; background:linear-gradient(125deg,#293140,#37435a 63%,#6f3341); color:#fff; }
body.chp-content-page .chp-image-placeholder span:first-child { color:#ff4757; font-size:66px; }
body.chp-content-page .chp-image-placeholder span:last-child { letter-spacing:2px; text-transform:uppercase; font-size:11px; }
body.chp-content-page .chp-news-content { padding:21px 22px 23px; display:flex; flex-direction:column; flex:1; }
body.chp-content-page .chp-news-date { color:#df1420; font-weight:700; font-size:12px; }
body.chp-content-page .chp-news-content h2 { margin:10px 0; font-weight:750; font-size:20px; line-height:1.3; color:#242935; }
body.chp-content-page .chp-news-content p { margin:0 0 20px; color:#6c7480; line-height:1.7; font-size:14px; display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }
body.chp-content-page .chp-news-read { margin-top:auto; color:#d80718; font-size:13px; font-weight:750; }
body.chp-content-page .chp-news-read span { padding-left:7px; }
body.chp-content-page .chp-news-featured { grid-column:span 2; }
body.chp-content-page .chp-news-featured .chp-news-card-link { display:grid; grid-template-columns:1.12fr .88fr; }
body.chp-content-page .chp-news-featured .chp-news-image { height:auto; min-height:0; }
body.chp-content-page .chp-news-featured .chp-news-content { padding:36px; }
body.chp-content-page .chp-news-featured .chp-news-content h2 { font-size:clamp(23px,2.1vw,31px); }
body.chp-content-page .chp-empty { text-align:center; padding:65px 18px; border-radius:16px; background:#fff; color:#77808c; }
body.chp-content-page .chp-empty span { font-size:50px; color:#d80b1b; }
body.chp-content-page .chp-empty h2 { font-size:23px; color:#232b35; }
body.chp-content-page .chp-pages { display:flex; justify-content:center; gap:8px; padding-top:30px; }
body.chp-content-page .chp-pages a { min-width:38px; height:38px; display:grid; place-items:center; background:#fff; border:1px solid #e4e8ed; border-radius:9px; text-decoration:none !important; color:#3c4451; }
body.chp-content-page .chp-pages a.current { background:#e30613; color:#fff; border-color:#e30613; }
/* Article */
body.chp-content-page .chp-article { max-width:960px; }
body.chp-content-page .chp-back { color:#b80716; font-size:13px; font-weight:700; text-decoration:none !important; }
body.chp-content-page .chp-article-heading { text-align:center; margin:30px auto; }
body.chp-content-page .chp-article-heading .chp-news-eyebrow { color:#d80b1b; }
body.chp-content-page .chp-article-heading h1 { font-weight:800; line-height:1.17; color:#242b37; font-size:clamp(28px,4.2vw,47px); margin:13px 0; }
body.chp-content-page .chp-article-lead { color:#657080; font-size:17px; line-height:1.7; }
body.chp-content-page .chp-article-date { color:#9ca4ad; font-size:13px; margin-top:14px; }
body.chp-content-page .chp-article-feature { margin:0; background:#ecedf0; border-radius:18px; overflow:hidden; }
body.chp-content-page .chp-article-feature img { display:block; width:100%; height:auto; max-height:none; object-fit:contain; }
body.chp-content-page .chp-gallery-thumbs { display:flex; flex-wrap:wrap; gap:10px; margin:13px 0 26px; }
body.chp-content-page .chp-gallery-thumb { padding:3px; width:85px; height:70px; border:2px solid transparent; border-radius:9px; background:#fff; cursor:pointer; overflow:hidden; }
body.chp-content-page .chp-gallery-thumb.selected { border-color:#e30613; }
body.chp-content-page .chp-gallery-thumb img { width:100%; height:100%; object-fit:cover; border-radius:5px; }
body.chp-content-page .chp-article-body { background:#fff; border-radius:18px; padding:36px 42px; font-size:16px; line-height:1.9; color:#39414d; overflow-wrap:anywhere; }
body.chp-content-page .chp-article-body img { max-width:100%; height:auto; }
body.chp-content-page .chp-draft-label { display:inline-block; margin:10px 6px; background:#fff0e0; padding:7px 10px; border-radius:8px; color:#9b5812; }
body.chp-content-page .chp-edit-link { color:#d80718; font-weight:bold; }
/* Management and forms */
body.chp-content-page .chp-editor-shell { max-width:1050px; }
body.chp-content-page .chp-editor-heading { padding:16px 0 25px; }
body.chp-content-page .chp-editor-heading .chp-news-eyebrow { color:#d80718; }
body.chp-content-page .chp-editor-heading h1 { font-size:38px; font-weight:800; }
body.chp-content-page .chp-editor-heading p { color:#7c8593; }
body.chp-content-page .chp-editor-card, body.chp-content-page .chp-manager-card { background:#fff; border:1px solid #eef0f2; border-radius:18px; padding:26px; box-shadow:0 6px 28px rgba(22,32,45,.045); }
body.chp-content-page .chp-manager-card { margin-top:22px; }
body.chp-content-page .chp-manager-overflow { overflow-x:auto; }
body.chp-content-page .chp-manager-table { border-collapse:collapse; width:100%; font-size:13px; }
body.chp-content-page .chp-manager-table th, body.chp-content-page .chp-manager-table td { border-bottom:1px solid #edf0f3; padding:14px 11px; text-align:left; }
body.chp-content-page .chp-manager-table th { color:#667080; background:#f8f9fb; }
body.chp-content-page .chp-actions { white-space:nowrap; }
body.chp-content-page .chp-actions a { margin-right:10px; font-weight:700; color:#bf0015; }
body.chp-content-page .chp-delete-form { display:inline; }
body.chp-content-page .chp-delete-form button { border:0; background:transparent; padding:0; color:#9a9fa6; cursor:pointer; }
body.chp-content-page .chp-state { padding:5px 9px; border-radius:7px; background:#fff0e1; color:#95602f; }
body.chp-content-page .chp-state.live { background:#e7f5e9; color:#207c3a; }
@media(max-width:1000px) {
  body.chp-content-page .chp-news-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  body.chp-content-page .chp-news-featured { grid-column:span 2; }
}
@media(max-width:680px) {
  body.chp-content-page .chp-news-shell { padding:14px 9px 40px; }
  body.chp-content-page .chp-news-hero { padding:28px 20px; border-radius:15px; }
  body.chp-content-page .chp-news-hero-row { flex-direction:column; align-items:start; }
  body.chp-content-page .chp-category-nav { gap:6px; }
  body.chp-content-page a.chp-category-tab { padding:9px 12px; font-size:12px; }
  body.chp-content-page .chp-filter-box { padding:13px; }
  body.chp-content-page .chp-news-filters label { flex:1 1 140px; }
  body.chp-content-page .chp-news-grid { grid-template-columns:1fr; }
  body.chp-content-page .chp-news-featured { grid-column:span 1; }
  body.chp-content-page .chp-news-featured .chp-news-card-link { display:flex; }
  body.chp-content-page .chp-news-featured .chp-news-image { min-height:0; height:auto; }
  body.chp-content-page .chp-news-featured .chp-news-content { padding:21px 22px 23px; }
  body.chp-content-page .chp-news-featured .chp-news-content h2 { font-size:22px; }
  body.chp-content-page .chp-article-body { padding:23px 18px; }
  body.chp-content-page .chp-editor-card { padding:16px 12px; }
}

/* === Responsive editorial cards (natural photo ratio) and accessible gallery === */
body.chp-content-page .chp-news-grid { align-items:stretch; }
body.chp-content-page .chp-news-card { display:flex; min-height:0; }
body.chp-content-page a.chp-news-card-link { width:100%; min-height:0; }
/* Preserve the uploaded image's full aspect ratio (posters included). */
body.chp-content-page .chp-news-image {
    width:100%; height:auto !important; aspect-ratio:auto !important;
    flex:0 0 auto; overflow:visible;
}
body.chp-content-page .chp-news-image > img {
    display:block; width:100% !important; height:auto !important;
    max-height:none !important; aspect-ratio:auto !important;
    object-fit:contain !important; object-position:center !important;
}
body.chp-content-page .chp-news-featured .chp-news-card-link {
    display:grid; grid-template-columns:minmax(0,1.12fr) minmax(0,.88fr);
    align-items:center; min-height:315px;
}
body.chp-content-page .chp-news-featured .chp-news-image {
    height:auto; min-height:0; aspect-ratio:auto !important;
    margin:16px 0 16px 16px; width:calc(100% - 16px);
    border-radius:12px; align-self:center;
}
body.chp-content-page .chp-news-featured .chp-news-content { padding:25px 28px; }
body.chp-content-page .chp-news-content h2 { overflow-wrap:anywhere; }
body.chp-content-page a.chp-news-card-link:focus-visible,
body.chp-content-page .chp-gallery-thumb:focus-visible,
body.chp-content-page .chp-gallery-expand:focus-visible,
body.chp-content-page .chp-gallery-stage-arrow:focus-visible { outline:3px solid #e30613; outline-offset:3px; }

/* Turkish date input with a real native calendar affordance. */
body.chp-content-page .chp-news-filters label.chp-filter-date { min-width:176px; flex:0 1 176px; }
body.chp-content-page .chp-date-field { position:relative; display:block; width:100%; }
body.chp-content-page .chp-date-field input.chp-date-text { width:100%; padding-right:46px; font-variant-numeric:tabular-nums; }
body.chp-content-page .chp-date-glyph { position:absolute; right:12px; top:50%; transform:translateY(-50%); pointer-events:none; font-size:19px; }
body.chp-content-page .chp-date-field input.chp-date-native {
    position:absolute; right:0; top:0; height:44px; width:42px; min-height:0;
    padding:0; margin:0; opacity:.015; cursor:pointer; border:0;
}
body.chp-content-page .chp-date-field:focus-within { border-radius:10px; box-shadow:0 0 0 3px rgba(227,6,19,.12); }
body.chp-content-page .chp-date-help { margin:10px 2px 0; font-size:12px; color:#707986; }
body.chp-content-page .chp-filter-error { background:#fff1f1; color:#991c2a; border:1px solid #f9c4c8; padding:12px 15px; border-radius:10px; margin:10px 0; font-size:13px; }

/* Article gallery: show complete original photos at natural ratio.
   v0.4.4: no fixed aspect, stage height or viewport max-height in detail view. */
body.chp-content-page .chp-article-feature { margin:0; background:#232830; border-radius:18px; overflow:hidden; }
body.chp-content-page .chp-gallery-stage {
    position:relative; width:100%; height:auto !important; min-height:0 !important;
    max-height:none !important; overflow:visible;
    display:flex; align-items:center; justify-content:center; background:#20252e;
}
body.chp-content-page .chp-gallery-stage > img#chp-gallery-main {
    display:block; flex:0 0 auto; width:100% !important;
    max-width:100% !important; height:auto !important;
    max-height:none !important; min-height:0 !important;
    aspect-ratio:auto !important;
    object-fit:contain !important; object-position:center !important;
    cursor:zoom-in;
}
body.chp-content-page .chp-gallery-expand {
    position:absolute; top:14px; right:14px; padding:9px 13px; border:0;
    background:rgba(17,24,39,.84); color:#fff; border-radius:9px; cursor:pointer;
    display:flex; gap:7px; align-items:center; font-size:12px; z-index:2;
}
body.chp-content-page .chp-gallery-stage-arrow,
body.chp-content-page .chp-lightbox-arrow {
    display:grid; place-items:center; background:rgba(18,24,31,.75); color:#fff;
    border:1px solid rgba(255,255,255,.3); border-radius:50%; cursor:pointer;
    font-size:30px; line-height:1;
}
body.chp-content-page .chp-gallery-stage-arrow { position:absolute; top:50%; transform:translateY(-50%); width:40px; height:40px; z-index:2; }
body.chp-content-page .chp-gallery-stage-prev { left:12px; }
body.chp-content-page .chp-gallery-stage-next { right:12px; }
body.chp-content-page .chp-gallery-caption { display:flex; justify-content:space-between; gap:15px; flex-wrap:wrap; padding:10px 16px; color:#d4d9e0; font-size:12px; }
body.chp-content-page .chp-gallery-thumbs { flex-wrap:nowrap; overflow-x:auto; padding:5px 3px 10px; scrollbar-width:thin; }
body.chp-content-page .chp-gallery-thumb { flex:0 0 86px; }
body.chp-content-page .chp-gallery-lightbox {
    width:min(96vw,1450px); max-width:none; max-height:96vh; height:96vh;
    margin:auto; padding:0; border:0; border-radius:16px; color:#fff; background:#11151c;
    box-shadow:0 24px 70px rgba(0,0,0,.5); overflow:hidden;
}
body.chp-content-page .chp-gallery-lightbox::backdrop { background:rgba(0,0,0,.9); }
body.chp-content-page .chp-lightbox-inner { display:flex; flex-direction:column; height:100%; }
body.chp-content-page .chp-lightbox-toolbar { display:flex; justify-content:space-between; align-items:center; padding:9px 18px; min-height:56px; gap:12px; }
body.chp-content-page .chp-lightbox-close { border:1px solid rgba(255,255,255,.25); color:#fff; background:#343a43; border-radius:10px; width:40px; height:38px; cursor:pointer; font-size:19px; }
body.chp-content-page .chp-lightbox-media { flex:1; min-height:0; position:relative; display:grid; place-items:center; padding:8px 55px 22px; }
body.chp-content-page .chp-lightbox-media img { display:block; max-width:100%; max-height:100%; height:auto; width:auto; object-fit:contain !important; }
body.chp-content-page .chp-lightbox-arrow { position:absolute; top:50%; transform:translateY(-50%); width:44px; height:44px; }
body.chp-content-page .chp-lightbox-prev { left:9px; }
body.chp-content-page .chp-lightbox-next { right:9px; }
body.chp-content-page .chp-gallery-lightbox button:focus-visible { outline:3px solid #fff; outline-offset:2px; }

@media (max-width:1000px) {
    body.chp-content-page .chp-news-featured .chp-news-card-link { display:flex; flex-direction:column; }
    body.chp-content-page .chp-news-featured .chp-news-image { width:100%; margin:0; border-radius:0; aspect-ratio:auto !important; }
    body.chp-content-page .chp-news-featured .chp-news-content { padding:21px 22px 23px; }
}
@media (max-width:680px) {
    body.chp-content-page .chp-news-filters label.chp-filter-date { flex:1 1 145px; min-width:0; }
    body.chp-content-page .chp-gallery-stage { height:auto; min-height:0; }
    body.chp-content-page .chp-gallery-stage > img#chp-gallery-main { max-height:none !important; }
    body.chp-content-page .chp-gallery-expand span { display:none; }
    body.chp-content-page .chp-gallery-caption { font-size:11px; }
    body.chp-content-page .chp-gallery-lightbox { width:100vw; max-height:100dvh; height:100dvh; border-radius:0; }
    body.chp-content-page .chp-lightbox-media { padding:6px 43px 12px; }
    body.chp-content-page .chp-lightbox-arrow { width:36px; height:36px; font-size:25px; }
}
@media (prefers-reduced-motion:reduce) {
    body.chp-content-page .chp-news-card, body.chp-content-page .chp-news-image img { transition:none !important; }
}

/* === v0.4.0: announcement priority, attachments and event data === */
body.chp-content-page .chp-content-tag {
    display:inline-flex; align-items:center; border-radius:999px; padding:5px 11px;
    font-size:11px; font-weight:700; letter-spacing:.02em; line-height:1.2; margin-bottom:11px;
}
body.chp-content-page .chp-priority-normal { color:#546171; background:#eef1f5; }
body.chp-content-page .chp-priority-important { color:#9b4f06; background:#fff2dc; }
body.chp-content-page .chp-priority-urgent { color:#bb1022; background:#ffe7ea; }
body.chp-content-page .chp-event-date { color:#ad1423; font-size:13px; font-weight:700; margin:0 0 5px; }
body.chp-content-page .chp-event-place { color:#586478; font-size:12px; margin:0 0 10px; }
body.chp-content-page .chp-validity { color:#707986; font-size:12px; margin:7px 0 13px; }
body.chp-content-page .chp-article-heading .chp-content-tag { margin-top:14px; }
body.chp-content-page .chp-event-meta { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; margin:28px auto 14px; text-align:left; }
body.chp-content-page .chp-event-meta > div { padding:17px; background:#fff; border:1px solid #edf0f3; border-radius:13px; }
body.chp-content-page .chp-event-meta strong { display:block; font-size:12px; color:#c01626; margin-bottom:5px; }
body.chp-content-page .chp-event-meta span { display:block; color:#252c39; overflow-wrap:anywhere; font-size:14px; }
body.chp-content-page .chp-event-register { display:inline-flex; margin:12px auto 22px; text-decoration:none; }
body.chp-content-page .chp-attachments { background:#fff; border:1px solid #edf0f3; padding:24px; border-radius:15px; margin:24px 0 0; }
body.chp-content-page .chp-attachments h2 { font-size:19px; margin:0 0 14px; }
body.chp-content-page .chp-attachment-list { display:grid; gap:10px; }
body.chp-content-page a.chp-attachment { display:flex; align-items:center; gap:12px; padding:12px 14px; border:1px solid #e7ebf0; border-radius:11px; text-decoration:none; background:#fafbfd; }
body.chp-content-page .chp-attachment > span:first-child { display:grid; place-items:center; flex:0 0 35px; height:35px; background:#ffeaec; color:#b80d20; border-radius:9px; font-size:21px; }
body.chp-content-page .chp-attachment strong { display:block; color:#27303c; overflow-wrap:anywhere; font-size:14px; }
body.chp-content-page .chp-attachment small { display:block; margin-top:3px; font-size:12px; color:#687386; }
body.chp-content-page .chp-attachment:hover { border-color:#e30613; background:#fff7f8; }
@media(max-width:680px) {
    body.chp-content-page .chp-event-meta { grid-template-columns:1fr; }
    body.chp-content-page .chp-attachments { padding:15px; }
}

/* === v0.4.2: friendly unavailable/expired announcement page === */
body.chp-content-page .chp-notice {
    max-width:760px; margin:48px auto 76px; padding:54px 48px; text-align:center;
    border:1px solid #eaedf1; border-radius:20px; background:#fff;
    box-shadow:0 12px 36px rgba(30,39,51,.06);
}
body.chp-content-page .chp-notice .chp-news-eyebrow { color:#d00b1c; }
body.chp-content-page .chp-notice h1 { font-size:clamp(28px,3vw,40px); color:#242b37; margin:14px 0; font-weight:800; }
body.chp-content-page .chp-notice p { color:#5e6979; line-height:1.75; margin:0 auto 26px; max-width:510px; font-size:16px; }
@media(max-width:680px) {
    body.chp-content-page .chp-notice { margin:24px 0 45px; padding:32px 20px; }
}
