@import url("tokens.2a5f6d6711bb.css");

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

body {
    margin: 0;
    padding-top: var(--nt-header-h);
    padding-left: env(safe-area-inset-left, 0);
    padding-right: env(safe-area-inset-right, 0);
    font-family: var(--nt-font-body);
    font-size: var(--nt-text-base);
    line-height: 1.7;
    color: var(--nt-body);
    background: var(--nt-page-bg);
    overflow-x: hidden;
    min-width: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: padding-top 0.28s var(--nt-ease);
}

html.nt-nav-open,
body.nt-nav-open {
    overflow: hidden;
    touch-action: none;
}

/* Pillars / program tabs — without JS show every panel stacked */
html:not(.nt-has-js) [data-pillars-panel][hidden],
html:not(.nt-has-js) [data-program-panel][hidden] {
    display: block !important;
}

html:not(.nt-has-js) [data-pillars-tab],
html:not(.nt-has-js) [data-program-tab] {
    pointer-events: none;
}

[x-cloak] { display: none !important; }

[hidden] { display: none !important; }

img, video, canvas, svg {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--nt-nuru);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

a:hover { color: var(--nt-green-dark); }

.nt-skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 9999;
    padding: 0.75rem 1.25rem;
    background: var(--nt-green);
    color: #fff;
    font-weight: 600;
    border-radius: var(--nt-radius-sm);
}

.nt-skip-link:focus {
    left: 1rem;
    top: 1rem;
}

.nt-container {
    width: min(100% - 2rem, var(--nt-container));
    margin-inline: auto;
}

.nt-container--narrow {
    width: min(100% - 2rem, 760px);
}

.nt-container--read {
    width: min(100% - 2rem, 720px);
    margin-inline: auto;
}

/* Sections */
.nt-section {
    padding-block: var(--nt-section-y);
}

.nt-section--alt {
    background: var(--nt-white);
}

.nt-section--tight {
    padding-block: var(--nt-section-y-sm);
}

.nt-section--dark {
    background: linear-gradient(135deg, var(--nt-forest-deep), var(--nt-forest));
    color: #fff;
}

.nt-section-head {
    margin-bottom: 2.5rem;
    max-width: 42rem;
}

.nt-section-head--center {
    margin-inline: auto;
    text-align: center;
}

.nt-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin: 0 0 0.75rem;
    font-family: var(--nt-font-heading);
    font-size: var(--nt-eyebrow-size, 0.8125rem);
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--nt-nuru);
}

.nt-eyebrow::before {
    content: '';
    display: inline-block;
    width: 18px;
    height: 2px;
    background: currentColor;
    border-radius: 1px;
    flex-shrink: 0;
}

.nt-eyebrow--light {
    color: var(--nt-accent);
}

.nt-section-title {
    margin: 0;
    font-family: var(--nt-font-nav);
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 700;
    line-height: 1.2;
    color: var(--nt-ink);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.nt-section-title::after {
    content: '';
    display: block;
    width: 64px;
    height: 3px;
    margin: 0.75rem 0 0;
    background: var(--nt-brand-bar);
    border-radius: 0;
}

.nt-section-title--center { text-align: center; }

.nt-section-title--center::after {
    margin-left: auto;
    margin-right: auto;
}

.nt-section-title--sm {
    font-size: clamp(1.125rem, 2vw, 1.35rem);
    letter-spacing: 0.03em;
}

.nt-section-title--sm::after {
    width: 40px;
    margin-top: 0.5rem;
}

.nt-section-title--white { color: #fff; }

.nt-section-title--white::after {
    background: var(--nt-brand-bar);
}

.nt-section-lead {
    margin: 1rem 0 0;
    font-size: var(--nt-text-lg);
    line-height: 1.65;
    color: var(--nt-muted);
    max-width: 38rem;
}

.nt-section-head--center .nt-section-lead {
    margin-inline: auto;
}

.nt-text-accent {
    color: var(--nt-accent);
}

.nt-pullquote {
    margin: 1.5rem 0;
    padding: 1.25rem 1.25rem 1.25rem 1.5rem;
    border-left: 4px solid var(--nt-brand-bar);
    background: var(--nt-sage-soft);
    border-radius: 0 var(--nt-radius-sm) var(--nt-radius-sm) 0;
    font-family: var(--nt-font-heading);
    font-size: 1.05rem;
    font-weight: 600;
    font-style: italic;
    line-height: 1.55;
    color: var(--nt-forest);
}

.nt-split-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
}

.nt-split-media {
    border-radius: var(--nt-radius);
    overflow: hidden;
    box-shadow: var(--nt-shadow-lg);
}

.nt-split-media img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
}

@media (max-width: 991px) {
    .nt-split-grid { grid-template-columns: 1fr; }
}

.nt-title-line {
    display: block;
    width: 48px;
    height: 3px;
    margin: 1rem auto 0;
    background: linear-gradient(90deg, var(--nt-green), var(--nt-sage));
    border-radius: 2px;
}

.nt-title-line--left { margin-inline: 0 auto 0; }

.nt-empty {
    text-align: center;
    color: var(--nt-muted);
    font-style: italic;
    padding: 2rem;
}

/* Rich text — mirrors CKEditor 5 formatting from admin */
.nt-richtext {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--nt-muted, #555);
    overflow-wrap: anywhere;
}

.nt-richtext > *:first-child { margin-top: 0; }
.nt-richtext > *:last-child { margin-bottom: 0; }

.nt-richtext p {
    margin: 0 0 1rem;
    color: inherit;
}

.nt-richtext p:last-child { margin-bottom: 0; }

.nt-richtext h2,
.nt-richtext h3,
.nt-richtext h4,
.nt-richtext h5,
.nt-richtext h6 {
    margin: 1.15rem 0 0.65rem;
    font-family: var(--nt-font-heading);
    font-weight: 700;
    line-height: 1.3;
    color: var(--nt-ink);
}

.nt-richtext h2 { font-size: clamp(1.35rem, 2.2vw, 1.65rem); }
.nt-richtext h3 { font-size: clamp(1.15rem, 1.8vw, 1.35rem); }
.nt-richtext h4 { font-size: 1.05rem; }

.nt-richtext strong:not([style*="color"]),
.nt-richtext b:not([style*="color"]) {
    color: var(--nt-ink);
    font-weight: 700;
}

.nt-richtext em,
.nt-richtext i { font-style: italic; }

.nt-richtext u { text-decoration: underline; }

.nt-richtext s,
.nt-richtext strike,
.nt-richtext del {
    text-decoration: line-through;
}

.nt-richtext a {
    color: var(--nt-green);
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

.nt-richtext a:hover { color: var(--nt-green-dark, #6e8c31); }

.nt-richtext ul,
.nt-richtext ol {
    margin: 0 0 1rem;
    padding-left: 1.4em;
}

.nt-richtext li { margin-bottom: 0.4rem; }
.nt-richtext li:last-child { margin-bottom: 0; }

.nt-richtext blockquote {
    margin: 1rem 0;
    padding: 0.75rem 1rem;
    border-left: 3px solid var(--nt-green);
    background: rgba(141, 181, 63, 0.08);
    color: var(--nt-ink);
}

.nt-richtext hr {
    margin: 1.25rem 0;
    border: 0;
    border-top: 1px solid var(--nt-border, #d7e8d0);
}

.nt-richtext img {
    display: block;
    max-width: 100%;
    width: auto;
    height: auto;
    max-height: min(400px, 45vh);
    object-fit: cover;
    border-radius: var(--nt-radius-sm, 8px);
    margin-block: 1rem;
}

.nt-richtext table {
    display: block;
    width: 100%;
    max-width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.nt-richtext th,
.nt-richtext td {
    border: 1px solid var(--nt-border, #d7e8d0);
    padding: 0.5rem 0.65rem;
    text-align: left;
    vertical-align: top;
}

.nt-richtext th {
    background: rgba(141, 181, 63, 0.1);
    font-weight: 700;
    color: var(--nt-ink);
}

/* CKEditor highlight markers / pens */
.nt-richtext mark,
.nt-richtext .marker-yellow {
    background: #fdfd77;
    color: #1a1a1a;
    padding: 0.05em 0.15em;
    border-radius: 2px;
}

.nt-richtext .marker-green {
    background: #c8e6c9;
    color: #1a1a1a;
    padding: 0.05em 0.15em;
    border-radius: 2px;
}

.nt-richtext .marker-pink {
    background: #fcb3ff;
    color: #1a1a1a;
    padding: 0.05em 0.15em;
    border-radius: 2px;
}

.nt-richtext .pen-green {
    color: var(--nt-forest);
    background: transparent;
}

.nt-richtext .pen-red {
    color: #ba2121;
    background: transparent;
}

/* Inline fontColor / alignment from CKEditor must win over theme defaults */
.nt-richtext [style*="color"] { /* keep author color */ }
.nt-richtext [style*="background-color"],
.nt-richtext [style*="background:"] {
    padding: 0.05em 0.15em;
    border-radius: 2px;
}

.nt-richtext [style*="text-align: center"],
.nt-richtext [style*="text-align:center"] { text-align: center; }
.nt-richtext [style*="text-align: right"],
.nt-richtext [style*="text-align:right"] { text-align: right; }
.nt-richtext [style*="text-align: justify"],
.nt-richtext [style*="text-align:justify"] { text-align: justify; }
.nt-richtext [style*="text-align: left"],
.nt-richtext [style*="text-align:left"] { text-align: left; }

.nt-brand-highlight { color: var(--nt-sage) !important; }

.nt-richtext--light {
    color: rgba(255, 255, 255, 0.92);
}

.nt-richtext--light a { color: #fff; }

.nt-richtext--light a:hover { color: #e8f5d8; }

.nt-richtext--light strong:not([style*="color"]),
.nt-richtext--light b:not([style*="color"]),
.nt-richtext--light h2,
.nt-richtext--light h3,
.nt-richtext--light h4 {
    color: rgba(255, 255, 255, 0.98);
}

.nt-richtext--light blockquote {
    background: rgba(255, 255, 255, 0.1);
    border-left-color: #fff;
    color: rgba(255, 255, 255, 0.92);
}

.nt-richtext--light mark,
.nt-richtext--light .marker-yellow,
.nt-richtext--light .marker-green,
.nt-richtext--light .marker-pink {
    color: #1a1a1a;
}

/* Buttons */
.nt-btn,
.c-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.6rem;
    font-family: var(--nt-font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    border-radius: var(--nt-radius-pill);
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform 0.2s var(--nt-ease), box-shadow 0.2s var(--nt-ease), background 0.2s;
}

.nt-btn:hover,
.c-btn:hover {
    transform: translateY(-1px);
    text-decoration: none;
}

.nt-btn--primary,
.c-btn.btn1 {
    background: var(--nt-green);
    color: #fff !important;
    border-color: var(--nt-green);
    box-shadow: 0 4px 14px rgba(141, 181, 63, 0.35);
}

.nt-btn--primary:hover,
.c-btn.btn1:hover {
    background: var(--nt-green-dark);
    border-color: var(--nt-green-dark);
    color: #fff !important;
}

.nt-btn--outline,
.c-btn.btn2 {
    background: transparent;
    color: #fff !important;
    border-color: rgba(255, 255, 255, 0.85);
}

.nt-btn--outline:hover,
.c-btn.btn2:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff !important;
}

.nt-btn--light {
    background: #fff;
    color: var(--nt-forest-deep) !important;
    border-color: #fff;
    box-shadow: 0 4px 14px rgba(15, 31, 18, 0.12);
}

.nt-btn--light:hover {
    background: var(--nt-sage-soft);
    color: var(--nt-forest-deep) !important;
}

.nt-btn--donate-outline {
    background: transparent;
    color: var(--nt-accent-warm) !important;
    border-color: var(--nt-accent-warm);
}

.nt-btn--donate-outline:hover {
    background: rgba(245, 197, 24, 0.12);
    color: #fff !important;
    border-color: #fff;
}

.nt-btn--ghost {
    background: transparent;
    color: var(--nt-nuru) !important;
    border-color: var(--nt-border);
}

.nt-btn--ghost:hover {
    background: var(--nt-sage-soft);
    border-color: var(--nt-sage);
}

.nt-btn--donate {
    background: var(--nt-donate, #d94f1a);
    color: #fff !important;
    border-color: var(--nt-donate, #d94f1a);
    box-shadow: 0 4px 14px rgba(217, 79, 26, 0.38);
    font-weight: 800;
}

.nt-btn--donate:hover {
    background: var(--nt-donate-dark, #b83e12);
    border-color: var(--nt-donate-dark, #b83e12);
    color: #fff !important;
    box-shadow: 0 6px 20px rgba(217, 79, 26, 0.48);
}

.nt-btn--sm {
    padding: 0.55rem 1.15rem;
    font-size: 0.8125rem;
}

.nt-link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: 600;
    color: var(--nt-nuru);
    text-decoration: none;
}

.nt-link-arrow:hover { gap: 0.55rem; color: var(--nt-green-dark); }

.nt-pill {
    display: inline-block;
    padding: 0.2rem 0.65rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--nt-radius-pill);
    background: var(--nt-sage-soft);
    color: var(--nt-forest);
}

@media (prefers-reduced-motion: reduce) {
    body {
        transition: none;
    }
}

@media print {
    body {
        padding-top: 0 !important;
    }
}

/* Flash messages */
.nt-flash-messages {
    position: fixed;
    top: calc(var(--nt-header-h) + 0.75rem);
    right: 1rem;
    z-index: 200;
    max-width: 24rem;
}

.nt-flash {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.85rem 1rem;
    margin-bottom: 0.5rem;
    background: #fff;
    border-radius: var(--nt-radius);
    box-shadow: var(--nt-shadow-lg);
    border-left: 4px solid var(--nt-green);
    font-size: 0.9rem;
}

.nt-flash--error { border-color: #dc2626; }
.nt-flash--success { border-color: var(--nt-green); }
.nt-flash-close {
    margin-left: auto;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    background: none;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    color: var(--nt-muted);
}

/* Back to top */
.nt-back-top {
    position: fixed;
    right: max(1.25rem, env(safe-area-inset-right, 0px));
    bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px));
    z-index: 90;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: var(--nt-green);
    color: #fff;
    box-shadow: var(--nt-shadow);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
}

.nt-back-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nt-back-top:hover { background: var(--nt-green-dark); }

.nt-hide-mobile { display: none; }

@media (min-width: 992px) {
    .nt-hide-mobile { display: inline-flex; }
}

@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

/* Reveal animation — only hide when JS opts in (html.nt-has-js).
   Without JS (or if observers fail), content stays visible. */
@media (prefers-reduced-motion: no-preference) {
    html.nt-has-js .nt-reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.65s var(--nt-ease), transform 0.65s var(--nt-ease);
    }
    html.nt-has-js .nt-reveal.is-visible {
        opacity: 1;
        transform: translateY(0);
    }
    html.nt-has-js .nt-reveal-stagger > * {
        opacity: 0;
        transform: translateY(16px);
        transition: opacity 0.5s var(--nt-ease), transform 0.5s var(--nt-ease);
    }
    html.nt-has-js .nt-reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0.05s; }
    html.nt-has-js .nt-reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 0.12s; }
    html.nt-has-js .nt-reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 0.19s; }
    html.nt-has-js .nt-reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 0.26s; }
    html.nt-has-js .nt-reveal-stagger.is-visible > * {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Safety net: never leave content invisible */
@media (prefers-reduced-motion: reduce) {
    .nt-reveal,
    .nt-reveal-left,
    .nt-reveal-right,
    .nt-reveal-scale,
    .nt-reveal-stagger > *,
    .nt-animate-grid > * {
        opacity: 1 !important;
        transform: none !important;
    }
}

@media (max-width: 767px) {
    :root {
        --nt-section-y: 3rem;
    }
}
