/* 198 East 7th Street Co-Op — site styles.
   System fonts, calm palette, accent #2d4a7a, mobile-first. */

/* === Reset & defaults === */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: #222;
  background: #fefefe;
}
img { max-width: 100%; height: auto; display: block; }
a { color: #2d4a7a; text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: #1e3458; }

/* === Layout containers === */
.site-header__inner,
.site-main,
.site-footer__inner {
  max-width: 70ch;
  margin: 0 auto;
  padding: 1.25rem;
}
.site-main { padding-top: 2rem; padding-bottom: 3rem; }

/* === Header === */
.site-header {
  border-bottom: 1px solid #e5e5e5;
  background: #fff;
}
.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 1rem;
}
.site-header__title {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  margin-right: auto;
}
.site-header__name {
  font-size: 1.2rem;
  font-weight: 600;
  color: #2d4a7a;
}
.site-header__addr {
  font-size: 0.85rem;
  color: #666;
}

/* === Navigation === */
.site-nav {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.site-nav a {
  text-decoration: none;
  color: #222;
  font-weight: 500;
  font-size: 0.95rem;
}
.site-nav a:hover { color: #2d4a7a; }
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 0.4rem 0.75rem;
  font: inherit;
  cursor: pointer;
}

/* === Mobile nav === */
@media (max-width: 640px) {
  .nav-toggle { display: inline-block; }
  .site-nav {
    flex-direction: column;
    width: 100%;
    gap: 0.75rem;
    display: none;
    padding-top: 0.75rem;
  }
  .site-nav--open { display: flex; }
}

/* === Typography === */
h1, h2, h3 {
  line-height: 1.3;
  margin: 2rem 0 1rem;
  color: #1e3458;
}
h1 { font-size: 1.8rem; }
h2 { font-size: 1.4rem; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1rem; }

.lede { font-size: 1.1rem; color: #444; }
.muted { color: #666; font-size: 0.9rem; }

/* === Lists === */
.doc-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
  display: grid;
  gap: 0.25rem;
}
.doc-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #eee;
}
.doc-list a { text-decoration: none; }
.doc-list a:hover { text-decoration: underline; }
.doc-list .doc-meta {
  color: #888;
  font-size: 0.85rem;
  margin-left: 0.5rem;
}

.section-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}
.section-list li {
  margin: 1.25rem 0;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid #eee;
}
.section-list time { color: #666; font-size: 0.85rem; }
.section-list h3 { margin: 0.25rem 0 0.5rem; }

/* === Hero === */
.hero { margin: 0 0 2rem; }
.hero img { width: 100%; border-radius: 4px; }
.hero h1 { margin-top: 1.25rem; }

/* === Tables (contacts, etc.) === */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}
.data-table th,
.data-table td {
  padding: 0.5rem 0.6rem;
  text-align: left;
  border-bottom: 1px solid #eee;
  vertical-align: top;
}
.data-table th {
  font-weight: 600;
  color: #1e3458;
  background: #f7f7f9;
  border-bottom: 2px solid #e5e5e5;
}
.data-table tr.apt-divider td {
  border-top: 2px solid #e5e5e5;
}
.data-table .apt {
  font-weight: 600;
  white-space: nowrap;
}
.data-table a { text-decoration: none; }
.data-table a:hover { text-decoration: underline; }
@media (max-width: 640px) {
  .data-table { font-size: 0.85rem; }
  .data-table .hide-mobile { display: none; }
}

/* === Footer === */
.site-footer {
  border-top: 1px solid #e5e5e5;
  background: #fafafa;
  color: #666;
  font-size: 0.9rem;
}
.site-footer__inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.site-footer p { margin: 0; }
.site-footer a { color: #444; }
