/* General layout */
body {
    font-family: Georgia, serif;
    line-height: 1.6;
    margin: 0;
    background: #f9f9f9;
    color: #333;
}

.main-content {
    padding: 20px;
}

a {
    color: #004c99;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Header */
header {
    background: #222;
    color: #fff;
    padding: 20px;
    text-align: center;
}

.site-logo {
    max-width: 100%;
    height: auto;
    max-height: 100px;
    display: block;
    margin: 0 auto;
}

.site-title {
    font-family: 'UnifrakturCook', serif;
    font-size: 2.6em;
    margin: 0;
    padding: 0;
    line-height: 1;
}

.site-title img {
    display: block;
    margin: 0 auto;
    /* vertical-align: bottom; */
}

/* Header link override */
header .site-title a {
    color: #fff;
    text-decoration: none;
}

header .site-title a:hover {
    text-decoration: none;
    color: #ddd;
}

header nav {
    margin-top: 16px;
    padding-top: 10px;
    border-top: 1px solid #444;
}

header nav a {
    color: #bbb;
    margin: 0 10px;
    text-decoration: none;
    font-size: 0.95em;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: sans-serif;
}

header nav a:hover {
    color: #fff;
    text-decoration: underline;
}

.tagline {
    font-size: 1em;
    font-style: italic;
    color: #ccc;
    margin-top: 4px;
    margin-bottom: 12px;
    font-family: Georgia, 'Times New Roman', Times, serif;
}

/* Article List */
.article-list {
    max-width: 800px;
    margin: 30px auto;
    padding: 0 15px;
}

.article-preview {
    border-bottom: 1px solid #ddd;
    margin-bottom: 20px;
    padding-bottom: 15px;
}

.article-preview h2 {
    font-size: 1.4em;
    margin-bottom: 5px;
}

.summary {
    color: #555;
}

.meta {
    color: #777;
    font-size: 0.9em;
    margin-bottom: 20px;
}

/* Footer */
footer {
    background: #eee;
    color: #666;
    text-align: center;
    padding: 15px 0;
    font-size: 0.9em;
    margin-top: 40px;
}
footer a {
    color: #666;
    text-decoration: none;
}
 
footer a:hover {
    text-decoration: underline;
}

/* mailing list */

.subscribe-feedback {
  display: inline-block;
  margin-left: 0.5em;
  font-size: 0.9em;
  color: green;
}
.subscribe-feedback.error {
  color: red;
}

#subscribe-email {
  font-size: 0.85rem;
  padding: 4px 8px;
  border: 1px solid #999;
  border-radius: 4px;
  background-color: #fff;
  color: #000;

  /* niceties: */
  width: 12em;              /* fixed width so layout doesn’t jump */
  transition: border-color .2s;
}
#subscribe-email:focus {
  outline: none;
  border-color: #666;       /* darker border on focus */
  box-shadow: 0 0 2px rgba(0,0,0,0.2);
}

/* Style your button to match */
.subscribe-form button {
  font-size: 0.85rem;
  padding: 4px 12px;
  margin-left: 0.5em;
  border: 1px solid #666;
  border-radius: 4px;
  background-color: #f5f5f5;
  color: #333;
  cursor: pointer;
  transition: background-color .2s, border-color .2s;
}
.subscribe-form button:hover {
  background-color: #e0e0e0;
  border-color: #555;
}

/* Keep form elements aligned */
.subscribe-form {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

/* info bar */ 
#info-bar {
    background: #f0f0f0;
    color: #333;
    font-size: 0.9em;
    padding: 6px 12px;
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    font-family: sans-serif;
    border-bottom: 1px solid #ccc;
    overflow: auto;
}

#info-bar span {
    white-space: nowrap;
}

#info-bar .divider {
    color: #aaa;
}

/* leaving this here but not currently used */
.tradingview-wrapper {
    height: 600px; /* or whatever height works well */
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
  }


/* styling for the article grid on index.html */

.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    padding: 1rem;
}

.article-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.08);
    padding: 1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.article-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

.article-card a {
    color: inherit;
    text-decoration: none;
}

.article-card h3 {
    margin-top: 0;
    font-size: 1.2rem;
}

.article-card .summary_text:hover {
    text-decoration: underline;
}

.card-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 0.5rem;
    /* object-position: top; */
    object-position: 50% 25%;

    /* soften it? */
    /* filter: grayscale(0.3) brightness(0.95) contrast(0.9) saturate(0.85); */
}

.article-grid-comics{
    /* one column, items centred */
    display:grid;               /* or: display:flex; flex-direction:column; */
    grid-template-columns: 1fr; /* single column */
    justify-items: center;      /* horizontal centring */
    gap:1.5rem;
    padding:1rem;
}

/* ===== card ===== */
.article-card-comics{
    background:#fff;
    border-radius:8px;
    box-shadow:0 1px 5px rgba(0,0,0,.08);
    padding:1rem;
    transition:.2s ease;

    width:100%;          /* take full width of column … */
    max-width:800px;     /* … but never exceed this number   */
    margin:0 auto 2rem;  /* centre inside the grid cell      */
}

/* ===== image ===== */
.card-img-comics{
    width:100%;           /* fill the card horizontally      */
    height:auto;          /* keep aspect ratio               */
    max-height:80vh;      /* never taller than 80% viewport  */
    object-fit:contain;   /* entire comic visible; crop? use 'cover' */
    border-radius:6px;
    margin-bottom:.5rem;
}

/* menus / drop-downs */
.dropdown {
    position: relative;
    display: inline-block;
  }
  
  .dropdown-content {
    display: none;
    position: absolute;
    background-color: #222; /* Match your dark navbar */
    min-width: 160px;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.3);
    z-index: 1;
    white-space: nowrap;
    border: 1px solid #444;
  }
  
  .dropdown-content a {
    display: block;
    padding: 0.5em 1em;
    text-decoration: none;
    color: #eee; /* Light text for dark bg */
  }
  
  .dropdown-content a:hover {
    background-color: #333; /* Slightly lighter on hover */
  }

  .dropdown:hover .dropdown-content {
    display: block;
  }
  

.no-articles-msg {
    text-align: center;
    color: #888;
    font-style: italic;
    margin: 2em 0;
}

/* section title headers on "section" pages */

.section-header-container {
    max-width: 960px;
    margin: 2rem auto 1rem auto;
    padding: 0 1rem;
    text-align: center;
}

.section-header {
    display: inline-flex; /* changed from flex */
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    text-align: left;
}

.section-icon {
    width: 48px;
    height: 48px;
    object-fit: contain;
    flex-shrink: 0;
}

.section-title {
    font-size: 2rem;
    margin: 0;
    flex-shrink: 0;
}

.section-description {
    font-size: 0.9rem;
    color: #aaa;
    margin: 0;
    flex: 1;
    min-width: 180px;
    max-width: 400px;
}

/* pagination */

.pagination {
    text-align: center;
    margin-top: 40px;
    font-size: 1em;
}
.pagination a {
    margin: 0 10px;
    color: #555;
    text-decoration: none;
}
.pagination a:hover {
    text-decoration: underline;
}

.tags {
    margin-top: 4px;
    font-size: 0.85em;
    color: #888;
}
.tags a {
    /* margin-right: 6px; */
    text-decoration: none;
    color: #555;
}
.tags a:hover {
    text-decoration: underline;
}

/* search results */
.search-result {
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    background-color: #fafafa;
}

.search-result-inner {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.search-result .thumbnail img {
    width: 60px;
    height: auto;
    margin-top: 0.2rem; /* Optional tweak */
    border-radius: 4px;
}

.search-result-content h3 {
    margin-top: 0;
    margin-bottom: 0.3rem;
    font-size: 1.1rem;
}

.search-result-content p {
    margin: 0.25rem 0;
}

/* the (hidden) search input bar */
.search-toggle {
    position: absolute;
    top: 12px;
    left: 16px;
}
  
#search-icon {
    cursor: pointer;
    font-size: 1.2rem;
    color: #fff;
}
  
#search-form {
    display: none;
    margin-top: 6px;
}
  
#search-form input {
    font-size: 0.85rem;
    padding: 4px 8px;
    border: 1px solid #999;
    border-radius: 4px;
    background-color: #fff;
    color: #000;
}
/* the search.html search input bar */
.search-bar {
    margin: 1rem auto 2rem auto;
    max-width: 500px;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
  }
  
  .search-bar input[type="text"] {
    flex: 1;
    padding: 6px 10px;
    font-size: 1rem;
    border: 1px solid #aaa;
    border-radius: 4px;
  }
  
  .search-bar button {
    padding: 6px 12px;
    font-size: 1rem;
    background-color: #444;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
  }
  
  .search-bar button:hover {
    background-color: #333;
  }
