/* Nowoka — Single Blog Detail. Tokens live in tokens.css. */

.nowoka-container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* HERO */
.nowoka-hero { position: relative; background: var(--nw-bg); overflow: hidden; padding: 120px 0 60px; }
.nowoka-hero__bg { position: absolute; inset: 0; pointer-events: none; }
.nowoka-hero__blob { position: absolute; width: 380px; height: 380px; border-radius: 50%; filter: blur(2px); opacity: 0.55; }
.nowoka-hero__blob--left { left: -120px; top: -80px; background: radial-gradient(circle, #FCE7EC 0%, transparent 70%); }
.nowoka-hero__blob--right { right: -140px; bottom: -120px; background: radial-gradient(circle, #FCE7EC 0%, transparent 70%); }
.nowoka-hero__dots {
	position: absolute; right: 4%; top: 18px; width: 120px; height: 70px;
	background-image: radial-gradient(var(--nw-ink) 1.2px, transparent 1.5px);
	background-size: 12px 12px; opacity: 0.18;
}
.nowoka-hero__inner { position: relative; }

.nowoka-breadcrumbs { font-size: 14px; color: var(--nw-ink); display: flex; align-items: center; gap: 8px; margin: 8px 0 28px; flex-wrap: wrap; }
.nowoka-breadcrumbs a { color: var(--nw-ink); text-decoration: none; opacity: 0.85; }
.nowoka-breadcrumbs a:hover { color: var(--nw-pink); }
.nowoka-breadcrumbs .sep { opacity: 0.4; }
.nowoka-breadcrumbs .current { opacity: 0.65; }

.nowoka-hero__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.nowoka-hero.no-featured .nowoka-hero__grid { grid-template-columns: 1fr; max-width: 820px; margin: 0 auto; text-align: center; }

.nowoka-hero__meta-top { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.nowoka-pill {
	display: inline-flex; align-items: center; gap: 8px;
	background: #fff; color: var(--nw-ink);
	padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 600;
	text-decoration: none; border: 1px solid rgba(17,21,24,0.08);
}
.nowoka-pill__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--nw-accent); display: inline-block; }
.nowoka-readtime { font-size: 14px; color: var(--nw-muted); }

.nowoka-hero__title { font-size: clamp(32px, 4.2vw, 56px); line-height: 1.08; font-weight: 800; color: var(--nw-ink); margin: 0 0 18px; }
.nowoka-hero__excerpt { font-size: 17px; color: var(--nw-muted); margin: 0 0 26px; max-width: 540px; }

.nowoka-hero__author { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.nowoka-hero__author-avatar img { width: 48px; height: 48px; border-radius: 50%; display: block; }
.nowoka-hero__author-info { display: flex; flex-direction: column; line-height: 1.2; }
.nowoka-hero__author-info .name { font-weight: 700; color: var(--nw-ink); font-size: 14px; }
.nowoka-hero__author-info .role { font-size: 12px; color: var(--nw-muted); }
.nowoka-hero__author-sep { width: 1px; height: 28px; background: rgba(17,21,24,0.12); margin: 0 6px; }
.nowoka-hero__author-date, .nowoka-hero__author-read {
	display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--nw-ink);
	background: #fff; padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(17,21,24,0.08);
}

.nowoka-hero__media { position: relative; }
.nowoka-hero__media-frame {
	position: relative; border-radius: var(--nw-radius-lg); overflow: hidden;
	aspect-ratio: 4/3; background: linear-gradient(135deg, #E6F580 0%, #B7E55E 100%);
	box-shadow: var(--nw-shadow);
}
.nowoka-hero__image { width: 100%; height: 100%; object-fit: cover; display: block; }

/* BODY 2-COL */
.nowoka-single-body { background: #fff; padding: 60px 0 80px; }
.nowoka-single-body__grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; align-items: start; }

.nowoka-post-main { min-width: 0; }

/* TOC */
.nowoka-toc { background: #F6F8EC; border-radius: var(--nw-radius); padding: 18px 22px; margin-bottom: 36px; border: 1px solid rgba(17,21,24,0.05); }
.nowoka-toc__summary { display: flex; align-items: center; justify-content: space-between; cursor: pointer; list-style: none; }
.nowoka-toc__summary::-webkit-details-marker { display: none; }
.nowoka-toc__title { font-weight: 700; color: var(--nw-ink); font-size: 17px; }
.nowoka-toc__chev { transition: transform 0.2s; color: var(--nw-ink); }
.nowoka-toc[open] .nowoka-toc__chev { transform: rotate(180deg); }
.nowoka-toc__nav { margin-top: 14px; padding-top: 14px; border-top: 1px solid rgba(17,21,24,0.08); }
.nowoka-toc__list { margin: 0; padding: 0; list-style: none; counter-reset: nw-toc; }
.nowoka-toc__list li { counter-increment: nw-toc; margin: 6px 0; }
.nowoka-toc__list a { color: var(--nw-ink); text-decoration: none; display: flex; gap: 10px; font-size: 14px; padding: 4px 0; }
.nowoka-toc__list a::before { content: counter(nw-toc, decimal-leading-zero); color: var(--nw-muted); font-weight: 600; }
.nowoka-toc__list a:hover, .nowoka-toc__list a.is-active { color: var(--nw-pink); }
.nowoka-toc__list li.is-h3 { padding-left: 22px; }
.nowoka-toc__list li.is-h3 a::before { content: ""; }

/* Post content */
.nowoka-post-content { font-size: 17px; line-height: 1.75; color: #2b2f33; }
.nowoka-post-content h2 { font-size: 24px; margin: 40px 0 14px; color: var(--nw-ink); display: flex; align-items: center; gap: 14px; counter-increment: nw-section; }
.nowoka-post-content h2::before {
	content: counter(nw-section, decimal-leading-zero);
	background: var(--nw-bg); color: var(--nw-ink); font-size: 13px; font-weight: 700;
	border-radius: 8px; padding: 6px 10px; min-width: 36px; text-align: center;
}
.nowoka-post-content { counter-reset: nw-section; }
.nowoka-post-content h3 { font-size: 19px; margin: 28px 0 10px; }
.nowoka-post-content p { margin: 0 0 16px; }
.nowoka-post-content blockquote {
	background: var(--nw-bg); border-radius: 14px; padding: 16px 20px; border-left: 4px solid var(--nw-accent);
	margin: 18px 0; font-style: normal;
}
.nowoka-post-content img { max-width: 100%; height: auto; border-radius: 14px; }

/* Share */
.nowoka-share {
	display: flex; align-items: center; gap: 12px; background: #fff;
	border: 1px solid var(--nw-border); border-radius: var(--nw-radius);
	padding: 14px 18px; margin-top: 32px;
}
.nowoka-share__label { font-weight: 600; margin-right: auto; color: var(--nw-ink); }
.nowoka-share a, .nowoka-share button {
	width: 34px; height: 34px; border-radius: 50%; background: var(--nw-ink); color: #fff;
	display: inline-flex; align-items: center; justify-content: center; text-decoration: none;
	border: 0; cursor: pointer; font-size: 14px; font-weight: 600;
}
.nowoka-share a:hover, .nowoka-share button:hover { background: var(--nw-pink); }

/* Sidebar */
.nowoka-post-aside { display: flex; flex-direction: column; gap: 22px; }
.nowoka-post-aside.is-sticky { position: sticky; top: 96px; align-self: start; padding-right: 4px; }
.nowoka-post-aside.is-sticky::-webkit-scrollbar { width: 6px; }
.nowoka-post-aside.is-sticky::-webkit-scrollbar-thumb { background: rgba(17,21,24,0.15); border-radius: 4px; }

.nowoka-card { background: #F6F8EC; border-radius: var(--nw-radius); padding: 22px; border: 1px solid rgba(17,21,24,0.04); }
.nowoka-card--newsletter { background: var(--nw-bg); }
.nowoka-card__title { font-size: 17px; font-weight: 700; margin: 0 0 14px; color: var(--nw-ink); }
.nowoka-card__sub { font-size: 14px; color: var(--nw-muted); margin: 0 0 16px; }
.nowoka-card__icon {
	width: 38px; height: 38px; border-radius: 50%; background: var(--nw-ink); color: var(--nw-accent);
	display: flex; align-items: center; justify-content: center; margin-bottom: 14px;
}

/* CF7 sidebar form — dark header + underline fields */
.nowoka-card--cf7 {
	padding: 0; overflow: hidden;
	background: #fff; border: 1px solid var(--nw-border);
	border-radius: var(--nw-radius);
}
.nowoka-card--cf7 > .nowoka-card__title,
.nowoka-card--cf7 > .nowoka-card__sub { display: none; }

.nowoka-cf7-head {
	position: relative; background: var(--nw-ink); color: #fff;
	padding: 22px 24px 26px; overflow: hidden;
}
.nowoka-cf7-eyebrow {
	display: inline-flex; align-items: center; gap: 8px;
	color: var(--nw-accent); font-size: 12px; font-weight: 700;
	letter-spacing: 0.14em; text-transform: uppercase;
}
.nowoka-cf7-eyebrow .dot {
	width: 8px; height: 8px; border-radius: 50%; background: var(--nw-accent);
}
.nowoka-cf7-title {
	font-size: 26px; line-height: 1.2; margin: 10px 0 6px;
	color: #fff; font-weight: 700;
}
.nowoka-cf7-sub { color: rgba(255,255,255,0.65); font-size: 14px; margin: 0; }
.nowoka-cf7-circle {
	position: absolute; right: -28px; top: -28px;
	width: 120px; height: 120px; border-radius: 50%;
	background: rgba(255,255,255,0.05); pointer-events: none;
}

.nowoka-cf7-body { padding: 22px 24px 24px; background: #fff; }
.nowoka-cf7-body p { margin: 0; }
.nowoka-cf7-body br { display: none; }
.nowoka-cf7-field { margin-bottom: 16px; }
.nowoka-cf7-field label {
	display: block; font-size: 14px; font-weight: 700;
	color: var(--nw-ink); margin-bottom: 4px;
}
.nowoka-cf7-field .req { color: var(--nw-pink); font-weight: 700; }
.nowoka-card--cf7 .wpcf7-form-control-wrap { display: block; margin: 0; }

.nowoka-card--cf7 input[type="text"],
.nowoka-card--cf7 input[type="email"],
.nowoka-card--cf7 input[type="tel"],
.nowoka-card--cf7 input[type="url"],
.nowoka-card--cf7 select,
.nowoka-card--cf7 textarea {
	width: 100%; background: transparent;
	border: 0; border-bottom: 1px solid var(--nw-border); border-radius: 0;
	padding: 8px 0; font: inherit; color: var(--nw-ink);
	box-shadow: none; transition: border-color 0.15s;
}
.nowoka-card--cf7 select {
	appearance: none; -webkit-appearance: none; -moz-appearance: none;
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'><path d='M1 1l5 5 5-5' stroke='%23111518' stroke-width='2' stroke-linecap='round'/></svg>");
	background-repeat: no-repeat; background-position: right 4px center;
	padding-right: 24px; cursor: pointer;
}
.nowoka-card--cf7 select:focus { border-bottom-color: var(--nw-pink); }
.nowoka-card--cf7 textarea { min-height: 80px; resize: vertical; }
.nowoka-card--cf7 input::placeholder,
.nowoka-card--cf7 textarea::placeholder { color: #9aa0a6; }
.nowoka-card--cf7 input:focus,
.nowoka-card--cf7 textarea:focus {
	outline: none; border-bottom-color: var(--nw-pink);
}

.nowoka-cf7-submit { margin: 22px 0 12px; }
.nowoka-card--cf7 input[type="submit"] {
	width: 100%; background: var(--nw-pink); color: #fff; border: 0;
	border-radius: 999px; padding: 14px 22px;
	font-size: 15px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
	cursor: pointer; transition: background-color 0.15s, color 0.15s;
}
.nowoka-card--cf7 input[type="submit"]:hover { background: var(--nw-ink); color: #fff; }

.nowoka-cf7-trust {
	display: flex; align-items: center; justify-content: center; gap: 6px;
	font-size: 13px; color: var(--nw-muted); margin: 0;
}
.nowoka-cf7-trust svg { color: var(--nw-muted); }

.nowoka-card--cf7 .wpcf7-not-valid-tip { font-size: 12px; color: var(--nw-pink); margin-top: 4px; }
.nowoka-card--cf7 .wpcf7-response-output { border-radius: 10px; margin: 14px 0 0; }

/* Related */
.nowoka-related-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.nowoka-related-item { display: grid; grid-template-columns: 64px 1fr; gap: 12px; align-items: center; }
.nowoka-related-item__thumb img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; display: block; }
.nowoka-related-item__title { color: var(--nw-ink); font-weight: 600; font-size: 14px; text-decoration: none; line-height: 1.35; display: block; }
.nowoka-related-item__title:hover { color: var(--nw-pink); }
.nowoka-related-item__meta { font-size: 12px; color: var(--nw-muted); display: flex; gap: 6px; margin-top: 4px; }

/* Categories */
.nowoka-cats { list-style: none; margin: 0; padding: 0; }
.nowoka-cats li { border-top: 1px solid rgba(17,21,24,0.08); }
.nowoka-cats li:first-child { border-top: 0; }
.nowoka-cats a { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; color: var(--nw-ink); text-decoration: none; font-size: 14px; }
.nowoka-cats a:hover { color: var(--nw-pink); }
.nowoka-cats__count { color: var(--nw-muted); font-size: 13px; }

/* Sidebar Newsletter — scoped to .nowoka-card--newsletter only so the
   [blocksy_newsletter_subscribe] shortcode used elsewhere stays untouched. */
.nowoka-card--newsletter .nowoka-newsletter__form-slot { margin-top: 4px; }
.nowoka-card--newsletter .ct-newsletter-subscribe-form,
.nowoka-card--newsletter form {
	display: flex; flex-direction: column; gap: 10px;
}
.nowoka-card--newsletter input[type="email"],
.nowoka-card--newsletter input[type="text"] {
	width: 100%; background: #fff;
	border: 1px solid var(--nw-accent); border-radius: 12px;
	padding: 12px 14px; font: inherit; color: var(--nw-ink);
	box-shadow: none;
}
.nowoka-card--newsletter input[type="email"]:focus,
.nowoka-card--newsletter input[type="text"]:focus {
	outline: 2px solid var(--nw-ink); outline-offset: 2px;
}
.nowoka-card--newsletter button,
.nowoka-card--newsletter input[type="submit"],
.nowoka-card--newsletter .wp-element-button,
.nowoka-card--newsletter .ct-button {
	background: var(--nw-ink); color: #fff; border: 0; border-radius: 999px;
	padding: 12px 20px; font-weight: 600; cursor: pointer;
	transition: background-color 0.15s, color 0.15s;
}
.nowoka-card--newsletter button:hover,
.nowoka-card--newsletter input[type="submit"]:hover,
.nowoka-card--newsletter .wp-element-button:hover,
.nowoka-card--newsletter .ct-button:hover {
	background: var(--nw-pink); color: #fff;
}
.nowoka-card--newsletter .ct-newsletter-subscribe-message { font-size: 13px; color: var(--nw-muted); margin-top: 8px; }

/* Responsive */
@media (max-width: 991px) {
	.nowoka-hero__grid { grid-template-columns: 1fr; gap: 32px; }
	.nowoka-hero__media { order: 2; }
	.nowoka-single-body__grid { grid-template-columns: 1fr; }
	.nowoka-post-aside.is-sticky { position: static; max-height: none; }
}
@media (max-width: 640px) {
	.nowoka-hero { padding: 18px 0 40px; }
	.nowoka-hero__title { font-size: 30px; }
	.nowoka-hero__author { gap: 10px; }
	.nowoka-hero__author-sep { display: none; }
	.nowoka-single-body { padding: 36px 0 60px; }
	.nowoka-post-content h2 { font-size: 20px; }
}
