/* ===================================================
   The Journal of Applied Research — styles.css
   Modernized 2026 | Therapeutic Solutions LLC
   =================================================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:         #0d1b3e;
  --navy-mid:     #1a3070;
  --navy-light:   #2a4a9e;
  --gold:         #c9a227;
  --gold-light:   #e8c84a;
  --white:        #ffffff;
  --off-white:    #f8f9fb;
  --bg:           #e8ecf2;
  --nav-main:     #8a96b8;
  --nav-sub:      #c4cad8;
  --nav-label:    #6e7a9a;
  --border:       #d0d6e4;
  --text:         #1a1a2e;
  --text-muted:   #5a5f7a;
  --link:         #0a3d8f;
  --link-hover:   #1250c0;
  --notice-bg:    #fffbea;
  --notice-bdr:   #c9a227;
  --notice-text:  #3d2b00;
  --font-serif:   Georgia, 'Times New Roman', Times, serif;
  --font-ui:      system-ui, -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
}

html { font-size: 16px; }

body {
  font-family: var(--font-serif);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── HEADER ─────────────────────────────────────── */
.site-header {
  background: var(--navy);
  padding: 1.1rem 1.5rem 0;
}

.header-inner {
  max-width: 1060px;
  margin: 0 auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}

.journal-title {
  flex: 1;
  padding-bottom: 1.1rem;
}

.jt-main {
  font-family: var(--font-serif);
  color: var(--gold);
  line-height: 1.1;
  text-align: center;
}
.jt-the-journal {
  display: block;
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.jt-of {
  display: block;
  font-size: 0.85rem;
  font-style: italic;
  font-weight: 400;
  line-height: 1.5;
}
.jt-applied {
  display: block;
  font-size: 1.9rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.jt-rule {
  width: 55%;
  height: 1px;
  background: var(--gold);
  opacity: 0.35;
  margin: 0.4rem auto 0.35rem;
}

.jt-sub {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--gold-light);
  letter-spacing: 0.02em;
  text-align: center;
}

.header-cover img {
  display: block;
  width: 150px;
  border: 2px solid rgba(201,162,39,0.35);
  border-radius: 2px;
}

/* ── BODY WRAPPER ───────────────────────────────── */
.site-body {
  max-width: 1060px;
  width: 100%;
  margin: 0 auto;
  flex: 1;
  display: flex;
  align-items: stretch;
  background: var(--white);
  box-shadow: 0 2px 16px rgba(0,0,0,0.14);
}

/* ── NAVIGATION ─────────────────────────────────── */
.site-nav {
  width: 195px;
  flex-shrink: 0;
  background: var(--off-white);
  border-right: 1px solid var(--border);
  font-family: var(--font-ui);
  font-size: 0.8rem;
  display: flex;
  flex-direction: column;
  padding-top: 0.5rem;
}

.site-nav a {
  display: block;
  padding: 0.42rem 0.9rem;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  line-height: 1.3;
  transition: background 0.12s, color 0.12s;
}

.site-nav a.nav-main {
  background: var(--nav-main);
  font-weight: 600;
  color: var(--navy);
}

.site-nav a.nav-main:hover {
  background: var(--navy);
  color: var(--gold-light);
}

.site-nav a.nav-sub {
  background: var(--nav-sub);
  padding-left: 1.3rem;
  font-weight: 400;
  color: #2a2a3a;
}

.site-nav a.nav-sub:hover {
  background: var(--navy-mid);
  color: var(--gold-light);
}

.nav-group-label {
  background: var(--nav-main);
  font-weight: 700;
  color: var(--navy);
  font-size: 0.76rem;
  padding: 0.42rem 0.9rem;
  border-bottom: 1px solid var(--border);
  line-height: 1.3;
}

/* ── MAIN CONTENT ───────────────────────────────── */
.site-content {
  flex: 1;
  min-width: 0;
  padding: 1.5rem 2rem 2.5rem;
}

.site-content h1, .site-content .page-title {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  color: #000067;
  text-align: center;
  margin-bottom: 1.1rem;
  font-weight: bold;
  font-style: italic;
}

.site-content h2 {
  font-family: var(--font-ui);
  font-size: 1.05rem;
  color: var(--navy);
  margin: 1.4rem 0 0.5rem;
  font-weight: 700;
}

.site-content h3 {
  font-family: var(--font-ui);
  font-size: 0.95rem;
  color: var(--navy-mid);
  margin: 1.1rem 0 0.4rem;
  font-weight: 600;
}

.site-content p { margin-bottom: 0.85rem; }

.site-content ul, .site-content ol {
  margin: 0.5rem 0 0.85rem 1.5rem;
}

.site-content li { margin-bottom: 0.3rem; }

.site-content a { color: var(--link); text-decoration: none; }
.site-content a:hover { color: var(--link-hover); text-decoration: underline; }

.site-content hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 1.25rem 0;
}

.site-content table { max-width: 100%; }

.site-content img { max-width: 100%; height: auto; }

/* Form elements */
.site-content input[type="text"],
.site-content input[type="email"],
.site-content textarea,
.site-content select {
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 0.3rem 0.5rem;
  font-size: 0.9rem;
  font-family: var(--font-ui);
}

.site-content input[type="submit"],
.site-content button[type="submit"] {
  background: var(--navy);
  color: var(--gold-light);
  border: none;
  border-radius: 3px;
  padding: 0.45rem 1.1rem;
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 0.5rem;
}

.site-content input[type="submit"]:hover {
  background: var(--navy-mid);
}

/* Ceased publication notice */
.notice-ceased {
  background: var(--notice-bg);
  border: 2px solid var(--notice-bdr);
  border-radius: 4px;
  padding: 0.9rem 1.1rem;
  margin-bottom: 1.5rem;
  color: var(--notice-text);
  font-family: var(--font-ui);
  font-size: 0.92rem;
  line-height: 1.5;
}

.notice-ceased strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 0.25rem;
  color: #7a4400;
}

/* Contact page layout */
.contact-grid {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.contact-col {
  flex: 1;
  min-width: 200px;
}

.contact-col h3 {
  text-decoration: underline;
  text-align: center;
  margin-bottom: 0.6rem;
}

.contact-col p { margin-bottom: 0.6rem; }

/* Policy pages */
.policy-content h2 {
  text-align: left;
  margin-top: 1.5rem;
}

.policy-content p { margin-bottom: 0.75rem; }

/* ── FOOTER ─────────────────────────────────────── */
.site-footer {
  background: var(--navy);
  color: #8a96b8;
  text-align: center;
  padding: 1.1rem 1rem 1.25rem;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  line-height: 1.9;
}

.site-footer p + p { margin-top: 0.2rem; }

.footer-links a {
  color: var(--gold);
  text-decoration: none;
  margin: 0 0.3rem;
}

.footer-links a:hover {
  color: var(--gold-light);
  text-decoration: underline;
}

/* ── CONTENT PHOTO ──────────────────────────────── */
.content-photo {
  margin: 1.5rem -1.5rem;
  overflow: hidden;
  max-height: 280px;
}

.content-photo img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  object-position: center 40%;
  display: block;
}

/* ── PRESS RELEASE LIST ─────────────────────────────── */
.press-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.press-list li {
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
  line-height: 1.4;
}

.press-list li:first-child {
  border-top: 1px solid var(--border);
}

.press-date {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-family: var(--font-ui);
  white-space: nowrap;
}

/* ── RESPONSIVE ─────────────────────────────────── */
@media (max-width: 700px) {
  .site-body { flex-direction: column; }
  .site-nav { width: 100%; border-right: none; border-bottom: 2px solid var(--border); }
  .site-content { padding: 1rem 1rem 2rem; }
  .header-inner { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
  .header-cover img { width: 90px; }
  .jt-applied { font-size: 1.45rem; }
  .contact-grid { flex-direction: column; }
}

/* ── PREVIOUS ISSUES ARCHIVE GRID ───────────────── */
.archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1.5rem;
  margin-top: 1.25rem;
}

.archive-vol {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.9rem 1rem 1rem;
}

.archive-vol h3 {
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin: 0 0 0.5rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--border);
}

.archive-year {
  font-weight: 400;
  color: var(--text-muted);
}

.archive-vol ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.archive-vol li {
  padding: 0.25rem 0;
  font-size: 0.88rem;
}

.archive-vol a {
  color: var(--link);
  text-decoration: none;
}

.archive-vol a:hover {
  text-decoration: underline;
}
