@import './fonts/fonts.css';

/* ============================================================
   Design tokens
   ============================================================ */
:root {
    --c-crimson:       #990f3d;
    --c-crimson-dark:  #7a0c31;
    --c-crimson-light: #fef2f5;
    --c-black:         #0d0d0d;
    --c-off-black:     #1c1c1c;
    --c-cream:         #f9f7f4;
    --c-cream-dark:    #f0ede8;
    --c-white:         #ffffff;
    --c-border:        #e5e1db;
    --c-border-dark:   #cec9c3;
    --c-text:          #1c1c1c;
    --c-muted:         #706b66;

    --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-ui:      'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    --topbar-h: 36px;
    --nav-h:    68px;

    --shadow-sm:   0 1px 4px rgba(0,0,0,.07);
    --shadow-card: 0 2px 12px rgba(0,0,0,.08);
    --shadow-up:   0 6px 24px rgba(0,0,0,.13);

    --radius: 3px;
    --ease:   cubic-bezier(.22, 1, .36, 1);
}

/* ============================================================
   Base reset
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-ui);
    font-size: 1rem;
    line-height: 1.65;
    color: var(--c-text);
    background: var(--c-cream);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
}

a {
    color: var(--c-crimson);
    text-decoration: none;
    transition: color .2s;
}
a:hover { color: var(--c-crimson-dark); }

img { max-width: 100%; height: auto; display: block; }

p { margin: 0 0 1em; }

/* Bootstrap fluid padding reset */
.container-fluid { padding-left: 0; padding-right: 0; }

/* ============================================================
   Top bar
   ============================================================ */
.nf-topbar {
    background: var(--c-black);
    color: #b0aba6;
    font-family: var(--font-ui);
    font-size: .73rem;
    font-weight: 400;
    letter-spacing: .04em;
    height: var(--topbar-h);
    display: flex;
    align-items: center;
    overflow: hidden;
}
.nf-topbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.nf-topbar__date { color: #7a756f; font-variant-numeric: tabular-nums; }
.nf-topbar__slogan {
    font-style: italic;
    color: #c5c0ba;
    letter-spacing: .01em;
}

/* ============================================================
   Header / Nav
   ============================================================ */
.nf-header {
    background: var(--c-white);
    border-bottom: 3px solid var(--c-crimson);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,.09);
}
.nf-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--nav-h);
    gap: 2rem;
}
.nf-header__logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    line-height: 1;
}
.nf-header__logo img {
    height: 24px;
    width: auto;
}
.nf-header__site-name {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 1.5rem;
    color: var(--c-black);
    letter-spacing: -.02em;
}

/* Main nav */
.nf-nav {
    display: flex;
    align-items: stretch;
    flex: 1;
    justify-content: flex-end;
    height: var(--nav-h);
}
.nf-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: stretch;
}
.nf-nav li { position: relative; display: flex; align-items: stretch; }
.nf-nav a {
    display: flex;
    align-items: center;
    font-family: var(--font-ui);
    font-size: .8125rem;
    font-weight: 500;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--c-off-black);
    padding: 0 .875rem;
    white-space: nowrap;
    position: relative;
    transition: color .18s;
}
.nf-nav a::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: .875rem;
    right: .875rem;
    height: 3px;
    background: var(--c-crimson);
    transform: scaleX(0);
    transition: transform .22s var(--ease);
    transform-origin: left center;
}
.nf-nav a:hover,
.nf-nav li.active a {
    color: var(--c-crimson);
}
.nf-nav a:hover::after,
.nf-nav li.active a::after {
    transform: scaleX(1);
}

/* Hamburger button */
.nf-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    background: none;
    border: 1.5px solid var(--c-border);
    border-radius: var(--radius);
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
    transition: border-color .2s;
}
.nf-hamburger:hover { border-color: var(--c-crimson); }
.nf-hamburger span {
    display: block;
    width: 20px;
    height: 1.5px;
    background: var(--c-off-black);
    border-radius: 2px;
    transition: transform .22s var(--ease), opacity .15s;
}
.nf-hamburger.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nf-hamburger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nf-hamburger.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ============================================================
   Breadcrumb strip
   ============================================================ */
.nf-breadcrumb-bar {
    background: var(--c-cream-dark);
    border-bottom: 1px solid var(--c-border);
    padding: .45rem 0;
}
.nf-breadcrumb-bar .breadcrumb {
    margin: 0;
    font-size: .75rem;
    font-family: var(--font-ui);
    flex-wrap: nowrap;
    overflow: hidden;
}
.nf-breadcrumb-bar .breadcrumb-item { min-width: 0; }
.nf-breadcrumb-bar .breadcrumb-item + .breadcrumb-item::before { color: var(--c-border-dark); }
.nf-breadcrumb-bar .breadcrumb-item a { color: var(--c-muted); }
.nf-breadcrumb-bar .breadcrumb-item a:hover { color: var(--c-crimson); }
.nf-breadcrumb-bar .breadcrumb-item.active {
    color: var(--c-off-black);
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ============================================================
   Main content area
   ============================================================ */
main { min-height: 55vh; }

.inner-wrapper { padding-top: 2.5rem; padding-bottom: 3rem; }

/* ============================================================
   Home intro
   ============================================================ */
.nf-home-intro {
    padding-bottom: 2rem;
    margin-bottom: 3rem;
    border-bottom: 2px solid var(--c-border);
    animation: nf-fade-up .55s var(--ease) both;
}
.nf-home-intro h1 {
    font-family: var(--font-display);
    font-size: clamp(1.875rem, 3.5vw, 2.75rem);
    font-weight: 700;
    line-height: 1.18;
    color: var(--c-black);
    margin: 0 0 .75rem;
    letter-spacing: -.02em;
}
.nf-home-intro__body {
    font-size: 1.05rem;
    color: var(--c-muted);
    max-width: 62ch;
    margin: 0;
    line-height: 1.7;
}

/* ============================================================
   Category section header (home + category page)
   ============================================================ */
.nf-cat-section { margin-bottom: 3.5rem; }
.nf-cat-section__head {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
    padding-bottom: .75rem;
    border-bottom: 2px solid var(--c-off-black);
}
.nf-cat-section__title {
    font-family: var(--font-display);
    font-size: 1.625rem;
    font-weight: 700;
    color: var(--c-black);
    margin: 0;
    letter-spacing: -.025em;
    white-space: nowrap;
}
.nf-cat-section__title a { color: var(--c-black); }
.nf-cat-section__title a:hover { color: var(--c-crimson); }
.nf-cat-section__rule {
    flex: 1;
    height: 1px;
    background: var(--c-border);
    min-width: 20px;
}
.nf-cat-section__all {
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: var(--c-crimson);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: .3rem;
}
.nf-cat-section__all::after {
    content: '›';
    font-size: 1rem;
    line-height: 1;
    transition: transform .2s;
    display: inline-block;
}
.nf-cat-section__all:hover::after { transform: translateX(3px); }
.nf-cat-section__all:hover { color: var(--c-crimson-dark); }

.nf-cat-section__excerpt {
    font-size: .9375rem;
    color: var(--c-muted);
    margin: 0 0 1.5rem;
    line-height: 1.65;
}

/* ============================================================
   Article cards
   ============================================================ */
.nf-card-row { --bs-gutter-y: 1.5rem; }

.nf-card {
    background: var(--c-white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: box-shadow .28s var(--ease), transform .28s var(--ease);
    display: flex;
    flex-direction: column;
    height: 100%;
}
.nf-card:hover {
    box-shadow: var(--shadow-up);
    transform: translateY(-4px);
}
.nf-card > a {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.nf-card__img-wrap {
    aspect-ratio: 33 / 20;
    overflow: hidden;
    background: var(--c-cream-dark);
    flex-shrink: 0;
    position: relative;
}
.nf-card__img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .45s var(--ease);
    will-change: transform;
}
.nf-card:hover .nf-card__img-wrap img { transform: scale(1.04); }

.nf-card__no-img {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--c-cream-dark) 0%, #e8e4de 100%);
}
.nf-card__no-img::after {
    content: 'news-finanzen.de';
    font-family: var(--font-display);
    font-size: .875rem;
    font-weight: 700;
    color: var(--c-border-dark);
    letter-spacing: .02em;
}

.nf-card__body {
    padding: 1.125rem 1.25rem 1.25rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.nf-card__date {
    font-size: .72rem;
    font-weight: 500;
    color: var(--c-muted);
    letter-spacing: .04em;
    text-transform: uppercase;
    margin-bottom: .5rem;
    font-family: var(--font-ui);
}
.nf-card__title {
    font-family: var(--font-display);
    font-size: 1.0625rem;
    font-weight: 700;
    line-height: 1.32;
    color: var(--c-off-black);
    margin: 0 0 .65rem;
    transition: color .18s;
}
.nf-card:hover .nf-card__title { color: var(--c-crimson); }
.nf-card__excerpt {
    font-size: .84375rem;
    color: var(--c-muted);
    line-height: 1.6;
    margin: 0;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Card stagger on home */
.nf-cat-section .col-lg-4:nth-child(1) .nf-card { animation: nf-fade-up .5s var(--ease) .05s both; }
.nf-cat-section .col-lg-4:nth-child(2) .nf-card { animation: nf-fade-up .5s var(--ease) .12s both; }
.nf-cat-section .col-lg-4:nth-child(3) .nf-card { animation: nf-fade-up .5s var(--ease) .19s both; }
.nf-cat-section .col-lg-4:nth-child(4) .nf-card { animation: nf-fade-up .5s var(--ease) .06s both; }
.nf-cat-section .col-lg-4:nth-child(5) .nf-card { animation: nf-fade-up .5s var(--ease) .13s both; }
.nf-cat-section .col-lg-4:nth-child(6) .nf-card { animation: nf-fade-up .5s var(--ease) .20s both; }

/* ============================================================
   Sidebar
   ============================================================ */
.nf-sidebar {
    position: sticky;
    top: calc(var(--nav-h) + 1.25rem);
}

/* Newsletter CTA widget */
.nf-sidebar-newsletter {
    background: var(--c-crimson);
    border-radius: var(--radius);
    padding: 1.5rem 1.25rem 1.375rem;
    margin-bottom: 1.25rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.nf-sidebar-newsletter::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at top right, rgba(255,255,255,.10) 0%, transparent 65%);
    pointer-events: none;
}
.nf-sidebar-newsletter__icon {
    font-size: 1.5rem;
    line-height: 1;
    margin-bottom: .625rem;
    opacity: .85;
}
.nf-sidebar-newsletter__title {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--c-white);
    margin: 0 0 .5rem;
    letter-spacing: -.01em;
    line-height: 1.25;
}
.nf-sidebar-newsletter__text {
    font-size: .8125rem;
    color: rgba(255,255,255,.82);
    line-height: 1.55;
    margin: 0 0 1.125rem;
}
.nf-sidebar-newsletter__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--c-white);
    color: var(--c-crimson);
    font-family: var(--font-ui);
    font-size: .8125rem;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    padding: .55rem 1.375rem;
    border-radius: var(--radius);
    text-decoration: none;
    transition: background .2s, color .2s, transform .18s var(--ease), box-shadow .2s;
    box-shadow: 0 2px 8px rgba(0,0,0,.15);
    white-space: nowrap;
}
.nf-sidebar-newsletter__btn:hover {
    background: var(--c-off-black);
    color: var(--c-white);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(0,0,0,.22);
}

.nf-sidebar-widget {
    background: var(--c-white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--c-border);
}
.nf-sidebar-widget__head {
    background: var(--c-black);
    padding: .7rem 1.125rem;
}
.nf-sidebar-widget__head h3 {
    font-family: var(--font-ui);
    font-size: .73rem;
    font-weight: 600;
    color: var(--c-white);
    margin: 0;
    letter-spacing: .1em;
    text-transform: uppercase;
}
.nf-sidebar-cats {
    list-style: none;
    margin: 0;
    padding: 0;
}
.nf-sidebar-cats li { border-bottom: 1px solid var(--c-border); }
.nf-sidebar-cats li:last-child { border-bottom: none; }
.nf-sidebar-cats a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .65rem 1.125rem;
    font-size: .875rem;
    font-weight: 400;
    color: var(--c-off-black);
    transition: background .15s, color .15s, padding-left .15s;
}
.nf-sidebar-cats a::after {
    content: '›';
    font-size: 1.1rem;
    line-height: 1;
    color: var(--c-border-dark);
    transition: color .15s, transform .15s;
    flex-shrink: 0;
}
.nf-sidebar-cats a:hover {
    background: var(--c-crimson-light);
    color: var(--c-crimson);
    padding-left: 1.375rem;
}
.nf-sidebar-cats a:hover::after { color: var(--c-crimson); transform: translateX(3px); }
.nf-sidebar-cats li.current a {
    background: var(--c-crimson);
    color: var(--c-white);
    font-weight: 500;
    padding-left: 1.375rem;
}
.nf-sidebar-cats li.current a::after { color: rgba(255,255,255,.5); }

/* ============================================================
   Category page header
   ============================================================ */
.nf-cat-page-intro {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--c-black);
    animation: nf-fade-up .45s var(--ease) both;
}
.nf-cat-page-intro h1 {
    font-family: var(--font-display);
    font-size: clamp(1.625rem, 3vw, 2.375rem);
    font-weight: 900;
    color: var(--c-black);
    margin: 0 0 .625rem;
    letter-spacing: -.03em;
}
.nf-cat-page-intro p {
    font-size: .9375rem;
    color: var(--c-muted);
    margin: 0;
    max-width: 65ch;
    line-height: 1.65;
}

/* ============================================================
   Article detail
   ============================================================ */
.nf-article { animation: nf-fade-up .5s var(--ease) both; }

.nf-article__title {
    font-family: var(--font-display);
    font-size: clamp(1.625rem, 3.5vw, 2.625rem);
    font-weight: 900;
    line-height: 1.17;
    color: var(--c-black);
    margin: 0 0 1rem;
    letter-spacing: -.03em;
}
.nf-article__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .5rem 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.125rem;
    border-bottom: 1px solid var(--c-border);
    font-family: var(--font-ui);
    font-size: .78125rem;
    color: var(--c-muted);
}
.nf-article__meta .nf-article__date {
    font-weight: 500;
    color: var(--c-off-black);
}
.nf-article__meta .nf-article__modified { font-style: italic; }

.nf-article__hero {
    aspect-ratio: 97 / 50;
    overflow: hidden;
    background: var(--c-cream-dark);
    margin-bottom: 2rem;
    border-radius: var(--radius);
}
.nf-article__hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.nf-article__content {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--c-text);
}
.nf-article__content p { margin-bottom: 1.25em; }
.nf-article__content h2 {
    font-family: var(--font-display);
    font-size: 1.4375rem;
    font-weight: 700;
    color: var(--c-black);
    margin: 2em 0 .7em;
    padding-bottom: .4em;
    border-bottom: 2px solid var(--c-border);
    letter-spacing: -.015em;
}
.nf-article__content h3 {
    font-family: var(--font-display);
    font-size: 1.1875rem;
    font-weight: 700;
    color: var(--c-black);
    margin: 1.75em 0 .6em;
}
.nf-article__content ul,
.nf-article__content ol { padding-left: 1.5rem; margin-bottom: 1.25em; }
.nf-article__content li { margin-bottom: .4em; }
.nf-article__content a {
    color: var(--c-crimson);
    border-bottom: 1px solid rgba(153,15,61,.3);
    transition: border-color .15s;
}
.nf-article__content a:hover { border-bottom-color: var(--c-crimson); }
.nf-article__content blockquote {
    border-left: 4px solid var(--c-crimson);
    margin: 1.75em 0;
    padding: .875rem 1.25rem;
    background: var(--c-crimson-light);
    border-radius: 0 var(--radius) var(--radius) 0;
    font-style: italic;
    color: var(--c-off-black);
}
.nf-article__content img {
    border-radius: var(--radius);
    max-width: 100%;
    height: auto;
    margin: 1rem 0;
}
.nf-article__content strong { font-weight: 600; }

/* ============================================================
   Related articles block
   ============================================================ */
.nf-related {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--c-border);
}
.nf-related__title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--c-black);
    margin: 0 0 1.5rem;
    letter-spacing: -.015em;
}

/* ============================================================
   Pagination
   ============================================================ */
.nf-pagination-wrap {
    display: flex;
    justify-content: center;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--c-border);
}
.nf-pagination {
    display: flex;
    align-items: center;
    gap: .3rem;
    flex-wrap: wrap;
    justify-content: center;
}
.nf-pagination__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 .5rem;
    font-size: .8125rem;
    font-weight: 500;
    font-family: var(--font-ui);
    border: 1.5px solid var(--c-border);
    border-radius: var(--radius);
    color: var(--c-off-black);
    background: var(--c-white);
    transition: background .18s, border-color .18s, color .18s, transform .15s;
    text-decoration: none;
    line-height: 1;
    cursor: pointer;
}
.nf-pagination__btn:hover:not(.is-current):not(.is-disabled) {
    background: var(--c-crimson);
    border-color: var(--c-crimson);
    color: var(--c-white);
    transform: translateY(-1px);
}
.nf-pagination__btn.is-current {
    background: var(--c-crimson);
    border-color: var(--c-crimson);
    color: var(--c-white);
    pointer-events: none;
    font-weight: 600;
}
.nf-pagination__btn.is-disabled {
    opacity: .35;
    pointer-events: none;
    background: var(--c-cream);
}
.nf-pagination__btn.is-ellipsis {
    border: none;
    background: none;
    color: var(--c-muted);
    pointer-events: none;
    min-width: 24px;
}

/* Bootstrap pagination fallback (if base pagination.php is used) */
.pagination .page-link {
    font-family: var(--font-ui);
    font-size: .8125rem;
    color: var(--c-off-black);
    border-color: var(--c-border);
    background: var(--c-white);
}
.pagination .page-item.active .page-link {
    background: var(--c-crimson);
    border-color: var(--c-crimson);
}
.pagination .page-link:hover {
    background: var(--c-crimson-light);
    color: var(--c-crimson);
}
.pagination .page-item.disabled .page-link {
    background: var(--c-cream);
    color: var(--c-muted);
}

/* ============================================================
   Footer
   ============================================================ */
.nf-footer {
    background: var(--c-black);
    color: #9a9590;
    padding: 2.25rem 0;
    margin-top: 1.5rem;
}
.nf-footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.25rem;
}
.nf-footer__logo-link {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}
.nf-footer__logo-link img {
    height: 34px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: .75;
    transition: opacity .2s;
}
.nf-footer__logo-link:hover img { opacity: 1; }

.nf-footer .footer-nav {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}
.nf-footer .footer-nav a {
    font-size: .75rem;
    font-weight: 500;
    color: #857f7a;
    letter-spacing: .06em;
    text-transform: uppercase;
    transition: color .2s;
}
.nf-footer .footer-nav a:hover { color: var(--c-crimson); }

.nf-footer__copy {
    font-size: .75rem;
    color: #575250;
    white-space: nowrap;
}

/* Cookie icon */
.cookieicon {
    background-color: var(--c-muted) !important;
    width: 38px !important;
    height: 38px !important;
    opacity: .75;
    transition: opacity .2s;
}
.cookieicon:hover { opacity: 1; }

/* ============================================================
   Standalone page (impressum, datenschutz, etc.)
   ============================================================ */
.nf-page-content {
    background: var(--c-white);
    border-radius: var(--radius);
    padding: 2rem 2.25rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--c-border);
    line-height: 1.78;
}
.nf-page-content h1 {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    color: var(--c-black);
    margin: 0 0 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--c-border);
    letter-spacing: -.02em;
}
.nf-page-content h2 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--c-black);
    margin: 1.75em 0 .6em;
}
.nf-page-content a { color: var(--c-crimson); }
.nf-page-content a:hover { color: var(--c-crimson-dark); }

/* ============================================================
   Keyframes
   ============================================================ */
@keyframes nf-fade-up {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   Responsive — tablet (≤ 991px)
   ============================================================ */
@media (max-width: 1199px) {
    .nf-topbar { display: none; }

    .nf-hamburger { display: flex; }

    .nf-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        height: auto;
        background: var(--c-white);
        border-top: 1px solid var(--c-border);
        border-bottom: 3px solid var(--c-crimson);
        box-shadow: 0 10px 30px rgba(0,0,0,.13);
        display: none;
        z-index: 998;
        flex-direction: column;
        align-items: stretch;
    }
    .nf-nav.is-open { display: flex; }
    .nf-nav ul { flex-direction: column; align-items: stretch; }
    .nf-nav a {
        height: auto;
        padding: .9rem 1.375rem;
        font-size: .9375rem;
        border-bottom: 1px solid var(--c-border);
    }
    .nf-nav a::after { display: none; }
    .nf-nav li:last-child a { border-bottom: none; }
    .nf-nav li.active a { color: var(--c-crimson); background: var(--c-crimson-light); }

    .nf-sidebar { position: static; margin-top: 2.5rem; }

    .nf-cat-section__rule { display: none; }
}

/* ============================================================
   Responsive — mobile (≤ 767px)
   ============================================================ */
@media (max-width: 767.98px) {
    .inner-wrapper { padding-top: 1.25rem; padding-bottom: 2rem; }

    .nf-header__inner { gap: 1rem; }

    .nf-home-intro h1 { font-size: 1.625rem; }
    .nf-home-intro__body { font-size: .9375rem; }

    .nf-article__title { font-size: 1.5rem; }

    .nf-cat-section { margin-bottom: 2.5rem; }

    .nf-footer__inner { flex-direction: column; align-items: flex-start; gap: 1rem; }
    .nf-footer .footer-nav { gap: .875rem; }

    .nf-page-content { padding: 1.25rem; }
}

/* ============================================================
   Large screens
   ============================================================ */
@media (min-width: 1400px) {
    .container { max-width: 1200px; }
}

/* ============================================================
   Empty / no-articles state
   ============================================================ */
.nf-no-articles {
    padding: 2rem;
    text-align: center;
    color: var(--c-muted);
    font-size: .9375rem;
    background: var(--c-white);
    border-radius: var(--radius);
    border: 1px dashed var(--c-border);
    margin-top: 1rem;
}
