/* Light mode overrides inspired by dark.css structure */

body {
    background: #fdfdfd;
    color: #1a1a1a;
    transition: background 0.3s ease, color 0.3s ease;
  }
  
  a {
    color: #0077cc;
    text-decoration: none;
  }
  
  a:hover {
    text-decoration: underline;
  }
  
  pre {
    background: #f5f5f5;
    color: #2e2e2e;
    padding: 1em;
    border-radius: 0.5em;
    overflow-x: auto;
    font-size: 0.95em;
    line-height: 1.6;
  }
  
  code {
    background: #eee;
    padding: 0.2em 0.4em;
    border-radius: 4px;
    font-size: 0.95em;
    font-family: "JetBrains Mono", monospace;
  }
  
  blockquote {
    background: #f9f9f9;
    border-left: 4px solid #ccc;
    padding: 1em;
    margin: 1em 0;
    color: #555;
  }
  
  hr {
    border: none;
    border-top: 1px solid #ddd;
    margin: 2em 0;
  }
  
  .title a {
    color: #222;
  }
  
  .title a:hover {
    color: #0077cc;
  }
  
  /* Footer tweaks */
  footer {
    color: #666;
    font-size: 0.9em;
  }
  
  /* Heading balance */
  h1, h2, h3, h4 {
    color: #222;
    margin-top: 2em;
    font-weight: 700;
  }
  .project-social-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
  }
  
  .social-card {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    background: #ffffff;
    border: 1px solid #e1e4e8;
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    height: 150px;
    max-height: 150px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }
  
  .social-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
  }
  
  .social-card-left {
    flex-grow: 1;
    margin-right: 1rem;
    overflow: hidden;
  }
  
  .social-card-left h3 {
    font-size: 1.05rem;
    margin: 0 0 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  .social-card-left h3 a {
    text-decoration: none;
    color: #0366d6;
  }
  
  .social-summary {
    color: #586069;
    font-size: 0.9rem;
    line-height: 1.4;
    max-height: 2.7em; /* 約兩行 */
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }
  
  .social-meta {
    font-size: 0.75rem;
    color: #6a737d;
    margin-top: 0.25rem;
  }
  
  .social-card-right img {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    opacity: 0.85;
  }