/* Custom font declarations */
/* cyrillic-ext */
@font-face {
    font-family: 'Fira Code';
    font-style: normal;
    font-weight: 400;
    font-display: fallback;
    src: url(../fonts/cyrillic-ext-fira-code-normal-400.woff2) format('woff2');
    unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
  }
  /* cyrillic */
  @font-face {
    font-family: 'Fira Code';
    font-style: normal;
    font-weight: 400;
    font-display: fallback;
    src: url(../fonts/cyrillic-fira-code-normal-400.woff2) format('woff2');
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
  }
  /* greek-ext */
  @font-face {
    font-family: 'Fira Code';
    font-style: normal;
    font-weight: 400;
    font-display: fallback;
    src: url(../fonts/greek-ext-fira-code-normal-400.woff2) format('woff2');
    unicode-range: U+1F00-1FFF;
  }
  /* greek */
  @font-face {
    font-family: 'Fira Code';
    font-style: normal;
    font-weight: 400;
    font-display: fallback;
    src: url(../fonts/greek-fira-code-normal-400.woff2) format('woff2');
    unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
  }
  /* symbols2 */
  @font-face {
    font-family: 'Fira Code';
    font-style: normal;
    font-weight: 400;
    font-display: fallback;
    src: url(../fonts/symbols2-fira-code-normal-400.woff2) format('woff2');
    unicode-range: U+2000-2001, U+2004-2008, U+200A, U+23B8-23BD, U+2500-259F;
  }
  /* latin-ext */
  @font-face {
    font-family: 'Fira Code';
    font-style: normal;
    font-weight: 400;
    font-display: fallback;
    src: url(../fonts/latin-ext-fira-code-normal-400.woff2) format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
  }
  /* latin */
  @font-face {
    font-family: 'Fira Code';
    font-style: normal;
    font-weight: 400;
    font-display: fallback;
    src: url(../fonts/latin-fira-code-normal-400.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
  }
  /* cyrillic-ext */
  @font-face {
    font-family: 'Fira Code';
    font-style: normal;
    font-weight: 700;
    font-display: fallback;
    src: url(../fonts/cyrillic-ext-fira-code-normal-700.woff2) format('woff2');
    unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
  }
  /* cyrillic */
  @font-face {
    font-family: 'Fira Code';
    font-style: normal;
    font-weight: 700;
    font-display: fallback;
    src: url(../fonts/cyrillic-fira-code-normal-700.woff2) format('woff2');
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
  }
  /* greek-ext */
  @font-face {
    font-family: 'Fira Code';
    font-style: normal;
    font-weight: 700;
    font-display: fallback;
    src: url(../fonts/greek-ext-fira-code-normal-700.woff2) format('woff2');
    unicode-range: U+1F00-1FFF;
  }
  /* greek */
  @font-face {
    font-family: 'Fira Code';
    font-style: normal;
    font-weight: 700;
    font-display: fallback;
    src: url(../fonts/greek-fira-code-normal-700.woff2) format('woff2');
    unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
  }
  /* symbols2 */
  @font-face {
    font-family: 'Fira Code';
    font-style: normal;
    font-weight: 700;
    font-display: fallback;
    src: url(../fonts/symbols2-fira-code-normal-700.woff2) format('woff2');
    unicode-range: U+2000-2001, U+2004-2008, U+200A, U+23B8-23BD, U+2500-259F;
  }
  /* latin-ext */
  @font-face {
    font-family: 'Fira Code';
    font-style: normal;
    font-weight: 700;
    font-display: fallback;
    src: url(../fonts/latin-ext-fira-code-normal-700.woff2) format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
  }
  /* latin */
  @font-face {
    font-family: 'Fira Code';
    font-style: normal;
    font-weight: 700;
    font-display: fallback;
    src: url(../fonts/latin-fira-code-normal-700.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
  }
  /* cyrillic-ext */
  @font-face {
    font-family: 'Inter';
    font-style: italic;
    font-weight: 300;
    font-display: fallback;
    src: url(../fonts/cyrillic-ext-inter-italic-300.woff2) format('woff2');
    unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
  }
  /* cyrillic */
  @font-face {
    font-family: 'Inter';
    font-style: italic;
    font-weight: 300;
    font-display: fallback;
    src: url(../fonts/cyrillic-inter-italic-300.woff2) format('woff2');
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
  }
  /* greek-ext */
  @font-face {
    font-family: 'Inter';
    font-style: italic;
    font-weight: 300;
    font-display: fallback;
    src: url(../fonts/greek-ext-inter-italic-300.woff2) format('woff2');
    unicode-range: U+1F00-1FFF;
  }
  /* greek */
  @font-face {
    font-family: 'Inter';
    font-style: italic;
    font-weight: 300;
    font-display: fallback;
    src: url(../fonts/greek-inter-italic-300.woff2) format('woff2');
    unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
  }
  /* vietnamese */
  @font-face {
    font-family: 'Inter';
    font-style: italic;
    font-weight: 300;
    font-display: fallback;
    src: url(../fonts/vietnamese-inter-italic-300.woff2) format('woff2');
    unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
  }
  /* latin-ext */
  @font-face {
    font-family: 'Inter';
    font-style: italic;
    font-weight: 300;
    font-display: fallback;
    src: url(../fonts/latin-ext-inter-italic-300.woff2) format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
  }
  /* latin */
  @font-face {
    font-family: 'Inter';
    font-style: italic;
    font-weight: 300;
    font-display: fallback;
    src: url(../fonts/latin-inter-italic-300.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
  }
  /* cyrillic-ext */
  @font-face {
    font-family: 'Inter';
    font-style: italic;
    font-weight: 400;
    font-display: fallback;
    src: url(../fonts/cyrillic-ext-inter-italic-400.woff2) format('woff2');
    unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
  }
  /* cyrillic */
  @font-face {
    font-family: 'Inter';
    font-style: italic;
    font-weight: 400;
    font-display: fallback;
    src: url(../fonts/cyrillic-inter-italic-400.woff2) format('woff2');
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
  }
  /* greek-ext */
  @font-face {
    font-family: 'Inter';
    font-style: italic;
    font-weight: 400;
    font-display: fallback;
    src: url(../fonts/greek-ext-inter-italic-400.woff2) format('woff2');
    unicode-range: U+1F00-1FFF;
  }
  /* greek */
  @font-face {
    font-family: 'Inter';
    font-style: italic;
    font-weight: 400;
    font-display: fallback;
    src: url(../fonts/greek-inter-italic-400.woff2) format('woff2');
    unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
  }
  /* vietnamese */
  @font-face {
    font-family: 'Inter';
    font-style: italic;
    font-weight: 400;
    font-display: fallback;
    src: url(../fonts/vietnamese-inter-italic-400.woff2) format('woff2');
    unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
  }
  /* latin-ext */
  @font-face {
    font-family: 'Inter';
    font-style: italic;
    font-weight: 400;
    font-display: fallback;
    src: url(../fonts/latin-ext-inter-italic-400.woff2) format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
  }
  /* latin */
  @font-face {
    font-family: 'Inter';
    font-style: italic;
    font-weight: 400;
    font-display: fallback;
    src: url(../fonts/latin-inter-italic-400.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
  }
  /* cyrillic-ext */
  @font-face {
    font-family: 'Inter';
    font-style: italic;
    font-weight: 700;
    font-display: fallback;
    src: url(../fonts/cyrillic-ext-inter-italic-700.woff2) format('woff2');
    unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
  }
  /* cyrillic */
  @font-face {
    font-family: 'Inter';
    font-style: italic;
    font-weight: 700;
    font-display: fallback;
    src: url(../fonts/cyrillic-inter-italic-700.woff2) format('woff2');
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
  }
  /* greek-ext */
  @font-face {
    font-family: 'Inter';
    font-style: italic;
    font-weight: 700;
    font-display: fallback;
    src: url(../fonts/greek-ext-inter-italic-700.woff2) format('woff2');
    unicode-range: U+1F00-1FFF;
  }
  /* greek */
  @font-face {
    font-family: 'Inter';
    font-style: italic;
    font-weight: 700;
    font-display: fallback;
    src: url(../fonts/greek-inter-italic-700.woff2) format('woff2');
    unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
  }
  /* vietnamese */
  @font-face {
    font-family: 'Inter';
    font-style: italic;
    font-weight: 700;
    font-display: fallback;
    src: url(../fonts/vietnamese-inter-italic-700.woff2) format('woff2');
    unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
  }
  /* latin-ext */
  @font-face {
    font-family: 'Inter';
    font-style: italic;
    font-weight: 700;
    font-display: fallback;
    src: url(../fonts/latin-ext-inter-italic-700.woff2) format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
  }
  /* latin */
  @font-face {
    font-family: 'Inter';
    font-style: italic;
    font-weight: 700;
    font-display: fallback;
    src: url(../fonts/latin-inter-italic-700.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
  }
  /* cyrillic-ext */
  @font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 300;
    font-display: fallback;
    src: url(../fonts/cyrillic-ext-inter-normal-300.woff2) format('woff2');
    unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
  }
  /* cyrillic */
  @font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 300;
    font-display: fallback;
    src: url(../fonts/cyrillic-inter-normal-300.woff2) format('woff2');
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
  }
  /* greek-ext */
  @font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 300;
    font-display: fallback;
    src: url(../fonts/greek-ext-inter-normal-300.woff2) format('woff2');
    unicode-range: U+1F00-1FFF;
  }
  /* greek */
  @font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 300;
    font-display: fallback;
    src: url(../fonts/greek-inter-normal-300.woff2) format('woff2');
    unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
  }
  /* vietnamese */
  @font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 300;
    font-display: fallback;
    src: url(../fonts/vietnamese-inter-normal-300.woff2) format('woff2');
    unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
  }
  /* latin-ext */
  @font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 300;
    font-display: fallback;
    src: url(../fonts/latin-ext-inter-normal-300.woff2) format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
  }
  /* latin */
  @font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 300;
    font-display: fallback;
    src: url(../fonts/latin-inter-normal-300.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
  }
  /* cyrillic-ext */
  @font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-display: fallback;
    src: url(../fonts/cyrillic-ext-inter-normal-400.woff2) format('woff2');
    unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
  }
  /* cyrillic */
  @font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-display: fallback;
    src: url(../fonts/cyrillic-inter-normal-400.woff2) format('woff2');
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
  }
  /* greek-ext */
  @font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-display: fallback;
    src: url(../fonts/greek-ext-inter-normal-400.woff2) format('woff2');
    unicode-range: U+1F00-1FFF;
  }
  /* greek */
  @font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-display: fallback;
    src: url(../fonts/greek-inter-normal-400.woff2) format('woff2');
    unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
  }
  /* vietnamese */
  @font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-display: fallback;
    src: url(../fonts/vietnamese-inter-normal-400.woff2) format('woff2');
    unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
  }
  /* latin-ext */
  @font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-display: fallback;
    src: url(../fonts/latin-ext-inter-normal-400.woff2) format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
  }
  /* latin */
  @font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-display: fallback;
    src: url(../fonts/latin-inter-normal-400.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
  }
  /* cyrillic-ext */
  @font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 700;
    font-display: fallback;
    src: url(../fonts/cyrillic-ext-inter-normal-700.woff2) format('woff2');
    unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
  }
  /* cyrillic */
  @font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 700;
    font-display: fallback;
    src: url(../fonts/cyrillic-inter-normal-700.woff2) format('woff2');
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
  }
  /* greek-ext */
  @font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 700;
    font-display: fallback;
    src: url(../fonts/greek-ext-inter-normal-700.woff2) format('woff2');
    unicode-range: U+1F00-1FFF;
  }
  /* greek */
  @font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 700;
    font-display: fallback;
    src: url(../fonts/greek-inter-normal-700.woff2) format('woff2');
    unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
  }
  /* vietnamese */
  @font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 700;
    font-display: fallback;
    src: url(../fonts/vietnamese-inter-normal-700.woff2) format('woff2');
    unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
  }
  /* latin-ext */
  @font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 700;
    font-display: fallback;
    src: url(../fonts/latin-ext-inter-normal-700.woff2) format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
  }
  /* latin */
  @font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 700;
    font-display: fallback;
    src: url(../fonts/latin-inter-normal-700.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
  }

/* ===== HEADER NAVIGATION BUTTONS ===== */
/* Consistent icon-based navigation with responsive mobile optimizations.
   Desktop: Shows icon + text labels, mobile: Icon-only for space efficiency.
   Icons sized at 24px to match Material Design search icon standards. */

.md-header__buttons {
  display: flex;
  align-items: center;
  margin-left: 1rem;
}

/* Desktop button styling with icon and text */
.md-header__buttons > .md-header__button {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem;
  opacity: 0.8;
  transition: opacity 0.2s ease;
  white-space: nowrap;
}

.md-header__buttons > .md-header__button:hover {
  opacity: 1;
}

/* Standardized icon sizing for visual consistency */
.md-header__buttons > .md-header__button svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  fill: currentColor;
  color: var(--md-primary-bg-color, #ffffff);
}

/* Mobile optimization: Icon-only layout with minimal padding */
@media screen and (max-width: 700px) {
  .md-header__buttons > .md-header__button span {
    display: none;
  }
  
  .md-header__buttons > .md-header__button {
    padding: 0.6rem 0.25rem;
    gap: 0;
  }
  
  .md-header__buttons {
    gap: 0.5rem;
  }
}

/* ===== SIDEBAR NAVIGATION TITLE ===== */
/* Hide top-level sidebar title (site name) as it's redundant with main header.
   Preserves nested navigation titles that contain back buttons for sub-navigation. */
.md-sidebar--primary > .md-sidebar__scrollwrap > .md-nav > .md-nav__title {
  display: none !important;
}

/* ===== LOGO SIZING ===== */
/* Constrain logo dimensions in nested navigation to prevent oversized display
   while maintaining visual hierarchy and readability. */

.md-header__button.md-logo img {
  max-height: 20px;
}

.md-nav__title .md-logo img {
  max-height: 20px;
}

.md-header__topic:first-child {
  font-weight: normal;
}

/* ===== HEADER TITLE SPACING ===== */
/* Tighten spacing between hamburger menu and site title for compact header layout.
   LTR-specific to avoid affecting RTL language layouts. */
[dir=ltr] .md-header__title {
  margin-left: 0.4rem;
  margin-right: 0.4rem;
}

/* ===== FULL-WIDTH LAYOUT ===== */
/* Allow sidebars to extend to viewport edges while keeping content centered.
   Grid has no width constraint, content area uses flexbox centering, and content inner
   maintains optimal reading width of 41rem (~656px) for 80-100 character lines. */
.md-grid {
  max-width: none;
}

.md-content {
  display: flex;
  justify-content: center;
}

.md-content__inner {
  max-width: 41rem;
}

/* ===== AWS COLOR SCHEME ===== */
/* Override Material theme colors with AWS Cloudscape Design System colors.
   Uses MkDocs Material's official approach via CSS custom properties. */
[data-md-color-scheme="aws"] {
  /* Primary colors - header, primary UI elements */
  --md-primary-fg-color: #161d26;           /* AWS Primary Dark */
  --md-primary-fg-color--light: #1e2d43;    /* AWS Primary Light */
  --md-primary-fg-color--dark: #161d26;     /* AWS Primary Dark (same as base) */
  
  /* Body text */
  --md-typeset-color: #161d26;              /* Main content text */
  --md-default-fg-color: #161d26;           /* Headers and default text elements */
  
  /* Links and accents */
  --md-typeset-a-color: #003b8f;            /* Link color (AWS Blue) */
  --md-accent-fg-color: #003b8f;            /* Accent elements (AWS Blue) */
}

/* Override H1 to use base fg color instead of light variant */
[data-md-color-scheme="aws"] .md-typeset h1 {
  color: var(--md-default-fg-color);
  font-weight: bold;
}

/* ===== HOME PAGE HERO TEXT ===== */
/* Make the first paragraph after the main H1 larger for emphasis */

#welcome-to-generative-ai-atlas {
 margin-bottom: 0.5rem; 
}
#welcome-to-generative-ai-atlas + p {
  font-size: 1.2rem;
  line-height: 1.5;
  margin-bottom: 2rem; 
}

/* ===== LEFT PRIMARY NAVIGATION ===== */
/* Primary sidebar navigation with hierarchical styling for desktop viewports.
   Level 0 items are top menu entries, Level 1 items appear in highlighted containers when expanded.
   Desktop-only styling to avoid affecting mobile drawer navigation. */

@media screen and (min-width: 76.25em) {
  .md-sidebar--primary .md-sidebar__scrollwrap {
    padding-right: 0.5rem;
  }

  /* Level 0 - Top menu items (Home, GenAI Fundamentals, etc.) */
  .md-sidebar--primary .md-nav--primary > .md-nav__list > .md-nav__item > .md-nav__link {
    font-size: 0.7rem;
    font-weight: 500;
    color: #161d26dd;
    padding-top: 0.2rem;
    padding-bottom: 0.2rem;
  }

  /* First and last top-level items (Home, Contributing, Roadmap) */
  .md-sidebar--primary .md-nav--primary > .md-nav__list > .md-nav__item:first-child > .md-nav__link,
  .md-sidebar--primary .md-nav--primary > .md-nav__list > .md-nav__item:last-child > .md-nav__link {
    font-size: 0.7rem;
  }

  /* Level 1 - Expanded section containers */
  .md-sidebar--primary .md-nav--primary > .md-nav__list > .md-nav__item > .md-nav {
    background: #f5f9ff;
    border-left: 1px solid var(--md-accent-fg-color);
    padding-right: 0.5rem;
    margin-top: 0.3rem;
  }

  /* Hide nav titles within expanded sections */
  .md-sidebar--primary .md-nav__title {
    display: none;
  }

  /* Level 1 - Section content links */
  .md-sidebar--primary .md-nav--primary > .md-nav__list > .md-nav__item > .md-nav .md-nav__link {
    font-size: 0.65rem;
    font-weight: 400;
    padding-top: 0.1rem;
    padding-bottom: 0.1rem;
  }

  /* Level 1 - Active link state */
  .md-sidebar--primary .md-nav--primary > .md-nav__list > .md-nav__item > .md-nav .md-nav__link--active {
    font-weight: 500;
  }

  /* Non-nested items within lists */
  .md-sidebar--primary .md-nav__item--nested .md-nav__item:not(.md-nav__item--nested) > .md-nav__link {
    font-size: 0.65rem;
    padding-top: 0.1rem;
    padding-bottom: 0.1rem;
  }
}

/* ===== RIGHT TOC NAVIGATION ===== */
/* Secondary sidebar table of contents with progressive indentation and border indicators.
   Uses gray default states transitioning to AWS blue on interaction.
   Desktop-only styling to avoid affecting mobile drawer navigation. */

@media screen and (min-width: 60em) {
  /* TOC title styling - clean and minimal */
  .md-nav--secondary .md-nav__title {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--md-default-fg-color);
    margin-bottom: 0.8rem;
    background: transparent;
    box-shadow: none;
  }

  /* Remove gaps between list items for continuous border */
  .md-nav--secondary .md-nav__item {
    margin: 0;
  }

  /* Base TOC link styling with transitions */
  .md-nav--secondary .md-nav__link {
    font-size: 0.65rem;
    color: #888a8e;
    font-weight: 400;
    transition: all 0.3s ease;
    border-left: 1px solid #ebeced;
    padding: 0.15rem 0.75rem;
    margin: 0;
    line-height: 1.5;
    display: block;
  }

  /* Hover and active states with AWS blue accent */
  .md-nav--secondary .md-nav__link:hover,
  .md-nav--secondary .md-nav__link--active {
    border-left-color: var(--md-accent-fg-color);
  }

  .md-nav--secondary .md-nav__link--active {
    color: var(--md-default-fg-color);
    font-weight: 500;
  }

  /* Desktop positioning - clear spacing from header */
  .md-sidebar--secondary {
    margin-top: 5rem;
  }
}

/* ===== LEFT NAV SCROLLBAR OVERRIDE ===== */
/* Place at end of file for maximum cascade priority to override theme defaults */

/* Override the scrollbar-color property that's causing the blue color */
.md-sidebar.md-sidebar--primary .md-sidebar__scrollwrap,
.md-sidebar.md-sidebar--primary .md-sidebar__scrollwrap:hover,
.md-sidebar.md-sidebar--primary .md-sidebar__scrollwrap:focus-within {
  scrollbar-color: #e8e8e8 transparent !important;
}

/* Webkit scrollbar styling for Chrome/Edge */
[data-md-color-scheme] .md-sidebar.md-sidebar--primary .md-sidebar__scrollwrap::-webkit-scrollbar {
  width: 0.4rem !important;
}

[data-md-color-scheme] .md-sidebar.md-sidebar--primary .md-sidebar__scrollwrap::-webkit-scrollbar-track {
  background-color: transparent !important;
}

[data-md-color-scheme] .md-sidebar.md-sidebar--primary .md-sidebar__scrollwrap::-webkit-scrollbar-thumb {
  background-color: #f5f5f5 !important;
  border-radius: 0.2rem !important;
}

[data-md-color-scheme] .md-sidebar.md-sidebar--primary .md-sidebar__scrollwrap::-webkit-scrollbar-thumb:hover,
[data-md-color-scheme] .md-sidebar.md-sidebar--primary .md-sidebar__scrollwrap:hover::-webkit-scrollbar-thumb,
[data-md-color-scheme] .md-sidebar.md-sidebar--primary .md-sidebar__scrollwrap::-webkit-scrollbar-thumb:active {
  background-color: #e8e8e8 !important;
}
