/* Qingyan — mint breathable blog
   Cream bg · mint accent · ~8px radius · clear borders
*/

:root {
  --qy-bg: #FAF8F5;
  --qy-surface: #FFFFFF;
  --qy-text: #1C1F23;
  --qy-muted: #6B7280;
  --qy-muted-2: #9CA3AF;
  --qy-accent: #12C48B;
  --qy-accent-hover: #0EAD78;
  --qy-accent-soft: rgba(18, 196, 139, 0.12);
  --qy-border: #E5E2DC;
  --qy-border-strong: #D4D0C8;
  --qy-radius: 8px;
  --qy-shadow: 0 1px 2px rgba(28, 31, 35, 0.04), 0 4px 16px rgba(28, 31, 35, 0.04);
  --qy-shadow-hover: 0 2px 4px rgba(28, 31, 35, 0.06), 0 8px 24px rgba(28, 31, 35, 0.08);
  --qy-font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, sans-serif;
  --qy-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --qy-max: 1120px;
  --qy-read: 720px;
  --qy-gap: 1.5rem;
  --qy-header-h: 64px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--qy-font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--qy-text);
  background: var(--qy-bg);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  vertical-align: middle;
}

a {
  color: var(--qy-accent);
  text-decoration: none;
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

a:hover {
  color: var(--qy-accent-hover);
}

a:focus-visible,
button:focus-visible,
.button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
.menu a:focus-visible,
.nav-toggle:focus-visible {
  outline: 2px solid var(--qy-accent);
  outline-offset: 2px;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 0.6em;
  line-height: 1.3;
  font-weight: 650;
  color: var(--qy-text);
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 1em;
}

ul, ol {
  margin: 0 0 1em;
  padding-left: 1.25em;
}

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 100000;
  background: var(--qy-accent);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: var(--qy-radius);
}

.skip-link:focus {
  top: 0.75rem;
  color: #fff;
}

/* —— Layout —— */
.site {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-content {
  flex: 1;
}

.container {
  width: 100%;
  max-width: var(--qy-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

/* —— Header —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 248, 245, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--qy-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--qy-header-h);
}

.site-branding {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.site-title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.site-title a {
  color: var(--qy-text);
}

.site-title a:hover {
  color: var(--qy-accent);
}

.site-description {
  display: none;
  margin: 0;
  font-size: 0.8rem;
  color: var(--qy-muted);
}

.custom-logo-link img {
  max-height: 40px;
  width: auto;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.primary-menu {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.primary-menu a {
  display: block;
  padding: 0.4rem 0.75rem;
  color: var(--qy-muted);
  font-size: 0.925rem;
  font-weight: 500;
  border-radius: 6px;
  border: 1px solid transparent;
}

.primary-menu a:hover {
  color: var(--qy-text);
  background: var(--qy-accent-soft);
}

.primary-menu .current-menu-item > a,
.primary-menu .current_page_item > a {
  color: var(--qy-accent);
  background: var(--qy-accent-soft);
  border-color: transparent;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--qy-border);
  border-radius: var(--qy-radius);
  background: var(--qy-surface);
  color: var(--qy-text);
  cursor: pointer;
}

.nav-toggle-bars {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  position: relative;
  border-radius: 1px;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
}

.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }

.header-search {
  display: none;
}

@media (min-width: 900px) {
  .site-description { display: block; }
  .header-search {
    display: block;
  }
  .header-search .search-form {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1px solid var(--qy-border);
    border-radius: var(--qy-radius);
    background: var(--qy-surface);
    overflow: hidden;
  }
  .header-search input[type="search"] {
    border: 0;
    padding: 0.45rem 0.75rem;
    font-size: 0.875rem;
    width: 160px;
    background: transparent;
    color: var(--qy-text);
  }
  .header-search input[type="search"]::placeholder {
    color: var(--qy-muted-2);
  }
  .header-search button {
    border: 0;
    border-left: 1px solid var(--qy-border);
    background: transparent;
    padding: 0.45rem 0.7rem;
    cursor: pointer;
    color: var(--qy-muted);
    font-size: 0.8rem;
  }
  .header-search button:hover {
    color: var(--qy-accent);
    background: var(--qy-accent-soft);
  }
}

@media (max-width: 899px) {
  .nav-toggle { display: inline-flex; }
  .primary-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--qy-surface);
    border-bottom: 1px solid var(--qy-border);
    padding: 0.75rem 1.25rem 1rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
    box-shadow: var(--qy-shadow);
  }
  .primary-nav.is-open { display: flex; }
  .primary-menu {
    flex-direction: column;
    align-items: stretch;
  }
  .primary-menu a {
    padding: 0.65rem 0.85rem;
  }
}

/* —— Buttons —— */
.button,
.wp-block-button__link,
input[type="submit"],
.comment-form .submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.55rem 1.15rem;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.3;
  color: #fff;
  background: var(--qy-accent);
  border: 1px solid var(--qy-accent);
  border-radius: var(--qy-radius);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.button:hover,
.wp-block-button__link:hover,
input[type="submit"]:hover,
.comment-form .submit:hover {
  background: var(--qy-accent-hover);
  border-color: var(--qy-accent-hover);
  color: #fff;
}

.button--ghost {
  background: transparent;
  color: var(--qy-accent);
  border-color: var(--qy-border-strong);
}

.button--ghost:hover {
  background: var(--qy-accent-soft);
  border-color: var(--qy-accent);
  color: var(--qy-accent-hover);
}

/* —— Hero / welcome —— */
.home-hero {
  padding: 3.5rem 0 2rem;
}

.home-hero-inner {
  max-width: 36rem;
}

.home-hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.85rem;
  padding: 0.25rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--qy-accent);
  background: var(--qy-accent-soft);
  border: 1px solid rgba(18, 196, 139, 0.25);
  border-radius: 999px;
}

.home-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  margin-bottom: 0.65rem;
}

.home-hero .lead {
  color: var(--qy-muted);
  font-size: 1.05rem;
  margin-bottom: 0;
  max-width: 28rem;
}

/* —— Home featured layout —— */
.home-featured {
  padding: 0 0 2.5rem;
}

.home-featured-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 900px) {
  .home-featured-grid {
    grid-template-columns: 1.4fr 1fr;
    gap: 1.5rem;
    align-items: stretch;
  }
}

.card {
  background: var(--qy-surface);
  border: 1px solid var(--qy-border);
  border-radius: var(--qy-radius);
  overflow: hidden;
  box-shadow: var(--qy-shadow);
  transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.card:hover {
  box-shadow: var(--qy-shadow-hover);
  border-color: var(--qy-border-strong);
}

.card-link {
  display: block;
  color: inherit;
  height: 100%;
}

.card-link:hover {
  color: inherit;
}

.card-thumb {
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #E8F8F1, #F0EDE8);
  overflow: hidden;
}

.card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-body {
  padding: 1.15rem 1.25rem 1.35rem;
}

.card--featured .card-body {
  padding: 1.35rem 1.5rem 1.5rem;
}

.card--featured .entry-title {
  font-size: clamp(1.25rem, 2.5vw, 1.55rem);
  margin-bottom: 0.5rem;
}

.card--featured .entry-title a {
  color: var(--qy-text);
}

.card--featured .entry-title a:hover {
  color: var(--qy-accent);
}

.entry-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.85rem;
  font-size: 0.8rem;
  color: var(--qy-muted);
  margin-bottom: 0.65rem;
}

.entry-meta a {
  color: var(--qy-muted);
}

.entry-meta a:hover {
  color: var(--qy-accent);
}

.cat-badge {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--qy-accent);
  background: var(--qy-accent-soft);
  border: 1px solid rgba(18, 196, 139, 0.22);
  border-radius: 5px;
  line-height: 1.4;
}

.cat-badge:hover {
  background: rgba(18, 196, 139, 0.2);
  color: var(--qy-accent-hover);
}

.entry-excerpt {
  color: var(--qy-muted);
  font-size: 0.925rem;
  margin: 0;
}

/* Secondary list (right of featured) */
.secondary-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  height: 100%;
}

.secondary-list .section-label {
  font-size: 0.8rem;
  font-weight: 650;
  color: var(--qy-muted);
  letter-spacing: 0.02em;
  margin: 0 0 0.15rem;
}

.list-card {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 0.85rem;
  padding: 0.75rem;
  background: var(--qy-surface);
  border: 1px solid var(--qy-border);
  border-radius: var(--qy-radius);
  box-shadow: var(--qy-shadow);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
  align-items: center;
}

.list-card:hover {
  box-shadow: var(--qy-shadow-hover);
  border-color: var(--qy-border-strong);
}

.list-card .thumb {
  aspect-ratio: 1;
  border-radius: 6px;
  overflow: hidden;
  background: linear-gradient(135deg, #E8F8F1, #F0EDE8);
}

.list-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.list-card .meta {
  font-size: 0.72rem;
  color: var(--qy-muted-2);
  margin-bottom: 0.25rem;
}

.list-card .title {
  margin: 0;
  font-size: 0.925rem;
  font-weight: 600;
  line-height: 1.4;
}

.list-card .title a {
  color: var(--qy-text);
}

.list-card .title a:hover {
  color: var(--qy-accent);
}

/* Card grid */
.section {
  padding: 0.5rem 0 3rem;
}

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.15rem;
}

.section-header h2 {
  margin: 0;
  font-size: 1.15rem;
}

.section-header .more-link {
  font-size: 0.875rem;
  font-weight: 560;
  color: var(--qy-accent);
}

.posts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.15rem;
}

@media (min-width: 600px) {
  .posts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .posts-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.grid-card .entry-title {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

.grid-card .entry-title a {
  color: var(--qy-text);
}

.grid-card .entry-title a:hover {
  color: var(--qy-accent);
}

.grid-card .card-body {
  padding: 1rem 1.1rem 1.2rem;
}

/* —— Archive / list pages —— */
.page-header {
  padding: 2.5rem 0 1.25rem;
}

.page-header h1 {
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  margin-bottom: 0.35rem;
}

.page-header .archive-desc {
  color: var(--qy-muted);
  margin: 0;
  max-width: 36rem;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.filter-chips a {
  display: inline-block;
  padding: 0.35rem 0.8rem;
  font-size: 0.8rem;
  font-weight: 550;
  color: var(--qy-muted);
  background: var(--qy-surface);
  border: 1px solid var(--qy-border);
  border-radius: 999px;
}

.filter-chips a:hover,
.filter-chips a.is-active {
  color: var(--qy-accent);
  border-color: rgba(18, 196, 139, 0.4);
  background: var(--qy-accent-soft);
}

.layout-with-sidebar {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding-bottom: 3rem;
}

@media (min-width: 960px) {
  .layout-with-sidebar {
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 2.25rem;
  }
}

.posts-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.list-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  background: var(--qy-surface);
  border: 1px solid var(--qy-border);
  border-radius: var(--qy-radius);
  overflow: hidden;
  box-shadow: var(--qy-shadow);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.list-row:hover {
  box-shadow: var(--qy-shadow-hover);
  border-color: var(--qy-border-strong);
}

@media (min-width: 640px) {
  .list-row {
    grid-template-columns: 220px 1fr;
  }
}

.list-row .thumb {
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #E8F8F1, #F0EDE8);
}

@media (min-width: 640px) {
  .list-row .thumb {
    aspect-ratio: auto;
    height: 100%;
    min-height: 140px;
  }
}

.list-row .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.list-row .body {
  padding: 1.15rem 1.25rem;
}

.list-row .entry-title {
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}

.list-row .entry-title a {
  color: var(--qy-text);
}

.list-row .entry-title a:hover {
  color: var(--qy-accent);
}

/* —— Single / reading —— */
.single-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding: 2rem 0 3.5rem;
}

@media (min-width: 960px) {
  .single-layout.has-aside {
    grid-template-columns: minmax(0, var(--qy-read)) 260px;
    justify-content: center;
    gap: 2.5rem;
  }
  .single-layout:not(.has-aside) {
    max-width: var(--qy-read);
    margin: 0 auto;
  }
}

.entry-header-single {
  margin-bottom: 1.5rem;
}

.entry-header-single .entry-title {
  font-size: clamp(1.6rem, 3.5vw, 2.1rem);
  margin: 0.5rem 0 0.75rem;
}

.entry-featured {
  margin: 0 0 1.75rem;
  border-radius: var(--qy-radius);
  overflow: hidden;
  border: 1px solid var(--qy-border);
}

.entry-featured img {
  width: 100%;
}

.entry-content {
  font-size: 1.05rem;
  line-height: 1.75;
}

.entry-content > *:first-child {
  margin-top: 0;
}

.entry-content h2 {
  margin-top: 2em;
  font-size: 1.35rem;
}

.entry-content h3 {
  margin-top: 1.6em;
  font-size: 1.15rem;
}

.entry-content a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.entry-content blockquote {
  margin: 1.5em 0;
  padding: 0.85rem 1.15rem;
  border-left: 3px solid var(--qy-accent);
  background: var(--qy-accent-soft);
  border-radius: 0 var(--qy-radius) var(--qy-radius) 0;
  color: var(--qy-text);
}

.entry-content blockquote p:last-child {
  margin-bottom: 0;
}

.entry-content pre,
.entry-content code {
  font-family: var(--qy-mono);
  font-size: 0.9em;
}

.entry-content pre {
  padding: 1rem 1.15rem;
  background: #1C1F23;
  color: #E8E6E1;
  border-radius: var(--qy-radius);
  overflow-x: auto;
  border: 1px solid #2A2E34;
}

.entry-content code {
  padding: 0.15em 0.35em;
  background: rgba(28, 31, 35, 0.06);
  border-radius: 4px;
}

.entry-content pre code {
  padding: 0;
  background: transparent;
}

.entry-content ul,
.entry-content ol {
  padding-left: 1.35em;
}

.entry-content img {
  border-radius: var(--qy-radius);
  border: 1px solid var(--qy-border);
}

.entry-footer {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--qy-border);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.entry-footer .tags-label {
  font-size: 0.8rem;
  color: var(--qy-muted);
  margin-right: 0.25rem;
}

.tag-chip {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  font-size: 0.75rem;
  color: var(--qy-muted);
  border: 1px solid var(--qy-border);
  border-radius: 5px;
  background: var(--qy-surface);
}

.tag-chip:hover {
  color: var(--qy-accent);
  border-color: rgba(18, 196, 139, 0.4);
  background: var(--qy-accent-soft);
}

.post-nav {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin: 2rem 0;
}

@media (min-width: 600px) {
  .post-nav {
    grid-template-columns: 1fr 1fr;
  }
}

.post-nav a {
  display: block;
  padding: 1rem 1.15rem;
  background: var(--qy-surface);
  border: 1px solid var(--qy-border);
  border-radius: var(--qy-radius);
  color: var(--qy-text);
}

.post-nav a:hover {
  border-color: var(--qy-accent);
  background: var(--qy-accent-soft);
  color: var(--qy-accent);
}

.post-nav .label {
  display: block;
  font-size: 0.75rem;
  color: var(--qy-muted);
  margin-bottom: 0.25rem;
}

.post-nav .title {
  font-weight: 600;
  font-size: 0.925rem;
}

.related-posts {
  margin-top: 2.5rem;
}

.related-posts h3 {
  font-size: 1.05rem;
  margin-bottom: 1rem;
}

/* —— Sidebar —— */
.sidebar .widget {
  background: var(--qy-surface);
  border: 1px solid var(--qy-border);
  border-radius: var(--qy-radius);
  padding: 1.15rem 1.2rem;
  margin-bottom: 1rem;
  box-shadow: var(--qy-shadow);
}

.widget-title {
  font-size: 0.85rem;
  font-weight: 650;
  margin: 0 0 0.85rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid var(--qy-border);
  color: var(--qy-text);
}

.widget ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.widget li {
  margin: 0;
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--qy-border);
  font-size: 0.9rem;
}

.widget li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.widget li a {
  color: var(--qy-text);
}

.widget li a:hover {
  color: var(--qy-accent);
}

.widget .tagcloud a,
.widget_tag_cloud a {
  display: inline-block;
  margin: 0.2rem 0.25rem 0.2rem 0;
  padding: 0.2rem 0.5rem;
  font-size: 0.75rem !important;
  color: var(--qy-muted);
  border: 1px solid var(--qy-border);
  border-radius: 5px;
  background: var(--qy-bg);
}

.widget .tagcloud a:hover,
.widget_tag_cloud a:hover {
  color: var(--qy-accent);
  border-color: rgba(18, 196, 139, 0.4);
  background: var(--qy-accent-soft);
}

.toc-widget ol {
  margin: 0;
  padding-left: 1.1em;
  font-size: 0.875rem;
}

.toc-widget a {
  color: var(--qy-muted);
}

.toc-widget a:hover {
  color: var(--qy-accent);
}

/* —— Comments —— */
.comments-area {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--qy-border);
}

.comments-title {
  font-size: 1.15rem;
  margin-bottom: 1.25rem;
}

.comment-list {
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
}

.comment-list .children {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0 0 0 1.25rem;
  border-left: 2px solid var(--qy-border);
}

.comment-body {
  padding: 1rem 1.15rem;
  background: var(--qy-surface);
  border: 1px solid var(--qy-border);
  border-radius: var(--qy-radius);
  margin-bottom: 0.75rem;
}

.comment-meta {
  font-size: 0.8rem;
  color: var(--qy-muted);
  margin-bottom: 0.5rem;
}

.comment-author .fn {
  font-weight: 600;
  color: var(--qy-text);
  font-style: normal;
}

.comment-content p:last-child {
  margin-bottom: 0;
}

.reply a {
  font-size: 0.8rem;
  font-weight: 560;
}

.comment-form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 550;
  margin-bottom: 0.35rem;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea,
.search-form input[type="search"],
.widget input[type="search"],
.widget input[type="text"] {
  width: 100%;
  padding: 0.55rem 0.75rem;
  font-family: inherit;
  font-size: 0.925rem;
  color: var(--qy-text);
  background: var(--qy-surface);
  border: 1px solid var(--qy-border);
  border-radius: var(--qy-radius);
}

.comment-form textarea {
  min-height: 120px;
  resize: vertical;
}

.comment-form p {
  margin-bottom: 1rem;
}

/* —— Pagination —— */
.pagination,
.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 2rem 0 0;
  align-items: center;
}

.pagination .page-numbers,
.nav-links a,
.nav-links span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 0.65rem;
  font-size: 0.875rem;
  font-weight: 550;
  color: var(--qy-muted);
  background: var(--qy-surface);
  border: 1px solid var(--qy-border);
  border-radius: 6px;
}

.pagination a.page-numbers:hover,
.nav-links a:hover {
  color: var(--qy-accent);
  border-color: rgba(18, 196, 139, 0.4);
  background: var(--qy-accent-soft);
}

.pagination .current,
.nav-links .current {
  color: #fff;
  background: var(--qy-accent);
  border-color: var(--qy-accent);
}

/* —— 404 / none —— */
.not-found {
  padding: 4rem 0 5rem;
  text-align: center;
  max-width: 28rem;
  margin: 0 auto;
}

.not-found h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.not-found p {
  color: var(--qy-muted);
}

.not-found .search-form {
  margin: 1.5rem auto;
  max-width: 320px;
  display: flex;
  border: 1px solid var(--qy-border);
  border-radius: var(--qy-radius);
  overflow: hidden;
  background: var(--qy-surface);
}

.not-found .search-form input[type="search"] {
  border: 0;
  flex: 1;
}

.not-found .search-form button,
.not-found .search-form input[type="submit"] {
  border-radius: 0;
  border: 0;
  border-left: 1px solid var(--qy-border);
}

/* —— Footer —— */
.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--qy-border);
  background: var(--qy-surface);
  padding: 2.5rem 0 1.75rem;
}

.footer-widgets {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

@media (min-width: 700px) {
  .footer-widgets {
    grid-template-columns: repeat(3, 1fr);
  }
}

.footer-widget .widget-title {
  border-bottom: 0;
  padding-bottom: 0;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--qy-border);
  font-size: 0.85rem;
  color: var(--qy-muted);
}

.footer-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-menu a {
  color: var(--qy-muted);
  font-size: 0.85rem;
}

.footer-menu a:hover {
  color: var(--qy-accent);
}

/* —— Search page form —— */
.search-page-form {
  margin-bottom: 1.5rem;
}

.search-page-form .search-form {
  display: flex;
  max-width: 420px;
  border: 1px solid var(--qy-border);
  border-radius: var(--qy-radius);
  overflow: hidden;
  background: var(--qy-surface);
}

.search-page-form input[type="search"] {
  border: 0;
  flex: 1;
}

.search-page-form button,
.search-page-form input[type="submit"] {
  border-radius: 0;
  border: 0;
  border-left: 1px solid var(--qy-border);
}

/* Utility */
.mt-0 { margin-top: 0; }
.text-muted { color: var(--qy-muted); }
