.single-post #main-content .container {
  max-width: 1180px;
}

.single-post #main-content .container::before {
  display: none;
}

.single-post #left-area {
  width: 100%;
  padding-right: 0;
}

.single-post #sidebar {
  display: none;
}

.single-post article.et_pb_post {
  max-width: 800px;
  margin-right: auto;
  margin-left: auto;
}

#main-content .mochi-article-upgrade {
  color: #303030;
  font-family: Lato, "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  font-size: 18px;
  line-height: 1.85;
}

#main-content .mochi-article-upgrade > p {
  margin: 0 0 22px !important;
  color: #303030 !important;
  font-size: 18px !important;
  line-height: 1.85 !important;
}

#main-content .mochi-article-upgrade > h2 {
  margin: 64px 0 22px !important;
  padding-left: 14px;
  border-left: 5px solid #f2c94c;
  color: #252525 !important;
  font-size: 30px !important;
  font-weight: 800 !important;
  line-height: 1.4 !important;
}

#main-content .mochi-article-upgrade > h3 {
  margin: 46px 0 18px !important;
  color: #252525 !important;
  font-size: 23px !important;
  font-weight: 800 !important;
  line-height: 1.45 !important;
}

#main-content .mochi-article-upgrade > p a,
#main-content .mochi-article-upgrade > h2 a,
#main-content .mochi-article-upgrade > h3 a,
#main-content .mochi-related a {
  color: #9b5c00;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.mochi-article-upgrade > figure,
.mochi-photo-grid figure {
  margin: 24px 0 32px !important;
}

.mochi-article-upgrade > figure img,
.mochi-photo-grid img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
}

.mochi-photo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 24px 0 34px;
}

.mochi-photo-grid figure {
  margin: 0 !important;
}

/*
 * Photo grids are galleries, not general layout containers. If malformed or
 * legacy block markup places prose or headings inside a photo grid, force the
 * entire group back to a single-column reading flow so text never sits beside
 * an image.
 */
@supports selector(.mochi-photo-grid:has(> :not(figure))) {
  .mochi-photo-grid:has(> :not(figure)) {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    aspect-ratio: auto;
  }

  .mochi-photo-grid:has(> :not(figure)) > * {
    grid-column: 1 / -1;
    width: 100%;
    margin-right: 0 !important;
    margin-left: 0 !important;
  }

  .mochi-photo-grid:has(> :not(figure)) figure img {
    height: auto;
    object-fit: contain;
  }
}

.mochi-article-upgrade > .mochi-photo-single--portrait {
  width: min(100%, 620px);
  margin-right: auto !important;
  margin-left: auto !important;
}

.mochi-photo-grid:not(.mochi-photo-grid--feature-three) figure:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  width: calc(50% - 7px);
  margin-right: auto !important;
  margin-left: auto !important;
}

.mochi-photo-grid--feature-three {
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  grid-template-rows: repeat(2, minmax(0, 1fr));
  aspect-ratio: 16 / 9;
}

.mochi-photo-grid--feature-three figure {
  display: flex;
  min-height: 0;
  flex-direction: column;
}

.mochi-photo-grid--feature-three figure:first-child {
  grid-row: 1 / span 2;
}

.mochi-photo-grid--feature-three figure img {
  min-height: 0;
  flex: 1 1 auto;
  object-fit: cover;
}

.mochi-photo-grid--feature-three figcaption {
  flex: 0 0 auto;
}

/*
 * WordPress may omit a custom group class when rendering older block markup.
 * Detect an exact three-photo group from its children so the magazine layout
 * remains reusable without article-specific selectors. Older browsers keep the
 * centered 2 + 1 fallback above.
 */
@supports selector(.mochi-photo-grid:has(> figure)) {
  .mochi-photo-grid:has(> figure:first-child:nth-last-child(3)) {
    grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
    grid-template-rows: repeat(2, minmax(0, 1fr));
    aspect-ratio: 16 / 9;
  }

  .mochi-photo-grid:has(> figure:first-child:nth-last-child(3)) figure {
    display: flex;
    min-height: 0;
    flex-direction: column;
  }

  .mochi-photo-grid:has(> figure:first-child:nth-last-child(3)) figure:first-child {
    grid-row: 1 / span 2;
  }

  .mochi-photo-grid:has(> figure:first-child:nth-last-child(3)) figure:last-child:nth-child(odd) {
    grid-column: auto;
    width: auto;
    margin-right: 0 !important;
    margin-left: 0 !important;
  }

  .mochi-photo-grid:has(> figure:first-child:nth-last-child(3)) figure img {
    min-height: 0;
    flex: 1 1 auto;
    object-fit: cover;
  }

  .mochi-photo-grid:has(> figure:first-child:nth-last-child(3)) figcaption {
    flex: 0 0 auto;
  }
}

.mochi-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  margin: 0 0 44px;
  padding: 18px 20px;
  border-radius: 14px;
  background: #f6f6f6;
}

.mochi-toc strong {
  width: 100%;
  color: #252525;
  font-size: 16px;
}

.mochi-toc a {
  padding: 6px 10px;
  border: 1px solid #ddd;
  border-radius: 999px;
  background: #fff;
  font-size: 15px;
  text-decoration: none !important;
}

.mochi-related {
  margin: 52px 0 18px;
  padding: 26px;
  border-radius: 16px;
  background: #f7f7f7;
}

.mochi-related h2 {
  margin: 0 0 16px !important;
  padding: 0 !important;
  border: 0 !important;
  font-size: 25px !important;
}

.mochi-related ul {
  margin: 0;
  padding-left: 22px;
}

.mochi-related li {
  margin: 9px 0;
  line-height: 1.6;
}

.mochi-line-cta {
  --mochi-line: #06c755;
  --mochi-line-dark: #00a846;
  --mochi-yellow: #fcdd33;
  --mochi-ink: #18233b;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px;
  gap: 34px;
  align-items: center;
  margin: 54px 0 34px;
  padding: 38px;
  overflow: hidden;
  border: 1px solid rgba(24, 35, 59, 0.16);
  border-radius: 26px;
  background:
    radial-gradient(circle at 92% 5%, rgba(24, 35, 59, 0.1) 0 76px, transparent 77px),
    linear-gradient(135deg, var(--mochi-yellow) 0%, #f4cf25 100%);
  box-shadow: 0 22px 60px rgba(24, 35, 59, 0.18);
  color: var(--mochi-ink);
}

.mochi-line-cta__glow {
  position: absolute;
  top: -130px;
  right: -80px;
  width: 330px;
  height: 330px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(24, 35, 59, 0.13), rgba(24, 35, 59, 0) 68%);
  pointer-events: none;
}

.mochi-line-cta__copy,
.mochi-line-cta__qr {
  position: relative;
  z-index: 1;
}

#main-content .mochi-line-cta .mochi-line-cta__eyebrow {
  margin: 0 0 10px !important;
  color: var(--mochi-ink) !important;
  font-size: 12px !important;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1.3 !important;
}

#main-content .mochi-line-cta h2 {
  margin: 0 0 14px !important;
  padding: 0 !important;
  border: 0 !important;
  color: var(--mochi-ink) !important;
  font-size: clamp(26px, 3.3vw, 38px) !important;
  font-weight: 900 !important;
  line-height: 1.28 !important;
  letter-spacing: -0.02em;
}

#main-content .mochi-line-cta h2 span {
  display: inline-block;
  margin-top: 5px;
  padding: 1px 9px 4px;
  border-radius: 7px;
  background: var(--mochi-ink);
  color: #fff !important;
}

#main-content .mochi-line-cta .mochi-line-cta__lead {
  max-width: 570px;
  margin: 0 0 18px !important;
  color: rgba(24, 35, 59, 0.8) !important;
  font-size: 16px !important;
  line-height: 1.75 !important;
}

.mochi-line-cta__benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 24px !important;
  padding: 0 !important;
  list-style: none !important;
}

.mochi-line-cta__benefits li {
  margin: 0 !important;
  padding: 5px 10px;
  border: 1px solid rgba(24, 35, 59, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  color: var(--mochi-ink);
  font-size: 13px;
  line-height: 1.4;
}

.mochi-line-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.mochi-line-cta a.mochi-line-cta__button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.3;
  text-decoration: none !important;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.mochi-line-cta__button svg {
  width: 23px;
  height: 23px;
}

.mochi-line-cta a.mochi-line-cta__button--primary {
  background: var(--mochi-line);
  box-shadow: 0 10px 28px rgba(6, 199, 85, 0.28);
  color: #06150c !important;
}

.mochi-line-cta a.mochi-line-cta__button--secondary {
  border-color: rgba(24, 35, 59, 0.28);
  background: rgba(24, 35, 59, 0.06);
  color: var(--mochi-ink) !important;
}

.mochi-line-cta a.mochi-line-cta__button:hover {
  transform: translateY(-2px);
}

.mochi-line-cta a.mochi-line-cta__button--primary:hover {
  background: #19dc67;
  box-shadow: 0 14px 32px rgba(6, 199, 85, 0.36);
}

.mochi-line-cta a.mochi-line-cta__button:focus-visible,
.mochi-line-cta__copy-id:focus-visible {
  outline: 3px solid var(--mochi-ink);
  outline-offset: 3px;
}

.mochi-line-cta__id-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 18px;
  color: rgba(24, 35, 59, 0.68);
  font-size: 13px;
}

.mochi-line-cta__id-row strong {
  color: var(--mochi-ink);
  font-size: 15px;
  letter-spacing: 0.02em;
}

.mochi-line-cta__copy-id {
  padding: 4px 9px;
  border: 1px solid rgba(24, 35, 59, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.34);
  color: var(--mochi-ink);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

.mochi-line-cta__copy-status {
  min-width: 3em;
  color: #006b2c;
  font-weight: 700;
}

.mochi-line-cta__qr-card {
  display: flex;
  flex-direction: column;
  gap: 9px;
  align-items: center;
  padding: 14px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.28);
}

.mochi-line-cta__qr-card img {
  display: block;
  width: 100%;
  max-width: 150px;
  height: auto;
  border-radius: 7px !important;
}

.mochi-line-cta__qr-card span {
  color: #203026;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
  text-align: center;
}

.mochi-facts {
  margin: 34px 0 22px;
  padding: 28px;
  border: 1px solid #f1df9b;
  border-radius: 18px;
  background: #fff8df;
}

.mochi-facts h2 {
  margin: 3px 0 20px !important;
  padding: 0 !important;
  border: 0 !important;
  font-size: 27px !important;
}

.mochi-fact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 20px;
  margin: 0;
}

.mochi-fact-grid div {
  padding: 0 0 12px;
  border-bottom: 1px solid rgba(111, 80, 0, 0.18);
}

.mochi-fact-grid dt {
  color: #6f5000;
  font-size: 14px;
  font-weight: 800;
}

.mochi-fact-grid dd {
  margin: 3px 0 0;
  color: #303030;
  font-size: 16px;
  line-height: 1.6;
}

.mochi-store-facts .mochi-store-facts__updated {
  margin: 16px 0 0 !important;
  color: #6b6b6b !important;
  font-size: 14px !important;
}

.mochi-source-note {
  margin: 0 0 32px;
  padding: 20px 22px;
  border-left: 4px solid #d7a600;
  border-radius: 0 12px 12px 0;
  background: #f7f7f7;
}

.mochi-source-note p {
  margin: 0 !important;
  color: #4a4a4a !important;
  font-size: 15px !important;
  line-height: 1.75 !important;
}

.mochi-video-embed {
  position: relative;
  aspect-ratio: 16 / 9;
  margin: 24px 0 34px;
  overflow: hidden;
  border-radius: 14px;
  background: #111;
}

.mochi-video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.mochi-video-local {
  margin: 24px 0 34px;
  text-align: center;
}

.mochi-video-local video {
  display: block;
  width: min(100%, 560px);
  height: auto;
  max-height: 80vh;
  margin: 0 auto;
  border-radius: 14px;
  background: #111;
}

.mochi-article-upgrade figcaption {
  margin: 10px 4px 0;
  color: #666;
  font-size: 14px;
  line-height: 1.6;
  text-align: center;
}

@media (max-width: 767px) {
  .single-post #main-content .container {
    width: calc(100% - 40px) !important;
  }

  .single-post article.et_pb_post {
    max-width: none;
  }

  #main-content .mochi-article-upgrade,
  #main-content .mochi-article-upgrade > p {
    font-size: 17px !important;
    line-height: 1.8 !important;
  }

  #main-content .mochi-article-upgrade > h2 {
    margin-top: 46px !important;
    font-size: 25px !important;
  }

  #main-content .mochi-article-upgrade > h3 {
    margin-top: 36px !important;
    font-size: 21px !important;
  }

  .mochi-photo-grid {
    grid-template-columns: 1fr;
  }

  .mochi-photo-grid:not(.mochi-photo-grid--feature-three) figure:last-child:nth-child(odd) {
    grid-column: auto;
    width: 100%;
  }

  .mochi-photo-grid--feature-three {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    aspect-ratio: auto;
  }

  .mochi-photo-grid--feature-three figure:first-child {
    grid-row: auto;
  }

  .mochi-photo-grid--feature-three figure img {
    height: auto;
    object-fit: contain;
  }

  @supports selector(.mochi-photo-grid:has(> figure)) {
    .mochi-photo-grid:has(> figure:first-child:nth-last-child(3)) {
      grid-template-columns: 1fr;
      grid-template-rows: none;
      aspect-ratio: auto;
    }

    .mochi-photo-grid:has(> figure:first-child:nth-last-child(3)) figure:first-child {
      grid-row: auto;
    }

    .mochi-photo-grid:has(> figure:first-child:nth-last-child(3)) figure img {
      height: auto;
      object-fit: contain;
    }
  }

  .mochi-line-cta {
    grid-template-columns: 1fr;
    gap: 0;
    margin: 42px 0 28px;
    padding: 28px 22px;
    border-radius: 20px;
  }

  .mochi-line-cta__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .mochi-line-cta a.mochi-line-cta__button {
    width: 100%;
  }

  .mochi-line-cta__qr {
    display: none;
  }

  .mochi-fact-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mochi-line-cta a.mochi-line-cta__button {
    transition: none;
  }
}

/* Store-level social routing */
.mochi-store-socials {
  --mochi-social-wine: #732c2c;
  --mochi-social-blue: #1877f2;
  --mochi-social-ink: #302a28;
  --mochi-social-muted: #6f6560;
  margin: 34px 0 32px;
  padding: 34px;
  scroll-margin-top: 110px;
  border: 1px solid rgba(115, 44, 44, 0.13);
  border-radius: 24px;
  background: linear-gradient(145deg, #fff 0%, #fff8e9 100%);
  box-shadow: 0 18px 48px rgba(84, 57, 39, 0.1);
  color: var(--mochi-social-ink);
  font-family: Lato, "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
}

.mochi-store-socials__header {
  max-width: 760px;
  margin-bottom: 25px;
}

.mochi-store-socials__header .mochi-eyebrow {
  margin: 0 0 7px !important;
  color: #987a3e !important;
  font-size: 13px !important;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.mochi-store-socials__header h2 {
  margin: 0 0 10px !important;
  padding: 0 !important;
  color: var(--mochi-social-wine) !important;
  font-size: clamp(27px, 4vw, 36px) !important;
  font-weight: 800 !important;
  line-height: 1.3 !important;
}

.mochi-store-socials__header > p:last-child {
  margin: 0 !important;
  color: var(--mochi-social-muted) !important;
  font-size: 16px !important;
  line-height: 1.75 !important;
}

.mochi-store-socials__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.mochi-store-socials__card {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 15px 16px;
  align-items: center;
  padding: 22px;
  border: 1px solid rgba(24, 119, 242, 0.16);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
}

.mochi-store-socials__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--mochi-social-blue);
  box-shadow: 0 8px 18px rgba(24, 119, 242, 0.2);
  color: #fff;
  font-size: 27px;
  font-weight: 900;
  line-height: 1;
}

.mochi-store-socials__copy h3 {
  margin: 0 0 4px !important;
  padding: 0 !important;
  color: var(--mochi-social-wine) !important;
  font-size: 19px !important;
  font-weight: 800 !important;
  line-height: 1.45 !important;
}

.mochi-store-socials__copy p {
  margin: 0 !important;
  color: var(--mochi-social-muted) !important;
  font-size: 14px !important;
  line-height: 1.55 !important;
}

.mochi-store-socials a.mochi-store-socials__button {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  padding: 11px 16px;
  border-radius: 12px;
  background: var(--mochi-social-blue);
  color: #fff !important;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.4;
  text-decoration: none !important;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.mochi-store-socials a.mochi-store-socials__button:hover {
  filter: brightness(0.95);
  transform: translateY(-1px);
}

.mochi-store-socials a.mochi-store-socials__button:focus-visible {
  outline: 3px solid var(--mochi-social-wine);
  outline-offset: 3px;
}

.mochi-store-socials__note {
  margin: 20px 0 0 !important;
  color: #766c67 !important;
  font-size: 13px !important;
  line-height: 1.65 !important;
}

.mochi-store-socials--compact {
  margin-top: 0;
}

@media (max-width: 767px) {
  .mochi-store-socials {
    margin: 26px 0;
    padding: 25px 20px;
    border-radius: 20px;
    scroll-margin-top: 82px;
  }

  .mochi-store-socials__grid {
    grid-template-columns: 1fr;
  }

  .mochi-store-socials__card {
    padding: 19px;
  }

  .mochi-store-socials__header h2 {
    font-size: 27px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mochi-store-socials a.mochi-store-socials__button {
    transition: none;
  }
}
