html { font-size:112% }

h1 { font-size: min(4.3vw, 190%) }
article h1,
h1 {
    margin-top: 20px;
    margin-bottom: 25px;
    line-height: 1.25;
}

article h2,
h2 {
    margin-top: 40px;
    margin-bottom: 18px;
    line-height: 1.3;
}

article h3,
h3 {
    margin-top: 30px;
    margin-bottom: 12px;
}

article p,
p {
    line-height: 1.65;
}

main article h1 { font-size:132%; padding-top: 17px; }
main article h1 span.title { color: #66a; }
h2 { color:#026; font-size: 1.4em; margin: 5px 0 5px 0 }
aside div { font-size:92% }
p { text-indent: 1.5em }

.compare {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 15px;
}

.compare th {
    background: #f1f5f9;
    font-weight: bold;
    text-align: left;
}

.compare th,
.compare td {
    border: 1px solid #d5dbe3;
    padding: 10px 12px;
    vertical-align: top;
}

.compare tr:nth-child(even) {
    background: #fafafa;
}

.code-block {
    position: relative;
    margin: 20px 0;
}

.code-block pre {
    margin: 0;
    padding: 18px 20px;
    padding-right: 55px;
    overflow-x: auto;
    background: #f6f8fa;
    border: 1px solid #d8dee4;
    border-radius: 8px;
    font-family: Consolas, "Courier New", monospace;
    font-size: 14px;
    line-height: 1.5;
}

.code-block code {
    font-family: inherit;
}

.copy-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    user-select: none;
    border-radius: 6px;
    background: rgba(0,0,0,0.05);
    font-size: 18px;
    opacity: 0.65;
    transition: all .2s ease;
}

.copy-btn:hover {
    opacity: 1;
    background: rgba(0,0,0,0.1);
}

.info,
.tip,
.warning,
.note,
.exercise {
    margin: 22px 0;
    padding: 16px 18px;
    border-radius: 8px;
    line-height: 1.6;
}

.info {
    background: #eef7ff;
    border-left: 5px solid #3498db;
}

.tip {
    background: #f0fff4;
    border-left: 5px solid #2ecc71;
}

.warning {
    background: #fff8e6;
    border-left: 5px solid #f1c40f;
}

.note {
    background: #f7f7f7;
    border-left: 5px solid #777;
}

.exercise {
    background: #f5f0ff;
    border-left: 5px solid #8e44ad;
}

blockquote {
    margin: 25px 0;
    padding: 15px 20px;
    background: #fafafa;
    border-left: 5px solid #999;
    font-style: italic;
    line-height: 1.6;
}

article ul,
article ol {
    line-height: 1.7;
}

article li {
    margin-bottom: 5px;
}

p code,
li code {
    background: #f1f1f1;
    padding: 2px 5px;
    border-radius: 4px;
    font-family: Consolas, "Courier New", monospace;
    font-size: .95em;
}

@media (max-width: 700px) {
    .compare { font-size: 14px; }
    .compare th,
    .compare td { padding: 7px; }
    .code-block pre { padding: 14px; padding-right: 45px; font-size: 13px; }
    .copy-btn { width: 30px; height: 30px; font-size: 16px; }
    .info,
    .tip,
    .warning,
    .note,
    .exercise { padding: 12px 14px; }
}

.code-block {
    background: rgba(0, 150, 255, 0.08);
    border: 1px solid rgba(0, 120, 255, 0.2);
    border-radius: 8px;
    backdrop-filter: blur(4px);
}

.code-block pre {
    padding: 16px;
    color: #000;
    font-family: Consolas, monospace;
    font-size: 14px;
}

.copy-btn {
    background: rgba(0, 120, 255, 0.15);
    border: 1px solid rgba(0, 120, 255, 0.3);
    color: #000;
    padding: 4px 8px;
    font-size: 12px;
}

.copy-btn:hover {
    background: rgba(0, 120, 255, 0.25);
}

.leftMenu li.menuGroup { position: relative; }
.leftMenu li.menuGroup > .menuGroupTitle {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-weight: bold;
    cursor: pointer;
    outline: none;
}
.leftMenu li.menuGroup > .menuGroupTitle:focus-visible {
    outline: 1px dotted #026;
}
.leftMenu .menuToggle {
    flex: 0 0 auto;
    margin-left: auto;
    color: #026;
    font-size: 14px;
    line-height: 1.4;
    user-select: none;
}
.leftMenu li.menuChild { display: none; }
.leftMenu li.menuChild.menuChildOpen { display: list-item; }
