body {
  /* font-family: system-ui, Arial; */
  font-family: "Open Sans", sans-serif;
  max-width: 960px;
  margin: 0 auto;
  padding: 0;
}

h1 {
  margin: 20px 0;
  text-align: center;
  color: #2b4f8b;
  font-family: "Roboto", sans-serif;
}

h2,
h3 {
  text-align: center;
  color: #2b4f8b;
  margin: 15px 0;
}

p {
  padding: 10px 0;
}

p,
ul,
table {
  font-size: 1.25rem;
  line-height: 1.3;
  font-weight: 300;
  /* text-align: center; */
}

ul {
  list-style-position: inside;
  list-style-type: circle;
  /* text-align: center; */
}

table {
  width: 100%;
  text-align: left;
}

th,
td {
  padding: 8px;
}

th {
  text-transform: uppercase;
  color: #2b4f8b;
  font-family: "Roboto", sans-serif;
}

td {
  border: 1px solid #ddd;
  border-radius: 10px;
}

.currency-summary img {
  display: block;
  max-width: 60%;
  height: auto;
  margin: 20px auto 0 auto;
}

.content a, #content a {
  text-decoration: none;
  color: #2b4f8b;
  font-weight: 400;
  font-style: italic;
}

.row {
  /*display: grid; grid-template-columns: 1fr 1fr; gap: 12px;*/
  margin-bottom: 12px;
  padding: 0;
}

main#content {
  min-height: calc(100vh - 230px);
}

label {
  display: block;
  font-size: 14px;
  margin: 6px;
  font-weight: 500;
}

select,
input {
  width: 100%;
  padding: 10px;
  font-size: 16px;
  border: 1px solid #dddddd !important;
  background-color: #fff;
  outline: none !important;
  border-radius: 12px;
}

.actions {
  display: flex;
  align-items: end;
  gap: 8px;
}

button {
  padding: 10px 14px;
  font-size: 16px;
  cursor: pointer;
}

section.quick-links {
  display: block;
  margin: 15px 0;
}

.result {
  text-align: center;
  margin-top: 16px;
  padding: 14px;
  border: 1px solid #ddd;
  border-radius: 12px;
  float: right;
  width: 65%;
  display: inline-block;
  box-sizing: border-box;
}

.big {
  font-size: 18px;
}

.muted {
  color: #666;
  font-size: 13px;
  margin-top: 10px;
  line-height: 1.45;
}

code {
  background: #f5f5f5;
  padding: 2px 6px;
  border-radius: 6px;
}

#swap {
  width: auto;
  padding: 10;
  margin: 0;
  font-weight: 600;
  border: 1px solid #dddddd;
  background-color: #f7f7f9;
  border-radius: 12px;
  font-size: 1.3rem;
}

#swap:hover {
  border: 1px solid #2b4f8b;
  color: #2b4f8b;
  background-color: #fff;
}

.inputs {
  width: 35%;
  display: inline-block;
}

.col-md-5 {
  margin: 0;
  display: inline-block;
  width: 75%;
  box-sizing: border-box;
}

.col-md-2 {
  margin: 0;

  display: inline-block;
  width: 20%;
  box-sizing: border-box;
}

.grid-links {
  display: inline-block;
}

.grid-links li {
  width: 25%;
  float: left;
  list-style-type: none;
  text-align: center;
}

.grid-links a {
  display: inline-block;
  padding: 8px 10px;
  margin: 3px 0;
  border-radius: 10px;
  box-sizing: border-box;
  text-decoration: none;
  color: #111;
  font-weight: 500;
  border: 1px solid #ddd;
  background-color: #f7f7f9;
  font-size: 1.05rem;
}

.grid-links.emphasized {
  display: block;
  text-align: center;
}

.grid-links.emphasized a {
  font-weight: 700;
  color:#2b4f8b;
}

.grid-links.emphasized a:hover {
  color: #fff;
  background-color:#2b4f8b;
}

.grid-links li a:hover {
  background-color: #fff;
  border: 1px solid #21365a;
}

.grid-links img {
  width: 30px;
  margin: 0 5px;
}

.faq {
  max-width: 1100px;
  margin: 32px auto 0 auto;
  padding: 24px;
  border-radius: 14px;
  background: #f7f7f9;
  font-family: "Roboto", sans-serif;
}

.faq h2 {
  margin: 0 0 14px 0;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.faq-item {
  background: #fff;
  border: 1px solid #e6e6ea;
  border-radius: 12px;
  padding: 10px 12px;
}

.faq-item p {
  font-size: 1.05rem;
  text-align: left;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  float: right;
  font-weight: 700;
}

.faq-item[open] summary::after {
  content: "-";
}

.faq-answer {
  margin-top: 10px;
  color: #444;
  line-height: 1.45;
}

/* Header */

header {
  position: sticky;
  top: 0;
  background: #f7f7f9;
  border-bottom: 1px solid var(--border);
  z-index: 50;
  padding: 5px 15px;
  box-shadow: 0 4px 6px -5px rgba(0, 0, 0, 0.4);
  height: 75px;
}

footer {
  margin-top: 15px;
  background-color: #2b4f8b;
  color: #ffffff;
  padding: 5px 15px;
  text-align: center;
  height: 100px;
}

footer p {
  font-size: 0.9rem;
}

footer ul {
  margin: 5px;
  padding: 0;
}

.footer-menu li {
  display: inline-block;
}

.footer-menu a {
  text-decoration: none;
  font-size:1rem;
  padding: 0 10px;
  color:#ffffff;
  font-weight: 500;
}


header img {
  width: 380px;
  height: auto;
}

.nav {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  font-weight: 800;
  user-select: none;
}

/* Desktop menu */
.menu {
  display: flex;
  align-items: center;
  gap: 18px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.menu a {
  text-decoration: none;
  color: #111;
  font-weight: 700;
  font-size: 1.2rem;
  font-size: 15px;
  padding: 8px 10px;
  border-radius: 10px;
  text-transform: uppercase;
}

.menu a:hover {
  background: rgba(0, 0, 0, 0.06);
}

.menu .cta a {
  border: 1px solid var(--border);
}

/* Mobile toggle (CSS-only) */
.nav-toggle {
  display: none;
}

.hamburger {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--border);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.hamburger span {
  width: 18px;
  height: 2px;
  background: #111;
  position: relative;
  display: block;
  border-radius: 2px;
}
.hamburger span::before,
.hamburger span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: #111;
  border-radius: 2px;
}
.hamburger span::before {
  top: -6px;
}
.hamburger span::after {
  top: 6px;
}

@media (max-width: 768px) {

  nav  {
    height: 100% !important;
  }

  header img {
    width: 280px;
  }

  .hamburger {
    z-index: 999999;
    display: inline-flex;
    position: absolute;
    right: 0;
  }

  /* hide horizontal menu by default */
  .menu {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    background: #2b4f8b;
    border-bottom: 1px solid var(--border);
    padding: 12px var(--pad) 18px;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    box-shadow: 0 4px 6px -5px rgba(0, 0, 0, 0.4);
    text-align: center;
  }

  .menu li {
    display: contents;
  }

  .menu a {
    width: 100%;
    padding: 6px 0px;
    color: #ffffff;
  }

  p {
    text-align: center;
    font-size: 1.15rem;
    padding:5px 0;
  }

  .inputs, .result {
    width: 90%;
    margin:5px auto;
    display: block;
    float: none;
  }

  .result {
    margin-top: 10px;
  }

  /* show it when checkbox is checked */
  .nav-toggle:checked ~ ul.menu {
    display: flex;
  }

  /* animate hamburger into X */
  .nav-toggle:checked + label.hamburger span {
    background: transparent;
  }
  .nav-toggle:checked + label.hamburger span::before {
    transform: translateY(6px) rotate(45deg);
    background: #fff;
  }
  .nav-toggle:checked + label.hamburger span::after {
    transform: translateY(-6px) rotate(-45deg);
    background: #fff;
  }
  .hamburger span::before,
  .hamburger span::after {
    transition: transform 0.2s ease;
  }

  .grid-links {
    padding: 0;
  }
  
  .grid-links img {
      width: 25px;
  }

  .grid-links li {
    width: 50%;
  }

  h2, h3 {
    margin: 10px 5px;
  }

  footer {
    height: 60px;
    padding: 5px;
  }

  .footer-menu a {
    font-size:0.85 rem !important;
    padding: 0 5px;
  }

  footer ul {
    margin: 0;
  }

  .faq-grid {
   grid-template-columns: repeat(1, minmax(0, 1fr))
  }
}
