/**
 * Laxmi Profile Editor — frontend styles.
 * Quiet, disciplined surface; the icon controls are the one expressive element.
 */

@import url("https://fonts.googleapis.com/css2?family=Figtree:ital,wght@0,300..900;1,300..900&display=swap");
@import url("https://api.fontshare.com/v2/css?f[]=sentient@1,2&display=swap");

.laxmi {
	--laxmi-bg: #ffffff;
	--laxmi-surface: #fafafa;
	--laxmi-border: #e4e4e7;
	--laxmi-text: #1f2328;
	--laxmi-muted: #6b7280;
	--laxmi-accent: #4f46e5;
	--laxmi-edit: #2563eb;
	--laxmi-save: #15a36b;
	--laxmi-danger: #dc2626;
	--laxmi-radius: 12px;

	color: var(--laxmi-text);
	font-family: "Figtree", sans-serif;
	font-size: 15px;
	line-height: 1.45;
	position: relative;
	width: 100%;
	margin-inline: auto;
}

.laxmi *,
.laxmi *::before,
.laxmi *::after {
	box-sizing: border-box;
}

.laxmi input,
.laxmi textarea,
.laxmi select {
	font-family: inherit;
}

/* ---- eicon fallback (the three controls the brief names by codepoint) ---- */
.laxmi [class^="eicon-"],
.laxmi [class*=" eicon-"] {
	font-family: eicons;
	font-style: normal;
	font-weight: 400;
	font-variant: normal;
	text-transform: none;
	line-height: 1;
	speak: never;
	-webkit-font-smoothing: antialiased;
	display: inline-block;
}
.laxmi .eicon-edit::before { content: "\e89a"; }
.laxmi .eicon-undo::before { content: "\e911"; }
.laxmi .eicon-save::before { content: "\e881"; }

/* ---- link out to the public profile ---- */
.laxmi-profile-link {
	margin: 0 0 14px;
}
.laxmi-profile-link__a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 14px;
	text-decoration: none;
	
}



/* ---- layout: two columns ---- */
.laxmi-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px;
	align-items: start;
}

.laxmi-group {
	background: var(--laxmi-bg);
	border: 1px solid var(--laxmi-border);
	border-radius: var(--laxmi-radius);
	padding: 20px 22px 22px;
}

/* Images span the full width beneath the account / social columns. */
.laxmi-group--images {
	grid-column: 1 / -1;
}

.laxmi-group__title {
	margin: 0 0 16px;
	font-family: "Sentient", serif;
	font-size: 22px;
	font-weight: 400;
	letter-spacing: normal;
	text-transform: none;
	color: var(--laxmi-text);
}

/* ---- editable field ---- */
.laxmi-field {
	padding: 10px 0;
	border-top: 1px solid var(--laxmi-border);
}
.laxmi-field:first-of-type {
	border-top: 0;
	padding-top: 0;
}

.laxmi-field__label {
	display: block;
	font-size: 12px;
	font-weight: 600;
	color: var(--laxmi-muted);
	margin-bottom: 4px;
}

.laxmi-field__row {
	display: flex;
	align-items: center;
	gap: 8px;
	min-height: 38px;
}

.laxmi-field__read,
.laxmi-field__edit {
	display: flex;
	align-items: center;
	gap: 6px;
	width: 100%;
}

.laxmi-field__value {
	flex: 1 1 auto;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	color: var(--laxmi-text);
}
.laxmi-field__value:empty::before {
	content: "—";
	color: var(--laxmi-muted);
}
.laxmi-field__value--mask {
	letter-spacing: 2px;
	color: var(--laxmi-muted);
}

.laxmi-input {
	flex: 1 1 auto;
	min-width: 0;
	height: 38px;
	padding: 0 12px;
	font-size: 15px;
	color: var(--laxmi-text);
	background: var(--laxmi-bg);
	border: 1px solid var(--laxmi-border);
	border-radius: 8px;
}
.laxmi-input:focus {
	outline: 2px solid color-mix(in srgb, var(--laxmi-accent) 40%, transparent);
	outline-offset: 1px;
	border-color: var(--laxmi-accent);
}

.laxmi-field__error {
	margin: 6px 0 0;
	font-size: 12.5px;
	color: var(--laxmi-danger);
}

/* ---- icon controls ----
   These are divs with role="button", not <button>, so the theme's global button
   styling never reaches them. Being icons, they carry no background and no
   padding: the hit area comes from an explicit box size, the affordance from the
   ring and the icon colour. */
.laxmi-ic {
	flex: 0 0 auto;
	width: 34px;
	height: 34px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	/* No ring, no fill — an icon control is its glyph. Colour carries the
	   meaning, the fixed box keeps the hit area and the alignment. */
	border: 0;
	background: none;
	color: var(--laxmi-muted);
	cursor: pointer;
	user-select: none;
	-webkit-tap-highlight-color: transparent;
	transition: color 0.15s ease, opacity 0.15s ease, transform 0.05s ease;
}
.laxmi-ic i {
	font-size: 18px;
}
/* Icon with a text label (e.g. Upload) — the label sits beside the icon. */
.laxmi-ic--text {
	width: auto;
	gap: 6px;
}
.laxmi-ic__label {
	font-size: 13px;
	font-weight: 500;
	line-height: 1;
	white-space: nowrap;
}
.laxmi-ic:hover {
	color: var(--laxmi-text);
}
.laxmi-ic:active {
	transform: scale(0.94);
}
.laxmi-ic:focus-visible {
	outline: 2px solid var(--laxmi-accent);
	outline-offset: 2px;
}
.laxmi-ic[aria-disabled="true"] {
	opacity: 0.45;
	cursor: not-allowed;
	transform: none;
}

/*
 * edit = blue, save = green, cancel = neutral, delete = red, upload = green.
 *
 * Colour is the whole vocabulary here — the ring these variants used to tint on
 * hover is gone, so hover fades the glyph instead. One rule covers every icon
 * rather than each variant restating it.
 */
.laxmi-ic:hover:not([aria-disabled="true"]) i { opacity: 0.7; }

.laxmi-ic--edit i { color: var(--laxmi-edit); }
.laxmi-ic--save i { color: var(--laxmi-save); }
.laxmi-ic--cancel i { color: var(--laxmi-muted); }
.laxmi-ic--cancel:hover i { color: var(--laxmi-text); }
.laxmi-ic--del:hover i { color: var(--laxmi-danger); }
.laxmi-ic--up i { color: var(--laxmi-save); }
.laxmi-ic--up:hover i { color: var(--laxmi-save); }

/* ---- password policy prompt ---- */
.laxmi-policy {
	list-style: none;
	margin: 10px 0 0;
	padding: 12px 14px;
	background: var(--laxmi-surface);
	border: 1px solid var(--laxmi-border);
	border-radius: 8px;
	display: grid;
	gap: 6px;
}
.laxmi-policy__rule {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	color: var(--laxmi-muted);
	transition: color 0.15s ease;
}
.laxmi-policy__dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--laxmi-border);
	flex: 0 0 auto;
	transition: background 0.15s ease, box-shadow 0.15s ease;
}
.laxmi-policy__rule.is-met {
	color: var(--laxmi-save);
}
.laxmi-policy__rule.is-met .laxmi-policy__dot {
	background: var(--laxmi-save);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--laxmi-save) 18%, transparent);
}

/* ---- taxonomy pickers (speciality / languages / timezone) ---- */
.laxmi-picker {
	padding-top: 0;
	border-top: 0;
}
.laxmi-picker__read {
	align-items: flex-start;
}
.laxmi-chips {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	min-height: 34px;
}
.laxmi-chip {
	display: inline-flex;
	align-items: center;
	padding: 6px 11px;
	font-size: 13px;
	color: var(--laxmi-text);
	background: var(--laxmi-surface);
	border: 1px solid var(--laxmi-border);
	border-radius: 999px;
}
.laxmi-chips__empty {
	font-size: 13px;
	color: var(--laxmi-muted);
}

.laxmi-picker__edit {
	display: flex;
	flex-direction: column;
	gap: 10px;
	width: 100%;
}
.laxmi-picker__bar {
	display: flex;
	align-items: center;
	gap: 8px;
}
.laxmi-picker__search,
.laxmi-picker__spacer {
	flex: 1 1 auto;
}

.laxmi-options {
	list-style: none;
	margin: 0;
	padding: 4px;
	max-height: 220px;
	overflow-y: auto;
	display: flex;
	flex-direction: column;
	gap: 2px;
	background: var(--laxmi-bg);
	border: 1px solid var(--laxmi-border);
	border-radius: 8px;
}
.laxmi-option {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 10px;
	border-radius: 6px;
	font-size: 14px;
	cursor: pointer;
	transition: background 0.12s ease;
}
.laxmi-option:hover {
	background: var(--laxmi-surface);
}
.laxmi-option.is-selected {
	background: color-mix(in srgb, var(--laxmi-save) 8%, transparent);
}
.laxmi-option__check {
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	position: relative;
	background: var(--laxmi-bg);
	border: 1px solid var(--laxmi-border);
	border-radius: 5px;
	transition: background 0.12s ease, border-color 0.12s ease;
}
.laxmi-option.is-selected .laxmi-option__check {
	background: var(--laxmi-save);
	border-color: var(--laxmi-save);
}
.laxmi-option.is-selected .laxmi-option__check::after {
	content: "";
	position: absolute;
	left: 5px;
	top: 2px;
	width: 5px;
	height: 9px;
	border: solid #fff;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}
.laxmi-options__empty {
	padding: 10px;
	font-size: 13px;
	text-align: center;
	color: var(--laxmi-muted);
}

/* single-select (timezone): show the marker as a radio instead of a checkbox */
.laxmi-options.is-single .laxmi-option__check {
	border-radius: 50%;
}
.laxmi-options.is-single .laxmi-option.is-selected .laxmi-option__check::after {
	left: 50%;
	top: 50%;
	width: 6px;
	height: 6px;
	border: 0;
	border-radius: 50%;
	background: #fff;
	transform: translate(-50%, -50%);
}

/* ---- images: main photo ---- */
.laxmi-photo {
	display: flex;
	align-items: center;
	gap: 16px;
	padding-bottom: 18px;
	margin-bottom: 18px;
	border-bottom: 1px solid var(--laxmi-border);
}
.laxmi-photo__frame {
	width: 96px;
	height: 96px;
	flex: 0 0 auto;
	border-radius: 50%;
	overflow: hidden;
	background: var(--laxmi-surface);
	border: 1px solid var(--laxmi-border);
	display: flex;
	align-items: center;
	justify-content: center;
}
.laxmi-photo__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.laxmi-photo__placeholder i {
	font-size: 44px;
	color: var(--laxmi-border);
}
.laxmi-photo__controls {
	display: flex;
	gap: 8px;
}

/* ---- images: gallery ---- */
.laxmi-gallery-head {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 12px;
}
.laxmi-gallery-head__label {
	font-size: 12px;
	font-weight: 600;
	color: var(--laxmi-muted);
}
.laxmi-gallery-head__count {
	font-size: 12px;
	font-variant-numeric: tabular-nums;
	color: var(--laxmi-muted);
}

.laxmi-gallery {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
	gap: 10px;
}
.laxmi-gallery__item {
	position: relative;
	aspect-ratio: 1 / 1;
	border-radius: 8px;
	overflow: hidden;
	border: 1px solid var(--laxmi-border);
	background: var(--laxmi-surface);
}
.laxmi-gallery__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
/* Sits over the photo, so the icon gets a shadow for legibility rather than a
   plate behind it. */
.laxmi-gallery__del {
	position: absolute;
	top: 5px;
	right: 5px;
	width: 26px;
	height: 26px;
	border-color: transparent;
}
.laxmi-gallery__del i {
	font-size: 14px;
	color: #fff;
	filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.65));
}
.laxmi-gallery__del:hover i {
	color: var(--laxmi-danger);
}

.laxmi-gallery__empty {
	margin: 10px 0 0;
	font-size: 13px;
	color: var(--laxmi-muted);
}
.laxmi-hint {
	margin: 10px 0 0;
	font-size: 12px;
	color: var(--laxmi-muted);
}

/* ---- rich sections: experience, publications ---- */
/* The whole group reads as one frame — no internal divider between the rich
   text and its gallery. */
.laxmi-rte {
	padding-bottom: 0;
	margin-bottom: 18px;
}

.laxmi-rte__read {
	display: flex;
	align-items: flex-start;
	gap: 8px;
}
.laxmi-rte__html {
	flex: 1 1 auto;
	min-width: 0;
}
.laxmi-rte__placeholder {
	flex: 1 1 auto;
	margin: 0;
	font-size: 13px;
	color: var(--laxmi-muted);
}
.laxmi-rte__read-actions {
	flex: 0 0 auto;
}

.laxmi-rte__toolbar {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	padding: 6px;
	border: 1px solid var(--laxmi-border);
	border-bottom: 0;
	border-radius: 8px 8px 0 0;
	background: var(--laxmi-surface);
}
/* Toolbar icons follow the Elementor global primary colour, with a fallback for
   pages where the Elementor globals are not present. */
/* Rich-text toolbar buttons: smaller, but no ring either — the shared
   .laxmi-ic:hover glyph fade is their only hover state. */
.laxmi-ic--tool {
	width: 26px;
	height: 26px;
	color: var(--e-global-color-primary, var(--laxmi-text));
}
.laxmi-ic--tool i {
	font-size: 15px;
	color: var(--e-global-color-primary, var(--laxmi-text));
}

.laxmi-rte__input {
	min-height: 140px;
	max-height: 420px;
	overflow-y: auto;
	padding: 12px 14px;
	font-size: 15px;
	background: var(--laxmi-bg);
	border: 1px solid var(--laxmi-border);
	border-radius: 0 0 8px 8px;
}
.laxmi-rte__input:focus {
	outline: 2px solid color-mix(in srgb, var(--laxmi-accent) 40%, transparent);
	outline-offset: -1px;
	border-color: var(--laxmi-accent);
}

.laxmi-rte__actions {
	display: flex;
	justify-content: flex-end;
	gap: 6px;
	margin-top: 10px;
}

/* Shared typography for the editor and its read view, so what you type is
   what you see. */
.laxmi-prose > *:first-child {
	margin-top: 0;
}
.laxmi-prose > *:last-child {
	margin-bottom: 0;
}
.laxmi-prose p {
	margin: 0 0 10px;
}
.laxmi-prose ul,
.laxmi-prose ol {
	margin: 0 0 10px;
	padding-left: 22px;
}
.laxmi-prose li {
	margin-bottom: 4px;
}
.laxmi-prose a {
	color: var(--laxmi-accent);
	text-decoration: underline;
	overflow-wrap: anywhere;
}
.laxmi-prose blockquote {
	margin: 0 0 10px;
	padding-left: 12px;
	border-left: 3px solid var(--laxmi-border);
	color: var(--laxmi-muted);
}

/* ---- toast ---- */
.laxmi-toast {
	position: sticky;
	top: 12px;
	z-index: 5;
	margin: 0 0 14px;
	padding: 10px 14px;
	border-radius: 8px;
	font-size: 14px;
	background: color-mix(in srgb, var(--laxmi-save) 14%, var(--laxmi-bg));
	border: 1px solid color-mix(in srgb, var(--laxmi-save) 40%, var(--laxmi-border));
	color: color-mix(in srgb, var(--laxmi-save) 70%, #000);
}
.laxmi-toast.is-error {
	background: color-mix(in srgb, var(--laxmi-danger) 12%, var(--laxmi-bg));
	border-color: color-mix(in srgb, var(--laxmi-danger) 40%, var(--laxmi-border));
	color: color-mix(in srgb, var(--laxmi-danger) 72%, #000);
}

.laxmi-notice {
	padding: 16px 18px;
	border: 1px solid var(--laxmi-border);
	border-radius: var(--laxmi-radius);
	color: var(--laxmi-muted);
}

[hidden] {
	display: none !important;
}

/* ---- responsive ---- */
@media (max-width: 720px) {
	.laxmi-grid {
		grid-template-columns: 1fr;
	}
	.laxmi-group--images,
	.laxmi-group--rich {
		grid-column: auto;
	}
}

/* ---- reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
	.laxmi-ic,
	.laxmi-policy__rule,
	.laxmi-policy__dot {
		transition: none;
	}
}

/* ---- experience repeater ---- */
/* Full width beneath the two columns, like the images group. */
.laxmi-group--repeater {
	grid-column: 1 / -1;
}

.laxmi-rep {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.laxmi-rep__row {
	padding: 16px 18px;
	background: var(--laxmi-surface);
	border: 1px solid var(--laxmi-border);
	border-radius: 10px;
}
.laxmi-rep__row.is-editing {
	background: var(--laxmi-bg);
	border-color: color-mix(in srgb, var(--laxmi-accent) 30%, var(--laxmi-border));
}

/* read view: labelled values in a responsive two-column grid */
.laxmi-rep__grid {
	margin: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 10px 20px;
}
.laxmi-rep__pair {
	min-width: 0;
}
.laxmi-rep__key {
	margin: 0 0 2px;
	font-size: 12px;
	font-weight: 600;
	color: var(--laxmi-muted);
}
.laxmi-rep__val {
	margin: 0;
	color: var(--laxmi-text);
	overflow-wrap: anywhere;
}

.laxmi-rep__thumbs {
	margin-top: 14px;
	grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
}

.laxmi-rep__actions,
.laxmi-rep__edit-actions {
	display: flex;
	justify-content: flex-end;
	gap: 6px;
	margin-top: 14px;
}

/* edit view: one stacked field per sub-field */
.laxmi-rep__field {
	margin-bottom: 12px;
}
.laxmi-rep__field .laxmi-input {
	width: 100%;
}
.laxmi-rep__req {
	margin-left: 2px;
	color: var(--laxmi-danger);
}

.laxmi-gallery-wrap--rep {
	margin-top: 4px;
	padding-top: 14px;
	border-top: 1px solid var(--laxmi-border);
}

.laxmi-rep__save-first {
	margin: 10px 0 0;
	font-size: 12px;
	color: var(--laxmi-muted);
	font-style: italic;
}

.laxmi-rep__empty {
	margin: 0;
	font-size: 13px;
	color: var(--laxmi-muted);
}

.laxmi-rep__add {
	margin-top: 16px;
}

@media (max-width: 720px) {
	.laxmi-group--repeater {
		grid-column: auto;
	}
}
