/* =========================
   GLOBAL THEME VARIABLES
   ========================= */
:root {
	--brand-color: #2f4f8f;
	--brand-color-soft: rgba(47, 79, 143, 0.10);

	--text-main: #1f2328;
	--text-muted: #57606a;

	--nav-text-hover-color: var(--brand-color);
	--header-gradient-image: none;

	--memdef-border-color: transparent;
	--memdef-proto-background-color: transparent;
	--memdef-title-gradient-image: none;
	--memdef-title-background-color: transparent;
	--memdef-proto-text-shadow: none;
	--memdef-doc-background-color: transparent;
}

/* =========================
   BASE LAYOUT & TYPOGRAPHY
   ========================= */
body {
	max-width: 1000px;
	margin: auto;
	margin-bottom: 128px;
	padding-left: 5%;
	padding-right: 5%;
padding-top: 10px;
    padding-bottom: 80px;
	font-size: 16px;
	line-height: 1.7;
	color: var(--text-main);
	background: #ffffff;
}

body, table, div, p, dl, #projectbrief, .sm-dox a {
	font-size: 16px;
	
}



p {
	margin: 0.75em 0;
}

/* =========================
   HEADER / LOGO
   ========================= */
#titlearea {
    border: none;
    padding-top: 32px;
     margin-top: 40px;
    margin-bottom: 40px;
    padding-top: 24px;
    padding-bottom: 24px;
    background: #1f3154;
    border-radius: 9px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 8px 7px 11px #101111;
}
@media (prefers-color-scheme: light) {
    #titlearea {
        background: transparent !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        border: none !important;
    }
}

#projectname {
	font-weight: 600;
}

#projectbrief {
	padding-left: 16px;
	color: var(--text-muted);
}

#projectname,
#projectbrief {
	display: inline-block;
}

#projectlogo img {
	width: 512px;
	max-width: 100%;
	height: auto;
}

/* =========================
   SEARCH
   ========================= */
#MSearchBox {
	border-radius: 6px;
	border: 1px solid #2f4f8f;
	box-shadow: none;
	padding: 5px 15px;
	background-color: transparent;
}

/* =========================
   CONTENT AREA
   ========================= */
#doc-content {
	height: auto !important;
	padding-bottom: 64px;
}

div.header,
div.memitem {
	border-top: 1px solid var(--group-header-separator-color);
	border-bottom: 1px solid var(--group-header-separator-color);
}
address.footer {
    text-align: right;
    padding-right: 12px;
    margin-top: 60px;
    padding-top: 24px;
    padding-bottom: 24px;
}
/* =========================
   HEADINGS
   ========================= */
h1, h2, h3, h4, h5, h6 {
	color: var(--brand-color);
	font-weight: 600;
	margin-top: 1.6em;
	margin-bottom: 0.6em;
}

/* =========================
   MEMBER BLOCKS
   ========================= */
div.memitem {
	margin: 16px 0;
	padding: 14px;
	background: var(--brand-color-soft);
	border-radius: 8px;
}

div.memitem > * {
	padding-left: 16px;
	padding-right: 16px;
}

.memtitle {
	background: none;
	border: none;
	font-weight: 600;
	color: var(--brand-color);
}

.memdoc,
.memproto {
	box-shadow: none;
	background: none;
	border: none;
}
ul {
    overflow: visible;
    line-height: 30px;
}
#textblockHead{
        font-family: var(--font-family-normal);
    line-height: 28px;
    font-size: 19px;
    font-weight: bold;
    margin: 10px 2px;
}
#textblockPara {
    line-height: 30px;
    padding: 7px 9px;
    font-size: 17px;
}
/* =========================
   CODE BLOCKS
   ========================= */
div.fragment {
	padding: 16px;
	border-radius: 8px;
	background: #f6f8fa;
	border: 1px solid #d8dee4;
	overflow-x: auto;
	font-size: 14px;
	line-height: 1.6;
}
hr {
    margin-top: 40px;
    margin-bottom: 40px;
}

/* =========================
   NAVIGATION (SM-DOX)
   ========================= */
.sm-dox {
	background: none;
	padding-left: 0;
	padding-right: 0;
	margin: 10px auto;
}

.sm-dox a,
.sm-dox a:focus,
.sm-dox a:active,
.sm-dox a:hover,
.sm-dox a.highlighted {
	background: none;
	color: var(--brand-color);
	text-shadow: none;
	outline: none;
	 transform: none !important;
	 font-size: 16px !important;
	

}
.sm-dox li,
.sm-dox li:hover {
    transform: none !important;
}

.sm-dox a:hover {
	 color: #032e7c;
	  	   transition: all cubic-bezier(0.19, 1, 0.22, 1) 1s;


}

/* =========================
   LINKS
   ========================= */
a {
	color: var(--brand-color);
	text-decoration: none;
}



a:hover {
	color: #032e7c;
   transition:  cubic-bezier(0.19, 1, 0.22, 1) 1s;
   	text-decoration: none;


}

.permalink a,
.permalink a:visited {
	color: #8c959f;
}

/* =========================
   NOTES
   ========================= */
dl.note {
	border: none;
	margin: 1em 0;
	color: var(--text-muted);
}

/* =========================
   DARK MODE
   ========================= */
@media (prefers-color-scheme: dark) {

	body {
		background: #0d1117;
		color: #c9d1d9;
	}

	#titlearea {
    border: none;
    padding-top: 32px;
    margin-bottom: 24px;
    margin-top: 23px;
    padding: 10px 20px;
    background: #1f3154;
    border-radius: 9px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 8px 7px 11px #101111;
	width: 100%;
}

#MSearchBox {
    border-radius: 6px;
    border: 1px solid #2f4f8f;
    box-shadow: none;
    padding: 2px 9px;
    background-color: transparent;
}

.title {
    font-weight: 400;
    font-size: 14px;
    font-family: var(--font-family-normal);
    line-height: 28px;
    font-size: 119%;
    font-weight: bold;
    margin: 10px 2px;
}

	p {
		color: #c9d1d9;
	}

	
	h1, h2, h3, h4, h5, h6 {
		color: #9db4e4;
	}

	div.fragment {
		background: #161b22;
		border-color: #30363d;
	}

	div.memitem {
		background: rgba(100, 130, 180, 0.14);
	}

	a {
		color: #9db4e4;
	}

	/* LOGO VISIBILITY FIX */
	#projectlogo img {
		filter: brightness(1.15) contrast(1.05);
	}
}
/* =========================
   RESPONSIVE DESIGN (MOBILE)
   ========================= */

@media (max-width: 425px) {
    body {
        /* Remove fixed width and use full width with padding */
        max-width: 100%; 
        padding-left: 15px;
        padding-right: 15px;
        margin-bottom: 64px; /* Less bottom margin on mobile */
    }
	
    #titlearea {
        flex-direction: column; /* Stack logo and text vertically */
        padding: 20px 10px;
        width: auto; /* Allow it to fill the screen width */
    }

    #projectlogo img {
        width: 100%; /* Ensure logo doesn't overflow */
        max-width: 300px; /* Cap size so it's not too huge on small screens */
        margin-bottom: 15px;
    }

    #projectbrief {
        padding-left: 0;
        display: block; /* Move brief to its own line */
        margin-top: 5px;
        font-size: 14px;
    }

 .sm-dox li {
        width: 100%;
        /* text-align: center; */
        padding: 3px 20px;
    }


    
    div.memitem {
        padding: 10px;
        margin: 10px 0;
    }

    div.memitem > * {
        padding-left: 5px;
        padding-right: 5px;
    }

    
    div.fragment {
        font-size: 12px;
        padding: 10px;
    }

    h1 { font-size: 24px; }
    h2 { font-size: 20px; }
}