/* ===== Private Credit listing template =====
   Layers the softened palette over the shared .re-listing shell, then adds the
   credit-specific components. Loaded after re-listing.css.
   Deliberately restrained: no oversized yield figures, no trading-style red and
   green, and security is never styled to imply safety. */

.pc-listing{
  --re-black:#171717;
  --re-charcoal:#242424;
  --re-body:#565652;
  --re-secondary:#6B6B67;
  --re-mute:#8B8B85;
  --re-line:#DEDED8;
  --re-light:#EEEEEA;
  --re-sec:#F5F5F1;
  --re-bg:#FAFAF7;
  --re-surface:#FFFFFF;
  --re-yellow:#F4C928;
  --re-yellow-h:#DDB51F;
  --re-yellow-soft:#FFF5C7;
  --re-yellow-pale:#FFFAE8;
  --re-pos:#287A50;
  --re-pos-soft:#E8F3EC;
  --re-warn:#A66A18;
  --re-warn-soft:#FBF1DF;
  --re-err:#A8423A;
  --re-err-soft:#F8E9E7;
  background:var(--re-bg);
  color:var(--re-body);
}

.pc-listing .pc-listing-layout{display:grid;grid-template-columns:minmax(0,1fr) 384px;gap:32px;}
@media (max-width:1100px){.pc-listing .pc-listing-layout{grid-template-columns:1fr;}}

.pc-listing .re-section{background:var(--re-surface);border:1px solid var(--re-line);border-radius:12px;padding:28px 30px;margin-bottom:18px;}
.pc-listing .re-h2{color:var(--re-black);font-size:22px;}
.pc-listing .re-h3{color:var(--re-black);font-size:15.5px;margin-top:22px;}
.pc-listing .re-section-intro,.pc-listing .re-enquire-sub,.pc-listing .re-consent{color:var(--re-secondary);}
.pc-listing .re-prose{color:var(--re-body);}
.pc-listing .re-fact span{color:var(--re-mute);}
.pc-listing .re-fact b,.pc-listing .re-title,.pc-listing .re-metric-v{color:var(--re-black);}
.pc-listing .re-metric-l{color:var(--re-mute);}
.pc-listing .re-badge{background:var(--re-light);color:var(--re-charcoal);border:1px solid var(--re-line);}
.pc-listing .re-badge-status{background:var(--re-pos-soft);color:var(--re-pos);border-color:#CBE4D6;}
.pc-listing .pc-badge-elig{background:var(--re-warn-soft);color:var(--re-warn);border-color:#EBD8B4;}
.pc-listing .pc-badge-impaired{background:var(--re-err-soft);color:var(--re-err);border-color:#E7C9C5;}
.pc-listing .re-btn-primary{background:var(--re-yellow);color:#171717;}
.pc-listing .re-btn-primary:hover{background:var(--re-yellow-h);}

/* Funding status panel. Stages are listed, never merged into one bar. */
.pc-status-panel{background:var(--re-surface);border:1px solid var(--re-line);border-radius:12px;padding:18px 22px;margin-bottom:18px;}
.pc-status-head{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:12px;}
.pc-status-chip{display:inline-flex;align-items:center;font-size:12.5px;font-weight:700;padding:5px 12px;border-radius:999px;background:var(--re-pos-soft);color:var(--re-pos);}
.pc-status-chip.is-impaired{background:var(--re-err-soft);color:var(--re-err);}
.pc-status-elig{font-size:12.5px;font-weight:700;padding:5px 12px;border-radius:999px;background:var(--re-warn-soft);color:var(--re-warn);}
.pc-status-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px 26px;list-style:none;margin:0;padding:0;}
.pc-status-list li{display:flex;flex-direction:column;gap:2px;}
.pc-status-list span{font-size:11.5px;text-transform:uppercase;letter-spacing:.05em;color:var(--re-mute);}
.pc-status-list b{font-size:14px;color:var(--re-black);}
.pc-status-note{font-size:12px;line-height:1.6;color:var(--re-mute);margin:12px 0 0;}

/* Payment-fraud warning. Deliberately prominent: changed payment instructions
   are the highest-consequence failure mode in private credit. */
.pc-fraud-note{display:flex;gap:12px;align-items:flex-start;background:var(--re-warn-soft);border:1px solid #EBD8B4;border-radius:10px;padding:14px 18px;margin:0 0 18px;}
.pc-fraud-note i{font-size:18px;color:var(--re-warn);flex-shrink:0;margin-top:1px;}
.pc-fraud-note p{font-size:13px;line-height:1.6;color:var(--re-black);margin:0;}

.pc-impaired-banner{display:flex;gap:12px;align-items:flex-start;background:var(--re-err-soft);border:1px solid #E7C9C5;border-radius:10px;padding:16px 20px;margin-bottom:18px;}
.pc-impaired-banner i{color:var(--re-err);font-size:20px;flex-shrink:0;margin-top:1px;}
.pc-impaired-banner b{display:block;font-size:14.5px;color:var(--re-err);margin-bottom:3px;}
.pc-impaired-banner p{font-size:13.5px;line-height:1.55;color:var(--re-black);margin:0;}
.pc-closed-banner{display:flex;gap:12px;align-items:flex-start;background:var(--re-light);border:1px solid var(--re-line);border-radius:10px;padding:14px 18px;margin-bottom:18px;}
.pc-closed-banner i{color:var(--re-secondary);font-size:18px;flex-shrink:0;margin-top:1px;}
.pc-closed-banner p{font-size:13.5px;line-height:1.55;color:var(--re-black);margin:0;}

.pc-listing .re-eligibility{display:flex;gap:12px;align-items:flex-start;background:var(--re-light);border:1px solid var(--re-line);border-radius:10px;padding:14px 18px;margin-bottom:18px;}
.pc-listing .re-eligibility.is-restricted{background:var(--re-warn-soft);border-color:#EBD8B4;}
.pc-listing .re-eligibility i{font-size:18px;color:var(--re-warn);flex-shrink:0;margin-top:1px;}
.pc-listing .re-eligibility b{display:block;font-size:14px;color:var(--re-black);margin-bottom:3px;}
.pc-listing .re-eligibility p{font-size:13px;line-height:1.55;color:var(--re-body);margin:0;}

.pc-gate{display:flex;gap:14px;align-items:flex-start;background:var(--re-sec);border:1px dashed var(--re-line);border-radius:10px;padding:18px 20px;margin-top:16px;}
.pc-gate i{font-size:19px;color:var(--re-mute);flex-shrink:0;margin-top:2px;}
.pc-gate p{font-size:13.5px;line-height:1.6;color:var(--re-body);margin:0 0 12px;}

/* LVR block. Sized to be readable, not to shout a yield. */
.pc-lvr{display:flex;align-items:baseline;gap:14px;flex-wrap:wrap;background:var(--re-sec);border:1px solid var(--re-line);border-radius:10px;padding:16px 20px;margin-bottom:16px;}
.pc-lvr-label{font-size:11.5px;font-weight:700;text-transform:uppercase;letter-spacing:.05em;color:var(--re-mute);}
.pc-lvr-value{font-size:24px;font-weight:800;letter-spacing:-0.02em;color:var(--re-black);}
.pc-lvr-basis{font-size:12.5px;color:var(--re-secondary);}

/* Capital stack. Widths are proportional to the security value so an investor
   can see what ranks above and below their position. */
.pc-stack{margin-bottom:20px;}
.pc-stack-value{font-size:12.5px;color:var(--re-mute);margin:0 0 10px;}
.pc-stack-value b{color:var(--re-black);}
.pc-stack-row{display:flex;align-items:center;justify-content:space-between;gap:14px;min-width:180px;background:var(--re-light);border:1px solid var(--re-line);border-radius:8px;padding:11px 16px;margin-bottom:6px;}
.pc-stack-row.is-investor{background:var(--re-yellow-pale);border-color:#EBDDA8;}
.pc-stack-label{font-size:13.5px;font-weight:700;color:var(--re-black);}
.pc-stack-label em{font-style:normal;font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.04em;color:var(--re-warn);margin-left:6px;}
.pc-stack-amt{font-size:13.5px;color:var(--re-secondary);white-space:nowrap;}

/* Waterfalls */
.pc-waterfall{list-style:none;margin:0 0 8px;padding:0;counter-reset:wf;}
.pc-waterfall li{display:flex;gap:14px;align-items:flex-start;padding:12px 0;border-bottom:1px solid var(--re-line);}
.pc-waterfall li:last-child{border-bottom:0;}
.pc-wf-rank{display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;border-radius:999px;background:var(--re-light);color:var(--re-secondary);font-size:12px;font-weight:700;flex-shrink:0;}
.pc-waterfall.is-enforcement .pc-wf-rank{background:var(--re-warn-soft);color:var(--re-warn);}
.pc-waterfall b{font-size:14px;color:var(--re-black);}
.pc-waterfall p{font-size:13px;line-height:1.55;color:var(--re-body);margin:3px 0 0;}

/* Drawdown */
.pc-drawdown{margin-bottom:18px;}
.pc-drawdown-bar{height:10px;border-radius:999px;background:var(--re-light);overflow:hidden;margin-bottom:12px;}
.pc-drawdown-bar span{display:block;height:100%;background:var(--re-yellow);}
.pc-drawdown-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px 24px;list-style:none;margin:0;padding:0;}
.pc-drawdown-list li{display:flex;flex-direction:column;gap:2px;}
.pc-drawdown-list span{font-size:11.5px;text-transform:uppercase;letter-spacing:.05em;color:var(--re-mute);}
.pc-drawdown-list b{font-size:14px;color:var(--re-black);}

/* Forecast flag and timeline states */
.pc-forecast-flag{display:inline-flex;align-items:center;gap:9px;background:var(--re-warn-soft);border:1px solid #EBD8B4;border-radius:8px;padding:9px 15px;font-size:13px;font-weight:700;color:var(--re-warn);margin-bottom:12px;}
.pc-tl-state{display:inline-block;font-size:10.5px;font-weight:700;text-transform:uppercase;letter-spacing:.04em;padding:2px 8px;border-radius:999px;background:var(--re-light);color:var(--re-secondary);margin-left:8px;vertical-align:middle;}
.pc-listing .re-tl-item.is-complete .pc-tl-state{background:var(--re-pos-soft);color:var(--re-pos);}
.pc-listing .re-tl-item.is-current .pc-tl-state{background:var(--re-yellow-soft);color:var(--re-warn);}

.pc-listing .re-note{background:var(--re-sec);border-color:var(--re-line);color:var(--re-body);}
.pc-listing .re-risk-lead{background:var(--re-warn-soft);border:1px solid #EBD8B4;border-radius:10px;padding:14px 18px;font-size:14px;line-height:1.6;color:var(--re-black);margin-bottom:18px;}
.pc-listing .re-flow-node{background:var(--re-sec);border:1px solid var(--re-line);color:var(--re-black);}
.pc-listing .re-flow-step i{color:var(--re-mute);}
.pc-listing .re-secnav{background:rgba(250,250,247,.94);border-bottom:1px solid var(--re-line);}
.pc-listing .re-enquire{background:var(--re-surface);border:1px solid var(--re-line);border-radius:12px;}
.pc-listing .re-enquire-h,.pc-listing .re-enquire-stat b{color:var(--re-black);}
.pc-listing .re-enquire-stat span{color:var(--re-mute);}
.pc-listing .re-table th{background:var(--re-sec);color:var(--re-secondary);}
.pc-listing .re-table td{border-color:var(--re-line);color:var(--re-body);}
.pc-listing .re-table b{color:var(--re-black);}
.pc-listing .re-table-wrap{border-color:var(--re-line);overflow-x:auto;}
.pc-listing .re-table-wrap:focus-visible{outline:2px solid var(--re-yellow);outline-offset:2px;}
.pc-listing .re-doc{border-color:var(--re-line);}
.pc-listing .re-doc-access{background:var(--re-light);color:var(--re-secondary);}
.pc-listing .re-similar{background:var(--re-sec);}
.pc-listing .re-simcard{background:var(--re-surface);border-color:var(--re-line);}
.pc-listing .re-disclosure{background:var(--re-light);}

@media (max-width:900px){
  .pc-listing .re-section{padding:22px 18px;}
  .pc-listing .re-metrics{grid-template-columns:repeat(auto-fit,minmax(130px,1fr));}
  .pc-lvr-value{font-size:20px;}
  .pc-stack-row{min-width:100%;}
}
@media (prefers-reduced-motion:reduce){
  .pc-listing *{scroll-behavior:auto !important;transition:none !important;}
}
