
:root {
  --fg: #1a1a1a;
  --muted: #666;
  --line: #e2e2e2;
  --bg: #fdfdfd;
  --accent: #005238;
  --warn: #b34700;
}
* { box-sizing: border-box; }
body { font: 16px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
       color: var(--fg); background: var(--bg); margin: 0; }
.site-header { display: flex; gap: 1.5rem; align-items: baseline;
               padding: 1rem 1.5rem; border-bottom: 1px solid var(--line); }
.brand { font-weight: 700; color: var(--accent); text-decoration: none; font-size: 1.15rem; }
.site-header nav a { margin-right: 1rem; color: var(--fg); text-decoration: none; }
.site-header nav a:hover { text-decoration: underline; }
main { max-width: 950px; margin: 0 auto; padding: 1.5rem; }
h1 { font-size: 1.75rem; margin-top: 0; }
h2 { border-bottom: 1px solid var(--line); padding-bottom: 0.25rem; margin-top: 2rem; }
.hero { padding: 2rem 0; }
.hero h1 { font-size: 2rem; }
.crumbs { color: var(--muted); font-size: 0.9rem; }
.meta { color: var(--muted); font-size: 0.9rem; }
.attribution { color: var(--muted); font-size: 0.85rem; border-top: 1px dashed var(--line);
               padding-top: 0.75rem; margin-top: 2rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        gap: 1rem; list-style: none; padding: 0; }
.grid li { border: 1px solid var(--line); border-radius: 6px; padding: 1rem; text-align: center; }
.grid b { display: block; font-size: 2rem; color: var(--accent); }
.grid span { display: block; color: var(--muted); font-size: 0.9rem; margin-top: 0.25rem; }
.phases { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.phases li { padding: 0.35rem 0.75rem; border: 1px solid var(--line); border-radius: 999px; }
.phases li a { color: inherit; text-decoration: none; }
.phases li:hover { border-color: var(--accent); }
a[class^="phase-"] { text-decoration: none; }
.muted { color: var(--muted); font-size: 0.9rem; }
.biglist { column-count: 2; column-gap: 2rem; list-style: none; padding: 0; }
.biglist li { break-inside: avoid; padding: 0.25rem 0; }
table.data { width: 100%; border-collapse: collapse; margin: 1rem 0; }
table.data th, table.data td { text-align: left; padding: 0.5rem 0.75rem; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
table.data th { color: var(--muted); font-weight: 600; }
[class^="phase-"] { display: inline-block; padding: 0.15rem 0.55rem; border-radius: 3px; font-size: 0.8rem; }
.phase-under-construction { background: #fff4e5; color: #b34700; }
.phase-current-program { background: #e5f5ff; color: #003f88; }
.phase-whats-being-planned { background: #f0e5ff; color: #4c00b3; }
.phase-completed { background: #e8f6ec; color: #005238; }
.phase-survey-underway { background: #fffbe5; color: #665600; }
.phase-on-hold { background: #f5f5f5; color: #444; }
.phase-historic { background: #efefef; color: #666; }
.site-footer { max-width: 950px; margin: 3rem auto 2rem; padding: 1.5rem;
               font-size: 0.85rem; color: var(--muted); border-top: 1px solid var(--line); }
.site-footer a { color: var(--accent); }
.site-footer .coffee { margin-top: 0.6rem; font-size: 0.9rem; }
.coffee-btn { display: inline-block; padding: 0.5rem 1rem; background: #ffdd00;
  color: #1a1a1a; border-radius: 6px; text-decoration: none;
  font-weight: 600; border: 1px solid #d4b800; }
.coffee-btn:hover { background: #ffe533; }
[data-ipswichfacts-search] input { width: 100%; padding: 0.75rem 1rem;
  font-size: 1.1rem; border: 2px solid var(--line); border-radius: 6px; }
[data-ipswichfacts-search] input:focus { outline: none; border-color: var(--accent); }
[data-ipswichfacts-search] .results { border: 1px solid var(--line); border-top: none;
  border-radius: 0 0 6px 6px; max-height: 60vh; overflow: auto; }
[data-ipswichfacts-search] .results a { display: block; padding: 0.6rem 1rem;
  border-bottom: 1px solid var(--line); text-decoration: none; color: var(--fg); }
[data-ipswichfacts-search] .results a:hover { background: #f5f5f5; }
[data-ipswichfacts-search] .results .kind { color: var(--muted); font-size: 0.8rem;
  text-transform: uppercase; letter-spacing: 0.03em; }
[data-ipswichfacts-related] { margin-top: 2rem; padding: 1rem; background: #f8f8f8;
  border-radius: 6px; }
[data-ipswichfacts-related] h3 { margin: 0 0 0.5rem; }
[data-ipswichfacts-related] ul { margin: 0; padding-left: 1.5rem; }
