/*
Theme Name: RONROV Blog RTL
Theme URI: https://ronrov.com/
Author: RonRov
Description: עיצוב בלוג RTL בסגנון Tech/SaaS בהיר, מינימלי וחזק.
Version: 7.0.24
License: GNU General Public License v2 or later
Text Domain: ronrov-blog-rtl
*/

:root {
  /* Light, modern "Tech" palette (white + grays only) */
  --bg: #ffffff;
  --bg-soft: #f6f7f9;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --surface-hover: #f3f4f6;

  --text: #111827;        /* almost-black */
  --heading: #0b1220;
  --muted: #6b7280;
  --border: #e5e7eb;
  --border-highlight: #d1d5db;

  --primary: #111827;     /* keep it monochrome */
  --primary-glow: rgba(17, 24, 39, 0.08);

  --radius: 16px;
  --radius-sm: 12px;

  --shadow: 0 20px 40px -24px rgba(15, 23, 42, 0.22);
  --shadow-hover: 0 26px 60px -32px rgba(15, 23, 42, 0.26);

  --font: "Heebo", "Rubik", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --gap: 32px;
  --pad: 24px;
  --content: 72ch;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  background:
    radial-gradient(900px 420px at 18% -10%, rgba(15,23,42,0.055), transparent 62%),
    radial-gradient(760px 340px at 86% 0%, rgba(15,23,42,0.045), transparent 58%),
    var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.sr-only{
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}

*, *::before, *::after {
  box-sizing: border-box;
}

img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  display: block;
}

a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s, background-color 0.2s;
}

a:hover {
  color: #000;
}

.container {
  width: min(1200px, 100% - 40px);
  margin-inline: auto;
}

/* Header */
.site-header {
  position: relative;
  top: auto;
  z-index: 100;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(229, 231, 235, 0.85);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-link{
  display:flex;
  align-items:center;
  gap:12px;
  color: var(--heading);
}

.brand-mark{
  width:38px;
  height:38px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(17,24,39,0.06), rgba(17,24,39,0.02));
}

.brand .custom-logo,
.brand .custom-logo-link img{
  border-radius: 4px;
  display:block;
  width:auto;
  height:auto;
  max-height: 46px;
  max-width: 180px;
}

.site-title{
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
}

.site-title:hover{ color:#000; }

.primary-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 4px;
}

.primary-nav a {
  color: var(--muted);
  padding: 8px 16px;
  border-radius: 10px;
  font-weight: 500;
  font-size: 0.92rem;
  transition: all 0.2s ease;
}

.primary-nav a:hover {
  background: var(--surface-hover);
  color: var(--heading);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--heading);
  padding: 10px 20px;
  font-size: 0.9rem;
}

.btn:hover {
  background: var(--surface-hover);
  border-color: var(--border-highlight);
  transform: translateY(-1px);
}

.btn.primary {
  background: var(--heading);
  border-color: var(--heading);
  color: #fff;
}

.btn.primary:hover {
  background: #000;
  border-color: #000;
}

.search-toggle, .menu-toggle {
  background: transparent;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 8px;
}

.icon{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  line-height:0;
}

.search-toggle:hover, .menu-toggle:hover {
  color: var(--heading);
}

.menu-toggle {
  display: none;
  font-size: 1.5rem;
}

/* Cards */
.card {
  background: linear-gradient(180deg, var(--surface) 0%, rgba(255,255,255,0.92) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.card-inner {
  padding: var(--pad);
}

.card:hover {
  border-color: var(--border-highlight);
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

/* Hero */
.hero {
  padding: 64px 0 34px;
  margin-bottom: 34px;
  border-bottom: 1px solid rgba(229,231,235,0.7);
  background:
    radial-gradient(900px 260px at 70% 10%, rgba(15,23,42,0.06), transparent 60%),
    radial-gradient(800px 220px at 10% 0%, rgba(15,23,42,0.04), transparent 55%);
}

.hero h1 {
  font-size: clamp(2rem, 3.6vw, 3rem);
  font-weight: 800;
  margin: 0 0 16px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--heading);
}

.hero-kicker{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.hero-sub{
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 70ch;
  margin: 0 0 22px;
}

/* Home toolbar */
.home-toolbar{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  padding: 18px 18px;
  margin: 0 0 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
}

.home-toolbar--footer{
  margin: 24px 0 18px;
}

.home-toolbar-title{
  font-weight: 800;
  color: var(--heading);
  letter-spacing: -0.01em;
  padding-top: 2px;
}

.home-toolbar-chips{
  display:flex;
  flex-wrap:wrap;
  justify-content:flex-start;
  gap:8px;
}

.hero p {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 60ch;
  margin-bottom: 24px;
}

.chip {
  display: inline-block;
  padding: 4px 12px;
  margin: 4px;
  border-radius: 99px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--muted);
  transition: 0.2s;
}

.chip:hover {
  border-color: var(--border-highlight);
  color: var(--heading);
}

/* Main Layout */
.main {
  padding: 40px 0 80px;
  background: linear-gradient(180deg, rgba(255,255,255,1) 0%, var(--bg-soft) 140px, var(--bg-soft) 100%);
}

/* Search modal */
.search-modal{
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(17,24,39,0.35);
  backdrop-filter: blur(6px);
  z-index: 999;
}

.search-modal[aria-hidden="false"]{ display:flex; }

.search-panel{
  width: min(720px, 100%);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 6px);
  box-shadow: var(--shadow-hover);
  padding: 18px;
}

.search-panel .row{
  display:flex;
  gap:10px;
  flex-wrap: wrap;
}

.search-panel input[type="search"]{
  flex: 1 1 320px;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 1rem;
  background: var(--surface-2);
  color: var(--heading);
  outline: none;
}

.search-panel input[type="search"]:focus{
  border-color: var(--border-highlight);
  box-shadow: 0 0 0 6px var(--primary-glow);
}

.search-panel button{
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  background: var(--surface);
  color: var(--heading);
  font-weight: 700;
  cursor:pointer;
}

.search-panel button:hover{
  background: var(--surface-hover);
}

.grid-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: var(--gap);
}

.grid-layout--single {
  grid-template-columns: 1fr;
}

/* Single stack */
.single-stack{
  width: min(980px, 100%);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* Single post layout */
.post-single{ overflow: hidden; }

.post-single:hover,
.post-box:hover{
  transform: none;
  box-shadow: var(--shadow);
}

.post-hero-media{
  position: relative;
  background: var(--surface-2);
}

.post-hero-media img{
  display:block;
  width:100%;
  height: clamp(220px, 36vw, 520px);
  object-fit: cover;
}

.post-divider{
  height: 1px;
  background: var(--border);
}

.post-header{
  padding: var(--pad);
}

.post-single-title{
  margin: 0 0 12px;
  font-size: clamp(1.8rem, 3.4vw, 2.8rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--heading);
}

.post-single-meta{
  display:flex;
  flex-wrap:wrap;
  gap: 8px;
}

.post-body{ padding-top: 0; }

.post-footer{
  padding: var(--pad);
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
}

/* Author Card */
.author-card{
  display:flex;
  align-items:center;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-2);
}
.author-avatar img{
  border-radius: 14px;
  border: 1px solid rgba(229,231,235,0.9);
  width: 72px;
  height: 72px;
  background: #fff;
}
.author-meta{
  display:flex;
  flex-direction: column;
  gap: 4px;
}
.author-label{
  font-size: 0.86rem;
  color: var(--muted);
  font-weight: 600;
}
.author-name{
  font-size: 1.02rem;
  font-weight: 900;
  color: var(--heading);
  line-height: 1.2;
}
.author-bio{
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.6;
  margin-top: 2px;
}

/* Comments */
.comments-area h3,
.comments-area .comment-reply-title{
  margin: 0 0 14px;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--heading);
}

.comment-list > li{
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 16px;
  padding: 14px;
}

.comment-list{
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.comment-meta{ margin-bottom: 8px; }

.comment-author .fn{
  font-weight: 800;
  color: var(--heading);
}

.comment-metadata{
  color: var(--muted);
  font-size: 0.85rem;
}

.comments-area input[type="text"],
.comments-area input[type="email"],
.comments-area input[type="url"],
.comments-area textarea{
  width: 100%;
  max-width: 100%;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 14px;
  background: var(--surface-2);
  color: var(--text);
}

.comments-area textarea{ min-height: 140px; resize: vertical; }

.comments-area label{
  display:block;
  margin: 14px 0 6px;
  font-weight: 700;
  color: var(--heading);
}

/* Post Grid */
.post-list {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}

.post-list > :not(article){
  grid-column: 1 / -1;
}

/* First Post - Featured */
.post-list > article:first-child {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.post-list > article:first-child .card-inner {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.post-list > article:first-child .post-thumb img {
  height: 100%;
  object-fit: cover;
  min-height: 350px;
  border-radius: 0;
}

.post-list > article:first-child .post-title {
  font-size: 2rem;
}

/* Regular Post Cards */
.post-card .post-thumb {
  display: block;
  overflow: hidden;
  border-radius: 0;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
}

.post-card .post-thumb img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.post-card:hover .post-thumb img {
  transform: scale(1.05);
}

.post-card { grid-column: span 6; }

/* Pagination */
.pagination{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top: 22px;
}

.page-numbers{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width: 42px;
  height: 42px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--heading);
  font-weight: 700;
}

.page-numbers:hover{
  background: var(--surface-hover);
  border-color: var(--border-highlight);
}

.page-numbers.current{
  background: var(--heading);
  border-color: var(--heading);
  color:#fff;
}

/* Post Card Typography & Layout (Desktop) */
.post-title {
  font-size: 1.15rem;
  margin: 12px 0 8px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.post-title a { color: var(--heading); }
.post-title a:hover { color: var(--primary); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }

.post-meta-line {
  font-size: 0.85rem;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 0;
}

.post-meta-line .meta-item{ font-weight: 600; }
.post-meta-line .meta-sep{ opacity: 0.55; font-weight: 700; }

.post-divider{ height: 1px; width: 100%; background: var(--border); }
.post-card .post-divider{ margin: 14px 0; background: rgba(17,24,39,0.10); }
.post-single .post-divider{ margin: 18px 0; }
.post-single .post-hero-media + .post-divider{ margin: 0; }

.post-excerpt {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 16px;
  text-align: right;
  max-width: 64ch;
}

.post-card .post-meta-line{
  direction: rtl;
  justify-content: flex-end;
  text-align: right;
  width: 100%;
  gap: 10px;
}

.post-card .post-title{
  text-align: right;
  margin-top: 18px;
  margin-bottom: 10px;
}

.post-card .post-byline{
  text-align: right;
  direction: rtl;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--muted);
  margin: 0 0 10px;
}

.post-card .post-readmore{
  display: block;
  text-align: right;
  font-family: inherit;
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.25;
  color: rgba(17,24,39,0.72);
  text-decoration: none;
  margin: 16px 0 10px;
}
.post-card .post-readmore:hover{ color: rgba(17,24,39,0.88); }
.post-divider--after-readmore{ margin: 18px 0 12px !important; }

/* Tags row on cards */
.post-tags-row{
  direction: rtl;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  color: var(--muted);
  font-size: 0.82rem;
  margin: 0;
  overflow: hidden;
}
.post-tags-label{ font-weight: 700; color: var(--muted); }
.post-tags-links{
  display: inline-flex;
  flex-wrap: nowrap;
  gap: 6px;
  align-items: center;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.post-tags-links .tag-item{ display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.post-tags-row .tag-sep{ opacity: 0.55; font-weight: 700; }
.post-divider--after-tags{ margin: 14px 0 0 !important; }

/* Single Box Tags */
.post-box-title{ font-weight: 800; color: var(--heading); margin: 0 0 10px; font-size: 1rem; }
.post-box-tags{ display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.post-box-tag-link{ font-weight: 700; font-size: 0.9rem; color: var(--muted); text-decoration: none; }
.post-box-tag-link:hover{ color: var(--heading); }
.post-box-tag-sep{ opacity: 0.35; font-weight: 800; }

/* Entry Content (Post Body) */
.entry h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 0.5em; color: var(--heading); }
.entry-content, .entry-content *{ font-family: inherit; letter-spacing: normal; }
.entry-content{ font-size: 1.06rem; line-height: 1.95; text-align: right; color: var(--text); }
.entry-content p{ margin: 0 0 1.05em; }
.entry-content a{ text-decoration: underline; text-underline-offset: 3px; color: var(--primary); }
.entry-content ul, .entry-content ol{ margin: 0 0 1.2em; padding-inline-start: 1.2em; }
.entry-content li{ margin: 0.35em 0; }
.entry-content h2{ color: var(--heading); font-size: 1.8rem; margin-top: 1.5em; letter-spacing: -0.01em; }
.entry-content h3, .entry-content h4{ letter-spacing: -0.01em; color: var(--heading); }
.entry-content code, .entry-content pre, .entry-content kbd, .entry-content samp{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

/* Sidebar */
.widget-title {
  font-size: 1rem;
  font-weight: 700;
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
  margin-bottom: 16px;
  color: var(--heading);
}
.widget ul li { margin-bottom: 8px; }
.widget ul li a { color: var(--muted); display: block; padding: 4px 0; }
.widget ul li a:hover { color: var(--primary); padding-right: 4px; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface-2);
  padding: 40px 0;
  color: var(--muted);
  font-size: 0.9rem;
}
.footer-inner { display: flex; justify-content: space-between; align-items: center; }
.footer-inner ul { display: flex; gap: 20px; list-style: none; margin: 0; padding: 0; }

/* Home tags at bottom */
.home-tags-wrap{ margin-top: 18px; }
.home-tags-inline{
  border: 1px solid var(--border);
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border-radius: 18px;
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.home-tags-title{ font-weight: 800; color: var(--heading); font-size: 0.95rem; line-height: 1.1; flex: 0 0 auto; }
.home-tags-links{ display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; }
.home-tag-link{ font-weight: 700; font-size: 0.9rem; color: var(--muted); text-decoration: none; white-space: nowrap; }
.home-tag-link:hover{ color: var(--heading); }
.home-tag-sep{ opacity: 0.35; font-weight: 800; }

/* =========================================================
   RESPONSIVE DESIGN (TABLET & DESKTOP ADJUSTMENTS)
========================================================= */
@media (max-width: 980px){
  .post-card { grid-column: span 12; }
}

@media (max-width: 900px) {
  .grid-layout { grid-template-columns: 1fr; }
  .post-list > article:first-child { grid-template-columns: 1fr; }
  .post-list > article:first-child .post-thumb img { min-height: auto; aspect-ratio: 16/9; }
  .menu-toggle { display: block; }
  .primary-nav { display: none; }
  
  body.menu-open .primary-nav {
    display: block; position: absolute; top: 70px; left: 0; right: 0;
    background: rgba(255,255,255,0.96); padding: 20px; border-bottom: 1px solid var(--border);
  }
  body.menu-open .primary-nav ul { flex-direction: column; gap: 16px; }
}

@media (max-width: 720px){
  .author-card{ padding: 14px 14px; }
  .author-avatar img{ width: 56px; height: 56px; }
  .home-tags-inline{ padding: 14px; flex-direction: column; align-items: flex-start; gap: 10px; }
  .home-tags-links{ gap: 10px; }
}

/* Hide app bar globally since we are replacing it with a cleaner mobile design */
.mobile-appbar{ display:none !important; }

/* =========================================================
   NEW INDEPENDENT MOBILE DESIGN (NO IMAGE CROPPING)
========================================================= */
@media (max-width: 768px) {
  /* Prevent horizontal scrolling entirely */
  html, body { overflow-x: hidden; }
  
  /* Reset padding from older mobile setups */
  body { padding-bottom: 0 !important; }
  .site-main { padding: 12px !important; }
  
  /* Make header elements slightly more compact */
  .site-header { padding: 10px 0; }
  .header-inner { gap: 10px; height: 64px; }
  .brand .custom-logo, .brand .custom-logo-link img {
    max-height: 30px;
    max-width: 120px;
    width: auto;
    height: auto;
    object-fit: contain;
  }
  .menu-toggle, .search-toggle { width: 44px; height: 44px; border-radius: 14px; }

  /* ----------------------------------------------------
     THE FIX: STOP IMAGE CROPPING ON MOBILE
  ----------------------------------------------------- */
  .post-card .post-thumb img,
  .post-list > article:first-child .post-thumb img,
  .post-hero-media img {
    width: 100% !important;
    height: auto !important; /* Let image scale naturally */
    aspect-ratio: auto !important; /* Cancel the 16/9 from desktop */
    max-height: none !important;
    object-fit: contain !important; /* Ensure whole image is visible */
    background-color: var(--surface-2);
    display: block !important;
    border-radius: 16px 16px 0 0 !important;
  }

  /* Force 1-column layout for grid */
  .post-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
  }

  /* Card Redesign for Mobile */
  .post-card, 
  .post-list > article:first-child {
    border-radius: 16px !important;
    background: var(--surface) !important;
    border: 1px solid var(--border) !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.04) !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    text-align: right !important;
  }

  .post-card .card-inner,
  .post-list > article:first-child .card-inner {
    padding: 20px !important;
    text-align: right !important;
  }

  /* Typography formatting to prevent text breaking outside */
  .post-card .post-title,
  .post-card .post-excerpt,
  .post-card .post-readmore,
  .post-card .post-byline,
  .post-card .post-tags-row {
    text-align: right !important;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .post-card .post-title,
  .post-list > article:first-child .post-title {
    font-size: 1.45rem !important;
    line-height: 1.3 !important;
    margin: 0 0 12px !important;
  }

  /* Keep meta line wrapped neatly on the right */
  .post-card .post-meta-line {
    justify-content: flex-end !important;
    gap: 8px !important;
    margin-bottom: 12px !important;
    font-size: 0.85rem !important;
    flex-wrap: wrap !important;
    white-space: normal !important;
    overflow: visible !important;
  }

  .post-card .post-excerpt {
    font-size: 1rem !important;
    line-height: 1.6 !important;
    margin-bottom: 20px !important;
  }

  /* New Read More Button Design */
  .post-card .post-readmore {
    display: block !important;
    text-align: center !important;
    background: var(--surface-2) !important;
    border: 1px solid var(--border) !important;
    color: var(--heading) !important;
    padding: 12px !important;
    border-radius: 12px !important;
    font-weight: 700 !important;
    margin: 0 0 12px 0 !important;
    transition: background 0.2s !important;
  }
  .post-card .post-readmore:active { background: var(--border) !important; }

  /* Hide unnecessary dividers for a cleaner app look */
  .post-card .post-divider { display: none !important; }

  /* Tags wrap neatly */
  .post-card .post-tags-row {
    margin-top: 10px !important;
    font-size: 0.82rem !important;
  }
  .post-tags-links { overflow: visible !important; white-space: normal !important; }
  .post-card .tag-link { font-size: 0.82rem !important; }
}