/* Shared modern stylesheet for the hub family of pages (index.html,
   newlangindex.html, newindex.html, newbibindex.html). Not linked from
   the ~400 other site pages, which still use the older minimals.css
   look until/unless migrated separately. */

:root {
  --bg: #f6f5f1;
  --surface: #ffffff;
  --ink: #22262b;
  --muted: #5b6570;
  --border: #e3e0d8;
  --accent: #0e8c62;
  --accent-dark: #0a6b4a;
  --radius: 12px;
  --shadow: 0 2px 6px rgba(0,0,0,0.08);
}

* { box-sizing: border-box; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  margin: 0;
  padding: 0 16px 50px;
}

h1 {
  text-align: center;
  margin-top: 36px;
  font-size: 2rem;
}
h2 { text-align: center; }
h3 { text-align: left; }
h4 {
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: normal;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); text-decoration: underline; }

p { text-align: justify; }

table {
  border-collapse: separate;
  border-spacing: 18px;
  max-width: 980px;
  margin: 0 auto;
  width: 100%;
}
td {
  border: none;
  text-align: left;
  vertical-align: top;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
}
/* Section headers / footers — tagged explicitly with class="divider"
   in the markup (colspan alone isn't a reliable signal: some pages use
   colspan just to make a link-card wider, not to mark a divider). */
td.divider {
  background: none;
  border: none;
  box-shadow: none;
  text-align: center;
  padding: 10px 0;
}
td h2, td h3 {
  text-align: left;
  font-size: 1.15rem;
  margin-top: 0;
  margin-bottom: 8px;
}
td p { color: var(--muted); }

/* Hub pointer cards (used on index.html) */
.hub {
  max-width: 900px;
  margin: 0 auto;
}
.hub-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin: 20px auto 30px;
}
.hub-links a {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 22px;
  width: 190px;
  text-align: center;
  font-weight: bold;
  color: var(--accent);
}
.hub-links a:hover { color: var(--accent-dark); }
.hub-links span {
  display: block;
  margin-top: 6px;
  font-weight: normal;
  font-size: 0.85rem;
  color: var(--muted);
}
