/* ===== Global theme (matches homepage) ===== */
  * { margin: 0; padding: 0; box-sizing: border-box; }
  body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6; background: #f9f9f9; color: #333;
  }
  a { text-decoration: none; color: inherit; }

  /* Header / Nav */
  header.site-header {
    background-color: #ffffff; box-shadow: 0 2px 6px rgba(0,0,0,.05);
    padding: 12px 20px; position: sticky; top: 0; z-index: 1000;
  }
  .nav-container {
    max-width: 1200px; margin: auto; display: flex; justify-content: space-between; align-items: center;
  }
  .logo a { font-size: 1.6em; font-weight: bold; color: #2b6777; }
  .nav-links { list-style: none; display: flex; gap: 25px; }
  .nav-links li a { font-weight: 500; color: #444; transition: color .3s; }
  .nav-links li a:hover { color: #2b6777; }

  /* Hero */
  .hero {
    background: linear-gradient(120deg, #2b6777, #52ab98);
    color: #fff; padding: 80px 20px; text-align: center;
  }
  .hero h1 { font-size: 2.2rem; margin-bottom: 10px; }
  .hero p { font-size: 1.05rem; max-width: 760px; margin: auto; opacity: .95; }

  /* Page section + cards */
  .section { max-width: 1100px; margin: 40px auto 60px; padding: 0 20px; }
  .card {
    background: #ffffff; padding: 22px; border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,.05); transition: transform .3s ease;
  }
  .card h2 { font-size: 1.2rem; margin-bottom: 12px; color: #2b6777; }

  /* Grid layout */
  .tool-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 20px; }
  @media (max-width: 980px){ .tool-grid { grid-template-columns: 1fr; } }

  /* Inputs */
  .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  @media (max-width: 680px){ .grid { grid-template-columns: 1fr; } }
  label { display: block; font-weight: 600; color: #2b6777; margin: 2px 0 6px; }
  .row { margin: 8px 0 14px; }
  input[type=number], input[type=text], select {
    width: 100%; padding: 12px; border-radius: 10px; outline: none;
    border: 1px solid #d8e3e7; background: #fff; color: #333;
    transition: border-color .2s, box-shadow .2s;
  }
  input:focus, select:focus { border-color: #52ab98; box-shadow: 0 0 0 3px rgba(82,171,152,.2); }
  .hint { font-size: 12px; color: #6b7e86; margin-top: 4px; }

  /* Buttons */
  .btns { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
  button {
    background: linear-gradient(180deg,#52ab98,#2b6777); color: #fff; border: 0;
    padding: 10px 14px; border-radius: 10px; font-weight: 700; cursor: pointer;
  }
  button.secondary {
    background: #e8f3f1; color: #2b6777; border: 1px solid #cfe5e0; font-weight: 600;
  }

  /* Results */
  .kv { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  @media (max-width: 680px){ .kv { grid-template-columns: 1fr; } }
  .big { font-size: 32px; font-weight: 900; color: #2b6777; }
  .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
  .pill {
    display: inline-flex; gap: 6px; align-items: center; padding: 4px 8px;
    border-radius: 999px; background: #e8f3f1; color: #2b6777; font-size: 12px; border: 1px solid #cfe5e0;
  }
  .meter { height: 12px; background: #f1f6f6; border: 1px solid #d8e3e7; border-radius: 999px; overflow: hidden; }
  .meter span { display: block; height: 100%; background: linear-gradient(90deg, #52ab98, #2b6777); width: 0%; }

  .table { border: 1px solid #e7ecf2; border-radius: 14px; overflow: hidden; margin-top: 12px; }
  table { width: 100%; border-collapse: collapse; font-size: 14px; }
  th, td { padding: 10px 12px; border-bottom: 1px solid #e7ecf2; text-align: left; }
  th { background: #f7fafc; }

  /* Charts */
  .charts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
  @media (max-width: 680px){ .charts { grid-template-columns: 1fr; } }
  .canvasWrap {
    height: 240px; border: 1px solid #e7ecf2; border-radius: 14px;
    overflow: hidden; background: #fff; position: relative; padding: 10px;
  }
  canvas { width: 100%; height: 100%; }

  /* Footer + disclaimer (site-wide) */
  footer.site-footer {
    background-color: #2b6777; color: #fff; text-align: center; padding: 20px 10px; margin-top: 50px;
  }
  .sf-disclaimer {
    margin: 16px auto 0; padding: 12px; border: 1px dashed #c7d6e5; border-radius: 12px;
    background: #fff; color: #3a4a5f; font-size: 13px; line-height: 1.45; max-width: 1100px; text-align: left;
  }
  .small { font-size: 13px; color: #365a61; opacity: .9; }
