/* ===== Reset / base ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #0b1322;
  --bg-soft: #0e1728;
  --text: #e7edf4;
  --muted: #8a97a8;
  --line: rgba(255,255,255,.10);
  --link: #5ea0e8;
  --blue: #1f6fe0;
  --blue-dark: #1a5fc4;
  --green: #17c98c;
  --purple: #a684ff;
  --post-width: 760px;
}

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

/* Shared centered content wrapper */
.post-wrap {
  max-width: var(--post-width);
  margin: 0 auto;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  background: none;
  color: var(--text);
  transition: background .15s, border-color .15s, opacity .15s;
}
.btn-outline { border-color: var(--line); }
.btn-outline:hover { border-color: rgba(255,255,255,.3); }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-dark); }
.btn-light { background: #fff; color: #111827; justify-content: center; }
.btn-light:hover { opacity: .9; }
.btn-block { width: 100%; }

/* ===== Navbar ===== */
.navbar {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 30;
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 22px;
  height: 62px;
  padding: 0 24px;
  max-width: 1880px;
  margin: 0 auto;
}

/* 9-dot grid icon */
.grid-icon {
  display: grid;
  grid-template-columns: repeat(3, 4px);
  grid-template-rows: repeat(3, 4px);
  gap: 3px;
}
.grid-icon span { width: 4px; height: 4px; border-radius: 1px; background: var(--muted); }

.brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 19px; }
.brand-mark {
  width: 26px; height: 26px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--green); color: #04231a;
  border-radius: 8px; font-weight: 800; font-size: 16px;
}

/* search */
.search {
  flex: 0 1 580px;
  display: flex; align-items: center; gap: 10px;
  height: 40px;
  padding: 0 16px;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--line);
  border-radius: 22px;
  color: var(--muted);
  margin-left: 6px;
}
.search-ic { width: 16px; height: 16px; stroke: var(--muted); fill: none; stroke-width: 2; stroke-linecap: round; }
.search-ph { font-size: 14px; }

/* right links */
.nav-links { display: flex; align-items: center; gap: 20px; margin-left: auto; }
.nav-link { color: var(--link); font-size: 14px; font-weight: 600; white-space: nowrap; }
.nav-link:hover { color: #8cc0ff; }
.nav-super {
  color: var(--purple); font-size: 14px; font-weight: 600; white-space: nowrap;
}
.nav-super:hover { filter: brightness(1.15); }

.nav-actions { display: flex; align-items: center; gap: 12px; }
.theme-toggle {
  background: none; border: none; color: var(--text);
  font-size: 18px; cursor: pointer; line-height: 1;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--bg);
  padding-bottom: 70px;
}
.hero-deco {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: #ffffff;
  opacity: .05;
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; padding: 0 24px; max-width: 1880px; margin: 0 auto; }

.breadcrumb {
  display: inline-block;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  padding: 22px 0 60px;
}
.breadcrumb:hover { color: #fff; }

/* company row */
.company-row { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; }
.company-logo {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: #11324a;
  color: #6fd0ff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 22px;
  border: 1px solid var(--line);
}
.company-line { font-size: 16px; }
.company-name { font-weight: 700; }
.company-name:hover { text-decoration: underline; }
.dot { color: var(--muted); margin: 0 4px; }
.follow { color: var(--text); font-weight: 500; }
.follow:hover { text-decoration: underline; }
.post-date { color: var(--muted); font-size: 13px; margin-top: 2px; }

/* title */
.job-title {
  font-size: 46px;
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -.5px;
  margin-bottom: 18px;
}

/* status */
.status-line { font-size: 16px; color: var(--text); display: flex; align-items: center; gap: 8px; }
.status-ic { font-size: 16px; }
.status-line strong { font-weight: 700; }

/* ===== Body ===== */
.body { padding: 50px 24px 70px; }
.job-section { margin-bottom: 40px; }
.job-section h2 {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -.4px;
  margin-bottom: 18px;
}
.job-section p { font-size: 17px; color: #cbd5e1; margin-bottom: 16px; }
.job-section ul, .job-section ol { margin: 4px 0 16px 22px; }
.job-section li { font-size: 17px; color: #cbd5e1; margin: 10px 0; }

/* perks */
.perks { display: flex; flex-wrap: wrap; gap: 14px 26px; margin-top: 18px; }
.perk { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 15px; }
.perk-ic { color: var(--green); font-size: 16px; }

/* tags */
.tags { display: flex; flex-wrap: wrap; gap: 10px; }
.tag {
  font-size: 13px; font-weight: 600;
  color: #9fd0ff;
  background: rgba(95,160,232,.12);
  border: 1px solid rgba(95,160,232,.25);
  padding: 6px 14px;
  border-radius: 20px;
}
.tag:hover { background: rgba(95,160,232,.2); }

.job-id { color: var(--muted); font-size: 12px; letter-spacing: .05em; }

/* ===== CTA ===== */
.cta { background: var(--bg-soft); border-top: 1px solid var(--line); padding: 56px 24px; }
.cta-inner { text-align: center; max-width: 440px; }
.cta-title { font-size: 26px; font-weight: 800; }
.cta-sub { color: var(--muted); margin: 10px 0 24px; }
.cta-buttons { display: flex; flex-direction: column; gap: 12px; }

/* ===== Footer ===== */
.footer { background: var(--bg); border-top: 1px solid var(--line); padding: 46px 24px 0; }
.footer-grid {
  max-width: 1120px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 24px;
}
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h4 { font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.footer-col a { color: var(--muted); font-size: 14px; }
.footer-col a:hover { color: var(--text); }
.footer-tagline { color: var(--muted); font-size: 14px; }
.social-row { display: flex; gap: 10px; }
.social-dot { width: 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,.08); }
.footer-bottom {
  max-width: 1120px; margin: 36px auto 0;
  border-top: 1px solid var(--line);
  padding: 20px 0; color: var(--muted); font-size: 13px;
}

/* ===== Responsive ===== */
@media (max-width: 1080px) {
  .search { flex-basis: 320px; }
  .nav-links { gap: 14px; }
}
@media (max-width: 900px) {
  .nav-links, .search { display: none; }
  .job-title { font-size: 34px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ===== Button loading state (1-minute spinner on click) ===== */
.is-loading {
  cursor: progress;
  opacity: .7;
  pointer-events: none; /* block re-clicks while loading */
}
/* While one button is loading, every OTHER button is locked out. */
body.buttons-locked button:not(.is-loading),
body.buttons-locked .btn:not(.is-loading) {
  pointer-events: none;
  opacity: .5;
  cursor: not-allowed;
}
.btn-spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: -2px;
  flex-shrink: 0;
  animation: btn-spin .7s linear infinite;
}
@keyframes btn-spin { to { transform: rotate(360deg); } }
