/* ==========================================================================
   BUYAMTO — Jobs page (slug "jobs", template "Page - Full Width").
   Loaded only on that page by inc/buyamto-jobs.php. Same tokens as the About page (--by-*).
   ========================================================================== */
.by-jobs {
	--jb-bg: var(--by-bg, #FAFAF8);
	--jb-cream: #F4EEE4;
	--jb-surface: var(--by-surface, #FFFFFF);
	--jb-ink: var(--by-ink, #1A1815);
	--jb-soft: var(--by-ink-soft, #4B463F);
	--jb-grey: var(--by-grey, #8B857B);
	--jb-line: var(--by-line, #E7E2D9);
	--jb-teal: var(--by-teal, #0E7C86);
	--jb-teal-dp: #0B4E54;
	--jb-orange: var(--by-orange, #C94F0A);
	--jb-r: 24px; --jb-r-lg: 34px;
	--jb-gutter: clamp(16px, 5vw, 64px);
	--jb-maxw: 1180px;
	--jb-ease: cubic-bezier(.22, .61, .36, 1);
	--jb-mono: "Space Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
	background: var(--jb-bg);
	color: var(--jb-ink);
	font-size: 17px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	overflow-x: clip;
}
.by-jobs *, .by-jobs *::before, .by-jobs *::after { box-sizing: border-box; }
.by-jobs p { margin: 0; }
.by-jobs h1, .by-jobs h2 { color: inherit; margin: 0; font-weight: 700; overflow-wrap: break-word; }
.by-jobs .jb-wrap { width: 100%; max-width: var(--jb-maxw); margin-inline: auto; padding-inline: var(--jb-gutter); }
.by-jobs .jb-dot { color: var(--jb-orange); }
.by-jobs .jb-eyebrow { font-family: var(--jb-mono); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--jb-grey); display: inline-flex; align-items: center; gap: 12px; margin: 0 0 22px; }
.by-jobs .jb-eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--jb-orange); flex: none; }
.by-jobs .jb-h2 { font-size: clamp(2rem, 4.8vw, 3.4rem); line-height: 1.02; letter-spacing: -.035em; }
.by-jobs .jb-body { color: var(--jb-soft); max-width: 52ch; }
.by-jobs .jb-body + .jb-body { margin-top: 14px; }

/* Buttons (pill, like the rest of the site) */
.by-jobs .jb-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 0 30px; border-radius: 999px; font-weight: 700; font-size: 1.02rem; text-decoration: none !important; letter-spacing: 0; text-transform: none; transition: transform .2s var(--jb-ease), box-shadow .2s var(--jb-ease), background-color .2s; }
.by-jobs .jb-btn::after { content: "→"; font-size: 1.1em; transition: transform .2s var(--jb-ease); }
.by-jobs .jb-btn:hover { transform: translateY(-2px); }
.by-jobs .jb-btn:hover::after { transform: translateX(3px); }
.by-jobs .jb-btn--primary { background: var(--jb-orange); color: #fff !important; box-shadow: 0 14px 30px -16px rgba(201, 79, 10, .85); }
.by-jobs .jb-btn--primary:hover { background: var(--by-orange-dark, #A94008); }
.by-jobs .jb-btn--light { background: #fff; color: var(--jb-teal-dp) !important; }
.by-jobs .jb-btn:focus-visible { outline: 3px solid var(--jb-teal); outline-offset: 3px; }

/* Hero */
.by-jobs .jb-hero { padding-block: clamp(44px, 7vw, 100px) clamp(64px, 9vw, 120px); }
.by-jobs .jb-hero__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(40px, 6vw, 72px); align-items: center; }
.by-jobs .jb-hero__title { font-size: clamp(2.8rem, 8vw, 6.2rem); line-height: .95; letter-spacing: -.05em; }
.by-jobs .jb-brand { color: var(--jb-teal); }
.by-jobs .jb-hero__lede { font-size: clamp(1.06rem, 1.9vw, 1.24rem); color: var(--jb-soft); max-width: 46ch; margin-top: 28px; }
.by-jobs .jb-hero__cta { margin-top: 34px; }
.by-jobs .jb-hero__art { position: relative; aspect-ratio: 1 / 1; max-width: 460px; width: 100%; justify-self: center; }
.by-jobs .jb-orb { position: absolute; border-radius: 50%; }
.by-jobs .jb-orb--teal { inset: 6% 14% 22% 6%; background: radial-gradient(circle at 30% 30%, #2C9AA3, var(--jb-teal) 55%, var(--jb-teal-dp)); box-shadow: 0 40px 80px -40px rgba(11, 78, 84, .7); }
.by-jobs .jb-orb--orange { width: 34%; aspect-ratio: 1; right: 4%; bottom: 8%; background: radial-gradient(circle at 35% 30%, #E9772F, var(--jb-orange)); box-shadow: 0 30px 60px -30px rgba(201, 79, 10, .7); }
.by-jobs .jb-ring { position: absolute; inset: 0; border-radius: 50%; border: 1.5px dashed rgba(26, 24, 21, .16); }
.by-jobs .jb-tag { position: absolute; padding: 10px 18px; border-radius: 999px; background: var(--jb-surface); border: 1px solid var(--jb-line); font-weight: 700; font-size: .92rem; color: var(--jb-ink); box-shadow: 0 16px 34px -22px rgba(26, 24, 21, .45); white-space: nowrap; }
.by-jobs .jb-tag::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 8px; vertical-align: 1px; background: var(--jb-teal); }
.by-jobs .jb-tag--a { top: 12%; right: -2%; }
.by-jobs .jb-tag--b { bottom: 30%; left: -4%; }
.by-jobs .jb-tag--b::before { background: var(--jb-orange); }
.by-jobs .jb-tag--c { bottom: -2%; right: 18%; font-family: var(--jb-mono); font-weight: 400; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; }
.by-jobs .jb-tag--c::before { background: var(--jb-grey); }

/* How it works */
.by-jobs .jb-section { padding-block: clamp(64px, 9vw, 120px); border-top: 1px solid var(--jb-line); }
.by-jobs .jb-split { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 6vw, 80px); align-items: start; }
.by-jobs .jb-ways { list-style: none; margin: 30px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.by-jobs .jb-ways li { margin: 0; display: flex; gap: 14px; align-items: flex-start; padding: 20px; border-radius: var(--jb-r); background: var(--jb-surface); border: 1px solid var(--jb-line); color: var(--jb-soft); font-size: .95rem; line-height: 1.5; }
.by-jobs .jb-ways b { display: block; color: var(--jb-ink); font-size: 1.05rem; margin-bottom: 2px; }
.by-jobs .jb-ways__ic { width: 40px; height: 40px; border-radius: 50%; flex: none; display: flex; align-items: center; justify-content: center; background: #DCEBE9; color: var(--jb-teal); font-size: 18px; }
.by-jobs .jb-ways li:last-child .jb-ways__ic { background: #FBE6D9; color: var(--jb-orange); }

/* Welcome card */
.by-jobs .jb-welcome { padding-block: 0 clamp(64px, 9vw, 120px); }
.by-jobs .jb-card { position: relative; overflow: hidden; border-radius: var(--jb-r-lg); padding: clamp(36px, 6vw, 80px); background: radial-gradient(120% 140% at 100% 0%, #13858F 0%, var(--jb-teal) 35%, var(--jb-teal-dp) 100%); color: #fff; }
.by-jobs .jb-card::after { content: ""; position: absolute; width: 340px; height: 340px; right: -110px; bottom: -150px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #E9772F, var(--jb-orange)); opacity: .9; }
.by-jobs .jb-card > * { position: relative; z-index: 1; }
.by-jobs .jb-eyebrow--light { color: rgba(255, 255, 255, .72); }
.by-jobs .jb-h2--light { color: #fff; max-width: 16ch; }
.by-jobs .jb-h2--light .jb-dot { color: #FFB27D; }
.by-jobs .jb-body--light { color: rgba(255, 255, 255, .86); margin: 22px 0 32px; }
.by-jobs .jb-fine { margin-top: 18px; font-size: .9rem; color: rgba(255, 255, 255, .75); }
.by-jobs .jb-fine a { color: #fff !important; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* Closing line */
.by-jobs .jb-close { padding-block: clamp(48px, 7vw, 96px) clamp(64px, 9vw, 120px); text-align: center; background: var(--jb-cream); }
.by-jobs .jb-close__line { font-size: clamp(2rem, 6vw, 4.4rem); line-height: 1; letter-spacing: -.045em; font-weight: 700; color: var(--jb-ink); }
.by-jobs .jb-close__sub { margin-top: 18px; font-family: var(--jb-mono); font-size: .76rem; letter-spacing: .2em; text-transform: uppercase; color: var(--jb-grey); }

/* Gentle entrance (respects reduced motion) */
@media (prefers-reduced-motion: no-preference) {
	.by-jobs .jb-hero__text > * { animation: jb-rise .8s var(--jb-ease) both; }
	.by-jobs .jb-hero__text > *:nth-child(2) { animation-delay: .06s; }
	.by-jobs .jb-hero__text > *:nth-child(3) { animation-delay: .12s; }
	.by-jobs .jb-hero__text > *:nth-child(4) { animation-delay: .18s; }
	.by-jobs .jb-hero__art { animation: jb-settle 1s var(--jb-ease) both .1s; }
}
@keyframes jb-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes jb-settle { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }

@media (max-width: 849px) {
	.by-jobs .jb-hero__grid, .by-jobs .jb-split { grid-template-columns: minmax(0, 1fr); }
	.by-jobs .jb-hero__art { max-width: 300px; margin-top: 8px; }
	.by-jobs .jb-tag { font-size: .82rem; padding: 8px 14px; }
	.by-jobs .jb-tag--a { right: 0; }
	.by-jobs .jb-tag--b { left: 0; }
	.by-jobs .jb-ways { grid-template-columns: minmax(0, 1fr); }
	.by-jobs .jb-btn { width: 100%; }
}

/* Dark mode (site toggle) */
html[data-theme="dark"] .by-jobs { --jb-cream: var(--by-warm, #1F1D1A); }
html[data-theme="dark"] .by-jobs .jb-ways__ic { background: rgba(14, 124, 134, .2); }
html[data-theme="dark"] .by-jobs .jb-ways li:last-child .jb-ways__ic { background: rgba(201, 79, 10, .2); }
html[data-theme="dark"] .by-jobs .jb-ring { border-color: rgba(255, 255, 255, .18); }

/* ---------- Shorter page (less scrolling) ---------- */
.by-jobs .jb-hero { padding-block: clamp(32px, 5vw, 72px) clamp(40px, 6vw, 80px); }
.by-jobs .jb-hero__lede { margin-top: 20px; }
.by-jobs .jb-hero__cta { margin-top: 26px; }
.by-jobs .jb-hero__art { max-width: 380px; }
.by-jobs .jb-section { padding-block: clamp(40px, 6vw, 80px); }
.by-jobs .jb-ways { margin-top: 22px; }
.by-jobs .jb-ways li { padding: 16px; }
.by-jobs .jb-welcome { padding-block: 0 clamp(40px, 6vw, 80px); }
.by-jobs .jb-card { padding: clamp(28px, 5vw, 64px); }
.by-jobs .jb-body--light { margin: 16px 0 24px; }
.by-jobs .jb-close { padding-block: clamp(32px, 5vw, 64px); }
.by-jobs .jb-close__line { font-size: clamp(1.6rem, 4.5vw, 3.4rem); }
@media (max-width: 849px) {
	.by-jobs .jb-hero__grid { gap: 28px; }
	.by-jobs .jb-hero__art { max-width: 210px; justify-self: start; margin: 0; }
	.by-jobs .jb-tag { font-size: .76rem; padding: 6px 12px; }
	.by-jobs .jb-tag--c { display: none; }
	.by-jobs .jb-h2 { font-size: 1.9rem; }
	.by-jobs .jb-split { gap: 16px; }
	.by-jobs .jb-ways { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.by-jobs .jb-ways li { flex-direction: column; gap: 8px; padding: 14px; font-size: .86rem; }
	.by-jobs .jb-ways__ic { width: 32px; height: 32px; font-size: 15px; }
	.by-jobs .jb-card::after { width: 200px; height: 200px; right: -80px; bottom: -110px; }
}
