/* Studio's logo: the small nettipoika.fi brand line sits tight above a
   brick "Studio" with the same low yellow marker as the home headline
   (.sv-hero h1 span:after). Overrides the home-landing-v1.css wordmark. */
.studio-logo{flex-direction:column;align-items:flex-start;gap:0;padding-block:0;line-height:1}
.studio-logo .studio-logo-parent{display:block;margin:0 0 -.05rem .1rem;color:var(--color-ink);font-size:.6875rem;font-weight:800;letter-spacing:-.02em;line-height:1}
.studio-logo .studio-logo-parent b{color:var(--color-brick-600);font-weight:800}
.studio-logo .studio-logo-name{position:relative;display:block;color:var(--color-brick-600);font-size:1.75rem;font-weight:900;line-height:.95;letter-spacing:-.055em}
.studio-logo .studio-logo-name:after{content:"";position:absolute;z-index:-1;left:-.06em;right:-.04em;bottom:.02em;height:.3em;background:var(--color-sun-400);transform:rotate(-1.2deg);border-radius:4px}
/* Phone header on the landing pages: Ominaisuudet and Hinnat sit beside the
   logo from 360px up; sign-in, trial and language stay in the menu. Loaded
   after home-landing-v1.css, which hides .nav-links below 48rem. */
@media (min-width:360px) and (max-width:47.99rem){
 .nav-shell{gap:.25rem}
 .studio-logo .studio-logo-name{font-size:1.5rem}
 .studio-logo .studio-logo-parent{font-size:.625rem}
 .nav-links{display:flex;gap:0;margin-left:auto;margin-right:.25rem}
 .nav-links .nav-link{padding:.45rem .5rem;font-size:.8125rem;white-space:nowrap}
 .nav-links .nav-link[href="/account"]{display:none}
}
@media (min-width:360px) and (max-width:379px){
 .nav-links .nav-link{padding-inline:.35rem}
}
/* home-landing-v1.css hides the links at tablet widths; keep them beside the
   menu button there too. */
@media (min-width:48rem) and (max-width:63.99rem){
 .nav-shell .nav-links{display:flex;margin-left:auto;margin-right:.5rem}
}

/* Fill a short viewport with main content, keeping the footer in normal flow. */
.site-shell{display:flex;flex-direction:column;min-height:100vh;min-height:100svh}
.site-shell>main{flex:1 0 auto}
.site-shell>.site-footer{flex-shrink:0}

/* UX-11: the header order is Ominaisuudet, Hinnat, Tehty Studiolla. On
   narrow phones the header keeps Ominaisuudet and Hinnat; Tehty Studiolla
   stays in the menu. */
@media (max-width:29.99rem){.nav-links .nav-showcase{display:none}}

/* Phones: headings and buttons wrap into even lines, and body text avoids a
   lone last word. Browsers without text-wrap ignore it. */
h1,h2,h3,.section-title,button,.btn-primary,.btn-secondary{text-wrap:balance}
p,li,dd,blockquote{text-wrap:pretty}

/* Phone footer: the brand spans the width and the link lists sit two by two
   instead of one long column. */
@media (max-width:47.99rem){
 .footer-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:2rem 1.25rem}
 .footer-grid>:first-child{grid-column:1/-1}
}
