/* Shared presentation for public tools; calculation contracts remain page-owned. */
.tools-page, .compliance-page { background: #fff; }
.tools-page .footer-cta, .tools-page .sticky-cta { display: none; }
.tool-main { color: #10204a; background: #fff; }
.tool-main [hidden] { display: none !important; }
.tool-main .container { width: min(100% - 48px, 1180px); max-width: none; margin-inline: auto; padding-inline: 0; }
.tool-main .container::before, .tool-main .container::after { display: none; }
.tool-main [id] { scroll-margin-top: 104px; }
.tool-main a:focus-visible, .tool-main button:focus-visible, .tool-main summary:focus-visible, .tool-main input:focus-visible, .tool-main select:focus-visible { outline: 3px solid #3157db; outline-offset: 4px; }
.tool-main a { color: #3157db; }
.tool-main .btn-primary, .tool-main .btn-secondary { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 12px 22px; font-size: 14px; line-height: 1.5; box-shadow: none; }
.tool-main .btn-primary { background: #3157db; color: #fff; border: 1px solid #3157db; }
.tool-main .btn-primary:hover { background: #2444bd; }
.tool-main .btn-secondary { color: #243b67; border: 1px solid #cbd7eb; background: #fff; }
.tool-main button:disabled { opacity: .65; cursor: wait; }
.tool-main h1, .tool-main h2, .tool-main h3, .tool-main h4 { color: #10204a; letter-spacing: -.025em; }
.tool-main p { color: #53627c; line-height: 1.8; }
.tool-feature-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 22px; }
.tool-feature-card, .tool-directory-card { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; background: #fff; border: 1px solid #dfe6f1; border-radius: 18px; padding: 30px; color: #10204a; text-decoration: none; transition: border-color .15s; }
.tool-feature-card:hover, .tool-directory-card:hover { border-color: #3157db; text-decoration: none; }
.tool-feature-card .hub-icon { background: #edf2ff; color: #3157db; margin-bottom: 22px; }
.tool-kind { display: block; color: #536987; font-size: 11px; font-weight: 700; letter-spacing: .07em; line-height: 1.5; margin-bottom: 12px; }
.tool-main .tool-feature-card h3 { font-size: 23px; line-height: 1.4; margin: 0 0 14px; }
.tool-feature-card p, .tool-directory-card p { font-size: 14px; margin: 0 0 24px; }
.tool-card-action { display: flex; align-items: center; gap: 12px; margin-top: auto; padding-top: 8px; color: #3157db; font-size: 14px; font-weight: 700; }
.tool-directory-group { display: grid; grid-template-columns: 220px 1fr; gap: 35px; padding-block: 28px; border-top: 1px solid #dfe6f1; }
.tool-directory-group > h3 { font-size: 19px; line-height: 1.5; margin: 8px 0; }
.tool-directory-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; }
.tool-directory-card h4, .tool-directory-card h3 { margin: 0 0 12px; font-size: 20px; line-height: 1.4; }
.tool-faq-list { min-width: 0; }
.tool-main details.tool-faq { display: block; padding: 0; margin: 0; border: 0; border-bottom: 1px solid #dfe6f1; border-radius: 0; background: transparent; }
.tool-main .tool-faq summary { display: block; position: relative; list-style: none; cursor: pointer; padding: 22px 36px 22px 0; font-size: 16px; font-weight: 650; line-height: 1.6; color: #10204a; }
.tool-main .tool-faq summary::-webkit-details-marker { display: none; }
.tool-main .tool-faq summary::after { content: '+'; position: absolute; right: 4px; top: 21px; color: #3157db; font-weight: 400; font-size: 23px; }
.tool-main .tool-faq[open] summary::after { content: '−'; }
.tool-main .tool-faq > div, .tool-main .tool-faq > p { margin: 0; padding: 0 28px 23px 0; color: #53627c; font-size: 14px; line-height: 1.85; }
/* Compact tool header and readable working area. */
.tool-hero { padding: 38px 0 40px; border-bottom: 1px solid #e8edf5; }
.tool-back { display: inline-flex; align-items: center; gap: 8px; padding: 5px 0; margin-bottom: 18px; font-size: 13px; font-weight: 650; }
.tool-hero h1 { margin: 0 0 14px; font-size: clamp(30px,3.3vw,44px); font-weight: 750; line-height: 1.2; }
.tool-hero p { max-width: 820px; margin: 0; font-size: 16px; }
body.ds.tools-page.tools-detail .tool-main > .section { padding: 40px 0; background: #fff; }
body.ds.tools-page.tools-detail .tool-main > .tool-workspace, .tools-detail .advisor-workspace { padding: 32px 0 44px; background: #f6f8fc; }
.tool-workspace-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 26px; align-items: start; }
.tool-input, .tool-output { min-width: 0; }
.tool-output { display: grid; gap: 20px; }
body.ds.tools-page.tools-detail .tool-main .card, body.ds.tools-page.tools-detail .tool-main .advisor-card { min-width: 0; height: auto; padding: 28px; background: #fff; border: 1px solid #e0e7f1; border-radius: 16px; box-shadow: none; }
body.ds.tools-page.tools-detail .tool-main .card::before, body.ds.tools-page.tools-detail .tool-main .card::after { display: none; }
body.ds.tools-page.tools-detail .tool-main .card h2 { font-size: 23px; margin: 0 0 20px; line-height: 1.4; }
body.ds.tools-page.tools-detail .tool-main .card h3 { font-size: 18px; margin-top: 24px; line-height: 1.5; }
body.ds.tools-page.tools-detail .tool-main .lead-form { margin: 0; }
body.ds.tools-page.tools-detail .tool-main .form-row { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; margin: 0 0 18px; }
body.ds.tools-page.tools-detail .tool-main .form-group { min-width: 0; width: auto; margin: 0; padding: 0; }
body.ds.tools-page.tools-detail .tool-main label, body.ds.tools-page.tools-detail .tool-main legend { color: #263957; font-size: 13px; font-weight: 600; line-height: 1.6; margin-bottom: 8px; }
body.ds.tools-page.tools-detail .tool-main input, body.ds.tools-page.tools-detail .tool-main select { min-width: 0; width: 100%; max-width: 100%; height: 46px; border: 1px solid #ccd7e7; border-radius: 8px; background-color: #fff; box-shadow: none; font-size: 16px; color: #203556; padding: 10px 12px; }
body.ds.tools-page.tools-detail .tool-main input::placeholder { color: #72819a; }
body.ds.tools-page.tools-detail .tool-main input[readonly] { background: #f6f8fc; }
.tool-main .form-status:empty, .tool-main .advisor-form-status:empty { display: none; }
.tool-main .form-status, .tool-main .advisor-form-status { margin-top: 15px; font-size: 14px; line-height: 1.6; }
.tool-main .portal-actions { gap: 12px; margin-top: 22px; flex-wrap: wrap; }
.tool-input .portal-actions .btn-primary { width: 100%; }
.tool-main .dim-unit-toggle, .tool-main .rate-unit-toggle { margin: 0 0 24px; width: fit-content; max-width: 100%; padding: 4px; border: 1px solid #dfe6f1; border-radius: 10px; background: #f4f7fc; box-shadow: none; }
.tool-main .dim-unit-toggle__button, .tool-main .rate-unit-btn { min-height: 40px; min-width: 100px; border-radius: 7px; }
.tool-main .dim-unit-toggle__button.is-active, .tool-main .rate-unit-btn.is-active { background: #3157db; box-shadow: none; color: #fff; }
.tool-main .dim-step { display: none; }
.tool-main .dim-visual-canvas { height: auto; min-height: 0; width: 100%; aspect-ratio: 460 / 290; background: #f9fbfd; border-radius: 12px; overflow: hidden; }
.tool-main .dim-visual-canvas svg { width: 100%; height: 100%; max-height: 300px; }
.tool-main .dim-visual-wrap { padding: 0; border: 0; background: transparent; }
body.ds.tools-page.tools-detail .tool-main .dim-visual-wrap.card { padding: 24px; border: 1px solid #e0e7f1; background: #fff; }
.tool-main .dim-visual-note { font-size: 12px; margin: 12px 0 0; }
.tool-output:has(#dim-result:not([hidden])) .tool-dim-empty, .tool-output:has(#advisor-report:not([hidden])) .tool-advisor-empty { display: none; }
.tool-main .dim-result__metrics { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
.tool-main .dim-result-metric { min-width: 0; padding: 14px 10px; }
.tool-main .dim-result-metric strong { font-size: 23px; overflow-wrap: anywhere; }
.tool-main .dim-result__heading, .tool-main .dim-result__formula, .tool-main .dim-share, .tool-main .dim-share__actions { display: flex; flex-direction: column; align-items: stretch; gap: 12px; }
.tool-main .dim-share { margin-top: 22px; }
.tool-main .dim-share__actions input { width: 100%; }
.tool-main .dim-factor-panel { flex-wrap: wrap; gap: 8px; }
.tool-main .dim-result-note { margin: 0 0 16px; }
.tool-main .dim-education-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px; }
.tool-main .dim-reference-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px; }
.tool-main .dim-page-cta img { width: 160px; height: auto; }
.tool-main .rate-weight-panel { grid-template-columns: repeat(3,minmax(0,1fr)); }
.tool-main .rate-results-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.tool-main .rate-card { min-width: 0; padding: 18px; box-shadow: none; }
.tool-main .rate-savings-banner { padding: 16px; margin: 15px 0; }
.tool-main .rate-savings-banner strong { font-size: 22px; }
.tool-main .psc-visual { min-height: 0; padding: 12px; }
.tool-main .psc-visual svg { width: 100%; height: auto; max-height: 280px; }
.tool-main .psc-metrics { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin: 0; }
.tool-main .psc-metrics::before, .tool-main .psc-metrics::after { display: none; }
.tool-main .psc-metrics > div { width: auto; padding: 0; }
.tool-main .psc-metric { min-height: 0; height: 100%; }
.tool-main .zone-info-cards { display: block; }
.tool-main .zone-info-cards > div { float: none; width: 100%; margin-bottom: 10px; }
.tool-main .zone-calc-submit-wrap { display: flex; flex-direction: column; justify-content: end; }
.tool-main .zone-calc-submit-wrap > label { display: none; }
.tool-main .zone-empty-state, .tool-main .psc-empty { padding: 20px; border: 1px dashed #cdd8ea; background: #f8faff; border-radius: 10px; line-height: 1.8; }
.tool-main .pricing-table { font-size: 14px; }
.tool-main .table-responsive, .tool-main .advisor-table-wrap { max-width: 100%; overflow-x: auto; }
.tool-main .table-responsive th { background: #f0f4fa; }
.tool-main .tool-related-links { display: flex; flex-wrap: wrap; gap: 14px 30px; }
.tool-related-links a { display: inline-flex; gap: 8px; padding-block: 12px; }
.tool-check-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 32px; }
.tool-check-item { display: flex; gap: 16px; padding: 25px 0; border-top: 1px solid #e0e7f1; }
.tool-check-number { flex: 0 0 auto; padding-top: 3px; font-size: 13px; font-weight: 700; color: #3157db; }
.tools-detail .tool-check-item h3 { margin: 0 0 8px; font-size: 18px; }
.tool-check-item p { font-size: 14px; margin: 0; }
.tool-steps { padding-left: 24px; margin: 24px 0 40px; }
.tool-steps li { padding: 8px; line-height: 1.8; }
.tool-advisor-workspace { display: grid; grid-template-columns: minmax(0,390px) minmax(0,1fr); gap: 24px; align-items: start; }
.tools-detail .advisor-form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.tools-detail .advisor-field--dimensions { grid-column: 1/-1; }
.tools-detail .advisor-form-grid .advisor-field { min-width: 0; }
.tools-detail .advisor-dimensions-row { flex-wrap: wrap; }
.tools-detail .advisor-input-combo input { width: 100%; }
.tools-detail .advisor-input-combo select { width: 75px; }
.tools-detail .advisor-dimension-inputs input { min-width: 0; }
.tool-main .advisor-form__actions { display: block; }
.tool-main .advisor-analyze-button { width: 100%; min-width: 0; margin: 8px 0; white-space: normal; }
.tool-main .advisor-report { margin: 0; }
.tool-main .advisor-analysis-grid, .tool-main .advisor-lower-grid { grid-template-columns: 1fr; }
.tool-main .advisor-summary__layout { display: block; }
.tool-main .advisor-summary__metrics { grid-template-columns: 1fr; gap: 15px; }
.tool-main .advisor-summary-arrow { display: none; }
.tool-main .advisor-efficiency { margin: 20px auto 0; }
.tool-main .tool-advisor-empty img { width: 100%; height: auto; max-height: 270px; object-fit: contain; margin-top: 20px; }
.tool-main .advisor-related, .tool-main .advisor-faq { margin-top: 48px; }
@media (max-width: 1050px) {
 .tool-directory-group { grid-template-columns: 1fr; gap: 16px; }
 .tool-workspace-grid, .tool-advisor-workspace { grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 18px; }
 body.ds.tools-page.tools-detail .tool-main .card, body.ds.tools-page.tools-detail .tool-main .advisor-card { padding: 22px; }
 .tool-main .dim-result__metrics, .tool-main .rate-results-grid { grid-template-columns: 1fr; }
 .tools-detail .advisor-form-grid { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
 .tool-main .container { width: calc(100% - 32px); }
 .tool-feature-grid, .tool-directory-grid, .tool-workspace-grid, .tool-advisor-workspace, .tool-main .dim-education-grid, .tool-main .dim-reference-grid, .tool-check-grid { grid-template-columns: 1fr; }
 .tool-hero { padding: 24px 0 28px; }
 .tool-hero h1 { font-size: 30px; line-height: 1.25; }
 .tool-hero p { font-size: 15px; }
 .tool-back { margin-bottom: 14px; }
 body.ds.tools-page.tools-detail .tool-main > .section, .tools-detail .advisor-workspace { padding: 26px 0; }
 body.ds.tools-page.tools-detail .tool-main .card, body.ds.tools-page.tools-detail .tool-main .advisor-card { padding: 22px 18px; border-radius: 13px; }
 body.ds.tools-page.tools-detail .tool-main .card h2 { font-size: 21px; }
 body.ds.tools-page.tools-detail .tool-main .form-row { gap: 14px; }
 .tool-feature-card, .tool-directory-card { padding: 25px; }
 .tool-directory-group { padding-block: 22px; }
 .tool-main .dim-result__metrics { grid-template-columns: repeat(3,minmax(0,1fr)); }
 .tool-main .dim-result-metric strong { font-size: 20px; }
 .tool-main .dim-result-metric__icon { display: none; }
 .tool-main .dim-result-secondary { font-size: 11px; }
 .tool-main .dim-result__formula { padding: 15px 12px; }
 .tool-main .dim-page-cta { display: block; }
 .tool-main .dim-page-cta img { display: none; }
 .tool-main .rate-weight-panel { grid-template-columns: 1fr; }
 .tool-main .tool-visual-card { margin-top: 0; }
 .tool-main .tool-faq summary { font-size: 15px; }
 .tools-detail .advisor-form-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
 .tool-main .advisor-related__grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .tool-main * { transition: none !important; scroll-behavior: auto !important; } }

/* Override legacy DIM page presentation without changing shared site styles. */
body.ds.tools-page.tools-detail .tool-main { background: #fff; }
body.ds.tools-page.tools-detail .tool-main .tool-hero { background: #fff; }
body.ds.tools-page.tools-detail .tool-main .container { width: min(100% - 48px, 1180px); }
body.ds.tools-page.tools-detail .tool-main .btn-primary { background: #3157db; box-shadow: none; }
body.ds.tools-page.tools-detail .tool-main .btn-primary:hover { background: #2444bd; }
@media(max-width:767px) { body.ds.tools-page.tools-detail .tool-main .container { width: calc(100% - 32px); } }
body.ds.tools-page.tools-detail .tool-main .advisor-money-input input { padding-left: 28px; }
.tool-main .rate-empty { grid-column: 1 / -1; }
.tool-main .advisor-summary__metrics { grid-template-columns: repeat(3,minmax(0,1fr)); align-items: start; }
.tool-main .advisor-efficiency { padding: 18px 0 0; border: 0; border-top: 1px solid #e0e7f1; }
.tool-main .advisor-summary-metric > strong { font-size: 23px; }
@media (min-width:768px) and (max-width:1050px) { .tool-main .advisor-summary__metrics { grid-template-columns: 1fr; } }
@media (max-width:767px) { .tool-main .advisor-summary__metrics { gap: 10px; } .tool-main .advisor-summary-metric > strong { font-size: 19px; } .tool-main .advisor-summary-metric > span { min-height: 40px; } }
/* Keep legacy DIM form and metric styles inside the new workspace geometry. */
body.ds.tools-page.tools-detail .tool-main #dim-calc-submit { background: #3157db; box-shadow: none; }
body.ds.tools-page.tools-detail .tool-main .dim-result-metric { display: block; padding: 16px 12px; }
body.ds.tools-page.tools-detail .tool-main .dim-result-metric__label { display: block; margin: 0 0 10px; font-size: 12px; }
body.ds.tools-page.tools-detail .tool-main .dim-result-metric strong { width: auto; min-width: 0; font-size: 22px; line-height: 1.5; overflow-wrap: normal; word-break: normal; }
body.ds.tools-page.tools-detail .tool-main .dim-result-metric__icon,
body.ds.tools-page.tools-detail .tool-main .dim-result-metric__badge { display: none; }
body.ds.tools-page.tools-detail .tool-main .dim-result-secondary { display: block; margin-top: 4px; font-size: 11px; }
body.ds.tools-page.tools-detail .tool-main .dim-result-metric--billable { background: #eff4ff; border-color: #bbc9ef; }
@media (max-width:767px) {
 body.ds.tools-page.tools-detail .tool-main .dim-result-metric { padding: 14px 8px; }
 body.ds.tools-page.tools-detail .tool-main .dim-result-metric strong { font-size: 19px; }
}
