/* =====================================================================
   SITE HEADER — the menu bar, the phone bar and its drawer
   =====================================================================
   Measured off the live site (Astra's header builder), box for box:

   ON A COMPUTER (922px and wider): a rose bar 100px tall (20px of room
   round a 60px row), the menu in its middle, 15px words 25px apart on
   each side; the page you are on in dusty pink, an item under the
   pointer in stone.

   ON A TABLET OR A PHONE (921px and below): a white bar 84px tall with
   the blue menu button (39px square, 20px from the top and the right).
   The live bar is 114px tall and pulled 30px up off the screen; 84px is
   what shows of it, and what this one is.

   THE DRAWER slides in from the right over the page dimmed to 40%:
   90% of the screen wide, the cross in its corner, then the menu in
   bold Georgia, 66px a row.

   THE SEARCH BOX (not on the live site; the owner's request): the
   magnifier at the menu bar's right end, or beside the menu button,
   opens a white sheet from the top of the window over the page dimmed
   as for the drawer, with the same fade and the same cross: the field
   across it, the searches most asked for under it.

   THE BADGE (not on the live site; the owner's request, 2026-11-16):
   the school's crest hangs from the bar at its left, as the owner's own
   sites (nikolaos.kaounas, Nox Cella) hang their mark, by their
   figures: its top 12% of the bar's height below the screen's edge,
   its left 24% of it in from the side, and as tall as leaves 33% of its
   OWN height hanging below the bar, over the page: height = bar x
   (1 - 0.12) / (1 - 0.33). On a computer the bar is 100px, so the
   badge is 131px tall, 43px of it below; on a tablet or a phone 84px,
   so 110px, 36px below. It casts their mark's shadow, its own edge
   1px down and right, 0.3px soft, 0.9 dark. The language switcher and
   the magnifier stand together at the bar's right end.

   THE HEADER STAYS ON SCREEN (the owner's word, 2026-11-17: "Make the
   header of the page be like my wesbite which is always sticked with the
   users viewport. When it begin moving, the background becomes 50%
   transparent. When it goes aye the top, its full opacity comes back.
   The opscity from 100 to 50 should take a total transition of 3
   seconds, whilst to become non transparent should be 1 second. The
   logotype as well as the button will not be influenced by that opacity
   function"): it sticks to the top of the window. Once the page has
   moved off its top (`is-scrolled`, Site-Script.js) the bar's ground
   fades to half see-through over 3 seconds, and back to whole over 1
   second once the page is at its top again. Only the ground fades: the
   crest, the menu's words and the buttons keep their colours whole. A
   page opened partway down is drawn so at once (`is-placing`). A link to
   a place on a page (a school's section) stops below the bar and the
   crest's hanging part (`scroll-padding-top`). */

.sr-header {
    --sr-bar-h: 100px;
    --sr-badge-top: 0.12;
    --sr-badge-side: 0.24;
    --sr-badge-overhang: 0.33;
    position: sticky;
    top: 0;
    z-index: 99;
}
.sr-menubar, .sr-mobilebar { transition: background-color 1s ease; }
/* 75% opaque while scrolled since the owner's word of 2026-11-17 ("from 50% to 75% so that the buttons on it are more easily visible"); the timers unchanged */
.sr-header.is-scrolled .sr-menubar { background-color: color-mix(in srgb, var(--sr-menubar) 75%, transparent); transition-duration: 3s; }
.sr-header.is-scrolled .sr-mobilebar { background-color: color-mix(in srgb, var(--sr-white) 75%, transparent); transition-duration: 3s; }
.sr-header.is-placing .sr-menubar, .sr-header.is-placing .sr-mobilebar { transition: none; }
/* the page's top, watched to know the page has moved (Site-Script.js) */
.sr-top-mark { position: absolute; top: 0; left: 0; width: 1px; height: 1px; pointer-events: none; }
/* a place on a page is scrolled to below the bar and the crest's 43px under it (36 on a tablet or a phone) */
html { scroll-padding-top: 143px; }
@media (max-width: 921.98px) {
    .sr-header { --sr-bar-h: 84px; }
    html { scroll-padding-top: 120px; }
}

/* ---- The badge ---------------------------------------------------- */
.sr-badge {
    --sr-badge-h: calc(var(--sr-bar-h) * (1 - var(--sr-badge-top)) / (1 - var(--sr-badge-overhang)));
    position: absolute;
    top: calc(var(--sr-bar-h) * var(--sr-badge-top));
    left: calc(var(--sr-bar-h) * var(--sr-badge-side));
    z-index: 5;
    display: block;
    height: var(--sr-badge-h);
    aspect-ratio: 641 / 619;  /* the crest's own, trimmed to its edges */
}
.sr-badge__img {
    display: block;
    width: 100%;
    height: 100%;
    filter: drop-shadow(1px 1px 0.3px var(--sr-badge-shadow));
}
.sr-badge:focus-visible { outline: thin dotted; outline-offset: 4px; }

/* ---- On a computer ---------------------------------------------- */
.sr-header__mobile { display: none; }
.sr-menubar { position: relative; padding: 20px; background-color: var(--sr-menubar); }
.sr-menubar__inner {
    display: flex;
    justify-content: center;
    min-height: 60px;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}
.sr-menubar__nav { display: flex; height: 100%; }
.sr-menu { display: flex; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; }
.sr-menu__item {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 60px;
}
/* The live words are 25px apart on each side. Where the badge would
   meet the menu's first word (a window under about 1110px), the gaps
   narrow with the window, to 9px at 922px, and the menu keeps its
   middle: the figure is the badge's room on each side (2 x 175px) and
   the Greek menu's words (442px), over the twelve gaps. */
.sr-menu__link {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 clamp(8px, calc((100vw - 810px) / 12), 25px);
    font-size: 0.9375rem;
    text-transform: capitalize;
    color: var(--sr-heading);
}
.sr-menu__link:hover, .sr-menu__link:focus, .sr-menu__item:hover > .sr-menu__link { color: var(--sr-menu-hover); }
.sr-menu__item.is-current > .sr-menu__link { color: var(--sr-menu-current); }

/* ---- On a tablet or a phone ------------------------------------- */
@media (max-width: 921.98px) {
    .sr-header__desktop { display: none; }
    .sr-header__mobile { display: block; }
}
.sr-mobilebar {
    position: relative;
    z-index: 4;
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    height: 84px;
    padding: 20px 20px 0;
    background-color: var(--sr-white);
}
.sr-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    border: 0;
    border-radius: 2px;
    background: var(--sr-accent);
    color: var(--sr-white);
    line-height: 1;
    cursor: pointer;
}
.sr-menu-toggle:focus-visible { outline: thin dotted; }
.sr-menu-toggle .sr-icon { display: block; width: 15px; height: 15px; }

/* ---- The drawer --------------------------------------------------- */
.sr-drawer {
    position: fixed;
    inset: 0;
    z-index: 100000;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;  /* while it fades out, a tap reaches the page under it */
    transition: opacity 0.25s ease-in, visibility 0s linear 0.25s;
}
.sr-drawer.is-open { visibility: visible; opacity: 1; pointer-events: auto; transition: opacity 0.25s ease-out; }
.sr-drawer__overlay { position: fixed; inset: 0; background-color: var(--sr-overlay); cursor: pointer; }
.sr-drawer__panel {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 90%;
    overflow: hidden auto;
    color: var(--sr-drawer-text);
    background-color: var(--sr-white);
    box-shadow: 0 0 2rem 0 var(--sr-drawer-shadow);
    opacity: 0;
    transform: translateX(100%);
    transition: transform 0.2s ease-in, opacity 0.2s ease-in;
}
.sr-drawer.is-open .sr-drawer__panel { opacity: 1; transform: translateX(0); }
.sr-drawer__head { display: flex; flex-shrink: 0; justify-content: flex-end; min-height: calc(1.2em + 24px); }
.sr-drawer__close, .sr-searchbox__close {
    display: flex;
    align-items: center;
    padding: 0.6em;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: inherit;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}
.sr-drawer__close .sr-icon, .sr-searchbox__close .sr-icon { display: block; width: 17px; height: 17px; margin: 3.5px 0; }
.sr-drawer__close:focus-visible, .sr-searchbox__close:focus-visible { outline: thin dotted; }
.sr-drawer__menu { margin: 0; padding: 0; list-style: none; font-size: 0.9375rem; }
.sr-drawer__link {
    display: block;
    padding: 25px;
    border-bottom: 1px solid var(--sr-drawer-line);
    font-family: Georgia, Times, serif;
    font-weight: 700;
    line-height: 1;
    color: var(--sr-heading);
}

/* ---- The search box ----------------------------------------------- */
/* The magnifiers: in the menu bar, drawn as its words are (and pointed
   at, as they are), at the bar's right end, after the language
   switcher, so the menu keeps its middle; beside the menu button, as
   tall as it, in its blue. They show only once the script that opens
   the box has started. */
.sr-search-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: transparent;
    line-height: 1;
    cursor: pointer;
}
html:not(.sr-js) .sr-search-toggle { display: none; }
.sr-search-toggle:focus-visible { outline: thin dotted; }
.sr-search-toggle .sr-icon { display: block; width: 16px; height: 16px; }
/* the switcher and the magnifier, side by side at the bar's right end,
   as far in from the side as the bar's room (20px) */
.sr-menubar__tools { position: absolute; top: 20px; right: 20px; display: flex; height: 60px; }
.sr-search-toggle--bar { height: 60px; padding: 0 12px; color: var(--sr-heading); }
.sr-search-toggle--bar:hover, .sr-search-toggle--bar:focus-visible { color: var(--sr-menu-hover); }
.sr-search-toggle--mobile { margin-right: 8px; padding: 12px; color: var(--sr-accent); }
.sr-search-toggle--mobile:hover, .sr-search-toggle--mobile:focus-visible { color: var(--sr-accent-dark); }
.sr-search-toggle--mobile .sr-icon { width: 15px; height: 15px; }

/* VOICE SEARCH's microphones (Site-Script.js): beside each magnifier,
   drawn as it is, shown only where the browser can listen (the script
   unhides them). */
.sr-voice-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: transparent;
    line-height: 1;
    cursor: pointer;
}
.sr-voice-toggle[hidden], html:not(.sr-js) .sr-voice-toggle { display: none; }
.sr-voice-toggle:focus-visible { outline: thin dotted; }
.sr-voice-toggle .sr-icon { display: block; width: 18px; height: 18px; }
.sr-voice-toggle--bar { height: 60px; padding: 0 8px; color: var(--sr-heading); }
.sr-voice-toggle--bar:hover, .sr-voice-toggle--bar:focus-visible { color: var(--sr-menu-hover); }
.sr-voice-toggle--mobile { padding: 11px 8px; color: var(--sr-accent); }
.sr-voice-toggle--mobile:hover, .sr-voice-toggle--mobile:focus-visible { color: var(--sr-accent-dark); }
.sr-voice-toggle--mobile .sr-icon { width: 17px; height: 17px; }

/* ---- The language switcher (EN on a Greek page, ΕΛ on an English one)
   Beside the magnifier: on a computer at the menu bar's right end,
   drawn as the menu's words and pointed at as they are; on a tablet or
   a phone as tall as the magnifier, in the menu button's blue. */
.sr-lang-switch { display: flex; align-items: center; font-size: 0.9375rem; letter-spacing: 0.06em; line-height: 1; }
.sr-lang-switch--bar { height: 60px; padding: 0 12px; color: var(--sr-heading); }
.sr-lang-switch--bar:hover, .sr-lang-switch--bar:focus-visible { color: var(--sr-menu-hover); }
.sr-lang-switch--mobile { height: 39px; margin-right: 2px; padding: 0 10px; color: var(--sr-accent); }
.sr-lang-switch--mobile:hover, .sr-lang-switch--mobile:focus-visible { color: var(--sr-accent-dark); }
.sr-lang-switch:focus-visible { outline: thin dotted; }

.sr-searchbox {
    position: fixed;
    inset: 0;
    z-index: 100000;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;  /* as the drawer: while it fades out, a tap reaches the page under it */
    transition: opacity 0.25s ease-in, visibility 0s linear 0.25s;
}
.sr-searchbox.is-open { visibility: visible; opacity: 1; pointer-events: auto; transition: opacity 0.25s ease-out; }
.sr-searchbox__overlay { position: fixed; inset: 0; background-color: var(--sr-overlay); cursor: pointer; }
.sr-searchbox__panel {
    position: relative;
    padding: 56px 20px 40px;
    color: var(--sr-drawer-text);
    background-color: var(--sr-white);
    box-shadow: 0 0 2rem 0 var(--sr-drawer-shadow);
    opacity: 0;
    transform: translateY(-100%);
    transition: transform 0.2s ease-in, opacity 0.2s ease-in;
}
.sr-searchbox.is-open .sr-searchbox__panel { opacity: 1; transform: translateY(0); }
/* The theme fades every property of a field and a link (`transition:
   all`), its visibility too: the box's field would stay hidden for the
   instant the box opens and refuse the focus (on a phone, no keyboard).
   Inside the box they fade their colours only. */
.sr-searchbox :is(a, input) { transition-property: color, background-color, border-color; }
/* the field's hint in the browser's own lighter grey, as before the reset (which gives a hint its field's
   colour, the typed words'), so a hint never reads as words typed */
.sr-search__field::placeholder { color: var(--sr-field-hint); opacity: 1; }
.sr-searchbox__close { position: absolute; top: 0; right: 0; }
.sr-searchbox__inner { max-width: 760px; margin: 0 auto; }
.sr-searchbox__form { position: relative; }
/* the field is the theme's search field (Pages-Styling.css, read after
   this sheet, hence the two classes), across the sheet, with room for
   the magnifier inside its right end */
.sr-searchbox .sr-searchbox__field { display: block; width: 100%; padding: 15px 56px 15px 18px; font-size: 1.125rem; line-height: 1.4; }
.sr-searchbox__submit {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--sr-accent);
    cursor: pointer;
}
.sr-searchbox__submit:hover, .sr-searchbox__submit:focus-visible { color: var(--sr-accent-dark); }
.sr-searchbox__submit:focus-visible { outline: thin dotted; }
.sr-searchbox__submit .sr-icon { display: block; width: 18px; height: 18px; }
/* VOICE SEARCH in the box: its microphone inside the field, left of the
   magnifier (the field keeps room for both), a blue ring that breathes
   round it while it listens, and under the field what it says. */
.sr-voice .sr-searchbox .sr-searchbox__field { padding-right: 100px; }
.sr-searchbox__voice {
    position: absolute;
    top: 0;
    right: 54px;
    bottom: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--sr-accent);
    cursor: pointer;
}
.sr-searchbox__voice[hidden] { display: none; }
.sr-searchbox__voice .sr-icon { display: block; width: 20px; height: 20px; }
.sr-searchbox__voice:hover, .sr-searchbox__voice:focus-visible { color: var(--sr-accent-dark); }
.sr-searchbox__voice:focus-visible { outline: thin dotted; }
.sr-searchbox.is-listening .sr-searchbox__voice { color: var(--sr-white); }
.sr-searchbox.is-listening .sr-searchbox__voice::before {
    content: "";
    position: absolute;
    z-index: -1;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--sr-accent);
    animation: sr-listening 1.2s ease-in-out infinite;
}
@keyframes sr-listening { 0%, 100% { transform: scale(0.9); } 50% { transform: scale(1.12); } }
@media (prefers-reduced-motion: reduce) {
    .sr-searchbox.is-listening .sr-searchbox__voice::before { animation: none; }
}
.sr-searchbox__listen { margin: 10px 0 0; font-size: 0.875rem; color: var(--sr-text); }
.sr-searchbox__listen[hidden] { display: none; }
/* The pages found while typing: one row each, the page's name over the
   words round the match (the match in bold), in the drawer's lines;
   pointed at, in the menu bar's rose. The sheet scrolls if they outgrow
   the window. */
.sr-searchbox__panel { max-height: 100vh; max-height: 100dvh; overflow-y: auto; }
.sr-searchbox__found { margin: 12px 0 0; padding: 0; list-style: none; }
.sr-found { display: block; padding: 10px 12px; border-bottom: 1px solid var(--sr-drawer-line); color: var(--sr-text); }
.sr-found:hover, .sr-found:focus { background-color: var(--sr-menubar); color: var(--sr-text); }
.sr-found__title { display: block; font-weight: 700; color: var(--sr-heading); }
.sr-found__words { display: block; font-size: 0.875rem; line-height: 1.6; }
.sr-found__match { color: var(--sr-heading); }
/* a page found through the other language (BOTH LANGUAGES AT ONCE,
   Search-Service.php): that language's short name in a small frame
   before its words */
.sr-found__lang {
    display: inline-block;
    margin-right: 6px;
    padding: 0 5px;
    border: 1px solid var(--sr-border);
    border-radius: 2px;
    font-size: 0.6875rem;
    line-height: 1.5;
    letter-spacing: 0.04em;
    vertical-align: 1px;
    color: var(--sr-text);
}
.sr-searchbox__all { display: inline-block; margin-top: 10px; font-size: 0.875rem; color: var(--sr-accent); }
.sr-searchbox__none { margin: 14px 0 0; font-size: 0.875rem; color: var(--sr-text); }
@media (max-width: 544px) {
    .sr-searchbox__panel { padding: 52px 16px 28px; }
    .sr-searchbox .sr-searchbox__field { font-size: 1rem; }  /* a phone zooms into a field set smaller than 16px */
}

/* RECENT SEARCHES (Site-Script.js): this browser's last five while the
   field is empty, drawn as the searches most asked for under them, and a
   plain link-like button that forgets them. */
.sr-recent { margin-top: 18px; }
.sr-recent[hidden] { display: none; }
.sr-recent__title { margin: 0 0 10px; font-size: 0.875rem; color: var(--sr-text); }
.sr-recent__list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.sr-recent__clear {
    margin-top: 8px;
    padding: 4px 0;
    border: 0;
    background: none;
    font: inherit;
    font-size: 0.8125rem;
    text-decoration: underline;
    color: var(--sr-accent);
    cursor: pointer;
}
.sr-recent__clear:hover, .sr-recent__clear:focus-visible { color: var(--sr-accent-dark); }

/* The searches most asked for: one plain button-like link each, in the
   theme's lines and corners; pointed at, in the menu bar's rose. Also
   under the search box on "page not found" and "nothing found". */
.sr-keywords { margin-top: 18px; }
.sr-keywords__title { margin: 0 0 10px; font-size: 0.875rem; color: var(--sr-text); }
.sr-keywords__list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.sr-keyword {
    display: inline-block;
    padding: 6px 14px;
    border: 1px solid var(--sr-border);
    border-radius: 2px;
    background-color: var(--sr-white);
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--sr-heading);
}
.sr-keyword:hover, .sr-keyword:focus { border-color: var(--sr-menu-current); background-color: var(--sr-menubar); color: var(--sr-heading); }

/* The keys that open the box ("/", Ctrl+K), said under the searches on
   a computer alone: a phone has no such keys. */
.sr-searchbox__keys { display: none; margin: 16px 0 0; font-size: 0.8125rem; color: var(--sr-text); }
@media (hover: hover) and (pointer: fine) {
    .sr-searchbox__keys { display: block; }
}

/* THE MATCH SHOWN (Site-Script.js): the words a search found, on the
   page it opened, drawn as selected words are (the theme's selection:
   white on the blue, a 2px edge of it round them so the letters keep
   their room), for a moment; then fading back over a second. */
.sr-find {
    color: var(--sr-white);
    background-color: var(--sr-accent);
    box-shadow: 0 0 0 2px var(--sr-accent);
    border-radius: 1px;
    transition: color 1s ease, background-color 1s ease, box-shadow 1s ease;
}
.sr-find.is-fading { color: inherit; background-color: transparent; box-shadow: 0 0 0 2px transparent; }
@media (prefers-reduced-motion: reduce) {
    .sr-find { transition: none; }
}

/* Author: Nikolaos S. Kaounas */
