/* hourly2salarycalc.com styles */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  margin: 0;
  padding: 0;
  background: #f7f5f0;
  color: #1a1a1a;
}

.wrap {
  max-width: 980px;
  margin: 0 auto;
  padding: 16px;
}

/* Header */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 20px 0 28px;
}

.brand h1 {
  margin: 0;
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.6rem;
  font-weight: 400;
  letter-spacing: -0.5px;
}

.brand h1 .dot { color: #c8622a; }
.brand p { margin: 4px 0 0; font-size: 0.85rem; color: #777; }

nav { display: flex; gap: 18px; flex-wrap: wrap; }
nav a { text-decoration: none; color: #666; font-size: 0.9rem; font-weight: 500; }
nav a.active, nav a:hover { color: #c8622a; }

/* Grid */
.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 620px) {
  .grid { grid-template-columns: 1fr; }
  header { flex-direction: column; align-items: flex-start; }
  .brand h1 { font-size: 1.3rem; }
}

/* Cards */
.card {
  background: #fff;
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  border: 1px solid #ede9e3;
}

.card h2 {
  margin: 0 0 10px;
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.2rem;
  font-weight: 400;
}

.card p { margin: 0 0 12px; color: #555; font-size: 0.95rem; line-height: 1.6; }

/* Form */
label {
  display: block;
  font-weight: 600;
  font-size: 0.85rem;
  margin-top: 16px;
  margin-bottom: 6px;
  color: #333;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

input[type="text"] {
  width: 100%;
  padding: 11px 14px;
  font-size: 1.05rem;
  font-family: 'DM Sans', sans-serif;
  border: 1.5px solid #ddd;
  border-radius: 10px;
  background: #faf9f7;
  transition: border-color 0.15s;
  outline: none;
}

input[type="text"]:focus { border-color: #c8622a; }

.btn {
  display: block;
  width: 100%;
  margin-top: 20px;
  padding: 13px;
  background: #c8622a;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  transition: background 0.15s;
}

.btn:hover { background: #a84e20; }

/* Results */
.result {
  margin-top: 20px;
  padding: 20px;
  background: #fdf8f4;
  border-radius: 12px;
  border: 1.5px solid #ede0d4;
}

.result-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.result-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.big-result {
  grid-column: 1 / -1;
  background: #fff;
  border: 1.5px solid #ede0d4;
  border-radius: 10px;
  padding: 14px 16px;
}

.result-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #999;
}

.result-value {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.4rem;
  color: #1a1a1a;
}

.big-result .result-value {
  font-size: 2rem;
  color: #c8622a;
}

/* Quick reference */
.quick-ref { background: #faf9f7; border-radius: 10px; padding: 14px; }
.quick-ref p { margin: 0 0 10px; font-size: 0.9rem; }
.quick-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 12px;
  font-size: 0.85rem;
}
.quick-grid span:nth-child(odd) { color: #666; }
.quick-grid span:nth-child(even) { font-weight: 600; }

/* Misc */
ul { margin: 8px 0 0 18px; color: #555; }
li { margin: 6px 0; font-size: 0.9rem; }
.sep { border-top: 1px solid #ede9e3; margin: 18px 0; }
.mini { font-size: 0.8rem; color: #999; margin-top: 10px; }

/* Ad slots */
.ad-slot { margin: 16px 0; min-height: 280px; }

/* Sponsor */
.sponsor-banner {
  background: #fffbe6;
  border: 1px solid #ffe58f;
  border-radius: 10px;
  padding: 12px 16px;
  margin-top: 10px;
  margin-bottom: 16px;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 12px;
}

.sponsor-sidebar {
  background: #fffbe6;
  border: 1px solid #ffe58f;
  border-radius: 10px;
  padding: 12px;
  margin-top: 16px;
  font-size: 0.85rem;
}

.sponsor-label {
  font-size: 0.7rem;
  background: #ffe58f;
  border-radius: 4px;
  padding: 2px 6px;
  font-weight: 700;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Footer */
.foot {
  margin-top: 36px;
  text-align: center;
  font-size: 0.85rem;
  color: #888;
  padding-bottom: 24px;
}

.related-tools { margin-bottom: 10px; }
.related-tools a { color: #c8622a; text-decoration: none; margin: 0 4px; }
.related-tools a:hover { text-decoration: underline; }
.footer-links { margin-bottom: 8px; }
.footer-links a { color: #888; text-decoration: none; font-size: 0.85rem; }
.footer-links a:hover { color: #c8622a; }
.footer-meta { margin-bottom: 6px; }
.sponsor-line { font-size: 0.85rem; margin-top: 8px; }
.sponsor-line a { color: #c8622a; text-decoration: none; }

/* Legal pages */
.legal { max-width: 680px; }
.legal h3 { margin: 22px 0 6px; font-size: 1rem; font-weight: 600; }
.legal p, .legal ul { margin: 4px 0; line-height: 1.7; color: #555; }
.legal ul { padding-left: 20px; }
.legal a { color: #c8622a; }
