/* Hate Matters document stylesheet
   Looks like a charity Word doc. Intentionally slightly off. */

* { box-sizing: border-box; }

body {
  margin: 0;
  background: #f0efe8;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 14.5px;
  color: #1a1a1a;
  line-height: 1.65;
}

.back-link {
  display: block;
  text-align: center;
  padding: 1rem;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 0.85rem;
}
.back-link a { color: #ff3d7f; font-weight: 700; text-decoration: none; }
.back-link a:hover { text-decoration: underline; }

.document {
  background: white;
  max-width: 700px;
  margin: 0 auto 3rem;
  padding: 4rem 4.5rem;
  box-shadow: 0 2px 24px rgba(0,0,0,0.12);
}

/* Header */
.doc-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 1.5rem;
  margin-bottom: 2rem;
  border-bottom: 3px solid #ff3d7f;
}
.doc-org {
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', sans-serif;
  font-weight: 900;
  font-size: 1.05rem;
  color: #3a0e5c;
  line-height: 1.2;
}
.doc-org small {
  display: block;
  font-weight: 500;
  font-size: 0.68rem;
  color: #6b3a8a;
  margin-top: 0.3rem;
  letter-spacing: 0.02em;
}
.doc-ref {
  text-align: right;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 0.75rem;
  color: #888;
  line-height: 1.5;
}

/* Title block */
.doc-title-block { margin-bottom: 1.75rem; }
h1.doc-title {
  font-size: 1.45rem;
  font-weight: bold;
  line-height: 1.25;
  margin: 0 0 0.5rem;
}
.doc-meta-block {
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 0.8rem;
  color: #666;
  border-top: 1px solid #e0e0e0;
  border-bottom: 1px solid #e0e0e0;
  padding: 0.6rem 0;
  margin-bottom: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.doc-meta-block span strong { color: #3a0e5c; }

/* Body */
h2 {
  font-size: 1.05rem;
  margin: 2.25rem 0 0.6rem;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: 0.82rem;
  color: #3a0e5c;
}
h3 {
  font-size: 1rem;
  margin: 1.5rem 0 0.4rem;
}
p { margin: 0 0 0.9rem; }
ul, ol { padding-left: 1.5rem; margin: 0 0 0.9rem; }
li { margin-bottom: 0.4rem; }
strong { font-weight: bold; }
em { font-style: italic; }

/* Minutes-specific */
.session {
  border: 1px solid #e8e0f0;
  border-radius: 4px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  break-inside: avoid;
}
.session-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.25rem 2rem;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 0.8rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid #e8e0f0;
}
.session-header .session-title {
  grid-column: 1 / -1;
  font-weight: 900;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #3a0e5c;
  margin-bottom: 0.5rem;
}
.session-header .quorum-fail {
  grid-column: 1 / -1;
  font-weight: 800;
  color: #c0392b;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-top: 0.25rem;
}
.session-header label { color: #888; }
.session h3 {
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 1.25rem 0 0.5rem;
  color: #555;
}
.action {
  background: #fff8e7;
  border-left: 3px solid #ffb627;
  padding: 0.35rem 0.75rem;
  margin: 0.35rem 0;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 0.82rem;
}
.action .owner { font-weight: 800; color: #3a0e5c; }
.action .status { color: #888; float: right; font-style: italic; }

/* Footnotes */
.footnotes {
  border-top: 1px solid #ddd;
  margin-top: 2rem;
  padding-top: 1rem;
  font-size: 0.78rem;
  color: #666;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}
.footnotes p { margin-bottom: 0.35rem; }

/* Template letter specific */
.letter-field {
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  background: #ffe066;
  padding: 0.1rem 0.3rem;
  border-radius: 2px;
  color: #3a0e5c;
}

/* Document footer */
.doc-footer {
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 1px solid #eee;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 0.7rem;
  color: #aaa;
  text-align: center;
}

/* Table of contents */
.toc { font-family: -apple-system, BlinkMacSystemFont, sans-serif; }
.toc li { display: flex; justify-content: space-between; padding: 0.2rem 0; border-bottom: 1px dotted #ddd; font-size: 0.88rem; }
.toc li .pg { color: #888; flex-shrink: 0; padding-left: 0.5rem; }

@media print {
  body { background: white; }
  .document { box-shadow: none; padding: 2rem; }
  .back-link { display: none; }
}
@media (max-width: 600px) {
  .document { padding: 1.5rem 1.25rem; }
  .session-header { grid-template-columns: 1fr; }
}
