/* Custom styles for Revised Acts / Classified List site */

/* Active nav button indicator */
.primary-nav .nav-button.is-active .nav-button-label {
    border-bottom: 3px solid #4e2683;
    padding-bottom: 2px;
}

/* Reduce top padding now that breadcrumbs are removed */
.wrapper-section.wrapper-section--white {
    padding-top: 2rem;
}

/* Sidebar navigation */
.sidebar-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-nav li {
    padding: 0.5rem 0;
}

.sidebar-nav li a {
    text-decoration: none;
    color: #333;
    display: block;
    padding-left: 1.4em;
    text-indent: -1.4em;
}

.sidebar-nav li a:hover {
    color: #4e2683;
}

.sidebar-nav li.is-active a {
    color: #4e2683;
    font-weight: 600;
}

.sidebar-nav .szicon-arrow-right {
    font-size: 1em;
    margin-right: 0.4rem;
    color: #4e2683;
}

/* Unnumbered item in numbered list context */
.sidebar-nav--unnumbered {
    list-style: none;
}

/* Numbered sidebar variant (Classified List) */
.sidebar-nav--numbered {
    list-style: decimal;
    padding-left: 1.8em;
}

.sidebar-nav--numbered li a {
    padding-left: 0;
    text-indent: 0;
}

.sidebar-nav--numbered li.is-active::marker {
    color: #4e2683;
    font-weight: 600;
}

/* Act-specific sidebar navigation */
.act-nav {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #ddd;
}

.act-nav-heading {
    font-size: 1.4rem;
    font-weight: 600;
    color: #4e2683;
    margin: 1.2rem 0 0.3rem;
}

.act-nav-heading:first-child {
    margin-top: 0;
}

.act-nav-external {
    font-size: 0.8em;
    color: #999;
    margin-left: 0.2em;
}

/* Section navigation links (prev/next) */
.navlinks {
    display: flex;
    justify-content: flex-end;
    gap: 1.5rem;
    padding: 1.25rem 1rem;
    background-color: var(--header-background-color, #4a2683);
}

.new-blue-header,
.banner-up-to-date,
.banner-not-up-to-date {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.navlinks a {
    color: white !important;
    text-decoration: none;
    white-space: nowrap;
}

.navlinks a:hover {
    text-decoration: underline;
}

/* On section pages, add space below the navlinks bar (front page doesn't need it because the hero block follows directly) */
.navlinks-section { margin-bottom: 1.5em }

/* Force the page font on all classlist intro content (overrides inline Verdana) */
.classlist-intro,
.classlist-intro * {
    font-family: inherit !important;
}

/* Classlist intro subheadings — style <p><strong> to match h5 */
.classlist-intro > p:has(> strong:only-child) {
    margin-top: 1.5em;
}
.classlist-intro > p > strong:only-child,
.classlist-intro > p > strong:only-child span {
    font-size: 20px !important;
    font-weight: 600;
    font-family: inherit !important;
    color: #4a2683;
}

/* Style the INTRODUCTION heading to match h2 */
.classlist-intro > p:first-child {
    text-transform: lowercase;
}
.classlist-intro > p:first-child > strong,
.classlist-intro > p:first-child > strong span {
    font-size: 2rem !important;
    font-family: inherit !important;
    color: #4a2683;
}
.classlist-intro > p:first-child::first-letter {
    text-transform: uppercase;
}

/* Compact the act front page hero block */
.new-blue-header {
    padding-top: 1cm !important;
    padding-bottom: 1cm !important;
}

