/*
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.0.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 ---------------- */

/* ============================================================
   Rain Queens of Africa — brand palette
   Loads after the parent stylesheet AND the Customizer's inline
   CSS, so these win. The Customizer re-injects --wikipress-primary
   and --wikipress-accent from theme mods; we set the warm values
   here rather than fight the cascade.
   ============================================================ */
:root {
	--wikipress-primary: #9a651f;        /* gold — links & accent */
	--wikipress-primary-hover: #7a4e14;
	--wikipress-accent: #e6d8bf;          /* warm light — subtle borders/fills */
}

/* Re-assert the gold accents the Customizer's blanket border-color
   rule (.infobox, .short-answer-box, …) would otherwise flatten. */
.infobox { border-top-color: var(--wikipress-gold); }
.short-answer-box { border-left-color: var(--wikipress-gold); }
.toc-widget { border-color: var(--wikipress-line); }

/* Guard: keep embedded article widgets (e.g. the FAQ accordion) and long
   tokens from pushing horizontal overflow on narrow screens. */
.article-content { overflow-wrap: anywhere; }
.wpaw-faq-question { min-width: 0; gap: 12px; }
.wpaw-faq-question,
.wpaw-faq-answer { overflow-wrap: anywhere; }
