/* =========================================================
   SenScope Editor Blocks v1.3
   Editorial callouts with a crisp game-HUD / panel feel.
   No glossy gradients: depth comes from hard borders,
   offset shadows, highlights and layered planes.
========================================================= */

.ss-callout {
    --ss-callout-accent: #168d73;
    --ss-callout-accent-dark: #0f6957;
    --ss-callout-bg: #f4faf8;
    --ss-callout-border: #168d73;
    --ss-callout-shadow: #c4ddd6;
    --ss-callout-ink: #153957;

    position: relative;
    display: grid;
    grid-template-columns: 58px 3px minmax(0, 1fr);
    column-gap: 16px;
    align-items: center;

    width: 100%;
    margin: 38px 0 44px;
    padding: 22px 24px 22px 20px;

    border: 3px solid var(--ss-callout-border);
    border-radius: 5px;
    background: var(--ss-callout-bg);
    color: var(--ss-callout-ink);

    box-shadow:
        6px 6px 0 var(--ss-callout-shadow),
        inset 0 2px 0 rgba(255, 255, 255, .92),
        inset 2px 0 0 rgba(255, 255, 255, .45);
}

/* Small hardware-like corner accents. */
.ss-callout::before,
.ss-callout::after {
    content: "";
    position: absolute;
    z-index: 2;
    width: 18px;
    height: 6px;
    background: var(--ss-callout-accent);
    border: 2px solid var(--ss-callout-accent-dark);
}

.ss-callout::before {
    top: -3px;
    right: 24px;
    border-top: 0;
}

.ss-callout::after {
    left: 24px;
    bottom: -3px;
    border-bottom: 0;
}

/* =========================================================
   ICON / MARK
========================================================= */

.ss-callout__mark {
    position: relative;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    justify-self: center;

    border: 3px solid var(--ss-callout-accent-dark);
    border-radius: 4px;
    background: var(--ss-callout-accent);
    color: #fff;

    box-shadow:
        3px 3px 0 var(--ss-callout-accent-dark),
        inset 0 2px 0 rgba(255, 255, 255, .42),
        inset 2px 0 0 rgba(255, 255, 255, .20);
}

.ss-callout__mark::after {
    content: "";
    position: absolute;
    right: 4px;
    bottom: 4px;
    width: 6px;
    height: 6px;
    border-right: 2px solid rgba(255,255,255,.55);
    border-bottom: 2px solid rgba(255,255,255,.55);
}

.ss-callout__icon {
    display: block;
    font-size: 17px;
    font-weight: 900;
    line-height: 1;
}

/* =========================================================
   DIVIDER
========================================================= */

.ss-callout__rule {
    width: 3px;
    height: calc(100% - 4px);
    min-height: 58px;
    background: var(--ss-callout-accent-dark);
    box-shadow: 2px 0 0 rgba(255,255,255,.72);
}

/* =========================================================
   CONTENT
========================================================= */

.ss-callout__content {
    min-width: 0;
    padding: 2px 0;
}

.ss-callout__label {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    margin: 0 0 8px;
    padding: 3px 9px 2px;

    border: 2px solid var(--ss-callout-accent-dark);
    border-radius: 3px;
    background: #fff;
    color: var(--ss-callout-accent-dark);

    box-shadow: 2px 2px 0 var(--ss-callout-shadow);

    font-size: 9px;
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: .15em;
}

.ss-callout__text {
    margin: 0 !important;
    color: var(--ss-callout-ink);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.85;
    letter-spacing: .005em;
}

.ss-callout__source-wrap {
    grid-column: 3;
    margin-top: 14px;
    padding: 11px 0 0;
    border-top: 2px solid color-mix(in srgb, var(--ss-callout-accent) 32%, #fff);
}

.ss-callout__source {
    margin: 0 !important;
    color: #5f7483;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.7;
}

/* =========================================================
   VARIANTS
========================================================= */

/* POINT */
.ss-callout--point {
    --ss-callout-accent: #149473;
    --ss-callout-accent-dark: #0b6651;
    --ss-callout-bg: #f2faf7;
    --ss-callout-border: #149473;
    --ss-callout-shadow: #bddbd2;
}

/* Teacher View */
.ss-callout--teacher {
    --ss-callout-accent: #2f7fb5;
    --ss-callout-accent-dark: #1d5f8f;
    --ss-callout-bg: #f1f8fc;
    --ss-callout-border: #2f7fb5;
    --ss-callout-shadow: #bfd8e7;
}

/* Caution */
.ss-callout--caution {
    --ss-callout-accent: #c18a24;
    --ss-callout-accent-dark: #8e6219;
    --ss-callout-bg: #fff9e9;
    --ss-callout-border: #c18a24;
    --ss-callout-shadow: #ead8a8;
}

/* Source / Data */
.ss-callout--source {
    --ss-callout-accent: #244c70;
    --ss-callout-accent-dark: #153957;
    --ss-callout-bg: #f3f7fa;
    --ss-callout-border: #244c70;
    --ss-callout-shadow: #c9d7e1;
}

/* =========================================================
   GUTENBERG
========================================================= */

.editor-styles-wrapper .ss-callout {
    font-family: inherit;
}

.editor-styles-wrapper .ss-callout .block-editor-rich-text__editable {
    min-width: 0;
}

/* Keep selection outlines from fighting the HUD frame too much. */
.editor-styles-wrapper .ss-callout.is-selected {
    outline-offset: 5px;
}

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

@media (max-width: 768px) {
    .ss-callout {
        grid-template-columns: 46px 3px minmax(0, 1fr);
        column-gap: 11px;
        margin: 32px 0 38px;
        padding: 18px 14px 18px 12px;
        border-width: 2px;
        box-shadow:
            4px 4px 0 var(--ss-callout-shadow),
            inset 0 2px 0 rgba(255, 255, 255, .92);
    }

    .ss-callout::before,
    .ss-callout::after {
        width: 14px;
        height: 5px;
        border-width: 2px;
    }

    .ss-callout::before {
        top: -2px;
        right: 16px;
    }

    .ss-callout::after {
        left: 16px;
        bottom: -2px;
    }

    .ss-callout__mark {
        width: 34px;
        height: 34px;
        border-width: 2px;
        box-shadow:
            2px 2px 0 var(--ss-callout-accent-dark),
            inset 0 2px 0 rgba(255,255,255,.38);
    }

    .ss-callout__icon {
        font-size: 14px;
    }

    .ss-callout__rule {
        min-height: 52px;
    }

    .ss-callout__label {
        min-height: 21px;
        margin-bottom: 6px;
        padding: 2px 7px;
        border-width: 1.5px;
        box-shadow: 2px 2px 0 var(--ss-callout-shadow);
        font-size: 8px;
    }

    .ss-callout__text {
        font-size: 15px;
        line-height: 1.8;
    }

    .ss-callout__source-wrap {
        grid-column: 3;
        margin-top: 11px;
        padding-top: 9px;
    }
}

/* =========================================================
   SenScope Editor Blocks v1.3 additions
   Unified HUD language for headings, +/- panels, article
   overview, Q&A, related links and article-end navigation.
========================================================= */

/* PLUS */
.ss-callout--plus {
    --ss-callout-accent: #2f7fb5;
    --ss-callout-accent-dark: #1d5f8f;
    --ss-callout-bg: #f1f8fc;
    --ss-callout-border: #2f7fb5;
    --ss-callout-shadow: #bfd8e7;
}

/* MINUS */
.ss-callout--minus {
    --ss-callout-accent: #d44b4b;
    --ss-callout-accent-dark: #a52e2e;
    --ss-callout-bg: #fff4f4;
    --ss-callout-border: #d44b4b;
    --ss-callout-shadow: #edc5c5;
}

/* =========================================================
   ARTICLE HEADINGS / CORE TYPOGRAPHY HUD
========================================================= */

body.single-post .entry-content h2,
.editor-styles-wrapper h2 {
    position: relative;
    margin: 64px 0 30px !important;
    padding: 18px 22px 18px 24px !important;
    border: 3px solid #153957 !important;
    border-left: 7px solid #18a3a3 !important;
    border-radius: 4px !important;
    background: #153957 !important;
    color: #fff !important;
    box-shadow: 6px 6px 0 #bfd3df !important;
    font-size: clamp(26px, 3vw, 34px) !important;
    font-weight: 900 !important;
    line-height: 1.4 !important;
    letter-spacing: -.025em !important;
}

body.single-post .entry-content h2::before,
.editor-styles-wrapper h2::before {
    content: "SECTION" !important;
    position: absolute !important;
    top: -16px !important;
    left: 18px !important;
    width: auto !important;
    height: auto !important;
    padding: 4px 9px 3px !important;
    border: 2px solid #153957 !important;
    border-radius: 3px !important;
    background: #fff !important;
    color: #153957 !important;
    box-shadow: 3px 3px 0 #bfd3df !important;
    font-size: 8px !important;
    font-weight: 900 !important;
    line-height: 1.2 !important;
    letter-spacing: .16em !important;
}

body.single-post .entry-content h2::after,
.editor-styles-wrapper h2::after {
    content: "" !important;
    position: absolute !important;
    top: -3px !important;
    right: 20px !important;
    bottom: auto !important;
    left: auto !important;
    width: 28px !important;
    height: 8px !important;
    border: 2px solid #153957 !important;
    border-top: 0 !important;
    border-radius: 0 0 3px 3px !important;
    background: #ffd45a !important;
    box-shadow: none !important;
}

body.single-post .entry-content h3,
.editor-styles-wrapper h3 {
    position: relative;
    margin: 46px 0 22px !important;
    padding: 12px 16px 11px 18px !important;
    border: 2px solid #2f7fb5 !important;
    border-left: 6px solid #2f7fb5 !important;
    border-radius: 3px !important;
    background: #f6fafc !important;
    color: #153957 !important;
    box-shadow: 4px 4px 0 #d8e6ee !important;
    font-size: clamp(21px, 2.4vw, 26px) !important;
    font-weight: 900 !important;
    line-height: 1.45 !important;
}

body.single-post .entry-content h3::before,
.editor-styles-wrapper h3::before {
    content: "" !important;
    position: absolute !important;
    top: -2px !important;
    right: 14px !important;
    width: 18px !important;
    height: 5px !important;
    background: #18a3a3 !important;
    border: 2px solid #153957 !important;
    border-top: 0 !important;
}

body.single-post .entry-content h3::after,
.editor-styles-wrapper h3::after {
    content: none !important;
}

body.single-post .entry-content h4,
.editor-styles-wrapper h4 {
    position: relative;
    margin: 36px 0 18px !important;
    padding: 9px 12px 9px 16px !important;
    border: 0 !important;
    border-left: 4px solid #18a3a3 !important;
    background: #f8fbfc !important;
    color: #153957 !important;
    box-shadow: 3px 3px 0 #e3ecef !important;
    font-size: 18px !important;
    font-weight: 900 !important;
    line-height: 1.5 !important;
}

body.single-post .entry-content h4::before,
body.single-post .entry-content h4::after,
.editor-styles-wrapper h4::before,
.editor-styles-wrapper h4::after {
    content: none !important;
}

/* =========================================================
   ARTICLE OVERVIEW / RELATED LINKS HUD BOX
========================================================= */

.ss-hudbox {
    --ss-hud-accent: #3c82bd;
    --ss-hud-dark: #1e4f78;
    --ss-hud-shadow: #c8ddeb;

    position: relative;
    margin: 48px 0 50px;
    padding: 30px 28px 24px;
    border: 3px solid var(--ss-hud-accent);
    border-radius: 4px;
    background: #fff;
    box-shadow: 7px 7px 0 var(--ss-hud-shadow);
}

.ss-hudbox::before,
.ss-hudbox::after {
    content: "";
    position: absolute;
    width: 18px;
    height: 6px;
    background: var(--ss-hud-accent);
    border: 2px solid var(--ss-hud-dark);
}

.ss-hudbox::before {
    top: -3px;
    right: 26px;
    border-top: 0;
}

.ss-hudbox::after {
    left: 26px;
    bottom: -3px;
    border-bottom: 0;
}

.ss-hudbox__tab {
    position: absolute;
    top: -31px;
    left: -3px;
    min-width: 250px;
    padding: 12px 20px 11px;
    border: 3px solid var(--ss-hud-accent);
    border-bottom: 0;
    border-radius: 4px 4px 0 0;
    background: var(--ss-hud-accent);
    color: #fff;
    box-shadow: 5px 0 0 var(--ss-hud-shadow);
    font-size: 20px;
    font-weight: 900;
    line-height: 1.3;
    letter-spacing: -.02em;
}

.ss-hudbox__body {
    padding: 12px 6px 4px;
}

.ss-hudbox .wp-block-list,
.ss-hudbox ul,
.ss-hudbox ol {
    margin: 0 !important;
    padding: 0 0 0 1.55em !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.ss-hudbox li {
    margin: 0 0 12px !important;
    padding-left: 4px !important;
    color: #153957;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.75;
}

.ss-hudbox li:last-child {
    margin-bottom: 0 !important;
}

.ss-hudbox--related {
    --ss-hud-accent: #245f9b;
    --ss-hud-dark: #153957;
    --ss-hud-shadow: #c6d6e5;
    background: #f7fafc;
}

.ss-hudbox--related .ss-hudbox__body {
    padding-top: 14px;
}

.ss-hudbox--related li::marker {
    color: #245f9b;
}

.ss-hudbox--related a {
    color: #1d5fb8 !important;
    font-weight: 800 !important;
    text-decoration-thickness: 2px !important;
}

/* =========================================================
   Q&A HUD
========================================================= */

.ss-qa {
    margin: 46px 0 52px;
}

.ss-qa__row {
    position: relative;
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
    padding: 20px 22px;
    border: 3px solid;
    border-radius: 4px;
    background: #fff;
}

.ss-qa__row::before,
.ss-qa__row::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 5px;
}

.ss-qa__row::before {
    top: -3px;
    right: 22px;
}

.ss-qa__row::after {
    left: 22px;
    bottom: -3px;
}

.ss-qa__row--q {
    z-index: 2;
    margin-bottom: 14px;
    border-color: #cf3d3d;
    background: #fff8f8;
    box-shadow: 6px 6px 0 #edc6c6;
}

.ss-qa__row--q::before,
.ss-qa__row--q::after {
    background: #cf3d3d;
    border: 2px solid #992929;
}

.ss-qa__row--a {
    margin-left: 28px;
    border-color: #2f7fb5;
    background: #f4f9fd;
    box-shadow: 6px 6px 0 #c4dcea;
}

.ss-qa__row--a::before,
.ss-qa__row--a::after {
    background: #2f7fb5;
    border: 2px solid #1d5f8f;
}

.ss-qa__badge {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 3px solid;
    border-radius: 4px;
    color: #fff;
    box-shadow: 3px 3px 0 rgba(21,57,87,.28), inset 0 2px 0 rgba(255,255,255,.35);
    font-size: 22px;
    font-weight: 900;
    line-height: 1;
}

.ss-qa__row--q .ss-qa__badge {
    border-color: #992929;
    background: #cf3d3d;
}

.ss-qa__row--a .ss-qa__badge {
    border-color: #1d5f8f;
    background: #2f7fb5;
}

.ss-qa__question-text,
.ss-qa__answer-text {
    margin: 0 !important;
    color: #153957;
    font-size: 16px;
    line-height: 1.9;
}

.ss-qa__question-text {
    padding-top: 5px;
    font-weight: 900;
}

.ss-qa__answer-text {
    padding-top: 4px;
    font-weight: 600;
}

/* =========================================================
   END NAV HUD
========================================================= */

.ss-endnav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
    width: 100%;
    max-width: 980px;
    margin: 70px auto 20px;
}

.ss-endnav__panel {
    position: relative;
    min-width: 0;
    padding: 54px 22px 20px;
    border: 3px solid #153957;
    border-radius: 4px;
    background: #f8fafb;
    box-shadow: 7px 7px 0 #ccdbe4;
}

.ss-endnav__panel::before,
.ss-endnav__panel::after {
    content: "";
    position: absolute;
    width: 18px;
    height: 6px;
    background: #18a3a3;
    border: 2px solid #153957;
}

.ss-endnav__panel::before {
    top: -3px;
    right: 22px;
    border-top: 0;
}

.ss-endnav__panel::after {
    left: 22px;
    bottom: -3px;
    border-bottom: 0;
}

.ss-endnav__plate {
    position: absolute;
    top: -20px;
    left: 18px;
    min-width: 150px;
    padding: 8px 13px 7px;
    border: 3px solid #153957;
    border-radius: 4px;
    background: #fff;
    box-shadow: 4px 4px 0 #ccdbe4;
}

.ss-endnav__plate span {
    display: block;
    margin-bottom: 2px;
    color: #18a3a3;
    font-size: 8px;
    font-weight: 900;
    letter-spacing: .16em;
}

.ss-endnav__plate strong {
    display: block;
    color: #153957;
    font-size: 17px;
    line-height: 1.25;
}

.ss-endnav__list {
    display: grid;
    gap: 0;
}

.ss-endnav__item {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    padding: 15px 2px;
    border-bottom: 1px solid #cbd8de;
    color: #153957 !important;
    text-decoration: none !important;
}

.ss-endnav__item:last-child {
    border-bottom: 0;
}

.ss-endnav__meta {
    color: #718493;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .03em;
}

.ss-endnav__title {
    min-width: 0;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.55;
}

.ss-endnav__arrow {
    color: #18a3a3;
    font-size: 23px;
    font-weight: 900;
}

.ss-endnav__categories {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 12px;
}

.ss-endnav__categories a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-width: 0;
    padding: 9px 10px;
    border: 2px solid #c4d3dc;
    border-radius: 3px;
    background: #fff;
    color: #153957 !important;
    text-decoration: none !important;
    box-shadow: 3px 3px 0 #e0e8ec;
    font-size: 12px;
    font-weight: 800;
}

.ss-endnav__categories a:hover,
.ss-endnav__item:hover {
    color: #168d73 !important;
}

.ss-endnav__categories b {
    display: grid;
    place-items: center;
    min-width: 22px;
    height: 22px;
    padding: 0 4px;
    border: 2px solid #153957;
    border-radius: 3px;
    background: #153957;
    color: #fff;
    font-size: 9px;
}

.ss-endnav__empty {
    margin: 0;
    color: #718493;
    font-size: 13px;
}

.ss-endnav-editor .ss-endnav {
    margin-top: 36px;
}

/* =========================================================
   MOBILE v1.3
========================================================= */

@media (max-width: 768px) {
    body.single-post .entry-content h2,
    .editor-styles-wrapper h2 {
        margin-top: 54px !important;
        padding: 15px 16px 15px 18px !important;
        border-width: 2px !important;
        border-left-width: 5px !important;
        box-shadow: 4px 4px 0 #bfd3df !important;
        font-size: 24px !important;
    }

    body.single-post .entry-content h2::before,
    .editor-styles-wrapper h2::before {
        top: -13px !important;
        left: 12px !important;
        padding: 3px 7px 2px !important;
        border-width: 1.5px !important;
        box-shadow: 2px 2px 0 #bfd3df !important;
        font-size: 7px !important;
    }

    body.single-post .entry-content h3,
    .editor-styles-wrapper h3 {
        margin-top: 40px !important;
        padding: 10px 12px 9px 14px !important;
        border-width: 2px !important;
        border-left-width: 5px !important;
        box-shadow: 3px 3px 0 #d8e6ee !important;
        font-size: 20px !important;
    }

    body.single-post .entry-content h4,
    .editor-styles-wrapper h4 {
        margin-top: 32px !important;
        padding: 8px 10px 8px 12px !important;
        font-size: 17px !important;
    }

    .ss-hudbox {
        margin: 46px 0 42px;
        padding: 28px 17px 18px;
        border-width: 2px;
        box-shadow: 4px 4px 0 var(--ss-hud-shadow);
    }

    .ss-hudbox__tab {
        top: -27px;
        left: -2px;
        min-width: 0;
        max-width: calc(100% - 24px);
        padding: 9px 14px 8px;
        border-width: 2px;
        font-size: 17px;
    }

    .ss-hudbox li {
        font-size: 15px;
    }

    .ss-qa__row {
        grid-template-columns: 44px minmax(0, 1fr);
        gap: 12px;
        padding: 16px 14px;
        border-width: 2px;
        box-shadow: 4px 4px 0 #dbe5ea;
    }

    .ss-qa__row--q {
        box-shadow: 4px 4px 0 #edc6c6;
    }

    .ss-qa__row--a {
        margin-left: 14px;
        box-shadow: 4px 4px 0 #c4dcea;
    }

    .ss-qa__badge {
        width: 36px;
        height: 36px;
        border-width: 2px;
        box-shadow: 2px 2px 0 rgba(21,57,87,.25);
        font-size: 18px;
    }

    .ss-qa__question-text,
    .ss-qa__answer-text {
        font-size: 15px;
        line-height: 1.85;
    }

    .ss-endnav {
        grid-template-columns: 1fr;
        gap: 38px;
        width: calc(100% - 40px);
        margin-top: 58px;
    }

    .ss-endnav__panel {
        padding: 48px 16px 16px;
        border-width: 2px;
        box-shadow: 4px 4px 0 #ccdbe4;
    }

    .ss-endnav__plate {
        top: -17px;
        left: 14px;
        border-width: 2px;
        box-shadow: 3px 3px 0 #ccdbe4;
    }

    .ss-endnav__categories {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   v1.4 — list callouts + safe editor preview
========================================================= */

/* PLUS / MINUS start as editable bullet lists. */
.ss-callout--list .ss-callout__list {
    min-width: 0;
}

.ss-callout--list .ss-callout__list ul {
    margin: 2px 0 0 !important;
    padding: 0 0 0 1.35em !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.ss-callout--list .ss-callout__list li {
    margin: 0 0 .55em !important;
    padding: 0 !important;
    color: var(--ss-callout-ink);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.75;
}

.ss-callout--list .ss-callout__list li:last-child {
    margin-bottom: 0 !important;
}

.ss-callout--list .ss-callout__list li::marker {
    color: var(--ss-callout-accent-dark);
    font-weight: 900;
}

/* Dynamic end-nav is a visual preview in Gutenberg.
   Disable real navigation so clicking selects/edits the block instead. */
.editor-styles-wrapper .ss-endnav-editor a,
.editor-styles-wrapper .ss-endnav-editor a:link,
.editor-styles-wrapper .ss-endnav-editor a:visited,
.ss-endnav-editor a,
.ss-endnav-editor a:link,
.ss-endnav-editor a:visited {
    pointer-events: none !important;
    cursor: default !important;
}

.ss-endnav-editor .ss-endnav {
    user-select: none;
}

@media (max-width: 768px) {
    .ss-callout--list .ss-callout__list li {
        font-size: 15px;
        line-height: 1.7;
    }
}

/* =========================================================
   v1.5 — truly editable end-nav editor preview
========================================================= */

.ss-endnav-editor .ss-endnav {
    user-select: text !important;
}

.ss-endnav-editor .ss-endnav__plate [contenteditable="true"] {
    cursor: text;
    outline: none;
}

.ss-endnav-editor .ss-endnav__item--editor,
.ss-endnav-editor .ss-endnav__category--editor {
    cursor: default;
}

.ss-endnav-editor .ss-endnav__category--editor {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-width: 0;
    padding: 9px 10px;
    border: 2px solid #c4d3dc;
    border-radius: 3px;
    background: #fff;
    color: #153957;
    box-shadow: 3px 3px 0 #e0e8ec;
    font-size: 12px;
    font-weight: 800;
}

.ss-endnav-editor .ss-endnav__category--editor b {
    display: grid;
    place-items: center;
    min-width: 22px;
    height: 22px;
    padding: 0 4px;
    border: 2px solid #153957;
    border-radius: 3px;
    background: #153957;
    color: #fff;
    font-size: 9px;
}


/* =========================================================
   v1.6 — end-nav editor controls are explicit and clickable
========================================================= */

.ss-endnav-editor__controls {
    position: relative;
    z-index: 5;
    margin: 0 0 28px;
    padding: 18px 18px 8px;
    border: 2px solid #153957;
    border-radius: 4px;
    background: #ffffff;
    box-shadow: 4px 4px 0 #ccdbe4;
}

.ss-endnav-editor__controls-title {
    margin: 0 0 4px;
    color: #153957;
    font-size: 15px;
    font-weight: 900;
}

.ss-endnav-editor__controls-help {
    margin: 0 0 16px !important;
    color: #617788;
    font-size: 12px !important;
    line-height: 1.6 !important;
}

.ss-endnav-editor__controls .components-base-control,
.ss-endnav-editor__controls .components-input-control,
.ss-endnav-editor__controls .components-range-control {
    position: relative;
    z-index: 6;
}

/* The visual list is preview-only in Gutenberg.
   Passing pointer events through it guarantees a click selects the block,
   while all actual editing happens in the controls above / sidebar. */
.ss-endnav-editor__preview {
    pointer-events: none !important;
    user-select: none !important;
}

.ss-endnav-editor__preview .ss-endnav {
    margin-top: 42px;
}

/* =========================================================
   v1.7 — inline article formats
========================================================= */

.ss-marker-yellow {
    padding: 0 .04em;
    background-color: transparent;
    background-image: linear-gradient(
        transparent 56%,
        rgba(255, 212, 90, .78) 56%
    );
    color: inherit;
}

.ss-text-red {
    color: #c84444;
    font-weight: 700;
}

.editor-styles-wrapper .ss-marker-yellow {
    background-color: transparent;
}

.editor-styles-wrapper .ss-text-red {
    color: #c84444;
}

/* =========================================================
   v1.15 — SenScope TABLE HUD
   Title is physically integrated into the table frame.
   No title = no title row / no reserved title space.
========================================================= */

.ss-table {
    position: relative;
    box-sizing: border-box;
    width: 100%;
    margin: 42px 0 48px;
    padding: 0;
    border: 3px solid #153957;
    border-radius: 5px;
    background: #ffffff;
    box-shadow: 6px 6px 0 #cbd9e1;
}

/* Optional title tab.
   It lives inside the same outer frame as the table, so it cannot float
   away even when article/table styles add margins to core/table. */
.ss-table__title {
    position: relative;
    z-index: 3;
    box-sizing: border-box;
    display: table;
    width: auto;
    max-width: calc(100% - 24px);
    margin: -3px 0 0 -3px;
    padding: 13px 22px 12px;
    border: 3px solid #3f78c5;
    border-radius: 5px 5px 0 0;
    background: #3f78c5;
    box-shadow: 6px 0 0 #cbd9e1;
    color: #ffffff;
    font-family: "M PLUS Rounded 1c", "Hiragino Sans", "Yu Gothic", sans-serif;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.45;
    letter-spacing: -.01em;
}

.ss-table__title::before {
    content: "";
    position: absolute;
    top: -3px;
    right: 16px;
    width: 30px;
    height: 4px;
    background: #ffd45a;
    box-shadow: 14px 0 0 #18a3a3;
}

/* Gutenberg still needs a visible field when the optional title is blank.
   This affects the editor only; the empty title is not saved on the front end. */
.editor-styles-wrapper .ss-table__title:empty,
.editor-styles-wrapper .ss-table__title[data-rich-text-placeholder] {
    min-width: 210px;
    min-height: 48px;
}

.editor-styles-wrapper .ss-table__title:empty::after {
    color: rgba(255,255,255,.58);
}

/* IMPORTANT: article-content.css / theme CSS may give core/table its own
   vertical margins. Kill those inside the SenScope table so the title and
   table are one continuous HUD panel. */
.ss-table > .wp-block-table,
.single-post .entry-content .ss-table > .wp-block-table,
.editor-styles-wrapper .ss-table > .wp-block-table {
    position: relative;
    z-index: 1;
    width: 100%;
    margin: 0 !important;
    padding: 0;
    overflow: visible;
}

/* A title gets a single divider line before the column header.
   With no title this rule never applies, so the table starts immediately. */
.ss-table__title + .wp-block-table {
    border-top: 3px solid #153957;
}

.ss-table > .wp-block-table table {
    width: 100%;
    margin: 0 !important;
    border: 0 !important;
    border-collapse: collapse;
    border-spacing: 0;
    background: #ffffff;
    box-shadow: none !important;
    color: #304657;
}

.ss-table > .wp-block-table th,
.ss-table > .wp-block-table td {
    padding: 17px 18px !important;
    border: 1px solid #bfd0da !important;
    vertical-align: top;
    color: #304657;
    font-size: 15px;
    line-height: 1.75;
}

.ss-table > .wp-block-table thead th {
    border-color: #31556f !important;
    border-top: 0 !important;
    background: #153957 !important;
    color: #ffffff !important;
    font-weight: 800;
    line-height: 1.5;
}

.ss-table > .wp-block-table tbody tr:nth-child(even) td {
    background: #f7fafb;
}

.ss-table > .wp-block-table tbody td:first-child {
    border-left: 4px solid #18a3a3 !important;
    background: #f1f8f8;
    color: #153957;
    font-weight: 800;
}

.ss-table > .wp-block-table tbody tr:nth-child(even) td:first-child {
    background: #eaf5f5;
}

.ss-table > .wp-block-table figcaption {
    margin: 0;
    padding: 12px 15px 14px;
    border-top: 1px solid #bfd0da;
    color: #6c7f8d;
    font-size: 12px;
    line-height: 1.7;
    text-align: left;
}

/* Backward compatibility for any v1.11/v1.12 test tables already saved. */
.wp-block-table.is-style-senscope-data,
.wp-block-table.is-style-senscope-compare,
.wp-block-table.is-style-senscope-proscons {
    position: relative;
    margin: 42px 0 48px;
}

.wp-block-table.is-style-senscope-data table,
.wp-block-table.is-style-senscope-compare table,
.wp-block-table.is-style-senscope-proscons table {
    width: 100%;
    margin: 0;
    border: 3px solid #153957 !important;
    border-collapse: collapse;
    background: #ffffff;
    box-shadow: 6px 6px 0 #cbd9e1;
}

.wp-block-table.is-style-senscope-data th,
.wp-block-table.is-style-senscope-data td,
.wp-block-table.is-style-senscope-compare th,
.wp-block-table.is-style-senscope-compare td,
.wp-block-table.is-style-senscope-proscons th,
.wp-block-table.is-style-senscope-proscons td {
    padding: 17px 18px !important;
    border: 1px solid #bfd0da !important;
    color: #304657;
    font-size: 15px;
    line-height: 1.75;
}

.wp-block-table.is-style-senscope-data thead th,
.wp-block-table.is-style-senscope-compare thead th,
.wp-block-table.is-style-senscope-proscons thead th {
    background: #153957 !important;
    color: #ffffff !important;
    font-weight: 800;
}

@media (max-width: 768px) {
    .ss-table,
    .wp-block-table.is-style-senscope-data,
    .wp-block-table.is-style-senscope-compare,
    .wp-block-table.is-style-senscope-proscons {
        margin: 34px 0 40px;
        box-shadow: 4px 4px 0 #cbd9e1;
    }

    .ss-table__title {
        max-width: calc(100% - 14px);
        padding: 12px 15px 11px;
        font-size: 17px;
    }

    .ss-table > .wp-block-table,
    .wp-block-table.is-style-senscope-data,
    .wp-block-table.is-style-senscope-compare,
    .wp-block-table.is-style-senscope-proscons {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .ss-table > .wp-block-table table,
    .wp-block-table.is-style-senscope-data table,
    .wp-block-table.is-style-senscope-compare table,
    .wp-block-table.is-style-senscope-proscons table {
        min-width: 680px;
    }

    .ss-table > .wp-block-table th,
    .ss-table > .wp-block-table td,
    .wp-block-table.is-style-senscope-data th,
    .wp-block-table.is-style-senscope-data td,
    .wp-block-table.is-style-senscope-compare th,
    .wp-block-table.is-style-senscope-compare td,
    .wp-block-table.is-style-senscope-proscons th,
    .wp-block-table.is-style-senscope-proscons td {
        padding: 14px !important;
        font-size: 14px;
        line-height: 1.7;
    }
}
