/*
Theme Name: Nauvi HR Blog
Theme URI: https://nauvihr.in/blog/
Author: Nauvi HR
Author URI: https://nauvihr.in
Description: A light blogging theme for the Nauvi HR blog at nauvihr.in/blog. Header, footer, colours and cookie choice match the main website; the logo opens the main website in the same tab. No ads, no shop, no page builder.
Version: 1.0.5
Requires at least: 6.4
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nauvihr-blog
Tags: blog, one-column, two-columns, custom-logo, custom-menu, editor-style, featured-images, threaded-comments

Nauvi HR Blog, Copyright 2026 Nauvi HR.
Nauvi HR Blog is distributed under the terms of the GNU GPL v2 or later.
*/

/* ── Brand (the same values as the main website) ── */
:root {
	--ink: #0f1630; --text: #232a3d; --muted: #5c6478; --faint: #8a92a6;
	--brand: #2347d6; --brand-d: #1b39b3; --brand-soft: #eaefff; --brand-tint: #f4f6ff;
	--amber: #f0a20a; --amber-soft: #fff4dc;
	--line: #e2e5ee; --bg: #ffffff; --bg-2: #f5f6fa;
	--r: 6px; --wrap: 1140px; --narrow: 760px;
	--font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--bg); font-size: 16px; line-height: 1.6; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg, video, iframe { max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.25; letter-spacing: -.015em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.wrap.narrow { max-width: calc(var(--narrow) + 40px); }
.sr, .screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: #fff; padding: 8px 12px; border-radius: 4px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.logo-mark { width: 32px; height: 32px; display: block; flex: none; }

/* ── Buttons ── */
.sbtn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: 4px; font-weight: 600; font-size: 15px; border: 1px solid transparent; cursor: pointer; text-decoration: none !important; transition: background .15s, border-color .15s, transform .15s; white-space: nowrap; font-family: inherit; }
.sbtn-primary { background: var(--brand); color: #fff; }
.sbtn-primary:hover { background: var(--brand-d); }
.sbtn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.sbtn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.sbtn-light { background: #fff; color: var(--brand-d); }
.sbtn-out { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.sbtn-out:hover { border-color: #fff; }
.sbtn-sm { height: 38px; padding: 0 14px; font-size: 14px; }

/* ── Header (as on the main website) ── */
.site-head { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.94); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.admin-bar .site-head { top: 32px; }
.site-head .wrap { display: flex; align-items: center; height: 68px; gap: 24px; }
.site-brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; font-size: 19px; letter-spacing: -.02em; text-decoration: none !important; }
.site-nav { display: flex; gap: 22px; margin-left: 12px; }
.site-nav a { color: var(--muted); font-size: 15px; font-weight: 500; white-space: nowrap; }
/* Small tablets: menu items stay on one line (the same rule goes into the main website) */
@media (min-width: 761px) and (max-width: 900px) { .site-head .wrap { gap: 16px; } .site-nav { gap: 14px; margin-left: 4px; } .site-nav a { font-size: 14px; } .site-cta .sbtn-sm { padding: 0 12px; } }
.site-nav a:hover { color: var(--ink); text-decoration: none; }
.site-cta { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.menu-btn { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 4px; width: 40px; height: 40px; align-items: center; justify-content: center; cursor: pointer; }
.menu-btn svg { width: 20px; height: 20px; stroke: var(--ink); }
.menu-btn .i-close, .site-head.open .menu-btn .i-open { display: none; }
.site-head.open .menu-btn .i-close { display: block; }

/* ── Blog home and lists ── */
.blog-head { padding: 48px 0 28px; background: radial-gradient(900px 340px at 85% 0%, var(--brand-tint), transparent 70%); border-bottom: 1px solid var(--line); }
.blog-head h1 { font-size: 40px; margin: 0; font-weight: 750; }
.blog-intro { color: var(--muted); font-size: 18px; max-width: 680px; margin-top: 10px; }
.blog-intro p { margin: 0; }
.blog-tools { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-top: 24px; }
.cat-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.cat-pills a { font-size: 14px; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 5px 13px; background: #fff; }
.cat-pills a:hover { border-color: var(--brand); color: var(--brand); text-decoration: none; }
.cat-pills a.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.sbox { display: flex; border: 1px solid var(--line); border-radius: 4px; background: #fff; overflow: hidden; min-width: 240px; }
.sbox input { border: 0; padding: 0 12px; height: 40px; font: inherit; font-size: 15px; flex: 1; min-width: 0; background: transparent; }
.sbox input:focus { outline: none; }
.sbox:focus-within { border-color: var(--brand); }
.sbox button { border: 0; background: none; padding: 0 12px; cursor: pointer; color: var(--muted); display: flex; align-items: center; }
.sbox svg { width: 18px; height: 18px; }
.blog-list { padding: 36px 0 8px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: #fff; display: flex; flex-direction: column; transition: box-shadow .15s, border-color .15s; }
.card:hover { border-color: #cfd5e4; box-shadow: 0 12px 30px -18px rgba(15,22,48,.35); }
.card-img { display: block; aspect-ratio: 1200 / 630; background: var(--bg-2); }
.card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-ph { display: flex; height: 100%; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--brand-tint), var(--brand-soft)); }
.card-ph .logo-mark { width: 48px; height: 48px; opacity: .9; }
.card-b { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-cat { display: inline-block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--brand-d); }
.card-t { font-size: 19px; margin: 0; }
.card-t a { color: var(--ink); }
.card-x { color: var(--muted); font-size: 15px; margin: 0; flex: 1; }
.card-m { color: var(--faint); font-size: 13px; margin: 6px 0 0; }
.empty { text-align: center; color: var(--muted); padding: 40px 0; }
.pagination { margin: 36px 0 0; }
.pagination .nav-links { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.pagination .page-numbers { min-width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; padding: 0 12px; border: 1px solid var(--line); border-radius: 4px; color: var(--ink); }
.pagination .page-numbers.current { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ── Breadcrumbs ── */
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 14px; font-size: 13px; color: var(--faint); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: #c3c8d4; }
.crumbs a { color: var(--muted); }

/* ── One article ── */
.post-head { padding: 8px 0 0; }
.post-head h1 { font-size: 40px; margin: 8px 0 0; font-weight: 750; }
.post-lead { font-size: 19px; color: var(--muted); margin: 14px 0 0; }
.post-meta { display: flex; gap: 12px; align-items: center; margin-top: 20px; font-size: 14px; color: var(--muted); }
.post-meta img { border-radius: 50%; }
.post-meta a { color: var(--ink); font-weight: 600; }
.post-hero { margin: 24px 0 28px; }
.post-hero img { width: 100%; border-radius: var(--r); display: block; }
.post-grid { display: grid; grid-template-columns: 240px minmax(0, var(--narrow)); gap: 48px; justify-content: center; padding-top: 32px; }
.post-grid .prose { margin-top: 8px; }
.post-grid.no-toc { grid-template-columns: minmax(0, var(--narrow)); }
.post-side { position: relative; }
.toc { position: sticky; top: 92px; margin-top: 44px; font-size: 14px; border-left: 2px solid var(--line); padding-left: 14px; max-height: calc(100vh - 120px); overflow: auto; }
.toc-t { font-weight: 700; color: var(--ink); margin: 0; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; }
.toc-d > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: default; }
.toc-d > summary::-webkit-details-marker { display: none; }
.toc-d > summary:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 4px; }
.toc ol { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 7px; }
.toc a { color: var(--muted); }
.toc a:hover { color: var(--brand); }
.toc .toc-sub { padding-left: 12px; font-size: 13px; }

/* ── Article text ── */
.prose { font-size: 18px; line-height: 1.75; color: var(--text); }
.prose > * { margin-top: 0; margin-bottom: 1.15em; }
.prose h2 { font-size: 28px; margin-top: 1.8em; margin-bottom: .6em; }
.prose h3 { font-size: 22px; margin-top: 1.5em; margin-bottom: .5em; }
.prose h4 { font-size: 18px; margin-top: 1.3em; margin-bottom: .4em; }
.prose a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .35em; }
.prose blockquote { margin-left: 0; margin-right: 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--amber); color: var(--ink); font-style: italic; }
.prose img, .prose figure img { border-radius: var(--r); }
.prose figure { margin-left: 0; margin-right: 0; }
.prose figcaption, .prose .wp-element-caption { font-size: 14px; color: var(--faint); text-align: center; margin-top: 6px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 16px; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; vertical-align: top; }
.prose th { background: var(--bg-2); color: var(--ink); }
.prose code { background: var(--bg-2); padding: 2px 5px; border-radius: 4px; font-size: .9em; }
.prose pre { background: var(--ink); color: #e6e9f2; padding: 16px; border-radius: var(--r); overflow-x: auto; font-size: 15px; }
.prose pre code { background: none; padding: 0; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.prose .alignwide { margin-left: -60px; margin-right: -60px; max-width: none; }
.prose .alignfull { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); max-width: 100vw; }
.prose .alignleft { float: left; margin: .3em 1.5em 1em 0; max-width: 50%; }
.prose .alignright { float: right; margin: .3em 0 1em 1.5em; max-width: 50%; }
.prose .aligncenter { display: block; margin-left: auto; margin-right: auto; text-align: center; }
.prose::after { content: ""; display: table; clear: both; }
.wp-caption { max-width: 100%; }
.wp-caption-text, .gallery-caption { font-size: 14px; color: var(--faint); text-align: center; margin-top: 6px; }
.sticky .card-cat::after { content: " \00b7  Featured"; color: var(--faint); }
.bypostauthor > article .fn::after, .bypostauthor > .comment-body .fn::after { content: " (author)"; font-weight: 400; color: var(--faint); }
.prose .wp-block-button__link { background: var(--brand); color: #fff; border-radius: 4px; text-decoration: none; padding: 10px 20px; font-weight: 600; font-size: 16px; }
.page-links { margin: 20px 0; font-weight: 600; }

.post-tags { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 32px 0 0; font-size: 14px; }
.post-tags span { color: var(--faint); }
.post-tags a { border: 1px solid var(--line); border-radius: 999px; padding: 3px 11px; color: var(--muted); }
.share { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.share-t { font-size: 14px; font-weight: 600; color: var(--ink); margin-right: 4px; }
.share-b { height: 36px; display: inline-flex; align-items: center; padding: 0 14px; border: 1px solid var(--line); border-radius: 4px; background: #fff; color: var(--ink); font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; }
.share-b:hover { border-color: var(--brand); color: var(--brand); text-decoration: none; }
.author-box { display: flex; gap: 16px; margin-top: 28px; padding: 18px; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg-2); }
.author-box img { border-radius: 50%; flex: none; }
.author-box p { margin: 0; font-size: 15px; color: var(--muted); }
.author-box .author-n { font-weight: 700; margin-bottom: 4px; }
.author-box .author-n a { color: var(--ink); }
.cta { margin-top: 32px; background: var(--ink); color: #c9d2ea; border-radius: var(--r); padding: 26px 26px; display: flex; gap: 20px; align-items: center; justify-content: space-between; position: relative; overflow: hidden; }
.cta::after { content: ""; position: absolute; right: -70px; top: -90px; width: 220px; height: 220px; border-radius: 50%; background: #15276a; }
.cta > * { position: relative; z-index: 1; }
.cta p { margin: 0; font-size: 15px; }
.cta .cta-t { color: #fff; font-size: 21px; font-weight: 700; margin-bottom: 6px; letter-spacing: -.01em; }
.cta-btns { display: flex; gap: 10px; flex: none; flex-wrap: wrap; }
.related { background: var(--bg-2); border-top: 1px solid var(--line); margin-top: 56px; padding: 44px 0 52px; }
.related h2 { font-size: 24px; margin: 0 0 20px; }
.comments { margin-top: 40px; }
.comments h2 { font-size: 22px; }
.comment-list { padding-left: 0; list-style: none; }
.comment-form input[type=text], .comment-form input[type=email], .comment-form input[type=url], .comment-form textarea { width: 100%; border: 1px solid var(--line); border-radius: 4px; padding: 10px 12px; font: inherit; }

/* ── Footer (as on the main website) ── */
.site-foot { background: var(--ink); color: #b4bccd; padding: 56px 0 28px; margin-top: 80px; font-size: 14px; }
.site-main:has(.related) + .site-foot { margin-top: 0; }
.site-foot .cols { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.site-foot .cols.n2 { grid-template-columns: 1.4fr 1fr; } .site-foot .cols.n3 { grid-template-columns: 1.4fr repeat(2, 1fr); }
.site-foot .cols.n5 { grid-template-columns: 1.4fr repeat(4, 1fr); gap: 28px; } .site-foot .cols.n6 { grid-template-columns: 1.4fr repeat(5, 1fr); }
.site-foot h4 { color: #fff; font-size: 14px; margin: 0 0 12px; line-height: 1.6; letter-spacing: normal; }
.site-foot a { color: #b4bccd; display: block; padding: 3px 0; }
.site-foot a:hover { color: #fff; }
.site-foot .site-brand { color: #fff; margin-bottom: 12px; display: flex; padding: 0; }
.site-foot p { margin: 0 0 12px; }
.site-foot .foot-tag { color: #fff; font-weight: 600; margin: 0 0 8px; }
.site-foot .foot-parent { font-size: 13px; color: #8a92a6; margin-top: 8px; }
.site-foot .base { border-top: 1px solid rgba(255,255,255,.1); margin-top: 36px; padding-top: 18px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px; }
.social { display: flex; gap: 8px; flex-wrap: wrap; }
.social a { display: inline-flex; align-items: center; justify-content: center; min-width: 32px; height: 32px; border-radius: 16px; border: 1px solid rgba(255,255,255,.18); padding: 0 10px; color: #d6ddf2; font-size: 12px; text-decoration: none !important; transition: border-color .15s, background .15s; }
.social a:hover { border-color: var(--amber); background: rgba(255,255,255,.06); color: #fff; }
.social a svg { width: 16px; height: 16px; fill: currentColor; }
.social a:has(svg) { padding: 0; width: 36px; height: 36px; border-radius: 18px; }

/* ── Cookie choice (as on the main website) ── */
.consent { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; padding: 12px; padding-bottom: max(12px, env(safe-area-inset-bottom, 0px)); }
.consent[hidden] { display: none; }
.consent-in { max-width: 980px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 18px 44px -14px rgba(15,22,48,.35); padding: 16px 18px; display: flex; gap: 16px; align-items: flex-end; }
.consent-text { flex: 1; min-width: 0; font-size: 14px; }
.consent-text p { margin: 4px 0 0; color: var(--muted); }
.consent-opts { margin-top: 10px; display: grid; gap: 8px; }
.consent-opts[hidden] { display: none; }
.consent-opt { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--text); cursor: pointer; }
.consent-opt input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--brand); flex: none; }
.consent-btns { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; flex: none; }
.consent-btns [hidden] { display: none; }

/* ── Tablets and phones ── */
@media (max-width: 1080px) {
	.post-grid { grid-template-columns: minmax(0, var(--narrow)); row-gap: 0; }
	.post-side { order: 2; margin-bottom: 24px; }
	.post-body { display: contents; }
	.post-head { order: 1; } .post-hero { order: 1; } .post-body > :not(.post-head):not(.post-hero) { order: 3; }
	.toc { position: static; margin-top: 0; max-height: none; border: 1px solid var(--line); border-radius: var(--r); padding: 0 16px; background: var(--bg-2); }
	/* Phones and tablets: a one-line bar that opens the list, with a large tap area and a turning arrow */
	.toc-d > summary { cursor: pointer; min-height: 48px; }
	.toc-d > summary::after { content: ""; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); margin: -4px 4px 0 0; transition: transform .15s; flex: none; }
	.toc-d[open] > summary::after { transform: rotate(-135deg); margin-top: 4px; }
	.toc-d[open] > ol { margin: 0 0 14px; }
	.prose .alignwide { margin-left: 0; margin-right: 0; }
}
@media (max-width: 960px) {
	.cards { grid-template-columns: repeat(2, 1fr); }
	.site-foot .cols, .site-foot .cols[class*=n] { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
	.prose .alignleft, .prose .alignright { float: none; max-width: 100%; margin: 0 0 1.15em; }
	.site-nav, .site-cta { display: none; }
	.menu-btn { display: inline-flex; }
	.site-head.open .site-nav, .site-head.open .site-cta { display: flex; }
	.site-head.open .wrap { flex-wrap: wrap; height: auto; padding-top: 14px; padding-bottom: 14px; row-gap: 0; }
	.site-head.open .site-brand { order: 1; }
	.site-head.open .menu-btn { order: 2; }
	.site-head.open .site-nav { order: 3; flex-direction: column; width: 100%; margin: 14px 0 4px; gap: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
	.site-head.open .site-cta { order: 4; width: 100%; margin: 4px 0 0; }
	.site-head.open .site-cta .sbtn { flex: 1 1 0; height: 44px; }
	.wrap { padding: 0 16px; }
	.blog-head { padding: 32px 0 22px; }
	.blog-head h1, .post-head h1 { font-size: 29px; }
	.blog-intro, .post-lead { font-size: 17px; }
	.blog-tools { flex-direction: column; align-items: stretch; }
	.sbox { min-width: 0; }
	.cards { grid-template-columns: 1fr; gap: 18px; }
	.post-head { padding-top: 26px; }
	.prose { font-size: 17px; }
	.prose h2 { font-size: 24px; }
	.prose h3 { font-size: 20px; }
	.cta { flex-direction: column; align-items: stretch; padding: 22px 20px; }
	.cta-btns .sbtn { flex: 1 1 100%; height: 48px; }
	.site-foot .cols, .site-foot .cols[class*=n] { grid-template-columns: 1fr; gap: 22px; }
	.site-foot .base { flex-direction: column; align-items: flex-start; }
	.consent-in { flex-direction: column; align-items: stretch; }
	.consent-btns .sbtn { flex: 1 1 40%; height: 44px; }
	.author-box { flex-direction: column; }
}
@media (max-width: 782px) { .admin-bar .site-head { top: 46px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .card, .toc-d > summary::after { transition: none; } }
