/* English example and template pages in Ink (views/frontend/examples/example_ink.pug, body .ikex).
   Loads after ink/home.css, ink/use-case.css and ink/use-case-kit.css (mocks). Page type: a library item to copy
   (INK-SYSTEM.md section 6). No colour behind mocks. */

/* Breadcrumb above the hero label */
html body.ik:not(#_) .ex-crumb { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; font-size: 14px; color: var(--cf-on-ink-2); }
html body.ik:not(#_) .ex-crumb a { color: var(--cf-on-ink-2); text-decoration: underline; text-underline-offset: 3px; }

/* The comment under the post in the first flow card */
html body.ik:not(#_) p.ex-cmt { display: flex; align-items: center; gap: 6px; margin: 8px 4px 2px; font-size: 12px; line-height: 1.3; }
html body.ik:not(#_) p.ex-cmt img { flex: none; width: 20px; height: 20px; border-radius: 50%; object-fit: cover; }
html body.ik:not(#_) .ex-cmt b { font-weight: 600; }

/* Three steps, three columns (the shared trigger grid has four). */
html body.ik:not(#_) .ik-trg.ex-flow { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* Messages to copy: white cards on the ink band, one per keyword */
html body.ik:not(#_) .ex-msgs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
html body.ik:not(#_) .ex-msg { display: flex; flex-direction: column; gap: 12px; padding: 22px; border-radius: 22px; background: #fff; color: var(--cf-text); }
html body.ik:not(#_) p.ex-msg__kw { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 13px; font-weight: 500; color: var(--cf-text-3); }
html body.ik:not(#_) p.ex-msg__t { flex: 1; margin: 0; padding: 14px 16px; border-radius: 18px 18px 18px 6px; background: var(--cf-mist); font-size: 16px; line-height: 1.5; color: var(--cf-text); }
html body.ik:not(#_) button.ex-msg__copy { align-self: flex-start; height: 40px; padding: 0 16px; border: 1px solid var(--cf-field); border-radius: 8px; background: #fff; font: inherit; font-size: 14px; font-weight: 500; color: var(--cf-text); cursor: pointer; }
html body.ik:not(#_) button.ex-msg__copy:is(:hover, :focus-visible) { border-color: var(--cf-text); }

/* Setup: numbered rows in one column, readable like a guide */
html body.ik:not(#_) .ex-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
html body.ik:not(#_) .ex-steps li { display: flex; flex-direction: column; gap: 14px; padding: 22px; border-radius: 22px; background: #fff; }
html body.ik:not(#_) .ex-steps__n { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: var(--cf-ink); font-size: 14px; font-weight: 600; color: #fff; }
html body.ik:not(#_) .ex-steps h3 { margin: 0 0 6px; font-size: 19px; font-weight: 500; letter-spacing: -.01em; color: var(--cf-text); }
html body.ik:not(#_) .ex-steps p { margin: 0; font-size: 16px; line-height: 1.55; color: var(--cf-text-2); }

@media (max-width: 899px) {
  html body.ik:not(#_) .ex-msgs, html body.ik:not(#_) .ex-steps { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  /* Messages swipe sideways like the other card rows; the steps stay a stacked list. */
  html body.ik:not(#_) .ex-msgs { display: flex; }
  html body.ik:not(#_) .ex-msgs .ex-msg { flex: 0 0 82%; }
}

/* The post in the first flow card carries the comment under it: a shorter photo keeps both inside the frame. */
html body.ik:not(#_) .ex-flow .uc-reel .ik-post__pic img { height: 112px; object-fit: cover; }

/* ==================== Examples hub (examples_hub_ink.pug, body .ikexh) ==================== */
html body.ik:not(#_) .exh-hero { padding-bottom: clamp(32px, 4vw, 56px); }
html body.ik:not(#_) .exh-hero__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 48px; align-items: end; }
html body.ik:not(#_) .exh-count { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
html body.ik:not(#_) .exh-count a { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border: 1px solid var(--cf-ink-line); border-radius: 20px; background: var(--cf-ink-2, #1e1e1e); color: var(--cf-on-ink); text-decoration: none; }
html body.ik:not(#_) .exh-count a:is(:hover, :focus-visible) { border-color: #4a4a50; }
html body.ik:not(#_) .exh-count b { font-size: 40px; font-weight: 600; letter-spacing: -.04em; line-height: 1; color: var(--cf-lime); }
html body.ik:not(#_) .exh-count span { font-size: 15px; line-height: 1.4; color: var(--cf-on-ink-2); }
html body.ik:not(#_) .exh-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
html body.ik:not(#_) button.exh-chip { height: 40px; padding: 0 16px; border: 1px solid var(--cf-field); border-radius: 999px; background: #fff; font: inherit; font-size: 14px; font-weight: 500; color: var(--cf-text); cursor: pointer; }
html body.ik:not(#_) button.exh-chip.is-on { border-color: var(--cf-ink); background: var(--cf-ink); color: #fff; }
html body.ik:not(#_) h3.exh-group { margin: 8px 0 14px; font-size: 21px; font-weight: 500; color: var(--cf-text); }
html body.ik:not(#_) .exh-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 0 0 36px; padding: 0; list-style: none; }
html body.ik:not(#_) .exh-card a { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 8px 8px 18px; border-radius: 24px; background: #fff; color: var(--cf-text); text-decoration: none; }
html body.ik:not(#_) .exh-card a:is(:hover, :focus-visible) b { text-decoration: underline; text-underline-offset: 3px; }
html body.ik:not(#_) .exh-card__pic { position: relative; display: block; overflow: hidden; margin-bottom: 8px; border-radius: 18px; background: var(--cf-mist); aspect-ratio: 4 / 3; }
html body.ik:not(#_) .exh-card__pic img { width: 100%; height: 100%; object-fit: cover; }
html body.ik:not(#_) .exh-card__kw { position: absolute; left: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 4px; padding: 5px 10px 5px 5px; border-radius: 999px; background: #fff; font-size: 12px; color: var(--cf-text-2); }
html body.ik:not(#_) .exh-card__eye { padding: 0 10px; font-size: 13px; color: var(--cf-text-3); }
html body.ik:not(#_) b.exh-card__t { padding: 0 10px; font-size: 18px; font-weight: 500; line-height: 1.3; }
html body.ik:not(#_) .exh-card__p { padding: 0 10px; font-size: 14px; line-height: 1.5; color: var(--cf-text-2); }
@media (max-width: 1099px) { html body.ik:not(#_) .exh-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 899px) {
  html body.ik:not(#_) .exh-hero__grid { grid-template-columns: 1fr; gap: 28px; }
  html body.ik:not(#_) .exh-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) { html body.ik:not(#_) .exh-grid { grid-template-columns: 1fr; } }
