/* 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;
  }
}

/* === FAITHWORKS FULL-WIDTH 3-COL + ULTRA-REAL HERO 2026-11-27 === */
.fw-surface .fw-wrap {
  width: 100%;
  max-width: 100%;
  padding-inline: clamp(16px, 2.4vw, 44px);
  margin: 0 auto;
}

/* 3 containers per row on desktop, 2 on tablet, 1 on mobile */
.fw-surface .fw-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

@media (max-width: 1079px) {
  .fw-surface .fw-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 699px) {
  .fw-surface .fw-grid {
    grid-template-columns: 1fr;
  }
}

/* Ultra-Realistic FaithWorks Hero with Glowing Dotted World Map + Real Corey Studio Portrait */
.fw-hero {
  background:
    linear-gradient(95deg, rgba(6, 22, 54, 0.94) 0%, rgba(8, 30, 74, 0.84) 44%, rgba(10, 42, 102, 0.36) 72%, rgba(7, 25, 62, 0.72) 100%),
    url('/jobs/assets/fw-hero-map-bg.jpg?v=20261127fwfull3') right center / cover no-repeat,
    linear-gradient(145deg, #06183a 0%, #0e3a7e 52%, #1657c9 100%) !important;
  color: #ffffff;
  padding: 26px 0 0 !important;
  overflow: hidden;
  border-bottom: 3px solid #d4af37 !important;
  position: relative;
}

.fw-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 44px;
  background: linear-gradient(180deg, rgba(6, 22, 54, 0) 0%, rgba(6, 22, 54, 0.42) 100%);
  pointer-events: none;
  z-index: 1;
}

.fw-hero > .fw-wrap {
  position: relative;
  z-index: 2;
}

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

.fw-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  align-items: end;
  gap: 24px;
}

.fw-hero-copy {
  padding-bottom: 50px;
}

.fw-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fde68a;
  margin: 0 0 10px;
}

.fw-eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: #d4af37;
}

.fw-hero-copy .fw-masthead {
  margin: 0 0 14px;
}

.fw-hero-copy .fw-masthead-name {
  display: block;
  font-family: 'Cormorant', Georgia, serif;
  font-size: clamp(46px, 5.2vw, 72px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.015em;
  color: #ffffff;
  text-shadow: 0 4px 20px rgba(3, 12, 30, 0.45);
}

.fw-hero-copy .fw-masthead-sub {
  display: block;
  margin-top: 10px;
  font-family: 'Figtree', system-ui, sans-serif;
  font-size: clamp(18px, 1.9vw, 23px);
  font-weight: 600;
  line-height: 1.38;
  max-width: 680px;
  color: #f1f5f9;
}

.fw-hero-copy .fw-hero-intro {
  max-width: 640px;
  font-size: 15.5px;
  line-height: 1.65;
  color: #dbeafe;
  margin: 0 0 24px;
}

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

.fw-hero-copy .fw-hero-actions .fw-btn {
  padding: 11px 18px;
  font-size: 14.5px;
  white-space: nowrap;
  border-radius: 12px;
  font-weight: 700;
}

.fw-btn-gold {
  background: #d4af37 !important;
  color: #0b2452 !important;
  border: 2px solid #d4af37 !important;
  box-shadow: 0 8px 20px rgba(212, 175, 55, 0.28);
}

.fw-btn-gold:hover {
  background: #e5c24f !important;
}

.fw-btn-ghost-light {
  background: rgba(255, 255, 255, 0.12) !important;
  color: #ffffff !important;
  border: 2px solid rgba(255, 255, 255, 0.45) !important;
}

.fw-btn-ghost-light:hover {
  background: rgba(255, 255, 255, 0.22) !important;
}

.fw-hero-stage {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  min-height: 390px;
  padding-top: 6px;
}

.fw-hero-portrait-wrap {
  position: relative;
  flex: 0 0 auto;
  width: min(365px, 64%);
  z-index: 2;
  display: flex;
  align-items: flex-end;
}

.fw-hero-portrait-wrap::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 10%;
  transform: translateX(-50%);
  width: 96%;
  height: 78%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(96, 165, 250, 0.34) 0%, rgba(37, 99, 235, 0.14) 48%, rgba(6, 22, 54, 0) 76%);
  filter: blur(18px);
  pointer-events: none;
  z-index: 0;
}

.fw-hero-portrait {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  max-height: 425px;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 18px 28px rgba(3, 11, 28, 0.55));
}

.fw-hero-sig {
  position: relative;
  z-index: 3;
  flex: 0 1 220px;
  min-width: 175px;
  align-self: center;
  margin-left: -14px;
  margin-bottom: 34px;
  text-align: center;
}

.fw-hero-sig-name {
  display: block;
  font-family: 'Cormorant', Georgia, serif;
  font-style: italic;
  font-weight: 600;
  font-size: clamp(30px, 2.7vw, 40px);
  line-height: 1.04;
  color: #f6dc8a;
  text-shadow: 0 2px 14px rgba(4, 14, 34, 0.65);
  white-space: nowrap;
}

.fw-hero-sig-cred {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #f8fafc;
}

.fw-hero-sig-url {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #cbd5e1;
}

.fw-hero-quote {
  margin: 14px auto 0;
  padding: 10px 14px;
  max-width: 225px;
  border-radius: 12px;
  background: rgba(7, 23, 56, 0.72);
  border: 1px solid rgba(212, 175, 55, 0.55);
  box-shadow: 0 10px 24px rgba(3, 10, 26, 0.35);
  font-family: 'Cormorant', Georgia, serif;
  font-size: 16.5px;
  font-weight: 600;
  line-height: 1.28;
  color: #ffffff;
}

/* Overlapping Sunlit-Cross New Church Partner Perk Card + 4-Column Trust Strip */
.fw-perk-sec {
  position: relative;
  z-index: 4;
  padding: 0 0 12px;
  margin-top: -22px;
}

.fw-perk-banner {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.96) 54%, rgba(255, 255, 255, 0.74) 76%, rgba(255, 255, 255, 0.18) 100%),
    url('/jobs/assets/fw-perk-cross-bg.jpg?v=20261127fwfull3') right center / cover no-repeat,
    #ffffff;
  border: 1.5px solid #dbe6fb;
  border-left: 6px solid #d4af37;
  border-radius: 18px;
  padding: 24px 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: 0 16px 36px rgba(10, 32, 74, 0.12);
}

.fw-perk-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: #fef3c7;
  border: 1px solid #d4af37;
  color: #78350f;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.fw-perk-banner .fw-perk-copy {
  max-width: 720px;
}

.fw-perk-banner .fw-perk-copy h2 {
  font-family: 'Cormorant', Georgia, serif;
  font-size: clamp(24px, 2.6vw, 34px);
  font-weight: 700;
  line-height: 1.15;
  color: #0b2452;
  margin: 0 0 6px;
}

.fw-perk-banner .fw-perk-copy p {
  margin: 0;
  font-size: 15px;
  color: #334155;
}

.fw-trust-strip {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: linear-gradient(180deg, #0d2a5c 0%, #091d42 100%);
  border: 1px solid rgba(212, 175, 55, 0.45);
  border-top: 2px solid #d4af37;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(8, 25, 58, 0.16);
}

.fw-trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 18px;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.fw-trust-item:last-child {
  border-right: 0;
}

.fw-trust-ic {
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.42);
  color: #f4d36d;
}

.fw-trust-ic svg {
  width: 21px;
  height: 21px;
  display: block;
}

.fw-trust-copy strong {
  display: block;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #f6dc8a;
  line-height: 1.2;
}

.fw-trust-copy span {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  color: #e2e8f0;
  line-height: 1.25;
}

@media (max-width: 980px) {
  .fw-hero-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .fw-hero-copy {
    padding-bottom: 12px;
  }
  .fw-hero-stage {
    min-height: 0;
    justify-content: center;
    padding-top: 8px;
  }
  .fw-hero-portrait-wrap {
    width: min(260px, 56%);
  }
  .fw-hero-sig {
    margin-left: -6px;
    margin-bottom: 18px;
  }
  .fw-perk-sec {
    margin-top: 14px;
  }
  .fw-trust-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .fw-trust-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }
  .fw-trust-item:nth-child(2n) {
    border-right: 0;
  }
}

@media (max-width: 560px) {
  .fw-hero-stage {
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding-bottom: 22px;
  }
  .fw-hero-portrait-wrap {
    width: min(255px, 74%);
  }
  .fw-hero-portrait {
    -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 82%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 0%, #000 82%, transparent 100%);
  }
  .fw-hero-sig {
    margin: 0;
    min-width: 0;
    width: 100%;
  }
  .fw-hero-quote {
    max-width: 280px;
  }
  .fw-perk-banner {
    background: #ffffff;
    padding: 18px;
  }
  .fw-trust-strip {
    grid-template-columns: 1fr;
  }
  .fw-trust-item {
    border-right: 0;
  }
}

/* === PASS10-IMG-CAPTION:start === */
.fw-card-media{margin:0;display:flex;flex-direction:column;background:#f4f7fb}
.fw-img-caption{margin:0;padding:10px 14px;font-size:13px;line-height:1.45;color:#1e3a5f;background:#eef4fc;border-top:1px solid #d5e3f7;font-weight:500}
.fw-extra-photos{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:10px;margin:12px 0}
.fw-extra-photo-fig{margin:0;border:1px solid #d5e3f7;border-radius:10px;overflow:hidden;background:#f8fbff}
.fw-extra-photo-fig button{display:block;width:100%;padding:0;border:0;background:transparent;cursor:pointer}
.fw-extra-photo-fig img{display:block;width:100%;height:auto;max-height:200px;object-fit:contain;background:#f4f7fb}
.fw-photo-caption{margin:0;padding:7px 10px;font-size:12px;line-height:1.4;color:#1e3a5f;background:#eef4fc;border-top:1px solid #d5e3f7}
.fw-photo-cap-row{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-top:8px}
.fw-photo-cap-row .fw-input{flex:1 1 240px}
#fw-result-img-cap{margin:8px 0 0;padding:10px 12px;font-size:13.5px;line-height:1.45;color:#1e3a5f;background:#eef4fc;border:1px solid #d5e3f7;border-radius:10px}
/* === PASS10-IMG-CAPTION:end === */
