:root{
  --bg: #ffffff;
  --text: #121212;
  --muted: #555;
  --line: #e6e6e6;

  /* simple pink-red accent */
  --accent: #e11d48;

  --max: 980px;
}

*{ box-sizing: border-box; }
body{
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Georgia, "Times New Roman", Times, serif;
  line-height: 1.5;
}

.wrap{
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px 18px 40px;
}

.header{
  padding-bottom: 18px;
  border-bottom: 2px solid var(--line);
  margin-bottom: 18px;
}

.topline{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.logo{
  font-weight: 700;
  letter-spacing: .2px;
}

.nav a{
  margin-left: 12px;
  color: var(--muted);
  text-decoration: none;
}
.nav a:hover{
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--accent);
}

h1{
  font-size: 34px;
  margin: 10px 0 8px;
}

.lede{
  margin: 0 0 10px;
  color: var(--muted);
  max-width: 72ch;
}

.note{
  margin: 0;
  padding: 10px 12px;
  border-left: 4px solid var(--accent);
  background: #fff5f7;
  color: #7a1027;
  max-width: 75ch;
}

.section{
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.section:last-child{
  border-bottom: none;
}

h2{
  margin: 0 0 8px;
  font-size: 20px;
}

.sub{
  margin: 0 0 12px;
  color: var(--muted);
}

.controls{
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  align-items: center;
  justify-content: space-between;
  margin: 12px 0 10px;
}

.search{
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}

.search input{
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 4px;
  width: 260px;
  font-family: inherit;
}

.sort{
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
}

.sort a{
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px dotted transparent;
}
.sort a:hover{
  color: var(--text);
  border-bottom-color: var(--accent);
}
.sort a.active{
  color: var(--text);
  border-bottom: 2px solid var(--accent);
}

.table{
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.table th, .table td{
  text-align: left;
  padding: 10px 8px;
  border-top: 1px solid var(--line);
  vertical-align: top;
}

.table thead th{
  border-top: none;
  font-size: 13px;
  color: var(--muted);
  font-weight: 700;
}

.table a{
  color: var(--text);
  text-decoration-color: var(--accent);
}

.num{
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.slug{
  color: #888;
  font-size: 12px;
  margin-left: 8px;
}

.tiny{
  margin-top: 10px;
  color: #777;
  font-size: 12px;
}

code{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 12px;
  background: #f4f4f4;
  padding: 2px 5px;
  border-radius: 4px;
}

.bullets{
  margin: 8px 0 0 18px;
}

/* Quotes + formulas */
.formula-block{
  margin: 12px 0;
  padding: 10px 14px;
  background: #fafafa;
  border: 1px solid var(--line);
}

.formula{
  margin: 6px 0;
  font-family: "Courier New", Courier, monospace;
  font-size: 15px;
}

blockquote{
  margin: 16px 0;
  padding: 10px 14px;
  border-left: 4px solid var(--accent);
  background: #fdf2f4;
  font-style: italic;
  color: #333;
}

blockquote footer{
  margin-top: 6px;
  font-style: normal;
  font-size: 13px;
  color: #666;
}

.footer{
  margin-top: 22px;
  padding-top: 12px;
  border-top: 2px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
}

.footer-links a{
  color: var(--muted);
  margin-left: 10px;
  text-decoration: none;
}
.footer-links a:hover{
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--accent);
}
.env{
  color: var(--accent);
  font-weight: 600;
}

.interpersonal{
  color: #444;
  font-weight: 600;
}

.legend{
  font-size: 13px;
  color: var(--muted);
  margin-top: 6px;
}

.load-more{
  margin-top: 12px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 6px;
  cursor: pointer;
  font-family: inherit;
}
.load-more:hover{
  border-color: var(--accent);
}
th.sortable { cursor: pointer; user-select: none; }
th.sortable:hover { text-decoration: underline; }

/* --- category hex badges --- */
.badges{
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 10px 0 16px;
}

/* OUTER HEX = border */
.badge-wrap{
  width: 124px;
  height: 96px;
  background: rgba(0,0,0,0.22);   /* border color */
  clip-path: polygon(
    25% 6%,
    75% 6%,
    95% 50%,
    75% 94%,
    25% 94%,
    5% 50%
  );

  display: grid;
  place-items: center;
}

/* INNER HEX = fill */
.badge{
  width: 120px;
  height: 92px;
  clip-path: inherit;            /* same hex shape */

  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;

  padding: 10px 10px 8px;

  font-weight: 600;
  color: #0b2239;

  /* subtle depth like WalkScore */
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.65),
    0 1px 2px rgba(0,0,0,0.06);
}

.badge__label{
  font-size: 12px;
  color: rgba(0,0,0,0.65);
  line-height: 1.15;
  margin-bottom: 4px;
  max-width: 100px;
}

.badge__value{
  font-size: 34px;
  font-weight: 800;
  line-height: 1;
  margin-top: 2px;
}

/* category colors apply to the INNER badge */
.badge--dance .badge            { background: #ffe4ef; }
.badge--martial_arts .badge     { background: #e6f0ff; }
.badge--makerspace .badge       { background: #e8fff1; }
.badge--library .badge          { background: #fff6dd; }
.badge--community_center .badge { background: #f1e9ff; }
.badge--board_games .badge      { background: #e7fbff; }

/* optional: make border match each category a bit (stronger + nicer) */
.badge--dance            { background: #d99aae; }
.badge--martial_arts     { background: #9fb7e0; }
.badge--makerspace       { background: #9fd8b4; }
.badge--library          { background: #e0c27d; }
.badge--community_center { background: #b9a7ec; }
.badge--board_games      { background: #93cdd8; }

/* small screens */
@media (max-width: 520px){
  .badge-wrap{ width: 114px; height: 90px; }
  .badge{ width: 110px; height: 86px; }
  .badge__value{ font-size: 28px; }
}

