/* Image and article rhythm for the six public content pages. */
body:is(.page-id-7,.page-id-20,.page-id-22,.page-id-24,.page-id-26,.page-id-28) main .entry-content,
body:is(.page-id-7,.page-id-20,.page-id-22,.page-id-24,.page-id-26,.page-id-28) main .wp-block-post-title {
  width: min(100% - 48px, 1392px);
  max-width: 1392px !important;
  margin-inline: auto !important;
}
body.single-post main .entry-content:has(.cs-editorial-post),
body.blog main .entry-content:has(.cs-editorial-post),
body.single-post main .wp-block-post-title:has(+ .entry-content .cs-editorial-post) {
  width: min(100% - 48px, 1392px);
  max-width: 1392px !important;
  margin-inline: auto !important;
}
.cs-editorial-content { width: 100%; }
.cs-editorial-lead { max-width: 850px; margin: 0 0 72px; }
.cs-editorial-lead p { margin: 0; color: var(--cs-ink); font-size: clamp(21px, 1.5vw, 25px); line-height: 1.68; font-weight: 500; letter-spacing: -.02em; }
.cs-editorial-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(48px, 5.5vw, 104px); align-items: center; margin: 0 0 clamp(92px, 8vw, 152px); }
.cs-editorial-row--reverse .cs-editorial-image { order: 2; }
.cs-editorial-row--reverse .cs-editorial-copy { order: 1; }
.cs-editorial-image, body.page-id-7 .cs-editorial-row .cs-p004-visual { width: 100%; min-width: 0; aspect-ratio: 1.16; margin: 0 !important; padding: 0 !important; overflow: hidden; background: #f5f5f2; border: 1px solid var(--cs-line); border-radius: 6px; }
.cs-editorial-image img, body.page-id-7 .cs-editorial-row .cs-p004-visual img { display: block; width: 100%; height: 100%; max-height: none; object-fit: cover; object-position: center; border-radius: 0; }
.cs-editorial-copy { max-width: 560px; }
.cs-editorial-copy p { max-width: none; margin: 0 0 24px; color: var(--cs-muted); font-size: var(--cs-type-body, 17px); line-height: 1.85; }
.cs-editorial-copy p:first-child { color: var(--cs-ink); font-size: clamp(20px, 1.45vw, 24px); font-weight: 500; line-height: 1.65; }
.cs-editorial-copy p + p { padding-top: 22px; border-top: 1px solid var(--cs-line); }
.cs-editorial-end, .cs-editorial-form-intro, .cs-editorial-policy { max-width: 850px; margin: 0 0 44px; }
.cs-editorial-end p, .cs-editorial-form-intro p, .cs-editorial-policy p { font-size: var(--cs-type-body, 17px); line-height: 1.85; color: var(--cs-muted); }
.cs-editorial-end { padding-top: 28px; border-top: 1px solid var(--cs-line); }
.cs-editorial-form-intro { padding-top: 32px; border-top: 1px solid var(--cs-line); }
.cs-editorial-form-intro p:first-child { color: var(--cs-ink); font-size: 21px; font-weight: 600; }
.cs-editorial-policy p { padding: 22px 0; border-top: 1px solid var(--cs-line); }
.cs-editorial-content--20 + .fluentform,
.cs-editorial-content--7 + .fluentform { max-width: 850px; }
.cs-editorial-content--24 .cs-editorial-image--banner { aspect-ratio: 2.45; margin-bottom: 74px !important; }
.cs-editorial-content--24 .cs-editorial-image--banner img { object-position: center 58%; }
.cs-editorial-faq { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); column-gap: clamp(48px, 6vw, 112px); row-gap: 0; }
.cs-editorial-faq-item { padding: 27px 0 42px; border-top: 1px solid var(--cs-line); }
.cs-editorial-faq-item p { margin: 0; color: var(--cs-muted); font-size: var(--cs-type-body, 17px); line-height: 1.8; }
.cs-editorial-faq-item p:first-child { margin-bottom: 13px; color: var(--cs-ink); font-size: 20px; font-weight: 600; line-height: 1.5; }
body.page-id-7 .cs-editorial-row .cs-p004-visual img { object-fit: contain; background: #f7f7f5; }
body.page-id-7 .cs-editorial-row:first-child { margin-bottom: 96px; }
body.page-id-20 .cs-editorial-copy p { padding-left: 0; background: transparent; border: 0; }
body.page-id-20 .cs-editorial-copy p + p { margin-top: 16px; padding-top: 25px; border-top: 1px solid var(--cs-line); }
/* Ordering guide: product imagery and concise steps using the existing page content. */
body.page-id-20 main .entry-content > p:first-child { width:100%; max-width:none; min-height:380px; display:flex; align-items:center; padding:56px min(6vw,80px); margin:0 0 80px; box-sizing:border-box; color:#fff; font-size:clamp(24px,2.2vw,34px); font-weight:600; line-height:1.55; background:linear-gradient(90deg,rgba(17,27,28,.91) 0%,rgba(17,27,28,.75) 44%,rgba(17,27,28,.03) 78%),url('https://cards.chiaostore.com/wp-content/uploads/2026/10/scene-06-%E6%B7%B1%E8%89%B2%E6%A9%AB%E5%B9%85.jpg') center/cover; border-radius:8px; }
body.page-id-20 main .entry-content > h2 { max-width:none; margin:0 0 28px; }
body.page-id-20 main .entry-content > ul.wp-block-list { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:18px; max-width:none; padding:0; margin:0 0 30px; list-style:none; }
body.page-id-20 main .entry-content > ul.wp-block-list li { min-width:0; padding:30px 26px 34px; background:#f7f7f5; border:1px solid #e8e9e5; border-radius:8px; font-size:17px; line-height:1.8; }
body.page-id-20 main .entry-content > ul.wp-block-list strong { display:block; margin-bottom:12px; font-size:21px; line-height:1.45; color:#202622; }
body.page-id-20 main .entry-content > ul.wp-block-list + p { max-width:none; padding:20px 25px; margin:0 0 92px; border-left:3px solid #8da69c; background:#f7f7f5; }
body.page-id-20 main .entry-content > h2:nth-of-type(2) { padding-top:46px; border-top:1px solid #e8e9e5; }
body.page-id-20 main .entry-content > h2:nth-of-type(2) + p { max-width:780px; min-height:290px; box-sizing:border-box; padding:44px 43% 42px 42px; margin:0 0 92px; background:#f7f7f5 url('https://cards.chiaostore.com/wp-content/uploads/2026/10/kaiji-mix01-front-300x300.jpg') right 30px center/230px auto no-repeat; border:1px solid #e8e9e5; border-radius:8px; }
body.page-id-20 main .entry-content > h2:nth-of-type(3) { padding-top:46px; border-top:1px solid #e8e9e5; }
body.page-id-20 main .entry-content > h2:nth-of-type(3) + p { max-width:780px; margin-bottom:28px; }
body.page-id-20 main .entry-content > p:first-child { max-width:100% !important; color:#fff !important; font-size:clamp(24px,2.2vw,34px) !important; }
body.page-id-20 main .entry-content > ul.wp-block-list { max-width:100% !important; }
@media(max-width:900px){body.page-id-20 main .entry-content > ul.wp-block-list{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){body.page-id-20 main .entry-content > p:first-child{min-height:310px;padding:32px;font-size:22px;background-position:62% center}body.page-id-20 main .entry-content > ul.wp-block-list{grid-template-columns:1fr}body.page-id-20 main .entry-content > h2:nth-of-type(2) + p{min-height:0;padding:26px 26px 235px;background-position:center bottom 15px;background-size:205px auto}}
/* Keep every section aligned with the same page grid. */
body.page-id-20 main .entry-content > h2,
body.page-id-20 main .entry-content > ul.wp-block-list + p,
body.page-id-20 main .entry-content > h2:nth-of-type(2) + p,
body.page-id-20 main .entry-content > h2:nth-of-type(3) + p,
body.page-id-20 main .entry-content > .fluentform_wrapper_3 { width:100% !important; max-width:100% !important; box-sizing:border-box; }
body.page-id-20 main .entry-content > h2:nth-of-type(2) + p { min-height:280px; padding:64px 48% 48px 48px !important; font-size:19px; line-height:1.7; background:#f7f7f5 url('https://cards.chiaostore.com/wp-content/uploads/2026/11/pet-scene-01.jpg') right 24px center/44% auto no-repeat !important; }
body.page-id-20 main .entry-content > h2:nth-of-type(2) + p { position:relative; }
body.page-id-20 main .entry-content > .fluentform_wrapper_3 { padding:42px; border:1px solid #e8e9e5; border-radius:8px; }
body.page-id-20 .fluentform_wrapper_3 form > fieldset { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px 28px; }
body.page-id-20 .fluentform_wrapper_3 .ff-t-container { display:none !important; }
body.page-id-20 .fluentform_wrapper_3 .ff-el-group { min-width:0; margin-bottom:0; }
body.page-id-20 .fluentform_wrapper_3 .ff-custom_html,
body.page-id-20 .fluentform_wrapper_3 .ff_submit_btn_wrapper { grid-column:1/-1; }
@media(max-width:700px){body.page-id-20 main .entry-content > h2:nth-of-type(2) + p{min-height:0;padding:28px 28px 240px;background-position:center bottom 30px !important;background-size:calc(100% - 48px) auto !important}body.page-id-20 main .entry-content > .fluentform_wrapper_3{padding:24px}body.page-id-20 .fluentform_wrapper_3 form > fieldset{display:block}body.page-id-20 .fluentform_wrapper_3 .ff-el-group{margin-bottom:20px}}
@media(max-width:700px){body.page-id-20 main .entry-content > h2:nth-of-type(2) + p{min-height:0 !important;padding:28px 28px 235px !important;font-size:17px}}
@media (max-width: 800px) {
  body:is(.page-id-7,.page-id-20,.page-id-22,.page-id-24,.page-id-26,.page-id-28) main .entry-content,
  body:is(.page-id-7,.page-id-20,.page-id-22,.page-id-24,.page-id-26,.page-id-28) main .wp-block-post-title { width: min(100% - 36px, 1392px); }
  body.single-post main .entry-content:has(.cs-editorial-post), body.blog main .entry-content:has(.cs-editorial-post) { width: min(100% - 36px, 1392px); }
  .cs-editorial-lead { margin-bottom: 42px; }
  .cs-editorial-row { display: flex; flex-direction: column; gap: 28px; margin-bottom: 76px; align-items: stretch; }
  .cs-editorial-row--reverse .cs-editorial-image, .cs-editorial-row--reverse .cs-editorial-copy { order: initial; }
  .cs-editorial-image, body.page-id-7 .cs-editorial-row .cs-p004-visual { aspect-ratio: 1.25; }
  .cs-editorial-copy { max-width: none; }
  .cs-editorial-faq { grid-template-columns: 1fr; }
  .cs-editorial-content--24 .cs-editorial-image--banner { aspect-ratio: 1.5; margin-bottom: 42px !important; }
}
