/* ChipSoft draft v17: subpage components. Loaded only on pages built by build.py.
   Every component uses the homepage tokens (--blue, --grad, --light, --line, --muted, --ink, --orange). */

/* Breadcrumb */
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0 0 22px; padding: 0; font-size: 14px; }
.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: .5; }
.crumbs a { color: inherit; opacity: .8; text-decoration: none; }
.crumbs a:hover { opacity: 1; text-decoration: underline; }
.crumbs [aria-current] { opacity: 1; font-weight: 600; }

/* Page hero: blue, copy left, photo right that bleeds to the edge */
.phero { position: relative; overflow: hidden; background: var(--grad); color: #fff; }
.phero .wrap { position: relative; display: grid; gap: 36px; padding-top: 56px; padding-bottom: 56px; }
.phero h1 { color: #fff; font-size: clamp(36px, 4.6vw, 60px); line-height: 1.06; margin: 16px 0 18px; max-width: 18ch; text-wrap: balance; }
.phero .lead { color: rgba(255, 255, 255, .9); font-size: clamp(17px, 1.5vw, 20px); line-height: 1.5; max-width: 34em; margin: 0; }
.phero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.phero__media { margin: 0; border-radius: 6px; overflow: hidden; box-shadow: 0 40px 80px -36px rgba(0, 15, 50, .7); align-self: center; }
.phero__media img { display: block; width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.phero__ring { position: absolute; width: 560px; right: -180px; bottom: -240px; opacity: .1; pointer-events: none; }
@media (min-width: 1024px) {
  .phero .wrap { grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; padding-top: 80px; padding-bottom: 88px; min-height: 520px; }
}
/* Compact hero for lists, articles and legal pages: no photo */
.phero--compact .wrap { grid-template-columns: 1fr; min-height: 0; padding-top: 56px; padding-bottom: 64px; }
.phero--compact h1 { max-width: 22ch; }
/* Light hero variant (news articles, vacancies) */
.phero--light { background: #f3f8fc; color: var(--ink); }
.phero--light h1 { color: var(--blue); }
.phero--light .lead { color: var(--muted); }
.phero__meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 22px; font-size: 15px; color: inherit; opacity: .85; }
.phero__meta span { display: inline-flex; align-items: center; gap: 6px; }

/* Section shells */
.psec { padding: 72px 0; }
.psec--light { background: #f3f8fc; }
.psec--line { border-top: 1px solid var(--line); }
.psec__head { max-width: 46rem; margin-bottom: 40px; }
.psec__head h2 { margin: 0 0 12px; }
.psec__head p { color: var(--muted); font-size: 18px; margin: 0; }
.psec__head--row { max-width: none; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 20px; }
.kicker { font: 700 13px/1 var(--text); letter-spacing: .08em; text-transform: uppercase; color: #c25a00; margin: 0 0 14px; }
@media (min-width: 1024px) { .psec { padding: 104px 0; } }

/* Split: text and media side by side; --rev puts the media first */
.split { display: grid; gap: 32px; align-items: center; }
.split + .split { margin-top: 72px; }
.split h2 { margin: 0 0 16px; }
.split p { color: var(--muted); font-size: 17px; line-height: 1.6; }
.split__media { margin: 0; border-radius: 6px; overflow: hidden; background: var(--light); }
.split__media img, .split__media video { display: block; width: 100%; height: auto; }
.split__media--shot { padding: 18px; background: linear-gradient(160deg, #eaf3fb, #d9e8f5); }
.split__media--shot img { border-radius: 4px; box-shadow: 0 24px 50px -26px rgba(0, 40, 100, .5); }
@media (min-width: 1024px) { .split { grid-template-columns: 1fr 1fr; gap: 72px; } .split--rev .split__media { order: -1; } }

/* Ticks: short benefit list */
.ticks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 32px; line-height: 1.5; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--light) center / 12px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3 3 7-7' fill='none' stroke='%230053A4' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }

/* Cards: linked tiles with photo, title and text */
.cards { display: grid; gap: 20px; }
.pcard { display: flex; flex-direction: column; background: #fff; border: 1px solid #dbe6f0; border-radius: 6px; overflow: hidden; text-decoration: none; color: inherit; transition: border-color .2s, box-shadow .2s, transform .2s; }
a.pcard:hover { border-color: var(--blue); transform: translateY(-3px); box-shadow: 0 20px 40px -24px rgba(0, 60, 130, .45); }
.pcard__img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--light); }
.pcard__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
a.pcard:hover .pcard__img img { transform: scale(1.04); }
.pcard__body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.pcard__tag { font: 700 12px/1 var(--text); letter-spacing: .06em; text-transform: uppercase; color: #c25a00; }
.pcard h3 { margin: 0; color: var(--blue); font-size: 20px; line-height: 1.25; }
.pcard p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.5; }
.pcard__more { margin-top: auto; padding-top: 10px; font-weight: 700; color: var(--blue); font-size: 15px; }
.pcard--text .pcard__body { padding: 26px; }
@media (min-width: 720px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .cards--3 { grid-template-columns: repeat(3, 1fr); } .cards--4 { grid-template-columns: repeat(4, 1fr); } }

/* Facts row (light, divided) */
.facts { display: grid; grid-template-columns: repeat(2, 1fr); margin: 0; background: #fff; border: 1px solid #dbe6f0; border-radius: 6px; overflow: hidden; }
.facts > div { padding: 26px 24px; border-top: 1px solid #e3ecf4; }
.facts > div:nth-child(-n+2) { border-top: 0; }
.facts > div:nth-child(even) { border-left: 1px solid #e3ecf4; }
.facts dt { font: 700 clamp(30px, 3.4vw, 44px)/1 var(--display); color: var(--blue); }
.facts dd { margin: 8px 0 0; color: var(--muted); font-size: 15px; line-height: 1.45; }
@media (min-width: 1024px) { .facts { grid-template-columns: repeat(4, 1fr); } .facts > div { border-top: 0; } .facts > div + div { border-left: 1px solid #e3ecf4; } }

/* Quote */
.pquote { margin: 0; padding: 40px; background: #fff; border: 1px solid #dbe6f0; border-left: 4px solid var(--orange); border-radius: 6px; }
.pquote blockquote { margin: 0; font: 700 clamp(22px, 2.2vw, 28px)/1.3 var(--display); color: var(--blue); }
.pquote figcaption { margin-top: 16px; color: var(--muted); font-size: 15px; }
.pquote figcaption strong { color: var(--ink); }

/* Steps (numbered) */
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; gap: 20px; }
.steps li { counter-increment: s; position: relative; padding: 24px 24px 24px 76px; background: #fff; border: 1px solid #dbe6f0; border-radius: 6px; }
.steps li::before { content: counter(s); position: absolute; left: 24px; top: 22px; width: 34px; height: 34px; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 800; display: grid; place-items: center; }
.steps h3 { margin: 0 0 6px; color: var(--blue); font-size: 19px; }
.steps p { margin: 0; color: var(--muted); }
@media (min-width: 1024px) { .steps--row { grid-template-columns: repeat(3, 1fr); } }

/* FAQ */
.faq { display: grid; gap: 10px; max-width: 52rem; }
.faq details { background: #fff; border: 1px solid #dbe6f0; border-radius: 6px; }
.faq summary { cursor: pointer; list-style: none; padding: 20px 56px 20px 22px; position: relative; font-weight: 700; color: var(--blue); font-size: 17px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 24px; font-weight: 400; transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details > div { padding: 0 22px 22px; color: var(--muted); line-height: 1.6; }

/* Article body */
.prose { max-width: 44rem; font-size: 18px; line-height: 1.7; color: var(--ink); }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: 28px; margin-top: 1.8em; }
.prose h3 { font-size: 21px; margin-top: 1.5em; color: var(--blue); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .4em; }
.prose a { color: var(--blue); }
.prose figure { margin: 1.8em 0; }
.prose figure img { width: 100%; border-radius: 6px; display: block; }
.prose figcaption { font-size: 14px; color: var(--muted); margin-top: 8px; }
.prose blockquote { margin: 1.6em 0; padding-left: 22px; border-left: 4px solid var(--orange); font: 700 22px/1.4 var(--display); color: var(--blue); }
.article { display: grid; gap: 48px; }
.article__aside { font-size: 15px; }
.article__aside h2 { font-size: 18px; margin: 0 0 12px; }
@media (min-width: 1024px) { .article { grid-template-columns: minmax(0, 1fr) 300px; gap: 80px; } .article__aside { position: sticky; top: 110px; align-self: start; } }

/* Filter chips (news, vacancies, courses) */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filters button { font: 600 14px var(--text); color: var(--blue); background: #fff; border: 1px solid #c9dbea; border-radius: 4px; padding: 8px 14px; cursor: pointer; }
.filters button[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: #fff; }

/* Row list: vacancies, courses, events, downloads */
.rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.rows li { border-bottom: 1px solid var(--line); }
.rows a { display: grid; gap: 6px; padding: 22px 56px 22px 0; position: relative; text-decoration: none; color: inherit; }
.rows a::after { content: "→"; position: absolute; right: 8px; top: 50%; transform: translateY(-50%); color: var(--blue); font-weight: 700; transition: transform .2s; }
.rows a:hover::after { transform: translate(4px, -50%); }
.rows a:hover strong { text-decoration: underline; }
.rows strong { color: var(--blue); font-size: 19px; }
.rows .rows__meta { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--muted); font-size: 15px; }
@media (min-width: 1024px) { .rows a { grid-template-columns: 1fr auto; align-items: center; } }

/* Timeline (history) */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: #c9dbea; }
.timeline li { position: relative; padding: 0 0 36px 44px; }
.timeline li::before { content: ""; position: absolute; left: 0; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid var(--blue); }
.timeline time { font: 700 26px/1 var(--display); color: var(--blue); }
.timeline h3 { margin: 8px 0 6px; font-size: 19px; }
.timeline p { margin: 0; color: var(--muted); max-width: 40rem; }

/* Closing call to action band */
.cta-band { background: var(--grad); color: #fff; border-radius: 6px; padding: 40px; display: grid; gap: 24px; align-items: center; position: relative; overflow: hidden; }
.cta-band h2 { color: #fff; margin: 0 0 8px; font-size: clamp(26px, 2.6vw, 34px); }
.cta-band p { margin: 0; color: rgba(255, 255, 255, .88); max-width: 34em; }
.cta-band .btn { justify-self: start; }
@media (min-width: 1024px) { .cta-band { grid-template-columns: 1fr auto; padding: 48px 56px; } }

/* In-page section nav (long product pages) */
.subnav { position: sticky; top: 72px; z-index: 20; background: rgba(255, 255, 255, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.subnav ul { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; overflow-x: auto; }
.subnav a { display: block; padding: 16px 0; font-weight: 600; font-size: 15px; color: var(--muted); text-decoration: none; border-bottom: 2px solid transparent; white-space: nowrap; }
.subnav a:hover { color: var(--blue); border-color: var(--blue); }

/* Logo-free customer name strip */
.names { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.names li { background: var(--light); color: var(--blue); font-weight: 700; font-size: 15px; padding: 9px 14px; border-radius: 4px; }

/* Simple form page (contact) reuses .form from the homepage */
.sub .contact__in { align-items: start; }
.split p + p, .psec__head p + p { margin-top: 14px; }
.kicker { font-size: 13px; }
.cards > [hidden], .rows > [hidden] { display: none !important; }
