/* Faithfully reproduced from shanghai.css (kumiankka.org/china/_s/shanghai.css) */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background-color: #E9CB9A;
  font-family: Verdana, Tahoma, Arial, sans-serif;
  font-size: 10px;
  color: #333333;
  margin: 10px 0;
}

a:link, a:visited { font-family: Verdana, Tahoma, Arial, sans-serif; font-size: 10px; color: #333333; text-decoration: underline; }
a:hover, a:active  { font-family: Verdana, Tahoma, Arial, sans-serif; font-size: 10px; color: #333333; text-decoration: none; }

.teksti       { font-family: Verdana, Tahoma, Arial, sans-serif; font-size: 10px; line-height: normal; color: #333333; }
.tekstibold   { font-family: Verdana, Tahoma, Arial, sans-serif; font-size: 12px; line-height: normal; color: #333333; font-weight: bold; }
.tekstiMini   { font-family: Verdana, Tahoma, Arial, sans-serif; font-size: 10px; line-height: normal; color: #333333; }
b             { font-family: Verdana, Tahoma, Arial, sans-serif; font-size: 10px; line-height: normal; color: #333333; font-weight: bold; }

/* Layout */
.page-wrap    { width: 800px; margin: 0 auto; border-left: 1px solid #482F09; border-right: 1px solid #482F09; }
.top-border   { background: #482F09; height: 1px; width: 800px; margin: 0 auto; }
.bottom-border{ background: #482F09; height: 1px; width: 800px; margin: 0 auto; }
.inner        { width: 698px; margin: 0 auto; padding: 0 10px; }

/* Hero image */
.hero-img { display: block; width: 100%; max-width: 800px; height: auto; }

/* Navigation */
.nav-row { padding: 6px 0 5px; }
.nav-inner { width: 698px; margin: 0 auto; padding: 0 10px; display: flex; gap: 6px; }
.nav-btn { display: block; width: 156px; height: auto; border: none; image-rendering: pixelated; }
.nav-row a { line-height: 0; }
.nav-row a:hover .nav-btn { opacity: 0.8; }

/* All-entries link (index page) */
.all-link { padding: 6px 20px 2px; font-size: 10px; }

/* Practical section title images */
.section-title-img { display: block; width: 466px; max-width: 100%; height: auto; image-rendering: pixelated; margin: 16px 0 8px; }

/* Entry list (index page) */
.entry-list { padding: 16px 20px; }
.entry-list table { border-collapse: collapse; width: 100%; }
.entry-list td { padding: 3px 6px 3px 0; vertical-align: top; }
.entry-list .date-col { white-space: nowrap; font-weight: bold; font-size: 13px; width: 160px; }
.entry-list .excerpt-col { color: #555; }
.entry-list tr:hover td { background: #DDB87A; }

/* Entry content */
.entry-wrap   { padding: 12px 20px 20px 20px; max-width: 550px; }
.entry-date   { font-size: 16px; font-weight: bold; color: #333; margin-bottom: 8px; padding-bottom: 4px; border-bottom: 1px solid #C4A87A; }
.entry-body   { font-size: 10px; line-height: 1.5; text-align: justify; }
.entry-body p { margin-bottom: 0.8em; }
.entry-body strong { font-size: 11px; font-weight: bold; }
.entry-body .subhead { margin-top: 1.4em; margin-bottom: 0.3em; }
.entry-body hr { border: none; border-top: 1px solid #C4A87A; margin: 12px 0; }
.entry-body ul, .entry-body ol { padding-left: 1.6em; margin-bottom: 0.8em; }
.entry-body li { margin-bottom: 0.2em; }

/* All-posts view date header (same as .entry-date now) */
.all-entry-date { font-size: 16px; font-weight: bold; color: #333; margin-bottom: 8px; padding-bottom: 4px; border-bottom: 1px solid #C4A87A; }

/* Prev/next navigation */
.entry-nav { padding: 10px 20px; border-top: 1px solid #C4A87A; margin-top: 10px; display: flex; gap: 6px; align-items: center; }
.entry-nav a { font-size: 10px; line-height: 0; }
.nav-arrow { display: block; width: 76px; height: auto; border: none; image-rendering: pixelated; }
.nav-arrow-inactive { opacity: 0.2; }

/* Day selector (index) */
.day-selector { padding: 8px 20px; border-bottom: 1px solid #C4A87A; }
.day-selector select { font-family: Verdana, Tahoma, Arial, sans-serif; font-size: 10px; border: 1px solid #666; padding: 1px; }

/* Footer */
.footer { padding: 8px 20px; border-top: 1px solid #C4A87A; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.footer-logo { width: 129px; height: auto; image-rendering: pixelated; flex-shrink: 0; }
.footer-copy { font-size: 9px; color: #888; text-align: right; }

/* Photo gallery */
.photo-grid { padding: 12px 20px; display: flex; flex-wrap: wrap; gap: 5px; }
.thumb-link img { width: 82px; height: 62px; object-fit: cover; border: 1px solid #8B6914; display: block; }
.thumb-link img:hover { border-color: #482F09; opacity: 0.8; }
.photo-wrap { padding: 12px 20px 4px; text-align: center; }
.photo-wrap img.photo-full { max-width: 100%; height: auto; border: 1px solid #8B6914; display: block; margin: 0 auto; }
.photo-link { line-height: 0; display: block; text-align: center; cursor: pointer; }
video.photo-full { display: block; width: 100%; max-width: 640px; height: auto; margin: 0 auto; border: 1px solid #8B6914; background: #000; }
.photo-meta { font-size: 9px; color: #888; margin-top: 4px; }
.photo-day { padding: 0 20px; }
.photo-day .photo-grid { padding: 4px 0 12px; }
.photo-day-title { font-size: 11px; font-weight: bold; border-bottom: 1px solid #C4A87A; padding: 8px 0 2px; }
.photo-day-title a:link, .photo-day-title a:visited { font-size: 11px; font-weight: bold; }
.photo-day-count { font-weight: normal; color: #888; }
.thumb-link { position: relative; line-height: 0; }
.thumb-link.is-video::after { content: "▶"; position: absolute; right: 3px; bottom: 3px; font-size: 10px; line-height: 1; color: #fff; text-shadow: 0 0 2px #000; }
.photo-caption { font-size: 10px; color: #555; margin-top: 6px; }
.photo-number { font-size: 9px; color: #888; margin-bottom: 4px; }
