/*
Theme Name: My Alumni Manager Theme
Theme URI: https://bluepip.com.ng
Description: Theme for alumni portals. Pairs with the My Alumni Manager plugin.
Version: 0.2.0
Requires at least: 6.0
Requires PHP: 7.4
Author: Bluepip Integrated Services
Author URI: https://bluepip.com.ng
Text Domain: my-alumni-manager-theme
*/

:root {
	--paper: #F3F5F1;
	--ink: #16231F;
	--board: #24433A;
	--board-deep: #1A332C;
	--pencil: #E2B13C;
	--margin: #B8433A;
	--rule: #C9D6DC;
	--muted: #5A6B66;
	--ok: #2F6B4F;
	--mam-ink: var(--ink);
	--mam-muted: var(--muted);
	--mam-rule: var(--rule);
	--mam-board: var(--board);
	--mam-pencil: var(--pencil);
	--mam-margin: var(--margin);
	--mam-ok: var(--ok);
	--wrap: 960px;
	--line: 36px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif; font-size: 1.0625rem; line-height: 1.6; }
h1, h2, h3, h4 { font-family: Bitter, Georgia, "Times New Roman", serif; font-weight: 700; line-height: 1.25; }
a { color: var(--board); text-underline-offset: 3px; }
a:hover { color: var(--margin); }
:focus-visible { outline: 3px solid var(--pencil); outline-offset: 2px; }
img { max-width: 100%; height: auto; }

.skip-link { position: absolute; left: -9999px; top: 8px; background: #fff; padding: 8px 14px; z-index: 100; }
.skip-link:focus { left: 8px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

/* Site header: the chalkboard */
.site-header { background: var(--board); color: #fff; }
.site-header .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; justify-content: space-between; padding-top: 14px; padding-bottom: 14px; }
.site-title { margin: 0; font-family: Bitter, Georgia, serif; font-size: 1.3rem; font-weight: 700; }
.site-title a { color: #fff; text-decoration: none; }
.site-slogan { margin: 2px 0 0; font-size: .9rem; color: #C9DAD3; }
.site-nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 20px; margin: 0; padding: 0; }
.site-nav a { color: #fff; text-decoration: none; font-weight: 600; padding: 8px 0; display: inline-block; border-bottom: 2px solid transparent; }
.site-nav a:hover, .site-nav .current a { border-bottom-color: var(--pencil); color: #fff; }

/* Page heading: writing on ruled exercise-book paper, with the red margin line */
.page-head { position: relative; padding: var(--line) 0; background: repeating-linear-gradient(to bottom, transparent 0, transparent calc(var(--line) - 1px), var(--rule) calc(var(--line) - 1px), var(--rule) var(--line)); }
.page-head::before { content: ""; position: absolute; top: 0; bottom: 0; left: max(10px, calc((100% - var(--wrap)) / 2 + 6px)); width: 2px; background: var(--margin); }
.page-head h1 { margin: 0; font-size: 1.6rem; line-height: var(--line); padding-left: 0; }

.site-main { padding: 28px 0 56px; }
.site-main .wrap > * { max-width: 720px; }
.site-main .wrap > .mam-table-wrap, .site-main .wrap > .mam-tabs { max-width: none; }
.entry-content > :first-child { margin-top: 0; }
.entry-content h2 { font-size: 1.35rem; margin: 1.6em 0 .6em; }

.site-footer { border-top: 1px solid var(--rule); padding: 24px 0 40px; color: var(--muted); font-size: .95rem; }
.site-footer p { margin: 0 0 6px; }
.site-footer .contact-line { overflow-wrap: anywhere; }

@media (min-width: 720px) {
	.page-head h1 { font-size: 2rem; }
	.site-main .wrap { padding: 0 20px 0 36px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
