
/*
 * Sundeo Guide front-end styles
 * Every selector is intentionally scoped to .sundeo-guide so the plugin does not restyle the active theme, Elementor, or other plugins.
 */
.sundeo-guide {
    --sg-navy: #0b2746;
    --sg-navy-2: #123a65;
    --sg-blue: #315f9d;
    --sg-gold: #d6a94a;
    --sg-bg: #f4f6f8;
    --sg-panel: #ffffff;
    --sg-border: #dfe5eb;
    --sg-text: #17283b;
    --sg-muted: #667588;
    --sg-green: #2f8658;
    --sg-red: #b44a4a;
    --sg-radius-lg: 24px;
    --sg-radius-md: 16px;
    --sg-shadow: 0 14px 38px rgba(15, 39, 70, .08);
    box-sizing: border-box;
    width: 100%;
    color: var(--sg-text);
    font-family: inherit;
    background: var(--sg-bg);
    border: 1px solid var(--sg-border);
    border-radius: 28px;
    overflow: hidden;
    box-shadow: var(--sg-shadow);
    position: relative;
    z-index: 0;
}

.sundeo-guide *,
.sundeo-guide *::before,
.sundeo-guide *::after {
    box-sizing: border-box;
}

.sundeo-guide a {
    text-decoration: none;
}

.sundeo-guide svg {
    display: block;
    width: 1.25em;
    height: 1.25em;
}

.sundeo-guide__topbar {
    position: relative;
    z-index: 1;
    min-height: 92px;
    padding: 18px 24px;
    display: flex;
    align-items: center;
    gap: 22px;
    justify-content: space-between;
    background: var(--sg-panel);
    border-bottom: 1px solid var(--sg-border);
}

.sundeo-guide__brand {
    display: flex;
    align-items: center;
    min-width: 230px;
    gap: 12px;
    color: var(--sg-navy);
}

.sundeo-guide__brand-mark {
    width: 48px;
    height: 48px;
    border-radius: 15px;
    display: grid;
    place-items: center;
    color: var(--sg-gold);
    background: var(--sg-navy);
    flex: 0 0 auto;
}

.sundeo-guide__brand-mark svg {
    width: 30px;
    height: 30px;
}

.sundeo-guide__brand-mark img {
    display: block;
    width: 34px;
    height: 34px;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.sundeo-guide__brand strong,
.sundeo-guide__brand small {
    display: block;
}

.sundeo-guide__brand strong {
    font-size: 1.05rem;
    line-height: 1.15;
    letter-spacing: -.01em;
}

.sundeo-guide__brand small {
    margin-top: 3px;
    color: var(--sg-muted);
    font-size: .78rem;
}

.sundeo-guide__tools {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    flex: 1 1 auto;
}

.sundeo-guide__search {
    display: flex;
    align-items: center;
    gap: 8px;
    width: min(430px, 48vw);
    height: 48px;
    padding: 0 14px;
    background: #f7f9fb;
    border: 1px solid var(--sg-border);
    border-radius: 14px;
    color: var(--sg-muted);
}

.sundeo-guide__search input {
    width: 100%;
    min-width: 0;
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    color: var(--sg-text) !important;
    font: inherit !important;
    padding: 0 !important;
    margin: 0 !important;
    height: auto !important;
}

.sundeo-guide__role-toggle {
    display: inline-flex;
    align-items: center;
    padding: 4px;
    border-radius: 14px;
    background: #eef2f6;
    gap: 3px;
}

.sundeo-guide__role-toggle a {
    min-width: 68px;
    padding: 9px 14px;
    border-radius: 11px;
    color: var(--sg-muted);
    font-weight: 700;
    text-align: center;
    transition: background .18s ease, color .18s ease, transform .18s ease;
}

.sundeo-guide__role-toggle a:hover {
    color: var(--sg-navy);
}

.sundeo-guide__role-toggle a.is-active {
    color: #fff;
    background: var(--sg-navy);
    box-shadow: 0 4px 12px rgba(11, 39, 70, .15);
}

.sundeo-guide__mobile-toggle {
    display: none;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 8px 12px;
    border: 1px solid var(--sg-border);
    border-radius: 12px;
    background: #fff;
    color: var(--sg-navy);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.sundeo-guide__layout {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    min-height: 720px;
}

.sundeo-guide__sidebar {
    background: linear-gradient(180deg, var(--sg-navy) 0%, #0a3158 100%);
    color: #fff;
}

.sundeo-guide__sidebar-inner {
    position: sticky;
    top: 20px;
    max-height: calc(100vh - 40px);
    overflow: auto;
    padding: 22px 14px 24px;
}

.sundeo-guide__nav-group {
    margin-bottom: 7px;
}

.sundeo-guide__nav-parent-row {
    display: flex;
    align-items: center;
    gap: 4px;
}

.sundeo-guide__nav-parent {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 11px;
    min-height: 46px;
    padding: 9px 10px;
    border-radius: 13px;
    color: rgba(255,255,255,.86);
    font-weight: 700;
    transition: background .18s ease, color .18s ease;
}

.sundeo-guide__nav-parent:hover,
.sundeo-guide__nav-parent.is-current {
    color: #fff;
    background: rgba(255,255,255,.10);
}

.sundeo-guide__nav-icon {
    width: 31px;
    height: 31px;
    border-radius: 9px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    background: rgba(255,255,255,.08);
    color: var(--sg-gold);
}

.sundeo-guide__nav-icon svg {
    width: 18px;
    height: 18px;
}

.sundeo-guide__nav-expander {
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: rgba(255,255,255,.7);
    cursor: pointer;
    transition: background .18s ease, transform .18s ease;
}

.sundeo-guide__nav-expander:hover {
    background: rgba(255,255,255,.08);
}

.sundeo-guide__nav-group.is-open .sundeo-guide__nav-expander {
    transform: rotate(180deg);
}

.sundeo-guide__nav-children {
    display: none;
    margin: 3px 0 8px 42px;
    padding-left: 10px;
    border-left: 1px solid rgba(255,255,255,.13);
}

.sundeo-guide__nav-group.is-open .sundeo-guide__nav-children {
    display: block;
}

.sundeo-guide__nav-children a {
    display: block;
    padding: 8px 10px;
    margin: 2px 0;
    border-radius: 9px;
    color: rgba(255,255,255,.68);
    font-size: .92rem;
    line-height: 1.25;
}

.sundeo-guide__nav-children a:hover,
.sundeo-guide__nav-children a.is-current {
    color: #fff;
    background: rgba(255,255,255,.08);
}

.sundeo-guide__no-results {
    margin: 18px 8px;
    color: rgba(255,255,255,.65);
    font-size: .9rem;
}

.sundeo-guide__sidebar-help {
    display: flex;
    gap: 10px;
    margin: 24px 6px 0;
    padding: 14px;
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 15px;
    background: rgba(255,255,255,.06);
}

.sundeo-guide__sidebar-help > svg {
    flex: 0 0 auto;
    color: var(--sg-gold);
}

.sundeo-guide__sidebar-help strong,
.sundeo-guide__sidebar-help span {
    display: block;
}

.sundeo-guide__sidebar-help strong {
    font-size: .9rem;
}

.sundeo-guide__sidebar-help span {
    margin-top: 3px;
    color: rgba(255,255,255,.62);
    font-size: .8rem;
}

.sundeo-guide__content {
    min-width: 0;
    background:
        radial-gradient(circle at 100% 0, rgba(49,95,157,.08), transparent 28%),
        var(--sg-bg);
    padding: clamp(24px, 4vw, 54px);
}

.sundeo-guide__article {
    max-width: 900px;
    margin: 0 auto;
}

.sundeo-guide__article-header {
    display: grid;
    grid-template-columns: 68px 1fr;
    align-items: start;
    gap: 18px;
    margin-bottom: 28px;
}

.sundeo-guide__article-icon {
    width: 64px;
    height: 64px;
    border-radius: 19px;
    display: grid;
    place-items: center;
    background: #fff;
    color: var(--sg-blue);
    border: 1px solid var(--sg-border);
    box-shadow: 0 8px 24px rgba(15,39,70,.06);
}

.sundeo-guide__article-icon svg {
    width: 31px;
    height: 31px;
}

.sundeo-guide__eyebrow {
    margin: 2px 0 7px;
    color: var(--sg-gold);
    font-weight: 800;
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .11em;
}

.sundeo-guide__article h1 {
    margin: 0 !important;
    color: var(--sg-navy) !important;
    font: inherit !important;
    font-weight: 800 !important;
    font-size: clamp(2rem, 4vw, 3.15rem) !important;
    line-height: 1.06 !important;
    letter-spacing: -.035em !important;
}

.sundeo-guide__lede {
    max-width: 720px;
    margin: 12px 0 0 !important;
    color: var(--sg-muted) !important;
    font-size: 1.08rem !important;
    line-height: 1.6 !important;
}

.sundeo-guide__hero-image {
    margin: 0 0 28px !important;
    padding: 0;
    border-radius: var(--sg-radius-lg);
    overflow: hidden;
    border: 1px solid var(--sg-border);
    background: #fff;
    box-shadow: var(--sg-shadow);
}

.sundeo-guide__hero-image img {
    display: block;
    width: 100%;
    height: auto;
}

.sundeo-guide__article-body {
    padding: clamp(24px, 4vw, 44px);
    background: #fff;
    border: 1px solid var(--sg-border);
    border-radius: var(--sg-radius-lg);
    box-shadow: var(--sg-shadow);
}

.sundeo-guide__article-body > *:first-child {
    margin-top: 0 !important;
}

.sundeo-guide__article-body > *:last-child {
    margin-bottom: 0 !important;
}

.sundeo-guide__article-body h2,
.sundeo-guide__article-body h3,
.sundeo-guide__article-body h4 {
    color: var(--sg-navy) !important;
    font-family: inherit !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
}

.sundeo-guide__article-body h2 {
    margin: 1.8em 0 .65em !important;
    font-size: 1.55rem !important;
    letter-spacing: -.02em !important;
}

.sundeo-guide__article-body h3 {
    margin: 1.55em 0 .55em !important;
    font-size: 1.18rem !important;
}

.sundeo-guide__article-body p,
.sundeo-guide__article-body li {
    color: var(--sg-text) !important;
    font-size: 1rem !important;
    line-height: 1.72 !important;
}

.sundeo-guide__article-body p {
    margin: 0 0 1.05em !important;
}

.sundeo-guide__article-body ul,
.sundeo-guide__article-body ol {
    margin: .8em 0 1.3em 1.3em !important;
    padding: 0 !important;
}

.sundeo-guide__article-body li + li {
    margin-top: .42em !important;
}

.sundeo-guide__article-body a {
    color: var(--sg-blue) !important;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.sundeo-guide__callout {
    position: relative;
    margin: 22px 0 !important;
    padding: 18px 20px 18px 22px;
    border-radius: 16px;
    border: 1px solid #dce6f2;
    background: #f1f6fb;
    overflow: hidden;
}

.sundeo-guide__callout::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: var(--sg-blue);
}

.sundeo-guide__callout > strong {
    display: block;
    margin-bottom: 6px;
    color: var(--sg-navy);
}

.sundeo-guide__callout div > *:last-child {
    margin-bottom: 0 !important;
}

.sundeo-guide__callout--tip {
    background: #fff9eb;
    border-color: #f0dfae;
}

.sundeo-guide__callout--tip::before,
.sundeo-guide__callout--lead::before {
    background: var(--sg-gold);
}

.sundeo-guide__callout--lead {
    background: #fffaf0;
    border-color: #ead7a0;
}

.sundeo-guide__callout--warning {
    background: #fff3f1;
    border-color: #efd2cc;
}

.sundeo-guide__callout--warning::before {
    background: var(--sg-red);
}

.sundeo-guide__callout--success {
    background: #eff8f3;
    border-color: #cfe7d8;
}

.sundeo-guide__callout--success::before {
    background: var(--sg-green);
}

.sundeo-guide__pager {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 22px;
}

.sundeo-guide__pager-link {
    min-width: 0;
    padding: 17px 19px;
    border: 1px solid var(--sg-border);
    border-radius: 16px;
    background: #fff;
    color: var(--sg-navy);
    box-shadow: 0 7px 20px rgba(15,39,70,.04);
}

.sundeo-guide__pager-link:hover {
    border-color: #c9d5e1;
    transform: translateY(-1px);
}

.sundeo-guide__pager-link small,
.sundeo-guide__pager-link strong {
    display: block;
}

.sundeo-guide__pager-link small {
    margin-bottom: 4px;
    color: var(--sg-muted);
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.sundeo-guide__pager-link strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sundeo-guide__pager-link.is-next {
    text-align: right;
}

.sundeo-guide__empty {
    max-width: 620px;
    margin: 50px auto;
    padding: 42px;
    text-align: center;
    border-radius: var(--sg-radius-lg);
    background: #fff;
    border: 1px solid var(--sg-border);
    box-shadow: var(--sg-shadow);
}

.sundeo-guide__empty-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    border-radius: 20px;
    display: grid;
    place-items: center;
    color: var(--sg-blue);
    background: #edf3fa;
}

.sundeo-guide__empty h1 {
    margin: 0 0 10px !important;
    color: var(--sg-navy) !important;
    font-size: 2rem !important;
}

.sundeo-guide__empty p {
    color: var(--sg-muted) !important;
}

.sundeo-guide__button {
    display: inline-flex;
    margin-top: 12px;
    padding: 11px 17px;
    border-radius: 12px;
    color: #fff !important;
    background: var(--sg-navy);
    font-weight: 800;
}

@media (max-width: 900px) {
    .sundeo-guide {
        border-radius: 20px;
    }

    .sundeo-guide__topbar {
        flex-wrap: wrap;
        align-items: center;
        padding: 14px;
    }

    .sundeo-guide__mobile-toggle {
        display: inline-flex;
        order: 1;
    }

    .sundeo-guide__brand {
        min-width: 0;
        order: 2;
        flex: 1 1 auto;
    }

    .sundeo-guide__tools {
        order: 3;
        width: 100%;
    }

    .sundeo-guide__search {
        width: auto;
        flex: 1 1 auto;
    }

    .sundeo-guide__layout {
        display: block;
        min-height: 0;
    }

    .sundeo-guide__sidebar {
        display: none;
        position: relative;
    }

    .sundeo-guide.is-menu-open .sundeo-guide__sidebar {
        display: block;
    }

    .sundeo-guide__sidebar-inner {
        position: static;
        max-height: none;
        padding: 14px;
    }

    .sundeo-guide__content {
        padding: 24px 16px 30px;
    }
}

@media (max-width: 600px) {
    .sundeo-guide__brand-mark {
        width: 42px;
        height: 42px;
        border-radius: 13px;
    }

    .sundeo-guide__brand strong {
        font-size: .96rem;
    }

    .sundeo-guide__tools {
        align-items: stretch;
        flex-direction: column;
    }

    .sundeo-guide__search {
        width: 100%;
    }

    .sundeo-guide__role-toggle {
        width: 100%;
    }

    .sundeo-guide__role-toggle a {
        flex: 1 1 50%;
    }

    .sundeo-guide__article-header {
        grid-template-columns: 50px 1fr;
        gap: 13px;
    }

    .sundeo-guide__article-icon {
        width: 50px;
        height: 50px;
        border-radius: 15px;
    }

    .sundeo-guide__article-icon svg {
        width: 25px;
        height: 25px;
    }

    .sundeo-guide__article-body {
        padding: 22px 18px;
        border-radius: 18px;
    }

    .sundeo-guide__pager {
        grid-template-columns: 1fr;
    }

    .sundeo-guide__pager-link.is-next {
        text-align: left;
    }
}

/* Front-end WordPress administrator editor (v1.1.0). */
.sundeo-guide .sundeo-guide__admin-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 44px;
    padding: 9px 14px;
    border: 1px solid var(--sg-gold);
    border-radius: 13px;
    background: #fffaf0;
    color: var(--sg-navy);
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.sundeo-guide .sundeo-guide__admin-toggle:hover,
.sundeo-guide .sundeo-guide__admin-toggle[aria-pressed="true"] {
    color: #fff;
    background: var(--sg-navy);
    border-color: var(--sg-navy);
}

.sundeo-guide .sundeo-guide__admin-only-edit {
    display: none;
}

.sundeo-guide.is-admin-editing .sundeo-guide__admin-only-edit {
    display: inline-flex;
}

.sundeo-guide .sundeo-guide__nav-edit {
    width: 30px;
    height: 30px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid rgba(214,169,74,.48);
    border-radius: 9px;
    background: rgba(214,169,74,.12);
    color: #f3c96c;
    cursor: pointer;
}

.sundeo-guide .sundeo-guide__nav-edit:hover {
    background: var(--sg-gold);
    color: var(--sg-navy);
}

.sundeo-guide .sundeo-guide__nav-edit svg {
    width: 15px;
    height: 15px;
}

.sundeo-guide .sundeo-guide__nav-child-row {
    display: flex;
    align-items: center;
    gap: 3px;
}

.sundeo-guide .sundeo-guide__nav-child {
    flex: 1 1 auto;
    min-width: 0;
    display: flex !important;
    align-items: center;
    gap: 8px;
}

.sundeo-guide .sundeo-guide__nav-child-icon {
    width: 21px;
    height: 21px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    color: var(--sg-gold);
}

.sundeo-guide .sundeo-guide__nav-child-icon svg {
    width: 16px;
    height: 16px;
}

.sundeo-guide .sundeo-guide__custom-icon {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: inherit;
}

.sundeo-guide .sundeo-guide__nav-icon .sundeo-guide__custom-icon,
.sundeo-guide .sundeo-guide__nav-child-icon .sundeo-guide__custom-icon {
    object-fit: cover;
    border-radius: 7px;
}

.sundeo-guide .sundeo-guide__article-heading-copy {
    min-width: 0;
}

.sundeo-guide .sundeo-guide__article-header {
    position: relative;
}

.sundeo-guide .sundeo-guide__edit-section {
    align-self: start;
    justify-self: end;
    align-items: center;
    gap: 7px;
    min-height: 40px;
    padding: 8px 12px;
    border: 1px solid #d8e2ed;
    border-radius: 12px;
    background: #fff;
    color: var(--sg-navy);
    font: inherit;
    font-size: .86rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 5px 16px rgba(15,39,70,.05);
}

.sundeo-guide.is-admin-editing .sundeo-guide__article-header {
    grid-template-columns: 68px minmax(0, 1fr) auto;
}

.sundeo-guide .sundeo-guide__edit-section:hover {
    border-color: var(--sg-gold);
    background: #fffaf0;
}

.sundeo-guide .sundeo-guide__editor-backdrop[hidden] {
    display: none !important;
}

.sundeo-guide .sundeo-guide__editor-backdrop {
    position: fixed;
    z-index: 100000;
    inset: 0;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: max(28px, 4vh) 20px;
    background: rgba(5, 22, 42, .72);
    overflow: auto;
}

body.sundeo-guide-editor-open {
    overflow: hidden;
}

.sundeo-guide .sundeo-guide__editor {
    width: min(1040px, 100%);
    max-height: calc(100vh - 56px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 28px 90px rgba(0,0,0,.30);
}

.sundeo-guide .sundeo-guide__editor-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 24px;
    border-bottom: 1px solid var(--sg-border);
    background: #f8fafc;
}

.sundeo-guide .sundeo-guide__editor-header small {
    display: block;
    margin-bottom: 3px;
    color: var(--sg-gold);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.sundeo-guide .sundeo-guide__editor-header h2 {
    margin: 0 !important;
    color: var(--sg-navy) !important;
    font: inherit !important;
    font-size: 1.4rem !important;
    font-weight: 800 !important;
}

.sundeo-guide .sundeo-guide__editor-close {
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid var(--sg-border);
    border-radius: 12px;
    background: #fff;
    color: var(--sg-muted);
    font-size: 27px;
    line-height: 1;
    cursor: pointer;
}

.sundeo-guide .sundeo-guide__editor-form {
    min-height: 0;
    overflow: auto;
    padding: 22px 24px 0;
}

.sundeo-guide .sundeo-guide__editor-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.sundeo-guide .sundeo-guide__field {
    display: block;
    min-width: 0;
}

.sundeo-guide .sundeo-guide__field--wide {
    grid-column: 1 / -1;
}

.sundeo-guide .sundeo-guide__field > span,
.sundeo-guide .sundeo-guide__field-label {
    display: block;
    margin-bottom: 7px;
    color: var(--sg-navy);
    font-size: .84rem;
    font-weight: 800;
}

.sundeo-guide .sundeo-guide__field input[type="text"],
.sundeo-guide .sundeo-guide__field textarea,
.sundeo-guide .sundeo-guide__field select {
    display: block;
    width: 100%;
    min-height: 44px;
    margin: 0;
    padding: 10px 12px;
    border: 1px solid #cad5e1 !important;
    border-radius: 11px !important;
    background: #fff !important;
    color: var(--sg-text) !important;
    box-shadow: none !important;
    font: inherit !important;
}

.sundeo-guide .sundeo-guide__field textarea {
    min-height: 86px;
    resize: vertical;
}

.sundeo-guide .sundeo-guide__field-help {
    display: block;
    margin-top: 6px;
    color: var(--sg-muted);
    font-size: .77rem;
    line-height: 1.4;
}

.sundeo-guide .sundeo-guide__field-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 7px;
}

.sundeo-guide .sundeo-guide__field-label-row .sundeo-guide__field-label {
    margin-bottom: 0;
}

.sundeo-guide .sundeo-guide__editor-media-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 10px;
    border: 1px solid #cbd7e4;
    border-radius: 9px;
    background: #fff;
    color: var(--sg-navy);
    font: inherit;
    font-size: .78rem;
    font-weight: 800;
    cursor: pointer;
}

.sundeo-guide .sundeo-guide__editor-media-button svg {
    width: 16px;
    height: 16px;
}

.sundeo-guide .sundeo-guide__media-choice {
    padding: 13px;
    border: 1px solid var(--sg-border);
    border-radius: 14px;
    background: #f8fafc;
}

.sundeo-guide .sundeo-guide__media-preview {
    height: 112px;
    display: grid;
    place-items: center;
    margin-bottom: 10px;
    overflow: hidden;
    border: 1px dashed #c7d3df;
    border-radius: 11px;
    background: #fff;
    color: var(--sg-muted);
    font-size: .8rem;
}

.sundeo-guide .sundeo-guide__media-preview img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.sundeo-guide .sundeo-guide__media-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.sundeo-guide .sundeo-guide__media-actions button {
    padding: 7px 10px;
    border: 1px solid var(--sg-navy);
    border-radius: 9px;
    background: var(--sg-navy);
    color: #fff;
    font: inherit;
    font-size: .76rem;
    font-weight: 800;
    cursor: pointer;
}

.sundeo-guide .sundeo-guide__media-actions button.is-secondary {
    border-color: #cbd7e4;
    background: #fff;
    color: var(--sg-muted);
}

.sundeo-guide .sundeo-guide__editor-status {
    min-height: 28px;
    margin-top: 16px;
    padding: 5px 0;
    font-size: .86rem;
    font-weight: 700;
}

.sundeo-guide .sundeo-guide__editor-status.is-error { color: var(--sg-red); }
.sundeo-guide .sundeo-guide__editor-status.is-success { color: var(--sg-green); }
.sundeo-guide .sundeo-guide__editor-status.is-loading { color: var(--sg-muted); }

.sundeo-guide .sundeo-guide__editor-footer {
    position: sticky;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin: 0 -24px;
    padding: 14px 24px;
    border-top: 1px solid var(--sg-border);
    background: rgba(255,255,255,.97);
}

.sundeo-guide .sundeo-guide__editor-cancel,
.sundeo-guide .sundeo-guide__editor-save {
    min-height: 42px;
    padding: 9px 15px;
    border-radius: 11px;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.sundeo-guide .sundeo-guide__editor-cancel {
    border: 1px solid #cad5e1;
    background: #fff;
    color: var(--sg-muted);
}

.sundeo-guide .sundeo-guide__editor-save {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: 1px solid var(--sg-navy);
    background: var(--sg-navy);
    color: #fff;
}

.sundeo-guide .sundeo-guide__editor-save:disabled {
    opacity: .55;
    cursor: wait;
}

/* WordPress editor placed inside the Sundeo front-end modal. */
.sundeo-guide .wp-editor-wrap {
    border-radius: 11px;
    overflow: hidden;
}

.sundeo-guide .wp-editor-container {
    border: 1px solid #cad5e1;
}

.sundeo-guide .wp-editor-area {
    min-height: 310px;
}

@media (max-width: 900px) {
    .sundeo-guide .sundeo-guide__admin-toggle {
        width: 100%;
    }

    .sundeo-guide.is-admin-editing .sundeo-guide__article-header {
        grid-template-columns: 58px minmax(0, 1fr);
    }

    .sundeo-guide .sundeo-guide__edit-section {
        grid-column: 1 / -1;
        justify-self: start;
    }

    .sundeo-guide .sundeo-guide__editor-grid {
        grid-template-columns: 1fr;
    }

    .sundeo-guide .sundeo-guide__field--wide {
        grid-column: auto;
    }
}

@media (max-width: 600px) {
    .sundeo-guide .sundeo-guide__editor-backdrop {
        padding: 0;
    }

    .sundeo-guide .sundeo-guide__editor {
        width: 100%;
        min-height: 100vh;
        max-height: 100vh;
        border-radius: 0;
    }

    .sundeo-guide .sundeo-guide__editor-header,
    .sundeo-guide .sundeo-guide__editor-form {
        padding-left: 16px;
        padding-right: 16px;
    }

    .sundeo-guide .sundeo-guide__editor-footer {
        margin-left: -16px;
        margin-right: -16px;
        padding-left: 16px;
        padding-right: 16px;
    }
}


/*
 * Main-site navigation compatibility. The guide creates its own local stacking
 * context so theme/Elementor dropdown menus can remain above it. These rules
 * are loaded only on the configured Sundeo Guide page.
 */
body .elementor-location-header,
body header.elementor,
body header.site-header {
    z-index: 1000;
}

body .elementor-location-header .elementor-nav-menu--dropdown,
body .elementor-location-header .sub-menu,
body header.site-header .sub-menu {
    z-index: 1001 !important;
}
