/* Waggy palette: teal #20747c, orange #e8a138, pale highlight #f2f6f7 */
body.single-post {
  background: #f2f6f7 !important;
}

body.single-post #content.site-content.container {
  width: calc(100% - 32px) !important;
  max-width: 1380px !important;
  margin-inline: auto !important;
  padding: 28px 0 48px !important;
  background: transparent !important;
}

body.single-post #the-post,
body.single-post .the-post {
  box-sizing: border-box;
  width: 100%;
  max-width: 1380px;
  margin: 0 auto 28px !important;
  padding: clamp(20px, 3.5vw, 56px) !important;
  background: #fff !important;
  border-radius: 24px;
  box-shadow: 0 10px 34px rgba(24, 66, 70, .08);
}

body.single-post #the-post h1,
body.single-post .the-post h1 {
  text-align: right;
  font-size: clamp(1.75rem, 2.2vw, 2.4rem) !important;
}

/* The theme's floating story index duplicates the article contents box. */
body.single-post #story-index-icon,
body.single-post #story-index {
  display: none !important;
}

body.single-post #the-post .entry-content,
body.single-post .the-post .entry-content {
  max-width: 1500px;
  margin-inline: auto;
  line-height: 2.05;
}

body.single-post #the-post .entry-content img,
body.single-post .the-post .entry-content img {
  height: auto;
  border-radius: 16px;
}

.waggy-toc {
  direction: rtl;
  margin: 0 auto 30px;
  padding: 22px 28px;
  max-width: 1500px;
  background: #edf5f5;
  border-right: 4px solid #20747c;
  border-radius: 14px;
}

.waggy-toc__title {
  margin: 0 0 12px;
  color: #20747c;
  font-size: 1.2rem;
}

.waggy-toc ol {
  margin: 0;
  padding: 0 22px 0 0;
}

.waggy-toc li {
  margin: 6px 0;
}

.waggy-toc a {
  color: #26383a;
  text-decoration: none;
}

.waggy-toc a:hover,
.waggy-toc a:focus {
  color: #20747c;
  text-decoration: underline;
}

body.single-post #related-posts,
body.single-post .related-posts,
body.single-post .about-author {
  box-sizing: border-box;
  background: #fff;
  border-radius: 20px;
  padding: clamp(18px, 2.5vw, 36px);
  box-shadow: 0 8px 28px rgba(24, 66, 70, .06);
}

/* The first Jannah footer widget contains Waggy's four footer sections. */
#footer .waggy-blog-footer {
  display: grid !important;
  grid-template-columns: minmax(220px, 1.1fr) minmax(180px, 1fr) minmax(180px, 1fr) minmax(360px, 2.5fr) !important;
  align-items: start !important;
  gap: clamp(20px, 3vw, 42px) !important;
  width: 100% !important;
  max-width: none !important;
  box-sizing: border-box;
}

#footer-widgets-container .custom_html-2,
#footer-widgets-container .custom_html-2 h2,
#footer-widgets-container .custom_html-2 h3,
#footer-widgets-container .custom_html-2 a,
#footer-widgets-container .custom_html-2 p,
#footer-widgets-container .custom_html-2 li,
#footer-widgets-container .custom_html-2 span,
#footer-widgets-container .widget_custom_html,
#footer-widgets-container .widget_custom_html h2,
#footer-widgets-container .widget_custom_html h3,
#footer-widgets-container .widget_custom_html a,
#footer-widgets-container .widget_custom_html p,
#footer-widgets-container .widget_custom_html li,
#footer-widgets-container .widget_custom_html span {
  color: #fff !important;
}

#footer-widgets-container .custom_html-2 a:hover,
#footer-widgets-container .widget_custom_html a:hover {
  color: #e8a138 !important;
}

#footer-widgets-container .custom_html-2 img,
#footer-widgets-container .widget_custom_html img {
  max-width: 100%;
}

#footer .waggy-newsletter,
#footer .waggy-contact,
#footer .waggy-newsletter p,
#footer .waggy-contact h3,
#footer .waggy-contact-line {
  color: #26383a !important;
}

#footer .waggy-contact-line span,
#footer .waggy-contact-line a {
  color: #43839a !important;
}

#footer .waggy-brand-head img {
  filter: brightness(0) invert(1);
}

#footer-widgets-container .custom_html-2 a[href="https://waggy.ir/"],
#footer-widgets-container .widget_custom_html a[href="https://waggy.ir/"] {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

@media (max-width: 900px) {
  #footer .waggy-blog-footer {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

@media (max-width: 600px) {
  body.single-post #content.site-content.container {
    width: calc(100% - 20px) !important;
    padding-top: 18px !important;
  }

  body.single-post #the-post,
  body.single-post .the-post {
    padding: 18px !important;
    border-radius: 16px;
  }

  .waggy-toc {
    padding: 18px;
  }
}

/* Blog landing page only: centered, PetPors-inspired editorial cards. */
body.blog {
  background: #f2f6f7 !important;
}

body.blog #content.site-content.container {
  width: 84% !important;
  max-width: 1220px !important;
  margin-inline: auto !important;
  margin-top: 0 !important;
  padding: 8px 0 56px !important;
  background: transparent !important;
}

body.blog #posts-container {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 24px !important;
  width: 100% !important;
  max-width: 1220px !important;
  margin: 0 auto !important;
  padding: 0 !important;
  list-style: none !important;
  direction: rtl;
}

body.blog #posts-container > li.waggy-archive-intro {
  display: block !important;
  grid-template-columns: 1fr !important;
  grid-column: 1 / -1 !important;
  margin: 0 !important;
  padding: 10px 12px 20px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  text-align: center;
}

body.blog #posts-container > li.waggy-archive-intro {
  display: block !important;
  grid-template-columns: 1fr !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
}

body.blog .waggy-archive-intro h1 {
  position: relative;
  margin: 0 0 8px !important;
  color: #20747c;
  font-size: clamp(30px, 3vw, 40px) !important;
  line-height: 1.35;
}

body.blog .waggy-archive-intro h1::after {
  position: absolute;
  top: 3px;
  right: -18px;
  width: 5px;
  height: 15px;
  border-radius: 99px;
  background: #e8a138;
  box-shadow: 9px 6px 0 -1px #e8a138;
  content: "";
  transform: rotate(32deg);
}

body.blog .waggy-archive-intro p {
  max-width: 820px;
  margin: 0 !important;
  color: #68757a;
  font-size: 16px;
  line-height: 1.8;
}

body.blog #posts-container > li.post-item {
  display: flex !important;
  float: none !important;
  flex-direction: column !important;
  width: auto !important;
  min-width: 0;
  height: 100%;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden;
  border: 1px solid #e7eded;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(24, 66, 70, .06);
  transition: transform .2s ease, box-shadow .2s ease;
}

body.blog #posts-container > li.post-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(24, 66, 70, .12);
}

body.blog #posts-container .post-thumb {
  position: relative;
  display: block !important;
  float: none !important;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 16 / 9;
  margin: 0 !important;
  overflow: hidden;
  background: #eaf3f2;
}

body.blog #posts-container .post-thumb img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  transition: transform .35s ease;
}

body.blog #posts-container > li.post-item:hover .post-thumb img {
  transform: scale(1.035);
}

body.blog #posts-container .post-cat-wrap {
  right: 16px !important;
  bottom: 14px !important;
  left: auto !important;
}

body.blog #posts-container .post-cat {
  padding: 6px 11px;
  border-radius: 999px;
  background: #20747c !important;
  color: #fff !important;
  font-size: 13px;
}

body.blog #posts-container .post-details {
  display: flex !important;
  flex: 1;
  flex-direction: column;
  width: 100% !important;
  min-width: 0;
  padding: 18px 20px 20px !important;
  text-align: right;
}

body.blog #posts-container .post-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px !important;
  color: #7b8588;
  font-size: 13px;
}

body.blog #posts-container .tie-alignright {
  margin-inline-start: auto;
}

body.blog #posts-container .post-title {
  margin: 0 0 10px !important;
  font-size: 19px !important;
  line-height: 1.7 !important;
}

body.blog #posts-container .post-title a {
  color: #2f3338 !important;
  text-decoration: none;
}

body.blog #posts-container .post-title a:hover {
  color: #20747c !important;
}

body.blog #posts-container .post-excerpt {
  display: -webkit-box;
  overflow: hidden;
  margin: 0 0 16px !important;
  color: #68757a;
  font-size: 14px;
  line-height: 1.9;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

body.blog #posts-container .more-link {
  align-self: flex-start;
  margin-top: auto !important;
  padding: 9px 16px !important;
  border: 0 !important;
  border-radius: 10px !important;
  background: #20747c !important;
  color: #fff !important;
  font-weight: 700;
}

body.blog #posts-container > li.waggy-archive-intro + li.post-item {
  grid-column: 1 / -1 !important;
  display: grid !important;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr) !important;
  align-items: stretch;
  width: 100% !important;
  height: 246px !important;
  min-height: 246px !important;
  border-radius: 18px;
}

body.blog #posts-container > li.waggy-archive-intro + li.post-item .post-thumb {
  grid-column: 1;
  grid-row: 1;
  height: 100% !important;
  min-height: 0 !important;
  aspect-ratio: auto;
}

body.blog #posts-container > li.waggy-archive-intro + li.post-item .post-details {
  grid-column: 2;
  grid-row: 1;
  align-items: flex-start;
  justify-content: center;
  padding: 16px 30px !important;
  text-align: right !important;
}

body.blog #posts-container > li.waggy-archive-intro + li.post-item .post-meta,
body.blog #posts-container > li.waggy-archive-intro + li.post-item .post-excerpt,
body.blog #posts-container > li.waggy-archive-intro + li.post-item .post-cat-wrap {
  display: none !important;
}

body.blog #posts-container > li.waggy-archive-intro + li.post-item .post-title {
  width: 100%;
  margin: 0 0 16px !important;
  text-align: right !important;
  font-size: clamp(22px, 2vw, 28px) !important;
  line-height: 1.5 !important;
}

body.blog #posts-container > li.waggy-services-panel {
  grid-column: 1 / -1 !important;
  display: block !important;
  width: 100% !important;
  margin: 8px 0 0 !important;
  padding: 0 !important;
  overflow: visible !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.blog .waggy-services-panel__head {
  margin: 0 0 18px;
  text-align: center;
}

body.blog .waggy-services-panel__head h2 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  margin: 0 !important;
  color: #145d64;
  font-size: clamp(24px, 2.2vw, 30px) !important;
  line-height: 1.4 !important;
}

body.blog .waggy-services-panel__head h2::before,
body.blog .waggy-services-panel__head h2::after {
  display: block;
  width: 50px;
  height: 2px;
  background: #e8a138;
  content: "";
}

body.blog .waggy-latest-heading h2 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin: 0 !important;
  color: #20747c;
  font-size: clamp(22px, 2.2vw, 30px) !important;
  line-height: 1.5 !important;
}

body.blog .waggy-latest-heading h2::before,
body.blog .waggy-latest-heading h2::after {
  display: block;
  width: 50px;
  height: 2px;
  background: #e8a138;
  content: "";
}

body.blog .waggy-service-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

body.blog .waggy-service-card {
  display: flex;
  min-height: 138px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 18px 12px;
  border: 1px solid #e6eeee;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(24, 66, 70, .06);
  color: #26383a !important;
  text-align: center;
  text-decoration: none !important;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

body.blog .waggy-service-card:hover,
body.blog .waggy-service-card:focus-visible {
  transform: translateY(-3px);
  border-color: #b8d6d8;
  box-shadow: 0 12px 26px rgba(24, 66, 70, .12);
  color: #20747c !important;
}

body.blog .waggy-service-card__icon {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 50%;
  background: #f7f6f1;
  color: #20747c;
}

body.blog .waggy-service-card:nth-child(even) .waggy-service-card__icon {
  color: #e8a138;
}

body.blog .waggy-service-card__icon svg {
  width: 32px;
  height: 32px;
}

body.blog .waggy-service-card__title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.65;
}

body.blog #posts-container > li.waggy-latest-heading {
  grid-column: 1 / -1 !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  margin: 14px 0 -4px !important;
  padding: 0 2px 8px !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.blog .pagination,
body.blog .pagination a,
body.blog .page-numbers {
  border-radius: 10px;
}

@media (max-width: 900px) {
  body.blog #posts-container {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 18px !important;
  }

  body.blog .waggy-service-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  body.blog #content.site-content.container {
    width: calc(100% - 24px) !important;
    padding: 20px 0 36px !important;
  }

  body.blog #posts-container {
    grid-template-columns: 1fr !important;
    width: 100% !important;
    gap: 16px !important;
  }

  body.blog #posts-container > li.waggy-archive-intro {
  display: block !important;
  grid-template-columns: 1fr !important;
    padding: 10px 10px 18px !important;
  }

  body.blog .waggy-archive-intro p {
    font-size: 15px;
  }

  body.blog #posts-container > li.waggy-archive-intro + li.post-item {
    grid-template-columns: 1fr !important;
    height: auto !important;
    min-height: 0 !important;
  }

  body.blog #posts-container > li.waggy-archive-intro + li.post-item .post-thumb {
    grid-column: 1;
    grid-row: 1;
    height: auto !important;
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  body.blog #posts-container > li.waggy-archive-intro + li.post-item .post-details {
    grid-column: 1;
    grid-row: 2;
    padding: 18px !important;
  }

  body.blog .waggy-service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  body.blog .waggy-service-card {
    min-height: 124px;
    padding: 14px 9px;
  }

  body.blog .waggy-service-card__title {
    font-size: 13px;
  }

  body.blog #posts-container > li.waggy-latest-heading {
    align-items: center;
  }

  body.blog .waggy-latest-heading h2 {
    gap: 10px;
  }

  body.blog .waggy-latest-heading h2::before,
  body.blog .waggy-latest-heading h2::after {
    width: 28px;
  }
}

/* Waggy editorial direction: warm cream, sage, amber, and deep teal. */
body.blog,
body.single-post {
  background: #fbf8f1 !important;
}

body.single-post #the-post,
body.single-post .the-post,
body.single-post #related-posts,
body.single-post .related-posts,
body.single-post .about-author {
  border: 1px solid #e7e4dc;
  background: #fffdf9 !important;
  box-shadow: 0 6px 20px rgba(23, 59, 64, .06);
}

.waggy-toc {
  background: #e8efe6;
  border-right-color: #1f6f78;
}

.waggy-toc__title,
.waggy-toc a:hover,
.waggy-toc a:focus {
  color: #1f6f78;
}

body.blog #content.site-content.container {
  width: calc(100% - 64px) !important;
  max-width: 1240px !important;
  padding: 20px 0 64px !important;
}

body.blog .waggy-archive-intro h1,
body.blog .waggy-latest-heading h2,
body.blog .waggy-services-panel__head h2 {
  color: #1f6f78;
}

body.blog #posts-container > li.post-item {
  border-color: #e7e4dc;
  background: #fffdf9;
  box-shadow: 0 5px 18px rgba(23, 59, 64, .055);
}

body.blog #posts-container > li.post-item:hover {
  box-shadow: 0 10px 24px rgba(23, 59, 64, .1);
}

body.blog #posts-container > li.waggy-archive-intro + li.post-item {
  height: 300px !important;
  min-height: 300px !important;
  border: 0;
  background: #e8efe6;
  box-shadow: none;
}

body.blog #posts-container .post-cat,
body.blog #posts-container .more-link {
  background: #1f6f78 !important;
}

body.blog #posts-container .post-title a {
  color: #173b40 !important;
}

body.blog #posts-container .post-title a:hover {
  color: #1f6f78 !important;
}

body.blog .waggy-service-card {
  border-color: transparent;
  background: #ffe0b6;
  box-shadow: none;
}

body.blog .waggy-service-card:nth-child(2),
body.blog .waggy-service-card:nth-child(3) {
  background: #e8efe6;
}

body.blog .waggy-service-card:nth-child(5) {
  background: #f5ead9;
}

body.blog .waggy-service-card:hover,
body.blog .waggy-service-card:focus-visible {
  border-color: #8db499;
  box-shadow: 0 8px 18px rgba(23, 59, 64, .08);
  color: #175860 !important;
}

body.blog .waggy-service-card__icon {
  background: rgba(255, 253, 249, .82);
  color: #1f6f78;
}

body.blog .waggy-service-card:nth-child(even) .waggy-service-card__icon {
  color: #b9781c;
}

body.blog .pagination,
body.blog .pagination a,
body.blog .page-numbers {
  border-color: #e7e4dc;
  background-color: #fffdf9;
}

@media (max-width: 900px) {
  body.blog #posts-container > li.waggy-archive-intro + li.post-item {
    height: 280px !important;
    min-height: 280px !important;
  }
}

@media (max-width: 600px) {
  body.blog #content.site-content.container {
    width: calc(100% - 24px) !important;
    padding: 16px 0 42px !important;
  }

  body.blog #posts-container > li.waggy-archive-intro + li.post-item {
    height: auto !important;
    min-height: 0 !important;
    border: 1px solid #e7e4dc;
    background: #fffdf9;
  }
}

/* v1.1.0: narrower, calmer reading measure for single articles. */
body.single-post #content.site-content.container {
  box-sizing: border-box;
  width: calc(100% - 40px) !important;
  max-width: 1220px !important;
  margin-inline: auto !important;
}

body.single-post #the-post,
body.single-post .the-post {
  box-sizing: border-box;
  width: 100% !important;
  max-width: 1160px !important;
  margin-inline: auto !important;
  padding: clamp(24px, 4vw, 52px) !important;
}

body.single-post #the-post .entry-content,
body.single-post .the-post .entry-content {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  margin-inline: auto;
  font-size: clamp(16px, 1.15vw, 18px);
  line-height: 2.05;
  overflow-wrap: anywhere;
}

/* Keep the contents panel aligned to the article card, while prose stays easy to scan. */
body.single-post .entry-content > p,
body.single-post .entry-content > h2,
body.single-post .entry-content > h3,
body.single-post .entry-content > h4,
body.single-post .entry-content > ul,
body.single-post .entry-content > ol,
body.single-post .entry-content > blockquote {
  box-sizing: border-box;
  width: 100%;
  max-width: 980px;
  margin-inline: auto;
}

body.single-post .waggy-toc {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  padding: clamp(18px, 2.5vw, 28px);
}

body.single-post .waggy-toc ol {
  padding-inline-start: 22px;
}

body.single-post .waggy-toc li {
  padding-inline-start: 3px;
  line-height: 1.9;
  overflow-wrap: anywhere;
}

body.single-post .waggy-toc a {
  text-underline-offset: 3px;
}

body.single-post .entry-content img,
body.single-post .entry-content iframe,
body.single-post .entry-content video {
  box-sizing: border-box;
  max-width: 100%;
}

body.single-post .entry-content a:focus-visible,
body.single-post .waggy-toc a:focus-visible {
  outline: 3px solid #b9781c;
  outline-offset: 3px;
  border-radius: 3px;
}

@media (max-width: 900px) {
  body.single-post #content.site-content.container {
    width: calc(100% - 32px) !important;
  }

  body.single-post #the-post,
  body.single-post .the-post {
    max-width: 100% !important;
    padding: clamp(22px, 4vw, 36px) !important;
  }
}

@media (max-width: 600px) {
  body.single-post #content.site-content.container {
    width: calc(100% - 24px) !important;
    padding: 14px 0 32px !important;
  }

  body.single-post #the-post,
  body.single-post .the-post {
    padding: 17px !important;
    border-radius: 16px;
  }

  body.single-post .entry-content > p,
  body.single-post .entry-content > h2,
  body.single-post .entry-content > h3,
  body.single-post .entry-content > h4,
  body.single-post .entry-content > ul,
  body.single-post .entry-content > ol,
  body.single-post .entry-content > blockquote {
    max-width: 100%;
  }

  body.single-post .waggy-toc {
    margin-bottom: 22px;
    padding: 16px;
  }

  body.single-post .waggy-toc ol {
    padding-inline-start: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.blog #posts-container > li.post-item,
  body.blog #posts-container .post-thumb img,
  body.blog .waggy-service-card {
    scroll-behavior: auto;
    transition: none !important;
  }
}

/* v1.2.0: clearer magazine landing page, scoped to the WordPress blog archive. */
body.blog #content.site-content.container {
  width: min(1220px, calc(100% - 48px)) !important;
  padding-top: 20px !important;
}

body.blog #posts-container > li.waggy-archive-intro {
  display: block !important;
  grid-template-columns: 1fr !important;
  position: relative;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 250px);
  align-items: center;
  gap: 24px;
  min-height: 230px;
  margin: 0 0 6px !important;
  padding: clamp(28px, 4.5vw, 56px) clamp(24px, 5vw, 64px) !important;
  overflow: hidden;
  border: 1px solid #dbe8df !important;
  border-radius: 28px !important;
  background: linear-gradient(125deg, #e8f0e8 0%, #f2f6f0 58%, #fff8ec 100%) !important;
  text-align: right !important;
}

body.blog .waggy-archive-intro__copy {
  position: relative;
  z-index: 1;
  max-width: 680px;
}

body.blog .waggy-archive-intro__eyebrow {
  display: inline-flex;
  align-items: center;
  margin: 0 0 12px;
  color: #a96919;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .02em;
}

body.blog .waggy-archive-intro h1 {
  margin: 0 0 10px !important;
  color: #175e66 !important;
  font-size: clamp(34px, 4vw, 48px) !important;
  line-height: 1.25 !important;
}

body.blog .waggy-archive-intro h1::after {
  display: none;
}

body.blog .waggy-archive-intro p {
  max-width: 600px;
  margin: 0 0 22px !important;
  color: #526366;
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.9;
}

body.blog .waggy-archive-intro__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 12px;
  background: #20747c;
  color: #fff !important;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none !important;
  transition: background-color .2s ease, transform .2s ease;
}

body.blog .waggy-archive-intro__cta:hover {
  transform: translateY(-2px);
  background: #175e66;
}

body.blog .waggy-archive-intro__cta:focus-visible,
body.blog #posts-container a:focus-visible,
body.blog .waggy-service-card:focus-visible {
  outline: 3px solid #b9781c;
  outline-offset: 4px;
}

body.blog .waggy-archive-intro__art {
  position: relative;
  display: grid;
  place-items: center;
  width: clamp(150px, 18vw, 220px);
  aspect-ratio: 1;
  justify-self: center;
  border: 1px solid rgba(32, 116, 124, .14);
  border-radius: 50%;
  background: rgba(255, 253, 249, .58);
  color: #20747c;
}

body.blog .waggy-archive-intro__art svg {
  position: relative;
  z-index: 1;
  width: 58%;
  height: auto;
  transform: rotate(-8deg);
}

body.blog .waggy-archive-intro__sun {
  position: absolute;
  top: 10%;
  left: 13%;
  width: 24%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #e8a138;
  opacity: .9;
}

body.blog .waggy-archive-intro__spark {
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #e8a138;
}

body.blog .waggy-archive-intro__spark--one {
  right: 11%;
  top: 25%;
}

body.blog .waggy-archive-intro__spark--two {
  left: 18%;
  bottom: 19%;
  width: 6px;
  height: 6px;
  background: #78a99b;
}

body.blog #posts-container > li.waggy-archive-intro + li.post-item {
  min-height: 320px !important;
  height: auto !important;
  border-radius: 24px;
}

body.blog #posts-container > li.waggy-archive-intro + li.post-item .post-details {
  padding: clamp(22px, 4vw, 48px) !important;
}

body.blog #posts-container > li.waggy-archive-intro + li.post-item .post-title {
  font-size: clamp(23px, 2.5vw, 32px) !important;
}

body.blog .waggy-services-panel {
  padding: clamp(18px, 3vw, 30px) !important;
  border: 1px solid #e2e9df !important;
  border-radius: 24px !important;
  background: #edf3eb !important;
}

body.blog .waggy-service-card {
  min-height: 112px;
  padding: 18px 12px !important;
  border: 1px solid rgba(32, 116, 124, .12);
  border-radius: 18px !important;
  background: #fffdf9 !important;
  text-align: center;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

body.blog .waggy-service-card:hover {
  transform: translateY(-3px);
}

body.blog .waggy-latest-heading {
  scroll-margin-top: 24px;
  padding-top: 12px !important;
}

body.blog #posts-container > li.post-item:not(.waggy-archive-intro) {
  border-color: #e5eae4;
  border-radius: 20px;
}

@media (max-width: 900px) {
  body.blog #posts-container {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  body.blog #posts-container > li.waggy-archive-intro + li.post-item {
    min-height: 280px !important;
    height: auto !important;
  }
}

@media (max-width: 600px) {
  body.blog #content.site-content.container {
    width: calc(100% - 24px) !important;
    padding-top: 14px !important;
  }

  body.blog #posts-container {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 16px !important;
  }

  body.blog #posts-container > li.waggy-archive-intro {
  display: block !important;
  grid-template-columns: 1fr !important;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    min-height: 0;
    padding: 26px 20px !important;
    border-radius: 22px !important;
    text-align: center !important;
  }

  body.blog .waggy-archive-intro__copy {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  body.blog .waggy-archive-intro__art {
    width: 120px;
    grid-row: 1;
  }

  body.blog .waggy-archive-intro h1 {
    font-size: 34px !important;
  }

  body.blog .waggy-archive-intro p {
    font-size: 15px;
  }

  body.blog #posts-container > li.waggy-archive-intro + li.post-item {
    display: flex !important;
    min-height: 0 !important;
    height: auto !important;
  }

  body.blog #posts-container > li.waggy-archive-intro + li.post-item .post-thumb {
    height: auto !important;
    aspect-ratio: 16 / 9;
  }

  body.blog #posts-container > li.waggy-archive-intro + li.post-item .post-details {
    padding: 18px 20px 20px !important;
  }

  body.blog .waggy-services-panel {
    padding: 18px 14px !important;
  }

  body.blog .waggy-service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.blog .waggy-service-card {
    min-height: 100px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.blog .waggy-archive-intro__cta,
  body.blog .waggy-service-card {
    transition: none !important;
  }
}

/* 1.3.0: archive homepage rebuilt to match the approved Waggy reference. */
body.blog {
  --waggy-teal: #0d5860;
  --waggy-teal-2: #247b80;
  --waggy-orange: #f3a536;
  --waggy-cream: #fbf7ef;
  --waggy-sage: #e4eee3;
  background: var(--waggy-cream) !important;
}
body.blog #header,
body.blog #main-nav,
body.blog #main-nav .main-nav {
  background-color: var(--waggy-cream) !important;
}
body.blog #main-nav { border-bottom: 1px solid rgba(13,88,96,.08); }
body.blog #content.site-content.container {
  width: min(100% - 32px, 1220px) !important;
  max-width: 1220px !important;
  margin-inline: auto !important;
  padding: 0 0 52px !important;
  background: transparent !important;
}
body.blog #posts-container {
  display: grid !important;
  grid-template-columns: repeat(3,minmax(0,1fr)) !important;
  gap: 24px !important;
  width: 100% !important;
  max-width: 1220px !important;
  margin: 0 auto !important;
  padding: 0 !important;
  list-style: none !important;
  direction: rtl;
}
body.blog #posts-container > li.waggy-archive-intro {
  display: block !important;
  grid-template-columns: 1fr !important;
  position: relative;
  right: auto;
  width: 100vw !important;
  max-width: 100vw !important;
  margin: 0 calc(50% - 50vw) 20px !important;
  padding: 0 !important;
  overflow: hidden;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
body.blog .waggy-hero-layout {
  display: grid;
  width: 100%;
  grid-template-columns: minmax(0,1fr) minmax(0,1fr);
  align-items: stretch;
  min-height: clamp(380px, 42vw, 520px);
  background: #f8e9d4;
  direction: rtl;
}
body.blog .waggy-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px,5vw,76px) clamp(24px,5.5vw,88px);
  color: #173c40;
  text-align: right;
}
body.blog .waggy-hero-eyebrow {
  margin-bottom: 8px;
  color: var(--waggy-teal-2);
  font-size: 15px;
  font-weight: 700;
}
body.blog .waggy-hero-copy h1 {
  margin: 0 0 10px !important;
  color: var(--waggy-teal) !important;
  font-size: clamp(30px,3.3vw,46px) !important;
  font-weight: 800;
  line-height: 1.45 !important;
}
body.blog .waggy-hero-copy p {
  max-width: 510px;
  margin: 0 0 20px !important;
  color: #38585a;
  font-size: clamp(16px,1.5vw,20px);
  line-height: 1.9;
}
body.blog .waggy-hero-visual {
  min-height: 100%;
  margin: 0;
  overflow: hidden;
  background: #dce8d8;
}
body.blog .waggy-hero-visual img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 380px;
  object-fit: cover;
  object-position: center;
}
body.blog .waggy-blog-search {
  width: min(100%, 560px);
  margin: 4px 0 12px;
  padding: 13px 15px 14px;
  border: 1px solid rgba(13,88,96,.1);
  border-radius: 17px;
  background: rgba(255,253,249,.96);
  box-shadow: 0 8px 26px rgba(79,70,50,.08);
}
body.blog .waggy-blog-search label {
  display: block;
  margin: 0 0 8px;
  color: #25494c;
  font-size: 13px;
  font-weight: 700;
}
body.blog .waggy-blog-search__row { display: flex; gap: 9px; }
body.blog .waggy-blog-search input {
  min-width: 0;
  flex: 1;
  height: 46px;
  padding: 0 13px;
  border: 1px solid #dfe5db;
  border-radius: 10px;
  background: #fff;
  color: #26383a;
  text-align: right;
}
body.blog .waggy-blog-search button,
body.blog .waggy-archive-intro__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 0 18px;
  border: 0;
  border-radius: 10px;
  background: var(--waggy-teal-2);
  color: #fff !important;
  font-weight: 700;
  text-decoration: none !important;
  cursor: pointer;
  transition: background-color .18s ease, transform .18s ease;
}
body.blog .waggy-archive-intro__cta { align-self: flex-start; min-height: 40px; background: transparent; color: var(--waggy-teal) !important; padding-inline: 0; }
body.blog .waggy-blog-search button:hover,
body.blog .waggy-archive-intro__cta:hover { transform: translateY(-1px); background-color: var(--waggy-teal); color:#fff !important; }
body.blog #posts-container > li.post-item {
  display: flex !important;
  float: none !important;
  flex-direction: column !important;
  width: auto !important;
  min-width: 0;
  height: 100%;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden;
  border: 1px solid #e8e5dc;
  border-radius: 16px;
  background: #fffdf9;
  box-shadow: 0 5px 18px rgba(48,59,49,.045);
  transition: transform .2s ease, box-shadow .2s ease;
}
body.blog #posts-container > li.post-item:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(48,59,49,.1); }
body.blog #posts-container .post-thumb { width: 100% !important; aspect-ratio: 16/9; height: auto !important; margin: 0 !important; overflow: hidden; background: #e8eee4; }
body.blog #posts-container .post-thumb img { width:100% !important; height:100% !important; object-fit:cover; }
body.blog #posts-container .post-details { display:flex !important; flex:1; flex-direction:column; width:100% !important; padding:16px 18px 18px !important; text-align:right; }
body.blog #posts-container .post-meta { margin:0 0 8px !important; color:#758083; font-size:12px; }
body.blog #posts-container .post-title { margin:0 0 8px !important; font-size:18px !important; line-height:1.65 !important; }
body.blog #posts-container .post-title a { color:var(--waggy-teal) !important; text-decoration:none; }
body.blog #posts-container .post-excerpt { display:-webkit-box; overflow:hidden; margin:0 0 12px !important; color:#596467; font-size:14px; line-height:1.8; -webkit-box-orient:vertical; -webkit-line-clamp:3; }
body.blog #posts-container .more-link { align-self:flex-start; margin-top:auto !important; padding:6px 0 !important; border:0 !important; background:transparent !important; color:var(--waggy-teal) !important; font-weight:700; }
body.blog #posts-container > li.waggy-archive-intro + li.post-item {
  grid-column:1/-1 !important;
  display:grid !important;
  grid-template-columns:minmax(0,1.2fr) minmax(0,1fr) !important;
  min-height:264px !important;
  border:0 !important;
  border-radius:18px !important;
  background:#e4eee3 !important;
  box-shadow:none !important;
}
body.blog #posts-container > li.waggy-archive-intro + li.post-item .post-thumb { grid-column:2; grid-row:1; height:100% !important; aspect-ratio:auto; padding:14px 14px 14px 0; background:transparent; }
body.blog #posts-container > li.waggy-archive-intro + li.post-item .post-thumb img { border-radius:10px; }
body.blog #posts-container > li.waggy-archive-intro + li.post-item .post-details { grid-column:1; grid-row:1; justify-content:center; padding:24px 28px !important; }
body.blog #posts-container > li.waggy-archive-intro + li.post-item .post-meta,
body.blog #posts-container > li.waggy-archive-intro + li.post-item .post-excerpt,
body.blog #posts-container > li.waggy-archive-intro + li.post-item .post-cat-wrap { display:none !important; }
body.blog #posts-container > li.waggy-archive-intro + li.post-item .post-title { font-size:clamp(21px,2vw,28px) !important; line-height:1.55 !important; }
body.blog #posts-container > li.waggy-latest-heading { grid-column:1/-1 !important; display:flex !important; margin:0 !important; padding:0 0 0 !important; scroll-margin-top:30px; border:0 !important; background:transparent !important; box-shadow:none !important; }
body.blog .waggy-latest-heading h2 { position:relative; margin:0 !important; padding-bottom:10px; color:var(--waggy-teal) !important; font-size:clamp(22px,2.2vw,30px) !important; line-height:1.5; }
body.blog .waggy-latest-heading h2::after { position:absolute; right:0; bottom:0; width:58px; height:4px; border-radius:99px; background:var(--waggy-orange); content:""; }
body.blog #posts-container > li.waggy-services-panel,
body.blog #posts-container > li.waggy-how-panel { grid-column:1/-1 !important; width:100% !important; margin:0 !important; padding:0 !important; border:0 !important; background:transparent !important; box-shadow:none !important; }
body.blog .waggy-service-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
body.blog .waggy-service-card { display:grid; grid-template-columns:60px 1fr; align-content:center; align-items:center; column-gap:14px; min-height:112px; padding:16px 20px; border:0; border-radius:16px; background:#ffe6c2; color:var(--waggy-teal) !important; text-decoration:none !important; }
body.blog .waggy-service-card:nth-child(2) { background:#e2eee1; }
body.blog .waggy-service-card:nth-child(3) { background:#ffe6c2; }
body.blog .waggy-service-card__icon { grid-column:1; grid-row:1/3; color:var(--waggy-teal); }
body.blog .waggy-service-card__icon svg { width:52px; height:52px; }
body.blog .waggy-service-card__title { color:var(--waggy-teal); font-size:18px; font-weight:800; }
body.blog .waggy-service-card__link { color:#3a5c5d; font-size:13px; }
body.blog .waggy-how-panel { display:grid; grid-template-columns:minmax(230px,.9fr) minmax(0,1.4fr); gap:28px; align-items:center; padding:24px 28px !important; border-radius:20px !important; background:#e4eee3 !important; }
body.blog .waggy-how-panel__copy span { color:#528180; font-size:13px; font-weight:700; }
body.blog .waggy-how-panel__copy h2 { margin:4px 0 6px !important; color:var(--waggy-teal) !important; font-size:22px !important; line-height:1.5; }
body.blog .waggy-how-panel__copy p { margin:0 !important; color:#405d5e; font-size:14px; line-height:1.8; }
body.blog .waggy-how-panel__steps { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; margin:0; padding:0; list-style:none; }
body.blog .waggy-how-panel__steps li { display:flex; flex-direction:column; align-items:center; gap:10px; color:#284d50; text-align:center; font-size:13px; line-height:1.7; }
body.blog .waggy-how-panel__steps li span { display:grid; width:54px; height:54px; place-items:center; border:3px solid #fff; border-radius:50%; background:#ffe6c2; color:var(--waggy-teal); font-size:24px; }
body.blog .pagination, body.blog .pagination a, body.blog .page-numbers { border-radius:10px; }
body.single-post #content.site-content.container { width:calc(100% - 32px) !important; max-width:1200px !important; }
body.single-post #the-post, body.single-post .the-post { max-width:1160px !important; margin-inline:auto !important; }
body.single-post #the-post .entry-content, body.single-post .the-post .entry-content { max-width:940px !important; }
body.single-post .waggy-toc { max-width:100% !important; }
@media(max-width:900px) {
  body.blog #content.site-content.container { width:calc(100% - 28px) !important; }
  body.blog #posts-container { grid-template-columns:repeat(2,minmax(0,1fr)) !important; gap:18px !important; }
  body.blog .waggy-hero-layout { min-height:360px; }
  body.blog .waggy-hero-copy { padding:26px; }
  body.blog .waggy-service-grid { gap:10px; }
  body.blog .waggy-service-card { grid-template-columns:48px 1fr; padding:14px; }
  body.blog .waggy-how-panel { grid-template-columns:1fr; }
}
@media(max-width:600px) {
  body.blog #content.site-content.container { width:calc(100% - 24px) !important; padding-bottom:32px !important; }
  body.blog #posts-container { grid-template-columns:1fr !important; gap:15px !important; }
  body.blog #posts-container > li.waggy-archive-intro {
  display: block !important;
  grid-template-columns: 1fr !important; margin-bottom:4px !important; }
  body.blog .waggy-hero-layout { grid-template-columns:1fr; min-height:0; }
  body.blog .waggy-hero-copy { grid-row:1; padding:25px 20px 20px; }
  body.blog .waggy-hero-copy h1 { font-size:30px !important; }
  body.blog .waggy-hero-copy p { font-size:15px; }
  body.blog .waggy-blog-search { padding:11px; }
  body.blog .waggy-blog-search__row { flex-direction:column; }
  body.blog .waggy-blog-search button { width:100%; }
  body.blog .waggy-hero-visual { grid-row:2; min-height:0; aspect-ratio:1.45; }
  body.blog .waggy-hero-visual img { min-height:0; height:100%; }
  body.blog #posts-container > li.waggy-archive-intro + li.post-item { grid-template-columns:1fr !important; min-height:0 !important; }
  body.blog #posts-container > li.waggy-archive-intro + li.post-item .post-thumb { grid-column:1; grid-row:1; height:auto !important; min-height:0; aspect-ratio:16/9; padding:12px 12px 0; }
  body.blog #posts-container > li.waggy-archive-intro + li.post-item .post-details { grid-column:1; grid-row:2; padding:16px 18px !important; }
  body.blog .waggy-service-grid { grid-template-columns:1fr; }
  body.blog .waggy-service-card { min-height:86px; }
  body.blog .waggy-how-panel { padding:20px 14px !important; }
  body.blog .waggy-how-panel__steps { gap:6px; }
  body.blog .waggy-how-panel__steps li { font-size:11px; }
  body.blog .waggy-how-panel__steps li span { width:44px; height:44px; }
  body.single-post #content.site-content.container { width:calc(100% - 20px) !important; }
  body.single-post #the-post, body.single-post .the-post { padding:20px 16px !important; }
}
@media(prefers-reduced-motion:reduce) {
  body.blog *, body.blog *::before, body.blog *::after { scroll-behavior:auto !important; transition:none !important; }
}





body.blog #tie-wrapper { background:var(--waggy-cream) !important; }
body.blog #posts-container > li.waggy-archive-intro + li.post-item { grid-template-columns:minmax(0,1fr) minmax(0,1.2fr) !important; }
body.blog .waggy-latest-heading h2::before { display:none !important; }
body.blog #posts-container > li.waggy-how-panel {
  display:grid !important;
  grid-template-columns:minmax(230px,.9fr) minmax(0,1.4fr) !important;
  gap:28px !important;
  align-items:center !important;
  padding:24px 28px !important;
  border:0 !important;
  border-radius:20px !important;
  background:#e4eee3 !important;
}

/* 1.3.1: order services before guides and align the getting-started icons. */
body.blog #posts-container > li.waggy-services-panel { grid-row:2; }
body.blog #posts-container > li.waggy-latest-heading { grid-row:3; }
body.blog #posts-container > li.waggy-how-panel { grid-column:1/-1 !important; }
body.blog .waggy-how-panel__steps {
  align-items:start !important;
  align-content:start !important;
}
body.blog .waggy-how-panel__steps li {
  align-self:start !important;
  justify-content:flex-start !important;
  min-height:100%;
  gap:10px;
}
body.blog .waggy-how-panel__steps li > span {
  flex:0 0 54px;
  margin:0;
}
body.blog .waggy-how-panel__steps li > span svg {
  display:block;
  width:24px;
  height:24px;
}
body.blog .waggy-how-panel__steps li > strong {
  display:block;
  min-height:46px;
}
@media(max-width:600px) {
  body.blog .waggy-how-panel__steps li > span { flex-basis:44px; }
  body.blog .waggy-how-panel__steps li > strong { min-height:54px; }
}
/* 1.3.2: neutralize theme list spacing so every step icon starts on one line. */
body.blog .waggy-how-panel__steps li { margin:0 !important; }
