body {
    --site-width: 76rem;
    --gutter: clamp(1rem, 3vw, 2rem);
    --panel-bg: #f5f5f5;
    --panel-border: #dedfe1;
    --panel-accent: #41464b;
    --panel-ink: #30353a;
    --panel-hover: #e8e9eb;
    color: #222;
    font-family: "Source Sans 3", system-ui, sans-serif;
    background: white;
    margin: 0;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

button,
input,
select,
textarea {
    font-family: inherit;
}

a {
    color: #171717;
    text-underline-offset: 0.12em;
}

:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

.skip-link {
    position: fixed;
    inset-block-start: 0.5rem;
    inset-inline-start: var(--gutter);
    z-index: 20;
    padding: 0.5rem 1rem;
    background: white;
    transform: translateY(calc(-100% - 1rem));
}

.skip-link:focus {
    transform: none;
}

.site-header h1,
.menu,
.site-layout,
#footer {
    box-sizing: border-box;
    max-inline-size: var(--site-width);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.site-header h1 {
    margin-block: 0;
    padding-block: 0.65rem;
    font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.25rem);
    line-height: 1.2;
}

.site-header nav {
    background: #ccc;
    border-block: 1px solid #999;
}

.menu,
#footer,
.pages,
.metainfo,
.gallery .images {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
}

.menu {
    margin-block: 0;
    column-gap: 0.25rem;
}

.menu a {
    display: block;
    padding: 0.65rem 0.75rem;
    font-weight: bold;
    text-decoration: none;
}

.menu a:hover,
.menu a:focus-visible {
    background: #eee;
}

@media (width < 36rem) {
    .menu {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        column-gap: 0;
    }

    .menu a {
        padding-inline: 0.25rem;
        font-size: 0.9375rem;
        text-align: center;
    }
}

.site-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(1.25rem, 3vw, 2.5rem);
    padding-block: 1.25rem 2rem;
    align-items: start;
}

.content {
    display: flow-root;
    min-inline-size: 0;
}

.content > :first-child {
    margin-block-start: 0;
}

h2,
h3 {
    clear: both;
    border-block-end: 1px dotted #444;
    padding-block-end: 0.15em;
    line-height: 1.25;
}

h2 a,
h3 a {
    text-decoration: none;
}

h2 a:hover,
h3 a:hover,
h2 a:focus-visible,
h3 a:focus-visible {
    text-decoration: underline;
}

.sidebar {
    min-inline-size: 0;
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
    align-items: start;
}

.sidebox,
.follow-profile {
    min-inline-size: 0;
    border: 1px solid var(--panel-border);
    border-radius: 0.875rem;
    background: var(--panel-bg);
    color: var(--panel-ink);
}

.sidebox,
.sidebar .follow-profile {
    border-inline-start: 4px solid var(--panel-accent);
}

.sidebox {
    padding: 0.875rem;
    font-size: 0.9375rem;
}

.boxtitle {
    margin-block-end: 0.5rem;
    font-size: 1rem;
    font-weight: 650;
    line-height: 1.3;
}

.boxcontent ul {
    margin-block: 0.25rem 0;
    padding-inline-start: 1.25em;
}

.boxcontent li + li {
    margin-block-start: 0.2em;
}

.boxcontent > :first-child {
    margin-block-start: 0;
}

.boxcontent > :last-child {
    margin-block-end: 0;
}

.contact-profiles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
    gap: 1rem;
    margin-block-start: 1.75rem;
}

.follow-profile {
    container-type: inline-size;
}

.contact-profiles .follow-profile {
    padding: clamp(1rem, 3vw, 1.375rem);
    border-block-start: 4px solid var(--panel-accent);
}

.sidebar .follow-profile {
    padding: 0.875rem;
}

.follow-profile-weblate {
    /* Colors from Weblate's default light theme. */
    --panel-bg: #f9f9f9;
    --panel-border: #e9eaec;
    --panel-accent: #107a62;
    --panel-ink: #2a3744;
    --panel-hover: #e9eaec;
    --follow-icon-color: var(--panel-accent);
    --profile-link: #107a62;
    --profile-link-hover: #144d3f;
}

.follow-profile h2 {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 1.25rem;
}

.follow-profile h2 a {
    color: var(--profile-link, inherit);
    text-decoration: underline;
}

.follow-profile h2 a:hover,
.follow-profile h2 a:focus-visible {
    color: var(--profile-link-hover, inherit);
}

.follow-profile ul {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.375rem;
    margin: 1rem 0 0;
    padding: 0;
    list-style: none;
}

.sidebar .follow-profile h2 {
    font-size: 1rem;
}

.follow-profile li a {
    box-sizing: border-box;
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 0.4rem;
    min-block-size: 4.65rem;
    block-size: 100%;
    padding: 0.55rem 0.2rem;
    border: 1px solid var(--panel-border);
    border-radius: 0.6rem;
    background: #fff;
    color: var(--profile-link, inherit);
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
}

.sidebar .follow-profile li a {
    min-block-size: 3.75rem;
}

.follow-icon {
    inline-size: 1.5rem;
    block-size: 1.5rem;
    background-color: var(--follow-icon-color, #000);
    mask: var(--follow-icon) center / contain no-repeat;
}

@media (forced-colors: active) {
    .follow-icon {
        forced-color-adjust: none;
        background-color: LinkText;
    }
}

.follow-profile li a:hover,
.follow-profile li a:focus-visible {
    background: var(--panel-hover);
    color: var(--profile-link-hover, inherit);
    text-decoration: underline;
}

@container (width < 14rem) {
    .sidebar .follow-profile ul {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@container (min-width: 23.5rem) {
    .follow-profile ul {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }

    .follow-profile li a {
        padding-inline: 0.1rem;
    }

    .follow-profile li a span {
        white-space: nowrap;
    }
}

body > footer {
    border-block-start: 1px solid #ccc;
}

#footer {
    margin-block: 0;
    padding-block: 0.5rem;
    gap: 0 1.25rem;
    color: #555;
    font-size: smaller;
}

#footer li {
    padding-block: 0.4rem;
}

#footer a {
    color: #333;
}

@media (min-width: 56rem) {
    .site-layout {
        grid-template-columns: minmax(0, 1fr) 15rem;
    }

    .sidebar {
        grid-template-columns: minmax(0, 1fr);
    }
}

.pages {
    gap: 0.375rem;
    margin: 1rem 0;
    padding: 0;
}

.pages a,
.pages .disabled span {
    display: grid;
    place-items: center;
    box-sizing: border-box;
    min-inline-size: 2.5rem;
    min-block-size: 2.5rem;
    padding: 0.2rem 0.4rem;
    border: 1px solid #bbb;
    background: #eee;
}

.pages .active a {
    background: #fbb400;
    font-weight: bold;
}

.pages a:hover {
    background: #eef;
}

.metainfo {
    align-items: center;
    gap: 0.25rem 0.75rem;
    font-size: smaller;
    padding: 0;
}

.metainfo li {
    max-inline-size: 100%;
}

.share-links {
    display: inline-flex;
    flex-wrap: wrap;
    vertical-align: middle;
    gap: 2px;
}

.share-links a {
    display: grid;
    place-items: center;
    min-inline-size: 2rem;
    min-block-size: 2rem;
    border-radius: 3px;
}

.share-links a:hover {
    background: #eee;
}

.content img,
.sidebar img,
.content video {
    max-inline-size: 100%;
    block-size: auto;
}

.share-links img {
    inline-size: 1rem;
    block-size: 1rem;
    object-fit: contain;
}

.content iframe,
.content input,
.content select,
.content textarea {
    box-sizing: border-box;
    max-inline-size: 100%;
}

pre,
.table-scroll,
[itemprop="articleBody"] table {
    max-inline-size: 100%;
    overflow-x: auto;
}

pre {
    margin: 1em 0;
    padding: 0.75em;
    border: 1px solid #aaa;
    background: #eee;
}

.table-scroll table,
[itemprop="articleBody"] table {
    overflow-wrap: normal;
}

[itemprop="articleBody"] table {
    display: block;
}

blockquote {
    margin-inline: 0;
    border-inline-start: 0.35em solid #ccc;
    padding-inline: 0.75em;
    background: #f5f5f5;
}

.gallery .images {
    justify-content: center;
    gap: 1rem;
    padding: 0;
}

.gallery .image {
    min-inline-size: 0;
}

.gallery .image-title,
.gallery .image-description,
.gallery .image-author,
.gallery .image-link {
    display: none;
}

.gallery .image a,
.boxshot a,
a.smallshot {
    display: inline-block;
    box-sizing: border-box;
    max-inline-size: 100%;
    padding: 3px;
    line-height: 0;
    background: white;
    border-radius: 4px;
    box-shadow: 0 0 8px #aaa;
}

.gallery .image a:hover,
.boxshot a:hover,
a.smallshot:hover {
    box-shadow: 0 0 8px #444;
}

.boxshot,
.adbard {
    text-align: center;
}

@media (min-width: 36rem) {
    a.smallshot {
        float: right;
        max-inline-size: 40%;
        margin: 0 0 1rem 1rem;
    }
}

.blogdate,
.sponsors {
    font-size: smaller;
}

tr.error {
    background-color: #ffffcc;
}

p.notice {
    margin-block: 0.75rem 1rem;
    padding: 0.75rem 1rem;
    border: 1px solid #e8d7ad;
    border-inline-start: 0.3rem solid #a86513;
    border-radius: 0.375rem;
    background: #fff8e8;
    color: #382814;
}

p.notice a {
    color: #67420e;
    font-weight: 600;
}

p.success,p.warning,p.error{margin: 0.3em 0 0 0;border: 2px solid;width: 90%;padding: 0.3em;}
p.success{color: #000000;background-color: #f0fff0;border-color: #00FF00;}
p.warning{color: #CC0000;background-color: #FFFFCC;border-color: #CC0000;}
p.error{background-color: #FFFFCC;color: #ff0000;border-color: #ff0000;}
div.comment img {display: block; float: right; }
div.clearer {clear: both; }
