/* Shared header + footer — canonical homepage shell (DEV Mason RAW) */
:root {
  --bg: #0d1117;
  --bg2: #010409;
  --line: rgba(255, 255, 255, 0.12);
  --muted: #8b949e;
  --blue: #008ed6;
  --blue-bright: #47c3ff;
  --max: 1280px;
  --font: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --brand: Raleway, Inter, Arial, Helvetica, sans-serif;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 9999;
  padding: 10px 16px;
  background: var(--blue);
  color: #fff;
}

.skip-link:focus {
  left: 16px;
}

.topbar {
  background: var(--bg2);
  color: var(--muted);
  font-size: 13px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.topbar .wrap {
  display: flex;
  justify-content: center;
  gap: 10px;
  text-align: center;
}

.topbar strong {
  color: var(--blue-bright);
}

.dws-submenu {
  background: var(--bg2);
  border-bottom: none;
}

.dws-submenu__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 16px;
  padding: 9px 0;
}

.dws-submenu__label {
  color: var(--blue-bright);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dws-submenu a {
  color: #c9d1d9;
  font-size: 13px;
  font-weight: 600;
}

.dws-submenu a:hover {
  color: var(--blue-bright);
}

.header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(13, 17, 23, 0.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  min-height: 78px;
  display: grid;
  grid-template-columns: minmax(230px, auto) 1fr minmax(280px, auto);
  gap: 24px;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
}

.brand img {
  width: 48px;
  height: 48px;
}

.brand-text {
  font-family: var(--brand);
  line-height: 1.1;
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  white-space: nowrap;
}

.brand-text small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  margin-top: 4px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  color: #c9d1d9;
  font-size: 14px;
  font-weight: 600;
}

.nav a:hover {
  color: var(--blue-bright);
}

.actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.search {
  width: min(360px, 28vw);
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(1, 4, 9, 0.72);
  border-radius: 9px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.search input {
  width: 100%;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
  padding: 0 14px;
  font-size: 14px;
}

.search input::placeholder {
  color: var(--muted);
}

.icon-link {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.08);
}

.icon-link svg {
  width: 18px;
  height: 18px;
  fill: rgb(255 255 255);
}

.icon-link:hover {
  color: var(--blue-bright);
  border-color: rgba(255, 255, 255, 0.45);
}

.menu {
  display: none;
  min-width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.03);
  color: #fff;
  place-items: center;
  font-weight: 800;
  padding: 0 14px;
}

.wrap {
  width: min(var(--max), calc(100% - 34px));
  margin: auto;
}

.footer {
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding: 44px 0;
  color: var(--muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
}

.footer a {
  display: block;
  color: #c9d1d9;
  margin: 8px 0;
  font-size: 14px;
  text-decoration: none;
}

.footer a:hover {
  color: var(--blue);
}

.footer b {
  color: #fff;
  display: block;
  margin-bottom: 8px;
}

.footer-brand {
  margin-bottom: 12px;
}

.footer-contact p {
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.6;
}

.socials {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.socials a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  margin: 0;
}

.socials svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.copyright {
  text-align: center;
  margin-top: 34px;
  font-size: 13px;
  color: var(--muted);
}

@media (max-width: 1100px) {
  .header-inner {
    grid-template-columns: auto 1fr;
  }

  .nav {
    display: none;
  }

  .actions {
    justify-self: end;
  }

  .menu {
    display: grid;
  }

  .search {
    width: 240px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .dws-submenu__inner {
    gap: 6px 12px;
    font-size: 12px;
  }
}

@media (max-width: 700px) {
  .search {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .brand-text {
    font-size: 14px;
  }

  .brand-text small {
    font-size: 10px;
  }
}
