/* ============================================================
   FirmwareJobs — "Solder" skin. A PCB under low light: FR4 green-black,
   copper traces, square component packages. Built for a codebase that ships
   more than one vertical (see jobs/theming.py) — a deployment picks its skin
   with SITE_THEME, no template fork.

   One of the skins in jobs/theming.py; every skin defines the same token
   names, because templates reference them inline.
   ============================================================ */
:root {
  color-scheme: dark;
  --bg-primary:    #0b120f;
  --bg-surface:    #121c17;
  --bg-surface-2:  #1a281f;
  --border-muted:  #24382c;
  --border-default:#33513f;
  --fg-default:    #e6f2ea;
  --fg-muted:      #93aa9d;
  --fg-subtle:     #5f7a6b;
  --accent-blue:   #5fb0c9;
  --accent-green:  #5fbf7a;
  --accent-amber:  #d9822b;
  --accent-red:    #e0584a;
  --accent-teal:   #4fd1b8;
  --neon-green:    #8be04a;
  /* Copper -- the one colour that isn't part of the shared contract, because
     nothing outside this file needs to ask for it. Traces, pin strips, the
     wordmark's bracket. */
  --copper: #c8843f;
}

/* === BASE ===
   A faint trace grid plus via dots at the intersections -- CSS gradients
   only, no image asset, so the texture never blocks on a request the way a
   background PNG would. */
body {
  background-color: var(--bg-primary) !important;
  background-image:
    radial-gradient(circle at center, rgba(200,132,63,0.16) 1px, transparent 1.4px),
    linear-gradient(rgba(95,191,122,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(95,191,122,0.05) 1px, transparent 1px);
  background-size: 32px 32px, 32px 32px, 32px 32px;
  background-position: 0 0, 0 0, 0 0;
  background-attachment: fixed;
  color: var(--fg-default) !important;
  font-feature-settings: "tnum" 1;
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 { color: var(--fg-default); letter-spacing: -0.01em; }

a { color: var(--accent-teal); text-decoration: none; }
a:hover { color: var(--neon-green); text-decoration: underline; }

.text-muted { color: var(--fg-muted) !important; }
.display-4, .display-6 { color: var(--fg-default) !important; }
.fs-5 { color: var(--fg-muted) !important; }

/* === NAVBAR ===
   The wordmark reads like a part silkscreened on a board: bracketed,
   uppercase, wide tracking, copper accents instead of Terminal's green
   slash-prompt. */
.navbar.bg-dark {
  background-color: var(--bg-surface) !important;
  border-bottom: 2px solid var(--copper);
  box-shadow: 0 1px 0 rgba(0,0,0,0.5);
}

.navbar-brand {
  font-family: 'Courier New', Courier, monospace;
  font-weight: 700;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--fg-default) !important;
}

.brand-slash {
  color: var(--copper);
  margin-right: 2px;
}
.navbar-brand::before { content: "["; color: var(--copper); margin-right: 3px; }
.navbar-brand::after  { content: "]"; color: var(--copper); margin-left: 3px; }

.nav-link { color: var(--fg-muted) !important; transition: color 0.15s; }
.nav-link:hover { color: var(--neon-green) !important; }

.navbar .form-control {
  background-color: var(--bg-primary) !important;
  border: 1px solid var(--border-default) !important;
  color: var(--fg-default) !important;
  border-radius: 2px;
}
.navbar .form-control::placeholder { color: var(--fg-subtle) !important; }
.navbar .form-control:focus {
  border-color: var(--copper) !important;
  box-shadow: 0 0 0 3px rgba(200,132,63,0.18) !important;
}

.navbar .btn-outline-success {
  color: var(--accent-green) !important;
  border-color: var(--accent-green) !important;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.85rem;
  border-radius: 2px;
}
.navbar .btn-outline-success:hover {
  background-color: var(--accent-green) !important;
  color: var(--bg-primary) !important;
}

/* === DROPDOWNS === */
.dropdown-menu {
  background-color: var(--bg-surface-2) !important;
  border: 1px solid var(--border-default) !important;
  border-radius: 2px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}
.dropdown-item { color: var(--fg-default) !important; font-size: 0.9rem; }
.dropdown-item:hover {
  background-color: var(--bg-surface) !important;
  color: var(--neon-green) !important;
}
.dropdown-divider { border-color: var(--border-muted) !important; }

/* === MAIN CONTAINER === */
main .p-5, main .bg-light { background-color: transparent !important; }
main { padding-top: 0.5rem; }

/* === CARDS ===
   A component package: square corners, and a copper pin-strip along the top
   edge instead of Terminal's plain hairline or Silicon's glass gradient. */
.card {
  background-color: var(--bg-surface) !important;
  border: 1px solid var(--border-muted) !important;
  border-top: 2px solid var(--copper) !important;
  color: var(--fg-default) !important;
  border-radius: 2px !important;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.card:hover { border-color: var(--border-default) !important; }

.card.card-featured {
  background-color: var(--bg-surface-2) !important;
  border-top-color: var(--accent-amber) !important;
  border-color: var(--accent-amber) !important;
  box-shadow: 0 0 16px rgba(217,130,43,0.14) !important;
}
.card.card-featured:hover { box-shadow: 0 0 24px rgba(217,130,43,0.24) !important; }

.card-header {
  background-color: var(--bg-surface-2) !important;
  border-bottom: 1px solid var(--border-muted) !important;
  color: var(--fg-default) !important;
}

.card.header-card {
  background-color: transparent !important;
  border: none !important;
  border-top: none !important;
  border-bottom: 2px solid var(--copper) !important;
  border-radius: 0 !important;
  margin-bottom: 0.5rem !important;
}

/* === BUTTONS ===
   Rectangular, not pill-rounded -- a header pin, not a chiclet. */
.btn { border-radius: 2px; font-size: 0.875rem; }

.btn-primary {
  background-color: var(--copper) !important;
  border-color: var(--copper) !important;
  color: #0b120f !important;
  font-weight: 700;
}
.btn-primary:hover { background-color: #e0954f !important; border-color: #e0954f !important; }

.btn-outline-primary {
  color: var(--accent-teal) !important;
  border-color: var(--accent-teal) !important;
  background-color: transparent !important;
}
.btn-outline-primary:hover {
  background-color: var(--accent-teal) !important;
  color: var(--bg-primary) !important;
}

.btn-success {
  background-color: var(--accent-green) !important;
  border-color: var(--accent-green) !important;
  color: #0b120f !important;
}
.btn-success:hover { background-color: #78d391 !important; }

.btn-danger {
  background-color: var(--accent-red) !important;
  border-color: var(--accent-red) !important;
  color: #fff !important;
}

.btn-warning {
  background-color: var(--accent-amber) !important;
  border-color: var(--accent-amber) !important;
  color: #0b120f !important;
}

.btn-info {
  background-color: var(--accent-teal) !important;
  border-color: var(--accent-teal) !important;
  color: #0b120f !important;
}

.btn-secondary {
  background-color: var(--bg-surface-2) !important;
  border-color: var(--border-default) !important;
  color: var(--fg-muted) !important;
  border-radius: 2px;
}
.btn-secondary:hover { color: var(--fg-default) !important; }

.btn-sm { font-size: 0.75rem; padding: 0.2rem 0.5rem; border-radius: 2px; }

/* === FORMS === */
.form-control, .form-select, textarea {
  background-color: var(--bg-surface) !important;
  border: 1px solid var(--border-default) !important;
  color: var(--fg-default) !important;
  border-radius: 2px;
}
.form-control:focus, .form-select:focus, textarea:focus {
  background-color: var(--bg-surface) !important;
  border-color: var(--copper) !important;
  box-shadow: 0 0 0 3px rgba(200,132,63,0.18) !important;
  color: var(--fg-default) !important;
}
.form-control::placeholder { color: var(--fg-subtle) !important; }
.form-label { color: var(--fg-default); font-size: 0.9rem; }

.select2-container--default .select2-selection--multiple,
.select2-container--default .select2-selection--single {
  background-color: var(--bg-surface) !important;
  border: 1px solid var(--border-default) !important;
  color: var(--fg-default) !important;
  border-radius: 2px !important;
}
.select2-dropdown {
  background-color: var(--bg-surface-2) !important;
  border: 1px solid var(--border-default) !important;
}
.select2-container--default .select2-results__option { color: var(--fg-default) !important; }
.select2-container--default .select2-results__option--highlighted {
  background-color: var(--copper) !important;
  color: #0b120f !important;
}
.select2-search__field {
  background-color: var(--bg-primary) !important;
  color: var(--fg-default) !important;
  border: 1px solid var(--border-default) !important;
}

/* === TABLES === */
.table { color: var(--fg-default) !important; }
.table > :not(caption) > * > * {
  background-color: transparent !important;
  color: var(--fg-default) !important;
  border-color: var(--border-muted) !important;
}
.table thead th { color: var(--fg-muted) !important; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 1.5px; }
.table thead { border-bottom: 2px solid var(--copper) !important; }

/* === ALERTS === */
.alert { border-radius: 2px; }
.alert-info {
  background-color: rgba(95,176,201,0.08) !important;
  border-color: rgba(95,176,201,0.3) !important;
  color: var(--fg-default) !important;
}
.alert-success {
  background-color: rgba(95,191,122,0.08) !important;
  border-color: rgba(95,191,122,0.3) !important;
  color: var(--fg-default) !important;
}
.alert-danger {
  background-color: rgba(224,88,74,0.08) !important;
  border-color: rgba(224,88,74,0.3) !important;
  color: var(--fg-default) !important;
}
.alert-warning {
  background-color: rgba(217,130,43,0.1) !important;
  border-color: rgba(217,130,43,0.32) !important;
  color: var(--fg-default) !important;
}

/* === PAGINATION === */
.page-link {
  background-color: var(--bg-surface) !important;
  border-color: var(--border-muted) !important;
  color: var(--accent-teal) !important;
  border-radius: 2px;
}
.page-item.active .page-link {
  background-color: var(--copper) !important;
  border-color: var(--copper) !important;
  color: #0b120f !important;
}
.page-link:hover {
  background-color: var(--bg-surface-2) !important;
  border-color: var(--border-default) !important;
  color: var(--fg-default) !important;
}

/* === FOOTER === */
footer {
  background-color: var(--bg-surface) !important;
  border-top: 2px solid var(--copper) !important;
  color: var(--fg-muted) !important;
}
footer .text-muted { color: var(--fg-muted) !important; }
footer a { color: var(--fg-subtle) !important; }
footer a:hover { color: var(--neon-green) !important; text-decoration: none; }

/* === SECTION LABEL ===
   A silkscreen reference designator (R1, U3, ...) rather than Terminal's
   command-prompt label. */
.section-label {
  display: inline-block;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--copper);
  padding: 0.15rem 0.6rem;
  border: 1px solid var(--copper);
  border-radius: 2px;
  margin-bottom: 0.75rem;
}

/* === JOB DETAIL PAGE === */
.job-detail-header {
  border-bottom: 2px solid var(--copper);
  padding-bottom: 1.25rem;
  margin-bottom: 1.5rem;
}

.job-desc p, .job-desc li, .job-desc span { color: var(--fg-default); }

.btn-apply {
  background-color: var(--copper) !important;
  border-color: var(--copper) !important;
  color: #0b120f !important;
  font-weight: 700;
  padding: 0.6rem 1.5rem;
  border-radius: 2px;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.btn-apply:hover { background-color: #e0954f !important; }

/* === PRICING === */
.pricing-card-title { color: var(--copper) !important; font-family: 'Courier New', Courier, monospace; }
.card.border-primary { border-color: var(--copper) !important; }
.card-header.bg-primary { background-color: var(--copper) !important; color: #0b120f !important; }
.card-header.text-white { color: #0b120f !important; }

/* === BLOG === */
.blog-post-meta { color: var(--fg-muted) !important; }
.blog-aside {
  background-color: var(--bg-surface) !important;
  border: 1px solid var(--border-muted) !important;
  border-top: 2px solid var(--copper) !important;
  color: var(--fg-default) !important;
}
.blog-aside h4 { color: var(--fg-default) !important; }
.blog-aside a  { color: var(--accent-teal) !important; }
.blog-footer {
  background-color: var(--bg-surface) !important;
  border-top: 1px solid var(--border-muted) !important;
  color: var(--fg-muted) !important;
}
.blog-header { border-bottom: 1px solid var(--border-muted) !important; }

/* === CODE BLOCKS === */
pre code.hljs {
  border-radius: 2px;
  border: 1px solid var(--border-muted);
}

/* === VIDEO EMBED === */
.video-container { position: relative; padding-bottom: 56.25%; height: 0; }
.video-container iframe {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
}

/* === BREADCRUMB / MISC === */
.breadcrumb-item { color: var(--fg-muted); }
.breadcrumb-item.active { color: var(--fg-default); }
.breadcrumb-item + .breadcrumb-item::before { color: var(--fg-subtle); }

.badge.bg-secondary { background-color: var(--bg-surface-2) !important; color: var(--fg-muted) !important; }

.min-w-0 { min-width: 0; }
.min-w-0 h5 { overflow-wrap: anywhere; }

/* === SECTION HEAD === */
.section-head { border-bottom: 2px solid var(--copper); }

/* === THE LISTING ===
   Geometry in static/css/layout.css; this is only what it is made of. Rows
   read as a strip of pin headers -- a copper tick at the left edge on hover
   rather than Terminal's full-row wash, since a board is read left to right
   along its pins. */
.job-list-day {
  color: var(--copper);
  font-family: 'Courier New', Courier, monospace;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 1px solid var(--border-muted);
}

.job-row {
  border-bottom-color: var(--border-muted);
  border-left: 2px solid transparent;
  transition: border-left-color 0.12s ease, background-color 0.12s ease;
}
.job-row:hover {
  background-color: var(--bg-surface);
  border-left-color: var(--copper);
}
.job-row:last-child { border-bottom-color: transparent; }

.job-row-title a { color: var(--fg-default); }
.job-row:hover .job-row-title a { color: var(--neon-green); }

.job-row-co a { color: var(--fg-muted); }
.job-row-loc, .job-row-loc a { color: var(--fg-subtle); }
.job-row-co a:hover, .job-row-loc a:hover { color: var(--fg-default); }
.job-row-monogram {
  background: var(--bg-surface-2);
  color: var(--fg-muted);
  border: 1px solid var(--border-muted);
  border-radius: 2px;
}
.job-row:hover .job-row-monogram { color: var(--fg-default); border-color: var(--copper); }

.job-row-age { color: var(--fg-subtle); font-family: 'Courier New', Courier, monospace; }

.job-list-featured {
  background: rgba(217, 130, 43, 0.06);
  border-color: rgba(217, 130, 43, 0.35);
}
.job-row-featured {
  background: rgba(217, 130, 43, 0.14);
  box-shadow: inset 3px 0 0 var(--accent-amber);
}
.job-row-featured:hover { background: rgba(217, 130, 43, 0.22); }
.job-row-flag { background: var(--accent-amber); color: var(--bg-primary); }

/* === TAGS ===
   A resistor-style two-tone chip: a solid left band, square corners --
   distinct from Terminal's flat outline pill and Silicon's gradient fill. */
.tag {
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1;
  padding: 0.3rem 0.5rem 0.3rem 0.4rem;
  border-radius: 2px;
  border: 1px solid var(--border-default);
  border-left-width: 3px;
  background: var(--bg-surface-2);
  color: var(--fg-muted);
  white-space: nowrap;
}
.tag-fpga     { background: rgba(95,191,122,0.14);  border-color: var(--accent-green); color: var(--accent-green); }
.tag-asic     { background: rgba(224,88,74,0.12);   border-color: var(--accent-red);   color: var(--accent-red); }
.tag-vhdl     { background: rgba(79,209,184,0.12);  border-color: var(--accent-teal);  color: var(--accent-teal); }
.tag-verilog  { background: rgba(217,130,43,0.14);  border-color: var(--copper);       color: var(--copper); }
.tag-salary   { background: rgba(95,191,122,0.14);  border-color: var(--accent-green); color: var(--accent-green); border-radius: 999px; border-left-width: 1px; }
.tag-remote   { background: rgba(224,88,74,0.12);   border-color: var(--accent-red);   color: var(--accent-red);   border-radius: 999px; border-left-width: 1px; }
.tag-clearance{ background: rgba(217,130,43,0.14);  border-color: var(--copper);       color: var(--copper);      border-radius: 999px; border-left-width: 1px; }
.tag-location { color: var(--accent-teal); border-radius: 999px; border-left-width: 1px; }
.tag-link     { color: var(--accent-teal); }
.tag-link:hover { color: var(--neon-green); border-color: var(--accent-teal); text-decoration: none; }

.company-card-name i { color: var(--fg-muted); }
.apply-aside { color: var(--fg-subtle); font-size: 0.78rem; }

/* === HERO ===
   A trace-and-via divider under the headline instead of a filled banner --
   a strip of copper dashes with a via dot every third segment, drawn with a
   single repeating gradient so it costs nothing to render. */
.hero {
  border-bottom: none;
  position: relative;
  padding: 2.5rem 0 2.25rem;
  margin-bottom: 1.5rem;
}
.hero::after {
  content: "";
  display: block;
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  background-image: repeating-linear-gradient(
    90deg,
    var(--copper) 0, var(--copper) 18px,
    transparent 18px, transparent 26px
  );
  opacity: 0.7;
}
.hero-eyebrow {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.72rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 0.75rem;
}
.hero-title {
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--fg-default);
  margin-bottom: 0.75rem;
  max-width: 22ch;
}
.hero-sub {
  color: var(--fg-muted);
  font-size: 1.02rem;
  max-width: 62ch;
  margin-bottom: 1.5rem;
}
.hero-sub strong { color: var(--fg-default); }

.hero-search { display: flex; gap: 0.5rem; max-width: 640px; margin-bottom: 1.25rem; }
.hero-search-input {
  flex: 1 1 auto;
  min-width: 0;
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  color: var(--fg-default);
  border-radius: 2px;
  padding: 0.65rem 0.85rem;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.95rem;
}
.hero-search-input::placeholder { color: var(--fg-subtle); }
.hero-search-input:focus {
  outline: none;
  border-color: var(--copper);
  box-shadow: 0 0 0 3px rgba(200,132,63,0.18);
}
.hero-search-button {
  flex: 0 0 auto;
  background: var(--copper);
  border: 1px solid var(--copper);
  color: var(--bg-primary);
  font-weight: 700;
  border-radius: 2px;
  padding: 0.65rem 1.1rem;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.hero-search-button:hover { background: #e0954f; border-color: #e0954f; }

.hero-facets { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; margin-bottom: 1rem; }
.hero-facets-label {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--fg-subtle);
  margin-right: 0.25rem;
}
.hero-facet {
  display: inline-flex;
  align-items: baseline;
  gap: 0.4rem;
  border: 1px solid var(--border-muted);
  background: var(--bg-surface);
  color: var(--fg-default);
  border-radius: 2px;
  padding: 0.3rem 0.6rem;
  font-size: 0.82rem;
  text-decoration: none;
}
.hero-facet:hover { border-color: var(--copper); color: var(--copper); text-decoration: none; }
.hero-facet-count { color: var(--fg-subtle); font-size: 0.72rem; }

.hero-actions { font-size: 0.88rem; color: var(--fg-subtle); margin: 0; }
.hero-action { color: var(--fg-muted); }
.hero-action:hover { color: var(--neon-green); }
.hero-action-sep { margin: 0 0.5rem; }

.logo-fallback { opacity: 0.6; }
