/* Episode 7 uses the existing article shell and the film's editorial typography. */
.episode-07-article .article-header h1 em,
.credit-visual em {
  font-family: var(--font-serif);
  font-weight: 400;
  font-style: italic;
}
.episode-07-article .article-header h1 em { color: var(--blue); }
.episode-07-article .article-summary { font-size: 1.5rem; }
.episode-07-article .article-byline a { color: inherit; text-decoration: underline; text-underline-offset: .2em; }
.episode-07-article .article-copy > p { font-size: 1.075rem; }
.episode-07-article .article-copy > p:first-child { font-size: 1.2rem; }
.episode-07-article .article-copy h2 { font-size: 2rem; letter-spacing: 0; text-wrap: balance; }
.episode-07-article .article-next h2 { font-size: 2.5rem; }
.episode-07-article .article-next-links { flex-basis: 290px; }
.episode-07-article .article-next-links a { letter-spacing: 0; text-transform: none; font-size: .95rem; text-align: right; }
.episode-07-article .article-copy hr { margin: 2.5rem 0 1rem; border: 0; border-top: 1px solid var(--line); }
.episode-07-article .article-copy .article-sources,
.episode-07-article .article-copy .article-related { font-size: .95rem; }
.episode-07-article .article-sources a { overflow-wrap: anywhere; }
.credit-visual { margin: 2.5rem 0 3rem; color: var(--navy); letter-spacing: 0; }
.credit-visual * { letter-spacing: 0; }
.credit-visual > figcaption { font-size: 1.9rem; font-weight: 600; line-height: 1.22; }
.credit-visual > figcaption em { display: block; font-size: 2.6rem; line-height: 1.18; padding-bottom: .2rem; color: var(--splash); }
.credit-visual .figure-label { font: 500 .75rem/1.5 var(--font-mono); text-transform: uppercase; }
.credit-visual .figure-note { font-size: .85rem; line-height: 1.6; margin-top: 1.1rem; color: var(--graph); }

/* A score slip sits beside the physical file, not on top of the evidence. */
.lender-file { padding: 2.25rem 2rem 1.6rem; background: var(--navy); color: var(--white); border-top: 3px solid var(--blue); }
.lender-file > figcaption em { color: var(--blue); }
.file-stage { display: grid; grid-template-columns: 180px minmax(0,1fr); gap: 1.7rem; align-items: center; margin: 3.25rem 0 1.5rem; }
.score-slip { position: relative; background: var(--warm); color: var(--navy); padding: 1.4rem 1.1rem 1.2rem; box-shadow: 0 12px 24px #00132144; transform: rotate(-3deg); }
.score-slip::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--blue); }
.score-slip strong { display: block; font-size: 4.8rem; line-height: 1.15; font-weight: 600; margin: .45rem 0; font-variant-numeric: tabular-nums; }
.score-slip .score-rule { display: block; height: 1px; background: var(--line); margin-bottom: .8rem; }
.score-slip p { font-size: 1rem; line-height: 1.5; }
.slip-end { display: block; margin-top: 1.3rem; font: .66rem/1.6 var(--font-mono); color: var(--graph); }
.underwriting-file { position: relative; background: var(--warm); border: 1px solid #B9D3E0; padding: 1.15rem 1.3rem; color: var(--navy); box-shadow: 7px 8px 0 #B3C6D2, 0 18px 24px #00132144; }
.folder-tab { position: absolute; top: -1.8rem; left: -1px; height: 1.8rem; background: #B3C6D2; color: var(--navy); padding: .35rem 1rem; border-radius: 5px 5px 0 0; font: 500 .75rem/1.2 var(--font-mono); }
.underwriting-file dl > div + div { border-top: 1px solid var(--line); margin-top: 1.1rem; padding-top: 1.1rem; }
.underwriting-file dt { font-size: 1.05rem; font-weight: 600; line-height: 1.4; }
.underwriting-file dt span { font: .7rem var(--font-mono); color: var(--splash); margin-right: .5rem; }
.underwriting-file dd { font-size: .95rem; line-height: 1.45; margin-top: .5rem; color: var(--graph); }
.fraction-rule { display: block; height: 1px; background: #A7BAC7; width: 100%; max-width: 210px; margin: .25rem 0; }
.lender-file .figure-note { color: #C6DBE7; border-top: 1px solid #517791; padding-top: 1rem; }

.shared-facts { display: grid; grid-template-columns: 1fr 1.35fr; gap: 1rem; padding: 1.4rem 0 1.25rem; margin: 1.25rem 0 1.4rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.shared-facts strong { display: block; font-size: 2.15rem; font-weight: 600; line-height: 1.15; font-variant-numeric: tabular-nums; }
.shared-facts span { display: block; font-size: .85rem; margin-top: .4rem; line-height: 1.45; color: var(--graph); }
.borrower-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; }
.borrower { min-width: 0; padding: 0; border: 1px solid var(--line); background: var(--warm); }
.borrower > img { width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover; }
.borrower-body { padding: 1.35rem 1.3rem 1.45rem; }
.borrower h3 { font-size: 1.3rem; line-height: 1.3; margin-bottom: .4rem; font-weight: 600; }
.borrower-story { min-height: 3.6rem; font-size: .95rem; line-height: 1.6; color: var(--graph); margin-bottom: 1.5rem; }
.borrower-numbers dt { font-size: .9rem; line-height: 1.45; color: var(--graph); }
.borrower-numbers dd { font-size: 2rem; font-weight: 600; line-height: 1.2; font-variant-numeric: tabular-nums; margin-top: .35rem; white-space: nowrap; color: #B83D4F; }
.borrower-numbers dd small { font-size: .8rem; font-weight: 400; color: var(--graph); }
.borrower-numbers .dti-row { margin-top: 1.6rem; display: flex; align-items: baseline; justify-content: space-between; gap: .75rem; }
.borrower-numbers .dti-row dd { font-size: 1.6rem; }
.dti-track { height: 9px; background: #E5EAF1; margin: .8rem 0 1.75rem; }
.dti-track span { display: block; height: 100%; background: #B83D4F; }
.cash-position { border-top: 1px solid var(--line); padding-top: 1.2rem; }
.cash-position span { display: block; font-size: .85rem; line-height: 1.45; }
.cash-position span:last-child { color: var(--graph); font-size: .8rem; margin-top: .4rem; }
.cash-position strong { display: block; font-size: 2.35rem; line-height: 1.2; margin-top: .5rem; font-variant-numeric: tabular-nums; color: var(--splash); }
.borrower-a .cash-position strong { color: var(--navy); }
.comparison-conclusion { padding: 1.2rem 0 0; font-size: 1.3rem; font-weight: 500; line-height: 1.5; }
.comparison-conclusion em { font-size: 1.8rem; color: var(--splash); white-space: nowrap; }

/* The worksheet is an explanatory object; it collects no visitor information. */
.debt-inventory { padding: 2rem 1.8rem 1.5rem; background: #E4EDF2; border-top: 3px solid var(--blue); }
.inventory-paper { margin-top: 1.8rem; padding: 1.4rem; background: var(--warm); box-shadow: 0 5px 0 #CCD8DF, 0 12px 25px #00356114; }
.inventory-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .4rem; padding-bottom: 1.1rem; border-bottom: 2px solid var(--navy); }
.inventory-heading > span:last-child { font-size: .8rem; color: var(--graph); }
.inventory-paper table { width: 100%; border-collapse: collapse; table-layout: fixed; text-align: left; margin-top: .6rem; }
.inventory-paper th { font-weight: 500; }
.inventory-paper thead th { color: var(--graph); font-size: .8rem; line-height: 1.5; padding: .65rem .25rem .75rem; vertical-align: bottom; }
.inventory-paper thead th:first-child { width: 39%; }
.inventory-paper tbody th { font-size: .9rem; line-height: 1.5; padding: 1rem .25rem; }
.inventory-paper td { padding: 1rem .6rem; }
.inventory-paper tbody tr { border-top: 1px solid var(--lines); }
.writing-line { display: block; height: 1rem; border-bottom: 1px dashed #8DA5B7; }
.inventory-totals { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; border-top: 2px solid var(--navy); padding-top: 1.2rem; margin-top: .25rem; }
.inventory-totals span:first-child { display: block; font-size: .8rem; line-height: 1.5; }
.inventory-totals strong { display: block; font: 400 1.65rem/1.4 var(--font-serif); font-style: italic; color: var(--splash); }
.inventory-totals .writing-line { margin-top: .3rem; }
.two-pictures { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin: 2rem 0 .3rem; }
.two-pictures > div + div { border-left: 1px solid #B4C7D2; padding-left: 1.5rem; }
.two-pictures span { font: .7rem/1.5 var(--font-mono); text-transform: uppercase; color: #355C74; }
.two-pictures p { margin-top: .5rem; font-size: 1.05rem; line-height: 1.5; }
.two-pictures em { font-size: 1.5rem; color: var(--splash); }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
@media (max-width: 720px) {
  .episode-07-article .article-header h1 { font-size: 2.4rem; }
  .episode-07-article .article-copy h2 { font-size: 1.65rem; }
  .episode-07-article .article-next h2 { font-size: 2rem; }
  .episode-07-article .article-next-links a { text-align: left; }
}
@media (max-width: 560px) {
  .credit-visual > figcaption { font-size: 1.65rem; }
  .credit-visual > figcaption em { font-size: 2.25rem; }
  .lender-file { padding: 1.5rem 1.2rem 1.2rem; }
  .file-stage { grid-template-columns: 1fr; gap: 3rem; margin-top: 2rem; }
  .score-slip { width: 178px; margin: 0 auto; }
  .underwriting-file { margin: 0 .5rem .5rem 0; }
  .underwriting-file dd br { display: none; }
  .borrower-grid { grid-template-columns: 1fr; gap: 1.3rem; }
  .borrower-body { padding: 1.3rem 1.4rem 1.5rem; }
  .borrower-numbers dd { font-size: 2.4rem; }
  .borrower-numbers dd small { font-size: .85rem; }
  .borrower-numbers dt, .cash-position span { font-size: .9rem; }
  .cash-position span:last-child { font-size: .8rem; }
  .borrower-story { min-height: 0; }
  .shared-facts { gap: .75rem; }
  .shared-facts strong { font-size: 1.9rem; }
  .shared-facts span { font-size: .8rem; }
  .comparison-conclusion em { white-space: normal; }
  .debt-inventory { padding: 1.5rem 1rem 1.1rem; }
  .inventory-paper { padding: .85rem .65rem; }
  .inventory-paper thead th { font-size: .75rem; }
  .inventory-paper tbody th { font-size: .85rem; }
  .inventory-paper td { padding: .8rem .35rem; }
  .inventory-totals { gap: .75rem; }
  .inventory-totals span:first-child { font-size: .75rem; }
  .two-pictures { gap: .8rem; }
  .two-pictures > div + div { padding-left: .8rem; }
  .two-pictures p { font-size: .9rem; }
  .two-pictures em { font-size: 1.25rem; }
  .two-pictures span { font-size: .65rem; }
}
@media (max-width: 360px) {
  .episode-07-article .article-header h1 { font-size: 2rem; }
  .shared-facts strong { font-size: 1.7rem; }
  .debt-inventory { padding-left: .65rem; padding-right: .65rem; }
  .credit-visual .figure-note { font-size: .8rem; }
}
