/* ANA Template Stylesheet — extracted from deploy.py */
/* Edit this file directly. deploy.py loads it at build time. */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  line-height: 1.7;
  color: #1a1a1a;
  background: #fafaf8;
}
a { color: var(--ac, #3d5a80); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Header ── */
header {
  background: #0f2540;
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 90px;
  position: relative;
}
.site-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.site-brand:hover { text-decoration: none; }
.brand-logo {
  height: 86px;
  width: auto;
  max-width: 85vw;
  display: block;
}

/* ── Burger left, search right ── */
#menu-btn {
  position: absolute;
  left: 0.5rem;
  background: none;
  border: none;
  color: rgba(255,255,255,0.7);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.4rem 0.6rem;
  line-height: 1;
  transition: color 0.15s;
}
#menu-btn:hover { color: #fff; }
.search-icon {
  position: absolute;
  right: 0.5rem;
  color: rgba(255,255,255,0.6);
  display: flex;
  align-items: center;
  padding: 0.3rem;
  border-radius: 4px;
  transition: color 0.15s;
}
.search-icon:hover { color: #fff; text-decoration: none; }

/* ── Mobile nav overlay ── */
#mobile-nav {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 9999;
  background: rgba(10,15,25,0.6);
}
#mobile-nav.open { display: flex; }
#mobile-nav-panel {
  background: #162d4a;
  width: 85%;
  max-width: 360px;
  height: 100%;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0 0 2rem;
  box-shadow: 4px 0 24px rgba(0,0,0,0.5);
}
#mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.2rem;
  background: #0f2540;
  border-bottom: 1px solid #1e3a5e;
  position: sticky;
  top: 0;
  z-index: 1;
}
#mobile-nav-header span {
  color: #8ab4d8;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
#mobile-nav-close {
  background: none;
  border: none;
  color: #8ab4d8;
  font-size: 1.4rem;
  cursor: pointer;
  padding: 0.2rem 0.4rem;
  line-height: 1;
}
#mobile-nav-close:hover { color: #fff; }
#mobile-nav-body {
  padding: 0.75rem 1.2rem 1.5rem;
}
#mobile-nav ul { list-style: none; }
#mobile-nav li { margin-bottom: 0; }
#mobile-nav a {
  color: #dce8f5;
  font-family: system-ui, sans-serif;
  font-size: 0.92rem;
  display: block;
  padding: 0.45rem 0.5rem;
  border-bottom: 1px solid #1e3a5e;
}
#mobile-nav a:hover { color: #fff; text-decoration: none; background: #1e3a5e; }
.mobile-nav-search {
  margin-bottom: 0.6rem;
}
.mobile-nav-search input {
  width: 100%;
  padding: 0.5rem 0.7rem;
  border: 1px solid #2a4a6a;
  border-radius: 4px;
  background: #1a3050;
  color: #dce8f5;
  font-family: system-ui, sans-serif;
  font-size: 0.88rem;
}
.mobile-nav-search input::placeholder { color: #6a8aaa; }
.mobile-nav-search input:focus {
  outline: none;
  border-color: #5a8ab8;
}
.mobile-nav-group {
  margin-bottom: 0.2rem;
}
.mobile-nav-group summary {
  cursor: pointer;
  color: #8ab4d8;
  font-family: system-ui, sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.5rem 0.5rem;
  list-style: none;
  user-select: none;
}
.mobile-nav-group summary::-webkit-details-marker { display: none; }
.mobile-nav-group summary::before {
  content: "\25B6";
  display: inline-block;
  font-size: 0.55rem;
  margin-right: 0.4rem;
  transition: transform 0.15s;
  vertical-align: middle;
}
.mobile-nav-group[open] summary::before {
  transform: rotate(90deg);
}
.mobile-nav-group ul {
  padding-left: 0.3rem;
}
.mobile-nav-group .nav-hidden { display: none; }

/* ── Layout ── */
.page-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 2.5rem 4rem;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 3.5rem;
  align-items: start;
}

/* ── Sidebar nav ── */
nav.sidebar {
  position: sticky;
  top: 100px;
  font-family: system-ui, sans-serif;
  font-size: 0.82rem;
  max-height: calc(100vh - 90px);
  overflow-y: auto;
}
nav.sidebar p {
  color: #888;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 0.5rem;
}
nav.sidebar ul { list-style: none; }
nav.sidebar li { margin-bottom: 0; }
nav.sidebar .nav-group-label {
  color: #999;
  font-size: 0.67rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-top: 1rem;
  margin-bottom: 0.3rem;
  padding-left: 0.5rem;
}
nav.sidebar li.nav-group-label:first-child { margin-top: 0; }
nav.sidebar a {
  display: block;
  padding: 0.22rem 0.5rem;
  border-radius: 3px;
  color: #444;
  line-height: 1.4;
}
nav.sidebar a:hover { background: #eee; text-decoration: none; }
nav.sidebar a.active {
  background: #e8f0fb;
  color: var(--ac, #3d5a80);
  font-weight: 600;
}

/* ── Nav search filter ── */
.nav-search {
  margin-bottom: 0.6rem;
}
.nav-search input {
  width: 100%;
  padding: 0.35rem 0.5rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: system-ui, sans-serif;
  font-size: 0.78rem;
  color: #333;
  background: #fff;
}
.nav-search input:focus {
  outline: none;
  border-color: var(--ac, #3d5a80);
  box-shadow: 0 0 0 2px rgba(26, 74, 138, 0.12);
}

/* ── Collapsible nav groups ── */
.nav-group {
  margin-bottom: 0.5rem;
}
.nav-group summary {
  cursor: pointer;
  color: #666;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0.35rem 0.5rem;
  border-radius: 3px;
  list-style: none;
  user-select: none;
}
.nav-group summary::-webkit-details-marker { display: none; }
.nav-group summary::before {
  content: "\25B6";
  display: inline-block;
  font-size: 0.55rem;
  margin-right: 0.4rem;
  transition: transform 0.15s;
  vertical-align: middle;
}
.nav-group[open] summary::before {
  transform: rotate(90deg);
}
.nav-group summary:hover { background: #f0f0f0; }
.nav-count {
  font-weight: 400;
  color: #aaa;
  font-size: 0.65rem;
}
.nav-group ul {
  margin-top: 0.15rem;
  padding-left: 0.3rem;
}
.nav-member-sites {
  margin-top: 0.6rem;
  padding-top: 0.5rem;
  border-top: 1px solid #e0e0e0;
}
.nav-member-sites summary {
  color: var(--ac, #3d5a80);
}
.nav-hidden { display: none; }

/* ── Article ── */
article { min-width: 0; }
article h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.85rem;
  font-weight: 700;
  line-height: 1.25;
  color: #0f2540;
  margin-bottom: 2rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid #d8d8d4;
}
article h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: #0f2540;
  margin: 2.5rem 0 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e8e6e2;
}
article h3 {
  font-family: system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: #333;
  margin: 1.25rem 0 0.5rem;
}
article p  { margin-bottom: 1.15rem; }
article ul, article ol { margin: 0.75rem 0 1.25rem 1.5rem; }
article li { margin-bottom: 0.35rem; }
article strong { font-weight: 700; }
article em { font-style: italic; }
article hr { border: none; border-top: 1px solid #e0ddd8; margin: 2.5rem 0; }
article table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-family: system-ui, sans-serif;
  font-size: 0.88rem;
  overflow-x: auto;
  display: block;
}
article th {
  background: #0f2540;
  color: #fff;
  padding: 0.5rem 0.75rem;
  text-align: left;
  font-weight: 600;
}
article td {
  padding: 0.45rem 0.75rem;
  border-bottom: 1px solid #e8e8e8;
  vertical-align: top;
}
article tr:nth-child(even) td { background: #f5f5f2; }
article code {
  background: #f0f0ec;
  padding: 0.1em 0.35em;
  border-radius: 3px;
  font-size: 0.88em;
  font-family: monospace;
}
article blockquote {
  border-left: 2px solid #d8d8d4;
  margin: 1.25rem 0;
  padding: 0.6rem 1.2rem;
  color: #555;
  font-style: italic;
}

/* ── On this site section ── */
.on-this-site {
  margin-top: 3rem;
  padding: 2rem;
  background: #fafaf8;
  border: 1px solid #e0ddd8;
  border-radius: 4px;
}
.on-this-site h2 {
  font-family: system-ui, sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #0f2540;
  margin-bottom: 1.2rem;
  padding-top: 0;
  border: none;
}
.on-site-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem 2rem;
}
.on-site-group strong {
  display: block;
  font-family: system-ui, sans-serif;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #777;
  margin-bottom: 0.4rem;
}
.on-site-group ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.on-site-group li { margin-bottom: 0.25rem; }
.on-site-group a {
  font-family: system-ui, sans-serif;
  font-size: 0.85rem;
  color: var(--ac, #3d5a80);
}
.ots-hidden { display: none; list-style: none; }
.ots-hidden ul { list-style: none; margin: 0; padding: 0; }
.ots-toggle a {
  font-family: system-ui, sans-serif;
  font-size: 0.78rem;
  color: #888;
  font-style: italic;
}
.ots-toggle a:hover { color: var(--ac, #3d5a80); }

/* ── In the network section ── */
.in-the-network {
  margin-top: 2rem;
  padding: 1.5rem;
  background: #0f2540;
  border-radius: 6px;
  color: #dce8f5;
}
.in-the-network h2 {
  font-family: system-ui, sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #fff;
  margin-bottom: 1.2rem;
  padding-top: 0;
  border: none;
}
.in-the-network h3 {
  font-family: system-ui, sans-serif;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #8ab4d8;
  margin-bottom: 0.5rem;
  margin-top: 1rem;
}
.in-the-network h3:first-child { margin-top: 0; }
.network-group { margin-bottom: 0.5rem; }
.network-hierarchy { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid #1e3a5e; }
.network-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.3rem 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.in-the-network ul { list-style: none; margin: 0; padding: 0; }
.in-the-network li { margin-bottom: 0.2rem; }
.in-the-network a {
  color: #a8cce8;
  font-family: system-ui, sans-serif;
  font-size: 0.85rem;
}
.in-the-network a:hover { color: #fff; text-decoration: underline; }
.network-hierarchy a { color: #8ab4d8; font-size: 0.82rem; }

/* ── Nav member sites toggle ── */
.nav-show-more a {
  font-size: 0.78rem;
  color: #888;
  font-style: italic;
}
.nav-show-more a:hover { color: var(--ac, #3d5a80); }
.nav-show-more-wrap ul { list-style: none; margin: 0; padding: 0; }

/* ── Get Help standalone nav link ── */
.nav-get-help {
  padding: 0.35rem 0.75rem;
}
.nav-get-help a {
  color: var(--text, #232323);
  font-size: 0.85rem;
  text-decoration: none;
}
.nav-get-help a:hover {
  color: var(--ac, #3d5a80);
}

/* ── Explore This Site section ── */
.explore-site {
  margin-top: 3rem;
  padding: 2rem;
  background: #fafaf8;
  border: 1px solid #e0ddd8;
  border-radius: 4px;
}
.explore-site h2 {
  font-family: system-ui, sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #0f2540;
  margin-bottom: 1.2rem;
  padding-top: 0;
  border: none;
}
.explore-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}
.explore-card {
  display: block;
  padding: 1.1rem 1.3rem;
  background: #fff;
  border: 1px solid #e0ddd8;
  border-radius: 3px;
  text-decoration: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.explore-card:hover {
  border-color: var(--ac, #3d5a80);
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}
.explore-label {
  display: block;
  font-family: system-ui, sans-serif;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #999;
  margin-bottom: 0.3rem;
}
.explore-title {
  display: block;
  font-family: system-ui, sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ac, #3d5a80);
  line-height: 1.35;
}
.explore-dropdown {
  cursor: default;
}
.explore-select {
  display: block;
  width: 100%;
  padding: 0.4rem 0.5rem;
  margin-top: 0.3rem;
  font-family: system-ui, sans-serif;
  font-size: 0.82rem;
  color: #333;
  background: #f8f9fb;
  border: 1px solid #d0d8e0;
  border-radius: 3px;
  cursor: pointer;
}
.explore-select:hover {
  border-color: var(--ac, #3d5a80);
}

/* ── Contact form ── */
.ana-contact-form .form-group {
  margin-bottom: 1.25rem;
}
.ana-contact-form label {
  display: block;
  font-family: system-ui, sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 0.35rem;
}
.ana-contact-form input[type="text"],
.ana-contact-form input[type="email"],
.ana-contact-form textarea {
  width: 100%;
  max-width: 480px;
  padding: 0.6rem 0.8rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: system-ui, sans-serif;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #1a1a1a;
  background: #fff;
}
.ana-contact-form input:focus,
.ana-contact-form textarea:focus {
  outline: none;
  border-color: var(--ac, #3d5a80);
  box-shadow: 0 0 0 2px rgba(26, 74, 138, 0.15);
}
.ana-contact-form button[type="submit"] {
  display: inline-block;
  padding: 0.65rem 2rem;
  background: var(--ac, #3d5a80);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-family: system-ui, sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
}
.ana-contact-form button[type="submit"]:hover {
  opacity: 0.9;
}

/* ── Footer ── */
footer {
  background: #0f2540;
  color: #7a9bb8;
  font-family: system-ui, sans-serif;
  font-size: 0.75rem;
  text-align: center;
  padding: 1rem 2rem;
  margin-top: 3rem;
  letter-spacing: 0.02em;
}
footer p { margin: 0.2rem 0; }
.ai-disclosure { opacity: 0.6; font-size: 0.7rem; }
.ana-copyright { opacity: 0.45; font-size: 0.65rem; margin-top: 0.35rem; }
footer a { color: #8ab4d8; }

/* ── Verification badge ── */
.verification-badge {
  margin-top: 2rem;
  padding: 0.6rem 1rem;
  background: #f0f5fa;
  border-left: 3px solid var(--ac, #3d5a80);
  border-radius: 0 4px 4px 0;
  font-family: system-ui, sans-serif;
  font-size: 0.78rem;
  color: #4a5568;
  line-height: 1.6;
}
.vb-item { white-space: nowrap; }
.vb-verified { color: #2a7a3a; }
.vb-updated { color: #1a6a8a; }
.vb-monitored { color: #5a6a7a; }
.verification-badge a {
  color: var(--ac, #3d5a80);
  font-size: 0.76rem;
}

/* ── Staleness banner ── */
.staleness-banner {
  border-radius: 6px;
  padding: 0.8rem 1.2rem;
  margin: 0 0 1.5rem;
  font-family: system-ui, sans-serif;
  font-size: 0.88rem;
  line-height: 1.5;
}
.staleness-banner a {
  font-weight: 600;
  margin-left: 0.5rem;
}

/* ── Responsive ── */
@media (max-width: 720px) {
  #menu-btn { font-size: 1.3rem; }
  .page-wrap {
    grid-template-columns: 1fr;
    padding: 1.5rem 1rem 3rem;
    gap: 0;
  }
  nav.sidebar { display: none; }
  .on-site-grid { grid-template-columns: 1fr 1fr; }
  .network-grid { grid-template-columns: 1fr 1fr; }
  .brand-logo { height: 56px; }
  .header-inner { height: 72px; }
  .verification-badge {
    flex-direction: column;
    gap: 0.3rem;
  }
  .verification-badge .vb-item { white-space: normal; }
  #mobile-nav a { padding: 0.45rem 0; font-size: 0.92rem; }
  article { font-size: 16px; }
  article h1 { font-size: 1.4rem; }
  article h2 { font-size: 1.15rem; }
  .on-this-site { padding: 1.25rem; }
  .in-the-network { padding: 1.25rem; }
  .explore-grid { grid-template-columns: 1fr 1fr; }
  .explore-site { padding: 1.25rem; }
}
@media (max-width: 480px) {
  .on-site-grid { grid-template-columns: 1fr; }
  .network-grid { grid-template-columns: 1fr; }
  .explore-grid { grid-template-columns: 1fr; }
  .header-inner { padding: 0; }
  .brand-logo { height: 44px; }
  .header-inner { height: 60px; }
}
/* Header logo IS the brand — H1 on homepage is visually redundant */
.page-index article h1:first-of-type {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
