/* P114: four approved presentation scopes only. Independent CSS addon.
 * Source comments describe their original candidate stage.
 * No JavaScript, TOC repair, content, WAF, DNS, PHP, or other-site changes.
 */

/* P113 local-only contrast candidate. Not deployed or browser-verified.
 * Append only to a newly reviewed pending static CSS release; frozen v16/v19/
 * v20, WordPress bodies, widget placement, and runtime JavaScript stay intact.
 */
html body .entry-content .cta-box {
  background: #06182f !important;
  color: #fff !important;
}
html body .entry-content .cta-box h2,
html body .entry-content .cta-box h3,
html body .entry-content .cta-box h4,
html body .entry-content .cta-box p,
html body .entry-content .cta-box li,
html body .entry-content .cta-box strong,
html body .entry-content .cta-box small {
  color: #fff !important;
}
html body .entry-content .cta-box h2,
html body .entry-content .cta-box h3,
html body .entry-content .cta-box h4 {
  background: transparent !important;
}
html body .entry-content .cta-box a,
html body .entry-content .cta-box a:visited {
  color: #fff !important;
  text-decoration: underline !important;
  text-underline-offset: 3px;
}
html body .entry-content .cta-box a span,
html body .entry-content .cta-box a strong,
html body .entry-content .cta-box a em,
html body .entry-content .cta-box a small {
  color: inherit !important;
}
html body .entry-content .cta-box a[href^="https://utage-system.com/line/open/"],
html body .entry-content .cta-box a[href="https://utage-system.com/p/cTmhn3uojDws"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: 48px;
  max-width: 100%;
  padding: 12px 20px;
  border: 2px solid #fff;
  border-radius: 9px;
  background: #fff !important;
  color: #06182f !important;
  font-weight: 800;
  line-height: 1.6;
  white-space: normal;
  overflow-wrap: anywhere;
  text-align: center;
  text-decoration: none !important;
}
html body .entry-content .cta-box a[href^="https://utage-system.com/line/open/"]:hover,
html body .entry-content .cta-box a[href="https://utage-system.com/p/cTmhn3uojDws"]:hover {
  background: #eef3f8 !important;
  color: #06182f !important;
  text-decoration: underline !important;
  text-underline-offset: 3px;
}
html body .entry-content .cta-box a:focus-visible {
  outline: 3px solid #ffd35a !important;
  outline-offset: 4px;
  text-decoration: underline !important;
  text-underline-offset: 3px;
}

/* P113 local-only companion. Not deployed or browser-verified.
 * Restore only the page-37 first heading immediately introducing the exact
 * reviewed Zoom destination: h2 + description paragraph + linked paragraph.
 * Do not lift the site's general duplicate-heading, TOC, or date rules.
 */
html body.page-id-37 .entry-content > h2:first-of-type:has(+ p + p > a[href="https://utage-system.com/p/cTmhn3uojDws"]) {
  display: block !important;
}

/* P112 local-only candidate. Not deployed or browser-verified.
 * Existing sidebar DOM places block-2, block-3, then custom_html-18.
 * Match their order:2 group so video follows the primary LINE offer,
 * while retaining DOM order before the order:3 table of contents.
 */
@media screen and (min-width: 1024px) {
  html body.single-post #sidebar > #custom_html-18 {
    display: block !important;
    order: 2;
  }
}

body.page-id-36 .entry-content .profile-links-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  margin: 20px 0 28px;
}
body.page-id-36 .entry-content .profile-link-btn {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 12px 16px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #18324e !important;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.6;
  text-align: left;
  text-decoration: none;
  white-space: normal;
  overflow-wrap: anywhere;
}
body.page-id-36 .entry-content .profile-link-btn:hover {
  border-color: #18324e;
  background: #eef3f8;
  color: #18324e !important;
  text-decoration: underline;
  text-underline-offset: 3px;
}
body.page-id-36 .entry-content .profile-link-btn:focus-visible {
  outline: 3px solid #0969a7;
  outline-offset: 3px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
body.page-id-36 .entry-content .profile-link-btn.line {
  border-color: #087f43;
  background: #087f43;
  color: #fff !important;
}
body.page-id-36 .entry-content .profile-link-btn.line:hover {
  border-color: #056333;
  background: #056333;
  color: #fff !important;
}
@media (min-width: 600px) {
  body.page-id-36 .entry-content .profile-links-wrap {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  body.page-id-36 .entry-content .profile-links-wrap > .profile-link-btn:only-child {
    grid-column: 1 / -1;
  }
}
