/* BannedThought.net — Modern Redesign */

:root {
  --bg: #ffffff;
  --bg-alt: #f8f9fa;
  --border: #dee2e6;
  --text: #212529;
  --text-muted: #6c757d;
  --text-small: #495057;
  --accent: #c0392b;
  --accent-dark: #96281b;
  --accent-light: #fdf2f2;
  --header-bg: #1a1a2e;
  --header-text: #ffffff;
  --link: #c0392b;
  --link-hover: #96281b;
  --max-width: 1100px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: Georgia, 'Times New Roman', serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  font-size: 16px;
}

a { color: var(--link); text-decoration: underline; }
a:hover { color: var(--link-hover); }

/* ---- HEADER ---- */
.site-header {
  background: var(--header-bg);
  color: var(--header-text);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 3px solid var(--accent);
}
.site-header .inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.site-logo {
  color: var(--accent);
  font-size: 1.15rem;
  font-weight: bold;
  text-decoration: none;
  letter-spacing: 0.04em;
  font-family: Arial, Helvetica, sans-serif;
  text-transform: uppercase;
  white-space: nowrap;
}
.site-logo:hover { color: #e05a4e; }
.header-tagline {
  color: #999;
  font-size: 0.78rem;
  font-family: Arial, sans-serif;
  font-style: italic;
}
.site-nav {
  margin-left: auto;
  display: flex;
  gap: 1.25rem;
  align-items: center;
  flex-shrink: 0;
}
.site-nav a {
  color: #ccc;
  text-decoration: none;
  font-size: 0.82rem;
  font-family: Arial, sans-serif;
  transition: color 0.2s;
  white-space: nowrap;
}
.site-nav a:hover { color: var(--accent); }

/* ---- BREADCRUMB ---- */
.breadcrumb {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  padding: 0.45rem 1.5rem;
  font-size: 0.8rem;
  font-family: Arial, sans-serif;
  color: var(--text-muted);
}
.breadcrumb-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}
.breadcrumb a { color: var(--accent); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { margin: 0 0.35rem; color: #bbb; }

/* ---- PAGE HERO ---- */
.page-hero {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  padding: 2rem 1.5rem;
  text-align: center;
}
.page-hero-inner { max-width: 800px; margin: 0 auto; }
.page-hero h1 {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 2rem;
  color: var(--accent);
  margin-bottom: 0.4rem;
  line-height: 1.3;
}
.page-hero .tagline {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 0.9rem;
}
.page-hero .intro {
  font-size: 0.92rem;
  color: var(--text);
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ---- MAIN CONTENT ---- */
.page-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
}

/* ---- ALERT BOX ---- */
.alert {
  border-left: 4px solid var(--accent);
  background: var(--accent-light);
  border-radius: 0 6px 6px 0;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
}
.alert h3 {
  font-size: 0.95rem;
  font-family: Arial, sans-serif;
  color: var(--accent-dark);
  margin-bottom: 0.5rem;
}
.alert p { font-size: 0.88rem; margin-bottom: 0.4rem; }
.alert p:last-child { margin-bottom: 0; }

/* ---- NOTICE BOX ---- */
.notice {
  border: 1px solid var(--border);
  background: var(--bg-alt);
  border-radius: 6px;
  padding: 1.25rem 1.5rem;
  margin: 2.5rem 0 1rem;
  font-size: 0.86rem;
  color: var(--text-small);
}
.notice h3 {
  font-size: 0.88rem;
  font-family: Arial, sans-serif;
  margin-bottom: 0.6rem;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text);
}
.notice p { margin-bottom: 0.4rem; }
.notice p:last-child { margin-bottom: 0; }

/* ---- SECTION LABELS ---- */
.section-label {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin: 2rem 0 0.75rem;
  padding-bottom: 0.35rem;
  border-bottom: 2px solid var(--border);
}

/* ---- COUNTRY GRID ---- */
.country-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.4rem;
  margin-bottom: 1rem;
}
.country-card {
  display: block;
  padding: 0.6rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 5px;
  text-decoration: none;
  color: var(--text);
  font-family: Arial, sans-serif;
  font-size: 0.87rem;
  transition: border-color 0.15s, background 0.15s;
  line-height: 1.3;
}
.country-card:hover {
  border-color: var(--accent);
  background: var(--accent-light);
  color: var(--accent);
}
.country-card .sub {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}
.country-card:hover .sub { color: var(--accent); opacity: 0.7; }

/* ---- SECTION HEADINGS ON CONTENT PAGES ---- */
.era-heading {
  font-family: Arial, sans-serif;
  font-size: 1.2rem;
  color: var(--header-bg);
  margin: 2.5rem 0 1rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--accent);
}
.section-heading {
  font-family: Arial, sans-serif;
  font-size: 1.05rem;
  color: var(--accent-dark);
  margin: 2rem 0 0.75rem;
}
.subsection-heading {
  font-family: Arial, sans-serif;
  font-size: 0.92rem;
  color: var(--text);
  font-weight: bold;
  margin: 1.25rem 0 0.4rem;
}

/* ---- DOCUMENT LISTS ---- */
.doc-list {
  list-style: none;
  padding: 0;
}
.doc-list > li {
  padding: 0.55rem 0 0.55rem 1rem;
  border-left: 2px solid var(--border);
  margin-bottom: 0.45rem;
  font-size: 0.86rem;
  line-height: 1.6;
  transition: border-color 0.15s;
}
.doc-list > li:hover { border-left-color: var(--accent); }

.doc-list ul {
  list-style: none;
  padding: 0;
  margin-top: 0.5rem;
}
.doc-list ul li {
  padding: 0.45rem 0 0.45rem 0.85rem;
  border-left: 1px dashed var(--border);
  margin-bottom: 0.3rem;
  font-size: 0.85rem;
  line-height: 1.6;
}
.doc-list ul ul li {
  font-size: 0.83rem;
}

.doc-type {
  color: #8a6040;
  font-size: 0.78rem;
  font-style: italic;
}
.doc-note {
  color: #8a6040;
  font-size: 0.82rem;
}
.file-size {
  color: var(--text-muted);
  font-size: 0.78rem;
}
.new-badge {
  display: inline-block;
  background: var(--accent);
  color: white;
  font-size: 0.65rem;
  font-family: Arial, sans-serif;
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  vertical-align: middle;
  margin-left: 0.25rem;
}

/* ---- INTRO TEXT ---- */
.intro-text { font-size: 0.92rem; line-height: 1.8; margin-bottom: 1.25rem; }
.intro-text p { margin-bottom: 0.75rem; }
.intro-text p:last-child { margin-bottom: 0; }

/* ---- SEARCH SECTION ---- */
.search-section {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.25rem;
  margin: 2rem 0;
  text-align: center;
}
.search-section p {
  font-family: Arial, sans-serif;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

/* ---- FOOTER ---- */
.site-footer {
  background: var(--header-bg);
  color: #aaa;
  padding: 1.75rem 1.5rem 1.25rem;
  margin-top: 3rem;
  font-family: Arial, sans-serif;
  font-size: 0.8rem;
}
.site-footer .inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: flex-start;
}
.footer-brand {
  color: var(--accent);
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: block;
  margin-bottom: 0.2rem;
}
.footer-links { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.footer-links a { color: #aaa; text-decoration: none; }
.footer-links a:hover { color: var(--accent); }
.footer-copy {
  color: #555;
  font-size: 0.72rem;
  text-align: center;
  margin-top: 1.25rem;
  padding-top: 0.85rem;
  border-top: 1px solid #2a2a3e;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
}

/* ---- FIGURE / IMAGE ---- */
.doc-figure {
  float: left;
  margin: 0 1.25rem 1rem 0;
  text-align: center;
}
.doc-figure img {
  display: block;
  max-width: 100%;
  border: 1px solid var(--border);
}
.doc-figure figcaption {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
  font-style: italic;
}
.clearfix::after { content: ""; display: table; clear: both; }

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .page-hero h1 { font-size: 1.5rem; }
  .country-grid { grid-template-columns: repeat(2, 1fr); }
  .site-nav { display: none; }
  .header-tagline { display: none; }
  .site-footer .inner { flex-direction: column; }
  .doc-figure { float: none; margin: 0 0 1rem; }
}
@media (max-width: 480px) {
  .country-grid { grid-template-columns: 1fr; }
  .page-content { padding: 1.5rem 1rem; }
  .page-hero { padding: 1.5rem 1rem; }
}
