﻿/*
Theme Name: Zhouneng Cooling
Theme URI: https://blog.zhouneng.top
Author: View Studio
Author URI: https://github.com/oi9-12
Description: Industrial B2B theme for cooling tower manufacturers. Dark navy shell, safety-orange accents, spec-table styling and a full-bleed hero.
Version: 1.0.5
Requires at least: 6.2
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: zhouneng
Tags: business, industrial, custom-menu, block-styles
*/

/* The design system lives in assets/css/site.css (enqueued first).
   Everything below is WordPress-specific chrome that the design system
   does not need to know about. */

/* ---------- accessibility ---------- */
.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 !important;
  width: 1px;
  word-wrap: normal !important;
}
.skip-link:focus {
  background: #fff;
  clip: auto;
  clip-path: none;
  color: var(--accent-dk);
  display: block;
  font-weight: 700;
  height: auto;
  left: 16px;
  padding: 12px 18px;
  top: 16px;
  width: auto;
  z-index: 999;
}

/* ---------- admin bar offset ---------- */
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
  .admin-bar .nav { inset-block-start: calc(76px + 46px); }
}

/* ---------- header state ---------- */
.site-header.is-stuck { box-shadow: 0 8px 24px rgba(10, 25, 38, .08); }

/* ---------- main shell ---------- */
.site-main { display: block; }
.site-main > :first-child { margin-top: 0; }

/* ---------- notices ---------- */
.zn-notice-slot { padding-top: 22px; }
.zn-notice {
  border-radius: var(--r);
  padding: 16px 20px;
  font-size: .9375rem;
  border: 1px solid transparent;
}
.zn-notice--success { background: #e8f6ee; border-color: #b7e0c8; color: #1d6b41; }
.zn-notice--error { background: #fdecea; border-color: #f5c6c0; color: #9b2c1f; }

/* ---------- blog / entry content ---------- */
.entry-content h2 { font-size: 1.6rem; margin: 2.2em 0 .6em; }
.entry-content h3 { font-size: 1.2rem; margin: 1.8em 0 .5em; }
.entry-content p { margin-bottom: 1.1em; }
.entry-content ul, .entry-content ol { margin: 0 0 1.2em 1.2em; list-style: disc; }
.entry-content ol { list-style: decimal; }
.entry-content li { margin-bottom: .5em; }
.entry-content a { color: var(--accent-dk); text-decoration: underline; text-underline-offset: 3px; }
.entry-content blockquote {
  margin: 1.8em 0;
  padding: 18px 24px;
  border-left: 3px solid var(--accent);
  background: var(--bg);
  color: var(--steel);
}
.entry-content img, .entry-content figure img { border-radius: var(--r); height: auto; }
.entry-content table { margin: 1.6em 0; }

/* ---------- pagination ---------- */
.pagination, .nav-links { display: flex; gap: 8px; flex-wrap: wrap; }
.nav-links .page-numbers {
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  font-size: .9rem;
  color: var(--steel);
}
.nav-links .current { background: var(--navy); color: #fff; border-color: var(--navy); }
.post-navigation .nav-links { justify-content: space-between; }

/* ---------- block alignment ---------- */
.alignwide { width: min(1400px, 100%); margin-inline: auto; }
.alignfull { width: 100%; }

/* ---------- card images: line art vs photos ---------- */
.card__media img { object-fit: contain; padding: 18px; }
.card__media img[src$=".jpg"],
.card__media img[src$=".jpeg"],
.card__media img[src$=".png"],
.card__media img[src$=".webp"] { object-fit: cover; padding: 0; }

/* ---------- form feedback ---------- */
.form-note--ok { color: #1d6b41; font-weight: 600; }

/* ---------- inquiry form (shortcode) ---------- */
.zn-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.zn-duty {
  border: 0;
  padding: 0;
  margin: 0 0 18px;
}
.zn-duty legend {
  font-size: .8125rem;
  font-weight: 600;
  color: #3c4f63;
  margin-bottom: 10px;
  padding: 0;
}
.zn-duty .form-row + .form-row { margin-top: 14px; }
