/*
Theme Name: Kadence Child - WorkTechJournal
Template: kadence
Version: 1.3.0
Text Domain: kadence-child-wtj
*/

/* ── TABLE STYLES ────────────────────────────────────── */
.entry-content .wtj-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 28px 0;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    box-shadow: inset -6px 0 8px -4px rgba(0,0,0,.08), 0 1px 4px rgba(0,0,0,.07);
}
.entry-content .wtj-table-wrap table {
    border-collapse: collapse;
    min-width: 700px;
    width: 100%;
    font-size: 14px;
    margin: 0;
}
.entry-content .wtj-table-wrap thead th {
    background: #0f172a;
    color: #fff;
    padding: 11px 16px;
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .35px;
    white-space: nowrap;
}
.entry-content .wtj-table-wrap tbody td {
    padding: 11px 16px;
    border-bottom: 1px solid #e2e8f0;
    vertical-align: top;
    line-height: 1.45;
    color: #374151;
}
.entry-content .wtj-table-wrap tbody tr:last-child td {
    border-bottom: none;
}
.entry-content .wtj-table-wrap tbody tr:nth-child(even) td {
    background: #f8fafc;
}
.entry-content .wtj-table-wrap tbody tr:hover td {
    background: #eff6ff;
}
.entry-content .wtj-table-wrap tbody td:first-child {
    font-weight: 700;
    color: #0f172a;
    white-space: nowrap;
}

/* ── SUBSCRIBE BLOCK ─────────────────────────────────── */
.wtj-subscribe-block {
    margin: 48px 0 24px;
    padding: 28px 32px;
    background: #0f172a;
    border-radius: 12px;
    color: #fff;
}
.wtj-subscribe-inner {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.wtj-subscribe-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.wtj-subscribe-text strong {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
}
.wtj-subscribe-text span {
    font-size: 14px;
    color: #94a3b8;
}
@media (max-width: 600px) {
    .wtj-subscribe-block { padding: 20px 18px; }
    .wtj-subscribe-text strong { font-size: 16px; }
}

/* Newsletter sidebar CTA */
.wtj-nl-btn {
    display: block;
    text-align: center;
    background: #2563eb;
    color: #fff !important;
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none !important;
}
.wtj-nl-btn:hover { background: #1d4ed8; }

/* Beehiiv inline form в статьях */
.wtj-beehiiv-inline {
    margin-top: 40px;
}
.wtj-beehiiv-inline iframe,
.wtj-beehiiv-inline > div {
    max-width: 100% !important;
    width: 100% !important;
}

/* Footer newsletter embed */
.wtj-footer-nl { margin-top: 14px; }
.wtj-footer-nl-label { font-size: 12px; color: #94a3b8; margin-bottom: 8px; }
.wtj-footer-nl-clip {
    overflow: hidden;
    height: 58px;
}
.wtj-footer-nl-clip iframe {
    margin-top: -155px !important;
    height: 291px !important;
    width: 100% !important;
    max-width: 100% !important;
}

/* Footer newsletter form */
.wtj-footer-nl-label { font-size:12px; color:#94a3b8; margin:12px 0 8px; }
#wtj-footer .wtj-sf input { background:#1e293b; border-color:#334155; color:#f1f5f9; }
#wtj-footer .wtj-sf input::placeholder { color:#64748b; }
#wtj-footer .wtj-sf-msg { color:#94a3b8; }
#wtj-footer .wtj-sf-msg.ok { color:#4ade80; }
#wtj-footer .wtj-sf-msg.err { color:#f87171; }

/* Sidebar newsletter link */
.wtj-nl-link { display:block; font-size:12px; color:#64748b; margin-top:8px; text-decoration:none; }
.wtj-nl-link:hover { color:#2563eb; }
