/* Shared styles loaded by both index.html (desktop) and mobile.html (mobile). */

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

:root {
  --bg: #CCC9B6;
  --divider: #A8A590;
  --text: #2C2B24;
  --text-muted: #6B6A5E;
  --overlay-bg: #E8E5D4;
  --col-width: 45px;
}

html, body {
  height: 100%;
  overflow: hidden;
}

body {
  background: var(--bg);
  color: var(--text);
  display: flex;
  flex-direction: row;
  height: 100vh;
}

/* ── Password landing screen ───────────────────────────────── */

#landing {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  transition: opacity 0.4s ease;
}

#landing.fade-out {
  opacity: 0;
  pointer-events: none;
}

#landing.hidden {
  display: none;
}

#password-input {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--text);
  outline: none;
  font-family: 'EB Garamond', serif;
  font-size: 19px;
  color: var(--text);
  width: 160px;
  padding: 4px 0;
  text-align: center;
  letter-spacing: 0.04em;
}

#password-input::placeholder {
  color: var(--text-muted);
  font-style: italic;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25%       { transform: translateX(-6px); }
  75%       { transform: translateX(6px); }
}

#password-input.shake {
  animation: shake 0.25s ease;
}

/* ── Glossary term highlights ──────────────────────────────── */

.glossary-term {
  text-decoration: underline;
  text-decoration-style: dashed;
  text-underline-offset: 3px;
  text-decoration-color: var(--text-muted);
  cursor: help;
}

#glossary-tooltip {
  position: fixed;
  z-index: 500;
  max-width: 300px;
  padding: 10px 13px;
  background: var(--text);
  color: var(--bg);
  font-family: 'EB Garamond', serif;
  font-size: 17px;
  line-height: 1.5;
  pointer-events: none;
  display: none;
}

#glossary-tooltip.visible {
  display: block;
}

#tooltip-term {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bg);
  opacity: 0.65;
  margin-bottom: 5px;
}

/* ── Responsive iframes ────────────────────────────────────── */

.iframe-responsive {
  width: 100%;
  margin-bottom: 16px;
}
