/* Gezwets, restored from the 2001–2002 PHP layout.
   The historical colours and graphics remain; text and controls adapt to mobile. */
:root {
  color-scheme: light;
  --page-bg: #798590;
  --shell-bg: #798590;
  --panel-bg: #697580;
  --article-bg: #a3acb3;
  --ink: #101b26;
  --muted: #101b26;
  --accent: #101b26;
  --accent-hover: #060d15;
  --heading-bg: #2f3f5f;
  --rule: #536477;
  --shell-width: 980px;
  --font: Verdana, Geneva, Arial, Helvetica, sans-serif;
}
* { box-sizing: border-box; }
html { min-height: 100%; scroll-padding-top: 14px; }
body { margin: 0; padding: 0 10px 30px; background: var(--page-bg); color: var(--ink); font: 12px/1.65 var(--font); }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); text-decoration: underline; }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
button, input { font: inherit; color: inherit; border-radius: 0; }
button, summary { cursor: pointer; }
button { padding: 3px 9px; border: 1px outset #dddddd; background: #2f3f5f; color: #fff; }
button:hover { background: #1f2f4f; }
input { min-width: 0; padding: 5px; border: 1px solid #334255; background: #eee; }
img { max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 20; top: 8px; left: 8px; transform: translateY(-150%); background: #fff; color: #222; padding: 10px 14px; }
.skip-link:focus { transform: translateY(0); }
.site-shell { width: var(--shell-width); max-width: 100%; margin: 0 auto; border: 1px solid #27374c; border-top: 0; background: var(--shell-bg); }
.archive-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 10px; background: #28364e; color: #e5e8ed; font-size: 10px; line-height: 1.4; }
.archive-mark { font-weight: bold; letter-spacing: .9px; }
.archive-mark > span { color: #bec8d7; font-weight: normal; letter-spacing: .3px; }
.brand { display: block; line-height: 0; }
.brand img { display: block; width: 100%; height: auto; }
.site-nav { display: flex; align-items: center; flex-wrap: wrap; gap: 23px; padding: 6px 17px; border-top: 1px solid #53617a; border-bottom: 1px solid #172336; background: #2f3f5f; font-size: 11px; }
.site-nav a { color: #fffce0; font-weight: bold; }
.site-nav a:hover { color: #fff; }
.site-nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 3px; }
.nav-caption { margin-left: auto; color: #c2ccda; font-size: 10px; }
.page-layout { display: grid; grid-template-columns: 180px minmax(0, 1fr); align-items: start; gap: 18px; padding: 16px 14px 20px 10px; }
main { min-width: 0; }
main:focus, [tabindex="-1"]:focus { outline: none; }
.page-intro { margin-bottom: 12px; padding: 0 2px; }
.page-heading { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 4px 10px; }
.page-heading h1 { margin: 0; font-size: 14px; }
.intro-caption { font-size: 10px; color: var(--muted); }
.result-count { margin: 3px 0 0; color: var(--muted); font-size: 10px; }
.clear-filters, .back-link { font-size: 11px; }
.sidebar { min-width: 0; }
.side-panel { border: 1px solid #425066; background: var(--panel-bg); margin-bottom: 12px; }
.side-panel > h2 { margin: 0; padding: 3px 7px; border-bottom: 1px solid #25324a; background: var(--heading-bg); color: #eee; font-size: 11px; line-height: 1.7; }
.panel-copy { padding: 7px; color: #fff; font-size: 11px; line-height: 1.65; }
.panel-copy p { margin-bottom: 9px; }
.panel-copy p:last-child { margin-bottom: 0; }
.archive-note { font-size: 10px; }
.search-panel form { display: flex; flex-wrap: wrap; gap: 5px; padding: 7px; }
.search-panel input { width: 100%; font-size: 11px; }
.search-panel button { font-size: 10px; padding: 2px 8px; }
.archive-links { padding: 3px 7px 6px; font-size: 11px; }
.archive-links summary { padding: 4px 0; color: #fffce0; font-weight: bold; }
.archive-links summary span { float: right; color: #fff; font-size: 10px; font-weight: normal; }
.archive-links details > a { display: flex; justify-content: space-between; gap: 4px; padding: 2px 0 2px 10px; color: #fffce0; }
.archive-links details > a span { color: #fff; font-size: 10px; }
.archive-links .whole-year { padding-bottom: 3px; font-size: 10px; }
.archive-links a[aria-current="true"] { color: #fff; font-weight: bold; }
.recent-comments { padding: 0 7px; }
.recent-comment { display: block; padding: 8px 0; border-bottom: 1px dotted #a2aeb8; color: #fffce0; font-size: 11px; line-height: 1.5; overflow-wrap: anywhere; }
.recent-comment:last-child { border-bottom: 0; }
.recent-comment strong, .recent-comment span, .recent-comment time { display: block; }
.recent-comment span { color: #fff; }
.recent-comment time { margin-top: 2px; color: #edf0f3; font-size: 9px; }
.archive-stats { padding: 7px; margin: 0; color: #fff; font-size: 11px; }
.archive-stats > div { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 3px; }
.archive-stats dd { margin: 0; font-weight: bold; }
.archive-stats .stats-period { margin-top: 5px; padding-top: 4px; border-top: 1px dotted #a2aeb8; }
.stats-period dd { font-weight: normal; }
.muted { display: block; padding: 4px; color: inherit; }
.post { overflow: hidden; margin-bottom: 18px; border: 1px solid #40516b; background: var(--article-bg); }
.post-title { margin: 0; padding: 5px 9px; background: var(--heading-bg); font-size: 13px; line-height: 1.5; }
.post-title a { color: #fff; font-weight: bold; }
.post-title a:hover { color: #fffce0; }
.post-meta { display: flex; flex-wrap: wrap; gap: 2px 12px; border-bottom: 1px solid #6c7d8e; padding: 5px 9px; background: #8d9aa5; color: #1d3046; font-size: 10px; }
.post-category { margin-left: auto; }
.post-body { padding: 13px 12px 9px; line-height: 1.75; overflow-wrap: anywhere; }
.legacy-content p { margin-bottom: 11px; }
.legacy-content img { height: auto; max-width: 100%; vertical-align: middle; }
.legacy-content img[align="left"] { float: left; margin: 3px 10px 6px 0; }
.legacy-content img[align="right"] { float: right; margin: 3px 0 6px 10px; }
.legacy-content::after { display: table; content: ''; clear: both; }
.legacy-content blockquote { margin: 12px 0; padding: 4px 12px; border-left: 3px solid #62758a; }
.legacy-content a { text-decoration: underline; text-underline-offset: 2px; }
.legacy-content ul, .legacy-content ol { padding-left: 22px; }
.legacy-content table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; }
.legacy-content td, .legacy-content th { padding: 3px 5px; vertical-align: top; }
.legacy-content pre { max-width: 100%; overflow: auto; padding: 8px; background: #d2d8dc; }
.legacy-content h1, .legacy-content h2, .legacy-content h3, .legacy-content h4 { margin: 12px 0 6px; color: inherit; font: bold 1.1em/1.5 var(--font); }
.legacy-content font { font-family: inherit; }
.image-unavailable, .missing-image, .image-placeholder { display: inline-block; min-width: 120px; max-width: 100%; height: auto; padding: 10px; border: 1px dashed #66778a; background: #c9d0d6; color: #26384a; font-size: 11px; }
.post-footer { display: flex; justify-content: space-between; gap: 8px; clear: both; margin-top: 2px; padding: 5px 9px; border-top: 1px dotted #697b8c; background: #8f9ca7; font-size: 10px; }
.post-footer a:first-child { font-weight: bold; }
.permalink { color: var(--muted); }
.message-box { margin-bottom: 16px; padding: 22px 16px; border: 1px solid var(--rule); background: var(--article-bg); }
.message-box h1, .message-box h2 { margin-bottom: 10px; font-size: 16px; }
.loading-message { color: var(--muted); }
.pagination { clear: both; padding: 2px 2px 12px; }
.pagination-steps { display: grid; grid-template-columns: 1fr auto 1fr; gap: 7px; align-items: center; font-size: 11px; }
.page-next { text-align: right; }
.page-numbers { display: flex; align-items: center; gap: 3px; }
.page-numbers a, .current-page, .pagination-gap { padding: 3px 6px; }
.page-numbers a { border: 1px solid #647689; background: #a3acb3; }
.current-page { border: 1px solid var(--heading-bg); background: var(--heading-bg); color: #fff; font-weight: bold; }
.comments { margin-top: 24px; }
.comments > h2 { margin: 0; padding: 0 2px 7px; border-bottom: 1px solid var(--rule); font-size: 14px; }
.comment-list { list-style: none; margin: 0; padding: 0; }
.comment { scroll-margin-top: 15px; margin: 12px 0; padding: 10px; border: 1px solid #637487; background: var(--article-bg); }
.comment:target, .comment.anchor-target { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.comment.is-reply { margin-left: 14px; border-left: 3px solid #637487; }
.comment-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.comment-heading h3 { margin: 0; font-size: 12px; }
.comment-permalink { color: var(--muted); font-size: 10px; }
.comment > time { display: block; margin-bottom: 8px; color: var(--muted); font-size: 10px; }
.comment-body { line-height: 1.75; overflow-wrap: anywhere; }
.comment-body > :last-child { margin-bottom: 0; }
.reply-reference { display: block; margin-bottom: 7px; font-size: 10px; }
.comment-closed, .no-comments, .recovery-note { padding: 9px 2px; color: var(--muted); font-size: 11px; }
.comment-closed { margin: 8px 0 18px; border-top: 1px dotted var(--rule); }
.post-neighbours { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding-top: 9px; border-top: 1px solid var(--rule); }
.post-neighbours a { overflow-wrap: anywhere; }
.post-neighbours span { display: block; margin-bottom: 4px; color: var(--muted); font-size: 10px; }
.newer-post { text-align: right; }
.site-footer { display: flex; justify-content: space-between; gap: 12px; padding: 8px 10px; border-top: 1px solid #425066; background: #697580; color: #fff; font-size: 10px; }
.site-footer a { color: #fffce0; }
.noscript-message { max-width: var(--shell-width); margin: 15px auto; padding: 15px; background: #fff; color: #222; }

@media (max-width: 720px) {
  body { padding: 0 0 20px; font-size: 14px; }
  .site-shell { border-left: 0; border-right: 0; border-top: 0; }
  .archive-toolbar { gap: 7px; padding: 8px; }
  .archive-mark > span { display: none; }
  .site-nav { gap: 22px; padding: 7px 12px; }
  .site-nav a { padding: 4px 0; font-size: 12px; }
  .nav-caption { display: none; }
  .page-layout { grid-template-columns: minmax(0, 1fr); gap: 22px; padding: 14px 12px 20px; }
  main { grid-column: 1; grid-row: 1; }
  .sidebar { display: grid; grid-column: 1; grid-row: 2; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
  .search-panel, .about-panel { grid-column: 1 / -1; }
  .side-panel { margin-bottom: 0; }
  .side-panel > h2 { padding: 5px 7px; font-size: 12px; }
  .search-panel form { flex-wrap: nowrap; }
  .search-panel input { width: 100%; font-size: 16px; }
  .search-panel button { font-size: 12px; padding: 4px 10px; }
  .archive-links, .panel-copy, .recent-comment, .archive-stats { font-size: 12px; }
  .archive-links summary { padding: 6px 0; }
  .archive-links details > a { padding-top: 5px; padding-bottom: 5px; }
  .recent-comment time { font-size: 10px; }
  .archive-note { font-size: 11px; }
  .page-heading h1 { font-size: 16px; }
  .result-count { font-size: 11px; }
  .intro-caption { display: none; }
  .clear-filters, .back-link { font-size: 12px; }
  .post-title { padding: 7px 10px; font-size: 16px; }
  .post-meta { padding: 6px 10px; font-size: 11px; }
  .post-body { padding: 13px 11px 9px; font-size: 14px; line-height: 1.75; }
  .post-footer { padding: 7px 10px; font-size: 11px; }
  .pagination-steps { font-size: 12px; }
  .page-numbers a, .current-page, .pagination-gap { padding: 5px 7px; }
  .comment-body { font-size: 14px; }
  .comment-heading h3 { font-size: 13px; }
  .comment > time { font-size: 11px; }
  .comment-closed, .no-comments, .recovery-note { font-size: 12px; }
  .comments > h2 { font-size: 16px; }
  .comment.is-reply { margin-left: 9px; }
  .post-neighbours { font-size: 12px; }
  .site-footer { font-size: 10px; padding: 10px 12px; }
}
@media (max-width: 460px) {
  .pagination-steps { grid-template-columns: 1fr 1fr; gap: 12px; }
  .page-numbers { grid-column: 1 / -1; grid-row: 1; justify-content: center; }
  .page-prev { grid-column: 1; grid-row: 2; }
  .page-next { grid-column: 2; grid-row: 2; }
}
@media (max-width: 360px) {
  .archive-toolbar { align-items: flex-start; flex-direction: column; gap: 5px; }
  .sidebar { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; } }
@media print {
  body { padding: 0; background: #fff; color: #000; }
  .site-shell { width: 100%; border: 0; background: #fff; }
  .archive-toolbar, .site-nav, .sidebar, .pagination, .site-footer, .post-footer { display: none !important; }
  .brand { margin-bottom: 20px; }
  .page-layout { display: block !important; padding: 0 !important; }
  main { padding: 0 !important; border: 0 !important; background: #fff !important; }
  .post, .comment { break-inside: avoid; border: 0; background: #fff; }
  .post-title, .post-meta, .comment-heading { background: none !important; color: #000 !important; }
  .post-title a, .comment-heading a { color: #000 !important; }
}
