/* Shared base for every theme (prepended to the theme CSS by prebuild.ts). Theme rules override it. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; overflow-wrap: break-word; }
img, picture, video, svg { max-width: 100%; }
img { height: auto; }
a { color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip { position: absolute; inset-inline-start: 8px; top: -60px; z-index: 100; background: #fff; color: #000; padding: 8px 12px; }
.skip:focus { top: 8px; }

/* post / page body (the exporter's sanitised WordPress HTML) */
.entry-body { overflow-wrap: anywhere; }
.entry-body > *:first-child { margin-top: 0; }
.entry-body p, .entry-body li, .entry-body blockquote, .entry-body h1, .entry-body h2, .entry-body h3, .entry-body h4, .entry-body h5, .entry-body h6, .entry-body figcaption { unicode-bidi: plaintext; text-align: start; }
.entry-body .text-center { text-align: center; }
.entry-body h1 { font-size: 1.6em; } .entry-body h2 { font-size: 1.4em; } .entry-body h3 { font-size: 1.2em; }
.entry-body h4, .entry-body h5, .entry-body h6 { font-size: 1.05em; }
.entry-body img { height: auto; max-width: 100%; }
.entry-body figure { margin: 1.5em 0; max-width: 100%; }
.entry-body figcaption, .entry-body .wp-caption-text { font-size: .85em; opacity: .75; margin-top: .4em; }
.entry-body .aligncenter { display: block; margin-inline: auto; text-align: center; }
.entry-body .alignleft { float: left; margin: 0 1em .5em 0; max-width: 50%; }
.entry-body .alignright { float: right; margin: 0 0 .5em 1em; max-width: 50%; }
.entry-body .alignnone { margin-block: .5em; }
@media (max-width: 600px) { .entry-body .alignleft, .entry-body .alignright { float: none; margin: .5em auto; max-width: 100%; } }
.entry-body iframe, .entry-body video, .entry-body embed, .entry-body object { max-width: 100%; }
.entry-body .embed-responsive { position: relative; aspect-ratio: 16 / 9; }
.entry-body .embed-responsive iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.entry-body table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; }
.entry-body td, .entry-body th { border: 1px solid currentColor; padding: .3em .6em; }
.entry-body pre { overflow-x: auto; max-width: 100%; }
.entry-body hr { clear: both; }
.entry-body::after { content: ""; display: block; clear: both; }

/* pagination */
.pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 18px; margin-block: 28px; }
.pager ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.pager li { display: flex; gap: 6px; align-items: center; }
.pager a, .pager .cur { display: inline-block; min-width: 2.4em; min-height: 2.4em; padding: .4em .6em; text-align: center; line-height: 1.5; }

/* comments (read-only) */
.comments { margin-top: 36px; }
.comment-list, .comment-list ol { list-style: none; margin: 0; padding: 0; }
.comment-list .children { margin-inline-start: 18px; margin-top: 10px; }
.comment { margin-bottom: 10px; }
.comment header { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.comment .c-body { overflow-wrap: anywhere; unicode-bidi: plaintext; }
.comment .c-body > *:first-child { margin-top: .3em; }
.comment .c-body > *:last-child { margin-bottom: 0; }
.comment time { font-size: .8em; opacity: .65; }

/* glossary */
.glossary-letters { display: flex; flex-wrap: wrap; gap: 6px; margin-block: 14px 22px; }
.glossary-letters a { min-width: 2.2em; padding: .2em .5em; text-align: center; }
.glossary-group h2 { margin-bottom: .3em; }
.glossary dl { margin: 0; }
.glossary dt { font-weight: 700; margin-top: .8em; }
.glossary dd { margin: .15em 0 0; }

/* search */
.search { display: flex; gap: 6px; align-items: stretch; }
.search input { min-width: 0; flex: 1 1 auto; font: inherit; padding: .4em .6em; }
.search button { font: inherit; cursor: pointer; padding: .4em .8em; }
.search-results { list-style: none; margin: 0; padding: 0; }
.search-results li { margin-block: 1.2em; }
.search-results a { font-weight: 700; }
.search-results p { margin: .2em 0 0; }

/* 404 / maintenance / unavailable */
.status { text-align: center; padding: 12vh 20px; }
.status-code { font-size: clamp(64px, 18vw, 140px); line-height: 1; margin: 0; }

/* Theme A "Writer, refined" (old-blog.dehed.com). Reproduces design/options.template.html "old-blog.dehed A", extended to
   all page types: vertical name rail, grey ground, white image cards, monospace date line. */
.dA { background: #f2f2f0; color: #1f2023; font-family: "Heebo", sans-serif; display: grid; grid-template-columns: 64px minmax(0, 1fr); min-height: 100vh; }
.dA a { color: inherit; text-decoration: none; }
.dA img { display: block; max-width: 100%; }
.dA .rail { background: #1f2023; color: #f2f2f0; display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 22px 0; position: sticky; top: 0; height: 100vh; height: 100svh; }
.dA .rail .nm { writing-mode: vertical-rl; transform: rotate(180deg); font: 900 16px "Heebo"; letter-spacing: .25em; }
.dA .rail .yr { font: 400 11px "Space Mono", monospace; opacity: .6; writing-mode: vertical-rl; transform: rotate(180deg); direction: ltr; unicode-bidi: isolate; }
.dA .main { padding: 26px 28px; min-width: 0; }
.dA .bar { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 20px; margin-bottom: 18px; }
.dA .tl { font: 400 14px "Space Mono", monospace; color: #6b6d72; direction: ltr; text-align: left; }
.dA .bar nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font: 400 13px "Space Mono", monospace; direction: ltr; }
.dA .bar nav a:hover, .dA .ft a:hover { text-decoration: underline; text-underline-offset: 3px; }
.dA .bar-search input { font: 400 13px "Space Mono", monospace; background: #fff; border: 1px solid #c9c9c6; color: #1f2023; padding: 4px 8px; width: 11em; border-radius: 0; direction: rtl; }
.dA .bar-search button { font: 400 13px "Space Mono", monospace; background: #1f2023; color: #f2f2f0; border: 0; padding: 4px 10px; border-radius: 0; }
.dA a:focus-visible, .dA button:focus-visible, .dA input:focus-visible { outline: 2px solid #1f2023; outline-offset: 2px; }

.dA .grid, .dA .card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.dA .card { display: block; background: #fff; }
.dA .card:hover h4 { text-decoration: underline; text-underline-offset: 3px; }
.dA .card img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.dA .card .tx { padding: 14px 16px 16px; }
.dA .card h4 { font: 700 18px/1.35 "Heebo"; margin: 0 0 8px; }
.dA .card .sub { margin: 0 0 8px; font-size: 14px; color: #55575c; }
.dA .meta { font: 400 12px "Space Mono", monospace; color: #8a8c91; }
.dA .archive-head h1, .dA .search-page h1 { font: 900 40px/1.15 "Heebo"; margin: 0 0 14px; }
.dA .archive-kind { font: 400 12px "Space Mono", monospace; color: #6b6d72; margin: 0; }
.dA .empty { font: 400 14px "Space Mono", monospace; color: #6b6d72; }

.dA .post { max-width: 680px; margin: 0 auto; }
.dA .post > .meta { direction: ltr; }
.dA .post[dir="rtl"] > .meta { text-align: right; }
.dA .post h1 { font: 900 40px/1.15 "Heebo"; margin: 18px 0 10px; text-wrap: balance; }
.dA .post .entry-body p, .dA .post .entry-body li { font: 400 18px/1.85 "Heebo"; }
.dA .post .entry-body a { text-decoration: underline; text-underline-offset: 3px; }
.dA .post .entry-body blockquote { margin-inline: 0; padding-inline-start: 16px; border-inline-start: 3px solid #1f2023; color: #3b3d42; }
.dA .terms { list-style: none; margin: 26px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; font: 400 12px "Space Mono", monospace; }
.dA .terms a { display: inline-block; background: #fff; padding: 2px 10px; }
.dA .terms a:hover { background: #1f2023; color: #f2f2f0; }
.dA .comments { margin-top: 26px; border-top: 2px solid #1f2023; padding-top: 12px; }
.dA .comments h2 { font: 700 18px "Heebo"; margin: 0 0 6px; }
.dA .comment > article { padding: 10px 0; border-bottom: 1px solid #ddd; }
.dA .comment .c-author { font-weight: 700; }
.dA .comment time { font-family: "Space Mono", monospace; color: #8a8c91; }
.dA .comment .children { border-inline-start: 2px solid #ddd; padding-inline-start: 14px; }

.dA .pager { font: 400 13px "Space Mono", monospace; }
.dA .pager a, .dA .pager .cur { background: #fff; }
.dA .pager .cur { background: #1f2023; color: #f2f2f0; }
.dA .pager a:hover { background: #e4e4e1; }
.dA .search-page { max-width: 680px; margin: 0 auto; }
.dA .search-big input { background: #fff; border: 1px solid #c9c9c6; font-size: 16px; border-radius: 0; }
.dA .search-big button { background: #1f2023; color: #f2f2f0; border: 0; border-radius: 0; }
.dA .search-status { font: 400 13px "Space Mono", monospace; color: #6b6d72; }
.dA .search-results a { font-size: 19px; text-decoration: underline; text-underline-offset: 3px; }
.dA mark { background: #ffe37a; color: inherit; }
.dA .ft { margin-top: 36px; padding-top: 14px; border-top: 1px solid #ddd; font: 400 12px "Space Mono", monospace; color: #6b6d72; }
.dA .cats { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; }

.dA .status { max-width: 560px; margin: 0 auto; }
.dA .status-code { font: 400 clamp(56px, 18vw, 120px)/1 "Space Mono", monospace; color: #1f2023; }
.dA .status h1 { font: 900 34px/1.15 "Heebo"; margin: 14px 0 8px; }
.dA .status-text { font: 400 18px/1.7 "Heebo"; color: #3b3d42; }
.dA .status-home { display: inline-block; background: #1f2023; color: #f2f2f0; padding: 8px 16px; font: 400 13px "Space Mono", monospace; }

@media (max-width: 600px) {
  .dA { grid-template-columns: 44px minmax(0, 1fr); }
  .dA .rail { padding: 16px 0; }
  .dA .rail .nm { font-size: 14px; letter-spacing: .2em; }
  .dA .main { padding: 18px 14px; }
  .dA .archive-head h1, .dA .post h1, .dA .search-page h1 { font-size: 30px; }
  .dA .bar-search { width: 100%; }
  .dA .bar-search input { flex: 1; width: auto; }
}
