/* Shared look for every tool on kripeshadwani.com/tools/.
   Colours and fonts copied from the blog's GeneratePress theme.
   Change a value here and every tool page updates. */

:root {
  --accent: #1e73be;
  --accent-dark: #155a96;
  --text: #212529;
  --text-2: #495057;
  --muted: #6c757d;
  --line: #e9ecef;
  --bg: #f7f8f9;
  --card: #ffffff;
  --ok: #1e8e3e;
  --warn: #e37400;
  --over: #d93025;
  --radius: 10px;
  --font: -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-head: Arial, Helvetica, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
}

a { color: var(--accent); }
a:hover { color: var(--accent-dark); }

img { max-width: 100%; height: auto; }

h1, h2, h3 { font-family: var(--font-head); font-weight: 700; line-height: 1.25; }
h1 { font-size: 36px; margin: 0 0 12px; }
h2 { font-size: 26px; margin: 40px 0 12px; }
h3 { font-size: 19px; margin: 24px 0 8px; }

.wrap { max-width: 900px; margin: 0 auto; padding: 0 16px; }

/* ---------- Header ---------- */
.site-header { background: #fff; border-bottom: 1px solid var(--line); }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 72px; flex-wrap: wrap;
}
.site-logo img { display: block; width: 180px; height: auto; }
.site-nav { display: flex; gap: 20px; flex-wrap: wrap; }
.site-nav a { color: var(--text); text-decoration: none; font-weight: 600; font-size: 15px; }
.site-nav a:hover { color: var(--accent); }

/* ---------- Breadcrumb ---------- */
.breadcrumb { font-size: 14px; color: var(--muted); margin: 24px 0 8px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb span[aria-hidden] { margin: 0 6px; }

/* ---------- Page content ---------- */
main { padding-bottom: 48px; }
.lead { font-size: 19px; color: var(--text-2); margin: 0 0 24px; }
.content p, .content li { color: var(--text-2); }
.content table { border-collapse: collapse; width: 100%; margin: 12px 0; font-size: 16px; }
.content th, .content td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; }
.content th { background: #fff; }

/* ---------- Tool card ---------- */
.tool-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
}

.field { margin-bottom: 20px; }
.field label { display: block; font-weight: 700; margin-bottom: 6px; font-size: 15px; }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--text);
  border: 1px solid #ced4da; border-radius: 8px; padding: 10px 12px; background: #fff;
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field textarea:focus {
  outline: 2px solid rgba(30, 115, 190, .35); border-color: var(--accent);
}

.meter { margin-top: 8px; }
.meter-bar { height: 6px; background: var(--line); border-radius: 3px; overflow: hidden; }
.meter-fill { height: 100%; width: 0; background: var(--ok); transition: width .15s; }
.meter-fill.warn { background: var(--warn); }
.meter-fill.over { background: var(--over); }
.meter-text { font-size: 13px; color: var(--muted); margin-top: 4px; }
.meter-text strong.over { color: var(--over); }

/* ---------- Buttons ---------- */
.btn {
  font: inherit; font-size: 15px; font-weight: 600; cursor: pointer;
  border: 1px solid var(--accent); background: var(--accent); color: #fff;
  border-radius: 8px; padding: 9px 16px;
}
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn-ghost { background: #fff; color: var(--accent); }
.btn-ghost:hover { background: #f1f6fb; color: var(--accent-dark); }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; }

.toggle { display: inline-flex; border: 1px solid #ced4da; border-radius: 8px; overflow: hidden; }
.toggle button {
  font: inherit; font-size: 14px; font-weight: 600; border: 0; background: #fff;
  color: var(--text-2); padding: 7px 14px; cursor: pointer;
}
.toggle button[aria-pressed="true"] { background: var(--accent); color: #fff; }

/* ---------- Footer ---------- */
.site-footer { background: #fff; border-top: 1px solid var(--line); font-size: 15px; }
.site-footer .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding-top: 32px; padding-bottom: 24px; }
.site-footer h2 { font-size: 17px; margin: 0 0 8px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 4px 0; }
.site-footer p { margin: 0; color: var(--text-2); }
.copyright { text-align: center; font-size: 14px; color: var(--muted); padding: 12px 16px 20px; }

@media (max-width: 640px) {
  body { font-size: 16px; }
  h1 { font-size: 28px; }
  h2 { font-size: 22px; }
  .tool-card { padding: 16px; }
  .site-header .wrap { padding-top: 12px; padding-bottom: 12px; }
  .site-nav { gap: 14px; }
  .site-footer .wrap { grid-template-columns: 1fr; }
}
