/*
  Measslainte Custom Styles
  Copyright (c) 2025 Measslainte
*/

:root {
    --gap: clamp(16px, 2vw, 24px);
    --content-gap: clamp(20px, 3vw, 32px);
    --nav-width: min(1024px, 95vw);
    --main-width: min(900px, 95vw);
    --header-height: 60px;
    --footer-height: 40px;
    --radius: 10px;
    --theme: #f5f7fb;
    --entry: #ffffff;
    --primary: #1f2937;
    --secondary: #6b7280;
    --tertiary: #94a3b8;
    --content: #1f2937;
    --hljs-bg: #f6f7f9;
    --code-bg: #f6f7f9;
    --border: #e6eaf0;
    --font-scale: clamp(1rem, 2vw, 1.2rem);
    --spacing-unit: max(1rem, 2vw);
    --serif-fonts: "Georgia", "Times New Roman", "Times", serif;
    --monospace-fonts:
        "SFMono-Regular", "Menlo", "Monaco", "Consolas", "Liberation Mono",
        "Courier New", monospace;
    --base-font-size: clamp(1.06rem, 0.9rem + 0.5vw, 1.25rem);
    --base-line-height: 1.6;
}
.dark {
    --theme: #000000;
    --entry: #16181c;
    --primary: #e7e9ea;
    --secondary: #8b98a5;
    --tertiary: #2f3336;
    --content: #e7e9ea;
    --hljs-bg: #0b0d0f;
    --code-bg: #0b0d0f;
    --border: #2f3336;
}
.list {
    background: var(--theme) !important;
}
.dark .post-content a,
.dark .entry-content a,
.dark .footer a {
    color: #1d9bf0;
}
@media (hover: hover) and (pointer: fine) {
    .dark .post-content a:hover,
    .dark .entry-content a:hover,
    .dark .footer a:hover {
        color: #8ecbff;
    }
}
body {
    font-family:
        -apple-system,
        BlinkMacSystemFont,
        segoe ui,
        roboto,
        ubuntu,
        cantarell,
        noto sans,
        helvetica neue,
        arial,
        sans-serif,
        apple color emoji,
        segoe ui emoji,
        segoe ui symbol;
    font-size: var(--base-font-size);
    line-height: var(--base-line-height);
    background: var(--theme);
    color: var(--primary);
    margin: 0;
    padding: 0;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
.main {
    position: relative;
    min-height: calc(100vh - var(--header-height) - var(--footer-height));
    max-width: var(--nav-width);
    margin-inline: auto;
    padding-inline: var(--gap);
    padding-block-start: calc(var(--header-height) + var(--gap));
}
.header {
    position: fixed;
    inset-block-start: 0;
    inset-inline: 0;
    z-index: 100;
    background-color: var(--theme);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}
* {
    box-sizing: border-box;
}
nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: var(--nav-width);
    margin-inline: auto;
    padding-inline: var(--gap);
    height: var(--header-height);
    align-items: center;
    position: relative;
}
.nav a {
    color: var(--primary);
    text-decoration: none;
    margin: 0;
}
.logo a {
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    font-size: 20px;
}
.skip-link {
    position: absolute;
    top: 0;
    left: 0;
    background: var(--primary);
    color: #fff;
    padding: 0.5em 1em;
    z-index: 200;
    border-radius: var(--radius);
    font-size: 1rem;
    transform: translateY(-100%);
    transition: transform 0.3s ease-in-out;
}
.skip-link:focus {
    transform: translateY(0);
    outline: 3px solid var(--primary);
    outline-offset: 2px;
}
#hamburger-menu {
    cursor: pointer;
    position: absolute;
    right: var(--gap);
    top: 50%;
    transform: translateY(-50%);
    padding: 5px;
    border-radius: 4px;
}
#hamburger-menu:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}
#hamburger-input {
    position: absolute;
    left: -9999px;
}
.overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(44, 62, 80, 0.4);
    z-index: 99;
}
.overlay.active {
    display: block;
}
.menu.active {
    display: flex !important;
}
.menu {
    list-style-type: none;
    margin: 0;
    padding: 0;
}
.menu li {
    margin-left: 20px;
}
@media screen and (max-width: 1024px) {
    nav {
        flex-direction: column;
        align-items: flex-start;
    }
    #hamburger-menu {
        display: block;
    }
    .menu {
        display: none;
        flex-direction: column;
        width: 100%;
        text-align: center;
        padding: 10px 0;
        background-color: var(--theme);
    }
    .menu.active {
        display: flex;
    }
    .menu li {
        margin: 10px 0;
    }
}
@media screen and (min-width: 1025px) {
    #hamburger-menu {
        display: none;
    }
    .menu {
        display: flex;
    }
}
@media screen and (max-width: 375px) {
    .logo a {
        font-size: 16px;
    }
}
@media screen and (min-width: 376px) and (max-width: 414px) {
    .logo a {
        font-size: 17px;
    }
}
@media screen and (min-width: 415px) and (max-width: 768px) {
    .logo a {
        font-size: 18px;
    }
}
@media screen and (min-width: 769px) and (max-width: 1024px) {
    .logo a {
        font-size: 20px;
    }
}
@media screen and (min-width: 1025px) and (max-width: 1366px) {
    .logo a {
        font-size: 22px;
    }
}
@media screen and (min-width: 1367px) {
    .logo a {
        font-size: 24px;
    }
}
@media screen and (max-width: 1024px) and (min-resolution: 2dppx) {
    #hamburger-menu {
        display: block;
    }
    .menu {
        display: none;
    }
    .menu.active {
        display: flex;
    }
}
@media screen {
    #hamburger-menu,
    .menu {
        visibility: visible;
    }
}
@media (hover: hover) and (pointer: fine) {
    .nav a {
        transition: color 0.3s;
    }
    .nav a:hover {
        color: var(--secondary);
    }
    .post-entry {
        transition:
            transform 0.2s,
            box-shadow 0.3s;
    }
    .post-entry:hover {
        transform: translateY(-3px);
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
    }
    .post-tags a,
    .pagination a,
    .terms-tags a {
        transition:
            background-color 0.3s,
            color 0.3s,
            transform 0.2s;
    }
    .post-tags a:hover,
    .pagination a:hover,
    .terms-tags a:hover {
        background: var(--border);
        transform: translateY(-2px);
    }
}
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--serif-fonts);
    line-height: 1.2;
    margin-block: 1.5em 0.5em;
}
h1 {
    font-size: 2.5rem;
}
h2 {
    font-size: 2.2rem;
}
h3 {
    font-size: 2rem;
}
h4 {
    font-size: 1.8rem;
}
h5 {
    font-size: 1.6rem;
}
h6 {
    font-size: 1.4rem;
}
.page-header h1,
.post-title {
    font-size: 2.5rem;
    margin-block-end: 0.5em;
    text-align: center;
}
.post-description {
    font-size: var(--base-font-size);
    line-height: var(--base-line-height);
    color: var(--secondary);
    margin-block: -0.5em 1em;
    text-align: center;
}
.post-meta {
    color: var(--secondary);
    font-size: 0.95rem;
    text-align: center;
    margin-block-end: 1em;
}
.post-content {
    margin-block-start: 1.5em;
    font-size: var(--base-font-size);
    line-height: var(--base-line-height);
}
.post-content p,
.post-content ul,
.post-content ol {
    margin-block-end: 1.2em;
}
.post-content ul,
.post-content ol {
    padding-inline-start: 1.5em;
}
.post-content li {
    margin-block-end: 0.5em;
}
.post-content blockquote {
    margin-block: 1.5em;
    padding: 0.5em 1em;
    border-inline-start: 4px solid var(--border);
    background-color: var(--code-bg);
    color: var(--secondary);
    font-style: italic;
}
.post-content img {
    max-width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow:
        0 1px 2px rgba(0, 0, 0, 6%),
        0 2px 8px rgba(0, 0, 0, 8%);
}
.post-content code {
    font-family: var(--monospace-fonts);
    background: var(--code-bg);
    padding: 0.2em 0.4em;
    border-radius: 3px;
    font-size: 0.9em;
}
.post-content pre {
    background: var(--hljs-bg);
    padding: 1em;
    border-radius: var(--radius);
    overflow-x: auto;
    font-size: 0.9em;
}
.post-content pre code {
    background: 0 0;
    padding: 0;
}
.posts-grid {
    display: grid;
    gap: var(--gap);
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
@media screen and (max-width: 640px) {
    .posts-grid {
        grid-template-columns: 1fr;
    }
}
@media screen and (min-width: 641px) and (max-width: 1024px) {
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media screen and (min-width: 1025px) {
    .posts-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
.post-entry {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--entry);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow:
        0 1px 2px rgba(0, 0, 0, 6%),
        0 2px 8px rgba(0, 0, 0, 8%);
    overflow: hidden;
}
.post-entry .entry-cover {
    margin: 0;
    padding: 0;
}
.post-entry .entry-cover img {
    border-radius: var(--radius);
    width: 100%;
    height: auto;
    object-fit: cover;
}
.entry-header,
.entry-content,
.entry-footer {
    padding: 1em;
}
.entry-header h2 {
    font-size: clamp(1.1rem, 0.95rem + 0.3vw, 1.2rem);
    margin-block: 0 0.3em;
    text-align: center;
}
.entry-content {
    flex-grow: 1;
    font-size: 0.9rem;
    line-height: 1.4;
}
.entry-footer {
    color: var(--tertiary);
    font-size: 0.75rem;
    text-align: center;
    padding: 0.5em 0.6em;
}
.post-entry .post-date {
    display: block;
    text-align: center;
    color: var(--secondary);
    font-size: 0.95rem;
    margin-bottom: 0.5em;
}
.post-single {
    background: var(--entry);
    border-radius: var(--radius);
    padding: var(--content-gap);
    margin-block-end: 1rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border);
    max-width: var(--main-width);
    margin-inline: auto;
}
.post-single .post-cover {
    margin: 1em auto;
    text-align: center;
    max-width: 768px;
}
.post-single .post-cover img {
    border-radius: var(--radius);
    max-width: 100%;
    height: auto;
    display: block;
    margin-left: auto;
    margin-right: auto;
    object-fit: cover;
    box-shadow:
        0 1px 2px rgba(0, 0, 0, 6%),
        0 2px 8px rgba(0, 0, 0, 8%);
}
.page-header,
.post-header {
    margin: 6px auto var(--content-gap);
}
.post-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-block: 1em;
}
.post-tags a {
    display: inline-block;
    padding: 0.3em 0.6em;
    margin: 0.2em;
    background: var(--entry);
    border-radius: var(--radius);
    color: var(--primary);
    text-decoration: none;
    font-size: 0.9rem;
}
.pagination {
    display: flex;
    justify-content: space-between;
    margin-block-start: var(--gap);
}
.pagination a {
    color: var(--primary);
    background: var(--entry);
    padding: 0.7rem 1.2rem;
    border-radius: var(--radius);
    font-size: 1rem;
    transition:
        background-color 0.3s,
        color 0.3s,
        transform 0.2s;
}
.pagination a:hover {
    background: var(--border);
    color: var(--primary);
    transform: translateY(-2px);
}
.footer {
    max-width: var(--nav-width);
    margin-inline: auto;
    margin-top: 0;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    color: var(--secondary);
    font-size: 0.9rem;
    text-align: center;
    border-block-start: 1px solid var(--border);
}
.hidden {
    display: none !important;
}
.loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid var(--primary, #1f2937);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
    display: block;
}
@keyframes spin {
    0% {
        transform: rotate(0);
    }
    100% {
        transform: rotate(360deg);
    }
}
.error-message {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1rem;
    margin: 1rem 0;
    background-color: #fee;
    border: 1px solid #fcc;
    border-radius: var(--radius, 4px);
    color: #c33;
    font-size: 0.9rem;
    text-align: center;
}
.error-message .retry-button {
    padding: 0.5rem 1rem;
    background-color: #c33;
    color: #fff;
    border: none;
    border-radius: var(--radius, 4px);
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.2s ease;
}
.error-message .retry-button:hover {
    background-color: #a22;
}
.dark .error-message {
    background-color: #4a2a2a;
    border-color: #8b3a3a;
    color: #f87171;
}
.dark .error-message .retry-button {
    background-color: #dc2626;
}
.dark .error-message .retry-button:hover {
    background-color: #b91c1c;
}
.terms-tags {
    text-align: center;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8em;
}
.terms-tags li {
    margin: 0.4em;
}
.terms-tags a {
    display: inline-block;
    padding: 0.5em 1em;
    background: var(--entry);
    border-radius: var(--radius);
    color: var(--primary);
    text-decoration: none;
    font-size: 1rem;
}
.terms-tags sup {
    color: var(--secondary);
    font-size: 0.8em;
    margin-inline-start: 2px;
}
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
@media screen and (max-width: 768px) {
    body {
        font-size: var(--base-font-size);
    }
    .post-content,
    .post-description {
        font-size: var(--base-font-size);
    }
    .nav {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding-inline: var(--gap);
    }
    .nav ul {
        display: flex;
        padding: 0;
        margin: 0;
    }
    .nav li {
        margin-inline: 10px;
    }
    .theme-toggle {
        margin-inline-start: 10px;
    }
    .post-entry {
        padding: 0.5em;
    }
    .entry-header,
    .entry-content,
    .entry-footer {
        padding: 0.5em;
    }
    .main {
        padding-inline: 0.5em;
    }
    .post-single {
        padding: 1em;
        margin-inline: 0;
        max-width: 100%;
    }
    .posts-grid {
        gap: 0.5em;
    }
}
@media screen and (max-width: 480px) {
    .entry-footer {
        flex-direction: column;
        align-items: center;
    }
    .entry-footer > * {
        margin-block: 0.25em;
    }
    .post-entry {
        padding: 0.3em;
        margin-block-end: 0.3em;
    }
    .entry-header,
    .entry-content,
    .entry-footer {
        padding: 0.3em;
    }
    .main {
        padding-inline: 0.3em;
    }
    .post-single {
        padding: 0.5em;
        margin-inline: 0;
        max-width: 100%;
    }
    .posts-grid {
        gap: 0.3em;
    }
    .post-content {
        padding: 0.3em;
    }
}
@media screen and (max-width: 360px) {
    .main {
        padding-inline: 0.2em;
    }
    .post-entry {
        padding: 0.2em;
    }
    .entry-header,
    .entry-content,
    .entry-footer {
        padding: 0.2em;
    }
    .post-single {
        padding: 0.3em;
    }
    .post-content,
    .post-description {
        font-size: var(--base-font-size);
    }
    h1,
    .page-header h1,
    .post-title {
        font-size: 2rem;
    }
    .pagination a {
        padding: 0.5rem 0.8rem;
        font-size: 0.9rem;
    }
}
@media (display-mode: standalone) {
    body {
        padding-block-start: env(safe-area-inset-top);
        padding-block-end: env(safe-area-inset-bottom);
        padding-inline-start: env(safe-area-inset-left);
        padding-inline-end: env(safe-area-inset-right);
    }
    .header {
        padding-block-start: env(safe-area-inset-top);
    }
}
@media print {
    .header,
    .footer,
    .pagination {
        display: none;
    }
    body {
        font-size: 12pt;
    }
    .main {
        max-width: 100%;
        padding: 0;
    }
}
:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}
:is(.post-tags, .pagination, .terms-tags) a:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}
@media (prefers-color-scheme: dark) {
    :focus-visible {
        outline-color: var(--secondary);
    }
}
.post-navigation-container {
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: var(--main-width);
    margin-inline: auto;
    margin-top: 1rem;
    margin-bottom: 1rem;
    gap: var(--gap);
}
.post-nav-item {
    flex-basis: calc(50% - (var(--gap) / 2));
    max-width: calc(50% - (var(--gap) / 2));
    background: var(--entry);
    border-radius: var(--radius);
    box-shadow:
        0 1px 2px rgba(0, 0, 0, 6%),
        0 2px 8px rgba(0, 0, 0, 8%);
    transition:
        transform 0.2s,
        box-shadow 0.3s;
    overflow: hidden;
}
.post-nav-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}
.post-nav-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: var(--primary);
}
.post-nav-cover {
    width: 100%;
    padding-top: 100%;
    position: relative;
    overflow: hidden;
}
.post-nav-cover img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius) var(--radius) 0 0;
}
.post-nav-info {
    padding: calc(var(--gap) / 2);
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: center;
}
.post-nav-label {
    font-size: 0.8rem;
    color: var(--secondary);
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.post-nav-title {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.3;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
@media screen and (max-width: 768px) {
    .post-navigation-container {
        flex-direction: column;
    }
    .post-nav-item {
        flex-basis: 100%;
        max-width: 100%;
        margin-bottom: calc(var(--gap) / 2);
    }
}
img.lazyload {
    opacity: 0;
    transition: opacity 0.3s;
}
img.lazyloaded {
    opacity: 1;
}
.takeaways-box {
    background-color: #f0f8ff;
    border: 1px solid #add8e6;
    border-radius: var(--radius, 8px);
    padding: clamp(15px, 2vw, 20px);
    margin-block: 1.5em 1.5em;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 5%);
}
.takeaways-box h2 {
    margin-top: 0;
    margin-bottom: 0.75em;
    font-size: 1.4rem;
    color: #005a87;
    border-bottom: 1px solid var(--border, #e0e6ed);
    padding-bottom: 0.4em;
}
.takeaways-box ul {
    padding-left: 20px;
    margin-bottom: 0;
    list-style-type: "✅ ";
}
.takeaways-box ul li {
    margin-bottom: 0.6em;
    line-height: var(--base-line-height, 1.6);
}
.dark .takeaways-box {
    background-color: #2a3b4d;
    border-color: #4a5568;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
.dark .takeaways-box h2 {
    color: #a0cff7;
    border-bottom-color: #4a5568;
}
.dark .takeaways-box ul {
    list-style-type: "✅ ";
}
.disclaimer-box {
    border: 1px solid #f0ad4e;
    background-color: #fcf8e3;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: var(--radius, 4px);
    color: var(--content);
}
.disclaimer-box strong {
    color: #c09853;
}
.dark .disclaimer-box {
    background-color: #4a412a;
    border-color: #a88c4f;
    color: var(--content);
}
.dark .disclaimer-box strong {
    color: #f0ad4e;
}
.dark .header {
    background-color: var(--theme);
    border-bottom: 1px solid var(--tertiary);
    box-shadow: none;
}
.dark .footer {
    border-top: 1px solid var(--tertiary);
}
.dark .post-entry {
    border-color: var(--tertiary);
    box-shadow: none;
}
.dark .pagination a {
    background: var(--entry);
    border: 1px solid var(--tertiary);
}
.dark .pagination a:hover {
    background: var(--tertiary);
}
.dark :focus-visible {
    outline-color: #1d9bf0;
}
.dark ::selection {
    background-color: rgba(29, 155, 240, 0.35);
    color: #e7e9ea;
}
::selection {
    background-color: rgba(17, 24, 39, 0.15);
}
.dark .post-content a,
.dark .entry-content a,
.dark .footer a,
.dark a {
    color: #1d9bf0;
}
.dark .post-content a,
.dark .toc a:hover {
    border-bottom: none;
}
@media (hover: hover) and (pointer: fine) {
    .dark a:hover {
        text-decoration: underline;
        color: #8ecbff;
    }
}
.dark a:visited {
    color: #1d9bf0;
}
.dark input,
.dark textarea,
.dark select {
    background-color: #16181c;
    color: #e7e9ea;
    border: 1px solid #2f3336;
}
.dark input:focus,
.dark textarea:focus,
.dark select:focus {
    outline: 2px solid #1d9bf0;
    outline-offset: 0;
    border-color: #1d9bf0;
}
.dark ::placeholder {
    color: #71767b;
    opacity: 1;
}
.dark button,
.dark .btn,
.dark input[type="button"],
.dark input[type="submit"],
.dark .pagination a.primary {
    background-color: #1d9bf0;
    color: #0f1419;
    border: 1px solid #1d9bf0;
}
@media (hover: hover) and (pointer: fine) {
    .dark button:hover,
    .dark .btn:hover,
    .dark input[type="button"]:hover,
    .dark input[type="submit"]:hover,
    .dark .pagination a.primary:hover {
        background-color: #1a8cd8;
        border-color: #1a8cd8;
    }
}
.dark .overlay {
    background: rgba(0, 0, 0, 0.65);
}
#progressBar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--scrollAmount, 0%);
    height: 3px;
    background-color: #1d9bf0;
    z-index: 1000;
    transition: width 0.2s ease;
}
.dark #progressBar {
    background-color: #1d9bf0;
}
.dark table,
.dark th,
.dark td,
.dark hr,
.dark .post-content table th,
.dark .post-content table td {
    border-color: #2f3336;
}
.dark .post-content pre {
    background: #0b0d0f;
}
.dark .post-content code {
    background: #0b0d0f;
    color: #e7e9ea;
}
.dark .post-tags a,
.dark .terms-tags a {
    background: #16181c;
    border: 1px solid #2f3336;
    color: #e7e9ea;
}
.dark .post-meta,
.dark .breadcrumbs,
.dark .entry-footer,
.dark .post-entry .post-date {
    color: #8b98a5;
}
.dark .nav a,
.dark .logo a {
    color: #e7e9ea;
}
.post-entry {
    border: none;
    padding: 0;
    margin: 0;
    background: 0 0;
    box-shadow: none;
}
.entry-header {
    margin: 0;
    padding: 0;
    background: 0 0;
}
.post-title {
    font-family: inherit;
    margin: 0;
    padding: 0;
    font-weight: 400;
    text-transform: none;
}
.post-meta {
    font-family: inherit;
    margin: 0;
    padding: 0;
    font-style: normal;
    text-transform: none;
}
.post-date {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
}
.entry-link {
    background: 0 0;
    border: none;
}
.posts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}
@media (min-width: 641px) and (max-width: 1024px) {
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (min-width: 1025px) {
    .posts-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
.article-card {
    display: block;
    width: 100%;
}
.article-header {
    display: block;
}
.article-title {
    display: block;
    font-size: 1.2em;
}
.article-meta {
    display: block;
    font-size: 0.9em;
}
.article-date {
    display: block;
    font-size: 0.8em;
}
.content-item {
    display: block;
}
.content-header {
    display: block;
}
.content-title {
    display: block;
}
.content-meta {
    display: block;
}
.content-link {
    display: block;
}

/* Shortcode / mermaid visual helpers */
.shortcode-notice {
    border-radius: 8px;
    padding: 0.9em 1em;
    margin: 1em 0;
    border: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(0,0,0,0));
}
.notice-info { border-left: 4px solid #1d9bf0; }
.notice-warning { border-left: 4px solid #f59e0b; background: rgba(255,245,230,0.6); }
.notice-evidence { border-left: 4px solid #10b981; }
.notice-title { display: block; font-weight: 700; margin-bottom: 0.3em; }
.notice-body { color: var(--content); }

.evidence-badge {
    display: inline-block;
    padding: 0.15em 0.45em;
    border-radius: 999px;
    font-size: 0.85em;
    font-weight: 600;
    color: white;
    margin-left: 0.4em;
}
.evidence-clinical { background: #059669; }
.evidence-research { background: #2563eb; }
.evidence-traditional { background: #6b7280; }

.shortcode-table { overflow-x: auto; margin: 1em 0; }
.shortcode-table table { width: 100%; border-collapse: collapse; }
.shortcode-table th, .shortcode-table td { padding: 0.6em 0.8em; border: 1px solid var(--border); text-align: left; }
.shortcode-table thead th { background: var(--hljs-bg); font-weight: 700; }

.mermaid { max-width: 100%; overflow-x: auto; margin: 1em 0; }
.mermaid svg { width: 100% !important; height: auto !important; }
