/* Finance flyers page (01Shared/FinanceFlyers.aspx, JS/FinanceFlyers.js).
   Loaded after CS/PropertyFlyers.css, which gives the editor, the preview and the shared flyer parts (.fly, .hl,
   .who, .qrbox, .fine, .foot-abs). This file adds the loan cards and the finance designs (.ff-*). The print window
   loads both files. */

/* Editor */
.ff-count { align-items: center; display: flex; flex-wrap: wrap; gap: 8px 14px; }
.ff-n { background: var(--brand); border-radius: 50%; color: #fff; display: grid; flex: none; font-size: .75rem; font-weight: 700; height: 20px; place-items: center; width: 20px; }
.ff .scen-head { gap: 8px; justify-content: flex-start; }
.ff .scen-total { line-height: 1.25; margin-left: auto; text-align: right; }
.ff .scen-total span { font-size: .75rem; }
.ff-more > summary { color: var(--brand-dark); cursor: pointer; font-size: .8rem; font-weight: 600; }
.ff-more-body { display: grid; gap: 8px; padding-top: 8px; }
.ff-ticks { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.ff-costs { display: grid; font-size: .8rem; gap: 2px; }
.ff-costs > div { display: flex; gap: 8px; justify-content: space-between; }
.ff-costs b { font-variant-numeric: tabular-nums; font-weight: 600; }
.ff-cost-h { color: var(--muted); font-size: .7rem !important; font-weight: 700; letter-spacing: .06em; margin-top: 6px; text-transform: uppercase; }
.ff-costs .hint { margin-top: 6px; }

/* ===================== Loan cards (printed paper) ===================== */
.opts { display: grid; gap: 14px; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); }
.opt { background: var(--tint); border-top: 4px solid var(--ac); padding: 11px 13px 12px; min-width: 0; }
.o-num { color: var(--ac); font-size: 9px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.o-name { font-size: 14.5px; font-weight: 800; line-height: 1.2; margin-top: 2px; }
.o-rate { color: var(--fine); font-size: 9.5px; margin-top: 2px; }   /* wraps, never cut off: the APR has to show with the rate */
.o-total { font-size: 28px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; margin: 5px 0 6px; }
.o-total small { color: var(--fine); font-size: 11px; font-weight: 600; letter-spacing: 0; }
.o-lines, .o-cash, .o-arm { display: grid; font-size: 10.5px; gap: 2px; }
.o-lines > div, .o-cash > div, .o-arm > div { color: var(--soft-text); display: flex; gap: 6px; justify-content: space-between; white-space: nowrap; }
.o-lines b, .o-cash b, .o-arm b { color: var(--text); font-weight: 600; }
/* With a bigger text setting (e.g. a browser minimum font size) a label wraps rather than pushing its amount off the card */
.o-lines > div > span, .o-cash > div > span, .o-arm > div > span { min-width: 0; white-space: normal; }
.o-lines b, .o-cash b, .o-arm b { align-self: flex-end; flex: none; }
.o-cash { border-top: 1px solid color-mix(in srgb, var(--ac) 25%, #ffffff); margin-top: 8px; padding-top: 7px; }
.o-arm { margin-top: 6px; }   /* ARM: the payment if the rate goes up */
.o-sub { color: var(--ac); font-size: 8.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.o-cash > .o-tc { border-top: 1px solid color-mix(in srgb, var(--ac) 25%, #ffffff); color: var(--text); font-size: 12px; font-weight: 800; margin-top: 2px; padding-top: 4px; }
.o-cash > .o-tc b { font-weight: 800; }
.opts-empty { border: 2px dashed var(--rule); color: var(--fine); font-size: 14px; padding: 40px; text-align: center; }
/* One loan, or a narrow column: each loan as a row (heading | payment | cash) */
.opts.n1, .ff-split .opts, .ff-sidebar .opts { grid-template-columns: minmax(0, 1fr); }
.opts.n1 .opt, .ff-split .opt, .ff-sidebar .opt { align-items: start; border-left: 4px solid var(--ac); border-top: 0; column-gap: 16px; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr) minmax(0, 1fr); }
.opts.n1 .opt > *, .ff-split .opt > *, .ff-sidebar .opt > * { min-width: 0; }
/* Narrow designs: the payment and cash columns take the room they need first, so with bigger text the heading wraps before the amounts do */
.ff-split .opt, .ff-sidebar .opt { grid-template-columns: minmax(min-content, 1fr) auto auto; }
/* ARM lines go under the payment lines: name | payment + ARM | cash to close */
.opts.n1 .o-head, .ff-split .o-head, .ff-sidebar .o-head { grid-column: 1; grid-row: 1 / span 2; }
.opts.n1 .o-lines, .ff-split .o-lines, .ff-sidebar .o-lines { grid-column: 2; grid-row: 1; }
.opts.n1 .o-arm, .ff-split .o-arm, .ff-sidebar .o-arm { grid-column: 2; grid-row: 2; }
.opts.n1 .o-cash, .ff-split .o-cash, .ff-sidebar .o-cash { grid-column: 3; grid-row: 1 / span 2; }
.opts.n1 .o-cash, .ff-split .o-cash, .ff-sidebar .o-cash { border-top: 0; margin-top: 0; padding-top: 0; }
.opts.n1 .o-lines, .ff-split .o-lines, .ff-sidebar .o-lines { padding-top: 13px; }
.ff-split .o-total, .ff-sidebar .o-total { font-size: 25px; }
.ff-split .o-name, .ff-sidebar .o-name { font-size: 13.5px; }
.ff-split .o-lines, .ff-split .o-cash, .ff-split .o-arm, .ff-sidebar .o-lines, .ff-sidebar .o-cash, .ff-sidebar .o-arm { font-size: 9.8px; }
.ff-note { color: var(--text); font-size: 11.5px; font-weight: 600; line-height: 1.4; margin-bottom: 10px !important; }
.fly .ways { margin: 0; }

/* Every finance design is 816 x 1056 (8.5 x 11 in at 96 dpi); the footer sits at the bottom (.foot-abs) */
.ff-showcase, .ff-table, .ff-split, .ff-sidebar, .ff-bold, .ff-classic, .ff-luxe, .ff-simple { height: 1056px; position: relative; width: 816px; }

/* Design 1: Showcase */
.ff-showcase .hero { height: 330px; position: relative; }
.ff-showcase .hero::after { background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,0,0,.62) 100%); content: ""; inset: 0; position: absolute; }
.ff-showcase .addr { bottom: 20px; color: #fff; left: 36px; position: absolute; right: 36px; z-index: 1; }
.ff-showcase .addr h1 { font-family: "DM Serif Display", Georgia, serif; font-size: 42px; font-weight: 400; line-height: 1.02; }
.ff-showcase .addr p { font-size: 14px; font-weight: 600; letter-spacing: .05em; margin-top: 5px; opacity: .92; }
.ff-showcase .band { align-items: center; background: var(--ac); color: var(--onac); display: flex; gap: 20px; justify-content: space-between; padding: 12px 36px; }
.ff-showcase .price span, .ff-showcase .stat span { display: block; font-size: 9px; font-weight: 700; letter-spacing: .14em; opacity: .82; text-transform: uppercase; }
.ff-showcase .price b { font-family: "DM Serif Display", Georgia, serif; font-size: 32px; font-weight: 400; line-height: 1.05; }
.ff-showcase .stats { display: flex; }
.ff-showcase .stat { border-left: 1px solid rgba(255,255,255,.3); padding: 0 16px; }
.ff-showcase .stat:first-child { border-left: 0; }
.ff-showcase .stat b { display: block; font-size: 20px; font-weight: 800; line-height: 1.1; }
.ff-showcase .body { padding: 16px 36px 0; }
.ff-showcase .ways { color: var(--ac); font-family: "DM Serif Display", Georgia, serif; font-size: 27px; font-weight: 400; margin-bottom: 11px; }
.ff-showcase .hl { grid-template-columns: repeat(3, 1fr); margin-top: 14px; }

/* Design 2: Table (loans side by side, line by line) */
.ff-table { padding: 32px 40px 0; }
.ff-table .head { align-items: flex-end; border-bottom: 3px solid var(--ac); display: flex; gap: 20px; justify-content: space-between; padding-bottom: 12px; }
.ff-table .ways { color: var(--ac); font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.ff-table h1 { font-family: "Archivo", Arial, sans-serif; font-size: 30px; font-weight: 800; line-height: 1.05; margin-top: 4px; }
.ff-table .city { color: var(--soft-text); font-size: 13px; margin-top: 3px; }
.ff-table .price { text-align: right; }
.ff-table .price span { color: var(--fine); display: block; font-size: 9.5px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.ff-table .price b { font-family: "Archivo", Arial, sans-serif; font-size: 32px; font-weight: 800; white-space: nowrap; }
.ff-table .top2 { display: grid; gap: 22px; grid-template-columns: 300px minmax(0, 1fr); margin-top: 16px; }
.ff-table .photo { height: 180px; }
.ff-table .stats { display: flex; gap: 22px; margin-bottom: 12px; }
.ff-table .stat b { display: block; font-family: "Archivo", Arial, sans-serif; font-size: 22px; font-weight: 800; line-height: 1.1; }
.ff-table .stat span { color: var(--fine); font-size: 9px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.ff-table .hl { grid-template-columns: 1fr 1fr; }
.cmp { border-collapse: collapse; font-size: 12.5px; margin-top: 18px; width: 100%; }
.cmp th, .cmp td { border-bottom: 1px solid var(--rule); padding: 5px 8px; text-align: right; }
.cmp th:first-child { color: var(--soft-text); font-weight: 600; padding-left: 0; text-align: left; }
.cmp thead th { border-bottom: 2px solid var(--ac); font-size: 13px; font-weight: 800; line-height: 1.2; vertical-align: bottom; }
.cmp thead .o-num { display: block; margin-bottom: 2px; }
.cmp td { font-weight: 600; }
.cmp td small { color: var(--fine); display: block; font-size: 9px; font-weight: 500; }
.cmp tr.tot th, .cmp tr.tot td { border-bottom: 2px solid var(--text); border-top: 2px solid var(--text); color: var(--text); font-size: 15px; font-weight: 800; }
.cmp tr.gap th, .cmp tr.gap td { padding-top: 14px; }

/* Design 3: Split (photos left, loans stacked right) */
.ff-split { display: grid; grid-template-columns: 290px minmax(0, 1fr); grid-template-rows: 860px; }
.ff-split .col { display: grid; gap: 5px; grid-template-rows: 1fr 1fr 1fr; height: 860px; overflow: hidden; }
.ff-split .col > img { min-height: 0; }
.ff-split .info { background: var(--tint); display: flex; flex-direction: column; gap: 12px; min-width: 0; padding: 30px 30px 16px; }
.ff-split h1 { font-family: "Fraunces", Georgia, serif; font-size: 32px; font-weight: 600; letter-spacing: -.01em; line-height: 1.04; text-wrap: balance; }
.ff-split .city { color: var(--soft-text); font-size: 12px; font-weight: 600; margin-top: 5px; }
.ff-split .price span { color: var(--fine); display: block; font-size: 9.5px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.ff-split .price b { color: var(--ac); font-family: "Fraunces", Georgia, serif; font-size: 34px; font-weight: 700; line-height: 1; }
.ff-split .stats { border-bottom: 1px solid color-mix(in srgb, var(--ac) 30%, #fff); border-top: 1px solid color-mix(in srgb, var(--ac) 30%, #fff); display: flex; gap: 26px; padding: 8px 0; }
.ff-split .stat b { display: block; font-size: 17px; font-weight: 800; line-height: 1.1; }
.ff-split .stat span { color: var(--fine); font-size: 8.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.ff-split .ways { color: var(--ac); font-family: "Fraunces", Georgia, serif; font-size: 21px; font-style: italic; font-weight: 400; }
.ff-split .opt { background: #fff; }

/* Design 4: Sidebar (accent rail with the home, photo and loans on the right) */
.ff-sidebar { display: grid; grid-template-columns: 262px minmax(0, 1fr); grid-template-rows: 860px; }
.ff-sidebar .rail { background: var(--ac); color: var(--onac); display: flex; flex-direction: column; gap: 16px; padding: 34px 24px 20px; }
.ff-sidebar .ways { font-family: "Archivo", Arial, sans-serif; font-size: 36px; font-weight: 800; letter-spacing: -.02em; line-height: .95; text-transform: uppercase; }
.ff-sidebar .addr { border-bottom: 1px solid rgba(255,255,255,.35); border-top: 1px solid rgba(255,255,255,.35); padding: 12px 0; }
.ff-sidebar .addr h1 { font-size: 19px; font-weight: 800; line-height: 1.2; }
.ff-sidebar .addr .city { font-size: 11.5px; margin-top: 3px; opacity: .88; }
.ff-sidebar .price span { display: block; font-size: 9.5px; font-weight: 800; letter-spacing: .16em; opacity: .8; text-transform: uppercase; }
.ff-sidebar .price b { font-family: "Archivo", Arial, sans-serif; font-size: 30px; font-weight: 800; }
.ff-sidebar .stats { display: flex; gap: 18px; }
.ff-sidebar .stat b { display: block; font-size: 18px; font-weight: 800; line-height: 1.1; }
.ff-sidebar .stat span { font-size: 8.5px; font-weight: 700; letter-spacing: .12em; opacity: .82; text-transform: uppercase; }
.ff-sidebar .hl { grid-template-columns: 1fr; }
.ff-sidebar .hl li { font-size: 11px; }
.ff-sidebar .hl li::before { background: #fff; }
.ff-sidebar .railqr { align-items: center; background: #fff; color: var(--text); display: flex; gap: 10px; margin-top: auto; padding: 9px; }
.ff-sidebar .railqr p { font-size: 9.5px; font-weight: 700; line-height: 1.35; }
.ff-sidebar .right { display: flex; flex-direction: column; gap: 12px; min-width: 0; padding-bottom: 12px; }
.ff-sidebar .ph1 { flex: none; height: 300px; }
.ff-sidebar .opts { gap: 10px; padding: 0 22px; }

/* Design 5: Bold */
.ff-bold .top { align-items: center; background: var(--ac); color: var(--onac); display: flex; gap: 20px; justify-content: space-between; min-height: 120px; padding: 16px 36px; }
.ff-bold .ways { font-family: "Archivo", Arial, sans-serif; font-size: 40px; font-weight: 800; letter-spacing: -.02em; line-height: .95; max-width: 470px; text-transform: uppercase; }
.ff-bold .price { text-align: right; }
.ff-bold .price span { display: block; font-size: 10px; font-weight: 800; letter-spacing: .18em; opacity: .85; text-transform: uppercase; }
.ff-bold .price b { font-family: "Archivo", Arial, sans-serif; font-size: 36px; font-weight: 800; }
.ff-bold .photo { height: 270px; }
.ff-bold .strip { align-items: center; border-bottom: 6px solid var(--ac); display: flex; gap: 20px; justify-content: space-between; padding: 12px 36px; }
.ff-bold h1 { font-family: "Archivo", Arial, sans-serif; font-size: 25px; font-weight: 800; line-height: 1.05; }
.ff-bold .city { color: var(--soft-text); font-size: 12px; font-weight: 600; margin-top: 3px; }
.ff-bold .stats { display: flex; }
.ff-bold .stat { border-left: 2px solid var(--rule); padding: 0 13px; text-align: center; }
.ff-bold .stat:first-child { border-left: 0; }
.ff-bold .stat b { display: block; font-family: "Archivo", Arial, sans-serif; font-size: 19px; font-weight: 800; line-height: 1.05; }
.ff-bold .stat span { color: var(--fine); font-size: 8.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.ff-bold .opts { padding: 16px 36px 0; }
.ff-bold .opt { background: #fff; border: 1px solid var(--rule); border-top: 5px solid var(--ac); }
.ff-bold .o-name { font-family: "Archivo", Arial, sans-serif; }

/* Design 6: Classic (framed, serif) */
.ff-classic { padding: 28px; }
.ff-classic .frame { border: 1.5px solid var(--ac); height: 100%; outline: .5px solid var(--ac); outline-offset: -6px; padding: 26px 34px 0; text-align: center; }
.ff-classic .ways { color: var(--ac); font-family: "Cormorant Garamond", Georgia, serif; font-size: 24px; font-style: italic; font-weight: 500; }
.ff-classic h1 { font-family: "Cormorant Garamond", Georgia, serif; font-size: 34px; font-weight: 600; letter-spacing: .05em; line-height: 1.05; margin-top: 2px; text-transform: uppercase; }
.ff-classic .city { color: var(--soft-text); font-size: 10.5px; font-weight: 700; letter-spacing: .26em; margin-top: 5px; text-transform: uppercase; }
.ff-classic .photo { height: 240px; margin-top: 14px; }
.ff-classic .pr { align-items: baseline; display: flex; gap: 10px; justify-content: center; margin-top: 10px; }
.ff-classic .pr span { color: var(--soft-text); font-family: "Cormorant Garamond", Georgia, serif; font-size: 19px; font-style: italic; }
.ff-classic .pr b { color: var(--ac); font-family: "Cormorant Garamond", Georgia, serif; font-size: 34px; font-weight: 700; }
.ff-classic .stats { display: flex; flex-wrap: wrap; font-size: 10.5px; font-weight: 700; justify-content: center; letter-spacing: .14em; margin-top: 2px; text-transform: uppercase; }
.ff-classic .stats span + span::before { color: var(--ac); content: "◆"; font-size: 7px; margin: 0 12px; vertical-align: 2px; }
.ff-classic .opts { margin-top: 16px; text-align: left; }
.ff-classic .opt { background: #fff; border: .5px solid var(--ac); border-top: 3px double var(--ac); }
.ff-classic .o-name { font-family: "Cormorant Garamond", Georgia, serif; font-size: 18px; font-weight: 700; }
.ff-classic .o-total { font-family: "Cormorant Garamond", Georgia, serif; font-size: 32px; font-weight: 700; }
.ff-classic .foot-abs { bottom: 36px; left: 46px; padding: 0; right: 46px; }
.ff-classic .foot-abs .contacts { border-top-color: var(--ac); }

/* Design 7: Luxe (dark paper, best from a print shop) */
.ff-luxe { --paper: #17191e; --text: #efe9dd; --soft-text: #c9c2b4; --fine: #9a9488; --rule: #3a3d44; --gold: color-mix(in srgb, var(--ac) 35%, #d9c38f);
  background: var(--paper); color: var(--text); padding: 32px 40px 0; }
.ff-luxe .pre { color: var(--gold); font-size: 10px; font-weight: 700; letter-spacing: .42em; text-align: center; text-transform: uppercase; }
.ff-luxe h1 { font-family: "Cormorant Garamond", Georgia, serif; font-size: 38px; font-weight: 500; letter-spacing: .1em; line-height: 1.05; margin-top: 8px; text-align: center; text-transform: uppercase; }
.ff-luxe .city { color: var(--soft-text); font-size: 10.5px; letter-spacing: .3em; margin-top: 6px; text-align: center; text-transform: uppercase; }
.ff-luxe .photo { border: 1px solid var(--gold); height: 270px; margin-top: 16px; padding: 6px; }
.ff-luxe .row3 { align-items: center; border-bottom: 1px solid var(--rule); display: flex; justify-content: space-between; margin: 12px 0 16px; padding-bottom: 12px; }
.ff-luxe .pr { color: var(--gold); font-family: "Cormorant Garamond", Georgia, serif; font-size: 34px; font-weight: 600; }
.ff-luxe .stats { display: flex; gap: 22px; }
.ff-luxe .stat { text-align: center; }
.ff-luxe .stat b { display: block; font-family: "Cormorant Garamond", Georgia, serif; font-size: 23px; font-weight: 600; line-height: 1; }
.ff-luxe .stat span { color: var(--fine); font-size: 8px; letter-spacing: .2em; text-transform: uppercase; }
.ff-luxe .opt { background: rgba(255,255,255,.04); border: 1px solid var(--gold); border-top-width: 3px; }
.ff-luxe .o-num, .ff-luxe .o-sub { color: var(--gold); }
.ff-luxe .o-name { font-family: "Cormorant Garamond", Georgia, serif; font-size: 18px; font-weight: 700; }
.ff-luxe .o-cash, .ff-luxe .o-cash > .o-tc { border-top-color: var(--rule); }
.ff-luxe .opts-empty { border-color: var(--rule); }
.ff-luxe .ff-note { color: var(--text); }
.ff-luxe .who .face { background: transparent; border-color: var(--gold); color: var(--gold); }
.ff-luxe .who .role { color: var(--gold); }
.ff-luxe .qrbox p span { color: var(--gold) !important; }
.ff-luxe .qr { padding: 3px; }
.ff-luxe .foot-abs { padding: 0 40px 16px; }
.ff-luxe .foot-abs .contacts { border-top-color: var(--rule); }

/* Design 8: No photo (big type, little ink) */
.ff-simple { padding: 40px 44px 0; }
.ff-simple .ways { font-family: "Archivo", Arial, sans-serif; font-size: 48px; font-weight: 800; letter-spacing: -.02em; line-height: 1; }
.ff-simple .head { align-items: flex-end; border-bottom: 3px solid var(--ac); display: flex; gap: 20px; justify-content: space-between; margin-top: 14px; padding-bottom: 10px; }
.ff-simple h1 { font-size: 24px; font-weight: 800; line-height: 1.1; }
.ff-simple .city { color: var(--soft-text); font-size: 14px; margin-top: 2px; }
.ff-simple .pr { color: var(--ac); font-size: 34px; font-weight: 800; white-space: nowrap; }
.ff-simple .stats { display: flex; gap: 28px; margin: 12px 0; }
.ff-simple .stat b { font-size: 20px; font-weight: 800; margin-right: 5px; }
.ff-simple .stat span { color: var(--soft-text); font-size: 13px; }
.ff-simple .hl { grid-template-columns: repeat(3, 1fr); margin-bottom: 16px; }
.ff-simple .hl li { font-size: 12.5px; }
.ff-simple .hl li::before { background: none; border: 2px solid var(--ac); border-radius: 50%; height: 9px; width: 9px; }
.ff-simple .opts { gap: 16px; margin-top: 14px; }
.ff-simple .opt { background: #fff; border: 2px solid var(--text); border-top-width: 6px; border-top-color: var(--ac); padding: 16px 16px 18px; }
.ff-simple .o-num { font-size: 10px; }
.ff-simple .o-name { font-size: 17px; }
.ff-simple .o-rate { font-size: 10.5px; }
.ff-simple .o-total { font-size: 38px; margin: 8px 0 10px; }
.ff-simple .o-lines, .ff-simple .o-cash, .ff-simple .o-arm { font-size: 13px; gap: 5px; }
.ff-simple .o-cash { margin-top: 12px; padding-top: 10px; }
.ff-simple .o-sub { font-size: 9.5px; }
.ff-simple .o-cash > .o-tc { font-size: 15px; padding-top: 6px; }

/* Split and Sidebar: my note goes under the loans in the right column, clear of the photos and the rail */
.ff-split .info .ff-note, .ff-sidebar .right .ff-note { margin: auto 0 0 !important; }
.ff-sidebar .right .ff-note { padding: 0 22px; }

/* A flyer whose loans would reach the contact details (JS tighten): the loans' lines close up */
.ff-tight .o-lines, .ff-tight .o-cash, .ff-tight .o-arm { gap: 0; font-size: 9.8px; }
.ff-tight .o-cash { margin-top: 5px; padding-top: 5px; }
.ff-tight .o-arm { margin-top: 4px; }
.ff-tight .o-total { margin-bottom: 2px; }
.ff-tight table.cmp td, .ff-tight table.cmp th { padding-bottom: 2px; padding-top: 2px; }
