/* Scoped calculator layout. Keep the established result-table row order intact. */
.section-properties-page .sp-calculator { padding: 24px 0 48px; }
.section-properties-page .sp-hero-benefits { display:flex; flex-wrap:wrap; justify-content:center; gap:6px 18px; margin-top:14px; color:#334155; font-size:13px; font-weight:600; }
.section-properties-page .sp-hero-benefits span::before { content:"✓"; color:#087eae; margin-right:6px; }
.section-properties-page .sp-picker-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:12px; }
.section-properties-page .sp-picker-heading h2 { font-size:17px; font-weight:700; color:#0f172a; }
.section-properties-page .sp-builder-link { flex:none; display:flex; align-items:center; min-height:48px; padding:8px 14px; border:1px solid var(--color-brand-200); border-radius:9px; background:white; color:var(--color-brand-800); text-decoration:none; }
.section-properties-page .sp-builder-link strong { display:block; font-size:13px; line-height:20px; font-weight:600; }
.section-properties-page .sp-builder-link small { display:block; color:#64748b; font-size:11px; line-height:16px; }
.section-properties-page .sp-builder-link:hover { border-color:var(--color-brand-600); background:var(--color-brand-50); }
.section-properties-page .section-shape-grid { grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; }
.section-properties-page .section-shape-card { min-height:0; padding:9px 3px; gap:4px; border-radius:12px; }
.section-properties-page .section-shape-icon-wrap { height:34px; }
.section-properties-page .section-shape-icon-wrap svg { width:36px; height:36px; }
.section-properties-page .section-shape-card > span:last-child { font-size:12px; line-height:16px; }
.section-properties-page .sp-workspace { display:grid; gap:24px; margin-top:24px; align-items:start; }
.section-properties-page .sp-input-panel { min-width:0; }
.section-properties-page .sp-input-toolbar { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:16px; }
.section-properties-page .sp-input-toolbar h3 { font-size:18px; line-height:24px; font-weight:700; color:#0f172a; }
.section-properties-page .sp-input-toolbar p { margin-top:4px; font-size:13px; line-height:20px; color:#64748b; }
.section-properties-page .sp-units { flex:0 0 auto; max-width:48%; }
.section-properties-page .sp-units select { margin:0; padding:10px 8px; font-size:14px; }
.section-properties-page .sp-input-and-diagram { display:grid; gap:18px; align-items:start; }
.section-properties-page .sp-dimension-form { padding:18px; border-radius:14px; }
.section-properties-page .sp-dimensions-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px 12px; }
.section-properties-page .sp-dimension { min-width:0; }
.section-properties-page .sp-dimension label { display:block; min-height:36px; margin-bottom:6px; color:#334155; font-size:12px; font-weight:600; line-height:18px; }
.section-properties-page .sp-dimension label span { white-space:nowrap; color:#64748b; font-weight:400; }
.section-properties-page .sp-dimension input { min-width:0; font-size:16px; padding:10px; }
.section-properties-page .sp-form-actions { display:grid; grid-template-columns:1fr 2fr; gap:10px; margin-top:20px; }
.section-properties-page .sp-form-actions button { min-width:0; padding:11px 12px; }
.section-properties-page .sp-text-button { display:inline-flex; align-items:center; background:transparent; border:0; padding:4px 0; color:#036b98; font-size:14px; font-weight:600; line-height:22px; cursor:pointer; text-align:left; text-decoration:underline; text-underline-offset:3px; }
.section-properties-page .sp-text-button:hover { color:#064a6a; }
.section-properties-page .sp-load-example { margin-top:10px; }
.section-properties-page .sp-diagram { margin:0; overflow:hidden; border:1px solid #e2e8f0; border-radius:14px; background:white; }
.section-properties-page #section-drawing { width:100%; height:260px; }
.section-properties-page .sp-diagram figcaption { padding:10px 16px; border-top:1px solid #f1f5f9; color:#64748b; font-size:12px; line-height:18px; }
.section-properties-page .sp-custom-link { margin-top:16px; font-size:13px; line-height:22px; color:#64748b; }
.section-properties-page .sp-custom-link a, .section-properties-page .sp-notation a, .section-properties-page .sp-guide a, .section-properties-page .sp-report-preview a { color:#036b98; font-weight:600; text-decoration:underline; text-underline-offset:3px; }
.section-properties-page .sp-results { scroll-margin-top:96px; }
.section-properties-page .sp-results > div:first-child { padding:18px; }
.section-properties-page #section-properties-table { font-size:14px; }
.section-properties-page #section-properties-table th, .section-properties-page #section-properties-table td { padding:9px 16px; }
.section-properties-page #section-properties-table th:first-child, .section-properties-page #section-properties-table td:first-child { text-align:left; }
.section-properties-page #section-properties-table th:last-child, .section-properties-page #section-properties-table td:last-child { text-align:right; }
.section-properties-page #section-properties-table td:last-child { white-space:nowrap; }
.section-properties-page .sp-results > div:last-child { padding:18px; }
.section-properties-page .sp-beam-next-step { padding:20px; border:1px solid var(--color-brand-200); border-radius:14px; background:var(--color-brand-50); }
.section-properties-page .sp-beam-next-step h3 { margin:0; color:#0f172a; font-size:18px; line-height:26px; font-weight:700; }
.section-properties-page .sp-beam-next-step p { margin:6px 0 12px; color:#475569; font-size:13px; line-height:20px; }
.section-properties-page .sp-beam-next-step .sp-handoff-note { margin:8px 0 0; color:#64748b; font-size:12px; line-height:18px; }
.section-properties-page .sp-result-actions { display:grid; }
.section-properties-page .sp-primary-button, .section-properties-page .sp-secondary-button { display:inline-flex; justify-content:center; align-items:center; gap:8px; min-height:46px; padding:12px 16px; border:1px solid var(--color-brand-800); border-radius:9px; font-weight:600; font-size:15px; line-height:22px; text-align:center; text-decoration:none; cursor:pointer; transition:background-color .15s,border-color .15s; }
.section-properties-page .sp-primary-button { background:var(--color-brand-800); color:white; }
.section-properties-page .sp-primary-button:hover { background:var(--color-brand-900); border-color:var(--color-brand-900); color:white; }
.section-properties-page .sp-secondary-button { background:white; color:var(--color-brand-800); border-color:var(--color-brand-700); font-size:14px; }
.section-properties-page .sp-secondary-button:hover { background:var(--color-brand-50); }
.section-properties-page #analyzeBtn { width:100%; }
.section-properties-page .sp-result-tools { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:8px 16px; margin-top:12px; }
.section-properties-page .sp-copy-actions { display:flex; flex-wrap:wrap; align-items:center; gap:4px 14px; }
.section-properties-page .sp-copy-actions .sp-text-button { color:var(--color-brand-800); font-size:12px; }
.section-properties-page .sp-result-tools select { max-width:100%; font-size:12px; }
.section-properties-page .sp-result-status { color:#64748b; font-size:12px; line-height:18px; margin-top:10px; }
.section-properties-page #section-copy-fallback { width:100%; margin-top:10px; padding:8px; border:1px solid #94a3b8; border-radius:6px; font:12px/18px monospace; }
.section-properties-page .sp-notation { margin-top:24px; padding:20px 24px; background:#eef7fb; border:1px solid #d5e8f2; border-radius:14px; scroll-margin-top:100px; }
.section-properties-page .sp-notation h2 { font-size:17px; line-height:25px; color:#0f172a; font-weight:700; }
.section-properties-page .sp-notation p { margin-top:8px; color:#475569; font-size:14px; line-height:24px; }
.section-properties-page .sp-report-actions { display:flex; flex-wrap:wrap; align-items:center; gap:12px 20px; margin-top:24px; }
.section-properties-page .sp-report-preview { width:100%; max-width:280px; margin:auto; padding:20px; border:1px solid #cbd5e1; border-radius:6px; box-shadow:5px 5px 0 #f1f5f9, 6px 6px 0 #cbd5e1; background:white; color:#334155; }
.section-properties-page .sp-report-preview figcaption { padding-bottom:12px; border-bottom:1px solid #e2e8f0; font-size:11px; line-height:18px; color:#036b98; text-transform:uppercase; font-weight:700; letter-spacing:.03em; }
.section-properties-page .sp-report-preview figcaption span { display:block; font-size:10px; color:#64748b; font-weight:400; }
.section-properties-page .sp-report-preview p { margin-top:12px; font-size:12px; line-height:20px; }
.section-properties-page .sp-report-preview .sp-preview-title { font-size:13px; font-weight:700; }
.section-properties-page .sp-preview-section svg { width:100%; height:90px; }
.section-properties-page .sp-preview-answer { padding:10px; background:#eef7fb; border-radius:4px; }
.section-properties-page .sp-report-preview a { display:block; margin-top:14px; font-size:11px; line-height:18px; }
.section-properties-page .sp-guide { padding:48px 0 0; scroll-margin-top:90px; color:#475569; }
.section-properties-page .sp-guide .sp-eyebrow { color:#036b98; font-size:12px; font-weight:700; text-transform:uppercase; letter-spacing:.08em; }
.section-properties-page .sp-guide h2 { margin-top:10px; color:#0f172a; font-size:30px; line-height:1.25; font-weight:700; letter-spacing:-.02em; }
.section-properties-page .sp-guide p { margin-top:16px; font-size:16px; line-height:28px; }
.section-properties-page .sp-steps { list-style:decimal; padding-left:24px; margin:20px 0; }
.section-properties-page .sp-steps li { padding-left:4px; margin:12px 0; font-size:16px; line-height:28px; }
.section-properties-page .sp-shape-guide-grid { display:grid; gap:20px; margin-top:24px; }
.section-properties-page .sp-shape-guide-grid article { padding:22px; border:1px solid #e2e8f0; border-radius:12px; }
.section-properties-page .sp-shape-guide-grid svg { width:44px; height:44px; color:#087daf; margin-bottom:12px; }
.section-properties-page .sp-shape-guide-grid h3, .section-properties-page .sp-note h3 { color:#0f172a; font-size:18px; line-height:26px; font-weight:700; }
.section-properties-page .sp-shape-guide-grid p { font-size:14px; line-height:24px; margin:10px 0 14px; }
.section-properties-page .sp-note { margin-top:24px; padding:20px; border-left:3px solid #087daf; border-radius:0 8px 8px 0; background:#f8fafc; }
.section-properties-page .sp-note p { font-size:14px; line-height:25px; margin-top:10px; }
.section-properties-page .sp-reference-layout { display:grid; gap:32px; padding-top:40px; align-items:start; }
.section-properties-page .sp-reference-content > .sp-guide:first-child { padding-top:0; }
.section-properties-page .sp-reference-content [id] { scroll-margin-top:var(--sp-toc-top,96px); }
.section-properties-page .sp-toc { min-width:0; }
.section-properties-page .sp-toc-panel { border:1px solid #e2e8f0; border-radius:12px; background:#fff; }
.section-properties-page .sp-toc-mobile-toggle { display:flex; align-items:center; justify-content:space-between; padding:14px 16px; color:#334155; font-size:14px; line-height:20px; font-weight:600; cursor:pointer; list-style:none; }
.section-properties-page .sp-toc-heading { display:none; }
.section-properties-page .sp-toc-scroll { padding:8px; }
.section-properties-page .sp-toc-list, .section-properties-page .sp-toc-children { list-style:none; margin:0; padding:0; }
.section-properties-page .sp-toc-list > li + li { margin-top:4px; }
.section-properties-page .sp-toc-link { display:flex; align-items:center; gap:10px; min-height:40px; padding:8px 12px; border-left:2px solid transparent; border-radius:0 6px 6px 0; color:#475569; font-size:15px; font-weight:500; line-height:24px; text-decoration:none; }
.section-properties-page .sp-toc-group > .sp-toc-link { color:#334155; font-weight:600; }
.section-properties-page .sp-toc summary::-webkit-details-marker { display:none; }
.section-properties-page .sp-toc summary svg { width:16px; height:16px; flex:none; fill:none; stroke:currentColor; stroke-width:1.6; transition:transform .15s; }
.section-properties-page .sp-toc details[open] > summary svg { transform:rotate(180deg); }
.section-properties-page .sp-toc-link:hover { color:var(--color-brand-800); background:var(--color-brand-50); }
.section-properties-page .sp-toc-link[aria-current="location"] { color:#226d70; background:#edf9f9; border-left-color:#49bfc1; font-weight:600; }
.section-properties-page .sp-toc-group[data-active="true"] > .sp-toc-link { color:var(--color-brand-800); }
.section-properties-page .sp-toc-children { margin:4px 0 12px 13px; padding-left:10px; border-left:1px solid #e2e8f0; }
.section-properties-page .sp-toc-children .sp-toc-link { min-height:36px; padding:6px; font-size:14px; line-height:20px; }
.section-properties-page .sp-toc-symbol { display:inline-flex; align-items:center; justify-content:center; flex:none; width:24px; height:24px; border-radius:4px; background:#f1f5f9; color:#475569; font:600 12px/1 monospace; }
.section-properties-page .sp-toc-link[aria-current="location"] .sp-toc-symbol { background:var(--color-brand-100); color:var(--color-brand-800); }
.section-properties-page .sp-toc :is(a,summary):focus-visible { outline:2px solid #49bfc1; outline-offset:2px; }
.section-properties-page .sp-plastic-formula { padding:10px 0; color:#334155; border-bottom:1px solid #f1f5f9; font-size:13px; line-height:24px; }
.section-properties-page .sp-plastic-formula dt { color:#64748b; font-family:inherit; font-size:12px; }
.section-properties-page :is(.sp-text-button,.sp-primary-button,.sp-secondary-button,.sp-builder-link):focus-visible { outline:3px solid var(--color-brand-700); outline-offset:4px; }
@media (min-width:1024px) {
    .section-properties-page .sp-reference-layout { grid-template-columns:264px minmax(0,1fr); gap:40px; }
    .section-properties-page .sp-toc { position:sticky; top:var(--sp-toc-top,96px); }
    .section-properties-page .sp-toc-panel { max-height:calc(100vh - var(--sp-toc-top,96px) - 20px); max-height:calc(100dvh - var(--sp-toc-top,96px) - 20px); overflow:hidden; border:0; border-radius:0; background:transparent; }
    .section-properties-page .sp-toc-heading { display:block; margin:0; padding:0 12px 14px; color:#64748b; font-size:12px; font-weight:700; line-height:18px; letter-spacing:.08em; text-transform:uppercase; }
    .section-properties-page .sp-toc-mobile-toggle { display:none; }
    .section-properties-page .sp-toc-scroll { max-height:calc(100vh - var(--sp-toc-top,96px) - 52px); max-height:calc(100dvh - var(--sp-toc-top,96px) - 52px); overflow-y:auto; overscroll-behavior:contain; scrollbar-width:thin; scrollbar-color:#cbd5e1 transparent; padding:0 6px 6px 0; }
}
@media (max-width:1023px) {
    .section-properties-page .sp-toc-scroll { border-top:1px solid #e2e8f0; }
    .section-properties-page .sp-toc-link { min-height:44px; }
    .section-properties-page .sp-toc-children .sp-toc-link { min-height:40px; }
}
@media (min-width:640px) {
    .section-properties-page .section-shape-grid { grid-template-columns:repeat(8,minmax(0,1fr)); }
    .section-properties-page .section-shape-card { padding:12px 4px; }
    .section-properties-page .section-shape-icon-wrap { height:44px; }
    .section-properties-page .section-shape-icon-wrap svg { width:44px; height:44px; }
    .section-properties-page .sp-input-and-diagram { grid-template-columns:1fr 1fr; }
    .section-properties-page #section-drawing { height:320px; }
    .section-properties-page .sp-shape-guide-grid { grid-template-columns:1fr 1fr; }
}
@media (min-width:1100px) {
    .section-properties-page .sp-workspace { grid-template-columns:minmax(0,1.25fr) minmax(0,1fr); }
    .section-properties-page .sp-input-panel { grid-column:1; grid-row:1; }
    .section-properties-page .sp-results { grid-column:2; grid-row:1 / span 2; }
    .section-properties-page .sp-beam-next-step { grid-column:1; grid-row:2; }
    .section-properties-page .sp-input-and-diagram { grid-template-columns:1fr; }
}
@media (min-width:1280px) {
    .section-properties-page .sp-workspace { grid-template-columns:minmax(0,1.5fr) minmax(0,1fr); }
    .section-properties-page .sp-input-and-diagram { grid-template-columns:minmax(0,1fr) minmax(0,1fr); }
}
@media (max-width:639px) {
    .section-properties-page .sp-calculator { padding-top:20px; }
    .section-properties-page .sp-picker-heading { align-items:flex-start; }
    .section-properties-page .sp-picker-heading h2 { font-size:15px; }
    .section-properties-page .sp-builder-link { padding:7px 10px; }
    .section-properties-page .sp-input-toolbar h3 { font-size:16px; }
    .section-properties-page .sp-input-toolbar p { display:none; }
    .section-properties-page .sp-input-toolbar { margin-bottom:12px; }
    .section-properties-page .sp-workspace { margin-top:20px; }
    .section-properties-page .sp-dimension-form { padding:14px; }
    .section-properties-page .sp-dimensions-grid { gap:12px; }
    .section-properties-page .sp-notation { padding:18px; }
    .section-properties-page .sp-guide h2 { font-size:26px; }
    .section-properties-page .sp-report-actions .sp-secondary-button { width:100%; }
}
