.nccn-library {
    margin: 1.5rem 0;
}

.nccn-login-required {
    padding: 1rem 1.25rem;
    border: 1px solid #d0d7de;
    border-radius: 8px;
    background: #f6f8fa;
}

.nccn-breadcrumbs {
    margin: 0 0 1rem;
    font-size: 0.95rem;
}

.nccn-breadcrumbs a {
    text-decoration: none;
}

.nccn-library-title {
    margin: 0.75rem 0 1rem;
}

.nccn-folder-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.75rem 1.5rem;
    margin: 0 0 1.5rem;
}

.nccn-folder-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    background: transparent;
}

.nccn-card-image,
.nccn-card-placeholder {
    width: 100%;
    aspect-ratio: 16 / 10;
    height: auto;
    object-fit: cover;
    border-radius: 14px;
}

.nccn-card-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1f4b73;
    color: #fff;
    font-size: 2rem;
    font-weight: 600;
}

.nccn-folder-description {
    margin: 0 0 1rem;
    white-space: pre-line;
}

.nccn-folder-title,
.nccn-folder-blurb,
.wp-block-post-content > .nccn-folder-title,
.wp-block-post-content > .nccn-folder-blurb {
    color: #fff;
    margin-block: 0;
    margin-inline: auto;
}

.nccn-folder-title {
    padding: 0 0 2rem;
    font-family: "Merriweather", Sans-serif;
    font-size: 72px;
    font-weight: 700;
    line-height: 72px;
    letter-spacing: 0.72px;
}

.nccn-folder-blurb {
    font-size: 1.05rem;
    line-height: 1.5;
}

.nccn-folder-title:has(+ .nccn-folder-blurb) {
    padding-bottom: 0.75rem;
}

.wp-block-post-content > .nccn-folder-title + .nccn-folder-blurb,
.nccn-folder-title + .nccn-folder-blurb {
    margin-block-start: 0;
    padding-top: 0.35rem;
}

.nccn-card-title {
    padding: 0.7rem 0.15rem 0;
    color: #157a78;
    font-weight: 500;
}

.nccn-library .dt-layout-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin: 0 0 1rem;
}

.nccn-library .dt-layout-row:last-child {
    margin: 1.25rem 0 0;
}

.nccn-library .dt-layout-row:has(.dt-paging) .dt-layout-cell {
    flex: 1 1 auto;
    width: 100%;
}

.nccn-library .dt-layout-cell {
    margin: 0;
}

.nccn-library .nccn-back,
.nccn-library .nccn-back:hover,
.nccn-library .nccn-back:focus,
.nccn-library .nccn-back:visited,
.nccn-library .nccn-back:active {
    display: inline-flex;
    align-items: center;
    padding: 0.7rem 1.15rem;
    border: 0;
    border-radius: 999px;
    background: #4b2068 !important;
    color: #fff !important;
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
}

.nccn-library .dt-search {
    margin: 0;
}

.nccn-library .dt-search .dt-input {
    width: 16rem;
    max-width: 100%;
    padding: 0.65rem 2.4rem 0.65rem 1rem;
    border: 1px solid #e4dce8;
    border-radius: 999px;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234b2068' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E") no-repeat right 0.85rem center / 1rem;
    color: #4b2068;
    font: inherit;
}

.nccn-library .dt-search .dt-input::placeholder {
    color: #b7a8c0;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 0.75rem;
}

.nccn-library table.dataTable {
    border: 0;
    border-collapse: collapse;
    margin: 0;
}

.nccn-library table.dataTable thead {
    display: none;
}

.nccn-library table.dataTable tbody td {
    border: 0;
    border-bottom: 1px solid #efe8f2;
    background: transparent;
    padding: 0.85rem 0.25rem;
    vertical-align: middle;
    box-shadow: none;
}

.nccn-file-name {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.nccn-file-mark {
    width: 3rem;
    height: 3rem;
    flex: 0 0 auto;
    border-radius: 50%;
    background: #f3e8f6;
}

.nccn-file-copy {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.nccn-file-title {
    color: #4b2068;
    font-weight: 600;
}

.nccn-file-size {
    color: #8d7a99;
    font-size: 0.85rem;
}

.nccn-file-actions {
    width: 1%;
    white-space: nowrap;
    text-align: right;
}

.nccn-library .nccn-file-actions .nccn-read,
.nccn-library .nccn-file-actions .nccn-download,
.nccn-library .nccn-file-actions .nccn-read:visited,
.nccn-library .nccn-file-actions .nccn-download:visited {
    display: inline-block;
    margin: 0 0 0 0.55rem;
    padding: 0.55rem 1rem;
    border: 0 !important;
    border-radius: 999px;
    background: #f3e8f6 !important;
    color: #4b2068 !important;
    text-decoration: none;
    cursor: pointer;
    font: inherit;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1.2;
    text-transform: uppercase;
    box-shadow: none;
}

.nccn-library .nccn-file-actions .nccn-read:hover,
.nccn-library .nccn-file-actions .nccn-read:focus,
.nccn-library .nccn-file-actions .nccn-read:active {
    background: #4b2068 !important;
    color: #fff !important;
}

.nccn-library .nccn-file-actions .nccn-download,
.nccn-library .nccn-file-actions .nccn-download:visited,
.nccn-library .nccn-file-actions .nccn-download:active {
    background: #4b2068 !important;
    color: #fff !important;
}

.nccn-library .nccn-file-actions .nccn-download:hover,
.nccn-library .nccn-file-actions .nccn-download:focus {
    background: rgba(75, 32, 104, 0.2) !important;
    color: #4b2068 !important;
}

.nccn-library div.dt-container .dt-paging,
.nccn-library div.dt-container .dt-paging nav {
    display: flex;
    align-items: center;
    width: 100%;
}

.nccn-library div.dt-container .dt-paging nav {
    gap: 0.25rem;
}

.nccn-library div.dt-container .dt-paging .dt-paging-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.1rem;
    height: 2.1rem;
    margin: 0;
    padding: 0 0.35rem;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #4b2068 !important;
    box-shadow: none;
    font-weight: 600;
    cursor: pointer;
}

.nccn-library div.dt-container .dt-paging .dt-paging-button.current,
.nccn-library div.dt-container .dt-paging .dt-paging-button.current:hover {
    background: #4b2068;
    border: 0;
    color: #fff !important;
}

.nccn-library div.dt-container .dt-paging .dt-paging-button.previous,
.nccn-library div.dt-container .dt-paging .dt-paging-button.next,
.nccn-library div.dt-container .dt-paging .dt-paging-button.previous.disabled,
.nccn-library div.dt-container .dt-paging .dt-paging-button.next.disabled,
.nccn-library div.dt-container .dt-paging .dt-paging-button.previous:hover,
.nccn-library div.dt-container .dt-paging .dt-paging-button.next:hover {
    padding: 0.55rem 1.15rem;
    background: #4b2068;
    border: 0;
    color: #fff !important;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.nccn-library div.dt-container .dt-paging .dt-paging-button.previous {
    margin-right: auto;
}

.nccn-library div.dt-container .dt-paging .dt-paging-button.next {
    margin-left: auto;
}

.nccn-library div.dt-container .dt-paging .dt-paging-button.disabled {
    opacity: 0.45;
    cursor: default;
}

@media (max-width: 640px) {
    .nccn-library .dt-layout-row:first-child {
        flex-direction: column;
        align-items: stretch;
    }

    .nccn-library .dt-search,
    .nccn-library .dt-search .dt-input {
        width: 100%;
    }

    .nccn-file-actions {
        white-space: normal;
    }
}

.nccn-pdf-pages {
    max-height: 70vh;
    overflow: auto;
    background: #525659;
    padding: 12px;
}

.nccn-pdf-pages canvas {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto 12px;
    background: #fff;
}

.nccn-pdf-status {
    margin: 0 0 0.75rem;
}

.nccn-login-menu {
    position: relative;
    display: inline-block;
}

.nccn-login-menu summary {
    cursor: pointer;
    list-style: none;
}

.nccn-login-menu summary::-webkit-details-marker {
    display: none;
}

.nccn-login-menu-list {
    position: absolute;
    z-index: 20;
    left: 0;
    min-width: 160px;
    margin-top: 0.25rem;
    padding: 0.35rem 0;
    background: #fff;
    border: 1px solid #d8d8d8;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.nccn-login-menu-list .nccn-login-link {
    display: block;
    padding: 0.4rem 0.75rem;
    text-decoration: none;
}

a.nccn-login-button,
span.nccn-login-button {
    display: inline-block !important;
    padding: 0.95rem 2.4rem;
    border: 0;
    border-radius: 999px;
    background: #006f98 !important;
    color: #fff !important;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1.2;
    text-align: center;
    text-decoration: none !important;
    text-transform: uppercase;
}

a.nccn-login-button:hover,
a.nccn-login-button:focus,
a.nccn-login-button:visited,
a.nccn-login-button:active {
    background: #006f98 !important;
    color: #fff !important;
    text-decoration: none !important;
}

a.nccn-login-button:hover,
a.nccn-login-button:focus {
    background: #00587a !important;
}

.nccn-login-form label {
    display: block;
    margin: 0 0 0.25rem;
    font-weight: 600;
}

.nccn-login-form input[type="text"],
.nccn-login-form input[type="password"] {
    width: 100%;
    max-width: 320px;
}

.nccn-login-form button {
    padding: 0.45rem 0.9rem;
    border: 0;
    border-radius: 4px;
    background: #157a78;
    color: #fff;
    cursor: pointer;
}

.nccn-login-error {
    color: #8a1f11;
}

.nccn-login-remember label {
    font-weight: 400;
}

.nccn-portal-login {
    background: #fcf6ff;
    padding: 1.5rem 0 0 0;
}

.nccn-portal-login .nccn-login-field {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0 0 1rem;
    padding: 0.85rem 1.4rem;
    background: #fff;
    border-radius: 999px;
}

.nccn-portal-login .nccn-login-field:focus-within {
    outline: 2px solid #46205c;
    outline-offset: 2px;
}

.nccn-portal-login .nccn-login-field label {
    margin: 0;
    color: #1a1a1a;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
    font-size: 0.75rem;
}

.nccn-portal-login .nccn-login-field input[type="text"],
.nccn-portal-login .nccn-login-field input[type="password"] {
    flex: 1 1 auto;
    width: auto;
    max-width: none;
    margin: 0;
    padding: 0;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none;
    color: #1a1a1a;
}

.nccn-portal-login .nccn-login-field input:focus {
    outline: none;
    box-shadow: none;
}

.nccn-portal-login .nccn-login-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 0.35rem;
}

.nccn-portal-login .nccn-lost-password,
.nccn-portal-login .nccn-lost-password:hover,
.nccn-portal-login .nccn-lost-password:focus,
.nccn-portal-login .nccn-lost-password:visited,
.nccn-portal-login .nccn-lost-password:active {
    color: #1a1a1a !important;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-decoration: none !important;
    text-transform: uppercase;
    font-size: 0.75rem;
}

.nccn-folder-intro {
    margin: 0 0 1.75rem;
}

.nccn-folder-subtext > :first-child {
    margin-top: 0;
}

.nccn-folder-subtext > :last-child {
    margin-bottom: 0;
}

a.nccn-folder-button,
a.nccn-folder-button:hover,
a.nccn-folder-button:focus,
a.nccn-folder-button:visited,
a.nccn-folder-button:active {
    display: inline-block !important;
    margin-top: 1rem;
    padding: 0.85rem 1.6rem;
    border-radius: 999px;
    background: #46205c !important;
    color: #fff !important;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1.2;
    text-decoration: none !important;
    text-transform: uppercase;
}

a.nccn-folder-button:hover,
a.nccn-folder-button:focus {
    background: #351848 !important;
    color: #fff !important;
}

.nccn-portal-login button,
.nccn-portal-login button:hover,
.nccn-portal-login button:focus,
.nccn-portal-login button:visited,
.nccn-portal-login button:active {
    display: inline-block;
    width: auto;
    margin: 0;
    padding: 0.85rem 1.6rem;
    border: 0;
    border-radius: 999px;
    background: #46205c !important;
    color: #fff !important;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1.2;
    text-transform: uppercase;
    cursor: pointer;
}

.nccn-portal-login button:hover,
.nccn-portal-login button:focus {
    background: #351848 !important;
}

.nccn-dashboard {
    max-width: 720px;
    padding: 1.5rem 0;
    background: #fcf6ff;
}

.nccn-dashboard .nccn-login-field {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0 0 1rem;
    padding: 0.85rem 1.4rem;
    background: #fff;
    border-radius: 999px;
    font-size: 0.75rem;
}

.nccn-dashboard .nccn-login-field:focus-within {
    outline: 2px solid #46205c;
    outline-offset: 2px;
}

.nccn-dashboard .nccn-login-field label {
    margin: 0;
    color: #1a1a1a;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
    font-size: 0.75rem;
    }

.nccn-dashboard .nccn-login-field input[type="text"],
.nccn-dashboard .nccn-login-field input[type="password"] {
    flex: 1 1 auto;
    width: auto;
    max-width: none;
    margin: 0;
    padding: 0;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none;
    color: #1a1a1a;
}

.nccn-dashboard .nccn-login-field input:focus {
    outline: none;
    box-shadow: none;
}

.nccn-dashboard-save {
    display: flex;
    justify-content: flex-end;
    margin: 0.35rem 0 0;
}

.nccn-dashboard-form button,
.nccn-dashboard-form button:hover,
.nccn-dashboard-form button:focus,
.nccn-dashboard-form button:visited,
.nccn-dashboard-form button:active {
    display: inline-block;
    width: auto;
    margin: 0;
    padding: 0.85rem 1.6rem;
    border: 0;
    border-radius: 999px;
    background: #46205c !important;
    color: #fff !important;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1.2;
    text-transform: uppercase;
    cursor: pointer;
}

.nccn-dashboard-form button:hover,
.nccn-dashboard-form button:focus {
    background: #351848 !important;
}

.nccn-tab-input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

.nccn-dashboard-nav {
    display: flex;
    gap: 0.75rem;
    margin: 0 0 1.25rem;
}

.nccn-dashboard-nav label {
    margin: 0;
    padding: 0.7rem 1.15rem;
    border-radius: 999px;
    color: #1a1a1a;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
}

#nccn-tab-name:checked ~ .nccn-dashboard-nav label[for="nccn-tab-name"],
#nccn-tab-password:checked ~ .nccn-dashboard-nav label[for="nccn-tab-password"],
#nccn-tab-roles:checked ~ .nccn-dashboard-nav label[for="nccn-tab-roles"] {
    background: #46205c;
    color: #fff;
}

.nccn-dashboard-panel {
    display: none;
}

#nccn-tab-name:checked ~ .nccn-panel-name,
#nccn-tab-password:checked ~ .nccn-panel-password,
#nccn-tab-roles:checked ~ .nccn-panel-roles {
    display: block;
}

.nccn-dashboard-roles {
    margin: 0.25rem 0 0;
    padding-left: 1.25rem;
    color: #1a1a1a;
    list-style: disc;
}

.nccn-dashboard-roles li {
    margin: 0 0 0.45rem;
}

p.nccn-dashboard-roles {
    padding-left: 0;
    list-style: none;
}

.nccn-parent-folders {
    margin: 1.5rem 0;
}

.nccn-parent-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.75rem 1.5rem;
    align-items: stretch;
}

.nccn-parent-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-width: 0;
}

.nccn-parent-media {
    display: block;
    margin: 0;
}

.nccn-parent-image,
.nccn-parent-placeholder {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    height: auto;
    object-fit: cover;
    border-radius: 14px;
}

.nccn-parent-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1f4b73;
    color: #fff;
    font-size: 2rem;
    font-weight: 600;
}

.nccn-parent-title {
    margin: 0;
    padding: 0.7rem 0.15rem 0;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.3;
}

.nccn-parent-title a,
.nccn-parent-title a:hover,
.nccn-parent-title a:focus,
.nccn-parent-title a:visited {
    color: #157a78 !important;
    text-decoration: none !important;
}

.nccn-parent-description {
    margin: 0.35rem 0.15rem 0;
    color: #3d3d3d;
    font-size: 0.98rem;
    line-height: 1.45;
}

.nccn-read-more,
.nccn-read-more:hover,
.nccn-read-more:focus,
.nccn-read-more:visited {
    margin-top: auto;
    padding-top: 0.85rem;
    color: #157a78 !important;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none !important;
}

@media (max-width: 1100px) {
    .nccn-parent-grid,
    .nccn-folder-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .nccn-parent-grid,
    .nccn-folder-grid {
        grid-template-columns: 1fr;
    }
}
