/* TokenDollarMargin.com — styles.css — CalcHQ network */
*, *::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; }

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

@media (max-width: 680px) {
  .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; }

/* Partner link */
.partner-link {
  margin: 6px 0 0;
  font-size: 0.78rem;
  color: #aaa;
}
.partner-link a {
  color: #aaa;
  text-decoration: underline;
}
.partner-link a:hover { color: #888; }

/* Section dividers inside card */
.section-label {
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: #bbb; margin: 22px 0 10px;
}

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

.input-hint { font-size: 0.78rem; color: #aaa; font-weight: 400; margin-left: 6px; text-transform: none; letter-spacing: 0; }

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

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

/* Result */
.result-empty {
  margin-top: 20px; padding: 18px; background: #faf9f7;
  border-radius: 12px; border: 1.5px dashed #e0dbd4;
  text-align: center; color: #bbb; font-size: 0.9rem;
}

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

.result-row {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 9px 0; border-bottom: 1px solid #f0ebe4;
}
.result-row:last-child { border-bottom: none; }

.result-key {
  font-size: 0.85rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.04em; color: #888;
}

.result-val {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.25rem; color: #1a1a1a; text-align: right;
}

.result-row.headline .result-val {
  font-size: 1.6rem; color: #c8622a;
}

.result-row.breakeven .result-val {
  font-size: 1rem; font-family: 'DM Sans', sans-serif;
  font-weight: 600; color: #1a1a1a;
}

/* Aside info card */
.info-block { background: #faf9f7; border-radius: 10px; padding: 16px; margin-bottom: 14px; }
.info-block p { margin: 0; font-size: 0.88rem; color: #666; line-height: 1.6; }
.info-block strong { color: #333; }

.formula-block {
  background: #f4f1eb; border-radius: 8px; padding: 12px 14px;
  font-family: 'Courier New', monospace; font-size: 0.8rem;
  color: #555; line-height: 1.8; margin-bottom: 14px;
}

/* Misc */
.sep { border-top: 1px solid #ede9e3; margin: 18px 0; }
.mini { font-size: 0.8rem; color: #999; margin-top: 10px; line-height: 1.5; }

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

/* 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/info 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; }


/* Advanced models toggle */
.toggle-row{display:flex;align-items:center;gap:10px;margin:8px 0 14px;}
.toggle-row input{width:18px;height:18px;}
.toggle-row label{margin:0;cursor:pointer;font-size:14px;opacity:.9;}
