/* LifeTools Hub shared stylesheet */
:root {
  --primary: #1b6b45;
  --primary-dark: #114a2f;
  --primary-light: #e7f4ec;
  --accent: #f4a83d;
  --bg: #f5f8f6;
  --card: #ffffff;
  --text: #29343a;
  --muted: #64757e;
  --border: #dfe9e2;
  --green: #2e8b57;
  --radius: 14px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16.5px;
}
header {
  background: linear-gradient(120deg, #114a2f, #1b6b45 60%, #27835a);
  color: #fff;
  padding: 16px 20px;
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: 0 2px 10px rgba(17,74,47,0.25);
}
.nav-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}
.logo {
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
  text-decoration: none;
  letter-spacing: -0.02em;
}
.logo span { color: var(--accent); }
nav { display: flex; flex-wrap: wrap; gap: 4px; }
nav a {
  color: #eaf6ef;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 20px;
  transition: background 0.15s;
}
nav a:hover { background: rgba(255,255,255,0.18); color: #fff; }
main { max-width: 1000px; margin: 0 auto; padding: 28px 20px 56px; }
.hero {
  text-align: center;
  padding: 34px 16px 10px;
}
.hero h1 { font-size: 2.3rem; }
h1 {
  font-size: 1.9rem;
  color: var(--primary-dark);
  margin-bottom: 10px;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
h2 { font-size: 1.35rem; color: var(--primary-dark); margin: 30px 0 12px; }
h3 { font-size: 1.08rem; color: var(--primary-dark); margin: 18px 0 8px; }
p { margin-bottom: 14px; }
.subtitle { color: var(--muted); font-size: 1.08rem; margin-bottom: 22px; }
.tool-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  margin-bottom: 26px;
  box-shadow: 0 4px 16px rgba(17,74,47,0.07);
}
label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin: 14px 0 5px;
}
input[type=text], input[type=number], input[type=date], select, textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 1rem;
  font-family: inherit;
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(27,107,69,0.15);
}
textarea { min-height: 84px; resize: vertical; }
.row { display: flex; flex-wrap: wrap; gap: 14px; }
.row > div { flex: 1; min-width: 200px; }
button.btn {
  background: linear-gradient(120deg, var(--primary-dark), var(--primary));
  color: #fff;
  border: none;
  padding: 14px 30px;
  font-size: 1.02rem;
  font-weight: 700;
  border-radius: 10px;
  cursor: pointer;
  margin-top: 20px;
  margin-right: 8px;
  font-family: inherit;
  transition: transform 0.1s, box-shadow 0.15s;
  box-shadow: 0 3px 10px rgba(17,74,47,0.25);
}
button.btn:hover { transform: translateY(-1px); box-shadow: 0 5px 14px rgba(17,74,47,0.32); }
button.btn-secondary {
  background: #fff;
  color: var(--primary);
  border: 1.5px solid var(--primary);
  box-shadow: none;
}
.result {
  background: var(--primary-light);
  border: 1px solid #c9e4d3;
  border-left: 5px solid var(--primary);
  border-radius: 10px;
  padding: 20px;
  margin-top: 22px;
  white-space: pre-wrap;
  display: none;
}
.result.show { display: block; }
.result .big {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary-dark);
  display: block;
  margin-bottom: 6px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
  margin: 22px 0;
}
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.15s, box-shadow 0.15s;
  display: block;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(17,74,47,0.14);
  border-color: var(--primary);
}
.card h3 { margin-top: 10px; }
.card p { font-size: 0.93rem; color: var(--muted); margin-bottom: 0; }
.icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}
.icon.memorial { background: #f1eaf7; }
.icon.finance { background: #e7f3ea; }
.badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 10px;
  border-radius: 20px;
  margin-top: 12px;
}
.badge.memorial { background: #f1eaf7; color: #6a4b82; }
.badge.finance { background: #e7f3ea; color: #2e6b3f; }
.ad-slot {
  max-width: 1000px;
  margin: 20px auto;
  padding: 0 20px;
  text-align: center;
}
.ad-slot .ad-placeholder {
  border: 2px dashed var(--border);
  border-radius: 10px;
  padding: 30px;
  color: var(--muted);
  font-size: 0.8rem;
  background: #fff;
}
.disclaimer {
  font-size: 0.84rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
  padding-top: 14px;
  margin-top: 30px;
}
footer {
  background: var(--primary-dark);
  color: #cfe6d8;
  padding: 28px 20px;
  font-size: 0.88rem;
}
footer .nav-inner { display: block; }
footer a { color: #fff; }
table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  margin: 14px 0;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
}
table.data th, table.data td {
  border: 1px solid var(--border);
  padding: 10px 14px;
  text-align: left;
}
table.data th { background: var(--primary-light); color: var(--primary-dark); }
ul.msg-list { list-style: none; }
ul.msg-list li {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 15px 18px;
  margin-bottom: 10px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
ul.msg-list li:hover {
  border-color: var(--primary);
  box-shadow: 0 3px 10px rgba(17,74,47,0.1);
}
.copy-hint { font-size: 0.8rem; color: var(--muted); }
@media (max-width: 600px) {
  h1 { font-size: 1.5rem; }
  .hero h1 { font-size: 1.7rem; }
  .row > div { min-width: 100%; }
  button.btn { width: 100%; margin-right: 0; }
}
