/* Indelible HTMLData demo site — shared stylesheet */

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

body {
  font-family: Georgia, 'Times New Roman', serif;
  background: #f9f7f4;
  color: #1a1a1a;
  line-height: 1.7;
}

header.site-header {
  border-bottom: 3px solid #1a1a1a;
  padding: 1rem 2rem;
  background: #fff;
}

header.site-header .index {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-transform: none;
  font-family: 'Inter', 'Arial Black', sans-serif;
}

header.site-header .masthead {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-family: 'Arial Black', sans-serif;
}

header.site-header .tagline {
  font-size: 0.75rem;
  color: #666;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 0.15rem;
}

.article-wrapper {
  max-width: 720px;
  margin: 2.5rem auto;
  padding: 0 1.5rem;
}

.label {
  display: inline-block;
  font-size: 0.65rem;
  font-family: 'Arial', sans-serif;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: #1a1a1a;
  color: #fff;
  padding: 0.2rem 0.5rem;
  margin-bottom: 0.75rem;
}

article h1 {
  font-size: 2.4rem;
  line-height: 1.2;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.deck {
  font-size: 1.15rem;
  color: #444;
  font-style: italic;
  border-left: 3px solid #ccc;
  padding-left: 1rem;
  margin: 1rem 0 1.5rem;
}

.byline {
  font-size: 0.8rem;
  font-family: Arial, sans-serif;
  color: #555;
  border-top: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
  padding: 0.5rem 0;
  margin-bottom: 1.5rem;
}

.byline strong { color: #1a1a1a; }

article p {
  margin-bottom: 1.25rem;
  font-size: 1.05rem;
}

blockquote {
  border-left: 4px solid #1a1a1a;
  margin: 1.5rem 0;
  padding: 0.75rem 1.25rem;
  font-size: 1.2rem;
  font-style: italic;
  color: #333;
  background: #f0ede8;
}

blockquote cite {
  display: block;
  font-size: 0.8rem;
  font-style: normal;
  margin-top: 0.5rem;
  color: #666;
}

.ad-banner {
  background: #e8e8e8;
  border: 1px dashed #aaa;
  text-align: center;
  padding: 1.25rem;
  margin: 1.5rem 0;
  font-family: Arial, sans-serif;
  font-size: 0.8rem;
  color: #888;
}

/* Attestation include highlight (exclusive mode) */
[data-indelible-include] {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
  position: relative;
}

[data-indelible-include]::after {
  content: "attested";
  position: absolute;
  top: -0.1rem;
  right: 0;
  font-size: 0.55rem;
  font-family: Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: #2563eb;
  color: #fff;
  padding: 0.1rem 0.3rem;
}

/* Attestation exclude highlight (inclusive mode) */
[data-indelible-exclude] {
  outline: 2px dashed #dc2626;
  outline-offset: 2px;
  position: relative;
  opacity: 0.7;
}

[data-indelible-exclude]::after {
  content: "excluded";
  position: absolute;
  top: -0.1rem;
  right: 0;
  font-size: 0.55rem;
  font-family: Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: #dc2626;
  color: #fff;
  padding: 0.1rem 0.3rem;
}

.indelible-legend {
  font-family: Arial, sans-serif;
  font-size: 0.78rem;
  border-radius: 4px;
  padding: 0.75rem 1rem;
  margin-bottom: 2rem;
  background: #fef2f2;
  border: 1px solid #fca5a5;
  color: #991b1b;
}

.indelible-legend.legend-info {
  background: #eff6ff;
  border: 1px solid #93c5fd;
  color: #1e40af;
}

.indelible-legend strong { display: block; margin-bottom: 0.25rem; }

footer.site-footer {
  text-align: center;
  font-size: 0.75rem;
  font-family: Arial, sans-serif;
  color: #999;
  border-top: 1px solid #ddd;
  padding: 1.5rem;
  margin-top: 3rem;
}

/* Landing page (index.html) */
.index-wrapper {
  max-width: 720px;
  margin: 2.5rem auto;
  padding: 0 1.5rem;
}

.index-wrapper h1 {
  font-size: 1.1rem;
  font-family: Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0em;
  text-transform: uppercase;
  margin: 2rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #1a1a1a;
}

.index-wrapper h1:first-of-type { margin-top: 0; }

.demo-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.demo-list a {
  display: block;
  background: #fff;
  border: 1px solid #ddd;
  border-left: 4px solid #2563eb;
  border-radius: 4px;
  padding: 0.85rem 1.1rem;
  font-family: Arial, sans-serif;
  font-size: 0.95rem;
  color: #1a1a1a;
  text-decoration: none;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.demo-list a .demo-desc {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.8rem;
  color: #888;
  font-weight: normal;
}

.demo-list a:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transform: translateX(2px);
}

.demo-list.errors a {
  border-left-color: #dc2626;
}
