/* ==================== BEGIN a43-pass2.css ====================
   A43 THREE PAGES, Design pass 2 -- 261004.
   Loads AFTER styles.css. ADDITIVE ONLY: no existing rule is edited or
   overridden for any element that already exists on the live site.
   Every selector below targets a NEW class (.bb-hx, .bb-scroll,
   .bb-journey, .a43-contact, .toc-*, .jr-*) or a new combination that
   only matches new markup. Header mark, menu button, side menu, X with
   underline, arrows and the light default are untouched.
   ============================================================= */

/* ---- HEADER: STORY · JOURNEY · Contact us, same link style as STORY ---- */
header.topbar .header-right { display: flex; align-items: center; gap: 14px; }
button.header-story-link {
  background: none; border: 0; cursor: pointer; font-family: inherit;
  font-weight: 700; font-size: 0.78rem; letter-spacing: 0.04em; line-height: inherit;
  color: #fff; padding-block: 0; padding-inline: 4px;
}
.header-story-link[aria-current="page"] { opacity: 1; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--accent); }
@media (max-width: 720px) {
  /* Phone: STORY and JOURNEY stack in the right column so the header keeps
     its height. Contact us stays reachable from the menu (Contact / FAQ)
     and the footer. */
  header.topbar .header-right { flex-direction: column; align-items: flex-end; gap: 0; }
  header.topbar .header-right .header-story-link { min-height: 24px; display: inline-flex; align-items: center; }
  header.topbar .header-right .a43-contact { display: none; }
}

/* ---- BOTTOM BAR: four items, new CSS marks ---- */
/* Mission Faith: the hx-logo, unchanged, at mark size. */
.bb-hx { color: var(--primary); }
.bb-hx .hx-logo { width: 100%; height: 100%; }
.bb-label .fa8th { color: #6B5300; }              /* same dark gold as .hashtags .fa8th on light */
body.force-dark .bb-label .fa8th,
html[data-theme="dark"] body .bb-label .fa8th { color: var(--accent); }

/* STORY: a two-roller scroll, and JOURNEY: a signpost. Both are inline SVG drawn for this site,
   thin lines in currentColor at the same 17px size as the other bottom-bar marks.
   The signpost mirrors in right-to-left, so its arrows still point to the end side. */
.bb-scroll, .bb-journey { position: relative; }
.bb-scroll svg, .bb-journey svg { width: 100%; height: 100%; display: block; overflow: visible; }
/* SUPERSEDED 261015 (A44 step 5j, RTL pass): the design handoff says the JOURNEY signpost does NOT flip
   in right-to-left (a signpost, like a logo, keeps its drawing). The old bar icon is also gone. Disabled:
html[dir="rtl"] .bb-journey svg { transform: scaleX(-1); } */

/* ---- CONTENTS RAIL (desktop) + CONTENTS BUTTON/PANEL (phone, tablet) ----
   Rows are the menu's own books (.signin-btn.shelf-row), standing on the
   menu's own .shelf-board. The current section takes the gold spine. */
.toc-rail { display: none; }
.toc-label {
  margin: 0 0 10px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--secondary);
}
.toc-list { display: block; }
a.toc-row { text-decoration: none; }
a.toc-row:hover, a.toc-row:focus-visible { text-decoration: none; }
.toc-row .toc-arrow { color: var(--secondary); }
.toc-bk1 { width: 94% !important; margin-inline-start: 4px !important; }
.toc-bk2 { width: 99% !important; margin-inline-start: 0 !important; }
.toc-bk3 { width: 91% !important; margin-inline-start: 7px !important; }
.toc-bk4 { width: 97% !important; margin-inline-start: 2px !important; }
.toc-bk5 { width: 93% !important; margin-inline-start: 6px !important; }
.toc-bk6 { width: 90% !important; margin-inline-start: 3px !important; }
.toc-bk7 { width: 96% !important; margin-inline-start: 1px !important; }
.toc-bk8 { width: 92% !important; margin-inline-start: 5px !important; }

@media (min-width: 1180px) {
  .toc-rail {
    display: block; position: fixed; z-index: 30;
    top: 112px; width: 208px;
    inset-inline-start: max(16px, calc(50% - 340px - 248px));
    max-height: calc(100vh - 200px); overflow-y: auto; padding: 4px 4px 4px 0;
  }
  .toc-rail .signin-btn {
    min-height: 40px; padding: 9px 12px 9px 18px; font-size: 0.86rem; margin-bottom: 7px; gap: 8px;
  }
  /* SUPERSEDED 261015 (A44 step 5f): the Contents pill (.toc-open; only made now on a page without a page map) replaced by the design handoff's page map button (#hm-map); its markup is gone from every page, so these rules match nothing. Kept, not deleted. */
  .toc-open { display: none !important; }
}

.toc-open {
  position: fixed; z-index: 60; inset-inline-end: 12px; bottom: 156px;
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 16px;
  border: 1px solid var(--border); border-radius: 999px;
  background: var(--bg); color: var(--primary);
  font-family: inherit; font-weight: 700; font-size: 0.85rem; letter-spacing: 0.02em;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15); cursor: pointer;
}
.toc-open:hover { background: color-mix(in srgb, var(--primary) 8%, var(--bg)); }
.toc-open:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.toc-mark { display: inline-flex; flex-direction: column; gap: 3px; }
.toc-mark i { display: block; height: 2px; border-radius: 1px; background: currentColor; }
.toc-mark i:nth-child(1) { width: 14px; }
.toc-mark i:nth-child(2) { width: 10px; }
.toc-mark i:nth-child(3) { width: 12px; }
.toc-panel .toc-label { margin-top: 0; }
[data-toc] { scroll-margin-top: 84px; }

/* ---- JOURNEY page: Silas section-04 parts, built on existing classes ---- */
.jr-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.jr-band { padding-block: 40px; }
.jr-band:first-child { padding-top: 8px; }
.jr-band > h1:first-child, .jr-band > h2:first-child:not(.jr-sr), .jr-band > .jr-sr + * { margin-top: 0; }
.jr-tint {
  background: color-mix(in srgb, var(--secondary) 7%, var(--bg));
  box-shadow: 0 0 0 100vmax color-mix(in srgb, var(--secondary) 7%, var(--bg));
  clip-path: inset(0 -100vmax);
}
.jr-actions { justify-content: flex-start; margin-top: 20px; }
.jr-actions-left { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 20px; }
.jr-band .cta-pill { cursor: pointer; font-family: inherit; }
.jr-ghost {
  display: inline-flex; align-items: center; min-height: 44px; box-sizing: border-box;
  padding: 0 18px; border-radius: 999px; background: transparent;
  font-family: inherit; font-size: 0.95rem; cursor: pointer; text-decoration: none;
}
.jr-ghost:hover { background: color-mix(in srgb, var(--primary) 8%, transparent); }

.jr-stats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.jr-stats li { display: flex; flex-direction: column; gap: 2px; font-size: 0.95rem; color: var(--text); }
.jr-stats strong { font-size: 2.25rem; line-height: 1.1; color: var(--primary); }
@media (max-width: 480px) { .jr-stats strong { font-size: 1.75rem; } .jr-stats li { font-size: 0.85rem; } }

.jr-filters { margin: 0 0 20px; }
/* Item row: left to right, like books on a shelf, on every screen. */
.jr-grid {
  list-style: none; margin: 0; padding: 4px 2px 14px; display: flex; gap: 16px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin;
}
.jr-grid:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.jr-card { flex: 0 0 calc((100% - 32px) / 3); min-width: 0; scroll-snap-align: start; }
@media (max-width: 639px) { .jr-card { flex-basis: calc((100% - 16px) / 2.3); } }
@media (max-width: 419px) { .jr-card { flex-basis: 72%; } }
.jr-slider .video-nav[hidden] { display: none; }
.jr-slider .video-nav { top: 24%; }

/* Front page Watch row: same left-to-right shelf on phones (was a vertical stack). */
@media (max-width: 719px) {
  .video-gallery .video-track { flex-direction: row; align-items: stretch; overflow-x: auto; scroll-snap-type: x mandatory; }
  .video-gallery .video-card { flex: 0 0 78%; width: auto; max-width: none; }  /* A44 261015: width overridden in styles.css (gallery option (c): Shorts two per screen, long 88%) */
  .video-gallery .video-slider .video-nav:not([hidden]) { display: block !important; }
  .video-prev { left: -10px; } .video-next { right: -10px; }
}
.jr-card[hidden] { display: none; }
.jr-card > a {
  display: flex; flex-direction: column; height: 100%; box-sizing: border-box;
  background: var(--card-bg); border: 1px solid var(--border); border-radius: 8px; overflow: hidden;
  color: var(--text); text-decoration: none; transition: box-shadow .15s ease, transform .15s ease;
}
.jr-card > a:hover { box-shadow: 0 6px 18px rgba(0,0,0,0.14); transform: translateY(-1px); }
.jr-card > a:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.jr-pic { display: block; aspect-ratio: 4 / 3; background: var(--brand-solid); }
.jr-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.jr-pic-letter { display: flex; align-items: flex-end; padding: 12px; box-sizing: border-box; border-bottom: 3px solid var(--accent); }
.jr-no { color: var(--on-brand); font-size: 2rem; font-weight: 700; line-height: 1; letter-spacing: 0.02em; }
.jr-meta { display: block; padding: 10px 12px 0; font-size: 0.75rem; color: var(--secondary); }
.jr-type { font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
.jr-title {
  display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  padding: 4px 12px 14px; font-weight: 600; font-size: 0.92rem; line-height: 1.35; color: var(--primary);
}
@media (max-width: 480px) { .jr-grid { gap: 12px; } .jr-title { font-size: 0.85rem; } }
.jr-more { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 24px; }

.jr-steps { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.jr-steps li { background: var(--card-bg); border: 1px solid var(--border); border-radius: 8px; padding: 14px; }
.jr-step-no { display: block; font-size: 1.5rem; font-weight: 700; color: var(--secondary); margin-bottom: 4px; }
@media (max-width: 640px) { .jr-steps { grid-template-columns: 1fr; } }
.jr-live { font-size: 0.85rem; color: var(--secondary); }

.jr-faq { border-bottom: 1px solid var(--border); }
.jr-faq:first-of-type { border-top: 1px solid var(--border); }
.jr-faq > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; cursor: pointer; min-height: 44px; box-sizing: border-box; }
.jr-faq > summary::-webkit-details-marker { display: none; }
.jr-faq > summary h3 { margin: 0; font-size: 1rem; color: var(--primary); }
.jr-faq > summary .chevron { color: var(--accent); transition: transform .2s ease; }
.jr-faq[open] > summary .chevron { transform: rotate(180deg); }
.jr-faq > p { margin: 0 0 16px; }
.jr-cta h2 { margin-top: 0; }
@media (prefers-reduced-motion: reduce) {
  .jr-card > a, .jr-faq > summary .chevron { transition: none; }
  .jr-card > a:hover { transform: none; }
}
/* ===================== END a43-pass2.css ===================== */

/* ---- A43 PASS 3 ---------------------------------------------------------
   1. Long videos on desktop: a long card is as wide as two short cards.
      Phones keep one card size. JOURNEY row: .jr-card.jr-long. Watch row: data-kind="long".
   2. Shrunk header keeps STORY and JOURNEY visible (styles.css had hidden them).
   Side menu: slides from the left (styles.css, inset-inline-start), mirrored in RTL below. */
@media (min-width: 900px) {
  .jr-card.jr-long { flex-basis: calc((100% - 32px) * 2 / 3); }
  /* SUPERSEDED 261015 (A44 step 5d, gallery option (c), Christian 261012/261014): a long card was
     2 slots wide AND twice as tall as a Short. Now 3 slots at the same height, rule in styles.css.
     Disabled, not deleted (this file loads after styles.css and would win):
  .video-gallery .video-card[data-kind="long"] { flex: 0 0 calc((100% - 40px) * 2 / 3); } */
}
header.topbar.shrunk .header-story-link { display: revert; }
html[dir="rtl"] .side-panel { box-shadow: -4px 0 20px rgba(0,0,0,0.3); }
@media (max-width: 720px) { header.topbar .header-right .a43-contact, header.topbar.shrunk .header-right .a43-contact { display: none; } }

/* ---- A46 (261025, V4 section 9): desktop contents rail can shrink to one button. Phone keeps the Contents button. ---- */
.toc-min { display: none; }
@media (min-width: 1180px) {
  .toc-min { display: inline-flex; align-items: center; justify-content: center; inline-size: 44px; block-size: 44px; margin: 0 0 8px; padding: 0;
    border: 2px solid var(--border, currentColor); border-radius: 10px; background: var(--card-bg, transparent); color: var(--primary, inherit); font-size: 1rem; cursor: pointer; }
  .toc-min:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
  .toc-rail.is-min > :not(.toc-min) { display: none; }
  .toc-rail.is-min { overflow: visible; }
  body.has-toc-rail .hm-map-slot { display: none; }       /* the rail is the contents control on desktop */
}
