/* LLP accounts: the year-end pack document (doc-llp.php) and the partner split set piece (set-llp.php). */

/* ---------- Opener document ---------- */
.doc--llp .doc__checks li span { flex: 1; }
.doc--llp .doc__checks li small { flex: none; padding: 1px 6px; border: 1px solid #DCCBD0; font-size: .74rem; font-weight: 700; color: var(--claret); letter-spacing: .02em; }
.doc--llp .doc__checks li:nth-child(n+3) { padding-left: 14px; }
.doc--llp .doc__checks li:nth-child(n+3)::before { content: ''; position: absolute; margin-left: -12px; width: 8px; height: 12px; border-left: 1.5px solid #CBB4BA; border-bottom: 1.5px solid #CBB4BA; transform: translateY(-5px); }
.doc--llp .doc__checks li { position: relative; }
@media (max-width: 560px) { .doc--llp .doc__checks li small { font-size: .7rem; padding: 0 4px; } }

/* ---------- Set piece: the partner split ---------- */
.ps { overflow: clip; padding-block: clamp(64px, 7vw, 100px); }
.ps__ruling { position: absolute; inset: 0; pointer-events: none; background-image: repeating-linear-gradient(to bottom, transparent 0, transparent 35px, rgba(255,255,255,.07) 35px, rgba(255,255,255,.07) 36px); animation: so-drift-36 24s linear infinite; }
.ps__ruling::before { content: ''; position: absolute; top: 0; bottom: 0; left: clamp(20px, 4.4vw, 70px); width: 1px; background: rgba(255,255,255,.35); }
.ps__oval { position: absolute; right: -14vw; bottom: -30%; width: min(1100px, 80vw); overflow: visible; pointer-events: none; }
.ps__oval ellipse { fill: none; stroke: rgba(255,255,255,.16); stroke-width: 1.4; }
.ps__oval .dash { stroke: rgba(242,214,75,.35); stroke-dasharray: 3 12; animation: dash-turn 50s linear infinite; }
.ps__wrap { position: relative; }
.ps__head { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 18px clamp(32px, 5vw, 80px); align-items: end; margin-bottom: clamp(26px, 3vw, 40px); }
.ps__head h2 { color: #fff; }
.ps__head .lede { margin: 0; }

.ps__controls { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px 34px; padding: 16px 0; border-top: 1px solid rgba(255,255,255,.3); border-bottom: 1px solid rgba(255,255,255,.3); }
.ps__label { margin: 0; font-weight: 700; color: var(--highlight); }
.ps__slider { display: flex; align-items: center; gap: 18px; max-width: 560px; }
.ps__step { flex: none; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1.5px solid rgba(255,255,255,.6); border-radius: var(--btn-r); background: none; color: #fff; cursor: pointer; transition: background-color .3s, color .3s; }
.ps__step svg { width: 18px; }
.ps__step:hover { background: #fff; color: var(--crimson); }
.ps__step:disabled { opacity: .35; cursor: default; background: none; color: #fff; }
.ps__track { position: relative; flex: 1; height: 6px; margin: 0 14px; border-radius: 3px; background: rgba(255,255,255,.25); touch-action: none; }
.ps__fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 3px; background: var(--highlight); }
.ps__stop { position: absolute; top: 50%; width: 0; height: 0; }
.ps__stop::before { content: ''; position: absolute; left: -2px; top: -9px; width: 4px; height: 18px; border-radius: 2px; background: rgba(255,255,255,.5); }
.ps__stop b { position: absolute; left: 0; top: 16px; transform: translateX(-50%); font-size: .9rem; font-weight: 700; color: rgba(255,255,255,.8); }
.ps__knob { position: absolute; left: 0; top: 50%; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; background: #fff; box-shadow: 0 6px 18px rgba(34,9,15,.35), 0 0 0 0 rgba(242,214,75,.6); cursor: grab; display: grid; place-items: center; z-index: 2; }
.ps__knob i { width: 12px; height: 12px; border-radius: 50%; background: var(--crimson); }
.ps__knob:active { cursor: grabbing; }
.ps__knob:focus-visible { outline: 3px solid var(--highlight); outline-offset: 4px; }
.motion .ps__knob { animation: ps-knob 2.6s ease-out infinite; }
@keyframes ps-knob { 0% { box-shadow: 0 6px 18px rgba(34,9,15,.35), 0 0 0 0 rgba(242,214,75,.6); } 70%, 100% { box-shadow: 0 6px 18px rgba(34,9,15,.35), 0 0 0 14px rgba(242,214,75,0); } }
.ps__count { display: flex; align-items: center; gap: 12px; margin: 0; color: #fff; }
.ps__count b { font-weight: 600; font-size: clamp(2.6rem, 3.6vw, 3.4rem); line-height: 1; letter-spacing: -.03em; color: var(--highlight); min-width: 1ch; text-align: right; }
.ps__count > span { font-weight: 700; line-height: 1.25; }
.ps__count small { display: block; font-weight: 500; font-size: .95rem; color: #FBE3E8; }

.ps__stage { position: relative; margin-top: clamp(26px, 3.4vw, 40px); }
.ps__firm { position: relative; z-index: 2; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 6px 22px; width: min(100%, 640px); margin: 0 auto; padding: 16px 22px; background: #fff; color: var(--ink); border-top: 4px solid var(--highlight); box-shadow: 0 24px 50px rgba(34,9,15,.3); background-image: repeating-linear-gradient(to bottom, transparent 0, transparent 29px, #F2E6E9 29px, #F2E6E9 30px); }
.ps__firm p { margin: 0; }
.ps__form { font-family: var(--serif); font-size: 1.6rem; line-height: 1; color: var(--crimson); }
.ps__fname { font-weight: 700; font-size: 1.1rem; }
.ps__fprofit { color: var(--ink-soft); font-size: .98rem; white-space: nowrap; }
.ps__fprofit b { display: block; font-weight: 600; font-size: 1.5rem; line-height: 1.1; color: var(--ink); letter-spacing: -.02em; }
.ps__wires { display: block; width: 100%; height: 54px; overflow: visible; }
.ps__wires path { fill: none; stroke: rgba(255,255,255,.75); stroke-width: 1.5; stroke-dasharray: 4 5; animation: ps-wire 1.2s linear infinite; }
@keyframes ps-wire { to { stroke-dashoffset: -9; } }
.ps__bar { display: flex; gap: 4px; height: 58px; }
.ps__seg { position: relative; flex: 1 1 0; min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 14px; background: #fff; color: var(--ink); overflow: hidden; }
.ps__seg[hidden] { display: none; }
.ps__seg:nth-child(even) { background: #FBE3E8; }
.ps__seg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(105deg, rgba(242,214,75,0) 35%, rgba(242,214,75,.4) 50%, rgba(242,214,75,0) 65%); background-size: 300% 100%; background-position: 140% 0; }
.motion .ps__seg::after { animation: ps-sheen 5s ease-in-out infinite; }
.motion .ps__seg:nth-child(2)::after { animation-delay: .25s; } .motion .ps__seg:nth-child(3)::after { animation-delay: .5s; }
.motion .ps__seg:nth-child(4)::after { animation-delay: .75s; } .motion .ps__seg:nth-child(5)::after { animation-delay: 1s; } .motion .ps__seg:nth-child(6)::after { animation-delay: 1.25s; }
@keyframes ps-sheen { 0%, 55% { background-position: 140% 0; } 100% { background-position: -40% 0; } }
.ps__seg b { font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ps__seg em { font-style: normal; font-weight: 700; font-size: 1.08rem; white-space: nowrap; color: var(--claret); }
.ps__seg.is-hot, .ps__card.is-hot .ps__paper { outline: 3px solid var(--highlight); outline-offset: -3px; }

.ps__cards { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; }
.ps__card { position: relative; flex: 1 1 0; min-width: 0; display: flex; justify-content: center; padding-top: 22px; }
.ps__paper { position: relative; width: min(100%, 250px); padding: 14px 16px 16px; background: #fff; color: var(--ink); border-left: 3px solid var(--claret); box-shadow: 0 18px 36px rgba(34,9,15,.3); background-image: repeating-linear-gradient(to bottom, transparent 0, transparent 27px, #F2E6E9 27px, #F2E6E9 28px); background-position: 0 6px; transform: rotate(var(--tilt, -1.2deg)); }
.ps__card:nth-child(even) .ps__paper { --tilt: 1.4deg; }
.ps__paper::after { content: ''; position: absolute; left: 0; right: 0; bottom: -7px; height: 8px; background: linear-gradient(-45deg, transparent 5px, #fff 0) 0 0 / 10px 8px repeat-x, linear-gradient(45deg, transparent 5px, #fff 0) 0 0 / 10px 8px repeat-x; }
.ps__card[hidden] { display: none; }
.ps__card p { margin: 0; }
.ps__card::before { content: ''; position: absolute; left: 50%; top: -16px; width: 1.5px; height: 38px; background: rgba(255,255,255,.7); }
.ps__cform { font-family: var(--serif); font-size: 1.3rem; line-height: 1.1; color: var(--crimson); }
.ps__cname { font-weight: 700; }
.ps__cshare { font-size: .95rem; color: var(--ink-soft); }
.ps__cshare b { color: var(--ink); }
.ps__cdue { font-size: .88rem; color: var(--ink-soft); line-height: 1.35; margin-top: 4px !important; }
.ps__small { margin: 24px 0 0; color: #FBE3E8; font-size: .98rem; }

.no-js .ps__slider { display: none; }

@media (max-width: 1100px) {
  .ps__controls { grid-template-columns: minmax(0, 1fr) auto; }
  .ps__slider { grid-column: 1 / -1; grid-row: 2; max-width: none; padding-bottom: 18px; }
}
@media (max-width: 960px) {
  .ps__head { grid-template-columns: minmax(0, 1fr); }
  .ps__cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .ps__card::before { display: none; }
  .ps__card { padding-top: 6px; }
  .ps__paper { width: 100%; }
  .ps__seg b { display: none; }
  .ps__seg { justify-content: center; padding: 0 4px; }
}
@media (max-width: 560px) {
  .ps__firm { grid-template-columns: auto minmax(0, 1fr); padding: 14px 16px; }
  .ps__fprofit { grid-column: 1 / -1; display: flex; align-items: baseline; gap: 8px; }
  .ps__fprofit b { display: inline; font-size: 1.3rem; }
  .ps__bar { height: 46px; gap: 3px; }
  .ps__seg em { font-size: .8rem; }
  .ps__cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ps__paper { padding: 12px 12px 14px; }
  .ps__cdue { display: none; }
  .ps__slider { gap: 10px; }
  .ps__track { margin: 0 8px; }
  .ps__count b { font-size: 2.4rem; }
}
@media (max-width: 560px) { .ps__ruling::before { display: none; } }
