/* DOMUNEXA Article Tables — legacy and native article tables */
/*
 * Some single-post templates place the post content inside a nowrap flex
 * group. A wide legacy table can otherwise set the flex item's intrinsic
 * width and make the whole page scroll horizontally on mobile. Constrain the
 * article column; the table wrappers below retain their own horizontal scroll.
 */
:is(.single-post,.single-domunexa_guide) .wp-block-post-content {
 width:100%;
 max-width:100%;
 min-width:0;
 flex:1 1 0%;
 box-sizing:border-box;
}
:is(.single-post,.single-domunexa_guide) .wp-block-post-content > * { max-width:100%; min-width:0; box-sizing:border-box; }
:is(.single-post,.single-domunexa_guide) .wp-block-post-content figure.wp-block-image { width:100%; max-width:100%; margin:1.5rem 0; box-sizing:border-box; }
:is(.single-post,.single-domunexa_guide) .wp-block-post-content figure.wp-block-image img { display:block; width:100%; max-width:100%; height:auto; object-fit:contain; box-sizing:border-box; }
:is(.single-post,.single-domunexa_guide) figure#ozone-reentry-infographic { width:100%; max-width:100%; min-width:0; overflow:hidden; box-sizing:border-box; }
:is(.single-post,.single-domunexa_guide) figure#ozone-reentry-infographic img { display:block; width:100%; max-width:100%; height:auto; box-sizing:border-box; }
:is(.single-post,.single-domunexa_guide) .domunexa-table-scroll,
:is(.single-post,.single-domunexa_guide) .dmx-article-table-scroll { width:100%; max-width:100%; box-sizing:border-box; overflow-x:auto; overflow-y:hidden; -webkit-overflow-scrolling:touch; overscroll-behavior-x:contain; }
:is(.single-post,.single-domunexa_guide) .domunexa-table-scroll table,
:is(.single-post,.single-domunexa_guide) .dmx-article-table-scroll table { min-width:560px; width:max-content; max-width:none; border:1px solid #cbd7e5; border-collapse:collapse; }
:is(.single-post,.single-domunexa_guide) .domunexa-table-scroll th,
:is(.single-post,.single-domunexa_guide) .domunexa-table-scroll td,
:is(.single-post,.single-domunexa_guide) .dmx-article-table-scroll th,
:is(.single-post,.single-domunexa_guide) .dmx-article-table-scroll td { border:1px solid #cbd7e5; padding:10px 12px; vertical-align:top; text-align:left; }
:is(.single-post,.single-domunexa_guide) .dmx-article-table-scroll--compact { overflow-x:visible; }
:is(.single-post,.single-domunexa_guide) .dmx-article-table-scroll--compact table { min-width:0; width:100%; max-width:100%; table-layout:fixed; }
:is(.single-post,.single-domunexa_guide) .dmx-article-table-scroll--compact th,
:is(.single-post,.single-domunexa_guide) .dmx-article-table-scroll--compact td { overflow-wrap:anywhere; word-break:normal; }
/* Fallback for wrappers emitted by older plugin versions without the compact class. */
:is(.single-post,.single-domunexa_guide) .dmx-article-table-scroll:not(.dmx-article-table-scroll--compact) table { min-width:0; width:100%; max-width:100%; table-layout:fixed; }
:is(.single-post,.single-domunexa_guide) .dmx-article-table-scroll:not(.dmx-article-table-scroll--compact):has(table tr:first-child > :nth-child(3)) { overflow-x:auto; }
:is(.single-post,.single-domunexa_guide) .dmx-article-table-scroll:not(.dmx-article-table-scroll--compact):has(table tr:first-child > :nth-child(3)) table { min-width:560px; width:max-content; max-width:none; table-layout:auto; }
:is(.single-post,.single-domunexa_guide) .domunexa-table-scroll th,
:is(.single-post,.single-domunexa_guide) .dmx-article-table-scroll th { background:#eef5fc; font-weight:700; }
:is(.single-post,.single-domunexa_guide) .dmx-article-table-hint { display:none; margin:0 0 8px; color:#43546b; font-size:.88rem; line-height:1.4; }
:is(.single-post,.single-domunexa_guide) .dmx-article-table-hint span { display:inline-block; margin-left:4px; font-weight:700; color:#1f6fd1; }
/* Desktop: editorial tables must use the reading column, without a horizontal
 * scrollbar. Long labels wrap inside their cells; touch scroll stays a mobile
 * fallback for wide comparisons. */
@media (min-width:768px) {
	:is(.single-post,.single-domunexa_guide) .domunexa-table-scroll,
	:is(.single-post,.single-domunexa_guide) .dmx-article-table-scroll { overflow-x:visible; overflow-y:visible; }
	:is(.single-post,.single-domunexa_guide) .domunexa-table-scroll table,
	:is(.single-post,.single-domunexa_guide) .dmx-article-table-scroll table { min-width:0; width:100%; max-width:100%; table-layout:fixed; }
	/* Match the three-column mobile fallback selector: otherwise its higher
	 * specificity keeps the table at its intrinsic width on desktop. */
	:is(.single-post,.single-domunexa_guide) .dmx-article-table-scroll:not(.dmx-article-table-scroll--compact):has(table tr:first-child > :nth-child(3)) { overflow-x:visible; overflow-y:visible; }
	:is(.single-post,.single-domunexa_guide) .dmx-article-table-scroll:not(.dmx-article-table-scroll--compact):has(table tr:first-child > :nth-child(3)) table { min-width:0; width:100%; max-width:100%; table-layout:fixed; }
	:is(.single-post,.single-domunexa_guide) .domunexa-table-scroll th,
	:is(.single-post,.single-domunexa_guide) .domunexa-table-scroll td,
	:is(.single-post,.single-domunexa_guide) .dmx-article-table-scroll th,
	:is(.single-post,.single-domunexa_guide) .dmx-article-table-scroll td { overflow-wrap:anywhere; word-break:normal; padding:8px 10px; font-size:.95rem; line-height:1.4; }
}
@media (max-width:767px) {
	:is(.single-post,.single-domunexa_guide) .wp-block-post-content figure.wp-block-image { margin-inline:0; }
	:is(.single-post,.single-domunexa_guide) .dmx-article-table-scroll--compact { overflow-x:visible; }
	:is(.single-post,.single-domunexa_guide) .dmx-article-table-scroll--compact .dmx-article-table-hint,
	:is(.single-post,.single-domunexa_guide) .dmx-article-table-scroll:not(.dmx-article-table-scroll--compact):not(:has(table tr:first-child > :nth-child(3))) .dmx-article-table-hint { display:none; }
	:is(.single-post,.single-domunexa_guide) .dmx-article-table-scroll--compact th,
	:is(.single-post,.single-domunexa_guide) .dmx-article-table-scroll--compact td { padding:8px 7px; font-size:.93rem; line-height:1.35; }
 :is(.single-post,.single-domunexa_guide) .domunexa-table-scroll,
 :is(.single-post,.single-domunexa_guide) .dmx-article-table-scroll { scrollbar-width:none; touch-action:pan-x pan-y; }
 :is(.single-post,.single-domunexa_guide) .domunexa-table-scroll::-webkit-scrollbar,
 :is(.single-post,.single-domunexa_guide) .dmx-article-table-scroll::-webkit-scrollbar { display:none; }
 :is(.single-post,.single-domunexa_guide) .dmx-article-table-hint { display:block; }
}

