/* Contextual administration icons */
body.theme-eclipse .admin-commandcontrol li a::before{display:none!important}
body.theme-eclipse .admin-commandcontrol .eclipse-command-icon{display:block;flex:0 0 auto;width:2.9rem;height:2.9rem;max-width:2.9rem;max-height:2.9rem;margin:0 0 auto;padding:.65rem;color:#fff;background:linear-gradient(135deg,var(--eclipse-primary),var(--eclipse-secondary));border:0;border-radius:.9rem;box-shadow:0 10px 22px color-mix(in srgb,var(--eclipse-primary) 25%,transparent)}
body.theme-eclipse .admin-commandcontrol li:nth-child(4n+2) .eclipse-command-icon{background:linear-gradient(135deg,var(--eclipse-secondary),#db2777)}
body.theme-eclipse .admin-commandcontrol li:nth-child(4n+3) .eclipse-command-icon{background:linear-gradient(135deg,#0891b2,#2563eb)}
body.theme-eclipse .admin-commandcontrol li:nth-child(4n+4) .eclipse-command-icon{background:linear-gradient(135deg,#059669,#0d9488)}

/* Definitive reset of Denim bullets/background arrows in side navigation. */
body.theme-eclipse #leftblocks li,body.theme-eclipse #rightblocks li,body.theme-eclipse #leftblocks .sideoption,body.theme-eclipse #rightblocks .sideoption{list-style:none!important;background-image:none!important}
body.theme-eclipse #leftblocks .sideoption a::before,body.theme-eclipse #rightblocks .sideoption a::before{content:none!important;display:none!important}
body.theme-eclipse #leftblocks .sideoption a,body.theme-eclipse #rightblocks .sideoption a,body.theme-eclipse #leftblocks .sideoption a:link,body.theme-eclipse #rightblocks .sideoption a:link,body.theme-eclipse #leftblocks .sideoption a:visited,body.theme-eclipse #rightblocks .sideoption a:visited{position:relative;display:flex!important;align-items:center;width:100%;padding:.62rem 1.45rem .62rem .25rem!important;background:none!important;background-image:none!important;text-indent:0!important}
body.theme-eclipse #leftblocks .sideoption a::after,body.theme-eclipse #rightblocks .sideoption a::after{content:"\00203a";position:absolute;right:.25rem;top:50%;color:var(--eclipse-muted);font-size:1.15rem;transform:translateY(-50%)}
body.theme-eclipse #leftblocks .sideoption a:hover::after,body.theme-eclipse #rightblocks .sideoption a:hover::after{color:var(--eclipse-primary);transform:translate(.15rem,-50%)}

/* Shared seam overlap for detached navigation styles. */
body.theme-eclipse.menu-style-floating #navigation,body.theme-eclipse.menu-style-contrast #navigation{position:relative;z-index:20}
body.theme-eclipse:not(.eclipse-admin-page).menu-style-floating #navigation,body.theme-eclipse:not(.eclipse-admin-page).menu-style-contrast #navigation{margin-top:var(--eclipse-nav-overlap)}

/* 1. Floating glass: detached navigation island overlapping the hero. */
body.theme-eclipse.menu-style-floating #navigation{width:min(calc(100% - 2rem),var(--eclipse-max));margin-right:auto;margin-left:auto;background:transparent;border:0;box-shadow:none;backdrop-filter:none}
body.theme-eclipse.menu-style-floating .navigation_content{width:max-content;max-width:100%;min-height:3.5rem;padding:.42rem;margin-inline:0;background:color-mix(in srgb,var(--eclipse-surface) 86%,transparent);border:1px solid color-mix(in srgb,var(--eclipse-border) 72%,transparent);border-radius:1.15rem;box-shadow:0 18px 48px rgba(22,30,50,.15);backdrop-filter:blur(18px)}
body.theme-eclipse.menu-style-floating #navigation_ul{gap:.2rem}
body.theme-eclipse.menu-style-floating #navigation_ul a{padding:.72rem 1.2rem;border-radius:.75rem;background:transparent}
body.theme-eclipse.menu-style-floating #navigation_ul a:hover,body.theme-eclipse.menu-style-floating #navigation_ul .selected a{color:#fff;background:linear-gradient(135deg,var(--eclipse-primary),var(--eclipse-secondary));box-shadow:0 8px 20px color-mix(in srgb,var(--eclipse-primary) 22%,transparent)}

/* 2. Gradient capsule: one continuous vibrant control. */
body.theme-eclipse.menu-style-capsule #navigation{padding:.8rem 0;background:var(--eclipse-bg);border:0;box-shadow:none}
body.theme-eclipse.menu-style-capsule .navigation_content{width:max-content;max-width:calc(100% - 2rem);min-height:0;padding:.32rem;border-radius:999px;background:linear-gradient(120deg,color-mix(in srgb,var(--eclipse-primary) 76%,#000),color-mix(in srgb,var(--eclipse-secondary) 76%,#000));box-shadow:0 12px 30px color-mix(in srgb,var(--eclipse-primary) 22%,transparent)}
body.theme-eclipse.menu-style-capsule #navigation_ul a,body.theme-eclipse.menu-style-capsule #navigation_ul a:link,body.theme-eclipse.menu-style-capsule #navigation_ul a:visited{padding:.62rem 1.15rem;color:rgba(255,255,255,.82);border-radius:999px}
body.theme-eclipse.menu-style-capsule #navigation_ul a:hover,body.theme-eclipse.menu-style-capsule #navigation_ul .selected a{color:var(--eclipse-primary);background:#fff}

/* 3. Editorial line: typographic, spacious and intentionally unbuttoned. */
body.theme-eclipse.menu-style-editorial #navigation{position:static;background:var(--eclipse-surface);border-bottom:1px solid var(--eclipse-border);box-shadow:none}
body.theme-eclipse.menu-style-editorial .navigation_content{min-height:4.5rem}
body.theme-eclipse.menu-style-editorial #navigation_ul{gap:0}
body.theme-eclipse.menu-style-editorial #navigation_ul li+li{border-left:1px solid var(--eclipse-border)}
body.theme-eclipse.menu-style-editorial #navigation_ul a{position:relative;padding:1rem 1.6rem;border-radius:0;background:transparent;font-size:.78rem;font-weight:850;text-transform:uppercase;letter-spacing:.14em}
body.theme-eclipse.menu-style-editorial #navigation_ul a::after{content:"";position:absolute;left:1.6rem;right:1.6rem;bottom:.7rem;height:3px;background:linear-gradient(90deg,var(--eclipse-primary),var(--eclipse-secondary));transform:scaleX(0);transform-origin:left;transition:transform .2s ease}
body.theme-eclipse.menu-style-editorial #navigation_ul a:hover::after,body.theme-eclipse.menu-style-editorial #navigation_ul .selected a::after{transform:scaleX(1)}

/* 4. Contrast dock: dark application-like navigation using the shared hero seam. */
body.theme-eclipse.menu-style-contrast #navigation{background:#111827;border:0;box-shadow:0 15px 35px rgba(15,23,42,.18)}
@media(min-width:48rem){body.theme-eclipse.menu-style-contrast #navigation.eclipse-plugin-menu{margin:-2rem auto 1.2rem}}
body.theme-eclipse.menu-style-contrast .navigation_content{min-height:4.25rem}
body.theme-eclipse.menu-style-contrast #navigation_ul{gap:.5rem}
body.theme-eclipse.menu-style-contrast #navigation_ul a,body.theme-eclipse.menu-style-contrast #navigation_ul a:link,body.theme-eclipse.menu-style-contrast #navigation_ul a:visited{padding:.7rem 1.1rem;color:#cbd5e1;border:1px solid transparent;border-radius:.65rem}
body.theme-eclipse.menu-style-contrast #navigation_ul a:hover,body.theme-eclipse.menu-style-contrast #navigation_ul .selected a{color:#fff;background:#263149;border-color:#3b4966}

@media(max-width:47.99rem){body.theme-eclipse:not(.eclipse-admin-page).menu-style-floating #navigation,body.theme-eclipse:not(.eclipse-admin-page).menu-style-contrast #navigation{margin-top:var(--eclipse-nav-overlap-mobile)}body.theme-eclipse.menu-style-floating #navigation{width:calc(100% - 1rem)}body.theme-eclipse.menu-style-floating .navigation_content,body.theme-eclipse.menu-style-capsule .navigation_content{width:100%;max-width:100%;border-radius:.9rem}body.theme-eclipse.menu-style-editorial #navigation_ul li+li{border-left:0}body.theme-eclipse.menu-style-capsule #navigation{padding:.5rem}}

/* Local archive updater */
.eclipse-updater{display:grid;grid-template-columns:minmax(0,1fr) minmax(18rem,.8fr);gap:1.5rem;align-items:center;margin-top:2rem;padding:1.4rem;border:1px solid #3b4761;border-radius:1rem;background:rgba(255,255,255,.045)}
.eclipse-updater h3{margin:.2rem 0;color:#fff;font-size:1.35rem}.eclipse-updater p{margin:0}.eclipse-updater form{display:grid;gap:.75rem}.eclipse-updater label{display:grid;gap:.45rem;color:#e2e8f0}.eclipse-updater input[type=file]{width:100%;padding:.65rem;color:#e2e8f0;background:#111827;border:1px dashed #64748b;border-radius:.65rem}.eclipse-updater input[type=file]::file-selector-button{margin-right:.75rem;padding:.5rem .75rem;color:#fff;background:#475569;border:0;border-radius:.45rem;cursor:pointer}

/* Mobile block headings: fully detach them from Denim's collapsible-title skin. */
@media(max-width:47.99rem){body.theme-eclipse #leftblocks .block-title,body.theme-eclipse #rightblocks .block-title,body.theme-eclipse .block-left .block-title,body.theme-eclipse .block-right .block-title,body.theme-eclipse .block-list .block-title{position:static!important;display:block!important;float:none!important;width:auto!important;height:auto!important;min-height:0!important;margin:0 0 .75rem!important;padding:0 0 .65rem!important;color:var(--eclipse-text)!important;background:transparent!important;background-image:none!important;border:0!important;border-bottom:2px solid color-mix(in srgb,var(--eclipse-primary) 28%,var(--eclipse-border))!important;border-radius:0!important;box-shadow:none!important;font-size:1rem!important;font-weight:800!important;line-height:1.3!important;text-align:left!important;text-indent:0!important;transform:none!important}body.theme-eclipse #leftblocks .block-title::before,body.theme-eclipse #leftblocks .block-title::after,body.theme-eclipse #rightblocks .block-title::before,body.theme-eclipse #rightblocks .block-title::after,body.theme-eclipse .block-list .block-title::before,body.theme-eclipse .block-list .block-title::after{content:none!important;display:none!important}body.theme-eclipse .block-left,body.theme-eclipse .block-right,body.theme-eclipse .block-list{margin:0 0 1rem!important;padding:1rem!important;border-radius:var(--eclipse-radius)!important}.eclipse-updater{grid-template-columns:1fr}}

/* Administration spacing and active side item */
body.theme-eclipse #main-content>.admin-commandcontrol,body.theme-eclipse #main-content>.admin-commandcontrol+*,body.theme-eclipse #main-content>h2+ul.admin-commandcontrol{margin-inline:clamp(1rem,2.5vw,1.75rem)!important}
body.theme-eclipse #main-content>h2,body.theme-eclipse #main-content>h3{margin-inline:clamp(1rem,2.5vw,1.75rem)}
body.theme-eclipse #main-content>.admin-commandcontrol{margin-block:1rem 2rem!important}
body.theme-eclipse #leftblocks .sideoption_off,body.theme-eclipse #rightblocks .sideoption_off{display:block!important;float:none!important;width:auto!important;height:auto!important;min-height:2.55rem!important;margin:0!important;padding:.62rem 1.45rem .62rem .25rem!important;overflow:visible!important;color:var(--eclipse-primary)!important;background:none!important;line-height:1.4!important;white-space:normal!important;text-indent:0!important}
body.theme-eclipse #leftblocks .sideoption_off span,body.theme-eclipse #rightblocks .sideoption_off span{display:inline!important;float:none!important;height:auto!important;line-height:inherit!important}
body.theme-eclipse #leftblocks .block-list,body.theme-eclipse #rightblocks .block-list{overflow:visible!important}

/* Editorial shortcuts, visible only to users allowed to edit stories. */
.eclipse-editor-links{display:flex;flex-wrap:wrap;gap:.65rem;margin-top:1.5rem}.eclipse-editor-links a,.eclipse-editor-links a:link,.eclipse-editor-links a:visited{display:inline-flex;align-items:center;gap:.35rem;padding:.58rem .85rem;color:#fff;background:rgba(255,255,255,.13);border:1px solid rgba(255,255,255,.3);border-radius:999px;text-decoration:none;backdrop-filter:blur(8px)}.eclipse-editor-links a:first-child{color:var(--eclipse-primary);background:#fff;border-color:#fff;font-weight:800}.eclipse-editor-links a:hover{transform:translateY(-1px);background:rgba(255,255,255,.22)}.header-style-minimal .eclipse-editor-links a{color:var(--eclipse-text);border-color:var(--eclipse-border)}.header-style-minimal .eclipse-editor-links a:first-child{color:#fff;background:var(--eclipse-primary);border-color:var(--eclipse-primary)}

/* Command page owns its spacing instead of relying on inherited admin wrappers. */
body.theme-eclipse .eclipse-command-page{display:block;padding:clamp(1rem,2.8vw,2rem)!important}
body.theme-eclipse .eclipse-command-page>h2,body.theme-eclipse .eclipse-command-page>h3{margin:1.5rem 0 .85rem!important;padding:0!important}
body.theme-eclipse .eclipse-command-page>h2:first-of-type{margin-top:0!important}
body.theme-eclipse .eclipse-command-page>.admin-commandcontrol{margin:0 0 2rem!important;padding:0!important}

/* The current admin link must remain fully readable regardless of Denim media rules. */
body.theme-eclipse #leftblocks nav.block-list-content,body.theme-eclipse #rightblocks nav.block-list-content{display:block!important;height:auto!important;max-height:none!important;min-height:0!important;padding:.35rem 0!important;overflow:visible!important}
body.theme-eclipse #leftblocks nav.block-list-content>ul,body.theme-eclipse #rightblocks nav.block-list-content>ul{display:block!important;height:auto!important;max-height:none!important;min-height:0!important;margin:0!important;padding:0!important;overflow:visible!important}
body.theme-eclipse #leftblocks li.adminoption_off.sideoption_off,body.theme-eclipse #rightblocks li.adminoption_off.sideoption_off{display:block!important;position:static!important;float:none!important;clear:both!important;width:100%!important;height:auto!important;max-height:none!important;min-height:2.8rem!important;margin:0!important;padding:.72rem .35rem!important;overflow:visible!important;color:var(--eclipse-primary)!important;background:color-mix(in srgb,var(--eclipse-primary) 8%,transparent)!important;border:0!important;border-left:3px solid var(--eclipse-primary)!important;border-radius:.35rem!important;box-shadow:none!important;font-size:1rem!important;font-weight:800!important;line-height:1.45!important;white-space:normal!important;text-overflow:clip!important;text-indent:0!important}

/* Central Geeklog admin blocks and their titles */
body.theme-eclipse.eclipse-admin-page #centerblocks section.block-center,body.theme-eclipse.eclipse-admin-page #centerblocks div.block-center{margin:0 0 1.5rem!important;padding:0!important;overflow:hidden!important;background:var(--eclipse-surface)!important;border:1px solid var(--eclipse-border)!important;border-radius:var(--eclipse-radius)!important;box-shadow:var(--eclipse-shadow)!important}
body.theme-eclipse.eclipse-admin-page #centerblocks section.block-center>h2,body.theme-eclipse.eclipse-admin-page #centerblocks div.block-center>h2,body.theme-eclipse.eclipse-admin-page #centerblocks section.block-center>.block-title,body.theme-eclipse.eclipse-admin-page #centerblocks div.block-center>.block-title{display:flex!important;align-items:center!important;min-height:4.25rem!important;margin:0!important;padding:1rem clamp(1rem,2.8vw,2rem)!important;color:var(--eclipse-text)!important;background:linear-gradient(90deg,color-mix(in srgb,var(--eclipse-primary) 11%,var(--eclipse-surface)),var(--eclipse-surface))!important;border:0!important;border-bottom:1px solid var(--eclipse-border)!important;border-radius:0!important;box-shadow:none!important;font-size:clamp(1.15rem,2.2vw,1.45rem)!important;font-weight:850!important;line-height:1.25!important;letter-spacing:-.025em!important;text-indent:0!important}
body.theme-eclipse.eclipse-admin-page #centerblocks section.block-center>h2::before,body.theme-eclipse.eclipse-admin-page #centerblocks div.block-center>h2::before{content:"";flex:0 0 auto;width:.55rem;height:2rem;margin-right:.8rem;background:linear-gradient(var(--eclipse-primary),var(--eclipse-secondary));border-radius:999px}
body.theme-eclipse.eclipse-admin-page #centerblocks section.block-center>.block-center-content,body.theme-eclipse.eclipse-admin-page #centerblocks div.block-center>.block-center-content{padding:clamp(1rem,2.8vw,2rem)!important}
body.theme-eclipse.eclipse-admin-page #centerblocks .block-center-content>.eclipse-command-page{padding:0!important}

/* Limit action icons only; content previews and uploaded images remain untouched. */
body.theme-eclipse.eclipse-admin-page #main-content a>img[src*="/layout/eclipse/images/"],body.theme-eclipse.eclipse-admin-page #main-content button>img,body.theme-eclipse.eclipse-admin-page #main-content input[type=image],body.theme-eclipse.eclipse-admin-page #main-content .navi img,body.theme-eclipse.eclipse-admin-page #main-content td img[src*="/images/admin/"],body.theme-eclipse.eclipse-admin-page #main-content td img[src*="/images/icons/"]{display:inline-block!important;width:1.35rem!important;height:1.35rem!important;max-width:1.35rem!important;max-height:1.35rem!important;margin:.1rem .25rem!important;padding:0!important;object-fit:contain!important;vertical-align:middle!important;border:0!important;box-shadow:none!important}
body.theme-eclipse.eclipse-admin-page.admin-ui-mode-modern #main-content .admin-commandcontrol li a>img{display:none!important;width:0!important;height:0!important;max-width:0!important;max-height:0!important;margin:0!important}
body.theme-eclipse.eclipse-admin-page.admin-ui-mode-classic #main-content .admin-commandcontrol li a>img{display:block;width:2.6rem;height:2.6rem;max-width:2.6rem;max-height:2.6rem;margin:.25rem auto .7rem;object-fit:contain}
body.theme-eclipse.eclipse-admin-page #main-content input[type=image]{min-width:1.35rem!important;min-height:1.35rem!important;background:transparent!important}

/* Sort/order/action images can sit directly inside table cells. */
body.theme-eclipse.eclipse-admin-page #main-content th img[src*="/layout/eclipse/images/"],body.theme-eclipse.eclipse-admin-page #main-content td img[src*="/layout/eclipse/images/"],body.theme-eclipse.eclipse-admin-page #main-content th a>img,body.theme-eclipse.eclipse-admin-page #main-content td a>img{display:inline-block!important;width:1.25rem!important;height:1.25rem!important;min-width:0!important;min-height:0!important;max-width:1.25rem!important;max-height:1.25rem!important;margin:.1rem .2rem!important;padding:0!important;object-fit:contain!important;vertical-align:middle!important;background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important}

/* Put the edit permission where it belongs: in each story's metadata. */
body.theme-eclipse .story-edit-link:empty{display:none}.story-edit-link a{display:inline-flex;align-items:center;gap:.3rem;font-weight:750;text-decoration:none}.story-edit-link a img{display:none!important}.story-edit-link a:hover{text-decoration:underline}

/* Public action icons must not inherit unrestricted content-image dimensions. */
body.theme-eclipse .editlink>img,body.theme-eclipse a.editlink img,body.theme-eclipse .story_icon img{display:inline-block;width:1.2rem;height:1.2rem;min-width:0;min-height:0;max-width:1.2rem;max-height:1.2rem;margin:.1rem .2rem;padding:0;object-fit:contain;vertical-align:middle;background:transparent;border:0;box-shadow:none}
body.theme-eclipse .story_status>li:empty,body.theme-eclipse .story_status>li[hidden]{display:none!important}
body.theme-eclipse th.admin-list-headerfield img,body.theme-eclipse th.admin-list-headerfield a>img{display:inline-block;width:.9rem;height:.9rem;min-width:0;min-height:0;max-width:.9rem;max-height:.9rem;margin:0 .15rem;padding:0;object-fit:contain;vertical-align:middle;background:transparent;border:0;box-shadow:none}
body.theme-eclipse .block-left-content .uk-align-left>a>img[src*="/layout/eclipse/images/"],body.theme-eclipse .block-left-content .uk-align-right>a>img[src*="/layout/eclipse/images/"],body.theme-eclipse .block-right-content .uk-align-left>a>img[src*="/layout/eclipse/images/"],body.theme-eclipse .block-right-content .uk-align-right>a>img[src*="/layout/eclipse/images/"]{display:inline-block;width:1.2rem;height:1.2rem;min-width:0;min-height:0;max-width:1.2rem;max-height:1.2rem;margin:.1rem .2rem;padding:0;object-fit:contain;vertical-align:middle;background:transparent;border:0;border-radius:0;box-shadow:none}
body.theme-eclipse img[src*="/layout/eclipse/images/edit.svg"],body.theme-eclipse img[src*="/layout/eclipse/images/copy.svg"],body.theme-eclipse img[src*="/layout/eclipse/images/deleteitem.svg"]{display:inline-block;width:1.2rem;height:1.2rem;min-width:0;min-height:0;max-width:1.2rem;max-height:1.2rem;margin:.1rem .2rem;padding:0;object-fit:contain;vertical-align:middle;background:transparent;border:0;border-radius:0;box-shadow:none}

.eclipse-topic-heading{margin:clamp(1rem,2vw,1.5rem) 0 .8rem;font-size:clamp(1.7rem,3vw,2.4rem)}


/* Optional dark editorial strip: retains the editorial layout and spacing. */
body.theme-eclipse.menu-style-editorial-dark #navigation {
    background: #24272b;
    margin-top: 0;
    border-top: 0;
    border-bottom-color: #24272b;
}
body.theme-eclipse.menu-style-editorial-dark #navigation .navigation_content {
    background: transparent;
}
body.theme-eclipse.menu-style-editorial-dark #navigation_ul > li > a,
body.theme-eclipse.menu-style-editorial-dark #navigation_ul > li > a:link,
body.theme-eclipse.menu-style-editorial-dark #navigation_ul > li > a:visited {
    color: #f2f3f4;
}
body.theme-eclipse.menu-style-editorial-dark #navigation_ul > li > a:hover,
body.theme-eclipse.menu-style-editorial-dark #navigation_ul > li > a:focus-visible,
body.theme-eclipse.menu-style-editorial-dark #navigation_ul > li.selected > a {
    color: #ffffff;
}
body.theme-eclipse.menu-style-editorial-dark #navigation_ul li + li {
    border-left-color: rgba(255,255,255,.16);
}
body.theme-eclipse.menu-style-editorial-dark #navigation_ul > li > a::after {
    background: var(--eclipse-secondary);
}
