/* Train365 1.3.6: complete readable gutters for both theme variants and Gutenberg pages. */
body.train365{--t365-reading-width:1120px;--t365-reading-gutter:clamp(24px,5vw,68px)}
body.train365 :is(.t365-view-platform,.t365-view-features,.t365-view-feature_detail,.t365-view-integrations,.t365-view-integration_cluster,.t365-view-industry) :is(p,h1,h2,h3){overflow-wrap:break-word}
body.train365.t365-view-features .section>.container,
body.train365.t365-view-feature_detail .section>.container,
body.train365.t365-view-integrations .section>.container,
body.train365.t365-view-integration_cluster .section>.container,
body.train365.t365-view-platform .section>.container,
body.train365.t365-view-audience .section>.container,
body.train365.t365-view-industry .section>.container{max-width:1330px}
/* Gutenberg pages generated by the SEO Content Builder used to render naked paragraphs at the viewport edge. */
body.train365 .t365-editor-page{min-width:0;padding-block:clamp(20px,3vw,50px)}
body.train365 .t365-editor-page > :is(p,h1,h2,h3,h4,h5,ul,ol,blockquote,pre,table,figure,.wp-block-columns,.wp-block-table,.wp-block-media-text,.wp-block-image,.wp-block-buttons),
body.train365 .t365-editor-page > .wp-block-group:not(.alignfull),
body.train365 .t365-editor-page > .wp-block-cover:not(.alignfull){box-sizing:border-box;width:min(var(--t365-reading-width),calc(100% - 2*var(--t365-reading-gutter)));margin-left:auto;margin-right:auto;min-width:0}
body.train365 .t365-editor-page > :is(p,ul,ol,blockquote){max-width:min(850px,calc(100% - 2*var(--t365-reading-gutter)));line-height:1.85}
body.train365 .t365-editor-page > :is(h2,h3,h4){padding-top:clamp(14px,2vw,30px);line-height:1.22}
body.train365 .t365-editor-page > :is(h1,h2,h3,h4){overflow-wrap:break-word}
body.train365 .t365-editor-page .wp-block-group:not(.alignfull) > :is(p,ul,ol,h1,h2,h3,h4){max-width:100%;overflow-wrap:break-word}
body.train365 .t365-editor-page :is(img,video,iframe,figure){max-width:100%;height:auto}
body.train365 .t365-editor-page :is(.wp-block-table,pre){overflow-x:auto;-webkit-overflow-scrolling:touch}
/* Public template content: reader-friendly cards, no unintended full-width text. */
.t365-v136-section{background:var(--bg);color:var(--text)}
.t365-v136-heading{max-width:860px;margin-bottom:30px}
.t365-v136-heading .eyebrow{color:var(--t365-ink-muted,var(--muted))}
.t365-v136-heading h2{font-size:clamp(2.1rem,5vw,4.1rem);line-height:1.08;margin:18px 0}
.t365-v136-heading p{font-size:clamp(1rem,1.55vw,1.2rem);line-height:1.72;color:var(--muted);max-width:70ch}
.t365-v136-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(12px,2vw,22px)}
.t365-v136-card{border:1px solid var(--stroke);background:var(--panel);border-radius:24px;padding:clamp(22px,2.5vw,34px);min-height:250px;box-shadow:0 14px 38px rgba(13,27,52,.07);color:var(--text)}
.t365-v136-count{font-family:var(--font-head,'Space Grotesk',sans-serif);color:#447d22;display:inline-block;border-radius:10px;background:color-mix(in srgb,var(--lime) 18%,var(--panel));padding:8px 11px;font-size:14px;font-weight:800}
.t365-v136-card h3{font-size:clamp(1.22rem,2vw,1.72rem);margin:28px 0 10px;color:var(--text);line-height:1.22}
.t365-v136-card p{font-size:clamp(.94rem,1.15vw,1rem);color:var(--muted);line-height:1.74;margin:0}
.t365-v136-bottom{display:flex;gap:26px;justify-content:space-between;align-items:center;margin-top:26px;padding:22px clamp(20px,3vw,32px);background:var(--panel);border:1px solid var(--stroke);border-radius:18px}
.t365-v136-bottom p{color:var(--muted);font-size:14px;line-height:1.7;max-width:750px;margin:0}
.t365-v136-bottom .btn{flex-shrink:0;color:#0B132B}
/* Separate light and dark contrast systems on the new components. */
body[data-theme="light"] .t365-v136-card,body.t365-light .t365-v136-card{background:#fff;color:#102441;border-color:#d5dfed}
body[data-theme="light"] .t365-v136-card h3,body.t365-light .t365-v136-card h3{color:#102441}
body[data-theme="light"] .t365-v136-card p,body.t365-light .t365-v136-card p{color:#415776}
body[data-theme="light"] .t365-v136-bottom,body.t365-light .t365-v136-bottom{background:#fff;color:#102441}
body[data-theme="light"] .t365-v136-bottom p,body.t365-light .t365-v136-bottom p{color:#455972}
body[data-theme="dark"] .t365-v136-card,body.t365-dark .t365-v136-card{background:#122345;border-color:#29456e;color:#f7fbff}
body[data-theme="dark"] .t365-v136-card h3,body.t365-dark .t365-v136-card h3{color:#f7fbff}
body[data-theme="dark"] .t365-v136-card p,body.t365-dark .t365-v136-card p{color:#b9cae3}
/* New four-language process check: all selections remain in the browser. */
.t365-scan-panel{max-width:980px;margin:auto;background:var(--panel);color:var(--text);border:1px solid var(--stroke);border-radius:27px;padding:clamp(22px,4.5vw,54px)}
.t365-scan-option{display:flex;align-items:flex-start;gap:18px;padding:18px 5px;border-bottom:1px solid var(--stroke);font-size:clamp(15px,1.3vw,18px);font-weight:600;line-height:1.55;cursor:pointer}
.t365-scan-option input{width:22px;height:22px;accent-color:#79bf1e;flex-shrink:0;margin-top:3px}
.t365-scan-result{margin-top:26px;border-radius:18px;padding:clamp(20px,3vw,33px);background:color-mix(in srgb,var(--lime) 9%,var(--panel));border:1px solid color-mix(in srgb,var(--lime) 30%,var(--stroke))}
.t365-scan-result>.eyebrow{color:var(--text)}
.t365-scan-result p{font-size:clamp(1rem,1.9vw,1.3rem);line-height:1.55;color:var(--text);margin:15px 0 25px}
.t365-scan-actions{display:flex;gap:12px;flex-wrap:wrap}
.t365-scan-actions .btn-outline{color:var(--text);border-color:var(--stroke)}
/* Admin lead cards replace a hard-to-use horizontal table on mobile. */
.t365-lead-records{max-width:1060px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-top:18px}
.t365-lead-record{background:#fff;border:1px solid #d7e1ee;border-radius:14px;padding:20px;box-shadow:0 8px 28px #0b132b0c;min-width:0}
.t365-lead-record h2{font-size:19px;margin:0 0 10px}
.t365-lead-record h2 small{font-size:12px;font-weight:500}
.t365-lead-record p{overflow-wrap:anywhere;line-height:1.65}
.t365-lead-record details{margin:10px 0}
.t365-lead-record details pre{max-height:240px;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;padding:12px;background:#f4f7fb}
.t365-lead-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
@media(max-width:780px){
 body.train365{--t365-reading-gutter:24px}
 body.train365 .t365-editor-page > :is(h2,h3){font-size:clamp(1.5rem,6.2vw,2.25rem)}
 .t365-v136-grid{grid-template-columns:1fr}
 .t365-v136-card{min-height:0;border-radius:20px;padding:25px}
 .t365-v136-card h3{margin-top:17px}
 .t365-v136-bottom{flex-direction:column;align-items:stretch}
 .t365-v136-bottom .btn{text-align:center;white-space:normal}
 .t365-lead-records{grid-template-columns:1fr}
 .t365-scan-actions .btn{width:100%;white-space:normal;text-align:center}
}
@media(max-width:380px){body.train365{--t365-reading-gutter:20px}.t365-v136-section .container,.t365-process-scan .container{width:calc(100% - 32px)}.t365-scan-panel{padding:20px}.t365-scan-option{gap:12px;font-size:15px}}
