/* General CSS for the main page */

        *, *::before, *::after { box-sizing: border-box; } /* Include padding and border in element's total width and height */

        body {
            margin: 0;
            font-family: "DM Sans", sans-serif;
            background: #fff;
            color: #202124;
              line-height:1.6em;
            overflow-x: hidden;
        }

        img { max-width: 100%; }

        /* footer: copyright + terms link, on every page */
        .site-footer {
            margin-top: 40px;
            padding: 18px 16px 24px;
            border-top: 1px solid #e0e0e0;
            font-size: 13px;
            color: #5f6368;
        }
        .site-footer-inner {
            max-width: 800px;
            margin: 0 auto;
            display: flex;
            justify-content: space-between;
            gap: 16px;
            flex-wrap: wrap;
        }
        .site-footer a { color: #5f6368; text-decoration: none; }
        .site-footer a:hover { text-decoration: underline; }

        /* terms of use page */
        .terms-page { max-width: 760px; margin: 0 auto; padding: 32px 16px 16px; line-height: 1.6; }
        .terms-page h1 { font-size: 1.6em; margin: 0 0 4px; }
        .terms-page h2 { font-size: 1.1em; margin: 22px 0 6px; }
        .terms-page .terms-updated { color: #5f6368; font-size: 13px; margin: 0 0 18px; }

        /* language select, top right corner of every page */
        .lang-switch {
            position: absolute;
            top: 10px;
            right: 14px;
            z-index: 1500;  /* above .searchpage-wrapper (flex item, z-index 1000), below modals (2000) */
        }
        .lang-switch #language-select {
            border: 1px solid #dadce0;
            border-radius: 6px;
            background: #fff;
            color: #202124;
            font-size: 14px;
            padding: 4px 8px;
            cursor: pointer;
        }
        .lang-switch #language-select:hover { border-color: #9aa0a6; }
        /* full-width search bar on the category page: keep the input clear of the select */
        .searchpage-wrapper .searchbar-wrapper { padding-right: 90px; }

        @media (max-width: 900px) {
          .search-bar { width: 90%; }
        }

        .page-wrapper {
            min-height: 100vh;
            display: flex;
            flex-direction: column;
        }

   

        .logo {
            font-size: 48px;
            font-weight: 600;
            letter-spacing: 1px;
            margin-bottom: 24px;
            user-select: none;
        }


        .logo span {
            color: #202124;
        }





@media (max-width: 600px) {
  .logo {
    font-size: 34px;
    margin-bottom: 16px;
  }

  .search-bar {
    flex-wrap: wrap;
    width: 100%;
    gap: 8px;
  }

  /* logo left, language select right, input drops to its own full row */
  .left-td  { order: 1; flex: 1 1 auto; }
  .right-td { order: 2; flex: 0 0 auto; }
  .middle-td { order: 3; flex: 1 1 100%; }

  .searchpage-logo {
    text-align: left;
  }
}

