:root {
    color-scheme: light;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    line-height: 1.4;
}

main {
    max-width: 900px;
    margin: 0 auto;
    padding: 1rem;
}

.layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    align-items: start;
}

.sidebar {
    display: flex;
    flex-direction: column;
    border: 1px solid #b7cad8;
    height: 100%;
    background: linear-gradient(#dce9f3, #cfe0ec);
    padding: 0;
}

.sidebar-home-btn {
    margin-top: auto;
    margin-bottom: 0.75rem;
    align-self: center;
    padding: 0.45rem 0.8rem;
    cursor: pointer;
}

.sidebar a {
    display: block;
    padding: 0.8rem 0.75rem;
    text-align: center;
    text-decoration: none;
    color: #173a52;
    font-weight: 600;
}

hr {
    border: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0) 10%, rgb(130, 134, 166) 20%, rgb(130, 134, 166) 80%, rgba(0, 0, 0, 0) 90%);
    height: 1px;
    margin: 0;
    padding: 0;
}

.sidebar a:hover,
.sidebar a:focus-visible {
    text-decoration: none;
    background: linear-gradient(90deg,rgba(224, 237, 246, 0) 0%, rgba(242, 248, 252, 0.596) 50%, rgba(224, 237, 246, 0) 100%);
}

.sidebar a.active {
    text-decoration: none;
    color: #4f7f2b;
    background: linear-gradient(90deg,rgba(224, 237, 246, 0) 0%, rgba(242, 248, 252, 1) 50%, rgba(224, 237, 246, 0) 100%);
}

.sections {
    border-left: 1px solid #c7d6e0;
}

h1 {
    margin: 0 0 1rem;
    font-size: 1.75rem;
}

h2 {
    margin: 0 0 0.75rem;
    font-size: 1.25rem;
}

section {
    padding: 10px;
    height: 100%;
    overflow: auto;
    -webkit-box-shadow: inset 5px 5px 15px -3px #cecece;
    box-shadow: inset 5px 5px 15px -3px #cecece;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.75rem;
}

.card {
    display: block;
    text-decoration: none;
    color: inherit;
    border: 1px solid #ccc;
    padding: .75rem;
    background: #fff;
}

.card:hover,
.card:focus-visible {
    border-color: #e2e2e2;
    text-decoration: none;
}

.card img {
    width: 100%;
    max-height: 120px;
    object-fit: contain;
    display: block;
    margin-bottom: 0.5rem;
    border: 1px solid #e5e5e5;
    background: #fafafa;
}

.card h3 {
    margin: 0 0 0.35rem;
    font-size: 1rem;
}

.card p {
    margin: 0;
    font-size: 0.9rem;
}

iframe {
    border: 0;
}

.header {
    position: relative;
    min-height: 180px;
    display: flex;
    align-items: flex-end;
    padding: 1rem;
    margin: 0 0 1rem;
    background-image: url("/img/bg/vista.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border: 1px solid #8aa2b5;
}

.header::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.15));
}

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

.header h1 {
    margin: 0;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

@media (max-width: 720px) {
    .layout {
        grid-template-columns: 1fr;
    }

    .sections {
        border-left: 0;
        padding-left: 0;
    }
}

code {
    border: 1px solid rgb(50, 50, 50);
    border-radius:5px;
    padding:2px;
}

#content pre {
    max-width: 100%;
    overflow-x: auto;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

#content pre code {
    white-space: inherit;
    overflow-wrap: inherit;
}

p{
    line-height:20px;
}