    body {
      margin: 0;
      font-family: Arial, sans-serif;
      background-color: #F4F4F4;
      color: #333333;
      padding: 1rem;
    }

    a {
      color: #3A8DD5;
      text-decoration: none;
    }

    a:hover {
      text-decoration: underline;
      color: #125A9F;
    }

    h2 a, h3 a {
      color: inherit;
      text-decoration: none;
    }

    h2 a:hover, h3 a:hover {
      text-decoration: underline;
    }

blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.5rem 1rem 1.5rem;
  border-left: 4px solid #888888;
  background-color: #fafafa;
  font-style: italic;
  color: #555555;
  line-height: 1.7;
  width: fit-content;
  min-width: 400px;
  border-radius: 4px;
}

blockquote p {
  margin: 0.5rem 0;
}

blockquote p:first-child {
  margin-top: 0;
}

blockquote p:last-child {
  margin-bottom: 0;
}

blockquote cite {
  display: block;
  font-style: normal;
  color: #888888;
  font-size: 0.95rem;
  margin-top: 1rem;
}

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

    .header-content {
      padding: 2rem;
    }

    .header-content h1 {
      font-size: 2.5rem;
      margin: 0;
      color: #555555;
    }

    .header-content p {
      color: #888888;
      margin: 0.5rem 0 0;
    }

    .grid {
      display: block;
      margin: 0 auto;
      max-width: 800px;
    }

    .card {
      background-color: #FFFFFF;
      border-radius: 0.5rem;
      padding: 1rem;
      box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
      margin-bottom: 1.5rem;
    }

    .card h2 {
      margin: 0 0 0.5rem;
      font-size: 1.5rem;
      color: #555555;
    }

    .card .date {
      color: #777777;
      font-size: 0.875rem;
      margin-bottom: 1rem;
    }

    .card p {
      margin: 1rem 0;
      line-height: 1.8;
      color: #333333;
    }

    ul, ol {
      margin: 1rem 0;
      padding-left: 1.5rem;
      color: #333333;
    }

    ul li, ol li {
      margin: 0.5rem 0;
      line-height: 1.6;
    }

    ul {
      list-style-type: disc;
    }

    ul ul {
      list-style-type: circle;
    }

    ul ul ul {
      list-style-type: square;
    }

    ol {
      list-style-type: decimal;
    }

    ol ol {
      list-style-type: lower-alpha;
    }

    ol ol ol {
      list-style-type: lower-roman;
    }

    img {
        max-width: 100%;
        height: auto;
        display: block;
        margin: 1rem 0;
        border-radius: 4px;
    }

    footer {
      margin-top: 2rem;
      text-align: center;
      color: #888888;
    }

    footer a {
      color: #3A8DD5;
    }

    footer a:hover {
      text-decoration: underline;
      color: #125A9F;
    }

    iframe {
      max-width: 100%;
      display: block;
      margin: 0 auto;
    }

    .tag {
        display: inline-block;
        background: #ddd;
        padding: 0.25rem 0.5rem;
        margin: 0.25rem 0.25rem 0.25rem 0;
        border-radius: 0.25rem;
        font-size: 0.875rem;
    }

    .micro-post {
        border-bottom: 1px solid #ddd;
        padding: 1rem 0;
    }

    .micro-post:last-child {
        border-bottom: none;
    }

    .micro-content {
        font-size: 1rem;
        line-height: 1.5;
        margin-bottom: 0.5rem;
        word-wrap: break-word;
    }

    .micro-time {
        font-size: 0.85rem;
        color: #999;
    }

    .micro-footer {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-top: 0.5rem;
        font-size: 0.875rem;
    }

    .micro-number {
        color: #3A8DD5;
    }

    .micro-link {
    color: #999;
    }

    .pagination {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin: 3rem auto 0;
        padding-top: 1rem;
        padding-bottom: 1rem;
        gap: 1rem;
        max-width: 800px;
        width: 100%;
    }

    .pagination a {
        padding: 0.5rem 1rem;
        background-color: #3A8DD5;
        color: white;
        text-decoration: none;
        border-radius: 4px;
        transition: background-color 0.3s;
    }

    .pagination a:hover {
        background-color: #0056b3;
    }

    .page-info {
        font-size: 0.9rem;
        color: #666;
    }

    /* Mobil */
    @media (max-width: 600px) {
        .pagination {
            flex-direction: column;
            gap: 1rem;
        }
        
        .pagination a {
            width: 100%;
            text-align: center;
        }
        img {
            width: 100vw;
        }
    }

    .tabs {
        display: flex;
        gap: 10px;
        margin: 20px 0;
        border-bottom: 2px solid #ddd;
    }

    .tab-button {
        padding: 10px 20px;
        background: none;
        border: none;
        cursor: pointer;
        font-size: 1rem;
        border-bottom: 3px solid transparent;
        transition: all 0.3s;
        color: #333333;
    }

    .tab-button.active {
        border-bottom-color: #333;
        font-weight: bold;
    }

    .tab-button:hover {
        border-bottom-color: #ccc;
    }

    .tab-content {
        display: none;
    }

    .tab-content.active {
        display: block;
    }

    /* Archive styles */
    .archive-tabs {
        display: flex;
        gap: 1rem;
        margin-bottom: 2rem;
        border-bottom: 2px solid #ddd;
    }

    .archive-tabs .tab-button {
        padding: 10px 20px;
        background: none;
        border: none;
        border-bottom: 3px solid transparent;
        cursor: pointer;
        font-size: 1rem;
        color: #333333;
        transition: all 0.2s;
    }

    .archive-tabs .tab-button.active {
        color: #3A8DD5;
        border-bottom-color: #3A8DD5;
        font-weight: bold;
    }

    .archive-tabs .tab-button:hover {
        color: #125A9F;
        border-bottom-color: #ccc;
    }

    .archive-view {
        display: none;
    }

    .archive-view.active {
        display: block;
    }

    .month-group {
        margin-bottom: 2rem;
    }

    .month-header {
        background: #f9f9f9;
        padding: 10px 15px;
        border-left: 4px solid #3A8DD5;
        margin-bottom: 1rem;
        font-weight: bold;
        color: #555555;
    }

    .month-count {
        color: #999;
        font-weight: normal;
    }

    .month-posts {
        padding-left: 20px;
    }

    .archive-post-item {
        padding: 8px 0;
        border-bottom: 1px solid #eee;
    }

    .archive-post-item:last-child {
        border-bottom: none;
    }

    .archive-post-item a {
        color: #3A8DD5;
    }

    .archive-post-item a:hover {
        text-decoration: underline;
        color: #125A9F;
    }

    .archive-post-date {
        color: #999;
        font-size: 0.9em;
        margin-left: 10px;
    }

    .tag-cloud {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
        margin-bottom: 2rem;
    }

    .tag-link {
        display: inline-block;
        padding: 6px 12px;
        background: #f0f0f0;
        border: 1px solid #ddd;
        border-radius: 20px;
        text-decoration: none;
        color: #3A8DD5;
        font-size: 0.95em;
        transition: all 0.2s;
    }

    .tag-link:hover {
        background: #3A8DD5;
        color: white;
        border-color: #3A8DD5;
    }

    .comment-tags-wrapper {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-top: 2rem;
        gap: 1rem;
    }

    .comment-link {
        flex-shrink: 0;
    }

    .card .tags {
        display: flex;
        justify-content: flex-end;
        flex-wrap: wrap;
        gap: 0.5rem;
        margin-left: auto;
    }

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

    .figure {
        margin: 1.5rem 0;
    }


    .figure figcaption {
        margin-top: 0.75rem;
        font-size: 0.9rem;
        color: #666666;
        font-style: italic;
        line-height: 1.5;
        text-align: left;
    }
    .poem-line {
      margin-top: 1rem;       
      margin-bottom: 1rem;    
      white-space: pre-wrap;
    }

    .menu {
        display: flex;
        gap: 0.25rem;
        align-items: center;
        justify-content: center;
        margin-bottom: 2rem;
    }

    .menu > a {
        text-decoration: none;
        padding: 0.25rem 0.75rem;
        border-radius: 4px;
        transition: background-color 0.3s;
        font-weight: bold;
    }

    .menu > a:hover,
    .menu > a.active {
        background-color: #f0f0f0;
    }

    .dropdown {
        position: relative;
        display: inline-block;
    }

    .dropdown-toggle {
        background: none;
        border: none;
        padding: 0.5rem 1rem;
        cursor: pointer;
        font-size: 1rem;
        border-radius: 4px;
        transition: background-color 0.3s;
        font-weight: bold;
        color: #3A8DD5;
    }

    .dropdown-toggle:hover {
        background-color: #f0f0f0;
    }

    .dropdown-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        background-color: white;
        border: 1px solid #ddd;
        border-radius: 4px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        min-width: 150px;
        margin-top: 0;
        padding: 0;
    }

    .dropdown-menu a {
        display: block;
        padding: 0.75rem 1rem;
        text-decoration: none;
        color: inherit;
        transition: background-color 0.2s;
    }

    .dropdown-menu a:hover,
    .dropdown-menu a.active {
        background-color: #f0f0f0;
    }

    /* VIKTIGT: Håll menyn synlig när musen är på dropdown ELLER på menyn */
    .dropdown:hover .dropdown-menu {
        display: block;
    }

.video-wrapper {
  width: 100%;
  aspect-ratio: 16 / 9;
}

.video-wrapper iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.admin-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    gap: 1rem;
}

.admin-buttons .edit-btn {
    flex-shrink: 0;
}

.admin-buttons .delete-btn {
    margin-left: auto;
    flex-shrink: 0;
}

.compact-list li {
  margin: 0 !important;
  line-height: 1.5 !important;
}

/* Lästid */
.reading-time {
    font-size: 0.9em;
    color: #999;
    font-style: italic;
}

.reading-time-icon {
    font-style: normal;
}

/* Läs mer-knappen */

.read-more-btn {
    color: #3A8DD5;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

.read-more-btn:hover {
    color: #125A9F;
    text-decoration: none;
}

/* AI-sammanfattningen */

.ai-summary-box {
    background: #f5f5f5;
    padding: 10px;
    margin: 10px 0;
    border-left: 3px solid #777777;
    display: none;
    border-radius: 4px;
} 

.ai-summary-box.show {
    display: block;
}

.ai-summary-box strong {
    color: #777777;
}

/* Toggle-länken för AI-sammanfattning */

.toggle-summary {
    color: #666666;
    border-bottom-color: #666666;
}

.toggle-summary:hover {
    color: #333333;
    border-bottom-color: #333333;
}


/* Ikon innan texten - använder ::before */
.toggle-summary::before {
    content: "▸ ";
    margin-right: 4px;
    transition: transform 0.3s;
    display: inline-block;
}

/* Rotera ikonen när sammanfattningen är öppen */
.toggle-summary.open::before {
    content: "▾ ";
    transform: rotate(0deg);
}

/* Arkivet (templates/archive.html) */

.year-group {
    margin-bottom: 1.5rem;
}

.year-header {
    cursor: pointer;
    padding: 10px 15px;
    background: #f9f9f9;
    border-left: 4px solid #3A8DD5;
    margin-bottom: 1rem;
    font-weight: bold;
    color: #555555;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
    transition: background-color 0.2s ease;
}

.year-header:hover {
    background-color: #f0f0f0;
}

.year-header.current {
    background-color: #f0f0f0;
    border-left-color: #125A9F;
}

.year-toggle {
    display: inline-block;
    width: 1.5rem;
    text-align: center;
    transition: transform 0.2s ease;
    font-size: 0.9rem;
}

.year-toggle.open {
    transform: rotate(180deg);
}

.year-content {
    display: none;
    padding-left: 1.5rem;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
}

.year-content.open {
    display: block;
}

.month-header {
    cursor: pointer;
    padding: 10px 15px;
    background: #ffffff;
    border-left: 2px solid #ccc;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #555555;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
    transition: all 0.2s ease;
}

.month-header:hover {
    background-color: #f9f9f9;
    border-left-color: #3A8DD5;
}

.month-header.current {
    background-color: #f9f9f9;
    border-left-color: #3A8DD5;
}

.month-toggle {
    display: inline-block;
    width: 1.5rem;
    text-align: center;
    transition: transform 0.2s ease;
    font-size: 0.9rem;
}

.month-toggle.open {
    transform: rotate(90deg);
}

.month-posts {
    display: none;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    padding-left: 20px;
}

.month-posts.open {
    display: block;
}

.month-count {
    color: #999;
    font-weight: normal;
    font-size: 0.95rem;
}
.comment-count-micro {
    display: none; /* Dölj från början */
}


