/* Shared documentation styles for Hedgehog docs */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  line-height: 1.6;
  color: #24292e;
  background: #fff;
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

/* Top navigation bar */
.doc-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  padding: 10px 16px;
  margin: -40px -24px 32px;
  background: #24292e;
  color: #fff;
  font-size: 0.85em;
}
.doc-nav a {
  color: #c9d1d9;
  text-decoration: none;
}
.doc-nav a:hover {
  color: #fff;
  text-decoration: underline;
}
.doc-nav a.current {
  color: #fff;
  font-weight: 600;
}
.doc-nav .nav-sep {
  color: #484f58;
}

h1 { font-size: 2em; margin-bottom: 8px; }
h2 {
  font-size: 1.5em;
  margin-top: 48px;
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid #e1e4e8;
}
h3 { font-size: 1.15em; margin-top: 28px; margin-bottom: 8px; }

p { margin-bottom: 12px; }
ul, ol { margin-bottom: 12px; padding-left: 28px; }
li { margin-bottom: 4px; }

a { color: #0366d6; }
a:hover { text-decoration: underline; }

code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.9em;
  background: #f6f8fa;
  padding: 2px 6px;
  border-radius: 3px;
}

pre {
  background: #f6f8fa;
  border: 1px solid #e1e4e8;
  border-radius: 6px;
  padding: 16px;
  overflow-x: auto;
  margin-bottom: 16px;
  line-height: 1.5;
}
pre code {
  background: none;
  padding: 0;
  font-size: 0.85em;
}

/* Syntax highlighting */
.kw  { color: #8b008b; font-weight: bold; }
.num { color: #8b008b; }
.str { color: #2e37fd; }
.cmt { color: #006400; }

table {
  border-collapse: collapse;
  width: 100%;
  margin-bottom: 16px;
}
th, td {
  border: 1px solid #e1e4e8;
  padding: 8px 12px;
  text-align: left;
}
th { background: #f6f8fa; font-weight: 600; }

.subtitle { color: #586069; margin-bottom: 32px; }

#toc {
  background: #f6f8fa;
  border: 1px solid #e1e4e8;
  border-radius: 6px;
  padding: 16px 24px;
  margin-bottom: 32px;
}
#toc ul { list-style: none; padding-left: 0; margin-bottom: 0; }
#toc li { margin-bottom: 4px; }
#toc a { text-decoration: none; color: #0366d6; }
#toc a:hover { text-decoration: underline; }

/* Keyboard shortcut styling */
kbd {
  display: inline-block;
  padding: 2px 6px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.85em;
  color: #24292e;
  background: #fafbfc;
  border: 1px solid #d1d5da;
  border-radius: 3px;
  box-shadow: inset 0 -1px 0 #d1d5da;
}

/* Tip/note callout boxes */
.tip {
  background: #f1f8ff;
  border-left: 4px solid #0366d6;
  padding: 12px 16px;
  margin-bottom: 16px;
  border-radius: 0 6px 6px 0;
}
.tip strong { color: #0366d6; }

/* App card grid (for overview page) */
.app-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.app-card {
  border: 1px solid #e1e4e8;
  border-radius: 6px;
  padding: 16px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.app-card:hover {
  border-color: #0366d6;
  box-shadow: 0 1px 4px rgba(3, 102, 214, 0.15);
  text-decoration: none;
}
.app-card h3 {
  margin-top: 0;
  margin-bottom: 4px;
  color: #0366d6;
}
.app-card p {
  margin-bottom: 0;
  color: #586069;
  font-size: 0.9em;
}
