
/* Base Layout */
body {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: #1c1e21;
  background-color: #ffffff;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  font-size: 16px;
}

a {
  color: #1c1e21;
}


html {
    font-family: sans-serif;
    -ms-text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
    box-sizing: border-box;
    height: 100%;
    min-height: 100%
}

html *,html :after,html :before {
    box-sizing: inherit
}

body {
    font-family: system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    font-size: 16px;
    line-height: 1.6;
    color:#1a1a1a;
    font-weight: 400;
    background: rgb(255, 255, 255);
    -webkit-font-smoothing: antialiased;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: rgba(0,0,0,0);
    -moz-osx-font-smoothing: grayscale;
    display: flex;
    flex-direction: column;
    margin: 0;
    height: 100%;
    min-height: 100%
}

img,svg,video {
    max-width: 100%
}

a {
    color: inherit;
}

a:hover {
    text-decoration: none
}

header {
  background-color: #ffffff;
  padding: 2rem 1rem;
  text-align: center;
  border-bottom: 1px solid #e6e6e6;
}

header h1 {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 600;
}

header h1 a {
  text-decoration: none;
  color: #1c1e21;
}

footer {
  /* background-color: #fafafa; */
  padding: 2rem 1rem;
  text-align: center;
  color: #8a8d91;
  font-size: 0.9rem;
  border-top: 1px solid #e6e6e6;
}

/* Main Content */
main {
  max-width: 720px;
  margin: 3rem auto;
  padding: 0 1.5rem;
}

/* Breadcrumbs */
.breadcrumb {
  font-size: 0.85rem;
  color: #6d6d6d;
  margin: 2rem 0;
}

.breadcrumb a {
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

/* Headings */
h1, h2, h3 {
  font-weight: 600;
  color: #1c1e21;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

h1 {
  font-size: 2rem;
  margin-top: 0;
}

h2 {
  font-size: 1.5rem;
}

h3 {
  font-size: 1.25rem;
}

/* Paragraphs */
p {
  margin: 1rem 0;
}

/* Links */
a {
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Lists */
ul, ol {
  margin: 1rem 0;
  padding-left: 2rem;
}

li {
  margin-bottom: 0.5rem;
}

/* Images */
img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 2rem 0;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Code Blocks */
code {
  background-color: #f1f1f1;
  padding: 0.2rem 0.4rem;
  border-radius: 3px;
  font-family: monospace;
  font-size: 0.95rem;
}

pre {
  background-color: #f1f1f1;
  padding: 1rem;
  overflow-x: auto;
  border-radius: 6px;
  font-family: monospace;
  font-size: 0.95rem;
}

/* Article Index Lists */
ul.article-list {
  list-style: none;
}

.main {
  padding: 30px 20px;
  max-width: 800px;
  margin: auto;
}

.search-bar {
  margin-bottom: 30px;
}

.search-bar input {
  width: 100%;
  padding: 14px 18px;
  font-size: 16px;
  border-radius: 8px;
  border: none;
  background: #f4f4f4;
}

.category-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.category-card {
  display: flex;
  align-items: flex-start;
  text-decoration: none;
  background: #f9f9f9;
  border-radius: 12px;
  padding: 20px;
  transition: box-shadow 0.2s;
  color: inherit;
}

.category-card:hover {
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.icon {
  font-size: 24px;
  margin-right: 16px;
}

.category-text h2 {
  font-size: 18px;
  margin-bottom: 6px;
  margin-top: 0.25rem;
}

.category-text p {
  font-size: 14px;
  color: #444;
  margin-bottom: 4px;
}

.meta {
  font-size: 12px;
  color: #999;
}

.article-list {
  border: 1px solid rgb(230, 230, 230);
  padding: 12px;
  border-radius: 8px;
  margin: 2rem 0;
}

.article-list a {
  padding: 12px;
  width: 100%;
  position: relative;
  display: block;
  margin: 0;
  color: #1c1e21;
}

.article-list li {
  margin: 0;
}
.article-list a::after {
  content: "›";
  position: absolute;
  right: 0;
}

h2 {
  font-size: 1rem;
  margin-top: 0;
  font-weight: normal;
}

h1 {
  margin-bottom: 0;
  font-weight: bold;
}

main {
  width: 900px;
  max-width: 98%;
}

header {
  background-color: #000000;
  color: #ffffff;
}

.avatar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;

}

.avatar img {
  margin-right: 1rem;
  width: 64px !important;
  height: 64px !important;
  margin-top: 10px;
  margin-bottom: 10px;
}