:root{
  --text:#172033;
  --muted:#667085;
  --blue:#2563eb;
  --blue2:#4f46e5;
  --border:#e5eaf2;
}

*{box-sizing:border-box}

body{
  margin:0;
  min-height:100vh;
  font-family:"Open Sans",Arial,sans-serif;
  color:var(--text);
  background:
    radial-gradient(circle at top left,rgba(37,99,235,.09),transparent 32%),
    linear-gradient(180deg,#f8fbff 0%,#f3f6fb 100%);
  overflow-x:hidden;
}

a{
  color:#1683e8;
  text-decoration:none;
  font-weight:700;
}

#main-container{
  width:min(920px,calc(100% - 32px));
  margin:16px auto 70px;
}

/* TOPBAR */
#guest-topbar{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:20px!important;
  padding:12px 24px!important;
  margin-bottom:20px!important;
  background:rgba(255,255,255,.92)!important;
  border-bottom:1px solid var(--border)!important;
}

#guest-logo img{
  display:block!important;
  max-width:260px!important;
  width:100%!important;
  height:auto!important;
}

/* LOGIN */
#user-area{
  width:max-content!important;
  max-width:100%!important;
  margin:0!important;
  padding:10px 14px!important;
  background:rgba(255,255,255,.94)!important;
  border:1px solid var(--border)!important;
  border-radius:15px!important;
  box-shadow:0 10px 30px rgba(16,24,40,.09)!important;
  text-align:center!important;
}

#user-area form{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:10px!important;
  flex-wrap:wrap!important;
}

#user-area b{
  font-size:13px!important;
  color:#344054!important;
}

#login-input{
  display:block!important;
}

#login-input > div{
  display:flex!important;
  align-items:center!important;
  position:relative!important;
}

#login_key{
  width:210px!important;
  height:40px!important;
  border:1px solid var(--border)!important;
  border-radius:11px!important;
  padding:0 42px 0 14px!important;
  background:#fff!important;
  outline:none!important;
  font-size:13px!important;
}

#user-area input[type="submit"]{
  height:40px!important;
  border:0!important;
  border-radius:11px!important;
  padding:0 20px!important;
  background:linear-gradient(135deg,var(--blue),var(--blue2))!important;
  color:#fff!important;
  font-weight:800!important;
  cursor:pointer!important;
  box-shadow:0 10px 24px rgba(37,99,235,.23)!important;
}

/* YHTEINEN HAKU + INFO -KORTTI */
#search,
#guest-info{
  background:rgba(219,234,254,.46)!important;
  border-left:1px solid rgba(147,197,253,.45)!important;
  border-right:1px solid rgba(147,197,253,.45)!important;
  box-shadow:none!important;
  backdrop-filter:none!important;
}

#search{
  margin:0!important;
  padding:36px 28px 16px!important;
  border-top:1px solid rgba(147,197,253,.45)!important;
  border-bottom:0!important;
  border-radius:22px 22px 0 0!important;
}

#search::before,
#search::after{
  display:none!important;
}

#search > div{
  display:block!important;
  width:100%!important;
  max-width:820px!important;
  margin:0 auto!important;
}

#search-form{
  width:100%!important;
  position:relative!important;
}

#search-engine,
#search-submit{
  display:none!important;
}

#keyword,
.input{
  width:100%!important;
  height:56px!important;
  border:2px solid #8fb3ff!important;
  border-radius:16px!important;
  padding:0 22px 0 48px!important;
  background:#fff!important;
  color:#111827!important;
  font-size:16px!important;
  outline:none!important;
  box-shadow:
    0 0 0 4px rgba(37,99,235,.10),
    0 12px 28px rgba(16,24,40,.08)!important;
}

#search-form::before{
  content:"";
  position:absolute;
  left:16px;
  top:19px;
  width:18px;
  height:18px;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24'%3E%3Cpath d='M21 21l-4.35-4.35m1.35-5.65a7 7 0 11-14 0 7 7 0 0114 0z' stroke='%2398a2b3' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center;
  background-size:contain;
  z-index:2;
  pointer-events:none;
}

#search-form::after{
  content:"Paina Enter hakuun";
  display:block;
  margin-top:7px;
  color:#667085;
  font-size:13px;
  font-weight:700;
  text-align:center;
}

/* INFO-OSA */
#guest-info{
  margin:0 0 20px!important;
  padding:28px!important;
  border-top:0!important;
  border-bottom:1px solid rgba(147,197,253,.45)!important;
  border-radius:0 0 22px 22px!important;

  display:grid!important;
  grid-template-columns:180px 1fr 260px!important;
  grid-template-rows:1fr auto 40px!important;

  column-gap:28px!important;
  row-gap:10px!important;

  min-height:200px!important;

   align-items:stretch!important; /* TÄRKEÄ */
    height:220px!important;
    padding-bottom:40px!important;
}
}

/* wrapper */
#guest-info > div{
  display:contents!important;
}

/* 🔍 KUVA vasemmalle keskelle */
#guest-info::before{
  content:"";
  grid-column:1;
  grid-row:1 / span 2;
  width:240px;
  height:180px;

  align-self:start!important;
  justify-self:center!important;

  background:url("search-image.png") center/contain no-repeat!important;
}

/* 📝 TEKSTIT keskelle (pystysuunnassa) */
#guest-info p:first-child,
#guest-info p:nth-child(2){
  grid-column:2;
  margin:0!important;
  max-width:520px;
  color:#172033;
  font-size:15px;
  line-height:1.55;
  font-weight:800;

  align-self:center!important; /* tämä tekee keskelle */
}

/* oikean puolen pieni teksti */
#guest-info p:nth-child(3){
  grid-column:3;
  grid-row:1;

  margin:0;
  font-size:14px;
  color:#172033;

  align-self:start!important;
}

/* 🛒 NAPPI oikealle alas */
#guest-info a{
  grid-column:3;
  grid-row:3!important;

  display:flex;
  align-items:center;
  justify-content:center;

  min-width:80px;
  min-height:21px;

  align-self:end!important;     /* alas */
  justify-self:end!important;   /* oikealle */

  margin-top:auto!important;    /* työntää alas */

  padding:0 24px;
  border-radius:8px;
  background:linear-gradient(135deg,var(--blue),var(--blue2));
  color:#fff;
  font-weight:900;
  text-decoration:none;
  box-shadow:0 12px 28px rgba(37,99,235,.25);
   margin-bottom:-8px!important;
}

#guest-info a::before{
  content:"🛒";
  margin-right:8px;
}

/* BANNERI */
#b-container{
  display:block!important;
  margin:20px 0!important;
  border-radius:14px!important;
  overflow:hidden!important;
  box-shadow:0 10px 24px rgba(16,24,40,.08)!important;
}

#b-container img{
  width:100%!important;
  height:auto!important;
  display:block!important;
}

/* MAINOKSET */
#link-container{
  display:grid!important;
  grid-template-columns:repeat(3,1fr)!important;
  justify-content:center!important;
  gap:20px!important;
  margin-top:0!important;
}

#link-container > .markkinointi{
  width:100%!important;
  margin:0!important;
  border-radius:14px!important;
  overflow:hidden!important;
  box-shadow:0 10px 24px rgba(16,24,40,.08)!important;
}

#link-container img{
  width:100%!important;
  height:auto!important;
  display:block!important;
}

#kalenteri,
#spacer{
  display:none!important;
}

/* FOOTER */
#footer{
  position:fixed!important;
  left:0!important;
  right:0!important;
  bottom:0!important;
  z-index:50!important;
  padding:9px 18px!important;
  background:rgba(255,255,255,.94)!important;
  border-top:1px solid var(--border)!important;
  color:#667085!important;
  font-size:12px!important;
  text-align:center!important;
}

#footer span{
  color:#22a06b!important;
  font-weight:900!important;
}

#footer a{
  color:#667085!important;
  font-weight:600!important;
}

/* MOBIILI */
@media(max-width:850px){
  #main-container{
    width:calc(100% - 16px)!important;
    margin:8px auto 18px!important;
  }

  #guest-topbar{
    flex-direction:column!important;
    gap:10px!important;
    padding:12px!important;
  }

  #guest-logo img{
    max-width:200px!important;
  }

  #user-area{
    width:100%!important;
  }

  #user-area form{
    width:100%!important;
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:7px!important;
  }

  #login-input,
  #login-input > div,
  #login_key,
  #user-area input[type="submit"]{
    width:100%!important;
  }

  #search{
    padding:18px 10px 12px!important;
    border-radius:16px 16px 0 0!important;
  }

  #keyword,
  .input{
    height:46px!important;
    border-radius:13px!important;
    font-size:13px!important;
    padding:0 14px 0 40px!important;
  }

  #search-form::before{
    left:13px!important;
    top:15px!important;
    width:15px!important;
    height:15px!important;
  }

  #guest-info{
    display:flex!important;
    flex-direction:column!important;
    align-items:center!important;
    justify-content:center!important;
    text-align:center!important;
    padding:22px 16px 28px!important;
    gap:14px!important;
    overflow:hidden!important;
    padding-right:14px!important;
  }

  #guest-info > div{
    display:flex!important;
    flex-direction:column!important;
    align-items:center!important;
    width:100%!important;
  }

  #guest-info::before,
  #guest-info p,
  #guest-info a{
    grid-column:auto!important;
    grid-row:auto!important;
    position:static!important;
    width:100%!important;
    max-width:260px!important;
    margin:12px auto 0!important;
  }

  #guest-info::before{
    width:90px!important;
    height:70px!important;
    margin:0 auto!important;
    flex:0 0 auto!important;
  }

  #guest-info p{
    display:block!important;
    width:100%!important;
    max-width:320px!important;
    margin:0 auto 8px!important;
    text-align:center!important;
    font-size:15px!important;
    line-height:1.45!important;
    font-weight:700!important;
  }

  #guest-info a{
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    width:100%!important;
    max-width:300px!important;
    min-width:0!important;
    min-height:44px!important;
    margin:10px auto 0!important;
    padding:0 16px!important;
    text-align:center!important;
    grid-column:auto!important;
    grid-row:auto!important;
    justify-self:center!important;
  }

  #link-container{
    grid-template-columns:repeat(3,1fr)!important;
    gap:8px!important;
  }

  #footer{
    position:static!important;
    margin-top:30px!important;
  }
}

@media(max-width:480px){
  #guest-info{
    padding:16px 10px 20px!important;
  }

  #guest-info::before{
    width:78px!important;
    height:58px!important;
  }

  #guest-info p{
    max-width:270px!important;
    font-size:14px!important;
  }

  #guest-info a{
    max-width:260px!important;
    min-height:40px!important;
    font-size:14px!important;
  }
}