/* PicoToolX Civil – compact tool layout + learning article. Fits a 1366x768 laptop screen. */
.ct{max-width:1180px;margin:12px auto 0;padding:0 12px;font-family:Inter,Arial,Helvetica,sans-serif;color:#1f2235}
.ct *{box-sizing:border-box}
.ct-card{background:#fff;border:1px solid #e5e7eb;border-radius:14px;box-shadow:0 4px 14px rgba(15,23,42,.06);padding:14px 16px}
.ct-head{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 12px;margin:0 0 10px}
.ct-head h1{font-size:22px;line-height:1.25;font-weight:800;margin:0;color:#1f2235}
.ct-head p{margin:0;color:#4b5563;font-size:13.5px}
.ct-grid{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);gap:14px;align-items:start}
.ct-grid3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;align-items:start}
@media(max-width:900px){.ct-grid,.ct-grid3{grid-template-columns:1fr}}
.ct-box{border:1px solid #e5e7eb;border-radius:12px;padding:12px;background:#fafafa}
.ct-box h2,.ct-box h3{font-size:15px;font-weight:800;margin:0 0 8px;color:#1f2235;display:flex;align-items:center;gap:6px}
.ct-box h2 .n{background:#f59e0b;color:#fff;border-radius:6px;font-size:12px;padding:1px 7px}
.ct-f{display:grid;grid-template-columns:repeat(auto-fill,minmax(128px,1fr));gap:8px 10px}
.ct-f .w2{grid-column:span 2}.ct-f .wall{grid-column:1/-1}
.ct label{display:block;font-size:12.5px;font-weight:600;color:#374151;margin:0 0 3px}
.ct input,.ct select{width:100%;height:34px;padding:4px 8px;border:1px solid #d1d5db;border-radius:8px;font-size:14px;background:#fff;color:#111827}
.ct input:focus,.ct select:focus{outline:2px solid #fcd34d;border-color:#f59e0b}
.ct small.h{display:block;color:#6b7280;font-size:11.5px;margin-top:2px}
.ct-btn{display:inline-flex;align-items:center;gap:6px;border:0;border-radius:8px;padding:7px 12px;font-weight:700;font-size:13px;cursor:pointer;background:#e5e7eb;color:#1f2235}
.ct-btn.p{background:#1f2235;color:#fff}.ct-btn.o{background:#f59e0b;color:#fff}.ct-btn.g{background:#15803d;color:#fff}.ct-btn.r{background:#dc2626;color:#fff}
.ct-bar{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-top:10px}
.ct-res{background:#ecfdf5;border:1px solid #a7f3d0;border-radius:12px;padding:12px;text-align:center}
.ct-res .v{font-size:26px;font-weight:800;color:#047857;line-height:1.2}
.ct-res .l{font-size:12.5px;font-weight:700;color:#374151;text-transform:uppercase;letter-spacing:.03em}
.ct-res .s{font-size:13px;color:#4b5563;margin-top:2px}
.ct-kv{width:100%;border-collapse:collapse;font-size:13.5px;margin-top:8px}
.ct-kv td{padding:5px 6px;border-bottom:1px solid #eef0f3;vertical-align:top}
.ct-kv td:last-child{text-align:right;font-weight:700;white-space:nowrap}
.ct-kv tr.t td{border-top:2px solid #10b981;font-size:14.5px;color:#047857}
.ct-fx{font-family:Consolas,Menlo,monospace;font-size:12.5px;background:#fff;border:1px dashed #d1d5db;border-radius:8px;padding:7px 9px;margin-top:8px;color:#374151;text-align:left;white-space:pre-wrap}
.ct-warn{background:#fffbeb;border:1px solid #fde68a;color:#92400e;border-radius:8px;padding:7px 9px;font-size:13px;margin-top:8px}
.ct-err{background:#fef2f2;border:1px solid #fecaca;color:#991b1b;border-radius:8px;padding:7px 9px;font-size:13px;margin-top:8px}
.ct-svg{display:block;margin:6px auto 0;max-width:100%;height:auto}
/* compact data-entry table */
.ct-tw{overflow-x:auto;border:1px solid #e5e7eb;border-radius:10px;background:#fff}
.ct-t{width:100%;border-collapse:collapse;font-size:13px}
.ct-t th{background:#1f2235;color:#fff;font-weight:700;padding:6px 5px;text-align:left;white-space:nowrap;font-size:12px}
.ct-t td{padding:2px 4px;border-bottom:1px solid #eef0f3;white-space:nowrap}
.ct-t tr:nth-child(even) td{background:#fafafa}
.ct-t input,.ct-t select{height:27px;padding:2px 6px;font-size:13px;border-radius:6px}
.ct-t .c-txt{min-width:110px}.ct-t .c-sm{width:64px}.ct-t .c-md{width:84px}.ct-t .c-dia{width:66px}
.ct-t td.o{text-align:right;font-weight:700;padding-right:8px;color:#1f2235}
.ct-t .x{background:none;border:0;color:#dc2626;font-size:18px;font-weight:800;cursor:pointer;line-height:1;padding:0 4px}
.ct-t tfoot td{font-weight:800;background:#ecfdf5!important;border-top:2px solid #10b981}
.ct-sum{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
.ct-sum span{background:#fff;border:1px solid #e5e7eb;border-radius:8px;padding:4px 9px;font-size:13px}
.ct-sum b{color:#b45309}
/* learning article */
.ct-art{max-width:920px;margin:14px auto 0;background:#fff;border:1px solid #e5e7eb;border-radius:14px;padding:20px 24px;font-size:15.5px;line-height:1.75;color:#1f2937}
.ct-art h2{font-size:22px;font-weight:800;margin:0 0 10px;line-height:1.3;color:#1f2235}
.ct-art h3{font-size:18px;font-weight:800;margin:22px 0 8px;color:#1f2235;border-left:4px solid #f59e0b;padding-left:9px}
.ct-art h4{font-size:16px;font-weight:700;margin:14px 0 6px}
.ct-art p{margin:0 0 10px}
.ct-art ul,.ct-art ol{margin:0 0 12px 22px;padding:0}
.ct-art ul{list-style:disc}.ct-art ol{list-style:decimal}
.ct-art li{margin:0 0 4px}
.ct-art table{width:100%;border-collapse:collapse;margin:6px 0 14px;font-size:14px}
.ct-art th,.ct-art td{border:1px solid #e5e7eb;padding:6px 9px;text-align:left;vertical-align:top}
.ct-art th{background:#f3f4f6;font-weight:700}
.ct-art .fx{background:#f8fafc;border:1px solid #e2e8f0;border-left:4px solid #1f2235;border-radius:8px;padding:10px 14px;margin:8px 0 12px;font-family:Consolas,Menlo,monospace;font-size:14px;white-space:pre-wrap;overflow-x:auto}
.ct-art .ex{background:#ecfdf5;border:1px solid #a7f3d0;border-radius:10px;padding:12px 16px;margin:8px 0 14px}
.ct-art .ex b.t{display:block;color:#047857;margin-bottom:4px}
.ct-art .note{background:#fffbeb;border:1px solid #fde68a;border-radius:10px;padding:10px 14px;margin:8px 0 14px;font-size:14.5px}
.ct-art details{border:1px solid #e5e7eb;border-radius:10px;padding:8px 12px;margin:0 0 8px;background:#fafafa}
.ct-art summary{font-weight:700;cursor:pointer}
.ct-art details p{margin:8px 0 2px}
.ct-art .toc{font-size:14px;background:#f9fafb;border-radius:10px;padding:8px 14px;margin:0 0 12px}
.ct-art .disc{font-size:13px;color:#6b7280;border-top:1px solid #e5e7eb;padding-top:10px;margin-top:18px}
.ct-art .rel a{color:#b45309;font-weight:600}
@media(max-width:600px){.ct-art{padding:16px 14px;font-size:15px}.ct-head h1{font-size:20px}}
@media print{#ptxh,.ptx-footer,.ct-art,.ct-bar,.ct-noprint{display:none!important}.ct-card{border:0;box-shadow:none}.ct-t input,.ct-t select{border:0;appearance:none;-webkit-appearance:none;background:none}.ct-t .x{display:none}}
/* design calculators */
.ct .hidden{display:none!important}
.ct-status{padding:7px 10px;border-radius:8px;text-align:center;color:#fff;font-weight:800;font-size:14px;margin-bottom:8px}
.ct-dsub{font-size:12px;font-weight:800;color:#9a3412;text-transform:uppercase;letter-spacing:.03em;margin:8px 0 3px}
.ct #ptx-steps{margin-top:10px;font-size:12.5px}.ct #ptx-steps td,.ct #ptx-steps th{padding:4px 8px}
.ct #ptx-steps .ptx-steps-head{padding:6px 10px}
.ct-fig{display:block;max-width:100%;height:78px;margin:0 auto 6px}
tr.ct-ok td:last-child{color:#15803d}tr.ct-bad td:last-child{color:#dc2626}
.ct-ph{color:#6b7280;text-align:center;padding:18px 0;font-size:13.5px}
.ct-err:empty{display:none}
/* copyable study notes inside articles */
.ct-notes{border:1px solid #c7d2fe;background:#eef2ff;border-radius:12px;margin:14px 0 16px;overflow:hidden}
.ct-notes .nh{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px 12px;background:#1f2235;color:#fff;font-size:14px}
.ct-notes .nh button{background:#f59e0b;color:#1f2235;border:0;border-radius:7px;padding:5px 11px;font-weight:800;font-size:12.5px;cursor:pointer}
.ct-notes pre{margin:0;padding:12px 14px;white-space:pre-wrap;word-break:break-word;font-family:Consolas,Menlo,monospace;font-size:13.5px;line-height:1.6;color:#1e1b4b;background:none}
.ct-art code{background:#f3f4f6;padding:1px 5px;border-radius:4px;font-size:.92em}
.ct-art [id],.ct-notes{scroll-margin-top:110px}
