/* Per-post CSS for page 12540 «Έργα ΕΣΠΑ» — adapted from the ΔΕΥΑ template.
   Enqueued by the im-post-css mu-plugin on this post only (uploads/im-css/12540.css).
   Palette: DViannou-Tokens.css. Selectors are bare: this file is already scoped to the page. */

:root {
    --c-ink: #343E42;            /* coal-5: heading bars, box titles, body ink */
    --c-link: #4F5B3A;           /* link ink */
    --c-link-hover: #343E42;
    --c-soft: #E2F0C0;           /* act-row hover tint */
    --c-border: #C1C0B0;
    --card-radius: 5px;
    --card-shadow: 0 4px 12px rgba(52, 62, 66, .15);
}

/* The full-width page template prints the content unwrapped: give it a column */
.espa-page {
    max-width: 1140px;
    margin: 0 auto;
    padding: 32px 20px 48px;
}

/* The su_heading bar is the visible page title (this template prints no theme title) */
.su-heading-inner {
    background: var(--c-ink);
    color: #fff;
}

.su-heading.top-heading .su-heading-inner {
    background: var(--c-ink);
    color: #fff;
    font-weight: bold;
    line-height: 1.5em;
}

/* Notes and boxes ----------------------------------------------------------------------------- */

.su-note {
    margin: 0 0 1.5em;
    border: 0;
}

/* SU 7.4.3 prints its shortcodes.css AFTER this file, so its border-width wins on equal
   specificity: double the class to drop the hairline SU draws around notes and boxes. */
.su-note .su-note-inner {
    border: 0;
    border-radius: var(--card-radius);
    box-shadow: var(--card-shadow);
}

.su-box.su-box {
    border: 0;
    border-radius: var(--card-radius);
    box-shadow: var(--card-shadow);
    overflow: hidden;   /* SU's title bar carries its own radius-2 corners; clip them to the card */
}

/* The intro band and the complaints notice are sized to the prose measure, centred */
.su-note.espa-intro,
.su-box.espa-complaints {
    max-width: 68ch;
    margin-inline: auto;
}

/* The intro note is dark: the theme link colour is unreadable on it */
.su-note.espa-intro a {
    color: #fff;
    text-decoration: underline;
}

.su-note.espa-intro a:hover {
    color: #D7ECF5;
}

/* Elsewhere colour alone is too close to body text, so keep links underlined ---------------- */

.su-note:not(.espa-intro) .su-note-inner a,
.su-box .su-box-content a {
    color: var(--c-link);
    text-decoration: underline;
}

.su-note:not(.espa-intro) .su-note-inner a:hover,
.su-box .su-box-content a:hover {
    color: var(--c-link-hover);
}

/* Readability: cap the measure at ~68ch (≈76 characters). Uncapped it measured ~105. ------------ */

.business-program-box .su-column-size-2-3 {
    max-width: 68ch;
}

/* Programme boxes ----------------------------------------------------------------------------- */

.business-program-box .su-row {
    margin-bottom: 0;
}

.business-program-box img {
    width: auto;
    max-width: 100%;
    max-height: 150px;
}

/* Act list from [su_posts] → <ul class="su-posts su-posts-list-loop"> */
.business-program-box .su-posts {
    margin: 1em 0 0;
    padding: 0;
    list-style: none;
}

/* Whole row is a click target: padding on the anchor, tint on the <li> it fills */
.business-program-box .su-posts .su-post {
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--c-border);
    line-height: 1.5em;
    transition: background-color .15s ease;
}

.business-program-box .su-posts .su-post:hover {
    background-color: var(--c-soft);
}

.business-program-box .su-posts .su-post:first-child {
    border-top: 0;
}

.business-program-box .su-posts .su-post > a {
    display: block;
    padding: .6em .5em .6em 1.9em;
    color: var(--c-link);
    font-weight: bold;
    text-decoration: underline;
}

/* Act glyph. The site loads FA 5.15.4 as "Font Awesome 5 Free" 900 — the v4 family name is not
   registered, which is why the template's font-family: FontAwesome rendered nothing. */
.business-program-box .su-posts .su-post > a::before {
    display: inline-block;
    width: 1.4em;
    margin-left: -1.4em;
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    content: "\f15c";
    color: var(--c-ink);
}

.business-program-box .su-posts .su-post > a:hover {
    color: var(--c-link-hover);
}

/* SU prints a «Posts not found» <li> when the query is empty — hide it */
.business-program-box .su-posts li:not(.su-post) {
    display: none;
}
