/* Shared theme for toolsbyhari.com tool pages.
   New tools should link this instead of duplicating the palette/components
   inline -- see the "shared CSS migration" note in the project's memory.
   The 10 pages that predate this file still duplicate these rules inline;
   retrofitting them is a separate, deliberately deferred pass. */

:root {
  --bg: #14171a; --panel: #1c2024; --panel-raised: #22262b;
  --border: #2c3238; --border-strong: #3d444c;
  --text: #e9ebed; --muted: #a3aab1; --accent: #4f8fc9;
  --success: #3fae7d; --success-bg: rgba(63,174,125,0.14); --success-text: #6fd3a4;
  --warn: #d68b34; --warn-bg: rgba(214,139,52,0.14); --warn-text: #e8ad63;
  --danger: #d05a48; --danger-bg: rgba(208,90,72,0.14); --danger-text: #e88b7a;
}
* { box-sizing: border-box; }
body {
  margin: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg); color: var(--text); min-height: 100vh;
  display: flex; flex-direction: column; align-items: center; padding: 32px 20px 60px;
  font-size: 18px;
}
nav { width: 100%; max-width: 900px; margin-bottom: 20px; }
nav a {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--accent); text-decoration: none; font-size: 15px; font-weight: 700;
  padding: 8px 16px; border: 1px solid var(--border-strong); border-radius: 999px;
  background: var(--panel); transition: border-color 0.15s, background 0.15s;
}
nav a:hover { border-color: var(--accent); background: rgba(79,143,201,0.14); }
.card {
  background: var(--panel); border: 1px solid var(--border); border-radius: 14px;
  padding: 32px; max-width: 900px; width: 100%;
}
h1 { font-size: 24px; margin: 0 0 6px; }
p.sub { color: var(--muted); margin: 0 0 22px; font-size: 16px; line-height: 1.5; }

.layout { display: grid; grid-template-columns: 280px 1fr; gap: 28px; }
@media (max-width: 720px) { .layout { grid-template-columns: 1fr; } }

.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 700; color: var(--muted); margin-bottom: 5px; }
.field input, .field select {
  width: 100%; padding: 10px 12px; border-radius: 8px; border: 1.5px solid var(--border-strong);
  font-size: 17px; background: var(--panel-raised); color: var(--text); font-family: inherit;
}
.field input:focus, .field select:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.field .hint { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.field .warn { font-size: 13px; color: var(--danger-text); margin-top: 4px; font-weight: 600; }

.results h2 { font-size: 16px; margin: 0 0 10px; }

.faq { max-width: 900px; width: 100%; margin-top: 20px; }
.faq h2 { font-size: 19px; margin: 0 0 12px; }
.faq details { background: var(--panel); border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 16px; }
.faq summary::marker { color: var(--accent); }
.faq p { margin: 10px 0 0; color: var(--muted); font-size: 15px; line-height: 1.6; }

.selfcheck { max-width: 900px; width: 100%; margin-top: 14px; padding: 10px 14px; border-radius: 8px; font-size: 13.5px; font-weight: 700; }
.selfcheck.pass { background: var(--success-bg); color: var(--success-text); }
.selfcheck.fail { background: var(--danger-bg); color: var(--danger-text); }
