
:root {
  --bg: #f4f5f7;
  --panel-bg: #eef6ff;
  --text: #111111;
  --text-muted: #444444;
  --primary: #004494;
  --border: #cccccc;
  --panel-border: #a4c2e4;
  --tab-bg: #fdfdfd;
  --tab-active-bg: #003366;
  --header-bg: #ffffff;
  --font: Arial, Helvetica, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.6; overflow-x: hidden; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }
ul, ol { margin-left: 1.5rem; margin-bottom: 1rem; }
h1, h2, h3 { margin-top: 1.5rem; margin-bottom: 0.75rem; line-height: 1.2; color: #000; }
h1 { font-size: 1.75rem; }
h2 { font-size: 1.4rem; }
p { margin-bottom: 1rem; }

/* Header */
.site-header { background: var(--header-bg); border-bottom: 1px solid var(--border); }
.header-inner { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; padding: 0.75rem 1rem; height: 60px; }
.header-left { display: flex; align-items: center; gap: 1rem; }
.logo { display: flex; align-items: center; gap: 8px; font-weight: bold; font-size: 1.2rem; color: var(--text); }
.logo-icon { color: var(--text); }
.logo:hover { text-decoration: none; }
#menu-toggle, #lang-toggle { background: none; border: none; cursor: pointer; color: var(--text); display: flex; align-items: center; padding: 4px; }
#menu-toggle:focus, #lang-toggle:focus { outline: 2px solid var(--primary); border-radius: 2px; }

/* Search */
.search-container { flex: 1; max-width: 400px; margin: 0 1rem; position: relative; }
.search-input { width: 100%; padding: 0.4rem 0.8rem; border: 1px solid var(--border); outline: none; font-family: inherit; }
.search-results { position: absolute; top: 100%; left: 0; right: 0; background: #fff; border: 1px solid var(--border); border-top: none; display: none; max-height: 300px; overflow-y: auto; box-shadow: 0 4px 6px rgba(0,0,0,0.1); z-index: 110; }
.search-result-item { padding: 0.5rem 1rem; display: block; border-bottom: 1px solid #eee; }
.search-result-item:last-child { border-bottom: none; }

/* Navigation Overlay */
.side-nav { position: fixed; top: 0; left: -300px; width: 260px; height: 100%; background: #fff; z-index: 200; transition: left 0.2s ease; box-shadow: 2px 0 5px rgba(0,0,0,0.1); overflow-y: auto; padding: 1rem; }
.side-nav.open { left: 0; }
#close-nav { position: absolute; top: 10px; right: 10px; background: none; border: none; font-size: 2rem; cursor: pointer; line-height: 1; color: var(--text-muted); }
.side-nav ul { list-style: none; margin: 2rem 0 0 0; padding: 0; }
.side-nav li a { display: block; padding: 0.5rem 0; color: var(--text); font-weight: 500; border-bottom: 1px solid #eee; }
.nav-divider { border-top: 1px solid var(--border); margin: 1rem 0; border-bottom: none; }
.nav-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 150; display: none; }
.nav-overlay.show { display: block; }

/* Language Menu */
.header-right { position: relative; display: flex; align-items: center; }
.lang-menu { position: absolute; right: 0; top: 100%; background: #fff; border: 1px solid var(--border); box-shadow: 0 4px 6px rgba(0,0,0,0.1); display: none; flex-direction: column; min-width: 160px; max-height: 300px; overflow-y: auto; z-index: 110;}
.lang-menu.show { display: flex; }
.lang-menu button { background: none; border: none; border-bottom: 1px solid #eee; padding: 0.6rem 1rem; text-align: left; cursor: pointer; width: 100%; font-family: inherit;}
.lang-menu button:hover { background: #f9f9f9; }

/* Layout */
.main-container { max-width: 1005px; margin: 2rem auto; padding: 0 1rem; }

/* Tool Switcher */
.tool-switcher-container { width: 100%; overflow: hidden; }
.tool-switcher { display: flex; overflow-x: auto; white-space: nowrap; scrollbar-width: none; -ms-overflow-style: none; border-bottom: 1px solid var(--tab-active-bg); }
.tool-switcher::-webkit-scrollbar { display: none; }
.tool-tab { display: inline-block; padding: 0.5rem 1.25rem; background: var(--tab-bg); color: var(--text); text-decoration: none; border: 1px solid var(--border); border-bottom: none; margin-right: 4px; border-radius: 2px 2px 0 0; font-size: 0.95rem; }
.tool-tab:hover { background: #d5d5d5; text-decoration: none; color: var(--text); }
.tool-tab.active { background: var(--tab-active-bg); color: #fff; font-weight: bold; border-color: var(--tab-active-bg); }

.video-container { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; margin: 2rem 0; border: 1px solid var(--border); border-radius: 4px; background: #000; }
.video-container iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
/* Content Panel */
.content-panel { background: var(--panel-bg); border: 1px solid var(--panel-border); border-top: none; padding: 2.5rem; min-height: 600px; border-radius: 0 0 2px 2px; transition: opacity 0.15s ease; }

.breadcrumb { margin-bottom: 1.5rem; font-size: 0.85rem; color: var(--text-muted); }
.breadcrumb a { color: var(--primary); }

kbd { background: linear-gradient(to bottom, #fafafa, #e5e5e5); border: 1px solid #aaa; border-radius: 3px; padding: 3px 8px; font-family: inherit; font-size: 0.9em; color: #111; box-shadow: 0 1px 1px rgba(0,0,0,0.15); display: inline-block; font-weight: normal; margin: 0 0.2rem; }
.instruction-row { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; margin: 1.5rem 0; font-size: 1.05rem; }
.instruction-block { margin: 2rem 0; }

.device-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1rem; margin-top: 2rem; }
@media (min-width: 768px) {
  .device-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
}
.device-card { border: 1px solid var(--border); padding: 1.5rem; text-align: center; color: var(--text); display: flex; flex-direction: column; align-items: center; gap: 0.5rem; background: #fff; }
.device-card:hover { text-decoration: none; border-color: var(--primary); background: #f9f9f9;}
.device-card svg { width: 48px; height: 48px; color: var(--primary); }


/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 2rem 1rem; text-align: center; font-size: 0.9rem; color: var(--text-muted); margin-top: 3rem; background: var(--header-bg); }
.footer-links { display: flex; gap: 1rem; justify-content: center; margin-bottom: 1rem; flex-wrap: wrap; }

.article-content h2 { margin-top: 2.5rem; border-bottom: 1px solid var(--panel-border); padding-bottom: 0.3rem; font-size: 1.3rem;}
.article-content ul, .article-content ol { margin-top: 0.5rem; }

.contact-form { display: flex; flex-direction: column; gap: 1rem; max-width: 500px; margin-top: 1rem; }
.contact-form input, .contact-form textarea { padding: 0.75rem; border: 1px solid var(--border); font-family: inherit; width: 100%; }
.contact-form button { background: var(--primary); color: white; border: none; padding: 0.75rem; cursor: pointer; font-weight: bold; width: 100%; }
.contact-form button:hover { background: #003377; }

@media (max-width: 768px) {
  .search-container { display: none; }
  .content-panel { padding: 1.5rem; }
}
/* Hide Google Translate Base/Widgets Completely */
body { top: 0px !important; position: static !important; }
.skiptranslate iframe,
.goog-te-banner-frame,
#google_translate_element,
#goog-gt-tt,
.VIpgJd-ZVi9od-aZ2wEe-wOHMyf,
.VIpgJd-ZVi9od-ORHb-OEVmcd {
    display: none !important;
}
.goog-text-highlight {
    background-color: transparent !important;
    box-shadow: none !important;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #111;
    color: #fff;
    padding: 1rem;
    text-align: center;
    z-index: 1000;
    font-size: 0.9rem;
    display: none;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}
.cookie-banner.show {
    display: flex;
}
.cookie-banner a {
    color: #a4c2e4;
    text-decoration: underline;
}
.cookie-banner button {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 0.5rem 1.5rem;
    cursor: pointer;
    border-radius: 4px;
    font-weight: bold;
}
.cookie-banner button:hover {
    background: #003366;
}


