/* Living Roots CMS Workflow — login, dashboard, editor styles. */

:root {
	--lrnw-ink: #12313f;
	--lrnw-navy: #17405c;
	--lrnw-teal: #1f9bb3;
	--lrnw-teal-d: #157e96;
	--lrnw-line: #dde6ea;
	--lrnw-soft: #f2f7f9;
	--lrnw-muted: #6a7a83;
}

/* ---- Login ---- */
.lrnw-login-body { margin: 0; background: linear-gradient(135deg, #12313f 0%, #17405c 60%, #157e96 130%); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; }
.lrnw-login { width: 100%; max-width: 400px; }
.lrnw-login__card { background: #fff; border-radius: 16px; padding: 34px 30px; box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.lrnw-login__logo { max-height: 54px; width: auto; display: block; margin: 0 auto 18px; }
.lrnw-login__title { margin: 0 0 4px; font-size: 1.5rem; color: var(--lrnw-ink); text-align: center; }
.lrnw-login__sub { margin: 0 0 22px; color: var(--lrnw-muted); text-align: center; font-size: .92rem; }
.lrnw-login__error { background: #fdecea; border: 1px solid #f3c4bd; color: #a13022; padding: 10px 14px; border-radius: 8px; margin-bottom: 16px; font-size: .9rem; }
.lrnw-field { display: block; margin-bottom: 14px; }
.lrnw-field > span, .lrnw-field__label { display: block; font-weight: 600; color: var(--lrnw-navy); font-size: .88rem; margin-bottom: 6px; }
.lrnw-field input[type=text], .lrnw-field input[type=email], .lrnw-field input[type=password], .lrnw-field input[type=url], .lrnw-field input[type=number], .lrnw-field input[type=date], .lrnw-field textarea, .lrnw-field select {
	width: 100%; padding: 11px 13px; border: 1px solid var(--lrnw-line); border-radius: 9px; font-size: 1rem; box-sizing: border-box; font-family: inherit;
}
.lrnw-remember { display: block; font-size: .9rem; color: var(--lrnw-muted); margin-bottom: 18px; }
.lrnw-login__foot { margin: 18px 0 0; text-align: center; font-size: .85rem; }

.lrnw-btn { display: inline-flex; align-items: center; gap: .4em; padding: 11px 20px; border-radius: 999px; border: 2px solid transparent; font-weight: 600; font-size: .95rem; cursor: pointer; text-decoration: none; background: #eef3f5; color: var(--lrnw-navy); }
.lrnw-btn:hover { text-decoration: none; }
.lrnw-btn--primary { background: var(--lrnw-teal); color: #fff; border-color: var(--lrnw-teal); }
.lrnw-btn--primary:hover { background: var(--lrnw-teal-d); border-color: var(--lrnw-teal-d); color: #fff; }
.lrnw-btn--ghost { background: #fff; border-color: var(--lrnw-line); color: var(--lrnw-navy); }
.lrnw-btn--link { background: none; border: none; color: var(--lrnw-muted); padding: 6px 8px; }
.lrnw-btn--block { width: 100%; justify-content: center; }

/* ---- App (dashboard / editor) ---- */
.lrnw-app { padding: 40px 0 60px; }
.lrnw-app__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.lrnw-app h1 { margin: 0 0 4px; }
.lrnw-muted { color: var(--lrnw-muted); font-size: .92rem; }

.lrnw-notice { padding: 13px 16px; border-radius: 10px; margin-bottom: 20px; }
.lrnw-notice--ok { background: #e8f6ea; border: 1px solid #bfe3c4; color: #256b2e; }
.lrnw-notice--err { background: #fdecea; border: 1px solid #f3c4bd; color: #a13022; }
.lrnw-notice--warn { background: #fff6e6; border: 1px solid #f0d9a8; color: #8a5b12; }
.lrnw-notice--info { background: #eaf3f7; border: 1px solid #c4dbe6; color: #2b5568; }
.lrnw-empty { background: var(--lrnw-soft); border: 1px dashed var(--lrnw-line); border-radius: 12px; padding: 28px; text-align: center; color: var(--lrnw-muted); }

.lrnw-section { background: #fff; border: 1px solid var(--lrnw-line); border-radius: 14px; padding: 18px 20px; margin-bottom: 20px; }
.lrnw-section__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.lrnw-section__head h2 { margin: 0; font-size: 1.25rem; }
.lrnw-list { list-style: none; margin: 0; padding: 0; }
.lrnw-list__item { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 0; border-top: 1px solid var(--lrnw-soft); }
.lrnw-list__title { font-weight: 600; color: var(--lrnw-ink); }
.lrnw-list__actions { margin-left: auto; font-size: .9rem; }
.lrnw-list__note { flex-basis: 100%; font-size: .85rem; color: #8a5b12; background: #fff6e6; padding: 6px 10px; border-radius: 6px; }

.lrnw-badge { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: 3px 9px; border-radius: 999px; }
.lrnw-badge--draft { background: #eceff1; color: #55636b; }
.lrnw-badge--pending { background: #fff2d6; color: #8a5b12; }
.lrnw-badge--publish { background: #e2f4e4; color: #256b2e; }
.lrnw-badge--lrn_revision { background: #fde2dc; color: #a13022; }

.lrnw-form { background: #fff; border: 1px solid var(--lrnw-line); border-radius: 14px; padding: 22px 24px; }
.lrnw-crumbs { margin: 0 0 8px; }
.lrnw-help { display: block; color: var(--lrnw-muted); font-size: .82rem; margin-top: 4px; }
.lrnw-actions { display: flex; gap: 12px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--lrnw-line); }
.lrnw-media__preview { margin: 6px 0; }
.lrnw-media__preview img { max-width: 200px; height: auto; border-radius: 8px; border: 1px solid var(--lrnw-line); }
.lrnw-toggle { font-weight: 400 !important; }

.lrnw-reedit { display: inline-block; margin-top: 6px; }
.lrnw-reedit summary { cursor: pointer; }
.lrnw-reedit form { margin-top: 8px; max-width: 360px; }

/* ---- User toolbar (Profile / Log out) ---- */
.lrnw-userbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.lrnw-userbar .lrnw-btn { padding: 8px 15px; font-size: .9rem; }
.lrnw-userbar .lrnw-btn--ghost.is-active { background: var(--lrnw-navy); color: #fff; border-color: var(--lrnw-navy); }
.lrnw-btn--logout { background: #fff; border-color: #f3c4bd; color: #a13022; }
.lrnw-btn--logout:hover { background: #a13022; border-color: #a13022; color: #fff; }

/* ---- Profile form ---- */
.lrnw-form--profile { max-width: 560px; background: #fff; border: 1px solid var(--lrnw-line); border-radius: 14px; padding: 22px 24px; }
.lrnw-fieldset { border: 1px solid var(--lrnw-line); border-radius: 10px; padding: 14px 16px 6px; margin: 18px 0 4px; }
.lrnw-fieldset legend { font-weight: 700; color: var(--lrnw-navy); padding: 0 6px; font-size: .95rem; }
.lrnw-fieldset .lrnw-muted { margin: 2px 0 12px; }
.lrnw-field input[disabled] { background: #f3f5f6; color: var(--lrnw-muted); }
.lrnw-help { display: block; color: var(--lrnw-muted); font-size: .82rem; margin-top: 5px; font-weight: 400; }
.lrnw-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
