/* Vastuullisuus-alasivu */
.nv-link.is-current::after { transform: scaleX(1); }
.vs-sticky { position: sticky; top: 100px; }

/* Eettiset periaatteet: avattavat rivit */
.vs-item { border-bottom: 1px solid var(--line); }
.vs-item:last-child { border-bottom: 0; }
.vs-item summary { list-style: none; display: grid; grid-template-columns: 44px 1fr 24px; align-items: center; gap: 12px; padding: 20px 0; cursor: pointer; }
.vs-item summary::-webkit-details-marker { display: none; }
.vs-no { font-family: var(--font-display); font-weight: 800; font-size: 15px; color: var(--action-text); font-variant-numeric: tabular-nums; }
.vs-title { font-family: var(--font-display); font-weight: 800; font-size: 20px; line-height: 1.25; }
.vs-plus { position: relative; width: 16px; height: 16px; justify-self: end; }
.vs-plus::before, .vs-plus::after { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 2px; background: var(--ink); border-radius: 1px; transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1); }
.vs-plus::after { transform: rotate(90deg); }
.vs-item[open] .vs-plus::after { transform: rotate(0deg); }
.vs-item summary:hover .vs-title { color: var(--action-text); }
.vs-item p { margin: 0; padding: 0 0 22px 56px; font-size: 16px; line-height: 1.6; color: var(--ink-muted); max-width: 60ch; }
.vs-item[open] p { animation: vs-open 0.4s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
@keyframes vs-open { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* Raportoinnin aikajana */
.vs-timeline { position: relative; }
.vs-timeline::before { content: ""; position: absolute; left: 5px; top: 10px; bottom: 10px; width: 2px; background: var(--line); }
.vs-timeline li { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 0 0 40px 40px; }
.vs-timeline li::before { content: ""; position: absolute; left: 0; top: 6px; width: 12px; height: 12px; background: var(--brand-red); transform: rotate(45deg); }
.vs-date { font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-muted); }
.vs-t-title { font-family: var(--font-display); font-weight: 800; font-size: 24px; line-height: 1.2; }
.vs-t-text { font-size: 16px; line-height: 1.6; color: var(--ink-muted); max-width: 56ch; }

@media (max-width: 900px) {
  .vs-sticky { position: static; }
  .vs-item p { padding-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .vs-item[open] p { animation: none; }
  .vs-plus::before, .vs-plus::after { transition: none; }
}

/* Meistä-sivun listat */
.mx-list li { position: relative; padding: 12px 0 12px 22px; border-top: 1px solid rgba(255,255,255,0.14); font-size: 15px; line-height: 1.45; }
.mx-list li::before { content: ""; position: absolute; left: 2px; top: 19px; width: 7px; height: 7px; background: var(--brand-red); transform: rotate(45deg); }
.mx-list-light li { border-top-color: var(--line); color: var(--ink); }

/* Tiimi: alueen valinta */
.tm-chip { font: 500 14px/1 var(--font-body); color: var(--ink); background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius-md); padding: 10px 14px; min-height: 40px; cursor: pointer; transition: background-color 0.2s, color 0.2s, border-color 0.2s; }
.tm-chip:hover { border-color: var(--ink); }
.tm-chip.is-on { background: var(--surface-inverse); color: var(--on-inverse); border-color: var(--surface-inverse); }
.tm-area { font-size: 12.5px; font-weight: 500; padding: 5px 9px; border-radius: var(--radius-sm); background: var(--surface-alt); color: var(--ink); }
.tm-card { transition: opacity 0.35s, transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), filter 0.35s; }
.tm-card.is-dim { opacity: 0.35; filter: grayscale(1); transform: scale(0.98); }
@media (prefers-reduced-motion: reduce) { .tm-card, .tm-chip { transition: none; } }

/* Yhteystiedot */
.yt-route { display: flex; flex-direction: column; justify-content: space-between; gap: 40px; min-height: 280px; padding: 32px; border-radius: var(--radius-lg); text-decoration: none; transition: translate 0.4s cubic-bezier(0.2, 0.7, 0.2, 1); }
.yt-route:hover { translate: 0 -4px; }
.yt-person { display: flex; }
.yt-rows li { display: flex; align-items: center; gap: 18px; padding: 18px 0; border-top: 1px solid var(--line); }
.yt-rows li:last-child { border-bottom: 1px solid var(--line); }
.yt-office { background: var(--surface-alt); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; }
.yt-office-mark { height: 140px; background: var(--surface-inverse); position: relative; overflow: hidden; background-image: linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px); background-size: 24px 24px; }
.yt-office-mark span { position: absolute; left: 50%; top: 50%; width: 18px; height: 18px; background: var(--brand-red); transform: translate(-50%, -50%) rotate(45deg); box-shadow: 0 0 0 10px rgba(237, 31, 36, 0.18); }
.yt-dl { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 32px; }
.yt-dl div { padding: 16px 0; border-top: 1px solid var(--line); }
.yt-dl dt { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); }
.yt-dl dd { margin: 4px 0 0; font-family: var(--font-display); font-weight: 800; font-size: 20px; font-variant-numeric: tabular-nums; user-select: all; }
.vs-no { min-width: 0; }
@media (max-width: 900px) {
  .yt-person img { width: 104px !important; }
  .yt-rows li { flex-wrap: wrap; }
  .yt-rows li > span:last-child { align-items: flex-start !important; text-align: left !important; width: 100%; padding-left: 82px; }
}
@media (prefers-reduced-motion: reduce) { .yt-route { transition: none; } }
#laskutus .vs-item summary { grid-template-columns: 64px 1fr 24px; }
#laskutus .vs-item p { padding-left: 76px; }
@media (max-width: 900px) { #laskutus .vs-item p { padding-left: 0; } }

/* Referenssit */
.rf-kicker { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--action-text); }
.rf-bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.rf-hero-card { grid-column: span 2; grid-row: span 2; background: var(--surface-inverse); color: var(--on-inverse); border-radius: var(--radius-lg); padding: 40px; display: flex; flex-direction: column; gap: 20px; min-height: 460px; position: relative; overflow: hidden; }
.rf-hero-card::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; background: var(--brand-red); opacity: 0.12; transform: rotate(45deg); }
.rf-card { background: var(--surface-alt); border-radius: var(--radius-lg); padding: 28px; display: flex; flex-direction: column; gap: 10px; min-height: 220px; }
.rf-name { font-family: var(--font-display); font-weight: 800; font-size: 26px; line-height: 1.1; }
.rf-big { font-family: var(--font-display); font-weight: 800; font-size: 56px; line-height: 1; letter-spacing: -0.03em; color: var(--brand-red); margin-top: auto; }
.rf-text { font-size: 14px; line-height: 1.5; color: var(--ink-muted); }
.rf-card .rf-text:last-child { margin-top: auto; }
.rf-card .rf-big + .rf-text { margin-top: 0; }

.rf-quote { margin: 0; flex: 0 0 min(420px, 84%) !important; min-height: 380px; background: var(--surface); border-radius: var(--radius-lg); padding: 36px 32px; display: flex; flex-direction: column; gap: 20px; }
.rf-marks { font-family: var(--font-display); font-weight: 800; font-size: 72px; line-height: 0.6; color: var(--brand-red); height: 32px; }
.rf-quote blockquote { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 20px; line-height: 1.4; letter-spacing: -0.01em; flex: 1; }
.rf-quote figcaption { display: flex; flex-direction: column; gap: 2px; font-size: 14px; padding-top: 16px; border-top: 1px solid var(--line); }
.rf-quote figcaption strong { font-weight: 600; font-size: 15px; }
.rf-quote figcaption span { color: var(--ink-muted); }

.rf-marquee { display: flex; flex-direction: column; gap: 14px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.rf-track { display: flex; gap: 12px; width: max-content; animation: rf-scroll 90s linear infinite; }
.rf-reverse { animation-direction: reverse; animation-duration: 110s; }
.rf-marquee:hover .rf-track { animation-play-state: paused; }
@keyframes rf-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.rf-pill { flex: none; padding: 14px 22px; border: 1px solid var(--line); border-radius: var(--radius-md); font-family: var(--font-display); font-weight: 700; font-size: 18px; white-space: nowrap; background: var(--surface); }

.rf-group { background: var(--surface-alt); border-radius: var(--radius-lg); padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.rf-group ul { list-style: none; margin: 0; padding: 0; }
.rf-group li { padding: 9px 0; border-top: 1px solid var(--line); font-size: 15px; font-weight: 500; }

.rf-tools { display: flex; flex-wrap: wrap; gap: 14px 20px; align-items: center; }
.rf-search { flex: 1 1 300px; position: relative; display: flex; align-items: center; }
.rf-search input { width: 100%; min-height: 48px; padding: 12px 16px 12px 44px; font: 400 16px/1.4 var(--font-body); color: var(--ink); background: var(--surface); border: 1.5px solid var(--line-strong); border-radius: var(--radius-md); }
.rf-search input:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; border-color: var(--ink); }
.rf-search-icon { position: absolute; left: 16px; width: 14px; height: 14px; border: 2px solid var(--ink-muted); border-radius: 50%; }
.rf-search-icon::after { content: ""; position: absolute; width: 7px; height: 2px; background: var(--ink-muted); right: -6px; bottom: -3px; transform: rotate(45deg); }
.rf-count { font-size: 12px; opacity: 0.6; margin-left: 4px; }
.rf-table-wrap { background: var(--surface); border-radius: var(--radius-lg); overflow-x: auto; }
.rf-table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 640px; }
.rf-table th { text-align: left; font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); padding: 16px 20px; border-bottom: 1px solid var(--line); }
.rf-table td { padding: 14px 20px; border-bottom: 1px solid var(--line); }
.rf-table tr:last-child td { border-bottom: 0; }
.rf-table tbody tr:hover { background: var(--surface-alt); }
.rf-table td:first-child { font-weight: 600; }

.rf-area { display: flex; flex-direction: column; gap: 6px; padding: 24px 0; border-top: 1px solid rgba(255,255,255,0.14); font-size: 15px; color: var(--on-inverse-muted); }
.rf-area-name { font-family: var(--font-display); font-weight: 800; font-size: 30px; color: var(--on-inverse); }

@media (max-width: 1000px) { .rf-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .rf-bento { grid-template-columns: 1fr; } .rf-hero-card { grid-column: auto; grid-row: auto; padding: 28px; } }
@media (prefers-reduced-motion: reduce) { .rf-track { animation: none; flex-wrap: wrap; width: auto; } }
@media (prefers-reduced-motion: reduce) { .rf-pill[aria-hidden="true"] { display: none; } .rf-marquee { -webkit-mask-image: none; mask-image: none; padding: 0 16px; } }
