/* Цвят на сайта: сменя се с :root{...} в Допълнителния CSS на темата */
:root{--nx-accent:#b6f24a;--nx-accent-rgb:182,242,74;--nx-accent-hover:#c8f76f;--nx-accent-ink:#0a1100}
/* НОТАРИС – оформление на постовете и страниците.
   Еднакъв вид за всеки текст: оформят се елементите на редактора (заглавия, списъци, удебелен текст,
   връзки, цитати, таблици), а не отделни думи. Цветовете са променливи, за да може друга тема да ги смени. */
.nx-content,.nx-news,.nx-hl{
	--nx-head:#fff;--nx-text:#c9d1dc;--nx-muted:#8b97ab;
	--nx-panel:#0d1119;--nx-card:#0f1520;--nx-card2:#0a0e16;--nx-line:#1b2230;--nx-line2:#141b27
}
.nx-content,.nx-content *{box-sizing:border-box}
.nx-content > :first-child{margin-top:0}
.nx-content{color:var(--nx-text);font-size:16px;line-height:1.6;font-feature-settings:"locl" 0;max-width:880px}
.nx-content p{margin:0 0 .8em}
.nx-content strong,.nx-content b{color:var(--nx-head);font-weight:700}
.nx-content h2,.nx-content h3,.nx-content h4{color:var(--nx-head);font-weight:800;letter-spacing:-.01em;line-height:1.3;margin:1.5em 0 .5em}
.nx-content h2{font-size:1.45em}
.nx-content h3{font-size:1.2em}
.nx-content h4{font-size:1.05em}
.nx-content a{color:var(--nx-accent);text-decoration:underline;text-decoration-color:rgba(var(--nx-accent-rgb),.4);text-underline-offset:3px}
.nx-content a:hover{text-decoration-color:var(--nx-accent)}
.nx-content ul,.nx-content ol{margin:0 0 1em;padding:0;list-style:none}
.nx-content li{position:relative;padding-left:26px;margin:0 0 .35em}
.nx-content ul>li:before{content:"";position:absolute;left:6px;top:.72em;width:7px;height:7px;border-radius:50%;background:var(--nx-accent)}
.nx-content ol{counter-reset:nx}
.nx-content ol>li{counter-increment:nx}
.nx-content ol>li:before{content:counter(nx);position:absolute;left:0;top:.2em;width:20px;height:20px;border-radius:50%;background:rgba(var(--nx-accent-rgb),.14);color:var(--nx-accent);font:700 12px/20px Manrope,system-ui,sans-serif;text-align:center}
.nx-content blockquote{margin:1.4em 0;padding:14px 20px;border-left:3px solid var(--nx-accent);background:var(--nx-panel);border-radius:0 12px 12px 0;color:var(--nx-head)}
.nx-content blockquote p:last-child{margin:0}
.nx-content .nx-note{margin:1.2em 0;padding:14px 18px;border:1px solid rgba(var(--nx-accent-rgb),.3);border-radius:14px;background:rgba(var(--nx-accent-rgb),.06);color:var(--nx-head)}
.nx-content hr{border:0;height:1px;background:var(--nx-line);margin:2em 0}
.nx-content table{width:100%;border-collapse:collapse;margin:0 0 1.4em;font-size:.95em}
.nx-content th,.nx-content td{border:1px solid var(--nx-line);padding:10px 12px;text-align:left;vertical-align:top}
.nx-content th{background:var(--nx-panel);color:var(--nx-head)}
.nx-content img{max-width:100%;height:auto;border-radius:12px}
.nx-content code{background:var(--nx-panel);border:1px solid var(--nx-line);border-radius:6px;padding:1px 6px;font-size:.88em}
/* връзки към файлове за изтегляне – винаги като бутон */
.nx-content a[href$=".rar"],.nx-content a[href$=".zip"],.nx-content a[href$=".exe"],.nx-content a[href$=".msi"],.nx-content a[href$=".7z"],.nx-content a[href$=".pdf"]{display:inline-flex;align-items:center;gap:8px;margin:2px 4px;padding:6px 14px;border:1px solid rgba(var(--nx-accent-rgb),.4);border-radius:10px;background:rgba(var(--nx-accent-rgb),.08);font-weight:700;text-decoration:none;line-height:1.4}
.nx-content a[href$=".rar"]:before,.nx-content a[href$=".zip"]:before,.nx-content a[href$=".exe"]:before,.nx-content a[href$=".msi"]:before,.nx-content a[href$=".7z"]:before,.nx-content a[href$=".pdf"]:before{content:"\2193";font-weight:800}
.nx-content a[href$=".rar"]:hover,.nx-content a[href$=".zip"]:hover,.nx-content a[href$=".exe"]:hover,.nx-content a[href$=".msi"]:hover,.nx-content a[href$=".7z"]:hover,.nx-content a[href$=".pdf"]:hover{background:rgba(var(--nx-accent-rgb),.16)}

.nx-ico{width:22px;height:22px;display:block}
.nx-ico--s{width:18px;height:18px}
.nx-ico--xs{width:14px;height:14px;display:inline-block;vertical-align:-2px;margin-left:4px}
.nx-tile{width:44px;height:44px;border-radius:12px;display:grid;place-items:center;background:rgba(var(--nx-accent-rgb),.1);border:1px solid rgba(var(--nx-accent-rgb),.26);color:var(--nx-accent);flex:none}
.nx-tile--sm{width:34px;height:34px;border-radius:10px}
.nx-tile--sm .nx-ico{width:18px;height:18px}

/* Карти с избрани публикации на началната */
.nx-news .nx-news__tile{width:40px;height:40px;border-radius:12px;margin-bottom:12px}
.nx-news .nx-news__tile .nx-ico{width:20px;height:20px}

/* Страница „Контакти“ */
.nx-contact__grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin:10px 0 30px;max-width:1000px}
.nx-content a.nx-contact__card,.nx-contact__card{display:flex;flex-direction:column;gap:6px;padding:30px;border:1px solid var(--nx-line);border-radius:14px;background:linear-gradient(165deg,var(--nx-card),var(--nx-card2));color:var(--nx-text);text-decoration:none;transition:border-color .25s,transform .25s}
.nx-content a.nx-contact__card:hover{border-color:rgba(var(--nx-accent-rgb),.45)}
.nx-contact__card .nx-tile{width:52px;height:52px;border-radius:12px;margin-bottom:12px}
.nx-contact__card .nx-tile .nx-ico{width:26px;height:26px}
.nx-contact__label{font:600 12px ui-monospace,Consolas,monospace;letter-spacing:.1em;text-transform:uppercase;color:var(--nx-muted)}
.nx-contact__value{font-size:1.5em;font-weight:800;color:var(--nx-head);letter-spacing:-.01em;word-break:break-word}
.nx-contact__hint{margin-top:10px;color:var(--nx-accent);font-weight:700;font-size:.92em}
@media(max-width:900px){.nx-contact__grid{grid-template-columns:1fr}}

/* Акценти: меню „Акценти“ (Appearance → Menus), показвано с [notaris_highlights] в страничната колона и на началната.
   Заглавие = заглавието на елемента, текст = полето „Описание“, икона = клас icon-… в полето „CSS класове“. */
.nx-hl{display:flex;flex-direction:column;gap:18px}
.nx-hl,.nx-hl *{box-sizing:border-box}
.nx-hl__k{font:600 12px/1.4 ui-monospace,Menlo,Consolas,monospace;letter-spacing:.1em;text-transform:uppercase;color:var(--nx-accent)}
.nx-hl a.nx-hl__i{display:flex;align-items:flex-start;gap:14px;color:var(--nx-text);text-decoration:none}
.nx-hl em{display:none}
.nx-hl__tile{width:44px;height:44px;border-radius:12px;display:grid;place-items:center;background:rgba(var(--nx-accent-rgb),.1);border:1px solid rgba(var(--nx-accent-rgb),.26);color:var(--nx-accent);flex:none}
.nx-hl__tile svg{width:22px;height:22px}
.nx-hl .nx-hl__tile{display:block;width:34px;height:34px;border:0;border-radius:0;background:none}
.nx-hl .nx-hl__tile svg{display:block;width:34px;height:34px}
.nx-hl a.nx-hl__i div{flex:1;min-width:0}
.nx-hl b{display:block;color:var(--nx-head);font-size:17px;font-weight:700;line-height:1.3;transition:color .2s}
.nx-hl a.nx-hl__i:hover b{color:var(--nx-accent)}
.nx-hl small{display:block;color:var(--nx-muted);font-size:14px;line-height:1.45;margin-top:3px}
body.nx-no-hl .ct-sidebar{display:none}
.ct-sidebar p:empty{display:none}
body.nx-no-hl [data-sidebar]{--sidebar-width:0%;--sidebar-gap:0px;grid-template-columns:1fr}

/* Начална страница (BG и EN): страниците съдържат само HTML с класове nxh-*, оформлението е тук */
.home .hero-section,.home article > .entry-header{display:none}
.nx-home{--nx-head:#fff;--nx-text:#c9d1dc;--nx-muted:#8b97ab;--nx-card:#0f1520;--nx-card2:#0a0e16;--nx-line:#1b2230;--nx-line2:#141b27;
	width:100%;background:#06080d;color:var(--nx-text);line-height:1.7;font-feature-settings:"locl" 0;overflow:hidden}
.nx-home *{box-sizing:border-box}
.nx-home a{color:inherit;text-decoration:none}
.nxh-w{width:min(100%,90vw);max-width:1290px;margin:0 auto}
.nxh-k{display:block;font:600 12px/1.4 ui-monospace,Menlo,Consolas,monospace;letter-spacing:.1em;text-transform:uppercase;color:var(--nx-accent)}
.nx-home h1,.nx-home h2,.nx-home h3{color:var(--nx-head);letter-spacing:-.02em;margin:0}
.nxh-tile{width:44px;height:44px;border-radius:12px;display:grid;place-items:center;background:rgba(var(--nx-accent-rgb),.1);border:1px solid rgba(var(--nx-accent-rgb),.26);color:var(--nx-accent);flex:none}
.nxh-tile svg{width:22px;height:22px}
/* горна част: текст вляво, акценти вдясно – същата мрежа като страничната колона на постовете */
.nxh-hero{position:relative;padding:40px 0}
.nxh-hero:after{content:"";position:absolute;width:620px;height:620px;right:-180px;top:-210px;background:radial-gradient(circle,rgba(var(--nx-accent-rgb),.05),transparent 65%);pointer-events:none}
.nxh-grid{position:relative;z-index:2;display:grid;grid-template-columns:minmax(0,1fr) 27%;column-gap:4%;row-gap:32px;align-items:start}
.nxh-grid:has(> .nxh-side:empty){grid-template-columns:minmax(0,1fr)}
.nxh-hero h1{font-size:clamp(34px,4vw,54px);font-weight:800;line-height:1.08;letter-spacing:-.035em;margin:10px 0 14px;max-width:900px}
.nxh-hero h1 em{font-style:normal;color:var(--nx-accent)}
.nxh-lead{font-size:17px;line-height:1.6;color:#aeb8c7;max-width:900px;margin:0 0 22px}
.nxh-btn{display:inline-flex;align-items:center;gap:8px;background:var(--nx-accent);color:var(--nx-accent-ink)!important;font-weight:700;padding:13px 24px;border-radius:10px}
.nxh-btn:hover{background:var(--nx-accent-hover)}
/* секции */
.nxh-sec{padding:40px 0}
.nxh-alt{background:#090c12;border-block:1px solid var(--nx-line2)}
.nxh-sec h2{font-size:clamp(26px,3vw,38px);font-weight:800;letter-spacing:-.03em;margin:6px 0 18px}
.nxh-g3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.nxh-card{display:flex;align-items:center;gap:16px;padding:20px;border:1px solid var(--nx-line);border-radius:14px;background:linear-gradient(165deg,var(--nx-card),var(--nx-card2));transition:border-color .2s}
.nxh-card:hover{border-color:rgba(var(--nx-accent-rgb),.45)}
.nxh-card b{flex:1;color:var(--nx-head);font-size:17px;font-weight:700;line-height:1.3}
.nxh-card em{font-style:normal;color:var(--nx-accent);font-size:20px}
.nxh-sup .nxh-card{padding:14px 16px}
.nxh-sup .nxh-tile{width:38px;height:38px;border-radius:12px}
.nxh-sup .nxh-tile svg{width:18px;height:18px}
.nxh-sup .nxh-card b{font-size:15px}
/* текстът „Добре дошли“ – цял, без да е разделян */
.nxh-about p{font-size:16px;line-height:1.6;color:#b9c3d0;max-width:900px;margin:0 0 12px}
.nxh-about p strong{color:var(--nx-head);font-weight:700}
.nxh-about .nxh-wish{margin-top:0}
/* избрани публикации (блок Query Loop) */
.nxh-news .wp-block-query{margin:0}
.nxh-news .wp-block-post-template{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;list-style:none;padding:0;margin:0}
.nxh-news .wp-block-post{display:flex;flex-direction:column;gap:8px;border:1px solid var(--nx-line);border-radius:14px;padding:20px;background:linear-gradient(165deg,var(--nx-card),var(--nx-card2));margin:0!important;transition:border-color .2s}
.nxh-news .wp-block-post:hover{border-color:rgba(var(--nx-accent-rgb),.45)}
.nxh-news .wp-block-post-terms{font:600 11px ui-monospace,Consolas,monospace;letter-spacing:.08em;text-transform:uppercase;color:var(--nx-muted)}
.nxh-news .wp-block-post-terms a{color:inherit}
.nxh-news .wp-block-post-title{font-size:17px;line-height:1.3;margin:0}
.nxh-news .wp-block-post-title a{color:var(--nx-head)}
.nxh-news .wp-block-read-more{color:var(--nx-accent);font-weight:700;font-size:14px;margin-top:auto}
@media(max-width:999px){.nxh-grid{grid-template-columns:minmax(0,1fr)}}
@media(max-width:900px){.nxh-g3,.nxh-news .wp-block-post-template{grid-template-columns:1fr}.nxh-sec{padding:42px 0}}

/* Карти от подменю ([notaris_submenu]) – напр. страница „Продукти“ */
.nx-sub{display:grid;gap:14px;margin:1.6em 0}
.nx-sub__i{display:flex;align-items:center;gap:18px;padding:22px 24px;border:1px solid var(--nx-line,#1b2230);border-radius:14px;background:linear-gradient(165deg,#0f1520,#0a0e16);transition:border-color .2s}
.nx-sub__i:hover{border-color:rgba(var(--nx-accent-rgb),.45)}
.nx-sub .nx-hl__tile{width:48px;height:48px;border-radius:12px}
.nx-sub__t{flex:1;min-width:0}
.nx-sub__t b{display:block;color:#fff;font-size:1.15em;font-weight:800;line-height:1.3}
.nx-sub__t p{margin:4px 0 0;color:#aeb8c7;font-size:.95em;line-height:1.55}
.nx-content a.nx-sub__b{flex:none;display:inline-flex;align-items:center;gap:6px;padding:11px 18px;border-radius:10px;background:var(--nx-accent);color:var(--nx-accent-ink);font-weight:700;font-size:.92em;text-decoration:none}
.nx-content a.nx-sub__b:hover{background:var(--nx-accent-hover)}
@media(max-width:700px){.nx-sub__i{gap:12px;padding:14px}.nx-sub .nx-hl__tile{width:40px;height:40px}.nx-content a.nx-sub__b{padding:9px 13px;font-size:0;gap:0}.nx-content a.nx-sub__b:after{content:"\2192";font-size:18px;line-height:1}}

/* Теми (етикети): под постовете и секция на началната ([notaris_topics]) */
.nx-topics{display:flex;flex-wrap:wrap;align-items:baseline;gap:6px 24px;font-feature-settings:"locl" 0}
.nx-topics a{color:#dfe5ee!important;font-weight:600;font-size:15px;line-height:1.2;text-decoration:none!important;transition:color .2s}
.nx-topics a:hover{color:var(--nx-accent)!important}
.nx-topics a.nx-c1{font-size:16px;color:#c9d1dc!important}
.nx-topics a.nx-c2{font-size:24px;font-weight:700;color:#fff!important}
.nx-topics a.nx-c3{font-size:34px;font-weight:800;color:var(--nx-accent)!important}
.nx-topics a.nx-c1:hover,.nx-topics a.nx-c2:hover{color:var(--nx-accent)!important}
.nx-topics a.nx-c3:hover{color:#fff!important}
.nx-topics__k{font:600 12px/1.4 ui-monospace,Menlo,Consolas,monospace;letter-spacing:.1em;text-transform:uppercase;color:var(--nx-accent)}
.nxh-k + .nx-topics{margin-top:14px}
.nx-post-topics{max-width:880px;margin:34px 0 0;padding-top:22px;border-top:1px solid #1b2230}



/* Бутон „Защо НОТАРИС“ под „Добре дошли“ – равностоен на „Вижте продуктите“ */
.nxh-about .nxh-more{display:inline-flex;align-items:center;gap:8px;margin-top:8px;padding:13px 24px;border-radius:10px;background:var(--nx-accent);color:var(--nx-accent-ink)!important;font-weight:700}
.nxh-about .nxh-more:hover{background:var(--nx-accent-hover)}

/* Връзка-бутон в текста: абзац с клас nx-more (напр. „Публикации за СИ →“ в края на продуктовите страници) */
.nx-content .nx-more{margin:1.6em 0 0}
.nx-content .nx-more a{display:inline-flex;align-items:center;gap:8px;padding:11px 18px;border-radius:10px;background:var(--nx-accent);color:var(--nx-accent-ink)!important;font-weight:700;text-decoration:none}
.nx-content .nx-more a:hover{background:var(--nx-accent-hover)}

/* Начална: секциите една до друга, без празни ивици между блоковете и без празно място под последната */
.home .entry-content > *{margin-top:0!important;margin-bottom:0!important}
.home .nxh-alt + .nxh-alt,.home .nx-home + .nx-home .nxh-alt{border-top:0}
.home main > .ct-container[data-sidebar]{padding-bottom:0!important}
.home .site-main article{margin-bottom:0!important}

/* Карти от подменю: цялата карта води към страницата, не само бутонът */
.nx-sub__i{position:relative;cursor:pointer}
.nx-content a.nx-sub__b:before{content:"";position:absolute;inset:0;border-radius:14px}

/* Телефон: по-компактни акценти – само заглавие и стрелка, по-ниски карти, по-малко въздух в горната част */
@media(max-width:999px){
	.nx-hl{gap:12px}
	.nx-hl a.nx-hl__i{align-items:center}
	.nx-hl .nx-hl__tile,.nx-hl .nx-hl__tile svg{width:28px;height:28px}
	.nx-hl small{display:none}
	.nx-hl b{font-size:16px}
	.nx-topics{gap:6px 18px}
	.nx-topics a.nx-c3{font-size:28px}
	.nx-topics a.nx-c2{font-size:21px}
	.nxh-hero{padding:28px 0 32px}
	.nxh-grid{row-gap:22px}
}

/* Начална: еднакви разстояния – бутонът горе е на 40 px от долния край, както бутонът „Защо НОТАРИС“; акцентите са по-стегнати */
.nxh-hero .nxh-grid{align-items:end}
.nxh-hero .nxh-side{align-self:start}
@media(max-width:999px){.nxh-hero{padding:28px 0 32px}}

/* Единен вид на компонентите на всички страници */
/* Фон: началната е на същия фон като останалите страници */
.nx-home,.nxh-alt{background:transparent}
.nxh-hero:after{display:none}
.nxh-about p{color:var(--nx-text)}
/* Икони: навсякъде зелена икона без рамка (както в „Акценти“) */
.nx-sub .nx-hl__tile,.nx-contact__card .nx-tile{display:block;width:34px;height:34px;border:0;border-radius:0;background:none}
.nx-sub .nx-hl__tile svg,.nx-contact__card .nx-tile .nx-ico{display:block;width:34px;height:34px}
.nx-contact__card .nx-tile{margin-bottom:6px}
/* Бутони: един размер */
.nxh-btn,.nxh-about .nxh-more,.nx-content .nx-more a{font-size:15px;line-height:1.3;padding:12px 22px;gap:8px;border-radius:10px;font-weight:700}
/* Карти от подменю: като редовете в категориите – вместо бутон зелена стрелка, цялата карта води към страницата */
.nx-content a.nx-sub__b,.nx-content a.nx-sub__b:hover{padding:0;gap:0;background:none;color:var(--nx-accent);font-size:0}
.nx-content a.nx-sub__b:after{content:"\2192";font-size:20px;line-height:1}
/* Карти: един фон, рамка и заобляне */
.nx-sub__i,.nx-content a.nx-contact__card,.nx-contact__card,html body.archive .entries[data-archive="default"] > article.entry-card{background:#0d1119!important;border:1px solid #1b2230;border-radius:12px!important}
.nx-content a.nx-sub__b:before{border-radius:12px}
.nx-sub{gap:8px}
.nx-sub__i{padding:13px 18px}
.nx-sub__t b{font-size:16px;font-weight:700}
.nx-content a.nx-contact__card,.nx-contact__card{padding:24px}
.nx-content .nx-note{border-radius:12px}
/* Надписи: под постовете „// теми“ както другаде */
.nx-topics__k:before{content:"// "}
/* Заглавието на категориите и етикетите е на същата височина като на постовете */
@media(min-width:1000px){html body.archive h1.page-title{margin-top:31px!important}}
