/* Cá Cảnh 24H Editorial UI 2.1.11 — scoped to article layouts. */
.a24-two-col:has(>.a24-article){grid-template-columns:minmax(0,980px) minmax(0,1fr);gap:24px;background:#fff}
.a24-two-col>.a24-article{width:100%;max-width:980px;padding:42px clamp(24px,4vw,58px);border:1px solid #dce8eb;border-radius:14px;background:#fff;min-width:0}
.a24-article>.wp-block-post-title{font:700 38px/1.25 Arial,sans-serif;color:#103e4d;letter-spacing:normal;margin:12px 0 18px;overflow-wrap:anywhere}
.a24-article>.a24-breadcrumb{margin-bottom:14px}
.a24-article>.wp-block-post-featured-image img{display:block;width:100%;height:auto;border-radius:10px}
:is(.a24-article .wp-block-post-content,.a24-editorial-body){font:17px/1.8 Arial,sans-serif;color:#25343b;overflow-wrap:anywhere;min-width:0;max-width:100%}
.a24-article .wp-block-post-content.is-layout-constrained>:where(:not(.alignleft):not(.alignright)){max-width:100%;margin-inline:auto}
:is(.a24-article .wp-block-post-content,.a24-editorial-body) h2{font:700 27px/1.35 Arial,sans-serif;color:#103e4d;letter-spacing:normal;margin:42px 0 15px;scroll-margin-top:80px}
:is(.a24-article .wp-block-post-content,.a24-editorial-body) h3{font:700 21px/1.4 Arial,sans-serif;color:#1c596a;letter-spacing:normal;margin:28px 0 12px;scroll-margin-top:80px}
:is(.a24-article .wp-block-post-content,.a24-editorial-body) h4{font-size:18px;line-height:1.4;color:#1c596a}
:is(.a24-article .wp-block-post-content,.a24-editorial-body) p{margin:0 0 15px}
:is(.a24-article .wp-block-post-content,.a24-editorial-body) :is(ul,ol){padding-inline-start:1.45em;margin:15px 0}
:is(.a24-article .wp-block-post-content,.a24-editorial-body) li{margin:7px 0}
:is(.a24-article .wp-block-post-content,.a24-editorial-body) a:not(.wp-block-button__link):not(.wp-element-button):not(:has(img)),.a24-article .a24-toc a{color:#8b1c25!important;text-decoration:underline dashed!important;text-underline-offset:3px;text-decoration-thickness:1px!important}
:is(.a24-article .wp-block-post-content,.a24-editorial-body) a:not(.wp-block-button__link):not(.wp-element-button):not(:has(img)):hover,.a24-article .a24-toc a:hover{color:#601017!important;text-decoration-style:solid!important}
:is(.a24-article .wp-block-post-content,.a24-editorial-body) figure:not(.wp-block-gallery){margin:24px 0 28px;max-width:100%}
:is(.a24-article .wp-block-post-content,.a24-editorial-body) img{display:block;max-width:100%;height:auto;border-radius:10px}
:is(.a24-article .wp-block-post-content,.a24-editorial-body) :is(figcaption,.wp-caption-text){font:14px/1.55 Arial,sans-serif;color:#566972;text-align:center;padding:8px 10px;margin:0}
:is(.a24-article .wp-block-post-content,.a24-editorial-body) :is(.a24-table-wrap,.cc24h-table-wrap,.table-wrap,.wp-block-table){max-width:100%;overflow-x:auto;margin:22px 0;overscroll-behavior-inline:contain}
:is(.a24-article .wp-block-post-content,.a24-editorial-body) table{width:100%;border-collapse:collapse;font:15px/1.6 Arial,sans-serif;overflow-wrap:anywhere;margin:0;table-layout:auto}
:is(.a24-article .wp-block-post-content,.a24-editorial-body) :is(th,td){border:1px solid #d5e3e6;padding:12px;vertical-align:top;text-align:left}
:is(.a24-article .wp-block-post-content,.a24-editorial-body) th{background:#e7f2f5;color:#103e4d;font-weight:700}
:is(.a24-article .wp-block-post-content,.a24-editorial-body) tbody tr:nth-child(even){background:#f7fafb}
:is(.a24-article .wp-block-post-content,.a24-editorial-body) .a24-heading-number{font-variant-numeric:tabular-nums;margin-inline-end:.35em}
/* Existing and new image grid classes; do not crop diagrams by default. */
:is(.a24-article .wp-block-post-content,.a24-editorial-body) :is(.a24-photo-grid,.cc24h-grid-2,.cc24h-grid-3,.cc24h-grid-4,.image-grid,.wp-block-gallery.is-style-a24-photo-grid.has-nested-images){--a24-photo-cols:2;display:grid!important;grid-template-columns:repeat(var(--a24-photo-cols),minmax(0,1fr));gap:16px!important;align-items:start;margin:24px 0 28px;max-width:100%}
:is(.a24-article .wp-block-post-content,.a24-editorial-body) :is(.a24-photo-grid.a24-cols-1,.wp-block-gallery.is-style-a24-photo-grid.columns-1){--a24-photo-cols:1}
:is(.a24-article .wp-block-post-content,.a24-editorial-body) :is(.a24-photo-grid.a24-cols-3,.cc24h-grid-3,.wp-block-gallery.is-style-a24-photo-grid.columns-3){--a24-photo-cols:3}
:is(.a24-article .wp-block-post-content,.a24-editorial-body) :is(.a24-photo-grid.a24-cols-4,.cc24h-grid-4,.wp-block-gallery.is-style-a24-photo-grid.columns-4){--a24-photo-cols:4}
:is(.a24-article .wp-block-post-content,.a24-editorial-body) :is(.a24-photo-grid.a24-cols-5,.wp-block-gallery.is-style-a24-photo-grid.columns-5){--a24-photo-cols:5}
:is(.a24-article .wp-block-post-content,.a24-editorial-body) :is(.a24-photo-grid.a24-cols-6,.wp-block-gallery.is-style-a24-photo-grid.columns-6){--a24-photo-cols:6}
:is(.a24-article .wp-block-post-content,.a24-editorial-body) :is(.a24-photo-grid,.cc24h-grid-2,.cc24h-grid-3,.cc24h-grid-4,.image-grid,.wp-block-gallery.is-style-a24-photo-grid)>figure{margin:0!important;width:100%!important;max-width:100%!important;min-width:0;border:1px solid #dce8eb;border-radius:10px;overflow:hidden;background:#fff;display:block!important}
:is(.a24-article .wp-block-post-content,.a24-editorial-body) :is(.a24-photo-grid,.cc24h-grid-2,.cc24h-grid-3,.cc24h-grid-4,.image-grid,.wp-block-gallery.is-style-a24-photo-grid)>figure img{width:100%!important;height:auto!important;aspect-ratio:4/3;object-fit:contain;border-radius:0!important;background:#f7fafb}
:is(.a24-article .wp-block-post-content,.a24-editorial-body) :is(.a24-photo-grid.a24-crop,.wp-block-gallery.is-style-a24-photo-grid.is-cropped)>figure img{object-fit:cover}
:is(.a24-article .wp-block-post-content,.a24-editorial-body) :is(.a24-photo-grid,.cc24h-grid-2,.cc24h-grid-3,.cc24h-grid-4,.image-grid,.wp-block-gallery.is-style-a24-photo-grid)>figure figcaption{position:static!important;display:block!important;background:white!important;color:#566972!important;padding:8px 10px!important;text-shadow:none!important;max-height:none!important;overflow:visible!important;width:100%!important}
/* Optional editorial blocks — no nested numbered headings for decorative labels. */
:is(.a24-article .wp-block-post-content,.a24-editorial-body) :is(.a24-ed-note,.cc24h-note,.note){background:#eef6f8;border:1px solid #dce8eb;border-left:4px solid #087c9d;border-radius:8px;padding:18px 20px;margin:24px 0}
:is(.a24-article .wp-block-post-content,.a24-editorial-body) .a24-ed-warning{background:#fff9ee;border-color:#eadcc1;border-left-color:#b7791f}
:is(.a24-article .wp-block-post-content,.a24-editorial-body) :is(.a24-ed-note,.cc24h-note,.note,.a24-ed-panel,.a24-ed-step,.a24-ed-faq) > :last-child{margin-bottom:0}
:is(.a24-article .wp-block-post-content,.a24-editorial-body) :is(.a24-ed-compare,.a24-ed-steps){display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:24px 0;padding:0;list-style:none}
:is(.a24-article .wp-block-post-content,.a24-editorial-body) :is(.a24-ed-panel,.a24-ed-step){min-width:0;border:1px solid #dce8eb;border-radius:10px;padding:18px;background:#f7fafb;margin:0}
:is(.a24-article .wp-block-post-content,.a24-editorial-body) .a24-ed-pro{background:#eff7f1;border-color:#cfe3d5}
:is(.a24-article .wp-block-post-content,.a24-editorial-body) .a24-ed-con{background:#fff3f0;border-color:#ead6d1}
:is(.a24-article .wp-block-post-content,.a24-editorial-body) .a24-ed-label{display:block;font-weight:700;color:#103e4d;margin-bottom:8px}
:is(.a24-article .wp-block-post-content,.a24-editorial-body) .a24-ed-steps{counter-reset:a24-step}
:is(.a24-article .wp-block-post-content,.a24-editorial-body) .a24-ed-step{counter-increment:a24-step}
:is(.a24-article .wp-block-post-content,.a24-editorial-body) .a24-ed-step>.a24-ed-label::before{content:counter(a24-step) '. ';color:#087c9d}
:is(.a24-article .wp-block-post-content,.a24-editorial-body) .a24-ed-faq{border:1px solid #dce8eb;border-radius:8px;padding:14px 18px;margin:10px 0;background:#fff}
:is(.a24-article .wp-block-post-content,.a24-editorial-body) .a24-ed-faq summary{font-weight:700;color:#103e4d;cursor:pointer}
:is(.a24-article .wp-block-post-content,.a24-editorial-body) .a24-ed-faq[open] summary{margin-bottom:10px}
.a24-article .a24-toc{background:#fff;border:1px solid #dce8eb;border-radius:8px;border-left:3px solid #8b1c25}
@media(max-width:1050px){.a24-two-col:has(>.a24-article){grid-template-columns:minmax(0,1fr) minmax(0,180px)}}
@media(max-width:780px){.a24-two-col:has(>.a24-article){grid-template-columns:minmax(0,1fr);width:calc(100% - 24px);gap:0}.a24-two-col>.a24-article{padding:24px 18px}.a24-article>.wp-block-post-title{font-size:29px}}
@media(max-width:680px){:is(.a24-article .wp-block-post-content,.a24-editorial-body){font-size:16px}:is(.a24-article .wp-block-post-content,.a24-editorial-body) h2{font-size:23px;margin-top:34px}:is(.a24-article .wp-block-post-content,.a24-editorial-body) h3{font-size:19px}:is(.a24-article .wp-block-post-content,.a24-editorial-body) table{font-size:13px}:is(.a24-article .wp-block-post-content,.a24-editorial-body) :is(th,td){padding:8px}:is(.a24-article .wp-block-post-content,.a24-editorial-body) :is(.a24-photo-grid,.cc24h-grid-2,.cc24h-grid-3,.cc24h-grid-4,.image-grid,.wp-block-gallery.is-style-a24-photo-grid.has-nested-images){grid-template-columns:repeat(min(var(--a24-photo-cols),2),minmax(0,1fr));gap:10px!important}:is(.a24-article .wp-block-post-content,.a24-editorial-body) :is(.a24-ed-compare,.a24-ed-steps){grid-template-columns:1fr}}
@media(max-width:480px){:is(.a24-article .wp-block-post-content,.a24-editorial-body) :is(.a24-photo-grid,.cc24h-grid-2,.cc24h-grid-3,.cc24h-grid-4,.image-grid,.wp-block-gallery.is-style-a24-photo-grid.has-nested-images){grid-template-columns:1fr}}

@media(max-width:780px){:is(.a24-article .wp-block-post-content,.a24-editorial-body) :is(.a24-photo-grid,.cc24h-grid-2,.cc24h-grid-3,.cc24h-grid-4,.image-grid,.wp-block-gallery.is-style-a24-photo-grid.has-nested-images){grid-template-columns:repeat(min(var(--a24-photo-cols),2),minmax(0,1fr));gap:10px!important}}
@media(max-width:480px){:is(.a24-article .wp-block-post-content,.a24-editorial-body) :is(.a24-photo-grid,.cc24h-grid-2,.cc24h-grid-3,.cc24h-grid-4,.image-grid,.wp-block-gallery.is-style-a24-photo-grid.has-nested-images){grid-template-columns:1fr}}
/* Block editor preview for optional patterns (without affecting site layout). */
.editor-styles-wrapper .a24-ed-compare,.editor-styles-wrapper .a24-ed-steps{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;padding:0;list-style:none}
.editor-styles-wrapper .a24-ed-panel,.editor-styles-wrapper .a24-ed-step{padding:18px;border:1px solid #dce8eb;border-radius:10px;background:#f7fafb;min-width:0}
.editor-styles-wrapper .a24-ed-pro{background:#eff7f1}.editor-styles-wrapper .a24-ed-con{background:#fff3f0}.editor-styles-wrapper .a24-ed-label{font-weight:700;color:#103e4d}
.editor-styles-wrapper .a24-ed-faq{padding:14px 18px;border:1px solid #dce8eb;border-radius:8px}.editor-styles-wrapper .a24-ed-faq summary{font-weight:700}
