/* Novin Cloud blog theme. Tokens mirror novin.cloud (www/src/app/globals.css). */

@font-face { font-family: 'Yekan Bakh'; src: url(../fonts/YekanBakh-Light.woff2) format('woff2'); font-weight: 300; font-display: swap; }
@font-face { font-family: 'Yekan Bakh'; src: url(../fonts/YekanBakh-Regular.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Yekan Bakh'; src: url(../fonts/YekanBakh-Medium.woff2) format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Yekan Bakh'; src: url(../fonts/YekanBakh-SemiBold.woff2) format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Yekan Bakh'; src: url(../fonts/YekanBakh-Bold.woff2) format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Yekan Bakh'; src: url(../fonts/YekanBakh-ExtraBold.woff2) format('woff2'); font-weight: 800; font-display: swap; }
@font-face { font-family: 'Inter'; src: url(../fonts/Inter-Variable.woff2) format('woff2'); font-weight: 100 900; font-display: swap; }

:root {
	--background: 0 0% 100%;
	--foreground: 240 10% 3.9%;
	--card: 0 0% 100%;
	--popover: 0 0% 100%;
	--primary: 184 35% 25%;
	--primary-foreground: 0 0% 98%;
	--muted: 240 4.8% 95.9%;
	--muted-foreground: 240 3.8% 46.1%;
	--border: 240 5.9% 90%;
	--ring: 184 35% 25%;
	--brand: #2b5457;
	--brand-line: #42878a80;
	--brand-soft: #85c3c2;
	--radius: 0.5rem;
	--font: 'Yekan Bakh', 'Inter', system-ui, sans-serif;
	color-scheme: light;
}

html.dark {
	--background: 240 10% 3.9%;
	--foreground: 0 0% 98%;
	--card: 240 6% 7%;
	--popover: 240 10% 3.9%;
	--muted: 240 3.7% 15.9%;
	--muted-foreground: 240 5% 64.9%;
	--border: 240 3.7% 15.9%;
	--ring: 184 35% 35%;
	--brand-soft: #ffffff;
	color-scheme: dark;
}

html[lang^='en'] { --font: 'Inter', 'Yekan Bakh', system-ui, sans-serif; }

*, *::before, *::after { box-sizing: border-box; border-color: hsl(var(--border)); }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 7rem; }

body {
	margin: 0;
	background: hsl(var(--background));
	color: hsl(var(--foreground));
	font-family: var(--font);
	font-size: 1rem;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
}

img, svg, video, iframe { max-width: 100%; }
img { height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { line-height: 1.4; margin: 0; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid hsl(var(--ring)); outline-offset: 2px; border-radius: 4px; }

.nc-icon { flex-shrink: 0; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nc-skip { position: absolute; inset-inline-start: 1rem; top: -4rem; z-index: 100; background: hsl(var(--primary)); color: #fff; padding: .5rem 1rem; border-radius: var(--radius); }
.nc-skip:focus { top: 1rem; }

.nc-container { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: 1rem; }
.nc-narrow { max-width: 800px; }

/* Buttons & badges */
.nc-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
	height: 2.5rem; padding: 0 1rem; border-radius: var(--radius); border: 0;
	font-size: .875rem; font-weight: 600; white-space: nowrap; transition: background-color .2s, opacity .2s;
}
.nc-btn--primary { background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); }
.nc-btn--primary:hover { opacity: .9; }
.nc-btn--light { background: #fff; color: #334155; }
.nc-btn--light:hover { background: rgb(255 255 255 / .9); }
.nc-btn--outline { height: 2rem; font-size: .75rem; border: 1px solid hsl(var(--border)); background: hsl(var(--background)); color: hsl(var(--foreground)); }
.nc-btn--outline:hover { background: hsl(var(--muted)); }

.nc-badge {
	display: inline-flex; align-items: center; padding: .125rem .625rem; border-radius: 999px;
	border: 1px solid hsl(var(--primary) / .2); color: hsl(var(--primary));
	font-size: .75rem; font-weight: 600; line-height: 1.6; transition: background-color .2s;
}
.nc-badge:hover { background: hsl(var(--primary) / .08); }
.nc-badge--solid { background: hsl(var(--primary) / .1); border-color: transparent; }
html.dark .nc-badge { color: #fff; border-color: rgb(255 255 255 / .2); }

/* Header (mirrors www header.tsx / mobile-menu.tsx) */
.nc-header { position: sticky; top: 0; z-index: 50; padding: 1rem; }
.nc-header__bar {
	position: relative; max-width: 1280px; height: 5rem; margin-inline: auto; padding-inline: 1.5rem;
	display: flex; align-items: center; justify-content: space-between; gap: 1rem;
	background: var(--brand); border: 1px solid var(--brand-line); border-radius: 1rem;
	transition: box-shadow .2s;
}
.nc-header.is-scrolled .nc-header__bar { box-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1); }
.nc-header__logo { transition: opacity .2s; }
.nc-header__logo:hover { opacity: .8; }
.nc-header__logo img { height: 2.5rem; width: auto; }
.nc-header__actions { display: flex; align-items: center; gap: .5rem; }
.nc-controls { display: flex; align-items: center; gap: .5rem; }

.nc-nav { position: relative; display: flex; align-items: center; gap: .25rem; }
.nc-nav__item {
	display: inline-flex; align-items: center; gap: .25rem; height: 2.5rem; padding: .5rem 1rem; border: 0; border-radius: .375rem;
	background: transparent; color: rgb(255 255 255 / .9); font-family: inherit; font-size: 1rem; font-weight: 600; line-height: 1.5;
	transition: background-color .15s, color .15s;
}
.nc-nav__item:hover, .nc-nav__item:focus-visible, .nc-dd.is-open > .nc-nav__item { background: rgb(255 255 255 / .1); color: #fff; outline: none; }
.nc-nav__item .nc-icon { position: relative; top: 1px; margin-inline-start: .25rem; transition: transform .2s; }
.nc-dd.is-open > .nc-nav__item .nc-icon { transform: rotate(180deg); }

/* Nav dropdown panel: anchored to the nav start like Radix's NavigationMenu viewport */
.nc-dd__panel { position: absolute; inset-inline-start: 0; top: 100%; padding-top: .375rem; z-index: 60; display: none; }
.nc-dd.is-open > .nc-dd__panel { display: block; animation: nc-zoom .15s ease-out; }
@media (hover: hover) { .nc-nav .nc-dd:hover > .nc-dd__panel { display: block; animation: nc-zoom .15s ease-out; } .nc-nav .nc-dd:hover > .nc-nav__item { background: rgb(255 255 255 / .1); color: #fff; } .nc-nav .nc-dd:hover > .nc-nav__item .nc-icon { transform: rotate(180deg); } }
@keyframes nc-zoom { from { opacity: 0; transform: scale(.95); } to { opacity: 1; transform: none; } }
.nc-dd__grid {
	display: grid; gap: .75rem; padding: 1rem; border: 1px solid hsl(var(--border)); border-radius: .375rem;
	background: hsl(var(--popover)); color: hsl(var(--foreground)); box-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);
}
.nc-dd__grid--services { width: 600px; grid-template-columns: 1fr 1fr; }
.nc-dd__grid--solutions { width: 400px; }
.nc-dd__grid a { display: block; padding: .75rem; border-radius: .375rem; line-height: 1; transition: background-color .15s; }
.nc-dd__grid a:hover, .nc-dd__grid a:focus-visible { background: hsl(var(--muted)); outline: none; }
.nc-dd__title { display: block; font-size: .875rem; font-weight: 500; line-height: 1; }
.nc-dd__desc { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: .25rem; font-size: .75rem; line-height: 1.375; color: hsl(var(--muted-foreground)); }

/* Theme toggle: ghost icon button h-9 w-9 */
.nc-themebtn {
	display: inline-flex; align-items: center; justify-content: center; width: 2.25rem; height: 2.25rem;
	border: 0; border-radius: .375rem; background: transparent; color: #fff; transition: background-color .15s;
}
.nc-themebtn:hover { background: rgb(255 255 255 / .1); }
.nc-themebtn--menu { color: hsl(var(--foreground)); }
.nc-themebtn--menu:hover { background: hsl(var(--muted)); }
html.dark .nc-show-light, html:not(.dark) .nc-show-dark { display: none; }
.nc-show-light, .nc-show-dark { display: inline-flex; }

/* Language switcher: globe with a flag badge + dropdown of flags */
.nc-langdd { position: relative; }
.nc-langdd__trigger {
	position: relative; display: flex; align-items: center; gap: .5rem; padding: .375rem .5rem; border: 0; border-radius: .375rem;
	background: transparent; color: #fff; transition: background-color .15s;
}
.nc-langdd__trigger:hover { background: rgb(255 255 255 / .1); }
.nc-langdd--menu .nc-langdd__trigger { color: hsl(var(--foreground)); }
.nc-langdd--menu .nc-langdd__trigger:hover { background: hsl(var(--muted)); }
.nc-langdd__badge { position: absolute; top: -.25rem; right: -.25rem; display: flex; width: 1rem; height: .75rem; overflow: hidden; box-shadow: 0 0 0 1px rgb(255 255 255 / .1); }
.nc-langdd--menu .nc-langdd__badge { box-shadow: 0 0 0 1px hsl(var(--border)); }
.nc-langdd__badge svg { width: 100%; height: 100%; }
.nc-langdd__menu {
	position: absolute; top: calc(100% + 4px); inset-inline-end: 0; z-index: 60; display: none; min-width: 180px; padding: .25rem;
	border: 1px solid hsl(var(--border)); border-radius: .375rem; background: hsl(var(--popover)); color: hsl(var(--foreground));
	box-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);
}
.nc-langdd--menu .nc-langdd__menu { top: auto; bottom: calc(100% + 4px); inset-inline-end: auto; inset-inline-start: 0; }
.nc-langdd.is-open .nc-langdd__menu { display: block; animation: nc-zoom .15s ease-out; }
.nc-langdd__menu a { display: flex; align-items: center; gap: .75rem; padding: .75rem 1rem; border-radius: .125rem; font-size: .875rem; font-weight: 500; transition: background-color .15s; }
.nc-langdd__menu a:hover, .nc-langdd__menu a:focus-visible { background: hsl(var(--muted)); outline: none; }
.nc-langdd__menu a.is-active { background: hsl(var(--primary) / .1); }
.nc-langdd__menu a[lang='en'] { font-family: 'Inter', sans-serif; }
.nc-langdd__menu a[lang='fa'] { font-family: 'Yekan Bakh', sans-serif; }
.nc-langdd__flag { width: 1.75rem; height: 1.25rem; border-radius: .125rem; overflow: hidden; flex-shrink: 0; }

.nc-menubtn { display: none; align-items: center; justify-content: center; width: 2.5rem; height: 2.5rem; padding: 0; border: 0; border-radius: .375rem; background: transparent; color: #fff; }
.nc-menubtn:hover { background: rgb(255 255 255 / .1); }

/* Mobile drawer (Sheet side="right") */
.nc-drawer[hidden] { display: none; }
.nc-drawer__overlay { position: fixed; inset: 0; z-index: 70; background: rgb(0 0 0 / .8); animation: nc-fade .2s; }
.nc-drawer__panel {
	position: fixed; top: 0; bottom: 0; right: 0; z-index: 71; width: 300px; max-width: 85vw; display: flex; flex-direction: column;
	padding: 1.5rem; border-left: 1px solid hsl(var(--border)); background: hsl(var(--background)); box-shadow: 0 10px 15px -3px rgb(0 0 0 / .1);
	animation: nc-slide .3s ease-out;
}
@media (min-width: 640px) { .nc-drawer__panel { width: 400px; } }
@keyframes nc-fade { from { opacity: 0; } }
@keyframes nc-slide { from { transform: translateX(100%); } }
.nc-drawer__head { display: flex; align-items: center; justify-content: space-between; }
.nc-drawer__head img { height: 2rem; width: auto; filter: brightness(0); }
html.dark .nc-drawer__head img { filter: none; }
.nc-drawer__close { display: inline-flex; padding: .25rem; border: 0; border-radius: .125rem; background: transparent; color: inherit; opacity: .7; }
.nc-drawer__close:hover { opacity: 1; }
.nc-drawer__nav { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: .5rem; margin-top: 1.5rem; }
.nc-drawer__nav > a, .nc-drawer__nav summary { display: flex; align-items: center; justify-content: space-between; padding: .5rem .75rem; border-radius: .375rem; font-size: .875rem; font-weight: 500; transition: background-color .15s; }
.nc-drawer__nav > a:hover, .nc-drawer__nav summary:hover { background: hsl(var(--muted)); }
.nc-drawer__nav summary { cursor: pointer; list-style: none; }
.nc-drawer__nav summary::-webkit-details-marker { display: none; }
.nc-drawer__nav summary .nc-icon { transition: transform .2s; }
.nc-drawer__nav details[open] summary .nc-icon { transform: rotate(180deg); }
.nc-drawer__sub { display: flex; flex-direction: column; gap: .25rem; padding: .25rem 0 .25rem; padding-inline-start: .75rem; }
.nc-drawer__sub a { padding: .5rem .75rem; border-radius: .375rem; font-size: .875rem; color: hsl(var(--muted-foreground)); transition: background-color .15s; }
.nc-drawer__sub a.is-strong { font-weight: 500; color: hsl(var(--foreground)); }
.nc-drawer__sub a:hover { background: hsl(var(--muted)); color: hsl(var(--foreground)); }
.nc-drawer__foot { margin-top: auto; padding: 1rem 0 .5rem; border-top: 1px solid hsl(var(--border)); display: flex; flex-direction: column; gap: 1rem; }
.nc-controls--menu { flex-direction: row-reverse; justify-content: space-between; padding-inline: .75rem; }
.nc-drawer__foot .nc-btn { width: 100%; }

@media (max-width: 767px) {
	.nc-nav, .nc-hide-mobile { display: none; }
	.nc-menubtn { display: inline-flex; }
}
@media (max-width: 640px) {
	.nc-header { padding: .75rem; }
	.nc-header__bar { height: 4rem; padding-inline: 1rem; }
	.nc-header__logo img { height: 2rem; }
}

/* Section title with diamond divider (matches SectionHeader on novin.cloud) */
.nc-section-title { display: flex; align-items: center; gap: .75rem; margin-bottom: 1.5rem; color: var(--brand-soft); }
.nc-section-title .nc-line { flex: 1; height: 1px; background: currentColor; }
.nc-section-title h1, .nc-section-title h2 {
	color: hsl(var(--foreground)); font-size: 1.5rem; font-weight: 800; text-align: center;
}
@media (min-width: 768px) { .nc-section-title h1, .nc-section-title h2 { font-size: 1.875rem; } }
.nc-section-title .nc-icon { fill: currentColor; }

/* Breadcrumb */
.nc-breadcrumb { margin-bottom: 1.5rem; font-size: .875rem; color: hsl(var(--muted-foreground)); }
.nc-breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem; margin: 0; padding: 0; list-style: none; }
.nc-breadcrumb li { display: inline-flex; align-items: center; gap: .25rem; }
.nc-breadcrumb a:hover { color: hsl(var(--primary)); }
.nc-breadcrumb [aria-current] { color: hsl(var(--foreground)); font-weight: 500; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
html:not([dir='rtl']) .nc-breadcrumb .nc-icon { transform: scaleX(-1); }

/* Hero (blog home / archives) */
.nc-hero { padding: 2rem 0 2.5rem; }
@media (min-width: 768px) { .nc-hero { padding-top: 3rem; } }
.nc-hero__lead { max-width: 40rem; margin: -0.5rem auto 1.5rem; text-align: center; color: hsl(var(--muted-foreground)); }
.nc-hero__lead p { margin: 0; }

.nc-search { display: flex; gap: .5rem; max-width: 36rem; margin: 0 auto 2.5rem; }
.nc-search__field { position: relative; flex: 1; display: flex; align-items: center; }
.nc-search__field .nc-icon { position: absolute; inset-inline-start: .875rem; color: hsl(var(--muted-foreground)); pointer-events: none; }
.nc-search input {
	width: 100%; height: 2.75rem; padding-inline: 2.75rem 1rem; border-radius: var(--radius);
	border: 1px solid hsl(var(--border)); background: hsl(var(--background)); color: inherit; font: inherit; font-size: .9375rem;
}
.nc-search input:focus { outline: 2px solid hsl(var(--ring)); outline-offset: 0; border-color: transparent; }
.nc-search .nc-btn { height: 2.75rem; padding-inline: 1.25rem; }

/* Layout */
.nc-section { padding: 0 0 4rem; }
.nc-section--single { padding-top: 1rem; }
.nc-section--muted { background: hsl(var(--muted) / .5); padding: 3.5rem 0; border-top: 1px solid hsl(var(--border)); }
.nc-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; }
@media (min-width: 1024px) {
	.nc-layout { grid-template-columns: minmax(0, 1fr) 280px; }
	.nc-layout--single { grid-template-columns: minmax(0, 1fr) 300px; gap: 3rem; }
	.nc-layout__side .nc-cats, .nc-sticky { position: sticky; top: 8rem; }
}
.nc-layout__main { min-width: 0; }
.nc-layout__side { min-width: 0; display: flex; flex-direction: column; gap: 1.5rem; }
@media (max-width: 1023px) {
	.nc-layout:not(.nc-layout--single) .nc-layout__side { order: -1; }
	.nc-layout:not(.nc-layout--single) .nc-cta { display: none; }
}

/* Category pills (sidebar on desktop, horizontal scroller on mobile) */
.nc-cats { display: flex; flex-direction: column; gap: .5rem; }
.nc-cats a {
	display: flex; align-items: center; justify-content: space-between; gap: .75rem;
	padding: .625rem 1rem; border-radius: var(--radius); font-size: .875rem; font-weight: 500; transition: background-color .2s;
}
.nc-cats a:hover { background: hsl(var(--muted)); }
.nc-cats a.is-active { background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); }
.nc-cats span { font-size: .75rem; opacity: .7; }
@media (max-width: 1023px) {
	.nc-cats { flex-direction: row; overflow-x: auto; scrollbar-width: none; padding-bottom: .25rem; }
	.nc-cats a { flex-shrink: 0; border: 1px solid hsl(var(--border)); }
	.nc-cats a.is-active { border-color: transparent; }
}

/* Cards */
.nc-grid { display: grid; gap: 2rem 1.5rem; }
@media (min-width: 640px) { .nc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .nc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.nc-card { display: flex; flex-direction: column; }
.nc-card__media {
	position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; border-radius: .75rem;
	background: hsl(var(--muted)); margin-bottom: 1rem;
}
.nc-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.nc-card:hover .nc-card__media img { transform: scale(1.05); }
.nc-card__badges { display: flex; flex-wrap: wrap; gap: .375rem; margin-bottom: .5rem; }
.nc-card__title { font-size: 1.0625rem; font-weight: 700; margin-bottom: .5rem; }
@media (min-width: 1024px) { .nc-card__title { font-size: 1.125rem; } }
.nc-card__title a { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; transition: color .2s; }
.nc-card__title a::after { content: ''; position: absolute; inset: 0; } /* whole card clickable */
.nc-card { position: relative; }
.nc-card__badges a, .nc-card__media { position: relative; z-index: 1; }
.nc-card:hover .nc-card__title a { color: hsl(var(--primary)); }
html.dark .nc-card:hover .nc-card__title a { color: var(--brand-soft); }
.nc-card__excerpt {
	margin: 0 0 .75rem; font-size: .875rem; color: hsl(var(--muted-foreground));
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.nc-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; font-size: .75rem; color: hsl(var(--muted-foreground)); }
.nc-meta > * { display: inline-flex; align-items: center; gap: .3rem; }

/* Mobile: grid cards become compact list rows */
@media (max-width: 639px) {
	.nc-grid { gap: 1.25rem; }
	.nc-card--grid { flex-direction: row; gap: 1rem; }
	.nc-card--grid .nc-card__media { width: 6.5rem; height: 6.5rem; flex-shrink: 0; aspect-ratio: auto; margin: 0; border-radius: var(--radius); }
	.nc-card--grid .nc-card__body { min-width: 0; display: flex; flex-direction: column; justify-content: center; }
	.nc-card--grid .nc-card__excerpt { display: none; }
	.nc-card--grid .nc-card__title { font-size: .9375rem; margin-bottom: .25rem; }
	.nc-card--grid .nc-badge { font-size: .625rem; }
}

.nc-card--featured {
	display: grid; gap: 1.5rem; align-items: center; padding: 1rem; border: 1px solid hsl(var(--border));
	border-radius: 1rem; background: hsl(var(--card));
}
@media (min-width: 768px) { .nc-card--featured { grid-template-columns: 1fr 1fr; gap: 2rem; padding: 1.5rem; } }
.nc-card--featured .nc-card__media { margin: 0; }
.nc-card--featured .nc-card__title { font-size: 1.25rem; font-weight: 800; margin-bottom: .75rem; }
@media (min-width: 768px) { .nc-card--featured .nc-card__title { font-size: 1.5rem; } }
@media (min-width: 1024px) { .nc-card--featured .nc-card__title { font-size: 1.875rem; } }
.nc-card--featured .nc-card__title a { -webkit-line-clamp: 3; }
.nc-card--featured .nc-card__excerpt { font-size: 1rem; -webkit-line-clamp: 3; margin-bottom: 1rem; }
.nc-card--featured .nc-badge { font-size: .75rem; }
.nc-card--featured .nc-meta { font-size: .875rem; }

.nc-card--mini { flex-direction: row; gap: .75rem; padding: .75rem 0; border-top: 1px solid hsl(var(--border)); }
.nc-card--mini:first-of-type { border-top: 0; padding-top: 0; }
.nc-card--mini .nc-card__media { width: 4.5rem; height: 4.5rem; flex-shrink: 0; aspect-ratio: auto; margin: 0; border-radius: var(--radius); }
.nc-card--mini .nc-card__title { font-size: .875rem; font-weight: 600; margin-bottom: .25rem; }

.nc-empty { padding: 3rem 0; text-align: center; font-size: 1.125rem; color: hsl(var(--muted-foreground)); }

/* Pagination */
.navigation.pagination { margin-top: 3rem; }
.nav-links { display: flex; justify-content: center; flex-wrap: wrap; gap: .5rem; }
.page-numbers {
	display: inline-flex; align-items: center; justify-content: center; min-width: 2.5rem; height: 2.5rem; padding: 0 .75rem;
	border: 1px solid hsl(var(--border)); border-radius: var(--radius); font-weight: 600; font-size: .875rem; transition: background-color .2s;
}
a.page-numbers:hover { background: hsl(var(--muted)); }
.page-numbers.current { background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); border-color: transparent; }
.page-numbers.dots { border: 0; }
[dir='rtl'] .page-numbers.prev .nc-icon, html:not([dir='rtl']) .page-numbers.next .nc-icon { transform: scaleX(-1); }

/* Sidebar panels */
.nc-panel { padding: 1.25rem; border: 1px solid hsl(var(--border)); border-radius: 1rem; background: hsl(var(--card)); }
.nc-panel h2 { font-size: 1rem; font-weight: 700; margin-bottom: 1rem; padding-bottom: .75rem; border-bottom: 2px solid var(--brand-soft); display: inline-block; }
.nc-sticky { display: flex; flex-direction: column; gap: 1.5rem; }
.nc-cta { padding: 1.5rem; border-radius: 1rem; background: var(--brand); color: #fff; border: 1px solid var(--brand-line); }
.nc-cta h2 { font-size: 1.125rem; font-weight: 800; margin-bottom: .5rem; }
.nc-cta p { margin: 0 0 1.25rem; font-size: .875rem; color: rgb(255 255 255 / .8); }
.nc-cta .nc-btn { width: 100%; }

/* Single post */
.nc-article__header { margin-bottom: 1.5rem; }
.nc-article__header h1 { font-size: 1.625rem; font-weight: 800; margin: .25rem 0 1rem; }
@media (min-width: 768px) { .nc-article__header h1 { font-size: 2.125rem; } }
@media (min-width: 1024px) { .nc-article__header h1 { font-size: 2.375rem; } }
.nc-article__header .nc-meta { font-size: .875rem; }
.nc-article__cover { margin: 0 0 2rem; border-radius: 1rem; overflow: hidden; aspect-ratio: 16 / 10; background: hsl(var(--muted)); }
.nc-article__cover img { width: 100%; height: 100%; object-fit: cover; }
.nc-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid hsl(var(--border)); }
.nc-tags a { padding: .25rem .75rem; border-radius: 999px; background: hsl(var(--muted)); font-size: .8125rem; }
.nc-tags a::before { content: '#'; opacity: .5; }

/* Article body (mirrors .prose-article on novin.cloud) */
.nc-prose { font-size: 1.0625rem; line-height: 2; overflow-wrap: anywhere; }
html[lang^='en'] .nc-prose { line-height: 1.8; }
.nc-prose > * + * { margin-top: 1.25rem; }
.nc-prose > :first-child { margin-top: 0; }
.nc-prose p { margin-bottom: 0; }
.nc-prose h2 { font-size: 1.5rem; font-weight: 800; margin-top: 2.5rem; }
.nc-prose h3 { font-size: 1.25rem; font-weight: 700; margin-top: 2rem; }
.nc-prose h4 { font-size: 1.125rem; font-weight: 700; margin-top: 1.5rem; }
.nc-prose a { color: hsl(var(--primary)); text-decoration: underline; text-underline-offset: 3px; }
html.dark .nc-prose a { color: var(--brand-soft); }
.nc-prose a:hover { opacity: .8; }
.nc-prose ul, .nc-prose ol { padding-inline-start: 1.5rem; }
.nc-prose li + li { margin-top: .5rem; }
.nc-prose li::marker { color: hsl(var(--primary)); }
html.dark .nc-prose li::marker { color: var(--brand-soft); }
.nc-prose blockquote {
	margin-inline: 0; padding: .75rem 1.25rem; border-inline-start: 4px solid hsl(var(--primary));
	background: hsl(var(--muted)); color: hsl(var(--muted-foreground)); border-start-end-radius: var(--radius); border-end-end-radius: var(--radius);
}
.nc-prose blockquote p { margin: 0; }
.nc-prose code { background: hsl(var(--muted)); padding: .125rem .375rem; border-radius: .25rem; font-size: .875em; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; direction: ltr; unicode-bidi: isolate; }
.nc-prose pre {
	direction: ltr; text-align: left; background: #0f1d1e; color: #e4f1f1; padding: 1rem 1.25rem; border-radius: var(--radius);
	overflow-x: auto; font-size: .875rem; line-height: 1.7;
}
.nc-prose pre code { background: none; padding: 0; color: inherit; font-size: inherit; }
.nc-prose img, .nc-prose figure img { border-radius: .75rem; }
.nc-prose figure { margin-inline: 0; }
.nc-prose figcaption { margin-top: .5rem; text-align: center; font-size: .875rem; color: hsl(var(--muted-foreground)); }
.nc-prose table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.nc-prose .wp-block-table { overflow-x: auto; }
.nc-prose th, .nc-prose td { border: 1px solid hsl(var(--border)); padding: .5rem .75rem; text-align: start; }
.nc-prose th { background: hsl(var(--muted)); font-weight: 700; }
.nc-prose hr { border: 0; border-top: 1px solid hsl(var(--border)); margin: 2.5rem 0; }
.nc-prose .wp-block-button__link { background: hsl(var(--primary)); color: #fff; text-decoration: none; border-radius: var(--radius); padding: .625rem 1.25rem; }
.nc-prose .alignwide { margin-inline: 0; }

/* Comments */
.nc-comments h2, .nc-comments .comment-reply-title { font-size: 1.25rem; font-weight: 800; margin-bottom: 1rem; }
.nc-comments__list { list-style: none; padding: 0; margin: 0 0 2rem; }
.nc-comments__list .children { list-style: none; padding-inline-start: 1.5rem; }
.nc-comments .comment-body { padding: 1rem 0; border-bottom: 1px solid hsl(var(--border)); }
.nc-comments .comment-author { display: flex; align-items: center; gap: .5rem; font-weight: 700; }
.nc-comments .avatar { border-radius: 999px; }
.nc-comments .comment-meta, .nc-comments .reply { font-size: .8125rem; color: hsl(var(--muted-foreground)); }
.nc-comments input:not([type='submit']):not([type='checkbox']), .nc-comments textarea {
	width: 100%; padding: .625rem .75rem; border: 1px solid hsl(var(--border)); border-radius: var(--radius);
	background: hsl(var(--background)); color: inherit; font: inherit;
}
.nc-comments label { display: block; font-size: .875rem; font-weight: 600; margin-bottom: .25rem; }
.nc-comments .comment-form-cookies-consent label { display: inline; font-weight: 400; }
.nc-comments p { margin: 0 0 1rem; }

/* 404 */
.nc-404 { text-align: center; padding: 4rem 0 6rem; }
.nc-404__code { font-size: 5rem; font-weight: 800; color: hsl(var(--primary)); margin: 0; line-height: 1; }
html.dark .nc-404__code { color: var(--brand-soft); }
.nc-404 h1 { font-size: 1.75rem; margin: 1rem 0 .5rem; }
.nc-404 p { color: hsl(var(--muted-foreground)); }

/* Footer */
.nc-footer { background: #285457; color: #fff; margin-top: 2rem; }
.nc-footer .nc-container { padding-block: 3rem; }
.nc-footer__grid { display: grid; gap: 2rem; }
@media (min-width: 768px) { .nc-footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .nc-footer__grid { grid-template-columns: 2fr repeat(4, 1fr); } }
.nc-footer__brand img { height: 2rem; width: auto; margin-bottom: 1rem; }
.nc-footer__brand p { margin: 0; max-width: 22rem; font-size: .8125rem; line-height: 1.9; color: rgb(255 255 255 / .8); }
.nc-footer h2 { font-size: .875rem; font-weight: 700; margin-bottom: 1rem; }
.nc-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .5rem; font-size: .875rem; }
.nc-footer ul a { color: rgb(255 255 255 / .8); transition: color .2s; }
.nc-footer ul a:hover { color: #fff; }
.nc-footer__bottom { margin-top: 2rem; padding-top: 2rem; border-top: 1px solid rgb(255 255 255 / .2); display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.nc-footer__social { display: flex; gap: 1rem; }
.nc-footer__social a { color: rgb(255 255 255 / .8); }
.nc-footer__social a:hover { color: #fff; }
.nc-footer__bottom p { margin: 0; font-size: .75rem; color: rgb(255 255 255 / .6); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* Keep the drawer below the WordPress admin bar for logged-in users */
.admin-bar .nc-drawer__panel { top: 46px; }
@media (min-width: 783px) { .admin-bar .nc-drawer__panel { top: 32px; } }
