/* An integration's page in the painted theme (template-parts/painted/pages/integration.php, inc/integrations.php): the
   flow on the header's wash (our mark and the vendor's over a row a connection, the line between pointing the way its
   data goes), the hero's facts as chips, the two columns of what goes each way, when it runs, the more integrations
   row and the trademark lines under the finale. The flow's play is assets/js/pages/integration.js. */

/* the vendor marks of the live kit (gs_integration_tile(), gs_integration_our_mark()): a white tile, the mark inside */
.k-vlogo { display: inline-grid; flex: none; place-items: center; width: var(--s, 28px); height: var(--s, 28px); overflow: hidden; border-radius: 8px; background: #fff; box-shadow: 0 0 0 1px rgba(11, 11, 15, .08); }
.k-vlogo img { width: 76%; height: 76%; object-fit: contain; }
/* a vendor's full logo where its rules allow no icon (Zapier's): as wide as the logo, drawn at 46% of the tile's height
   with the clear space of its "z" around it (the live kit's .k-vlogo-wordmark) */
.k-vlogo-wordmark { width: auto; padding: 0 calc(var(--s, 28px) * .27); }
.k-vlogo-wordmark img { width: auto; height: calc(var(--s, 28px) * .46); }
.ip-ini { font: 700 calc(var(--s, 28px) * .45)/1 var(--sans); color: var(--ink); }
.pp-head .tag .k-vlogo { --s: 20px; border-radius: 6px; }

/* the tag: Integrations, a link to the hub, then the vendor */
.pp-head .tag .gsp-tl-hub { color: inherit; text-decoration: none; }
.pp-head .tag .gsp-tl-hub:hover { text-decoration: underline; text-underline-offset: 3px; }
.pp-head .tag .gsp-tl-sep { margin: 0 -2px; color: var(--mute-2); font-weight: 500; }

/* the hero's facts */
.ip-facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0; padding: 0; list-style: none; }
.ip-facts li { display: inline-flex; align-items: baseline; gap: 7px; padding: 6px 12px; border-radius: 999px; background: #fff; box-shadow: var(--sh-1); font-size: 13px; color: var(--ink); }
.ip-facts span { font: 600 9.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }
.ip-facts b { font-weight: 600; }

/* ---------- the flow ---------- */
.pp-head-pic:has(.ifl) { --pp-pic: 980px; }
.ifl { display: grid; gap: 10px; padding: 18px 20px 14px; border-radius: 20px; background: #fff; box-shadow: 0 1px 2px rgba(70, 50, 36, .06), 0 18px 34px -26px rgba(80, 52, 40, .5); text-align: left; }
.ifl-hd { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line-2); }
.ifl-side { display: inline-flex; align-items: center; gap: 10px; min-width: 0; font-size: 16px; font-weight: 600; color: var(--ink); }
.ifl-rt { justify-content: flex-end; }
.ifl-rt .k-vlogo { order: 2; }
.ifl-mid { padding: 4px 10px; border-radius: 999px; background: var(--ct); font: 600 10.5px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--cd); }
.ifl-rows { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.ifl-r { display: grid; grid-template-columns: auto minmax(48px, 1fr) auto; grid-template-areas: "a l b" "n n n"; align-items: center; gap: 2px 12px; padding: 9px 10px; border-radius: 12px; transition: background-color .3s ease, opacity .3s ease; }
.ifl-a { grid-area: a; font-size: 14px; font-weight: 600; color: var(--ink); }
.ifl-b { grid-area: b; font-size: 14px; font-weight: 600; color: var(--ink); text-align: right; }
.ifl-note { grid-area: n; margin: 0; font-size: 12.5px; line-height: 1.4; color: var(--mute); text-align: center; }
.ifl-line { position: relative; grid-area: l; height: 22px; }
/* a solid line from one node to the other, its arrow at the end the data reaches */
.ifl-line::before { content: ""; position: absolute; top: 50%; right: 6px; left: 6px; border-top: 2px solid color-mix(in srgb, var(--c) 55%, transparent); }
.ifl-line b { position: absolute; top: 50%; right: -2px; display: grid; place-items: center; width: 18px; height: 22px; font-size: 16px; font-weight: 700; line-height: 1; color: var(--cd); transform: translateY(-50%); }
.ifl-in .ifl-line b { right: auto; left: -2px; }
.ifl-both .ifl-line b { right: auto; left: 50%; padding: 0 3px; background: #fff; transform: translate(-50%, -50%); }
.ifl-dot { position: absolute; top: 50%; left: 0; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: var(--c); opacity: 0; }
.ifl-in .ifl-dot { left: auto; right: 0; }
.ifl-dot2 { display: none; }
.ifl-both .ifl-dot2 { display: block; left: auto; right: 0; }

.ifl-ft { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 28px; margin: 0; padding-top: 6px; border-top: 1px solid var(--line-2); font-size: 11.5px; color: var(--mute); }
.ifl-re { flex: none; height: 28px; padding: 0 12px; border: 0; border-radius: 999px; background: var(--ink); font: 600 12px/1 var(--sans); color: #fff; cursor: pointer; }
.ifl-re[hidden] { display: inline-block; visibility: hidden; }
.ifl-re:focus-visible { outline: 2px solid var(--c); outline-offset: 2px; }

/* the play: a row waits pale, lights, and its dot runs the line the way the data goes */
.ifl-r.is-on { background: color-mix(in srgb, var(--ct) 55%, #fff); }
.ifl-r.is-on .ifl-dot { animation: ifl-out .9s ease-in-out 1 both; }
.ifl-in.is-on .ifl-dot { animation-name: ifl-in; }
.ifl-both.is-on .ifl-dot2 { animation-name: ifl-in; animation-delay: .45s; }
@keyframes ifl-out { 0% { left: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { left: calc(100% - 8px); opacity: 0; } }
@keyframes ifl-in { 0% { right: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { right: calc(100% - 8px); opacity: 0; } }

/* ---------- the sections under it ---------- */
.ip-cols { display: grid; grid-template-columns: repeat(var(--n, 2), minmax(0, 1fr)); gap: 16px; max-width: 1180px; margin: 40px auto 0; text-align: left; }
.gsp .ip-col { padding: 22px 24px 18px; border-radius: 20px; box-shadow: var(--sh-1); }
.ip-col h3 { margin: 0 0 12px; font-size: 18px; font-weight: 600; color: var(--ink); }
.ip-col ul { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.ip-col li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; }
.ip-mk { display: grid; place-items: center; width: 22px; height: 22px; margin-top: 1px; border-radius: 50%; background: var(--ct); color: var(--cd); }
.ip-mk svg.i { width: 12px; height: 12px; stroke-width: 2.6; }
.ip-col li b { display: block; font-size: 14.5px; font-weight: 600; color: var(--ink); }
.ip-col li p { margin: 2px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--text); }
.ip-when .disc { width: 34px; height: 34px; margin-bottom: 10px; }
.ip-fine { max-width: 760px; margin: 24px auto 0; font-size: 13px; line-height: 1.5; color: var(--mute); text-align: center; text-wrap: pretty; }
.ip-mores { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 40px 0 0; padding: 0; list-style: none; }
.gsp .ip-more { display: flex; align-items: center; gap: 12px; height: 100%; padding: 14px 16px; border-radius: 18px; box-shadow: var(--sh-1); color: var(--ink); text-decoration: none; transition: transform .2s ease; }
.ip-more:hover { transform: translateY(-2px); }
.ip-more:focus-visible { outline: 2px solid var(--c); outline-offset: 3px; }
.ip-more-t { display: grid; flex: 1; gap: 2px; min-width: 0; }
.ip-more-t b { font-size: 14.5px; font-weight: 600; }
.ip-more-t small { overflow: hidden; font-size: 12.5px; line-height: 1.4; color: var(--mute); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.ip-more > svg.i { flex: none; width: 15px; height: 15px; color: var(--mute); }
.ip-tm { max-width: 860px; margin: 24px auto 8px; padding: 0 16px; font-size: 11.5px; line-height: 1.5; color: var(--mute); text-align: center; }

@media (max-width: 1000px) {
  .ip-mores { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .ifl { padding: 14px 12px 12px; }
  .ifl-side { font-size: 14px; }
  .ifl-mid { display: none; }
  .ifl-hd { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .ifl-r { grid-template-columns: minmax(0, 1fr) 54px minmax(0, 1fr); padding: 8px 6px; }
  .ifl-a, .ifl-b { font-size: 13px; }
  .ip-cols, .ip-mores { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .ifl-r { transition: none; }
  .ifl-r.is-on .ifl-dot, .ifl-both.is-on .ifl-dot2 { animation: none; }
}

/* the flow's objects as nodes the line joins, the two marks larger */
.ifl-side .k-vlogo { --s: 36px; border-radius: 10px; }
.ifl-a, .ifl-b { justify-self: start; padding: 7px 12px; border-radius: 10px; background: var(--sunk); box-shadow: inset 0 0 0 1px var(--line); line-height: 1.25; }
.ifl-b { justify-self: end; }
.ifl-r.is-on .ifl-a, .ifl-r.is-on .ifl-b { background: #fff; box-shadow: inset 0 0 0 1.5px var(--c); }

/* the column of what it does not do: quieter, a dash for a tick */
.gsp .ip-col-not { background: rgba(255, 255, 255, .55); box-shadow: inset 0 0 0 1px var(--line); }
.ip-col-not .ip-mk { background: var(--sunk); color: var(--mute); }
.ip-dash { display: block; width: 9px; height: 2px; border-radius: 2px; background: currentColor; }
.ip-col-not h3, .ip-col-not li b { color: var(--text); }
@media (min-width: 761px) and (max-width: 1000px) {
  .ip-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ip-col-not { grid-column: 1 / -1; }
}

/* the set-up's five steps in one row on a wide screen */
@media (min-width: 1100px) {
  .ip-setup .steps-n { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
/* more integrations: the kind under the name, never a sentence cut short; two tiles a row on a phone */
.ip-more-t small { display: block; overflow: visible; -webkit-line-clamp: none; }
@media (max-width: 760px) {
  .ip-mores { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gsp .ip-more { padding: 12px; }
  .ip-more > svg.i { display: none; }
}
