/* Digital Psych — Site Styles */
@import url('https://fonts.googleapis.com/css2?family=Source+Serif+4:ital,opsz,wght@0,8..60,400;0,8..60,600;1,8..60,400&family=Source+Sans+3:wght@300;400;500;600&display=swap');

:root {
  --blue-900: #0b2a45;
  --blue-800: #0e3a5e;
  --blue-700: #1a5276;
  --blue-600: #2874a6;
  --blue-500: #5499c7;
  --blue-100: #d6eaf8;
  --blue-50: #eef6fc;
  --text: #2c2c2c;
  --text-s: #555;
  --text-l: #777;
  --border: #e2e2e2;
  --bg-alt: #f6f6f6;
  --white: #fff;
  --font-h: 'Source Serif 4', Georgia, serif;
  --font-b: 'Source Sans 3', -apple-system, sans-serif;
  --max-w: 960px;
  --nav-h: 56px;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { font-family: var(--font-b); font-size: 16px; line-height: 1.65; color: var(--text); background: var(--white); }
img { max-width: 100%; display: block; }
a { color: var(--blue-600); text-decoration: none; }
a:hover { color: var(--blue-800); text-decoration: underline; }
h1, h2, h3 { font-family: var(--font-h); font-weight: 600; color: var(--text); line-height: 1.25; }
h1 { font-size: 2.2rem; }
h2 { font-size: 1.45rem; margin-top: 1.75em; margin-bottom: 0.5em; }
h3 { font-size: 1.1rem; margin-top: 1.25em; margin-bottom: 0.3em; }
p { margin-bottom: 0.85em; }
ul, ol { margin: 0 0 1em 1.4em; }
li { margin-bottom: 0.3em; }
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

/* NAV */
.site-nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; background: var(--white); border-bottom: 1px solid var(--border); }
.site-nav .container { display: flex; align-items: center; justify-content: space-between; height: var(--nav-h); }
.site-nav__name { font-family: var(--font-b); font-weight: 600; font-size: 0.92rem; color: var(--blue-900); white-space: nowrap; }
.site-nav__name:hover { text-decoration: none; }
.site-nav__links { display: flex; gap: 2px; list-style: none; }
.site-nav__links a { padding: 6px 10px; font-size: 0.84rem; font-weight: 500; color: var(--text-s); border-radius: 3px; white-space: nowrap; }
.site-nav__links a:hover { background: var(--blue-50); color: var(--blue-700); text-decoration: none; }
.site-nav__links a.active { background: var(--blue-50); color: var(--blue-700); }
.hamburger { display: none; background: none; border: none; cursor: pointer; width: 24px; height: 20px; position: relative; }
.hamburger span { display: block; width: 100%; height: 1.5px; background: var(--text); position: absolute; left: 0; transition: 0.3s; }
.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 9px; }
.hamburger span:nth-child(3) { top: 18px; }
.hamburger.open span:nth-child(1) { top: 9px; transform: rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { top: 9px; transform: rotate(-45deg); }
.mobile-menu { display: none; position: fixed; top: var(--nav-h); left: 0; right: 0; bottom: 0; background: var(--white); z-index: 99; padding: 12px 24px; overflow-y: auto; }
.mobile-menu.open { display: block; }
.mobile-menu a { display: block; padding: 12px 0; font-size: 1rem; font-weight: 500; color: var(--text); border-bottom: 1px solid var(--border); }
.mobile-menu a:hover { text-decoration: none; color: var(--blue-600); }

/* TICKER */
.ticker-outer { background: #1a2a3a; overflow: hidden; padding: 9px 0; width: 100%; margin-top: var(--nav-h); }
.ticker-inner { display: flex; width: max-content; animation: ticker-scroll 30s linear infinite; }
.ticker-inner:hover { animation-play-state: paused; }
.ticker-item { display: flex; align-items: center; gap: 10px; padding: 0 2.5rem; white-space: nowrap; cursor: pointer; }
.ticker-item:hover .ticker-title { text-decoration: underline; }
.ticker-cat { font-size: 10px; font-weight: 600; color: #5DCAA5; text-transform: uppercase; letter-spacing: 0.08em; }
.ticker-title { font-size: 13px; color: #e2e2e2; font-family: var(--font-h); }
.ticker-date { font-size: 11px; color: #666; }
.ticker-dot { color: #333; font-size: 20px; line-height: 1; }
@keyframes ticker-scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* HERO — no background photo */
.hero { padding: 52px 0 44px; background: var(--blue-900); position: relative; }
.hero.no-ticker { margin-top: var(--nav-h); }
.hero .container { position: relative; }
.hero__aff { font-size: 0.78rem; font-weight: 500; color: rgba(255,255,255,0.45); letter-spacing: 0.02em; margin-bottom: 14px; }
.hero h1 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.5rem); margin-bottom: 12px; }
.hero p { color: rgba(255,255,255,0.72); font-size: 1rem; max-width: 520px; margin-bottom: 24px; }
.hero__links a { color: rgba(255,255,255,0.75); font-weight: 500; font-size: 0.88rem; margin-right: 20px; border-bottom: 1px solid rgba(255,255,255,0.22); padding-bottom: 1px; }
.hero__links a:hover { color: #fff; border-color: #fff; text-decoration: none; }

/* PAGE HEADER (subpages) */
.page-head { padding: 40px 0 28px; background: var(--bg-alt); border-bottom: 1px solid var(--border); }
.page-head.no-ticker { margin-top: var(--nav-h); }
.page-head h1 { margin-bottom: 8px; }
.page-head p { color: var(--text-s); font-size: 1rem; max-width: 540px; margin: 0; }

/* PAGE CONTENT */
.page-body { padding: 40px 0 56px; }
.page-body .container.prose { max-width: 720px; }

/* SECTIONS */
.section { padding: 44px 0; }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--blue-900); color: #fff; }
.section h2 { margin-top: 0; margin-bottom: 6px; }
.section__sub { color: var(--text-l); margin-bottom: 28px; }
.section--dark .section__sub { color: rgba(255,255,255,0.55); }

/* TWO-COLUMN SPLIT LAYOUT */
.section--split { padding: 44px 0; }
.split-layout { display: grid; grid-template-columns: 1fr 340px; gap: 48px; align-items: start; }
.split-main { }
.split-main .about-text { color: var(--text-s); margin-bottom: 28px; }
.split-aside { border-left: 1px solid var(--border); padding-left: 32px; }

/* WORK ROWS — within left column */
.work-rows { }
.work-row { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 16px 0; border-top: 1px solid var(--border); align-items: baseline; }
.work-row:last-child { border-bottom: 1px solid var(--border); }
.work-row__label { font-family: var(--font-h); font-size: 1.1rem; font-weight: 600; color: var(--blue-700); }
.work-row p { margin: 0; color: var(--text-s); font-size: 0.95rem; }

/* NEWS ASIDE — right column */
.news-aside-header { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 16px; }
.news-aside-header h2 { font-size: 1.15rem; font-weight: 600; }
.news-view-all { font-size: 12px; color: var(--text-l); border-bottom: 1px solid #ccc; padding-bottom: 1px; }
.news-view-all:hover { color: var(--text); border-color: var(--text); text-decoration: none; }
.news-aside-list { }
.news-item { padding: 14px 0; border-bottom: 1px solid var(--border); }
.news-item:first-child { border-top: 1px solid var(--border); }
.news-item-meta { display: flex; align-items: center; gap: 7px; margin-bottom: 4px; }
.news-item-cat { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.07em; color: #0F6E56; }
.news-item-date { font-size: 11px; color: #999; }
.news-item-title { font-family: var(--font-h); font-size: 14px; font-weight: 400; color: var(--text); line-height: 1.4; margin: 0; }
.news-item:hover .news-item-title { color: var(--blue-700); }
.news-item a { display: block; color: inherit; }
.news-item a:hover { text-decoration: none; }
.news-loading { font-size: 13px; color: #999; padding: 1rem 0; }
.news-aside-list .news-item-cat,
.news-aside-list .news-card-cat,
.news-aside-list .news-item-lede,
.news-aside-list .news-card-lede { display: none; }

/* PROGRAM LIST — editorial rows, not cards */
.prog-list { border-top: 2px solid var(--text); }
.prog-row { display: grid; grid-template-columns: 160px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--border); align-items: baseline; color: inherit; }
.prog-row:hover { background: var(--blue-50); margin: 0 -12px; padding-left: 12px; padding-right: 12px; text-decoration: none; }
.prog-row__name { font-family: var(--font-b); font-weight: 600; font-size: 0.95rem; color: var(--text); }
.prog-row__desc { font-size: 0.88rem; color: var(--text-l); }

/* PRESS LIST */
.press-list a { display: flex; gap: 14px; padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,0.07); color: rgba(255,255,255,0.75); align-items: baseline; }
.press-list a:last-child { border-bottom: none; }
.press-list a:hover { color: #fff; text-decoration: none; }
.press-src { font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; color: var(--blue-500); min-width: 72px; flex-shrink: 0; }
.press-title { font-size: 0.88rem; line-height: 1.4; }

/* FOOTER */
.site-footer { background: var(--blue-900); color: rgba(255,255,255,0.5); padding: 36px 0 20px; font-size: 0.85rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer-info { max-width: 320px; }
.footer-info strong { color: rgba(255,255,255,0.8); }
.footer-info p { margin-top: 8px; line-height: 1.6; }
.footer-links { display: flex; gap: 36px; }
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 5px; }
.footer-links a { color: rgba(255,255,255,0.5); }
.footer-links a:hover { color: rgba(255,255,255,0.9); text-decoration: none; }
.footer-copy { margin-top: 28px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,0.08); font-size: 0.78rem; color: rgba(255,255,255,0.3); }

/* RESPONSIVE */
@media (max-width: 768px) {
  .site-nav__links { display: none; }
  .hamburger { display: block; }
  .hero { padding: 40px 0 32px; }
  .hero h1 { font-size: 1.7rem; }
  .split-layout { grid-template-columns: 1fr; gap: 36px; }
  .split-aside { border-left: none; padding-left: 0; border-top: 1px solid var(--border); padding-top: 28px; }
  .prog-row { grid-template-columns: 1fr; gap: 2px; }
  .prog-row__name { font-size: 1rem; }
  .press-list a { flex-direction: column; gap: 2px; }
  .footer-inner { flex-direction: column; gap: 24px; }
  .footer-links { gap: 24px; }
}
