/* assets/css/style.css - shared stylesheet */
:root{
  --primary:#2563eb;
  --bg:#f8f9fa;
  --card:#ffffff;
  --text:#0f172a;
  --muted:#546575;
  --container-max:1100px;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial;
  color:var(--text);
  background:var(--bg);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  display:flex;
  flex-direction:column;
  min-height:100vh;
}

/* container that centers content and provides left/right spacing */
.container-narrow{
  width:100%;
  max-width:var(--container-max);
  margin-left:auto;
  margin-right:auto;
  padding-left:1rem;
  padding-right:1rem;
}

/* larger side padding on wide screens */
@media(min-width:900px){
  .container-narrow{padding-left:2.5rem;padding-right:2.5rem}
}

header.site-header{
  background:#fff;
  border-bottom:1px solid #e6e9ee;
  padding:1.25rem 0;
}

.navbar-brand{
  font-weight:700;
  letter-spacing:0.2px;
}

/* cards */
.calc-card{
  background:var(--card);
  border-radius:12px;
  padding:1.25rem;
  box-shadow:0 10px 24px rgba(15,23,42,0.06);
}

/* input style */
.form-control{
  border-radius:8px;
  border:1px solid #dbe7fb;
  padding:0.9rem 0.85rem;
  font-size:0.95rem;
}

/* buttons */
.btn-primary{
  background:var(--primary);
  border-color:var(--primary);
  border-radius:8px;
  padding:0.85rem;
  font-weight:600;
}

/* result panel */
.calc-result{
  margin-top:12px;
  background:#f1f5f9;
  padding:12px;
  border-radius:8px;
  font-weight:700;
  color:#111827;
}

/* ad placeholder - reserved area for AdSense, prevents CLS */
.ad-box{
  background:#ffffff;
  border:1px dashed #e6eef9;
  min-height:100px; /* reserve height for responsive ads */
  display:flex;
  align-items:center;
  justify-content:center;
  color:#9aa9bb;
  margin:1.75rem 0;
  border-radius:8px;
}

/* section title */
.section-title{
  margin-top:2rem;
  margin-bottom:0.8rem;
  font-weight:700;
  font-size:1.05rem;
}

/* footer anchored to bottom using flex layout */
main.site-main{flex:1}
footer.site-footer{
  background:#fff;
  border-top:1px solid #e6e9ee;
  padding:18px 0;
  margin-top:2rem;
}

/* footer links */
.footer-links a{color:var(--muted);text-decoration:none;margin-right:14px}

/* smaller text muted */
.text-muted{color:var(--muted)}

/* improve spacing on mobile inputs */
@media(max-width:576px){
  .form-control{padding:0.8rem}
  .btn-primary{padding:0.8rem}
  .container-narrow{padding-left:0.9rem;padding-right:0.9rem}
}

.article-figure {
  margin: 24px auto;
  text-align: center;
}

.article-figure img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.article-figure figcaption {
  font-size: 14px;
  color: #666;
  margin-top: 8px;
}

.homepage-content {
  background: #ffffff;
  padding: 48px 16px;
}

.content-wrapper {
  max-width: 1000px;
  margin: 0 auto;
}

.homepage-content h2 {
  font-size: 24px;
  margin-bottom: 16px;
  margin-top: 40px;
  color: #111827;
}

.homepage-content p {
  font-size: 16px;
  line-height: 1.7;
  color: #374151;
  margin-bottom: 16px;
}

.feature-list {
  margin: 20px 0 32px 20px;
  padding: 0;
}

.feature-list li {
  margin-bottom: 10px;
  font-size: 15px;
  color: #374151;
}

.disclaimer-text {
  font-size: 14px;
  color: #6b7280;
  margin-top: 24px;
}

