/* custom.css — per-site design layer.
 *
 * Ships EMPTY. This is where a site gets a bespoke look WITHOUT forking the
 * template: it loads after site.css and theme.css, so anything here wins.
 * `sites update-template` PRESERVES this file (it's treated like config.json),
 * so template updates never clobber a site's custom design.
 *
 * Two sites built on this same template can look completely different — one
 * clean and light, another dark and technical — by living here. Use CSS
 * variables from theme.css (--color-primary, etc.) plus plain overrides of
 * the component classes in site.css (.hero, .card, .btn-primary, header,
 * footer, section bands…).
 */

/* ── Hope In Christ Ministry design layer ────────────────────────────── */

/* The Figma design is set entirely in a classic serif. */
body {
  font-family: "Times New Roman", Times, Georgia, serif;
}

/* ── Palette ──────────────────────────────────────────────────────────────
 * The comp's surface is a warm cream, not white, and it has no dark
 * variant — the site is pinned light in layout.html. These override the
 * generated theme.css. Values are sampled from the Figma nodes, not eyeballed.
 */
/* :root[data-theme="dark"] is included here, not just :root: the light
 * pin in layout.html/index.html is behavioural (it writes localStorage),
 * and where storage is blocked an OS dark-mode change still flips
 * data-theme="dark" (site.js). site.css's :root[data-theme="dark"] block
 * is a higher-specificity selector than a bare :root, so without this it
 * would win and the template's dark tokens would replace the cream
 * palette even though the page still claims to be light-only. Matching
 * both selectors here makes the pin win regardless of specificity. */
:root, :root[data-theme="dark"] {
  --color-surface: #f7f5f0;   /* page, header, card bodies */
  --zk-border-warm: #e0dbd4;  /* header bottom border */
  --zk-nav-link: #5a5650;     /* desktop nav links */
  --zk-footer-label: #5f9ea0; /* FOLLOW US / QUICK LINKS / SERVICE TIMES */

  /* Space-separated RGB triplet, consumed as rgb(var(--zk-footer-text) / <a>).
   * Space-separated is REQUIRED — the slash-alpha form does not parse with
   * comma-separated components. One token drives all five alphas the comp
   * uses: .3 / .4 / .65 / .85 / 1. */
  --zk-footer-text: 240 234 232;
}

/* Gold accent button — used on dark bands (e.g. "Help Others"). */
.btn-accent {
  display: inline-block;
  background: var(--color-accent);
  color: #2a0f18;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 700;
  font-size: 0.9375rem;
  transition: filter 120ms ease, transform 120ms ease;
}
.btn-accent:hover { filter: brightness(1.06); transform: translateY(-1px); }

/* Gold underline bar beneath section headings (the 64×2 rule in the design). */
.zk-heading-bar {
  display: block;
  width: 64px;
  height: 2px;
  background: var(--color-accent);
  margin-top: 0.9rem;
}
.zk-heading-bar-center { margin-left: auto; margin-right: auto; }

/* The comp centers every section heading and its rule on mobile, whatever
   the section's desktop alignment is. */
@media (max-width: 767px) {
  .zk-heading-bar { margin-left: auto; margin-right: auto; }
}

/* ── Header ───────────────────────────────────────────────────────────────
 * 96px tall, cream, with the comp's hairline border and double shadow.
 * The logo SVG is intrinsically 230.161 × 57.081 — the comp's exact size —
 * so pinning the height alone reproduces it pixel-for-pixel.
 */
.zk-site-header {
  background: var(--color-surface);
  border-bottom: 1px solid var(--zk-border-warm);
  box-shadow: 0 1px 1.5px rgba(0, 0, 0, 0.1), 0 1px 1px rgba(0, 0, 0, 0.1);
}
.zk-logo { height: 57px; width: auto; }

/* The comp draws the hamburger in the brand maroon. Its 44px box is kept
 * (site.css) rather than the comp's 40px — 44px is the accessible minimum
 * touch target and the extra 4px is invisible against a 96px header. */
.zk-mnav-btn { color: var(--color-primary); }

/* The kit's panel hangs off a 64px header; ours is 96px. */
.zk-mnav-panel { top: 6rem; }

@media (min-width: 1280px) {
  /* Comp: 16px, letter-spacing .35px, warm grey, 15px between links.
   * .navlink ships 10px of horizontal padding, which would put 20px between
   * text boxes — trimmed to 7px so the gap lands at 14px, and the active
   * underline inset is moved to match so it still spans the word.
   * white-space: nowrap — a label must never break mid-word (e.g. "Worship
   * Services" wrapping to two lines); the nav only ever renders at this
   * breakpoint (xl, 1280px+), where the cluster is guaranteed to fit. */
  .zk-site-header [data-nav] .navlink {
    color: var(--zk-nav-link);
    font-size: 16px;
    letter-spacing: 0.35px;
    padding-left: 0.4375rem;
    padding-right: 0.4375rem;
    white-space: nowrap;
  }
  .zk-site-header [data-nav] .navlink:hover,
  .zk-site-header [data-nav] .navlink-active { color: var(--color-text); }
  .zk-site-header [data-nav] .navlink-active::after {
    left: 0.4375rem;
    right: 0.4375rem;
  }
}

/* ── Footer ───────────────────────────────────────────────────────────────
 * The comp's footer text is a warm off-white (#f0eae8) at five alphas, on
 * the deep maroon band. Labels are a muted cadet blue.
 */
.zk-footer-label {
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 1.4px;
  color: var(--zk-footer-label);
}
.zk-footer-dim {
  font-size: 14px;
  line-height: 25.2px;
  color: rgb(var(--zk-footer-text) / 0.65);
}
.zk-footer-link {
  font-size: 14px;
  line-height: 20px;
  color: rgb(var(--zk-footer-text) / 0.65);
  transition: color 120ms ease;
}
.zk-footer-link:hover { color: rgb(var(--zk-footer-text) / 1); }
.zk-footer-copy   { font-size: 14px; color: rgb(var(--zk-footer-text) / 0.4); }
.zk-footer-credit { font-size: 14px; color: rgb(var(--zk-footer-text) / 0.3); }

.zk-social-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 16px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 14px;
  color: rgb(var(--zk-footer-text) / 0.85);
  transition: background 120ms ease;
}
.zk-social-pill:hover { background: rgba(255, 255, 255, 0.14); }

/* ── Cards ────────────────────────────────────────────────────────────────
 * The comp runs the card image edge-to-edge with the title laid over it.
 * .card ships 1.75rem of padding, which would inset the image — but .card is
 * shared with the contact block, the thanks block and blog post cards, all of
 * which still want it. So the flush treatment is opt-in per card.
 */
.zk-card-flush { padding: 0; display: flex; flex-direction: column; }
.zk-card-body  { padding: 32px; display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; }

/* The comp bottom-aligns the CTA across a stretched row of cards (CSS Grid's
 * default align-items:stretch makes every .card in a row match the tallest).
 * .zk-card-body's own height is otherwise content-driven — it does NOT
 * inherit .card's stretched height just by being a flex container — so it
 * must be told to grow and fill .card's leftover space (flex: 1 1 auto
 * above) before margin-top: auto below has anything to push against.
 *
 * Scoped to .zk-card-cta specifically, not .zk-card-body > :last-child: a
 * card with no href renders no CTA <p> at all, so the body <p> would BE
 * :last-child in that case, and margin-top: auto on it would shove the body
 * text itself to the bottom of the card, leaving a gap under the title —
 * wrong. The dedicated class only ever matches the CTA paragraph.
 *
 * margin-top: auto only has effect when the flex column has leftover space
 * to distribute — on mobile (cards stack, height is content-driven, no
 * stretch) or when a card's own body copy is long enough to nearly fill the
 * stretched height, there IS no leftover space, so auto alone resolves to
 * 0 and the button would sit flush against the paragraph with no breathing
 * room. padding-top guarantees the same ~24px gap the original mt-6 gave in
 * that case; auto still absorbs any slack beyond it to reach the bottom.
 */
.zk-card-cta { margin-top: auto; padding-top: 1.5rem; }

.zk-card-media {
  position: relative;
  overflow: hidden;
  border-top-left-radius: 1rem;
  border-top-right-radius: 1rem;
}
.zk-card-media img {
  display: block;
  width: 100%;
  height: 208px;
  object-fit: cover;
}
.zk-card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.65) 0%,
    rgba(0, 0, 0, 0.25) 45%,
    transparent 100%
  );
}
.zk-card-media-title {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  left: 32px;
  right: 32px;
  bottom: 24px;
  color: #fff;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* ── FAQ index + topic pages ──────────────────────────────────────────────
 * Comps: 537:1852 (index) and 542:477 (topic). Values are read from the
 * Figma nodes — type sizes, the 14px radius, the double shadow and the
 * 32.4px leading are all literal, not rounded.
 */

/* Both FAQ comps put the hero at a fixed 560px with its content vertically
 * centred, which reproduces BOTH layouts from one rule: the index (title +
 * paragraph, 277px tall) lands its h1 at y=238.5 against the comp's 239, and
 * the topic page (title alone) lands at y=339 against the comp's 339.
 * The scrim is the comp's flat #969696 multiply, not site.css's gradient. */
.hero.hero-centered {
  min-height: 560px;
  display: flex;
  align-items: center;
  border-bottom: 4px solid var(--color-primary);
}
/* Scoped to .hero-image: the multiply is there to knock a PHOTO back behind
 * the title. Applied to a coverless hero it blends site.css's brand gradient
 * against flat grey and muddies it, which is what a post saved without a
 * cover would otherwise get. */
.hero.hero-centered.hero-image {
  background-color: #969696;
  background-blend-mode: multiply;
}
/* max-w-6xl (1152px) is the template's content cap and it wrapped comp
 * 643:606's title, which the comp sets on ONE line. The comp fits it in
 * 1334px; ours needs 1354 because the template renders hero titles at weight
 * 800 where the comp uses Times regular — so 1440 (1392 inside the gutters)
 * leaves the line real slack instead of landing 2px short of it.
 *
 * The lede keeps its own 873px cap below, so this only ever affects the
 * heading — every shorter title on the other centred heroes already fits
 * inside 1152 and does not move. */
.hero.hero-centered .zk-hero-content { width: 100%; max-width: 1440px; }
.hero.hero-centered h1 {
  font-size: 72px;
  line-height: 76px;
  max-width: none;
}
.hero.hero-centered .zk-hero-content > p {
  font-size: 20px;
  line-height: 32.4px;
  max-width: 873px;
  margin-top: 39px;
  opacity: 1;
}

/* The comps put these bands on WHITE, not on the cream --color-surface that
 * layout.html paints the body. Cream is the header and the card fill only. */
.zk-faq-band {
  background: #ffffff;
  padding: 52px 24px 63px;
}
.zk-faq-lede {
  max-width: 1117px;
  margin-inline: auto;
  font-size: 20px;
  line-height: 32.4px;
  color: var(--color-secondary);
}
.zk-faq-outro { margin-top: 39px; }

/* Comp 643:61 — the post body. Same band, same 1117px measure and 20px/32.4
 * as the index's intro; .article on the same element keeps supplying the
 * heading, list and blockquote rules a longer teaching will need.
 *
 * min-height is the comp's white area (footer at 994 less the hero's 657).
 * These posts are a single paragraph today, and without it the band collapses
 * to a stub of white wedged between the hero and the footer. */
.zk-post-band { min-height: 337px; }
.zk-post-prose {
  max-width: 1117px;
  margin-inline: auto;
  font-size: 20px;
  line-height: 32.4px;
  color: var(--color-secondary);
}
/* .article sets its own line-height; the comp's 32.4px has to win. */
.zk-post-prose p { line-height: 32.4px; }
.zk-post-prose > :first-child { margin-top: 0; }

/* Index cluster: 1394px is the comp's row-1 width, which is what makes it
 * wrap 4 + 3. */
.zk-topic-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px 14px;
  max-width: 1394px;
  margin: 30px auto 0;
}
/* Teachings and Gospels (comp 634:122) runs three uniform 338px cards to a row.
 * This cluster is a GRID, not the flex wrap above: the FAQ index's cards are
 * each a different width and re-wrapping them as the viewport narrows is fine,
 * but here the column count IS the comp, and flex-wrapping content-sized cards
 * put four on row 1 at 1280px. Fixed tracks pin it to three, then two, then
 * one — never an uneven 4 + 2.
 *
 * 1090px = the 1042px row (3 * 338 + 2 * 14) plus the band's 24px gutters. */
.zk-topic-cards-3 {
  display: grid;
  grid-template-columns: repeat(2, 338px);
  justify-content: center;
  /* The comp sets its rows 39px apart (802 → 949, less the 108px card), where
   * the FAQ cluster runs 30px. */
  gap: 39px 14px;
  max-width: 1042px;
}
@media (min-width: 1090px) {
  .zk-topic-cards-3 { grid-template-columns: repeat(3, 338px); }
}
@media (max-width: 767px) {
  .zk-topic-cards-3 { grid-template-columns: minmax(0, 1fr); }
}
.zk-topic-card {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 108px;
  padding: 0 24px;
  border-radius: 14px;
  background: var(--color-surface);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.25), 0 2px 4px -2px rgba(0, 0, 0, 0.25);
  transition: box-shadow 120ms ease, transform 120ms ease;
}
.zk-topic-card > span {
  font-size: 36px;
  line-height: 32px;
  color: var(--color-primary);
  white-space: nowrap;
  padding-bottom: 9px;
  border-bottom: 2px solid var(--color-accent);
}
/* The comp gives no hover state, but these are links and need affordance. */
.zk-topic-card:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.25), 0 4px 6px -4px rgba(0, 0, 0, 0.25);
  transform: translateY(-1px);
}
/* The comp's per-card widths only fit at its own viewport: content-sized,
 * row 1 needs 1438px. Above 1440 use the comp's geometry exactly; below it,
 * let the cluster size to its labels and re-wrap rather than overflow. */
@media (min-width: 1440px) {
  .zk-topic-card { width: var(--zk-tc-w, auto); padding: 0; }
}

/* Topic page accordions. Same fill/radius/shadow as the index cards. */
.zk-faq-list {
  max-width: 1114px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.zk-faq-card {
  border-radius: 14px;
  background: var(--color-surface);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.25), 0 2px 4px -2px rgba(0, 0, 0, 0.25);
  padding: 20px 30px 20px 39px;
}
.zk-faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  cursor: pointer;
  list-style: none;
}
.zk-faq-q::-webkit-details-marker { display: none; }
.zk-faq-q > span {
  font-size: 24px;
  line-height: 32px;
  color: var(--color-primary);
  padding-bottom: 1px;
  border-bottom: 2px solid var(--color-accent);
}
/* The chevron path (zk_render.js) is drawn apex-up by default, but the comp
 * wants the closed state pointing DOWN and the open state pointing UP — the
 * opposite of the raw path. Rotate 180deg at rest and un-rotate on [open],
 * rather than the reverse, so the visible direction matches the comp. */
.zk-faq-chev {
  flex: none;
  color: var(--color-primary);
  transform: rotate(180deg);
  transition: transform 150ms ease;
}
.zk-faq-card[open] .zk-faq-chev { transform: rotate(0deg); }
.zk-faq-a {
  margin-top: 15px;
  max-width: 1010px;
  font-size: 20px;
  line-height: 32.4px;
  color: var(--color-secondary);
}

/* ── Testimonials band (comp 551:1140) ────────────────────────────────────
 * White, like the FAQ bands, not the cream body. Padding is the comp's own
 * gaps: intro top 683 − hero bottom 657 = 26 above, footer top 1166 − card
 * bottom 1099 = 67 below. */
.zk-quote-band {
  background: #ffffff;
  padding: 26px 24px 67px;
}
.zk-quote-lede {
  max-width: 1010px;
  margin-inline: auto;
  font-size: 20px;
  line-height: 32.4px;
  color: var(--color-secondary);
}
/* Cards sit at x 335 / 758 / 1181, each 403 wide → a 20px gap and a 1249px
 * cluster centred in 1920. 32px above them is 845 − (683 + 4 × 32.4). */
.zk-quote-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 32px;
}
/* min-height, NOT the comp's fixed 254px: a longer quote must lengthen the card
 * instead of spilling out of it. Flex's default align-items:stretch then keeps
 * the row level, which is what the comp's uniform row shows anyway.
 * Padding is measured: text x 359 in a card at x 335 → 24 inline; quote top 880
 * − card top 845 → 35 top; card bottom 1099 − name box bottom 1086 → 13. */
.zk-quote-card {
  display: flex;
  flex-direction: column;
  width: 403px;
  min-height: 254px;
  padding: 35px 24px 13px;
  border-radius: 14px;
  background: var(--color-surface);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.25), 0 2px 4px -2px rgba(0, 0, 0, 0.25);
}
.zk-quote-text {
  font-size: 20px;
  line-height: 32.4px;
  color: var(--color-secondary);
  /* A FLOOR under the gap to the gold rule, and it is load-bearing. The comp
   * cannot supply this number: its cards are a fixed 254px, so the air between
   * quote and rule is whatever height is left over (68.8px under Jessica's 3
   * lines, 36.4px under Donny's 4) and is donated by margin-top:auto below.
   * Wherever there is NO leftover — a stacked mobile card, or a quote long
   * enough to grow the card past 254px — auto resolves to 0 and the rule is
   * drawn straight through the last line of text. This keeps them apart.
   * It never binds on desktop: 24 < 36.4, the tightest gap the comp shows. */
  margin-bottom: 24px;
}
/* The review arrives <p>-wrapped; the paragraph's own margins would fight both
 * the comp's 35px top inset and the floor above. */
.zk-quote-text > :first-child { margin-top: 0; }
.zk-quote-text > :last-child { margin-bottom: 0; }
/* margin-top:auto is what actually reproduces the comp: Jessica's quote runs 3
 * lines and Donny's 4, yet both gold rules sit at y=1046 — a constant 201px
 * from the card top. The rule and name are pinned to the card's bottom, not
 * flowed after the quote. 35 + quote + auto + 2 + 6 + 32 + 13 = 254 puts the
 * rule at 201 and the name box at 209, which is the comp exactly. */
.zk-quote-cite {
  margin-top: auto;
  font-size: 24px;
  line-height: 32px;
  color: var(--color-primary);
}
.zk-quote-cite::before {
  content: "";
  display: block;
  width: 93px;
  height: 2px;
  margin-bottom: 6px;
  background: var(--color-accent);
}

/* ── Contact page (comp 533:1313) ─────────────────────────────────────────
 * Two bands under the hero. The first is WHITE (like the FAQ/testimonials
 * bands, not the cream body) and carries the lede + the maroon Service Times
 * card on the left, the cream form card on the right. The second is a
 * full-width cream band holding Location / Call or Email.
 *
 * Geometry is read off the comp nodes: content x 354 → 1564 (1210 wide) split
 * 613 / 45 / 552; hero bottom 657 → lede top 711 = 54 above; card + form both
 * bottom out at 1224, and the cream band starts at 1270 = 46 below.
 */
.zk-contact-band {
  background: #ffffff;
  padding: 54px 24px 46px;
}
.zk-contact-grid {
  max-width: 1210px;
  margin-inline: auto;
  display: grid;
  /* fr, not the comp's fixed px: below 1210 both columns shrink in the comp's
     proportion instead of overflowing the viewport. */
  grid-template-columns: minmax(0, 613fr) minmax(0, 552fr);
  gap: 45px;
  align-items: start;
}
.zk-contact-lede {
  font-size: 20px;
  line-height: 32.4px;
  color: var(--color-secondary);
}

/* Service Times: solid brand maroon, the same 14px radius the FAQ and
 * testimonial cards use. Card y 885 − lede bottom 841 = 44 above; text x 387
 * in a card at x 354 = 33 inline; card bottom 1224 − body bottom 1180 = 44. */
.zk-contact-card {
  margin-top: 44px;
  padding: 35px 33px 44px;
  border-radius: 14px;
  background: var(--color-primary);
  color: #ffffff;
}
.zk-contact-card-title {
  font-size: 36px;
  line-height: 32px;
}

/* Shared body treatment for all three copy blocks (service times, location,
 * call or email). The blocks are authored HTML — lists, <strong>, links — so
 * this styles element by element rather than assuming one shape. */
.zk-contact-prose {
  margin-top: 28px;
  font-size: 18px;
  line-height: 24px;
}
.zk-contact-prose > * + * { margin-top: 24px; }
.zk-contact-prose ul { list-style: disc; padding-left: 27px; }
.zk-contact-prose li { margin-bottom: 20px; }
.zk-contact-prose li:last-child { margin-bottom: 0; }
.zk-contact-prose strong { font-weight: 700; }
.zk-contact-prose a {
  text-decoration: underline;
  text-underline-offset: 2px;
  word-break: break-word;
}

/* Location / Call or Email band. Its own container (comp x 408 → 1558) sits
 * slightly inside the band above — that inset is in the comp, not a mistake. */
.zk-contact-info {
  background: var(--color-surface);
  padding: 35px 24px 40px;
}
.zk-contact-info-grid {
  max-width: 1150px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 559fr) minmax(0, 492fr);
  gap: 99px;
  align-items: start;
}
.zk-contact-info-title {
  font-size: 36px;
  line-height: 32px;
  color: var(--color-primary);
}
.zk-contact-info .zk-contact-prose {
  /* body y 1363 − rule bottom 1351 = 12, tighter than the maroon card's 28 */
  margin-top: 12px;
  color: var(--color-secondary);
}

/* ── Contact form card ────────────────────────────────────────────────────
 * Cream fill, 32px inset, a 24px gap under the heading and 16px between
 * fields. The inputs are white on cream with the comp's warm grey hairline —
 * they do NOT reuse .input (0.5rem radius, cream fill), which would disappear
 * into the card.
 */
.zk-contact-form-card {
  padding: 32px;
  border-radius: 14px;
  background: var(--color-surface);
}
.zk-contact-form-title {
  font-size: 24px;
  line-height: 32px;
  color: var(--color-primary);
}
.zk-contact-form {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.zk-contact-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.zk-contact-field { display: flex; flex-direction: column; gap: 4px; }
.zk-contact-label {
  font-size: 14px;
  line-height: 20px;
  color: var(--color-primary);
}
.zk-contact-input {
  width: 100%;
  height: 46px;
  padding: 10px 16px;
  border: 1px solid #ccc8c0;
  border-radius: 4px;
  background: #ffffff;
  font-size: 16px;
  color: var(--color-text);
}
textarea.zk-contact-input {
  height: 118px;
  line-height: 24px;
  resize: vertical;
}
.zk-contact-input::placeholder { color: rgba(54, 65, 83, 0.5); }
.zk-contact-input:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 1px;
  border-color: transparent;
}
.zk-contact-submit {
  width: 100%;
  padding: 12px;
  border-radius: 4px;
  background: var(--color-primary);
  color: #ffffff;
  font-size: 16px;
  line-height: 24px;
  text-align: center;
  cursor: pointer;
  transition: filter 120ms ease;
}
.zk-contact-submit:hover { filter: brightness(1.25); }
.zk-contact-submit:disabled { opacity: 0.7; cursor: default; }

/* htmx swaps this in where the form was, so it lives inside the cream card
 * and must not re-draw a card of its own. */
.zk-contact-thanks {
  margin-top: 24px;
  text-align: center;
  color: var(--color-secondary);
}
.zk-contact-thanks h3 {
  margin-top: 12px;
  font-size: 24px;
  line-height: 32px;
  color: var(--color-primary);
}
.zk-contact-thanks p { margin-top: 8px; font-size: 18px; line-height: 24px; }

/* ── /worship-services — comp 553:1632 ────────────────────────────────────
 *
 * Service Times. A full-bleed maroon stripe, 657 → 1250 in the comp, and
 * every number below is measured off that origin: 31px down to the heading,
 * 50px from its rule to the cards, 20px between cards, 39px to the outro,
 * 49px of tail.
 */
.zk-svc-band {
  background: var(--color-primary);
  color: #ffffff;
  padding: 31px 24px 49px;
  text-align: center;
}
.zk-svc-title { font-size: 36px; line-height: 32px; }
/* .zk-heading-bar carries the 0.9rem gap the section headings elsewhere use;
   this band sets its rule 31px below the heading box instead. */
.zk-svc-rule { margin-top: 31px; }

/* 1249px = 3 × 403 + 2 × 20, so at full width the row lands on the comp's
   card width exactly: the 340px basis grows into the leftover and the 403px
   cap holds it there.
   Wrapping flex rather than a grid, because a grid orphans the third card
   against a card-and-a-half of dead maroon once the row drops to two up.
   justify-content centres that trailing card instead. */
.zk-svc-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  max-width: 1249px;
  margin: 50px auto 0;
}
.zk-svc-card {
  flex: 1 1 340px;
  max-width: 403px;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 254px;
  padding: 23px 24px 32px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  /* The band's own maroon lifted one step. No token: it appears here only. */
  background: #592e3b;
}
.zk-svc-card-title { font-size: 24px; line-height: 32px; }
/* The comp's title node is 64px tall — two 32px lines, name then time. Making
   `when` a block guarantees that break at any card width, rather than leaving
   it to wrap wherever the measure happens to run out. */
.zk-svc-when { display: block; font-style: italic; }
.zk-svc-card-rule {
  display: block;
  width: 93px;
  height: 2px;
  margin-top: 10px;
  background: var(--color-accent);
}
/* Left-aligned inside a centre-aligned band, per the comp. */
.zk-svc-card-body {
  margin-top: 14px;
  align-self: stretch;
  text-align: left;
  font-size: 20px;
  line-height: 32.4px;
  color: #ded3d3;
}
.zk-svc-outro {
  max-width: 1035px;
  margin: 39px auto 0;
  font-size: 20px;
  line-height: 32.4px;
  color: #ded3d3;
}
.zk-svc-cta { margin-top: 16px; }

/* The comp's outlined alternative to .btn-accent, for dark bands where a
   solid gold block would outshout the cards above it. */
.zk-btn-outline {
  display: inline-block;
  padding: 12px 41px;
  border: 1px solid var(--color-accent);
  border-radius: 4px;
  font-size: 16px;
  line-height: 24px;
  color: var(--color-accent);
  transition: background-color 120ms ease, color 120ms ease;
}
/* The comp gives no hover state, but this is a link and needs the affordance. */
.zk-btn-outline:hover { background: var(--color-accent); color: var(--color-dark); }

/* Biblical Translation: a prose column beside a photo, on WHITE — not the
 * cream --color-surface the body is painted, and not `split`'s bg-black/[0.02]
 * (which tints that cream rather than clearing it). 1152px of content, split
 * 540 / 552 across a 60px gutter. */
.zk-split-band {
  background: #ffffff;
  padding: 63px 24px 50px;
}
.zk-split-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 60px;
  align-items: start;
  max-width: 1152px;
  margin-inline: auto;
}
.zk-split-media-first { order: -1; }
.zk-split-media img {
  width: 100%;
  aspect-ratio: 552 / 320;
  object-fit: cover;
  border-radius: 10px;
}
.zk-split-title {
  font-size: 36px;
  line-height: 40px;
  color: var(--color-primary);
}
.zk-split-band .zk-heading-bar { margin-top: 24px; }
/* Authored HTML — <strong> runs and links — so it is styled element by
   element, the same way .zk-contact-prose is. */
.zk-split-prose {
  margin-top: 25px;
  font-size: 20px;
  line-height: 32.4px;
  color: var(--color-secondary);
}
.zk-split-prose > * + * { margin-top: 24px; }
/* The worship comp's body was prose only; comp 643:606's is prose + bullets,
   and Tailwind's preflight strips the marker, so the list needs stating.
   Matches .zk-cols-prose apart from the comp's tighter 25px bullet gap. */
.zk-split-prose ul { list-style: disc; padding-left: 30px; }
.zk-split-prose li { margin-bottom: 25px; }
.zk-split-prose li:last-child { margin-bottom: 0; }
.zk-split-prose strong { font-weight: 700; }
.zk-split-prose a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.zk-split-cta { margin-top: 32px; }

/* One column once the 540 / 552 pair stops fitting. */
@media (max-width: 899px) {
  .zk-split-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  /* Text-first on mobile whatever the desktop order — matching how `split`
     keeps its text column first. */
  .zk-split-media-first { order: 0; }
}

/* Paired prose columns, divided by a full-height gold rule. Same white band
 * and same 1152px measure as .zk-split-band, and the column head is that
 * band's heading treatment exactly — 36px maroon, gold bar 24px under it,
 * prose 25px under that.
 *
 * Flex, not grid: the rule is a real child sitting between the two gaps, so
 * it stays centred in the 94px gutter at every width and stretches to the
 * taller column on its own. The comp's columns measure 507 / 552, which is
 * Figma auto-sizing two text boxes rather than a designed ratio — equal
 * columns land the right one 21px off and read identically. */
.zk-cols-band {
  background: #ffffff;
  padding: 31px 24px 77px;
}
.zk-cols-grid {
  display: flex;
  align-items: stretch;
  gap: 46px;
  max-width: 1152px;
  margin-inline: auto;
}
.zk-cols-col { flex: 1 1 0; min-width: 0; }
.zk-cols-rule { flex: 0 0 2px; background: var(--color-accent); }
.zk-cols-title {
  font-size: 36px;
  line-height: 40px;
  color: var(--color-primary);
}
.zk-cols-band .zk-heading-bar { margin-top: 24px; }
/* Authored HTML — bulleted lists and <strong> runs — so it is styled element
   by element, the same way .zk-split-prose and .zk-contact-prose are. */
.zk-cols-prose {
  margin-top: 25px;
  font-size: 20px;
  line-height: 32.4px;
  color: var(--color-secondary);
}
/* 32px between blocks: the comp gets that gap from an empty spacer paragraph
   either side of the list, which is a Figma artefact and not worth carrying
   into the copy. */
.zk-cols-prose > * + * { margin-top: 32px; }
.zk-cols-prose ul { list-style: disc; padding-left: 30px; }
.zk-cols-prose li { margin-bottom: 37px; }
.zk-cols-prose li:last-child { margin-bottom: 0; }
.zk-cols-prose strong { font-weight: 700; }
.zk-cols-prose a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Comp 643:606 (children and youth) runs the same pairs with no gutter rule,
 * opening the gutter to 64px instead — that is what lands its columns on the
 * comp's x=384 and x=994 across the shared 1152px measure. */
.zk-cols-grid-plain { gap: 64px; }

/* …and runs one of the three pairs on the maroon band. Only the three colours
 * change: measure, gutter and heading rhythm stay the white band's. The prose
 * colour is the footer's warm off-white token, which is the same #f0eae8 the
 * comp sets here. */
.zk-cols-band-dark { background: var(--color-primary); }
.zk-cols-band-dark .zk-cols-title { color: #ffffff; }
.zk-cols-band-dark .zk-cols-prose { color: rgb(var(--zk-footer-text)); }

/* Stacked, with the divider turning horizontal — `flex: 0 0 2px` sets the
   cross-axis size, so the rule needs no separate mobile treatment. */
@media (max-width: 899px) {
  .zk-cols-grid { flex-direction: column; gap: 40px; }
}

/* Comp 643:606 — the closing statement: a full-measure gold rule with a
 * centred line beneath it, on cream. The comp's band is 202px tall: rule 52px
 * down, copy 24px under the rule, 40px of air below it. */
.zk-close-band {
  background: var(--color-surface);
  padding: 52px 24px 40px;
}
.zk-close-rule {
  display: block;
  height: 2px;
  max-width: 1152px;
  margin: 0 auto 24px;
  background: var(--color-accent);
}
.zk-close-prose {
  max-width: 1142px;
  margin-inline: auto;
  text-align: center;
  font-size: 20px;
  line-height: 32.4px;
  color: var(--color-secondary);
}
.zk-close-prose > * + * { margin-top: 24px; }
.zk-close-prose strong { font-weight: 700; }
.zk-close-prose a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ── Homepage scripture band (comp 393:107) ───────────────────────────────
 * A 32px cadet-blue quote mark centred above the verse. The comp's gap to the
 * first line is 16px, which the renderer supplies as the paragraph's mt-4 —
 * the icon box is exactly 32px tall and adds nothing of its own. Lucide swaps
 * the <i> for an <svg> at runtime, so the size is set on whichever is there. */
.zk-quote-mark {
  display: flex;
  justify-content: center;
  color: var(--zk-footer-label);
}
.zk-quote-mark > * { width: 32px; height: 32px; }

/* ── Homepage testimonial cards (comp 393:135) ────────────────────────────
 * The band itself is --color-primary, set in the renderer. Everything here is
 * the card on top of it: a 14px radius over an 8% white fill and a 12%
 * hairline, 28px of inset, and an 18px/28.8 quote in the footer's warm
 * off-white at 88%. Off Tailwind's scale in every one of those, hence a class.
 */
.zk-tcard {
  display: flex;
  flex-direction: column;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
}
.zk-tcard-mark {
  display: block;
  color: var(--zk-footer-label);
}
.zk-tcard-mark > * { width: 28px; height: 28px; }
.zk-tcard-quote {
  margin-top: 16px;
  font-size: 18px;
  line-height: 28.8px;
  font-style: italic;
  color: rgb(var(--zk-footer-text) / 0.88);
  /* Same floor .zk-quote-text sets on /testimonials, for the same reason: the
     hairline below is pinned to the card's bottom by margin-top:auto, which
     resolves to 0 in a stacked mobile card or under a quote long enough to
     fill the card. Without this the rule is drawn through the last line.
     Never binds on desktop — the comp's tightest gap here is 25.4px. */
  margin-bottom: 24px;
}
/* The review arrives <p>-wrapped, and .article gives those paragraphs 1rem
   margins that would fight the 16px above and the floor below. */
.zk-tcard-quote > :first-child { margin-top: 0; }
.zk-tcard-quote > :last-child { margin-bottom: 0; }
/* margin-top:auto is what reproduces the comp: Jessica's quote runs 3 lines and
   Donny's 4, yet both hairlines sit a constant 182.39px from the card top. The
   rule and name are pinned to the card's bottom, not flowed after the quote. */
.zk-tcard-name {
  margin-top: auto;
  padding-top: 17px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 16px;
  line-height: 24px;
  color: #ffffff;
}
/* Comp: 48px under the card row, button centred on the band. */
.zk-tcards-cta {
  margin-top: 48px;
  text-align: center;
}

/* ── Homepage "Contact Us Today!" band (comp 393:162) ─────────────────────
 * Stands where the shared CTA strip used to. WHITE, like the contact page's
 * own band — not the cream body. The comp's container is 1152px inside 80px of
 * top padding and 65px of tail; the columns start 56px under the lede.
 */
.zk-home-contact {
  background: #ffffff;
  padding: 80px 24px 65px;
}
.zk-home-contact-title {
  font-size: 36px;
  line-height: 40px;
  text-align: center;
  color: var(--color-primary);
}
.zk-home-contact-lede {
  max-width: 692px;
  margin: 26px auto 0;
  font-size: 20px;
  line-height: 32.4px;
  text-align: center;
  color: var(--color-secondary);
}
/* 552 + 48 + 552. fr, not fixed px, so both columns shrink together instead of
   overflowing once the viewport drops under 1152. The default
   align-items:stretch is load-bearing — it is what levels the maroon card with
   the (naturally taller) form card, which is the comp's 513/513 relationship. */
.zk-home-contact-grid {
  max-width: 1152px;
  margin: 56px auto 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px;
}

/* Get In Touch: solid brand maroon, the 14px radius every card in this design
 * uses, 32px of inset. */
.zk-gt-card {
  padding: 32px;
  border-radius: 14px;
  background: var(--color-primary);
  color: #ffffff;
}
.zk-gt-title {
  font-size: 24px;
  line-height: 32px;
}
.zk-gt-rows {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.zk-gt-row {
  display: flex;
  gap: 16px;
}
/* 40px cadet-blue chip. The 2px nudge is the comp's — it sets the chip against
 * the label's cap height rather than its line box. The fixed flex basis keeps
 * it circular when a long email squeezes the column. */
.zk-gt-icon {
  flex: 0 0 40px;
  height: 40px;
  margin-top: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background: rgb(95 158 160 / 0.16);
  color: var(--zk-footer-label);
}
.zk-gt-icon > * { width: 18px; height: 18px; }
.zk-gt-label {
  font-size: 14px;
  line-height: 20px;
  color: rgb(var(--zk-footer-text) / 0.65);
}
.zk-gt-value {
  margin-top: 4px;
  font-size: 18px;
  line-height: 24px;
  /* The gmail address is wider than this column at the narrow end of the grid;
     break it rather than let it push the card past its track. */
  overflow-wrap: anywhere;
}
/* The comp draws the email and phone as plain white text, so the underline is
   held back for hover/focus. Nothing is lost: these are standalone values under
   their own "Email"/"Phone" label and icon, not links buried in a sentence, so
   they are not being distinguished by colour alone. */
.zk-gt-value a { text-decoration: none; }
.zk-gt-value a:hover,
.zk-gt-value a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 2px;
}
/* The comp's divider, and a label one size up from the rows' — 18px, not 14. */
.zk-gt-hours {
  margin-top: 24px;
  padding-top: 33px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.zk-gt-hours-label { font-size: 18px; }
.zk-gt-hours .zk-gt-value { margin-top: 0; }

/* One column below the comp's desktop width — the form is 552px wide and the
 * maroon card 613px, so they stop fitting side by side well before 768px. */
@media (max-width: 1023px) {
  .zk-contact-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .zk-contact-info-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  /* Same story for the homepage band: two 552px columns and a 48px gutter. */
  .zk-home-contact-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
}

/* Scroll reveals. custom.js adds .zk-reveal only to pieces that start
   below the fold, so a page with JavaScript off (or reduced motion) never
   hides anything. Once a piece has settled, the long entrance timing steps
   aside and hover motion stays short. */
.zk-reveal {
  transition: opacity 680ms ease, transform 680ms cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: var(--zk-d, 0ms);
}
.zk-reveal:not(.is-in) {
  opacity: 0;
  transform: translateY(1.35rem);
}
.zk-reveal.is-in[data-zk-settled] {
  transition-duration: 160ms;
  transition-delay: 0ms;
}
@media (prefers-reduced-motion: reduce) {
  .zk-reveal,
  .zk-reveal:not(.is-in),
  .zk-reveal.is-in[data-zk-settled] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Mobile is not comp-matched in this pass — these keep it from breaking. */
@media (max-width: 767px) {
  .hero.hero-centered { min-height: 380px; }
  .hero.hero-centered h1 { font-size: 40px; line-height: 44px; }
  .hero.hero-centered .zk-hero-content > p { font-size: 18px; margin-top: 24px; }
  .zk-faq-band { padding: 40px 20px 48px; }
  .zk-topic-card { width: 100%; height: auto; padding: 20px 24px; }
  .zk-topic-card > span { font-size: 26px; white-space: normal; text-align: center; }
  .zk-faq-card { padding: 20px 20px 20px 24px; }
  .zk-faq-q > span { font-size: 20px; line-height: 28px; }
  .zk-quote-band { padding: 24px 20px 40px; }
  .zk-quote-card { width: 100%; min-height: 0; padding: 24px 20px 20px; }
  .zk-quote-text { font-size: 18px; line-height: 29px; }
  .zk-quote-cite { font-size: 22px; }

  .zk-contact-band { padding: 32px 20px; }
  /* The blanket mobile rule above centres every .zk-heading-bar, because the
     section headings it was written for centre on mobile too. These headings
     stay left-aligned at every width, so their rules must as well — otherwise
     the gold bar floats away from the word it underlines. */
  .zk-contact-card .zk-heading-bar,
  .zk-contact-info .zk-heading-bar { margin-left: 0; margin-right: auto; }
  .zk-contact-lede { font-size: 18px; line-height: 29px; }
  .zk-contact-card { margin-top: 28px; padding: 28px 24px 32px; }
  .zk-contact-card-title,
  .zk-contact-info-title { font-size: 28px; }
  .zk-contact-form-card { padding: 24px 20px; }
  .zk-contact-row { grid-template-columns: minmax(0, 1fr); }
  .zk-contact-info { padding: 32px 20px 40px; }

  .zk-svc-band { padding: 32px 20px 40px; }
  .zk-svc-title { font-size: 28px; }
  .zk-svc-cards { margin-top: 36px; }
  .zk-svc-card { max-width: none; min-height: 0; padding: 24px 20px 28px; }
  .zk-svc-card-title { font-size: 22px; }
  .zk-svc-card-body,
  .zk-svc-outro { font-size: 18px; line-height: 29px; }
  .zk-svc-outro { margin-top: 32px; }
  .zk-btn-outline { padding: 12px 28px; }

  .zk-split-band { padding: 40px 20px 44px; }
  .zk-split-title { font-size: 28px; line-height: 34px; }
  .zk-split-prose { font-size: 18px; line-height: 29px; }
  /* Same reason as the contact headings above: the blanket rule at the top of
     this file centres every .zk-heading-bar on mobile, and this one underlines
     a heading that stays left-aligned at every width. */
  .zk-split-band .zk-heading-bar { margin-left: 0; margin-right: auto; }

  .zk-cols-band { padding: 28px 20px 44px; }
  .zk-cols-title { font-size: 28px; line-height: 34px; }
  .zk-cols-prose { font-size: 18px; line-height: 29px; }
  .zk-cols-prose li { margin-bottom: 24px; }
  /* Left-aligned headings, same as the split and contact bands above. */
  .zk-cols-band .zk-heading-bar { margin-left: 0; margin-right: auto; }
  .zk-split-prose li { margin-bottom: 20px; }

  .zk-close-band { padding: 32px 20px 36px; }
  .zk-close-rule { margin-bottom: 20px; }
  .zk-close-prose { font-size: 18px; line-height: 29px; }

  /* Comp 3:631 — the homepage contact band. A 16px page inset (not the 20px
     the older bands use), a 30px heading over a 16px lede, and the two cards
     stacked with the comp's 40px between them. The card insets do NOT shrink
     here: unlike /contact-us, this comp keeps its 32px at 378px wide.
     .zk-tcard and .zk-quote-mark need no mobile rules at all — the mobile comp
     draws both at exactly their desktop size. */
  .zk-home-contact { padding: 80px 16px 20px; }
  .zk-home-contact-title { font-size: 30px; line-height: 36px; }
  .zk-home-contact-lede { font-size: 16px; line-height: 28.8px; }
  .zk-home-contact-grid { gap: 40px; }
  .zk-home-contact .zk-contact-form-card { padding: 32px; }
  /* 16px, not the desktop 18. This is the step that keeps the 31-character
     gmail address on ONE line inside a 358px card — at 18px it wraps, and
     overflow-wrap:anywhere then breaks it mid-domain. The divider also tightens
     from 24/33 to 18/17. */
  .zk-gt-value { font-size: 16px; }
  .zk-gt-hours-label { font-size: 14px; }
  .zk-gt-hours { margin-top: 18px; padding-top: 17px; }
}

/* ── Basecamp project bar ──────────────────────────────────────────────
   Shows signed-in Basecamp users their subscribed cards and a quick
   "Talk" button for feedback. Hidden until /_api/portal/me returns ok. */

body.zk-has-open-bar:not(.zk-open-bar-minimized) {
  --zk-bc-bar-h: 2.4rem;
}

.zk-open-bar {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--color-surface);
  border-bottom: 1px solid color-mix(in srgb, var(--color-text) 12%, transparent);
  color: var(--color-text);
  font: inherit;
  box-sizing: border-box;
}

.zk-open-bar.is-minimized {
  position: fixed;
  top: 0.55rem;
  left: 0.55rem;
  right: auto;
  width: auto;
  height: auto;
  background: transparent;
  border: 0;
  z-index: 70;
}

.zk-open-bar.is-minimized .zk-open-bar-inner,
.zk-open-bar.is-minimized .zk-open-panel {
  display: none !important;
}

.zk-open-bar-inner {
  max-width: 80rem;
  margin-inline: auto;
  padding: 0.3rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 2.35rem;
  box-sizing: border-box;
}

.zk-open-bar button,
.zk-open-bar-toggle,
.zk-open-bar-ask,
.zk-open-bar-min {
  appearance: none;
  -webkit-appearance: none;
}

.zk-open-bar-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  font: inherit;
  color: var(--color-text);
  cursor: pointer;
  padding: 0.28rem 0.55rem 0.28rem 0.6rem;
  border: 1px solid color-mix(in srgb, var(--color-text) 18%, transparent);
  background: color-mix(in srgb, var(--color-text) 4%, transparent);
  line-height: 1.15;
  min-height: 1.7rem;
  box-sizing: border-box;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.12s ease;
}

.zk-open-bar-toggle:hover {
  border-color: var(--color-text);
  background: color-mix(in srgb, var(--color-text) 8%, transparent);
  transform: translateY(-1px);
}

.zk-open-bar-toggle.has-items {
  border-color: var(--color-text);
  background: var(--color-text);
  color: var(--color-surface);
}

.zk-open-bar-toggle.has-items:hover {
  filter: brightness(1.05);
}

.zk-open-bar.is-open .zk-open-bar-toggle,
.zk-open-bar.is-open .zk-open-bar-toggle.has-items,
.zk-open-bar.is-open .zk-open-bar-toggle.has-items:hover {
  border-color: var(--color-text);
  background: var(--color-surface);
  background-color: var(--color-surface);
  color: var(--color-text);
  filter: none;
}

/* Opening the menu lightens the chip. The filled "has items" treatment
   leaves the label, chevron, and pulse on --color-surface, which is the
   same cream as this background. Put them back on the dark text color,
   and flip the count so the number stays light on a dark badge. */
.zk-open-bar.is-open .zk-open-bar-toggle.has-items .zk-open-bar-count {
  background: var(--color-text);
  color: var(--color-surface);
}

.zk-open-bar.is-open .zk-open-bar-toggle.has-items .zk-open-bar-pulse {
  background: var(--color-text);
}

.zk-open-bar-pulse {
  display: none;
  position: absolute;
  left: 0.55rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: var(--color-surface);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--color-text) 35%, transparent);
  animation: zk-open-ping 1.6s ease-out infinite;
}

.zk-open-bar-toggle.has-items .zk-open-bar-pulse {
  display: block;
}

.zk-open-bar-toggle.has-items .zk-open-bar-label {
  padding-left: 0.55rem;
}

@keyframes zk-open-ping {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--color-text) 35%, transparent); }
  70% { box-shadow: 0 0 0 0.55rem color-mix(in srgb, var(--color-text) 0%, transparent); }
  100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--color-text) 0%, transparent); }
}

.zk-open-bar-label {
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.7rem;
  color: inherit;
  line-height: 1.15;
}

.zk-open-bar-count {
  min-width: 1.2rem;
  height: 1.2rem;
  padding: 0 0.32rem;
  border-radius: 999px;
  background: var(--color-text);
  color: var(--color-surface);
  font-size: 0.68rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.zk-open-bar-toggle.has-items .zk-open-bar-count {
  background: var(--color-surface);
  color: var(--color-text);
}

.zk-open-bar-count.is-zero {
  background: color-mix(in srgb, var(--color-text) 16%, var(--color-surface));
  color: var(--color-text);
}

.zk-open-bar-chevron {
  flex-shrink: 0;
  width: 0.85rem;
  height: 0.85rem;
  opacity: 0.75;
  transition: transform 0.18s ease, opacity 0.15s ease;
}

.zk-open-bar.is-open .zk-open-bar-chevron {
  transform: rotate(180deg);
  opacity: 1;
}

.zk-open-bar-who {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 0.78rem;
  color: color-mix(in srgb, var(--color-text) 65%, transparent);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.zk-open-bar-ask,
.zk-open-bar-bc {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  box-sizing: border-box;
  height: 1.7rem;
  min-height: 1.7rem;
  padding: 0 0.65rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.12s ease;
}

.zk-open-bar-ask {
  color: var(--color-surface);
  background: var(--color-text);
  border-color: var(--color-text);
}

.zk-open-bar-ask:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.zk-open-bar-ask svg {
  flex-shrink: 0;
  width: 0.85rem;
  height: 0.85rem;
  opacity: 0.95;
}

.zk-open-bar-bc {
  color: var(--color-text) !important;
  text-decoration: none !important;
  background: transparent;
  border-color: color-mix(in srgb, var(--color-text) 18%, transparent);
}

.zk-open-bar-bc:hover {
  background: color-mix(in srgb, var(--color-text) 5%, transparent);
  border-color: var(--color-text);
}

.zk-open-bar-min {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.7rem;
  height: 1.7rem;
  margin-right: 0.1rem;
  padding: 0;
  border: 1px solid color-mix(in srgb, var(--color-text) 18%, transparent);
  background: transparent;
  color: color-mix(in srgb, var(--color-text) 65%, transparent);
  cursor: pointer;
  line-height: 0;
  order: -1;
}

.zk-open-bar-min:hover {
  color: var(--color-text);
  border-color: var(--color-text);
  background: color-mix(in srgb, var(--color-text) 5%, transparent);
}

.zk-open-bar-chip {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  color: var(--color-surface);
  background: var(--color-text);
  border: 1px solid color-mix(in srgb, var(--color-surface) 25%, transparent);
  padding: 0.35rem 0.45rem;
  min-height: 2rem;
  min-width: 2rem;
  cursor: pointer;
  box-shadow: 0 4px 14px rgb(0 0 0 / 0.18);
  line-height: 0;
  border-radius: 0;
}

.zk-open-bar.is-minimized .zk-open-bar-chip {
  display: inline-flex;
}

.zk-open-bar-chip:hover {
  border-color: var(--color-surface);
}

.zk-open-bar-chip-icon {
  flex-shrink: 0;
  width: 0.85rem;
  height: 0.85rem;
  color: var(--color-surface);
  display: block;
  opacity: 0.95;
}

.zk-open-bar-chip .zk-open-bar-count {
  min-width: 1.15rem;
  height: 1.15rem;
  padding: 0 0.28rem;
  font-size: 0.65rem;
  background: var(--color-surface);
  color: var(--color-text);
}

.zk-open-bar-drop {
  position: relative;
  flex-shrink: 0;
  z-index: 62;
}

.zk-open-panel {
  position: absolute;
  top: calc(100% + 0.4rem);
  left: 0;
  right: auto;
  width: min(22rem, calc(100vw - 1.5rem));
  max-height: min(70vh, 26rem);
  overflow-y: auto;
  margin: 0;
  border: 1px solid color-mix(in srgb, var(--color-text) 12%, transparent);
  background: var(--color-surface);
  color: var(--color-text);
  box-shadow: 0 12px 32px rgb(0 0 0 / 0.14);
  z-index: 63;
}

@media (min-width: 480px) {
  .zk-open-panel {
    min-width: 16rem;
  }
}

.zk-open-panel-inner {
  max-width: none;
  margin: 0;
  padding: 0.7rem 0.75rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.zk-open-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  padding: 0.9rem 1.1rem;
  border: 1px solid color-mix(in srgb, var(--color-text) 10%, transparent);
  background: color-mix(in srgb, var(--color-text) 2%, transparent);
  text-decoration: none !important;
  color: inherit !important;
  transition: border-color 160ms ease, background 160ms ease;
  box-sizing: border-box;
}

.zk-open-item:hover {
  border-color: var(--color-text);
  background: color-mix(in srgb, var(--color-text) 5%, transparent);
}

.zk-open-item-col {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text);
  line-height: 1.3;
}

.zk-open-item-title {
  display: block;
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.3;
  color: var(--color-text);
}

.zk-open-item-meta {
  display: block;
  font-size: 0.8rem;
  color: var(--color-text);
  line-height: 1.35;
  margin-top: 0.1rem;
}

.zk-open-empty {
  margin: 0;
  padding: 0.65rem 0.15rem 0.35rem;
  color: var(--color-text);
  font-size: 0.9rem;
  line-height: 1.45;
}

/* Push the site header below the expanded bar */
body.zk-has-open-bar:not(.zk-open-bar-minimized) > header {
  top: var(--zk-bc-bar-h, 2.4rem);
}

body.zk-has-open-bar.zk-open-bar-minimized > header {
  top: 0;
}

@media (max-width: 640px) {
  body.zk-has-open-bar:not(.zk-open-bar-minimized) {
    --zk-bc-bar-h: 2.35rem;
  }
  .zk-open-bar-inner {
    padding: 0.28rem 0.85rem;
    gap: 0.5rem;
  }
  .zk-open-bar-who {
    display: none;
  }
  .zk-open-panel {
    left: 0;
    width: min(20rem, calc(100vw - 1.25rem));
    max-width: calc(100vw - 1.25rem);
  }
  .zk-open-panel-inner {
    padding: 0.65rem 0.65rem 0.75rem;
  }
  .zk-open-bar.is-minimized {
    top: auto;
    bottom: 0.85rem;
    left: 0.85rem;
    right: auto;
  }
}
