/*
 Theme Name:   Bricks Child Theme
 Theme URI:    https://bricksbuilder.io/
 Description:  Use this child theme to extend Bricks.
 Author:       Bricks
 Author URI:   https://bricksbuilder.io/
 Template:     bricks
 Version:      1.1
 Text Domain:  bricks
*/

p {
    text-align: justify;
}
.protected {
    background: #770000 !important;
}
#brxe-dotjcu .bricks-nav-menu > li > .brx-submenu-toggle > *,
#brxe-dotjcu .bricks-nav-menu > li > a {
    color: var(--base-semi-dark) !important;
    font-family: "Work Sans";
}
.fa-star, .fa-star-half-o {
    color: #fbc600 !important;
    font-size: 1.3em !important;
    margin-right: .25em;
}
.fa-star-o {
    color: #ccc !important;
    font-size: 1.3em !important;
    margin-right: .215em;
}
.ds-article-card__categories-code a {
    background: var(--primary);
    color: #fff;
    padding: .15em .3em;
}
.ds-article-card__preamble-text p {
    margin: 0;
}
.ds-article-card__preamble-text a {
    color: #121212;
    text-decoration: underline;
}

.ds-article-card__post-thumbnail.brxe-code img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
    border-radius: 0;
}
.ds-cpt-section--2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--gap-m);
}

.ds-cpt-section--2col h2 {
    grid-column: 1 / -1;
}
.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}
/* If the article card has the 'square' attribute, crop its child image */
[data-crop="square"] img {
    aspect-ratio: 1 / 1;
    object-fit: cover;
    width: 100%;
}

/* If the article card has the 'horizontal' attribute, crop its child image */
[data-crop="horizontal"] img {
    aspect-ratio: 16 / 9;
    object-fit: cover;
    width: 100%;
}
.fr-nav-alpha .bricks-nav-menu > li.menu-item-has-children > .brx-submenu-toggle button[aria-expanded] {

    font-size: .75em !important;
    
}
.content-grid .ds-home-section-title {
    max-width: var(--content-width);
    margin-inline: auto;
    grid-column: content;
}
.ds-home-section-title {
    border-bottom: 1px solid #000;
}
h1.ds-single-page-title {
    font-size: var(--h3);
}
h1.ds-archive-page-title {
    font-size: var(--h2);

}
h2.ds-archive-card-title {
    font-size: var(--h3);
}
/*HOME PAGE LAYOUT GRIDS*/
.ds-home-cpt-sections {
    width: 100%;
    max-width: calc(var(--content-width) * 0.67);
    margin-inline: auto;
}
.ds-home-cpt-sections[data-card-layout="2-col"] {
    max-width: 100%;
}

[data-card-layout="2-col"] > div {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: calc(var(--space-l) * 0.6);
    margin-inline: auto;
}
[data-card-layout="2-col"] > div {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
}
[data-card-layout="2-col"] > div > h2 {
    grid-column: 1 / -1;
}

[data-card-layout="2-col"] .ds-article-card__thumbnail-column {
    display: none;
}

.ds-home-section-title {
    grid-column: 1 / -1;
    width: 100%;
}

.ds-home-cpt-sections > div > h2.ds-home-section-title {
    width: 100vw;
    max-width: var(--content-width);
    margin-inline: auto;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}
/* Hides CPT sections */
[data-display="hide"] {
    display: none;
}
.ds-home-favorite-sites__grid .bricks-button {
    display: flex;
    width: 100%;
}
.ds-home-favorite-sites__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-xs);
}
.ds-home-favorite-sites__query-loop {
    width: auto;
    display: flex;
}

.ds-home-favorite-sites__query-loop .bricks-button {
    flex: 1;
}
.ds-icon__pdf::before {
    content: url('/wp-content/uploads/2026/04/noun-pdf-2996524.svg');
    display: inline-block;
    vertical-align: middle;
    margin-right: 5px;
    width: 23px;
    position: relative;
    top: 0px;
}
.ds-icon__url::before {
  content: url('/wp-content/uploads/2026/04/ds-noun-external-1609302.svg');
  display: inline-block;
  vertical-align: middle;
  margin-right: 5px;
  width: 17px;
  position: relative;
  top: 0px;
}
.ds-icon__video::before {
    content: url('/wp-content/uploads/2026/04/noun-youtube-5288426.svg');
    display: inline-block;
    vertical-align: middle;
    margin-right: 5px;
    width: 25px;
    position: relative;
    top: 0px;
}
.ds-read-more__links a {
    color: var(--text-dark);
    font-size: calc(var(--text-l)*.9);
    text-decoration: underline;
}
.ds-read-more__links {
  display: flex;
  flex-direction: column; /* Stack them vertically */
  gap: var(--paragraph-spacing);              /* Space only appears between items */
}

/* Hide the <br> tags so they don't add extra accidental spacing */
.ds-read-more__links br {
  display: none;
}

/* M E D I A    Q U E R I E S */

@media (max-width: 768px) {
    .ds-home-favorite-sites__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .ds-home-favorite-sites__grid {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 768px) {
    [data-card-layout="2-col"] > div {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 992px) {
    .ds-home-cpt-sections > div > h2.ds-home-section-title {
        width: 100%;
        left: 0;
        transform: none;
    }
}
@media (hover: hover) and (pointer: fine) {
  .fr-nav-alpha a:hover {
    color: #770000 !important;
}
.ds-article-card__categories-code a:hover,
.ds-home-favorite-websites__button:hover  {
    background: #770000;
    color: #fff;
}
}