/* ============================================================
   STAIR LIFT COST CALCULATOR — PAGE TEMPLATE STYLES
   Prefix: sltp- (Stair Lift Template Page)
   Color system: Terracotta / charcoal — #b54a32 / #292524 / #fdf4e9
   Layout: Magazine-editorial — completely different from
   matp- (green), hmtp- (green), hsctp- (green), wrctp- (dark
   green/amber), wittp- (ocean blue/teal).
   ============================================================ */

.sltp-page {
    --sltp-rust:       #b54a32;
    --sltp-rust-dark:  #8f3924;
    --sltp-charcoal:   #292524;
    --sltp-cream:      #fdf4e9;
    --sltp-cream-mid:  #f5e6d3;
    --sltp-gold:       #c9952f;
    --sltp-text:       #1c1917;
    --sltp-muted:      #6b6360;
    --sltp-border:     #e7ddd0;
    --sltp-white:      #ffffff;
    --sltp-font:       'Inter', -apple-system, sans-serif;
    --sltp-font-h:     'Lora', Georgia, serif;
}

/* ── MASTHEAD — magazine-style, no gradient, flat charcoal ── */
.sltp-masthead {
    background: var(--sltp-charcoal);
    padding: 0;
}

.sltp-masthead-top {
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding: 14px 0;
}

.sltp-masthead-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px;
}

.sltp-masthead-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--sltp-gold);
}

.sltp-masthead-meta {
    font-size: 11px;
    color: rgba(255,255,255,0.5);
    letter-spacing: 0.5px;
}

.sltp-masthead-main {
    max-width: 900px;
    margin: 0 auto;
    padding: 52px 24px 0;
}

.sltp-cat-rule {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
}

.sltp-cat-pill {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--sltp-charcoal);
    background: var(--sltp-gold);
    padding: 6px 16px;
    border-radius: 2px;
}

.sltp-cat-line {
    flex: 1;
    height: 1px;
    background: rgba(255,255,255,0.15);
}

.sltp-masthead-h1 {
    font-family: var(--sltp-font-h) !important;
    font-size: clamp(30px, 5.5vw, 50px) !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    line-height: 1.12 !important;
    margin: 0 0 22px !important;
    letter-spacing: -0.02em !important;
    max-width: 780px;
}

.sltp-masthead-dek {
    font-family: var(--sltp-font-h);
    font-size: 19px;
    font-style: italic;
    color: rgba(255,255,255,0.72);
    line-height: 1.65;
    margin: 0 0 32px;
    max-width: 660px;
    border-left: 3px solid var(--sltp-gold);
    padding-left: 18px;
}

.sltp-byline-row {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 24px 0 40px;
    border-top: 1px solid rgba(255,255,255,0.1);
    flex-wrap: wrap;
}

.sltp-byline-stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sltp-byline-num {
    font-family: var(--sltp-font-h);
    font-size: 22px;
    font-weight: 700;
    color: var(--sltp-gold);
    line-height: 1;
}

.sltp-byline-lbl {
    font-size: 11px;
    color: rgba(255,255,255,0.5);
}

/* ── Main wrapper ─────────────────────────────────────────── */
.sltp-main {
    background: var(--sltp-white);
}

.sltp-container {
    max-width: 900px;
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
}

/* ── Opening editorial — drop cap pattern ─────────────────── */
.sltp-lede {
    padding: 56px 0 0;
}

.sltp-lede-h2 {
    font-family: var(--sltp-font-h) !important;
    font-size: clamp(24px, 4vw, 32px) !important;
    font-weight: 700 !important;
    color: var(--sltp-charcoal) !important;
    line-height: 1.25 !important;
    margin: 0 0 28px !important;
    letter-spacing: -0.01em !important;
}

.sltp-lede-p {
    font-size: 17px;
    color: var(--sltp-text);
    line-height: 1.95;
    margin: 0 0 22px;
}

.sltp-lede-p:first-of-type::first-letter {
    font-family: var(--sltp-font-h);
    font-size: 64px;
    font-weight: 700;
    color: var(--sltp-rust);
    float: left;
    line-height: 0.85;
    margin: 6px 10px 0 0;
}

.sltp-lede-p strong { color: var(--sltp-rust-dark); font-weight: 700; }
.sltp-lede-p a { color: var(--sltp-rust); font-weight: 600; text-decoration: underline; text-decoration-color: rgba(181,74,50,0.35); text-underline-offset: 2px; }
.sltp-lede-p a:hover { text-decoration-color: var(--sltp-rust); }

.sltp-second-h2 {
    font-family: var(--sltp-font-h) !important;
    font-size: clamp(22px, 3.5vw, 28px) !important;
    font-weight: 700 !important;
    color: var(--sltp-charcoal) !important;
    line-height: 1.3 !important;
    margin: 36px 0 22px !important;
    letter-spacing: -0.01em !important;
}

/* ── Tool embed — framed like a sidebar feature ──────────── */
.sltp-tool-frame {
    background: var(--sltp-cream);
    border: 1px solid var(--sltp-border);
    border-top: 4px solid var(--sltp-rust);
    border-radius: 4px;
    padding: 40px 0;
    margin: 44px 0 0;
}

.sltp-tool-frame-header {
    text-align: center;
    margin-bottom: 28px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 24px;
}

.sltp-tool-frame-eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--sltp-rust);
    margin-bottom: 10px;
    display: block;
}

.sltp-tool-frame-h2 {
    font-family: var(--sltp-font-h) !important;
    font-size: clamp(20px, 3.5vw, 25px) !important;
    font-weight: 700 !important;
    color: var(--sltp-charcoal) !important;
    margin: 0 !important;
    line-height: 1.3 !important;
}

/* ── Section pattern — left rule + label, no numbers ─────── */
.sltp-section {
    padding: 56px 0;
    border-bottom: 1px solid var(--sltp-border);
}

.sltp-section:last-child { border-bottom: none; }

.sltp-rule-label {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.sltp-rule-mark {
    width: 28px;
    height: 3px;
    background: var(--sltp-rust);
    flex-shrink: 0;
}

.sltp-rule-text {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: var(--sltp-rust);
}

.sltp-section-h2 {
    font-family: var(--sltp-font-h) !important;
    font-size: clamp(22px, 3.5vw, 29px) !important;
    font-weight: 700 !important;
    color: var(--sltp-charcoal) !important;
    line-height: 1.3 !important;
    margin: 0 0 26px !important;
    letter-spacing: -0.01em !important;
}

.sltp-body-p {
    font-size: 16px;
    color: var(--sltp-text);
    line-height: 1.9;
    margin: 0 0 20px;
}

.sltp-body-p:last-child { margin-bottom: 0; }
.sltp-body-p strong { color: var(--sltp-rust-dark); }
.sltp-body-p a { color: var(--sltp-rust); font-weight: 600; text-decoration: underline; text-decoration-color: rgba(181,74,50,0.35); text-underline-offset: 2px; }
.sltp-body-p a:hover { text-decoration-color: var(--sltp-rust); }

/* ── Lift type list — editorial numbered list, not cards ─── */
.sltp-lift-list {
    counter-reset: lift-counter;
    margin-bottom: 28px;
}

.sltp-lift-entry {
    counter-increment: lift-counter;
    position: relative;
    padding: 26px 0 26px 64px;
    border-bottom: 1px solid var(--sltp-border);
}

.sltp-lift-entry:first-child { padding-top: 0; }
.sltp-lift-entry:last-child { border-bottom: none; padding-bottom: 0; }

.sltp-lift-entry::before {
    content: counter(lift-counter, decimal-leading-zero);
    position: absolute;
    left: 0;
    top: 26px;
    font-family: var(--sltp-font-h);
    font-size: 32px;
    font-weight: 700;
    color: var(--sltp-rust);
    opacity: 0.25;
    line-height: 1;
}

.sltp-lift-entry:first-child::before { top: 0; }

.sltp-lift-entry-top {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.sltp-lift-entry h3 {
    font-family: var(--sltp-font-h) !important;
    font-size: 19px !important;
    font-weight: 700 !important;
    color: var(--sltp-charcoal) !important;
    margin: 0 !important;
    line-height: 1.3 !important;
}

.sltp-lift-price-tag {
    font-family: var(--sltp-font-h);
    font-size: 16px;
    font-weight: 700;
    color: var(--sltp-rust);
    white-space: nowrap;
}

.sltp-lift-entry p {
    font-size: 14.5px !important;
    color: var(--sltp-muted) !important;
    line-height: 1.8 !important;
    margin: 0 !important;
}

/* ── Stat strip — inline, not card grid ──────────────────── */
.sltp-stat-strip {
    display: flex;
    border: 1px solid var(--sltp-border);
    border-radius: 4px;
    overflow: hidden;
    margin: 32px 0;
}

.sltp-stat-cell {
    flex: 1;
    padding: 24px 18px;
    text-align: center;
    border-right: 1px solid var(--sltp-border);
}

.sltp-stat-cell:last-child { border-right: none; }
.sltp-stat-cell:nth-child(odd) { background: var(--sltp-cream); }

.sltp-stat-num {
    font-family: var(--sltp-font-h);
    font-size: 28px;
    font-weight: 700;
    color: var(--sltp-rust);
    line-height: 1;
    display: block;
    margin-bottom: 8px;
}

.sltp-stat-lbl {
    font-size: 12px;
    color: var(--sltp-muted);
    line-height: 1.5;
}

/* ── Callout — left border quote style ───────────────────── */
.sltp-callout {
    border-left: 3px solid var(--sltp-gold);
    background: var(--sltp-cream);
    padding: 20px 26px;
    margin: 28px 0;
}

.sltp-callout-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--sltp-gold);
    margin-bottom: 8px;
    display: block;
}

.sltp-callout p {
    font-size: 15px !important;
    color: var(--sltp-text) !important;
    line-height: 1.8 !important;
    margin: 0 !important;
}

.sltp-callout p a { color: var(--sltp-rust); font-weight: 600; }

/* ── Reading list — for internal links, magazine "related" style ── */
.sltp-readlist {
    border-top: 2px solid var(--sltp-charcoal);
    border-bottom: 2px solid var(--sltp-charcoal);
    padding: 24px 0;
    margin: 32px 0;
}

.sltp-readlist-title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--sltp-rust);
    margin-bottom: 16px;
    display: block;
}

.sltp-readlist-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sltp-readlist-item {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.sltp-readlist-arrow {
    color: var(--sltp-rust);
    font-size: 14px;
    flex-shrink: 0;
}

.sltp-readlist-item a {
    font-family: var(--sltp-font-h);
    font-size: 15.5px;
    font-weight: 600;
    color: var(--sltp-charcoal);
    text-decoration: none;
    line-height: 1.5;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s, color 0.2s;
}

.sltp-readlist-item a:hover {
    color: var(--sltp-rust);
    border-bottom-color: var(--sltp-rust);
}

/* ── Checklist table — for "what to look for" ────────────── */
.sltp-check-rows {
    display: flex;
    flex-direction: column;
    margin-bottom: 28px;
}

.sltp-check-row {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 24px;
    padding: 18px 0;
    border-bottom: 1px solid var(--sltp-border);
}

.sltp-check-row:first-child { padding-top: 0; }
.sltp-check-row:last-child { border-bottom: none; padding-bottom: 0; }

.sltp-check-label {
    font-family: var(--sltp-font-h);
    font-size: 16px;
    font-weight: 700;
    color: var(--sltp-rust-dark);
    line-height: 1.4;
}

.sltp-check-desc {
    font-size: 14.5px;
    color: var(--sltp-muted);
    line-height: 1.8;
}

/* ── Dark band — charcoal, for stats/closing argument ────── */
.sltp-dark-band {
    background: var(--sltp-charcoal);
    padding: 60px 0;
}

.sltp-dark-band .sltp-rule-text { color: var(--sltp-gold); }
.sltp-dark-band .sltp-rule-mark { background: var(--sltp-gold); }

.sltp-dark-h2 {
    font-family: var(--sltp-font-h) !important;
    font-size: clamp(22px, 3.5vw, 29px) !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    line-height: 1.3 !important;
    margin: 0 0 26px !important;
}

.sltp-dark-p {
    font-size: 16px;
    color: rgba(255,255,255,0.72);
    line-height: 1.9;
    margin: 0 0 28px;
}

.sltp-dark-p a { color: var(--sltp-gold); font-weight: 600; }

.sltp-dark-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
    overflow: hidden;
}

.sltp-dark-stat {
    background: #211e1b;
    padding: 26px 18px;
    text-align: center;
}

.sltp-dark-stat-num {
    font-family: var(--sltp-font-h);
    font-size: 30px;
    font-weight: 700;
    color: var(--sltp-gold);
    line-height: 1;
    display: block;
    margin-bottom: 10px;
}

.sltp-dark-stat-lbl {
    font-size: 12px;
    color: rgba(255,255,255,0.6);
    line-height: 1.5;
}

/* ── Assistance — editorial list, not cards ──────────────── */
.sltp-assist-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 24px;
}

.sltp-assist-row {
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid var(--sltp-border);
    align-items: start;
}

.sltp-assist-row:first-child { padding-top: 0; }
.sltp-assist-row:last-child { border-bottom: none; padding-bottom: 0; }

.sltp-assist-tag {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: 4px 10px;
    border-radius: 2px;
    width: fit-content;
    margin-top: 3px;
}

.sltp-tag-veterans  { background:#dbeafe; color:#1d4ed8; }
.sltp-tag-state     { background:#f3e8ff; color:#7c3aed; }
.sltp-tag-insurance { background:#dcfce7; color:#15803d; }
.sltp-tag-federal   { background:#fef3c7; color:#92400e; }
.sltp-tag-tax       { background:#ccfbf1; color:#0f766e; }
.sltp-tag-local     { background:#f3f4f6; color:#374151; }

.sltp-assist-row h3 {
    font-family: var(--sltp-font-h) !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    color: var(--sltp-charcoal) !important;
    margin: 0 0 6px !important;
    line-height: 1.35 !important;
}

.sltp-assist-row p {
    font-size: 14px !important;
    color: var(--sltp-muted) !important;
    line-height: 1.75 !important;
    margin: 0 0 8px !important;
}

.sltp-assist-row a {
    font-size: 13px;
    font-weight: 700;
    color: var(--sltp-rust) !important;
    text-decoration: underline !important;
}

/* ── FAQ — accordion, rust accent ─────────────────────────── */
.sltp-faq-list {
    border-top: 1px solid var(--sltp-border);
}

.sltp-faq-item { border-bottom: 1px solid var(--sltp-border); }

.sltp-faq-q {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 22px 4px;
    background: transparent;
    border: none;
    cursor: pointer;
    font-family: var(--sltp-font-h);
    font-size: 17px;
    font-weight: 700;
    color: var(--sltp-charcoal);
    text-align: left;
    line-height: 1.4;
    transition: color 0.18s;
    -webkit-appearance: none;
    appearance: none;
    outline: none;
}

.sltp-faq-q:hover { color: var(--sltp-rust); }
.sltp-faq-q[aria-expanded="true"] { color: var(--sltp-rust); }
.sltp-faq-q:focus-visible { outline: 2px solid var(--sltp-rust); outline-offset: -2px; }

.sltp-faq-icon { flex-shrink: 0; color: var(--sltp-rust); display: flex; align-items: center; }

.sltp-faq-a { padding: 0 4px 24px; }
.sltp-faq-a[hidden] { display: none; }

.sltp-faq-a p {
    font-size: 15.5px !important;
    color: var(--sltp-muted) !important;
    line-height: 1.9 !important;
    margin: 0 !important;
    max-width: 760px;
}

.sltp-faq-cta {
    font-size: 15px;
    color: var(--sltp-muted);
    text-align: center;
    padding: 28px 0 0;
}

.sltp-faq-cta a { color: var(--sltp-rust); font-weight: 600; text-decoration: underline; }

/* ── Closing CTA — flat charcoal, gold accent ────────────── */
.sltp-closing {
    background: var(--sltp-charcoal);
    border-radius: 4px;
    padding: 56px 48px;
    text-align: center;
    position: relative;
}

.sltp-closing-rule {
    width: 50px;
    height: 3px;
    background: var(--sltp-gold);
    margin: 0 auto 24px;
}

.sltp-closing-h2 {
    font-family: var(--sltp-font-h) !important;
    font-size: clamp(24px, 4vw, 32px) !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    margin: 0 0 16px !important;
    line-height: 1.25 !important;
}

.sltp-closing-p {
    font-size: 16px;
    color: rgba(255,255,255,0.7);
    line-height: 1.8;
    margin: 0 0 30px;
    max-width: 580px;
    margin-left: auto;
    margin-right: auto;
}

.sltp-closing-btn {
    display: inline-block;
    background: var(--sltp-gold);
    color: var(--sltp-charcoal) !important;
    font-weight: 700;
    font-size: 16px;
    padding: 16px 42px;
    border-radius: 2px;
    text-decoration: none !important;
    transition: background 0.2s, transform 0.15s;
}

.sltp-closing-btn:hover {
    background: #b9851f;
    color: var(--sltp-charcoal) !important;
    transform: translateY(-2px);
    text-decoration: none !important;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 768px) {
    .sltp-masthead-main  { padding: 36px 20px 0; }
    .sltp-byline-row     { gap: 16px; padding: 18px 0 28px; }
    .sltp-stat-strip     { flex-direction: column; }
    .sltp-stat-cell      { border-right: none; border-bottom: 1px solid var(--sltp-border); }
    .sltp-stat-cell:last-child { border-bottom: none; }
    .sltp-dark-stats     { grid-template-columns: 1fr 1fr; }
    .sltp-check-row      { grid-template-columns: 1fr; gap: 8px; }
    .sltp-assist-row     { grid-template-columns: 1fr; gap: 8px; }
    .sltp-closing        { padding: 40px 24px; }
}

@media (max-width: 480px) {
    .sltp-dark-stats     { grid-template-columns: 1fr; }
    .sltp-section        { padding: 40px 0; }
    .sltp-lede-p:first-of-type::first-letter { font-size: 48px; }
    .sltp-lift-entry     { padding-left: 0; }
    .sltp-lift-entry::before { position: static; display: block; margin-bottom: 6px; }
}
