/*
 Theme Name:   LaRiojaMeteo
 Theme URI:    https://lariojameteo.es
 Description:  Tema a medida para lariojameteo.es - El Tiempo en La Rioja
 Author:       LaRiojaMeteo
 Author URI:   https://lariojameteo.es
 Version:      4.8.2
 Text Domain:  lariojameteo
 License:      GPL-2.0-or-later
*/

/* =============================================================================
   LOCAL FONTS (eliminates Google Fonts external request)
   ============================================================================= */
@font-face {
    font-family: 'PT Sans';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('./assets/fonts/pt-sans-regular.ttf') format('truetype');
}
@font-face {
    font-family: 'PT Sans';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('./assets/fonts/pt-sans-bold.ttf') format('truetype');
}
@font-face {
    font-family: 'PT Sans';
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: url('./assets/fonts/pt-sans-italic.ttf') format('truetype');
}
@font-face {
    font-family: 'PT Sans';
    font-style: italic;
    font-weight: 700;
    font-display: swap;
    src: url('./assets/fonts/pt-sans-bold-italic.ttf') format('truetype');
}
@font-face {
    font-family: 'Dancing Script';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('./assets/fonts/dancing-script.ttf') format('truetype');
}

/* =============================================================================
   DESIGN TOKENS
   ============================================================================= */
:root {
    --lrm-primary: #2196f3;
    --lrm-primary-dark: #1976d2;
    --lrm-primary-light: #e3f2fd;
    --lrm-primary-rgb: 33, 150, 243;
    --lrm-accent: #ff9800;
    --lrm-accent-dark: #f57c00;
    --lrm-accent-light: #fff3e0;
    --lrm-accent-rgb: 255, 152, 0;
    --lrm-text: #1a1a1a;
    --lrm-text-secondary: #4a4a4a;
    --lrm-muted: #6b7280;
    --lrm-heading: #111111;
    --lrm-bg: #f8fafc;
    --lrm-bg-alt: #f1f5f9;
    --lrm-white: #ffffff;
    --lrm-border: #e5e7eb;
    --lrm-border-light: #f3f4f6;
    --lrm-shadow-xs: 0 1px 2px rgba(0,0,0,0.04);
    --lrm-shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
    --lrm-shadow-md: 0 4px 6px -1px rgba(0,0,0,0.08), 0 2px 4px -2px rgba(0,0,0,0.05);
    --lrm-shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.04);
    --lrm-shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.08), 0 8px 10px -6px rgba(0,0,0,0.04);
    --lrm-radius: 12px;
    --lrm-radius-sm: 8px;
    --lrm-radius-xs: 5px;
    --lrm-transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --lrm-font: 'PT Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --lrm-container: 1280px;
    --lrm-container-narrow: 860px;
    --lrm-container-single: 1140px;
    --lrm-footer-bg: #0f172a;
    --lrm-footer-bg-alt: #1e293b;
    --lrm-footer-text: #94a3b8;
    --lrm-footer-heading: #cbd5e1;
    --lrm-footer-muted: #475569;
    --lrm-footer-border: #334155;
}

/* =============================================================================
   RESET & BASE
   ============================================================================= */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: var(--lrm-font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--lrm-text);
    background: var(--lrm-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--lrm-primary);
    text-decoration: none;
    transition: color var(--lrm-transition);
}

a:hover {
    color: var(--lrm-primary-dark);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--lrm-font);
    color: var(--lrm-heading);
    letter-spacing: -0.02em;
    line-height: 1.3;
    margin-top: 0;
}

::selection {
    background: var(--lrm-primary-light);
    color: var(--lrm-primary-dark);
}

:focus-visible {
    outline: 2px solid var(--lrm-primary);
    outline-offset: 2px;
}

.lrm-card__link:focus-visible,
.lrm-btn:focus-visible,
.lrm-menu > li > a:focus-visible,
.lrm-footer-menu a:focus-visible,
.lrm-social-links a:focus-visible,
.lrm-share__btn:focus-visible {
    outline: 2px solid var(--lrm-primary);
    outline-offset: 2px;
    border-radius: var(--lrm-radius-xs);
}

.lrm-hero :focus-visible {
    outline-color: var(--lrm-white);
}

html {
    scroll-behavior: smooth;
}

/* =============================================================================
   LAYOUT
   ============================================================================= */
.lrm-container {
    max-width: var(--lrm-container);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.lrm-container--narrow {
    max-width: var(--lrm-container-narrow);
}

.lrm-container--single {
    max-width: var(--lrm-container-single);
}

.lrm-main {
    padding: 2rem 0 3rem;
    min-height: calc(100vh - 200px);
}

/* =============================================================================
   HEADER
   ============================================================================= */
.lrm-header {
    background: var(--lrm-white);
    border-bottom: 1px solid var(--lrm-border);
    border-top: 3px solid var(--lrm-accent);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.lrm-header.is-sticky {
    box-shadow: var(--lrm-shadow-md);
}


.lrm-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
    gap: 1rem;
}

.lrm-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    color: var(--lrm-heading);
    flex-shrink: 0;
}

.lrm-brand .custom-logo-link {
    display: flex;
    align-items: center;
}

.lrm-brand .custom-logo-link img,
.lrm-brand .custom-logo {
    max-height: 34px;
    width: auto;
}

.lrm-site-title {
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--lrm-heading);
    white-space: nowrap;
}

/* =============================================================================
   NAVIGATION - DESKTOP
   ============================================================================= */
.lrm-nav {
    display: flex;
    align-items: center;
}

.lrm-menu {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0;
}

.lrm-menu li {
    position: relative;
}

.lrm-menu > li > a {
    display: block;
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--lrm-text-secondary);
    text-decoration: none;
    border-radius: var(--lrm-radius-xs);
    transition: all var(--lrm-transition);
    white-space: nowrap;
    line-height: 1.4;
}

.lrm-menu > li > a:hover,
.lrm-menu > li.current-menu-item > a,
.lrm-menu > li.current-menu-ancestor > a {
    color: var(--lrm-primary);
    background: var(--lrm-primary-light);
}

/* Dropdown */
.lrm-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--lrm-white);
    border: 1px solid var(--lrm-border);
    border-radius: var(--lrm-radius-sm);
    box-shadow: var(--lrm-shadow-lg);
    padding: 0.4rem;
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.2s ease;
    list-style: none;
    z-index: 100;
}

.lrm-menu li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lrm-menu .sub-menu li a {
    display: block;
    padding: 0.5rem 0.75rem;
    font-size: 0.82rem;
    color: var(--lrm-text-secondary);
    border-radius: var(--lrm-radius-xs);
    text-decoration: none;
    transition: all var(--lrm-transition);
}

.lrm-menu .sub-menu li a:hover {
    background: var(--lrm-primary-light);
    color: var(--lrm-primary);
}

/* Mobile-only elements (hidden on desktop via ID specificity) */
.lrm-submenu-toggle {
    display: none;
}

#lrm-nav > .lrm-nav__header,
#lrm-nav > .lrm-nav__search {
    display: none;
}


/* =============================================================================
   HAMBURGER MENU BUTTON
   ============================================================================= */
.lrm-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: var(--lrm-primary);
    border: none;
    border-radius: var(--lrm-radius-sm);
    cursor: pointer;
    padding: 0;
    gap: 5px;
    flex-shrink: 0;
}

.lrm-menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--lrm-white);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.lrm-menu-toggle.is-active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.lrm-menu-toggle.is-active span:nth-child(2) {
    opacity: 0;
}

.lrm-menu-toggle.is-active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* =============================================================================
   MOBILE OVERLAY
   ============================================================================= */
.lrm-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    z-index: 998;
    transition: all 0.3s ease;
    backdrop-filter: blur(2px);
}

.lrm-overlay.is-visible {
    opacity: 1;
    visibility: visible;
}

/* =============================================================================
   HERO SECTION
   ============================================================================= */
.lrm-hero {
    background-color: #0d47a1;
    color: var(--lrm-white);
    border-radius: var(--lrm-radius);
    padding: 2.5rem 2.5rem;
    min-height: 300px;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-start;
    animation: heroFadeIn 0.8s ease-out;
}

@keyframes heroFadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

.lrm-hero::before {
    content: '';
    position: absolute;
    inset: -4px;
    background: url('images/LaRiojaMeteo4.png') 95% center / cover no-repeat;
    filter: blur(2px) brightness(0.45);
    z-index: 0;
}

.lrm-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 140px 55px at 18% 25%, rgba(255,255,255,0.06) 0%, transparent 100%),
        radial-gradient(ellipse 200px 70px at 65% 18%, rgba(255,255,255,0.05) 0%, transparent 100%),
        radial-gradient(ellipse 90px 40px at 85% 38%, rgba(255,255,255,0.04) 0%, transparent 100%);
    animation: lrmCloudsFloat 22s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes lrmCloudsFloat {
    0%, 100% { transform: translateX(0); }
    50%       { transform: translateX(2.5%); }
}

.lrm-hero-content {
    position: relative;
    z-index: 1;
}

.lrm-hero h1 {
    font-size: 2rem;
    font-weight: 800;
    margin: 0 0 0.5rem;
    letter-spacing: -0.03em;
    color: var(--lrm-white);
    position: relative;
    display: inline-block;
    padding-bottom: 0.5rem;
}

.lrm-hero h1::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 3px;
    background: var(--lrm-accent);
    border-radius: 2px;
}

.lrm-hero p {
    margin: 0;
    max-width: 600px;
}

.lrm-hero-tagline {
    font-size: 1.05rem;
    opacity: 0.88;
    line-height: 1.5;
}

.lrm-hero-authors {
    display: inline-flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 1rem;
    font-size: 0.78rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.85;
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 0.7rem;
}

.lrm-hero-authors .lrm-signature {
    font-size: 1.8rem;
    color: #fff;
    text-transform: none;
    letter-spacing: normal;
    opacity: 1;
}

.lrm-hero-sep {
    color: var(--lrm-accent);
    font-size: 1.1em;
}

.lrm-hero-since {
    font-family: 'Dancing Script', cursive;
    text-transform: none;
    letter-spacing: normal;
    opacity: 0.7;
    font-weight: 400;
    font-size: 1rem;
}

.lrm-hero-stats {
    display: flex;
    gap: 1rem;
    margin-top: 1.25rem;
    flex-wrap: wrap;
}

.lrm-hero-stats span {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.82rem;
    opacity: 0.95;
    background: rgba(255,152,0,0.2);
    border: 1px solid rgba(255,152,0,0.3);
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    backdrop-filter: blur(4px);
}

.lrm-hero-stats strong {
    font-weight: 700;
}

/* =============================================================================
   ARCHIVE HEADER (categories, tags, search)
   ============================================================================= */
.lrm-archive-header {
    background: var(--lrm-white);
    border: 1px solid var(--lrm-border);
    border-radius: var(--lrm-radius);
    padding: 1.5rem 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--lrm-shadow-xs);
}

.lrm-archive-header h1 {
    font-size: 1.4rem;
    font-weight: 800;
    margin: 0 0 0.25rem;
    position: relative;
    display: inline-block;
    padding-bottom: 0.35rem;
}

.lrm-archive-header h1::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--lrm-primary), var(--lrm-primary-light));
    border-radius: 2px;
}

.lrm-archive-header p {
    color: var(--lrm-muted);
    font-size: 0.9rem;
    margin: 0;
}

/* =============================================================================
   POST GRID - 2 columns + featured first post
   ============================================================================= */
.lrm-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

/* Magazine masonry: alternating 2fr+1fr / 1fr+2fr rows on desktop */
.lrm-grid--2col {
    grid-template-columns: repeat(3, 1fr);
    align-items: stretch;
}

.lrm-grid--2col .lrm-card:nth-child(4n+1) {
    grid-column: span 2;
}

.lrm-grid--2col .lrm-card:nth-child(4n+2) {
    grid-column: span 1;
}

.lrm-grid--2col .lrm-card:nth-child(4n+3) {
    grid-column: span 1;
}

.lrm-grid--2col .lrm-card:nth-child(4n+4) {
    grid-column: span 2;
}

/* Narrow cards (span 1): stretch image to fill height */
.lrm-grid--2col .lrm-card:nth-child(4n+2),
.lrm-grid--2col .lrm-card:nth-child(4n+3) {
    display: flex;
    flex-direction: column;
}

.lrm-grid--2col .lrm-card:nth-child(4n+2) .lrm-card__link,
.lrm-grid--2col .lrm-card:nth-child(4n+3) .lrm-card__link {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.lrm-grid--2col .lrm-card:nth-child(4n+2) .lrm-card__image,
.lrm-grid--2col .lrm-card:nth-child(4n+3) .lrm-card__image {
    flex: 1;
    aspect-ratio: unset;
    min-height: 180px;
}

.lrm-grid--2col .lrm-card:nth-child(4n+2) .lrm-card__image img,
.lrm-grid--2col .lrm-card:nth-child(4n+3) .lrm-card__image img {
    aspect-ratio: unset;
    position: absolute;
    inset: 0;
    height: 100%;
}

.lrm-grid--2col .lrm-card:nth-child(4n+2) .lrm-card__body,
.lrm-grid--2col .lrm-card:nth-child(4n+3) .lrm-card__body {
    flex-shrink: 0;
}

/* =============================================================================
   POST CARD
   ============================================================================= */
.lrm-card {
    background: var(--lrm-white);
    border-radius: var(--lrm-radius);
    border: 1px solid var(--lrm-border);
    overflow: hidden;
    transition: all var(--lrm-transition);
    box-shadow: var(--lrm-shadow-xs);
}

.lrm-card:hover {
    box-shadow: var(--lrm-shadow-lg);
    border-color: rgba(var(--lrm-primary-rgb), 0.3);
    transform: translateY(-3px);
}

.lrm-card__link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.lrm-card__image {
    position: relative;
    overflow: hidden;
    background: var(--lrm-bg-alt);
    aspect-ratio: 600 / 340;
}

.lrm-card__image img {
    width: 100%;
    height: 100%;
    aspect-ratio: 600 / 340;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.lrm-card:hover .lrm-card__image img {
    transform: scale(1.04);
}

.lrm-card__placeholder {
    aspect-ratio: 600 / 340;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--lrm-primary-light), var(--lrm-bg-alt));
}

.lrm-card__placeholder svg {
    width: 48px;
    height: 48px;
    color: var(--lrm-muted);
    opacity: 0.4;
}

.lrm-card__body {
    padding: 1rem 1.25rem 1.15rem;
}

.lrm-card__cats {
    display: flex;
    gap: 0.4rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

.lrm-card__image .lrm-card__cats {
    position: absolute;
    bottom: 0.65rem;
    left: 0.65rem;
    z-index: 2;
    margin: 0;
}

.lrm-card__image .lrm-badge {
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(4px);
    box-shadow: 0 1px 4px rgba(0,0,0,0.12);
}

.lrm-card__title {
    font-size: 1.1rem;
    font-weight: 800;
    line-height: 1.35;
    letter-spacing: -0.01em;
    margin: 0 0 0.5rem;
    color: var(--lrm-heading);
    transition: color var(--lrm-transition);
}

.lrm-card:hover .lrm-card__title {
    color: var(--lrm-primary);
}

.lrm-card__excerpt {
    font-size: 0.875rem;
    color: var(--lrm-text-secondary);
    line-height: 1.55;
    margin: 0 0 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.lrm-card__meta {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    color: var(--lrm-muted);
}

.lrm-card__meta time {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--lrm-muted);
}

.lrm-card__meta time svg {
    opacity: 0.5;
    flex-shrink: 0;
}

.lrm-dot {
    color: var(--lrm-border);
}

/* =============================================================================
   FEATURED CARD (first post on homepage)
   ============================================================================= */
article.lrm-card--featured {
    grid-column: 1 / -1;
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    min-height: 340px;
    border: none;
    border-radius: var(--lrm-radius);
    overflow: hidden;
    box-shadow: var(--lrm-shadow-md);
    background: var(--lrm-white);
}

article.lrm-card--featured:hover {
    box-shadow: var(--lrm-shadow-lg);
    transform: translateY(-3px);
}

article.lrm-card--featured > .lrm-card__link {
    display: contents !important;
    text-decoration: none;
    color: inherit;
}

article.lrm-card--featured .lrm-card__image {
    position: relative;
    overflow: hidden;
    background: var(--lrm-bg-alt);
    min-height: 340px;
}

article.lrm-card--featured .lrm-card__image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.06) 0%, transparent 40%);
    z-index: 1;
    pointer-events: none;
}

article.lrm-card--featured .lrm-card__image .lrm-card__cats {
    top: 0.75rem;
    left: 0.75rem;
    bottom: auto;
}

article.lrm-card--featured .lrm-card__image img {
    display: block !important;
    position: absolute !important;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

article.lrm-card--featured .lrm-card__placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

article.lrm-card--featured .lrm-card__body {
    padding: 1.75rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--lrm-white);
}

article.lrm-card--featured .lrm-card__cats {
    margin-bottom: 0.65rem;
}

article.lrm-card--featured .lrm-card__title {
    font-size: 1.65rem;
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: -0.03em;
    margin-bottom: 0.65rem;
}

article.lrm-card--featured .lrm-card__excerpt {
    font-size: 0.92rem;
    margin-bottom: 0.85rem;
    line-height: 1.65;
    color: var(--lrm-text-secondary);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    overflow: hidden;
}

article.lrm-card--featured .lrm-card__meta {
    font-size: 0.82rem;
    padding-top: 0.65rem;
    border-top: 1px solid var(--lrm-border-light);
}

/* =============================================================================
   CATEGORY BADGES
   ============================================================================= */
.lrm-badge {
    display: inline-block;
    padding: 0.15em 0.6em;
    border-radius: 4px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    text-decoration: none;
    background: var(--lrm-primary-light);
    color: var(--lrm-primary);
    transition: all var(--lrm-transition);
    line-height: 1.6;
}

.lrm-badge:hover {
    background: var(--lrm-primary);
    color: var(--lrm-white);
}

.lrm-badge-sm {
    font-size: 0.6rem;
    padding: 0.1em 0.5em;
}

/* Category-specific colors with icons */
.lrm-badge[data-cat]::before { margin-right: 0.3em; font-style: normal; font-size: 1.15em; vertical-align: -0.05em; }
.lrm-badge[data-cat="prediccion-semanal"] { background: #dbeafe; color: #1d4ed8; }
.lrm-badge[data-cat="prediccion-semanal"]::before { content: '\2601'; }
.lrm-badge[data-cat="prediccion-semanal"]:hover { background: #1d4ed8; color: #fff; }
.lrm-badge[data-cat="prediccion-fin-desemana"] { background: #fef3c7; color: #b45309; }
.lrm-badge[data-cat="prediccion-fin-desemana"]::before { content: '\2600'; }
.lrm-badge[data-cat="prediccion-fin-desemana"]:hover { background: #b45309; color: #fff; }
.lrm-badge[data-cat="prediccion-especial"] { background: #fee2e2; color: #dc2626; }
.lrm-badge[data-cat="prediccion-especial"]::before { content: '\26A0'; }
.lrm-badge[data-cat="prediccion-especial"]:hover { background: #dc2626; color: #fff; }
.lrm-badge[data-cat="prediccion-estacional"] { background: #fce7f3; color: #be185d; }
.lrm-badge[data-cat="prediccion-estacional"]::before { content: '\1F321'; }
.lrm-badge[data-cat="prediccion-estacional"]:hover { background: #be185d; color: #fff; }
.lrm-badge[data-cat="prediccion-mensual"] { background: #fef9c3; color: #a16207; }
.lrm-badge[data-cat="prediccion-mensual"]::before { content: '\1F4C5'; }
.lrm-badge[data-cat="prediccion-mensual"]:hover { background: #a16207; color: #fff; }
.lrm-badge[data-cat="nevadas"] { background: #e0e7ff; color: #4338ca; }
.lrm-badge[data-cat="nevadas"]::before { content: '\2744'; }
.lrm-badge[data-cat="nevadas"]:hover { background: #4338ca; color: #fff; }
.lrm-badge[data-cat="meteoanalisis"] { background: #d1fae5; color: #065f46; }
.lrm-badge[data-cat="meteoanalisis"]::before { content: '\1F4CA'; }
.lrm-badge[data-cat="meteoanalisis"]:hover { background: #065f46; color: #fff; }
.lrm-badge[data-cat="resumen-episodio"] { background: #ccfbf1; color: #0f766e; }
.lrm-badge[data-cat="resumen-episodio"]::before { content: '\1F4CB'; }
.lrm-badge[data-cat="resumen-episodio"]:hover { background: #0f766e; color: #fff; }
.lrm-badge[data-cat="noticias"] { background: #fce7f3; color: #9d174d; }
.lrm-badge[data-cat="noticias"]::before { content: '\1F4F0'; }
.lrm-badge[data-cat="noticias"]:hover { background: #9d174d; color: #fff; }
.lrm-badge[data-cat="embalses"] { background: #cffafe; color: #0e7490; }
.lrm-badge[data-cat="embalses"]::before { content: '\1F4A7'; }
.lrm-badge[data-cat="embalses"]:hover { background: #0e7490; color: #fff; }
.lrm-badge[data-cat="pluviometria"] { background: #dbeafe; color: #1e40af; }
.lrm-badge[data-cat="pluviometria"]::before { content: '\1F327'; }
.lrm-badge[data-cat="pluviometria"]:hover { background: #1e40af; color: #fff; }
.lrm-badge[data-cat="astronomia"] { background: #ede9fe; color: #6d28d9; }
.lrm-badge[data-cat="astronomia"]::before { content: '\2B50'; }
.lrm-badge[data-cat="astronomia"]:hover { background: #6d28d9; color: #fff; }
.lrm-badge[data-cat="larioja"] { background: #dcfce7; color: #166534; }
.lrm-badge[data-cat="larioja"]::before { content: '\1F3D4'; }
.lrm-badge[data-cat="larioja"]:hover { background: #166534; color: #fff; }
.lrm-badge[data-cat="plazo-medio"] { background: #f3e8ff; color: #7e22ce; }
.lrm-badge[data-cat="plazo-medio"]::before { content: '\1F52E'; }
.lrm-badge[data-cat="plazo-medio"]:hover { background: #7e22ce; color: #fff; }
.lrm-badge[data-cat="doca-rioja"] { background: #fce7f3; color: #831843; }
.lrm-badge[data-cat="doca-rioja"]::before { content: '\1F347'; }
.lrm-badge[data-cat="doca-rioja"]:hover { background: #831843; color: #fff; }
.lrm-badge[data-cat="meteo-guias"] { background: #f0fdf4; color: #15803d; }
.lrm-badge[data-cat="meteo-guias"]::before { content: '\1F4D6'; }
.lrm-badge[data-cat="meteo-guias"]:hover { background: #15803d; color: #fff; }
.lrm-badge[data-cat="clima-historico"] { background: #faf5ff; color: #7e22ce; }
.lrm-badge[data-cat="clima-historico"]::before { content: '\1F4DC'; }
.lrm-badge[data-cat="clima-historico"]:hover { background: #7e22ce; color: #fff; }
.lrm-badge[data-cat="nubesyfenomenos"] { background: #f0f9ff; color: #0369a1; }
.lrm-badge[data-cat="nubesyfenomenos"]::before { content: '\1F32A'; }
.lrm-badge[data-cat="nubesyfenomenos"]:hover { background: #0369a1; color: #fff; }
.lrm-badge[data-cat="teleconexiones"] { background: #ecfdf5; color: #047857; }
.lrm-badge[data-cat="teleconexiones"]::before { content: '\1F310'; }
.lrm-badge[data-cat="teleconexiones"]:hover { background: #047857; color: #fff; }
.lrm-badge[data-cat="el-tiempo-en-logrono"] { background: #fef3c7; color: #92400e; }
.lrm-badge[data-cat="el-tiempo-en-logrono"]::before { content: '\1F3D9'; }
.lrm-badge[data-cat="el-tiempo-en-logrono"]:hover { background: #92400e; color: #fff; }

/* =============================================================================
   CATEGORY QUICK-NAV BAR (homepage)
   ============================================================================= */
.lrm-catnav-wrap {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    padding: 0.75rem 0;
    border-top: 1px solid var(--lrm-border);
    border-bottom: 1px solid var(--lrm-border);
    position: relative;
}

.lrm-catnav-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1px solid var(--lrm-border);
    border-radius: 50%;
    background: var(--lrm-white);
    color: var(--lrm-text-secondary);
    cursor: pointer;
    flex-shrink: 0;
    transition: all var(--lrm-transition);
    z-index: 2;
}

.lrm-catnav-arrow:hover {
    background: var(--lrm-text);
    color: var(--lrm-white);
    border-color: var(--lrm-text);
}

.lrm-catnav-arrow.is-hidden {
    opacity: 0;
    pointer-events: none;
}

.lrm-catnav {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    scroll-behavior: smooth;
    flex: 1;
    min-width: 0;
}

.lrm-catnav::-webkit-scrollbar {
    display: none;
}

.lrm-catnav__item {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 0.9rem;
    background: transparent;
    border: none;
    border-left: 3px solid var(--lrm-border);
    border-radius: 0;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--lrm-text-secondary);
    text-decoration: none;
    white-space: nowrap;
    transition: all var(--lrm-transition);
    flex-shrink: 0;
    box-shadow: none;
}

.lrm-catnav__item:hover {
    background: var(--lrm-bg-alt);
    color: var(--lrm-text);
    border-left-color: var(--lrm-primary);
}

.lrm-catnav__count {
    font-size: 0.65rem;
    font-weight: 400;
    color: var(--lrm-muted);
    transition: all var(--lrm-transition);
}

.lrm-catnav__item:hover .lrm-catnav__count {
    color: inherit;
}

/* Category-specific left-border colors */
.lrm-catnav__item[data-cat="prediccion-semanal"] { border-left-color: #3b82f6; }
.lrm-catnav__item[data-cat="prediccion-fin-desemana"] { border-left-color: #f59e0b; }
.lrm-catnav__item[data-cat="nevadas"] { border-left-color: #6366f1; }
.lrm-catnav__item[data-cat="meteoanalisis"] { border-left-color: #10b981; }
.lrm-catnav__item[data-cat="embalses"] { border-left-color: #06b6d4; }
.lrm-catnav__item[data-cat="pluviometria"] { border-left-color: #8b5cf6; }
.lrm-catnav__item[data-cat="noticias"] { border-left-color: #ef4444; }

/* =============================================================================
   SECTION LABELS
   ============================================================================= */
.lrm-section-label {
    margin-bottom: 1.5rem;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.lrm-section-label::after {
    content: '';
    flex: 1;
    height: 2px;
    background: linear-gradient(to right, var(--lrm-heading), transparent);
}

.lrm-section-label span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.95rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--lrm-heading);
    white-space: nowrap;
}

/* =============================================================================
   AUTHOR BOX (single posts)
   ============================================================================= */
.lrm-author {
    display: flex;
    flex-direction: row;
    gap: 1.25rem;
    align-items: flex-start;
    margin-top: 2.5rem;
    padding: 1.5rem 1.5rem 1.5rem 1.75rem;
    background: var(--lrm-white);
    border-radius: 0;
    border: none;
    border-left: 3px solid var(--lrm-primary);
    border-top: 1px solid var(--lrm-border);
    border-bottom: 1px solid var(--lrm-border);
}

.lrm-author__avatar {
    flex-shrink: 0;
}

.lrm-author__avatar img {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--lrm-white);
    box-shadow: var(--lrm-shadow);
}

.lrm-author__info {
    flex: 1;
    min-width: 0;
}

.lrm-author__label {
    display: block;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--lrm-accent-dark);
    margin-bottom: 0.15rem;
}

.lrm-author__name {
    display: block;
    font-size: 1.05rem;
    color: var(--lrm-heading);
}
.lrm-author__name.lrm-signature {
    font-size: 1.6rem;
}

.lrm-author__bio {
    font-size: 0.88rem;
    color: var(--lrm-text-secondary);
    line-height: 1.6;
    margin: 0.25rem 0 0;
}

/* =============================================================================
   PAGINATION
   ============================================================================= */
.nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.25rem;
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--lrm-heading);
    flex-wrap: wrap;
}

.nav-links .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 0.5rem;
    border-radius: 0;
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--lrm-text-secondary);
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    text-decoration: none;
    transition: all var(--lrm-transition);
}

.nav-links .page-numbers:hover {
    color: var(--lrm-primary);
    border-bottom-color: var(--lrm-primary);
}

.nav-links .page-numbers.current {
    color: var(--lrm-heading);
    background: transparent;
    border-bottom: 2px solid var(--lrm-heading);
    font-weight: 900;
}

.nav-links .prev,
.nav-links .next {
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0 0.5rem;
    color: var(--lrm-heading);
}

.nav-links .prev:hover,
.nav-links .next:hover {
    color: var(--lrm-primary);
    border-bottom-color: var(--lrm-primary);
}

/* =============================================================================
   BREADCRUMBS
   ============================================================================= */
.lrm-breadcrumbs {
    margin-bottom: 1.25rem;
}

.lrm-breadcrumbs ol {
    display: flex;
    align-items: center;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.8rem;
    color: var(--lrm-muted);
    flex-wrap: wrap;
}

.lrm-breadcrumbs li {
    display: flex;
    align-items: center;
}

.lrm-breadcrumbs li:not(:last-child)::after {
    content: '\203A';
    margin: 0 0.4rem;
    color: var(--lrm-accent);
    font-size: 0.85rem;
    font-weight: 600;
}

.lrm-breadcrumbs a {
    color: var(--lrm-primary);
    text-decoration: none;
}

.lrm-breadcrumbs a:hover {
    color: var(--lrm-primary-dark);
    text-decoration: underline;
}

.lrm-breadcrumbs li[aria-current="page"] {
    color: var(--lrm-text);
    font-weight: 600;
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* =============================================================================
   SINGLE ARTICLE
   ============================================================================= */
.lrm-article {
    background: var(--lrm-white);
    border-radius: var(--lrm-radius);
    border: 1px solid var(--lrm-border);
    padding: 2.5rem;
    box-shadow: var(--lrm-shadow-xs);
}

.lrm-article__header {
    margin-bottom: 1.75rem;
}

.lrm-article__header .lrm-card__cats {
    margin-bottom: 0.75rem;
}

.lrm-article__title {
    font-size: 2.2rem;
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin: 0 0 1rem;
    position: relative;
    padding-bottom: 0.65rem;
}

.lrm-article__title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 45%;
    max-width: 220px;
    height: 3px;
    background: linear-gradient(to right, var(--lrm-primary), transparent);
    border-radius: 2px;
}

.lrm-article__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--lrm-muted);
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--lrm-border);
}

.lrm-article__meta time,
.lrm-article__meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.lrm-signature {
    font-family: 'Dancing Script', cursive;
    font-size: 1.35em;
    font-weight: 600;
    color: var(--lrm-text);
    text-decoration: none;
    position: relative;
    transition: color 0.2s;
}
.lrm-signature:hover {
    color: var(--lrm-primary);
}

.lrm-article__meta svg {
    opacity: 0.6;
    flex-shrink: 0;
}

.lrm-article__updated-inline {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    color: var(--lrm-muted);
    font-size: inherit;
}

.lrm-article__updated-inline svg {
    opacity: 0.6;
    color: var(--lrm-primary);
    flex-shrink: 0;
}

/* Featured image */
.lrm-article__hero {
    margin: 0 -2.5rem 2.5rem;
    overflow: hidden;
    position: relative;
}

.lrm-article__hero img {
    display: block;
    width: 100%;
    max-height: 520px;
    object-fit: cover;
}
.page .lrm-article__hero img {
    width: 100%;
    height: auto;
    max-height: 350px;
    object-fit: cover;
    object-position: center;
}

/* Article Content */
.lrm-article__content {
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--lrm-text);
    text-align: justify;
}

/* Hide Jetpack sharing (we have our own) */
.sharedaddy,
.sd-sharing-enabled {
    display: none !important;
}

.lrm-article__content h2 {
    font-size: 1.5rem;
    font-weight: 800;
    margin: 2.5rem 0 0.75rem;
    color: var(--lrm-heading);
    position: relative;
    display: inline-block;
    padding-bottom: 0.4rem;
    text-align: left;
}

.lrm-article__content h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--lrm-primary), var(--lrm-primary-light));
    border-radius: 2px;
}

.lrm-article__content h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 2rem 0 0.5rem;
    color: var(--lrm-primary-dark);
    position: relative;
    display: inline-block;
    padding-bottom: 0.3rem;
    text-align: left;
}

.lrm-article__content h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60%;
    height: 2px;
    background: var(--lrm-primary);
    border-radius: 2px;
    opacity: 0.6;
}

.lrm-article__content h4 {
    font-size: 0.92rem;
    font-weight: 700;
    margin: 1.5rem 0 0.5rem;
    color: var(--lrm-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    position: relative;
    display: inline-block;
    padding-bottom: 0.25rem;
}

.lrm-article__content h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background: var(--lrm-primary);
    border-radius: 2px;
    opacity: 0.5;
}

.lrm-article__content h5 {
    font-size: 0.85rem;
    font-weight: 600;
    margin: 1.25rem 0 0.4rem;
    color: var(--lrm-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.lrm-article__content p {
    margin: 0 0 1.25rem;
}

.lrm-article__content > p:first-of-type::first-letter {
    float: left;
    font-size: 3.5em;
    line-height: 0.8;
    font-weight: 800;
    color: var(--lrm-primary);
    margin: 0.05em 0.12em 0 0;
    padding-top: 0.05em;
}

.lrm-article__content img {
    border-radius: var(--lrm-radius-sm);
    margin: 1rem 0;
}

.lrm-article__content figure {
    margin: 1.5rem 0;
}

.lrm-article__content figcaption {
    font-size: 0.78rem;
    color: var(--lrm-muted);
    text-align: left;
    margin-top: 0.6rem;
    padding-left: 0.75rem;
    border-left: 2px solid var(--lrm-primary);
    font-style: italic;
    line-height: 1.5;
}

.lrm-article__content blockquote {
    border-left: none;
    border-top: 3px solid var(--lrm-primary);
    border-bottom: 1px solid var(--lrm-border);
    background: transparent;
    padding: 1.5rem 0.5rem;
    margin: 2rem 0;
    border-radius: 0;
    font-style: italic;
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--lrm-heading);
    position: relative;
}

.lrm-article__content blockquote::before {
    content: '\201C';
    position: absolute;
    top: -0.15em;
    left: 0;
    font-size: 3.5rem;
    color: var(--lrm-primary);
    opacity: 0.2;
    font-family: Georgia, serif;
    line-height: 1;
}

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

.lrm-article__content a {
    color: var(--lrm-primary);
    text-decoration: underline;
    text-decoration-color: rgba(var(--lrm-primary-rgb), 0.3);
    text-underline-offset: 2px;
    transition: all var(--lrm-transition);
}

.lrm-article__content a:hover {
    color: var(--lrm-primary-dark);
    text-decoration-color: var(--lrm-primary-dark);
}

.lrm-article__content ul,
.lrm-article__content ol {
    padding-left: 1.5rem;
    margin-bottom: 1.25rem;
}

.lrm-article__content li {
    margin-bottom: 0.35rem;
}

.lrm-article__content pre {
    background: #1e293b;
    color: #e2e8f0;
    padding: 1.25rem;
    border-radius: var(--lrm-radius-sm);
    overflow-x: auto;
    font-size: 0.88rem;
    margin: 1.5rem 0;
}

.lrm-article__content hr,
.lrm-article__content .wp-block-separator {
    border: none;
    height: 1px;
    background: var(--lrm-border);
    margin: 2.5rem auto;
    max-width: 120px;
    position: relative;
}

.lrm-article__content hr::after,
.lrm-article__content .wp-block-separator::after {
    content: '\2726';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--lrm-white);
    padding: 0 0.75rem;
    color: var(--lrm-primary);
    font-size: 0.9rem;
}

.lrm-article__content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.9rem;
}

.lrm-article__content th,
.lrm-article__content td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--lrm-border);
    text-align: left;
}

.lrm-article__content th {
    font-weight: 600;
    background: var(--lrm-bg-alt);
}

/* Gutenberg blocks */
.lrm-article__content .wp-block-gallery {
    margin: 1.5rem 0;
}

.lrm-article__content .wp-block-image {
    margin: 1.5rem 0;
}

.lrm-article__content .wp-block-image img {
    border-radius: var(--lrm-radius-sm);
}

/* Tags */
.lrm-article__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--lrm-border);
}

.lrm-tag {
    display: inline-block;
    padding: 0.3em 0.75em;
    background: transparent;
    color: var(--lrm-text-secondary);
    border: 1px solid var(--lrm-border);
    border-radius: 0;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    text-decoration: none;
    transition: all var(--lrm-transition);
}

.lrm-tag:hover {
    background: var(--lrm-heading);
    color: var(--lrm-white);
    border-color: var(--lrm-heading);
}

/* =============================================================================
   SOCIAL FOLLOW BLOCK
   ============================================================================= */
.lrm-social {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--lrm-border);
    border-radius: 0;
    margin-bottom: 1.5rem;
}

.lrm-social__label {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--lrm-muted);
    white-space: nowrap;
}

.lrm-social__icons {
    display: flex;
    gap: 0.35rem;
}

.lrm-social__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--lrm-bg-alt);
    color: var(--lrm-muted);
    text-decoration: none;
    transition: all var(--lrm-transition);
}

.lrm-social__link:hover {
    transform: scale(1.1);
    color: var(--lrm-white);
}

.lrm-social__link svg {
    width: 16px;
    height: 16px;
}

.lrm-social__link--x:hover { background: #000; }
.lrm-social__link--fb:hover { background: #1877f2; }
.lrm-social__link--ig:hover { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.lrm-social__link--yt:hover { background: #ff0000; }
.lrm-social__link--tt:hover { background: #010101; }
.lrm-social__link--wa:hover { background: #25D366; }

/* In single posts */
.lrm-article .lrm-social {
    margin-top: 0;
    margin-bottom: 1.25rem;
}

/* =============================================================================
   GOOGLE PREFERRED SOURCE BUTTON
   ============================================================================= */
.lrm-gps {
    margin: 0 0 1.5rem;
}

.lrm-gps__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.55rem 0.9rem 0.55rem 0.7rem;
    background: var(--lrm-white, #fff);
    border: 1px solid var(--lrm-border, #dadce0);
    border-radius: 999px;
    color: var(--lrm-heading, #202124);
    text-decoration: none;
    font-family: inherit;
    line-height: 1.15;
    box-shadow: 0 1px 2px rgba(60, 64, 67, 0.08);
    transition: box-shadow var(--lrm-transition, 0.2s ease),
                border-color var(--lrm-transition, 0.2s ease),
                transform var(--lrm-transition, 0.2s ease);
}

.lrm-gps__btn:hover,
.lrm-gps__btn:focus-visible {
    border-color: #4285F4;
    box-shadow: 0 2px 8px rgba(66, 133, 244, 0.18);
    transform: translateY(-1px);
}

.lrm-gps__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.lrm-gps__text {
    display: flex;
    flex-direction: column;
}

.lrm-gps__top {
    font-size: 0.85rem;
    font-weight: 600;
}

.lrm-gps__bottom {
    font-size: 0.72rem;
    color: var(--lrm-muted, #5f6368);
}

.lrm-article .lrm-gps {
    margin-top: -0.25rem;
    margin-bottom: 1.5rem;
}

/* =============================================================================
   SHARE BUTTONS
   ============================================================================= */
.lrm-share {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
    padding: 1rem 0;
    border-top: 2px solid var(--lrm-heading);
}

.lrm-share__label {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--lrm-heading);
}

.lrm-share__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    text-decoration: none;
    transition: all var(--lrm-transition);
}

.lrm-share__btn:hover {
    transform: translateY(-2px) scale(1.08);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.lrm-share__btn:active {
    transform: translateY(0) scale(0.95);
}

.lrm-share__btn svg {
    width: 18px;
    height: 18px;
}

.lrm-share__btn--twitter {
    background: #f0f9ff;
    color: #0f172a;
}
.lrm-share__btn--twitter:hover {
    background: #0f172a;
    color: var(--lrm-white);
}

.lrm-share__btn--facebook {
    background: #eff6ff;
    color: #1877f2;
}
.lrm-share__btn--facebook:hover {
    background: #1877f2;
    color: var(--lrm-white);
}

.lrm-share__btn--whatsapp {
    background: #f0fdf4;
    color: #25d366;
}
.lrm-share__btn--whatsapp:hover {
    background: #25d366;
    color: var(--lrm-white);
}

.lrm-share__btn--telegram {
    background: #f0f9ff;
    color: #0088cc;
}
.lrm-share__btn--telegram:hover {
    background: #0088cc;
    color: var(--lrm-white);
}

/* =============================================================================
   POST NAVIGATION (prev/next)
   ============================================================================= */
.lrm-postnav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 2rem;
}

.lrm-postnav__item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 1rem 1.25rem;
    background: var(--lrm-white);
    border: 1px solid var(--lrm-border);
    border-radius: var(--lrm-radius-sm);
    text-decoration: none;
    transition: all var(--lrm-transition);
}

.lrm-postnav__item:hover {
    border-color: rgba(var(--lrm-primary-rgb), 0.3);
    box-shadow: var(--lrm-shadow-md);
    transform: translateY(-1px);
}

.lrm-postnav__next {
    text-align: right;
}

.lrm-postnav__label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--lrm-muted);
}

.lrm-postnav__title {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--lrm-heading);
    line-height: 1.4;
    transition: color var(--lrm-transition);
}

.lrm-postnav__item:hover .lrm-postnav__title {
    color: var(--lrm-primary);
}

/* =============================================================================
   BACK TO TOP BUTTON
   ============================================================================= */
.lrm-totop {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 44px;
    height: 44px;
    background: var(--lrm-primary);
    color: var(--lrm-white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(var(--lrm-primary-rgb), 0.35);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 900;
}

.lrm-totop.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lrm-totop:hover {
    background: var(--lrm-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(var(--lrm-primary-rgb), 0.4);
}

/* =============================================================================
   RELATED POSTS
   ============================================================================= */
.lrm-related {
    margin-top: 2.5rem;
}

.lrm-related-title {
    font-size: 1.2rem;
    font-weight: 800;
    margin: 0 0 1.25rem;
}

.lrm-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.lrm-related-card {
    display: block;
    background: var(--lrm-white);
    border: 1px solid var(--lrm-border);
    border-radius: var(--lrm-radius-sm);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: all var(--lrm-transition);
}

.lrm-related-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--lrm-shadow-md);
    border-color: rgba(var(--lrm-primary-rgb), 0.25);
}

.lrm-related-card img {
    width: 100%;
    height: 140px;
    object-fit: cover;
}

.lrm-related-placeholder {
    height: 140px;
    background: linear-gradient(135deg, var(--lrm-primary-light), var(--lrm-bg-alt));
}

.lrm-related-body {
    padding: 0.85rem;
}

.lrm-related-body .lrm-badge {
    margin-bottom: 0.35rem;
}

.lrm-related-card-title {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--lrm-heading);
    margin-bottom: 0.3rem;
    transition: color var(--lrm-transition);
}

.lrm-related-card:hover .lrm-related-card-title {
    color: var(--lrm-primary);
}

.lrm-related-body time {
    font-size: 0.72rem;
    color: var(--lrm-muted);
}

/* =============================================================================
   COMMENTS
   ============================================================================= */
.lrm-comments {
    margin-top: 2rem;
    background: var(--lrm-white);
    border: 1px solid var(--lrm-border);
    border-radius: var(--lrm-radius);
    padding: 2rem;
}

.lrm-comments .comments-title,
.lrm-comments .comment-reply-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: var(--lrm-heading);
}

.lrm-comments .comment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.lrm-comments .comment-list .children {
    list-style: none;
    padding-left: 2rem;
    margin: 0;
    border-left: 2px solid var(--lrm-border);
}

/* Individual comment */
.lrm-comment {
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--lrm-border-light);
}

.lrm-comment:last-child {
    border-bottom: none;
}

.lrm-comment__body {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.lrm-comment__header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.lrm-comment__avatar img {
    border-radius: 50%;
    width: 48px;
    height: 48px;
}

.lrm-comment__meta {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.lrm-comment__meta .comment-author {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--lrm-heading);
}

.lrm-comment__meta .comment-author a {
    color: var(--lrm-heading);
    text-decoration: none;
}

.lrm-comment__meta .comment-author a:hover {
    color: var(--lrm-primary);
}

.lrm-comment__meta .comment-meta {
    font-size: 0.78rem;
    color: var(--lrm-muted);
}

.lrm-comment .comment-content p {
    font-size: 0.92rem;
    line-height: 1.65;
    margin: 0;
}

.lrm-comment__moderation {
    font-size: 0.82rem;
    color: var(--lrm-accent-dark);
    background: var(--lrm-accent-light);
    padding: 0.5rem 0.75rem;
    border-radius: var(--lrm-radius-xs);
    font-style: italic;
}

.lrm-comment__actions {
    font-size: 0.8rem;
}

.lrm-comment__actions a {
    color: var(--lrm-primary);
    text-decoration: none;
    font-weight: 600;
}

.lrm-comment__actions a:hover {
    text-decoration: underline;
}

/* No comments */
.lrm-comments .no-comments {
    color: var(--lrm-muted);
    font-style: italic;
    font-size: 0.9rem;
}

/* Comment navigation */
.lrm-comments .comment-navigation {
    display: flex;
    justify-content: space-between;
    padding: 1rem 0;
    border-top: 1px solid var(--lrm-border-light);
    font-size: 0.85rem;
}

.lrm-comments .comment-navigation a {
    color: var(--lrm-primary);
    text-decoration: none;
    font-weight: 600;
}

/* Comment form */
.lrm-comments .comment-notes {
    font-size: 0.82rem;
    color: var(--lrm-muted);
    margin-bottom: 1rem;
}

.lrm-comments .comment-notes .required {
    color: #dc2626;
}

.lrm-comments .comment-form label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
    color: var(--lrm-text);
}

.lrm-comments .comment-respond textarea {
    width: 100%;
    border: 1px solid var(--lrm-border);
    border-radius: var(--lrm-radius-sm);
    padding: 0.75rem;
    font-family: var(--lrm-font);
    font-size: 0.9rem;
    resize: vertical;
    min-height: 120px;
}

.lrm-comments .comment-respond textarea:focus {
    outline: none;
    border-color: var(--lrm-primary);
    box-shadow: 0 0 0 3px rgba(var(--lrm-primary-rgb), 0.1);
}

.lrm-comments .comment-respond input[type="text"],
.lrm-comments .comment-respond input[type="email"],
.lrm-comments .comment-respond input[type="url"] {
    width: 100%;
    border: 1px solid var(--lrm-border);
    border-radius: var(--lrm-radius-sm);
    padding: 0.6rem 0.75rem;
    font-family: var(--lrm-font);
    font-size: 0.88rem;
    margin-bottom: 0.75rem;
}

.lrm-comments .comment-respond input[type="text"]:focus,
.lrm-comments .comment-respond input[type="email"]:focus,
.lrm-comments .comment-respond input[type="url"]:focus {
    outline: none;
    border-color: var(--lrm-primary);
    box-shadow: 0 0 0 3px rgba(var(--lrm-primary-rgb), 0.1);
}

.lrm-comments .comment-respond input[type="submit"],
.lrm-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.65rem 1.5rem;
    background: var(--lrm-primary);
    color: var(--lrm-white);
    border: none;
    border-radius: var(--lrm-radius-sm);
    font-family: var(--lrm-font);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--lrm-transition);
}

.lrm-comments .comment-respond input[type="submit"]:hover,
.lrm-btn:hover {
    background: var(--lrm-primary-dark);
    color: var(--lrm-white);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(var(--lrm-primary-rgb), 0.3);
}

/* =============================================================================
   READING PROGRESS BAR
   ============================================================================= */
.lrm-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(0, 0, 0, 0.06);
    z-index: 10000;
    pointer-events: none;
}

.lrm-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--lrm-primary) 0%, #42a5f5 40%, var(--lrm-accent) 100%);
    transition: width 0.15s ease-out;
    border-radius: 0 3px 3px 0;
    box-shadow: 0 0 12px rgba(var(--lrm-accent-rgb), 0.6);
}

/* =============================================================================
   AUTHOR PAGE
   ============================================================================= */
.lrm-author-page {
    display: flex;
    align-items: center;
    gap: 1.75rem;
    background: var(--lrm-white);
    border: 1px solid var(--lrm-border);
    border-radius: var(--lrm-radius);
    padding: 2rem;
    margin-bottom: 2rem;
}

.lrm-author-page__avatar img {
    border-radius: 50%;
    width: 120px;
    height: 120px;
    object-fit: cover;
    border: 3px solid var(--lrm-primary-light);
}

.lrm-author-page__name {
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0 0 0.5rem;
    color: var(--lrm-heading);
}

.lrm-author-page__bio {
    font-size: 0.95rem;
    color: var(--lrm-text-secondary);
    line-height: 1.6;
    margin: 0 0 0.75rem;
}

.lrm-author-page__stats {
    display: flex;
    gap: 1.25rem;
}

.lrm-author-page__stats span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.82rem;
    color: var(--lrm-muted);
    font-weight: 500;
}

.lrm-author-page__stats svg {
    color: var(--lrm-primary);
}

.lrm-section-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: var(--lrm-heading);
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--lrm-border);
}

/* =============================================================================
   SEARCH PAGE
   ============================================================================= */
.lrm-search-header {
    background: var(--lrm-white);
    border: 1px solid var(--lrm-border);
    border-radius: var(--lrm-radius);
    padding: 1.75rem 2rem;
    margin-bottom: 2rem;
}

.lrm-search-header h1 {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 0.35rem;
    color: var(--lrm-heading);
    position: relative;
    padding-bottom: 0.35rem;
}

.lrm-search-header h1::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--lrm-primary), var(--lrm-primary-light));
    border-radius: 2px;
}

.lrm-search-header h1 svg {
    color: var(--lrm-primary);
    flex-shrink: 0;
}

.lrm-search-header > p {
    font-size: 0.85rem;
    color: var(--lrm-muted);
    margin: 0 0 1rem;
}

.lrm-search-form {
    display: flex;
    gap: 0.5rem;
    max-width: 500px;
}

.lrm-search-form input[type="search"] {
    flex: 1;
    border: 1px solid var(--lrm-border);
    border-radius: var(--lrm-radius-sm);
    padding: 0.6rem 0.85rem;
    font-family: var(--lrm-font);
    font-size: 0.88rem;
    color: var(--lrm-text);
    outline: none;
    transition: border-color var(--lrm-transition);
}

.lrm-search-form input[type="search"]:focus {
    border-color: var(--lrm-primary);
    box-shadow: 0 0 0 3px rgba(var(--lrm-primary-rgb), 0.1);
}

/* =============================================================================
   404 PAGE
   ============================================================================= */
.lrm-404 {
    text-align: center;
    padding: 3rem 1rem 4rem;
}

.lrm-404__icon {
    margin-bottom: 1.5rem;
}

.lrm-404__icon svg {
    width: 80px;
    height: 80px;
    color: var(--lrm-muted);
    opacity: 0.4;
}

.lrm-404 h1 {
    font-size: 4rem;
    font-weight: 800;
    color: var(--lrm-primary);
    margin: 0 0 0.5rem;
}

.lrm-404 > p {
    font-size: 1.05rem;
    color: var(--lrm-muted);
    margin: 0 0 1.5rem;
    max-width: 450px;
    margin-left: auto;
    margin-right: auto;
}

.lrm-404 .lrm-search-form {
    max-width: 400px;
    margin: 0 auto 1.25rem;
}

.lrm-btn--outline {
    background: transparent;
    color: var(--lrm-primary);
    border: 1px solid var(--lrm-primary);
}

.lrm-btn--outline:hover {
    background: var(--lrm-primary);
    color: var(--lrm-white);
}

.lrm-404__recent {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--lrm-border);
    text-align: left;
}

.lrm-404__recent h2 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--lrm-heading);
}

.lrm-404__posts {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.lrm-404__post {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--lrm-border-light);
    text-decoration: none;
    transition: all var(--lrm-transition);
}

.lrm-404__post:hover {
    padding-left: 0.5rem;
}

.lrm-404__post-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--lrm-text);
    transition: color var(--lrm-transition);
}

.lrm-404__post:hover .lrm-404__post-title {
    color: var(--lrm-primary);
}

.lrm-404__post time {
    font-size: 0.75rem;
    color: var(--lrm-muted);
    white-space: nowrap;
}

/* =============================================================================
   EMPTY STATE
   ============================================================================= */
.lrm-empty {
    text-align: center;
    padding: 3rem 1rem;
    background: var(--lrm-white);
    border-radius: var(--lrm-radius);
    border: 1px solid var(--lrm-border);
}

.lrm-empty__icon {
    margin-bottom: 1rem;
}

.lrm-empty__icon svg {
    color: var(--lrm-muted);
    opacity: 0.4;
}

.lrm-empty h2 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.lrm-empty p {
    color: var(--lrm-muted);
    font-size: 0.92rem;
    margin-bottom: 1.25rem;
}

.lrm-empty .lrm-search-form {
    max-width: 400px;
    margin: 0 auto;
}

/* =============================================================================
   SEARCH FORM
   ============================================================================= */
.search-form {
    display: flex;
    gap: 0.5rem;
    max-width: 400px;
    margin: 1.5rem auto 0;
}

.search-form .search-field {
    flex: 1;
    padding: 0.65rem 1rem;
    border: 1px solid var(--lrm-border);
    border-radius: var(--lrm-radius-sm);
    font-family: var(--lrm-font);
    font-size: 0.9rem;
}

.search-form .search-field:focus {
    outline: none;
    border-color: var(--lrm-primary);
    box-shadow: 0 0 0 3px rgba(var(--lrm-primary-rgb), 0.1);
}

.search-form .search-submit {
    padding: 0.65rem 1.25rem;
    background: var(--lrm-primary);
    color: var(--lrm-white);
    border: none;
    border-radius: var(--lrm-radius-sm);
    font-family: var(--lrm-font);
    font-weight: 600;
    cursor: pointer;
    transition: background var(--lrm-transition);
}

.search-form .search-submit:hover {
    background: var(--lrm-primary-dark);
}

/* =============================================================================
   FOOTER
   ============================================================================= */
.lrm-footer {
    background: var(--lrm-footer-bg);
    color: var(--lrm-footer-text);
    margin-top: 3rem;
    border-top: 3px solid var(--lrm-accent);
}

.lrm-footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
    padding: 3rem 0 2rem;
    border-bottom: 1px solid var(--lrm-footer-bg-alt);
}

.lrm-footer-logo-wrap {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.5rem;
}

.lrm-footer-logo {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--lrm-white);
}

.lrm-footer-brand p {
    font-size: 0.88rem;
    line-height: 1.6;
    margin: 0;
    max-width: 360px;
}

.lrm-footer-nav h3,
.lrm-footer-social h3 {
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--lrm-footer-heading);
    margin: 0 0 0.75rem;
    position: relative;
    display: inline-block;
    padding-bottom: 0.4rem;
}

.lrm-footer-nav h3::after,
.lrm-footer-social h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    background: var(--lrm-primary);
    border-radius: 2px;
    opacity: 0.6;
}

.lrm-footer-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.lrm-footer-menu li {
    margin-bottom: 0.4rem;
}

.lrm-footer-menu a {
    color: var(--lrm-footer-text);
    font-size: 0.85rem;
    text-decoration: none;
    transition: color var(--lrm-transition);
}

.lrm-footer-menu a:hover {
    color: var(--lrm-white);
}

.lrm-social-links {
    display: flex;
    gap: 0.75rem;
}

.lrm-social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: var(--lrm-radius-sm);
    background: var(--lrm-footer-bg-alt);
    color: var(--lrm-footer-text);
    transition: all var(--lrm-transition);
}

.lrm-social-links a:hover {
    background: var(--lrm-primary);
    color: var(--lrm-white);
}

.lrm-social-links svg {
    width: 18px;
    height: 18px;
}

.lrm-footer-bottom {
    padding: 1.25rem 0;
    text-align: center;
}

.lrm-footer-bottom p {
    margin: 0;
    font-size: 0.84rem;
    color: var(--lrm-footer-muted);
}

.lrm-footer-legal {
    margin-top: 0.5rem !important;
}

.lrm-footer-legal a {
    color: var(--lrm-footer-text);
    text-decoration: none;
    transition: color var(--lrm-transition);
}

.lrm-footer-legal a:hover {
    color: var(--lrm-white);
}

.lrm-footer-legal .lrm-dot {
    color: var(--lrm-footer-border);
    margin: 0 0.35rem;
}

.lrm-footer-logo-img {
    max-height: 40px;
    width: auto;
    margin-bottom: 0.75rem;
    filter: brightness(0) invert(1);
}

/* =============================================================================
   COOKIE CONSENT BANNER
   ============================================================================= */
.lrm-cookie {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--lrm-footer-bg);
    border-top: 2px solid var(--lrm-primary);
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.lrm-cookie.is-visible {
    transform: translateY(0);
}

.lrm-cookie__content {
    max-width: var(--lrm-container);
    margin: 0 auto;
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.lrm-cookie__content p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--lrm-footer-heading);
    line-height: 1.5;
    flex: 1;
}

.lrm-cookie__content p a {
    color: var(--lrm-primary);
    text-decoration: underline;
}

.lrm-cookie__actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.lrm-cookie__btn {
    padding: 0.55rem 1.25rem;
    border-radius: var(--lrm-radius-xs);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all var(--lrm-transition);
    font-family: var(--lrm-font);
}

.lrm-cookie__btn--accept {
    background: var(--lrm-primary);
    color: var(--lrm-white);
}

.lrm-cookie__btn--accept:hover {
    background: var(--lrm-primary-dark);
}

.lrm-cookie__btn--reject {
    background: transparent;
    color: #94a3b8;
    border: 1px solid #334155;
}

.lrm-cookie__btn--reject:hover {
    background: #1e293b;
    color: var(--lrm-white);
}

/* =============================================================================
   MOBILE BOTTOM NAV
   ============================================================================= */
.lrm-bottomnav {
    display: none;
}

/* =============================================================================
   RESPONSIVE - TABLET
   ============================================================================= */
@media (max-width: 1024px) {
    .lrm-footer-top {
        grid-template-columns: 1fr 1fr;
    }

    .lrm-footer-brand {
        grid-column: 1 / -1;
    }

    /* Tablet: compact header */
    .lrm-header-inner {
        height: 52px;
    }

    .lrm-brand .custom-logo-link img,
    .lrm-brand .custom-logo {
        max-height: 28px;
    }

    .lrm-site-title {
        font-size: 0.95rem;
    }

    /* Tablet: hamburger menu visible */
    .lrm-menu-toggle {
        display: flex;
    }

    /* Hide desktop nav, show as sidebar drawer */
    .lrm-nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 310px;
        height: 100vh;
        height: 100dvh;
        background: var(--lrm-white);
        box-shadow: 4px 0 25px rgba(0,0,0,0.15);
        z-index: 999;
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        overflow: hidden;
        padding: 0;
        display: flex;
        flex-direction: column;
    }

    .lrm-nav.is-open {
        transform: translateX(0);
    }

    /* Sidebar header */
    #lrm-nav > .lrm-nav__header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 1.1rem 1.25rem;
        background: var(--lrm-white);
        flex-shrink: 0;
        position: relative;
    }

    #lrm-nav > .lrm-nav__header::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 2px;
        background: var(--lrm-border);
    }

    .lrm-nav__brand {
        display: flex;
        align-items: center;
        gap: 0.6rem;
        text-decoration: none;
        color: #000000;
        font-weight: 800;
        font-size: 1rem;
        letter-spacing: -0.01em;
    }

    .lrm-nav__logo {
        max-height: 30px;
        width: auto;
        border-radius: 6px;
        filter: brightness(0);
    }

    .lrm-nav__close {
        display: none;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        background: var(--lrm-bg);
        border: 1px solid var(--lrm-border);
        border-radius: 50%;
        cursor: pointer;
        color: var(--lrm-muted);
        transition: all var(--lrm-transition);
        flex-shrink: 0;
    }

    .lrm-nav__close:hover {
        background: var(--lrm-bg-alt);
        color: var(--lrm-text);
        transform: rotate(90deg);
    }

    /* Sidebar search */
    #lrm-nav > .lrm-nav__search {
        display: block;
        padding: 0.85rem 1.25rem;
        border-bottom: 1px solid var(--lrm-border-light);
        flex-shrink: 0;
    }

    .lrm-nav__search form {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        background: var(--lrm-bg);
        border: 1px solid var(--lrm-border);
        border-radius: var(--lrm-radius-sm);
        padding: 0.55rem 0.85rem;
        transition: border-color var(--lrm-transition);
    }

    .lrm-nav__search form:focus-within {
        border-color: var(--lrm-primary);
        box-shadow: 0 0 0 3px rgba(var(--lrm-primary-rgb), 0.1);
    }

    .lrm-nav__search svg {
        flex-shrink: 0;
        color: var(--lrm-muted);
    }

    .lrm-nav__search input {
        border: none;
        background: transparent;
        font-family: var(--lrm-font);
        font-size: 0.85rem;
        color: var(--lrm-text);
        width: 100%;
        outline: none;
    }

    .lrm-nav__search input::placeholder {
        color: var(--lrm-muted);
    }

    /* Menu items in sidebar */
    .lrm-menu {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        flex: 1;
        padding: 0.35rem 0;
        overflow-y: auto;
    }

    .lrm-menu > li {
        position: relative;
    }

    .lrm-menu > li > a {
        font-size: 0.9rem;
        font-weight: 600;
        padding: 0.75rem 1.25rem;
        border-radius: 0;
        border-bottom: none;
        color: var(--lrm-text);
        transition: all var(--lrm-transition);
        border-left: 3px solid transparent;
    }

    .lrm-menu > li.menu-item-has-children > a {
        padding-right: 3.25rem;
    }

    .lrm-menu > li > a:hover {
        background: var(--lrm-primary-light);
        color: var(--lrm-primary);
        border-left-color: rgba(var(--lrm-primary-rgb), 0.3);
    }

    .lrm-menu > li.current-menu-item > a {
        background: var(--lrm-primary-light);
        color: var(--lrm-primary);
        border-left-color: var(--lrm-primary);
        font-weight: 700;
    }

    /* Dropdown in sidebar */
    .lrm-menu .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        border-radius: 0;
        padding: 0;
        min-width: auto;
        display: none;
        background: var(--lrm-bg);
    }

    .lrm-menu .sub-menu.is-open {
        display: block;
    }

    .lrm-menu .sub-menu li a {
        padding: 0.55rem 1.25rem 0.55rem 2.5rem;
        font-size: 0.82rem;
        border-radius: 0;
        color: var(--lrm-text-secondary);
        font-weight: 500;
        position: relative;
    }

    .lrm-menu .sub-menu li a::before {
        content: '';
        position: absolute;
        left: 1.5rem;
        top: 50%;
        width: 5px;
        height: 5px;
        border-radius: 50%;
        background: var(--lrm-border);
        transform: translateY(-50%);
        transition: background var(--lrm-transition);
    }

    .lrm-menu .sub-menu li a:hover {
        color: var(--lrm-primary);
        background: var(--lrm-primary-light);
    }

    .lrm-menu .sub-menu li a:hover::before {
        background: var(--lrm-primary);
    }

    /* Submenu toggle button */
    .lrm-submenu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        right: 0.85rem;
        top: 50%;
        transform: translateY(-50%);
        width: 30px;
        height: 30px;
        background: transparent;
        border: 1px solid var(--lrm-border);
        border-radius: 50%;
        cursor: pointer;
        color: var(--lrm-muted);
        transition: all var(--lrm-transition);
        z-index: 1;
    }

    .lrm-submenu-toggle:hover {
        background: var(--lrm-primary-light);
        color: var(--lrm-primary);
        border-color: rgba(var(--lrm-primary-rgb), 0.3);
    }

    .lrm-submenu-toggle.is-rotated {
        transform: translateY(-50%) rotate(180deg);
        background: var(--lrm-primary-light);
        color: var(--lrm-primary);
        border-color: var(--lrm-primary);
    }

}

/* Featured card: stack vertically on small screens */
@media (max-width: 767px) {
    article.lrm-card--featured {
        grid-template-columns: 1fr !important;
        min-height: auto;
    }
    article.lrm-card--featured .lrm-card__image {
        aspect-ratio: 2 / 1;
        min-height: auto;
        height: auto;
    }
    article.lrm-card--featured .lrm-card__title {
        font-size: 1.15rem;
    }
    article.lrm-card--featured .lrm-card__body {
        padding: 1rem 1.15rem 1.15rem;
    }

    .lrm-hero-authors {
        flex-wrap: nowrap;
        white-space: nowrap;
    }
    .lrm-hero-authors .lrm-signature {
        font-size: 1.1rem;
    }
}

@media (max-width: 921px) {
    /* Regular cards: horizontal compact (image left, text right) */
    .lrm-grid--2col {
        grid-template-columns: 1fr;
    }

    .lrm-grid--2col .lrm-card {
        grid-column: span 1 !important;
    }

    .lrm-grid--2col .lrm-card .lrm-card__link {
        display: grid;
        grid-template-columns: 120px 1fr;
    }

    .lrm-grid--2col .lrm-card .lrm-card__image {
        height: 100%;
        aspect-ratio: unset;
    }

    .lrm-grid--2col .lrm-card .lrm-card__image img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        min-height: 110px;
        object-fit: cover;
        aspect-ratio: unset;
    }

    .lrm-grid--2col .lrm-card .lrm-card__placeholder {
        height: 100%;
        min-height: 110px;
    }

    .lrm-grid--2col .lrm-card .lrm-card__body {
        padding: 0.75rem 1rem;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .lrm-grid--2col .lrm-card .lrm-card__title {
        font-size: 0.9rem;
        line-height: 1.35;
        margin-bottom: 0.25rem;
    }

    .lrm-grid--2col .lrm-card .lrm-card__excerpt {
        display: none;
    }

    .lrm-grid--2col .lrm-card .lrm-card__meta {
        font-size: 0.72rem;
    }

    .lrm-grid--2col .lrm-card .lrm-badge {
        font-size: 0.58rem;
        padding: 0.1em 0.45em;
    }

    /* Hero adjustments */
    .lrm-hero {
        padding: 1.75rem 1.25rem;
        min-height: 260px;
    }

    .lrm-hero h1 {
        font-size: 1.5rem;
    }

    .lrm-hero p {
        font-size: 0.92rem;
    }

    /* Author page responsive */
    .lrm-author-page {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }

    .lrm-author-page__avatar img {
        width: 90px;
        height: 90px;
    }

    .lrm-author-page__name {
        font-size: 1.25rem;
    }

    .lrm-author-page__stats {
        justify-content: center;
    }

    /* Search responsive */
    .lrm-search-header {
        padding: 1.25rem;
    }

    .lrm-search-header h1 {
        font-size: 1.05rem;
    }

    .lrm-search-form {
        flex-direction: column;
    }

    /* Article adjustments */
    .lrm-article {
        padding: 1.5rem;
    }

    .lrm-article__hero {
        margin: 0 -1.5rem 1.5rem;
    }

    .lrm-article__title {
        font-size: 1.45rem;
    }

    /* Author box */
    .lrm-author {
        padding: 1.15rem;
    }

    .lrm-author__avatar img {
        width: 52px;
        height: 52px;
    }

    /* Related posts */
    .lrm-related-grid {
        grid-template-columns: 1fr;
    }

    .lrm-related-card {
        display: grid;
        grid-template-columns: 120px 1fr;
    }

    .lrm-related-card img {
        height: 100%;
        min-height: 95px;
    }

    .lrm-related-placeholder {
        height: 100%;
        min-height: 95px;
    }

    /* Post navigation */
    .lrm-postnav {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .lrm-postnav__next {
        text-align: left;
    }

    /* Footer */
    .lrm-footer-top {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .lrm-footer {
        padding-bottom: 70px;
    }

    /* Mobile bottom nav */
    .lrm-bottomnav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: #0f172a;
        border-top: 2px solid var(--lrm-accent);
        z-index: 990;
        padding: 0.45rem 0 calc(0.45rem + env(safe-area-inset-bottom, 0px));
    }

    .lrm-bottomnav__item {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.2rem;
        padding: 0.35rem 0;
        text-decoration: none;
        color: #94a3b8;
        font-size: 0.62rem;
        font-weight: 500;
        transition: color var(--lrm-transition);
    }

    .lrm-bottomnav__item:hover,
    .lrm-bottomnav__item:active {
        color: var(--lrm-white);
    }

    .lrm-bottomnav__item svg {
        width: 22px;
        height: 22px;
    }

    .lrm-bottomnav__item--wa {
        color: #25D366;
    }
    .lrm-bottomnav__item--wa:hover,
    .lrm-bottomnav__item--wa:active {
        color: #128C7E;
    }

    /* Cookie banner responsive */
    .lrm-cookie__content {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    .lrm-cookie {
        bottom: 60px;
    }

    /* Back-to-top above bottom nav */
    .lrm-totop {
        bottom: 5rem;
    }
}

/* =============================================================================
   RESPONSIVE - MOBILE
   ============================================================================= */
@media (max-width: 544px) {
    .lrm-container {
        padding: 0 1rem;
    }

    .lrm-main {
        padding: 1.25rem 0 2rem;
    }

    .lrm-header-inner {
        height: 52px;
    }

    .lrm-site-title {
        font-size: 0.95rem;
    }

    .lrm-hero {
        padding: 1.5rem 1rem;
        min-height: 220px;
        border-radius: var(--lrm-radius-sm);
    }

    .lrm-hero h1 {
        font-size: 1.35rem;
    }

    .lrm-hero p {
        font-size: 0.92rem;
    }

    .lrm-hero-stats {
        gap: 0.5rem;
    }

    .lrm-hero-stats span {
        font-size: 0.75rem;
        padding: 0.25rem 0.6rem;
    }

    .lrm-card__image img {
        aspect-ratio: 600 / 340;
        height: auto;
    }

    article.lrm-card--featured .lrm-card__image {
        aspect-ratio: 2 / 1;
        height: auto;
    }

    .lrm-card__title {
        font-size: 0.95rem;
    }

    .lrm-article {
        padding: 1.15rem;
        border-radius: var(--lrm-radius-sm);
    }

    .lrm-article__hero {
        margin: 0 -1.15rem 1.25rem;
    }

    .lrm-article__title {
        font-size: 1.3rem;
    }

    .lrm-article__content {
        font-size: 1rem;
    }

    .lrm-share {
        flex-wrap: wrap;
    }

    .lrm-related-card {
        grid-template-columns: 100px 1fr;
    }

    .lrm-archive-header {
        padding: 1rem 1.25rem;
    }

    .lrm-archive-header h1 {
        font-size: 1.15rem;
    }

    .lrm-comments {
        padding: 1.25rem;
    }

    .lrm-404 h1 {
        font-size: 3rem;
    }
}

/* =============================================================================
   WORDPRESS DEFAULTS - Alignment & widths
   ============================================================================= */
.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.alignleft {
    float: left;
    margin-right: 1.5rem;
    margin-bottom: 1rem;
}

.alignright {
    float: right;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    font-size: 0.82rem;
    color: var(--lrm-muted);
    text-align: center;
    margin-top: 0.5rem;
    font-style: italic;
}

.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

/* =============================================================================
   ARTICLE UPDATED BADGE
   ============================================================================= */
.lrm-article__updated {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.82rem;
    color: var(--lrm-muted);
    margin-bottom: 1.25rem;
}

.lrm-article__updated svg {
    color: var(--lrm-primary);
    flex-shrink: 0;
}

/* =============================================================================
   TABLE OF CONTENTS
   ============================================================================= */
.lrm-toc {
    background: var(--lrm-bg);
    border: 1px solid var(--lrm-border);
    border-radius: var(--lrm-radius-sm);
    padding: 0;
    margin-bottom: 2rem;
}

.lrm-toc summary {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.15rem;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--lrm-heading);
    cursor: pointer;
    list-style: none;
    user-select: none;
}

.lrm-toc summary::-webkit-details-marker {
    display: none;
}

.lrm-toc summary::after {
    content: '';
    width: 6px;
    height: 6px;
    border-right: 2px solid var(--lrm-muted);
    border-bottom: 2px solid var(--lrm-muted);
    transform: rotate(45deg);
    margin-left: auto;
    transition: transform var(--lrm-transition);
}

.lrm-toc[open] summary::after {
    transform: rotate(-135deg);
}

.lrm-toc ol {
    list-style: none;
    margin: 0;
    padding: 0 1.15rem 1rem;
    counter-reset: toc;
}

.lrm-toc > details > ol > li {
    counter-increment: toc;
}

.lrm-toc li a {
    display: block;
    padding: 0.35rem 0;
    font-size: 0.85rem;
    color: var(--lrm-text-secondary);
    text-decoration: none;
    border-bottom: 1px solid var(--lrm-border-light);
    transition: color var(--lrm-transition);
}

.lrm-toc li a:hover {
    color: var(--lrm-primary);
}

.lrm-toc li:last-child a {
    border-bottom: none;
}

.lrm-toc ol ol {
    padding-left: 1.25rem;
}

.lrm-toc ol ol li a {
    font-size: 0.82rem;
    color: var(--lrm-muted);
    padding: 0.25rem 0;
}

/* =============================================================================
   SKIP LINK (ACCESSIBILITY)
   ============================================================================= */
.skip-link.screen-reader-text:focus {
    clip: auto;
    position: fixed;
    top: 0.5rem;
    left: 0.5rem;
    width: auto;
    height: auto;
    overflow: visible;
    background: var(--lrm-primary);
    color: var(--lrm-white);
    padding: 0.65rem 1.25rem;
    border-radius: var(--lrm-radius-sm);
    font-size: 0.88rem;
    font-weight: 600;
    z-index: 100000;
    box-shadow: var(--lrm-shadow-lg);
    text-decoration: none;
}

/* =============================================================================
   IMAGE ZOOM
   ============================================================================= */
.lrm-zoomable {
    cursor: zoom-in;
    transition: transform 0.3s cubic-bezier(0.2, 0, 0.2, 1);
}
.lrm-zoom--active {
    cursor: zoom-out;
    position: relative;
    z-index: 100001;
}
.lrm-zoom-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 100000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.lrm-zoom-overlay.is-visible {
    opacity: 1;
    pointer-events: auto;
}

/* =============================================================================
   RESPONSIVE IFRAMES IN CONTENT
   ============================================================================= */
.lrm-article__content iframe {
    max-width: 100%;
    border-radius: var(--lrm-radius-sm);
}

.lrm-article__content .wp-block-embed,
.lrm-article__content .wp-block-embed__wrapper {
    position: relative;
    width: 100%;
}

.lrm-article__content .wp-block-embed__wrapper iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
}

/* =============================================================================
   POPULAR POSTS
   ============================================================================= */
.lrm-popular {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--lrm-white);
    border: 1px solid var(--lrm-border);
    border-radius: var(--lrm-radius);
}

.lrm-popular__title {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 1rem;
    color: var(--lrm-heading);
}

.lrm-popular__title svg {
    color: var(--lrm-accent);
}

.lrm-popular__list {
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: popular;
}

.lrm-popular__item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--lrm-border-light);
}

.lrm-popular__item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.lrm-popular__pos {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--lrm-primary-light);
    color: var(--lrm-primary);
    font-size: 0.72rem;
    font-weight: 800;
}

.lrm-popular__item:nth-child(-n+3) .lrm-popular__pos {
    background: var(--lrm-accent);
    color: var(--lrm-white);
}

.lrm-popular__link {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    text-decoration: none;
    color: inherit;
    min-width: 0;
}

.lrm-popular__name {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--lrm-heading);
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.lrm-popular__link:hover .lrm-popular__name {
    color: var(--lrm-primary);
}

.lrm-popular__meta {
    font-size: 0.72rem;
    color: var(--lrm-muted);
}

/* =============================================================================
   SERIES NAVIGATION
   ============================================================================= */
.lrm-series {
    margin-top: 1.5rem;
    padding: 1.25rem;
    background: var(--lrm-primary-light);
    border: 1px solid rgba(33, 150, 243, 0.15);
    border-radius: var(--lrm-radius);
}

.lrm-series__label {
    display: block;
    margin-bottom: 0.75rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--lrm-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.lrm-series__links {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.lrm-series__item {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.75rem;
    background: var(--lrm-white);
    border-radius: var(--lrm-radius-sm);
    text-decoration: none;
    color: inherit;
    transition: all var(--lrm-transition);
}

.lrm-series__item:hover {
    box-shadow: var(--lrm-shadow-sm);
    transform: translateY(-1px);
}

.lrm-series__next {
    text-align: right;
}

.lrm-series__dir {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--lrm-primary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.lrm-series__title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--lrm-heading);
    line-height: 1.3;
}

/* =============================================================================
   ON THIS DAY
   ============================================================================= */
.lrm-onthisday {
    margin-top: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #fef3c7 0%, #fef9c3 100%);
    border: 1px solid #fde68a;
    border-radius: var(--lrm-radius);
}

.lrm-onthisday__title {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 0.75rem;
    color: #92400e;
}

.lrm-onthisday__list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.lrm-onthisday__item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    background: var(--lrm-white);
    border-radius: var(--lrm-radius-sm);
    text-decoration: none;
    color: inherit;
    transition: all var(--lrm-transition);
}

.lrm-onthisday__item:hover {
    box-shadow: var(--lrm-shadow-sm);
}

.lrm-onthisday__year {
    flex-shrink: 0;
    font-size: 0.78rem;
    font-weight: 800;
    color: #b45309;
    padding: 0.2em 0.5em;
    background: #fef3c7;
    border-radius: 4px;
}

.lrm-onthisday__name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--lrm-heading);
}

/* =============================================================================
   E-E-A-T AUTHOR STATS
   ============================================================================= */
.lrm-author__eeat {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.lrm-author__stat {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.72rem;
    color: var(--lrm-muted);
    font-weight: 600;
}

.lrm-author__stat svg {
    color: var(--lrm-primary);
    opacity: 0.7;
}

/* =============================================================================
   CARD COMMENTS INDICATOR
   ============================================================================= */
.lrm-card__comments {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
}

.lrm-card__comments svg {
    opacity: 0.5;
}

/* =============================================================================
   404 CATEGORY NAVIGATION
   ============================================================================= */
.lrm-404__cats {
    margin-top: 1.5rem;
}

.lrm-404__cats h2 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.lrm-404__catlist {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

/* =============================================================================
   SEARCH SUGGESTIONS
   ============================================================================= */
.lrm-search-suggestions {
    margin-top: 1.5rem;
}

.lrm-search-suggestions p {
    font-size: 0.88rem;
    color: var(--lrm-muted);
    margin-bottom: 0.5rem;
}

.lrm-search-suggestions__cats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

/* =============================================================================
   KEY TAKEAWAYS / RESUMEN RAPIDO
   ============================================================================= */
.lrm-takeaways {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 1px solid var(--lrm-primary-light, #bae6fd);
    border-left: 4px solid var(--lrm-primary, #0284c7);
    border-radius: var(--lrm-radius, 12px);
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0 2rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

[data-theme="dark"] .lrm-takeaways {
    background: linear-gradient(135deg, #0c2d48 0%, #1a3a5c 100%);
    border-color: #1e5a8a;
}

.lrm-takeaways__header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--lrm-primary, #0284c7);
    margin-bottom: 0.75rem;
}

.lrm-takeaways__time {
    margin-left: auto;
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--lrm-text-muted, #64748b);
    background: rgba(255, 255, 255, 0.6);
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
}

[data-theme="dark"] .lrm-takeaways__time {
    background: rgba(0, 0, 0, 0.3);
}

.lrm-takeaways__summary {
    margin: 0 0 0.75rem;
    color: var(--lrm-text, #1e293b);
    font-style: italic;
}

.lrm-takeaways__list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.lrm-takeaways__list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.4rem;
    color: var(--lrm-text, #1e293b);
}

.lrm-takeaways__list li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    color: var(--lrm-primary, #0284c7);
    font-weight: 700;
}

.lrm-takeaways__list li:last-child {
    margin-bottom: 0;
}

/* =============================================================================
   VIEWPORT FADE-IN ANIMATIONS
   ============================================================================= */
.lrm-fadein {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.lrm-fadein.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* =============================================================================
   PREFERS REDUCED MOTION
   ============================================================================= */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .lrm-card:hover {
        transform: none;
    }

    .lrm-totop {
        transition: none;
    }

    .lrm-progress-fill {
        transition: none;
    }

    .lrm-fadein {
        opacity: 1;
        transform: none;
    }
}

/* =============================================================================
   TOC SCROLL-SPY ACTIVE STATE
   ============================================================================= */
.lrm-toc li a.is-active {
    color: var(--lrm-primary);
    font-weight: 600;
}

/* =============================================================================
   AUTHOR HERO (E-E-A-T page)
   ============================================================================= */
.lrm-author-hero {
    background: var(--lrm-white);
    border: 1px solid var(--lrm-border);
    border-radius: var(--lrm-radius);
    padding: 2rem;
    margin-bottom: 2.5rem;
    box-shadow: var(--lrm-shadow);
}

.lrm-author-hero__top {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.lrm-author-hero__avatar {
    flex-shrink: 0;
}

.lrm-author-hero__avatar img {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--lrm-primary-light);
    box-shadow: var(--lrm-shadow-md);
}

.lrm-author-hero__main {
    flex: 1;
    min-width: 0;
}

.lrm-author-hero__name {
    font-size: 2rem;
    margin: 0 0 0.25rem;
    line-height: 1.1;
}

.lrm-author-hero__role {
    font-size: 1.05rem;
    color: var(--lrm-primary-dark);
    font-weight: 600;
    margin: 0 0 0.75rem;
}

.lrm-author-hero__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.lrm-author-hero__stat {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.88rem;
    color: var(--lrm-muted);
    font-weight: 500;
}

.lrm-author-hero__stat svg {
    color: var(--lrm-primary);
}

.lrm-author-hero__social {
    display: flex;
    gap: 0.5rem;
}

.lrm-author-hero__social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--lrm-bg-alt);
    color: var(--lrm-text-secondary);
    transition: background var(--lrm-transition), color var(--lrm-transition);
}

.lrm-author-hero__social-link:hover {
    background: var(--lrm-primary);
    color: #fff;
}

.lrm-author-hero__bio {
    padding-top: 1.25rem;
    border-top: 1px solid var(--lrm-border-light);
    margin-bottom: 1.5rem;
}

.lrm-author-hero__bio p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--lrm-text-secondary);
    margin: 0;
}

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

.lrm-author-hero__section {
    background: var(--lrm-bg-alt);
    border-radius: var(--lrm-radius-sm);
    padding: 1.25rem;
    border: 1px solid var(--lrm-border-light);
}

.lrm-author-hero__section-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--lrm-heading);
    margin: 0 0 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.lrm-author-hero__section-title svg {
    color: var(--lrm-primary);
}

.lrm-author-hero__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.lrm-author-hero__list li {
    position: relative;
    padding: 0.45rem 0 0.45rem 1.1rem;
    font-size: 0.9rem;
    color: var(--lrm-text-secondary);
    line-height: 1.45;
    border-bottom: 1px solid var(--lrm-border-light);
}

.lrm-author-hero__list li:last-child {
    border-bottom: none;
}

.lrm-author-hero__list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.85rem;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--lrm-primary);
}

/* Author role label in single post box */
.lrm-author__role-label {
    font-size: 0.82rem;
    color: var(--lrm-primary-dark);
    font-weight: 600;
    margin: 0 0 0.25rem;
}

.lrm-author__stat--link {
    color: var(--lrm-primary-dark);
    text-decoration: none;
    font-weight: 600;
}

.lrm-author__stat--link:hover {
    color: var(--lrm-primary);
}

/* Media appearances list */
.lrm-author-hero__media-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.lrm-author-hero__media-list li {
    border-bottom: 1px solid var(--lrm-border-light);
}

.lrm-author-hero__media-list li:last-child {
    border-bottom: none;
}

.lrm-author-hero__media-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0;
    text-decoration: none;
    transition: color var(--lrm-transition);
}

.lrm-author-hero__media-list a:hover .lrm-author-hero__media-title {
    color: var(--lrm-primary);
}

.lrm-author-hero__media-title {
    font-size: 0.88rem;
    color: var(--lrm-text);
    font-weight: 500;
    line-height: 1.35;
    transition: color var(--lrm-transition);
}

.lrm-author-hero__media-source {
    flex-shrink: 0;
    font-size: 0.75rem;
    color: var(--lrm-primary-dark);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: var(--lrm-primary-light);
    padding: 0.2rem 0.55rem;
    border-radius: 4px;
}

@media (max-width: 600px) {
    .lrm-author-hero {
        padding: 1.25rem;
    }

    .lrm-author-hero__top {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .lrm-author-hero__avatar img {
        width: 100px;
        height: 100px;
    }

    .lrm-author-hero__name {
        font-size: 1.5rem;
    }

    .lrm-author-hero__stats {
        justify-content: center;
    }

    .lrm-author-hero__social {
        justify-content: center;
    }

    .lrm-author-hero__details {
        grid-template-columns: 1fr;
    }
}

/* =============================================================================
   MUNICIPALITY LANDING PAGE (page-municipio.php)
   ============================================================================= */
.lrm-municipio__header {
    margin-bottom: 2rem;
}

.lrm-municipio__title {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 800;
    color: var(--lrm-heading);
    margin: 0 0 0.75rem;
    line-height: 1.15;
}

.lrm-municipio__desc {
    font-size: 1.1rem;
    color: var(--lrm-text-secondary);
    line-height: 1.6;
    max-width: 680px;
    margin: 0;
}

/* Data card */
.lrm-municipio__data {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    padding: 1.5rem;
    background: var(--lrm-bg-alt);
    border-radius: var(--lrm-radius);
    border: 1px solid var(--lrm-border);
    margin-bottom: 2.5rem;
}

.lrm-municipio__stat {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.75rem;
    background: var(--lrm-white);
    border-radius: var(--lrm-radius-sm);
    border: 1px solid var(--lrm-border-light);
}

.lrm-municipio__stat svg {
    color: var(--lrm-primary);
    margin-bottom: 0.25rem;
}

.lrm-municipio__stat-label {
    font-size: 0.78rem;
    color: var(--lrm-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 600;
}

.lrm-municipio__stat strong {
    font-size: 1.05rem;
    color: var(--lrm-heading);
}

/* Posts section */
.lrm-municipio__posts {
    margin-top: 3rem;
}

.lrm-municipio__posts h2 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: var(--lrm-heading);
}

/* Other municipalities section */
.lrm-municipio__others {
    margin-top: 3rem;
    padding: 2rem;
    background: var(--lrm-bg-alt);
    border-radius: var(--lrm-radius);
    border: 1px solid var(--lrm-border);
}

.lrm-municipio__others h2 {
    font-size: 1.3rem;
    font-weight: 800;
    margin: 0 0 0.35rem;
    color: var(--lrm-heading);
}

.lrm-municipio__others-sub {
    font-size: 0.9rem;
    color: var(--lrm-muted);
    margin: 0 0 1.5rem;
}

.lrm-municipio__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 0.6rem;
}

.lrm-municipio__link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    background: var(--lrm-white);
    border: 1px solid var(--lrm-border-light);
    border-radius: var(--lrm-radius-sm);
    text-decoration: none;
    transition: border-color var(--lrm-transition), box-shadow var(--lrm-transition), transform var(--lrm-transition);
}

.lrm-municipio__link:hover {
    border-color: var(--lrm-primary);
    box-shadow: var(--lrm-shadow-md);
    transform: translateY(-1px);
}

.lrm-municipio__link-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--lrm-primary-light);
    border-radius: 8px;
    color: var(--lrm-primary);
}

.lrm-municipio__link-icon svg {
    width: 18px;
    height: 18px;
}

.lrm-municipio__link-text {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
}

.lrm-municipio__link-name {
    font-weight: 700;
    color: var(--lrm-heading);
    font-size: 0.95rem;
    line-height: 1.2;
}

.lrm-municipio__link:hover .lrm-municipio__link-name {
    color: var(--lrm-primary-dark);
}

.lrm-municipio__link-meta {
    font-size: 0.78rem;
    color: var(--lrm-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 600px) {
    .lrm-municipio__others {
        padding: 1.25rem;
        margin-left: -1rem;
        margin-right: -1rem;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }

    .lrm-municipio__grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
}

/* =============================================================================
   CTA SUBSCRIPTION COMPONENT
   ============================================================================= */
.lrm-cta {
    display: flex;
    gap: 1.25rem;
    padding: 1.75rem;
    margin: 2.5rem 0;
    background: linear-gradient(135deg, var(--lrm-primary-light) 0%, #e8f4fd 100%);
    border: 1px solid rgba(var(--lrm-primary-rgb), 0.2);
    border-radius: var(--lrm-radius);
    align-items: flex-start;
}

.lrm-cta__icon {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--lrm-white);
    border-radius: 50%;
    color: var(--lrm-primary);
    box-shadow: var(--lrm-shadow);
}

.lrm-cta__body {
    flex: 1;
    min-width: 0;
}

.lrm-cta__title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--lrm-heading);
    margin: 0 0 0.4rem;
}

.lrm-cta__text {
    font-size: 0.95rem;
    color: var(--lrm-text-secondary);
    margin: 0 0 1rem;
    line-height: 1.5;
}

.lrm-cta__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.lrm-cta__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.25rem;
    border-radius: var(--lrm-radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: transform var(--lrm-transition), box-shadow var(--lrm-transition);
    white-space: nowrap;
}

.lrm-cta__btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--lrm-shadow-md);
}

.lrm-cta__btn--wa {
    background: #25d366;
    color: #fff;
}

.lrm-cta__btn--wa:hover {
    background: #20bd5a;
}

.lrm-cta__btn--newsletter {
    background: var(--lrm-white);
    color: var(--lrm-primary-dark);
    border: 1px solid rgba(var(--lrm-primary-rgb), 0.3);
}

.lrm-cta__btn--newsletter:hover {
    background: var(--lrm-primary);
    color: #fff;
    border-color: var(--lrm-primary);
}

@media (max-width: 600px) {
    .lrm-cta {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 1.5rem 1.25rem;
    }

    .lrm-cta__actions {
        justify-content: center;
        width: 100%;
    }

    .lrm-cta__btn {
        flex: 1;
        justify-content: center;
        min-width: 140px;
    }
}

/* =============================================================================
   AUTOLINK STYLES
   ============================================================================= */
a.lrm-autolink {
    color: var(--lrm-primary-dark);
    text-decoration: underline;
    text-decoration-color: rgba(var(--lrm-primary-rgb), 0.3);
    text-underline-offset: 2px;
    transition: text-decoration-color var(--lrm-transition);
}

a.lrm-autolink:hover {
    text-decoration-color: var(--lrm-primary);
}

/* =============================================================================
   PRINT STYLES
   ============================================================================= */
@media print {
    .lrm-header, .lrm-footer, .lrm-share, .lrm-related,
    .lrm-progress, .lrm-menu-toggle, .lrm-overlay,
    .lrm-hero-stats, .nav-links, .lrm-comments,
    .lrm-toc, .lrm-bottomnav, .lrm-cookie, .lrm-totop,
    .lrm-social, .lrm-breadcrumbs, .skip-link,
    .lrm-cta, .lrm-municipio__others, .lrm-gps {
        display: none !important;
    }

    body {
        background: white;
        color: black;
        font-size: 12pt;
    }

    .lrm-article {
        border: none;
        box-shadow: none;
        padding: 0;
    }

    .lrm-article__content a {
        text-decoration: underline;
    }

    .lrm-article__content a::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        color: #666;
    }
}
