/* Shared modern stylesheet for the Modesty Blaise / Peter O'Donnell pages,
   matching the palette and card look used on the top-level hub pages
   (see /modern.css). */

: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: left;
  font-size: 1.25rem;
  margin-top: 0;
}
h3 {
  text-align: left;
  font-size: 1.1rem;
  margin-top: 0;
}
h4 {
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: normal;
}
h5 {
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: normal;
  line-height: 1.5;
}

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

p { text-align: justify; }

hr {
  border: none;
  border-top: 1px solid var(--border);
  max-width: 980px;
  margin: 20px auto;
}

table {
  border-collapse: separate;
  border-spacing: 18px;
  max-width: 980px;
  margin: 0 auto;
  width: 100%;
}
td {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: left;
  vertical-align: top;
  padding: 18px 20px;
}
/* Tables used purely to lay out two or three columns of running prose
   side by side, with no border on the outer <table>/<td> in the markup —
   keep those columns plain, not boxed as cards. */
table[style*="border: none"] td,
table[style*="border:none"] td {
  border: none;
  background: none;
  box-shadow: none;
  padding: 10px 20px;
}

li { text-align: left; }

img { max-width: 100%; }
