/* Dark mode CSS variables */
:root {
    --bg: #fff;
    --fg: #000;
    --border-color: #000;
    --link-color: #0066cc;
}

/* System preference */
@media (prefers-color-scheme: dark) {
    body.theme-system {
        --bg: #1a1a1a;
        --fg: #e0e0e0;
        --border-color: #444;
        --link-color: #66b3ff;
    }
}

/* Forced dark mode */
body.theme-dark {
    --bg: #1a1a1a;
    --fg: #e0e0e0;
    --border-color: #444;
    --link-color: #66b3ff;
}

/* Forced light mode */
body.theme-light {
    --bg: #fff;
    --fg: #000;
    --border-color: #000;
    --link-color: #0066cc;
}

body {
    background-color: var(--bg);
    color: var(--fg);
}

a {
    color: var(--link-color);
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    padding: 8px;
    text-decoration: none;
    z-index: 100;
    background-color: black;
    color: white;
    z-index: 10;
    opacity: 0;
}

.skip-link:focus {
    top: 0;
    opacity: 1;
}


.default-font-size {
    font-size: 1rem;
}

header.paperboat-bar {
    width: 100%;
    margin-top: 0;
    margin-bottom: 0;
    padding: 4px 4px;
    border-bottom: 2px solid var(--border-color);
}

header.paperboat-bar ul {
    margin: 0;
}


header.paperboat-bar li,
button {
    margin-bottom: 0;
}

header.paperboat-bar li {
    padding: 0.2em 0em;
}

header.paperboat-bar {
    margin: 0;
    padding: 8px 4px;
    max-width: 100%;
}

.paperboat-bar nav {
    margin: 0;
}

article.distinct {
    border-left: 2px solid var(--border-color);
    padding-left: 1em;
    margin-bottom: 2em;
}

span.links a:not(:last-child) {
    margin-right: 0.5em;
}

.site-name a {
    font-size: 1.3em;
    text-decoration: none;
    color: var(--fg);
}


.paperboat-bar nav a {
    color: var(--fg);
    text-decoration: none;
}

.paperboat-bar nav a:hover {
    /* color: var(--fg); */
    text-decoration: underline;
    text-decoration-style: wavy;
    text-decoration-thickness: initial;

}

.paperboat-bar nav a.active {
    font-weight: bold;
    text-decoration-style: wavy;

}

nav a.active {
    font-weight: bold;
}

a.paperboat {
    text-decoration: none;
}


main.container {
    padding-top: 1em;
}

nav ul li:first-child {
    margin-left: 0px;
}

a:hover {
    text-decoration-thickness: .1rem;

}

p {
    line-height: 1.4;
}

.paperboat-bar img {
    vertical-align: middle;
}

.theme-dark mark {
    background-color: transparent;
    outline: 2px solid #f7ff589e;
    outline-offset: 4px;
}

.theme-dark mark * {
    
    text-decoration: none;
}

textarea {
    field-sizing: content;
    min-width: 100%;
    max-width: 100%;
    height: 400px;
    min-height: 50px;
}

.fullheight {
    min-height: 100vh;
}

.halfheight {
    min-height: 50vh;
}


form label {
    margin-bottom: 2rem;
}

.warning {
  border-left: 4px solid yellow;
  background-color: ivory;
  padding-top: .5em;
  padding-left: 1em;
  padding-bottom: .5em;
}

/* Inline code styling */
code {
    background-color: rgba(128, 128, 128, 0.15);
    padding: 0.1em 0.3em;
    border-radius: 3px;
    font-size: 0.9em;
}

/* Reset for code inside pre (block code) - let concrete.css handle it */
pre code {
    background-color: transparent;
    padding: 0;
    border-radius: 0;
    font-size: 0.8rem;
}