/* Job search guides (/job-search/ and its guides). The am- rules are copied from the
   ADHD remembering-people guide, so these pages match the /adhd/ guides; jg- rules are new. */
:root {
  /* Values come from the shared guide palette in css/styles.css */
  --am-ink: var(--guide-ink);
  --am-purple: var(--guide-purple);
  --am-pink: var(--guide-pink);
  --am-chalk: var(--guide-chalk);
  --am-snow: var(--guide-snow);
  --am-charcoal: var(--guide-charcoal);
  --am-muted: var(--guide-muted);
  --am-rock: var(--guide-rock);
  --am-mint: var(--guide-mint);
  --am-lilac: var(--guide-lilac);
  --am-font: var(--guide-font);
}

.am-wrap { max-width: 1200px; margin: 0 auto; padding: 0 32px; }

.am-copy {
  font-family: var(--am-font);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--am-charcoal);
  margin-bottom: 16px;
  max-width: 68ch;
}
.am-copy:last-child { margin-bottom: 0; }
.am-copy a {
  color: var(--am-purple);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 600;
}
.am-copy a:hover { color: var(--am-ink); }
.am-copy strong { font-weight: 700; color: var(--am-ink); }

.am-label {
  display: block;
  font-family: var(--am-font);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #2D4739;
  margin-bottom: 4px;
}

/* ── Hero ── */
.am-hero { background: var(--am-ink); padding: 72px 0 56px; }
.am-hero .am-label { color: #FEBBCC; }
.am-hero h1 {
  font-family: var(--am-font);
  font-size: clamp(1.875rem, 5vw, 3.125rem);
  font-weight: 800;
  color: var(--am-snow);
  line-height: 1.14;
  max-width: 20ch;
  margin-bottom: 18px;
}
.am-hero-sub {
  font-family: var(--am-font);
  font-size: clamp(1rem, 2vw, 1.1875rem);
  color: var(--am-pink);
  max-width: 58ch;
  line-height: 1.6;
  margin-bottom: 8px;
}
.am-hero-note {
  font-family: var(--am-font);
  font-size: 0.84375rem;
  color: rgba(253,254,252,0.6);
  max-width: 58ch;
  line-height: 1.6;
  margin-top: 14px;
}

/* ── Shell: sidebar + content ── */
.am-shell {
  display: grid;
  grid-template-columns: 232px 1fr;
  gap: 56px;
  align-items: start;
  padding: 48px 0 0;
}
/* position/top/background/max-height come from the shared .guide-toc-outer
   (css/styles.css) -- don't redeclare top here, it's same-specificity as
   that rule and, coming later in the cascade, would silently win and
   drag the sidebar back under the sticky breadcrumb. */
.am-toc-guide {
  font-family: var(--am-font);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--am-ink);
  margin-bottom: 6px;
}
.am-toc-heading {
  font-family: var(--am-font);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--am-muted);
  margin-bottom: 14px;
}
.am-toc ul { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--am-rock); }
.am-toc li { margin: 0; }
.am-toc a {
  display: block;
  font-family: var(--am-font);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--am-muted);
  text-decoration: none;
  padding: 9px 0 9px 16px;
  border-left: 2px solid transparent;
  margin-left: -2px;
  line-height: 1.35;
  transition: color 0.15s, border-color 0.15s;
}
.am-toc a:hover { color: var(--am-ink); }
.am-toc a[aria-current="true"] { color: var(--am-purple); border-left-color: var(--am-purple); }

.am-mobile-toc { display: none; }

/* ── Chapters ── */
.am-chapters { padding-bottom: 24px; }
.am-chapter {
  padding: 44px 0;
  border-bottom: 1px solid var(--am-rock);
  scroll-margin-top: 84px;
}
.am-chapter:first-child { padding-top: 0; }
.am-chapter:last-child { border-bottom: none; }
.am-chapter-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.am-chapter-num {
  font-family: var(--am-font);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--am-purple);
}
.am-chapter-time {
  font-family: var(--am-font);
  font-size: 0.75rem;
  color: var(--am-muted);
}
.am-chapter h2 {
  font-family: var(--am-font);
  font-size: clamp(1.375rem, 3.2vw, 1.875rem);
  font-weight: 800;
  color: var(--am-ink);
  line-height: 1.22;
  margin-bottom: 14px;
  max-width: 24ch;
}
.am-payoff {
  font-family: var(--am-font);
  font-size: 1rem;
  font-weight: 700;
  color: var(--am-ink);
  line-height: 1.5;
  margin-bottom: 20px;
  max-width: 60ch;
}
.am-beat-label {
  font-family: var(--am-font);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--am-muted);
  margin: 24px 0 8px;
}

.am-list { list-style: none; padding: 0; margin: 0 0 4px; max-width: 68ch; }
.am-list li {
  font-family: var(--am-font);
  font-size: 0.96875rem;
  line-height: 1.65;
  color: var(--am-charcoal);
  padding-left: 24px;
  position: relative;
  margin-bottom: 14px;
}
.am-list li:last-child { margin-bottom: 0; }
.am-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--am-mint);
}
.am-list li strong { font-weight: 700; color: var(--am-ink); }

/* ── Where Humble fits: static secondary-styled callout ── */
.am-fits {
  margin-top: 28px;
  background: var(--am-chalk);
  border: 1px solid var(--am-rock);
  border-radius: 14px;
  padding: 22px 24px;
  max-width: 68ch;
}
.am-fits-label {
  font-family: var(--am-font);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--am-purple);
  margin-bottom: 8px;
}
.am-fits-body { display: flex; gap: 20px; align-items: flex-start; }
.am-fits-text { flex: 1 1 auto; min-width: 0; }
.am-fits-text p {
  font-family: var(--am-font);
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--am-charcoal);
  margin-bottom: 10px;
}
.am-fits-text p:last-of-type { margin-bottom: 0; }
.am-fits-visual { flex: 0 0 176px; }

/* Quiet, secondary-styled link — demoted from the bold default */
.am-fits-link { margin-top: 10px; }
.am-fits-link a {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--am-purple);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.am-fits-link a:hover { color: var(--am-ink); }

/* Static wire-mockup visual: Chalk chip on a Snow card, no screenshots */
.am-mock {
  background: var(--am-snow);
  border: 1px solid var(--am-rock);
  border-radius: 10px;
  padding: 12px 14px;
  font-family: var(--am-font);
}
.am-mock-tag {
  display: inline-block;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--am-purple);
  background: var(--am-chalk);
  border-radius: 100px;
  padding: 3px 9px;
  margin-bottom: 8px;
}
.am-mock-line {
  font-size: 0.78125rem;
  font-weight: 600;
  color: var(--am-ink);
  line-height: 1.4;
  margin-bottom: 4px;
}
.am-mock-meta {
  font-size: 0.6875rem;
  color: var(--am-muted);
  line-height: 1.4;
}

/* ── Next-step link-out card ── */
.am-outcard {
  display: block;
  margin-top: 20px;
  max-width: 68ch;
  background: var(--am-snow);
  border: 1.5px solid var(--am-purple);
  border-radius: 14px;
  padding: 20px 22px;
  text-decoration: none;
  transition: background 0.15s;
}
.am-outcard:hover { background: var(--am-chalk); }
.am-outcard-title { font-family: var(--am-font); font-size: 1rem; font-weight: 700; color: var(--am-ink); margin-bottom: 4px; }
.am-outcard-arrow { color: var(--am-purple); font-weight: 700; }

/* ── FAQ ── */
.am-faq { max-width: 760px; margin-top: 32px; }
.am-faq-item { border-bottom: 1px solid var(--am-rock); }
.am-faq-item:first-child { border-top: 1px solid var(--am-rock); }
.am-faq-q {
  width: 100%;
  background: none;
  border: none;
  padding: 22px 0;
  font-family: var(--am-font);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--am-ink);
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  min-height: 56px;
}
.am-faq-icon {
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--am-purple);
  transition: transform 0.25s;
  min-width: 24px;
  text-align: center;
  line-height: 1;
}
.am-faq-item[data-open="true"] .am-faq-icon { transform: rotate(45deg); }
.am-faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.am-faq-item[data-open="true"] .am-faq-a { max-height: 640px; }
.am-faq-a .am-copy { font-size: 0.9375rem; padding-bottom: 22px; }

/* ── Sources ── */
.am-sources { list-style: none; padding: 0; margin: 18px 0 0; max-width: 68ch; }
.am-sources li {
  font-family: var(--am-font);
  font-size: 0.9375rem;
  line-height: 1.6;
  padding-left: 24px;
  position: relative;
  margin-bottom: 12px;
  color: var(--am-charcoal);
}
.am-sources li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--am-mint);
}
.am-sources a {
  color: var(--am-purple);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 600;
}
.am-sources a:hover { color: var(--am-ink); }
.am-disclaimer {
  font-family: var(--am-font);
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--am-muted);
  margin-top: 18px;
  max-width: 68ch;
}

/* ── Closing CTA band (single primary CTA on the page) ── */
.am-closing { background: var(--am-lilac); padding: 88px 0; max-width: none; margin: 8px 0 0; }
.am-closing .am-wrap { padding-left: 48px; padding-right: 48px; }
.am-closing-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 56px;
}
.am-closing-main { display: flex; align-items: flex-start; gap: 20px; }
.am-closing h2 {
  font-family: var(--am-font);
  font-size: clamp(1.375rem, 3.5vw, 2rem);
  font-weight: 800;
  color: var(--am-ink);
  max-width: 26ch;
  margin: 0 0 10px;
  line-height: 1.25;
}
.am-closing p {
  font-family: var(--am-font);
  font-size: 1rem;
  color: var(--am-charcoal);
  max-width: 48ch;
  margin: 0;
  line-height: 1.6;
}
.am-closing-action { flex-shrink: 0; text-align: left; }
.am-btn-primary {
  display: inline-block;
  font-family: var(--am-font);
  font-size: 0.9375rem;
  font-weight: 700;
  padding: 14px 30px;
  border-radius: 100px;
  text-decoration: none;
  background: var(--am-purple);
  color: #fff;
  transition: background 0.15s;
}
.am-btn-primary:hover { background: var(--am-ink); }

/* Humble mascot — the brand's blinking icon GIF; static under reduced motion */
.humble-mascot { flex-shrink: 0; display: block; border-radius: 15%; overflow: hidden; }
.humble-mascot img { display: block; width: 48px; height: 48px; }

/* ── Responsive ── */
@media (max-width: 56.25em) {
  .am-wrap { padding: 0 24px; }
  .am-hero { padding: 52px 0 40px; }
  .am-shell { grid-template-columns: 1fr; gap: 0; padding-top: 0; }
  .am-toc-outer { display: none; }
  .am-fits-body { flex-direction: column; }
  .am-fits-visual { order: -1; flex: 0 0 auto; width: 100%; max-width: 220px; }
  .am-closing { padding: 64px 0; }
  .am-closing .am-wrap { padding-left: 28px; padding-right: 28px; }
  .am-closing-row { flex-direction: column; align-items: flex-start; gap: 28px; }
  .am-mobile-toc {
    display: block;
    position: sticky;
    top: 64px;
    z-index: 40;
    background: var(--am-chalk);
    border-bottom: 1px solid var(--am-rock);
    margin-bottom: 8px;
  }
  .am-context-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    height: 44px;
    padding: 0 20px;
    background: none;
    border: none;
    font-family: var(--am-font);
    text-align: left;
    cursor: pointer;
    color: var(--am-ink);
  }
  .am-context-text {
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--am-ink);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .am-context-caret {
    font-size: 0.75rem;
    color: var(--am-purple);
    flex-shrink: 0;
    transition: transform 0.2s;
  }
  .am-context-bar[aria-expanded="true"] .am-context-caret { transform: rotate(180deg); }
  .am-mobile-toc-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0 20px 12px;
  }
  .am-mobile-toc-scroll[hidden] { display: none; }
  .am-mobile-toc-scroll::-webkit-scrollbar { display: none; }
  .am-mobile-toc a {
    flex: 0 0 auto;
    font-family: var(--am-font);
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--am-ink);
    text-decoration: none;
    background: var(--am-chalk);
    border: 1px solid var(--am-rock);
    border-radius: 100px;
    padding: 8px 16px;
    white-space: nowrap;
  }
  .am-mobile-toc a[aria-current="true"] { background: var(--am-purple); border-color: var(--am-purple); color: #fff; }
}

/* ── Copy-this-prompt box ── */
.jg-prompt {
  margin: 20px 0 8px;
  max-width: 68ch;
  background: var(--am-snow);
  border: 1px solid var(--am-rock);
  border-left: 4px solid var(--am-purple);
  border-radius: 12px;
  padding: 18px 20px;
}
.guide-band-b .jg-prompt { background: var(--am-snow); }
.jg-prompt-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.jg-prompt-label {
  font-family: var(--am-font);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--am-purple);
}
.jg-prompt-text {
  font-family: var(--am-font);
  font-size: 0.96875rem;
  line-height: 1.65;
  color: var(--am-ink);
  margin: 0;
  white-space: pre-line;
}
/* Outline button, ink on off-white (14:1); never a filled button inside the copy */
.jg-copy-btn {
  font-family: var(--am-font);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--am-ink);
  background: transparent;
  border: 1.5px solid var(--am-ink);
  border-radius: 100px;
  padding: 6px 14px;
  min-height: 32px;
  cursor: pointer;
  flex-shrink: 0;
}
.jg-copy-btn:hover { background: var(--am-chalk); }
.jg-copy-btn:focus-visible { outline: 3px solid var(--am-ink); outline-offset: 2px; }

/* ── Numbered steps inside a chapter ── */
.jg-steps { list-style: none; counter-reset: jg-step; padding: 0; margin: 8px 0 0; max-width: 68ch; }
.jg-steps > li {
  counter-increment: jg-step;
  position: relative;
  padding-left: 44px;
  margin-bottom: 18px;
  font-family: var(--am-font);
  font-size: 0.96875rem;
  line-height: 1.65;
  color: var(--am-charcoal);
}
.jg-steps > li::before {
  content: counter(jg-step);
  position: absolute;
  left: 0;
  top: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--am-ink);
  color: #FDFCFA;
  font-weight: 700;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.jg-steps > li strong { color: var(--am-ink); }

/* ── Guide list on the hub: clickable cards (shared .link-card pattern) ── */
.jg-cards {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
  gap: 16px;
}
.jg-card {
  position: relative;
  background: var(--am-snow);
  border: 1px solid var(--am-rock);
  border-radius: 14px;
  padding: 20px 22px;
}
.guide-band-b .jg-card { background: var(--am-snow); }
.guide-band-a .jg-card { background: #F4F2ED; }
.jg-card-kind {
  display: block;
  font-family: var(--am-font);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #2D4739;
  margin-bottom: 6px;
}
.jg-card h3 {
  font-size: 1.0625rem;
  line-height: 1.3;
  margin: 0 0 6px;
}
.jg-card h3 a { color: var(--am-ink); text-decoration: none; }
.jg-card p {
  font-family: var(--am-font);
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--am-charcoal);
  margin: 0;
}

@media (max-width: 56.25em) {
  .jg-prompt-head { flex-wrap: wrap; }
}
