/* Shared styles for The Paranormal Database static pages.
   Link from every page with: <link rel="stylesheet" href="/css/site.css">
   Load it AFTER /databasecss/w3.css so these rules take priority. */

body, h1, h2, h3, h4, h5, h6 { font-family: 'IBM Plex Mono', monospace; }
body { font-weight: 400; color: #111; background: #fff; line-height: 1.6; }

/* Links */
a { color: #111; text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid #111; outline-offset: 3px; }
.crumbs a, .prose a, .footer-text a { border-bottom: 1px solid #bbb; }
.crumbs a:hover, .prose a:hover, .footer-text a:hover { border-bottom-color: #111; }

/* Header */
#myHeader { background: #fff; color: #111; border-bottom: 1px solid #111; padding: 20px 0 22px !important; }
.menu-btn { font-family: inherit; font-size: 0.9em; background: #fff; color: #111; border: 1px solid #111; padding: 6px 12px; cursor: pointer; }
.menu-btn:hover, .menu-btn:focus-visible { background: #111; color: #fff; }
.site-title { font-size: 1.7em; font-weight: 600; letter-spacing: -0.01em; margin: 22px 0 4px; }
.site-title a { color: #111; border-bottom: 0; }
.site-title .accent { color: #2f6b4f; }
.tagline { margin: 0; font-size: 0.8em; color: #666; }


/* Sidebar menu */
#mySidebar { background: #fff; border-right: 1px solid #111; }
#mySidebar h2 { color: #111 !important; }
#mySidebar a { border-bottom: 0; }
#mySidebar a:hover { background: #111; color: #fff; }

/* Page structure */
.w3-panel { border: 0 !important; }
.page-heading { font-size: 1.4em; font-weight: 600; margin: 0 0 8px; }
.label { text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.72em; font-weight: 500; color: #666; }

/* Text pages */
.prose { max-width: 720px; }
.prose p { margin: 0 0 14px; }

/* Text beside a picture; stacks on narrow screens */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; margin-top: 8px; }
@media (max-width: 700px) { .split { grid-template-columns: 1fr; } }
.figure { margin: 0; }
.figure img { display: block; width: 100%; height: auto; border: 1px solid #111; }

/* Footer */
footer { border-top: 1px solid #111; margin-top: 48px; padding: 24px 0 40px !important; background: #fff; color: #666; }
.footer-text { font-size: 0.75em; line-height: 1.7; margin: 0 0 8px; color: #666; }
.footer-text a { color: #111; }
.to-top { display: inline-block; margin-top: 12px; font-size: 0.75em; text-transform: uppercase; letter-spacing: 0.08em; color: #111; border-bottom: 1px solid #bbb; }
.to-top:hover { border-bottom-color: #111; }

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

/* Section headings and tile grids (region pages, index) */
.section-title {
  margin: 48px 0 0;
  padding-bottom: 8px;
  border-bottom: 1px solid #111;
  font-size: 0.8em;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #666;
}
.section-title:first-child { margin-top: 8px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0 32px; }
.tile { padding: 28px 0; border-bottom: 1px solid #e4e4e4; }
.tile h3 { font-size: 1.05em; font-weight: 600; margin: 0 0 12px; }
.tile h3 a { border-bottom: 1px solid #bbb; }
.tile h3 a:hover { border-bottom-color: #111; }
.tile a.tile-link { display: block; border-bottom: 0; }
.tile img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border: 1px solid #111; transition: opacity 0.3s ease; }
.tile a.tile-link:hover img { opacity: 0.85; }
.tile p { font-size: 0.85em; margin: 12px 0 0; }

/* Form page: embedded form beside a picture */
.split.split-form { grid-template-columns: minmax(0, 1fr) 240px; }
.split-form .figure img { width: 100%; max-width: 240px; }
@media (max-width: 700px) { .split.split-form { grid-template-columns: 1fr; } }
@media (min-width: 701px) { .figure.sticky { position: sticky; top: 16px; } }
.form-frame { display: block; width: 100%; max-width: 700px; height: 2000px; border: 1px solid #e4e4e4; background: #fff; margin: 0; }
.form-note { font-size: 0.85em; color: #666; margin: 0 0 12px; }

/* Long reference lists (bibliography) with a live filter box */
[hidden] { display: none !important; }
.filter {
  display: block;
  width: 100%;
  max-width: 720px;
  margin: 8px 0 12px;
  font: inherit;
  font-size: 0.9em;
  padding: 10px 14px;
  border: 1px solid #111;
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
  background: #fff;
  color: #111;
}
.filter::placeholder { color: #666; }
.reading-list { list-style: none; margin: 0; padding: 0; column-width: 360px; column-gap: 40px; }
.reading-list li { break-inside: avoid; padding: 8px 0; border-bottom: 1px solid #e4e4e4; font-size: 0.85em; line-height: 1.5; }

/* Long text pages (About, Legal): headings, lists, definitions, quotes */
.prose h3 { font-size: 1.05em; font-weight: 600; margin: 36px 0 10px; }
.prose ul { margin: 0 0 14px; padding-left: 1.2em; }
.prose li { margin: 0 0 4px; }
.prose .term { margin: 0 0 8px; }
.prose blockquote { margin: 0 0 14px; padding-left: 16px; border-left: 2px solid #111; }
.prose blockquote p { margin: 0 0 4px; }
.prose .by { font-size: 0.85em; color: #666; }

/* Text beside a small picture */
.split.split-aside { grid-template-columns: minmax(0, 1fr) 420px; }
.split-aside .figure img { width: 100%; max-width: 420px; }
@media (max-width: 900px) { .split.split-aside { grid-template-columns: 1fr; } }
@media (min-width: 901px) { .split-aside .figure { position: sticky; top: 16px; } }

/* Link directories */
.notice { font-size: 0.85em; color: #666; max-width: 720px; margin: 0 0 8px; }
.link-list { list-style: none; margin: 0; padding: 0; max-width: 760px; }
.link-list li { padding: 12px 0; border-bottom: 1px solid #e4e4e4; font-size: 0.9em; }
.link-list a { border-bottom: 1px solid #bbb; word-break: break-word; }
.link-list a:hover { border-bottom-color: #111; }
