/*
Theme Name: Qinjian Packaging
Theme URI: https://www.jsqinjian.com/
Author: Jiangsu Qinjian Packaging
Description: Custom B2B corporate theme for export wooden packaging products and inquiry conversion.
Version: 1.3.5
Text Domain: qinjian
*/

/* Four project cards form two balanced rows; smaller screens use one column. */
.case-grid:has(>article:nth-child(4):last-child){grid-template-columns:repeat(2,minmax(0,1fr))}
.entry-content .solution-photo{height:auto;max-height:800px;object-fit:contain;margin:24px 0;background:#eef2f2}
@media(max-width:680px){.case-grid:has(>article:nth-child(4):last-child){grid-template-columns:1fr}}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.qinjian-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.quote-panel select,
.quote-panel textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #d5e0e6;
  border-radius: 8px;
  background: #fff;
  color: #102d3d;
  font: inherit;
  padding: 12px 14px;
}

.product-info h3 a,
.case-grid h3 a {
  color: inherit;
  text-decoration: none;
}

.language-switch {
  flex: 0 0 auto;
  min-width: 58px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.language-switch:hover,
.language-switch:focus-visible {
  border-color: #79dce3;
  background: #79dce3;
  color: #062b43;
}

.language-switch svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: #79dce3;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.language-switch:hover svg,
.language-switch:focus-visible svg {
  stroke: currentColor;
}

@media (max-width: 900px) {
  .site-header {
    gap: 10px;
  }

  .site-header .brand {
    min-width: 0;
    margin-right: auto;
  }

  .language-switch {
    min-width: 52px;
    height: 36px;
    padding: 0 9px;
  }

  .site-header .menu {
    margin-left: 0;
  }
}
