/* linuxhacker.ru static archive — shared by the blog (/d) and the gallery (/myphotos).
   Reproduces the look the site had under Drupal 6: the "Pushbutton" core theme
   (colours, fonts and images are taken from its style.css; images are in theme/).
   The original was a fixed table layout; this is the same look on a flexible layout. */
:root {
  --blue: #369; --blue-2: #69c; --orange: #ff8c00; --orange-hot: #ff4500; --visited: #c96;
  --cream: #fffaf0; --line: #f5f5f5; --grey: #999; --head-bg: #e0edfb;
  --sans: Verdana, Helvetica, Arial, sans-serif;
  --head: "Trebuchet MS", Geneva, Arial, Helvetica, SunSans-Regular, Verdana, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; padding: 0; color: #000; background: #fff; font: 16px/1.4 var(--sans); }
h1, h2, h3, h4, h5, h6 { font-family: var(--head); margin: 0; }
a:link { text-decoration: none; font-weight: bold; color: var(--orange); }
a:visited { text-decoration: none; font-weight: bold; color: var(--visited); }
a:hover, a:active { font-weight: bold; color: var(--orange-hot); text-decoration: underline; }
img { max-width: 100%; height: auto; border: 0; }
p { margin: 0 0 1.3em; padding: 0; }

.archive-note { background: #fff4d6; color: #5c4400; border-bottom: 1px solid #ecd9a0; padding: 6px 16px;
  font-size: 12px; text-align: center; }

/* ---- header: logo, site name, main menu ---- */
.site-header { background: var(--head-bg) url(theme/header-a.jpg) left bottom repeat-x; border-bottom: 3px solid var(--blue-2); }
.site-header .wrap { display: flex; align-items: stretch; min-height: 63px; }
.site-header .logo { flex: 0 0 144px; width: 144px; min-height: 63px; display: block;
  background: url(theme/logo-background.jpg) left top repeat; }
.site-header .logo span { display: block; width: 144px; height: 63px; background: url(theme/logo-active.jpg) no-repeat; }
.site-header .logo:hover span { background-image: url(theme/logo-hover.jpg); }
.site-name { flex: 0 0 auto; display: flex; align-items: center; padding: 0 28px 0 0; font: bold 1.2em var(--head);
  background: #bdd3ea url(theme/header-c.png); }
a.site-name:link, a.site-name:visited { color: #fff; }
a.site-name:hover { color: var(--orange); text-decoration: none; }
.main-nav { flex: 1 1 auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; align-content: center;
  padding: 8px 10px; font-size: 0.79em; background: transparent url(theme/header-b.jpg) left top no-repeat; }
.main-nav a { padding: 0 9px; border-left: 1px solid #fff; line-height: 1.2; margin: 3px 0; }
.main-nav a:first-child { border-left: 0; }
.main-nav a:link, .main-nav a:visited { color: var(--blue); }
.main-nav a:hover, .main-nav a.active { color: #000; }

/* ---- layout: cream sidebar on the left, content on the right ---- */
.wrap { margin: 0; padding: 0; }
.layout { display: flex; align-items: stretch; }
.layout > main { order: 2; flex: 1 1 auto; min-width: 0; padding: 30px 35px 50px;
  background: transparent url(theme/background.png) center 220px no-repeat; }
.layout > .sidebar { order: 1; flex: 0 0 198px; width: 198px; font-size: 0.75em; padding: 25px 10px 75px;
  background: var(--cream); border-right: 3px solid var(--line); }
.layout.no-sidebar > main { padding-left: 35px; }
@media (max-width: 760px) {
  .layout { display: block; }
  .layout > main { padding: 18px 12px 30px; background-image: none; }
  .layout > .sidebar { width: auto; border-right: 0; border-top: 3px solid var(--line); padding: 20px 14px 30px; font-size: 0.85em; }
  .site-header .wrap { flex-wrap: wrap; }
  .main-nav { flex-basis: 100%; justify-content: flex-start; background-image: none; }
}

/* ---- sidebar blocks ---- */
.sidebar .block { padding-bottom: 0.75em; margin-bottom: 20px; }
.sidebar h2 { font-size: 1.5em; color: var(--blue); border-bottom: 2px solid var(--blue-2); margin-bottom: 0.75em;
  padding: 3px 0 9px 30px; min-height: 30px; background: url(theme/icon-block.png) left 2px no-repeat; }
.sidebar ul { margin: 0; padding: 0 0 0 20px; }
.sidebar li { padding: 1px 0; }
.sidebar ul.menu { list-style: circle; }
.count { color: var(--grey); font-weight: normal; }
.lang-switch strong { color: var(--blue); }
.search-form { display: flex; gap: 4px; flex-wrap: wrap; }
.search-form input { flex: 1; min-width: 0; padding: 2px 4px; font: inherit; border: 1px solid var(--blue); background: #fff; }
.search-form button { padding: 2px 8px; font: inherit; border: 1px solid var(--blue); background: #eef4fb; color: var(--blue); cursor: pointer; }
.search-form button:hover { background: var(--blue); color: #fff; }

/* ---- nodes ---- */
.page-title { color: var(--blue); font-size: 1.6em; line-height: 1.2; margin: 0 0 2px; }
.node { margin: 0.5em 0 2.5em; }
.node h2.title { font-size: 1.6em; line-height: 1.2; }
.node h2.title a:link, .node h2.title a:visited { color: var(--blue); }
.node h2.title a:hover { color: var(--orange-hot); }
.submitted { color: var(--grey); font-size: 0.79em; margin: 0 0 0.9em; }
.submitted a:link, .submitted a:visited { color: var(--grey); font-weight: normal; }
.terms { font-size: 0.85em; margin: 0 0 1.4em; padding: 0 0 0 2em; display: flex; flex-wrap: wrap; row-gap: 3px; }
.terms a { padding: 0 9px; border-left: 1px solid var(--orange); line-height: 1.1; }
.terms a:first-child { border-left: 0; padding-left: 0; }
.content { font-size: 0.85em; line-height: 1.4; overflow-wrap: break-word; }
.content::after { content: ""; display: block; clear: both; }
.content img { vertical-align: middle; }
.content img.smiley { vertical-align: text-bottom; }
.content h1 { color: var(--blue); font-size: 1.9em; }
.content h2 { color: #58b; font-size: 1.7em; }
.content h3 { color: var(--blue-2); font-size: 1.5em; }
.content h4 { color: #8be; font-size: 1.3em; }
.content blockquote { border-left: 4px solid var(--blue-2); padding: 0 15px; margin: 25px 60px 25px 50px; color: #696969;
  font: 1.2em/1.3 var(--head); overflow-x: auto; }
.content pre, .content code { font-family: ui-monospace, Menlo, Consolas, monospace; }
.content pre { background: #eee; padding: 0.75em 1.5em; border: 1px solid #ddd; overflow-x: auto; }
.content table { border-collapse: collapse; max-width: 100%; display: block; overflow-x: auto; }
.content td, .content th { padding: 0.3em; vertical-align: top; }
@media (max-width: 760px) { .content blockquote { margin: 15px 0 15px 8px; } }
.video { position: relative; aspect-ratio: 16 / 9; max-width: 640px; margin: 1em 0; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.dead-embed { color: var(--grey); }
.links { font-size: 0.75em; margin: 1.2em 0 0; color: var(--orange); display: flex; flex-wrap: wrap; row-gap: 3px; }
.links::before { content: "»"; margin-right: 9px; }
.links a { padding: 0 9px; border-left: 1px solid var(--orange); line-height: 1.1; }
.links a:first-child { border-left: 0; padding-left: 0; }
.links .more { font-size: 1.15em; }

.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 10px; margin: 2em 0 0; font-size: 0.85em; }
.pager .current { font-weight: bold; color: #000; }
.pager .gap { color: var(--grey); }

/* ---- comments ---- */
.comments { margin-top: 2.5em; }
.comments > h2 { font-size: 1.3em; color: var(--blue); border-bottom: 2px solid var(--blue-2); padding-bottom: 4px; margin-bottom: 1em; }
.comment { margin: 0 0 1.4em; padding: 0 0 0 10px; border-left: 3px solid var(--line); }
.comment.by-author { border-left-color: var(--blue-2); }
.comment-meta { margin: 0 0 4px; font-size: 0.79em; color: var(--grey); }
.comment-meta .who { font-weight: bold; color: var(--blue); }
.comment-meta a:link, .comment-meta a:visited { color: var(--grey); font-weight: normal; }
.comment-subject { font-size: 1em; color: var(--blue); margin: 0 0 4px; }
.comment.depth-1 { margin-left: 25px; } .comment.depth-2 { margin-left: 50px; } .comment.depth-3 { margin-left: 75px; }
.comment.depth-4 { margin-left: 100px; } .comment.depth-5 { margin-left: 125px; } .comment.depth-6 { margin-left: 150px; }
@media (max-width: 760px) {
  .comment.depth-1 { margin-left: 10px; } .comment.depth-2 { margin-left: 20px; } .comment.depth-3 { margin-left: 30px; }
  .comment.depth-4, .comment.depth-5, .comment.depth-6 { margin-left: 40px; }
}
.closed-note { color: var(--grey); font-size: 0.75em; font-style: italic; margin-top: 2em; }

/* ---- archive / tags / search pages ---- */
main > h2 { color: #58b; font-size: 1.3em; margin: 1.2em 0 0.4em; }
.archive-list { list-style: none; padding: 0; margin: 0; font-size: 0.85em; }
.archive-list li { padding: 1px 0; }
.archive-list time { color: var(--grey); font-size: 0.9em; font-variant-numeric: tabular-nums; margin-right: 8px; }
.tag-cloud { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 3px 16px; font-size: 0.85em; }
main > .search-form { max-width: 520px; margin: 0.8em 0; font-size: 0.9em; }
main > .search-form input { padding: 4px 6px; }
main > .search-form button { padding: 4px 12px; }
.search-status { color: var(--grey); font-size: 0.85em; }
.search-results { padding-left: 1.6em; font-size: 0.85em; }
.search-results li { margin-bottom: 1em; }
.search-results .hit-title { font-size: 1.15em; }
.search-results .hit-meta { color: var(--grey); font-size: 0.9em; }
.search-results .snippet { margin: 2px 0 0; }
.search-results mark { background: #fff4d6; color: inherit; padding: 0 1px; }

/* ---- footer: menu band + note ---- */
.footer-menu { border-top: 3px solid var(--blue-2); border-bottom: 3px solid var(--blue-2); background: var(--blue); padding: 5px;
  font-size: 0.75em; text-align: center; display: flex; flex-wrap: wrap; justify-content: center; }
.footer-menu a { padding: 0 9px; border-left: 1px solid #fff; line-height: 1.2; margin: 2px 0; }
.footer-menu a:first-child { border-left: 0; }
.footer-menu a:link, .footer-menu a:visited { color: #e4e9eb; }
.footer-menu a:hover { color: #fff; text-decoration: underline; }
.site-footer { padding: 15px 20px 30px; font-size: 0.85em; text-align: center; color: #aaa; }

/* ---- gallery ---- */
.crumbs { font-size: 0.79em; color: var(--grey); margin: 0 0 0.6em; }
.album-desc { color: #696969; font-size: 0.85em; margin: 0.4em 0 1.2em; max-width: 800px; }
.album-desc p { margin: 0 0 0.5em; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 12px; margin: 0 0 30px; padding: 0; list-style: none; }
@media (max-width: 500px) { .grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; } }
.card { background: #fff; border: 1px solid #dfe8f3; padding: 8px; text-align: center; font-size: 0.72em; line-height: 1.35; }
.card a { display: block; }
.card a:link, .card a:visited { color: var(--blue); font-weight: normal; }
.card a:hover { color: var(--orange-hot); text-decoration: none; }
.card .thumb { display: block; height: 150px; line-height: 150px; margin-bottom: 6px; }
.card .thumb img { max-height: 150px; max-width: 100%; width: auto; height: auto; vertical-align: middle; }
.card.album { background: var(--cream); border-color: var(--blue-2); }
.card.album .name { font-weight: bold; }
.card .sub { color: var(--grey); display: block; margin-top: 2px; }
.section-title { font-size: 1.1em; color: var(--blue); border-bottom: 2px solid var(--blue-2); padding: 0 0 4px; margin: 24px 0 12px; }
.photo-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 8px 0 12px; font-size: 0.85em; }
.photo-nav .pos { color: var(--grey); font-size: 0.9em; }
.photo-nav .off { visibility: hidden; }
.photo { text-align: center; margin: 0; }
.photo img { max-height: 88vh; width: auto; }
.photo figcaption { text-align: left; max-width: 800px; margin: 14px auto 0; font-size: 0.85em; }
.photo figcaption .page-title { font-size: 1.5em; margin-bottom: 0.4em; }
.photo-meta { color: var(--grey); font-size: 0.9em; margin-top: 10px; }
.photo-meta a { margin-right: 10px; }
.notice { color: var(--grey); font-style: italic; }
