/* publish.r24k.com — accent override and publish-specific layout on top of r24k-kit.css */

.r24k-scope {
    --color-accent:       #C65D3A;
    --color-accent-hover: #b0502f;
    --color-bg:           #f5f5f3;
}

/* Kit's display values can override the [hidden] attribute -- fix that */
[hidden] { display: none !important; }

/* Topbar */
.r24k-scope .topbar {
    align-items: center;
    display: flex;
    justify-content: center;
    margin-bottom: 32px;
    padding-top: 32px;
    position: relative;
}

.r24k-scope #logoutBtn {
    position: absolute;
    right: 0;
}

.r24k-scope .brand {
    align-items: center;
    display: flex;
    gap: 10px;
}

.r24k-scope .brand-icon {
    height: 28px;
    width: 28px;
}

.r24k-scope .dot {
    color: var(--color-accent);
}

/* Auth */
.r24k-scope .auth-card {
    margin: 0 auto;
    max-width: 440px;
}

.r24k-scope .auth-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.r24k-scope .err {
    color: var(--color-danger);
    font-size: 13px;
    margin: 0;
}

/* Tabs */
.r24k-scope .tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 20px;
}

.r24k-scope .tab {
    background: transparent;
    border-radius: var(--radius-md);
    color: var(--color-text-muted);
    font-size: 14px;
    font-weight: 500;
    padding: 6px 12px;
    transition: var(--transition);
}

.r24k-scope .tab:hover {
    background: var(--color-surface-2);
    color: var(--color-text);
}

.r24k-scope .tab.active {
    background: var(--color-surface-2);
    color: var(--color-text);
}

/* Admin panel */
.r24k-scope .admin-card {
    margin-bottom: 16px;
}

.r24k-scope .admin-user-group {
    margin-bottom: 16px;
}

/* Dashboard */
.r24k-scope .dash-header {
    align-items: center;
    display: flex;
    justify-content: space-between;
}

.r24k-scope .add-workspace-form {
    align-items: center;
    display: flex;
    gap: 8px;
    margin-top: 16px;
}

.r24k-scope .add-workspace-form input {
    flex: 1;
}

/* Shared row style (dashboard + business panel) */
.r24k-scope .workspace-row {
    align-items: center;
    border-bottom: 1px solid var(--color-border);
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
}

.r24k-scope .workspace-row:last-child {
    border-bottom: none;
}

.r24k-scope .workspace-label {
    font-size: 14px;
    font-weight: 500;
}

.r24k-scope .workspace-actions {
    display: flex;
    gap: 6px;
}

/* Business panel */
.r24k-scope .biz-header {
    align-items: center;
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
}

.r24k-scope .biz-header h2 {
    margin: 0;
}

.r24k-scope .biz-sections {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.r24k-scope .section-header {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
}

.r24k-scope .section-header h3 {
    margin: 0;
}

.r24k-scope .site-form {
    border-top: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 12px;
    padding-top: 12px;
}

.r24k-scope .form-actions {
    display: flex;
    gap: 8px;
}

/* Browse sections */
.r24k-scope .browse-section {
    margin-bottom: 28px;
}

.r24k-scope .browse-section:last-child {
    margin-bottom: 0;
}

.r24k-scope .browse-section-header {
    align-items: center;
    border-bottom: 1px solid var(--color-border);
    display: flex;
    justify-content: space-between;
    margin-bottom: 4px;
    padding-bottom: 6px;
}

.r24k-scope .browse-section-title {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.r24k-scope .browse-load-more {
    display: block;
    font-size: 13px;
    margin-top: 4px;
    text-align: center;
    width: 100%;
}

/* Job status chip in browse rows */
.r24k-scope .job-status-chip {
    border-radius: 4px;
    flex-shrink: 0;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.04em;
    padding: 2px 6px;
    text-transform: uppercase;
}

.r24k-scope .job-status-chip.draft {
    background: #fff3cd;
    color: #856404;
}

.r24k-scope .job-status-chip.processing {
    background: var(--color-surface-2);
    color: var(--color-text-muted);
}

.r24k-scope .job-status-chip.rendered {
    background: #d4edda;
    color: #155724;
}

/* Platform chips in browse rows */
.r24k-scope .platform-chips {
    display: flex;
    flex-shrink: 0;
    gap: 3px;
}

.r24k-scope .platform-chip {
    border-radius: 3px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 2px 4px;
    text-transform: uppercase;
}

.r24k-scope .platform-chip.pending {
    background: var(--color-surface-2);
    color: var(--color-text-muted);
}

.r24k-scope .platform-chip.posted {
    color: #fff;
}

/* Browse view */
.r24k-scope .browse-item {
    align-items: center;
    border-bottom: 1px solid var(--color-border);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    transition: var(--transition);
}

.r24k-scope .browse-item:last-child {
    border-bottom: none;
}

.r24k-scope .browse-item:hover {
    background: var(--color-surface-2);
    border-radius: var(--radius-md);
    padding-left: 8px;
    padding-right: 8px;
}

.r24k-scope .browse-item-main {
    align-items: center;
    display: flex;
    flex: 1;
    gap: 8px;
    min-width: 0;
}

.r24k-scope .browse-item-title {
    font-size: 14px;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.r24k-scope .browse-item-date {
    flex-shrink: 0;
    font-size: 12px;
    margin-left: 12px;
}

.r24k-scope .type-chip {
    background: var(--color-surface-2);
    border-radius: 20px;
    color: var(--color-text-muted);
    flex-shrink: 0;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.03em;
    padding: 2px 8px;
    text-transform: uppercase;
}

/* Item inspect view */
.r24k-scope .item-meta {
    align-items: center;
    display: flex;
    margin-bottom: 16px;
}

.r24k-scope .item-link {
    font-size: 13px;
    margin-left: auto;
    text-decoration: none;
}

.r24k-scope .item-link:hover {
    color: var(--color-text);
}

.r24k-scope .item-featured-img {
    border-radius: var(--radius-md);
    display: block;
    height: auto;
    margin-bottom: 16px;
    max-height: 240px;
    object-fit: cover;
    width: 100%;
}

.r24k-scope .item-excerpt {
    border-left: 3px solid var(--color-border);
    color: var(--color-text-muted);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 16px;
    padding-left: 12px;
}

.r24k-scope .item-excerpt p { margin: 0; }

.r24k-scope .item-full-content {
    border-top: 1px solid var(--color-border);
    font-size: 14px;
    line-height: 1.7;
    max-height: 400px;
    overflow-y: auto;
    padding-top: 16px;
}

.r24k-scope .item-full-content img {
    height: auto;
    max-width: 100%;
}

.r24k-scope .item-actions {
    align-items: center;
    border-top: 1px solid var(--color-border);
    display: flex;
    margin-top: 20px;
    padding-top: 16px;
}
