:root { 
  --primary-bg: #0A0B0E; 
  --text-color: #ffffff; 
  --muted-text: #c1c1cb; 
  --card-bg: #14151a; 
  --border-color: #25262d; 
  --accent: #F68318;
}

* { 
  box-sizing: border-box; 
}

body { 
  margin: 0; 
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif; 
  background: var(--primary-bg); 
  color: var(--text-color);
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  line-height: 1.5;
}

a { 
  color: inherit; 
  text-decoration: none; 
  transition: all 0.2s ease;
}

.wrapper { 
  max-width: 1140px; 
  margin: 0 auto; 
  padding: 0 24px;
  width: 100%;
  overflow-x: hidden;
}

.site-header { 
  position: sticky; 
  top: 0; 
  background: rgba(10, 11, 14, 0.85); 
  backdrop-filter: blur(12px); 
  border-bottom: 1px solid var(--border-color); 
  z-index: 999;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  position: relative;
}

.brand-section {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
}

.brand-section img {
  height: 44px;
  width: auto;
}

.brand-info {
  display: flex;
  flex-direction: column;
}

.brand-info .subdued {
  font-size: 13px;
  color: var(--muted-text);
}

.brand-info strong {
  font-size: 15px;
  line-height: 1.3;
  font-weight: 600;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.main-nav a { 
  padding: 12px 16px; 
  border-radius: 24px; 
  display: inline-flex; 
  gap: 8px; 
  align-items: center; 
  font-size: 14px; 
  color: #e8e8ec; 
  white-space: nowrap;
  font-weight: 500;
}

.main-nav a.active, .main-nav a:hover { 
  background: var(--accent); 
  color: #ffffff; 
  transform: translateY(-1px);
}

.header-badges {
  display: flex;
  gap: 10px;
  align-items: center;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 26px;
  cursor: pointer;
  padding: 14px;
  border-radius: 8px;
  transition: background 0.3s ease;
  min-width: 52px;
  min-height: 52px;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  z-index: 1001;
  position: relative;
}

.menu-toggle:hover,
.menu-toggle:active,
.menu-toggle:focus {
  background: rgba(255, 255, 255, 0.12);
  outline: none;
}

.menu-toggle:active {
  transform: scale(0.96);
}

.toggle-icon {
  display: block;
  line-height: 1;
  pointer-events: none;
}

.nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  z-index: 9997;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.nav-overlay.open {
  opacity: 1;
  visibility: visible;
}

.mobile-navigation {
  position: fixed;
  top: 0;
  right: -100%;
  width: 300px;
  height: 100vh;
  background: var(--primary-bg);
  border-left: 1px solid var(--border-color);
  transition: right 0.35s ease;
  z-index: 9998;
  overflow-y: auto;
  box-shadow: -8px 0 24px rgba(0, 0, 0, 0.4);
}

.mobile-navigation.open {
  right: 0;
}

.mobile-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px;
  border-bottom: 1px solid var(--border-color);
  background: rgba(0, 0, 0, 0.25);
}

.mobile-header strong {
  color: var(--accent);
  font-size: 19px;
  font-weight: 600;
}

.close-nav {
  background: none;
  border: none;
  color: #ffffff;
  font-size: 26px;
  cursor: pointer;
  padding: 10px;
  border-radius: 6px;
  transition: background 0.3s ease;
}

.close-nav:hover {
  background: rgba(255, 255, 255, 0.12);
}

.mobile-links {
  padding: 24px;
  flex: 1;
}

.mobile-links a {
  display: block;
  padding: 18px 0;
  color: #e8e8ec;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 17px;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
}

.mobile-links a:last-child {
  border-bottom: none;
}

.mobile-links a.active,
.mobile-links a:hover {
  color: var(--accent);
  background: rgba(246, 131, 24, 0.08);
  padding-left: 12px;
}

.mobile-links a.active:before {
  content: '▶';
  position: absolute;
  left: -8px;
  color: var(--accent);
}

.mobile-footer {
  padding: 24px;
  border-top: 1px solid var(--border-color);
  background: rgba(0, 0, 0, 0.25);
}

.mobile-footer .tag {
  display: block;
  margin-bottom: 12px;
  text-align: center;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
}

.section-label { 
  color: #aaacb7; 
  text-transform: uppercase; 
  letter-spacing: 0.25em; 
  font-size: 13px; 
  margin-bottom: 8px; 
  font-weight: 600;
}

h1 { 
  font-size: 36px; 
  margin: 16px 0; 
  font-weight: 700;
  line-height: 1.2;
}

h2 { 
  font-size: 28px; 
  margin: 20px 0 12px; 
  font-weight: 600;
  line-height: 1.3;
}

h3 { 
  font-size: 20px; 
  margin: 14px 0 10px; 
  font-weight: 600;
  line-height: 1.3;
}

p, li { 
  color: #d9d9e0; 
  line-height: 1.7; 
  margin-bottom: 12px;
}

.content-section { 
  padding: 36px 0; 
  border-bottom: 1px solid var(--border-color); 
}

.layout-grid { 
  display: grid; 
  gap: 18px; 
}

.cols-2 { 
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); 
}

.cols-3 { 
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); 
}

.content-card { 
  background: var(--card-bg); 
  border: 1px solid var(--border-color); 
  border-radius: 20px; 
  padding: 20px; 
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.content-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.tag { 
  display: inline-flex; 
  padding: 8px 12px; 
  font-size: 13px; 
  border: 1px solid var(--border-color); 
  border-radius: 999px; 
  color: #e8e8ec; 
  margin-right: 10px; 
  font-weight: 500;
  background: rgba(255, 255, 255, 0.03);
}

.site-footer { 
  background: #0e0f13; 
  border-top: 1px solid var(--border-color); 
  padding: 40px 0; 
  font-size: 15px; 
}

ul.styled-list { 
  list-style: disc; 
  padding-left: 20px; 
}

ol.styled-list { 
  padding-left: 20px; 
}

.subdued { 
  color: #aaacb7; 
  font-size: 14px; 
}

@media (max-width: 768px) {
  html, body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
  }
  
  .wrapper {
    padding: 0 18px;
    max-width: 100%;
    overflow-x: hidden;
  }
  
  .header-container {
    padding: 12px 0;
    width: 100%;
    max-width: 100%;
    overflow: visible;
  }
  
  .main-nav {
    display: none !important;
  }
  
  .header-badges {
    display: none !important;
  }
  
  .menu-toggle {
    display: block !important;
    flex-shrink: 0;
  }
  
  .brand-section {
    gap: 10px;
    flex: 1;
    min-width: 0;
    overflow: hidden;
  }
  
  .brand-section img {
    height: 36px;
    flex-shrink: 0;
  }
  
  .brand-info {
    min-width: 0;
    overflow: hidden;
  }
  
  .brand-info strong {
    font-size: 13px;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  .brand-info .subdued {
    font-size: 11px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  h1 {
    font-size: 30px;
    line-height: 1.2;
  }
  
  h2 {
    font-size: 24px;
    line-height: 1.3;
  }
  
  h3 {
    font-size: 18px;
  }
  
  .content-section {
    padding: 28px 0;
  }
  
  .content-card {
    padding: 16px;
  }
  
  .cols-2 {
    grid-template-columns: 1fr;
  }
  
  .cols-3 {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  
  .site-footer {
    padding: 28px 0;
    font-size: 13px;
  }
  
  .site-footer .cols-3 {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .site-footer .wrapper > div:last-child {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  html, body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
  }
  
  .wrapper {
    padding: 0 12px;
    max-width: 100% !important;
    overflow-x: hidden;
  }
  
  .header-container {
    max-width: 100%;
    overflow: hidden;
  }
  
  .brand-info strong {
    font-size: 12px;
    max-width: 200px;
  }
  
  .brand-info .subdued {
    font-size: 10px;
    max-width: 200px;
  }
  
  h1 {
    font-size: 26px;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
  
  h2 {
    font-size: 22px;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
  
  .content-card {
    padding: 14px;
    overflow-x: hidden;
    word-wrap: break-word;
  }
  
  .content-section {
    padding: 24px 0;
    overflow-x: hidden;
  }
  
  .tag {
    font-size: 11px;
    padding: 6px 10px;
  }
  
  * {
    max-width: 100%;
    overflow-wrap: break-word;
  }
  
  img {
    max-width: 100%;
    height: auto;
  }
  
  table {
    width: 100%;
    table-layout: fixed;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .wrapper {
    padding: 0 32px;
  }
  
  .main-nav a {
    font-size: 13px;
    padding: 10px 14px;
  }
  
  .cols-3 {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  }
}

@media (min-width: 1200px) {
  .wrapper {
    max-width: 1240px;
  }
  
  h1 {
    font-size: 40px;
  }
  
  h2 {
    font-size: 32px;
  }
}