* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  color: #1a1a1a;
  max-width: 48rem;
  margin: 0 auto;
  padding: 2rem 1rem;
}

header nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e0e0e0;
  margin-bottom: 2rem;
  gap: 0.5rem;
}

header nav > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

header nav .login {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgb(88, 54, 136);
  color: white;
  padding: 0.35rem 0.8rem;
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
}

header nav .login:hover {
  background: rgb(68, 34, 116);
}

header nav .login .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.4em;
  min-height: 1.4em;
  padding: 0.1em 0.4em;
  border-radius: 999px;
  background: rgb(88, 176, 209);
  color: white;
  font-weight: bold;
  font-size: 0.8em;
}


header .search {
  position: relative;
  text-align: right;
}

header .search input {
  padding: 0.3rem 0.6rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 0.85rem;
  width: 14rem;
}

header .search input:focus {
  outline: none;
  border-color: #0066cc;
}

header .search-results {
  position: absolute;
  right: 0;
  top: 100%;
  width: 24rem;
  max-height: 20rem;
  overflow-y: auto;
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  z-index: 100;
  margin-top: 0.25rem;
}

header .search-results ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

header .search-results li {
  border-bottom: 1px solid #f0f0f0;
  font-size: 0.85rem;
  line-height: 1.4;
}

header .search-results li a {
  display: block;
  padding: 0.5rem 0.75rem;
  color: inherit;
  text-decoration: none;
}

header .search-results li:last-child {
  border-bottom: none;
}

header .search-results li:hover {
  background: #f8f8f8;
}

header .search-results a {
  color: #0066cc;
  text-decoration: none;
  font-weight: 500;
}

header nav a {
  color: #0066cc;
  text-decoration: none;
  font-weight: 600;
}

main h1 { font-size: 1.8rem; margin: 1rem 0 0.5rem; display: flex; align-items: center; gap: 0.4rem; }
main h1 .page-logo { height: 1.2em; width: 1.2em; }
main h2 { font-size: 1.4rem; margin: 1.5rem 0 0.5rem; border-bottom: 1px solid #e0e0e0; padding-bottom: 0.25rem; }
main h3 { font-size: 1.1rem; margin: 1rem 0 0.5rem; }

main p { margin: 0.5rem 0; }
main ul, main ol { margin: 0.5rem 0 0.5rem 1.5rem; }
main li { margin: 0.25rem 0; }

main a { color: #0066cc; text-decoration: none; }
main a:hover { text-decoration: underline; }

main code {
  background: #f4f4f4;
  padding: 0.15rem 0.35rem;
  border-radius: 3px;
  font-size: 0.9em;
}

main pre {
  background: #f4f4f4;
  padding: 1rem;
  border-radius: 4px;
  overflow-x: auto;
  margin: 0.75rem 0;
}

main pre code {
  background: none;
  padding: 0;
}

main table {
  border-collapse: collapse;
  width: 100%;
  margin: 0.75rem 0;
}

main th, main td {
  border: 1px solid #e0e0e0;
  padding: 0.5rem 0.75rem;
  text-align: left;
}

main th {
  background: #f4f4f4;
  font-weight: 600;
}

main tr:nth-child(even) {
  background: #fafafa;
}

main hr {
  border: none;
  border-top: 1px solid #e0e0e0;
  margin: 1.5rem 0;
}

footer {
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 1px solid #e0e0e0;
  color: #888;
  font-size: 0.85rem;
}

footer a { color: #888; }

.not-found {
  text-align: center;
  padding: 4rem 1rem;
}

.not-found h1 {
  font-size: 4rem;
  color: #ccc;
  margin-bottom: 0.5rem;
  justify-content: center;
}

.not-found p {
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 1.5rem;
}

.not-found a {
  color: #0066cc;
  text-decoration: none;
  font-weight: 500;
}

.not-found a:hover {
  text-decoration: underline;
}

.page-updates {
  margin-top: 2rem;
  border-top: 1px solid #e0e0e0;
  padding-top: 1rem;
  font-size: 0.85rem;
  color: #666;
}

.page-updates summary {
  cursor: pointer;
  font-weight: 500;
  color: #444;
}

.page-updates ul {
  list-style: none;
  margin-top: 0.5rem;
}

.page-updates li {
  padding: 0.2rem 0;
}

.page-updates time {
  color: #999;
  margin-right: 0.5rem;
}
