/* =============== Fonts =============== */
@font-face {
  font-family: 'hierofont';
  src: url("EgyptianHiero.woff") format("woff");
}

@import url('https://fonts.googleapis.com/css2?family=Alef&display=swap');

/* =============== Root / Page =============== */
:root { --footer-height: 64px; }

html {
  background-color: rgb(237, 237, 237);
  padding: 0;
}

body {
  font-family: 'PT Serif', serif;
  font-size: 12pt;
  margin: 0;
  padding: 0;
  background-color: rgb(237, 237, 237);
  /* Reserve space so fixed footer never covers content */
  padding-bottom: var(--footer-height);
}

p:first-child { margin-top: 0; }

/* =============== Header/Layout =============== */
div#header {
  display: grid;
  grid-template-columns: 235px 1fr;
  grid-template-rows: 80px 1fr 1fr;
}

div#logo {
  grid-row: 1/2;
  grid-column: 1/4;
  padding-top: 25px;
}

div#logo img {
  display: block;
  margin: auto;
}

div#title {
  display: block;
  margin: auto;
  grid-row: 2/3;
  grid-column: 1/4;
  padding-bottom: 15px;
}

div#title span {
  font-family: 'Crimson Text', serif;
  font-size: 16pt;
  margin: auto;
  display: block;
}

div#menu {
  grid-row: auto;
  grid-column: 1/4;
  display: flex;
  align-items: center;
}

div#menuLinks {
  display: block;
  margin: auto;
}

.small { font-size: 12pt; }
.hiero { font-family: 'hierofont', serif; font-size: 16pt; }

h2 {
  font-size: 1.2em;
  color: rgb(21, 27, 144);
  text-align: center;
}

h3 { text-align: center; color: rgb(65, 69, 69); }

/* =============== Main Container =============== */
div#main {
  padding: 2vw; /* responsive padding */
  margin-top: 20px;
  background-color: rgb(238, 241, 246);
  border-radius: 10px;
  max-width: 1200px;      /* keep text readable on wide screens */
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

/* Hero / Media */
.hero {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 1rem;
  text-align: center;
}

.demo-video {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

.demo-caption .lead {
  color: #0b3d91;
  font-size: 1rem;
  margin: 0.25rem 0 0;
}

.demo-caption .meta {
  font-size: 0.85rem;
  margin: 0.2rem 0 0;
  color: #333;
}

/* =============== Lists / Links / Previews =============== */
ul.options { padding-left: 0; }
a.pageLink { text-decoration: none; color: black; }
.preview-span { text-decoration: none !important; }

li.post-iter {
  list-style-type: none;
  border-left: 1px solid gray;
  border-radius: 5px;
  margin-bottom: 10px;
}
li.post-iter:last-child { margin-bottom: 0; }

li.post-iter div.preview-span {
  padding: 3px 10px;
  border-radius: 5px;
}
li.post-iter div.preview-span:hover {
  padding: 2px 9px;
  border: 1px dotted black;
}
div.preview-span h3 { margin-top: 0; }

/* Code highlight (unchanged except tidy) */
.highlight .hll { background-color: beige }
.highlight {
  background: #ffffff;
  max-width: 600px;
  overflow: auto;
}
.highlight .c   { color:#008800; font-style:italic }
.highlight .err { color:#a61717; background-color:#e3d2d2 }
.highlight .k   { color:#000080; font-weight:bold }
.highlight .ch  { color:#008800; font-style:italic }
.highlight .cm  { color:#008800; font-style:italic }
.highlight .cp  { color:#008080 }
.highlight .cpf { color:#008800; font-style:italic }
.highlight .c1  { color:#008800; font-style:italic }
.highlight .cs  { color:#008800; font-weight:bold }
.highlight .gd  { color:#000; background-color:#ffdddd }
.highlight .ge  { font-style:italic }
.highlight .gr  { color:#aa0000 }
.highlight .gh  { color:#999 }
.highlight .gi  { color:#000; background-color:#ddffdd }
.highlight .go  { color:#888 }
.highlight .gp  { color:#555 }
.highlight .gs  { font-weight:bold }
.highlight .gu  { color:#aaa }
.highlight .gt  { color:#aa0000 }
.highlight .kc  { color:#000080; font-weight:bold }
.highlight .kd  { color:#000080; font-weight:bold }
.highlight .kn  { color:#000080; font-weight:bold }
.highlight .kp  { color:#000080; font-weight:bold }
.highlight .kr  { color:#000080; font-weight:bold }
.highlight .kt  { color:#000080; font-weight:bold }
.highlight .m   { color:#00F }
.highlight .s   { color:#00F }
.highlight .na  { color:#F00 }
.highlight .nt  { color:#000080; font-weight:bold }
.highlight .ow  { font-weight:bold }
.highlight .w   { color:#bbb }
.highlight .mb, .mf, .mh, .mi, .mo { color:#00F }
.highlight .sa, .sb, .sd, .s2, .se, .sh, .si, .sx, .sr, .s1, .ss { color:#00F }
.highlight .sc  { color:#800080 }
.highlight .dl  { color:#00F }
.highlight .il  { color:#00F }

/* Fixed width helpers */
.fixwidth { display:inline-block; width:120px; font-family:'Times New Roman', Times, serif; }
select.fixwidth { min-width:150px; }

/* =============== Footer (slide-up on scroll) =============== */
#footer {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  height: var(--footer-height);
  background: #f2f2f2;
  border-top: 1px solid #ccc;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 1rem;
  box-shadow: 0 -4px 10px rgba(0,0,0,.06);
  transform: translateY(100%);   /* hidden by default */
  transition: transform .3s ease;
  z-index: 1000;
}
#footer.show { transform: translateY(0); }
#footer:hover { transform: translateY(0); }

.footer-text { font-size: .95rem; }
.footer-logos { display:flex; align-items:center; gap:.5rem; }
.footer-logos img { height:80px; vertical-align:bottom; }

/* Respect reduced-motion users */
@media (prefers-reduced-motion: reduce) {
  #footer { transition: none; }
}

/* =============== Team section =============== */
.team-member {
  display: flex;
  align-items: flex-start;
  margin-bottom: 2em;
  gap: 1.5em;
}
.team-member img {
  width: 120px; height: 120px;
  object-fit: cover; object-position: center;
  border-radius: 8px;
  flex-shrink: 0;
}
.team-member .info { flex: 1; }
.team-member h3 { margin: 0 0 .3em; font-size: 1.2em; }
.team-member p { margin: 0; line-height: 1.5; }

@media (max-width: 600px) {
  .team-member { flex-direction: column; align-items: center; text-align: center; }
  .team-member img { margin-bottom: 1em; }
}

/* =============== Goals (nodes + accordion content) =============== */
.classifier-goals { list-style: none; margin: 0; padding: 0; }
.classifier-goals li { margin: .6em 0; }

.goal {
  display: grid;
  grid-template-columns: 2.6em 1fr;   /* node | text */
  align-items: center;
  column-gap: .7em;
  text-decoration: none;
  color: inherit;
  padding: .6em .8em;
  border-radius: .5em;
  background: #f7f7f7;
  border: 1px solid #ddd;
  cursor: pointer;
  transition: background .2s ease-in-out;
}
.goal:hover { background: #ececec; }

.goal-symbol::before {
  content: attr(data-symbol);
  display: grid; place-items: center;
  width: 2.4em; height: 2.4em;
  border-radius: 50%;
  color: #fff;
  background: var(--node-color, #3b82f6);
  box-shadow: 0 2px 4px rgba(0,0,0,.18);
  font-size: 1.1em; line-height: 1; white-space: nowrap;
  font-family: "Noto Sans Egyptian Hieroglyphs","Noto Sans Symbols 2","Noto Sans CJK SC", system-ui, sans-serif;
}

/* optional per-symbol colors */
li [data-symbol="𓏛"]::before { --node-color:#ff9500; }
li [data-symbol="𓃱"]::before { --node-color:#16a34a; }
li [data-symbol="𓁻"]::before { --node-color:#f59e0b; }
li [data-symbol="𓁐"]::before { --node-color:#a855f7; }
li [data-symbol="𓀀 𒇻 人"]::before { --node-color:#ef4444; }
li [data-symbol="𓁻"]::before { --node-color:#0ea5e9; }

.back-link { margin-top: 1rem; }

/* Multiple nodes version */
.goal-symbol.multi::before { content: none; }
.goal-symbol.multi { display: flex; gap: .3em; }
.goal-symbol.multi .node {
  width: 2.4em; height: 2.4em;
  border-radius: 50%;
  background: #e0e0e0;
  display: flex; justify-content: center; align-items: center;
  font-size: 1.1em;
  box-shadow: 0 2px 4px rgba(0,0,0,.18);
}
.goal-text { display: block; }

/* Foldout content under each goal */
.goal-content {
  background: #f7f7f7;
  border: 1px solid #ddd;
  border-radius: .6em;
  padding: 1em 1.2em;
  margin-top: .5em;
  box-shadow: 0 2px 5px rgba(0,0,0,.08);
  transition: all .3s ease-in-out;
}
.goal-content.open {
  animation: fadeIn .25s ease-in-out;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* =============== Intro (Alef font block) =============== */
.intro {
  font-family: 'Alef', sans-serif;
  font-size: 1.15em;
  line-height: 1.6;
  max-width: 1200px;
  margin: 2em auto;
  padding: 1.5em 2em;
  background: #f9f9f9;
  border-radius: 12px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.08);
  color: #222;
}
.intro strong { color: #2c3e50; }
.intro p { margin-bottom: 1.2em; }

.footer-logos img {
  height: auto;          /* scale naturally */
  max-height: 28px;      /* small size, keeps footer slim */
  width: auto;           /* preserve aspect ratio */
  margin-left: 8px;      /* little space between logos */
  vertical-align: middle;
}

#footer {
  background: #f2f2f2;
  padding: 0.8em 1em;
  text-align: center;
  font-size: 0.9em;
  border-top: 1px solid #ccc;
  display: flex;
  justify-content: space-between; /* text left, logos right */
  align-items: center;            /* center vertically */
}

.preview-container { display:flex; gap:12px; align-items:center; }
.preview-thumb { width:72px; height:72px; object-fit:cover; border-radius:8px; }
.preview-favicon { display:none; } /* optional, if you no longer want the tiny icon */

.demo-video {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}
