/* jobs in the wild — tal palette, early internet vibe.
   palette taken from existing tal mocks: cream canvas, peach/mint/yellow accents,
   ink for text, orange #f05a22 for the load-bearing call-to-action. */

:root {
  --cream: #fbf2e8;
  --cream-deep: #f3e3cf;
  --paper: #ffffff;
  --ink: #15120f;
  --ink-soft: #4d4338;
  --ink-faint: #877766;
  --rule: #e7d8c2;
  --rule-soft: #efe2cb;
  --orange: #f05a22;
  --orange-soft: #ff8a3d;
  --peach: #ffe0cc;
  --mint: #dff6e8;
  --yellow: #fff4bd;
  --link: #2a4ba0;        /* early internet blue, warmed */
  --link-visited: #6b3aa0;
  --good: #1f6d3b;
  --bad:  #8f3215;
  --display: "Fredoka", "Tiempos Headline", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--link); text-decoration: underline; text-underline-offset: 2px; }
a:visited { color: var(--link-visited); }
a:hover { color: var(--orange); }

.wrap { max-width: 880px; margin: 0 auto; padding: 24px 18px 64px; }
.wrap.wide { max-width: 1180px; }

/* ---------- HEADER ---------- */
.masthead {
  border-bottom: 2px dashed var(--rule);
  padding-bottom: 16px;
  margin-bottom: 18px;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand:visited, .brand { color: var(--ink); }
.brand img { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--ink); background: var(--peach); }
.brand h1 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 34px;
  letter-spacing: -0.5px;
  margin: 0;
  line-height: 1;
}
.brand h1 .dot { color: var(--orange); }
.brand small {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-faint);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
/* Two tags: long-form on desktop, punchier copy on mobile. Toggled in the
   mobile media block below so we always render exactly one. */
.brand .mobile-tag { display: none; }
.mast-meta {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-faint);
  text-align: right;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.mast-meta .pill {
  display: inline-block; border: 1px solid var(--rule); border-radius: 999px;
  padding: 2px 10px; background: var(--paper); color: var(--ink-soft);
  margin-left: 6px;
}
.mast-meta .pill-live {
  border-color: rgba(70, 140, 70, 0.40);
  color: var(--good);
  background: rgba(70, 140, 70, 0.08);
}
.mast-meta .pill-live .live-dot {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: var(--good); margin-right: 6px; vertical-align: baseline;
  animation: live-pulse 1.8s ease-in-out infinite;
}
@keyframes live-pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(70, 140, 70, 0.5); }
  50%      { opacity: 0.55; box-shadow: 0 0 0 4px rgba(70, 140, 70, 0); }
}

/* ---------- INTRO / NOTICE BOARD (legacy, kept for non-index pages) ---------- */
.notice {
  background: var(--yellow);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 12px 16px;
  margin: 0 0 22px;
  font-size: 14px;
  display: flex; gap: 12px; align-items: flex-start;
}
.notice b { font-family: var(--display); font-weight: 600; font-size: 16px; display: block; margin-bottom: 2px; }
.notice .tal-mark { font-size: 22px; line-height: 1; }

/* ---------- HERO (craigslist / hn vibe — one strong line, plain prose) ---------- */
.hero {
  margin: 4px 0 18px;
  padding: 0 2px;
}
.hero h2 {
  font-family: var(--display);
  font-size: 28px;
  line-height: 1.2;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.hero-sub {
  font-size: 14px; color: var(--ink-soft);
  margin: 0; font-family: var(--mono);
}
@media (max-width: 720px) {
  .hero h2 { font-size: 22px; }
  .hero-sub { font-size: 13px; }
}

/* ---------- TWO-COL FEED LAYOUT (feed | manifesto rail) ---------- */
.feed-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: start;
}
@media (min-width: 1024px) {
  .feed-layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; }
}
.feed { min-width: 0; }  /* lets grid items shrink properly */

/* the manifesto rail — text-first, HN-flavored, no chrome */
.rail-side {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-soft);
}
@media (min-width: 1024px) {
  .rail-side {
    position: sticky; top: 18px;          /* follows you down on desktop */
    align-self: start;
    max-height: calc(100vh - 36px);
    overflow-y: auto;
  }
}
.rail-block {
  padding: 14px 16px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 6px;
  margin-bottom: 10px;
}
.rail-block h3 {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.6px;
  color: var(--ink);
  margin: 0 0 8px;
  padding-bottom: 6px;
  border-bottom: 1px dashed var(--rule);
}
.rail-block p { margin: 0 0 8px; }
.rail-block p:last-child { margin-bottom: 0; }
.rail-block ul {
  margin: 0; padding-left: 18px;
  list-style: square;
}
.rail-block ul li { margin: 4px 0; }
.rail-block ul li::marker { color: var(--ink-faint); }
.rail-block b { color: var(--ink); font-weight: 600; }
.rail-block a { color: var(--orange); text-decoration: underline; text-underline-offset: 2px; }
.rail-block a:hover { text-decoration: none; }
.rail-sig {
  font-family: var(--mono); font-size: 11px;
  color: var(--ink-faint); margin-top: 10px !important;
}
@media (max-width: 1023px) {
  /* On tablet/mobile the rail moves above the feed and goes one-row of compact blocks. */
  .rail-side {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 8px;
    margin-bottom: 8px;
  }
  .rail-block { margin-bottom: 0; }
}
@media (max-width: 720px) {
  .rail-side { grid-template-columns: 1fr; gap: 6px; }
  .rail-block { padding: 12px 14px; }
}

/* ---------- FILTERS ---------- */
/* Global: anything tagged .is-hidden is gone. We can't rely on the [hidden]
   attribute because .filter-row { display:flex } outranks it. */
.is-hidden { display: none !important; }

.filters {
  display: flex; flex-direction: column; gap: 6px;
  margin: 0 0 18px;
}
.filter-row {
  display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
  padding: 6px 2px;
}
.filter-row.primary {
  border-bottom: 1px dashed var(--rule);
  padding-bottom: 8px;
}
.filter-row.function-row {
  flex-wrap: nowrap; gap: 8px;
}
/* Live "people live" pill on the sort row. Desktop already shows the masthead
   pill, so this is hidden there and only surfaces on mweb / embed mode. */
.filter-live {
  display: none;
  margin-left: auto;
  flex: 0 0 auto;
  align-items: center;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2px;
  white-space: nowrap;
  border: 1px solid rgba(70, 140, 70, 0.40);
  border-radius: 999px;
  padding: 3px 10px;
  color: var(--good);
  background: rgba(70, 140, 70, 0.08);
}
.filter-live .live-dot {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: var(--good); margin-right: 6px;
  animation: live-pulse 1.8s ease-in-out infinite;
}
@media (max-width: 720px) { .filter-live { display: inline-flex; } }
html.is-embed .filter-live { display: inline-flex; }
/* horizontally scrollable strip holding the function chips so 10+ roles
   don't sprawl into a multi-row mess */
.chip-scroll {
  display: flex; gap: 4px; flex: 1; min-width: 0;
  overflow-x: auto; padding-bottom: 2px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.chip-scroll::-webkit-scrollbar { height: 4px; }
.chip-scroll::-webkit-scrollbar-thumb { background: var(--rule); border-radius: 2px; }
.filter-row.secondary {
  flex-direction: column; align-items: flex-start; gap: 6px;
  padding: 10px 12px;
  background: var(--paper);
  border: 1px dashed var(--rule);
  border-radius: 8px;
}
.filter-row.secondary > .filter-label { margin-top: 4px; }
.filter-sep {
  width: 1px; height: 16px; background: var(--rule);
  margin: 0 6px;
}
.filter-label {
  font-family: var(--mono); font-size: 10px; color: var(--ink-faint);
  text-transform: uppercase; letter-spacing: 1.5px;
}
.chip {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink-soft);
  font-size: 12px;
  text-decoration: none;
  font-family: var(--mono);
  white-space: nowrap;
  transition: background 0.08s ease, color 0.08s ease, border-color 0.08s ease;
  -webkit-tap-highlight-color: transparent;
}
.chip:hover { background: var(--cream-deep); color: var(--ink); }
.chip.active { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.chip .x { font-size: 10px; opacity: 0.7; margin-left: 4px; }
.chip.more-toggle {
  margin-left: auto; cursor: pointer; font-family: var(--mono);
  background: var(--cream-deep); color: var(--ink-faint); border: 1px solid var(--rule);
}
.chip.more-toggle:hover { color: var(--ink); }

/* Infinite-scroll sentinel — small, unobtrusive "loading more…" hint at the
   foot of the feed. The IntersectionObserver fires well before this is
   visible (rootMargin: 600px), so users rarely see it lit. */
.feed-sentinel {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-faint);
  text-align: center;
  padding: 18px 12px 8px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* ---------- POSTS GRID ---------- */
/* Single column, one post after another — a readable feed, not a masonry
   wall. Cards stay full (not one-liners); the .feed column caps the width. */
.posts {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

/* compact preview card — used on the gallery. detail page uses full card. */
.post-frame.compact {
  max-height: 520px;
  position: relative;
}
.post-frame.compact .post { padding: 12px 14px; }
.post-frame.compact .author { margin-bottom: 8px; }
.post-frame.compact .author .avatar { width: 40px; height: 40px; flex-basis: 40px; }
.post-frame.compact .author .name { font-size: 14px; }
.post-frame.compact .author .headline {
  font-size: 12px; line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; text-overflow: ellipsis;
}
.post-frame.compact .role-panel.compact-role {
  margin-top: 10px; padding-top: 10px;
  border-top: 1px dashed var(--rule);
}
.post-frame.compact .role-name { font-size: 16px; line-height: 1.25; }
.post-frame.compact .body.clamp {
  font-size: 13.5px;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 10px;
  color: var(--ink-soft);
}
.post-frame.compact .tag-strip { margin-top: 8px; }
.post-frame.compact .tag { font-size: 10.5px; padding: 1px 7px; }
.post-frame.compact .actions { margin-top: 10px; padding-top: 10px; }
.post-frame.compact .btn-apply { padding: 6px 14px; font-size: 12.5px; }
.post-frame.compact .btn-ghost { padding: 6px 12px; font-size: 12px; }
.post-frame.compact .post-source-tag { margin-bottom: 6px; }
.post-frame.compact .open-link {
  font-family: var(--mono); font-size: 10px;
  text-transform: uppercase; letter-spacing: 1.5px;
  color: var(--ink-faint); text-decoration: none;
}
.post-frame.compact .open-link:hover { color: var(--orange); }

/* whole-card click affordance */
.post-frame.compact[data-href] {
  cursor: pointer;
  transition: transform 0.08s ease, border-color 0.08s ease, box-shadow 0.08s ease;
  touch-action: manipulation;            /* kills the 300ms tap delay on mobile */
  -webkit-tap-highlight-color: transparent;
}
.post-frame.compact[data-href]:hover { border-color: var(--ink); box-shadow: 0 2px 0 var(--rule-soft), 0 6px 18px -10px rgba(21,18,15,0.18); }
.post-frame.compact[data-href]:active { transform: scale(0.985); box-shadow: 0 1px 0 var(--rule-soft); }
/* keep nested links/buttons hoverable on their own */
.post-frame.compact[data-href] a, .post-frame.compact[data-href] button { cursor: pointer; }
.post-frame.compact[data-href] .rail button { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.post-frame {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  box-shadow: 0 1px 0 var(--rule-soft);
}
.post-frame:hover { border-color: var(--ink-soft); }

/* Inline vote rail — lives at the start of .actions, sits on one row with
   "comments" and "see post ↗". Replaces the old vertical left-rail. */
.rail {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  flex: 0 0 auto;
}
.rail form { margin: 0; display: inline-flex; }
.rail button {
  background: transparent;
  border: 1px solid transparent;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  padding: 8px 10px;
  border-radius: 999px;
  color: var(--ink-faint);
  min-width: 40px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.rail button:hover { background: var(--cream-deep); color: var(--ink); }
.rail .score {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  min-width: 20px;
  text-align: center;
  padding: 0 2px;
}
.rail button.voted-up   { color: var(--orange); background: rgba(240, 90, 34, 0.10); }
.rail button.voted-down { color: var(--bad);    background: rgba(143, 50, 21, 0.10); }

/* the post itself, in two flavors */
.post { flex: 1; padding: 14px 18px; min-width: 0; }

.post-source-tag {
  font-family: var(--mono); font-size: 10px;
  text-transform: uppercase; letter-spacing: 1.5px;
  color: var(--ink-faint); display: flex; align-items: center; gap: 6px;
  margin-bottom: 8px;
}
.post-source-tag .src {
  display: inline-block; padding: 1px 7px; border-radius: 3px;
  background: var(--ink); color: var(--cream);
}
.post-source-tag .src.x { background: #0f1419; }
.post-source-tag .src.linkedin { background: #0a66c2; }

/* LinkedIn-style header */
.author {
  display: flex; gap: 10px; align-items: flex-start;
  margin-bottom: 10px;
}
.author .avatar {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--peach); border: 1px solid var(--rule);
  object-fit: cover; flex: 0 0 48px;
}
.author .who { flex: 1; min-width: 0; }
.author .name { font-weight: 700; color: var(--ink); font-size: 15px; line-height: 1.25; }
.author .name a { color: var(--ink); text-decoration: none; }
.author .name a:hover { text-decoration: underline; }
.author .headline { color: var(--ink-soft); font-size: 13px; line-height: 1.3; margin-top: 1px; }
.author .when { color: var(--ink-faint); font-size: 12px; font-family: var(--mono); margin-top: 2px; }

/* the actual post body — preserves linebreaks like linkedin/x do */
.body {
  white-space: pre-wrap;
  font-size: 14.5px;
  color: var(--ink);
  line-height: 1.55;
  word-wrap: break-word;
}
.body.linkedin { font-family: var(--sans); }
.body.x {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  font-size: 15px;
}
.body.empty {
  color: var(--ink-faint); font-style: italic; font-size: 13px;
}

/* image rail under the post */
.imgs {
  display: grid;
  gap: 4px;
  margin-top: 10px;
  border-radius: 6px;
  overflow: hidden;
}
.imgs.n1 { grid-template-columns: 1fr; }
.imgs.n2 { grid-template-columns: 1fr 1fr; }
.imgs.n3 { grid-template-columns: 2fr 1fr; }
.imgs.n3 img:first-child { grid-row: span 2; }
.imgs.n4, .imgs.n5, .imgs.n6 { grid-template-columns: 1fr 1fr; }
.imgs img {
  width: 100%; height: 100%; max-height: 360px;
  object-fit: cover; display: block;
  background: var(--cream-deep);
}

/* role panel (admin truth) */
.role-panel {
  margin-top: 14px;
  border-top: 1px dashed var(--rule);
  padding-top: 12px;
  display: flex; flex-direction: column; gap: 6px;
}
.role-row { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.role-label {
  font-family: var(--mono); font-size: 10px; color: var(--ink-faint);
  text-transform: uppercase; letter-spacing: 1.5px; min-width: 56px;
}
.role-value { color: var(--ink); font-size: 14px; }
.role-name { font-family: var(--display); font-weight: 600; font-size: 19px; color: var(--ink); }
.role-jd {
  background: var(--cream); border-radius: 4px; padding: 8px 10px;
  font-size: 13.5px; color: var(--ink-soft); white-space: pre-wrap;
}

/* tags + footer of card */
.tag-strip {
  display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px;
}
.tag {
  font-family: var(--mono); font-size: 11px;
  padding: 2px 8px; border-radius: 999px;
  background: var(--mint); color: var(--ink-soft);
  border: 1px solid #cbe7d5;
}
.tag.role { background: var(--peach); border-color: #f0c8a6; }
.tag.seniority { background: var(--yellow); border-color: #ebd87b; }
.tag.remote { background: var(--cream-deep); border-color: var(--rule); }
.tag.stage { background: #efe6ff; border-color: #d6c4ee; }

.tal-one-liner {
  background: var(--cream);
  border-left: 3px solid var(--orange);
  padding: 6px 10px;
  margin-top: 10px;
  font-size: 13.5px;
  color: var(--ink-soft);
  font-style: italic;
}
.tal-one-liner b { font-style: normal; color: var(--orange); font-family: var(--mono); font-size: 11px; letter-spacing: 1px; text-transform: uppercase; margin-right: 6px; }

.actions {
  display: flex;
  gap: 8px;
  /* Wrap to a second line on narrow screens instead of squeezing the buttons.
     Combined with white-space:nowrap + flex-shrink:0 on each button below, this
     stops "see post" from collapsing into a circle when it runs out of room. */
  flex-wrap: wrap;
  row-gap: 8px;
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid var(--rule);
  align-items: center;
}
/* "see post ↗" is the primary CTA — pin it to the right end of the row. */
.actions .btn-apply { margin-left: auto; }
/* Comments meta-link: icon + count, ghosted into the row beside the votes. */
.meta-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 10px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink-faint);
  text-decoration: none;
  min-height: 40px;
  -webkit-tap-highlight-color: transparent;
  flex-shrink: 0;
}
.meta-link:hover { background: var(--cream-deep); color: var(--ink); }
.meta-link-icon { font-size: 14px; }
/* Shared inline line-icon for the action row (comments + share). Stroke-based,
   currentColor, identical weight so both icons read as one family. */
.ico {
  width: 18px; height: 18px;
  fill: none; stroke: currentColor;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  display: block; flex-shrink: 0;
}
.btn-apply {
  background: var(--orange); color: white;
  padding: 8px 16px; border-radius: 999px;
  font-weight: 600; font-size: 13.5px;
  text-decoration: none; border: 0;
  display: inline-block;
  white-space: nowrap; flex-shrink: 0;
}
.btn-apply:hover, .btn-apply:visited { color: white; background: var(--orange-soft); }
.btn-ghost {
  padding: 8px 14px; border-radius: 999px;
  background: transparent; border: 1px solid var(--rule);
  color: var(--ink-soft); font-size: 13px; text-decoration: none;
  font-family: var(--mono);
  white-space: nowrap; flex-shrink: 0;
}
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
/* Share — a borderless line-icon button that matches the comments icon exactly
   (same ghost vocabulary, same 40px tap target), so the action row reads as one
   consistent icon family instead of a worded pill. */
.share-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 8px 10px; border-radius: 999px;
  background: transparent; border: 0;
  color: var(--ink-faint);
  cursor: pointer; -webkit-tap-highlight-color: transparent;
  min-height: 40px; min-width: 40px;
  flex-shrink: 0;
}
.share-btn:hover { background: var(--cream-deep); color: var(--ink); }
.share-btn.shared { color: var(--orange); }
.comment-count { font-family: var(--mono); font-size: 12px; color: var(--ink-faint); margin-left: auto; }

/* ---------- DETAIL PAGE ---------- */
/* Inline back link — used on every non-home page, including mobile (the old
   floating "chip" version was removed because it visually didn't belong to
   the card hierarchy and looked dropped-in from another app). Sized as a
   real tap target so it's finger-friendly. */
.back-link {
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin: 4px 0 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px 8px 0;
  color: var(--ink-soft);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.back-link:hover { color: var(--orange); }

.comments-block {
  margin-top: 28px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 16px 18px;
}
.comments-block h3 {
  font-family: var(--display); font-weight: 600; margin: 0 0 12px;
  font-size: 20px;
}
.comments-block h3 small { font-family: var(--mono); font-size: 11px; color: var(--ink-faint); margin-left: 6px; }

.repost-note {
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-soft);
  background: var(--peach);
  border: 1px dashed var(--rule);
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 14px;
}
.repost-note b { color: var(--ink); }
.repost-note a { color: var(--ink); text-decoration: underline; font-weight: 600; }

/* Shown right after someone posts an "i'm interested"-type comment: a louder
   reminder that the boss won't read it here. */
.reachout-note {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--yellow);
  border: 1px solid var(--ink);
  border-radius: 8px;
  padding: 11px 13px;
  margin-bottom: 14px;
}
.reachout-note a { color: var(--ink); text-decoration: underline; font-weight: 700; }

.comment {
  border-top: 1px dashed var(--rule);
  padding: 10px 0;
}
.comment:first-of-type { border-top: 0; padding-top: 0; }
.comment .who { font-weight: 600; font-size: 13.5px; color: var(--ink); }
.comment .when { font-family: var(--mono); font-size: 11px; color: var(--ink-faint); margin-left: 6px; }
.comment .body { white-space: pre-wrap; font-size: 14px; color: var(--ink-soft); margin-top: 3px; }

.comment-form { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--rule); }
.comment-form .row { display: flex; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.comment-form input[type="text"], .comment-form textarea {
  font-family: var(--sans); font-size: 14px;
  padding: 8px 10px; border: 1px solid var(--rule); border-radius: 6px;
  background: var(--cream); color: var(--ink); width: 100%;
}
.comment-form textarea { resize: vertical; min-height: 70px; }
.comment-form input[type="text"] { max-width: 220px; }
.comment-form button {
  font-family: var(--sans);
  background: var(--ink); color: var(--cream); border: 0;
  padding: 8px 16px; border-radius: 999px; font-weight: 600;
  cursor: pointer; font-size: 13px;
}
.comment-form button:hover { background: var(--orange); }
.comment-form small { font-family: var(--mono); font-size: 11px; color: var(--ink-faint); }

/* ---------- ADMIN ---------- */
.admin-box {
  background: var(--paper); border: 1px solid var(--rule); border-radius: 8px;
  padding: 22px; max-width: 640px; margin: 0 auto;
}
.admin-box h2 { font-family: var(--display); margin: 0 0 14px; font-size: 24px; }
.admin-box label {
  display: block; font-family: var(--mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: 1.2px;
  color: var(--ink-faint); margin: 12px 0 4px;
}
.admin-box input, .admin-box textarea {
  width: 100%; padding: 9px 11px; border: 1px solid var(--rule);
  border-radius: 6px; background: var(--cream); font-family: var(--sans);
  font-size: 14px; color: var(--ink);
}
.admin-box textarea { resize: vertical; min-height: 110px; font-family: var(--sans); }
.admin-box button {
  background: var(--orange); color: white; border: 0; cursor: pointer;
  padding: 10px 22px; border-radius: 999px; font-weight: 600;
  margin-top: 16px; font-size: 14px;
}
.admin-box button:hover { background: var(--orange-soft); }
.admin-box .err { color: var(--bad); font-size: 13px; margin-top: 8px; }
.admin-box .ok { color: var(--good); font-size: 13px; margin-top: 8px; }
.admin-list { margin-top: 24px; }
.admin-row {
  display: flex; gap: 10px; align-items: center; justify-content: space-between;
  border-top: 1px solid var(--rule); padding: 8px 0; font-size: 13px;
}
/* min-width:0 lets the text column shrink + wrap instead of forcing the row
   wide; flex:1 makes it take the space left of the delete button. */
.admin-row-main { flex: 1 1 auto; min-width: 0; }
.admin-row-main strong { display: block; line-height: 1.35; }
.admin-row-co { color: var(--ink-faint); font-weight: 500; }
.admin-row .meta { color: var(--ink-faint); font-family: var(--mono); font-size: 11px; margin-top: 2px; word-break: break-word; }
.admin-row form { margin: 0; }
.admin-row button {
  background: var(--cream-deep); color: var(--bad); padding: 4px 10px;
  font-size: 11px; font-family: var(--mono); margin: 0;
}

/* ---------- GOOGLE SIGN-IN ---------- */
.btn-google {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 11px 20px; border-radius: 999px;
  background: var(--paper); border: 1px solid var(--rule);
  color: var(--ink); font-weight: 600; font-size: 14px;
  text-decoration: none; margin-top: 8px;
}
.btn-google:hover { border-color: var(--ink); }
.btn-google .g-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--orange); color: #fff;
  font-family: var(--display); font-weight: 700; font-size: 14px;
}

/* ---------- ADMIN DAILY COUNTER ---------- */
.counter-box { margin-bottom: 18px; }
.counter-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px; flex-wrap: wrap;
}
.counter-head h2 { font-size: 22px; }
.counter-total {
  font-family: var(--display); color: var(--orange);
  font-size: 30px; margin-left: 6px;
}
.counter-you {
  font-family: var(--mono); font-size: 11px; color: var(--ink-faint);
  text-transform: uppercase; letter-spacing: 1px;
}
.who-strip {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px;
}
.who-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: 999px;
  background: var(--cream-deep); font-size: 13px; color: var(--ink-soft);
}
.who-pill b { color: var(--orange); font-family: var(--mono); }
/* Untracked/legacy bucket — clearly not a contributor, so mute it. */
.who-pill-muted { background: transparent; border: 1px dashed var(--rule); color: var(--ink-faint); }
.who-pill-muted b { color: var(--ink-faint); }
.who-empty { font-size: 13px; color: var(--ink-faint); }
.trend {
  display: flex; gap: 10px; margin-top: 14px;
  padding-top: 12px; border-top: 1px solid var(--rule);
  overflow-x: auto;
}
.trend-day {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  font-family: var(--mono); font-size: 15px; color: var(--ink); min-width: 34px;
}
.trend-day i { font-size: 10px; color: var(--ink-faint); font-style: normal; }

/* ---------- EMPTY ---------- */
.empty-state {
  text-align: center; padding: 60px 20px; color: var(--ink-faint);
}
.empty-state h2 { font-family: var(--display); color: var(--ink); margin: 0 0 8px; }
.empty-state code {
  font-family: var(--mono); background: var(--cream-deep); padding: 2px 6px; border-radius: 4px; color: var(--ink);
}

/* ---------- FOOTER ---------- */
footer {
  margin-top: 60px;
  padding-top: 22px;
  border-top: 2px dashed var(--rule);
  text-align: center;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-faint);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}
footer .heart { color: var(--orange); font-family: var(--sans); }

/* ---------- MOBILE ---------- */
@media (max-width: 880px) {
  .wrap, .wrap.wide { padding: 14px 10px 40px; max-width: 100%; }
  .posts { grid-template-columns: 1fr; gap: 14px; }
}
@media (max-width: 720px) {
  /* Blinkit/Zepto principle: app-chrome is precious — minimal top, then
     a sticky filter bar, then content immediately. The Tal webview adds
     its own chrome on top of this, so every pixel up here costs twice. */
  .wrap, .wrap.wide { padding: 6px 8px 36px; }

  /* Slim masthead — one tight line. Drop the subtitle and counter pill;
     the page itself is the answer. */
  .masthead {
    padding-bottom: 6px;
    margin-bottom: 6px;
    border-bottom: 1px dashed var(--rule);
    gap: 6px;
  }
  .brand { gap: 8px; }
  .brand img { width: 26px; height: 26px; border-width: 1.5px; }
  .brand h1 { font-size: 17px; letter-spacing: -0.3px; }
  .brand .desktop-tag { display: none; }
  .brand .mobile-tag {
    display: block;
    font-family: var(--mono);
    font-size: 10px;
    color: var(--ink-faint);
    margin-top: 2px;
    text-transform: none;       /* punchier in mixed case at this size */
    letter-spacing: 0.4px;
  }
  /* Hide the meta strip on mobile everywhere EXCEPT the home masthead, where
     we keep just the live "people in the wild" pill, neatly top-right. */
  .mast-meta { display: none; }
  .masthead { align-items: center; flex-wrap: nowrap; }
  .brand { min-width: 0; flex: 1 1 auto; }
  .mast-meta-home {
    display: block;
    flex: 0 0 auto;
    align-self: center;
    margin-left: auto;
  }
  .mast-meta-home .pill-live {
    font-size: 10px;
    padding: 3px 9px;
    white-space: nowrap;
  }

  /* Kill the hero on mobile — masthead already names the thing. */
  .hero { display: none; }

  /* Sticky, dense filter bar — Blinkit category strip. */
  .filters {
    position: sticky;
    top: 0;
    z-index: 20;
    background: var(--cream);
    margin: 0 -8px 8px;   /* bleed to viewport edge for true edge-scroll */
    padding: 6px 8px 4px;
    gap: 4px;
    border-bottom: 1px solid var(--rule);
  }
  .filter-row { gap: 4px; padding: 0; }
  .filter-row.primary {
    border-bottom: 0;
    padding-bottom: 0;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .filter-row.primary::-webkit-scrollbar { display: none; }
  .filter-label { display: none; }   /* chip labels are self-explanatory */
  .filter-sep { display: none; }
  .chip { padding: 6px 12px; font-size: 12px; }   /* 32px tap target */
  .chip.more-toggle { margin-left: 4px; }
  .filter-row.function-row { padding: 0; }

  .post-frame.compact { max-height: none; }
  .post-frame.compact .post { padding: 12px 12px; }
  .post-frame.compact .author { gap: 8px; }
  .post-frame.compact .author .avatar { width: 36px; height: 36px; flex-basis: 36px; }
  .post-frame.compact .author .name { font-size: 14px; }
  .post-frame.compact .author .headline { -webkit-line-clamp: 2; font-size: 11.5px; }
  .post-frame.compact .role-name { font-size: 15px; }
  .post-frame.compact .body.clamp { -webkit-line-clamp: 3; font-size: 13px; }
  .post-frame.compact .tag { font-size: 10px; padding: 2px 7px; }
  .post-frame.compact .btn-apply { padding: 8px 16px; font-size: 13px; }   /* 44px tap target */
  .post-frame.compact .btn-ghost { padding: 8px 14px; font-size: 12px; }
  .post-frame.compact .comment-count { font-size: 11px; }
  .post-frame.compact .post-source-tag { font-size: 9.5px; }

  /* detail page also gets some breathing room */
  .post { padding: 12px 14px; }
  .author .avatar { width: 40px; height: 40px; flex-basis: 40px; }
  .imgs img { max-height: 240px; }
  .comments-block { padding: 14px 14px; }

  footer { font-size: 10.5px; letter-spacing: 1px; }
}

/* ====================================================================
   Webview / mobile polish — Tal app iframe + small phones
   ==================================================================== */

/* Fluid wrap — never let it exceed the viewport */
.wrap { max-width: min(1200px, 100vw); }
@media (min-width: 721px) {
  .wrap { padding-left: 12px; padding-right: 12px; }
}

/* Cards stack on phones */
@media (max-width: 720px) {
  .feed-layout { grid-template-columns: 1fr !important; gap: 12px; }
  .manifesto { order: 2; }
  .gallery   { grid-template-columns: 1fr !important; }
  .post { padding: 12px; }
  /* Note: do not re-stack masthead or re-wrap .filter-row.primary here —
     the slim masthead + edge-scroll filter bar above is the Blinkit-style
     top we want. Only the function/secondary rows scroll horizontally. */
  .chip-scroll { overflow-x: auto; flex-wrap: nowrap; }
  .role-name { font-size: 15px; }
  .body { font-size: 14px; line-height: 1.45; }
}

/* Collapse manifesto on very small phones */
@media (max-width: 480px) {
  .manifesto { display: none; }
  .manifesto.is-open { display: block; }
  .manifesto-toggle { display: inline-block; }
}
@media (min-width: 481px) {
  .manifesto-toggle { display: none; }
}

/* Iframe-safe */
html, body { overflow-x: hidden; -webkit-text-size-adjust: 100%; }

/* Bigger action buttons on touch */
@media (hover: none) {
  .btn-apply, .btn-ghost {
    min-height: 40px;
    padding: 10px 14px;
    font-size: 14px;
  }
}

/* ====================================================================
   Filter counts + secondary-row layout + role @ company badge
   ==================================================================== */

/* Tiny count next to each filter chip: "engineering (24)" */
.chip-count {
  color: var(--ink-faint);
  font-variant-numeric: tabular-nums;
  font-size: 11px;
}
.chip.active .chip-count { color: rgba(255, 248, 230, 0.7); }

/* Each secondary subsection (level/mode/stack) gets its own horizontally
   scrollable row, matching the function-row visual rhythm. */
.secondary-row {
  display: flex; align-items: center; gap: 8px;
  width: 100%;
  flex-wrap: nowrap;
}
.secondary-row .filter-label { flex-shrink: 0; min-width: 56px; }
.filter-row.secondary { gap: 8px; }

/* Role @ Company — the always-visible normalized signal. Sits above the
   role-panel inside each card. Compact (gallery) gets tighter spacing. */
.role-chip {
  display: inline-flex; align-items: baseline; gap: 6px;
  margin: 10px 0 6px;
  padding: 4px 10px;
  background: var(--ink);
  color: var(--cream);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.2px;
  max-width: 100%;
  overflow: hidden;
}
.role-chip-role { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.role-chip-sep  { opacity: 0.55; font-weight: 400; }
.role-chip-company { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.post-frame.compact .role-chip {
  font-size: 11px;
  padding: 3px 9px;
  margin: 8px 0 4px;
}

/* ====================================================================
   EMBED MODE — when running inside the Tal app webview (iframe), the host
   chrome already says "this is the jobs in the wild tab". We collapse our
   own masthead + hero into a single slim banner so the user sees a real
   card above the fold instead of two layers of branding.
   ==================================================================== */

/* The slim banner is the universal mobile header: always-visible on
   mobile (whether running inside the Tal app or as a standalone page),
   sticky so the back affordance never scrolls off. On desktop it stays
   hidden in favor of the full masthead + hero. */
.embed-banner { display: none; }

@media (max-width: 720px) {
  .embed-banner {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 2px;
    margin: 0 0 8px;
    border-bottom: 1px dashed var(--rule);
    position: sticky;
    top: 0;
    z-index: 25;
    background: var(--cream);
  }
  /* Mobile: the slim banner replaces the masthead + hero entirely. */
  .masthead, .hero { display: none; }
}

/* Embed-mode extras: hide footer + the desktop manifesto rail so the feed
   uses every available row. (Desktop-on-mobile-width still hides those
   via the rules above; this just covers actual iframe-embedded desktop.) */
html.is-embed .masthead,
html.is-embed .hero,
html.is-embed footer {
  display: none;
}
html.is-embed .embed-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 2px;
  margin: 0 0 8px;
  border-bottom: 1px dashed var(--rule);
  position: sticky;
  top: 0;
  z-index: 25;
  background: var(--cream);
}
.embed-banner-mark {
  width: 20px; height: 20px; border-radius: 50%;
  border: 1.5px solid var(--ink);
  background: var(--peach);
  flex: 0 0 20px;
}
.embed-banner-name {
  font-family: var(--display);
  font-weight: 600;
  font-size: 16px;
  color: var(--ink);
  line-height: 1;
  letter-spacing: -0.3px;
}
.embed-banner-name .dot { color: var(--orange); }
.embed-banner-tag {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-faint);
  letter-spacing: 0.5px;
  margin-left: auto;
  white-space: nowrap;
}
/* Back-variant: same banner row, with a left arrow and the whole row acting
   as a tap target back to "/". Replaces the old floating circular chip. */
.embed-banner--back {
  text-decoration: none;
  color: var(--ink);
}
.embed-banner--back:hover { color: var(--orange); }
.embed-banner-arrow {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px;
  font-size: 18px;
  color: var(--ink);
  margin-right: 2px;
}
.embed-banner--back:hover .embed-banner-arrow { color: var(--orange); }

/* When the embed banner already serves as the back affordance, the inline
   .back-link in templates (e.g. job.html "← back to the wild") becomes
   redundant. Hide standalone back-links in embed mode but NOT the banner
   itself (which carries both classes). */
html.is-embed .back-link:not(.embed-banner) { display: none; }
@media (max-width: 380px) {
  /* Very small phones: the tagline starts to crowd; the banner-name alone
     still tells the story. */
  .embed-banner-tag { display: none; }
}

/* In embed mode, also kill the footer (the Tal app has its own footer
   chrome) and tighten top/bottom padding. */
html.is-embed footer { display: none; }
html.is-embed .wrap,
html.is-embed .wrap.wide { padding-top: 6px; padding-bottom: 24px; }

/* Manifesto rail is the side panel of value-prop copy on desktop. In the
   webview it doesn't add value (the user came from the Tal feed already);
   hide it to give the feed full width. */
@media (max-width: 1023px) {
  html.is-embed .rail-side { display: none; }
}

/* ====================================================================
   AVATAR SOURCE DOT — tiny LinkedIn/X indicator on the avatar instead
   of a full source-tag row above the post.
   ==================================================================== */

.author { align-items: flex-start; }
.author .avatar-wrap {
  position: relative;
  flex: 0 0 auto;
  line-height: 0;
}
.author .avatar-wrap .avatar { display: block; }
.author .who { min-width: 0; }   /* ensures flex truncation works for long names */
.src-dot {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--paper);
  box-sizing: border-box;
}
.src-dot-linkedin { background: #0a66c2; }
.src-dot-x        { background: #0f1419; }
.post-frame.compact .src-dot { width: 14px; height: 14px; }

/* Small "↗" affordance at the end of the author row — replaces the old
   "OPEN ↗" + "VIEW ORIGINAL ↗" duplicate row above the author. */
.open-arrow {
  margin-left: auto;
  align-self: flex-start;
  width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 14px;
  color: var(--ink-faint);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.open-arrow:hover { background: var(--cream-deep); color: var(--orange); }

/* ====================================================================
   FILTER DENSITY — on mobile, source filter (linkedin/x/all) collapses.
   It's a tertiary control; sort + function is what people actually use.
   ==================================================================== */

.filter-group { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
@media (max-width: 720px) {
  .filter-row.primary .source-filter,
  .filter-row.primary .filter-sep { display: none; }
  .filter-row.primary .filter-label { display: none; }
  /* Sort chips become the lone primary control; give them a touch more breathing room. */
  .filter-row.primary .sort-filter { gap: 4px; }
}

/* ====================================================================
   SKELETON LOADERS — shown while /feed/page is in-flight. Mimic the rough
   shape of a compact card so the feed never feels frozen.
   ==================================================================== */

.post-frame.compact.skeleton {
  display: block;
  padding: 14px;
  pointer-events: none;
  border: 1px solid var(--rule);
  background: var(--paper);
  border-radius: 10px;
  min-height: 220px;
}
.sk-row {
  height: 14px;
  margin: 8px 0;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--cream-deep) 0%, #f4e6d1 50%, var(--cream-deep) 100%);
  background-size: 200% 100%;
  animation: sk-shimmer 1.2s linear infinite;
}
.sk-row--top    { width: 40%; height: 12px; margin-top: 0; }
.sk-row--author { width: 65%; height: 22px; margin-bottom: 18px; }
.sk-row--body   { width: 100%; height: 12px; }
.sk-row--body.short { width: 75%; }
.sk-row--actions { width: 50%; height: 28px; margin-top: 18px; border-radius: 999px; }
@keyframes sk-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ====================================================================
   FLOATING "ADD A JOB" BUTTON (FAB) — home only, web + mweb. position:fixed,
   so it floats above the feed without ever shifting the layout. Small circle
   on phones; labelled pill from 880px up. Respects iOS safe-area insets.
   ==================================================================== */
.fab-add {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 50;
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px;
  background: var(--orange); color: #fff;
  border-radius: 999px;
  text-decoration: none; font-weight: 700;
  box-shadow: 0 6px 20px rgba(240, 90, 34, 0.38), 0 2px 6px rgba(0, 0, 0, 0.12);
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}
.fab-add:hover, .fab-add:visited { color: #fff; }
.fab-add:hover { background: var(--orange-soft); transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(240, 90, 34, 0.45), 0 2px 6px rgba(0, 0, 0, 0.12); }
.fab-add:active { transform: translateY(0); }
.fab-plus { font-size: 28px; line-height: 1; margin-top: -2px; }
.fab-label { display: none; }
@media (min-width: 880px) and (max-width: 1023px) {
  .fab-add { width: auto; height: 50px; gap: 8px; padding: 0 20px 0 16px; }
  .fab-label { display: inline; font-size: 14px; }
  .fab-plus { font-size: 22px; margin-top: -1px; }
}
/* From 1024px up the right rail is visible, so the "add a job" CTA lives at the
   top of that rail (.rail-add-cta) and the floating FAB is retired to avoid the
   awkward overlap with the rail. */
@media (min-width: 1024px) {
  .fab-add { display: none; }
}

/* Desktop rail CTA — the "add a job" button pinned at the top of the right rail,
   sitting smoothly between the feed and the explanation blocks. Hidden below
   1024px where the floating FAB takes over. */
.rail-add-cta { display: none; }
@media (min-width: 1024px) {
  .rail-add-cta {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    margin-bottom: 12px;
    padding: 12px 16px;
    background: var(--orange); color: #fff;
    border-radius: 8px;
    font-weight: 700; font-size: 14px; text-decoration: none;
    box-shadow: 0 4px 14px rgba(240, 90, 34, 0.30);
    transition: background 0.12s ease, transform 0.12s ease;
  }
  .rail-add-cta:hover, .rail-add-cta:visited { color: #fff; }
  .rail-add-cta:hover { background: var(--orange-soft); transform: translateY(-1px); }
  .rail-add-plus { font-size: 20px; line-height: 1; margin-top: -1px; }
}

/* ====================================================================
   PUBLIC SUBMIT PAGE — /submit. The community "add a job" screen.
   ==================================================================== */
.submit-card {
  max-width: 560px;
  margin: 10px auto 40px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 24px 22px;
}
.submit-title { margin: 0 0 6px; font-size: 24px; }
.submit-lede { margin: 0 0 18px; color: var(--ink-soft); font-size: 15px; line-height: 1.5; }
.submit-pledge {
  background: var(--cream-deep);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 14px 16px 14px;
  margin-bottom: 18px;
}
.submit-pledge-tag {
  display: inline-block;
  font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: 1.5px;
  color: var(--orange); margin-bottom: 6px;
}
.submit-pledge ul { margin: 0; padding-left: 18px; }
.submit-pledge li { margin: 5px 0; font-size: 13.5px; color: var(--ink-soft); line-height: 1.45; }
.submit-pledge b { color: var(--ink); }
.submit-form label {
  display: block; margin: 14px 0 6px;
  font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 1.4px;
  color: var(--ink-soft);
}
.submit-form .req { color: var(--orange); }
.submit-form .opt { color: var(--ink-faint); text-transform: none; letter-spacing: 0; }
.submit-form input[type="url"],
.submit-form textarea {
  width: 100%; box-sizing: border-box;
  padding: 12px 14px;
  border: 1px solid var(--rule); border-radius: 10px;
  background: var(--cream); color: var(--ink);
  font-size: 15px; font-family: inherit;
}
.submit-form textarea { resize: vertical; min-height: 70px; }
.submit-form input[type="url"]:focus,
.submit-form textarea:focus { outline: none; border-color: var(--orange); }
.submit-hint { font-size: 12px; color: var(--ink-faint); margin-top: 5px; }
.submit-btn {
  margin-top: 18px; width: 100%;
  background: var(--orange); color: #fff; border: 0;
  padding: 13px 18px; border-radius: 999px;
  font-weight: 700; font-size: 15px; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.submit-btn:hover { background: var(--orange-soft); }
.submit-foot { text-align: center; font-size: 12px; color: var(--ink-faint); margin-top: 10px; }
.submit-flash {
  border-radius: 10px; padding: 11px 14px; font-size: 14px; margin-bottom: 14px;
}
.submit-flash.ok  { background: rgba(70, 140, 70, 0.10); color: var(--good); border: 1px solid rgba(70, 140, 70, 0.25); }
.submit-flash.err { background: rgba(143, 50, 21, 0.08); color: var(--bad); border: 1px solid rgba(143, 50, 21, 0.22); }

/* Full-screen scrape loader shown after submit, until we redirect to the post. */
.submit-loader {
  position: fixed; inset: 0; z-index: 1000;
  display: none; align-items: center; justify-content: center;
  background: rgba(247, 243, 233, 0.92);
  backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
}
.submit-loader.on { display: flex; }
.submit-loader-inner { text-align: center; padding: 0 24px; }
.submit-spinner {
  width: 42px; height: 42px; margin: 0 auto 18px;
  border: 3px solid rgba(240, 90, 34, 0.20);
  border-top-color: var(--orange);
  border-radius: 50%;
  animation: submit-spin 0.7s linear infinite;
}
@keyframes submit-spin { to { transform: rotate(360deg); } }
.submit-loader-text { font-weight: 700; font-size: 17px; color: var(--ink); }
.submit-loader-sub { font-size: 13px; color: var(--ink-faint); margin-top: 6px; }

/* "Not live yet" banner on a draft post's detail page. */
.draft-banner {
  background: rgba(240, 90, 34, 0.08);
  border: 1px solid rgba(240, 90, 34, 0.25);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink-soft);
  margin-bottom: 14px;
}
.draft-banner b { color: var(--ink); }
