/*
 Theme Name:   Sitonia Custom Templates
 Theme URI:    https://sitoniaconsulting.com
 Description:  Custom page templates for landing, media, and featured research pages.
 Author:       Sitonia Consulting
 Template:     twentytwentyone
 Version:      1.0.0
*/

/* ============================================================
   SITONIA DESIGN SYSTEM — overrides for Twenty Twenty-One
   ============================================================ */

:root {
  --green-dark:  #1a3d2b;
  --green-mid:   #2d6a4f;
  --green-light: #e8f2ec;
  --gold:        #c8952a;
  --gold-light:  #e0af50;
  --cream:       #f6f2eb;
  --border:      #ddd8ce;
  --text-dark:   #1a1a1a;
  --text-mid:    #4a4a4a;
  --text-muted:  #777;
}

/* Body */
body {
  font-family: Georgia, 'Times New Roman', serif;
  color: var(--text-dark);
  background: #fff;
}

/* ── Header & branding ───────────────────────────── */
#masthead.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--green-dark);
  border-bottom: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  height: 60px;
  width: 100%;
  box-sizing: border-box;
  max-width: none;
}

.admin-bar #masthead.site-header { top: 32px; }
@media screen and (max-width: 782px) {
  .admin-bar #masthead.site-header { top: 46px; }
}

.site-branding {
  padding: 0;
  margin: 0;
  flex-shrink: 0;
}

.site-title {
  margin: 0;
  padding: 0;
}

.site-title a,
.site-title a:visited {
  color: #fff;
  font-family: Georgia, serif;
  font-size: 1.05rem;
  letter-spacing: 0.03em;
  text-decoration: none;
}

.site-title a:hover {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
}

.site-description {
  color: rgba(255,255,255,0.6);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.78rem;
  margin-top: 0.1rem;
}

/* ── Navigation ──────────────────────────────────── */
#site-navigation.primary-navigation {
  background: transparent;
  display: flex;
  align-items: center;
}

/* Hide mobile toggle button */
.menu-button-container {
  display: none !important;
}

/* Always show menu links */
.primary-menu-container {
  display: block !important;
}

#primary-menu-list.menu-wrapper {
  display: flex !important;
  flex-direction: row;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
  list-style: none;
  padding: 0;
  margin: 0;
}

.primary-navigation a {
  color: rgba(255,255,255,0.8) !important;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.875rem;
  text-decoration: none;
  padding: 0.35rem 0.75rem;
  display: block;
}

.primary-navigation a:hover,
.primary-navigation .current-menu-item > a {
  color: #fff !important;
  text-decoration: none;
}

/* ── Headings ────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: normal;
  color: var(--green-dark);
  line-height: 1.25;
}

.entry-title,
.entry-title a,
.page-title {
  color: var(--green-dark);
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: normal;
  text-decoration: none;
}

.entry-title a:hover {
  color: var(--green-mid);
  text-decoration: none;
}

/* ── Links ───────────────────────────────────────── */
a {
  color: var(--green-mid);
}

a:hover {
  color: var(--gold);
}

/* ── Post meta (date, author) ────────────────────── */
.posted-on,
.byline,
.entry-date,
.author.vcard,
.entry-footer,
.entry-footer a {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-decoration: none;
}

.entry-footer a:hover {
  color: var(--gold);
}

/* ── Category & tag labels ───────────────────────── */
.cat-links a,
.tags-links a {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--green-mid);
  background: var(--green-light);
  padding: 0.2rem 0.6rem;
  border-radius: 2px;
  text-decoration: none;
  display: inline-block;
}

.cat-links a:hover,
.tags-links a:hover {
  color: var(--gold);
  background: var(--green-light);
  text-decoration: none;
}

/* ── Entry content ───────────────────────────────── */
.entry-content,
.entry-summary {
  font-family: Georgia, 'Times New Roman', serif;
  color: var(--text-dark);
  line-height: 1.75;
}

.entry-content a {
  color: var(--green-mid);
  text-decoration: underline;
}

.entry-content a:hover {
  color: var(--gold);
}

/* ── Post list / archive cards ───────────────────── */
.post {
  border-bottom: 1px solid var(--border);
  padding-bottom: 2rem;
  margin-bottom: 2rem;
}

/* ── Hide empty post blocks (unsync'd staging posts) */
.wp-block-post:empty {
  display: none;
}

/* ── Archive / blog page spacing ─────────────────── */
.blog .page-header,
.archive .page-header {
  padding-top: 0;
  padding-bottom: 0;
  margin-top: 0;
  margin-bottom: 0;
}

.blog .page-header:empty,
.archive .page-header:empty {
  display: none;
}

.archive-description:empty,
.taxonomy-description:empty {
  display: none;
}

.blog #main > .page-header,
.archive #main > .page-header {
  padding: 1.5rem 0;
}

/* ── Buttons ─────────────────────────────────────── */
.wp-block-button__link,
input[type="submit"] {
  background: var(--gold);
  color: #fff;
  border: none;
  border-radius: 3px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 600;
}

.wp-block-button__link:hover,
input[type="submit"]:hover {
  background: var(--gold-light);
  color: #fff;
}

/* ── Footer ──────────────────────────────────────── */

/* Hide TT1's default footer (just shows site name / Powered by WordPress) */
#colophon.site-footer {
  display: none;
}

.site-footer {
  background: #0f2a1c;
  color: rgba(255,255,255,0.6);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.875rem;
  border-top: none;
}

.site-footer a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
}

.site-footer a:hover {
  color: #fff;
}

.site-info {
  color: rgba(255,255,255,0.6);
}
