/*
Theme Name:   WikiPress Child
Theme URI:    https://example.com/wikipress-child
Description:  Child theme for WikiPress. Use this to safely customize styles, templates, and functions without editing the parent theme, so your changes survive WikiPress updates. Activate this theme instead of WikiPress and add your customizations here.
Author:       Phytosanitary
Author URI:   https://example.com
Template:     wikipress
Version:      1.1.0
Requires at least: 5.8
Tested up to: 6.5
Requires PHP: 7.4
License:      GNU General Public License v2 or later
License URI:  https://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  wikipress-child
Tags:         blog, news, education, two-columns, left-sidebar, right-sidebar, custom-colors, custom-logo, custom-menu, translation-ready

WikiPress Child Theme, (C) 2026.
Distributed under the terms of the GNU GPL v2 or later.
This is a child theme of WikiPress (Template: wikipress).
*/

/* ============================================================
   WikiPress Child Theme - Custom Styles
   ------------------------------------------------------------
   Add your CSS overrides below. This file loads AFTER the
   parent theme's stylesheet (assets/css/main.css), so anything
   you write here wins over the parent without needing !important.

   The parent exposes reusable CSS custom properties on :root.
   The cleanest way to re-brand is to override those variables.
   Common ones (see parent assets/css/main.css for the full set):

     --wikipress-primary        Link / accent color        (#0645ad)
     --wikipress-primary-hover  Link hover color           (#043a7a)
     --wikipress-text           Body text color            (#202122)
     --wikipress-heading        Heading color              (#000000)
     --wikipress-bg             Page background            (#ffffff)
     --wikipress-bg-off         Off-white background       (#f8f9fa)
     --wikipress-border         Border color               (#a2a9b1)
     --wikipress-font-content   Article font stack         (Georgia serif)
     --wikipress-font-ui        UI font stack              (system sans)
     --wikipress-font-size      Base font size             (16px)
     --wikipress-content-max    Article max width          (780px)
   ============================================================ */

/* ---- Example: re-brand the accent color -------------------
   Uncomment and change the values to match your palette.

:root {
	--wikipress-primary: #2e7d32;
	--wikipress-primary-hover: #1b5e20;
}
------------------------------------------------------------ */

/* ---- Example: tweak article typography --------------------

:root {
	--wikipress-font-content: "Merriweather", Georgia, serif;
	--wikipress-font-size: 17px;
}
------------------------------------------------------------ */

/* ---- Add your custom rules below this line ---------------- */

/* New Thought History homepage */
.wikipress-homepage {
	--wikipress-primary: #9a5c27;
	--wikipress-primary-hover: #704019;
	--wikipress-heading: #243b34;
	--nth-ink: #243b34;
	--nth-muted: #67716b;
	--nth-paper: #f8f5ee;
	--nth-rule: #ded9ca;
	background: #f8f5ee;
}
.wikipress-homepage .site { max-width: none; background: #f8f5ee; }
.wikipress-homepage .content-wrapper { display: block; max-width: none; }
.wikipress-homepage .site-header { background: #f8f5ee; border-bottom: 1px solid #e6e0d2; box-shadow: none; backdrop-filter: none; }
.wikipress-homepage .header-inner { max-width: 1320px; min-height: 76px; padding: 10px 32px; }
.wikipress-homepage .site-title { font-family: Georgia, 'Times New Roman', serif; font-size: 1.37rem; font-weight: 700; letter-spacing: -.045em; }
.wikipress-homepage .site-title a { color: var(--nth-ink); }
.wikipress-homepage .site-description { color: #8a7860; font-size: .67rem; letter-spacing: .035em; }
.wikipress-homepage .primary-menu { justify-content: flex-end; }
.wikipress-homepage .primary-menu > li > a { color: #384c44; font-size: .8rem; font-weight: 600; padding: 9px 11px; }
.wikipress-homepage .primary-menu > li > a:hover { color: #9a5c27; }
.wikipress-homepage .search-toggle { border: 0; color: var(--nth-ink); }
.wikipress-homepage .site-footer { background: #18342d; margin-top: 0; }
.wikipress-homepage .site-footer a:hover { color: #efd7ad; }
.nth-home { background: #f8f5ee; color: var(--nth-ink); font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; overflow: hidden; }
.nth-home * { box-sizing: border-box; }
.nth-home h1,.nth-home h2,.nth-home h3,.nth-home p { border: 0; margin: 0; padding: 0; }
.nth-home h1,.nth-home h2,.nth-home h3 { color: var(--nth-ink); }
.nth-home a { text-decoration: none; }
.nth-wrap { width: min(1240px, calc(100% - 80px)); margin-inline: auto; }
.nth-kicker,.nth-eyebrow { color: #9b6130; font-size: .7rem; font-weight: 750; letter-spacing: .18em; line-height: 1.5; text-transform: uppercase; }
.nth-hero { background: radial-gradient(circle at 79% 35%, #ebe2ce 0, #f4efe4 32%, #f8f5ee 63%); border-bottom: 1px solid #e7e0d2; }
.nth-hero-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; min-height: 620px; gap: 4%; }
.nth-hero-copy { position: relative; z-index: 2; padding: 76px 0 64px; }
.nth-eyebrow { display: flex; align-items: center; gap: 11px; margin-bottom: 27px !important; }
.nth-eyebrow-line { width: 24px; height: 1px; background: currentColor; }
.nth-home h1 { font: 500 clamp(3.4rem, 5.2vw, 5.6rem)/1.03 Georgia, 'Times New Roman', serif; letter-spacing: -.068em; max-width: 670px; }
.nth-home h1 em { color: #a26430; font-weight: 400; }
.nth-hero-lede { color: #59665f; font-size: 1.08rem; line-height: 1.75; max-width: 530px; margin-top: 25px !important; }
.nth-hero-actions { display: flex; flex-wrap: wrap; gap: 26px; align-items: center; margin-top: 33px; }
.nth-button { display: inline-flex; align-items: center; justify-content: space-between; gap: 34px; min-height: 49px; padding: 13px 19px; font-size: .83rem; font-weight: 700; letter-spacing: .01em; transition: transform .2s, background .2s; }
.nth-button:hover { transform: translateY(-2px); text-decoration: none; }
.nth-button span,.nth-text-link span,.nth-underlined-link span { font-size: 1.13rem; line-height: 1; }
.nth-button-dark { background: #203b32; color: #fff !important; }
.nth-button-dark:hover { background: #34574a; }
.nth-text-link { display: inline-flex; align-items: center; gap: 10px; color: #273f36; border-bottom: 1px solid #a4aa9b; padding: 8px 0; font-size: .85rem; font-weight: 700; }
.nth-text-link:hover,.nth-underlined-link:hover { color: #9a5c27; text-decoration: none; }
.nth-hero-note { display: flex; align-items: center; gap: 11px; margin-top: 68px; color: #7c8277; font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.nth-note-mark { color: #a36a37; font-size: 1.6rem; font-weight: 400; line-height: 0; }
.nth-hero-art { height: 525px; position: relative; isolation: isolate; }
.nth-art-orbit { position: absolute; border: 1px solid #d5c6ac; border-radius: 50%; pointer-events: none; }
.nth-art-orbit-one { width: 500px; height: 500px; top: 5px; left: 20px; }
.nth-art-orbit-two { width: 385px; height: 385px; top: 65px; left: 77px; }
.nth-art-disc { position: absolute; z-index: 1; top: 40px; right: 24px; width: 130px; height: 130px; display: grid; place-items: center; border-radius: 50%; background: #b27840; color: #fff; transform: rotate(12deg); box-shadow: 0 10px 20px #5d462129; }
.nth-art-disc span { font-size: .64rem; line-height: 1.7; letter-spacing: .2em; font-weight: 700; text-align: center; }
.nth-art-paper { position: absolute; box-shadow: 0 25px 55px #493a2536; }
.nth-art-paper-back { z-index: 1; width: 280px; height: 373px; top: 90px; left: 30px; transform: rotate(-11deg); background: #dfd3b9; padding: 32px 26px; border: 8px solid #eee5d3; }
.nth-art-paper-back span { color: #7b725e; font-size: .58rem; letter-spacing: .15em; font-weight: 700; }
.nth-art-paper-back i { display: block; height: 1px; background: #aea58e; margin-top: 40px; }
.nth-art-paper-back i + i { margin-top: 13px; width: 75%; }
.nth-art-paper-back i + i + i { width: 83%; }
.nth-art-paper-front { z-index: 2; width: 302px; height: 415px; top: 63px; left: 175px; transform: rotate(7deg); background: #e9e3d3; border: 12px solid #f7f0e2; padding: 38px 28px; display: flex; flex-direction: column; }
.nth-art-paper-front::after { content: '✳'; position: absolute; bottom: 58px; right: 24px; color: #b27942; font-size: 5.8rem; line-height: 1; opacity: .5; }
.nth-art-paper-front small { color: #9b622f; font-size: .63rem; font-weight: 800; letter-spacing: .23em; }
.nth-art-paper-front strong { font: 500 2.7rem/1.1 Georgia, serif; letter-spacing: -.05em; margin-top: 42px; }
.nth-art-rule { height: 1px; width: 70px; background: #ae7a50; margin-top: 34px; }
.nth-art-paper-footer { margin-top: auto; color: #7e7d6f; font-size: .53rem; letter-spacing: .15em; font-weight: 700; }
.nth-art-caption { position: absolute; z-index: 3; bottom: 13px; left: 15px; width: 210px; padding: 13px 15px; background: #fffaf0; color: #54655c; border: 1px solid #e2d8c3; box-shadow: 0 8px 20px #4538231f; font: italic .78rem/1.4 Georgia, serif; display: flex; gap: 8px; justify-content: space-between; }
.nth-art-caption span { color: #a36b36; font-style: normal; }
.nth-discovery { background: #fffdf8; border-bottom: 1px solid var(--nth-rule); }
.nth-discovery-inner { min-height: 94px; display: flex; align-items: center; gap: 35px; }
.nth-discovery-label { flex: 0 0 210px; font-size: .68rem; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; color: #8e6f4f; }
.nth-search { display: flex; align-items: center; flex: 1; max-width: 700px; gap: 12px; border-bottom: 1px solid #c7c4b8; }
.nth-search svg { width: 18px; height: 18px; fill: none; stroke: #53675d; stroke-width: 1.7; flex: 0 0 auto; }
.nth-search input { flex: 1; min-width: 0; border: 0; background: transparent; outline: 0; min-height: 45px; color: var(--nth-ink); font: inherit; font-size: .88rem; }
.nth-search input::placeholder { color: #899188; }
.nth-search button { background: transparent; border: 0; color: var(--nth-ink); cursor: pointer; font-size: .76rem; font-weight: 800; }
.nth-search button span { margin-left: 11px; }
.nth-section { padding: 103px 0; }
.nth-section-heading { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 40px; }
.nth-section-heading h2,.nth-intro h2,.nth-reading h2,.nth-research h2 { font: 500 clamp(2.3rem, 3.3vw, 3.6rem)/1.13 Georgia, serif; letter-spacing: -.05em; margin-top: 10px; }
.nth-section-heading > p { color: #6b766d; font: .98rem/1.6 Georgia, serif; max-width: 285px; }
.nth-pathways { background: #f8f5ee; }
.nth-pathway-grid { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--nth-rule); }
.nth-pathway-card { color: var(--nth-ink); min-height: 275px; padding: 28px; border-right: 1px solid var(--nth-rule); display: flex; flex-direction: column; position: relative; transition: background .2s; }
.nth-pathway-card:last-child { border-right: 0; }
.nth-pathway-card:hover { background: #eee8da; color: var(--nth-ink); text-decoration: none; }
.nth-pathway-icon { font: 2.2rem/1 Georgia, serif; color: #a67342; min-height: 53px; }
.nth-pathway-number { font-size: .58rem; font-weight: 800; letter-spacing: .17em; color: #9a794e; margin-top: 23px; }
.nth-pathway-card strong { font: 500 1.47rem/1.2 Georgia, serif; margin-top: 10px; }
.nth-pathway-copy { color: #6d786e; font-size: .78rem; line-height: 1.65; margin-top: 12px; max-width: 215px; }
.nth-card-arrow { position: absolute; right: 25px; top: 24px; font-size: 1.1rem; }
.nth-intro { background: #ebe8da; padding: 94px 0 97px; }
.nth-intro-grid { display: grid; grid-template-columns: .75fr 1.25fr; gap: 10%; }
.nth-intro-aside { display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; color: #87765d; font-size: .66rem; font-weight: 800; letter-spacing: .19em; line-height: 1.7; }
.nth-large-asterisk { font: 16rem/.8 Georgia, serif; color: #c7b99c; transform: rotate(-14deg); }
.nth-intro-copy { max-width: 710px; }
.nth-intro h2 { margin-bottom: 24px; }
.nth-intro-copy > p:not(.nth-kicker) { color: #4e6055; font: 1.06rem/1.77 Georgia, serif; margin-bottom: 17px; }
.nth-underlined-link { display: inline-flex; gap: 20px; align-items: center; border-bottom: 1px solid #aab1a7; color: var(--nth-ink); padding: 8px 0; font-size: .8rem; font-weight: 800; }
.nth-intro .nth-underlined-link { margin-top: 13px; }
.nth-chronology { background: #fffdf8; }
.nth-heading-inline { align-items: end; }
.nth-era-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid #cabda5; padding-top: 0; }
.nth-era { color: var(--nth-ink); display: flex; flex-direction: column; padding: 35px 25px 0 0; position: relative; }
.nth-era:hover { color: #9a5c27; text-decoration: none; }
.nth-era-dot { position: absolute; top: -5px; left: 0; width: 9px; height: 9px; border-radius: 50%; background: #a36b38; outline: 5px solid #fffdf8; }
.nth-era-period { color: #9b6338; font-size: .71rem; font-weight: 800; letter-spacing: .08em; }
.nth-era strong { font: 500 1.25rem/1.25 Georgia, serif; margin-top: 11px; }
.nth-era-copy { color: #68766e; font-size: .78rem; line-height: 1.65; max-width: 225px; margin-top: 9px; }
.nth-figures { background: #f1eee5; }
.nth-figure-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 17px; }
.nth-figure-card { display: flex; flex-direction: column; background: #fcfaf5; color: var(--nth-ink); border: 1px solid #dfdacf; min-height: 338px; padding: 23px; transition: transform .2s, box-shadow .2s; }
.nth-figure-card:hover { transform: translateY(-5px); box-shadow: 0 14px 27px #463b2b1c; color: var(--nth-ink); text-decoration: none; }
.nth-figure-top { display: flex; justify-content: space-between; color: #9e7a51; font-size: .58rem; font-weight: 800; letter-spacing: .14em; }
.nth-figure-top span:last-child { font-size: 1rem; }
.nth-figure-monogram { width: 102px; height: 102px; border-radius: 50%; display: grid; place-items: center; background: #e8e5d6; color: #a58560; font: italic 4.5rem/1 Georgia, serif; align-self: center; margin: 24px 0 27px; }
.nth-figure-card:nth-child(2) .nth-figure-monogram { background: #e6daca; }
.nth-figure-card:nth-child(3) .nth-figure-monogram { background: #dce5dc; }
.nth-figure-card:nth-child(4) .nth-figure-monogram { background: #dce2e2; }
.nth-figure-card strong { font: 500 1.23rem/1.2 Georgia, serif; }
.nth-figure-dates { color: #a26c39; font: italic .8rem Georgia, serif; margin-top: 6px; }
.nth-figure-role { border-top: 1px solid #e4dfd5; color: #718076; font-size: .7rem; margin-top: auto; padding-top: 15px; }
.nth-reading { background: #234237; color: #f4efe4; padding: 102px 0 115px; }
.nth-reading-grid { display: grid; grid-template-columns: .92fr 1.08fr; gap: 50px; align-items: center; }
.nth-reading .nth-kicker { color: #d8b67e; }
.nth-reading h2 { color: #fffaf0; max-width: 410px; margin-bottom: 22px; }
.nth-reading p:not(.nth-kicker) { max-width: 480px; color: #c8d5c8; font: 1rem/1.75 Georgia, serif; }
.nth-button-light { background: #f2e7d0; color: #234237 !important; margin-top: 28px; }
.nth-button-light:hover { background: #fff7e8; }
.nth-book-stack { height: 340px; position: relative; }
.nth-book { position: absolute; bottom: 0; display: flex; flex-direction: column; padding: 28px 20px; box-shadow: 12px 15px 19px #0a1b1673; border-left: 8px solid #ffffff17; }
.nth-book small { font-size: .62rem; letter-spacing: .14em; }
.nth-book strong { font: 500 1.75rem/1.12 Georgia, serif; letter-spacing: -.04em; margin-top: 40px; }
.nth-book span { margin-top: auto; font-size: .55rem; font-weight: 800; letter-spacing: .13em; }
.nth-book-one { left: 6%; width: 34%; height: 277px; background: #b48b57; color: #2e392d; transform: rotate(-7deg); }
.nth-book-two { left: 35%; z-index: 2; width: 31%; height: 321px; background: #d9cbb1; color: #304238; transform: rotate(2deg); }
.nth-book-three { left: 63%; width: 32%; height: 270px; background: #6d7c69; color: #f5eee2; transform: rotate(8deg); }
.nth-latest { background: #fffdf8; }
.nth-latest-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.nth-latest-card { min-height: 250px; border-top: 1px solid #c5b79d; padding: 22px 18px 12px 0; display: flex; flex-direction: column; }
.nth-latest-meta { color: #a06a3c; font-size: .63rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.nth-latest-meta span { padding: 0 5px; }
.nth-latest-card h3 { font: 500 1.48rem/1.28 Georgia, serif; margin-top: 20px; }
.nth-latest-card h3 a { color: var(--nth-ink); }
.nth-latest-card h3 a:hover { color: #9a5c27; }
.nth-latest-card p { color: #6b776d; font-size: .78rem; line-height: 1.6; margin-top: 12px; }
.nth-latest-arrow { align-self: flex-end; color: #9a5c27; margin-top: auto; font-size: 1.2rem; }
.nth-research { background: #e9e4d6; border-top: 1px solid #dcd2bf; padding: 57px 0; }
.nth-research-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.nth-research-inner > div { max-width: 750px; }
.nth-research h2 { font-size: 2.5rem; margin-top: 6px; }
.nth-research p:not(.nth-kicker) { color: #647167; font-size: .84rem; line-height: 1.6; margin-top: 10px; }
.nth-research .nth-button { flex-shrink: 0; }
@media (max-width: 1100px) {
	.wikipress-homepage .primary-menu > li > a { padding-inline: 7px; }
	.nth-hero-grid { gap: 0; }
	.nth-hero-art { transform: scale(.83); transform-origin: center left; }
	.nth-pathway-card { padding: 21px; }
}
@media (max-width: 850px) {
	.nth-wrap { width: min(100% - 48px, 680px); }
	.nth-hero-grid { grid-template-columns: minmax(0, 1fr); }
	.nth-hero-copy { min-width: 0; }
	.nth-hero-copy { padding-bottom: 20px; }
	.nth-hero-art { height: 460px; width: 520px; max-width: 100%; transform: scale(.8); transform-origin: top left; margin: 0 auto -70px; }
	.nth-hero-note { margin-top: 43px; }
	.nth-pathway-grid,.nth-figure-grid { grid-template-columns: repeat(2, 1fr); }
	.nth-pathway-card:nth-child(2) { border-right: 0; }
	.nth-pathway-card:nth-child(-n+2) { border-bottom: 1px solid var(--nth-rule); }
	.nth-intro-grid { gap: 5%; }
	.nth-large-asterisk { font-size: 12rem; }
	.nth-era-grid { grid-template-columns: repeat(2, 1fr); row-gap: 35px; }
	.nth-reading-grid { grid-template-columns: 1fr; }
	.nth-book-stack { max-width: 530px; width: 100%; }
	.nth-latest-grid { gap: 15px; }
}
@media (max-width: 600px) {
	.wikipress-homepage .header-inner { position: relative; flex-wrap: nowrap; gap: 9px; padding-inline: 20px; }
	.wikipress-homepage .site-branding { min-width: 0; }
	.wikipress-homepage .site-title { font-size: 1.1rem; white-space: nowrap; }
	.wikipress-homepage .site-description { display: none; }
	.wikipress-homepage .header-search { order: 2; margin-left: auto; }
	.wikipress-homepage .main-navigation { flex: 0 0 auto; order: 3; width: auto; }
	.wikipress-homepage .primary-menu.is-active { position: absolute; top: 100%; right: 0; width: min(320px, 100%); background: #f8f5ee; border: 1px solid #e6e0d2; box-shadow: 0 12px 25px #1b2d251f; padding: 12px; max-height: 75vh; overflow-y: auto; }
	.nth-wrap { width: calc(100% - 40px); }
	.nth-home h1 { font-size: clamp(3.15rem, 12vw, 4.2rem); }
	.nth-hero-grid { min-height: 0; }
	.nth-hero-copy { padding-top: 58px; }
	.nth-hero-lede { font-size: .98rem; }
	.nth-hero-actions { gap: 13px 23px; }
	.nth-hero-art { width: 100%; transform: scale(.64); height: 355px; margin-bottom: 0; }
	.nth-discovery-inner { min-height: 118px; flex-direction: column; align-items: stretch; justify-content: center; gap: 7px; }
	.nth-discovery-label { flex: auto; }
	.nth-section { padding: 71px 0; }
	.nth-section-heading { display: block; margin-bottom: 30px; }
	.nth-section-heading > p { margin-top: 13px; }
	.nth-heading-inline .nth-underlined-link { margin-top: 19px; }
	.nth-pathway-grid { grid-template-columns: 1fr; }
	.nth-pathway-card { min-height: 205px; border-right: 0; border-bottom: 1px solid var(--nth-rule); }
	.nth-pathway-card:last-child { border-bottom: 0; }
	.nth-pathway-card:nth-child(2) { border-bottom: 1px solid var(--nth-rule); }
	.nth-pathway-number { margin-top: 6px; }
	.nth-pathway-copy { max-width: 290px; }
	.nth-intro { padding: 70px 0; }
	.nth-intro-grid { grid-template-columns: 1fr; gap: 27px; }
	.nth-intro-aside { flex-direction: row; align-items: center; justify-content: flex-start; gap: 18px; }
	.nth-large-asterisk { font-size: 4rem; }
	.nth-intro-copy > p:not(.nth-kicker) { font-size: .96rem; }
	.nth-era-grid { gap: 28px 13px; }
	.nth-era { padding-right: 8px; }
	.nth-era strong { font-size: 1.09rem; }
	.nth-figure-grid { gap: 10px; }
	.nth-figure-card { min-height: 287px; padding: 15px; }
	.nth-figure-monogram { width: 75px; height: 75px; font-size: 3.3rem; margin: 22px 0; }
	.nth-figure-card strong { font-size: 1.05rem; }
	.nth-reading-grid { gap: 20px; }
	.nth-book-stack { height: 260px; }
	.nth-book { padding: 16px 9px; }
	.nth-book strong { font-size: 1.14rem; margin-top: 24px; }
	.nth-book-one { height: 208px; }.nth-book-two { height: 243px; }.nth-book-three { height: 205px; }
	.nth-book small,.nth-book span { font-size: .45rem; }
	.nth-latest-grid { grid-template-columns: 1fr; }
	.nth-latest-card { min-height: 205px; }
	.nth-research-inner { display: block; }
	.nth-research .nth-button { margin-top: 22px; }
}
@media (prefers-reduced-motion: reduce) { .nth-home * { transition: none !important; } }
