* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #ffffff;
  color: #111827;
  font-family: Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

a {
  text-decoration: none;
}

/* =========================
   TOP HEADER
========================= */

.top-header {
  width: 100%;
  background: #000;
}

.nav-wrap {
  max-width: 980px;
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo img {
  width: 180px;
  display: block;
  height: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.main-nav a {
  color: #fff;
  font-weight: bold;
}

.social-links {
  display: flex;
  gap: 12px;
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 32px;
  cursor: pointer;
}

/* =========================
   PAGE LAYOUT
========================= */

.container {
  max-width: 980px;
  margin: 18px auto;
  padding: 0 16px;
}

.site-header {
  width: 100%;
  display: flex;
  justify-content: center;
}

.header-image {
  width: 100%;
  display: flex;
  justify-content: center;
}

.header-image img {
  width: 100%;
  max-width: 980px;
  height: auto;
  display: block;
}

/* =========================
   TOOL
========================= */

.tool {
  background: #f3f8ff;
  border: 1px solid #e6eef8;
  padding: 24px;
}

.tool h2 {
  margin-top: 0;
}

.tool-tagline,
.category-hint {
  color: #6b7280;
}

.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.form-row > div {
  flex: 1 1 220px;
}

label {
  display: block;
  margin-bottom: 6px;
  color: #6b7280;
}

input,
select {
  width: 100%;
  padding: 12px;
  border: 1px solid #dfe7f2;
  background: #fff;
  font-size: 1rem;
}

.actions {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn {
  background: #0b60c2;
  color: #fff;
  border: 0;
  padding: 12px 18px;
  cursor: pointer;
  font-weight: 600;
}

.btn.secondary {
  background: #374151;
}

.result {
  margin-top: 18px;
  padding: 16px;
  background: #fff;
  border: 1px solid #e6eef8;
  font-weight: 600;
}

.panel {
  margin-top: 18px;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 12px;
  border-bottom: 1px solid #eef3fb;
  text-align: left;
}

.permalink {
  margin-top: 18px;
}

.permalink input {
  margin-bottom: 10px;
}

.site-footer {
  text-align: center;
  padding: 24px 0;
  color: #6b7280;
}

.main-nav {
  display: flex;
}

.main-nav.active {
  display: flex;
}
/* =========================
   MOBILE
========================= */

@media screen and (max-width: 650px) {

  .nav-wrap {
    flex-wrap: wrap;
  }

  .menu-toggle {
    display: block;
  }

  .main-nav {
    display: none !important;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding-top: 16px;
  }

  .main-nav.active {
    display: flex !important;
  }

  .social-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .logo img {
    width: 150px;
  }

  .actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }
}