/* index.layout.css — public terminal site (index.html): page layout, navigation, sections. One of the index.*.css files, linked in order from index.html. */
/* Two layers, so it is never a question of which rule wins: "page" holds the normal stylesheet rules, "element" holds exact
   styles for single elements. Anything in "element" beats anything in "page", whatever the selectors look like. */
@layer page, element;

@layer page {
/* ─────────────────────────────────────────
   LAYOUT
   ───────────────────────────────────────── */
.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px;
}

/* ─────────────────────────────────────────
   NAVIGATION
   ───────────────────────────────────────── */
nav {
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
  margin-bottom: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  align-items: center;
  font-size: 13px;
}

nav a {
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 11px;
  transition: color 0.2s;
}

nav a:hover, nav a.active {
  color: var(--accent);
  text-decoration: none;
}

.lang-switcher {
  display: flex;
  gap: 6px;
  align-items: center;
}

.lang-btn {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 2px 8px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.2s;
}

.lang-btn:hover { border-color: var(--accent-dim); color: var(--text); }
.lang-btn.active { border-color: var(--accent); color: var(--accent); }

/* ─────────────────────────────────────────
   SECTIONS
   ───────────────────────────────────────── */
.section { display: none; animation: fadeIn 0.3s ease; }
.section.active { display: block; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}
}

/* exact styles for single elements built in index.html (these used to be inline). "element" is the top layer: it always beats "page". */
@layer element {
  .index__span { margin-left: auto; display: flex; gap: 12px; align-items: center; }
  #chat-prompt { cursor: pointer; }
  .section-projects__div { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
  #project-filters { margin-bottom: 0; }
  #tool-filters { margin-bottom: 0; }
  .section-voicemail__vm-controls { margin-top: 8px; }
  #vm-preview { margin-top: 10px; width: 100%; height: 32px; }
}
