/* Esitekortti st1kauppiaat.fi:n sivupalkkiin (esitekortti.php), teema "Rohkea keltainen"
   (16.10.2026, ks. teema.css): keltainen kortti, mustanvihreä ääriviiva ja suora varjo.
   Sisältö 75 % leveydestä kuten sivuston Yhteistyössä- ja Info-korteissa. Läpinäkyvä
   tausta, jotta isäntäsivun tausta näkyy kulmien ja varjon takaa. */

@font-face {
  font-family: "Archivo"; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url(fontit/archivo-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Archivo"; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url(fontit/archivo-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; background: transparent; }
body { padding: 0 5px 5px 0; }   /* tilaa kortin varjolle */
body { font-family: "Archivo", system-ui, sans-serif; font-size: 16px; line-height: 1.45; color: #0d1f14; }

.piilo { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hunaja { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.ek {
  display: flex; flex-direction: column; align-items: center;
  padding: 22px 0; border: 2px solid #0d1f14; border-radius: 18px; background: #ffd23f; box-shadow: 5px 5px 0 #0d1f14;
}
.ek-sisalto { width: 75%; display: flex; flex-direction: column; gap: 10px; }

.ek-pilleri {
  align-self: flex-start;
  padding: 4px 10px; border-radius: 99px; background: #0d1f14; color: #ffd23f;
  font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; line-height: 1.5;
}
.ek-teksti { margin: 0; font-size: 14px; line-height: 1.45; font-weight: 600; }
.ek-pdf {
  display: inline-block; padding: 0 5px; border: 1.5px solid #0d1f14; border-radius: 5px;
  font-size: 11px; font-weight: 800; letter-spacing: .06em; line-height: 1.5; vertical-align: 1px;
}

/* Tumma painike; avattuna se katoaa ja tilalle tulee sähköpostikenttä */
.ek-painike {
  display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 8px 14px;
  border-radius: 12px; background: #0d1f14; color: #ffd23f;
  font-size: 15px; font-weight: 800; letter-spacing: .01em; line-height: 1.25; text-align: center; list-style: none; cursor: pointer; transition: background .15s;
}
.ek-painike::-webkit-details-marker { display: none; }
.ek-painike svg { flex: none; }
.ek-painike:hover { background: #2a3d30; }
.ek-painike:focus-visible { outline: 3px solid #0d1f14; outline-offset: 3px; }
.ek-esite[open] .ek-painike { display: none; }

.esitepyynto { display: flex; flex-direction: column; gap: 8px; padding-top: 4px; }
.esite-ohje { margin: 0; font-size: 13px; line-height: 1.4; font-weight: 500; }
.esite-rivi { display: flex; flex-direction: column; gap: 8px; }
.esite-rivi input[type=email] {
  width: 100%; min-height: 44px; padding: 0 12px;
  border: 2px solid #0d1f14; border-radius: 10px; background: #fff; color: #0d1f14; font: inherit; font-size: 15px;
}
.esite-rivi input[type=email]:focus { outline: none; box-shadow: 3px 3px 0 #0d1f14; }
.esite-rivi input[aria-invalid=true] { border-color: #b3261e; }
.esite-painike {
  min-height: 44px; padding: 0 16px; border: 0; border-radius: 10px;
  background: #0d1f14; color: #ffd23f; font: inherit; font-size: 15px; font-weight: 800; text-transform: uppercase; cursor: pointer;
}
.esite-painike:hover { background: #2a3d30; }
.esite-painike:focus-visible { outline: 3px solid #0d1f14; outline-offset: 3px; }
.esite-painike:disabled { opacity: .6; cursor: progress; }
.esite-tila { display: flex; align-items: flex-start; gap: 6px; margin: 0; font-size: 14px; font-weight: 700; line-height: 1.4; }
.esite-tila:empty { display: none; }
.esite-tila svg { flex: none; margin-top: 2px; color: #0d1f14; }
.esite-tila.virhe { padding: 8px 10px; border: 2px solid #b3261e; border-radius: 8px; background: #fdf0ee; color: #b3261e; font-size: 13px; }

/* Sivuston omat kortit levenevät 90 %:iin, kun koko sivu on enintään 600 px leveä. Ikkunan
   oma leveys ei kerro sitä, joten upotuskoodi (versio 1.1) ilmoittaa sen (upotus.js: luokka kapea). */
html.kapea .ek-sisalto { width: 90%; }
@media (prefers-reduced-motion: reduce) {
  .ek-painike { transition: none; }
}
