/* ===== Base Layout ===== */
body {
    font-family: 'Segoe UI', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #2c3e50; /* deep neutral text */
    background-color: #f9fafb; /* light tech doc background */
    overflow: initial;
    box-sizing: border-box;
    word-wrap: break-word;
    margin: 0;
    padding: 0;
}

/* ===== Headings ===== */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.3;
    margin-top: 1.4em;
    margin-bottom: 0.6em;
    font-weight: 600;
    color: #111827;
}

h1 {
    font-size: 2rem;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 0.3em;
}

h2 {
    font-size: 1.5rem;
    border-left: 4px solid #0366d6;
    padding-left: 0.5em;
}

h3 {
    font-size: 1.25rem;
    color: #1f2937;
}

/* ===== Links ===== */
a {
    text-decoration: none;
    color: #0366d6; /* GitHub blue */
    transition: color 0.2s ease;
}

a:hover,
a:focus {
    color: #0254aa;
    text-decoration: underline;
}

/* ===== Main Content ===== */
main {
    max-width: 900px;
    margin: auto;
    padding: 2em;
    background-color: #ffffff;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

/* ===== Images ===== */
img {
    max-width: 100%;
    height: auto;
    display: block;
    margin-bottom: 1em;
}

img.inline {
    max-width: 100%;
    height: auto;
    display: inline-block;
    margin-bottom: 0;
}

/* Inline icon images */
img.icon {
    display: inline-block !important;
    height: 1em;
    width: auto;
    margin: 0 5px 0 0 !important;
    vertical-align: middle;
}

/* ===== Figures ===== */
figure {
    margin: 0;
    padding: 0;
}

figure figcaption {
    display: none;
}

/* ===== Lists ===== */
ul, ol {
    padding-left: 1.5em;
}

li {
    margin-bottom: 0.3em;
}

/* ===== Code & Preformatted ===== */
code {
    font-family: 'Consolas', 'Courier New', monospace;
    background-color: #f3f4f6;
    padding: 0.2em 0.4em;
    border-radius: 4px;
    font-size: 0.95em;
}

pre code {
    display: block;
    padding: 1em;
    overflow-x: auto;
}

/* ===== Tables ===== */
table {
    border-collapse: collapse;
    width: 100%;
    margin-bottom: 1.5em;
    font-size: 0.95em;
}

th, td {
    border: 1px solid #d1d5db;
    padding: 0.6em 0.8em;
    text-align: left;
}

th {
    background-color: #f3f4f6;
    font-weight: 600;
}

/* ===== Misc ===== */
hr {
    border: none;
    border-top: 1px solid #e5e7eb;
    margin: 2em 0;
}
