/* =========================================================
   FORYOU NEWS
   MY ARTICLES / NEWSROOM
   Professional newsroom article management
   Desktop + Mobile
   ========================================================= */


/* =========================================================
   GLOBAL
   ========================================================= */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}


html {
    scroll-behavior: smooth;
}


body {
    min-height: 100vh;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    background: #f6f7f5;
    color: #182019;

    line-height: 1.5;
}


a {
    color: inherit;
    text-decoration: none;
}


button,
select,
input,
textarea {
    font: inherit;
}


[hidden] {
    display: none !important;
}


@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition: none !important;
    }
}


/* =========================================================
   HEADER
   ========================================================= */

.articles-header {
    width: 100%;

    background: #ffffff;

    border-bottom: 1px solid #e5e8e3;

    position: sticky;
    top: 0;

    z-index: 1000;
}


.articles-header-inner {
    width: min(1200px, calc(100% - 40px));

    min-height: 76px;

    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 25px;
}


/* =========================================================
   BRAND
   ========================================================= */

.articles-brand {
    display: flex;
    align-items: center;

    gap: 11px;

    flex-shrink: 0;
}


.articles-logo {
    width: 48px;
    height: 48px;

    object-fit: contain;
}


.articles-brand-text {
    display: flex;
    flex-direction: column;

    line-height: 1;
}


.brand-for {
    font-size: 15px;
    font-weight: 800;

    letter-spacing: 1px;

    color: #111111;
}


.brand-news {
    margin-top: 4px;

    font-size: 11px;
    font-weight: 700;

    letter-spacing: 3px;

    color: #d88900;
}


/* =========================================================
   HEADER ACTIONS
   ========================================================= */

.articles-header-actions {
    display: flex;
    align-items: center;

    gap: 20px;
}


.back-link {
    color: #333333;

    font-size: 14px;
    font-weight: 600;

    transition: color 0.2s ease;
}


.back-link:hover {
    color: #d88900;
}


.logout-button {
    padding: 9px 15px;

    background: #ffffff;

    border: 1px solid #d9ddd8;
    border-radius: 5px;

    color: #333333;

    font-size: 13px;
    font-weight: 600;

    cursor: pointer;

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease;
}


.logout-button:hover {
    background: #faf8f1;
    border-color: #d5b45b;
    color: #8b6500;
}


.logout-button:focus-visible,
.back-link:focus-visible,
.articles-brand:focus-visible {
    outline: 2px solid #c79b19;
    outline-offset: 3px;
}


/* =========================================================
   MAIN
   ========================================================= */

.articles-main {
    padding: 42px 0 65px;
}


.articles-container {
    width: min(1200px, calc(100% - 40px));

    margin: 0 auto;
}


/* =========================================================
   PAGE HEADING
   ========================================================= */

.articles-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 25px;

    margin-bottom: 27px;
}


.section-label {
    margin-bottom: 7px;

    font-size: 10px;
    line-height: 1.2;
    font-weight: 800;

    letter-spacing: 0.14em;

    color: #a27600;
}


.articles-heading h1 {
    margin: 0 0 6px;

    font-size: 30px;
    line-height: 1.2;
    font-weight: 700;

    color: #111111;
}


.articles-intro {
    max-width: 650px;

    font-size: 14px;
    line-height: 1.55;

    color: #69716b;
}


/* =========================================================
   CREATE ARTICLE BUTTON
   ========================================================= */

.create-article-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    min-height: 42px;

    padding: 0 18px;

    background: #d88900;

    border: 1px solid #d88900;
    border-radius: 5px;

    color: #ffffff;

    font-size: 13px;
    font-weight: 700;

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}


.create-article-button:hover {
    background: #b97100;
    border-color: #b97100;

    transform: translateY(-1px);
}


.create-article-button:focus-visible {
    outline: 2px solid #c79b19;
    outline-offset: 3px;
}


/* =========================================================
   FILTER AREA
   ========================================================= */

.article-filters {
    margin-bottom: 18px;

    background: #ffffff;

    border: 1px solid #e1e5e0;
    border-radius: 7px;
}


/* =========================================================
   STATUS TABS
   Tabs are generated by my-articles.js as .status-tab
   ========================================================= */

.article-status-tabs {
    display: flex;
    align-items: center;

    min-height: 54px;

    padding: 0 16px;

    gap: 3px;

    border-bottom: 1px solid #e7eae6;

    overflow-x: auto;

    scrollbar-width: thin;
}


.status-tab {
    display: inline-flex;
    align-items: center;

    gap: 7px;

    min-height: 54px;

    padding: 0 14px;

    position: relative;

    white-space: nowrap;

    color: #606860;

    font-size: 13px;
    font-weight: 600;

    transition: color 0.2s ease;
}


.status-tab:hover {
    color: #9a7000;
}


.status-tab.active {
    color: #a27600;
}


.status-tab.active::after {
    content: "";

    position: absolute;

    left: 12px;
    right: 12px;
    bottom: -1px;

    height: 2px;

    background: #d88900;

    border-radius: 2px 2px 0 0;
}


.status-tab:focus-visible {
    outline: 2px solid #c79b19;
    outline-offset: -2px;
}


.tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 20px;
    height: 20px;

    padding: 0 6px;

    background: #f1f3f1;

    border-radius: 999px;

    color: #5b635c;

    font-size: 11px;
    font-weight: 700;
    line-height: 1;
}


.status-tab.active .tab-count {
    background: #fff3d9;

    color: #8b6500;
}


/* =========================================================
   TOOLBAR: SEARCH + ADMIN FILTERS
   ========================================================= */

.article-toolbar {
    display: flex;
    align-items: flex-end;
    flex-wrap: wrap;

    gap: 15px;

    padding: 14px 16px;
}


.search-field {
    display: flex;
    flex-direction: column;

    gap: 5px;

    flex: 1 1 280px;
}


.search-field > span:first-child,
.filter-field > span {
    font-size: 11px;
    font-weight: 700;

    color: #5e665f;
}


.search-input-wrap {
    display: flex;
    align-items: center;

    position: relative;
}


.search-input-wrap input {
    width: 100%;

    min-height: 38px;

    padding: 0 70px 0 11px;

    background: #ffffff;

    border: 1px solid #d9ded9;
    border-radius: 5px;

    color: #303630;

    font-size: 13px;
}


.search-input-wrap input:focus {
    outline: 2px solid #c79b19;
    outline-offset: 1px;
}


/* Hide the browser's own clear icon; we have our own button */
.search-input-wrap input::-webkit-search-cancel-button {
    -webkit-appearance: none;
    appearance: none;
}


.clear-search-button {
    position: absolute;

    right: 5px;

    min-height: 28px;

    padding: 0 9px;

    background: #f4f5f3;

    border: none;
    border-radius: 4px;

    color: #5b635c;

    font-size: 11px;
    font-weight: 700;

    cursor: pointer;
}


.clear-search-button:hover {
    background: #fff3d9;

    color: #8b6500;
}


.clear-search-button:focus-visible {
    outline: 2px solid #c79b19;
    outline-offset: 1px;
}


.admin-filters {
    display: flex;
    align-items: flex-end;

    gap: 15px;
}


.filter-field {
    display: flex;
    flex-direction: column;

    gap: 5px;

    min-width: 190px;
}


.filter-field select {
    min-height: 38px;

    padding: 0 11px;

    background: #ffffff;

    border: 1px solid #d9ded9;
    border-radius: 5px;

    color: #303630;

    font-size: 13px;

    cursor: pointer;
}


.filter-field select:focus {
    outline: 2px solid #c79b19;
    outline-offset: 1px;
}


/* =========================================================
   MESSAGE
   ========================================================= */

.articles-message {
    margin-bottom: 16px;

    padding: 12px 14px;

    background: #fffaf0;

    border: 1px solid #ead8a2;
    border-radius: 6px;

    color: #745700;

    font-size: 13px;
    line-height: 1.5;
}


.articles-message.is-success {
    background: #f1f8f3;

    border-color: #bfdcc8;

    color: #2f6140;
}


.articles-message.is-error {
    background: #fff7f7;

    border-color: #e5c4c4;

    color: #8b3030;
}


.articles-message.is-info {
    background: #f6f7f5;

    border-color: #dfe3de;

    color: #4d554e;
}


/* =========================================================
   LOADING
   ========================================================= */

.articles-loading {
    padding: 48px 20px;

    background: #ffffff;

    border: 1px solid #e1e5e0;
    border-radius: 7px;

    text-align: center;

    color: #69716b;

    font-size: 14px;
}


/* =========================================================
   EMPTY STATE
   ========================================================= */

.articles-empty {
    padding: 55px 25px;

    background: #ffffff;

    border: 1px solid #e1e5e0;
    border-radius: 7px;

    text-align: center;
}


.articles-empty h2 {
    margin-bottom: 7px;

    font-size: 20px;
    line-height: 1.3;

    color: #171a17;
}


.articles-empty p {
    max-width: 520px;

    margin: 0 auto 20px;

    color: #6c746d;

    font-size: 13px;
    line-height: 1.6;
}


.empty-create-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 40px;

    padding: 0 16px;

    background: #ffffff;

    border: 1px solid #d4d9d3;
    border-radius: 5px;

    color: #8a6500;

    font-size: 13px;
    font-weight: 700;

    transition:
        border-color 0.2s ease,
        background 0.2s ease;
}


.empty-create-button:hover {
    background: #fffaf0;
    border-color: #c9a63e;
}


.empty-create-button:focus-visible {
    outline: 2px solid #c79b19;
    outline-offset: 3px;
}


/* =========================================================
   TABLE
   ========================================================= */

.articles-table-section {
    width: 100%;

    background: #ffffff;

    border: 1px solid #e1e5e0;
    border-radius: 7px;

    overflow: hidden;
}


.articles-table-wrapper {
    width: 100%;

    overflow-x: auto;
}


.articles-table {
    width: 100%;

    min-width: 860px;

    border-collapse: collapse;
}


.articles-table thead {
    background: #fafbf9;
}


.articles-table th {
    padding: 13px 15px;

    border-bottom: 1px solid #dfe3de;

    color: #626a63;

    font-size: 10px;
    font-weight: 800;

    letter-spacing: 0.08em;

    text-align: left;

    text-transform: uppercase;

    white-space: nowrap;
}


.articles-table td {
    padding: 15px;

    border-bottom: 1px solid #edf0ec;

    vertical-align: top;

    color: #444b45;

    font-size: 13px;
}


.articles-table tbody tr:last-child td {
    border-bottom: none;
}


.articles-table tbody tr {
    transition: background 0.15s ease;
}


.articles-table tbody tr:hover {
    background: #fcfcfa;
}


/* Writers only see their own articles: no Author column */
.role-writer .author-column {
    display: none;
}


/* =========================================================
   ARTICLE CELL
   ========================================================= */

.article-title-cell {
    min-width: 280px;
}


.article-title,
.mobile-title-link {
    display: block;

    margin-bottom: 4px;

    color: #171a17;

    font-size: 14px;
    line-height: 1.4;
    font-weight: 700;

    text-align: left;
}


.article-title:hover,
.mobile-title-link:hover {
    color: #a27600;
}


/* Title shown as a button when the article opens in preview */
.as-link {
    padding: 0;

    background: none;

    border: none;

    cursor: pointer;
}


.article-title:focus-visible,
.mobile-title-link:focus-visible {
    outline: 2px solid #c79b19;
    outline-offset: 2px;
}


.article-excerpt {
    display: block;

    max-width: 430px;

    overflow: hidden;

    color: #737a74;

    font-size: 12px;
    line-height: 1.45;

    text-overflow: ellipsis;

    white-space: nowrap;
}


/* Editor's rejection note */
.article-note {
    max-width: 460px;

    margin-top: 9px;

    padding: 8px 10px;

    background: #fff7f0;

    border-left: 3px solid #c9772e;
    border-radius: 0 4px 4px 0;

    color: #6e3f14;

    font-size: 12px;
    line-height: 1.5;
}


.article-note strong {
    color: #5a3210;
}


/* =========================================================
   AUTHOR / CATEGORY / DATE
   ========================================================= */

.author-column {
    width: 160px;
}


.article-author,
.article-category {
    color: #4d554e;

    font-size: 12px;
}


.article-date {
    color: #69716b;

    font-size: 12px;

    white-space: nowrap;
}


/* =========================================================
   STATUS
   ========================================================= */

.article-status {
    display: inline-flex;
    align-items: center;

    min-height: 26px;

    padding: 4px 9px;

    border-radius: 999px;

    font-size: 10px;
    line-height: 1;
    font-weight: 800;

    letter-spacing: 0.05em;

    text-transform: uppercase;

    white-space: nowrap;
}


.status-detail {
    display: block;

    margin-top: 5px;

    color: #737a74;

    font-size: 11px;

    white-space: nowrap;
}


.article-status-draft {
    background: #f1f3f1;
    color: #59615a;
}


.article-status-in_review {
    background: #fff8e8;
    color: #8b6900;
}


.article-status-approved {
    background: #f3f8e9;
    color: #56702c;
}


.article-status-scheduled {
    background: #f4f0fb;
    color: #674b8d;
}


.article-status-published {
    background: #edf7f0;
    color: #397049;
}


.article-status-rejected {
    background: #fff0f0;
    color: #963b3b;
}


.article-status-archived {
    background: #f0f1f2;
    color: #64686c;
}


/* =========================================================
   ACTIONS
   ========================================================= */

.actions-column {
    width: 240px;
}


.article-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 6px;
}


.article-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 31px;

    padding: 0 9px;

    background: #ffffff;

    border: 1px solid #d8ddd8;
    border-radius: 4px;

    color: #4d554e;

    font-size: 11px;
    font-weight: 700;

    white-space: nowrap;

    cursor: pointer;

    transition:
        background 0.15s ease,
        border-color 0.15s ease,
        color 0.15s ease;
}


.article-action:hover {
    background: #faf8f1;

    border-color: #c9a63e;

    color: #8a6500;
}


.article-action.primary {
    background: #d88900;

    border-color: #d88900;

    color: #ffffff;
}


.article-action.primary:hover {
    background: #b97100;

    border-color: #b97100;

    color: #ffffff;
}


.article-action.danger {
    color: #8b3030;
}


.article-action.danger:hover {
    background: #fff7f7;

    border-color: #d8aaaa;

    color: #8b3030;
}


.article-action:disabled {
    opacity: 0.5;

    cursor: wait;
}


.article-action:focus-visible {
    outline: 2px solid #c79b19;
    outline-offset: 2px;
}


/* =========================================================
   MOBILE ARTICLE LIST
   Shown instead of the table under 700px (see media query)
   ========================================================= */

.mobile-articles-list {
    display: none;
}


.mobile-article-card {
    padding: 16px;

    background: #ffffff;

    border: 1px solid #e1e5e0;
    border-radius: 7px;
}


.mobile-article-card + .mobile-article-card {
    margin-top: 8px;
}


.mobile-article-card-top {
    margin-bottom: 9px;
}


.mobile-article-card-top .status-detail {
    display: inline;

    margin: 0 0 0 8px;
}


.mobile-article-card-title {
    margin-bottom: 6px;

    font-size: 16px;
    line-height: 1.4;
}


.mobile-article-card-title .mobile-title-link {
    font-size: 16px;
}


.mobile-article-card-excerpt {
    margin-bottom: 12px;

    color: #707770;

    font-size: 12px;
    line-height: 1.5;
}


.mobile-article-card .article-note {
    margin: 0 0 12px;
}


.mobile-article-meta {
    display: flex;
    flex-wrap: wrap;

    gap: 8px 14px;

    margin-bottom: 13px;

    color: #687069;

    font-size: 11px;
}


.mobile-article-actions {
    display: flex;
    flex-wrap: wrap;

    gap: 7px;
}


/* =========================================================
   PAGINATION
   ========================================================= */

.articles-pagination {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 15px;

    margin-top: 20px;
}


.pagination-button {
    min-height: 36px;

    padding: 0 13px;

    background: #ffffff;

    border: 1px solid #d7dcd7;
    border-radius: 5px;

    color: #4f574f;

    font-size: 12px;
    font-weight: 700;

    cursor: pointer;

    transition:
        background 0.15s ease,
        border-color 0.15s ease,
        color 0.15s ease;
}


.pagination-button:hover:not(:disabled) {
    background: #fffaf0;

    border-color: #c9a63e;

    color: #8a6500;
}


.pagination-button:disabled {
    opacity: 0.45;

    cursor: not-allowed;
}


.pagination-button:focus-visible {
    outline: 2px solid #c79b19;
    outline-offset: 2px;
}


.pagination-info {
    min-width: 65px;

    color: #666e67;

    font-size: 12px;

    text-align: center;
}


/* =========================================================
   DIALOGS (SCHEDULE / REJECT / PREVIEW)
   ========================================================= */

.articles-dialog {
    width: min(500px, calc(100% - 32px));

    margin: auto;

    padding: 24px;

    background: #ffffff;

    border: 1px solid #e1e5e0;
    border-radius: 8px;

    color: #182019;

    box-shadow: 0 18px 45px rgba(24, 32, 25, 0.18);
}


.articles-dialog::backdrop {
    background: rgba(24, 32, 25, 0.45);
}


.dialog-form h2,
.preview-dialog-header h2 {
    margin-bottom: 4px;

    font-size: 20px;
    line-height: 1.3;

    color: #111111;
}


.dialog-article-title {
    margin-bottom: 18px;

    color: #69716b;

    font-size: 13px;
}


.dialog-field {
    display: flex;
    flex-direction: column;

    gap: 6px;

    margin-bottom: 8px;
}


.dialog-field > span {
    font-size: 12px;
    font-weight: 700;

    color: #4d554e;
}


.dialog-field input,
.dialog-field textarea {
    width: 100%;

    padding: 10px 11px;

    background: #ffffff;

    border: 1px solid #d9ded9;
    border-radius: 5px;

    color: #303630;

    font-size: 14px;
    line-height: 1.5;
}


.dialog-field textarea {
    min-height: 120px;

    resize: vertical;
}


.dialog-field input:focus,
.dialog-field textarea:focus {
    outline: 2px solid #c79b19;
    outline-offset: 1px;
}


.dialog-help {
    margin-bottom: 14px;

    color: #737a74;

    font-size: 12px;
    line-height: 1.5;
}


.dialog-error {
    margin-bottom: 14px;

    padding: 9px 11px;

    background: #fff7f7;

    border: 1px solid #e5c4c4;
    border-radius: 5px;

    color: #8b3030;

    font-size: 12px;
}


.dialog-actions {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;

    gap: 8px;
}


.dialog-button {
    min-height: 38px;

    padding: 0 15px;

    background: #ffffff;

    border: 1px solid #d7dcd7;
    border-radius: 5px;

    color: #4d554e;

    font-size: 13px;
    font-weight: 700;

    cursor: pointer;

    transition:
        background 0.15s ease,
        border-color 0.15s ease,
        color 0.15s ease;
}


.dialog-button:hover {
    background: #faf8f1;

    border-color: #c9a63e;

    color: #8a6500;
}


.dialog-button.primary {
    background: #d88900;

    border-color: #d88900;

    color: #ffffff;
}


.dialog-button.primary:hover {
    background: #b97100;

    border-color: #b97100;
}


.dialog-button.danger {
    background: #9b3a3a;

    border-color: #9b3a3a;

    color: #ffffff;
}


.dialog-button.danger:hover {
    background: #7e2c2c;

    border-color: #7e2c2c;
}


.dialog-button:disabled {
    opacity: 0.5;

    cursor: wait;
}


.dialog-button:focus-visible {
    outline: 2px solid #c79b19;
    outline-offset: 2px;
}


/* =========================================================
   PREVIEW DIALOG
   ========================================================= */

.preview-dialog {
    width: min(760px, calc(100% - 32px));

    max-height: calc(100vh - 48px);

    padding: 0;

    overflow: hidden;
}


.preview-dialog[open] {
    display: flex;
    flex-direction: column;
}


.preview-dialog-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 16px;

    padding: 20px 24px 16px;

    border-bottom: 1px solid #e7eae6;
}


.preview-dialog-body {
    padding: 22px 24px;

    overflow-y: auto;

    color: #262d27;

    font-size: 15px;
    line-height: 1.7;
}


.preview-dialog-actions {
    padding: 14px 24px;

    border-top: 1px solid #e7eae6;

    background: #fafbf9;
}


.preview-loading,
.preview-empty {
    color: #737a74;

    font-size: 13px;
}


.preview-dialog-body .article-note {
    max-width: none;

    margin: 0 0 18px;
}


.preview-featured-image {
    display: block;

    width: 100%;
    max-height: 340px;

    margin-bottom: 16px;

    border-radius: 6px;

    object-fit: cover;
}


.preview-category {
    margin-bottom: 6px;

    color: #a27600;

    font-size: 11px;
    font-weight: 800;

    letter-spacing: 0.08em;

    text-transform: uppercase;
}


.preview-excerpt {
    margin-bottom: 18px;

    color: #5b635c;

    font-size: 16px;
    line-height: 1.6;
}


.preview-content > * + * {
    margin-top: 0.9em;
}


.preview-content h3,
.preview-content h4,
.preview-content h5,
.preview-content h6 {
    margin-top: 1.4em;

    color: #111111;

    line-height: 1.3;
}


.preview-content h3 { font-size: 22px; }
.preview-content h4 { font-size: 19px; }
.preview-content h5 { font-size: 17px; }
.preview-content h6 { font-size: 15px; }


.preview-content a {
    color: #a26b00;

    text-decoration: underline;
}


.preview-content ul,
.preview-content ol {
    padding-left: 1.4em;
}


.preview-content li + li {
    margin-top: 0.3em;
}


.preview-content .preview-task-list {
    padding-left: 0;

    list-style: none;
}


.preview-content blockquote {
    padding: 4px 0 4px 16px;

    border-left: 3px solid #d88900;

    color: #4d554e;

    font-style: italic;
}


.preview-content pre {
    padding: 12px 14px;

    overflow-x: auto;

    background: #f4f5f3;

    border-radius: 5px;

    font-size: 13px;
}


.preview-content code {
    font-family:
        "Courier New",
        monospace;
}


.preview-content img {
    max-width: 100%;
    height: auto;

    border-radius: 5px;
}


.preview-content hr {
    border: none;
    border-top: 1px solid #e1e5e0;
}


.preview-table-wrap {
    overflow-x: auto;
}


.preview-content table {
    width: 100%;

    border-collapse: collapse;

    font-size: 14px;
}


.preview-content th,
.preview-content td {
    padding: 8px 10px;

    border: 1px solid #dfe3de;

    text-align: left;
}


.preview-content th {
    background: #fafbf9;
}


.preview-callout {
    padding: 12px 14px;

    border-radius: 5px;

    border-left: 3px solid;
}


.preview-callout-info {
    background: #f1f5fb;
    border-color: #1c5fb4;
}


.preview-callout-warning {
    background: #fff8e8;
    border-color: #d99a18;
}


.preview-callout-success {
    background: #f1f8f3;
    border-color: #177245;
}


.preview-callout-note {
    background: #f4f5f3;
    border-color: #59615b;
}


/* =========================================================
   FOOTER
   ========================================================= */

.articles-footer {
    padding: 25px 0 30px;

    background: #ffffff;

    border-top: 1px solid #e5e8e3;
}


.articles-footer-inner {
    width: min(1200px, calc(100% - 40px));

    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    color: #777e78;

    font-size: 11px;
}


.articles-footer-inner p:first-child {
    color: #444b45;

    font-weight: 700;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {

    .articles-main {
        padding-top: 34px;
    }


    .articles-heading {
        align-items: flex-start;
    }


    .articles-heading h1 {
        font-size: 27px;
    }


    .admin-filters {
        flex: 1 1 100%;

        flex-wrap: wrap;
    }


    .filter-field {
        flex: 1 1 190px;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 700px) {

    .articles-header-inner {
        width: calc(100% - 24px);

        min-height: 68px;

        gap: 15px;
    }


    .articles-logo {
        width: 42px;
        height: 42px;
    }


    .articles-brand {
        gap: 9px;
    }


    .brand-for {
        font-size: 13px;
    }


    .brand-news {
        font-size: 10px;
        letter-spacing: 2.5px;
    }


    .articles-header-actions {
        gap: 10px;
    }


    .back-link {
        font-size: 12px;
    }


    .logout-button {
        min-height: 34px;

        padding: 0 10px;

        font-size: 11px;
    }


    .articles-main {
        padding: 28px 0 50px;
    }


    .articles-container {
        width: calc(100% - 24px);
    }


    .articles-heading {
        flex-direction: column;

        align-items: stretch;

        gap: 17px;

        margin-bottom: 20px;
    }


    .articles-heading h1 {
        font-size: 24px;
    }


    .articles-intro {
        font-size: 13px;
    }


    .create-article-button {
        width: 100%;
    }


    .article-status-tabs {
        padding: 0 8px;
    }


    .status-tab {
        padding: 0 10px;

        font-size: 12px;
    }


    .article-toolbar {
        flex-direction: column;

        align-items: stretch;

        gap: 11px;

        padding: 12px;
    }


    .search-field {
        flex: 1 1 auto;
    }


    .admin-filters {
        flex-direction: column;

        align-items: stretch;

        gap: 11px;
    }


    .filter-field {
        width: 100%;
        min-width: 0;
    }


    .articles-table-section {
        display: none;
    }


    .mobile-articles-list {
        display: block;
    }


    .articles-dialog {
        padding: 20px;
    }


    .preview-dialog {
        padding: 0;
    }


    .preview-dialog-header,
    .preview-dialog-body,
    .preview-dialog-actions {
        padding-left: 18px;
        padding-right: 18px;
    }


    .dialog-actions {
        flex-direction: column-reverse;
    }


    .dialog-button {
        width: 100%;
    }


    .preview-dialog-header .dialog-button {
        width: auto;
    }


    .articles-footer-inner {
        width: calc(100% - 24px);

        flex-direction: column;

        align-items: flex-start;

        gap: 5px;
    }

}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 420px) {

    .articles-header-inner {
        width: calc(100% - 20px);
    }


    .articles-container {
        width: calc(100% - 20px);
    }


    .articles-brand-text {
        display: none;
    }


    .back-link {
        font-size: 11px;
    }


    .logout-button {
        font-size: 10px;
    }


    .articles-heading h1 {
        font-size: 22px;
    }


    .articles-intro {
        font-size: 12px;
    }


    .status-tab {
        padding: 0 9px;

        font-size: 11px;
    }


    .mobile-article-card {
        padding: 14px;
    }


    .mobile-article-card-title,
    .mobile-article-card-title .mobile-title-link {
        font-size: 15px;
    }

}


/* =========================================================
   PREVIEW: IMAGE SIZE + ALIGNMENT
   Set with the editor's image tools
   ========================================================= */

.preview-content img {
    display: block;

    margin-left: auto;
    margin-right: auto;
}


.preview-content img[data-align="left"] {
    float: left;

    margin: 6px 20px 12px 0;
}


.preview-content img[data-align="right"] {
    float: right;

    margin: 6px 0 12px 20px;
}


.preview-content::after {
    content: "";

    display: block;

    clear: both;
}


.preview-content h3,
.preview-content h4,
.preview-content h5,
.preview-content h6 {
    clear: both;
}


@media (max-width: 700px) {

    .preview-content img[data-align="left"],
    .preview-content img[data-align="right"] {
        float: none;

        margin: 14px auto;
    }

}
