/* Material Symbols Outlined (icon font for EC index etc.) */
@import url("https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,0..1&display=swap");

.material-symbols-outlined {
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
  vertical-align: middle;
  line-height: 1;
}

/* Automatically style all screenshots in screenshots/ folder */
.md-typeset img[src*="images"] {
  border-radius: 8px;
  /* your rounded corners */
  /* box-shadow: 0 6px 12px rgba(0,0,0,0.2);  your shadow */
  box-shadow: 0 4px 7px rgba(0, 0, 0, 0.2);
  /* sharper and more focused */
  /* max-width: 86.5%;      prevent overflow on small screens */
  height: auto;
  /* maintain aspect ratio */
  /* display: block;
    margin: 1.5rem auto; vertical spacing + center horizontally */
}

/* Apply matching styles to embedded videos and iframes */
.md-typeset iframe, 
.md-typeset video,
.md-typeset .video-wrapper,
.md-typeset .video-container {
    border-radius: 8px;
    box-shadow: 0 4px 7px rgba(0, 0, 0, 0.2);
    /* Prevent sharp corners from showing if the video doesn't have a radius */
    overflow: hidden; 
    /* Maintain spacing similar to your images */
    margin-bottom: 1rem;
    height: auto;
}

/* Ensure the iframe itself is contained within the rounded border */
.md-typeset .video-wrapper iframe {
    border: none;
    border-radius: 8px;
}


/* Screenshot styling for External Images*/
.screenshot {
  /* padding: 0.1rem; */
  /* background-color: var(--md-default-fg-color--lightest); */
  /* border-radius: 0.2rem; */
  border-radius: 8px;
  width: 100%;
  /* explicitly smaller width */
  /* max-width: 90%;      prevent overflow on small screens */
  height: auto;
  /* maintain aspect ratio */
  margin: auto;
  /* box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); */
  /* box-shadow: 0 6px 12px rgba(0,0,0,0.2); */
  box-shadow: 0 4px 7px rgba(0, 0, 0, 0.2);
  /* sharper and more focused */
}

/* Link Underline */
/* a { */
/*   text-decoration: none !important; */
/* } */

/* Keep buttons and grids clean */
.md-content .md-button,
.md-content .md-card,
.md-content .grid a,
.md-content .cards a,
.md-content li > a:has(img) {
  text-decoration: none !important;
}

/* Home Page Latest Docs box styling */
.latest-docs {
  border-radius: 12px;
  padding: 1.5rem;
}

/* Adjusting overall max width of the content area */


/* .md-grid {
  max-width: 1440px; 
  max-width: 1550px; 
  gap: 0.5rem; 
  gap: 1.7rem;
}  */

.md-grid {
  max-width: 97%;
  width: 97%;
}

/* Subtitle styling */
.subtitle {
  margin-top: -1em;
  /* pull it closer to H1 */
  font-size: 1.3em;
  font-weight: 445;
  /* slightly lighter than normal */
  color: var(--md-typeset-secondary-text, #8c8c8c);
  line-height: 1.2;
}

/* Adjusting border of secondary nav toc */

.md-nav--secondary {
  border-left: 2.5px solid var(--md-default-fg-color--lightest);
}

/* TOC Left Side Vertical Distinction Line */
/* .md-nav--secondary { */
/*   border-left: 2.5px solid var(--md-default-fg-color--lightest); */
/* } */

/* 修改後的左側對稱垂直線 */
/* @media screen and (min-width: 76.25em) { */
/*     .md-main__inner { */
/*         /* 使用與右側相同的變數與厚度 (2.5px) */ */
/*         background-image: linear-gradient( */
/*             to right, */
/*             transparent 12.1rem, */
/*             var(--md-default-fg-color--lightest) 12.1rem, */
/*             var(--md-default-fg-color--lightest) calc(12.1rem + 2.5px), */
/*             transparent calc(12.1rem + 2.5px) */
/*         ); */
/*         background-repeat: no-repeat; */
/*         background-size: 100% 100%; */
/*     } */
/* } */


/* Draw both left and right vertical column distinction lines to be perfectly symmetrical */
/* @media screen and (min-width: 76.25em) { */
/*     .md-main__inner { */
/*         background-image:  */
/*             /* 左側線條 */ */
/*             linear-gradient( */
/*                 to bottom, */
/*                 var(--md-default-fg-color--lightest), */
/*                 var(--md-default-fg-color--lightest) */
/*             ), */
/*             /* 右側線條 */ */
/*             linear-gradient( */
/*                 to bottom, */
/*                 var(--md-default-fg-color--lightest), */
/*                 var(--md-default-fg-color--lightest) */
/*             ); */
/**/
/*         /* 設定背景不重複 */ */
/*         background-repeat: no-repeat; */
/**/
/*         /* 設定線條的寬度與高度 */ */
/*         /* 第一組控制左線：寬 2.5px，高度為容器的 95% (達成上下縮短效果) */ */
/*         /* 第二組控制右線：寬 2.5px，高度同上 */ */
/*         background-size: 2.5px 99%, 2.5px 99%; */
/**/
/*         /* 設定線條的位置 */ */
/*         /* 左線：距離左邊 12.1rem，垂直置中 (center) */ */
/*         /* 右線：距離右邊 12.1rem，垂直置中 (center) */ */
/*         background-position: 12.1rem center, calc(100% - 12.1rem) center; */
/*     } */
/* } */


/* Card background colors for light and dark mode */
:root {
  /* --card-bg: #f2f6fc;     light mode */
  --card-bg: #FAF9F5;
  /* light mode
  /* --card-bg: #F2F2F2; light mode */
}

[data-md-color-scheme="slate"] {
  --card-bg: #1e1e1e;
  /* dark mode */
}

.cards-bg li {
  background-color: var(--card-bg);
}

/* Heading styles */
.md-typeset h2 {
  font-weight: 700;
  border-bottom: 1px solid var(--md-default-fg-color--lightest);
  padding-bottom: 0.4rem;
}

.md-typeset h3 {
  font-weight: 600;
  /* border-bottom: 1px solid var(--md-default-fg-color--lightest);
  padding-bottom: 0.4rem; */
}

/* Metadata styling for docs */
.doc-badge {
  margin-top: .5rem;
  /* space above */
  margin-bottom: 1.25rem;
  /* space below */
  font-size: .8rem;
  /* smaller text */
  gap: 1.5rem;
  /* badge 之間間距 */
  color: inherit;
  /* color: var(--md-default-fg-color--light); lighter color */
}


/* Global hover color for links
.md-typeset a:hover {
  color: #ff9d3f !important;
} */


/* Apply underline effect to ALL non-button links (including data-preview) */
/* .md-content a:not(.md-button):not(.md-button--primary):not(:has(img)) { */
/*   position: relative; */
/*   text-decoration: none; */
/* } */

/* Use ::before for underline to avoid conflict with preview icon */
/* .md-content a:not(.md-button):not(.md-button--primary):not(:has(img))::before { */
/*   content: ""; */
/*   position: absolute; */
/*   left: 0; */
/*   bottom: -2px; */
/*   width: 100%; */
/*   height: 1px; */
/*   background-color: currentColor; */
/*   transform: scaleX(0); */
/*   transition: transform 0.2s ease-in-out; */
/*   transform-origin: right; */
/*   pointer-events: none; */
/* } */

/* Hover animation */
/* .md-content a:not(.md-button):not(.md-button--primary):hover::before { */
/*   transform: scaleX(1); */
/*   transform-origin: left; */
/* } */


/* Create margins for the central content column */
.md-content {
    margin-left: auto;
    margin-right: auto;
    padding-left: 2rem;  /* Space from left sidebar */
    padding-right: 2rem; /* Space from right TOC */
}

/* Optional: Add a subtle border or background to further separate it */
.md-content__inner {
    background: transparent; 
    /* border-left: 1px solid #eee; */ /* Uncomment if you want a divider line */
    /* border-right: 1px solid #eee; */
}


.hero-page {
  /* border-radius: 8px 8px 0 0 !important;       top-left, top-right, bottom-right, bottom-left */
  box-shadow: 0 4px 7px rgba(0, 0, 0, 0.2);
  width: 600px;
  /*  explicitly smaller width */
  max-width: 100%;
  /* prevent overflow on tiny screens */
  height: auto;
  /* display: block;                     */
  /* margin: 0.5rem auto -3em auto;                    remove vertical spacing, center horizontally */
  padding-bottom: 0;
}

/* extra.css */

/* Make the button small and square */
.md-typeset .md-button.btn-tag {
  /* border-radius: 12px;       Makes it square (standard is 2rem) */
  font-size: 0.6rem;
  /* Reduces text size */
  background-color: var(--md-default-bg-color);
  border: 1px solid var(--md-default-fg-color--lighter);
}

.md-typeset .md-button.extension-tag {
  /* border-radius: 12px;       Makes it square (standard is 2rem) */
  font-size: 0.53rem;
  /* Reduces text size */
  margin-bottom: 0.5rem;
  /* Adds space between tag and following text */
}

/* Custom Page Status: update */
:root {
  /* Zensical New Status - FOSS (Material Design Icons - Apache 2.0) */
  /* 圖示內容是一個帶有 'NEW' 字樣的標籤徽章 */
  --md-status--update: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 10"><path d="M0 10V0h2l3.5 5.5V0h2v10H5.5L2 4.5V10H0m9 0V0h5v2h-3v2h2.5v2H11v2h3.5v2H9m6.5 0l-1-10h2l.5 5.5L17.5 0h2l-.5 5.5.5 4.5h-1.5l-.5-4.5-.5 4.5h-1.5z"/></svg>');
}

/* 針對 Z-NEW 的樣式設定 */
.md-status--update::after {
  mask-image: var(--md-status--update);
  -webkit-mask-image: var(--md-status--update);
  background-color: #1E88E5;
}

/* Custom page status icon default example
:root {
  --md-status--happy: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 2A10 10 0 0 0 2 12a10 10 0 0 0 10 10 10 10 0 0 0 10-10A10 10 0 0 0 12 2M7 9.5C7 8.7 7.7 8 8.5 8s1.5.7 1.5 1.5S9.3 11 8.5 11 7 10.3 7 9.5m5 7.73c-1.75 0-3.29-.73-4.19-1.81L9.23 14c.45.72 1.52 1.23 2.77 1.23s2.32-.51 2.77-1.23l1.42 1.42c-.9 1.08-2.44 1.81-4.19 1.81M15.5 11c-.8 0-1.5-.7-1.5-1.5S14.7 8 15.5 8s1.5.7 1.5 1.5-.7 1.5-1.5 1.5Z"/></svg>')
}

.md-status--happy::after {
  mask-image: var(--md-status--happy);
  -webkit-mask-image: var(--md-status--happy);
}
*/

/* :root {
  --md-nav-width: 320px;
  --md-content-max-width: 960px;
  --md-toc-width: 300px;
} */

/* @media (min-width: 76.25em) {
  .md-main__inner {
    gap: 0.7rem;
  }
} */

/* sidebar divider line styling */
/* 1. 針對包含 divider 的連結項目 */
.md-nav__item .md-nav__link[href*="divider"] {
  /* 強制禁用所有滑鼠事件 */
  pointer-events: none !important; 
  cursor: default !important;
  
  /* 移除所有預設的 hover 背景色 */
  background-color: transparent !important;
  
  /* 佈局設定 */
  display: flex;
  align-items: center;
  padding: 0 !important;
  margin: 15px 10px !important;
  height: 1px;
  border: none; /* 移除可能的預設框線 */
}

/* 2. 畫出分隔線 */
.md-nav__item .md-nav__link[href*="divider"]::before {
  content: "";
  flex: 1;
  height: 1px;
  background-color: #e0e0e0; /* 你的線條顏色 */
}

/* 3. 徹底隱藏所有內部標籤，防止它們撐開點擊範圍 */
.md-nav__item .md-nav__link[href*="divider"] span,
.md-nav__item .md-nav__link[href*="divider"] .md-icon,
.md-nav__item .md-nav__link[href*="divider"] .md-nav__icon {
  display: none !important;
}

/* 4. 防止行動版/抽屜選單中的 Label 觸發展開行為 */
.md-nav__item label[for*="divider"] {
  pointer-events: none !important;
  display: none !important;
}

/* Screenshot styling for External Images*/
.small-image {
  /* padding: 0.1rem; */
  /* background-color: var(--md-default-fg-color--lightest); */
  /* border-radius: 0.2rem; */
  border-radius: 8px;
  width: 60%;
  /* explicitly smaller width */
  /* max-width: 90%;      prevent overflow on small screens */
  height: auto;
  /* maintain aspect ratio */
  margin: auto;
  /* box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); */
  /* box-shadow: 0 6px 12px rgba(0,0,0,0.2); */
  box-shadow: 0 4px 7px rgba(0, 0, 0, 0.2);
  /* sharper and more focused */
}



/* Custom Admonitions

/* Admontion Path
/* 同時針對 靜態 (!!!) 與 可摺疊 (???) 進行樣式設定 */
.md-typeset .admonition.path,
.md-typeset details.path {
    border-color: #94a3b8;
    background-color: #f1f5f9;
    border-left-width: 4px;
    border-right-width: 0;
    border-top-width: 0;
    border-bottom-width: 0;
}

/* 針對可摺疊區塊的標題 (summary) */
.md-typeset .path > .admonition-title,
.md-typeset .path > summary {
    background-color: transparent;
    font-weight: 700;
    color: #475569;
}

/* 確保摺疊時的圖示顏色與位置一致 */
.md-typeset .path > .admonition-title::before,
.md-typeset .path > summary::before {
    background-color: #64748b;
    mask-image: var(--md-admonition-icon--path);
}

/* Admonition Plan
/* 同時針對 靜態 (!!!) 與 可摺疊 (???) 進行樣式設定 */
.md-typeset .admonition.plan,
.md-typeset details.plan {
    border-color: #a855f7;    /* Purple 500 - Distinct from Note blue */
    background-color: #faf5ff; /* Purple 50 - Clearly different from slate/blue */
    border-left-width: 4px;
    border-right-width: 0;
    border-top-width: 0;
    border-bottom-width: 0;
}

/* 針對可摺疊區塊的標題 (summary) */
.md-typeset .plan > .admonition-title,
.md-typeset .plan > summary {
    background-color: transparent;
    font-weight: 700;
}

/* 確保摺疊時的圖示顏色與位置一致 */
.md-typeset .plan > .admonition-title::before,
.md-typeset .plan > summary::before {
    background-color: #a855f7;
    -webkit-mask-image: var(--md-admonition-icon--plan);
    mask-image: var(--md-admonition-icon--plan);
}

/* ==========================================================================
   Standalone Low-Noise Admonition Counterparts (-clean)
   Unified Grey Minimalist Theme (Fixed Missing Borders)
   ========================================================================== */

/* 1. Note Clean (note-clean) */
.md-typeset .admonition.note-clean, .md-typeset details.note-clean {
    border-style: solid; /* Forces the browser to render the border structural line */
    border-color: #94a3b8; 
    background-color: transparent;
    border-left-width: 4px; border-right-width: 0; border-top-width: 0; border-bottom-width: 0;
}
.md-typeset .note-clean > .admonition-title, .md-typeset .note-clean > summary {
    background-color: transparent; font-weight: 700; color: #475569; 
}
.md-typeset .note-clean > .admonition-title::before, .md-typeset .note-clean > summary::before {
    background-color: #64748b; mask-image: var(--md-admonition-icon--note);
}

/* 2. Abstract Clean (abstract-clean) */
.md-typeset .admonition.abstract-clean, .md-typeset details.abstract-clean {
    border-style: solid;
    border-color: #94a3b8;
    background-color: transparent;
    border-left-width: 4px; border-right-width: 0; border-top-width: 0; border-bottom-width: 0;
}
.md-typeset .abstract-clean > .admonition-title, .md-typeset .abstract-clean > summary {
    background-color: transparent; font-weight: 700; color: #475569;
}
.md-typeset .abstract-clean > .admonition-title::before, .md-typeset .abstract-clean > summary::before {
    background-color: #64748b; mask-image: var(--md-admonition-icon--abstract);
}

/* 3. Info Clean (info-clean) */
.md-typeset .admonition.info-clean, .md-typeset details.info-clean {
    border-style: solid;
    border-color: #94a3b8;
    background-color: transparent;
    border-left-width: 4px; border-right-width: 0; border-top-width: 0; border-bottom-width: 0;
}
.md-typeset .info-clean > .admonition-title, .md-typeset .info-clean > summary {
    background-color: transparent; font-weight: 700; color: #475569;
}
.md-typeset .info-clean > .admonition-title::before, .md-typeset .info-clean > summary::before {
    background-color: #64748b; mask-image: var(--md-admonition-icon--info);
}

/* 4. Tip Clean (tip-clean) */
.md-typeset .admonition.tip-clean, .md-typeset details.tip-clean {
    border-style: solid;
    border-color: #94a3b8;
    background-color: transparent;
    border-left-width: 4px; border-right-width: 0; border-top-width: 0; border-bottom-width: 0;
}
.md-typeset .tip-clean > .admonition-title, .md-typeset .tip-clean > summary {
    background-color: transparent; font-weight: 700; color: #475569;
}
.md-typeset .tip-clean > .admonition-title::before, .md-typeset .tip-clean > summary::before {
    background-color: #64748b; mask-image: var(--md-admonition-icon--tip);
}

/* 5. Success Clean (success-clean) */
.md-typeset .admonition.success-clean, .md-typeset details.success-clean {
    border-style: solid;
    border-color: #94a3b8;
    background-color: transparent;
    border-left-width: 4px; border-right-width: 0; border-top-width: 0; border-bottom-width: 0;
}
.md-typeset .success-clean > .admonition-title, .md-typeset .success-clean > summary {
    background-color: transparent; font-weight: 700; color: #475569;
}
.md-typeset .success-clean > .admonition-title::before, .md-typeset .success-clean > summary::before {
    background-color: #64748b; mask-image: var(--md-admonition-icon--success);
}

/* 6. Question Clean (question-clean) */
.md-typeset .admonition.question-clean, .md-typeset details.question-clean {
    border-style: solid;
    border-color: #94a3b8;
    background-color: transparent;
    border-left-width: 4px; border-right-width: 0; border-top-width: 0; border-bottom-width: 0;
}
.md-typeset .question-clean > .admonition-title, .md-typeset .question-clean > summary {
    background-color: transparent; font-weight: 700; color: #475569;
}
.md-typeset .question-clean > .admonition-title::before, .md-typeset .question-clean > summary::before {
    background-color: #64748b; mask-image: var(--md-admonition-icon--question);
}

/* 7. Warning Clean (warning-clean) */
.md-typeset .admonition.warning-clean, .md-typeset details.warning-clean {
    border-style: solid;
    border-color: #94a3b8;
    background-color: transparent;
    border-left-width: 4px; border-right-width: 0; border-top-width: 0; border-bottom-width: 0;
}
.md-typeset .warning-clean > .admonition-title, .md-typeset .warning-clean > summary {
    background-color: transparent; font-weight: 700; color: #475569;
}
.md-typeset .warning-clean > .admonition-title::before, .md-typeset .warning-clean > summary::before {
    background-color: #64748b; mask-image: var(--md-admonition-icon--warning);
}

/* 8. Failure Clean (failure-clean) */
.md-typeset .admonition.failure-clean, .md-typeset details.failure-clean {
    border-style: solid;
    border-color: #94a3b8;
    background-color: transparent;
    border-left-width: 4px; border-right-width: 0; border-top-width: 0; border-bottom-width: 0;
}
.md-typeset .failure-clean > .admonition-title, .md-typeset .failure-clean > summary {
    background-color: transparent; font-weight: 700; color: #475569;
}
.md-typeset .failure-clean > .admonition-title::before, .md-typeset .failure-clean > summary::before {
    background-color: #64748b; mask-image: var(--md-admonition-icon--failure);
}

/* 9. Danger Clean (danger-clean) */
.md-typeset .admonition.danger-clean, .md-typeset details.danger-clean {
    border-style: solid;
    border-color: #94a3b8;
    background-color: transparent;
    border-left-width: 4px; border-right-width: 0; border-top-width: 0; border-bottom-width: 0;
}
.md-typeset .danger-clean > .admonition-title, .md-typeset .danger-clean > summary {
    background-color: transparent; font-weight: 700; color: #475569;
}
.md-typeset .danger-clean > .admonition-title::before, .md-typeset .danger-clean > summary::before {
    background-color: #64748b; mask-image: var(--md-admonition-icon--danger);
}

/* 10. Bug Clean (bug-clean) */
.md-typeset .admonition.bug-clean, .md-typeset details.bug-clean {
    border-style: solid;
    border-color: #94a3b8;
    background-color: transparent;
    border-left-width: 4px; border-right-width: 0; border-top-width: 0; border-bottom-width: 0;
}
.md-typeset .bug-clean > .admonition-title, .md-typeset .bug-clean > summary {
    background-color: transparent; font-weight: 700; color: #475569;
}
.md-typeset .bug-clean > .admonition-title::before, .md-typeset .bug-clean > summary::before {
    background-color: #64748b; mask-image: var(--md-admonition-icon--bug);
}

/* 11. Example Clean (example-clean) */
.md-typeset .admonition.example-clean, .md-typeset details.example-clean {
    border-style: solid;
    border-color: #94a3b8;
    background-color: transparent;
    border-left-width: 4px; border-right-width: 0; border-top-width: 0; border-bottom-width: 0;
}
.md-typeset .example-clean > .admonition-title, .md-typeset .example-clean > summary {
    background-color: transparent; font-weight: 700; color: #475569;
}
.md-typeset .example-clean > .admonition-title::before, .md-typeset .example-clean > summary::before {
    background-color: #64748b; mask-image: var(--md-admonition-icon--example);
}

/* 12. Quote Clean (quote-clean) */
.md-typeset .admonition.quote-clean, .md-typeset details.quote-clean {
    border-style: solid;
    border-color: #94a3b8;
    background-color: transparent;
    border-left-width: 4px; border-right-width: 0; border-top-width: 0; border-bottom-width: 0;
}
.md-typeset .quote-clean > .admonition-title, .md-typeset .quote-clean > summary {
    background-color: transparent; font-weight: 700; color: #475569;
}
.md-typeset .quote-clean > .admonition-title::before, .md-typeset .quote-clean > summary::before {
    background-color: #64748b; mask-image: var(--md-admonition-icon--quote);
}



/* /* ========================================================================== */
/*    Default Amonition Border Color */
/*    Standalone Low-Noise Admonition Counterparts (-clean) */
/*    Colored Border + Muted Minimalist Content Theme */
/*    ========================================================================== */ */
/**/
/* /* 1. Note Clean (note-clean) */ */
/* .md-typeset .admonition.note-clean, .md-typeset details.note-clean { */
/*     border-style: solid; */
/*     border-color: #448aff; /* Native Note Blue */ */
/*     background-color: transparent; */
/*     border-left-width: 4px; border-right-width: 0; border-top-width: 0; border-bottom-width: 0; */
/* } */
/* .md-typeset .note-clean > .admonition-title, .md-typeset .note-clean > summary { */
/*     background-color: transparent; font-weight: 700; color: #475569; /* Muted Slate Text */ */
/* } */
/* .md-typeset .note-clean > .admonition-title::before, .md-typeset .note-clean > summary::before { */
/*     background-color: #64748b; mask-image: var(--md-admonition-icon--note); /* Muted Slate Icon */ */
/* } */
/**/
/* /* 2. Abstract Clean (abstract-clean) */ */
/* .md-typeset .admonition.abstract-clean, .md-typeset details.abstract-clean { */
/*     border-style: solid; */
/*     border-color: #00b0ff; /* Native Light Blue */ */
/*     background-color: transparent; */
/*     border-left-width: 4px; border-right-width: 0; border-top-width: 0; border-bottom-width: 0; */
/* } */
/* .md-typeset .abstract-clean > .admonition-title, .md-typeset .abstract-clean > summary { */
/*     background-color: transparent; font-weight: 700; color: #475569; */
/* } */
/* .md-typeset .abstract-clean > .admonition-title::before, .md-typeset .abstract-clean > summary::before { */
/*     background-color: #64748b; mask-image: var(--md-admonition-icon--abstract); */
/* } */
/**/
/* /* 3. Info Clean (info-clean) */ */
/* .md-typeset .admonition.info-clean, .md-typeset details.info-clean { */
/*     border-style: solid; */
/*     border-color: #00b8d4; /* Native Cyan */ */
/*     background-color: transparent; */
/*     border-left-width: 4px; border-right-width: 0; border-top-width: 0; border-bottom-width: 0; */
/* } */
/* .md-typeset .info-clean > .admonition-title, .md-typeset .info-clean > summary { */
/*     background-color: transparent; font-weight: 700; color: #475569; */
/* } */
/* .md-typeset .info-clean > .admonition-title::before, .md-typeset .info-clean > summary::before { */
/*     background-color: #64748b; mask-image: var(--md-admonition-icon--info); */
/* } */
/**/
/* /* 4. Tip Clean (tip-clean) */ */
/* .md-typeset .admonition.tip-clean, .md-typeset details.tip-clean { */
/*     border-style: solid; */
/*     border-color: #00bfa5; /* Native Teal */ */
/*     background-color: transparent; */
/*     border-left-width: 4px; border-right-width: 0; border-top-width: 0; border-bottom-width: 0; */
/* } */
/* .md-typeset .tip-clean > .admonition-title, .md-typeset .tip-clean > summary { */
/*     background-color: transparent; font-weight: 700; color: #475569; */
/* } */
/* .md-typeset .tip-clean > .admonition-title::before, .md-typeset .tip-clean > summary::before { */
/*     background-color: #64748b; mask-image: var(--md-admonition-icon--tip); */
/* } */
/**/
/* /* 5. Success Clean (success-clean) */ */
/* .md-typeset .admonition.success-clean, .md-typeset details.success-clean { */
/*     border-style: solid; */
/*     border-color: #00e676; /* Native Green */ */
/*     background-color: transparent; */
/*     border-left-width: 4px; border-right-width: 0; border-top-width: 0; border-bottom-width: 0; */
/* } */
/* .md-typeset .success-clean > .admonition-title, .md-typeset .success-clean > summary { */
/*     background-color: transparent; font-weight: 700; color: #475569; */
/* } */
/* .md-typeset .success-clean > .admonition-title::before, .md-typeset .success-clean > summary::before { */
/*     background-color: #64748b; mask-image: var(--md-admonition-icon--success); */
/* } */
/**/
/* /* 6. Question Clean (question-clean) */ */
/* .md-typeset .admonition.question-clean, .md-typeset details.question-clean { */
/*     border-style: solid; */
/*     border-color: #64dd17; /* Native Light Green */ */
/*     background-color: transparent; */
/*     border-left-width: 4px; border-right-width: 0; border-top-width: 0; border-bottom-width: 0; */
/* } */
/* .md-typeset .question-clean > .admonition-title, .md-typeset .question-clean > summary { */
/*     background-color: transparent; font-weight: 700; color: #475569; */
/* } */
/* .md-typeset .question-clean > .admonition-title::before, .md-typeset .question-clean > summary::before { */
/*     background-color: #64748b; mask-image: var(--md-admonition-icon--question); */
/* } */
/**/
/* /* 7. Warning Clean (warning-clean) */ */
/* .md-typeset .admonition.warning-clean, .md-typeset details.warning-clean { */
/*     border-style: solid; */
/*     border-color: #ff9100; /* Native Orange */ */
/*     background-color: transparent; */
/*     border-left-width: 4px; border-right-width: 0; border-top-width: 0; border-bottom-width: 0; */
/* } */
/* .md-typeset .warning-clean > .admonition-title, .md-typeset .warning-clean > summary { */
/*     background-color: transparent; font-weight: 700; color: #475569; */
/* } */
/* .md-typeset .warning-clean > .admonition-title::before, .md-typeset .warning-clean > summary::before { */
/*     background-color: #64748b; mask-image: var(--md-admonition-icon--warning); */
/* } */
/**/
/* /* 8. Failure Clean (failure-clean) */ */
/* .md-typeset .admonition.failure-clean, .md-typeset details.failure-clean { */
/*     border-style: solid; */
/*     border-color: #ff5252; /* Native Red-Orange */ */
/*     background-color: transparent; */
/*     border-left-width: 4px; border-right-width: 0; border-top-width: 0; border-bottom-width: 0; */
/* } */
/* .md-typeset .failure-clean > .admonition-title, .md-typeset .failure-clean > summary { */
/*     background-color: transparent; font-weight: 700; color: #475569; */
/* } */
/* .md-typeset .failure-clean > .admonition-title::before, .md-typeset .failure-clean > summary::before { */
/*     background-color: #64748b; mask-image: var(--md-admonition-icon--failure); */
/* } */
/**/
/* /* 9. Danger Clean (danger-clean) */ */
/* .md-typeset .admonition.danger-clean, .md-typeset details.danger-clean { */
/*     border-style: solid; */
/*     border-color: #ff1744; /* Native Deep Red */ */
/*     background-color: transparent; */
/*     border-left-width: 4px; border-right-width: 0; border-top-width: 0; border-bottom-width: 0; */
/* } */
/* .md-typeset .danger-clean > .admonition-title, .md-typeset .danger-clean > summary { */
/*     background-color: transparent; font-weight: 700; color: #475569; */
/* } */
/* .md-typeset .danger-clean > .admonition-title::before, .md-typeset .danger-clean > summary::before { */
/*     background-color: #64748b; mask-image: var(--md-admonition-icon--danger); */
/* } */
/**/
/* /* 10. Bug Clean (bug-clean) */ */
/* .md-typeset .admonition.bug-clean, .md-typeset details.bug-clean { */
/*     border-style: solid; */
/*     border-color: #f50057; /* Native Pink */ */
/*     background-color: transparent; */
/*     border-left-width: 4px; border-right-width: 0; border-top-width: 0; border-bottom-width: 0; */
/* } */
/* .md-typeset .bug-clean > .admonition-title, .md-typeset .bug-clean > summary { */
/*     background-color: transparent; font-weight: 700; color: #475569; */
/* } */
/* .md-typeset .bug-clean > .admonition-title::before, .md-typeset .bug-clean > summary::before { */
/*     background-color: #64748b; mask-image: var(--md-admonition-icon--bug); */
/* } */
/**/
/* /* 11. Example Clean (example-clean) */ */
/* .md-typeset .admonition.example-clean, .md-typeset details.example-clean { */
/*     border-style: solid; */
/*     border-color: #7c4dff; /* Native Purple */ */
/*     background-color: transparent; */
/*     border-left-width: 4px; border-right-width: 0; border-top-width: 0; border-bottom-width: 0; */
/* } */
/* .md-typeset .example-clean > .admonition-title, .md-typeset .example-clean > summary { */
/*     background-color: transparent; font-weight: 700; color: #475569; */
/* } */
/* .md-typeset .example-clean > .admonition-title::before, .md-typeset .example-clean > summary::before { */
/*     background-color: #64748b; mask-image: var(--md-admonition-icon--example); */
/* } */
/**/
/* /* 12. Quote Clean (quote-clean) */ */
/* .md-typeset .admonition.quote-clean, .md-typeset details.quote-clean { */
/*     border-style: solid; */
/*     border-color: #9e9e9e; /* Native Dark Grey */ */
/*     background-color: transparent; */
/*     border-left-width: 4px; border-right-width: 0; border-top-width: 0; border-bottom-width: 0; */
/* } */
/* .md-typeset .quote-clean > .admonition-title, .md-typeset .quote-clean > summary { */
/*     background-color: transparent; font-weight: 700; color: #475569; */
/* } */
/* .md-typeset .quote-clean > .admonition-title::before, .md-typeset .quote-clean > summary::before { */
/*     background-color: #64748b; mask-image: var(--md-admonition-icon--quote); */
/* } */
/**/


/* =========================================================
   Document Last Updated Footer
   Displayed automatically at the bottom of every article.
   Uses page.meta.last_modified from frontmatter.
   ========================================================= */

.doc-last-update {
  /* Separate from article content */
  margin-top: 2rem;

  /* Slightly smaller than body text to reduce visual weight */
  font-size: 0.85rem;

  /* Use theme's secondary text color for consistency */
  color: var(--md-default-fg-color--light);
}

.doc-last-update p {
  /* Remove default paragraph spacing */
  margin: 0;
}

/* ==========================================================================
   EC Index Page — Hero Section Custom HTML
   ========================================================================== */
body:has(.ec-index-hero) .md-content__inner > h1:first-child {
  display: none;
}
.ec-index-hero {
  position: relative;
  overflow: hidden;
  border-radius: 0.75rem;
  background: #01378A;
  color: #fff;
  padding: 24px;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-bottom: 32px;
}
@media (min-width: 768px) { .ec-index-hero { padding: 36px; min-height: 240px; } }
.ec-index-hero h2 {
  font-size: 26px; line-height: 34px;
  font-weight: 700; color: #fff;
  margin: 0 0 12px 0;
}
@media (min-width: 768px) { .ec-index-hero h2 { font-size: 32px; line-height: 40px; } }
.ec-index-hero p {
  font-size: 16px; line-height: 24px;
  color: rgba(255,255,255,0.85);
  margin: 0 0 24px 0;
  max-width: 36rem;
}
.ec-index-hero .md-button {
  color: var(--md-primary-fg-color) !important;
  background: #fff !important;
  border-color: #fff !important;
}
.ec-index-hero .md-button--secondary {
  color: #fff !important;
  background: rgba(255,255,255,0.1) !important;
  border-color: rgba(255,255,255,0.4) !important;
  backdrop-filter: blur(4px);
}

/* ==========================================================================
   EC Index Page — Feature Strip (4 cards) Custom Template
   ========================================================================== */
.ec-feature-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 32px;
}
@media (min-width: 768px) { .ec-feature-strip { grid-template-columns: repeat(4, 1fr); gap: 16px; } }
.ec-feature-card {
  background: var(--md-default-bg-color);
  border: 1px solid var(--md-default-fg-color--lightest);
  border-radius: 0.75rem;
  padding: 20px;
  transition: all 0.25s ease;
  display: block;
  text-decoration: none !important;
  color: inherit;
}
.ec-feature-card:hover {
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
  border-color: var(--md-primary-fg-color);
  transform: translateY(-4px);
}
.ec-feature-card .ec-f-icon {
  font-size: 26px;
  color: var(--md-primary-fg-color);
  margin-bottom: 10px;
  display: inline-block;
}
.ec-feature-card h3 {
  font-size: 16px; line-height: 22px;
  font-weight: 600;
  margin: 0 0 4px 0;
}
.ec-feature-card p {
  font-size: 13px; line-height: 18px;
  color: var(--md-default-fg-color--light);
  margin: 0;
}

/* ==========================================================================
   EC Index Page — Bento Section Custom HTML
   ========================================================================== */
.ec-bento {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin: 32px 0;
}
@media (min-width: 1024px) { .ec-bento { grid-template-columns: 2fr 1fr; } }
.ec-bento-main {
  background: var(--md-default-bg-color);
  border: 1px solid var(--md-default-fg-color--lightest);
  border-radius: 0.75rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
@media (min-width: 768px) { .ec-bento-main { flex-direction: row; } }
.ec-bento-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
@media (min-width: 768px) { .ec-bento-content { width: 50%; } }
.ec-bento-content .badge {
  display: inline-block;
  padding: 4px 12px;
  background: color-mix(in srgb, var(--md-primary-fg-color) 10%, transparent);
  color: var(--md-primary-fg-color);
  font-size: 12px; font-weight: 700;
  border-radius: 9999px;
  width: fit-content;
  margin-bottom: 12px;
}
.ec-bento-content h3 {
  font-size: 20px; line-height: 26px;
  font-weight: 600;
  margin: 0 0 10px 0;
  border: none;
}
.ec-bento-content p {
  font-size: 15px; line-height: 22px;
  color: var(--md-default-fg-color--light);
  margin: 0 0 20px 0;
}
.ec-bento-content .ec-link {
  color: var(--md-primary-fg-color);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-size: 14px;
}
.ec-bento-img {
  min-height: 12rem;
  position: relative;
  overflow: hidden;
}
@media (min-width: 768px) { .ec-bento-img { width: 50%; } }
.ec-bento-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

/* Bento Sidebar */
.ec-bento-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.ec-testimonial {
  background: var(--md-default-bg-color);
  border-left: 4px solid var(--md-accent-fg-color);
  padding: 20px;
  border-radius: 0 0.75rem 0.75rem 0;
  border: 1px solid var(--md-default-fg-color--lightest);
  border-left: 4px solid var(--md-accent-fg-color);
}
.ec-testimonial h4 {
  font-size: 18px; font-weight: 600;
  color: var(--md-primary-fg-color);
  margin: 0 0 8px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.ec-testimonial p {
  font-size: 14px; line-height: 20px;
  margin: 0;
}
.ec-testimonial cite {
  font-size: 12px; margin-top: 8px;
  font-weight: 700; opacity: 0.6;
  display: block; font-style: normal;
}
.ec-support-card {
  background: #01378A;
  border-radius: 0.75rem;
  padding: 20px;
  color: #fff;
  border: 1px solid #01378A;
}
.ec-support-card h4 {
  font-size: 18px; font-weight: 600;
  margin: 0 0 8px 0; color: #fff;
}
.ec-support-card p {
  font-size: 14px; line-height: 20px;
  opacity: 0.9; margin: 0 0 16px 0;
}
.ec-support-card a {
  color: #fff; text-decoration: underline;
  font-weight: 500;
}

/* ==========================================================================
   EC Index Page — Resources Section Custom HTML
   ========================================================================== */
.ec-resources {
  background: var(--md-default-fg-color--lightest);
  border-radius: 0.75rem;
  padding: 28px;
  margin: 32px 0;
}
.ec-resources h3 {
  font-size: 20px; font-weight: 600;
  margin: 0 0 24px 0;
}
.ec-res-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
@media (min-width: 768px) { .ec-res-grid { flex-direction: row; } }
.ec-res-item {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.ec-res-item .ec-r-icon {
  font-size: 28px;
  color: var(--md-primary-fg-color);
  margin-bottom: 10px;
}
.ec-res-item h4 {
  font-size: 17px; font-weight: 600;
  margin: 0 0 6px 0;
}
.ec-res-item p {
  font-size: 14px; line-height: 20px;
  color: var(--md-default-fg-color--light);
  margin: 0 0 12px 0;
}
.ec-res-item a {
  color: var(--md-primary-fg-color);
  font-weight: 500;
  font-size: 14px;
}

/* ==========================================================================
   EC Index Page — Dark Mode Overrides Custom HTML
   ========================================================================== */
[data-md-color-scheme="slate"] .ec-index-hero {
  background: #01378A;
}
[data-md-color-scheme="slate"] .ec-support-card {
  background: #01378A;
}


