/* Lightweight enhancement layer.
   Main visual system is intentionally kept in style.css for WordPress compatibility. */

body.admin-bar .entry-sidebar__sticky {
    inset-block-start: calc(1rem + 32px);
}

.no-js .primary-nav {
    display: block;
}


/* File library shell */
.acusa-file-library-shell {
  max-width: 1460px;
  margin: 0 auto;
  padding: 28px 24px 48px;
}
.entry-main--file-library-shell,
.entry-content--file-library-shell {
  margin: 0;
}
.entry-content--file-library-shell > :first-child {
  margin-top: 0;
}
body.acusa-file-library-page .entry-main__card,
body.acusa-file-library-page .entry-header,
body.acusa-file-library-page .acusa-card.entry-main__card {
  box-shadow: none;
  background: transparent;
  border: 0;
  padding: 0;
}
@media (max-width: 782px) {
  .acusa-file-library-shell {
    padding: 18px 14px 28px;
  }
}


.site-footer__social-strip {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.9rem;
}

.site-footer__social-link {
    width: 60px;
    height: 60px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.16);
    backdrop-filter: blur(8px);
    transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
    overflow: hidden;
}

.site-footer__social-link:hover,
.site-footer__social-link:focus-visible {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.22);
}

.site-footer__social-image {
    display: block;
    width: 40px;
    height: 40px;
    object-fit: contain;
}

@media (max-width: 782px) {
    .site-footer__social-link {
        width: 54px;
        height: 54px;
        border-radius: 16px;
    }

    .site-footer__social-image {
        width: 36px;
        height: 36px;
    }
}


.acusa-file-library-header {
  margin-block-end: 1rem;
  padding: 1.2rem 1.25rem;
}

.acusa-file-library-title {
  margin: 0.35rem 0 0;
}

.acusa-file-library-intro {
  margin: 0.65rem 0 0;
  color: var(--acusa-muted);
  max-inline-size: 72ch;
}

.acusa-file-library-shell__autoload,
.acusa-file-library-shell__autoload .dataTables_wrapper,
.acusa-file-library-shell__autoload .document-library,
.acusa-file-library-shell__autoload .posts-data-table,
.acusa-file-library-shell__autoload .wp-block-table,
.acusa-file-library-shell__autoload .table-wrap {
  max-inline-size: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.acusa-file-library-shell table {
  min-inline-size: 760px;
}

.acusa-file-library-shell th,
.acusa-file-library-shell td {
  white-space: normal;
  word-break: break-word;
}

body.acusa-mobile-nav-open {
  overflow: hidden;
}

.site-footer__bottom-inner {
  gap: 0.75rem;
}

@media (max-width: 782px) {
  .acusa-file-library-shell table {
    min-inline-size: 640px;
  }
}


/* =========================================================
   Mobile & Tablet Polish (v52)
========================================================= */
.site,
.site-header,
.site-main,
.site-footer {
    overflow-x: clip;
}

.footer-menu a,
.site-footer__links a,
.topbar-menu a,
.primary-nav a,
.acusa-btn,
.site-footer__cta,
.home-action-card__btn {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.breadcrumbs,
.entry-summary,
.site-description,
.site-footer__brand-text,
.home-action-card p,
.home-latest-news__excerpt,
.acusa-post-card__excerpt,
.entry-content,
.acusa-single-news-post .entry-content--news,
.acusa-single-portal-post .entry-content--news {
    overflow-wrap: anywhere;
}

@media (min-width: 960px) and (max-width: 1199px) {
    .site-header__shell {
        padding-block: 0.85rem 0.9rem;
    }

    .primary-nav .menu {
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
        padding-inline: 0.35rem;
    }

    .primary-nav .menu::-webkit-scrollbar {
        display: none;
    }

    .primary-nav .menu > li {
        flex: 0 0 auto;
    }

    .primary-nav .menu > li > a,
    .primary-nav .page_item > a {
        padding: 0.78rem 0.82rem;
        font-size: 0.95rem;
    }
}

@media (max-width: 1024px) {
    .entry-content-wrap,
    .acusa-single-news-post .entry-content-wrap--news,
    .acusa-single-portal-post .entry-content-wrap--news {
        grid-template-columns: 1fr;
    }

    .entry-sidebar,
    .acusa-single-news-post .entry-sidebar--news,
    .acusa-single-portal-post .entry-sidebar--news {
        order: 2;
    }

    .entry-main,
    .acusa-single-news-post .entry-main--news,
    .acusa-single-portal-post .entry-main--news {
        order: 1;
    }

    .entry-sidebar__sticky {
        position: static;
        inset-block-start: auto;
    }

    .home-actions,
    .directory-grid,
    .archive-grid,
    .related-posts-grid,
    .video-library-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-file-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-actions--footer .home-action-card:last-child,
    .site-footer__panel:last-child {
        grid-column: 1 / -1;
    }

    .site-footer__nav-panels {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 768px) and (max-width: 1099px) {
    .site-branding img {
        max-inline-size: 56px;
    }

    .site-description {
        max-inline-size: 42ch;
    }

    .home-top-layout {
        grid-template-columns: 1fr;
    }

    .home-side-rail__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-video-spotlight {
        grid-column: 1 / -1;
    }

    .home-latest-news {
        grid-template-columns: 1fr;
    }

    .home-latest-news__list {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.95rem;
    }

    .home-latest-news__list .acusa-post-card {
        min-block-size: 100%;
    }

    .home-action-card {
        min-block-size: 220px;
    }

    .home-action-card h3 {
        font-size: clamp(1.15rem, 1.9vw, 1.45rem);
    }

    .home-portal-tabs__list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-portal-tabs__item {
        min-block-size: 100%;
    }

    .site-footer__cta-row {
        gap: 0.65rem;
    }
}

@media (max-width: 959px) {
    .site-header__shell {
        padding-block: 0.7rem 0.8rem;
    }

    .site-header__main {
        gap: 0.8rem;
    }

    .site-branding {
        align-items: flex-start;
        gap: 0.8rem;
    }

    .site-branding img {
        max-inline-size: 56px;
        border-radius: 15px;
    }

    .site-branding__text {
        max-inline-size: min(100%, 44ch);
    }

    .primary-nav {
        max-block-size: min(72vh, 560px);
        overflow: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
    }

    .primary-nav .menu {
        padding: 0.5rem;
    }

    .primary-nav .menu > li > a,
    .primary-nav .page_item > a {
        min-block-size: 48px;
        padding: 0.88rem 0.95rem;
    }

    .primary-nav .sub-menu,
    .primary-nav .children {
        margin-inline-start: 0.2rem;
    }

    .primary-nav .sub-menu a,
    .primary-nav .children a {
        min-block-size: 44px;
        display: flex;
        align-items: center;
    }
}

@media (max-width: 767px) {
    .acusa-container {
        inline-size: min(100% - 1rem, var(--acusa-container));
    }

    .site-main {
        padding-block: 0.9rem 2.25rem;
    }

    .site-branding img {
        max-inline-size: 50px;
    }

    .site-title {
        font-size: 1.32rem;
        line-height: 1.18;
    }

    .site-description {
        max-inline-size: 30ch;
        font-size: 0.86rem;
        line-height: 1.55;
    }

    .menu-toggle {
        inline-size: 46px;
        block-size: 46px;
        border-radius: 13px;
    }

    .section-title {
        flex-direction: column;
        align-items: flex-start;
    }

    .section-title__cta {
        white-space: normal;
    }

    .home-side-rail__grid,
    .home-actions,
    .directory-grid,
    .archive-grid,
    .related-posts-grid,
    .video-library-grid,
    .home-file-grid,
    .site-footer__nav-panels {
        grid-template-columns: 1fr;
    }

    .home-latest-news {
        grid-template-columns: 1fr;
    }

    .home-latest-news__featured,
    .acusa-post-card,
    .home-action-card,
    .site-footer__panel,
    .site-footer__brand-card,
    .entry-main__card,
    .entry-sidebar__card,
    .archive-card,
    .page-card,
    .video-library-featured {
        border-radius: 22px;
    }

    .home-action-card {
        min-block-size: auto;
        padding: 1rem 1rem 1.05rem;
    }

    .home-action-card h3 {
        font-size: 1.18rem;
    }

    .home-action-card p {
        font-size: 0.95rem;
        line-height: 1.8;
    }

    .home-action-card__btn,
    .site-footer__cta,
    .search-form.acusa-search-form .search-submit,
    .wp-block-search__button,
    .search-submit {
        width: 100%;
        justify-content: center;
    }

    .home-portal-tabs {
        padding: 0.85rem;
    }

    .home-portal-tabs__nav {
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
        padding-block-end: 0.2rem;
    }

    .home-portal-tabs__nav::-webkit-scrollbar {
        display: none;
    }

    .home-portal-tabs__button {
        white-space: nowrap;
        flex: 0 0 auto;
        padding: 0.8rem 1rem;
    }

    .home-portal-tabs__item {
        grid-template-columns: 102px minmax(0, 1fr);
        gap: 0.75rem;
        min-block-size: 88px;
    }

    .home-portal-tabs__thumb {
        inline-size: 102px;
    }

    .entry-main__card,
    .entry-sidebar__card,
    .archive-card,
    .page-card {
        padding: 0.88rem;
    }

    .entry-title,
    .error-404__hero .entry-title {
        font-size: clamp(1.55rem, 7vw, 2.08rem);
        line-height: 1.35;
    }

    .acusa-single-news-post .entry-title,
    .acusa-single-portal-post .entry-title {
        font-size: clamp(1.7rem, 7.2vw, 2.2rem);
        line-height: 1.38;
    }

    .acusa-single-news-post .entry-summary,
    .acusa-single-portal-post .entry-summary {
        font-size: 1rem;
        line-height: 1.85;
    }

    .entry-content,
    .acusa-single-news-post .entry-content--news,
    .acusa-single-portal-post .entry-content--news {
        font-size: 1rem;
        line-height: 1.98;
    }

    .entry-content table th,
    .entry-content table td,
    .acusa-single-news-post .entry-content--news table th,
    .acusa-single-news-post .entry-content--news table td,
    .acusa-single-portal-post .entry-content--news table th,
    .acusa-single-portal-post .entry-content--news table td {
        padding: 0.65rem 0.7rem;
        font-size: 0.94rem;
    }

    .breadcrumbs {
        font-size: 0.88rem;
        line-height: 1.8;
    }

    .site-footer__top {
        padding-block: 2rem 1.1rem;
    }

    .site-footer__brand-card,
    .site-footer__panel {
        padding: 1.05rem;
    }

    .site-footer__brand-title {
        font-size: 1.8rem;
    }

    .site-footer__brand-text {
        font-size: 0.95rem;
        line-height: 1.85;
    }

    .site-footer__cta-row,
    .site-footer__social-strip,
    .footer-menu {
        justify-content: center;
    }

    .site-footer__social-link {
        width: 50px;
        height: 50px;
        border-radius: 15px;
    }

    .site-footer__social-image {
        width: 34px;
        height: 34px;
    }

    .site-footer__bottom {
        padding-block: 0.9rem 1.2rem;
    }

    .site-info {
        text-align: center;
        font-size: 0.92rem;
    }
}


/* v60.6: archive cleanup + expanded ad placements */
.generic-archive-layout {
  align-items: start;
}

.generic-archive-header {
  margin-block-end: 1rem;
}

.generic-archive-top-ad,
.page-inline-ad,
.file-library-inline-ad,
.video-library-inline-ad,
.video-single-inline-ad {
  margin-block: 0 1rem;
}

.page-inline-ad:last-child,
.file-library-inline-ad:last-child,
.video-library-inline-ad:last-child,
.video-single-inline-ad:last-child {
  margin-block-end: 0;
}

.acusa-ad-slot:empty,
.generic-archive-top-ad:empty,
.page-inline-ad:empty,
.file-library-inline-ad:empty,
.video-library-inline-ad:empty,
.video-single-inline-ad:empty,
.section-space:empty {
  display: none;
}

.generic-archive-stream .news-stream-card {
  grid-template-columns: 168px minmax(0, 1fr);
}

.video-library-inline-ad .acusa-ad-slot,
.file-library-inline-ad .acusa-ad-slot,
.generic-archive-top-ad .acusa-ad-slot {
  margin-inline: auto;
}

@media (max-width: 959px) {
  .generic-archive-layout {
    gap: 0.95rem;
  }
}

@media (max-width: 767px) {
  .generic-archive-main {
    order: 1;
  }

  .generic-archive-sidebar {
    order: 2;
  }

  .generic-archive-stream .news-stream-card {
    grid-template-columns: 108px minmax(0, 1fr);
  }

  .generic-archive-header {
    padding: 0.95rem 1rem;
  }

  .video-library-inline-ad,
  .file-library-inline-ad,
  .page-inline-ad,
  .video-single-inline-ad {
    margin-block: 0.75rem 0.9rem;
  }
}


/* =========================================================
   Global typography alignment (v1.22.0)
========================================================= */
:root {
    --acusa-article-font-size: 1.24rem;
    --acusa-article-font-size-mobile: 1.1rem;
    --acusa-page-font-size: 1.08rem;
    --acusa-page-font-size-mobile: 1.02rem;
}

body,
.entry-content,
.entry-content p,
.entry-content li,
.entry-content ol,
.entry-content ul,
.entry-content blockquote,
.entry-summary,
.archive-description,
.archive-card__excerpt,
.news-stream-card__excerpt,
.home-latest-news__excerpt,
.acusa-post-card__excerpt,
.portal-link p,
.home-hero__excerpt,
.page-card p,
.widget p,
.widget li,
.site-footer__brand-text,
.searchform input,
input,
textarea,
select {
    font-family: var(--acusa-font-body);
}

h1, h2, h3, h4, h5, h6,
.site-title,
.entry-title,
.widget-title,
.section-title,
.block-title,
.entry-section-heading,
.home-hero__title,
.home-section-title,
.archive-hero h1,
.archive-card__title,
.acusa-post-card__title,
.news-stream-card__title,
.portal-link h3,
.related-posts-titles a,
.entry-sidebar-news-list__content a,
.entry-sidebar-text-list a,
.news-side-card__title,
.news-side-list a,
.news-side-nav a,
.primary-nav a,
.topbar-menu a,
.footer-menu a,
.site-footer__links a,
.menu a,
.sub-menu a,
button,
input[type="submit"],
input[type="button"],
.wp-block-button__link,
.acusa-btn,
.entry-news-tag,
.tagcloud a,
.tag-links a,
.acusa-meta,
.entry-meta,
.post-meta,
.byline,
.post-date,
.breadcrumbs,
.page-numbers,
.entry-news-kicker {
    font-family: var(--acusa-font-ui);
}

.entry-content,
.entry-content p,
.entry-content li,
.entry-content ol,
.entry-content ul,
.entry-content blockquote,
.entry-content table,
.entry-summary,
.archive-description,
.acusa-post-card__excerpt,
.news-stream-card__excerpt,
.home-latest-news__excerpt,
.portal-link p,
.home-hero__excerpt,
.page-card p {
    font-size: var(--acusa-page-font-size);
    line-height: 2;
}

.acusa-single-news-post .entry-summary,
.acusa-single-portal-post .entry-summary {
    font-family: var(--acusa-font-body);
    font-size: 1.16rem;
    line-height: 2;
}

.acusa-single-news-post .entry-title,
.acusa-single-portal-post .entry-title {
    font-family: var(--acusa-font-ui);
    font-size: clamp(2.15rem, 3vw, 3.18rem);
    line-height: 1.34;
}

.acusa-single-news-post .entry-content--news,
.acusa-single-portal-post .entry-content--news {
    font-family: var(--acusa-font-body);
    font-size: var(--acusa-article-font-size);
    line-height: 2.12;
    color: #1f2937;
}

.acusa-single-news-post .entry-content--news p,
.acusa-single-news-post .entry-content--news li,
.acusa-single-portal-post .entry-content--news p,
.acusa-single-portal-post .entry-content--news li {
    font-size: inherit;
    line-height: inherit;
}

.acusa-single-news-post .entry-content--news h2,
.acusa-single-news-post .entry-content--news h3,
.acusa-single-news-post .entry-content--news h4,
.acusa-single-portal-post .entry-content--news h2,
.acusa-single-portal-post .entry-content--news h3,
.acusa-single-portal-post .entry-content--news h4,
.entry-content h2,
.entry-content h3,
.entry-content h4 {
    font-family: var(--acusa-font-ui);
    line-height: 1.5;
}

.entry-news-tag::before,
.tagcloud a::before,
.tag-links a::before {
    content: none !important;
}

.entry-news-tag,
.tagcloud a,
.tag-links a {
    font-family: var(--acusa-font-ui);
}

@media (max-width: 1024px) {
    .entry-content,
    .entry-content p,
    .entry-content li,
    .entry-summary,
    .archive-description,
    .acusa-post-card__excerpt,
    .news-stream-card__excerpt,
    .home-latest-news__excerpt,
    .portal-link p,
    .home-hero__excerpt,
    .page-card p {
        font-size: var(--acusa-page-font-size-mobile);
    }

    .acusa-single-news-post .entry-content--news,
    .acusa-single-portal-post .entry-content--news {
        font-size: var(--acusa-article-font-size-mobile);
        line-height: 2;
    }

    .acusa-single-news-post .entry-summary,
    .acusa-single-portal-post .entry-summary {
        font-size: 1.06rem;
    }
}

