/* Wrapper when hub is rendered inside the theme (get_header / get_footer) */
.woh-hub-wrap {
    max-width: 100%;
    margin: 0 auto;
    padding: 8px 0 32px;
    box-sizing: border-box;
}

/* Body helper when hub uses theme layout (avoid fighting theme background) */
body.woh-hub-page {
    -webkit-text-size-adjust: 100%;
}

body.woh-hub-page #wpadminbar ~ * .woh-container,
body.woh-hub-page .woh-container {
    max-width: 980px;
}

.woh-container {
    max-width: 980px;
    margin: 32px auto;
    padding: 0 16px;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    color: #111827;
}

.woh-top-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 14px 0 18px;
}

.woh-section-title {
    margin-top: 18px;
    margin-bottom: 10px;
    font-weight: 700;
    color: #374151;
}

.woh-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    border: 1px solid #16a34a;
    background: #16a34a;
    color: #ffffff;
    min-height: 42px;
}

.woh-btn:hover { filter: brightness(0.98); }

.woh-btn.secondary {
    background: #ffffff;
    color: #16a34a;
}

@media (max-width: 640px) {
    .woh-container {
        margin: 16px auto;
        padding: 0 12px;
    }
    .woh-top-actions { flex-direction: column; }
    .woh-btn { width: 100%; }
    .woh-title h1 { font-size: 1.2rem; }
    .woh-badges { justify-content: flex-start; }
}

.woh-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.woh-title h1 {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
}

.woh-subtitle {
    margin-top: 6px;
    color: #6b7280;
    font-size: 13px;
}

.woh-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.woh-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    background: #f3f4f6;
    color: #111827;
    font-size: 12px;
    border: 1px solid #e5e7eb;
}

.woh-grid {
    display: block;
}

/* Inherit safely even if theme resets anchor/button styles */
.woh-container a.woh-btn,
.woh-container a.woh-btn:visited {
    color: #ffffff;
}

.woh-container a.woh-btn.secondary,
.woh-container a.woh-btn.secondary:visited {
    color: #16a34a;
}

@media (max-width: 880px) {
    .woh-grid {
        grid-template-columns: 1fr;
    }
}

.woh-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

.woh-card-header {
    padding: 12px 14px;
    border-bottom: 1px solid #eef2f7;
    background: #fafafa;
    font-weight: 600;
}

.woh-card-body {
    padding: 14px;
}

.woh-primary {
    border-color: #16a34a;
    background: #16a34a;
    color: #ffffff;
}

.woh-content {
    background: transparent;
}

.woh-table {
    width: 100%;
    border-collapse: collapse;
}

.woh-table th, .woh-table td {
    border-bottom: 1px solid #eef2f7;
    padding: 10px 8px;
    text-align: left;
    vertical-align: top;
}

.woh-table th {
    color: #6b7280;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.woh-right { text-align: right; }
.woh-muted { color: #6b7280; }