.editorial-content { overflow-wrap: anywhere; line-height: 1.65; }
.editorial-content :is(img, video, audio), .editorial-cover { max-width: 100%; height: auto; }
.editorial-content figure { margin: 1.5rem 0; }
.editorial-content figcaption { font-size: .9rem; }
.editorial-content pre { white-space: pre-wrap; }
.editorial-content table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.editorial-content :is(th, td) { border: 1px solid #738397; padding: .4rem; }
.editorial-align-left { text-align: left; }
.editorial-align-center { text-align: center; }
.editorial-align-right { text-align: right; }
.editorial-article { max-width: 52rem; margin-inline: auto; }
.editorial-cover { display: block; border-radius: .6rem; margin-block: 1rem; }
.editorial-lede { font-size: 1.15rem; }
.editorial-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: 1rem; margin-block: 1rem; }
.editorial-card, .editorial-hero { border: 1px solid #8497b080; border-radius: .6rem; overflow: hidden; overflow-wrap: anywhere; }
.editorial-card a, .editorial-hero a { display: block; text-decoration: none; }
.editorial-card a:focus-visible, .editorial-hero a:focus-visible { outline-offset: -3px; }
.editorial-card a div, .editorial-hero a div { padding: 1rem; }
.editorial-card h2 { margin: .25rem 0; font-size: 1.25rem; }
.editorial-card p, .editorial-hero p { margin-bottom: .35rem; }
.editorial-card img, .editorial-hero img { display: block; width: 100%; object-fit: cover; aspect-ratio: 16 / 9; }
.editorial-hero img { max-height: 31rem; }
.editorial-page-hero { margin-block-end: 1.25rem; }
.editorial-page-hero > div { padding: 1rem; }
.editorial-page-hero h1 { margin-block-end: .5rem; }
.editorial-nav-group { margin: 0; padding: 0; list-style: none; max-width: min(18rem, 78vw); overflow-wrap: anywhere; }
.editorial-nav-group a { display: block; padding-block: .35rem; }
.editorial-list { display: grid; gap: .75rem; margin-block: 1rem; }

.editorial-compose {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--field-border, #738397);
    border-radius: .75rem;
    background: var(--field-bg, Canvas);
    color: var(--field-text, CanvasText);
}
.editorial-compose:focus-within { border-color: #4486c3; }
.editorial-compose textarea { display: block; width: 100%; border: 0; border-radius: 0; }
.editorial-compose-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .2rem;
    padding: .35rem;
    border-bottom: 1px solid var(--field-border, #738397);
}
.editorial-compose-toolbar[hidden] { display: none; }
.editorial-tool-group { display: inline-flex; gap: .075rem; padding-inline-start: .2rem; border-inline-start: 1px solid var(--field-border, #738397); }
main .editorial-compose .editorial-compose-toolbar button[data-editorial-tool] {
    display: inline-grid;
    place-items: center;
    min-width: 1.9rem;
    min-height: 1.9rem;
    margin: 0;
    padding: .15rem;
    border: 1px solid transparent;
    border-radius: .3rem;
    background: transparent;
    color: inherit;
    font-size: .9rem;
}
main .editorial-compose .editorial-compose-toolbar button[data-editorial-tool]:is(:hover, [aria-pressed="true"]) {
    border-color: var(--field-border, #738397);
    background: color-mix(in srgb, currentColor 12%, transparent);
}
.editorial-compose-toolbar button:focus-visible { outline: 2px solid #4486c3; outline-offset: -2px; }
.editorial-compose-toolbar svg { width: 1rem; height: 1rem; }
.editorial-compose-toolbar [data-editorial-tool="bold"] { font-weight: 700; }
.editorial-compose-toolbar [data-editorial-tool="italic"] { font-style: italic; }
.editorial-compose-toolbar [data-editorial-tool="underline"] { text-decoration: underline; }
.editorial-compose-toolbar [data-editorial-tool="strikeThrough"] { text-decoration: line-through; }
.editorial-compose .editorial-text-style { margin: 0 .2rem 0 0; }
.editorial-compose .editorial-text-style select { width: auto; min-height: 1.9rem; padding-block: .15rem; font-size: .85rem; }
.editorial-compose .jodit-container.jodit:not(.jodit_inline),
.editorial-compose .jodit-container.jodit .jodit-workplace,
.editorial-compose .jodit-container.jodit .jodit-wysiwyg {
    --jd-color-background-default: transparent;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: inherit;
}
.editorial-compose .jodit-container.jodit .jodit-workplace .jodit-wysiwyg {
    max-height: min(65dvh, 38rem);
    overflow-y: auto;
    padding: .75rem;
}
.editorial-content img.editorial-image-width-25 { width: 25%; }
.editorial-content img.editorial-image-width-50 { width: 50%; }
.editorial-content img.editorial-image-width-75 { width: 75%; }
.editorial-content img.editorial-image-width-100 { width: 100%; }
.editorial-content img:is(.editorial-image-left, .editorial-image-center, .editorial-image-right) { display: block; }
.editorial-content img.editorial-image-left { margin-inline: 0 auto; }
.editorial-content img.editorial-image-center { margin-inline: auto; }
.editorial-content img.editorial-image-right { margin-inline: auto 0; }
#editorial-draft-form dialog {
    width: min(90vw, 28rem);
    padding: 1rem;
    border: 1px solid var(--field-border, #738397);
    border-radius: .75rem;
    background: var(--field-bg, Canvas);
    color: var(--field-text, CanvasText);
}
#editorial-draft-form dialog::backdrop { background: rgb(0 0 0 / .6); }
.editorial-dialog-actions { display: flex; flex-wrap: wrap; gap: .4rem; }

.editorial-list form button:disabled { opacity: .6; cursor: not-allowed; }
.editorial-action-bar {
    --action-text: #25476b;
    --action-border: #a8bad0;
    --action-hover: #eef4fa;
    --action-primary: #224f80;
    --action-primary-hover: #173b63;
    --action-disabled: #566779;
    --action-muted: #f0f3f7;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .45rem;
    padding: .6rem;
    border-radius: 1rem;
    margin-block-start: 1rem;
    box-shadow: 0 .2rem .65rem #14293e12;
}
.editorial-action-bar form { margin: 0; }
.admin-body main .editorial-action-bar .editorial-action {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    min-height: var(--button-height);
    padding: .3rem .7rem;
    border: 1px solid var(--action-border);
    border-radius: var(--button-radius);
    background: transparent;
    color: var(--action-text);
    font-size: .875rem;
    font-weight: 600;
}
.editorial-action svg { width: 15px; height: 15px; flex: none; }
main .editorial-action-bar .editorial-action:hover:not(:disabled) { background: var(--action-hover); }
main .editorial-action-bar :is([data-step="save"], [data-step="preview"], [data-step="publish"]):disabled {
    border-color: transparent;
    background: var(--action-muted);
    color: var(--action-disabled);
    cursor: not-allowed;
}
main .editorial-action-bar[data-next-action="save"] [data-step="save"]:enabled,
main .editorial-action-bar[data-next-action="preview"] [data-step="preview"]:enabled,
main .editorial-action-bar[data-next-action="publish"] [data-step="publish"]:enabled {
    border-color: transparent;
    background: var(--action-primary);
    color: #fff;
    box-shadow: 0 .2rem .45rem #14293e26;
}
main .editorial-action-bar[data-next-action="save"] [data-step="save"]:enabled:hover,
main .editorial-action-bar[data-next-action="preview"] [data-step="preview"]:enabled:hover,
main .editorial-action-bar[data-next-action="publish"] [data-step="publish"]:enabled:hover {
    background: var(--action-primary-hover);
}
[data-theme="dark"] .editorial-action-bar {
    --action-text: #d3e5fa;
    --action-border: #5f7490;
    --action-hover: #304155;
    --action-primary: #315f94;
    --action-primary-hover: #3b70aa;
    --action-disabled: #b0bccb;
    --action-muted: #2e3640;
}
.editorial-list label :is(select, textarea), #editorial-draft-form :is(select, textarea) { min-width: 0; width: 100%; padding: .5rem; font: inherit; }
.editorial-category-label { display: flex; align-items: baseline; flex-wrap: wrap; gap: .25rem .75rem; margin-bottom: .35rem; }
.editorial-category-label a { font-size: .82rem; text-underline-offset: .15rem; }
.editorial-category-field p { margin: .5rem 0 0; }
#nova-categoria { scroll-margin-top: 5rem; }
.editorial-preview-scroll { overflow: auto; border: 1px solid #8497b0; }
.editorial-preview-scroll iframe { display: block; width: 1024px; height: 44rem; border: 0; background: #fff; }
.editorial-preview-scroll .editorial-mobile-preview { width: min(390px, 100%); }
.editorial-actions { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; }
.editorial-actions .auth-form { margin: 0; }
