/* amaxologio.gr · am-wp.css · WordPress integration only. The design CSS (am-*.css) stays unchanged.
   1. The .am-root wrapper fills the viewport so short pages never show the bare body below the footer.
   2. The body matches the page background in both schemes (overscroll / rubber-band areas). */
.wp-site-blocks{min-height:100vh;min-height:100dvh;display:flex;flex-direction:column}
.wp-site-blocks>.am-root{flex:1 0 auto;display:flex;flex-direction:column}
.wp-site-blocks>.am-root>main{flex:1 0 auto}
html,body{background:#FFFFFF}
@media (prefers-color-scheme:dark){html,body{background:#0F1318}}
.am-root [hidden]{display:none!important}
/* Checkpoint 5: guide text size (A−/A+ changes it), filter chips as links, active suggestion, real images in slots. */
.am-guide-body{font-size:18px}
.am-quick + .am-img{margin-top:32px}
a.am-chip{text-decoration:none}
.am-search__item.is-active{background:var(--am-surface);outline:2px solid var(--am-focus);outline-offset:-2px}
.am-img__file{display:block;width:100%;height:auto;border-radius:12px}
/* Checkpoint 6: trust and plain pages (design: page-trust.html, page-piges-nomothesia.html). */
.am-trustlayout{padding-block:24px 64px}
.am-pagewrap{padding-bottom:64px}
/* Checkpoint 7: a live AdSense unit fills the reserved box without the placeholder styling. */
.am-ad__slot--live{padding:0;border:0;background:transparent;display:block;overflow:hidden}
/* Checkpoint 8: garage page (design garage.html: wrap padding-bottom 64px, columns aligned to the top). */
.am-garagewrap{padding-bottom:64px}
.am-cols--start{align-items:start}
/* Guides: disclaimer line under the byline (Part C, Phase 4). */
.am-pagehead .am-pagehead__note{margin-top:14px!important;display:flex;gap:8px;align-items:flex-start}
.am-pagehead__note .am-i{flex:none;width:18px;height:18px;margin-top:2px}
/* Guide diagrams (HTML, not images: sharp text at any width, dark mode via tokens). Timeline + 12-month bar. */
.amd{margin:32px 0;padding:20px;border:1px solid var(--am-border);border-radius:12px;background:var(--am-surface)}
.amd__title{margin:0 0 14px!important;font-size:17px;font-weight:600;color:var(--am-text)}
.amd-tl{list-style:none;margin:0;padding:0 0 0 22px;display:grid;gap:14px;position:relative}
.amd-tl::before{content:"";position:absolute;left:6px;top:6px;bottom:6px;width:2px;background:var(--am-border-strong)}
.amd-tl li{position:relative;margin:0;padding:0;font-size:15px;line-height:1.5}
.amd-tl li::before{content:"";position:absolute;left:-21px;top:5px;width:12px;height:12px;border-radius:50%;background:var(--am-bg);border:2px solid var(--am-brand)}
.amd-tl li.is-key::before{background:var(--am-brand)}
.amd-tl li.is-warn::before{border-color:var(--am-danger);background:var(--am-danger)}
.amd-tl__date{display:block;font-weight:700;font-size:17px;color:var(--am-brand);font-feature-settings:"tnum"}
.amd-tl li.is-warn .amd-tl__date{color:var(--am-danger)}
@container (min-width:768px){
.amd-tl{padding:22px 0 0;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:16px}
.amd-tl::before{left:6px;right:6px;top:6px;bottom:auto;width:auto;height:2px}
.amd-tl li{padding-top:12px}
.amd-tl li::before{left:0;top:-22px}
}
.amd-months{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:6px;margin:0}
@container (min-width:768px){.amd-months{grid-template-columns:repeat(12,minmax(0,1fr))}}
.amd-m{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:52px;border-radius:8px;font-size:15px;font-weight:600;border:1px solid var(--am-border-strong);background:var(--am-bg);color:var(--am-text-muted)}
.amd-m small{font-size:12px;font-weight:400}
.amd-m.is-on{background:var(--am-brand);border-color:var(--am-brand);color:var(--am-bg)}
.amd-m.is-off{background:repeating-linear-gradient(135deg,var(--am-surface) 0 6px,var(--am-bg) 6px 12px)}
.amd-legend{display:flex;flex-wrap:wrap;gap:8px 20px;margin:12px 0 0!important;font-size:15px;color:var(--am-text-muted)}
.amd-legend span::before{content:"";display:inline-block;width:14px;height:14px;border-radius:4px;margin-right:6px;vertical-align:-2px;border:1px solid var(--am-border-strong)}
.amd-legend .is-on::before{background:var(--am-brand);border-color:var(--am-brand)}
.amd-legend .is-off::before{background:repeating-linear-gradient(135deg,var(--am-surface) 0 3px,var(--am-bg) 3px 6px)}
.amd .am-img__cap{margin-top:12px}
.amd-bars{display:grid;gap:10px;margin:0}
.amd-bar{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 10px;align-items:center;font-size:15px}
.amd-bar__track{grid-column:1/-1;grid-row:2}
@container (min-width:560px){.amd-bar{grid-template-columns:6.5em minmax(0,1fr) 5.5em}.amd-bar__track{grid-column:auto;grid-row:auto}.amd-bar__val{order:3}}
.amd-bar__track{height:24px;border-radius:6px;background:var(--am-bg);border:1px solid var(--am-border)}
.amd-bar__fill{height:100%;border-radius:5px;background:var(--am-brand)}
.amd-bar.is-year .amd-bar__fill{background:var(--am-text-muted)}
.amd-bar__val{font-weight:600;text-align:right;font-feature-settings:"tnum"}
/* image-slot block: real photos fill the column like the placeholder (explicit width/height attributes keep the ratio, no CLS). */
.am-img > img{display:block;width:100%;max-width:100%;height:auto;border-radius:12px}
/* Stacked tables on phones: long Greek words may break so a row never pushes the table wider than its box. */
@container (max-width:767px){.am-table--stack td{overflow-wrap:anywhere}}
/* Real photos in fixed-ratio slots (home hero, hub head, hub tiles, 404): same ratios as the placeholders, cropped to fill. */
.am-img__file--4x3,.am-img__file--resp,.am-img__file--hub{aspect-ratio:4/3;object-fit:cover}
@container (min-width:768px){.am-img__file--resp{aspect-ratio:16/9}.am-img__file--hub{aspect-ratio:21/9}}
.am-hubhead>.am-img__file{grid-area:1/1}
.am-tile .am-img__file{transition:filter .15s}
.am-tile:hover .am-img__file,.am-tile.is-hover .am-img__file{filter:brightness(.92)}
/* ---- Navigation and layout pass (17/10/2026) ---- */
/* Home: one search box (the hero's); the header copy is hidden on the front page only. */
.home .am-header__search{display:none}
/* Hub tiles: 4 per row from tablet width, shorter 3:2 photos. */
@container (min-width:700px){.am-grid--hubs{grid-template-columns:repeat(4,minmax(0,1fr))}}
.am-tile .am-img__file--4x3,.am-tile .am-img__ph--4x3{aspect-ratio:3/2}
.am-tile__name{font-size:16px}
/* Home «Οδηγοί» cards. */
.am-gcard{display:flex;flex-direction:column;gap:8px;padding:20px;border:1px solid var(--am-border);border-radius:12px;background:var(--am-bg);color:var(--am-text)!important;text-decoration:none!important;transition:border-color .15s,box-shadow .15s,transform .15s}
.am-gcard:hover,.am-gcard:focus-visible{border-color:var(--am-brand);box-shadow:0 6px 18px rgba(18,59,107,.10);transform:translateY(-2px)}
.am-gcard__hub{font-size:13px;font-weight:600;letter-spacing:.02em;color:var(--am-brand)}
.am-gcard__title{font-weight:700;font-size:18px;line-height:1.35;color:var(--am-text)}
.am-gcard__desc{flex:1;font-size:15px;line-height:1.5;color:var(--am-text-muted)}
.am-gcard__more{display:inline-flex;align-items:center;gap:6px;font-weight:600;font-size:15px;color:var(--am-brand)}
.am-gcard__more .am-i{width:18px;height:18px}
@media (prefers-reduced-motion:reduce){.am-gcard,.am-gcard:hover{transition:none;transform:none}}
/* Cards: a soft lift on hover. */
.am-card{transition:border-color .15s,background-color .15s,box-shadow .15s}
.am-card:hover{box-shadow:0 6px 18px rgba(18,59,107,.08)}
/* Phones: home tools as a compact 2-column grid (title + icon), smaller quick buttons, smaller H1. */
@container (max-width:519px){
[aria-labelledby="home-tools"] .am-grid--3{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
[aria-labelledby="home-tools"] .am-card{grid-template-columns:minmax(0,1fr);padding:14px;gap:8px}
[aria-labelledby="home-tools"] .am-card__icon{grid-row:auto;width:36px;height:36px}
[aria-labelledby="home-tools"] .am-card__title{font-size:16px}
[aria-labelledby="home-tools"] .am-card__desc{display:none}
.am-bigbtn{min-height:56px;padding:10px 14px}
}
@media (max-width:519px){.am-root h1,.am-root .am-h1{font-size:27px}}
/* Tool pages: the calculator card already shows «Ισχύει για»; drop the copy in the page head. */
.single-tool .am-pagehead .am-byline .am-badge{display:none}
/* Full tool cards (/ergaleia/) have 4 text rows; keep every row in the text column so the badges don't widen the icon column. */
.am-card>:not(.am-card__icon){grid-column:2}
@container (max-width:519px){[aria-labelledby="home-tools"] .am-card>*{grid-column:auto}}
/* Trust pages below desktop width: article first, the section menu after it (it used to fill the first screen). */
@container (max-width:1023px){.am-trustlayout>.am-stack{order:2;padding-top:24px;border-top:1px solid var(--am-border)}}
/* Home: slogan line above the descriptive H1. */
.am-hero__tag{margin:0 0 6px!important;font-weight:700;font-size:15px;letter-spacing:.02em;color:var(--am-brand)}

/* ---- navigation (25/10/2026) ---- */
.am-hnav{border-top:1px solid color-mix(in srgb,currentColor 18%,transparent)}
.am-hnav ul{list-style:none;margin:0 0 0 -10px;padding:0;display:flex;flex-wrap:nowrap;align-items:center;gap:0 2px;overflow-x:auto;scrollbar-width:none}
.am-hnav ul::-webkit-scrollbar{display:none}
.am-hnav li{margin:0;flex:none}
.am-hnav a{display:inline-flex;align-items:center;min-height:44px;padding:0 10px;border-radius:8px;font-family:inherit;font-weight:600;font-size:15px;line-height:1.2;white-space:nowrap;text-decoration:none;color:inherit!important}
.am-hnav a:hover,.am-hnav a:focus-visible{background:color-mix(in srgb,currentColor 14%,transparent)}
.am-hpanel__guides{grid-column:1/-1;border-top:1px solid var(--am-border);padding-top:20px}
.am-hpanel__gg{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:20px 24px}
.am-hpanel__hubname{display:flex;align-items:center;gap:8px;font-weight:700;font-size:16px;color:var(--am-brand)!important;text-decoration:none;margin-bottom:6px}
.am-hpanel__hubname .am-i{width:20px;height:20px}
.am-hpanel__gg ul{list-style:none;margin:0;padding:0;display:grid;gap:0}
.am-hpanel__gg li{margin:0}
.am-hpanel__gg li a{display:block;padding:6px 8px;margin-inline:-8px;border-radius:6px;font-size:15px;line-height:1.35;color:var(--am-text)!important;text-decoration:none}
.am-hpanel__gg li a:hover{background:var(--am-brand-soft)}
.am-hubcards{display:grid;gap:16px;grid-template-columns:repeat(auto-fill,minmax(270px,1fr))}
.am-hubcard{display:flex;flex-direction:column;gap:6px;padding:18px 18px 14px;border:1px solid var(--am-border);border-radius:12px;background:var(--am-bg)}
.am-hubcard__head{display:flex;align-items:center;gap:10px;font-weight:700;font-size:18px;line-height:1.3;color:var(--am-brand)!important;text-decoration:none}
.am-hubcard__head .am-i{width:22px;height:22px;flex:none}
.am-hubcard__n{margin-inline-start:auto;font-size:13px;font-weight:600;background:var(--am-brand-soft);color:var(--am-brand);border-radius:999px;padding:2px 10px}
.am-hubcard ul{list-style:none;margin:4px 0 0;padding:0;display:grid}
.am-hubcard li{margin:0;border-top:1px solid var(--am-border)}
.am-hubcard li a{display:block;padding:9px 2px;font-size:16px;line-height:1.35;color:var(--am-text)!important;text-decoration:none}
.am-hubcard li a:hover{color:var(--am-brand)!important;text-decoration:underline}
.am-hubcard__more{margin-top:4px;font-size:14px;font-weight:600;color:var(--am-brand)!important}
.am-hubgroup{margin:8px 0 40px}
.am-hubgroup__h{display:flex;align-items:center;gap:10px;font-size:26px!important;line-height:1.25!important;margin:0 0 16px!important}
.am-hubgroup__h .am-i{width:28px;height:28px;color:var(--am-brand)}
@media (max-width:600px){.am-hubgroup__h{font-size:22px!important}}

/* the global «li + li» spacing must not apply to the navigation lists added on 25/10/2026 */
.am-hnav li,.am-hnav li+li,.am-hpanel__gg li,.am-hpanel__gg li+li,.am-hubcard li,.am-hubcard li+li{margin-top:0!important;margin-bottom:0!important}

/* guide/tool cards with photo (26/10/2026) */
.am-gcard--thumb{padding:0;gap:0;overflow:hidden;height:100%}
.am-gcard__img{display:block;aspect-ratio:16/9;background:var(--am-surface);overflow:hidden}
.am-gcard__img img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .25s}
.am-gcard--thumb:hover .am-gcard__img img{transform:scale(1.03)}
.am-gcard__img--ph{display:grid;place-items:center;background:var(--am-brand-soft);color:var(--am-brand)}
.am-gcard__img--ph .am-i{width:44px;height:44px;opacity:.7}
.am-gcard__body{display:flex;flex-direction:column;gap:8px;padding:16px 18px 18px;flex:1}
.am-gcard--thumb .am-gcard__title{font-size:17.5px}
.am-gcard--thumb .am-gcard__desc{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.am-gcard--thumb .am-gcard__more{margin-top:auto}
.am-guidecards{align-items:stretch}
@media (prefers-reduced-motion:reduce){.am-gcard__img img{transition:none}.am-gcard--thumb:hover .am-gcard__img img{transform:none}}
@media (max-width:599px){
.am-gcard--thumb{flex-direction:row;height:auto}
.am-gcard--thumb .am-gcard__img{width:104px;flex:none;aspect-ratio:auto;align-self:stretch}
.am-gcard--thumb .am-gcard__body{padding:12px 14px;gap:5px}
.am-gcard--thumb .am-gcard__title{font-size:16px;line-height:1.3}
.am-gcard--thumb .am-gcard__desc{-webkit-line-clamp:2;font-size:14px}
.am-gcard--thumb .am-gcard__hub{font-size:12px}
.am-gcard--thumb .am-gcard__more{display:none}
}
#hub-all{margin-top:56px!important}

/* related guides in the sidebar and under the article (28/10/2026) */
.am-aside__sticky{max-height:calc(100vh - 48px);overflow-y:auto;scrollbar-width:thin;padding-right:4px}
.am-sidecards{list-style:none;margin:0!important;padding:0!important;display:grid;gap:8px}
.am-sidecards li{margin:0!important}
.am-sidecard{display:grid;grid-template-columns:88px minmax(0,1fr);gap:12px;align-items:center;padding:6px;border:1px solid transparent;border-radius:10px;text-decoration:none!important;color:var(--am-text)!important;transition:background .15s,border-color .15s}
.am-sidecard:hover,.am-sidecard:focus-visible{background:var(--am-surface);border-color:var(--am-border)}
.am-sidecard__img{display:block;aspect-ratio:4/3;border-radius:8px;overflow:hidden;background:var(--am-surface)}
.am-sidecard__img img{display:block;width:100%;height:100%;object-fit:cover}
.am-sidecard__img--ph{display:grid;place-items:center;color:var(--am-brand);background:var(--am-brand-soft)}
.am-sidecard__img--ph .am-i{width:28px;height:28px;opacity:.7}
.am-sidecard__body{display:grid;gap:3px}
.am-sidecard__hub{font-size:12px;font-weight:600;color:var(--am-brand)}
.am-sidecard__title{font-weight:600;font-size:14.5px;line-height:1.3;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.am-relgrid{margin-top:40px}
@container (min-width:1024px){.am-relgrid{display:none}}
