/* Page-specific styles for /free/ai-job-search/. Loaded after /free/style.css,
   which supplies the tokens, fonts, header/footer, hero and card primitives
   this file builds on. Nothing here is redefined in the shared stylesheet,
   so this file cannot change how the existing /free/ page looks. */

.section-block { padding: clamp(4rem, 9vw, 7rem) 0; border-top: 1px solid var(--slate-line); }
.section-block:first-of-type { border-top: 0; }

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

/* Weekly routine */
.routine-list { list-style: none; border-top: 1px solid var(--slate-line); }
.routine-list li {
  display: grid;
  grid-template-columns: 3.4rem 1fr;
  gap: 1.4rem;
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--slate-line);
}
.routine-list .step-number { padding-top: 0.2rem; }
.routine-list h3 { margin-bottom: 0.45rem; font-size: 1.3rem; font-weight: 500; }
.routine-list p { max-width: 46rem; color: var(--muted); font-size: 1rem; line-height: 1.6; }

/* Official guides trio, under the weekly routine */
.schedule-guides {
  margin-top: 2rem;
  padding: 1.4rem 1.6rem;
  border: 1px solid var(--slate-line);
  border-radius: 10px;
  background: rgba(17, 22, 25, 0.55);
}
.schedule-guides .eyebrow { margin-bottom: 0.9rem; }
.schedule-guides ul { list-style: none; }
.schedule-guides li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.4rem;
  padding-top: 1rem;
  border-top: 1px solid var(--slate-line);
}
.schedule-guides li:first-child { padding-top: 0; border-top: 0; }
.schedule-guides li + li { margin-top: 1rem; }
.schedule-guides strong { display: block; margin-bottom: 0.25rem; color: var(--shell-soft); font-weight: 500; font-size: 1rem; }
.schedule-guides p { color: var(--muted); font-size: 0.9rem; line-height: 1.5; }
.schedule-guides .text-link { flex-shrink: 0; white-space: nowrap; }

/* Prompt cards, shared by the fetched deck prompts and the static JobSpy prompt */
.prompt-card {
  display: grid;
  gap: 1rem;
  padding: clamp(1.5rem, 3vw, 2.1rem);
  border: 1px solid var(--slate-line);
  border-radius: 12px;
  background: rgba(17, 22, 25, 0.72);
}
.prompt-card + .prompt-card { margin-top: 1.1rem; }
.prompt-label { color: var(--oxblood-light); font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.08em; text-transform: uppercase; }
.prompt-card h3 { font-size: 1.5rem; font-weight: 500; line-height: 1.15; }
.prompt-instruction { color: var(--muted); font-size: 0.98rem; line-height: 1.6; }
.prompt-text-wrap { position: relative; }
.prompt-text {
  max-height: 340px;
  overflow-y: auto;
  padding: 1.1rem 1.2rem;
  border: 1px solid var(--slate-line);
  border-radius: 8px;
  background: var(--slate);
  color: var(--shell-soft);
  font-family: var(--mono);
  font-size: 0.83rem;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
}
.prompt-actions { display: flex; justify-content: flex-end; }
.copy-btn { cursor: pointer; }
.copy-btn.copied { border-color: var(--glacier); color: var(--glacier); }

.prompts-status,
.prompts-fallback {
  padding: 1.4rem 1.6rem;
  border: 1px solid var(--slate-line);
  border-radius: 10px;
  color: var(--muted);
  background: rgba(17, 22, 25, 0.55);
  font-size: 0.98rem;
  line-height: 1.55;
}
.prompts-fallback { border-color: rgba(200, 96, 108, 0.42); }
.prompts-fallback a { color: var(--glacier); text-underline-offset: 0.22em; }

/* Skill packages, reuse .prompt-card and add a download row */
.skill-package-card { border-color: rgba(111, 168, 198, 0.42); }
.skill-download-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--slate-line);
}
.skill-meta { color: var(--muted-dim); font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.05em; text-transform: uppercase; }

/* Where your profile lives */
.profile-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}
.profile-column {
  padding: clamp(1.5rem, 3vw, 2rem);
  border: 1px solid var(--slate-line);
  border-radius: 12px;
  background: rgba(17, 22, 25, 0.72);
}
.profile-column h3 { margin-bottom: 0.9rem; font-size: 1.3rem; font-weight: 500; }
.profile-column ol { padding-left: 1.2rem; color: var(--muted); font-size: 0.96rem; line-height: 1.6; }
.profile-column ol li + li { margin-top: 0.5rem; }
.profile-column .fine-note { margin-top: 0.9rem; color: var(--muted-dim); font-size: 0.82rem; line-height: 1.5; }

.screenshot-slot {
  margin-top: 1.2rem;
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed var(--slate-line);
  border-radius: 8px;
  background: rgba(11, 13, 14, 0.4);
  overflow: hidden;
}
.screenshot-slot img { width: 100%; height: 100%; object-fit: cover; }
.screenshot-slot .slot-placeholder {
  padding: 1rem;
  color: var(--muted-dim);
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  text-align: center;
  text-transform: uppercase;
}

/* Worked examples */
.example-note {
  margin-bottom: 1.75rem;
  padding: 1.1rem 1.4rem;
  border-left: 2px solid var(--oxblood-light);
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.55;
}
.example-note strong { color: var(--shell-soft); font-weight: 500; }
.example-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.example-card {
  padding: clamp(1.5rem, 3vw, 2rem);
  border: 1px solid var(--slate-line);
  border-radius: 12px;
  background: rgba(17, 22, 25, 0.72);
}
.example-card h3 { margin-bottom: 1.1rem; font-size: 1.3rem; font-weight: 500; }
.example-card dl { display: grid; gap: 0.9rem; }
.example-card dt { color: var(--glacier); font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.07em; text-transform: uppercase; }
.example-card dd { margin-top: 0.3rem; color: var(--muted); font-size: 0.94rem; line-height: 1.55; }
.example-card .claim-box {
  margin-top: 0.4rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(200, 96, 108, 0.42);
  border-radius: 8px;
  background: rgba(154, 51, 64, 0.08);
}
.example-card .claim-box dt { color: var(--oxblood-light); }

/* JobSpy for the ambitious */
.jobspy-card { border-color: rgba(111, 168, 198, 0.52); }

/* Print tip */
.print-tip {
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  padding: 1.2rem 1.5rem;
  border: 1px solid var(--slate-line);
  border-radius: 10px;
  color: var(--muted);
  background: rgba(17, 22, 25, 0.55);
}
.print-tip strong { color: var(--shell-soft); font-weight: 500; }
.print-tip p { line-height: 1.5; }
.print-tip a { color: var(--glacier); text-underline-offset: 0.22em; }

@media (max-width: 860px) {
  .routine-list li { grid-template-columns: 1fr; gap: 0.5rem; }
  .profile-columns { grid-template-columns: 1fr; }
  .example-grid { grid-template-columns: 1fr; }
  .schedule-guides li { align-items: flex-start; flex-direction: column; gap: 0.6rem; }
}

@media (max-width: 600px) {
  .prompt-text { max-height: 260px; font-size: 0.78rem; }
  .print-tip { align-items: flex-start; flex-direction: column; gap: 0.4rem; }
  .skill-download-row { flex-direction: column; align-items: flex-start; gap: 0.6rem; }
}
