/* ==========================================================================
   Case template v3 (Pawwer V3, 20 Oct 2026).
   A small, fixed set of parts. Text: hero, section head, numbered rows,
   result cards, quote. Images: full bleed, wide, two, three, slider.
   Nothing else. Every image is a real screen or photo; none is cropped by CSS.
   ========================================================================== */

.k3 { --k3-tray: #efe9e2; --k3-gap: clamp(12px, 1.4vw, 20px); }

/* Hero: crumbs, big H1, short description, facts row. */
.k3-hero { padding-block: clamp(24px, 4vh, 48px) clamp(40px, 6vh, 72px); }
.k3-hero h1 { margin-top: clamp(20px, 3vh, 32px); font-size: clamp(44px, 6.2vw, 108px); font-weight: 400; line-height: .94; letter-spacing: -.05em; }
.k3-desc { max-width: 42em; margin-top: 20px; font-size: clamp(18px, 1.35vw, 22px); line-height: 1.4; color: var(--ink-2); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }
@media (max-width: 760px) { .k3-desc { display: block; -webkit-line-clamp: unset; line-clamp: none; overflow: visible; } }
.k3-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-top: clamp(32px, 6vh, 72px); padding-top: clamp(20px, 2.4vh, 28px); border-top: 1px solid var(--hair); }
.k3-facts dt, .k3-label { font-size: var(--t-label); font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.k3-facts dd { margin: 8px 0 0; font-size: var(--t-body); line-height: 1.45; }
.k3-facts a { color: var(--ink); text-underline-offset: 3px; }
@media (min-width: 761px) { .k3-facts:has(> :nth-child(3):last-child) { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.k3-facts a:hover { color: var(--red); }
.k3-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.k3-chips span { padding: 4px 10px; border: 1px solid var(--hair); border-radius: var(--r-pill); background: var(--white); font-size: 13px; line-height: 1.4; }

/* Sections: space, no lines. */
.k3-sec { padding-top: var(--section); }
.k3-sec + .k3-sec { padding-top: clamp(64px, 3vw + 40px, 112px); }
.k3-chapter { padding-top: calc(var(--section) * 1.15); }

/* Section head: label and H2 on the left, text on the right. */
.k3-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 20px clamp(24px, 5vw, 96px); align-items: start; }
.k3-h2, .k3-head h2 { margin-top: 14px; max-width: 13em; font-size: var(--t-h2); font-weight: 400; line-height: 1.08; letter-spacing: -.03em; }
.k3-prose { display: grid; gap: 18px; max-width: 38em; }
.k3-prose p { font-size: var(--t-lead); line-height: 1.6; color: var(--ink-2); }
.k3-prose a { color: var(--ink); text-underline-offset: 3px; }
.k3-intro p { font-size: clamp(20px, 1.6vw, 26px); line-height: 1.45; color: var(--ink); }
.k3-head.is-about { grid-template-areas: "label prose" "ai prose"; grid-template-rows: auto 1fr; }
.k3-head.is-about > .k3-label { grid-area: label; }
.k3-head.is-about > .k3-ai { grid-area: ai; align-self: start; }
.k3-head.is-about > .k3-prose { grid-area: prose; }
.k3-ai { display: grid; gap: 12px; margin-top: 28px; }
.k3-ai div { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.k3-ai a { font-size: var(--t-small); color: var(--ink); text-underline-offset: 3px; }
.k3-ai a:hover { color: var(--red); }

/* Numbered rows: number and title on the left, text on the right. */
.k3-rows { margin-top: clamp(32px, 4vw, 56px); border-top: 1px solid var(--hair); }
.k3-rows > div { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 8px clamp(24px, 5vw, 96px); padding-block: 22px; border-bottom: 1px solid var(--hair); }
.k3-rows h3 { display: flex; gap: 16px; font-size: var(--t-body); font-weight: 500; line-height: 1.5; }
.k3-rows h3 span { flex: none; min-width: 2.2em; font-family: var(--mono); font-size: var(--t-label); font-weight: 400; line-height: 2; color: var(--muted); }
.k3-rows p { max-width: 38em; font-size: var(--t-body); line-height: 1.6; color: var(--ink-2); }

/* Images. One figure type; the wrapper decides the layout. */
.k3-fig { margin: 0; }
.k3-fig img { display: block; width: 100%; height: auto; border-radius: var(--r-l); background: var(--k3-tray); }
.k3-fig figcaption { margin-top: 12px; font-size: var(--t-small); line-height: 1.5; color: var(--muted); }
.k3-media { margin-top: clamp(32px, 4vw, 56px); }
.k3-full { margin-top: 0; }
.k3-full img { border-radius: 0; }
.k3-two, .k3-three { display: grid; gap: var(--k3-gap); align-items: start; }
.k3-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.k3-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* Placeholder for a screen the client still has to send. */
.k3-ph { display: grid; align-content: space-between; aspect-ratio: 16 / 10; padding: clamp(16px, 2vw, 28px); border: 1px dashed var(--graphic); border-radius: var(--r-l); background: var(--k3-tray); color: var(--muted); }
.k3-ph.is-tall { aspect-ratio: 3 / 4; }
.k3-ph span { font-family: var(--mono); font-size: var(--t-label); text-transform: uppercase; }
.k3-ph b { font-size: var(--t-h3); font-weight: 400; color: var(--ink); }

/* Slider: a row of screens that scrolls sideways. */
.k3-slider { position: relative; margin-top: clamp(32px, 4vw, 56px); }
.k3-track { display: flex; gap: var(--k3-gap); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-inline: var(--edge); scroll-padding-inline: var(--edge); }
.k3-track::-webkit-scrollbar { display: none; }
.k3-track > .k3-fig { flex: 0 0 clamp(260px, 30vw, 440px); scroll-snap-align: start; }
.k3-nav { display: flex; gap: 8px; }
.k3-nav button { display: grid; place-items: center; width: var(--control); height: var(--control); border: 1px solid var(--hair); border-radius: 50%; background: var(--white); color: var(--ink); font-size: 18px; cursor: pointer; }
.k3-nav button:hover { border-color: var(--ink); }
.k3-slider-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; }

/* Result cards. */
.k3-results { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--k3-gap); margin-top: clamp(32px, 4vw, 56px); }
.k3-results li { display: grid; align-content: start; gap: 14px; padding: clamp(24px, 2.4vw, 36px); border-radius: var(--r-l); background: var(--surface); }
.k3-results h3 { font-size: var(--t-h3); font-weight: 400; line-height: 1.25; letter-spacing: -.01em; }
.k3-results p { font-size: var(--t-body); line-height: 1.6; color: var(--ink-2); }

/* Quote. */
.k3-quote { margin: 0; padding-top: 28px; border-top: 1px solid var(--ink); }
.k3-quote p { max-width: 24em; font-size: clamp(28px, 3vw, 48px); line-height: 1.12; letter-spacing: -.03em; }
.k3-quote figcaption { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 28px; font-size: var(--t-small); color: var(--muted); }
.k3-quote figcaption b { font-weight: 500; color: var(--ink); }
.k3-draft { padding: 4px 10px; border: 1px dashed var(--graphic); border-radius: var(--r-pill); font-family: var(--mono); font-size: var(--t-label); }

@media (max-width: 900px) {
  .k3-head, .k3-rows > div { grid-template-columns: 1fr; }
  .k3-head.is-about { grid-template-areas: "label" "prose" "ai"; grid-template-rows: auto; }
  .k3-head.is-about > .k3-ai { margin-top: 8px; }
  .k3-three { grid-template-columns: 1fr 1fr; }
  .k3-results { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .k3-facts { grid-template-columns: 1fr 1fr; gap: 28px 20px; margin-top: 36px; }
  .k3-hero h1 { font-size: clamp(36px, 10.4vw, 46px); line-height: 1; }
  .k3-br { display: none; }
  .k3-two { grid-template-columns: 1fr; }
  .k3-three { grid-template-columns: 1fr; }
  .k3-fig img, .k3-ph { border-radius: var(--r-m); }
  .k3-full img { border-radius: 0; }
  .k3-track > .k3-fig { flex-basis: 72vw; }
  .k3-nav { display: none; }
}

/* Team: heading, one line and a count pill on the left, one compact row per role on the right (docs/case-build-18oct/case_team.py). */
.k3-team { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px clamp(24px, 5vw, 96px); align-items: start; }
.k3-team-head h2 { font-size: var(--t-h2); font-weight: 400; line-height: 1.08; letter-spacing: -.03em; }
.k3-team-head p { max-width: 22em; margin-top: 16px; font-size: var(--t-body); line-height: 1.5; color: var(--muted); }
.k3-team-pill { display: inline-flex; align-items: center; gap: 8px; margin-top: 24px; padding: 7px 14px; border: 1px solid var(--hair); border-radius: var(--r-pill); background: var(--white); font-size: var(--t-small); color: var(--ink-2); }
.k3-team-pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--red); }
.k3-team-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.k3-team-list li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 20px; padding: 10px 16px 10px 10px; border: 1px solid var(--hair); border-radius: var(--r-m); background: var(--surface); }
.k3-team-ico { display: block; width: 64px; height: 64px; border-radius: 12px; background: var(--white); }
.k3-team-ico svg { display: block; width: 100%; height: 100%; }
.k3-team-list h3 { font-size: var(--t-body); font-weight: 500; line-height: 1.3; }
.k3-team-list p { margin-top: 2px; font-size: var(--t-small); color: var(--muted); }
.k3-team-list b { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--hair); border-radius: 50%; background: var(--white); font-size: var(--t-body); font-weight: 400; }
@media (max-width: 760px) {
  .k3-team { grid-template-columns: 1fr; }
  .k3-team-ico { width: 56px; height: 56px; }
}

/* Pawwer, 19 Nov (round 2): no screens for the CRM (client's internal system) and no event page (not opened yet).
   Events: tray panel + organizers phone, one height. CRM: six static icon cards, LMS services language (docs/pawwer-build/pawwer_crm.py); no animation on case pages. */
.pw-two { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: stretch; }
.pw-panel { display: grid; grid-template-rows: auto 1fr; gap: 20px; padding: clamp(24px, 3vw, 48px); border-radius: var(--r-l); background: var(--k3-tray); }
.pw-panel-label { font-family: var(--mono); font-size: var(--t-label); text-transform: uppercase; color: var(--muted); }
.pw-list { display: grid; grid-auto-rows: 1fr; margin: 0; padding: 0; list-style: none; border-top: 1px solid rgba(26, 23, 20, .12); }
.pw-list li { display: flex; align-items: center; gap: 16px; padding-block: 14px; border-bottom: 1px solid rgba(26, 23, 20, .12); font-size: var(--t-h3); line-height: 1.3; letter-spacing: -.01em; }
.pw-list li span { flex: none; min-width: 2.4em; font-family: var(--mono); font-size: var(--t-label); line-height: 1; letter-spacing: 0; color: var(--muted); }
.pw-org { position: relative; min-height: 100%; }
.pw-org picture, .pw-org img { height: 100%; }
.pw-org img { aspect-ratio: 1200 / 1380; object-fit: cover; object-position: 50% 34%; }

.pw-crm { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--k3-gap); margin: clamp(32px, 4vw, 56px) 0 0; padding: 0; list-style: none; }
.pw-c { display: grid; align-content: start; gap: 18px; padding: clamp(24px, 2.4vw, 36px); border-radius: var(--r-l); background: var(--surface); }
.pw-c-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.pw-c h3 { max-width: 12em; font-size: clamp(21px, .5vw + 17px, 25px); font-weight: 400; line-height: 1.2; letter-spacing: -.015em; }
.pw-c p { line-height: 1.6; color: var(--ink-2); }
.pw-ico { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 14px; background: var(--white); color: var(--ink); }
.pw-ico svg { width: 24px; height: 24px; }
@media (max-width: 900px) { .pw-crm { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) {
  .pw-two { grid-template-columns: 1fr; }
  .pw-list { grid-auto-rows: auto; }
  .pw-crm { grid-template-columns: 1fr; }
  .pw-panel, .pw-c { border-radius: var(--r-m); }
}
