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

/* -------- Page background + typography -------- */
body {
  margin: 0;
  padding: 2rem 1.5rem;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background-color: #f3f4f6; /* light gray background */
  color: #111827;            /* dark gray text */
}

/* Center top-level content on all pages (search pages & articles) */
body > h1,
body > p,
body > input[type="text"],
body > ul#articleList,
body > div.body {
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}

/* -------- Headings -------- */
h1 {
  font-size: 2rem;
  line-height: 1.2;
  margin: 0 0 1.5rem 0;
  color: #111827;
}

/* -------- Article content block -------- */
/* Your articles use <div class="body"> around the text */
div.body {
  background-color: #ffffff;
  padding: 1.75rem 2rem 2rem;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
  line-height: 1.7;
  font-size: 1rem;
}

/* Optional: slightly larger line height on plain paragraphs if present */
p {
  line-height: 1.7;
  margin: 0 0 0.75rem 0;
}

/* -------- Search pages (EN/PT/ES) -------- */
input[type="text"] {
  display: block;
  width: 100%;
  max-width: 480px;
  padding: 0.6rem 0.75rem;
  margin-bottom: 1.25rem;
  border-radius: 9999px;
  border: 1px solid #d1d5db;
  background-color: #ffffff;
  font-size: 0.95rem;
  outline: none;
}

input[type="text"]:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
}

/* Article list under the search box */
ul#articleList {
  list-style: none;
  padding: 0;
  margin: 0;
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}

ul#articleList li {
  margin: 0 0 0.5rem 0;
  padding: 0.6rem 0.8rem;
  border-radius: 8px;
  background-color: #ffffff;
  box-shadow: 0 3px 8px rgba(15, 23, 42, 0.06);
}

/* -------- Links -------- */
a {
  text-decoration: none;
  color: #2563eb;
  font-weight: 500;
}

a:hover {
  text-decoration: underline;
}

/* If you ever add a dedicated "back" link with a class */
a.back-link {
  display: inline-flex;
  align-items: center;
  font-size: 0.9rem;
  margin-top: 1.5rem;
}

a.back-link::before {
  content: "←";
  margin-right: 0.3rem;
}
