/**
 * Ziweilogy editorial styles
 * Scope: individual WordPress posts only (body.zw-post).
 * Compatible with Astra and Classic Editor HTML.
 */

body.zw-post {
  --zw-ink: #342c2a;
  --zw-muted: #746b66;
  --zw-red: #7a0000;
  --zw-red-dark: #590000;
  --zw-gold: #c8a857;
  --zw-gold-pale: #fff8ed;
  --zw-line: #eadfce;
  --zw-paper: #fffdfa;
}

/* Article header */
body.zw-post .entry-header {
  margin-bottom: 2rem;
}

body.zw-post .entry-header .entry-title,
body.zw-post .entry-title {
  color: var(--zw-red);
  font-family: "Outfit", "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  font-size: clamp(2rem, 4.5vw, 3.1rem);
  font-weight: 800;
  letter-spacing: .015em;
  line-height: 1.28;
  margin-bottom: .4em;
}

body.zw-post .entry-meta,
body.zw-post .entry-meta * {
  color: var(--zw-muted);
  font-size: .9rem;
  font-weight: 500;
}

body.zw-post .entry-meta a:hover,
body.zw-post .entry-meta a:focus {
  color: var(--zw-red);
}

/* Classic Editor content */
body.zw-post .entry-content {
  color: var(--zw-ink);
  font-family: "Outfit", "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.95;
}

body.zw-post .entry-content > p {
  margin: 0 0 1.35em;
}

/* The first paragraph becomes a clear article introduction automatically. */
body.zw-post .entry-content > p:first-of-type {
  border-left: 4px solid var(--zw-gold);
  color: #514744;
  font-size: 1.14em;
  line-height: 1.85;
  margin-bottom: 1.8em;
  padding: .15em 0 .15em 1.05em;
}

body.zw-post .entry-content h1,
body.zw-post .entry-content h2,
body.zw-post .entry-content h3,
body.zw-post .entry-content h4,
body.zw-post .entry-content h5,
body.zw-post .entry-content h6 {
  clear: both;
  color: var(--zw-red);
  font-family: "Outfit", "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  font-weight: 800;
}

body.zw-post .entry-content h1 {
  border-bottom: 2px solid var(--zw-line);
  color: var(--zw-red-dark);
  font-size: clamp(1.85rem, 4vw, 2.45rem);
  line-height: 1.35;
  margin: 2.1em 0 .75em;
  padding-bottom: .4em;
}

body.zw-post .entry-content h2 {
  border-bottom: 1px solid var(--zw-line);
  font-size: clamp(1.55rem, 3vw, 2rem);
  line-height: 1.4;
  margin: 2.35em 0 .85em;
  padding: 0 0 .42em .72em;
  position: relative;
}

body.zw-post .entry-content h2::before {
  background: linear-gradient(180deg, var(--zw-red), #b33b2d);
  border-radius: 999px;
  content: "";
  height: 1.2em;
  left: 0;
  position: absolute;
  top: .13em;
  width: 4px;
}

body.zw-post .entry-content h3 {
  color: var(--zw-red-dark);
  font-size: 1.3rem;
  line-height: 1.5;
  margin: 1.8em 0 .65em;
}

body.zw-post .entry-content h4 {
  color: #73520a;
  font-size: 1.08rem;
  margin: 1.55em 0 .5em;
}

body.zw-post .entry-content h5 {
  color: #73520a;
  font-size: 1rem;
  line-height: 1.55;
  margin: 1.4em 0 .45em;
}

body.zw-post .entry-content h6 {
  color: var(--zw-muted);
  font-size: .88rem;
  letter-spacing: .05em;
  line-height: 1.55;
  margin: 1.35em 0 .4em;
  text-transform: uppercase;
}

body.zw-post .entry-content a {
  color: var(--zw-red);
  font-weight: 700;
  text-decoration-color: rgba(122, 0, 0, .35);
  text-decoration-thickness: 1px;
  text-underline-offset: .16em;
}

body.zw-post .entry-content a:hover,
body.zw-post .entry-content a:focus {
  color: #ae2f22;
  text-decoration-color: currentColor;
}

/* Internal links need no special class: normal article links are already
   clearly styled, visible on hover, and keyboard-accessible. */
body.zw-post .entry-content a[href*="ziweilogy.com"] {
  text-decoration-color: var(--zw-gold);
}

body.zw-post .entry-content strong {
  color: #4d1511;
  font-weight: 800;
}

body.zw-post .entry-content ul,
body.zw-post .entry-content ol {
  margin: 0 0 1.5em 1.4em;
  padding-left: .7em;
}

body.zw-post .entry-content li {
  margin-bottom: .48em;
  padding-left: .22em;
}

body.zw-post .entry-content ul > li::marker {
  color: var(--zw-gold);
}

body.zw-post .entry-content ol > li::marker {
  color: var(--zw-red);
  font-weight: 800;
}

body.zw-post .entry-content blockquote {
  background: var(--zw-gold-pale);
  border: 1px solid #f0dfba;
  border-left: 4px solid var(--zw-gold);
  border-radius: 0 10px 10px 0;
  color: #6c541c;
  font-size: 1em;
  font-style: normal;
  line-height: 1.85;
  margin: 1.8em 0;
  padding: 1.1em 1.3em;
}

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

/* FAQ accordions pasted as <details>/<summary> in the Classic Editor. */
body.zw-post .entry-content details {
  background: var(--zw-paper);
  border: 1px solid var(--zw-line);
  border-radius: 10px;
  box-shadow: 0 3px 12px rgba(89, 0, 0, .045);
  margin: .85em 0;
  overflow: hidden;
}

body.zw-post .entry-content summary {
  color: var(--zw-red-dark);
  cursor: pointer;
  font-weight: 800;
  line-height: 1.6;
  list-style: none;
  padding: .9em 3em .9em 1.1em;
  position: relative;
}

body.zw-post .entry-content summary::-webkit-details-marker {
  display: none;
}

body.zw-post .entry-content summary::after {
  color: var(--zw-gold);
  content: "+";
  font-size: 1.45em;
  font-weight: 400;
  line-height: 1;
  position: absolute;
  right: .85em;
  top: .75em;
}

body.zw-post .entry-content details[open] {
  border-color: #e2c988;
}

body.zw-post .entry-content details[open] summary {
  background: #fff8ed;
  border-bottom: 1px solid #f0dfba;
}

body.zw-post .entry-content details[open] summary::after {
  content: "−";
}

body.zw-post .entry-content details > :not(summary) {
  margin: 1em 1.15em 1.15em;
}

body.zw-post .entry-content summary:focus-visible {
  outline: 2px solid var(--zw-gold);
  outline-offset: -3px;
}

/* Common FAQ markup generated by Yoast and other schema plugins. */
body.zw-post .entry-content .schema-faq-section,
body.zw-post .entry-content .wp-block-yoast-faq-block .schema-faq-section {
  background: var(--zw-paper);
  border: 1px solid var(--zw-line);
  border-radius: 10px;
  box-shadow: 0 3px 12px rgba(89, 0, 0, .045);
  margin: .85em 0;
  overflow: hidden;
}

body.zw-post .entry-content .schema-faq-question {
  background: #fff8ed;
  border-bottom: 1px solid #f0dfba;
  color: var(--zw-red-dark);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.6;
  margin: 0;
  padding: .9em 1.1em;
}

body.zw-post .entry-content .schema-faq-answer {
  color: var(--zw-ink);
  padding: .95em 1.1em .15em;
}

body.zw-post .entry-content .schema-faq-answer > :last-child {
  margin-bottom: .9em;
}

body.zw-post .entry-content hr {
  background: linear-gradient(90deg, transparent, var(--zw-gold), transparent);
  border: 0;
  height: 1px;
  margin: 2.5em 0;
}

/* Images and Classic Editor captions */
body.zw-post .entry-content img {
  border-radius: 10px;
  box-shadow: 0 7px 22px rgba(89, 0, 0, .1);
  height: auto;
}

body.zw-post .entry-content figure,
body.zw-post .entry-content .wp-caption {
  margin: 1.8em auto;
}

body.zw-post .entry-content figcaption,
body.zw-post .entry-content .wp-caption-text {
  color: var(--zw-muted);
  font-size: .84em;
  line-height: 1.65;
  margin-top: .65em;
  text-align: center;
}

/* Tables pasted from the Classic Editor remain usable on small screens. */
body.zw-post .entry-content table {
  background: #fff;
  border: 1px solid var(--zw-line);
  border-collapse: separate;
  border-radius: 10px;
  border-spacing: 0;
  display: block;
  margin: 1.8em 0;
  max-width: 100%;
  overflow-x: auto;
  white-space: nowrap;
}

body.zw-post .entry-content th,
body.zw-post .entry-content td {
  border-bottom: 1px solid #f0e8dc;
  padding: .7em .9em;
  text-align: left;
}

body.zw-post .entry-content th {
  background: #fff7e9;
  color: var(--zw-red-dark);
  font-weight: 800;
}

body.zw-post .entry-content tr:last-child td {
  border-bottom: 0;
}

body.zw-post .entry-content code,
body.zw-post .entry-content pre {
  background: #f7f2eb;
  color: #5f2a24;
}

body.zw-post .entry-content code {
  border-radius: 4px;
  font-size: .9em;
  padding: .12em .35em;
}

body.zw-post .entry-content pre {
  border: 1px solid var(--zw-line);
  border-radius: 8px;
  line-height: 1.7;
  margin: 1.8em 0;
  overflow-x: auto;
  padding: 1em 1.15em;
}

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

body.zw-post .entry-content iframe {
  border: 0;
  border-radius: 10px;
  max-width: 100%;
}

body.zw-post .entry-content a:focus-visible {
  border-radius: 2px;
  outline: 2px solid var(--zw-gold);
  outline-offset: 3px;
}

@media (max-width: 600px) {
  body.zw-post .entry-content {
    font-size: 1rem;
    line-height: 1.88;
  }

  body.zw-post .entry-content > p:first-of-type {
    font-size: 1.07em;
    padding-left: .85em;
  }

  body.zw-post .entry-content h2 {
    margin-top: 2em;
  }

  body.zw-post .entry-content blockquote {
    margin: 1.5em 0;
    padding: 1em;
  }
}

/* ---- Ziweilogy blog layout (static site) — modelled on a plain corporate news layout ---- */
body.zw-post{background:#fff}

/* title band */
.zw-phead{background:#f6efe3;border-bottom:1px solid var(--line2)}
.zw-phead-in{max-width:1180px;margin:0 auto;padding:46px 20px 40px}
body.zw-post .zw-phead .entry-title{font-family:var(--sans)!important;color:var(--ink);font-size:clamp(26px,3.6vw,38px);font-weight:600;line-height:1.35;letter-spacing:0;margin:0 0 12px;max-width:900px}
.zw-phead .zw-crumb{margin:0;font-size:14px}
.zw-phead .zw-crumb a{color:var(--ink2)}

/* two columns: sidebar left, article right */
.zw-post-grid{display:grid;grid-template-columns:280px minmax(0,1fr);gap:48px;align-items:start}
body.zw-post .zw-wrap{padding-top:40px}
.zw-article{background:none;border:0;padding:0;box-shadow:none}
.zw-meta-row{display:flex;flex-wrap:wrap;gap:6px 16px;align-items:center;color:var(--muted);font-size:14px;margin:0 0 22px;padding-bottom:16px;border-bottom:1px solid var(--line2)}
.zw-meta-row time:first-child{color:var(--ink2);font-weight:600}

/* article text: plain headings, calm grey-brown body */
body.zw-post .entry-content{color:#4a3d37;font-size:17px;line-height:1.85}
body.zw-post .entry-content > p{margin:0 0 1.15em}
body.zw-post .entry-content > p:first-of-type{border:0;padding:0;font-size:17px;color:var(--ink2);line-height:1.85;margin-bottom:1.2em}
body.zw-post .entry-content h2{color:var(--ink);font-size:22px;font-weight:600;line-height:1.45;margin:2.1em 0 .7em;padding:0;border:0;scroll-margin-top:84px}
body.zw-post .entry-content h2::before{display:none}
body.zw-post .entry-content h3{color:var(--ink);font-size:18.5px;font-weight:600;margin:1.6em 0 .5em}
body.zw-post .entry-content h1,body.zw-post .entry-content h4,body.zw-post .entry-content h5,body.zw-post .entry-content h6{color:var(--ink);font-weight:600}
body.zw-post .entry-content strong{color:var(--ink)}

/* two images after the key points */
.zw-figs{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin:1.6em 0 2em}
.zw-figs figure{margin:0}
.zw-figs img{display:block;width:100%;aspect-ratio:1/1;object-fit:cover;object-position:top;border-radius:16px;border:1px solid var(--line2);background:#fffdf9}
.zw-figs figcaption{font-size:13.5px;color:var(--muted);line-height:1.6;margin-top:8px}

.zwl-tldr{background:#fbf7ef;border:1px solid var(--line2);border-radius:14px;padding:16px 20px 12px;margin:1.2em 0 1.6em}
.zwl-tldr-h{margin:0 0 6px!important;font-weight:700;color:var(--ink);font-size:15px!important}
.zwl-tldr ul{margin:0!important;padding-left:1.2em!important}
.zwl-tldr li{margin:0 0 4px!important;font-size:17px;line-height:1.8}
.zwl-cta{background:#fbf7ef;border:1px solid var(--line2);border-radius:14px;padding:16px;text-align:center;margin:1.8em 0}
.zwl-cta a{display:inline-block;background:var(--red);color:#fff!important;text-decoration:none!important;font-weight:600;padding:11px 24px;border-radius:999px;line-height:1.4}
.zwl-cta a:hover{background:var(--red2)}
body.zw-post .entry-content details{background:#fff;border:1px solid var(--line);border-radius:12px;padding:12px 16px;margin:10px 0}
body.zw-post .entry-content summary{cursor:pointer;font-weight:600;color:var(--ink)}
body.zw-post .entry-content details[open] summary{color:var(--red);margin-bottom:6px}
body.zw-post .entry-content .zw-table{overflow-x:auto;margin:1.4em 0;border:1px solid var(--line);border-radius:12px;background:#fff}
body.zw-post .entry-content table{display:table;width:100%;min-width:480px;border:0;border-radius:0;margin:0;border-collapse:collapse;border-spacing:0;white-space:normal;background:#fff;font-size:16px;line-height:1.7}
body.zw-post .entry-content th{background:#f6efe3;color:var(--ink);font-weight:600;text-align:left;white-space:nowrap}
body.zw-post .entry-content th,body.zw-post .entry-content td{border:0;border-bottom:1px solid var(--line2);border-right:1px solid var(--line2);padding:10px 14px;vertical-align:top;text-align:left}
body.zw-post .entry-content tr>*:last-child{border-right:0}
body.zw-post .entry-content tbody tr:last-child td{border-bottom:0}
body.zw-post .entry-content td:first-child{color:var(--ink);font-weight:500;white-space:nowrap}@media (max-width:700px){body.zw-post .entry-content td:first-child{white-space:normal;min-width:3.2em;max-width:9em}}

/* prev / next */
.zw-pn{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:34px 0 0;padding-top:22px;border-top:1px solid var(--line2)}
.zw-pn a{display:block;border:1px solid var(--line);border-radius:999px;padding:10px 20px;text-decoration:none;color:var(--ink);font-weight:600;font-size:15px;line-height:1.4;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.zw-pn a:hover{border-color:var(--red);color:var(--red)}
.zw-pn small{display:inline;color:var(--muted);font-weight:400;margin-right:8px}
.zw-pn-next{text-align:right}

.zw-author{display:flex;gap:14px;align-items:flex-start;background:#fbf7ef;border-radius:14px;padding:16px 18px;margin:26px 0 0;font-size:14px;color:var(--muted);line-height:1.75}
.zw-author img{border-radius:10px;flex:0 0 auto}
.zw-author b{color:var(--ink);font-size:15px}

/* sidebar */
.zw-side{display:grid;gap:18px}
.zw-side-card{background:#f8f4ec;border:0;border-radius:16px;padding:20px}
.zw-side-card h3{margin:0 0 12px;font-size:15px;font-weight:600;color:var(--red)}
.zw-side-cta{position:relative;overflow:hidden;background:#7a0f12;color:#fff;padding:22px 22px 20px;border:1px solid #c9a45c;box-shadow:0 10px 28px rgba(122,15,18,.28)}
.zw-side-cta:before{content:"";position:absolute;inset:6px;border:1px solid rgba(201,164,92,.45);border-radius:12px;pointer-events:none}
.zw-cta-top{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;margin-bottom:6px}
.zw-cta-tag{display:inline-block;background:#e9c77b;color:#5a0a0c;font-size:13px;font-weight:700;letter-spacing:.04em;padding:5px 11px;border-radius:999px;white-space:nowrap}
.zw-cta-chart{width:92px;height:92px;flex:0 0 92px;margin:-4px -4px 0 0}
.zw-cta-chart .c{fill:rgba(255,255,255,.06);stroke:rgba(233,199,123,.75);stroke-width:1}
.zw-cta-chart .c.hi{fill:#e9c77b;stroke:#e9c77b}
.zw-cta-chart .t{fill:rgba(255,236,200,.8);font-size:11px;text-anchor:middle;font-family:inherit}
.zw-cta-chart .t.hi{fill:#5a0a0c;font-weight:700;font-size:13px}
.zw-cta-chart .m{fill:#e9c77b;font-size:13px;font-weight:700;text-anchor:middle;letter-spacing:.1em}
.zw-cta-chart .m.s{fill:rgba(255,236,200,.75);font-size:10px;font-weight:500}
.zw-side-cta h3{margin:4px 0 8px;font-size:21px;line-height:1.35;font-weight:700;color:#fff}
.zw-side-cta p{margin:0 0 12px;font-size:15px;line-height:1.75;color:#f6e6dc}
.zw-cta-pts{list-style:none;margin:0 0 16px;padding:0}
.zw-cta-pts li{position:relative;padding-left:24px;font-size:15px;line-height:1.6;color:#fff}
.zw-cta-pts li+li{margin-top:6px}
.zw-cta-pts li:before{content:"";position:absolute;left:3px;top:6px;width:6px;height:11px;border:solid #e9c77b;border-width:0 2.5px 2.5px 0;transform:rotate(45deg)}
.zw-side-cta .hp-btn.zw-cta-btn{position:relative;overflow:hidden;display:flex;align-items:center;justify-content:center;gap:10px;width:100%;min-height:54px;background:#e9c77b;color:#5a0a0c!important;font-size:18px;font-weight:700;box-shadow:0 6px 16px rgba(0,0,0,.25);transition:transform .2s,box-shadow .2s,background .2s}
.zw-cta-btn span{display:inline-block;transition:transform .2s}
.zw-side-cta .hp-btn.zw-cta-btn:hover{background:#f3d792;transform:translateY(-2px);box-shadow:0 10px 22px rgba(0,0,0,.3)}
.zw-cta-btn:hover span{transform:translateX(4px)}
@media (prefers-reduced-motion:no-preference){
.zw-cta-btn:after{content:"";position:absolute;top:0;left:-60%;width:40%;height:100%;background:linear-gradient(100deg,transparent,rgba(255,255,255,.55),transparent);transform:skewX(-20deg);animation:zwShine 3.6s ease-in-out 1.2s infinite}
.zw-side-cta{animation:zwGlow 3.2s ease-in-out infinite}
.zw-cta-btn span{animation:zwNudge 1.8s ease-in-out infinite}
}
@keyframes zwShine{0%{left:-60%}35%,100%{left:130%}}
@keyframes zwGlow{0%,100%{box-shadow:0 10px 28px rgba(122,15,18,.28)}50%{box-shadow:0 10px 34px rgba(201,164,92,.55)}}
@keyframes zwNudge{0%,100%{transform:translateX(0)}50%{transform:translateX(5px)}}
.zw-latest,.zw-cats{list-style:none;margin:0;padding:0}
.zw-latest li+li{margin-top:12px}
.zw-latest a{display:flex;gap:12px;align-items:center;text-decoration:none;color:var(--ink)}
.zw-latest img{width:60px;height:60px;border-radius:10px;flex:0 0 auto;border:1px solid var(--line2);background:#fff}
.zw-latest b{display:block;font-size:14px;font-weight:600;line-height:1.45}
.zw-latest time{display:block;font-size:12.5px;color:var(--muted);margin-top:2px}
.zw-latest a:hover b{color:var(--red)}
.zw-cats a{display:flex;justify-content:space-between;padding:7px 0;border-bottom:1px solid #ece3d3;text-decoration:none;color:var(--ink2);font-size:15px}
.zw-cats li:last-child a{border-bottom:0}
.zw-cats a span{color:var(--muted);font-size:13px}
.zw-cats a:hover,.zw-cats a.on{color:var(--red)}

/* related + cards with cover images */
.zw-related{margin-top:40px}
.zw-related h2{font-size:22px;font-weight:600;color:var(--ink);margin:0 0 14px}
.zw-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.zw-card{display:flex;flex-direction:column;background:#fff;border:1px solid var(--line);border-radius:16px;overflow:hidden;text-decoration:none;color:var(--ink);transition:transform .15s,border-color .15s,box-shadow .15s}
.zw-card:hover{transform:translateY(-2px);border-color:var(--gold);box-shadow:var(--shadow)}
.zw-card img{display:block;width:100%;height:auto;aspect-ratio:1200/630;object-fit:cover;border-bottom:1px solid var(--line2)}
.zw-card-b{display:flex;flex-direction:column;flex:1;padding:14px 16px 16px}
.zw-card em{font-style:normal;font-size:12.5px;font-weight:600;color:var(--gold-deep)}
.zw-card b{font-size:16px;font-weight:600;line-height:1.5;margin:4px 0 6px}
.zw-card span{font-size:14px;color:var(--muted);line-height:1.7;flex:1;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.zw-card time{font-size:12.5px;color:#a3958b;margin-top:10px}

/* end-of-post CTA band */
.zw-pcta{background:#f6efe3;border-top:1px solid var(--line2)}
.zw-pcta-in{max-width:1180px;margin:0 auto;padding:34px 20px;display:flex;gap:24px;align-items:center;justify-content:space-between;flex-wrap:wrap}
.zw-pcta-k{margin:0 0 4px;color:var(--red);font-weight:600;font-size:14px}
.zw-pcta h2{margin:0 0 4px;font-size:22px;font-weight:600;color:var(--ink)}
.zw-pcta p{margin:0;color:var(--muted)}

/* blog index */
.zw-bhero{text-align:center;padding:22px 0 8px}
.zw-bhero h1{color:var(--ink);font-size:clamp(30px,5vw,42px);font-weight:600;margin:0 0 8px}
.zw-bhero p{color:var(--muted);max-width:640px;margin:0 auto 18px}
.zw-filter{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;margin:18px 0 26px}
.zw-filter button{border:1px solid var(--line);background:var(--paper);color:var(--ink2);border-radius:999px;padding:7px 15px;font:600 14px/1 var(--sans);cursor:pointer}
.zw-filter button.on{background:var(--red);border-color:var(--red);color:#fff}
.zw-feature{display:grid;grid-template-columns:1.2fr 1fr;gap:0;background:#fff;border:1px solid var(--line);border-radius:20px;overflow:hidden;text-decoration:none;color:var(--ink);margin-bottom:22px;box-shadow:var(--shadow)}
.zw-feature-art{background:#f8f3ea}
.zw-feature-art img{display:block;width:100%;height:100%;object-fit:cover}
.zw-feature-body{padding:26px 28px;align-self:center}
.zw-feature-body b{display:block;font-size:24px;font-weight:600;line-height:1.4;margin:8px 0 10px}
.zw-feature-body span{color:var(--muted)}
.zw-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}

@media(max-width:1000px){
  .zw-post-grid{grid-template-columns:minmax(0,1fr);gap:34px}
  .zw-side{order:2}
}
@media(max-width:820px){.zw-cards,.zw-grid{grid-template-columns:1fr 1fr}.zw-feature{grid-template-columns:1fr}}
@media(max-width:560px){
  .zw-phead-in{padding:28px 16px 24px}
  .zw-figs{grid-template-columns:1fr}
  .zw-pn{grid-template-columns:1fr}.zw-pn-next{text-align:left}
  .zw-cards,.zw-grid{grid-template-columns:1fr}
  .zw-wrap{padding:16px 14px 40px}
  body.zw-post .entry-content{font-size:16.5px}
}

/* AdSense: sidebar unit sticks on desktop, hidden on phones (sidebar stacks above the article there) */
.zw-side-ad{position:sticky;top:90px;margin-top:20px}
.zw-side-ad .zw-ad{margin:0}
.zw-ad-end{margin:28px 0 8px}
@media(max-width:980px){.zw-side-ad{display:none}}

/* blog index: pagination + in-feed ad */
.zw-grid-ad{grid-column:1/-1}
.zw-grid-ad .zw-ad{margin:4px 0}
.zw-pager{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;margin:36px 0 8px}
.zw-pager a,.zw-pager span{min-width:44px;height:44px;padding:0 14px;display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--line);border-radius:10px;background:#fff;color:var(--ink);text-decoration:none;font-size:16px;font-weight:600}
.zw-pager a:hover{border-color:var(--red);color:var(--red)}
.zw-pager .on{background:var(--red);border-color:var(--red);color:#fff}
.zw-pager .off{color:#c9bdb2;background:#faf6ee}
.zw-bhero-sm{padding-bottom:10px}

/* sidebar on the right (desktop); below the article on phones */
.zw-post-grid{grid-template-columns:minmax(0,1fr) 300px}
.zw-post-grid>.zw-side{grid-column:2;grid-row:1}
.zw-post-grid>:not(.zw-side){grid-column:1;grid-row:1}
@media(max-width:1000px){.zw-post-grid{grid-template-columns:minmax(0,1fr)}.zw-post-grid>.zw-side,.zw-post-grid>:not(.zw-side){grid-column:1;grid-row:auto}.zw-post-grid>.zw-side{order:2}}

.zw-phead-grid{display:grid;grid-template-columns:minmax(0,1fr) 460px;gap:40px;align-items:center}
.zw-phead-cat{display:inline-block;margin-bottom:12px;padding:4px 12px;border-radius:999px;background:#7a0c0c;color:#fff;font-size:14px;font-weight:600}
.zw-phead-img{margin:0;border-radius:16px;overflow:hidden;box-shadow:0 10px 30px rgba(90,30,10,.18)}
.zw-phead-img img{display:block;width:100%;height:auto}
@media(max-width:900px){.zw-phead-grid{grid-template-columns:1fr;gap:20px}.zw-phead-img{max-width:560px}}

/* ── Post header: real photo banner with a readable title card ── */
.zw-phead-photo{position:relative;background:#2b1d16;border-bottom:0;min-height:400px;display:flex;align-items:flex-end;overflow:hidden}
.zw-phead-photo .zw-phead-bg{position:absolute;inset:0;margin:0}
.zw-phead-photo .zw-phead-bg img{width:100%;height:100%;object-fit:cover;display:block}
.zw-phead-photo .zw-phead-in{position:relative;width:100%;padding:120px 20px 0}
.zw-phead-card{background:#fffdf9;border-radius:18px 18px 0 0;padding:28px 32px 24px;max-width:820px;box-shadow:0 -6px 24px rgba(30,10,5,.12)}
.zw-phead-card .entry-title{margin-bottom:10px!important}
.zw-phead-credit{position:absolute;right:14px;top:12px;font-size:12px;color:#fff;background:rgba(30,15,10,.55);padding:3px 9px;border-radius:999px;text-decoration:none}
@media(max-width:700px){
  .zw-phead-photo{min-height:300px}
  .zw-phead-photo .zw-phead-in{padding:150px 0 0}
  .zw-phead-card{border-radius:16px 16px 0 0;padding:20px 18px 16px;max-width:none}
}
