button,
input {
  font: inherit;
}

.page-container {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 1.5rem 1rem 4rem;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.breadcrumb a {
  color: var(--primary-hover);
  font-weight: 600;
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.converter-section {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.converter-heading {
  padding: 1.4rem;
  background: #ffffff;
  border-bottom: 1px solid var(--border);
}

.converter-heading h1 {
  color: #0a174e;
  font-family: "Basic", sans-serif;
  font-size: clamp(1.5rem, 4vw, 2rem);
  line-height: 1.2;
}

.converter-heading p {
  margin-top: 0.4rem;
  color: var(--text-muted);
  font-family: "Nunito Sans", sans-serif;
}

.converter-content {
  padding: 1.25rem;
}

.converter-form {
  max-width: 720px;
  padding: 1.25rem;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 12px;
}

.radiation-group + .radiation-group {
  margin-top: 1.8rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.radiation-group h2 {
  color: #0a174e;
  font-family: "Basic", sans-serif;
  font-size: 1.1rem;
}

.group-description {
  margin: 0.3rem 0 0.9rem;
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.4;
}

.form-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.form-group {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.form-group input {
  width: 300px;
  min-height: 42px;
  padding: 0.6rem 0.75rem;
  color: #0a174e;
  background: #ffffff;
  border: 1px solid #b7d8ca;
  border-radius: 8px;
  outline: none;
}

.form-group input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.14);
}

.form-group input.input-error {
  border-color: #b91c1c;
  box-shadow: 0 0 0 3px rgba(185, 28, 28, 0.1);
}

.form-group input.result-input {
  background: var(--surface);
  font-weight: 700;
}

.form-group label {
  min-width: 250px;
  color: #0a174e;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.25;
}

.form-message {
  display: none;
  margin-top: 1rem;
  padding: 0.8rem;
  color: #b91c1c;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
}

.form-message.visible {
  display: block;
}

.button-group {
  margin-top: 1.2rem;
}

.secondary-button {
  min-height: 40px;
  padding: 0.6rem 1.15rem;
  color: #0a174e;
  background: #ffffff;
  border: 1px solid #b7d8ca;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
}

.secondary-button:hover {
  background: var(--surface);
  border-color: var(--accent);
}

.information-section {
  margin-top: 1.25rem;
  padding: 1.4rem;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.information-section h2 {
  color: #0a174e;
  font-family: "Basic", sans-serif;
  font-size: 1.2rem;
}

.information-section p {
  margin-top: 0.65rem;
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.formula {
  color: #0a174e !important;
}

.table-wrapper {
  overflow-x: auto;
  margin-top: 1rem;
}

.conversion-table {
  width: 100%;
  border-collapse: collapse;
}

.conversion-table th,
.conversion-table td {
  padding: 0.7rem;
  border: 1px solid var(--border);
  text-align: left;
}

.conversion-table th {
  color: #0a174e;
  background: var(--surface);
  font-size: 0.84rem;
}

.conversion-table td {
  color: var(--text-muted);
  font-size: 0.82rem;
}

.note-text {
  font-size: 0.8rem !important;
}

@media (max-width: 680px) {
  .page-container {
    padding: 1rem 0.7rem 2.5rem;
  }

  .breadcrumb {
    margin-bottom: 0.8rem;
    font-size: 0.76rem;
  }

  .converter-heading,
  .converter-content,
  .converter-form {
    padding: 0.9rem;
  }

  .converter-heading h1 {
    font-size: 1.25rem;
  }

  .converter-heading p {
    font-size: 0.8rem;
  }

  .radiation-group h2 {
    font-size: 0.95rem;
  }

  .group-description {
    font-size: 0.74rem;
  }

  .form-list {
    gap: 0.5rem;
  }

  .form-group {
    gap: 0.6rem;
  }

  .form-group input {
    width: 48%;
    min-width: 0;
    min-height: 37px;
    padding: 0.45rem 0.55rem;
    font-size: 0.78rem;
  }

  .form-group label {
    min-width: 0;
    flex: 1;
    font-size: 0.7rem;
  }

  .information-section {
    padding: 0.9rem;
  }

  .information-section h2 {
    font-size: 1rem;
  }

  .conversion-table th,
  .conversion-table td {
    padding: 0.5rem;
    font-size: 0.72rem;
  }
}