/* Service pages: /hakukoneoptimointi/ and /kotisivut-yritykselle/ (2026-11-16).
   They use the post layout from blog.css and the crumb, example and pilot form
   from opas.css. Only what those two do not cover lives here. */

/* "Hakukoneoptimointi" is one 18-letter word: at the post title's phone size it
   ran past the text column on a 375 px screen. */
@media (max-width: 480px) {
  .post-title-main { font-size: min(2rem, 7.8vw); }
}

/* The crumb sits closer to the title than on a guide chapter, which has a
   chapter number to carry. */
.opas-crumb + .post-header { padding-top: 1.5rem; }

/* ── Wide layout (2026-11-21) ────────────────────────────────────────────
   The post layout is one 800 px column, which on a wide screen left a service
   page as a long strip with empty margins. From 1100 px up the page is wider
   and each section sits in two columns: its heading on the left, staying in
   view while the section scrolls, the content on the right at reading width.
   The page ends with the pilot form and the conversation card side by side.
   Under 1100 px everything is the one column it was.

   Markup: .palvelu-page on the container, .palvelu-intro around the lead and
   the takeaways, one section.palvelu-split (__head, __body) per H2, and
   .palvelu-close around the form and .post-cta. Blog posts and guide chapters
   keep the single column: they are read, not scanned. */
.palvelu-intro .takeaways { margin: 1.75rem 0 0; }
.palvelu-split { margin-top: 3.25rem; }
.post-body .palvelu-split__head h2 { margin-top: 0; }
.palvelu-split__body > :first-child { margin-top: 0; }
.palvelu-split__body > :last-child { margin-bottom: 0; }
/* Tables and price cards fill their column instead of widening past it. */
.palvelu-page .post-body table, .palvelu-page .cost-compare { width: 100%; margin-inline: 0; }
.palvelu-close { display: grid; gap: 1.5rem; margin-bottom: 3rem; }
.palvelu-close .opas-form { margin: 0; }
.palvelu-close .post-cta { padding: 1.75rem; align-content: start; }
/* In the narrow column the card's title is the size of the form's, so a long
   compound ("hakukoneoptimoinnista") fits. No hyphens: auto here or on the
   section headings: the browser's Finnish hyphenation splits compounds in the
   wrong place ("kotisivua-lusta"). */
.palvelu-close .post-cta__title { font-size: 1.35rem; line-height: 1.25; overflow-wrap: break-word; }
.palvelu-split__head h2 { overflow-wrap: break-word; }

@media (min-width: 1100px) {
  .palvelu-page { max-width: 1180px; }
  .palvelu-intro { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 3rem; align-items: start; }
  .palvelu-intro .takeaways { margin: 0; }
  .palvelu-split { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 3rem; align-items: start; margin-top: 4.5rem; }
  .palvelu-split__head { position: sticky; top: 6.5rem; }
  .palvelu-close { grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); align-items: stretch; margin-top: 1.5rem; }
  .palvelu-page .post-next { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 3rem; align-items: start; }
}
@media (max-width: 700px) {
  .palvelu-close .post-cta { padding: 1.5rem; }
}
