/* Publishing split guide */

.splits-main {
    max-width: 980px;
    margin: 40px auto 60px;
    padding: 32px 28px 48px;
    background: #111;
    color: #e0e0e0;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    border: 1px solid #222;
    text-align: left;
}

.splits-main h1 {
    color: #fff;
    font-family: var(--font-primary);
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    margin: 0 0 12px;
    line-height: 1.2;
}

.splits-intro {
    color: var(--color-text-secondary, #bdbdbd);
    font-size: 1.05rem;
    line-height: 1.65;
    margin: 0 0 18px;
    max-width: 68ch;
}

.splits-main h2 {
    color: #fff;
    font-family: var(--font-primary);
    font-size: 1.45rem;
    margin: 0 0 12px;
    line-height: 1.3;
}

.splits-main h3 {
    color: #f0f0f3;
    font-family: var(--font-primary);
    font-size: 1.05rem;
    margin: 0 0 8px;
    line-height: 1.35;
}

.splits-main p,
.splits-main li {
    color: #d0d0d0;
    font-size: 1rem;
    line-height: 1.65;
}

.splits-main p {
    margin: 0 0 14px;
    max-width: 68ch;
}

.splits-main a {
    color: #ff2d55;
}

.splits-kicker {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #27dfd8;
    margin-bottom: 8px;
}

.splits-section {
    margin: 0 0 40px;
    padding-top: 8px;
    border-top: 1px solid #2a2a2a;
}

.splits-section:first-of-type {
    border-top: none;
    padding-top: 0;
}

.splits-note,
.splits-disclaimer {
    margin: 0 0 18px;
    padding: 12px 14px;
    background: #0a0a0a;
    border-left: 3px solid #27dfd8;
    border-radius: 0 6px 6px 0;
    color: #c8c8c8;
    font-size: 0.95rem;
    line-height: 1.55;
    max-width: 68ch;
}

.splits-disclaimer {
    border-left-color: #f5c16c;
}

.splits-disclaimer strong,
.splits-note strong {
    color: #fff;
}

.splits-two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin: 0 0 8px;
}

.splits-card {
    background: #0a0a0a;
    border: 1px solid #2a2a2a;
    border-radius: 10px;
    padding: 16px;
}

.splits-card p:last-child {
    margin-bottom: 0;
}

.splits-card ul {
    margin: 0;
    padding-left: 1.1rem;
}

.splits-card li {
    margin: 0 0 6px;
}

.splits-tool {
    background: #0a0a0a;
    border: 1px solid #2a2a2a;
    border-radius: 12px;
    padding: 18px;
}

.splits-tool button {
    background: transparent;
    color: #f0f0f3;
    border: 1px solid #3a3a48;
    border-radius: 8px;
    padding: 8px 12px;
    font-family: var(--font-primary);
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
    box-shadow: none;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.splits-tool button:hover {
    transform: none;
    border-color: #8e23e2;
    background: rgba(142, 35, 226, 0.12);
    box-shadow: none;
}

.splits-tool button:focus-visible {
    outline: 2px solid #27dfd8;
    outline-offset: 2px;
}

.splits-tool button[aria-pressed="true"] {
    border-color: #8e23e2;
    background: rgba(142, 35, 226, 0.22);
    color: #fff;
}

.scenario-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 18px;
    padding: 0;
    list-style: none;
}

.field-label,
.splits-tool legend {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #94a3b8;
    margin-bottom: 8px;
}

.splits-tool fieldset {
    border: 0;
    margin: 0 0 16px;
    padding: 0;
}

.song-title-label {
    display: block;
    margin: 0 0 16px;
}

.splits-tool input[type="text"],
.splits-tool input[type="number"],
.splits-tool select {
    width: 100%;
    box-sizing: border-box;
    background: #0d0d14;
    border: 1px solid #2a2a3a;
    border-radius: 8px;
    padding: 10px 12px;
    color: #f7f6f9;
    font-family: var(--font-primary);
    font-size: 0.95rem;
}

.splits-tool input:focus,
.splits-tool select:focus {
    outline: none;
    border-color: #8e23e2;
    box-shadow: 0 0 0 3px rgba(142, 35, 226, 0.15);
}

.license-options {
    display: none;
    gap: 8px;
}

.splits-tool[data-preset="license"] .license-options {
    display: grid;
}

.license-options label,
.sample-check {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: #d0d0d0;
    font-size: 0.95rem;
    line-height: 1.45;
}

.license-options input,
.sample-check input {
    margin-top: 3px;
}

.sample-fields {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 12px;
    margin-top: 10px;
}

.sample-fields[hidden] {
    display: none;
}

.person-list {
    display: grid;
    gap: 10px;
    margin: 0 0 12px;
}

.person {
    display: grid;
    grid-template-columns: 1.2fr 1.4fr auto auto;
    gap: 10px;
    align-items: end;
}

.splits-tool[data-preset="custom"] .person {
    grid-template-columns: 1.1fr 1.3fr 110px auto;
}

.person-pct {
    display: none;
}

.splits-tool[data-preset="custom"] .person-pct {
    display: block;
}

.splits-tool[data-preset="custom"] .person.is-side .person-pct {
    display: none;
}

.person-remove {
    height: 42px;
    white-space: nowrap;
}

.person-remove:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.tool-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 16px;
}

.tool-total {
    margin: 0 0 12px;
    font-variant-numeric: tabular-nums;
    color: #27dfd8;
    font-weight: 700;
}

.tool-total.is-bad {
    color: #f87171;
}

.split-bar {
    display: flex;
    width: 100%;
    min-height: 46px;
    border-radius: 8px;
    overflow: hidden;
    margin: 0 0 14px;
    background: #16161f;
}

.split-bar span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    padding: 6px 4px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #0a0a0a;
    line-height: 1.2;
    text-align: center;
    overflow: hidden;
}

.table-wrap {
    overflow-x: auto;
    margin: 0 0 12px;
}

.splits-table {
    width: 100%;
    border-collapse: collapse;
    font-variant-numeric: tabular-nums;
    font-size: 0.92rem;
}

.splits-table th,
.splits-table td {
    text-align: left;
    padding: 8px 10px;
    border-bottom: 1px solid #2a2a2a;
    color: #e0e0e0;
    vertical-align: top;
}

.splits-table th {
    color: #94a3b8;
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-weight: 700;
}

.splits-table td.num,
.splits-table th.num {
    text-align: right;
    white-space: nowrap;
}

.splits-table tr.is-uneven td {
    background: rgba(245, 193, 108, 0.06);
}

.side-list {
    list-style: none;
    margin: 0 0 12px;
    padding: 0;
    display: grid;
    gap: 8px;
}

.side-list li {
    margin: 0;
    padding: 10px 12px;
    background: #111118;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
}

.side-list strong {
    color: #fff;
}

.tool-notes {
    display: grid;
    gap: 8px;
    margin: 12px 0 0;
}

.tool-notes p {
    margin: 0;
    max-width: none;
}

.splits-checklist {
    margin: 0 0 14px;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 10px;
}

.splits-checklist li {
    margin: 0;
    padding: 12px 14px;
    background: #0a0a0a;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
}

.splits-checklist strong {
    color: #f0f0f3;
}

.splits-sources {
    margin: 0;
    padding-left: 1.2rem;
}

.splits-sources li {
    margin: 0 0 8px;
}

.splits-cta {
    margin-top: 8px;
    padding: 28px 24px;
    text-align: center;
    background: #0a0a0a;
    border: 1px solid #2a2a2a;
    border-radius: 10px;
}

.splits-cta p {
    margin: 0 auto 16px;
    max-width: 52ch;
}

.splits-main a.splits-cta-button {
    display: inline-block;
    background: var(--gradient-primary);
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    padding: 14px 28px;
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 1rem;
}

.splits-main a.splits-cta-button:hover {
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(142, 35, 226, 0.35);
}

.splits-cta-links {
    margin-top: 14px;
    font-size: 0.92rem;
}

.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: 760px) {
    .splits-main {
        margin: 20px 12px 40px;
        padding: 22px 16px 36px;
    }

    .splits-two,
    .sample-fields,
    .person,
    .splits-tool[data-preset="custom"] .person {
        grid-template-columns: 1fr;
    }

    .splits-section h2 {
        font-size: 1.25rem;
    }
}
