
/* Converter layout */
.converter {
  max-width: 30rem;
  margin: 3rem auto;
  padding: 2rem;
  border-radius: 1rem;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(13, 71, 161, 0.12);
}

.converter h1 {
  margin: 0 0 1.5rem;
  font-size: 1.75rem;
  color: #0d47a1;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
  margin-bottom: 1rem;
}

.field label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #00796b;
}

.field select,
.field input {
  padding: 0.65rem 0.75rem;
  font-size: 1rem;
  border: 1px solid #b2dfdb;
  border-radius: 0.5rem;
  background: #f7fffe;
  color: #102a43;
}

.field select:focus,
.field input:focus {
  outline: 2px solid #26a69a;
  outline-offset: 1px;
}

.row {
  display: flex;
  align-items: flex-end;
  gap: 0.75rem;
}

.swap {
  margin-bottom: 1rem;
  padding: 0.65rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #ffffff;
  background: #00897b;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
}

.swap:hover {
  background: #00695c;
}

.result {
  margin: 0.5rem 0 0;
  font-size: 1.6rem;
  font-weight: 700;
  color: #0d47a1;
  word-break: break-all;
}

.error {
  margin: 0.5rem 0 0;
  font-size: 0.875rem;
  color: #c62828;
  min-height: 1.2em;
}
.categories {
  margin: 3rem auto;
  max-width: 60rem;
  padding: 0 1rem;
  scroll-margin-top: 5rem;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}

.category-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.25rem;
  border: 1px solid #b2dfdb;
  border-radius: 0.75rem;
  background: #f7fffe;
  color: #102a43;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 120ms ease, transform 120ms ease;
}

.category-card:hover,
.category-card:focus-visible {
  border-color: #26a69a;
  transform: translateY(-2px);
  outline: none;
}

.category-card__label {
  font-size: 1.125rem;
  font-weight: 600;
  color: #0d47a1;
}

.category-card__meta {
  font-size: 0.875rem;
  color: #00796b;
  opacity: 0.85;
}

.category-card[hidden] {
  display: none !important;
}

.no-matches {
  color: #64748b;
  font-size: 0.95rem;
  padding: 1rem 0;
}

.search-wrap {
  max-width: 480px;
  margin: 1rem 0 1.5rem;
}

.search-wrap input {
  width: 100%;
  padding: 0.6rem 0.9rem;
  font: inherit;
  border: 1px solid #cbd5e1;
  border-radius: 0.5rem;
  background: #fff;
  color: inherit;
}

.search-wrap input:focus {
  outline: 2px solid #14b8a6;
  outline-offset: 1px;
  border-color: transparent;
}
/* --- Site header (Day 3 branding restored) --- */
.site-header{position:sticky;top:0;z-index:20;background:rgba(13,71,161,.96);backdrop-filter:blur(8px);border-bottom:1px solid rgba(38,166,154,.35)}
.header-inner{display:flex;align-items:center;justify-content:space-between;gap:1rem;max-width:1080px;margin:0 auto;padding:.85rem 1.25rem}
.brand{display:flex;align-items:center;gap:.55rem;color:#fff;font-weight:700;text-decoration:none;font-size:1.05rem}
.brand-accent{color:#26a69a}
.brand-mark{width:18px;height:18px;border-radius:5px;background:linear-gradient(135deg,#0d47a1,#26a69a);box-shadow:0 0 0 2px rgba(38,166,154,.35)}
.site-nav{display:flex;gap:1.25rem}
.site-nav a{color:#dbe8f7;text-decoration:none;font-size:.9rem;font-weight:500}
.site-nav a:hover{color:#26a69a}
@media (max-width:600px){.site-nav{gap:.85rem}.site-nav a{font-size:.85rem}}

.brand{white-space:nowrap}

#category{scroll-margin-top:5rem}
