/* lukaszscheibinger.com · page layer
   Loads after tokens-core.css, theme-ink-cobalt.css, components.css and hub.css (production components, re-tokenised).
   Holds only what this domain adds: the static level 1 + thin sticky level 2, the in-page dock state,
   reverse chronology in Career, the contact facts, the footer links and touch targets of 44 px.
   Colours only through theme tokens. */

/* ---------- Navigation: static level 1, thin sticky level 2 (>= 48rem) ---------- */
.ls-nav a[aria-current="page"] { color: var(--ink); }
@media (min-width: 48rem) {
  html:has(.ls-subnav) { scroll-padding-top: 0; }
  main section[id] { scroll-margin-top: 60px; }   /* the section bar is ~53 px tall */
  .ls-subnav ul { padding-block: .2rem; }
  .ls-subnav a { font-size: var(--fs-meta); }
}

/* ---------- Hero meta line on the DS scale ---------- */
.hero-main .meta { font-size: var(--fs-meta); }
@media (max-width: 47.99rem) { .hero-main .meta { font-size: var(--fs-micro); } }

/* ---------- Decision deck: controls at least 44 px on every width ---------- */
.deck .deck-ctl button { min-height: var(--target-min); }

/* ---------- Career: reverse chronology (2022-now first) ----------
   Phone and tablet keep the production list (dot timeline, year bar under each date) in reverse order.
   Desktop: the production 2014 -> 2025 scale reads left to right, so it cannot start from 2022 at the top;
   the same list is used instead, one row per role: dates and the 2014-2026 year bar on the left, text on the right. */
.ctl-roles .role-path { margin: 0 0 .35rem; font-size: var(--fs-meta); font-weight: var(--fw-medium); color: var(--ink); }
@media (min-width: 64rem) {
  .ctl-scale { display: none; }
  .ctl-roles { grid-template-columns: minmax(0, 1fr); border-left: 0; border-top: 1px solid var(--hairline-2); }
  .ctl-roles li {
    grid-column: auto; display: grid; grid-template-columns: 15rem minmax(0, 1fr); column-gap: 2.5rem; align-content: start;
    padding: 1.25rem 0; margin-right: 0; border-top: 0; border-bottom: 1px solid var(--hairline-2);
  }
  .ctl-roles li::before { display: none; }
  .ctl-roles li > .yrs { grid-column: 1; grid-row: 1 / span 4; align-self: start; padding-top: .3rem;
    display: grid; grid-template-columns: 6.25rem minmax(0, 1fr); gap: .5rem; align-items: center; }
  .ctl-roles li > :not(.yrs) { grid-column: 2; max-width: 64ch; }
  .ctl-roles h3 { margin-top: 0; }
  .ctl-roles .yrs::after {
    content: ""; height: 6px; border-radius: 3px;
    background: linear-gradient(90deg, transparent calc(var(--s) / 12 * 100%), var(--ink-2) calc(var(--s) / 12 * 100%), var(--ink-2) calc((var(--s) + var(--d)) / 12 * 100%), transparent calc((var(--s) + var(--d)) / 12 * 100%)), var(--hairline-2);
  }
  .ctl-roles li.now .yrs::after { background: linear-gradient(90deg, transparent calc(var(--s) / 12 * 100%), var(--accent) calc(var(--s) / 12 * 100%), var(--accent) 100%), var(--hairline-2); }
  .ctl-roles li.now .yrs { color: var(--ink); font-weight: var(--fw-semibold); }
}

/* ---------- Footer: hub line, own links (Email, LinkedIn), then external projects (↗) ---------- */
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1.5rem; }
.site-footer p { margin: 0; color: var(--muted); font-size: var(--fs-small); }
.site-footer p strong { color: var(--ink); font-weight: var(--fw-semibold); }
.site-footer .nav { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem; }
.site-footer .nav a { display: inline-flex; align-items: center; min-height: var(--target-min); padding-inline: .6rem; border-radius: var(--r-ctl); color: var(--muted); font-size: var(--fs-small); text-decoration: none; }
.site-footer .nav a:hover { color: var(--ink); background: var(--surface-2); }
.site-footer .p-ext-arr { margin-left: .2rem; }
.site-footer .p-foot-sep { width: 1px; height: 1.25rem; margin-inline: .35rem; background: var(--hairline-2); }
@media (max-width: 47.99rem) { .site-footer .nav { margin-inline: -.6rem; } }

/* ---------- Contact panel, right side: LinkedIn, location, confidentiality note ---------- */
.cp-facts { margin: 0; display: grid; }
.cp-facts > div { display: grid; gap: .15rem; padding: .75rem 0; border-top: 1px solid var(--band-hairline); }
.cp-facts > div:first-child { border-top: 0; padding-top: 0; }
.cp-facts dt { font-family: var(--font-mono); font-size: var(--fs-micro); letter-spacing: .06em; text-transform: uppercase; color: var(--band-muted); }
.cp-facts dd { margin: 0; color: var(--band-ink); }
.cp-facts a { display: inline-flex; align-items: center; min-height: var(--target-min); font-weight: var(--fw-medium); }
.cp-note { margin: 1rem 0 0; padding-top: 1rem; border-top: 1px solid var(--band-hairline); font-size: var(--fs-meta); font-style: italic; color: var(--band-muted); }

/* ---------- Dock: in-page slots show the section in view ---------- */
@media (max-width: 47.99rem) {
  .ls-dock a[aria-current="location"] { background: var(--accent-soft); color: var(--accent); font-weight: var(--fw-bold); }
}

/* ---------- Track record: two short paragraphs per card share the text row ---------- */
.proofs .pp p + p { margin-top: .5rem; }
/* Long production paragraphs split at sentence starts (words unchanged): spacing inside one block */
.dossier dd p, .kvlist dd p { margin: 0; }
.dossier dd p + p, .kvlist dd p + p { margin-top: .5rem; }
.rule .rp p + p { margin-top: .75rem; }
.ctl-roles li > p + p:not(.role-path) { margin-top: .5rem; }
/* Career dates: "2022–obecnie" stays on one line; the year bar starts at the same x in every row */
.ctl-roles .yrs > span { white-space: nowrap; }
@media (max-width: 63.99rem) { .ctl-roles .yrs { grid-template-columns: 7rem minmax(0, 11rem); } }
@media (min-width: 64rem) { .ctl-roles li > .yrs { grid-template-columns: 7rem minmax(0, 1fr); } }
