body.single-post {
  --wp-article-ink: #202923;
  --wp-article-deep: #17372f;
  --wp-article-pine: #214b3d;
  --wp-article-leaf: #71994e;
  --wp-article-clay: #b96d46;
  --wp-article-muted: #647169;
  --wp-article-cream: #f6f5ef;
  --wp-article-paper: #fffefa;
  --wp-article-line: #e2e4dc;
  --wp-article-soft: #edf0e8;
  --wp-article-sans: "Noto Sans TC", "Microsoft JhengHei", system-ui, sans-serif;
  --wp-article-serif: "Noto Serif TC", "Songti TC", Georgia, serif;
  background-color: var(--wp-article-cream) !important;
  background-image: none !important;
  color: var(--wp-article-ink);
  font-family: var(--wp-article-sans);
  font-size: 16px;
  line-height: 1.75;
}

/* Header & Brand (New badge + 伊露平安) */
body.single-post .site-header,
body.single-post .header-top {
  background: #fff;
}

body.single-post .header-top {
  padding: 0;
  border-bottom: 1px solid var(--wp-article-line);
}

body.single-post .header-top:before,
body.single-post .header-branding {
  display: none !important;
}

body.single-post #header-top .container {
  display: flex;
  width: min(1210px, calc(100% - 64px));
  max-width: 1210px;
  margin: 0 auto;
  padding-inline: 0;
  min-height: 84px;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

body.single-post .wp-test-brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  position: relative;
  z-index: 5;
}

body.single-post .wp-test-brand img {
  display: block;
  width: 60px;
  height: 60px;
  object-fit: contain;
  margin: 0 !important;
}

body.single-post .wp-test-brand-name {
  color: var(--wp-article-deep);
  font-family: var(--wp-article-sans);
  font-size: 18px;
  font-weight: 750;
  letter-spacing: .12em;
  white-space: nowrap;
}

body.single-post .wp-test-compact-logo,
body.single-post .custom-logo-link {
  display: none !important;
}

body.single-post .main-navigation {
  flex: 1 1 auto;
  min-width: 0;
}

body.single-post .main-navigation ul:not(.children) > li > a {
  padding: 8px 10px;
  font-size: 15px;
  line-height: 1.5;
}

@media (min-width: 961px) {
  body.single-post .main-navigation {
    display: flex;
    align-items: center;
    justify-content: flex-end;
  }

  body.single-post .main-navigation > div {
    width: 100%;
  }

  body.single-post #primary-menu {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: clamp(22px, 3vw, 38px);
    margin: 0;
    padding: 0;
    list-style: none;
  }

  body.single-post #primary-menu > li {
    float: none;
  }

  body.single-post #header-top #primary-menu > li > a {
    display: flex;
    min-height: 48px;
    align-items: center;
    gap: 7px;
    padding: 12px 0;
    color: #252d28;
    font-family: var(--wp-article-sans);
    font-size: 15px;
    font-weight: 650;
    line-height: 1.75;
    letter-spacing: normal;
    text-transform: none;
    white-space: nowrap;
  }

  body.single-post #header-top #primary-menu > .menu-item-has-children > a::after {
    content: "";
    display: block;
    position: static;
    flex: 0 0 13px;
    width: 13px;
    height: 13px;
    margin: 0;
    padding: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23252d28' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.8'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E") center / 13px 13px no-repeat;
  }

  body.single-post .site-search,
  body.single-post #site-navigation-open {
    display: none !important;
  }
}

/* Article Hero (Side-by-side title/meta on left, featured media on right) */
body.single-post .wp-test-hero {
  display: grid !important;
  width: 100%;
  max-width: 100%;
  margin: 49px 0 32px;
  grid-template-columns: minmax(0, 0.76fr) minmax(0, 1.24fr);
  align-items: center;
  gap: clamp(26px, 4vw, 48px);
  padding-bottom: 43px;
  border-bottom: 1px solid var(--wp-article-line);
}

body.single-post .wp-test-hero__copy {
  min-width: 0;
  align-self: start;
}

body.single-post .wp-test-hero__copy--full {
  grid-column: 1 / -1;
}

body.single-post .entry-header {
  margin: 0;
  padding: 0;
  text-align: left;
}

body.single-post .entry-header__category,
body.single-post .cat-links {
  display: block;
  margin: 0;
  color: var(--wp-article-clay);
  font-size: 11px;
  font-weight: 750;
  line-height: 28px;
  letter-spacing: .14em;
  text-decoration: none;
}

body.single-post .entry-header__category a,
body.single-post .cat-links a {
  display: inline;
  color: inherit;
  text-decoration: none;
}

body.single-post .content-single .entry-title,
body.single-post .entry-header h1,
body.single-post .entry-header h2 {
  max-width: 590px;
  margin: 12px 0 16px;
  color: var(--wp-article-deep);
  font-family: var(--wp-article-serif);
  font-size: clamp(34px, 3.35vw, 48px) !important;
  font-weight: 750;
  line-height: 1.38;
  letter-spacing: .01em;
  word-spacing: normal;
  text-wrap: balance;
  word-break: normal;
}

body.single-post .entry-meta,
body.single-post .entry-meta a,
body.single-post .entry-meta time {
  color: var(--wp-article-muted);
  font-size: 12px;
  line-height: 1.6;
}

body.single-post .wp-test-hero__figure,
body.single-post .entry-media {
  position: relative;
  min-width: 0;
  width: 100%;
  margin: 0;
  overflow: hidden;
  border-radius: 5px;
  background: #d9ded4;
  box-shadow: 0 16px 36px rgba(23, 55, 47, 0.1);
}

body.single-post .wp-test-hero__figure img,
body.single-post .entry-media img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 440px;
  aspect-ratio: 1.75;
  object-fit: cover;
  object-position: center;
  margin: 0 !important;
}

/* Main Content & Sidebar Grid */
body.single-post #content.site-content.container {
  display: block !important;
  width: min(1210px, calc(100% - 64px));
  max-width: 1210px;
  margin: 0 auto;
  padding-inline: 0;
}

body.single-post .main-content {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 300px);
  justify-content: stretch;
  align-items: start;
  gap: clamp(36px, 5vw, 68px);
  width: 100%;
  margin: 0 auto 76px;
}

body.single-post #primary.content-area,
body.single-post #secondary.widget-area {
  float: none !important;
  width: auto !important;
  min-width: 0;
  margin: 0 !important;
}

body.single-post #secondary.widget-area {
  position: sticky;
  top: 92px;
  padding: 0 !important;
}

body.single-post .entry-info {
  padding-inline: 0 !important;
}

body.single-post .entry-info .info-box-sharing {
  box-sizing: border-box;
  width: 100%;
  max-width: 760px;
  margin: 0 0 50px !important;
  padding: 13px 20px !important;
}

body.single-post .content-area .site-main,
body.single-post .content-single,
body.single-post article.type-post,
body.single-post .entry-info {
  background: transparent !important;
}

/* Article Content Typography */
body.single-post .entry-content {
  width: 100%;
  max-width: 760px;
  color: #38423b;
  font-size: 16px;
  line-height: 1.95;
}

body.single-post .entry-content p {
  margin: 0 0 22px;
  font-size: 16px !important;
  line-height: 1.95 !important;
}

body.single-post .entry-content p.wp-test-article-intro {
  margin: 0 0 24px;
  padding: 17px 20px;
  border-left: 3px solid #9aaa90;
  background: var(--wp-article-paper);
  color: #3e4b42;
  font-family: var(--wp-article-serif);
  font-size: 19px !important;
  line-height: 1.9 !important;
  border-radius: 0 4px 4px 0;
}

body.single-post .entry-content h2 {
  margin: 46px 0 16px;
  color: var(--wp-article-deep);
  font-family: var(--wp-article-serif);
  font-size: clamp(24px, 2.5vw, 30px) !important;
  line-height: 1.45;
  scroll-margin-top: 94px;
}

body.single-post .entry-content h2::before {
  display: inline-block;
  width: 4px;
  height: .88em;
  margin-right: 12px;
  border-radius: 4px;
  background: var(--wp-article-leaf);
  content: "";
  vertical-align: -.06em;
}

body.single-post .entry-content h3 {
  margin: 30px 0 12px;
  color: var(--wp-article-pine);
  font-size: 20px !important;
  line-height: 1.5;
  scroll-margin-top: 94px;
}

body.single-post .entry-content ul {
  margin: 0 0 24px;
  padding-left: 1.35em;
}

body.single-post .entry-content li {
  padding-left: 4px;
  margin: 6px 0;
}

body.single-post .entry-content li::marker {
  color: var(--wp-article-leaf);
}

body.single-post .entry-content blockquote {
  margin: 28px 0;
  padding: 17px 20px;
  border-left: 3px solid #9aaa90;
  background: var(--wp-article-soft);
  color: #48564c;
  border-radius: 0 4px 4px 0;
}

body.single-post .entry-content img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}

/* TOC & Related Articles (Desktop) */
body.single-post .wp-test-toc,
body.single-post .wp-test-related {
  padding: 18px 20px 16px;
  border: 1px solid var(--wp-article-line);
  border-top: 3px solid var(--wp-article-pine);
  border-radius: 5px;
  background: var(--wp-article-paper);
  box-shadow: 0 4px 16px rgba(23, 55, 47, 0.04);
}

body.single-post .wp-test-toc__heading {
  margin-bottom: 12px;
}

body.single-post .wp-test-toc__eyebrow {
  display: block;
  color: var(--wp-article-clay);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .14em;
  margin-bottom: 4px;
}

body.single-post .wp-test-toc__title,
body.single-post .wp-test-related__title {
  margin: 0;
  color: var(--wp-article-deep);
  font-family: var(--wp-article-serif);
  font-size: 19px;
  font-weight: 700;
}

body.single-post .wp-test-toc nav {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin-top: 10px;
  max-height: min(62vh, 610px);
  overflow-y: auto;
  scrollbar-width: thin;
}

body.single-post .wp-test-toc nav a {
  display: block;
  padding: 7px 0;
  border-top: 1px solid var(--wp-article-line);
  color: #536158;
  font-size: 13px;
  line-height: 1.55;
  text-decoration: none;
  transition: color .15s ease;
}

body.single-post .wp-test-toc nav a:first-child {
  border-top: none;
}

body.single-post .wp-test-toc nav a:hover,
body.single-post .wp-test-related a:hover {
  color: var(--wp-article-clay);
}

body.single-post .wp-test-toc__subitem {
  padding-left: 14px !important;
  font-size: 12px !important;
  color: var(--wp-article-muted) !important;
}

body.single-post .wp-test-toc--mobile {
  display: none;
}

body.single-post .wp-test-related {
  margin-top: 18px;
}

body.single-post .wp-test-related__list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

body.single-post .wp-test-related__list a {
  display: flex;
  flex-direction: column;
  gap: 3px;
  color: var(--wp-article-deep);
  text-decoration: none;
}

body.single-post .wp-test-related__direction {
  color: var(--wp-article-muted);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .04em;
  line-height: 1.4;
}

body.single-post .wp-test-related__post-title {
  font-size: 13px;
  font-weight: 650;
  line-height: 1.55;
}

body.single-post .comments-area {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--wp-article-line);
}

/* Tablet & Mobile Responsiveness */
@media (max-width: 960px) {
  body.single-post #header-top .container {
    width: min(760px, calc(100% - 44px));
    max-width: 760px;
    gap: 12px;
  }
}

@media (max-width: 960px) {
  body.single-post #content.site-content.container {
    width: min(760px, calc(100% - 44px));
  }

  body.single-post .wp-test-hero {
    width: 100%;
    grid-template-columns: 1fr;
    gap: 20px;
    margin: 38px 0 24px;
    padding-bottom: 43px;
  }

  body.single-post .wp-test-hero__copy {
    order: 0;
  }

  body.single-post .content-single .entry-title,
  body.single-post .entry-header h1,
  body.single-post .entry-header h2 {
    max-width: 680px;
  }

  body.single-post .wp-test-hero__figure {
    order: 1;
  }

  body.single-post .wp-test-hero__figure img,
  body.single-post .entry-media img {
    max-height: 420px;
    aspect-ratio: 1.8;
  }

  body.single-post .main-content {
    display: block !important;
    margin: 16px auto 48px;
  }

  body.single-post #secondary.widget-area {
    display: none !important;
  }

  body.single-post .wp-test-toc--mobile {
    display: block;
    margin: 0 0 28px;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--wp-article-line);
    border-top: 3px solid var(--wp-article-pine);
    border-radius: 5px;
    background: var(--wp-article-paper);
  }

  body.single-post .wp-test-toc--mobile summary {
    display: flex;
    min-height: 58px;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    list-style: none;
    cursor: pointer;
  }

  body.single-post .wp-test-toc--mobile summary::-webkit-details-marker {
    display: none;
  }

  body.single-post .wp-test-toc--mobile summary::after {
    content: "＋";
    margin-left: 0;
    color: var(--wp-article-pine);
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
  }

  body.single-post .wp-test-toc--mobile[open] summary::after {
    content: "−";
  }

  body.single-post .wp-test-toc--mobile .wp-test-toc__title {
    margin: 0;
    color: var(--wp-article-deep);
    font-family: var(--wp-article-serif);
    font-size: 16px;
    font-weight: 700;
  }

  body.single-post .wp-test-toc--mobile .wp-test-toc__count {
    margin-left: auto;
    color: var(--wp-article-muted);
    font-size: 11px;
  }

  body.single-post .wp-test-toc--mobile nav {
    margin-top: 0;
    padding: 0 16px 14px;
    max-height: 48vh;
  }

  body.single-post .wp-test-toc--mobile nav a {
    padding: 9px 0;
    font-size: 14px;
  }

  body.single-post .content-single .entry-title,
  body.single-post .entry-header h1,
  body.single-post .entry-header h2 {
    font-size: clamp(34px, 3.35vw, 48px) !important;
    line-height: 1.38;
  }

  body.single-post .entry-content {
    font-size: 16px;
    line-height: 1.95;
  }

  body.single-post .entry-content p {
    font-size: 16px !important;
    line-height: 1.95 !important;
  }

  body.single-post .entry-content p.wp-test-article-intro {
    font-size: 16px !important;
    line-height: 1.9 !important;
  }

  body.single-post .entry-content h2 {
    margin-top: 36px;
    font-size: 24px !important;
  }

  body.single-post .entry-content h3 {
    font-size: 18px !important;
  }
}

/* Smartphone Responsiveness (< 620px) */
@media (max-width: 620px) {
  body.single-post #content.site-content.container {
    width: calc(100% - 36px);
  }

  body.single-post #header-top .container {
    width: calc(100% - 36px);
    min-height: 60px;
  }

  body.single-post .wp-test-brand {
    gap: 8px;
  }

  body.single-post .wp-test-brand img {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
  }

  body.single-post .wp-test-brand-name {
    font-size: 15px;
    letter-spacing: .08em;
  }

  body.single-post .entry-info .info-box-sharing {
    margin: 55px 0 50px !important;
    padding-inline: 16px !important;
  }

  body.single-post .wp-test-hero {
    width: 100%;
    gap: 16px;
    padding: 0 0 25px;
    margin: 30px 0 18px;
  }

  body.single-post .content-single .entry-title,
  body.single-post .entry-header h1,
  body.single-post .entry-header h2 {
    margin: 8px 0 10px;
    font-size: clamp(28px, 7.8vw, 35px) !important;
    line-height: 1.45;
  }

  body.single-post .wp-test-hero__figure,
  body.single-post .entry-media {
    margin-inline: -18px;
    width: calc(100% + 36px);
    border-radius: 0;
  }

  body.single-post .wp-test-hero__figure img,
  body.single-post .entry-media img {
    width: 100%;
    max-height: none;
    aspect-ratio: 1.43;
    object-position: center;
  }
}

/* Affiliate Platform Choices (match the original inline recommendation style) */
body.single-post .entry-content p.affiliate-choice {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 1ch;
  margin: 1em 0 1.6em !important;
  padding: 1.6em !important;
  background: #eee;
  color: #6ca53a;
  font-family: monospace, monospace !important;
  font-size: 17px !important;
  font-weight: 400 !important;
  line-height: 1.6 !important;
}

body.single-post .affiliate-choice__actions {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 1ch;
}

body.single-post .affiliate-choice__product-group {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 1ch;
}

/* Override the theme's left-aligned form controls without changing menu labels. */
body.single-post .comment-form input[type="submit"] {
  text-align: center;
  letter-spacing: normal;
  white-space: nowrap;
}

body.single-post .affiliate-choice__button {
  display: inline-flex;
  align-items: center;
  padding: 0;
  color: #6ca53a;
  font-family: inherit;
  font-size: inherit;
  font-weight: 400;
  line-height: inherit;
  text-decoration: none;
  white-space: nowrap;
}

body.single-post .affiliate-choice__product {
  color: #00a6b6;
}

body.single-post .affiliate-choice__separator {
  color: #6ca53a;
  font-family: inherit;
  font-size: inherit;
  font-weight: 400;
  line-height: inherit;
}

body.single-post .affiliate-choice__product {
  font-family: inherit;
  font-size: inherit;
  font-weight: 400;
  line-height: inherit;
}

body.single-post .affiliate-choice__check {
  color: #6ca53a;
  font-family: inherit;
  font-size: inherit;
  font-weight: 400;
  line-height: inherit;
}

body.single-post .affiliate-choice__button:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

body.single-post .entry-content .affiliate-inline-choice {
  display: inline;
  white-space: normal;
}

body.single-post .entry-content .affiliate-inline-choice__term {
  color: inherit;
}

body.single-post .entry-content .affiliate-inline-choice__link {
  font-size: .88em;
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
}

body.single-post .entry-content .affiliate-inline-choice__link--shopee {
  color: #659c32;
}

body.single-post .entry-content .affiliate-inline-choice__link--coupang {
  color: #008b99;
}

body.single-post .affiliate-inline-choice__separator {
  padding: 0 3px;
  color: var(--wp-article-muted);
}

body.single-post .entry-content p.affiliate-disclosure {
  margin: 30px 0 0 !important;
  padding-top: 12px;
  border-top: 1px solid var(--wp-article-line);
  color: var(--wp-article-muted);
  font-size: 12px !important;
  line-height: 1.7 !important;
}

@media (max-width: 600px) {
  body.single-post .entry-content p.affiliate-choice {
    gap: 0 1ch;
    margin: 1em 0 1.6em !important;
    padding: 1.6em !important;
  }

  body.single-post .affiliate-choice__actions {
    gap: 0 1ch;
  }

  body.single-post .affiliate-choice__product-group {
    gap: 0 1ch;
  }

  body.single-post .entry-content .affiliate-inline-choice__link {
    font-size: .86em;
  }
}
[id^="article-grid-"] { overflow-anchor: none; }
.wp-test-grid-status:not(.wp-test-grid-error) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.wp-test-grid-error { display: block; }
body.single-post [id^="article-grid-"] .qubely-postgrid-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 28px 0 12px;
}
body.single-post [id^="article-grid-"] .qubely-postgrid-pagination .page-numbers {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
  box-sizing: border-box;
  min-width: 42px;
  min-height: 44px;
  padding: 8px 12px;
  margin: 0;
  border: 1px solid #d6ded5;
  border-radius: 6px;
  background: #fffefa;
  color: #214b3d;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  box-shadow: none;
  transition: background-color .15s, border-color .15s;
}
body.single-post [id^="article-grid-"] .qubely-postgrid-pagination a:hover {
  background: #edf0e8;
  border-color: #71994e;
  color: #17372f;
}
body.single-post [id^="article-grid-"] .qubely-postgrid-pagination .current {
  background: #214b3d;
  border-color: #214b3d;
  color: #fffefa;
}
body.single-post [id^="article-grid-"] .qubely-postgrid-pagination a:focus-visible {
  outline: 2px solid #71994e;
  outline-offset: 3px;
}
body.single-post [id^="article-grid-"] .qubely-postgrid-pagination .dots {
  border-color: transparent;
  background: transparent;
  min-width: 24px;
  padding-inline: 4px;
}
@media (max-width: 480px) {
  body.single-post [id^="article-grid-"] .qubely-postgrid-pagination { gap: 5px; }
  body.single-post [id^="article-grid-"] .qubely-postgrid-pagination .page-numbers {
    min-width: 36px;
    padding: 8px;
    font-size: 14px;
  }
}
body.single-post #colophon .wp-test-footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 20px;
  margin-top: 12px;
  font-size: 14px;
}
body.single-post #colophon .wp-test-footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: inherit;
  text-decoration: none;
}
body.single-post #colophon .wp-test-footer-links a:hover { text-decoration: underline; }
body.single-post #colophon .wp-test-footer-links a:focus-visible { outline: 2px solid #71994e; outline-offset: 3px; }
@media (max-width: 960px) {
  body.single-post #header-top .main-navigation { display: none !important; }
  body.single-post #header-top #site-navigation-open,
  body.single-post #header-top .site-search { display: block !important; }
  body.single-post .slideout-sidebar #mobile-navigation { display: block !important; }
}
@media (min-width: 961px) {
  body.single-post .slideout-sidebar { display: none !important; }
  body.single-post .page-overlay { display: none !important; }
}
