/*
Theme Name:   PrimeTop Academy
Theme URI:    https://www.instagram.com/primetop_academy
Author:       PrimeTop Academy
Description:  Navy-and-gold theme for PrimeTop Academy. Presentation only; pair with the PrimeTop Core plugin for roles, resources, membership and content settings.
Version:      1.0.0
Requires at least: 6.2
Requires PHP: 7.4
License:      Proprietary
Text Domain:  primetop
*/

/* ---------- Design tokens (ported from the approved prototype) ---------- */
:root {
	--radius: 0.75rem;
	--background: oklch(0.995 0.004 95);
	--foreground: oklch(0.22 0.045 262);
	--card: oklch(1 0 0);
	--navy: oklch(0.29 0.075 264);
	--navy-deep: oklch(0.21 0.06 265);
	--navy-foreground: oklch(0.98 0.01 95);
	--secondary: oklch(0.96 0.012 255);
	--muted: oklch(0.966 0.008 250);
	--muted-foreground: oklch(0.52 0.03 258);
	--accent: oklch(0.955 0.03 90);
	--accent-foreground: oklch(0.34 0.07 75);
	--gold: oklch(0.76 0.125 82);
	--gold-foreground: oklch(0.24 0.05 70);
	--gold-soft: oklch(0.95 0.045 88);
	--success: oklch(0.58 0.12 155);
	--warning: oklch(0.75 0.14 70);
	--destructive: oklch(0.55 0.2 27);
	--border: oklch(0.91 0.012 255);
	--shadow-card: 0 1px 2px oklch(0.22 0.06 262 / 0.06), 0 8px 24px oklch(0.22 0.06 262 / 0.07);
	--shadow-lift: 0 2px 4px oklch(0.22 0.06 262 / 0.08), 0 18px 44px oklch(0.22 0.06 262 / 0.12);
	--font-display: "Marcellus", "Times New Roman", serif;
	--font-sans: "Source Sans 3", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; border-color: var(--border); }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--background); color: var(--foreground); font-family: var(--font-sans); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-display); letter-spacing: -0.01em; line-height: 1.2; margin: 0; font-weight: 400; color: var(--navy); }
p { margin: 0 0 1rem; }
.icon { width: 1.1em; height: 1.1em; flex-shrink: 0; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: 72rem; margin: 0 auto; padding: 0 1.5rem; }
.container-narrow { max-width: 64rem; }
.section { padding-top: 5rem; padding-bottom: 1rem; }
.band { margin-top: 5rem; padding: 5rem 0; background: color-mix(in oklch, var(--secondary) 60%, transparent); }
.grid-2, .grid-3 { display: grid; gap: 1.25rem; margin-top: 2.5rem; }
.split { display: grid; gap: 2rem; }
@media (min-width: 640px) { .grid-2, .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .split { grid-template-columns: 1.1fr 0.9fr; align-items: start; } }
.text-center { text-align: center; }
.muted { color: var(--muted-foreground); }
.small { font-size: 0.8rem; }
.rounded { border-radius: calc(var(--radius) + 8px); }
.pad-lg { padding: 2.25rem; }
.h-lg { font-size: 1.75rem; margin-bottom: 1rem; }
.body-lg { font-size: 1.05rem; line-height: 1.75; }
.hide-sm { display: none; }
@media (min-width: 640px) { .hide-sm { display: inline-flex; } }

/* ---------- Utilities from the prototype ---------- */
.surface-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-card); }
.navy-panel { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%); color: var(--navy-foreground); }
.navy-panel h1, .navy-panel h2, .navy-panel h3 { color: var(--navy-foreground); }
.eyebrow { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent-foreground); margin: 0; }
.eyebrow-gold { color: var(--gold); }
.gold-rule { width: 3rem; height: 2px; background: var(--gold); margin: 1rem 0; }
.section-heading { max-width: 42rem; }
.section-heading h2 { margin-top: 0.5rem; font-size: clamp(1.5rem, 3vw, 1.9rem); }
.section-heading.is-center { margin: 0 auto; text-align: center; }
.section-heading.is-center .gold-rule { margin-left: auto; margin-right: auto; }
.pill { display: inline-flex; align-items: center; border-radius: 999px; background: var(--secondary); padding: 0.2rem 0.75rem; font-size: 0.75rem; font-weight: 600; color: var(--navy); }
.pill-gold { text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.68rem; color: var(--gold-foreground); background: var(--gold-soft); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; border-radius: calc(var(--radius) - 2px); border: 1px solid transparent; padding: 0.6rem 1.1rem; font-weight: 600; font-size: 0.95rem; cursor: pointer; transition: background 0.15s, box-shadow 0.15s; font-family: inherit; }
.btn-sm { padding: 0.45rem 0.9rem; font-size: 0.88rem; }
.btn-lg { padding: 0.8rem 1.4rem; }
.btn-xl { padding: 1rem 1.75rem; font-size: 1rem; border-radius: var(--radius); min-height: 3.5rem; }
.btn-gold { background: var(--gold); color: var(--gold-foreground); }
.btn-gold:hover { box-shadow: var(--shadow-card); background: color-mix(in oklch, var(--gold) 90%, black); }
.btn-navy { background: var(--navy); color: var(--navy-foreground); }
.btn-navy:hover { background: var(--navy-deep); }
.btn-outline { background: var(--card); border-color: var(--border); color: var(--navy); }
.btn-outline:hover { background: var(--secondary); }
.btn-ghost { background: transparent; color: var(--navy); }
.btn-ghost:hover { background: var(--secondary); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: color-mix(in oklch, var(--background) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.site-header-inner { display: flex; align-items: center; justify-content: space-between; height: 4.5rem; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: 0.7rem; }
.brand img { width: 44px; height: 44px; border-radius: 999px; object-fit: cover; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text strong { font-family: var(--font-display); font-weight: 400; font-size: 1.2rem; color: var(--navy); letter-spacing: 0.02em; }
.brand-text small { font-size: 0.62rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--accent-foreground); margin-top: 0.25rem; }
.brand-light .brand-text strong { color: var(--navy-foreground); }
.brand-light .brand-text small { color: var(--gold); }
.nav-toggle { display: inline-flex; background: none; border: 1px solid var(--border); border-radius: 0.5rem; padding: 0.45rem; color: var(--navy); cursor: pointer; }
.nav-toggle .icon { width: 1.4rem; height: 1.4rem; }
.site-nav { display: none; position: absolute; left: 0; right: 0; top: 4.5rem; background: var(--card); border-bottom: 1px solid var(--border); padding: 1rem 1.5rem 1.5rem; box-shadow: var(--shadow-card); }
.site-nav.is-open { display: block; }
.site-nav-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.25rem; }
.site-nav-list a { display: block; padding: 0.55rem 0.75rem; border-radius: 0.5rem; font-size: 0.95rem; font-weight: 500; color: color-mix(in oklch, var(--foreground) 80%, transparent); }
.site-nav-list a:hover, .site-nav-list .current-menu-item a { background: var(--secondary); color: var(--navy); }
.site-nav-actions { display: flex; gap: 0.5rem; margin-top: 1rem; }
@media (min-width: 1024px) {
	.nav-toggle { display: none; }
	.site-nav { display: flex; align-items: center; gap: 1.5rem; position: static; padding: 0; border: 0; box-shadow: none; background: transparent; }
	.site-nav-list { flex-direction: row; }
	.site-nav-list a { padding: 0.45rem 0.7rem; font-size: 0.9rem; }
	.site-nav-actions { margin: 0; }
}

/* ---------- Discovery hero (approved prototype structure) ---------- */
.discovery { background: color-mix(in oklch, var(--secondary) 60%, transparent); padding-bottom: 4rem; }
.discovery-hero { background: var(--navy); color: var(--navy-foreground); padding: 3.5rem 0; }
@media (min-width: 640px) { .discovery-hero { padding: 4rem 0; } }
.hero-title { color: var(--navy-foreground); font-family: var(--font-display); font-size: clamp(1.9rem, 4.6vw, 3rem); font-weight: 600; max-width: 64rem; margin: 0 auto; }
.hero-lead { margin: 1.25rem auto 0; max-width: 42rem; font-size: clamp(1rem, 1.6vw, 1.125rem); color: color-mix(in oklch, var(--navy-foreground) 75%, transparent); }
.discovery-bar { margin: 2.25rem auto 0; max-width: 64rem; display: grid; gap: 0.5rem; padding: 0.5rem; background: var(--card); border-radius: 1rem; box-shadow: var(--shadow-lift); text-align: left; }
@media (min-width: 640px) { .discovery-bar { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .discovery-bar { grid-template-columns: 1fr 1fr 1fr auto; } }
.discovery-field { display: flex; align-items: center; gap: 0.75rem; padding: 0.6rem 0.9rem; border-radius: 0.75rem; background: var(--muted); cursor: pointer; }
.discovery-icon { display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 0.5rem; background: var(--gold-soft); color: var(--accent-foreground); }
.discovery-text { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.discovery-text small { font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted-foreground); }
.discovery-text select { border: 0; background: transparent; font: inherit; font-weight: 600; color: var(--navy); padding: 0.1rem 0; width: 100%; outline: none; cursor: pointer; }

.results { padding-top: 2.5rem; scroll-margin-top: 7rem; }
.results-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
.results-head h2 { font-size: clamp(1.5rem, 3vw, 1.9rem); font-weight: 600; }
.result-card { max-width: 48rem; border-top: 4px solid var(--gold); padding: 1.5rem; margin-bottom: 1.25rem; }
@media (min-width: 640px) { .result-card { padding: 2rem; } }
.result-top { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; }
.result-card h3 { margin-top: 1rem; font-size: 1.5rem; }
.icon-line { display: flex; align-items: center; gap: 0.5rem; margin: 0.5rem 0 0.25rem; }
.icon-line .icon { color: var(--accent-foreground); }
.result-mark { display: grid; place-items: center; width: 3.5rem; height: 3.5rem; border-radius: 0.5rem; background: var(--navy); color: var(--gold); }
.result-mark .icon { width: 1.75rem; height: 1.75rem; }
.result-details { margin-top: 1.5rem; display: grid; gap: 1rem; padding: 1rem; border-radius: 0.5rem; background: color-mix(in oklch, var(--secondary) 70%, transparent); font-size: 0.9rem; }
@media (min-width: 640px) { .result-details { grid-template-columns: repeat(3, 1fr); } }
.result-details small { display: block; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted-foreground); }
.result-details strong { color: var(--navy); font-weight: 600; }
.result-actions { margin-top: 1.5rem; display: grid; gap: 0.75rem; }
@media (min-width: 640px) { .result-actions { grid-template-columns: 1fr 1fr; } }
.result-card > .small { margin-top: 0.75rem; }

/* ---------- Sections ---------- */
.page-hero { padding: 4rem 1.5rem; }
@media (min-width: 640px) { .page-hero { padding: 5rem 1.5rem; } }
.page-hero h1 { margin-top: 0.75rem; max-width: 48rem; font-size: clamp(1.9rem, 4.5vw, 3rem); }
.page-hero .lead { margin-top: 1.25rem; max-width: 42rem; color: color-mix(in oklch, var(--navy-foreground) 75%, transparent); }
.feature { padding: 1.5rem; display: block; transition: box-shadow 0.15s; }
.feature:hover { box-shadow: var(--shadow-lift); }
.feature h3 { margin-top: 1rem; font-size: 1.15rem; }
.feature p { margin-top: 0.5rem; font-size: 0.9rem; }
.feature-icon { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 0.5rem; background: var(--accent); color: var(--accent-foreground); }
.step-num { font-family: var(--font-display); font-size: 1.5rem; color: var(--gold); }
.price { font-family: var(--font-display); font-size: 2.5rem; margin: 1rem 0; color: var(--navy-foreground); }
.price span { font-family: var(--font-sans); font-size: 0.9rem; opacity: 0.65; }
.check-list { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: 0.6rem; }
.check-list li { display: flex; gap: 0.6rem; align-items: flex-start; }
.check-list .icon { color: var(--gold); margin-top: 0.2rem; }
.check-list.light li { color: color-mix(in oklch, var(--navy-foreground) 85%, transparent); }
.tag-list { list-style: none; padding: 0; margin: 1rem 0 1.5rem; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tag-list li { border-radius: 999px; background: var(--gold-soft); color: var(--gold-foreground); padding: 0.3rem 0.85rem; font-size: 0.85rem; font-weight: 600; }
.founder-strip, .founder-page { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 768px) { .founder-strip { grid-template-columns: 280px 1fr; } .founder-page { grid-template-columns: 380px 1fr; align-items: start; } }
.founder-photo { width: 100%; border-radius: calc(var(--radius) + 4px); box-shadow: var(--shadow-lift); object-fit: cover; aspect-ratio: 3 / 4; border: 4px solid var(--card); }
.founder-strip h2 { font-size: 2rem; margin-top: 0.5rem; }
.post-card { display: block; overflow: hidden; }
.post-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.post-card-body { padding: 1.25rem; }
.post-card h3 { font-size: 1.15rem; margin: 0.4rem 0; }
.post-hero-img img { border-radius: var(--radius); margin-bottom: 2rem; }
.entry-content { margin-top: 2rem; font-size: 1.02rem; line-height: 1.75; }
.entry-content h2, .entry-content h3 { margin: 2rem 0 0.75rem; }
.entry-content a { color: var(--accent-foreground); text-decoration: underline; }
.pagination { margin-top: 2rem; text-align: center; }

/* ---------- Footer ---------- */
.site-footer { margin-top: 6rem; padding-top: 4rem; }
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }
.site-footer h4 { color: var(--gold); font-family: var(--font-sans); font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.16em; margin-bottom: 1rem; }
.footer-note { margin-top: 1rem; font-size: 0.9rem; color: color-mix(in oklch, var(--navy-foreground) 70%, transparent); max-width: 22rem; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; font-size: 0.9rem; color: color-mix(in oklch, var(--navy-foreground) 75%, transparent); }
.footer-links a:hover { color: var(--gold); }
.footer-bottom { margin-top: 3rem; padding: 1.5rem; border-top: 1px solid oklch(1 0 0 / 10%); font-size: 0.8rem; color: color-mix(in oklch, var(--navy-foreground) 55%, transparent); }

/* ---------- Auth layout ---------- */
.auth { display: grid; min-height: calc(100vh - 4.5rem); }
@media (min-width: 1024px) { .auth { grid-template-columns: 1fr 1.1fr; } }
.auth-aside { display: none; padding: 3rem; flex-direction: column; justify-content: center; gap: 1rem; }
.auth-aside img { width: 96px; border-radius: 999px; }
.auth-aside h2 { font-size: 1.9rem; max-width: 26rem; }
.auth-aside p { color: color-mix(in oklch, var(--navy-foreground) 72%, transparent); max-width: 26rem; }
@media (min-width: 1024px) { .auth-aside { display: flex; } }
.auth-main { padding: 3.5rem 1.5rem; max-width: 40rem; width: 100%; margin: 0 auto; }
.site-footer { position: relative; }
body.page-template-template-auth .site-footer { margin-top: 0; }

/* ---------- PrimeTop Core plugin UI (forms, portals) ---------- */
.pt-form { display: grid; gap: 1rem; }
.pt-form-grid { grid-template-columns: 1fr; }
@media (min-width: 640px) { .pt-form-grid { grid-template-columns: 1fr 1fr; } .pt-span-2 { grid-column: span 2; } }
.pt-form label, .pt-form legend { display: flex; flex-direction: column; gap: 0.35rem; font-size: 0.88rem; font-weight: 600; color: var(--navy); }
.pt-form input:not([type=checkbox]), .pt-form select, .pt-form textarea, .pt-filters input, .pt-filters select { font: inherit; font-weight: 400; color: var(--foreground); background: var(--card); border: 1px solid var(--border); border-radius: calc(var(--radius) - 2px); padding: 0.65rem 0.8rem; width: 100%; }
.pt-form input:focus, .pt-form select:focus, .pt-form textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.pt-form fieldset { border: 0; padding: 0; margin: 0; }
.pt-check { flex-direction: row !important; align-items: center; font-weight: 400 !important; }
.pt-checks { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.4rem; }
.pt-chip { flex-direction: row !important; align-items: center; gap: 0.4rem !important; border: 1px solid var(--border); border-radius: 999px; padding: 0.3rem 0.8rem; font-weight: 500 !important; cursor: pointer; background: var(--card); }
.pt-tabs { display: inline-flex; background: var(--muted); border-radius: 999px; padding: 0.25rem; margin-bottom: 1.5rem; }
.pt-tabs a { padding: 0.45rem 1.1rem; border-radius: 999px; font-weight: 600; font-size: 0.9rem; color: var(--muted-foreground); }
.pt-tabs a.is-active { background: var(--card); color: var(--navy); box-shadow: var(--shadow-card); }
.pt-btn { display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: calc(var(--radius) - 2px); padding: 0.7rem 1.2rem; font: inherit; font-weight: 600; cursor: pointer; }
.pt-btn-block { width: 100%; }
.pt-btn-gold { background: var(--gold); color: var(--gold-foreground); }
.pt-btn-navy { background: var(--navy); color: var(--navy-foreground); }
.pt-btn-disabled { background: var(--muted); color: var(--muted-foreground); cursor: not-allowed; }
.pt-muted { color: var(--muted-foreground); font-size: 0.88rem; margin-top: 0.75rem; }
.pt-muted a, .pt-alert a { color: var(--accent-foreground); text-decoration: underline; }
.pt-alert { border-radius: calc(var(--radius) - 2px); padding: 0.75rem 1rem; background: var(--secondary); font-size: 0.92rem; margin-bottom: 1rem; }
.pt-alert-error { background: color-mix(in oklch, var(--destructive) 10%, transparent); color: var(--destructive); }
.pt-alert-warn { background: color-mix(in oklch, var(--warning) 18%, transparent); }
.pt-alert-ok { background: color-mix(in oklch, var(--success) 14%, transparent); }
.pt-portal { display: grid; gap: 1.5rem; margin-top: 1.5rem; }
@media (min-width: 900px) { .pt-portal { grid-template-columns: 230px 1fr; align-items: start; } }
.pt-portal-nav { display: flex; flex-wrap: wrap; gap: 0.25rem; background: var(--navy-deep); border-radius: var(--radius); padding: 0.75rem; }
@media (min-width: 900px) { .pt-portal-nav { flex-direction: column; position: sticky; top: 6rem; } }
.pt-portal-nav a { padding: 0.55rem 0.85rem; border-radius: 0.5rem; color: color-mix(in oklch, var(--navy-foreground) 80%, transparent); font-size: 0.92rem; }
.pt-portal-nav a.is-active, .pt-portal-nav a:hover { background: oklch(0.27 0.065 264); color: var(--gold); }
.pt-portal-body { display: grid; gap: 1.25rem; min-width: 0; }
.pt-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-card); padding: 1.5rem; }
.pt-card h2 { font-size: 1.5rem; margin-bottom: 0.75rem; }
.pt-card-alert { border-left: 4px solid var(--destructive); display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; }
.pt-eyebrow { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent-foreground); }
.pt-price { font-family: var(--font-display); font-size: 2rem; color: var(--navy); }
.pt-price span { font-size: 0.9rem; color: var(--muted-foreground); font-family: var(--font-sans); }
.pt-list { padding-left: 1.2rem; color: var(--muted-foreground); }
.pt-inline { display: inline; }
.pt-grid-3 { display: grid; gap: 1rem; }
@media (min-width: 640px) { .pt-grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .pt-grid-3 { grid-template-columns: repeat(4, 1fr); } }
.pt-tile { display: flex; flex-direction: column; gap: 0.25rem; }
.pt-tile strong { color: var(--navy); font-family: var(--font-display); font-weight: 400; font-size: 1.05rem; }
.pt-filters { display: grid; gap: 0.75rem; align-items: end; }
@media (min-width: 768px) { .pt-filters { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px) { .pt-filters { grid-template-columns: repeat(6, 1fr); } }
.pt-filters label { display: flex; flex-direction: column; gap: 0.3rem; font-size: 0.8rem; font-weight: 600; color: var(--navy); }
.pt-resource-list { display: grid; gap: 1rem; }
.pt-resource { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; }
.pt-resource h3 { font-size: 1.1rem; }
.pt-resource p { margin: 0.25rem 0 0; }
.pt-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.pt-table th, .pt-table td { text-align: left; padding: 0.6rem; border-bottom: 1px solid var(--border); }
.pt-badge { display: inline-flex; border-radius: 999px; padding: 0.15rem 0.7rem; font-size: 0.78rem; font-weight: 600; background: var(--muted); color: var(--muted-foreground); }
.pt-badge-active { background: color-mix(in oklch, var(--success) 15%, transparent); color: var(--success); }
.pt-badge-restricted, .pt-badge-cancelled { background: color-mix(in oklch, var(--destructive) 12%, transparent); color: var(--destructive); }
.pt-badge-created { background: color-mix(in oklch, var(--warning) 20%, transparent); color: var(--gold-foreground); }
