/* ThriveAllianz — jobs section additions (complements build.css) */
:root {
  --ta-ink: #1d1d1d;
  --ta-body: #2e2e2e;
  --ta-muted: #6b6b6b;
  --ta-line: rgba(29, 29, 29, 0.08);
  --ta-teal: #2e8286;
  --ta-teal-dark: #266a6d;
  --ta-teal-soft: #effbfb;
  --ta-amber: #8a5a00;
  --ta-amber-soft: #fff6e5;
}

[data-ta-card][hidden] { display: none !important; }

/* Filters */
.ta-filters { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .ta-filters { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.ta-filter-kw { position: relative; }
.ta-kw-icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: #9a9a9a; pointer-events: none; display: flex; }
.ta-filters select.field-input { padding-left: 16px; appearance: auto; }
.ta-filters .field-input { width: 100%; }

.ta-chips { display: flex; gap: 8px; margin-top: 16px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
@media (min-width: 768px) { .ta-chips { flex-wrap: wrap; overflow: visible; } }
.ta-chip {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--ta-line); background: #fff; color: var(--ta-body);
  border-radius: 9999px; padding: 8px 14px; font-size: 13.5px; font-weight: 600; line-height: 1.2;
  cursor: pointer; transition: background-color .15s, border-color .15s, color .15s; white-space: nowrap;
}
.ta-chip:hover { border-color: rgba(46, 130, 134, .45); color: var(--ta-teal-dark); }
.ta-chip:focus-visible { outline: 2px solid var(--ta-teal); outline-offset: 2px; }
.ta-chip.is-active { background: var(--ta-body); border-color: var(--ta-body); color: #fff; }
.ta-chip-count { font-size: 11.5px; font-weight: 700; padding: 1px 7px; border-radius: 9999px; background: rgba(29,29,29,.06); }
.ta-chip.is-active .ta-chip-count { background: rgba(255,255,255,.18); }

/* Status labels */
.ta-status { display: inline-flex; align-items: center; border-radius: 9999px; padding: 5px 11px; font-size: 11.5px; font-weight: 600; letter-spacing: .01em; line-height: 1.3; }
.ta-status-active { background: #e8f7ee; color: #17663a; }
.ta-status-pipeline { background: #f2f2f2; color: #555; }
.ta-status-closed { background: #fde8e8; color: #9b1c1c; }

/* Card meta */
.ta-meta { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; font-size: 13.5px; color: #4a4a4a; }
.ta-meta li { display: flex; align-items: center; gap: 8px; }
.ta-meta svg, .ta-hero-meta svg { flex-shrink: 0; }
.ta-card h2 a:focus-visible { outline: 2px solid var(--ta-teal); outline-offset: 3px; border-radius: 4px; }

/* Hero meta on detail page */
.ta-hero-meta { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 28px; font-size: 14.5px; color: #3c3c3c; }
.ta-hero-meta span { display: inline-flex; align-items: center; gap: 8px; }

/* Notices */
.ta-notice { display: flex; gap: 14px; align-items: flex-start; background: var(--ta-teal-soft); border: 1px solid rgba(46,130,134,.18); border-radius: 20px; padding: 18px 20px; font-size: 14px; line-height: 1.6; color: #3c3c3c; }
.ta-notice-icon { color: var(--ta-teal); margin-top: 2px; flex-shrink: 0; display: flex; }
.ta-notice-closed { background: #fdf2f2; border-color: rgba(155,28,28,.15); }
.ta-notice-closed .ta-notice-icon { color: #9b1c1c; }

/* Snapshot */
.ta-sticky { position: sticky; top: 96px; }
.ta-snapshot { margin: 0; display: grid; gap: 0; font-size: 14px; }
.ta-snapshot > div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--ta-line); }
.ta-snapshot > div:last-child { border-bottom: 0; }
.ta-snapshot dt { color: var(--ta-muted); }
.ta-snapshot dd { margin: 0; font-weight: 600; color: var(--ta-ink); text-align: right; }

/* Form bits */
.ta-hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.ta-req { color: #b42318; }
.ta-readonly { background: #f7f7f7 !important; color: #3c3c3c; cursor: default; }
form[data-ta-apply] select.field-input { padding-left: 16px; appearance: auto; }
form[data-ta-apply] textarea.field-input { resize: vertical; min-height: 96px; }
.field-error { border-color: #d92d20 !important; box-shadow: 0 0 0 3px rgba(217,45,32,.08); }
.field-error-msg { color: #b42318; font-size: 12.5px; margin-top: 6px; }
[data-ta-success]:focus { outline: none; }
button[disabled] { opacity: .7; cursor: progress; }

.ta-spacer-top { padding-top: 6rem; }

@media (max-width: 1023px) { .ta-sticky { position: static; } }
@media (prefers-reduced-motion: reduce) { .ta-chip { transition: none; } }

.ta-meta { margin-bottom: 20px; }

/* ---------- Sharing ---------- */
.ta-share-label { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .14em; color: #8a8a8a; margin: 0 0 12px; }
.ta-share-row { display: flex; flex-wrap: wrap; gap: 8px; }
.ta-share-btn {
  display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 12px;
  border-radius: 9999px; border: 1px solid var(--ta-line); background: #fff; color: var(--ta-body);
  font: 600 13px/1 Inter, system-ui, sans-serif; text-decoration: none; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.ta-share-btn svg { flex-shrink: 0; }
.ta-share-btn:hover { color: #fff; border-color: transparent; }
.ta-share-btn:focus-visible, .ta-card-share:focus-visible, .ta-share-menu a:focus-visible, .ta-share-menu button:focus-visible { outline: 2px solid var(--ta-teal); outline-offset: 2px; }
.ta-sb-whatsapp svg { color: #25d366; } .ta-sb-whatsapp:hover { background: #1fa855; }
.ta-sb-linkedin svg { color: #0a66c2; } .ta-sb-linkedin:hover { background: #0a66c2; }
.ta-sb-facebook svg { color: #1877f2; } .ta-sb-facebook:hover { background: #1877f2; }
.ta-sb-x svg { color: #111; } .ta-sb-x:hover { background: #111; }
.ta-sb-telegram svg { color: #229ed9; } .ta-sb-telegram:hover { background: #229ed9; }
.ta-sb-instagram svg { color: #d62976; } .ta-sb-instagram:hover { background: linear-gradient(45deg,#f58529,#dd2a7b 50%,#8134af); }
.ta-sb-mail svg, .ta-sb-copy svg, .ta-sb-native svg { color: var(--ta-teal-dark); }
.ta-sb-mail:hover, .ta-sb-copy:hover, .ta-sb-native:hover { background: var(--ta-body); }
.ta-share-btn:hover svg { color: #fff; }
.ta-share-btn[disabled] { opacity: .6; cursor: progress; }
.ta-share-btn.hidden { display: none; }
.ta-share-hint { font-size: 12.5px; color: #7a7a7a; line-height: 1.5; margin: 14px 0 8px; }
.ta-share-dl { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ta-teal-dark); text-decoration: underline; text-underline-offset: 3px; }

.ta-card-share {
  flex: 0 0 auto; width: 46px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 9999px; border: 1px solid rgba(46,46,46,.15); background: #fff; color: var(--ta-body); cursor: pointer;
  transition: background-color .15s, color .15s;
}
.ta-card-share:hover, .ta-card-share[aria-expanded="true"] { background: var(--ta-teal-soft); color: var(--ta-teal-dark); border-color: rgba(46,130,134,.35); }

.ta-share-menu {
  position: absolute; z-index: 70; min-width: 190px; padding: 6px; background: #fff; border-radius: 16px;
  border: 1px solid var(--ta-line); box-shadow: 0 14px 40px -12px rgba(0,0,0,.25);
  display: flex; flex-direction: column;
}
.ta-share-menu a, .ta-share-menu button {
  display: block; text-align: left; width: 100%; padding: 10px 12px; border-radius: 10px; border: 0; background: none;
  font: 500 14px/1.2 Inter, system-ui, sans-serif; color: var(--ta-body); text-decoration: none; cursor: pointer;
}
.ta-share-menu a:hover, .ta-share-menu button:hover { background: #f3f6f6; color: var(--ta-teal-dark); }

.ta-toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); z-index: 90; max-width: min(92vw, 460px);
  background: #1d1d1d; color: #fff; padding: 12px 18px; border-radius: 14px; font: 500 14px/1.45 Inter, system-ui, sans-serif;
  box-shadow: 0 12px 30px -10px rgba(0,0,0,.4); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
}
.ta-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
@media (prefers-reduced-motion: reduce) { .ta-toast, .ta-share-btn, .ta-card-share { transition: none; } }

.ta-share-btn svg, .ta-card-share svg { width: 18px; height: 18px; }
.ta-share-dl svg { width: 16px; height: 16px; }
.ta-share-label svg { width: 15px; height: 15px; }

/* ---------- Active menu item (Current Jobs) ---------- */
nav[aria-label="Primary"] a[aria-current="page"] {
  color: #1f5c5f !important; background: #e3f6f6 !important; font-weight: 700;
  box-shadow: inset 0 0 0 1px rgba(46,130,134,.28); position: relative;
}
nav[aria-label="Primary"] a[aria-current="page"]::after {
  content: ""; position: absolute; left: 50%; bottom: -7px; width: 6px; height: 6px; margin-left: -3px;
  border-radius: 50%; background: #F59E2B;
}
nav[aria-label="Mobile primary"] a[aria-current="page"] {
  color: #1f5c5f !important; font-weight: 700; background: #effbfb; border-radius: 12px;
  box-shadow: inset 4px 0 0 #2e8286;
}
