/* Posts */
.post-heading h1 {
    color: #333 !important;
    background-color: rgba(255, 255, 255, 0.8) !important;
}
.post-preview > a {
    display: block;
}
.post-heading .meta {
    color: #fff !important;
    background-color: #000 !important;
    opacity: 0.6 !important;
}
.post-heading .tags a {
    color: #333 !important;
    font-style: italic !important;
    font-weight: bold !important;
    border: 2px solid rgba(0, 0, 0, .8);
    background-color: rgba(255, 255, 255, 0.8) !important;
}

.post-content-preview {
    color: #888 !important;
}


/* Walkmeter button */
.walkmeter-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background-color: #198754; /* green */
    color: #fff !important;
    padding: 0.6rem 0.85rem; /* slightly larger */
    border-radius: 4px;
    text-decoration: none !important;
    font-weight: 600;
    line-height: 1.2;
    font-size: 1.75rem; /* larger text */
}
.walkmeter-btn:hover,
.walkmeter-btn:focus {
    background-color: #157347; /* darker green */
    color: #fff !important;
}
.walkmeter-btn__icon svg {
    width: 1.1em;
    height: 1.1em;
    display: inline-block;
}


/* Excerpt with 3-line clamp for balance */
.post-content-preview {
    display: -webkit-box;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
/* Screen-reader only utility */
.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}
/* Excerpt hero image card */
.post-card {
    position: relative;
    margin: 0.5rem 0 0.5rem;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: transparent;
    contain: paint;
    line-height: 0; /* avoid baseline gaps */
}
.post-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
    transition: transform .3s ease;
    backface-visibility: hidden;
    transform: translateZ(0) scale(1.04); /* slight pre-scale to cover rounded corners fully */
    transform-origin: center center;
    z-index: 0;
}
.post-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.45), rgba(0,0,0,0) 60%);
    pointer-events: none;
    z-index: 1;
}
.post-card__caption {
    position: absolute;
    left: 10px;
    bottom: 10px;
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: .02em;
    text-shadow: 0 1px 2px rgba(0,0,0,.5);
    z-index: 2;
}
.post-card:hover img {
    transform: scale(1.08);
}


/* Notices / Callouts */
.notices {
    position: relative;
    margin: 1.25rem 0;
    padding: 1rem 1rem 1rem 1rem;
    border-radius: 6px;
    border: 1px solid rgba(0,0,0,0.08);
    background: #f8f9fa;
    color: #333;
}
.notices > :first-child {
    margin-top: 0;
}
.notices > :last-child {
    margin-bottom: 0;
}
.notices a {
    color: inherit;
    text-decoration: underline;
}

/* Header label */
.notices::before {
    content: "";
    position: absolute;
    top: -10px;
    left: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: .02em;
    padding: 2px 6px;
    border-radius: 4px;
    color: #fff;
    background: #6c757d;
}

/* Tip (success) */
.notices.tip {
    background: #E6F9E6;
    border-left: 6px solid #198754;
    border-color: rgba(25, 135, 84, 0.25);
}
.notices.tip::before {
    content: "Tip";
    background: #198754;
}

/* Warning (danger) */
.notices.warning {
    background: #FAE2E2;
    border-left: 6px solid #d9534f;
    border-color: rgba(217, 83, 79, 0.25);
}
.notices.warning::before {
    content: "Warning";
    background: #d9534f;
}
