/*
 * Agentic Essentials: styles for the block layouts and block styles.
 * Loaded on the site AND inside the block editor (add_editor_style), so what you see
 * while editing matches the live page. Colors and fonts come from theme.json presets.
 */
:root{
  --ae-midnight:var(--wp--preset--color--midnight,#0B1020);--ae-blue:var(--wp--preset--color--blue,#2F5BFF);
  --ae-violet:var(--wp--preset--color--violet,#7C5CFF);--ae-mint:var(--wp--preset--color--mint,#22D3A6);
  --ae-slate:var(--wp--preset--color--slate,#5B6478);--ae-cloud:var(--wp--preset--color--cloud,#F4F6FB);
  --ae-line:var(--wp--preset--color--line,#E3E7F0);--ae-blue-100:#E8EEFF;--ae-periwinkle:#9DB2FF;
  --ae-display:var(--wp--preset--font-family--display,'Space Grotesk',system-ui,sans-serif);
  --ae-card-shadow:0 1px 2px rgba(11,16,32,.04),0 8px 24px rgba(11,16,32,.06);
}

/* ---------- Full-width bands (Group set to "Full width") ----------
   Content inside lines up with the page column; the color runs edge to edge. */
.entry-content>.alignfull,.ae-blocks>.alignfull,.ae-footer-blocks .alignfull{
  margin-left:calc(50% - 50vw)!important;margin-right:calc(50% - 50vw)!important;max-width:none!important;width:auto!important;
  padding-left:max(16px,calc(50vw - 50%))!important;padding-right:max(16px,calc(50vw - 50%))!important;box-sizing:border-box}
/* The band padding already lines content up with the page column, so inner blocks use the full column width. */
.entry-content>.alignfull.is-layout-constrained>:not(.alignfull),.ae-blocks>.alignfull.is-layout-constrained>:not(.alignfull){max-width:none!important}
html,body{overflow-x:clip}
.entry-content>*:first-child.alignfull{margin-top:0}

/* Text helpers */
.is-style-ae-eyebrow{font-weight:600;font-size:.85rem!important;letter-spacing:.07em;text-transform:uppercase;margin-bottom:.5rem!important}
.is-style-ae-hero .is-style-ae-eyebrow{color:rgba(255,255,255,.9)}
.is-style-ae-pill{display:inline-block;font-size:.78rem;font-weight:600;letter-spacing:.04em;text-transform:uppercase;color:var(--ae-blue);background:var(--ae-blue-100);padding:.2rem .65rem;border-radius:999px}
.ae-link-arrow a,.ae-link-arrow a:visited{font-weight:600;text-decoration:none!important;color:var(--ae-blue)}
.ae-link-arrow a:hover{text-decoration:underline!important}
.ae-section-head{gap:1rem 2rem}
.ae-section-head .wp-block-heading{margin:0 0 .4rem}
.ae-section-head p{margin:0}

/* ---------- Hero ---------- */
.is-style-ae-hero{overflow:hidden;position:relative}
.is-style-ae-hero h1{max-width:13ch;line-height:1.05;margin:.25rem 0 1rem}
.is-style-ae-hero p{color:rgba(255,255,255,.92)}
.is-style-ae-hero .wp-block-buttons{margin:1.5rem 0 1.25rem}
.ae-hero-stack{position:relative;min-height:340px}
.ae-hero-stack .wp-block-image{margin:0!important;position:absolute;width:78%;border-radius:14px;overflow:hidden;box-shadow:0 20px 40px rgba(11,16,32,.3);background:#fff}
.ae-hero-stack .wp-block-image img{display:block;width:100%;aspect-ratio:16/10;object-fit:cover;object-position:top}
.ae-hero-stack .wp-block-image:nth-child(1){top:0;right:0;transform:rotate(3deg);z-index:1}
.ae-hero-stack .wp-block-image:nth-child(2){top:22%;left:0;transform:rotate(-4deg);z-index:2}
.ae-hero-stack .wp-block-image:nth-child(3){bottom:0;right:6%;transform:rotate(1deg);z-index:3}
@media (max-width:781px){.ae-hero-stack{display:none}.is-style-ae-hero .wp-block-button{flex:1 1 100%}.is-style-ae-hero .wp-block-button__link{width:100%}}

/* Inline chips list (hero trust points) */
ul.is-style-ae-inline{list-style:none;padding:0;margin:0;display:flex;flex-wrap:wrap;gap:.5rem}
ul.is-style-ae-inline li{margin:0;padding:.35rem .8rem;border-radius:999px;background:rgba(255,255,255,.14);font-size:.88rem;font-weight:500}

/* ---------- Buttons ---------- */
.wp-block-button__link{font-family:var(--ae-display);font-weight:700;text-decoration:none!important;transition:background .15s,border-color .15s,transform .15s}
.wp-block-button.is-style-ae-white .wp-block-button__link{background:#fff!important;color:var(--ae-midnight)!important}
.wp-block-button.is-style-ae-white .wp-block-button__link:hover{transform:translateY(-1px)}
.wp-block-button.is-style-ae-ghost .wp-block-button__link{background:rgba(255,255,255,.12)!important;color:#fff!important;border:1px solid rgba(255,255,255,.5)!important}
.wp-block-button.is-style-ae-ghost .wp-block-button__link:hover{background:rgba(255,255,255,.22)!important}
.wp-block-button.is-style-outline .wp-block-button__link{background:#fff!important;color:var(--ae-midnight)!important;border:1px solid var(--ae-line)!important;padding:calc(.85rem - 1px) calc(1.4rem - 1px)}
.wp-block-button.is-style-outline .wp-block-button__link:hover{border-color:var(--ae-blue)!important;color:var(--ae-blue)!important}
.wp-block-buttons.ae-chips{gap:.5rem;margin-top:1.25rem}
.wp-block-button.is-style-ae-chip .wp-block-button__link{background:#fff!important;color:var(--ae-midnight)!important;border:1px solid var(--ae-line);border-radius:999px!important;
  font-family:inherit;font-weight:500;font-size:.92rem;padding:.5rem 1rem}
.wp-block-button.is-style-ae-chip .wp-block-button__link:hover{border-color:var(--ae-blue);color:var(--ae-blue)!important}
.wp-block-button.is-style-ae-chip.is-active .wp-block-button__link{background:var(--ae-midnight)!important;border-color:var(--ae-midnight);color:#fff!important}

/* ---------- Cards and tiles ---------- */
.is-style-ae-card,.is-style-ae-tile{background:#fff;border:1px solid var(--ae-line);border-radius:20px;box-shadow:var(--ae-card-shadow);padding:1.5rem 1.5rem 1.25rem;height:100%;box-sizing:border-box}
.is-style-ae-tile{transition:transform .15s,border-color .15s;position:relative}
.is-style-ae-tile:hover{transform:translateY(-2px);border-color:var(--ae-blue)}
.is-style-ae-tile h3,.is-style-ae-card h3{margin:.75rem 0 .4rem}
.is-style-ae-tile p{color:var(--ae-slate);margin:0 0 .75rem}
.is-style-ae-tile .ae-link-arrow{margin:auto 0 0;color:inherit}
.is-style-ae-tile .ae-link-arrow a::after{content:"";position:absolute;inset:0} /* whole tile is clickable */
.wp-block-columns.ae-tiles,.wp-block-columns.ae-features{gap:1.5rem}
.wp-block-image.is-style-ae-icon{margin:0 0 .25rem}
.wp-block-image.is-style-ae-icon img{width:48px;height:48px;padding:10px;border-radius:12px;background:var(--ae-blue-100);box-sizing:border-box}
.ae-features h3{margin:.75rem 0 .35rem}.ae-features p{color:var(--ae-slate);margin:0}
@media (min-width:782px) and (max-width:1024px){.wp-block-columns.ae-tiles,.wp-block-columns.ae-features{flex-wrap:wrap!important}.ae-tiles>.wp-block-column,.ae-features>.wp-block-column{flex-basis:calc(50% - .75rem)!important}}

/* Numbered steps (dark band) */
.is-style-ae-step{background:#121A33;border:1px solid #232B42;border-radius:20px;padding:1.75rem;height:100%;box-sizing:border-box}
.is-style-ae-step h3{margin:1rem 0 .4rem}
.is-style-ae-step p{margin:0;color:#B7C0D6}
.ae-step__num{display:inline-grid;place-items:center;width:44px;height:44px;margin:0!important;border-radius:12px;background:linear-gradient(135deg,#2F5BFF,#7C5CFF);color:#fff;font-family:var(--ae-display);font-weight:700;font-size:1.1rem}

/* ---------- Post cards (Query Loop) ---------- */
.wp-block-post-template{list-style:none;padding:0;margin:0}
.ae-post-card{display:flex;flex-direction:column;height:100%;background:#fff;border:1px solid var(--ae-line);border-radius:20px;overflow:hidden;box-shadow:var(--ae-card-shadow);transition:transform .15s,border-color .15s;position:relative}
.ae-post-card:hover{transform:translateY(-2px);border-color:var(--ae-blue)}
.ae-post-card .wp-block-post-featured-image{margin:0;overflow:hidden;background:linear-gradient(135deg,#2F5BFF,#7C5CFF)}
.ae-post-card .wp-block-post-featured-image img,.ae-post-card .ae-post-art{display:block;width:100%;height:100%;object-fit:cover;aspect-ratio:16/9}
.ae-post-card__body{display:flex;flex-direction:column;gap:.5rem;padding:1.25rem 1.35rem 1.4rem;flex:1}
.ae-post-card__body>*{margin:0!important}
.ae-post-card__title{font-size:1.2rem!important;line-height:1.25}
.ae-post-card__title a,.ae-post-card__title a:visited{color:var(--ae-midnight)!important;text-decoration:none!important}
.ae-post-card__title a::after{content:"";position:absolute;inset:0} /* whole card clickable */
.ae-post-card:hover .ae-post-card__title a{color:var(--ae-blue)!important}
.ae-post-card a:focus,.ae-post-card a:focus-visible{outline:none!important}
.ae-post-card:has(a:focus-visible){outline:3px solid var(--ae-blue);outline-offset:3px}
.ae-post-card__excerpt{color:var(--ae-slate);flex:1}
.ae-post-card__excerpt p{margin:0}
.ae-meta,.ae-meta time{color:var(--ae-slate);font-size:.85rem}

/* Balanced grid: never a lone card on the last row.
   1 left over -> first card spans the row (feature); 2 left over -> first two share a row. */
.wp-block-post-template.is-style-ae-balanced{display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr))!important;gap:1.5rem!important}
.wp-block-post-template.is-style-ae-balanced>li{grid-column:span 2;margin:0;display:flex}
.wp-block-post-template.is-style-ae-balanced>li>.ae-post-card{flex:1}
.wp-block-post-template.is-style-ae-balanced:has(>li:nth-child(3n+1):last-child)>li:first-child{grid-column:1/-1}
.wp-block-post-template.is-style-ae-balanced:has(>li:nth-child(3n+1):last-child)>li:first-child .ae-post-card{display:grid;grid-template-columns:1.2fr 1fr}
.wp-block-post-template.is-style-ae-balanced:has(>li:nth-child(3n+1):last-child)>li:first-child .ae-post-card__body{justify-content:center;padding:2rem 2.25rem}
.wp-block-post-template.is-style-ae-balanced:has(>li:nth-child(3n+1):last-child)>li:first-child .ae-post-card__title{font-size:clamp(1.5rem,2.5vw,2rem)!important}
.wp-block-post-template.is-style-ae-balanced:has(>li:nth-child(3n+1):last-child)>li:first-child .wp-block-post-featured-image{height:100%}
.wp-block-post-template.is-style-ae-balanced:has(>li:nth-child(3n+1):last-child)>li:first-child .wp-block-post-featured-image img,
.wp-block-post-template.is-style-ae-balanced:has(>li:nth-child(3n+1):last-child)>li:first-child .ae-post-art{aspect-ratio:auto;min-height:300px}
.wp-block-post-template.is-style-ae-balanced:has(>li:nth-child(3n+2):last-child)>li:nth-child(-n+2){grid-column:span 3}
@media (max-width:1024px){.wp-block-post-template.is-style-ae-balanced>li{grid-column:span 3!important}
  .wp-block-post-template.is-style-ae-balanced:has(>li:nth-child(3n+1):last-child)>li:first-child{grid-column:1/-1!important}}
@media (max-width:781px){.wp-block-post-template.is-style-ae-balanced{grid-template-columns:1fr!important}
  .wp-block-post-template.is-style-ae-balanced>li,.wp-block-post-template.is-style-ae-balanced>li:first-child{grid-column:1/-1!important}
  .wp-block-post-template.is-style-ae-balanced>li:first-child .ae-post-card{display:flex!important}
  .wp-block-post-template.is-style-ae-balanced>li:first-child .wp-block-post-featured-image img,.wp-block-post-template.is-style-ae-balanced>li:first-child .ae-post-art{min-height:0!important;aspect-ratio:16/9!important}}

/* Blog and news lists on the home page */
.ae-list-loop .wp-block-post-template{display:block!important}
.ae-list-loop .wp-block-post-template>li{border-bottom:1px solid var(--ae-line);padding:.8rem 0;margin:0}
.ae-list-item{gap:1rem;align-items:baseline}
.ae-list-item__title{font-size:1rem!important;font-family:var(--wp--preset--font-family--body,Inter,sans-serif)!important;font-weight:600!important;margin:0!important}
.ae-list-item__title a{color:var(--ae-midnight)!important;text-decoration:none!important}
.ae-list-item__title a:hover{color:var(--ae-blue)!important}
.ae-list-item__date{color:var(--ae-slate);font-size:.85rem;white-space:nowrap}

/* Query pagination */
.wp-block-query-pagination{margin-top:2.5rem;gap:.5rem}
.wp-block-query-pagination a,.wp-block-query-pagination .current{padding:.45rem .85rem;border:1px solid var(--ae-line);border-radius:10px;text-decoration:none!important;color:var(--ae-midnight)}
.wp-block-query-pagination .current{background:var(--ae-midnight);color:#fff;border-color:var(--ae-midnight)}

/* ---------- Product cards (Marketplace, home) ---------- */
.ae-product-loop .wp-block-post-template{gap:1.5rem!important}
.ae-product-loop--center .wp-block-post-template{grid-template-columns:repeat(auto-fit,minmax(260px,340px))!important;justify-content:center}
.ae-product-loop .wp-block-post-template>li{margin:0;display:flex}
.ae-product-card{display:flex;flex-direction:column;flex:1;background:#fff;border:1px solid var(--ae-line);border-radius:20px;box-shadow:var(--ae-card-shadow);padding:1rem 1rem 1.25rem;position:relative}
.ae-product-card>*{margin:0 0 .5rem!important}
.ae-product-card .wp-block-post-featured-image{margin:0 0 1rem!important;border-radius:12px;overflow:hidden;border:1px solid var(--ae-line)}
.ae-product-card .wp-block-post-featured-image img{display:block;width:100%;object-fit:cover;object-position:top}
.ae-product-card .is-style-ae-badge{position:absolute;top:1.6rem;left:1.6rem;z-index:2}
.is-style-ae-badge{display:inline-block;background:var(--ae-mint);color:var(--ae-midnight);font-weight:600;font-size:.78rem!important;padding:.25rem .7rem;border-radius:999px}
.ae-job{color:var(--ae-blue);font-weight:600;font-size:.88rem!important}
.ae-product-card__title{font-size:1.3rem!important}
.ae-product-card__title a{color:var(--ae-midnight)!important;text-decoration:none!important}
.ae-blurb{color:var(--ae-slate);font-size:.95rem!important}
.ae-price{font-size:.85rem!important;margin-top:auto!important}
.ae-product-card__actions{display:grid!important;grid-template-columns:1fr;gap:.5rem!important;margin:.5rem 0 0!important}
.ae-product-card__actions .wp-block-button{width:auto}
.ae-product-card__actions .wp-block-button__link{width:100%;padding:.7rem .6rem!important;font-size:.88rem!important;text-align:center}
@media (max-width:1100px){.ae-product-loop:not(.ae-product-loop--center) .wp-block-post-template.is-layout-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media (max-width:600px){.ae-product-loop:not(.ae-product-loop--center) .wp-block-post-template.is-layout-grid{grid-template-columns:1fr!important}}

/* ---------- Starter kit band ---------- */
.ae-kit h2{margin:.25rem 0 .75rem}
.ae-kit p{color:#C9D0E2}
.ae-kit .is-style-ae-eyebrow{color:var(--ae-mint)}
.ae-kit .ae-kit__img img{border-radius:12px;box-shadow:0 20px 40px rgba(0,0,0,.35);transform:rotate(-3deg);max-width:260px;width:100%}
.ae-kit a,.ae-kit a:visited{color:#fff}
@media (max-width:781px){.ae-kit .ae-kit__img img{max-width:160px}}

/* Lead form (also used by the Starter kit form block in the editor) */
.ae-lead-form{display:flex;flex-wrap:wrap;gap:.5rem;max-width:540px}
.ae-lead-form input[type=email]{flex:1;min-width:220px;border:1px solid var(--ae-line);border-radius:12px;padding:.85rem 1rem;background:#fff;color:var(--ae-midnight);font:inherit}
.ae-lead-form button{background:var(--ae-blue);color:#fff;border:0;border-radius:12px;padding:.85rem 1.4rem;font-family:var(--ae-display);font-weight:700;cursor:pointer}
.ae-lead-form__small{flex-basis:100%;font-size:.8rem;opacity:.85;margin:.25rem 0 0}
.ae-hp{position:absolute!important;left:-9999px!important}

/* ---------- FAQ (Details blocks) ---------- */
.wp-block-details{background:#fff;margin:0 0 .75rem!important}
.wp-block-details summary{cursor:pointer;list-style:none;font-family:var(--ae-display);font-weight:700;font-size:1.08rem;padding-right:2rem;position:relative}
.wp-block-details summary::-webkit-details-marker{display:none}
.wp-block-details summary::after{content:"+";position:absolute;right:0;top:50%;transform:translateY(-50%);font-size:1.5rem;color:var(--ae-blue);line-height:1}
.wp-block-details[open] summary::after{content:"–"}
.wp-block-details[open] summary{margin-bottom:.5rem}
.wp-block-details p{margin:0;color:var(--ae-slate)}
.ae-faq{max-width:820px}

/* ---------- Final call to action ---------- */
.ae-cta h2{margin:0 0 .75rem}
.ae-cta p{color:rgba(255,255,255,.92)}

/* Page header (Marketplace and categories) */
.ae-page-head .wp-block-query-title{margin-bottom:.5rem}
.ae-page-head .wp-block-term-description p{margin-left:auto;margin-right:auto}

/* ---------- Review content ---------- */
.wp-block-table{margin:0 0 1.75rem;overflow-x:auto;border:1px solid var(--ae-line);border-radius:14px;background:#fff}
.wp-block-table table{width:100%;border-collapse:collapse!important;border:0!important;margin:0!important;font-size:1rem}
.wp-block-table figcaption{caption-side:top;text-align:left;font-family:var(--ae-display);font-weight:700;color:var(--ae-midnight);padding:1rem 1.25rem .25rem;margin:0;font-size:1.05rem}
.wp-block-table.is-style-ae-glance{display:flex;flex-direction:column}
.wp-block-table.is-style-ae-glance figcaption{order:-1}
.wp-block-table th,.wp-block-table td,
.wp-block-table table:not(.has-background) th,.wp-block-table table:not(.has-background) td,
.wp-block-table table:not(.has-background) tbody tr:nth-child(2n) td{padding:.9rem 1.25rem!important;border:0!important;border-bottom:1px solid var(--ae-line)!important;vertical-align:top;text-align:left;line-height:1.5}
.wp-block-table tr:last-child>*{border-bottom:0!important}
.wp-block-table thead th,.wp-block-table table:not(.has-background) thead th{background:var(--ae-midnight)!important;color:#fff!important;font-family:var(--ae-display);font-weight:700;font-size:.92rem}
.wp-block-table thead{border:0!important}
.wp-block-table tbody th,.wp-block-table table:not(.has-background) tbody th{background:var(--ae-cloud)!important;color:var(--ae-midnight)!important;font-weight:600;width:32%}
.wp-block-table tbody td,.wp-block-table table:not(.has-background) tbody td{background:#fff!important;color:var(--ae-midnight)!important}
.wp-block-table:not(.is-style-ae-glance) tbody tr:nth-child(2n) td{background:#FAFBFE!important}
@media (max-width:600px){.wp-block-table th,.wp-block-table td{padding:.75rem .9rem!important;font-size:.95rem}}

/* Pros and cons, check and cross lists */
.is-style-ae-pros,.is-style-ae-cons{border:1px solid;border-radius:16px;padding:1.25rem 1.4rem 1rem;height:100%;box-sizing:border-box}
.is-style-ae-pros{background:#ECFDF5;border-color:#A7F3D0}.is-style-ae-pros h3{color:#065F46!important}
.is-style-ae-cons{background:#FEF2F2;border-color:#FECACA}.is-style-ae-cons h3{color:#991B1B!important}
.is-style-ae-pros h3,.is-style-ae-cons h3{margin:0 0 .6rem;font-size:1.15rem}
ul.is-style-ae-checks,ul.is-style-ae-crosses{list-style:none;padding:0;margin-left:0}
ul.is-style-ae-checks li,ul.is-style-ae-crosses li{position:relative;padding:.35rem 0 .35rem 1.7rem;margin:0;max-width:none}
ul.is-style-ae-checks li::before,ul.is-style-ae-crosses li::before{position:absolute;left:0;top:.35rem;font-weight:700}
ul.is-style-ae-checks li::before{content:"✓";color:#059669}
ul.is-style-ae-crosses li::before{content:"✕";color:#DC2626}
.ae-related-links{font-size:.92rem;color:var(--ae-slate)}

/* ---------- Footer (synced pattern) ---------- */
.ae-site-footer{color:#B7C0D6}
.ae-site-footer h2{font-family:var(--ae-display);font-size:1rem!important;margin:0 0 1rem;color:#fff}
.ae-site-footer a,.ae-site-footer a:visited{color:#fff!important;text-decoration:none}
.ae-site-footer a:hover{color:var(--ae-periwinkle)!important}
.ae-footer-links{list-style:none;padding:0;margin:0}
.ae-footer-links li{margin:.45rem 0}
.ae-site-footer .wp-block-separator{border:0;border-top:1px solid #232B42!important;margin:2.5rem 0 1.5rem;opacity:1}
.ae-site-footer .has-small-font-size{color:#8D96AE}
.ae-site-footer .ae-lead-form input[type=email]{background:#121A33;border-color:#232B42;color:#fff}
.ae-site-footer .wp-block-image{margin:0 0 1rem}

/* Search block (404) */
.ae-search{max-width:560px;margin:1.5rem 0}
.ae-search .wp-block-search__input{border:1px solid var(--ae-line);border-radius:12px;padding:.8rem 1rem}
.ae-search .wp-block-search__button{background:var(--ae-blue);color:#fff;border:0;border-radius:12px;font-family:var(--ae-display);font-weight:700;padding:.8rem 1.2rem}
