/*
 Theme Name: SANYOO Blog
 Theme URI: https://www.sanyoogear.com/
 Description: Minimal blog theme styled to match the SANYOO static marketing site. Top navigation links back to the static site sections; Blog is the WordPress content area.
 Version: 1.0.0
 Author: SANYOO
 License: MIT
 Text Domain: sanyoo-blog
 */

:root {
  --blue: #1d2088;
  --blue-deep: #111455;
  --red: #d71718;
  --ink: #151a24;
  --muted: #5e6673;
  --line: #d9dde4;
  --surface: #f3f5f7;
  --white: #fff;
  --navy: #0c0e29;
  --navy-hero: #0a0d31;
  --container: 1200px;
  --font-sans: Inter, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  font-size: 16px;
}

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

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { letter-spacing: -.025em; line-height: 1.15; margin: 0 0 24px; color: var(--ink); }
h1 { font-size: clamp(34px, 4.6vw, 60px); }
h2 { font-size: clamp(26px, 3vw, 40px); }
h3 { font-size: 22px; }
p { color: var(--muted); }

.container {
  width: min(calc(100% - 48px), var(--container));
  margin-inline: auto;
}

.skip-link {
  position: absolute; left: -999px; top: 0; background: #fff; padding: 10px 16px; z-index: 100;
}
.skip-link:focus { left: 8px; top: 8px; }

/* ---------- Header / top nav (matches static site) ---------- */
.site-header {
  z-index: 40;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  background: #fffffff7;
  position: sticky;
  top: 0;
  box-shadow: 0 1px #151a241f;
}
.nav-row {
  justify-content: space-between;
  align-items: center;
  gap: 26px;
  min-height: 82px;
  display: flex;
}
.brand { flex: 0 0 225px; align-items: center; display: inline-flex; }
.brand img { object-fit: contain; width: 225px; height: auto; }

.primary-nav {
  align-items: center;
  gap: clamp(12px, 1.35vw, 22px);
  min-height: 82px;
  font-size: 13px;
  font-weight: 700;
  display: flex;
}
.primary-nav > a:not(.button),
.nav-group > a {
  white-space: nowrap;
  align-items: center;
  min-height: 82px;
  padding: 0;
  display: flex;
  position: relative;
  color: var(--ink);
}
.primary-nav > a:not(.button):after,
.nav-group > a:after {
  content: "";
  background: var(--red);
  height: 2px;
  transition: right .2s;
  position: absolute;
  bottom: 19px;
  left: 0;
  right: 100%;
}
.primary-nav > a:not(.button):hover:after,
.primary-nav > a[aria-current="page"]:after,
.nav-group:hover > a:after,
.nav-group:focus-within > a:after {
  right: 0;
}
.nav-group { align-self: stretch; align-items: center; display: flex; position: relative; }
.subnav {
  border-top: 3px solid var(--blue);
  z-index: 5;
  background: #fff;
  width: 340px;
  padding: 17px 21px;
  display: none;
  position: absolute;
  top: 100%;
  left: -25px;
  box-shadow: 0 18px 36px #1014322e;
}
.nav-group:hover .subnav,
.nav-group:focus-within .subnav { display: grid; }
.subnav a {
  color: #394151;
  border-bottom: 1px solid var(--line);
  padding: 9px 4px;
  line-height: 1.35;
  font-weight: 600;
}
.subnav a:last-child { border-bottom: 0; }
.subnav a:hover, .subnav a:focus-visible { color: var(--blue); }

.menu-toggle {
  color: var(--blue);
  background: 0 0;
  border: 0;
  font-size: 26px;
  display: none;
  cursor: pointer;
}

/* ---------- Buttons ---------- */
.button {
  letter-spacing: .02em;
  cursor: pointer;
  border: 1px solid #0000;
  justify-content: center;
  align-items: center;
  min-height: 47px;
  padding: 11px 21px;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
  display: inline-flex;
  color: var(--ink);
  text-decoration: none;
}
.button:hover { transform: translateY(-1px); text-decoration: none; }
.button-primary { background: var(--red); color: #fff; }
.button-primary:hover { background: #b60f10; }
.nav-rfq { min-height: 42px; padding: 10px 17px; }

.eyebrow {
  color: var(--red);
  letter-spacing: .18em;
  text-transform: uppercase;
  margin: 0 0 20px;
  font-size: 12px;
  font-weight: 850;
}
.text-link { color: var(--blue); font-weight: 700; }
.text-link:hover { text-decoration: underline; }

/* ---------- Blog hero ---------- */
.blog-hero {
  background: linear-gradient(90deg, #0a0d31f5 0%, #0a0d31d1 52%, #0a0d314d 100%), #0a0d31;
  color: #fff;
  padding: 88px 0 72px;
}
.blog-hero .eyebrow { color: #ff7d7e; }
.blog-hero h1 { color: #fff; max-width: 900px; }
.blog-hero .hero-lead { color: #ffffffd1; max-width: 720px; font-size: 18px; }
.blog-hero-compact { padding: 64px 0 52px; }

/* ---------- Blog list ---------- */
.blog-wrap { padding: 56px 0 72px; }
.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px;
}
.post-card {
  border: 1px solid var(--line);
  background: #fff;
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s, transform .2s;
}
.post-card:hover { box-shadow: 0 18px 36px #1014321f; transform: translateY(-2px); }
.post-thumb { display: block; aspect-ratio: 16/9; overflow: hidden; background: var(--surface); }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.post-cat { margin-bottom: 10px; }
.post-title { font-size: 21px; line-height: 1.25; margin-bottom: 12px; }
.post-title a { color: var(--ink); }
.post-title a:hover { color: var(--blue); }
.post-meta { color: #8a909c; font-size: 13px; margin: 0 0 12px; }
.post-excerpt { font-size: 15px; margin: 0 0 16px; }
.post-more { margin-top: auto; font-size: 14px; }

.no-results { padding: 30px 0; }

/* ---------- Pagination ---------- */
.nav-links { display: flex; gap: 8px; margin-top: 44px; flex-wrap: wrap; }
.nav-links a, .nav-links span {
  border: 1px solid var(--line);
  padding: 9px 15px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}
.nav-links a:hover { border-color: var(--blue); color: var(--blue); text-decoration: none; }
.nav-links .current { background: var(--blue); color: #fff; border-color: var(--blue); }

/* ---------- Single post ---------- */
.single-wrap { max-width: 860px; }
.post-feature { margin-bottom: 30px; border: 1px solid var(--line); }
.post-single .entry-content { font-size: 17px; }
.entry-content h2 { margin-top: 40px; }
.entry-content h3 { margin-top: 30px; }
.entry-content img { margin: 24px 0; border: 1px solid var(--line); }
.entry-content blockquote {
  border-left: 3px solid var(--red);
  margin: 24px 0;
  padding: 4px 0 4px 22px;
  color: var(--ink);
  font-style: italic;
}
.entry-content pre {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 18px;
  overflow: auto;
  font-size: 14px;
}
.entry-content code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .92em; }
.entry-content table { width: 100%; border-collapse: collapse; margin: 24px 0; }
.entry-content th, .entry-content td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.entry-content ul, .entry-content ol { padding-left: 22px; }
.entry-content li { margin-bottom: 8px; }

/* ---------- Search ---------- */
.search-form { display: flex; gap: 10px; margin-bottom: 36px; max-width: 520px; }
.search-form label { flex: 1; }
.search-form input[type="search"] {
  width: 100%; border: 1px solid var(--line); padding: 12px 14px; font: inherit; color: var(--ink);
}
.search-form .button { border: 1px solid var(--blue); }

/* ---------- Comments ---------- */
.comments-area { margin-top: 48px; border-top: 1px solid var(--line); padding-top: 32px; }
.comment-list { list-style: none; padding: 0; }
.comment-body { border-bottom: 1px solid var(--line); padding: 16px 0; }
.comment-form input, .comment-form textarea {
  width: 100%; border: 1px solid var(--line); padding: 11px 13px; font: inherit; margin-bottom: 12px;
}

/* ---------- Footer (matches static site) ---------- */
.site-footer { color: #fff; background: var(--navy); padding: 56px 0 24px; }
.footer-grid {
  grid-template-columns: 1.15fr 1fr 1.1fr 1.1fr;
  gap: clamp(24px, 3.3vw, 48px);
  display: grid;
}
.footer-column { flex-direction: column; align-items: flex-start; min-width: 0; display: flex; }
.site-footer p { color: #b8bccd; font-size: 14px; line-height: 1.65; }
.site-footer h2 {
  text-transform: uppercase;
  letter-spacing: .1em;
  color: #f4f5fa;
  border-top: 1px solid #454760;
  width: 100%;
  margin-bottom: 22px;
  padding-top: 16px;
  font-size: 13px;
  line-height: 1.45;
}
.site-footer a { color: #bcc1d3; margin-bottom: 4px; padding: 6px 0; font-size: 14px; line-height: 1.45; }
.site-footer a:hover { color: #fff; text-underline-offset: 4px; text-decoration: underline; }
.footer-product-link { align-items: baseline; gap: 12px; display: flex; }
.footer-series { color: #fff; min-width: 20px; font-size: 12px; font-weight: 750; }
.site-footer .footer-overview { color: #eef0ff; gap: 12px; margin-top: 13px; font-size: 13px; display: inline-flex; }
.footer-entity { margin-top: 19px; }
.footer-entity > span { color: #858da7; margin-bottom: 7px; font-size: 12px; display: block; }
.footer-entity p { margin-bottom: 8px; }
.footer-entity p:last-child { margin-bottom: 0; font-size: 13px; }

.footer-bottom {
  color: #959cb3;
  border-top: 1px solid #ffffff29;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-top: 36px;
  padding-top: 22px;
  font-size: 12px;
  display: flex;
}
.footer-bottom-meta { flex-wrap: wrap; align-items: center; gap: 8px 22px; display: flex; }
.footer-bottom-meta > span { max-width: 460px; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .menu-toggle { display: block; }
  .primary-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    box-shadow: 0 18px 36px #1014322e;
    padding: 6px 0 14px;
    display: none;
  }
  .primary-nav.is-open { display: flex; }
  .primary-nav > a:not(.button),
  .nav-group > a { min-height: auto; padding: 13px 24px; }
  .primary-nav > a:not(.button):after,
  .nav-group > a:after { display: none; }
  .nav-group { flex-direction: column; align-items: stretch; }
  .subnav {
    position: static;
    width: auto;
    box-shadow: none;
    display: block;
    padding: 0 24px 10px;
    border-top: 0;
  }
  .subnav a { padding: 8px 4px; }
  .nav-rfq { margin: 12px 24px; }
  .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .container { width: min(calc(100% - 32px), var(--container)); }
  .blog-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .site-footer { padding-top: 38px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 22px; }
}
@media (max-width: 460px) {
  .footer-grid { grid-template-columns: 1fr; }
  .brand { flex-basis: 170px; }
  .brand img { width: 170px; }
}

#wp-comment-cookies-consent{ width:auto;}