body {
  font-family: Arial, sans-serif;
  background-color: #fafafa;
  color: #222;
  padding: 2rem;
  margin: auto;
  max-width: 100%;
  box-sizing: border-box;
  padding-bottom: 30px; /* Just enough to clear the slim footer */
}
.post-wrapper {
    display: flex;
    align-items: flex-start;  /* Align date and post top-aligned */
    gap: 1em;                 /* Space between date and post box */
    margin-top: 2em;
    margin-bottom: 2em;
    position: relative;
  flex-direction: row;  /* side by side */
}
.post-container {
  background: white;
  border: 1px solid #ddd;
  padding: 1.5rem;
  margin-bottom: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  cursor: pointer; /* 👈 Shows it's clickable */
  transition: transform 0.1s ease, background-color 0.1s ease;
  flex: 1;
  position: relative;
  z-index: 0;
  box-shadow: 0 0 5px rgba(0,0,0,0.05);
  width: 90%;
}
.post-flex {
    display: flex;
    align-items: flex-start;
    gap: 1em;
}
.post-content-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
}
.topic-tag {
  position: absolute;
  top: -22px;
  left: 6px;
  background-color: #ccc;
  color: #4d4d4d;
  font-size: 0.75rem;
  font-weight: bold;
  padding: 4px 10px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  text-transform: uppercase;
  z-index:2;
  min-width: 20%;
  text-align: center
}

.post-title {
    margin-top: 0;
    margin-bottom: 0.4em;
}
.teaser {
    margin-bottom: 0.6em;
}
.unlock-hint {
    font-size: 0.9rem;
    font-style: italic;
    color: #888;
}
.post-container:hover {
  background-color: #f0f0f0;
  transform: translateY(-2px);
}

.post-container.locked:hover {
  background-color: white;
  transform: translateY(0px);
}

/* Fade out the teaser for locked posts */
.post-container.locked .post-content {
  position: relative;
  max-height: 6.5em; /* Adjust based on average teaser length */
  overflow: hidden;
  pointer-events: none;   /* Disable clicks */
  user-select: none;      /* Prevent text selection */
}

/* Gradient fade effect at bottom of teaser */
.post-container.locked .post-content::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 8em;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff);
}

.post-container.locked {
  opacity: 0.9;
  cursor: default;
}

.post-container.locked .post-title::after {
  content: " 🔒";
  color: #c00;
}

.blurred {
  filter: blur(2px);
  pointer-events: none;
  user-select: none;
}

body.modal-open {
  overflow: hidden;
  height: 100vh;
}

#popup {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(0, 0, 0, 0.75);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 999;
}

#popup-content {
  background: white;
  padding: 2rem;
  animation: fadeIn 0.25s ease-out;
  width: 90%;
  max-width: 1400px;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 8px;
  position: relative;
  box-sizing: border-box;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

#popup-close {
  position: absolute;
  top: 60px;
  right: 7%;
  font-size: 28px;
  background: aaa;
  border: 1px;
  border-color: 0f0f0f;
  color: aaa;
  cursor: pointer;
  border-radius: 4px;
  z-index: 10005;
}

#blog-container {
  max-width: 90%;
  margin: auto;
}

/* --- Comment Section Styling --- */
.comments {
  margin-top: 3em;
  padding: 1.5em;
  background-color: #ffffff;
  border: 1px solid #ddd;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  font-family: 'Segoe UI', 'Helvetica Neue', sans-serif;
}

.comments h3 {
  margin-top: 0;
  font-size: 1.25em;
  border-bottom: 1px solid #ddd;
  padding-bottom: 0.5em;
  color: #222;
}

.comment-form p {
  font-weight: 600;
  margin-bottom: 1em;
  color: #333;
}

.comment-form label {
  display: block;
  margin-top: 1em;
  margin-bottom: 0.3em;
  font-weight: 500;
  font-size: 0.95em;
  color: #444;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form textarea {
  width: 100%;
  padding: 10px;
  font-size: 1em;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: inherit;
  box-sizing: border-box;
  transition: border-color 0.2s;
}

.comment-form input:focus,
.comment-form textarea:focus {
  border-color: #666;
  outline: none;
}

.comment-form textarea {
  resize: vertical;
}

.comment-consent {
  display: flex;
  align-items: flex-start;
  font-size: 0.9em;
  color: #555;
  margin-top: 0.5em;
  margin-bottom: 1em;
}

.comment-consent input[type="checkbox"] {
  margin-right: 8px;
  margin-top: 4px;
  transform: scale(1.1);
}

.comment-form button {
  margin-top: 1em;
  padding: 10px 16px;
  background-color: #444;
  color: #fff;
  font-size: 1em;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
  transition: background-color 0.2s ease;
}

.comment-form button:hover {
  background-color: #666;
}

.comment-form .note {
  margin-top: 1em;
  font-size: 0.85em;
  color: #777;
  line-height: 1.4;
}

.comments-list {
  margin-top: 1.5em;
  padding: 0.5em 0;
}

.comments-list p {
  color: #666;
  font-size: 0.95em;
}
footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #fafafa;
  border-top: 1px solid #ccc;
  padding: 4px 0;
  font-size: 0.75em;
  color: #666;
  text-align: center;
  z-index: 9999;
}

footer a {
  color: #666;
  text-decoration: none;
  margin: 0 6px;
}

footer a:hover {
  text-decoration: underline;
}
.post-heading {
  font-family: 'Segoe UI', 'Helvetica Neue', sans-serif;
  font-size: 1.7em;
  font-weight: 600;
  color: #1f1f1f;
  letter-spacing: -0.25px;
  margin-top: 0;
  margin-bottom: 0.3em;
  line-height: 1.3;
}

/* This will push the date visually left of the post box */
.post-date {
    width: 120px;             /* Fixed width */
	max-width: 120px;      /* Allow full width */
    text-align: right;
    font-weight: bold;
    color: #666;
    flex-shrink: 0;           /* Prevents date from shrinking */
    padding-top: 0.3em;
  font-size: 0.95em;
  margin-bottom: 1.5em;
}

  #popup p.post-date {
    text-align: left;
    max-width: 100%;
    width: 100%;
  }
  
.share-wrapper {
  text-align: center;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.share-wrapper .share-button {
  font-size: 0.9em;
  padding: 6px 12px;
  background-color: #f0f0f0;
  color: #333;
  border: 1px solid #ccc;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.share-wrapper .share-button:hover {
  background-color: #e0e0e0;
}

/* Hamburger Menu Container */
#topic-menu {
  position: fixed;
  top: 10px;
  right: 10px;
  z-index: 9999;
}

/* The ☰ button */
#toggle-menu {
  background-color: #333;
  color: white;
  padding: 10px 16px;
  border: none;
  border-radius: 4px;
  font-size: 18px;
  cursor: pointer;
  z-index: 10000;
}

/* Menu container */
#menu-list {
  position: fixed;
  top: 50px; /* below toggle button */
  right: 0;
  height: 80%;
  width: 250px;
  background-color: #f9f9f9;
  border-left: 1px solid #ccc;
  padding: 10px;
  display: none;
  flex-direction: column;
  overflow-y: auto;
  z-index: 1000;
  box-shadow: -2px 0 5px rgba(0,0,0,0.2);
}

/* Buttons inside menu */
#menu-list button {
  background-color: #fff;
  color: #333;
  border: 1px solid #ccc;
  padding: 10px;
  text-align: left;
  width: 100%;
  margin-bottom: 8px;
  cursor: pointer;
  border-radius: 4px;
  transition: background-color 0.2s;
}

#menu-list button:hover {
  background-color: #eee;
}

#toggle-menu2.toggle-menu-button-mobile {
  background-color: #333;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 18px;
  cursor: pointer;
  z-index: 10000;
  display: none;
}

.highlighted-topic {
  border: 2px solid gold;
  background-color: #fffbe6;
  font-weight: bold;
}

.highlighted-topic-title {
  color: goldenrod;
  font-size: 1.8em;
}

/* Open Questions menu button styling */
#menu-list button.open-questions-button {
  border: 2px solid #ffcc00;
  background-color: #fff8dc;
  font-weight: bold;
  font-size: 0.95em;
  padding: 0.4em 0.8em;
}

#menu-list button.open-questions-button:hover {
  background-color: #fff2b3;
}

/* Intro box at the top of the open questions section */
.question-intro {
  padding: 0.9em 1.2em;
  border: 1px solid #f3e6a1;
  background: #fffef5;
  margin-bottom: 1.2em;
  font-size: 0.95em;
  line-height: 1.5em;
  border-radius: 6px;
}

/* Collapsible group of questions (by topic) */
.question-block {
  margin-bottom: 1em;
  padding: 0.8em 1em;
  border: 1px dashed #ccc;
  background: #f9f9f9;
  font-size: 0.95em;
  border-radius: 4px;
}

/* Topic label (clickable) */
.question-topic-label {
  font-weight: 600;
  font-size: 1em;
  cursor: pointer;
  margin-bottom: 0.5em;
  display: block;
}

/* Individual questions */
.question-post {
  margin: 0.3em 0 0.6em 1em;
  padding-left: 0.5em;
  text-indent: -0.5em;
  font-size: 0.7em;
  cursor: pointer;
}
/* Optional hover for questions */
.question-post:hover {
  color: #2a6496;
}

#fullscreen-image {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 9999;
  padding: 2vh 2vw;
  box-sizing: border-box;
  overflow: auto;
}

.fullscreen-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center; /* top! */
  min-height: 100%;
  box-sizing: border-box;
}

#fullscreen-img{
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
}

@media (min-width: 1024px) {
  #fullscreen-img.portrait {
    max-width: 50vw;
  }
  #fullscreen-img.landscape {
	  width: 100%;
	  height: auto;
	  max-width: 100%;
	  display: block;
  }
}

#close-fullscreen {
    position: fixed;
    top: 10px;
    right: 2rem;
    font-size: 2rem;
    color: white;
    background: #0006;
    border: #000;
	border-radius: 4px;
    cursor: pointer;
}
.document-block {
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 1em;
  margin: 1em 0;
  background-color: #fafafa;
  box-sizing: border-box;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.document-block img {
  max-width: 100%;
  height: auto;
  max-height: 25em;
  object-fit: contain;
  cursor: pointer;
  display: block;
  margin: 0 auto;
}

.document-block a {
  display: inline-block;
  padding: 0.5em 1em;
  background-color: #f0f0f0;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
  color: #333;
}

.document-block a:hover {
  background-color: #e0e0e0;
}

.document-block .txt-placeholder {
  white-space: pre-wrap; /* Preserve line breaks */
  font-family: monospace;
  font-size: 0.95em;
  line-height: 1.5;
  color: #333;
}

.document-block .footnote {
  text-align: center;
  font-size: 0.9em;
  font-style: italic;
  color: #666;
  margin-top: 1.5em;
  padding-top: 0.5em;
  border-top: 1px dashed #ccc;
  line-height: 1.4;
}
.footnote .meta {
  display: block;
  margin-top: 0.3em;
  font-size: 0.75em;
  color: #999;
}

.doc-table {
  border-radius: 6px;
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  border: 2px solid #8a8a8a; /* outer border */
}

.doc-table td {
  vertical-align: top;
  width: 50%;
  padding: 0.75em;
  border: 1px solid #ddd; /* inner cell borders */
}

.doc-table td:first-child {
  background-color: #f9f9f9;
  font-weight: 500;
  font-family: 'Segoe UI', 'Helvetica Neue', sans-serif;
  color: #333;
  padding-right: 1.25em;
  border-right: 1px solid #ddd;
}
.doc-table tr:nth-child(even) {
  background-color: #f3f3f3;
}

.centered-download {
  text-align: center;
  margin-bottom: 1em;
}
.doc-section-label {
  display: block;
  background-color: #eee;
  color: #333;
  font-weight: bold;
  font-size: 0.7em;
  padding: 4px 10px;
  margin: -0.75em auto 0.75em auto;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: center;
}

.post-section {
  font-family: 'Segoe UI', 'Helvetica Neue', sans-serif;
  line-height: 1.6;
  color: #2c2c2c;
  background-color: #fafafa;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  font-size: 16px;
}

.post-section h3 {
  margin-top: 1.8em;
  font-size: 1.2em;
  color: #1a1a1a;
  border-bottom: 1px solid #ddd;
  padding-bottom: 0.3em;
}

.post-section ul {
  padding-left: 1.5em;
  margin-top: 0.5em;
}

.post-section li {
  margin-bottom: 0.5em;
}

.post-section p {
  margin-bottom: 1em;
}

#legalModal, #privacyModal, #correctionModal {
  font-family: 'Segoe UI', 'Helvetica Neue', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  background-color: #fff;
  color: #222;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  padding: 1.5em;
  box-sizing: border-box;
}

#legalModal h3, #privacyModal h3, #correctionModal h3 {
  margin-top: 0;
  font-size: 1.25em;
  padding-bottom: 0.4em;
  color: #111;
}

#legalModal p, #privacyModal p, #correctionModal p {
  margin-bottom: 1em;
  color: #333;
}

#legalModal a, #privacyModal a, #correctionModal a {
  color: #0054a6;
  text-decoration: none;
}

#legalModal a:hover, #privacyModal a:hover, #correctionModal a:hover {
  text-decoration: underline;
}

#legalModal button,
#privacyModal button,
#correctionModal button {
  background-color: #eee;
  border: 1px solid #ccc;
  color: #333;
  font-size: 1em;
  border-radius: 4px;
  padding: 5px 10px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

#legalModal button:hover,
#privacyModal button:hover,
#correctionModal button:hover {
  background-color: #ddd;
}
.site-header {
  text-align: center;
  margin-top: 2rem;
  margin-bottom: 2.5rem;
  padding: 1rem 0;
  background-color: #f9f9f9;
}

.site-title {
  font-size: 1.8em;
  font-weight: 600;
  color: #2a2a2a;
  margin-bottom: 0.2em;
}

.site-subtitle {
  font-size: 1em;
  color: #777;
  letter-spacing: 0.4px;
  font-style: italic;
  margin: 0;
}
.table-note {
  font-size: 0.85em;
  color: #666;
  font-style: italic;
  margin-top: 0.5em;
  margin-bottom: 1.5em;
}

.topic-nav-button {
    display: block;           /* Make it behave like a centered block button */
    margin: 20px auto;        /* Centers horizontally + more vertical space */
    padding: 14px 22px;       /* Larger click area */
    width: 90%;               /* Wider, but still responsive */
    max-width: 360px;         /* Prevent it from becoming too wide on big screens */
    font-size: 1.1rem;        /* Larger text */
	font-weight: bold;
    border-radius: 8px;      /* Rounded corners */
    background-color: #d1d1d1; /* Or your existing button color */
    color: #5e5e5e;
    text-align: center;
    border: none;
    cursor: pointer;
}

.topic-nav-bottom
{
	margin-bottom: 40px;   /* Adds breathing room above footer */
}

@media (max-width: 600px) {
  body {
    font-size: 16px;
    padding: 1rem;
  }
  .post-heading {
    font-size: 1.3em;
  }

  .share-wrapper .share-button {
    font-size: 0.85em;
    padding: 5px 10px;
  }

  .post-title {
    font-size: 1.2rem;
  }

  .post-date {
	width: 100%;
	max-width: none;      /* Allow full width */
    font-size: 0.9rem;
    text-align: center;
    padding-top: 0;
    margin-bottom: 0.5em; /* Space between date and post */
  }
  
  .post-wrapper {
    flex-direction: column;  /* Stack vertically */
	align-items: center;
  }
  .unlock-hint {
    font-size: 0.85rem;
  }

  #popup-content {
    width: 95%;
    padding: 1rem;
    max-height: 85vh;
  }
  
  .comment-form input,
  .comment-form textarea {
	width: 100%;
	font-size: 16px;
	padding: 10px;
  }

  #menu-list {
    width: 80%;
    top: 0;
    max-height: 50vh;
    padding-top: 60px; /* extra space below toggle */
  }

  
  #menu-list button {
    font-size: 15px;
    padding: 6px 10px;
  }
  
  #toggle-menu2.toggle-menu-button-mobile{
	position: absolute;
	top: 10px;
    font-size: 16px;
	background-color: #333;
	color: white;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	z-index: 10000;
    display: block;
	max-width: 95%;
	padding: 10px;
  }
  #popup-close {
    position: absolute;
    top: 11px;
    right: 100px;
  }
  
  #toggle-menu {
    font-size: 16px;
    padding: 8px 12px;
  }
  
  .document-block {
    padding: 0.75em;
    font-size: 0.95em;
  }

  .document-block .txt-placeholder {
    font-size: 0.75em;
  }
  
  .doc-table td {
    display: block;
    width: 100% !important;
    box-sizing: border-box;
    padding: 0.75em;
    margin-bottom: 0; /* Ensure no margin stacking here */
  }

  .doc-table tr {
    display: block;
    border-bottom: none;
	border: 1.5px solid #b5b5b5; /* inner cell borders */
    margin-bottom: 0; /* Remove extra gap */
  }

  .doc-table td + td {
    border-top: 1px solid #ccc; /* Optional divider between stacked cells */
  }
  
  .post-section {
    padding: 1rem;
    font-size: 15px;
  }

  .post-section h3 {
    font-size: 1.1em;
  }

  .post-section ul {
    padding-left: 1.2em;
  }

  .doc-table {
    width: 100%;
    display: block;
    overflow-x: auto;
    border-collapse: collapse;
  }

  .doc-table td {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
  }
  #legalModal, #privacyModal, #correctionModal {
	  padding: 1rem;
	  font-size: 14px;
	  max-height: 90%;
	}
	
	.topic-nav-button {
		font-size: 0.9rem;        /* Larger text */
	}
}
