/* Per-post CSS for page 12547 — πράξη ΟΠΣ 6049813 «Μικροκινητικότητα εκτός Μητροπολιτικών Δήμων».
   Enqueued by the im-post-css mu-plugin on this post only (uploads/im-css/12547.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;           /* note fill */
    --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;
}

.su-heading {
    margin: 2em 0 1em;
}

.su-heading.top-heading {
    margin-top: 0;
}

/* Co-funding identities: ΕΣΠΑ + ΠΕΚΑ, sized so their heights match (455/4.32 ≈ 315/3.0) */

.identity-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1.2em;
    margin: 0 0 1.8em;
}

.identity-row img {
    display: block;
    width: 100%;
    height: auto;
}

/* wpautop drops a <br> between the two anchors when they sit on separate lines */
.identity-row > br {
    display: none;
}

.identity-espa {
    max-width: 455px;
}

.identity-peka {
    max-width: 315px;
}

/* 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 */
}

/* Cards are capped at the same measure as the prose and centred, so the text column is one block */
.espa-page .su-box.su-box {
    max-width: 68ch;
    margin-left: auto;
    margin-right: auto;
}

/* SU writes the note border inline (white) → !important */
.su-note.espa-archive-note .su-note-inner {
    border: 1px solid var(--c-border) !important;
    color: var(--c-ink);
}

/* wpautop turns the newline between two block-level spans into a <br>: a 33 px empty line between
   a label and its value. Kill the break, not the markup (it is not stored, it is added at render). */
.info-item > br,
.espa-archive-note .su-note-inner > br {
    display: none;
}

/* The theme's link colour is close to body text; scope it and keep links underlined ------------ */

.su-box .su-box-content a,
.su-note:not(.entry-title) .su-note-inner a {
    color: var(--c-link);
    text-decoration: underline;
}

.su-box .su-box-content a:hover,
.su-note:not(.entry-title) .su-note-inner a:hover {
    color: var(--c-link-hover);
}

/* Keep the act's «– Β Φάση» from breaking after the en dash (the dash is break-class BA, so an
   &nbsp; after it does NOT hold — a nowrap span does). */
.nowrap {
    white-space: nowrap;
}

/* Readability: cap the measure at ~68ch (≈76 characters) on the elements that hold the text and
   CENTRE them — capping the text inside a full-width column leaves dead space on the right. */

.espa-page > p,
.espa-page .su-list,
.espa-page .su-heading:not(.top-heading),
.espa-page .su-note.espa-archive-note {
    max-width: 68ch;
    margin-left: auto;
    margin-right: auto;
}

/* SU writes margin-left inline from the `indent` attribute (default 0), so auto-centring is
   overridden and the list hangs left of the prose column. Only !important beats an inline style. */
.espa-page .su-list {
    margin-left: auto !important;
}

/* SU ships `.su-list ul { padding: 0; list-style: none }` after this file → raise specificity.
   The icon is inline, so hang the wrapped lines with padding + negative text-indent. */
.espa-page .su-list ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.espa-page .su-list li {
    margin-bottom: .5em;
    padding-left: 1.4em;
    text-indent: -1.4em;
    line-height: 1.6;
}

.espa-page .su-list li i {
    margin-right: .45em;
}

/* ΟΠΣ identification card --------------------------------------------------------------------- */

.project-info .info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1em 1.5em;
}

.info-item {
    border-bottom: 1px solid var(--c-border);
    padding-bottom: .6em;
}

.info-item.wide {
    grid-column: 1 / -1;
}

.info-label {
    display: block;
    font-size: .8em;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--c-ink);
    opacity: .7;
}

.info-value {
    display: block;
    font-weight: bold;
    color: var(--c-ink);
    line-height: 1.4;
}

.info-code {
    display: inline-block;
    background: var(--c-soft);
    color: var(--c-ink);
    border-radius: 3px;
    padding: .1em .5em;
    letter-spacing: .06em;
}

@media (max-width: 768px) {
    .project-info .info-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .identity-row {
        gap: 1em;
        margin-bottom: 1.2em;
    }

    .identity-espa {
        max-width: 100%;
    }

    .identity-peka {
        max-width: 62%;
    }
}

@media (max-width: 500px) {
    .su-heading.top-heading .su-heading-inner {
        font-size: 1.05em;
    }

    .info-value {
        font-size: .95em;
    }
}

/* Download Attachments ------------------------------------------------------------------------ */
/* The plugin appends this AFTER the content, as a sibling of .espa-page, so the rules are not
   .espa-page-scoped. It prints its own «Σχετικά Αρχεία» title — no heading in the body.
   The theme's custom CSS paints that title (div.download-attachments / .download-title); doubling
   the class beats it without !important, since both are single-class selectors there. */

div.download-attachments.download-attachments {
    max-width: 68ch;
    /* The plugin appends this outside .espa-page, so it inherits no side gutter: subtract the
       container's 20 px on small screens, where 68ch no longer caps it. */
    width: calc(100% - 40px);
    margin: 2.5em auto 1.5em;
    border: 1px solid var(--c-ink);
    border-radius: var(--card-radius);
    background: #fff;
    box-shadow: var(--card-shadow);
    overflow: hidden;   /* clip the table and the title bar to the card radius */
}

div.download-attachments .download-title {
    margin: 0 0 0;
    color: #fff;
    font-size: 1.1em;
    font-weight: bold;
    letter-spacing: .02em;
}

div.download-attachments table.da-attachments-table {
    width: 100%;
    margin: 0;
    border-collapse: collapse;
    table-layout: auto;
    font-size: 1em;     /* the theme drops tables to .9em; the cells inherit from here */
}

/* Theme forces font sizes on th/td → !important, and the size must sit on the cells, not the
   table, or the title's 1.1em compounds. */
div.download-attachments .da-attachments-table thead {
    background: var(--c-soft);
}

div.download-attachments .da-attachments-table th {
    padding: .5em .8em;
    color: var(--c-ink);
    font-size: 1em !important;
    font-weight: bold;
    text-align: left;
    border-bottom: 1px solid var(--c-border);
}

div.download-attachments .da-attachments-table td {
    padding: .6em .8em;
    border-top: 1px solid var(--c-border);
    font-size: 1em !important;
    vertical-align: middle;
}

div.download-attachments .da-attachments-table tbody tr:first-child td {
    border-top: 0;
}

div.download-attachments .da-attachments-table .attachment-index {
    width: 2.6em;
    text-align: center;
    color: var(--c-ink);
    opacity: .65;
}

div.download-attachments .da-attachments-table .attachment-size {
    width: 8em;
    text-align: right;
    white-space: nowrap;
}

/* shortcut: the plugin's «Περιγραφή» column is empty for every attachment → hidden. Remove this
   rule once descriptions are filled in for all files. */
div.download-attachments .da-attachments-table .attachment-about {
    display: none;
}

div.download-attachments .attachment-icon {
    margin-right: .45em;
    vertical-align: middle;
}

div.download-attachments .attachment-link {
    color: var(--c-link);
    font-weight: bold;
    text-decoration: underline;
}

div.download-attachments .attachment-link:hover {
    color: var(--c-link-hover);
}

@media (max-width: 500px) {
    div.download-attachments .da-attachments-table th,
    div.download-attachments .da-attachments-table td {
        padding: .5em .6em;
    }

    div.download-attachments .da-attachments-table .attachment-size {
        width: 5.5em;
    }
}

/* Poster at the foot of the page (su_lightbox → click opens the full-size render) --------------- */
/* Kept to the prose measure and centred, so it reads as part of the same column. */

.project-poster {
    max-width: 68ch;
    margin: 2em auto 1.5em;
}

.project-poster img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--card-radius);
    box-shadow: var(--card-shadow);
}

/* wpautop drops a <br> around the shortcode's inner markup */
.project-poster > br {
    display: none;
}
