body {
  margin: 0;
  line-height: 1.5em;
  background: #fafafa;
}
.header div, .container, .copyright, .menu {
  max-width: 1100px;
  margin: auto;
  padding: 0 15px;
}
.page .header div, .page .container, .page .copyright, .page .menu { max-width: 900px; }
.container { hyphens: auto; }
@media (max-width: 930px) {
  .page .container { padding: 0; }
}
main { margin-bottom: 15px; }

/* header and footer areas */
.header {
  border-top: 5px solid #666;
  border-bottom: 4px double #666;
  text-align: center;
  padding: 15px 0 5px;
}
.head-meta, .menu {
  display: flex;
  justify-content: space-between;
}
.header, .list section, article { background: #fff; }
.banner { font-size: 4em; }
.banner .text {
  display: block;
  line-height: 1em;
}
.list {
  display: flex;
  flex-wrap: wrap;
  margin-left: -15px;
}
.list section {
  flex: 1 0 350px;
  box-sizing: border-box;
  box-shadow: 0 0 8px #ccc;
  margin: 1em 0 0 15px;
  padding: 1em;
  overflow-x: hidden;
}
@media (max-width: 380px) {
  .list section { flex: auto; }
}
@media (min-width: 715px) {
  .list section { max-width: calc(50% - 15px); }
  .article-list h1 {
    overflow-x: hidden;
    white-space: wrap;
    text-overflow: ellipsis;
  }
  .article-list h1:hover { white-space: inherit; }
}
@media (min-width: 1080px) {
  .list section { max-width: calc(33.33333% - 15px); }
}
.article-list a, .banner a { color: #000; }
.categories a {
  font-size: .9em;
  font-weight: bolder;
  text-transform: uppercase;
  color: #666;
}
h1 a:hover { text-decoration: underline; }
.article-list h1 { margin: .2em auto .2em 0; }
article { padding: 1em; }
.article-meta {
  text-decoration: none;
  background: #eee;
  padding: 5px;
  border-radius: 5px;
}
.menu, .article-meta, footer, .post-nav { text-align: center; }
.article-footer { text-align: left; }
.title { font-size: 1.2em; }
.article-list h1, .title { line-height: 1.2em; }
.article-list a, .header a, footer a, .categories a, .active a, .comments a { text-decoration: none; }
.pagination { text-align: center; }
.pagination li, .terms li { display: inline; }
.pagination a { padding: 0 .2em; }
.footer {
  background: #ececec;
  padding: 1em 0;
}
.footer, .footer a { color: #fff; }
.copyright, .copyright a { color: #ccc; }
.menu {
  margin-bottom: .5em;
  flex-wrap: wrap;
}
.menu li {
  display: inline-block;
  font-weight: bolder;
}
.menu a { padding: .5em; }
.menu a:hover {
  color: #000;
  background: #fff;
}

hr {
  border-style: dashed;
  color: #ddd;
}

/* code */
pre {
  border: 1px solid #ddd;
  box-shadow: 5px 5px 5px #eee;
  overflow-x: auto;
}
code { background: #f9f9f9; }
pre code {
  background: none;
  padding: .5em;
  display: block;
}

/* misc elements */
img, iframe, video { max-width: 100%; }
blockquote {
  background: #f9f9f9;
  border-left: 5px solid #ccc;
  padding: 3px 1em 3px;
}

table {
  margin: 1em auto auto;
  border-top: 1px solid #666;
  border-bottom: 1px solid #666;
}
table thead th { border-bottom: 1px solid #ddd; }
th, td { padding: 5px; }
tr:nth-child(even) { background: #eee }

.thumbnail {
  height: 5.1em;
  width: 6.8em;
  float: left;
  overflow: hidden;
  margin: 5px 8px 5px 0;
  box-shadow: 0 0 8px #666;
}
.thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
#TableOfContents, #TOC, .comments {
  border: 1px solid #eee;
  border-radius: 5px;
}
.comments a {
  display: inline-block;
  width: 100%;
  text-align: center;
  font-size: 1.2em;
}
.terms { padding-left: 0; }
.post-nav {
  margin: .5em 0;
  display: flex;
  justify-content: space-between;
}
.footnotes { font-size: .9em; }
.footnotes hr {
  width: 50%;
  margin-left: 0;
}
/* break long words */
p, ul, ol, h1, h2, h3, h4, h5, h6 {
    overflow-wrap: break-word;
}

/* Basic styles for social share buttons */
.share-buttons {
  margin: 1em 0;                  /* space above and below the button row */
  display: flex;
  gap: 0.5em;                     /* spacing between buttons */
  flex-wrap: wrap;
  align-items: center;
}
.share-buttons a {
  text-decoration: none !important;
  font: 0.9em/1.4 sans-serif;
  color: #ececec !important;
  background: #444;              /* dark gray background for contrast */
  padding: 0.3em 0.6em;
  border-radius: 3px;
}
.share-buttons a:hover {
  background: #222;
}
@media(max-width: 600px) {
  .share-buttons {
    flex-direction: column;
    align-items: flex-start;
  }
  .share-buttons a {
    margin-bottom: 0.5em;
  }
}

/* ===== Customizations for AI-2027 style ===== */

/* Typography and readability enhancements */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 18px;
  line-height: 1.7;
  color: #333;
  background: #ffffff;
}

.container {
  max-width: 800px;
  padding: 20px;
  margin: auto;
}

.article-header {
  text-align: center;
  margin-bottom: 2em;
}

.post-title {
  font-size: 2em;
  line-height: 1.2;
  margin-bottom: 0.2em;
}

.post-meta {
  color: #777;
  font-size: 0.9em;
}

.post-content img.post-image {
  width: 100%;
  margin: 2em auto;
  display: block;
  border-radius: 4px;
}

.article-list {
  box-shadow: none;
  border-bottom: 1px solid #eee;
  padding: 1em 0;
  margin: 0;
  background: none;
}

.article-list h1 {
  font-size: 1.5em;
  margin-bottom: 0.3em;
}

.list-meta {
  color: #888;
  font-size: 0.85em;
  margin-bottom: 0.2em;
}

.summary {
  color: #555;
  font-size: 0.95em;
}

.header {
  border: none;
  padding: 20px 0;
}

.menu a {
  color: #333;
  font-weight: normal;
}

.menu a:hover {
  background: none;
  text-decoration: underline;
}

/* Remove unused elements */
.categories, .thumbnail, .comments, .author-info, .post-nav {
  display: none !important;
}

/* Adjust share-buttons style (already exists but minor update for elegance) */
.share-buttons {
  justify-content: center;
  margin-top: 3em;
}

.share-buttons a {
  padding: 0.5em 0.8em;
  background: #555;
  border-radius: 4px;
  transition: background 0.3s ease;
}

.share-buttons a:hover {
  background: #000;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .container {
    padding: 10px;
  }
  .post-title {
    font-size: 1.6em;
  }
}

/* Navigation between articles */
.post-navigation {
  margin: 3em 0;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid #eee;
  padding-top: 1.5em;
}

.post-navigation a {
  color: #000;
  text-decoration: underline;
}

.post-navigation a:hover {
  opacity: 0.7;
}

/* Set all links to solid black with underline (no purple or blue links) */
a, a:visited {
  color: #000 !important;
  text-decoration: underline !important;
}

a:hover, a:active {
  color: #000 !important;
  opacity: 0.7;
}

/* Grid posts */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5em;
}

.article-list {
  padding: 0;
  margin: 0;
  border-bottom: none;
}

.thumbnail img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 4px;
  display: block;
  margin-bottom: 0.5em;
}

.article-list h1 {
  font-size: 1.3em;
  margin-bottom: 0.3em;
}

.list-meta {
  font-size: 0.8em;
  color: #666;
  margin-bottom: 0.2em;
}

.summary {
  color: #444;
  font-size: 0.9em;
}

/* ===== Optimized Customizations for AI-2027 style ===== */

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 18px;
  line-height: 1.7;
  color: #333;
  background: #ffffff;
}

.container {
  max-width: 900px;
  padding: 20px;
  margin: auto;
}

/* Article Page Styling */
.article-header {
  text-align: center;
  margin-bottom: 2em;
}

.post-title {
  font-size: 2em;
  margin-bottom: 0.2em;
}

.post-meta {
  color: #777;
  font-size: 0.9em;
}

.post-content img.post-image {
  width: 100%;
  margin: 2em auto;
  display: block;
  border-radius: 4px;
}

/* Navigation between articles */
.post-navigation {
  margin: 3em 0;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid #eee;
  padding-top: 1.5em;
}

.post-navigation a {
  color: #000 !important;
  text-decoration: underline !important;
}

/* All Links Black & Underlined */
a, a:visited {
  color: #000 !important;
  text-decoration: underline !important;
}

a:hover, a:active {
  opacity: 0.7;
}

/* Grid (homepage/article listing) */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5em;
}

.article-list {
  padding: 0;
  margin: 0;
  border-bottom: none;
  background: none;
  box-shadow: none;
}

.thumbnail {
  width: 100%;
  height: auto;
  float: none;
  margin: 0 0 0.5em 0;
  box-shadow: none;
}

.thumbnail img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 4px;
  display: block;
}

.article-list h1 {
  font-size: 1.3em;
  margin-bottom: 0em;
}

.list-meta {
  font-size: 0.8em;
  color: #666;
  margin-bottom: 0.2em;
}

.summary {
  color: #444;
  font-size: 0.9em;
}

/* Cleanup (Ensure elements are visible again) */
.article-list .thumbnail {
  display: block !important;
}

.article-list .summary {
  display: block !important;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .container {
    padding: 10px;
  }
  .post-title {
    font-size: 1.6em;
  }
}

p.summary {
  margin-top: 0em;
  margin-bottom: 0em;
}


.blackbox {
  display: block;
  margin-top: -1.2em !important;
  margin-bottom: 0.3em !important;
  text-align: center;
  background: #282627;
  color: #ececec;
  padding: 4px 8px;
  font-family: monospace;
  font-size: 0.2em;
  border-radius: 3px;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.cursor {
  display: inline-block;
  animation: blink 1s infinite;
  margin-left: 2px;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  50.1%, 100% { opacity: 0; }
}