/* ================= PowerIT: редакційний стиль =================
   Світлий «газетний» фон, заголовки з засічками, лінії замість карток,
   без світіння, градієнтів і «пілюль». Підключається останнім. */
:root:root {
  --wp--preset--color--base: #F5F3EE;
  --wp--preset--color--contrast: #161616;
  --wp--preset--color--accent-1: #C2410C;
  --wp--preset--color--accent-2: #ECE8DF;
  --wp--preset--color--accent-3: #161616;
  --wp--preset--color--accent-4: #5C5852;
  --wp--preset--color--accent-5: #FFFFFF;
  --wp--preset--color--accent-6: #D8D2C6;
  --wp--preset--color--on-dark: #F5F3EE;
  --pi-serif: Georgia, "Noto Serif", "PT Serif", "Times New Roman", serif;
  --oscar-radius: 4px; --oscar-radius-lg: 6px; --oscar-pill: 3px;
  --oscar-shadow: none; --oscar-shadow-lg: none;
}
body.oscar-mode-dark { color-scheme: light; background: #F5F3EE; color: #161616; }
h1, h2, h3, .wp-block-post-title, .pi-h1, .pi-article-title { font-family: var(--pi-serif) !important; font-weight: 700 !important;
  letter-spacing: -.01em !important; }
::selection { background: #FDE2CF; }

/* прибираємо світіння, градієнти й анімації появи */
.oscar-hero::before, .oscar-cta::before, .oscar-statement::before, .oscar-hero::after { display: none !important; }
.oscar-hero > *, .oscar-hero .wp-block-column > * { animation: none !important; }
.oscar-hero h1, .oscar-hero h1 * { background: none !important; -webkit-text-fill-color: currentColor !important; color: #161616 !important; }
.oscar-cta { background: #ECE8DF !important; color: #161616 !important; }
.oscar-cta h2, .oscar-cta p { color: #161616 !important; }

/* «пілюлі» над заголовками → звичайний рядок дрібними літерами */
.oscar-eyebrow { background: none !important; border: 0 !important; padding: 0 !important; border-radius: 0 !important;
  color: #C2410C !important; font-size: .76rem !important; letter-spacing: .12em !important; }
.oscar-eyebrow::before { display: none !important; }

/* кнопки без «пігулок», стрілок і підскоку */
.wp-element-button, .wp-block-button__link { border-radius: 3px !important; box-shadow: none !important; padding: .7rem 1.1rem !important; }
.wp-block-button__link:hover { transform: none !important; }
.wp-block-button:not(.is-style-outline) .wp-block-button__link::after { content: none !important; }
.wp-block-button:not(.is-style-outline) .wp-block-button__link { background: #161616 !important; color: #fff !important; }

/* картки сервісних сторінок → прості блоки з лінією */
.oscar-card, .oscar-step { background: transparent !important; border: 0 !important; border-top: 2px solid #161616 !important;
  border-radius: 0 !important; padding: 1rem 0 0 !important; transform: none !important; box-shadow: none !important; }
.oscar-features .oscar-card::before, .oscar-bento .oscar-card::before { display: none !important; }
.oscar-section { padding-top: clamp(2.5rem, 5vw, 4rem) !important; padding-bottom: clamp(2.5rem, 5vw, 4rem) !important; }
.oscar-section.has-accent-2-background-color { background: transparent !important; border-top: 1px solid #D8D2C6; }
.oscar-faq-item { background: transparent !important; border: 0 !important; border-bottom: 1px solid #D8D2C6 !important; border-radius: 0 !important; padding: .9rem 0 !important; }

/* шапка */
.oscar-header { background: #F5F3EE !important; border-bottom: 3px double #161616 !important; backdrop-filter: none !important; }
.oscar-header a, .oscar-header .wp-block-navigation-item__content { color: #161616 !important; }
.oscar-header .wp-block-navigation .wp-block-navigation__submenu-container { background: #fff !important; color: #161616 !important;
  border: 1px solid #161616 !important; border-radius: 0 !important; box-shadow: 4px 4px 0 rgba(0,0,0,.08) !important; }
.oscar-header .wp-block-navigation .wp-block-navigation__submenu-container a,
.oscar-header .wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item__content { color: #161616 !important; }
.oscar-header .wp-block-navigation .wp-block-navigation__submenu-container a:hover,
.oscar-header .wp-block-navigation .wp-block-navigation__submenu-container a:focus-visible { background: #F5F3EE !important; color: #C2410C !important; box-shadow: none !important; }
.oscar-header .wp-block-navigation__responsive-container.is-menu-open { background: #F5F3EE !important; color: #161616 !important; }
.pi-dateline { font-size: .78rem; color: #5C5852; letter-spacing: .02em; white-space: nowrap; }
.oscar-logo img { height: 38px; }

/* подвал */
.oscar-footer { background: #161616 !important; }

/* ===== лента / рубрики ===== */
.pi-hero { border-bottom: 1px solid #161616; padding-bottom: 1.2rem; }
.pi-h1, .pi-hero h1 { font-size: clamp(2rem, 4vw, 3rem) !important; letter-spacing: -.015em !important; }
.pi-lead { color: #5C5852; }
.pi-chips { gap: .2rem .9rem; }
.pi-chip { background: none !important; border: 0 !important; border-radius: 0 !important; padding: .15rem 0 !important; color: #161616 !important;
  font-size: .9rem; border-bottom: 1px solid transparent !important; }
.pi-chip:hover { border-bottom-color: #C2410C !important; color: #C2410C !important; }
.pi-chip.is-active { background: none !important; color: #C2410C !important; font-weight: 700; border-bottom-color: #C2410C !important; }
.pi-chip span { color: #8A857D; }

/* картка → запис стрічки */
.pi-card { background: transparent !important; border: 0 !important; border-radius: 0 !important; padding: 0 !important; box-shadow: none !important;
  transform: none !important; gap: .35rem; }
.pi-card:hover { transform: none !important; box-shadow: none !important; }
.pi-card-title a:hover { color: #C2410C !important; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.pi-cat { color: #C2410C !important; font-size: .7rem; letter-spacing: .08em; }
.pi-meta { color: #6F6A63; }
.pi-meta > * + *::before { color: #B9B2A6; }

.pi-list .pi-grid { grid-template-columns: 1fr !important; gap: 0 !important; max-width: 860px; }
.pi-list .pi-grid > li { border-top: 1px solid #D8D2C6; padding: 1.1rem 0 1.2rem; }
.pi-list .pi-grid > li:first-child { border-top: 2px solid #161616; }
.pi-list .pi-card { display: grid !important; grid-template-columns: 8.5rem 1fr; column-gap: 1.4rem; align-items: start; }
.pi-list .pi-card > .pi-meta { grid-column: 1; grid-row: 1 / span 3; padding-top: .15rem; display: block !important; font-size: .8rem; }
.pi-list .pi-card > .pi-meta > * { display: block; }
.pi-list .pi-card > .pi-meta > * + *::before { content: none; }
.pi-list .pi-card > .pi-cat, .pi-list .pi-card > .pi-card-title, .pi-list .pi-card > .pi-card-excerpt { grid-column: 2; }
.pi-list .pi-card-title { font-size: 1.28rem !important; line-height: 1.25; }
.pi-list .pi-grid > li:nth-child(5n+1) .pi-card-title { font-size: 1.55rem !important; }
.pi-list .pi-grid > li:nth-child(3n+2) .pi-card-excerpt { display: none; }
@media (max-width: 640px) { .pi-list .pi-card { grid-template-columns: 1fr; } .pi-list .pi-card > * { grid-column: 1 !important; grid-row: auto !important; } }

/* верхній блок стрічки */
.pi-top-grid { border-bottom: 1px solid #161616; padding-bottom: 1.5rem !important; gap: 1.6rem 2rem !important; }
.pi-top-grid > li:first-child .pi-card { background: none !important; padding: 0 !important; }
.pi-top-grid > li:first-child .pi-card-title { font-size: clamp(1.7rem, 3vw, 2.5rem) !important; }
.pi-top-grid > li:not(:first-child) { border-top: 1px solid #D8D2C6; padding-top: 1rem; }
.pi-top-grid > li:nth-child(2) { border-top: 0; padding-top: 0; }
.pi-top-grid > li:not(:first-child) .wp-block-post-featured-image { display: none; }
.pi-card-top .wp-block-post-featured-image img, .pi-thumb img { border-radius: 0 !important; border: 0 !important; }
.pi-section-title { font-size: 1rem !important; font-family: inherit !important; text-transform: uppercase; letter-spacing: .12em;
  border-top: 2px solid #161616; padding-top: .6rem; margin-top: 2.5rem !important; }
.pi-subscribe { background: #ECE8DF !important; border: 0 !important; border-radius: 0 !important; }
.pi-subscribe a, .pi-empty a { color: #C2410C; }
.pi-empty { border: 1px solid #D8D2C6 !important; border-radius: 0 !important; text-align: left !important; }
.pi-pagination a, .pi-pagination .current { border-radius: 0 !important; }
.pi-pagination .current { background: #161616 !important; border-color: #161616 !important; color: #fff !important; }

/* ===== стаття ===== */
.pi-crumbs a { color: #5C5852; }
.pi-crumbs li + li::before { color: #B9B2A6; }
.pi-article-title { font-size: clamp(2rem, 4.2vw, 3rem) !important; line-height: 1.12 !important; }
.single-post .pi-article-lead, .single-post:has(.pi-keybox) .pi-article-lead { background: none !important; border: 0 !important; padding: 0 !important;
  color: #3F3B36 !important; font-family: var(--pi-serif); font-style: italic; font-size: clamp(1.1rem, 1.6vw, 1.3rem) !important; }
.single-post .pi-article-lead::before { content: none !important; }
.single-post .pi-article-lead p { color: #3F3B36 !important; }
.pi-article-meta { border-top: 1px solid #161616 !important; }
.pi-article-meta p:first-child { color: #161616; }
.pi-article-cover img { border-radius: 0 !important; box-shadow: none !important; }
.pi-article-body { font-family: var(--pi-serif); font-size: 1.14rem; line-height: 1.7; color: #1E1D1B; }
.pi-article-body h2 { font-size: clamp(1.4rem, 2.3vw, 1.75rem) !important; }
.pi-article-body a { color: #C2410C; }
.pi-toc { background: none !important; border: 0 !important; border-left: 3px solid #161616 !important; border-radius: 0 !important; padding: .2rem 0 .2rem 1.1rem !important; }
.pi-toc summary { color: #161616; }
.pi-toc a { color: #161616; }
.pi-keybox { background: #ECE8DF !important; border: 0 !important; border-radius: 0 !important; }
.pi-keybox-title { color: #161616 !important; }
.pi-keybox li::marker { color: #C2410C; }
.pi-tip { background: none !important; border-left: 3px solid #C2410C !important; border-radius: 0 !important; padding: .2rem 0 .2rem 1.1rem !important; }
.pi-tip strong { color: #161616 !important; }
.pi-figure img { border-radius: 0 !important; box-shadow: none !important; border: 0 !important; }
.pi-figure figcaption { text-align: left !important; font-family: inherit; }
.pi-article-body table { border-radius: 0 !important; border: 0 !important; border-top: 2px solid #161616 !important; }
.pi-article-body thead th { background: none !important; }
.pi-article-body tbody tr:nth-child(even) td { background: none !important; }
.pi-article-body code { background: #ECE8DF; border: 0; }
.pi-article-body pre { background: #161616; color: #F5F3EE; border: 0; border-radius: 0; }
.pi-source { background: none !important; border-left: 0 !important; border-top: 1px solid #D8D2C6; border-radius: 0 !important; padding: .8rem 0 0 !important;
  font-family: "Onest", system-ui, sans-serif; }
.pi-source a { color: #C2410C; }
.pi-photo-credit { font-family: "Onest", system-ui, sans-serif; }
.pi-photo-credit a, .pi-photo figcaption a { color: #6F6A63 !important; }
.pi-tags a { border-radius: 0 !important; border: 0 !important; border-bottom: 1px solid #D8D2C6 !important; padding: .1rem 0 !important; margin-right: .6rem; color: #161616; }
.pi-editorial a { color: #C2410C; }
.pi-related { border-top: 2px solid #161616; padding-top: 1rem; }
.pi-related h2 { font-size: 1rem !important; font-family: inherit !important; text-transform: uppercase; letter-spacing: .12em; }
.pi-related .pi-grid { gap: 1.5rem 2rem !important; }
.pi-related .pi-card { border-top: 1px solid #D8D2C6 !important; padding-top: .8rem !important; }

/* ===== головна ===== */
.ph { padding-top: 1.6rem; padding-bottom: 3rem; }
.ph-row { display: grid; gap: 2rem; margin-top: 2rem; }
.ph-row-1 { grid-template-columns: minmax(0, 2.1fr) minmax(0, 1fr); border-bottom: 1px solid #161616; padding-bottom: 2rem; margin-top: 1rem; }
.ph-row-2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) minmax(0, 1fr); }
.ph-row-3 { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); border-top: 1px solid #161616; padding-top: 1.5rem; }
@media (max-width: 900px) { .ph-row-1, .ph-row-2, .ph-row-3 { grid-template-columns: 1fr; } }
.ph h2.ph-label, .ph .ph-label { font-family: inherit !important; font-size: .8rem !important; font-weight: 700 !important; text-transform: uppercase;
  letter-spacing: .12em !important; border-top: 2px solid #161616; padding-top: .5rem; margin: 0 0 .9rem !important; }
.ph-lead .wp-block-post-featured-image img { aspect-ratio: 16/9; object-fit: cover; border-radius: 0 !important; }
.ph-lead .wp-block-post-title { font-size: clamp(2rem, 3.8vw, 3.1rem) !important; line-height: 1.08 !important; margin: .9rem 0 .6rem !important; }
.ph-lead .wp-block-post-title a, .ph a.ph-t, .ph .wp-block-post-title a { color: #161616; text-decoration: none; }
.ph .wp-block-post-title a:hover { color: #C2410C; text-decoration: underline; text-decoration-thickness: 1px; }
.ph-lead .wp-block-post-excerpt { font-family: var(--pi-serif); font-size: 1.15rem; color: #3F3B36; }
.ph-lead .wp-block-post-excerpt__more-text, .ph .wp-block-post-excerpt__more-text { display: none; }
.ph-day ul, .ph-day .wp-block-post-template { list-style: none; padding: 0; margin: 0; }
.ph-day li { border-top: 1px solid #D8D2C6; padding: .6rem 0; }
.ph-day li:first-child { border-top: 0; padding-top: 0; }
.ph-day .wp-block-post-title { font-size: 1.02rem !important; line-height: 1.3; margin: 0 !important; font-family: inherit !important; font-weight: 600 !important; }
.ph-day .wp-block-post-date { font-size: .75rem; color: #8A857D; margin: 0 0 .1rem !important; }
.ph-col { background: #ECE8DF; padding: 1.2rem 1.3rem 1.4rem; }
.ph-col .ph-label { border-top: 0; padding-top: 0; color: #C2410C; }
.ph-col .wp-block-post-title { font-size: 1.6rem !important; font-style: italic; line-height: 1.2; margin: 0 0 .6rem !important; }
.ph-col .wp-block-post-excerpt { font-family: var(--pi-serif); color: #2B2925; }
.ph-picks ol { counter-reset: n; list-style: none; padding: 0; margin: 0; }
.ph-picks li { counter-increment: n; display: grid; grid-template-columns: 2.2rem 1fr; padding: .7rem 0; border-top: 1px solid #D8D2C6; }
.ph-picks li:first-child { border-top: 0; padding-top: 0; }
.ph-picks li::before { content: counter(n); font-family: var(--pi-serif); font-size: 1.9rem; line-height: 1; color: #C2410C; }
.ph-picks a { color: #161616; text-decoration: none; font-family: var(--pi-serif); font-size: 1.08rem; line-height: 1.3; font-weight: 700; }
.ph-picks a:hover { color: #C2410C; }
.ph-sec .wp-block-post-template { list-style: none; padding: 0; margin: 0; }
.ph-sec li { padding: .55rem 0; border-top: 1px solid #D8D2C6; }
.ph-sec li:first-child { border-top: 0; padding-top: 0; }
.ph-sec li:first-child .wp-block-post-featured-image { margin-bottom: .6rem; }
.ph-sec li:first-child .wp-block-post-featured-image img { aspect-ratio: 3/2; object-fit: cover; border-radius: 0 !important; }
.ph-sec li:not(:first-child) .wp-block-post-featured-image { display: none; }
.ph-sec li:first-child .wp-block-post-title { font-size: 1.35rem !important; }
.ph-sec .wp-block-post-title { font-size: 1.02rem !important; margin: 0 !important; line-height: 1.3; }
.ph-more { font-size: .85rem; margin-top: .8rem !important; }
.ph-more a { color: #C2410C; }
.ph-note { font-size: .92rem; color: #5C5852; border-left: 3px solid #C2410C; padding-left: .9rem; margin-top: 1.5rem !important; }
.pi-sign { font-style: italic; color: #5C5852; text-align: right; }
.ph-col { align-self: start; }

/* службові сторінки */
body.page:not(.home) .wp-block-post-content { max-width: 720px; margin-left: auto; margin-right: auto; font-family: var(--pi-serif); font-size: 1.12rem; line-height: 1.7; }
body.page:not(.home) .wp-block-post-content h2 { font-size: 1.45rem !important; margin-top: 2rem !important; }
body.page:not(.home) .wp-block-post-content a { color: #C2410C; }
body.page:not(.home) h1.wp-block-post-title { max-width: 720px; margin-left: auto !important; margin-right: auto !important; font-size: clamp(2rem, 4vw, 2.8rem) !important;
  border-bottom: 1px solid #161616; padding-bottom: .8rem; }
.pi-page-lead { font-size: 1.3rem; line-height: 1.5; font-style: italic; color: #3F3B36; }
.pi-credits { font-family: 'Onest', system-ui, sans-serif; font-size: .95rem; line-height: 1.6; padding-left: 1.2rem; }
