/* Native [edit] link: DLE removes the entire block when editing is unavailable. */
.gc-site .gc-article-page .gc-article-actions a:has(>.gc-story-edit){display:inline-flex;align-items:center;flex:0 0 auto;min-height:44px;max-width:100%;margin-inline-start:auto;padding:0;border:0;border-radius:var(--gc-radius);text-decoration:none;color:var(--gc-text);background:transparent}
.gc-site .gc-story-edit{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:40px;max-width:100%;padding:8px 14px;border:1px solid var(--gc-accent);border-radius:var(--gc-radius);background:color-mix(in srgb,var(--gc-accent) 12%,var(--gc-surface));color:var(--gc-text);font:600 14px/1.4 var(--gc-body);text-transform:none;letter-spacing:normal;overflow-wrap:anywhere}
.gc-site .gc-story-edit>.gc-icon{width:18px;height:18px;flex:none;fill:none;stroke:currentColor;stroke-width:2}
.gc-site .gc-article-page .gc-article-actions a:has(>.gc-story-edit):hover>.gc-story-edit{background:color-mix(in srgb,var(--gc-accent) 22%,var(--gc-surface));border-color:var(--gc-accent-light)}
.gc-site .gc-article-page .gc-article-actions a:has(>.gc-story-edit):active>.gc-story-edit{background:color-mix(in srgb,var(--gc-accent) 30%,var(--gc-surface))}
.gc-site .gc-article-page .gc-article-actions a:has(>.gc-story-edit):focus-visible{outline:3px solid var(--gc-accent);outline-offset:3px}
/* DLE appends this menu to body. Identify publication menus by their real handler,
   so profile/comment menus sharing #dropmenudiv retain their existing styles. */
.gc-site #dropmenudiv:has(>a[onclick^="ajax_prep_for_edit("]){box-sizing:border-box;width:224px!important;max-width:calc(100vw - 32px);max-height:calc(100dvh - 32px);overflow:auto;overscroll-behavior:contain;padding:6px;background:var(--gc-surface);color:var(--gc-text);border:1px solid var(--gc-control-border);border-radius:var(--gc-radius);box-shadow:var(--gc-shadow);z-index:90!important;font:400 14px/1.4 var(--gc-body)}
.gc-site #dropmenudiv:has(>a[onclick^="ajax_prep_for_edit("])>a{box-sizing:border-box;display:flex;align-items:center;min-height:44px;gap:8px;padding:10px 12px;white-space:normal;overflow-wrap:anywhere;border:0;border-radius:var(--gc-radius);background:transparent;color:var(--gc-text);text-decoration:none}
.gc-site #dropmenudiv:has(>a[onclick^="ajax_prep_for_edit("])>a:hover{background:var(--gc-elevated)}
.gc-site #dropmenudiv:has(>a[onclick^="ajax_prep_for_edit("])>a:active{background:color-mix(in srgb,var(--gc-accent) 15%,var(--gc-surface))}
.gc-site #dropmenudiv:has(>a[onclick^="ajax_prep_for_edit("])>a:focus-visible{outline:2px solid var(--gc-accent);outline-offset:-3px;background:var(--gc-elevated)}
.gc-site #dropmenudiv:has(>a[onclick^="ajax_prep_for_edit("])>a[onclick^="dle_news_delete "]{color:var(--gc-error);margin-top:4px;border-top:1px solid var(--gc-border);border-top-left-radius:0;border-top-right-radius:0}
@media(max-width:767px){.gc-site .gc-article-page .gc-article-actions a:has(>.gc-story-edit){margin-inline-start:auto;grid-column:1/-1;justify-self:end}}
