/* Resume builder. Colours fall back to TCI values when the theme's presets are absent. */
.tci-resume { --tci-r-blue: var(--wp--preset--color--blue, #0062C5); --tci-r-line: var(--wp--preset--color--line, #E6ECF2); --tci-r-muted: var(--wp--preset--color--muted, #5C6A76); }
.tci-resume { max-width: 1240px; margin: 0 auto; }

.tci-r-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 20px; }
.tci-r-actions button, .tci-r-actions a {
	font: inherit; font-weight: 600; font-size: 15px; padding: 10px 18px; border-radius: 999px;
	border: 1px solid #DFE7EF; background: #fff; color: inherit; cursor: pointer; text-decoration: none;
}
.tci-r-actions .tci-r-primary { background: var(--tci-r-blue); border-color: var(--tci-r-blue); color: #fff; }
.tci-r-status, .tci-r-note { font-size: 14px; color: var(--tci-r-muted); }

.tci-r-layout { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.tci-r-form { flex: 1 1 380px; min-width: 0; }
.tci-r-paper { flex: 1 1 520px; min-width: 0; position: sticky; top: 16px; }
.tci-r-preview { width: 100%; height: 80vh; min-height: 560px; border: 1px solid var(--tci-r-line); border-radius: 12px; background: #fff; box-shadow: 0 16px 40px rgba(15, 42, 68, 0.08); }

.tci-r-form fieldset { border: 1px solid var(--tci-r-line); border-radius: 16px; padding: 16px 20px 20px; margin: 0 0 16px; display: flex; flex-wrap: wrap; gap: 0 14px; }
.tci-r-form legend { font-weight: 600; padding: 0 6px; }
.tci-r-field { flex: 1 1 200px; margin: 8px 0 0; display: flex; flex-direction: column; gap: 4px; }
.tci-r-field.tci-r-wide { flex-basis: 100%; }
.tci-r-field label { font-size: 13px; font-weight: 600; color: var(--tci-r-muted); }
.tci-r-field input, .tci-r-field textarea, .tci-r-field select, .tci-r-form > .tci-r-field select {
	font: inherit; font-size: 15px; padding: 9px 12px; border: 1px solid #CDD7E1; border-radius: 10px; background: #fff; width: 100%; box-sizing: border-box;
}
.tci-r-field input:focus, .tci-r-field textarea:focus, .tci-r-field select:focus { outline: 2px solid var(--tci-r-blue); outline-offset: 1px; border-color: transparent; }
.tci-r-row { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 0 14px; padding: 4px 0 14px; border-bottom: 1px dashed var(--tci-r-line); margin-bottom: 8px; }
.tci-r-add, .tci-r-remove { font: inherit; font-size: 14px; font-weight: 600; background: none; border: 0; padding: 8px 0; cursor: pointer; color: var(--tci-r-blue); }
.tci-r-remove { color: #A23B2A; margin-top: 4px; }

@media (max-width: 781px) {
	.tci-r-paper { position: static; }
	.tci-r-preview { height: 70vh; }
}
