/* Paneelit, Lakitoimistoille: page-specific additions on top of the shared /designs/v2/paneelit/style.css (not edited).
   Study page (designs/v2), never deployed. Every value reuses the consumer page's tokens; NOTES.md explains each part. */

/* 1. Top bar: the three pages, as briefed. No terracotta square marks the current page (owner rule): the current link
   is underlined, like the current title in the phone sheet, so it never looks like the hover fill of another link.
   The line is currentColor, so over dark areas it turns light with the link (owner feedback 20). */
/* Below 900 the stuck bar is frosted paper (style.css), so the light parts would put a cream wordmark, CTA and menu
   icon on near-white: there the bar keeps its own colours (the Yrityksille page does the same; shared fix NOTES.md 3.3). */
@media (max-width:899px){
  .site-head.dark-a .nav-a .wm{color:var(--ink)}
  .site-head.dark-c .nav-cta{background:var(--navy);color:var(--cream)}
  .site-head.dark-c .menu-link,.site-head.dark-c .menu-btn{color:var(--ink)}
}

/* 2. Hero. The page has no lede and one CTA. The video toggle is not shown at any width (style.css, owner feedback 21), so the
   full-width CTA sits at the foot of the panel on phones with no corner to keep clear. */
/* Without JS the waves video has no source (hero-video.js sets it), but Chrome shows its native controls for a video
   when scripting is off: a dead control bar along the panel's foot. The consumer page shows it too (NOTES.md 3.5). */
html:not(.js) .hero-video::-webkit-media-controls{display:none!important}

/* Hero document: the consumer page's contract and its findings (the case's original document and risk table), on the
   shared still stage. From 1280 the first finding (2.2) would rest just above the reading line (46 % of the view), and
   main.js then brings it in by wrapping to the aria-hidden copy (NOTES.md 3.1). A top margin that follows the view
   height keeps every finding's centre at or below that line at rest, so the keyboard always lands on the original;
   it also takes the first heading out of the top fade. Measured need: 65 to 122px; this gives 83 to 140px. */
@media (min-width:1280px){#stage .doc-flow{padding-top:max(60px,calc(min(760px,var(--atf)) * .46 - 210px))}}
/* An open popover covers the next lines: a click or tap there reaches the highlight under it (main.js closes the
   popover on a click elsewhere), and the close button keeps its own hit area. */
#stage .doc-pop{pointer-events:none}
#stage .doc-pop-x{pointer-events:auto}

/* 3. Arvolupaus: one centred block, typeset like the consumer page's "Oletko täysin varma" head. */
.value{padding:clamp(24px,4vw,56px) var(--pad-x);text-align:center}
.value-copy{max-width:860px;margin:0 auto}
.value-lede{max-width:46ch;margin:22px auto 0;font-size:19px;line-height:1.55;color:#2B3443}
@media (max-width:767px){.value-lede{font-size:17px}}

/* 4. Keissipaketin sisältö: a hairline panel with the eight items in columns (4, 2, 1). No numerals (the approved page
   shows none; the <ol> keeps the order). Each item is a subgrid of its title and text, so the texts in one row start
   on one line even where a title wraps. */
.packet{padding:var(--pad-y) var(--pad-x)}
.packet .lede{color:var(--muted)}
.pk-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:56px 32px;list-style:none}
.pk-item{display:grid;grid-row:span 2;grid-template-rows:subgrid;row-gap:12px;min-width:0;padding-top:22px;border-top:1px solid var(--line)}
.pk-item h3{font-size:var(--fs-h4);line-height:1.15;letter-spacing:-.01em}
.pk-item p{max-width:34ch;font-size:16px;line-height:1.55;color:var(--muted)}
@media (max-width:1279px){.pk-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:48px 32px}}
@media (max-width:767px){.pk-grid{grid-template-columns:minmax(0,1fr);gap:36px}.pk-item{padding-top:20px}}

/* 5. Näin keissi etenee lakitoimistossa: the consumer page's method rows (hairlines, serif, a number column), static,
   beside ART-04 in an 8px frame that takes the rows' height. Below 1280 the frame follows the rows. */
.flow{padding:var(--pad-y) var(--pad-x)}
.flow-grid{display:grid;grid-template-columns:minmax(0,7fr) minmax(0,5fr);gap:56px;align-items:stretch}
.flow-steps{display:flex;flex-direction:column;min-width:0;border-top:1px solid var(--line);list-style:none}
.flow-steps li{display:flex;align-items:baseline;min-height:72px;padding:19px 0 18px;border-bottom:1px solid var(--line);font:400 clamp(20px,1.62vw,24px)/1.3 var(--serif);letter-spacing:-.005em}
.flow-n{flex:none;width:2.1em;color:var(--muted);font-variant-numeric:lining-nums}
.flow-t{flex:1 1 auto;min-width:0}
.flow-media{position:relative;min-width:0}
.flow-frame{position:relative;height:100%;min-height:440px;overflow:clip;border-radius:var(--r-panel);background-color:#2d3138;background-size:cover;background-position:50% 50%}
.flow-frame picture{display:contents}
.flow-frame img{position:absolute;inset:0;width:100%;height:100%;max-width:none;object-fit:cover;object-position:44% 50%}
@media (max-width:1279px){
  .flow-grid{grid-template-columns:minmax(0,1fr);gap:40px}
  .flow-frame{height:auto;min-height:0;aspect-ratio:3/2}
  .flow-frame img{object-position:50% 50%}
}
@media (max-width:1023px){.flow-frame{aspect-ratio:4/3}}
@media (max-width:767px){.flow-steps li{min-height:0;padding:15px 0 14px;font-size:19px}.flow-grid{gap:32px}}

/* 6. Vastuunjako: a sand panel, the two paragraphs side by side under hairlines (the approved page's columns). */
.duty{padding:var(--pad-y) var(--pad-x)}
.duty-cols{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:32px 64px}
.duty-cols p{max-width:38rem;padding-top:24px;border-top:1px solid rgb(4 13 30/.14);font-size:19px;line-height:1.55;color:#2B3443}
@media (max-width:767px){.duty-cols{grid-template-columns:minmax(0,1fr);gap:28px}.duty-cols p{padding-top:20px;font-size:17px}}

/* 7. Line breaks: "Partner -verkoston" and "Partner -lakitoimisto" stay on one line (a break after the hyphen leaves
   "Partner -" at a line end, which reads as a dash). The text is unchanged; only a span wraps it. */
.nw{white-space:nowrap}

/* 8. The approved law-firm footer's environment (designs/taste/lakitoimistoille: body.audience-page is 18px, 17px on
   phones, and its p and li do not hyphenate), and its no-JS fallback (audiences.css .footer-fallback and style.css
   .wordmark), scoped to #footer-root. footer-original.css brings the rest. Do not restyle: it must stay identical. */
#footer-root{font-size:18px}
@media (max-width:767px){#footer-root{font-size:17px}}
#footer-root p,#footer-root li{hyphens:none}
#footer-root .footer-fallback{background:var(--ink);color:var(--cream);padding:64px max(32px,calc((100% - 1280px)/2))}
#footer-root .footer-fallback p{font-size:16px;max-width:600px;margin-top:24px;color:#c3c6cc}
#footer-root .footer-fallback nav{display:flex;flex-wrap:wrap;gap:24px;margin-top:32px;font-size:15px}
#footer-root .wordmark{font-family:Overpass,sans-serif;font-weight:700;font-size:18px;letter-spacing:.18em;line-height:1}
@media (max-width:767px){#footer-root .footer-fallback{padding:64px 24px}}
