/* Template-driven pages (owner-approved 2026-10-06): «Єдине Вікно» = variant C (teal block with phone, address and
   schedule), «Антикорупційні заходи» = variant A (tiles). Square corners, no shadows, no animations.
   Enqueued by the page templates themselves (page-single-window.php, page-anti-corruption-measures.php). */
.dec-tpl {
    --tp-teal: #007F84;
    --tp-blue: #006AB6;
    --tp-ink: #1d2a33;
    --tp-line: #d9e2e6;
    --tp-note: #eef8f8;
    --tp-alert: #c62f25;
    color: var(--tp-ink);
    font-size: 16px;
    line-height: 1.6;
}
.dec-tpl a { color: var(--tp-blue); }

/* heading row: the page title on the left, an optional logo on the right */
.dec-tpl__head { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin: 0 0 8px; }
.dec-tpl__head h1 { margin: 0; font-size: 30px; font-weight: 700; text-align: left; border: 0; padding: 0; }
/* style.css «article img { width: 100% }» and responsive.css «#content img { height: auto }» would blow the logo up */
#content .dec-tpl__logo, article .dec-tpl__logo, .dec-tpl__logo { height: 100px; width: auto; max-width: 45%; object-fit: contain; flex: none; margin: 0; }
.dec-tpl__lead { font-size: 19px; font-weight: 500; margin: 0 0 24px; padding-bottom: 18px; border-bottom: 1px solid var(--tp-line); }

/* «Єдине Вікно»: teal block */
.dec-sw { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; background: var(--tp-teal); color: #fff; padding: 24px 28px; margin: 0 0 16px; }
.dec-sw a { color: #fff; }
.dec-sw__label { font-size: 13px; letter-spacing: .04em; text-transform: uppercase; opacity: .85; margin: 0 0 6px; font-weight: 400; }
.dec-sw__phone { font-size: 28px; font-weight: 700; line-height: 1.2; }
.dec-sw__phone a { text-decoration: none; }
.dec-sw__phone a:hover { text-decoration: underline; }
.dec-sw__addr { margin: 14px 0 0; }
.dec-sw__addr .fa { margin-right: 6px; }
.dec-sw__sched { border-left: 1px solid rgba(255, 255, 255, .35); padding-left: 24px; }
.dec-sw__sched p { margin: 0; padding: 6px 0; border-bottom: 1px solid rgba(255, 255, 255, .25); font-weight: 600; }

/* «Важливо!» */
.dec-tpl__alert { border: 1px solid var(--tp-alert); border-left-width: 6px; padding: 14px 18px; margin: 0 0 16px; }
.dec-tpl__alert-title { color: var(--tp-alert); font-weight: 700; font-size: 16px; margin: 0; }
.dec-tpl__alert ul { margin: 6px 0 0; padding-left: 20px; }

/* tiles of sections (anti-corruption) */
.dec-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 16px 0 24px; }
.dec-tiles__item { display: flex; flex-direction: column; justify-content: space-between; min-height: 110px; border: 1px solid var(--tp-line); border-top: 4px solid var(--tp-teal); padding: 16px 18px; color: var(--tp-ink) !important; font-weight: 700; font-size: 17px; line-height: 1.35; text-decoration: none !important; }
.dec-tiles__item::after { content: '→'; color: var(--tp-teal); font-size: 20px; align-self: flex-end; }
.dec-tiles__item:hover, .dec-tiles__item:focus { background: var(--tp-note); color: var(--tp-blue) !important; }

@media (max-width: 991px) {
    .dec-tiles { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
    .dec-tpl__head h1 { font-size: 24px; }
    #content .dec-tpl__logo, article .dec-tpl__logo, .dec-tpl__logo { height: 72px; }
    .dec-tpl__lead { font-size: 17px; }
    .dec-sw { grid-template-columns: 1fr; padding: 20px; }
    .dec-sw__phone { font-size: 24px; }
    .dec-sw__sched { border-left: 0; padding-left: 0; border-top: 1px solid rgba(255, 255, 255, .35); padding-top: 12px; }
    .dec-tiles { grid-template-columns: 1fr; }
    .dec-tiles__item { min-height: 0; flex-direction: row; align-items: center; gap: 12px; }
}
/* lists of updates / weekly monitorings (variant C): the date as a teal block, the card without shadow */
.announcement.dec-list .cart { background: #fff !important; box-shadow: none !important; border: 0; border-bottom: 1px solid var(--tp-line, #d9e2e6); margin: 0 !important; }
.announcement.dec-list .cart .card-body { display: grid; grid-template-columns: 86px 1fr; column-gap: 20px; padding: 18px 0 !important; }
.announcement.dec-list .cart .card-body > * { grid-column: 2; }
.announcement.dec-list .cart .card-body > .dec-date { grid-column: 1; grid-row: 1 / span 6; align-self: start; }
.dec-date { display: block; background: #007F84; color: #fff; text-align: center; padding: 8px 4px; line-height: 1.15; font-style: normal; }
.dec-date b { display: block; font-size: 26px; font-weight: 700; }
.dec-date i { display: block; font-style: normal; font-size: 13px; }
.announcement.dec-list .cart .card-body .card-title { font-size: 19px; line-height: 1.3; margin: 0 0 6px; }
.announcement.dec-list .cart .card-body .meta-data { margin-bottom: 6px; }
.announcement.dec-list .cart .card-body .card-text { margin: 0 0 8px; }
.announcement.dec-list .cart .card-body .card-text p { margin: 0; }
.announcement.dec-list .cart .card-body .btn { position: static; justify-self: start; background: none !important; border: 0 !important; color: #006AB6 !important; padding: 0 !important; font-weight: 600; font-size: 15px; text-transform: none; }
.announcement.dec-list .cart .card-body .btn::after { content: ' \2192'; font-family: Arial, sans-serif; }
.announcement.dec-list .cart .card-body .btn:hover, .announcement.dec-list .cart .card-body .btn:focus { text-decoration: underline; }
@media (max-width: 767px) {
    .announcement.dec-list .cart .card-body { grid-template-columns: 64px 1fr; column-gap: 14px; }
    .dec-date b { font-size: 22px; }
    .dec-date i { font-size: 11px; }
    .announcement.dec-list .cart .card-body .card-title { font-size: 17px; }
}

@media print {
    .dec-sw { background: none; color: #000; border: 1px solid #000; }
    .dec-sw a { color: #000; }
}
