/* Custom Utility Classes */
.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

.primary-gradient {
    background: linear-gradient(135deg, #10B981 0%, #006c49 100%);
}

.text-gradient {
    background: linear-gradient(135deg, #10B981 0%, #006c49 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Border shifts for "No-Line" strategy */
.surface-border-shift {
    border: 1px solid rgba(28,27,27,0.05);
}

/* Typography for Legal & Content Pages */
.entry-content {
    color: var(--on-surface-variant);
}

.entry-content h1, 
.entry-content h2, 
.entry-content h3 {
    color: #1c1b1b;
    font-weight: 800;
    margin-top: 2.5em;
    margin-bottom: 0.8em;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.dark .entry-content h1,
.dark .entry-content h2,
.dark .entry-content h3 {
    color: #fcf9f8;
}

.entry-content h2 { font-size: 2rem; }
.entry-content h3 { font-size: 1.5rem; }

.entry-content p {
    margin-bottom: 1.5em;
    line-height: 1.8;
}

.entry-content strong {
    color: #1c1b1b;
    font-weight: 700;
}

.dark .entry-content strong {
    color: #fcf9f8;
}

.entry-content ul, 
.entry-content ol {
    margin-bottom: 2.5em;
    padding-left: 0;
    list-style: none;
}

.entry-content li {
    margin-bottom: 1rem;
    position: relative;
    /* padding-left: 1.75em; */
    line-height: 1.6;
}

/* Unordered List Bullets */
.entry-content ul li::before {
    content: "•";
    color: #10B981;
    font-weight: bold;
    position: absolute;
    left: 0.25em;
    font-size: 1.5em;
    line-height: 1;
    top: -0.1em;
}

/* Ordered List Numbers */
.entry-content ol {
    counter-reset: kikloper-counter;
}

.entry-content ol li {
    counter-increment: kikloper-counter;
}

.entry-content ol li::before {
    content: counter(kikloper-counter) ".";
    color: #10B981;
    font-weight: 700;
    position: absolute;
    left: 0;
    width: 1.25em;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.entry-content a {
    color: #10B981;
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-thickness: 1px;
    font-weight: 600;
    transition: opacity 0.2s;
}

.entry-content a:hover {
    opacity: 0.8;
}

/* Responsive Tables - Stitch AI Design */
.wp-block-table thead {
    border-bottom: none !important;
}
.entry-content table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-bottom: 4em;
    font-size: 0.9em;
    display: table;
    border-radius: 1.5rem;
    background-color: #f8faf9; /* Soft surface tint */
    overflow: hidden;
    border: none !important; /* No outer border in new design */
}

.dark .entry-content table {
    background-color: rgba(252,249,248,0.03);
}

@media (max-width: 768px) {
    .entry-content table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

.entry-content th,
.entry-content td {
    padding: 1.5rem 2rem !important;
    text-align: left;
    border-bottom: 1px solid rgba(28,27,27,0.04) !important;
    border-right: none !important;
    border-left: none !important;
    border-top: none !important;

}

.dark .entry-content th,
.dark .entry-content td {
    border-bottom-color: rgba(252,249,248,0.04) !important;
}

.entry-content th {
    background-color: #f1f5f3; /* Distinctive header bg */
    color: #10B981; /* Primary green header text */
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    border-bottom: none;
}

.dark .entry-content th {
    background-color: rgba(16,185,129,0.08);
    color: #10B981;
}

.entry-content tr:last-child td {
    border-bottom: none;
}

.entry-content td {
    color: var(--on-surface-variant);
    font-weight: 600;
    line-height: 1.5;
    vertical-align: top;
}

/* Sub-text support (e.g. Email, Name inside a cell) */
.entry-content td em,
.entry-content td span {
    display: block;
    font-size: 0.8em;
    font-weight: 400;
    font-style: normal;
    color: rgba(28,27,27,0.4);
    margin-top: 0.25rem;
}

.dark .entry-content td em,
.dark .entry-content td span {
    color: rgba(252,249,248,0.4);
}

.entry-content tr:hover td {
    background-color: rgba(16,185,129,0.01);
}

/* WP Block Table Wrapper Support */
.wp-block-table {
    margin-bottom: 4em;
    overflow-x: auto;
    border: none;
}

.wp-block-table table {
    margin-bottom: 0;
}
