/*Color Palette*/
:root {
  --primary-color: #0A1A2F;
  --primary-variant-light: #142B4D;
  --primary-variant-dark: #07203a;
  --white-text: #FFFFFF;
  --black-text: #000000;
  --white-background: #F9F9F9;
  --light-grey: #cacaca; 
  --dark-grey:#787878;
  --light-blue: #cfe8ff;
  --blue: #3876d3;
  --accent: #FF7F11;
  --error-red: #A4243B;
}

/* General ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;}

html {
    font-family: "Roboto Flex", Arial, sans-serif;
    overflow-x: hidden;
}

body {
    overflow-x: hidden;
    max-width: 100%;
}

.NavBar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height:64px;

    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 1rem 3rem;
    background-color: var(--primary-color);
    color: var(--white-text);

    z-index: 1000;
}
    

.Logo a {
    font-size: 1.2rem;
    align-items: center;
    gap: 0.5rem;
    display:flex}

.Logo_img {
    width: 2rem;           /* adjust size as needed */
    height: auto;
    display: inline-block;
}

.NavLinks {
    list-style: none;
    display: flex;
    gap: 1.5rem;}

.NavLinks a {
    color: var(--light-grey);
    text-decoration: none;
    transition: color 0.3s ease;}

.Nav_UpdatesItem {
    margin-left: auto;
}

.Nav_UpdatesToggle::after {
    content: " \2630";
    font-size: 0.86em;
}

.Nav_UpdatesToggle[aria-expanded="true"]::after {
    content: " \00d7";
}
    
.NavLinks a:hover, .NavLinks a.active {
    color: var(--white-text);}

.Logo a,.Logo a:visited {
    color: inherit;           
    text-decoration: none;
    font-weight: 700;}

.Notice{
    width: 100%;
    background-color: orange;
    font-size: 0.5rem;
    padding:0.5rem;
    display: none;
}

@media (max-width: 1000px) {
    .NavBar {
        padding: 0.7rem 1rem;
        height: auto;
        min-height: 64px;
        flex-wrap: wrap;
        row-gap: 0.35rem;
    }

    .Logo a {
        font-size: 0.92rem;
        gap: 0.35rem;
    }

    .NavLinks {
        width: 100%;
        justify-content: space-between;
        gap: 0.4rem;
        margin-left: 0;
        padding-top: 0.3rem;
        border-top: 1px solid rgba(255, 255, 255, 0.14);
    }

    .NavLinks a {
        font-size: 0.88rem;
    }

    .Nav_UpdatesItem {
        margin-left: 0;
    }
}

@media (max-width: 700px) {
    .Logo a {
        font-size: 0.82rem;
    }

    .Logo_img {
        width: 1.6rem;
    }

    .NavLinks a {
        font-size: 0.78rem;
    }
}

/*Home Page ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- */
.Home_Body {
    font-weight: 400;
    font-variation-settings: "wght" 400, "opsz" 14;
    background-color: var(--primary-variant-dark);
    color: var(--white-text);
    padding-top:64px; /*account for fixed nav bar*/
    overflow-x: hidden;
} 

.Home_GetStartedBtn {
    display: inline-flex;    
    align-items: center;       /* vertical center */
    justify-content: center;   /* horizontal center */
    background-color: var(--white-text);
    color: var(--blue);
    padding: 0.7rem 1.5rem;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s ease;
    width: 170px;
    height: 40px;
    text-align: center;
    margin-top: 3rem;}

.Home_GetStartedBtn:hover {
    background-color: var(--blue);
    color:var(--white-text);}

.Home_HeroShell {
    background-image:
        linear-gradient(180deg, rgba(6, 31, 58, 0.76) 0%, rgba(26, 83, 150, 0.58) 58%, rgba(234, 242, 251, 0.28) 100%),
        url("res/MainBackground.png");
    background-position: center top;
    background-repeat: no-repeat;
    background-size: cover;
    background-color: #0f3764;
}

.Home_Hero {
    padding: 0 1.75rem;
    position: relative;      /* container for absolute background */
    width: 100%;
    min-height: 560px;       /* control hero height independently */
    display: flex;
    align-items: center;     /* vertically center the text */
    overflow: hidden;
    background: transparent;}

.Home_HeroText {
    position: relative;
    padding: 1.5rem;
    z-index: 2;
    max-width: 48%;        /* keep text area on the left */
    color:var(--white-text);
    padding: 2rem;}

.Home_HeroText p {
    text-indent: 1rem;
    color: #f6fbff;
    padding-top: 20px;
    font-style: italic;
    text-shadow: 0 2px 10px rgba(4, 16, 30, 0.55);
    max-width: 34rem;}

.Home_HeroChart {
    position: absolute;
    top: 0;
    right: -5%;
    bottom: 0;
    width: 60%;             /* image occupies right portion */
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    background: transparent;
    padding: 20px;}

.Home_HeroChart img {
    width: 92%;
    height: 92%;
    background: transparent;
    object-fit: contain;
    object-position: right center; /* align image to the right edge */
    display: block;
    mix-blend-mode: darken;
    opacity: 1;
    filter: drop-shadow(0 22px 28px rgba(5, 16, 30, 0.28));
    animation: Home_LaptopFloat 4.8s ease-in-out infinite;
    transition: opacity .25s ease, transform .25s ease;
}

@keyframes Home_LaptopFloat {
    0% {
        transform: translateY(0) rotate(-5deg);
    }
    50% {
        transform: translateY(-12px) rotate(-5deg);
    }
    100% {
        transform: translateY(0) rotate(-5deg);
    }
}

.Home_Services {
    position: relative;
    z-index: 2;
    margin-top: -1px;
    padding: 0.8rem 1.75rem 2.35rem;
    background: transparent;
    text-align: center;}

.Home_Services::before,
.Home_Services::after {
    content: "";
    display: block;
    width: min(90%, 1080px);
    height: 2px;
    margin: 0 auto;
    background: rgba(247, 251, 255, 0.68);
    box-shadow: 0 0 14px rgba(247, 251, 255, 0.2);
}

.Home_Services::before {
    margin-bottom: 1.05rem;
}

.Home_Services::after {
    display: none;
}

.Home_Services h2 {
    margin-bottom: 0.55rem;
    color: #f5fbff;
    font-size: clamp(1.9rem, 3vw, 2.35rem);}

.Home_Services p {
    width: min(100%, 720px);
    margin: 0 auto 1.5rem;
    color: rgba(240, 247, 255, 0.88);
    font-size: 0.96rem;
    line-height: 1.6;}

.Home_ServiceCards {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;}
    
.Home_Card {
    background: linear-gradient(180deg, rgba(10, 30, 54, 0.34) 0%, rgba(18, 47, 82, 0.26) 100%);
    border: 1px solid rgba(236, 244, 252, 0.22);
    box-shadow: 0 18px 36px rgba(7, 24, 46, 0.24);
    backdrop-filter: blur(6px);
    padding: 1.15rem 1.15rem 1.05rem;
    border-radius: 18px;
    width: 300px;
    text-align: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;}

.Home_Card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 42px rgba(7, 24, 46, 0.24);
    border-color: rgba(245, 250, 255, 0.28);}

.Home_Card h3 {
    margin-bottom: 0.4rem;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(4, 12, 24, 0.46);
    font-size: 1.03rem;}

.Home_Card p {
    color: rgba(248, 251, 255, 0.97);
    text-shadow: 0 2px 10px rgba(4, 12, 24, 0.38);
    font-size: 0.85rem;
    line-height: 1.55;}

.Home_Icon {
    display: flex;
    justify-content: center; /* centers image horizontally */
    align-items: center;     /* centers image vertically if container has height */
    margin-bottom: 0.7rem;}

.Home_Icon img {
    width: 3.3rem;
    height: 3.3rem;
    object-fit: contain;
    display: block;
    margin: 0 auto; /* fallback centering */}

.Home_Process {
    padding: 4rem 1.5rem 4.5rem;
    background:
        radial-gradient(circle at top center, rgba(56, 118, 211, 0.12) 0%, rgba(56, 118, 211, 0) 34%),
        linear-gradient(180deg, #f8fbff 0%, #eef4fb 100%);
    border-top: 1px solid rgba(7, 32, 58, 0.08);
    border-bottom: 1px solid rgba(7, 32, 58, 0.08);
}

.Home_ProcessInner {
    width: min(100%, 1180px);
    margin: 0 auto;
    text-align: center;
}

.Home_Process h2 {
    color: var(--primary-color);
    font-size: clamp(2rem, 3vw, 2.5rem);
    margin-bottom: 0.9rem;
}

.Home_ProcessLead {
    width: min(100%, 720px);
    margin: 0 auto 2.5rem;
    padding-top: 0.85rem;
    border-top: 1px solid rgba(7, 32, 58, 0.08);
    color: #506787;
    font-size: clamp(1rem, 2vw, 1.18rem);
}

.Home_ProcessCards {
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
    width: min(100%, 760px);
    margin: 0 auto;
}

.Home_ProcessCard {
    display: grid;
    grid-template-columns: 168px minmax(0, 1fr);
    grid-template-areas: "icon text";
    align-items: center;
    gap: 1.4rem;
    padding: 0 0 1.4rem;
    text-align: left;
    border-bottom: 1px solid rgba(7, 32, 58, 0.1);
}

.Home_ProcessCard:nth-child(even) {
    grid-template-columns: minmax(0, 1fr) 168px;
    grid-template-areas: "text icon";
}

.Home_ProcessIconWrap {
    grid-area: icon;
    min-height: 132px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.Home_ProcessIcon {
    width: min(100%, 170px);
    height: 120px;
    object-fit: contain;
    display: block;
    transition: transform 0.25s ease, filter 0.25s ease;
}

.Home_ProcessCard:hover .Home_ProcessIcon,
.Home_ProcessCard:focus-within .Home_ProcessIcon {
    transform: translateY(-6px) scale(1.03);
    filter: drop-shadow(0 16px 28px rgba(14, 45, 82, 0.24));
}

.Home_ProcessText {
    grid-area: text;
}

.Home_ProcessCard h3 {
    margin-bottom: 0.9rem;
    color: #285492;
    font-size: clamp(1.1rem, 1.5vw, 1.35rem);
    line-height: 1.25;
}

.Home_ProcessCard p {
    margin: 0;
    color: #536a89;
    font-size: 0.98rem;
    line-height: 1.8;
}

.Home_ProcessDropdown {
    margin-top: 1rem;
    border: 1px solid rgba(40, 84, 146, 0.14);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 10px 24px rgba(23, 64, 116, 0.08);
    overflow: hidden;
}

.Home_ProcessDropdown summary {
    position: relative;
    padding: 0.95rem 3.25rem 0.95rem 1rem;
    list-style: none;
    cursor: pointer;
    color: #285492;
    font-size: 0.96rem;
    font-weight: 650;
    user-select: none;
}

.Home_ProcessDropdown summary::-webkit-details-marker {
    display: none;
}

.Home_ProcessDropdown summary::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 1rem;
    width: 0.7rem;
    height: 0.7rem;
    border-right: 2px solid #285492;
    border-bottom: 2px solid #285492;
    transform: translateY(-65%) rotate(45deg);
    transition: transform 0.2s ease;
}

.Home_ProcessDropdown[open] summary::after {
    transform: translateY(-35%) rotate(225deg);
}

.Home_ProcessDropdown summary:hover,
.Home_ProcessDropdown summary:focus-visible {
    background: rgba(47, 128, 231, 0.06);
}

.Home_ProcessDropdownContent {
    padding: 0 1rem 1rem;
    border-top: 1px solid rgba(40, 84, 146, 0.12);
}

.Home_ProcessDropdownContent p {
    margin: 0.95rem 0 0.55rem;
}

.Home_ProcessDataList {
    margin: 0;
    padding-left: 1.2rem;
    color: #536a89;
}

.Home_ProcessDataList li + li {
    margin-top: 0.35rem;
}

.Home_ProcessBtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 2.6rem;
    width: min(100%, 280px);
    min-height: 54px;
    padding: 0.85rem 1.8rem;
    border-radius: 8px;
    background: linear-gradient(180deg, #2f80e7 0%, #1666cd 100%);
    box-shadow: 0 10px 22px rgba(22, 102, 205, 0.28);
    color: var(--white-text);
    text-decoration: none;
    font-size: 1.05rem;
    font-weight: 650;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.Home_ProcessBtn:hover,
.Home_ProcessBtn:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(22, 102, 205, 0.34);
    filter: brightness(1.03);
}

.Home_Comparison {
    padding: 3rem 1.25rem;
    background:
        linear-gradient(180deg, #eef4fb 0%, #f8fbff 100%);
    border-top: 1px solid rgba(7, 32, 58, 0.08);
    border-bottom: 1px solid rgba(7, 32, 58, 0.08);
}

.Home_ComparisonInner {
    width: min(100%, 1050px);
    margin: 0 auto;
    background-color: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(7, 32, 58, 0.12);
    border-radius: 18px;
    padding: 1.5rem;
    box-shadow: 0 10px 28px rgba(7, 32, 58, 0.08);
}

.Home_ComparisonCopy {
    text-align: center;
    margin-bottom: 1.35rem;
}

.Home_ComparisonEyebrow {
    color: var(--blue);
    font-weight: 650;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.72rem;
    margin-bottom: 0.4rem;
}

.Home_Comparison h2 {
    color: var(--primary-color);
    font-size: clamp(1.35rem, 2.6vw, 2rem);
    line-height: 1.25;
}

.Home_ComparisonText {
    width: min(100%, 900px);
    margin: 1rem auto 0;
    color: #506787;
    font-size: 0.98rem;
    line-height: 1.75;
    text-align: left;
}

.Home_ComparisonImageWrap {
    border-radius: 14px;
    overflow: hidden;
    background: linear-gradient(180deg, #ffffff 0%, #f1f6fc 100%);
    border: 1px solid rgba(40, 84, 146, 0.12);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.Home_ComparisonImage {
    display: block;
    width: 100%;
    height: auto;
}

.Home_ComparisonCode {
    margin-top: 1rem;
    border: 1px solid rgba(40, 84, 146, 0.14);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 10px 24px rgba(23, 64, 116, 0.08);
    overflow: hidden;
}

.Home_ComparisonCode summary {
    position: relative;
    padding: 0.95rem 3.25rem 0.95rem 1rem;
    list-style: none;
    cursor: pointer;
    color: #285492;
    font-size: 0.96rem;
    font-weight: 650;
    user-select: none;
}

.Home_ComparisonCode summary::-webkit-details-marker {
    display: none;
}

.Home_ComparisonCode summary::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 1rem;
    width: 0.7rem;
    height: 0.7rem;
    border-right: 2px solid #285492;
    border-bottom: 2px solid #285492;
    transform: translateY(-65%) rotate(45deg);
    transition: transform 0.2s ease;
}

.Home_ComparisonCode[open] summary::after {
    transform: translateY(-35%) rotate(225deg);
}

.Home_ComparisonCode summary:hover,
.Home_ComparisonCode summary:focus-visible {
    background: rgba(47, 128, 231, 0.06);
}

.Home_ComparisonCodeBlock {
    margin: 0;
    padding: 1rem;
    border-top: 1px solid rgba(40, 84, 146, 0.12);
    background: linear-gradient(180deg, #0f1c2d 0%, #13253b 100%);
    color: #d9e9ff;
    font-family: "Consolas", "Courier New", monospace;
    font-size: 0.83rem;
    line-height: 1.6;
    overflow-x: auto;
    white-space: pre;
}

.Home_Contact {
    padding: 2.75rem 1.25rem;
    background-image: linear-gradient(180deg, var(--white-background) 0%, #eaf2fb 100%);
    border-top: 1px solid rgba(7, 32, 58, 0.08);
}

.Home_ContactInner {
    width: min(100%, 1050px);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    background-color: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(7, 32, 58, 0.12);
    border-radius: 14px;
    padding: 1.35rem 1.5rem;
    box-shadow: 0 6px 18px rgba(7, 32, 58, 0.08);
}

.Home_ContactCopy {
    max-width: 680px;
}

.Home_ContactEyebrow {
    color: var(--blue);
    font-weight: 650;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.72rem;
    margin-bottom: 0.35rem;
}

.Home_Contact p{
    color: var(--dark-grey);
    line-height: 1.55;
}

.Home_Contact h2{
    color: var(--primary-color);
    font-size: clamp(1.1rem, 2vw, 1.45rem);
    margin-bottom: 0.35rem;
}

.Home_ContactLink {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    min-height: 44px;
    padding: 0.65rem 1rem;
    border-radius: 10px;
    text-decoration: none;
    transition: transform .12s ease, box-shadow .12s ease, background-color .12s ease, border-color .12s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    background: var(--white-text);
    border: 1px solid rgba(56, 118, 211, 0.35);
    color: var(--primary-color);
    font-weight: 575;
    white-space: nowrap;
    overflow: hidden;
}

.Home_ContactLink:hover,
.Home_ContactLink:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(7, 32, 58, 0.16);
    color: var(--white-text);
    border-color: transparent;
}

.Home_ContactLink--instagram:hover,
.Home_ContactLink--instagram:focus-visible {
    background: linear-gradient(135deg, #405de6 0%, #5851db 22%, #833ab4 46%, #c13584 68%, #e1306c 84%, #fdc468 100%);
}

.Home_ContactLink--email:hover,
.Home_ContactLink--email:focus-visible {
    background: linear-gradient(135deg, #0f4c81 0%, #1f7a8c 42%, #4fb3bf 100%);
}

.Home_ContactLink--linkedin:hover,
.Home_ContactLink--linkedin:focus-visible {
    background: linear-gradient(135deg, #0a66c2 0%, #1d84e6 72%, #ffffff 160%);
}

.LinkedInImg {
    width: 1.25rem;
    height: 1.25rem;
    object-fit: contain;
    display: block;
}

@media (max-width: 800px) {
    .Home_ContactInner {
        flex-direction: column;
        align-items: flex-start;
        padding: 1.15rem;
    }

    .Home_ContactLink {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 1000px) {
    .Home_Body {
        padding-top: 102px;
    }

    .Home_Hero {
        min-height: 0;
        padding: 1.25rem 1rem 1.5rem 1rem;
        align-items: flex-start;
    }

    .Home_HeroText {
        max-width: 100%;
        width: 100%;
        padding: 0.65rem;
        z-index: 2;
    }

    .Home_HeroText h1 {
        font-size: clamp(1.7rem, 7vw, 2.1rem);
    }

    .Home_HeroText p {
        text-indent: 0;
        padding-top: 0.75rem;
        font-size: 0.94rem;
    }

    .Home_GetStartedBtn {
        margin-top: 1.15rem;
    }

    .Home_HeroChart {
        position: relative;
        width: 100%;
        height: 220px;
        margin-top: 0.5rem;
        padding: 0.15rem;
    }

    .Home_HeroChart img {
        object-position: center;
        opacity: 1;
    }

    .Home_Services {
        padding: 2rem 1rem;
    }

    .Home_ServiceCards {
        gap: 0.9rem;
    }

    .Home_Card {
        width: min(100%, 420px);
        padding: 1.35rem;
    }

    .Home_Process {
        padding: 3rem 1rem 3.4rem;
    }

    .Home_ProcessCard {
        grid-template-columns: 140px minmax(0, 1fr);
        gap: 1rem;
    }

    .Home_ProcessCard:nth-child(even) {
        grid-template-columns: minmax(0, 1fr) 140px;
    }

    .Home_Comparison {
        padding: 2.5rem 1rem;
    }

    .Home_ComparisonInner {
        padding: 1.15rem;
    }
}

@media (max-width: 520px) {
    .Home_Body {
        padding-top: 96px;
    }

    .Home_HeroText h1 {
        font-size: 1.5rem;
    }

    .Home_GetStartedBtn {
        width: 100%;
        max-width: 260px;
    }

    .Home_ProcessCard {
        grid-template-columns: 1fr;
        grid-template-areas:
            "icon"
            "text";
        gap: 0.55rem;
        padding-bottom: 1.2rem;
        text-align: center;
    }

    .Home_ProcessCard:nth-child(even) {
        grid-template-columns: 1fr;
        grid-template-areas:
            "icon"
            "text";
    }

    .Home_ProcessIconWrap {
        min-height: 110px;
        margin-bottom: 0.25rem;
    }

    .Home_ProcessIcon {
        height: 100px;
    }

    .Home_ProcessBtn {
        width: 100%;
        max-width: 260px;
    }

    .Home_Comparison {
        padding: 2rem 0.85rem;
    }

    .Home_ComparisonInner {
        padding: 1rem;
        border-radius: 14px;
    }

    .Home_ComparisonCopy {
        margin-bottom: 1rem;
    }
}

/*Reccomendations Page --------------------------------------------------------------------------------------------------------------------------------------------------------------------- */
.Rec_Body{
    --rec-nav-offset: 64px;
    background-image:radial-gradient(ellipse at center, var(--blue), var(--primary-variant-light));
    /*background-image: linear-gradient(180deg, var(--blue) 30%, var(--light-blue) 50%);*/
    color: var(--black-text);
    padding-top:64px; /*account for fixed nav bar*/
    overflow-x: hidden;
}

.Rec_Form {
    display: flex;
    position: relative;
    gap: 2rem;
    align-items: flex-start;
    justify-content: center;
    margin: 0 auto;
    box-sizing: border-box;
    font-size: 1rem;
    width: min(100%, 1400px);
    padding-left: 4rem;
    padding-right: 4rem;
}

.Rec_FormTitle {
    display: block;
    text-align: center; 
    margin-bottom: 2rem;
    align-items: center;
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--white-text)}

.Rec_InputBox {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    position: relative}

.Rec_TextInput {
    flex: 1;
    padding: 0.6rem 6rem 0.6rem 1.75rem; /* extra right padding for the button space */
    border-radius: 20px;
    background: var(--white-text);
    border: 1px solid var(--white-text);
    color: var(--black-text);
    font: inherit;
    min-width: 0;
    height: 3.5rem;
    outline: none;
    box-shadow: none;
}

.Rec_AddBtn {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    
    background: var(--light-blue);
    border: none;
    
    width: 2.75rem;         /* fixed width */
    height: 2.75rem;        /* same as width for perfect circle */
    border-radius: 50%;     /* makes it a circle */
    
    display: flex;          /* centers content */
    align-items: center;    /* vertical centering */
    justify-content: center;/* horizontal centering */
    
    cursor: pointer;
    transition: background 0.3s ease;
}
.Rec_AddBtn img{
    height:1.75rem;
    width:1.75rem}

.Rec_AddBtn:hover {
    border: 1px solid var(--blue);

}

.Rec_Instructions1{
    margin-top: 0.5rem;}

.Rec_InputEx{
    border: 2px solid black;
    display: flex;
    flex-direction: column;
    align-items: center; /* centers children horizontally */
    justify-content: flex-start; /* optional: vertical centering if parent has height */
    text-align: center; 
    border-radius: 30px;
    padding: 1rem;
    margin-top:1rem}

.Rec_ExchExList{
    margin-left:1.5rem ;
    margin-top:0.3rem;
    margin-bottom: 0.4rem;}

.Rec_Notice {
    font-style: italic;
    color: var(--dark-grey);
    font-size: 0.8rem;
    margin-top:1rem;}

.Rec_InputPanel {
    flex: 1;
    max-width: 1180px;
    font-size: 1rem;
    box-sizing: border-box;
    margin-top:2rem;
    margin-left: auto;
    margin-right: auto;
}

.Rec_RightColumn{
    flex: 1;                
    display: flex;
    flex-direction: column;
}

.Rec_PortfDisplay {
    width:70%;
    border: 1px solid var(--white-text); 
    border-radius: 8px;     
    padding: 1rem;
    box-sizing: border-box;
    margin-top: 2rem;
    margin-left: auto;
    margin-right: auto;
    background-color:var(--white-text);}

.Rec_PortfDisplay h3 {
    text-align: center;
    margin-bottom: 0.5rem;}

.Rec_PortfolioTemp {
    text-align: center;
    color: var(--dark-grey);
    padding:5rem}

.Hide {display: none !important}

.Rec_Loading{
    width:100%;
    min-height: calc(100dvh - 64px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    color: var(--white-text);
    background:
      radial-gradient(circle at 20% 20%, rgba(56, 118, 211, 0.28), rgba(0,0,0,0) 40%),
      radial-gradient(circle at 80% 80%, rgba(255, 127, 17, 0.24), rgba(0,0,0,0) 35%),
      linear-gradient(160deg, #08152a 0%, #122c50 55%, #0a1a2f 100%);
    position: relative;
    overflow: hidden;
    padding: 1.5rem;
}

.Rec_Body.Rec_LoadingMode {
    background:
      radial-gradient(circle at 20% 20%, rgba(56, 118, 211, 0.28), rgba(0,0,0,0) 40%),
      radial-gradient(circle at 80% 80%, rgba(255, 127, 17, 0.24), rgba(0,0,0,0) 35%),
      linear-gradient(160deg, #08152a 0%, #122c50 55%, #0a1a2f 100%) !important;
    background-color: #08152a !important;
}

.Rec_Body.Rec_LoadingMode #Rec_Loading {
    position: fixed;
    top: var(--rec-nav-offset);
    left: 0;
    right: 0;
    bottom: 0;
    min-height: 0;
    margin: 0;
    z-index: 1200;
}

.Rec_Loading img{
    width: 72px;
    height: 72px;
    display: block;
    filter: drop-shadow(0 0 14px rgba(56, 189, 248, 0.6));
}

.Rec_Loading h2 {
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    letter-spacing: 0.02em;
}

.Rec_LoadingSub {
    color: rgba(255,255,255,0.75);
    font-size: 0.9rem;
}

.Rec_LoadingVisual {
    width: 170px;
    height: 170px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    position: relative;
    margin-bottom: 0.25rem;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.22) 0%, rgba(0, 0, 0, 0) 70%);
}

.Rec_LoadingOrbit {
    position: absolute;
    border-radius: 50%;
    border-style: solid;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

.Rec_LoadingOrbit--outer {
    inset: 4px;
    border-width: 3px;
    border-color: rgba(255, 255, 255, 0.15) rgba(45, 212, 191, 0.9) rgba(255, 255, 255, 0.15) rgba(56, 189, 248, 0.95);
    animation-name: RecSpinClockwise;
    animation-duration: 2.2s;
}

.Rec_LoadingOrbit--inner {
    inset: 24px;
    border-width: 2px;
    border-color: rgba(255, 255, 255, 0.12) rgba(255, 127, 17, 0.95) rgba(255, 255, 255, 0.12) rgba(255, 255, 255, 0.35);
    animation-name: RecSpinCounter;
    animation-duration: 1.5s;
}

.Rec_LoadingBar {
    width: min(420px, 80%);
    height: 8px;
    border-radius: 999px;
    background-color: rgba(255, 255, 255, 0.14);
    overflow: hidden;
    margin-top: 0.25rem;
    position: relative;
}

.Rec_LoadingBarFill {
    display: block;
    width: 45%;
    height: 100%;
    position: absolute;
    left: -45%;
    top: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, #2dd4bf 0%, #38bdf8 50%, #ff7f11 100%);
    animation: RecLoadingSweep 2.8s ease-in-out infinite;
}

#progress-text {
    color: rgba(255,255,255,0.82);
    font-size: 0.9rem;
}

@keyframes RecSpinClockwise {
    to { transform: rotate(360deg); }
}

@keyframes RecSpinCounter {
    to { transform: rotate(-360deg); }
}

@keyframes RecLoadingSweep {
    0% { left: -45%; }
    50% { left: 100%; }
    100% { left: -45%; }
}


.Rec_PortfolioList {
    max-height: 45vh;
    overflow: auto;
    padding: 0;
    margin: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;}

.Rec_FormActions {
    margin-top: 1rem;
    display: flex;
    justify-content: center;}

.Rec_SubmitBtn {
    margin-top: 0; 
    display: inline-flex;      /* or flex */
    align-items: center;       /* vertical center */
    justify-content: center;   /* horizontal center */
    background-color: var(--blue);
    color:var(--white-text);
    padding: 0.7rem 1.5rem;
    text-decoration: none;
    border-radius: 10px;
    transition: background 0.2s ease-in;
    width: 170px;
    height: 40px;
    text-align: center;
    border: none;
    font: inherit;
    cursor: pointer;}

.Rec_SubmitBtn:hover {
    background-color: var(--blue);
    color: var(--white-text);
    width: 180px;
    height: 50px;

}

.Rec_PortfolioList li {
    display: flex;                 /* horizontal layout */
    justify-content: space-between; /* spread children across the row */
    align-items: center;           /* vertically center text and button */
    padding: 0.5rem 1rem;          /* combined left/right padding */
    border-radius: 5px;
    color: var(--black-text);
    border: 1px solid var(--light-grey);
    width: 95%;
    font-size: 0.8rem;
    height: 2.5rem;
    margin: 0 auto;
    box-sizing: border-box;        /* include padding and border in width */
    min-width: 0;                  /* prevent flex shrink issues */
    gap: 1rem;                     /* space between the two text spans */
}

/* Optional: assign flex widths to the two text spans */
.Rec_ItemPrimary {
    flex: 2;                        
    white-space: nowrap;            /* prevent wrapping */
    overflow: hidden;
    text-overflow: ellipsis;
}

.Rec_ItemSecondary {
    flex: 1;                        
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.Rec_PortfolioList .small-btn {
    background-image: url('/static/res/Remove.png'); /* adjust path */
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    background-color: transparent;

    border: none;
    border-radius: 6px;
    padding: 0.35rem;
    cursor: pointer;

    height: 2rem;
    width:2rem;
}

.small-btn:hover{
     opacity: 0.7;
}

.Rec_SubmitBtn:disabled, .small-btn:disabled, .Rec_AddBtn:disabled{
    background: var(--light-grey) !important;
    color: var(--black-text) !important;
    cursor: not-allowed !important;
    opacity: 0.7;
}

.Rec_SubmitBtn--inactive{
    background: var(--light-grey) !important;
    color: var(--black-text) !important;
    cursor: not-allowed !important;
    font-size:0.9rem;
    width: 170px!important;
    height: 40px!important;
}

.Rec_TextInput:disabled{
    background: var(--light-grey) !important;
    color: var(--black-text) !important;
    cursor: not-allowed !important;
    opacity: 0.7;
}
.Rec_QueueCount, .Rec_WaitTime{
    font-style: italic;
    padding-right: 1rem;
    padding-top:0.3rem;
    text-align: right;
    margin-right: 15%;
    color: var(--light-grey);
    align-self: flex-end;
    margin-top: auto;
}
.Rec_Popup {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: calc(100dvh - 64px);
    background-color: rgba(173, 173, 173, 0.7); /* semi-transparent overlay */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    display:none;
}
.Rec_ClosePopIcon{
    position: absolute;   /* child positioned relative to parent */
    height: 3.5rem;
    width:3.5rem;
    top: 0;
    right: 0;
    background-color: transparent;
    padding: 0.75rem;
    border-bottom-left-radius: 10px;
}
.Rec_ClosePopIcon:hover{
    background-color: var(--light-grey);
    cursor: pointer;
}

.Rec_SearchResults {
    background-color: var(--white-background);
    width: min(88vw, 1040px);
    height: min(68vh, 560px);
    position: relative;
    top: 0;
    left: 0;
    transform: none;
    display: flex;
    flex-direction: column;       /* Stack h3 and list vertically */
    justify-content: flex-start;  /* Align content to the top vertically */
    align-items: center;          /* Center content horizontally */
    border-radius: 1.25rem;
    padding: 1rem 1rem 1.25rem 1rem;
    overflow-y: auto;             /* Scroll if content too tall */
}
.Rec_SearchResults p{
    font-size: 0.75rem;
    color: var(--dark-grey);
    align-self: flex-start;
}

.Rec_SearchResults h3 {
    margin-bottom: 1rem;
    text-align: center;           /* Center text horizontally */
}

.Rec_ResultList {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;                  /* So list can take full width if needed */
    display: flex;
    flex-direction: column;       /* Stack items vertically */
    justify-content: flex-start;  /* Align items to top vertically */
    align-items: center;          /* Center items horizontally */
}
.Rec_ResultHeader,.Rec_ResultItem {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 1rem;
    padding: 0.75rem 1rem;
    align-items: center;
}

/* Header styling */
.Rec_ResultHeader {
    font-weight: 600;
    border-bottom: 2px solid #ccc;
    background-color: #f5f5f5;
    position: sticky;   /* Optional */
    top: 0;             /* Keeps header visible on scroll */
    z-index: 2;
    width:100%
}

/* Row styling */
.Rec_ResultItem {
    border-bottom: 1px solid #eee;
    justify-items: start; /* left-align cells */
    width:100%
}

.Rec_ItemExchange {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.Rec_CanadaFlag {
    width: 0.9rem;
    height: 0.9rem;
    object-fit: contain;
    display: inline-block;
    flex-shrink: 0;
}

.Rec_ResultItem:hover{
    background-color: var(--light-blue);
    border: 1px solid var(--dark-grey);
    cursor: pointer;
    font-weight: 600;

}
.Rec_LearningChartContainer{
    width: auto;
    box-sizing: border-box;
    flex: 1 1 42%;
    min-width: 25%;
}

.Rec_LearningChart{
    background-color: var(--primary-variant-dark);
    padding:1rem;
    margin: 1rem 1rem 0rem 0;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: none;
    box-sizing: border-box;
    display: block;
    width: 100%;
}
.Rec_YieldSTDSection{
    flex: 0 1 clamp(142px, 13.5vw, 192px);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: clamp(0.55rem, 0.9vw, 0.9rem);
    align-self: center;
    margin-top: 0;
    min-width: 138px;
}

.Rec_YieldContainer, .Rec_STDContainer{
    display: flex;               /* <-- added */
    flex-direction: column;      /* stack h1 over p */
    align-items: center;         /* center horizontally */
    justify-content: center;     /* center vertically if needed */
    text-align: center;          /* center text fallback */
    padding: clamp(0.58rem, 0.88vw, 0.74rem) clamp(0.62rem, 0.95vw, 0.84rem);
    border-radius: 12px;
    border: 1px solid rgba(202, 202, 202, 0.26);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.18);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    box-sizing: border-box;
    width:100%;
}

.Rec_YieldContainer{
    background-color: #0b2b4a;
}

.Rec_STDContainer{
    background-color: #16345a;
}

.Rec_YieldContainer:hover, .Rec_STDContainer:hover{
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.35);
    box-shadow: 0 10px 16px rgba(0, 0, 0, 0.2);

}
.Rec_YieldContainer h1, .Rec_STDContainer h1{
    color: var(--blue);
    font-size: clamp(1.28rem, 1.95vw, 1.9rem);
    line-height: 1.05;
    font-weight: 720;
    letter-spacing: 0.01em;
    margin-bottom: 0.35rem;
}
.Rec_YieldContainer p, .Rec_STDContainer p{
    color: var(--light-grey);
    font-size: 0.58rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    width: 100%;
    margin-top: 0.2rem;
    margin-bottom: 0.3rem;

}

.Rec_MetricTitle {
    color: var(--white-text) !important;
    font-size: clamp(0.64rem, 0.72vw, 0.74rem) !important;
    font-weight: 620;
    letter-spacing: 0.05em !important;
    margin-top: 0 !important;
    margin-bottom: 0.1rem !important;
}

.Rec_MetricDisclaimer {
    color: rgba(202, 202, 202, 0.78) !important;
    font-size: clamp(0.5rem, 0.58vw, 0.56rem) !important;
    font-style: italic;
    text-transform: none !important;
    letter-spacing: 0.01em !important;
    margin-top: 0 !important;
    margin-bottom: 0.45rem !important;
}

.Rec_YieldContainer progress,.Rec_STDContainer progress{
    height:5px;
    width:100%;
    z-index: 1;
    -webkit-appearance: none;
    appearance: none;
    border: none;
    border-radius: 999px;
    overflow: hidden;
    background-color: var(--light-grey);
} 

.Rec_YieldContainer progress::-webkit-progress-bar,
.Rec_STDContainer progress::-webkit-progress-bar {
  background-color: var(--light-grey);
  border-radius: 999px;
}

.Rec_YieldContainer label,.Rec_STDContainer label{
    color:var(--light-grey);
    font-size: clamp(0.58rem, 0.66vw, 0.67rem);
    margin-top: 0.45rem;
    
} 

.progress-wrap {
  position: relative;
  width: 100%;
}

.marker {
  position: absolute;
  bottom: 0;
  z-index: 2;
  width: 2px;
  height: 7px;
  background: rgba(131, 131, 131, 0.75);
  pointer-events: none;
}
.rating-scale {
  display: flex;
  justify-content: space-between; /* pushes ends apart */
  width: 100%;
  opacity: 0.7;
  margin-top: 0;
  padding:0;
  font-size: clamp(0.58rem, 0.68vw, 0.68rem);
  color: var(--light-grey);
}
.YieldRating::-webkit-progress-value,
.STDRating::-webkit-progress-value {
  background-color: var(--progress-color, var(--blue));
  border-radius: 999px;
  transition: width 0.25s ease;
}

.YieldRating::-moz-progress-bar,
.STDRating::-moz-progress-bar {
  background-color: var(--progress-color, var(--blue));
  border-radius: 999px;
}


.Rec_PortfolioBreakdown,.Rec_PortfolioManage{
    align-self: flex-start;
    padding:1.1rem 1rem;
    border-radius: 14px;
    box-shadow: 0 14px 26px rgba(5, 20, 36, 0.32);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    box-sizing: border-box;
    background-color: rgba(7, 32, 58, 0.55);
    border: 1px solid rgba(202, 202, 202, 0.24);
    backdrop-filter: blur(6px);
    flex: 0 1 clamp(245px, 25vw, 340px);
    flex-direction: column;    /* stack children vertically */
    align-items: center;       /* horizontal centering */
    margin:1rem 1rem 1rem 0.5rem;
    display:flex;
    max-width: 360px;
    color: var(--white-text);
}

.Rec_PortfolioBreakdown h3{
    color: var(--white-text);
    font-size: 1.08rem;
    letter-spacing: 0.025em;
    font-weight: 650;
    margin-bottom: 0.7rem;
    text-transform: none;
}

.Rec_PortfolioBreakdown:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.35);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.22);
}


.Rec_DashboardMenu {
    background-color: var(--primary-variant-dark);
    width: clamp(86px, 8.5vw, 122px);
    display: flex;
    flex-direction: column; /* stack menu vertically */
    padding-top: 1.2rem;
    padding-bottom: 1.2rem;
    justify-content: flex-start; /* NOT center */
    position: fixed;
    top: 64px;
    left: 0;                /* anchor to left of viewport */
    height:100vh;
    border-right: 1px solid rgba(202, 202, 202, 0.15);
}

.Rec_PHolder{/*Complement place holder for menu*/
    width: clamp(86px, 8.5vw, 122px);
    height:100%;
}

.Rec_menu {
    list-style: none;
    padding: 0 0.5rem;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    align-items: stretch;   /* stretch children horizontally */
    width: 100%;
}


.Rec_menu li a {
    display: flex;
    font-size: clamp(0.66rem, 1.3vh, 0.84rem);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0.35rem;
    padding: 0.65rem 0.4rem;
    border-radius: 8px;
    width: 100%;            /* fill parent li */
    box-sizing: border-box;

    background-color: transparent;
    color: rgba(255, 255, 255, 0.82);
    text-decoration: none;
    border: 1px solid transparent;
    transition: background-color 0.22s ease, color 0.22s ease, border-color 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
    position: relative;
}
.Rec_menu li a:hover {
    transform: translateX(9px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.24);
}

.Rec_menu li a.Rec_menuLink--active {
    color: var(--white-text);
    background-color: rgba(56, 189, 248, 0.2);
    border-color: rgba(56, 189, 248, 0.5);
    box-shadow: inset 3px 0 0 rgba(56, 189, 248, 0.9);
}

.Rec_menu li a.Rec_menuLink--active:hover {
    box-shadow: inset 3px 0 0 #7dd3fc, 0 8px 16px rgba(0, 0, 0, 0.24);
}
.Rec_sidebar {
    width: 100%;            /* fill the sidebar */
}
.Rec_menu img {
    height: 1.25rem;
    width: 1.25rem;
    opacity: 0.9;
    transition: transform 0.22s ease, opacity 0.22s ease;
}

.Rec_menu .label {
    font-weight: 540;
    letter-spacing: 0.02em;
    line-height: 1.1;
    transition: letter-spacing 0.22s ease;
}

.Rec_menu li a:hover img {
    transform: scale(1.06);
    opacity: 1;
}

.Rec_menu li a:hover .label {
    letter-spacing: 0.03em;
}
.Rec_DashboardLayout{
    width: 100%;
    max-width: 100%;
    display:none;
    overflow-x: hidden;
}
.Rec_DashboardDisplay{
    flex:1;
    min-width: 0;
}

.Rec_DashboardPanel {
    display: none;
    min-width: 0;
}

.Rec_DashboardPanel.Rec_DashboardPanel--active {
    display: block;
}

/* Manage tab layout: controls on left, chart on right */
.Rec_DashboardPanel[data-panel="manage"].Rec_DashboardPanel--active {
    display: grid;
    grid-template-columns: minmax(270px, 340px) minmax(0, 1fr) minmax(180px, 24vw);
    grid-template-areas:
        "title title title"
        "portfolio chart diagnostics"
        "budgetLabel chart diagnostics"
        "budget chart diagnostics"
        "reload chart diagnostics"
        "reloadNote chart diagnostics";
    column-gap: clamp(0.9rem, 2vw, 1.8rem);
    row-gap: 0.5rem;
    align-items: start;
    padding: 0 1rem 1.4rem 1rem;
}

.Rec_DashboardPanel[data-panel="manage"] .Rec_TopTitleContainer {
    grid-area: title;
    margin: 0;
    padding: 1.15rem 0.3rem 0.7rem 0.3rem;
}

.Rec_DashboardPanel[data-panel="manage"] .Rec_PortfolioManage {
    grid-area: portfolio;
    margin: 0;
    width: 100%;
    max-width: none;
    align-self: stretch;
    align-items: stretch;
}

.Rec_DashboardPanel[data-panel="manage"] .Rec_BreakdownListManage {
    width: 100%;
    max-height: clamp(240px, 40vh, 360px);
}

.Rec_DashboardPanel[data-panel="manage"] .Rec_BudgetLabel {
    grid-area: budgetLabel;
    color: rgba(202, 202, 202, 0.94);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 640;
    line-height: 1;
    margin: 0 0 0.18rem 0.1rem;
    align-self: end;
}

.Rec_DashboardPanel[data-panel="manage"] .Rec_BudgetInput {
    grid-area: budget;
    width: 100%;
    height: 2.9rem;
    border-radius: 10px;
    border: 1px solid rgba(202, 202, 202, 0.26);
    background: linear-gradient(130deg, rgba(255, 255, 255, 0.1), rgba(7, 32, 58, 0.62));
    color: var(--white-text);
    font-family: 'Roboto Flex', sans-serif;
    font-size: 0.95rem;
    font-weight: 520;
    padding: 0.65rem 0.9rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 8px 16px rgba(5, 20, 36, 0.2);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    margin-top: 0;
    align-self: start;
}

.Rec_DashboardPanel[data-panel="manage"] .Rec_BudgetInput::placeholder {
    color: rgba(202, 202, 202, 0.72);
}

.Rec_DashboardPanel[data-panel="manage"] .Rec_BudgetInput:focus {
    outline: none;
    border-color: rgba(56, 189, 248, 0.82);
    box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.2), 0 10px 18px rgba(5, 20, 36, 0.28);
}

.Rec_DashboardPanel[data-panel="manage"] .Rec_ReloadMarketChart {
    grid-area: reload;
    width: 100%;
    height: 2.85rem;
    border: 1px solid rgba(56, 189, 248, 0.7);
    border-radius: 10px;
    background: linear-gradient(125deg, rgba(56, 189, 248, 0.92), rgba(20, 120, 180, 0.95));
    color: #f6fbff;
    font-size: 0.86rem;
    font-weight: 650;
    letter-spacing: 0.035em;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 12px 24px rgba(12, 75, 114, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.22);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.Rec_DashboardPanel[data-panel="manage"] .Rec_ReloadMarketChart:hover {
    transform: translateY(-1px);
    filter: brightness(1.04);
    box-shadow: 0 14px 28px rgba(12, 75, 114, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.Rec_DashboardPanel[data-panel="manage"] .Rec_ReloadMarketChart:active {
    transform: translateY(0);
}

.Rec_DashboardPanel[data-panel="manage"] .Rec_ReloadMarketChart:disabled {
    cursor: not-allowed;
    opacity: 1;
    color: rgba(235, 241, 248, 0.92);
    border-color: rgba(165, 178, 190, 0.72);
    background: linear-gradient(125deg, rgba(122, 135, 149, 0.95), rgba(94, 106, 118, 0.96));
    box-shadow: 0 8px 16px rgba(22, 31, 41, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transform: none;
    filter: none;
}

.Rec_DashboardPanel[data-panel="manage"] .Rec_RegenerateNote {
    grid-area: reloadNote;
    margin: 0.85rem 0.1rem 0 0.1rem;
    font-size: 0.67rem;
    line-height: 1.35;
    color: rgba(202, 202, 202, 0.86);
}

.Rec_DashboardPanel[data-panel="manage"] .Rec_ManageDiagnostics {
    grid-area: diagnostics;
    display: flex;
    flex-direction: column;
    gap: clamp(0.5rem, 1.2vh, 0.9rem);
    background-color: rgba(7, 32, 58, 0.55);
    border: 1px solid rgba(202, 202, 202, 0.18);
    border-radius: 14px;
    padding: clamp(0.75rem, 1vw, 1rem);
    backdrop-filter: blur(6px);
    box-shadow: 0 12px 24px rgba(5, 20, 36, 0.3);
}

.Rec_DashboardPanel[data-panel="manage"] .Rec_MReliabilityVal {
    color: var(--white-text);
}

.Rec_DashboardPanel[data-panel="manage"] .Rec_MarketVContainer {
    grid-area: chart;
    width: 100%;
    min-width: 0;
    align-self: stretch;
    display: flex;
    position: relative;
}

.Rec_DashboardPanel[data-panel="manage"] .Rec_MarketVContainer::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 12px;
    background: rgba(4, 15, 28, 0.74);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 2;
}

.Rec_DashboardPanel[data-panel="manage"] .Rec_MarketVContainer::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 34px;
    height: 34px;
    margin-top: -17px;
    margin-left: -17px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-top-color: #38bdf8;
    animation: RecSpin 0.75s linear infinite;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 3;
}

.Rec_DashboardPanel[data-panel="manage"] .Rec_MarketVContainer.Rec_MarketVContainer--loading::before,
.Rec_DashboardPanel[data-panel="manage"] .Rec_MarketVContainer.Rec_MarketVContainer--loading::after {
    opacity: 1;
}

.Rec_DashboardPanel[data-panel="manage"] .Rec_MarketVLoadingMsg {
    position: absolute;
    left: 50%;
    top: calc(50% + 30px);
    transform: translateX(-50%);
    color: rgba(236, 243, 252, 0.92);
    font-family: 'Roboto Flex', sans-serif;
    font-size: 0.72rem;
    letter-spacing: 0.03em;
    z-index: 4;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
    white-space: nowrap;
}

.Rec_DashboardPanel[data-panel="manage"] .Rec_MarketVContainer.Rec_MarketVContainer--loading .Rec_MarketVLoadingMsg {
    opacity: 1;
}

.Rec_DashboardPanel[data-panel="manage"] .Rec_MarketVChart {
    width: 100%;
    height: auto;
    min-height: 0;
    padding: 1rem;
}

@keyframes RecSpin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 1450px) {
    .Rec_DashboardPanel[data-panel="manage"].Rec_DashboardPanel--active {
        grid-template-columns: minmax(240px, 310px) minmax(0, 1fr);
        grid-template-areas:
            "title title"
            "portfolio chart"
            "budgetLabel chart"
            "budget chart"
            "reload chart"
            "reloadNote chart"
            "diagnostics diagnostics";
        column-gap: clamp(0.65rem, 1.5vw, 1.2rem);
    }

    .Rec_DashboardPanel[data-panel="manage"] .Rec_ManageDiagnostics {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 0.6rem;
        padding: 0.72rem;
        align-items: stretch;
    }

    .Rec_DashboardPanel[data-panel="manage"] .Rec_ManageDiagnostics .Rec_PredictScoresHeader {
        grid-column: 1 / -1;
    }

    .Rec_DashboardPanel[data-panel="manage"] .Rec_MarketVChart {
        padding: 0.8rem;
    }

    .Rec_DashboardPanel[data-panel="manage"] .Rec_ManageDiagnostics .Rec_PredictScoresHeader h3 {
        font-size: 0.93rem;
    }

    .Rec_DashboardPanel[data-panel="manage"] .Rec_ManageDiagnostics .Rec_PredictScoresEyebrow {
        font-size: 0.6rem;
    }

    .Rec_DashboardPanel[data-panel="manage"] .Rec_MReliabilityVal {
        font-size: clamp(1.05rem, 1.6vw, 1.4rem);
    }

    .Rec_DashboardPanel[data-panel="manage"] .Rec_ManageDiagnostics .Rec_ReliabilityTag {
        font-size: 0.58rem;
        padding: 0.2rem 0.42rem;
    }

    .Rec_DashboardPanel[data-panel="manage"] .Rec_ManageDiagnostics .Rec_ReliabilityBreakdown span {
        font-size: 0.6rem;
        padding: 0.22rem 0.3rem;
    }

    .Rec_DashboardPanel[data-panel="manage"] .Rec_ManageDiagnostics .Rec_CorrContainer h1,
    .Rec_DashboardPanel[data-panel="manage"] .Rec_ManageDiagnostics .Rec_PValContainer h1,
    .Rec_DashboardPanel[data-panel="manage"] .Rec_ManageDiagnostics .Rec_AvgResContainer h1 {
        font-size: clamp(1rem, 1.45vw, 1.2rem);
    }

    .Rec_DashboardPanel[data-panel="manage"] .Rec_ManageDiagnostics .Rec_StatLabel {
        font-size: 0.58rem;
    }

    .Rec_DashboardPanel[data-panel="manage"] .Rec_ManageDiagnostics .Rec_StatHint {
        font-size: 0.64rem;
        line-height: 1.25;
    }
}

.Rec_SectionPanel {
    margin: 1rem;
    padding: 1.25rem 1.35rem;
    border-radius: 14px;
    border: 1px solid rgba(202, 202, 202, 0.2);
    background-color: rgba(7, 32, 58, 0.55);
    color: var(--white-text);
    box-shadow: 0 12px 24px rgba(5, 20, 36, 0.25);
}

.Rec_SectionPanel h2 {
    font-size: 1.15rem;
    margin-bottom: 0.45rem;
}

.Rec_SectionPanel p {
    color: rgba(202, 202, 202, 0.9);
    line-height: 1.5;
    font-size: 0.86rem;
}

/* About tab: clean dashboard usage guide layout */
.Rec_DashboardPanel[data-panel="about"].Rec_DashboardPanel--active {
    margin: 0;
    padding: 1.35rem 1.6rem 1rem 1.6rem;
    border-radius: 0;
    border: none;
    background-color: #ffffff;
    box-shadow: none;
    color: #102640;
    width: 100%;
    max-width: none;
}

.Rec_DashboardPanel[data-panel="about"] h2,
.about-section h2 {
    font-size: 1.26rem;
    font-weight: 640;
    margin: 0 0 0.7rem 0;
    color: #102640;
    border-bottom: 1px solid #d7e0ea;
    padding-bottom: 0.45rem;
}

.Rec_DashboardPanel[data-panel="about"] h3,
.about-section h3 {
    font-size: 1rem;
    font-weight: 620;
    margin: 1.05rem 0 0.38rem 0;
    color: #17324e;
}

.Rec_DashboardPanel[data-panel="about"] p,
.about-section p {
    color: #2a4259;
    font-size: 0.86rem;
    line-height: 1.58;
    margin: 0 0 0.62rem 0;
}

.Rec_DashboardPanel[data-panel="about"] ul,
.about-section ul {
    margin: 0.25rem 0 0.8rem 1.15rem;
    padding: 0;
}

.Rec_DashboardPanel[data-panel="about"] li,
.about-section li {
    color: #2a4259;
    line-height: 1.5;
    margin-bottom: 0.36rem;
    font-size: 0.84rem;
}

.Rec_DashboardPanel[data-panel="about"] .note,
.about-section .note {
    margin: 0.78rem 0;
    padding: 0.62rem 0.72rem;
    border-left: 3px solid #2f8bc8;
    border-radius: 8px;
    background: #f3f8fc;
    color: #25445f;
}

/* Additional about block follows the about panel in current markup */
.about-section {
    display: none;
    margin: 0;
    padding: 0 1.6rem 1.35rem 1.6rem;
    border: none;
    background-color: #ffffff;
    box-shadow: none;
    color: #102640;
    width: 100%;
    max-width: none;
}

.Rec_DashboardPanel[data-panel="about"].Rec_DashboardPanel--active + .about-section {
    display: block;
}

.Rec_NewPortfolioBtn{
    width: 88%;
    margin-top: auto;     /* stays at the bottom */
    margin-left: auto;    /* center horizontally */
    margin-right: auto;   /* center horizontally */
    margin-bottom: 78px;
    padding: 0.6rem 0.45rem;
    border-radius: 8px;
    background-color: rgba(255,255,255,0.06);
    color: var(--white-text);
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
    font-weight: 550;
    font-size: clamp(0.56rem, 1.2vh, 0.68rem);
    letter-spacing: 0.03em;
}
.Rec_NewPortfolioBtn:hover {
    background-color: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.35);
}


.Rec_TopTitleContainer{
    flex-direction: row;   /* default, but explicit is fine */
    gap: 1rem;
    align-items: flex-start; /* or center, depending on layout */
    display: none;
    padding: 1.15rem 1.5rem 0.6rem 1.5rem;
    margin: 0 1rem;
    border-bottom: 1px solid rgba(202, 202, 202, 0.2);
    
}
.Rec_TopTitleContainer p{
    width: min(46%, 520px);
    margin-left: auto;
    color: rgba(202, 202, 202, 0.88);
    font-size: 0.62rem;
    line-height: 1.45;
}
.Rec_TopTitleContainer h1{
    color: var(--white-text);
    font-size: clamp(1.35rem, 2.15vw, 1.95rem);
    font-weight: 620;
    letter-spacing: 0.01em;
    line-height: 1.2;
    max-width: 52%;
}

.Rec_MarketVContainer{
    width: 50%;


}
.Rec_MarketVChart{
    background-color: var(--primary-variant-dark);
    display: block;
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: none;

}


.Rec_Top{
    flex-direction: row;   /* default, but explicit is fine */
    gap: clamp(0.9rem, 2vw, 2rem);
    align-items: center;
    justify-content: flex-start;
    flex-wrap: nowrap;
    display:none;
    padding: 0.85rem 1rem 0.2rem 1rem;
    min-width: 0;
}

.Rec_MobileChartsNotice {
    display: none;
    margin: 0.65rem 1rem 0.45rem 1rem;
    padding: 0.9rem 1rem;
    border-radius: 12px;
    border: 1px solid rgba(56, 189, 248, 0.62);
    color: #f4fbff;
    background: linear-gradient(140deg, rgba(56, 189, 248, 0.35), rgba(7, 32, 58, 0.88));
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.12);
    text-align: center;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 0.01em;
}

@media (max-width: 1450px) {
    .Rec_Top {
        gap: 1rem;
    }

    .Rec_YieldSTDSection {
        flex-basis: 168px;
        min-width: 148px;
        align-self: center;
    }

    .Rec_PortfolioBreakdown {
        flex-basis: 270px;
        max-width: 310px;
        margin: 0.5rem 0.25rem 0.5rem 0;
    }

    .Rec_PredictScores {
        flex-basis: 290px;
        min-width: 210px;
        margin-right: 0;
    }
}

@media (max-width: 1100px) {
    .Rec_DashboardPanel[data-panel="manage"].Rec_DashboardPanel--active {
        grid-template-columns: 1fr;
        grid-template-areas:
            "title"
            "portfolio"
            "budgetLabel"
            "budget"
            "reload"
            "reloadNote"
            "chart"
            "diagnostics";
    }

    .Rec_DashboardPanel[data-panel="manage"] .Rec_ManageDiagnostics {
        margin-top: 0;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.55rem;
    }

    .Rec_DashboardPanel[data-panel="manage"] .Rec_ManageDiagnostics .Rec_PredictScoresHeader {
        grid-column: 1 / -1;
    }

    .Rec_DashboardPanel[data-panel="manage"] .Rec_MarketVChart {
        min-height: clamp(300px, 54vw, 420px);
    }

    .Rec_Top {
        flex-direction: column;
        gap: 0.75rem;
        flex-wrap: nowrap;
    }

    .Rec_LearningChartContainer,
    .Rec_YieldSTDSection,
    .Rec_PortfolioBreakdown {
        width: 100%;
        max-width: none;
    }

    .Rec_YieldSTDSection {
        flex-direction: row;
        min-width: 0;
        margin-top: 0.25rem;
        align-self: stretch;
    }

    .Rec_YieldContainer,
    .Rec_STDContainer {
        flex: 1 1 0;
    }

    .Rec_PortfolioBreakdown {
        margin: 0.25rem 0.5rem 0.5rem 0.5rem;
    }
}

.Rec_BreakdownList, .Rec_BreakdownListManage{
    width:90%;
    flex: 1;
    overflow-y: auto; 
}
.Rec_BreakdownList li, .Rec_BreakdownListManage li{
    display: flex;
    justify-content: space-between; /* push spans to opposite ends */
    padding: 0.5rem 0;
}
.Rec_BreakdownHeader, .Rec_BreakdownHeaderManage{
    font-weight: 650;
    border-bottom: 1px solid rgba(202, 202, 202, 0.35);
    color: rgba(202, 202, 202, 0.95);
    letter-spacing: 0.025em;
    text-transform: uppercase;
    font-size: 0.69rem;
    padding-bottom: 0.6rem !important;
}

/* Row layout */
.Rec_ResultRow {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 14px;
  color: #ffffff;
}

/* Name column */
.Rec_ResultRow span:first-child {
  flex: 1;
}

/* Weight column */
.Rec_ResultRow span.weight,
.Rec_ResultRow input.weight {
  width: 60px;
  text-align: right;
  font-size: 14px;
  padding: 4px 6px;
}

/* Editable input styling */
.Rec_ResultRow input.weight {
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  background-color: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  font-family: 'Roboto Flex', sans-serif;
  transition: all 0.2s ease;
  width: auto;
  min-width: 10%;
  max-width:50%
}

.Rec_ResultRow input.weight:focus {
  outline: none;
  border-color: #4f9aff;
  background-color: rgba(79, 154, 255, 0.1);
  box-shadow: 0 0 4px rgba(79, 154, 255, 0.3);
}

.Rec_Bottom{
    display: none;           /* enable flex layout */
    flex-direction: row;     /* default, but explicit for clarity */
    gap: clamp(0.8rem, 1.6vw, 1.5rem);
    align-items: stretch;
    justify-content: flex-start;
    padding: 0.15rem 1rem 0.55rem 1rem;
    margin-bottom: 2rem;
    min-width: 0;
}
.Rec_ValidateChart{
    background-color: var(--primary-variant-dark);
    padding:1rem;
    margin: 1rem 1rem 1rem 0;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: none;
    box-sizing: border-box;
    display: block;
    width:100%;
    height: 100%;
    min-height: clamp(320px, 30vw, 460px);
}
.Rec_ValidateContainer{
    flex: 1 1 0;
    width: auto;
    min-width: 0;
    box-sizing: border-box;
    align-self: stretch;
    display: flex;
}

.Rec_PredictScores {
    flex: 0 1 clamp(240px, 28vw, 340px);
    display: flex;
    flex-direction: column;
    gap: clamp(0.5rem, 1.2vh, 0.9rem);
    background-color: rgba(7, 32, 58, 0.55);
    border: 1px solid rgba(202, 202, 202, 0.18);
    border-radius: 14px;
    padding: 1rem;
    backdrop-filter: blur(6px);
    box-shadow: 0 12px 24px rgba(5, 20, 36, 0.3);
    align-self: stretch;
    min-width: 220px;
    margin-top: 1rem;
    margin-right: 0.4rem;
    height: 100%;
}

.Rec_PredictScoresHeader {
    flex: 0 0 auto;
}

.Rec_ReliabilityContainer,
.Rec_CorrContainer,
.Rec_PValContainer,
.Rec_AvgResContainer {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.Rec_PredictScoresHeader h3 {
    color: var(--white-text);
    font-size: 1.05rem;
    letter-spacing: 0.02em;
}

.Rec_PredictScoresEyebrow {
    color: var(--light-grey);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.65rem;
    margin-bottom: 0.25rem;
}

.Rec_ReliabilityContainer {
    border-radius: 12px;
    padding: 0.9rem 0.95rem;
    text-align: left;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: linear-gradient(130deg, rgba(255, 255, 255, 0.08), rgba(7, 32, 58, 0.5));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.Rec_ReliabilityTop {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    margin-bottom: 0.55rem;
}

.Rec_ReliabilityVal {
    font-size: clamp(1.35rem, 2.15vw, 1.9rem);
    color: var(--white-text);
    line-height: 1.1;
    font-weight: 700;
}

.Rec_ReliabilityTag {
    font-size: 0.66rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #e5f0ff;
    background-color: rgba(56, 189, 248, 0.24);
    border: 1px solid rgba(56, 189, 248, 0.42);
    border-radius: 999px;
    padding: 0.23rem 0.5rem;
    white-space: nowrap;
}

.Rec_ReliabilityTag--high {
    background-color: rgba(45, 212, 191, 0.24);
    border-color: rgba(45, 212, 191, 0.48);
}

.Rec_ReliabilityTag--moderate {
    background-color: rgba(56, 189, 248, 0.24);
    border-color: rgba(56, 189, 248, 0.42);
}

.Rec_ReliabilityTag--limited {
    background-color: rgba(255, 127, 17, 0.24);
    border-color: rgba(255, 127, 17, 0.44);
}

.Rec_ReliabilityTag--low {
    background-color: rgba(164, 36, 59, 0.24);
    border-color: rgba(164, 36, 59, 0.44);
}

.Rec_ReliabilityBreakdown {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.45rem;
}

.Rec_ReliabilityBreakdown span {
    font-size: 0.68rem;
    color: rgba(202, 202, 202, 0.95);
    background-color: rgba(7, 32, 58, 0.44);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    padding: 0.28rem 0.35rem;
    text-align: center;
}

.Rec_ReliabilityBreakdown strong {
    color: var(--white-text);
}

.Rec_CorrContainer, .Rec_PValContainer, .Rec_AvgResContainer {
    border-radius: 12px;
    padding: 0.85rem 0.95rem;
    text-align: left;
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.Rec_CorrContainer {
    background: linear-gradient(130deg, rgba(56, 189, 248, 0.14), rgba(7, 32, 58, 0.45));
}

.Rec_PValContainer {
    background: linear-gradient(130deg, rgba(45, 212, 191, 0.14), rgba(7, 32, 58, 0.45));
}

.Rec_AvgResContainer {
    background: linear-gradient(130deg, rgba(255, 127, 17, 0.14), rgba(7, 32, 58, 0.45));
}

.Rec_StatLabel {
    font-size: 0.64rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--light-grey);
    margin-bottom: 0.4rem;
}

.Rec_CorrContainer h1, .Rec_PValContainer h1, .Rec_AvgResContainer h1 {
    font-size: clamp(1.25rem, 1.9vw, 1.65rem);
    color: var(--white-text);
    line-height: 1.15;
    font-weight: 650;
    margin-bottom: 0.25rem;
}

.Rec_StatHint {
    font-size: 0.73rem;
    color: rgba(202, 202, 202, 0.92);
    line-height: 1.35;
}

.Rec_CorrContainer:hover, .Rec_PValContainer:hover, .Rec_AvgResContainer:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.35);
    box-shadow: 0 10px 16px rgba(0, 0, 0, 0.2);
}

@media (max-width: 1100px) {
    .Rec_Bottom {
        flex-direction: column;
        align-items: stretch;
    }

    .Rec_ValidateContainer {
        width: 100%;
    }

    .Rec_PredictScores {
        flex: 1 1 100%;
        min-width: 0;
        margin-right: 0;
        margin-top: 0;
        height: auto;
    }

}


@media (max-width: 800px) {
  .Rec_PortfolioBreakdown {
    align-self: center;
    width: min(100%, 560px);
    margin: 0.4rem auto 0.7rem auto;
  }

  .Rec_Form {
    flex-direction: column;
    padding: 1rem;
    gap: 1.25rem;
  }

  .Rec_FormTitle {
    font-size: clamp(1.6rem, 7vw, 2rem);
    margin-bottom: 1.2rem;
  }

  .Rec_InputPanel {
    flex: 1 1 100%;
    max-width: 100%;
    margin-top: 0.5rem;
  }

  .Rec_PortfDisplay, .Rec_RightColumn {
    width: 100%;
  }

  .Rec_PortfDisplay {
    padding: 0.8rem;
    margin-top: 1rem;
  }

  .Rec_PortfolioTemp {
    padding: 2.3rem 0.6rem;
    font-size: 0.9rem;
  }

  .Rec_TextInput {
    height: 3rem;
    font-size: 0.95rem;
    padding: 0.55rem 4.5rem 0.55rem 1.1rem;
  }

  .Rec_AddBtn {
    width: 2.35rem;
    height: 2.35rem;
    right: 0.55rem;
  }

  .Rec_AddBtn img {
    width: 1.45rem;
    height: 1.45rem;
  }

  .Rec_QueueCount,
  .Rec_WaitTime {
    text-align: left;
    margin-right: 0;
    padding-right: 0;
    align-self: flex-start;
  }

  .Rec_SearchResults {
    width: min(94vw, 680px);
    height: min(70vh, 620px);
    top: 0;
    left: 0;
    transform: none;
    border-radius: 1rem;
  }

  .Rec_ResultHeader,
  .Rec_ResultItem {
    grid-template-columns: 1.6fr 1fr 1fr;
    gap: 0.5rem;
    font-size: 0.72rem;
    padding: 0.55rem 0.45rem;
  }

  .Rec_ResultHeader span:nth-child(4),
  .Rec_ResultItem span:nth-child(4) {
    display: none;
  }
}

@media (max-width: 1000px) {
    .Rec_Popup {
        top: 102px;
        height: calc(100dvh - 102px);
    }

    .Rec_Body {
        --rec-nav-offset: 102px;
        padding-top: 102px;
    }

    .Rec_Form {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .Rec_DashboardLayout {
        flex-direction: column;
    }

    .Rec_DashboardMenu {
        position: fixed;
        top: auto;
        left: 0.7rem;
        right: 0.7rem;
        bottom: max(0.7rem, env(safe-area-inset-bottom));
        z-index: 1300;
        width: auto;
        height: auto;
        min-height: 0;
        padding: 0.55rem 0.65rem;
        border: 1px solid rgba(202, 202, 202, 0.25);
        border-radius: 14px;
        background: rgba(7, 32, 58, 0.92);
        box-shadow: 0 10px 24px rgba(0, 0, 0, 0.33);
        backdrop-filter: blur(8px);
        flex-direction: row;
        align-items: center;
        gap: 0.55rem;
    }

    .Rec_PHolder {
        display: none;
    }

    .Rec_sidebar {
        flex: 1;
    }

    .Rec_menu {
        flex-direction: row;
        justify-content: flex-start;
        padding: 0;
        gap: 0.45rem;
    }

    .Rec_menu li a {
        flex-direction: row;
        gap: 0.35rem;
        font-size: 0.76rem;
        padding: 0.45rem 0.65rem;
        width: auto;
    }

    .Rec_menu li a:hover {
        transform: none;
    }

    .Rec_NewPortfolioBtn {
        width: auto;
        margin: 0 0 0 auto;
        font-size: 0.7rem;
        padding: 0.5rem 0.7rem;
        margin-bottom: 0;
    }

    .Rec_TopTitleContainer {
        margin: 0;
        padding: 0.95rem 0.9rem 0.5rem 0.9rem;
    }

    .Rec_TopTitleContainer h1 {
        max-width: 100%;
    }

    .Rec_TopTitleContainer p {
        width: 100%;
        margin-left: 0;
        font-size: 0.64rem;
    }

    .Rec_DashboardDisplay {
        padding-bottom: 6rem;
    }

    .Rec_Loading {
        min-height: calc(100dvh - 102px);
    }

    .Rec_Body.Rec_LoadingMode .Rec_DashboardDisplay {
        padding-bottom: 0;
    }
}

@media (max-width: 640px) {
    .Rec_Popup {
        top: 96px;
        height: calc(100dvh - 96px);
    }

    .Rec_Body {
        --rec-nav-offset: 96px;
        padding-top: 96px;
    }

    .Rec_YieldSTDSection {
        flex-direction: column !important;
    }

    .Rec_YieldContainer,
    .Rec_STDContainer,
    .Rec_PortfolioBreakdown,
    .Rec_PredictScores {
        width: 100%;
        min-width: 0;
    }

    .Rec_TopTitleContainer {
        flex-direction: column;
        gap: 0.45rem;
    }

    .Rec_menu .label {
        display: none;
    }

    .Rec_menu li a {
        min-width: 2.3rem;
        justify-content: center;
    }

    .Rec_Loading {
        min-height: calc(100dvh - 96px);
    }
}

@media (max-width: 800px) {
    .Rec_LearningChartContainer,
    .Rec_ValidateContainer {
        display: none;
    }

    .Rec_MobileChartsNotice {
        display: none;
    }

    .Rec_MobileChartsNotice.Rec_MobileChartsNotice--show {
        display: block;
    }
}


/*Geek notes ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ */

.Notes_Main{
    padding: 84px 2rem 4rem 2rem; /* account for fixed nav bar */
    background: #e9eef5;
}

.Notes_Text{
    max-width: 1080px;
    margin: 0 auto;
    border: 1px solid #c9d3e0;
    padding: 2rem 2.25rem;
    background-color: #fdfefe;
    box-shadow: 0 10px 24px rgba(15, 31, 52, 0.08);
}

.Notes_Main h3 {
    margin-top: 2rem;
    margin-bottom: 0.6rem;
    color: #102640;
    font-size: 1.2rem;
    letter-spacing: 0.01em;
}

.Notes_Main p {
    margin-bottom: 0.95rem;
    line-height: 1.7;
    color: #1f3348;
}

.Notes_Main img {
    display: block;
    margin: 1rem auto;
    border: 1px solid #d2dae4;
    background: #ffffff;
}

.Notes_Main ul {
    margin-bottom: 1rem;
    padding-left: 1.6rem;
    color: #1f3348;
}

.Notes_Main li {
    margin-bottom: 0.4rem;
    line-height: 1.55;
}

.Notes_Main h2 {
    margin-bottom: 0.35rem;
    text-align: left;
    color: #0e243d;
    font-size: 1.75rem;
    letter-spacing: 0.01em;
    border-bottom: 2px solid #d1dbe6;
    padding-bottom: 0.5rem;
}

.Notes_Main h4 {
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    color: #102640;
    font-size: 1.08rem;
    border-bottom: 1px solid #d7e0ea;
    padding-bottom: 0.35rem;
}

.Notes_Main h5 {
    margin-bottom: 0.5rem;
    color: #2d455d;
    font-style: italic;
    font-size: 0.98rem;
    font-weight: 500;
}

.Notes_Main code {
    background: #eef3f8;
    border: 1px solid #d4dce6;
    border-radius: 4px;
    padding: 0.05rem 0.35rem;
    font-size: 0.92em;
}

.Notes_HeaderP {
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    margin-top: 0.6rem;
    color: #3d566f;
    border-bottom: 1px solid #d1dbe6;
}

.Notes_NetworkEqu {
    width: 8em;
    height: auto;}

.Notes_SideNote {
    display: inline-block;
    vertical-align: middle;  
    width: 18em;             
    max-width: 100%;          
    height: auto;
    margin-left: 0.5rem;}

.Notes_GradCalc {
    width: auto;
    height: 70%;}

.Notes_GradStep {
    width: 90%;
    height: auto;
    max-width: 100%;}

.Notes_GradContainer {
    display: flex;               
    gap: 1rem;                   
    flex-wrap: wrap;
    padding: 0.5rem 0;
    align-items: stretch;}

.Notes_GradSection {
    flex: 1 1 45%;
    display: flex;               
    flex-direction: column;      
    justify-content: center;     
    text-align: center;  
    border: 1px solid #d2dbe6;
    background: #f6f9fc;
    padding: 0.9rem;}

.Notes_GradImageWrap {
    display: flex;
    align-items: center;   
    justify-content: center; 
    height: 200px;}

.Notes_GradEx {
    width: 50%;
    height: auto;}

.Notes_Step2Title {
    border-top: 1px solid #d3dce6;
    padding-top: 1rem;
}

.Notes_TrainingSteps {
    width: 80%;
    height: auto;}

.Notes_PerfvPred {
    width: 65%;
    height: auto;}

.Notes_DiffOpt {
    width: 45%;
    height: auto;}

.Notes_AddtnInfo {
    border-top: 1px solid #d3dce6;
    padding-top: 1rem;}

.Notes_StructureContainer {
    display: flex;           
    gap: 1rem;               
    flex-wrap: wrap;
    padding: 0.5rem 0;
    align-items: flex-start;}

.Notes_StructureTxt {
    flex:6; 
    display: flex;
    flex-direction: column;}

.Notes_StructureImg {
    flex:4; 
    display: flex;
    justify-content: flex-end;
    flex-direction: row;
    align-items:right;}

.Notes_NetworkDiagram {
    margin: 0 0 0 auto !important;
    display: block;
    width: 100%}

.Notes_StructureContainer ul li {
    margin-bottom: 0.55rem;}

.Notes_IndvNode{
    margin-top: 2rem;}

.Notes_SingleNode {
    margin: 0 0 0 auto !important;
    display: block;
    width: 60%}

.Notes_ActivationContainer {
    display: flex;           
    gap: 1rem;               
    flex-wrap: wrap;
    padding: 0.5rem 0;
    align-items: flex-start;}

.Notes_ActivationTxt {
    flex:6; 
    display: flex;
    flex-direction: column;}

.Notes_ActivationImg {
    flex:4; 
    display: flex;
    justify-content: flex-end;
    flex-direction: row;
    align-items:right;}

.Notes_ReLU {
    margin: 0 0 0 auto !important;
    display: block;
    width: 100%}

.Notes_Gaussian {
    width: 40%;
    height: auto;}

.Notes_GaussianLossEx {
    margin: 0 0 0 auto !important;
    display: block;
    width: 100%}

.Notes_GaussianExTxt {
    flex:3; 
    display: flex;
    flex-direction: column;}

.Notes_GaussianExImg {
    flex:7; 
    display: flex;
    justify-content: flex-end;
    flex-direction: row;
    align-items:right;}

@media (max-width: 800px) {
    .Notes_Main{
        padding: 78px 0.9rem 2rem 0.9rem;
    }

    .Notes_Text{
        padding: 1.25rem;
    }

    .Notes_GradEx {
        width: 100%;
        height: auto;
    }
    .Notes_TrainingSteps{
        width: 100%;
        height: auto;
    }
    .Notes_PerfvPred{
        width: 100%;
        height: auto;
    }
    .Notes_StructureContainer {
        flex-direction: column;
    }
  .Notes_SingleNode {
        width: 100%;
        margin: 0 auto;
    }

    .Notes_ActivationContainer{
        flex-direction: column;
    }
    .Notes_Gaussian {
    
        width: 80%;
        height: auto;
    }
    .Notes_DiffOpt {
        width: 100%;
        height: auto;
    }
}

@media (max-width: 1000px) {
    .Notes_Main {
        padding-top: 108px;
    }

    .Notes_Text {
        padding: 1.4rem;
    }
}

@media (max-width: 640px) {
    .Notes_Main {
        padding-top: 100px;
        padding-left: 0.65rem;
        padding-right: 0.65rem;
    }

    .Notes_Text {
        padding: 1rem;
    }

    .Notes_Main h2 {
        font-size: 1.42rem;
    }

    .Notes_Main h3 {
        font-size: 1.05rem;
    }

    .Notes_Main p,
    .Notes_Main li {
        font-size: 0.95rem;
        line-height: 1.62;
    }

    .Notes_SideNote,
    .Notes_NetworkEqu,
    .Notes_Gaussian,
    .Notes_GaussianLossEx,
    .Notes_NetworkDiagram,
    .Notes_ReLU {
        width: 100%;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .Notes_GradContainer,
    .Notes_StructureContainer,
    .Notes_ActivationContainer {
        gap: 0.7rem;
    }

    .Notes_GradSection {
        padding: 0.7rem;
    }

    .Notes_GradImageWrap {
        height: 145px;
    }
}


.Rec_GitDrawer {
    position: fixed;
    right: 0;
    top: 74px;
    display: flex;
    flex-direction: row-reverse;
    align-items: flex-start;
    z-index: 2200;
    pointer-events: none;
}

.Rec_GitDrawerTab {
    pointer-events: auto;
    position: relative;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    border: 1px solid #4f6f95;
    border-left: 0;
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
    border-top-right-radius: 14px;
    border-bottom-right-radius: 14px;
    background: linear-gradient(180deg, var(--dark-grey) 0%, var(--black-text) 100%);
    color: var(--white-text);
    padding: 0.62rem 0.82rem;
    min-height: 44px;
    min-width: 132px;
    letter-spacing: 0.08em;
    font-family: "Consolas", "Courier New", monospace;
    font-size: 0.76rem;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: -4px 4px 16px rgba(0, 0, 0, 0.32);
}

.Rec_GitDrawerTab::after {
    content: "\2630";
    font-size: 0.98rem;
    line-height: 1;
    color: #b9d4ef;
}

.Rec_GitDrawerTab[aria-expanded="true"]::after {
    content: "\00d7";
    font-size: 1rem;
    color: #ffffff;
}

.Rec_GitDrawerTab:hover {
    color: #ffffff;
    background: var(--primary-color)
}

.Rec_GitDrawerPanel {
    pointer-events: none;
    width: min(450px, 84vw);
    height: min(72vh, 620px);
    overflow: auto;
    background: linear-gradient(180deg, #0a101b 0%, #090f19 100%);
    border: 1px solid #2d4362;
    border-right: 0;
    border-top-left-radius: 14px;
    border-bottom-left-radius: 14px;
    box-shadow: -16px 8px 34px rgba(0, 0, 0, 0.5);
    padding: 1rem;
    transform: translateX(100%);
    opacity: 0;
    transition: transform 0.24s ease, opacity 0.24s ease;
}

.Rec_GitDrawer--open .Rec_GitDrawerPanel {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
}

.Rec_GitDrawerHeader {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    border-bottom: 1px solid #1e2a3b;
    padding-bottom: 0.5rem;
    margin-bottom: 0.5rem;
}

.Rec_GitDrawerHeader h3 {
    margin: 0;
    font-family: "Consolas", "Courier New", monospace;
    font-size: 0.96rem;
    color: #e9f5ff;
}

.Rec_GitDrawerHint {
    font-family: "Consolas", "Courier New", monospace;
    font-size: 0.74rem;
    color: #6f89a8;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.Rec_PublicCommits {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.Rec_PublicCommits li {
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 0.65rem;
    padding: 0.45rem 0.5rem;
    border: 1px solid #182436;
    border-radius: 6px;
    background: #0d1726;
    color: #d2e6ff;
    font-family: "Consolas", "Courier New", monospace;
    font-size: 0.8rem;
    line-height: 1.4;
}

.Rec_PublicCommits .Rec_GitHash {
    color: #57c7ff;
}

.Rec_PublicCommits .Rec_GitDate {
    color: #8ca8c6;
}

.Rec_PublicCommits .Rec_GitMessage {
    color: #e3edf9;
    word-break: break-word;
}

@media (max-width: 1000px) {
    .Rec_GitDrawer {
        top: auto;
        bottom: 14px;
    }

    .Rec_GitDrawerTab {
        min-height: 40px;
        min-width: 116px;
        padding: 0.56rem 0.72rem;
        font-size: 0.72rem;
    }

    .Rec_GitDrawerPanel {
        width: min(92vw, 420px);
        height: min(66vh, 520px);
    }

    .Rec_PublicCommits li {
        grid-template-columns: 90px 1fr;
        font-size: 0.74rem;
    }
}
