/* The fee ledger and its source document share one surface. */
.tc-ledger {
  --tc-metal: #c8ad83;
  --tc-chalk: #f4ebd9;
  --tc-ink: #171714;
  --tc-rule: #47463e;
  --tc-muted: #cec7b7;
  color: var(--tc-chalk);
  background: #141411;
  border-bottom-color: #32332a;
}
.tc-settlement-layout { padding-block: clamp(46px, 6vw, 96px); }
.settlement-intro {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  align-items: end;
  gap: clamp(32px, 6vw, 96px);
  margin-bottom: clamp(25px, 3.1vw, 52px);
}
.tc-ledger .settlement-intro .tc-overline { color: var(--tc-metal); }
.settlement-intro h2 {
  color: var(--tc-chalk);
  font: 400 clamp(45px, 5.25vw, 86px)/1.02 Ivar, Georgia, serif;
  letter-spacing: -.045em;
  margin: 13px 0 0;
}
.settlement-intro h2 em, .settlement-ledger h3 em { color: #c4b295; }
.settlement-ledger h3 em { display: inline-block; }
.tc-ledger .settlement-intro > p { color: #d0c8ba; font: 400 clamp(15px, 1.12vw, 18px)/1.6 Inter, Arial, sans-serif; max-width: 47ch; margin: 0 0 3px; }
.tc-ledger .tc-account-desk {
  padding: 0;
  background: #242521;
  border: 1px solid #56544a;
  border-radius: 15px;
  box-shadow: 0 18px 52px -34px #000;
}
.tc-ledger .account-bar {
  padding: 12px clamp(16px, 2.65vw, 42px);
  color: #e8dfcb;
  background: #1a1b17;
  border-radius: 14px 14px 0 0;
  border-bottom-color: #4b4b41;
}
.tc-ledger .account-bar img { width: 19px; height: 18px; }
.tc-ledger .account-bar span:last-child { color: #cfc7b7; }
.settlement-spread { display: grid; grid-template-columns: minmax(210px, .65fr) minmax(0, 1.35fr); }
.settlement-ledger, .settlement-window { min-width: 0; }
.settlement-ledger {
  display: flex;
  flex-flow: column;
  justify-content: center;
  padding: clamp(22px, 3.6vw, 58px);
  background: #1d1f1b;
  border-right: 1px solid #46473e;
  border-end-start-radius: 14px;
}
.settlement-ledger[hidden] { display: none; }
.settlement-spread:has(.settlement-ledger[hidden]) { grid-template-columns: 1fr; }
.tc-story .settlement-eyebrow {
  color: #ceb994;
  font: 550 10px/1.55 Inter, Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: .12em;
  margin: 0;
}
.tc-ledger .settlement-ledger h3 {
  color: var(--tc-chalk);
  font: 400 clamp(31px, 3.05vw, 52px)/1.04 Ivar, Georgia, serif;
  letter-spacing: -.035em;
  margin: 12px 0 5px;
  max-width: 12ch;
}
.tc-story .ledger-address { color: var(--tc-muted); font: italic 14px/1.45 Georgia, serif; margin: 0; }
.ledger-figures { margin: clamp(22px, 3.1vw, 48px) 0 0; }
.ledger-figures > div { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; border-top: 1px solid #43453b; padding: 10px 0; }
.ledger-figures > div:first-child { display: grid; grid-template-columns: 1fr; gap: 3px; padding: 0 0 15px; border: 0; }
.ledger-figures dt { color: var(--tc-muted); font: 400 12px/1.4 Inter, Arial, sans-serif; }
.ledger-figures dd { margin: 0; color: var(--tc-chalk); font: 400 19px/1.05 Ivar, Georgia, serif; }
.ledger-figures .ledger-amount { font-size: clamp(49px, 5.3vw, 86px); letter-spacing: -.05em; font-variant-numeric: lining-nums; }
.tc-story .ledger-entry {
  position: relative;
  margin: 0;
  padding: 14px 0 0 13px;
  border-top: 1px solid #43453b;
  color: #d2c2a7;
  font: 450 12px/1.45 Inter, Arial, sans-serif;
}
.ledger-entry::before { content: ''; width: 5px; height: 5px; border-radius: 50%; position: absolute; inset: 20px auto auto 0; background: var(--tc-metal); }
.tc-ledger [data-ledger-state="paid"] .ledger-entry { color: #c2cead; }
.tc-ledger [data-ledger-state="paid"] .ledger-entry::before { background: #b4c79e; }
.tc-ledger .ledger-link, .tc-ledger .receipt-actions a {
  width: fit-content;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #eed3a5;
  font: 500 12px/1.4 Inter, Arial, sans-serif;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: #88765d;
}
.tc-ledger .ledger-link { margin-top: 12px; }
.settlement-ledger:not([data-ledger-state="paid"]) .ledger-link { display: none; }
.settlement-window { padding: 0 clamp(18px, 3.3vw, 53px) clamp(16px, 2.2vw, 35px); align-self: start; }
.tc-ledger .account-tabs { gap: clamp(8px, 2.1vw, 40px); border-bottom-color: #57584e; }
.tc-ledger .account-tabs a { padding: 10px 1px; min-height: 47px; color: #cac4b7; }
.tc-ledger .account-tabs a[aria-selected="true"] { color: #fff1d8; border-color: #dbc08e; }
.tc-ledger .account-view { padding: clamp(18px, 2.3vw, 37px) 0 0; }
.tc-ledger .account-view:not(:last-child):not([role=tabpanel]) { padding-bottom: 15px; }
.tc-ledger .account-view h3 { color: #f5edde; font-size: clamp(34px, 3.6vw, 57px); }
.tc-ledger .account-view h3 em { color: #d2ba92; }
.statement-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.statement-tag { padding: 3px 8px; border: 1px solid #686354; border-radius: 3px; color: #e4d6bf; font: 450 11px/1.5 Inter, Arial, sans-serif; }
.tc-ledger .account-facts dd { color: #f2e8d6; }
.tc-ledger .invoice-actions { margin: 17px 0 0; }
.tc-ledger .invoice-actions select { border-color: #747062; background: #22231f; }
.tc-ledger .invoice-actions button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; }
.tc-ledger .invoice-actions button, .tc-ledger .account-action-row button { border-radius: 3px; }
.tc-ledger .account-letter { background: #292c26; padding: clamp(14px, 1.65vw, 23px); border-color: #b59d75; }
.tc-ledger .account-action-row p strong { font-size: 12px; font-weight: 490; color: #e3d7c1; }
.tc-ledger .tc-paper {
  position: relative;
  color: #312c24;
  border-radius: 4px 4px 0 0;
  padding: clamp(15px, 1.8vw, 27px);
  background: #f0e7d6;
  box-shadow: 0 9px 22px -13px #000;
}
.tc-ledger .tc-paper::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -3px;
  height: 4px;
  background: linear-gradient(135deg, #f0e7d6 25%, transparent 25%) -3px 0 / 6px 6px repeat-x,
              linear-gradient(225deg, #f0e7d6 25%, transparent 25%) -3px 0 / 6px 6px repeat-x;
}
.tc-ledger .tc-paper h3 { color: #332e25; margin: 13px 0; font-size: clamp(31px, 2.85vw, 47px); }
.tc-ledger .tc-paper .account-facts dd { color: #383224; }
.tc-ledger .tc-paper .account-facts div:last-child dd { font: 500 clamp(23px, 2.2vw, 35px)/1.1 Ivar, Georgia, serif; }
.tc-ledger .receipt-seal { gap: 5px; background: #e2e6d2; border-color: #737f61; color: #34412c; transform-origin: center; }
.receipt-seal i { width: 9px; height: 5px; border: solid currentColor; border-width: 0 0 1.5px 1.5px; transform: rotate(-45deg); margin: -2px 1px 0 0; }
.receipt-actions { display:flex; flex-wrap:wrap; justify-content:space-between; gap:4px 16px; margin-top:4px; }
.tc-ledger .income-chart { border-bottom: 1px solid #4a4b41; padding-bottom: 13px; }
.tc-ledger .income-bar { transform-origin: bottom; }
.tc-ledger .tc-tour-guide { display: block; text-align: right; padding: 0 clamp(18px, 3.3vw, 53px) 12px; margin: 0; color: #d1c6b3; }
.tc-ledger .tc-tour-guide:empty { display:none; }
@media (max-width: 920px) {
  .settlement-intro { gap: 20px; grid-template-columns: minmax(0,1.1fr) minmax(0,1fr); }
  .settlement-spread { grid-template-columns: minmax(190px,.66fr) minmax(0,1.34fr); }
  .settlement-ledger { padding: 21px; }
  .settlement-window { padding-inline: 19px; }
}
@media (max-width: 700px) {
  .tc-settlement-layout { width: calc(100% - 36px); }
  .settlement-intro { display:block; }
  .tc-ledger .settlement-intro > p { margin-top: 14px; }
  .settlement-spread { display:flex; flex-direction:column; }
  .settlement-window { width: 100%; padding: 0 16px 14px; }
  .settlement-ledger {
    order: 1;
    padding: 13px 16px 6px;
    border: 0;
    border-top: 1px solid #47483e;
    border-radius: 0 0 14px 14px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 5px 6px;
  }
  .tc-ledger .settlement-ledger h3 { grid-column: 1; font-size: 22px; max-width:none; margin:0; }
  .tc-ledger .settlement-ledger h3 em { color:inherit; }
  .ledger-address { display:none; }
  .ledger-figures { grid-column: 1/-1; display:grid; grid-template-columns: 1fr 1fr 1fr; gap:10px; margin: 5px 0 0; }
  .ledger-figures > div, .ledger-figures > div:first-child { display:block; padding:7px 0 5px; border-top:1px solid #43453b; }
  .ledger-figures dt { font-size: 10.5px; }
  .ledger-figures dd, .ledger-figures .ledger-amount { font-size:clamp(20px,5vw,26px); margin:3px 0; }
  .tc-story .ledger-entry { grid-column: 1/-1; border:0; margin:0; padding-top:0; }
  .ledger-entry::before { top:6px; }
  .tc-ledger .ledger-link { grid-column: 2; grid-row: 1/3; align-self: center; margin:0; min-height:40px; }
  .tc-ledger .account-tabs { justify-content: space-between; gap: 6px; }
  .tc-ledger .account-tabs a { font-size: 12px; }
  .tc-ledger .account-bar { padding-inline: 16px; }
  .tc-ledger .account-view { padding-top: 14px; }
  .tc-ledger .invoice-actions { gap: 6px; }
  .tc-ledger .tc-tour-guide { padding: 4px 16px 8px; background:#1d1f1b; border-radius:0 0 14px 14px; }
}
@media (max-width:380px) {
  .settlement-window { padding-inline:13px; }
  .tc-ledger .account-bar span:last-child { font-size:10.5px; }
  .tc-ledger .invoice-actions label { flex-basis:100%; }
  .tc-ledger .invoice-actions button { padding-inline:9px; }
  .tc-ledger .settlement-ledger { padding-inline:13px; }
  .tc-ledger .settlement-ledger h3 { font-size:20px; }
  .tc-ledger .ledger-link { font-size:11px; }
}
@media (prefers-reduced-motion:no-preference) {
  .tc-ledger .account-view:not([hidden]) { animation: tc-account-reveal .2s ease-out both; }
  @keyframes tc-account-reveal { from { transform: translateY(3px); } to { transform: none; } }
  .tc-ledger [data-account-panel="receipt"][role="tabpanel"]:not([hidden]) .tc-paper { animation: tc-receipt-arrives .38s cubic-bezier(.2,.72,.2,1) both; }
  .tc-ledger [data-account-panel="receipt"][role="tabpanel"]:not([hidden]) .receipt-seal { animation: tc-post-entry .26s .13s ease-out both; }
  .tc-ledger [data-account-panel="year"][role="tabpanel"]:not([hidden]) .income-bar { animation: tc-book-bars .36s ease-out both; }
  .tc-ledger [data-ledger-state="paid"] .ledger-amount { animation: tc-post-entry .3s ease-out both; }
  @keyframes tc-receipt-arrives { from { transform:translateY(-8px); } to { opacity:1; transform:none; } }
  @keyframes tc-post-entry { from { transform:translateY(-3px); } to { transform:none; opacity:1; } }
  @keyframes tc-book-bars { from { transform:scaleY(.15); } to { transform:scaleY(1); } }
}
