.ottawabbs-recent-topics,
.ottawabbs-recent-topics .ottawabbs-home-recent-widget,
.ottawabbs-recent-topics .wpforo-widget-wrap,
.ottawabbs-recent-topics .wpforo-widget-content { width:100%; }
.ottawabbs-recent-topics .ottawabbs-widget-title,
.ottawabbs-recent-topics .widget-title { display:none !important; }
.ottawabbs-recent-topics .wpforo-widget-wrap,
.ottawabbs-recent-topics .wpforo-widget-content { margin:0 !important; padding:0 !important; border:0 !important; background:transparent !important; box-shadow:none !important; }
.ottawabbs-recent-topics .wpforo-list-item { display:block !important; width:100% !important; margin:0 !important; padding:14px 0 13px !important; border:0 !important; border-bottom:1px solid #e4e7ec !important; background:transparent !important; text-align:left !important; }
.ottawabbs-recent-topics .wpforo-list-item-left { display:none !important; }
.ottawabbs-recent-topics .wpforo-list-item-right { display:block !important; float:none !important; width:100% !important; max-width:none !important; margin:0 !important; padding:0 !important; text-align:left !important; }
.ottawabbs-recent-topics .posttitle { margin:0 0 5px !important; padding:0 !important; font-size:17px !important; line-height:1.45 !important; font-weight:600 !important; }
.ottawabbs-recent-topics .posttitle a { color:#1d2939 !important; text-decoration:none !important; }
.ottawabbs-recent-topics .posttitle a:hover { color:var(--theme-palette-color-1,#2563eb) !important; text-decoration:none !important; }
.ottawabbs-recent-topics .postuser { margin:0 !important; padding:0 !important; color:#98a2b3 !important; font-size:13px !important; line-height:1.45 !important; font-weight:400 !important; }
.ottawabbs-recent-topics .postuser a { color:#667085 !important; font-weight:500 !important; text-decoration:none !important; }
.ottawabbs-recent-topics .wpforo-list-item:last-child { border-bottom:0 !important; }

.ottawabbs-blog-submit-wrap { max-width:820px; margin:0 auto; }
.ottawabbs-submit-intro { margin-bottom:28px; }
.ottawabbs-submit-intro h2 { margin-bottom:8px; }
.ottawabbs-submit-intro p { margin:0; color:#667085; }
.ottawabbs-blog-submit-form { padding:28px; border:1px solid #e4e7ec; border-radius:12px; background:#fff; }
.ottawabbs-field { margin-bottom:24px; }
.ottawabbs-field > label { display:block; margin-bottom:8px; color:#1d2939; font-size:15px; font-weight:600; }
.ottawabbs-optional,.ottawabbs-field-help { color:#98a2b3; font-weight:400; }
.ottawabbs-field input[type="text"],.ottawabbs-field select,.ottawabbs-field textarea:not(.wp-editor-area) { width:100%; padding:11px 12px; border:1px solid #d0d5dd; border-radius:8px; background:#fff; color:#1d2939; }
.ottawabbs-field input[type="text"]:focus,.ottawabbs-field select:focus,.ottawabbs-field textarea:not(.wp-editor-area):focus { border-color:#98a2b3; outline:none; box-shadow:0 0 0 2px rgba(37,99,235,.08); }
.ottawabbs-field-help { margin:7px 0 0; font-size:13px; }
.ottawabbs-editor-field .wp-editor-wrap { border-radius:8px; overflow:hidden; }
.ottawabbs-submit-guidelines { margin:4px 0 22px; color:#475467; font-size:14px; }
.ottawabbs-submit-guidelines input { margin-right:7px; }
.ottawabbs-submit-button,.ottawabbs-button { display:inline-block; padding:11px 20px; border:0; border-radius:8px; background:var(--theme-palette-color-1,#2563eb); color:#fff !important; font-size:15px; font-weight:600; line-height:1.2; text-decoration:none !important; cursor:pointer; }
.ottawabbs-submit-success,.ottawabbs-submit-error,.ottawabbs-submit-notice { margin-bottom:22px; padding:14px 16px; border-radius:8px; }
.ottawabbs-submit-success { border:1px solid #abefc6; background:#ecfdf3; color:#067647; }
.ottawabbs-submit-error { border:1px solid #fecdca; background:#fef3f2; color:#b42318; }
.ottawabbs-submit-notice { border:1px solid #e4e7ec; background:#f9fafb; }
@media (max-width:689px) {
  .ottawabbs-recent-topics .wpforo-list-item { padding:12px 0 !important; }
  .ottawabbs-recent-topics .posttitle { font-size:16px !important; line-height:1.5 !important; }
  .ottawabbs-recent-topics .postuser { font-size:12px !important; }
  .ottawabbs-blog-submit-form { padding:18px; border-radius:10px; }
}


/* Fix native category select text clipping under some Blocksy/browser combinations. */
.ottawabbs-blog-submit-form .ottawabbs-field select {
    height: 46px !important;
    min-height: 46px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    line-height: normal !important;
    vertical-align: middle !important;
}


/* =========================================================
   Front-end "My Blog"
   ========================================================= */

.ottawabbs-my-blog-wrap {
    max-width: 920px;
    margin: 0 auto;
}

.ottawabbs-my-blog-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.ottawabbs-my-blog-header h2 {
    margin: 0 0 6px;
}

.ottawabbs-my-blog-header p {
    margin: 0;
    color: #667085;
}

.ottawabbs-my-blog-list {
    overflow: hidden;
    border: 1px solid #e4e7ec;
    border-radius: 12px;
    background: #fff;
}

.ottawabbs-my-blog-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 18px 20px;
    border-bottom: 1px solid #e4e7ec;
}

.ottawabbs-my-blog-item:last-child {
    border-bottom: 0;
}

.ottawabbs-my-blog-main {
    min-width: 0;
    flex: 1;
}

.ottawabbs-my-blog-title {
    margin-bottom: 5px;
    color: #1d2939;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.45;
}

.ottawabbs-my-blog-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    color: #98a2b3;
    font-size: 13px;
}

.ottawabbs-my-blog-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

.ottawabbs-status {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
}

.ottawabbs-status-publish {
    background: #ecfdf3;
    color: #067647;
}

.ottawabbs-status-pending {
    background: #fffaeb;
    color: #b54708;
}

.ottawabbs-status-draft {
    background: #f2f4f7;
    color: #475467;
}

.ottawabbs-text-link {
    color: var(--theme-palette-color-1, #2563eb);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
}

.ottawabbs-text-muted {
    color: #98a2b3;
    font-size: 13px;
}

.ottawabbs-empty-state {
    padding: 36px 24px;
    border: 1px solid #e4e7ec;
    border-radius: 12px;
    background: #fff;
    text-align: center;
}

.ottawabbs-empty-state h3 {
    margin-bottom: 8px;
}

.ottawabbs-empty-state p {
    margin: 0 0 18px;
    color: #667085;
}

@media (max-width: 689px) {
    .ottawabbs-my-blog-header {
        flex-direction: column;
        align-items: stretch;
    }

    .ottawabbs-my-blog-header .ottawabbs-button {
        align-self: flex-start;
    }

    .ottawabbs-my-blog-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .ottawabbs-my-blog-actions {
        width: 100%;
        justify-content: space-between;
    }
}


/* =========================================================
   Front-end blog editing
   ========================================================= */

.ottawabbs-current-image {
    margin-bottom: 24px;
}

.ottawabbs-current-image > label {
    display: block;
    margin-bottom: 8px;
    color: #1d2939;
    font-size: 15px;
    font-weight: 600;
}

.ottawabbs-current-image img {
    display: block;
    width: 100%;
    max-width: 420px;
    height: auto;
    border-radius: 10px;
}

.ottawabbs-edit-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.ottawabbs-secondary-button {
    display: inline-block;
    padding: 10px 18px;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    background: #fff;
    color: #344054 !important;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none !important;
}

.ottawabbs-secondary-button:hover {
    background: #f9fafb;
}


/* Draft/review action row */
.ottawabbs-edit-actions .ottawabbs-submit-button,
.ottawabbs-edit-actions .ottawabbs-secondary-button {
    min-height: 42px;
}


/* Ensure the Save Draft button has readable white text. */
.ottawabbs-edit-actions button.ottawabbs-secondary-button[name="submit_action"][value="draft"] {
    color: #ffffff !important;
}

.ottawabbs-edit-actions button.ottawabbs-secondary-button[name="submit_action"][value="draft"]:hover,
.ottawabbs-edit-actions button.ottawabbs-secondary-button[name="submit_action"][value="draft"]:focus {
    color: #ffffff !important;
}


/* =========================================================
   Community Journal
   ========================================================= */

.ottawabbs-journal-compose-wrap {
    max-width: 760px;
    margin: 0 auto;
}

.ottawabbs-journal-form {
    padding: 28px;
    border: 1px solid #e4e7ec;
    border-radius: 12px;
    background: #fff;
}

.ottawabbs-journal-form textarea {
    width: 100%;
    min-height: 190px;
    padding: 12px 14px;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    resize: vertical;
    line-height: 1.7;
}

.ottawabbs-journal-visibility {
    margin: 6px 0 22px;
    padding: 0;
    border: 0;
}

.ottawabbs-journal-visibility legend {
    margin-bottom: 10px;
    color: #1d2939;
    font-size: 15px;
    font-weight: 600;
}

.ottawabbs-visibility-option {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
    padding: 12px 14px;
    border: 1px solid #e4e7ec;
    border-radius: 9px;
    cursor: pointer;
}

.ottawabbs-visibility-option input {
    margin-top: 4px;
}

.ottawabbs-visibility-option span {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.ottawabbs-visibility-option small {
    color: #667085;
    line-height: 1.45;
}

.ottawabbs-first-public-confirm {
    margin: 0 0 22px;
    padding: 13px 14px;
    border: 1px solid #fedf89;
    border-radius: 8px;
    background: #fffaeb;
    color: #7a2e0e;
    font-size: 14px;
}

.ottawabbs-first-public-confirm p {
    margin: 5px 0 0 24px;
    color: #b54708;
    font-size: 13px;
}

.ottawabbs-journal-public-note {
    margin: 0 0 20px;
    color: #667085;
    font-size: 13px;
}

.ottawabbs-status-private {
    background: #f2f4f7;
    color: #344054;
}

.ottawabbs-journal-gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 24px;
}

.ottawabbs-journal-gallery-1 {
    grid-template-columns: minmax(0, 1fr);
}

.ottawabbs-journal-gallery-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ottawabbs-journal-gallery-item {
    overflow: hidden;
    border-radius: 10px;
    background: #f2f4f7;
}

.ottawabbs-journal-gallery-item img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.ottawabbs-journal-gallery-1 .ottawabbs-journal-gallery-item img {
    aspect-ratio: 16 / 9;
}

.ottawabbs-journal-edit-images {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ottawabbs-journal-edit-images img {
    width: 88px;
    height: 88px;
    object-fit: cover;
    border-radius: 8px;
}

@media (max-width: 689px) {
    .ottawabbs-journal-form {
        padding: 18px;
    }

    .ottawabbs-journal-gallery {
        gap: 5px;
    }
}
