/*
Theme Name: XPTI Theme
Theme URI: https://xpti.uk
Author: Netchameleon
Author URI: https://netchameleon.uk
Description: Custom blog/news theme for XPTI.uk — dark header/footer, brand colours, stuff.tv-inspired layout.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: xpti-theme
*/

:root {
  --xpti-dark:     #343434;
  --xpti-header:   #333333;
  --xpti-darker:   #2D2D2D;
  --xpti-darkest:  #202020;
  --xpti-pink:     #D164A0;
  --xpti-teal:     #18ADAD;
  --xpti-purple:   #3C023D;
  --xpti-white:    #FFFFFF;
  --xpti-bg:       #F4F4F4;
  --xpti-text:     #1A1A1A;
  --xpti-muted:    #666666;
  --xpti-border:   #E5E5E5;
  --xpti-red:      #E53E3E;
  --xpti-radius:   6px;
  --xpti-shadow:   0 2px 8px rgba(0,0,0,0.08);
  --xpti-shadow-hover: 0 10px 28px rgba(0,0,0,0.16);
}

* , *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  background: var(--xpti-bg);
  color: var(--xpti-text);
  font-size: 16px;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
ul, ol.xpti-reset { list-style: none; margin: 0; padding: 0; }
img { max-width: 100%; display: block; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.screen-reader-text { position: absolute; left: -9999px; }

h1, h2, h3, h4 { font-family: 'Inter', sans-serif; color: var(--xpti-purple); line-height: 1.25; font-weight: 800; margin: 0; }

/* ── placeholder art blocks (fallback when a post has no featured image) ── */
.art {
  position: relative; display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.92); font-size: 34px; overflow: hidden; flex-shrink: 0;
}
.art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,0.55) 100%); }
.art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.art-0 { background: linear-gradient(135deg, #18ADAD, #3C023D); }
.art-1 { background: linear-gradient(135deg, #D164A0, #3C023D); }
.art-2 { background: linear-gradient(135deg, #E8A23C, #D164A0); }
.art-3 { background: linear-gradient(135deg, #3C023D, #202020); }
.art-4 { background: linear-gradient(135deg, #2D7779, #18ADAD); }
.art-5 { background: linear-gradient(135deg, #790A74, #D164A0); }
.art-6 { background: linear-gradient(135deg, #343434, #18ADAD); }
.art-7 { background: linear-gradient(135deg, #E53E3E, #3C023D); }

/* ── TOP UTILITY BAR ─────────────────────────────────────── */
.topbar { background: var(--xpti-darkest); color: #999; font-size: 12px; padding: 7px 0; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px; }
.topbar-date { letter-spacing: .3px; }
.topbar-links { display: flex; align-items: center; gap: 18px; }
.topbar-links a { color: #999; font-weight: 600; transition: color .15s; }
.topbar-links a:hover { color: var(--xpti-pink); }
.topbar-social { display: flex; gap: 12px; margin-left: 6px; }
.topbar-social a { width: 22px; height: 22px; border-radius: 50%; background: rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: center; font-size: 11px; color: #ccc; }
.topbar-social a:hover { background: var(--xpti-pink); color: #fff; }

/* ── SITE HEADER (dark) ──────────────────────────────────── */
.site-header { background: var(--xpti-header); padding: 18px 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo img { height: 46px; width: auto; }
.header-actions { display: flex; align-items: center; gap: 18px; }
.header-search { display: flex; align-items: center; gap: 8px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12); border-radius: 20px; padding: 8px 16px; color: #ccc; font-size: 13px; min-width: 200px; }
.header-search svg { flex-shrink: 0; opacity: .7; }
.header-search input { background: none; border: none; outline: none; color: #fff; font-size: 13px; font-family: inherit; flex: 1; }
.header-search input::placeholder { color: #999; }
.header-cta { background: var(--xpti-teal); color: #fff; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; padding: 11px 20px; border-radius: 4px; white-space: nowrap; transition: background .2s; border: none; cursor: pointer; }
.header-cta:hover { background: var(--xpti-pink); }
.header-burger { display: none; flex-direction: column; gap: 4px; background: none; border: none; cursor: pointer; padding: 6px; }
.header-burger span { width: 22px; height: 2px; background: #fff; display: block; }

/* ── NAV (pink brand strip) ──────────────────────────────── */
.main-nav { background: var(--xpti-pink); }
.main-nav ul { display: flex; flex-wrap: wrap; }
.main-nav a { display: block; color: #fff; font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; padding: 13px 18px; border-right: 1px solid rgba(255,255,255,0.15); transition: background .15s; }
.main-nav li:first-child a { border-left: 1px solid rgba(255,255,255,0.15); }
.main-nav a:hover, .main-nav a.active, .main-nav .current-menu-item > a, .main-nav .current-menu-parent > a, .main-nav .current-menu-ancestor > a { background: var(--xpti-purple); }

/* ── TRENDING TICKER (dark) ─────────────────────────────── */
.trending { background: var(--xpti-darkest); color: #fff; display: flex; align-items: stretch; font-size: 13px; overflow: hidden; }
.trending .wrap { display: flex; align-items: stretch; padding: 0 20px; width: 100%; }
.trending-label { display: flex; align-items: center; gap: 6px; background: var(--xpti-teal); color: #fff; font-weight: 800; text-transform: uppercase; font-size: 11px; letter-spacing: .6px; padding: 10px 16px; margin: 0 14px 0 -20px; flex-shrink: 0; }
.trending-items { display: flex; align-items: center; gap: 28px; overflow: hidden; white-space: nowrap; }
.trending-items a { color: #ccc; font-weight: 500; transition: color .15s; padding: 10px 0; }
.trending-items a:hover { color: var(--xpti-pink); }
.trending-items span.dot { color: #555; }

/* ── LAYOUT HELPERS ──────────────────────────────────────── */
main { padding: 32px 0 0; }
.section { margin-bottom: 44px; }
.section-head { display: flex; align-items: center; justify-content: space-between; border-bottom: 3px solid var(--xpti-teal); padding-bottom: 10px; margin-bottom: 22px; }
.section-head h2 { font-size: 15px; font-weight: 900; text-transform: uppercase; letter-spacing: 1px; color: var(--xpti-purple); display: flex; align-items: center; gap: 10px; }
.section-head h2::before { content: ''; display: inline-block; width: 4px; height: 20px; background: var(--xpti-teal); border-radius: 2px; }
.section-head a.more { font-size: 12px; font-weight: 700; color: var(--xpti-teal); text-transform: uppercase; letter-spacing: .5px; }
.section-head a.more:hover { color: var(--xpti-pink); }

.cat-chip { display: inline-block; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .8px; padding: 3px 10px; border-radius: 3px; color: #fff; margin-bottom: 8px; }

/* ── HERO ───────────────────────────────────────────────── */
.hero-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 26px; }
.hero-feature { position: relative; border-radius: var(--xpti-radius); overflow: hidden; background: var(--xpti-white); box-shadow: var(--xpti-shadow); }
.hero-feature .art { height: 380px; font-size: 54px; }
.hero-feature .hero-text { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 30px; color: #fff; }
.hero-feature .cat-chip { margin-bottom: 10px; }
.hero-feature h1 { color: #fff; font-size: 1.9rem; margin-bottom: 10px; }
.hero-feature p.excerpt { color: rgba(255,255,255,0.82); font-size: 14.5px; margin: 0 0 8px; max-width: 90%; }
.hero-feature .meta { font-size: 12px; color: rgba(255,255,255,0.6); }

.hero-side { display: flex; flex-direction: column; gap: 18px; }
.hero-row { display: flex; gap: 14px; padding-bottom: 18px; border-bottom: 1px solid var(--xpti-border); }
.hero-row:last-child { border-bottom: none; padding-bottom: 0; }
.hero-row .art { width: 96px; height: 78px; border-radius: var(--xpti-radius); font-size: 20px; }
.hero-row .row-body h3 { font-size: 14.5px; font-weight: 800; color: var(--xpti-purple); line-height: 1.35; margin: 4px 0 6px; }
.hero-row .row-body h3 a:hover { color: var(--xpti-pink); }
.hero-row .meta { font-size: 11.5px; color: #999; }

/* ── MAIN 2-COL: latest list + sidebar ───────────────────── */
.content-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 34px; align-items: start; }

.post-row { display: flex; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--xpti-border); }
.post-row:first-child { padding-top: 0; }
.post-row .art { width: 150px; height: 106px; border-radius: var(--xpti-radius); font-size: 24px; }
.post-row .row-body { flex: 1; }
.post-row h3 { font-size: 16.5px; font-weight: 800; color: var(--xpti-purple); margin: 4px 0 6px; }
.post-row h3 a:hover { color: var(--xpti-pink); }
.post-row p.excerpt { font-size: 13.5px; color: var(--xpti-muted); margin: 0 0 8px; }
.post-row .meta { font-size: 11.5px; color: #999; }

.widget { background: var(--xpti-white); border-radius: var(--xpti-radius); overflow: hidden; box-shadow: var(--xpti-shadow); margin-bottom: 22px; }
.widget-title { background: var(--xpti-purple); color: #fff; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; padding: 12px 18px; margin: 0; }
.widget-body { padding: 18px; }

.rank-item { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--xpti-border); }
.rank-item:first-child { padding-top: 0; }
.rank-item:last-child { border-bottom: none; padding-bottom: 0; }
.rank-num { flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--xpti-teal); color: #fff; font-weight: 800; font-size: 13px; display: flex; align-items: center; justify-content: center; }
.rank-item h4 { font-size: 13.5px; font-weight: 700; color: var(--xpti-purple); line-height: 1.35; margin: 0; }
.rank-item h4 a:hover { color: var(--xpti-pink); }

.ad-slot { min-height: 250px; background: #f8f8f8; border: 1px dashed #ddd; border-radius: var(--xpti-radius); display: flex; align-items: center; justify-content: center; color: #bbb; font-size: 12px; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 22px; }

.newsletter-widget { background: linear-gradient(135deg, var(--xpti-dark), #4a4a4a); color: #fff; padding: 22px; border-radius: var(--xpti-radius); margin-bottom: 22px; }
.newsletter-widget h3 { color: #fff; font-size: 16px; margin-bottom: 6px; }
.newsletter-widget p { color: rgba(255,255,255,0.7); font-size: 13px; margin: 0 0 14px; }
.newsletter-widget form { display: flex; flex-direction: column; gap: 8px; }
.newsletter-widget input { padding: 10px 12px; border: none; border-radius: 4px; font-size: 13px; outline: none; font-family: inherit; }
.newsletter-widget button { padding: 10px 14px; background: var(--xpti-pink); color: #fff; border: none; border-radius: 4px; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; cursor: pointer; transition: background .2s; }
.newsletter-widget button:hover { background: var(--xpti-teal); }
.form-notice { font-size: 12.5px; padding: 8px 12px; border-radius: 4px; margin-bottom: 10px; }
.form-notice.success { background: #EAF8F8; color: #0f6b6b; }
.form-notice.error { background: #FFF1F2; color: #b91c1c; }

/* ── CARD GRID ─────────────────────────────────────────── */
.card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.card { background: var(--xpti-white); border-radius: var(--xpti-radius); overflow: hidden; box-shadow: var(--xpti-shadow); transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--xpti-shadow-hover); }
.card .art { height: 140px; font-size: 30px; }
.card-body { padding: 16px; }
.card-body .cat-chip { margin-bottom: 8px; }
.card-body h3 { font-size: 14.5px; font-weight: 800; color: var(--xpti-purple); line-height: 1.3; margin-bottom: 8px; }
.card-body h3 a:hover { color: var(--xpti-pink); }
.card-body p.excerpt { font-size: 12.5px; color: var(--xpti-muted); line-height: 1.5; margin: 0 0 10px; }
.card-body .meta { font-size: 11px; color: #aaa; }

/* ── AFFILIATE / GENERIC CTA ─────────────────────────────── */
.aff-cta { background: linear-gradient(135deg, var(--xpti-purple) 0%, #6a0575 100%); border-radius: var(--xpti-radius); padding: 30px 34px; margin-bottom: 44px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.aff-cta h3 { color: #fff; font-size: 20px; margin-bottom: 6px; }
.aff-cta p { color: rgba(255,255,255,0.75); font-size: 14px; margin: 0; }
.aff-cta a { background: var(--xpti-teal); color: #fff; padding: 13px 26px; border-radius: 4px; font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .6px; white-space: nowrap; flex-shrink: 0; transition: background .2s; }
.aff-cta a:hover { background: var(--xpti-pink); }

/* ── FULL NEWSLETTER BAND (dark) ─────────────────────────── */
.newsletter-band { background: var(--xpti-darkest); color: #fff; padding: 46px 0; text-align: center; }
.newsletter-band h2 { color: #fff; font-size: 24px; margin-bottom: 8px; }
.newsletter-band p { color: rgba(255,255,255,0.6); font-size: 14.5px; margin: 0 0 22px; }
.newsletter-band form { display: flex; gap: 8px; max-width: 440px; margin: 0 auto; }
.newsletter-band input { flex: 1; padding: 13px 16px; border: none; border-radius: 4px; font-size: 14px; outline: none; font-family: inherit; }
.newsletter-band button { padding: 13px 22px; background: var(--xpti-pink); color: #fff; border: none; border-radius: 4px; font-size: 13px; font-weight: 800; cursor: pointer; text-transform: uppercase; letter-spacing: .6px; transition: background .2s; }
.newsletter-band button:hover { background: var(--xpti-teal); }
.newsletter-band .form-notice { max-width: 440px; margin: 0 auto 14px; }

/* ── FOOTER (dark) ───────────────────────────────────────── */
.site-footer { background: var(--xpti-darker); padding: 50px 0 0; color: #999; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 36px; }
.footer-brand img { height: 40px; margin-bottom: 14px; }
.footer-brand p { font-size: 13px; color: #888; line-height: 1.7; max-width: 300px; }
.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.footer-social a { width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,0.06); display: flex; align-items: center; justify-content: center; font-size: 13px; color: #ccc; transition: background .2s, color .2s; }
.footer-social a:hover { background: var(--xpti-pink); color: #fff; }
.footer-col h4 { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; color: #fff; border-bottom: 2px solid var(--xpti-pink); padding-bottom: 10px; margin-bottom: 16px; }
.footer-col ul li { margin-bottom: 11px; }
.footer-col a { font-size: 13.5px; color: #999; transition: color .15s; }
.footer-col a:hover { color: var(--xpti-teal); }
.footer-bottom { background: rgba(0,0,0,0.3); padding: 16px 0; margin-top: 10px; }
.footer-bottom .wrap { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.footer-bottom p { font-size: 12px; color: #777; margin: 0; }
.footer-bottom .legal-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-bottom .legal-links a { font-size: 12px; color: #777; }
.footer-bottom .legal-links a:hover { color: var(--xpti-teal); }
.footer-credit-row { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 14px; margin-top: 14px; justify-content: center !important; }
.footer-credit { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #777; transition: color .15s; }
.footer-credit img { height: 40px; width: auto; position: relative; top: -7px; padding: 5px 2px 2px 2px; }
.footer-credit:hover { color: #999; }
.footer-credit:hover img { opacity: .85; }

/* ── BREADCRUMB / PAGINATION / AVATAR ────────────────────── */
.breadcrumb { font-size: 12.5px; color: #999; margin: 22px 0 0; }
.breadcrumb a { color: var(--xpti-teal); }
.breadcrumb a:hover { color: var(--xpti-pink); }
.breadcrumb .sep { margin: 0 6px; color: #ccc; }
.breadcrumb .current { color: #888; }

.pagination { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin: 34px 0 6px; }
.pagination a, .pagination span { display: flex; align-items: center; justify-content: center; min-width: 38px; height: 38px; padding: 0 4px; border-radius: 4px; font-size: 13.5px; font-weight: 700; border: 1.5px solid var(--xpti-border); color: var(--xpti-text); transition: all .2s; background: #fff; }
.pagination a:hover { background: var(--xpti-pink); color: #fff; border-color: var(--xpti-pink); }
.pagination .current { background: var(--xpti-purple); color: #fff; border-color: var(--xpti-purple); }
.pagination .dots { border: none; background: none; color: #bbb; }

.author-avatar { flex-shrink: 0; width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg, var(--xpti-teal), var(--xpti-purple)); color: #fff; font-size: 13px; font-weight: 800; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.author-avatar img { width: 100%; height: 100%; object-fit: cover; }

/* ── SINGLE POST ─────────────────────────────────────────── */
.article-header { padding: 14px 0 24px; }
.article-header h1 { font-size: 2.15rem; margin: 14px 0 16px; }
.article-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.article-meta .byline strong { color: var(--xpti-purple); display: block; }
.article-meta .byline .meta { font-size: 12px; color: #999; }
.share-icons { display: flex; gap: 8px; margin-left: auto; }
.share-icons a { width: 32px; height: 32px; border-radius: 50%; background: #eee; color: #666; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; transition: background .2s, color .2s; }
.share-icons a:hover { background: var(--xpti-pink); color: #fff; }

.featured-art { border-radius: var(--xpti-radius); overflow: hidden; margin-bottom: 30px; box-shadow: var(--xpti-shadow); position: relative; }
.featured-art .art { height: 420px; font-size: 60px; }

.article-body { background: var(--xpti-white); border-radius: var(--xpti-radius); box-shadow: var(--xpti-shadow); padding: 36px 40px; }
.article-body p { font-size: 16px; line-height: 1.8; color: #2a2a2a; margin-bottom: 1.2em; }
.article-body h2 { font-size: 1.5rem; color: var(--xpti-purple); border-left: 4px solid var(--xpti-teal); padding-left: 14px; margin: 1.7em 0 0.7em; }
.article-body h3 { font-size: 1.15rem; color: var(--xpti-dark); margin: 1.4em 0 0.6em; }
.article-body ul, .article-body ol { padding-left: 22px; margin-bottom: 1.2em; }
.article-body li { margin-bottom: 7px; font-size: 15px; color: #333; }
.article-body a { color: var(--xpti-teal); border-bottom: 1px dotted var(--xpti-teal); }
.article-body a:hover { color: var(--xpti-pink); }
.article-body img { border-radius: var(--xpti-radius); margin: 1em 0; height: auto; }
.article-body table { width: 100%; border-collapse: collapse; margin: 1.6em 0; }
.article-body table th { background: var(--xpti-purple); color: #fff; padding: 10px 14px; font-size: 13px; text-align: left; }
.article-body table td { padding: 10px 14px; font-size: 14px; border-bottom: 1px solid var(--xpti-border); }

.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 0; }
.tag { background: #eee; color: #555; font-size: 12px; font-weight: 600; padding: 6px 14px; border-radius: 20px; transition: background .2s, color .2s; }
.tag:hover { background: var(--xpti-teal); color: #fff; }

.author-box { display: flex; gap: 18px; align-items: flex-start; background: #f9f9f9; border-radius: var(--xpti-radius); padding: 22px; margin-top: 30px; }
.author-box .author-avatar { width: 54px; height: 54px; font-size: 16px; }
.author-box h4 { font-size: 14.5px; color: var(--xpti-purple); margin-bottom: 6px; }
.author-box p { font-size: 13.5px; color: var(--xpti-muted); line-height: 1.6; margin: 0; }

.comments-section { margin-top: 40px; }
.comment-list { list-style: none; margin: 0; padding: 0; }
.comment { display: flex; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--xpti-border); }
.comment .children { list-style: none; margin: 10px 0 0 40px; padding: 0; }
.comment .comment-body { flex: 1; }
.comment .comment-body strong { color: var(--xpti-purple); font-size: 14px; margin-right: 8px; }
.comment .comment-body .meta { font-size: 11.5px; color: #999; }
.comment .comment-body p { font-size: 14px; color: #333; margin: 6px 0 0; }
.comment-respond { margin-top: 24px; }
.comment-respond h3 { font-size: 15px; color: var(--xpti-purple); margin-bottom: 12px; }
.comment-form input, .comment-form textarea { width: 100%; padding: 11px 14px; border: 1px solid var(--xpti-border); border-radius: 4px; font-size: 14px; font-family: inherit; margin-bottom: 12px; outline: none; resize: vertical; }
.comment-form input:focus, .comment-form textarea:focus { border-color: var(--xpti-teal); }
.comment-form p { margin: 0; }
.comment-form .comment-form-cookies-consent { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: #777; }
.comment-form .comment-form-cookies-consent input { width: auto; margin: 0; }
.comment-form .form-submit input {
  width: auto; padding: 11px 24px; background: var(--xpti-teal); color: #fff; border: none; border-radius: 4px;
  font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; cursor: pointer; transition: background .2s;
}
.comment-form .form-submit input:hover { background: var(--xpti-pink); }

/* ── ARCHIVE / CATEGORY ───────────────────────────────────── */
.archive-header { background: linear-gradient(135deg, var(--xpti-purple) 0%, #6a0575 100%); color: #fff; padding: 38px 0; margin: 18px 0 28px; }
.archive-header .breadcrumb { margin: 0 0 10px; }
.archive-header .breadcrumb a { color: rgba(255,255,255,0.7); }
.archive-header .breadcrumb .sep, .archive-header .breadcrumb .current { color: rgba(255,255,255,0.5); }
.archive-header h1 { color: #fff; font-size: 2rem; }
.archive-header p { color: rgba(255,255,255,0.75); font-size: 14.5px; margin: 10px 0 0; max-width: 640px; }
.archive-count { font-size: 12.5px; color: rgba(255,255,255,0.55); margin-top: 10px; text-transform: uppercase; letter-spacing: .5px; }

.filter-bar { background: var(--xpti-white); padding: 14px 18px; border-radius: var(--xpti-radius); margin-bottom: 24px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; box-shadow: var(--xpti-shadow); }
.filter-bar > span { font-size: 12px; font-weight: 700; color: var(--xpti-muted); text-transform: uppercase; letter-spacing: .5px; }
.filter-pill { padding: 6px 16px; border-radius: 20px; font-size: 12.5px; font-weight: 600; border: 1.5px solid var(--xpti-border); color: var(--xpti-text); transition: all .2s; background: transparent; }
.filter-pill:hover, .filter-pill.active { background: var(--xpti-pink); color: #fff; border-color: var(--xpti-pink); }

/* ── SEARCH ───────────────────────────────────────────────── */
.search-header { background: var(--xpti-darkest); color: #fff; padding: 34px 0; margin-bottom: 28px; }
.search-header h1 { color: #fff; font-size: 1.7rem; margin-bottom: 16px; }
.search-form-lg { display: flex; align-items: center; gap: 10px; max-width: 560px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15); border-radius: 6px; padding: 4px 4px 4px 16px; }
.search-form-lg svg { flex-shrink: 0; color: #999; }
.search-form-lg input { flex: 1; background: none; border: none; outline: none; color: #fff; font-size: 15px; font-family: inherit; padding: 10px 0; }
.search-form-lg input::placeholder { color: #888; }
.search-form-lg button { background: var(--xpti-teal); color: #fff; border: none; border-radius: 4px; padding: 10px 20px; font-size: 12.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; cursor: pointer; transition: background .2s; }
.search-form-lg button:hover { background: var(--xpti-pink); }
.result-count { font-size: 13px; color: rgba(255,255,255,0.55); margin-top: 14px; }
.result-count strong { color: #fff; }
mark { background: rgba(209,100,160,0.28); color: inherit; padding: 0 2px; border-radius: 2px; }

/* ── GENERIC PAGE ─────────────────────────────────────────── */
.page-header { padding: 22px 0 10px; }
.page-header h1 { font-size: 2rem; }
.no-results { background: var(--xpti-white); border-radius: var(--xpti-radius); box-shadow: var(--xpti-shadow); padding: 40px; text-align: center; }
.no-results h2 { margin-bottom: 10px; }

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .content-grid { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .header-search { display: none; }
  .article-body { padding: 24px; }
}
@media (max-width: 640px) {
  .main-nav ul { flex-wrap: wrap; }
  .main-nav a { padding: 10px 12px; }
  .card-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .hero-feature h1 { font-size: 1.4rem; }
  .topbar-links span.hide-mobile { display: none; }
  .post-row .art { width: 100px; height: 80px; }
  .article-header h1 { font-size: 1.5rem; }
}

/* ── IN-POST ADVERTS ─────────────────────────────────────── */
.xpti-ad { margin: 2em 0; padding: 14px 18px 18px; background: #f8f8f8; border: 1px solid var(--xpti-border); border-radius: var(--xpti-radius); }
.xpti-ad-label { display: block; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; color: #999; margin-bottom: 10px; }
.xpti-ad .aar-ad { max-width: none !important; border: none !important; padding: 0 !important; display: grid; grid-template-columns: 1fr auto; gap: 4px 20px; align-items: center; }
.xpti-ad .aar-ad-title { color: var(--xpti-purple); font-weight: 800 !important; font-size: 17px !important; margin: 0 !important; }
.xpti-ad .aar-ad-description { font-size: 14px !important; color: #555 !important; margin: 0 !important; line-height: 1.5; }
.xpti-ad .aar-ad-button { grid-column: 2; grid-row: 1 / span 2; background: var(--xpti-teal) !important; color: #fff !important; border: 0 !important; border-radius: 4px !important; padding: 11px 20px !important; font-size: 12.5px !important; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; white-space: nowrap; transition: background .2s; }
.xpti-ad .aar-ad-button:hover { background: var(--xpti-pink) !important; color: #fff !important; }
@media (max-width: 640px) {
  .xpti-ad .aar-ad { grid-template-columns: 1fr; }
  .xpti-ad .aar-ad-button { grid-column: 1; grid-row: auto; text-align: center; margin-top: 8px; }
}

/* ── ARTICLE LIST MARKERS ────────────────────────────────── */
.article-body ul { list-style: disc; }
.article-body ol { list-style: decimal; }
.article-body ul ul { list-style: circle; }
.pros-cons ul, .xpti-ad ul { list-style: none; }

/* ── SIDEBAR ADVERTS ─────────────────────────────────────── */
.latest-sidebar .xpti-ad { margin: 0 0 22px; }
.latest-sidebar .xpti-ad .aar-ad { grid-template-columns: 1fr; gap: 6px; }
.latest-sidebar .xpti-ad .aar-ad-button { grid-column: 1; grid-row: auto; text-align: center; margin-top: 8px; }
