/* Novatec.one HTMLy theme — v1.4.6 */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 95%; text-rendering: optimizeLegibility; }
:root {
    --navy: #2a2a2a;
    --navy-2: #383838;
    --navy-3: #484848;
    --slate: #4a5e72;
    --mist: #8fa3b8;
    --cream: #e8e4e0;
    --cream-2: #dedad5;
    --cream-3: #f0edea;
    --white: #fff;
    --red: #c0392b;
    --red-2: #d9534f;
    --border: rgba(42, 42, 42, .12);
    --border-light: rgba(255, 255, 255, .1);
    --shadow: 0 18px 50px rgba(25, 25, 25, .09);
    --content: 1540px;
    --reading: 1240px;
}
body { margin: 0; min-height: 100vh; background: var(--cream); color: var(--navy); font-family: 'DM Sans', sans-serif; line-height: 1.65; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--red); }
img { display: block; max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
.site-schema { display: none; }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
.skip-link { position: fixed; left: 1rem; top: -100px; z-index: 10000; padding: .7rem 1rem; background: var(--navy); color: var(--white); border-radius: 2px; }
.skip-link:focus { top: 1rem; color: var(--white); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 1000; }
#main-nav {
    min-height: 64px;
    padding: .68rem max(1rem, calc((100vw - var(--content)) / 2));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    background: #b8b8b8;
    border-bottom: 1px solid rgba(192, 57, 43, .2);
    box-shadow: 0 2px 12px rgba(42, 42, 42, .04);
}
.nav-logo { display: inline-flex; align-items: center; gap: .7rem; min-width: 0; line-height: 1; flex-shrink: 0; }
.nav-logo:hover { color: inherit; }
.nav-logo-mark { width: 36px; height: 36px; object-fit: contain; flex-shrink: 0; }
.nav-logo-copy { display: block; min-width: 0; }
.nav-logo-name { display: block; font-family: 'Rajdhani', 'DM Sans', sans-serif; font-size: 1.48rem; font-weight: 700; color: var(--navy); letter-spacing: 2px; text-transform: uppercase; white-space: nowrap; }
.nav-logo-name span { color: var(--red); letter-spacing: 1px; }
.nav-logo-sub { display: block; margin-top: 2px; font-size: .61rem; line-height: 1.1; letter-spacing: .25em; text-transform: uppercase; color: rgba(42, 42, 42, .56); white-space: nowrap; }
.header-search {
    width: min(390px, 42vw);
    min-width: 230px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 44px;
    overflow: hidden;
    background: rgba(255, 255, 255, .56);
    border: 1px solid rgba(42, 42, 42, .16);
    border-radius: 3px;
    transition: background .2s, border-color .2s, box-shadow .2s;
}
.header-search:focus-within { background: rgba(255, 255, 255, .9); border-color: var(--red); box-shadow: 0 4px 18px rgba(42, 42, 42, .08); }
.header-search input { width: 100%; min-width: 0; padding: .62rem .85rem; border: 0; outline: 0; background: transparent; color: var(--navy); font-size: .82rem; }
.header-search input::placeholder { color: rgba(42, 42, 42, .46); }
.header-search button { display: grid; place-items: center; border: 0; border-left: 1px solid rgba(42, 42, 42, .09); background: transparent; color: var(--red); }
.header-search button:hover { background: rgba(192, 57, 43, .08); }
.header-search svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }

/* Hero */
.blog-hero { position: relative; background: #c8c8c8; border-bottom: 1px solid var(--border); }
.hero-shell { width: min(var(--content), calc(100% - 3rem)); margin: 0 auto; padding: 1.55rem 0 1.4rem; }
.hero-copy { max-width: 920px; }
.hero-eyebrow, .section-label { display: flex; align-items: center; gap: .65rem; color: var(--red); font-size: .65rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; }
.hero-eyebrow span, .section-line { display: inline-block; width: 25px; height: 1px; background: var(--red); flex-shrink: 0; }
.hero-copy h1 { margin: .42rem 0 .35rem; font-family: 'DM Sans', sans-serif; font-size: clamp(1.8rem, 3.5vw, 3.05rem); font-weight: 900; line-height: 1.04; letter-spacing: -.025em; }
.hero-copy h1 em { display: inline; color: var(--red); font-style: normal; }
.hero-copy > p { max-width: 790px; margin: 0; color: rgba(42, 42, 42, .68); font-size: clamp(.88rem, 1.2vw, 1rem); font-weight: 300; line-height: 1.58; }

/* Main */
.site-main { min-height: 48vh; padding: clamp(1.45rem, 3vw, 2.65rem) 1.5rem; background: var(--cream); }
.site-main.is-home { background: var(--cream); }
.content-shell { width: min(var(--content), 100%); margin: 0 auto; }
.breadcrumb { margin: 0 0 2rem; color: rgba(42, 42, 42, .55); font-size: .78rem; }
.breadcrumb a { color: var(--slate); }
.breadcrumb span { margin: 0 .35rem; }
.listing-header { max-width: none; margin-bottom: 2.5rem; }
.listing-title-row { display: flex; align-items: center; gap: .8rem; }
.listing-header h1 { margin: .7rem 0 .7rem; font-family: 'DM Sans', sans-serif; font-size: clamp(2.25rem, 5vw, 4.3rem); line-height: 1.05; }
.listing-description { color: var(--slate); font-size: 1.02rem; }
.listing-description p { margin: .3rem 0; }
.rss-link { display: inline-grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--border); border-radius: 50%; color: var(--red); }
.rss-link svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.category-pills { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.35rem; }
.category-pills a { display: inline-flex; align-items: center; gap: .5rem; padding: .45rem .8rem; border: 1px solid var(--border); border-radius: 999px; background: rgba(255, 255, 255, .25); color: var(--slate); font-size: .75rem; }
.category-pills a:hover { border-color: var(--red); color: var(--red); }
.category-pills span { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 99px; background: rgba(192, 57, 43, .1); color: var(--red); font-size: .65rem; }
.post-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; }
.post-card { min-width: 0; display: flex; flex-direction: column; overflow: hidden; background: var(--cream-3); border: 1px solid var(--border); border-radius: 4px; transition: transform .22s, box-shadow .22s, border-color .22s; }
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: rgba(192, 57, 43, .35); }
.post-card-media { position: relative; width: 100%; height: 300px; flex: 0 0 300px; overflow: hidden; display: flex; align-items: center; justify-content: center; background: var(--cream-2); }
/* Card thumbnails must fill their frames; keep article images uncropped below. */
.post-card-media img { width: 100%; height: 100%; object-fit: cover; object-position: center; }

.post-card-media.no-image { display: grid; place-items: center; background: linear-gradient(145deg, var(--navy-2), var(--navy)); }
.card-brand { display: flex; flex-direction: column; align-items: center; color: var(--white); }
.card-brand > span { font-family: 'Rajdhani', sans-serif; font-size: 5rem; font-weight: 700; line-height: .9; color: var(--red); }
.card-brand small { margin-top: .3rem; color: rgba(255, 255, 255, .45); letter-spacing: .16em; text-transform: uppercase; }
.post-card-body { min-width: 0; padding: 1.15rem 1.2rem; display: flex; flex-direction: column; }
.post-meta, .single-meta { display: flex; flex-wrap: wrap; gap: .45rem; align-items: center; color: rgba(42, 42, 42, .52); font-size: .68rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
.post-meta a, .single-meta a { color: inherit; }
.post-meta a:hover, .single-meta a:hover { color: var(--red); }
.post-card h2 { margin: .55rem 0 .55rem; font-family: 'DM Sans', sans-serif; font-size: clamp(1.35rem, 2.2vw, 1.8rem); line-height: 1.18; }
.post-card h2 a:hover { color: var(--red); }
.post-excerpt { color: var(--slate); font-size: .9rem; font-weight: 300; line-height: 1.75; }
.post-excerpt p { margin: 0; }
.post-excerpt blockquote { margin: 0 0 .8rem; padding-left: .8rem; border-left: 2px solid var(--red); color: var(--navy); font-family: 'DM Sans', sans-serif; font-style: italic; }
.post-card-footer { margin-top: auto; padding-top: .9rem; display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; border-top: 1px solid var(--border); }
.read-more { color: var(--red); font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.pagination { margin: 3rem 0 0; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; }
.pagination > div:last-child { text-align: right; }
.pagination a { display: inline-block; padding: .65rem .9rem; border: 1px solid var(--border); background: rgba(255, 255, 255, .22); color: var(--slate); font-size: .78rem; }
.pagination a:hover { border-color: var(--red); color: var(--red); }
.page-number { color: rgba(42, 42, 42, .5); font-size: .72rem; letter-spacing: .12em; }

/* Article */
.single-post { width: 100%; max-width: none; margin: 0 auto; }
.single-header { margin-bottom: 1.65rem; }
.single-header h1 { margin: .75rem 0 .85rem; font-family: 'DM Sans', sans-serif; font-size: clamp(1.55rem, 3vw, 2.45rem); font-weight: 900; line-height: 1.08; letter-spacing: -.025em; }
.single-header h1 a:hover { color: var(--red); }
.edit-link { display: inline-block; margin-top: .8rem; color: var(--red); font-size: .76rem; text-transform: uppercase; letter-spacing: .1em; }
.featured-media { width: 100%; margin: 0 0 2rem; overflow: hidden; border-radius: 4px; background: var(--cream-2); box-shadow: var(--shadow); }
/* Keep the original featured-image frame dimensions, without cutting off any pixels. */
.featured-media img { display: block; width: 100%; max-width: 100%; height: 520px; object-fit: contain; object-position: center; }
.featured-media.video { position: relative; padding-top: 56.25%; }
.featured-media.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.featured-media.audio iframe { width: 100%; height: 220px; border: 0; }
.featured-quote { margin: 0 0 2rem; padding: 1.5rem 1.8rem; background: var(--cream-3); border-left: 3px solid var(--red); font-family: 'DM Sans', sans-serif; font-size: 1.35rem; font-style: italic; }
.article-body { width: 100%; color: #333; font-family: 'DM Sans', sans-serif; font-size: 1.02rem; line-height: 1.68; }
.article-body > *:first-child { margin-top: 0; }
.article-body h2, .article-body h3, .article-body h4 { margin: 2.3em 0 .7em; color: var(--navy); font-family: 'DM Sans', sans-serif; line-height: 1.2; }
.article-body h2 { font-size: 2rem; }
.article-body h3 { font-size: 1.55rem; }
.article-body h4 { font-size: 1.22rem; }
.article-body p { margin: 0 0 1.15rem; }
.article-body a { color: var(--red); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.article-body ul, .article-body ol { margin: 0 0 1.4rem; padding-left: 1.45rem; }
.article-body li { margin: .4rem 0; }
.article-body blockquote { margin: 2rem 0; padding: 1rem 1.4rem; border-left: 3px solid var(--red); background: rgba(240, 237, 234, .75); font-family: 'DM Sans', sans-serif; font-size: 1.2rem; font-style: italic; }
/* Same fixed image footprint as the old lead photo; keep editor positions and full image visible. */
.article-body img { display: block; width: 100%; max-width: 100%; height: 520px; object-fit: contain; object-position: center; background: var(--cream-2); margin: 2rem auto; border-radius: 3px; box-shadow: 0 10px 35px rgba(0, 0, 0, .08); }
.article-body pre { overflow: auto; padding: 1.2rem; border-radius: 4px; background: var(--navy); color: #f7f7f7; font-size: .85rem; }
.article-body code { padding: .1em .35em; border-radius: 3px; background: rgba(42, 42, 42, .08); font-size: .88em; }
.article-body pre code { padding: 0; background: transparent; }
.article-body table { width: 100%; margin: 1.7rem 0; border-collapse: collapse; background: var(--cream-3); font-size: .86rem; }
.article-body th, .article-body td { padding: .72rem .8rem; border: 1px solid var(--border); text-align: left; vertical-align: top; }
.article-body th { background: var(--navy); color: var(--white); }
.article-body iframe { max-width: 100%; }
.article-tags { width: 100%; margin: 2.1rem auto 0; padding-top: 1.1rem; border-top: 1px solid var(--border); color: var(--slate); font-size: .75rem; }
.article-tags a { display: inline-block; margin: .2rem .2rem .2rem 0; padding: .25rem .55rem; border: 1px solid var(--border); border-radius: 99px; }
.article-footer { width: 100%; margin: 2rem auto 0; padding: .9rem 1rem; display: block; background: var(--cream-3); border: 1px solid var(--border); }
.share-links { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: .35rem; max-width: none; }
.share-links > span { display: block; width: 100%; text-align: left; color: var(--red); font-size: .58rem; letter-spacing: .17em; text-transform: uppercase; }
.share-links a { padding: .28rem .45rem; border: 1px solid var(--border); color: var(--slate); font-size: .62rem; }
.related-posts { width: 100%; margin: 2.5rem auto 0; }
.related-posts h2 { font-family: 'DM Sans', sans-serif; font-size: 1.55rem; }
.related-posts ul { display: grid; gap: .55rem; padding: 0; list-style: none; }
.related-posts li a { display: block; padding: .8rem 1rem; background: var(--cream-3); border: 1px solid var(--border); }
.related-posts li a:hover { border-color: var(--red); }
.post-navigation { width: 100%; margin: 2.5rem auto 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.post-navigation a { display: flex; min-height: 110px; padding: 1rem; flex-direction: column; justify-content: center; border: 1px solid var(--border); background: rgba(255, 255, 255, .18); }
.post-navigation a.older { text-align: right; }
.post-navigation span { color: rgba(42, 42, 42, .48); font-size: .63rem; letter-spacing: .15em; text-transform: uppercase; }
.post-navigation strong { margin-top: .35rem; font-family: 'DM Sans', sans-serif; line-height: 1.3; }
.comments { width: 100%; margin: 2.5rem auto 0; }

/* Static, profile, errors */
.static-page { max-width: none; }
.author-profile { max-width: none; margin: 0 auto 3rem; padding: 2rem; display: grid; grid-template-columns: 130px 1fr; gap: 2rem; align-items: center; background: var(--cream-3); border: 1px solid var(--border); }
.author-profile > img { width: 130px; height: 130px; border-radius: 50%; object-fit: cover; }
.author-profile h1 { margin: .55rem 0; font-family: 'DM Sans', sans-serif; font-size: 2.6rem; }
.author-bio { color: var(--slate); }
.author-posts { max-width: none; margin: 0 auto; }
.author-posts h2 { font-family: 'DM Sans', sans-serif; font-size: 1.7rem; }
.author-posts ol { padding: 0; list-style: none; }
.author-posts li { padding: 1rem 0; display: grid; grid-template-columns: 150px 1fr; gap: 1rem; border-bottom: 1px solid var(--border); }
.author-posts time { color: rgba(42, 42, 42, .5); font-size: .75rem; }
.author-posts a { display: block; font-family: 'DM Sans', sans-serif; font-size: 1.1rem; font-weight: 700; }
.author-posts span { color: var(--slate); font-size: .72rem; }
.error-page { position: relative; max-width: 1000px; min-height: 420px; margin: 0 auto; padding: 3rem 0; }
.error-code { position: absolute; top: -1rem; right: 0; color: rgba(42, 42, 42, .055); font-family: 'Rajdhani', sans-serif; font-size: 14rem; font-weight: 700; line-height: 1; pointer-events: none; }
.error-page h1 { position: relative; margin: 1rem 0; font-family: 'DM Sans', sans-serif; font-size: clamp(2.4rem, 6vw, 4.2rem); line-height: 1.05; }
.error-page > p { position: relative; max-width: 830px; color: var(--slate); font-size: 1rem; }
.inline-search { position: relative; max-width: 700px; margin: 1.8rem 0 1.2rem; display: grid; grid-template-columns: 1fr auto; }
.inline-search input { min-width: 0; padding: .8rem 1rem; border: 1px solid var(--border); border-right: 0; background: var(--cream-3); outline: 0; }
.inline-search input:focus { border-color: var(--red); }
.inline-search button { padding: .8rem 1.2rem; border: 1px solid var(--red); background: var(--red); color: var(--white); font-size: .76rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.back-home { position: relative; color: var(--red); font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }

/* Contact + footer */
.contact-strip { padding: 3.8rem 1.5rem; background: var(--cream-2); border-top: 1px solid var(--border); }
.contact-inner { width: min(1100px, 100%); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.contact-inner h2 { margin: .6rem 0 .35rem; font-family: 'DM Sans', sans-serif; font-size: clamp(1.8rem, 3.5vw, 2.7rem); line-height: 1.1; }
.contact-inner p { margin: 0; color: var(--slate); }
.section-tag { color: var(--red); }
.contact-actions { display: flex; gap: .65rem; flex-shrink: 0; }
.btn-primary, .btn-secondary { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: .7rem 1.25rem; border-radius: 2px; font-size: .76rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.btn-primary { background: var(--red); border: 1px solid var(--red); color: var(--white); }
.btn-primary:hover { background: var(--red-2); border-color: var(--red-2); color: var(--white); }
.btn-secondary { border: 1px solid rgba(42, 42, 42, .25); color: var(--navy); }
.btn-secondary:hover { border-color: var(--red); color: var(--red); }
.site-footer { padding: 2.6rem 2.5rem; display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 2rem; background: var(--navy); color: var(--white); }
.footer-logo { font-family: 'Rajdhani', 'DM Sans', sans-serif; font-size: 1.25rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; }
.footer-logo span { color: var(--red); }
.footer-tagline { margin-top: 2px; color: var(--mist); font-size: .7rem; letter-spacing: .08em; }
.footer-contact { margin-top: .7rem; display: flex; gap: 1rem; flex-wrap: wrap; }
.footer-contact a { color: rgba(255, 255, 255, .45); font-size: .72rem; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem 1.3rem; margin: 0; padding: 0; list-style: none; }
.footer-links a { color: rgba(255, 255, 255, .38); font-size: .66rem; letter-spacing: .13em; text-transform: uppercase; }
.footer-links a:hover { color: var(--red); }
.footer-copy { color: rgba(255, 255, 255, .2); font-size: .66rem; text-align: right; }
.scroll-top { position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 900; width: 42px; height: 42px; display: grid; place-items: center; opacity: 0; visibility: hidden; transform: translateY(10px); border: 1px solid rgba(255, 255, 255, .12); border-radius: 50%; background: var(--navy); color: var(--white); box-shadow: 0 8px 24px rgba(0, 0, 0, .18); transition: opacity .2s, visibility .2s, transform .2s; }
.scroll-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.scroll-top svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* HTMLy admin toolbar compatibility */
#toolbar, .toolbar { z-index: 2000 !important; }
.tab { margin-bottom: 1.5rem; }
.tab ul { display: flex; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.tab a { display: inline-block; padding: .45rem .7rem; border: 1px solid var(--border); background: var(--cream-3); font-size: .75rem; }

/* Responsive */
@media (max-width: 1100px) {
    .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .post-card-media { height: 260px; flex-basis: 260px; }
    .site-footer { grid-template-columns: 1fr; text-align: center; }
    .footer-contact, .footer-links { justify-content: center; }
    .footer-copy { text-align: center; }
}
@media (max-width: 720px) {
    html { font-size: 100%; }
    #main-nav { min-height: 60px; padding: .62rem 1rem; gap: .8rem; }
    .nav-logo-name { font-size: 1.22rem; }
    .nav-logo-sub { font-size: .55rem; letter-spacing: .18em; }
    .nav-logo-mark { width: 32px; height: 32px; }
    .header-search { width: min(46vw, 240px); min-width: 175px; grid-template-columns: minmax(0, 1fr) 42px; }
    .header-search input { padding: .58rem .7rem; font-size: .78rem; }
    .hero-shell { width: min(100% - 2rem, var(--content)); padding: 1.25rem 0 1.15rem; }
    .hero-copy h1 { font-size: clamp(1.7rem, 7.8vw, 2.45rem); }
    .hero-copy > p { font-size: .88rem; }
    .site-main { padding: 1.25rem 1rem 2.8rem; }
    .category-pills { margin-bottom: 1rem; }
    .post-grid { grid-template-columns: 1fr; }
    .post-card-media { height: 240px; flex-basis: 240px; }
    .post-card-body { padding: 1.15rem; }
    .single-header h1 { font-size: clamp(1.55rem, 7vw, 2.2rem); }
    .featured-media img, .article-body img { height: 320px; }
    .article-body { font-size: 1rem; line-height: 1.62; }
    .share-links { justify-content: flex-start; max-width: none; }
    .share-links > span { text-align: left; }
    .post-navigation { grid-template-columns: 1fr; }
    .post-navigation a.older { text-align: left; }
    .author-profile { grid-template-columns: 1fr; text-align: center; }
    .author-profile > img { margin: 0 auto; }
    .author-profile .section-label { justify-content: center; }
    .author-posts li { grid-template-columns: 1fr; gap: .25rem; }
    .contact-inner { align-items: flex-start; flex-direction: column; }
    .contact-actions { width: 100%; flex-wrap: wrap; }
    .contact-actions a { flex: 1; }
    .site-footer { padding: 2.4rem 1rem; }
    .error-code { font-size: 9rem; }
}
@media (max-width: 540px) {
    .nav-logo-sub { display: none; }
    .header-search { flex: 1; width: auto; min-width: 0; max-width: 220px; }
    .hero-eyebrow { font-size: .58rem; letter-spacing: .17em; }
    .post-card-media { height: 215px; flex-basis: 215px; }
    .featured-media img, .article-body img { height: 260px; }
    .post-card-footer { align-items: flex-start; flex-direction: column; }
    .pagination { grid-template-columns: 1fr; text-align: center; }
    .pagination > div:last-child { text-align: center; }
    .pagination > div:empty { display: none; }
    .inline-search { grid-template-columns: 1fr; }
    .inline-search input { border-right: 1px solid var(--border); }
    .contact-actions { flex-direction: column; }
    .contact-actions a { width: 100%; }
}
@media (max-width: 390px) {
    #main-nav { padding-inline: .75rem; }
    .nav-logo { gap: .45rem; }
    .nav-logo-mark { width: 28px; height: 28px; }
    .nav-logo-name { font-size: 1.05rem; letter-spacing: 1.3px; }
    .header-search { max-width: 175px; grid-template-columns: minmax(0, 1fr) 38px; }
    .header-search input { padding-inline: .6rem; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ============================================================
   NOVATEC BLOG v1.3.0 MODERN DESIGN LAYER
   Blog-specific design. Does not depend on /novatec-footer.js.
   ============================================================ */
:root {
    --novatec-radius-xs: 10px;
    --novatec-radius-sm: 14px;
    --novatec-radius-md: 18px;
    --novatec-radius-lg: 26px;
    --novatec-shadow-1: 0 1px 2px rgba(18,18,18,.05), 0 10px 30px rgba(18,18,18,.06);
    --novatec-shadow-2: 0 2px 4px rgba(18,18,18,.05), 0 18px 55px rgba(18,18,18,.09);
    --novatec-ease: cubic-bezier(.2,.8,.2,1);
    --novatec-control-min: 44px;
    --novatec-nav-height: 64px;
}
body.novatec-blog-theme {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
body.novatec-blog-theme :focus-visible {
    outline: 3px solid rgba(192,57,43,.42);
    outline-offset: 3px;
}
body.novatec-blog-theme :is(.hero-copy h1,.listing-header h1,.error-page h1,.contact-inner h2) {
    text-wrap: balance;
}
body.novatec-blog-theme :is(.hero-copy > p,.listing-description,.post-excerpt,.article-body,.contact-inner p) {
    text-wrap: pretty;
}

/* Sticky header, aligned with the current Novatec.one V2 design. */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
}
#main-nav {
    min-height: var(--novatec-nav-height);
    padding: .62rem max(1rem, calc((100vw - var(--content)) / 2));
    background: rgba(184,184,184,.88);
    border-bottom: 1px solid rgba(42,42,42,.09);
    box-shadow: 0 1px 0 rgba(255,255,255,.24), 0 8px 28px rgba(30,30,30,.05);
    backdrop-filter: blur(18px) saturate(1.08);
    -webkit-backdrop-filter: blur(18px) saturate(1.08);
}
.nav-logo { min-height: var(--novatec-control-min); gap: .58rem; }
.nav-logo-mark { width: 28px; height: 28px; }
.nav-logo-name { font-size: 1.35rem; letter-spacing: .09em; }
.nav-logo-name span { letter-spacing: 1px; }
.nav-logo-sub { margin-top: 1px; font-size: .58rem; letter-spacing: .20em; }
.header-search {
    width: min(360px, 40vw);
    min-width: 220px;
    min-height: var(--novatec-control-min);
    grid-template-columns: minmax(0,1fr) var(--novatec-control-min);
    overflow: hidden;
    background: rgba(255,255,255,.42);
    border-color: rgba(42,42,42,.14);
    border-radius: 999px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.24);
    transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s var(--novatec-ease);
}
.header-search:focus-within {
    background: rgba(255,255,255,.82);
    border-color: var(--red);
    box-shadow: 0 0 0 4px rgba(192,57,43,.08), 0 8px 22px rgba(30,30,30,.06);
}
.header-search input { min-height: var(--novatec-control-min); padding: .5rem .9rem; font-size: .78rem; }
.header-search button { min-width: var(--novatec-control-min); min-height: var(--novatec-control-min); transition: background-color .18s ease, transform .18s var(--novatec-ease); }
.header-search button:active { transform: scale(.94); }

/* Reading progress on individual articles. */
.reading-progress {
    position: fixed;
    top: var(--novatec-nav-height);
    left: 0;
    right: 0;
    z-index: 999;
    height: 2px;
    pointer-events: none;
    opacity: 0;
    background: transparent;
}
.reading-progress.is-active { opacity: 1; }
.reading-progress span {
    display: block;
    width: 100%;
    height: 100%;
    transform: scaleX(0);
    transform-origin: left center;
    background: var(--red);
    box-shadow: 0 0 10px rgba(192,57,43,.32);
    will-change: transform;
}

/* Blog hero with the same IT/data-flow language used on the main site. */
.blog-hero {
    min-height: clamp(330px, 42vw, 510px);
    display: flex;
    align-items: center;
    overflow: hidden;
    isolation: isolate;
    background-image:
        radial-gradient(circle at 78% 18%,rgba(255,255,255,.21),transparent 28%),
        linear-gradient(145deg,#c9c9c9 0%,#c2c2c2 52%,#bdbdbd 100%);
    border-bottom: 1px solid rgba(42,42,42,.10);
}
.novatec-network-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    opacity: .70;
    mask-image: linear-gradient(to bottom,rgba(0,0,0,.9),rgba(0,0,0,.58) 72%,transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom,rgba(0,0,0,.9),rgba(0,0,0,.58) 72%,transparent 100%);
}
.novatec-network-bg svg { width: 100%; height: 100%; display: block; }
.novatec-network-lines path {
    fill: none;
    stroke: rgba(42,42,42,.13);
    stroke-width: 1.15;
    vector-effect: non-scaling-stroke;
}
.novatec-network-nodes circle {
    fill: rgba(42,42,42,.12);
    stroke: rgba(255,255,255,.28);
    stroke-width: 1;
    vector-effect: non-scaling-stroke;
    animation: novatec-node-breathe 5.4s ease-in-out infinite alternate;
}
.novatec-network-nodes circle:nth-child(3n) { animation-delay: -1.8s; }
.novatec-network-nodes circle:nth-child(4n) { animation-delay: -3.2s; }
.novatec-network-packets circle {
    fill: var(--red);
    opacity: .80;
    filter: drop-shadow(0 0 5px rgba(192,57,43,.38));
}
@keyframes novatec-node-breathe {
    from { opacity: .48; }
    to { opacity: 1; }
}
.hero-shell {
    position: relative;
    z-index: 2;
    width: min(var(--content), calc(100% - 3rem));
    margin: 0 auto;
    padding: clamp(2.8rem,6vw,5.7rem) 0 clamp(2.5rem,5vw,5rem);
}
.hero-copy { max-width: 1300px; }
.hero-eyebrow, .section-label {
    gap: .72rem;
    font-size: .62rem;
    font-weight: 600;
    letter-spacing: .24em;
}
.hero-eyebrow span, .section-line { width: 28px; }
.hero-copy h1 {
    margin: .8rem 0 .75rem;
    font-size: clamp(2.2rem,5vw,4.45rem);
    line-height: 1.03;
    letter-spacing: -.035em;
}
.hero-swoosh {
    position: relative;
    display: block;
    width: fit-content;
    padding: 0 .12em .08em;
    z-index: 0;
}
.hero-swoosh::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image: url("https://novatec.hr/wp-content/uploads/2020/12/BG-For-Text-1.png");
    background-repeat: no-repeat;
    background-size: 100% 100%;
    clip-path: inset(0 100% 0 0);
    animation: novatec-swoosh-reveal .72s cubic-bezier(.4,0,.2,1) .26s forwards;
}
@keyframes novatec-swoosh-reveal {
    to { clip-path: inset(0 0 0 0); }
}
.hero-copy h1 em {
    display: block;
    color: var(--red);
    font-style: normal;
}
.hero-copy > p {
    max-width: 1080px;
    font-size: clamp(.88rem,1.25vw,1.03rem);
    line-height: 1.72;
}
/* Main content, grouping and controls. */
.site-main {
    min-height: 48vh;
    padding: clamp(1.6rem,3.2vw,2.8rem) 1.5rem clamp(3.2rem,5vw,5rem);
}
.content-shell { width: min(var(--content),100%); }
.breadcrumb { margin-bottom: 1.5rem; font-size: .72rem; }
.breadcrumb a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.listing-header { margin-bottom: 2rem; }
.listing-header h1 { margin: .7rem 0 .6rem; font-size: clamp(2.05rem,4.5vw,3.8rem); letter-spacing: -.035em; }
.rss-link {
    width: var(--novatec-control-min);
    height: var(--novatec-control-min);
    border-radius: 999px;
    background: rgba(255,255,255,.24);
    transition: transform .18s var(--novatec-ease), border-color .18s ease, background-color .18s ease;
}
.rss-link:hover { background: rgba(192,57,43,.07); transform: translateY(-1px); }
.category-pills { gap: .55rem; margin-bottom: 1.5rem; }
.category-pills a {
    min-height: var(--novatec-control-min);
    padding: .45rem .82rem;
    border-color: rgba(42,42,42,.11);
    background: rgba(255,255,255,.24);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.25);
    transition: transform .18s var(--novatec-ease),border-color .18s ease,color .18s ease,background-color .18s ease;
}
.category-pills a:hover { transform: translateY(-1px); background: rgba(255,255,255,.42); }
.category-pills a:active { transform: scale(.98); }

/* Article cards keep cover semantics from v1.2.9. */
.post-grid { gap: 1.3rem; }
.post-card {
    border-color: rgba(42,42,42,.09);
    border-radius: var(--novatec-radius-md);
    background: rgba(240,237,234,.88);
    box-shadow: var(--novatec-shadow-1);
    transform: translateZ(0);
    transition: transform .24s var(--novatec-ease),box-shadow .24s var(--novatec-ease),border-color .2s ease,background-color .2s ease;
}
.post-card-media { height: 300px; flex-basis: 300px; background: var(--cream-2); }
.post-card-media::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(to top,rgba(42,42,42,.08),transparent 32%);
    opacity: .45;
    transition: opacity .24s ease;
}
.post-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform .5s var(--novatec-ease),filter .3s ease;
}
.post-card-body { padding: 1.22rem 1.25rem 1.2rem; }
.post-card h2 { margin: .58rem 0 .52rem; font-size: clamp(1.25rem,2vw,1.72rem); letter-spacing: -.02em; }
.post-excerpt { font-size: .86rem; line-height: 1.72; }
.post-card-footer { margin-top: 1rem; padding-top: .85rem; }
.read-more {
    min-height: var(--novatec-control-min);
    display: inline-flex;
    align-items: center;
    padding: .2rem .2rem .2rem .5rem;
}
.pagination a {
    min-height: var(--novatec-control-min);
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    border-color: rgba(42,42,42,.11);
    background: rgba(255,255,255,.24);
    padding: .58rem .9rem;
}
@media (hover:hover) and (pointer:fine) {
    .post-card:hover { transform: translateY(-4px); box-shadow: var(--novatec-shadow-2); border-color: rgba(192,57,43,.24); }
    .post-card:hover .post-card-media img { transform: scale(1.026); }
    .post-card:hover .post-card-media::after { opacity: .16; }
}
.post-card:active { transform: scale(.995); }

/* Individual article. Preserve the established contain behavior and frame heights. */
.single-post { width: 100%; max-width: none; }
.single-header { width: 100%; min-width: 0; max-width: none; margin-bottom: 1.55rem; }
/* Long article titles use the available article width and wrap naturally. */
.single-header h1 { font-size: clamp(1.8rem,3vw,2.7rem); letter-spacing: -.03em; text-wrap: wrap; overflow-wrap: break-word; }
.featured-media {
    border-radius: var(--novatec-radius-md);
    box-shadow: var(--novatec-shadow-1);
    border: 1px solid rgba(42,42,42,.08);
}
.featured-media img {
    width: 100%;
    max-width: 100%;
    height: 520px;
    object-fit: contain;
    object-position: center;
}
.featured-quote {
    border-radius: var(--novatec-radius-sm);
    background: rgba(240,237,234,.82);
    box-shadow: var(--novatec-shadow-1);
}
.article-body { font-size: .98rem; line-height: 1.72; }
.article-body h2 { font-size: 1.9rem; }
.article-body h3 { font-size: 1.46rem; }
.article-body h4 { font-size: 1.16rem; }
.article-body img {
    width: 100%;
    max-width: 100%;
    height: 520px;
    object-fit: contain;
    object-position: center;
    border-radius: var(--novatec-radius-md);
    box-shadow: var(--novatec-shadow-1);
}
.article-body blockquote { border-radius: 0 var(--novatec-radius-sm) var(--novatec-radius-sm) 0; }
.article-body pre { border-radius: var(--novatec-radius-sm); }
.article-body table { border-radius: var(--novatec-radius-sm); overflow: hidden; box-shadow: var(--novatec-shadow-1); }
.article-tags a {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: .25rem .65rem;
}
.article-footer {
    padding: 1rem 1.1rem;
    border-color: rgba(42,42,42,.09);
    border-radius: var(--novatec-radius-md);
    background: rgba(240,237,234,.84);
    box-shadow: var(--novatec-shadow-1);
}
.share-links a {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: .28rem .65rem;
}
.related-posts li a,
.post-navigation a {
    border-color: rgba(42,42,42,.09);
    border-radius: var(--novatec-radius-sm);
    background: rgba(255,255,255,.22);
    box-shadow: 0 1px 2px rgba(18,18,18,.03);
    transition: transform .18s var(--novatec-ease),border-color .18s ease,background-color .18s ease,box-shadow .18s ease;
}
.related-posts li a:hover,
.post-navigation a:hover {
    transform: translateY(-2px);
    border-color: rgba(192,57,43,.30);
    background: rgba(255,255,255,.36);
    box-shadow: var(--novatec-shadow-1);
}

/* Static pages, author and empty states. */
.author-profile {
    border-color: rgba(42,42,42,.09);
    border-radius: var(--novatec-radius-md);
    background: rgba(240,237,234,.84);
    box-shadow: var(--novatec-shadow-1);
}
.inline-search { gap: .55rem; }
.inline-search input,
.inline-search button {
    min-height: var(--novatec-control-min);
    border-radius: 999px;
}
.inline-search input { border-right: 1px solid var(--border); }
.inline-search button { padding-inline: 1.25rem; }

/* Contact section. */
.contact-strip {
    padding: clamp(3rem,5vw,4.6rem) 1.5rem;
    background: linear-gradient(180deg,var(--cream-2),#d9d5d0);
    border-top: 1px solid rgba(42,42,42,.10);
}
.contact-inner { width: min(var(--content),100%); gap: 2.5rem; }
.contact-inner h2 { margin: .65rem 0 .4rem; font-size: clamp(1.75rem,3.2vw,2.65rem); letter-spacing: -.025em; }
.contact-actions { gap: .65rem; }
.btn-primary,.btn-secondary {
    min-height: var(--novatec-control-min);
    border-radius: 999px;
    padding: .65rem 1.2rem;
    transition: transform .18s var(--novatec-ease),background-color .18s ease,border-color .18s ease,color .18s ease,box-shadow .18s ease;
}
.btn-primary:active,.btn-secondary:active { transform: scale(.975); }
.btn-primary:hover { box-shadow: 0 8px 22px rgba(192,57,43,.18); transform: translateY(-1px); }
.btn-secondary:hover { background: rgba(255,255,255,.28); transform: translateY(-1px); }

/* Blog-specific footer. Similar design language, independent markup and logic. */
.site-footer {
    display: block;
    padding: 0;
    background: var(--navy);
    color: var(--white);
    border-top: 1px solid rgba(192,57,43,.15);
}
.blog-footer-nav {
    border-bottom: 1px solid rgba(255,255,255,.07);
    padding: 1rem 1.25rem;
}
.footer-links {
    width: min(var(--content),100%);
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .2rem 1.25rem;
}
.footer-links a {
    min-height: var(--novatec-control-min);
    display: inline-flex;
    align-items: center;
    color: rgba(255,255,255,.42);
    font-size: .64rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    transition: color .18s ease;
}
.footer-links a:hover,
.footer-links a[aria-current="page"] { color: var(--red); }
.blog-footer-row {
    width: min(var(--content),calc(100% - 2.5rem));
    min-height: 68px;
    margin: 0 auto;
    padding: .8rem 0;
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    align-items: center;
    gap: 1.2rem 1.6rem;
}
.footer-logo {
    min-height: var(--novatec-control-min);
    display: inline-flex;
    align-items: center;
    font-size: 1.12rem;
    letter-spacing: .10em;
    line-height: 1;
}
.footer-tagline { margin: 0; font-size: .67rem; color: rgba(255,255,255,.46); }
.footer-contact {
    margin: 0;
    display: flex;
    align-items: center;
    gap: .9rem;
    font-style: normal;
}
.footer-contact a {
    min-height: var(--novatec-control-min);
    display: inline-flex;
    align-items: center;
    color: rgba(255,255,255,.56);
    font-size: .68rem;
}
.footer-contact a:hover { color: var(--red); }
.footer-copy { margin: 0; color: rgba(255,255,255,.22); font-size: .62rem; white-space: nowrap; text-align: right; }
.blog-footer-legal {
    border-top: 1px solid rgba(255,255,255,.055);
    padding: .68rem 1.2rem .72rem;
    text-align: center;
}
.blog-footer-legal p {
    max-width: 100%;
    margin: 0 auto;
    color: rgba(255,255,255,.12);
    font-size: .48rem;
    line-height: 1.55;
    letter-spacing: .01em;
}
.scroll-top {
    width: var(--novatec-control-min);
    height: var(--novatec-control-min);
    right: 1rem;
    bottom: 1rem;
    border-radius: 999px;
    background: rgba(42,42,42,.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: opacity .2s ease,visibility .2s ease,transform .22s var(--novatec-ease),background-color .2s ease;
}
.scroll-top:hover { background: var(--red); }
.scroll-top:active { transform: scale(.94); }

/* Reveal motion. JavaScript adds these classes only when motion is allowed. */
.nv-reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .58s var(--novatec-ease),transform .58s var(--novatec-ease);
    transition-delay: var(--nv-reveal-delay,0ms);
}
.nv-reveal.is-visible { opacity: 1; transform: translateY(0); }

/* Responsive */
@media (max-width: 1100px) {
    .post-card-media { height: 260px; flex-basis: 260px; }
    .blog-footer-row { grid-template-columns: 1fr 1fr; }
    .footer-tagline { text-align: right; }
    .footer-contact { justify-content: flex-start; }
    .footer-copy { text-align: right; }
}
@media (max-width: 720px) {
    html { font-size: 92%; }
    :root { --novatec-nav-height: 60px; }
    #main-nav { min-height: var(--novatec-nav-height); padding: .5rem 1rem; gap: .7rem; }
    .nav-logo-name { font-size: 1.16rem; }
    .nav-logo-sub { font-size: .52rem; letter-spacing: .16em; }
    .nav-logo-mark { width: 28px; height: 28px; }
    .header-search { width: min(46vw,240px); min-width: 170px; }
    .hero-shell { width: min(100% - 2rem,var(--content)); padding: 2.6rem 0 2.8rem; }
    .hero-copy h1 { font-size: clamp(2rem,8vw,3rem); }
    .hero-copy > p { font-size: .88rem; }
    .site-main { padding: 1.3rem 1rem 3rem; }
    .post-card-media { height: 240px; flex-basis: 240px; }
    .single-header h1 { font-size: clamp(1.7rem,7vw,2.4rem); }
    .featured-media img,.article-body img { height: 320px; }
    .article-body { font-size: .96rem; line-height: 1.68; }
    .contact-inner { gap: 1.6rem; }
    .blog-footer-row { width: min(100% - 2rem,var(--content)); grid-template-columns: 1fr; text-align: center; gap: .35rem; padding: 1rem 0 1.15rem; }
    .footer-logo,.footer-contact { justify-content: center; }
    .footer-tagline,.footer-copy { text-align: center; }
    .footer-contact { flex-wrap: wrap; }
    .blog-footer-legal { padding-inline: .75rem; }
}
@media (max-width: 540px) {
    .nav-logo-sub { display: none; }
    .header-search { flex: 1; width: auto; min-width: 0; max-width: 210px; }
    .blog-hero { min-height: 330px; }
    .hero-swoosh { white-space: normal; }
    .post-card-media { height: 215px; flex-basis: 215px; }
    .featured-media img,.article-body img { height: 260px; }
    .post-card-body { padding: 1.08rem; }
    .footer-links { gap: .1rem .9rem; }
    .footer-links a { font-size: .60rem; }
    .contact-actions a { width: 100%; }
}
@media (max-width: 390px) {
    #main-nav { padding-inline: .72rem; }
    .nav-logo { gap: .42rem; }
    .nav-logo-mark { width: 26px; height: 26px; }
    .nav-logo-name { font-size: 1.02rem; letter-spacing: 1.2px; }
    .header-search { max-width: 168px; }
    .header-search input { padding-inline: .65rem; }
}

@media (prefers-reduced-motion: reduce) {
    *,*::before,*::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
    .novatec-network-packets { display: none !important; }
    .novatec-network-nodes circle { animation: none !important; opacity: .72; }
    .hero-swoosh::before { clip-path: inset(0 0 0 0) !important; animation: none !important; }
    .nv-reveal { opacity: 1 !important; transform: none !important; }
}

/* Keep exceptionally long words and URLs inside narrower three-column cards. */
.post-card h2, .post-excerpt { overflow-wrap: anywhere; }

/* ============================================================
   v1.4.6 | Wider desktop layout and three-column article index.
   All inner regions reuse --content; mobile rules are unchanged.
   ============================================================ */
@media (min-width: 1200px) {
    .post-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    /* Keep card thumbnails nicely proportioned as columns become narrower. */
    .post-card-media {
        height: clamp(210px, 17.2vw, 285px);
        flex-basis: clamp(210px, 17.2vw, 285px);
    }
    .post-card-body {
        flex: 1 1 auto;
    }
    .post-card h2 {
        font-size: clamp(1.3rem, 1.55vw, 1.65rem);
    }
}
