body {
  margin: 0;
  font-family: var(--font-body) !important;
  background: var(--color-bg);
  color: var(--color-text);
}

body.theme-no-scroll {
  overflow: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
}

body.admin-bar {
  padding-top: 36px !important;
}

.admin-bar {
  background: #1e1e1e;
  padding: 7px 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 15px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  font-family: Arial, sans-serif;
  z-index: 20;
  height: 36px;
  box-sizing: border-box;
}

.admin-bar > div {
  display: flex;
  align-items: center;
}

.admin-bar a {
  color: #ddd;
  text-decoration: none;
  margin-right: 15px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.admin-bar a:hover {
  color: #8c8c8c;
}

.admin-bar .logo-link img {
  height: 22px;
  display: block;
}

.post-meta{
    display:flex;
    flex-wrap:wrap;
    align-items:center;
    gap:4px;
    margin-top:6px;
    font-size:13px;
    line-height:1.35;
    color:inherit;
}

.post-meta-author,
.post-meta-date,
.post-meta-category{
    color:inherit;
    opacity:.95;
}

.post-meta-category{
    text-decoration:none;
}

.post-meta-separator{
    opacity:.6;
}

.comment-emoji-picker-box{
    position:relative;
}

.comment-emoji-textarea{
    padding-right:55px;
}

.comment-emoji-picker-toggle{
    position:absolute;
    right:14px;   
    bottom:4px;    
    border:0!important;
    background:none!important;
    box-shadow:none!important;
    padding:0!important;
    margin:0!important;
    min-width:auto!important;
    width:auto!important;
    height:auto!important;
    color:inherit!important;
    opacity:0.6;
    font-size:20px;  
    cursor:pointer;
    line-height:1;
}

.comment-emoji-picker-popup{
    position:absolute;
    right:0;
    bottom:28px;
    width:242px;
    padding:5px;
    background:#fff;
    border:1px solid #ddd;
}

.draft-warning-banner {
    background-color: rgba(30, 41, 59, 0.9); 
    color: #ffffff;
    text-align: center;
    padding: 12px 20px;
    font-size: 15px;
    border-bottom: 2px solid #eab308; 
    backdrop-filter: blur(4px); 
    position: sticky;
    top: 33px; 
    z-index: 60; 
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.draft-warning-banner strong {
    color: #fef08a; 
}

.theme-menu-icon {
  width: 16px;
  height: 16px;
  margin-left: 2px;
  display: inline-flex;
}

.blog-hero {
  position: relative;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  padding: 14px 4px;
  background-color: transparent !important;
}

.blog-hero[style*="url"] {
  min-height: 150px;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-overlay.dark {
  background: rgba(0, 0, 0, 0.45);
}

.hero-overlay.light {
  background: rgba(255, 255, 255, 0.35);
}

.blog-hero[style*="background-image: none"],
.blog-hero:not([style*="url"]) {
  background-color: transparent !important;
  min-height: 0 !important;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: #ffffff;
  max-width: var(--container-width, 1280px);
  margin: 0 auto;
  width: 100%;
  padding: 0 25px;
}

.blog-hero[style*="background-image: none"] .hero-content,
.blog-hero:not([style*="url"]) .hero-content {
  text-align: left;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.hero-logo {
  width: auto;
  height: auto;
  flex-shrink: 0;
  object-fit: contain;
}

.blog-hero[style*="url"] .hero-logo {
  width: auto;
  margin-bottom: 12px;
}

.hero-title {
  margin: 0 0 8px 0;
  font-size: 26px;
  line-height: 1.1;
  font-weight: 700;
  color: var(--color-blog-name);
}

.hero-desc {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.6;
  width: 100%;
}

.blog-hero[style*="url"] .hero-content {
  text-align: center;
}

.blog-hero[style*="background-image: none"] .hero-desc,
.blog-hero:not([style*="url"]) .hero-desc {
  text-align: left;
}

.theme-header {
  background: var(--menu-bg, var(--color-background));
  border-bottom: var(--header-border-bottom);
  border-top: var(--header-border-top);
  position: relative;
  z-index: 20;
}

.theme-header-inner {
  max-width: var(--container-width);
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 5px 15px;
}

.theme-header-center {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 0 1 auto;
  min-width: 0;
  overflow: visible;
}

.theme-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.theme-header-right {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.theme-branding {
  display: flex;
  align-items: center;
  gap: 14px;
}

.theme-branding-text h1,
.theme-branding-text p {
  margin: 0;
}

.theme-blog-logo {
  display: block;
  height: auto;
}

.theme-menu-align-justified .theme-header-inner {
  justify-content: space-between;
}

.theme-menu-align-justified .theme-header-center {
  justify-content: flex-start;
}

.theme-menu-align-justified .theme-header-right {
  margin-left: auto;
}

.theme-menu-align-center .theme-header-inner {
  justify-content: center;
}

.theme-menu-align-center .theme-branding {
  display: none;
}

.theme-menu-align-center .theme-header-center {
  justify-content: center;
}

.theme-menu-align-center .theme-header-right {
  margin-left: 15px;
}

.theme-menu-align-left .theme-header-inner {
  justify-content: flex-start;
}

.theme-menu-align-left .theme-branding {
  display: none;
}

.theme-menu-align-left .theme-header-center {
  justify-content: flex-start;
}

.theme-menu-align-left .theme-header-right {
  margin-left: 15px;
}

.theme-menu-align-right .theme-header-inner {
  justify-content: flex-end;
}

.theme-menu-align-right .theme-branding {
  display: none;
}

.theme-menu-align-right .theme-header-center {
  justify-content: flex-end;
}

.theme-menu-align-right .theme-header-right {
  margin-left: 15px;
}

.theme-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  font-weight: 600;
  padding: var(--menu-padding-y) 0;
}

.theme-nav-item {
  position: relative;
}

.theme-nav-item > a {
  color: var(--menu-text, var(--color-primary));
  text-decoration: none;
  padding: 6px 4px;
  transition: opacity 0.2s ease;
}

.theme-nav-item > a:hover {
  color: #e0e0e0;
  opacity: 0.7;
}

.theme-nav-dropdown {
  position: absolute;
  top: calc(100% + 3px);
  left: 0;
  min-width: 200px;
  color: var(--color-text);
  background: var(--surface, #fff);
  border-radius: var(--dropdown-radius);
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0,0,0,0.12);
  padding: 0;
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
  transition: all 0.2s ease;
  z-index: 30;
}

.theme-nav-item:hover .theme-nav-dropdown {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.theme-nav-dropdown a {
  display: block;
  padding: 10px 14px;
  font-size: 14px;
  color: var(--color-text);
  text-decoration: none;
  transition: opacity 0.15s ease;
}

.theme-nav-dropdown a:hover {
  color: var(--color-primary);
  background: var(--surface, #f8f9fa);
}

.theme-header-socials {
  display: flex;
  align-items: center;
  gap: 10px;
}

.theme-header-socials a:not(.theme-social-btn) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--social-btn-size);
  height: var(--social-btn-size);
  background: var(--social-btn-bg);
  color: var(--social-btn-color) !important;
  border-radius: var(--social-btn-radius);
  line-height: 1;
  transition: opacity 0.2s ease;
}

.theme-header-socials a i {
  color: inherit;
  font-size: 18px;
  flex-shrink: 0;
}

.theme-header-socials a:hover {
  color: var(--color-primary);
}

.article-socials {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--color-border);
}

.article-socials-label {
  margin-bottom: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
}

.article-socials-icons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.article-share{
  display:flex;
  align-items:center;
  margin-top:20px;
}

.article-share-label{
  margin-right:10px;
}

.article-share-buttons{
  display:flex;
  align-items:center;
  gap:10px;
}

.article-like{
    margin-left:auto;
    display:flex;
    align-items:center;
    gap:6px;
    padding:2px 0;
    border:0;
    background:none;
    color:var(--color-text);
    cursor:pointer;
    transition:.18s;
}

.article-like:hover i{
    transform:scale(1.15);
}

.article-like i{
    width:26px;
    height:26px;
    transition:.18s;
}

.article-like-count{
    font-size:18px;
    font-weight:700;
}

.article-like.liked{
    color:#e53935;
}

.theme-search-toggle,
.theme-mobile-toggle,
.theme-mobile-close,
.theme-search-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--search-btn-size);
  height: var(--search-btn-size);
  border-radius: var(--search-btn-radius);
  line-height: 1;
  background: transparent;
  color: var(--search-btn-color);
  transition: opacity 0.2s ease;
 text-shadow: 0 0 1px rgba(0,0,0,0.35);
}

.theme-search-btn-bg {
  background: var(--search-btn-bg);
  color: #fff !important;
}

.theme-social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--social-btn-size);
  height: var(--social-btn-size);
  border-radius: var(--social-btn-radius);
  text-decoration: none;
  transition: opacity 0.2s ease;
  background: transparent;
  color: var(--social-btn-color);
  border: var(--social-btn-border, 1px solid var(--color-primary));
}

.theme-social-btn-bg {
  background: var(--social-btn-bg);
  color: #ffffff !important;
}

.theme-social-btn i {
  width: 60%;
  height: 60%;
  display: block;
  background-color: currentColor;
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}

.theme-social-btn:hover {
  opacity: 0.8;
}

.theme-search-toggle i,
.theme-mobile-toggle i,
.theme-mobile-close i,
.theme-search-close i {
  width: 100%;
  height: 100%;
  display: block;
    background-color: currentColor !important;
  -webkit-mask-size: contain !important;
  mask-size: contain !important;
  -webkit-mask-repeat: no-repeat !important;
  mask-repeat: no-repeat !important;
  -webkit-mask-position: center !important;
  mask-position: center !important;
}

.theme-search-toggle:hover,
.theme-mobile-toggle:hover,
.theme-mobile-close:hover,
.theme-search-close:hover {
  opacity: 0.8;
}

.theme-mobile-toggle {
  display: none;
}

.theme-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 90;
  display: none;
}

.theme-overlay.active {
  display: block;
}

.theme-mobile-panel {
  position: fixed;
  top: 0;
  left: 0;
  width: min(350px, 85vw);
  height: 100vh;
  background: #fff;
  z-index: 100;
  overflow-y: auto;
  color: #000;
  box-shadow: 10px 0 30px rgba(0,0,0,0.18);
  background: #ffffff;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}

.theme-mobile-panel.open {
  transform: translateX(0);
}

.theme-mobile-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 2;
}

.theme-mobile-logo {
  max-height: 42px;
  max-width: 160px;
}

.theme-mobile-panel-body {
  padding: 12px 16px 24px;
}

.theme-mobile-nav {
  display: flex;
  flex-direction: column;
}

.theme-mobile-menu-item {
  border-bottom: 1px solid var(--color-border);
}

.theme-mobile-menu-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.theme-mobile-menu-row > a {
  display: block;
  padding: 16px 0;
  font-weight: 600;
  flex: 1;
  transition: opacity 0.2s ease;
  color: #111 !important;
}

.theme-mobile-menu-row > a:hover {
  color: var(--color-primary);
}

.theme-mobile-submenu-toggle {
  width: 36px;
  height: 36px;
  background: transparent;
  color: #000;
  border: none;
  font-size: 28px;
  line-height: 1;
  padding: 0;
  transition: opacity 0.2s ease;
}

.theme-mobile-submenu-toggle:hover {
  opacity: 0.8;
}

.theme-mobile-submenu {
  display: none;
  padding: 0 0 10px 12px;
}

.theme-mobile-menu-item.open .theme-mobile-submenu {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.theme-mobile-submenu a {
  display: block;
  padding: 6px 0;
  transition: opacity 0.2s ease;
  color: #111 !important;
}

.theme-mobile-submenu a:hover {
  color: var(--color-primary);
}

.theme-mobile-socials {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.theme-mobile-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  transition: opacity 0.2s ease;
}

.theme-mobile-socials a:hover {
  color: var(--color-primary);
}

.theme-search-overlay {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 80px 20px 20px;
}

.theme-search-overlay.active {
  display: flex;
}

.theme-search-box {
  width: min(760px, 100%);
  background: #fff;
  border-radius: min(var(--input-radius), 30px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.20);
  padding: 20px;
  position: relative;
  z-index: 111;
}

.theme-search-form {
  display: flex;
  gap: 12px;
}

.theme-search-form input {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border-radius: var(--input-radius);
  border: var(--input-border);
  outline: none;
  font-size: 15px;
  box-sizing: border-box;
}

.theme-search-form button {
  padding: var(--button-padding);
}

.theme-search-close {
  position: absolute;
  top: 12px;
  right: 12px;
  transition: opacity 0.2s ease;
}

.theme-search-close:hover {
  opacity: 0.8;
}

.theme-main {
  min-height: 58vh;
  max-width: var(--container-width, 1100px);
  margin: var(--content-spacing-top, 15px) auto 0;
  padding: 0 20px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--sidebar-width, 340px);
  gap: 24px;
}

.theme-main.no-sidebar {
  grid-template-columns: 1fr;
}

.theme-content {
  min-width: 0;
}

.theme-sidebar {
  margin-top: var(--sidebar-spacing-top);
  width: 100%;
}


.home-intro {
  padding: 0;
  border: none;
  background: transparent;
}


.homepage-wrap {
  background: var(--surface);
  color: var(--color-text);
  border-radius: var(--card-radius);
  border: var(--article-border, none);
  padding: 5px 18px 10px 18px;
  min-height: 100%;
  display: block;
  overflow: hidden;
}

.home-featured {
  position: relative;
  margin: 0 0 18px;
  overflow: hidden;
  border-radius: var(--card-radius);
  box-sizing: border-box;
}

.home-featured img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
  border-radius: var(--card-radius);
}

.home-featured .overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 24px;
  color: #fff;
  background: linear-gradient(to top, rgba(0,0,0,0.78), transparent);
}

.home-featured h1 {
  margin: 0 0 8px;
  font-size: 28px;
  line-height: 1.15;
}

.home-featured p {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  opacity: 0.95;
}

.home-grid {
  display: grid;
  gap: 16px;
}

.grid-item {
  position: relative;
  overflow: hidden;
  display: block;
  border-radius: var(--card-radius);
  background: var(--surface);
  box-sizing: border-box;
}

.grid-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  transform: none !important;
  transition: none !important;
}

.grid-item .overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 12px;
  color: #fff;
  background: linear-gradient(to top, rgba(0,0,0,0.72), transparent);
}

.grid-item h3 {
  margin: 0;
  font-size: 15px;
  line-height: 1.3;
}

.home-grid-top,
.home-grid-rest,
.home-grid,
.posts-grid {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.homepage-layout-grid .home-grid {
  grid-template-columns: repeat(3, 1fr);
}

.homepage-layout-magazine .home-grid-top {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-auto-rows: 180px;
  gap: 16px;
}

.homepage-layout-magazine .home-grid-top .grid-item:first-child {
  grid-row: span 2;
}

.homepage-layout-magazine .home-grid-top .grid-item:first-child img {
  height: 100%;
}

.homepage-layout-magazine .home-grid-top .grid-item:not(:first-child) img {
  height: 180px;
}

.homepage-layout-magazine .home-grid-rest {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 16px;
}

.homepage-layout-magazine .home-grid-rest .grid-item img {
  height: 200px;
}

.homepage-layout-minimal .home-grid {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.homepage-layout-minimal .post-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: transparent;
  border-radius: 0;
}

.homepage-layout-minimal .post-link {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.homepage-layout-minimal .grid-item img {
  width: 240px;
  height: 160px;
  object-fit: cover;
  border-radius: var(--image-radius);
  flex-shrink: 0;
}

.homepage-layout-minimal .post-body {
  flex: 1;
}

.homepage-layout-minimal .post-title {
  font-size: 18px;
  line-height: 1.5;
  color: var(--color-text);
}

.homepage-layout-minimal .post-excerpt {
  margin-top: 6px;
}

.posts-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.post-card {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: var(--surface);
  border: var(--article-border);
  border-radius: var(--card-radius);
  box-shadow: var(--shadow-soft);
  padding: 12px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-sizing: border-box;
}

.post-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.08);
}

.post-link {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  width: 100%;
  text-decoration: none;
  color: inherit;
}

.post-thumb img {
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: var(--image-radius);
  transition: transform 0.3s ease;
}

.post-body {
  flex: 1;
  min-width: 0;
}

.post-title {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.35;
  margin: 0 0 6px;
  color: var(--color-text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.post-excerpt {
  font-size: 14px;
  color: var(--color-primary);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article {
  background: var(--surface, #fff);
  color: var(--color-text, #111);
  border: var(--article-border);
  border-radius: var(--card-radius, 12px);
  padding: 22px;
}

.article-title {
  font-size: var(--title-font-size, 28px);
  font-weight: 700;
  margin: 0 0 10px;
  font-family: var(--font-heading) !important;
  color: var(--color-text);
}

.article-desc {
  font-size: 15px;
  color: #555;
  margin: 0 0 15px;
  line-height: 1.6;
  color: var(--color-text);
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #777;
  margin-bottom: 20px;
}

.article-meta-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.article-meta-line1,
.article-meta-line2 {
  display: flex;
  flex-wrap: wrap;
  gap: 1px;
  font-size: 13px;
  line-height: 1.3;
}

.author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
}

.author-name {
  font-weight: 600;
}

.article-date {
  font-size: 13px;
  opacity: 0.8;
}

.article-image {
    display: block;
    margin: 15px auto !important;
    max-width: 100% !important;
    width: auto !important;     
    height: auto !important;
}

.article-content {
  line-height: var(--content-line-height);
  font-size: var(--content-font-size);
}

/* Garante que nenhum iframe/vídeo rebenta o layout em telemóveis */
.article-content iframe,
.article-content embed,
.article-content object {

    max-width: 100% !important;
    display: block;
    margin: 25px auto;
    border: none;
}

.article-content img {
  max-width: 100%;  
  height: auto;   
  width: auto;  
}
.article-content iframe {
  position: relative;
  z-index: 1;
}

.article-content * {
  pointer-events: auto;
}

.article-content p:first-child {
  margin-top: 0;
}

.article-tags {
  margin-top: 20px;
}

.tag {
  display: inline-block;
  background: var(--surface);
  color: var(--color-text);
  border: 1px solid var(--color-border);
  padding: 6px 10px;
  border-radius: 20px;
  margin: 5px 5px 0 0;
  font-size: 14px;
}

.article-share a {
  transition: opacity 0.2s ease;
}

.article-share a:hover {
  color: var(--color-primary);
}

.related {
  margin-top: 40px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.related-item {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  height: 100%;
}

.related-item img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: var(--card-radius);
  transition: transform 0.2s ease;
}

.related-item span {
  padding-top: 10px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--color-text);
  word-break: break-word;
  transition: color 0.15s ease;
}

.related-item:hover img {
  transform: scale(1.02);
}

.related-item:hover span {
  color: var(--color-primary);
}

.theme-widget {
  margin-bottom: 20px;
}

a {
  color: var(--color-link);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

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

button {
  background: var(--button-bg);
  color: var(--button-text);
  border-radius: var(--button-radius);
  border: var(--button-border);
  cursor: pointer;
  transition: opacity 0.2s ease;
}

button:hover {
  opacity: 0.85;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: var(--button-padding);
  background: var(--button-bg);
  color: var(--button-text);
  border-radius: var(--button-radius);
  border: var(--button-border);
  cursor: pointer;
  transition: opacity 0.2s ease;
  font-size:14px;
  font-weight: bold;
}
.btn:hover {
  background: var(--color-primary);
}


.widget {
  background: var(--surface);
  color: var(--color-text);
  padding: 15px;
  border-radius: var(--card-radius);
  border: var(--sidebar-card-border);
}

.widget a {
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.widget-archive .archive-row{
    display:flex;
    gap:4px;
    align-items:center;
    margin:6px 0;
}

.widget-archive .archive-year{
    width:42px;
    font-weight:700;
}

.widget-archive .archive-month{
    text-decoration:none;
    font-weight:600;
}

.widget-archive .archive-empty{
    opacity:.2;
}

.widget a:hover {
  color: var(--color-primary);
}

.widget-random {
  background: var(--surface);
  color: var(--color-text);
  padding: 15px;
}

.widget .theme-social-btn {
  color: var(--social-btn-color) !important;
}

.widget-title {
  margin: 0 0 10px;
  font-size: 17px;
}

.followers-count{
    float:right;

    margin-left:6px;

    font-size:13px;
    font-weight:400;

    color:var(--color-text);
    opacity:.60;

    text-decoration:none;

    position:relative;
    top:4px;
}

.followers-count strong{
    font-weight:700;
}

.followers-count:hover{
    color:var(--color-primary);
}

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

.widget-list li {
  margin-bottom: 10px;
}

.widget-list li:last-child {
  margin-bottom: 0;
}

.widget-post {
  margin-bottom: 12px;
}

.widget-post-link {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

.widget-post-thumb {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.widget-post-title {
  margin-top: 4px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--color-text);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.widget-post-link:hover .widget-post-title {
  color: var(--color-primary);
}

.tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.profile-widget {
  text-align: center;
}

.profile-avatar {
  width: 120px;
  height: 120px;
  border-radius: var(--profile-radius);
  margin-bottom: 10px;
  border: var(--profile-border);
  object-fit: cover;
}

.profile-name {
  font-weight: 600;
  margin-bottom: 6px;
}

.profile-link {
  font-size: 15px;
  transition: opacity 0.2s ease;
}

.profile-link:hover {
  opacity: 0.8;
}

.blog-social-links {
  display: flex;
  font-size: 20px;
  gap: 6px;
  flex-wrap: wrap;
}

.blog-social-link {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s ease;
}

.blog-social-link:hover {
  opacity: 0.8;
}

.widget-search form {
  position: relative;
  width: 100%;
}

.widget-search input {
  width: 100%;
  height: 44px;
  padding: 0 42px 0 14px;
  border-radius: var(--input-radius);
  border: var(--input-border);
  font: inherit;
  background: var(--surface);
  color: var(--color-text);
  box-sizing: border-box;
  transition: all 0.2s ease;
}

.widget-search input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(0,0,0,0.05);
}

.widget-search button {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  color: var(--color-primary);
}

.widget-search button:hover {
  color: var(--color-primary);
}

.subscribe-btn {
  display: block;
  width: 100%;
  box-sizing: border-box;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  padding: 10px;
  border-radius: var(--button-radius);
  background: var(--color-primary);
  color: #fff !important;
  border: none;
  text-decoration: none;
  cursor: pointer;
}

.subscribe-btn:hover {
  opacity: 0.8;
}

.theme-footer {
  background: var(--surface);
  border-top: 1px solid var(--color-border);
  margin-top: 30px;
}

.theme-footer-inner {
  max-width: var(--container-width);
  margin: auto;
  padding: 12px 20px;
  text-align: center;
}

.theme-footer-links {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
  margin-bottom: 14px;
  font-size: 14px;
}

.theme-footer-links a {
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.theme-footer-links a:hover {
  color: var(--color-primary);
}

.theme-footer-copy {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 14px;
}

.theme-footer-logo {
  height: 18px;
  width: auto;
}

.verified-badge {
  color: #1da1f2;
  font-size: 1em;
  margin-left: 4px;
  display: inline-block;
  transform: translateY(-2px);
}

.comments {
  margin-top: 40px;
  font-family: var(--font-body);
}

.comments-card,
.comment-card {
  background: var(--surface);
  color: var(--color-text);
  border: var(--article-border, 1px solid var(--color-border));
  border-radius: var(--card-radius);
  padding: 15px;
  margin-bottom: 15px;
  font-size: 15px;

  position: relative;
}

.comment-card.menu-open,
.comment-reply-item.menu-open {
  z-index: 1;
}

.comments-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 15px;
  font-size: 16px;
}

.comments-header h3 {
  font-weight: 500;
  margin: 0;
  color: var(--color-text);
}

.comments-manage-link {
  font-size: 13px;
  color: var(--color-link);
  text-decoration: none;
}

.comment-alert {
  background: rgba(0,0,0,0.04);
  color: var(--color-text);
  border-radius: var(--input-radius);
  padding: 10px 12px;
  margin-bottom: 12px;
}

.comment-disabled {
  opacity: 0.75;
  font-size: 14px;
  color: var(--color-text);
}

.comment-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.comment-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.comment-form input,
.comment-form textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border-radius: min(var(--input-radius), 20px);
  border: var(--input-border);
  background: var(--surface);
  color: var(--color-text);
  font: inherit;
}

.comment-form textarea {
  min-height: 100px;
  resize: vertical;
}

.comment-form-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.comment-form-actions button[type="submit"] {
  padding: var(--button-padding);
}

.comment-author-line {
  font-weight: 600;
}

.comment-submeta {
  font-size: 13px;
  color: #777;
  margin-top: 2px;
  display: flex;
  gap: 8px;
  align-items: center;
}

.comment-form button,
.comment-cancel-reply,
.comments-more-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--button-padding);
  border-radius: var(--button-radius);
  border: var(--button-border);
  background: var(--button-bg);
  color: var(--button-text);
  font: inherit;
  cursor: pointer;
}

.comment-cancel-reply {
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

.comment-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.comment-left {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
  flex: 1;
}

.comment-avatar {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  object-fit: cover;
  flex-shrink: 0;
  display: block;
  background: #f2f2f2;
  border: 1px solid var(--color-border);
}

.comment-meta {
  min-width: 0;
  flex: 1;
}

.comment-meta-top {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
}

.comment-text {
  margin-top: 6px;
}

.comment-reply-item .comment-avatar {
  width: 34px;
  height: 34px;
}

.comment-reply-item .comment-left {
  gap: 10px;
}

.comment-author,
.comment-author a {
  font-weight: 600;
  color: var(--color-link);
  text-decoration: none;
}

.comment-author-anon-name {
  color: var(--color-text);
  font-weight: 600;
}

.comment-anon-label {
  opacity: 0.6;
  font-size: 12px;
  color: var(--color-text);
}

.comment-date {
  font-size: 12px;
  opacity: 0.65;
  color: var(--color-text);
}

.comment-text {
  line-height: 1.6;
  color: var(--color-text);
  font-size: 16px;
}

.comment-actions {
  z-index: 2;
  position: relative;
  flex-shrink: 0;
}

.comment-actions-toggle {
  background: transparent;
  border: none;
  color: var(--color-text);
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 6px;
  z-index: 1;
}

.comment-actions-menu {
  display: none;
  position: absolute;
  right: 0;
  top: 24px;
  min-width: 140px;
  background: var(--surface);
  border: 1px solid var(--color-border);
  border-radius: var(--card-radius);
  overflow: hidden;

  box-shadow: 0 10px 24px rgba(0,0,0,0.08);
}

.comment-actions-menu a {
  display: block;
  padding: 8px 10px;
  font-size: 13px;
  color: var(--color-text);
  text-decoration: none;
}

.comment-actions-menu a:hover {
  color: var(--color-primary);
}

.comment-replies {
  margin-left: 20px;
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.comment-reply-item {
  padding-left: 10px;
  font-size: 0.95em;
  color: var(--color-text);
}

.comment-replying-to{
    font-size:13px;
    color:#777;
    opacity:.85;

    margin-top:2px;
    margin-bottom:8px;

    display:flex;
    align-items:center;
    gap:5px;
}
.comment-replying-to::before{
    content:"↳";
    font-size:12px;
    opacity:.7;
}

.comment-reply-item .comment-text {
  font-size: 16px;
}

.comment-reply-slot {
  margin-top: 12px;
}

.comments-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 15px;
}

.comments-more-btn {
  min-width: 140px;
}

.comment-pending-badge {
  font-size: 12px;
  color: #d92d20;
  font-weight: 600;
}

.comment-report-badge {
  font-size: 12px;
  color: #ff6b00;
  font-weight: 600;
}

.pending {
  opacity: 0.78;
  border-style: dashed;
}

.cookie-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  padding: 12px 16px;
  background: var(--surface);
  color: var(--color-text);
  border-top: 1px solid rgba(0,0,0,0.08);
  z-index: 9999;
  box-shadow: 0 -5px 20px rgba(0,0,0,0.08);
}

.cookie-text {
  font-size: 14px;
  line-height: 1.4;
}

.cookie-text a {
  color: var(--color-link);
  text-decoration: none;
}

.cookie-text a:hover {
  color: var(--color-primary);
}

.cookie-bar .subscribe-btn {
  width: auto;
  padding: 8px 16px;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .theme-mobile-toggle {
    display: inline-flex;
  }

  .theme-nav,
  .theme-header-socials {
    display: none;
  }

  .theme-header-inner {
    padding: calc(var(--menu-padding-y) / 1.2) 14px;
    flex-wrap: nowrap;
  }

  .hero-content {
    position: relative;
    top: auto;
    transform: none;
    padding: 0 12px;
    width: 100%;
  }

  .hero-title {
    font-size: 20px;
  }

  .theme-main {
    display: block;
    padding: 0 10px;
  }

  .theme-content,
  .theme-sidebar {
    width: 100%;
  }

  .theme-sidebar {
    margin-top: 20px;
  }

  .article {
    padding: 14px;
  }

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

  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .home-featured img {
    height: 300px;
  }

  .homepage-layout-magazine .home-grid-top {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: auto;
  }

  .homepage-layout-magazine .home-grid-top .grid-item:first-child {
    grid-column: span 2;
    grid-row: auto;
  }

  .homepage-layout-magazine .home-grid-top .grid-item img {
    height: 220px;
  }

  .homepage-layout-magazine .home-grid-rest,
  .homepage-layout-grid .home-grid {
    grid-template-columns: 1fr 1fr;
  }

  .homepage-layout-magazine .home-grid-rest .grid-item img,
  .homepage-layout-grid .home-grid .grid-item img {
    height: 200px;
  }

  .homepage-layout-minimal .grid-item {
    flex-direction: row;
  }

  .homepage-layout-minimal .grid-item img {
    width: 140px;
    height: 100px;
  }
}

@media (max-width: 600px) {
  .admin-bar a span:last-child {
    display: none;
  }

  .comment-form-row {
    grid-template-columns: 1fr;
  }

  .comment-form-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .comment-form input,
  .comment-form textarea {
    font-size: 14px;
  }

  .comment {
    padding: 12px 0;
  }

  .home-featured img {
    height: 240px;
  }

  .homepage-layout-magazine .home-grid-top,
  .homepage-layout-magazine .home-grid-rest,
  .homepage-layout-grid .home-grid {
    grid-template-columns: 1fr;
  }

  .homepage-layout-magazine .home-grid-top .grid-item:first-child {
    grid-column: auto;
  }

  .grid-item img {
    height: 200px;
  }

  .homepage-layout-minimal .grid-item {
    flex-direction: column;
    gap: 12px;
  }

  .homepage-layout-minimal .grid-item img {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
  }

  .related-grid {
    grid-template-columns: 1fr;
  }

  .post-card,
  .post-link {
    flex-direction: column;
    align-items: stretch;
  }

  .post-thumb {
    width: 100%;
  }

  .post-thumb img {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    object-fit: cover;
    display: block;
  }

  .post-title {
    font-size: 16px;
  }

  .post-excerpt {
    font-size: 13px;
  }

  .cookie-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-bar .subscribe-btn {
    width: 100%;
  }
}



}