/* InsightHack native content blocks: shared by the public site and block editor. */
@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("../fonts/inter/Inter-Variable.woff2") format("woff2"); /* SIL OFL 1.1: ../fonts/inter/OFL.txt */
}

:is(.ih-block-content, .editor-styles-wrapper) {
    --ih-content-forest: #075238;
    --ih-content-accent: #08754a;
    --ih-content-mint: #e6f1e7;
    --ih-content-paper: #f6f8f4;
    --ih-content-text: #12271f;
    --ih-content-muted: #60736a;
    --ih-content-line: #dce5dc;
    color: var(--ih-content-text);
    font-family: "Inter", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
    font-size: 15px;
    line-height: 1.95;
}

.ih-block-content {
    width: 100%;
    max-width: 860px;
    min-width: 0;
    margin-inline: auto;
}

/* Match the public reading width without constraining nested or wide blocks. */
.editor-styles-wrapper .editor-post-title,
.editor-styles-wrapper .editor-post-title__block,
.editor-styles-wrapper .block-editor-block-list__layout.is-root-container > .wp-block:not(.alignwide):not(.alignfull):not([data-align="wide"]):not([data-align="full"]) {
    max-width: 860px;
    margin-inline: auto;
}

body.page article.ih-block-article {
    box-sizing: border-box;
    max-width: 964px;
    margin: 0 auto 38px;
    padding: 38px 52px 44px;
    border: 1px solid #dce5dc;
    border-radius: 12px;
    background-color: #fff;
}

body.page article.ih-block-article > .entry-header {
    margin: 0 0 20px;
    padding: 0;
    border: 0;
}

body.page article.ih-block-article > .entry-header .workreap-entry-title {
    margin: 0;
    color: #082219;
    font: 700 30px / 1.5 "Inter", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
    letter-spacing: .025em;
    overflow-wrap: anywhere;
}

/* Repeated scope classes override Workreap's article selectors without !important. */
:is(.ih-block-content.ih-block-content, .editor-styles-wrapper.editor-styles-wrapper) p,
.editor-styles-wrapper.editor-styles-wrapper p.wp-block {
    margin-block: 0 20px;
    font-family: inherit;
    line-height: 1.95;
    overflow-wrap: anywhere;
}

:is(.ih-block-content.ih-block-content, .editor-styles-wrapper.editor-styles-wrapper) p:not([class*="-font-size"]) {
    font-size: inherit;
}

:is(.ih-block-content.ih-block-content, .editor-styles-wrapper.editor-styles-wrapper) :is(h2, h3, h4).wp-block-heading {
    box-sizing: border-box;
    font-family: inherit;
    font-weight: 700;
    overflow-wrap: anywhere;
    scroll-margin-top: 110px;
}

:is(.ih-block-content.ih-block-content, .editor-styles-wrapper.editor-styles-wrapper) h2.wp-block-heading {
    margin: 48px 0 22px;
    padding: 15px 22px;
    border: 0;
    border-radius: 6px;
    line-height: 1.55;
}

:is(.ih-block-content.ih-block-content, .editor-styles-wrapper.editor-styles-wrapper) h2.wp-block-heading:not(.has-background) {
    background-color: var(--ih-content-forest);
}

:is(.ih-block-content.ih-block-content, .editor-styles-wrapper.editor-styles-wrapper) h2.wp-block-heading:not(.has-text-color) {
    color: #fff;
}

:is(.ih-block-content.ih-block-content, .editor-styles-wrapper.editor-styles-wrapper) h2.wp-block-heading:not([class*="-font-size"]) {
    font-size: 24px;
}

:is(.ih-block-content.ih-block-content, .editor-styles-wrapper.editor-styles-wrapper) h3.wp-block-heading {
    position: relative;
    margin: 36px 0 20px;
    padding: 0 0 13px;
    border: 0;
    border-bottom: 2px solid var(--ih-content-line);
    border-radius: 0;
    line-height: 1.6;
}

:is(.ih-block-content.ih-block-content, .editor-styles-wrapper.editor-styles-wrapper) h3.wp-block-heading:not([class*="-font-size"]) {
    font-size: 21px;
}

:is(.ih-block-content.ih-block-content, .editor-styles-wrapper.editor-styles-wrapper) h3.wp-block-heading::after {
    position: absolute;
    bottom: -2px;
    inset-inline-start: 0;
    width: 64px;
    max-width: 100%;
    height: 2px;
    background-color: var(--ih-content-accent);
    content: "";
}

:is(.ih-block-content.ih-block-content, .editor-styles-wrapper.editor-styles-wrapper) h4.wp-block-heading {
    position: relative;
    margin: 28px 0 14px;
    padding: 0;
    padding-inline-start: 32px;
    border: 0;
    line-height: 1.65;
}

:is(.ih-block-content.ih-block-content, .editor-styles-wrapper.editor-styles-wrapper) h4.wp-block-heading:not([class*="-font-size"]) {
    font-size: 18px;
}

:is(.ih-block-content.ih-block-content, .editor-styles-wrapper.editor-styles-wrapper) :is(h3, h4).wp-block-heading:not(.has-text-color) {
    color: var(--ih-content-forest);
}

:is(.ih-block-content.ih-block-content, .editor-styles-wrapper.editor-styles-wrapper) h4.wp-block-heading::before {
    position: absolute;
    top: calc(.825em - 10.5px);
    inset-inline-start: 0;
    width: 21px;
    height: 21px;
    border-radius: 50%;
    background: #e6f4e9 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2308754a' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6.5 12 3.5 3.5 7.5-7.5'/%3E%3C/svg%3E") center / 18px no-repeat;
    content: "";
    pointer-events: none;
}

.ih-block-content.ih-block-content > .wp-block-heading:first-child {
    margin-top: 0;
}

/* A figure scrolls independently; its caption stays outside the table border. */
:is(.ih-block-content.ih-block-content, .editor-styles-wrapper.editor-styles-wrapper) .wp-block-table {
    box-sizing: border-box;
    max-width: 100%;
    margin: 0 0 28px;
    border: 0;
    overflow-x: auto;
    overscroll-behavior-x: contain;
}

:is(.ih-block-content.ih-block-content, .editor-styles-wrapper.editor-styles-wrapper) .wp-block-table table {
    box-sizing: border-box;
    width: 100%;
    margin: 0;
    border: 1px solid var(--ih-content-line);
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 8px;
    font-family: inherit;
    line-height: 1.85;
    overflow: hidden;
}

:is(.ih-block-content.ih-block-content, .editor-styles-wrapper.editor-styles-wrapper) .wp-block-table:not([class*="-font-size"]) table {
    font-size: 14px;
}

:is(.ih-block-content.ih-block-content, .editor-styles-wrapper.editor-styles-wrapper) .wp-block-table :is(thead, tbody, tfoot) {
    border: 0;
}

:is(.ih-block-content.ih-block-content, .editor-styles-wrapper.editor-styles-wrapper) .wp-block-table :is(th, td) {
    box-sizing: border-box;
    padding: 16px 20px;
    border: 0;
    border-bottom: 1px solid #e0e8de;
    vertical-align: top;
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    overflow-wrap: anywhere;
    word-break: normal;
}

:is(.ih-block-content.ih-block-content, .editor-styles-wrapper.editor-styles-wrapper) .wp-block-table :is(th, td):not([class*="has-text-align-"]):not([data-align]) {
    text-align: start;
}

.editor-styles-wrapper .wp-block-table :is(th, td) :is(a, span, strong, em) {
    border: 0;
}

:is(.ih-block-content.ih-block-content, .editor-styles-wrapper.editor-styles-wrapper) .wp-block-table thead :is(th, td) {
    padding-block: 12px;
    font-weight: 700;
    letter-spacing: .04em;
}

:is(.ih-block-content.ih-block-content, .editor-styles-wrapper.editor-styles-wrapper) .wp-block-table:not(.has-background) table:not(.has-background) thead :is(th, td) {
    background-color: var(--ih-content-mint);
}

:is(.ih-block-content.ih-block-content, .editor-styles-wrapper.editor-styles-wrapper) .wp-block-table:not(.has-text-color) table:not(.has-text-color) thead :is(th, td) {
    color: var(--ih-content-forest);
}

:is(.ih-block-content.ih-block-content, .editor-styles-wrapper.editor-styles-wrapper) .wp-block-table table > :last-child > tr:last-child > :is(th, td) {
    border-bottom: 0;
}

:is(.ih-block-content.ih-block-content, .editor-styles-wrapper.editor-styles-wrapper) .wp-block-table tfoot :is(th, td) {
    font-weight: 600;
}

:is(.ih-block-content.ih-block-content, .editor-styles-wrapper.editor-styles-wrapper) .wp-block-table.is-style-stripes tbody tr:nth-child(odd) {
    background-color: var(--ih-content-paper);
}

/* Opt-in for company facts and other two-column label/value tables. */
:is(.ih-block-content.ih-block-content, .editor-styles-wrapper.editor-styles-wrapper) .wp-block-table.is-style-ih-details table {
    table-layout: fixed;
}

:is(.ih-block-content.ih-block-content, .editor-styles-wrapper.editor-styles-wrapper) .wp-block-table.is-style-ih-details tr > :first-child {
    width: 25%;
    font-weight: 600;
}

:is(.ih-block-content.ih-block-content, .editor-styles-wrapper.editor-styles-wrapper) .wp-block-table.is-style-ih-details:not(.has-background) table:not(.has-background) tbody tr > :first-child {
    background-color: var(--ih-content-paper);
}

:is(.ih-block-content.ih-block-content, .editor-styles-wrapper.editor-styles-wrapper) .wp-block-table.is-style-ih-details:not(.has-text-color) table:not(.has-text-color) tbody tr > :first-child {
    color: #244e3a;
}

:is(.ih-block-content.ih-block-content, .editor-styles-wrapper.editor-styles-wrapper) .wp-block-table.is-style-ih-comparison table {
    table-layout: fixed;
    min-width: 600px;
}

:is(.ih-block-content.ih-block-content, .editor-styles-wrapper.editor-styles-wrapper) .wp-block-table figcaption {
    margin: 10px 0 0;
    color: var(--ih-content-muted);
    font-size: 12px;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

:is(.ih-block-content.ih-block-content, .editor-styles-wrapper.editor-styles-wrapper) :is(p, .wp-block-list, .wp-block-table, .wp-block-quote) a:not(.has-text-color) {
    color: var(--ih-content-accent);
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-thickness: 1px;
}

:is(.ih-block-content.ih-block-content, .editor-styles-wrapper.editor-styles-wrapper) .wp-block-heading a:not(.has-text-color) {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 4px;
}

:is(.ih-block-content.ih-block-content, .editor-styles-wrapper.editor-styles-wrapper) :is(p, .wp-block-heading, .wp-block-list, .wp-block-table, .wp-block-quote) a:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
    border-radius: 2px;
}

:is(.ih-block-content.ih-block-content, .editor-styles-wrapper.editor-styles-wrapper) .wp-block-list {
    margin-block: 0 24px;
    padding-inline-start: 1.5em;
    list-style-position: outside;
}

:is(.ih-block-content.ih-block-content, .editor-styles-wrapper.editor-styles-wrapper) .wp-block-list li {
    margin-block: 6px;
    line-height: 1.85;
    overflow-wrap: anywhere;
}

:is(.ih-block-content.ih-block-content, .editor-styles-wrapper.editor-styles-wrapper) .wp-block-list li::marker {
    color: var(--ih-content-accent);
}

:is(.ih-block-content.ih-block-content, .editor-styles-wrapper.editor-styles-wrapper) .wp-block-list .wp-block-list {
    margin-block: 6px;
}

:is(.ih-block-content.ih-block-content, .editor-styles-wrapper.editor-styles-wrapper) blockquote.wp-block-quote:not(.is-large):not(.is-style-large) {
    margin: 28px 0;
    max-width: none;
    padding: 18px 22px;
    border: 0;
    border-inline-start: 3px solid #8ee6b5;
    border-radius: 0 6px 6px 0;
}

:is(.ih-block-content.ih-block-content, .editor-styles-wrapper.editor-styles-wrapper) blockquote.wp-block-quote:not(.has-background) {
    background-color: var(--ih-content-paper);
}

:is(.ih-block-content.ih-block-content, .editor-styles-wrapper.editor-styles-wrapper) blockquote.wp-block-quote:not(.has-text-color) {
    color: #496355;
}

:is(.ih-block-content.ih-block-content, .editor-styles-wrapper.editor-styles-wrapper) blockquote.wp-block-quote.wp-block-quote p {
    font-weight: 400;
    line-height: 1.95;
}

:is(.ih-block-content.ih-block-content, .editor-styles-wrapper.editor-styles-wrapper) blockquote.wp-block-quote p:not([class*="-font-size"]) {
    font-size: inherit;
}

:is(.ih-block-content.ih-block-content, .editor-styles-wrapper.editor-styles-wrapper) blockquote.wp-block-quote p:last-child {
    margin-bottom: 0;
}

:is(.ih-block-content.ih-block-content, .editor-styles-wrapper.editor-styles-wrapper) blockquote.wp-block-quote p::before,
:is(.ih-block-content.ih-block-content, .editor-styles-wrapper.editor-styles-wrapper) blockquote.wp-block-quote p::after {
    content: none;
}

:is(.ih-block-content.ih-block-content, .editor-styles-wrapper.editor-styles-wrapper) blockquote.wp-block-quote cite {
    display: block;
    margin-top: 10px;
    font-size: 12px;
    line-height: 1.7;
}

@media (max-width: 600px) {
    body.page article.ih-block-article {
        padding: 24px 18px;
        margin-bottom: 24px;
    }

    body.page article.ih-block-article > .entry-header .workreap-entry-title {
        font-size: 26px;
    }

    :is(.ih-block-content.ih-block-content, .editor-styles-wrapper.editor-styles-wrapper) h2.wp-block-heading {
        margin-top: 36px;
        padding: 14px 16px;
    }

    :is(.ih-block-content.ih-block-content, .editor-styles-wrapper.editor-styles-wrapper) h2.wp-block-heading:not([class*="-font-size"]) {
        font-size: 21px;
    }

    :is(.ih-block-content.ih-block-content, .editor-styles-wrapper.editor-styles-wrapper) h3.wp-block-heading:not([class*="-font-size"]) {
        font-size: 19px;
    }

    :is(.ih-block-content.ih-block-content, .editor-styles-wrapper.editor-styles-wrapper) .wp-block-table :is(th, td) {
        padding: 13px 12px;
    }

    :is(.ih-block-content.ih-block-content, .editor-styles-wrapper.editor-styles-wrapper) .wp-block-table:not([class*="-font-size"]) table {
        font-size: 13px;
    }

    :is(.ih-block-content.ih-block-content, .editor-styles-wrapper.editor-styles-wrapper) .wp-block-table.is-style-ih-details tr > :first-child {
        width: 30%;
    }

    :is(.ih-block-content.ih-block-content, .editor-styles-wrapper.editor-styles-wrapper) .wp-block-table:not(.is-style-ih-details) table:has(tr > :nth-child(3)) {
        min-width: 540px;
    }

    :is(.ih-block-content.ih-block-content, .editor-styles-wrapper.editor-styles-wrapper) .wp-block-table:not(.is-style-ih-details) table:has(tr > :nth-child(5)) {
        min-width: 760px;
    }
}
