/* Additive styles: the original stylesheet is unchanged. */
.xm-ad { width: 100%; max-width: 100%; min-width: 0; margin: 0 auto; text-align: center; }
.xm-ad--ready { margin: 48px auto; }
.xm-ad[hidden] { display: none; }
.xm-ad-label { display: none; color: #737373; font: 11px/1.5 sans-serif; letter-spacing: .04em; margin-bottom: 8px; }
.xm-ad--ready .xm-ad-label { display: block; }
.xm-privacy-links { max-width: 1200px; margin: 20px auto; padding: 0 16px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 20px; font-size: .8rem; }
.xm-privacy-links button { color: var(--primary); font: inherit; background: none; border: 0; text-decoration: underline; cursor: pointer; padding: 8px 0; }
.xm-privacy-status { flex-basis: 100%; text-align: center; }
.xm-privacy-status:empty { display: none; }
.xm-cookie-panel { position: fixed; z-index: 90; inset: auto 0 0; background: #fff; border-top: 1px solid #d4d4d4; box-shadow: 0 -3px 18px #0001; padding: 16px max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); font-size: 13px; line-height: 1.5; }
.xm-cookie-panel[hidden] { display: none; }
.xm-cookie-panel [hidden] { display: none; }
.xm-cookie-inner { max-width: 1168px; margin: auto; display: flex; align-items: center; gap: 20px; }
.xm-cookie-copy { flex: 1; }
.xm-cookie-copy strong { display: block; font-size: 15px; margin-bottom: 4px; }
.xm-cookie-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.xm-cookie-actions button { font: inherit; padding: 10px 14px; min-height: 44px; color: #215d25; border: 1px solid #2e7d32; border-radius: 6px; background: #fff; cursor: pointer; }
.xm-cookie-actions button:focus-visible, .xm-privacy-links button:focus-visible { outline: 3px solid #8bc58e; outline-offset: 3px; }
.xm-cookie-close { display: block; margin-top: 8px; }
.xm-policy { overflow-wrap: anywhere; }
.xm-policy h2 { margin: 28px 0 12px; }
.xm-policy p, .xm-policy ul { margin-bottom: 16px; }
.xm-policy ul { padding-left: 24px; }
.xm-policy table { width: 100%; border-collapse: collapse; font-size: .85rem; }
.xm-policy th, .xm-policy td { padding: 10px; border: 1px solid var(--border); text-align: left; vertical-align: top; }
@media (max-width: 768px) {
  /* Avoid existing grid min-content overflow beside narrow ad placements. */
  .main-content .grid-3 > *, .main-content .features > * { min-width: 0; }
  .main-content .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .main-content .feature-card { overflow-wrap: anywhere; }
  .xm-ad--ready { margin: 40px auto; }
  .xm-cookie-inner { display: block; }
  .xm-cookie-actions { margin-top: 12px; }
  .xm-cookie-actions button { flex: 1 1 120px; }
  .xm-policy th, .xm-policy td { padding: 6px; }
}

/* V2: aligned footer controls, explicit search destination, small informational notice. */
.footer .xm-privacy-links { align-items: baseline; }
.footer .xm-privacy-links a, .footer .xm-privacy-links button { display: inline-flex; align-items: baseline; margin: 0; padding: 8px 0; font: inherit; line-height: 1.5; vertical-align: baseline; }
.xm-search-note { display: inline-block; margin-left: 3px; font-size: .7em; line-height: 1.2; font-weight: 400; white-space: nowrap; }
.xm-ya { color: #c40000; font-weight: 700; }
.track-dl .xm-ya, .btn-primary .xm-ya { color: #8d0000; background: #fff; border-radius: 2px; padding: 0 1px; }
.xm-cookie-notice { max-width: 1168px; margin: 12px auto; padding: 12px 16px; font-size: 12px; color: #666; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px; }
.xm-cookie-notice[hidden] { display: none; }
.xm-cookie-notice button { padding: 5px 14px; border: 1px solid #ccc; border-radius: 4px; background: #fff; cursor: pointer; }
@media(max-width:768px) { .track-dl { max-width: 110px; } .track-dl .xm-search-note { display: block; margin: 3px 0 0; } }

/* V3 inventory: native anchor space, no custom overlays or ad refresh timers. */
.xm-ad-desktop { display: block; }
@media(max-width:1023px) { .xm-ad-desktop { display: none; } }
