/* Shared styles for HandyTool content pages */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  color: #111827;
  background: #F9FAFB;
  -webkit-font-smoothing: antialiased;
}
a { color: #2563EB; text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 720px; margin: 0 auto; padding: 0 16px; }

/* Header */
.site-header {
  background: #FFFFFF;
  border-bottom: 1px solid #E5E7EB;
  padding: 14px 0;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.logo {
  font-size: 1.25rem;
  font-weight: 800;
  color: #111827;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.logo span { color: #2563EB; }
.logo:hover { text-decoration: none; }
.tagline {
  font-size: 0.875rem;
  color: #6B7280;
  font-weight: 500;
}
@media (max-width: 480px) {
  .tagline { display: none; }
}

/* Tool navigation (calculator switcher) */
.tool-nav {
  display: flex;
  gap: 16px;
  font-size: 0.875rem;
  font-weight: 500;
}
.tool-nav a {
  color: #6B7280;
  text-decoration: none;
  padding: 4px 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.tool-nav a:hover {
  color: #2563EB;
  text-decoration: none;
}
.tool-nav a.active {
  color: #2563EB;
  border-bottom-color: #2563EB;
}
@media (max-width: 480px) {
  .tool-nav { gap: 12px; font-size: 0.8125rem; }
}

/* Main / article */
main { padding: 32px 0 48px; }
.article {
  background: #FFFFFF;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  padding: 32px;
}
@media (max-width: 480px) {
  .article { padding: 24px 20px; }
}
.article h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}
.article .updated {
  font-size: 0.875rem;
  color: #6B7280;
  margin-bottom: 24px;
}
.article h2 {
  font-size: 1.375rem;
  font-weight: 600;
  margin: 28px 0 10px;
  letter-spacing: -0.01em;
}
.article h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  margin: 20px 0 6px;
}
.article p { margin-bottom: 14px; color: #374151; }
.article ul, .article ol { margin: 0 0 14px 22px; color: #374151; }
.article li { margin-bottom: 6px; }
.article strong { color: #111827; }
.article .back-home {
  display: inline-block;
  margin-bottom: 16px;
  font-size: 0.9375rem;
  color: #2563EB;
  font-weight: 500;
}

/* Contact form / blocks */
.contact-card {
  background: #F9FAFB;
  border-radius: 10px;
  padding: 18px;
  margin: 16px 0;
  border: 1px solid #E5E7EB;
}
.contact-card .label {
  font-size: 0.8125rem;
  color: #6B7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  margin-bottom: 4px;
}
.contact-card .value {
  font-size: 1rem;
  font-weight: 600;
  color: #111827;
}

/* Footer */
.site-footer {
  background: #FFFFFF;
  border-top: 1px solid #E5E7EB;
  padding: 28px 0;
  margin-top: 40px;
}
.footer-inner { text-align: center; }
.footer-copy {
  font-size: 0.875rem;
  color: #111827;
  font-weight: 500;
  margin-bottom: 12px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  justify-content: center;
  margin-bottom: 12px;
  font-size: 0.875rem;
}
.footer-links a { color: #6B7280; }
.footer-links a:hover { color: #2563EB; }
.footer-disclaimer {
  font-size: 0.75rem;
  color: #9CA3AF;
}
