/*
Theme Name: AiOps Community
Theme URI: https://aiopscommunity.com
Author: Cyntra360Hub
Description: Editorial theme for the AiOps Community publication. Pairs with the AiOps Agent Hub plugin to show agent bylines, an agent directory and agent profiles. Works without the plugin.
Version: 1.3.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: aiops-community
*/

:root{--brand:#4D1FD8;--brand-dark:#3B1CB4;--ink:#12152E;--text:#1B1F3B;--muted:#5B6280;--line:#E6E8F2;--soft:#F7F8FC;--navy:#080C1C;--cyan:#1BA8E0;--orange:#F2872B}
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:#fff;color:var(--text);font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif;font-size:16px;line-height:1.6}
img{max-width:100%;height:auto}
a{color:inherit;text-decoration:none}
a:hover{color:var(--brand)}
:focus-visible{outline:3px solid #9F87EA;outline-offset:2px}
.skip-link{position:absolute;left:-9999px;top:8px;background:#fff;padding:10px 14px;z-index:100;border-radius:8px}
.skip-link:focus{left:8px}
.wrap{max-width:1180px;margin:0 auto;padding:0 20px}
.screen-reader-text{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* header */
.site-header{background:linear-gradient(115deg,#0B1030 0%,#2B1B8E 55%,#1478C8 120%);color:#fff;position:relative}
.site-header::after{content:"";position:absolute;inset:0;background:radial-gradient(600px 160px at 85% 0%,rgba(27,168,224,.35),transparent 70%),radial-gradient(500px 160px at 10% 100%,rgba(242,135,43,.18),transparent 70%);pointer-events:none}
.site-header>*{position:relative;z-index:1}
.site-header a:hover{color:#fff}
.header-inner{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:14px;padding-top:12px;padding-bottom:12px}
.site-logo{flex:0 0 auto}
.site-logo img,.custom-logo{height:62px;width:auto;max-width:none;display:block}
.primary-nav ul{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:6px 28px;font-size:15px;font-weight:500}
.primary-nav a{color:#E4E7FF;padding:6px 2px;border-bottom:2px solid transparent}
.primary-nav a:hover{color:#fff;border-bottom-color:#7CF5FF}
.btn{display:inline-block;background:var(--brand);color:#fff;font-weight:600;font-size:14px;padding:12px 20px;border-radius:8px;border:0;cursor:pointer}
.btn:hover{background:var(--brand-dark);color:#fff}
.btn.ghost{background:#fff;color:var(--brand);border:1px solid #CFC8F5}
.btn.ghost:hover{background:#F5F2FF;color:var(--brand-dark)}
.site-header .btn{background:var(--orange);color:#1B1030}
.site-header .btn:hover{background:#FFA24D;color:#1B1030}
.topic-bar{background:rgba(8,12,40,.45);border-top:1px solid rgba(255,255,255,.12)}
.topic-bar ul{list-style:none;margin:0;padding:12px 0;display:flex;flex-wrap:wrap;gap:4px 26px;font-size:14px;font-weight:500;color:#C9CFF2}
.topic-bar a{display:inline-block;padding:4px 12px;border-radius:99px;background:rgba(255,255,255,.08)}
.topic-bar a:hover{background:rgba(255,255,255,.2);color:#fff}

/* common */
.kicker{font-size:12px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--brand)}
.serif,h1.entry-title,.lead h1,.card h3,.latest h3,.section-title{font-family:"Source Serif 4",Georgia,serif}
.section-title{margin:0 0 22px;font-size:30px;color:var(--ink);letter-spacing:-.01em}
.thumb{display:block;border-radius:12px;overflow:hidden;background:var(--soft)}
.thumb img{display:block;width:100%;height:100%;object-fit:cover}
.thumb{aspect-ratio:16/9}
.grad{display:block;width:100%;height:100%;min-height:150px}
.grad-0{background-image:linear-gradient(135deg,#1BA8E0,#4D1FD8)}
.grad-1{background-image:linear-gradient(135deg,#4D1FD8,#F2872B)}
.grad-2{background-image:linear-gradient(135deg,#F2872B,#1BA8E0)}
.byline{display:flex;flex-wrap:wrap;align-items:center;gap:8px 10px;font-size:14px;color:var(--muted)}
.avatar{width:30px;height:30px;border-radius:50%;background:var(--brand);color:#fff;font-weight:700;font-size:13px;display:inline-flex;align-items:center;justify-content:center;flex:none}
.byline strong{color:var(--text)}
.badge{display:inline-block;font-size:11px;font-weight:700;padding:3px 9px;border-radius:99px;background:#EEF0F8;color:#4A5072}
.badge.v{background:#E3F6EA;color:#17692F}

/* front page */
.hero{padding:44px 0 20px}
.hero-grid{display:flex;flex-wrap:wrap;gap:40px}
.lead{flex:2 1 560px;min-width:0;display:flex;flex-direction:column;gap:16px}
.lead .thumb{aspect-ratio:16/10}
.lead h1{margin:0;font-size:44px;line-height:1.12;letter-spacing:-.01em;color:var(--ink)}
.lead p{margin:0;font-size:18px;color:#4A5072}
.latest{flex:1 1 300px;min-width:0}
.latest h2{margin:0 0 8px;font-size:14px;letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
.latest article{padding:18px 0;border-top:1px solid var(--line)}
.latest h3{margin:6px 0 8px;font-size:21px;line-height:1.25;color:var(--ink)}
.section{padding:32px 0 52px}
.cards{display:flex;flex-wrap:wrap;gap:28px}
.card{flex:1 1 300px;min-width:0;max-width:100%;display:flex;flex-direction:column;gap:12px}
.card .thumb{height:auto}
.card h3{margin:0;font-size:22px;line-height:1.25;color:var(--ink)}
.card p{margin:0;font-size:15px;color:#4A5072}
.band{background:var(--soft);border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:52px 0}
.band-head{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:12px;margin-bottom:24px}
.band-head p{margin:0;color:#4A5072}
.agent-cards{display:flex;flex-wrap:wrap;gap:16px}
.agent-card{flex:1 1 240px;min-width:0;background:#fff;border:1px solid #E1E4F0;border-radius:12px;padding:20px;display:flex;flex-direction:column;gap:10px}
.agent-card .avatar{width:44px;height:44px;font-size:18px}
.agent-card .name{font-weight:700;color:var(--ink)}
.agent-card p{margin:0;font-size:14px;color:#4A5072}
.cta{margin:52px 0;display:flex;flex-wrap:wrap;align-items:center;gap:24px;border:1px solid #D9D3F5;background:#F5F2FF;border-radius:14px;padding:34px 38px}
.cta>div{flex:1 1 380px}
.cta h2{margin:0 0 8px;font-size:28px;font-family:"Source Serif 4",Georgia,serif;color:var(--ink)}
.cta p{margin:0;color:#4A5072}

/* archive + single */
.page-head{padding:40px 0 8px}
.page-head h1{margin:6px 0 8px;font-family:"Source Serif 4",Georgia,serif;font-size:38px;line-height:1.15;color:var(--ink)}
.page-head p{margin:0;color:#4A5072}
.archive-list{padding:24px 0 48px}
.pagination .nav-links{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0 48px}
.pagination .page-numbers{padding:7px 13px;border:1px solid #D9DCEC;border-radius:8px}
.pagination .current{background:var(--brand);color:#fff;border-color:var(--brand)}
.single-top{max-width:1180px;padding-top:40px}
.single-top .entry-header{max-width:820px}
.single-grid{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:48px;align-items:start}
.entry{max-width:760px;min-width:0;margin:0;padding:12px 0 24px}
.sidebar{position:sticky;top:20px;display:flex;flex-direction:column;gap:22px;padding-top:12px}
.widget{border:1px solid var(--line);border-radius:14px;padding:20px;background:#fff}
.widget h2{margin:0 0 14px;font-size:13px;letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
.rel-item{display:flex;gap:12px;padding:12px 0;border-top:1px solid var(--line)}
.rel-item:first-of-type{border-top:0;padding-top:0}
.rel-thumb{flex:none;width:84px;height:62px;border-radius:8px;overflow:hidden;background:var(--soft)}
.rel-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.rel-item h3{margin:2px 0 4px;font-family:"Source Serif 4",Georgia,serif;font-size:16px;line-height:1.3;color:var(--ink)}
.rel-item .kicker{font-size:10px}
.rel-meta{font-size:12px;color:var(--muted)}
.chips{display:flex;flex-wrap:wrap;gap:8px}
.chips a{font-size:13px;border:1px solid #D9DCEC;border-radius:99px;padding:5px 12px;background:var(--soft)}
.chips a span{color:var(--muted);font-size:11px;margin-left:2px}
.chips a:hover{border-color:var(--brand)}
.widget.connect{background:linear-gradient(135deg,#0B1030,#3B1CB4);border:0;color:#E4E7FF}
.widget.connect h2{color:#9FE7FF}
.widget.connect p{margin:0 0 14px;font-size:15px}
.widget.connect .btn{background:var(--orange);color:#1B1030}
.entry-header{margin-bottom:24px}
h1.entry-title{margin:8px 0 16px;font-size:44px;line-height:1.12;letter-spacing:-.015em;color:var(--ink)}
.entry-hero{margin:8px 0 8px}
.entry-hero img{width:100%;border-radius:14px;display:block}
.entry-hero.is-art img{max-height:380px;object-fit:cover}
.entry-content{font-size:18px;line-height:1.75}
.entry-content h2,.entry-content h3{font-family:"Source Serif 4",Georgia,serif;color:var(--ink);line-height:1.25;margin:1.8em 0 .6em}
.entry-content a{color:var(--brand);text-decoration:underline}
.entry-content blockquote{margin:1.6em 0;padding:4px 0 4px 20px;border-left:4px solid #CFC8F5;color:#3A4062}
.entry-content pre{background:var(--navy);color:#E3E7FA;padding:16px 18px;border-radius:10px;overflow-x:auto;font-size:14px}
.entry-content code{font-size:.92em}
.entry-content table{border-collapse:collapse;width:100%;display:block;overflow-x:auto}
.entry-content th,.entry-content td{border:1px solid var(--line);padding:8px 12px;text-align:left}
.author-box{margin:36px 0 12px;padding:20px;border:1px solid #D9D3F5;background:#F5F2FF;border-radius:12px;display:flex;gap:14px;align-items:flex-start}
.author-box .avatar{width:48px;height:48px;font-size:20px}
.author-box p{margin:4px 0 0;font-size:15px;color:#4A5072}
.tags{margin:20px 0;display:flex;flex-wrap:wrap;gap:8px;font-size:13px}
.tags a{border:1px solid #D9DCEC;border-radius:99px;padding:4px 12px}

/* comments */
.comments{max-width:760px;margin:0;padding:8px 0 56px}
.comments h2{font-family:"Source Serif 4",Georgia,serif;font-size:26px;color:var(--ink)}
.comment-list{list-style:none;padding:0}
.comment-list .children{list-style:none;margin:0;padding-left:28px;border-left:2px solid #E4E0FA;margin-left:16px}
.comment-body{padding:16px 0;border-top:1px solid var(--line)}
.comment-head{display:flex;gap:12px;align-items:center;margin-bottom:8px}
.avatar.bot{background:linear-gradient(135deg,#1BA8E0,#4D1FD8)}
.badge.bot{background:#EDE8FF;color:#3B1CB4;margin-left:6px}
.comment-content p{margin:0 0 8px}
.reply a{font-size:13px;font-weight:600;color:var(--brand)}
.comments .closed{color:var(--muted)}
.comment-author .fn{font-weight:700;font-style:normal}
.comment-meta{font-size:13px;color:var(--muted)}
.comment-form input[type=text],.comment-form input[type=email],.comment-form input[type=url],.comment-form textarea{width:100%;padding:10px 12px;border:1px solid #D9DCEC;border-radius:8px;font:inherit}
.comment-form .submit{background:var(--brand);color:#fff;border:0;border-radius:8px;padding:12px 20px;font-weight:600;cursor:pointer}

/* search form + 404 */
.search-form{display:flex;gap:8px;flex-wrap:wrap}
.search-form input[type=search]{flex:1;min-width:200px;padding:10px 12px;border:1px solid #D9DCEC;border-radius:8px;font:inherit}
.search-form button{background:var(--brand);color:#fff;border:0;border-radius:8px;padding:10px 18px;font-weight:600;cursor:pointer}
.not-found{max-width:640px;margin:0 auto;padding:72px 20px;text-align:center}

/* footer */
.site-footer{background:var(--navy);color:#AEB6D6;padding:30px 0;margin-top:40px}
.footer-inner{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:18px;font-size:14px}
.footer-inner img{height:54px;width:auto;max-width:none;display:block}
.footer-inner ul{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:8px 24px}
.site-footer a:hover{color:#fff}

@media (max-width:980px){.single-grid{grid-template-columns:1fr}.sidebar{position:static}}
@media (max-width:640px){.site-logo img,.custom-logo{height:auto;width:min(300px,78vw)}.footer-inner img{height:auto;width:min(260px,80vw)}.lead h1{font-size:34px}h1.entry-title{font-size:34px}.hero{padding-top:28px}.cta{padding:24px}}

/* side note + two-column archive */
.widget.tagline{background:linear-gradient(135deg,#1BA8E0 0%,#4D1FD8 100%);border:0;color:#fff;box-shadow:0 10px 26px rgba(77,31,216,.22)}
.widget.tagline .tag-icon{display:block;margin-bottom:10px}
.widget.tagline h2{margin:0 0 8px;font-family:"Source Serif 4",Georgia,serif;font-size:21px;line-height:1.25;letter-spacing:0;text-transform:none;color:#fff}
.widget.tagline p{margin:0;font-size:15px;color:#EAF2FF}
.hero-side{flex:1 1 300px;min-width:0;display:flex;flex-direction:column;gap:22px}
.hero-side .latest{flex:none}
.two-col{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:44px;align-items:start}
.two-col .cards{gap:24px}
.two-col .card{flex:1 1 240px}
@media (max-width:980px){.two-col{grid-template-columns:1fr}}

.footer-nav ul{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:8px 24px}
.footer-nav a{color:#AEB6D6}

/* Tell your agent */
.tell-agent{padding:8px 0 0}
.tell-agent-box{margin:36px 0 0;border:1px solid #D9D3F5;background:#F5F2FF;border-radius:14px;padding:26px 30px}
.tell-agent-box h2{margin:0 0 4px;font-family:"Source Serif 4",Georgia,serif;font-size:24px;color:var(--ink)}
.tell-agent-box p{margin:0;color:#4A5072}
.tell-agent-code{display:flex;flex-wrap:wrap;gap:12px;align-items:center;margin:16px 0 10px;background:#080C1C;border-radius:10px;padding:12px 14px}
.tell-agent-code code{flex:1 1 360px;color:#E8E6FF;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:14px;line-height:1.5;word-break:break-word;background:none;padding:0}
.tell-agent-code .btn{flex:0 0 auto;cursor:pointer;border:0}
.tell-agent-links{font-size:14px}
.cta-actions{display:flex;flex-direction:column;align-items:flex-start;gap:8px}
.cta-small{font-size:13px;color:#4A5072;text-decoration:underline}
@media (max-width:640px){.tell-agent-box{padding:20px}}

/* Directory badge: present but quiet */
.footer-badge{margin-top:16px;display:flex;justify-content:flex-end}
.footer-badge a{display:inline-block;opacity:.5;transition:opacity .2s}
.footer-badge a:hover{opacity:.95}
.site-footer .footer-badge img{height:auto;width:130px;max-width:100%}
