/* ════════════════════════════════════════════════════════════
   LumorowLMS — IELTS Reading: True / False / Not Given
   Frontend + editor styles. Mirrors the layout used by the IELTS
   Paragraph Topics block (side-by-side columns, brand-orange header)
   plus the TFNG radio rows from the IELTS Reading Complete block.
   ════════════════════════════════════════════════════════════ */

/* Width override: shared.css caps every .llmsb-block at 780px so
   narrow blocks stay narrow. As a "wide" reading exercise we override
   that cap here — same pattern as the IELTS Reading Complete block.
   Pairs with v3.5.156 sidebar-hiding rules. */
.llmsb-tfng-block {
    width: 100%;
    max-width: 1600px;
    border: 2px solid var(--llmsb-primary, #F77205);
    border-radius: 12px;
    padding: 20px 22px;
    background: #fff;
    color: #1a1a2e;
    margin: 24px auto;
}

.llmsb-tfng-cols {
    display: flex;
    gap: 22px;
    align-items: flex-start;
    flex-wrap: wrap;
}

/* Left: title + passage — same flex values as the paragraph-topics block
   so the two columns stay side-by-side inside a sidebar layout. */
.llmsb-tfng-passage {
    flex: 1 1 280px;
    min-width: 240px;
}
.llmsb-tfng-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 14px;
    line-height: 1.2;
}
.llmsb-tfng-para {
    margin: 0 0 14px;
    line-height: 1.6;
    color: #1a1a2e;
    font-size: 1rem;
}
.llmsb-tfng-para:last-child { margin-bottom: 0; }

/* Right: questions */
.llmsb-tfng-qcol {
    flex: 1 1 280px;
    min-width: 240px;
}
.llmsb-tfng-q-head {
    margin: 0 0 6px;
    font-size: 1.05rem;
    font-weight: 700;
    color: #1a1a2e;
}
.llmsb-tfng-q-instr {
    margin: 0 0 6px;
    font-size: 0.95rem;
    color: #1a1a2e;
    line-height: 1.45;
}
.llmsb-tfng-q-instr-sub {
    margin: 0 0 14px;
    font-size: 0.9rem;
    color: #6b7280;
    line-height: 1.5;
}
.llmsb-tfng-q-instr-sub strong { color: #1a1a2e; font-weight: 700; }

/* Individual question row (matches the IELTS Reading Complete block's
   .llmsb-iel-r-q-tfng pattern). */
.llmsb-tfng-q {
    border-radius: 4px;
    padding: 12px 14px;
    background: #fff;
    margin-bottom: 8px;
    border: 1px solid #e5e7eb;
}
.llmsb-tfng-q:hover { background: #fafbfc; }
.llmsb-tfng-q-line {
    display: flex;
    gap: 10px;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 10px;
}
.llmsb-tfng-qnum {
    font-weight: 700;
    background: #ffe9d2;
    color: #1a1a2e;
    width: 24px; height: 24px;
    border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    font-size: 13px;
}
.llmsb-tfng-qtext { flex: 1; color: #1a1a2e; }
.llmsb-tfng-opts {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-left: 34px;
}
.llmsb-tfng-opt {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    cursor: pointer;
    padding: 3px 0;
}
.llmsb-tfng-opt input[type="radio"] { accent-color: var(--llmsb-primary, #F77205); }

/* Controls */
.llmsb-tfng-controls {
    margin-top: 18px;
    display: flex;
    justify-content: flex-end;
}
.llmsb-tfng-submit {
    background: var(--llmsb-primary, #F77205);
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 10px 28px;
    cursor: pointer;
    font-weight: 700;
    font-size: 1rem;
    transition: background 0.15s, opacity 0.15s;
}
.llmsb-tfng-submit:hover:not(:disabled) { background: #d96304; }
.llmsb-tfng-submit:disabled { opacity: 0.5; cursor: not-allowed; }

/* Results */
.llmsb-tfng-results { margin-top: 18px; }
.llmsb-tfng-r-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.94rem;
}
.llmsb-tfng-r-table th,
.llmsb-tfng-r-table td {
    padding: 8px 10px;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
    vertical-align: top;
}
.llmsb-tfng-r-table th {
    background: #fafafa;
    color: #555;
    font-weight: 600;
}
.llmsb-tfng-r-table tr.is-ok { background: #f0fdf4; }
.llmsb-tfng-r-table tr.is-wrong { background: #fef2f2; }
.llmsb-tfng-r-table .mark { font-weight: 700; font-size: 1.1rem; }
.llmsb-tfng-r-table tr.is-ok .mark { color: #16a34a; }
.llmsb-tfng-r-table tr.is-wrong .mark { color: #dc2626; }
.llmsb-tfng-r-explain td { font-size: 0.9rem; color: #555; padding-top: 0; }

/* ── Editor styles ──────────────────────────────────────── */
.llmsb-tfng-editor {
    padding: 18px;
    background: #fff;
    border: 2px dashed var(--llmsb-primary, #F77205);
    border-radius: 12px;
}
.llmsb-tfng-editor-header {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--llmsb-primary, #F77205);
    margin-bottom: 8px;
}
.llmsb-tfng-editor-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 10px;
}
.llmsb-tfng-editor-meta .ok strong { color: #15803d; }
.llmsb-tfng-editor-meta .warn strong { color: #c2410c; }
.llmsb-tfng-editor-actions {
    display: flex; gap: 8px; flex-wrap: wrap;
    margin-bottom: 8px;
}
.llmsb-tfng-editor-section {
    margin-top: 18px;
    padding: 14px 16px;
    background: #fafafa;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}
.llmsb-tfng-editor-section h3 {
    margin: 0 0 10px;
    font-size: 1rem;
    color: var(--llmsb-primary, #F77205);
}
.llmsb-tfng-row {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 10px 14px;
    margin-bottom: 8px;
}
.llmsb-tfng-row-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}
.llmsb-tfng-row-num {
    background: var(--llmsb-primary, #F77205);
    color: #fff;
    border-radius: 16px;
    padding: 3px 10px;
    font-weight: 700;
    font-size: 0.85rem;
}
