:root {
    --bg-0: #0a0000;
    --bg-1: #140202;
    --border: rgba(255, 255, 255, .08);
    --text: #f2f2f2;
    --muted: #bdbdbd;
    --accent: #e63333;
    --radius: 16px;
}

* {
    box-sizing: border-box
}

html, body {
    /*height: 100%*/
}

body {
    margin: 0;
    font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Arial;
    color: var(--text);
    background: linear-gradient(180deg, var(--bg-0), #1a0000)
}

a {
    color: #fff;
    text-decoration: none
}

a:hover {
    opacity: .9
}

/* Header */
.header {
    position: sticky;
    top: 0;
    z-index: 60;
    height: 64px;
    display: flex;
    align-items: center;
    backdrop-filter: blur(10px);
    background: rgba(10, 0, 0, .55);
    border-bottom: 1px solid rgba(255, 0, 0, .08)
}

.header .container {
    width: min(1280px, 96vw);
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative
}

.brand img {
    height: 28px;
    width: auto;
    display: block
}

.top-nav {
    margin-left: auto;
    display: flex;
    gap: 16px
}

.top-link {
    padding: 10px 14px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .04);
    border: 1px solid var(--border)
}

.header::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 2px;
    background: linear-gradient(90deg, rgba(255, 90, 90, 0) 0%, #ff5555 15%, #ffd9d9 50%, #ff5555 85%, rgba(255, 90, 90, 0) 100%);
    box-shadow: 0 2px 10px rgba(255, 60, 60, .85), 0 6px 18px rgba(255, 60, 60, .45)
}

.header::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -10px;
    height: 18px;
    background: linear-gradient(180deg, rgba(255, 60, 60, .55) 0%, rgba(255, 60, 60, 0) 100%);
    filter: blur(8px)
}

/* Layout */
.layout {
    display: grid;
    grid-template-columns:280px 1fr;
    gap: 24px;
    width: min(1280px, 96vw);
    margin: 24px auto
}


/* Sidebar */
.sidebar {
    position: sticky;
    top: 88px;
    align-self: start;
    background: var(--bg-1);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px
}

.side-group {
    margin: 12px 0
}

.side-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    color: #ddd;
    border: 1px solid transparent
}

.side-item:hover {
    background: rgba(255, 255, 255, .04);
    border-color: var(--border)
}

.side-item.active {
    background: rgba(230, 51, 51, .12);
    border-color: rgba(230, 51, 51, .35)
}

.sub-items {
    margin-left: 12px;
    margin-top: 6px;
    display: flex;
    flex-direction: column;
    gap: 6px
}

.sub-item {
    padding: 8px 10px;
    border-radius: 8px;
    color: #bdbdbd;
    font-size: 14px
}

.sub-item.active {
    background: rgba(255, 255, 255, .06);
    color: #fff
}

/* Content */
.content {
    min-height: 60vh
}

.card {
    background: var(--bg-1);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 16px;
}

.card > img {
    display: block;
    max-width: 420px;
}

@media (max-width: 480px) {
    .card > img {
        width: 100% ;
        max-width: 320px;
    }
}

.card > p {
    width: 100%;
    text-align: left;
    margin: 0;
}

.card > ol,
.card > ul {
    align-self: flex-start;
    color: var(--muted);
}

.card hr {
    width: 50%;
    margin: 30px auto;
    border: none;
    font-size: 2px;
    text-align: right;
    overflow: visible;
}

.card hr:after {
    content: '';
    display: block;
    border-top: 1px solid #c9cdd1;
    margin: 0 3px;
    position: relative;
    top: 1px;
}

.card blockquote {
    font-family: CustomSerif, Georgia, Cambria, 'Times New Roman', serif;
    margin: 12px 21px 0 0;
    padding-left: 15px;
    position: relative;
    font-style: italic;
    word-wrap: break-word;
    border-left: 3px solid #ffffff;
    align-self: flex-start;
}
a.bordered-link {
    color: inherit;
    -webkit-tap-highlight-color: rgba(0, 0, 0, .44);
    text-decoration: none;
    border-bottom: .1em solid rgba(0, 0, 0, .7);
}

.bread {
    font-size: 14px;
    color: var(--muted);
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

h1 {
    margin: 6px 0 12px
}

@media (max-width: 480px) {
    h1 {
        font-size: 20px;
    }
}

h2 {
    margin: 22px 0 8px
}

@media (max-width: 480px) {
    h2 {
        font-size: 18px;
    }
}

p {
    color: var(--muted)
}

.figure {
    margin: 14px 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, .02), rgba(255, 255, 255, .01));
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 10px
}

.figure img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block
}

.figcap {
    font-size: 13px;
    color: #a8a8a8;
    margin-top: 6px
}

/* Buttons */
.nav-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 40px;
}

.nav-btn {
    background: var(--accent);
    color: white;
    padding: 12px 28px;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: opacity .2s ease, transform .2s ease;
}

.nav-btn:hover {
    opacity: 0.85;
    transform: scale(1.05);
}

footer {
    padding: 20px 0;
    border-top: 1px solid var(--border);
    color: #9a9a9a;
    text-align: center
}

.container {
    width: min(1280px, 96vw);
    margin: 0 auto
}
.greyed-text {
    font-size: 15px;
    color: #79828B;
    padding: 12px 21px 0;
    line-height: 18px;
    vertical-align: top;
    text-align: center;
}
ul, ol {
    list-style: none; /* Remove default bullets/numbers */
    padding: 0;
    margin: 0;
}

li {
    display: flex;
    align-items: center; /* Vertical centering */
    gap: 0.5em;
    margin-bottom: 0.5em;
    line-height: 1.4;
}

/* Custom bullet for ul */
ul li::before {
    content: "•";
    color: var(--muted);
    font-size: 1.2em;
}

/* Custom counter for ol */
ol {
    counter-reset: item;
}

ol li::before {
    counter-increment: item;
    content: counter(item) ".";
    font-weight: bold;
    color: var(--muted);
}