/* Shared screen typography for the five project pages. */
@media screen {
  body {
    --muted: #4b5b65;
    --line: #bdc8cc;
    font-size: 18px;
    line-height: 1.65;
  }

  body .site-header {
    gap: 24px;
    min-height: 116px;
    border-bottom-color: var(--line);
  }

  body .site-header .identity {
    font-size: 24px;
    line-height: 1.35;
  }

  body .identity span {
    font-size: 14px;
    line-height: 1.5;
    letter-spacing: .01em;
  }

  body .site-header nav {
    flex-wrap: wrap;
    gap: 12px 22px;
    min-width: 0;
  }

  body .site-header nav a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    font-size: 16px;
    line-height: 1.5;
    padding-block: 8px;
  }

  body h1 {
    letter-spacing: -.035em;
  }

  body h2 {
    line-height: 1.2;
    letter-spacing: -.025em;
  }

  body h3 {
    line-height: 1.35;
    letter-spacing: -.015em;
  }

  body :is(.practice-heading, .panel-heading, .community-workspace) h2 {
    font-size: 32px;
  }

  body .workshop-story-grid h3 {
    font-size: 22px;
  }

  body button:not(.word-card):not(.answer-choice),
  body input:not(.gpu-input),
  body textarea:not(.unstyled),
  body select:not(.unstyled),
  body .button,
  body .text-button,
  body .report-tools .button,
  body #resume-files,
  body #service-request select {
    font-size: 16px;
    line-height: 1.5;
  }

  body button:not(.word-card):not(.answer-choice),
  body .button,
  body .report-tools .button,
  body input:not([type="checkbox"]):not([type="radio"]):not(.gpu-input),
  body select {
    min-height: 48px;
  }

  body textarea {
    line-height: 1.65;
  }

  body :is(.hero, .guide-grid, .details-section, .about-section, .apps-grid, .original-project-grid, .community-workspace, .concept-section, .setup-grid, .ai-field-grid, .chat-workspace, .workshop-hero, .workshop-story-grid) > * {
    min-width: 0;
  }

  body .field input::placeholder,
  body .field textarea::placeholder {
    color: #63717a;
  }

  body .field input[readonly] {
    color: var(--muted);
  }

  body :is(.field, .math-toolbar, .narration-control, .question-card, .file-input-box, .access-options) label,
  body label.check-field,
  body .access-options legend,
  body #service-request > label,
  body .input-grid label span {
    font-size: 16px;
    line-height: 1.6;
  }

  body .field label {
    flex-wrap: wrap;
    row-gap: 4px;
  }

  body .field label > span {
    font-size: 14px;
  }

  body :is(.question-card, .access-options, .check-field) input[type="checkbox"],
  body :is(.question-card, .access-options) input[type="radio"] {
    width: 18px;
    height: 18px;
  }

  body :is(button, a, input, textarea, select, summary):focus-visible,
  body.hiring-lab-page textarea:focus-visible {
    outline-color: #1b776a;
  }

  body :is(.hero-description, .apps-description, .community-description, .workshop-description, .hiring-description) {
    font-size: 20px;
    line-height: 1.7;
  }

  body .section-intro > p,
  body .practice-heading > p,
  body .panel-heading > p:not(.eyebrow),
  body .report-heading > div > p:not(.eyebrow),
  body .chat-heading > div > p:not(.eyebrow),
  body .guide-grid > div > p:not(.eyebrow),
  body .transcript > div,
  body .about-section > p,
  body .workshop-story-grid p,
  body .workshop-learning p,
  body .concept-section p,
  body .concept-scope p,
  body .community-workspace .muted,
  body .match-card > p,
  body #plan-summary,
  body .original-project-copy > p:not(.availability):not(.original-project-detail):not(.original-project-name),
  body .original-apps > p {
    font-size: 18px;
    line-height: 1.7;
  }

  body .question-card legend {
    font-size: 18px;
    line-height: 1.6;
  }

  body .practice-instruction,
  body .word-card-action,
  body .math-feedback,
  body .planning-prompt,
  body .coordination-flow li,
  body .concept-fields > div,
  body .quiz-feedback,
  body .result-status,
  body #quiz-status,
  body #review-status,
  body #lab-status,
  body #handoff-draft,
  body .evidence-heading > p {
    font-size: 16px;
    line-height: 1.65;
  }

  body .practice-instruction {
    min-height: 0;
  }

  body .field-hint,
  body .context-note,
  body .simulation-note,
  body .input-hint,
  body .narration-note,
  body .narration-status,
  body .community-scope,
  body .logic-note,
  body .review-note,
  body .plan-state,
  body .match-id,
  body .match-criteria span,
  body .practice-progress,
  body .workshop-link-note,
  body .planning-label,
  body .original-project-detail,
  body .original-project-name,
  body .external-link-note,
  body .original-project-art > span:last-child,
  body .hiring-flow,
  body .field label > span,
  body .local-note strong,
  body .local-note p,
  body .resume-list-heading > span,
  body .ai-settings summary > span,
  body .report-boundary,
  body .chat-mode,
  body .site-footer,
  body .eyebrow,
  body .sources a {
    font-size: 14px;
    line-height: 1.65;
  }

  body .video-card figcaption,
  body .finder-preview figcaption {
    font-size: 13px;
    line-height: 1.6;
  }

  body .original-project-copy > p.original-project-detail,
  body .original-project-copy > p.original-project-name {
    font-size: 14px;
    line-height: 1.65;
  }

  body .plan-state {
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  body .resume-item .resume-item-title,
  body .resume-list-heading h3,
  body .resume-list .empty-state,
  body .empty-state,
  body .ai-description,
  body .paste-details summary,
  body .ai-settings summary,
  body .transcript summary,
  body .review-notes,
  body .chat-empty,
  body .chat-message,
  body .chat-message-text {
    font-size: 16px;
    line-height: 1.7;
  }

  body .resume-item .resume-item-meta,
  body .chat-message .chat-message-label,
  body .chat-message strong,
  body .report-metric-label,
  body :is(.summary-card, .metric-card, .stat-card) span {
    font-size: 14px;
    line-height: 1.65;
  }

  body .report-metric-value,
  body :is(.summary-card, .metric-card, .stat-card) strong {
    display: block;
    font-size: 32px;
    line-height: 1.2;
  }

  body .report-metric-label {
    display: block;
    margin-top: 8px;
  }

  body .coverage-row,
  body .chart-row,
  body .coverage-count,
  body .chart-value {
    font-size: 14px;
    line-height: 1.6;
  }

  body .coverage-label,
  body .chart-label,
  body .coverage-count,
  body .concept-fields strong,
  body .field-hint,
  body .original-project-copy p,
  body .chat-message-text,
  body #lab-status {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  body.hiring-lab-page .evidence-table,
  body.hiring-lab-page .report-chart details {
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
    overscroll-behavior-x: contain;
  }

  body.hiring-lab-page .evidence-table :is(table, th, td),
  body.hiring-lab-page .report-chart details :is(table, th, td),
  body.hiring-lab-page .evidence-status,
  body.hiring-lab-page .evidence-source,
  body.hiring-lab-page .evidence-table .note-item,
  body.hiring-lab-page .report-chart details > summary {
    font-size: 14px;
    line-height: 1.7;
  }

  body.hiring-lab-page .evidence-table :is(th, td),
  body.hiring-lab-page .report-chart details :is(th, td) {
    overflow-wrap: anywhere;
    border-color: var(--line);
  }

  body.hiring-lab-page .report-chart details caption,
  body.hiring-lab-page .evidence-table caption {
    font-size: 13px;
    line-height: 1.6;
  }

  body .command-card p {
    font-size: 18px !important;
    line-height: 1.7 !important;
  }

  body .command-card .command-note {
    font-size: 14px !important;
  }

  body .command-card pre {
    max-width: 100%;
    overflow-x: auto;
    font-size: 14px;
    line-height: 1.65;
  }

  body :is(.video-card, .interactive-card, .question-card, .command-card, .lab-panel, .request-card, .plan-card, .practice-panel, .original-project-card, .match-card, .ai-settings, .chat-log) {
    border-color: var(--line);
    border-radius: 14px;
  }

  @media (max-width: 1024px) {
    body .site-header,
    body.hiring-lab-page .site-header {
      flex-direction: column;
      align-items: flex-start;
      justify-content: center;
      min-height: 0;
      gap: 14px;
      padding-block: 24px;
    }

    body .site-header nav {
      width: 100%;
      gap: 8px 22px;
    }
  }

  @media (max-width: 780px) {
    body :is(.hero, .guide-grid, .details-section, .about-section, .workshop-hero, .workshop-story-grid) {
      grid-template-columns: minmax(0, 1fr);
    }

    body :is(.hero-description, .apps-description, .community-description, .workshop-description, .hiring-description) {
      font-size: 19px;
      line-height: 1.7;
    }

    body :is(.practice-heading, .panel-heading, .community-workspace) h2 {
      font-size: 30px;
    }

    body .narration-control {
      flex-wrap: wrap;
      gap: 10px;
    }

    body .narration-control select {
      width: 100%;
      max-width: 260px;
    }

    body .video-card figcaption {
      flex-wrap: wrap;
    }
  }

  @media (max-width: 650px) {
    body.hiring-lab-page .coverage-row,
    body.hiring-lab-page .chart-row {
      grid-template-columns: minmax(0, 1fr);
      gap: 8px;
    }

    body.hiring-lab-page .coverage-row > *,
    body.hiring-lab-page .chart-row > * {
      grid-column: 1;
    }

    body .original-project-art {
      flex-wrap: wrap;
      gap: 12px;
    }

    body .match-heading {
      flex-wrap: wrap;
    }
  }
}
