/* Yupenghua independent distillation series; does not change non-series pages. */
.yp-series-nav{display:none}
main.page:has(.yp-distill) .yp-series-nav{display:block}
main.page:has(.yp-distill) .hero,main.page:has(.yp-distill) .yp-page-gallery,main.page:has(.yp-distill) .yp-photo-note{display:none!important}
main.page:has(.yp-distill) .content__entry{padding-top:32px!important;max-width:1160px!important;}
main.page .yp-series-nav,main.page .yp-distill{font-family:inherit;color:#203b4c;line-height:1.64;}
main.page .yp-series-nav * ,main.page .yp-distill *{box-sizing:border-box}
main.page .yp-series-nav{border:1px solid #d3e0e7;border-radius:12px;background:#f6f9fa;margin:0 0 36px;overflow:hidden;}
main.page .yp-nav-top{display:flex;gap:18px;align-items:center;justify-content:space-between;padding:19px 22px;background:#17394c;color:#fff;}
main.page .yp-nav-top strong{display:block;color:#fff;font-size:23px;line-height:1.18;}
main.page .yp-nav-description{display:block;color:#d5e4ea;font-size:13px;line-height:1.5;margin-top:6px;}
main.page .yp-nav-eyebrow{display:block;font-size:11px;letter-spacing:.14em;color:#e6a553;margin-bottom:5px;font-weight:700;}
main.page .yp-nav-home{color:#17394c!important;text-decoration:none!important;background:#e9a54f;padding:9px 15px;border-radius:6px;font-size:14px;font-weight:750;white-space:nowrap;}
main.page .yp-nav-caption{font-size:12px;color:#5f7480;padding:0 22px 15px;margin:0!important;}
main.page .yp-chapter-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;padding:17px 22px 12px;}
main.page .yp-chapter{display:flex;gap:9px;align-items:baseline;padding:11px 10px;background:white;border:1px solid #d8e2e8;border-radius:6px;font-size:13.8px;line-height:1.3;text-decoration:none!important;color:#17394c!important;font-weight:650;min-width:0;}
main.page .yp-chapter-num{color:#9b6a36;font-variant-numeric:tabular-nums;font-size:12px;font-weight:750;flex:none;}
main.page .yp-chapter--pending{color:#405d6c!important;cursor:default;opacity:.85}
main.page .yp-chapter--link:hover{border-color:#db9d4d;background:#fff8ed;}
main.page .yp-series-nav .yp-current{background:#e9a54f!important;color:#17394c!important;border-color:#e9a54f!important;font-weight:800;}
main.page .yp-series-nav .yp-current.yp-nav-home{box-shadow:0 0 0 2px rgba(255,255,255,.25)}
main.page .yp-distill .yp-kicker{color:#b17634;font-size:11px;letter-spacing:.13em;text-transform:uppercase;font-weight:750;display:block;margin:0 0 9px;}
main.page .yp-distill h1{font-size:clamp(31px,4vw,48px);letter-spacing:-.025em;line-height:1.12;color:#15374b;margin:0 0 18px;font-weight:800;}
main.page .yp-distill h2{font-size:clamp(23px,2.5vw,29px);line-height:1.22;color:#15374b;margin:35px 0 15px;font-weight:800;}
main.page .yp-distill h3{font-size:19px;line-height:1.28;color:#163b4f;margin:0 0 8px;font-weight:800;}
main.page .yp-distill p{color:#4c6370;line-height:1.72;font-size:16px;margin:0 0 15px;max-width:none;}
main.page .yp-distill .yp-lead{font-size:18px;line-height:1.68;color:#3d5868;}
main.page .yp-distill a{color:#126283;text-decoration:underline;text-underline-offset:3px;}
main.page .yp-distill .yp-two-col{display:grid;grid-template-columns:1.15fr .85fr;gap:30px;align-items:start;margin:0 0 30px;}
main.page .yp-distill .yp-hero-image{width:100%;height:340px;object-fit:cover;border-radius:10px;display:block;}
main.page .yp-distill .yp-small-note{font-size:12.5px!important;line-height:1.5;color:#607787;margin-top:8px;}
main.page .yp-distill .yp-badges{display:flex;gap:8px;flex-wrap:wrap;margin:17px 0 20px;}
main.page .yp-distill .yp-badges span{font-size:12px;padding:7px 10px;background:#edf4f7;border:1px solid #cfdee6;border-radius:5px;color:#29566b;font-weight:700;}
main.page .yp-distill .yp-button{display:inline-flex;align-items:center;justify-content:center;background:#e6a24d;color:#17394c!important;border-radius:6px;padding:12px 18px;text-decoration:none!important;font-weight:800;font-size:15px;line-height:1.3;}
main.page .yp-distill .yp-button:hover{background:#f0b866}
main.page .yp-distill .yp-panel{background:#f0f5f7;border:1px solid #d5e1e7;border-left:4px solid #dd9d46;padding:20px 22px;border-radius:6px;margin:22px 0;}
main.page .yp-distill .yp-panel h3{font-size:18px;margin-bottom:7px;}
main.page .yp-distill .yp-panel p:last-child{margin-bottom:0;}
main.page .yp-distill .yp-info-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin:22px 0 32px;}
main.page .yp-distill .yp-info-card{border:1px solid #d7e2e8;border-top:4px solid #dca352;background:#fff;padding:18px;border-radius:6px;}
main.page .yp-distill .yp-info-card p{font-size:14px;line-height:1.55;margin:0;}
main.page .yp-distill .yp-info-card h3{font-size:17px;}
main.page .yp-distill .yp-process-flow{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:9px;margin:22px 0 35px;}
main.page .yp-distill .yp-process-flow>div{border-radius:5px;background:#183b50;padding:15px 8px;color:#fff;font-size:13px;font-weight:700;text-align:center;line-height:1.35;position:relative;}
main.page .yp-distill .yp-process-flow small{display:block;color:#e6b76b;letter-spacing:.08em;margin-bottom:7px;font-size:11px;}
main.page .yp-distill .yp-steps-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px;margin:22px 0 34px;}
main.page .yp-distill .yp-process-step{padding:20px;border:1px solid #d3e0e7;background:#f7f9fa;border-top:4px solid #dda04b;border-radius:7px;}
main.page .yp-distill .yp-process-step h3{margin:0 0 9px!important;}
main.page .yp-distill .yp-process-step p{margin:0!important;font-size:15px!important;line-height:1.62!important;}
main.page .yp-distill .yp-step-no{display:inline-block;margin-right:7px;color:#ae702c;font-size:16px;}
main.page .yp-distill figure{margin:22px 0 30px;background:#f2f6f8;padding:16px;border:1px solid #d7e2e8;border-radius:8px;}
main.page .yp-distill figure img{display:block;width:100%;height:auto;background:white;}
main.page .yp-distill figure figcaption{font-size:13px!important;color:#5a7280;line-height:1.55;padding-top:12px;}
main.page .yp-distill .yp-table-scroll{overflow-x:auto;border:2px solid #193e52;border-radius:5px;margin:18px 0 24px;}
main.page .yp-distill table{width:100%;min-width:580px;border-collapse:collapse;margin:0;}
main.page .yp-distill th{background:#193e52!important;color:white!important;text-align:left;padding:12px 14px;font-weight:750;}
main.page .yp-distill td{color:#27485b!important;padding:11px 14px;border-bottom:1px solid #bdd0db;}
main.page .yp-distill tr:nth-child(even) td{background:#edf3f6;}
main.page .yp-distill .yp-contact-panel{background:#19384a;color:#fff;border-radius:9px;padding:30px 34px;display:flex;gap:24px;align-items:center;justify-content:space-between;margin:38px 0 6px;}
main.page .yp-distill .yp-contact-panel h2{color:#fff!important;margin:0 0 7px;font-size:26px;}
main.page .yp-distill .yp-contact-panel p{color:#dce9ef!important;font-size:15px;margin:0;}
main.page .yp-distill .yp-contact-panel .yp-button{flex:none;}
main.page .yp-distill .yp-back-row{display:flex;gap:12px;flex-wrap:wrap;margin-top:25px;}
main.page .yp-distill .yp-outline{border:1px solid #a3becd;background:#fff;color:#214f65!important;border-radius:6px;padding:9px 14px;display:inline-block;text-decoration:none!important;font-size:14px;font-weight:700;}
main.page .yp-distill .yp-source-note{font-size:13px;color:#6b7c86;border-top:1px solid #d8e4e8;padding-top:14px;margin-top:26px;}
@media(max-width:850px){main.page .yp-chapter-grid{grid-template-columns:repeat(2,1fr)}main.page .yp-distill .yp-process-flow{grid-template-columns:repeat(3,1fr)}main.page .yp-distill .yp-info-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:650px){main.page .yp-nav-top{flex-direction:column;align-items:flex-start;padding:18px}main.page .yp-nav-top strong{font-size:19px}main.page .yp-chapter-grid{grid-template-columns:repeat(2,minmax(0,1fr));padding:12px;gap:6px}main.page .yp-chapter{font-size:12px;padding:10px 8px}main.page .yp-chapter-num{font-size:11px}main.page .yp-nav-caption{padding:0 12px 12px}main.page .yp-distill .yp-two-col{grid-template-columns:1fr;gap:14px}main.page .yp-distill .yp-hero-image{height:auto;max-height:380px}main.page .yp-distill .yp-process-flow{grid-template-columns:repeat(2,1fr)}main.page .yp-distill .yp-steps-list{grid-template-columns:1fr}main.page .yp-distill .yp-info-grid{grid-template-columns:1fr}main.page .yp-distill .yp-contact-panel{flex-direction:column;align-items:stretch;padding:25px 20px}main.page .yp-distill .yp-contact-panel h2{font-size:23px}}

main.page .yp-distill .yp-feedstock-flow{grid-template-columns:repeat(4,minmax(0,1fr))}
@media(max-width:650px){main.page .yp-distill .yp-feedstock-flow{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* V0.4 seven-chapter batch: additions scoped to distillation only */
main.page .yp-distill .yp-batch-table td,main.page .yp-distill .yp-batch-table th{vertical-align:top;}
main.page .yp-distill .yp-batch-table td:first-child{font-weight:700;}
main.page .yp-distill .yp-batch-table .yp-number{text-align:right;font-variant-numeric:tabular-nums;}
main.page .yp-distill .yp-figure-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px;align-items:start;margin:24px 0;}
main.page .yp-distill .yp-figure-grid figure{margin:0;height:100%;}
main.page .yp-distill .yp-figure-grid img{max-height:380px;object-fit:contain;}
main.page .yp-distill .yp-figure-wide img{max-height:620px;object-fit:contain;}
main.page .yp-distill .yp-case-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:22px 0;}
main.page .yp-distill .yp-case{border:1px solid #cbdbe4;background:#fff;border-radius:8px;overflow:hidden;}
main.page .yp-distill .yp-case img{display:block;width:100%;height:165px;object-fit:cover;background:#e9eef1;}
main.page .yp-distill .yp-case-body{padding:15px 15px 18px;}
main.page .yp-distill .yp-case h3{font-size:17px;margin:0 0 8px;}
main.page .yp-distill .yp-case p{font-size:13.5px;line-height:1.55;margin:0;}
main.page .yp-distill .yp-inline-stat{display:flex;align-items:baseline;gap:7px;flex-wrap:wrap;}
main.page .yp-distill .yp-keyline{border-top:2px solid #173c50;padding-top:16px;margin-top:24px;}
main.page .yp-distill .yp-subtle{font-size:13px;color:#587180;}
main.page .yp-distill .yp-label{display:inline-block;background:#edf4f7;color:#21536c;padding:4px 8px;border-radius:4px;font-size:12px;font-weight:700;}
@media(max-width:850px){main.page .yp-distill .yp-case-grid{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media(max-width:650px){main.page .yp-distill .yp-case-grid,main.page .yp-distill .yp-figure-grid{grid-template-columns:1fr}main.page .yp-distill .yp-case img{height:205px}}
