/* Shared §1260 total-return calculator styles. Used by custom-1260-calculator.hbs
   (standalone member page) and custom-swaps-scrolly.hbs (the scrolly post).
   Everything is scoped under .calc1260 so it cannot leak into either host page. */
/* ===== §1260 calculator (scoped) ===== */
.calc1260 { background-color:#f6f0f2; color:#232a33; font-family:'Inter',-apple-system,system-ui,sans-serif; line-height:1.4; -webkit-font-smoothing:antialiased; font-variant-numeric:tabular-nums; }
.calc1260 * { margin:0; padding:0; box-sizing:border-box; }
.calc1260 .deck { max-width: 580px; margin: 0 auto; padding: 12px 16px 34px; display: flex; flex-direction: column; gap: 8px; }
.calc1260 .slide-header { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.calc1260 .slide-num { font-size: 0.72rem; color: #b33a2b; font-weight: 700; }
.calc1260 .slide-header h3 { font-size: 1.02rem; line-height: 1.2; font-weight: 700; }
.calc1260 .sub { font-size: 0.72rem; color: #666666; width: 100%; margin-top: 2px; }
.calc1260 .controls { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.calc1260 .control { transition: opacity 0.18s ease; min-width: 0; }
.calc1260 .control.inert { opacity: 0.35; pointer-events: none; }
.calc1260 .control-label { font-size: 0.56rem; text-transform: uppercase; letter-spacing: 0.05em; color: #777777; font-weight: 700; margin-bottom: 4px; }
.calc1260 .controls .control-label { font-size: 0.46rem; margin-bottom: 2px; }
.calc1260 .seg { display: flex; background: #ece6e8; border-radius: 6px; padding: 2px; border: 1px solid #d8ced2; }
.calc1260 .seg button { flex: 1; min-width: 0; border: none; background: transparent; color: #777777; padding: 3px 2px; font-size: 0.52rem; font-weight: 500; border-radius: 5px; cursor: pointer; transition: all 0.16s ease; outline: none; font-family: inherit; white-space: nowrap; }
.calc1260 .seg button.on { background: #ffffff; color: #232a33; font-weight: 600; box-shadow: 0 1px 3px rgba(0,0,0,0.1); }
.calc1260 .seg button:focus-visible, .calc1260 .presets button:focus-visible, .calc1260 tr.interest.clik:focus-visible { outline: 2px solid #2a6496; outline-offset: 1px; }
.calc1260 .presets { display: flex; flex-wrap: wrap; gap: 5px; }
.calc1260 .presets button { flex: 1 1 calc(50% - 3px); display: flex; flex-direction: column; gap: 2px; border: 1px solid #d8ced2; background: #ece6e8; color: #555555; padding: 7px 9px; border-radius: 8px; cursor: pointer; text-align: left; font-family: inherit; transition: all 0.16s ease; }
.calc1260 .presets button.on { background: #232a33; color: #ffffff; border-color: #232a33; }
.calc1260 .presets .p-title { font-weight: 700; font-size: 0.68rem; line-height: 1.15; }
.calc1260 .presets .p-tag { font-weight: 500; font-size: 0.58rem; line-height: 1.2; opacity: 0.82; }
.calc1260 .whatsup { background-color: #fdfdfc; border: 1px solid #232a33; border-radius: 8px; padding: 10px 14px; }
.calc1260 .preset-caption { font-size: 0.84rem; color: #232a33; line-height: 1.45; margin-top: 3px; }
.calc1260 .preset-caption .concl { color: #b33a2b; font-weight: 600; }
.calc1260 .c1260-visualcard { background-color: #fdfdfc; border: 1px solid #232a33; padding: 12px 14px 12px; border-radius: 8px; }
.calc1260 .chart-disc { font-size: 0.56rem; color: #999999; margin-top: 9px; line-height: 1.35; }
.calc1260 .card-head { font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.03em; color: #777777; font-weight: 700; margin-bottom: 8px; }
.calc1260 .c1260-diagsvg { width: 100%; height: auto; display: block; margin-bottom: 4px; }
.calc1260 .c1260-diagtext { font-family: 'Inter', sans-serif; font-size: 11px; fill: #232a33; }
.calc1260 .c1260-diagtext.c1260-small { font-size: 10px; fill: #646c78; }
.calc1260 .c1260-diagtext.c1260-bold { font-weight: 700; }
.calc1260 table.stmt { width: 100%; table-layout: fixed; border-collapse: collapse; margin-top: 14px; font-size: 0.74rem; }
.calc1260 table.stmt th, .calc1260 table.stmt td { padding: 3px 4px; text-align: right; white-space: nowrap; }
.calc1260 table.stmt th.lbl, .calc1260 table.stmt td.lbl { text-align: left; color: #444444; }
.calc1260 table.stmt thead th { font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.03em; color: #777777; font-weight: 700; border-bottom: 1px solid #ddd; padding-bottom: 4px; line-height: 1.25; }
.calc1260 table.stmt thead th span { display: block; font-size: 0.58rem; font-weight: 500; text-transform: none; letter-spacing: 0; color: #999999; }
.calc1260 table.stmt td { color: #333333; }
.calc1260 table.stmt tr.sub td.lbl { padding-left: 12px; color: #777777; }
.calc1260 table.stmt tr.sub td:not(.lbl):not(.na) { color: #b3261e; }
.calc1260 #c1260-stmt tr.sub td.pos { color: #2e7d32; }
.calc1260 table.stmt tr.total td { border-top: 1.5px solid #ccc; font-weight: 700; color: #111111; padding-top: 5px; }
.calc1260 table.stmt col.hl { background: #f6f0f2; }
.calc1260 table.stmt td.na { color: #bbbbbb; }
.calc1260 #c1260-stmt.norecast th:nth-child(4), .calc1260 #c1260-stmt.norecast td:nth-child(4) { color: #bbb; font-weight: 400; }
.calc1260 #c1260-stmt.outright th:nth-child(3), .calc1260 #c1260-stmt.outright td:nth-child(3), .calc1260 #c1260-stmt.outright th:nth-child(4), .calc1260 #c1260-stmt.outright td:nth-child(4) { color: #c9c4c3; font-weight: 400; }
.calc1260 tr.interest.clik { cursor: pointer; }
.calc1260 tr.interest.clik td.lbl { text-decoration: underline dotted #c9a; text-underline-offset: 2px; }
.calc1260 tr.interest .caret { display: inline-block; color: #b3261e; font-size: 0.9em; margin-left: 4px; }
.calc1260 tr.int-row { display: none; }
.calc1260 tr.int-row.show { display: table-row; }
.calc1260 tr.int-row td { color: #b3261e; padding: 2px 4px; font-size: 0.58rem; }
.calc1260 tr.int-row td.lbl { padding-left: 18px; }
.calc1260 details.assump { font-size: 0.7rem; color: #666666; }
.calc1260 details.assump summary { cursor: pointer; font-weight: 600; color: #777777; text-transform: uppercase; letter-spacing: 0.04em; font-size: 0.58rem; }
.calc1260 details.assump ul { margin: 6px 0 0 16px; }
.calc1260 details.assump li { margin-bottom: 3px; line-height: 1.45; }
.calc1260 details.assump > ul > li { margin-bottom: 8px; }
.calc1260 details.assump ul ul { margin: 3px 0 5px 14px; }
.calc1260 details.assump a { color: #2a6496; }
@media (max-width: 540px) {
.calc1260 .controls { grid-template-columns: repeat(3, 1fr); gap: 5px; }
.calc1260 .control-label { font-size: 0.52rem; }
.calc1260 .seg { padding: 2px; }
.calc1260 .seg button { font-size: 0.5rem; padding: 3px 2px; }
.calc1260 table.stmt { font-size: 0.68rem; }
}
@media (max-width: 400px) {
.calc1260 .controls { grid-template-columns: repeat(2, 1fr); }
}
