/*
Theme Name: OmniAssist Blog
Theme URI: https://www.omniassist.io/blog
Description: Block child theme of Twenty Twenty-Five. Matches the omniassist.io website (pink and black, Teachers + Inter).
Author: OmniAssist
Template: twentytwentyfive
Version: 1.3.0
Requires at least: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: omniassist-blog
*/

/* ── Header: sticky, white, matches omniassist.io ──────────── */
header.wp-block-template-part { position: sticky; top: 0; z-index: 100; background: #fff; }
.admin-bar header.wp-block-template-part { top: 32px; }
@media (max-width: 782px) { .admin-bar header.wp-block-template-part { top: 46px; } }
.oa-header .wp-block-navigation a { font-family: Inter, sans-serif; font-size: 15px; font-weight: 500; color: #0C0C0C; padding: 8px 12px; border-radius: 8px; text-decoration: none; }
.oa-header .wp-block-navigation a:hover { color: #EE3E5F; }
.oa-header .wp-block-buttons { gap: 12px; flex-wrap: nowrap; }
.oa-header .wp-block-button__link { font-size: 14px; font-weight: 600; padding: 10px 16px; border-radius: 8px; }
.oa-header .is-style-outline .wp-block-button__link { background: transparent; color: #0C0C0C; border: 1px solid #E4E4E7; }
.oa-header .is-style-outline .wp-block-button__link:hover { border-color: #0C0C0C; background: transparent; color: #0C0C0C; }
@media (max-width: 600px) { .oa-header .is-style-outline { display: none; } }

/* ── Blog cards ────────────────────────────────────────────── */
.oa-card { border: 1px solid #E4E4E7; border-radius: 16px; overflow: hidden; height: 100%; transition: border-color .2s, transform .2s; }
.oa-card:hover { border-color: #EE3E5F; transform: translateY(-2px); }
.oa-card .wp-block-post-featured-image { margin: 0; }
.oa-card .wp-block-post-featured-image img { width: 100%; display: block; }
.oa-card .oa-cat a { font-family: Teachers, sans-serif; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #EE3E5F; text-decoration: none; }
.oa-card .wp-block-post-excerpt__more-link { color: #EE3E5F; font-weight: 600; font-size: 14px; text-decoration: none; }
.oa-eyebrow, .oa-eyebrow a { font-family: Teachers, sans-serif; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #EE3E5F; text-decoration: none; margin: 0 0 12px; }
.wp-block-query-pagination a { color: #0C0C0C; text-decoration: none; font-weight: 600; }
.wp-block-query-pagination-numbers .current { color: #EE3E5F; }

/* ── Single post: heading, 68/32 layout, sticky sidebar ────── */
.oa-post-head { max-width: none; width: 100%; text-align: center; }
.oa-post-head .wp-block-post-title { margin-left: auto; margin-right: auto; }
.oa-post-head .oa-eyebrow { display: block; text-align: center; }
.oa-meta, .oa-meta p { font-size: 14px; color: #71717A; margin: 0; }
.oa-post-layout { gap: 56px; }
.oa-post-layout .wp-block-post-featured-image { margin: 0; }
.oa-post-layout .wp-block-post-featured-image img { width: 100%; display: block; }
.wp-block-post-content { font-size: 1.0625rem; line-height: 1.8; }
.wp-block-post-content a { text-decoration: underline; }
.wp-block-post-content h2 { margin-top: 2.2em; }
.wp-block-post-content h3 { margin-top: 1.8em; }
.wp-block-post-content img { border-radius: 12px; max-width: 100%; height: auto; }
.wp-block-post-content blockquote { border-left: 4px solid #EE3E5F; padding-left: 1.2em; margin-left: 0; }
.wp-block-post-content table { border-collapse: collapse; width: 100%; font-size: 15px; }
.wp-block-post-content th, .wp-block-post-content td { border: 1px solid #E4E4E7; padding: 10px 14px; text-align: left; }
.wp-block-post-content th { background: #0C0C0C; color: #fff; font-family: Teachers, sans-serif; }
.oa-sidebar { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 20px; }
.admin-bar .oa-sidebar { top: 128px; }
.oa-widget { border: 1px solid #E4E4E7; border-radius: 16px; padding: 24px; background: #fff; }
.oa-widget-dark { background: #0C0C0C; border-color: #0C0C0C; }
.oa-widget-dark p { color: rgba(255,255,255,.6); font-size: 14px; line-height: 1.65; margin: 0 0 18px; }
.oa-widget-dark h3 { font-size: 1.15rem; margin: 0 0 10px; }
.oa-widget-dark .wp-block-buttons { flex-direction: column; align-items: stretch; gap: 8px; }
.oa-widget-dark .wp-block-button { width: 100%; }
.oa-widget-dark .wp-block-button__link { width: 100%; text-align: center; }
.oa-widget-dark .is-style-outline .wp-block-button__link { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.3); }
.oa-widget-title { font-size: 11px !important; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #71717A; margin: 0 0 14px; }
.oa-links, .oa-links.wp-block-latest-posts { list-style: none; margin: 0; padding: 0; }
.oa-links li { padding: 9px 0; border-bottom: 1px solid #E4E4E7; font-size: 14px; line-height: 1.45; }
.oa-links li:last-child { border-bottom: 0; }
.oa-links a { color: #0C0C0C; text-decoration: none; font-weight: 500; }
.oa-links a:hover { color: #EE3E5F; }
.oa-links time { display: block; font-size: 12px; color: #71717A; margin-top: 2px; }

/* ── Author bio ────────────────────────────────────────────── */
.oa-author { border: 1px solid #E4E4E7; border-radius: 16px; padding: 28px; background: #F7F7F7; }
.oa-author .wp-block-post-author { display: flex; gap: 20px; align-items: flex-start; }
.oa-author .wp-block-post-author__avatar img { border-radius: 50%; display: block; }
.oa-author .wp-block-post-author__byline { font-family: Teachers, sans-serif; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #EE3E5F; margin: 0 0 4px; }
.oa-author .wp-block-post-author__name { font-family: Teachers, sans-serif; font-size: 1.2rem; font-weight: 700; margin: 0 0 8px; }
.oa-author .wp-block-post-author__bio { font-size: 15px; line-height: 1.65; color: #71717A; margin: 0; }
.oa-postnav { gap: 20px; }
.oa-postnav a { color: #0C0C0C; font-weight: 600; text-decoration: none; }
.oa-postnav a:hover { color: #EE3E5F; }

/* ── CTA band ──────────────────────────────────────────────── */
.oa-cta h2, .oa-cta p { color: #fff; }
.oa-cta p { color: rgba(255,255,255,.55); }
.oa-cta .is-style-outline .wp-block-button__link { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.3); }
.oa-cta .is-style-outline .wp-block-button__link:hover { border-color: #fff; }

/* ── Footer ────────────────────────────────────────────────── */
.oa-footer, .oa-footer p { color: rgba(255,255,255,.45); font-size: 14px; }
.oa-footer a { color: rgba(255,255,255,.45); text-decoration: none; }
.oa-footer a:hover { color: #fff; }
.oa-footer .wp-block-columns { gap: 48px; margin-bottom: 40px; }
.oa-footer-title { font-family: Teachers, sans-serif; font-size: 11px !important; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.3) !important; margin-bottom: 14px; }
.oa-footer .wp-block-column p { margin: 0 0 9px; }
.oa-footer-bottom { border-top: 1px solid rgba(255,255,255,.07); padding-top: 24px; }
.oa-footer-bottom p { font-size: 12px; color: rgba(255,255,255,.25); margin: 0; }
.oa-footer-bottom a { color: rgba(255,255,255,.25); }

/* ── Mobile ────────────────────────────────────────────────── */
@media (max-width: 781px) {
  .oa-sidebar { position: static; }
  .oa-post-layout { gap: 40px; }
  .oa-footer .wp-block-columns { gap: 28px; }
  .oa-author .wp-block-post-author { flex-direction: column; }
}
