/* BDS-01 Prototype: the landing page's second section (js/signin-parts.js). Each main part of the product with one real
   picture. Every rule is scoped to .si-parts; the names used here (si-parts, si-pnames, si-pname, si-pline, si-pshot,
   si-pimg) belong to this file only.
   Layout: a heading, the row of part names (the chosen one underlined in orange, as the app's own tabs), one line of
   text, then the picture at 16:10 inside a thin frame, capped at 1200 px and centred. */
.si-parts { padding: clamp(32px, 6vh, 64px) clamp(16px, 4.2vw, 80px) clamp(40px, 7vh, 72px); background: var(--bg); border-top: 1px solid var(--line); color: var(--ink); }
/* One inner block carries the width, so every piece (points, heading, names, line, picture) shares one left edge. */
.si-parts .si-pin { width: min(1200px, 100%); margin: 0 auto; }
.si-parts h2 { margin: 0 0 14px; font-size: 26px; line-height: 1.2; font-weight: 700; letter-spacing: -.01em; color: var(--ink); text-transform: none; }
.si-parts .si-pnames { display: flex; flex-wrap: wrap; gap: 0 4px; border-bottom: 1px solid var(--line-3); }
.si-parts .si-pname { min-height: 44px; padding: 0 14px; margin-bottom: -1px; border: 0; border-bottom: 3px solid transparent; background: none; font: inherit; font-size: 15px; font-weight: 700; color: var(--ink-2); cursor: pointer; white-space: nowrap; }
.si-parts .si-pname:hover { color: var(--ink); background: var(--hover); }
.si-parts .si-pname[aria-pressed="true"] { color: var(--ink); border-bottom-color: var(--orange); }
.si-parts .si-pname:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; }
.si-parts .si-pline { margin: 16px 0 14px; min-height: 2.9em; font-size: 17px; line-height: 1.45; color: var(--ink-2); text-wrap: pretty; }
.si-parts .si-pshot { margin: 0; aspect-ratio: 1440 / 900; border: 1px solid var(--line-3); border-radius: 10px; overflow: hidden; background: var(--surface); box-shadow: var(--shadow-lg); }
.si-parts .si-pimg { display: block; width: 100%; height: 100%; object-fit: cover; object-position: left top; }
.si-parts .si-pimg.dk, :root[data-theme="dark"] .si-parts .si-pimg.lt { display: none; }
:root[data-theme="dark"] .si-parts .si-pimg.dk { display: block; }
/* Ten names: one line on a laptop (a little tighter under 1420 px), two even lines of five on a tablet, never a lone
   name on a line of its own. */
@media (max-width: 1420px) and (min-width: 1181px) { .si-parts .si-pnames { gap: 0 2px; } .si-parts .si-pname { padding: 0 9px; font-size: 14px; } }
@media (max-width: 1180px) and (min-width: 761px) { .si-parts .si-pnames { display: grid; grid-template-columns: repeat(5, auto); justify-content: start; gap: 0; border-bottom: 0; } .si-parts .si-pname { margin-bottom: 0; text-align: left; border-bottom-width: 3px; box-shadow: 0 1px 0 var(--line-3); } }
@media (max-width: 760px) {
  .si-parts h2 { font-size: 22px; }
  .si-parts .si-pname { padding: 0 10px; font-size: 14px; }
  .si-parts .si-pline { font-size: 15px; min-height: 0; text-wrap: wrap; }   /* Safari's "pretty" left every line short on a phone */
  /* A whole screen shrunk to a phone's width cannot be read: the picture keeps a readable size and slides inside its frame. */
  .si-parts .si-pshot { border-radius: 8px; aspect-ratio: auto; overflow-x: auto; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; }
  .si-parts .si-pimg { width: 900px; max-width: none; height: auto; }
}
@media (prefers-reduced-motion: no-preference) { .si-parts .si-pname { transition: color 120ms, background-color 120ms, border-color 120ms; } }
