/* Sinaslist Tools — calculator layout, extends style.css */

.tools-hero { text-align: left; }
.tool-breadcrumb { font-size: .82rem; opacity: .85; margin-bottom: .5rem; }
.tool-breadcrumb a { color: #fff; }

.calc-layout { display: grid; grid-template-columns: 360px 1fr; gap: 1.5rem; margin: 2rem 0; align-items: start; }
@media (max-width: 768px) { .calc-layout { grid-template-columns: 1fr; } }

.inputs-card h2, .summary-card h2 { color: var(--primary); margin-bottom: 1.25rem; }

.loan-tabs { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: .75rem; }
.loan-tab { flex: 1; padding: .4rem .5rem; border: 1.5px solid var(--border); border-radius: 6px; background: #fff; font-size: .82rem; font-weight: 600; cursor: pointer; color: var(--muted); transition: all .15s; white-space: nowrap; }
.loan-tab.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.loan-desc { font-size: .8rem; color: var(--muted); margin-bottom: 1.25rem; line-height: 1.5; }

.addon-list { display: flex; flex-direction: column; gap: .5rem; }
.addon-item { display: flex; align-items: center; gap: .5rem; font-size: .85rem; color: var(--text); font-weight: 500; cursor: pointer; }
.addon-item input { width: auto; accent-color: var(--primary); }

.field-group { margin-bottom: .875rem; }
.field-group label { display: block; font-size: .82rem; font-weight: 600; color: var(--muted); margin-bottom: .3rem; }
.optional { font-weight: 400; font-size: .75rem; }
.field-group input, .field-group select { width: 100%; padding: .55rem .75rem; border: 1.5px solid var(--border); border-radius: 6px; font-size: .95rem; color: var(--text); transition: border-color .15s; }
.field-group input:focus, .field-group select:focus { outline: none; border-color: var(--primary); }
.hint { font-size: .75rem; color: var(--muted); margin-top: .2rem; display: block; }
.divider { border: none; border-top: 1px solid var(--border); margin: 1rem 0; }
.term-row { display: flex; gap: .5rem; }
.term-row input { flex: 1; }
.term-row select { width: 110px; }

.results-col { display: flex; flex-direction: column; }
.summary-card { border-top: 4px solid var(--primary); }
.monthly-amount { font-size: clamp(2rem, 5vw, 2.8rem); font-weight: 800; color: var(--primary); margin-bottom: .15rem; }
.monthly-sub { font-size: .82rem; color: var(--muted); margin-bottom: 1rem; }

.affordability { padding: .5rem .75rem; border-radius: 6px; margin-bottom: 1rem; font-size: .85rem; font-weight: 600; }
.afford-ok   { background: #d1fae5; color: #065f46; }
.afford-warn { background: #fef3c7; color: #92400e; }
.afford-bad  { background: #fee2e2; color: #991b1b; }

.result-pills { display: flex; gap: .75rem; margin-bottom: 1rem; flex-wrap: wrap; }
.pill { flex: 1; min-width: 90px; background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 8px; padding: .6rem .75rem; text-align: center; }
.interest-pill { background: #fef2f2; border-color: #fecaca; }
.fee-pill { background: #f8f8f8; border-color: var(--border); }
.pill-label { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.pill-val { font-size: 1rem; font-weight: 800; color: var(--primary); margin-top: .15rem; }
.interest-pill .pill-val { color: #b91c1c; }

.stack-bar-wrap { margin: .5rem 0 1rem; }
.stack-bar { display: flex; height: 12px; border-radius: 6px; overflow: hidden; margin-bottom: .4rem; }
.bar-principal { background: var(--primary); transition: width .3s; }
.bar-interest  { background: #dc2626; transition: width .3s; }
.bar-legend { display: flex; gap: 1rem; font-size: .75rem; color: var(--muted); }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: .3rem; vertical-align: middle; }
.dot-principal { background: var(--primary); }
.dot-interest  { background: #dc2626; }

.breakdown { border-top: 1px solid var(--border); padding-top: .75rem; }
.breakdown-row { display: flex; justify-content: space-between; padding: .35rem 0; font-size: .88rem; border-bottom: 1px dashed var(--border); }
.breakdown-row:last-child { border-bottom: none; }
.breakdown-row.highlight { font-weight: 700; font-size: 1rem; }
.red { color: #dc2626; font-weight: 600; }

.content-section { margin: 3rem 0; }
.content-section h2 { font-size: 1.4rem; font-weight: 800; color: var(--primary); margin-bottom: 1rem; }
.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: .875rem; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.data-table th { background: var(--primary); color: #fff; padding: .6rem 1rem; text-align: right; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; }
.data-table th:first-child { text-align: left; }
.data-table td { padding: .55rem 1rem; border-bottom: 1px solid var(--border); text-align: right; }
.data-table td:first-child { text-align: left; font-weight: 600; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:nth-child(even) td { background: #f0f7ff; }
.table-note { font-size: .8rem; color: var(--muted); margin-top: .75rem; }

.compare-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.compare-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; box-shadow: var(--shadow); }
.compare-card h3 { font-size: .95rem; font-weight: 700; color: var(--primary); margin-bottom: .4rem; }
.compare-card p { font-size: .875rem; color: var(--muted); line-height: 1.6; }

.faq-list { display: flex; flex-direction: column; gap: .75rem; }
details { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.25rem; box-shadow: var(--shadow); }
summary { font-weight: 600; cursor: pointer; font-size: .95rem; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::before { content: '+ '; color: var(--primary); font-weight: 800; }
details[open] summary::before { content: '\2212 '; }
details p { margin-top: .6rem; font-size: .875rem; color: var(--muted); line-height: 1.7; }

.checkbox-group label { display: flex; align-items: center; gap: .5rem; font-size: .85rem; font-weight: 500; color: var(--text); cursor: pointer; }
.checkbox-group input { width: auto; accent-color: var(--primary); }
.checkbox-group .hint { display: inline; margin: 0 0 0 .3rem; }

.breakdown-row.gross { font-weight: 700; }
.breakdown-row.neutral { color: var(--muted); font-style: italic; }
.breakdown-row.net { font-weight: 800; font-size: 1.05rem; border-top: 2px solid var(--border); padding-top: .5rem; margin-top: .25rem; }

.effective-rate { text-align: center; font-size: .85rem; color: var(--muted); margin-top: .85rem; padding-top: .75rem; border-top: 1px solid var(--border); }

.employer-card { margin-top: 1.25rem; border-top: 4px solid var(--primary-dk); }
.employer-card h3 { color: var(--primary); margin-bottom: 1rem; font-size: 1rem; }
.itf-note { margin-top: .75rem; padding-top: .75rem; border-top: 1px solid var(--border); }

/* Tools index */
.tools-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.25rem; padding: 2rem 0; }
.tool-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.5rem; display: flex; flex-direction: column; gap: .6rem; }
.tool-card h2 { font-size: 1.05rem; font-weight: 700; }
.tool-card h2 a { color: var(--text); text-decoration: none; }
.tool-card h2 a:hover { color: var(--primary); }
.tool-card p { font-size: .85rem; color: var(--muted); line-height: 1.55; flex: 1; }
.tool-card .view-btn { align-self: flex-start; }
.tool-card-soon { opacity: .55; }
