/* ==========================================================
   Minimal stylesheet - no animations, no transitions.
   Colors: #1a5fb4 (primary blue), #1f1f1f (text),
           #ffffff / #f5f5f5 (neutrals), #d0d0d0 (borders)
   ========================================================== */

* { box-sizing: border-box; margin: 0; padding: 0; }

html { background: #ffffff; }

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans Devanagari", sans-serif;
  color: #1f1f1f;
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ---------- Header ---------- */
.site-header {
  background: #1a5fb4;
  color: #ffffff;
}
.site-header .inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.site-header .brand {
  color: #ffffff;
  text-decoration: none;
  font-size: 20px;
  font-weight: 700;
}
.site-header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.site-header nav a {
  color: #ffffff;
  text-decoration: none;
  font-size: 15px;
  padding: 6px 10px;
}
.site-header nav a:hover,
.site-header nav a.active {
  background: #134a8e;
}

/* ---------- Main ---------- */
.container {
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
  padding: 24px 16px;
  flex: 1;
}

h1 { font-size: 26px; margin-bottom: 8px; }
h2 { font-size: 20px; margin: 24px 0 8px; }

.intro { margin-bottom: 8px; color: #444444; }

.note-red { margin-bottom: 16px; color: #c01c28; font-size: 15px; font-weight: 600; }

.toolbar { margin-bottom: 8px; }
.toggle { font-size: 15px; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }

/* ---------- Editor ---------- */
.editor-wrap { position: relative; }

#editor {
  width: 100%;
  min-height: 260px;
  padding: 12px;
  font-size: 20px;
  font-family: inherit;
  line-height: 1.6;
  border: 1px solid #d0d0d0;
  resize: vertical;
}
#editor:focus { outline: 2px solid #1a5fb4; outline-offset: -1px; }

/* ---------- Suggestion dropdown ---------- */
.suggest-box {
  position: absolute;
  z-index: 10;
  list-style: none;
  background: #ffffff;
  border: 1px solid #d0d0d0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  min-width: 140px;
  max-height: 240px;
  overflow-y: auto;
}
.suggest-box li {
  padding: 6px 12px;
  font-size: 18px;
  cursor: pointer;
}
.suggest-box li.selected,
.suggest-box li:hover {
  background: #1a5fb4;
  color: #ffffff;
}

/* ---------- Counts and actions ---------- */
.counts {
  display: flex;
  gap: 16px;
  font-size: 14px;
  color: #444444;
  margin: 8px 0;
}

.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.actions button {
  font-family: inherit;
  font-size: 15px;
  padding: 8px 16px;
  border: 1px solid #1a5fb4;
  background: #ffffff;
  color: #1a5fb4;
  cursor: pointer;
}
.actions button:hover { background: #1a5fb4; color: #ffffff; }

/* ---------- Help ---------- */
.help ul { padding-left: 20px; }
.help li { margin-bottom: 6px; }

/* ---------- Static pages ---------- */
.page-content p { margin-bottom: 12px; }
.page-content ul { padding-left: 20px; margin-bottom: 12px; }

/* ---------- Forms (contact page) ---------- */
.form-field { margin-bottom: 12px; }
.form-field label { display: block; font-size: 15px; margin-bottom: 4px; }
.form-field input,
.form-field textarea {
  width: 100%;
  max-width: 480px;
  padding: 8px;
  font-family: inherit;
  font-size: 15px;
  border: 1px solid #d0d0d0;
}
.form-field textarea { min-height: 120px; resize: vertical; }
.form-submit {
  font-family: inherit;
  font-size: 15px;
  padding: 8px 20px;
  border: 1px solid #1a5fb4;
  background: #1a5fb4;
  color: #ffffff;
  cursor: pointer;
}

/* ---------- Footer ---------- */
.site-footer {
  background: #f5f5f5;
  border-top: 1px solid #d0d0d0;
  margin-top: 24px;
}
.site-footer .inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 16px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  font-size: 14px;
  color: #444444;
}
.site-footer a { color: #1a5fb4; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Responsive ---------- */
@media (max-width: 600px) {
  h1 { font-size: 22px; }
  #editor { font-size: 18px; min-height: 200px; }
  .site-header .inner,
  .site-footer .inner { flex-direction: column; align-items: flex-start; }
}
