/* =========================================================================
   Trade Mar, shared styles for careers / news / privacy / terms pages
   ========================================================================= */

/* ---------- Prose pages (privacy, terms) ---------- */
.prose-page { max-width: 760px; margin: 0 auto; padding: 64px 24px 96px; }
.prose-page h1 { font-size: clamp(28px, 4vw, 48px); font-weight: 800; letter-spacing: -.02em; margin-bottom: 8px; }
.prose-page .last-updated { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .14em; color: var(--ink-muted); margin-bottom: 48px; display: block; }
.prose-page h2 { font-size: 20px; font-weight: 700; margin: 40px 0 12px; color: var(--navy); }
.prose-page p  { color: var(--ink); line-height: 1.75; margin-bottom: 16px; font-size: 16px; }
.prose-page ul { color: var(--ink); line-height: 1.75; margin: 0 0 16px 20px; font-size: 16px; }
.prose-page ul li { margin-bottom: 6px; }
.prose-page a  { color: var(--wave); text-decoration: underline; }
.prose-page a:hover { color: var(--accent); }
.prose-page .divider { border: none; border-top: 1px solid var(--line); margin: 40px 0; }

/* ---------- Careers page ---------- */
.careers-intro { padding-block: 64px 48px; }
.careers-intro .split { align-items: start; gap: 48px; }

.job-filters { margin-bottom: 40px; }

.jobs-list { display: flex; flex-direction: column; gap: 2px; }
.job-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 32px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px 24px;
  align-items: center;
  transition: border-color .2s, box-shadow .2s;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}
.job-card:hover {
  border-color: var(--wave);
  box-shadow: 0 4px 24px rgba(0,40,85,.07);
}
/* job-card rendered as a <button> by the dynamic careers list */
button.job-card { width: 100%; text-align: inherit; font: inherit; }
[dir="rtl"] .job-card .job-apply span { display: inline-block; transform: scaleX(-1); }
.job-dept-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.job-dept-row .job-dept { margin-bottom: 0; }
.job-flag {
  font-family: var(--font-mono); font-size: 10px; font-weight: 500;
  text-transform: uppercase; letter-spacing: .1em;
  padding: 3px 8px; border-radius: 999px; line-height: 1;
}
.job-flag.featured { background: rgba(77,168,218,.16); color: #1d6fa5; }
.job-flag.urgent   { background: rgba(212,13,36,.12);  color: var(--accent); }

.job-card-left { min-width: 0; }
.job-dept {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--accent);
  margin-bottom: 6px;
}
.job-title { font-size: 18px; font-weight: 700; color: var(--navy); margin-bottom: 6px; line-height: 1.2; }
.job-meta  { display: flex; gap: 16px; flex-wrap: wrap; }
.job-tag   {
  font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .1em;
  color: var(--ink-muted); display: flex; align-items: center; gap: 5px;
}
.job-tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--line); display: inline-block; }
.job-tag.open::before { background: #22c55e; }
.job-apply {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--wave);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color .2s, gap .2s;
}
.job-card:hover .job-apply { color: var(--accent); gap: 10px; }

/* Perks strip */
.perks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 40px;
}
.perk-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
}
.perk-icon { font-size: 28px; margin-bottom: 12px; line-height: 1; color: var(--accent); }
.perk-icon svg { width: 30px; height: 30px; display: block; }

/* ---------- Empty open-roles state ---------- */
.jobs-empty {
  text-align: center;
  max-width: 560px;
  margin: 8px auto 0;
  padding: 40px 24px 8px;
}
.jobs-empty-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 9%, var(--paper));
  color: var(--accent);
}
.jobs-empty-icon svg { width: 30px; height: 30px; }
.jobs-empty p {
  color: var(--ink-muted);
  font-size: 15px;
  line-height: 1.65;
  margin-bottom: 26px;
}
.perk-card h4 { font-size: 15px; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.perk-card p  { font-size: 14px; color: var(--ink-muted); line-height: 1.6; }

/* ---------- News / Updates page ---------- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}
.news-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color .2s, box-shadow .2s;
}
.news-card:hover { border-color: var(--wave); box-shadow: 0 4px 24px rgba(0,40,85,.07); }
.news-card-thumb {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.news-card-thumb svg { width: 100%; height: 100%; }
.news-card-body { padding: 24px 28px 28px; flex: 1; display: flex; flex-direction: column; }
.news-cat  {
  font-family: var(--font-mono); font-size: 10px; text-transform: uppercase;
  letter-spacing: .16em; color: var(--accent); margin-bottom: 10px;
}
.news-card h3  { font-size: 18px; font-weight: 700; color: var(--navy); line-height: 1.25; margin-bottom: 10px; }
.news-card p   { font-size: 14px; color: var(--ink-muted); line-height: 1.65; flex: 1; margin-bottom: 20px; }
.news-date { font-family: var(--font-mono); font-size: 11px; color: color-mix(in srgb, var(--ink-muted) 70%, transparent); text-transform: uppercase; letter-spacing: .1em; }
.news-read {
  font-family: var(--font-mono); font-size: 11px; text-transform: uppercase;
  letter-spacing: .12em; color: var(--wave); text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px; margin-top: 16px;
  transition: color .2s, gap .2s;
}
.news-read:hover { color: var(--accent); gap: 10px; }

/* Featured news */
.news-featured {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  margin-bottom: 40px;
}
@media (max-width: 700px) { .news-featured { grid-template-columns: 1fr; } }
.news-featured-thumb {
  background: linear-gradient(135deg, #07193A 0%, #0a2864 100%);
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.news-featured-body { padding: 40px 40px 36px; display: flex; flex-direction: column; justify-content: center; }
.news-featured .news-cat { font-size: 11px; }
.news-featured h2 { font-size: clamp(20px, 2.5vw, 28px); font-weight: 800; color: var(--navy); line-height: 1.15; margin-bottom: 12px; letter-spacing: -.01em; }
.news-featured p  { font-size: 15px; color: var(--ink-muted); line-height: 1.65; margin-bottom: 24px; }

/* ---------- Cookie banner ---------- */
#cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--navy);
  color: #C8D4E8;
  z-index: 100;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  border-top: 2px solid var(--accent);
  transform: translateY(100%);
  transition: transform .35s cubic-bezier(.22,.68,0,1.2);
  font-size: 14px;
  line-height: 1.5;
}
#cookie-banner.visible { transform: translateY(0); }
#cookie-banner p { margin: 0; flex: 1; min-width: 220px; }
#cookie-banner a { color: var(--wave); text-decoration: underline; }
.cookie-btns { display: flex; gap: 8px; flex-shrink: 0; }
#cookie-accept { background: var(--accent); color: #fff; border: none; padding: 9px 20px; border-radius: 6px; font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; cursor: pointer; transition: background .2s; }
#cookie-accept:hover { background: color-mix(in srgb, var(--accent) 85%, #000); }
#cookie-decline { background: transparent; color: #C8D4E8; border: 1px solid rgba(255,255,255,.2); padding: 9px 20px; border-radius: 6px; font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; cursor: pointer; transition: border-color .2s; }
#cookie-decline:hover { border-color: rgba(255,255,255,.5); }

/* ---------- Testimonials ---------- */
.testimonials { padding-block: 80px; background: var(--mist); }
.testi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 48px;
}
.testi-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
}
.testi-card::before {
  content: "\201C";
  position: absolute;
  top: 16px; right: 24px;
  font-size: 64px;
  line-height: 1;
  color: var(--line);
  font-family: Georgia, serif;
}
.testi-quote { font-size: 15px; line-height: 1.7; color: var(--ink); flex: 1; }
.testi-source { display: flex; align-items: center; gap: 14px; border-top: 1px solid var(--line); padding-top: 18px; }
.testi-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), var(--navy-deep));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 13px; font-weight: 700;
  color: #fff; flex-shrink: 0;
}
.testi-name { font-size: 14px; font-weight: 700; color: var(--navy); }
.testi-role { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-muted); margin-top: 2px; }

/* ---------- Terminal badge strip (homepage) ---------- */
.terminal-strip { padding-block: 48px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; }
.terminal-strip .h-eyebrow { text-align: center; margin-bottom: 28px; }
.badge-track {
  display: flex;
  gap: 16px;
  animation: badge-scroll 28s linear infinite;
  width: max-content;
}
.badge-track:hover { animation-play-state: paused; }
@keyframes badge-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.terminal-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 100px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: border-color .2s;
}
.terminal-badge:hover { border-color: var(--wave); }
.badge-code { font-family: var(--font-mono); font-size: 12px; font-weight: 700; color: var(--accent); letter-spacing: .08em; }
.badge-name { font-size: 13px; font-weight: 600; color: var(--navy); }
.badge-dot  { width: 6px; height: 6px; border-radius: 50%; background: #22c55e; flex-shrink: 0; }

/* ---------- Compliance badges ---------- */
.compliance-strip { padding-block: 64px; }
.compliance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 40px;
}
.compliance-badge {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: center;
  background: var(--paper);
}
.compliance-badge .cb-icon {
  font-size: 32px;
  margin-bottom: 14px;
  display: block;
}
.compliance-badge .cb-icon svg {
  width: 38px;
  height: 38px;
  color: var(--accent);
}
.compliance-badge h5 { font-size: 13px; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.compliance-badge p  { font-size: 12px; color: var(--ink-muted); line-height: 1.5; }
.compliance-badge .cb-cert {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 24%, transparent);
  padding: 4px 9px;
  border-radius: 100px;
}
.compliance-badge .cb-cert svg { width: 11px; height: 11px; flex-shrink: 0; }

/* ---------- FAQ accordion ---------- */
.faq-accordion {
  max-width: 840px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
}
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-item > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 24px 4px;
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.4;
  transition: color .2s ease;
}
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary::after {
  content: "";
  flex: none;
  width: 20px;
  height: 20px;
  background:
    linear-gradient(var(--accent), var(--accent)) center / 2px 16px no-repeat,
    linear-gradient(var(--accent), var(--accent)) center / 16px 2px no-repeat;
  transition: transform .28s ease;
}
.faq-item[open] > summary::after { transform: rotate(135deg); }
.faq-item > summary:hover { color: var(--accent); }
.faq-answer { padding: 0 4px; }
.faq-answer p {
  margin: 0 0 24px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink-muted);
  max-width: 72ch;
}
.faq-item[open] .faq-answer { animation: faqReveal .28s ease both; }
@keyframes faqReveal {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}
[dir="rtl"] .faq-answer p { max-width: none; }

/* ---------- Job detail modal ---------- */
.job-modal { position: fixed; inset: 0; z-index: 1000; display: none; }
.job-modal.open { display: block; }
.jm-backdrop { position: absolute; inset: 0; background: rgba(2,12,30,.55); backdrop-filter: blur(2px); }
.jm-panel {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: min(640px, calc(100vw - 32px)); max-height: calc(100vh - 48px); overflow-y: auto;
  background: var(--paper); border-radius: var(--radius);
  padding: 40px; box-shadow: 0 30px 80px -20px rgba(0,20,55,.5);
}
.jm-close {
  position: absolute; top: 16px; right: 18px; width: 36px; height: 36px;
  border: none; background: var(--mist); border-radius: 50%; cursor: pointer;
  font-size: 22px; line-height: 1; color: var(--ink-muted);
}
.jm-close:hover { background: var(--line); color: var(--navy); }
[dir="rtl"] .jm-close { right: auto; left: 18px; }
.jm-dept-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.jm-dept {
  font-family: var(--font-mono); font-size: 10px; text-transform: uppercase;
  letter-spacing: .18em; color: var(--wave);
}
.jm-flags { display: flex; gap: 8px; }
.jm-title { font-size: 26px; font-weight: 800; color: var(--navy); line-height: 1.2; margin-bottom: 20px; }
.jm-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px,1fr)); gap: 14px 24px; margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.jm-fact { display: flex; flex-direction: column; gap: 3px; }
.jm-fact-k { font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-muted); }
.jm-fact-v { font-size: 15px; font-weight: 600; color: var(--navy); }
.jm-desc { font-size: 15px; line-height: 1.7; color: var(--ink); margin-bottom: 24px; }
.jm-desc:empty { display: none; }
.jm-reqs { margin-bottom: 28px; }
.jm-reqs-title { font-size: 13px; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .12em; color: var(--ink-muted); margin-bottom: 12px; }
.jm-reqs ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.jm-reqs li { position: relative; padding-left: 22px; font-size: 15px; line-height: 1.5; color: var(--ink); }
.jm-reqs li::before { content: ""; position: absolute; left: 4px; top: 9px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
[dir="rtl"] .jm-reqs li { padding-left: 0; padding-right: 22px; }
[dir="rtl"] .jm-reqs li::before { left: auto; right: 4px; }
@media (max-width: 560px) { .jm-panel { padding: 32px 24px; } }
