/* Journal: archive grid + single post. Cards echo the site's lift-with-ring hover. */
.sj-archive { padding: 80px 0 110px; background: #fff; }
.sj-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 56px 40px; padding-top: 36px; max-width: 1200px; margin: 0 auto; }
.sj-card__link { display: block; text-decoration: none !important; color: #353535; }
/* Hover halo: the gradient ring is the card padding, so it grows from 0 to 3px; the whole card lifts. */
.sj-card__ring { display: block; border-radius: 28px; padding: 0; background: linear-gradient(0deg, #7cb8ae 0%, #fff 100%);
	box-shadow: 0 8px 26px rgba(0,0,0,.10); transform: translateY(0);
	transition: transform .45s cubic-bezier(.22,1,.36,1), box-shadow .45s ease, padding .45s cubic-bezier(.22,1,.36,1); }
.sj-card__inner { display: flex; flex-direction: column; overflow: hidden; border-radius: 28px; background: var(--sj-card-bg, #f4e8d0); transition: border-radius .45s ease; }
.sj-card__img { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #e9e4d6; }
.sj-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .45s ease, filter .45s ease; }
.sj-card__body { display: block; padding: 22px 24px 26px; text-align: left; }
.sj-card__title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; font-size: 1.15rem; font-weight: 700; line-height: 1.35; color: #1a1a1a; transition: color .3s; }
.sj-card__date { display: block; margin-top: 12px; font-size: .82rem; color: #6b6b6b; letter-spacing: .04em; }
.sj-card__more { display: inline-block; margin-top: 10px; font-size: .76rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #146131; }
.sj-card__link:hover .sj-card__ring, .sj-card__link:focus-visible .sj-card__ring { transform: translateY(-18px); padding: 3px; box-shadow: 0 22px 44px rgba(0,0,0,.28), 0 6px 16px rgba(0,0,0,.18); }
.sj-card__link:hover .sj-card__inner, .sj-card__link:focus-visible .sj-card__inner { border-radius: 25px; }
.sj-card__link:hover .sj-card__img img, .sj-card__link:focus-visible .sj-card__img img { transform: scale(1.04); filter: grayscale(1); }
.sj-card__link:hover .sj-card__title { color: #146131; }
#sj-top { scroll-margin-top: 110px; }
.sj-pager { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: center; margin-top: 56px; }
.sj-pager .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 16px; box-sizing: border-box; border: 1px solid rgba(53,53,53,.35); border-radius: 999px; color: #353535; text-decoration: none; font-size: .9rem; font-weight: 600; transition: background-color .3s linear, color .3s linear, border-color .3s linear; }
.sj-pager a.page-numbers:hover { background: #7cb8ae; border-color: #7cb8ae; color: #0f1412; }
.sj-pager .page-numbers.current { background: #146131; border-color: #146131; color: #fff; }
.sj-pager .page-numbers.dots { min-width: 0; padding: 0 4px; border-color: transparent; }
.sj-pager .prev, .sj-pager .next { gap: 6px; }
@media (max-width: 560px) { .sj-pager { gap: 6px; margin-top: 40px; } .sj-pager .page-numbers { min-width: 40px; height: 40px; padding: 0 12px; } .sj-pager__txt { display: none; } .sj-pager .prev, .sj-pager .next { padding: 0 14px; } }

/* Single post */
.sj-single { max-width: 1200px; margin: 0 auto; padding: 28px 24px 100px; }
.sj-head { text-align: center; max-width: 820px; margin: 0 auto 36px; }
.sj-head__cat { font-size: .78rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: #146131; margin: 0 0 14px; }
.sj-head h1 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.2; margin: 0 0 14px; }
.sj-head__meta { color: #777; margin: 0; }
.sj-hero { margin: 0 0 40px; }
.sj-hero img { width: 100%; max-height: 560px; object-fit: cover; border-radius: 28px; display: block; }
.sj-body { max-width: 760px; margin: 0 auto; font-size: 1.05rem; line-height: 1.9; color: #444; }
.sj-body h2 { margin: 2em 0 .6em; }
.sj-similar { margin-top: 96px; padding-top: 56px; border-top: 1px solid #e6e6e6; }
.sj-similar h2 { text-align: center; margin: 0 0 12px; }

@media (max-width: 1024px) { .sj-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .sj-grid { grid-template-columns: 1fr; gap: 44px; } .sj-single { padding-top: 100px; } }

.sj-tags { max-width: 760px; margin: 36px auto 0; padding-top: 20px; border-top: 1px solid #e6e6e6; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; color: #146131; }

/* Previous / Next post */
.sj-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 760px; margin: 28px auto 0; }
.sj-nav a { display: block; padding: 18px 22px; border: 1px solid #e0d8c4; border-radius: 18px; background: var(--sj-card-bg, #f4e8d0); text-decoration: none !important; color: #1a1a1a; transition: transform .3s ease, box-shadow .3s ease; }
.sj-nav a:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(0,0,0,.14); }
.sj-nav__next { text-align: right; }
.sj-nav__label { display: block; margin-bottom: 6px; font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #146131; }
.sj-nav__title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-weight: 700; line-height: 1.35; }
@media (max-width: 640px) { .sj-nav { grid-template-columns: 1fr; } }

/* Single post: no extra space above the featured image (Kadence adds margin + padding around the content) */
.single-post #primary.content-area { margin-top: 0; }
.single-post .entry-content-wrap { padding-top: 0; }
@media (max-width: 640px) { .sj-single { padding-top: 20px; } }

/* Category filter chips (only categories that have posts are listed) */
.sj-filter { max-width: 1200px; margin: 0 auto; padding-top: 8px; }
.sj-filter ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0; padding: 0; list-style: none; }
.sj-filter li { margin: 0; }
.sj-filter .sj-chip { display: inline-block; padding: 10px 22px; border: 1px solid rgba(53,53,53,.55); border-radius: 999px; background: transparent; font-size: .8rem; font-weight: 600; letter-spacing: .06em; line-height: 1.2; white-space: nowrap; text-decoration: none; color: #353535; transition: background-color .3s linear, color .3s linear, border-color .3s linear; }
.sj-filter .sj-chip:hover { background: #7cb8ae; border-color: #7cb8ae; color: #0f1412; }
.sj-filter .sj-chip.is-active { background: #146131; border-color: #146131; color: #fff; }
@media (max-width: 767px) {
	.sj-filter { width: 100vw; max-width: 100vw; margin: 0 calc(50% - 50vw); padding: 4px 0 0; }
	.sj-filter ul { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; padding: 4px 16px 10px; margin: 0; scroll-snap-type: x proximity; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
	.sj-filter ul::-webkit-scrollbar { display: none; }
	.sj-filter li { flex: none; scroll-snap-align: start; }
	.sj-filter .sj-chip { padding: 9px 18px; font-size: .74rem; }
}

/* Search box above the category chips */
.sj-search { position: relative; max-width: 560px; margin: 0 auto 22px; }
.sj-search input[type=search] { display: block; width: 100%; box-sizing: border-box; height: 54px; margin: 0; padding: 0 118px 0 26px; border: 1px solid #cfcfcf; border-radius: 999px; background: #fff; box-shadow: none; font: inherit; font-size: 1rem; color: #1a1a1a; -webkit-appearance: none; appearance: none; transition: border-color .3s, box-shadow .3s; }
.sj-search input[type=search]::-webkit-search-cancel-button { display: none; }
.sj-search input[type=search]::placeholder { color: #8a8a8a; }
.sj-search input[type=search]:focus { outline: none; border-color: #146131; box-shadow: 0 0 0 3px rgba(124,184,174,.4); }
.sj-search button { position: absolute; top: 6px; right: 6px; display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; padding: 0; border: 0; border-radius: 50%; background: #146131; color: #fff; cursor: pointer; transition: background-color .3s, color .3s; }
.sj-search button:hover { background: #7cb8ae; color: #0f1412; }
.sj-search__clear { position: absolute; top: 6px; right: 54px; display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%; font-size: 1.5rem; line-height: 1; text-decoration: none; color: #6b6b6b; transition: background-color .3s, color .3s; }
.sj-search__clear:hover { background: rgba(53,53,53,.1); color: #1a1a1a; }
.sj-result { margin: 26px 0 0; text-align: center; font-size: .9rem; color: #6b6b6b; }
.sj-empty { margin: 40px 0 0; text-align: center; color: #5a5446; }
@media (max-width: 767px) { .sj-search { margin: 0 auto 18px; } .sj-search input[type=search] { height: 50px; padding: 0 104px 0 20px; font-size: .95rem; } .sj-search button { top: 4px; right: 4px; } .sj-search__clear { top: 4px; right: 50px; } }

/* Share icons (single post) */
.sj-share { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 14px; margin: 18px 0 0; }
.sj-share ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0; padding: 0; list-style: none; }
.sj-share li { margin: 0; }
.sj-share__label { font-size: .72rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: #146131; }
.sj-share .sj-share__btn { display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; padding: 0; border: 1.5px solid rgba(53,53,53,.4); border-radius: 50%; background: transparent; color: #353535; text-decoration: none; cursor: pointer; transition: background-color .3s linear, color .3s linear, border-color .3s linear, transform .3s; }
.sj-share .sj-share__btn:hover, .sj-share .sj-share__btn:focus-visible { background: #146131; border-color: #146131; color: #fff; transform: translateY(-2px); }
.sj-share__note { min-width: 80px; font-size: .78rem; font-weight: 600; color: #146131; }
.sj-share__note:empty { display: none; }
.sj-body + .sj-share { margin: 40px 0 8px; padding-top: 28px; border-top: 1px solid rgba(53,53,53,.15); }
@media (max-width: 640px) { .sj-share .sj-share__btn { width: 38px; height: 38px; } .sj-share ul { flex-wrap: nowrap; gap: 8px; } }
@media (max-width: 380px) { .sj-share .sj-share__btn { width: 36px; height: 36px; } .sj-share ul { gap: 4px; } }
