/* 18.11.2026: the home page's header (live SuomenParas.com header) on every demo page instead of the glass pill.
   Values and breakpoints measured from the home (v3home.html) at 390, 768, 1000, 1024, 1280, 1440 and 1920 px:
   20 px side gutter (16 px up to 720), burger up to 950, logo only (no wordmark) at 951-1240, header flags move to the
   bar under the footer up to 1080. Not sticky, same as the home. */
:root{--navh:0px}
header.site{position:relative;z-index:50;height:66px;color:#fff;font-family:var(--sans)}
header.site .hwrap{max-width:var(--col);margin:0 auto;padding:0 20px;height:66px;display:flex;align-items:center;gap:14px}
header.site .brand{display:flex;align-items:center;gap:12px;color:#FFFAF2;font:700 18.88px/1.6 "Baloo 2",sans-serif;letter-spacing:.01em;text-decoration:none;white-space:nowrap;flex:none}
header.site .brand img{width:52px;height:52px;display:block}
header.site .brand .tm{color:#FFE14D}
header.site nav.main{flex:1;display:flex;justify-content:flex-end;align-items:center;gap:2px}
header.site nav.main>a{display:block;padding:8px 11px;border-radius:10px;color:#FFFAF2;font:700 12.8px/1.6 var(--sans);letter-spacing:.005em;text-decoration:none;white-space:nowrap;transition:background .15s,color .15s}
header.site nav.main>a:hover{background:rgba(255,250,242,.10);color:#fff}
header.site nav.main>a.nav-mob{display:none}
header.site .langbar{display:flex;align-items:center;gap:4px;margin-left:12px;padding-left:14px;border-left:1px solid rgba(255,250,242,.20)}
.langsw{display:flex;align-items:center;padding:8px 3px;margin:-6px 0;border-radius:9px;opacity:.85;transition:opacity .15s}
.langsw:hover,.langsw.on{opacity:1}
.langsw svg{display:block;width:26px;height:17px;border-radius:3px}
.langsw.on svg{box-shadow:0 0 0 2px rgba(255,198,26,.55);outline:1px solid #FFE14D;outline-offset:-1px}
.langsw .sr,header.site .sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
header.site .navburger{display:none;margin-left:auto;padding:12px 6px;border:0;background:none;cursor:pointer;flex-direction:column;justify-content:center;gap:5px;-webkit-tap-highlight-color:transparent}
header.site .navburger span{display:block;width:25px;height:3px;border-radius:2px;background:#fff;transition:transform .25s,opacity .2s}
header.site.nav-open .navburger span:nth-child(1){transform:translateY(8px) rotate(45deg)}
header.site.nav-open .navburger span:nth-child(2){opacity:0}
header.site.nav-open .navburger span:nth-child(3){transform:translateY(-8px) rotate(-45deg)}
@media (min-width:1280px){header.site nav.main>a{font-size:.86rem}}
@media (min-width:951px) and (max-width:1240px){header.site .brand>span{display:none}}
/* flags under the footer, as on the home (shown up to 1080 px) */
.langbar-bottom{display:none;justify-content:center;align-items:center;gap:14px;width:100%;padding:18px 0 30px;background:#0A5A24;border-top:1px solid rgba(255,250,242,.10)}
.langbar-bottom .langsw{opacity:.7}
.langbar-bottom .langsw.on{opacity:1}
@media (max-width:1080px){
  header.site .langbar{display:none}
  .langbar-bottom{display:flex}
}
@media (max-width:950px){
  header.site,header.site .hwrap{height:64px}
  header.site .hwrap{gap:12px}
  header.site .navburger{display:flex}
  header.site nav.main{display:none;position:absolute;left:0;right:0;top:100%;flex-direction:column;align-items:stretch;gap:12px;padding:4px 0 10px;
    background:linear-gradient(180deg,#0F5A23 0%,#0B471B 100%);border-bottom:3px solid #062F11;box-shadow:0 14px 26px rgba(3,13,5,.35)}
  header.site.nav-open nav.main{display:flex}
  header.site nav.main>a,header.site nav.main>a.nav-mob{display:block;text-align:right;padding:8px 12px;margin:0;font-size:13.44px;border-radius:9px;border-top:1px solid rgba(255,255,255,.09)}
  header.site nav.main>a:first-child{border-top:0}
  /* the open menu ends with the language flags */
  header.site.nav-open .langbar{display:flex;justify-content:flex-end;gap:4px;padding:6px 6px 2px;margin:0;border:0}
  /* footer links: taller tap areas, same line spacing */
  footer.site .cols p a,footer.site .foot-legal a{display:inline-block;padding:6px 0;margin:-6px 0}
}
@media (max-width:720px){header.site .hwrap{padding:0 16px;gap:10px}}
@media (max-width:700px){
  header.site .brand{gap:8px;font-size:17.92px}
  header.site .brand img{width:46px;height:46px}
}
@media (max-width:340px){
  header.site .brand{gap:6px;font-size:14.72px}
  header.site .brand img{width:38px;height:38px}
}

/* footer: the home's full-bleed footer.site band, its text on the content edges */
footer.site{box-shadow:none!important;margin-top:16px;padding:64px 0 40px;background:linear-gradient(180deg,rgba(9,80,32,0) 0,rgba(9,80,32,.6) 140px,#0A5022 70%);color:#DDF5E2;border-top:0;font-family:var(--sans);font-size:13.44px;line-height:1.6}
footer.site .cols{display:grid;grid-template-columns:2fr 1fr 1fr;gap:32px}
footer.site h4{margin:0 0 12px;font:600 16px/1.6 "Baloo 2",sans-serif;letter-spacing:.01em;color:#FFE14D}
footer.site .cols p{font-size:14.08px;line-height:1.65}
footer.site .cols>div:first-child p{max-width:44ch;color:rgba(221,245,226,.9)}
footer.site a{color:#FFFAF2;font-weight:700}
footer.site .cols p a{line-height:1.85;color:rgba(255,250,242,.9)}
footer.site .cols p a:hover{color:#FFE14D;text-decoration:none}
footer.site p.mono{font:400 12.8px/1.95 var(--mono);color:#DDF5E2}
footer.site .fine{margin-top:40px;padding-top:24px;font-size:12.16px;line-height:1.65;border-top:1px solid rgba(255,250,242,.12);color:#A9C9B0}
footer.site .foot-legal{margin-top:14px;font-size:12.8px;line-height:2.1;font-weight:600;color:rgba(255,250,242,.4)}
footer.site .foot-legal a{white-space:nowrap;color:rgba(255,250,242,.86);font-weight:700}
footer.site .foot-legal a:hover{color:#FFE14D;text-decoration:underline;text-underline-offset:3px}
footer.site .foot-bottom{display:flex;justify-content:space-between;align-items:center;gap:14px;flex-wrap:wrap;margin-top:22px;padding-top:22px;border-top:1px solid rgba(255,250,242,.12)}
footer.site .oy{font:400 11.2px/1.8 var(--mono);letter-spacing:.16em;text-transform:uppercase;color:rgba(255,250,242,.55)}
footer.site .oy a{color:inherit;font-weight:400}
@media (min-width:721px){footer.site .cols{gap:40px}}
@media (max-width:700px){
  footer.site{padding:44px 0 32px}
  footer.site .cols{grid-template-columns:1fr}
}
footer.site+.langbar-bottom{margin-top:0}

/* same width rule as the home: from 1241 px the content is 94 % of the window, the side margins stay ~3 % */
@media (min-width:1241px){header.site .hwrap,body>.wrap,footer.site>.wrap{max-width:max(var(--col),calc(94% + 40px))}}

/* Kaikki kategoriat tiles without the #1 line (18.11.2026): one row, title centred */
.tile .st{grid-row:1}
.tiles .tile{min-height:66px}

/* wordmark like the logo (Anton 18.11.2026): Suomen white, Paras yellow, .com white */
header.site .brand .tp{color:#FFE14D}
header.site .brand .tm{color:inherit!important}
/* keyboard focus ring on every page, demo yellow (live style.css: :focus-visible gold ring) 19.11.2026 */
:focus-visible{outline:3px solid #FFE600;outline-offset:3px}

/* 19.11.2026: on short pages (or zoomed out) the footer fills the leftover height, not an empty gap above it */
html body>.wrap{flex-grow:0}html body>footer.site{flex-grow:1}
/* phone tap area for the footer e-mail line 19.11.2026 */
@media (max-width:760px){footer.site .oy a{display:inline-block;padding:13px 0;margin:-13px 0}}
