/* ============================================================
   RCAD PRO - Sidebar Accordion, elegant CAD directory style
   ============================================================ */

.rcad-sidebar-accordion {
    --rcad-side-yellow: #f6a800;
    --rcad-side-yellow-dark: #d88f00;
    --rcad-side-yellow-soft: #fff7df;
    --rcad-side-blue: #071b46;
    --rcad-side-text: #172033;
    --rcad-side-muted: #667085;
    --rcad-side-line: #e7ebf1;
    --rcad-side-soft: #f8fafc;
    width: 330px;
    min-width: 330px;
    max-width: 330px;
    overflow: hidden;
    margin: 18px auto;
    border: 1px solid var(--rcad-side-line);
    border-radius: 22px;
    background: #fff;
    color: var(--rcad-side-text);
    box-shadow: none;
}

.widget_rcad_accordion_menu,
.widget:has(.rcad-sidebar-accordion) {
    width: 330px;
    min-width: 330px;
    max-width: 330px;
    margin-left: auto;
    margin-right: auto;
}

.rcad-sidebar-title {
    position: relative;
    margin: 0;
    min-height: 88px;
    padding: 38px 18px 18px 62px;
    border-bottom: 1px solid var(--rcad-side-line);
    background: #fafafa;
    color: var(--rcad-side-blue);
    font-size: 18px;
    font-weight: 850;
    line-height: 1.2;
}

.rcad-sidebar-title::before {
    content: "Biblioteca DWG";
    position: absolute;
    left: 18px;
    top: 22px;
    color: var(--rcad-side-yellow-dark);
    font-size: 10px;
    font-weight: 850;
    letter-spacing: .08em;
    line-height: 1;
    text-transform: uppercase;
}

.rcad-sidebar-title::after {
    content: "";
    position: absolute;
    left: 18px;
    bottom: 18px;
    width: 34px;
    height: 34px;
    border-radius: 11px;
    background:
        linear-gradient(var(--rcad-side-yellow-dark), var(--rcad-side-yellow-dark)) 10px 9px/4px 4px no-repeat,
        linear-gradient(var(--rcad-side-yellow-dark), var(--rcad-side-yellow-dark)) 18px 9px/4px 4px no-repeat,
        linear-gradient(var(--rcad-side-yellow-dark), var(--rcad-side-yellow-dark)) 10px 17px/4px 4px no-repeat,
        linear-gradient(var(--rcad-side-yellow-dark), var(--rcad-side-yellow-dark)) 18px 17px/4px 4px no-repeat,
        var(--rcad-side-yellow-soft);
}

.rcad-accordion-menu,
.rcad-acc-sub {
    list-style: none;
    margin: 0;
    padding: 0;
}

.rcad-accordion-menu {
    padding: 10px;
}

.rcad-acc-item {
    position: relative;
    margin: 0 0 4px;
    border: 0;
}

.rcad-acc-item:last-child {
    margin-bottom: 0;
}

.rcad-acc-row {
    min-height: 42px;
    display: flex;
    align-items: center;
    border-radius: 12px;
    transition: background .16s ease, color .16s ease;
}

.rcad-acc-row:hover {
    background: var(--rcad-side-soft);
}

.rcad-acc-link {
    min-width: 0;
    flex: 1;
    padding: 8px 9px;
    color: var(--rcad-side-text);
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 13.5px;
    font-weight: 750;
    line-height: 1.25;
    text-decoration: none;
}

.rcad-acc-link:hover,
.rcad-acc-link:focus-visible {
    color: var(--rcad-side-blue);
    text-decoration: none;
}

.rcad-acc-btn {
    width: 38px;
    min-height: 42px;
    border: 0;
    border-radius: 0 12px 12px 0;
    background: transparent;
    color: #a7b0bd;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    cursor: pointer;
    transition: color .16s ease, background .16s ease;
}

.rcad-acc-btn:hover,
.rcad-acc-btn:focus-visible {
    background: rgba(246, 168, 0, .08);
    color: var(--rcad-side-yellow-dark);
}

.rcad-acc-sym {
    width: 14px;
    height: 14px;
    overflow: hidden;
    color: transparent;
    display: block;
    position: relative;
}

.rcad-acc-sym::before {
    content: "›";
    position: absolute;
    inset: 0;
    color: #a7b0bd;
    display: grid;
    place-items: center;
    font-size: 16px;
    line-height: 1;
    transition: transform .18s ease, color .18s ease;
}

.rcad-acc-btn[aria-expanded="true"] .rcad-acc-sym::before {
    color: var(--rcad-side-yellow-dark);
    transform: rotate(90deg);
}

.rcad-acc-current > .rcad-acc-row,
.rcad-acc-ancestor > .rcad-acc-row {
    background: var(--rcad-side-yellow-soft);
}

.rcad-acc-current > .rcad-acc-row::before,
.rcad-acc-ancestor > .rcad-acc-row::before {
    content: "";
    position: absolute;
    left: 0;
    top: 9px;
    bottom: 9px;
    width: 3px;
    border-radius: 999px;
    background: var(--rcad-side-yellow);
}

.rcad-acc-current > .rcad-acc-row > .rcad-acc-link,
.rcad-acc-ancestor > .rcad-acc-row > .rcad-acc-link {
    color: var(--rcad-side-blue);
    font-weight: 800;
}

.rcad-icon {
    width: 30px;
    height: 30px;
    border: 1px solid #eef2f6;
    border-radius: 10px;
    background: #f8fafc;
    color: var(--rcad-side-yellow-dark);
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    font-size: 13px;
    line-height: 1;
}

.rcad-icon img,
.rcad-icon svg {
    width: 18px;
    height: 18px;
    display: block;
}

.rcad-icon svg {
    fill: none;
    stroke: currentColor;
}

.rcad-icon-svg svg [fill]:not([fill="none"]) {
    fill: currentColor;
}

.rcad-acc-current > .rcad-acc-row .rcad-icon,
.rcad-acc-ancestor > .rcad-acc-row .rcad-icon {
    border-color: #f1cf78;
    background: #fff;
}

.rcad-acc-link:not(:has(.rcad-icon))::before {
    content: "";
    width: 30px;
    height: 30px;
    border: 1px solid #eef2f6;
    border-radius: 10px;
    background:
        linear-gradient(var(--rcad-side-muted), var(--rcad-side-muted)) 8px 8px/10px 2px no-repeat,
        linear-gradient(var(--rcad-side-muted), var(--rcad-side-muted)) 8px 13px/10px 2px no-repeat,
        #f8fafc;
    flex: 0 0 auto;
}

.rcad-acc-d0,
.rcad-acc-d1 {
    margin: 2px 0 6px 14px;
    padding: 3px 0 3px 8px;
    border-left: 1px solid var(--rcad-side-line);
    background: transparent;
}

.rcad-acc-d0 .rcad-acc-row,
.rcad-acc-d1 .rcad-acc-row {
    min-height: 32px;
}

.rcad-acc-d0 .rcad-acc-link,
.rcad-acc-d1 .rcad-acc-link {
    padding: 6px 8px;
    color: #344054;
    font-size: 12px;
    font-weight: 600;
}

.rcad-acc-d1 {
    margin-left: 12px;
}

.rcad-sidebar-explore {
    position: relative;
    margin: 0;
    padding: 12px;
    border-top: 1px solid var(--rcad-side-line);
    background: #fafafa;
}

.rcad-sidebar-explore::before {
    content: "";
    position: absolute;
    inset: 12px;
    border: 1px solid var(--rcad-side-line);
    border-radius: 16px;
    background: #fff;
    pointer-events: none;
}

.rcad-sidebar-explore-title,
.rcad-sidebar-explore p,
.rcad-sidebar-explore a {
    position: relative;
    z-index: 1;
    margin: 0;
}

.rcad-sidebar-explore-title {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 13px 13px 0;
    color: var(--rcad-side-blue);
    font-size: 14px;
    font-weight: 850;
    line-height: 1.25;
}

.rcad-sidebar-explore-icon {
    width: 28px;
    height: 28px;
    border-radius: 10px;
    background: var(--rcad-side-yellow-soft);
    color: var(--rcad-side-yellow-dark);
    display: grid;
    place-items: center;
    flex: 0 0 auto;
}

.rcad-sidebar-explore-icon svg {
    width: 15px;
    height: 15px;
    stroke: currentColor;
}

.rcad-sidebar-explore p {
    margin-top: 8px;
    padding: 0 13px;
    color: var(--rcad-side-muted);
    font-size: 11.5px;
    line-height: 1.4;
}

.rcad-sidebar-explore a {
    display: inline-flex;
    margin: 10px 13px 13px;
    color: var(--rcad-side-yellow-dark);
    font-size: 12px;
    font-weight: 850;
    line-height: 1.2;
    text-decoration: none;
}

.rcad-sidebar-explore a:hover,
.rcad-sidebar-explore a:focus-visible {
    text-decoration: underline;
}

/* Hide duplicated search widgets in sidebars. */
.widget-area .search-form,
.widget-area .widget_search,
.rcad-accordion-menu > .menu-item.search-item,
.rcad-acc-sub > .menu-item.search-item {
    display: none !important;
}

#content-wrapper.flex {
    display: flex;
    gap: 30px;
}

#content-wrapper.flex > .entry-content {
    min-width: 0;
    flex: 1;
}

#content-wrapper.flex > #secondary,
#content-wrapper.flex > .entry-aside {
    width: 330px;
    flex-shrink: 0;
}

@media (max-width: 991px) {
    #content-wrapper.flex {
        flex-direction: column;
    }

    #content-wrapper.flex > #secondary,
    #content-wrapper.flex > .entry-aside {
        width: 100%;
    }

    .rcad-sidebar-accordion {
        width: 100%;
        min-width: 0;
        max-width: 330px;
    }

    .widget_rcad_accordion_menu,
    .widget:has(.rcad-sidebar-accordion) {
        width: 100%;
        min-width: 0;
        max-width: 330px;
    }
}
