/* Long-form guide articles. Layered on guide-articles.css. */
.long-article{max-width:840px}
.long-article header h1{margin-bottom:12px}
.long-article .article-byline a{color:var(--ink)}
.article-toc{background:#fff;border:3px solid var(--ink);border-radius:20px;padding:18px 24px;margin:28px 0;box-shadow:4px 4px 0 var(--ink)}
.article-toc h2{font:900 18px Nunito,sans-serif;margin:0 0 6px;text-transform:uppercase;letter-spacing:.06em}
.article-toc ol{margin:0;padding-left:22px;columns:2;column-gap:28px;font-size:16px}
.article-toc li{margin:4px 0;break-inside:avoid}
.long-article section[id]{scroll-margin-top:20px}
.long-article h3{font:900 21px/1.35 Nunito,sans-serif}
.long-article ul,.long-article ol{padding-left:24px}
.long-article li{margin:8px 0}
.callout{background:var(--soft);border:2px solid var(--ink);border-radius:16px;padding:14px 20px;margin:22px 0}
.callout.warn{background:#fff3c4}
.callout.mn{background:#e7f0fa}
.callout p{margin:6px 0}
.data-table{width:100%;border-collapse:collapse;background:#fff;border:3px solid var(--ink);font-size:16px;margin:18px 0}
.data-table caption{text-align:left;font-size:14px;padding-bottom:6px;color:var(--muted)}
.data-table th,.data-table td{border:1px solid var(--ink);padding:10px 12px;text-align:left;vertical-align:top}
.data-table thead th{background:var(--soft)}
.table-wrap{overflow-x:auto}
.article-faq .faq-item{border-top:2px dashed var(--faint);padding-top:6px}
.article-faq h3{margin:16px 0 4px}
.slides-link{font-size:15px}
.author-box{display:grid;grid-template-columns:110px 1fr;gap:20px;align-items:start;background:#fff;border:3px solid var(--ink);border-radius:22px;padding:20px;margin:40px 0;box-shadow:4px 4px 0 var(--ink)}
.author-box img{width:110px;height:110px;object-fit:cover;object-position:center 20%;border-radius:50%;border:3px solid var(--ink)}
.author-box h2{font:900 18px Nunito,sans-serif;margin:0 0 6px;text-transform:uppercase;letter-spacing:.06em}
.author-box p{margin:6px 0;font-size:16px}
.article-sources{font-size:15px}
.article-sources h2,.related-guides h2,.article-cta h2{font:900 24px Nunito,sans-serif}
.related-guides ul{list-style:none;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:14px}
.related-guides li{margin:0}
.related-guides a{display:block;height:100%;box-sizing:border-box;background:#fff;border:3px solid var(--ink);border-radius:18px;padding:14px 16px;text-decoration:none;color:var(--ink)}
.related-guides a b{display:block;font-size:17px;line-height:1.3;margin-bottom:6px}
.related-guides a span{display:block;font-size:14px;line-height:1.45;color:var(--muted)}
.article-cta{background:var(--acc);border:3px solid var(--ink);border-radius:22px;padding:22px 26px;margin:34px 0 18px}
.article-cta .btn{box-shadow:4px 4px 0 #fff}
.text-guide-directory h3{font:900 18px Nunito,sans-serif;margin:18px 0 6px}
@media(max-width:700px){.article-toc ol{columns:1}.author-box{grid-template-columns:1fr}.author-box img{width:90px;height:90px}}

/* Slide figures beside a section, key numbers, and the slide strip at the end of an article. */
.article-numbers{list-style:none;padding:0!important;margin:26px 0;display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:14px}
.article-numbers li{margin:0;background:#fff;border:3px solid var(--ink);border-radius:18px;padding:14px 16px;box-shadow:4px 4px 0 var(--ink);display:flex;flex-direction:column;gap:4px}
.article-numbers b{font:400 32px/1 Chewy,cursive}.article-numbers span{font:800 13.5px/1.35 Nunito,sans-serif}
.article-fig{float:right;width:300px;max-width:42%;margin:6px 0 16px 26px}
.article-fig img,.slide-strip img{display:block;width:100%;height:auto;border:3px solid var(--ink);border-radius:18px;background:#fff}
.article-fig img{box-shadow:4px 4px 0 var(--ink)}
.article-fig figcaption{font:600 13px/1.45 Nunito,sans-serif;color:var(--muted);margin-top:10px}
.long-article section.has-fig::after{content:"";display:block;clear:both}
.article-slides{margin-top:40px}.article-slides h2{font:900 24px Nunito,sans-serif}.article-slides p{font-size:16px}
.slide-strip{list-style:none;padding:4px 4px 14px!important;margin:0;display:flex;gap:16px;overflow-x:auto;scroll-snap-type:x proximity}
.slide-strip li{flex:0 0 300px;max-width:78vw;margin:0;scroll-snap-align:start}
@media(max-width:700px){.article-fig{float:none;width:100%;max-width:340px;margin:16px auto}}
/* Cash-to-close estimator on the closing costs guide. */
.cc-est{background:#fff;border:3px solid var(--ink);border-radius:22px;padding:22px;box-shadow:4px 4px 0 var(--ink);margin:18px 0}
.cc-form{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:14px 20px;margin:0 0 18px}
.cc-form label{display:flex;flex-direction:column;gap:4px;font:800 15px/1.3 Nunito,sans-serif}.cc-form label span{font-weight:600;color:var(--muted);font-size:13px}
.cc-form input,.cc-form select{font:600 17px Nunito,sans-serif;padding:10px 12px;border:2px solid var(--ink);border-radius:12px;background:#fff;color:var(--ink);min-height:46px;max-width:100%;width:100%;box-sizing:border-box}
.cc-result{background:var(--soft);border:2px solid var(--ink);border-radius:16px;padding:16px 20px}
.guide-article .cc-total{font:400 34px/1.1 Chewy,cursive;margin:0 0 10px}.cc-total small{display:block;font:700 15px Nunito,sans-serif;margin-top:4px}
.cc-result dl{display:grid;grid-template-columns:1fr max-content;gap:6px 18px;margin:0;font-size:16px}.cc-result dd{margin:0;font-weight:800;text-align:right}
.guide-article .cc-note{font-size:14px;line-height:1.55;margin:14px 0 0}
@media(max-width:700px){.cc-est{padding:16px}.guide-article .cc-total{font-size:28px}}
.guide-article .term-ask{background:var(--soft);border:2px solid var(--ink);border-radius:14px;padding:10px 16px;font-size:16px;margin:10px 0 22px}

.article-fig{width:270px}
/* Short sections get a smaller slide so the text isn't left beside a tall gap. */
@media(min-width:701px){.article-fig.fig-sm{width:180px}.article-fig.fig-sm figcaption{font-size:12px}}
/* Phones: a table with four or more columns keeps readable column widths and scrolls sideways in its wrapper,
   instead of squeezing every cell into a tall, narrow strip. City-guide tables turn into cards and are left alone. */
@media(max-width:768px){
 .table-wrap>.data-table:has(tr>:nth-child(4)):not(.cg .data-table){min-width:580px}
 .table-wrap>.data-table:has(tr>:nth-child(5)):not(.cg .data-table){min-width:720px}
 .table-wrap>.data-table:has(tr>:nth-child(4)):not(.cg .data-table) th,.table-wrap>.data-table:has(tr>:nth-child(4)):not(.cg .data-table) td{padding:8px 10px;font-size:15px}
}
