/**
 * Pico's Default Theme
 *
 * Pico's default theme is a bit bare - but that's intentional! The default
 * theme isn't meant for production use, it's actually a template for you to
 * design your own theme around.
 *
 * Pico is a stupidly simple, blazing fast, flat file CMS.
 *
 * @author  Gilbert Pellegrom
 * @author  Daniel Rudolf
 * @link    http://picocms.org
 * @license http://opensource.org/licenses/MIT The MIT License
 * @version 2.1
 */

/*
 * Προεπιλογή (default): θερμή παλέτα — #b9936c · #dac292 · #e6e2d3 · #c4b7a6
 * Σετ «pico»: κλασικά χρώματα του default theme του Pico (`theme-pico`).
 * Σετ «dark»: σκοτεινό θέμα με teal τόνους (`theme-dark`).
 */
:root {
    --color-accent: #b9936c;
    --color-header: #dac292;
    --color-page: #e6e2d3;
    --color-stone: #c4b7a6;

    --color-text: #3d3530;
    --color-text-heading: #352f29;
    --color-accent-hover: #9a7855;
    --color-nav: #5c4d42;
    --color-focus-glow: rgba(185, 147, 108, 0.45);

    --color-footer-bg: var(--color-stone);
    --color-footer-text: var(--color-text);
    --color-footer-link: var(--color-accent);
    --color-footer-link-hover: var(--color-accent-hover);
    --color-title-on-header: var(--color-text-heading);
    --color-th-bg: var(--color-header);
    --color-th-text: var(--color-text-heading);
    --color-hr: var(--color-stone);
    --color-blockquote-border: var(--color-accent);
    --color-back-top-hover: var(--color-accent-hover);
    --color-surface-muted: var(--color-page);

    --color-input-bg: #ffffff;
    --color-input-fg: var(--color-text);
}

html.theme-pico {
    --color-accent: #2EAE9B;
    --color-header: #2EAE9B;
    --color-page: #ffffff;
    --color-stone: #cccccc;

    --color-text: #444444;
    --color-text-heading: #333333;
    --color-accent-hover: #444444;
    --color-nav: #afe1da;
    --color-focus-glow: rgba(46, 174, 155, 0.45);

    --color-footer-bg: #707070;
    --color-footer-text: #C0C0C0;
    --color-footer-link: #dddddd;
    --color-footer-link-hover: #ffffff;
    --color-title-on-header: #ffffff;
    --color-th-bg: #f5f5f5;
    --color-th-text: #333333;
    --color-hr: #f5f5f5;
    --color-blockquote-border: #f5f5f5;
    --color-back-top-hover: #258a7a;
    --color-surface-muted: #f5f5f5;

    --color-input-bg: #ffffff;
    --color-input-fg: var(--color-text);
}

html.theme-dark {
    --color-accent: #3dd4bc;
    --color-header: #123d37;
    --color-page: #161c1b;
    --color-stone: #3d4f4b;

    --color-text: #d1dbd8;
    --color-text-heading: #eef6f4;
    --color-accent-hover: #7ee8d8;
    --color-nav: #9ddfd2;
    --color-focus-glow: rgba(61, 212, 188, 0.45);

    --color-footer-bg: #0c1211;
    --color-footer-text: #9faeaa;
    --color-footer-link: #5ecfb8;
    --color-footer-link-hover: #b8f5ea;
    --color-title-on-header: #f2faf8;
    --color-th-bg: #1e2a27;
    --color-th-text: #dce8e5;
    --color-hr: #2a3835;
    --color-blockquote-border: #2a7d6e;
    --color-back-top-hover: #237a6d;
    --color-surface-muted: #1f2826;

    --color-input-bg: #182220;
    --color-input-fg: var(--color-text);
}

* {
    box-sizing: border-box;
    border: 0 none;
    margin: 0;
    padding: 0;
}

.hidden { display: none !important; }
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0 none;
}

.slide {
    overflow-y: hidden !important;
    -webkit-transition: height .5s ease-in !important;
            transition: height .5s ease-in !important;
}

/*** BASIC LAYOUT ***/

html, body { height: 100%; }

body { display: flex; flex-direction: column; }
#main { flex: 1 0 auto; }
#header, #footer { flex: 0 0 auto; }

#main {
    padding: 5em 0 4em;
    background: var(--color-page);
}

.container {
    max-width: 48em;
    padding: 0 0.5em;
    margin: 0 auto;
}
.widescreen .container { max-width: 72em; }

/* very ugly overflow fix, avoid this whenever possible! */
#main .container { overflow-x: auto; }

/*** BASIC LAYOUT: HEADER ***/

#header { background: var(--color-header); }

/* Δύο στήλες: brand (τίτλος·υπότιτλος + links κάτω) | θέμα */
#header > .header-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: 'brand tools';
    align-items: start;
    column-gap: 1rem;
    row-gap: 0.5rem;
}

#nav-toggle {
    display: none;
}

.header-brand {
    grid-area: brand;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    align-self: center;
    min-width: 0;
}

.header-brand-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
}

.header-titles {
    flex: 1 1 16em;
    min-width: 0;
}

.header-brand-row #logo {
    float: none;
    padding: 3em 2em 1em 0;
}

.header-titles #title {
    float: none;
    padding: 3em 2em 0.35em 0;
}

#title * { margin: 0; color: var(--color-title-on-header); }
#title p { font-style: italic; }

#logo { height: 10.8em; }
#logo * { display: block; height: 100%; }
#logo img { min-width: 4.8em; }

.header-titles #title h1 { margin: 0.8rem 0; }
.header-titles #title.tagline h1 { margin: 0; }

#nav {
    padding: 0 0 1.25em;
    min-width: 0;
    width: 100%;
    text-align: left;
}
#nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
    gap: 0.35em 1em;
}
#nav ul li {
    display: inline-block;
    margin: 0;
    padding: 0;
    font-weight: bold;
}

.header-tools {
    grid-area: tools;
    justify-self: end;
    align-self: start;
    padding-top: 3em;
}

#nav a, #nav-toggle { color: var(--color-nav); }
#nav .active a, #nav a:hover, #nav-toggle:hover { color: #fff; }

.color-scheme-picker {
    display: inline-block;
    margin: 0;
    vertical-align: middle;
    white-space: nowrap;
}
.color-scheme-label {
    font-size: 0.75rem;
    font-weight: bold;
    margin-right: 0.35em;
    color: var(--color-nav);
    vertical-align: middle;
}
#color-scheme-select {
    font: inherit;
    font-size: 0.8rem;
    font-weight: bold;
    max-width: 9em;
    padding: 0.2em 0.35em;
    border: 1px solid rgba(0, 0, 0, 0.18);
    border-radius: 0.25em;
    background: rgba(255, 255, 255, 0.45);
    color: var(--color-nav);
    cursor: pointer;
}
html.theme-pico #color-scheme-select {
    border-color: rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.2);
}
html.theme-dark #color-scheme-select {
    border-color: rgba(157, 223, 210, 0.35);
    background: rgba(0, 0, 0, 0.25);
    color: var(--color-nav);
}
#color-scheme-select:hover,
#color-scheme-select:focus {
    border-color: var(--color-nav);
    outline: none;
}
#color-scheme-select:focus-visible {
    box-shadow: 0 0 0 2px var(--color-focus-glow);
}

/*** BASIC LAYOUT: FOOTER ***/

#footer {
    background: var(--color-footer-bg);
    color: var(--color-footer-text);
}

#footer a { color: var(--color-footer-link); }
#footer a:hover { color: var(--color-footer-link-hover); }

/* Αιωρούμενο κουμπί επιστροφής στην κορυφή (εμφανίζεται όταν δεν φαίνεται το header) */
.back-to-top {
    position: fixed;
    z-index: 1000;
    right: 1.25rem;
    bottom: 1.25rem;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    border: 0 none;
    border-radius: 50%;
    background: var(--color-accent);
    color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(0.5rem);
    transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease, background 0.2s ease;
    pointer-events: none;
}

.back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.back-to-top:hover,
.back-to-top:focus {
    background: var(--color-back-top-hover);
    color: #fff;
    outline: none;
}

.back-to-top:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

#footer p {
    margin: 0;
    padding: 3em 0;
}

#footer .social {
    float: right;
    padding: 1.5em 0 1.5em 1em;
    font-size: 2rem;
}

#footer .social .footer-icon-link {
    display: inline-block;
    vertical-align: middle;
    line-height: 0;
}

#footer .social .footer-icon-link svg {
    width: 1em;
    height: 1em;
    display: block;
    fill: currentColor;
}

/*** BASIC LAYOUT: EXTRA SMALL DEVICES ***/

@media (max-width: 767px) {
    #main { padding: 2em 0 1em; }

    #header > .header-layout {
        grid-template-columns: 1fr auto;
        grid-template-areas:
            'brand toggle'
            'tools tools';
    }

    #nav-toggle {
        grid-area: toggle;
        align-self: start;
        justify-self: end;
    }

    .header-brand-row #logo {
        padding: 2em 1.5em 1em 0;
    }

    .header-titles #title {
        padding: 2em 1.5em 0.35em 0;
    }
    #logo { height: 8.8em; }

    .header-tools {
        padding-top: 0;
    }

    #nav {
        padding: 0;
    }
    #nav ul {
        flex-direction: column;
        gap: 0;
        padding-bottom: 1em;
    }
    #nav ul li {
        display: block;
        text-align: left;
    }
    #nav ul li a {
        display: block;
        padding: 0.5em 0;
    }

    .header-tools {
        justify-self: center;
        width: 100%;
    }

    .header-tools .color-scheme-picker {
        display: block;
        margin: 0.75em 0 0;
        text-align: center;
    }

    .js #nav-toggle {
        display: block;
        width: 2em;
        margin: 0.6667em 0;
        font-size: 1.5rem;
        line-height: 2em;
        text-align: center;
        cursor: pointer;
    }
    .js #nav-toggle > * { vertical-align: middle;  }

    #footer p { padding: 1em 0; }
    #footer .social { padding: 0.5em 0 0.5em 1em; }
}

/*** TYPOGRAPHY ***/

html { font-size: 16px; }

body {
    font-family: 'Droid Sans', 'Helvetica', 'Arial', sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    font-variant-ligatures: common-ligatures;
    text-rendering: optimizeLegibility;
    font-kerning: normal;
    color: var(--color-text);
    background: var(--color-page);
}

p, li, dd {
    text-align: justify;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

p, hr, table, .table-responsive, ol, ul, dl, dd, pre, blockquote, fieldset {
    margin-bottom: 1em;
}

a {
    color: var(--color-accent);
    text-decoration: none;
    -webkit-transition: color .2s ease-in;
            transition: color .2s ease-in;
}
a:hover { color: var(--color-accent-hover); }

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 0.6em;
    font-weight: bold;
    color: var(--color-text-heading);
}
h1 { font-size: 2rem; }
h2 { font-size: 1.7rem; }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.1rem; }
h5 { font-size: 1rem; }
h6 { font-size: 1rem; font-weight: normal; font-style: italic; }

img { max-width: 100%; }

hr {
    border: 0.15em solid var(--color-hr);
    border-radius: 0.3em;
    background: var(--color-hr);
}

abbr { text-decoration: underline dotted; }

/*** UTILITIES ***/

.align-left { text-align: left; }
.align-center { text-align: center; }
.align-right { text-align: right; }
.align-justify { text-align: justify; }

.image { display: block; margin: 0 auto; }
.image.xsmall { width: 20%; }
.image.small { width: 40%; }
.image.large { width: 60%; }
.image.xlarge { width: 80%; }
.image.float-left { float: left; margin: 1em 2em 1em 0; }
.image.float-right { float: right; margin: 1em 0 1em 2em; }
.image img { display: block; width: 100%; }

@media (max-width: 767px) {
    .image.xsmall { width: 60%; }
    .image.small { width: 80%; }
    .image.large, .image.xlarge { width: 100%; }
    .image.float-left, .image.float-right { float: none; margin: 0 auto; }
}

/*** TABLES ***/

table { border-spacing: 0; }

td, th {
    padding: 0.4em 1em;
    vertical-align: top;
}
td {
    text-align: left;
}
th {
    font-weight: bold;
    text-align: center;
    background: var(--color-th-bg);
    color: var(--color-th-text);
}

/* παράγραφοι μέσα σε κελιά· κεφαλίδες παραμένουν κεντραρισμένες */
table td p {
    text-align: left;
}
table th p {
    text-align: center;
}

td, th {                                         border: 1px solid var(--color-stone); }
tr:not(:last-child) td, tr:not(:last-child) th { border-bottom: 0 none; }
thead tr:last-child th {                         border-bottom: 0 none; }
td:not(:last-child), th:not(:last-child) {       border-right: 0 none; }

tr:first-child td:first-child, tr:first-child th:first-child { border-top-left-radius: 0.3em; }
tr:first-child td:last-child, tr:first-child th:last-child {   border-top-right-radius: 0.3em; }
tbody tr:last-child td:first-child {                           border-bottom-left-radius: 0.3em; }
tbody tr:last-child td:last-child {                            border-bottom-right-radius: 0.3em; }
table thead + tbody tr:first-child td {                        border-radius: 0 !important; }

.table-responsive { overflow-x: auto; }
.table-responsive > table { margin-bottom: 0; }

/*** LISTS ***/

ol, ul {
    list-style-position: outside;
    padding-left: 1.5em;
}
ol { padding-left: 2.5em; }
li { padding-left: 0.5em; }

dt { font-weight: bold; }
dd { margin-left: 2em; }

/*** CODE ***/

code {
    margin: 0 0.1em;
    padding: 0.1em 0.2em;
    border: 1px solid var(--color-stone);
    border-radius: 0.3em;
    background: var(--color-surface-muted);
    font-family: 'Droid Sans Mono', 'Courier New', 'Courier', monospace;
    font-size: 0.85rem;
    line-height: 1.9824;
}

pre {
    padding: 0 1em;
    border: 1px solid var(--color-stone);
    border-radius: 0.3em;
    background: var(--color-surface-muted);
}
pre code {
    display: block;
    margin: 0;
    padding: 1.1111em 0;
    border: 0 none;
    background: transparent;
    overflow-x: auto;
    line-height: 1.4;
}

/*** BLOCKQUOTE ***/

blockquote {
    font-style: italic;
    margin-left: 1em;
    padding-left: 1em;
    border-left: 0.5em solid var(--color-blockquote-border);
}

/*** FORMS ***/

label, fieldset legend { font-weight: bold; }

input:not([type="checkbox"]):not([type="radio"]), button, select, textarea, fieldset, fieldset legend {
    border: 1px solid var(--color-stone);
    border-radius: 0.3em;
    background: var(--color-input-bg);
    color: var(--color-input-fg);
    -webkit-transition: none .2s ease-in;
            transition: none .2s ease-in;
    -webkit-transition-property: border-color, background, box-shadow;
            transition-property: border-color, background, box-shadow;
}

input:not([type="checkbox"]):not([type="radio"]), button, select, textarea {
    padding: 0.5em 1em;
    outline: 0 none;
    font-size: 1rem;
}
input:focus:not([type="checkbox"]):not([type="radio"]), button:focus, select:focus, textarea:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 8px var(--color-focus-glow);
}
input[type="button"]:focus, input[type="submit"]:focus, input[type="reset"]:focus, button:focus,
input[type="button"]:hover, input[type="submit"]:hover, input[type="reset"]:hover, button:hover {
    background: var(--color-surface-muted);
    cursor: pointer;
}

textarea, select[multiple] {
    vertical-align: bottom;
    overflow: auto;
}

fieldset {
    padding: 1em;
    background: var(--color-surface-muted);
}
fieldset legend { padding: 0 0.5em; }

fieldset label, fieldset input, fieldset button,
fieldset select, fieldset textarea {
    margin: 0.2em 0.5em;
}
fieldset label:first-child, fieldset input:first-child, fieldset button:first-child,
fieldset select:first-child, fieldset textarea:first-child {
    margin-left: 0;
}
fieldset label:last-child, fieldset input:last-child, fieldset button:last-child,
fieldset select:last-child, fieldset textarea:last-child {
    margin-right: 0;
}

/* Firefox input size fix */
input::-moz-focus-inner, button::-moz-focus-inner {
    border: 0;
    padding: 0;
}
