* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: #0f1623; color: #e0e0e0; padding: 20px; line-height: 1.5; }
h1 { text-align: center; margin: 30px 0; color: #fff; font-size: 2em; }
h2 { margin: 40px 0 15px; padding: 10px 15px; background: #111e2e; border-left: 4px solid #1e3a2f; color: #a8d8ea; font-size: 1.3em; }
/* Sticky headers only work when the wrapper is not a scroll container;
   index.js adds .is-scrollable only to tables too wide to fit. */
.table-wrapper { margin-bottom: 30px; }
.table-wrapper.is-scrollable { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 0.9em; }
th { background: #1e3a2f; color: #fff; padding: 12px 10px; text-align: left; position: sticky; top: 0; white-space: nowrap; z-index: 2; }
td { padding: 10px; border-bottom: 1px solid #2a2a4a; vertical-align: top; }
tr:hover td { background: #16213e; }
a { color: #64b5f6; text-decoration: none; }
a:hover { text-decoration: underline; }
.org-name { font-weight: 600; color: #fff; }
.section-divider { margin: 60px 0 30px; padding: 18px 20px; background: #0a0f1a; border-top: 3px solid #1e2a3a; border-bottom: 3px solid #1e2a3a; text-align: center; color: #7a8a9a; font-size: 0.95em; letter-spacing: 0.15em; text-transform: uppercase; }
footer { text-align: center; margin-top: 50px; padding: 20px; color: #7a8a9a; font-size: 0.85em; }
.search-bar-wrap { max-width: 500px; margin: 0 auto 28px; position: relative; }
#dir-search { width: 100%; background: #16213e; border: 1px solid #2a2a4a; border-radius: 8px; padding: .55rem 2.4rem .55rem .9rem; color: #e0e0e0; font-size: .92rem; outline: none; transition: border-color .15s; }
#dir-search::placeholder { color: #7a8a9a; }
#dir-search:focus { border-color: #1e3a2f; }
.search-clear { position: absolute; right: .6rem; top: 50%; transform: translateY(-50%); background: none; border: none; color: #7a8a9a; font-size: 1.1rem; cursor: pointer; padding: .1rem .3rem; display: none; line-height: 1; }
.search-clear.visible { display: block; }
.search-clear:hover { color: #a8d8ea; }
#search-status { text-align: center; color: #7a8a9a; font-size: .84rem; margin-bottom: 1rem; min-height: 1.2em; }
tr.hidden-row { display: none !important; }
.section-hidden { display: none; }
.intro-p { text-align: center; margin-bottom: 12px; color: #a8d8ea; }
.nav-p { text-align: center; margin-bottom: 24px; font-size: .9em; }
@media (max-width: 768px) {
  body { padding: 12px; }
  h1 { font-size: 1.4em; margin: 20px 0; }
  h2 { font-size: 1.1em; margin: 25px 0 10px; }
  table, thead, tbody, tr, th, td { display: block; }
  thead { display: none; }
  tr { background: #16213e; border: 1px solid #2a2a4a; border-radius: 8px; margin-bottom: 12px; padding: 12px; }
  tr:hover td { background: transparent; }
  td { padding: 4px 0; border: none; font-size: 0.9em; display: flex; gap: 8px; }
  td.empty-cell { display: none; }
  td::before { content: attr(data-label); color: #a8d8ea; font-weight: 600; min-width: 110px; flex-shrink: 0; font-size: 0.85em; padding-top: 1px; }
  td.org-name { font-size: 1em; border-bottom: 1px solid #1e3a2f; padding-bottom: 8px; margin-bottom: 4px; white-space: normal; }
  td.org-name::before { display: none; }
  /* anywhere (not break-all) so long URLs/emails only split when they truly
     overflow, instead of every word breaking at an arbitrary character */
  td a, td span { overflow-wrap: anywhere; }
  td { word-break: break-word; overflow-wrap: break-word; }
}
