/* Digital Kibiina app screens (mobile first). */
.kb, .kb-auth { max-width: 980px; margin: 0 auto; padding: 8px 16px 90px; }
.kb-back { margin: 4px 0 8px; font-size: 14px; }
.kb-head { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-start; justify-content: space-between; margin-bottom: 14px; }
.kb-code { background: var(--wuda-primary); color: #fff; border-radius: 16px; padding: 12px 16px; display: grid; gap: 6px; min-width: 190px; }
.kb-code small { color: #B9CDBF; font-size: 11px; text-transform: uppercase; letter-spacing: .12em; }
.kb-code strong { font-size: 26px; letter-spacing: .14em; color: var(--wuda-accent); font-weight: 700; }
.kb-code .wuda-btn { background: var(--wuda-accent); color: var(--wuda-primary) !important; border-color: var(--wuda-accent); text-align: center; }
.kb-tabs { display: flex; gap: 6px; overflow-x: auto; padding: 4px 0 10px; margin: 0 -16px 8px; padding-inline: 16px; scrollbar-width: none; -webkit-overflow-scrolling: touch; position: sticky; top: 0; z-index: 5; background: var(--wuda-bg); }
.kb-tabs::-webkit-scrollbar { display: none; }
.kb-tab { flex: none; padding: 9px 16px; border-radius: 99px; font-weight: 600; font-size: 14px; color: var(--wuda-primary) !important; background: var(--wuda-surface); border: 1px solid var(--wuda-line); text-decoration: none !important; white-space: nowrap; }
.kb-tab.is-active { background: var(--wuda-primary); color: var(--wuda-accent) !important; border-color: var(--wuda-primary); }
.kb-tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 8px 0 16px; }
.kb-tiles--2 { grid-template-columns: repeat(2, 1fr); }
.kb-tile { background: var(--wuda-surface); border: 1px solid var(--wuda-line); border-radius: 16px; padding: 14px 16px; display: grid; gap: 4px; }
.kb-tile small { color: var(--wuda-muted); font-size: 12px; font-weight: 600; }
.kb-tile strong { font-size: clamp(17px, 4.6vw, 24px); color: var(--wuda-primary); font-weight: 700; }
.kb-tile--lime { background: var(--wuda-accent); border-color: var(--wuda-accent); }
.kb-tile--lime small { color: var(--wuda-primary); }
.kb-two { display: grid; gap: 16px; }
.kb-alert { border-color: #D6E96A; background: #F6FBD8; }
.kb-note { font-size: 14px; line-height: 1.55; }
.kb-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--wuda-line); }
.kb-row:last-child { border-bottom: 0; }
.kb-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.kb-actions .wuda-inline-form, .kb-rev { margin: 2px 0; }
.kb-rev input[type=text], .kb-rev select { min-height: 36px; padding: 6px 10px; font-size: 13px; width: auto; max-width: 150px; }
.kb-det { padding: 8px 0; border-bottom: 1px solid var(--wuda-line); }
.kb-det summary { cursor: pointer; }
.kb-register { background: var(--wuda-bg); border-radius: 14px; padding: 14px; margin: 8px 0 14px; }
.kb-att { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--wuda-line); }
.kb-att select { width: auto; min-width: 130px; }
.kb-notice { padding: 12px 0; border-bottom: 1px solid var(--wuda-line); }
.kb-notice h3 { margin: 0 0 4px; font-size: 16px; }
.kb-notice.is-pinned { background: #F6FBD8; margin: 0 -12px; padding: 12px; border-radius: 12px; }
.kb-goal { margin: 12px 0 18px; }
.kb-goal__top { display: flex; justify-content: space-between; }
.kb-pos { color: #157f4f; font-weight: 600; }
.kb-neg { color: #b42318; font-weight: 600; }
.kb-auth__grid { display: grid; gap: 16px; }
.kb-auth .login-username input, .kb-auth .login-password input { width: 100%; }
@media (min-width: 760px) {
	.kb-tiles { grid-template-columns: repeat(4, 1fr); }
	.kb-tiles--2 { grid-template-columns: repeat(2, 1fr); }
	.kb-two, .kb-auth__grid { grid-template-columns: 1fr 1fr; }
	.kb-tabs { margin-inline: 0; padding-inline: 0; }
}
html[data-wuda-theme="dark"] .kb-tab { background: #12372A; color: #DCEBD9 !important; border-color: #1f4d3a; }
html[data-wuda-theme="dark"] .kb-tab.is-active { background: var(--wuda-accent); color: #0E3B2B !important; }
html[data-wuda-theme="dark"] .kb-tabs { background: #0B2A20; }
html[data-wuda-theme="dark"] .kb-tile { background: #12372A; border-color: #1f4d3a; }
html[data-wuda-theme="dark"] .kb-tile strong { color: #fff; }
html[data-wuda-theme="dark"] .kb-tile--lime strong, html[data-wuda-theme="dark"] .kb-tile--lime small { color: #0E3B2B; }
html[data-wuda-theme="dark"] .kb-alert, html[data-wuda-theme="dark"] .kb-notice.is-pinned { background: #20401f; border-color: #3b6a2c; }
html[data-wuda-theme="dark"] .kb-register { background: #0B2A20; }
html[data-wuda-theme="dark"] .kb-pos { color: #7be0a8; }
html[data-wuda-theme="dark"] .kb-neg { color: #ff9a8f; }

/* Landing page: Digital Kibiina section. */
.wl-kb { background: var(--f); color: #fff; border-radius: 28px; margin: 24px auto; max-width: 1180px; padding: 40px 22px; overflow: hidden; }
.wl-kb__top { display: grid; gap: 28px; align-items: center; }
.wl-kb .wl-kicker { color: var(--l); }
.wl-kb h2 { font-size: clamp(28px, 6.4vw, 46px); line-height: 1.08; letter-spacing: -.02em; margin: 6px 0 14px; color: #fff; }
.wl-kb__p { color: #CFE0D4; font-size: 16px; line-height: 1.65; max-width: 540px; }
.wl-kb__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.wl-kb__art { max-width: 380px; margin: 0 auto; width: 100%; }
.wl-kb__flow { display: grid; gap: 10px; margin: 30px 0 8px; padding: 0; list-style: none; }
.wl-kb__flow li { background: #164a37; border-radius: 18px; padding: 16px 16px 16px 64px; position: relative; }
.wl-kb__flow li b { position: absolute; left: 16px; top: 16px; width: 36px; height: 36px; border-radius: 50%; background: var(--l); color: var(--f); display: grid; place-items: center; font-weight: 700; }
.wl-kb__flow strong { display: block; color: #fff; }
.wl-kb__flow span { color: #B9CDBF; font-size: 14px; line-height: 1.5; }
.wl-kb__grid { display: grid; gap: 12px; margin-top: 24px; }
.wl-kb__f { background: #fff; color: var(--f); border-radius: 20px; padding: 18px; }
.wl-kb__f:nth-child(3n+1) { background: var(--l); }
.wl-kb__f h3 { font-size: 17px; margin: 8px 0 4px; }
.wl-kb__f p { font-size: 14px; line-height: 1.55; color: inherit; opacity: .85; }
.wl-kb__who { display: grid; gap: 12px; margin-top: 24px; }
.wl-kb__w { border: 1.5px solid #2c6650; border-radius: 20px; padding: 18px; }
.wl-kb__w h3 { color: #fff; font-size: 18px; margin: 0 0 6px; }
.wl-kb__w p { color: #B9CDBF; font-size: 14px; line-height: 1.55; margin: 0 0 12px; }
.wl-kb__note { margin-top: 18px; font-size: 13.5px; color: #B9CDBF; line-height: 1.6; border-top: 1px solid #2c6650; padding-top: 14px; }
@media (min-width: 820px) {
	.wl-kb { padding: 56px 48px; }
	.wl-kb__top { grid-template-columns: 1.1fr .9fr; }
	.wl-kb__flow { grid-template-columns: repeat(4, 1fr); }
	.wl-kb__grid { grid-template-columns: repeat(3, 1fr); }
	.wl-kb__who { grid-template-columns: 1fr 1fr; }
}
.wl-btn--onDark { color: #fff !important; border-color: #fff !important; }
