@custom-variant dark (&:where([data-theme=dark], [data-theme=dark] *));

/* Ensure ScrollIntoView has space */ 
html {
     scroll-padding-top: 8rem;
}
 
/* CUSTOM */
/* Fix CKEditor CSS */

.ck.ck-editor {
    color: black !important;
}
.ck.ck-editor h1{
    font-weight:bold;
    font-size:1.6em;
}
.ck.ck-editor h2{
    font-weight:bold;
    font-size:1.4em;
}
.ck.ck-editor h3{
    font-weight:bold;
    font-size:1.2em;
}



.ck.ck-editor textarea {
    background-color: white !important;
    /*color: white !important;*/
}
.ck.ck-editor.dark{
    color: white !important;
}
.ck .ck-hidden {
    color:white !important;
    background-color: white !important;
}
/*End of for dark mode*/

/*To show the ul icon*/
.ck-content ul {
    padding-left: 1em;
}

.ck-content ol {
    padding-left: 1em;
}

.ck.ck-editor a {
    color: blue;
}
.ck.ck-editor a:hover {
    color: lightblue;
}

.ck-content {
    display: flex;
    flex-direction: column;
    width: 100%;
    justify-items: stretch;
    row-gap:calc(var(--spacing) * 3);
}
.ck-content .raw-html-embed {
    width:100%;
}


/* End of Fix CKEditor CSS */

/* Chip Card Component Styles */

div[id^="card_body_"] ul {
    list-style: none;
    list-style-position: outside;
}

div[id^="card_body_"] ul li {
    margin-top:5px;
    padding-left: 25px;
    padding-top: 5px;
    padding-bottom: 5px;
    white-space: normal;
    background:url("/static/images/list.d606dbeb5405.svg") no-repeat left center;
    overflow-wrap: break-word;   
}
/* End of Card Component Styles */

.special-list-section {
    display:flex;
    flex-direction: column;
} 
.special-list-section ul {
    list-style: none;
    list-style-position: outside;
    
}

.special-list-section ul > li {
    margin-top:5px;
    padding-left: 25px;
    padding-top: 5px;
    padding-bottom: 5px;
    white-space: normal;
    background:url("/static/images/list.d606dbeb5405.svg") no-repeat left center;
    overflow-wrap: break-word;   
     
}


ul.catalog {
    list-style-position: outside;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

ul.catalog > li {
    padding-left: 30px;
    white-space: normal;
    background:url("/static/images/arrow.c09834114872.svg") no-repeat left center;

    background-size: 12px 12px;
    overflow-wrap: break-word;   
     
}


#form_program span a {
    color: darkred;
}

.message-error {
    border-width: 1px; 
    border-color: #F87171; 
    color: #B91C1C; 
    background-color: #FEE2E2; 
}

.message-success {
    border-width: 1px; 
    border-color: #aeffd7; 
    color: #076036; 
    background-color: #70ffb9; 
}

form.editform ul.errorlist {
    width:fit-content;
   /* border-width: 3px; 
    padding-top: 1rem;
    padding-bottom: 1rem;
    padding-left: 1rem;
    border-color: darkred; 
    border-radius: 30px;*/
    color:darkred;
}

.vl {
  border-left: 2px solid dimgray;
  height: auto;
}

.user-edit-anchor {
    color: var(--color-blue-500)
}

.user-edit-anchor:hover {
    color: var(--color-rose-500)
}

button.disabled-button{
  pointer-events: none;
  background-color: rgba(62, 65, 70, 0.214);
  border-color: rgba(62, 65, 70, 0.214);
  color:rgba(62, 65, 70, 0.214);
  outline-color: rgba(62, 65, 70, 0.214);;
}

/* Post */
.post-style {
    display:flex;
    flex-direction: column;
    color:rgb(31, 41, 55);

}

.post-style a:not([href^="#"]),
div[id^='answer-']  a:not([href^="#"]) {
  color: #4299e1; 
}

.post-style a:not([href^="#"]):hover,
div[id^='answer-'] a:not([href^="#"]):hover {
  color: #1d4ed8; 
  text-decoration: underline;
}

.dark .post-style {
    color:rgb(229, 229, 229);
}

.post-style > p {
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
}


.post-style > h3 {
    font-size: 1.25rem;
    font-weight: bold;
}

.post-style > h1 {
    font-size: 1.75rem;
    font-weight: bold;
}

.post-style > h2 {
    font-size: 1.5rem;
    font-weight: bold;
}


.post-style ul,
.post-style ol,
div[id^='answer-'] ul,
div[id^='answer-'] ol {
    list-style-position: outside;
    margin-left: 20px;
    /*margin-top: 1.25rem;*/
}

.post-style li {
    /* Tailwind spacing is 0.25rem per number */
    padding-top: 0.625rem; /* 0.25 * 2.5 */
    padding-bottom: 0.625rem;
    padding-inline-start: 0.5rem;  /* 5*0.25 */
}



.post-style ul,
div[id^='answer-'] ul {
    list-style-type:initial;
}

.post-style ol,
div[id^='answer'] ol {
    list-style-type: decimal;
}

.post-style  li > p {
    font-size: 18px;
    margin: 10px 0; 
}

.post-style ol,
div[id^='answer-'] ol {
	list-style-type:decimal;
}

.post-style ol ol,
div[id^='answer-'] ol ol {
		list-style-type:lower-latin;
	}

.post-style ol ol ol,
div[id^='answer-'] ol ol ol{
			list-style-type:lower-roman;
		}

.post-style ol ol ol ol,
div[id^='answer-'] ol ol ol ol {
				list-style-type:upper-latin;
			}

.post-style ol ol ol ol ol,
div[id^='answer-'] ol ol ol ol ol ol {
					list-style-type:upper-roman;
				}

.post-style ul, 
div[id^='answer-'] ul{
	list-style-type:disc;
}

.post-style ul ul, 
div[id^='answer-'] ul ul {
		list-style-type:circle;
	}

.post-style ul ul ul,
div[id^='answer-'] ul ul ul{
			list-style-type:square;
		}

.post-style ul ul ul ul,
div[id^='answer-'] ul ul ul ul {
				list-style-type:square;
			}


.post-style figure,
div[id^='answer'] figure {
    width:fit-content;
    margin:auto;
    padding-top: 1rem ;
    padding-bottom: 1rem ;
}

.post-style figure.image,
div[id^='answer'] figure.image {
    
    padding-top:1rem;
    padding-bottom:1rem;
}

.post-style figure.image img {
    background-color: #fff; /* Add White Background if transparent */
    width:100%;
    border-radius: var(--radius-xl);

}

.post-style figure.image figcaption,
div[id^='answer-'] figure.image figcaption {
    display:block;
    margin-top: 0.75rem ;
    font-size: 0.875rem ; 
    line-height: 1.25rem ; 
    text-align: center ; 
    color: #6b7280 ; 
}


.stop-scrolling {
  height: 100%;
  overflow-anchor: none;
  
}

/* Default table style */


.post-style table th,
.post-style table td,
div[id^='answer-'] th,
div[id^='answer-'] td{
    background: #fff;
    color: #000;
}

.post-style table, 
div[id^='answer-'] table {
    table-layout: auto;
    width:100%;
}

.post-style figure.table,
div[id^='answer-'] figure.table {
    width: 100%;
}



/* External CSS */

/* 通用表格样式（可复用） */
.post-style .comparison-table-container { 
    max-width: 900px;
    margin: 20px auto;
    background: white;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    font-family: Arial, sans-serif;
    color: #333;
}

.post-style .comparison-table {
    table-layout:fixed;
    width:100%;
    border-collapse: collapse;
    font-size: 14px;
}

.post-style .comparison-table th,
.post-style .comparison-table td {
    border: 1px solid #ddd;
    text-align: center;
}

.post-style .comparison-table th {
    background-color: #f2f2f2;
    font-weight: bold;
    white-space: nowrap;
}

/* .post-style .comparison-table th:first-child,
.post-style .comparison-table td:first-child {
    
    min-width: 120px;
} */

.post-style .comparison-table th,
.post-style .comparison-table td {
    text-align: left;
    /* 全部左对齐 */
    padding: 10px;
}

.post-style .comparison-table .subcategory-row {
    text-align: left;
    padding-left: 20px;
}

.post-style .highlight {
    color: red;
    font-weight: bold;
}

.post-style .chip-container {
    display: flex;
    align-items: flex-end; /* 底部对齐 */
    justify-content: center; /* 水平居中 */
    gap: 10px; /* 保留极小间距避免完全贴死 */
    box-sizing: border-box;
    max-width: 100%; /* 限制容器宽度，防止溢出 */
}
.post-style .chip-img {
    border-radius: 4px;
    object-fit: contain;
}

.post-style .chip-img.left {
    width: 240px;
    height: 240px;
}
.post-style .chip-img.right {
    width: 160px;
    height: 160px;
}



.post-style .old-website-style ul {
    list-style-type: disc;
    list-style-position: inside;
    margin: 0;
    line-height: 1.6; /* 统一行高，确保文字行间距一致 */
}
/* 子列表样式 */
.post-style .old-website-style ul ul {
    list-style-type: circle;
    padding-left: 1.5rem;
}
/* 关键：统一所有层级列表项的间距 */
.post-style .old-website-style li {
    margin: 0; /* 上下间距相等，控制行与行之间的距离 */
}
/* 移除首尾项的额外间距，避免整体上下留白过多 */
.post-style .old-website-style ul:first-child > li:first-child {
    margin-top: 0;
}
.post-style .old-website-style ul:last-child > li:last-child {
    margin-bottom: 0;
}
.post-style .old-website-style b {
    font-weight: bold;
}
.post-style .old-website-style .text-lg {
    font-size: 1.125rem;
}

.post-style .table-container {
    max-width: 900px;
    margin: 2rem;
    font-family: Arial, sans-serif;
    color: #333;
    background: white;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.post-style .old-website-style table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    color: #000;
}

.post-style .old-website-style th, td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: center;
}

.post-style .old-website-style th {
    background-color: #f2f2f2;
    font-weight: bold;
}

.post-style .old-website-style .category-row {
    background-color: #e9e9e9;
    font-weight: bold;
    text-align: left;
}

.post-style .old-website-style .subcategory-row {
    text-align: left;
    padding-left: 20px;
}

.post-style .old-website-style .highlight {
    color: red;
    font-weight: bold;
}

.post-style .old-website-style .model-header {
    background-color: #f2f2f2;
    font-weight: bold;
}

.post-style p > img {
    background-color: white;
}

/* .post-style .resources-table body {
    margin: 0;
    font-family: Arial, sans-serif;
}

.post-style .resources-table .table-container {
    max-width: 800px;
    margin: 2rem;
    background: white;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.post-style .resources-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    color: #000;
}

.post-style .resources-table th, td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left;
    
}

.post-style .resources-table th {
    background-color: #f2f2f2;
    font-weight: bold;
}


.post-style .resources-table tr:nth-child(odd) {
    background-color: #fff;
}


.post-style .resources-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.post-style .resources-table .header {
    text-align: center;
    margin-bottom: 20px;
    padding: 10px;
    background: white;
}

.post-style .resources-table .footer {
    text-align: center;
    padding: 10px;
    color: #666;
    font-size: 12px;
} */

.post-style .table-container tr:nth-child(odd) {
    background-color: #fff;
}


.post-style .table-container tr:nth-child(even) {
    background-color: #f9f9f9;
}

/* #PostForm ::-webkit-calendar-picker-indicator{
    background: red linear-gradient(0deg, red 0%, red 100%);
} */