/* =====================================================
   SCDC RGM JOB PAGE — V19 BUILD
   ===================================================== */

/* Fix #5: Accessible gold for small text (WCAG AA) */
:root { --gold-accessible: #B8A44C; }

/* Header-actions — only apply custom styles above mobile breakpoint */
@media (min-width: 1201px) {
  .header-actions { display: flex; flex-direction: column; gap: 6px; width: 100%; align-items: flex-end; }
}
.action-row-top { display: flex; gap: 6px; width: 100%; align-items: center; }
.search-btn {
  width: 32px; height: 32px; border-radius: 4px; border: 1px solid var(--gold-primary);
  background: transparent; color: var(--gold-luxe); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.3s ease; font-size: 14px; text-decoration: none;
}
.search-btn:hover { background: var(--gold-primary); color: #FFFFFF; }
[data-theme="light"] .search-btn { border-color: var(--gold-primary); color: var(--gold-primary); }
[data-theme="light"] .search-btn:hover { background: var(--gold-primary); color: #FFFFFF; }
.btn-login {
  flex: 1.5; display: flex; align-items: center; justify-content: center; height: 28px; min-width: 100px;
  font-family: var(--font-head); font-size: 8px; font-weight: 200; letter-spacing: 0.3em;
  line-height: 20px; text-decoration: none; border: 1px solid var(--gold-primary); border-radius: 4px;
  background-color: var(--login-bg); color: var(--login-text); transition: all 0.3s ease; white-space: nowrap;
}
.btn-login:hover { background-color: var(--gold-primary); color: #FFFFFF; border-color: var(--gold-luxe); }

/* Search Overlay — exact from proof-menu.css */
.search-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: var(--header-height, 100px);
  background: var(--bg-page); z-index: 10002; display: none;
  align-items: center; justify-content: center; padding: 0 5%;
  border-bottom: 2px solid var(--gold-primary); transition: all 0.3s ease;
}
.search-overlay.active { display: flex; }
.search-overlay__inner { display: flex; align-items: center; gap: 15px; width: 100%; max-width: 800px; }
.search-overlay__input {
  flex: 1; height: 50px; border: 2px solid var(--gold-primary); border-radius: 4px;
  background: transparent; color: var(--text-main); font-size: 1rem;
  padding: 0 20px; font-family: var(--font-body); outline: none; transition: all 0.3s ease;
}
.search-overlay__input::placeholder { color: var(--text-sub); }
.search-overlay__input:focus { border-color: var(--gold-luxe); box-shadow: 0 0 10px rgba(141,123,50,0.3); }
.search-overlay__submit {
  height: 50px; padding: 0 30px; border: none; border-radius: 4px;
  background: var(--gold-primary); color: #FFFFFF; font-weight: 600;
  font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.125em;
  cursor: pointer; transition: all 0.3s ease; font-family: var(--font-body);
}
.search-overlay__submit:hover { background: var(--gold-luxe); }
.search-overlay__close {
  width: 40px; height: 40px; border: 1px solid var(--text-sub); border-radius: 50%;
  background: transparent; color: var(--text-main); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; transition: all 0.3s ease;
}
.search-overlay__close:hover { border-color: var(--gold-primary); color: var(--gold-primary); }
[data-theme="light"] .search-overlay { background: var(--bg-page); }
[data-theme="light"] .search-overlay__input { color: var(--text-main); border-color: var(--gold-primary); }
[data-theme="light"] .search-overlay__close { color: var(--text-main); border-color: var(--text-sub); }

/* Fix #1: Nav hover on transparent header */
/* Fix #6: Header fades on footer reveal */
.scdc-header { transition: opacity 0.4s ease; }
[data-theme="dark"] .scdc-header:not(.scrolled) .nav-link:hover { color: var(--gold-luxe); }
[data-theme="light"] .scdc-header:not(.scrolled) .nav-link:hover { color: var(--gold-luxe); text-shadow: none; }
/* Fix #8: More space between nav items */
.scdc-nav { gap: 3vw !important; }

/* Mobile nav */
.mobile-nav-panel {
  display: none; position: fixed; top: var(--header-height); left: 0; right: 0;
  background: var(--bg-header); backdrop-filter: blur(20px);
  border-bottom: 2px solid var(--gold-primary);
  padding: 12px 20px; z-index: 9999; flex-direction: column;
}
.mobile-nav-panel.open { display: flex; }
.mobile-nav-link {
  font-family: var(--font-head); font-size: 11px; font-weight: 200;
  text-transform: uppercase; letter-spacing: 0.2em;
  color: var(--text-main); padding: 12px 0;
  border-bottom: 1px solid rgba(141,123,50,0.15);
  text-decoration: none; transition: color 0.2s;
}
.mobile-nav-link:hover { color: var(--gold-luxe); }

/* ===== SHARE STICKY — Fix #1: positioned below hero, hides on footer reveal ===== */
.share-sticky {
  position: fixed; left: 20px; top: calc(62vh + 30px);
  display: flex; flex-direction: column; gap: 8px; z-index: 100;
  opacity: 1; visibility: visible; transition: all 0.4s;
}
.share-sticky.footer-hidden { opacity: 0; visibility: hidden; }
.share-sticky .share-btn {
  width: 28px; height: 28px; border-radius: 50%;
  position: relative; border: 1px solid transparent;
  background-image:
    linear-gradient(var(--bg-page), var(--bg-page)),
    conic-gradient(from var(--angle), #544615 0%, #C1AC51 25%, #FFFFFF 30%, #C1AC51 35%, #544615 100%) !important;
  background-origin: padding-box, border-box !important;
  background-clip: padding-box, border-box !important;
  animation: rotateBorder 4s linear infinite;
  color: var(--gold-luxe);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; transition: all 0.3s; text-decoration: none;
  box-shadow: 0 2px 10px rgba(0,0,0,0.25);
}
.share-sticky .share-btn:hover {
  background-image:
    linear-gradient(135deg, #8D7B32 0%, #544615 30%, #C1AC51 50%, #544615 70%, #8D7B32 100%),
    conic-gradient(from var(--angle), #544615 0%, #C1AC51 25%, #FFFFFF 30%, #C1AC51 35%, #544615 100%) !important;
  color: #FFFFFF; transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(141,123,50,0.4);
}
@media (max-width: 1039px) { .share-sticky { display: none !important; } }

/* ===== HERO — Fix #6: height matches article template ===== */
.job-hero {
  position: relative; height: 62vh; min-height: 440px;
  display: flex; align-items: stretch; overflow: hidden;
  padding-top: var(--header-height, 90px);
  padding-bottom: 60px;
  box-sizing: border-box;
}
.job-hero__bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center center; z-index: 0;
}
.job-hero__overlay {
  position: absolute; inset: 0; z-index: 1;
  background: transparent;
}
.job-hero__content {
  position: relative; z-index: 2; text-align: center;
  padding: 0 20px; width: 100%; max-width: 100%;
  display: flex; flex-direction: column; align-items: center;
  justify-content: space-evenly;
  flex: 1;
}
/* Fix #2: Badge — smaller, more space from header */
.job-hero__badge {
  font-family: var(--font-head); font-size: clamp(12px, 1.5vw, 16px); font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.3em;
  color: #FFFFFF; display: inline-flex; align-items: center;
  padding: 6px 28px; height: 40px;
  border: 1px solid transparent; border-radius: 4px;
  background-image: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)),
    conic-gradient(from var(--angle), #544615 0%, #C1AC51 25%, #FFFFFF 30%, #C1AC51 35%, #544615 100%);
  background-origin: padding-box, border-box; background-clip: padding-box, border-box;
  animation: rotateBorder 4s linear infinite; margin: 0;
}
/* Fix #2: Title fits on screen, no nowrap. Fix #4: More bottom space */
.job-hero__title {
  font-family: var(--font-head); font-size: clamp(0.85rem, 4.2vw, 3.2rem);
  font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em;
  margin: 0; line-height: 1.15; white-space: nowrap;
  background: linear-gradient(90deg, #8D7B32 0%, #FBF5B7 50%, #8D7B32 100%);
  background-size: 200% auto;
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  animation: liquidFlow 5s linear infinite;
}
/* Fix #3: Location — 2 sizes smaller, no rule line underneath */
.job-hero__location {
  font-family: var(--font-head); font-size: clamp(1.4rem, 3vw, 2.4rem);
  font-weight: 700; text-transform: uppercase; letter-spacing: 0.3em;
  color: #FFFFFF; margin: 0;
  -webkit-text-fill-color: #FFFFFF; background: none;
}
.job-hero__rule { display: none; }
/* Fix #3: AKA titles #FFFFFF, 2.2 line-height */
.job-hero__aka {
  font-family: var(--font-head); font-size: 10px; font-weight: 200;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: #FFFFFF; margin: 0; line-height: 2.2;
}

/* ===== Fix #7: TAGLINE SECTION overlaps hero like article title card ===== */
/* Fix #6: Same width as article-layout (1280px) */
.tagline-block {
  position: relative; max-width: 1280px;
  margin: -60px auto 0; padding: 0 40px; z-index: 5;
}
.tagline-bar {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px;
  padding: 20px 16px; background: var(--bg-page);
  border: 1px solid rgba(141,123,50,0.2);
  box-shadow: 0 -15px 50px rgba(0,0,0,0.25);
  position: relative;
}
.tagline-bar::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold-primary), var(--gold-luxe), var(--gold-primary), transparent);
}
.tagline-pill {
  padding: 0.4rem 0.8rem;
  position: relative;
  border: 1px solid transparent; border-radius: 4px;
  background-image:
    linear-gradient(var(--bg-page), var(--bg-page)),
    conic-gradient(from var(--angle), #544615 0%, #C1AC51 25%, #FFFFFF 30%, #C1AC51 35%, #544615 100%) !important;
  background-origin: padding-box, border-box !important;
  background-clip: padding-box, border-box !important;
  animation: rotateBorder 4s linear infinite;
  color: var(--text-main);
  font-family: var(--font-body); font-size: 0.8rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.1em;
  transition: all 0.3s ease;
  white-space: nowrap;
  display: inline-flex; align-items: center; justify-content: center;
  height: 2rem; cursor: default;
}
.tagline-pill:hover {
  background-image:
    linear-gradient(135deg, #8D7B32 0%, #544615 30%, #C1AC51 50%, #544615 70%, #8D7B32 100%),
    conic-gradient(from var(--angle), #544615 0%, #C1AC51 25%, #FFFFFF 30%, #C1AC51 35%, #544615 100%) !important;
  color: #FFFFFF;
  box-shadow: 0 0 20px rgba(141,123,50,0.3);
}
[data-theme="light"] .tagline-bar { background: #FFFFFF; border-color: rgba(141,123,50,0.2); }
[data-theme="light"] .tagline-pill { color: #000000; }

/* Fix #6: Match article-layout width */
.job-layout {
  max-width: 1280px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr; gap: 0;
  padding: 45px 40px 80px;
}
.job-content { min-width: 0; }
.job-sidebar { display: none; }

/* City section — Fix #10: post-h2 style with gold divider */
.city-title-section { margin-bottom: 28px; }
.post-h2 {
  font-family: 'Playfair Display', Georgia, serif; font-size: 1.55rem; font-weight: 700;
  color: var(--text-main); margin: 0 0 20px; text-align: left; line-height: 1.3;
}
.post-h2::after {
  content: ''; display: block; width: 80px; height: 2px;
  background: linear-gradient(90deg, var(--gold-luxe), transparent);
  margin: 14px 0 0;
}
.city-intro {
  font-family: var(--font-body); font-size: 17px; color: var(--text-sub);
  line-height: 1.9; margin: 0 0 22px;
}
.city-intro::first-letter {
  font-family: 'Playfair Display', serif;
  float: left; font-size: 4.2rem; line-height: 0.8;
  padding: 6px 14px 0 0; color: var(--gold-luxe); font-weight: 700;
}

/* Body text — blog .post-body */
.job-summary, .body-text {
  font-family: var(--font-body); font-size: 17px; line-height: 1.9;
  color: var(--text-sub); margin: 0 0 22px;
}
.job-summary { padding-bottom: 32px; border-bottom: 1px solid rgba(141,123,50,0.15); margin-bottom: 36px; }
.body-text strong { color: var(--text-main); }
.body-text a { color: var(--gold-luxe); text-decoration: none; }
.body-text a:hover { text-decoration: underline; }

/* Inline images (RGM promo + office) */
.inline-image {
  width: 100%; height: auto; display: block;
  border: 1px solid rgba(141,123,50,0.2); border-radius: 4px;
  margin: 28px 0;
}

/* Fix #4: Left justified section headings — with extra vertical breathing room */
.section-heading {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.55rem; font-weight: 700;
  color: var(--text-main);
  margin: 72px 0 24px; text-align: left; line-height: 1.3;
}
.section-heading::after {
  content: ''; display: block; width: 80px; height: 2px;
  background: linear-gradient(90deg, var(--gold-luxe), transparent);
  margin: 14px 0 0;
}

/* Content lists */
.content-list { list-style: none; padding: 0; }
.content-list li {
  position: relative; padding: 8px 0 8px 24px;
  line-height: 1.9; color: var(--text-sub);
  border-bottom: 1px solid rgba(141,123,50,0.06); font-size: 17px;
}
.content-list li:last-child { border-bottom: none; }
.content-list li::before { content: '◆'; position: absolute; left: 0; top: 12px; color: var(--gold-luxe); font-size: 6px; }
.content-list li strong { color: var(--text-main); }
.content-list a { color: var(--gold-luxe); text-decoration: none; }
.content-list a:hover { text-decoration: underline; }
.thrives-list li::before { content: '✓'; font-size: 14px; top: 10px; color: #66BB6A; font-weight: 700; }
.disqualifier-list li::before { content: '✕'; font-size: 13px; top: 10px; color: #e53935; font-weight: 700; }

/* CTA — no underlines, extra vertical breathing room */
.cta-wrap { text-align: center; margin: 44px 0; }
.cta-wrap a { text-decoration: none !important; }
.btn-gold { padding: 14px 40px; }

/* Growth Path */
.growth-path-box {
  border: 1px solid rgba(141,123,50,0.2); border-radius: 6px;
  padding: 24px; margin: 16px 0; background: rgba(141,123,50,0.04);
  border-left: 3px solid var(--gold-luxe);
}
.growth-path-box strong { color: var(--gold-luxe); }
.growth-path-box p { margin-bottom: 12px; line-height: 1.9; color: var(--text-sub); font-size: 17px; }
.growth-path-box p:last-child { margin-bottom: 0; }
[data-theme="light"] .growth-path-box { background: rgba(141,123,50,0.03); }

/* Founder — animated border buttons */
.founder-section { display: flex; flex-direction: column; gap: 24px; margin-top: 20px; }
.founder-photo { width: 120px; height: 120px; object-fit: cover; border: 2px solid var(--gold-luxe); border-radius: 4px; }
.founder-bio h3 { font-family: var(--font-head); font-size: 16px; font-weight: 900; color: var(--text-main); margin-bottom: 2px; text-transform: uppercase; letter-spacing: 0.1em; }
.founder-title { font-family: "Playfair Display", serif; font-style: italic; font-size: 12px; color: var(--gold-luxe); margin-bottom: 14px; }
.founder-bio p { color: var(--text-sub); line-height: 1.9; font-size: 17px; margin-bottom: 12px; }
.founder-bio strong { color: var(--text-main); }
.founder-articles { margin-top: 16px; }
.founder-articles h4 { font-family: var(--font-head); font-size: 10px; font-weight: 200; text-transform: uppercase; letter-spacing: 0.15em; color: var(--gold-luxe); margin-bottom: 10px; }
.founder-articles ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.founder-articles li a { font-size: 13px; color: var(--text-sub); text-decoration: none; }
.founder-articles li a:hover { color: var(--gold-luxe); }
.founder-links { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.founder-link-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 16px; height: 34px; position: relative;
  border: 1px solid transparent; border-radius: 4px;
  background-image: linear-gradient(var(--bg-page), var(--bg-page)),
    conic-gradient(from var(--angle), #544615 0%, #C1AC51 25%, #FFFFFF 30%, #C1AC51 35%, #544615 100%) !important;
  background-origin: padding-box, border-box !important; background-clip: padding-box, border-box !important;
  animation: rotateBorder 4s linear infinite;
  color: var(--gold-luxe); font-family: var(--font-head); font-size: 10px; font-weight: 200;
  text-transform: uppercase; letter-spacing: 0.3em; text-decoration: none; transition: all 0.3s;
}
.founder-link-btn:hover {
  background-image: linear-gradient(135deg, #8D7B32 0%, #544615 30%, #C1AC51 50%, #544615 70%, #8D7B32 100%),
    conic-gradient(from var(--angle), #544615 0%, #C1AC51 25%, #FFFFFF 30%, #C1AC51 35%, #544615 100%) !important;
  color: #FFFFFF;
}

/* FAQ */
.faq-section details { border-bottom: 1px solid rgba(141,123,50,0.15); }
.faq-section summary { font-family: "Playfair Display", serif; font-weight: 700; font-size: 15px; color: var(--text-main); cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; padding: 16px 0; gap: 12px; }
.faq-section summary::-webkit-details-marker { display: none; }
.faq-section summary::after { content: '+'; font-size: 20px; font-weight: 300; color: var(--gold-luxe); flex-shrink: 0; }
.faq-section details[open] summary::after { content: '−'; }
.faq-answer { padding: 0 0 18px; line-height: 1.9; color: var(--text-sub); font-size: 17px; }

/* Sidebar */
.sb-card { border: 1px solid rgba(141,123,50,0.2); border-radius: 6px; background: rgba(0,0,0,0.3); backdrop-filter: blur(8px); overflow: hidden; margin-bottom: 12px; }
[data-theme="light"] .sb-card { background: rgba(255,255,255,0.9); border-color: rgba(141,123,50,0.12); }
.sb-card__header { padding: 10px 16px; background: linear-gradient(180deg, rgba(141,123,50,0.12) 0%, rgba(141,123,50,0.03) 100%); border-bottom: 1px solid rgba(141,123,50,0.15); }
.sb-card__title { font-family: "Playfair Display", serif; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--gold-luxe); margin: 0; }
.sb-card__body { padding: 14px 16px; font-size: 12px; color: var(--text-sub); line-height: 1.6; }
.sb-quick-fact { display: flex; justify-content: space-between; align-items: center; padding: 5px 0; border-bottom: 1px solid rgba(141,123,50,0.06); font-size: 11px; }
.sb-quick-fact:last-child { border-bottom: none; }
.sb-qf-label { color: var(--text-sub); }
.sb-qf-value { color: var(--gold-luxe); font-weight: 700; text-align: right; }

/* Sidebar testimonials — fixed colors */
.sb-testimonial { position: relative; }
.sb-testimonial__mark { font-family: 'Playfair Display', Georgia, serif; font-size: 48px; color: #FFFFFF !important; opacity: 1 !important; line-height: 1; filter: none !important; }
.sb-testimonial__text { font-family: 'Playfair Display', Georgia, serif; font-style: italic; font-size: 12px; color: var(--gold-luxe); line-height: 1.6; margin: 4px 0 8px 8px; position: relative; z-index: 2; }
.sb-testimonial__attr { font-size: 10px; color: #FFFFFF !important; margin-left: 8px; }
[data-theme="light"] .sb-testimonial__mark { color: #000000 !important; }
[data-theme="light"] .sb-testimonial__attr { color: #000000 !important; }

/* Browse All States text link */
.browse-all-states-text { color: #FFFFFF !important; text-decoration: none !important; }
.browse-all-states-text:hover { text-decoration: none !important; }
[data-theme="light"] .browse-all-states-text { color: #000000 !important; }

/* Browse All States / Jobs Sitemap button — white interior, black text */
.browse-all-states-btn { color: #000000 !important; text-decoration: none !important; transition: opacity 0.3s; }
.browse-all-states-btn:hover { opacity: 0.85; text-decoration: none !important; }
[data-theme="light"] .browse-all-states-btn { color: #000000 !important; }

/* Published Articles heading — white underline like FAQ gold line */
.founder-articles h4 { position: relative; padding-bottom: 14px; }
.founder-articles h4::after {
  content: ''; display: block; width: 80px; height: 2px;
  background: linear-gradient(90deg, #FFFFFF, transparent);
  margin: 14px 0 0;
}
[data-theme="light"] .founder-articles h4::after {
  background: linear-gradient(90deg, #000000, transparent);
}

/* View Full Website link */
.view-website-link { color: #FFFFFF !important; text-decoration: none !important; }
.view-website-link:hover { text-decoration: none !important; }
[data-theme="light"] .view-website-link { color: #000000 !important; }

/* Scroll Reveal */
.reveal-section { opacity: 0; transform: translateY(40px); transition: opacity 0.8s cubic-bezier(0.25,0.46,0.45,0.94), transform 0.8s cubic-bezier(0.25,0.46,0.45,0.94); }
.reveal-section.revealed { opacity: 1; transform: translateY(0); }

/* EEO */
.eeo-statement { margin-top: 40px; padding-top: 24px; border-top: 1px solid rgba(141,123,50,0.15); font-size: 13px; color: var(--text-sub); line-height: 1.6; }
.eeo-statement strong { color: var(--text-main); }

/* Light mode scroll-spacer: use blueprint.png with white bg for light mode */
.scroll-spacer { background: url('../images/scdc-multifamily-real-estate-development-blueprint.webp') center/cover no-repeat !important; background-color: #000000 !important; }
[data-theme="light"] .scroll-spacer { background-color: #FFFFFF !important; }

/* Footer certifications — handled by footer.css from article template */

/* Fix #2: Link colors — dark gold, underline on hover */
.job-content a { color: var(--gold-luxe); text-decoration: none; transition: all 0.2s; }
.job-content a:hover { text-decoration: underline; text-decoration-color: #FFFFFF; }
[data-theme="light"] .job-content a:hover { text-decoration-color: #000000; }
/* Fix #3: No underlines inside buttons or bars — ALL button text white */
.btn-request, .btn-hero-style, .btn-gold, .founder-link-btn, .cta-wrap a, .tagline-pill { text-decoration: none !important; }
.btn-request:hover, .btn-hero-style:hover, .founder-link-btn:hover, .cta-wrap a:hover { text-decoration: none !important; }
/* All button/bar link text forced white regardless of theme */
.btn-request, .btn-hero-style, .btn-gold, .cta-wrap a { color: #FFFFFF !important; }
.founder-link-btn { color: #FFFFFF !important; }
[data-theme="light"] .btn-request, [data-theme="light"] .btn-hero-style,
[data-theme="light"] .btn-gold, [data-theme="light"] .cta-wrap a,
[data-theme="light"] .founder-link-btn { color: #FFFFFF !important; }

/* Fix #5: Office image animated gold border */
.inline-image-bordered {
  width: 100%; height: auto; display: block; margin: 28px 0;
  border: 2px solid transparent; border-radius: 4px;
  background-image:
    linear-gradient(var(--bg-page), var(--bg-page)),
    conic-gradient(from var(--angle), #544615 0%, #C1AC51 25%, #FFFFFF 30%, #C1AC51 35%, #544615 100%);
  background-origin: padding-box, border-box;
  background-clip: padding-box, border-box;
  animation: rotateBorder 4s linear infinite;
}

/* Fix #6: Founder bio drop cap */
.founder-bio-start::first-letter {
  font-family: 'Playfair Display', serif;
  float: left; font-size: 4.2rem; line-height: 0.8;
  padding: 6px 14px 0 0; color: var(--gold-luxe); font-weight: 700;
}

/* Fix #7: Founder buttons — white bg, black text */
.founder-link-btn {
  color: #000000 !important;
  background-image:
    linear-gradient(#FFFFFF, #FFFFFF),
    conic-gradient(from var(--angle), #544615 0%, #C1AC51 25%, #FFFFFF 30%, #C1AC51 35%, #544615 100%) !important;
}
.founder-link-btn:hover {
  color: #FFFFFF !important;
  background-image:
    linear-gradient(135deg, #8D7B32 0%, #544615 30%, #C1AC51 50%, #544615 70%, #8D7B32 100%),
    conic-gradient(from var(--angle), #544615 0%, #C1AC51 25%, #FFFFFF 30%, #C1AC51 35%, #544615 100%) !important;
}
[data-theme="light"] .founder-link-btn { color: #000000 !important; }

/* Fix #1 (Growth Path): Drop cap for growth-path first paragraph */
.growth-intro::first-letter {
  font-family: 'Playfair Display', serif;
  float: left; font-size: 4.2rem; line-height: 0.8;
  padding: 6px 14px 0 0; color: var(--gold-luxe); font-weight: 700;
}

/* Fix #10: Light mode hero — swap to white background version */
[data-theme="light"] .job-hero__bg-light { display: block; }
[data-theme="light"] .job-hero__bg-dark { display: none; }
.job-hero__bg-light { display: none; }
.job-hero__bg-dark { display: block; }
/* Fix #2: Infographic dark/light swap */
.infographic-light { display: none; }
[data-theme="light"] .infographic-dark { display: none; }
[data-theme="light"] .infographic-light { display: block; }

/* Search autocomplete results */
.search-results {
  position: absolute; top: 100%; left: 0; right: 0; max-height: 300px;
  overflow-y: auto; background: var(--bg-page); border: 1px solid var(--gold-primary);
  border-top: none; border-radius: 0 0 4px 4px; z-index: 10003; display: none;
}
.search-results.active { display: block; }
.search-result-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 20px; font-size: 14px; color: var(--text-main);
  border-bottom: 1px solid rgba(141,123,50,0.1); cursor: pointer;
  text-decoration: none; transition: background 0.2s;
}
.search-result-item:hover { background: rgba(141,123,50,0.1); }
.search-result-item .city-name { font-weight: 600; }
.search-result-item .state-name { color: var(--gold-luxe); font-size: 12px; }
.search-no-results { padding: 16px 20px; font-size: 13px; color: var(--text-sub); text-align: center; }

/* YouTube embed placeholder */
.video-section { margin: 44px 0; text-align: center; }
.video-placeholder {
  position: relative; width: 100%; padding-bottom: 56.25%; /* 16:9 */
  background: #000; border: 1px solid rgba(141,123,50,0.2); border-radius: 4px;
  overflow: hidden; cursor: pointer;
}
.video-placeholder__overlay {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.4); transition: background 0.3s;
}
.video-placeholder:hover .video-placeholder__overlay { background: rgba(0,0,0,0.2); }
.video-placeholder__play {
  width: 68px; height: 48px; background: #FF0000; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
}
.video-placeholder__play::after {
  content: ''; border-style: solid; border-width: 10px 0 10px 18px;
  border-color: transparent transparent transparent #FFFFFF;
}

/* Focus-visible for accessibility */
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible {
  outline: 2px solid var(--gold-luxe); outline-offset: 2px;
}

/* Accessible gold for small text — sidebar only, NOT footer disclaimers */
.sb-qf-value, .founder-articles li a { color: var(--gold-accessible, #B8A44C); }

/* Print stylesheet */
@media print {
  * { background: transparent !important; color: #000 !important; box-shadow: none !important; text-shadow: none !important; }
  .scdc-header, .scdc-footer, .share-sticky, .back-to-top-container,
  .cursor-diamond, .trail-dot, .scroll-spacer, .job-sidebar,
  .tagline-bar, .tagline-block, .mobile-nav-panel { display: none !important; }
  .main-content { margin-bottom: 0 !important; }
  .job-hero { height: auto !important; min-height: 0 !important; padding: 20px; }
  .job-hero__bg, .job-hero__overlay { display: none; }
  .job-hero__title { -webkit-text-fill-color: #000 !important; background: none !important; font-size: 24pt; }
  .job-layout { display: block !important; padding: 0 !important; max-width: 100% !important; }
  .inline-image, .inline-image-bordered { max-width: 60%; margin: 10px auto; }
  a[href]::after { content: ' (' attr(href) ')'; font-size: 9pt; color: #666; }
  .founder-link-btn::after { content: none !important; }
  h2 { page-break-after: avoid; }
  .content-list li { page-break-inside: avoid; }
}

/* ===== RESPONSIVE BREAKPOINTS ===== */

/* Mobile small (up to 374px) */
@media (max-width: 374px) {
  .job-hero { height: 45vh; min-height: 300px; }
  .job-hero__content { padding: 0 12px; }
  .job-hero__location { font-size: 1.2rem; letter-spacing: 0.15em; }
  .job-hero__badge { font-size: 10px; padding: 4px 16px; height: 32px; margin-bottom: 16px; }
  .job-hero__aka { font-size: 8px; }
  .tagline-block { margin: -30px auto 0; padding: 0 12px; }
  .tagline-bar { padding: 12px 10px; gap: 6px; }
  .tagline-pill { font-size: 0.65rem; padding: 0.2rem 0.5rem; height: 1.6rem; }
  .job-layout { padding: 20px 16px 40px; }
  .post-h2, .section-heading { font-size: 1.2rem; }
  .city-intro, .body-text, .job-summary, .content-list li, .faq-answer, .founder-bio p { font-size: 15px; }
  .city-intro::first-letter, .growth-intro::first-letter, .founder-bio-start::first-letter { font-size: 3rem; }
}

/* Mobile standard (375-424px) */
@media (min-width: 375px) and (max-width: 424px) {
  .job-hero { height: 48vh; min-height: 320px; }
  .job-hero__content { padding: 0 16px; }
  .job-hero__location { font-size: 1.3rem; letter-spacing: 0.2em; }
  .job-hero__badge { font-size: 11px; padding: 5px 20px; height: 34px; margin-bottom: 20px; }
  .tagline-block { margin: -35px auto 0; padding: 0 14px; }
  .job-layout { padding: 24px 18px 40px; }
}

/* Mobile large (425-767px) */
@media (min-width: 425px) and (max-width: 767px) {
  .job-hero { height: 50vh; min-height: 340px; }
  .job-hero__content { padding: 0 20px; }
  .job-hero__location { font-size: clamp(1.3rem, 4vw, 1.8rem); }
  .tagline-block { margin: -40px auto 0; padding: 0 16px; }
  .job-layout { padding: 28px 20px 50px; }
}

/* Tablet (768-1039px) */
@media (min-width: 768px) and (max-width: 1039px) {
  .job-hero { height: 55vh; min-height: 380px; }
  .job-hero__content { padding: 0 32px; }
  .tagline-block { margin: -50px auto 0; padding: 0 24px; }
  .job-layout { padding: 36px 32px 60px; }
}

/* All mobile/tablet shared (below sidebar breakpoint) */
@media (max-width: 1039px) {
  .job-sidebar { display: none !important; }
  .share-sticky { display: none !important; }
}

/* Desktop with sidebar (1040px+) */
@media (min-width: 1040px) {
  .job-layout { grid-template-columns: 1fr 300px; gap: 0 50px; }
  .job-sidebar {
    display: block; position: sticky; bottom: 0;
    align-self: end; padding-top: 0; padding-bottom: 16px;
  }
  .founder-section { flex-direction: row; align-items: flex-start; }
}

/* Desktop standard */
@media (min-width: 1300px) { .job-layout { max-width: 1280px; } }

/* Ultrawide */
@media (min-width: 2560px) { .job-layout { max-width: 1400px; } }

/* Touch devices — no custom cursor */
@media (pointer: coarse) { * { cursor: auto !important; } .cursor-diamond, .trail-dot { display: none !important; } }
