/* AI Observer: WordPress-specific additions on top of styles.css and home2.css. */

/* Section states: "true" marks the section a page belongs to (a story inside News). */
.primary-nav a[aria-current="true"] { box-shadow: inset 0 -3px 0 var(--accent); border-radius: 0; }
.topics-bar a[aria-current="true"] { color: var(--on-dark); box-shadow: inset 0 -3px 0 var(--accent); }
@media (max-width: 999px) { .primary-nav a[aria-current="true"] { box-shadow: none; color: #8ab8ff; } }

/* Lists of chips are plain tabs in v2; reset list styles that the prototype set inline. */
.chips { list-style: none; padding: 0; margin: 0; }
.chips--filter { margin-top: 16px; }

/* Honeypot field for the newsletter form. */
.nl-trap { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Notice after confirming a subscription. */
.site-notice { background: var(--accent); color: var(--accent-ink); font-weight: 600; }
.site-notice p { margin: 0; padding: 12px 0; }

/* Article and page heads. */
.article-hero-band .breadcrumb { padding-top: 0; margin-bottom: 14px; }
.article-hero-band__dek { margin: 14px 0 0; color: var(--on-dark-muted); font-size: 1.125rem; max-width: 62ch; }
.feature-split__text { margin-top: 10px; color: var(--muted); }

/* Tutorial facts box. */
.tut-facts { border-left: 3px solid var(--accent); background: var(--soft); padding: 14px 18px; margin: 0 0 28px; }
.tut-facts__list { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.tut-facts__tested { margin: 8px 0 0; color: var(--muted); }

/* Agency profile facts and paid label. */
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px 24px; margin: 0 0 28px; padding: 18px 0; border-block: 1px solid var(--line); }
.facts dt { font-size: 0.875rem; color: var(--muted); font-weight: 600; }
.facts dd { margin: 2px 0 0; font-weight: 600; }
.ag__paid { display: inline-block; font-family: var(--font-body); font-size: 0.8125rem; font-weight: 600; color: var(--on-dark-muted); border: 1px solid currentColor; border-radius: 2px; padding: 1px 6px; vertical-align: middle; }
.ag__paid--block { display: block; color: var(--muted); padding: 10px 14px; margin: 0 0 20px; }

/* Comments. */
.comment-form .field { margin-bottom: 14px; }
.comment-form .comment-form-cookies-consent { display: flex; gap: 8px; align-items: flex-start; font-size: 0.9375rem; margin: 0 0 14px; }
.comments, .comments .children { list-style: none; padding: 0; margin: 0; }
.comments .children { margin-left: 56px; }
.comment__head a { color: inherit; text-decoration: none; }
.comment__head a:hover time { text-decoration: underline; }
.comment__reply { margin: 6px 0 0; font-size: 0.9375rem; font-weight: 600; }
.comment__reply a { color: var(--link); }
.comment-respond .comment-reply-title { font-size: 1.125rem; }

/* Multi-page articles. */
.page-links { display: flex; gap: 8px; margin-top: 24px; font-weight: 600; }

/* Content from the block editor. */
.prose .wp-block-image figcaption, .prose .wp-caption-text, .prose figcaption { font-size: 0.875rem; color: var(--muted); margin-top: 8px; }
.prose .wp-block-image img, .prose img { height: auto; max-width: 100%; }
.prose .alignleft { float: left; margin: 4px 24px 12px 0; max-width: 50%; }
.prose .alignright { float: right; margin: 4px 0 12px 24px; max-width: 50%; }
.prose .aligncenter { margin-inline: auto; display: block; }
.prose .wp-block-pullquote, .prose blockquote { border-left: 3px solid var(--accent); padding-left: 18px; margin: 28px 0; font-size: 1.125rem; }
.prose .wp-block-table table, .prose table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: 10px 8px; text-align: left; vertical-align: top; }
.prose pre, .prose code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.9em; }
.prose pre { background: var(--soft); padding: 14px 16px; overflow-x: auto; border-radius: var(--radius); }
.prose .wp-block-embed { margin: 28px 0; }
.prose::after { content: ""; display: table; clear: both; }

/* WordPress helpers. */
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.screen-reader-text:focus { clip: auto; width: auto; height: auto; margin: 0; padding: 8px 12px; background: var(--white); color: var(--ink); z-index: 100; }
.avatar img, img.avatar { border-radius: 50%; }
.author .media img, .author-head__photo img { width: 100%; height: 100%; object-fit: cover; }
.empty-state h2 { margin-top: 0; }
