/* ========================================================================== */
/* NATIONALIST PARTY POPUP / OVERLAY SYSTEM                                  */
/* Isolated popup module. Does not style header, hero, nav, footer, homepage. */
/* ========================================================================== */

:root {
    --np-popup-font-size: 18px;
    --np-popup-line-height: 1.72;
}

body.np-reader-small {
    --np-popup-font-size: 16px;
    --np-popup-line-height: 1.66;
}

body.np-reader-large {
    --np-popup-font-size: 20px;
    --np-popup-line-height: 1.78;
}

body.np-reader-xl {
    --np-popup-font-size: 22px;
    --np-popup-line-height: 1.84;
}

body.np-popup-locked {
    overflow: hidden;
}

.np-popup-backdrop {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 8000;
    background:
        radial-gradient(circle at center, rgba(212, 175, 55, 0.08), transparent 32rem),
        rgba(0, 0, 0, 0.74);
    backdrop-filter: blur(3px);
}

.np-popup-backdrop.active {
    display: block;
}

.np-popup {
    position: fixed;
    top: 8vh;
    left: 50%;
    width: min(880px, 92vw);
    max-height: 86vh;
    display: none;
    flex-direction: column;
    transform: translateX(-50%);
    z-index: 8010;
    min-width: 360px;
    min-height: 280px;
    overflow: hidden;
    resize: both;
    background:
        linear-gradient(180deg, rgba(15, 15, 15, 0.98), rgba(5, 5, 5, 0.99)),
        #050505;
    border: 1px solid rgba(212, 175, 55, 0.72);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.035) inset,
        0 28px 80px rgba(0, 0, 0, 0.88),
        0 0 34px rgba(212, 175, 55, 0.10);
}

.np-popup.active {
    display: flex;
}

.np-popup-standard {
    width: min(840px, 92vw);
}

.np-popup-document {
    top: 4vh;
    width: min(1080px, 94vw);
    height: min(860px, 92vh);
    max-height: 92vh;
}

.np-popup-header {
    min-height: 74px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 16px 18px;
    user-select: none;
    cursor: move;
    border-bottom: 1px solid rgba(212, 175, 55, 0.45);
    background:
        linear-gradient(90deg, rgba(212, 175, 55, 0.10), transparent 34%),
        linear-gradient(180deg, #101010, #050505);
}

.np-popup-title-block {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.np-popup-mark {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: grid;
    place-items: center;
    color: var(--gold);
    border: 1px solid rgba(212, 175, 55, 0.7);
    background: radial-gradient(circle, rgba(212, 175, 55, 0.16), rgba(0, 0, 0, 0.48));
    clip-path: polygon(50% 0%, 94% 24%, 94% 74%, 50% 100%, 6% 74%, 6% 24%);
}

.np-popup-kicker {
    margin: 0 0 4px;
    color: rgba(242, 234, 211, 0.64);
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.np-popup h2 {
    margin: 0;
    color: var(--gold);
    font-size: 22px;
    line-height: 1.05;
    font-weight: 400;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.np-popup-close,
.np-icon-button {
    width: 36px;
    height: 36px;
    display: inline-grid;
    place-items: center;
    flex: 0 0 36px;
    padding: 0;
    border: 1px solid rgba(212, 175, 55, 0.55);
    background: rgba(0, 0, 0, 0.44);
    color: var(--gold);
    cursor: pointer;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 14px;
    text-decoration: none;
}

.np-popup-close {
    font-size: 26px;
    line-height: 1;
}

.np-popup-close:hover,
.np-icon-button:hover,
.np-popup-button:hover,
.np-option-card:hover {
    border-color: var(--gold);
    background: rgba(212, 175, 55, 0.10);
    color: var(--cream);
}

.np-reader-controls {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 7px;
    margin-left: auto;
}

.np-popup-body {
    flex: 1 1 auto;
    padding: 30px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(212, 175, 55, 0.72) rgba(255, 255, 255, 0.06);
}

.np-popup-body::-webkit-scrollbar {
    width: 10px;
}

.np-popup-body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.06);
}

.np-popup-body::-webkit-scrollbar-thumb {
    background: rgba(212, 175, 55, 0.72);
}

.np-popup-section {
    padding-bottom: 24px;
    margin-bottom: 24px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.18);
}

.np-popup-section:last-child {
    border-bottom: 0;
    margin-bottom: 0;
}

.np-popup h3,
.np-document-reader h3 {
    margin: 0 0 12px;
    color: var(--gold);
    font-size: 18px;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.np-popup p,
.np-popup li {
    color: #e4d8b3;
    font-size: 18px;
    line-height: 1.62;
}

.np-popup ul {
    padding-left: 22px;
}

.np-popup li::marker {
    color: var(--gold);
}

.np-popup-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
    align-items: center;
    padding: 14px 18px;
    border-top: 1px solid rgba(212, 175, 55, 0.32);
    background: rgba(5, 5, 5, 0.98);
}

.np-popup-button {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border: 1px solid rgba(212, 175, 55, 0.68);
    background: rgba(0, 0, 0, 0.26);
    color: var(--gold);
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    text-decoration: none;
}

.np-popup-button.primary {
    background: linear-gradient(180deg, #e6c24f, var(--gold));
    color: #050505;
}

.np-document-body {
    padding: 0;
    background:
        radial-gradient(circle at top right, rgba(212, 175, 55, 0.08), transparent 28rem),
        #080808;
}

.np-document-reader {
    max-width: 780px;
    margin: 0 auto;
    padding: 38px 34px 48px;
    font-size: var(--np-popup-font-size);
    line-height: var(--np-popup-line-height);
}

.np-document-label {
    color: var(--gold) !important;
    text-align: center;
    font-size: 12px !important;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.np-document-reader h1 {
    margin: 0 0 30px;
    color: var(--gold);
    font-size: clamp(30px, 2.5vw, 44px);
    line-height: 1.08;
    font-weight: 400;
    text-align: center;
    letter-spacing: 0.045em;
    text-transform: uppercase;
}

.np-document-reader section {
    padding: 22px 0;
    border-top: 1px solid rgba(212, 175, 55, 0.20);
}

.np-document-reader p {
    font-size: var(--np-popup-font-size);
    line-height: var(--np-popup-line-height);
}

.np-document-footer {
    justify-content: space-between;
}

.np-reader-status {
    display: grid;
    gap: 2px;
    margin-right: auto;
    color: var(--gold);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.np-reader-status span {
    color: rgba(242, 234, 211, 0.66);
    text-transform: none;
    letter-spacing: 0.03em;
}

.np-video-frame {
    width: 100%;
    aspect-ratio: 16 / 9;
    margin: 0 0 24px;
    overflow: hidden;
    border: 1px solid rgba(212, 175, 55, 0.48);
    background: #050505;
}

.np-video-frame video,
.np-video-frame iframe {
    width: 100%;
    height: 100%;
    display: block;
    border: 0;
    background: #050505;
}

.np-video-placeholder {
    height: 100%;
    display: grid;
    place-content: center;
    gap: 8px;
    text-align: center;
    color: var(--gold);
    background:
        radial-gradient(circle at center, rgba(212, 175, 55, 0.12), transparent 34%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(0, 0, 0, 0.48));
}

.np-video-placeholder strong {
    font-size: 20px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.np-video-placeholder span {
    color: rgba(242, 234, 211, 0.68);
    font-size: 13px;
}

.np-option-grid {
    display: grid;
    gap: 14px;
}

.np-option-card {
    display: grid;
    gap: 7px;
    width: 100%;
    padding: 18px;
    border: 1px solid rgba(212, 175, 55, 0.28);
    background: rgba(255, 255, 255, 0.025);
    color: var(--cream);
    text-align: left;
    cursor: pointer;
    font-family: Georgia, 'Times New Roman', serif;
}

.np-option-card strong {
    color: var(--gold);
    font-size: 14px;
    letter-spacing: 0.10em;
    text-transform: uppercase;
}

.np-option-card span {
    font-size: 14px;
    line-height: 1.35;
}

/* =========================================================
   EXACT POINT READER SIZE CONTROL
   A− / A / A+ move document text by exact 2pt steps.
   ========================================================= */

.np-document-reader,
.np-document-reader h1,
.np-document-reader h2,
.np-document-reader h3,
.np-document-reader h4,
.np-document-reader p,
.np-document-reader li,
.np-document-reader span,
.np-document-reader blockquote {
    font-size: var(--np-reader-font-size, 12pt) !important;
    line-height: 1.55 !important;
}

/* =========================================================
   RESPONSIVE POPUP CONTENT SPACING
   Spacing follows text size, popup size, and content type.
   ========================================================= */

.np-popup {
    --np-popup-space-xs: clamp(0.35rem, 0.55em, 0.65rem);
    --np-popup-space-sm: clamp(0.55rem, 0.85em, 0.95rem);
    --np-popup-space-md: clamp(0.85rem, 1.15em, 1.35rem);
    --np-popup-space-lg: clamp(1.1rem, 1.65em, 2rem);
}

.np-popup-body {
    padding: clamp(1rem, 2.4vw, 1.8rem);
    gap: var(--np-popup-space-md);
}

.np-popup-section {
    padding: clamp(0.8rem, 1.5vw, 1.25rem);
    margin-bottom: var(--np-popup-space-md);
}

.np-popup-section:last-child {
    margin-bottom: 0;
}

.np-popup h2,
.np-popup h3,
.np-popup p,
.np-popup li {
    margin-top: 0;
}

.np-popup h2 {
    margin-bottom: var(--np-popup-space-sm);
}

.np-popup h3 {
    margin-bottom: var(--np-popup-space-xs);
}

.np-popup p,
.np-popup ul,
.np-popup ol {
    margin-bottom: var(--np-popup-space-sm);
}

.np-popup p:last-child,
.np-popup ul:last-child,
.np-popup ol:last-child {
    margin-bottom: 0;
}

.np-popup-actions {
    gap: var(--np-popup-space-sm);
    padding: clamp(0.85rem, 1.8vw, 1.25rem);
}

.np-document-body {
    padding: clamp(0.8rem, 2vw, 1.5rem);
}

.np-document-reader {
    padding: clamp(0.9rem, 2vw, 1.6rem);
}

.np-document-reader section {
    margin-bottom: clamp(0.9em, 1.6vw, 1.6em);
    padding-bottom: clamp(0.65em, 1.1vw, 1.1em);
}

.np-document-reader h1 {
    margin-bottom: clamp(0.45em, 1vw, 0.8em);
}

.np-document-reader h3 {
    margin-bottom: clamp(0.35em, 0.8vw, 0.65em);
}

.np-document-reader p,
.np-document-reader li {
    margin-bottom: clamp(0.55em, 0.9vw, 0.9em);
}

.np-document-footer {
    gap: var(--np-popup-space-sm);
}

/* Stay Connected lightbox */
.np-popup-lightbox {
    width: min(560px, 92vw);
    min-width: 0;
    min-height: 0;
    max-height: 78vh;
    resize: none;
    background:
        linear-gradient(180deg, rgba(244, 234, 211, 0.98), rgba(229, 218, 190, 0.98)),
        #f4ead3;
    color: #15120a;
    border: 1px solid rgba(212, 175, 55, 0.92);
    box-shadow:
        0 20px 65px rgba(0, 0, 0, 0.48),
        0 0 0 1px rgba(255, 255, 255, 0.35) inset;
}

.np-popup-lightbox .np-popup-header {
    cursor: default;
    background:
        linear-gradient(90deg, rgba(212, 175, 55, 0.26), rgba(255, 255, 255, 0.18)),
        #eee0b9;
    border-bottom: 1px solid rgba(125, 91, 19, 0.45);
}

.np-popup-lightbox .np-popup-kicker,
.np-popup-lightbox .np-popup-section p {
    color: #4d432d;
}

.np-popup-lightbox h2,
.np-popup-lightbox h3 {
    color: #7d5b13;
}

.np-popup-lightbox .np-popup-mark,
.np-popup-lightbox .np-popup-close,
.np-popup-lightbox .np-popup-button {
    border-color: rgba(125, 91, 19, 0.65);
    color: #7d5b13;
    background: rgba(255, 255, 255, 0.42);
}

.np-popup-lightbox .np-popup-button.primary {
    background: #7d5b13;
    color: #f4ead2;
}

.np-stay-connected-form {
    display: grid;
    gap: 10px;
    margin-top: 12px;
}

.np-stay-connected-form label {
    display: grid;
    gap: 6px;
    color: #4d432d;
    font-weight: 700;
}

.np-stay-connected-form input,
.stay-connected-inline-form input {
    width: 100%;
    border: 1px solid rgba(125, 91, 19, 0.55);
    background: rgba(255, 255, 255, 0.72);
    color: #15120a;
    padding: 11px 12px;
    font: 700 15px Arial, Helvetica, sans-serif;
}

.np-stay-connected-message,
.stay-connected-inline-form span {
    min-height: 18px;
    color: #7d5b13;
    font-size: 13px;
    font-weight: 700;
}

/* BUILD LOG 8 — PUBLIC CHAPTER DIRECTORY POPUP */
.np-chapters-popup {
    width: min(980px, calc(100vw - 32px));
}

.chapters-directory-intro {
    border: 1px solid rgba(212, 175, 55, 0.22);
    background: rgba(0, 0, 0, 0.22);
    padding: 14px;
}

.chapters-directory-layout {
    display: grid;
    grid-template-columns: minmax(260px, 34%) minmax(0, 1fr);
    gap: 16px;
    min-height: 420px;
}

.chapters-directory-sidebar,
.chapters-directory-detail {
    border: 1px solid rgba(212, 175, 55, 0.28);
    background: rgba(0, 0, 0, 0.22);
    padding: 14px;
}

.chapters-directory-search-label {
    display: block;
    margin-bottom: 8px;
    color: #d4af37;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.chapters-directory-search {
    width: 100%;
    min-height: 38px;
    margin-bottom: 12px;
    border: 1px solid rgba(212, 175, 55, 0.44);
    background: #020303;
    color: #f2ead3;
    padding: 8px 10px;
}

.chapters-directory-list {
    display: grid;
    gap: 12px;
    max-height: 360px;
    overflow-y: auto;
    padding-right: 4px;
}

.chapters-directory-state h4 {
    margin: 0 0 8px;
    color: #d4af37;
    font-family: Georgia, serif;
    font-size: 15px;
    letter-spacing: 0.04em;
}

.chapters-directory-item {
    display: block;
    width: 100%;
    margin: 0 0 6px;
    border: 1px solid rgba(212, 175, 55, 0.24);
    background: rgba(255, 255, 255, 0.025);
    color: #f2ead3;
    text-align: left;
    padding: 9px 10px;
    cursor: pointer;
}

.chapters-directory-item:hover,
.chapters-directory-item:focus-visible {
    border-color: rgba(212, 175, 55, 0.72);
    outline: none;
}

.chapters-directory-item strong,
.chapters-directory-item span {
    display: block;
}

.chapters-directory-item strong {
    color: #f2ead3;
    font-size: 13px;
}

.chapters-directory-item span {
    margin-top: 3px;
    color: #aaa18b;
    font-size: 12px;
}

.chapters-directory-eyebrow {
    margin: 0 0 6px !important;
    color: #d4af37 !important;
    font-size: 12px !important;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.chapters-directory-facts {
    display: grid;
    gap: 8px;
    margin: 14px 0;
}

.chapters-directory-facts div {
    display: grid;
    grid-template-columns: 90px minmax(0, 1fr);
    gap: 10px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.14);
    padding-bottom: 8px;
}

.chapters-directory-facts dt {
    color: #d4af37;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.chapters-directory-facts dd {
    margin: 0;
    color: #f2ead3;
}

.chapters-directory-notice {
    border-left: 3px solid #d4af37;
    background: rgba(212, 175, 55, 0.08);
    color: #f2ead3;
    padding: 10px 12px;
    margin: 14px 0;
}

.chapters-directory-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.chapters-directory-empty {
    color: #aaa18b;
    font-size: 13px;
    line-height: 1.5;
}

@media screen and (max-width: 760px) {
    .chapters-directory-layout {
        grid-template-columns: 1fr;
    }

    .chapters-directory-list {
        max-height: 260px;
    }

    .chapters-directory-facts div {
        grid-template-columns: 1fr;
    }
}

/* BUILD LOG 8 — CHAPTERS POPUP INTERNAL SCROLL FIX */
.np-chapters-popup {
    max-height: calc(100vh - 64px);
    overflow: hidden;
}

.np-chapters-popup .np-popup-body {
    overflow: hidden;
}

.np-chapters-popup .chapters-directory-layout {
    min-height: 0;
    height: min(430px, calc(100vh - 310px));
}

.np-chapters-popup .chapters-directory-sidebar,
.np-chapters-popup .chapters-directory-detail {
    min-height: 0;
    overflow: hidden;
}

.np-chapters-popup .chapters-directory-list {
    max-height: none;
    height: calc(100% - 64px);
    overflow-y: auto;
}

@media screen and (max-width: 760px) {
    .np-chapters-popup {
        max-height: calc(100vh - 24px);
    }

    .np-chapters-popup .np-popup-body {
        overflow-y: auto;
    }

    .np-chapters-popup .chapters-directory-layout {
        height: auto;
    }

    .np-chapters-popup .chapters-directory-list {
        height: 240px;
    }
}

/* BUILD LOG 8 — CHAPTER STATE ACCORDION */
.chapters-directory-state {
    border: 1px solid rgba(212, 175, 55, 0.22);
    background: rgba(255, 255, 255, 0.018);
}

.chapters-directory-state h4 {
    display: none;
}

.chapters-directory-state-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    border: 0;
    border-bottom: 1px solid transparent;
    background: rgba(212, 175, 55, 0.07);
    color: #d4af37;
    cursor: pointer;
    font-family: Georgia, serif;
    font-size: 15px;
    font-weight: 900;
    letter-spacing: 0.04em;
    padding: 10px 11px;
    text-align: left;
}

.chapters-directory-state-toggle::before {
    content: "+";
    width: 16px;
    color: #f2ead3;
    font-weight: 900;
}

.chapters-directory-state.is-open .chapters-directory-state-toggle::before {
    content: "−";
}

.chapters-directory-state-toggle em {
    border: 1px solid rgba(212, 175, 55, 0.35);
    color: #f2ead3;
    font-size: 11px;
    font-style: normal;
    padding: 2px 6px;
}

.chapters-directory-state-counties {
    display: none;
    padding: 8px;
}

.chapters-directory-state.is-open .chapters-directory-state-counties {
    display: block;
}

.chapters-directory-state.is-open .chapters-directory-state-toggle {
    border-bottom-color: rgba(212, 175, 55, 0.22);
}

/* BUILD LOG 8 — CHAPTER MAP VIEW */
.chapters-directory-view-controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin: 10px 0 12px;
}

.chapters-directory-view-controls button,
.chapters-map-back {
    border: 1px solid rgba(212, 175, 55, 0.5);
    background: rgba(0, 0, 0, 0.35);
    color: #d4af37;
    cursor: pointer;
    font-family: Georgia, serif;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.06em;
    padding: 8px 10px;
    text-transform: uppercase;
}

.chapters-directory-view-controls button.is-active,
.chapters-directory-view-controls button:hover,
.chapters-map-back:hover {
    background: #d4af37;
    color: #050505;
}

.chapters-map-panel {
    display: grid;
    gap: 10px;
}

.chapters-map-note {
    color: #aaa18b !important;
    font-size: 13px !important;
    line-height: 1.35 !important;
    margin: 0 !important;
}

.chapters-state-map-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 7px;
}

.chapters-state-map-button,
.chapters-county-map-button {
    border: 1px solid rgba(212, 175, 55, 0.28);
    background:
        linear-gradient(135deg, rgba(212, 175, 55, 0.08), rgba(0, 0, 0, 0.28));
    color: #f2ead3;
    cursor: pointer;
    display: grid;
    gap: 3px;
    padding: 9px 10px;
    text-align: left;
}

.chapters-state-map-button:hover,
.chapters-state-map-button:focus-visible,
.chapters-county-map-button:hover,
.chapters-county-map-button:focus-visible {
    border-color: rgba(212, 175, 55, 0.78);
    outline: none;
}

.chapters-state-map-button strong,
.chapters-county-map-button strong {
    color: #d4af37;
    font-family: Georgia, serif;
    font-size: 14px;
}

.chapters-state-map-button span,
.chapters-state-map-button em,
.chapters-county-map-button span {
    color: #aaa18b;
    font-size: 12px;
    font-style: normal;
}

.chapters-state-map-button.has-chapters,
.chapters-county-map-button.has-chapter {
    border-color: rgba(212, 175, 55, 0.62);
    background:
        linear-gradient(135deg, rgba(212, 175, 55, 0.14), rgba(0, 0, 0, 0.28));
}

.chapters-map-state-title {
    margin: 2px 0 0 !important;
    color: #d4af37 !important;
    font-family: Georgia, serif;
    font-size: 17px !important;
    letter-spacing: 0.05em;
}

.chapters-county-map-grid {
    display: grid;
    gap: 7px;
}

@media screen and (max-width: 760px) {
    .chapters-directory-view-controls {
        grid-template-columns: 1fr;
    }
}

/* BUILD LOG 8 — REAL STATE TILE MAP */
.chapters-us-map {
    display: grid;
    grid-template-columns: repeat(14, minmax(26px, 1fr));
    grid-template-rows: repeat(7, 34px);
    gap: 5px;
    border: 1px solid rgba(212, 175, 55, 0.28);
    background:
        radial-gradient(circle at 50% 50%, rgba(212, 175, 55, 0.08), rgba(0, 0, 0, 0.18) 62%),
        rgba(0, 0, 0, 0.22);
    padding: 12px;
    min-height: 300px;
}

.chapters-us-state {
    border: 1px solid rgba(212, 175, 55, 0.42);
    background: rgba(0, 0, 0, 0.52);
    color: #d4af37;
    cursor: pointer;
    display: grid;
    align-items: center;
    justify-items: center;
    min-width: 0;
    padding: 2px;
}

.chapters-us-state:hover,
.chapters-us-state:focus-visible {
    background: #d4af37;
    color: #050505;
    outline: none;
}

.chapters-us-state.has-chapters {
    box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.55), 0 0 14px rgba(212, 175, 55, 0.18);
}

.chapters-us-state strong {
    font-family: Georgia, serif;
    font-size: 12px;
    line-height: 1;
}

.chapters-us-state span {
    color: inherit;
    font-size: 9px;
    line-height: 1;
    opacity: 0.78;
}

.chapters-county-map-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    max-height: 260px;
    overflow-y: auto;
    padding-right: 4px;
}

@media screen and (max-width: 760px) {
    .chapters-us-map {
        grid-template-columns: repeat(7, minmax(30px, 1fr));
        grid-auto-rows: 34px;
        overflow-x: auto;
    }

    .chapters-us-state {
        grid-row: auto !important;
        grid-column: auto !important;
    }
}

/* BUILD LOG 8 — RIGHT COLUMN REAL GEO MAP */
.chapters-map-stage {
    border: 1px solid rgba(212, 175, 55, 0.34);
    background:
        radial-gradient(circle at 50% 44%, rgba(212, 175, 55, 0.12), rgba(0, 0, 0, 0.18) 54%),
        #020303;
    padding: 10px;
    margin: 12px 0;
}

.chapters-map-stage.compact {
    margin-top: 6px;
}

.chapters-geo-map {
    display: block;
    width: 100%;
    height: auto;
    max-height: 440px;
}

.chapters-geo-county {
    fill: rgba(212, 175, 55, 0.14);
    stroke: rgba(212, 175, 55, 0.46);
    stroke-width: 0.42;
    cursor: pointer;
    transition: fill 120ms ease, stroke 120ms ease;
}

.chapters-geo-county:hover,
.chapters-geo-county:focus {
    fill: rgba(212, 175, 55, 0.62);
    stroke: rgba(245, 222, 137, 0.98);
}

.chapters-geo-county.has-chapter {
    fill: rgba(212, 175, 55, 0.34);
    stroke: rgba(245, 222, 137, 0.88);
}

.chapters-map-left {
    display: grid;
    gap: 8px;
}

.chapters-map-left-state {
    border: 1px solid rgba(212, 175, 55, 0.28);
    background:
        linear-gradient(135deg, rgba(212, 175, 55, 0.08), rgba(0, 0, 0, 0.28));
    color: #f2ead3;
    cursor: pointer;
    display: grid;
    gap: 3px;
    padding: 9px 10px;
    text-align: left;
}

.chapters-map-left-state:hover,
.chapters-map-left-state:focus-visible {
    border-color: rgba(212, 175, 55, 0.78);
    outline: none;
}

.chapters-map-left-state strong {
    color: #d4af37;
    font-family: Georgia, serif;
    font-size: 14px;
}

.chapters-map-left-state span,
.chapters-map-left-state em {
    color: #aaa18b;
    font-size: 12px;
    font-style: normal;
}

.chapters-directory-item.is-selected {
    border-color: rgba(212, 175, 55, 0.84);
    background: rgba(212, 175, 55, 0.12);
}

/* BUILD LOG 8 — CHAPTER MAP FIT FIX */
.chapters-map-stage {
    min-height: 360px;
}

.chapters-geo-map {
    min-height: 330px;
}

/* BUILD LOG 8 — NATIONAL MAP STATE-ONLY CLICK FIX */
.chapters-geo-state {
    fill: rgba(212, 175, 55, 0.15);
    stroke: rgba(212, 175, 55, 0.62);
    stroke-width: 0.8;
    cursor: pointer;
    transition: fill 120ms ease, stroke 120ms ease, filter 120ms ease;
}

.chapters-geo-state:hover,
.chapters-geo-state:focus {
    fill: rgba(212, 175, 55, 0.55);
    stroke: rgba(245, 222, 137, 0.98);
    filter: drop-shadow(0 0 6px rgba(212, 175, 55, 0.35));
}

.chapters-geo-state.has-chapter {
    fill: rgba(212, 175, 55, 0.28);
    stroke: rgba(245, 222, 137, 0.88);
}

/* In national map view, county paths should never be shown or clicked.
   County paths only appear after drilling into a selected state. */
.chapters-geo-map:not(.chapters-geo-map-state) .chapters-geo-county {
    pointer-events: none;
}

/* BUILD LOG 8 — NATIONAL MAP STATE-ONLY PATH FIX */
.chapters-geo-map-national .chapters-geo-county {
    display: none;
    pointer-events: none;
}

.chapters-geo-state {
    fill: rgba(212, 175, 55, 0.16);
    stroke: rgba(212, 175, 55, 0.72);
    stroke-width: 0.85;
    cursor: pointer;
    transition: fill 120ms ease, stroke 120ms ease, filter 120ms ease;
}

.chapters-geo-state:hover,
.chapters-geo-state:focus {
    fill: rgba(212, 175, 55, 0.56);
    stroke: rgba(245, 222, 137, 0.98);
    filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.38));
}

.chapters-geo-state.has-chapter {
    fill: rgba(212, 175, 55, 0.3);
    stroke: rgba(245, 222, 137, 0.92);
}

/* BUILD LOG 8 — CONTACT POPUP FORM */
.np-contact-popup {
    width: min(760px, calc(100vw - 32px));
}

.np-contact-popup form.np-popup-form {
    display: grid;
    gap: 14px;
}

.np-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.np-form-field {
    display: grid;
    gap: 6px;
}

.np-form-field span {
    color: #d4af37;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.np-form-field input,
.np-form-field select,
.np-form-field textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid rgba(212, 175, 55, 0.5);
    background: rgba(0, 0, 0, 0.45);
    color: #f2ead3;
    font-family: Georgia, serif;
    font-size: 15px;
    padding: 10px 11px;
}

.np-form-field textarea {
    min-height: 128px;
    resize: vertical;
}

.np-form-field em {
    min-height: 14px;
    color: #ffb0a8;
    font-size: 12px;
    font-style: normal;
}

.np-form-field-full {
    grid-column: 1 / -1;
}

.np-popup-form-message {
    border: 1px solid transparent;
    font-size: 14px;
    line-height: 1.4;
    min-height: 20px;
    padding: 8px 10px;
}

.np-popup-form-message[data-status="ok"] {
    border-color: rgba(120, 190, 120, 0.45);
    background: rgba(40, 110, 40, 0.14);
    color: #c8f5c8;
}

.np-popup-form-message[data-status="error"] {
    border-color: rgba(255, 120, 100, 0.45);
    background: rgba(140, 40, 30, 0.14);
    color: #ffb0a8;
}

.hidden-field {
    display: none;
}

@media screen and (max-width: 720px) {
    .np-form-grid {
        grid-template-columns: 1fr;
    }

    .np-contact-popup {
        width: calc(100vw - 20px);
    }
}

/* BUILD LOG 8 — CONTACT SECURE PORTAL PLACEHOLDER */
.np-form-field small {
    color: #b9ad8f;
    font-size: 12px;
    line-height: 1.35;
}

.np-secure-contact-panel {
    border: 1px solid rgba(212, 175, 55, 0.35);
    background: rgba(212, 175, 55, 0.06);
    padding: 14px;
}

.np-secure-contact-panel h4 {
    margin: 0 0 8px;
    color: #d4af37;
    font-size: 15px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.np-secure-contact-panel p {
    margin: 0 0 12px;
    color: #f2ead3;
    font-size: 14px;
    line-height: 1.45;
}

.np-secure-contact-panel button[disabled] {
    cursor: not-allowed;
    opacity: 0.58;
}
