/* The Element Journal — widgets for the Journal page and the Single Post template.
   Ported from the 2026-10-15 design reference (outputs/the-element-journal/journal.css), scoped to .tej / .tej-article-body.
   Fonts (Noto Serif Display, Poppins) are already loaded site-wide by the Elementor kit. */

/* One place to change the display font (headings, titles, pull quotes). */
:root { --tej-serif: "Noto Serif Display", Georgia, serif; --tej-sans: Poppins, Arial, sans-serif; }

.tej {
	--tej-ink: #3a3838;
	--tej-cream: #e7dbca;
	--tej-paper: #f8f5ef;
	--tej-text: #4e4944;
	--tej-muted: #6e655b;
	--tej-line: #d8cfc3;
	--tej-accent: #80613c;
	font-family: var(--tej-sans);
	color: var(--tej-ink);
	font-size: 15px;
	line-height: 1.75;
}
.tej *, .tej *::before, .tej *::after { box-sizing: border-box; }
.tej a { color: inherit; text-decoration: none; }
.tej a:focus-visible, .tej button:focus-visible, .tej input:focus-visible, .tej summary:focus-visible {
	outline: 3px solid var(--tej-accent);
	outline-offset: 4px;
}
.tej img { display: block; max-width: 100%; height: auto; }
.tej .tej-eyebrow { margin: 0; font-size: 10px; font-weight: 500; letter-spacing: 2px; line-height: 1.5; text-transform: uppercase; }
.tej .tej-muted { color: var(--tej-muted); font-size: 11px; }
.tej .tej-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.tej .tej-badge { display: inline-block; padding: 1px 9px; border: 1px solid #a5835a; border-radius: 20px; color: #6b4f2e; background: #f3e9da; font-size: 10px; letter-spacing: .5px; line-height: 1.6; vertical-align: middle; }
.tej .tej-arrow { font-size: 18px; line-height: 1; }

/* Shared: section heading, text link, pill button */
.tej .tej-section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 33px; }
.tej .tej-section-heading h2 { margin: 11px 0 0; font-family: var(--tej-serif); font-weight: 400; font-size: 46px; line-height: 1.15; letter-spacing: -1.6px; color: var(--tej-ink); }
.tej .tej-count { margin: 0; white-space: nowrap; }
.tej .tej-textlink { display: inline-flex; align-items: center; gap: 14px; min-height: 32px; border-bottom: 1px solid #a89680; padding-bottom: 2px; font-size: 11px; }
.tej .tej-textlink--plain { border-bottom: 0; }
.tej .tej-textlink:hover { border-bottom-color: var(--tej-ink); }
.tej .tej-pill, .tej button.tej-pill {
	display: inline-flex; align-items: center; gap: 10px; min-height: 40px; padding: 8px 20px;
	border: 1px solid #b6a68f; border-radius: 25px; background: transparent; color: var(--tej-ink);
	font-family: var(--tej-sans); font-size: 11px; font-weight: 400; line-height: 1.4; letter-spacing: 0; text-transform: none; cursor: pointer;
}
.tej .tej-pill:hover, .tej button.tej-pill:hover { background: var(--tej-ink); border-color: var(--tej-ink); color: var(--tej-paper); }

/* Featured story */
.tej-feature { display: grid; grid-template-columns: 1.45fr 1fr; min-height: 540px; background: var(--tej-ink); }
.tej-feature--noimage { grid-template-columns: 1fr; min-height: 0; }
.tej .tej-feature__media { display: block; overflow: hidden; min-height: 100%; }
.tej .tej-feature__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.tej .tej-feature__media:hover img { transform: scale(1.035); }
.tej .tej-feature__copy { display: flex; flex-direction: column; justify-content: space-between; gap: 30px; padding: 42px 44px; color: var(--tej-cream); }
.tej .tej-feature__label { display: flex; align-items: center; gap: 20px; font-size: 9px; color: var(--tej-cream); }
.tej .tej-rule { flex: 1; height: 1px; background: #797064; }
.tej .tej-feature__category { margin: 0 0 13px; font-size: 11px; color: #d1bd9f; }
.tej .tej-feature__title { margin: 0; font-family: var(--tej-serif); font-weight: 400; font-size: clamp(36px, 4vw, 58px); line-height: 1.13; letter-spacing: -1.5px; color: var(--tej-cream); }
.tej .tej-feature__title a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
.tej .tej-feature__excerpt { margin: 23px 0 0; max-width: 360px; font-size: 13px; line-height: 1.9; color: #d9d1c8; }
.tej .tej-feature__link { display: flex; justify-content: space-between; align-items: center; min-height: 44px; padding-top: 16px; border-top: 1px solid #72685d; font-size: 12px; color: var(--tej-cream); }
.tej .tej-feature__link .tej-arrow { font-size: 23px; }
.tej .tej-feature__link:hover { color: #fff; }

/* Stories grid, filters, search, pagination */
.tej-stories { scroll-margin-top: 30px; }
.tej .tej-filterbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 38px; padding: 13px 0; border-top: 1px solid var(--tej-line); border-bottom: 1px solid var(--tej-line); }
.tej .tej-filters ul { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.tej .tej-filters a { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 16px; border-radius: 30px; font-size: 12px; }
.tej .tej-filters a:hover { background: #ece4d8; }
.tej .tej-filters a[aria-current] { background: var(--tej-ink); color: var(--tej-paper); }
.tej .tej-search { position: relative; display: flex; align-items: center; width: 260px; max-width: 100%; margin: 0; border-bottom: 1px solid #aba093; }
.tej .tej-search input[type="search"] {
	flex: 1; min-width: 0; height: 40px; margin: 0; padding: 8px 4px 8px 0; border: 0; border-radius: 0; background: transparent; box-shadow: none;
	color: var(--tej-ink); font-family: var(--tej-sans); font-size: 12px;
}
.tej .tej-search input[type="search"]::placeholder { color: var(--tej-muted); opacity: 1; }
.tej .tej-search button { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; color: var(--tej-ink); cursor: pointer; }
.tej .tej-search button:hover { color: var(--tej-accent); background: transparent; }
.tej .tej-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 30px; }
.tej .tej-card__media { display: block; overflow: hidden; }
.tej .tej-card__media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .5s ease; }
.tej .tej-card__media:hover img { transform: scale(1.035); }
.tej .tej-card__meta { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 23px 0 12px; }
.tej .tej-card__meta .tej-eyebrow { font-size: 9px; letter-spacing: 1.3px; }
.tej .tej-card__meta .tej-muted { font-size: 10px; white-space: nowrap; }
.tej .tej-card__title { margin: 0; max-width: 360px; font-family: var(--tej-serif); font-weight: 400; font-size: 29px; line-height: 1.15; letter-spacing: -.6px; color: var(--tej-ink); }
.tej .tej-card__title a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.tej .tej-card__excerpt { margin: 15px 0 0; font-size: 12px; line-height: 1.9; color: #665f59; }
.tej .tej-card .tej-textlink { margin-top: 18px; }
.tej .tej-empty { padding: 60px 10px; text-align: center; }
.tej .tej-empty h3 { margin: 0; font-family: var(--tej-serif); font-weight: 400; font-size: 29px; color: var(--tej-ink); }
.tej .tej-empty p { margin: 16px 0 22px; color: #665f59; }
.tej .tej-empty--soft { padding: 10px 0 0; text-align: left; }
.tej .tej-pagination ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 56px 0 0; padding: 0; list-style: none; }
.tej .tej-pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; min-height: 40px; padding: 6px 14px; border-radius: 30px; font-size: 12px; }
.tej .tej-pagination a.page-numbers:hover { background: #ece4d8; }
.tej .tej-pagination .current { background: var(--tej-ink); color: var(--tej-paper); }
.tej-stories[aria-busy="true"] .tej-grid { opacity: .45; transition: opacity .2s; }

/* Related stories */
.tej-related { padding-top: 55px; border-top: 1px solid var(--tej-line); }
.tej-related .tej-section-heading h2 { font-size: 40px; }

/* Article: breadcrumbs + meta */
.tej .tej-breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 0; margin: 0 0 40px; padding: 0; list-style: none; font-size: 10px; color: var(--tej-muted); }
.tej .tej-breadcrumbs li + li::before { content: "/"; padding: 0 10px; color: #a3988a; }
.tej .tej-breadcrumbs a:hover { text-decoration: underline; text-underline-offset: 4px; }
.tej .tej-article-meta__row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 25px; margin: 0; }

/* Article: table of contents */
.tej.tej-toc { font-size: 12px; }
.tej.tej-toc details { padding: 17px 0; border-top: 1px solid #bcae9c; border-bottom: 1px solid var(--tej-line); }
.tej.tej-toc summary { min-height: 24px; font-size: 11px; letter-spacing: 1px; cursor: pointer; }
.tej.tej-toc ol { margin: 16px 0 0; padding-left: 26px; list-style: decimal-leading-zero; color: #786d5f; }
.tej.tej-toc ol ol { margin-top: 4px; padding-left: 18px; list-style: lower-alpha; }
.tej.tej-toc li { padding: 6px 0 6px 6px; line-height: 1.7; }
.tej.tej-toc a { color: var(--tej-text); }
.tej.tej-toc a:hover, .tej.tej-toc a[aria-current] { text-decoration: underline; text-underline-offset: 4px; color: var(--tej-ink); }
.tej .tej-back { display: inline-flex; align-items: center; min-height: 32px; margin-top: 20px; font-size: 11px; }
.tej .tej-back:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Article: actions */
.tej-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 20px; padding-top: 23px; border-top: 1px solid var(--tej-line); font-size: 11px; }
.tej .tej-copy-status { flex-basis: 100%; min-height: 1em; }
.tej .tej-copy-status:empty { display: none; }

/* Article body (container class "tej-article-body" around Post Content in the Single Post template) */
.e-con.tej-article-body { counter-reset: tej-section; color: #4e4944; font-family: var(--tej-sans); font-size: 16px; line-height: 1.95; }
.e-con.tej-article-body p, .e-con.tej-article-body li { color: #4e4944; }
.e-con.tej-article-body p { margin: 0 0 1.4em; }
.e-con.tej-article-body h2, .e-con.tej-article-body h3 { font-family: var(--tej-serif); font-weight: 400; color: #3a3838; scroll-margin-top: 30px; }
.e-con.tej-article-body h2 { margin: 52px 0 22px; font-size: 36px; line-height: 1.15; letter-spacing: -1px; }
.e-con.tej-article-body h2::before { counter-increment: tej-section; content: counter(tej-section, decimal-leading-zero); display: block; margin-bottom: 9px; font-family: var(--tej-sans); font-size: 10px; letter-spacing: 2px; color: #80613c; }
.e-con.tej-article-body h2:first-child, .e-con.tej-article-body .elementor-widget-container > h2:first-child { margin-top: 0; }
.e-con.tej-article-body h3 { margin: 36px 0 14px; font-size: 26px; line-height: 1.25; letter-spacing: -.4px; }
.e-con.tej-article-body a { color: #3a3838; text-decoration: underline; text-decoration-color: #b1946e; text-underline-offset: 4px; }
.e-con.tej-article-body a:hover { text-decoration-color: currentColor; }
.e-con.tej-article-body a:focus-visible { outline: 3px solid #80613c; outline-offset: 3px; }
.e-con.tej-article-body blockquote, .e-con.tej-article-body .wp-block-quote.wp-block-quote, .e-con.tej-article-body .wp-block-pullquote blockquote {
	margin: 36px 0; padding: 22px 0 22px 30px; border: 0; border-left: 2px solid #b1946e; background: none;
	font-family: var(--tej-serif); font-size: 30px; font-style: normal; line-height: 1.4; color: #3a3838;
}
.e-con.tej-article-body blockquote p { margin: 0; color: inherit; font-size: inherit; }
.e-con.tej-article-body blockquote cite { display: block; margin-top: 12px; font-family: var(--tej-sans); font-size: 11px; font-style: normal; color: #6e655b; }
.e-con.tej-article-body figure { margin: 36px 0; }
.e-con.tej-article-body img { max-width: 100%; height: auto; }
.e-con.tej-article-body figcaption { margin-top: 10px; font-size: 11px; line-height: 1.6; color: #6e655b; text-align: left; }
.e-con.tej-article-body ul, .e-con.tej-article-body ol { margin: 0 0 1.4em; padding-left: 1.3em; }
.e-con.tej-article-body li { margin-bottom: .45em; }
/* Core blocks used by the articles: buttons, tables, FAQ details, source separator (Astra defaults are green/boxed) */
.e-con.tej-article-body .wp-block-button__link.wp-element-button { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; padding: 12px 24px; border: 0; border-radius: 30px; background: #3a3838; color: #f8f5ef; font-family: var(--tej-sans); font-size: 12px; font-weight: 500; text-decoration: none; }
.e-con.tej-article-body .wp-block-button__link.wp-element-button:hover { background: #514c45; color: #f8f5ef; }
.e-con.tej-article-body .wp-block-buttons { margin: 8px 0 36px; }
.e-con.tej-article-body .wp-block-table { margin: 28px 0 36px; overflow-x: auto; }
.e-con.tej-article-body .wp-block-table table { width: 100%; border-collapse: collapse; border: 0; font-size: 14px; line-height: 1.6; }
.e-con.tej-article-body .wp-block-table th, .e-con.tej-article-body .wp-block-table td { padding: 12px 14px; border: 0; border-bottom: 1px solid #d8cfc3; text-align: left; vertical-align: top; color: #4e4944; }
.e-con.tej-article-body .wp-block-table thead th { border-bottom: 1px solid #3a3838; font-size: 11px; font-weight: 500; letter-spacing: 1px; text-transform: uppercase; color: #3a3838; }
.e-con.tej-article-body .wp-block-details { margin: 0; padding: 16px 0; border-bottom: 1px solid #d8cfc3; }
.e-con.tej-article-body .wp-block-details summary { min-height: 24px; font-family: var(--tej-serif); font-size: 20px; color: #3a3838; cursor: pointer; }
.e-con.tej-article-body .wp-block-details[open] summary { margin-bottom: 10px; }
.e-con.tej-article-body .wp-block-details p { margin-bottom: .6em; }
.e-con.tej-article-body .wp-block-separator { margin: 40px 0 24px; border: 0; border-top: 1px solid #d8cfc3; opacity: 1; }
.e-con.tej-article-body .wp-block-separator ~ p { font-size: 13px; line-height: 1.8; color: #6e655b; }

/* Native widgets in the Journal page / Single Post layouts (classes set in build-templates.mjs) */
.tej-dot { color: #aa8960; }
.elementor-widget-heading .elementor-heading-title em { font-style: italic; font-weight: 400; }
.tej-post-excerpt { max-width: 740px; }
.tej-cover img { width: 100%; aspect-ratio: 2.15; object-fit: cover; }
.tej-cover figcaption, .tej-cover .widget-image-caption { margin-top: 10px; text-align: left; }
.e-con.tej-layout > .e-con-inner { align-items: flex-start; }
.e-con.tej-aside { --width: 240px; flex: 0 0 240px; width: 240px; position: sticky; top: 28px; align-self: flex-start; }
.e-con.tej-article-body { --width: auto; flex: 1 1 0; width: auto; min-width: 0; max-width: 720px; }

/* Breakpoints follow Elementor (tablet ≤1024px, mobile ≤767px) so they switch together with the container settings */
@media (max-width: 1024px) {
	.e-con.tej-aside { --width: 190px; flex-basis: 190px; width: 190px; }
	.tej-feature { grid-template-columns: 1.15fr 1fr; min-height: 500px; }
	.tej .tej-feature__copy { padding: 30px; }
	.tej .tej-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 22px; }
	.tej .tej-card__title { font-size: 25px; }
	.tej .tej-card__meta { flex-wrap: wrap; gap: 4px 10px; }
}
@media (max-width: 767px) {
	.e-con.tej-aside { --width: 100%; flex: 0 0 auto; width: 100%; position: static; }
	.e-con.tej-article-body { --width: 100%; flex: 0 0 auto; width: 100%; max-width: none; }
	.tej { font-size: 14px; }
	.tej .tej-eyebrow { font-size: 9px; letter-spacing: 1.5px; }
	.tej-feature { display: flex; flex-direction: column; min-height: 0; }
	.tej .tej-feature__media img { height: auto; aspect-ratio: 1.3; }
	.tej .tej-feature__copy { gap: 26px; padding: 28px; }
	.tej .tej-feature__title { font-size: 40px; }
	.tej .tej-feature__excerpt { max-width: none; margin-top: 17px; }
	.tej .tej-section-heading { margin-bottom: 24px; }
	.tej .tej-section-heading h2 { margin-top: 8px; font-size: 35px; }
	.tej .tej-filterbar { flex-direction: column; align-items: stretch; gap: 13px; margin-bottom: 28px; padding: 13px 0 18px; }
	.tej .tej-filters ul { gap: 2px; }
	.tej .tej-filters a { min-height: 44px; padding: 10px 12px; font-size: 11px; }
	.tej .tej-search { width: 100%; }
	.tej .tej-search input[type="search"], .tej .tej-search button { height: 44px; }
	.tej .tej-grid { grid-template-columns: 1fr; gap: 40px; }
	.tej .tej-card__media img { aspect-ratio: 1.6; }
	.tej .tej-card__title { max-width: none; font-size: 30px; }
	.tej .tej-card__excerpt { font-size: 13px; }
	.tej .tej-pagination .page-numbers { min-width: 44px; min-height: 44px; }
	.tej-related { padding-top: 40px; }
	.tej-related .tej-section-heading { display: block; }
	.tej-related .tej-section-heading h2 { font-size: 34px; }
	.tej-related .tej-section-heading .tej-textlink { margin-top: 14px; }
	.tej .tej-breadcrumbs ol { margin-bottom: 28px; font-size: 10px; }
	.tej .tej-back { display: none; }
	.e-con.tej-article-body h2 { font-size: 31px; }
	.e-con.tej-article-body blockquote, .e-con.tej-article-body .wp-block-quote.wp-block-quote { font-size: 26px; padding-left: 22px; }
}
@media (prefers-reduced-motion: reduce) {
	.tej *, .tej *::before, .tej *::after { transition: none !important; }
	.tej .tej-feature__media:hover img, .tej .tej-card__media:hover img { transform: none; }
}
