/* ==========================================================================
   NetForChoice Documentation Portal Stylesheet
   Modern, High-Performance Design System
   ========================================================================== */

:root {
    --primary: #ea6521;
    --primary-hover: #ff7a29;
    --primary-dark: #c54f12;
    --primary-glow: rgba(234, 101, 33, 0.25);
    --primary-soft: rgba(234, 101, 33, 0.08);
    --dark-900: #0b0f19;
    --dark-800: #111827;
    --dark-700: #1f2937;
    --dark-600: #374151;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    --white: #ffffff;
    --body-bg: #f8fafc;
    --card-bg: #ffffff;
    --border-color: #e2e8f0;
    --border-subtle: #edf2f7;
    --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    --transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body.nfc-kb-body {
    font-family: var(--font-sans);
    background-color: var(--body-bg);
    color: var(--gray-800);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-hover);
}

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

.nfc-container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ==========================================================================
   Top Utility Bar
   ========================================================================== */
.nfc-topbar {
    background-color: var(--dark-900);
    color: var(--gray-300);
    font-size: 0.8125rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nfc-topbar__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 38px;
}

.nfc-topbar__left,
.nfc-topbar__right {
    display: flex;
    align-items: center;
    gap: 14px;
}

.nfc-badge-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #4ade80;
    font-weight: 500;
}

.nfc-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: #22c55e;
    box-shadow: 0 0 8px #22c55e;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.15);
    }
}

.nfc-divider {
    color: rgba(255, 255, 255, 0.2);
}

.nfc-topbar__link {
    color: var(--gray-300);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.nfc-topbar__link:hover {
    color: var(--white);
}

.nfc-btn-client {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.nfc-btn-client:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

/* ==========================================================================
   Main Header
   ========================================================================== */
.nfc-header {
    background-color: var(--white);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.nfc-header__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 72px;
}

.nfc-header__brand {
    display: flex;
    align-items: center;
}

.nfc-logo-link {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nfc-logo {
    height: 42px;
    width: auto;
    object-fit: contain;
}

.nfc-docs-tag {
    background: var(--primary);
    color: var(--white);
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 3px 8px;
    border-radius: var(--radius-sm);
}

.nfc-nav__list {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 24px;
}

.nfc-nav__link {
    color: var(--gray-700);
    font-size: 0.9375rem;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.nfc-nav__link:hover,
.nfc-nav__link.active {
    color: var(--primary);
    background: var(--primary-soft);
}

.nfc-dropdown {
    position: relative;
}

.nfc-dropdown__toggle .nfc-chevron {
    font-size: 0.7rem;
    transition: transform 0.2s;
}

.nfc-dropdown:hover .nfc-chevron {
    transform: rotate(180deg);
}

.nfc-dropdown__menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 280px;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 110;
}

.nfc-dropdown:hover .nfc-dropdown__menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nfc-dropdown__item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.nfc-dropdown__item:hover {
    background: var(--gray-50);
}

.nfc-dropdown__icon {
    width: 34px;
    height: 34px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.nfc-dropdown__title {
    color: var(--gray-900);
    font-size: 0.875rem;
    font-weight: 600;
}

.nfc-dropdown__sub {
    color: var(--gray-500);
    font-size: 0.75rem;
}

.nfc-header__actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nfc-search-trigger {
    background: var(--gray-100);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    padding: 8px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--gray-500);
    font-size: 0.875rem;
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition);
}

.nfc-search-trigger:hover {
    background: var(--white);
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.nfc-kbd-shortcut {
    background: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: 4px;
    font-size: 0.7rem;
    padding: 2px 6px;
    font-weight: 600;
    color: var(--gray-600);
}

.nfc-mobile-toggle {
    display: none;
    background: none;
    border: 1px solid var(--border-color);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    font-size: 1.1rem;
    color: var(--gray-700);
    cursor: pointer;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.nfc-hero {
    background: radial-gradient(circle at 50% 0%, #1e293b 0%, #0b0f19 100%);
    color: var(--white);
    padding: 70px 0 55px;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nfc-hero__bg-glow {
    position: absolute;
    top: -150px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 350px;
    background: radial-gradient(circle, rgba(234, 101, 33, 0.25) 0%, transparent 70%);
    pointer-events: none;
}

.nfc-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(234, 101, 33, 0.15);
    border: 1px solid rgba(234, 101, 33, 0.35);
    color: #ff9d66;
    padding: 6px 16px;
    border-radius: var(--radius-full);
    font-size: 0.8125rem;
    font-weight: 700;
    margin-bottom: 18px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.nfc-hero__title {
    font-size: 2.75rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 14px;
    color: var(--white);
    letter-spacing: -0.02em;
}

.nfc-hero__subtitle {
    font-size: 1.125rem;
    color: var(--gray-300);
    max-width: 680px;
    margin: 0 auto 36px;
    line-height: 1.6;
}

/* Hero Search Box */
.nfc-hero-search {
    max-width: 720px;
    margin: 0 auto;
    position: relative;
}

.nfc-hero-search__box {
    position: relative;
    background: var(--white);
    border-radius: var(--radius-full);
    padding: 6px 10px 6px 20px;
    display: flex;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    border: 2px solid transparent;
    transition: var(--transition);
}

.nfc-hero-search__box:focus-within {
    border-color: var(--primary);
    box-shadow: 0 10px 35px var(--primary-glow);
}

.nfc-hero-search__icon {
    color: var(--gray-400);
    font-size: 1.2rem;
    margin-right: 12px;
}

.nfc-hero-search__input {
    width: 100%;
    border: none;
    outline: none;
    font-size: 1.05rem;
    font-family: inherit;
    color: var(--gray-900);
    background: transparent;
}

.nfc-hero-search__input::placeholder {
    color: var(--gray-400);
}

.nfc-hero-search__clear,
.nfc-hero-search__spinner {
    background: none;
    border: none;
    font-size: 1.1rem;
    color: var(--gray-400);
    cursor: pointer;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nfc-hero-search__clear:hover {
    color: var(--gray-700);
}

/* Search Dropdown on Hero */
.nfc-hero-search__dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    max-height: 420px;
    overflow-y: auto;
    display: none;
    z-index: 99;
    text-align: left;
    border: 1px solid var(--border-color);
}

.nfc-hero-search__dropdown.active {
    display: block;
}

/* Popular Search Chips */
.nfc-hero-search__chips {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
    font-size: 0.8125rem;
}

.nfc-chips-label {
    color: var(--gray-400);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.nfc-chip {
    background: rgba(255, 255, 255, 0.08);
    color: var(--gray-200);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: var(--transition);
}

.nfc-chip:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

/* Hero Stats Strip */
.nfc-stats-strip {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    padding: 10px 24px;
    margin-top: 36px;
    gap: 20px;
}

.nfc-stat-item {
    text-align: center;
}

.nfc-stat-number {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1.1;
}

.nfc-stat-label {
    font-size: 0.72rem;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.nfc-stat-sep {
    width: 1px;
    height: 24px;
    background: rgba(255, 255, 255, 0.15);
}

/* ==========================================================================
   Main Content & Topics Grid
   ========================================================================== */
.nfc-main-content {
    padding: 60px 0 80px;
}

.nfc-section-head {
    text-align: center;
    margin-bottom: 45px;
}

.nfc-section-title {
    font-size: 2.1rem;
    font-weight: 800;
    color: var(--gray-900);
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}

.nfc-section-subtitle {
    font-size: 1.05rem;
    color: var(--gray-500);
}

/* Topics 3-Column Grid */
.nfc-topics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 60px;
}

.nfc-topic-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    overflow: hidden;
}

.nfc-topic-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(234, 101, 33, 0.35);
}

.nfc-topic-card__header {
    padding: 24px 24px 18px;
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.nfc-topic-card__title-wrap {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.nfc-topic-card__icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.nfc-topic-card__title {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 4px;
}

.nfc-topic-card__title a {
    color: var(--gray-900);
}

.nfc-topic-card__title a:hover {
    color: var(--primary);
}

.nfc-topic-card__desc {
    font-size: 0.8125rem;
    color: var(--gray-500);
    line-height: 1.45;
}

.nfc-topic-card__count {
    color: var(--white);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    white-space: nowrap;
}

.nfc-topic-card__articles {
    padding: 16px 24px;
    flex-grow: 1;
}

.nfc-article-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.nfc-article-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.9rem;
    line-height: 1.4;
}

.nfc-article-item__icon {
    font-size: 0.85rem;
    margin-top: 3px;
    flex-shrink: 0;
}

.nfc-article-item__link {
    color: var(--gray-700);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nfc-article-item__link:hover {
    color: var(--primary);
}

.nfc-topic-card__footer {
    padding: 14px 24px;
    background: var(--gray-50);
    border-top: 1px solid var(--border-subtle);
}

.nfc-topic-card__more-btn {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nfc-topic-card__more-btn i {
    transition: transform 0.2s;
}

.nfc-topic-card__more-btn:hover i {
    transform: translateX(4px);
}

/* Features Highlight Row */
.nfc-features-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.nfc-feature-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: var(--transition);
}

.nfc-feature-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--gray-300);
}

.nfc-feature-card__icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: var(--primary-soft);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 16px;
}

.nfc-feature-card__title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 8px;
}

.nfc-feature-card__text {
    font-size: 0.875rem;
    color: var(--gray-600);
    line-height: 1.6;
    margin-bottom: 16px;
}

.nfc-feature-card__link {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.nfc-feature-card__link:hover {
    gap: 10px;
}

/* ==========================================================================
   Support CTA Banner Section
   ========================================================================== */
.nfc-support-cta {
    padding: 30px 0 60px;
}

.nfc-support-cta__card {
    background: linear-gradient(135deg, #111827 0%, #1e293b 100%);
    border-radius: var(--radius-xl);
    padding: 44px 48px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 32px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-lg);
}

.nfc-support-cta__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(234, 101, 33, 0.2);
    color: #ff9d66;
    padding: 4px 14px;
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.nfc-support-cta__title {
    font-size: 1.85rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.nfc-support-cta__desc {
    color: var(--gray-300);
    font-size: 0.95rem;
    max-width: 580px;
}

.nfc-support-cta__actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 240px;
}

/* Buttons */
.nfc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 20px;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
    text-align: center;
}

.nfc-btn--primary {
    background: var(--primary);
    color: var(--white);
}

.nfc-btn--primary:hover {
    background: var(--primary-hover);
    color: var(--white);
    box-shadow: 0 4px 14px var(--primary-glow);
}

.nfc-btn--outline {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.3);
    color: var(--white);
}

.nfc-btn--outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--white);
    color: var(--white);
}

.nfc-btn--glass {
    background: rgba(255, 255, 255, 0.08);
    color: var(--gray-200);
    border-color: rgba(255, 255, 255, 0.12);
}

.nfc-btn--glass:hover {
    background: rgba(255, 255, 255, 0.16);
    color: var(--white);
}

.nfc-btn--block {
    width: 100%;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.nfc-footer {
    background: var(--dark-900);
    color: var(--gray-400);
    padding: 64px 0 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.nfc-footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 48px;
}

.nfc-footer__logo {
    height: 40px;
    margin-bottom: 18px;
    filter: brightness(0) invert(1);
}

.nfc-footer__about {
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: 22px;
    color: var(--gray-300);
}

.nfc-trust-badges {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nfc-trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--gray-200);
    font-size: 0.8125rem;
    font-weight: 600;
}

.nfc-trust-badge i {
    color: var(--primary);
}

.nfc-footer__title {
    color: var(--white);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 18px;
    letter-spacing: -0.01em;
}

.nfc-footer__links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 0.875rem;
}

.nfc-footer__links a {
    color: var(--gray-400);
}

.nfc-footer__links a:hover {
    color: var(--white);
}

.nfc-footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.8125rem;
}

.nfc-footer__copyright {
    color: var(--gray-400);
}

.nfc-footer__social {
    display: flex;
    gap: 12px;
}

.nfc-footer__social a {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-300);
    font-size: 0.85rem;
}

.nfc-footer__social a:hover {
    background: var(--primary);
    color: var(--white);
}

/* ==========================================================================
   Topic Archive & Article Layout (2-Column)
   ========================================================================== */
.nfc-topic-hero,
.nfc-article-hero {
    background: #0f172a;
    color: var(--white);
    padding: 36px 0 44px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nfc-breadcrumbs {
    margin-bottom: 20px;
    font-size: 0.8125rem;
}

.nfc-breadcrumbs ol {
    list-style: none;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.nfc-breadcrumbs a {
    color: var(--gray-400);
}

.nfc-breadcrumbs a:hover {
    color: var(--white);
}

.nfc-bc-sep {
    font-size: 0.65rem;
    color: var(--gray-600);
}

.nfc-bc-active {
    color: var(--primary);
    font-weight: 600;
}

.nfc-topic-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 12px;
}

.nfc-topic-hero__title,
.nfc-article-hero__title {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1.25;
    margin-bottom: 10px;
}

.nfc-topic-hero__desc {
    color: var(--gray-300);
    font-size: 1.05rem;
    max-width: 720px;
    margin-bottom: 18px;
}

.nfc-topic-hero__meta {
    display: flex;
    align-items: center;
    gap: 20px;
    color: var(--gray-400);
    font-size: 0.875rem;
}

.nfc-topic-hero__stat {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.nfc-topic-body,
.nfc-article-body {
    padding: 48px 0 80px;
}

.nfc-layout-2col {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 36px;
    align-items: start;
}

.nfc-layout-main {
    min-width: 0;
}

/* Archive List Controls */
.nfc-topic-listing-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.nfc-topic-listing-info {
    font-size: 0.9375rem;
    color: var(--gray-600);
}

.nfc-inpage-filter {
    position: relative;
    width: 280px;
}

.nfc-inpage-filter i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
    font-size: 0.85rem;
}

.nfc-inpage-filter input {
    width: 100%;
    padding: 7px 12px 7px 34px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-family: inherit;
    outline: none;
    background: var(--white);
}

.nfc-inpage-filter input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

/* Archive List Items */
.nfc-archive-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 36px;
}

.nfc-archive-item {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 22px;
    display: flex;
    gap: 18px;
    align-items: flex-start;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.nfc-archive-item:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.nfc-archive-item__icon {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
}

.nfc-archive-item__title {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 6px;
}

.nfc-archive-item__title a {
    color: var(--gray-900);
}

.nfc-archive-item__title a:hover {
    color: var(--primary);
}

.nfc-archive-item__excerpt {
    font-size: 0.875rem;
    color: var(--gray-600);
    line-height: 1.55;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nfc-archive-item__meta {
    display: flex;
    align-items: center;
    gap: 14px;
}

.nfc-badge-pill {
    background: var(--gray-100);
    color: var(--gray-600);
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.nfc-archive-item__read-more {
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.nfc-archive-item__read-more:hover {
    gap: 8px;
}

/* Pagination */
.nfc-pagination {
    margin-top: 30px;
    display: flex;
    justify-content: center;
}

.nfc-pagination__list {
    display: flex;
    list-style: none;
    gap: 6px;
    align-items: center;
}

.nfc-page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border-radius: var(--radius-sm);
    background: var(--white);
    border: 1px solid var(--border-color);
    color: var(--gray-700);
    font-size: 0.875rem;
    font-weight: 600;
    transition: var(--transition);
}

.nfc-page-link:hover:not(.disabled) {
    background: var(--gray-50);
    border-color: var(--primary);
    color: var(--primary);
}

.nfc-page-link.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

.nfc-page-link.disabled {
    color: var(--gray-400);
    cursor: not-allowed;
    background: var(--gray-100);
}

.nfc-page-ellipsis {
    color: var(--gray-500);
    padding: 0 6px;
}

/* ==========================================================================
   Sidebar Widgets
   ========================================================================== */
.nfc-layout-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.nfc-sidebar-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

.nfc-sidebar-card--highlight {
    background: linear-gradient(145deg, #111827, #1e293b);
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.1);
}

.nfc-sidebar-card--highlight .nfc-sidebar-card__title {
    color: var(--white);
}

.nfc-sidebar-card--highlight .nfc-sidebar-card__desc {
    color: var(--gray-300);
}

.nfc-sidebar-card__icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background: rgba(234, 101, 33, 0.2);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    margin-bottom: 12px;
}

.nfc-sidebar-card__title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nfc-sidebar-card__desc {
    font-size: 0.85rem;
    color: var(--gray-600);
    line-height: 1.5;
    margin-bottom: 16px;
}

/* Sidebar Topics List */
.nfc-sidebar-topics {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.nfc-sidebar-topic-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    color: var(--gray-700);
    font-size: 0.875rem;
    font-weight: 600;
    transition: var(--transition);
}

.nfc-sidebar-topic-link:hover,
.nfc-sidebar-topic-link.active {
    background: var(--primary-soft);
    color: var(--primary);
}

.nfc-sidebar-topic-name {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nfc-sidebar-topic-badge {
    background: var(--gray-100);
    color: var(--gray-600);
    font-size: 0.72rem;
    padding: 2px 8px;
    border-radius: var(--radius-full);
}

.nfc-sidebar-topic-badge.active {
    background: var(--primary);
    color: var(--white);
}

/* Sidebar Related / Sibling Articles */
.nfc-sidebar-related-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.nfc-sidebar-rel-link {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--gray-700);
    line-height: 1.4;
    padding: 4px 0;
}

.nfc-sidebar-rel-link:hover {
    color: var(--primary);
}

.nfc-sidebar-rel-link i {
    font-size: 0.8rem;
    margin-top: 3px;
    color: var(--gray-400);
    flex-shrink: 0;
}

.nfc-sidebar-view-all {
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Sticky Table of Contents */
.nfc-sidebar-toc {
    position: sticky;
    top: 90px;
    max-height: calc(100vh - 110px);
    overflow-y: auto;
}

.nfc-toc-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.nfc-toc-item {
    font-size: 0.85rem;
    line-height: 1.4;
}

.nfc-toc-lvl-3 {
    padding-left: 14px;
}

.nfc-toc-lvl-4 {
    padding-left: 24px;
}

.nfc-toc-link {
    color: var(--gray-600);
    display: block;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    border-left: 2px solid transparent;
    transition: var(--transition);
}

.nfc-toc-link:hover {
    color: var(--primary);
    background: var(--gray-50);
}

.nfc-toc-link.active {
    color: var(--primary);
    font-weight: 700;
    border-left-color: var(--primary);
    background: var(--primary-soft);
}

/* ==========================================================================
   Article Detail View & Content Typography
   ========================================================================== */
.nfc-article-hero__header {
    max-width: 900px;
}

.nfc-article-badges {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

.nfc-badge-category {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    border: 1px solid transparent;
}

.nfc-article-hero__meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.nfc-article-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nfc-author-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(234, 101, 33, 0.2);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.nfc-author-name {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--white);
}

.nfc-author-role {
    font-size: 0.75rem;
    color: var(--gray-400);
}

.nfc-article-actions {
    display: flex;
    gap: 8px;
}

.nfc-action-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--gray-200);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 0.8125rem;
    font-family: inherit;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.nfc-action-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
}

.nfc-article-main-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 44px;
    box-shadow: var(--shadow-sm);
}

/* Mobile collapsible TOC */
.nfc-mobile-toc {
    display: none;
    margin-bottom: 30px;
    background: var(--gray-50);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 14px 18px;
}

.nfc-mobile-toc summary {
    font-weight: 700;
    color: var(--gray-800);
    cursor: pointer;
}

.nfc-mobile-toc nav {
    margin-top: 14px;
}

.nfc-mobile-toc ul {
    list-style: none;
    padding-left: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Rendered Article Typography */
.nfc-content-rendered {
    font-size: 1.05rem;
    color: var(--gray-800);
    line-height: 1.75;
}

.nfc-content-rendered h2 {
    font-size: 1.65rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-top: 36px;
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
    scroll-margin-top: 90px;
}

.nfc-content-rendered h3 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-top: 28px;
    margin-bottom: 10px;
    scroll-margin-top: 90px;
}

.nfc-content-rendered h4 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--gray-800);
    margin-top: 22px;
    margin-bottom: 8px;
    scroll-margin-top: 90px;
}

.nfc-content-rendered p {
    margin-bottom: 18px;
}

.nfc-content-rendered ul,
.nfc-content-rendered ol {
    margin-bottom: 20px;
    padding-left: 28px;
}

.nfc-content-rendered li {
    margin-bottom: 8px;
}

.nfc-content-rendered strong {
    font-weight: 700;
    color: var(--gray-900);
}

.nfc-content-rendered table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    font-size: 0.95rem;
}

.nfc-content-rendered th,
.nfc-content-rendered td {
    padding: 12px 14px;
    border: 1px solid var(--border-color);
    text-align: left;
}

.nfc-content-rendered th {
    background: var(--gray-100);
    color: var(--gray-900);
    font-weight: 700;
}

.nfc-content-rendered img {
    margin: 24px 0;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

/* Callout Boxes (Info, Warning, Tip) */
.nfc-content-rendered .mkb-info,
.nfc-content-rendered .alert-info,
.nfc-content-rendered .info-box {
    background: #eef2ff;
    border-left: 4px solid #4f46e5;
    padding: 16px 20px;
    border-radius: var(--radius-sm);
    margin: 20px 0;
    color: #1e1b4b;
}

.nfc-content-rendered .mkb-warning,
.nfc-content-rendered .alert-warning {
    background: #fffbeb;
    border-left: 4px solid #f59e0b;
    padding: 16px 20px;
    border-radius: var(--radius-sm);
    margin: 20px 0;
    color: #78350f;
}

.nfc-content-rendered .mkb-tip,
.nfc-content-rendered .alert-success {
    background: #ecfdf5;
    border-left: 4px solid #10b981;
    padding: 16px 20px;
    border-radius: var(--radius-sm);
    margin: 20px 0;
    color: #064e3b;
}

/* Code Blocks */
.nfc-content-rendered pre,
pre.EnlighterJSRAW {
    background: #0d1117;
    color: #c9d1d9;
    padding: 18px 20px;
    border-radius: var(--radius-md);
    overflow-x: auto;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 22px 0;
    position: relative;
    border: 1px solid #30363d;
}

.nfc-content-rendered code {
    background: #f1f5f9;
    color: #ea6521;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.88em;
    font-weight: 600;
}

.nfc-content-rendered pre code {
    background: transparent;
    color: inherit;
    padding: 0;
}

/* Code Copy Button */
.nfc-copy-code-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #e6edf3;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-family: var(--font-sans);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: var(--transition);
}

.nfc-copy-code-btn:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* Helpful Feedback Box */
.nfc-feedback-box {
    margin-top: 48px;
    padding: 28px;
    background: var(--gray-50);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.nfc-feedback-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 4px;
}

.nfc-feedback-desc {
    font-size: 0.85rem;
    color: var(--gray-600);
}

.nfc-feedback-buttons {
    display: flex;
    gap: 10px;
}

.nfc-feedback-btn {
    padding: 9px 18px;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    border: 1px solid var(--border-color);
    background: var(--white);
    color: var(--gray-700);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.nfc-feedback-btn--yes:hover {
    background: #ecfdf5;
    border-color: #10b981;
    color: #059669;
}

.nfc-feedback-btn--no:hover {
    background: #fef2f2;
    border-color: #ef4444;
    color: #dc2626;
}

.nfc-feedback-thanks {
    font-weight: 700;
    color: #059669;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
}

/* Related Section in Article */
.nfc-related-section {
    margin-top: 44px;
    padding-top: 36px;
    border-top: 1px solid var(--border-color);
}

.nfc-related-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nfc-related-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.nfc-related-card {
    background: var(--gray-50);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: var(--transition);
}

.nfc-related-card:hover {
    background: var(--white);
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
    transform: translateX(4px);
}

.nfc-related-card__text {
    flex-grow: 1;
    font-size: 0.925rem;
    font-weight: 600;
    color: var(--gray-800);
}

.nfc-related-card:hover .nfc-related-card__text {
    color: var(--primary);
}

.nfc-related-card__arrow {
    color: var(--gray-400);
    font-size: 0.85rem;
}

.nfc-article-footer-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

/* ==========================================================================
   Live Search Modal
   ========================================================================== */
.nfc-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 80px 20px 20px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.nfc-modal.active {
    opacity: 1;
    visibility: visible;
}

.nfc-modal__backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(4px);
}

.nfc-modal__dialog {
    position: relative;
    width: 100%;
    max-width: 680px;
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    max-height: 80vh;
    animation: modal-slide-down 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modal-slide-down {
    from {
        transform: translateY(-20px) scale(0.98);
    }

    to {
        transform: translateY(0) scale(1);
    }
}

.nfc-modal__header {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    gap: 12px;
}

.nfc-search-input-wrap {
    flex-grow: 1;
    display: flex;
    align-items: center;
    position: relative;
}

.nfc-search-input-icon {
    color: var(--primary);
    font-size: 1.15rem;
    margin-right: 12px;
}

.nfc-search-input {
    width: 100%;
    border: none;
    outline: none;
    font-size: 1.15rem;
    font-family: inherit;
    color: var(--gray-900);
}

.nfc-modal__close {
    background: none;
    border: none;
    font-size: 1.25rem;
    color: var(--gray-400);
    cursor: pointer;
    padding: 6px;
    border-radius: var(--radius-sm);
}

.nfc-modal__close:hover {
    color: var(--gray-800);
    background: var(--gray-100);
}

.nfc-modal__body {
    padding: 16px 20px;
    overflow-y: auto;
    flex-grow: 1;
}

.nfc-search-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border-subtle);
    margin-bottom: 14px;
}

.nfc-search-tag-label {
    font-size: 0.78rem;
    color: var(--gray-500);
    font-weight: 700;
}

.nfc-tag-btn {
    background: var(--gray-100);
    border: 1px solid var(--border-color);
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--gray-700);
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition);
}

.nfc-tag-btn:hover {
    background: var(--primary-soft);
    border-color: var(--primary);
    color: var(--primary);
}

.nfc-search-results {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nfc-search-empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--gray-500);
}

.nfc-search-empty-state i {
    font-size: 2.5rem;
    color: var(--gray-300);
    margin-bottom: 12px;
}

.nfc-search-result-item {
    padding: 12px 16px;
    border-radius: var(--radius-md);
    background: var(--white);
    border: 1px solid transparent;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    transition: var(--transition);
    cursor: pointer;
}

.nfc-search-result-item:hover,
.nfc-search-result-item.selected {
    background: var(--gray-50);
    border-color: var(--primary);
}

.nfc-search-result-item__icon {
    font-size: 1.1rem;
    color: var(--primary);
    margin-top: 2px;
    flex-shrink: 0;
}

.nfc-search-result-item__title {
    font-size: 0.975rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 2px;
}

.nfc-search-result-item__topics {
    display: flex;
    gap: 6px;
    margin-bottom: 4px;
}

.nfc-search-result-item__topic-pill {
    font-size: 0.7rem;
    padding: 1px 7px;
    border-radius: var(--radius-full);
    background: var(--primary-soft);
    color: var(--primary);
    font-weight: 700;
}

.nfc-search-result-item__excerpt {
    font-size: 0.8125rem;
    color: var(--gray-500);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nfc-modal__footer {
    padding: 12px 20px;
    background: var(--gray-50);
    border-top: 1px solid var(--border-color);
}

.nfc-modal__tips {
    display: flex;
    gap: 16px;
    font-size: 0.75rem;
    color: var(--gray-500);
}

.nfc-modal__tips kbd {
    background: var(--white);
    border: 1px solid var(--gray-300);
    padding: 1px 5px;
    border-radius: 4px;
    font-family: inherit;
    font-weight: 600;
}

/* ==========================================================================
   Toast Notification
   ========================================================================== */
.nfc-toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.nfc-toast {
    background: #111827;
    color: var(--white);
    padding: 12px 20px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    font-size: 0.875rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    animation: toast-in 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.nfc-toast i {
    color: #22c55e;
}

@keyframes toast-in {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1080px) {
    .nfc-topics-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .nfc-features-row {
        grid-template-columns: 1fr;
    }

    .nfc-footer__grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 900px) {
    .nfc-layout-2col {
        grid-template-columns: 1fr;
    }

    .nfc-mobile-toc {
        display: block;
    }

    .nfc-sidebar-toc {
        display: none;
    }

    .nfc-support-cta__card {
        flex-direction: column;
        text-align: center;
        padding: 32px 24px;
    }

    .nfc-support-cta__desc {
        margin: 0 auto;
    }

    .nfc-support-cta__actions {
        width: 100%;
    }
}

@media (max-width: 768px) {

    .nfc-topbar__left span.nfc-divider,
    .nfc-topbar__left a:nth-child(n+3) {
        display: none;
    }

    .nfc-nav {
        display: none;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--white);
        border-bottom: 1px solid var(--border-color);
        padding: 20px;
        box-shadow: var(--shadow-lg);
    }

    .nfc-nav.mobile-active {
        display: block;
    }

    .nfc-nav__list {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .nfc-dropdown__menu {
        position: static;
        width: 100%;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: 1px solid var(--gray-100);
        margin-top: 8px;
    }

    .nfc-mobile-toggle {
        display: block;
    }

    .nfc-search-trigger__text,
    .nfc-kbd-shortcut {
        display: none;
    }

    .nfc-hero__title {
        font-size: 2rem;
    }

    .nfc-topics-grid {
        grid-template-columns: 1fr;
    }

    .nfc-footer__grid {
        grid-template-columns: 1fr;
    }

    .nfc-article-hero__meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .nfc-article-main-card {
        padding: 24px;
    }

    .nfc-feedback-box {
        flex-direction: column;
        text-align: center;
    }

    .nfc-topic-listing-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

    .nfc-inpage-filter {
        width: 100%;
    }
}

/* ==========================================================================
   Dedicated Search Results Page & Submit Controls
   ========================================================================== */
.nfc-hero-search__form {
    width: 100%;
}

.nfc-hero-search__btn {
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: var(--radius-full);
    padding: 8px 18px;
    font-size: 0.875rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
    flex-shrink: 0;
}

.nfc-hero-search__btn:hover {
    background: var(--primary-hover);
    box-shadow: 0 4px 12px var(--primary-glow);
}

.nfc-search-page-box {
    display: flex;
    align-items: center;
    background: var(--white);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-full);
    padding: 6px 8px 6px 20px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.nfc-search-page-box:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-glow);
}

.nfc-search-page-icon {
    color: var(--gray-400);
    font-size: 1.15rem;
    margin-right: 12px;
}

.nfc-search-page-input {
    flex-grow: 1;
    border: none;
    outline: none;
    font-size: 1.05rem;
    font-family: inherit;
    color: var(--gray-900);
    background: transparent;
}

.nfc-search-page-submit {
    border-radius: var(--radius-full);
    padding: 8px 24px;
}

/* Search Tabs */
.nfc-search-tabs {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.nfc-search-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: var(--radius-full);
    background: var(--white);
    border: 1px solid var(--border-color);
    color: var(--gray-700);
    font-size: 0.875rem;
    font-weight: 600;
    transition: var(--transition);
}

.nfc-search-tab:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-soft);
}

.nfc-search-tab.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

.nfc-search-tab__count {
    background: var(--gray-100);
    color: var(--gray-600);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: var(--radius-full);
}

.nfc-search-tab.active .nfc-search-tab__count {
    background: rgba(255, 255, 255, 0.25);
    color: var(--white);
}

/* Search Results Cards */
.nfc-search-highlight {
    background: #fed7aa;
    color: #9a3412;
    padding: 1px 4px;
    border-radius: 3px;
    font-weight: 700;
}

.nfc-search-item__topic-pills {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.nfc-search-pill {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
}

/* No Results Card */
.nfc-no-results-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 50px 40px;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.nfc-no-results-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--primary-soft);
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 20px;
}

.nfc-no-results-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 10px;
}

.nfc-no-results-text {
    color: var(--gray-600);
    font-size: 1rem;
    max-width: 500px;
    margin: 0 auto 24px;
}

.nfc-no-results-tips {
    background: var(--gray-50);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 18px 24px;
    max-width: 540px;
    margin: 0 auto 28px;
    text-align: left;
}

.nfc-no-results-tips ul {
    list-style: disc;
    padding-left: 20px;
    color: var(--gray-700);
    font-size: 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.nfc-popular-searches-box {
    margin-top: 20px;
}

.nfc-popular-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 12px;
}

.nfc-popular-tags {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}