/* Blue section rhythm and editorial layouts. */
.sa-segment-design #main-content > section:not(:first-child):not([aria-label]) {
    border-top: 1px solid #c7dbf4;
}
.sa-segment-design #main-content > section.bg-slate-50 {
    background-color: #eff6ff;
}
.sa-segment-design #main-content > section:not(:first-child) h2 {
    border-left: 4px solid #3b82f6;
    padding-left: 18px;
}
.sa-segment-design #main-content > section.text-white h2,
.sa-segment-design #main-content .text-white h2 {
    border-left-color: #93c5fd;
}
.sa-segment-design #main-content .home-section-label {
    color: #245ba4;
}
.sa-segment-design .sa-topic {
    border-top: 2px solid #c6dcf7;
    padding-top: 30px;
    scroll-margin-top: 100px;
}
.sa-segment-design .sa-topic:nth-of-type(even):not(.text-white) {
    background: #f0f6ff;
    border-radius: 0 0 20px 20px;
    padding: 26px;
}
.sa-segment-design .sa-topic > p {
    line-height: 1.85;
    max-width: 74ch;
}
.sa-segment-design .sa-topic.text-white {
    border-top-color: #60a5fa;
}
.sa-buying-visual {
    padding: 68px 24px;
    background: #f0f6ff;
}
.sa-buying-visual__grid {
    display: grid;
    max-width: 1152px;
    margin: auto;
    gap: 40px;
    align-items: center;
    grid-template-columns: 1fr 1fr;
}
.sa-buying-visual figure {
    margin: 0;
    overflow: hidden;
    border-radius: 22px;
    border: 1px solid #cedef4;
    background: #fff;
}
.sa-buying-visual img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: 65% center;
}
.sa-buying-visual figcaption {
    padding: 14px 20px;
    color: #5d6d84;
    font-size: 12px;
    line-height: 1.6;
}
.sa-visual-label {
    color: #245ba4;
    text-transform: uppercase;
    letter-spacing: .16em;
    font-size: 11px;
    font-weight: 800;
    margin-bottom: 14px;
}
.sa-buying-visual h2 {
    font-size: clamp(26px, 2.4vw, 34px);
    font-weight: 800;
    line-height: 1.2;
    color: #0f2a5a;
    letter-spacing: -.025em;
}
.sa-visual-intro {
    color: #52637b;
    line-height: 1.75;
    margin-top: 18px;
}
.sa-comparison-map {
    display: grid;
    gap: 10px;
    margin-top: 25px;
    grid-template-columns: 1fr 1fr;
}
.sa-comparison-map > div {
    display: flex;
    gap: 12px;
    padding: 16px;
    background: #fff;
    border: 1px solid #cfdef2;
    border-radius: 14px;
    align-items: flex-start;
}
.sa-comparison-map strong, .sa-comparison-map small { display: block; }
.sa-comparison-map strong { font-size: 13px; color: #102c58; }
.sa-comparison-map small { font-size: 12px; margin-top: 4px; color: #5d6d84; line-height: 1.5; }
.sa-diagram-icon {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    color: #245ba4;
}
.sa-comparison-result {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 12px;
    padding: 15px 18px;
    border-radius: 14px;
    background: #0f2a5a;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
}
.sa-comparison-result > span:first-child { color: #93c5fd; font-size: 22px; }
.sa-process {
    position: relative;
    display: grid;
    grid-template-columns: repeat(var(--sa-steps, 4), minmax(0, 1fr));
    gap: 18px;
    margin-top: 36px;
    isolation: isolate;
    padding: 0;
    list-style: none;
}
.sa-process::before {
    content: '';
    position: absolute;
    top: 44px;
    left: 24px;
    right: 24px;
    height: 2px;
    z-index: -1;
    background: #accdf5;
}
.sa-process > li {
    position: relative;
    padding: 24px 19px;
    background: #fff;
    border: 1px solid #c7dbf4;
    border-radius: 18px;
    box-shadow: 0 6px 20px rgb(15 42 90 / 4%);
}
.sa-process__icon {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    background: #eaf3ff;
    border: 1px solid #d4e5fb;
    border-radius: 13px;
    color: #245ba4;
    margin-bottom: 22px;
}
.sa-process__number {
    display: block;
    color: #5278ac;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .16em;
    margin-bottom: 8px;
}
.sa-process h3 { font-size: 15px; font-weight: 800; color: #102c58; }
.sa-process p { font-size: 13px; line-height: 1.65; color: #5d6d84; margin-top: 10px; }
.sa-process > li:not(:last-child)::after {
    content: '→';
    position: absolute;
    right: -15px;
    top: 31px;
    z-index: 2;
    font-size: 20px;
    color: #245ba4;
}
.sa-segment-design .sa-guide-card { padding: 0; overflow: hidden; }
.sa-guide-card img { width: 100%; height: 165px; object-fit: cover; }
.sa-guide-card__body { display: block; padding: 24px; }
.sa-reading-page .sa-reading-column { min-width: 0; }
.sa-reading-page .sa-reading-column > p {
    font-size: 16px;
    line-height: 1.85;
    color: #43536b;
    max-width: 75ch;
}
.sa-reading-section {
    border-top: 2px solid #c6dcf7;
    padding: 30px 0 0;
    margin: 40px 0 0;
    scroll-margin-top: 100px;
}
.sa-reading-section > h2 { margin-top: 0; line-height: 1.3; }
.sa-reading-section > p, .sa-reading-section > ul, .sa-reading-section > ol {
    line-height: 1.85;
    max-width: 75ch;
}
.sa-reading-section > p { margin-bottom: 18px; }
.sa-reading-section:nth-of-type(even):not(.text-white) {
    border-radius: 0 0 20px 20px;
    background: #f0f6ff;
    padding: 26px;
}
.sa-reading-section.text-white { border-top-color: #93c5fd; padding: 28px; }
.sa-reading-section table th { background: #e6f0ff; color: #153964; }
.sa-reading-section table td, .sa-reading-section table th { vertical-align: top; line-height: 1.65; }
.sa-table-scroll { max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain; }
.sa-table-scroll table { min-width: 580px; }
.sa-reading-toc {
    border: 1px solid #bfd5f1;
    border-radius: 16px;
    margin: 28px 0;
    background: #f0f6ff;
    overflow: hidden;
}
.sa-reading-toc summary {
    display: flex;
    gap: 12px;
    align-items: center;
    cursor: pointer;
    padding: 18px 22px;
    color: #153964;
    font-weight: 800;
    list-style: none;
}
.sa-reading-toc summary::-webkit-details-marker { display: none; }
.sa-reading-toc summary::after { content: '+'; margin-left: auto; font-size: 22px; line-height: 1; }
.sa-reading-toc details[open] summary::after { content: '−'; }
.sa-reading-toc summary small { font-size: 12px; color: #536f91; font-weight: 500; }
.sa-reading-toc ol {
    margin: 0;
    padding: 0 22px 20px 44px;
    list-style: decimal;
    font-size: 14px;
    color: #245ba4;
}
.sa-reading-toc li + li { margin-top: 10px; }
.sa-reading-toc a { display: block; line-height: 1.55; padding: 3px 0; }
.sa-reading-toc a:hover { text-decoration: underline; text-underline-offset: 4px; }
.sa-editorial-visual {
    background: #f0f6ff;
    border: 1px solid #c6dcf7;
    border-radius: 20px;
    padding: 26px;
    margin: 28px 0 36px;
}
.sa-editorial-visual h3 { color: #102c58; font-weight: 800; line-height: 1.35; font-size: 23px; letter-spacing: -.02em; }
.sa-visual-description { margin-top: 12px; color: #52637b; font-size: 14px; line-height: 1.75; }
.sa-editorial-visual figcaption { margin-top: 18px; padding-top: 14px; border-top: 1px solid #ccddf2; color: #526a89; font-size: 12px; line-height: 1.65; }
.sa-status-lanes { display: grid; gap: 12px; margin-top: 22px; }
.sa-status-lane { padding: 18px; border: 1px solid #c7dbf4; border-radius: 14px; background: #fff; }
.sa-status-lane > strong { display: flex; align-items: center; gap: 12px; font-size: 14px; color: #153964; }
.sa-status-lane ol { display: flex; align-items: center; gap: 26px; padding: 0; list-style: none; margin: 15px 0 0; }
.sa-status-lane li { position: relative; color: #52637b; font-size: 12px; line-height: 1.5; flex: 1; }
.sa-status-lane li:not(:last-child)::after { content: '→'; position: absolute; top: 4px; right: -18px; color: #245ba4; }
.sa-choice-map { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 22px; }
.sa-choice-map > div { background: #fff; border: 1px solid #c7dbf4; padding: 20px; border-radius: 16px; }
.sa-choice-map__label { display: block; font-size: 11px; color: #536f91; margin-top: 16px; }
.sa-choice-map h4 { font-size: 17px; line-height: 1.4; font-weight: 800; color: #102c58; margin-top: 6px; }
.sa-choice-map p { font-size: 13px; color: #52637b; line-height: 1.65; margin-top: 12px; }
.sa-choice-map a { display: inline-block; font-size: 13px; color: #245ba4; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; margin-top: 18px; }
.sa-broker-visual { display: grid; gap: 22px; grid-template-columns: minmax(0, .65fr) minmax(0, 1fr); align-items: center; }
.sa-broker-visual > img { width: 100%; height: 285px; object-fit: cover; object-position: center 20%; border-radius: 14px; background: #c7dbf4; }
.sa-broker-steps { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 14px; }
.sa-broker-steps li { display: flex; gap: 10px; align-items: flex-start; }
.sa-broker-steps li > span { display: grid; place-items: center; min-width: 29px; height: 29px; font-weight: 800; font-size: 10px; border: 1px solid #c7dbf4; background: #fff; color: #245ba4; border-radius: 8px; }
.sa-broker-steps strong { display: block; font-size: 13px; color: #153964; }
.sa-broker-steps small { display: block; font-size: 12px; color: #52637b; margin-top: 3px; line-height: 1.5; }
.sa-reading-cta { background: #0f2a5a; color: #fff; border-radius: 20px; padding: 26px; margin: 36px 0; }
.sa-reading-cta .sa-visual-label { display: block; color: #b9d7ff; }
.sa-reading-cta h3 { font-size: 23px; line-height: 1.35; font-weight: 800; }
.sa-reading-cta p { font-size: 14px; line-height: 1.75; color: #dce9fa; margin-top: 12px; }
.sa-reading-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
.sa-reading-button { display: inline-flex; justify-content: center; align-items: center; gap: 6px; min-height: 46px; padding: 12px 17px; border-radius: 11px; background: #e10600; font-size: 13px; font-weight: 800; color: #fff; line-height: 1.5; text-align: center; }
.sa-reading-button:hover { background: #c20500; }
.sa-reading-button--secondary { background: transparent; border: 1px solid #aac9f3; color: #fff; }
.sa-reading-button--secondary:hover { background: rgb(255 255 255 / 10%); }
@media (max-width: 1023px) {
    .sa-process { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sa-process::before, .sa-process > li::after { display: none; }
}
@media (max-width: 767px) {
    .sa-table-scroll::before { content: 'Przesuń tabelę w bok →'; display: block; padding: 10px 12px; color: #245ba4; font-size: 11px; background: #e6f0ff; }
    .sa-reading-section:nth-of-type(even):not(.text-white) { padding: 22px 18px; }
    .sa-editorial-visual, .sa-reading-cta { padding: 22px 18px; }
    .sa-broker-visual { grid-template-columns: 1fr; }
    .sa-broker-visual > img { height: 240px; object-position: center 25%; }
    .sa-status-lane { padding: 15px; }
    .sa-reading-actions > * { width: 100%; }
    .sa-buying-visual { padding: 44px 20px; }
    .sa-buying-visual__grid { grid-template-columns: 1fr; gap: 28px; }
    .sa-buying-visual img { aspect-ratio: 16 / 9; }
    .sa-comparison-map { gap: 8px; }
    .sa-comparison-map > div { padding: 12px; gap: 9px; }
    .sa-segment-design .sa-topic:nth-of-type(even):not(.text-white) { padding: 22px 18px; }
}
@media (max-width: 479px) {
    .sa-status-lane ol { flex-direction: column; align-items: stretch; gap: 22px; padding-left: 40px; }
    .sa-status-lane li:not(:last-child)::after { content: '↓'; top: auto; bottom: -20px; left: 0; right: auto; }
    .sa-choice-map { grid-template-columns: 1fr; }
    .sa-process { grid-template-columns: 1fr; gap: 12px; }
    .sa-process > li { padding: 20px 20px 20px 82px; }
    .sa-process__icon { position: absolute; top: 22px; left: 19px; margin: 0; }
    .sa-comparison-map > div { flex-direction: column; }
}
