/* WordPress layout in the approved Otravlen palette, without legacy sprite assets. */
html { scroll-padding-top: 20px; }
.nj-wp { margin: 0; }
.nj-wp h1, .nj-wp h2, .nj-wp h3 { font-weight: 700; letter-spacing: -.015em; }
.nj-wp h1 { font-size: clamp(28px, 3vw, 38px); line-height: 1.2; margin: 0 0 22px; }
.nj-wp h2 { font-size: 25px; line-height: 1.3; margin: 0 0 18px; }
.nj-wp h3 { font-size: 21px; line-height: 1.35; }
.nj-wp .wrapper { margin: 0 auto; }
.nj-wp .header__logo { display: flex; align-items: center; gap: 14px; min-width: 0; padding: 0; background: none; height: auto; text-decoration: none; }
.brand-icon { width: 66px; height: 66px; object-fit: contain; flex-shrink: 0; }
.nj-brand-text { display: flex; flex-direction: column; }
.nj-wp .header__logo .logo__domain { font: 700 36px/1.15 -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif; }
.nj-wp .header__logo .logo__slogan { margin-top: 5px; font-size: 13px; }
.nj-wp .site-search { min-width: 0; }
.nj-wp .header-menu ul, .nj-wp .header-menu li { list-style: none; margin: 0; padding: 0; }
.nj-wp .header-menu li a[aria-current] { background: var(--green-dark); box-shadow: inset 0 -3px var(--orange); }
.nj-wp .header-menu li::before { content: none; }
.nj-wp .header-menu li a { font-size: 13px; padding-inline: 12px; white-space: normal; }
.nj-menu-toggle { display: none; border: 0; width: 100%; background: var(--green-dark); color: #fff; padding: 14px 20px; font: inherit; font-weight: 600; text-align: left; }
.nj-breadcrumbs { margin-bottom: 20px; color: var(--muted); font-size: 13px; }
.nj-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.nj-skip-link { position: fixed; z-index: 99999; top: 8px; left: 8px; padding: 10px 18px; background: #fff; transform: translateY(-200%); }
.nj-skip-link:focus { transform: translateY(0); }
.nj-eyebrow { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; font-weight: 700; color: var(--green); margin-bottom: 12px; }
.nj-home-intro { margin-bottom: 38px; }
.nj-home-intro > p:last-of-type { font-size: 17px; color: var(--muted); max-width: 660px; }
.nj-learning-steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; list-style: none; padding: 0; margin: 25px 0 0; }
.nj-learning-steps li { display: flex; align-items: flex-start; gap: 13px; padding: 20px; border: 1px solid var(--line); border-radius: 12px; background: #f6f8f3; }
.nj-learning-steps h2 { font-size: 17px; margin: 0 0 8px; }
.nj-learning-steps h2 a { text-decoration: none; }
.nj-learning-steps p { font-size: 14px; line-height: 1.55; color: var(--muted); margin: 0; }
.nj-step-number { display: grid; place-items: center; width: 28px; height: 28px; flex-shrink: 0; border-radius: 50%; color: #fff; background: var(--green); font-size: 14px; font-weight: 700; }
.nj-home-section { margin-bottom: 34px; }
.nj-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 0 0 28px; }
.nj-card { display: flex; flex-direction: column; overflow: hidden; min-width: 0; border: 1px solid var(--line); border-radius: 12px; background: #fff; transition: box-shadow .18s ease; }
.nj-card:hover { box-shadow: var(--shadow); }
.nj-card-image { display: block; }
.nj-card-image img { display: block; width: 100%; height: 150px; object-fit: cover; }
.nj-card-body { display: flex; flex-direction: column; flex: 1; gap: 9px; padding: 16px; }
.nj-card-category { color: var(--green); font-size: 12px; line-height: 1.3; text-decoration: none; }
.nj-card h2 { margin: 0; padding: 0; font-size: 17px; line-height: 1.4; }
.nj-card h2 a { display: inline; padding: 0; color: var(--ink); text-decoration: none; }
.nj-card h2 a:hover { color: var(--green-dark); text-decoration: underline; }
.nj-card p { font-size: 14px; line-height: 1.55; color: var(--muted); margin: 0; }
.nj-date { display: block; font-size: 12px; color: var(--muted); margin-top: auto; }
.nj-card--text { background: #fbfcf8; }
.nj-side-list { list-style: none; margin: 0; padding: 0; }
.nj-side-list li { margin: 0; padding: 0; }
.nj-side-item { display: flex; align-items: flex-start; gap: 12px; padding: 14px; border-top: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: 14px; line-height: 1.4; }
.nj-side-item img { width: 78px; height: 65px; object-fit: cover; border-radius: 7px; flex-shrink: 0; }
.nj-side-item:hover { background: #f7f9f4; }
.nj-side-section .section__title { margin: 0; font-size: 18px; }
.nj-hero { display: block; width: 100%; max-height: 430px; object-fit: cover; margin: 22px 0; border-radius: 10px; }
.nj-article-header .nj-date { margin: -8px 0 22px; }
.nj-article { font-size: 17px; line-height: 1.8; overflow-wrap: break-word; }
.nj-article p { margin: 0 0 20px; }
.nj-article h2 { margin: 32px 0 16px; font-size: 25px; }
.nj-article h3 { margin: 26px 0 14px; }
.nj-article ul, .nj-article ol { padding-left: 27px; margin: 18px 0 23px; }
.nj-article ul, .nj-article ul li { list-style: disc; }
.nj-article ol, .nj-article ol li { list-style: decimal; }
.nj-article li { padding: 0; margin: 0 0 8px; }
.nj-article li::before { display: none; }
.nj-article blockquote, .nj-article .callout, .nj-article .note, .nj-medical { padding: 18px 20px; margin: 24px 0; background: #f5f7f2; border-left: 4px solid var(--green); border-radius: 0 7px 7px 0; box-shadow: none; }
.nj-article blockquote p:last-child { margin-bottom: 0; }
.nj-article img { height: auto; max-width: 100%; }
.nj-article table { border-collapse: collapse; width: 100%; display: block; overflow-x: auto; font-size: 15px; margin-bottom: 20px; }
.nj-article th, .nj-article td { border: 1px solid #dbe3d5; padding: 10px; vertical-align: top; min-width: 110px; }
.nj-article th { background: #f3f6f1; font-weight: 700; text-align: left; }
.nj-table-scroll { max-width: 100%; overflow-x: auto; margin: 20px 0; }
.nj-table-scroll table { display: table; margin: 0; }
.nj-toc { padding: 20px; background: #f5f7f2; border: 1px solid var(--line); border-radius: 10px; margin: 24px 0; }
.nj-toc h2 { font-size: 20px; margin-bottom: 12px; }
.nj-toc ol { padding-left: 22px; margin: 0; }
.nj-toc li { margin-bottom: 7px; font-size: 15px; }
.nj-toc-h3 { margin-left: 15px; }
.nj-sources { margin-top: 34px; }
.nj-sources h2 { font-size: 23px; }
.nj-sources ol { padding-left: 25px; }
.nj-sources li { font-size: 15px; line-height: 1.6; margin-bottom: 13px; overflow-wrap: anywhere; }
.nj-sources p { color: var(--muted); margin: 5px 0; }
.nj-video { margin: 28px 0; }
.nj-video-frame { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #f1f4ef; }
.nj-video iframe { border: 0; width: 100%; height: 100%; position: absolute; inset: 0; }
.nj-video figcaption { margin-top: 8px; font-size: 14px; color: var(--muted); }
.nj-related { margin-top: 35px; }
.nj-related .nj-card h2 { font-size: 16px; }
.nj-rating { margin: 34px 0; padding: 25px 18px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); text-align: center; }
.nj-rating h2 { margin: 0 0 7px; font-size: 23px; }
.nj-rating p { margin: 6px 0; color: var(--muted); font-size: 14px; }
.nj-stars { display: flex; justify-content: center; gap: 5px; }
.nj-star { background: none; border: 0; padding: 3px; min-width: 44px; min-height: 44px; color: #87967d; font: 36px/1.2 Georgia, serif; cursor: pointer; }
.nj-star:hover, .nj-star:focus-visible, .nj-star.is-selected { color: var(--orange); }
.nj-star:disabled { cursor: default; }
.nj-button { display: inline-block; padding: 11px 20px; border: 1px solid var(--green-dark); border-radius: 8px; background: var(--green-dark); color: #fff; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; }
.nj-button:hover { color: #fff; background: #284831; }
.nj-button:disabled { opacity: .6; cursor: wait; }
.nj-contact-form { max-width: 680px; position: relative; }
.nj-contact-form > label { display: block; margin-bottom: 17px; font-weight: 600; font-size: 15px; }
.nj-contact-form input:not([type='checkbox']), .nj-contact-form textarea { display: block; width: 100%; box-sizing: border-box; padding: 11px 12px; margin-top: 7px; border: 1px solid #c8d3c3; border-radius: 7px; font: inherit; font-weight: 400; background: #fff; color: var(--ink); }
.nj-contact-form textarea { resize: vertical; min-height: 150px; }
.nj-contact-form .nj-consent { display: flex; align-items: flex-start; gap: 10px; font-weight: 400; font-size: 14px; line-height: 1.6; }
.nj-consent input { margin-top: 4px; flex-shrink: 0; }
.nj-contact-note { font-size: 14px; color: var(--muted); line-height: 1.6; }
.nj-honeypot { position: absolute; left: -10000px; top: 0; width: 1px; height: 1px; overflow: hidden; }
.nj-form-status { min-height: 24px; margin-top: 12px; font-size: 14px; }
.nj-wp .pagination { margin: 28px 0; padding: 0; clear: both; }
.nj-wp .pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.nj-wp .pagination .page-numbers { display: inline-flex; justify-content: center; align-items: center; min-width: 42px; min-height: 42px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 7px; text-decoration: none; color: var(--green-dark); }
.nj-wp .pagination .current { color: #fff; background: var(--green); border-color: var(--green); }
.nj-wp .footer-nav ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 9px; }
.nj-wp .footer-nav li { margin: 0; padding: 0; }
.nj-wp .footer p { margin-bottom: 12px; }
@media (max-width: 1023px) {
    .nj-wp .content__wrapper { grid-template-columns: minmax(0, 1fr); }
    .nj-wp .sidebar { display: block; }
    .nj-wp .sidebar-wrap { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
    .nj-wp .sidebar-wrap .section { margin: 0 !important; }
    .nj-wp .header { padding: 22px 28px; }
    .nj-wp .header__logo .logo__domain { font-size: 31px; }
}
@media (max-width: 700px) {
    .nj-wp .header { flex-wrap: wrap; gap: 17px; padding: 20px; }
    .nj-wp .site-search { flex: 1 1 100%; }
    .nj-wp .content__wrapper { padding: 26px 20px 40px; gap: 28px; }
    .nj-wp .header-menu { padding: 0 8px; }
    .nj-wp .header-menu ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .nj-js .nj-menu-toggle { display: block; }
    .nj-js .header-menu[data-open='false'] { display: none; }
    .nj-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
    .nj-learning-steps { grid-template-columns: minmax(0, 1fr); }
    .nj-article { font-size: 16px; }
    .nj-wp .footer { padding: 28px 20px; }
}
@media (max-width: 480px) {
    .nj-grid, .nj-wp .sidebar-wrap { grid-template-columns: minmax(0, 1fr); }
    .nj-card-image img { height: 190px; }
    .nj-card h2 { font-size: 18px; }
    .nj-wp .header__logo .logo__domain { font-size: 29px; }
    .brand-icon { width: 52px; height: 52px; }
    .nj-wp .header__logo .logo__slogan { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .nj-card { transition: none; }
}

.nj-wp .nj-home-content { width: 100%; float: none; }
.nj-home-content .nj-card-image img { height: 210px; }

/* Approved homepage variant 5: two leading cards, six supporting cards, latest in four columns. */
.nj-wp.home .content__wrapper { grid-template-columns: minmax(0, 1fr); }
.nj-home-content { grid-column: 1 / -1; }
.nj-home-content .nj-home-intro > p:last-of-type { max-width: 850px; }
.nj-home-content .nj-learning-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.nj-home-content .nj-learning-steps li { padding: 17px; gap: 10px; }
.nj-home-content .nj-learning-steps h2 { font-size: 16px; }
.nj-home-content .nj-home-section { margin-bottom: 44px; }
.nj-home-content .nj-card h2 { font-size: 19px; line-height: 1.35; }
.nj-home-content .nj-card-body p { font-size: 14px; line-height: 1.55; }
.nj-home-content .nj-card-image img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.nj-home-popular .nj-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.nj-home-popular .nj-card { grid-column: span 2; }
.nj-home-popular .nj-card:nth-child(-n+2) { grid-column: span 3; }
.nj-home-latest .nj-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) {
    .nj-home-content .nj-learning-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .nj-home-latest .nj-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
    .nj-home-content .nj-learning-steps, .nj-home-popular .nj-grid, .nj-home-latest .nj-grid { grid-template-columns: minmax(0, 1fr); }
    .nj-home-popular .nj-card, .nj-home-popular .nj-card:nth-child(-n+2) { grid-column: auto; }
}
