.main-nav [aria-current="page"] { text-decoration: underline; text-underline-offset: .35em; }
.nav-more { position: relative; }
.nav-more summary { list-style: none; cursor: pointer; white-space: nowrap; font-family: "Source Sans 3", sans-serif; font-size: 1rem; padding: 0; }
.nav-more summary::after { content: none; }
.nav-more summary::-webkit-details-marker { display: none; }
.nav-more summary span { margin-left: .3em; }
.nav-more[open] summary span { display: inline-block; transform: rotate(45deg); }
.nav-more-links { position: absolute; top: calc(100% + 1rem); right: 0; width: 22rem; max-width: calc(100vw - 2rem); padding: 1rem 1.4rem; background: var(--paper, #F7F2E8); color: #2B1F16; box-shadow: 0 12px 30px #2B1F1626; border: 1px solid #3B2A1F33; }
.nav-more-links a { display: block; padding: .7rem 0; white-space: normal; }
.footer-pages { display: flex; flex-wrap: wrap; gap: .85rem 1.5rem; padding-top: 2rem; padding-bottom: 2rem; border-top: 1px solid #F7F2E833; }
.footer-pages a { line-height: 1.4; }
.site-directory { background: #E7D3A9; }
.directory-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 1.8rem; margin-top: 2.5rem; }
.directory-grid a { display: flex; justify-content: space-between; align-items: start; gap: 1rem; padding: 1.2rem 0; border-top: 1px solid #3B2A1F55; font-size: 1.1rem; line-height: 1.5; text-decoration: none; }
.directory-grid a span:first-child { transition: color .2s ease; }
.directory-grid a:hover span:first-child, .directory-grid a:focus-visible span:first-child { text-decoration: none; color: #79411f; }
.subpage { color: #2B1F16; background: #F7F2E8; }
.subpage .site-header { background: #2B1F16; }
.subpage .button-dark { background: #2B1F16; color: #F7F2E8; font-weight: 600; }
.subpage main { padding-top: 92px; }
.subpage h1 { font-size: clamp(3rem, 5.2vw, 5.5rem); line-height: 1.06; max-width: 16ch; margin: 1.3rem 0 1.5rem; overflow-wrap: normal; }
.subpage h2 { font-size: clamp(2rem, 3.3vw, 3.2rem); line-height: 1.15; max-width: 21ch; margin: .8rem 0 1.5rem; }
.subpage h3 { font-size: 1.5rem; line-height: 1.25; margin: 0 0 1rem; }
.subpage p { font-size: 1.1rem; line-height: 1.65; }
.subpage .eyebrow { font-size: .8rem; line-height: 1.4; }
.page-hero { overflow: hidden; }
.page-hero-grid { display: grid; grid-template-columns: 1.08fr 1fr; gap: clamp(2rem, 4vw, 4rem); align-items: center; padding-top: 2.5rem; padding-bottom: 4rem; }
.page-hero-copy { padding-top: .5rem; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: .6rem; font-size: .85rem; line-height: 1.5; margin-bottom: 2.8rem; }
.breadcrumbs a { text-underline-offset: .2em; }
.page-lead { max-width: 48ch; margin-bottom: 1.8rem; }
.page-hero-photo { align-self: stretch; display: block; position: relative; min-height: 600px; }
.page-hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.subpage-suunnittelijoille .page-hero-photo img, .subpage-tekijat .page-hero-photo img { object-position: 55% center; }
.page-section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.page-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.page-prose { max-width: 65ch; }
.page-prose p + p { margin-top: 1.25rem; }
.page-section-head:not(.page-split) { max-width: 770px; }
.page-section-photo { display: block; }
.page-section-photo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.page-panel--red { background: #682A2B; color: #F7F2E8; }
.page-panel--red .eyebrow { color: #E7D3A9; }
.page-panel--sand { background: #E7D3A9; }
.page-card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 2.5rem; }
.page-card { border-top: 1px solid currentColor; padding-top: 1.5rem; }
.page-card p { margin: 0; }
.page-steps { list-style: none; padding: 0; margin: 2.5rem 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 2rem 3rem; }
.page-steps li { display: flex; gap: 1.5rem; border-top: 1px solid currentColor; padding-top: 1.5rem; }
.page-step-number { font-family: Bitter, serif; font-size: 1.4rem; opacity: .75; }
.page-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem 2rem; margin-top: 2rem; }
.page-gallery figure { margin: 0; }
.page-gallery img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.page-gallery figcaption { font-size: 1rem; line-height: 1.55; padding-top: .8rem; max-width: 60ch; }
.page-questions details { border-top: 1px solid #3B2A1F55; padding: 1.25rem 0; }
.page-questions details:last-child { border-bottom: 1px solid #3B2A1F55; }
.page-questions summary { font-family: Bitter, serif; font-size: 1.2rem; line-height: 1.45; cursor: pointer; padding-right: .7rem; }
.page-questions p { margin: 1rem 0 0; }
.page-next { background: #C28A3E; }
.page-next p { margin-top: 0; margin-bottom: 1.6rem; max-width: 55ch; }
.page-related { padding-top: 2.5rem; padding-bottom: 3rem; }
.page-related .directory-grid { margin-top: 1rem; }
.page-contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 4rem; }
.page-contact-grid > div > p { max-width: 38ch; }
.subpage .contact-line { display: block; margin: .75rem 0; overflow-wrap: anywhere; }
.subpage [id] { scroll-margin-top: 110px; }
@media (max-width: 1100px) and (min-width: 981px) { .main-nav { gap: 1.1rem; } .main-nav > a, .nav-more summary { font-size: .88rem; } }
@media (max-width: 980px) {
  .nav-more { width: 100%; }
  .nav-more summary { display: none; }
  .nav-more-links { position: static; padding: 0; width: auto; max-width: none; box-shadow: none; border: 0; background: transparent; color: #F7F2E8; }
  .nav-more-links a { padding: 0; margin-bottom: 1.4rem; }
  .main-nav { justify-content: flex-start; gap: 1.4rem; }
  .main-nav > a { flex-shrink: 0; }
  .subpage main { padding-top: 76px; }
}
@media (max-width: 760px) {
  .page-hero-grid, .page-split, .page-contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .page-hero-grid { padding-top: 1.3rem; padding-bottom: 0; }
  .breadcrumbs { margin-bottom: 2rem; }
  .subpage h1 { font-size: clamp(2.6rem, 9.3vw, 4rem); line-height: 1.1; }
  .page-hero-copy { padding-bottom: .5rem; }
  .page-hero-photo { min-height: 0; margin: 0 calc(-1 * clamp(1.25rem, 4vw, 2.5rem)); }
  .page-hero-photo img { position: static; height: auto; aspect-ratio: 4 / 3; }
  .page-card-grid, .page-steps { grid-template-columns: 1fr; gap: 1.7rem; }
  .page-gallery { grid-template-columns: 1fr; gap: 2rem; }
  .directory-grid { grid-template-columns: 1fr; margin-top: 1.5rem; }
  .footer-pages { display: grid; grid-template-columns: 1fr; gap: 1rem; }
  .subpage [id] { scroll-margin-top: 90px; }
}

/* Rakennukset: possibilities introduction in the brand ochre. */
.subpage-rakennukset .page-intro { background: #C28A3E; color: #241C15; }
.subpage-rakennukset .page-intro .eyebrow { color: #241C15; }

@media (min-width:981px) { .main-nav {gap:clamp(.75rem,1.5vw,1.5rem);} .main-nav > a {white-space:nowrap;} }

.home-contact-action {display:flex;align-items:center;justify-content:center;padding:2rem 0;}
