/* White elephant rules page. Builds on style.css and generators.css. */

.gen-tool [hidden] {
    display: none;
}

.we-pills-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.we-rules {
    margin: 0 0 0 1.35rem;
    color: var(--ink);
    line-height: 1.6;
}

.we-rules li {
    margin-bottom: 0.6rem;
    padding-left: 0.25rem;
}

.we-rules-card {
    margin: 2rem 0 2.5rem;
    padding: clamp(1.2rem, 3.5vw, 2rem);
    color: var(--ink);
    background: var(--sun);
    border: 3px solid var(--ink);
    border-radius: var(--radius);
    box-shadow: var(--shadow-small);
}

.prose .we-rules-card h3 {
    margin: 0.2rem 0 0.8rem;
}

.we-rules-card-kicker {
    margin: 0;
    font-size: 0.72rem;
    font-weight: 850;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.prose .we-rules-card ol {
    margin-bottom: 0;
    font-size: 1.05rem;
}

.prose .we-rules-card li {
    margin-bottom: 0.35rem;
}

.we-table-wrap {
    overflow-x: auto;
    margin-bottom: 1.5rem;
    border: 2px solid var(--ink);
    border-radius: var(--radius-small);
}

.we-table {
    width: 100%;
    min-width: 560px;
    border-collapse: collapse;
    color: var(--ink);
    background: var(--white);
    font-size: 0.9rem;
    line-height: 1.5;
}

.we-table th,
.we-table td {
    padding: 0.65rem 0.75rem;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid var(--line-soft);
}

.we-table thead th {
    background: var(--paper-deep);
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.we-table tbody tr:last-child th,
.we-table tbody tr:last-child td {
    border-bottom: 0;
}

@media (max-width: 720px) {
    .we-pills-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media print {
    header,
    footer,
    .generator-header,
    .gen-tool .filters-grid,
    .gen-tool .action-buttons,
    .gen-actions,
    .faq-section,
    .related-links,
    .pin-card {
        display: none;
    }

    .we-rules-card {
        box-shadow: none;
        break-inside: avoid;
    }
}
