/* trinity.rocks */

:root {
  --green: #1f7b4f;
  --text: #666;
  --heading: #333;
  --link: #2ea3f2;
  --checklist-link: #339966;
  --page-width: 1080px;
  --icon-width: 120px;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font-family: "Open Sans", Arial, sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--link); text-decoration: none; }
img { max-width: 100%; height: auto; border: 0; }

p { margin: 0; padding-bottom: 1em; }

h1, h2 {
  color: var(--heading);
  font-weight: 500;
  line-height: 1.2;
  margin: 0;
  padding-bottom: 10px;
}
h1 { font-size: 30px; }

/* ---------------------------------------------------------- header */

.site-header {
  background: var(--green);
  text-align: center;
  padding: 24px 16px;
}
.site-header a { display: inline-block; line-height: 0; }
.site-header img { width: 475px; }

/* ---------------------------------------------------------- main */

.site-main {
  flex: 1;
  width: 100%;
  max-width: calc(var(--page-width) + 32px);
  margin: 0 auto;
  padding: 40px 16px 30px;
}

/* ---------------------------------------------------------- footer */

.site-footer {
  background: var(--green);
  color: #fff;
  text-align: center;
  font-weight: 700;
  padding: 28px 16px;
}
.site-footer p { padding: 0; }

/* ---------------------------------------------------------- icon grid */

.icons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 24px;
}
.icons a {
  display: block;
  line-height: 0;
  /* 120px wide, but shrinks so at least 3 fit across a phone */
  width: min(var(--icon-width), calc((100% - 20px) / 3));
}
.icons img { width: 100%; }

/* ---------------------------------------------------------- home contacts */

.contacts p { font-family: Arial, sans-serif; }

/* ---------------------------------------------------------- text pages */

.text-page { max-width: 800px; }

.text-page .section + .section { margin-top: 96px; }

.text-page .banner { display: block; width: 600px; margin-bottom: 1em; }

.text-page .check {
  display: flex;
  margin-bottom: 10px;
  gap: 8px;
  align-items: flex-start;
}
.text-page .check img { width: 50px; flex: none; }
.text-page .check p { padding-top: 12px; }

.text-page .green-link a,
.text-page a.green-link { color: var(--checklist-link); font-weight: 700; }

.text-page .u { text-decoration: underline; }

.text-page ol { padding-left: 1.5em; margin: 0 0 1em; }
.text-page li { padding-bottom: 0.6em; }

.text-page table {
  border-collapse: collapse;
  width: 100%;
  margin: 0.5em 0 1em;
}
.text-page th, .text-page td {
  border: 1px solid #ddd;
  padding: 6px 10px;
  text-align: left;
  vertical-align: top;
}
.text-page th { background: #eee; color: var(--heading); }

/* Tables scroll sideways on narrow phones instead of overflowing */
.table-wrap { overflow-x: auto; }

@media (max-width: 600px) {
  .site-main { padding-top: 28px; }
  .text-page .section + .section { margin-top: 56px; }
}
