/*
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.6.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 {
	/* The plugin overrides the three brand values from Settings. These are the defaults. */
	--primary: #24433A;
	--primary-dark: #1A332C;
	--secondary: #E2B13C;
	--on-primary: #ffffff;
	--on-secondary: #16231F;
	--danger: #B8433A;
	--paper: #F3F5F1;
	--ink: #16231F;
	--rule: #C9D6DC;
	--muted: #5A6B66;
	--ok: #2F6B4F;
	--wrap: 960px;
	--line: 36px;
	/* What the plugin's components read. */
	--mam-ink: var(--ink);
	--mam-muted: var(--muted);
	--mam-rule: var(--rule);
	--mam-ok: var(--ok);
	--mam-danger: var(--danger);
}

*, *::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; overflow-x: hidden; overflow-wrap: break-word; }
h1, h2, h3, h4 { font-family: Bitter, Georgia, "Times New Roman", serif; font-weight: 700; line-height: 1.25; }
a { color: var(--primary); text-underline-offset: 3px; }
a:hover { color: var(--primary-dark); }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }
img, svg, video { max-width: 100%; height: auto; }
table { max-width: 100%; }

.skip-link { position: absolute; left: -9999px; top: 8px; background: #fff; color: #16231F; 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 */
.site-header { background: var(--primary); color: var(--on-primary); }
.site-header .wrap { display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center; justify-content: space-between; padding-top: 14px; padding-bottom: 14px; }
.site-brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.site-logo { flex: none; line-height: 0; }
.site-logo img { display: block; max-height: 48px; max-width: 150px; width: auto; border-radius: 6px; background: #fff; padding: 4px 8px; }
.site-title { margin: 0; font-family: Bitter, Georgia, serif; font-size: 1.3rem; font-weight: 700; line-height: 1.2; }
.site-title a { color: var(--on-primary); text-decoration: none; }
.site-slogan { margin: 2px 0 0; font-size: .9rem; opacity: .85; }

/* Navigation: pills, with a filled pill and a coloured underline for the page you are on */
.site-nav { min-width: 0; }
.site-nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.site-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; color: var(--on-primary); text-decoration: none; font-weight: 600; border: 2px solid transparent; transition: background .15s; }
.site-nav a:hover { background: rgba(255, 255, 255, .14); color: var(--on-primary); }
.site-nav a:focus-visible { outline-color: var(--on-primary); }
.site-nav a[aria-current="page"],
.site-nav .current-menu-item > a,
.site-nav .current_page_item > a,
.site-nav .current-menu-ancestor > a {
	background: var(--on-primary); color: var(--primary); font-weight: 700; box-shadow: 0 4px 0 var(--secondary);
}
.site-nav a[aria-current="page"]:hover { background: var(--on-primary); color: var(--primary); }

/* Page heading: writing on ruled exercise-book paper, with a margin line in the secondary colour */
.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(--secondary); }
.page-head h1 { margin: 0; font-size: 1.6rem; line-height: var(--line); }

.site-main { padding: 28px 0 56px; }
.site-main .wrap > * { max-width: 720px; }
.site-main .wrap > .mam-table-wrap,
.site-main .wrap > .mam-tabs,
.site-main .wrap > .mam-subtabs,
.site-main .wrap > .entry-content { max-width: none; }
.entry-content { min-width: 0; }
.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 (max-width: 480px) {
	.site-title { font-size: 1.15rem; }
	.site-nav a { padding: 0 14px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
