/* Mirror-only styles. The original Typecho style.css is kept untouched. */

/* ---------- original title under an SEO title ---------- */
.post-subtitle {
  margin: -0.4em 0 0.9em;
  font-size: 0.95em;
  line-height: 1.6;
  opacity: 0.62;
}

/* ---------- comment call-to-action (single page) ---------- */
.post-comments-cta {
  margin: 2em 0 0;
  padding: 1.1em 1.25em;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  background: var(--muted-color);
}

.post-comments-cta .cta-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  font-weight: 600;
  color: var(--link-color);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, opacity 0.2s ease;
}

.post-comments-cta .cta-link:hover {
  border-bottom-color: var(--link-color);
}

.post-comments-cta .cta-link svg {
  flex: 0 0 auto;
}

.post-comments-cta .cta-note {
  margin: 0.55em 0 0;
  font-size: 0.85em;
  line-height: 1.6;
  opacity: 0.72;
}

/* ---------- search page ---------- */
.search-page {
  margin-top: 0.5em;
}

.search-page > p {
  opacity: 0.8;
  margin-bottom: 0.9em;
}

.search-page input[type="search"] {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 14px;
  font-size: 1em;
  color: var(--text-color);
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  outline: none;
}

.search-page input[type="search"]:focus {
  border-color: var(--link-color);
}

.search-status {
  min-height: 1.4em;
  margin: 0.7em 0;
  font-size: 0.9em;
  opacity: 0.75;
}

.search-results {
  margin-top: 0.4em;
}

.search-result {
  display: block;
  padding: 0.85em 0;
  border-bottom: 1px dashed var(--border-color);
  text-decoration: none;
}

.search-result:last-child {
  border-bottom: none;
}

.search-result h4 {
  margin: 0 0 0.25em;
  font-size: 1.02em;
  color: var(--link-color);
}

.search-result p {
  margin: 0;
  font-size: 0.9em;
  line-height: 1.65;
  opacity: 0.78;
}

/* ---------- series page ---------- */
.series-section {
  margin-top: 2em;
  padding-top: 1.1em;
  border-top: 1px solid var(--border-color);
}

.series-section:first-of-type {
  border-top: none;
  padding-top: 0;
}

.series-section h4 {
  margin: 0 0 0.55em;
  font-size: 1.05em;
}

.series-section .widget-list li {
  margin-bottom: 0.35em;
}

/* ---------- misc ---------- */
.post-meta a.quiet-link {
  color: inherit;
  border-bottom: 1px dotted var(--border-color);
}

/* ---------- mobile nav: fit all items on one row down to iPhone SE (320px) ---------- */
@media screen and (max-width: 767px) {
  #nav-menu {
    flex-wrap: nowrap !important;
    overflow-x: hidden !important;
    justify-content: space-between !important;
    width: 100% !important;
    gap: 0 !important;
  }
  #nav-menu > a {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 4px !important;
    font-size: 0.82rem !important;
    letter-spacing: -0.2px !important;
    text-align: center !important;
    white-space: nowrap !important;
    box-sizing: border-box !important;
  }
  #nav-menu .nav-social.desktop-only {
    display: none !important;
  }
}

@media screen and (max-width: 400px) {
  #nav-menu > a {
    padding: 0 3px !important;
    font-size: 0.76rem !important;
    letter-spacing: -0.3px !important;
  }
}

@media screen and (max-width: 360px) {
  #nav-menu > a {
    padding: 0 2px !important;
    font-size: 0.70rem !important;
    letter-spacing: -0.4px !important;
  }
}

@media screen and (max-width: 330px) {
  #nav-menu > a {
    font-size: 0.66rem !important;
    letter-spacing: -0.5px !important;
  }
}


.archive-count { opacity: .55; font-size: .9em; }


@media screen and (max-width: 767px) {
  #sidebar { margin-top: 2.5em; border-top: 1px solid var(--border-color); padding-top: 1em; }
}
.stats-list li { margin: 0.35em 0; }


.ad-slot { margin: 2.2em 0; text-align: center; }
.ad-slot__label { font-size: .7em; letter-spacing: .08em; text-transform: uppercase; opacity: .45; margin-bottom: .45em; }
.ad-slot--leaderboard { min-height: 120px; }
.ad-slot--in-article { min-height: 300px; }
.ad-slot--sidebar { min-height: 275px; }
.ad-slot--in-feed { min-height: 270px; }
@media screen and (max-width: 767px) { .ad-slot--sidebar { display: none; } }

