@charset "utf-8";

/* ==========================================================
   Base Layout & Typography (Times New Roman / Minimal Style)
   ========================================================== */

html {
    height: 100%;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: 'Times New Roman', Times, serif;
    color: #222222;
    background-color: #fcfcfc;
    margin: 0;
    padding: 40px;
    box-sizing: border-box;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    position: relative;
    line-height: 1.7;
}

body>* {
    position: relative;
    z-index: 1;
}

main {
    flex: 1;
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
}

a {
    color: #0056b3;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
    opacity: 0.8;
}

/* ==========================================================
   Header & Navigation
   ========================================================== */

header {
    margin-bottom: 30px;
}

header nav a {
    font-size: 0.95rem;
    color: #666666;
}

header nav a:hover {
    color: #222222;
}

/* ==========================================================
   Headings & Content Elements
   ========================================================== */

h1 {
    font-size: 1.8rem;
    margin-top: 0;
    margin-bottom: 10px;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 1.4rem;
    margin-top: 40px;
    margin-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 8px;
}

h3 {
    font-size: 1.2rem;
    margin-top: 35px;
    margin-bottom: 15px;
}

h4 {
    font-size: 1.05rem;
    margin-top: 25px;
    margin-bottom: 10px;
}

h5 {
    font-size: 1rem;
    margin-top: 20px;
    margin-bottom: 8px;
}

p {
    margin: 15px 0;
}

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

ul,
ol {
    margin: 15px 0;
    padding-left: 30px;
}

li {
    margin: 6px 0;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 15px auto;
}

/* ==========================================================
   Components (Notice, Details, Code Blocks)
   ========================================================== */

.notice {
    background-color: #f5f5f5;
    border-left: 3px solid #222222;
    padding: 15px 20px;
    margin: 20px 0;
    font-size: 0.95rem;
}

details {
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 12px 15px;
    margin: 20px 0;
}

summary {
    font-weight: bold;
    cursor: pointer;
}

details[open] summary {
    margin-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 5px;
}

pre {
    background-color: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 15px;
    overflow-x: auto;
    margin: 20px 0;
}

code {
    font-family: Consolas, Monaco, "Courier New", Courier, monospace;
    font-size: 0.9rem;
}

p code,
li code {
    background-color: #f5f5f5;
    padding: 2px 5px;
    border-radius: 3px;
    font-size: 0.9rem;
}

/* ==========================================================
   Footer
   ========================================================== */

footer {
    text-align: center;
    margin-top: 60px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
    color: #666666;
    font-size: 0.9rem;
}

footer a {
    color: #666666;
}

footer a:hover {
    color: #222222;
}