@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');

html, body { margin: 0; padding: 0; min-height: 100%; background: #f4f7fc; }

#bg {
  position: fixed;
  inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
}

body {
  font-family: 'Roboto', 'Noto Sans', 'Segoe UI', sans-serif;
  color: #1e1c18;
  background: transparent;
  margin: 0 auto;
  padding: 32px 20px 64px;
  max-width: 920px;
}

h1, h2, h3 {
  font-weight: 500;
  letter-spacing: 0.01em;
}

.page-shell {
  position: relative;
  z-index: 1;
}

a,
a:visited,
a:hover,
a:active {
  color: #000;
  text-decoration: none;
}

.brand { font-weight: 700; font-size: 1.2rem; display: inline-block; margin-bottom: 32px; color: #1e1c18; text-decoration: none; }

.card { background: rgba(255,255,255,0.58); backdrop-filter: blur(4px) saturate(120%); -webkit-backdrop-filter: blur(4px) saturate(120%); border: 1px solid rgba(255,255,255,0.85); border-radius: 16px; padding: 20px 24px; box-shadow: 0 8px 32px rgba(0,0,0,0.12), inset 0 1px 0 rgba(255,255,255,0.75); position: relative; z-index: 2; }

.page-list { margin: 0; padding: 0; list-style: none; }
.page-list li {
  margin: 3px 0;
  font-size: 1.05rem;
  width: fit-content;
  max-width: 100%;
}

.page-list a {
  display: inline-block;
  padding: 10px 12px;
  border-radius: 10px;
  transition: transform 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.page-list a:hover {
  transform: translateX(6px) translateY(-1px);
  background-color: rgba(0, 0, 0, 0.05);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.body-copy { line-height: 1.7; }
.body-copy > :first-child { margin-top: 0; }
.body-copy > :last-child { margin-bottom: 0; }
.body-copy a,
.body-copy a:visited {
  color: #00acc1;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1.5px;
}

.body-copy a:hover,
.body-copy a:active {
  color: #00838f;
  text-decoration: underline;
}

.body-copy code { font-size: 0.9em; background: #f4f4f4; border-radius: 4px; padding: 0.1em 0.3em; }
.body-copy pre { overflow-x: auto; padding: 16px; background: #f4f4f4; border-radius: 8px; }
.body-copy pre code { background: none; padding: 0; }
.body-copy table { width: 100%; border-collapse: collapse; margin: 20px 0; }
.body-copy th, .body-copy td { text-align: left; padding: 10px 12px; border-bottom: 1px solid #e5e5e5; }
.body-copy th.sortable {
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}

.body-copy th.sortable::after {
  content: '↕';
  font-size: 0.78em;
  margin-left: 6px;
  opacity: 0.45;
}

.body-copy th.sortable.asc::after {
  content: '▲';
  opacity: 0.75;
}

.body-copy th.sortable.desc::after {
  content: '▼';
  opacity: 0.75;
}

@media (max-width: 768px) {
  body {
    padding: 20px 16px 48px;
  }

  .brand {
    font-size: 1rem;
    margin-bottom: 24px;
  }

  .card {
    padding: 16px 18px;
    border-radius: 12px;
  }

  .page-list li {
    margin: 8px 0;
    font-size: 1.1rem;
  }

  .page-list a {
    padding: 12px 14px;
    border-radius: 8px;
    display: block;
  }

  .body-copy {
    font-size: 1rem;
  }

  .body-copy table {
    margin: 16px 0;
    font-size: 0.95rem;
  }

  .body-copy th, .body-copy td {
    padding: 8px 10px;
  }
}
