/* PALNET / pedseeg.com — styles
   Single stylesheet, mobile-first.
   ---------------------------------------------------- */

/* ---------- Theme tokens ---------- */
:root {
  --ink: #111827;
  --ink-soft: #1f2937;
  --paper: #ffffff;
  --paper-tint: #f8fafc;
  --paper-accent: #ecfeff;
  --accent: #0f766e;         /* teal — primary accent */
  --accent-hover: #115e59;
  --accent-soft: #ccfbf1;
  --warm: #d97706;           /* amber — secondary accent */
  --warm-soft: #fef3c7;
  --muted: #64748b;
  --muted-soft: #cbd5e1;
  --border: #e5e7eb;
  --danger: #b91c1c;

  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06), 0 1px 1px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08), 0 2px 4px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 12px 28px rgba(15, 23, 42, 0.12), 0 4px 8px rgba(15, 23, 42, 0.06);

  --container: 1100px;
  --container-narrow: 760px;

  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }

a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover { color: var(--accent-hover); }

h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 0.6em; color: var(--ink); }
h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); font-weight: 700; letter-spacing: -0.01em; }
h3 { font-size: 1.25rem; font-weight: 600; }
h4 { font-size: 1.05rem; font-weight: 600; }
p { margin: 0 0 1em; }

ul, ol { margin: 0 0 1em; padding-left: 1.4em; }
li { margin-bottom: 0.35em; }

hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 3rem 0;
}

/* ---------- Accessibility helpers ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: 0.6rem 1rem;
  background: var(--ink);
  color: #fff;
  z-index: 100;
  border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.25rem;
}
.container-narrow { max-width: var(--container-narrow); }

.section { padding: 4rem 0; }
.section-tight { padding: 2.5rem 0; }
.section-accent { background: var(--paper-tint); }

@media (min-width: 720px) {
  .section { padding: 5.5rem 0; }
}

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--ink);
}
.brand img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.brand-name {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}
.brand-tag {
  font-size: 0.72rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.nav-toggle {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.5rem 0.7rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  color: var(--ink);
}
.nav-toggle:hover { background: var(--paper-tint); }

.nav-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  width: 100%;
  border-top: 1px solid var(--border);
  padding-top: 0.5rem;
  margin-top: 0.5rem;
}
.nav-menu.open { display: flex; }
.nav-menu a {
  display: block;
  padding: 0.6rem 0.5rem;
  text-decoration: none;
  color: var(--ink-soft);
  border-radius: var(--radius);
  font-weight: 500;
}
.nav-menu a:hover, .nav-menu a[aria-current="page"] {
  background: var(--paper-tint);
  color: var(--accent);
}

@media (min-width: 880px) {
  .nav-toggle { display: none; }
  .nav-menu {
    display: flex !important;
    flex-direction: row;
    width: auto;
    border: 0;
    padding: 0;
    margin: 0;
    gap: 0.15rem;
  }
  .nav-menu a { padding: 0.45rem 0.85rem; font-size: 0.96rem; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  font-size: 0.98rem;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.05s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; }
.btn-secondary {
  background: var(--paper);
  color: var(--accent);
  border-color: var(--accent);
}
.btn-secondary:hover { background: var(--accent-soft); color: var(--accent-hover); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--border);
}
.btn-ghost:hover { background: var(--paper-tint); }

/* ---------- Hero ---------- */
.hero {
  padding: 4rem 0 3rem;
  background: linear-gradient(180deg, var(--paper-accent) 0%, var(--paper) 100%);
  border-bottom: 1px solid var(--border);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 880px) {
  .hero { padding: 5.5rem 0 4.5rem; }
  .hero-grid { grid-template-columns: 1.2fr 1fr; gap: 3.5rem; }
}
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 1.2rem;
}
.hero h1 { margin-bottom: 1rem; }
.hero-lead {
  font-size: 1.18rem;
  color: var(--ink-soft);
  margin-bottom: 1.75rem;
  max-width: 38ch;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.hero-image {
  background: var(--paper);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 1.5rem;
  border: 1px solid var(--border);
}
.hero-image img { margin: 0 auto; max-width: 320px; }

/* ---------- Page header (non-home) ---------- */
.page-header {
  padding: 3.5rem 0 2rem;
  background: var(--paper-tint);
  border-bottom: 1px solid var(--border);
}
.page-header h1 { margin-bottom: 0.5rem; }
.page-header p {
  font-size: 1.1rem;
  color: var(--ink-soft);
  max-width: 60ch;
  margin: 0;
}

/* ---------- Card grid ---------- */
.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 640px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 880px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.card:hover { box-shadow: var(--shadow-md); }
.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }
.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.4rem;
  font-weight: 700;
}

/* ---------- People (Leadership) ---------- */
.person {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
}
.person-photo {
  width: 120px;
  height: 120px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 2rem;
  color: var(--accent);
  overflow: hidden;
}
.person-photo img { width: 100%; height: 100%; object-fit: cover; }
.person h3 { margin-bottom: 0.2em; }
.person-role {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.4em;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.person-affiliation {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 0.8em;
}
.person-bio { font-size: 0.95rem; color: var(--ink-soft); text-align: left; }

/* ---------- Video / lecture cards ---------- */
.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--paper-tint);
  border: 1px solid var(--border);
  margin-bottom: 1rem;
}
.video-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.video-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.95rem;
  text-align: center;
  padding: 1rem;
}

/* ---------- Sponsor band ---------- */
.sponsor-band {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 2rem;
  align-items: center;
  justify-items: center;
  padding: 2rem 0;
}
.sponsor-band .sponsor-logo {
  filter: grayscale(100%);
  opacity: 0.7;
  transition: filter 0.2s, opacity 0.2s;
  max-height: 60px;
  width: auto;
}
.sponsor-band a:hover .sponsor-logo { filter: grayscale(0); opacity: 1; }

.sponsor-block {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  align-items: start;
  padding: 1.75rem;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
@media (min-width: 720px) {
  .sponsor-block { grid-template-columns: 200px 1fr; gap: 2rem; }
}
.sponsor-block .sponsor-logo-box {
  background: var(--paper-tint);
  border-radius: var(--radius);
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100px;
  border: 1px solid var(--border);
  font-weight: 700;
  color: var(--muted);
  text-align: center;
}
.sponsor-block h3 { margin-top: 0; margin-bottom: 0.3em; }
.sponsor-block .sponsor-tag {
  font-size: 0.85rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.5em;
}

/* ---------- Event / timeline ---------- */
.event-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.event-item {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  padding: 1.25rem 1.5rem;
  background: var(--paper);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
}
@media (min-width: 720px) {
  .event-item { grid-template-columns: 180px 1fr auto; align-items: center; gap: 1.5rem; }
}
.event-date {
  font-weight: 700;
  color: var(--accent);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}
.event-title { font-weight: 600; }
.event-meta { font-size: 0.9rem; color: var(--muted); margin-top: 0.2em; }

/* ---------- Members directory ---------- */
.member-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.75rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.member-list li {
  padding: 0.9rem 1rem;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.95rem;
}
.member-list .member-name { font-weight: 600; color: var(--ink); }
.member-list .member-location { color: var(--muted); font-size: 0.85rem; margin-top: 0.15em; }

/* ---------- Form ---------- */
.form { display: flex; flex-direction: column; gap: 1.1rem; }
.form-row { display: flex; flex-direction: column; gap: 0.3rem; }
.form-row label { font-weight: 600; font-size: 0.95rem; color: var(--ink); }
.form-row .hint { font-size: 0.85rem; color: var(--muted); }
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1rem;
  background: var(--paper);
  color: var(--ink);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: 0;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.form-row textarea { min-height: 140px; resize: vertical; }
.form-row.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 600px) {
  .form-row.grid-2 { grid-template-columns: 1fr; }
}

/* ---------- Footer ---------- */
.site-footer {
  margin-top: 4rem;
  padding: 3rem 0 2rem;
  background: var(--ink);
  color: #cbd5e1;
}
.site-footer a { color: #e2e8f0; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
@media (min-width: 720px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}
.footer-brand p { color: #94a3b8; max-width: 36ch; font-size: 0.95rem; }
.footer-col h4 {
  color: #fff;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 0.5em; font-size: 0.95rem; }
.footer-bottom {
  border-top: 1px solid #374151;
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #94a3b8;
}

/* ---------- Literature list ---------- */
.lit-list {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.lit-entry {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.75rem;
}
.lit-entry h3 {
  font-size: 1.08rem;
  margin: 0 0 0.4em;
  line-height: 1.35;
  font-weight: 600;
}
.lit-entry h3 a { color: var(--ink); text-decoration: none; }
.lit-entry h3 a:hover { color: var(--accent); text-decoration: underline; }
.lit-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-bottom: 0.7em;
}
.lit-cite { font-size: 0.92rem; color: var(--muted); margin: 0 0 0.7em; }
.lit-cite em { font-style: italic; color: var(--ink-soft); }
.lit-annotation { font-size: 0.98rem; color: var(--ink-soft); margin: 0 0 0.8em; }
.lit-links { font-size: 0.88rem; margin: 0; display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; }
.lit-links a { color: var(--accent); text-decoration: none; }
.lit-links a:hover { text-decoration: underline; }

.lit-compact {
  list-style: none; padding: 0; margin: 1rem 0 0;
  display: flex; flex-direction: column; gap: 0.75rem;
}
.lit-compact > li {
  padding: 0.85rem 1.1rem;
  background: var(--paper);
  border-left: 3px solid var(--border);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.lit-c-title { font-weight: 600; font-size: 0.98rem; line-height: 1.35; }
.lit-c-title a { color: var(--ink); text-decoration: none; }
.lit-c-title a:hover { color: var(--accent); text-decoration: underline; }
.lit-c-cite { font-size: 0.88rem; color: var(--muted); margin-top: 0.2em; }
.lit-c-cite em { font-style: italic; color: var(--ink-soft); }
.lit-c-links { font-size: 0.82rem; margin-top: 0.35em; }
.lit-c-links a { color: var(--accent); text-decoration: none; margin-right: 0.85em; }
.lit-c-links a:hover { text-decoration: underline; }
.lit-subcat {
  margin: 2.5rem 0 0.5rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  font-weight: 700;
}

/* Collapsible literature sub-categories (native <details>) */
.lit-category {
  margin-top: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--paper);
  overflow: hidden;
}
.lit-category + .lit-category { margin-top: 0.75rem; }
.lit-category > summary {
  cursor: pointer;
  padding: 1rem 1.4rem;
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
  list-style: none;
  transition: background-color 0.15s;
}
.lit-category > summary::-webkit-details-marker { display: none; }
.lit-category > summary::before {
  content: "▸";
  color: var(--accent);
  margin-right: 0.6em;
  font-size: 0.85em;
  display: inline-block;
  transition: transform 0.15s ease;
}
.lit-category[open] > summary::before { transform: rotate(90deg); }
.lit-category > summary:hover { background: var(--paper-tint); }
.lit-category > summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}
.lit-category-summary-text { flex: 1; }
.lit-category-count {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
  margin-left: 1rem;
}
.lit-category > .lit-compact {
  padding: 0 1.4rem 1.4rem;
  margin: 0;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}

/* ---------- In-page table of contents ---------- */
.page-toc {
  background: var(--paper-tint);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.6rem 1.4rem;
  margin: 0 0 2.5rem;
}
.page-toc-title {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin: 0 0 0.75rem;
  font-weight: 600;
}
.page-toc ol {
  list-style: decimal-leading-zero;
  margin: 0;
  padding-left: 1.6em;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.25em 1.5rem;
  font-size: 0.96rem;
  color: var(--muted);
}
@media (min-width: 640px) {
  .page-toc ol { grid-template-columns: 1fr 1fr; }
}
.page-toc a {
  text-decoration: none;
  color: var(--ink-soft);
}
.page-toc a:hover { color: var(--accent); text-decoration: underline; }

/* Anchored sub-sections on long content pages */
.page-block {
  margin-top: 3.5rem;
  scroll-margin-top: 5rem;
}
.page-block:first-of-type { margin-top: 2.5rem; }
.page-block h2 { margin-bottom: 1rem; }
.page-block + .page-block { border-top: 1px solid var(--border); padding-top: 3.5rem; }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: 2rem; }
.lead { font-size: 1.15rem; color: var(--ink-soft); }
.callout {
  background: var(--accent-soft);
  border-left: 4px solid var(--accent);
  padding: 1.25rem 1.5rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.5rem 0;
}
.callout p:last-child { margin-bottom: 0; }
.tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: var(--paper-tint);
  color: var(--ink-soft);
  border: 1px solid var(--border);
  margin-right: 0.3rem;
}
.tag-accent { background: var(--accent-soft); color: var(--accent); border-color: var(--accent-soft); }
.tag-warm { background: var(--warm-soft); color: var(--warm); border-color: var(--warm-soft); }
