/* Trades Backer — Modern grayscale theme (no top-nav) */

/* ===============
   Theme tokens
   =============== */

:root{
  /* Core */
  --bg: #f2f2f2;
  --ink: #101113;
  --muted: #5f6368;

  /* Surfaces */
  --panel: #ffffff;
  --panel-2: #f7f7f7;

  /* Lines */
  --border: #e6e6e6;
  --border-strong: #bdbdbd;

  /* Primitives */
  --black: #000000;
  --white: #ffffff;

  /* Radius / shadow */
  --radius: 16px;
  --radius-pill: 999px;
  --shadow: 0 10px 28px rgba(0,0,0,.08);

  /* Semantic */
  --surface-ink: #1b1c1f;         /* default body text on surfaces */
  --subtle-ink: #2a2c31;          /* badge text / slightly stronger than muted */
  --help-bg: #f6f6f6;
  --help-ink: #2b2d32;

  --focus-ring: var(--accent-ring);
  --focus-border: #111;



  /* Accent (minimal pops of color) */
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-bg: rgba(37,99,235,0.12);
  --accent-border: rgba(37,99,235,0.45);
  --accent-ring: rgba(37,99,235,0.28);

  --danger: #b00;
  --danger-ink: #7a0000;
  --danger-bg: #fff;

  /* Badge semantic (site-wide) */
  --ok-border: #16a34a;
  --ok-bg: rgba(22,163,74,0.12);
  --ok-ink: #0b3d1a;

  --bad-border: #dc2626;
  --bad-bg: rgba(220,38,38,0.10);
  --bad-ink: #4a0b08;
}

/* ===============
   Reset + base
   =============== */

*,
*::before,
*::after{ box-sizing:border-box; }

html{ scroll-behavior:smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

html, body{
  height: 100%;
  margin: 0;
  padding: 0;
}

body{
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img{ max-width:100%; height:auto; display:block; }

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

a.no-link{ color: inherit; }

/* ===============
   Accessibility
   =============== */

.skip-link{
  position:absolute;
  left:-9999px;
  top:auto;
  width:1px;
  height:1px;
  overflow:hidden;
}

.skip-link:focus{
  left:16px;
  top:16px;
  width:auto;
  height:auto;
  padding:10px 12px;
  background:var(--black);
  color:var(--white);
  border-radius:10px;
  z-index:9999;
  text-decoration:none;
}

/* ===============
   Shell layout
   =============== */

.top-bar,
.site-footer{ width: 100%; }

main{
  flex: 1 0 auto;
  max-width: 980px;
  margin: 0 auto;
  padding: 28px 16px 36px;
}

/* ===============
   Top bar (statement only)
   =============== */

.top-bar{
  background: var(--black);
  color: var(--white);
  padding: 10px 16px;
  font-size: 13px;
  letter-spacing: .2px;
}

.top-bar .top-bar-inner{
  max-width: 980px;
  margin: 0 auto;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  text-align:center;
}

.top-bar a{
  color: var(--white);
  text-decoration: underline;
}
.top-bar a:hover{ text-decoration:none; }

/* ===============
   Header (logo only)
   =============== */

.site-header{
  background: var(--panel);
  border-bottom: 1px solid var(--border);
}

.header-inner{
  max-width: 980px;
  margin: 0 auto;
  padding: 16px;
  display:flex;
  align-items:center;
  justify-content: center;
  gap:12px;
}

/* Single global header layout (homepage is the only exception). */

.logo{
  display:flex;
  align-items:center;
  gap:12px;
}

.logo img{ width: 44px; height: 44px; }

.logo-text{
  font-weight: 750;
  letter-spacing: .3px;
  font-size: 18px;
}


/* ===============
   Utility text helpers
   =============== */

.muted{ color: var(--muted); }
.lead{
  font-size: 16px;
  line-height: 1.6;
  color: var(--surface-ink);
}

/* ===============
   Utility components
   =============== */

.divider{
  border: 0;
  height: 1px;
  background: var(--border);
}

.button-sm{
  padding: .55rem .9rem;
  font-size: 13px;
}

.optional-details{
  border: 1px solid var(--border);
  background: var(--panel-2);
  border-radius: 14px;
  padding: 12px 14px;
}
.optional-details > summary{
  cursor:pointer;
  font-weight: 750;
  list-style: none;
}
.optional-details > summary::-webkit-details-marker{ display:none; }
.optional-details[open]{ background: var(--panel); }

.tbMinListingHint{
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px dashed var(--border);
  border-radius: 12px;
  background: rgba(0,0,0,0.02);
}


/* ===============
   Typography
   =============== */

h1, h2, h3{ line-height:1.2; margin: 0 0 12px; }
h1{ font-size: 28px; letter-spacing: .2px; }
h2{ font-size: 20px; }

p{ margin: 0 0 12px; color: var(--surface-ink); }
.small, .hint{ color: var(--muted); font-size: 13px; }



/* ===============
   Section headings (accent separators)
   =============== */

/* Add class tb-sep to headings you want to scan quickly. */
h2.tb-sep,
h3.tb-sep{
  margin-top: 0;
  position: relative;
  padding-bottom: 10px;
}

h2.tb-sep::after,
h3.tb-sep::after{
  content:"";
  position:absolute;
  left:0;
  bottom:0;
  width: 46px;
  height: 2px;
  border-radius: 999px;
  background: var(--accent);
  opacity: .95;
}

.tb-sep-center{ text-align:center; }
h2.tb-sep-center::after,
h3.tb-sep-center::after{
  left: 50%;
  transform: translateX(-50%);
}
/* ===============
   Cards + components
   =============== */

.badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--panel-2);
  font-size: 12px;
  color: var(--subtle-ink);
}

/* Clean semantic badges (NO !important wars, no glowy blur) */
.badge-ok{
  border-color: var(--ok-border);
  background: var(--ok-bg);
  color: var(--ok-ink);
  box-shadow: 0 0 0 1px rgba(0,0,0,0.02);
}

.badge-bad{
  border-color: var(--bad-border);
  background: var(--bad-bg);
  color: var(--bad-ink);
  box-shadow: 0 0 0 1px rgba(0,0,0,0.02);
}

.card,
.form-card{
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
}



/* Primary card (one per page): use for the page's “main” card. */
.card-primary{
  position: relative;
  overflow: hidden;
}
.card-primary::before{
  content:"";
  position:absolute;
  left:0;
  right:0;
  top:0;
  height: 4px;
  background: var(--accent);
}
.card + .card{ margin-top: 14px; }

.card-kicker{
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
}

.bullets{
  padding-left: 18px;
  margin: 10px 0 0;
}
.bullets li{ margin: 6px 0; }

/* ===============
   Forms
   =============== */

.field{ margin: 14px 0; }

label{
  display:block;
  font-weight: 650;
  margin-bottom: 6px;
}

.label-inline{
  display:flex;
  gap:10px;
  align-items:flex-start;
  font-weight: 550;
}

/* Text inputs/select/textarea — not radios/checkboxes */
input:not([type="checkbox"]):not([type="radio"]),
select,
textarea{
  width: 100%;
  font: inherit;
  padding: 10px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: var(--panel);
  color: var(--ink);
}

textarea{
  min-height: 110px;
  resize: vertical;
}

input::placeholder,
textarea::placeholder{ color:#8a8d93; }

input:focus,
select:focus,
textarea:focus{
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
  border-color: var(--focus-border);
}

/* Radios/checkboxes: keep native sizing */
input[type="radio"],
input[type="checkbox"]{
  width: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

/* Position (classification) radio group (fallback / legacy markup) */
.classification-group{
  /* Use a grid so options read like buttons (not one giant pill) */
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.classification-group label{
  position: relative;
  display:flex;
  align-items:center;
  justify-content:center;
  gap: 10px;

  padding: 14px 14px;
  margin: 0;

  font-weight: 750;
  line-height: 1.1;
  text-align: center;

  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--panel-2);
  color: var(--ink);

  cursor: pointer;
  user-select: none;

  transition: transform .08s ease, box-shadow .12s ease, background .12s ease, border-color .12s ease;
}

.classification-group label input{
  position:absolute;
  left:-9999px;
  width:1px;
  height:1px;
  overflow:hidden;
}

.classification-group label:hover{
  background: rgba(0,0,0,.03);
  transform: translateY(-1px);
}

/* Focus ring on the label (works even when the input is visually hidden) */
.classification-group label:focus-within{
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
  border-color: var(--focus-border);
}

/* Checked state: JS adds .is-checked for browsers without :has() */
.classification-group label.is-checked{
  background: var(--focus-border);
  color: var(--white);
  border-color: var(--focus-border);
  box-shadow: 0 10px 24px rgba(0,0,0,.16);
}

.classification-group label.is-checked::after{
  content: "✓";
  position: absolute;
  top: 10px;
  right: 12px;
  font-size: 14px;
  opacity: .95;
}

/* Progressive enhancement (modern browsers) */
.classification-group label:has(input:checked){
  background: var(--focus-border);
  color: var(--white);
  border-color: var(--focus-border);
  box-shadow: 0 10px 24px rgba(0,0,0,.16);
}
.classification-group label:has(input:checked)::after{
  content: "✓";
  position: absolute;
  top: 10px;
  right: 12px;
  font-size: 14px;
  opacity: .95;
}

/* Disabled options (e.g., when a posting locks the role) */
.classification-group label.is-disabled{
  opacity: .55;
  cursor: not-allowed;
  transform: none;
}


/* Segmented controls (modern radio groups) */
.segmented{
  display:flex;
  align-items:stretch;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 4px;
  gap: 4px;
  flex-wrap: wrap;
}

.segmented input{
  position:absolute;
  left:-9999px;
  width:1px;
  height:1px;
  overflow:hidden;
}

.segmented label{
  flex: 1 1 160px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding: 10px 12px;
  border-radius: var(--radius-pill);
  cursor:pointer;
  font-weight: 750;
  color: var(--ink);
  user-select:none;
  text-align:center;
  line-height: 1.1;
  border: 1px solid transparent;
}

.segmented label:hover{ background: rgba(0,0,0,.03); }

.segmented input:focus + label{
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
  border-color: var(--focus-border);
}

.segmented input:checked + label{
  background: var(--focus-border);
  color: var(--white);
  border-color: var(--focus-border);
  box-shadow: 0 10px 24px rgba(0,0,0,.16);
}


@media (max-width: 520px){
  .segmented{
    flex-direction: column;
    gap: 6px;
  }
  .segmented label{
    flex: 1 1 auto;
    width: 100%;
    padding: 12px 14px; /* slightly larger tap targets on mobile */
  }
}

/* File inputs (modern, consistent) */
input[type="file"]{
  width: 100%;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px dashed var(--border-strong);
  background: var(--panel-2);
  color: var(--ink);
}

input[type="file"]::file-selector-button{
  margin-right: 12px;
  padding: 8px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  background: var(--panel);
  color: var(--ink);
  font-weight: 700;
  cursor: pointer;
}

input[type="file"]::-webkit-file-upload-button{
  margin-right: 12px;
  padding: 8px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  background: var(--panel);
  color: var(--ink);
  font-weight: 700;
  cursor: pointer;
}

input[type="file"]::file-selector-button:hover,
input[type="file"]::-webkit-file-upload-button:hover{
  border-color: var(--focus-border);
  background: var(--panel-2);
}

/* Dark theme: keep file-selector buttons clearly legible on dark surfaces. */
html[data-theme="dark"] input[type="file"]::file-selector-button:hover,
html[data-theme="dark"] input[type="file"]::-webkit-file-upload-button:hover{
  background: rgba(255,255,255,.10);
}

input[type="file"]:focus{
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
  border-color: var(--focus-border);
}

/* Lightweight status colors for inline hints */
.hint.is-error{ color: var(--danger-ink); }
.hint.is-ok{ color: var(--ok-ink); }
.hint.is-pending{ color: var(--muted); }

/* Form layouts */
.grid-2, .grid-3{
  display:grid;
  gap: 14px;
}
.grid-2{ grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid-3{ grid-template-columns: repeat(3, minmax(0,1fr)); }
@media (max-width: 860px){
  .grid-2, .grid-3{ grid-template-columns: 1fr; }
}

.check-grid{
  display:grid;
  grid-template-columns: 1fr;
  gap: 8px;
}
@media (min-width: 760px){
  .check-grid{ grid-template-columns: 1fr 1fr; }
}

.help{
  margin-top: 10px;
  padding: 12px;
  border-radius: 14px;
  background: var(--help-bg);
  border: 1px solid var(--border);
  color: var(--help-ink);
}

.apply-summary{
  margin-top: 10px;
  padding: 12px;
  border-radius: 14px;
  background: var(--help-bg);
  border: 1px solid var(--border);
  display: grid;
  grid-template-columns: minmax(0, 96px) minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.apply-summary--no-media{
  grid-template-columns: 1fr;
}

.apply-summary__media{
  margin: 0;
  min-width: 0;
}

.apply-summary__media[hidden]{
  display: none !important;
}

.apply-summary__picture{
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--panel-2);
}

.apply-summary__picture img{
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.apply-summary__body{
  min-width: 0;
}

.apply-summary__text{
  margin: 0;
  color: var(--help-ink);
  line-height: 1.45;
}

.disclosure-summary{
  cursor: pointer;
  font-weight: 750;
}

@media (max-width: 560px){
  .apply-summary{
    grid-template-columns: minmax(0, 84px) minmax(0, 1fr);
    gap: 10px;
    padding: 10px;
  }
}

.upload-section{
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

/* ===============
   Buttons
   =============== */

.button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--white);
  font-weight: 650;
  cursor: pointer;
  text-decoration:none;
}

.button:hover{
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  text-decoration:none;
}



/* Black button (for simple non-accent CTAs) */
.button-black{
  background: var(--black);
  border-color: var(--black);
  color: var(--white);
}
.button-black:hover{
  background: #111;
  border-color: #111;
}
.button:active{ transform: translateY(1px); }

.button-ghost{
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent-border);
}

.button-ghost:hover{
  border-color: var(--accent);
  background: var(--accent-bg);
}

.button-row{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
  margin-top: 14px;
}

/* Flex spacer used in several forms (keeps trailing meta aligned right) */
.dash-spacer{ flex: 1 1 auto; }

/* Checkbox grids: make options easier to tap/click (especially on mobile) */
.check-grid label{
  position: relative;
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap: 10px;

  padding: 12px 12px;
  margin: 0;
  min-height: 44px;

  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--panel-2);
  color: var(--ink);

  cursor: pointer;
  user-select: none;

  transition: transform .08s ease, box-shadow .12s ease, background .12s ease, border-color .12s ease;
}

.check-grid label:hover{ background: rgba(0,0,0,.03); transform: translateY(-1px); }

.check-grid label:focus-within{
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
  border-color: var(--focus-border);
}

.check-grid label input[type="checkbox"]{
  width: 18px;
  height: 18px;
  margin: 0;
  flex: 0 0 auto;
}

/* Progressive enhancement: highlight checked options */
.check-grid label:has(input:checked){
  border-color: var(--focus-border);
  box-shadow: 0 10px 24px rgba(0,0,0,.10);
}

#skillsPicker.tb-check-groups{
  display: block;
}
#skillsPicker.tb-check-groups .tb-check-group__grid{
  display: grid;
}
.tb-check-group + .tb-check-group{
  margin-top: 14px;
}
.tb-check-group__title{
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--muted);
  text-transform: uppercase;
}
.tb-check-group__grid{
  margin-top: 0;
}
.check-grid label:has(input:checked)::after{
  content: "✓";
  position: absolute;
  top: 10px;
  right: 12px;
  font-size: 14px;
  font-weight: 800;
  opacity: .9;
}

/* Mobile: stack buttons and make primary actions full-width */
@media (max-width: 720px){
  .button-row{
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .button-row .button{
    width: 100%;
    justify-content: center;
  }
  .button-row .dash-spacer{ display:none; }
}

/* ===============
   Validation banner
   =============== */

.error{
  display:none;
  margin: 12px 0 0;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--danger);
  background: var(--danger-bg);
  color: var(--ink);
}

/* Status banner used by JS on secure forms */
.status-banner{
  margin: 12px 0 0;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--border-strong);
  background: rgba(0,0,0,.03);
  color: var(--ink);
}
.status-banner.is-error{
  border-color: var(--danger);
  background: var(--danger-bg);
}
.status-banner.is-ok{
  border-color: rgba(0,0,0,.25);
  background: rgba(0,0,0,.03);
}
.status-banner.is-pending{
  border-color: var(--border-strong);
}

/* Submitting overlay (apply flow) */
body.tb-overlay-open{ overflow: hidden; }

.tb-submit-overlay{
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(0,0,0,.45);
  backdrop-filter: blur(4px);
  z-index: 9999;
}

/* Ensure the native [hidden] attribute actually hides the overlay.
   Without this, the class selector above can override the UA stylesheet's
   default [hidden]{ display:none } and the overlay appears on page load. */
.tb-submit-overlay[hidden]{
  display: none !important;
}

.tb-submit-card{
  width: min(460px, 100%);
  background: var(--panel);
  border-radius: 22px;
  padding: 18px 18px 16px;
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
  text-align: center;
}

.tb-submit-spinner{
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 4px solid rgba(0,0,0,.12);
  border-top-color: rgba(0,0,0,.75);
  margin: 0 auto 10px;
  animation: tbspin .85s linear infinite;
}

@keyframes tbspin{ to{ transform: rotate(360deg);} }

.tb-submit-title{
  font-weight: 850;
  letter-spacing: .01em;
  font-size: 16px;
  margin-bottom: 4px;
}

.tb-submit-step{
  font-size: 14px;
  color: rgba(0,0,0,.75);
}

.tb-progress-track{
  height: 10px;
  background: rgba(0,0,0,.08);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 14px;
}

.tb-progress-bar{
  height: 100%;
  width: 35%;
  background: rgba(0,0,0,.85);
  border-radius: 999px;
  transition: width .2s ease;
}

.tb-progress-bar.is-indeterminate{
  width: 35%;
  animation: tbslide 1.2s ease-in-out infinite;
}

@keyframes tbslide{
  0%{ transform: translateX(-60%); }
  50%{ transform: translateX(60%); }
  100%{ transform: translateX(-60%); }
}

.tb-submit-percent{
  margin-top: 8px;
  font-size: 12px;
  color: rgba(0,0,0,.6);
  min-height: 14px;
}


/* Dark theme adjustments (dashboard uses html[data-theme="dark"]) */
html[data-theme="dark"] .tb-submit-card{
  border-color: rgba(255,255,255,.10);
  box-shadow: 0 20px 60px rgba(0,0,0,.55);
}

html[data-theme="dark"] .tb-submit-spinner{
  border-color: rgba(255,255,255,.18);
  border-top-color: rgba(255,255,255,.85);
}

html[data-theme="dark"] .tb-submit-step{
  color: rgba(255,255,255,.78);
}

html[data-theme="dark"] .tb-progress-track{
  background: rgba(255,255,255,.10);
}

html[data-theme="dark"] .tb-progress-bar{
  background: rgba(255,255,255,.86);
}

html[data-theme="dark"] .tb-submit-percent{
  color: rgba(255,255,255,.62);
}

html[data-theme="dark"] .status-banner{
  background: rgba(255,255,255,.04);
  border-color: var(--border-strong);
}

html[data-theme="dark"] .status-banner.is-ok{
  border-color: rgba(255,255,255,.22);
  background: rgba(255,255,255,.04);
}

.field.invalid label{ color: var(--danger-ink); }
input:invalid, select:invalid, textarea:invalid{ border-color: var(--danger); }

/* ===============
   Footer (links only)
   =============== */

.site-footer{
  background: var(--black);
  color: var(--white);
  margin-top: auto;
}

.footer-inner{
  max-width: 980px;
  margin: 0 auto;
  padding: 20px 16px;
  text-align:center;
}

.footer-links{
  display:flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content:center;
  margin: 0 0 10px;
  padding: 0;
  list-style:none;
}

.site-footer a{
  color: var(--white);
  text-decoration: underline;
}
.site-footer a:hover{ text-decoration:none; }

.footer-bottom{
  font-size: 12px;
  color: #d2d2d2; /* optional to token-ize later */
}

/* ===============
   Index splash
   =============== */

body.splash main{
  max-width: none;
  padding: 12vh 16px 10vh;
}

.splash-main{
  min-height: 70vh;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap: 14px;
  text-align:center;
}

.splash-logo img{
  width: min(560px, 82vw);
  height:auto;
}

.splash-note{
  margin: 0;
  color: var(--border-strong);
}



.splash-cta{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:10px;
  margin-top: 6px;
}
/* ===============
   Utilities + motion
   =============== */

.hidden{ display:none !important; }

/* Visually hidden (accessible SEO) */
.sr-only{
  position:absolute !important;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}

/* Page transition (home -> jobs) */
@media (prefers-reduced-motion: no-preference){
  body{ transition: opacity .18s ease, transform .18s ease; }
  body.tb-page-exit{ opacity: 0; transform: translateY(-4px); }
}

@media (prefers-reduced-motion: no-preference){
  .card, .form-card{ animation: tb-fadeUp .45s ease-out both; }
  .card:nth-of-type(2){ animation-delay: .05s; }
  .card:nth-of-type(3){ animation-delay: .10s; }
  .card:nth-of-type(4){ animation-delay: .15s; }

  .button{
    transition: transform .12s ease, background-color .12s ease, border-color .12s ease;
  }
  .button:hover{ transform: translateY(-1px); }
  .button:active{ transform: translateY(0px); }

  .splash-logo img{
    transition: transform .25s ease, filter .25s ease;
    will-change: transform;
  }
  .splash-logo:hover img{
    transform: scale(1.02);
    filter: drop-shadow(0 14px 24px rgba(0,0,0,.20));
  }

  a, input, select, textarea{
    transition: border-color .12s ease, outline-color .12s ease, background-color .12s ease;
  }

  @keyframes tb-fadeUp{
    from{ opacity:0; transform: translateY(6px); }
    to{ opacity:1; transform: translateY(0); }
  }
}

/* Project detail card (lives inside <main>, not in the header) */
.project-card--panel{
  width: 100%;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
  margin: 18px auto 22px;
}
.project-card__left{
  display:flex;
  align-items: flex-start;
  gap: 14px;
}
.project-card__left .logo img{ width: 44px; height: 44px; }
@media (max-width: 720px){
  .project-card__left{ align-items: center; }
}
/* Project card: content + image */
.project-card{
  display: grid;
  grid-template-columns: minmax(0,1fr) clamp(180px, 24vw, 260px);
  gap: 18px;
  align-items: start;
}

.project-card__content{
  min-width: 0;
}

.project-card__media{
  margin: 0;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  min-width: 0;
}

.project-card__media picture{
  display: block;
  width: 100%;
  max-width: 260px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--panel-2);
  box-shadow: var(--shadow);
}

.project-card__media img{
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}


/* Project card variants */
.project-card--no-media{
  grid-template-columns: 1fr;
}

#project-roles-list{
  display: grid;
  gap: 16px;
}

#projects-list{
  display: grid;
  gap: 16px;
}

/* Project card responsive layout */
@media (max-width: 860px){
  .project-card{ grid-template-columns: 1fr; }
  .project-card__media{
    order: -1;
    justify-content: flex-start;
  }
  .project-card__media picture{
    max-width: min(100%, 420px);
    aspect-ratio: 16 / 9;
  }
}

.filepicker{
  position:absolute;
  left:-9999px;
  width:1px;
  height:1px;
  opacity:0;
}

/* Dashboard: hide secondary forget button (remember button toggles) */
#btnForgetKey{ display:none; }


/* Light theme badge tweaks (stronger accents for OK / BAD) */
html[data-theme="light"]{
  --ok-border: #15803d;
  --ok-bg: rgba(22,163,74,0.18);
  --ok-ink: #064e3b;

  --bad-border: #b91c1c;
  --bad-bg: rgba(220,38,38,0.16);
  --bad-ink: #7f1d1d;
}


/* Form character counters */
.charcount{ color: var(--muted); font-size: 12px; margin-top: 6px; text-align: right; }
.field.invalid .charcount{ color: var(--bad-ink); }


/* Date row (listing request): keep open/close inputs readable on mobile */
.date-row{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  align-items:flex-end;
}
.date-row .date-col{
  flex:1 1 220px;
  min-width:0;
}
.date-row .date-col input{ width:100%; }
@media (max-width: 820px){
  .date-row{ flex-direction:column; align-items:stretch; }
  .date-row .date-col{ flex:1 1 auto; }
}


/* Marketing layout helpers (compat) */
.wrap{ max-width: 1040px; margin: 0 auto; padding: 18px; }
.page-hero{ margin: 10px auto 0; }
.content-card{
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 18px;
  padding: 18px;
  background: rgba(255,255,255,.8);
}


/* Honeypot (bots fill; humans never see) */
.tb-honeypot{
  position:absolute;
  left:-10000px;
  top:auto;
  width:1px;
  height:1px;
  overflow:hidden;
}


/* Project page helpers */
.project-hero{ margin-top: 10px; }
.project-info{ margin-top: 16px; }

/* Form wrapper helper */
.tb-form{ margin: 0; }


/* Dashboard request badge */
.badge-pending{background:#f59e0b; color:#111; border:1px solid rgba(0,0,0,.15);} 

.notice-ok{
  background: var(--ok-bg);
  border: 1px solid var(--ok-border);
  color: var(--ok-ink);
  display: inline-block;
  padding: 10px 12px;
  border-radius: 12px;
}

.notice-warn{
  background: var(--bad-bg);
  border: 1px solid var(--bad-border);
  color: var(--bad-ink);
  display: inline-block;
  padding: 10px 12px;
  border-radius: 12px;
}

.callout{background: rgba(245,158,11,.10); border:1px solid rgba(245,158,11,.35); padding:12px 14px; border-radius:14px;}


/* ===============
   Visual blocks (process/employers)
   =============== */

.visuals .card{ overflow:hidden; }
.chart-wrap{
  border: 1px solid var(--border);
  background: var(--panel-2);
  border-radius: 14px;
  padding: 10px;
  margin-top: 10px;
}
.bar-chart{
  width: 100%;
  height: 220px;
  display:block;
  color: var(--ink);
}

.flow-diagram{
  margin-top: 10px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.flow-step{
  display:flex;
  gap:12px;
  align-items:flex-start;
  border: 1px solid var(--border);
  background: var(--panel-2);
  border-radius: 14px;
  padding: 12px 12px;
}
.flow-kicker{
  width: 30px;
  height: 30px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--panel);
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight: 800;
  font-size: 13px;
}
.flow-title{ font-weight: 800; letter-spacing: .2px; }
.flow-sub{ color: var(--muted); font-size: 13px; margin-top: 2px; }
.flow-arrow{
  text-align:center;
  color: var(--muted);
  font-weight: 900;
  letter-spacing: .2px;
  user-select:none;
}

.shot-grid{
  display:grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 10px;
}
@media (min-width: 720px){
  .shot-grid{ grid-template-columns: 1fr 1fr; }
  .shot-grid .shot:nth-child(3){ grid-column: 1 / -1; }
}
.shot{
  margin:0;
  border: 1px solid var(--border);
  background: var(--panel-2);
  border-radius: 14px;
  overflow:hidden;
}
.media-placeholder{
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background:
    linear-gradient(135deg, rgba(0,0,0,.06) 0%, rgba(0,0,0,.02) 35%, rgba(0,0,0,.06) 70%),
    repeating-linear-gradient(45deg, rgba(0,0,0,.05) 0 10px, rgba(0,0,0,.02) 10px 20px);
}
.media-placeholder::after{
  content: attr(data-label);
  position:absolute;
  left:12px;
  bottom:12px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.85);
  color: var(--subtle-ink);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .3px;
}

.mono{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: .95em;
}


/* Employers page: screenshot images */
.shot-img{
  display:block;
  width: 100%;
  height: auto;
}

/* Shared accent + performance cards (matches dashboard Performance panel) */
:root{
  --tb-accent: #2563eb;
  --tb-accent-bg: rgba(37,99,235,0.12);
  --tb-accent-border: rgba(37,99,235,0.55);
}
html[data-theme="dark"]{
  --tb-accent: #60a5fa;
  --tb-accent-bg: rgba(96,165,250,0.14);
  --tb-accent-border: rgba(96,165,250,0.55);
}

.tb-analytics__summary{
  margin-top: 10px;
}
.tb-analytics__grid{
  margin-top: 10px;
  display: grid;
  gap: 10px;
}
.tb-analytics__row{
  padding: 10px 10px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--panel);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.tb-analytics__k{
  font-size: 13px;
  font-weight: 800;
}
.tb-analytics__meta{
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
  line-height: 1.35;
}
.tb-analytics__v{
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;

}

/* Performance visualization (Employer Portal Help) */
.tb-analytics__grid{
  display: grid;
  gap: 12px;
}

.tb-analytics__card{
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--panel);
  box-shadow: inset 0 2px 0 var(--tb-accent-bg);
}

.tb-analytics__head{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.tb-analytics__title{
  font-size: 13px;
  font-weight: 900;
}

.tb-analytics__count{
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.tb-analytics__metrics{
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 10px;
}

.tb-ring{
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: conic-gradient(var(--tb-accent) calc(var(--score,0) * 1%), var(--border) 0);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.tb-ring__inner{
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: var(--panel-2);
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 950;
}

.tb-mbars{
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tb-mbar{
  display: grid;
  grid-template-columns: 78px minmax(0,1fr) 46px;
  gap: 8px;
  align-items: center;
}

.tb-mbar__k{
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--muted);
}

.tb-bar{
  height: 10px;
  border-radius: 999px;
  background: var(--panel-2);
  border: 1px solid var(--border);
  overflow: hidden;
}

.tb-bar > span{
  display:block;
  height:100%;
  width: 0%;
  background: var(--tb-accent);
  opacity: .22;
  transition: width .7s ease;
}

.tb-mbar__v{
  font-size: 12px;
  font-weight: 900;
  text-align: right;
  white-space: nowrap;
}

/* Job listings (static, crawlable) */
.job-card{
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 10px 24px rgba(0,0,0,.05);
  margin: 14px 0;
}
.job-card h2{
  margin: 0 0 8px 0;
  font-size: 1.1rem;
}
.job-card a{ text-decoration: none; }
.job-card a:hover{ text-decoration: underline; }




/* Accent utility */
.badge-accent{
  border-color: var(--accent-border);
  background: var(--accent-bg);
  color: var(--surface-ink);
}

/* Callout variants */
.callout-info{
  background: var(--accent-bg);
  border: 1px solid var(--accent-border);
  color: var(--surface-ink);
}
.callout-info strong{ color: var(--accent-hover); }

/* Employers page: screenshot cards (click-to-zoom) */
.shot-link{
  display:block;
  position:relative;
  color: inherit;
  text-decoration:none;
}
.shot-link:hover{ text-decoration:none; }
.shot-link:focus{
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
}
.shot-hint{
  position:absolute;
  right:10px;
  top:10px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.35);
  background: rgba(0,0,0,0.55);
  color: #fff;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .2px;
}
.shot-cap{
  padding: 10px 12px 12px;
  border-top: 1px solid var(--border);
  background: rgba(255,255,255,0.6);
}
.shot-title{
  font-weight: 850;
  font-size: 13px;
  color: var(--surface-ink);
  margin-bottom: 2px;
}

/* Lightweight image lightbox */
.tb-lightbox{
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.tb-lightbox.is-open{ display:flex; }
.tb-lightbox__backdrop{
  position:absolute;
  inset: 0;
  background: rgba(0,0,0,0.66);
  backdrop-filter: blur(2px);
}
.tb-lightbox__panel{
  position: relative;
  width: min(980px, 100%);
  max-height: 90vh;
  overflow: auto;
  background: var(--panel);
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 30px 80px rgba(0,0,0,0.35);
  padding: 14px;
}
.tb-lightbox__top{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.tb-lightbox__title{
  font-weight: 850;
  color: var(--surface-ink);
  font-size: 14px;
}
.tb-lightbox__img{
  display:block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--panel-2);
}
.tb-lightbox__caption{
  margin-top: 10px;
}
.tb-lightbox__hint{
  margin-top: 6px;
  font-size: 12px;
  color: var(--muted);
}
body.tb-noscroll{ overflow: hidden; }



/* Job page hero media */
.hero,
.hero--job{
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(220px, 0.85fr);
  gap: 20px;
  align-items: center;
  margin: 10px auto 0;
}
.hero__copy{ min-width: 0; }
.hero__media{
  min-width: 0;
  display: flex;
  justify-content: flex-end;
}
.hero__media picture,
.hero__media .hero__img-wrap{
  display: block;
  width: min(100%, 420px);
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--panel-2);
  box-shadow: var(--shadow);
}
.hero__img{
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@media (max-width: 860px){
  .hero,
  .hero--job{
    grid-template-columns: 1fr;
  }
  .hero__media{
    justify-content: flex-start;
    order: -1;
  }
  .hero__media picture,
  .hero__media .hero__img-wrap{
    width: min(100%, 520px);
    aspect-ratio: 16 / 9;
  }
}
