/* TPS Site Add-ons: pest guides (single guide, topic archives, /guides/ page).
   Pixel units on purpose: the theme sets html font-size to 10px.
   Tokens match the service pages: green #1B3B24, leaf #23803A, gold #FFD54F, light #F4F7F2, line #E4E7E1, muted #5B6770, ink #363636. */

/* ---------- Page skeleton (classes set on Bricks elements) ---------- */
.tps-g-hero { background: #F4F7F2; padding: 44px 0 56px; }
.tps-g-hero .brxe-container, .tps-g-main .brxe-container, .tps-g-related .brxe-container, .tps-g-list .brxe-container { padding-left: 16px; padding-right: 16px; }
.tps-g-crumbs { margin: 0 0 18px; font-size: 14px; font-weight: 600; letter-spacing: .2px; color: #5B6770; }
.tps-g-crumbs a { color: #23803A; text-decoration: none; }
.tps-g-crumbs a:hover { text-decoration: underline; }
.tps-g-crumbs .tps-g-crumbs__sep { margin: 0 8px; color: #9AA3AA; }
.tps-g-eyebrow { display: block; margin: 0 0 12px; font-size: 14px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: #23803A; }
.tps-g-title { max-width: 820px; margin: 0; font-size: 46px; line-height: 1.1; letter-spacing: -1px; color: #1B3B24; }
.tps-g-dek { max-width: 760px; margin: 18px 0 0; font-size: 20px; line-height: 1.55; color: #5B6770; }
.tps-g-byline { display: flex; align-items: center; gap: 12px; margin-top: 24px; }
.tps-g-avatar { flex: 0 0 auto; border-radius: 50%; object-fit: cover; background: #E4E7E1; }
.tps-g-byline .tps-g-avatar { width: 44px; height: 44px; }
.tps-g-byline__text { display: flex; flex-direction: column; gap: 2px; font-size: 15px; line-height: 1.35; }
.tps-g-byline__name { font-weight: 700; color: #1B3B24; }
.tps-g-byline__meta { color: #5B6770; }
/* Bricks puts the class on the <img> itself unless a caption wraps it in a <figure> */
.tps-g-figure { margin: 32px 0 0; }
.tps-g-figure img, img.tps-g-figure { display: block; width: 100%; max-height: 520px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 16px; }
.tps-g-figure figcaption { margin-top: 10px; font-size: 13px; color: #5B6770; }

.tps-g-main { padding: 56px 0 72px; background: #fff; }
.tps-g-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; align-items: start; }
@media (min-width: 1024px) {
	.tps-g-layout { grid-template-columns: minmax(0, 1fr) 320px; }
	.tps-g-aside { position: sticky; top: 96px; }
}
.tps-g-content { max-width: 760px; }

/* ---------- Guide body (block editor output) ---------- */
.tps-g-prose { font-size: 18px; line-height: 1.7; color: #363636; }
.tps-g-prose > * { margin: 0 0 22px; }
.tps-g-prose h2 { margin: 44px 0 16px; font-size: 30px; line-height: 1.2; letter-spacing: -.5px; color: #1B3B24; }
.tps-g-prose h3 { margin: 32px 0 12px; font-size: 22px; line-height: 1.3; color: #1B3B24; }
.tps-g-prose h2:first-child, .tps-g-prose h3:first-child { margin-top: 0; }
.tps-g-prose ul, .tps-g-prose ol { padding-left: 24px; }
.tps-g-prose li { margin: 0 0 8px; }
.tps-g-prose li::marker { color: #23803A; }
.tps-g-prose a { color: #23803A; text-decoration: underline; text-underline-offset: 2px; }
.tps-g-prose a:hover { color: #1B3B24; }
.tps-g-prose strong { color: #1B3B24; }
.tps-g-prose blockquote { margin: 0 0 22px; padding: 4px 0 4px 20px; border-left: 4px solid #FFD54F; color: #5B6770; }
.tps-g-prose img { max-width: 100%; height: auto; border-radius: 12px; }
.tps-g-prose figure { margin: 0 0 22px; }
.tps-g-prose figcaption { font-size: 13px; color: #5B6770; }
.tps-g-prose hr { border: 0; border-top: 1px solid #E4E7E1; margin: 32px 0; }
.tps-g-prose table { width: 100%; border-collapse: collapse; font-size: 16px; }
.tps-g-prose th, .tps-g-prose td { padding: 10px 12px; border: 1px solid #E4E7E1; text-align: left; vertical-align: top; }
.tps-g-prose th { background: #F4F7F2; color: #1B3B24; }
/* The sources list at the end stays quiet */
.tps-g-prose h2 + ul:last-child, .tps-g-prose ul:last-child { font-size: 15px; color: #5B6770; }
.tps-g-prose ul:last-child a { word-break: break-word; }

/* ---------- Call box, author box, aside ---------- */
.tps-g-cta { margin: 48px 0 0; padding: 30px 32px; border-radius: 16px; background: #1B3B24; color: #fff; }
.tps-g-cta .tps-g-cta__h, .tps-g-cta h2, .tps-g-cta h3 { margin: 0 0 10px; font-size: 26px; line-height: 1.2; color: #fff; }
.tps-g-cta p { margin: 0 0 20px; font-size: 17px; line-height: 1.6; color: rgba(255, 255, 255, .88); }
.tps-g-cta p a { color: #FFD54F; text-decoration: none; font-weight: 700; }
.tps-g-cta p a:hover { text-decoration: underline; }
.tps-g-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.tps-g-btn.bricks-button, a.tps-g-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 24px; border-radius: 8px; border: 1.5px solid #FFD54F; background: #FFD54F; color: #1B3B24; font-family: Lexend, sans-serif; font-weight: 700; font-size: 16px; line-height: 1.2; text-decoration: none; transition: background .15s, color .15s; }
.tps-g-btn.bricks-button:hover, a.tps-g-btn:hover { background: #ffe07a; color: #1B3B24; }
.tps-g-btn--ghost.bricks-button, a.tps-g-btn--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .55); }
.tps-g-btn--ghost.bricks-button:hover, a.tps-g-btn--ghost:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.tps-g-aside .tps-g-btn--ghost.bricks-button, .tps-g-aside a.tps-g-btn--ghost { color: #1B3B24; border-color: #1B3B24; }
.tps-g-aside .tps-g-btn--ghost.bricks-button:hover, .tps-g-aside a.tps-g-btn--ghost:hover { background: #F4F7F2; color: #1B3B24; }

.tps-g-author { display: flex; gap: 18px; align-items: flex-start; margin: 32px 0 0; padding: 22px 24px; border: 1px solid #E4E7E1; border-radius: 14px; background: #fff; }
.tps-g-author .tps-g-avatar { width: 72px; height: 72px; }
.tps-g-author__name { margin: 0 0 6px; font-family: Lexend, sans-serif; font-weight: 700; font-size: 18px; color: #1B3B24; }
.tps-g-author__role { display: block; font-family: "Source Sans 3", sans-serif; font-weight: 600; font-size: 13px; letter-spacing: 1px; text-transform: uppercase; color: #23803A; }
.tps-g-author__bio { margin: 0; font-size: 15px; line-height: 1.6; color: #5B6770; }

.tps-g-aside-card { padding: 26px 28px; border: 1px solid #E4E7E1; border-radius: 14px; background: #fff; box-shadow: 0 6px 20px rgba(0, 0, 0, .07); }
.tps-g-aside-card h2, .tps-g-aside-card h3 { margin: 0 0 8px; font-size: 22px; line-height: 1.2; color: #1B3B24; }
.tps-g-aside-card p { margin: 0 0 16px; font-size: 15px; line-height: 1.55; color: #5B6770; }
.tps-g-aside-card .tps-g-actions { flex-direction: column; }
.tps-g-aside-card .tps-g-btn.bricks-button { width: 100%; }
.tps-g-aside-topics { margin-top: 24px; }
.tps-g-aside-topics:not(:has(.tps-g-topics)), .tps-g-list-topics:not(:has(.tps-g-topics)) { display: none; } /* no published topics yet */
.tps-g-aside-topics h2, .tps-g-aside-topics h3 { margin: 0 0 12px; font-size: 16px; letter-spacing: 1px; text-transform: uppercase; color: #1B3B24; }

/* ---------- Topics ---------- */
.tps-g-topics { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.tps-g-topic { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; border: 1px solid #E4E7E1; background: #fff; color: #1B3B24; font-size: 14px; font-weight: 600; text-decoration: none; transition: background .15s, border-color .15s; }
.tps-g-topic:hover { border-color: #23803A; background: #F4F7F2; }
.tps-g-topic.is-current { background: #1B3B24; border-color: #1B3B24; color: #fff; }
.tps-g-topic__n { font-size: 12px; font-weight: 600; opacity: .7; }
.tps-g-list-topics { margin: 0 0 32px; }

/* ---------- Guide cards ---------- */
.tps-g-list { padding: 48px 0 72px; background: #fff; }
.tps-g-related { padding: 56px 0 72px; background: #F4F7F2; }
.tps-g-related:not(:has(.tps-gl)) { display: none; } /* nothing related yet: hide the whole band */
.tps-g-related .tps-g-related__h { margin: 0 0 24px; font-size: 30px; color: #1B3B24; }
.tps-gl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 1023px) { .tps-gl { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 639px) { .tps-gl { grid-template-columns: minmax(0, 1fr); gap: 18px; } }
.tps-gc { display: flex; flex-direction: column; overflow: hidden; border-radius: 14px; background: #fff; box-shadow: 0 6px 20px rgba(0, 0, 0, .07); transition: transform .15s, box-shadow .15s; }
.tps-gc:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(0, 0, 0, .1); }
.tps-gc__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #E4E7E1; }
.tps-gc__img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tps-gc__ph { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; background: linear-gradient(135deg, #1B3B24, #23803A); color: rgba(255, 255, 255, .85); font-family: Lexend, sans-serif; font-weight: 700; font-size: 18px; letter-spacing: 1px; text-transform: uppercase; }
.tps-gc__body { display: flex; flex-direction: column; flex: 1 1 auto; gap: 10px; padding: 20px 22px 22px; }
.tps-gc__tag { align-self: flex-start; padding: 4px 10px; border-radius: 6px; background: #F4F7F2; color: #1B3B24; font-size: 13px; font-weight: 600; text-decoration: none; }
.tps-gc__tag:hover { background: #E4E7E1; }
.tps-gc__title { margin: 0; font-size: 20px; line-height: 1.3; letter-spacing: -.2px; color: #1B3B24; }
.tps-gc__title a { color: inherit; text-decoration: none; }
.tps-gc__title a:hover { text-decoration: underline; text-underline-offset: 3px; }
.tps-gc__ex { margin: 0; font-size: 15px; line-height: 1.55; color: #5B6770; }
.tps-gc__meta { margin-top: auto; padding-top: 6px; font-size: 13px; color: #5B6770; }
.tps-g-empty { font-size: 17px; color: #5B6770; }
.tps-g-empty a { color: #23803A; }

/* ---------- Pagination ---------- */
.tps-gp { margin-top: 36px; }
.tps-gp ul { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0; padding: 0; }
.tps-gp .page-numbers { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 14px; border: 1px solid #E4E7E1; border-radius: 8px; background: #fff; color: #1B3B24; font-weight: 600; font-size: 15px; text-decoration: none; }
.tps-gp a.page-numbers:hover { border-color: #23803A; background: #F4F7F2; }
.tps-gp .page-numbers.current { background: #1B3B24; border-color: #1B3B24; color: #fff; }
.tps-gp .page-numbers.dots { border: 0; }

/* ---------- Phones ---------- */
@media (max-width: 767px) {
	.tps-g-hero { padding: 28px 0 36px; }
	.tps-g-title { font-size: 32px; letter-spacing: -.5px; }
	.tps-g-dek { font-size: 17px; }
	.tps-g-figure { margin-top: 24px; }
	.tps-g-figure img, img.tps-g-figure { border-radius: 12px; }
	.tps-g-main { padding: 36px 0 56px; }
	.tps-g-prose { font-size: 17px; }
	.tps-g-prose h2 { font-size: 25px; margin-top: 36px; }
	.tps-g-prose h3 { font-size: 20px; }
	.tps-g-cta { padding: 24px 20px; }
	.tps-g-cta .tps-g-cta__h, .tps-g-cta h2, .tps-g-cta h3 { font-size: 22px; }
	.tps-g-actions .tps-g-btn.bricks-button, .tps-g-actions a.tps-g-btn { width: 100%; }
	.tps-g-author { flex-direction: column; gap: 12px; padding: 20px; }
	.tps-g-related { padding: 40px 0 56px; }
	.tps-g-related .tps-g-related__h { font-size: 25px; }
}
