/* FRQ practice — Slate Emerald, calm, no gamification.
   Timed writing surface, rubric walkthrough, honest self-scoring. */

.frq-shell {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px 64px;
}

.frq-kicker {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rycal-emerald-700);
  margin-bottom: 0.5rem;
}

.frq-sub,
.frq-section-sub {
  color: var(--rycal-slate-600);
  line-height: 1.6;
  max-width: 70ch;
}

.frq-section-head {
  margin: 2.5rem 0 0.25rem;
}

.frq-section-head h2 {
  margin: 0 0 0.25rem;
  color: var(--rycal-slate-900);
}

.frq-suggestion {
  margin: 1rem 0 0;
  padding: 0.75rem 1rem;
  border-left: 4px solid var(--rycal-emerald-500);
  background: var(--rycal-slate-50);
  color: var(--rycal-slate-700);
  line-height: 1.55;
  border-radius: 0 8px 8px 0;
}

.frq-type-head {
  margin: 1.75rem 0 0.5rem;
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.frq-type-badge {
  display: inline-block;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  background: var(--rycal-slate-800);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.frq-history {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--rycal-slate-500);
}

.frq-drill-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.frq-drill-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1.1rem;
  border: 1px solid var(--rycal-slate-200);
  border-radius: 10px;
  background: #fff;
}

.frq-drill-main {
  min-width: 0;
}

.frq-drill-title {
  font-weight: 700;
  color: var(--rycal-slate-900);
  line-height: 1.4;
}

.frq-drill-meta {
  font-size: 0.85rem;
  color: var(--rycal-slate-500);
  margin-top: 0.15rem;
}

.frq-start-btn {
  flex-shrink: 0;
}

.frq-official-row {
  background: var(--rycal-slate-50);
}

.frq-official-links {
  display: flex;
  gap: 1rem;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.frq-official-links a {
  color: var(--rycal-emerald-700);
  font-weight: 600;
  font-size: 0.9rem;
}

.frq-trademark {
  margin-top: 1.5rem;
  font-size: 0.8rem;
  color: var(--rycal-slate-500);
  line-height: 1.6;
  max-width: 80ch;
}

.frq-empty {
  margin: 2rem 0;
  padding: 2rem;
  border: 1px solid var(--rycal-slate-200);
  border-radius: 12px;
  background: var(--rycal-slate-50);
  text-align: left;
}

.frq-empty-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--rycal-slate-900);
  margin-bottom: 0.5rem;
}

.frq-empty-copy {
  color: var(--rycal-slate-600);
  line-height: 1.6;
  margin: 0 0 1.25rem;
}

/* Mode card "coming soon" pill */
.frq-soon-pill {
  display: inline-block;
  margin-left: 0.5rem;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  background: var(--rycal-slate-100);
  border: 1px solid var(--rycal-slate-200);
  color: var(--rycal-slate-500);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  vertical-align: middle;
}

.frq-soon-pill[hidden] {
  display: none;
}

/* ---- Session intro ---- */

.frq-intro-facts {
  display: flex;
  gap: 2rem;
  margin: 1.25rem 0;
  flex-wrap: wrap;
}

.frq-fact {
  display: flex;
  flex-direction: column;
}

.frq-fact-num {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--rycal-slate-900);
}

.frq-fact-label {
  font-size: 0.8rem;
  color: var(--rycal-slate-500);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.frq-intro-meta {
  color: var(--rycal-slate-500);
  margin-bottom: 1rem;
}

.frq-prompt-preview {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--rycal-slate-800);
  border-left: 4px solid var(--rycal-emerald-500);
  padding: 0.25rem 0 0.25rem 1.25rem;
  margin: 1.25rem 0;
  max-width: 75ch;
}

.frq-choices {
  margin: 1.25rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.frq-choices-label {
  font-weight: 700;
  color: var(--rycal-slate-800);
}

.frq-choice {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  padding: 0.75rem 1rem;
  border: 1px solid var(--rycal-slate-200);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  line-height: 1.55;
  color: var(--rycal-slate-800);
}

.frq-choice input {
  margin-top: 0.3rem;
  accent-color: var(--rycal-emerald-600);
}

.frq-honest-line {
  color: var(--rycal-slate-600);
  font-style: italic;
  line-height: 1.6;
  max-width: 70ch;
}

.frq-draft-note {
  margin: 1rem 0 0;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  background: var(--rycal-slate-50);
  border: 1px solid var(--rycal-slate-200);
  color: var(--rycal-slate-600);
  font-size: 0.9rem;
  line-height: 1.55;
  max-width: 70ch;
}

.frq-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

/* ---- Timed writing surface ---- */

.frq-write-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}

.frq-write-top .back-button {
  margin: 0;
}

.frq-timer {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--rycal-slate-200);
  border-radius: 999px;
  background: #fff;
}

.frq-timer-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--rycal-slate-500);
}

.frq-timer-clock {
  font-size: 1.4rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--rycal-slate-800);
}

/* Calm low-time state: slightly deeper slate, never red or flashing. */
.frq-timer-low {
  border-color: var(--rycal-slate-400);
  background: var(--rycal-slate-100);
}

.frq-write-title {
  margin-top: 0;
}

.frq-write-prompt {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--rycal-slate-800);
  border-left: 4px solid var(--rycal-emerald-500);
  padding: 0.25rem 0 0.25rem 1.25rem;
  margin: 1rem 0 1.5rem;
  max-width: 75ch;
}

.frq-stimulus {
  margin: 0 0 1.25rem;
  max-width: 75ch;
}

.frq-stimulus-text {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--rycal-slate-800);
  background: var(--rycal-slate-50);
  border-left: 4px solid var(--rycal-emerald-500);
  padding: 0.75rem 1.25rem;
}

.frq-stimulus-source {
  margin-top: 0.4rem;
  font-size: 0.85rem;
  font-style: italic;
  color: var(--rycal-slate-500);
}

.frq-docs {
  margin: 0 0 1.25rem;
  border: 1px solid var(--rycal-slate-200);
  border-radius: 10px;
  background: #fff;
  max-width: 75ch;
}

.frq-docs-summary {
  margin: 0 0 1.25rem;
  max-width: 75ch;
  font-size: 0.9rem;
  color: var(--rycal-slate-600);
  background: var(--rycal-slate-50);
  border-left: 4px solid var(--rycal-emerald-500);
  padding: 0.6rem 1.25rem;
}

.frq-docs summary {
  padding: 0.8rem 1.1rem;
  cursor: pointer;
  font-weight: 700;
  color: var(--rycal-slate-800);
}

.frq-docs-body {
  padding: 0 1.1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-height: 50vh;
  overflow-y: auto;
}

.frq-doc-num {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--rycal-emerald-700);
  margin-bottom: 0.3rem;
}

.frq-doc-text {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--rycal-slate-800);
}

.frq-parts {
  margin: 0 0 1.25rem;
  color: var(--rycal-slate-600);
}

.frq-part {
  display: inline-block;
  font-weight: 700;
  color: var(--rycal-slate-800);
  background: var(--rycal-slate-100);
  border-radius: 6px;
  padding: 0.1rem 0.5rem;
  margin-right: 0.25rem;
}

.frq-timer-note {
  margin: 0 0 1rem;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  background: var(--rycal-slate-100);
  color: var(--rycal-slate-700);
  font-size: 0.95rem;
  max-width: 75ch;
}

.frq-textarea-label {
  display: block;
  font-weight: 700;
  color: var(--rycal-slate-800);
  margin-bottom: 0.5rem;
}

.frq-textarea {
  width: 100%;
  max-width: 75ch;
  min-height: 320px;
  padding: 1rem 1.25rem;
  font-size: 1.02rem;
  line-height: 1.75;
  color: var(--rycal-slate-900);
  background: #fff;
  border: 1px solid var(--rycal-slate-300);
  border-radius: 10px;
  resize: vertical;
  font-family: inherit;
}

.frq-textarea:focus {
  outline: 2px solid var(--rycal-emerald-500);
  outline-offset: 1px;
  border-color: var(--rycal-emerald-500);
}

.frq-write-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  max-width: 75ch;
  margin: 0.5rem 0 0;
  font-size: 0.85rem;
  color: var(--rycal-slate-500);
}

/* ---- Rubric walkthrough ---- */

.frq-time-note {
  padding: 0.75rem 1rem;
  border-left: 4px solid var(--rycal-emerald-500);
  background: var(--rycal-slate-50);
  color: var(--rycal-slate-700);
  border-radius: 0 8px 8px 0;
  max-width: 70ch;
}

.frq-rubric-intro {
  color: var(--rycal-slate-600);
  line-height: 1.6;
  max-width: 70ch;
}

.frq-rubric-card {
  border: 1px solid var(--rycal-slate-200);
  border-radius: 12px;
  background: #fff;
  padding: 1.5rem;
  margin: 1.25rem 0;
  max-width: 75ch;
}

.frq-rubric-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.frq-rubric-label {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--rycal-slate-900);
}

.frq-rubric-points {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--rycal-emerald-700);
  background: var(--rycal-slate-50);
  border: 1px solid var(--rycal-slate-200);
  border-radius: 999px;
  padding: 0.2rem 0.75rem;
  white-space: nowrap;
}

.frq-rubric-criteria {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--rycal-slate-800);
  margin-bottom: 0.75rem;
}

.frq-rubric-lookfor {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--rycal-slate-600);
  background: var(--rycal-slate-50);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  margin-bottom: 1.25rem;
}

.frq-lookfor-kicker {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--rycal-emerald-700);
  margin-bottom: 0.3rem;
}

.frq-selfcheck {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.frq-selfcheck button:disabled {
  opacity: 0.45;
  cursor: default;
}

.frq-my-response {
  max-width: 75ch;
  margin: 0 0 1rem;
  border: 1px solid var(--rycal-slate-200);
  border-radius: 10px;
  background: #fff;
}

.frq-my-response summary {
  padding: 0.7rem 1.1rem;
  cursor: pointer;
  font-weight: 600;
  color: var(--rycal-slate-700);
}

.frq-my-response-body {
  padding: 0 1.1rem 1.1rem;
  white-space: pre-wrap;
  line-height: 1.7;
  color: var(--rycal-slate-800);
  max-height: 40vh;
  overflow-y: auto;
}

.frq-rubric-progress {
  color: var(--rycal-slate-500);
  font-size: 0.9rem;
}

/* ---- Results ---- */

.frq-score-hero {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  margin: 1rem 0 0.25rem;
}

.frq-score-num {
  font-size: 3rem;
  font-weight: 800;
  color: var(--rycal-slate-900);
}

.frq-score-denom {
  font-size: 1.1rem;
  color: var(--rycal-slate-500);
}

.frq-recap-list {
  margin: 1.5rem 0;
  max-width: 75ch;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.frq-recap-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.7rem 1rem;
  border: 1px solid var(--rycal-slate-200);
  border-radius: 8px;
  background: #fff;
}

.frq-recap-earned {
  border-left: 4px solid var(--rycal-emerald-500);
}

.frq-recap-label {
  color: var(--rycal-slate-800);
  font-weight: 600;
}

.frq-recap-score {
  font-variant-numeric: tabular-nums;
  color: var(--rycal-slate-600);
  white-space: nowrap;
}

.frq-results-tip {
  color: var(--rycal-slate-600);
  line-height: 1.6;
  max-width: 70ch;
}

@media (max-width: 640px) {
  .frq-drill-row {
    flex-direction: column;
    align-items: stretch;
  }

  .frq-start-btn {
    width: 100%;
  }

  .frq-official-links {
    gap: 0.75rem;
  }

  .frq-intro-facts {
    gap: 1.25rem;
  }
}
