/* components.css — hand-written corrections to components.generated.css. Loads last. Every rule names its source:
   the measurement (inventory/design/raw/probe*, components.json) or the comparison (inventory/qa/styleguide-diff.json)
   that asked for it. No rule is copied from the CSS of the former template (Q36). */

/* Covid tiles: the shape behind each picture sits at the middle of the picture box, whatever its height.
   Measured on the live at 1366 on tiles 1–3 (tools/qa/_peek, 2026-11-12): top = half the box height (83.4 / 42.4 / 62.5 px on
   boxes of 167 / 85 / 125 px), left = half its width, shift −50% of its width and −67% of its 145px height (−97.15px).
   Tiles 2–10 carry another shape file than tile 1. The generated rule holds the pixel values of tile 1 only. */
li.covid19-item > .covid19-item-image::before { top: 50%; left: 50%; transform: translate(-50%, -67%); }
li.covid19-item:not(:first-child) > .covid19-item-image::before { background-image: url("../img/item-mask.svg"); }

/* /en, /de: the page section keeps its 50px bottom margin although it is the last child of the article. Measured on the
   live at every §13.1 viewport (probe: margin-bottom 50px, constant); the generated rule «section.aboutus» says so too but
   loses to the UIkit rule that removes the bottom margin of an article's last child (tools/qa/dom-audit, 2026-11-12: 50px → 0px). */
.uk-article > section.aboutus, .uk-block > section.aboutus { margin-bottom: 50px; }

/* Registration forms: values measured on the live /proeggrafi that the generated rules do not carry
   (the elements have no measured part of their own, or the general rule of the form wins). */
form#userForm ul.banklist li { list-style-image: none; list-style-position: outside; }
/* 572px at 768, 1366 and 1920, 90vw (337.5px) at 375 (tools/qa/_peek, 2026-11-13). The generated rule of every label of the form (220px !important) won. */
.proengrafh form#userForm .insideform div.rsform-block-newsofschool div.formControlLabel { width: 572px !important; }
@media screen and (orientation: portrait) and (max-width: 600px) {
  .proengrafh form#userForm .insideform div.rsform-block-newsofschool div.formControlLabel { width: 90vw !important; }
  form#userForm .rsform-block-arrivaltime select.rsform-select-box,
  form#userForm .rsform-block-departuretime select.rsform-select-box { max-width: none !important; }
}

/* /en, /de on phones: the first line of the three contact blocks carries an inline margin-top of 5px that the live
   cancels up to 500px wide (measured: 0px at 375, 5px at 768; tools/qa/_peek, 2026-11-13). The generated rule says 0px
   too, but only !important wins over the inline style. */
@media (max-width: 500px) {
  section.aboutus .tenth_row .tenth_row_wrapper .cu_row:nth-child(3) .cu_col:first-child .cu-row:nth-child(1),
  section.aboutus .tenth_row .tenth_row_wrapper .cu_row:nth-child(4) .cu_col:first-child .cu-row:nth-child(1),
  section.aboutus .tenth_row .tenth_row_wrapper .cu_row:nth-child(5) .cu_col:first-child .cu-row:nth-child(1) { margin-top: 0 !important; }
}

/* Contact page: the two Google maps have no top margin (measured 0px at 375, 768 and 1366; tools/qa/_peek, 2026-11-13).
   The generated rule «.contactform iframe» carries the 20px of the reCAPTCHA frame, the first iframe of the form. */
form#userForm .contactform > div > iframe { margin-top: 0; }

/* Home slider (#tm-top-a): the column of the block has no side padding on the live (measured 0px at every §13.1 width,
   tools/qa page geometry 2026-11-13); UIkit's .uk-grid-divider > * gives it 35px. */
#tm-top-a.uk-grid-divider > * { padding-left: 0; padding-right: 0; }

/* ΕΣΠΑ box (EngageBox «espa» on the live), fixed at the bottom left of every page. Values measured on the live at
   1366 and 375 (identical): 182px wide, 10px padding, white, shadow, close button 18px at the top right. */
#rstbox_2.rstbox { position: fixed; left: 0; bottom: 0; top: auto; right: auto; width: 182px; max-width: 182px; height: auto; box-sizing: border-box; padding: 10px; margin: 0; border: 0; border-radius: 0; background-color: rgb(255, 255, 255); color: rgb(51, 51, 51); box-shadow: rgba(0, 0, 1, 0.3) 0 0 2px 2px; z-index: 999999; font-size: 14px; line-height: 19.6px; transform: translateY(0); }
#rstbox_2.rstbox *, #rstbox_2.rstbox *::before, #rstbox_2.rstbox *::after { box-sizing: border-box; }
#rstbox_2 .rstbox-close { position: absolute; top: 0; right: 5px; z-index: 100; display: block; font-size: 22px; line-height: 19.6px; cursor: pointer; }
#rstbox_2 .rstbox-close img { display: inline; width: 18px; height: 18px; max-width: 100%; vertical-align: middle; }
#rstbox_2 .rstbox-container, #rstbox_2 .rstbox-content { display: block; padding: 0; margin: 0; }
#rstbox_2 .rstbox-content img { display: inline; width: 162px; height: auto; max-width: 100%; vertical-align: middle; }
/* slide up on load and down on close, 400ms (data-settings of the live box) */
#rstbox_2.rstbox.nk-hidden { transform: translateY(100%); }
#rstbox_2.rstbox.nk-anim { transition: transform 400ms ease; }
#rstbox_2.rstbox.nk-closed { display: none; }

/* Home, programme links: the live moves the icons 40px left only in portrait up to 960px (custom-min.css, two portrait
   rules); the generated rule holds the value at every width. Measured 0px at 1366 and 1920 (2026-11-13). */
@media not all and (orientation: portrait), (min-width: 961px) {
  #section4 .section4menulinks > div.sec4men > a[class^="sec4men"]::before { margin-left: 0; }
}

/* Copyright line: the «Created by» mark sits 10px from the text and 10px into the line below (margin-bottom −10px), measured at every §13.1 width (2026-11-13); the footer measurement had no part for the svg. */
.copyrightline p.copyright-r a span svg { margin-left: 10px; margin-bottom: -10px; }

/* Header after scroll (Gate 5, §13.2 «sticky header»): past 10px of scroll the live gives #tm-navbar the class «scroll»
   (assets/js/nav-scroll.js does the same); the cloud shrinks to half its size and the logo gets smaller. Values measured
   on the live after scrollTo(0, 1500) (tools/qa/state-diff.mjs, 2026-11-16), with the width ranges where they change.
   The logo keeps its own proportions (live: width auto, 84×84 at 1366); the generated rules hold its unscrolled 131px. */
/* (not on the registration forms, /proeggrafes and /eggrafi-kdap, body .proengrafh: the live does not shrink the header there; the
   rebuilt generated rules of 2026-11-16 no longer hold the logo size for those pages, which had hidden the difference) */
body:not(.proengrafh) #tm-navbar.scroll { background-size: 50%; transition: background-size 0.2s ease-in; }
body:not(.proengrafh) #tm-navbar.scroll img.logotop { width: auto; height: auto; max-width: 167px; max-height: 84px; object-fit: contain; position: absolute; right: 12.9vw; top: 1vw; }
@media (max-width: 1800px) { body:not(.proengrafh) #tm-navbar.scroll img.logotop { right: 18vw; } }
@media screen and (orientation: landscape) and (max-width: 1280px) { body:not(.proengrafh) #tm-navbar.scroll img.logotop { right: unset; left: 4vw; } }
@media screen and (orientation: landscape) and (max-width: 896px) { body:not(.proengrafh) #tm-navbar.scroll img.logotop { max-height: 52px !important; left: 3vw !important; } }
@media screen and (max-width: 960px) {
  body:not(.proengrafh) #tm-navbar.scroll { max-width: 227px; width: 500px; height: 194px; background-position-x: -6px; }
  body:not(.proengrafh) #tm-navbar.scroll img.logotop { max-width: 137px; max-height: 58px; object-fit: contain; position: absolute; right: unset; left: 5vw; top: 1vw; }
}
@media screen and (orientation: portrait) and (min-width: 450px) and (max-width: 960px) {
  body:not(.proengrafh) #tm-navbar.scroll img.logotop { max-width: 137px; max-height: 79px; object-fit: contain; position: absolute; right: unset; left: 0.5vw; top: 1vw; }
  body:not(.proengrafh) #tm-navbar.scroll { max-width: 347px; width: 500px; height: 190px; background-position-x: -44px; }
}
@media (min-width: 1921px) { body:not(.proengrafh) #tm-navbar.scroll img.logotop { max-width: 100%; max-height: 100%; object-fit: contain; position: absolute; right: 17em; top: 2em; } }

/* Hover and keyboard focus (Gate 5, §13.2). The generated rules were measured in the resting state only; these are the
   changes the live makes on :hover / :focus, found by tools/qa/hover-audit.mjs (every visible link, button, field and
   card of one page per template, live vs WordPress, 1366, 2026-11-16) and the live's matching rules. !important where
   the generated resting-state rules are more specific than the live's own; :where() keeps the generic link rule at the
   lowest weight among those, so the specific ones below win.
   - links: the text turns #2f363b on hover and on focus, everywhere but the menu (its own colours) and the read-more
     buttons of the action lists (blue on focus); bold text inside the link follows. The live also removes the focus
     ring of links and buttons («outline: -webkit-focus-ring-color» leaves no outline); WordPress keeps the browser's
     ring for keyboard users (open decision, anafora-pelati.md). */
a:hover, a:focus { color: rgb(47, 54, 59); }
a:hover strong, a:focus strong { color: inherit; }
a.uk-button:focus { color: rgb(119, 163, 236) !important; }
/* read-more of the action lists: the arrow's line grows to 14px and the arrow moves right (0.25s) */
a.uk-button span.uk-button-link::before { transition: right 0.25s; }
a.uk-button span.uk-button-link::after { transition: width 0.25s, right 0.25s; }
a.uk-button span.uk-button-link:hover::before { right: 0 !important; }
a.uk-button span.uk-button-link:hover::after { right: 4px !important; width: 14px !important; }
/* buttons («btnhome»): the coloured fill slides in from the left (0.2s ease-out) and the button grows to 105% */
.btnhome::after { transition: transform 0.2s ease-out; }
.btnhome:hover::after { transform: translate(0, 0) !important; }
.btnhome:hover { transform: scale(1.05) !important; }
/* home, programme links: grow to 110% (0.2s) */
#section4 .sec4men:hover { transform: scale(1.1) !important; transition: 0.2s; }
/* blog list: the picture zooms to 110% inside its frame (its 0.3s ease-out transition is already measured) */
.uk-thumbnail.uk-align-medium-left:hover img { transform: scale(1.1) !important; }
/* contact form: the send button turns yellow on hover (registration forms keep their cream colour, generated) */
body:not(.proengrafh) form#userForm input[type="submit"]:hover { background-color: rgb(255, 212, 68) !important; color: rgb(62, 35, 7) !important; }

/* Home, «ONLINE ΠΡΟΕΓΓΡΑΦΗ» block: the live raises its column (a flex item of .sub2) with z-index 999999, above the
   decorations of .sub2; without it the button was under them and could not be hovered or clicked (Gate 5, hit test at
   1366: the live finds the button, WordPress found .sub2). The measured rules have no z-index for a static element. */
#section1 .sub2 > .uk-width-large-1-1 { z-index: 999999; }

/* /menoume-asfaleis: the decorative shapes let the pointer through on the live (pointer-events none), so the links
   under them stay clickable; the measured rules have no pointer-events (Gate 5, tools/qa/hit-test.mjs: the Facebook
   link of the footer was under the cloud's shape at 1366). Hover: the pictures of the tiles rise 1rem (0.3s, already
   measured) and, in the menu, the «stay safe» banner moves down. */
.cloud1img::before, .cloud2img::before, .covid19-item-image.related-image::before, div#covid-19-landing-wrapper::after { pointer-events: none; }
.covid19-item-image.related-image:hover img { margin-top: -1rem !important; margin-bottom: 1rem !important; }
.menu-banner-covid19:hover { top: 5% !important; }
.menu-banner-covid19:hover img { margin-top: 1rem !important; margin-bottom: -1rem !important; }

/* Link colours on hover and focus where the measured resting-state rule outweighs «a:hover, a:focus» above: the
   generated part holds some of them for :hover only, none for :focus (hover-audit, 2026-11-16). On the live both turn
   #2f363b (bold text inside the link too). */
#section3 .tmhmatacontent > a:hover, #section3 .tmhmatacontent > a:focus,
#section5 .sec5desc a:focus,
#section55 .sec2desc > p > a:hover, #section55 .sec2desc > p > a:focus,
#section55 .sec2desc > p > a:hover > strong, #section55 .sec2desc > p > a:focus > strong,
#flax-component > .yoo-zoo.product-blog .pagecontent .innercont p a:focus,
#flax-component > .yoo-zoo.product-blog .pagecontent .innercont p a:focus > strong,
#flax-component > .yoo-zoo.product-uikit > ul.uk-pagination > li > a:focus { color: rgb(47, 54, 59); }
