` cannot break out of the inline block. wp_add_inline_style( 'airygen-toc-styles', wp_strip_all_tags( $css ) ); } /** * Preset styling overrides. * * @param string $preset Preset slug. * @param string $border_style Border style. * @param string $border_color Border color. * @param int $border_width Border width. * * @return string */ private static function preset_css( string $preset, string $border_style, string $border_color, int $border_width ): string { $preset = strtolower( $preset ); if ( 'card' === $preset ) { return '.airygen-toc--preset-card{background:#f8fafc;border-radius:12px;box-shadow:0 1px 2px rgba(15,23,42,0.08);}'; } if ( 'soft' === $preset ) { return '.airygen-toc--preset-soft{background:#f1f5f9;border-radius:10px;border-color:#cbd5f5;}'; } if ( 'accent' === $preset ) { $border = sprintf( '%dpx %s %s', max( 3, $border_width ), $border_style, '#0ea5e9' ); return '.airygen-toc--preset-accent{border:' . $border . ';border-left-width:' . max( 4, $border_width ) . 'px;}'; } if ( 'compact' === $preset ) { return '.airygen-toc--preset-compact{font-size:0.95em;}' . '.airygen-toc--preset-compact .airygen-toc__item{margin:0.2rem 0;}'; } if ( 'minimal' === $preset ) { return '.airygen-toc--preset-minimal{border-color:' . $border_color . ';}'; } return ''; } }