/* HBS Publications — front end (Notes from the Field design tokens) */
#hbs-pubs {
  --forest: #2d4a2d; --forest-mid: #3d6b3d; --gold: #b8912a; --cream: #faf8f2; --ink: #1a1a14;
  --mid: #6b6b5a; --rule: #d8d4c4; --link: #2d4a2d;
  --badge-article: #e8f0e8; --badge-article-text: #2d4a2d;
  --badge-book: #f0ebe0; --badge-book-text: #7a5c10;
  --badge-report: #eaecf0; --badge-report-text: #3a4a6a;
  font-family: 'Spectral', Georgia, serif; background: var(--cream); color: var(--ink);
  margin: 0; padding: 0; -webkit-font-smoothing: antialiased;
}
#hbs-pubs [hidden] { display: none !important; }
#hbs-pubs h1, #hbs-pubs h2, #hbs-pubs h3, #hbs-pubs h4, #hbs-pubs h5, #hbs-pubs h6 {
  font-family: 'Fraunces', serif !important; font-weight: 400 !important; line-height: 1.15 !important;
  margin: 0 !important; padding: 0 !important; color: var(--ink) !important; text-transform: none !important; letter-spacing: normal !important;
}
#hbs-pubs * { box-sizing: border-box; }
#hbs-pubs .pubs-wrap { max-width: 900px; margin: 0 auto; padding: 3rem 1.5rem 4rem; }
#hbs-pubs .pubs-eyebrow { font-family: 'IBM Plex Mono', monospace; font-size: 0.7rem; font-weight: 400; letter-spacing: 0.12em; color: var(--mid); text-transform: uppercase; margin-bottom: 0.75rem; }
#hbs-pubs .pubs-h1 { font-family: 'Fraunces', serif !important; font-size: clamp(2.4rem, 6vw, 3.8rem) !important; font-weight: 300 !important; line-height: 1.05 !important; color: var(--forest) !important; margin-bottom: 0.9rem !important; font-optical-sizing: auto; }
#hbs-pubs .pubs-h1 em { font-style: italic; font-weight: 300; color: var(--ink); }
#hbs-pubs .pubs-sub { font-family: 'Spectral', Georgia, serif; font-size: 0.98rem; color: var(--mid); margin: 0 0 2.5rem; line-height: 1.5; }
#hbs-pubs .pubs-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1rem; padding: 1.1rem 1.25rem; background: #fff; border: 1px solid var(--rule); border-radius: 3px; margin-bottom: 2.5rem; }
#hbs-pubs .pubs-controls input[type="text"] { flex: 1 1 200px; min-width: 140px; font-family: 'IBM Plex Mono', monospace; font-size: 0.82rem; color: var(--ink); background: transparent; border: none; border-bottom: 1px solid var(--rule); padding: 0.25rem 0; outline: none; transition: border-color 0.15s; box-shadow: none; }
#hbs-pubs .pubs-controls input[type="text"]::placeholder { color: var(--mid); opacity: 0.7; }
#hbs-pubs .pubs-controls input[type="text"]:focus { border-bottom-color: var(--gold); }
#hbs-pubs .pubs-controls select { font-family: 'IBM Plex Mono', monospace; font-size: 0.82rem; color: var(--ink); background: transparent; border: 1px solid var(--rule); border-radius: 2px; padding: 0.25rem 0.5rem; cursor: pointer; appearance: auto; outline: none; }
#hbs-pubs .pubs-controls select:focus { border-color: var(--gold); }
#hbs-pubs .pubs-controls label { font-family: 'IBM Plex Mono', monospace; font-size: 0.78rem; color: var(--mid); display: flex; align-items: center; gap: 0.4rem; cursor: pointer; }
#hbs-pubs .pubs-count { font-family: 'IBM Plex Mono', monospace; font-size: 0.72rem; color: var(--mid); margin-left: auto; white-space: nowrap; }

#hbs-pubs .year-group { display: grid; grid-template-columns: 5rem 1fr; gap: 0 1.75rem; margin-bottom: 0; }
@media (max-width: 560px) {
  #hbs-pubs .year-group { grid-template-columns: 1fr; }
  #hbs-pubs .year-label { padding: 1.5rem 0 0.3rem !important; border-top: 1.5px solid var(--rule) !important; border-right: none !important; text-align: left !important; }
}
#hbs-pubs .year-label { font-family: 'Fraunces', serif; font-size: 2.6rem; font-weight: 600; font-optical-sizing: auto; color: var(--rule); line-height: 1; padding-top: 1.4rem; text-align: right; border-right: 1.5px solid var(--rule); padding-right: 1.25rem; user-select: none; }
#hbs-pubs .year-items { border-top: 1.5px solid var(--rule); padding-top: 0; }

#hbs-pubs .pub { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding: 0.9rem 0; border-bottom: 1px solid var(--rule); }
#hbs-pubs .pub:last-child { border-bottom: none; }
#hbs-pubs .pub-body { flex: 1; min-width: 0; }
#hbs-pubs .pub-ref { font-family: 'Spectral', Georgia, serif; font-size: 0.92rem; line-height: 1.6; color: var(--ink); margin-bottom: 0.35rem; }
#hbs-pubs .pub-ref em { font-style: italic !important; }
#hbs-pubs .pub-link { display: inline-flex; align-items: center; gap: 0.35rem; font-family: 'IBM Plex Mono', monospace; font-size: 0.72rem; color: var(--forest); text-decoration: none; transition: color 0.12s; }
#hbs-pubs .pub-link:hover { color: var(--gold); }
#hbs-pubs .pub-link svg { flex-shrink: 0; opacity: 0.7; }
#hbs-pubs .pub-nolink { font-family: 'IBM Plex Mono', monospace; font-size: 0.72rem; color: var(--rule); }
#hbs-pubs .pub-external { font-family: 'IBM Plex Mono', monospace; font-size: 0.68rem; color: var(--gold); margin-left: 0.4rem; }
#hbs-pubs .pub-type { flex-shrink: 0; font-family: 'IBM Plex Mono', monospace; font-size: 0.64rem; font-weight: 500; padding: 0.18em 0.55em; border-radius: 2px; margin-top: 0.2rem; line-height: 1.4; }
#hbs-pubs .pub-type.article { background: var(--badge-article); color: var(--badge-article-text); }
#hbs-pubs .pub-type.book { background: var(--badge-book); color: var(--badge-book-text); }
#hbs-pubs .pub-type.report { background: var(--badge-report); color: var(--badge-report-text); }

#hbs-pubs .pubs-footer { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--rule); font-family: 'IBM Plex Mono', monospace; font-size: 0.72rem; color: var(--mid); line-height: 1.7; }
#hbs-pubs .pubs-footer a { color: var(--forest); text-decoration: underline; text-decoration-color: var(--rule); }
#hbs-pubs .pubs-footer a:hover { color: var(--gold); }
#hbs-pubs .pubs-empty { padding: 2.5rem 0; font-family: 'IBM Plex Mono', monospace; font-size: 0.82rem; color: var(--mid); }
