/* The New fixed partials — measured Character Counter parity · 20260909c.
 * Load after 20260710h only on opted-in pages; the reference stays unchanged.
 */

/* Character Counter retains justify-items from its earlier place-items rule. */
html body.wp-theme-intro [data-tn-fixed-partials="character-counter"][data-tn-fixed-partials="character-counter"] > article.tn-article-panel .tn-mini-mark {
  justify-items: center !important;
}

/* Preserve the reference's targeted minimums without copying its universal reset. */
html body.wp-theme-intro [data-tn-fixed-partials="character-counter"][data-tn-fixed-partials="character-counter"] > article.tn-article-panel .tn-article-title h2 {
  min-width: 0 !important;
}

/* The reference retains the theme's 0.5rem list-item bottom margin (8px). */
html body.wp-theme-intro [data-tn-fixed-partials="character-counter"][data-tn-fixed-partials="character-counter"] > article.tn-article-panel .tn-info-card:not(.tn-info-card--wide) > :is(ul, ol) > li {
  min-width: 0 !important;
  margin-bottom: 8px !important;
}

/* The shared helper uses the same direct date element as the reference. */
html body.wp-theme-intro [data-tn-fixed-partials="character-counter"][data-tn-fixed-partials="character-counter"] > .tn-tool-meta-row .tn-last-modified {
  white-space: normal !important;
}

/* Reference FAQ ink uses dark-hardening's --tn-paper, not --tn-fixed-paper. */
html body.wp-theme-intro:is([data-scheme="dark"], [data-scheme="inverse"]) [data-tn-fixed-partials="character-counter"][data-tn-fixed-partials="character-counter"] > article.tn-article-panel .tn-faq-item h3::before,
html body.wp-theme-intro[data-scheme="auto"]:is([data-d="dark"], [data-l="dark"]) [data-tn-fixed-partials="character-counter"][data-tn-fixed-partials="character-counter"] > article.tn-article-panel .tn-faq-item h3::before,
html:is([data-scheme="dark"], [data-scheme="inverse"], .theme-dark) body.wp-theme-intro:not([data-scheme="light"]) [data-tn-fixed-partials="character-counter"][data-tn-fixed-partials="character-counter"] > article.tn-article-panel .tn-faq-item h3::before {
  color: #2c2015 !important;
  -webkit-text-fill-color: currentColor !important;
}

@media (prefers-color-scheme: dark) {
  html body.wp-theme-intro[data-scheme="auto"] [data-tn-fixed-partials="character-counter"][data-tn-fixed-partials="character-counter"] > article.tn-article-panel .tn-faq-item h3::before {
    color: #2c2015 !important;
    -webkit-text-fill-color: currentColor !important;
  }
}

/* Character Counter's original paper layers; do not repaint matching dark states. */
html body.wp-theme-intro.roberin-the-new[data-scheme="light"]:has([data-tn-fixed-partials="character-counter"]) {
  background:
    radial-gradient(circle at 1px 1px, rgba(26, 18, 8, 0.045) 1px, transparent 1.45px) 0 0 / 12px 12px,
    linear-gradient(180deg, #f8f1e4 0%, #fbf7ee 48%, #f5ecda 100%) !important;
}

/* Keep shared footer paint/style, replacing only the legacy dark 2px width. */
html body.wp-theme-intro.roberin-the-new:has([data-tn-fixed-partials="character-counter"]) .cs-entry__footer:has(.cs-entry__footer-left) {
  border-width: 1px !important;
}

html body.wp-theme-intro.roberin-the-new:has([data-tn-fixed-partials="character-counter"]) .cs-contact-form input[type="submit"]:disabled {
  box-shadow: none !important;
}

html body.wp-theme-intro.roberin-the-new:is([data-scheme="dark"], [data-scheme="inverse"]):has([data-tn-fixed-partials="character-counter"]) .cs-contact-form input[type="submit"]:disabled {
  color: #fff7e8 !important;
  -webkit-text-fill-color: currentColor !important;
  background-color: #1a1208 !important;
  border-color: #1a1208 !important;
}

@media (max-width:720px) {
  html body.wp-theme-intro [data-tn-fixed-partials="character-counter"][data-tn-fixed-partials="character-counter"] > article.tn-article-panel,
  html body.wp-theme-intro [data-tn-fixed-partials="character-counter"][data-tn-fixed-partials="character-counter"] > section.tn-design-note {
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}
