body {
  background-color: #1a1a1a;
  color: #fff;
  font-size: 1.15em;
  font-display: swap;
}

main nav {
  border-bottom: 1px solid #444;
}

main nav a {
    font-size: 1.1em !important;
    border-right: 1px solid #444;
    padding: 0 8px;
}

main article {
  line-height: 1.65;
}

@media (max-width: 700px) {
  main article {
    line-height: 1.55;
  }
}

h1 {
  font-size: 2.2em;
}


main article h1, main article:not(.single) h2 {
  font-weight: 600;
}

main footer {
  border-top: 1px solid #444;
}

hr {
  background-color: #444;
  color: #444;
}

table {
  max-width: 100%;
  overflow-x: auto;
}

/* Social Share Buttons CSS */
.share-buttons {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 3em;
    margin-bottom: 1em;
    flex-wrap: wrap;
}

.share-label {
    font-weight: 600;
    color: #20966f;
    margin-right: 8px;
    font-size: 14px;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 2px solid transparent;
    min-height: 36px;
    gap: 6px;
}

.share-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(32, 150, 111, 0.2);
    text-decoration: none;
}

/* Primary style with main color */
.share-btn-primary {
    background-color: #20966f;
    color: white;
}

.share-btn-primary:hover {
    background-color: #1a7d5e;
    color: white;
}


/* Platform-specific colors (alternative style) */
.share-btn-facebook {
    background-color: #1877f2;
    color: white;
}

.share-btn-facebook:hover {
    background-color: #166fe5;
    color: white;
}

.share-btn-twitter {
    background-color: #1d9bf0;
    color: white;
}

.share-btn-twitter:hover {
    background-color: #1a8cd8;
    color: white;
}

.share-btn-reddit {
    background-color: #ff4500;
    color: white;
}

.share-btn-reddit:hover {
    background-color: #e63e00;
    color: white;
}

.share-btn-hackernews {
    background-color: #ff6600;
    color: white;
}

.share-btn-hackernews:hover {
    background-color: #e65c00;
    color: white;
}

/* Icons using Unicode symbols */
.icon {
    font-size: 16px;
    line-height: 1;
}

/* Responsive design */
@media (max-width: 480px) {
    .share-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .share-label {
        margin-bottom: 8px;
    }

    .share-btn {
        justify-content: center;
    }
}

/* Series */
.series-nav {
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin-top: 2rem;
  background: #111;
}
.series-nav h4 {
  margin-top: 0 !important;
  font-size: 1.4rem;
}
.series-nav h5 {
  margin: 20px 0 10px 0;
  font-size: 1.2rem;
}
.series-nav ul {
  margin: 0.5rem 0 0;
  padding-left: 1.2rem;
}
.series-nav li {
  margin-bottom: 0.25rem;
}

/* Author presentation in sidebar */
.author-pres {
  padding: 0;
  margin: 40px 0 20px 0;
}

.author-pres a {
  text-decoration: underline;
  color: #3cebb1;
}

.author-pres a:hover {
  color: #08ffad;
}

/* Article list item */
.article-list-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
}

.article-list-wrapper .summary p {
  margin-top: 0;
}

/* Desktop: image on the left, text on the right */
@media (min-width: 768px) {
  .article-list-wrapper {
    flex-direction: row;
  }

  .article-list-wrapper .featured {
    max-width: 40%;
    height: auto;
    object-fit: cover;
  }

  .article-list-wrapper .summary {
    flex: 1;
  }
}

.featured {
  border-radius: 8px;
  max-height: 200px;
}

article.single h2 {
  border-left: 5px solid #00d1b2;
  padding-left: 0.8rem;
  font-size: 1.7rem;
  font-weight: 700;
  color: #fff;
  margin-block-start: 3rem;
  margin-block-end: 1.5rem;
}


article.single h3 {
  text-transform: uppercase;
  font-size: 1.4rem;
  font-weight: 500;
  margin-top: 20px;
  margin-bottom: 0;
  display: inline-block;
  border-bottom: 1px dashed grey;
  color: #00d1b2;
}

article.single h4 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-top: 20px;
  margin-bottom: 0;
}

article.single li p {
  margin: 0;
}


article.single img {
  border-radius: 12px;
}

.float-image {
  float: left;
  margin-right: 1.5rem;
  margin-bottom: 1rem;
}

.float-right-image {
  float: right;
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

.center-image {
  width: 400px;
  display: block;
  margin: auto;
}

.center-image-nw {
  display: block;
  margin: auto;
}

@media (max-width: 800px) {
  .float-image, .float-image-right {
    float: none;
    display: block;
    margin: 0 auto 1.5rem auto;
  }
}

/* SERIES LISTING */

.series-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 2rem;
}

.series-row {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
}

.series-cover {
  max-width: 300px;
  object-fit: cover;
  border-radius: 10px;
  flex-shrink: 0;
}

.series-info {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.series-title {
  font-size: 1.35rem;
  color: #20966f;
  text-transform: uppercase;
  text-decoration: none;
  font-weight: 600;
}

.series-title:hover {
  text-decoration: underline;
}

.series-count {
  color: #999;
  margin-top: 0.2rem;
  font-size: 0.95rem;
}

@media (max-width: 700px) {
  .series-row {
    flex-direction: column;
  }
}

.series-part {
  display: inline-block;
  border: 2px solid #1dd1a1;
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: 8px;
  padding: 3px 9px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.2s ease;

  background: #1dd1a1;
  color: #000;
  box-shadow: 0 0 10px rgba(29, 209, 161, 0.6);
}

.series-article-subtext {
  display: inline-block;
  color: #999;
  font-size: .86em;
  margin-left: 15px;
}


/* CONTACT US / SUBSCRIBE FORM */
article.form form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 600px;
  margin: 2rem 0;
}

article.form input[type="email"], article.form textarea {
  background-color: #1c1c1c;
  color: #f0f0f0;
  border: 1px solid #333;
  border-radius: 4px;
  padding: 0.75rem;
  font-size: 1rem;
  width: 100%;
  box-sizing: border-box;
}

article.form input[type="email"]::placeholder, article.form textarea::placeholder {
  color: #888;
}

article.form textarea {
  min-height: 200px;
  resize: vertical;
}

article.form button[type="submit"] {
  background-color: #0aff9d;
  color: #000;
  border: none;
  border-radius: 4px;
  padding: 0.75rem 1.25rem;
  font-size: 1rem;
  cursor: pointer;
  align-self: flex-start;
  transition: background-color 0.2s ease-in-out;
}

article.form button[type="submit"]:hover {
  background-color: #00e68a;
}

/* UPCOMING BANNER */

.upcoming-banner {
  background-color: #111;
  border-left: 4px solid #0aff9d;
  color: #ccc;
  padding: 0.75rem 1rem;
  margin: 20px 8% 20px 8%;
  font-size: 1rem;
  font-family: monospace;
  line-height: 1.4;
  box-shadow: 0 0 10px #0aff9d22;
}
.upcoming-banner strong {
  color: #0aff9d;
}
.upcoming-banner em {
  color: #fff;
  font-style: normal;
}

/* ARTICLE DIVIDER */

hr {
  height: 1px;
  margin: 2rem 0;
  background: linear-gradient(to right, rgba(0, 255, 200, 0.6), transparent);
  border: none;
}

/* ARTICLE FOOTNOTE */

.article-footnote {
    margin-top: 2.5rem;
    padding-top: 1rem;

    border-top: 1px solid rgba(255, 255, 255, 0.1);

    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.65);
}

.footnote-label {
    font-weight: 500;
    opacity: 0.7;
    margin-right: 0.25rem;
}


.series-conclusion-note {
  margin-top: 1.25rem;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  line-height: 1.4;

  color: #cfd8d3; /* soft neutral, not headline */
  background: rgba(20, 180, 130, 0.08); /* subtle green wash */
  border-left: 3px solid #14b482; /* same green as your CTA */
  border-radius: 4px;

  max-width: 48rem; /* keeps it readable, not banner-like */
}
