/* ==========================================================================
   Korean Nanny — warm, calm, bilingual.
   Cream paper background, deep navy text, a soft coral for actions, and
   pale sky / mint / peach accents. Pretendard covers Korean and Latin text
   in one family, so bilingual lines sit evenly.
   ========================================================================== */
:root {
	--kn-cream: #fffaf3;
	--kn-paper: #ffffff;
	--kn-ink: #1f2a44;
	--kn-muted: #5d6677;
	--kn-line: #eee6da;
	--kn-coral: #c94f38;
	--kn-coral-dark: #a8402c;
	--kn-sky: #e3eef8;
	--kn-mint: #e4f3ea;
	--kn-peach: #fde8dc;
	--kn-radius: 18px;
	--kn-shadow: 0 6px 24px rgba(31, 42, 68, .07);
	--kn-font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", system-ui, sans-serif;
}

/* ---- base ---- */
body, button, input, select, textarea,
.directorist-form-element, .directorist-btn {
	font-family: var(--kn-font) !important;
}
body { background: var(--kn-cream); color: var(--kn-ink); word-break: keep-all; line-height: 1.65; }
h1, h2, h3, h4, h5, h6, .site-title, .directorist-card__header__title { color: var(--kn-ink); font-family: var(--kn-font) !important; letter-spacing: -0.01em; }
a { color: var(--kn-coral-dark); }
a:hover, a:focus { color: var(--kn-coral); }
:lang(ko) body, :lang(ko) p { line-height: 1.75; }

/* ---- header ---- */
.site-header { background: var(--kn-paper) !important; box-shadow: 0 1px 0 var(--kn-line); }
.site-title a { color: var(--kn-ink) !important; font-weight: 800; font-size: 24.8px; letter-spacing: -0.02em; }
.site-title a::after { content: " 한국인 내니"; font-weight: 600; font-size: .62em; color: var(--kn-coral); margin-left: .4em; letter-spacing: 0; }
#primary-menu > li > a { color: var(--kn-ink) !important; font-weight: 600; }
#primary-menu > li > a:hover { color: var(--kn-coral) !important; }
#primary-menu > li.header-add-listing > a {
	background: var(--kn-coral) !important; color: #fff !important; border-radius: 999px !important;
	padding: .55em 1.2em !important;
}
#primary-menu > li.header-add-listing > a:hover { background: var(--kn-coral-dark) !important; }
.site-header .social-icons { display: none !important; }
.kn-badge-count { display: inline-block; min-width: 1.4em; padding: 0 .4em; border-radius: 999px; background: var(--kn-coral); color: #fff; font-size: .75em; line-height: 1.4em; text-align: center; }

/* ---- home hero ---- */
.hero-section {
	background:
		radial-gradient(circle at 12% 20%, rgba(253, 232, 220, .95) 0, rgba(253, 232, 220, 0) 38%),
		radial-gradient(circle at 88% 30%, rgba(227, 238, 248, .95) 0, rgba(227, 238, 248, 0) 40%),
		radial-gradient(circle at 60% 95%, rgba(228, 243, 234, .9) 0, rgba(228, 243, 234, 0) 42%),
		var(--kn-cream) !important;
	padding: 90px 0 70px !important;
}
.hero-section.section-overlay::before, .cta-section.section-overlay::before { display: none !important; }
.hero-section h1 { color: var(--kn-ink) !important; font-weight: 800; font-size: clamp(32px, 4.4vw, 51.2px); line-height: 1.2; max-width: 820px; margin: 0 auto 14px; }
.hero-section > .container span, .hero-section .col-md-12 > span { color: var(--kn-muted) !important; font-size: 18.4px; display: block; margin-bottom: 30px; }
.hero-section .directorist-search-form, .hero-section .directorist-search-form__box {
	background: var(--kn-paper) !important; border-radius: var(--kn-radius) !important; box-shadow: var(--kn-shadow) !important; border: 1px solid var(--kn-line) !important;
}

/* ---- section headings ---- */
.section-headings h2 { font-weight: 800; }
.section-headings span { color: var(--kn-muted); }

/* ---- buttons ---- */
.directorist-btn-primary, .directorist-btn.directorist-btn-primary, .btn-default, .directorist-btn-submit,
.kn-reply button, input[type="submit"], button[type="submit"] {
	background: var(--kn-coral) !important; border-color: var(--kn-coral) !important; color: #fff !important; border-radius: 999px !important; font-weight: 600 !important;
}
.directorist-btn-primary:hover, .btn-default:hover, .directorist-btn-submit:hover, .kn-reply button:hover, input[type="submit"]:hover, button[type="submit"]:hover {
	background: var(--kn-coral-dark) !important; border-color: var(--kn-coral-dark) !important;
}
.directorist-btn-light { background: var(--kn-sky) !important; color: var(--kn-ink) !important; border-radius: 999px !important; border: 0 !important; }

/* ---- cards (listings, single listing sections, widgets) ---- */
.directorist-listing-single, .directorist-card, .directorist-widget {
	background: var(--kn-paper) !important; border-radius: var(--kn-radius) !important; box-shadow: var(--kn-shadow) !important; border: 1px solid var(--kn-line) !important; overflow: hidden;
}
.directorist-listing-single:hover { transform: translateY(-2px); transition: transform .2s ease; }
.directorist-listing-title a { color: var(--kn-ink) !important; font-weight: 700; }
.directorist-listing-category a, .directorist-badge { border-radius: 999px !important; }
.directorist-badge-popular { background: var(--kn-peach) !important; color: var(--kn-coral-dark) !important; }
.directorist-card__header { border-bottom-color: var(--kn-line) !important; }
.directorist-card__header-icon { background: var(--kn-mint) !important; }
.directorist-form-element, .kn-reply textarea {
	border-radius: 12px !important; border: 1px solid var(--kn-line) !important; background: #fffdf9 !important;
}
.directorist-form-element:focus, .kn-reply textarea:focus { border-color: var(--kn-coral) !important; box-shadow: 0 0 0 3px rgba(226, 103, 79, .15) !important; outline: 0; }

/* ---- call to action band ---- */
.cta-section { background: linear-gradient(120deg, var(--kn-sky), var(--kn-mint)) !important; border-radius: 28px; margin: 20px auto 60px; max-width: 1140px; padding: 60px 30px !important; }
.cta-section h2 { color: var(--kn-ink) !important; font-weight: 800; }
.cta-section span { color: var(--kn-muted) !important; display: block; margin-bottom: 22px; }

/* ---- content pages (local and Korean pages) ---- */
.page .entry-content h2 { font-weight: 800; margin-top: 2em; }
.page .entry-content ol li, .page .entry-content ul li { margin-bottom: .5em; }

/* ---- sign-in prompt, messages ---- */
.kn-signin-to-message p, .kn-box p { color: var(--kn-muted); }
.kn-box { background: var(--kn-paper); border: 1px solid var(--kn-line); border-radius: var(--kn-radius); padding: 28px; box-shadow: var(--kn-shadow); }
.kn-inbox { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.kn-inbox__item a { display: grid; grid-template-columns: 1fr auto; gap: 2px 16px; padding: 18px 22px; background: var(--kn-paper); border: 1px solid var(--kn-line); border-radius: var(--kn-radius); color: var(--kn-ink); text-decoration: none; box-shadow: var(--kn-shadow); }
.kn-inbox__item.is-unread a { border-left: 4px solid var(--kn-coral); }
.kn-inbox__who { font-weight: 700; }
.kn-inbox__when { color: var(--kn-muted); font-size: .85em; grid-row: 1; grid-column: 2; }
.kn-inbox__about { color: var(--kn-coral-dark); font-size: .9em; grid-column: 1 / -1; }
.kn-inbox__snippet { color: var(--kn-muted); grid-column: 1 / -1; }
.kn-thread { display: flex; flex-direction: column; gap: 10px; margin: 20px 0; }
.kn-msg { max-width: 78%; padding: 14px 18px; border-radius: 18px; background: var(--kn-paper); border: 1px solid var(--kn-line); }
.kn-msg--mine { align-self: flex-end; background: var(--kn-peach); border-color: transparent; border-bottom-right-radius: 6px; }
.kn-msg--theirs { align-self: flex-start; border-bottom-left-radius: 6px; }
.kn-msg__meta { color: var(--kn-muted); font-size: .8em; margin-top: 6px; }
.kn-reply textarea { width: 100%; padding: 14px; }
.kn-reply__note { color: var(--kn-muted); font-size: .85em; }
.kn-thread__about { color: var(--kn-muted); }

/* ---- footer ---- */
.kn-footer { background: var(--kn-ink) !important; color: #d7dbe4; padding: 56px 0 28px; margin-top: 60px; }
.kn-footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.kn-footer__logo { color: #fff !important; font-weight: 800; font-size: 21.6px; text-decoration: none; }
.kn-footer__logo span { color: #f4a493; font-size: .7em; font-weight: 600; margin-left: .35em; }
.kn-footer p { color: #c3c9d6; max-width: 420px; margin-top: 10px; }
.kn-footer__col h3 { color: #fff; font-size: 16px; font-weight: 700; margin: 0 0 12px; }
.kn-footer__col a { display: block; color: #d7dbe4 !important; text-decoration: none; margin: 6px 0; }
.kn-footer__col a:hover { color: #fff !important; }
.kn-footer__legal { border-top: 1px solid rgba(255,255,255,.1); margin-top: 36px; padding-top: 18px; font-size: .85em; max-width: none !important; }
@media (max-width: 767px) {
	.kn-footer__grid { grid-template-columns: 1fr; gap: 22px; }
	.hero-section { padding: 56px 0 40px !important; }
	.kn-msg { max-width: 92%; }
	.site-title a::after { display: block; margin: 0; }
}

/* ==== round 2 fixes ==== */
/* our call-to-action (the customizer CSS hid the theme's old ad here) */
body .cta-section.section-overlay { display: block !important; }
.cta-section .btn-default { display: inline-block; padding: .8em 1.8em; }

/* hero */
.hero-section .col-md-12 > span { font-size: 19.2px !important; color: var(--kn-muted) !important; font-weight: 500; }

/* search box: keyword | location | category | button, one even row */
.hero-section .directorist-search-form__box { display: flex !important; align-items: center; gap: 12px; padding: 12px !important; }
.hero-section .directorist-search-form-top { flex: 1 1 auto; min-width: 0; }
.hero-section .directorist-search-form-top > .directorist-search-adv-filter { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; width: 100%; }
.hero-section .directorist-search-form-top .directorist-search-field { margin: 0 !important; padding: 0 !important; width: 100% !important; max-width: none !important; border: 0 !important; }
.hero-section .directorist-search-form-top .directorist-search-field::after,
.hero-section .directorist-search-form-top .directorist-search-field::before { display: none !important; }
.hero-section .directorist-search-form-top input.directorist-form-element,
.hero-section .directorist-search-form-top .select2-container .select2-selection--single {
	height: 52px !important; width: 100% !important; border-radius: 12px !important; border: 1px solid var(--kn-line) !important; background: #fffdf9 !important; padding: 0 16px !important; font-size: 16px !important; color: var(--kn-ink) !important;
}
.hero-section .directorist-search-form-top .directorist-select { width: 100% !important; }
.hero-section .directorist-search-form-top .select2-container { width: 100% !important; }
.hero-section .directorist-search-form-top .select2-selection__rendered { line-height: 50px !important; padding: 0 !important; color: var(--kn-muted) !important; }
.hero-section .directorist-search-form-top .select2-selection__arrow { height: 50px !important; right: 12px !important; }
.hero-section .directorist-search-location .directorist-input-icon { right: 16px !important; top: 50% !important; transform: translateY(-50%); }
.hero-section .directorist-search-field__btn--clear, .hero-section .directorist-search-field__label { display: none !important; }
.hero-section .directorist-search-form-action { flex: 0 0 auto; margin: 0 !important; }
.hero-section .directorist-search-form-action .directorist-btn { height: 52px !important; padding: 0 26px !important; }

/* no "Popular" badges or empty star ratings until there are real reviews */
.directorist-badge-popular, .directorist-listing-single .directorist-rating-meta,
.directorist-listing-details__listing-title + * .directorist-rating-meta,
.directorist-single-listing-header .directorist-info-item-rating,
.directorist-listing-single__info__top .directorist-rating-meta { display: none !important; }

/* listing pages share the cream background */
body.single-at_biz_dir, body.single-at_biz_dir #page, body.single-at_biz_dir .site-content,
.directorist-content-active, .directorist-single-contents-area, .directorist-archive-contents { background: var(--kn-cream) !important; }

/* footer headings */
.kn-footer .kn-footer__col h3 { font-size: 16px !important; letter-spacing: .02em; }
.kn-footer .kn-footer__logo { font-size: 21.6px !important; }

/* mobile header: logo on one block, menu button centred on the right */
@media (max-width: 991px) {
	header#masthead .col-md-12 { position: relative; }
	div#hamburger-menu { top: 50% !important; transform: translateY(-50%); right: 6px !important; }
	div#hamburger-menu button.open-menu span { background-color: var(--kn-ink) !important; }
	.site-logo { padding-right: 56px; }
}
@media (max-width: 767px) {
	.hero-section h1 { font-size: 32.8px !important; }
	.hero-section .col-md-12 > span { font-size: 16.8px !important; }
	.hero-section .directorist-search-form__box { flex-direction: column; align-items: stretch; }
	.hero-section .directorist-search-form-top > .directorist-search-adv-filter { grid-template-columns: 1fr; }
	.hero-section .directorist-search-form-action, .hero-section .directorist-search-form-action .directorist-btn { width: 100% !important; }
	.site-title a { font-size: 21.6px; }
}

/* ==== round 3 ==== */
/* desktop: fields and button on one row */
@media (min-width: 768px) {
	.hero-section .directorist-search-form__box { flex-wrap: nowrap !important; }
	.hero-section .directorist-search-form-top { flex: 1 1 0 !important; width: auto !important; max-width: none !important; }
	.hero-section .directorist-search-form-action { flex: 0 0 auto !important; width: auto !important; }
}
.hero-section .directorist-search-form-top .directorist-search-field { position: relative; }
.directorist-search-form .directorist-form-element::placeholder { color: var(--kn-muted) !important; opacity: 1; font-size: 16px; }
/* the category box: one label, inside the field */
.hero-section .directorist-search-category .directorist-search-field__label,
.hero-section .input-has-noLabel > label { display: none !important; }

/* phones: the menu button must show */
@media (max-width: 991px) {
	body div#hamburger-menu { display: block !important; }
	.site-title a { font-size: 20.8px !important; line-height: 1.25; }
	.site-title a::after { display: inline !important; margin-left: .35em !important; }
	nav#site-navigation.open { background: var(--kn-paper); border-radius: 14px; box-shadow: var(--kn-shadow); }
	#primary-menu > li.header-add-listing > a { display: inline-block; margin: 8px 10px; }
}

/* ==== round 4 ==== */
/* the theme sets the root font to 10px, so sizes here are in px */
.hero-section .directorist-search-form-top .select2-container .select2-selection--single { display: flex !important; align-items: center; }
.hero-section .directorist-search-form-top .select2-selection__rendered { line-height: normal !important; font-size: 16px !important; }
.hero-section .directorist-search-form-top input.directorist-form-element { font-size: 16px !important; }
/* Korean breaks between words, not inside them */
body, p, span, h1, h2, h3, li, a { word-break: keep-all; overflow-wrap: break-word; }
.cta-section span, .hero-section span { word-break: keep-all !important; }
.hero-section .directorist-search-category .select2-container,
.hero-section .directorist-search-category .select2-selection,
.hero-section .directorist-search-category .select2-selection__rendered,
.hero-section .directorist-search-category .select2-selection__placeholder { position: static !important; top: auto !important; transform: none !important; margin: 0 !important; }
.hero-section .directorist-search-category .directorist-select { position: relative; }
.hero-section .directorist-search-category .select2-selection__arrow { position: absolute !important; top: 50% !important; transform: translateY(-50%) !important; }

/* hero search: category text centred and same size as the other fields */
.hero-section .directorist-search-category .select2-selection { display:flex !important; align-items:center !important; height:100% !important; min-height:52px; }
.hero-section .directorist-search-category .select2-selection__rendered,
.hero-section .directorist-search-category .select2-selection__placeholder { font-size:16px !important; line-height:1.4 !important; color:#5b6478 !important; padding:0 !important; }
.hero-section .directorist-search-category .directorist-select { display:flex; align-items:center; height:100%; }

/* listing pages on phones: fixed Message bar */
.kn-msgbar { display: none; }
@media (max-width: 991px) {
	.kn-msgbar { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 999; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(255,250,243,.96); border-top: 1px solid #f0e4d4; box-shadow: 0 -4px 16px rgba(31,42,68,.08); }
	.kn-msgbar a { display: block; text-align: center; background: var(--kn-coral); color: #fff !important; font-weight: 600; font-size: 16px; padding: 13px 16px; border-radius: 999px; text-decoration: none; }
	body.kn-has-msgbar { padding-bottom: 76px; }
	#kn-contact { scroll-margin-top: 80px; }
}

/* Korean Nanny's own buttons and links (jobs, verification) */
body a.kn-btn, body .entry-content a.kn-btn, body a.kn-btn:hover, body button.kn-btn { text-decoration: none !important; text-transform: none !important; letter-spacing: 0; }
a.kn-btn--ghost, button.kn-btn--ghost { background: #e8f1fb !important; color: #1f2a44 !important; }
a.kn-job__title { text-decoration: none; }
a.kn-job__title:hover { color: var(--kn-coral); }
.kn-job { padding: 20px 22px; }
body .site-main article a.kn-btn, body .site-main article p a.kn-btn, body .site-main article li a.kn-job__title, body .site-main article .entry-content a.kn-btn { text-decoration: none !important; }
/* contrast: small grey text and Directorist's red links */
.directorist-single-author-membership, .directorist-listing-single__info--list li { color: #5b6478 !important; }
.directorist-checkbox__label a, .atbd_privacy_policy_area a, .atbd_term_and_condition_area a { color: var(--kn-coral-dark) !important; }
/* one typeface everywhere (the parent theme's Google Fonts are no longer loaded) */
body, button, input, select, textarea, .site-title, .site-title a, .main-navigation a, #primary-menu a, h1, h2, h3, h4, h5, h6, .btn-default, .directorist-btn { font-family: var(--kn-font) !important; }
.site-title a { font-weight: 800; letter-spacing: -0.02em; }
.site-description { display: none !important; }
.kn-404 { padding: 72px 0 96px; }
.kn-404 h1 { font-size: 36px; margin: 0 0 12px; }
.kn-404__search { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; max-width: 760px; margin-top: 24px; }
.kn-404__search label { flex: 1 1 220px; margin: 0; }
.kn-404__links { display: flex; flex-wrap: wrap; gap: 10px; }
.kn-guide-list { list-style: none; padding: 0; margin: 24px 0; display: grid; gap: 14px; }
.kn-guide-list li { background: #fff; border: 1px solid #f0e4d4; border-radius: 18px; padding: 20px 22px; color: #3a4460; }
.kn-guide-list a { font-size: 18px; color: var(--kn-ink); }
/* sign-in / sign-up buttons match the rest of the site */
body .directorist-authentication__form__btn, body .directorist-btn.directorist-btn-block { background: var(--kn-coral) !important; border-color: var(--kn-coral) !important; color: #fff !important; border-radius: 999px !important; text-decoration: none !important; font-weight: 600 !important; }
body .directorist-authentication__form__btn *, body .directorist-authentication__form__btn { text-decoration: none !important; }
body .directorist-authentication__form__btn:hover { background: var(--kn-coral-dark) !important; }
/* dashboard on phones: the listings table scrolls instead of overflowing */
.directorist-user-dashboard .directorist-dashboard-listings-tbody, .directorist-user-dashboard .directorist-table-responsive, .directorist-user-dashboard table { max-width: 100%; }
.directorist-user-dashboard .directorist-table-responsive, .directorist-user-dashboard .directorist-dashboard-my-listings .directorist-card__body { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.kn-term-head { margin: 0 0 8px; }
.kn-term-head h1 { font-size: 34px; margin: 0 0 8px; }
.kn-term-cta { margin: 24px 0 0; font-size: 16px; }
/* Browse by area / type: compact cards */
.directorist-location-list, .directorist-taxonomy-list { min-height: 0 !important; }
body .directorist-location .directorist-location__single, body .directorist-categories .directorist-categories__single { min-height: 150px !important; height: auto !important; background: linear-gradient(135deg, #fff3e6, #eef5f0) !important; border-radius: 18px !important; }
body .directorist-location__content a, body .directorist-categories__content a { text-decoration: none !important; font-size: 18px; font-weight: 700; color: var(--kn-ink) !important; }
.kn-phrases { width: 100%; border-collapse: collapse; margin: 8px 0 24px; font-size: 16px; }
.kn-phrases th { text-align: left; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: #5b6478; padding: 8px 10px; border-bottom: 2px solid #f0e4d4; }
.kn-phrases td { padding: 10px; border-bottom: 1px solid #f3ece2; vertical-align: top; }
.kn-phrases td:first-child { font-size: 18px; white-space: nowrap; }
body .kn-phrases td, body .kn-phrases th { text-align: left !important; border-left: 0 !important; border-right: 0 !important; }
@media (max-width: 600px) {
	.kn-phrases thead { display: none; }
	.kn-phrases tr { display: block; padding: 12px 0; border-bottom: 1px solid #f0e4d4; }
	body .kn-phrases td { display: block; border: 0 !important; padding: 1px 0 !important; white-space: normal !important; }
	.kn-phrases td:nth-child(2) { color: #5b6478; font-size: 14px; }
}
/* links inside page text: the parent theme's red falls just short of 4.5:1 on cream */
body .site-main article p a:not(.kn-btn), body .site-main article li a:not(.kn-btn):not(.kn-job__title), body .site-main .kn-term-cta a { color: var(--kn-coral-dark) !important; }
body .kn-term-cta a, body .kn-term-cta a:visited { color: #a8402c !important; }
/* hero search box: the theme styles every <span> in the hero like the subtitle (30px margin, large type),
   which also hit the spans inside the search form — undo that, and centre the dropdown arrow */
.hero-section .directorist-search-form span { margin: 0 !important; }
.hero-section .directorist-search-form .select2-selection__placeholder,
.hero-section .directorist-search-form .select2-selection__rendered { font-size: 16px !important; line-height: 1.4 !important; }
.hero-section .directorist-select.directorist-search-category { position: relative !important; }
.hero-section .directorist-search-category .directorist-select2-addons-area { position: absolute !important; top: 50% !important; right: 16px !important; transform: translateY(-50%) !important; height: auto !important; display: flex !important; align-items: center; }
.hero-section .directorist-search-category .directorist-select2-addon { position: static !important; }
.hero-section .directorist-search-form-top, .hero-section .directorist-search-adv-filter { align-items: center !important; }
.hero-section .directorist-search-form__box { align-items: center !important; }
.hero-section .directorist-search-form-action { align-self: center !important; }
.hero-section .directorist-search-form-action .directorist-btn { border-radius: 14px !important; height: 52px !important; }
@media (max-width: 767px) {
	.hero-section .directorist-search-form-action, .hero-section .directorist-search-form-action__submit, .hero-section .directorist-search-form-action .directorist-btn { width: 100% !important; padding-left: 0 !important; justify-content: center; }
}
