/* Namastekala Core — components. Brand tokens come from the theme; fallbacks here. */
:root {
	--nk-ink: #2B2A26; --nk-muted: #5F5A50; --nk-cream: #FBF7F0; --nk-white: #FFFFFF;
	--nk-sand: #F3E6D3; --nk-line: #E6DCCB; --nk-line-strong: #D9CDB8;
	--nk-olive: #4F5B2C; --nk-olive-dark: #2F3719; --nk-gold: #B8975A; --nk-gold-text: #7E5F28;
	--nk-sage: #E4EAD3; --nk-sage-text: #3D4722;
	--nk-radius: 20px; --nk-radius-sm: 12px; --nk-shadow: 0 10px 30px rgba(43, 42, 38, 0.08);
}

.nk-main { padding-top: 32px; padding-bottom: 64px; }
.nk-muted { color: var(--nk-muted); }
.nk-small { font-size: 14px; }
.nk-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.nk-icon { flex: 0 0 auto; vertical-align: -3px; }

/* Buttons */
.nk-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 48px; padding: 0.6em 1.5em; border-radius: 999px;
	background: var(--nk-olive); color: #FFFFFF !important; border: 1px solid var(--nk-olive);
	font-weight: 700; font-size: 16px; line-height: 1.2; text-decoration: none !important; cursor: pointer;
}
.nk-btn:hover { background: var(--nk-olive-dark); border-color: var(--nk-olive-dark); }
.nk-btn--ghost { background: transparent; color: var(--nk-ink) !important; border-color: var(--nk-ink); }
.nk-btn--ghost:hover { background: var(--nk-ink); color: var(--nk-cream) !important; }
.nk-btn--danger { background: #8A2E1C; border-color: #8A2E1C; }
.nk-btn--danger:hover { background: #6E2416; border-color: #6E2416; }
.nk-btn--block { width: 100%; }
.nk-linkbtn { background: none; border: 0; padding: 0; color: var(--nk-olive); text-decoration: underline; cursor: pointer; font: inherit; min-height: 44px; }
.nk-stack { display: flex; flex-direction: column; gap: 8px; }

/* Save (heart) */
.nk-save {
	display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px;
	border: 1px solid var(--nk-line-strong); border-radius: 999px; background: var(--nk-white);
	color: var(--nk-ink); font-family: inherit; font-weight: 600; font-size: 15px; line-height: 1; cursor: pointer; text-decoration: none;
	position: relative; z-index: 2;
}
.nk-save:hover { border-color: var(--nk-olive); color: var(--nk-ink); }
.nk-save[aria-pressed="true"] { background: var(--nk-sage); border-color: var(--nk-olive); color: var(--nk-sage-text); }
.nk-save[aria-pressed="true"] .nk-icon { fill: currentColor; }
.nk-save--compact { width: 44px; padding: 0; justify-content: center; flex: 0 0 44px; }
.nk-save--compact .nk-save__text:empty { display: none; }

/* Notices */
.nk-notice { padding: 14px 18px; border-radius: var(--nk-radius-sm); margin: 0 0 20px; background: var(--nk-sand); }
.nk-notice--success { background: var(--nk-sage); color: var(--nk-sage-text); }
.nk-notice--error { background: #F5DCD6; color: #6E2416; }
.nk-notice--info { background: var(--nk-sand); }

/* Panels & forms */
.nk-panel { background: var(--nk-white); border: 1px solid var(--nk-line); border-radius: var(--nk-radius); padding: clamp(18px, 3vw, 28px); margin: 0 0 20px; }
.nk-panel > h2 { font-size: 22px; margin: 0 0 14px; }
.nk-form .nk-field, .nk-field { display: flex; flex-direction: column; gap: 6px; margin: 0 0 16px; }
.nk-field > label, .nk-label { font-weight: 700; font-size: 15px; }
.nk-help { color: var(--nk-muted); font-size: 14px; }
.nk-form input[type="text"], .nk-form input[type="email"], .nk-form input[type="password"], .nk-form input[type="url"],
.nk-form input[type="tel"], .nk-form input[type="number"], .nk-form input[type="date"], .nk-form input[type="time"],
.nk-form select, .nk-form textarea, .nk-auth input[type="text"], .nk-auth input[type="password"] { width: 100%; }
.nk-checks { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.nk-check { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; font-weight: 400; cursor: pointer; }
.nk-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
.nk-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 20px; }
.nk-form__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.nk-inline-choice { flex-direction: row; flex-wrap: wrap; gap: 4px 20px; border: 0; padding: 0; }
.nk-photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.nk-photo-preview { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; }
.nk-cover-preview { width: 100%; max-width: 360px; height: 110px; border-radius: 12px; object-fit: cover; }
.nk-danger { border-color: #E9C4BB; }
fieldset.nk-expert-only { border: 1px solid var(--nk-line); border-radius: var(--nk-radius-sm); padding: 16px; margin: 0 0 16px; }

/* Auth */
.nk-auth { max-width: 560px; margin: 0 auto; }
.nk-auth__tabs { display: flex; gap: 8px; margin: 0 0 16px; border-bottom: 1px solid var(--nk-line); }
.nk-auth__tab { padding: 12px 18px; min-height: 48px; font-weight: 700; color: var(--nk-muted); text-decoration: none; border-bottom: 3px solid transparent; }
.nk-auth__tab.is-active { color: var(--nk-ink); border-bottom-color: var(--nk-olive); }
.nk-auth #loginform p { display: flex; flex-direction: column; gap: 6px; margin: 0 0 14px; }
.nk-auth #loginform .login-remember { flex-direction: row; }
.nk-auth #loginform .button { width: 100%; }
.nk-choice { border: 0; padding: 0; margin: 0 0 16px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.nk-choice legend { font-weight: 700; margin-bottom: 8px; }
.nk-choice__opt { display: flex; gap: 10px; align-items: flex-start; padding: 14px; border: 1px solid var(--nk-line-strong); border-radius: 14px; cursor: pointer; }
.nk-choice__opt:has(input:checked) { border: 2px solid var(--nk-olive); background: #F2F5EA; }
.nk-choice__opt > span { display: flex; flex-direction: column; gap: 2px; }
.nk-choice__opt > span > span { font-size: 14px; color: var(--nk-muted); }

/* Dashboard */
.nk-dash { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; }
.nk-dash__nav { flex: 1 1 220px; display: flex; flex-direction: column; gap: 2px; background: var(--nk-olive-dark); border-radius: var(--nk-radius); padding: 18px; }
.nk-dash__nav a { color: #E4DDCD; text-decoration: none; padding: 10px 12px; border-radius: 10px; font-weight: 600; min-height: 44px; display: flex; align-items: center; }
.nk-dash__nav a:hover, .nk-dash__nav a[aria-current="page"] { background: rgba(251, 247, 240, 0.14); color: #FFFFFF; }
.nk-dash__hello { color: #FBF7F0; font-family: var(--nk-font-display, inherit); font-size: 20px; margin: 0 0 10px 12px; }
.nk-dash__main { flex: 999 1 560px; min-width: 0; }
.nk-dash__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.nk-dash__title { font-size: clamp(28px, 4vw, 38px); margin: 0 0 16px; }
.nk-dash__head .nk-dash__title { margin: 0; }
.nk-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin: 0 0 20px; }
.nk-stat { background: var(--nk-white); border: 1px solid var(--nk-line); border-radius: 18px; padding: 18px; display: flex; flex-direction: column; gap: 4px; }
.nk-stat span { font-size: 14px; color: var(--nk-muted); }
.nk-stat strong { font-family: var(--nk-font-display, inherit); font-weight: 400; font-size: 34px; line-height: 1.1; }
.nk-stat__word { font-size: 26px !important; }
.nk-checklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.nk-checklist li { display: flex; align-items: center; gap: 12px; }
.nk-checklist li::before { content: ""; width: 22px; height: 22px; flex: 0 0 22px; border-radius: 50%; border: 2px solid var(--nk-line-strong); }
.nk-checklist li.is-done { color: var(--nk-muted); }
.nk-checklist li.is-done::before { background: var(--nk-olive); border-color: var(--nk-olive); box-shadow: inset 0 0 0 4px var(--nk-olive); }
.nk-rows { list-style: none; margin: 0 0 20px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.nk-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; background: var(--nk-white); border: 1px solid var(--nk-line); border-radius: 16px; padding: 14px 18px; }
.nk-row__main { flex: 1 1 260px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.nk-row__saves { display: inline-flex; align-items: center; gap: 4px; color: var(--nk-muted); font-size: 14px; }
.nk-row__actions { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.nk-inline-form { margin: 0; display: inline; }
.nk-status { font-size: 13px; font-weight: 700; padding: 4px 10px; border-radius: 10px; background: var(--nk-sand); }
.nk-status--publish, .nk-status--verified { background: var(--nk-sage); color: var(--nk-sage-text); }
.nk-status--rejected { background: #F5DCD6; color: #6E2416; }
.nk-status--draft { background: #EEEAE3; color: var(--nk-muted); }
.nk-empty { padding: 28px; text-align: center; border: 1px dashed var(--nk-line-strong); border-radius: var(--nk-radius); color: var(--nk-muted); }
.nk-saved { margin: 0 0 28px; }
.nk-saved h2 { font-size: 22px; }

/* Listings */
.nk-list { display: flex; flex-direction: column; gap: 18px; }
.nk-filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; padding: 18px; background: var(--nk-white); border: 1px solid var(--nk-line); border-radius: var(--nk-radius); box-shadow: var(--nk-shadow); }
.nk-filter { display: flex; flex-direction: column; gap: 6px; flex: 1 1 140px; min-width: 0; }
.nk-filter--grow { flex: 2 1 220px; }
.nk-filter > span { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--nk-muted); }
.nk-filter select, .nk-filter input { width: 100%; }
.nk-count { margin: 0; color: var(--nk-muted); }
.nk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.nk-grid--2 { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.nk-pagination .page-numbers { display: inline-flex; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; border-radius: 22px; text-decoration: none; }
.nk-pagination .page-numbers.current { background: var(--nk-olive); color: #FFFFFF; }

/* Cards: the title link covers the card; the heart sits above it. */
.nk-card { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 20px; background: var(--nk-white); border: 1px solid var(--nk-line); border-radius: var(--nk-radius); transition: box-shadow .15s ease, transform .15s ease; }
.nk-card:hover, .nk-card:focus-within { box-shadow: var(--nk-shadow); transform: translateY(-2px); }
.nk-card__link { color: var(--nk-ink); text-decoration: none; }
.nk-card__link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.nk-card__link:focus-visible { outline: none; }
.nk-card:has(.nk-card__link:focus-visible) { outline: 3px solid var(--nk-gold); outline-offset: 2px; }
.nk-card__head { display: flex; gap: 14px; align-items: center; }
.nk-card__who { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.nk-card__name { font-size: 18px; margin: 0; line-height: 1.3; font-family: inherit; font-weight: 700; }
.nk-card__sub { font-size: 14px; color: var(--nk-muted); }
.nk-card__top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.nk-card__foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding-top: 12px; border-top: 1px solid var(--nk-line); margin-top: auto; }
.nk-card__price { font-weight: 700; }
.nk-card__more { font-weight: 700; font-size: 14px; color: var(--nk-olive); }
.nk-card__img { width: calc(100% + 40px); margin: -20px -20px 0; height: 160px; object-fit: cover; border-radius: var(--nk-radius) var(--nk-radius) 0 0; max-width: none; }
.nk-eyebrow-sm { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--nk-gold-text); margin: 0; }
.nk-meta { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 15px; color: var(--nk-muted); }
.nk-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.nk-tag { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 12px; background: var(--nk-sand); color: var(--nk-ink); font-size: 13px; font-weight: 600; line-height: 1.4; }
.nk-tag--verified { background: var(--nk-sage); color: var(--nk-sage-text); font-weight: 700; }
.nk-tag--founding { background: var(--nk-gold); color: var(--nk-ink); font-weight: 700; }

/* Avatars */
.nk-avatar { width: 64px; height: 64px; flex: 0 0 64px; border-radius: 50%; object-fit: cover; display: inline-flex; align-items: center; justify-content: center; font-family: var(--nk-font-display, inherit); font-weight: 600; font-size: 22px; color: var(--nk-ink); }
.nk-avatar--lg { width: 132px; height: 132px; flex-basis: 132px; font-size: 42px; border: 5px solid var(--nk-white); }

/* Practice cards */
.nk-practices { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.nk-practice { display: flex; flex-direction: column; gap: 8px; padding: 20px; min-height: 120px; border-radius: 16px; background: var(--nk-cream); border: 1px solid var(--nk-line); color: var(--nk-ink); text-decoration: none; }
.nk-practice:hover { border-color: var(--nk-gold); color: var(--nk-ink); }
.nk-practice strong { font-family: var(--nk-font-display, inherit); font-size: 21px; font-weight: 600; }
.nk-practice span:last-child { font-size: 15px; color: var(--nk-muted); line-height: 1.5; }
.nk-practice__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--nk-gold); }

/* Profile & class pages */
.nk-profile__head { background: var(--nk-white); border: 1px solid var(--nk-line); border-radius: 24px; overflow: hidden; padding: 0 clamp(18px, 3vw, 28px) 24px; display: flex; flex-direction: column; gap: 14px; margin-bottom: 28px; }
.nk-profile__cover { height: clamp(120px, 20vw, 220px); margin: 0 calc(-1 * clamp(18px, 3vw, 28px)); background: #C9D3AE; }
.nk-profile__cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nk-profile__id { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px 20px; margin-top: -60px; }
.nk-profile__name { flex: 1 1 260px; padding-bottom: 6px; }
.nk-profile__name h1 { margin: 0; font-size: clamp(30px, 4vw, 40px); }
.nk-profile__headline { margin: 4px 0 0; color: var(--nk-muted); font-size: 17px; }
.nk-profile__body { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; }
.nk-profile__main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.nk-profile__side { flex: 1 1 300px; min-width: 0; position: sticky; top: 24px; }
.nk-tabs { display: flex; flex-wrap: wrap; gap: 6px; border-bottom: 1px solid var(--nk-line); }
.nk-tabs a { padding: 12px 16px; min-height: 48px; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--nk-muted); text-decoration: none; border-bottom: 3px solid transparent; }
.nk-tabs a[aria-selected="true"] { color: var(--nk-ink); border-bottom-color: var(--nk-olive); }
.nk-tabs__count { font-size: 12px; padding: 2px 8px; border-radius: 10px; background: var(--nk-sand); color: var(--nk-ink); }
.nk-tabpanel > h2 { font-size: 24px; }
.nk-prose { font-size: 17px; line-height: 1.7; }
.nk-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin: 20px 0 0; }
.nk-facts > div { background: var(--nk-white); border: 1px solid var(--nk-line); border-radius: 16px; padding: 16px; }
.nk-facts dt { font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--nk-muted); }
.nk-facts dd { margin: 4px 0 0; font-weight: 600; }
.nk-facts--cols { margin: 0; }
.nk-contact { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-direction: column; gap: 10px; word-break: break-word; }
.nk-contact li { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.nk-class__head { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }
.nk-class__head h1 { margin: 0; font-size: clamp(30px, 4vw, 44px); }
.nk-byline { display: inline-flex; align-items: center; gap: 12px; color: var(--nk-ink); text-decoration: none; font-weight: 600; }
.nk-byline .nk-avatar { width: 44px; height: 44px; flex-basis: 44px; font-size: 16px; }
.nk-more h2 { font-size: 24px; }

@media (max-width: 720px) {
	.nk-grid-2, .nk-grid-3, .nk-photos, .nk-choice { grid-template-columns: 1fr; }
	.nk-filter, .nk-filter--grow { flex: 1 1 100%; }
	.nk-filters .nk-btn { width: 100%; }
	.nk-grid, .nk-practices { grid-template-columns: 1fr; }
	.nk-profile__side { position: static; }
	.nk-dash__nav { flex-direction: row; flex-wrap: wrap; padding: 10px; }
	.nk-dash__hello { width: 100%; margin: 4px 8px 6px; }
}
