/* FaithWorks Simple, Accessible, Mobile-First Stylesheet (Pass 8)
   Blue accent scoped strictly to .fw-surface so site-wide 508 Ministry warm chrome stays intact.
   Self-hosted SIL OFL 1.1 fonts only (Cormorant + Figtree).
   WCAG AA contrast (>= 4.5:1), >= 44px tap targets, visible focus rings, zero 390px overflow. */

.fw-surface {
  --fw-royal: #1749cc;
  --fw-blue: #1e5bff;
  --fw-soft-blue: #4c8dff;
  --fw-deep: #123a9a;
  --fw-navy: #0b2452;
  --fw-ice: #eef4ff;
  --fw-porcelain: #f7faff;
  --fw-white: #ffffff;
  --fw-border: #d0defa;
  --fw-border-strong: #8fb5ff;
  --fw-ink: #0f2140;
  --fw-muted: #334155;
  --fw-gold: #d4af37;
  --fw-gold-bg: #fef3c7;
  --fw-gold-ink: #6b2f06;
  --fw-green-bg: #ecfdf5;
  --fw-green-ink: #065f46;
  --fw-red-ink: #991b1b;
  --fw-serif: 'Cormorant', Georgia, 'Times New Roman', serif;
  --fw-sans: 'Figtree', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  font-family: var(--fw-sans);
  color: var(--fw-ink);
  background: var(--fw-porcelain);
  line-height: 1.6;
  overflow-x: clip;
}

.fw-surface *, .fw-surface *::before, .fw-surface *::after {
  box-sizing: border-box;
}

.fw-surface [hidden] {
  display: none !important;
}

/* Clear visible keyboard focus on every interactive control */
.fw-surface a:focus-visible,
.fw-surface button:focus-visible,
.fw-surface input:focus-visible,
.fw-surface select:focus-visible,
.fw-surface textarea:focus-visible,
.fw-surface summary:focus-visible {
  outline: 3px solid var(--fw-blue);
  outline-offset: 2px;
}

.fw-hero a:focus-visible,
.fw-hero button:focus-visible,
.fw-hero select:focus-visible {
  outline: 3px solid #fde68a;
  outline-offset: 2px;
}

.fw-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.fw-wrap {
  width: min(1040px, 100% - 32px);
  margin: 0 auto;
}

/* Compact, clear Hero (SPEC v3 two-line masthead, blue accent scoped here) */
.fw-hero {
  background-color: #0b2452;
  background-image: linear-gradient(145deg, #0b2452 0%, #103275 58%, #1749cc 100%);
  color: #ffffff;
  padding: 20px 0 28px;
  border-bottom: 3px solid var(--fw-gold);
}

.fw-hero-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  margin-bottom: 14px;
}

.fw-crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px;
  font-size: 14px;
  color: #e2e8f0;
}

.fw-crumb a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  min-width: 44px;
  padding: 0 8px;
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
  border-radius: 8px;
}

.fw-crumb a:hover {
  background: rgba(255, 255, 255, 0.12);
}

.fw-crumb span[aria-current="page"] {
  padding: 0 6px;
  font-weight: 700;
  color: #fde68a;
}

.fw-lang-box {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.fw-lang-box label {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
}

.fw-lang-select {
  background: #ffffff;
  color: var(--fw-ink);
  border: 2px solid #bfdbfe;
  border-radius: 10px;
  padding: 8px 12px;
  font-family: var(--fw-sans);
  font-size: 15px;
  font-weight: 700;
  min-height: 44px;
  min-width: 112px;
  cursor: pointer;
}

.fw-masthead {
  margin: 0 0 10px;
}

.fw-masthead-name {
  display: block;
  font-family: var(--fw-serif);
  font-size: clamp(38px, 6vw, 56px);
  font-weight: 700;
  line-height: 1.04;
  color: #ffffff;
}

.fw-masthead-sub {
  display: block;
  margin-top: 8px;
  font-family: var(--fw-sans);
  font-size: clamp(17px, 2.2vw, 20px);
  font-weight: 600;
  line-height: 1.4;
  color: #f1f5f9;
  max-width: 720px;
}

.fw-hero-intro {
  margin: 0 0 18px;
  max-width: 660px;
  font-size: 15.5px;
  line-height: 1.55;
  color: #e2e8f0;
}

.fw-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
}

.fw-hero-sublink {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 12px;
  color: #fde68a;
  font-size: 15px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  border-radius: 10px;
}

.fw-hero-sublink:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* Buttons - every single button >= 44px tall and wide */
.fw-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  min-width: 44px;
  padding: 11px 20px;
  border-radius: 12px;
  font-family: var(--fw-sans);
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.25;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.fw-btn-royal {
  background: var(--fw-royal);
  color: #ffffff;
  border-color: var(--fw-royal);
}

.fw-btn-royal:hover {
  background: var(--fw-deep);
  border-color: var(--fw-deep);
  color: #ffffff;
}

.fw-btn-white {
  background: #ffffff;
  color: var(--fw-navy);
  border-color: #ffffff;
}

.fw-btn-white:hover {
  background: var(--fw-ice);
  color: var(--fw-navy);
}

.fw-btn-outline {
  background: #ffffff;
  color: var(--fw-deep);
  border-color: var(--fw-border-strong);
}

.fw-btn-outline:hover {
  background: var(--fw-ice);
  border-color: var(--fw-royal);
}

.fw-btn-ghost-light {
  background-color: #103275;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.7);
}

.fw-btn-ghost-light:hover {
  background-color: #1749cc;
  color: #ffffff;
}

.fw-btn-gold {
  background: var(--fw-gold);
  color: var(--fw-navy);
  border-color: var(--fw-gold);
}

.fw-btn-gold:hover {
  background: #e5c24f;
  color: var(--fw-navy);
}

.fw-btn-quiet {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  min-width: 44px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1.5px solid var(--fw-border);
  background: var(--fw-white);
  color: var(--fw-muted);
  font-family: var(--fw-sans);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.fw-btn-quiet:hover {
  background: var(--fw-ice);
  border-color: var(--fw-border-strong);
  color: var(--fw-deep);
}

/* Status Notice */
.fw-notice {
  margin: 14px 0 0;
  padding: 14px 16px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  display: none;
}

.fw-notice.is-show {
  display: block;
}

.fw-notice--ok {
  background: var(--fw-green-bg);
  color: var(--fw-green-ink);
  border: 1.5px solid #6ee7b7;
}

.fw-notice--info {
  background: var(--fw-ice);
  color: var(--fw-deep);
  border: 1.5px solid var(--fw-border-strong);
}

.fw-notice--err {
  background: #fef2f2;
  color: var(--fw-red-ink);
  border: 1.5px solid #fecaca;
}

/* Simple 1-box Search + 4 Human Categories */
.fw-controls-sec {
  padding: 18px 0 6px;
}

.fw-controls-card {
  background: var(--fw-white);
  border: 1.5px solid var(--fw-border);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 4px 14px rgba(11, 36, 82, 0.05);
}

.fw-search-wrap {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.fw-field label {
  display: block;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--fw-ink);
  margin-bottom: 6px;
}

.fw-input, .fw-select, .fw-textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 14px;
  border: 1.5px solid #94a3b8;
  border-radius: 12px;
  font-family: var(--fw-sans);
  font-size: 16px;
  color: var(--fw-ink);
  background: #ffffff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.fw-input:focus, .fw-select:focus, .fw-textarea:focus {
  border-color: var(--fw-royal);
  box-shadow: 0 0 0 3px rgba(30, 91, 255, 0.18);
  outline: none;
}

.fw-textarea {
  min-height: 132px;
  resize: vertical;
  line-height: 1.55;
}

.fw-cat-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.fw-pill {
  min-height: 44px;
  min-width: 44px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--fw-border-strong);
  background: var(--fw-white);
  color: var(--fw-deep);
  font-family: var(--fw-sans);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.fw-pill:hover {
  background: var(--fw-ice);
  border-color: var(--fw-royal);
}

.fw-pill.is-active {
  background: var(--fw-royal);
  color: #ffffff;
  border-color: var(--fw-royal);
}

/* Board Grid */
.fw-board-sec {
  padding: 16px 0 36px;
}

.fw-board-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 14px;
}

.fw-board-meta h2 {
  font-family: var(--fw-serif);
  font-size: clamp(26px, 3.5vw, 34px);
  color: var(--fw-navy);
  margin: 0;
}

.fw-count-chip {
  background: var(--fw-ice);
  color: var(--fw-deep);
  border: 1px solid var(--fw-border-strong);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 14px;
  font-weight: 700;
}

.fw-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

/* Card - clean hierarchy: Title, Pay, Place, Who, ONE primary Apply/Contact, quiet secondary row */
.fw-card {
  background: var(--fw-white);
  border: 1.5px solid var(--fw-border);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 6px 20px rgba(11, 36, 82, 0.06);
}

.fw-card.is-sponsored {
  border: 2px solid var(--fw-soft-blue);
}

.fw-card-media {
  background: var(--fw-ice);
  border-bottom: 1px solid var(--fw-border);
}

.fw-card-img-btn {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.fw-card-img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.fw-card-body-wrap {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.fw-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.fw-badge-gold {
  display: inline-flex;
  align-items: center;
  background: var(--fw-gold-bg);
  color: var(--fw-gold-ink);
  border: 1px solid var(--fw-gold);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12.5px;
  font-weight: 800;
}

.fw-badge-blue {
  display: inline-flex;
  align-items: center;
  background: var(--fw-ice);
  color: var(--fw-deep);
  border: 1px solid var(--fw-border-strong);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12.5px;
  font-weight: 700;
}

.fw-card h3 {
  font-family: var(--fw-serif);
  font-size: clamp(22px, 2.2vw, 26px);
  line-height: 1.18;
  color: var(--fw-navy);
  margin: 0;
}

.fw-facts {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin: 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--fw-porcelain);
  border: 1px solid var(--fw-border);
  font-size: 14.5px;
  color: var(--fw-ink);
}

.fw-facts div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.fw-facts dt {
  font-weight: 700;
  color: var(--fw-deep);
}

.fw-facts dd {
  margin: 0;
  color: var(--fw-ink);
}

.fw-desc {
  font-size: 15px;
  line-height: 1.55;
  color: var(--fw-muted);
  margin: 0;
  white-space: pre-line;
}

.fw-more-text-btn {
  align-self: flex-start;
  min-height: 44px;
  padding: 6px 4px;
  border: 0;
  background: transparent;
  color: var(--fw-deep);
  font-family: var(--fw-sans);
  font-size: 14.5px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.fw-website-row {
  margin: 0;
  font-size: 14px;
  color: var(--fw-muted);
  word-break: break-word;
}

.fw-website-row a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--fw-deep);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.fw-reward-note {
  margin: 0;
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 13.5px;
  line-height: 1.45;
  background: var(--fw-ice);
  border: 1px solid var(--fw-border-strong);
  color: var(--fw-deep);
}

.fw-extra-photos {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.fw-extra-photos button {
  padding: 0;
  min-width: 64px;
  min-height: 44px;
  border: 1.5px solid var(--fw-border);
  border-radius: 10px;
  overflow: hidden;
  background: #ffffff;
  cursor: zoom-in;
  width: 84px;
}

.fw-extra-photos img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* Primary Action (ONE obvious button) */
.fw-primary-action {
  margin-top: auto;
  padding-top: 6px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.fw-primary-action .fw-btn-royal {
  width: 100%;
  min-height: 48px;
  font-size: 16px;
}

.fw-alt-apply {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  font-size: 14px;
  font-weight: 600;
  color: var(--fw-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Quiet Secondary Footer (Share + Create my job post + Create my sponsored post + Report) */
.fw-card-foot {
  padding-top: 10px;
  border-top: 1px solid var(--fw-border);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fw-secondary-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.fw-share-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px;
  border-radius: 10px;
  background: var(--fw-porcelain);
  border: 1px solid var(--fw-border);
}

.fw-create-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  align-items: center;
  padding-top: 2px;
}

.fw-quiet-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  min-width: 44px;
  padding: 4px 2px;
  font-size: 14px;
  font-weight: 600;
  color: var(--fw-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-family: var(--fw-sans);
}

.fw-quiet-link:hover {
  color: var(--fw-deep);
}

/* Community Standard & Safety (verbatim from master spec - never removed) */
.fw-info-sec {
  padding: 28px 0 44px;
  background: var(--fw-white);
  border-top: 1px solid var(--fw-border);
}

.fw-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.fw-info-box {
  background: var(--fw-porcelain);
  border: 1px solid var(--fw-border);
  border-radius: 16px;
  padding: 20px;
}

.fw-info-box h2 {
  font-family: var(--fw-serif);
  font-size: 26px;
  color: var(--fw-navy);
  margin: 0 0 8px;
}

.fw-info-box p,
.fw-info-box li {
  font-size: 15px;
  color: var(--fw-ink);
  line-height: 1.55;
}

.fw-info-box ul {
  margin: 8px 0 0;
  padding-left: 20px;
}

.fw-info-box li {
  margin-bottom: 8px;
}

.fw-info-box a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--fw-deep);
  font-weight: 700;
  text-decoration: underline;
}

/* Composer (/jobs/post/) - 3-tap flow with one collapsible "Add more" */
.fw-composer-sec {
  padding: 24px 0 48px;
}

.fw-composer-wrap {
  max-width: 680px;
  margin: 0 auto;
}

.fw-panel {
  background: var(--fw-white);
  border: 1.5px solid var(--fw-border);
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 8px 24px rgba(11, 36, 82, 0.06);
}

.fw-step-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}

.fw-step-strip li {
  background: var(--fw-ice);
  color: var(--fw-deep);
  border: 1px solid var(--fw-border-strong);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13.5px;
  font-weight: 700;
}

.fw-type-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 6px;
}

.fw-type-opt {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-height: 48px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 2px solid var(--fw-border);
  background: var(--fw-white);
  cursor: pointer;
}

.fw-type-opt.is-selected {
  border-color: var(--fw-royal);
  background: var(--fw-ice);
}

.fw-type-opt input[type="radio"] {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  flex: 0 0 auto;
  accent-color: var(--fw-royal);
}

.fw-type-opt strong {
  display: block;
  font-size: 15px;
  color: var(--fw-navy);
}

.fw-type-opt span {
  display: block;
  font-size: 13.5px;
  color: var(--fw-muted);
  line-height: 1.35;
}

.fw-form-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.fw-form-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.fw-help {
  font-size: 13.5px;
  color: var(--fw-muted);
  margin: 5px 0 0;
  line-height: 1.45;
}

.fw-check-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-height: 46px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1.5px solid var(--fw-border);
  background: var(--fw-porcelain);
  cursor: pointer;
  font-size: 14.5px;
  color: var(--fw-ink);
  line-height: 1.45;
}

.fw-check-row input[type="checkbox"] {
  width: 22px;
  height: 22px;
  margin-top: 1px;
  flex: 0 0 auto;
  accent-color: var(--fw-royal);
}

.fw-char-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.fw-char-count {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--fw-deep);
}

.fw-char-count.is-over {
  color: var(--fw-red-ink);
}

/* Single "Add more (optional)" disclosure for advanced controls */
.fw-more-details {
  border: 1.5px solid var(--fw-border-strong);
  border-radius: 14px;
  background: var(--fw-porcelain);
  overflow: hidden;
}

.fw-more-details > summary {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-height: 54px;
  padding: 14px 16px;
  cursor: pointer;
  background: var(--fw-ice);
  color: var(--fw-navy);
  font-weight: 700;
  font-size: 16px;
}

.fw-more-details > summary::-webkit-details-marker,
.fw-more-details > summary::marker {
  display: none;
  content: "";
}

.fw-more-summary-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.fw-more-chevron {
  font-size: 14px;
  font-weight: 700;
  color: var(--fw-deep);
}

.fw-more-details[open] .fw-more-chevron::after {
  content: "Hide";
}

.fw-more-details:not([open]) .fw-more-chevron::after {
  content: "Show";
}

.fw-more-summary-sub {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--fw-muted);
}

.fw-more-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  border-top: 1px solid var(--fw-border);
}

.fw-tool-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.fw-mic-active {
  background: #b91c1c !important;
  border-color: #b91c1c !important;
  color: #ffffff !important;
}

.fw-mode-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 6px;
}

.fw-upload-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.fw-upload-thumbs img {
  width: 84px;
  height: auto;
  border-radius: 8px;
  border: 1px solid var(--fw-border);
  object-fit: contain;
}

/* Accessible Modal / Lightbox (X, Esc, backdrop click, back-button close) */
.fw-lightbox {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(11, 26, 51, 0.86);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.fw-lightbox.is-open {
  display: flex;
}

.fw-lightbox-inner {
  position: relative;
  width: min(640px, 100%);
  max-height: 90vh;
  background: #ffffff;
  border-radius: 16px;
  padding: 18px;
  overflow: auto;
}

.fw-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.fw-modal-head h2 {
  font-family: var(--fw-serif);
  font-size: 26px;
  color: var(--fw-navy);
  margin: 0;
}

.fw-lightbox-close {
  min-width: 44px;
  min-height: 44px;
  border-radius: 999px;
  border: 2px solid var(--fw-border-strong);
  background: #ffffff;
  color: var(--fw-navy);
  font-size: 22px;
  font-weight: 800;
  cursor: pointer;
  flex: 0 0 auto;
}

.fw-lightbox img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
  object-fit: contain;
}

.fw-lightbox-cap {
  margin: 10px 2px 2px;
  font-size: 14.5px;
  color: var(--fw-ink);
}

/* Mobile 390px clean layout, zero horizontal overflow */
@media (max-width: 820px) {
  .fw-grid,
  .fw-info-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .fw-wrap {
    width: min(1040px, 100% - 24px);
  }
  .fw-type-grid,
  .fw-form-two {
    grid-template-columns: 1fr;
  }
  .fw-hero {
    padding: 16px 0 22px;
  }
  .fw-hero-actions .fw-btn {
    width: 100%;
  }
  .fw-panel {
    padding: 16px;
  }
  .fw-card-body-wrap {
    padding: 16px;
  }
  .fw-search-wrap {
    flex-direction: column;
  }
}

/* FaithWorks Sub-Navigation, Shift Matrix, Workspace & Talent Directory (2026-11-27) */
.fw-subnav {
  background: #ffffff;
  border-bottom: 1.5px solid var(--fw-border);
  box-shadow: 0 2px 8px rgba(11, 36, 82, 0.04);
  position: relative;
  z-index: 20;
}

.fw-subnav-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 10px 0;
  scrollbar-width: thin;
}

.fw-subnav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1.5px solid var(--fw-border);
  background: var(--fw-porcelain);
  color: var(--fw-navy);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  flex: 0 0 auto;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.fw-subnav-link:hover {
  background: var(--fw-ice);
  border-color: var(--fw-royal);
  color: var(--fw-deep);
}

.fw-subnav-link.is-active,
.fw-subnav-link[aria-current="page"] {
  background: var(--fw-royal);
  border-color: var(--fw-royal);
  color: #ffffff;
}

.fw-subnav-link--feat {
  border-color: var(--fw-gold);
  background: var(--fw-gold-bg);
  color: var(--fw-gold-ink);
}

.fw-subnav-link--feat:hover {
  background: #fde68a;
  color: var(--fw-navy);
}

.fw-sec {
  padding: 24px 0 40px;
}

.fw-sec-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
}

.fw-sec-head h2 {
  font-family: var(--fw-serif);
  font-size: clamp(26px, 3.2vw, 34px);
  color: var(--fw-navy);
  margin: 0;
}

.fw-video-shell {
  background: #0b1a33;
  border-radius: 18px;
  overflow: hidden;
  border: 2px solid var(--fw-gold);
  box-shadow: 0 18px 44px rgba(11, 36, 82, 0.22);
}

.fw-video-shell video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #071122;
}

.fw-video-cap {
  padding: 12px 18px;
  background: #0f2447;
  color: #f1f5f9;
  font-size: 14.5px;
  font-weight: 600;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.fw-shift-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.fw-shift-card {
  background: var(--fw-white);
  border: 1.5px solid var(--fw-border);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(11, 36, 82, 0.05);
}

.fw-shift-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.fw-shift-title {
  font-family: var(--fw-serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--fw-navy);
  margin: 0;
}

.fw-shift-times {
  background: var(--fw-porcelain);
  border: 1px solid var(--fw-border);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 14px;
  color: var(--fw-ink);
}

.fw-shift-local {
  color: var(--fw-royal);
  font-weight: 800;
}

.fw-matrix-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--fw-white);
  border: 1.5px solid var(--fw-border);
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 6px 20px rgba(11, 36, 82, 0.05);
}

.fw-matrix-table {
  width: 100%;
  min-width: 680px;
  border-collapse: separate;
  border-spacing: 8px;
}

.fw-matrix-table th {
  text-align: left;
  font-size: 13.5px;
  font-weight: 800;
  color: var(--fw-navy);
  padding: 6px 8px;
}

.fw-slot-btn {
  width: 100%;
  min-height: 60px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1.5px solid var(--fw-border-strong);
  background: var(--fw-porcelain);
  color: var(--fw-ink);
  font-family: var(--fw-sans);
  font-size: 13px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 3px;
  transition: background 0.14s ease, border-color 0.14s ease, transform 0.12s ease;
}

.fw-slot-btn:hover {
  background: var(--fw-ice);
  border-color: var(--fw-royal);
}

.fw-slot-btn.is-selected {
  background: var(--fw-royal);
  border-color: var(--fw-royal);
  color: #ffffff;
}

.fw-slot-btn.is-pending {
  background: #fffbeb;
  border-color: #f59e0b;
}

.fw-slot-btn.is-pending.is-selected {
  background: var(--fw-royal);
  border-color: var(--fw-royal);
  color: #ffffff;
}

.fw-slot-assigned {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border-radius: 12px;
  border: 1.5px solid #6ee7b7;
  background: var(--fw-green-bg);
  text-decoration: none;
  color: var(--fw-green-ink);
  font-size: 12.5px;
  font-weight: 700;
  min-height: 60px;
}

.fw-slot-assigned img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 15%;
  flex: 0 0 auto;
  border: 1.5px solid var(--fw-gold);
}

.fw-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.fw-tab-btn {
  min-height: 46px;
  padding: 10px 18px;
  border-radius: 12px;
  border: 1.5px solid var(--fw-border-strong);
  background: var(--fw-white);
  color: var(--fw-deep);
  font-family: var(--fw-sans);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.fw-tab-btn.is-active {
  background: var(--fw-royal);
  border-color: var(--fw-royal);
  color: #ffffff;
}

.fw-doc-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.fw-doc-card {
  background: var(--fw-white);
  border: 1.5px solid var(--fw-border);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fw-talent-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.fw-talent-card {
  background: var(--fw-white);
  border: 1.5px solid var(--fw-border);
  border-radius: 16px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 4px 16px rgba(11, 36, 82, 0.05);
}

.fw-talent-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.fw-talent-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 15%;
  border: 2px solid var(--fw-gold);
  flex: 0 0 auto;
}

.fw-invite-banner {
  background: #fef9e7;
  border: 2px solid var(--fw-gold);
  border-radius: 16px;
  padding: 18px;
  margin-bottom: 20px;
}

.fw-tier-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.fw-badge-green {
  display: inline-flex;
  align-items: center;
  background: var(--fw-green-bg);
  color: var(--fw-green-ink);
  border: 1px solid #6ee7b7;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12.5px;
  font-weight: 800;
}

@media (max-width: 860px) {
  .fw-shift-cards,
  .fw-doc-grid,
  .fw-talent-grid,
  .fw-tier-grid {
    grid-template-columns: 1fr;
  }
}
